@digital8/lighting-illusions-ts-sdk 0.0.1213 → 0.0.1214
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +72 -2
- package/README.md +54 -3
- 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 +33 -0
- package/dist/models/AttachAttributesProductRangeRequest.js +52 -0
- package/dist/models/AttachAttributesProductRangeRequestAttributesInner.d.ts +38 -0
- package/dist/models/AttachAttributesProductRangeRequestAttributesInner.js +53 -0
- package/dist/models/AttachDocumentablesDocumentRequestDocumentablesInner.d.ts +1 -0
- package/dist/models/AttachDocumentablesDocumentRequestDocumentablesInner.js +1 -0
- package/dist/models/AttachDocumentsProductRangeRequest.d.ts +33 -0
- package/dist/models/AttachDocumentsProductRangeRequest.js +52 -0
- package/dist/models/DetachAccessoriesProductRangeRequest.d.ts +32 -0
- package/dist/models/DetachAccessoriesProductRangeRequest.js +51 -0
- package/dist/models/DetachAttributesProductRangeRequest.d.ts +32 -0
- package/dist/models/DetachAttributesProductRangeRequest.js +51 -0
- package/dist/models/DetachDocumentablesDocumentRequestDocumentablesInner.d.ts +1 -0
- package/dist/models/DetachDocumentablesDocumentRequestDocumentablesInner.js +1 -0
- package/dist/models/DetachDocumentsProductRangeRequest.d.ts +32 -0
- package/dist/models/DetachDocumentsProductRangeRequest.js +51 -0
- package/dist/models/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/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 +64 -0
- package/dist/models/ModelAttributeListResource.js +71 -0
- package/dist/models/ModelAttributeListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ModelAttributeListResourceArrayResponse.js +50 -0
- package/dist/models/ModelAttributeResource.d.ts +6 -0
- package/dist/models/ModelAttributeResource.js +2 -0
- package/dist/models/PaginatedModelAttributeListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedModelAttributeListResourceResponse.js +57 -0
- package/dist/models/PaginatedProductRangeFrontendListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductRangeFrontendListResourceResponse.js +57 -0
- package/dist/models/PaginatedProductRangeListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductRangeListResourceResponse.js +57 -0
- package/dist/models/PaginatedProductRangeLiteResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductRangeLiteResourceResponse.js +57 -0
- package/dist/models/PaginatedProductRangeResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductRangeResourceResponse.js +57 -0
- package/dist/models/ProductRangeFrontendListResource.d.ts +62 -0
- package/dist/models/ProductRangeFrontendListResource.js +71 -0
- package/dist/models/ProductRangeFrontendListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRangeFrontendListResourceArrayResponse.js +50 -0
- package/dist/models/ProductRangeFrontendResource.d.ts +118 -0
- package/dist/models/ProductRangeFrontendResource.js +109 -0
- package/dist/models/ProductRangeFrontendResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRangeFrontendResourceArrayResponse.js +50 -0
- package/dist/models/ProductRangeListResource.d.ts +66 -0
- package/dist/models/ProductRangeListResource.js +75 -0
- package/dist/models/ProductRangeListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRangeListResourceArrayResponse.js +50 -0
- package/dist/models/ProductRangeLiteResource.d.ts +38 -0
- package/dist/models/ProductRangeLiteResource.js +55 -0
- package/dist/models/ProductRangeLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRangeLiteResourceArrayResponse.js +50 -0
- package/dist/models/ProductRangeResource.d.ts +89 -0
- package/dist/models/ProductRangeResource.js +86 -0
- package/dist/models/ProductRangeResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRangeResourceArrayResponse.js +50 -0
- package/dist/models/ProductRangeSiteDetailLiteResource.d.ts +44 -0
- package/dist/models/ProductRangeSiteDetailLiteResource.js +59 -0
- package/dist/models/ProductRangeSiteDetailLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRangeSiteDetailLiteResourceArrayResponse.js +50 -0
- package/dist/models/ProductRangeSiteDetailResource.d.ts +101 -0
- package/dist/models/ProductRangeSiteDetailResource.js +98 -0
- package/dist/models/ProductRangeSiteDetailResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductRangeSiteDetailResourceArrayResponse.js +50 -0
- package/dist/models/StoreAssetForAssetableRequest.d.ts +3 -0
- package/dist/models/StoreAssetForAssetableRequest.js +4 -1
- package/dist/models/StoreProductRangeRequest.d.ts +52 -0
- package/dist/models/StoreProductRangeRequest.js +59 -0
- package/dist/models/StoreProductRangeRequestSitesInner.d.ts +92 -0
- package/dist/models/StoreProductRangeRequestSitesInner.js +75 -0
- package/dist/models/UpdateProductRangeRequest.d.ts +59 -0
- package/dist/models/UpdateProductRangeRequest.js +62 -0
- package/dist/models/UpdateProductRangeRequestAttributesInner.d.ts +38 -0
- package/dist/models/UpdateProductRangeRequestAttributesInner.js +51 -0
- package/dist/models/UpdateProductTypeRequest.d.ts +9 -9
- package/dist/models/UpdateProductTypeRequest.js +9 -9
- package/dist/models/index.d.ts +35 -1
- package/dist/models/index.js +35 -1
- package/docs/AttachAccessoriesProductRangeRequest.md +34 -0
- package/docs/AttachAttributesProductRangeRequest.md +34 -0
- package/docs/AttachAttributesProductRangeRequestAttributesInner.md +36 -0
- package/docs/AttachDocumentsProductRangeRequest.md +34 -0
- package/docs/AttributeApi.md +66 -0
- package/docs/DetachAccessoriesProductRangeRequest.md +34 -0
- package/docs/DetachAttributesProductRangeRequest.md +34 -0
- package/docs/DetachDocumentsProductRangeRequest.md +34 -0
- package/docs/GetAllProductRangeRequest.md +50 -0
- package/docs/IndexModelAttributeRequest.md +54 -0
- package/docs/IndexProductRangeRequest.md +54 -0
- package/docs/ModelAttributeListResource.md +44 -0
- package/docs/ModelAttributeListResourceArrayResponse.md +34 -0
- package/docs/ModelAttributeResource.md +2 -0
- package/docs/PaginatedModelAttributeListResourceResponse.md +36 -0
- package/docs/PaginatedProductRangeFrontendListResourceResponse.md +36 -0
- package/docs/PaginatedProductRangeListResourceResponse.md +36 -0
- package/docs/PaginatedProductRangeLiteResourceResponse.md +36 -0
- package/docs/PaginatedProductRangeResourceResponse.md +36 -0
- package/docs/ProductRangeApi.md +1097 -0
- package/docs/ProductRangeFrontendListResource.md +44 -0
- package/docs/ProductRangeFrontendListResourceArrayResponse.md +34 -0
- package/docs/ProductRangeFrontendResource.md +62 -0
- package/docs/ProductRangeFrontendResourceArrayResponse.md +34 -0
- package/docs/ProductRangeListResource.md +44 -0
- package/docs/ProductRangeListResourceArrayResponse.md +34 -0
- package/docs/ProductRangeLiteResource.md +36 -0
- package/docs/ProductRangeLiteResourceArrayResponse.md +34 -0
- package/docs/ProductRangeResource.md +52 -0
- package/docs/ProductRangeResourceArrayResponse.md +34 -0
- package/docs/ProductRangeSiteDetailLiteResource.md +38 -0
- package/docs/ProductRangeSiteDetailLiteResourceArrayResponse.md +34 -0
- package/docs/ProductRangeSiteDetailResource.md +56 -0
- package/docs/ProductRangeSiteDetailResourceArrayResponse.md +34 -0
- package/docs/StoreProductRangeRequest.md +40 -0
- package/docs/StoreProductRangeRequestSitesInner.md +54 -0
- package/docs/UpdateProductRangeRequest.md +42 -0
- package/docs/{UpdateProductTypeRequestPerformanceValuesInner.md → UpdateProductRangeRequestAttributesInner.md} +4 -4
- package/docs/UpdateProductTypeRequest.md +4 -4
- package/package.json +1 -1
- package/src/apis/AttributeApi.ts +50 -0
- package/src/apis/ProductRangeApi.ts +888 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AttachAccessoriesProductRangeRequest.ts +66 -0
- package/src/models/AttachAttributesProductRangeRequest.ts +74 -0
- package/src/models/AttachAttributesProductRangeRequestAttributesInner.ts +74 -0
- package/src/models/AttachDocumentablesDocumentRequestDocumentablesInner.ts +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/IndexModelAttributeRequest.ts +176 -0
- package/src/models/IndexProductChildRequest.ts +1 -0
- package/src/models/IndexProductRangeRequest.ts +167 -0
- package/src/models/ModelAttributeListResource.ts +125 -0
- package/src/models/ModelAttributeListResourceArrayResponse.ts +73 -0
- package/src/models/ModelAttributeResource.ts +8 -0
- package/src/models/PaginatedModelAttributeListResourceResponse.ts +90 -0
- package/src/models/PaginatedProductRangeFrontendListResourceResponse.ts +90 -0
- package/src/models/PaginatedProductRangeListResourceResponse.ts +90 -0
- package/src/models/PaginatedProductRangeLiteResourceResponse.ts +90 -0
- package/src/models/PaginatedProductRangeResourceResponse.ts +90 -0
- package/src/models/ProductRangeFrontendListResource.ts +111 -0
- package/src/models/ProductRangeFrontendListResourceArrayResponse.ts +73 -0
- package/src/models/ProductRangeFrontendResource.ts +207 -0
- package/src/models/ProductRangeFrontendResourceArrayResponse.ts +73 -0
- package/src/models/ProductRangeListResource.ts +140 -0
- package/src/models/ProductRangeListResourceArrayResponse.ts +73 -0
- package/src/models/ProductRangeLiteResource.ts +75 -0
- package/src/models/ProductRangeLiteResourceArrayResponse.ts +73 -0
- package/src/models/ProductRangeResource.ts +167 -0
- package/src/models/ProductRangeResourceArrayResponse.ts +73 -0
- package/src/models/ProductRangeSiteDetailLiteResource.ts +84 -0
- package/src/models/ProductRangeSiteDetailLiteResourceArrayResponse.ts +73 -0
- package/src/models/ProductRangeSiteDetailResource.ts +187 -0
- package/src/models/ProductRangeSiteDetailResourceArrayResponse.ts +73 -0
- package/src/models/StoreAssetForAssetableRequest.ts +4 -1
- package/src/models/StoreProductRangeRequest.ts +105 -0
- package/src/models/StoreProductRangeRequestSitesInner.ts +148 -0
- package/src/models/UpdateProductRangeRequest.ts +120 -0
- package/src/models/UpdateProductRangeRequestAttributesInner.ts +73 -0
- package/src/models/UpdateProductTypeRequest.ts +22 -22
- package/src/models/index.ts +35 -1
- package/dist/models/UpdateProductTypeRequestPerformanceValuesInner.d.ts +0 -38
- package/dist/models/UpdateProductTypeRequestPerformanceValuesInner.js +0 -51
- package/src/models/UpdateProductTypeRequestPerformanceValuesInner.ts +0 -73
|
@@ -0,0 +1,40 @@
|
|
|
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 { PagingMetadata } from './PagingMetadata';
|
|
13
|
+
import type { ProductRangeLiteResource } from './ProductRangeLiteResource';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PaginatedProductRangeLiteResourceResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface PaginatedProductRangeLiteResourceResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Array<ProductRangeLiteResource>}
|
|
23
|
+
* @memberof PaginatedProductRangeLiteResourceResponse
|
|
24
|
+
*/
|
|
25
|
+
data: Array<ProductRangeLiteResource>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {PagingMetadata}
|
|
29
|
+
* @memberof PaginatedProductRangeLiteResourceResponse
|
|
30
|
+
*/
|
|
31
|
+
meta: PagingMetadata;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PaginatedProductRangeLiteResourceResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfPaginatedProductRangeLiteResourceResponse(value: object): value is PaginatedProductRangeLiteResourceResponse;
|
|
37
|
+
export declare function PaginatedProductRangeLiteResourceResponseFromJSON(json: any): PaginatedProductRangeLiteResourceResponse;
|
|
38
|
+
export declare function PaginatedProductRangeLiteResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedProductRangeLiteResourceResponse;
|
|
39
|
+
export declare function PaginatedProductRangeLiteResourceResponseToJSON(json: any): PaginatedProductRangeLiteResourceResponse;
|
|
40
|
+
export declare function PaginatedProductRangeLiteResourceResponseToJSONTyped(value?: PaginatedProductRangeLiteResourceResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -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.instanceOfPaginatedProductRangeLiteResourceResponse = instanceOfPaginatedProductRangeLiteResourceResponse;
|
|
17
|
+
exports.PaginatedProductRangeLiteResourceResponseFromJSON = PaginatedProductRangeLiteResourceResponseFromJSON;
|
|
18
|
+
exports.PaginatedProductRangeLiteResourceResponseFromJSONTyped = PaginatedProductRangeLiteResourceResponseFromJSONTyped;
|
|
19
|
+
exports.PaginatedProductRangeLiteResourceResponseToJSON = PaginatedProductRangeLiteResourceResponseToJSON;
|
|
20
|
+
exports.PaginatedProductRangeLiteResourceResponseToJSONTyped = PaginatedProductRangeLiteResourceResponseToJSONTyped;
|
|
21
|
+
var PagingMetadata_1 = require("./PagingMetadata");
|
|
22
|
+
var ProductRangeLiteResource_1 = require("./ProductRangeLiteResource");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PaginatedProductRangeLiteResourceResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPaginatedProductRangeLiteResourceResponse(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 PaginatedProductRangeLiteResourceResponseFromJSON(json) {
|
|
34
|
+
return PaginatedProductRangeLiteResourceResponseFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function PaginatedProductRangeLiteResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'data': (json['data'].map(ProductRangeLiteResource_1.ProductRangeLiteResourceFromJSON)),
|
|
42
|
+
'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function PaginatedProductRangeLiteResourceResponseToJSON(json) {
|
|
46
|
+
return PaginatedProductRangeLiteResourceResponseToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function PaginatedProductRangeLiteResourceResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'data': (value['data'].map(ProductRangeLiteResource_1.ProductRangeLiteResourceToJSON)),
|
|
55
|
+
'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 { PagingMetadata } from './PagingMetadata';
|
|
13
|
+
import type { ProductRangeResource } from './ProductRangeResource';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PaginatedProductRangeResourceResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface PaginatedProductRangeResourceResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Array<ProductRangeResource>}
|
|
23
|
+
* @memberof PaginatedProductRangeResourceResponse
|
|
24
|
+
*/
|
|
25
|
+
data: Array<ProductRangeResource>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {PagingMetadata}
|
|
29
|
+
* @memberof PaginatedProductRangeResourceResponse
|
|
30
|
+
*/
|
|
31
|
+
meta: PagingMetadata;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PaginatedProductRangeResourceResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfPaginatedProductRangeResourceResponse(value: object): value is PaginatedProductRangeResourceResponse;
|
|
37
|
+
export declare function PaginatedProductRangeResourceResponseFromJSON(json: any): PaginatedProductRangeResourceResponse;
|
|
38
|
+
export declare function PaginatedProductRangeResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedProductRangeResourceResponse;
|
|
39
|
+
export declare function PaginatedProductRangeResourceResponseToJSON(json: any): PaginatedProductRangeResourceResponse;
|
|
40
|
+
export declare function PaginatedProductRangeResourceResponseToJSONTyped(value?: PaginatedProductRangeResourceResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -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
|
+
}
|
|
@@ -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;
|