@digital8/lighting-illusions-ts-sdk 0.0.1237 → 0.0.1239
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 -58
- package/README.md +54 -42
- 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/SupplierApi.d.ts +1 -33
- package/dist/apis/SupplierApi.js +0 -122
- 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 +1 -0
- package/dist/models/AttachDocumentablesDocumentRequestDocumentablesInner.js +1 -0
- 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 +1 -0
- package/dist/models/DetachDocumentablesDocumentRequestDocumentablesInner.js +1 -0
- package/dist/models/DetachDocumentsProductRangeRequest.d.ts +32 -0
- package/dist/models/DetachDocumentsProductRangeRequest.js +51 -0
- package/dist/models/GetAllDocumentRequest.d.ts +1 -0
- package/dist/models/GetAllDocumentRequest.js +1 -0
- 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 +1 -0
- package/dist/models/IndexDocumentRequest.js +1 -0
- package/dist/models/IndexModelAttributeRequest.d.ts +118 -0
- package/dist/models/IndexModelAttributeRequest.js +93 -0
- package/dist/models/IndexProductChildRequest.d.ts +1 -0
- package/dist/models/IndexProductChildRequest.js +1 -0
- package/dist/models/IndexProductRangeRequest.d.ts +110 -0
- package/dist/models/{IndexStoreRequest.js → IndexProductRangeRequest.js} +22 -21
- 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/StoreAssetForAssetableRequest.d.ts +3 -0
- package/dist/models/StoreAssetForAssetableRequest.js +4 -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 -28
- package/dist/models/index.js +35 -28
- package/docs/{AddressFrontendResourceArrayResponse.md → AttachAccessoriesProductRangeRequest.md} +6 -6
- package/docs/AttachAttributesProductRangeRequest.md +34 -0
- package/docs/AttachAttributesProductRangeRequestAttributesInner.md +36 -0
- package/docs/{StoreStoreRequestSpecialDatesInner.md → AttachDocumentsProductRangeRequest.md} +6 -12
- package/docs/AttributeApi.md +66 -0
- package/docs/{AttachSuppliersStoreRequest.md → DetachAccessoriesProductRangeRequest.md} +6 -6
- package/docs/{AttachStoresSupplierRequest.md → DetachAttributesProductRangeRequest.md} +6 -6
- package/docs/{StoreFrontendResourceArrayResponse.md → DetachDocumentsProductRangeRequest.md} +6 -6
- package/docs/{GetAllStoreRequest.md → GetAllProductRangeRequest.md} +10 -8
- package/docs/{IndexStoreRequest.md → IndexModelAttributeRequest.md} +10 -8
- package/docs/IndexProductRangeRequest.md +54 -0
- 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/{PaginatedStoreListResourceResponse.md → PaginatedProductRangeResourceResponse.md} +5 -5
- package/docs/ProductRangeApi.md +1097 -0
- package/docs/{StoreSpecialDateFrontendResource.md → ProductRangeFrontendListResource.md} +12 -10
- package/docs/{StoreSpecialDateFrontendResourceArrayResponse.md → ProductRangeFrontendListResourceArrayResponse.md} +5 -5
- package/docs/ProductRangeFrontendResource.md +62 -0
- package/docs/ProductRangeFrontendResourceArrayResponse.md +34 -0
- package/docs/ProductRangeListResource.md +44 -0
- package/docs/{StoreListResourceArrayResponse.md → ProductRangeListResourceArrayResponse.md} +5 -5
- package/docs/{StoreLiteResource.md → ProductRangeLiteResource.md} +4 -6
- package/docs/{StoreSpecialDateResourceArrayResponse.md → ProductRangeLiteResourceArrayResponse.md} +5 -5
- package/docs/ProductRangeResource.md +52 -0
- package/docs/{AddressResourceArrayResponse.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/{StoreSpecialDateResource.md → StoreProductRangeRequest.md} +10 -12
- package/docs/StoreProductRangeRequestSitesInner.md +54 -0
- package/docs/SupplierApi.md +0 -138
- 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/SupplierApi.ts +0 -112
- 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 +1 -0
- 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 +1 -0
- package/src/models/DetachDocumentsProductRangeRequest.ts +66 -0
- package/src/models/GetAllDocumentRequest.ts +1 -0
- 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 +1 -0
- package/src/models/IndexModelAttributeRequest.ts +176 -0
- package/src/models/IndexProductChildRequest.ts +1 -0
- package/src/models/IndexProductRangeRequest.ts +167 -0
- 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/StoreAssetForAssetableRequest.ts +4 -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 -28
- package/dist/apis/StoreApi.d.ts +0 -173
- package/dist/apis/StoreApi.js +0 -679
- package/dist/models/AddressFrontendResource.d.ts +0 -74
- package/dist/models/AddressFrontendResource.js +0 -75
- package/dist/models/AddressFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/AddressFrontendResourceArrayResponse.js +0 -50
- package/dist/models/AddressResource.d.ts +0 -80
- package/dist/models/AddressResource.js +0 -79
- package/dist/models/AddressResourceArrayResponse.d.ts +0 -33
- package/dist/models/AddressResourceArrayResponse.js +0 -50
- package/dist/models/AttachStoresSupplierRequest.d.ts +0 -32
- package/dist/models/AttachStoresSupplierRequest.js +0 -51
- package/dist/models/AttachSuppliersStoreRequest.d.ts +0 -32
- package/dist/models/AttachSuppliersStoreRequest.js +0 -51
- package/dist/models/DetachStoresSupplierRequest.d.ts +0 -32
- package/dist/models/DetachStoresSupplierRequest.js +0 -51
- package/dist/models/DetachSuppliersStoreRequest.d.ts +0 -32
- package/dist/models/DetachSuppliersStoreRequest.js +0 -51
- package/dist/models/GetAllStoreRequest.d.ts +0 -93
- package/dist/models/GetAllStoreRequest.js +0 -81
- package/dist/models/IndexStoreRequest.d.ts +0 -105
- package/dist/models/PaginatedStoreListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedStoreListResourceResponse.js +0 -57
- package/dist/models/StoreFrontendResource.d.ts +0 -98
- package/dist/models/StoreFrontendResource.js +0 -87
- package/dist/models/StoreFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreFrontendResourceArrayResponse.js +0 -50
- package/dist/models/StoreListResource.d.ts +0 -81
- package/dist/models/StoreListResource.js +0 -78
- package/dist/models/StoreListResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreListResourceArrayResponse.js +0 -50
- package/dist/models/StoreLiteResource.d.ts +0 -45
- package/dist/models/StoreLiteResource.js +0 -58
- package/dist/models/StoreLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreLiteResourceArrayResponse.js +0 -50
- package/dist/models/StoreResource.d.ts +0 -100
- package/dist/models/StoreResource.js +0 -93
- package/dist/models/StoreResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreResourceArrayResponse.js +0 -50
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +0 -56
- package/dist/models/StoreSpecialDateFrontendResource.js +0 -65
- package/dist/models/StoreSpecialDateFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreSpecialDateFrontendResourceArrayResponse.js +0 -50
- package/dist/models/StoreSpecialDateResource.d.ts +0 -56
- package/dist/models/StoreSpecialDateResource.js +0 -65
- package/dist/models/StoreSpecialDateResourceArrayResponse.d.ts +0 -33
- package/dist/models/StoreSpecialDateResourceArrayResponse.js +0 -50
- package/dist/models/StoreStoreRequest.d.ts +0 -177
- package/dist/models/StoreStoreRequest.js +0 -124
- package/dist/models/StoreStoreRequestSpecialDatesInner.d.ts +0 -50
- package/dist/models/StoreStoreRequestSpecialDatesInner.js +0 -57
- package/dist/models/StoreStoreSpecialDateRequest.d.ts +0 -50
- package/dist/models/StoreStoreSpecialDateRequest.js +0 -57
- package/dist/models/UpdateProductTypeRequestPerformanceValuesInner.d.ts +0 -38
- package/dist/models/UpdateProductTypeRequestPerformanceValuesInner.js +0 -51
- package/dist/models/UpdateStoreRequest.d.ts +0 -164
- package/dist/models/UpdateStoreRequest.js +0 -119
- package/docs/AddressFrontendResource.md +0 -48
- package/docs/AddressResource.md +0 -50
- package/docs/DetachStoresSupplierRequest.md +0 -34
- package/docs/DetachSuppliersStoreRequest.md +0 -34
- package/docs/StoreApi.md +0 -683
- package/docs/StoreFrontendResource.md +0 -56
- package/docs/StoreListResource.md +0 -50
- package/docs/StoreLiteResourceArrayResponse.md +0 -34
- package/docs/StoreResource.md +0 -56
- package/docs/StoreResourceArrayResponse.md +0 -34
- package/docs/StoreStoreRequest.md +0 -82
- package/docs/StoreStoreSpecialDateRequest.md +0 -40
- package/docs/UpdateStoreRequest.md +0 -78
- package/src/apis/StoreApi.ts +0 -563
- package/src/models/AddressFrontendResource.ts +0 -127
- package/src/models/AddressFrontendResourceArrayResponse.ts +0 -73
- package/src/models/AddressResource.ts +0 -136
- package/src/models/AddressResourceArrayResponse.ts +0 -73
- package/src/models/AttachStoresSupplierRequest.ts +0 -66
- package/src/models/AttachSuppliersStoreRequest.ts +0 -66
- package/src/models/DetachStoresSupplierRequest.ts +0 -66
- package/src/models/DetachSuppliersStoreRequest.ts +0 -66
- package/src/models/GetAllStoreRequest.ts +0 -144
- package/src/models/IndexStoreRequest.ts +0 -160
- package/src/models/PaginatedStoreListResourceResponse.ts +0 -90
- package/src/models/StoreFrontendResource.ts +0 -161
- package/src/models/StoreFrontendResourceArrayResponse.ts +0 -73
- package/src/models/StoreListResource.ts +0 -143
- package/src/models/StoreListResourceArrayResponse.ts +0 -73
- package/src/models/StoreLiteResource.ts +0 -91
- package/src/models/StoreLiteResourceArrayResponse.ts +0 -73
- package/src/models/StoreResource.ts +0 -178
- package/src/models/StoreResourceArrayResponse.ts +0 -73
- package/src/models/StoreSpecialDateFrontendResource.ts +0 -101
- package/src/models/StoreSpecialDateFrontendResourceArrayResponse.ts +0 -73
- package/src/models/StoreSpecialDateResource.ts +0 -101
- package/src/models/StoreSpecialDateResourceArrayResponse.ts +0 -73
- package/src/models/StoreStoreRequest.ts +0 -278
- package/src/models/StoreStoreRequestSpecialDatesInner.ts +0 -90
- package/src/models/StoreStoreSpecialDateRequest.ts +0 -90
- package/src/models/UpdateProductTypeRequestPerformanceValuesInner.ts +0 -73
- package/src/models/UpdateStoreRequest.ts +0 -254
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ProductRangeSiteDetailResource } from './ProductRangeSiteDetailResource';
|
|
17
|
+
import {
|
|
18
|
+
ProductRangeSiteDetailResourceFromJSON,
|
|
19
|
+
ProductRangeSiteDetailResourceFromJSONTyped,
|
|
20
|
+
ProductRangeSiteDetailResourceToJSON,
|
|
21
|
+
ProductRangeSiteDetailResourceToJSONTyped,
|
|
22
|
+
} from './ProductRangeSiteDetailResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ProductRangeSiteDetailResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface ProductRangeSiteDetailResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<ProductRangeSiteDetailResource>}
|
|
33
|
+
* @memberof ProductRangeSiteDetailResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<ProductRangeSiteDetailResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ProductRangeSiteDetailResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfProductRangeSiteDetailResourceArrayResponse(value: object): value is ProductRangeSiteDetailResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ProductRangeSiteDetailResourceArrayResponseFromJSON(json: any): ProductRangeSiteDetailResourceArrayResponse {
|
|
46
|
+
return ProductRangeSiteDetailResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ProductRangeSiteDetailResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRangeSiteDetailResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(ProductRangeSiteDetailResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ProductRangeSiteDetailResourceArrayResponseToJSON(json: any): ProductRangeSiteDetailResourceArrayResponse {
|
|
60
|
+
return ProductRangeSiteDetailResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ProductRangeSiteDetailResourceArrayResponseToJSONTyped(value?: ProductRangeSiteDetailResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(ProductRangeSiteDetailResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -74,7 +74,10 @@ export interface StoreAssetForAssetableRequest {
|
|
|
74
74
|
* @export
|
|
75
75
|
*/
|
|
76
76
|
export const StoreAssetForAssetableRequestAssetableTypeEnum = {
|
|
77
|
-
AppModelsProductsProductChild: 'App\\Models\\Products\\ProductChild'
|
|
77
|
+
AppModelsProductsProductChild: 'App\\Models\\Products\\ProductChild',
|
|
78
|
+
AppModelsProductRangesProductRange: 'App\\Models\\ProductRanges\\ProductRange',
|
|
79
|
+
ProductChild: 'productChild',
|
|
80
|
+
ProductRange: 'productRange'
|
|
78
81
|
} as const;
|
|
79
82
|
export type StoreAssetForAssetableRequestAssetableTypeEnum = typeof StoreAssetForAssetableRequestAssetableTypeEnum[keyof typeof StoreAssetForAssetableRequestAssetableTypeEnum];
|
|
80
83
|
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { StoreProductChildRequestAssetsInner } from './StoreProductChildRequestAssetsInner';
|
|
17
|
+
import {
|
|
18
|
+
StoreProductChildRequestAssetsInnerFromJSON,
|
|
19
|
+
StoreProductChildRequestAssetsInnerFromJSONTyped,
|
|
20
|
+
StoreProductChildRequestAssetsInnerToJSON,
|
|
21
|
+
StoreProductChildRequestAssetsInnerToJSONTyped,
|
|
22
|
+
} from './StoreProductChildRequestAssetsInner';
|
|
23
|
+
import type { StoreProductRangeRequestSitesInner } from './StoreProductRangeRequestSitesInner';
|
|
24
|
+
import {
|
|
25
|
+
StoreProductRangeRequestSitesInnerFromJSON,
|
|
26
|
+
StoreProductRangeRequestSitesInnerFromJSONTyped,
|
|
27
|
+
StoreProductRangeRequestSitesInnerToJSON,
|
|
28
|
+
StoreProductRangeRequestSitesInnerToJSONTyped,
|
|
29
|
+
} from './StoreProductRangeRequestSitesInner';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface StoreProductRangeRequest
|
|
35
|
+
*/
|
|
36
|
+
export interface StoreProductRangeRequest {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof StoreProductRangeRequest
|
|
41
|
+
*/
|
|
42
|
+
name: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof StoreProductRangeRequest
|
|
47
|
+
*/
|
|
48
|
+
supplierId?: number;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {Array<StoreProductRangeRequestSitesInner>}
|
|
52
|
+
* @memberof StoreProductRangeRequest
|
|
53
|
+
*/
|
|
54
|
+
sites?: Array<StoreProductRangeRequestSitesInner>;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {Array<StoreProductChildRequestAssetsInner>}
|
|
58
|
+
* @memberof StoreProductRangeRequest
|
|
59
|
+
*/
|
|
60
|
+
assets?: Array<StoreProductChildRequestAssetsInner>;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Check if a given object implements the StoreProductRangeRequest interface.
|
|
65
|
+
*/
|
|
66
|
+
export function instanceOfStoreProductRangeRequest(value: object): value is StoreProductRangeRequest {
|
|
67
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
68
|
+
return true;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function StoreProductRangeRequestFromJSON(json: any): StoreProductRangeRequest {
|
|
72
|
+
return StoreProductRangeRequestFromJSONTyped(json, false);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function StoreProductRangeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreProductRangeRequest {
|
|
76
|
+
if (json == null) {
|
|
77
|
+
return json;
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
|
|
81
|
+
'name': json['name'],
|
|
82
|
+
'supplierId': json['supplier_id'] == null ? undefined : json['supplier_id'],
|
|
83
|
+
'sites': json['sites'] == null ? undefined : ((json['sites'] as Array<any>).map(StoreProductRangeRequestSitesInnerFromJSON)),
|
|
84
|
+
'assets': json['assets'] == null ? undefined : ((json['assets'] as Array<any>).map(StoreProductChildRequestAssetsInnerFromJSON)),
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function StoreProductRangeRequestToJSON(json: any): StoreProductRangeRequest {
|
|
89
|
+
return StoreProductRangeRequestToJSONTyped(json, false);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function StoreProductRangeRequestToJSONTyped(value?: StoreProductRangeRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
93
|
+
if (value == null) {
|
|
94
|
+
return value;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
return {
|
|
98
|
+
|
|
99
|
+
'name': value['name'],
|
|
100
|
+
'supplier_id': value['supplierId'],
|
|
101
|
+
'sites': value['sites'] == null ? undefined : ((value['sites'] as Array<any>).map(StoreProductRangeRequestSitesInnerToJSON)),
|
|
102
|
+
'assets': value['assets'] == null ? undefined : ((value['assets'] as Array<any>).map(StoreProductChildRequestAssetsInnerToJSON)),
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface StoreProductRangeRequestSitesInner
|
|
20
|
+
*/
|
|
21
|
+
export interface StoreProductRangeRequestSitesInner {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof StoreProductRangeRequestSitesInner
|
|
26
|
+
*/
|
|
27
|
+
siteId: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof StoreProductRangeRequestSitesInner
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof StoreProductRangeRequestSitesInner
|
|
38
|
+
*/
|
|
39
|
+
slug: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof StoreProductRangeRequestSitesInner
|
|
44
|
+
*/
|
|
45
|
+
description?: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof StoreProductRangeRequestSitesInner
|
|
50
|
+
*/
|
|
51
|
+
content?: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof StoreProductRangeRequestSitesInner
|
|
56
|
+
*/
|
|
57
|
+
excerpt?: string;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof StoreProductRangeRequestSitesInner
|
|
62
|
+
*/
|
|
63
|
+
popularityScore?: number;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {boolean}
|
|
67
|
+
* @memberof StoreProductRangeRequestSitesInner
|
|
68
|
+
*/
|
|
69
|
+
isDisabled?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {Array<number>}
|
|
73
|
+
* @memberof StoreProductRangeRequestSitesInner
|
|
74
|
+
*/
|
|
75
|
+
categories?: Array<number>;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof StoreProductRangeRequestSitesInner
|
|
80
|
+
*/
|
|
81
|
+
seoTitle?: string;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof StoreProductRangeRequestSitesInner
|
|
86
|
+
*/
|
|
87
|
+
seoDescription?: string;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Check if a given object implements the StoreProductRangeRequestSitesInner interface.
|
|
92
|
+
*/
|
|
93
|
+
export function instanceOfStoreProductRangeRequestSitesInner(value: object): value is StoreProductRangeRequestSitesInner {
|
|
94
|
+
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
95
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
96
|
+
if (!('slug' in value) || value['slug'] === undefined) return false;
|
|
97
|
+
return true;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function StoreProductRangeRequestSitesInnerFromJSON(json: any): StoreProductRangeRequestSitesInner {
|
|
101
|
+
return StoreProductRangeRequestSitesInnerFromJSONTyped(json, false);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function StoreProductRangeRequestSitesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreProductRangeRequestSitesInner {
|
|
105
|
+
if (json == null) {
|
|
106
|
+
return json;
|
|
107
|
+
}
|
|
108
|
+
return {
|
|
109
|
+
|
|
110
|
+
'siteId': json['site_id'],
|
|
111
|
+
'name': json['name'],
|
|
112
|
+
'slug': json['slug'],
|
|
113
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
114
|
+
'content': json['content'] == null ? undefined : json['content'],
|
|
115
|
+
'excerpt': json['excerpt'] == null ? undefined : json['excerpt'],
|
|
116
|
+
'popularityScore': json['popularity_score'] == null ? undefined : json['popularity_score'],
|
|
117
|
+
'isDisabled': json['is_disabled'] == null ? undefined : json['is_disabled'],
|
|
118
|
+
'categories': json['categories'] == null ? undefined : json['categories'],
|
|
119
|
+
'seoTitle': json['seo_title'] == null ? undefined : json['seo_title'],
|
|
120
|
+
'seoDescription': json['seo_description'] == null ? undefined : json['seo_description'],
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export function StoreProductRangeRequestSitesInnerToJSON(json: any): StoreProductRangeRequestSitesInner {
|
|
125
|
+
return StoreProductRangeRequestSitesInnerToJSONTyped(json, false);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export function StoreProductRangeRequestSitesInnerToJSONTyped(value?: StoreProductRangeRequestSitesInner | null, ignoreDiscriminator: boolean = false): any {
|
|
129
|
+
if (value == null) {
|
|
130
|
+
return value;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
return {
|
|
134
|
+
|
|
135
|
+
'site_id': value['siteId'],
|
|
136
|
+
'name': value['name'],
|
|
137
|
+
'slug': value['slug'],
|
|
138
|
+
'description': value['description'],
|
|
139
|
+
'content': value['content'],
|
|
140
|
+
'excerpt': value['excerpt'],
|
|
141
|
+
'popularity_score': value['popularityScore'],
|
|
142
|
+
'is_disabled': value['isDisabled'],
|
|
143
|
+
'categories': value['categories'],
|
|
144
|
+
'seo_title': value['seoTitle'],
|
|
145
|
+
'seo_description': value['seoDescription'],
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { UpdateProductChildRequestAssetsInner } from './UpdateProductChildRequestAssetsInner';
|
|
17
|
+
import {
|
|
18
|
+
UpdateProductChildRequestAssetsInnerFromJSON,
|
|
19
|
+
UpdateProductChildRequestAssetsInnerFromJSONTyped,
|
|
20
|
+
UpdateProductChildRequestAssetsInnerToJSON,
|
|
21
|
+
UpdateProductChildRequestAssetsInnerToJSONTyped,
|
|
22
|
+
} from './UpdateProductChildRequestAssetsInner';
|
|
23
|
+
import type { StoreProductRangeRequestSitesInner } from './StoreProductRangeRequestSitesInner';
|
|
24
|
+
import {
|
|
25
|
+
StoreProductRangeRequestSitesInnerFromJSON,
|
|
26
|
+
StoreProductRangeRequestSitesInnerFromJSONTyped,
|
|
27
|
+
StoreProductRangeRequestSitesInnerToJSON,
|
|
28
|
+
StoreProductRangeRequestSitesInnerToJSONTyped,
|
|
29
|
+
} from './StoreProductRangeRequestSitesInner';
|
|
30
|
+
import type { UpdateProductRangeRequestAttributesInner } from './UpdateProductRangeRequestAttributesInner';
|
|
31
|
+
import {
|
|
32
|
+
UpdateProductRangeRequestAttributesInnerFromJSON,
|
|
33
|
+
UpdateProductRangeRequestAttributesInnerFromJSONTyped,
|
|
34
|
+
UpdateProductRangeRequestAttributesInnerToJSON,
|
|
35
|
+
UpdateProductRangeRequestAttributesInnerToJSONTyped,
|
|
36
|
+
} from './UpdateProductRangeRequestAttributesInner';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
* @interface UpdateProductRangeRequest
|
|
42
|
+
*/
|
|
43
|
+
export interface UpdateProductRangeRequest {
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof UpdateProductRangeRequest
|
|
48
|
+
*/
|
|
49
|
+
name: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {number}
|
|
53
|
+
* @memberof UpdateProductRangeRequest
|
|
54
|
+
*/
|
|
55
|
+
supplierId?: number;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {Array<UpdateProductRangeRequestAttributesInner>}
|
|
59
|
+
* @memberof UpdateProductRangeRequest
|
|
60
|
+
*/
|
|
61
|
+
attributes?: Array<UpdateProductRangeRequestAttributesInner>;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {Array<StoreProductRangeRequestSitesInner>}
|
|
65
|
+
* @memberof UpdateProductRangeRequest
|
|
66
|
+
*/
|
|
67
|
+
sites?: Array<StoreProductRangeRequestSitesInner>;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {Array<UpdateProductChildRequestAssetsInner>}
|
|
71
|
+
* @memberof UpdateProductRangeRequest
|
|
72
|
+
*/
|
|
73
|
+
assets?: Array<UpdateProductChildRequestAssetsInner>;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Check if a given object implements the UpdateProductRangeRequest interface.
|
|
78
|
+
*/
|
|
79
|
+
export function instanceOfUpdateProductRangeRequest(value: object): value is UpdateProductRangeRequest {
|
|
80
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
81
|
+
return true;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function UpdateProductRangeRequestFromJSON(json: any): UpdateProductRangeRequest {
|
|
85
|
+
return UpdateProductRangeRequestFromJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function UpdateProductRangeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateProductRangeRequest {
|
|
89
|
+
if (json == null) {
|
|
90
|
+
return json;
|
|
91
|
+
}
|
|
92
|
+
return {
|
|
93
|
+
|
|
94
|
+
'name': json['name'],
|
|
95
|
+
'supplierId': json['supplier_id'] == null ? undefined : json['supplier_id'],
|
|
96
|
+
'attributes': json['attributes'] == null ? undefined : ((json['attributes'] as Array<any>).map(UpdateProductRangeRequestAttributesInnerFromJSON)),
|
|
97
|
+
'sites': json['sites'] == null ? undefined : ((json['sites'] as Array<any>).map(StoreProductRangeRequestSitesInnerFromJSON)),
|
|
98
|
+
'assets': json['assets'] == null ? undefined : ((json['assets'] as Array<any>).map(UpdateProductChildRequestAssetsInnerFromJSON)),
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export function UpdateProductRangeRequestToJSON(json: any): UpdateProductRangeRequest {
|
|
103
|
+
return UpdateProductRangeRequestToJSONTyped(json, false);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export function UpdateProductRangeRequestToJSONTyped(value?: UpdateProductRangeRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
107
|
+
if (value == null) {
|
|
108
|
+
return value;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
return {
|
|
112
|
+
|
|
113
|
+
'name': value['name'],
|
|
114
|
+
'supplier_id': value['supplierId'],
|
|
115
|
+
'attributes': value['attributes'] == null ? undefined : ((value['attributes'] as Array<any>).map(UpdateProductRangeRequestAttributesInnerToJSON)),
|
|
116
|
+
'sites': value['sites'] == null ? undefined : ((value['sites'] as Array<any>).map(StoreProductRangeRequestSitesInnerToJSON)),
|
|
117
|
+
'assets': value['assets'] == null ? undefined : ((value['assets'] as Array<any>).map(UpdateProductChildRequestAssetsInnerToJSON)),
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface UpdateProductRangeRequestAttributesInner
|
|
20
|
+
*/
|
|
21
|
+
export interface UpdateProductRangeRequestAttributesInner {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof UpdateProductRangeRequestAttributesInner
|
|
26
|
+
*/
|
|
27
|
+
attributeId?: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof UpdateProductRangeRequestAttributesInner
|
|
32
|
+
*/
|
|
33
|
+
order?: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the UpdateProductRangeRequestAttributesInner interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfUpdateProductRangeRequestAttributesInner(value: object): value is UpdateProductRangeRequestAttributesInner {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function UpdateProductRangeRequestAttributesInnerFromJSON(json: any): UpdateProductRangeRequestAttributesInner {
|
|
44
|
+
return UpdateProductRangeRequestAttributesInnerFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function UpdateProductRangeRequestAttributesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateProductRangeRequestAttributesInner {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'attributeId': json['attribute_id'] == null ? undefined : json['attribute_id'],
|
|
54
|
+
'order': json['order'] == null ? undefined : json['order'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function UpdateProductRangeRequestAttributesInnerToJSON(json: any): UpdateProductRangeRequestAttributesInner {
|
|
59
|
+
return UpdateProductRangeRequestAttributesInnerToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function UpdateProductRangeRequestAttributesInnerToJSONTyped(value?: UpdateProductRangeRequestAttributesInner | null, ignoreDiscriminator: boolean = false): any {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'attribute_id': value['attributeId'],
|
|
70
|
+
'order': value['order'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type {
|
|
16
|
+
import type { UpdateProductRangeRequestAttributesInner } from './UpdateProductRangeRequestAttributesInner';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from './
|
|
18
|
+
UpdateProductRangeRequestAttributesInnerFromJSON,
|
|
19
|
+
UpdateProductRangeRequestAttributesInnerFromJSONTyped,
|
|
20
|
+
UpdateProductRangeRequestAttributesInnerToJSON,
|
|
21
|
+
UpdateProductRangeRequestAttributesInnerToJSONTyped,
|
|
22
|
+
} from './UpdateProductRangeRequestAttributesInner';
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
@@ -35,28 +35,28 @@ export interface UpdateProductTypeRequest {
|
|
|
35
35
|
name: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
|
-
* @type {Array<
|
|
38
|
+
* @type {Array<UpdateProductRangeRequestAttributesInner>}
|
|
39
39
|
* @memberof UpdateProductTypeRequest
|
|
40
40
|
*/
|
|
41
|
-
performanceValues?: Array<
|
|
41
|
+
performanceValues?: Array<UpdateProductRangeRequestAttributesInner>;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
|
-
* @type {Array<
|
|
44
|
+
* @type {Array<UpdateProductRangeRequestAttributesInner>}
|
|
45
45
|
* @memberof UpdateProductTypeRequest
|
|
46
46
|
*/
|
|
47
|
-
dimensionValues?: Array<
|
|
47
|
+
dimensionValues?: Array<UpdateProductRangeRequestAttributesInner>;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
|
-
* @type {Array<
|
|
50
|
+
* @type {Array<UpdateProductRangeRequestAttributesInner>}
|
|
51
51
|
* @memberof UpdateProductTypeRequest
|
|
52
52
|
*/
|
|
53
|
-
specificationValues?: Array<
|
|
53
|
+
specificationValues?: Array<UpdateProductRangeRequestAttributesInner>;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
|
-
* @type {Array<
|
|
56
|
+
* @type {Array<UpdateProductRangeRequestAttributesInner>}
|
|
57
57
|
* @memberof UpdateProductTypeRequest
|
|
58
58
|
*/
|
|
59
|
-
otherValues?: Array<
|
|
59
|
+
otherValues?: Array<UpdateProductRangeRequestAttributesInner>;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
/**
|
|
@@ -78,10 +78,10 @@ export function UpdateProductTypeRequestFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
78
78
|
return {
|
|
79
79
|
|
|
80
80
|
'name': json['name'],
|
|
81
|
-
'performanceValues': json['performance_values'] == null ? undefined : ((json['performance_values'] as Array<any>).map(
|
|
82
|
-
'dimensionValues': json['dimension_values'] == null ? undefined : ((json['dimension_values'] as Array<any>).map(
|
|
83
|
-
'specificationValues': json['specification_values'] == null ? undefined : ((json['specification_values'] as Array<any>).map(
|
|
84
|
-
'otherValues': json['other_values'] == null ? undefined : ((json['other_values'] as Array<any>).map(
|
|
81
|
+
'performanceValues': json['performance_values'] == null ? undefined : ((json['performance_values'] as Array<any>).map(UpdateProductRangeRequestAttributesInnerFromJSON)),
|
|
82
|
+
'dimensionValues': json['dimension_values'] == null ? undefined : ((json['dimension_values'] as Array<any>).map(UpdateProductRangeRequestAttributesInnerFromJSON)),
|
|
83
|
+
'specificationValues': json['specification_values'] == null ? undefined : ((json['specification_values'] as Array<any>).map(UpdateProductRangeRequestAttributesInnerFromJSON)),
|
|
84
|
+
'otherValues': json['other_values'] == null ? undefined : ((json['other_values'] as Array<any>).map(UpdateProductRangeRequestAttributesInnerFromJSON)),
|
|
85
85
|
};
|
|
86
86
|
}
|
|
87
87
|
|
|
@@ -97,10 +97,10 @@ export function UpdateProductTypeRequestToJSONTyped(value?: UpdateProductTypeReq
|
|
|
97
97
|
return {
|
|
98
98
|
|
|
99
99
|
'name': value['name'],
|
|
100
|
-
'performance_values': value['performanceValues'] == null ? undefined : ((value['performanceValues'] as Array<any>).map(
|
|
101
|
-
'dimension_values': value['dimensionValues'] == null ? undefined : ((value['dimensionValues'] as Array<any>).map(
|
|
102
|
-
'specification_values': value['specificationValues'] == null ? undefined : ((value['specificationValues'] as Array<any>).map(
|
|
103
|
-
'other_values': value['otherValues'] == null ? undefined : ((value['otherValues'] as Array<any>).map(
|
|
100
|
+
'performance_values': value['performanceValues'] == null ? undefined : ((value['performanceValues'] as Array<any>).map(UpdateProductRangeRequestAttributesInnerToJSON)),
|
|
101
|
+
'dimension_values': value['dimensionValues'] == null ? undefined : ((value['dimensionValues'] as Array<any>).map(UpdateProductRangeRequestAttributesInnerToJSON)),
|
|
102
|
+
'specification_values': value['specificationValues'] == null ? undefined : ((value['specificationValues'] as Array<any>).map(UpdateProductRangeRequestAttributesInnerToJSON)),
|
|
103
|
+
'other_values': value['otherValues'] == null ? undefined : ((value['otherValues'] as Array<any>).map(UpdateProductRangeRequestAttributesInnerToJSON)),
|
|
104
104
|
};
|
|
105
105
|
}
|
|
106
106
|
|