@sitecore/sc-contenthub-webclient-sdk 0.9.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +24 -0
- package/dist/api/api-info-resource.d.ts +8 -0
- package/dist/api/api-info-resource.js +42 -0
- package/dist/api/api-info.d.ts +29 -0
- package/dist/api/api-info.js +14 -0
- package/dist/api/api-resource.d.ts +4 -0
- package/dist/api/api-resource.js +16 -0
- package/dist/api/api-routes-dictionary.d.ts +8 -0
- package/dist/api/api-routes-dictionary.js +10 -0
- package/dist/authentication/oauth-grant-base.d.ts +6 -0
- package/dist/authentication/oauth-grant-base.js +42 -0
- package/dist/authentication/oauth-grant-type.d.ts +4 -0
- package/dist/authentication/oauth-grant-type.js +8 -0
- package/dist/authentication/oauth-password-grant.d.ts +8 -0
- package/dist/authentication/oauth-password-grant.js +45 -0
- package/dist/authentication/oauth-refreshtoken-grant.d.ts +7 -0
- package/dist/authentication/oauth-refreshtoken-grant.js +39 -0
- package/dist/authentication/token-info.d.ts +6 -0
- package/dist/authentication/token-info.js +35 -0
- package/dist/base-types.d.ts +56 -0
- package/dist/base-types.js +32 -0
- package/dist/caches/culture-cache.d.ts +8 -0
- package/dist/caches/culture-cache.js +21 -0
- package/dist/caches/entity-definition-cache.d.ts +44 -0
- package/dist/caches/entity-definition-cache.js +96 -0
- package/dist/clients/api-client.d.ts +56 -0
- package/dist/clients/api-client.js +107 -0
- package/dist/clients/commands-client.d.ts +16 -0
- package/dist/clients/commands-client.js +40 -0
- package/dist/clients/content-hub-client.d.ts +75 -0
- package/dist/clients/content-hub-client.js +66 -0
- package/dist/clients/culture-client.d.ts +36 -0
- package/dist/clients/culture-client.js +43 -0
- package/dist/clients/culture-loader.d.ts +41 -0
- package/dist/clients/culture-loader.js +103 -0
- package/dist/clients/entities-client.d.ts +201 -0
- package/dist/clients/entities-client.js +271 -0
- package/dist/clients/entity-definitions-client.d.ts +87 -0
- package/dist/clients/entity-definitions-client.js +354 -0
- package/dist/clients/extended-client.d.ts +11 -0
- package/dist/clients/extended-client.js +2 -0
- package/dist/clients/internal-client.d.ts +46 -0
- package/dist/clients/internal-client.js +240 -0
- package/dist/clients/notifications-client.d.ts +35 -0
- package/dist/clients/notifications-client.js +128 -0
- package/dist/clients/option-list-client.d.ts +49 -0
- package/dist/clients/option-list-client.js +85 -0
- package/dist/clients/pages-client.d.ts +36 -0
- package/dist/clients/pages-client.js +52 -0
- package/dist/clients/policies-client.d.ts +47 -0
- package/dist/clients/policies-client.js +92 -0
- package/dist/clients/querying-client.d.ts +34 -0
- package/dist/clients/querying-client.js +95 -0
- package/dist/clients/raw-client.d.ts +29 -0
- package/dist/clients/raw-client.js +79 -0
- package/dist/clients/request-message.d.ts +25 -0
- package/dist/clients/request-message.js +12 -0
- package/dist/clients/response-handler.d.ts +30 -0
- package/dist/clients/response-handler.js +145 -0
- package/dist/clients/response-message.d.ts +45 -0
- package/dist/clients/response-message.js +34 -0
- package/dist/clients/schema-querying.d.ts +16 -0
- package/dist/clients/schema-querying.js +70 -0
- package/dist/clients/search-client.d.ts +16 -0
- package/dist/clients/search-client.js +36 -0
- package/dist/clients/settings-client.d.ts +37 -0
- package/dist/clients/settings-client.js +126 -0
- package/dist/clients/users-client.d.ts +150 -0
- package/dist/clients/users-client.js +317 -0
- package/dist/clients/web-content-hub-client.d.ts +13 -0
- package/dist/clients/web-content-hub-client.js +2 -0
- package/dist/constants/api.d.ts +130 -0
- package/dist/constants/api.js +133 -0
- package/dist/constants/defaults.d.ts +7 -0
- package/dist/constants/defaults.js +10 -0
- package/dist/constants/definitions.d.ts +62 -0
- package/dist/constants/definitions.js +88 -0
- package/dist/constants/index.d.ts +5 -0
- package/dist/constants/index.js +30 -0
- package/dist/constants/notifications.d.ts +7 -0
- package/dist/constants/notifications.js +10 -0
- package/dist/contracts/base/culture-insensitive-property.d.ts +28 -0
- package/dist/contracts/base/culture-insensitive-property.js +47 -0
- package/dist/contracts/base/culture-sensitive-property.d.ts +49 -0
- package/dist/contracts/base/culture-sensitive-property.js +113 -0
- package/dist/contracts/base/data-type.d.ts +18 -0
- package/dist/contracts/base/data-type.js +24 -0
- package/dist/contracts/base/entity-base.d.ts +65 -0
- package/dist/contracts/base/entity-base.js +362 -0
- package/dist/contracts/base/entity-construction-args.d.ts +15 -0
- package/dist/contracts/base/entity-construction-args.js +16 -0
- package/dist/contracts/base/entity-definition.d.ts +108 -0
- package/dist/contracts/base/entity-definition.js +126 -0
- package/dist/contracts/base/entity.d.ts +237 -0
- package/dist/contracts/base/entity.js +76 -0
- package/dist/contracts/base/index.d.ts +14 -0
- package/dist/contracts/base/index.js +26 -0
- package/dist/contracts/base/json-content-type.d.ts +9 -0
- package/dist/contracts/base/json-content-type.js +13 -0
- package/dist/contracts/base/lazy-loading-manager.d.ts +4 -0
- package/dist/contracts/base/lazy-loading-manager.js +17 -0
- package/dist/contracts/base/member-condition.d.ts +48 -0
- package/dist/contracts/base/member-condition.js +125 -0
- package/dist/contracts/base/member-definition-type.d.ts +13 -0
- package/dist/contracts/base/member-definition-type.js +17 -0
- package/dist/contracts/base/member-definition.d.ts +77 -0
- package/dist/contracts/base/member-definition.js +101 -0
- package/dist/contracts/base/member-group.d.ts +54 -0
- package/dist/contracts/base/member-group.js +61 -0
- package/dist/contracts/base/member.d.ts +32 -0
- package/dist/contracts/base/member.js +26 -0
- package/dist/contracts/base/option-lists/flat-option-list-value.d.ts +4 -0
- package/dist/contracts/base/option-lists/flat-option-list-value.js +9 -0
- package/dist/contracts/base/option-lists/flat-option-list.d.ts +9 -0
- package/dist/contracts/base/option-lists/flat-option-list.js +11 -0
- package/dist/contracts/base/option-lists/hierarchical-option-list.d.ts +9 -0
- package/dist/contracts/base/option-lists/hierarchical-option-list.js +11 -0
- package/dist/contracts/base/option-lists/hierarchical-options-list-value.d.ts +7 -0
- package/dist/contracts/base/option-lists/hierarchical-options-list-value.js +14 -0
- package/dist/contracts/base/option-lists/option-list-base.d.ts +23 -0
- package/dist/contracts/base/option-lists/option-list-base.js +33 -0
- package/dist/contracts/base/option-lists/option-list-type.d.ts +13 -0
- package/dist/contracts/base/option-lists/option-list-type.js +17 -0
- package/dist/contracts/base/option-lists/option-list-value-base.d.ts +7 -0
- package/dist/contracts/base/option-lists/option-list-value-base.js +14 -0
- package/dist/contracts/base/option-lists/option-list-value.d.ts +30 -0
- package/dist/contracts/base/option-lists/option-list-value.js +2 -0
- package/dist/contracts/base/option-lists/option-list.d.ts +40 -0
- package/dist/contracts/base/option-lists/option-list.js +2 -0
- package/dist/contracts/base/property-definition.d.ts +61 -0
- package/dist/contracts/base/property-definition.js +76 -0
- package/dist/contracts/base/property-definitions/boolean-property-definition.d.ts +7 -0
- package/dist/contracts/base/property-definitions/boolean-property-definition.js +33 -0
- package/dist/contracts/base/property-definitions/datetime-property-definition.d.ts +7 -0
- package/dist/contracts/base/property-definitions/datetime-property-definition.js +33 -0
- package/dist/contracts/base/property-definitions/datetimeoffset-property-definition.d.ts +7 -0
- package/dist/contracts/base/property-definitions/datetimeoffset-property-definition.js +33 -0
- package/dist/contracts/base/property-definitions/decimal-property-definition.d.ts +7 -0
- package/dist/contracts/base/property-definitions/decimal-property-definition.js +33 -0
- package/dist/contracts/base/property-definitions/index.d.ts +8 -0
- package/dist/contracts/base/property-definitions/index.js +20 -0
- package/dist/contracts/base/property-definitions/integer-property-definition.d.ts +7 -0
- package/dist/contracts/base/property-definitions/integer-property-definition.js +33 -0
- package/dist/contracts/base/property-definitions/json-property-definition.d.ts +10 -0
- package/dist/contracts/base/property-definitions/json-property-definition.js +38 -0
- package/dist/contracts/base/property-definitions/long-property-definition.d.ts +7 -0
- package/dist/contracts/base/property-definitions/long-property-definition.js +33 -0
- package/dist/contracts/base/property-definitions/string-property-definition.d.ts +33 -0
- package/dist/contracts/base/property-definitions/string-property-definition.js +55 -0
- package/dist/contracts/base/property-manager.d.ts +19 -0
- package/dist/contracts/base/property-manager.js +114 -0
- package/dist/contracts/base/property.d.ts +21 -0
- package/dist/contracts/base/property.js +30 -0
- package/dist/contracts/base/relation-cardinality.d.ts +19 -0
- package/dist/contracts/base/relation-cardinality.js +22 -0
- package/dist/contracts/base/relation-container.d.ts +40 -0
- package/dist/contracts/base/relation-container.js +118 -0
- package/dist/contracts/base/relation-definition.d.ts +123 -0
- package/dist/contracts/base/relation-definition.js +116 -0
- package/dist/contracts/base/relation-manager.d.ts +70 -0
- package/dist/contracts/base/relation-manager.js +197 -0
- package/dist/contracts/base/relation-role.d.ts +14 -0
- package/dist/contracts/base/relation-role.js +17 -0
- package/dist/contracts/base/relation.d.ts +74 -0
- package/dist/contracts/base/relation.js +40 -0
- package/dist/contracts/base/relations/child-to-many-parents-relation.d.ts +27 -0
- package/dist/contracts/base/relations/child-to-many-parents-relation.js +67 -0
- package/dist/contracts/base/relations/child-to-one-parent-relation.d.ts +26 -0
- package/dist/contracts/base/relations/child-to-one-parent-relation.js +74 -0
- package/dist/contracts/base/relations/parent-to-many-children-relation.d.ts +27 -0
- package/dist/contracts/base/relations/parent-to-many-children-relation.js +67 -0
- package/dist/contracts/base/relations/parent-to-one-child-relation.d.ts +29 -0
- package/dist/contracts/base/relations/parent-to-one-child-relation.js +74 -0
- package/dist/contracts/base/relations/to-many-relation.d.ts +16 -0
- package/dist/contracts/base/relations/to-many-relation.js +2 -0
- package/dist/contracts/base/relations/to-one-relation.d.ts +18 -0
- package/dist/contracts/base/relations/to-one-relation.js +2 -0
- package/dist/contracts/base/rendition.d.ts +14 -0
- package/dist/contracts/base/rendition.js +13 -0
- package/dist/contracts/base/resource.d.ts +21 -0
- package/dist/contracts/base/resource.js +2 -0
- package/dist/contracts/base/string-content-type.d.ts +21 -0
- package/dist/contracts/base/string-content-type.js +25 -0
- package/dist/contracts/base/typed-entity.d.ts +11 -0
- package/dist/contracts/base/typed-entity.js +2 -0
- package/dist/contracts/base/users.d.ts +0 -0
- package/dist/contracts/base/users.js +1 -0
- package/dist/contracts/base/view-mode.d.ts +4 -0
- package/dist/contracts/base/view-mode.js +8 -0
- package/dist/contracts/content/asset.d.ts +22 -0
- package/dist/contracts/content/asset.js +67 -0
- package/dist/contracts/content/final-life-cycle-status.d.ts +7 -0
- package/dist/contracts/content/final-life-cycle-status.js +11 -0
- package/dist/contracts/dirty-tracking/dirty-tracking.d.ts +10 -0
- package/dist/contracts/dirty-tracking/dirty-tracking.js +2 -0
- package/dist/contracts/notifications/mail-template.d.ts +44 -0
- package/dist/contracts/notifications/mail-template.js +2 -0
- package/dist/contracts/policies/condition.d.ts +16 -0
- package/dist/contracts/policies/condition.js +10 -0
- package/dist/contracts/policies/member-policy.d.ts +31 -0
- package/dist/contracts/policies/member-policy.js +12 -0
- package/dist/contracts/policies/policy.d.ts +19 -0
- package/dist/contracts/policies/policy.js +11 -0
- package/dist/contracts/policies/rule-type.d.ts +7 -0
- package/dist/contracts/policies/rule-type.js +11 -0
- package/dist/contracts/policies/rule.d.ts +58 -0
- package/dist/contracts/policies/rule.js +19 -0
- package/dist/contracts/policies/user-group-policy.d.ts +10 -0
- package/dist/contracts/policies/user-group-policy.js +17 -0
- package/dist/contracts/policies/user-policy.d.ts +10 -0
- package/dist/contracts/policies/user-policy.js +17 -0
- package/dist/contracts/querying/culture-load-option.d.ts +35 -0
- package/dist/contracts/querying/culture-load-option.js +69 -0
- package/dist/contracts/querying/entity-definition-id-iterator.d.ts +9 -0
- package/dist/contracts/querying/entity-definition-id-iterator.js +30 -0
- package/dist/contracts/querying/entity-definition-id-query-result.d.ts +10 -0
- package/dist/contracts/querying/entity-definition-id-query-result.js +22 -0
- package/dist/contracts/querying/entity-definition-iterator.d.ts +16 -0
- package/dist/contracts/querying/entity-definition-iterator.js +30 -0
- package/dist/contracts/querying/entity-definition-query-result.d.ts +21 -0
- package/dist/contracts/querying/entity-definition-query-result.js +22 -0
- package/dist/contracts/querying/entity-iterator.d.ts +13 -0
- package/dist/contracts/querying/entity-iterator.js +30 -0
- package/dist/contracts/querying/entity-load-configuration-builder.d.ts +76 -0
- package/dist/contracts/querying/entity-load-configuration-builder.js +101 -0
- package/dist/contracts/querying/entity-load-configuration.d.ts +51 -0
- package/dist/contracts/querying/entity-load-configuration.js +67 -0
- package/dist/contracts/querying/entity-load-option.d.ts +35 -0
- package/dist/contracts/querying/entity-load-option.js +94 -0
- package/dist/contracts/querying/entity-query-result.d.ts +23 -0
- package/dist/contracts/querying/entity-query-result.js +33 -0
- package/dist/contracts/querying/filters/comparison-operator.d.ts +11 -0
- package/dist/contracts/querying/filters/comparison-operator.js +15 -0
- package/dist/contracts/querying/filters/composite-filter-operator.d.ts +4 -0
- package/dist/contracts/querying/filters/composite-filter-operator.js +8 -0
- package/dist/contracts/querying/filters/composite-query-filter.d.ts +19 -0
- package/dist/contracts/querying/filters/composite-query-filter.js +49 -0
- package/dist/contracts/querying/filters/createdby-query-filter.d.ts +5 -0
- package/dist/contracts/querying/filters/createdby-query-filter.js +30 -0
- package/dist/contracts/querying/filters/createdon-query-filter.d.ts +19 -0
- package/dist/contracts/querying/filters/createdon-query-filter.js +45 -0
- package/dist/contracts/querying/filters/definition-query-filter.d.ts +34 -0
- package/dist/contracts/querying/filters/definition-query-filter.js +58 -0
- package/dist/contracts/querying/filters/filter-data-type.d.ts +11 -0
- package/dist/contracts/querying/filters/filter-data-type.js +15 -0
- package/dist/contracts/querying/filters/filter-type.d.ts +18 -0
- package/dist/contracts/querying/filters/filter-type.js +22 -0
- package/dist/contracts/querying/filters/id-query-filter.d.ts +25 -0
- package/dist/contracts/querying/filters/id-query-filter.js +49 -0
- package/dist/contracts/querying/filters/identifier-query-filter.d.ts +25 -0
- package/dist/contracts/querying/filters/identifier-query-filter.js +49 -0
- package/dist/contracts/querying/filters/index.d.ts +20 -0
- package/dist/contracts/querying/filters/index.js +32 -0
- package/dist/contracts/querying/filters/modifiedby-query-filter.d.ts +5 -0
- package/dist/contracts/querying/filters/modifiedby-query-filter.js +30 -0
- package/dist/contracts/querying/filters/modifiedon-query-filter.d.ts +19 -0
- package/dist/contracts/querying/filters/modifiedon-query-filter.js +45 -0
- package/dist/contracts/querying/filters/modules-query-filter.d.ts +14 -0
- package/dist/contracts/querying/filters/modules-query-filter.js +43 -0
- package/dist/contracts/querying/filters/not-query-filter.d.ts +14 -0
- package/dist/contracts/querying/filters/not-query-filter.js +39 -0
- package/dist/contracts/querying/filters/property-query-filter.d.ts +38 -0
- package/dist/contracts/querying/filters/property-query-filter.js +63 -0
- package/dist/contracts/querying/filters/query-filter.d.ts +10 -0
- package/dist/contracts/querying/filters/query-filter.js +28 -0
- package/dist/contracts/querying/filters/relation-connection-type.d.ts +15 -0
- package/dist/contracts/querying/filters/relation-connection-type.js +19 -0
- package/dist/contracts/querying/filters/relation-query-filter.d.ts +23 -0
- package/dist/contracts/querying/filters/relation-query-filter.js +48 -0
- package/dist/contracts/querying/filters/secured-ancestors-query-filter.d.ts +24 -0
- package/dist/contracts/querying/filters/secured-ancestors-query-filter.js +53 -0
- package/dist/contracts/querying/filters/user-query-filter.d.ts +37 -0
- package/dist/contracts/querying/filters/user-query-filter.js +61 -0
- package/dist/contracts/querying/id-iterator.d.ts +11 -0
- package/dist/contracts/querying/id-iterator.js +19 -0
- package/dist/contracts/querying/id-query-result.d.ts +17 -0
- package/dist/contracts/querying/id-query-result.js +24 -0
- package/dist/contracts/querying/iterator.d.ts +9 -0
- package/dist/contracts/querying/iterator.js +2 -0
- package/dist/contracts/querying/load-option.d.ts +4 -0
- package/dist/contracts/querying/load-option.js +2 -0
- package/dist/contracts/querying/load-options.d.ts +6 -0
- package/dist/contracts/querying/load-options.js +10 -0
- package/dist/contracts/querying/loading-query-iterator.d.ts +17 -0
- package/dist/contracts/querying/loading-query-iterator.js +57 -0
- package/dist/contracts/querying/member-load-option.d.ts +11 -0
- package/dist/contracts/querying/member-load-option.js +15 -0
- package/dist/contracts/querying/minimal-schema.d.ts +8 -0
- package/dist/contracts/querying/minimal-schema.js +48 -0
- package/dist/contracts/querying/property-data.d.ts +8 -0
- package/dist/contracts/querying/property-data.js +43 -0
- package/dist/contracts/querying/property-load-option.d.ts +30 -0
- package/dist/contracts/querying/property-load-option.js +70 -0
- package/dist/contracts/querying/query-iterator.d.ts +18 -0
- package/dist/contracts/querying/query-iterator.js +54 -0
- package/dist/contracts/querying/query-load-configuration.d.ts +39 -0
- package/dist/contracts/querying/query-load-configuration.js +86 -0
- package/dist/contracts/querying/query-request.d.ts +6 -0
- package/dist/contracts/querying/query-request.js +30 -0
- package/dist/contracts/querying/query-result-paging-manager.d.ts +9 -0
- package/dist/contracts/querying/query-result-paging-manager.js +22 -0
- package/dist/contracts/querying/query-result.d.ts +5 -0
- package/dist/contracts/querying/query-result.js +2 -0
- package/dist/contracts/querying/query-sort-order.d.ts +13 -0
- package/dist/contracts/querying/query-sort-order.js +17 -0
- package/dist/contracts/querying/query.d.ts +23 -0
- package/dist/contracts/querying/query.js +56 -0
- package/dist/contracts/querying/relation-data.d.ts +7 -0
- package/dist/contracts/querying/relation-data.js +38 -0
- package/dist/contracts/querying/relation-load-option.d.ts +31 -0
- package/dist/contracts/querying/relation-load-option.js +74 -0
- package/dist/contracts/querying/relation-specification.d.ts +33 -0
- package/dist/contracts/querying/relation-specification.js +52 -0
- package/dist/contracts/querying/schema-querying.d.ts +20 -0
- package/dist/contracts/querying/schema-querying.js +2 -0
- package/dist/contracts/querying/scroll-request.d.ts +7 -0
- package/dist/contracts/querying/scroll-request.js +33 -0
- package/dist/contracts/querying/skip-take-iterator-base.d.ts +14 -0
- package/dist/contracts/querying/skip-take-iterator-base.js +60 -0
- package/dist/contracts/querying/sort-field-type.d.ts +13 -0
- package/dist/contracts/querying/sort-field-type.js +17 -0
- package/dist/contracts/querying/sorting.d.ts +25 -0
- package/dist/contracts/querying/sorting.js +44 -0
- package/dist/contracts/users/user-group-combine-method.d.ts +4 -0
- package/dist/contracts/users/user-group-combine-method.js +8 -0
- package/dist/contracts/users/user-group-configuration.d.ts +11 -0
- package/dist/contracts/users/user-group-configuration.js +35 -0
- package/dist/contracts/users/user-profile.d.ts +4 -0
- package/dist/contracts/users/user-profile.js +2 -0
- package/dist/contracts/users/user.d.ts +24 -0
- package/dist/contracts/users/user.js +64 -0
- package/dist/converters/api-resource-converter.d.ts +16 -0
- package/dist/converters/api-resource-converter.js +45 -0
- package/dist/converters/file-version-converter.d.ts +22 -0
- package/dist/converters/file-version-converter.js +43 -0
- package/dist/converters/index.d.ts +6 -0
- package/dist/converters/index.js +18 -0
- package/dist/converters/member-condition-converter.d.ts +20 -0
- package/dist/converters/member-condition-converter.js +50 -0
- package/dist/converters/member-condition-resource-converter.d.ts +21 -0
- package/dist/converters/member-condition-resource-converter.js +53 -0
- package/dist/converters/minimal-schema-relation-cardinality-converter.d.ts +11 -0
- package/dist/converters/minimal-schema-relation-cardinality-converter.js +33 -0
- package/dist/converters/page-resource-menus-converter.d.ts +19 -0
- package/dist/converters/page-resource-menus-converter.js +45 -0
- package/dist/converters/page-resource-zones-converter.d.ts +19 -0
- package/dist/converters/page-resource-zones-converter.js +45 -0
- package/dist/converters/relation-map-resource-converter.d.ts +6 -0
- package/dist/converters/relation-map-resource-converter.js +38 -0
- package/dist/converters/relation-resource-converter.d.ts +22 -0
- package/dist/converters/relation-resource-converter.js +51 -0
- package/dist/converters/renditions-converter.d.ts +20 -0
- package/dist/converters/renditions-converter.js +44 -0
- package/dist/converters/string-to-any-map-converter.d.ts +20 -0
- package/dist/converters/string-to-any-map-converter.js +34 -0
- package/dist/culture-info.d.ts +5 -0
- package/dist/culture-info.js +7 -0
- package/dist/dirty-value-calculator.d.ts +7 -0
- package/dist/dirty-value-calculator.js +29 -0
- package/dist/entity-link.d.ts +8 -0
- package/dist/entity-link.js +40 -0
- package/dist/error-messages.d.ts +57 -0
- package/dist/error-messages.js +64 -0
- package/dist/errors/argument-error.d.ts +4 -0
- package/dist/errors/argument-error.js +11 -0
- package/dist/errors/authentication-error.d.ts +5 -0
- package/dist/errors/authentication-error.js +12 -0
- package/dist/errors/bad-request-error.d.ts +5 -0
- package/dist/errors/bad-request-error.js +11 -0
- package/dist/errors/forbidden-error.d.ts +4 -0
- package/dist/errors/forbidden-error.js +11 -0
- package/dist/errors/internal-error.d.ts +4 -0
- package/dist/errors/internal-error.js +11 -0
- package/dist/errors/invalid-operation-error.d.ts +4 -0
- package/dist/errors/invalid-operation-error.js +11 -0
- package/dist/errors/not-found-error.d.ts +5 -0
- package/dist/errors/not-found-error.js +11 -0
- package/dist/errors/not-implemented-error.d.ts +4 -0
- package/dist/errors/not-implemented-error.js +11 -0
- package/dist/errors/not-loaded-error.d.ts +4 -0
- package/dist/errors/not-loaded-error.js +11 -0
- package/dist/errors/not-supported-error.d.ts +4 -0
- package/dist/errors/not-supported-error.js +11 -0
- package/dist/errors/schema-error.d.ts +4 -0
- package/dist/errors/schema-error.js +11 -0
- package/dist/errors/validation-error.d.ts +6 -0
- package/dist/errors/validation-error.js +12 -0
- package/dist/errors/validation-failure.d.ts +7 -0
- package/dist/errors/validation-failure.js +14 -0
- package/dist/errors/web-api-error.d.ts +13 -0
- package/dist/errors/web-api-error.js +13 -0
- package/dist/factories/entity-factory.d.ts +38 -0
- package/dist/factories/entity-factory.js +76 -0
- package/dist/factories/option-list-factory.d.ts +26 -0
- package/dist/factories/option-list-factory.js +22 -0
- package/dist/factories/property-factory.d.ts +10 -0
- package/dist/factories/property-factory.js +54 -0
- package/dist/factories/relation-factory.d.ts +55 -0
- package/dist/factories/relation-factory.js +70 -0
- package/dist/fileversion.d.ts +78 -0
- package/dist/fileversion.js +144 -0
- package/dist/guard.d.ts +29 -0
- package/dist/guard.js +142 -0
- package/dist/http-method.d.ts +9 -0
- package/dist/http-method.js +13 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +22 -0
- package/dist/link-helper.d.ts +209 -0
- package/dist/link-helper.js +371 -0
- package/dist/link.d.ts +9 -0
- package/dist/link.js +78 -0
- package/dist/logging/log-level.d.ts +6 -0
- package/dist/logging/log-level.js +10 -0
- package/dist/logging/logger-base.d.ts +26 -0
- package/dist/logging/logger-base.js +98 -0
- package/dist/logging/logger.d.ts +16 -0
- package/dist/logging/logger.js +2 -0
- package/dist/logging/null-logger.d.ts +7 -0
- package/dist/logging/null-logger.js +13 -0
- package/dist/mappers/api-resource-mapper.d.ts +5 -0
- package/dist/mappers/api-resource-mapper.js +16 -0
- package/dist/mappers/condition-mapper.d.ts +36 -0
- package/dist/mappers/condition-mapper.js +112 -0
- package/dist/mappers/entity-definition-mapper.d.ts +13 -0
- package/dist/mappers/entity-definition-mapper.js +88 -0
- package/dist/mappers/entity-mapper.d.ts +19 -0
- package/dist/mappers/entity-mapper.js +134 -0
- package/dist/mappers/final-life-cycle-status-mapper.d.ts +6 -0
- package/dist/mappers/final-life-cycle-status-mapper.js +51 -0
- package/dist/mappers/load-options-mapper.d.ts +16 -0
- package/dist/mappers/load-options-mapper.js +100 -0
- package/dist/mappers/mapping-utilities.d.ts +7 -0
- package/dist/mappers/mapping-utilities.js +19 -0
- package/dist/mappers/member-condition-mapper.d.ts +12 -0
- package/dist/mappers/member-condition-mapper.js +119 -0
- package/dist/mappers/member-definition-mapper.d.ts +19 -0
- package/dist/mappers/member-definition-mapper.js +266 -0
- package/dist/mappers/member-group-mapper.d.ts +14 -0
- package/dist/mappers/member-group-mapper.js +95 -0
- package/dist/mappers/member-security-mapper.d.ts +34 -0
- package/dist/mappers/member-security-mapper.js +101 -0
- package/dist/mappers/notification-mapper.d.ts +5 -0
- package/dist/mappers/notification-mapper.js +17 -0
- package/dist/mappers/option-list-mapper.d.ts +18 -0
- package/dist/mappers/option-list-mapper.js +131 -0
- package/dist/mappers/policy-mapper.d.ts +29 -0
- package/dist/mappers/policy-mapper.js +124 -0
- package/dist/mappers/property-mapper.d.ts +21 -0
- package/dist/mappers/property-mapper.js +339 -0
- package/dist/mappers/querying-mapper.d.ts +16 -0
- package/dist/mappers/querying-mapper.js +96 -0
- package/dist/mappers/relation-cardinality-mapper.d.ts +5 -0
- package/dist/mappers/relation-cardinality-mapper.js +37 -0
- package/dist/mappers/relation-mapper.d.ts +16 -0
- package/dist/mappers/relation-mapper.js +202 -0
- package/dist/mappers/relation-role-mapper.d.ts +5 -0
- package/dist/mappers/relation-role-mapper.js +29 -0
- package/dist/mappers/rendition-mapper.d.ts +9 -0
- package/dist/mappers/rendition-mapper.js +34 -0
- package/dist/mappers/rule-type-mapper.d.ts +6 -0
- package/dist/mappers/rule-type-mapper.js +33 -0
- package/dist/mappers/rules-mapper.d.ts +35 -0
- package/dist/mappers/rules-mapper.js +123 -0
- package/dist/mappers/typed-entity-creator.d.ts +27 -0
- package/dist/mappers/typed-entity-creator.js +76 -0
- package/dist/models/entity-definition-collection-resource.d.ts +5 -0
- package/dist/models/entity-definition-collection-resource.js +26 -0
- package/dist/models/entity-definition-resource.d.ts +23 -0
- package/dist/models/entity-definition-resource.js +98 -0
- package/dist/models/entity-list-resource.d.ts +5 -0
- package/dist/models/entity-list-resource.js +26 -0
- package/dist/models/entity-resource.d.ts +36 -0
- package/dist/models/entity-resource.js +142 -0
- package/dist/models/list-resource.d.ts +13 -0
- package/dist/models/list-resource.js +50 -0
- package/dist/models/member-condition-resource.d.ts +32 -0
- package/dist/models/member-condition-resource.js +95 -0
- package/dist/models/member-definition-resource.d.ts +15 -0
- package/dist/models/member-definition-resource.js +71 -0
- package/dist/models/member-group-resource.d.ts +14 -0
- package/dist/models/member-group-resource.js +61 -0
- package/dist/models/notifications/distribute-notification-resource.d.ts +7 -0
- package/dist/models/notifications/distribute-notification-resource.js +37 -0
- package/dist/models/notifications/mail-request-broadcast.d.ts +7 -0
- package/dist/models/notifications/mail-request-broadcast.js +18 -0
- package/dist/models/notifications/mail-request-by-id.d.ts +9 -0
- package/dist/models/notifications/mail-request-by-id.js +28 -0
- package/dist/models/notifications/mail-request-by-username.d.ts +9 -0
- package/dist/models/notifications/mail-request-by-username.js +28 -0
- package/dist/models/notifications/mail-request.d.ts +26 -0
- package/dist/models/notifications/mail-request.js +12 -0
- package/dist/models/notifications/notification-level.d.ts +8 -0
- package/dist/models/notifications/notification-level.js +12 -0
- package/dist/models/notifications/realtime-request-broadcast.d.ts +7 -0
- package/dist/models/notifications/realtime-request-broadcast.js +18 -0
- package/dist/models/notifications/realtime-request-by-id.d.ts +9 -0
- package/dist/models/notifications/realtime-request-by-id.js +28 -0
- package/dist/models/notifications/realtime-request-by-username.d.ts +9 -0
- package/dist/models/notifications/realtime-request-by-username.js +28 -0
- package/dist/models/notifications/realtime-request.d.ts +60 -0
- package/dist/models/notifications/realtime-request.js +41 -0
- package/dist/models/notifications/request-by-id.d.ts +13 -0
- package/dist/models/notifications/request-by-id.js +2 -0
- package/dist/models/notifications/request-by-username.d.ts +13 -0
- package/dist/models/notifications/request-by-username.js +2 -0
- package/dist/models/notifications/validators/mail-validator.d.ts +6 -0
- package/dist/models/notifications/validators/mail-validator.js +23 -0
- package/dist/models/notifications/validators/realtime-validator.d.ts +5 -0
- package/dist/models/notifications/validators/realtime-validator.js +14 -0
- package/dist/models/notifications/validators/request-by-id-validator.d.ts +6 -0
- package/dist/models/notifications/validators/request-by-id-validator.js +31 -0
- package/dist/models/notifications/validators/request-by-username-validator.d.ts +6 -0
- package/dist/models/notifications/validators/request-by-username-validator.js +31 -0
- package/dist/models/notifications/validators/validator-base.d.ts +6 -0
- package/dist/models/notifications/validators/validator-base.js +16 -0
- package/dist/models/option-lists/flat-option-list-value.d.ts +4 -0
- package/dist/models/option-lists/flat-option-list-value.js +9 -0
- package/dist/models/option-lists/hierarchical-options-list-value.d.ts +7 -0
- package/dist/models/option-lists/hierarchical-options-list-value.js +14 -0
- package/dist/models/option-lists/option-list-collection-resource.d.ts +6 -0
- package/dist/models/option-lists/option-list-collection-resource.js +32 -0
- package/dist/models/option-lists/option-list-description-resource.d.ts +5 -0
- package/dist/models/option-lists/option-list-description-resource.js +31 -0
- package/dist/models/option-lists/option-list-resource.d.ts +16 -0
- package/dist/models/option-lists/option-list-resource.js +62 -0
- package/dist/models/option-lists/option-list-value-resource.d.ts +6 -0
- package/dist/models/option-lists/option-list-value-resource.js +32 -0
- package/dist/models/pages/component-visualization.d.ts +10 -0
- package/dist/models/pages/component-visualization.js +54 -0
- package/dist/models/pages/language-resource.d.ts +10 -0
- package/dist/models/pages/language-resource.js +47 -0
- package/dist/models/pages/menu-item.d.ts +12 -0
- package/dist/models/pages/menu-item.js +66 -0
- package/dist/models/pages/page-component-resource.d.ts +20 -0
- package/dist/models/pages/page-component-resource.js +87 -0
- package/dist/models/pages/page-resource.d.ts +23 -0
- package/dist/models/pages/page-resource.js +100 -0
- package/dist/models/pages/page-row-settings.d.ts +27 -0
- package/dist/models/pages/page-row-settings.js +119 -0
- package/dist/models/pages/portal-column-resource.d.ts +6 -0
- package/dist/models/pages/portal-column-resource.js +37 -0
- package/dist/models/pages/portal-row-resource.d.ts +7 -0
- package/dist/models/pages/portal-row-resource.js +38 -0
- package/dist/models/pages/portal-section-resource.d.ts +6 -0
- package/dist/models/pages/portal-section-resource.js +37 -0
- package/dist/models/permissions-resource.d.ts +4 -0
- package/dist/models/permissions-resource.js +28 -0
- package/dist/models/policies/condition-resource.d.ts +21 -0
- package/dist/models/policies/condition-resource.js +53 -0
- package/dist/models/policies/member-policy-resource.d.ts +8 -0
- package/dist/models/policies/member-policy-resource.js +43 -0
- package/dist/models/policies/policy-resource.d.ts +50 -0
- package/dist/models/policies/policy-resource.js +89 -0
- package/dist/models/policies/rule-resource.d.ts +49 -0
- package/dist/models/policies/rule-resource.js +78 -0
- package/dist/models/property-definition-resource.d.ts +45 -0
- package/dist/models/property-definition-resource.js +198 -0
- package/dist/models/query-loading-resource.d.ts +4 -0
- package/dist/models/query-loading-resource.js +28 -0
- package/dist/models/query-result-resource.d.ts +9 -0
- package/dist/models/query-result-resource.js +34 -0
- package/dist/models/relation-definition-resource.d.ts +29 -0
- package/dist/models/relation-definition-resource.js +115 -0
- package/dist/models/relation-map-resource.d.ts +6 -0
- package/dist/models/relation-map-resource.js +16 -0
- package/dist/models/relation-resource.d.ts +21 -0
- package/dist/models/relation-resource.js +93 -0
- package/dist/models/resource-containers/entity-definition-resource-container.d.ts +8 -0
- package/dist/models/resource-containers/entity-definition-resource-container.js +2 -0
- package/dist/models/resource-containers/entity-resource-container.d.ts +8 -0
- package/dist/models/resource-containers/entity-resource-container.js +2 -0
- package/dist/models/resource.d.ts +4 -0
- package/dist/models/resource.js +26 -0
- package/dist/models/search/aggregation-request-resource.d.ts +16 -0
- package/dist/models/search/aggregation-request-resource.js +72 -0
- package/dist/models/search/aggregation-response-resource.d.ts +8 -0
- package/dist/models/search/aggregation-response-resource.js +41 -0
- package/dist/models/search/bucket-response-resource.d.ts +8 -0
- package/dist/models/search/bucket-response-resource.js +46 -0
- package/dist/models/search/date-interval.d.ts +10 -0
- package/dist/models/search/date-interval.js +14 -0
- package/dist/models/search/facet-response-resource.d.ts +20 -0
- package/dist/models/search/facet-response-resource.js +98 -0
- package/dist/models/search/field-filter-request-resource.d.ts +16 -0
- package/dist/models/search/field-filter-request-resource.js +76 -0
- package/dist/models/search/field-filter-response-resource.d.ts +17 -0
- package/dist/models/search/field-filter-response-resource.js +84 -0
- package/dist/models/search/field-filter-value-response-resource.d.ts +6 -0
- package/dist/models/search/field-filter-value-response-resource.js +31 -0
- package/dist/models/search/filter-operator.d.ts +86 -0
- package/dist/models/search/filter-operator.js +90 -0
- package/dist/models/search/full-text-response-resource.d.ts +4 -0
- package/dist/models/search/full-text-response-resource.js +27 -0
- package/dist/models/search/group-category.d.ts +6 -0
- package/dist/models/search/group-category.js +35 -0
- package/dist/models/search/group-config.d.ts +4 -0
- package/dist/models/search/group-config.js +27 -0
- package/dist/models/search/group-item.d.ts +10 -0
- package/dist/models/search/group-item.js +44 -0
- package/dist/models/search/grouped-view-response-resource.d.ts +15 -0
- package/dist/models/search/grouped-view-response-resource.js +65 -0
- package/dist/models/search/metric-option-request-resource.d.ts +7 -0
- package/dist/models/search/metric-option-request-resource.js +37 -0
- package/dist/models/search/metric-option-response-resource.d.ts +5 -0
- package/dist/models/search/metric-option-response-resource.js +31 -0
- package/dist/models/search/nested-relation-info.d.ts +11 -0
- package/dist/models/search/nested-relation-info.js +96 -0
- package/dist/models/search/requested-aggregation-type.d.ts +5 -0
- package/dist/models/search/requested-aggregation-type.js +9 -0
- package/dist/models/search/requested-filter-type.d.ts +6 -0
- package/dist/models/search/requested-filter-type.js +10 -0
- package/dist/models/search/search-group-request-resource.d.ts +5 -0
- package/dist/models/search/search-group-request-resource.js +31 -0
- package/dist/models/search/search-request.d.ts +41 -0
- package/dist/models/search/search-request.js +131 -0
- package/dist/models/search/search-response.d.ts +36 -0
- package/dist/models/search/search-response.js +123 -0
- package/dist/models/search/selection-pool-filter-resource.d.ts +7 -0
- package/dist/models/search/selection-pool-filter-resource.js +38 -0
- package/dist/models/search/sorting-request-resource.d.ts +5 -0
- package/dist/models/search/sorting-request-resource.js +32 -0
- package/dist/models/search/sorting-response-resource.d.ts +6 -0
- package/dist/models/search/sorting-response-resource.js +34 -0
- package/dist/models/search-document-resource.d.ts +7 -0
- package/dist/models/search-document-resource.js +33 -0
- package/dist/models/set-password-request-resource.d.ts +5 -0
- package/dist/models/set-password-request-resource.js +31 -0
- package/dist/settings/fetch-setting.d.ts +12 -0
- package/dist/settings/fetch-setting.js +61 -0
- package/dist/settings/super-user-excluded-privileges.d.ts +3 -0
- package/dist/settings/super-user-excluded-privileges.js +27 -0
- package/dist/settings/usage-rights-configuration.d.ts +24 -0
- package/dist/settings/usage-rights-configuration.js +90 -0
- package/dist/type-guards.d.ts +20 -0
- package/dist/type-guards.js +28 -0
- package/package.json +78 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IPropertyConverter } from "ta-json";
|
|
2
|
+
import { JsonValue, Object_Unknown } from "../base-types";
|
|
3
|
+
export declare class StringToAnyMapConverter implements IPropertyConverter {
|
|
4
|
+
/**
|
|
5
|
+
* Serializes an object into a JsonValue.
|
|
6
|
+
*
|
|
7
|
+
* @param value - An object
|
|
8
|
+
*
|
|
9
|
+
* @returns A Json Value.
|
|
10
|
+
*/
|
|
11
|
+
serialize(value: Object_Unknown): JsonValue;
|
|
12
|
+
/**
|
|
13
|
+
* Deserializes a JsonValue into an object.
|
|
14
|
+
*
|
|
15
|
+
* @param value - A Json Value
|
|
16
|
+
*
|
|
17
|
+
* @returns An object.
|
|
18
|
+
*/
|
|
19
|
+
deserialize(value: JsonValue): Object_Unknown;
|
|
20
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StringToAnyMapConverter = void 0;
|
|
4
|
+
const invalid_operation_error_1 = require("../errors/invalid-operation-error");
|
|
5
|
+
class StringToAnyMapConverter {
|
|
6
|
+
/**
|
|
7
|
+
* Serializes an object into a JsonValue.
|
|
8
|
+
*
|
|
9
|
+
* @param value - An object
|
|
10
|
+
*
|
|
11
|
+
* @returns A Json Value.
|
|
12
|
+
*/
|
|
13
|
+
serialize(value) {
|
|
14
|
+
return JSON.stringify(value);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Deserializes a JsonValue into an object.
|
|
18
|
+
*
|
|
19
|
+
* @param value - A Json Value
|
|
20
|
+
*
|
|
21
|
+
* @returns An object.
|
|
22
|
+
*/
|
|
23
|
+
deserialize(value) {
|
|
24
|
+
if (!value) {
|
|
25
|
+
throw new invalid_operation_error_1.InvalidOperationError("Can't deserialize falsy value.");
|
|
26
|
+
}
|
|
27
|
+
else if (typeof value !== "string") {
|
|
28
|
+
throw new invalid_operation_error_1.InvalidOperationError(`Expected a value of type 'string', but value was of type '${typeof value}'.`);
|
|
29
|
+
}
|
|
30
|
+
const obj = typeof value === "string" ? JSON.parse(value) : JSON.parse(JSON.stringify(value));
|
|
31
|
+
return obj;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.StringToAnyMapConverter = StringToAnyMapConverter;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
declare type CultureInvariant = "Invariant";
|
|
2
|
+
export declare type NoneInvariantCultureInfo = "aa-DJ" | "aa-ER" | "aa-ET" | "af-NA" | "af-ZA" | "agq-CM" | "ak-GH" | "am-ET" | "ar-001" | "ar-AE" | "ar-BH" | "ar-DJ" | "ar-DZ" | "ar-EG" | "ar-ER" | "ar-IL" | "ar-IQ" | "ar-JO" | "ar-KM" | "ar-KW" | "ar-LB" | "ar-LY" | "ar-MA" | "ar-MR" | "ar-OM" | "ar-PS" | "ar-QA" | "ar-SA" | "ar-SD" | "ar-SO" | "ar-SS" | "ar-SY" | "ar-TD" | "ar-TN" | "ar-YE" | "arn-CL" | "as-IN" | "asa-TZ" | "ast-ES" | "az-Cyrl-AZ" | "az-Latn-AZ" | "ba-RU" | "bas-CM" | "be-BY" | "bem-ZM" | "bez-TZ" | "bg-BG" | "bin-NG" | "bm-Latn-ML" | "bn-BD" | "bn-IN" | "bo-CN" | "bo-IN" | "br-FR" | "brx-IN" | "bs-Cyrl-BA" | "bs-Latn-BA" | "byn-ER" | "ca-AD" | "ca-ES" | "ca-ES-valencia" | "ca-FR" | "ca-IT" | "ce-RU" | "cgg-UG" | "chr-Cher-US" | "co-FR" | "cs-CZ" | "cu-RU" | "cy-GB" | "da-DK" | "da-GL" | "dav-KE" | "de-AT" | "de-BE" | "de-CH" | "de-DE" | "de-IT" | "de-LI" | "de-LU" | "dje-NE" | "dsb-DE" | "dua-CM" | "dv-MV" | "dyo-SN" | "dz-BT" | "ebu-KE" | "ee-GH" | "ee-TG" | "el-CY" | "el-GR" | "en-001" | "en-029" | "en-150" | "en-AG" | "en-AI" | "en-AS" | "en-AT" | "en-AU" | "en-BB" | "en-BE" | "en-BI" | "en-BM" | "en-BS" | "en-BW" | "en-BZ" | "en-CA" | "en-CC" | "en-CH" | "en-CK" | "en-CM" | "en-CX" | "en-CY" | "en-DE" | "en-DK" | "en-DM" | "en-ER" | "en-FI" | "en-FJ" | "en-FK" | "en-FM" | "en-GB" | "en-GD" | "en-GG" | "en-GH" | "en-GI" | "en-GM" | "en-GU" | "en-GY" | "en-HK" | "en-ID" | "en-IE" | "en-IL" | "en-IM" | "en-IN" | "en-IO" | "en-JE" | "en-JM" | "en-KE" | "en-KI" | "en-KN" | "en-KY" | "en-LC" | "en-LR" | "en-LS" | "en-MG" | "en-MH" | "en-MO" | "en-MP" | "en-MS" | "en-MT" | "en-MU" | "en-MW" | "en-MY" | "en-NA" | "en-NF" | "en-NG" | "en-NL" | "en-NR" | "en-NU" | "en-NZ" | "en-PG" | "en-PH" | "en-PK" | "en-PN" | "en-PR" | "en-PW" | "en-RW" | "en-SB" | "en-SC" | "en-SD" | "en-SE" | "en-SG" | "en-SH" | "en-SI" | "en-SL" | "en-SS" | "en-SX" | "en-SZ" | "en-TC" | "en-TK" | "en-TO" | "en-TT" | "en-TV" | "en-TZ" | "en-UG" | "en-UM" | "en-US" | "en-VC" | "en-VG" | "en-VI" | "en-VU" | "en-WS" | "en-ZA" | "en-ZM" | "en-ZW" | "eo-001" | "es-419" | "es-AR" | "es-BO" | "es-BR" | "es-BZ" | "es-CL" | "es-CO" | "es-CR" | "es-CU" | "es-DO" | "es-EC" | "es-ES" | "es-GQ" | "es-GT" | "es-HN" | "es-MX" | "es-NI" | "es-PA" | "es-PE" | "es-PH" | "es-PR" | "es-PY" | "es-SV" | "es-US" | "es-UY" | "es-VE" | "et-EE" | "eu-ES" | "ewo-CM" | "fa-IR" | "ff-CM" | "ff-GN" | "ff-Latn-SN" | "ff-MR" | "ff-NG" | "fi-FI" | "fil-PH" | "fo-DK" | "fo-FO" | "fr-029" | "fr-BE" | "fr-BF" | "fr-BI" | "fr-BJ" | "fr-BL" | "fr-CA" | "fr-CD" | "fr-CF" | "fr-CG" | "fr-CH" | "fr-CI" | "fr-CM" | "fr-DJ" | "fr-DZ" | "fr-FR" | "fr-GA" | "fr-GF" | "fr-GN" | "fr-GP" | "fr-GQ" | "fr-HT" | "fr-KM" | "fr-LU" | "fr-MA" | "fr-MC" | "fr-MF" | "fr-MG" | "fr-ML" | "fr-MQ" | "fr-MR" | "fr-MU" | "fr-NC" | "fr-NE" | "fr-PF" | "fr-PM" | "fr-RE" | "fr-RW" | "fr-SC" | "fr-SN" | "fr-SY" | "fr-TD" | "fr-TG" | "fr-TN" | "fr-VU" | "fr-WF" | "fr-YT" | "fur-IT" | "fy-NL" | "ga-IE" | "gd-GB" | "gl-ES" | "gn-PY" | "gsw-CH" | "gsw-FR" | "gsw-LI" | "gu-IN" | "guz-KE" | "gv-IM" | "ha-Latn-GH" | "ha-Latn-NE" | "ha-Latn-NG" | "haw-US" | "he-IL" | "hi-IN" | "hr-BA" | "hr-HR" | "hsb-DE" | "hu-HU" | "hy-AM" | "ia-001" | "ia-FR" | "ibb-NG" | "id-ID" | "ig-NG" | "ii-CN" | "is-IS" | "it-CH" | "it-IT" | "it-SM" | "it-VA" | "iu-Cans-CA" | "iu-Latn-CA" | "ja-JP" | "jgo-CM" | "jmc-TZ" | "jv-Java-ID" | "jv-Latn-ID" | "ka-GE" | "kab-DZ" | "kam-KE" | "kde-TZ" | "kea-CV" | "khq-ML" | "ki-KE" | "kk-KZ" | "kkj-CM" | "kl-GL" | "kln-KE" | "km-KH" | "kn-IN" | "ko-KP" | "ko-KR" | "kok-IN" | "kr-NG" | "ks-Arab-IN" | "ks-Deva-IN" | "ksb-TZ" | "ksf-CM" | "ksh-DE" | "ku-Arab-IQ" | "ku-Arab-IR" | "kw-GB" | "ky-KG" | "la-001" | "lag-TZ" | "lb-LU" | "lg-UG" | "lkt-US" | "ln-AO" | "ln-CD" | "ln-CF" | "ln-CG" | "lo-LA" | "lrc-IQ" | "lrc-IR" | "lt-LT" | "lu-CD" | "luo-KE" | "luy-KE" | "lv-LV" | "mas-KE" | "mas-TZ" | "mer-KE" | "mfe-MU" | "mg-MG" | "mgh-MZ" | "mgo-CM" | "mi-NZ" | "mk-MK" | "ml-IN" | "mn-MN" | "mn-Mong-CN" | "mn-Mong-MN" | "mni-IN" | "moh-CA" | "mr-IN" | "ms-BN" | "ms-MY" | "ms-SG" | "mt-MT" | "mua-CM" | "my-MM" | "mzn-IR" | "naq-NA" | "nb-NO" | "nb-SJ" | "nd-ZW" | "nds-DE" | "nds-NL" | "ne-IN" | "ne-NP" | "nl-AW" | "nl-BE" | "nl-BQ" | "nl-CW" | "nl-NL" | "nl-SR" | "nl-SX" | "nmg-CM" | "nn-NO" | "nnh-CM" | "nqo-GN" | "nr-ZA" | "nso-ZA" | "nus-SS" | "nyn-UG" | "oc-FR" | "om-ET" | "om-KE" | "or-IN" | "os-GE" | "os-RU" | "pa-Arab-PK" | "pa-IN" | "pap-029" | "pl-PL" | "prg-001" | "prs-AF" | "ps-AF" | "pt-AO" | "pt-BR" | "pt-CH" | "pt-CV" | "pt-GQ" | "pt-GW" | "pt-LU" | "pt-MO" | "pt-MZ" | "pt-PT" | "pt-ST" | "pt-TL" | "quc-Latn-GT" | "quz-BO" | "quz-EC" | "quz-PE" | "rm-CH" | "rn-BI" | "ro-MD" | "ro-RO" | "rof-TZ" | "ru-BY" | "ru-KG" | "ru-KZ" | "ru-MD" | "ru-RU" | "ru-UA" | "rw-RW" | "rwk-TZ" | "sa-IN" | "sah-RU" | "saq-KE" | "sbp-TZ" | "sd-Arab-PK" | "sd-Deva-IN" | "se-FI" | "se-NO" | "se-SE" | "seh-MZ" | "ses-ML" | "sg-CF" | "shi-Latn-MA" | "shi-Tfng-MA" | "si-LK" | "sk-SK" | "sl-SI" | "sma-NO" | "sma-SE" | "smj-NO" | "smj-SE" | "smn-FI" | "sms-FI" | "sn-Latn-ZW" | "so-DJ" | "so-ET" | "so-KE" | "so-SO" | "sq-AL" | "sq-MK" | "sq-XK" | "sr-Cyrl-BA" | "sr-Cyrl-ME" | "sr-Cyrl-RS" | "sr-Cyrl-XK" | "sr-Latn-BA" | "sr-Latn-ME" | "sr-Latn-RS" | "sr-Latn-XK" | "ss-SZ" | "ss-ZA" | "ssy-ER" | "st-LS" | "st-ZA" | "sv-AX" | "sv-FI" | "sv-SE" | "sw-CD" | "sw-KE" | "sw-TZ" | "sw-UG" | "syr-SY" | "ta-IN" | "ta-LK" | "ta-MY" | "ta-SG" | "te-IN" | "teo-KE" | "teo-UG" | "tg-Cyrl-TJ" | "th-TH" | "ti-ER" | "ti-ET" | "tig-ER" | "tk-TM" | "tn-BW" | "tn-ZA" | "to-TO" | "tr-CY" | "tr-TR" | "ts-ZA" | "tt-RU" | "twq-NE" | "tzm-Arab-MA" | "tzm-Latn-DZ" | "tzm-Latn-MA" | "tzm-Tfng-MA" | "ug-CN" | "uk-UA" | "ur-IN" | "ur-PK" | "uz-Arab-AF" | "uz-Cyrl-UZ" | "uz-Latn-UZ" | "vai-Latn-LR" | "vai-Vaii-LR" | "ve-ZA" | "vi-VN" | "vo-001" | "vun-TZ" | "wae-CH" | "wal-ET" | "wo-SN" | "xh-ZA" | "xog-UG" | "yav-CM" | "yi-001" | "yo-BJ" | "yo-NG" | "zgh-Tfng-MA" | "zh-CN" | "zh-Hans-HK" | "zh-Hans-MO" | "zh-HK" | "zh-MO" | "zh-SG" | "zh-TW" | "zu-ZA";
|
|
3
|
+
declare type CultureInfo = NoneInvariantCultureInfo | CultureInvariant;
|
|
4
|
+
export default CultureInfo;
|
|
5
|
+
export declare const InvariantCulture: "Invariant";
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const json_stable_stringify_1 = __importDefault(require("json-stable-stringify"));
|
|
7
|
+
class DirtyValueCalculator {
|
|
8
|
+
setOriginalValue(value) {
|
|
9
|
+
this._originalHashValue = this.computeHash(value);
|
|
10
|
+
}
|
|
11
|
+
isDirty(currentValue) {
|
|
12
|
+
return this.computeHash(currentValue) !== this._originalHashValue;
|
|
13
|
+
}
|
|
14
|
+
computeHash(value) {
|
|
15
|
+
return this.getStringHash(`${typeof value}_${json_stable_stringify_1.default(value)}`);
|
|
16
|
+
}
|
|
17
|
+
getStringHash(str) {
|
|
18
|
+
let hash1 = 5381;
|
|
19
|
+
let hash2 = 52711;
|
|
20
|
+
let i = str.length;
|
|
21
|
+
while (i--) {
|
|
22
|
+
const char = str.charCodeAt(i);
|
|
23
|
+
hash1 = (hash1 * 33) ^ char;
|
|
24
|
+
hash2 = (hash2 * 33) ^ char;
|
|
25
|
+
}
|
|
26
|
+
return ((hash1 >>> 0) << 12) + (hash2 >>> 0);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.default = DirtyValueCalculator;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { MapStringTo, Object_Unknown } from "./base-types";
|
|
2
|
+
import Link from "./link";
|
|
3
|
+
export declare class EntityLink extends Link {
|
|
4
|
+
properties: MapStringTo<Object_Unknown>;
|
|
5
|
+
renditions: MapStringTo<Object_Unknown>;
|
|
6
|
+
permissions: Array<string>;
|
|
7
|
+
identifier: string;
|
|
8
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.EntityLink = void 0;
|
|
16
|
+
const ta_json_1 = require("ta-json");
|
|
17
|
+
const link_1 = __importDefault(require("./link"));
|
|
18
|
+
let EntityLink = class EntityLink extends link_1.default {
|
|
19
|
+
};
|
|
20
|
+
__decorate([
|
|
21
|
+
ta_json_1.JsonProperty("properties"),
|
|
22
|
+
__metadata("design:type", Object)
|
|
23
|
+
], EntityLink.prototype, "properties", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
ta_json_1.JsonProperty("renditions"),
|
|
26
|
+
__metadata("design:type", Object)
|
|
27
|
+
], EntityLink.prototype, "renditions", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
ta_json_1.JsonProperty("permissions"),
|
|
30
|
+
ta_json_1.JsonElementType(String),
|
|
31
|
+
__metadata("design:type", Array)
|
|
32
|
+
], EntityLink.prototype, "permissions", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
ta_json_1.JsonProperty("identifier"),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], EntityLink.prototype, "identifier", void 0);
|
|
37
|
+
EntityLink = __decorate([
|
|
38
|
+
ta_json_1.JsonObject()
|
|
39
|
+
], EntityLink);
|
|
40
|
+
exports.EntityLink = EntityLink;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export default class ErrorMessages {
|
|
2
|
+
static readonly ContentHubClient: Readonly<{
|
|
3
|
+
IncompatibleVersionsPre3_0: string;
|
|
4
|
+
IncompatibleMinimumVersion: string;
|
|
5
|
+
IncompatibleVersion: string;
|
|
6
|
+
}>;
|
|
7
|
+
static readonly QueryingClient: Readonly<{
|
|
8
|
+
MultipleResultsWhenOneExpected: string;
|
|
9
|
+
MultipleResults: string;
|
|
10
|
+
}>;
|
|
11
|
+
static readonly EntitiesClient: Readonly<{
|
|
12
|
+
UnableToExtractEntityIdFromHeader: string;
|
|
13
|
+
UnableToExtractLocationHeaderFromResponse: string;
|
|
14
|
+
}>;
|
|
15
|
+
static readonly PoliciesClient: Readonly<{
|
|
16
|
+
RelatedIdCannotBeNull: string;
|
|
17
|
+
}>;
|
|
18
|
+
static readonly CultureLoader: Readonly<{
|
|
19
|
+
CouldNotFindCultures: string;
|
|
20
|
+
}>;
|
|
21
|
+
static readonly NoPermissionsOnNewEntity = "Cannot load permissions on an entity that has not been persisted yet.";
|
|
22
|
+
static readonly UnknownMemberCondition = "MemberCondition '{0}' is not supported.";
|
|
23
|
+
static readonly UnsupportedMemberDefinition = "MemberDefinition with name '{0}' and type '{1}' is not supported.";
|
|
24
|
+
static readonly NoRoleSpecifiedForSelfRelation = "Relation with name '{0}' is self-relation, but had no role specified";
|
|
25
|
+
static readonly Entity: Readonly<{
|
|
26
|
+
CannotLazyLoad: string;
|
|
27
|
+
CultureRequired: string;
|
|
28
|
+
CultureNotSupported: string;
|
|
29
|
+
SelfReferencingRelation: string;
|
|
30
|
+
RelationNameMustMatch: string;
|
|
31
|
+
NoPermissionsOnNewEntity: string;
|
|
32
|
+
PropertyNotFound: string;
|
|
33
|
+
PropertyDoesNotExist: string;
|
|
34
|
+
RelationNotFound: string;
|
|
35
|
+
RelationDoesNotExist: string;
|
|
36
|
+
MultipleRelationsFound: string;
|
|
37
|
+
SetIdentifierOnExistingEntity: string;
|
|
38
|
+
}>;
|
|
39
|
+
static readonly EntityFactory: Readonly<{
|
|
40
|
+
DefinitionDoesNotExist: string;
|
|
41
|
+
}>;
|
|
42
|
+
static readonly PropertyFactory: Readonly<{
|
|
43
|
+
MustBeCultureSensitive: string;
|
|
44
|
+
CannotBeCultureSensitive: string;
|
|
45
|
+
}>;
|
|
46
|
+
static readonly UnsupportedRelation = "A relation with cardinality '{0}' and role '{1}' is not supported.";
|
|
47
|
+
static readonly UnknownOptionListType = "Option list type with name '{0}' is not supported.";
|
|
48
|
+
static readonly FinalLifeCycleStatusMapper: Readonly<{
|
|
49
|
+
UnknownStatus: string;
|
|
50
|
+
}>;
|
|
51
|
+
static readonly RelationRoleMapper: Readonly<{
|
|
52
|
+
UnknownRole: string;
|
|
53
|
+
}>;
|
|
54
|
+
static readonly RelationManager: Readonly<{
|
|
55
|
+
RelationWasAlreadyAdded: string;
|
|
56
|
+
}>;
|
|
57
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class ErrorMessages {
|
|
4
|
+
}
|
|
5
|
+
exports.default = ErrorMessages;
|
|
6
|
+
ErrorMessages.ContentHubClient = Object.freeze({
|
|
7
|
+
IncompatibleVersionsPre3_0: "The JavaScript SDK version and server version are incompatible. The Web SDK is only supported in M 3.0 and later.",
|
|
8
|
+
IncompatibleMinimumVersion: "The JavaScript SDK version ({0}) and server version ({1}) are incompatible. Server requires SDK version of minimum '{2}'.",
|
|
9
|
+
IncompatibleVersion: "The JavaScript SDK version ({0}) and server version ({1}) are incompatible because the SDK is newer than the server. " +
|
|
10
|
+
"Please use an older version of the SDK.",
|
|
11
|
+
});
|
|
12
|
+
ErrorMessages.QueryingClient = Object.freeze({
|
|
13
|
+
MultipleResultsWhenOneExpected: "Server returned multiple entities, when only one was expected.",
|
|
14
|
+
MultipleResults: "Query returned multiple results.",
|
|
15
|
+
});
|
|
16
|
+
ErrorMessages.EntitiesClient = Object.freeze({
|
|
17
|
+
UnableToExtractEntityIdFromHeader: "Unable to extract entity id from location header.",
|
|
18
|
+
UnableToExtractLocationHeaderFromResponse: "Unable to extract location header from response.",
|
|
19
|
+
});
|
|
20
|
+
ErrorMessages.PoliciesClient = Object.freeze({
|
|
21
|
+
RelatedIdCannotBeNull: "The id of the entity this policy relates to cannot be null.",
|
|
22
|
+
});
|
|
23
|
+
ErrorMessages.CultureLoader = Object.freeze({
|
|
24
|
+
CouldNotFindCultures: "Could not find any cultures.",
|
|
25
|
+
});
|
|
26
|
+
ErrorMessages.NoPermissionsOnNewEntity = "Cannot load permissions on an entity that has not been persisted yet.";
|
|
27
|
+
ErrorMessages.UnknownMemberCondition = "MemberCondition '{0}' is not supported.";
|
|
28
|
+
ErrorMessages.UnsupportedMemberDefinition = "MemberDefinition with name '{0}' and type '{1}' is not supported.";
|
|
29
|
+
ErrorMessages.NoRoleSpecifiedForSelfRelation = "Relation with name '{0}' is self-relation, but had no role specified";
|
|
30
|
+
// Entity
|
|
31
|
+
ErrorMessages.Entity = Object.freeze({
|
|
32
|
+
CannotLazyLoad: "Cannot do any lazy loading on an entity that has not been persisted yet.",
|
|
33
|
+
CultureRequired: "Culture is required for culture sensitive properties.",
|
|
34
|
+
CultureNotSupported: "Culture insensitive properties do not support cultures.",
|
|
35
|
+
SelfReferencingRelation: "Relation '{0}' is self referencing and multiple relation instances match. Specify the relation role.",
|
|
36
|
+
RelationNameMustMatch: "Relation names do not match.",
|
|
37
|
+
NoPermissionsOnNewEntity: "Cannot load permissions on an entity that has not been persisted yet.",
|
|
38
|
+
PropertyNotFound: "Property with name '{0}' does not exist or is not loaded on entity with id '{1}' and definition '{2}'.",
|
|
39
|
+
PropertyDoesNotExist: "Property with name '{0}' does not exist on definition '{1}'.",
|
|
40
|
+
RelationNotFound: "Relation with name '{0}' does not exist or is not loaded on entity with id '{1}' and definition '{2}'.",
|
|
41
|
+
RelationDoesNotExist: "Relation with name '{0}' does not exist on definition '{1}'.",
|
|
42
|
+
MultipleRelationsFound: "Found multiple relations with the same name and role.",
|
|
43
|
+
SetIdentifierOnExistingEntity: "Cannot set identifier on an existing entity.",
|
|
44
|
+
});
|
|
45
|
+
ErrorMessages.EntityFactory = Object.freeze({
|
|
46
|
+
DefinitionDoesNotExist: "Definition with name '{0}' does not exist.",
|
|
47
|
+
});
|
|
48
|
+
ErrorMessages.PropertyFactory = Object.freeze({
|
|
49
|
+
MustBeCultureSensitive: "Property with name '{0}' must be culture sensitive.",
|
|
50
|
+
CannotBeCultureSensitive: "Property with name '{0}' can't be culture sensitive.",
|
|
51
|
+
});
|
|
52
|
+
// Relation mapper
|
|
53
|
+
ErrorMessages.UnsupportedRelation = "A relation with cardinality '{0}' and role '{1}' is not supported.";
|
|
54
|
+
// Option list
|
|
55
|
+
ErrorMessages.UnknownOptionListType = "Option list type with name '{0}' is not supported.";
|
|
56
|
+
ErrorMessages.FinalLifeCycleStatusMapper = Object.freeze({
|
|
57
|
+
UnknownStatus: "LifeCycleStatus '{0}' is not supported.",
|
|
58
|
+
});
|
|
59
|
+
ErrorMessages.RelationRoleMapper = Object.freeze({
|
|
60
|
+
UnknownRole: "Role '{0}' is not supported.",
|
|
61
|
+
});
|
|
62
|
+
ErrorMessages.RelationManager = Object.freeze({
|
|
63
|
+
RelationWasAlreadyAdded: "Relation '{0}' with role '{1}' was already added.",
|
|
64
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ArgumentError = void 0;
|
|
4
|
+
class ArgumentError extends Error {
|
|
5
|
+
constructor(message) {
|
|
6
|
+
super(message);
|
|
7
|
+
this.name = "ArgumentError";
|
|
8
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.ArgumentError = ArgumentError;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AuthenticationError = void 0;
|
|
4
|
+
class AuthenticationError extends Error {
|
|
5
|
+
constructor(message, internalError) {
|
|
6
|
+
super(message);
|
|
7
|
+
this.name = "AuthenticationError";
|
|
8
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
9
|
+
this.internalError = internalError;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.AuthenticationError = AuthenticationError;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BadRequestError = void 0;
|
|
4
|
+
class BadRequestError extends Error {
|
|
5
|
+
constructor(message, response) {
|
|
6
|
+
super(message);
|
|
7
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
8
|
+
this.response = response;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.BadRequestError = BadRequestError;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ForbiddenError = void 0;
|
|
4
|
+
class ForbiddenError extends Error {
|
|
5
|
+
constructor(message) {
|
|
6
|
+
super(message);
|
|
7
|
+
this.name = "ForbiddenError";
|
|
8
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.ForbiddenError = ForbiddenError;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InternalError = void 0;
|
|
4
|
+
class InternalError extends Error {
|
|
5
|
+
constructor(message) {
|
|
6
|
+
super(message);
|
|
7
|
+
this.name = "InternalError";
|
|
8
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.InternalError = InternalError;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InvalidOperationError = void 0;
|
|
4
|
+
class InvalidOperationError extends Error {
|
|
5
|
+
constructor(message) {
|
|
6
|
+
super(message);
|
|
7
|
+
this.name = "InvalidOperationError";
|
|
8
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.InvalidOperationError = InvalidOperationError;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NotFoundError = void 0;
|
|
4
|
+
class NotFoundError extends Error {
|
|
5
|
+
constructor(message, response) {
|
|
6
|
+
super(message);
|
|
7
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
8
|
+
this.response = response;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.NotFoundError = NotFoundError;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NotImplementedError = void 0;
|
|
4
|
+
class NotImplementedError extends Error {
|
|
5
|
+
constructor(message) {
|
|
6
|
+
super(message);
|
|
7
|
+
this.name = "NotImplementedError";
|
|
8
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.NotImplementedError = NotImplementedError;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NotLoadedError = void 0;
|
|
4
|
+
class NotLoadedError extends Error {
|
|
5
|
+
constructor(message) {
|
|
6
|
+
super(message);
|
|
7
|
+
this.name = "NotLoadedError";
|
|
8
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.NotLoadedError = NotLoadedError;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NotSupportedError = void 0;
|
|
4
|
+
class NotSupportedError extends Error {
|
|
5
|
+
constructor(message) {
|
|
6
|
+
super(message);
|
|
7
|
+
this.name = "NotSupportedError";
|
|
8
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.NotSupportedError = NotSupportedError;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SchemaError = void 0;
|
|
4
|
+
class SchemaError extends Error {
|
|
5
|
+
constructor(message) {
|
|
6
|
+
super(message);
|
|
7
|
+
this.name = "SchemaError";
|
|
8
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.SchemaError = SchemaError;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ValidationError = void 0;
|
|
4
|
+
class ValidationError extends Error {
|
|
5
|
+
constructor(message, ...failures) {
|
|
6
|
+
super(message);
|
|
7
|
+
this.name = "ValidationError";
|
|
8
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
9
|
+
this.failures = [...(failures !== null && failures !== void 0 ? failures : [])];
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.ValidationError = ValidationError;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ValidationFailure = void 0;
|
|
4
|
+
class ValidationFailure {
|
|
5
|
+
constructor(message, source) {
|
|
6
|
+
this.message = message !== null && message !== void 0 ? message : null;
|
|
7
|
+
this.source = source !== null && source !== void 0 ? source : null;
|
|
8
|
+
}
|
|
9
|
+
toString() {
|
|
10
|
+
var _a, _b;
|
|
11
|
+
return `${(_a = this.source) !== null && _a !== void 0 ? _a : "No source was specified"}: ${(_b = this.message) !== null && _b !== void 0 ? _b : "No message was specified"}`;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.ValidationFailure = ValidationFailure;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ResponseMessage } from "../clients/response-message";
|
|
2
|
+
export declare class WebApiError extends Error {
|
|
3
|
+
readonly name: string;
|
|
4
|
+
/**
|
|
5
|
+
* The HTTP response status code.
|
|
6
|
+
*/
|
|
7
|
+
readonly statusCode: number;
|
|
8
|
+
/**
|
|
9
|
+
* The response message.
|
|
10
|
+
*/
|
|
11
|
+
readonly responseMessage: ResponseMessage;
|
|
12
|
+
constructor(message: string, statusCode: number, responseMessage: ResponseMessage);
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WebApiError = void 0;
|
|
4
|
+
class WebApiError extends Error {
|
|
5
|
+
constructor(message, statusCode, responseMessage) {
|
|
6
|
+
super(message);
|
|
7
|
+
this.name = "WebApiError";
|
|
8
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
9
|
+
this.statusCode = statusCode;
|
|
10
|
+
this.responseMessage = responseMessage;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.WebApiError = WebApiError;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { IContentHubClient } from "../clients/content-hub-client";
|
|
2
|
+
import { ICultureLoader } from "../clients/culture-loader";
|
|
3
|
+
import { IExtendedContentHubClient } from "../clients/extended-client";
|
|
4
|
+
import { IEntityDefinition } from "../contracts/base";
|
|
5
|
+
import { Entity, IEntity } from "../contracts/base/entity";
|
|
6
|
+
import { EntityBase } from "../contracts/base/entity-base";
|
|
7
|
+
import { ICultureLoadOption } from "../contracts/querying/culture-load-option";
|
|
8
|
+
import { TypedEntityCreator, TypedEntityCreatorBase } from "../mappers/typed-entity-creator";
|
|
9
|
+
import { IRelationFactory } from "./relation-factory";
|
|
10
|
+
/**
|
|
11
|
+
* Factory to create {@link IEntity} instances.
|
|
12
|
+
*/
|
|
13
|
+
export interface IEntityFactory {
|
|
14
|
+
/**
|
|
15
|
+
* Create an {@link IEntity} instance for the {@link IEntityDefinition} for which a definition name is specified.
|
|
16
|
+
* @param definitionName - Name of the definition from which to create an entity
|
|
17
|
+
* @param cultureLoadOption - Culture load option
|
|
18
|
+
*/
|
|
19
|
+
createAsync(definitionName: string, cultureLoadOption?: ICultureLoadOption): Promise<IEntity>;
|
|
20
|
+
/**
|
|
21
|
+
* Create an {@link IEntity} instance for the {@link IEntityDefinition} that is specified.
|
|
22
|
+
* @param definition - The definition from which to create an entity
|
|
23
|
+
* @param cultureLoadOption - Culture load option
|
|
24
|
+
*/
|
|
25
|
+
createAsync(definition: IEntityDefinition, cultureLoadOption?: ICultureLoadOption): Promise<IEntity>;
|
|
26
|
+
}
|
|
27
|
+
export declare abstract class EntityFactoryBase<T extends EntityBase> implements IEntityFactory {
|
|
28
|
+
private readonly _client;
|
|
29
|
+
private readonly _cultureLoader;
|
|
30
|
+
private readonly _relationFactory;
|
|
31
|
+
private readonly _entityCreator;
|
|
32
|
+
constructor(client: IContentHubClient, relationFactory: IRelationFactory, cultureLoader: ICultureLoader, entityCreator: TypedEntityCreatorBase<T>);
|
|
33
|
+
createAsync(param: string | IEntityDefinition, cultureLoadOption?: ICultureLoadOption): Promise<IEntity>;
|
|
34
|
+
private getEntityDefinitionAsync;
|
|
35
|
+
}
|
|
36
|
+
export declare class EntityFactory extends EntityFactoryBase<Entity> {
|
|
37
|
+
constructor(client: IExtendedContentHubClient, relationFactory: IRelationFactory, cultureLoader: ICultureLoader, entityCreator: TypedEntityCreator);
|
|
38
|
+
}
|