@digital8/lighting-illusions-ts-sdk 0.0.488 → 0.0.490

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 (128) hide show
  1. package/.openapi-generator/FILES +8 -22
  2. package/README.md +10 -15
  3. package/dist/apis/DocumentApi.d.ts +24 -1
  4. package/dist/apis/DocumentApi.js +96 -2
  5. package/dist/models/DescriptionResource.d.ts +50 -0
  6. package/dist/models/DescriptionResource.js +63 -0
  7. package/dist/models/DescriptionResourceArrayResponse.d.ts +33 -0
  8. package/dist/models/DescriptionResourceArrayResponse.js +50 -0
  9. package/dist/models/GetAllDocumentRequest.d.ts +26 -0
  10. package/dist/models/GetAllDocumentRequest.js +14 -1
  11. package/dist/models/GetAllProductChildRequest.d.ts +1 -0
  12. package/dist/models/GetAllProductChildRequest.js +2 -1
  13. package/dist/models/IndexDocumentRequest.d.ts +26 -0
  14. package/dist/models/IndexDocumentRequest.js +14 -1
  15. package/dist/models/IndexExternalApiLogRequest.d.ts +0 -6
  16. package/dist/models/IndexExternalApiLogRequest.js +0 -2
  17. package/dist/models/IndexProductChildRequest.d.ts +1 -0
  18. package/dist/models/IndexProductChildRequest.js +1 -0
  19. package/dist/models/ProductChildSiteDetailResource.d.ts +2 -8
  20. package/dist/models/ProductChildSiteDetailResource.js +4 -4
  21. package/dist/models/SEOResource.d.ts +2 -20
  22. package/dist/models/SEOResource.js +8 -20
  23. package/dist/models/StoreProductChildRequestSitesInner.d.ts +3 -15
  24. package/dist/models/StoreProductChildRequestSitesInner.js +7 -9
  25. package/dist/models/StoreSupplierRequest.d.ts +7 -0
  26. package/dist/models/StoreSupplierRequest.js +5 -0
  27. package/dist/models/StoreSupplierRequestDescriptionsInner.d.ts +44 -0
  28. package/dist/models/StoreSupplierRequestDescriptionsInner.js +55 -0
  29. package/dist/models/StoreSupplierRequestSeoInner.d.ts +2 -20
  30. package/dist/models/StoreSupplierRequestSeoInner.js +4 -10
  31. package/dist/models/StoreTagRequest.d.ts +3 -9
  32. package/dist/models/StoreTagRequest.js +6 -8
  33. package/dist/models/SupplierFrontendResource.d.ts +7 -0
  34. package/dist/models/SupplierFrontendResource.js +5 -0
  35. package/dist/models/SupplierResource.d.ts +7 -0
  36. package/dist/models/SupplierResource.js +5 -0
  37. package/dist/models/TagResource.d.ts +7 -0
  38. package/dist/models/TagResource.js +5 -0
  39. package/dist/models/UpdateDocumentRequest.d.ts +44 -0
  40. package/dist/models/UpdateDocumentRequest.js +57 -0
  41. package/dist/models/UpdateSupplierRequest.d.ts +7 -0
  42. package/dist/models/UpdateSupplierRequest.js +5 -0
  43. package/dist/models/UpdateTagRequest.d.ts +3 -9
  44. package/dist/models/UpdateTagRequest.js +6 -8
  45. package/dist/models/index.d.ts +4 -11
  46. package/dist/models/index.js +4 -11
  47. package/docs/{ProductAggregationResourceArrayResponse.md → DescriptionResource.md} +12 -6
  48. package/docs/{ProductRating.md → DescriptionResourceArrayResponse.md} +6 -4
  49. package/docs/DocumentApi.md +137 -2
  50. package/docs/GetAllDocumentRequest.md +6 -0
  51. package/docs/IndexDocumentRequest.md +6 -0
  52. package/docs/IndexExternalApiLogRequest.md +0 -2
  53. package/docs/ProductChildSiteDetailResource.md +2 -4
  54. package/docs/SEOResource.md +4 -10
  55. package/docs/StoreProductChildRequestSitesInner.md +4 -8
  56. package/docs/StoreSupplierRequest.md +2 -0
  57. package/docs/{ProductSearchResponseResourceMeta.md → StoreSupplierRequestDescriptionsInner.md} +10 -12
  58. package/docs/StoreSupplierRequestSeoInner.md +4 -10
  59. package/docs/StoreTagRequest.md +6 -8
  60. package/docs/SupplierFrontendResource.md +2 -0
  61. package/docs/SupplierResource.md +2 -0
  62. package/docs/TagResource.md +2 -0
  63. package/docs/{ProductSortBy.md → UpdateDocumentRequest.md} +10 -4
  64. package/docs/UpdateSupplierRequest.md +2 -0
  65. package/docs/UpdateTagRequest.md +6 -8
  66. package/package.json +1 -1
  67. package/src/apis/DocumentApi.ts +91 -2
  68. package/src/models/DescriptionResource.ts +93 -0
  69. package/src/models/DescriptionResourceArrayResponse.ts +73 -0
  70. package/src/models/GetAllDocumentRequest.ts +33 -0
  71. package/src/models/GetAllProductChildRequest.ts +2 -1
  72. package/src/models/IndexDocumentRequest.ts +33 -0
  73. package/src/models/IndexExternalApiLogRequest.ts +0 -8
  74. package/src/models/IndexProductChildRequest.ts +1 -0
  75. package/src/models/ProductChildSiteDetailResource.ts +5 -12
  76. package/src/models/SEOResource.ts +10 -37
  77. package/src/models/StoreProductChildRequestSitesInner.ts +9 -24
  78. package/src/models/StoreSupplierRequest.ts +16 -0
  79. package/src/models/StoreSupplierRequestDescriptionsInner.ts +82 -0
  80. package/src/models/StoreSupplierRequestSeoInner.ts +6 -30
  81. package/src/models/StoreTagRequest.ts +9 -17
  82. package/src/models/SupplierFrontendResource.ts +16 -0
  83. package/src/models/SupplierResource.ts +16 -0
  84. package/src/models/TagResource.ts +16 -0
  85. package/src/models/UpdateDocumentRequest.ts +83 -0
  86. package/src/models/UpdateSupplierRequest.ts +16 -0
  87. package/src/models/UpdateTagRequest.ts +9 -17
  88. package/src/models/index.ts +4 -11
  89. package/dist/models/PaginatedProductSearchResultResourceResponse.d.ts +0 -40
  90. package/dist/models/PaginatedProductSearchResultResourceResponse.js +0 -57
  91. package/dist/models/ProductAggregationResource.d.ts +0 -50
  92. package/dist/models/ProductAggregationResource.js +0 -63
  93. package/dist/models/ProductAggregationResourceArrayResponse.d.ts +0 -33
  94. package/dist/models/ProductAggregationResourceArrayResponse.js +0 -50
  95. package/dist/models/ProductRating.d.ts +0 -26
  96. package/dist/models/ProductRating.js +0 -52
  97. package/dist/models/ProductSearchResponseResource.d.ts +0 -54
  98. package/dist/models/ProductSearchResponseResource.js +0 -67
  99. package/dist/models/ProductSearchResponseResourceArrayResponse.d.ts +0 -33
  100. package/dist/models/ProductSearchResponseResourceArrayResponse.js +0 -50
  101. package/dist/models/ProductSearchResponseResourceMeta.d.ts +0 -50
  102. package/dist/models/ProductSearchResponseResourceMeta.js +0 -63
  103. package/dist/models/ProductSearchResponseResourcePriceInfo.d.ts +0 -50
  104. package/dist/models/ProductSearchResponseResourcePriceInfo.js +0 -63
  105. package/dist/models/ProductSearchResultResource.d.ts +0 -116
  106. package/dist/models/ProductSearchResultResource.js +0 -105
  107. package/dist/models/ProductSearchResultResourceArrayResponse.d.ts +0 -33
  108. package/dist/models/ProductSearchResultResourceArrayResponse.js +0 -50
  109. package/dist/models/ProductSortBy.d.ts +0 -32
  110. package/dist/models/ProductSortBy.js +0 -58
  111. package/docs/PaginatedProductSearchResultResourceResponse.md +0 -36
  112. package/docs/ProductAggregationResource.md +0 -40
  113. package/docs/ProductSearchResponseResource.md +0 -40
  114. package/docs/ProductSearchResponseResourceArrayResponse.md +0 -34
  115. package/docs/ProductSearchResponseResourcePriceInfo.md +0 -40
  116. package/docs/ProductSearchResultResource.md +0 -62
  117. package/docs/ProductSearchResultResourceArrayResponse.md +0 -34
  118. package/src/models/PaginatedProductSearchResultResourceResponse.ts +0 -90
  119. package/src/models/ProductAggregationResource.ts +0 -93
  120. package/src/models/ProductAggregationResourceArrayResponse.ts +0 -73
  121. package/src/models/ProductRating.ts +0 -54
  122. package/src/models/ProductSearchResponseResource.ts +0 -122
  123. package/src/models/ProductSearchResponseResourceArrayResponse.ts +0 -73
  124. package/src/models/ProductSearchResponseResourceMeta.ts +0 -93
  125. package/src/models/ProductSearchResponseResourcePriceInfo.ts +0 -93
  126. package/src/models/ProductSearchResultResource.ts +0 -191
  127. package/src/models/ProductSearchResultResourceArrayResponse.ts +0 -73
  128. package/src/models/ProductSortBy.ts +0 -60
@@ -26,6 +26,7 @@ import type {
26
26
  PaginatedDocumentResourceResponse,
27
27
  StoreDocumentFileRequest,
28
28
  StoreDocumentRequest,
29
+ UpdateDocumentRequest,
29
30
  } from '../models/index';
30
31
  import {
31
32
  AttachDocumentablesDocumentRequestFromJSON,
@@ -50,6 +51,8 @@ import {
50
51
  StoreDocumentFileRequestToJSON,
51
52
  StoreDocumentRequestFromJSON,
52
53
  StoreDocumentRequestToJSON,
54
+ UpdateDocumentRequestFromJSON,
55
+ UpdateDocumentRequestToJSON,
53
56
  } from '../models/index';
54
57
 
55
58
  export interface AttachDocumentablesDocumentOperationRequest {
@@ -74,6 +77,10 @@ export interface IndexDocumentOperationRequest {
74
77
  indexDocumentRequest?: IndexDocumentRequest;
75
78
  }
76
79
 
80
+ export interface ShowDocumentRequest {
81
+ document: number;
82
+ }
83
+
77
84
  export interface StoreDocumentOperationRequest {
78
85
  storeDocumentRequest?: StoreDocumentRequest;
79
86
  }
@@ -82,6 +89,11 @@ export interface StoreDocumentFileOperationRequest {
82
89
  storeDocumentFileRequest?: StoreDocumentFileRequest;
83
90
  }
84
91
 
92
+ export interface UpdateDocumentOperationRequest {
93
+ document: number;
94
+ updateDocumentRequest?: UpdateDocumentRequest;
95
+ }
96
+
85
97
  /**
86
98
  *
87
99
  */
@@ -143,7 +155,7 @@ export class DocumentApi extends runtime.BaseAPI {
143
155
  const headerParameters: runtime.HTTPHeaders = {};
144
156
 
145
157
 
146
- let urlPath = `/admin-api/document/{document}`;
158
+ let urlPath = `/admin-api/document/{document}/delete`;
147
159
  urlPath = urlPath.replace(`{${"document"}}`, encodeURIComponent(String(requestParameters['document'])));
148
160
 
149
161
  const response = await this.request({
@@ -268,6 +280,43 @@ export class DocumentApi extends runtime.BaseAPI {
268
280
  return await response.value();
269
281
  }
270
282
 
283
+ /**
284
+ * Auto-generated: showDocument
285
+ */
286
+ async showDocumentRaw(requestParameters: ShowDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DocumentResource>> {
287
+ if (requestParameters['document'] == null) {
288
+ throw new runtime.RequiredError(
289
+ 'document',
290
+ 'Required parameter "document" was null or undefined when calling showDocument().'
291
+ );
292
+ }
293
+
294
+ const queryParameters: any = {};
295
+
296
+ const headerParameters: runtime.HTTPHeaders = {};
297
+
298
+
299
+ let urlPath = `/admin-api/document/{document}`;
300
+ urlPath = urlPath.replace(`{${"document"}}`, encodeURIComponent(String(requestParameters['document'])));
301
+
302
+ const response = await this.request({
303
+ path: urlPath,
304
+ method: 'GET',
305
+ headers: headerParameters,
306
+ query: queryParameters,
307
+ }, initOverrides);
308
+
309
+ return new runtime.JSONApiResponse(response, (jsonValue) => DocumentResourceFromJSON(jsonValue));
310
+ }
311
+
312
+ /**
313
+ * Auto-generated: showDocument
314
+ */
315
+ async showDocument(requestParameters: ShowDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DocumentResource> {
316
+ const response = await this.showDocumentRaw(requestParameters, initOverrides);
317
+ return await response.value();
318
+ }
319
+
271
320
  /**
272
321
  * Auto-generated: storeDocument
273
322
  */
@@ -279,7 +328,7 @@ export class DocumentApi extends runtime.BaseAPI {
279
328
  headerParameters['Content-Type'] = 'application/json';
280
329
 
281
330
 
282
- let urlPath = `/admin-api/document`;
331
+ let urlPath = `/admin-api/document/create`;
283
332
 
284
333
  const response = await this.request({
285
334
  path: urlPath,
@@ -332,4 +381,44 @@ export class DocumentApi extends runtime.BaseAPI {
332
381
  return await response.value();
333
382
  }
334
383
 
384
+ /**
385
+ * Auto-generated: updateDocument
386
+ */
387
+ async updateDocumentRaw(requestParameters: UpdateDocumentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DocumentResource>> {
388
+ if (requestParameters['document'] == null) {
389
+ throw new runtime.RequiredError(
390
+ 'document',
391
+ 'Required parameter "document" was null or undefined when calling updateDocument().'
392
+ );
393
+ }
394
+
395
+ const queryParameters: any = {};
396
+
397
+ const headerParameters: runtime.HTTPHeaders = {};
398
+
399
+ headerParameters['Content-Type'] = 'application/json';
400
+
401
+
402
+ let urlPath = `/admin-api/document/{document}/update`;
403
+ urlPath = urlPath.replace(`{${"document"}}`, encodeURIComponent(String(requestParameters['document'])));
404
+
405
+ const response = await this.request({
406
+ path: urlPath,
407
+ method: 'PUT',
408
+ headers: headerParameters,
409
+ query: queryParameters,
410
+ body: UpdateDocumentRequestToJSON(requestParameters['updateDocumentRequest']),
411
+ }, initOverrides);
412
+
413
+ return new runtime.JSONApiResponse(response, (jsonValue) => DocumentResourceFromJSON(jsonValue));
414
+ }
415
+
416
+ /**
417
+ * Auto-generated: updateDocument
418
+ */
419
+ async updateDocument(requestParameters: UpdateDocumentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DocumentResource> {
420
+ const response = await this.updateDocumentRaw(requestParameters, initOverrides);
421
+ return await response.value();
422
+ }
423
+
335
424
  }
@@ -0,0 +1,93 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface DescriptionResource
20
+ */
21
+ export interface DescriptionResource {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof DescriptionResource
26
+ */
27
+ id: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof DescriptionResource
32
+ */
33
+ headerDescription: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof DescriptionResource
38
+ */
39
+ footerDescription: string;
40
+ /**
41
+ *
42
+ * @type {number}
43
+ * @memberof DescriptionResource
44
+ */
45
+ siteId: number;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the DescriptionResource interface.
50
+ */
51
+ export function instanceOfDescriptionResource(value: object): value is DescriptionResource {
52
+ if (!('id' in value) || value['id'] === undefined) return false;
53
+ if (!('headerDescription' in value) || value['headerDescription'] === undefined) return false;
54
+ if (!('footerDescription' in value) || value['footerDescription'] === undefined) return false;
55
+ if (!('siteId' in value) || value['siteId'] === undefined) return false;
56
+ return true;
57
+ }
58
+
59
+ export function DescriptionResourceFromJSON(json: any): DescriptionResource {
60
+ return DescriptionResourceFromJSONTyped(json, false);
61
+ }
62
+
63
+ export function DescriptionResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): DescriptionResource {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+
69
+ 'id': json['id'],
70
+ 'headerDescription': json['headerDescription'],
71
+ 'footerDescription': json['footerDescription'],
72
+ 'siteId': json['siteId'],
73
+ };
74
+ }
75
+
76
+ export function DescriptionResourceToJSON(json: any): DescriptionResource {
77
+ return DescriptionResourceToJSONTyped(json, false);
78
+ }
79
+
80
+ export function DescriptionResourceToJSONTyped(value?: DescriptionResource | null, ignoreDiscriminator: boolean = false): any {
81
+ if (value == null) {
82
+ return value;
83
+ }
84
+
85
+ return {
86
+
87
+ 'id': value['id'],
88
+ 'headerDescription': value['headerDescription'],
89
+ 'footerDescription': value['footerDescription'],
90
+ 'siteId': value['siteId'],
91
+ };
92
+ }
93
+
@@ -0,0 +1,73 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * My API
5
+ * API documentation for my Laravel app
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { DescriptionResource } from './DescriptionResource';
17
+ import {
18
+ DescriptionResourceFromJSON,
19
+ DescriptionResourceFromJSONTyped,
20
+ DescriptionResourceToJSON,
21
+ DescriptionResourceToJSONTyped,
22
+ } from './DescriptionResource';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface DescriptionResourceArrayResponse
28
+ */
29
+ export interface DescriptionResourceArrayResponse {
30
+ /**
31
+ *
32
+ * @type {Array<DescriptionResource>}
33
+ * @memberof DescriptionResourceArrayResponse
34
+ */
35
+ data?: Array<DescriptionResource>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the DescriptionResourceArrayResponse interface.
40
+ */
41
+ export function instanceOfDescriptionResourceArrayResponse(value: object): value is DescriptionResourceArrayResponse {
42
+ return true;
43
+ }
44
+
45
+ export function DescriptionResourceArrayResponseFromJSON(json: any): DescriptionResourceArrayResponse {
46
+ return DescriptionResourceArrayResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function DescriptionResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DescriptionResourceArrayResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(DescriptionResourceFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function DescriptionResourceArrayResponseToJSON(json: any): DescriptionResourceArrayResponse {
60
+ return DescriptionResourceArrayResponseToJSONTyped(json, false);
61
+ }
62
+
63
+ export function DescriptionResourceArrayResponseToJSONTyped(value?: DescriptionResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+
68
+ return {
69
+
70
+ 'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(DescriptionResourceToJSON)),
71
+ };
72
+ }
73
+
@@ -37,6 +37,24 @@ export interface GetAllDocumentRequest {
37
37
  * @memberof GetAllDocumentRequest
38
38
  */
39
39
  sortDirection?: GetAllDocumentRequestSortDirectionEnum;
40
+ /**
41
+ *
42
+ * @type {number}
43
+ * @memberof GetAllDocumentRequest
44
+ */
45
+ relatedId?: number;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof GetAllDocumentRequest
50
+ */
51
+ relatedType?: GetAllDocumentRequestRelatedTypeEnum;
52
+ /**
53
+ *
54
+ * @type {boolean}
55
+ * @memberof GetAllDocumentRequest
56
+ */
57
+ includesRelations?: boolean;
40
58
  }
41
59
 
42
60
 
@@ -60,6 +78,15 @@ export const GetAllDocumentRequestSortDirectionEnum = {
60
78
  } as const;
61
79
  export type GetAllDocumentRequestSortDirectionEnum = typeof GetAllDocumentRequestSortDirectionEnum[keyof typeof GetAllDocumentRequestSortDirectionEnum];
62
80
 
81
+ /**
82
+ * @export
83
+ */
84
+ export const GetAllDocumentRequestRelatedTypeEnum = {
85
+ ProductChild: 'productChild',
86
+ ProductRangeSite: 'productRangeSite'
87
+ } as const;
88
+ export type GetAllDocumentRequestRelatedTypeEnum = typeof GetAllDocumentRequestRelatedTypeEnum[keyof typeof GetAllDocumentRequestRelatedTypeEnum];
89
+
63
90
 
64
91
  /**
65
92
  * Check if a given object implements the GetAllDocumentRequest interface.
@@ -81,6 +108,9 @@ export function GetAllDocumentRequestFromJSONTyped(json: any, ignoreDiscriminato
81
108
  'search': json['search'] == null ? undefined : json['search'],
82
109
  'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
83
110
  'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
111
+ 'relatedId': json['related_id'] == null ? undefined : json['related_id'],
112
+ 'relatedType': json['related_type'] == null ? undefined : json['related_type'],
113
+ 'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
84
114
  };
85
115
  }
86
116
 
@@ -98,6 +128,9 @@ export function GetAllDocumentRequestToJSONTyped(value?: GetAllDocumentRequest |
98
128
  'search': value['search'],
99
129
  'sortBy': value['sortBy'],
100
130
  'sortDirection': value['sortDirection'],
131
+ 'related_id': value['relatedId'],
132
+ 'related_type': value['relatedType'],
133
+ 'includes_relations': value['includesRelations'],
101
134
  };
102
135
  }
103
136
 
@@ -123,7 +123,8 @@ export type GetAllProductChildRequestSortDirectionEnum = typeof GetAllProductChi
123
123
  export const GetAllProductChildRequestRelatedTypeEnum = {
124
124
  OverlayTemplate: 'overlayTemplate',
125
125
  Supplier: 'supplier',
126
- Tag: 'tag'
126
+ Tag: 'tag',
127
+ Document: 'document'
127
128
  } as const;
128
129
  export type GetAllProductChildRequestRelatedTypeEnum = typeof GetAllProductChildRequestRelatedTypeEnum[keyof typeof GetAllProductChildRequestRelatedTypeEnum];
129
130
 
@@ -49,6 +49,24 @@ export interface IndexDocumentRequest {
49
49
  * @memberof IndexDocumentRequest
50
50
  */
51
51
  page?: number;
52
+ /**
53
+ *
54
+ * @type {number}
55
+ * @memberof IndexDocumentRequest
56
+ */
57
+ relatedId?: number;
58
+ /**
59
+ *
60
+ * @type {string}
61
+ * @memberof IndexDocumentRequest
62
+ */
63
+ relatedType?: IndexDocumentRequestRelatedTypeEnum;
64
+ /**
65
+ *
66
+ * @type {boolean}
67
+ * @memberof IndexDocumentRequest
68
+ */
69
+ includesRelations?: boolean;
52
70
  }
53
71
 
54
72
 
@@ -72,6 +90,15 @@ export const IndexDocumentRequestSortDirectionEnum = {
72
90
  } as const;
73
91
  export type IndexDocumentRequestSortDirectionEnum = typeof IndexDocumentRequestSortDirectionEnum[keyof typeof IndexDocumentRequestSortDirectionEnum];
74
92
 
93
+ /**
94
+ * @export
95
+ */
96
+ export const IndexDocumentRequestRelatedTypeEnum = {
97
+ ProductChild: 'productChild',
98
+ ProductRangeSite: 'productRangeSite'
99
+ } as const;
100
+ export type IndexDocumentRequestRelatedTypeEnum = typeof IndexDocumentRequestRelatedTypeEnum[keyof typeof IndexDocumentRequestRelatedTypeEnum];
101
+
75
102
 
76
103
  /**
77
104
  * Check if a given object implements the IndexDocumentRequest interface.
@@ -95,6 +122,9 @@ export function IndexDocumentRequestFromJSONTyped(json: any, ignoreDiscriminator
95
122
  'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
96
123
  'perPage': json['per_page'] == null ? undefined : json['per_page'],
97
124
  'page': json['page'] == null ? undefined : json['page'],
125
+ 'relatedId': json['related_id'] == null ? undefined : json['related_id'],
126
+ 'relatedType': json['related_type'] == null ? undefined : json['related_type'],
127
+ 'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
98
128
  };
99
129
  }
100
130
 
@@ -114,6 +144,9 @@ export function IndexDocumentRequestToJSONTyped(value?: IndexDocumentRequest | n
114
144
  'sortDirection': value['sortDirection'],
115
145
  'per_page': value['perPage'],
116
146
  'page': value['page'],
147
+ 'related_id': value['relatedId'],
148
+ 'related_type': value['relatedType'],
149
+ 'includes_relations': value['includesRelations'],
117
150
  };
118
151
  }
119
152
 
@@ -85,12 +85,6 @@ export interface IndexExternalApiLogRequest {
85
85
  * @memberof IndexExternalApiLogRequest
86
86
  */
87
87
  siteId?: Array<string>;
88
- /**
89
- *
90
- * @type {Array<string>}
91
- * @memberof IndexExternalApiLogRequest
92
- */
93
- productChildId?: Array<string>;
94
88
  /**
95
89
  *
96
90
  * @type {number}
@@ -164,7 +158,6 @@ export function IndexExternalApiLogRequestFromJSONTyped(json: any, ignoreDiscrim
164
158
  'externalApiLoggableType': json['external_api_loggable_type'] == null ? undefined : json['external_api_loggable_type'],
165
159
  'externalApiLoggableId': json['external_api_loggable_id'] == null ? undefined : json['external_api_loggable_id'],
166
160
  'siteId': json['site_id'] == null ? undefined : json['site_id'],
167
- 'productChildId': json['product_child_id'] == null ? undefined : json['product_child_id'],
168
161
  'relatedId': json['related_id'] == null ? undefined : json['related_id'],
169
162
  'relatedType': json['related_type'] == null ? undefined : json['related_type'],
170
163
  'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
@@ -193,7 +186,6 @@ export function IndexExternalApiLogRequestToJSONTyped(value?: IndexExternalApiLo
193
186
  'external_api_loggable_type': value['externalApiLoggableType'],
194
187
  'external_api_loggable_id': value['externalApiLoggableId'],
195
188
  'site_id': value['siteId'],
196
- 'product_child_id': value['productChildId'],
197
189
  'related_id': value['relatedId'],
198
190
  'related_type': value['relatedType'],
199
191
  'includes_relations': value['includesRelations'],
@@ -136,6 +136,7 @@ export const IndexProductChildRequestRelatedTypeEnum = {
136
136
  OverlayTemplate: 'overlayTemplate',
137
137
  Supplier: 'supplier',
138
138
  Tag: 'tag',
139
+ Document: 'document',
139
140
  Attribute: 'attribute',
140
141
  AttributeValue: 'attributeValue'
141
142
  } as const;
@@ -96,16 +96,10 @@ export interface ProductChildSiteDetailResource {
96
96
  seo: SEOResource | null;
97
97
  /**
98
98
  *
99
- * @type {string}
100
- * @memberof ProductChildSiteDetailResource
101
- */
102
- omnisendId?: string | null;
103
- /**
104
- *
105
- * @type {string}
99
+ * @type {object}
106
100
  * @memberof ProductChildSiteDetailResource
107
101
  */
108
- omnisendSyncStatus?: string | null;
102
+ documents: object;
109
103
  }
110
104
 
111
105
  /**
@@ -122,6 +116,7 @@ export function instanceOfProductChildSiteDetailResource(value: object): value i
122
116
  if (!('salePrice' in value) || value['salePrice'] === undefined) return false;
123
117
  if (!('isDisabled' in value) || value['isDisabled'] === undefined) return false;
124
118
  if (!('seo' in value) || value['seo'] === undefined) return false;
119
+ if (!('documents' in value) || value['documents'] === undefined) return false;
125
120
  return true;
126
121
  }
127
122
 
@@ -145,8 +140,7 @@ export function ProductChildSiteDetailResourceFromJSONTyped(json: any, ignoreDis
145
140
  'salePrice': json['salePrice'],
146
141
  'isDisabled': json['isDisabled'],
147
142
  'seo': SEOResourceFromJSON(json['seo']),
148
- 'omnisendId': json['omnisendId'] == null ? undefined : json['omnisendId'],
149
- 'omnisendSyncStatus': json['omnisendSyncStatus'] == null ? undefined : json['omnisendSyncStatus'],
143
+ 'documents': json['documents'],
150
144
  };
151
145
  }
152
146
 
@@ -171,8 +165,7 @@ export function ProductChildSiteDetailResourceToJSONTyped(value?: ProductChildSi
171
165
  'salePrice': value['salePrice'],
172
166
  'isDisabled': value['isDisabled'],
173
167
  'seo': SEOResourceToJSON(value['seo']),
174
- 'omnisendId': value['omnisendId'],
175
- 'omnisendSyncStatus': value['omnisendSyncStatus'],
168
+ 'documents': value['documents'],
176
169
  };
177
170
  }
178
171
 
@@ -30,37 +30,19 @@ export interface SEOResource {
30
30
  * @type {string}
31
31
  * @memberof SEOResource
32
32
  */
33
- title: string;
33
+ seoTitle: string;
34
34
  /**
35
35
  *
36
36
  * @type {string}
37
37
  * @memberof SEOResource
38
38
  */
39
- description: string;
40
- /**
41
- *
42
- * @type {string}
43
- * @memberof SEOResource
44
- */
45
- keywords: string;
39
+ seoDescription: string;
46
40
  /**
47
41
  *
48
42
  * @type {number}
49
43
  * @memberof SEOResource
50
44
  */
51
45
  siteId: number;
52
- /**
53
- *
54
- * @type {string}
55
- * @memberof SEOResource
56
- */
57
- footerDescription: string;
58
- /**
59
- *
60
- * @type {string}
61
- * @memberof SEOResource
62
- */
63
- pageDescription: string;
64
46
  }
65
47
 
66
48
  /**
@@ -68,12 +50,9 @@ export interface SEOResource {
68
50
  */
69
51
  export function instanceOfSEOResource(value: object): value is SEOResource {
70
52
  if (!('id' in value) || value['id'] === undefined) return false;
71
- if (!('title' in value) || value['title'] === undefined) return false;
72
- if (!('description' in value) || value['description'] === undefined) return false;
73
- if (!('keywords' in value) || value['keywords'] === undefined) return false;
53
+ if (!('seoTitle' in value) || value['seoTitle'] === undefined) return false;
54
+ if (!('seoDescription' in value) || value['seoDescription'] === undefined) return false;
74
55
  if (!('siteId' in value) || value['siteId'] === undefined) return false;
75
- if (!('footerDescription' in value) || value['footerDescription'] === undefined) return false;
76
- if (!('pageDescription' in value) || value['pageDescription'] === undefined) return false;
77
56
  return true;
78
57
  }
79
58
 
@@ -88,12 +67,9 @@ export function SEOResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean
88
67
  return {
89
68
 
90
69
  'id': json['id'],
91
- 'title': json['title'],
92
- 'description': json['description'],
93
- 'keywords': json['keywords'],
94
- 'siteId': json['site_id'],
95
- 'footerDescription': json['footerDescription'],
96
- 'pageDescription': json['pageDescription'],
70
+ 'seoTitle': json['seoTitle'],
71
+ 'seoDescription': json['seoDescription'],
72
+ 'siteId': json['siteId'],
97
73
  };
98
74
  }
99
75
 
@@ -109,12 +85,9 @@ export function SEOResourceToJSONTyped(value?: SEOResource | null, ignoreDiscrim
109
85
  return {
110
86
 
111
87
  'id': value['id'],
112
- 'title': value['title'],
113
- 'description': value['description'],
114
- 'keywords': value['keywords'],
115
- 'site_id': value['siteId'],
116
- 'footerDescription': value['footerDescription'],
117
- 'pageDescription': value['pageDescription'],
88
+ 'seoTitle': value['seoTitle'],
89
+ 'seoDescription': value['seoDescription'],
90
+ 'siteId': value['siteId'],
118
91
  };
119
92
  }
120
93