@digital8/lighting-illusions-ts-sdk 0.0.708 → 0.0.710
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 +56 -0
- package/README.md +43 -2
- package/dist/apis/ProductRangeApi.d.ts +181 -0
- package/dist/apis/ProductRangeApi.js +739 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AttachAccessoriesProductRangeRequest.d.ts +32 -0
- package/dist/models/AttachAccessoriesProductRangeRequest.js +51 -0
- package/dist/models/AttachAttributesProductRangeRequest.d.ts +32 -0
- package/dist/models/AttachAttributesProductRangeRequest.js +51 -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/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- 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/IndexProductChildRequest.d.ts +1 -0
- package/dist/models/IndexProductChildRequest.js +1 -0
- package/dist/models/IndexProductRangeRequest.d.ts +110 -0
- package/dist/models/IndexProductRangeRequest.js +86 -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/ProductChildResource.d.ts +7 -1
- package/dist/models/ProductChildResource.js +4 -2
- 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 +52 -0
- package/dist/models/ProductRangeListResource.js +65 -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 +83 -0
- package/dist/models/ProductRangeResource.js +82 -0
- package/dist/models/ProductRangeResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRangeResourceArrayResponse.js +50 -0
- package/dist/models/ProductRangeSiteDetailResource.d.ts +94 -0
- package/dist/models/ProductRangeSiteDetailResource.js +93 -0
- package/dist/models/ProductRangeSiteDetailResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRangeSiteDetailResourceArrayResponse.js +50 -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/UpdateProductRangeRequest.d.ts +52 -0
- package/dist/models/UpdateProductRangeRequest.js +59 -0
- package/dist/models/index.d.ts +27 -0
- package/dist/models/index.js +27 -0
- package/docs/AttachAccessoriesProductRangeRequest.md +34 -0
- package/docs/AttachAttributesProductRangeRequest.md +34 -0
- package/docs/AttachDocumentsProductRangeRequest.md +34 -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/IndexProductRangeRequest.md +54 -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/ProductChildResource.md +4 -2
- package/docs/ProductRangeApi.md +959 -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 +40 -0
- package/docs/ProductRangeListResourceArrayResponse.md +34 -0
- package/docs/ProductRangeLiteResource.md +36 -0
- package/docs/ProductRangeLiteResourceArrayResponse.md +34 -0
- package/docs/ProductRangeResource.md +50 -0
- package/docs/ProductRangeResourceArrayResponse.md +34 -0
- package/docs/ProductRangeSiteDetailResource.md +54 -0
- package/docs/ProductRangeSiteDetailResourceArrayResponse.md +34 -0
- package/docs/StoreProductRangeRequest.md +40 -0
- package/docs/StoreProductRangeRequestSitesInner.md +54 -0
- package/docs/UpdateProductRangeRequest.md +40 -0
- package/package.json +1 -1
- package/src/apis/ProductRangeApi.ts +664 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AttachAccessoriesProductRangeRequest.ts +66 -0
- package/src/models/AttachAttributesProductRangeRequest.ts +66 -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/ExternalApiLogResource.ts +2 -3
- 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/IndexProductChildRequest.ts +1 -0
- package/src/models/IndexProductRangeRequest.ts +167 -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/ProductChildResource.ts +11 -3
- 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 +108 -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 +158 -0
- package/src/models/ProductRangeResourceArrayResponse.ts +73 -0
- package/src/models/ProductRangeSiteDetailResource.ts +171 -0
- package/src/models/ProductRangeSiteDetailResourceArrayResponse.ts +73 -0
- package/src/models/StoreProductRangeRequest.ts +105 -0
- package/src/models/StoreProductRangeRequestSitesInner.ts +148 -0
- package/src/models/UpdateProductRangeRequest.ts +105 -0
- package/src/models/index.ts +27 -0
|
@@ -0,0 +1,167 @@
|
|
|
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 IndexProductRangeRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface IndexProductRangeRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof IndexProductRangeRequest
|
|
26
|
+
*/
|
|
27
|
+
search?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof IndexProductRangeRequest
|
|
32
|
+
*/
|
|
33
|
+
sortBy?: IndexProductRangeRequestSortByEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof IndexProductRangeRequest
|
|
38
|
+
*/
|
|
39
|
+
sortDirection?: IndexProductRangeRequestSortDirectionEnum;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof IndexProductRangeRequest
|
|
44
|
+
*/
|
|
45
|
+
perPage?: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof IndexProductRangeRequest
|
|
50
|
+
*/
|
|
51
|
+
page?: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {Array<string>}
|
|
55
|
+
* @memberof IndexProductRangeRequest
|
|
56
|
+
*/
|
|
57
|
+
siteDetailsSiteId?: Array<string>;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {Array<string>}
|
|
61
|
+
* @memberof IndexProductRangeRequest
|
|
62
|
+
*/
|
|
63
|
+
supplierId?: Array<string>;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {Array<string>}
|
|
67
|
+
* @memberof IndexProductRangeRequest
|
|
68
|
+
*/
|
|
69
|
+
siteDetailsCategoriesId?: Array<string>;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {number}
|
|
73
|
+
* @memberof IndexProductRangeRequest
|
|
74
|
+
*/
|
|
75
|
+
relatedId?: number;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof IndexProductRangeRequest
|
|
80
|
+
*/
|
|
81
|
+
relatedType?: string;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {boolean}
|
|
85
|
+
* @memberof IndexProductRangeRequest
|
|
86
|
+
*/
|
|
87
|
+
includesRelations?: boolean;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @export
|
|
93
|
+
*/
|
|
94
|
+
export const IndexProductRangeRequestSortByEnum = {
|
|
95
|
+
Id: 'id',
|
|
96
|
+
Name: 'name',
|
|
97
|
+
CreatedAt: 'created_at',
|
|
98
|
+
UpdatedAt: 'updated_at'
|
|
99
|
+
} as const;
|
|
100
|
+
export type IndexProductRangeRequestSortByEnum = typeof IndexProductRangeRequestSortByEnum[keyof typeof IndexProductRangeRequestSortByEnum];
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* @export
|
|
104
|
+
*/
|
|
105
|
+
export const IndexProductRangeRequestSortDirectionEnum = {
|
|
106
|
+
Asc: 'asc',
|
|
107
|
+
Desc: 'desc'
|
|
108
|
+
} as const;
|
|
109
|
+
export type IndexProductRangeRequestSortDirectionEnum = typeof IndexProductRangeRequestSortDirectionEnum[keyof typeof IndexProductRangeRequestSortDirectionEnum];
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Check if a given object implements the IndexProductRangeRequest interface.
|
|
114
|
+
*/
|
|
115
|
+
export function instanceOfIndexProductRangeRequest(value: object): value is IndexProductRangeRequest {
|
|
116
|
+
return true;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export function IndexProductRangeRequestFromJSON(json: any): IndexProductRangeRequest {
|
|
120
|
+
return IndexProductRangeRequestFromJSONTyped(json, false);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export function IndexProductRangeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexProductRangeRequest {
|
|
124
|
+
if (json == null) {
|
|
125
|
+
return json;
|
|
126
|
+
}
|
|
127
|
+
return {
|
|
128
|
+
|
|
129
|
+
'search': json['search'] == null ? undefined : json['search'],
|
|
130
|
+
'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
|
|
131
|
+
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
132
|
+
'perPage': json['per_page'] == null ? undefined : json['per_page'],
|
|
133
|
+
'page': json['page'] == null ? undefined : json['page'],
|
|
134
|
+
'siteDetailsSiteId': json['siteDetails-site_id'] == null ? undefined : json['siteDetails-site_id'],
|
|
135
|
+
'supplierId': json['supplier_id'] == null ? undefined : json['supplier_id'],
|
|
136
|
+
'siteDetailsCategoriesId': json['siteDetails-categories-id'] == null ? undefined : json['siteDetails-categories-id'],
|
|
137
|
+
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
138
|
+
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
139
|
+
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export function IndexProductRangeRequestToJSON(json: any): IndexProductRangeRequest {
|
|
144
|
+
return IndexProductRangeRequestToJSONTyped(json, false);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export function IndexProductRangeRequestToJSONTyped(value?: IndexProductRangeRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
148
|
+
if (value == null) {
|
|
149
|
+
return value;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
return {
|
|
153
|
+
|
|
154
|
+
'search': value['search'],
|
|
155
|
+
'sortBy': value['sortBy'],
|
|
156
|
+
'sortDirection': value['sortDirection'],
|
|
157
|
+
'per_page': value['perPage'],
|
|
158
|
+
'page': value['page'],
|
|
159
|
+
'siteDetails-site_id': value['siteDetailsSiteId'],
|
|
160
|
+
'supplier_id': value['supplierId'],
|
|
161
|
+
'siteDetails-categories-id': value['siteDetailsCategoriesId'],
|
|
162
|
+
'related_id': value['relatedId'],
|
|
163
|
+
'related_type': value['relatedType'],
|
|
164
|
+
'includes_relations': value['includesRelations'],
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
|
|
@@ -0,0 +1,90 @@
|
|
|
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 { PagingMetadata } from './PagingMetadata';
|
|
17
|
+
import {
|
|
18
|
+
PagingMetadataFromJSON,
|
|
19
|
+
PagingMetadataFromJSONTyped,
|
|
20
|
+
PagingMetadataToJSON,
|
|
21
|
+
PagingMetadataToJSONTyped,
|
|
22
|
+
} from './PagingMetadata';
|
|
23
|
+
import type { ProductRangeFrontendListResource } from './ProductRangeFrontendListResource';
|
|
24
|
+
import {
|
|
25
|
+
ProductRangeFrontendListResourceFromJSON,
|
|
26
|
+
ProductRangeFrontendListResourceFromJSONTyped,
|
|
27
|
+
ProductRangeFrontendListResourceToJSON,
|
|
28
|
+
ProductRangeFrontendListResourceToJSONTyped,
|
|
29
|
+
} from './ProductRangeFrontendListResource';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PaginatedProductRangeFrontendListResourceResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface PaginatedProductRangeFrontendListResourceResponse {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<ProductRangeFrontendListResource>}
|
|
40
|
+
* @memberof PaginatedProductRangeFrontendListResourceResponse
|
|
41
|
+
*/
|
|
42
|
+
data: Array<ProductRangeFrontendListResource>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {PagingMetadata}
|
|
46
|
+
* @memberof PaginatedProductRangeFrontendListResourceResponse
|
|
47
|
+
*/
|
|
48
|
+
meta: PagingMetadata;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the PaginatedProductRangeFrontendListResourceResponse interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfPaginatedProductRangeFrontendListResourceResponse(value: object): value is PaginatedProductRangeFrontendListResourceResponse {
|
|
55
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
56
|
+
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PaginatedProductRangeFrontendListResourceResponseFromJSON(json: any): PaginatedProductRangeFrontendListResourceResponse {
|
|
61
|
+
return PaginatedProductRangeFrontendListResourceResponseFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PaginatedProductRangeFrontendListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedProductRangeFrontendListResourceResponse {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': ((json['data'] as Array<any>).map(ProductRangeFrontendListResourceFromJSON)),
|
|
71
|
+
'meta': PagingMetadataFromJSON(json['meta']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PaginatedProductRangeFrontendListResourceResponseToJSON(json: any): PaginatedProductRangeFrontendListResourceResponse {
|
|
76
|
+
return PaginatedProductRangeFrontendListResourceResponseToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PaginatedProductRangeFrontendListResourceResponseToJSONTyped(value?: PaginatedProductRangeFrontendListResourceResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'data': ((value['data'] as Array<any>).map(ProductRangeFrontendListResourceToJSON)),
|
|
87
|
+
'meta': PagingMetadataToJSON(value['meta']),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -0,0 +1,90 @@
|
|
|
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 { PagingMetadata } from './PagingMetadata';
|
|
17
|
+
import {
|
|
18
|
+
PagingMetadataFromJSON,
|
|
19
|
+
PagingMetadataFromJSONTyped,
|
|
20
|
+
PagingMetadataToJSON,
|
|
21
|
+
PagingMetadataToJSONTyped,
|
|
22
|
+
} from './PagingMetadata';
|
|
23
|
+
import type { ProductRangeListResource } from './ProductRangeListResource';
|
|
24
|
+
import {
|
|
25
|
+
ProductRangeListResourceFromJSON,
|
|
26
|
+
ProductRangeListResourceFromJSONTyped,
|
|
27
|
+
ProductRangeListResourceToJSON,
|
|
28
|
+
ProductRangeListResourceToJSONTyped,
|
|
29
|
+
} from './ProductRangeListResource';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PaginatedProductRangeListResourceResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface PaginatedProductRangeListResourceResponse {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<ProductRangeListResource>}
|
|
40
|
+
* @memberof PaginatedProductRangeListResourceResponse
|
|
41
|
+
*/
|
|
42
|
+
data: Array<ProductRangeListResource>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {PagingMetadata}
|
|
46
|
+
* @memberof PaginatedProductRangeListResourceResponse
|
|
47
|
+
*/
|
|
48
|
+
meta: PagingMetadata;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the PaginatedProductRangeListResourceResponse interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfPaginatedProductRangeListResourceResponse(value: object): value is PaginatedProductRangeListResourceResponse {
|
|
55
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
56
|
+
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PaginatedProductRangeListResourceResponseFromJSON(json: any): PaginatedProductRangeListResourceResponse {
|
|
61
|
+
return PaginatedProductRangeListResourceResponseFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PaginatedProductRangeListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedProductRangeListResourceResponse {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': ((json['data'] as Array<any>).map(ProductRangeListResourceFromJSON)),
|
|
71
|
+
'meta': PagingMetadataFromJSON(json['meta']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PaginatedProductRangeListResourceResponseToJSON(json: any): PaginatedProductRangeListResourceResponse {
|
|
76
|
+
return PaginatedProductRangeListResourceResponseToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PaginatedProductRangeListResourceResponseToJSONTyped(value?: PaginatedProductRangeListResourceResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'data': ((value['data'] as Array<any>).map(ProductRangeListResourceToJSON)),
|
|
87
|
+
'meta': PagingMetadataToJSON(value['meta']),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -0,0 +1,90 @@
|
|
|
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 { PagingMetadata } from './PagingMetadata';
|
|
17
|
+
import {
|
|
18
|
+
PagingMetadataFromJSON,
|
|
19
|
+
PagingMetadataFromJSONTyped,
|
|
20
|
+
PagingMetadataToJSON,
|
|
21
|
+
PagingMetadataToJSONTyped,
|
|
22
|
+
} from './PagingMetadata';
|
|
23
|
+
import type { ProductRangeLiteResource } from './ProductRangeLiteResource';
|
|
24
|
+
import {
|
|
25
|
+
ProductRangeLiteResourceFromJSON,
|
|
26
|
+
ProductRangeLiteResourceFromJSONTyped,
|
|
27
|
+
ProductRangeLiteResourceToJSON,
|
|
28
|
+
ProductRangeLiteResourceToJSONTyped,
|
|
29
|
+
} from './ProductRangeLiteResource';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PaginatedProductRangeLiteResourceResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface PaginatedProductRangeLiteResourceResponse {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<ProductRangeLiteResource>}
|
|
40
|
+
* @memberof PaginatedProductRangeLiteResourceResponse
|
|
41
|
+
*/
|
|
42
|
+
data: Array<ProductRangeLiteResource>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {PagingMetadata}
|
|
46
|
+
* @memberof PaginatedProductRangeLiteResourceResponse
|
|
47
|
+
*/
|
|
48
|
+
meta: PagingMetadata;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the PaginatedProductRangeLiteResourceResponse interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfPaginatedProductRangeLiteResourceResponse(value: object): value is PaginatedProductRangeLiteResourceResponse {
|
|
55
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
56
|
+
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PaginatedProductRangeLiteResourceResponseFromJSON(json: any): PaginatedProductRangeLiteResourceResponse {
|
|
61
|
+
return PaginatedProductRangeLiteResourceResponseFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PaginatedProductRangeLiteResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedProductRangeLiteResourceResponse {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': ((json['data'] as Array<any>).map(ProductRangeLiteResourceFromJSON)),
|
|
71
|
+
'meta': PagingMetadataFromJSON(json['meta']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PaginatedProductRangeLiteResourceResponseToJSON(json: any): PaginatedProductRangeLiteResourceResponse {
|
|
76
|
+
return PaginatedProductRangeLiteResourceResponseToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PaginatedProductRangeLiteResourceResponseToJSONTyped(value?: PaginatedProductRangeLiteResourceResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'data': ((value['data'] as Array<any>).map(ProductRangeLiteResourceToJSON)),
|
|
87
|
+
'meta': PagingMetadataToJSON(value['meta']),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -0,0 +1,90 @@
|
|
|
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 { PagingMetadata } from './PagingMetadata';
|
|
17
|
+
import {
|
|
18
|
+
PagingMetadataFromJSON,
|
|
19
|
+
PagingMetadataFromJSONTyped,
|
|
20
|
+
PagingMetadataToJSON,
|
|
21
|
+
PagingMetadataToJSONTyped,
|
|
22
|
+
} from './PagingMetadata';
|
|
23
|
+
import type { ProductRangeResource } from './ProductRangeResource';
|
|
24
|
+
import {
|
|
25
|
+
ProductRangeResourceFromJSON,
|
|
26
|
+
ProductRangeResourceFromJSONTyped,
|
|
27
|
+
ProductRangeResourceToJSON,
|
|
28
|
+
ProductRangeResourceToJSONTyped,
|
|
29
|
+
} from './ProductRangeResource';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PaginatedProductRangeResourceResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface PaginatedProductRangeResourceResponse {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<ProductRangeResource>}
|
|
40
|
+
* @memberof PaginatedProductRangeResourceResponse
|
|
41
|
+
*/
|
|
42
|
+
data: Array<ProductRangeResource>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {PagingMetadata}
|
|
46
|
+
* @memberof PaginatedProductRangeResourceResponse
|
|
47
|
+
*/
|
|
48
|
+
meta: PagingMetadata;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the PaginatedProductRangeResourceResponse interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfPaginatedProductRangeResourceResponse(value: object): value is PaginatedProductRangeResourceResponse {
|
|
55
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
56
|
+
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PaginatedProductRangeResourceResponseFromJSON(json: any): PaginatedProductRangeResourceResponse {
|
|
61
|
+
return PaginatedProductRangeResourceResponseFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PaginatedProductRangeResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedProductRangeResourceResponse {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': ((json['data'] as Array<any>).map(ProductRangeResourceFromJSON)),
|
|
71
|
+
'meta': PagingMetadataFromJSON(json['meta']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PaginatedProductRangeResourceResponseToJSON(json: any): PaginatedProductRangeResourceResponse {
|
|
76
|
+
return PaginatedProductRangeResourceResponseToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PaginatedProductRangeResourceResponseToJSONTyped(value?: PaginatedProductRangeResourceResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'data': ((value['data'] as Array<any>).map(ProductRangeResourceToJSON)),
|
|
87
|
+
'meta': PagingMetadataToJSON(value['meta']),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -94,6 +94,12 @@ export interface ProductChildResource {
|
|
|
94
94
|
* @memberof ProductChildResource
|
|
95
95
|
*/
|
|
96
96
|
hideFromFrontend: boolean;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @type {string}
|
|
100
|
+
* @memberof ProductChildResource
|
|
101
|
+
*/
|
|
102
|
+
supplierBarcode?: string | null;
|
|
97
103
|
/**
|
|
98
104
|
*
|
|
99
105
|
* @type {number}
|
|
@@ -123,7 +129,7 @@ export interface ProductChildResource {
|
|
|
123
129
|
* @type {string}
|
|
124
130
|
* @memberof ProductChildResource
|
|
125
131
|
*/
|
|
126
|
-
|
|
132
|
+
bundleUpcCode?: string | null;
|
|
127
133
|
/**
|
|
128
134
|
*
|
|
129
135
|
* @type {boolean}
|
|
@@ -242,11 +248,12 @@ export function ProductChildResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
242
248
|
'sku': json['sku'],
|
|
243
249
|
'buyPrice': json['buyPrice'],
|
|
244
250
|
'hideFromFrontend': json['hideFromFrontend'],
|
|
251
|
+
'supplierBarcode': json['supplierBarcode'] == null ? undefined : json['supplierBarcode'],
|
|
245
252
|
'popularityScore': json['popularityScore'],
|
|
246
253
|
'excludeFromSearch': json['excludeFromSearch'],
|
|
247
254
|
'isOversized': json['isOversized'],
|
|
248
255
|
'isBundle': json['isBundle'],
|
|
249
|
-
'
|
|
256
|
+
'bundleUpcCode': json['bundleUpcCode'] == null ? undefined : json['bundleUpcCode'],
|
|
250
257
|
'displayInSocialFeed': json['displayInSocialFeed'],
|
|
251
258
|
'googleStockStatus': json['googleStockStatus'],
|
|
252
259
|
'netsuiteId': json['netsuiteId'] == null ? undefined : json['netsuiteId'],
|
|
@@ -282,11 +289,12 @@ export function ProductChildResourceToJSONTyped(value?: ProductChildResource | n
|
|
|
282
289
|
'sku': value['sku'],
|
|
283
290
|
'buyPrice': value['buyPrice'],
|
|
284
291
|
'hideFromFrontend': value['hideFromFrontend'],
|
|
292
|
+
'supplierBarcode': value['supplierBarcode'],
|
|
285
293
|
'popularityScore': value['popularityScore'],
|
|
286
294
|
'excludeFromSearch': value['excludeFromSearch'],
|
|
287
295
|
'isOversized': value['isOversized'],
|
|
288
296
|
'isBundle': value['isBundle'],
|
|
289
|
-
'
|
|
297
|
+
'bundleUpcCode': value['bundleUpcCode'],
|
|
290
298
|
'displayInSocialFeed': value['displayInSocialFeed'],
|
|
291
299
|
'googleStockStatus': value['googleStockStatus'],
|
|
292
300
|
'netsuiteId': value['netsuiteId'],
|
|
@@ -0,0 +1,111 @@
|
|
|
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 ProductRangeFrontendListResource
|
|
20
|
+
*/
|
|
21
|
+
export interface ProductRangeFrontendListResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof ProductRangeFrontendListResource
|
|
26
|
+
*/
|
|
27
|
+
id: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ProductRangeFrontendListResource
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ProductRangeFrontendListResource
|
|
38
|
+
*/
|
|
39
|
+
slug: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof ProductRangeFrontendListResource
|
|
44
|
+
*/
|
|
45
|
+
excerpt: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {object}
|
|
49
|
+
* @memberof ProductRangeFrontendListResource
|
|
50
|
+
*/
|
|
51
|
+
thumbnail: object;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {object}
|
|
55
|
+
* @memberof ProductRangeFrontendListResource
|
|
56
|
+
*/
|
|
57
|
+
categories: object;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the ProductRangeFrontendListResource interface.
|
|
62
|
+
*/
|
|
63
|
+
export function instanceOfProductRangeFrontendListResource(value: object): value is ProductRangeFrontendListResource {
|
|
64
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
65
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
66
|
+
if (!('slug' in value) || value['slug'] === undefined) return false;
|
|
67
|
+
if (!('excerpt' in value) || value['excerpt'] === undefined) return false;
|
|
68
|
+
if (!('thumbnail' in value) || value['thumbnail'] === undefined) return false;
|
|
69
|
+
if (!('categories' in value) || value['categories'] === undefined) return false;
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function ProductRangeFrontendListResourceFromJSON(json: any): ProductRangeFrontendListResource {
|
|
74
|
+
return ProductRangeFrontendListResourceFromJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function ProductRangeFrontendListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRangeFrontendListResource {
|
|
78
|
+
if (json == null) {
|
|
79
|
+
return json;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'id': json['id'],
|
|
84
|
+
'name': json['name'],
|
|
85
|
+
'slug': json['slug'],
|
|
86
|
+
'excerpt': json['excerpt'],
|
|
87
|
+
'thumbnail': json['thumbnail'],
|
|
88
|
+
'categories': json['categories'],
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function ProductRangeFrontendListResourceToJSON(json: any): ProductRangeFrontendListResource {
|
|
93
|
+
return ProductRangeFrontendListResourceToJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function ProductRangeFrontendListResourceToJSONTyped(value?: ProductRangeFrontendListResource | null, ignoreDiscriminator: boolean = false): any {
|
|
97
|
+
if (value == null) {
|
|
98
|
+
return value;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return {
|
|
102
|
+
|
|
103
|
+
'id': value['id'],
|
|
104
|
+
'name': value['name'],
|
|
105
|
+
'slug': value['slug'],
|
|
106
|
+
'excerpt': value['excerpt'],
|
|
107
|
+
'thumbnail': value['thumbnail'],
|
|
108
|
+
'categories': value['categories'],
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
|