@remkoj/optimizely-cms-api 5.1.5 → 6.0.0-pre10

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 (241) hide show
  1. package/README.md +3 -5
  2. package/dist/api-client.d.ts +70 -11
  3. package/dist/api-client.js +208 -48
  4. package/dist/client/client/client.gen.d.ts +2 -0
  5. package/dist/client/client/client.gen.js +208 -0
  6. package/dist/client/client/index.d.ts +8 -0
  7. package/dist/client/client/index.js +17 -0
  8. package/dist/client/client/types.gen.d.ts +124 -0
  9. package/dist/client/{core/ApiRequestOptions.js → client/types.gen.js} +1 -0
  10. package/dist/client/client/utils.gen.d.ts +33 -0
  11. package/dist/client/client/utils.gen.js +242 -0
  12. package/dist/client/client.gen.d.ts +12 -0
  13. package/dist/client/client.gen.js +9 -0
  14. package/dist/client/core/auth.gen.d.ts +18 -0
  15. package/dist/client/core/auth.gen.js +18 -0
  16. package/dist/client/core/bodySerializer.gen.d.ts +25 -0
  17. package/dist/client/core/bodySerializer.gen.js +60 -0
  18. package/dist/client/core/params.gen.d.ts +33 -0
  19. package/dist/client/core/params.gen.js +92 -0
  20. package/dist/client/core/pathSerializer.gen.d.ts +33 -0
  21. package/dist/client/core/pathSerializer.gen.js +123 -0
  22. package/dist/client/core/queryKeySerializer.gen.d.ts +18 -0
  23. package/dist/client/core/queryKeySerializer.gen.js +105 -0
  24. package/dist/client/core/serverSentEvents.gen.d.ts +71 -0
  25. package/dist/client/core/serverSentEvents.gen.js +139 -0
  26. package/dist/client/core/types.gen.d.ts +78 -0
  27. package/dist/client/core/{ApiResult.js → types.gen.js} +1 -0
  28. package/dist/client/core/utils.gen.d.ts +19 -0
  29. package/dist/client/core/utils.gen.js +93 -0
  30. package/dist/client/index.d.ts +4 -78
  31. package/dist/client/index.js +18 -46
  32. package/dist/client/sdk.gen.d.ts +117 -0
  33. package/dist/client/sdk.gen.js +251 -0
  34. package/dist/client/transformers.gen.d.ts +18 -0
  35. package/dist/client/transformers.gen.js +157 -0
  36. package/dist/client/types.gen.d.ts +1285 -0
  37. package/dist/client/{models/BooleanProperty.js → types.gen.js} +1 -0
  38. package/dist/client-config.d.ts +5 -0
  39. package/dist/client-config.js +55 -0
  40. package/dist/config.d.ts +5 -2
  41. package/dist/config.js +26 -18
  42. package/dist/getaccesstoken.d.ts +1 -1
  43. package/dist/getaccesstoken.js +10 -9
  44. package/dist/index.d.ts +7 -6
  45. package/dist/index.js +15 -8
  46. package/dist/instance.client/client/client.gen.d.ts +2 -0
  47. package/dist/instance.client/client/client.gen.js +208 -0
  48. package/dist/instance.client/client/index.d.ts +8 -0
  49. package/dist/instance.client/client/index.js +17 -0
  50. package/dist/instance.client/client/types.gen.d.ts +124 -0
  51. package/dist/{client/models/BinaryProperty.js → instance.client/client/types.gen.js} +1 -0
  52. package/dist/instance.client/client/utils.gen.d.ts +33 -0
  53. package/dist/instance.client/client/utils.gen.js +242 -0
  54. package/dist/instance.client/client.gen.d.ts +12 -0
  55. package/dist/instance.client/client.gen.js +9 -0
  56. package/dist/instance.client/core/auth.gen.d.ts +18 -0
  57. package/dist/instance.client/core/auth.gen.js +18 -0
  58. package/dist/instance.client/core/bodySerializer.gen.d.ts +25 -0
  59. package/dist/instance.client/core/bodySerializer.gen.js +60 -0
  60. package/dist/instance.client/core/params.gen.d.ts +33 -0
  61. package/dist/instance.client/core/params.gen.js +92 -0
  62. package/dist/instance.client/core/pathSerializer.gen.d.ts +33 -0
  63. package/dist/instance.client/core/pathSerializer.gen.js +123 -0
  64. package/dist/instance.client/core/queryKeySerializer.gen.d.ts +18 -0
  65. package/dist/instance.client/core/queryKeySerializer.gen.js +105 -0
  66. package/dist/instance.client/core/serverSentEvents.gen.d.ts +71 -0
  67. package/dist/instance.client/core/serverSentEvents.gen.js +139 -0
  68. package/dist/instance.client/core/types.gen.d.ts +78 -0
  69. package/dist/instance.client/core/types.gen.js +3 -0
  70. package/dist/instance.client/core/utils.gen.d.ts +19 -0
  71. package/dist/instance.client/core/utils.gen.js +93 -0
  72. package/dist/instance.client/index.d.ts +4 -0
  73. package/dist/instance.client/index.js +21 -0
  74. package/dist/instance.client/sdk.gen.d.ts +303 -0
  75. package/dist/instance.client/sdk.gen.js +699 -0
  76. package/dist/instance.client/transformers.gen.d.ts +48 -0
  77. package/dist/instance.client/transformers.gen.js +431 -0
  78. package/dist/instance.client/types.gen.d.ts +2838 -0
  79. package/dist/instance.client/types.gen.js +3 -0
  80. package/dist/types.d.ts +3 -1
  81. package/dist/types.js +1 -0
  82. package/dist/version.json +3 -3
  83. package/package.json +16 -11
  84. package/dist/client/CmsIntegrationApiClient.d.ts +0 -22
  85. package/dist/client/CmsIntegrationApiClient.js +0 -34
  86. package/dist/client/core/ApiError.d.ts +0 -10
  87. package/dist/client/core/ApiError.js +0 -15
  88. package/dist/client/core/ApiRequestOptions.d.ts +0 -13
  89. package/dist/client/core/ApiResult.d.ts +0 -7
  90. package/dist/client/core/BaseHttpRequest.d.ts +0 -8
  91. package/dist/client/core/BaseHttpRequest.js +0 -9
  92. package/dist/client/core/CancelablePromise.d.ts +0 -20
  93. package/dist/client/core/CancelablePromise.js +0 -116
  94. package/dist/client/core/FetchHttpRequest.d.ts +0 -14
  95. package/dist/client/core/FetchHttpRequest.js +0 -20
  96. package/dist/client/core/OpenAPI.d.ts +0 -16
  97. package/dist/client/core/OpenAPI.js +0 -14
  98. package/dist/client/core/request.d.ts +0 -30
  99. package/dist/client/core/request.js +0 -294
  100. package/dist/client/models/BinaryProperty.d.ts +0 -8
  101. package/dist/client/models/BooleanProperty.d.ts +0 -5
  102. package/dist/client/models/Changeset.d.ts +0 -26
  103. package/dist/client/models/Changeset.js +0 -2
  104. package/dist/client/models/ChangesetItem.d.ts +0 -11
  105. package/dist/client/models/ChangesetItem.js +0 -2
  106. package/dist/client/models/ChangesetItemPage.d.ts +0 -19
  107. package/dist/client/models/ChangesetItemPage.js +0 -2
  108. package/dist/client/models/ChangesetPage.d.ts +0 -19
  109. package/dist/client/models/ChangesetPage.js +0 -2
  110. package/dist/client/models/ComponentListItem.d.ts +0 -10
  111. package/dist/client/models/ComponentListItem.js +0 -2
  112. package/dist/client/models/ComponentProperty.d.ts +0 -10
  113. package/dist/client/models/ComponentProperty.js +0 -2
  114. package/dist/client/models/CompositionBehavior.d.ts +0 -7
  115. package/dist/client/models/CompositionBehavior.js +0 -15
  116. package/dist/client/models/ContentBaseType.d.ts +0 -14
  117. package/dist/client/models/ContentBaseType.js +0 -22
  118. package/dist/client/models/ContentComponent.d.ts +0 -30
  119. package/dist/client/models/ContentComponent.js +0 -2
  120. package/dist/client/models/ContentItem.d.ts +0 -60
  121. package/dist/client/models/ContentItem.js +0 -2
  122. package/dist/client/models/ContentItemListWithContentTypes.d.ts +0 -27
  123. package/dist/client/models/ContentItemListWithContentTypes.js +0 -2
  124. package/dist/client/models/ContentItemPage.d.ts +0 -19
  125. package/dist/client/models/ContentItemPage.js +0 -2
  126. package/dist/client/models/ContentItemWithContentTypes.d.ts +0 -12
  127. package/dist/client/models/ContentItemWithContentTypes.js +0 -2
  128. package/dist/client/models/ContentListItem.d.ts +0 -14
  129. package/dist/client/models/ContentListItem.js +0 -2
  130. package/dist/client/models/ContentLocaleInfo.d.ts +0 -19
  131. package/dist/client/models/ContentLocaleInfo.js +0 -2
  132. package/dist/client/models/ContentMetadata.d.ts +0 -38
  133. package/dist/client/models/ContentMetadata.js +0 -2
  134. package/dist/client/models/ContentMetadataPage.d.ts +0 -19
  135. package/dist/client/models/ContentMetadataPage.js +0 -2
  136. package/dist/client/models/ContentProperty.d.ts +0 -14
  137. package/dist/client/models/ContentProperty.js +0 -2
  138. package/dist/client/models/ContentReference.d.ts +0 -17
  139. package/dist/client/models/ContentReference.js +0 -2
  140. package/dist/client/models/ContentReferenceListItem.d.ts +0 -14
  141. package/dist/client/models/ContentReferenceListItem.js +0 -2
  142. package/dist/client/models/ContentReferenceProperty.d.ts +0 -14
  143. package/dist/client/models/ContentReferenceProperty.js +0 -2
  144. package/dist/client/models/ContentType.d.ts +0 -84
  145. package/dist/client/models/ContentType.js +0 -2
  146. package/dist/client/models/ContentTypeFeature.d.ts +0 -10
  147. package/dist/client/models/ContentTypeFeature.js +0 -18
  148. package/dist/client/models/ContentTypePage.d.ts +0 -19
  149. package/dist/client/models/ContentTypePage.js +0 -2
  150. package/dist/client/models/ContentTypeProperty.d.ts +0 -47
  151. package/dist/client/models/ContentTypeProperty.js +0 -2
  152. package/dist/client/models/ContentTypeUsage.d.ts +0 -7
  153. package/dist/client/models/ContentTypeUsage.js +0 -15
  154. package/dist/client/models/CopyContentOptions.d.ts +0 -21
  155. package/dist/client/models/CopyContentOptions.js +0 -2
  156. package/dist/client/models/DateTimeListItem.d.ts +0 -14
  157. package/dist/client/models/DateTimeListItem.js +0 -2
  158. package/dist/client/models/DateTimeProperty.d.ts +0 -14
  159. package/dist/client/models/DateTimeProperty.js +0 -2
  160. package/dist/client/models/DisplaySetting.d.ts +0 -22
  161. package/dist/client/models/DisplaySetting.js +0 -2
  162. package/dist/client/models/DisplaySettingChoice.d.ts +0 -13
  163. package/dist/client/models/DisplaySettingChoice.js +0 -2
  164. package/dist/client/models/DisplayTemplate.d.ts +0 -49
  165. package/dist/client/models/DisplayTemplate.js +0 -2
  166. package/dist/client/models/DisplayTemplatePage.d.ts +0 -19
  167. package/dist/client/models/DisplayTemplatePage.js +0 -2
  168. package/dist/client/models/DoubleEnumerationSettings.d.ts +0 -10
  169. package/dist/client/models/DoubleEnumerationSettings.js +0 -2
  170. package/dist/client/models/DoubleEnumerationValue.d.ts +0 -13
  171. package/dist/client/models/DoubleEnumerationValue.js +0 -2
  172. package/dist/client/models/FloatListItem.d.ts +0 -16
  173. package/dist/client/models/FloatListItem.js +0 -2
  174. package/dist/client/models/FloatProperty.d.ts +0 -16
  175. package/dist/client/models/FloatProperty.js +0 -2
  176. package/dist/client/models/ImageDescriptor.d.ts +0 -17
  177. package/dist/client/models/ImageDescriptor.js +0 -2
  178. package/dist/client/models/IndexingType.d.ts +0 -8
  179. package/dist/client/models/IndexingType.js +0 -16
  180. package/dist/client/models/Int32EnumerationSettings.d.ts +0 -10
  181. package/dist/client/models/Int32EnumerationSettings.js +0 -2
  182. package/dist/client/models/Int32EnumerationValue.d.ts +0 -13
  183. package/dist/client/models/Int32EnumerationValue.js +0 -2
  184. package/dist/client/models/IntegerListItem.d.ts +0 -16
  185. package/dist/client/models/IntegerListItem.js +0 -2
  186. package/dist/client/models/IntegerProperty.d.ts +0 -16
  187. package/dist/client/models/IntegerProperty.js +0 -2
  188. package/dist/client/models/JsonStringProperty.d.ts +0 -5
  189. package/dist/client/models/JsonStringProperty.js +0 -2
  190. package/dist/client/models/ListProperty.d.ts +0 -26
  191. package/dist/client/models/ListProperty.js +0 -2
  192. package/dist/client/models/ListPropertyItem.d.ts +0 -11
  193. package/dist/client/models/ListPropertyItem.js +0 -2
  194. package/dist/client/models/LocaleStatus.d.ts +0 -7
  195. package/dist/client/models/LocaleStatus.js +0 -15
  196. package/dist/client/models/OauthToken.d.ts +0 -18
  197. package/dist/client/models/OauthToken.js +0 -2
  198. package/dist/client/models/OauthTokenError.d.ts +0 -13
  199. package/dist/client/models/OauthTokenError.js +0 -2
  200. package/dist/client/models/OauthTokenRequest.d.ts +0 -21
  201. package/dist/client/models/OauthTokenRequest.js +0 -2
  202. package/dist/client/models/ProblemDetails.d.ts +0 -1
  203. package/dist/client/models/ProblemDetails.js +0 -2
  204. package/dist/client/models/PropertyDataType.d.ts +0 -18
  205. package/dist/client/models/PropertyDataType.js +0 -26
  206. package/dist/client/models/PropertyFormat.d.ts +0 -37
  207. package/dist/client/models/PropertyFormat.js +0 -2
  208. package/dist/client/models/PropertyFormatPage.d.ts +0 -19
  209. package/dist/client/models/PropertyFormatPage.js +0 -2
  210. package/dist/client/models/PropertyGroup.d.ts +0 -21
  211. package/dist/client/models/PropertyGroup.js +0 -2
  212. package/dist/client/models/PropertyGroupPage.d.ts +0 -19
  213. package/dist/client/models/PropertyGroupPage.js +0 -2
  214. package/dist/client/models/StringEnumerationSettings.d.ts +0 -10
  215. package/dist/client/models/StringEnumerationSettings.js +0 -2
  216. package/dist/client/models/StringEnumerationValue.d.ts +0 -13
  217. package/dist/client/models/StringEnumerationValue.js +0 -2
  218. package/dist/client/models/StringListItem.d.ts +0 -20
  219. package/dist/client/models/StringListItem.js +0 -2
  220. package/dist/client/models/StringProperty.d.ts +0 -20
  221. package/dist/client/models/StringProperty.js +0 -2
  222. package/dist/client/models/UrlListItem.d.ts +0 -5
  223. package/dist/client/models/UrlListItem.js +0 -2
  224. package/dist/client/models/UrlProperty.d.ts +0 -5
  225. package/dist/client/models/UrlProperty.js +0 -2
  226. package/dist/client/models/VersionStatus.d.ts +0 -12
  227. package/dist/client/models/VersionStatus.js +0 -20
  228. package/dist/client/services/ChangesetsService.d.ts +0 -105
  229. package/dist/client/services/ChangesetsService.js +0 -239
  230. package/dist/client/services/ContentService.d.ts +0 -172
  231. package/dist/client/services/ContentService.js +0 -409
  232. package/dist/client/services/ContentTypesService.d.ts +0 -66
  233. package/dist/client/services/ContentTypesService.js +0 -149
  234. package/dist/client/services/DisplayTemplatesService.d.ts +0 -60
  235. package/dist/client/services/DisplayTemplatesService.js +0 -135
  236. package/dist/client/services/OauthService.d.ts +0 -17
  237. package/dist/client/services/OauthService.js +0 -28
  238. package/dist/client/services/PropertyFormatsService.d.ts +0 -26
  239. package/dist/client/services/PropertyFormatsService.js +0 -53
  240. package/dist/client/services/PropertyGroupsService.d.ts +0 -61
  241. package/dist/client/services/PropertyGroupsService.js +0 -135
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,14 +0,0 @@
1
- import type { ListPropertyItem } from './ListPropertyItem';
2
- /**
3
- * Describes a property list item that can hold a content item.
4
- */
5
- export type ContentListItem = (ListPropertyItem & {
6
- /**
7
- * Specifies which content types and base types these property items are allowed to contain.
8
- */
9
- allowedTypes?: Array<string>;
10
- /**
11
- * Specifies which content types and base types these property items cannot contain.
12
- */
13
- restrictedTypes?: Array<string>;
14
- });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,19 +0,0 @@
1
- import type { LocaleStatus } from './LocaleStatus';
2
- /**
3
- * Describes information about a locale instance of a content item.
4
- */
5
- export type ContentLocaleInfo = {
6
- /**
7
- * The display name of the content.
8
- */
9
- readonly displayName?: string;
10
- /**
11
- * The date and time when the first locale version for the content was created.
12
- */
13
- readonly created?: string;
14
- /**
15
- * The username of the user that created this locale version of content.
16
- */
17
- readonly createdBy?: string;
18
- status?: LocaleStatus;
19
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,38 +0,0 @@
1
- import type { ContentLocaleInfo } from './ContentLocaleInfo';
2
- /**
3
- * Represents metadata about a content item.
4
- */
5
- export type ContentMetadata = {
6
- /**
7
- * The key that identifies this content.
8
- */
9
- key?: string;
10
- /**
11
- * The content type of this content.
12
- */
13
- contentType?: string;
14
- /**
15
- * Set of locales that this content has been created for.
16
- */
17
- readonly locales?: Record<string, ContentLocaleInfo>;
18
- /**
19
- * The key that identifies the container content that this content belongs to.
20
- */
21
- container?: string | null;
22
- /**
23
- * Indicates if the content contains any content items.
24
- */
25
- readonly hasItems?: boolean;
26
- /**
27
- * The key that identifies the owner of this content. Content that is own by another content is also known as an asset.
28
- */
29
- owner?: string | null;
30
- /**
31
- * A timestamp, which if provided, indicates when this content was deleted.
32
- */
33
- readonly deleted?: string | null;
34
- /**
35
- * The username of the user that deleted this content.
36
- */
37
- readonly deletedBy?: string | null;
38
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,19 +0,0 @@
1
- import type { ContentMetadata } from './ContentMetadata';
2
- export type ContentMetadataPage = {
3
- /**
4
- * The items in this paged collection.
5
- */
6
- readonly items?: Array<ContentMetadata>;
7
- /**
8
- * The zero-based index of the current page.
9
- */
10
- readonly pageIndex?: number;
11
- /**
12
- * The number of item in each page. Not necessarily the same as the number of items in this page.
13
- */
14
- readonly pageSize?: number;
15
- /**
16
- * The estimated total number of items in the collection. May be omitted if the total item count is unknown.
17
- */
18
- readonly totalItemCount?: number;
19
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,14 +0,0 @@
1
- import type { ContentTypeProperty } from './ContentTypeProperty';
2
- /**
3
- * Describes a property that can contain a content item.
4
- */
5
- export type ContentProperty = (ContentTypeProperty & {
6
- /**
7
- * Specifies which content types and base types this property is allowed to contain.
8
- */
9
- allowedTypes?: Array<string>;
10
- /**
11
- * Specifies which content types and base types this property cannot contain.
12
- */
13
- restrictedTypes?: Array<string>;
14
- });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,17 +0,0 @@
1
- /**
2
- * A reference to a specific content instance.
3
- */
4
- export type ContentReference = {
5
- /**
6
- * The content key that identifies the content.
7
- */
8
- readonly key?: string;
9
- /**
10
- * The name of the content locale
11
- */
12
- readonly locale?: string;
13
- /**
14
- * The identifier of a specific version of the content.
15
- */
16
- readonly version?: string;
17
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,14 +0,0 @@
1
- import type { ListPropertyItem } from './ListPropertyItem';
2
- /**
3
- * Describes a property list item that can hold a reference to a content item.
4
- */
5
- export type ContentReferenceListItem = (ListPropertyItem & {
6
- /**
7
- * Specifies which content types and base types these list items are allowed to reference.
8
- */
9
- allowedTypes?: Array<string>;
10
- /**
11
- * Specifies which content types and base types these list items cannot contain.
12
- */
13
- restrictedTypes?: Array<string>;
14
- });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,14 +0,0 @@
1
- import type { ContentTypeProperty } from './ContentTypeProperty';
2
- /**
3
- * Describes a property that can contain a reference to a content item.
4
- */
5
- export type ContentReferenceProperty = (ContentTypeProperty & {
6
- /**
7
- * Specifies which content types and base types this property is allowed to reference.
8
- */
9
- allowedTypes?: Array<string>;
10
- /**
11
- * Specifies which content types and base types this property is restricted from referencing.
12
- */
13
- restrictedTypes?: Array<string>;
14
- });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,84 +0,0 @@
1
- import type { BinaryProperty } from './BinaryProperty';
2
- import type { BooleanProperty } from './BooleanProperty';
3
- import type { ComponentProperty } from './ComponentProperty';
4
- import type { CompositionBehavior } from './CompositionBehavior';
5
- import type { ContentBaseType } from './ContentBaseType';
6
- import type { ContentProperty } from './ContentProperty';
7
- import type { ContentReferenceProperty } from './ContentReferenceProperty';
8
- import type { ContentTypeFeature } from './ContentTypeFeature';
9
- import type { ContentTypeUsage } from './ContentTypeUsage';
10
- import type { DateTimeProperty } from './DateTimeProperty';
11
- import type { FloatProperty } from './FloatProperty';
12
- import type { IntegerProperty } from './IntegerProperty';
13
- import type { JsonStringProperty } from './JsonStringProperty';
14
- import type { ListProperty } from './ListProperty';
15
- import type { StringProperty } from './StringProperty';
16
- import type { UrlProperty } from './UrlProperty';
17
- /**
18
- * A writable implementation of an ContentType.
19
- */
20
- export type ContentType = {
21
- /**
22
- * The key that identifies this ContentType.
23
- */
24
- key: string;
25
- /**
26
- * The display name of this ContentType.
27
- */
28
- displayName?: string;
29
- /**
30
- * A description of this ContentType.
31
- */
32
- description?: string;
33
- baseType?: ContentBaseType;
34
- /**
35
- * A string that is used to indicate the source of this ContentType.
36
- */
37
- readonly source?: string;
38
- /**
39
- * An value that is used to when sorting ContentType instances.
40
- */
41
- sortOrder?: number;
42
- /**
43
- * Provides a set of features that content based on this ContentType supports.
44
- * This value is assigned based on the BaseType and cannot be modified.
45
- */
46
- features?: Array<ContentTypeFeature>;
47
- /**
48
- * Specifies how this ContentType can be used.
49
- */
50
- usage?: Array<ContentTypeUsage>;
51
- /**
52
- * Provides a set of content types that can be created in container of this type
53
- */
54
- mayContainTypes?: Array<string>;
55
- /**
56
- * Provides a set of media file extensions that this content type can handle.
57
- */
58
- mediaFileExtensions?: Array<string>;
59
- /**
60
- * Provides a set of composition behaviors specifying how this content type can be used within compositions.
61
- */
62
- compositionBehaviors?: Array<CompositionBehavior>;
63
- /**
64
- * A timestamp indicating when this ContentType was first created.
65
- */
66
- readonly created?: string;
67
- /**
68
- * Indicates the last time this content type was modified.
69
- */
70
- readonly lastModified?: string;
71
- /**
72
- * The username of the user that made the latest modification to this ContentType.
73
- */
74
- readonly lastModifiedBy?: string;
75
- /**
76
- * Dictionary with all custom properties of this ContentType.
77
- */
78
- properties?: Record<string, (BinaryProperty | BooleanProperty | ComponentProperty | ContentProperty | ContentReferenceProperty | DateTimeProperty | FloatProperty | IntegerProperty | StringProperty | UrlProperty | JsonStringProperty | ListProperty | {
79
- /**
80
- * Settings for the editor.
81
- */
82
- editorSettings?: Record<string, Record<string, any>> | null;
83
- })>;
84
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
1
- /**
2
- * Represent different features that a content type can have.
3
- */
4
- export declare enum ContentTypeFeature {
5
- LOCALIZATION = "localization",
6
- VERSIONING = "versioning",
7
- PUBLISH_PERIOD = "publishPeriod",
8
- ROUTING = "routing",
9
- BINARY = "binary"
10
- }
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ContentTypeFeature = void 0;
4
- /* generated using openapi-typescript-codegen -- do not edit */
5
- /* istanbul ignore file */
6
- /* tslint:disable */
7
- /* eslint-disable */
8
- /**
9
- * Represent different features that a content type can have.
10
- */
11
- var ContentTypeFeature;
12
- (function (ContentTypeFeature) {
13
- ContentTypeFeature["LOCALIZATION"] = "localization";
14
- ContentTypeFeature["VERSIONING"] = "versioning";
15
- ContentTypeFeature["PUBLISH_PERIOD"] = "publishPeriod";
16
- ContentTypeFeature["ROUTING"] = "routing";
17
- ContentTypeFeature["BINARY"] = "binary";
18
- })(ContentTypeFeature || (exports.ContentTypeFeature = ContentTypeFeature = {}));
@@ -1,19 +0,0 @@
1
- import type { ContentType } from './ContentType';
2
- export type ContentTypePage = {
3
- /**
4
- * The items in this paged collection.
5
- */
6
- readonly items?: Array<ContentType>;
7
- /**
8
- * The zero-based index of the current page.
9
- */
10
- readonly pageIndex?: number;
11
- /**
12
- * The number of item in each page. Not necessarily the same as the number of items in this page.
13
- */
14
- readonly pageSize?: number;
15
- /**
16
- * The estimated total number of items in the collection. May be omitted if the total item count is unknown.
17
- */
18
- readonly totalItemCount?: number;
19
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,47 +0,0 @@
1
- import type { IndexingType } from './IndexingType';
2
- import type { PropertyDataType } from './PropertyDataType';
3
- /**
4
- * Describes a property of a ContentType in the CMS.
5
- */
6
- export type ContentTypeProperty = {
7
- type: PropertyDataType;
8
- /**
9
- * The key of the PropertyFormat that this ContentTypeProperty is an instance of.
10
- */
11
- format?: string | null;
12
- /**
13
- * The display name of this ContentTypeProperty.
14
- */
15
- displayName?: string;
16
- /**
17
- * A description of this ContentTypeProperty.
18
- */
19
- description?: string;
20
- /**
21
- * Indicates if a property instance of this type should be localized for each locale
22
- * or if values are shared between all locales.
23
- */
24
- localized?: boolean;
25
- /**
26
- * Indicates if a property instance of this type must always be assigned a value.
27
- */
28
- required?: boolean;
29
- /**
30
- * A reference to the PropertyGroup that this ContentTypeProperty is part of.
31
- * If this value is empty, a group may be assigned by the system.
32
- */
33
- group?: string;
34
- /**
35
- * An value that is used to when sorting ContentTypeProperty instances.
36
- */
37
- sortOrder?: number;
38
- indexingType?: IndexingType;
39
- /**
40
- * Editor used for managing this property.
41
- */
42
- editor?: string | null;
43
- /**
44
- * Settings for the editor.
45
- */
46
- editorSettings?: Record<string, Record<string, any>> | null;
47
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- /**
2
- * Represent the usage types for a ContentType.
3
- */
4
- export declare enum ContentTypeUsage {
5
- PROPERTY = "property",
6
- INSTANCE = "instance"
7
- }
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ContentTypeUsage = void 0;
4
- /* generated using openapi-typescript-codegen -- do not edit */
5
- /* istanbul ignore file */
6
- /* tslint:disable */
7
- /* eslint-disable */
8
- /**
9
- * Represent the usage types for a ContentType.
10
- */
11
- var ContentTypeUsage;
12
- (function (ContentTypeUsage) {
13
- ContentTypeUsage["PROPERTY"] = "property";
14
- ContentTypeUsage["INSTANCE"] = "instance";
15
- })(ContentTypeUsage || (exports.ContentTypeUsage = ContentTypeUsage = {}));
@@ -1,21 +0,0 @@
1
- /**
2
- * Options for copying content.
3
- */
4
- export type CopyContentOptions = {
5
- /**
6
- * Indicates if deleted content could be used as source.
7
- */
8
- allowDeleted?: boolean;
9
- /**
10
- * Optional key of the container where the copied content should be placed.
11
- */
12
- container?: string | null;
13
- /**
14
- * Optional key of the owner where the copied content should be placed.
15
- */
16
- owner?: string | null;
17
- /**
18
- * Indicates if published versions of the content should keep their published status rather than being created as a draft version at the destination.
19
- */
20
- keepPublishedStatus?: boolean;
21
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,14 +0,0 @@
1
- import type { ListPropertyItem } from './ListPropertyItem';
2
- /**
3
- * Describes a property list item that can contain a timestamp.
4
- */
5
- export type DateTimeListItem = (ListPropertyItem & {
6
- /**
7
- * The earliest timestamp that list items of this type should be able to contain.
8
- */
9
- minimum?: string | null;
10
- /**
11
- * The latest timestamp that list items of this type should be able to contain.
12
- */
13
- maximum?: string | null;
14
- });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,14 +0,0 @@
1
- import type { ContentTypeProperty } from './ContentTypeProperty';
2
- /**
3
- * Describes a property that can contain a timestamp.
4
- */
5
- export type DateTimeProperty = (ContentTypeProperty & {
6
- /**
7
- * The earliest timestamp that properties of this type should be able to contain.
8
- */
9
- minimum?: string | null;
10
- /**
11
- * The latest timestamp that properties of this type should be able to contain.
12
- */
13
- maximum?: string | null;
14
- });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,22 +0,0 @@
1
- import type { DisplaySettingChoice } from './DisplaySettingChoice';
2
- /**
3
- * Describes a setting for a display template.
4
- */
5
- export type DisplaySetting = {
6
- /**
7
- * The display name of this display setting.
8
- */
9
- displayName: string;
10
- /**
11
- * The suggested editor for this display setting.
12
- */
13
- editor?: string;
14
- /**
15
- * The sort order of this display setting within the template.
16
- */
17
- sortOrder?: number;
18
- /**
19
- * The available choices for this display setting.
20
- */
21
- choices?: Record<string, DisplaySettingChoice>;
22
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
1
- /**
2
- * Describes a setting for a display template.
3
- */
4
- export type DisplaySettingChoice = {
5
- /**
6
- * The display name of this display setting choice.
7
- */
8
- displayName: string;
9
- /**
10
- * The sort order of this choice within the setting.
11
- */
12
- sortOrder?: number;
13
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,49 +0,0 @@
1
- import type { ContentBaseType } from './ContentBaseType';
2
- import type { DisplaySetting } from './DisplaySetting';
3
- /**
4
- * Describes a display template that can be assigned to content.
5
- */
6
- export type DisplayTemplate = {
7
- /**
8
- * The key that identifies this display template.
9
- */
10
- readonly key: string;
11
- /**
12
- * The display name of this display template.
13
- */
14
- displayName: string;
15
- /**
16
- * The optional node type this display template is valid for.
17
- */
18
- nodeType?: string | null;
19
- baseType?: ContentBaseType;
20
- /**
21
- * The optional key of the content type this display template is valid for.
22
- */
23
- contentType?: string | null;
24
- /**
25
- * If this is the default display template for the associated base type,
26
- * node type or content type.
27
- */
28
- isDefault?: boolean;
29
- /**
30
- * A timestamp indicating when this display template was first created.
31
- */
32
- readonly created?: string;
33
- /**
34
- * The username of the user that created this display template.
35
- */
36
- readonly createdBy?: string;
37
- /**
38
- * A timestamp indicating when this display template was last modified.
39
- */
40
- readonly lastModified?: string;
41
- /**
42
- * The username of the user that last modified this display template.
43
- */
44
- readonly lastModifiedBy?: string;
45
- /**
46
- * The available settings for this display template.
47
- */
48
- settings?: Record<string, DisplaySetting>;
49
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,19 +0,0 @@
1
- import type { DisplayTemplate } from './DisplayTemplate';
2
- export type DisplayTemplatePage = {
3
- /**
4
- * The items in this paged collection.
5
- */
6
- readonly items?: Array<DisplayTemplate>;
7
- /**
8
- * The zero-based index of the current page.
9
- */
10
- readonly pageIndex?: number;
11
- /**
12
- * The number of item in each page. Not necessarily the same as the number of items in this page.
13
- */
14
- readonly pageSize?: number;
15
- /**
16
- * The estimated total number of items in the collection. May be omitted if the total item count is unknown.
17
- */
18
- readonly totalItemCount?: number;
19
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
1
- import type { DoubleEnumerationValue } from './DoubleEnumerationValue';
2
- /**
3
- * Enumeration settings for a property or format.
4
- */
5
- export type DoubleEnumerationSettings = {
6
- /**
7
- * Enumeration values for this property or format.
8
- */
9
- values?: Array<DoubleEnumerationValue>;
10
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
1
- /**
2
- * Describes an enumeration value.
3
- */
4
- export type DoubleEnumerationValue = {
5
- /**
6
- * The display name of the value.
7
- */
8
- displayName?: string;
9
- /**
10
- * The underlying enumeration value.
11
- */
12
- value?: number;
13
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });