@digital8/lighting-illusions-ts-sdk 0.0.487 → 0.0.488
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.
- package/.openapi-generator/FILES +22 -2
- package/README.md +15 -7
- package/dist/apis/DocumentApi.d.ts +1 -24
- package/dist/apis/DocumentApi.js +2 -96
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/GetAllDocumentRequest.d.ts +0 -26
- package/dist/models/GetAllDocumentRequest.js +1 -14
- package/dist/models/GetAllProductChildRequest.d.ts +0 -1
- package/dist/models/GetAllProductChildRequest.js +1 -2
- package/dist/models/IndexDocumentRequest.d.ts +0 -26
- package/dist/models/IndexDocumentRequest.js +1 -14
- package/dist/models/IndexExternalApiLogRequest.d.ts +6 -0
- package/dist/models/IndexExternalApiLogRequest.js +2 -0
- package/dist/models/IndexProductChildRequest.d.ts +0 -1
- package/dist/models/IndexProductChildRequest.js +0 -1
- package/dist/models/PaginatedProductSearchResultResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductSearchResultResourceResponse.js +57 -0
- package/dist/models/ProductAggregationResource.d.ts +50 -0
- package/dist/models/ProductAggregationResource.js +63 -0
- package/dist/models/ProductAggregationResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductAggregationResourceArrayResponse.js +50 -0
- package/dist/models/ProductChildSiteDetailResource.d.ts +8 -2
- package/dist/models/ProductChildSiteDetailResource.js +4 -4
- package/dist/models/ProductRating.d.ts +26 -0
- package/dist/models/ProductRating.js +52 -0
- package/dist/models/ProductSearchResponseResource.d.ts +54 -0
- package/dist/models/ProductSearchResponseResource.js +67 -0
- package/dist/models/ProductSearchResponseResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductSearchResponseResourceArrayResponse.js +50 -0
- package/dist/models/ProductSearchResponseResourceMeta.d.ts +50 -0
- package/dist/models/ProductSearchResponseResourceMeta.js +63 -0
- package/dist/models/ProductSearchResponseResourcePriceInfo.d.ts +50 -0
- package/dist/models/ProductSearchResponseResourcePriceInfo.js +63 -0
- package/dist/models/ProductSearchResultResource.d.ts +116 -0
- package/dist/models/ProductSearchResultResource.js +105 -0
- package/dist/models/ProductSearchResultResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductSearchResultResourceArrayResponse.js +50 -0
- package/dist/models/ProductSortBy.d.ts +32 -0
- package/dist/models/ProductSortBy.js +58 -0
- package/dist/models/index.d.ts +11 -1
- package/dist/models/index.js +11 -1
- package/docs/DocumentApi.md +2 -137
- package/docs/GetAllDocumentRequest.md +0 -6
- package/docs/IndexDocumentRequest.md +0 -6
- package/docs/IndexExternalApiLogRequest.md +2 -0
- package/docs/PaginatedProductSearchResultResourceResponse.md +36 -0
- package/docs/ProductAggregationResource.md +40 -0
- package/docs/ProductAggregationResourceArrayResponse.md +34 -0
- package/docs/ProductChildSiteDetailResource.md +4 -2
- package/docs/{UpdateDocumentRequest.md → ProductRating.md} +4 -10
- package/docs/ProductSearchResponseResource.md +40 -0
- package/docs/ProductSearchResponseResourceArrayResponse.md +34 -0
- package/docs/ProductSearchResponseResourceMeta.md +40 -0
- package/docs/ProductSearchResponseResourcePriceInfo.md +40 -0
- package/docs/ProductSearchResultResource.md +62 -0
- package/docs/ProductSearchResultResourceArrayResponse.md +34 -0
- package/docs/ProductSortBy.md +32 -0
- package/package.json +1 -1
- package/src/apis/DocumentApi.ts +2 -91
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/GetAllDocumentRequest.ts +0 -33
- package/src/models/GetAllProductChildRequest.ts +1 -2
- package/src/models/IndexDocumentRequest.ts +0 -33
- package/src/models/IndexExternalApiLogRequest.ts +8 -0
- package/src/models/IndexProductChildRequest.ts +0 -1
- package/src/models/PaginatedProductSearchResultResourceResponse.ts +90 -0
- package/src/models/ProductAggregationResource.ts +93 -0
- package/src/models/ProductAggregationResourceArrayResponse.ts +73 -0
- package/src/models/ProductChildSiteDetailResource.ts +12 -5
- package/src/models/ProductRating.ts +54 -0
- package/src/models/ProductSearchResponseResource.ts +122 -0
- package/src/models/ProductSearchResponseResourceArrayResponse.ts +73 -0
- package/src/models/ProductSearchResponseResourceMeta.ts +93 -0
- package/src/models/ProductSearchResponseResourcePriceInfo.ts +93 -0
- package/src/models/ProductSearchResultResource.ts +191 -0
- package/src/models/ProductSearchResultResourceArrayResponse.ts +73 -0
- package/src/models/ProductSortBy.ts +60 -0
- package/src/models/index.ts +11 -1
- package/dist/models/UpdateDocumentRequest.d.ts +0 -44
- package/dist/models/UpdateDocumentRequest.js +0 -57
- package/src/models/UpdateDocumentRequest.ts +0 -83
package/src/apis/DocumentApi.ts
CHANGED
|
@@ -26,7 +26,6 @@ import type {
|
|
|
26
26
|
PaginatedDocumentResourceResponse,
|
|
27
27
|
StoreDocumentFileRequest,
|
|
28
28
|
StoreDocumentRequest,
|
|
29
|
-
UpdateDocumentRequest,
|
|
30
29
|
} from '../models/index';
|
|
31
30
|
import {
|
|
32
31
|
AttachDocumentablesDocumentRequestFromJSON,
|
|
@@ -51,8 +50,6 @@ import {
|
|
|
51
50
|
StoreDocumentFileRequestToJSON,
|
|
52
51
|
StoreDocumentRequestFromJSON,
|
|
53
52
|
StoreDocumentRequestToJSON,
|
|
54
|
-
UpdateDocumentRequestFromJSON,
|
|
55
|
-
UpdateDocumentRequestToJSON,
|
|
56
53
|
} from '../models/index';
|
|
57
54
|
|
|
58
55
|
export interface AttachDocumentablesDocumentOperationRequest {
|
|
@@ -77,10 +74,6 @@ export interface IndexDocumentOperationRequest {
|
|
|
77
74
|
indexDocumentRequest?: IndexDocumentRequest;
|
|
78
75
|
}
|
|
79
76
|
|
|
80
|
-
export interface ShowDocumentRequest {
|
|
81
|
-
document: number;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
77
|
export interface StoreDocumentOperationRequest {
|
|
85
78
|
storeDocumentRequest?: StoreDocumentRequest;
|
|
86
79
|
}
|
|
@@ -89,11 +82,6 @@ export interface StoreDocumentFileOperationRequest {
|
|
|
89
82
|
storeDocumentFileRequest?: StoreDocumentFileRequest;
|
|
90
83
|
}
|
|
91
84
|
|
|
92
|
-
export interface UpdateDocumentOperationRequest {
|
|
93
|
-
document: number;
|
|
94
|
-
updateDocumentRequest?: UpdateDocumentRequest;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
85
|
/**
|
|
98
86
|
*
|
|
99
87
|
*/
|
|
@@ -155,7 +143,7 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
155
143
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
156
144
|
|
|
157
145
|
|
|
158
|
-
let urlPath = `/admin-api/document/{document}
|
|
146
|
+
let urlPath = `/admin-api/document/{document}`;
|
|
159
147
|
urlPath = urlPath.replace(`{${"document"}}`, encodeURIComponent(String(requestParameters['document'])));
|
|
160
148
|
|
|
161
149
|
const response = await this.request({
|
|
@@ -280,43 +268,6 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
280
268
|
return await response.value();
|
|
281
269
|
}
|
|
282
270
|
|
|
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
|
-
|
|
320
271
|
/**
|
|
321
272
|
* Auto-generated: storeDocument
|
|
322
273
|
*/
|
|
@@ -328,7 +279,7 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
328
279
|
headerParameters['Content-Type'] = 'application/json';
|
|
329
280
|
|
|
330
281
|
|
|
331
|
-
let urlPath = `/admin-api/document
|
|
282
|
+
let urlPath = `/admin-api/document`;
|
|
332
283
|
|
|
333
284
|
const response = await this.request({
|
|
334
285
|
path: urlPath,
|
|
@@ -381,44 +332,4 @@ export class DocumentApi extends runtime.BaseAPI {
|
|
|
381
332
|
return await response.value();
|
|
382
333
|
}
|
|
383
334
|
|
|
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
|
-
|
|
424
335
|
}
|
|
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
|
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof ExternalApiLogResource
|
|
76
76
|
*/
|
|
77
|
-
requestPayload
|
|
77
|
+
requestPayload?: string | null;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @type {string}
|
|
@@ -106,7 +106,6 @@ export function instanceOfExternalApiLogResource(value: object): value is Extern
|
|
|
106
106
|
if (!('exteranlApiLoggableId' in value) || value['exteranlApiLoggableId'] === undefined) return false;
|
|
107
107
|
if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
|
|
108
108
|
if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
|
|
109
|
-
if (!('requestPayload' in value) || value['requestPayload'] === undefined) return false;
|
|
110
109
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
|
|
111
110
|
if (!('site' in value) || value['site'] === undefined) return false;
|
|
112
111
|
return true;
|
|
@@ -129,7 +128,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
129
128
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
130
129
|
'endpoint': json['endpoint'],
|
|
131
130
|
'responseCode': json['responseCode'],
|
|
132
|
-
'requestPayload': json['requestPayload'],
|
|
131
|
+
'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
|
|
133
132
|
'responsePayload': json['responsePayload'],
|
|
134
133
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
135
134
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
@@ -37,24 +37,6 @@ 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;
|
|
58
40
|
}
|
|
59
41
|
|
|
60
42
|
|
|
@@ -78,15 +60,6 @@ export const GetAllDocumentRequestSortDirectionEnum = {
|
|
|
78
60
|
} as const;
|
|
79
61
|
export type GetAllDocumentRequestSortDirectionEnum = typeof GetAllDocumentRequestSortDirectionEnum[keyof typeof GetAllDocumentRequestSortDirectionEnum];
|
|
80
62
|
|
|
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
|
-
|
|
90
63
|
|
|
91
64
|
/**
|
|
92
65
|
* Check if a given object implements the GetAllDocumentRequest interface.
|
|
@@ -108,9 +81,6 @@ export function GetAllDocumentRequestFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
108
81
|
'search': json['search'] == null ? undefined : json['search'],
|
|
109
82
|
'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
|
|
110
83
|
'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'],
|
|
114
84
|
};
|
|
115
85
|
}
|
|
116
86
|
|
|
@@ -128,9 +98,6 @@ export function GetAllDocumentRequestToJSONTyped(value?: GetAllDocumentRequest |
|
|
|
128
98
|
'search': value['search'],
|
|
129
99
|
'sortBy': value['sortBy'],
|
|
130
100
|
'sortDirection': value['sortDirection'],
|
|
131
|
-
'related_id': value['relatedId'],
|
|
132
|
-
'related_type': value['relatedType'],
|
|
133
|
-
'includes_relations': value['includesRelations'],
|
|
134
101
|
};
|
|
135
102
|
}
|
|
136
103
|
|
|
@@ -123,8 +123,7 @@ export type GetAllProductChildRequestSortDirectionEnum = typeof GetAllProductChi
|
|
|
123
123
|
export const GetAllProductChildRequestRelatedTypeEnum = {
|
|
124
124
|
OverlayTemplate: 'overlayTemplate',
|
|
125
125
|
Supplier: 'supplier',
|
|
126
|
-
Tag: 'tag'
|
|
127
|
-
Document: 'document'
|
|
126
|
+
Tag: 'tag'
|
|
128
127
|
} as const;
|
|
129
128
|
export type GetAllProductChildRequestRelatedTypeEnum = typeof GetAllProductChildRequestRelatedTypeEnum[keyof typeof GetAllProductChildRequestRelatedTypeEnum];
|
|
130
129
|
|
|
@@ -49,24 +49,6 @@ 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;
|
|
70
52
|
}
|
|
71
53
|
|
|
72
54
|
|
|
@@ -90,15 +72,6 @@ export const IndexDocumentRequestSortDirectionEnum = {
|
|
|
90
72
|
} as const;
|
|
91
73
|
export type IndexDocumentRequestSortDirectionEnum = typeof IndexDocumentRequestSortDirectionEnum[keyof typeof IndexDocumentRequestSortDirectionEnum];
|
|
92
74
|
|
|
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
|
-
|
|
102
75
|
|
|
103
76
|
/**
|
|
104
77
|
* Check if a given object implements the IndexDocumentRequest interface.
|
|
@@ -122,9 +95,6 @@ export function IndexDocumentRequestFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
122
95
|
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
123
96
|
'perPage': json['per_page'] == null ? undefined : json['per_page'],
|
|
124
97
|
'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'],
|
|
128
98
|
};
|
|
129
99
|
}
|
|
130
100
|
|
|
@@ -144,9 +114,6 @@ export function IndexDocumentRequestToJSONTyped(value?: IndexDocumentRequest | n
|
|
|
144
114
|
'sortDirection': value['sortDirection'],
|
|
145
115
|
'per_page': value['perPage'],
|
|
146
116
|
'page': value['page'],
|
|
147
|
-
'related_id': value['relatedId'],
|
|
148
|
-
'related_type': value['relatedType'],
|
|
149
|
-
'includes_relations': value['includesRelations'],
|
|
150
117
|
};
|
|
151
118
|
}
|
|
152
119
|
|
|
@@ -85,6 +85,12 @@ 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>;
|
|
88
94
|
/**
|
|
89
95
|
*
|
|
90
96
|
* @type {number}
|
|
@@ -158,6 +164,7 @@ export function IndexExternalApiLogRequestFromJSONTyped(json: any, ignoreDiscrim
|
|
|
158
164
|
'externalApiLoggableType': json['external_api_loggable_type'] == null ? undefined : json['external_api_loggable_type'],
|
|
159
165
|
'externalApiLoggableId': json['external_api_loggable_id'] == null ? undefined : json['external_api_loggable_id'],
|
|
160
166
|
'siteId': json['site_id'] == null ? undefined : json['site_id'],
|
|
167
|
+
'productChildId': json['product_child_id'] == null ? undefined : json['product_child_id'],
|
|
161
168
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
162
169
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
163
170
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
@@ -186,6 +193,7 @@ export function IndexExternalApiLogRequestToJSONTyped(value?: IndexExternalApiLo
|
|
|
186
193
|
'external_api_loggable_type': value['externalApiLoggableType'],
|
|
187
194
|
'external_api_loggable_id': value['externalApiLoggableId'],
|
|
188
195
|
'site_id': value['siteId'],
|
|
196
|
+
'product_child_id': value['productChildId'],
|
|
189
197
|
'related_id': value['relatedId'],
|
|
190
198
|
'related_type': value['relatedType'],
|
|
191
199
|
'includes_relations': value['includesRelations'],
|
|
@@ -0,0 +1,90 @@
|
|
|
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 { PagingMetadata } from './PagingMetadata';
|
|
17
|
+
import {
|
|
18
|
+
PagingMetadataFromJSON,
|
|
19
|
+
PagingMetadataFromJSONTyped,
|
|
20
|
+
PagingMetadataToJSON,
|
|
21
|
+
PagingMetadataToJSONTyped,
|
|
22
|
+
} from './PagingMetadata';
|
|
23
|
+
import type { ProductSearchResultResource } from './ProductSearchResultResource';
|
|
24
|
+
import {
|
|
25
|
+
ProductSearchResultResourceFromJSON,
|
|
26
|
+
ProductSearchResultResourceFromJSONTyped,
|
|
27
|
+
ProductSearchResultResourceToJSON,
|
|
28
|
+
ProductSearchResultResourceToJSONTyped,
|
|
29
|
+
} from './ProductSearchResultResource';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PaginatedProductSearchResultResourceResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface PaginatedProductSearchResultResourceResponse {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<ProductSearchResultResource>}
|
|
40
|
+
* @memberof PaginatedProductSearchResultResourceResponse
|
|
41
|
+
*/
|
|
42
|
+
data: Array<ProductSearchResultResource>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {PagingMetadata}
|
|
46
|
+
* @memberof PaginatedProductSearchResultResourceResponse
|
|
47
|
+
*/
|
|
48
|
+
meta: PagingMetadata;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the PaginatedProductSearchResultResourceResponse interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfPaginatedProductSearchResultResourceResponse(value: object): value is PaginatedProductSearchResultResourceResponse {
|
|
55
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
56
|
+
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PaginatedProductSearchResultResourceResponseFromJSON(json: any): PaginatedProductSearchResultResourceResponse {
|
|
61
|
+
return PaginatedProductSearchResultResourceResponseFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PaginatedProductSearchResultResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedProductSearchResultResourceResponse {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': ((json['data'] as Array<any>).map(ProductSearchResultResourceFromJSON)),
|
|
71
|
+
'meta': PagingMetadataFromJSON(json['meta']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PaginatedProductSearchResultResourceResponseToJSON(json: any): PaginatedProductSearchResultResourceResponse {
|
|
76
|
+
return PaginatedProductSearchResultResourceResponseToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PaginatedProductSearchResultResourceResponseToJSONTyped(value?: PaginatedProductSearchResultResourceResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'data': ((value['data'] as Array<any>).map(ProductSearchResultResourceToJSON)),
|
|
87
|
+
'meta': PagingMetadataToJSON(value['meta']),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -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 ProductAggregationResource
|
|
20
|
+
*/
|
|
21
|
+
export interface ProductAggregationResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {Array<object>}
|
|
25
|
+
* @memberof ProductAggregationResource
|
|
26
|
+
*/
|
|
27
|
+
attributes: Array<object>;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {Array<object>}
|
|
31
|
+
* @memberof ProductAggregationResource
|
|
32
|
+
*/
|
|
33
|
+
priceRanges: Array<object>;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {Array<object>}
|
|
37
|
+
* @memberof ProductAggregationResource
|
|
38
|
+
*/
|
|
39
|
+
brands: Array<object>;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Array<object>}
|
|
43
|
+
* @memberof ProductAggregationResource
|
|
44
|
+
*/
|
|
45
|
+
ratings: Array<object>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the ProductAggregationResource interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfProductAggregationResource(value: object): value is ProductAggregationResource {
|
|
52
|
+
if (!('attributes' in value) || value['attributes'] === undefined) return false;
|
|
53
|
+
if (!('priceRanges' in value) || value['priceRanges'] === undefined) return false;
|
|
54
|
+
if (!('brands' in value) || value['brands'] === undefined) return false;
|
|
55
|
+
if (!('ratings' in value) || value['ratings'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ProductAggregationResourceFromJSON(json: any): ProductAggregationResource {
|
|
60
|
+
return ProductAggregationResourceFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ProductAggregationResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductAggregationResource {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'attributes': json['attributes'],
|
|
70
|
+
'priceRanges': json['priceRanges'],
|
|
71
|
+
'brands': json['brands'],
|
|
72
|
+
'ratings': json['ratings'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function ProductAggregationResourceToJSON(json: any): ProductAggregationResource {
|
|
77
|
+
return ProductAggregationResourceToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function ProductAggregationResourceToJSONTyped(value?: ProductAggregationResource | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'attributes': value['attributes'],
|
|
88
|
+
'priceRanges': value['priceRanges'],
|
|
89
|
+
'brands': value['brands'],
|
|
90
|
+
'ratings': value['ratings'],
|
|
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 { ProductAggregationResource } from './ProductAggregationResource';
|
|
17
|
+
import {
|
|
18
|
+
ProductAggregationResourceFromJSON,
|
|
19
|
+
ProductAggregationResourceFromJSONTyped,
|
|
20
|
+
ProductAggregationResourceToJSON,
|
|
21
|
+
ProductAggregationResourceToJSONTyped,
|
|
22
|
+
} from './ProductAggregationResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ProductAggregationResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface ProductAggregationResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<ProductAggregationResource>}
|
|
33
|
+
* @memberof ProductAggregationResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<ProductAggregationResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ProductAggregationResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfProductAggregationResourceArrayResponse(value: object): value is ProductAggregationResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ProductAggregationResourceArrayResponseFromJSON(json: any): ProductAggregationResourceArrayResponse {
|
|
46
|
+
return ProductAggregationResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ProductAggregationResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductAggregationResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(ProductAggregationResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ProductAggregationResourceArrayResponseToJSON(json: any): ProductAggregationResourceArrayResponse {
|
|
60
|
+
return ProductAggregationResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ProductAggregationResourceArrayResponseToJSONTyped(value?: ProductAggregationResourceArrayResponse | 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(ProductAggregationResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -96,10 +96,16 @@ export interface ProductChildSiteDetailResource {
|
|
|
96
96
|
seo: SEOResource | null;
|
|
97
97
|
/**
|
|
98
98
|
*
|
|
99
|
-
* @type {
|
|
99
|
+
* @type {string}
|
|
100
|
+
* @memberof ProductChildSiteDetailResource
|
|
101
|
+
*/
|
|
102
|
+
omnisendId?: string | null;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @type {string}
|
|
100
106
|
* @memberof ProductChildSiteDetailResource
|
|
101
107
|
*/
|
|
102
|
-
|
|
108
|
+
omnisendSyncStatus?: string | null;
|
|
103
109
|
}
|
|
104
110
|
|
|
105
111
|
/**
|
|
@@ -116,7 +122,6 @@ export function instanceOfProductChildSiteDetailResource(value: object): value i
|
|
|
116
122
|
if (!('salePrice' in value) || value['salePrice'] === undefined) return false;
|
|
117
123
|
if (!('isDisabled' in value) || value['isDisabled'] === undefined) return false;
|
|
118
124
|
if (!('seo' in value) || value['seo'] === undefined) return false;
|
|
119
|
-
if (!('documents' in value) || value['documents'] === undefined) return false;
|
|
120
125
|
return true;
|
|
121
126
|
}
|
|
122
127
|
|
|
@@ -140,7 +145,8 @@ export function ProductChildSiteDetailResourceFromJSONTyped(json: any, ignoreDis
|
|
|
140
145
|
'salePrice': json['salePrice'],
|
|
141
146
|
'isDisabled': json['isDisabled'],
|
|
142
147
|
'seo': SEOResourceFromJSON(json['seo']),
|
|
143
|
-
'
|
|
148
|
+
'omnisendId': json['omnisendId'] == null ? undefined : json['omnisendId'],
|
|
149
|
+
'omnisendSyncStatus': json['omnisendSyncStatus'] == null ? undefined : json['omnisendSyncStatus'],
|
|
144
150
|
};
|
|
145
151
|
}
|
|
146
152
|
|
|
@@ -165,7 +171,8 @@ export function ProductChildSiteDetailResourceToJSONTyped(value?: ProductChildSi
|
|
|
165
171
|
'salePrice': value['salePrice'],
|
|
166
172
|
'isDisabled': value['isDisabled'],
|
|
167
173
|
'seo': SEOResourceToJSON(value['seo']),
|
|
168
|
-
'
|
|
174
|
+
'omnisendId': value['omnisendId'],
|
|
175
|
+
'omnisendSyncStatus': value['omnisendSyncStatus'],
|
|
169
176
|
};
|
|
170
177
|
}
|
|
171
178
|
|