@remkoj/optimizely-cms-api 5.0.2 → 6.0.0-pre1

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 (198) hide show
  1. package/dist/api-client.d.ts +53 -10
  2. package/dist/api-client.js +142 -42
  3. package/dist/client/client/client.d.ts +2 -0
  4. package/dist/client/client/client.js +147 -0
  5. package/dist/client/client/index.d.ts +7 -0
  6. package/dist/client/client/index.js +14 -0
  7. package/dist/client/client/types.d.ts +119 -0
  8. package/dist/client/client/utils.d.ts +45 -0
  9. package/dist/client/client/utils.js +296 -0
  10. package/dist/client/client.gen.d.ts +12 -0
  11. package/dist/client/client.gen.js +9 -0
  12. package/dist/client/core/auth.d.ts +18 -0
  13. package/dist/client/core/auth.js +17 -0
  14. package/dist/client/core/bodySerializer.d.ts +17 -0
  15. package/dist/client/core/bodySerializer.js +56 -0
  16. package/dist/client/core/params.d.ts +23 -0
  17. package/dist/client/core/params.js +91 -0
  18. package/dist/client/core/pathSerializer.d.ts +33 -0
  19. package/dist/client/core/pathSerializer.js +122 -0
  20. package/dist/client/core/types.d.ts +73 -0
  21. package/dist/client/index.d.ts +4 -78
  22. package/dist/client/index.js +19 -46
  23. package/dist/client/sdk.gen.d.ts +256 -0
  24. package/dist/client/sdk.gen.js +638 -0
  25. package/dist/client/transformers.gen.d.ts +34 -0
  26. package/dist/client/transformers.gen.js +273 -0
  27. package/dist/client/types.gen.d.ts +2941 -0
  28. package/dist/client/types.gen.js +87 -0
  29. package/dist/client-config.d.ts +2 -0
  30. package/dist/client-config.js +27 -0
  31. package/dist/config.js +1 -2
  32. package/dist/getaccesstoken.js +1 -2
  33. package/dist/index.d.ts +3 -5
  34. package/dist/index.js +6 -8
  35. package/dist/version.json +2 -2
  36. package/package.json +20 -11
  37. package/dist/client/CmsIntegrationApiClient.d.ts +0 -22
  38. package/dist/client/CmsIntegrationApiClient.js +0 -34
  39. package/dist/client/core/ApiError.d.ts +0 -10
  40. package/dist/client/core/ApiError.js +0 -15
  41. package/dist/client/core/ApiRequestOptions.d.ts +0 -13
  42. package/dist/client/core/ApiResult.d.ts +0 -7
  43. package/dist/client/core/BaseHttpRequest.d.ts +0 -8
  44. package/dist/client/core/BaseHttpRequest.js +0 -9
  45. package/dist/client/core/CancelablePromise.d.ts +0 -20
  46. package/dist/client/core/CancelablePromise.js +0 -116
  47. package/dist/client/core/FetchHttpRequest.d.ts +0 -14
  48. package/dist/client/core/FetchHttpRequest.js +0 -20
  49. package/dist/client/core/OpenAPI.d.ts +0 -16
  50. package/dist/client/core/OpenAPI.js +0 -14
  51. package/dist/client/core/request.d.ts +0 -30
  52. package/dist/client/core/request.js +0 -294
  53. package/dist/client/models/BinaryProperty.d.ts +0 -8
  54. package/dist/client/models/BinaryProperty.js +0 -2
  55. package/dist/client/models/BooleanProperty.d.ts +0 -5
  56. package/dist/client/models/BooleanProperty.js +0 -2
  57. package/dist/client/models/Changeset.d.ts +0 -26
  58. package/dist/client/models/Changeset.js +0 -2
  59. package/dist/client/models/ChangesetItem.d.ts +0 -11
  60. package/dist/client/models/ChangesetItem.js +0 -2
  61. package/dist/client/models/ChangesetItemPage.d.ts +0 -19
  62. package/dist/client/models/ChangesetItemPage.js +0 -2
  63. package/dist/client/models/ChangesetPage.d.ts +0 -19
  64. package/dist/client/models/ChangesetPage.js +0 -2
  65. package/dist/client/models/ComponentListItem.d.ts +0 -10
  66. package/dist/client/models/ComponentListItem.js +0 -2
  67. package/dist/client/models/ComponentProperty.d.ts +0 -10
  68. package/dist/client/models/ComponentProperty.js +0 -2
  69. package/dist/client/models/CompositionBehavior.d.ts +0 -7
  70. package/dist/client/models/CompositionBehavior.js +0 -15
  71. package/dist/client/models/ContentBaseType.d.ts +0 -14
  72. package/dist/client/models/ContentBaseType.js +0 -22
  73. package/dist/client/models/ContentComponent.d.ts +0 -30
  74. package/dist/client/models/ContentComponent.js +0 -2
  75. package/dist/client/models/ContentItem.d.ts +0 -60
  76. package/dist/client/models/ContentItem.js +0 -2
  77. package/dist/client/models/ContentItemListWithContentTypes.d.ts +0 -27
  78. package/dist/client/models/ContentItemListWithContentTypes.js +0 -2
  79. package/dist/client/models/ContentItemPage.d.ts +0 -19
  80. package/dist/client/models/ContentItemPage.js +0 -2
  81. package/dist/client/models/ContentItemWithContentTypes.d.ts +0 -12
  82. package/dist/client/models/ContentItemWithContentTypes.js +0 -2
  83. package/dist/client/models/ContentListItem.d.ts +0 -14
  84. package/dist/client/models/ContentListItem.js +0 -2
  85. package/dist/client/models/ContentLocaleInfo.d.ts +0 -19
  86. package/dist/client/models/ContentLocaleInfo.js +0 -2
  87. package/dist/client/models/ContentMetadata.d.ts +0 -38
  88. package/dist/client/models/ContentMetadata.js +0 -2
  89. package/dist/client/models/ContentMetadataPage.d.ts +0 -19
  90. package/dist/client/models/ContentMetadataPage.js +0 -2
  91. package/dist/client/models/ContentProperty.d.ts +0 -14
  92. package/dist/client/models/ContentProperty.js +0 -2
  93. package/dist/client/models/ContentReference.d.ts +0 -17
  94. package/dist/client/models/ContentReference.js +0 -2
  95. package/dist/client/models/ContentReferenceListItem.d.ts +0 -14
  96. package/dist/client/models/ContentReferenceListItem.js +0 -2
  97. package/dist/client/models/ContentReferenceProperty.d.ts +0 -14
  98. package/dist/client/models/ContentReferenceProperty.js +0 -2
  99. package/dist/client/models/ContentType.d.ts +0 -84
  100. package/dist/client/models/ContentType.js +0 -2
  101. package/dist/client/models/ContentTypeFeature.d.ts +0 -10
  102. package/dist/client/models/ContentTypeFeature.js +0 -18
  103. package/dist/client/models/ContentTypePage.d.ts +0 -19
  104. package/dist/client/models/ContentTypePage.js +0 -2
  105. package/dist/client/models/ContentTypeProperty.d.ts +0 -47
  106. package/dist/client/models/ContentTypeProperty.js +0 -2
  107. package/dist/client/models/ContentTypeUsage.d.ts +0 -7
  108. package/dist/client/models/ContentTypeUsage.js +0 -15
  109. package/dist/client/models/CopyContentOptions.d.ts +0 -21
  110. package/dist/client/models/CopyContentOptions.js +0 -2
  111. package/dist/client/models/DateTimeListItem.d.ts +0 -14
  112. package/dist/client/models/DateTimeListItem.js +0 -2
  113. package/dist/client/models/DateTimeProperty.d.ts +0 -14
  114. package/dist/client/models/DateTimeProperty.js +0 -2
  115. package/dist/client/models/DisplaySetting.d.ts +0 -22
  116. package/dist/client/models/DisplaySetting.js +0 -2
  117. package/dist/client/models/DisplaySettingChoice.d.ts +0 -13
  118. package/dist/client/models/DisplaySettingChoice.js +0 -2
  119. package/dist/client/models/DisplayTemplate.d.ts +0 -49
  120. package/dist/client/models/DisplayTemplate.js +0 -2
  121. package/dist/client/models/DisplayTemplatePage.d.ts +0 -19
  122. package/dist/client/models/DisplayTemplatePage.js +0 -2
  123. package/dist/client/models/DoubleEnumerationSettings.d.ts +0 -10
  124. package/dist/client/models/DoubleEnumerationSettings.js +0 -2
  125. package/dist/client/models/DoubleEnumerationValue.d.ts +0 -13
  126. package/dist/client/models/DoubleEnumerationValue.js +0 -2
  127. package/dist/client/models/FloatListItem.d.ts +0 -16
  128. package/dist/client/models/FloatListItem.js +0 -2
  129. package/dist/client/models/FloatProperty.d.ts +0 -16
  130. package/dist/client/models/FloatProperty.js +0 -2
  131. package/dist/client/models/ImageDescriptor.d.ts +0 -17
  132. package/dist/client/models/ImageDescriptor.js +0 -2
  133. package/dist/client/models/IndexingType.d.ts +0 -8
  134. package/dist/client/models/IndexingType.js +0 -16
  135. package/dist/client/models/Int32EnumerationSettings.d.ts +0 -10
  136. package/dist/client/models/Int32EnumerationSettings.js +0 -2
  137. package/dist/client/models/Int32EnumerationValue.d.ts +0 -13
  138. package/dist/client/models/Int32EnumerationValue.js +0 -2
  139. package/dist/client/models/IntegerListItem.d.ts +0 -16
  140. package/dist/client/models/IntegerListItem.js +0 -2
  141. package/dist/client/models/IntegerProperty.d.ts +0 -16
  142. package/dist/client/models/IntegerProperty.js +0 -2
  143. package/dist/client/models/JsonStringProperty.d.ts +0 -5
  144. package/dist/client/models/JsonStringProperty.js +0 -2
  145. package/dist/client/models/ListProperty.d.ts +0 -26
  146. package/dist/client/models/ListProperty.js +0 -2
  147. package/dist/client/models/ListPropertyItem.d.ts +0 -11
  148. package/dist/client/models/ListPropertyItem.js +0 -2
  149. package/dist/client/models/LocaleStatus.d.ts +0 -7
  150. package/dist/client/models/LocaleStatus.js +0 -15
  151. package/dist/client/models/OauthToken.d.ts +0 -18
  152. package/dist/client/models/OauthToken.js +0 -2
  153. package/dist/client/models/OauthTokenError.d.ts +0 -13
  154. package/dist/client/models/OauthTokenError.js +0 -2
  155. package/dist/client/models/OauthTokenRequest.d.ts +0 -21
  156. package/dist/client/models/OauthTokenRequest.js +0 -2
  157. package/dist/client/models/ProblemDetails.d.ts +0 -1
  158. package/dist/client/models/ProblemDetails.js +0 -2
  159. package/dist/client/models/PropertyDataType.d.ts +0 -18
  160. package/dist/client/models/PropertyDataType.js +0 -26
  161. package/dist/client/models/PropertyFormat.d.ts +0 -37
  162. package/dist/client/models/PropertyFormat.js +0 -2
  163. package/dist/client/models/PropertyFormatPage.d.ts +0 -19
  164. package/dist/client/models/PropertyFormatPage.js +0 -2
  165. package/dist/client/models/PropertyGroup.d.ts +0 -21
  166. package/dist/client/models/PropertyGroup.js +0 -2
  167. package/dist/client/models/PropertyGroupPage.d.ts +0 -19
  168. package/dist/client/models/PropertyGroupPage.js +0 -2
  169. package/dist/client/models/StringEnumerationSettings.d.ts +0 -10
  170. package/dist/client/models/StringEnumerationSettings.js +0 -2
  171. package/dist/client/models/StringEnumerationValue.d.ts +0 -13
  172. package/dist/client/models/StringEnumerationValue.js +0 -2
  173. package/dist/client/models/StringListItem.d.ts +0 -20
  174. package/dist/client/models/StringListItem.js +0 -2
  175. package/dist/client/models/StringProperty.d.ts +0 -20
  176. package/dist/client/models/StringProperty.js +0 -2
  177. package/dist/client/models/UrlListItem.d.ts +0 -5
  178. package/dist/client/models/UrlListItem.js +0 -2
  179. package/dist/client/models/UrlProperty.d.ts +0 -5
  180. package/dist/client/models/UrlProperty.js +0 -2
  181. package/dist/client/models/VersionStatus.d.ts +0 -12
  182. package/dist/client/models/VersionStatus.js +0 -20
  183. package/dist/client/services/ChangesetsService.d.ts +0 -105
  184. package/dist/client/services/ChangesetsService.js +0 -239
  185. package/dist/client/services/ContentService.d.ts +0 -172
  186. package/dist/client/services/ContentService.js +0 -409
  187. package/dist/client/services/ContentTypesService.d.ts +0 -66
  188. package/dist/client/services/ContentTypesService.js +0 -149
  189. package/dist/client/services/DisplayTemplatesService.d.ts +0 -60
  190. package/dist/client/services/DisplayTemplatesService.js +0 -135
  191. package/dist/client/services/OauthService.d.ts +0 -17
  192. package/dist/client/services/OauthService.js +0 -28
  193. package/dist/client/services/PropertyFormatsService.d.ts +0 -26
  194. package/dist/client/services/PropertyFormatsService.js +0 -53
  195. package/dist/client/services/PropertyGroupsService.d.ts +0 -61
  196. package/dist/client/services/PropertyGroupsService.js +0 -135
  197. /package/dist/client/{core/ApiRequestOptions.js → client/types.js} +0 -0
  198. /package/dist/client/core/{ApiResult.js → types.js} +0 -0
