@remkoj/optimizely-cms-api 5.2.0 → 5.3.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 (141) hide show
  1. package/dist/api-client.js +11 -7
  2. package/dist/client/CmsIntegrationApiClient.d.ts +2 -2
  3. package/dist/client/CmsIntegrationApiClient.js +4 -4
  4. package/dist/client/core/OpenAPI.js +2 -2
  5. package/dist/client/index.d.ts +14 -45
  6. package/dist/client/index.js +13 -19
  7. package/dist/client/models/ArrayItem.d.ts +70 -0
  8. package/dist/client/models/ArrayItem.js +25 -0
  9. package/dist/client/models/Blueprint.d.ts +24 -0
  10. package/dist/client/models/BlueprintData.d.ts +11 -0
  11. package/dist/client/models/BlueprintPage.d.ts +19 -0
  12. package/dist/client/models/Changeset.d.ts +3 -3
  13. package/dist/client/models/ChangesetItemPage.d.ts +1 -1
  14. package/dist/client/models/ChangesetPage.d.ts +1 -1
  15. package/dist/client/models/CompositionDisplaySettings.d.ts +13 -0
  16. package/dist/client/models/CompositionNode.d.ts +41 -0
  17. package/dist/client/models/ContentComponent.d.ts +8 -8
  18. package/dist/client/models/ContentItem.d.ts +28 -5
  19. package/dist/client/models/ContentItem.js +17 -0
  20. package/dist/client/models/ContentItemPage.d.ts +1 -1
  21. package/dist/client/models/ContentLocaleInfo.d.ts +13 -2
  22. package/dist/client/models/ContentLocaleInfo.js +12 -0
  23. package/dist/client/models/ContentMetadataPage.d.ts +1 -1
  24. package/dist/client/models/ContentType.d.ts +11 -36
  25. package/dist/client/models/ContentTypePage.d.ts +1 -1
  26. package/dist/client/models/ContentTypeProperty.d.ts +84 -8
  27. package/dist/client/models/ContentTypeProperty.js +34 -0
  28. package/dist/client/models/DisplayTemplate.d.ts +6 -5
  29. package/dist/client/models/DisplayTemplatePage.d.ts +1 -1
  30. package/dist/client/models/EnumerationValue.d.ts +13 -0
  31. package/dist/client/models/ImageDescriptor.d.ts +1 -1
  32. package/dist/client/models/Link.d.ts +21 -0
  33. package/dist/client/models/Preview.d.ts +13 -0
  34. package/dist/client/models/PropertyFormat.d.ts +60 -16
  35. package/dist/client/models/PropertyFormat.js +44 -0
  36. package/dist/client/models/PropertyFormatPage.d.ts +1 -1
  37. package/dist/client/models/PropertyGroup.d.ts +14 -1
  38. package/dist/client/models/PropertyGroupPage.d.ts +1 -1
  39. package/dist/client/services/BlueprintsService.d.ts +56 -0
  40. package/dist/client/services/BlueprintsService.js +135 -0
  41. package/dist/client/services/ChangesetsService.d.ts +32 -30
  42. package/dist/client/services/ChangesetsService.js +73 -60
  43. package/dist/client/services/ContentService.d.ts +46 -35
  44. package/dist/client/services/ContentService.js +100 -55
  45. package/dist/client/services/ContentTypesService.d.ts +17 -23
  46. package/dist/client/services/ContentTypesService.js +34 -41
  47. package/dist/client/services/DisplayTemplatesService.d.ts +14 -18
  48. package/dist/client/services/DisplayTemplatesService.js +31 -31
  49. package/dist/client/services/PropertyFormatsService.d.ts +3 -1
  50. package/dist/client/services/PropertyFormatsService.js +9 -1
  51. package/dist/client/services/PropertyGroupsService.d.ts +15 -20
  52. package/dist/client/services/PropertyGroupsService.js +32 -33
  53. package/dist/enums.d.ts +35 -0
  54. package/dist/enums.js +40 -0
  55. package/dist/getaccesstoken.js +4 -3
  56. package/dist/index.d.ts +1 -0
  57. package/dist/index.js +1 -0
  58. package/dist/version.json +3 -3
  59. package/package.json +2 -2
  60. package/dist/client/models/BinaryProperty.d.ts +0 -8
  61. package/dist/client/models/BooleanProperty.d.ts +0 -5
  62. package/dist/client/models/ComponentListItem.d.ts +0 -10
  63. package/dist/client/models/ComponentProperty.d.ts +0 -10
  64. package/dist/client/models/CompositionBehavior.d.ts +0 -7
  65. package/dist/client/models/CompositionBehavior.js +0 -15
  66. package/dist/client/models/ContentBaseType.d.ts +0 -14
  67. package/dist/client/models/ContentBaseType.js +0 -22
  68. package/dist/client/models/ContentItemListWithContentTypes.d.ts +0 -27
  69. package/dist/client/models/ContentItemWithContentTypes.d.ts +0 -12
  70. package/dist/client/models/ContentListItem.d.ts +0 -14
  71. package/dist/client/models/ContentProperty.d.ts +0 -14
  72. package/dist/client/models/ContentReferenceListItem.d.ts +0 -14
  73. package/dist/client/models/ContentReferenceListItem.js +0 -2
  74. package/dist/client/models/ContentReferenceProperty.d.ts +0 -14
  75. package/dist/client/models/ContentReferenceProperty.js +0 -2
  76. package/dist/client/models/ContentTypeFeature.d.ts +0 -10
  77. package/dist/client/models/ContentTypeFeature.js +0 -18
  78. package/dist/client/models/ContentTypeUsage.d.ts +0 -7
  79. package/dist/client/models/ContentTypeUsage.js +0 -15
  80. package/dist/client/models/DateTimeListItem.d.ts +0 -14
  81. package/dist/client/models/DateTimeListItem.js +0 -2
  82. package/dist/client/models/DateTimeProperty.d.ts +0 -14
  83. package/dist/client/models/DateTimeProperty.js +0 -2
  84. package/dist/client/models/DoubleEnumerationSettings.d.ts +0 -10
  85. package/dist/client/models/DoubleEnumerationSettings.js +0 -2
  86. package/dist/client/models/DoubleEnumerationValue.d.ts +0 -13
  87. package/dist/client/models/DoubleEnumerationValue.js +0 -2
  88. package/dist/client/models/FloatListItem.d.ts +0 -16
  89. package/dist/client/models/FloatListItem.js +0 -2
  90. package/dist/client/models/FloatProperty.d.ts +0 -16
  91. package/dist/client/models/FloatProperty.js +0 -2
  92. package/dist/client/models/IndexingType.d.ts +0 -8
  93. package/dist/client/models/IndexingType.js +0 -16
  94. package/dist/client/models/Int32EnumerationSettings.d.ts +0 -10
  95. package/dist/client/models/Int32EnumerationSettings.js +0 -2
  96. package/dist/client/models/Int32EnumerationValue.d.ts +0 -13
  97. package/dist/client/models/Int32EnumerationValue.js +0 -2
  98. package/dist/client/models/IntegerListItem.d.ts +0 -16
  99. package/dist/client/models/IntegerListItem.js +0 -2
  100. package/dist/client/models/IntegerProperty.d.ts +0 -16
  101. package/dist/client/models/IntegerProperty.js +0 -2
  102. package/dist/client/models/JsonStringProperty.d.ts +0 -5
  103. package/dist/client/models/JsonStringProperty.js +0 -2
  104. package/dist/client/models/ListProperty.d.ts +0 -26
  105. package/dist/client/models/ListProperty.js +0 -2
  106. package/dist/client/models/ListPropertyItem.d.ts +0 -11
  107. package/dist/client/models/ListPropertyItem.js +0 -2
  108. package/dist/client/models/LocaleStatus.d.ts +0 -7
  109. package/dist/client/models/LocaleStatus.js +0 -15
  110. package/dist/client/models/OauthToken.d.ts +0 -18
  111. package/dist/client/models/OauthToken.js +0 -2
  112. package/dist/client/models/OauthTokenError.d.ts +0 -13
  113. package/dist/client/models/OauthTokenError.js +0 -2
  114. package/dist/client/models/OauthTokenRequest.d.ts +0 -21
  115. package/dist/client/models/OauthTokenRequest.js +0 -2
  116. package/dist/client/models/PropertyDataType.d.ts +0 -18
  117. package/dist/client/models/PropertyDataType.js +0 -26
  118. package/dist/client/models/StringEnumerationSettings.d.ts +0 -10
  119. package/dist/client/models/StringEnumerationSettings.js +0 -2
  120. package/dist/client/models/StringEnumerationValue.d.ts +0 -13
  121. package/dist/client/models/StringEnumerationValue.js +0 -2
  122. package/dist/client/models/StringListItem.d.ts +0 -20
  123. package/dist/client/models/StringListItem.js +0 -2
  124. package/dist/client/models/StringProperty.d.ts +0 -20
  125. package/dist/client/models/StringProperty.js +0 -2
  126. package/dist/client/models/UrlListItem.d.ts +0 -5
  127. package/dist/client/models/UrlListItem.js +0 -2
  128. package/dist/client/models/UrlProperty.d.ts +0 -5
  129. package/dist/client/models/UrlProperty.js +0 -2
  130. package/dist/client/models/VersionStatus.d.ts +0 -12
  131. package/dist/client/models/VersionStatus.js +0 -20
  132. package/dist/client/services/OauthService.d.ts +0 -17
  133. package/dist/client/services/OauthService.js +0 -28
  134. /package/dist/client/models/{BinaryProperty.js → Blueprint.js} +0 -0
  135. /package/dist/client/models/{BooleanProperty.js → BlueprintData.js} +0 -0
  136. /package/dist/client/models/{ComponentListItem.js → BlueprintPage.js} +0 -0
  137. /package/dist/client/models/{ComponentProperty.js → CompositionDisplaySettings.js} +0 -0
  138. /package/dist/client/models/{ContentItemListWithContentTypes.js → CompositionNode.js} +0 -0
  139. /package/dist/client/models/{ContentItemWithContentTypes.js → EnumerationValue.js} +0 -0
  140. /package/dist/client/models/{ContentListItem.js → Link.js} +0 -0
  141. /package/dist/client/models/{ContentProperty.js → Preview.js} +0 -0
