@digital8/lighting-illusions-ts-sdk 0.0.1439 → 0.0.1441
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 +108 -2
- package/README.md +78 -4
- package/dist/apis/AttributeApi.d.ts +16 -1
- package/dist/apis/AttributeApi.js +58 -0
- package/dist/apis/LabelApi.d.ts +109 -0
- package/dist/apis/LabelApi.js +433 -0
- package/dist/apis/ProductApi.js +1 -1
- package/dist/apis/ProductRangeApi.d.ts +269 -0
- package/dist/apis/ProductRangeApi.js +1043 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/models/AssetLiteResource.d.ts +12 -0
- package/dist/models/AssetLiteResource.js +6 -0
- 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/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- 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/IndexLabelRequest.d.ts +109 -0
- package/dist/models/IndexLabelRequest.js +92 -0
- package/dist/models/IndexModelAttributeRequest.d.ts +118 -0
- package/dist/models/IndexModelAttributeRequest.js +93 -0
- package/dist/models/IndexProductChildRequest.d.ts +2 -0
- package/dist/models/IndexProductChildRequest.js +2 -0
- package/dist/models/IndexProductRangeRequest.d.ts +110 -0
- package/dist/models/IndexProductRangeRequest.js +86 -0
- package/dist/models/LabelListResource.d.ts +75 -0
- package/dist/models/LabelListResource.js +74 -0
- package/dist/models/LabelListResourceArrayResponse.d.ts +33 -0
- package/dist/models/LabelListResourceArrayResponse.js +50 -0
- package/dist/models/LabelLiteResource.d.ts +56 -0
- package/dist/models/LabelLiteResource.js +65 -0
- package/dist/models/LabelLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/LabelLiteResourceArrayResponse.js +50 -0
- package/dist/models/LabelResource.d.ts +23 -4
- package/dist/models/LabelResource.js +19 -8
- 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/PaginatedLabelListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedLabelListResourceResponse.js +57 -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/PaginatedProductRangeSearchResultResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductRangeSearchResultResourceResponse.js +57 -0
- package/dist/models/ProductRangeAggregationResource.d.ts +44 -0
- package/dist/models/ProductRangeAggregationResource.js +59 -0
- package/dist/models/ProductRangeAggregationResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRangeAggregationResourceArrayResponse.js +50 -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 +117 -0
- package/dist/models/ProductRangeFrontendResource.js +106 -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/ProductRangeSearchResponseResource.d.ts +47 -0
- package/dist/models/ProductRangeSearchResponseResource.js +62 -0
- package/dist/models/ProductRangeSearchResponseResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRangeSearchResponseResourceArrayResponse.js +50 -0
- package/dist/models/ProductRangeSearchResponseResourceMeta.d.ts +50 -0
- package/dist/models/ProductRangeSearchResponseResourceMeta.js +63 -0
- package/dist/models/ProductRangeSearchResultResource.d.ts +80 -0
- package/dist/models/ProductRangeSearchResultResource.js +83 -0
- package/dist/models/ProductRangeSearchResultResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRangeSearchResultResourceArrayResponse.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/ProductRangeSortBy.d.ts +27 -0
- package/dist/models/ProductRangeSortBy.js +53 -0
- package/dist/models/ProductSearchResultResource.d.ts +6 -0
- package/dist/models/ProductSearchResultResource.js +4 -0
- package/dist/models/StoreAssetForAssetableRequest.d.ts +2 -0
- package/dist/models/StoreAssetForAssetableRequest.js +3 -1
- package/dist/models/StoreLabelRequest.d.ts +74 -0
- package/dist/models/StoreLabelRequest.js +71 -0
- 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/UpdateLabelRequest.d.ts +74 -0
- package/dist/models/UpdateLabelRequest.js +63 -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 +52 -1
- package/dist/models/index.js +52 -1
- package/docs/AssetLiteResource.md +4 -0
- 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/DetachAttributesProductRangeRequest.md +34 -0
- package/docs/DetachDocumentsProductRangeRequest.md +34 -0
- package/docs/GetAllProductRangeRequest.md +50 -0
- package/docs/IndexLabelRequest.md +50 -0
- package/docs/IndexModelAttributeRequest.md +54 -0
- package/docs/IndexProductRangeRequest.md +54 -0
- package/docs/LabelApi.md +407 -0
- package/docs/LabelListResource.md +48 -0
- package/docs/LabelListResourceArrayResponse.md +34 -0
- package/docs/LabelLiteResource.md +42 -0
- package/docs/LabelLiteResourceArrayResponse.md +34 -0
- package/docs/LabelResource.md +12 -6
- package/docs/ModelAttributeListResource.md +44 -0
- package/docs/ModelAttributeListResourceArrayResponse.md +34 -0
- package/docs/ModelAttributeResource.md +2 -0
- package/docs/PaginatedLabelListResourceResponse.md +36 -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/PaginatedProductRangeResourceResponse.md +36 -0
- package/docs/PaginatedProductRangeSearchResultResourceResponse.md +36 -0
- package/docs/ProductApi.md +1 -1
- package/docs/ProductRangeAggregationResource.md +38 -0
- package/docs/ProductRangeAggregationResourceArrayResponse.md +34 -0
- 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/ProductRangeLiteResource.md +36 -0
- package/docs/ProductRangeLiteResourceArrayResponse.md +34 -0
- package/docs/ProductRangeResource.md +52 -0
- package/docs/ProductRangeResourceArrayResponse.md +34 -0
- package/docs/ProductRangeSearchResponseResource.md +38 -0
- package/docs/ProductRangeSearchResponseResourceArrayResponse.md +34 -0
- package/docs/ProductRangeSearchResponseResourceMeta.md +40 -0
- package/docs/ProductRangeSearchResultResource.md +50 -0
- package/docs/ProductRangeSearchResultResourceArrayResponse.md +34 -0
- 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/ProductRangeSortBy.md +32 -0
- package/docs/ProductSearchResultResource.md +2 -0
- package/docs/StoreLabelRequest.md +48 -0
- package/docs/StoreProductRangeRequest.md +40 -0
- package/docs/StoreProductRangeRequestSitesInner.md +54 -0
- package/docs/UpdateLabelRequest.md +48 -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/LabelApi.ts +328 -0
- package/src/apis/ProductApi.ts +1 -1
- package/src/apis/ProductRangeApi.ts +888 -0
- package/src/apis/index.ts +2 -0
- package/src/models/AssetLiteResource.ts +17 -0
- 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/ExternalApiLogResource.ts +3 -2
- 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/IndexLabelRequest.ts +163 -0
- package/src/models/IndexModelAttributeRequest.ts +176 -0
- package/src/models/IndexProductChildRequest.ts +2 -0
- package/src/models/IndexProductRangeRequest.ts +167 -0
- package/src/models/LabelListResource.ts +134 -0
- package/src/models/LabelListResourceArrayResponse.ts +73 -0
- package/src/models/LabelLiteResource.ts +101 -0
- package/src/models/LabelLiteResourceArrayResponse.ts +73 -0
- package/src/models/LabelResource.ts +46 -12
- package/src/models/ModelAttributeListResource.ts +125 -0
- package/src/models/ModelAttributeListResourceArrayResponse.ts +73 -0
- package/src/models/ModelAttributeResource.ts +8 -0
- package/src/models/PaginatedLabelListResourceResponse.ts +90 -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/PaginatedProductRangeSearchResultResourceResponse.ts +90 -0
- package/src/models/ProductRangeAggregationResource.ts +84 -0
- package/src/models/ProductRangeAggregationResourceArrayResponse.ts +73 -0
- package/src/models/ProductRangeFrontendListResource.ts +111 -0
- package/src/models/ProductRangeFrontendListResourceArrayResponse.ts +73 -0
- package/src/models/ProductRangeFrontendResource.ts +199 -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/ProductRangeSearchResponseResource.ts +106 -0
- package/src/models/ProductRangeSearchResponseResourceArrayResponse.ts +73 -0
- package/src/models/ProductRangeSearchResponseResourceMeta.ts +93 -0
- package/src/models/ProductRangeSearchResultResource.ts +138 -0
- package/src/models/ProductRangeSearchResultResourceArrayResponse.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/ProductRangeSortBy.ts +55 -0
- package/src/models/ProductSearchResultResource.ts +9 -0
- package/src/models/StoreAssetForAssetableRequest.ts +3 -1
- package/src/models/StoreLabelRequest.ts +125 -0
- package/src/models/StoreProductRangeRequest.ts +105 -0
- package/src/models/StoreProductRangeRequestSitesInner.ts +148 -0
- package/src/models/UpdateLabelRequest.ts +121 -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 +52 -1
- package/dist/models/UpdateProductTypeRequestPerformanceValuesInner.d.ts +0 -38
- package/dist/models/UpdateProductTypeRequestPerformanceValuesInner.js +0 -51
- package/src/models/UpdateProductTypeRequestPerformanceValuesInner.ts +0 -73
|
@@ -0,0 +1,187 @@
|
|
|
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 { SiteLiteResource } from './SiteLiteResource';
|
|
17
|
+
import {
|
|
18
|
+
SiteLiteResourceFromJSON,
|
|
19
|
+
SiteLiteResourceFromJSONTyped,
|
|
20
|
+
SiteLiteResourceToJSON,
|
|
21
|
+
SiteLiteResourceToJSONTyped,
|
|
22
|
+
} from './SiteLiteResource';
|
|
23
|
+
import type { ProductCategoryLiteResource } from './ProductCategoryLiteResource';
|
|
24
|
+
import {
|
|
25
|
+
ProductCategoryLiteResourceFromJSON,
|
|
26
|
+
ProductCategoryLiteResourceFromJSONTyped,
|
|
27
|
+
ProductCategoryLiteResourceToJSON,
|
|
28
|
+
ProductCategoryLiteResourceToJSONTyped,
|
|
29
|
+
} from './ProductCategoryLiteResource';
|
|
30
|
+
import type { SEOResource } from './SEOResource';
|
|
31
|
+
import {
|
|
32
|
+
SEOResourceFromJSON,
|
|
33
|
+
SEOResourceFromJSONTyped,
|
|
34
|
+
SEOResourceToJSON,
|
|
35
|
+
SEOResourceToJSONTyped,
|
|
36
|
+
} from './SEOResource';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
* @interface ProductRangeSiteDetailResource
|
|
42
|
+
*/
|
|
43
|
+
export interface ProductRangeSiteDetailResource {
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {number}
|
|
47
|
+
* @memberof ProductRangeSiteDetailResource
|
|
48
|
+
*/
|
|
49
|
+
id: number;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {number}
|
|
53
|
+
* @memberof ProductRangeSiteDetailResource
|
|
54
|
+
*/
|
|
55
|
+
siteId: number;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {SiteLiteResource}
|
|
59
|
+
* @memberof ProductRangeSiteDetailResource
|
|
60
|
+
*/
|
|
61
|
+
site: SiteLiteResource | null;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof ProductRangeSiteDetailResource
|
|
66
|
+
*/
|
|
67
|
+
name: string;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof ProductRangeSiteDetailResource
|
|
72
|
+
*/
|
|
73
|
+
slug: string;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof ProductRangeSiteDetailResource
|
|
78
|
+
*/
|
|
79
|
+
description: string;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof ProductRangeSiteDetailResource
|
|
84
|
+
*/
|
|
85
|
+
content: string;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {string}
|
|
89
|
+
* @memberof ProductRangeSiteDetailResource
|
|
90
|
+
*/
|
|
91
|
+
excerpt: string;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {number}
|
|
95
|
+
* @memberof ProductRangeSiteDetailResource
|
|
96
|
+
*/
|
|
97
|
+
popularityScore: number;
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @type {boolean}
|
|
101
|
+
* @memberof ProductRangeSiteDetailResource
|
|
102
|
+
*/
|
|
103
|
+
isDisabled: boolean;
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @type {SEOResource}
|
|
107
|
+
* @memberof ProductRangeSiteDetailResource
|
|
108
|
+
*/
|
|
109
|
+
seo: SEOResource | null;
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* @type {Array<ProductCategoryLiteResource>}
|
|
113
|
+
* @memberof ProductRangeSiteDetailResource
|
|
114
|
+
*/
|
|
115
|
+
categories: Array<ProductCategoryLiteResource> | null;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Check if a given object implements the ProductRangeSiteDetailResource interface.
|
|
120
|
+
*/
|
|
121
|
+
export function instanceOfProductRangeSiteDetailResource(value: object): value is ProductRangeSiteDetailResource {
|
|
122
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
123
|
+
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
124
|
+
if (!('site' in value) || value['site'] === undefined) return false;
|
|
125
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
126
|
+
if (!('slug' in value) || value['slug'] === undefined) return false;
|
|
127
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
128
|
+
if (!('content' in value) || value['content'] === undefined) return false;
|
|
129
|
+
if (!('excerpt' in value) || value['excerpt'] === undefined) return false;
|
|
130
|
+
if (!('popularityScore' in value) || value['popularityScore'] === undefined) return false;
|
|
131
|
+
if (!('isDisabled' in value) || value['isDisabled'] === undefined) return false;
|
|
132
|
+
if (!('seo' in value) || value['seo'] === undefined) return false;
|
|
133
|
+
if (!('categories' in value) || value['categories'] === undefined) return false;
|
|
134
|
+
return true;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export function ProductRangeSiteDetailResourceFromJSON(json: any): ProductRangeSiteDetailResource {
|
|
138
|
+
return ProductRangeSiteDetailResourceFromJSONTyped(json, false);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export function ProductRangeSiteDetailResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRangeSiteDetailResource {
|
|
142
|
+
if (json == null) {
|
|
143
|
+
return json;
|
|
144
|
+
}
|
|
145
|
+
return {
|
|
146
|
+
|
|
147
|
+
'id': json['id'],
|
|
148
|
+
'siteId': json['siteId'],
|
|
149
|
+
'site': SiteLiteResourceFromJSON(json['site']),
|
|
150
|
+
'name': json['name'],
|
|
151
|
+
'slug': json['slug'],
|
|
152
|
+
'description': json['description'],
|
|
153
|
+
'content': json['content'],
|
|
154
|
+
'excerpt': json['excerpt'],
|
|
155
|
+
'popularityScore': json['popularityScore'],
|
|
156
|
+
'isDisabled': json['isDisabled'],
|
|
157
|
+
'seo': SEOResourceFromJSON(json['seo']),
|
|
158
|
+
'categories': (json['categories'] == null ? null : (json['categories'] as Array<any>).map(ProductCategoryLiteResourceFromJSON)),
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export function ProductRangeSiteDetailResourceToJSON(json: any): ProductRangeSiteDetailResource {
|
|
163
|
+
return ProductRangeSiteDetailResourceToJSONTyped(json, false);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export function ProductRangeSiteDetailResourceToJSONTyped(value?: ProductRangeSiteDetailResource | null, ignoreDiscriminator: boolean = false): any {
|
|
167
|
+
if (value == null) {
|
|
168
|
+
return value;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
return {
|
|
172
|
+
|
|
173
|
+
'id': value['id'],
|
|
174
|
+
'siteId': value['siteId'],
|
|
175
|
+
'site': SiteLiteResourceToJSON(value['site']),
|
|
176
|
+
'name': value['name'],
|
|
177
|
+
'slug': value['slug'],
|
|
178
|
+
'description': value['description'],
|
|
179
|
+
'content': value['content'],
|
|
180
|
+
'excerpt': value['excerpt'],
|
|
181
|
+
'popularityScore': value['popularityScore'],
|
|
182
|
+
'isDisabled': value['isDisabled'],
|
|
183
|
+
'seo': SEOResourceToJSON(value['seo']),
|
|
184
|
+
'categories': (value['categories'] == null ? null : (value['categories'] as Array<any>).map(ProductCategoryLiteResourceToJSON)),
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
|
|
@@ -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
|
+
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const ProductRangeSortBy = {
|
|
21
|
+
Relevance: 'relevance',
|
|
22
|
+
MostPopular: 'mostPopular',
|
|
23
|
+
AscendingName: 'ascendingName',
|
|
24
|
+
DescendingName: 'descendingName'
|
|
25
|
+
} as const;
|
|
26
|
+
export type ProductRangeSortBy = typeof ProductRangeSortBy[keyof typeof ProductRangeSortBy];
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
export function instanceOfProductRangeSortBy(value: any): boolean {
|
|
30
|
+
for (const key in ProductRangeSortBy) {
|
|
31
|
+
if (Object.prototype.hasOwnProperty.call(ProductRangeSortBy, key)) {
|
|
32
|
+
if (ProductRangeSortBy[key as keyof typeof ProductRangeSortBy] === value) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function ProductRangeSortByFromJSON(json: any): ProductRangeSortBy {
|
|
41
|
+
return ProductRangeSortByFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function ProductRangeSortByFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRangeSortBy {
|
|
45
|
+
return json as ProductRangeSortBy;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function ProductRangeSortByToJSON(value?: ProductRangeSortBy | null): any {
|
|
49
|
+
return value as any;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function ProductRangeSortByToJSONTyped(value: any, ignoreDiscriminator: boolean): ProductRangeSortBy {
|
|
53
|
+
return value as ProductRangeSortBy;
|
|
54
|
+
}
|
|
55
|
+
|
|
@@ -37,6 +37,12 @@ export interface ProductSearchResultResource {
|
|
|
37
37
|
* @memberof ProductSearchResultResource
|
|
38
38
|
*/
|
|
39
39
|
model: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof ProductSearchResultResource
|
|
44
|
+
*/
|
|
45
|
+
barcode: string;
|
|
40
46
|
/**
|
|
41
47
|
*
|
|
42
48
|
* @type {string}
|
|
@@ -130,6 +136,7 @@ export function instanceOfProductSearchResultResource(value: object): value is P
|
|
|
130
136
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
131
137
|
if (!('sku' in value) || value['sku'] === undefined) return false;
|
|
132
138
|
if (!('model' in value) || value['model'] === undefined) return false;
|
|
139
|
+
if (!('barcode' in value) || value['barcode'] === undefined) return false;
|
|
133
140
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
134
141
|
if (!('slug' in value) || value['slug'] === undefined) return false;
|
|
135
142
|
if (!('price' in value) || value['price'] === undefined) return false;
|
|
@@ -159,6 +166,7 @@ export function ProductSearchResultResourceFromJSONTyped(json: any, ignoreDiscri
|
|
|
159
166
|
'id': json['id'],
|
|
160
167
|
'sku': json['sku'],
|
|
161
168
|
'model': json['model'],
|
|
169
|
+
'barcode': json['barcode'],
|
|
162
170
|
'name': json['name'],
|
|
163
171
|
'slug': json['slug'],
|
|
164
172
|
'price': json['price'],
|
|
@@ -190,6 +198,7 @@ export function ProductSearchResultResourceToJSONTyped(value?: ProductSearchResu
|
|
|
190
198
|
'id': value['id'],
|
|
191
199
|
'sku': value['sku'],
|
|
192
200
|
'model': value['model'],
|
|
201
|
+
'barcode': value['barcode'],
|
|
193
202
|
'name': value['name'],
|
|
194
203
|
'slug': value['slug'],
|
|
195
204
|
'price': value['price'],
|
|
@@ -75,7 +75,9 @@ export interface StoreAssetForAssetableRequest {
|
|
|
75
75
|
*/
|
|
76
76
|
export const StoreAssetForAssetableRequestAssetableTypeEnum = {
|
|
77
77
|
AppModelsProductsProductChild: 'App\\Models\\Products\\ProductChild',
|
|
78
|
-
|
|
78
|
+
AppModelsProductRangesProductRange: 'App\\Models\\ProductRanges\\ProductRange',
|
|
79
|
+
ProductChild: 'productChild',
|
|
80
|
+
ProductRange: 'productRange'
|
|
79
81
|
} as const;
|
|
80
82
|
export type StoreAssetForAssetableRequestAssetableTypeEnum = typeof StoreAssetForAssetableRequestAssetableTypeEnum[keyof typeof StoreAssetForAssetableRequestAssetableTypeEnum];
|
|
81
83
|
|
|
@@ -0,0 +1,125 @@
|
|
|
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 StoreLabelRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface StoreLabelRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof StoreLabelRequest
|
|
26
|
+
*/
|
|
27
|
+
siteId: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof StoreLabelRequest
|
|
32
|
+
*/
|
|
33
|
+
shortName: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof StoreLabelRequest
|
|
38
|
+
*/
|
|
39
|
+
longName: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof StoreLabelRequest
|
|
44
|
+
*/
|
|
45
|
+
cartButtonText?: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof StoreLabelRequest
|
|
50
|
+
*/
|
|
51
|
+
colour: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof StoreLabelRequest
|
|
56
|
+
*/
|
|
57
|
+
textColour?: string;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {Date}
|
|
61
|
+
* @memberof StoreLabelRequest
|
|
62
|
+
*/
|
|
63
|
+
startDate?: Date;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {Date}
|
|
67
|
+
* @memberof StoreLabelRequest
|
|
68
|
+
*/
|
|
69
|
+
endDate?: Date;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Check if a given object implements the StoreLabelRequest interface.
|
|
74
|
+
*/
|
|
75
|
+
export function instanceOfStoreLabelRequest(value: object): value is StoreLabelRequest {
|
|
76
|
+
if (!('siteId' in value) || value['siteId'] === undefined) return false;
|
|
77
|
+
if (!('shortName' in value) || value['shortName'] === undefined) return false;
|
|
78
|
+
if (!('longName' in value) || value['longName'] === undefined) return false;
|
|
79
|
+
if (!('colour' in value) || value['colour'] === undefined) return false;
|
|
80
|
+
return true;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function StoreLabelRequestFromJSON(json: any): StoreLabelRequest {
|
|
84
|
+
return StoreLabelRequestFromJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function StoreLabelRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreLabelRequest {
|
|
88
|
+
if (json == null) {
|
|
89
|
+
return json;
|
|
90
|
+
}
|
|
91
|
+
return {
|
|
92
|
+
|
|
93
|
+
'siteId': json['site_id'],
|
|
94
|
+
'shortName': json['short_name'],
|
|
95
|
+
'longName': json['long_name'],
|
|
96
|
+
'cartButtonText': json['cart_button_text'] == null ? undefined : json['cart_button_text'],
|
|
97
|
+
'colour': json['colour'],
|
|
98
|
+
'textColour': json['text_colour'] == null ? undefined : json['text_colour'],
|
|
99
|
+
'startDate': json['start_date'] == null ? undefined : (new Date(json['start_date'])),
|
|
100
|
+
'endDate': json['end_date'] == null ? undefined : (new Date(json['end_date'])),
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function StoreLabelRequestToJSON(json: any): StoreLabelRequest {
|
|
105
|
+
return StoreLabelRequestToJSONTyped(json, false);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function StoreLabelRequestToJSONTyped(value?: StoreLabelRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
109
|
+
if (value == null) {
|
|
110
|
+
return value;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
return {
|
|
114
|
+
|
|
115
|
+
'site_id': value['siteId'],
|
|
116
|
+
'short_name': value['shortName'],
|
|
117
|
+
'long_name': value['longName'],
|
|
118
|
+
'cart_button_text': value['cartButtonText'],
|
|
119
|
+
'colour': value['colour'],
|
|
120
|
+
'text_colour': value['textColour'],
|
|
121
|
+
'start_date': value['startDate'] == null ? value['startDate'] : value['startDate'].toISOString(),
|
|
122
|
+
'end_date': value['endDate'] == null ? value['endDate'] : value['endDate'].toISOString(),
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
|
|
@@ -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
|
+
|