@remkoj/optimizely-cms-api 5.2.0 → 5.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
@@ -7,11 +7,10 @@ export declare class ContentTypesService {
7
7
  constructor(httpRequest: BaseHttpRequest);
8
8
  /**
9
9
  * List content types
10
- * List content types using the provided options.
10
+ * List content types using the provided parameters.
11
11
  * @param forContainerType Only include types that are available for creation under the provided container type
12
12
  * @param sources Indicates which sources should be included when listing content types.
13
- * Use All to include content types from all sources or
14
- * Default to include content types without a specific sources.
13
+ * Use 'DEFAULT' to include content types without a specific source.
15
14
  * @param pageIndex
16
15
  * @param pageSize
17
16
  * @returns ContentTypePage OK
@@ -21,8 +20,8 @@ export declare class ContentTypesService {
21
20
  /**
22
21
  * Create content type
23
22
  * Create a new content type.
24
- * @param requestBody The content type that should be created.
25
- * @returns ContentType OK
23
+ * @param requestBody The content type that should be created or replaced.
24
+ * @returns ContentType Created
26
25
  * @throws ApiError
27
26
  */
28
27
  contentTypesCreate(requestBody: ContentType): CancelablePromise<ContentType>;
@@ -30,37 +29,32 @@ export declare class ContentTypesService {
30
29
  * Get content type
31
30
  * Get the content type with the provided key.
32
31
  * @param key The key of the content type to retrieve.
32
+ * @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.
33
+ * @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.
33
34
  * @returns ContentType OK
34
35
  * @throws ApiError
35
36
  */
36
- contentTypesGet(key: string): CancelablePromise<ContentType>;
37
- /**
38
- * Create or replace content type
39
- * Create or replace a content type. If a content type with the provided key exist it is replaced.
40
- * Otherwise a new content type is created.
41
- * @param key The key of the content type to update or create.
42
- * @param requestBody The values of the created or replaced content type.
43
- * @param ignoreDataLossWarnings Update the content type even though the changes might result in data loss.
44
- * @returns ContentType OK
45
- * @throws ApiError
46
- */
47
- contentTypesPut(key: string, requestBody: ContentType, ignoreDataLossWarnings?: boolean): CancelablePromise<ContentType>;
37
+ contentTypesGet(key: string, ifNoneMatch?: string, ifModifiedSince?: string): CancelablePromise<ContentType>;
48
38
  /**
49
- * Update content type
50
- * Update an existing content type. If a content type with the provided key does not exist an error is returned.
39
+ * Patch content type
40
+ * Patch an existing content type. If a content type with the provided key does not exist an error is returned.
51
41
  * @param key The key of the content type to patch.
52
- * @param requestBody The values of the content type that should be updated.
53
- * @param ignoreDataLossWarnings Update the content type even though the changes might result in data loss.
42
+ * @param requestBody The values of the content type that should be patched formatted according to RFC7396.
43
+ * @param cmsIgnoreDataLossWarnings Patch the content type even though the changes might result in data loss.
44
+ * @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.
45
+ * @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.
54
46
  * @returns ContentType OK
55
47
  * @throws ApiError
56
48
  */
57
- contentTypesPatch(key: string, requestBody: ContentType, ignoreDataLossWarnings?: boolean): CancelablePromise<ContentType>;
49
+ contentTypesPatch(key: string, requestBody: ContentType, cmsIgnoreDataLossWarnings?: boolean, ifMatch?: string, ifUnmodifiedSince?: string): CancelablePromise<ContentType>;
58
50
  /**
59
51
  * Delete content type
60
52
  * Deletes the content type with the provided key. If a content type with the provided key does not exist an error is returned.
61
53
  * @param key The key of the content type to delete.
54
+ * @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.
55
+ * @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.
62
56
  * @returns ContentType OK
63
57
  * @throws ApiError
64
58
  */
65
- contentTypesDelete(key: string): CancelablePromise<ContentType>;
59
+ contentTypesDelete(key: string, ifMatch?: string, ifUnmodifiedSince?: string): CancelablePromise<ContentType>;
66
60
  }
@@ -7,11 +7,10 @@ class ContentTypesService {
7
7
  }
8
8
  /**
9
9
  * List content types
10
- * List content types using the provided options.
10
+ * List content types using the provided parameters.
11
11
  * @param forContainerType Only include types that are available for creation under the provided container type
12
12
  * @param sources Indicates which sources should be included when listing content types.
13
- * Use All to include content types from all sources or
14
- * Default to include content types without a specific sources.
13
+ * Use 'DEFAULT' to include content types without a specific source.
15
14
  * @param pageIndex
16
15
  * @param pageSize
17
16
  * @returns ContentTypePage OK
@@ -35,8 +34,8 @@ class ContentTypesService {
35
34
  /**
36
35
  * Create content type
37
36
  * Create a new content type.
38
- * @param requestBody The content type that should be created.
39
- * @returns ContentType OK
37
+ * @param requestBody The content type that should be created or replaced.
38
+ * @returns ContentType Created
40
39
  * @throws ApiError
41
40
  */
42
41
  contentTypesCreate(requestBody) {
@@ -55,73 +54,59 @@ class ContentTypesService {
55
54
  * Get content type
56
55
  * Get the content type with the provided key.
57
56
  * @param key The key of the content type to retrieve.
57
+ * @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.
58
+ * @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.
58
59
  * @returns ContentType OK
59
60
  * @throws ApiError
60
61
  */
61
- contentTypesGet(key) {
62
+ contentTypesGet(key, ifNoneMatch, ifModifiedSince) {
62
63
  return this.httpRequest.request({
63
64
  method: 'GET',
64
65
  url: '/contenttypes/{key}',
65
66
  path: {
66
67
  'key': key,
67
68
  },
68
- errors: {
69
- 403: `Forbidden`,
69
+ headers: {
70
+ 'If-None-Match': ifNoneMatch,
71
+ 'If-Modified-Since': ifModifiedSince,
70
72
  },
71
- });
72
- }
73
- /**
74
- * Create or replace content type
75
- * Create or replace a content type. If a content type with the provided key exist it is replaced.
76
- * Otherwise a new content type is created.
77
- * @param key The key of the content type to update or create.
78
- * @param requestBody The values of the created or replaced content type.
79
- * @param ignoreDataLossWarnings Update the content type even though the changes might result in data loss.
80
- * @returns ContentType OK
81
- * @throws ApiError
82
- */
83
- contentTypesPut(key, requestBody, ignoreDataLossWarnings) {
84
- return this.httpRequest.request({
85
- method: 'PUT',
86
- url: '/contenttypes/{key}',
87
- path: {
88
- 'key': key,
89
- },
90
- query: {
91
- 'ignoreDataLossWarnings': ignoreDataLossWarnings,
92
- },
93
- body: requestBody,
94
- mediaType: 'application/json',
95
73
  errors: {
96
- 400: `Bad Request`,
74
+ 304: `Not Modified`,
97
75
  403: `Forbidden`,
76
+ 404: `Not Found`,
98
77
  },
99
78
  });
100
79
  }
101
80
  /**
102
- * Update content type
103
- * Update an existing content type. If a content type with the provided key does not exist an error is returned.
81
+ * Patch content type
82
+ * Patch an existing content type. If a content type with the provided key does not exist an error is returned.
104
83
  * @param key The key of the content type to patch.
105
- * @param requestBody The values of the content type that should be updated.
106
- * @param ignoreDataLossWarnings Update the content type even though the changes might result in data loss.
84
+ * @param requestBody The values of the content type that should be patched formatted according to RFC7396.
85
+ * @param cmsIgnoreDataLossWarnings Patch the content type even though the changes might result in data loss.
86
+ * @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.
87
+ * @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.
107
88
  * @returns ContentType OK
108
89
  * @throws ApiError
109
90
  */
110
- contentTypesPatch(key, requestBody, ignoreDataLossWarnings) {
91
+ contentTypesPatch(key, requestBody, cmsIgnoreDataLossWarnings, ifMatch, ifUnmodifiedSince) {
111
92
  return this.httpRequest.request({
112
93
  method: 'PATCH',
113
94
  url: '/contenttypes/{key}',
114
95
  path: {
115
96
  'key': key,
116
97
  },
117
- query: {
118
- 'ignoreDataLossWarnings': ignoreDataLossWarnings,
98
+ headers: {
99
+ 'cms-ignore-data-loss-warnings': cmsIgnoreDataLossWarnings,
100
+ 'If-Match': ifMatch,
101
+ 'If-Unmodified-Since': ifUnmodifiedSince,
119
102
  },
120
103
  body: requestBody,
121
104
  mediaType: 'application/merge-patch+json',
122
105
  errors: {
123
106
  400: `Bad Request`,
124
107
  403: `Forbidden`,
108
+ 404: `Not Found`,
109
+ 412: `Precondition Failed`,
125
110
  },
126
111
  });
127
112
  }
@@ -129,19 +114,27 @@ class ContentTypesService {
129
114
  * Delete content type
130
115
  * Deletes the content type with the provided key. If a content type with the provided key does not exist an error is returned.
131
116
  * @param key The key of the content type to delete.
117
+ * @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.
118
+ * @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.
132
119
  * @returns ContentType OK
133
120
  * @throws ApiError
134
121
  */
135
- contentTypesDelete(key) {
122
+ contentTypesDelete(key, ifMatch, ifUnmodifiedSince) {
136
123
  return this.httpRequest.request({
137
124
  method: 'DELETE',
138
125
  url: '/contenttypes/{key}',
139
126
  path: {
140
127
  'key': key,
141
128
  },
129
+ headers: {
130
+ 'If-Match': ifMatch,
131
+ 'If-Unmodified-Since': ifUnmodifiedSince,
132
+ },
142
133
  errors: {
143
134
  400: `Bad Request`,
144
135
  403: `Forbidden`,
136
+ 404: `Not Found`,
137
+ 412: `Precondition Failed`,
145
138
  },
146
139
  });
147
140
  }
@@ -7,7 +7,7 @@ export declare class DisplayTemplatesService {
7
7
  constructor(httpRequest: BaseHttpRequest);
8
8
  /**
9
9
  * List display templates
10
- * List display templates using the provided options.
10
+ * List display templates using the provided parameters.
11
11
  * @param pageIndex
12
12
  * @param pageSize
13
13
  * @returns DisplayTemplatePage OK
@@ -18,7 +18,7 @@ export declare class DisplayTemplatesService {
18
18
  * Create display template
19
19
  * Create a new display template.
20
20
  * @param requestBody The display template that should be created.
21
- * @returns DisplayTemplate OK
21
+ * @returns DisplayTemplate Created
22
22
  * @throws ApiError
23
23
  */
24
24
  displayTemplatesCreate(requestBody: DisplayTemplate): CancelablePromise<DisplayTemplate>;
@@ -26,35 +26,31 @@ export declare class DisplayTemplatesService {
26
26
  * Get display template
27
27
  * Get the display template with the provided key.
28
28
  * @param key The key of the display template 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.
29
31
  * @returns DisplayTemplate OK
30
32
  * @throws ApiError
31
33
  */
32
- displayTemplatesGet(key: string): CancelablePromise<DisplayTemplate>;
33
- /**
34
- * Create or replace a display template
35
- * Create or replace a display template. If a display template with the provided key exist it is replaced.
36
- * Otherwise a new display template is created.
37
- * @param key The key of the display template to update or create.
38
- * @param requestBody The values of the created or replaced display template.
39
- * @returns DisplayTemplate OK
40
- * @throws ApiError
41
- */
42
- displayTemplatesPut(key: string, requestBody: DisplayTemplate): CancelablePromise<DisplayTemplate>;
34
+ displayTemplatesGet(key: string, ifNoneMatch?: string, ifModifiedSince?: string): CancelablePromise<DisplayTemplate>;
43
35
  /**
44
- * Update display template
45
- * Update an existing display template.
36
+ * Patch display template
37
+ * Patch an existing display template.
46
38
  * @param key The key of the display template to patch.
47
- * @param requestBody The values of the display template that should be updated.
39
+ * @param requestBody The values of the display template 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.
48
42
  * @returns DisplayTemplate OK
49
43
  * @throws ApiError
50
44
  */
51
- displayTemplatesPatch(key: string, requestBody: DisplayTemplate): CancelablePromise<DisplayTemplate>;
45
+ displayTemplatesPatch(key: string, requestBody: DisplayTemplate, ifMatch?: string, ifUnmodifiedSince?: string): CancelablePromise<DisplayTemplate>;
52
46
  /**
53
47
  * Delete display template
54
48
  * Deletes the display template with the provided key.
55
49
  * @param key The key of the display template 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.
56
52
  * @returns DisplayTemplate OK
57
53
  * @throws ApiError
58
54
  */
59
- displayTemplatesDelete(key: string): CancelablePromise<DisplayTemplate>;
55
+ displayTemplatesDelete(key: string, ifMatch?: string, ifUnmodifiedSince?: string): CancelablePromise<DisplayTemplate>;
60
56
  }
@@ -7,7 +7,7 @@ class DisplayTemplatesService {
7
7
  }
8
8
  /**
9
9
  * List display templates
10
- * List display templates using the provided options.
10
+ * List display templates using the provided parameters.
11
11
  * @param pageIndex
12
12
  * @param pageSize
13
13
  * @returns DisplayTemplatePage OK
@@ -30,7 +30,7 @@ class DisplayTemplatesService {
30
30
  * Create display template
31
31
  * Create a new display template.
32
32
  * @param requestBody The display template that should be created.
33
- * @returns DisplayTemplate OK
33
+ * @returns DisplayTemplate Created
34
34
  * @throws ApiError
35
35
  */
36
36
  displayTemplatesCreate(requestBody) {
@@ -49,65 +49,57 @@ class DisplayTemplatesService {
49
49
  * Get display template
50
50
  * Get the display template with the provided key.
51
51
  * @param key The key of the display template to retrieve.
52
+ * @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.
53
+ * @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.
52
54
  * @returns DisplayTemplate OK
53
55
  * @throws ApiError
54
56
  */
55
- displayTemplatesGet(key) {
57
+ displayTemplatesGet(key, ifNoneMatch, ifModifiedSince) {
56
58
  return this.httpRequest.request({
57
59
  method: 'GET',
58
60
  url: '/displaytemplates/{key}',
59
61
  path: {
60
62
  'key': key,
61
63
  },
62
- errors: {
63
- 403: `Forbidden`,
64
+ headers: {
65
+ 'If-None-Match': ifNoneMatch,
66
+ 'If-Modified-Since': ifModifiedSince,
64
67
  },
65
- });
66
- }
67
- /**
68
- * Create or replace a display template
69
- * Create or replace a display template. If a display template with the provided key exist it is replaced.
70
- * Otherwise a new display template is created.
71
- * @param key The key of the display template to update or create.
72
- * @param requestBody The values of the created or replaced display template.
73
- * @returns DisplayTemplate OK
74
- * @throws ApiError
75
- */
76
- displayTemplatesPut(key, requestBody) {
77
- return this.httpRequest.request({
78
- method: 'PUT',
79
- url: '/displaytemplates/{key}',
80
- path: {
81
- 'key': key,
82
- },
83
- body: requestBody,
84
- mediaType: 'application/json',
85
68
  errors: {
86
- 400: `Bad Request`,
69
+ 304: `Not Modified`,
87
70
  403: `Forbidden`,
71
+ 404: `Not Found`,
88
72
  },
89
73
  });
90
74
  }
91
75
  /**
92
- * Update display template
93
- * Update an existing display template.
76
+ * Patch display template
77
+ * Patch an existing display template.
94
78
  * @param key The key of the display template to patch.
95
- * @param requestBody The values of the display template that should be updated.
79
+ * @param requestBody The values of the display template that should be patched formatted according to RFC7396.
80
+ * @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.
81
+ * @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.
96
82
  * @returns DisplayTemplate OK
97
83
  * @throws ApiError
98
84
  */
99
- displayTemplatesPatch(key, requestBody) {
85
+ displayTemplatesPatch(key, requestBody, ifMatch, ifUnmodifiedSince) {
100
86
  return this.httpRequest.request({
101
87
  method: 'PATCH',
102
88
  url: '/displaytemplates/{key}',
103
89
  path: {
104
90
  'key': key,
105
91
  },
92
+ headers: {
93
+ 'If-Match': ifMatch,
94
+ 'If-Unmodified-Since': ifUnmodifiedSince,
95
+ },
106
96
  body: requestBody,
107
97
  mediaType: 'application/merge-patch+json',
108
98
  errors: {
109
99
  400: `Bad Request`,
110
100
  403: `Forbidden`,
101
+ 404: `Not Found`,
102
+ 412: `Precondition Failed`,
111
103
  },
112
104
  });
113
105
  }
@@ -115,19 +107,27 @@ class DisplayTemplatesService {
115
107
  * Delete display template
116
108
  * Deletes the display template with the provided key.
117
109
  * @param key The key of the display template to delete.
110
+ * @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.
111
+ * @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.
118
112
  * @returns DisplayTemplate OK
119
113
  * @throws ApiError
120
114
  */
121
- displayTemplatesDelete(key) {
115
+ displayTemplatesDelete(key, ifMatch, ifUnmodifiedSince) {
122
116
  return this.httpRequest.request({
123
117
  method: 'DELETE',
124
118
  url: '/displaytemplates/{key}',
125
119
  path: {
126
120
  'key': key,
127
121
  },
122
+ headers: {
123
+ 'If-Match': ifMatch,
124
+ 'If-Unmodified-Since': ifUnmodifiedSince,
125
+ },
128
126
  errors: {
129
127
  400: `Bad Request`,
130
128
  403: `Forbidden`,
129
+ 404: `Not Found`,
130
+ 412: `Precondition Failed`,
131
131
  },
132
132
  });
133
133
  }
@@ -19,8 +19,10 @@ export declare class PropertyFormatsService {
19
19
  * Get the property format with the provided key.
20
20
  * @param key The key of the property format to retrieve.
21
21
  * @param allowDeleted Indicates that a deleted property format may be returned.
22
+ * @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.
23
+ * @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.
22
24
  * @returns PropertyFormat OK
23
25
  * @throws ApiError
24
26
  */
25
- propertyFormatsGet(key: string, allowDeleted?: boolean): CancelablePromise<PropertyFormat>;
27
+ propertyFormatsGet(key: string, allowDeleted?: boolean, ifNoneMatch?: string, ifModifiedSince?: string): CancelablePromise<PropertyFormat>;
26
28
  }
@@ -31,21 +31,29 @@ class PropertyFormatsService {
31
31
  * Get the property format with the provided key.
32
32
  * @param key The key of the property format to retrieve.
33
33
  * @param allowDeleted Indicates that a deleted property format may be returned.
34
+ * @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.
35
+ * @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.
34
36
  * @returns PropertyFormat OK
35
37
  * @throws ApiError
36
38
  */
37
- propertyFormatsGet(key, allowDeleted) {
39
+ propertyFormatsGet(key, allowDeleted, ifNoneMatch, ifModifiedSince) {
38
40
  return this.httpRequest.request({
39
41
  method: 'GET',
40
42
  url: '/propertyformats/{key}',
41
43
  path: {
42
44
  'key': key,
43
45
  },
46
+ headers: {
47
+ 'If-None-Match': ifNoneMatch,
48
+ 'If-Modified-Since': ifModifiedSince,
49
+ },
44
50
  query: {
45
51
  'allowDeleted': allowDeleted,
46
52
  },
47
53
  errors: {
54
+ 304: `Not Modified`,
48
55
  403: `Forbidden`,
56
+ 404: `Not Found`,
49
57
  },
50
58
  });
51
59
  }
@@ -8,9 +8,8 @@ export declare class PropertyGroupsService {
8
8
  /**
9
9
  * List property groups
10
10
  * List property groups using the provided options.
11
- * @param sources Indicates which property groups sources that should be listed.
12
- * Use All to include groups from all sources or
13
- * Default to include groups without a specific sources.
11
+ * @param sources Indicates which property groups sources should be listed.
12
+ * Use 'DEFAULT' to include groups without a specific sources.
14
13
  * @returns PropertyGroupPage OK
15
14
  * @throws ApiError
16
15
  */
@@ -19,7 +18,7 @@ export declare class PropertyGroupsService {
19
18
  * Create property group
20
19
  * Create a new property group.
21
20
  * @param requestBody The property group that should be created.
22
- * @returns PropertyGroup OK
21
+ * @returns PropertyGroup Created
23
22
  * @throws ApiError
24
23
  */
25
24
  propertyGroupsCreate(requestBody: PropertyGroup): CancelablePromise<PropertyGroup>;
@@ -27,35 +26,31 @@ export declare class PropertyGroupsService {
27
26
  * Get property group
28
27
  * Get the property group with the provided key.
29
28
  * @param key The key of the property group 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.
30
31
  * @returns PropertyGroup OK
31
32
  * @throws ApiError
32
33
  */
33
- propertyGroupsGet(key: string): CancelablePromise<PropertyGroup>;
34
- /**
35
- * Create or replace property group
36
- * Create or replace a property group. If a property group with the provided key exist it is replaced.
37
- * Otherwise a new property group is created.
38
- * @param key The key of the property group to update or create.
39
- * @param requestBody The values of the created or replaced property group.
40
- * @returns PropertyGroup OK
41
- * @throws ApiError
42
- */
43
- propertyGroupsPut(key: string, requestBody: PropertyGroup): CancelablePromise<PropertyGroup>;
34
+ propertyGroupsGet(key: string, ifNoneMatch?: string, ifModifiedSince?: string): CancelablePromise<PropertyGroup>;
44
35
  /**
45
- * Update property group
46
- * Update an existing property group.
36
+ * Patch property group
37
+ * Patch an existing property group.
47
38
  * @param key The key of the property group to patch.
48
- * @param requestBody The values of the property group that should be updated.
39
+ * @param requestBody The values of the property group 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.
49
42
  * @returns PropertyGroup OK
50
43
  * @throws ApiError
51
44
  */
52
- propertyGroupsPatch(key: string, requestBody: PropertyGroup): CancelablePromise<PropertyGroup>;
45
+ propertyGroupsPatch(key: string, requestBody: PropertyGroup, ifMatch?: string, ifUnmodifiedSince?: string): CancelablePromise<PropertyGroup>;
53
46
  /**
54
47
  * Delete property group
55
48
  * Deletes the property group with the provided key.
56
49
  * @param key The key of the property group 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.
57
52
  * @returns PropertyGroup OK
58
53
  * @throws ApiError
59
54
  */
60
- propertyGroupsDelete(key: string): CancelablePromise<PropertyGroup>;
55
+ propertyGroupsDelete(key: string, ifMatch?: string, ifUnmodifiedSince?: string): CancelablePromise<PropertyGroup>;
61
56
  }