@digital8/lighting-illusions-ts-sdk 0.0.1054 → 0.0.1056
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 +4 -6
- package/README.md +4 -6
- package/dist/apis/AttributeApi.d.ts +1 -16
- package/dist/apis/AttributeApi.js +0 -58
- package/dist/models/CategoryAutomationRuleResource.d.ts +3 -3
- package/dist/models/CategoryAutomationRuleResource.js +3 -5
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/GetAllProductChildRequest.d.ts +0 -12
- package/dist/models/GetAllProductChildRequest.js +0 -4
- package/dist/models/IndexProductChildRequest.d.ts +0 -12
- package/dist/models/IndexProductChildRequest.js +0 -4
- package/dist/models/PreviewAutomationRulesResource.d.ts +0 -6
- package/dist/models/PreviewAutomationRulesResource.js +0 -2
- package/dist/models/ProductChildListResource.d.ts +0 -6
- package/dist/models/ProductChildListResource.js +0 -4
- package/dist/models/ProductChildResource.d.ts +13 -6
- package/dist/models/ProductChildResource.js +9 -4
- package/dist/models/ProductChildSiteDetailResource.d.ts +0 -13
- package/dist/models/ProductChildSiteDetailResource.js +0 -9
- package/dist/models/ProductClassResource.d.ts +44 -0
- package/dist/models/ProductClassResource.js +57 -0
- package/dist/models/ProductClassResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductClassResourceArrayResponse.js +50 -0
- package/dist/models/StoreProductCategoryRequestAutomationRulesInner.d.ts +3 -3
- package/dist/models/StoreProductCategoryRequestAutomationRulesInner.js +3 -5
- package/dist/models/StoreProductChildRequest.d.ts +0 -6
- package/dist/models/StoreProductChildRequest.js +0 -2
- package/dist/models/UpdateProductChildRequest.d.ts +0 -6
- package/dist/models/UpdateProductChildRequest.js +0 -2
- package/dist/models/index.d.ts +2 -3
- package/dist/models/index.js +2 -3
- package/docs/AttributeApi.md +0 -66
- package/docs/CategoryAutomationRuleResource.md +3 -3
- package/docs/GetAllProductChildRequest.md +0 -4
- package/docs/IndexProductChildRequest.md +0 -4
- package/docs/PreviewAutomationRulesResource.md +0 -2
- package/docs/ProductChildListResource.md +0 -2
- package/docs/ProductChildResource.md +4 -2
- package/docs/ProductChildSiteDetailResource.md +0 -4
- package/docs/{LabelResourceArrayResponse.md → ProductClassResource.md} +10 -6
- package/docs/{LabelResource.md → ProductClassResourceArrayResponse.md} +6 -16
- package/docs/StoreProductCategoryRequestAutomationRulesInner.md +2 -2
- package/docs/StoreProductChildRequest.md +0 -2
- package/docs/UpdateProductChildRequest.md +0 -2
- package/package.json +1 -1
- package/src/apis/AttributeApi.ts +0 -50
- package/src/models/CategoryAutomationRuleResource.ts +6 -7
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/GetAllProductChildRequest.ts +0 -16
- package/src/models/IndexProductChildRequest.ts +0 -16
- package/src/models/PreviewAutomationRulesResource.ts +0 -8
- package/src/models/ProductChildListResource.ts +0 -9
- package/src/models/ProductChildResource.ts +25 -9
- package/src/models/ProductChildSiteDetailResource.ts +0 -25
- package/src/models/ProductClassResource.ts +83 -0
- package/src/models/ProductClassResourceArrayResponse.ts +73 -0
- package/src/models/StoreProductCategoryRequestAutomationRulesInner.ts +6 -7
- package/src/models/StoreProductChildRequest.ts +0 -8
- package/src/models/UpdateProductChildRequest.ts +0 -8
- package/src/models/index.ts +2 -3
- package/dist/models/GetAllAttributeValueRequest.d.ts +0 -93
- package/dist/models/GetAllAttributeValueRequest.js +0 -84
- package/dist/models/LabelResource.d.ts +0 -62
- package/dist/models/LabelResource.js +0 -67
- package/dist/models/LabelResourceArrayResponse.d.ts +0 -33
- package/dist/models/LabelResourceArrayResponse.js +0 -50
- package/docs/GetAllAttributeValueRequest.md +0 -46
- package/src/models/GetAllAttributeValueRequest.ts +0 -143
- package/src/models/LabelResource.ts +0 -109
- package/src/models/LabelResourceArrayResponse.ts +0 -73
package/.openapi-generator/FILES
CHANGED
|
@@ -74,7 +74,6 @@ docs/ExternalApiProvider.md
|
|
|
74
74
|
docs/ExternalApiSyncStatus.md
|
|
75
75
|
docs/GenericResponse.md
|
|
76
76
|
docs/GetAllAttributeRequest.md
|
|
77
|
-
docs/GetAllAttributeValueRequest.md
|
|
78
77
|
docs/GetAllDefinitionRequest.md
|
|
79
78
|
docs/GetAllDocumentRequest.md
|
|
80
79
|
docs/GetAllGoogleCategoryRequest.md
|
|
@@ -110,8 +109,6 @@ docs/IndexSiteNotificationRequest.md
|
|
|
110
109
|
docs/IndexSiteRequest.md
|
|
111
110
|
docs/IndexSupplierRequest.md
|
|
112
111
|
docs/IndexTagRequest.md
|
|
113
|
-
docs/LabelResource.md
|
|
114
|
-
docs/LabelResourceArrayResponse.md
|
|
115
112
|
docs/ModelAttributeResource.md
|
|
116
113
|
docs/ModelAttributeResourceArrayResponse.md
|
|
117
114
|
docs/OverlayTemplateApi.md
|
|
@@ -198,6 +195,8 @@ docs/ProductChildSiteDetailLiteResource.md
|
|
|
198
195
|
docs/ProductChildSiteDetailLiteResourceArrayResponse.md
|
|
199
196
|
docs/ProductChildSiteDetailResource.md
|
|
200
197
|
docs/ProductChildSiteDetailResourceArrayResponse.md
|
|
198
|
+
docs/ProductClassResource.md
|
|
199
|
+
docs/ProductClassResourceArrayResponse.md
|
|
201
200
|
docs/ProductCompareResource.md
|
|
202
201
|
docs/ProductCompareResourceArrayResponse.md
|
|
203
202
|
docs/ProductListResource.md
|
|
@@ -387,7 +386,6 @@ src/models/ExternalApiProvider.ts
|
|
|
387
386
|
src/models/ExternalApiSyncStatus.ts
|
|
388
387
|
src/models/GenericResponse.ts
|
|
389
388
|
src/models/GetAllAttributeRequest.ts
|
|
390
|
-
src/models/GetAllAttributeValueRequest.ts
|
|
391
389
|
src/models/GetAllDefinitionRequest.ts
|
|
392
390
|
src/models/GetAllDocumentRequest.ts
|
|
393
391
|
src/models/GetAllGoogleCategoryRequest.ts
|
|
@@ -422,8 +420,6 @@ src/models/IndexSiteNotificationRequest.ts
|
|
|
422
420
|
src/models/IndexSiteRequest.ts
|
|
423
421
|
src/models/IndexSupplierRequest.ts
|
|
424
422
|
src/models/IndexTagRequest.ts
|
|
425
|
-
src/models/LabelResource.ts
|
|
426
|
-
src/models/LabelResourceArrayResponse.ts
|
|
427
423
|
src/models/ModelAttributeResource.ts
|
|
428
424
|
src/models/ModelAttributeResourceArrayResponse.ts
|
|
429
425
|
src/models/OverlayTemplateAssetFrontendResource.ts
|
|
@@ -507,6 +503,8 @@ src/models/ProductChildSiteDetailLiteResource.ts
|
|
|
507
503
|
src/models/ProductChildSiteDetailLiteResourceArrayResponse.ts
|
|
508
504
|
src/models/ProductChildSiteDetailResource.ts
|
|
509
505
|
src/models/ProductChildSiteDetailResourceArrayResponse.ts
|
|
506
|
+
src/models/ProductClassResource.ts
|
|
507
|
+
src/models/ProductClassResourceArrayResponse.ts
|
|
510
508
|
src/models/ProductCompareResource.ts
|
|
511
509
|
src/models/ProductCompareResourceArrayResponse.ts
|
|
512
510
|
src/models/ProductListResource.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @digital8/lighting-illusions-ts-sdk@0.0.
|
|
1
|
+
# @digital8/lighting-illusions-ts-sdk@0.0.1056
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -59,7 +59,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
59
59
|
*AttributeApi* | [**destroyAttributeValue**](docs/AttributeApi.md#destroyattributevalueoperation) | **POST** /admin-api/attribute/value/{attributeValue}/delete | Auto-generated: destroyAttributeValue
|
|
60
60
|
*AttributeApi* | [**detachProductTypeAttribute**](docs/AttributeApi.md#detachproducttypeattribute) | **POST** /admin-api/attribute/{attribute}/detach-product-type/{productType} | Auto-generated: detachProductTypeAttribute
|
|
61
61
|
*AttributeApi* | [**getAllAttribute**](docs/AttributeApi.md#getallattributeoperation) | **POST** /admin-api/attribute/all | Auto-generated: getAllAttribute
|
|
62
|
-
*AttributeApi* | [**getAllAttributeValue**](docs/AttributeApi.md#getallattributevalueoperation) | **POST** /admin-api/attribute/value/all | Auto-generated: getAllAttributeValue
|
|
63
62
|
*AttributeApi* | [**indexAttribute**](docs/AttributeApi.md#indexattributeoperation) | **POST** /admin-api/attribute/list | Auto-generated: indexAttribute
|
|
64
63
|
*AttributeApi* | [**indexAttributeValue**](docs/AttributeApi.md#indexattributevalueoperation) | **POST** /admin-api/attribute/value/list | Auto-generated: indexAttributeValue
|
|
65
64
|
*AttributeApi* | [**showAttribute**](docs/AttributeApi.md#showattribute) | **GET** /admin-api/attribute/{attribute} | Auto-generated: showAttribute
|
|
@@ -237,7 +236,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
237
236
|
- [ExternalApiSyncStatus](docs/ExternalApiSyncStatus.md)
|
|
238
237
|
- [GenericResponse](docs/GenericResponse.md)
|
|
239
238
|
- [GetAllAttributeRequest](docs/GetAllAttributeRequest.md)
|
|
240
|
-
- [GetAllAttributeValueRequest](docs/GetAllAttributeValueRequest.md)
|
|
241
239
|
- [GetAllDefinitionRequest](docs/GetAllDefinitionRequest.md)
|
|
242
240
|
- [GetAllDocumentRequest](docs/GetAllDocumentRequest.md)
|
|
243
241
|
- [GetAllGoogleCategoryRequest](docs/GetAllGoogleCategoryRequest.md)
|
|
@@ -272,8 +270,6 @@ All URIs are relative to *http://localhost/api*
|
|
|
272
270
|
- [IndexSiteRequest](docs/IndexSiteRequest.md)
|
|
273
271
|
- [IndexSupplierRequest](docs/IndexSupplierRequest.md)
|
|
274
272
|
- [IndexTagRequest](docs/IndexTagRequest.md)
|
|
275
|
-
- [LabelResource](docs/LabelResource.md)
|
|
276
|
-
- [LabelResourceArrayResponse](docs/LabelResourceArrayResponse.md)
|
|
277
273
|
- [ModelAttributeResource](docs/ModelAttributeResource.md)
|
|
278
274
|
- [ModelAttributeResourceArrayResponse](docs/ModelAttributeResourceArrayResponse.md)
|
|
279
275
|
- [OverlayTemplateAssetFrontendResource](docs/OverlayTemplateAssetFrontendResource.md)
|
|
@@ -357,6 +353,8 @@ All URIs are relative to *http://localhost/api*
|
|
|
357
353
|
- [ProductChildSiteDetailLiteResourceArrayResponse](docs/ProductChildSiteDetailLiteResourceArrayResponse.md)
|
|
358
354
|
- [ProductChildSiteDetailResource](docs/ProductChildSiteDetailResource.md)
|
|
359
355
|
- [ProductChildSiteDetailResourceArrayResponse](docs/ProductChildSiteDetailResourceArrayResponse.md)
|
|
356
|
+
- [ProductClassResource](docs/ProductClassResource.md)
|
|
357
|
+
- [ProductClassResourceArrayResponse](docs/ProductClassResourceArrayResponse.md)
|
|
360
358
|
- [ProductCompareResource](docs/ProductCompareResource.md)
|
|
361
359
|
- [ProductCompareResourceArrayResponse](docs/ProductCompareResourceArrayResponse.md)
|
|
362
360
|
- [ProductListResource](docs/ProductListResource.md)
|
|
@@ -472,7 +470,7 @@ and is automatically generated by the
|
|
|
472
470
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
473
471
|
|
|
474
472
|
- API version: `1.0.0`
|
|
475
|
-
- Package version: `0.0.
|
|
473
|
+
- Package version: `0.0.1056`
|
|
476
474
|
- Generator version: `7.20.0`
|
|
477
475
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
478
476
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AttachProductTypeAttributeRequest, AttributeLiteResourceArrayResponse, AttributeResource, AttributeResourceArrayResponse,
|
|
13
|
+
import type { AttachProductTypeAttributeRequest, AttributeLiteResourceArrayResponse, AttributeResource, AttributeResourceArrayResponse, DestroyAttributeValueRequest, GenericResponse, GetAllAttributeRequest, IndexAttributeRequest, IndexAttributeValueRequest, ModelAttributeResourceArrayResponse, PaginatedAttributeListResourceResponse, PaginatedAttributeValueResourceResponse, StoreAttributeRequest, StoreAttributeValueRequest, UpdateAttributeRequest, UpdateAttributeValueRequest, UpdateFilterOrderAttributeRequest, UpdateModelAttributeRequest } from '../models/index';
|
|
14
14
|
export interface AttachProductTypeAttributeOperationRequest {
|
|
15
15
|
attribute: number;
|
|
16
16
|
attachProductTypeAttributeRequest?: AttachProductTypeAttributeRequest;
|
|
@@ -29,9 +29,6 @@ export interface DetachProductTypeAttributeRequest {
|
|
|
29
29
|
export interface GetAllAttributeOperationRequest {
|
|
30
30
|
getAllAttributeRequest?: GetAllAttributeRequest;
|
|
31
31
|
}
|
|
32
|
-
export interface GetAllAttributeValueOperationRequest {
|
|
33
|
-
getAllAttributeValueRequest?: GetAllAttributeValueRequest;
|
|
34
|
-
}
|
|
35
32
|
export interface IndexAttributeOperationRequest {
|
|
36
33
|
indexAttributeRequest?: IndexAttributeRequest;
|
|
37
34
|
}
|
|
@@ -130,18 +127,6 @@ export declare class AttributeApi extends runtime.BaseAPI {
|
|
|
130
127
|
* Auto-generated: getAllAttribute
|
|
131
128
|
*/
|
|
132
129
|
getAllAttribute(requestParameters?: GetAllAttributeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AttributeLiteResourceArrayResponse>;
|
|
133
|
-
/**
|
|
134
|
-
* Creates request options for getAllAttributeValue without sending the request
|
|
135
|
-
*/
|
|
136
|
-
getAllAttributeValueRequestOpts(requestParameters: GetAllAttributeValueOperationRequest): Promise<runtime.RequestOpts>;
|
|
137
|
-
/**
|
|
138
|
-
* Auto-generated: getAllAttributeValue
|
|
139
|
-
*/
|
|
140
|
-
getAllAttributeValueRaw(requestParameters: GetAllAttributeValueOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AttributeValueResourceArrayResponse>>;
|
|
141
|
-
/**
|
|
142
|
-
* Auto-generated: getAllAttributeValue
|
|
143
|
-
*/
|
|
144
|
-
getAllAttributeValue(requestParameters?: GetAllAttributeValueOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AttributeValueResourceArrayResponse>;
|
|
145
130
|
/**
|
|
146
131
|
* Creates request options for indexAttribute without sending the request
|
|
147
132
|
*/
|
|
@@ -377,64 +377,6 @@ var AttributeApi = /** @class */ (function (_super) {
|
|
|
377
377
|
});
|
|
378
378
|
});
|
|
379
379
|
};
|
|
380
|
-
/**
|
|
381
|
-
* Creates request options for getAllAttributeValue without sending the request
|
|
382
|
-
*/
|
|
383
|
-
AttributeApi.prototype.getAllAttributeValueRequestOpts = function (requestParameters) {
|
|
384
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
385
|
-
var queryParameters, headerParameters, urlPath;
|
|
386
|
-
return __generator(this, function (_a) {
|
|
387
|
-
queryParameters = {};
|
|
388
|
-
headerParameters = {};
|
|
389
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
390
|
-
urlPath = "/admin-api/attribute/value/all";
|
|
391
|
-
return [2 /*return*/, {
|
|
392
|
-
path: urlPath,
|
|
393
|
-
method: 'POST',
|
|
394
|
-
headers: headerParameters,
|
|
395
|
-
query: queryParameters,
|
|
396
|
-
body: (0, index_1.GetAllAttributeValueRequestToJSON)(requestParameters['getAllAttributeValueRequest']),
|
|
397
|
-
}];
|
|
398
|
-
});
|
|
399
|
-
});
|
|
400
|
-
};
|
|
401
|
-
/**
|
|
402
|
-
* Auto-generated: getAllAttributeValue
|
|
403
|
-
*/
|
|
404
|
-
AttributeApi.prototype.getAllAttributeValueRaw = function (requestParameters, initOverrides) {
|
|
405
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
406
|
-
var requestOptions, response;
|
|
407
|
-
return __generator(this, function (_a) {
|
|
408
|
-
switch (_a.label) {
|
|
409
|
-
case 0: return [4 /*yield*/, this.getAllAttributeValueRequestOpts(requestParameters)];
|
|
410
|
-
case 1:
|
|
411
|
-
requestOptions = _a.sent();
|
|
412
|
-
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
413
|
-
case 2:
|
|
414
|
-
response = _a.sent();
|
|
415
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.AttributeValueResourceArrayResponseFromJSON)(jsonValue); })];
|
|
416
|
-
}
|
|
417
|
-
});
|
|
418
|
-
});
|
|
419
|
-
};
|
|
420
|
-
/**
|
|
421
|
-
* Auto-generated: getAllAttributeValue
|
|
422
|
-
*/
|
|
423
|
-
AttributeApi.prototype.getAllAttributeValue = function () {
|
|
424
|
-
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
425
|
-
var response;
|
|
426
|
-
if (requestParameters === void 0) { requestParameters = {}; }
|
|
427
|
-
return __generator(this, function (_a) {
|
|
428
|
-
switch (_a.label) {
|
|
429
|
-
case 0: return [4 /*yield*/, this.getAllAttributeValueRaw(requestParameters, initOverrides)];
|
|
430
|
-
case 1:
|
|
431
|
-
response = _a.sent();
|
|
432
|
-
return [4 /*yield*/, response.value()];
|
|
433
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
434
|
-
}
|
|
435
|
-
});
|
|
436
|
-
});
|
|
437
|
-
};
|
|
438
380
|
/**
|
|
439
381
|
* Creates request options for indexAttribute without sending the request
|
|
440
382
|
*/
|
|
@@ -35,10 +35,10 @@ export interface CategoryAutomationRuleResource {
|
|
|
35
35
|
comparisonType: object;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
|
-
* @type {
|
|
38
|
+
* @type {string}
|
|
39
39
|
* @memberof CategoryAutomationRuleResource
|
|
40
40
|
*/
|
|
41
|
-
groupId
|
|
41
|
+
groupId?: string | null;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {string}
|
|
@@ -56,7 +56,7 @@ export interface CategoryAutomationRuleResource {
|
|
|
56
56
|
* @type {string}
|
|
57
57
|
* @memberof CategoryAutomationRuleResource
|
|
58
58
|
*/
|
|
59
|
-
|
|
59
|
+
valueId?: string | null;
|
|
60
60
|
}
|
|
61
61
|
/**
|
|
62
62
|
* Check if a given object implements the CategoryAutomationRuleResource interface.
|
|
@@ -26,8 +26,6 @@ function instanceOfCategoryAutomationRuleResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('comparisonType' in value) || value['comparisonType'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
-
if (!('groupId' in value) || value['groupId'] === undefined)
|
|
30
|
-
return false;
|
|
31
29
|
if (!('value' in value) || value['value'] === undefined)
|
|
32
30
|
return false;
|
|
33
31
|
return true;
|
|
@@ -43,10 +41,10 @@ function CategoryAutomationRuleResourceFromJSONTyped(json, ignoreDiscriminator)
|
|
|
43
41
|
'id': json['id'] == null ? undefined : json['id'],
|
|
44
42
|
'fieldType': json['fieldType'],
|
|
45
43
|
'comparisonType': json['comparisonType'],
|
|
46
|
-
'groupId': json['groupId'],
|
|
44
|
+
'groupId': json['groupId'] == null ? undefined : json['groupId'],
|
|
47
45
|
'relatedId': json['relatedId'] == null ? undefined : json['relatedId'],
|
|
48
46
|
'value': json['value'],
|
|
49
|
-
'
|
|
47
|
+
'valueId': json['valueId'] == null ? undefined : json['valueId'],
|
|
50
48
|
};
|
|
51
49
|
}
|
|
52
50
|
function CategoryAutomationRuleResourceToJSON(json) {
|
|
@@ -64,6 +62,6 @@ function CategoryAutomationRuleResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
64
62
|
'groupId': value['groupId'],
|
|
65
63
|
'relatedId': value['relatedId'],
|
|
66
64
|
'value': value['value'],
|
|
67
|
-
'
|
|
65
|
+
'valueId': value['valueId'],
|
|
68
66
|
};
|
|
69
67
|
}
|
|
@@ -37,6 +37,8 @@ function instanceOfExternalApiLogResource(value) {
|
|
|
37
37
|
return false;
|
|
38
38
|
if (!('responseCode' in value) || value['responseCode'] === undefined)
|
|
39
39
|
return false;
|
|
40
|
+
if (!('requestPayload' in value) || value['requestPayload'] === undefined)
|
|
41
|
+
return false;
|
|
40
42
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined)
|
|
41
43
|
return false;
|
|
42
44
|
if (!('site' in value) || value['site'] === undefined)
|
|
@@ -58,7 +60,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
60
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
59
61
|
'endpoint': json['endpoint'],
|
|
60
62
|
'responseCode': json['responseCode'],
|
|
61
|
-
'requestPayload': json['requestPayload']
|
|
63
|
+
'requestPayload': json['requestPayload'],
|
|
62
64
|
'responsePayload': json['responsePayload'],
|
|
63
65
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
64
66
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
@@ -93,18 +93,6 @@ export interface GetAllProductChildRequest {
|
|
|
93
93
|
* @memberof GetAllProductChildRequest
|
|
94
94
|
*/
|
|
95
95
|
parentIsAccessory?: Array<string>;
|
|
96
|
-
/**
|
|
97
|
-
*
|
|
98
|
-
* @type {Array<string>}
|
|
99
|
-
* @memberof GetAllProductChildRequest
|
|
100
|
-
*/
|
|
101
|
-
availableSitesId?: Array<string>;
|
|
102
|
-
/**
|
|
103
|
-
*
|
|
104
|
-
* @type {Array<string>}
|
|
105
|
-
* @memberof GetAllProductChildRequest
|
|
106
|
-
*/
|
|
107
|
-
enabledSitesId?: Array<string>;
|
|
108
96
|
}
|
|
109
97
|
/**
|
|
110
98
|
* @export
|
|
@@ -79,8 +79,6 @@ function GetAllProductChildRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
79
79
|
'supplierId': json['supplier-id'] == null ? undefined : json['supplier-id'],
|
|
80
80
|
'productTypeId': json['productType-id'] == null ? undefined : json['productType-id'],
|
|
81
81
|
'parentIsAccessory': json['parent-is_accessory'] == null ? undefined : json['parent-is_accessory'],
|
|
82
|
-
'availableSitesId': json['availableSites-id'] == null ? undefined : json['availableSites-id'],
|
|
83
|
-
'enabledSitesId': json['enabledSites-id'] == null ? undefined : json['enabledSites-id'],
|
|
84
82
|
};
|
|
85
83
|
}
|
|
86
84
|
function GetAllProductChildRequestToJSON(json) {
|
|
@@ -105,7 +103,5 @@ function GetAllProductChildRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
105
103
|
'supplier-id': value['supplierId'],
|
|
106
104
|
'productType-id': value['productTypeId'],
|
|
107
105
|
'parent-is_accessory': value['parentIsAccessory'],
|
|
108
|
-
'availableSites-id': value['availableSitesId'],
|
|
109
|
-
'enabledSites-id': value['enabledSitesId'],
|
|
110
106
|
};
|
|
111
107
|
}
|
|
@@ -87,18 +87,6 @@ export interface IndexProductChildRequest {
|
|
|
87
87
|
* @memberof IndexProductChildRequest
|
|
88
88
|
*/
|
|
89
89
|
parentIsAccessory?: Array<string>;
|
|
90
|
-
/**
|
|
91
|
-
*
|
|
92
|
-
* @type {Array<string>}
|
|
93
|
-
* @memberof IndexProductChildRequest
|
|
94
|
-
*/
|
|
95
|
-
availableSitesId?: Array<string>;
|
|
96
|
-
/**
|
|
97
|
-
*
|
|
98
|
-
* @type {Array<string>}
|
|
99
|
-
* @memberof IndexProductChildRequest
|
|
100
|
-
*/
|
|
101
|
-
enabledSitesId?: Array<string>;
|
|
102
90
|
/**
|
|
103
91
|
*
|
|
104
92
|
* @type {number}
|
|
@@ -86,8 +86,6 @@ function IndexProductChildRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
86
86
|
'supplierId': json['supplier-id'] == null ? undefined : json['supplier-id'],
|
|
87
87
|
'productTypeId': json['productType-id'] == null ? undefined : json['productType-id'],
|
|
88
88
|
'parentIsAccessory': json['parent-is_accessory'] == null ? undefined : json['parent-is_accessory'],
|
|
89
|
-
'availableSitesId': json['availableSites-id'] == null ? undefined : json['availableSites-id'],
|
|
90
|
-
'enabledSitesId': json['enabledSites-id'] == null ? undefined : json['enabledSites-id'],
|
|
91
89
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
92
90
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
93
91
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
@@ -114,8 +112,6 @@ function IndexProductChildRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
114
112
|
'supplier-id': value['supplierId'],
|
|
115
113
|
'productType-id': value['productTypeId'],
|
|
116
114
|
'parent-is_accessory': value['parentIsAccessory'],
|
|
117
|
-
'availableSites-id': value['availableSitesId'],
|
|
118
|
-
'enabledSites-id': value['enabledSitesId'],
|
|
119
115
|
'related_id': value['relatedId'],
|
|
120
116
|
'related_type': value['relatedType'],
|
|
121
117
|
'includes_relations': value['includesRelations'],
|
|
@@ -27,12 +27,6 @@ export interface PreviewAutomationRulesResource {
|
|
|
27
27
|
* @memberof PreviewAutomationRulesResource
|
|
28
28
|
*/
|
|
29
29
|
tooComplex: boolean;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof PreviewAutomationRulesResource
|
|
34
|
-
*/
|
|
35
|
-
query?: string | null;
|
|
36
30
|
}
|
|
37
31
|
/**
|
|
38
32
|
* Check if a given object implements the PreviewAutomationRulesResource interface.
|
|
@@ -38,7 +38,6 @@ function PreviewAutomationRulesResourceFromJSONTyped(json, ignoreDiscriminator)
|
|
|
38
38
|
return {
|
|
39
39
|
'count': json['count'],
|
|
40
40
|
'tooComplex': json['too_complex'],
|
|
41
|
-
'query': json['query'] == null ? undefined : json['query'],
|
|
42
41
|
};
|
|
43
42
|
}
|
|
44
43
|
function PreviewAutomationRulesResourceToJSON(json) {
|
|
@@ -52,6 +51,5 @@ function PreviewAutomationRulesResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
52
51
|
return {
|
|
53
52
|
'count': value['count'],
|
|
54
53
|
'too_complex': value['tooComplex'],
|
|
55
|
-
'query': value['query'],
|
|
56
54
|
};
|
|
57
55
|
}
|
|
@@ -59,12 +59,6 @@ export interface ProductChildListResource {
|
|
|
59
59
|
* @memberof ProductChildListResource
|
|
60
60
|
*/
|
|
61
61
|
isDisabled?: string | null;
|
|
62
|
-
/**
|
|
63
|
-
*
|
|
64
|
-
* @type {boolean}
|
|
65
|
-
* @memberof ProductChildListResource
|
|
66
|
-
*/
|
|
67
|
-
displayInSocialFeed: boolean;
|
|
68
62
|
/**
|
|
69
63
|
*
|
|
70
64
|
* @type {number}
|
|
@@ -34,8 +34,6 @@ function instanceOfProductChildListResource(value) {
|
|
|
34
34
|
return false;
|
|
35
35
|
if (!('stock' in value) || value['stock'] === undefined)
|
|
36
36
|
return false;
|
|
37
|
-
if (!('displayInSocialFeed' in value) || value['displayInSocialFeed'] === undefined)
|
|
38
|
-
return false;
|
|
39
37
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
40
38
|
return false;
|
|
41
39
|
if (!('thumbnail' in value) || value['thumbnail'] === undefined)
|
|
@@ -59,7 +57,6 @@ function ProductChildListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
59
57
|
'model': json['model'],
|
|
60
58
|
'stock': json['stock'],
|
|
61
59
|
'isDisabled': json['isDisabled'] == null ? undefined : json['isDisabled'],
|
|
62
|
-
'displayInSocialFeed': json['displayInSocialFeed'],
|
|
63
60
|
'netsuiteId': json['netsuiteId'],
|
|
64
61
|
'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceFromJSON)(json['thumbnail']),
|
|
65
62
|
'siteDetails': (json['siteDetails'] == null ? null : json['siteDetails'].map(ProductChildSiteDetailLiteResource_1.ProductChildSiteDetailLiteResourceFromJSON)),
|
|
@@ -81,7 +78,6 @@ function ProductChildListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
81
78
|
'model': value['model'],
|
|
82
79
|
'stock': value['stock'],
|
|
83
80
|
'isDisabled': value['isDisabled'],
|
|
84
|
-
'displayInSocialFeed': value['displayInSocialFeed'],
|
|
85
81
|
'netsuiteId': value['netsuiteId'],
|
|
86
82
|
'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceToJSON)(value['thumbnail']),
|
|
87
83
|
'siteDetails': (value['siteDetails'] == null ? null : value['siteDetails'].map(ProductChildSiteDetailLiteResource_1.ProductChildSiteDetailLiteResourceToJSON)),
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { ProductChildSiteDetailResource } from './ProductChildSiteDetailResource';
|
|
13
13
|
import type { AssetResource } from './AssetResource';
|
|
14
|
+
import type { ProductClassResource } from './ProductClassResource';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
16
17
|
* @export
|
|
@@ -137,12 +138,6 @@ export interface ProductChildResource {
|
|
|
137
138
|
* @memberof ProductChildResource
|
|
138
139
|
*/
|
|
139
140
|
netsuiteSyncStatus?: string | null;
|
|
140
|
-
/**
|
|
141
|
-
*
|
|
142
|
-
* @type {boolean}
|
|
143
|
-
* @memberof ProductChildResource
|
|
144
|
-
*/
|
|
145
|
-
hasSyncedToNetsuite: boolean;
|
|
146
141
|
/**
|
|
147
142
|
*
|
|
148
143
|
* @type {string}
|
|
@@ -185,6 +180,18 @@ export interface ProductChildResource {
|
|
|
185
180
|
* @memberof ProductChildResource
|
|
186
181
|
*/
|
|
187
182
|
attributes: object;
|
|
183
|
+
/**
|
|
184
|
+
*
|
|
185
|
+
* @type {Array<ProductClassResource>}
|
|
186
|
+
* @memberof ProductChildResource
|
|
187
|
+
*/
|
|
188
|
+
productClasses: Array<ProductClassResource> | null;
|
|
189
|
+
/**
|
|
190
|
+
*
|
|
191
|
+
* @type {string}
|
|
192
|
+
* @memberof ProductChildResource
|
|
193
|
+
*/
|
|
194
|
+
productClassString: string;
|
|
188
195
|
}
|
|
189
196
|
/**
|
|
190
197
|
* Check if a given object implements the ProductChildResource interface.
|
|
@@ -20,6 +20,7 @@ exports.ProductChildResourceToJSON = ProductChildResourceToJSON;
|
|
|
20
20
|
exports.ProductChildResourceToJSONTyped = ProductChildResourceToJSONTyped;
|
|
21
21
|
var ProductChildSiteDetailResource_1 = require("./ProductChildSiteDetailResource");
|
|
22
22
|
var AssetResource_1 = require("./AssetResource");
|
|
23
|
+
var ProductClassResource_1 = require("./ProductClassResource");
|
|
23
24
|
/**
|
|
24
25
|
* Check if a given object implements the ProductChildResource interface.
|
|
25
26
|
*/
|
|
@@ -58,8 +59,6 @@ function instanceOfProductChildResource(value) {
|
|
|
58
59
|
return false;
|
|
59
60
|
if (!('googleStockStatus' in value) || value['googleStockStatus'] === undefined)
|
|
60
61
|
return false;
|
|
61
|
-
if (!('hasSyncedToNetsuite' in value) || value['hasSyncedToNetsuite'] === undefined)
|
|
62
|
-
return false;
|
|
63
62
|
if (!('newArrivalStartDate' in value) || value['newArrivalStartDate'] === undefined)
|
|
64
63
|
return false;
|
|
65
64
|
if (!('newArrivalEndDate' in value) || value['newArrivalEndDate'] === undefined)
|
|
@@ -74,6 +73,10 @@ function instanceOfProductChildResource(value) {
|
|
|
74
73
|
return false;
|
|
75
74
|
if (!('attributes' in value) || value['attributes'] === undefined)
|
|
76
75
|
return false;
|
|
76
|
+
if (!('productClasses' in value) || value['productClasses'] === undefined)
|
|
77
|
+
return false;
|
|
78
|
+
if (!('productClassString' in value) || value['productClassString'] === undefined)
|
|
79
|
+
return false;
|
|
77
80
|
return true;
|
|
78
81
|
}
|
|
79
82
|
function ProductChildResourceFromJSON(json) {
|
|
@@ -104,7 +107,6 @@ function ProductChildResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
104
107
|
'googleStockStatus': json['googleStockStatus'],
|
|
105
108
|
'netsuiteId': json['netsuiteId'] == null ? undefined : json['netsuiteId'],
|
|
106
109
|
'netsuiteSyncStatus': json['netsuiteSyncStatus'] == null ? undefined : json['netsuiteSyncStatus'],
|
|
107
|
-
'hasSyncedToNetsuite': json['hasSyncedToNetsuite'],
|
|
108
110
|
'newArrivalStartDate': json['newArrivalStartDate'],
|
|
109
111
|
'newArrivalEndDate': json['newArrivalEndDate'],
|
|
110
112
|
'isDisabled': json['isDisabled'],
|
|
@@ -112,6 +114,8 @@ function ProductChildResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
112
114
|
'assets': (json['assets'] == null ? null : json['assets'].map(AssetResource_1.AssetResourceFromJSON)),
|
|
113
115
|
'thumbnail': (0, AssetResource_1.AssetResourceFromJSON)(json['thumbnail']),
|
|
114
116
|
'attributes': json['attributes'],
|
|
117
|
+
'productClasses': (json['productClasses'] == null ? null : json['productClasses'].map(ProductClassResource_1.ProductClassResourceFromJSON)),
|
|
118
|
+
'productClassString': json['productClassString'],
|
|
115
119
|
};
|
|
116
120
|
}
|
|
117
121
|
function ProductChildResourceToJSON(json) {
|
|
@@ -143,7 +147,6 @@ function ProductChildResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
143
147
|
'googleStockStatus': value['googleStockStatus'],
|
|
144
148
|
'netsuiteId': value['netsuiteId'],
|
|
145
149
|
'netsuiteSyncStatus': value['netsuiteSyncStatus'],
|
|
146
|
-
'hasSyncedToNetsuite': value['hasSyncedToNetsuite'],
|
|
147
150
|
'newArrivalStartDate': value['newArrivalStartDate'],
|
|
148
151
|
'newArrivalEndDate': value['newArrivalEndDate'],
|
|
149
152
|
'isDisabled': value['isDisabled'],
|
|
@@ -151,5 +154,7 @@ function ProductChildResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
151
154
|
'assets': (value['assets'] == null ? null : value['assets'].map(AssetResource_1.AssetResourceToJSON)),
|
|
152
155
|
'thumbnail': (0, AssetResource_1.AssetResourceToJSON)(value['thumbnail']),
|
|
153
156
|
'attributes': value['attributes'],
|
|
157
|
+
'productClasses': (value['productClasses'] == null ? null : value['productClasses'].map(ProductClassResource_1.ProductClassResourceToJSON)),
|
|
158
|
+
'productClassString': value['productClassString'],
|
|
154
159
|
};
|
|
155
160
|
}
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { SiteLiteResource } from './SiteLiteResource';
|
|
13
|
-
import type { LabelResource } from './LabelResource';
|
|
14
13
|
import type { SEOResource } from './SEOResource';
|
|
15
14
|
/**
|
|
16
15
|
*
|
|
@@ -90,24 +89,12 @@ export interface ProductChildSiteDetailResource {
|
|
|
90
89
|
* @memberof ProductChildSiteDetailResource
|
|
91
90
|
*/
|
|
92
91
|
isDisabled: boolean;
|
|
93
|
-
/**
|
|
94
|
-
*
|
|
95
|
-
* @type {boolean}
|
|
96
|
-
* @memberof ProductChildSiteDetailResource
|
|
97
|
-
*/
|
|
98
|
-
displayInTgnFeed: boolean;
|
|
99
92
|
/**
|
|
100
93
|
*
|
|
101
94
|
* @type {SEOResource}
|
|
102
95
|
* @memberof ProductChildSiteDetailResource
|
|
103
96
|
*/
|
|
104
97
|
seo: SEOResource | null;
|
|
105
|
-
/**
|
|
106
|
-
*
|
|
107
|
-
* @type {LabelResource}
|
|
108
|
-
* @memberof ProductChildSiteDetailResource
|
|
109
|
-
*/
|
|
110
|
-
label: LabelResource | null;
|
|
111
98
|
/**
|
|
112
99
|
*
|
|
113
100
|
* @type {string}
|
|
@@ -19,7 +19,6 @@ exports.ProductChildSiteDetailResourceFromJSONTyped = ProductChildSiteDetailReso
|
|
|
19
19
|
exports.ProductChildSiteDetailResourceToJSON = ProductChildSiteDetailResourceToJSON;
|
|
20
20
|
exports.ProductChildSiteDetailResourceToJSONTyped = ProductChildSiteDetailResourceToJSONTyped;
|
|
21
21
|
var SiteLiteResource_1 = require("./SiteLiteResource");
|
|
22
|
-
var LabelResource_1 = require("./LabelResource");
|
|
23
22
|
var SEOResource_1 = require("./SEOResource");
|
|
24
23
|
/**
|
|
25
24
|
* Check if a given object implements the ProductChildSiteDetailResource interface.
|
|
@@ -49,12 +48,8 @@ function instanceOfProductChildSiteDetailResource(value) {
|
|
|
49
48
|
return false;
|
|
50
49
|
if (!('isDisabled' in value) || value['isDisabled'] === undefined)
|
|
51
50
|
return false;
|
|
52
|
-
if (!('displayInTgnFeed' in value) || value['displayInTgnFeed'] === undefined)
|
|
53
|
-
return false;
|
|
54
51
|
if (!('seo' in value) || value['seo'] === undefined)
|
|
55
52
|
return false;
|
|
56
|
-
if (!('label' in value) || value['label'] === undefined)
|
|
57
|
-
return false;
|
|
58
53
|
return true;
|
|
59
54
|
}
|
|
60
55
|
function ProductChildSiteDetailResourceFromJSON(json) {
|
|
@@ -77,9 +72,7 @@ function ProductChildSiteDetailResourceFromJSONTyped(json, ignoreDiscriminator)
|
|
|
77
72
|
'rrpPrice': json['rrpPrice'],
|
|
78
73
|
'salePrice': json['salePrice'],
|
|
79
74
|
'isDisabled': json['isDisabled'],
|
|
80
|
-
'displayInTgnFeed': json['displayInTgnFeed'],
|
|
81
75
|
'seo': (0, SEOResource_1.SEOResourceFromJSON)(json['seo']),
|
|
82
|
-
'label': (0, LabelResource_1.LabelResourceFromJSON)(json['label']),
|
|
83
76
|
'omnisendId': json['omnisendId'] == null ? undefined : json['omnisendId'],
|
|
84
77
|
'omnisendSyncStatus': json['omnisendSyncStatus'] == null ? undefined : json['omnisendSyncStatus'],
|
|
85
78
|
};
|
|
@@ -105,9 +98,7 @@ function ProductChildSiteDetailResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
105
98
|
'rrpPrice': value['rrpPrice'],
|
|
106
99
|
'salePrice': value['salePrice'],
|
|
107
100
|
'isDisabled': value['isDisabled'],
|
|
108
|
-
'displayInTgnFeed': value['displayInTgnFeed'],
|
|
109
101
|
'seo': (0, SEOResource_1.SEOResourceToJSON)(value['seo']),
|
|
110
|
-
'label': (0, LabelResource_1.LabelResourceToJSON)(value['label']),
|
|
111
102
|
'omnisendId': value['omnisendId'],
|
|
112
103
|
'omnisendSyncStatus': value['omnisendSyncStatus'],
|
|
113
104
|
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ProductClassResource
|
|
16
|
+
*/
|
|
17
|
+
export interface ProductClassResource {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof ProductClassResource
|
|
22
|
+
*/
|
|
23
|
+
id?: number | null;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ProductClassResource
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof ProductClassResource
|
|
34
|
+
*/
|
|
35
|
+
order: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the ProductClassResource interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfProductClassResource(value: object): value is ProductClassResource;
|
|
41
|
+
export declare function ProductClassResourceFromJSON(json: any): ProductClassResource;
|
|
42
|
+
export declare function ProductClassResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductClassResource;
|
|
43
|
+
export declare function ProductClassResourceToJSON(json: any): ProductClassResource;
|
|
44
|
+
export declare function ProductClassResourceToJSONTyped(value?: ProductClassResource | null, ignoreDiscriminator?: boolean): any;
|