@digital8/lighting-illusions-ts-sdk 0.0.463 → 0.0.464
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 +62 -0
- package/README.md +34 -4
- package/dist/apis/AttributeApi.d.ts +3 -3
- package/dist/apis/AttributeApi.js +1 -1
- package/dist/apis/OverlayTemplateApi.d.ts +3 -3
- package/dist/apis/OverlayTemplateApi.js +1 -1
- package/dist/apis/ProductApi.d.ts +12 -23
- package/dist/apis/ProductApi.js +15 -60
- package/dist/apis/ProductTypeApi.d.ts +3 -3
- package/dist/apis/ProductTypeApi.js +1 -1
- package/dist/apis/SiteApi.d.ts +5 -5
- package/dist/apis/SiteApi.js +2 -2
- package/dist/apis/SupplierApi.d.ts +3 -3
- package/dist/apis/SupplierApi.js +1 -1
- package/dist/apis/TagApi.d.ts +3 -3
- package/dist/apis/TagApi.js +1 -1
- package/dist/models/AttributeListResource.d.ts +56 -0
- package/dist/models/AttributeListResource.js +67 -0
- package/dist/models/AttributeListResourceArrayResponse.d.ts +33 -0
- package/dist/models/AttributeListResourceArrayResponse.js +50 -0
- package/dist/models/ExternalApiLogListResource.d.ts +56 -0
- package/dist/models/ExternalApiLogListResource.js +63 -0
- package/dist/models/ExternalApiLogListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ExternalApiLogListResourceArrayResponse.js +50 -0
- package/dist/models/GetAllAttributeRequest.d.ts +15 -9
- package/dist/models/GetAllAttributeRequest.js +6 -4
- package/dist/models/GetAllOverlayTemplateRequest.d.ts +12 -6
- package/dist/models/GetAllOverlayTemplateRequest.js +4 -2
- package/dist/models/GetAllProductChildRequest.d.ts +6 -0
- package/dist/models/GetAllProductChildRequest.js +2 -0
- package/dist/models/GetAllProductRequest.d.ts +36 -0
- package/dist/models/GetAllProductRequest.js +12 -0
- package/dist/models/GetAllProductTypeRequest.d.ts +6 -0
- package/dist/models/GetAllProductTypeRequest.js +2 -0
- package/dist/models/GetAllSupplierRequest.d.ts +6 -0
- package/dist/models/GetAllSupplierRequest.js +2 -0
- package/dist/models/IndexAttributeRequest.d.ts +25 -0
- package/dist/models/IndexAttributeRequest.js +13 -1
- package/dist/models/IndexExternalApiLogRequest.d.ts +21 -3
- package/dist/models/IndexExternalApiLogRequest.js +10 -4
- package/dist/models/IndexOverlayTemplateRequest.d.ts +25 -0
- package/dist/models/IndexOverlayTemplateRequest.js +13 -1
- package/dist/models/IndexProductChildRequest.d.ts +6 -0
- package/dist/models/IndexProductChildRequest.js +2 -0
- package/dist/models/IndexProductRequest.d.ts +130 -0
- package/dist/models/IndexProductRequest.js +97 -0
- package/dist/models/IndexProductTypeRequest.d.ts +25 -0
- package/dist/models/IndexProductTypeRequest.js +13 -1
- package/dist/models/IndexSiteNotificationRequest.d.ts +18 -0
- package/dist/models/IndexSiteNotificationRequest.js +6 -0
- package/dist/models/IndexSiteRequest.d.ts +18 -0
- package/dist/models/IndexSiteRequest.js +6 -0
- package/dist/models/IndexSupplierRequest.d.ts +25 -0
- package/dist/models/IndexSupplierRequest.js +13 -1
- package/dist/models/IndexTagRequest.d.ts +25 -0
- package/dist/models/IndexTagRequest.js +13 -1
- package/dist/models/OverlayTemplateListResource.d.ts +38 -0
- package/dist/models/OverlayTemplateListResource.js +55 -0
- package/dist/models/OverlayTemplateListResourceArrayResponse.d.ts +33 -0
- package/dist/models/OverlayTemplateListResourceArrayResponse.js +50 -0
- package/dist/models/PaginatedAttributeListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedAttributeListResourceResponse.js +57 -0
- package/dist/models/PaginatedExternalApiLogListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedExternalApiLogListResourceResponse.js +57 -0
- package/dist/models/PaginatedOverlayTemplateListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedOverlayTemplateListResourceResponse.js +57 -0
- package/dist/models/PaginatedProductChildListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductChildListResourceResponse.js +57 -0
- package/dist/models/PaginatedProductListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductListResourceResponse.js +57 -0
- package/dist/models/PaginatedProductTypeListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductTypeListResourceResponse.js +57 -0
- package/dist/models/PaginatedSiteListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedSiteListResourceResponse.js +57 -0
- package/dist/models/PaginatedSiteNotificationListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedSiteNotificationListResourceResponse.js +57 -0
- package/dist/models/PaginatedSupplierListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedSupplierListResourceResponse.js +57 -0
- package/dist/models/PaginatedTagListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedTagListResourceResponse.js +57 -0
- package/dist/models/ProductChildListResource.d.ts +51 -0
- package/dist/models/ProductChildListResource.js +64 -0
- package/dist/models/ProductChildListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductChildListResourceArrayResponse.js +50 -0
- package/dist/models/ProductListResource.d.ts +38 -0
- package/dist/models/ProductListResource.js +55 -0
- package/dist/models/ProductListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductListResourceArrayResponse.js +50 -0
- package/dist/models/ProductTypeListResource.d.ts +38 -0
- package/dist/models/ProductTypeListResource.js +55 -0
- package/dist/models/ProductTypeListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductTypeListResourceArrayResponse.js +50 -0
- package/dist/models/SiteListResource.d.ts +50 -0
- package/dist/models/SiteListResource.js +63 -0
- package/dist/models/SiteListResourceArrayResponse.d.ts +33 -0
- package/dist/models/SiteListResourceArrayResponse.js +50 -0
- package/dist/models/SiteNotificationListResource.d.ts +50 -0
- package/dist/models/SiteNotificationListResource.js +59 -0
- package/dist/models/SiteNotificationListResourceArrayResponse.d.ts +33 -0
- package/dist/models/SiteNotificationListResourceArrayResponse.js +50 -0
- package/dist/models/SupplierListResource.d.ts +57 -0
- package/dist/models/SupplierListResource.js +68 -0
- package/dist/models/SupplierListResourceArrayResponse.d.ts +33 -0
- package/dist/models/SupplierListResourceArrayResponse.js +50 -0
- package/dist/models/TagListResource.d.ts +57 -0
- package/dist/models/TagListResource.js +68 -0
- package/dist/models/TagListResourceArrayResponse.d.ts +33 -0
- package/dist/models/TagListResourceArrayResponse.js +50 -0
- package/dist/models/UnlinkAssetableOverlayTemplateRequest.d.ts +6 -0
- package/dist/models/UnlinkAssetableOverlayTemplateRequest.js +2 -0
- package/dist/models/index.d.ts +31 -0
- package/dist/models/index.js +31 -0
- package/docs/AttributeApi.md +3 -3
- package/docs/AttributeListResource.md +42 -0
- package/docs/AttributeListResourceArrayResponse.md +34 -0
- package/docs/ExternalApiLogListResource.md +42 -0
- package/docs/ExternalApiLogListResourceArrayResponse.md +34 -0
- package/docs/GetAllAttributeRequest.md +6 -4
- package/docs/GetAllOverlayTemplateRequest.md +4 -2
- package/docs/GetAllProductChildRequest.md +2 -0
- package/docs/GetAllProductRequest.md +12 -0
- package/docs/GetAllProductTypeRequest.md +2 -0
- package/docs/GetAllSupplierRequest.md +2 -0
- package/docs/IndexAttributeRequest.md +6 -0
- package/docs/IndexExternalApiLogRequest.md +10 -4
- package/docs/IndexOverlayTemplateRequest.md +6 -0
- package/docs/IndexProductChildRequest.md +2 -0
- package/docs/IndexProductRequest.md +58 -0
- package/docs/IndexProductTypeRequest.md +6 -0
- package/docs/IndexSiteNotificationRequest.md +6 -0
- package/docs/IndexSiteRequest.md +6 -0
- package/docs/IndexSupplierRequest.md +6 -0
- package/docs/IndexTagRequest.md +6 -0
- package/docs/OverlayTemplateApi.md +3 -3
- package/docs/OverlayTemplateListResource.md +36 -0
- package/docs/OverlayTemplateListResourceArrayResponse.md +34 -0
- package/docs/PaginatedAttributeListResourceResponse.md +36 -0
- package/docs/PaginatedExternalApiLogListResourceResponse.md +36 -0
- package/docs/PaginatedOverlayTemplateListResourceResponse.md +36 -0
- package/docs/PaginatedProductChildListResourceResponse.md +36 -0
- package/docs/PaginatedProductListResourceResponse.md +36 -0
- package/docs/PaginatedProductTypeListResourceResponse.md +36 -0
- package/docs/PaginatedSiteListResourceResponse.md +36 -0
- package/docs/PaginatedSiteNotificationListResourceResponse.md +36 -0
- package/docs/PaginatedSupplierListResourceResponse.md +36 -0
- package/docs/PaginatedTagListResourceResponse.md +36 -0
- package/docs/ProductApi.md +20 -86
- package/docs/ProductChildListResource.md +40 -0
- package/docs/ProductChildListResourceArrayResponse.md +34 -0
- package/docs/ProductListResource.md +36 -0
- package/docs/ProductListResourceArrayResponse.md +34 -0
- package/docs/ProductTypeApi.md +3 -3
- package/docs/ProductTypeListResource.md +36 -0
- package/docs/ProductTypeListResourceArrayResponse.md +34 -0
- package/docs/SiteApi.md +6 -6
- package/docs/SiteListResource.md +40 -0
- package/docs/SiteListResourceArrayResponse.md +34 -0
- package/docs/SiteNotificationListResource.md +40 -0
- package/docs/SiteNotificationListResourceArrayResponse.md +34 -0
- package/docs/SupplierApi.md +3 -3
- package/docs/SupplierListResource.md +42 -0
- package/docs/SupplierListResourceArrayResponse.md +34 -0
- package/docs/TagApi.md +3 -3
- package/docs/TagListResource.md +42 -0
- package/docs/TagListResourceArrayResponse.md +34 -0
- package/docs/UnlinkAssetableOverlayTemplateRequest.md +2 -0
- package/package.json +1 -1
- package/src/apis/AttributeApi.ts +6 -6
- package/src/apis/OverlayTemplateApi.ts +6 -6
- package/src/apis/ProductApi.ts +27 -60
- package/src/apis/ProductTypeApi.ts +6 -6
- package/src/apis/SiteApi.ts +12 -12
- package/src/apis/SupplierApi.ts +6 -6
- package/src/apis/TagApi.ts +6 -6
- package/src/models/AttributeListResource.ts +102 -0
- package/src/models/AttributeListResourceArrayResponse.ts +73 -0
- package/src/models/ExternalApiLogListResource.ts +100 -0
- package/src/models/ExternalApiLogListResourceArrayResponse.ts +73 -0
- package/src/models/GetAllAttributeRequest.ts +21 -13
- package/src/models/GetAllOverlayTemplateRequest.ts +16 -8
- package/src/models/GetAllProductChildRequest.ts +8 -0
- package/src/models/GetAllProductRequest.ts +48 -0
- package/src/models/GetAllProductTypeRequest.ts +8 -0
- package/src/models/GetAllSupplierRequest.ts +8 -0
- package/src/models/IndexAttributeRequest.ts +32 -0
- package/src/models/IndexExternalApiLogRequest.ts +31 -7
- package/src/models/IndexOverlayTemplateRequest.ts +32 -0
- package/src/models/IndexProductChildRequest.ts +8 -0
- package/src/models/IndexProductRequest.ts +192 -0
- package/src/models/IndexProductTypeRequest.ts +32 -0
- package/src/models/IndexSiteNotificationRequest.ts +24 -0
- package/src/models/IndexSiteRequest.ts +24 -0
- package/src/models/IndexSupplierRequest.ts +32 -0
- package/src/models/IndexTagRequest.ts +32 -0
- package/src/models/OverlayTemplateListResource.ts +75 -0
- package/src/models/OverlayTemplateListResourceArrayResponse.ts +73 -0
- package/src/models/PaginatedAttributeListResourceResponse.ts +90 -0
- package/src/models/PaginatedExternalApiLogListResourceResponse.ts +90 -0
- package/src/models/PaginatedOverlayTemplateListResourceResponse.ts +90 -0
- package/src/models/PaginatedProductChildListResourceResponse.ts +90 -0
- package/src/models/PaginatedProductListResourceResponse.ts +90 -0
- package/src/models/PaginatedProductTypeListResourceResponse.ts +90 -0
- package/src/models/PaginatedSiteListResourceResponse.ts +90 -0
- package/src/models/PaginatedSiteNotificationListResourceResponse.ts +90 -0
- package/src/models/PaginatedSupplierListResourceResponse.ts +90 -0
- package/src/models/PaginatedTagListResourceResponse.ts +90 -0
- package/src/models/ProductChildListResource.ts +101 -0
- package/src/models/ProductChildListResourceArrayResponse.ts +73 -0
- package/src/models/ProductListResource.ts +75 -0
- package/src/models/ProductListResourceArrayResponse.ts +73 -0
- package/src/models/ProductTypeListResource.ts +75 -0
- package/src/models/ProductTypeListResourceArrayResponse.ts +73 -0
- package/src/models/SiteListResource.ts +93 -0
- package/src/models/SiteListResourceArrayResponse.ts +73 -0
- package/src/models/SiteNotificationListResource.ts +91 -0
- package/src/models/SiteNotificationListResourceArrayResponse.ts +73 -0
- package/src/models/SupplierListResource.ts +110 -0
- package/src/models/SupplierListResourceArrayResponse.ts +73 -0
- package/src/models/TagListResource.ts +110 -0
- package/src/models/TagListResourceArrayResponse.ts +73 -0
- package/src/models/UnlinkAssetableOverlayTemplateRequest.ts +8 -0
- package/src/models/index.ts +31 -0
package/src/apis/AttributeApi.ts
CHANGED
|
@@ -24,7 +24,7 @@ import type {
|
|
|
24
24
|
IndexAttributeRequest,
|
|
25
25
|
LinkProductTypeAttributeRequest,
|
|
26
26
|
ModelAttributeResourceArrayResponse,
|
|
27
|
-
|
|
27
|
+
PaginatedAttributeListResourceResponse,
|
|
28
28
|
StoreAttributeRequest,
|
|
29
29
|
StoreAttributeValueRequest,
|
|
30
30
|
UpdateAttributeRequest,
|
|
@@ -51,8 +51,8 @@ import {
|
|
|
51
51
|
LinkProductTypeAttributeRequestToJSON,
|
|
52
52
|
ModelAttributeResourceArrayResponseFromJSON,
|
|
53
53
|
ModelAttributeResourceArrayResponseToJSON,
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
PaginatedAttributeListResourceResponseFromJSON,
|
|
55
|
+
PaginatedAttributeListResourceResponseToJSON,
|
|
56
56
|
StoreAttributeRequestFromJSON,
|
|
57
57
|
StoreAttributeRequestToJSON,
|
|
58
58
|
StoreAttributeValueRequestFromJSON,
|
|
@@ -247,7 +247,7 @@ export class AttributeApi extends runtime.BaseAPI {
|
|
|
247
247
|
/**
|
|
248
248
|
* Auto-generated: indexAttribute
|
|
249
249
|
*/
|
|
250
|
-
async indexAttributeRaw(requestParameters: IndexAttributeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
250
|
+
async indexAttributeRaw(requestParameters: IndexAttributeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedAttributeListResourceResponse>> {
|
|
251
251
|
const queryParameters: any = {};
|
|
252
252
|
|
|
253
253
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -265,13 +265,13 @@ export class AttributeApi extends runtime.BaseAPI {
|
|
|
265
265
|
body: IndexAttributeRequestToJSON(requestParameters['indexAttributeRequest']),
|
|
266
266
|
}, initOverrides);
|
|
267
267
|
|
|
268
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
268
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedAttributeListResourceResponseFromJSON(jsonValue));
|
|
269
269
|
}
|
|
270
270
|
|
|
271
271
|
/**
|
|
272
272
|
* Auto-generated: indexAttribute
|
|
273
273
|
*/
|
|
274
|
-
async indexAttribute(requestParameters: IndexAttributeOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
274
|
+
async indexAttribute(requestParameters: IndexAttributeOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedAttributeListResourceResponse> {
|
|
275
275
|
const response = await this.indexAttributeRaw(requestParameters, initOverrides);
|
|
276
276
|
return await response.value();
|
|
277
277
|
}
|
|
@@ -21,7 +21,7 @@ import type {
|
|
|
21
21
|
LinkAssetsOverlayTemplateRequest,
|
|
22
22
|
OverlayTemplateLiteResourceArrayResponse,
|
|
23
23
|
OverlayTemplateResource,
|
|
24
|
-
|
|
24
|
+
PaginatedOverlayTemplateListResourceResponse,
|
|
25
25
|
StoreOverlayTemplateAssetRequest,
|
|
26
26
|
StoreOverlayTemplateRequest,
|
|
27
27
|
UnlinkAssetableOverlayTemplateRequest,
|
|
@@ -41,8 +41,8 @@ import {
|
|
|
41
41
|
OverlayTemplateLiteResourceArrayResponseToJSON,
|
|
42
42
|
OverlayTemplateResourceFromJSON,
|
|
43
43
|
OverlayTemplateResourceToJSON,
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
PaginatedOverlayTemplateListResourceResponseFromJSON,
|
|
45
|
+
PaginatedOverlayTemplateListResourceResponseToJSON,
|
|
46
46
|
StoreOverlayTemplateAssetRequestFromJSON,
|
|
47
47
|
StoreOverlayTemplateAssetRequestToJSON,
|
|
48
48
|
StoreOverlayTemplateRequestFromJSON,
|
|
@@ -222,7 +222,7 @@ export class OverlayTemplateApi extends runtime.BaseAPI {
|
|
|
222
222
|
/**
|
|
223
223
|
* Auto-generated: indexOverlayTemplate
|
|
224
224
|
*/
|
|
225
|
-
async indexOverlayTemplateRaw(requestParameters: IndexOverlayTemplateOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
225
|
+
async indexOverlayTemplateRaw(requestParameters: IndexOverlayTemplateOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedOverlayTemplateListResourceResponse>> {
|
|
226
226
|
const queryParameters: any = {};
|
|
227
227
|
|
|
228
228
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -240,13 +240,13 @@ export class OverlayTemplateApi extends runtime.BaseAPI {
|
|
|
240
240
|
body: IndexOverlayTemplateRequestToJSON(requestParameters['indexOverlayTemplateRequest']),
|
|
241
241
|
}, initOverrides);
|
|
242
242
|
|
|
243
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
243
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedOverlayTemplateListResourceResponseFromJSON(jsonValue));
|
|
244
244
|
}
|
|
245
245
|
|
|
246
246
|
/**
|
|
247
247
|
* Auto-generated: indexOverlayTemplate
|
|
248
248
|
*/
|
|
249
|
-
async indexOverlayTemplate(requestParameters: IndexOverlayTemplateOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
249
|
+
async indexOverlayTemplate(requestParameters: IndexOverlayTemplateOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedOverlayTemplateListResourceResponse> {
|
|
250
250
|
const response = await this.indexOverlayTemplateRaw(requestParameters, initOverrides);
|
|
251
251
|
return await response.value();
|
|
252
252
|
}
|
package/src/apis/ProductApi.ts
CHANGED
|
@@ -20,8 +20,9 @@ import type {
|
|
|
20
20
|
GetAllProductChildRequest,
|
|
21
21
|
GetAllProductRequest,
|
|
22
22
|
IndexProductChildRequest,
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
IndexProductRequest,
|
|
24
|
+
PaginatedProductChildListResourceResponse,
|
|
25
|
+
PaginatedProductListResourceResponse,
|
|
25
26
|
ProductChildLiteResourceArrayResponse,
|
|
26
27
|
ProductChildResource,
|
|
27
28
|
ProductLiteResourceArrayResponse,
|
|
@@ -42,10 +43,12 @@ import {
|
|
|
42
43
|
GetAllProductRequestToJSON,
|
|
43
44
|
IndexProductChildRequestFromJSON,
|
|
44
45
|
IndexProductChildRequestToJSON,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
IndexProductRequestFromJSON,
|
|
47
|
+
IndexProductRequestToJSON,
|
|
48
|
+
PaginatedProductChildListResourceResponseFromJSON,
|
|
49
|
+
PaginatedProductChildListResourceResponseToJSON,
|
|
50
|
+
PaginatedProductListResourceResponseFromJSON,
|
|
51
|
+
PaginatedProductListResourceResponseToJSON,
|
|
49
52
|
ProductChildLiteResourceArrayResponseFromJSON,
|
|
50
53
|
ProductChildLiteResourceArrayResponseToJSON,
|
|
51
54
|
ProductChildResourceFromJSON,
|
|
@@ -80,15 +83,11 @@ export interface GetAllProductChildOperationRequest {
|
|
|
80
83
|
getAllProductChildRequest?: GetAllProductChildRequest;
|
|
81
84
|
}
|
|
82
85
|
|
|
83
|
-
export interface
|
|
84
|
-
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
export interface SearchProductChildrenExcludingRelationsProductChildRequest {
|
|
88
|
-
indexProductChildRequest?: IndexProductChildRequest;
|
|
86
|
+
export interface IndexProductOperationRequest {
|
|
87
|
+
indexProductRequest?: IndexProductRequest;
|
|
89
88
|
}
|
|
90
89
|
|
|
91
|
-
export interface
|
|
90
|
+
export interface IndexProductChildOperationRequest {
|
|
92
91
|
indexProductChildRequest?: IndexProductChildRequest;
|
|
93
92
|
}
|
|
94
93
|
|
|
@@ -266,41 +265,9 @@ export class ProductApi extends runtime.BaseAPI {
|
|
|
266
265
|
}
|
|
267
266
|
|
|
268
267
|
/**
|
|
269
|
-
* Auto-generated:
|
|
270
|
-
*/
|
|
271
|
-
async indexProductChildRaw(requestParameters: IndexProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductChildResourceResponse>> {
|
|
272
|
-
const queryParameters: any = {};
|
|
273
|
-
|
|
274
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
275
|
-
|
|
276
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
let urlPath = `/admin-api/product/children/list`;
|
|
280
|
-
|
|
281
|
-
const response = await this.request({
|
|
282
|
-
path: urlPath,
|
|
283
|
-
method: 'POST',
|
|
284
|
-
headers: headerParameters,
|
|
285
|
-
query: queryParameters,
|
|
286
|
-
body: IndexProductChildRequestToJSON(requestParameters['indexProductChildRequest']),
|
|
287
|
-
}, initOverrides);
|
|
288
|
-
|
|
289
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedProductChildResourceResponseFromJSON(jsonValue));
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
/**
|
|
293
|
-
* Auto-generated: indexProductChild
|
|
294
|
-
*/
|
|
295
|
-
async indexProductChild(requestParameters: IndexProductChildOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductChildResourceResponse> {
|
|
296
|
-
const response = await this.indexProductChildRaw(requestParameters, initOverrides);
|
|
297
|
-
return await response.value();
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
/**
|
|
301
|
-
* Auto-generated: searchProductChildrenExcludingRelationsProductChild
|
|
268
|
+
* Auto-generated: indexProduct
|
|
302
269
|
*/
|
|
303
|
-
async
|
|
270
|
+
async indexProductRaw(requestParameters: IndexProductOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductListResourceResponse>> {
|
|
304
271
|
const queryParameters: any = {};
|
|
305
272
|
|
|
306
273
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -308,31 +275,31 @@ export class ProductApi extends runtime.BaseAPI {
|
|
|
308
275
|
headerParameters['Content-Type'] = 'application/json';
|
|
309
276
|
|
|
310
277
|
|
|
311
|
-
let urlPath = `/admin-api/product/
|
|
278
|
+
let urlPath = `/admin-api/product/parent/list`;
|
|
312
279
|
|
|
313
280
|
const response = await this.request({
|
|
314
281
|
path: urlPath,
|
|
315
282
|
method: 'POST',
|
|
316
283
|
headers: headerParameters,
|
|
317
284
|
query: queryParameters,
|
|
318
|
-
body:
|
|
285
|
+
body: IndexProductRequestToJSON(requestParameters['indexProductRequest']),
|
|
319
286
|
}, initOverrides);
|
|
320
287
|
|
|
321
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
288
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedProductListResourceResponseFromJSON(jsonValue));
|
|
322
289
|
}
|
|
323
290
|
|
|
324
291
|
/**
|
|
325
|
-
* Auto-generated:
|
|
292
|
+
* Auto-generated: indexProduct
|
|
326
293
|
*/
|
|
327
|
-
async
|
|
328
|
-
const response = await this.
|
|
294
|
+
async indexProduct(requestParameters: IndexProductOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductListResourceResponse> {
|
|
295
|
+
const response = await this.indexProductRaw(requestParameters, initOverrides);
|
|
329
296
|
return await response.value();
|
|
330
297
|
}
|
|
331
298
|
|
|
332
299
|
/**
|
|
333
|
-
* Auto-generated:
|
|
300
|
+
* Auto-generated: indexProductChild
|
|
334
301
|
*/
|
|
335
|
-
async
|
|
302
|
+
async indexProductChildRaw(requestParameters: IndexProductChildOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductChildListResourceResponse>> {
|
|
336
303
|
const queryParameters: any = {};
|
|
337
304
|
|
|
338
305
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -340,7 +307,7 @@ export class ProductApi extends runtime.BaseAPI {
|
|
|
340
307
|
headerParameters['Content-Type'] = 'application/json';
|
|
341
308
|
|
|
342
309
|
|
|
343
|
-
let urlPath = `/admin-api/product/children/
|
|
310
|
+
let urlPath = `/admin-api/product/children/list`;
|
|
344
311
|
|
|
345
312
|
const response = await this.request({
|
|
346
313
|
path: urlPath,
|
|
@@ -350,14 +317,14 @@ export class ProductApi extends runtime.BaseAPI {
|
|
|
350
317
|
body: IndexProductChildRequestToJSON(requestParameters['indexProductChildRequest']),
|
|
351
318
|
}, initOverrides);
|
|
352
319
|
|
|
353
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
320
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedProductChildListResourceResponseFromJSON(jsonValue));
|
|
354
321
|
}
|
|
355
322
|
|
|
356
323
|
/**
|
|
357
|
-
* Auto-generated:
|
|
324
|
+
* Auto-generated: indexProductChild
|
|
358
325
|
*/
|
|
359
|
-
async
|
|
360
|
-
const response = await this.
|
|
326
|
+
async indexProductChild(requestParameters: IndexProductChildOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductChildListResourceResponse> {
|
|
327
|
+
const response = await this.indexProductChildRaw(requestParameters, initOverrides);
|
|
361
328
|
return await response.value();
|
|
362
329
|
}
|
|
363
330
|
|
|
@@ -19,8 +19,8 @@ import type {
|
|
|
19
19
|
GetAllProductTypeRequest,
|
|
20
20
|
IndexProductTypeRequest,
|
|
21
21
|
LinkAttributeProductTypeRequest,
|
|
22
|
+
PaginatedProductTypeListResourceResponse,
|
|
22
23
|
PaginatedProductTypeLiteResourceResponse,
|
|
23
|
-
PaginatedProductTypeResourceResponse,
|
|
24
24
|
ProductTypeResource,
|
|
25
25
|
StoreProductTypeRequest,
|
|
26
26
|
UpdateProductTypeRequest,
|
|
@@ -34,10 +34,10 @@ import {
|
|
|
34
34
|
IndexProductTypeRequestToJSON,
|
|
35
35
|
LinkAttributeProductTypeRequestFromJSON,
|
|
36
36
|
LinkAttributeProductTypeRequestToJSON,
|
|
37
|
+
PaginatedProductTypeListResourceResponseFromJSON,
|
|
38
|
+
PaginatedProductTypeListResourceResponseToJSON,
|
|
37
39
|
PaginatedProductTypeLiteResourceResponseFromJSON,
|
|
38
40
|
PaginatedProductTypeLiteResourceResponseToJSON,
|
|
39
|
-
PaginatedProductTypeResourceResponseFromJSON,
|
|
40
|
-
PaginatedProductTypeResourceResponseToJSON,
|
|
41
41
|
ProductTypeResourceFromJSON,
|
|
42
42
|
ProductTypeResourceToJSON,
|
|
43
43
|
StoreProductTypeRequestFromJSON,
|
|
@@ -163,7 +163,7 @@ export class ProductTypeApi extends runtime.BaseAPI {
|
|
|
163
163
|
/**
|
|
164
164
|
* Auto-generated: indexProductType
|
|
165
165
|
*/
|
|
166
|
-
async indexProductTypeRaw(requestParameters: IndexProductTypeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
166
|
+
async indexProductTypeRaw(requestParameters: IndexProductTypeOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedProductTypeListResourceResponse>> {
|
|
167
167
|
const queryParameters: any = {};
|
|
168
168
|
|
|
169
169
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -181,13 +181,13 @@ export class ProductTypeApi extends runtime.BaseAPI {
|
|
|
181
181
|
body: IndexProductTypeRequestToJSON(requestParameters['indexProductTypeRequest']),
|
|
182
182
|
}, initOverrides);
|
|
183
183
|
|
|
184
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
184
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedProductTypeListResourceResponseFromJSON(jsonValue));
|
|
185
185
|
}
|
|
186
186
|
|
|
187
187
|
/**
|
|
188
188
|
* Auto-generated: indexProductType
|
|
189
189
|
*/
|
|
190
|
-
async indexProductType(requestParameters: IndexProductTypeOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
190
|
+
async indexProductType(requestParameters: IndexProductTypeOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedProductTypeListResourceResponse> {
|
|
191
191
|
const response = await this.indexProductTypeRaw(requestParameters, initOverrides);
|
|
192
192
|
return await response.value();
|
|
193
193
|
}
|
package/src/apis/SiteApi.ts
CHANGED
|
@@ -18,8 +18,8 @@ import type {
|
|
|
18
18
|
GenericResponse,
|
|
19
19
|
IndexSiteNotificationRequest,
|
|
20
20
|
IndexSiteRequest,
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
PaginatedSiteListResourceResponse,
|
|
22
|
+
PaginatedSiteNotificationListResourceResponse,
|
|
23
23
|
SiteLiteResourceArrayResponse,
|
|
24
24
|
SiteNotificationResource,
|
|
25
25
|
SiteResource,
|
|
@@ -34,10 +34,10 @@ import {
|
|
|
34
34
|
IndexSiteNotificationRequestToJSON,
|
|
35
35
|
IndexSiteRequestFromJSON,
|
|
36
36
|
IndexSiteRequestToJSON,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
PaginatedSiteListResourceResponseFromJSON,
|
|
38
|
+
PaginatedSiteListResourceResponseToJSON,
|
|
39
|
+
PaginatedSiteNotificationListResourceResponseFromJSON,
|
|
40
|
+
PaginatedSiteNotificationListResourceResponseToJSON,
|
|
41
41
|
SiteLiteResourceArrayResponseFromJSON,
|
|
42
42
|
SiteLiteResourceArrayResponseToJSON,
|
|
43
43
|
SiteNotificationResourceFromJSON,
|
|
@@ -163,7 +163,7 @@ export class SiteApi extends runtime.BaseAPI {
|
|
|
163
163
|
/**
|
|
164
164
|
* Auto-generated: indexSite
|
|
165
165
|
*/
|
|
166
|
-
async indexSiteRaw(requestParameters: IndexSiteOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
166
|
+
async indexSiteRaw(requestParameters: IndexSiteOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedSiteListResourceResponse>> {
|
|
167
167
|
const queryParameters: any = {};
|
|
168
168
|
|
|
169
169
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -181,13 +181,13 @@ export class SiteApi extends runtime.BaseAPI {
|
|
|
181
181
|
body: IndexSiteRequestToJSON(requestParameters['indexSiteRequest']),
|
|
182
182
|
}, initOverrides);
|
|
183
183
|
|
|
184
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
184
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedSiteListResourceResponseFromJSON(jsonValue));
|
|
185
185
|
}
|
|
186
186
|
|
|
187
187
|
/**
|
|
188
188
|
* Auto-generated: indexSite
|
|
189
189
|
*/
|
|
190
|
-
async indexSite(requestParameters: IndexSiteOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
190
|
+
async indexSite(requestParameters: IndexSiteOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedSiteListResourceResponse> {
|
|
191
191
|
const response = await this.indexSiteRaw(requestParameters, initOverrides);
|
|
192
192
|
return await response.value();
|
|
193
193
|
}
|
|
@@ -195,7 +195,7 @@ export class SiteApi extends runtime.BaseAPI {
|
|
|
195
195
|
/**
|
|
196
196
|
* Auto-generated: indexSiteNotification
|
|
197
197
|
*/
|
|
198
|
-
async indexSiteNotificationRaw(requestParameters: IndexSiteNotificationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
198
|
+
async indexSiteNotificationRaw(requestParameters: IndexSiteNotificationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedSiteNotificationListResourceResponse>> {
|
|
199
199
|
const queryParameters: any = {};
|
|
200
200
|
|
|
201
201
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -213,13 +213,13 @@ export class SiteApi extends runtime.BaseAPI {
|
|
|
213
213
|
body: IndexSiteNotificationRequestToJSON(requestParameters['indexSiteNotificationRequest']),
|
|
214
214
|
}, initOverrides);
|
|
215
215
|
|
|
216
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
216
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedSiteNotificationListResourceResponseFromJSON(jsonValue));
|
|
217
217
|
}
|
|
218
218
|
|
|
219
219
|
/**
|
|
220
220
|
* Auto-generated: indexSiteNotification
|
|
221
221
|
*/
|
|
222
|
-
async indexSiteNotification(requestParameters: IndexSiteNotificationOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
222
|
+
async indexSiteNotification(requestParameters: IndexSiteNotificationOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedSiteNotificationListResourceResponse> {
|
|
223
223
|
const response = await this.indexSiteNotificationRaw(requestParameters, initOverrides);
|
|
224
224
|
return await response.value();
|
|
225
225
|
}
|
package/src/apis/SupplierApi.ts
CHANGED
|
@@ -18,7 +18,7 @@ import type {
|
|
|
18
18
|
GenericResponse,
|
|
19
19
|
GetAllSupplierRequest,
|
|
20
20
|
IndexSupplierRequest,
|
|
21
|
-
|
|
21
|
+
PaginatedSupplierListResourceResponse,
|
|
22
22
|
StoreSupplierRequest,
|
|
23
23
|
SupplierLiteResourceArrayResponse,
|
|
24
24
|
SupplierResource,
|
|
@@ -31,8 +31,8 @@ import {
|
|
|
31
31
|
GetAllSupplierRequestToJSON,
|
|
32
32
|
IndexSupplierRequestFromJSON,
|
|
33
33
|
IndexSupplierRequestToJSON,
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
PaginatedSupplierListResourceResponseFromJSON,
|
|
35
|
+
PaginatedSupplierListResourceResponseToJSON,
|
|
36
36
|
StoreSupplierRequestFromJSON,
|
|
37
37
|
StoreSupplierRequestToJSON,
|
|
38
38
|
SupplierLiteResourceArrayResponseFromJSON,
|
|
@@ -242,7 +242,7 @@ export class SupplierApi extends runtime.BaseAPI {
|
|
|
242
242
|
/**
|
|
243
243
|
* Auto-generated: indexSupplier
|
|
244
244
|
*/
|
|
245
|
-
async indexSupplierRaw(requestParameters: IndexSupplierOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
245
|
+
async indexSupplierRaw(requestParameters: IndexSupplierOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedSupplierListResourceResponse>> {
|
|
246
246
|
const queryParameters: any = {};
|
|
247
247
|
|
|
248
248
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -260,13 +260,13 @@ export class SupplierApi extends runtime.BaseAPI {
|
|
|
260
260
|
body: IndexSupplierRequestToJSON(requestParameters['indexSupplierRequest']),
|
|
261
261
|
}, initOverrides);
|
|
262
262
|
|
|
263
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
263
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedSupplierListResourceResponseFromJSON(jsonValue));
|
|
264
264
|
}
|
|
265
265
|
|
|
266
266
|
/**
|
|
267
267
|
* Auto-generated: indexSupplier
|
|
268
268
|
*/
|
|
269
|
-
async indexSupplier(requestParameters: IndexSupplierOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
269
|
+
async indexSupplier(requestParameters: IndexSupplierOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedSupplierListResourceResponse> {
|
|
270
270
|
const response = await this.indexSupplierRaw(requestParameters, initOverrides);
|
|
271
271
|
return await response.value();
|
|
272
272
|
}
|
package/src/apis/TagApi.ts
CHANGED
|
@@ -18,7 +18,7 @@ import type {
|
|
|
18
18
|
GenericResponse,
|
|
19
19
|
IndexTagRequest,
|
|
20
20
|
LinkProductChildrenTagRequest,
|
|
21
|
-
|
|
21
|
+
PaginatedTagListResourceResponse,
|
|
22
22
|
ProductChildRelationResourceArrayResponse,
|
|
23
23
|
StoreTagRequest,
|
|
24
24
|
TagLiteResourceArrayResponse,
|
|
@@ -32,8 +32,8 @@ import {
|
|
|
32
32
|
IndexTagRequestToJSON,
|
|
33
33
|
LinkProductChildrenTagRequestFromJSON,
|
|
34
34
|
LinkProductChildrenTagRequestToJSON,
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
PaginatedTagListResourceResponseFromJSON,
|
|
36
|
+
PaginatedTagListResourceResponseToJSON,
|
|
37
37
|
ProductChildRelationResourceArrayResponseFromJSON,
|
|
38
38
|
ProductChildRelationResourceArrayResponseToJSON,
|
|
39
39
|
StoreTagRequestFromJSON,
|
|
@@ -158,7 +158,7 @@ export class TagApi extends runtime.BaseAPI {
|
|
|
158
158
|
/**
|
|
159
159
|
* Auto-generated: indexTag
|
|
160
160
|
*/
|
|
161
|
-
async indexTagRaw(requestParameters: IndexTagOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
161
|
+
async indexTagRaw(requestParameters: IndexTagOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedTagListResourceResponse>> {
|
|
162
162
|
const queryParameters: any = {};
|
|
163
163
|
|
|
164
164
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -176,13 +176,13 @@ export class TagApi extends runtime.BaseAPI {
|
|
|
176
176
|
body: IndexTagRequestToJSON(requestParameters['indexTagRequest']),
|
|
177
177
|
}, initOverrides);
|
|
178
178
|
|
|
179
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
179
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedTagListResourceResponseFromJSON(jsonValue));
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
/**
|
|
183
183
|
* Auto-generated: indexTag
|
|
184
184
|
*/
|
|
185
|
-
async indexTag(requestParameters: IndexTagOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
185
|
+
async indexTag(requestParameters: IndexTagOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedTagListResourceResponse> {
|
|
186
186
|
const response = await this.indexTagRaw(requestParameters, initOverrides);
|
|
187
187
|
return await response.value();
|
|
188
188
|
}
|
|
@@ -0,0 +1,102 @@
|
|
|
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 AttributeListResource
|
|
20
|
+
*/
|
|
21
|
+
export interface AttributeListResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof AttributeListResource
|
|
26
|
+
*/
|
|
27
|
+
id: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AttributeListResource
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof AttributeListResource
|
|
38
|
+
*/
|
|
39
|
+
type: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {boolean}
|
|
43
|
+
* @memberof AttributeListResource
|
|
44
|
+
*/
|
|
45
|
+
isFilterable: boolean;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof AttributeListResource
|
|
50
|
+
*/
|
|
51
|
+
filterIndex: number;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the AttributeListResource interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfAttributeListResource(value: object): value is AttributeListResource {
|
|
58
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
59
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
60
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
61
|
+
if (!('isFilterable' in value) || value['isFilterable'] === undefined) return false;
|
|
62
|
+
if (!('filterIndex' in value) || value['filterIndex'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function AttributeListResourceFromJSON(json: any): AttributeListResource {
|
|
67
|
+
return AttributeListResourceFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function AttributeListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttributeListResource {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'id': json['id'],
|
|
77
|
+
'name': json['name'],
|
|
78
|
+
'type': json['type'],
|
|
79
|
+
'isFilterable': json['isFilterable'],
|
|
80
|
+
'filterIndex': json['filterIndex'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function AttributeListResourceToJSON(json: any): AttributeListResource {
|
|
85
|
+
return AttributeListResourceToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function AttributeListResourceToJSONTyped(value?: AttributeListResource | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'id': value['id'],
|
|
96
|
+
'name': value['name'],
|
|
97
|
+
'type': value['type'],
|
|
98
|
+
'isFilterable': value['isFilterable'],
|
|
99
|
+
'filterIndex': value['filterIndex'],
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
@@ -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 { AttributeListResource } from './AttributeListResource';
|
|
17
|
+
import {
|
|
18
|
+
AttributeListResourceFromJSON,
|
|
19
|
+
AttributeListResourceFromJSONTyped,
|
|
20
|
+
AttributeListResourceToJSON,
|
|
21
|
+
AttributeListResourceToJSONTyped,
|
|
22
|
+
} from './AttributeListResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface AttributeListResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface AttributeListResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<AttributeListResource>}
|
|
33
|
+
* @memberof AttributeListResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<AttributeListResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the AttributeListResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfAttributeListResourceArrayResponse(value: object): value is AttributeListResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function AttributeListResourceArrayResponseFromJSON(json: any): AttributeListResourceArrayResponse {
|
|
46
|
+
return AttributeListResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function AttributeListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttributeListResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(AttributeListResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function AttributeListResourceArrayResponseToJSON(json: any): AttributeListResourceArrayResponse {
|
|
60
|
+
return AttributeListResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function AttributeListResourceArrayResponseToJSONTyped(value?: AttributeListResourceArrayResponse | 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(AttributeListResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|