@digital8/lighting-illusions-ts-sdk 0.0.1361 → 0.0.1362
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 +72 -20
- package/README.md +54 -17
- package/dist/apis/AttributeApi.d.ts +16 -1
- package/dist/apis/AttributeApi.js +58 -0
- package/dist/apis/ProductRangeApi.d.ts +269 -0
- package/dist/apis/ProductRangeApi.js +1043 -0
- package/dist/apis/index.d.ts +1 -1
- package/dist/apis/index.js +1 -1
- package/dist/models/AttachAccessoriesProductRangeRequest.d.ts +32 -0
- package/dist/models/AttachAccessoriesProductRangeRequest.js +51 -0
- package/dist/models/AttachAttributesProductRangeRequest.d.ts +33 -0
- package/dist/models/AttachAttributesProductRangeRequest.js +52 -0
- package/dist/models/AttachAttributesProductRangeRequestAttributesInner.d.ts +38 -0
- package/dist/models/AttachAttributesProductRangeRequestAttributesInner.js +53 -0
- package/dist/models/AttachDocumentablesDocumentRequestDocumentablesInner.d.ts +2 -1
- package/dist/models/AttachDocumentablesDocumentRequestDocumentablesInner.js +2 -1
- package/dist/models/AttachDocumentsProductRangeRequest.d.ts +33 -0
- package/dist/models/AttachDocumentsProductRangeRequest.js +52 -0
- package/dist/models/DetachAccessoriesProductRangeRequest.d.ts +32 -0
- package/dist/models/DetachAccessoriesProductRangeRequest.js +51 -0
- package/dist/models/DetachAttributesProductRangeRequest.d.ts +32 -0
- package/dist/models/DetachAttributesProductRangeRequest.js +51 -0
- package/dist/models/DetachDocumentablesDocumentRequestDocumentablesInner.d.ts +2 -1
- package/dist/models/DetachDocumentablesDocumentRequestDocumentablesInner.js +2 -1
- package/dist/models/DetachDocumentsProductRangeRequest.d.ts +32 -0
- package/dist/models/DetachDocumentsProductRangeRequest.js +51 -0
- package/dist/models/GetAllDocumentRequest.d.ts +2 -1
- package/dist/models/GetAllDocumentRequest.js +2 -1
- package/dist/models/GetAllProductChildRequest.d.ts +1 -0
- package/dist/models/GetAllProductChildRequest.js +1 -0
- package/dist/models/GetAllProductRangeRequest.d.ts +98 -0
- package/dist/models/GetAllProductRangeRequest.js +82 -0
- package/dist/models/IndexAttributeRequest.d.ts +2 -0
- package/dist/models/IndexAttributeRequest.js +3 -1
- package/dist/models/IndexDocumentRequest.d.ts +2 -1
- package/dist/models/IndexDocumentRequest.js +2 -1
- package/dist/models/IndexModelAttributeRequest.d.ts +118 -0
- package/dist/models/IndexModelAttributeRequest.js +93 -0
- package/dist/models/IndexProductChildRequest.d.ts +1 -1
- package/dist/models/IndexProductChildRequest.js +1 -1
- package/dist/models/IndexProductRangeRequest.d.ts +110 -0
- package/dist/models/{IndexLabelRequest.js → IndexProductRangeRequest.js} +23 -22
- package/dist/models/LabelResource.d.ts +2 -20
- package/dist/models/LabelResource.js +5 -15
- package/dist/models/ModelAttributeListResource.d.ts +64 -0
- package/dist/models/ModelAttributeListResource.js +71 -0
- package/dist/models/ModelAttributeListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ModelAttributeListResourceArrayResponse.js +50 -0
- package/dist/models/ModelAttributeResource.d.ts +6 -0
- package/dist/models/ModelAttributeResource.js +2 -0
- package/dist/models/PaginatedModelAttributeListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedModelAttributeListResourceResponse.js +57 -0
- package/dist/models/PaginatedProductRangeFrontendListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductRangeFrontendListResourceResponse.js +57 -0
- package/dist/models/PaginatedProductRangeListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductRangeListResourceResponse.js +57 -0
- package/dist/models/PaginatedProductRangeLiteResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductRangeLiteResourceResponse.js +57 -0
- package/dist/models/PaginatedProductRangeResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductRangeResourceResponse.js +57 -0
- package/dist/models/ProductRangeFrontendListResource.d.ts +62 -0
- package/dist/models/ProductRangeFrontendListResource.js +71 -0
- package/dist/models/ProductRangeFrontendListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRangeFrontendListResourceArrayResponse.js +50 -0
- package/dist/models/ProductRangeFrontendResource.d.ts +118 -0
- package/dist/models/ProductRangeFrontendResource.js +109 -0
- package/dist/models/ProductRangeFrontendResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRangeFrontendResourceArrayResponse.js +50 -0
- package/dist/models/ProductRangeListResource.d.ts +66 -0
- package/dist/models/ProductRangeListResource.js +75 -0
- package/dist/models/ProductRangeListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRangeListResourceArrayResponse.js +50 -0
- package/dist/models/ProductRangeLiteResource.d.ts +38 -0
- package/dist/models/ProductRangeLiteResource.js +55 -0
- package/dist/models/ProductRangeLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRangeLiteResourceArrayResponse.js +50 -0
- package/dist/models/ProductRangeResource.d.ts +89 -0
- package/dist/models/ProductRangeResource.js +86 -0
- package/dist/models/ProductRangeResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRangeResourceArrayResponse.js +50 -0
- package/dist/models/ProductRangeSiteDetailLiteResource.d.ts +44 -0
- package/dist/models/ProductRangeSiteDetailLiteResource.js +59 -0
- package/dist/models/ProductRangeSiteDetailLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRangeSiteDetailLiteResourceArrayResponse.js +50 -0
- package/dist/models/ProductRangeSiteDetailResource.d.ts +101 -0
- package/dist/models/ProductRangeSiteDetailResource.js +98 -0
- package/dist/models/ProductRangeSiteDetailResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRangeSiteDetailResourceArrayResponse.js +50 -0
- package/dist/models/ProductSearchResultResource.d.ts +1 -1
- package/dist/models/ProductSearchResultResource.js +3 -3
- package/dist/models/StoreAssetForAssetableRequest.d.ts +2 -0
- package/dist/models/StoreAssetForAssetableRequest.js +3 -1
- package/dist/models/StoreProductRangeRequest.d.ts +52 -0
- package/dist/models/StoreProductRangeRequest.js +59 -0
- package/dist/models/StoreProductRangeRequestSitesInner.d.ts +92 -0
- package/dist/models/StoreProductRangeRequestSitesInner.js +75 -0
- package/dist/models/UpdateProductRangeRequest.d.ts +59 -0
- package/dist/models/UpdateProductRangeRequest.js +62 -0
- package/dist/models/UpdateProductRangeRequestAttributesInner.d.ts +38 -0
- package/dist/models/UpdateProductRangeRequestAttributesInner.js +51 -0
- package/dist/models/UpdateProductTypeRequest.d.ts +9 -9
- package/dist/models/UpdateProductTypeRequest.js +9 -9
- package/dist/models/index.d.ts +35 -9
- package/dist/models/index.js +35 -9
- package/docs/AttachAccessoriesProductRangeRequest.md +34 -0
- package/docs/AttachAttributesProductRangeRequest.md +34 -0
- package/docs/AttachAttributesProductRangeRequestAttributesInner.md +36 -0
- package/docs/AttachDocumentsProductRangeRequest.md +34 -0
- package/docs/AttributeApi.md +66 -0
- package/docs/DetachAccessoriesProductRangeRequest.md +34 -0
- package/docs/{LabelListResourceArrayResponse.md → DetachAttributesProductRangeRequest.md} +6 -6
- package/docs/DetachDocumentsProductRangeRequest.md +34 -0
- package/docs/GetAllProductRangeRequest.md +50 -0
- package/docs/{IndexLabelRequest.md → IndexModelAttributeRequest.md} +10 -6
- package/docs/IndexProductRangeRequest.md +54 -0
- package/docs/LabelResource.md +4 -10
- package/docs/ModelAttributeListResource.md +44 -0
- package/docs/ModelAttributeListResourceArrayResponse.md +34 -0
- package/docs/ModelAttributeResource.md +2 -0
- package/docs/PaginatedModelAttributeListResourceResponse.md +36 -0
- package/docs/PaginatedProductRangeFrontendListResourceResponse.md +36 -0
- package/docs/PaginatedProductRangeListResourceResponse.md +36 -0
- package/docs/PaginatedProductRangeLiteResourceResponse.md +36 -0
- package/docs/{PaginatedLabelListResourceResponse.md → PaginatedProductRangeResourceResponse.md} +5 -5
- package/docs/ProductRangeApi.md +1097 -0
- package/docs/ProductRangeFrontendListResource.md +44 -0
- package/docs/ProductRangeFrontendListResourceArrayResponse.md +34 -0
- package/docs/ProductRangeFrontendResource.md +62 -0
- package/docs/ProductRangeFrontendResourceArrayResponse.md +34 -0
- package/docs/ProductRangeListResource.md +44 -0
- package/docs/ProductRangeListResourceArrayResponse.md +34 -0
- package/docs/{LabelLiteResource.md → ProductRangeLiteResource.md} +6 -12
- package/docs/ProductRangeLiteResourceArrayResponse.md +34 -0
- package/docs/ProductRangeResource.md +52 -0
- package/docs/{LabelLiteResourceArrayResponse.md → ProductRangeResourceArrayResponse.md} +5 -5
- package/docs/ProductRangeSiteDetailLiteResource.md +38 -0
- package/docs/ProductRangeSiteDetailLiteResourceArrayResponse.md +34 -0
- package/docs/ProductRangeSiteDetailResource.md +56 -0
- package/docs/ProductRangeSiteDetailResourceArrayResponse.md +34 -0
- package/docs/ProductSearchResultResource.md +2 -2
- package/docs/StoreProductRangeRequest.md +40 -0
- package/docs/StoreProductRangeRequestSitesInner.md +54 -0
- package/docs/UpdateProductRangeRequest.md +42 -0
- package/docs/{UpdateProductTypeRequestPerformanceValuesInner.md → UpdateProductRangeRequestAttributesInner.md} +4 -4
- package/docs/UpdateProductTypeRequest.md +4 -4
- package/package.json +1 -1
- package/src/apis/AttributeApi.ts +50 -0
- package/src/apis/ProductRangeApi.ts +888 -0
- package/src/apis/index.ts +1 -1
- package/src/models/AttachAccessoriesProductRangeRequest.ts +66 -0
- package/src/models/AttachAttributesProductRangeRequest.ts +74 -0
- package/src/models/AttachAttributesProductRangeRequestAttributesInner.ts +74 -0
- package/src/models/AttachDocumentablesDocumentRequestDocumentablesInner.ts +2 -1
- package/src/models/AttachDocumentsProductRangeRequest.ts +74 -0
- package/src/models/DetachAccessoriesProductRangeRequest.ts +66 -0
- package/src/models/DetachAttributesProductRangeRequest.ts +66 -0
- package/src/models/DetachDocumentablesDocumentRequestDocumentablesInner.ts +2 -1
- package/src/models/DetachDocumentsProductRangeRequest.ts +66 -0
- package/src/models/GetAllDocumentRequest.ts +2 -1
- package/src/models/GetAllProductChildRequest.ts +1 -0
- package/src/models/GetAllProductRangeRequest.ts +151 -0
- package/src/models/IndexAttributeRequest.ts +3 -1
- package/src/models/IndexDocumentRequest.ts +2 -1
- package/src/models/IndexModelAttributeRequest.ts +176 -0
- package/src/models/IndexProductChildRequest.ts +1 -1
- package/src/models/IndexProductRangeRequest.ts +167 -0
- package/src/models/LabelResource.ts +7 -33
- package/src/models/ModelAttributeListResource.ts +125 -0
- package/src/models/ModelAttributeListResourceArrayResponse.ts +73 -0
- package/src/models/ModelAttributeResource.ts +8 -0
- package/src/models/PaginatedModelAttributeListResourceResponse.ts +90 -0
- package/src/models/PaginatedProductRangeFrontendListResourceResponse.ts +90 -0
- package/src/models/PaginatedProductRangeListResourceResponse.ts +90 -0
- package/src/models/PaginatedProductRangeLiteResourceResponse.ts +90 -0
- package/src/models/PaginatedProductRangeResourceResponse.ts +90 -0
- package/src/models/ProductRangeFrontendListResource.ts +111 -0
- package/src/models/ProductRangeFrontendListResourceArrayResponse.ts +73 -0
- package/src/models/ProductRangeFrontendResource.ts +207 -0
- package/src/models/ProductRangeFrontendResourceArrayResponse.ts +73 -0
- package/src/models/ProductRangeListResource.ts +140 -0
- package/src/models/ProductRangeListResourceArrayResponse.ts +73 -0
- package/src/models/ProductRangeLiteResource.ts +75 -0
- package/src/models/ProductRangeLiteResourceArrayResponse.ts +73 -0
- package/src/models/ProductRangeResource.ts +167 -0
- package/src/models/ProductRangeResourceArrayResponse.ts +73 -0
- package/src/models/ProductRangeSiteDetailLiteResource.ts +84 -0
- package/src/models/ProductRangeSiteDetailLiteResourceArrayResponse.ts +73 -0
- package/src/models/ProductRangeSiteDetailResource.ts +187 -0
- package/src/models/ProductRangeSiteDetailResourceArrayResponse.ts +73 -0
- package/src/models/ProductSearchResultResource.ts +4 -4
- package/src/models/StoreAssetForAssetableRequest.ts +3 -1
- package/src/models/StoreProductRangeRequest.ts +105 -0
- package/src/models/StoreProductRangeRequestSitesInner.ts +148 -0
- package/src/models/UpdateProductRangeRequest.ts +120 -0
- package/src/models/UpdateProductRangeRequestAttributesInner.ts +73 -0
- package/src/models/UpdateProductTypeRequest.ts +22 -22
- package/src/models/index.ts +35 -9
- package/dist/apis/LabelApi.d.ts +0 -109
- package/dist/apis/LabelApi.js +0 -433
- package/dist/models/IndexLabelRequest.d.ts +0 -101
- package/dist/models/LabelListResource.d.ts +0 -81
- package/dist/models/LabelListResource.js +0 -78
- package/dist/models/LabelListResourceArrayResponse.d.ts +0 -33
- package/dist/models/LabelListResourceArrayResponse.js +0 -50
- package/dist/models/LabelLiteResource.d.ts +0 -56
- package/dist/models/LabelLiteResource.js +0 -65
- package/dist/models/LabelLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/LabelLiteResourceArrayResponse.js +0 -50
- package/dist/models/PaginatedLabelListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedLabelListResourceResponse.js +0 -57
- package/dist/models/StoreLabelRequest.d.ts +0 -74
- package/dist/models/StoreLabelRequest.js +0 -71
- package/dist/models/UpdateLabelRequest.d.ts +0 -74
- package/dist/models/UpdateLabelRequest.js +0 -63
- package/dist/models/UpdateProductTypeRequestPerformanceValuesInner.d.ts +0 -38
- package/dist/models/UpdateProductTypeRequestPerformanceValuesInner.js +0 -51
- package/docs/LabelApi.md +0 -407
- package/docs/LabelListResource.md +0 -50
- package/docs/StoreLabelRequest.md +0 -48
- package/docs/UpdateLabelRequest.md +0 -48
- package/src/apis/LabelApi.ts +0 -328
- package/src/models/IndexLabelRequest.ts +0 -154
- package/src/models/LabelListResource.ts +0 -143
- package/src/models/LabelListResourceArrayResponse.ts +0 -73
- package/src/models/LabelLiteResource.ts +0 -101
- package/src/models/LabelLiteResourceArrayResponse.ts +0 -73
- package/src/models/PaginatedLabelListResourceResponse.ts +0 -90
- package/src/models/StoreLabelRequest.ts +0 -125
- package/src/models/UpdateLabelRequest.ts +0 -121
- package/src/models/UpdateProductTypeRequestPerformanceValuesInner.ts +0 -73
|
@@ -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.instanceOfProductRangeSiteDetailResourceArrayResponse = instanceOfProductRangeSiteDetailResourceArrayResponse;
|
|
17
|
+
exports.ProductRangeSiteDetailResourceArrayResponseFromJSON = ProductRangeSiteDetailResourceArrayResponseFromJSON;
|
|
18
|
+
exports.ProductRangeSiteDetailResourceArrayResponseFromJSONTyped = ProductRangeSiteDetailResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.ProductRangeSiteDetailResourceArrayResponseToJSON = ProductRangeSiteDetailResourceArrayResponseToJSON;
|
|
20
|
+
exports.ProductRangeSiteDetailResourceArrayResponseToJSONTyped = ProductRangeSiteDetailResourceArrayResponseToJSONTyped;
|
|
21
|
+
var ProductRangeSiteDetailResource_1 = require("./ProductRangeSiteDetailResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ProductRangeSiteDetailResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfProductRangeSiteDetailResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function ProductRangeSiteDetailResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return ProductRangeSiteDetailResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function ProductRangeSiteDetailResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(ProductRangeSiteDetailResource_1.ProductRangeSiteDetailResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function ProductRangeSiteDetailResourceArrayResponseToJSON(json) {
|
|
40
|
+
return ProductRangeSiteDetailResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ProductRangeSiteDetailResourceArrayResponseToJSONTyped(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(ProductRangeSiteDetailResource_1.ProductRangeSiteDetailResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -38,7 +38,7 @@ function instanceOfProductSearchResultResource(value) {
|
|
|
38
38
|
return false;
|
|
39
39
|
if (!('thumbnail' in value) || value['thumbnail'] === undefined)
|
|
40
40
|
return false;
|
|
41
|
-
if (!('
|
|
41
|
+
if (!('labelDetails' in value) || value['labelDetails'] === undefined)
|
|
42
42
|
return false;
|
|
43
43
|
if (!('supplierName' in value) || value['supplierName'] === undefined)
|
|
44
44
|
return false;
|
|
@@ -73,7 +73,7 @@ function ProductSearchResultResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
73
73
|
'salePrice': json['salePrice'],
|
|
74
74
|
'thumbnail': json['thumbnail'],
|
|
75
75
|
'averageRating': json['averageRating'] == null ? undefined : json['averageRating'],
|
|
76
|
-
'
|
|
76
|
+
'labelDetails': json['labelDetails'],
|
|
77
77
|
'supplierName': json['supplierName'],
|
|
78
78
|
'supplierLogo': json['supplierLogo'],
|
|
79
79
|
'supplierId': json['supplierId'],
|
|
@@ -101,7 +101,7 @@ function ProductSearchResultResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
101
101
|
'salePrice': value['salePrice'],
|
|
102
102
|
'thumbnail': value['thumbnail'],
|
|
103
103
|
'averageRating': value['averageRating'],
|
|
104
|
-
'
|
|
104
|
+
'labelDetails': value['labelDetails'],
|
|
105
105
|
'supplierName': value['supplierName'],
|
|
106
106
|
'supplierLogo': value['supplierLogo'],
|
|
107
107
|
'supplierId': value['supplierId'],
|
|
@@ -69,7 +69,9 @@ export interface StoreAssetForAssetableRequest {
|
|
|
69
69
|
*/
|
|
70
70
|
export declare const StoreAssetForAssetableRequestAssetableTypeEnum: {
|
|
71
71
|
readonly AppModelsProductsProductChild: "App\\Models\\Products\\ProductChild";
|
|
72
|
+
readonly AppModelsProductRangesProductRange: "App\\Models\\ProductRanges\\ProductRange";
|
|
72
73
|
readonly ProductChild: "productChild";
|
|
74
|
+
readonly ProductRange: "productRange";
|
|
73
75
|
};
|
|
74
76
|
export type StoreAssetForAssetableRequestAssetableTypeEnum = typeof StoreAssetForAssetableRequestAssetableTypeEnum[keyof typeof StoreAssetForAssetableRequestAssetableTypeEnum];
|
|
75
77
|
/**
|
|
@@ -24,7 +24,9 @@ exports.StoreAssetForAssetableRequestToJSONTyped = StoreAssetForAssetableRequest
|
|
|
24
24
|
*/
|
|
25
25
|
exports.StoreAssetForAssetableRequestAssetableTypeEnum = {
|
|
26
26
|
AppModelsProductsProductChild: 'App\\Models\\Products\\ProductChild',
|
|
27
|
-
|
|
27
|
+
AppModelsProductRangesProductRange: 'App\\Models\\ProductRanges\\ProductRange',
|
|
28
|
+
ProductChild: 'productChild',
|
|
29
|
+
ProductRange: 'productRange'
|
|
28
30
|
};
|
|
29
31
|
/**
|
|
30
32
|
* Check if a given object implements the StoreAssetForAssetableRequest interface.
|
|
@@ -0,0 +1,52 @@
|
|
|
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 { StoreProductChildRequestAssetsInner } from './StoreProductChildRequestAssetsInner';
|
|
13
|
+
import type { StoreProductRangeRequestSitesInner } from './StoreProductRangeRequestSitesInner';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface StoreProductRangeRequest
|
|
18
|
+
*/
|
|
19
|
+
export interface StoreProductRangeRequest {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof StoreProductRangeRequest
|
|
24
|
+
*/
|
|
25
|
+
name: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {number}
|
|
29
|
+
* @memberof StoreProductRangeRequest
|
|
30
|
+
*/
|
|
31
|
+
supplierId?: number;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {Array<StoreProductRangeRequestSitesInner>}
|
|
35
|
+
* @memberof StoreProductRangeRequest
|
|
36
|
+
*/
|
|
37
|
+
sites?: Array<StoreProductRangeRequestSitesInner>;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {Array<StoreProductChildRequestAssetsInner>}
|
|
41
|
+
* @memberof StoreProductRangeRequest
|
|
42
|
+
*/
|
|
43
|
+
assets?: Array<StoreProductChildRequestAssetsInner>;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the StoreProductRangeRequest interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfStoreProductRangeRequest(value: object): value is StoreProductRangeRequest;
|
|
49
|
+
export declare function StoreProductRangeRequestFromJSON(json: any): StoreProductRangeRequest;
|
|
50
|
+
export declare function StoreProductRangeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreProductRangeRequest;
|
|
51
|
+
export declare function StoreProductRangeRequestToJSON(json: any): StoreProductRangeRequest;
|
|
52
|
+
export declare function StoreProductRangeRequestToJSONTyped(value?: StoreProductRangeRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
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.instanceOfStoreProductRangeRequest = instanceOfStoreProductRangeRequest;
|
|
17
|
+
exports.StoreProductRangeRequestFromJSON = StoreProductRangeRequestFromJSON;
|
|
18
|
+
exports.StoreProductRangeRequestFromJSONTyped = StoreProductRangeRequestFromJSONTyped;
|
|
19
|
+
exports.StoreProductRangeRequestToJSON = StoreProductRangeRequestToJSON;
|
|
20
|
+
exports.StoreProductRangeRequestToJSONTyped = StoreProductRangeRequestToJSONTyped;
|
|
21
|
+
var StoreProductChildRequestAssetsInner_1 = require("./StoreProductChildRequestAssetsInner");
|
|
22
|
+
var StoreProductRangeRequestSitesInner_1 = require("./StoreProductRangeRequestSitesInner");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the StoreProductRangeRequest interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfStoreProductRangeRequest(value) {
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function StoreProductRangeRequestFromJSON(json) {
|
|
32
|
+
return StoreProductRangeRequestFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function StoreProductRangeRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'name': json['name'],
|
|
40
|
+
'supplierId': json['supplier_id'] == null ? undefined : json['supplier_id'],
|
|
41
|
+
'sites': json['sites'] == null ? undefined : (json['sites'].map(StoreProductRangeRequestSitesInner_1.StoreProductRangeRequestSitesInnerFromJSON)),
|
|
42
|
+
'assets': json['assets'] == null ? undefined : (json['assets'].map(StoreProductChildRequestAssetsInner_1.StoreProductChildRequestAssetsInnerFromJSON)),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function StoreProductRangeRequestToJSON(json) {
|
|
46
|
+
return StoreProductRangeRequestToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function StoreProductRangeRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'name': value['name'],
|
|
55
|
+
'supplier_id': value['supplierId'],
|
|
56
|
+
'sites': value['sites'] == null ? undefined : (value['sites'].map(StoreProductRangeRequestSitesInner_1.StoreProductRangeRequestSitesInnerToJSON)),
|
|
57
|
+
'assets': value['assets'] == null ? undefined : (value['assets'].map(StoreProductChildRequestAssetsInner_1.StoreProductChildRequestAssetsInnerToJSON)),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
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 StoreProductRangeRequestSitesInner
|
|
16
|
+
*/
|
|
17
|
+
export interface StoreProductRangeRequestSitesInner {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof StoreProductRangeRequestSitesInner
|
|
22
|
+
*/
|
|
23
|
+
siteId: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof StoreProductRangeRequestSitesInner
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof StoreProductRangeRequestSitesInner
|
|
34
|
+
*/
|
|
35
|
+
slug: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof StoreProductRangeRequestSitesInner
|
|
40
|
+
*/
|
|
41
|
+
description?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof StoreProductRangeRequestSitesInner
|
|
46
|
+
*/
|
|
47
|
+
content?: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof StoreProductRangeRequestSitesInner
|
|
52
|
+
*/
|
|
53
|
+
excerpt?: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof StoreProductRangeRequestSitesInner
|
|
58
|
+
*/
|
|
59
|
+
popularityScore?: number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {boolean}
|
|
63
|
+
* @memberof StoreProductRangeRequestSitesInner
|
|
64
|
+
*/
|
|
65
|
+
isDisabled?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {Array<number>}
|
|
69
|
+
* @memberof StoreProductRangeRequestSitesInner
|
|
70
|
+
*/
|
|
71
|
+
categories?: Array<number>;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof StoreProductRangeRequestSitesInner
|
|
76
|
+
*/
|
|
77
|
+
seoTitle?: string;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof StoreProductRangeRequestSitesInner
|
|
82
|
+
*/
|
|
83
|
+
seoDescription?: string;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Check if a given object implements the StoreProductRangeRequestSitesInner interface.
|
|
87
|
+
*/
|
|
88
|
+
export declare function instanceOfStoreProductRangeRequestSitesInner(value: object): value is StoreProductRangeRequestSitesInner;
|
|
89
|
+
export declare function StoreProductRangeRequestSitesInnerFromJSON(json: any): StoreProductRangeRequestSitesInner;
|
|
90
|
+
export declare function StoreProductRangeRequestSitesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreProductRangeRequestSitesInner;
|
|
91
|
+
export declare function StoreProductRangeRequestSitesInnerToJSON(json: any): StoreProductRangeRequestSitesInner;
|
|
92
|
+
export declare function StoreProductRangeRequestSitesInnerToJSONTyped(value?: StoreProductRangeRequestSitesInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,75 @@
|
|
|
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.instanceOfStoreProductRangeRequestSitesInner = instanceOfStoreProductRangeRequestSitesInner;
|
|
17
|
+
exports.StoreProductRangeRequestSitesInnerFromJSON = StoreProductRangeRequestSitesInnerFromJSON;
|
|
18
|
+
exports.StoreProductRangeRequestSitesInnerFromJSONTyped = StoreProductRangeRequestSitesInnerFromJSONTyped;
|
|
19
|
+
exports.StoreProductRangeRequestSitesInnerToJSON = StoreProductRangeRequestSitesInnerToJSON;
|
|
20
|
+
exports.StoreProductRangeRequestSitesInnerToJSONTyped = StoreProductRangeRequestSitesInnerToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the StoreProductRangeRequestSitesInner interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfStoreProductRangeRequestSitesInner(value) {
|
|
25
|
+
if (!('siteId' in value) || value['siteId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('slug' in value) || value['slug'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function StoreProductRangeRequestSitesInnerFromJSON(json) {
|
|
34
|
+
return StoreProductRangeRequestSitesInnerFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function StoreProductRangeRequestSitesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'siteId': json['site_id'],
|
|
42
|
+
'name': json['name'],
|
|
43
|
+
'slug': json['slug'],
|
|
44
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
45
|
+
'content': json['content'] == null ? undefined : json['content'],
|
|
46
|
+
'excerpt': json['excerpt'] == null ? undefined : json['excerpt'],
|
|
47
|
+
'popularityScore': json['popularity_score'] == null ? undefined : json['popularity_score'],
|
|
48
|
+
'isDisabled': json['is_disabled'] == null ? undefined : json['is_disabled'],
|
|
49
|
+
'categories': json['categories'] == null ? undefined : json['categories'],
|
|
50
|
+
'seoTitle': json['seo_title'] == null ? undefined : json['seo_title'],
|
|
51
|
+
'seoDescription': json['seo_description'] == null ? undefined : json['seo_description'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
function StoreProductRangeRequestSitesInnerToJSON(json) {
|
|
55
|
+
return StoreProductRangeRequestSitesInnerToJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
function StoreProductRangeRequestSitesInnerToJSONTyped(value, ignoreDiscriminator) {
|
|
58
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'site_id': value['siteId'],
|
|
64
|
+
'name': value['name'],
|
|
65
|
+
'slug': value['slug'],
|
|
66
|
+
'description': value['description'],
|
|
67
|
+
'content': value['content'],
|
|
68
|
+
'excerpt': value['excerpt'],
|
|
69
|
+
'popularity_score': value['popularityScore'],
|
|
70
|
+
'is_disabled': value['isDisabled'],
|
|
71
|
+
'categories': value['categories'],
|
|
72
|
+
'seo_title': value['seoTitle'],
|
|
73
|
+
'seo_description': value['seoDescription'],
|
|
74
|
+
};
|
|
75
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
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 { UpdateProductChildRequestAssetsInner } from './UpdateProductChildRequestAssetsInner';
|
|
13
|
+
import type { StoreProductRangeRequestSitesInner } from './StoreProductRangeRequestSitesInner';
|
|
14
|
+
import type { UpdateProductRangeRequestAttributesInner } from './UpdateProductRangeRequestAttributesInner';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface UpdateProductRangeRequest
|
|
19
|
+
*/
|
|
20
|
+
export interface UpdateProductRangeRequest {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof UpdateProductRangeRequest
|
|
25
|
+
*/
|
|
26
|
+
name: string;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {number}
|
|
30
|
+
* @memberof UpdateProductRangeRequest
|
|
31
|
+
*/
|
|
32
|
+
supplierId?: number;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {Array<UpdateProductRangeRequestAttributesInner>}
|
|
36
|
+
* @memberof UpdateProductRangeRequest
|
|
37
|
+
*/
|
|
38
|
+
attributes?: Array<UpdateProductRangeRequestAttributesInner>;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {Array<StoreProductRangeRequestSitesInner>}
|
|
42
|
+
* @memberof UpdateProductRangeRequest
|
|
43
|
+
*/
|
|
44
|
+
sites?: Array<StoreProductRangeRequestSitesInner>;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {Array<UpdateProductChildRequestAssetsInner>}
|
|
48
|
+
* @memberof UpdateProductRangeRequest
|
|
49
|
+
*/
|
|
50
|
+
assets?: Array<UpdateProductChildRequestAssetsInner>;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the UpdateProductRangeRequest interface.
|
|
54
|
+
*/
|
|
55
|
+
export declare function instanceOfUpdateProductRangeRequest(value: object): value is UpdateProductRangeRequest;
|
|
56
|
+
export declare function UpdateProductRangeRequestFromJSON(json: any): UpdateProductRangeRequest;
|
|
57
|
+
export declare function UpdateProductRangeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateProductRangeRequest;
|
|
58
|
+
export declare function UpdateProductRangeRequestToJSON(json: any): UpdateProductRangeRequest;
|
|
59
|
+
export declare function UpdateProductRangeRequestToJSONTyped(value?: UpdateProductRangeRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
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.instanceOfUpdateProductRangeRequest = instanceOfUpdateProductRangeRequest;
|
|
17
|
+
exports.UpdateProductRangeRequestFromJSON = UpdateProductRangeRequestFromJSON;
|
|
18
|
+
exports.UpdateProductRangeRequestFromJSONTyped = UpdateProductRangeRequestFromJSONTyped;
|
|
19
|
+
exports.UpdateProductRangeRequestToJSON = UpdateProductRangeRequestToJSON;
|
|
20
|
+
exports.UpdateProductRangeRequestToJSONTyped = UpdateProductRangeRequestToJSONTyped;
|
|
21
|
+
var UpdateProductChildRequestAssetsInner_1 = require("./UpdateProductChildRequestAssetsInner");
|
|
22
|
+
var StoreProductRangeRequestSitesInner_1 = require("./StoreProductRangeRequestSitesInner");
|
|
23
|
+
var UpdateProductRangeRequestAttributesInner_1 = require("./UpdateProductRangeRequestAttributesInner");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the UpdateProductRangeRequest interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfUpdateProductRangeRequest(value) {
|
|
28
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function UpdateProductRangeRequestFromJSON(json) {
|
|
33
|
+
return UpdateProductRangeRequestFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function UpdateProductRangeRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'name': json['name'],
|
|
41
|
+
'supplierId': json['supplier_id'] == null ? undefined : json['supplier_id'],
|
|
42
|
+
'attributes': json['attributes'] == null ? undefined : (json['attributes'].map(UpdateProductRangeRequestAttributesInner_1.UpdateProductRangeRequestAttributesInnerFromJSON)),
|
|
43
|
+
'sites': json['sites'] == null ? undefined : (json['sites'].map(StoreProductRangeRequestSitesInner_1.StoreProductRangeRequestSitesInnerFromJSON)),
|
|
44
|
+
'assets': json['assets'] == null ? undefined : (json['assets'].map(UpdateProductChildRequestAssetsInner_1.UpdateProductChildRequestAssetsInnerFromJSON)),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function UpdateProductRangeRequestToJSON(json) {
|
|
48
|
+
return UpdateProductRangeRequestToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function UpdateProductRangeRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'name': value['name'],
|
|
57
|
+
'supplier_id': value['supplierId'],
|
|
58
|
+
'attributes': value['attributes'] == null ? undefined : (value['attributes'].map(UpdateProductRangeRequestAttributesInner_1.UpdateProductRangeRequestAttributesInnerToJSON)),
|
|
59
|
+
'sites': value['sites'] == null ? undefined : (value['sites'].map(StoreProductRangeRequestSitesInner_1.StoreProductRangeRequestSitesInnerToJSON)),
|
|
60
|
+
'assets': value['assets'] == null ? undefined : (value['assets'].map(UpdateProductChildRequestAssetsInner_1.UpdateProductChildRequestAssetsInnerToJSON)),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 UpdateProductRangeRequestAttributesInner
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateProductRangeRequestAttributesInner {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof UpdateProductRangeRequestAttributesInner
|
|
22
|
+
*/
|
|
23
|
+
attributeId?: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof UpdateProductRangeRequestAttributesInner
|
|
28
|
+
*/
|
|
29
|
+
order?: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the UpdateProductRangeRequestAttributesInner interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfUpdateProductRangeRequestAttributesInner(value: object): value is UpdateProductRangeRequestAttributesInner;
|
|
35
|
+
export declare function UpdateProductRangeRequestAttributesInnerFromJSON(json: any): UpdateProductRangeRequestAttributesInner;
|
|
36
|
+
export declare function UpdateProductRangeRequestAttributesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateProductRangeRequestAttributesInner;
|
|
37
|
+
export declare function UpdateProductRangeRequestAttributesInnerToJSON(json: any): UpdateProductRangeRequestAttributesInner;
|
|
38
|
+
export declare function UpdateProductRangeRequestAttributesInnerToJSONTyped(value?: UpdateProductRangeRequestAttributesInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.instanceOfUpdateProductRangeRequestAttributesInner = instanceOfUpdateProductRangeRequestAttributesInner;
|
|
17
|
+
exports.UpdateProductRangeRequestAttributesInnerFromJSON = UpdateProductRangeRequestAttributesInnerFromJSON;
|
|
18
|
+
exports.UpdateProductRangeRequestAttributesInnerFromJSONTyped = UpdateProductRangeRequestAttributesInnerFromJSONTyped;
|
|
19
|
+
exports.UpdateProductRangeRequestAttributesInnerToJSON = UpdateProductRangeRequestAttributesInnerToJSON;
|
|
20
|
+
exports.UpdateProductRangeRequestAttributesInnerToJSONTyped = UpdateProductRangeRequestAttributesInnerToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the UpdateProductRangeRequestAttributesInner interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfUpdateProductRangeRequestAttributesInner(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function UpdateProductRangeRequestAttributesInnerFromJSON(json) {
|
|
28
|
+
return UpdateProductRangeRequestAttributesInnerFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function UpdateProductRangeRequestAttributesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'attributeId': json['attribute_id'] == null ? undefined : json['attribute_id'],
|
|
36
|
+
'order': json['order'] == null ? undefined : json['order'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function UpdateProductRangeRequestAttributesInnerToJSON(json) {
|
|
40
|
+
return UpdateProductRangeRequestAttributesInnerToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function UpdateProductRangeRequestAttributesInnerToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'attribute_id': value['attributeId'],
|
|
49
|
+
'order': value['order'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { UpdateProductRangeRequestAttributesInner } from './UpdateProductRangeRequestAttributesInner';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -24,28 +24,28 @@ export interface UpdateProductTypeRequest {
|
|
|
24
24
|
name: string;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
|
-
* @type {Array<
|
|
27
|
+
* @type {Array<UpdateProductRangeRequestAttributesInner>}
|
|
28
28
|
* @memberof UpdateProductTypeRequest
|
|
29
29
|
*/
|
|
30
|
-
performanceValues?: Array<
|
|
30
|
+
performanceValues?: Array<UpdateProductRangeRequestAttributesInner>;
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
|
-
* @type {Array<
|
|
33
|
+
* @type {Array<UpdateProductRangeRequestAttributesInner>}
|
|
34
34
|
* @memberof UpdateProductTypeRequest
|
|
35
35
|
*/
|
|
36
|
-
dimensionValues?: Array<
|
|
36
|
+
dimensionValues?: Array<UpdateProductRangeRequestAttributesInner>;
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
|
-
* @type {Array<
|
|
39
|
+
* @type {Array<UpdateProductRangeRequestAttributesInner>}
|
|
40
40
|
* @memberof UpdateProductTypeRequest
|
|
41
41
|
*/
|
|
42
|
-
specificationValues?: Array<
|
|
42
|
+
specificationValues?: Array<UpdateProductRangeRequestAttributesInner>;
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
|
-
* @type {Array<
|
|
45
|
+
* @type {Array<UpdateProductRangeRequestAttributesInner>}
|
|
46
46
|
* @memberof UpdateProductTypeRequest
|
|
47
47
|
*/
|
|
48
|
-
otherValues?: Array<
|
|
48
|
+
otherValues?: Array<UpdateProductRangeRequestAttributesInner>;
|
|
49
49
|
}
|
|
50
50
|
/**
|
|
51
51
|
* Check if a given object implements the UpdateProductTypeRequest interface.
|