@sitecore/sc-contenthub-webclient-sdk 1.1.1 → 1.2.0
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/README.md +35 -7
- package/dist/api/api-info-resource.js +9 -8
- package/dist/api/api-info.js +1 -0
- package/dist/api/api-resource.js +2 -1
- package/dist/api/api-routes-dictionary.js +1 -0
- package/dist/authentication/oauth-grant-base.js +5 -4
- package/dist/authentication/oauth-grant-type.js +1 -0
- package/dist/authentication/oauth-password-grant.js +5 -4
- package/dist/authentication/oauth-refreshtoken-grant.js +4 -3
- package/dist/authentication/token-info.js +6 -5
- package/dist/base-types.js +1 -0
- package/dist/caches/culture-cache.js +1 -0
- package/dist/caches/entity-definition-cache.d.ts +21 -7
- package/dist/caches/entity-definition-cache.js +38 -21
- package/dist/clients/aggregates-client.d.ts +27 -3
- package/dist/clients/aggregates-client.js +4 -3
- package/dist/clients/api-client.js +3 -2
- package/dist/clients/assets-client.d.ts +16 -0
- package/dist/clients/assets-client.js +43 -0
- package/dist/clients/commands-client.d.ts +7 -4
- package/dist/clients/commands-client.js +5 -4
- package/dist/clients/content-hub-client.d.ts +3 -0
- package/dist/clients/content-hub-client.js +3 -0
- package/dist/clients/culture-client.js +1 -0
- package/dist/clients/culture-loader.js +1 -0
- package/dist/clients/entities-client.d.ts +44 -29
- package/dist/clients/entities-client.js +44 -30
- package/dist/clients/entity-definitions-client.d.ts +55 -17
- package/dist/clients/entity-definitions-client.js +58 -57
- package/dist/clients/extended-client.js +1 -0
- package/dist/clients/internal-client.d.ts +17 -2
- package/dist/clients/internal-client.js +17 -3
- package/dist/clients/notifications-client.js +1 -0
- package/dist/clients/option-list-client.d.ts +19 -12
- package/dist/clients/option-list-client.js +13 -12
- package/dist/clients/pages-client.d.ts +13 -6
- package/dist/clients/pages-client.js +9 -8
- package/dist/clients/permissions-client.js +1 -0
- package/dist/clients/policies-client.js +3 -21
- package/dist/clients/querying-client.d.ts +58 -11
- package/dist/clients/querying-client.js +43 -8
- package/dist/clients/raw-client.d.ts +11 -18
- package/dist/clients/raw-client.js +11 -10
- package/dist/clients/request-message.js +1 -0
- package/dist/clients/response-handler.js +8 -26
- package/dist/clients/response-message.js +1 -0
- package/dist/clients/schema-querying.d.ts +4 -3
- package/dist/clients/schema-querying.js +6 -4
- package/dist/clients/search-client.d.ts +7 -4
- package/dist/clients/search-client.js +5 -4
- package/dist/clients/settings-client.d.ts +8 -0
- package/dist/clients/settings-client.js +13 -0
- package/dist/clients/upload-client.d.ts +5 -2
- package/dist/clients/upload-client.js +36 -17
- package/dist/clients/users-client.js +1 -0
- package/dist/clients/version-checker.js +2 -1
- package/dist/clients/web-content-hub-client.js +1 -0
- package/dist/constants/api.d.ts +26 -3
- package/dist/constants/api.js +28 -4
- package/dist/constants/defaults.js +2 -1
- package/dist/constants/definitions.d.ts +10 -0
- package/dist/constants/definitions.js +14 -1
- package/dist/constants/index.js +2 -1
- package/dist/constants/notifications.js +1 -0
- package/dist/contracts/base/culture-insensitive-property.js +1 -0
- package/dist/contracts/base/culture-sensitive-property.js +1 -0
- package/dist/contracts/base/data-type.js +1 -0
- package/dist/contracts/base/entity-base.d.ts +7 -0
- package/dist/contracts/base/entity-base.js +57 -32
- package/dist/contracts/base/entity-construction-args.js +1 -0
- package/dist/contracts/base/entity-definition.d.ts +5 -0
- package/dist/contracts/base/entity-definition.js +20 -18
- package/dist/contracts/base/entity.d.ts +30 -1
- package/dist/contracts/base/entity.js +4 -3
- package/dist/contracts/base/index.js +2 -1
- package/dist/contracts/base/json-content-type.js +1 -0
- package/dist/contracts/base/lazy-loading-manager.js +1 -0
- package/dist/contracts/base/member-condition.js +11 -10
- package/dist/contracts/base/member-definition-type.js +1 -0
- package/dist/contracts/base/member-definition.js +14 -13
- package/dist/contracts/base/member-group.js +12 -11
- package/dist/contracts/base/member.js +1 -0
- package/dist/contracts/base/option-lists/flat-option-list-value.js +1 -0
- package/dist/contracts/base/option-lists/flat-option-list.js +1 -0
- package/dist/contracts/base/option-lists/hierarchical-option-list.js +1 -0
- package/dist/contracts/base/option-lists/hierarchical-options-list-value.js +1 -0
- package/dist/contracts/base/option-lists/option-list-base.js +1 -0
- package/dist/contracts/base/option-lists/option-list-type.js +1 -0
- package/dist/contracts/base/option-lists/option-list-value-base.js +1 -0
- package/dist/contracts/base/option-lists/option-list-value.js +1 -0
- package/dist/contracts/base/option-lists/option-list.js +1 -0
- package/dist/contracts/base/property-definition.js +13 -12
- package/dist/contracts/base/property-definitions/boolean-property-definition.js +3 -2
- package/dist/contracts/base/property-definitions/datetime-property-definition.js +3 -2
- package/dist/contracts/base/property-definitions/datetimeoffset-property-definition.js +3 -2
- package/dist/contracts/base/property-definitions/decimal-property-definition.js +3 -2
- package/dist/contracts/base/property-definitions/index.js +2 -1
- package/dist/contracts/base/property-definitions/integer-property-definition.js +3 -2
- package/dist/contracts/base/property-definitions/json-property-definition.js +4 -3
- package/dist/contracts/base/property-definitions/long-property-definition.js +3 -2
- package/dist/contracts/base/property-definitions/string-property-definition.js +5 -4
- package/dist/contracts/base/property-manager.js +1 -0
- package/dist/contracts/base/property.js +1 -0
- package/dist/contracts/base/related-path.js +1 -0
- package/dist/contracts/base/relation-cardinality.js +1 -0
- package/dist/contracts/base/relation-container.js +5 -4
- package/dist/contracts/base/relation-definition.js +23 -22
- package/dist/contracts/base/relation-manager.d.ts +1 -1
- package/dist/contracts/base/relation-manager.js +6 -6
- package/dist/contracts/base/relation-role.js +1 -0
- package/dist/contracts/base/relation.d.ts +16 -3
- package/dist/contracts/base/relation.js +28 -3
- package/dist/contracts/base/relations/child-to-many-parents-relation.d.ts +4 -1
- package/dist/contracts/base/relations/child-to-many-parents-relation.js +33 -2
- package/dist/contracts/base/relations/child-to-one-parent-relation.d.ts +3 -1
- package/dist/contracts/base/relations/child-to-one-parent-relation.js +27 -2
- package/dist/contracts/base/relations/parent-to-many-children-relation.d.ts +4 -1
- package/dist/contracts/base/relations/parent-to-many-children-relation.js +33 -2
- package/dist/contracts/base/relations/parent-to-one-child-relation.d.ts +3 -1
- package/dist/contracts/base/relations/parent-to-one-child-relation.js +27 -2
- package/dist/contracts/base/relations/to-many-relation.d.ts +10 -0
- package/dist/contracts/base/relations/to-many-relation.js +1 -0
- package/dist/contracts/base/relations/to-one-relation.d.ts +5 -0
- package/dist/contracts/base/relations/to-one-relation.js +1 -0
- package/dist/contracts/base/rendition.js +1 -0
- package/dist/contracts/base/resource.js +1 -0
- package/dist/contracts/base/string-content-type.js +1 -0
- package/dist/contracts/base/typed-entity.js +1 -0
- package/dist/contracts/base/users.js +1 -0
- package/dist/contracts/base/view-mode.js +1 -0
- package/dist/contracts/content/asset.js +1 -0
- package/dist/contracts/content/final-life-cycle-status.js +1 -0
- package/dist/contracts/dirty-tracking/dirty-tracking.js +1 -0
- package/dist/contracts/notifications/mail-template.js +1 -0
- package/dist/contracts/policies/condition.js +1 -0
- package/dist/contracts/policies/member-policy.js +1 -0
- package/dist/contracts/policies/policy.js +1 -0
- package/dist/contracts/policies/rule-type.js +1 -0
- package/dist/contracts/policies/rule.js +1 -0
- package/dist/contracts/policies/user-group-policy.js +2 -0
- package/dist/contracts/policies/user-policy.js +2 -0
- package/dist/contracts/querying/culture-load-option.js +5 -4
- package/dist/contracts/querying/entity-definition-id-iterator.js +1 -0
- package/dist/contracts/querying/entity-definition-id-query-result.js +1 -0
- package/dist/contracts/querying/entity-definition-iterator.js +1 -0
- package/dist/contracts/querying/entity-definition-query-result.js +1 -0
- package/dist/contracts/querying/entity-iterator.js +1 -0
- package/dist/contracts/querying/entity-load-configuration-builder.js +1 -0
- package/dist/contracts/querying/entity-load-configuration.js +5 -4
- package/dist/contracts/querying/entity-load-option.js +9 -8
- package/dist/contracts/querying/entity-query-result.js +1 -0
- package/dist/contracts/querying/filters/comparison-operator.js +1 -0
- package/dist/contracts/querying/filters/composite-filter-operator.js +1 -0
- package/dist/contracts/querying/filters/composite-query-filter.js +7 -6
- package/dist/contracts/querying/filters/createdby-query-filter.js +4 -3
- package/dist/contracts/querying/filters/createdon-query-filter.js +7 -6
- package/dist/contracts/querying/filters/definition-query-filter.js +11 -10
- package/dist/contracts/querying/filters/filter-data-type.js +1 -0
- package/dist/contracts/querying/filters/filter-type.js +1 -0
- package/dist/contracts/querying/filters/id-query-filter.js +8 -7
- package/dist/contracts/querying/filters/identifier-query-filter.js +8 -7
- package/dist/contracts/querying/filters/index.js +2 -1
- package/dist/contracts/querying/filters/modifiedby-query-filter.js +4 -3
- package/dist/contracts/querying/filters/modifiedon-query-filter.js +7 -6
- package/dist/contracts/querying/filters/modules-query-filter.js +5 -4
- package/dist/contracts/querying/filters/not-query-filter.js +5 -4
- package/dist/contracts/querying/filters/property-query-filter.js +11 -10
- package/dist/contracts/querying/filters/query-filter.js +4 -3
- package/dist/contracts/querying/filters/relation-connection-type.js +1 -0
- package/dist/contracts/querying/filters/relation-query-filter.js +8 -7
- package/dist/contracts/querying/filters/secured-ancestors-query-filter.js +8 -7
- package/dist/contracts/querying/filters/user-query-filter.js +11 -10
- package/dist/contracts/querying/id-iterator.js +1 -0
- package/dist/contracts/querying/id-query-result.js +1 -0
- package/dist/contracts/querying/iterator.js +1 -0
- package/dist/contracts/querying/load-option.js +1 -0
- package/dist/contracts/querying/load-options.js +1 -0
- package/dist/contracts/querying/loading-query-iterator.js +1 -0
- package/dist/contracts/querying/member-load-option.js +1 -0
- package/dist/contracts/querying/minimal-schema.js +7 -6
- package/dist/contracts/querying/property-data.js +7 -6
- package/dist/contracts/querying/property-load-option.js +5 -4
- package/dist/contracts/querying/query-iterator.js +1 -0
- package/dist/contracts/querying/query-load-configuration.js +9 -8
- package/dist/contracts/querying/query-request.js +3 -2
- package/dist/contracts/querying/query-result-paging-manager.js +1 -0
- package/dist/contracts/querying/query-result.js +1 -0
- package/dist/contracts/querying/query-sort-order.js +1 -0
- package/dist/contracts/querying/query.js +8 -7
- package/dist/contracts/querying/relation-data.js +6 -5
- package/dist/contracts/querying/relation-load-option.js +5 -4
- package/dist/contracts/querying/relation-specification.js +5 -4
- package/dist/contracts/querying/schema-querying.js +1 -0
- package/dist/contracts/querying/scroll-request.js +5 -4
- package/dist/contracts/querying/skip-take-iterator-base.js +1 -0
- package/dist/contracts/querying/sort-field-type.js +1 -0
- package/dist/contracts/querying/sorting.js +6 -5
- package/dist/contracts/upload/upload-source.js +1 -0
- package/dist/contracts/users/user-group-combine-method.js +1 -0
- package/dist/contracts/users/user-group-configuration.js +7 -6
- package/dist/contracts/users/user-profile.js +1 -0
- package/dist/contracts/users/user.js +1 -0
- package/dist/converters/aggregated-entity-relations-converter.js +1 -0
- package/dist/converters/all-facet-values-children-converter.js +1 -0
- package/dist/converters/api-resource-converter.js +2 -0
- package/dist/converters/date-converter.js +1 -0
- package/dist/converters/file-version-converter.js +1 -0
- package/dist/converters/index.js +2 -1
- package/dist/converters/member-condition-converter.js +1 -0
- package/dist/converters/member-condition-resource-converter.js +1 -0
- package/dist/converters/minimal-schema-relation-cardinality-converter.js +1 -0
- package/dist/converters/page-resource-menus-converter.js +1 -0
- package/dist/converters/page-resource-zones-converter.js +1 -0
- package/dist/converters/relation-map-resource-converter.js +1 -0
- package/dist/converters/relation-resource-converter.js +1 -0
- package/dist/converters/renditions-converter.js +1 -0
- package/dist/converters/string-to-any-map-converter.js +1 -0
- package/dist/culture-info.js +1 -0
- package/dist/dirty-value-calculator.js +1 -0
- package/dist/entity-link.js +7 -6
- package/dist/error-messages.d.ts +0 -3
- package/dist/error-messages.js +1 -3
- package/dist/errors/argument-error.js +1 -0
- package/dist/errors/authentication-error.js +1 -0
- package/dist/errors/bad-request-error.js +1 -0
- package/dist/errors/forbidden-error.js +1 -0
- package/dist/errors/internal-error.js +1 -0
- package/dist/errors/invalid-operation-error.js +1 -0
- package/dist/errors/not-found-error.js +1 -0
- package/dist/errors/not-implemented-error.js +1 -0
- package/dist/errors/not-loaded-error.js +1 -0
- package/dist/errors/not-supported-error.js +1 -0
- package/dist/errors/schema-error.js +1 -0
- package/dist/errors/validation-error.js +1 -0
- package/dist/errors/validation-failure.js +1 -0
- package/dist/errors/web-api-error.js +1 -0
- package/dist/factories/entity-factory.js +2 -1
- package/dist/factories/option-list-factory.js +1 -0
- package/dist/factories/property-factory.js +3 -2
- package/dist/factories/relation-factory.js +5 -4
- package/dist/fileversion.js +1 -0
- package/dist/guard.d.ts +10 -10
- package/dist/guard.js +3 -0
- package/dist/http-method.js +1 -0
- package/dist/index.js +2 -1
- package/dist/link-helper.d.ts +40 -16
- package/dist/link-helper.js +82 -10
- package/dist/link.js +5 -4
- package/dist/logging/log-level.js +1 -0
- package/dist/logging/logger-base.js +1 -0
- package/dist/logging/logger.js +1 -0
- package/dist/logging/null-logger.js +3 -0
- package/dist/mappers/api-resource-mapper.js +1 -0
- package/dist/mappers/condition-mapper.js +1 -0
- package/dist/mappers/entity-copy-options-mapper.d.ts +6 -0
- package/dist/mappers/entity-copy-options-mapper.js +42 -0
- package/dist/mappers/entity-definition-mapper.js +7 -2
- package/dist/mappers/entity-mapper.js +14 -0
- package/dist/mappers/filter-operator-mapper.js +1 -0
- package/dist/mappers/final-life-cycle-status-mapper.js +3 -2
- package/dist/mappers/load-options-mapper.js +1 -0
- package/dist/mappers/mapping-utilities.js +1 -0
- package/dist/mappers/member-condition-mapper.js +3 -2
- package/dist/mappers/member-definition-mapper.js +4 -3
- package/dist/mappers/member-group-mapper.js +1 -0
- package/dist/mappers/member-security-mapper.js +1 -0
- package/dist/mappers/notification-mapper.js +1 -0
- package/dist/mappers/option-list-mapper.js +2 -1
- package/dist/mappers/policy-mapper.js +1 -0
- package/dist/mappers/property-mapper.js +2 -1
- package/dist/mappers/querying-mapper.js +1 -0
- package/dist/mappers/related-path-mapper.js +1 -0
- package/dist/mappers/relation-cardinality-mapper.js +1 -0
- package/dist/mappers/relation-mapper.js +8 -7
- package/dist/mappers/relation-role-mapper.js +3 -2
- package/dist/mappers/rendition-mapper.js +1 -0
- package/dist/mappers/rule-type-mapper.js +1 -0
- package/dist/mappers/rules-mapper.js +1 -0
- package/dist/mappers/typed-entity-creator.js +1 -0
- package/dist/models/aggregate-resources/aggregate-resource.d.ts +2 -1
- package/dist/models/aggregate-resources/aggregate-resource.js +12 -7
- package/dist/models/aggregate-resources/aggregated-entity-resource.js +5 -4
- package/dist/models/content/entity-copy-options-builder.d.ts +112 -0
- package/dist/models/content/entity-copy-options-builder.js +91 -0
- package/dist/models/content/entity-copy-options.d.ts +60 -0
- package/dist/models/content/entity-copy-options.js +14 -0
- package/dist/models/content/property-copy-method.d.ts +21 -0
- package/dist/models/content/property-copy-method.js +26 -0
- package/dist/models/content/property-copy-option.d.ts +34 -0
- package/dist/models/content/property-copy-option.js +12 -0
- package/dist/models/content/relation-copy-method.d.ts +21 -0
- package/dist/models/content/relation-copy-method.js +26 -0
- package/dist/models/content/relation-copy-option.d.ts +35 -0
- package/dist/models/content/relation-copy-option.js +12 -0
- package/dist/models/entity-copy-options-resource.d.ts +28 -0
- package/dist/models/entity-copy-options-resource.js +47 -0
- package/dist/models/entity-definition-collection-resource.js +4 -3
- package/dist/models/entity-definition-resource.d.ts +1 -1
- package/dist/models/entity-definition-resource.js +23 -21
- package/dist/models/entity-list-resource.js +4 -3
- package/dist/models/entity-path.d.ts +4 -0
- package/dist/models/entity-path.js +24 -0
- package/dist/models/entity-resource.d.ts +8 -0
- package/dist/models/entity-resource.js +70 -39
- package/dist/models/list-resource.js +10 -9
- package/dist/models/member-condition-resource.js +10 -9
- package/dist/models/member-definition-resource.js +16 -15
- package/dist/models/member-group-resource.js +13 -12
- package/dist/models/notifications/distribute-notification-resource.js +7 -6
- package/dist/models/notifications/mail-request-broadcast.js +1 -0
- package/dist/models/notifications/mail-request-by-id.js +1 -0
- package/dist/models/notifications/mail-request-by-username.js +1 -0
- package/dist/models/notifications/mail-request.js +1 -0
- package/dist/models/notifications/notification-level.js +1 -0
- package/dist/models/notifications/realtime-request-broadcast.js +1 -0
- package/dist/models/notifications/realtime-request-by-id.js +1 -0
- package/dist/models/notifications/realtime-request-by-username.js +1 -0
- package/dist/models/notifications/realtime-request.js +1 -0
- package/dist/models/notifications/request-by-id.js +1 -0
- package/dist/models/notifications/request-by-username.js +1 -0
- package/dist/models/notifications/validators/mail-validator.js +1 -0
- package/dist/models/notifications/validators/realtime-validator.js +1 -0
- package/dist/models/notifications/validators/request-by-id-validator.js +1 -0
- package/dist/models/notifications/validators/request-by-username-validator.js +1 -0
- package/dist/models/notifications/validators/validator-base.js +1 -0
- package/dist/models/option-lists/flat-option-list-value.js +1 -0
- package/dist/models/option-lists/hierarchical-options-list-value.js +1 -0
- package/dist/models/option-lists/option-list-collection-resource.js +5 -4
- package/dist/models/option-lists/option-list-description-resource.js +5 -4
- package/dist/models/option-lists/option-list-resource.js +12 -11
- package/dist/models/option-lists/option-list-value-resource.js +6 -5
- package/dist/models/pages/component-visualization.js +9 -8
- package/dist/models/pages/language-resource.js +7 -6
- package/dist/models/pages/menu-item.js +12 -11
- package/dist/models/pages/page-component-resource.js +18 -17
- package/dist/models/pages/page-resource.js +21 -20
- package/dist/models/pages/page-row-settings.js +26 -25
- package/dist/models/pages/portal-column-resource.js +5 -4
- package/dist/models/pages/portal-row-resource.js +5 -4
- package/dist/models/pages/portal-section-resource.js +5 -4
- package/dist/models/permissions-resource.js +4 -3
- package/dist/models/policies/condition-resource.js +6 -5
- package/dist/models/policies/member-policy-resource.js +6 -5
- package/dist/models/policies/policy-resource.js +16 -15
- package/dist/models/policies/rule-resource.js +12 -11
- package/dist/models/property-copy-option-resource.d.ts +19 -0
- package/dist/models/property-copy-option-resource.js +41 -0
- package/dist/models/property-definition-resource.js +35 -34
- package/dist/models/query-loading-resource.d.ts +5 -0
- package/dist/models/query-loading-resource.js +9 -3
- package/dist/models/query-result-resource.js +6 -5
- package/dist/models/relation-copy-option-resource.d.ts +20 -0
- package/dist/models/relation-copy-option-resource.js +41 -0
- package/dist/models/relation-definition-resource.js +23 -22
- package/dist/models/relation-map-resource.js +2 -1
- package/dist/models/relation-resource.js +13 -12
- package/dist/models/resource-containers/entity-definition-resource-container.js +1 -0
- package/dist/models/resource-containers/entity-resource-container.js +1 -0
- package/dist/models/resource.js +3 -2
- package/dist/models/search/aggregation-request-resource.js +13 -12
- package/dist/models/search/aggregation-response-resource.js +7 -6
- package/dist/models/search/all-facet-values-response.js +6 -5
- package/dist/models/search/all-facets-request.d.ts +3 -0
- package/dist/models/search/all-facets-request.js +17 -8
- package/dist/models/search/bucket-response-resource.js +8 -7
- package/dist/models/search/date-interval.js +1 -0
- package/dist/models/search/facet-response-resource.js +20 -19
- package/dist/models/search/field-filter-request-resource.js +14 -13
- package/dist/models/search/field-filter-response-resource.js +17 -16
- package/dist/models/search/field-filter-value-response-resource.js +5 -4
- package/dist/models/search/filter-operator.js +1 -0
- package/dist/models/search/full-text-response-resource.js +4 -3
- package/dist/models/search/group-category.js +6 -5
- package/dist/models/search/group-config.js +4 -3
- package/dist/models/search/group-item.js +7 -6
- package/dist/models/search/grouped-view-response-resource.js +12 -11
- package/dist/models/search/metric-option-request-resource.js +5 -4
- package/dist/models/search/metric-option-response-resource.js +5 -4
- package/dist/models/search/nested-relation-info.js +9 -8
- package/dist/models/search/requested-aggregation-type.js +1 -0
- package/dist/models/search/requested-filter-type.js +1 -0
- package/dist/models/search/search-group-request-resource.d.ts +1 -0
- package/dist/models/search/search-group-request-resource.js +8 -3
- package/dist/models/search/search-request.d.ts +2 -0
- package/dist/models/search/search-request.js +37 -28
- package/dist/models/search/search-response.js +24 -23
- package/dist/models/search/selection-pool-filter-resource.js +6 -5
- package/dist/models/search/sorting-request-resource.js +4 -3
- package/dist/models/search/sorting-response-resource.js +5 -4
- package/dist/models/search-document-resource.js +4 -3
- package/dist/models/set-password-request-resource.js +3 -2
- package/dist/models/setting-resource.d.ts +9 -0
- package/dist/models/setting-resource.js +40 -0
- package/dist/models/upload/array-buffer-upload-source.d.ts +8 -0
- package/dist/models/upload/array-buffer-upload-source.js +19 -15
- package/dist/models/upload/create-upload-response.js +5 -4
- package/dist/models/upload/http-upload-source.js +1 -0
- package/dist/models/upload/local-upload-source.js +2 -0
- package/dist/models/upload/upload-action.js +4 -3
- package/dist/models/upload/upload-configuration.js +4 -3
- package/dist/models/upload/upload-request-wrapper.js +8 -7
- package/dist/models/upload/upload-request.js +1 -0
- package/dist/models/user-entity-permissions-resource.js +13 -12
- package/dist/models/versionining/compatibility.js +1 -0
- package/dist/settings/fetch-setting.js +17 -16
- package/dist/settings/super-user-excluded-privileges.js +4 -3
- package/dist/settings/usage-rights-configuration.js +18 -17
- package/dist/type-guards.js +1 -0
- package/dist/utilities/array-utilities.js +1 -0
- package/package.json +20 -21
|
@@ -8,8 +8,9 @@ import { IAggregatedEntityResource } from "./aggregated-entity-resource";
|
|
|
8
8
|
*/
|
|
9
9
|
export declare class AggregateResource extends Resource {
|
|
10
10
|
definitions: Array<EntityDefinitionResource>;
|
|
11
|
-
optionLists
|
|
11
|
+
optionLists?: Array<OptionListResource>;
|
|
12
12
|
items: Array<IAggregatedEntityResource>;
|
|
13
|
+
settingByCategory?: Record<string, Record<string, unknown>>;
|
|
13
14
|
getDefinitionResources(): Array<EntityDefinitionResource>;
|
|
14
15
|
getEntityResources(): Array<EntityResource>;
|
|
15
16
|
}
|
|
@@ -34,21 +34,26 @@ let AggregateResource = class AggregateResource extends resource_1.default {
|
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
36
|
__decorate([
|
|
37
|
-
ta_json_1.JsonProperty("definitions"),
|
|
38
|
-
ta_json_1.JsonElementType(entity_definition_resource_1.EntityDefinitionResource),
|
|
37
|
+
(0, ta_json_1.JsonProperty)("definitions"),
|
|
38
|
+
(0, ta_json_1.JsonElementType)(entity_definition_resource_1.EntityDefinitionResource),
|
|
39
39
|
__metadata("design:type", Array)
|
|
40
40
|
], AggregateResource.prototype, "definitions", void 0);
|
|
41
41
|
__decorate([
|
|
42
|
-
ta_json_1.JsonProperty("datasources"),
|
|
43
|
-
ta_json_1.JsonElementType(option_list_resource_1.default),
|
|
42
|
+
(0, ta_json_1.JsonProperty)("datasources"),
|
|
43
|
+
(0, ta_json_1.JsonElementType)(option_list_resource_1.default),
|
|
44
44
|
__metadata("design:type", Array)
|
|
45
45
|
], AggregateResource.prototype, "optionLists", void 0);
|
|
46
46
|
__decorate([
|
|
47
|
-
ta_json_1.JsonProperty("items"),
|
|
48
|
-
ta_json_1.JsonElementType(aggregated_entity_resource_1.AggregatedEntityResource),
|
|
47
|
+
(0, ta_json_1.JsonProperty)("items"),
|
|
48
|
+
(0, ta_json_1.JsonElementType)(aggregated_entity_resource_1.AggregatedEntityResource),
|
|
49
49
|
__metadata("design:type", Array)
|
|
50
50
|
], AggregateResource.prototype, "items", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, ta_json_1.JsonProperty)("settings_by_category"),
|
|
53
|
+
__metadata("design:type", Object)
|
|
54
|
+
], AggregateResource.prototype, "settingByCategory", void 0);
|
|
51
55
|
AggregateResource = __decorate([
|
|
52
|
-
ta_json_1.JsonObject()
|
|
56
|
+
(0, ta_json_1.JsonObject)()
|
|
53
57
|
], AggregateResource);
|
|
54
58
|
exports.AggregateResource = AggregateResource;
|
|
59
|
+
//# sourceMappingURL=aggregate-resource.js.map
|
|
@@ -16,15 +16,16 @@ const aggregated_entity_relations_converter_1 = require("../../converters/aggreg
|
|
|
16
16
|
let AggregatedEntityResource = class AggregatedEntityResource {
|
|
17
17
|
};
|
|
18
18
|
__decorate([
|
|
19
|
-
ta_json_1.JsonProperty("entity"),
|
|
19
|
+
(0, ta_json_1.JsonProperty)("entity"),
|
|
20
20
|
__metadata("design:type", entity_resource_1.EntityResource)
|
|
21
21
|
], AggregatedEntityResource.prototype, "entity", void 0);
|
|
22
22
|
__decorate([
|
|
23
|
-
ta_json_1.JsonProperty("relations"),
|
|
24
|
-
ta_json_1.JsonConverter(aggregated_entity_relations_converter_1.AggregatedEntityRelationsConverter),
|
|
23
|
+
(0, ta_json_1.JsonProperty)("relations"),
|
|
24
|
+
(0, ta_json_1.JsonConverter)(aggregated_entity_relations_converter_1.AggregatedEntityRelationsConverter),
|
|
25
25
|
__metadata("design:type", Object)
|
|
26
26
|
], AggregatedEntityResource.prototype, "relations", void 0);
|
|
27
27
|
AggregatedEntityResource = __decorate([
|
|
28
|
-
ta_json_1.JsonObject()
|
|
28
|
+
(0, ta_json_1.JsonObject)()
|
|
29
29
|
], AggregatedEntityResource);
|
|
30
30
|
exports.AggregatedEntityResource = AggregatedEntityResource;
|
|
31
|
+
//# sourceMappingURL=aggregated-entity-resource.js.map
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { Nullable } from "../..";
|
|
2
|
+
import { IEntityCopyOptions } from "./entity-copy-options";
|
|
3
|
+
import { PropertyCopyMethod } from "./property-copy-method";
|
|
4
|
+
import { IPropertyCopyOption } from "./property-copy-option";
|
|
5
|
+
import { RelationCopyMethod } from "./relation-copy-method";
|
|
6
|
+
import { IRelationCopyOption } from "./relation-copy-option";
|
|
7
|
+
/**
|
|
8
|
+
* A builder for instances of <see cref="IEntityCopyOptions"/>.
|
|
9
|
+
*/
|
|
10
|
+
export interface IEntityCopyOptionsBuilder {
|
|
11
|
+
/**
|
|
12
|
+
* Indicates that the entity should be copied with the specified property.
|
|
13
|
+
*
|
|
14
|
+
* @param property - The name of the property.
|
|
15
|
+
* @param method - The copy method.
|
|
16
|
+
* @param newValue - The new value for the property.
|
|
17
|
+
*
|
|
18
|
+
* @returns The copy options builder.
|
|
19
|
+
*/
|
|
20
|
+
withProperty(property: string, method: PropertyCopyMethod, newValue: Nullable<string>): IEntityCopyOptionsBuilder;
|
|
21
|
+
/**
|
|
22
|
+
* Indicates that the entity should be copied with the specified properties.
|
|
23
|
+
*
|
|
24
|
+
* @param properties - The properties collection.
|
|
25
|
+
*
|
|
26
|
+
* @returns The copy options builder.
|
|
27
|
+
*/
|
|
28
|
+
withProperties(properties: Array<IPropertyCopyOption>): IEntityCopyOptionsBuilder;
|
|
29
|
+
/** Indicates that the entity should be copied with the specified relation.
|
|
30
|
+
*
|
|
31
|
+
* @param relation - The name of the relation.
|
|
32
|
+
* @param method - The copy method.
|
|
33
|
+
* @param relatedOptions - The related options.
|
|
34
|
+
*
|
|
35
|
+
* @returns The copy options builder.
|
|
36
|
+
*/
|
|
37
|
+
withRelation(relation: string, method: RelationCopyMethod, relatedOptions: Nullable<IEntityCopyOptions>): IEntityCopyOptionsBuilder;
|
|
38
|
+
/**
|
|
39
|
+
* Indicates that the entity should be copied with the specified relations.
|
|
40
|
+
*
|
|
41
|
+
* @param relations - The relations collection.
|
|
42
|
+
*
|
|
43
|
+
* @returns The copy options builder.
|
|
44
|
+
*/
|
|
45
|
+
withRelations(relations: Array<IRelationCopyOption>): IEntityCopyOptionsBuilder;
|
|
46
|
+
/**
|
|
47
|
+
* Indicates that the entity should be copied to the entity with the specified id.
|
|
48
|
+
*
|
|
49
|
+
* @param id - The destination entity identifier.
|
|
50
|
+
*
|
|
51
|
+
* @returns The copy options builder.
|
|
52
|
+
*/
|
|
53
|
+
withDestinationEntityId(id: number): IEntityCopyOptionsBuilder;
|
|
54
|
+
/**
|
|
55
|
+
* Indicates that the entity should be copied using the copy profile with the specified id.
|
|
56
|
+
*
|
|
57
|
+
* @param id - The id of the copy profile.
|
|
58
|
+
*
|
|
59
|
+
* @returns The copy options builder.
|
|
60
|
+
*/
|
|
61
|
+
withCopyProfileId(id: number): IEntityCopyOptionsBuilder;
|
|
62
|
+
/**
|
|
63
|
+
* Indicates that the entity should be copied using the copy profile with the specified identifier.
|
|
64
|
+
*
|
|
65
|
+
* @param identifier - The identifier of the copy profile.
|
|
66
|
+
*
|
|
67
|
+
* @returns The copy options builder.
|
|
68
|
+
*/
|
|
69
|
+
withCopyProfileIdentifier(identifier: string): IEntityCopyOptionsBuilder;
|
|
70
|
+
/**
|
|
71
|
+
* Gets the resulting instance of IEntityCopyOptions.
|
|
72
|
+
*
|
|
73
|
+
* @returns The copy options.
|
|
74
|
+
*/
|
|
75
|
+
build(): IEntityCopyOptions;
|
|
76
|
+
}
|
|
77
|
+
export declare class EntityCopyOptionsBuilder implements IEntityCopyOptionsBuilder {
|
|
78
|
+
private readonly _copyOptions;
|
|
79
|
+
constructor(copyOptions?: IEntityCopyOptions);
|
|
80
|
+
/**
|
|
81
|
+
* {@inheritDoc}
|
|
82
|
+
*/
|
|
83
|
+
withProperty(property: string, method: PropertyCopyMethod, newValue?: Nullable<string>): IEntityCopyOptionsBuilder;
|
|
84
|
+
/**
|
|
85
|
+
* {@inheritDoc}
|
|
86
|
+
*/
|
|
87
|
+
withProperties(properties: Array<IPropertyCopyOption>): IEntityCopyOptionsBuilder;
|
|
88
|
+
/**
|
|
89
|
+
* {@inheritDoc}
|
|
90
|
+
*/
|
|
91
|
+
withRelation(relation: string, method: RelationCopyMethod, relatedOptions?: Nullable<IEntityCopyOptions>): IEntityCopyOptionsBuilder;
|
|
92
|
+
/**
|
|
93
|
+
* {@inheritDoc}
|
|
94
|
+
*/
|
|
95
|
+
withRelations(relations: Array<IRelationCopyOption>): IEntityCopyOptionsBuilder;
|
|
96
|
+
/**
|
|
97
|
+
* {@inheritDoc}
|
|
98
|
+
*/
|
|
99
|
+
withDestinationEntityId(id: number): IEntityCopyOptionsBuilder;
|
|
100
|
+
/**
|
|
101
|
+
* {@inheritDoc}
|
|
102
|
+
*/
|
|
103
|
+
withCopyProfileId(id: number): IEntityCopyOptionsBuilder;
|
|
104
|
+
/**
|
|
105
|
+
* {@inheritDoc}
|
|
106
|
+
*/
|
|
107
|
+
withCopyProfileIdentifier(identifier: string): IEntityCopyOptionsBuilder;
|
|
108
|
+
/**
|
|
109
|
+
* {@inheritDoc}
|
|
110
|
+
*/
|
|
111
|
+
build(): IEntityCopyOptions;
|
|
112
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
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.EntityCopyOptionsBuilder = void 0;
|
|
7
|
+
const guard_1 = __importDefault(require("../../guard"));
|
|
8
|
+
const entity_copy_options_1 = require("./entity-copy-options");
|
|
9
|
+
const property_copy_option_1 = require("./property-copy-option");
|
|
10
|
+
const relation_copy_option_1 = require("./relation-copy-option");
|
|
11
|
+
class EntityCopyOptionsBuilder {
|
|
12
|
+
constructor(copyOptions) {
|
|
13
|
+
this._copyOptions = new entity_copy_options_1.EntityCopyOptions();
|
|
14
|
+
if (copyOptions) {
|
|
15
|
+
this._copyOptions = new entity_copy_options_1.EntityCopyOptions();
|
|
16
|
+
this._copyOptions.relationCopyOptions = copyOptions.relationCopyOptions;
|
|
17
|
+
this._copyOptions.propertyCopyOptions = copyOptions.propertyCopyOptions;
|
|
18
|
+
this._copyOptions.destinationEntityId = copyOptions.destinationEntityId;
|
|
19
|
+
this._copyOptions.copyProfileId = copyOptions.copyProfileId;
|
|
20
|
+
this._copyOptions.copyProfileIdentifier = copyOptions.copyProfileIdentifier;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* {@inheritDoc}
|
|
25
|
+
*/
|
|
26
|
+
withProperty(property, method, newValue = null) {
|
|
27
|
+
guard_1.default.stringNotNullOrEmpty(property);
|
|
28
|
+
guard_1.default.notNullOrUndefined(method);
|
|
29
|
+
return this.withProperties([new property_copy_option_1.PropertyCopyOption(property, method, newValue)]);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* {@inheritDoc}
|
|
33
|
+
*/
|
|
34
|
+
withProperties(properties) {
|
|
35
|
+
guard_1.default.notNullOrUndefined(properties);
|
|
36
|
+
this._copyOptions.propertyCopyOptions = [
|
|
37
|
+
...new Set((this._copyOptions.propertyCopyOptions || []).concat(properties)),
|
|
38
|
+
];
|
|
39
|
+
return this;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* {@inheritDoc}
|
|
43
|
+
*/
|
|
44
|
+
withRelation(relation, method, relatedOptions = null) {
|
|
45
|
+
guard_1.default.stringNotNullOrEmpty(relation);
|
|
46
|
+
guard_1.default.notNullOrUndefined(method);
|
|
47
|
+
return this.withRelations([new relation_copy_option_1.RelationCopyOption(relation, method, relatedOptions)]);
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* {@inheritDoc}
|
|
51
|
+
*/
|
|
52
|
+
withRelations(relations) {
|
|
53
|
+
guard_1.default.notNullOrUndefined(relations);
|
|
54
|
+
this._copyOptions.relationCopyOptions = [
|
|
55
|
+
...new Set((this._copyOptions.relationCopyOptions || []).concat(relations)),
|
|
56
|
+
];
|
|
57
|
+
return this;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* {@inheritDoc}
|
|
61
|
+
*/
|
|
62
|
+
withDestinationEntityId(id) {
|
|
63
|
+
guard_1.default.validId(id);
|
|
64
|
+
this._copyOptions.destinationEntityId = id;
|
|
65
|
+
return this;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* {@inheritDoc}
|
|
69
|
+
*/
|
|
70
|
+
withCopyProfileId(id) {
|
|
71
|
+
guard_1.default.validId(id);
|
|
72
|
+
this._copyOptions.copyProfileId = id;
|
|
73
|
+
return this;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* {@inheritDoc}
|
|
77
|
+
*/
|
|
78
|
+
withCopyProfileIdentifier(identifier) {
|
|
79
|
+
guard_1.default.stringNotNullOrEmpty(identifier);
|
|
80
|
+
this._copyOptions.copyProfileIdentifier = identifier;
|
|
81
|
+
return this;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* {@inheritDoc}
|
|
85
|
+
*/
|
|
86
|
+
build() {
|
|
87
|
+
return this._copyOptions;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
exports.EntityCopyOptionsBuilder = EntityCopyOptionsBuilder;
|
|
91
|
+
//# sourceMappingURL=entity-copy-options-builder.js.map
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { Nullable } from "../..";
|
|
2
|
+
import { IEntityCopyOptionsBuilder } from "./entity-copy-options-builder";
|
|
3
|
+
import { IPropertyCopyOption } from "./property-copy-option";
|
|
4
|
+
import { IRelationCopyOption } from "./relation-copy-option";
|
|
5
|
+
/**
|
|
6
|
+
* Represents options for copying an entity.
|
|
7
|
+
*/
|
|
8
|
+
export interface IEntityCopyOptions {
|
|
9
|
+
/**
|
|
10
|
+
* Gets or sets the copy profile identifier.
|
|
11
|
+
*/
|
|
12
|
+
copyProfileIdentifier: Nullable<string>;
|
|
13
|
+
/**
|
|
14
|
+
* Gets or sets the copy profile id.
|
|
15
|
+
*/
|
|
16
|
+
copyProfileId: Nullable<number>;
|
|
17
|
+
/**
|
|
18
|
+
* Gets or sets the id of the destination entity.
|
|
19
|
+
*/
|
|
20
|
+
destinationEntityId: Nullable<number>;
|
|
21
|
+
/**
|
|
22
|
+
* Gets or sets the relation copy options.
|
|
23
|
+
*/
|
|
24
|
+
relationCopyOptions: Nullable<Array<IRelationCopyOption>>;
|
|
25
|
+
/**
|
|
26
|
+
* Gets or sets the property copy options.
|
|
27
|
+
*/
|
|
28
|
+
propertyCopyOptions: Nullable<Array<IPropertyCopyOption>>;
|
|
29
|
+
/**
|
|
30
|
+
* Creates a {@link IEntityCopyOptionsBuilder} from the current {@link IEntityCopyOptions}.
|
|
31
|
+
* The builder can extend or overwrite the configuration of the current {@link IEntityCopyOptions}.
|
|
32
|
+
*/
|
|
33
|
+
builder(): IEntityCopyOptionsBuilder;
|
|
34
|
+
}
|
|
35
|
+
export declare class EntityCopyOptions implements IEntityCopyOptions {
|
|
36
|
+
/**
|
|
37
|
+
* {@inheritDoc}
|
|
38
|
+
*/
|
|
39
|
+
copyProfileIdentifier: Nullable<string>;
|
|
40
|
+
/**
|
|
41
|
+
* {@inheritDoc}
|
|
42
|
+
*/
|
|
43
|
+
copyProfileId: Nullable<number>;
|
|
44
|
+
/**
|
|
45
|
+
* {@inheritDoc}
|
|
46
|
+
*/
|
|
47
|
+
destinationEntityId: Nullable<number>;
|
|
48
|
+
/**
|
|
49
|
+
* {@inheritDoc}
|
|
50
|
+
*/
|
|
51
|
+
relationCopyOptions: Nullable<Array<IRelationCopyOption>>;
|
|
52
|
+
/**
|
|
53
|
+
* {@inheritDoc}
|
|
54
|
+
*/
|
|
55
|
+
propertyCopyOptions: Nullable<Array<IPropertyCopyOption>>;
|
|
56
|
+
/**
|
|
57
|
+
* {@inheritDoc}
|
|
58
|
+
*/
|
|
59
|
+
builder(): IEntityCopyOptionsBuilder;
|
|
60
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EntityCopyOptions = void 0;
|
|
4
|
+
const entity_copy_options_builder_1 = require("./entity-copy-options-builder");
|
|
5
|
+
class EntityCopyOptions {
|
|
6
|
+
/**
|
|
7
|
+
* {@inheritDoc}
|
|
8
|
+
*/
|
|
9
|
+
builder() {
|
|
10
|
+
return new entity_copy_options_builder_1.EntityCopyOptionsBuilder(this);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.EntityCopyOptions = EntityCopyOptions;
|
|
14
|
+
//# sourceMappingURL=entity-copy-options.js.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Property copy method.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum PropertyCopyMethod {
|
|
5
|
+
/**
|
|
6
|
+
* Keep
|
|
7
|
+
*/
|
|
8
|
+
Keep = "Keep",
|
|
9
|
+
/**
|
|
10
|
+
* Overwrite
|
|
11
|
+
*/
|
|
12
|
+
Overwrite = "Overwrite",
|
|
13
|
+
/**
|
|
14
|
+
* Remove
|
|
15
|
+
*/
|
|
16
|
+
Remove = "Remove",
|
|
17
|
+
/**
|
|
18
|
+
* Ignore
|
|
19
|
+
*/
|
|
20
|
+
Ignore = "Ignore"
|
|
21
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PropertyCopyMethod = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Property copy method.
|
|
6
|
+
*/
|
|
7
|
+
var PropertyCopyMethod;
|
|
8
|
+
(function (PropertyCopyMethod) {
|
|
9
|
+
/**
|
|
10
|
+
* Keep
|
|
11
|
+
*/
|
|
12
|
+
PropertyCopyMethod["Keep"] = "Keep";
|
|
13
|
+
/**
|
|
14
|
+
* Overwrite
|
|
15
|
+
*/
|
|
16
|
+
PropertyCopyMethod["Overwrite"] = "Overwrite";
|
|
17
|
+
/**
|
|
18
|
+
* Remove
|
|
19
|
+
*/
|
|
20
|
+
PropertyCopyMethod["Remove"] = "Remove";
|
|
21
|
+
/**
|
|
22
|
+
* Ignore
|
|
23
|
+
*/
|
|
24
|
+
PropertyCopyMethod["Ignore"] = "Ignore";
|
|
25
|
+
})(PropertyCopyMethod = exports.PropertyCopyMethod || (exports.PropertyCopyMethod = {}));
|
|
26
|
+
//# sourceMappingURL=property-copy-method.js.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Nullable } from "../..";
|
|
2
|
+
import { PropertyCopyMethod } from "./property-copy-method";
|
|
3
|
+
/**
|
|
4
|
+
* Defines a property copy option.
|
|
5
|
+
*/
|
|
6
|
+
export interface IPropertyCopyOption {
|
|
7
|
+
/**
|
|
8
|
+
* Gets or sets the name of the property.
|
|
9
|
+
*/
|
|
10
|
+
name: string;
|
|
11
|
+
/**
|
|
12
|
+
* Gets or sets the copy method.
|
|
13
|
+
*/
|
|
14
|
+
method: PropertyCopyMethod;
|
|
15
|
+
/**
|
|
16
|
+
* Gets or sets the new value for the property.
|
|
17
|
+
*/
|
|
18
|
+
newValue: Nullable<string>;
|
|
19
|
+
}
|
|
20
|
+
export declare class PropertyCopyOption implements IPropertyCopyOption {
|
|
21
|
+
/**
|
|
22
|
+
* {@inheritDoc}
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
* {@inheritDoc}
|
|
27
|
+
*/
|
|
28
|
+
method: PropertyCopyMethod;
|
|
29
|
+
/**
|
|
30
|
+
* {@inheritDoc}
|
|
31
|
+
*/
|
|
32
|
+
newValue: Nullable<string>;
|
|
33
|
+
constructor(name: string, method: PropertyCopyMethod, newValue?: Nullable<string>);
|
|
34
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PropertyCopyOption = void 0;
|
|
4
|
+
class PropertyCopyOption {
|
|
5
|
+
constructor(name, method, newValue = null) {
|
|
6
|
+
this.name = name;
|
|
7
|
+
this.method = method;
|
|
8
|
+
this.newValue = newValue !== null && newValue !== void 0 ? newValue : null;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.PropertyCopyOption = PropertyCopyOption;
|
|
12
|
+
//# sourceMappingURL=property-copy-option.js.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Relation copy method.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum RelationCopyMethod {
|
|
5
|
+
/**
|
|
6
|
+
* Keep
|
|
7
|
+
*/
|
|
8
|
+
Keep = "Keep",
|
|
9
|
+
/**
|
|
10
|
+
* Remove
|
|
11
|
+
*/
|
|
12
|
+
Remove = "Remove",
|
|
13
|
+
/**
|
|
14
|
+
* Copy
|
|
15
|
+
*/
|
|
16
|
+
Copy = "Copy",
|
|
17
|
+
/**
|
|
18
|
+
* Ignore
|
|
19
|
+
*/
|
|
20
|
+
Ignore = "Ignore"
|
|
21
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RelationCopyMethod = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Relation copy method.
|
|
6
|
+
*/
|
|
7
|
+
var RelationCopyMethod;
|
|
8
|
+
(function (RelationCopyMethod) {
|
|
9
|
+
/**
|
|
10
|
+
* Keep
|
|
11
|
+
*/
|
|
12
|
+
RelationCopyMethod["Keep"] = "Keep";
|
|
13
|
+
/**
|
|
14
|
+
* Remove
|
|
15
|
+
*/
|
|
16
|
+
RelationCopyMethod["Remove"] = "Remove";
|
|
17
|
+
/**
|
|
18
|
+
* Copy
|
|
19
|
+
*/
|
|
20
|
+
RelationCopyMethod["Copy"] = "Copy";
|
|
21
|
+
/**
|
|
22
|
+
* Ignore
|
|
23
|
+
*/
|
|
24
|
+
RelationCopyMethod["Ignore"] = "Ignore";
|
|
25
|
+
})(RelationCopyMethod = exports.RelationCopyMethod || (exports.RelationCopyMethod = {}));
|
|
26
|
+
//# sourceMappingURL=relation-copy-method.js.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { IEntityCopyOptions } from "./entity-copy-options";
|
|
2
|
+
import { RelationCopyMethod } from "./relation-copy-method";
|
|
3
|
+
import { Nullable } from "../..";
|
|
4
|
+
/**
|
|
5
|
+
* Defines a relation copy option.
|
|
6
|
+
*/
|
|
7
|
+
export interface IRelationCopyOption {
|
|
8
|
+
/**
|
|
9
|
+
* Gets or sets the name of the relation.
|
|
10
|
+
*/
|
|
11
|
+
name: string;
|
|
12
|
+
/**
|
|
13
|
+
* Gets or sets the copy method.
|
|
14
|
+
*/
|
|
15
|
+
method: RelationCopyMethod;
|
|
16
|
+
/**
|
|
17
|
+
* Gets or sets the related copy options.
|
|
18
|
+
*/
|
|
19
|
+
relatedCopyOptions: Nullable<IEntityCopyOptions>;
|
|
20
|
+
}
|
|
21
|
+
export declare class RelationCopyOption implements IRelationCopyOption {
|
|
22
|
+
/**
|
|
23
|
+
* {@inheritDoc}
|
|
24
|
+
*/
|
|
25
|
+
name: string;
|
|
26
|
+
/**
|
|
27
|
+
* {@inheritDoc}
|
|
28
|
+
*/
|
|
29
|
+
method: RelationCopyMethod;
|
|
30
|
+
/**
|
|
31
|
+
* {@inheritDoc}
|
|
32
|
+
*/
|
|
33
|
+
relatedCopyOptions: Nullable<IEntityCopyOptions>;
|
|
34
|
+
constructor(name: string, method: RelationCopyMethod, relatedCopyOptions?: Nullable<IEntityCopyOptions>);
|
|
35
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RelationCopyOption = void 0;
|
|
4
|
+
class RelationCopyOption {
|
|
5
|
+
constructor(name, method, relatedCopyOptions = null) {
|
|
6
|
+
this.name = name;
|
|
7
|
+
this.method = method;
|
|
8
|
+
this.relatedCopyOptions = relatedCopyOptions !== null && relatedCopyOptions !== void 0 ? relatedCopyOptions : null;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.RelationCopyOption = RelationCopyOption;
|
|
12
|
+
//# sourceMappingURL=relation-copy-option.js.map
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Nullable } from "../";
|
|
2
|
+
import { PropertyCopyOptionResource } from "./property-copy-option-resource";
|
|
3
|
+
import { RelationCopyOptionResource } from "./relation-copy-option-resource";
|
|
4
|
+
/**
|
|
5
|
+
* Defines the entity copy options resource.
|
|
6
|
+
*/
|
|
7
|
+
export declare class EntityCopyOptionsResource {
|
|
8
|
+
/**
|
|
9
|
+
* Gets or sets the copy profile identifier.
|
|
10
|
+
*/
|
|
11
|
+
copyProfileIdentifier: Nullable<string>;
|
|
12
|
+
/**
|
|
13
|
+
* Gets or sets the copy profile id.
|
|
14
|
+
*/
|
|
15
|
+
copyProfileId: Nullable<number>;
|
|
16
|
+
/**
|
|
17
|
+
* Gets or sets the culture load option.
|
|
18
|
+
*/
|
|
19
|
+
destinationEntityId: Nullable<number>;
|
|
20
|
+
/**
|
|
21
|
+
* Gets or sets the relation copy options.
|
|
22
|
+
*/
|
|
23
|
+
relationCopyOptions: Nullable<Array<RelationCopyOptionResource>>;
|
|
24
|
+
/**
|
|
25
|
+
* Gets or sets the property copy options.
|
|
26
|
+
*/
|
|
27
|
+
propertyCopyOptions: Nullable<Array<PropertyCopyOptionResource>>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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.EntityCopyOptionsResource = void 0;
|
|
13
|
+
const ta_json_1 = require("ta-json");
|
|
14
|
+
const property_copy_option_resource_1 = require("./property-copy-option-resource");
|
|
15
|
+
const relation_copy_option_resource_1 = require("./relation-copy-option-resource");
|
|
16
|
+
/**
|
|
17
|
+
* Defines the entity copy options resource.
|
|
18
|
+
*/
|
|
19
|
+
let EntityCopyOptionsResource = class EntityCopyOptionsResource {
|
|
20
|
+
};
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, ta_json_1.JsonProperty)("copy_profile_identifier"),
|
|
23
|
+
__metadata("design:type", Object)
|
|
24
|
+
], EntityCopyOptionsResource.prototype, "copyProfileIdentifier", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, ta_json_1.JsonProperty)("copy_profile_id"),
|
|
27
|
+
__metadata("design:type", Object)
|
|
28
|
+
], EntityCopyOptionsResource.prototype, "copyProfileId", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, ta_json_1.JsonProperty)("destination_entity_id"),
|
|
31
|
+
__metadata("design:type", Object)
|
|
32
|
+
], EntityCopyOptionsResource.prototype, "destinationEntityId", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, ta_json_1.JsonProperty)("relation_copy_options"),
|
|
35
|
+
(0, ta_json_1.JsonElementType)(relation_copy_option_resource_1.RelationCopyOptionResource),
|
|
36
|
+
__metadata("design:type", Object)
|
|
37
|
+
], EntityCopyOptionsResource.prototype, "relationCopyOptions", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, ta_json_1.JsonProperty)("property_copy_options"),
|
|
40
|
+
(0, ta_json_1.JsonElementType)(property_copy_option_resource_1.PropertyCopyOptionResource),
|
|
41
|
+
__metadata("design:type", Object)
|
|
42
|
+
], EntityCopyOptionsResource.prototype, "propertyCopyOptions", void 0);
|
|
43
|
+
EntityCopyOptionsResource = __decorate([
|
|
44
|
+
(0, ta_json_1.JsonObject)()
|
|
45
|
+
], EntityCopyOptionsResource);
|
|
46
|
+
exports.EntityCopyOptionsResource = EntityCopyOptionsResource;
|
|
47
|
+
//# sourceMappingURL=entity-copy-options-resource.js.map
|
|
@@ -16,11 +16,12 @@ const list_resource_1 = require("./list-resource");
|
|
|
16
16
|
let EntityDefinitionCollectionResource = class EntityDefinitionCollectionResource extends list_resource_1.ListResource {
|
|
17
17
|
};
|
|
18
18
|
__decorate([
|
|
19
|
-
ta_json_1.JsonProperty("items"),
|
|
20
|
-
ta_json_1.JsonElementType(entity_definition_resource_1.EntityDefinitionResource),
|
|
19
|
+
(0, ta_json_1.JsonProperty)("items"),
|
|
20
|
+
(0, ta_json_1.JsonElementType)(entity_definition_resource_1.EntityDefinitionResource),
|
|
21
21
|
__metadata("design:type", Array)
|
|
22
22
|
], EntityDefinitionCollectionResource.prototype, "items", void 0);
|
|
23
23
|
EntityDefinitionCollectionResource = __decorate([
|
|
24
|
-
ta_json_1.JsonObject()
|
|
24
|
+
(0, ta_json_1.JsonObject)()
|
|
25
25
|
], EntityDefinitionCollectionResource);
|
|
26
26
|
exports.EntityDefinitionCollectionResource = EntityDefinitionCollectionResource;
|
|
27
|
+
//# sourceMappingURL=entity-definition-collection-resource.js.map
|
|
@@ -14,10 +14,10 @@ export declare class EntityDefinitionResource extends Resource {
|
|
|
14
14
|
isSystemOwned: boolean;
|
|
15
15
|
labels: MapCultureTo<string>;
|
|
16
16
|
memberGroups: Array<MemberGroupResource>;
|
|
17
|
+
permissions?: Array<string>;
|
|
17
18
|
entities: Link;
|
|
18
19
|
relatedPaths: Link;
|
|
19
20
|
createdBy: Link;
|
|
20
21
|
modifiedBy: Link;
|
|
21
|
-
permissions: Link;
|
|
22
22
|
constructor(init?: Partial<EntityDefinitionResource>);
|
|
23
23
|
}
|