umbraco-management-api-client
Version:
TypeScript client for the Umbraco Management API (auto-generated by OpenAPI Generator)
16 lines (15 loc) • 648 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const PropertyTypeApi_1 = require("../apis/PropertyTypeApi");
const testConfig_1 = require("./testConfig");
(async () => {
const config = await (0, testConfig_1.getConfig)();
const api = new PropertyTypeApi_1.PropertyTypeApi(config);
try {
const result = await api.getPropertyTypeIsUsed({ contentTypeId: 'test-content-type', propertyAlias: 'test-alias' });
console.log('PropertyTypeApi.getPropertyTypeIsUsed result:', result);
}
catch (error) {
console.error('PropertyTypeApi.getPropertyTypeIsUsed error:', error);
}
})();