@sitecore/sc-contenthub-webclient-sdk 1.1.1 → 1.2.1

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.
Files changed (411) hide show
  1. package/README.md +35 -7
  2. package/dist/api/api-info-resource.js +9 -8
  3. package/dist/api/api-info.js +1 -0
  4. package/dist/api/api-resource.js +2 -1
  5. package/dist/api/api-routes-dictionary.js +1 -0
  6. package/dist/authentication/oauth-grant-base.js +5 -4
  7. package/dist/authentication/oauth-grant-type.js +1 -0
  8. package/dist/authentication/oauth-password-grant.js +5 -4
  9. package/dist/authentication/oauth-refreshtoken-grant.js +4 -3
  10. package/dist/authentication/token-info.js +6 -5
  11. package/dist/base-types.js +1 -0
  12. package/dist/caches/culture-cache.js +1 -0
  13. package/dist/caches/entity-definition-cache.d.ts +21 -7
  14. package/dist/caches/entity-definition-cache.js +38 -21
  15. package/dist/clients/aggregates-client.d.ts +27 -3
  16. package/dist/clients/aggregates-client.js +4 -3
  17. package/dist/clients/api-client.js +3 -2
  18. package/dist/clients/assets-client.d.ts +16 -0
  19. package/dist/clients/assets-client.js +43 -0
  20. package/dist/clients/commands-client.d.ts +7 -4
  21. package/dist/clients/commands-client.js +5 -4
  22. package/dist/clients/content-hub-client.d.ts +3 -0
  23. package/dist/clients/content-hub-client.js +3 -0
  24. package/dist/clients/culture-client.js +1 -0
  25. package/dist/clients/culture-loader.js +1 -0
  26. package/dist/clients/entities-client.d.ts +44 -29
  27. package/dist/clients/entities-client.js +44 -30
  28. package/dist/clients/entity-definitions-client.d.ts +55 -17
  29. package/dist/clients/entity-definitions-client.js +58 -57
  30. package/dist/clients/extended-client.js +1 -0
  31. package/dist/clients/internal-client.d.ts +17 -2
  32. package/dist/clients/internal-client.js +17 -3
  33. package/dist/clients/notifications-client.js +1 -0
  34. package/dist/clients/option-list-client.d.ts +19 -12
  35. package/dist/clients/option-list-client.js +13 -12
  36. package/dist/clients/pages-client.d.ts +13 -6
  37. package/dist/clients/pages-client.js +9 -8
  38. package/dist/clients/permissions-client.js +1 -0
  39. package/dist/clients/policies-client.js +3 -21
  40. package/dist/clients/querying-client.d.ts +58 -11
  41. package/dist/clients/querying-client.js +43 -8
  42. package/dist/clients/raw-client.d.ts +11 -18
  43. package/dist/clients/raw-client.js +11 -10
  44. package/dist/clients/request-message.js +1 -0
  45. package/dist/clients/response-handler.js +8 -26
  46. package/dist/clients/response-message.js +1 -0
  47. package/dist/clients/schema-querying.d.ts +4 -3
  48. package/dist/clients/schema-querying.js +6 -4
  49. package/dist/clients/search-client.d.ts +7 -4
  50. package/dist/clients/search-client.js +5 -4
  51. package/dist/clients/settings-client.d.ts +8 -0
  52. package/dist/clients/settings-client.js +13 -0
  53. package/dist/clients/upload-client.d.ts +5 -2
  54. package/dist/clients/upload-client.js +36 -17
  55. package/dist/clients/users-client.js +1 -0
  56. package/dist/clients/version-checker.js +2 -1
  57. package/dist/clients/web-content-hub-client.js +1 -0
  58. package/dist/constants/api.d.ts +26 -3
  59. package/dist/constants/api.js +28 -4
  60. package/dist/constants/defaults.js +2 -1
  61. package/dist/constants/definitions.d.ts +10 -0
  62. package/dist/constants/definitions.js +14 -1
  63. package/dist/constants/index.js +2 -1
  64. package/dist/constants/notifications.js +1 -0
  65. package/dist/contracts/base/culture-insensitive-property.js +1 -0
  66. package/dist/contracts/base/culture-sensitive-property.js +1 -0
  67. package/dist/contracts/base/data-type.js +1 -0
  68. package/dist/contracts/base/entity-base.d.ts +7 -0
  69. package/dist/contracts/base/entity-base.js +57 -32
  70. package/dist/contracts/base/entity-construction-args.js +1 -0
  71. package/dist/contracts/base/entity-definition.d.ts +5 -0
  72. package/dist/contracts/base/entity-definition.js +20 -18
  73. package/dist/contracts/base/entity.d.ts +30 -1
  74. package/dist/contracts/base/entity.js +4 -3
  75. package/dist/contracts/base/index.js +2 -1
  76. package/dist/contracts/base/json-content-type.js +1 -0
  77. package/dist/contracts/base/lazy-loading-manager.js +1 -0
  78. package/dist/contracts/base/member-condition.js +11 -10
  79. package/dist/contracts/base/member-definition-type.js +1 -0
  80. package/dist/contracts/base/member-definition.js +14 -13
  81. package/dist/contracts/base/member-group.js +12 -11
  82. package/dist/contracts/base/member.js +1 -0
  83. package/dist/contracts/base/option-lists/flat-option-list-value.js +1 -0
  84. package/dist/contracts/base/option-lists/flat-option-list.js +1 -0
  85. package/dist/contracts/base/option-lists/hierarchical-option-list.js +1 -0
  86. package/dist/contracts/base/option-lists/hierarchical-options-list-value.js +1 -0
  87. package/dist/contracts/base/option-lists/option-list-base.js +1 -0
  88. package/dist/contracts/base/option-lists/option-list-type.js +1 -0
  89. package/dist/contracts/base/option-lists/option-list-value-base.js +1 -0
  90. package/dist/contracts/base/option-lists/option-list-value.js +1 -0
  91. package/dist/contracts/base/option-lists/option-list.js +1 -0
  92. package/dist/contracts/base/property-definition.js +13 -12
  93. package/dist/contracts/base/property-definitions/boolean-property-definition.js +3 -2
  94. package/dist/contracts/base/property-definitions/datetime-property-definition.js +3 -2
  95. package/dist/contracts/base/property-definitions/datetimeoffset-property-definition.js +3 -2
  96. package/dist/contracts/base/property-definitions/decimal-property-definition.js +3 -2
  97. package/dist/contracts/base/property-definitions/index.js +2 -1
  98. package/dist/contracts/base/property-definitions/integer-property-definition.js +3 -2
  99. package/dist/contracts/base/property-definitions/json-property-definition.js +4 -3
  100. package/dist/contracts/base/property-definitions/long-property-definition.js +3 -2
  101. package/dist/contracts/base/property-definitions/string-property-definition.js +5 -4
  102. package/dist/contracts/base/property-manager.js +1 -0
  103. package/dist/contracts/base/property.js +1 -0
  104. package/dist/contracts/base/related-path.d.ts +1 -1
  105. package/dist/contracts/base/related-path.js +1 -0
  106. package/dist/contracts/base/relation-cardinality.js +1 -0
  107. package/dist/contracts/base/relation-container.js +5 -4
  108. package/dist/contracts/base/relation-definition.js +23 -22
  109. package/dist/contracts/base/relation-manager.d.ts +1 -1
  110. package/dist/contracts/base/relation-manager.js +6 -6
  111. package/dist/contracts/base/relation-role.js +1 -0
  112. package/dist/contracts/base/relation.d.ts +16 -3
  113. package/dist/contracts/base/relation.js +28 -3
  114. package/dist/contracts/base/relations/child-to-many-parents-relation.d.ts +4 -1
  115. package/dist/contracts/base/relations/child-to-many-parents-relation.js +33 -2
  116. package/dist/contracts/base/relations/child-to-one-parent-relation.d.ts +3 -1
  117. package/dist/contracts/base/relations/child-to-one-parent-relation.js +27 -2
  118. package/dist/contracts/base/relations/parent-to-many-children-relation.d.ts +4 -1
  119. package/dist/contracts/base/relations/parent-to-many-children-relation.js +33 -2
  120. package/dist/contracts/base/relations/parent-to-one-child-relation.d.ts +3 -1
  121. package/dist/contracts/base/relations/parent-to-one-child-relation.js +27 -2
  122. package/dist/contracts/base/relations/to-many-relation.d.ts +10 -0
  123. package/dist/contracts/base/relations/to-many-relation.js +1 -0
  124. package/dist/contracts/base/relations/to-one-relation.d.ts +5 -0
  125. package/dist/contracts/base/relations/to-one-relation.js +1 -0
  126. package/dist/contracts/base/rendition.js +1 -0
  127. package/dist/contracts/base/resource.js +1 -0
  128. package/dist/contracts/base/string-content-type.js +1 -0
  129. package/dist/contracts/base/typed-entity.js +1 -0
  130. package/dist/contracts/base/users.js +1 -0
  131. package/dist/contracts/base/view-mode.js +1 -0
  132. package/dist/contracts/content/asset.js +1 -0
  133. package/dist/contracts/content/final-life-cycle-status.js +1 -0
  134. package/dist/contracts/dirty-tracking/dirty-tracking.js +1 -0
  135. package/dist/contracts/notifications/mail-template.js +1 -0
  136. package/dist/contracts/policies/condition.js +1 -0
  137. package/dist/contracts/policies/member-policy.js +1 -0
  138. package/dist/contracts/policies/policy.js +1 -0
  139. package/dist/contracts/policies/rule-type.js +1 -0
  140. package/dist/contracts/policies/rule.js +1 -0
  141. package/dist/contracts/policies/user-group-policy.js +2 -0
  142. package/dist/contracts/policies/user-policy.js +2 -0
  143. package/dist/contracts/querying/culture-load-option.js +5 -4
  144. package/dist/contracts/querying/entity-definition-id-iterator.js +1 -0
  145. package/dist/contracts/querying/entity-definition-id-query-result.js +1 -0
  146. package/dist/contracts/querying/entity-definition-iterator.js +1 -0
  147. package/dist/contracts/querying/entity-definition-query-result.js +1 -0
  148. package/dist/contracts/querying/entity-iterator.js +1 -0
  149. package/dist/contracts/querying/entity-load-configuration-builder.js +1 -0
  150. package/dist/contracts/querying/entity-load-configuration.js +5 -4
  151. package/dist/contracts/querying/entity-load-option.js +9 -8
  152. package/dist/contracts/querying/entity-query-result.js +1 -0
  153. package/dist/contracts/querying/filters/comparison-operator.js +1 -0
  154. package/dist/contracts/querying/filters/composite-filter-operator.js +1 -0
  155. package/dist/contracts/querying/filters/composite-query-filter.js +7 -6
  156. package/dist/contracts/querying/filters/createdby-query-filter.js +4 -3
  157. package/dist/contracts/querying/filters/createdon-query-filter.js +7 -6
  158. package/dist/contracts/querying/filters/definition-query-filter.js +11 -10
  159. package/dist/contracts/querying/filters/filter-data-type.js +1 -0
  160. package/dist/contracts/querying/filters/filter-type.js +1 -0
  161. package/dist/contracts/querying/filters/id-query-filter.js +8 -7
  162. package/dist/contracts/querying/filters/identifier-query-filter.js +8 -7
  163. package/dist/contracts/querying/filters/index.js +2 -1
  164. package/dist/contracts/querying/filters/modifiedby-query-filter.js +4 -3
  165. package/dist/contracts/querying/filters/modifiedon-query-filter.js +7 -6
  166. package/dist/contracts/querying/filters/modules-query-filter.js +5 -4
  167. package/dist/contracts/querying/filters/not-query-filter.js +5 -4
  168. package/dist/contracts/querying/filters/property-query-filter.js +11 -10
  169. package/dist/contracts/querying/filters/query-filter.js +4 -3
  170. package/dist/contracts/querying/filters/relation-connection-type.js +1 -0
  171. package/dist/contracts/querying/filters/relation-query-filter.js +8 -7
  172. package/dist/contracts/querying/filters/secured-ancestors-query-filter.js +8 -7
  173. package/dist/contracts/querying/filters/user-query-filter.js +11 -10
  174. package/dist/contracts/querying/id-iterator.js +1 -0
  175. package/dist/contracts/querying/id-query-result.js +1 -0
  176. package/dist/contracts/querying/iterator.js +1 -0
  177. package/dist/contracts/querying/load-option.js +1 -0
  178. package/dist/contracts/querying/load-options.js +1 -0
  179. package/dist/contracts/querying/loading-query-iterator.js +1 -0
  180. package/dist/contracts/querying/member-load-option.js +1 -0
  181. package/dist/contracts/querying/minimal-schema.js +7 -6
  182. package/dist/contracts/querying/property-data.js +7 -6
  183. package/dist/contracts/querying/property-load-option.js +5 -4
  184. package/dist/contracts/querying/query-iterator.js +1 -0
  185. package/dist/contracts/querying/query-load-configuration.js +9 -8
  186. package/dist/contracts/querying/query-request.js +3 -2
  187. package/dist/contracts/querying/query-result-paging-manager.js +1 -0
  188. package/dist/contracts/querying/query-result.js +1 -0
  189. package/dist/contracts/querying/query-sort-order.js +1 -0
  190. package/dist/contracts/querying/query.js +8 -7
  191. package/dist/contracts/querying/relation-data.js +6 -5
  192. package/dist/contracts/querying/relation-load-option.js +5 -4
  193. package/dist/contracts/querying/relation-specification.js +5 -4
  194. package/dist/contracts/querying/schema-querying.js +1 -0
  195. package/dist/contracts/querying/scroll-request.js +5 -4
  196. package/dist/contracts/querying/skip-take-iterator-base.js +1 -0
  197. package/dist/contracts/querying/sort-field-type.js +1 -0
  198. package/dist/contracts/querying/sorting.js +6 -5
  199. package/dist/contracts/upload/upload-source.js +1 -0
  200. package/dist/contracts/users/user-group-combine-method.js +1 -0
  201. package/dist/contracts/users/user-group-configuration.js +7 -6
  202. package/dist/contracts/users/user-profile.js +1 -0
  203. package/dist/contracts/users/user.js +1 -0
  204. package/dist/converters/aggregated-entity-relations-converter.js +1 -0
  205. package/dist/converters/all-facet-values-children-converter.js +1 -0
  206. package/dist/converters/api-resource-converter.js +2 -0
  207. package/dist/converters/date-converter.js +1 -0
  208. package/dist/converters/file-version-converter.js +1 -0
  209. package/dist/converters/index.js +2 -1
  210. package/dist/converters/member-condition-converter.js +1 -0
  211. package/dist/converters/member-condition-resource-converter.js +1 -0
  212. package/dist/converters/minimal-schema-relation-cardinality-converter.js +1 -0
  213. package/dist/converters/page-resource-menus-converter.js +1 -0
  214. package/dist/converters/page-resource-zones-converter.js +1 -0
  215. package/dist/converters/relation-map-resource-converter.js +1 -0
  216. package/dist/converters/relation-resource-converter.js +1 -0
  217. package/dist/converters/renditions-converter.js +1 -0
  218. package/dist/converters/string-to-any-map-converter.js +1 -0
  219. package/dist/culture-info.js +1 -0
  220. package/dist/dirty-value-calculator.js +1 -0
  221. package/dist/entity-link.js +7 -6
  222. package/dist/error-messages.d.ts +0 -3
  223. package/dist/error-messages.js +1 -3
  224. package/dist/errors/argument-error.js +1 -0
  225. package/dist/errors/authentication-error.js +1 -0
  226. package/dist/errors/bad-request-error.js +1 -0
  227. package/dist/errors/forbidden-error.js +1 -0
  228. package/dist/errors/internal-error.js +1 -0
  229. package/dist/errors/invalid-operation-error.js +1 -0
  230. package/dist/errors/not-found-error.js +1 -0
  231. package/dist/errors/not-implemented-error.js +1 -0
  232. package/dist/errors/not-loaded-error.js +1 -0
  233. package/dist/errors/not-supported-error.js +1 -0
  234. package/dist/errors/schema-error.js +1 -0
  235. package/dist/errors/validation-error.js +1 -0
  236. package/dist/errors/validation-failure.js +1 -0
  237. package/dist/errors/web-api-error.js +1 -0
  238. package/dist/factories/entity-factory.js +2 -1
  239. package/dist/factories/option-list-factory.js +1 -0
  240. package/dist/factories/property-factory.js +3 -2
  241. package/dist/factories/relation-factory.js +5 -4
  242. package/dist/fileversion.js +1 -0
  243. package/dist/guard.d.ts +10 -10
  244. package/dist/guard.js +3 -0
  245. package/dist/http-method.js +1 -0
  246. package/dist/index.js +2 -1
  247. package/dist/link-helper.d.ts +40 -16
  248. package/dist/link-helper.js +82 -10
  249. package/dist/link.js +5 -4
  250. package/dist/logging/log-level.js +1 -0
  251. package/dist/logging/logger-base.js +1 -0
  252. package/dist/logging/logger.js +1 -0
  253. package/dist/logging/null-logger.js +3 -0
  254. package/dist/mappers/api-resource-mapper.js +1 -0
  255. package/dist/mappers/condition-mapper.js +1 -0
  256. package/dist/mappers/entity-copy-options-mapper.d.ts +6 -0
  257. package/dist/mappers/entity-copy-options-mapper.js +42 -0
  258. package/dist/mappers/entity-definition-mapper.js +7 -2
  259. package/dist/mappers/entity-mapper.js +14 -0
  260. package/dist/mappers/filter-operator-mapper.js +1 -0
  261. package/dist/mappers/final-life-cycle-status-mapper.js +3 -2
  262. package/dist/mappers/load-options-mapper.js +1 -0
  263. package/dist/mappers/mapping-utilities.js +1 -0
  264. package/dist/mappers/member-condition-mapper.js +3 -2
  265. package/dist/mappers/member-definition-mapper.js +4 -3
  266. package/dist/mappers/member-group-mapper.js +1 -0
  267. package/dist/mappers/member-security-mapper.js +1 -0
  268. package/dist/mappers/notification-mapper.js +1 -0
  269. package/dist/mappers/option-list-mapper.js +2 -1
  270. package/dist/mappers/policy-mapper.js +1 -0
  271. package/dist/mappers/property-mapper.js +2 -1
  272. package/dist/mappers/querying-mapper.js +1 -0
  273. package/dist/mappers/related-path-mapper.js +3 -2
  274. package/dist/mappers/relation-cardinality-mapper.js +1 -0
  275. package/dist/mappers/relation-mapper.js +8 -7
  276. package/dist/mappers/relation-role-mapper.js +3 -2
  277. package/dist/mappers/rendition-mapper.js +1 -0
  278. package/dist/mappers/rule-type-mapper.js +1 -0
  279. package/dist/mappers/rules-mapper.js +1 -0
  280. package/dist/mappers/typed-entity-creator.js +1 -0
  281. package/dist/models/aggregate-resources/aggregate-resource.d.ts +2 -1
  282. package/dist/models/aggregate-resources/aggregate-resource.js +12 -7
  283. package/dist/models/aggregate-resources/aggregated-entity-resource.js +5 -4
  284. package/dist/models/content/entity-copy-options-builder.d.ts +112 -0
  285. package/dist/models/content/entity-copy-options-builder.js +91 -0
  286. package/dist/models/content/entity-copy-options.d.ts +60 -0
  287. package/dist/models/content/entity-copy-options.js +14 -0
  288. package/dist/models/content/property-copy-method.d.ts +21 -0
  289. package/dist/models/content/property-copy-method.js +26 -0
  290. package/dist/models/content/property-copy-option.d.ts +34 -0
  291. package/dist/models/content/property-copy-option.js +12 -0
  292. package/dist/models/content/relation-copy-method.d.ts +21 -0
  293. package/dist/models/content/relation-copy-method.js +26 -0
  294. package/dist/models/content/relation-copy-option.d.ts +35 -0
  295. package/dist/models/content/relation-copy-option.js +12 -0
  296. package/dist/models/entity-copy-options-resource.d.ts +28 -0
  297. package/dist/models/entity-copy-options-resource.js +47 -0
  298. package/dist/models/entity-definition-collection-resource.js +4 -3
  299. package/dist/models/entity-definition-resource.d.ts +1 -1
  300. package/dist/models/entity-definition-resource.js +23 -21
  301. package/dist/models/entity-list-resource.js +4 -3
  302. package/dist/models/entity-path.d.ts +4 -0
  303. package/dist/models/entity-path.js +24 -0
  304. package/dist/models/entity-resource.d.ts +8 -0
  305. package/dist/models/entity-resource.js +70 -39
  306. package/dist/models/list-resource.js +10 -9
  307. package/dist/models/member-condition-resource.js +10 -9
  308. package/dist/models/member-definition-resource.js +16 -15
  309. package/dist/models/member-group-resource.js +13 -12
  310. package/dist/models/notifications/distribute-notification-resource.js +7 -6
  311. package/dist/models/notifications/mail-request-broadcast.js +1 -0
  312. package/dist/models/notifications/mail-request-by-id.js +1 -0
  313. package/dist/models/notifications/mail-request-by-username.js +1 -0
  314. package/dist/models/notifications/mail-request.js +1 -0
  315. package/dist/models/notifications/notification-level.js +1 -0
  316. package/dist/models/notifications/realtime-request-broadcast.js +1 -0
  317. package/dist/models/notifications/realtime-request-by-id.js +1 -0
  318. package/dist/models/notifications/realtime-request-by-username.js +1 -0
  319. package/dist/models/notifications/realtime-request.js +1 -0
  320. package/dist/models/notifications/request-by-id.js +1 -0
  321. package/dist/models/notifications/request-by-username.js +1 -0
  322. package/dist/models/notifications/validators/mail-validator.js +1 -0
  323. package/dist/models/notifications/validators/realtime-validator.js +1 -0
  324. package/dist/models/notifications/validators/request-by-id-validator.js +1 -0
  325. package/dist/models/notifications/validators/request-by-username-validator.js +1 -0
  326. package/dist/models/notifications/validators/validator-base.js +1 -0
  327. package/dist/models/option-lists/flat-option-list-value.js +1 -0
  328. package/dist/models/option-lists/hierarchical-options-list-value.js +1 -0
  329. package/dist/models/option-lists/option-list-collection-resource.js +5 -4
  330. package/dist/models/option-lists/option-list-description-resource.js +5 -4
  331. package/dist/models/option-lists/option-list-resource.js +12 -11
  332. package/dist/models/option-lists/option-list-value-resource.js +6 -5
  333. package/dist/models/pages/component-visualization.js +9 -8
  334. package/dist/models/pages/language-resource.js +7 -6
  335. package/dist/models/pages/menu-item.js +12 -11
  336. package/dist/models/pages/page-component-resource.js +18 -17
  337. package/dist/models/pages/page-resource.js +21 -20
  338. package/dist/models/pages/page-row-settings.js +26 -25
  339. package/dist/models/pages/portal-column-resource.js +5 -4
  340. package/dist/models/pages/portal-row-resource.js +5 -4
  341. package/dist/models/pages/portal-section-resource.js +5 -4
  342. package/dist/models/permissions-resource.js +4 -3
  343. package/dist/models/policies/condition-resource.js +6 -5
  344. package/dist/models/policies/member-policy-resource.js +6 -5
  345. package/dist/models/policies/policy-resource.js +16 -15
  346. package/dist/models/policies/rule-resource.js +12 -11
  347. package/dist/models/property-copy-option-resource.d.ts +19 -0
  348. package/dist/models/property-copy-option-resource.js +41 -0
  349. package/dist/models/property-definition-resource.js +35 -34
  350. package/dist/models/query-loading-resource.d.ts +5 -0
  351. package/dist/models/query-loading-resource.js +9 -3
  352. package/dist/models/query-result-resource.js +6 -5
  353. package/dist/models/relation-copy-option-resource.d.ts +20 -0
  354. package/dist/models/relation-copy-option-resource.js +41 -0
  355. package/dist/models/relation-definition-resource.js +23 -22
  356. package/dist/models/relation-map-resource.js +2 -1
  357. package/dist/models/relation-resource.js +13 -12
  358. package/dist/models/resource-containers/entity-definition-resource-container.js +1 -0
  359. package/dist/models/resource-containers/entity-resource-container.js +1 -0
  360. package/dist/models/resource.js +3 -2
  361. package/dist/models/search/aggregation-request-resource.js +13 -12
  362. package/dist/models/search/aggregation-response-resource.js +7 -6
  363. package/dist/models/search/all-facet-values-response.js +6 -5
  364. package/dist/models/search/all-facets-request.d.ts +3 -0
  365. package/dist/models/search/all-facets-request.js +17 -8
  366. package/dist/models/search/bucket-response-resource.js +8 -7
  367. package/dist/models/search/date-interval.js +1 -0
  368. package/dist/models/search/facet-response-resource.js +20 -19
  369. package/dist/models/search/field-filter-request-resource.js +14 -13
  370. package/dist/models/search/field-filter-response-resource.js +17 -16
  371. package/dist/models/search/field-filter-value-response-resource.js +5 -4
  372. package/dist/models/search/filter-operator.js +1 -0
  373. package/dist/models/search/full-text-response-resource.js +4 -3
  374. package/dist/models/search/group-category.js +6 -5
  375. package/dist/models/search/group-config.js +4 -3
  376. package/dist/models/search/group-item.js +7 -6
  377. package/dist/models/search/grouped-view-response-resource.js +12 -11
  378. package/dist/models/search/metric-option-request-resource.js +5 -4
  379. package/dist/models/search/metric-option-response-resource.js +5 -4
  380. package/dist/models/search/nested-relation-info.js +9 -8
  381. package/dist/models/search/requested-aggregation-type.js +1 -0
  382. package/dist/models/search/requested-filter-type.js +1 -0
  383. package/dist/models/search/search-group-request-resource.d.ts +1 -0
  384. package/dist/models/search/search-group-request-resource.js +8 -3
  385. package/dist/models/search/search-request.d.ts +2 -0
  386. package/dist/models/search/search-request.js +37 -28
  387. package/dist/models/search/search-response.js +24 -23
  388. package/dist/models/search/selection-pool-filter-resource.js +6 -5
  389. package/dist/models/search/sorting-request-resource.js +4 -3
  390. package/dist/models/search/sorting-response-resource.js +5 -4
  391. package/dist/models/search-document-resource.js +4 -3
  392. package/dist/models/set-password-request-resource.js +3 -2
  393. package/dist/models/setting-resource.d.ts +9 -0
  394. package/dist/models/setting-resource.js +40 -0
  395. package/dist/models/upload/array-buffer-upload-source.d.ts +8 -0
  396. package/dist/models/upload/array-buffer-upload-source.js +19 -15
  397. package/dist/models/upload/create-upload-response.js +5 -4
  398. package/dist/models/upload/http-upload-source.js +1 -0
  399. package/dist/models/upload/local-upload-source.js +2 -0
  400. package/dist/models/upload/upload-action.js +4 -3
  401. package/dist/models/upload/upload-configuration.js +4 -3
  402. package/dist/models/upload/upload-request-wrapper.js +8 -7
  403. package/dist/models/upload/upload-request.js +1 -0
  404. package/dist/models/user-entity-permissions-resource.js +13 -12
  405. package/dist/models/versionining/compatibility.js +1 -0
  406. package/dist/settings/fetch-setting.js +17 -16
  407. package/dist/settings/super-user-excluded-privileges.js +4 -3
  408. package/dist/settings/usage-rights-configuration.js +18 -17
  409. package/dist/type-guards.js +1 -0
  410. package/dist/utilities/array-utilities.js +1 -0
  411. package/package.json +20 -21
@@ -75,3 +75,4 @@ class TypedEntityCreator extends TypedEntityCreatorBase {
75
75
  }
76
76
  }
77
77
  exports.TypedEntityCreator = TypedEntityCreator;
78
+ //# sourceMappingURL=typed-entity-creator.js.map
@@ -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: Array<OptionListResource>;
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
  }