@digital8/lighting-illusions-ts-sdk 0.0.631 → 0.0.633
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 +10 -12
- package/README.md +7 -8
- package/dist/models/OverlayTemplateAssetFrontendResource.d.ts +2 -3
- package/dist/models/OverlayTemplateAssetFrontendResource.js +2 -3
- package/dist/models/OverlayTemplateAssetResource.d.ts +3 -3
- package/dist/models/OverlayTemplateAssetResource.js +3 -3
- package/dist/models/ProductCompareResource.d.ts +2 -2
- package/dist/models/ProductSearchResultResource.d.ts +6 -12
- package/dist/models/ProductSearchResultResource.js +4 -8
- package/dist/models/ProductStatus.d.ts +24 -0
- package/dist/models/ProductStatus.js +50 -0
- package/dist/models/SupplierFrontendResource.d.ts +8 -7
- package/dist/models/SupplierFrontendResource.js +9 -8
- package/dist/models/WishlistCheckResource.d.ts +32 -0
- package/dist/models/WishlistCheckResource.js +51 -0
- package/dist/models/WishlistCheckResourceArrayResponse.d.ts +33 -0
- package/dist/models/WishlistCheckResourceArrayResponse.js +50 -0
- package/dist/models/WishlistToggleResource.d.ts +38 -0
- package/dist/models/WishlistToggleResource.js +55 -0
- package/dist/models/WishlistToggleResourceArrayResponse.d.ts +33 -0
- package/dist/models/WishlistToggleResourceArrayResponse.js +50 -0
- package/dist/models/index.d.ts +5 -6
- package/dist/models/index.js +5 -6
- package/docs/OverlayTemplateAssetFrontendResource.md +1 -1
- package/docs/OverlayTemplateAssetResource.md +1 -1
- package/docs/ProductCompareResource.md +1 -1
- package/docs/ProductSearchResultResource.md +2 -4
- package/docs/{ProductAvailability.md → ProductStatus.md} +4 -4
- package/docs/SupplierFrontendResource.md +4 -4
- package/docs/{PaginatedCategoryFrontendResourceResponse.md → WishlistCheckResource.md} +6 -8
- package/docs/{CategoryFrontendResourceArrayResponse.md → WishlistCheckResourceArrayResponse.md} +5 -5
- package/docs/WishlistToggleResource.md +36 -0
- package/docs/{CategoryWithChildrenFrontendResourceArrayResponse.md → WishlistToggleResourceArrayResponse.md} +5 -5
- package/package.json +1 -1
- package/src/models/OverlayTemplateAssetFrontendResource.ts +4 -12
- package/src/models/OverlayTemplateAssetResource.ts +10 -10
- package/src/models/ProductCompareResource.ts +2 -2
- package/src/models/ProductSearchResultResource.ts +9 -18
- package/src/models/ProductStatus.ts +52 -0
- package/src/models/SupplierFrontendResource.ts +27 -20
- package/src/models/WishlistCheckResource.ts +66 -0
- package/src/models/WishlistCheckResourceArrayResponse.ts +73 -0
- package/src/models/WishlistToggleResource.ts +75 -0
- package/src/models/WishlistToggleResourceArrayResponse.ts +73 -0
- package/src/models/index.ts +5 -6
- package/dist/models/CategoryFrontendResource.d.ts +0 -70
- package/dist/models/CategoryFrontendResource.js +0 -73
- package/dist/models/CategoryFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/CategoryFrontendResourceArrayResponse.js +0 -50
- package/dist/models/CategoryWithChildrenFrontendResource.d.ts +0 -39
- package/dist/models/CategoryWithChildrenFrontendResource.js +0 -56
- package/dist/models/CategoryWithChildrenFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/CategoryWithChildrenFrontendResourceArrayResponse.js +0 -50
- package/dist/models/PaginatedCategoryFrontendResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedCategoryFrontendResourceResponse.js +0 -57
- package/dist/models/ProductAvailability.d.ts +0 -26
- package/dist/models/ProductAvailability.js +0 -52
- package/docs/CategoryFrontendResource.md +0 -46
- package/docs/CategoryWithChildrenFrontendResource.md +0 -36
- package/src/models/CategoryFrontendResource.ts +0 -133
- package/src/models/CategoryFrontendResourceArrayResponse.ts +0 -73
- package/src/models/CategoryWithChildrenFrontendResource.ts +0 -83
- package/src/models/CategoryWithChildrenFrontendResourceArrayResponse.ts +0 -73
- package/src/models/PaginatedCategoryFrontendResourceResponse.ts +0 -90
- package/src/models/ProductAvailability.ts +0 -54
|
@@ -1,70 +0,0 @@
|
|
|
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 { AssetLiteResource } from './AssetLiteResource';
|
|
13
|
-
import type { DescriptionResource } from './DescriptionResource';
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @export
|
|
17
|
-
* @interface CategoryFrontendResource
|
|
18
|
-
*/
|
|
19
|
-
export interface CategoryFrontendResource {
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @type {number}
|
|
23
|
-
* @memberof CategoryFrontendResource
|
|
24
|
-
*/
|
|
25
|
-
id?: number | null;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @type {string}
|
|
29
|
-
* @memberof CategoryFrontendResource
|
|
30
|
-
*/
|
|
31
|
-
name: string;
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @type {string}
|
|
35
|
-
* @memberof CategoryFrontendResource
|
|
36
|
-
*/
|
|
37
|
-
slug: string;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @type {string}
|
|
41
|
-
* @memberof CategoryFrontendResource
|
|
42
|
-
*/
|
|
43
|
-
parentId?: string | null;
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {AssetLiteResource}
|
|
47
|
-
* @memberof CategoryFrontendResource
|
|
48
|
-
*/
|
|
49
|
-
thumbnail: AssetLiteResource | null;
|
|
50
|
-
/**
|
|
51
|
-
*
|
|
52
|
-
* @type {object}
|
|
53
|
-
* @memberof CategoryFrontendResource
|
|
54
|
-
*/
|
|
55
|
-
seo: object;
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* @type {Array<DescriptionResource>}
|
|
59
|
-
* @memberof CategoryFrontendResource
|
|
60
|
-
*/
|
|
61
|
-
descriptions: Array<DescriptionResource> | null;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Check if a given object implements the CategoryFrontendResource interface.
|
|
65
|
-
*/
|
|
66
|
-
export declare function instanceOfCategoryFrontendResource(value: object): value is CategoryFrontendResource;
|
|
67
|
-
export declare function CategoryFrontendResourceFromJSON(json: any): CategoryFrontendResource;
|
|
68
|
-
export declare function CategoryFrontendResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CategoryFrontendResource;
|
|
69
|
-
export declare function CategoryFrontendResourceToJSON(json: any): CategoryFrontendResource;
|
|
70
|
-
export declare function CategoryFrontendResourceToJSONTyped(value?: CategoryFrontendResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,73 +0,0 @@
|
|
|
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.instanceOfCategoryFrontendResource = instanceOfCategoryFrontendResource;
|
|
17
|
-
exports.CategoryFrontendResourceFromJSON = CategoryFrontendResourceFromJSON;
|
|
18
|
-
exports.CategoryFrontendResourceFromJSONTyped = CategoryFrontendResourceFromJSONTyped;
|
|
19
|
-
exports.CategoryFrontendResourceToJSON = CategoryFrontendResourceToJSON;
|
|
20
|
-
exports.CategoryFrontendResourceToJSONTyped = CategoryFrontendResourceToJSONTyped;
|
|
21
|
-
var AssetLiteResource_1 = require("./AssetLiteResource");
|
|
22
|
-
var DescriptionResource_1 = require("./DescriptionResource");
|
|
23
|
-
/**
|
|
24
|
-
* Check if a given object implements the CategoryFrontendResource interface.
|
|
25
|
-
*/
|
|
26
|
-
function instanceOfCategoryFrontendResource(value) {
|
|
27
|
-
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
if (!('slug' in value) || value['slug'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
if (!('thumbnail' in value) || value['thumbnail'] === undefined)
|
|
32
|
-
return false;
|
|
33
|
-
if (!('seo' in value) || value['seo'] === undefined)
|
|
34
|
-
return false;
|
|
35
|
-
if (!('descriptions' in value) || value['descriptions'] === undefined)
|
|
36
|
-
return false;
|
|
37
|
-
return true;
|
|
38
|
-
}
|
|
39
|
-
function CategoryFrontendResourceFromJSON(json) {
|
|
40
|
-
return CategoryFrontendResourceFromJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
function CategoryFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
-
if (json == null) {
|
|
44
|
-
return json;
|
|
45
|
-
}
|
|
46
|
-
return {
|
|
47
|
-
'id': json['id'] == null ? undefined : json['id'],
|
|
48
|
-
'name': json['name'],
|
|
49
|
-
'slug': json['slug'],
|
|
50
|
-
'parentId': json['parentId'] == null ? undefined : json['parentId'],
|
|
51
|
-
'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceFromJSON)(json['thumbnail']),
|
|
52
|
-
'seo': json['seo'],
|
|
53
|
-
'descriptions': (json['descriptions'] == null ? null : json['descriptions'].map(DescriptionResource_1.DescriptionResourceFromJSON)),
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
function CategoryFrontendResourceToJSON(json) {
|
|
57
|
-
return CategoryFrontendResourceToJSONTyped(json, false);
|
|
58
|
-
}
|
|
59
|
-
function CategoryFrontendResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
60
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
61
|
-
if (value == null) {
|
|
62
|
-
return value;
|
|
63
|
-
}
|
|
64
|
-
return {
|
|
65
|
-
'id': value['id'],
|
|
66
|
-
'name': value['name'],
|
|
67
|
-
'slug': value['slug'],
|
|
68
|
-
'parentId': value['parentId'],
|
|
69
|
-
'thumbnail': (0, AssetLiteResource_1.AssetLiteResourceToJSON)(value['thumbnail']),
|
|
70
|
-
'seo': value['seo'],
|
|
71
|
-
'descriptions': (value['descriptions'] == null ? null : value['descriptions'].map(DescriptionResource_1.DescriptionResourceToJSON)),
|
|
72
|
-
};
|
|
73
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
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 { CategoryFrontendResource } from './CategoryFrontendResource';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface CategoryFrontendResourceArrayResponse
|
|
17
|
-
*/
|
|
18
|
-
export interface CategoryFrontendResourceArrayResponse {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<CategoryFrontendResource>}
|
|
22
|
-
* @memberof CategoryFrontendResourceArrayResponse
|
|
23
|
-
*/
|
|
24
|
-
data?: Array<CategoryFrontendResource>;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the CategoryFrontendResourceArrayResponse interface.
|
|
28
|
-
*/
|
|
29
|
-
export declare function instanceOfCategoryFrontendResourceArrayResponse(value: object): value is CategoryFrontendResourceArrayResponse;
|
|
30
|
-
export declare function CategoryFrontendResourceArrayResponseFromJSON(json: any): CategoryFrontendResourceArrayResponse;
|
|
31
|
-
export declare function CategoryFrontendResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CategoryFrontendResourceArrayResponse;
|
|
32
|
-
export declare function CategoryFrontendResourceArrayResponseToJSON(json: any): CategoryFrontendResourceArrayResponse;
|
|
33
|
-
export declare function CategoryFrontendResourceArrayResponseToJSONTyped(value?: CategoryFrontendResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,50 +0,0 @@
|
|
|
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.instanceOfCategoryFrontendResourceArrayResponse = instanceOfCategoryFrontendResourceArrayResponse;
|
|
17
|
-
exports.CategoryFrontendResourceArrayResponseFromJSON = CategoryFrontendResourceArrayResponseFromJSON;
|
|
18
|
-
exports.CategoryFrontendResourceArrayResponseFromJSONTyped = CategoryFrontendResourceArrayResponseFromJSONTyped;
|
|
19
|
-
exports.CategoryFrontendResourceArrayResponseToJSON = CategoryFrontendResourceArrayResponseToJSON;
|
|
20
|
-
exports.CategoryFrontendResourceArrayResponseToJSONTyped = CategoryFrontendResourceArrayResponseToJSONTyped;
|
|
21
|
-
var CategoryFrontendResource_1 = require("./CategoryFrontendResource");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the CategoryFrontendResourceArrayResponse interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfCategoryFrontendResourceArrayResponse(value) {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
function CategoryFrontendResourceArrayResponseFromJSON(json) {
|
|
29
|
-
return CategoryFrontendResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
function CategoryFrontendResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (json == null) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'data': json['data'] == null ? undefined : (json['data'].map(CategoryFrontendResource_1.CategoryFrontendResourceFromJSON)),
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function CategoryFrontendResourceArrayResponseToJSON(json) {
|
|
40
|
-
return CategoryFrontendResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
function CategoryFrontendResourceArrayResponseToJSONTyped(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(CategoryFrontendResource_1.CategoryFrontendResourceToJSON)),
|
|
49
|
-
};
|
|
50
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
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 { CategoryFrontendResource } from './CategoryFrontendResource';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface CategoryWithChildrenFrontendResource
|
|
17
|
-
*/
|
|
18
|
-
export interface CategoryWithChildrenFrontendResource {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {CategoryFrontendResource}
|
|
22
|
-
* @memberof CategoryWithChildrenFrontendResource
|
|
23
|
-
*/
|
|
24
|
-
category: CategoryFrontendResource | null;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {Array<CategoryFrontendResource>}
|
|
28
|
-
* @memberof CategoryWithChildrenFrontendResource
|
|
29
|
-
*/
|
|
30
|
-
children: Array<CategoryFrontendResource> | null;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Check if a given object implements the CategoryWithChildrenFrontendResource interface.
|
|
34
|
-
*/
|
|
35
|
-
export declare function instanceOfCategoryWithChildrenFrontendResource(value: object): value is CategoryWithChildrenFrontendResource;
|
|
36
|
-
export declare function CategoryWithChildrenFrontendResourceFromJSON(json: any): CategoryWithChildrenFrontendResource;
|
|
37
|
-
export declare function CategoryWithChildrenFrontendResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CategoryWithChildrenFrontendResource;
|
|
38
|
-
export declare function CategoryWithChildrenFrontendResourceToJSON(json: any): CategoryWithChildrenFrontendResource;
|
|
39
|
-
export declare function CategoryWithChildrenFrontendResourceToJSONTyped(value?: CategoryWithChildrenFrontendResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,56 +0,0 @@
|
|
|
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.instanceOfCategoryWithChildrenFrontendResource = instanceOfCategoryWithChildrenFrontendResource;
|
|
17
|
-
exports.CategoryWithChildrenFrontendResourceFromJSON = CategoryWithChildrenFrontendResourceFromJSON;
|
|
18
|
-
exports.CategoryWithChildrenFrontendResourceFromJSONTyped = CategoryWithChildrenFrontendResourceFromJSONTyped;
|
|
19
|
-
exports.CategoryWithChildrenFrontendResourceToJSON = CategoryWithChildrenFrontendResourceToJSON;
|
|
20
|
-
exports.CategoryWithChildrenFrontendResourceToJSONTyped = CategoryWithChildrenFrontendResourceToJSONTyped;
|
|
21
|
-
var CategoryFrontendResource_1 = require("./CategoryFrontendResource");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the CategoryWithChildrenFrontendResource interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfCategoryWithChildrenFrontendResource(value) {
|
|
26
|
-
if (!('category' in value) || value['category'] === undefined)
|
|
27
|
-
return false;
|
|
28
|
-
if (!('children' in value) || value['children'] === undefined)
|
|
29
|
-
return false;
|
|
30
|
-
return true;
|
|
31
|
-
}
|
|
32
|
-
function CategoryWithChildrenFrontendResourceFromJSON(json) {
|
|
33
|
-
return CategoryWithChildrenFrontendResourceFromJSONTyped(json, false);
|
|
34
|
-
}
|
|
35
|
-
function CategoryWithChildrenFrontendResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
-
if (json == null) {
|
|
37
|
-
return json;
|
|
38
|
-
}
|
|
39
|
-
return {
|
|
40
|
-
'category': (0, CategoryFrontendResource_1.CategoryFrontendResourceFromJSON)(json['category']),
|
|
41
|
-
'children': (json['children'] == null ? null : json['children'].map(CategoryFrontendResource_1.CategoryFrontendResourceFromJSON)),
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
function CategoryWithChildrenFrontendResourceToJSON(json) {
|
|
45
|
-
return CategoryWithChildrenFrontendResourceToJSONTyped(json, false);
|
|
46
|
-
}
|
|
47
|
-
function CategoryWithChildrenFrontendResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
48
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
49
|
-
if (value == null) {
|
|
50
|
-
return value;
|
|
51
|
-
}
|
|
52
|
-
return {
|
|
53
|
-
'category': (0, CategoryFrontendResource_1.CategoryFrontendResourceToJSON)(value['category']),
|
|
54
|
-
'children': (value['children'] == null ? null : value['children'].map(CategoryFrontendResource_1.CategoryFrontendResourceToJSON)),
|
|
55
|
-
};
|
|
56
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
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 { CategoryWithChildrenFrontendResource } from './CategoryWithChildrenFrontendResource';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface CategoryWithChildrenFrontendResourceArrayResponse
|
|
17
|
-
*/
|
|
18
|
-
export interface CategoryWithChildrenFrontendResourceArrayResponse {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<CategoryWithChildrenFrontendResource>}
|
|
22
|
-
* @memberof CategoryWithChildrenFrontendResourceArrayResponse
|
|
23
|
-
*/
|
|
24
|
-
data?: Array<CategoryWithChildrenFrontendResource>;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the CategoryWithChildrenFrontendResourceArrayResponse interface.
|
|
28
|
-
*/
|
|
29
|
-
export declare function instanceOfCategoryWithChildrenFrontendResourceArrayResponse(value: object): value is CategoryWithChildrenFrontendResourceArrayResponse;
|
|
30
|
-
export declare function CategoryWithChildrenFrontendResourceArrayResponseFromJSON(json: any): CategoryWithChildrenFrontendResourceArrayResponse;
|
|
31
|
-
export declare function CategoryWithChildrenFrontendResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CategoryWithChildrenFrontendResourceArrayResponse;
|
|
32
|
-
export declare function CategoryWithChildrenFrontendResourceArrayResponseToJSON(json: any): CategoryWithChildrenFrontendResourceArrayResponse;
|
|
33
|
-
export declare function CategoryWithChildrenFrontendResourceArrayResponseToJSONTyped(value?: CategoryWithChildrenFrontendResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,50 +0,0 @@
|
|
|
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.instanceOfCategoryWithChildrenFrontendResourceArrayResponse = instanceOfCategoryWithChildrenFrontendResourceArrayResponse;
|
|
17
|
-
exports.CategoryWithChildrenFrontendResourceArrayResponseFromJSON = CategoryWithChildrenFrontendResourceArrayResponseFromJSON;
|
|
18
|
-
exports.CategoryWithChildrenFrontendResourceArrayResponseFromJSONTyped = CategoryWithChildrenFrontendResourceArrayResponseFromJSONTyped;
|
|
19
|
-
exports.CategoryWithChildrenFrontendResourceArrayResponseToJSON = CategoryWithChildrenFrontendResourceArrayResponseToJSON;
|
|
20
|
-
exports.CategoryWithChildrenFrontendResourceArrayResponseToJSONTyped = CategoryWithChildrenFrontendResourceArrayResponseToJSONTyped;
|
|
21
|
-
var CategoryWithChildrenFrontendResource_1 = require("./CategoryWithChildrenFrontendResource");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the CategoryWithChildrenFrontendResourceArrayResponse interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfCategoryWithChildrenFrontendResourceArrayResponse(value) {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
function CategoryWithChildrenFrontendResourceArrayResponseFromJSON(json) {
|
|
29
|
-
return CategoryWithChildrenFrontendResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
function CategoryWithChildrenFrontendResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (json == null) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'data': json['data'] == null ? undefined : (json['data'].map(CategoryWithChildrenFrontendResource_1.CategoryWithChildrenFrontendResourceFromJSON)),
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function CategoryWithChildrenFrontendResourceArrayResponseToJSON(json) {
|
|
40
|
-
return CategoryWithChildrenFrontendResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
function CategoryWithChildrenFrontendResourceArrayResponseToJSONTyped(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(CategoryWithChildrenFrontendResource_1.CategoryWithChildrenFrontendResourceToJSON)),
|
|
49
|
-
};
|
|
50
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
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 { CategoryFrontendResource } from './CategoryFrontendResource';
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @export
|
|
17
|
-
* @interface PaginatedCategoryFrontendResourceResponse
|
|
18
|
-
*/
|
|
19
|
-
export interface PaginatedCategoryFrontendResourceResponse {
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @type {Array<CategoryFrontendResource>}
|
|
23
|
-
* @memberof PaginatedCategoryFrontendResourceResponse
|
|
24
|
-
*/
|
|
25
|
-
data: Array<CategoryFrontendResource>;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @type {PagingMetadata}
|
|
29
|
-
* @memberof PaginatedCategoryFrontendResourceResponse
|
|
30
|
-
*/
|
|
31
|
-
meta: PagingMetadata;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Check if a given object implements the PaginatedCategoryFrontendResourceResponse interface.
|
|
35
|
-
*/
|
|
36
|
-
export declare function instanceOfPaginatedCategoryFrontendResourceResponse(value: object): value is PaginatedCategoryFrontendResourceResponse;
|
|
37
|
-
export declare function PaginatedCategoryFrontendResourceResponseFromJSON(json: any): PaginatedCategoryFrontendResourceResponse;
|
|
38
|
-
export declare function PaginatedCategoryFrontendResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedCategoryFrontendResourceResponse;
|
|
39
|
-
export declare function PaginatedCategoryFrontendResourceResponseToJSON(json: any): PaginatedCategoryFrontendResourceResponse;
|
|
40
|
-
export declare function PaginatedCategoryFrontendResourceResponseToJSONTyped(value?: PaginatedCategoryFrontendResourceResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,57 +0,0 @@
|
|
|
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.instanceOfPaginatedCategoryFrontendResourceResponse = instanceOfPaginatedCategoryFrontendResourceResponse;
|
|
17
|
-
exports.PaginatedCategoryFrontendResourceResponseFromJSON = PaginatedCategoryFrontendResourceResponseFromJSON;
|
|
18
|
-
exports.PaginatedCategoryFrontendResourceResponseFromJSONTyped = PaginatedCategoryFrontendResourceResponseFromJSONTyped;
|
|
19
|
-
exports.PaginatedCategoryFrontendResourceResponseToJSON = PaginatedCategoryFrontendResourceResponseToJSON;
|
|
20
|
-
exports.PaginatedCategoryFrontendResourceResponseToJSONTyped = PaginatedCategoryFrontendResourceResponseToJSONTyped;
|
|
21
|
-
var PagingMetadata_1 = require("./PagingMetadata");
|
|
22
|
-
var CategoryFrontendResource_1 = require("./CategoryFrontendResource");
|
|
23
|
-
/**
|
|
24
|
-
* Check if a given object implements the PaginatedCategoryFrontendResourceResponse interface.
|
|
25
|
-
*/
|
|
26
|
-
function instanceOfPaginatedCategoryFrontendResourceResponse(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 PaginatedCategoryFrontendResourceResponseFromJSON(json) {
|
|
34
|
-
return PaginatedCategoryFrontendResourceResponseFromJSONTyped(json, false);
|
|
35
|
-
}
|
|
36
|
-
function PaginatedCategoryFrontendResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
-
if (json == null) {
|
|
38
|
-
return json;
|
|
39
|
-
}
|
|
40
|
-
return {
|
|
41
|
-
'data': (json['data'].map(CategoryFrontendResource_1.CategoryFrontendResourceFromJSON)),
|
|
42
|
-
'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
function PaginatedCategoryFrontendResourceResponseToJSON(json) {
|
|
46
|
-
return PaginatedCategoryFrontendResourceResponseToJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
function PaginatedCategoryFrontendResourceResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
|
-
if (value == null) {
|
|
51
|
-
return value;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
'data': (value['data'].map(CategoryFrontendResource_1.CategoryFrontendResourceToJSON)),
|
|
55
|
-
'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
|
|
56
|
-
};
|
|
57
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
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
|
-
*/
|
|
16
|
-
export declare const ProductAvailability: {
|
|
17
|
-
readonly InStock: "in_stock";
|
|
18
|
-
readonly OutOfStock: "out_of_stock";
|
|
19
|
-
readonly Preorder: "preorder";
|
|
20
|
-
};
|
|
21
|
-
export type ProductAvailability = typeof ProductAvailability[keyof typeof ProductAvailability];
|
|
22
|
-
export declare function instanceOfProductAvailability(value: any): boolean;
|
|
23
|
-
export declare function ProductAvailabilityFromJSON(json: any): ProductAvailability;
|
|
24
|
-
export declare function ProductAvailabilityFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductAvailability;
|
|
25
|
-
export declare function ProductAvailabilityToJSON(value?: ProductAvailability | null): any;
|
|
26
|
-
export declare function ProductAvailabilityToJSONTyped(value: any, ignoreDiscriminator: boolean): ProductAvailability;
|
|
@@ -1,52 +0,0 @@
|
|
|
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.ProductAvailability = void 0;
|
|
17
|
-
exports.instanceOfProductAvailability = instanceOfProductAvailability;
|
|
18
|
-
exports.ProductAvailabilityFromJSON = ProductAvailabilityFromJSON;
|
|
19
|
-
exports.ProductAvailabilityFromJSONTyped = ProductAvailabilityFromJSONTyped;
|
|
20
|
-
exports.ProductAvailabilityToJSON = ProductAvailabilityToJSON;
|
|
21
|
-
exports.ProductAvailabilityToJSONTyped = ProductAvailabilityToJSONTyped;
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @export
|
|
25
|
-
*/
|
|
26
|
-
exports.ProductAvailability = {
|
|
27
|
-
InStock: 'in_stock',
|
|
28
|
-
OutOfStock: 'out_of_stock',
|
|
29
|
-
Preorder: 'preorder'
|
|
30
|
-
};
|
|
31
|
-
function instanceOfProductAvailability(value) {
|
|
32
|
-
for (var key in exports.ProductAvailability) {
|
|
33
|
-
if (Object.prototype.hasOwnProperty.call(exports.ProductAvailability, key)) {
|
|
34
|
-
if (exports.ProductAvailability[key] === value) {
|
|
35
|
-
return true;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
return false;
|
|
40
|
-
}
|
|
41
|
-
function ProductAvailabilityFromJSON(json) {
|
|
42
|
-
return ProductAvailabilityFromJSONTyped(json, false);
|
|
43
|
-
}
|
|
44
|
-
function ProductAvailabilityFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
-
return json;
|
|
46
|
-
}
|
|
47
|
-
function ProductAvailabilityToJSON(value) {
|
|
48
|
-
return value;
|
|
49
|
-
}
|
|
50
|
-
function ProductAvailabilityToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
-
return value;
|
|
52
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# CategoryFrontendResource
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`id` | number
|
|
10
|
-
`name` | string
|
|
11
|
-
`slug` | string
|
|
12
|
-
`parentId` | string
|
|
13
|
-
`thumbnail` | [AssetLiteResource](AssetLiteResource.md)
|
|
14
|
-
`seo` | object
|
|
15
|
-
`descriptions` | [Array<DescriptionResource>](DescriptionResource.md)
|
|
16
|
-
|
|
17
|
-
## Example
|
|
18
|
-
|
|
19
|
-
```typescript
|
|
20
|
-
import type { CategoryFrontendResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
21
|
-
|
|
22
|
-
// TODO: Update the object below with actual values
|
|
23
|
-
const example = {
|
|
24
|
-
"id": null,
|
|
25
|
-
"name": null,
|
|
26
|
-
"slug": null,
|
|
27
|
-
"parentId": null,
|
|
28
|
-
"thumbnail": null,
|
|
29
|
-
"seo": null,
|
|
30
|
-
"descriptions": null,
|
|
31
|
-
} satisfies CategoryFrontendResource
|
|
32
|
-
|
|
33
|
-
console.log(example)
|
|
34
|
-
|
|
35
|
-
// Convert the instance to a JSON string
|
|
36
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
37
|
-
console.log(exampleJSON)
|
|
38
|
-
|
|
39
|
-
// Parse the JSON string back to an object
|
|
40
|
-
const exampleParsed = JSON.parse(exampleJSON) as CategoryFrontendResource
|
|
41
|
-
console.log(exampleParsed)
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
45
|
-
|
|
46
|
-
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# CategoryWithChildrenFrontendResource
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`category` | [CategoryFrontendResource](CategoryFrontendResource.md)
|
|
10
|
-
`children` | [Array<CategoryFrontendResource>](CategoryFrontendResource.md)
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```typescript
|
|
15
|
-
import type { CategoryWithChildrenFrontendResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
16
|
-
|
|
17
|
-
// TODO: Update the object below with actual values
|
|
18
|
-
const example = {
|
|
19
|
-
"category": null,
|
|
20
|
-
"children": null,
|
|
21
|
-
} satisfies CategoryWithChildrenFrontendResource
|
|
22
|
-
|
|
23
|
-
console.log(example)
|
|
24
|
-
|
|
25
|
-
// Convert the instance to a JSON string
|
|
26
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
-
console.log(exampleJSON)
|
|
28
|
-
|
|
29
|
-
// Parse the JSON string back to an object
|
|
30
|
-
const exampleParsed = JSON.parse(exampleJSON) as CategoryWithChildrenFrontendResource
|
|
31
|
-
console.log(exampleParsed)
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
-
|
|
36
|
-
|