@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,101 @@
|
|
|
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
|
+
exports.EntityLoadConfigurationBuilder = void 0;
|
|
7
|
+
const guard_1 = __importDefault(require("../../guard"));
|
|
8
|
+
const culture_load_option_1 = require("./culture-load-option");
|
|
9
|
+
const entity_load_configuration_1 = require("./entity-load-configuration");
|
|
10
|
+
const load_options_1 = require("./load-options");
|
|
11
|
+
const property_load_option_1 = require("./property-load-option");
|
|
12
|
+
const relation_load_option_1 = require("./relation-load-option");
|
|
13
|
+
const relation_specification_1 = require("./relation-specification");
|
|
14
|
+
class EntityLoadConfigurationBuilder {
|
|
15
|
+
constructor(entityLoadConfiguration) {
|
|
16
|
+
this._entityLoadConfiguration = new entity_load_configuration_1.EntityLoadConfiguration();
|
|
17
|
+
if (entityLoadConfiguration)
|
|
18
|
+
this._entityLoadConfiguration = entityLoadConfiguration.deepClone();
|
|
19
|
+
}
|
|
20
|
+
inCultures(option) {
|
|
21
|
+
guard_1.default.notNullOrUndefined(option);
|
|
22
|
+
if (option instanceof Array) {
|
|
23
|
+
this._entityLoadConfiguration.cultureLoadOption =
|
|
24
|
+
this._entityLoadConfiguration.cultureLoadOption || new culture_load_option_1.CultureLoadOption();
|
|
25
|
+
this._entityLoadConfiguration.cultureLoadOption.loadOption = load_options_1.LoadOption.Custom;
|
|
26
|
+
this._entityLoadConfiguration.cultureLoadOption.cultures = [
|
|
27
|
+
...new Set((this._entityLoadConfiguration.cultureLoadOption.cultures || []).concat(option)),
|
|
28
|
+
];
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
this._entityLoadConfiguration.cultureLoadOption =
|
|
32
|
+
this._entityLoadConfiguration.cultureLoadOption || new culture_load_option_1.CultureLoadOption();
|
|
33
|
+
this._entityLoadConfiguration.cultureLoadOption.loadOption = option;
|
|
34
|
+
}
|
|
35
|
+
return this;
|
|
36
|
+
}
|
|
37
|
+
inCulture(culture) {
|
|
38
|
+
guard_1.default.notUndefined(culture);
|
|
39
|
+
guard_1.default.stringNotNullOrEmpty(culture);
|
|
40
|
+
return this.inCultures([culture]);
|
|
41
|
+
}
|
|
42
|
+
withProperties(option) {
|
|
43
|
+
guard_1.default.notNullOrUndefined(option);
|
|
44
|
+
if (option instanceof Array) {
|
|
45
|
+
this._entityLoadConfiguration.propertyLoadOption =
|
|
46
|
+
this._entityLoadConfiguration.propertyLoadOption || new property_load_option_1.PropertyLoadOption();
|
|
47
|
+
this._entityLoadConfiguration.propertyLoadOption.loadOption = load_options_1.LoadOption.Custom;
|
|
48
|
+
this._entityLoadConfiguration.propertyLoadOption.properties = [
|
|
49
|
+
...new Set((this._entityLoadConfiguration.propertyLoadOption.properties || []).concat(option)),
|
|
50
|
+
];
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
this._entityLoadConfiguration.propertyLoadOption =
|
|
54
|
+
this._entityLoadConfiguration.propertyLoadOption || new property_load_option_1.PropertyLoadOption();
|
|
55
|
+
this._entityLoadConfiguration.propertyLoadOption.loadOption = option;
|
|
56
|
+
}
|
|
57
|
+
return this;
|
|
58
|
+
}
|
|
59
|
+
withProperty(property) {
|
|
60
|
+
guard_1.default.notUndefined(property);
|
|
61
|
+
guard_1.default.stringNotNullOrEmpty(property);
|
|
62
|
+
return this.withProperties([property]);
|
|
63
|
+
}
|
|
64
|
+
withRelations(option) {
|
|
65
|
+
guard_1.default.notNullOrUndefined(option);
|
|
66
|
+
if (option instanceof Array) {
|
|
67
|
+
let relationSpecifications = option.map(relation => {
|
|
68
|
+
return typeof relation === "string" ? new relation_specification_1.RelationSpecification(relation) : relation;
|
|
69
|
+
});
|
|
70
|
+
this._entityLoadConfiguration.relationLoadOption =
|
|
71
|
+
this._entityLoadConfiguration.relationLoadOption || new relation_load_option_1.RelationLoadOption();
|
|
72
|
+
this._entityLoadConfiguration.relationLoadOption.loadOption = load_options_1.LoadOption.Custom;
|
|
73
|
+
relationSpecifications = relationSpecifications.filter(value => {
|
|
74
|
+
return (this._entityLoadConfiguration.relationLoadOption.relations.findIndex(relationValue => {
|
|
75
|
+
if (typeof value === "string") {
|
|
76
|
+
return relationValue.name === value;
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
return relationValue.deepEquals(value);
|
|
80
|
+
}
|
|
81
|
+
}) === -1);
|
|
82
|
+
});
|
|
83
|
+
this._entityLoadConfiguration.relationLoadOption.relations = (this._entityLoadConfiguration.relationLoadOption.relations || []).concat(relationSpecifications);
|
|
84
|
+
}
|
|
85
|
+
else {
|
|
86
|
+
this._entityLoadConfiguration.relationLoadOption =
|
|
87
|
+
this._entityLoadConfiguration.relationLoadOption || new relation_load_option_1.RelationLoadOption();
|
|
88
|
+
this._entityLoadConfiguration.relationLoadOption.loadOption = option;
|
|
89
|
+
}
|
|
90
|
+
return this;
|
|
91
|
+
}
|
|
92
|
+
withRelation(relation, role) {
|
|
93
|
+
guard_1.default.notUndefined(relation);
|
|
94
|
+
guard_1.default.stringNotNullOrEmpty(relation);
|
|
95
|
+
return this.withRelations([new relation_specification_1.RelationSpecification(relation, role)]);
|
|
96
|
+
}
|
|
97
|
+
build() {
|
|
98
|
+
return this._entityLoadConfiguration.deepClone();
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
exports.EntityLoadConfigurationBuilder = EntityLoadConfigurationBuilder;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { ICultureLoadOption } from "./culture-load-option";
|
|
2
|
+
import { IEntityLoadConfigurationBuilder } from "./entity-load-configuration-builder";
|
|
3
|
+
import { IPropertyLoadOption } from "./property-load-option";
|
|
4
|
+
import { IRelationLoadOption } from "./relation-load-option";
|
|
5
|
+
export interface IEntityLoadConfiguration {
|
|
6
|
+
/**
|
|
7
|
+
* Gets the culture load option.
|
|
8
|
+
*/
|
|
9
|
+
cultureLoadOption: ICultureLoadOption;
|
|
10
|
+
/**
|
|
11
|
+
* Gets the property load option.
|
|
12
|
+
*/
|
|
13
|
+
propertyLoadOption: IPropertyLoadOption;
|
|
14
|
+
/**
|
|
15
|
+
* Gets the relation load option.
|
|
16
|
+
*/
|
|
17
|
+
relationLoadOption: IRelationLoadOption;
|
|
18
|
+
/**
|
|
19
|
+
* Creates a {@link IEntityLoadConfigurationBuilder} from the current {@link IEntityLoadConfiguration}.
|
|
20
|
+
* The builder can extend or overwrite the configuration of the current {@link IEntityLoadConfiguration}.
|
|
21
|
+
*/
|
|
22
|
+
builder(): IEntityLoadConfigurationBuilder;
|
|
23
|
+
/**
|
|
24
|
+
* Creates a deep clone of this instance.
|
|
25
|
+
*/
|
|
26
|
+
deepClone(): IEntityLoadConfiguration;
|
|
27
|
+
}
|
|
28
|
+
export declare class EntityLoadConfiguration implements IEntityLoadConfiguration {
|
|
29
|
+
/**
|
|
30
|
+
* Only load system properties.
|
|
31
|
+
*/
|
|
32
|
+
static Minimal: IEntityLoadConfiguration;
|
|
33
|
+
/**
|
|
34
|
+
* Gets the entities in default culture with all properties and no relations.
|
|
35
|
+
*/
|
|
36
|
+
static Default: IEntityLoadConfiguration;
|
|
37
|
+
/**
|
|
38
|
+
* Get the entities in default culture with all properties and relations.
|
|
39
|
+
*/
|
|
40
|
+
static DefaultCultureFull: IEntityLoadConfiguration;
|
|
41
|
+
/**
|
|
42
|
+
* Get the entity in all installed cultures with all properties and relations.
|
|
43
|
+
*/
|
|
44
|
+
static Full: IEntityLoadConfiguration;
|
|
45
|
+
cultureLoadOption: ICultureLoadOption;
|
|
46
|
+
propertyLoadOption: IPropertyLoadOption;
|
|
47
|
+
relationLoadOption: IRelationLoadOption;
|
|
48
|
+
constructor(cultureLoadOption?: ICultureLoadOption, propertyLoadOption?: IPropertyLoadOption, relationLoadOption?: IRelationLoadOption);
|
|
49
|
+
builder(): IEntityLoadConfigurationBuilder;
|
|
50
|
+
deepClone(): IEntityLoadConfiguration;
|
|
51
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
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 EntityLoadConfiguration_1;
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.EntityLoadConfiguration = void 0;
|
|
14
|
+
const ta_json_1 = require("ta-json");
|
|
15
|
+
const culture_load_option_1 = require("./culture-load-option");
|
|
16
|
+
const entity_load_configuration_builder_1 = require("./entity-load-configuration-builder");
|
|
17
|
+
const property_load_option_1 = require("./property-load-option");
|
|
18
|
+
const relation_load_option_1 = require("./relation-load-option");
|
|
19
|
+
let EntityLoadConfiguration = EntityLoadConfiguration_1 = class EntityLoadConfiguration {
|
|
20
|
+
constructor(cultureLoadOption, propertyLoadOption, relationLoadOption) {
|
|
21
|
+
if (cultureLoadOption)
|
|
22
|
+
this.cultureLoadOption = cultureLoadOption;
|
|
23
|
+
if (propertyLoadOption)
|
|
24
|
+
this.propertyLoadOption = propertyLoadOption;
|
|
25
|
+
if (relationLoadOption)
|
|
26
|
+
this.relationLoadOption = relationLoadOption;
|
|
27
|
+
}
|
|
28
|
+
builder() {
|
|
29
|
+
return new entity_load_configuration_builder_1.EntityLoadConfigurationBuilder(this);
|
|
30
|
+
}
|
|
31
|
+
deepClone() {
|
|
32
|
+
return new EntityLoadConfiguration_1(this.cultureLoadOption && this.cultureLoadOption.deepClone(), this.propertyLoadOption && this.propertyLoadOption.deepClone(), this.relationLoadOption && this.relationLoadOption.deepClone());
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Only load system properties.
|
|
37
|
+
*/
|
|
38
|
+
EntityLoadConfiguration.Minimal = new EntityLoadConfiguration_1(culture_load_option_1.CultureLoadOption.None, property_load_option_1.PropertyLoadOption.None, relation_load_option_1.RelationLoadOption.None);
|
|
39
|
+
/**
|
|
40
|
+
* Gets the entities in default culture with all properties and no relations.
|
|
41
|
+
*/
|
|
42
|
+
EntityLoadConfiguration.Default = new EntityLoadConfiguration_1(culture_load_option_1.CultureLoadOption.Default, property_load_option_1.PropertyLoadOption.All, relation_load_option_1.RelationLoadOption.None);
|
|
43
|
+
/**
|
|
44
|
+
* Get the entities in default culture with all properties and relations.
|
|
45
|
+
*/
|
|
46
|
+
EntityLoadConfiguration.DefaultCultureFull = new EntityLoadConfiguration_1(culture_load_option_1.CultureLoadOption.Default, property_load_option_1.PropertyLoadOption.All, relation_load_option_1.RelationLoadOption.All);
|
|
47
|
+
/**
|
|
48
|
+
* Get the entity in all installed cultures with all properties and relations.
|
|
49
|
+
*/
|
|
50
|
+
EntityLoadConfiguration.Full = new EntityLoadConfiguration_1(culture_load_option_1.CultureLoadOption.All, property_load_option_1.PropertyLoadOption.All, relation_load_option_1.RelationLoadOption.All);
|
|
51
|
+
__decorate([
|
|
52
|
+
ta_json_1.JsonProperty("culture_option"),
|
|
53
|
+
__metadata("design:type", Object)
|
|
54
|
+
], EntityLoadConfiguration.prototype, "cultureLoadOption", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
ta_json_1.JsonProperty("property_option"),
|
|
57
|
+
__metadata("design:type", Object)
|
|
58
|
+
], EntityLoadConfiguration.prototype, "propertyLoadOption", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
ta_json_1.JsonProperty("relation_option"),
|
|
61
|
+
__metadata("design:type", Object)
|
|
62
|
+
], EntityLoadConfiguration.prototype, "relationLoadOption", void 0);
|
|
63
|
+
EntityLoadConfiguration = EntityLoadConfiguration_1 = __decorate([
|
|
64
|
+
ta_json_1.JsonObject(),
|
|
65
|
+
__metadata("design:paramtypes", [Object, Object, Object])
|
|
66
|
+
], EntityLoadConfiguration);
|
|
67
|
+
exports.EntityLoadConfiguration = EntityLoadConfiguration;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Nullable } from "../../base-types";
|
|
2
|
+
import CultureInfo from "../../culture-info";
|
|
3
|
+
import { IQueryLoadConfiguration } from "./query-load-configuration";
|
|
4
|
+
/**
|
|
5
|
+
* Specifies if and how resulting entities should be loaded.
|
|
6
|
+
*/
|
|
7
|
+
export declare class EntityLoadOption {
|
|
8
|
+
/**
|
|
9
|
+
* Indicates if entities should be loaded.
|
|
10
|
+
*/
|
|
11
|
+
loadEntities: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* The names of the properties to load with the entities.
|
|
14
|
+
* If the value contains "*", all properties will be loaded.
|
|
15
|
+
* If the value is null, no properties will be loaded.
|
|
16
|
+
*
|
|
17
|
+
* The default value is ["*"], which means all properties will be loaded.
|
|
18
|
+
*/
|
|
19
|
+
propertiesToLoad: Nullable<Array<string>>;
|
|
20
|
+
/**
|
|
21
|
+
* The names of the relations to load with the entities.
|
|
22
|
+
* If the value is null, no relations will be loaded.
|
|
23
|
+
*
|
|
24
|
+
* The default value is null, which mean no relations will be loaded.
|
|
25
|
+
*/
|
|
26
|
+
relationsToLoad: Nullable<Array<string>>;
|
|
27
|
+
/**
|
|
28
|
+
* The cultures to load the entities in.
|
|
29
|
+
* If not specified, the entities will only be loaded in the invariant-culture.
|
|
30
|
+
*
|
|
31
|
+
* If the collection contains value "*", the entities will be loaded in all installed cultures.
|
|
32
|
+
*/
|
|
33
|
+
culturesToLoad?: Array<CultureInfo | "*">;
|
|
34
|
+
toQueryLoadConfiguration(): IQueryLoadConfiguration;
|
|
35
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.EntityLoadOption = void 0;
|
|
13
|
+
const ta_json_1 = require("ta-json");
|
|
14
|
+
const culture_load_option_1 = require("./culture-load-option");
|
|
15
|
+
const property_load_option_1 = require("./property-load-option");
|
|
16
|
+
const query_load_configuration_1 = require("./query-load-configuration");
|
|
17
|
+
const relation_load_option_1 = require("./relation-load-option");
|
|
18
|
+
/**
|
|
19
|
+
* Specifies if and how resulting entities should be loaded.
|
|
20
|
+
*/
|
|
21
|
+
let EntityLoadOption = class EntityLoadOption {
|
|
22
|
+
constructor() {
|
|
23
|
+
/**
|
|
24
|
+
* The names of the properties to load with the entities.
|
|
25
|
+
* If the value contains "*", all properties will be loaded.
|
|
26
|
+
* If the value is null, no properties will be loaded.
|
|
27
|
+
*
|
|
28
|
+
* The default value is ["*"], which means all properties will be loaded.
|
|
29
|
+
*/
|
|
30
|
+
this.propertiesToLoad = ["*"];
|
|
31
|
+
/**
|
|
32
|
+
* The names of the relations to load with the entities.
|
|
33
|
+
* If the value is null, no relations will be loaded.
|
|
34
|
+
*
|
|
35
|
+
* The default value is null, which mean no relations will be loaded.
|
|
36
|
+
*/
|
|
37
|
+
this.relationsToLoad = null;
|
|
38
|
+
}
|
|
39
|
+
toQueryLoadConfiguration() {
|
|
40
|
+
const result = new query_load_configuration_1.QueryLoadConfiguration();
|
|
41
|
+
result.loadEntities = this.loadEntities;
|
|
42
|
+
// Map properties to load
|
|
43
|
+
if (this.propertiesToLoad === null || this.propertiesToLoad.length === 0) {
|
|
44
|
+
result.propertyLoadOption = property_load_option_1.PropertyLoadOption.None;
|
|
45
|
+
}
|
|
46
|
+
else if (this.propertiesToLoad.includes("*")) {
|
|
47
|
+
result.propertyLoadOption = property_load_option_1.PropertyLoadOption.All;
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
result.propertyLoadOption = new property_load_option_1.PropertyLoadOption(this.propertiesToLoad);
|
|
51
|
+
}
|
|
52
|
+
// Map relations to load
|
|
53
|
+
if (this.relationsToLoad === null || this.relationsToLoad.length === 0) {
|
|
54
|
+
result.relationLoadOption = relation_load_option_1.RelationLoadOption.None;
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
result.relationLoadOption = new relation_load_option_1.RelationLoadOption(this.relationsToLoad);
|
|
58
|
+
}
|
|
59
|
+
// Map cultures to load
|
|
60
|
+
if (!this.culturesToLoad || this.culturesToLoad.length === 0) {
|
|
61
|
+
result.cultureLoadOption = culture_load_option_1.CultureLoadOption.None;
|
|
62
|
+
}
|
|
63
|
+
else if (this.culturesToLoad.includes("*")) {
|
|
64
|
+
result.cultureLoadOption = culture_load_option_1.CultureLoadOption.All;
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
result.cultureLoadOption = new culture_load_option_1.CultureLoadOption(this.culturesToLoad);
|
|
68
|
+
}
|
|
69
|
+
return result;
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
__decorate([
|
|
73
|
+
ta_json_1.JsonProperty("load_entities"),
|
|
74
|
+
__metadata("design:type", Boolean)
|
|
75
|
+
], EntityLoadOption.prototype, "loadEntities", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
ta_json_1.JsonProperty("properties_to_load"),
|
|
78
|
+
ta_json_1.JsonElementType(String),
|
|
79
|
+
__metadata("design:type", Object)
|
|
80
|
+
], EntityLoadOption.prototype, "propertiesToLoad", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
ta_json_1.JsonProperty("relations_to_load"),
|
|
83
|
+
ta_json_1.JsonElementType(String),
|
|
84
|
+
__metadata("design:type", Object)
|
|
85
|
+
], EntityLoadOption.prototype, "relationsToLoad", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
ta_json_1.JsonProperty("cultures_to_load"),
|
|
88
|
+
ta_json_1.JsonElementType(String),
|
|
89
|
+
__metadata("design:type", Array)
|
|
90
|
+
], EntityLoadOption.prototype, "culturesToLoad", void 0);
|
|
91
|
+
EntityLoadOption = __decorate([
|
|
92
|
+
ta_json_1.JsonObject()
|
|
93
|
+
], EntityLoadOption);
|
|
94
|
+
exports.EntityLoadOption = EntityLoadOption;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { IContentHubClient } from "../../clients/content-hub-client";
|
|
2
|
+
import { IEntity } from "../base/entity";
|
|
3
|
+
import { IEntityIterator } from "./entity-iterator";
|
|
4
|
+
import { IEntityLoadConfiguration } from "./entity-load-configuration";
|
|
5
|
+
import { Query } from "./query";
|
|
6
|
+
import { IQueryResult } from "./query-result";
|
|
7
|
+
export interface IEntityQueryResult extends IQueryResult<IEntity> {
|
|
8
|
+
createIterator(): IEntityIterator;
|
|
9
|
+
}
|
|
10
|
+
export declare abstract class QueryResultBase<T> implements IQueryResult<T> {
|
|
11
|
+
abstract items: Array<T>;
|
|
12
|
+
totalNumberOfResults: number;
|
|
13
|
+
offset: number;
|
|
14
|
+
constructor(totalItems: number, offset: number);
|
|
15
|
+
}
|
|
16
|
+
export declare class EntityQueryResult extends QueryResultBase<IEntity> implements IEntityQueryResult {
|
|
17
|
+
private readonly _client;
|
|
18
|
+
private readonly _query;
|
|
19
|
+
private readonly _loadConfiguration;
|
|
20
|
+
items: Array<IEntity>;
|
|
21
|
+
constructor(client: IContentHubClient, query: Query, loadConfiguration: IEntityLoadConfiguration, entities: Array<IEntity>, totalItems: number, offset: number);
|
|
22
|
+
createIterator(): IEntityIterator;
|
|
23
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
exports.EntityQueryResult = exports.QueryResultBase = void 0;
|
|
7
|
+
const guard_1 = __importDefault(require("../../guard"));
|
|
8
|
+
const entity_iterator_1 = require("./entity-iterator");
|
|
9
|
+
class QueryResultBase {
|
|
10
|
+
constructor(totalItems, offset) {
|
|
11
|
+
guard_1.default.notNegative(totalItems);
|
|
12
|
+
guard_1.default.notNegative(offset);
|
|
13
|
+
this.totalNumberOfResults = totalItems;
|
|
14
|
+
this.offset = offset;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.QueryResultBase = QueryResultBase;
|
|
18
|
+
class EntityQueryResult extends QueryResultBase {
|
|
19
|
+
constructor(client, query, loadConfiguration, entities, totalItems, offset) {
|
|
20
|
+
super(totalItems, offset);
|
|
21
|
+
guard_1.default.notNullOrUndefined(client);
|
|
22
|
+
guard_1.default.notNullOrUndefined(query);
|
|
23
|
+
guard_1.default.notNullOrUndefined(entities);
|
|
24
|
+
this._client = client;
|
|
25
|
+
this._query = query;
|
|
26
|
+
this._loadConfiguration = loadConfiguration;
|
|
27
|
+
this.items = [...entities];
|
|
28
|
+
}
|
|
29
|
+
createIterator() {
|
|
30
|
+
return new entity_iterator_1.EntityIterator(this._client, this._query, this._loadConfiguration, this);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.EntityQueryResult = EntityQueryResult;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ComparisonOperator = void 0;
|
|
4
|
+
var ComparisonOperator;
|
|
5
|
+
(function (ComparisonOperator) {
|
|
6
|
+
ComparisonOperator[ComparisonOperator["Equals"] = 0] = "Equals";
|
|
7
|
+
ComparisonOperator[ComparisonOperator["NotEquals"] = 1] = "NotEquals";
|
|
8
|
+
ComparisonOperator[ComparisonOperator["Gt"] = 2] = "Gt";
|
|
9
|
+
ComparisonOperator[ComparisonOperator["Lt"] = 3] = "Lt";
|
|
10
|
+
ComparisonOperator[ComparisonOperator["Lte"] = 4] = "Lte";
|
|
11
|
+
ComparisonOperator[ComparisonOperator["Gte"] = 5] = "Gte";
|
|
12
|
+
ComparisonOperator[ComparisonOperator["Contains"] = 6] = "Contains";
|
|
13
|
+
ComparisonOperator[ComparisonOperator["StartsWith"] = 7] = "StartsWith";
|
|
14
|
+
ComparisonOperator[ComparisonOperator["EndsWith"] = 8] = "EndsWith";
|
|
15
|
+
})(ComparisonOperator = exports.ComparisonOperator || (exports.ComparisonOperator = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CompositeFilterOperator = void 0;
|
|
4
|
+
var CompositeFilterOperator;
|
|
5
|
+
(function (CompositeFilterOperator) {
|
|
6
|
+
CompositeFilterOperator[CompositeFilterOperator["And"] = 0] = "And";
|
|
7
|
+
CompositeFilterOperator[CompositeFilterOperator["Or"] = 1] = "Or";
|
|
8
|
+
})(CompositeFilterOperator = exports.CompositeFilterOperator || (exports.CompositeFilterOperator = {}));
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { WritablePart } from "../../../base-types";
|
|
2
|
+
import { CompositeFilterOperator } from "./composite-filter-operator";
|
|
3
|
+
import { FilterType } from "./filter-type";
|
|
4
|
+
import { QueryFilter } from "./query-filter";
|
|
5
|
+
/**
|
|
6
|
+
* Combines multiple queries using a specified operator (e.g. AND or OR).
|
|
7
|
+
*/
|
|
8
|
+
export declare class CompositeQueryFilter extends QueryFilter {
|
|
9
|
+
readonly type: FilterType;
|
|
10
|
+
/**
|
|
11
|
+
* The operator used to combine the children.
|
|
12
|
+
*/
|
|
13
|
+
combineMethod: CompositeFilterOperator;
|
|
14
|
+
/**
|
|
15
|
+
* The child-queries to combine.
|
|
16
|
+
*/
|
|
17
|
+
children: Array<QueryFilter>;
|
|
18
|
+
constructor(init?: Partial<WritablePart<CompositeQueryFilter>>);
|
|
19
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CompositeQueryFilter = void 0;
|
|
13
|
+
const ta_json_1 = require("ta-json");
|
|
14
|
+
const composite_filter_operator_1 = require("./composite-filter-operator");
|
|
15
|
+
const filter_type_1 = require("./filter-type");
|
|
16
|
+
const query_filter_1 = require("./query-filter");
|
|
17
|
+
/**
|
|
18
|
+
* Combines multiple queries using a specified operator (e.g. AND or OR).
|
|
19
|
+
*/
|
|
20
|
+
let CompositeQueryFilter = class CompositeQueryFilter extends query_filter_1.QueryFilter {
|
|
21
|
+
constructor(init) {
|
|
22
|
+
super();
|
|
23
|
+
this.type = filter_type_1.FilterType.Composite;
|
|
24
|
+
/**
|
|
25
|
+
* The child-queries to combine.
|
|
26
|
+
*/
|
|
27
|
+
this.children = [];
|
|
28
|
+
Object.assign(this, init);
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
__decorate([
|
|
32
|
+
ta_json_1.JsonProperty("type"),
|
|
33
|
+
__metadata("design:type", Number)
|
|
34
|
+
], CompositeQueryFilter.prototype, "type", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
ta_json_1.JsonProperty("operator"),
|
|
37
|
+
__metadata("design:type", Number)
|
|
38
|
+
], CompositeQueryFilter.prototype, "combineMethod", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
ta_json_1.JsonProperty("children"),
|
|
41
|
+
ta_json_1.JsonElementType(query_filter_1.QueryFilter),
|
|
42
|
+
__metadata("design:type", Array)
|
|
43
|
+
], CompositeQueryFilter.prototype, "children", void 0);
|
|
44
|
+
CompositeQueryFilter = __decorate([
|
|
45
|
+
ta_json_1.JsonObject(),
|
|
46
|
+
ta_json_1.JsonDiscriminatorValue(filter_type_1.FilterType.Composite),
|
|
47
|
+
__metadata("design:paramtypes", [Object])
|
|
48
|
+
], CompositeQueryFilter);
|
|
49
|
+
exports.CompositeQueryFilter = CompositeQueryFilter;
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CreatedByQueryFilter = void 0;
|
|
13
|
+
const ta_json_1 = require("ta-json");
|
|
14
|
+
const filter_type_1 = require("./filter-type");
|
|
15
|
+
const user_query_filter_1 = require("./user-query-filter");
|
|
16
|
+
let CreatedByQueryFilter = class CreatedByQueryFilter extends user_query_filter_1.UserQueryFilter {
|
|
17
|
+
constructor() {
|
|
18
|
+
super(...arguments);
|
|
19
|
+
this.type = filter_type_1.FilterType.CreatedBy;
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
__decorate([
|
|
23
|
+
ta_json_1.JsonProperty("type"),
|
|
24
|
+
__metadata("design:type", Number)
|
|
25
|
+
], CreatedByQueryFilter.prototype, "type", void 0);
|
|
26
|
+
CreatedByQueryFilter = __decorate([
|
|
27
|
+
ta_json_1.JsonObject(),
|
|
28
|
+
ta_json_1.JsonDiscriminatorValue(filter_type_1.FilterType.CreatedBy)
|
|
29
|
+
], CreatedByQueryFilter);
|
|
30
|
+
exports.CreatedByQueryFilter = CreatedByQueryFilter;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { WritablePart } from "../../../base-types";
|
|
2
|
+
import { ComparisonOperator } from "./comparison-operator";
|
|
3
|
+
import { FilterType } from "./filter-type";
|
|
4
|
+
import { QueryFilter } from "./query-filter";
|
|
5
|
+
/**
|
|
6
|
+
* Filters on entities with "Created on" date set to specified value.
|
|
7
|
+
*/
|
|
8
|
+
export declare class CreatedOnQueryFilter extends QueryFilter {
|
|
9
|
+
readonly type: FilterType;
|
|
10
|
+
/**
|
|
11
|
+
* The operator used to compare the value(s).
|
|
12
|
+
*/
|
|
13
|
+
operator: ComparisonOperator;
|
|
14
|
+
/**
|
|
15
|
+
* The value to compare with.
|
|
16
|
+
*/
|
|
17
|
+
value: Date;
|
|
18
|
+
constructor(init?: Partial<WritablePart<CreatedOnQueryFilter>>);
|
|
19
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CreatedOnQueryFilter = void 0;
|
|
13
|
+
const ta_json_1 = require("ta-json");
|
|
14
|
+
const comparison_operator_1 = require("./comparison-operator");
|
|
15
|
+
const filter_type_1 = require("./filter-type");
|
|
16
|
+
const query_filter_1 = require("./query-filter");
|
|
17
|
+
/**
|
|
18
|
+
* Filters on entities with "Created on" date set to specified value.
|
|
19
|
+
*/
|
|
20
|
+
let CreatedOnQueryFilter = class CreatedOnQueryFilter extends query_filter_1.QueryFilter {
|
|
21
|
+
constructor(init) {
|
|
22
|
+
super();
|
|
23
|
+
this.type = filter_type_1.FilterType.CreatedOn;
|
|
24
|
+
Object.assign(this, init);
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
__decorate([
|
|
28
|
+
ta_json_1.JsonProperty("type"),
|
|
29
|
+
__metadata("design:type", Number)
|
|
30
|
+
], CreatedOnQueryFilter.prototype, "type", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
ta_json_1.JsonProperty("operator"),
|
|
33
|
+
__metadata("design:type", Number)
|
|
34
|
+
], CreatedOnQueryFilter.prototype, "operator", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
ta_json_1.JsonProperty("value"),
|
|
37
|
+
ta_json_1.JsonConverter(ta_json_1.DateConverter),
|
|
38
|
+
__metadata("design:type", Date)
|
|
39
|
+
], CreatedOnQueryFilter.prototype, "value", void 0);
|
|
40
|
+
CreatedOnQueryFilter = __decorate([
|
|
41
|
+
ta_json_1.JsonObject(),
|
|
42
|
+
ta_json_1.JsonDiscriminatorValue(filter_type_1.FilterType.CreatedOn),
|
|
43
|
+
__metadata("design:paramtypes", [Object])
|
|
44
|
+
], CreatedOnQueryFilter);
|
|
45
|
+
exports.CreatedOnQueryFilter = CreatedOnQueryFilter;
|