@@ -1,4 +1,3 @@
1
- import type { LocaleStatus } from './LocaleStatus';
2
1
  /**
3
2
  * Describes information about a locale instance of a content item.
4
3
  */
@@ -15,5 +14,17 @@ export type ContentLocaleInfo = {
15
14
  * The username of the user that created this locale version of content.
16
15
  */
17
16
  readonly createdBy?: string;
18
- status?: LocaleStatus;
17
+ /**
18
+ * The status of the current locale.
19
+ */
20
+ readonly status?: ContentLocaleInfo.status;
19
21
  };
22
+ export declare namespace ContentLocaleInfo {
23
+ /**
24
+ * The status of the current locale.
25
+ */
26
+ enum status {
27
+ DRAFT = "draft",
28
+ PUBLISHED = "published"
29
+ }
30
+ }
@@ -1,2 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ContentLocaleInfo = void 0;
4
+ var ContentLocaleInfo;
5
+ (function (ContentLocaleInfo) {
6
+ /**
7
+ * The status of the current locale.
8
+ */
9
+ let status;
10
+ (function (status) {
11
+ status["DRAFT"] = "draft";
12
+ status["PUBLISHED"] = "published";
13
+ })(status = ContentLocaleInfo.status || (ContentLocaleInfo.status = {}));
14
+ })(ContentLocaleInfo || (exports.ContentLocaleInfo = ContentLocaleInfo = {}));
@@ -9,7 +9,7 @@ export type ContentMetadataPage = {
9
9
  */
10
10
  readonly pageIndex?: number;
11
11
  /**
12
- * The number of item in each page. Not necessarily the same as the number of items in this page.
12
+ * The number of items in each page. Not necessarily the same as the number of items in this page.
13
13
  */
14
14
  readonly pageSize?: number;
15
15
  /**
@@ -1,19 +1,4 @@
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';
1
+ import type { ContentTypeProperty } from './ContentTypeProperty';
17
2
  /**
18
3
  * A writable implementation of an ContentType.
19
4
  */
@@ -21,7 +6,7 @@ export type ContentType = {
21
6
  /**
22
7
  * The key that identifies this ContentType.
23
8
  */
24
- key: string;
9
+ key?: string;
25
10
  /**
26
11
  * The display name of this ContentType.
27
12
  */
@@ -30,26 +15,21 @@ export type ContentType = {
30
15
  * A description of this ContentType.
31
16
  */
32
17
  description?: string;
33
- baseType?: ContentBaseType;
18
+ /**
19
+ * The base type of this ContentType.
20
+ * Ignored for contracts; required for all other content types.
21
+ */
22
+ baseType?: string | null;
34
23
  /**
35
24
  * A string that is used to indicate the source of this ContentType.
36
25
  */
37
26
  readonly source?: string;
38
27
  /**
39
- * An value that is used to when sorting ContentType instances.
28
+ * A value that is used to when sorting ContentType instances.
40
29
  */
41
30
  sortOrder?: number;
42
31
  /**
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
32
+ * Provides a set of content types that can be created in containers of this type
53
33
  */
54
34
  mayContainTypes?: Array<string>;
55
35
  /**
@@ -59,7 +39,7 @@ export type ContentType = {
59
39
  /**
60
40
  * Provides a set of composition behaviors specifying how this content type can be used within compositions.
61
41
  */
62
- compositionBehaviors?: Array<CompositionBehavior>;
42
+ compositionBehaviors?: Array<'sectionEnabled' | 'elementEnabled' | 'formsElementEnabled'>;
63
43
  /**
64
44
  * A timestamp indicating when this ContentType was first created.
65
45
  */
@@ -75,10 +55,5 @@ export type ContentType = {
75
55
  /**
76
56
  * Dictionary with all custom properties of this ContentType.
77
57
  */
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
- })>;
58
+ properties?: Record<string, ContentTypeProperty>;
84
59
  };
@@ -9,7 +9,7 @@ export type ContentTypePage = {
9
9
  */
10
10
  readonly pageIndex?: number;
11
11
  /**
12
- * The number of item in each page. Not necessarily the same as the number of items in this page.
12
+ * The number of items in each page. Not necessarily the same as the number of items in this page.
13
13
  */
14
14
  readonly pageSize?: number;
15
15
  /**
@@ -1,14 +1,22 @@
1
- import type { IndexingType } from './IndexingType';
2
- import type { PropertyDataType } from './PropertyDataType';
1
+ import type { ArrayItem } from './ArrayItem';
2
+ import type { EnumerationValue } from './EnumerationValue';
3
+ import type { ImageDescriptor } from './ImageDescriptor';
3
4
  /**
4
5
  * Describes a property of a ContentType in the CMS.
5
6
  */
6
7
  export type ContentTypeProperty = {
7
- type: PropertyDataType;
8
+ /**
9
+ * Gets the data type for the property.
10
+ */
11
+ type?: ContentTypeProperty.type;
8
12
  /**
9
13
  * The key of the PropertyFormat that this ContentTypeProperty is an instance of.
10
14
  */
11
15
  format?: string | null;
16
+ /**
17
+ * The key of the content type that a property with 'type': 'component' may contain.
18
+ */
19
+ contentType?: string | null;
12
20
  /**
13
21
  * The display name of this ContentTypeProperty.
14
22
  */
@@ -35,13 +43,81 @@ export type ContentTypeProperty = {
35
43
  * An value that is used to when sorting ContentTypeProperty instances.
36
44
  */
37
45
  sortOrder?: number;
38
- indexingType?: IndexingType;
39
46
  /**
40
- * Editor used for managing this property.
47
+ * Indicates how should this property will be indexed in the search engine.
48
+ * If this value is not explicitly set, the property will be indexed using default indexing setting of the search engine.
49
+ */
50
+ indexingType?: ContentTypeProperty.indexingType;
51
+ /**
52
+ * The minimum value that properties of this type should be able to contain. Value type must match the type of the property.
53
+ */
54
+ minimum?: (number | null | string | null) | null;
55
+ /**
56
+ * The minimum value that properties of this type should be able to contain. Value type must match the type of the property.
57
+ */
58
+ maximum?: (number | null | string | null) | null;
59
+ /**
60
+ * A list of possible values that properties of this type should be able to contain.
61
+ */
62
+ enum?: Array<EnumerationValue> | null;
63
+ imageDescriptor?: ImageDescriptor;
64
+ /**
65
+ * The minimum string length that properties of this type should be able to contain.
66
+ */
67
+ minLength?: number | null;
68
+ /**
69
+ * The maximum string length that properties of this type should be able to contain.
70
+ */
71
+ maxLength?: number | null;
72
+ /**
73
+ * Regular expression pattern that limits what value that a string type property should be able to contain.
74
+ */
75
+ pattern?: string | null;
76
+ /**
77
+ * Optional minimum list length validation.
78
+ */
79
+ minItems?: number | null;
80
+ /**
81
+ * Optional maximum list length validation.
41
82
  */
42
- editor?: string | null;
83
+ maxItems?: number | null;
43
84
  /**
44
- * Settings for the editor.
85
+ * Specifies which content types and base types these property items are allowed to contain.
45
86
  */
46
- editorSettings?: Record<string, Record<string, any>> | null;
87
+ allowedTypes?: Array<string>;
88
+ /**
89
+ * Specifies which content types and base types these property items cannot contain.
90
+ */
91
+ restrictedTypes?: Array<string>;
92
+ items?: ArrayItem;
47
93
  };
94
+ export declare namespace ContentTypeProperty {
95
+ /**
96
+ * Gets the data type for the property.
97
+ */
98
+ enum type {
99
+ STRING = "string",
100
+ URL = "url",
101
+ BOOLEAN = "boolean",
102
+ INTEGER = "integer",
103
+ FLOAT = "float",
104
+ DATE_TIME = "dateTime",
105
+ CONTENT_REFERENCE = "contentReference",
106
+ CONTENT = "content",
107
+ BINARY = "binary",
108
+ LINK = "link",
109
+ RICH_TEXT = "richText",
110
+ JSON = "json",
111
+ ARRAY = "array",
112
+ COMPONENT = "component"
113
+ }
114
+ /**
115
+ * Indicates how should this property will be indexed in the search engine.
116
+ * If this value is not explicitly set, the property will be indexed using default indexing setting of the search engine.
117
+ */
118
+ enum indexingType {
119
+ DISABLED = "disabled",
120
+ QUERYABLE = "queryable",
121
+ SEARCHABLE = "searchable"
122
+ }
123
+ }
@@ -1,2 +1,36 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ContentTypeProperty = void 0;
4
+ var ContentTypeProperty;
5
+ (function (ContentTypeProperty) {
6
+ /**
7
+ * Gets the data type for the property.
8
+ */
9
+ let type;
10
+ (function (type) {
11
+ type["STRING"] = "string";
12
+ type["URL"] = "url";
13
+ type["BOOLEAN"] = "boolean";
14
+ type["INTEGER"] = "integer";
15
+ type["FLOAT"] = "float";
16
+ type["DATE_TIME"] = "dateTime";
17
+ type["CONTENT_REFERENCE"] = "contentReference";
18
+ type["CONTENT"] = "content";
19
+ type["BINARY"] = "binary";
20
+ type["LINK"] = "link";
21
+ type["RICH_TEXT"] = "richText";
22
+ type["JSON"] = "json";
23
+ type["ARRAY"] = "array";
24
+ type["COMPONENT"] = "component";
25
+ })(type = ContentTypeProperty.type || (ContentTypeProperty.type = {}));
26
+ /**
27
+ * Indicates how should this property will be indexed in the search engine.
28
+ * If this value is not explicitly set, the property will be indexed using default indexing setting of the search engine.
29
+ */
30
+ let indexingType;
31
+ (function (indexingType) {
32
+ indexingType["DISABLED"] = "disabled";
33
+ indexingType["QUERYABLE"] = "queryable";
34
+ indexingType["SEARCHABLE"] = "searchable";
35
+ })(indexingType = ContentTypeProperty.indexingType || (ContentTypeProperty.indexingType = {}));
36
+ })(ContentTypeProperty || (exports.ContentTypeProperty = ContentTypeProperty = {}));
@@ -1,4 +1,3 @@
1
- import type { ContentBaseType } from './ContentBaseType';
2
1
  import type { DisplaySetting } from './DisplaySetting';
3
2
  /**
4
3
  * Describes a display template that can be assigned to content.
@@ -7,7 +6,7 @@ export type DisplayTemplate = {
7
6
  /**
8
7
  * The key that identifies this display template.
9
8
  */
10
- readonly key: string;
9
+ key?: string;
11
10
  /**
12
11
  * The display name of this display template.
13
12
  */
@@ -16,14 +15,16 @@ export type DisplayTemplate = {
16
15
  * The optional node type this display template is valid for.
17
16
  */
18
17
  nodeType?: string | null;
19
- baseType?: ContentBaseType;
18
+ /**
19
+ * The optional base type this display template is valid for.
20
+ */
21
+ baseType?: string | null;
20
22
  /**
21
23
  * The optional key of the content type this display template is valid for.
22
24
  */
23
25
  contentType?: string | null;
24
26
  /**
25
- * If this is the default display template for the associated base type,
26
- * node type or content type.
27
+ * If this is the default display template for the associated base type, node type or content type.
27
28
  */
28
29
  isDefault?: boolean;
29
30
  /**
@@ -9,7 +9,7 @@ export type DisplayTemplatePage = {
9
9
  */
10
10
  readonly pageIndex?: number;
11
11
  /**
12
- * The number of item in each page. Not necessarily the same as the number of items in this page.
12
+ * The number of items in each page. Not necessarily the same as the number of items in this page.
13
13
  */
14
14
  readonly pageSize?: number;
15
15
  /**
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Describes one value in an enumeration of possible values.
3
+ */
4
+ export type EnumerationValue = {
5
+ /**
6
+ * The defined enumeration value. Value type must match the property type.
7
+ */
8
+ value: (number | null | string | null);
9
+ /**
10
+ * The display name of the enumeration value.
11
+ */
12
+ displayName: string;
13
+ };
@@ -11,7 +11,7 @@ export type ImageDescriptor = {
11
11
  */
12
12
  height?: number;
13
13
  /**
14
- * Indicates if the image should be pregenerated when a new image is uploaded rather than when first requested.
14
+ * Indicates if the image should be pre-generated when a new image is uploaded rather than when first requested.
15
15
  */
16
16
  pregenerated?: boolean;
17
17
  };
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Represents a hyperlink.
3
+ */
4
+ export type Link = {
5
+ /**
6
+ * Gets or sets the URL.
7
+ */
8
+ url?: string | null;
9
+ /**
10
+ * Gets or sets where to display the URL in a browsing context.
11
+ */
12
+ target?: string;
13
+ /**
14
+ * Gets or sets the title of the link.
15
+ */
16
+ title?: string;
17
+ /**
18
+ * Gets or sets the content inside a link.
19
+ */
20
+ text?: string;
21
+ };
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Represents a preview URL for a content item.
3
+ */
4
+ export type Preview = {
5
+ /**
6
+ * The application that this preview URL is associated with.
7
+ */
8
+ application?: string;
9
+ /**
10
+ * Gets or sets the preview URL (may be relative or absolute).
11
+ */
12
+ url?: string;
13
+ };
@@ -1,4 +1,3 @@
1
- import type { PropertyDataType } from './PropertyDataType';
2
1
  /**
3
2
  * Represent the definition of semantic property formats for content items.
4
3
  */
@@ -7,31 +6,76 @@ export type PropertyFormat = {
7
6
  * The key that identifies this PropertyFormat.
8
7
  */
9
8
  key?: string;
10
- dataType?: PropertyDataType;
11
- itemType?: PropertyDataType;
9
+ /**
10
+ * The underlying data type used for this PropertyFormat.
11
+ */
12
+ dataType?: PropertyFormat.dataType;
13
+ /**
14
+ * The underlying item type used for this PropertyFormat.
15
+ */
16
+ itemType?: PropertyFormat.itemType;
12
17
  /**
13
18
  * The name and identifier of this PropertyFormat.
14
19
  */
15
20
  displayName?: string;
16
21
  /**
17
- * Editor used for managing properties with this format.
22
+ * Indicates if this property format has been deleted.
18
23
  */
19
- editor?: string | null;
24
+ readonly deleted?: boolean;
20
25
  /**
21
- * Indicates if this property format has been deleted.
26
+ * A timestamp indicating when this display template was first created.
22
27
  */
23
- deleted?: boolean;
28
+ readonly created?: string;
24
29
  /**
25
- * Settings for the editor.
30
+ * The username of the user that created this display template.
26
31
  */
27
- editorSettings?: Record<string, Record<string, any>> | null;
32
+ readonly createdBy?: string;
28
33
  /**
29
- * Enumerations for the format.
34
+ * A timestamp indicating when this display template was last modified.
30
35
  */
31
- enum?: {
32
- values?: Array<{
33
- value?: (string | number);
34
- displayName?: string;
35
- }>;
36
- } | null;
36
+ readonly lastModified?: string;
37
+ /**
38
+ * The username of the user that last modified this display template.
39
+ */
40
+ readonly lastModifiedBy?: string;
37
41
  };
42
+ export declare namespace PropertyFormat {
43
+ /**
44
+ * The underlying data type used for this PropertyFormat.
45
+ */
46
+ enum dataType {
47
+ STRING = "string",
48
+ URL = "url",
49
+ BOOLEAN = "boolean",
50
+ INTEGER = "integer",
51
+ FLOAT = "float",
52
+ DATE_TIME = "dateTime",
53
+ CONTENT_REFERENCE = "contentReference",
54
+ CONTENT = "content",
55
+ BINARY = "binary",
56
+ LINK = "link",
57
+ RICH_TEXT = "richText",
58
+ JSON = "json",
59
+ ARRAY = "array",
60
+ COMPONENT = "component"
61
+ }
62
+ /**
63
+ * The underlying item type used for this PropertyFormat.
64
+ */
65
+ enum itemType {
66
+ STRING = "string",
67
+ URL = "url",
68
+ BOOLEAN = "boolean",
69
+ INTEGER = "integer",
70
+ FLOAT = "float",
71
+ DATE_TIME = "dateTime",
72
+ CONTENT_REFERENCE = "contentReference",
73
+ CONTENT = "content",
74
+ BINARY = "binary",
75
+ LINK = "link",
76
+ RICH_TEXT = "richText",
77
+ JSON = "json",
78
+ ARRAY = "array",
79
+ COMPONENT = "component"
80
+ }
81
+ }
@@ -1,2 +1,46 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PropertyFormat = void 0;
4
+ var PropertyFormat;
5
+ (function (PropertyFormat) {
6
+ /**
7
+ * The underlying data type used for this PropertyFormat.
8
+ */
9
+ let dataType;
10
+ (function (dataType) {
11
+ dataType["STRING"] = "string";
12
+ dataType["URL"] = "url";
13
+ dataType["BOOLEAN"] = "boolean";
14
+ dataType["INTEGER"] = "integer";
15
+ dataType["FLOAT"] = "float";
16
+ dataType["DATE_TIME"] = "dateTime";
17
+ dataType["CONTENT_REFERENCE"] = "contentReference";
18
+ dataType["CONTENT"] = "content";
19
+ dataType["BINARY"] = "binary";
20
+ dataType["LINK"] = "link";
21
+ dataType["RICH_TEXT"] = "richText";
22
+ dataType["JSON"] = "json";
23
+ dataType["ARRAY"] = "array";
24
+ dataType["COMPONENT"] = "component";
25
+ })(dataType = PropertyFormat.dataType || (PropertyFormat.dataType = {}));
26
+ /**
27
+ * The underlying item type used for this PropertyFormat.
28
+ */
29
+ let itemType;
30
+ (function (itemType) {
31
+ itemType["STRING"] = "string";
32
+ itemType["URL"] = "url";
33
+ itemType["BOOLEAN"] = "boolean";
34
+ itemType["INTEGER"] = "integer";
35
+ itemType["FLOAT"] = "float";
36
+ itemType["DATE_TIME"] = "dateTime";
37
+ itemType["CONTENT_REFERENCE"] = "contentReference";
38
+ itemType["CONTENT"] = "content";
39
+ itemType["BINARY"] = "binary";
40
+ itemType["LINK"] = "link";
41
+ itemType["RICH_TEXT"] = "richText";
42
+ itemType["JSON"] = "json";
43
+ itemType["ARRAY"] = "array";
44
+ itemType["COMPONENT"] = "component";
45
+ })(itemType = PropertyFormat.itemType || (PropertyFormat.itemType = {}));
46
+ })(PropertyFormat || (exports.PropertyFormat = PropertyFormat = {}));
@@ -9,7 +9,7 @@ export type PropertyFormatPage = {
9
9
  */
10
10
  readonly pageIndex?: number;
11
11
  /**
12
- * The number of item in each page. Not necessarily the same as the number of items in this page.
12
+ * The number of items in each page. Not necessarily the same as the number of items in this page.
13
13
  */
14
14
  readonly pageSize?: number;
15
15
  /**
@@ -5,7 +5,7 @@ export type PropertyGroup = {
5
5
  /**
6
6
  * The key that identifies this PropertyGroup.
7
7
  */
8
- readonly key: string;
8
+ key?: string;
9
9
  /**
10
10
  * The display name of this PropertyGroup.
11
11
  */
@@ -18,4 +18,17 @@ export type PropertyGroup = {
18
18
  * An value that is used to when sorting PropertyGroup instances.
19
19
  */
20
20
  sortOrder?: number;
21
+ /**
22
+ * A timestamp indicating when this property group was first created.
23
+ */
24
+ readonly created?: string;
25
+ /**
26
+ * The username of the user that created this property group.
27
+ */
28
+ readonly createdBy?: string;
29
+ readonly lastModified?: string;
30
+ /**
31
+ * The username of the user that last modified this property group.
32
+ */
33
+ readonly lastModifiedBy?: string;
21
34
  };
@@ -9,7 +9,7 @@ export type PropertyGroupPage = {
9
9
  */
10
10
  readonly pageIndex?: number;
11
11
  /**
12
- * The number of item in each page. Not necessarily the same as the number of items in this page.
12
+ * The number of items in each page. Not necessarily the same as the number of items in this page.
13
13
  */
14
14
  readonly pageSize?: number;
15
15
  /**
@@ -0,0 +1,56 @@
1
+ import type { Blueprint } from '../models/Blueprint';
2
+ import type { BlueprintPage } from '../models/BlueprintPage';
3
+ import type { CancelablePromise } from '../core/CancelablePromise';
4
+ import type { BaseHttpRequest } from '../core/BaseHttpRequest';
5
+ export declare class BlueprintsService {
6
+ readonly httpRequest: BaseHttpRequest;
7
+ constructor(httpRequest: BaseHttpRequest);
8
+ /**
9
+ * List blueprints
10
+ * List blueprints using the provided parameters. This API is experimental and may change in future releases.
11
+ * @param pageIndex
12
+ * @param pageSize
13
+ * @returns BlueprintPage OK
14
+ * @throws ApiError
15
+ */
16
+ blueprintsList(pageIndex?: number, pageSize?: number): CancelablePromise<BlueprintPage>;
17
+ /**
18
+ * Create a blueprint
19
+ * Create a new blueprint. This API is experimental and may change in future releases.
20
+ * @param requestBody The blueprint that should be created.
21
+ * @returns Blueprint Created
22
+ * @throws ApiError
23
+ */
24
+ blueprintsCreate(requestBody: Blueprint): CancelablePromise<Blueprint>;
25
+ /**
26
+ * Get a specific blueprint
27
+ * Get the blueprint with the provided key. This API is experimental and may change in future releases.
28
+ * @param key The key of the blueprint to retrieve.
29
+ * @param ifNoneMatch If provided and the value matches the RFC7232 ETag of the current resource a 304 NotModified response will be returned. Weak ETags will always be ignored.
30
+ * @param ifModifiedSince If provided and the resource has not been modified since the date a 304 NotModified response will be returned. This parameter will be ignored if an 'If-None-Match' parameter is also provided.
31
+ * @returns Blueprint OK
32
+ * @throws ApiError
33
+ */
34
+ blueprintsGet(key: string, ifNoneMatch?: string, ifModifiedSince?: string): CancelablePromise<Blueprint>;
35
+ /**
36
+ * Patch blueprint
37
+ * Patch an existing blueprint. This API is experimental and may change in future releases.
38
+ * @param key The key of the blueprint to patch.
39
+ * @param requestBody The values of the blueprint that should be patched formatted according to RFC7396.
40
+ * @param ifMatch If provided, the PATCH request will only be considered if the value matches the RFC7232 ETag of the current resource. Weak ETags will always be ignored.
41
+ * @param ifUnmodifiedSince If provided, the PATCH request will only be considered if the resource has not been modified since the provided date. This parameter will be ignored if an 'If-Match' parameter is also provided.
42
+ * @returns Blueprint OK
43
+ * @throws ApiError
44
+ */
45
+ blueprintsPatch(key: string, requestBody: Blueprint, ifMatch?: string, ifUnmodifiedSince?: string): CancelablePromise<Blueprint>;
46
+ /**
47
+ * Delete a blueprint
48
+ * Deletes the blueprint with the provided key. This API is experimental and may change in future releases.
49
+ * @param key The key of the blueprint to delete.
50
+ * @param ifMatch If provided, the DELETE request will only be considered if the value matches the RFC7232 ETag of the current resource. Weak ETags will always be ignored.
51
+ * @param ifUnmodifiedSince If provided, the DELETE request will only be considered if the resource has not been modified since the provided date. This parameter will be ignored if an 'If-Match' parameter is also provided.
52
+ * @returns Blueprint OK
53
+ * @throws ApiError
54
+ */
55
+ blueprintsDelete(key: string, ifMatch?: string, ifUnmodifiedSince?: string): CancelablePromise<Blueprint>;
56
+ }