@digital8/lighting-illusions-ts-sdk 0.0.493 → 0.0.495
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 +6 -0
- package/README.md +5 -2
- package/dist/models/DescriptionResource.d.ts +50 -0
- package/dist/models/DescriptionResource.js +63 -0
- package/dist/models/DescriptionResourceArrayResponse.d.ts +33 -0
- package/dist/models/DescriptionResourceArrayResponse.js +50 -0
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/GetAllProductChildRequest.d.ts +0 -12
- package/dist/models/GetAllProductChildRequest.js +0 -4
- package/dist/models/IndexProductChildRequest.d.ts +2 -12
- package/dist/models/IndexProductChildRequest.js +3 -5
- package/dist/models/SEOResource.d.ts +2 -20
- package/dist/models/SEOResource.js +8 -20
- package/dist/models/StoreProductChildRequestSitesInner.d.ts +3 -15
- package/dist/models/StoreProductChildRequestSitesInner.js +7 -9
- package/dist/models/StoreSupplierRequest.d.ts +7 -0
- package/dist/models/StoreSupplierRequest.js +5 -0
- package/dist/models/StoreSupplierRequestDescriptionsInner.d.ts +44 -0
- package/dist/models/StoreSupplierRequestDescriptionsInner.js +55 -0
- package/dist/models/StoreSupplierRequestSeoInner.d.ts +2 -20
- package/dist/models/StoreSupplierRequestSeoInner.js +4 -10
- package/dist/models/StoreTagRequest.d.ts +3 -9
- package/dist/models/StoreTagRequest.js +6 -8
- package/dist/models/SupplierFrontendResource.d.ts +7 -0
- package/dist/models/SupplierFrontendResource.js +5 -0
- package/dist/models/SupplierResource.d.ts +7 -0
- package/dist/models/SupplierResource.js +5 -0
- package/dist/models/TagResource.d.ts +7 -0
- package/dist/models/TagResource.js +5 -0
- package/dist/models/UpdateSupplierRequest.d.ts +7 -0
- package/dist/models/UpdateSupplierRequest.js +5 -0
- package/dist/models/UpdateTagRequest.d.ts +3 -9
- package/dist/models/UpdateTagRequest.js +6 -8
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/docs/DescriptionResource.md +40 -0
- package/docs/DescriptionResourceArrayResponse.md +34 -0
- package/docs/GetAllProductChildRequest.md +0 -4
- package/docs/IndexProductChildRequest.md +0 -4
- package/docs/SEOResource.md +4 -10
- package/docs/StoreProductChildRequestSitesInner.md +4 -8
- package/docs/StoreSupplierRequest.md +2 -0
- package/docs/StoreSupplierRequestDescriptionsInner.md +38 -0
- package/docs/StoreSupplierRequestSeoInner.md +4 -10
- package/docs/StoreTagRequest.md +6 -8
- package/docs/SupplierFrontendResource.md +2 -0
- package/docs/SupplierResource.md +2 -0
- package/docs/TagResource.md +2 -0
- package/docs/UpdateSupplierRequest.md +2 -0
- package/docs/UpdateTagRequest.md +6 -8
- package/package.json +1 -1
- package/src/models/DescriptionResource.ts +93 -0
- package/src/models/DescriptionResourceArrayResponse.ts +73 -0
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/GetAllProductChildRequest.ts +0 -16
- package/src/models/IndexProductChildRequest.ts +3 -17
- package/src/models/SEOResource.ts +10 -37
- package/src/models/StoreProductChildRequestSitesInner.ts +9 -24
- package/src/models/StoreSupplierRequest.ts +16 -0
- package/src/models/StoreSupplierRequestDescriptionsInner.ts +82 -0
- package/src/models/StoreSupplierRequestSeoInner.ts +6 -30
- package/src/models/StoreTagRequest.ts +9 -17
- package/src/models/SupplierFrontendResource.ts +16 -0
- package/src/models/SupplierResource.ts +16 -0
- package/src/models/TagResource.ts +16 -0
- package/src/models/UpdateSupplierRequest.ts +16 -0
- package/src/models/UpdateTagRequest.ts +9 -17
- package/src/models/index.ts +3 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -31,6 +31,8 @@ docs/AttributeType.md
|
|
|
31
31
|
docs/AttributeValueResource.md
|
|
32
32
|
docs/AttributeValueResourceArrayResponse.md
|
|
33
33
|
docs/CouponDiscountType.md
|
|
34
|
+
docs/DescriptionResource.md
|
|
35
|
+
docs/DescriptionResourceArrayResponse.md
|
|
34
36
|
docs/DestroyAttributeValueRequest.md
|
|
35
37
|
docs/DetachAssetableOverlayTemplateRequest.md
|
|
36
38
|
docs/DetachDocumentablesDocumentRequest.md
|
|
@@ -177,6 +179,7 @@ docs/StoreProductRequestCategoriesInner.md
|
|
|
177
179
|
docs/StoreProductTypeRequest.md
|
|
178
180
|
docs/StoreSiteNotificationRequest.md
|
|
179
181
|
docs/StoreSupplierRequest.md
|
|
182
|
+
docs/StoreSupplierRequestDescriptionsInner.md
|
|
180
183
|
docs/StoreSupplierRequestSeoInner.md
|
|
181
184
|
docs/StoreTagRequest.md
|
|
182
185
|
docs/SupplierApi.md
|
|
@@ -254,6 +257,8 @@ src/models/AttributeType.ts
|
|
|
254
257
|
src/models/AttributeValueResource.ts
|
|
255
258
|
src/models/AttributeValueResourceArrayResponse.ts
|
|
256
259
|
src/models/CouponDiscountType.ts
|
|
260
|
+
src/models/DescriptionResource.ts
|
|
261
|
+
src/models/DescriptionResourceArrayResponse.ts
|
|
257
262
|
src/models/DestroyAttributeValueRequest.ts
|
|
258
263
|
src/models/DetachAssetableOverlayTemplateRequest.ts
|
|
259
264
|
src/models/DetachDocumentablesDocumentRequest.ts
|
|
@@ -393,6 +398,7 @@ src/models/StoreProductRequestCategoriesInner.ts
|
|
|
393
398
|
src/models/StoreProductTypeRequest.ts
|
|
394
399
|
src/models/StoreSiteNotificationRequest.ts
|
|
395
400
|
src/models/StoreSupplierRequest.ts
|
|
401
|
+
src/models/StoreSupplierRequestDescriptionsInner.ts
|
|
396
402
|
src/models/StoreSupplierRequestSeoInner.ts
|
|
397
403
|
src/models/StoreTagRequest.ts
|
|
398
404
|
src/models/SupplierFrontendResource.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.495
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -172,6 +172,8 @@ All URIs are relative to *http://localhost/api*
|
|
|
172
172
|
- [AttributeValueResource](docs/AttributeValueResource.md)
|
|
173
173
|
- [AttributeValueResourceArrayResponse](docs/AttributeValueResourceArrayResponse.md)
|
|
174
174
|
- [CouponDiscountType](docs/CouponDiscountType.md)
|
|
175
|
+
- [DescriptionResource](docs/DescriptionResource.md)
|
|
176
|
+
- [DescriptionResourceArrayResponse](docs/DescriptionResourceArrayResponse.md)
|
|
175
177
|
- [DestroyAttributeValueRequest](docs/DestroyAttributeValueRequest.md)
|
|
176
178
|
- [DetachAssetableOverlayTemplateRequest](docs/DetachAssetableOverlayTemplateRequest.md)
|
|
177
179
|
- [DetachDocumentablesDocumentRequest](docs/DetachDocumentablesDocumentRequest.md)
|
|
@@ -311,6 +313,7 @@ All URIs are relative to *http://localhost/api*
|
|
|
311
313
|
- [StoreProductTypeRequest](docs/StoreProductTypeRequest.md)
|
|
312
314
|
- [StoreSiteNotificationRequest](docs/StoreSiteNotificationRequest.md)
|
|
313
315
|
- [StoreSupplierRequest](docs/StoreSupplierRequest.md)
|
|
316
|
+
- [StoreSupplierRequestDescriptionsInner](docs/StoreSupplierRequestDescriptionsInner.md)
|
|
314
317
|
- [StoreSupplierRequestSeoInner](docs/StoreSupplierRequestSeoInner.md)
|
|
315
318
|
- [StoreTagRequest](docs/StoreTagRequest.md)
|
|
316
319
|
- [SupplierFrontendResource](docs/SupplierFrontendResource.md)
|
|
@@ -358,7 +361,7 @@ and is automatically generated by the
|
|
|
358
361
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
359
362
|
|
|
360
363
|
- API version: `1.0.0`
|
|
361
|
-
- Package version: `0.0.
|
|
364
|
+
- Package version: `0.0.495`
|
|
362
365
|
- Generator version: `7.17.0`
|
|
363
366
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
364
367
|
|
|
@@ -0,0 +1,50 @@
|
|
|
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 DescriptionResource
|
|
16
|
+
*/
|
|
17
|
+
export interface DescriptionResource {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof DescriptionResource
|
|
22
|
+
*/
|
|
23
|
+
id: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof DescriptionResource
|
|
28
|
+
*/
|
|
29
|
+
headerDescription: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof DescriptionResource
|
|
34
|
+
*/
|
|
35
|
+
footerDescription: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof DescriptionResource
|
|
40
|
+
*/
|
|
41
|
+
siteId: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the DescriptionResource interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfDescriptionResource(value: object): value is DescriptionResource;
|
|
47
|
+
export declare function DescriptionResourceFromJSON(json: any): DescriptionResource;
|
|
48
|
+
export declare function DescriptionResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): DescriptionResource;
|
|
49
|
+
export declare function DescriptionResourceToJSON(json: any): DescriptionResource;
|
|
50
|
+
export declare function DescriptionResourceToJSONTyped(value?: DescriptionResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfDescriptionResource = instanceOfDescriptionResource;
|
|
17
|
+
exports.DescriptionResourceFromJSON = DescriptionResourceFromJSON;
|
|
18
|
+
exports.DescriptionResourceFromJSONTyped = DescriptionResourceFromJSONTyped;
|
|
19
|
+
exports.DescriptionResourceToJSON = DescriptionResourceToJSON;
|
|
20
|
+
exports.DescriptionResourceToJSONTyped = DescriptionResourceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the DescriptionResource interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfDescriptionResource(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('headerDescription' in value) || value['headerDescription'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('footerDescription' in value) || value['footerDescription'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('siteId' in value) || value['siteId'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function DescriptionResourceFromJSON(json) {
|
|
36
|
+
return DescriptionResourceFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function DescriptionResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'id': json['id'],
|
|
44
|
+
'headerDescription': json['headerDescription'],
|
|
45
|
+
'footerDescription': json['footerDescription'],
|
|
46
|
+
'siteId': json['siteId'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function DescriptionResourceToJSON(json) {
|
|
50
|
+
return DescriptionResourceToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function DescriptionResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'id': value['id'],
|
|
59
|
+
'headerDescription': value['headerDescription'],
|
|
60
|
+
'footerDescription': value['footerDescription'],
|
|
61
|
+
'siteId': value['siteId'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
import type { DescriptionResource } from './DescriptionResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface DescriptionResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface DescriptionResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<DescriptionResource>}
|
|
22
|
+
* @memberof DescriptionResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<DescriptionResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the DescriptionResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfDescriptionResourceArrayResponse(value: object): value is DescriptionResourceArrayResponse;
|
|
30
|
+
export declare function DescriptionResourceArrayResponseFromJSON(json: any): DescriptionResourceArrayResponse;
|
|
31
|
+
export declare function DescriptionResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DescriptionResourceArrayResponse;
|
|
32
|
+
export declare function DescriptionResourceArrayResponseToJSON(json: any): DescriptionResourceArrayResponse;
|
|
33
|
+
export declare function DescriptionResourceArrayResponseToJSONTyped(value?: DescriptionResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfDescriptionResourceArrayResponse = instanceOfDescriptionResourceArrayResponse;
|
|
17
|
+
exports.DescriptionResourceArrayResponseFromJSON = DescriptionResourceArrayResponseFromJSON;
|
|
18
|
+
exports.DescriptionResourceArrayResponseFromJSONTyped = DescriptionResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.DescriptionResourceArrayResponseToJSON = DescriptionResourceArrayResponseToJSON;
|
|
20
|
+
exports.DescriptionResourceArrayResponseToJSONTyped = DescriptionResourceArrayResponseToJSONTyped;
|
|
21
|
+
var DescriptionResource_1 = require("./DescriptionResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the DescriptionResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfDescriptionResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function DescriptionResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return DescriptionResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function DescriptionResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(DescriptionResource_1.DescriptionResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function DescriptionResourceArrayResponseToJSON(json) {
|
|
40
|
+
return DescriptionResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function DescriptionResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'data': value['data'] == null ? undefined : (value['data'].map(DescriptionResource_1.DescriptionResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -37,8 +37,6 @@ 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;
|
|
42
40
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined)
|
|
43
41
|
return false;
|
|
44
42
|
if (!('site' in value) || value['site'] === undefined)
|
|
@@ -60,7 +58,7 @@ function ExternalApiLogResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
60
58
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
61
59
|
'endpoint': json['endpoint'],
|
|
62
60
|
'responseCode': json['responseCode'],
|
|
63
|
-
'requestPayload': json['requestPayload'],
|
|
61
|
+
'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
|
|
64
62
|
'responsePayload': json['responsePayload'],
|
|
65
63
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
66
64
|
'site': (0, SiteLiteResource_1.SiteLiteResourceFromJSON)(json['site']),
|
|
@@ -51,18 +51,6 @@ export interface GetAllProductChildRequest {
|
|
|
51
51
|
* @memberof GetAllProductChildRequest
|
|
52
52
|
*/
|
|
53
53
|
includesRelations?: boolean;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {Array<string>}
|
|
57
|
-
* @memberof GetAllProductChildRequest
|
|
58
|
-
*/
|
|
59
|
-
parentProductTypeId?: Array<string>;
|
|
60
|
-
/**
|
|
61
|
-
*
|
|
62
|
-
* @type {Array<string>}
|
|
63
|
-
* @memberof GetAllProductChildRequest
|
|
64
|
-
*/
|
|
65
|
-
parentSupplierId?: Array<string>;
|
|
66
54
|
/**
|
|
67
55
|
*
|
|
68
56
|
* @type {Array<string>}
|
|
@@ -73,8 +73,6 @@ function GetAllProductChildRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
73
73
|
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
74
74
|
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
75
75
|
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
76
|
-
'parentProductTypeId': json['parent-product_type_id'] == null ? undefined : json['parent-product_type_id'],
|
|
77
|
-
'parentSupplierId': json['parent-supplier_id'] == null ? undefined : json['parent-supplier_id'],
|
|
78
76
|
'siteDetailsSiteId': json['siteDetails-site_id'] == null ? undefined : json['siteDetails-site_id'],
|
|
79
77
|
'isDisabled': json['is_disabled'] == null ? undefined : json['is_disabled'],
|
|
80
78
|
'hasNetsuiteId': json['has_netsuite_id'] == null ? undefined : json['has_netsuite_id'],
|
|
@@ -95,8 +93,6 @@ function GetAllProductChildRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
95
93
|
'related_id': value['relatedId'],
|
|
96
94
|
'related_type': value['relatedType'],
|
|
97
95
|
'includes_relations': value['includesRelations'],
|
|
98
|
-
'parent-product_type_id': value['parentProductTypeId'],
|
|
99
|
-
'parent-supplier_id': value['parentSupplierId'],
|
|
100
96
|
'siteDetails-site_id': value['siteDetailsSiteId'],
|
|
101
97
|
'is_disabled': value['isDisabled'],
|
|
102
98
|
'has_netsuite_id': value['hasNetsuiteId'],
|
|
@@ -45,18 +45,6 @@ export interface IndexProductChildRequest {
|
|
|
45
45
|
* @memberof IndexProductChildRequest
|
|
46
46
|
*/
|
|
47
47
|
page?: number;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {Array<string>}
|
|
51
|
-
* @memberof IndexProductChildRequest
|
|
52
|
-
*/
|
|
53
|
-
parentProductTypeId?: Array<string>;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {Array<string>}
|
|
57
|
-
* @memberof IndexProductChildRequest
|
|
58
|
-
*/
|
|
59
|
-
parentSupplierId?: Array<string>;
|
|
60
48
|
/**
|
|
61
49
|
*
|
|
62
50
|
* @type {Array<string>}
|
|
@@ -131,6 +119,8 @@ export declare const IndexProductChildRequestRelatedTypeEnum: {
|
|
|
131
119
|
readonly Document: "document";
|
|
132
120
|
readonly Attribute: "attribute";
|
|
133
121
|
readonly AttributeValue: "attributeValue";
|
|
122
|
+
readonly ProductType: "productType";
|
|
123
|
+
readonly Site: "site";
|
|
134
124
|
};
|
|
135
125
|
export type IndexProductChildRequestRelatedTypeEnum = typeof IndexProductChildRequestRelatedTypeEnum[keyof typeof IndexProductChildRequestRelatedTypeEnum];
|
|
136
126
|
/**
|
|
@@ -53,7 +53,9 @@ exports.IndexProductChildRequestRelatedTypeEnum = {
|
|
|
53
53
|
Tag: 'tag',
|
|
54
54
|
Document: 'document',
|
|
55
55
|
Attribute: 'attribute',
|
|
56
|
-
AttributeValue: 'attributeValue'
|
|
56
|
+
AttributeValue: 'attributeValue',
|
|
57
|
+
ProductType: 'productType',
|
|
58
|
+
Site: 'site'
|
|
57
59
|
};
|
|
58
60
|
/**
|
|
59
61
|
* Check if a given object implements the IndexProductChildRequest interface.
|
|
@@ -74,8 +76,6 @@ function IndexProductChildRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
74
76
|
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
75
77
|
'perPage': json['per_page'] == null ? undefined : json['per_page'],
|
|
76
78
|
'page': json['page'] == null ? undefined : json['page'],
|
|
77
|
-
'parentProductTypeId': json['parent-product_type_id'] == null ? undefined : json['parent-product_type_id'],
|
|
78
|
-
'parentSupplierId': json['parent-supplier_id'] == null ? undefined : json['parent-supplier_id'],
|
|
79
79
|
'siteDetailsSiteId': json['siteDetails-site_id'] == null ? undefined : json['siteDetails-site_id'],
|
|
80
80
|
'isDisabled': json['is_disabled'] == null ? undefined : json['is_disabled'],
|
|
81
81
|
'hasNetsuiteId': json['has_netsuite_id'] == null ? undefined : json['has_netsuite_id'],
|
|
@@ -98,8 +98,6 @@ function IndexProductChildRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
98
98
|
'sortDirection': value['sortDirection'],
|
|
99
99
|
'per_page': value['perPage'],
|
|
100
100
|
'page': value['page'],
|
|
101
|
-
'parent-product_type_id': value['parentProductTypeId'],
|
|
102
|
-
'parent-supplier_id': value['parentSupplierId'],
|
|
103
101
|
'siteDetails-site_id': value['siteDetailsSiteId'],
|
|
104
102
|
'is_disabled': value['isDisabled'],
|
|
105
103
|
'has_netsuite_id': value['hasNetsuiteId'],
|
|
@@ -26,37 +26,19 @@ export interface SEOResource {
|
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof SEOResource
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
seoTitle: string;
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof SEOResource
|
|
34
34
|
*/
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof SEOResource
|
|
40
|
-
*/
|
|
41
|
-
keywords: string;
|
|
35
|
+
seoDescription: string;
|
|
42
36
|
/**
|
|
43
37
|
*
|
|
44
38
|
* @type {number}
|
|
45
39
|
* @memberof SEOResource
|
|
46
40
|
*/
|
|
47
41
|
siteId: number;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {string}
|
|
51
|
-
* @memberof SEOResource
|
|
52
|
-
*/
|
|
53
|
-
footerDescription: string;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {string}
|
|
57
|
-
* @memberof SEOResource
|
|
58
|
-
*/
|
|
59
|
-
pageDescription: string;
|
|
60
42
|
}
|
|
61
43
|
/**
|
|
62
44
|
* Check if a given object implements the SEOResource interface.
|
|
@@ -24,18 +24,12 @@ exports.SEOResourceToJSONTyped = SEOResourceToJSONTyped;
|
|
|
24
24
|
function instanceOfSEOResource(value) {
|
|
25
25
|
if (!('id' in value) || value['id'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
-
if (!('
|
|
27
|
+
if (!('seoTitle' in value) || value['seoTitle'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
-
if (!('
|
|
30
|
-
return false;
|
|
31
|
-
if (!('keywords' in value) || value['keywords'] === undefined)
|
|
29
|
+
if (!('seoDescription' in value) || value['seoDescription'] === undefined)
|
|
32
30
|
return false;
|
|
33
31
|
if (!('siteId' in value) || value['siteId'] === undefined)
|
|
34
32
|
return false;
|
|
35
|
-
if (!('footerDescription' in value) || value['footerDescription'] === undefined)
|
|
36
|
-
return false;
|
|
37
|
-
if (!('pageDescription' in value) || value['pageDescription'] === undefined)
|
|
38
|
-
return false;
|
|
39
33
|
return true;
|
|
40
34
|
}
|
|
41
35
|
function SEOResourceFromJSON(json) {
|
|
@@ -47,12 +41,9 @@ function SEOResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
41
|
}
|
|
48
42
|
return {
|
|
49
43
|
'id': json['id'],
|
|
50
|
-
'
|
|
51
|
-
'
|
|
52
|
-
'
|
|
53
|
-
'siteId': json['site_id'],
|
|
54
|
-
'footerDescription': json['footerDescription'],
|
|
55
|
-
'pageDescription': json['pageDescription'],
|
|
44
|
+
'seoTitle': json['seoTitle'],
|
|
45
|
+
'seoDescription': json['seoDescription'],
|
|
46
|
+
'siteId': json['siteId'],
|
|
56
47
|
};
|
|
57
48
|
}
|
|
58
49
|
function SEOResourceToJSON(json) {
|
|
@@ -65,11 +56,8 @@ function SEOResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
65
56
|
}
|
|
66
57
|
return {
|
|
67
58
|
'id': value['id'],
|
|
68
|
-
'
|
|
69
|
-
'
|
|
70
|
-
'
|
|
71
|
-
'site_id': value['siteId'],
|
|
72
|
-
'footerDescription': value['footerDescription'],
|
|
73
|
-
'pageDescription': value['pageDescription'],
|
|
59
|
+
'seoTitle': value['seoTitle'],
|
|
60
|
+
'seoDescription': value['seoDescription'],
|
|
61
|
+
'siteId': value['siteId'],
|
|
74
62
|
};
|
|
75
63
|
}
|
|
@@ -38,7 +38,7 @@ export interface StoreProductChildRequestSitesInner {
|
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof StoreProductChildRequestSitesInner
|
|
40
40
|
*/
|
|
41
|
-
description
|
|
41
|
+
description: string;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {number}
|
|
@@ -68,25 +68,13 @@ export interface StoreProductChildRequestSitesInner {
|
|
|
68
68
|
* @type {string}
|
|
69
69
|
* @memberof StoreProductChildRequestSitesInner
|
|
70
70
|
*/
|
|
71
|
-
|
|
71
|
+
seoTitle?: string;
|
|
72
72
|
/**
|
|
73
73
|
*
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof StoreProductChildRequestSitesInner
|
|
76
76
|
*/
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
*
|
|
80
|
-
* @type {string}
|
|
81
|
-
* @memberof StoreProductChildRequestSitesInner
|
|
82
|
-
*/
|
|
83
|
-
footerDescription?: string;
|
|
84
|
-
/**
|
|
85
|
-
*
|
|
86
|
-
* @type {string}
|
|
87
|
-
* @memberof StoreProductChildRequestSitesInner
|
|
88
|
-
*/
|
|
89
|
-
pageDescription?: string;
|
|
77
|
+
seoDescription?: string;
|
|
90
78
|
}
|
|
91
79
|
/**
|
|
92
80
|
* Check if a given object implements the StoreProductChildRequestSitesInner interface.
|
|
@@ -24,6 +24,8 @@ exports.StoreProductChildRequestSitesInnerToJSONTyped = StoreProductChildRequest
|
|
|
24
24
|
function instanceOfStoreProductChildRequestSitesInner(value) {
|
|
25
25
|
if (!('siteId' in value) || value['siteId'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
28
|
+
return false;
|
|
27
29
|
if (!('rrpPrice' in value) || value['rrpPrice'] === undefined)
|
|
28
30
|
return false;
|
|
29
31
|
if (!('salePrice' in value) || value['salePrice'] === undefined)
|
|
@@ -45,15 +47,13 @@ function StoreProductChildRequestSitesInnerFromJSONTyped(json, ignoreDiscriminat
|
|
|
45
47
|
'siteId': json['site_id'],
|
|
46
48
|
'name': json['name'] == null ? undefined : json['name'],
|
|
47
49
|
'displayName': json['display_name'] == null ? undefined : json['display_name'],
|
|
48
|
-
'description': json['description']
|
|
50
|
+
'description': json['description'],
|
|
49
51
|
'rrpPrice': json['rrp_price'],
|
|
50
52
|
'salePrice': json['sale_price'],
|
|
51
53
|
'slug': json['slug'],
|
|
52
54
|
'documents': json['documents'],
|
|
53
|
-
'
|
|
54
|
-
'
|
|
55
|
-
'footerDescription': json['footer_description'] == null ? undefined : json['footer_description'],
|
|
56
|
-
'pageDescription': json['page_description'] == null ? undefined : json['page_description'],
|
|
55
|
+
'seoTitle': json['seo_title'] == null ? undefined : json['seo_title'],
|
|
56
|
+
'seoDescription': json['seo_description'] == null ? undefined : json['seo_description'],
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
59
|
function StoreProductChildRequestSitesInnerToJSON(json) {
|
|
@@ -73,9 +73,7 @@ function StoreProductChildRequestSitesInnerToJSONTyped(value, ignoreDiscriminato
|
|
|
73
73
|
'sale_price': value['salePrice'],
|
|
74
74
|
'slug': value['slug'],
|
|
75
75
|
'documents': value['documents'],
|
|
76
|
-
'
|
|
77
|
-
'
|
|
78
|
-
'footer_description': value['footerDescription'],
|
|
79
|
-
'page_description': value['pageDescription'],
|
|
76
|
+
'seo_title': value['seoTitle'],
|
|
77
|
+
'seo_description': value['seoDescription'],
|
|
80
78
|
};
|
|
81
79
|
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { StoreSupplierRequestSeoInner } from './StoreSupplierRequestSeoInner';
|
|
13
|
+
import type { StoreSupplierRequestDescriptionsInner } from './StoreSupplierRequestDescriptionsInner';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -58,6 +59,12 @@ export interface StoreSupplierRequest {
|
|
|
58
59
|
* @memberof StoreSupplierRequest
|
|
59
60
|
*/
|
|
60
61
|
assetFileId: number;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {Array<StoreSupplierRequestDescriptionsInner>}
|
|
65
|
+
* @memberof StoreSupplierRequest
|
|
66
|
+
*/
|
|
67
|
+
descriptions: Array<StoreSupplierRequestDescriptionsInner>;
|
|
61
68
|
}
|
|
62
69
|
/**
|
|
63
70
|
* Check if a given object implements the StoreSupplierRequest interface.
|
|
@@ -19,6 +19,7 @@ exports.StoreSupplierRequestFromJSONTyped = StoreSupplierRequestFromJSONTyped;
|
|
|
19
19
|
exports.StoreSupplierRequestToJSON = StoreSupplierRequestToJSON;
|
|
20
20
|
exports.StoreSupplierRequestToJSONTyped = StoreSupplierRequestToJSONTyped;
|
|
21
21
|
var StoreSupplierRequestSeoInner_1 = require("./StoreSupplierRequestSeoInner");
|
|
22
|
+
var StoreSupplierRequestDescriptionsInner_1 = require("./StoreSupplierRequestDescriptionsInner");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the StoreSupplierRequest interface.
|
|
24
25
|
*/
|
|
@@ -35,6 +36,8 @@ function instanceOfStoreSupplierRequest(value) {
|
|
|
35
36
|
return false;
|
|
36
37
|
if (!('assetFileId' in value) || value['assetFileId'] === undefined)
|
|
37
38
|
return false;
|
|
39
|
+
if (!('descriptions' in value) || value['descriptions'] === undefined)
|
|
40
|
+
return false;
|
|
38
41
|
return true;
|
|
39
42
|
}
|
|
40
43
|
function StoreSupplierRequestFromJSON(json) {
|
|
@@ -52,6 +55,7 @@ function StoreSupplierRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
55
|
'altText': json['alt_text'] == null ? undefined : json['alt_text'],
|
|
53
56
|
'mimeType': json['mime_type'],
|
|
54
57
|
'assetFileId': json['asset_file_id'],
|
|
58
|
+
'descriptions': (json['descriptions'].map(StoreSupplierRequestDescriptionsInner_1.StoreSupplierRequestDescriptionsInnerFromJSON)),
|
|
55
59
|
};
|
|
56
60
|
}
|
|
57
61
|
function StoreSupplierRequestToJSON(json) {
|
|
@@ -70,5 +74,6 @@ function StoreSupplierRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
70
74
|
'alt_text': value['altText'],
|
|
71
75
|
'mime_type': value['mimeType'],
|
|
72
76
|
'asset_file_id': value['assetFileId'],
|
|
77
|
+
'descriptions': (value['descriptions'].map(StoreSupplierRequestDescriptionsInner_1.StoreSupplierRequestDescriptionsInnerToJSON)),
|
|
73
78
|
};
|
|
74
79
|
}
|
|
@@ -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 StoreSupplierRequestDescriptionsInner
|
|
16
|
+
*/
|
|
17
|
+
export interface StoreSupplierRequestDescriptionsInner {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof StoreSupplierRequestDescriptionsInner
|
|
22
|
+
*/
|
|
23
|
+
headerDescription?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof StoreSupplierRequestDescriptionsInner
|
|
28
|
+
*/
|
|
29
|
+
footerDescription?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof StoreSupplierRequestDescriptionsInner
|
|
34
|
+
*/
|
|
35
|
+
siteId: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the StoreSupplierRequestDescriptionsInner interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfStoreSupplierRequestDescriptionsInner(value: object): value is StoreSupplierRequestDescriptionsInner;
|
|
41
|
+
export declare function StoreSupplierRequestDescriptionsInnerFromJSON(json: any): StoreSupplierRequestDescriptionsInner;
|
|
42
|
+
export declare function StoreSupplierRequestDescriptionsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreSupplierRequestDescriptionsInner;
|
|
43
|
+
export declare function StoreSupplierRequestDescriptionsInnerToJSON(json: any): StoreSupplierRequestDescriptionsInner;
|
|
44
|
+
export declare function StoreSupplierRequestDescriptionsInnerToJSONTyped(value?: StoreSupplierRequestDescriptionsInner | null, ignoreDiscriminator?: boolean): any;
|