@digital8/lighting-illusions-ts-sdk 0.0.1024 → 0.0.1026
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 +64 -0
- package/README.md +50 -2
- package/dist/apis/AttributeApi.d.ts +16 -1
- package/dist/apis/AttributeApi.js +58 -0
- package/dist/apis/ProductRangeApi.d.ts +269 -0
- package/dist/apis/ProductRangeApi.js +1043 -0
- package/dist/apis/index.d.ts +1 -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/GetAllDocumentRequest.d.ts +1 -0
- package/dist/models/GetAllDocumentRequest.js +1 -0
- package/dist/models/GetAllProductChildRequest.d.ts +1 -0
- package/dist/models/GetAllProductChildRequest.js +1 -0
- package/dist/models/GetAllProductRangeRequest.d.ts +98 -0
- package/dist/models/GetAllProductRangeRequest.js +82 -0
- package/dist/models/IndexAttributeRequest.d.ts +2 -0
- package/dist/models/IndexAttributeRequest.js +3 -1
- package/dist/models/IndexDocumentRequest.d.ts +1 -0
- package/dist/models/IndexDocumentRequest.js +1 -0
- package/dist/models/IndexModelAttributeRequest.d.ts +118 -0
- package/dist/models/IndexModelAttributeRequest.js +93 -0
- package/dist/models/IndexProductChildRequest.d.ts +1 -0
- package/dist/models/IndexProductChildRequest.js +1 -0
- package/dist/models/IndexProductRangeRequest.d.ts +110 -0
- package/dist/models/IndexProductRangeRequest.js +86 -0
- package/dist/models/ModelAttributeListResource.d.ts +52 -0
- package/dist/models/ModelAttributeListResource.js +65 -0
- package/dist/models/ModelAttributeListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ModelAttributeListResourceArrayResponse.js +50 -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/ProductChildListResource.d.ts +0 -6
- package/dist/models/ProductChildListResource.js +0 -4
- package/dist/models/ProductChildSiteDetailResource.d.ts +0 -6
- package/dist/models/ProductChildSiteDetailResource.js +0 -4
- 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 +31 -0
- package/dist/models/index.js +31 -0
- package/docs/AttachAccessoriesProductRangeRequest.md +34 -0
- package/docs/AttachAttributesProductRangeRequest.md +34 -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/IndexModelAttributeRequest.md +54 -0
- package/docs/IndexProductRangeRequest.md +54 -0
- package/docs/ModelAttributeListResource.md +40 -0
- package/docs/ModelAttributeListResourceArrayResponse.md +34 -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/ProductChildListResource.md +0 -2
- package/docs/ProductChildSiteDetailResource.md +0 -2
- 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 +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/AttributeApi.ts +50 -0
- package/src/apis/ProductRangeApi.ts +888 -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/GetAllDocumentRequest.ts +1 -0
- package/src/models/GetAllProductChildRequest.ts +1 -0
- package/src/models/GetAllProductRangeRequest.ts +151 -0
- package/src/models/IndexAttributeRequest.ts +3 -1
- package/src/models/IndexDocumentRequest.ts +1 -0
- package/src/models/IndexModelAttributeRequest.ts +176 -0
- package/src/models/IndexProductChildRequest.ts +1 -0
- package/src/models/IndexProductRangeRequest.ts +167 -0
- package/src/models/ModelAttributeListResource.ts +108 -0
- package/src/models/ModelAttributeListResourceArrayResponse.ts +73 -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/ProductChildListResource.ts +0 -9
- package/src/models/ProductChildSiteDetailResource.ts +0 -9
- 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 +31 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfPaginatedProductRangeResourceResponse = instanceOfPaginatedProductRangeResourceResponse;
|
|
17
|
+
exports.PaginatedProductRangeResourceResponseFromJSON = PaginatedProductRangeResourceResponseFromJSON;
|
|
18
|
+
exports.PaginatedProductRangeResourceResponseFromJSONTyped = PaginatedProductRangeResourceResponseFromJSONTyped;
|
|
19
|
+
exports.PaginatedProductRangeResourceResponseToJSON = PaginatedProductRangeResourceResponseToJSON;
|
|
20
|
+
exports.PaginatedProductRangeResourceResponseToJSONTyped = PaginatedProductRangeResourceResponseToJSONTyped;
|
|
21
|
+
var PagingMetadata_1 = require("./PagingMetadata");
|
|
22
|
+
var ProductRangeResource_1 = require("./ProductRangeResource");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PaginatedProductRangeResourceResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPaginatedProductRangeResourceResponse(value) {
|
|
27
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('meta' in value) || value['meta'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function PaginatedProductRangeResourceResponseFromJSON(json) {
|
|
34
|
+
return PaginatedProductRangeResourceResponseFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function PaginatedProductRangeResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'data': (json['data'].map(ProductRangeResource_1.ProductRangeResourceFromJSON)),
|
|
42
|
+
'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function PaginatedProductRangeResourceResponseToJSON(json) {
|
|
46
|
+
return PaginatedProductRangeResourceResponseToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function PaginatedProductRangeResourceResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'data': (value['data'].map(ProductRangeResource_1.ProductRangeResourceToJSON)),
|
|
55
|
+
'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -59,12 +59,6 @@ export interface ProductChildListResource {
|
|
|
59
59
|
* @memberof ProductChildListResource
|
|
60
60
|
*/
|
|
61
61
|
isDisabled?: string | null;
|
|
62
|
-
/**
|
|
63
|
-
*
|
|
64
|
-
* @type {boolean}
|
|
65
|
-
* @memberof ProductChildListResource
|
|
66
|
-
*/
|
|
67
|
-
displayInSocialFeed: boolean;
|
|
68
62
|
/**
|
|
69
63
|
*
|
|
70
64
|
* @type {number}
|
|
@@ -34,8 +34,6 @@ function instanceOfProductChildListResource(value) {
|
|
|
34
34
|
return false;
|
|
35
35
|
if (!('stock' in value) || value['stock'] === undefined)
|
|
36
36
|
return false;
|
|
37
|
-
if (!('displayInSocialFeed' in value) || value['displayInSocialFeed'] === undefined)
|
|
38
|
-
return false;
|
|
39
37
|
if (!('netsuiteId' in value) || value['netsuiteId'] === undefined)
|
|
40
38
|
return false;
|
|
41
39
|
if (!('thumbnail' in value) || value['thumbnail'] === undefined)
|
|
@@ -59,7 +57,6 @@ function ProductChildListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
59
57
|
'model': json['model'],
|
|
60
58
|
'stock': json['stock'],
|
|
61
59
|
'isDisabled': json['isDisabled'] == null ? undefined : json['isDisabled'],
|
|
62
|
-
'displayInSocialFeed': json['displayInSocialFeed'],
|
|
63
60
|
'netsuiteId': json['netsuiteId'],
|
|
64
61
|
'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceFromJSON)(json['thumbnail']),
|
|
65
62
|
'siteDetails': (json['siteDetails'] == null ? null : json['siteDetails'].map(ProductChildSiteDetailLiteResource_1.ProductChildSiteDetailLiteResourceFromJSON)),
|
|
@@ -81,7 +78,6 @@ function ProductChildListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
81
78
|
'model': value['model'],
|
|
82
79
|
'stock': value['stock'],
|
|
83
80
|
'isDisabled': value['isDisabled'],
|
|
84
|
-
'displayInSocialFeed': value['displayInSocialFeed'],
|
|
85
81
|
'netsuiteId': value['netsuiteId'],
|
|
86
82
|
'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceToJSON)(value['thumbnail']),
|
|
87
83
|
'siteDetails': (value['siteDetails'] == null ? null : value['siteDetails'].map(ProductChildSiteDetailLiteResource_1.ProductChildSiteDetailLiteResourceToJSON)),
|
|
@@ -89,12 +89,6 @@ export interface ProductChildSiteDetailResource {
|
|
|
89
89
|
* @memberof ProductChildSiteDetailResource
|
|
90
90
|
*/
|
|
91
91
|
isDisabled: boolean;
|
|
92
|
-
/**
|
|
93
|
-
*
|
|
94
|
-
* @type {boolean}
|
|
95
|
-
* @memberof ProductChildSiteDetailResource
|
|
96
|
-
*/
|
|
97
|
-
displayInTgnFeed: boolean;
|
|
98
92
|
/**
|
|
99
93
|
*
|
|
100
94
|
* @type {SEOResource}
|
|
@@ -48,8 +48,6 @@ function instanceOfProductChildSiteDetailResource(value) {
|
|
|
48
48
|
return false;
|
|
49
49
|
if (!('isDisabled' in value) || value['isDisabled'] === undefined)
|
|
50
50
|
return false;
|
|
51
|
-
if (!('displayInTgnFeed' in value) || value['displayInTgnFeed'] === undefined)
|
|
52
|
-
return false;
|
|
53
51
|
if (!('seo' in value) || value['seo'] === undefined)
|
|
54
52
|
return false;
|
|
55
53
|
return true;
|
|
@@ -74,7 +72,6 @@ function ProductChildSiteDetailResourceFromJSONTyped(json, ignoreDiscriminator)
|
|
|
74
72
|
'rrpPrice': json['rrpPrice'],
|
|
75
73
|
'salePrice': json['salePrice'],
|
|
76
74
|
'isDisabled': json['isDisabled'],
|
|
77
|
-
'displayInTgnFeed': json['displayInTgnFeed'],
|
|
78
75
|
'seo': (0, SEOResource_1.SEOResourceFromJSON)(json['seo']),
|
|
79
76
|
'omnisendId': json['omnisendId'] == null ? undefined : json['omnisendId'],
|
|
80
77
|
'omnisendSyncStatus': json['omnisendSyncStatus'] == null ? undefined : json['omnisendSyncStatus'],
|
|
@@ -101,7 +98,6 @@ function ProductChildSiteDetailResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
101
98
|
'rrpPrice': value['rrpPrice'],
|
|
102
99
|
'salePrice': value['salePrice'],
|
|
103
100
|
'isDisabled': value['isDisabled'],
|
|
104
|
-
'displayInTgnFeed': value['displayInTgnFeed'],
|
|
105
101
|
'seo': (0, SEOResource_1.SEOResourceToJSON)(value['seo']),
|
|
106
102
|
'omnisendId': value['omnisendId'],
|
|
107
103
|
'omnisendSyncStatus': value['omnisendSyncStatus'],
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ProductRangeFrontendListResource
|
|
16
|
+
*/
|
|
17
|
+
export interface ProductRangeFrontendListResource {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof ProductRangeFrontendListResource
|
|
22
|
+
*/
|
|
23
|
+
id: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ProductRangeFrontendListResource
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ProductRangeFrontendListResource
|
|
34
|
+
*/
|
|
35
|
+
slug: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ProductRangeFrontendListResource
|
|
40
|
+
*/
|
|
41
|
+
excerpt: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {object}
|
|
45
|
+
* @memberof ProductRangeFrontendListResource
|
|
46
|
+
*/
|
|
47
|
+
thumbnail: object;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {object}
|
|
51
|
+
* @memberof ProductRangeFrontendListResource
|
|
52
|
+
*/
|
|
53
|
+
categories: object;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the ProductRangeFrontendListResource interface.
|
|
57
|
+
*/
|
|
58
|
+
export declare function instanceOfProductRangeFrontendListResource(value: object): value is ProductRangeFrontendListResource;
|
|
59
|
+
export declare function ProductRangeFrontendListResourceFromJSON(json: any): ProductRangeFrontendListResource;
|
|
60
|
+
export declare function ProductRangeFrontendListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRangeFrontendListResource;
|
|
61
|
+
export declare function ProductRangeFrontendListResourceToJSON(json: any): ProductRangeFrontendListResource;
|
|
62
|
+
export declare function ProductRangeFrontendListResourceToJSONTyped(value?: ProductRangeFrontendListResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfProductRangeFrontendListResource = instanceOfProductRangeFrontendListResource;
|
|
17
|
+
exports.ProductRangeFrontendListResourceFromJSON = ProductRangeFrontendListResourceFromJSON;
|
|
18
|
+
exports.ProductRangeFrontendListResourceFromJSONTyped = ProductRangeFrontendListResourceFromJSONTyped;
|
|
19
|
+
exports.ProductRangeFrontendListResourceToJSON = ProductRangeFrontendListResourceToJSON;
|
|
20
|
+
exports.ProductRangeFrontendListResourceToJSONTyped = ProductRangeFrontendListResourceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ProductRangeFrontendListResource interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfProductRangeFrontendListResource(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('slug' in value) || value['slug'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('excerpt' in value) || value['excerpt'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('thumbnail' in value) || value['thumbnail'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('categories' in value) || value['categories'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function ProductRangeFrontendListResourceFromJSON(json) {
|
|
40
|
+
return ProductRangeFrontendListResourceFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ProductRangeFrontendListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'id': json['id'],
|
|
48
|
+
'name': json['name'],
|
|
49
|
+
'slug': json['slug'],
|
|
50
|
+
'excerpt': json['excerpt'],
|
|
51
|
+
'thumbnail': json['thumbnail'],
|
|
52
|
+
'categories': json['categories'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function ProductRangeFrontendListResourceToJSON(json) {
|
|
56
|
+
return ProductRangeFrontendListResourceToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function ProductRangeFrontendListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
59
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'id': value['id'],
|
|
65
|
+
'name': value['name'],
|
|
66
|
+
'slug': value['slug'],
|
|
67
|
+
'excerpt': value['excerpt'],
|
|
68
|
+
'thumbnail': value['thumbnail'],
|
|
69
|
+
'categories': value['categories'],
|
|
70
|
+
};
|
|
71
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ProductRangeFrontendListResource } from './ProductRangeFrontendListResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ProductRangeFrontendListResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface ProductRangeFrontendListResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ProductRangeFrontendListResource>}
|
|
22
|
+
* @memberof ProductRangeFrontendListResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<ProductRangeFrontendListResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ProductRangeFrontendListResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfProductRangeFrontendListResourceArrayResponse(value: object): value is ProductRangeFrontendListResourceArrayResponse;
|
|
30
|
+
export declare function ProductRangeFrontendListResourceArrayResponseFromJSON(json: any): ProductRangeFrontendListResourceArrayResponse;
|
|
31
|
+
export declare function ProductRangeFrontendListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRangeFrontendListResourceArrayResponse;
|
|
32
|
+
export declare function ProductRangeFrontendListResourceArrayResponseToJSON(json: any): ProductRangeFrontendListResourceArrayResponse;
|
|
33
|
+
export declare function ProductRangeFrontendListResourceArrayResponseToJSONTyped(value?: ProductRangeFrontendListResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfProductRangeFrontendListResourceArrayResponse = instanceOfProductRangeFrontendListResourceArrayResponse;
|
|
17
|
+
exports.ProductRangeFrontendListResourceArrayResponseFromJSON = ProductRangeFrontendListResourceArrayResponseFromJSON;
|
|
18
|
+
exports.ProductRangeFrontendListResourceArrayResponseFromJSONTyped = ProductRangeFrontendListResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.ProductRangeFrontendListResourceArrayResponseToJSON = ProductRangeFrontendListResourceArrayResponseToJSON;
|
|
20
|
+
exports.ProductRangeFrontendListResourceArrayResponseToJSONTyped = ProductRangeFrontendListResourceArrayResponseToJSONTyped;
|
|
21
|
+
var ProductRangeFrontendListResource_1 = require("./ProductRangeFrontendListResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ProductRangeFrontendListResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfProductRangeFrontendListResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function ProductRangeFrontendListResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return ProductRangeFrontendListResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function ProductRangeFrontendListResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(ProductRangeFrontendListResource_1.ProductRangeFrontendListResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function ProductRangeFrontendListResourceArrayResponseToJSON(json) {
|
|
40
|
+
return ProductRangeFrontendListResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ProductRangeFrontendListResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'data': value['data'] == null ? undefined : (value['data'].map(ProductRangeFrontendListResource_1.ProductRangeFrontendListResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { SupplierFrontendResource } from './SupplierFrontendResource';
|
|
13
|
+
import type { AssetFrontendResource } from './AssetFrontendResource';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface ProductRangeFrontendResource
|
|
18
|
+
*/
|
|
19
|
+
export interface ProductRangeFrontendResource {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {number}
|
|
23
|
+
* @memberof ProductRangeFrontendResource
|
|
24
|
+
*/
|
|
25
|
+
id: number;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof ProductRangeFrontendResource
|
|
30
|
+
*/
|
|
31
|
+
name: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof ProductRangeFrontendResource
|
|
36
|
+
*/
|
|
37
|
+
slug: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof ProductRangeFrontendResource
|
|
42
|
+
*/
|
|
43
|
+
description: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof ProductRangeFrontendResource
|
|
48
|
+
*/
|
|
49
|
+
content: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof ProductRangeFrontendResource
|
|
54
|
+
*/
|
|
55
|
+
excerpt: string;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {number}
|
|
59
|
+
* @memberof ProductRangeFrontendResource
|
|
60
|
+
*/
|
|
61
|
+
siteId: number;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {SupplierFrontendResource}
|
|
65
|
+
* @memberof ProductRangeFrontendResource
|
|
66
|
+
*/
|
|
67
|
+
supplier: SupplierFrontendResource | null;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {object}
|
|
71
|
+
* @memberof ProductRangeFrontendResource
|
|
72
|
+
*/
|
|
73
|
+
categories: object;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {object}
|
|
77
|
+
* @memberof ProductRangeFrontendResource
|
|
78
|
+
*/
|
|
79
|
+
products: object;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {object}
|
|
83
|
+
* @memberof ProductRangeFrontendResource
|
|
84
|
+
*/
|
|
85
|
+
accessories: object;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {object}
|
|
89
|
+
* @memberof ProductRangeFrontendResource
|
|
90
|
+
*/
|
|
91
|
+
documents: object;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {object}
|
|
95
|
+
* @memberof ProductRangeFrontendResource
|
|
96
|
+
*/
|
|
97
|
+
seo: object;
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @type {Array<AssetFrontendResource>}
|
|
101
|
+
* @memberof ProductRangeFrontendResource
|
|
102
|
+
*/
|
|
103
|
+
assets: Array<AssetFrontendResource> | null;
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @type {AssetFrontendResource}
|
|
107
|
+
* @memberof ProductRangeFrontendResource
|
|
108
|
+
*/
|
|
109
|
+
thumbnail: AssetFrontendResource | null;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Check if a given object implements the ProductRangeFrontendResource interface.
|
|
113
|
+
*/
|
|
114
|
+
export declare function instanceOfProductRangeFrontendResource(value: object): value is ProductRangeFrontendResource;
|
|
115
|
+
export declare function ProductRangeFrontendResourceFromJSON(json: any): ProductRangeFrontendResource;
|
|
116
|
+
export declare function ProductRangeFrontendResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRangeFrontendResource;
|
|
117
|
+
export declare function ProductRangeFrontendResourceToJSON(json: any): ProductRangeFrontendResource;
|
|
118
|
+
export declare function ProductRangeFrontendResourceToJSONTyped(value?: ProductRangeFrontendResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfProductRangeFrontendResource = instanceOfProductRangeFrontendResource;
|
|
17
|
+
exports.ProductRangeFrontendResourceFromJSON = ProductRangeFrontendResourceFromJSON;
|
|
18
|
+
exports.ProductRangeFrontendResourceFromJSONTyped = ProductRangeFrontendResourceFromJSONTyped;
|
|
19
|
+
exports.ProductRangeFrontendResourceToJSON = ProductRangeFrontendResourceToJSON;
|
|
20
|
+
exports.ProductRangeFrontendResourceToJSONTyped = ProductRangeFrontendResourceToJSONTyped;
|
|
21
|
+
var SupplierFrontendResource_1 = require("./SupplierFrontendResource");
|
|
22
|
+
var AssetFrontendResource_1 = require("./AssetFrontendResource");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the ProductRangeFrontendResource interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfProductRangeFrontendResource(value) {
|
|
27
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('slug' in value) || value['slug'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('content' in value) || value['content'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('excerpt' in value) || value['excerpt'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('siteId' in value) || value['siteId'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('supplier' in value) || value['supplier'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('categories' in value) || value['categories'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('products' in value) || value['products'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('accessories' in value) || value['accessories'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('documents' in value) || value['documents'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('seo' in value) || value['seo'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
if (!('assets' in value) || value['assets'] === undefined)
|
|
54
|
+
return false;
|
|
55
|
+
if (!('thumbnail' in value) || value['thumbnail'] === undefined)
|
|
56
|
+
return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
function ProductRangeFrontendResourceFromJSON(json) {
|
|
60
|
+
return ProductRangeFrontendResourceFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
function ProductRangeFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
63
|
+
if (json == null) {
|
|
64
|
+
return json;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
'id': json['id'],
|
|
68
|
+
'name': json['name'],
|
|
69
|
+
'slug': json['slug'],
|
|
70
|
+
'description': json['description'],
|
|
71
|
+
'content': json['content'],
|
|
72
|
+
'excerpt': json['excerpt'],
|
|
73
|
+
'siteId': json['siteId'],
|
|
74
|
+
'supplier': (0, SupplierFrontendResource_1.SupplierFrontendResourceFromJSON)(json['supplier']),
|
|
75
|
+
'categories': json['categories'],
|
|
76
|
+
'products': json['products'],
|
|
77
|
+
'accessories': json['accessories'],
|
|
78
|
+
'documents': json['documents'],
|
|
79
|
+
'seo': json['seo'],
|
|
80
|
+
'assets': (json['assets'] == null ? null : json['assets'].map(AssetFrontendResource_1.AssetFrontendResourceFromJSON)),
|
|
81
|
+
'thumbnail': (0, AssetFrontendResource_1.AssetFrontendResourceFromJSON)(json['thumbnail']),
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
function ProductRangeFrontendResourceToJSON(json) {
|
|
85
|
+
return ProductRangeFrontendResourceToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
function ProductRangeFrontendResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
88
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
return {
|
|
93
|
+
'id': value['id'],
|
|
94
|
+
'name': value['name'],
|
|
95
|
+
'slug': value['slug'],
|
|
96
|
+
'description': value['description'],
|
|
97
|
+
'content': value['content'],
|
|
98
|
+
'excerpt': value['excerpt'],
|
|
99
|
+
'siteId': value['siteId'],
|
|
100
|
+
'supplier': (0, SupplierFrontendResource_1.SupplierFrontendResourceToJSON)(value['supplier']),
|
|
101
|
+
'categories': value['categories'],
|
|
102
|
+
'products': value['products'],
|
|
103
|
+
'accessories': value['accessories'],
|
|
104
|
+
'documents': value['documents'],
|
|
105
|
+
'seo': value['seo'],
|
|
106
|
+
'assets': (value['assets'] == null ? null : value['assets'].map(AssetFrontendResource_1.AssetFrontendResourceToJSON)),
|
|
107
|
+
'thumbnail': (0, AssetFrontendResource_1.AssetFrontendResourceToJSON)(value['thumbnail']),
|
|
108
|
+
};
|
|
109
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ProductRangeFrontendResource } from './ProductRangeFrontendResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ProductRangeFrontendResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface ProductRangeFrontendResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<ProductRangeFrontendResource>}
|
|
22
|
+
* @memberof ProductRangeFrontendResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<ProductRangeFrontendResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ProductRangeFrontendResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfProductRangeFrontendResourceArrayResponse(value: object): value is ProductRangeFrontendResourceArrayResponse;
|
|
30
|
+
export declare function ProductRangeFrontendResourceArrayResponseFromJSON(json: any): ProductRangeFrontendResourceArrayResponse;
|
|
31
|
+
export declare function ProductRangeFrontendResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductRangeFrontendResourceArrayResponse;
|
|
32
|
+
export declare function ProductRangeFrontendResourceArrayResponseToJSON(json: any): ProductRangeFrontendResourceArrayResponse;
|
|
33
|
+
export declare function ProductRangeFrontendResourceArrayResponseToJSONTyped(value?: ProductRangeFrontendResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfProductRangeFrontendResourceArrayResponse = instanceOfProductRangeFrontendResourceArrayResponse;
|
|
17
|
+
exports.ProductRangeFrontendResourceArrayResponseFromJSON = ProductRangeFrontendResourceArrayResponseFromJSON;
|
|
18
|
+
exports.ProductRangeFrontendResourceArrayResponseFromJSONTyped = ProductRangeFrontendResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.ProductRangeFrontendResourceArrayResponseToJSON = ProductRangeFrontendResourceArrayResponseToJSON;
|
|
20
|
+
exports.ProductRangeFrontendResourceArrayResponseToJSONTyped = ProductRangeFrontendResourceArrayResponseToJSONTyped;
|
|
21
|
+
var ProductRangeFrontendResource_1 = require("./ProductRangeFrontendResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ProductRangeFrontendResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfProductRangeFrontendResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function ProductRangeFrontendResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return ProductRangeFrontendResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function ProductRangeFrontendResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(ProductRangeFrontendResource_1.ProductRangeFrontendResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function ProductRangeFrontendResourceArrayResponseToJSON(json) {
|
|
40
|
+
return ProductRangeFrontendResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ProductRangeFrontendResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'data': value['data'] == null ? undefined : (value['data'].map(ProductRangeFrontendResource_1.ProductRangeFrontendResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|