@@ -1,135 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DisplayTemplatesService = void 0;
4
- class DisplayTemplatesService {
5
- constructor(httpRequest) {
6
- this.httpRequest = httpRequest;
7
- }
8
- /**
9
- * List display templates
10
- * List display templates using the provided options.
11
- * @param pageIndex
12
- * @param pageSize
13
- * @returns DisplayTemplatePage OK
14
- * @throws ApiError
15
- */
16
- displayTemplatesList(pageIndex, pageSize) {
17
- return this.httpRequest.request({
18
- method: 'GET',
19
- url: '/displaytemplates',
20
- query: {
21
- 'pageIndex': pageIndex,
22
- 'pageSize': pageSize,
23
- },
24
- errors: {
25
- 403: `Forbidden`,
26
- },
27
- });
28
- }
29
- /**
30
- * Create display template
31
- * Create a new display template.
32
- * @param requestBody The display template that should be created.
33
- * @returns DisplayTemplate OK
34
- * @throws ApiError
35
- */
36
- displayTemplatesCreate(requestBody) {
37
- return this.httpRequest.request({
38
- method: 'POST',
39
- url: '/displaytemplates',
40
- body: requestBody,
41
- mediaType: 'application/json',
42
- errors: {
43
- 400: `Bad Request`,
44
- 403: `Forbidden`,
45
- },
46
- });
47
- }
48
- /**
49
- * Get display template
50
- * Get the display template with the provided key.
51
- * @param key The key of the display template to retrieve.
52
- * @returns DisplayTemplate OK
53
- * @throws ApiError
54
- */
55
- displayTemplatesGet(key) {
56
- return this.httpRequest.request({
57
- method: 'GET',
58
- url: '/displaytemplates/{key}',
59
- path: {
60
- 'key': key,
61
- },
62
- errors: {
63
- 403: `Forbidden`,
64
- },
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
- errors: {
86
- 400: `Bad Request`,
87
- 403: `Forbidden`,
88
- },
89
- });
90
- }
91
- /**
92
- * Update display template
93
- * Update an existing display template.
94
- * @param key The key of the display template to patch.
95
- * @param requestBody The values of the display template that should be updated.
96
- * @returns DisplayTemplate OK
97
- * @throws ApiError
98
- */
99
- displayTemplatesPatch(key, requestBody) {
100
- return this.httpRequest.request({
101
- method: 'PATCH',
102
- url: '/displaytemplates/{key}',
103
- path: {
104
- 'key': key,
105
- },
106
- body: requestBody,
107
- mediaType: 'application/merge-patch+json',
108
- errors: {
109
- 400: `Bad Request`,
110
- 403: `Forbidden`,
111
- },
112
- });
113
- }
114
- /**
115
- * Delete display template
116
- * Deletes the display template with the provided key.
117
- * @param key The key of the display template to delete.
118
- * @returns DisplayTemplate OK
119
- * @throws ApiError
120
- */
121
- displayTemplatesDelete(key) {
122
- return this.httpRequest.request({
123
- method: 'DELETE',
124
- url: '/displaytemplates/{key}',
125
- path: {
126
- 'key': key,
127
- },
128
- errors: {
129
- 400: `Bad Request`,
130
- 403: `Forbidden`,
131
- },
132
- });
133
- }
134
- }
135
- exports.DisplayTemplatesService = DisplayTemplatesService;
@@ -1,17 +0,0 @@
1
- import type { OauthToken } from '../models/OauthToken';
2
- import type { OauthTokenRequest } from '../models/OauthTokenRequest';
3
- import type { CancelablePromise } from '../core/CancelablePromise';
4
- import type { BaseHttpRequest } from '../core/BaseHttpRequest';
5
- export declare class OauthService {
6
- readonly httpRequest: BaseHttpRequest;
7
- constructor(httpRequest: BaseHttpRequest);
8
- /**
9
- * Request access token
10
- * Request an access token. This endpoint only supports the 'client_credentials' grant type
11
- * and will only issue short-lived tokens.
12
- * @param requestBody
13
- * @returns OauthToken OK
14
- * @throws ApiError
15
- */
16
- oauthToken(requestBody: OauthTokenRequest): CancelablePromise<OauthToken>;
17
- }
@@ -1,28 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OauthService = void 0;
4
- class OauthService {
5
- constructor(httpRequest) {
6
- this.httpRequest = httpRequest;
7
- }
8
- /**
9
- * Request access token
10
- * Request an access token. This endpoint only supports the 'client_credentials' grant type
11
- * and will only issue short-lived tokens.
12
- * @param requestBody
13
- * @returns OauthToken OK
14
- * @throws ApiError
15
- */
16
- oauthToken(requestBody) {
17
- return this.httpRequest.request({
18
- method: 'POST',
19
- url: '/oauth/token',
20
- body: requestBody,
21
- mediaType: 'application/json',
22
- errors: {
23
- 400: `Bad Request`,
24
- },
25
- });
26
- }
27
- }
28
- exports.OauthService = OauthService;
@@ -1,26 +0,0 @@
1
- import type { PropertyFormat } from '../models/PropertyFormat';
2
- import type { PropertyFormatPage } from '../models/PropertyFormatPage';
3
- import type { CancelablePromise } from '../core/CancelablePromise';
4
- import type { BaseHttpRequest } from '../core/BaseHttpRequest';
5
- export declare class PropertyFormatsService {
6
- readonly httpRequest: BaseHttpRequest;
7
- constructor(httpRequest: BaseHttpRequest);
8
- /**
9
- * List property formats
10
- * List all property formats using the provided options.
11
- * @param pageIndex
12
- * @param pageSize
13
- * @returns PropertyFormatPage OK
14
- * @throws ApiError
15
- */
16
- propertyFormatsList(pageIndex?: number, pageSize?: number): CancelablePromise<PropertyFormatPage>;
17
- /**
18
- * Get property format
19
- * Get the property format with the provided key.
20
- * @param key The key of the property format to retrieve.
21
- * @param allowDeleted Indicates that a deleted property format may be returned.
22
- * @returns PropertyFormat OK
23
- * @throws ApiError
24
- */
25
- propertyFormatsGet(key: string, allowDeleted?: boolean): CancelablePromise<PropertyFormat>;
26
- }
@@ -1,53 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PropertyFormatsService = void 0;
4
- class PropertyFormatsService {
5
- constructor(httpRequest) {
6
- this.httpRequest = httpRequest;
7
- }
8
- /**
9
- * List property formats
10
- * List all property formats using the provided options.
11
- * @param pageIndex
12
- * @param pageSize
13
- * @returns PropertyFormatPage OK
14
- * @throws ApiError
15
- */
16
- propertyFormatsList(pageIndex, pageSize) {
17
- return this.httpRequest.request({
18
- method: 'GET',
19
- url: '/propertyformats',
20
- query: {
21
- 'pageIndex': pageIndex,
22
- 'pageSize': pageSize,
23
- },
24
- errors: {
25
- 403: `Forbidden`,
26
- },
27
- });
28
- }
29
- /**
30
- * Get property format
31
- * Get the property format with the provided key.
32
- * @param key The key of the property format to retrieve.
33
- * @param allowDeleted Indicates that a deleted property format may be returned.
34
- * @returns PropertyFormat OK
35
- * @throws ApiError
36
- */
37
- propertyFormatsGet(key, allowDeleted) {
38
- return this.httpRequest.request({
39
- method: 'GET',
40
- url: '/propertyformats/{key}',
41
- path: {
42
- 'key': key,
43
- },
44
- query: {
45
- 'allowDeleted': allowDeleted,
46
- },
47
- errors: {
48
- 403: `Forbidden`,
49
- },
50
- });
51
- }
52
- }
53
- exports.PropertyFormatsService = PropertyFormatsService;
@@ -1,61 +0,0 @@
1
- import type { PropertyGroup } from '../models/PropertyGroup';
2
- import type { PropertyGroupPage } from '../models/PropertyGroupPage';
3
- import type { CancelablePromise } from '../core/CancelablePromise';
4
- import type { BaseHttpRequest } from '../core/BaseHttpRequest';
5
- export declare class PropertyGroupsService {
6
- readonly httpRequest: BaseHttpRequest;
7
- constructor(httpRequest: BaseHttpRequest);
8
- /**
9
- * List property groups
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.
14
- * @returns PropertyGroupPage OK
15
- * @throws ApiError
16
- */
17
- propertyGroupsList(sources?: Array<string>): CancelablePromise<PropertyGroupPage>;
18
- /**
19
- * Create property group
20
- * Create a new property group.
21
- * @param requestBody The property group that should be created.
22
- * @returns PropertyGroup OK
23
- * @throws ApiError
24
- */
25
- propertyGroupsCreate(requestBody: PropertyGroup): CancelablePromise<PropertyGroup>;
26
- /**
27
- * Get property group
28
- * Get the property group with the provided key.
29
- * @param key The key of the property group to retrieve.
30
- * @returns PropertyGroup OK
31
- * @throws ApiError
32
- */
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>;
44
- /**
45
- * Update property group
46
- * Update an existing property group.
47
- * @param key The key of the property group to patch.
48
- * @param requestBody The values of the property group that should be updated.
49
- * @returns PropertyGroup OK
50
- * @throws ApiError
51
- */
52
- propertyGroupsPatch(key: string, requestBody: PropertyGroup): CancelablePromise<PropertyGroup>;
53
- /**
54
- * Delete property group
55
- * Deletes the property group with the provided key.
56
- * @param key The key of the property group to delete.
57
- * @returns PropertyGroup OK
58
- * @throws ApiError
59
- */
60
- propertyGroupsDelete(key: string): CancelablePromise<PropertyGroup>;
61
- }
@@ -1,135 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PropertyGroupsService = void 0;
4
- class PropertyGroupsService {
5
- constructor(httpRequest) {
6
- this.httpRequest = httpRequest;
7
- }
8
- /**
9
- * List property groups
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.
14
- * @returns PropertyGroupPage OK
15
- * @throws ApiError
16
- */
17
- propertyGroupsList(sources) {
18
- return this.httpRequest.request({
19
- method: 'GET',
20
- url: '/propertygroups',
21
- query: {
22
- 'sources': sources,
23
- },
24
- errors: {
25
- 403: `Forbidden`,
26
- },
27
- });
28
- }
29
- /**
30
- * Create property group
31
- * Create a new property group.
32
- * @param requestBody The property group that should be created.
33
- * @returns PropertyGroup OK
34
- * @throws ApiError
35
- */
36
- propertyGroupsCreate(requestBody) {
37
- return this.httpRequest.request({
38
- method: 'POST',
39
- url: '/propertygroups',
40
- body: requestBody,
41
- mediaType: 'application/json',
42
- errors: {
43
- 400: `Bad Request`,
44
- 403: `Forbidden`,
45
- },
46
- });
47
- }
48
- /**
49
- * Get property group
50
- * Get the property group with the provided key.
51
- * @param key The key of the property group to retrieve.
52
- * @returns PropertyGroup OK
53
- * @throws ApiError
54
- */
55
- propertyGroupsGet(key) {
56
- return this.httpRequest.request({
57
- method: 'GET',
58
- url: '/propertygroups/{key}',
59
- path: {
60
- 'key': key,
61
- },
62
- errors: {
63
- 403: `Forbidden`,
64
- },
65
- });
66
- }
67
- /**
68
- * Create or replace property group
69
- * Create or replace a property group. If a property group with the provided key exist it is replaced.
70
- * Otherwise a new property group is created.
71
- * @param key The key of the property group to update or create.
72
- * @param requestBody The values of the created or replaced property group.
73
- * @returns PropertyGroup OK
74
- * @throws ApiError
75
- */
76
- propertyGroupsPut(key, requestBody) {
77
- return this.httpRequest.request({
78
- method: 'PUT',
79
- url: '/propertygroups/{key}',
80
- path: {
81
- 'key': key,
82
- },
83
- body: requestBody,
84
- mediaType: 'application/json',
85
- errors: {
86
- 400: `Bad Request`,
87
- 403: `Forbidden`,
88
- },
89
- });
90
- }
91
- /**
92
- * Update property group
93
- * Update an existing property group.
94
- * @param key The key of the property group to patch.
95
- * @param requestBody The values of the property group that should be updated.
96
- * @returns PropertyGroup OK
97
- * @throws ApiError
98
- */
99
- propertyGroupsPatch(key, requestBody) {
100
- return this.httpRequest.request({
101
- method: 'PATCH',
102
- url: '/propertygroups/{key}',
103
- path: {
104
- 'key': key,
105
- },
106
- body: requestBody,
107
- mediaType: 'application/merge-patch+json',
108
- errors: {
109
- 400: `Bad Request`,
110
- 403: `Forbidden`,
111
- },
112
- });
113
- }
114
- /**
115
- * Delete property group
116
- * Deletes the property group with the provided key.
117
- * @param key The key of the property group to delete.
118
- * @returns PropertyGroup OK
119
- * @throws ApiError
120
- */
121
- propertyGroupsDelete(key) {
122
- return this.httpRequest.request({
123
- method: 'DELETE',
124
- url: '/propertygroups/{key}',
125
- path: {
126
- 'key': key,
127
- },
128
- errors: {
129
- 400: `Bad Request`,
130
- 403: `Forbidden`,
131
- },
132
- });
133
- }
134
- }
135
- exports.PropertyGroupsService = PropertyGroupsService;
File without changes