@digital8/lighting-illusions-ts-sdk 0.0.647 → 0.0.648
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 +2 -16
- package/README.md +3 -10
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- 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/index.d.ts +1 -8
- package/dist/models/index.js +1 -8
- 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/package.json +1 -1
- package/src/models/ExternalApiLogResource.ts +2 -3
- 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/index.ts +1 -8
- 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/dist/models/TagFrontendResource.d.ts +0 -63
- package/dist/models/TagFrontendResource.js +0 -72
- package/dist/models/TagFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/TagFrontendResourceArrayResponse.js +0 -50
- package/docs/CategoryFrontendResource.md +0 -46
- package/docs/CategoryFrontendResourceArrayResponse.md +0 -34
- package/docs/CategoryWithChildrenFrontendResource.md +0 -36
- package/docs/CategoryWithChildrenFrontendResourceArrayResponse.md +0 -34
- package/docs/PaginatedCategoryFrontendResourceResponse.md +0 -36
- package/docs/TagFrontendResource.md +0 -44
- package/docs/TagFrontendResourceArrayResponse.md +0 -34
- 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
- package/src/models/TagFrontendResource.ts +0 -119
- package/src/models/TagFrontendResourceArrayResponse.ts +0 -73
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* My API
|
|
5
|
-
* API documentation for my Laravel app
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
import type { PagingMetadata } from './PagingMetadata';
|
|
17
|
-
import {
|
|
18
|
-
PagingMetadataFromJSON,
|
|
19
|
-
PagingMetadataFromJSONTyped,
|
|
20
|
-
PagingMetadataToJSON,
|
|
21
|
-
PagingMetadataToJSONTyped,
|
|
22
|
-
} from './PagingMetadata';
|
|
23
|
-
import type { CategoryFrontendResource } from './CategoryFrontendResource';
|
|
24
|
-
import {
|
|
25
|
-
CategoryFrontendResourceFromJSON,
|
|
26
|
-
CategoryFrontendResourceFromJSONTyped,
|
|
27
|
-
CategoryFrontendResourceToJSON,
|
|
28
|
-
CategoryFrontendResourceToJSONTyped,
|
|
29
|
-
} from './CategoryFrontendResource';
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @export
|
|
34
|
-
* @interface PaginatedCategoryFrontendResourceResponse
|
|
35
|
-
*/
|
|
36
|
-
export interface PaginatedCategoryFrontendResourceResponse {
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {Array<CategoryFrontendResource>}
|
|
40
|
-
* @memberof PaginatedCategoryFrontendResourceResponse
|
|
41
|
-
*/
|
|
42
|
-
data: Array<CategoryFrontendResource>;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {PagingMetadata}
|
|
46
|
-
* @memberof PaginatedCategoryFrontendResourceResponse
|
|
47
|
-
*/
|
|
48
|
-
meta: PagingMetadata;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Check if a given object implements the PaginatedCategoryFrontendResourceResponse interface.
|
|
53
|
-
*/
|
|
54
|
-
export function instanceOfPaginatedCategoryFrontendResourceResponse(value: object): value is PaginatedCategoryFrontendResourceResponse {
|
|
55
|
-
if (!('data' in value) || value['data'] === undefined) return false;
|
|
56
|
-
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
57
|
-
return true;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export function PaginatedCategoryFrontendResourceResponseFromJSON(json: any): PaginatedCategoryFrontendResourceResponse {
|
|
61
|
-
return PaginatedCategoryFrontendResourceResponseFromJSONTyped(json, false);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export function PaginatedCategoryFrontendResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedCategoryFrontendResourceResponse {
|
|
65
|
-
if (json == null) {
|
|
66
|
-
return json;
|
|
67
|
-
}
|
|
68
|
-
return {
|
|
69
|
-
|
|
70
|
-
'data': ((json['data'] as Array<any>).map(CategoryFrontendResourceFromJSON)),
|
|
71
|
-
'meta': PagingMetadataFromJSON(json['meta']),
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export function PaginatedCategoryFrontendResourceResponseToJSON(json: any): PaginatedCategoryFrontendResourceResponse {
|
|
76
|
-
return PaginatedCategoryFrontendResourceResponseToJSONTyped(json, false);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export function PaginatedCategoryFrontendResourceResponseToJSONTyped(value?: PaginatedCategoryFrontendResourceResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
-
if (value == null) {
|
|
81
|
-
return value;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
return {
|
|
85
|
-
|
|
86
|
-
'data': ((value['data'] as Array<any>).map(CategoryFrontendResourceToJSON)),
|
|
87
|
-
'meta': PagingMetadataToJSON(value['meta']),
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* My API
|
|
5
|
-
* API documentation for my Laravel app
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
*/
|
|
20
|
-
export const ProductAvailability = {
|
|
21
|
-
InStock: 'in_stock',
|
|
22
|
-
OutOfStock: 'out_of_stock',
|
|
23
|
-
Preorder: 'preorder'
|
|
24
|
-
} as const;
|
|
25
|
-
export type ProductAvailability = typeof ProductAvailability[keyof typeof ProductAvailability];
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
export function instanceOfProductAvailability(value: any): boolean {
|
|
29
|
-
for (const key in ProductAvailability) {
|
|
30
|
-
if (Object.prototype.hasOwnProperty.call(ProductAvailability, key)) {
|
|
31
|
-
if (ProductAvailability[key as keyof typeof ProductAvailability] === value) {
|
|
32
|
-
return true;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
return false;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export function ProductAvailabilityFromJSON(json: any): ProductAvailability {
|
|
40
|
-
return ProductAvailabilityFromJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export function ProductAvailabilityFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductAvailability {
|
|
44
|
-
return json as ProductAvailability;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export function ProductAvailabilityToJSON(value?: ProductAvailability | null): any {
|
|
48
|
-
return value as any;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export function ProductAvailabilityToJSONTyped(value: any, ignoreDiscriminator: boolean): ProductAvailability {
|
|
52
|
-
return value as ProductAvailability;
|
|
53
|
-
}
|
|
54
|
-
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* My API
|
|
5
|
-
* API documentation for my Laravel app
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
import type { DescriptionResource } from './DescriptionResource';
|
|
17
|
-
import {
|
|
18
|
-
DescriptionResourceFromJSON,
|
|
19
|
-
DescriptionResourceFromJSONTyped,
|
|
20
|
-
DescriptionResourceToJSON,
|
|
21
|
-
DescriptionResourceToJSONTyped,
|
|
22
|
-
} from './DescriptionResource';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface TagFrontendResource
|
|
28
|
-
*/
|
|
29
|
-
export interface TagFrontendResource {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {number}
|
|
33
|
-
* @memberof TagFrontendResource
|
|
34
|
-
*/
|
|
35
|
-
id: number;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof TagFrontendResource
|
|
40
|
-
*/
|
|
41
|
-
name: string;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof TagFrontendResource
|
|
46
|
-
*/
|
|
47
|
-
slug: string;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {string}
|
|
51
|
-
* @memberof TagFrontendResource
|
|
52
|
-
*/
|
|
53
|
-
type: string;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {object}
|
|
57
|
-
* @memberof TagFrontendResource
|
|
58
|
-
*/
|
|
59
|
-
seo: object;
|
|
60
|
-
/**
|
|
61
|
-
*
|
|
62
|
-
* @type {DescriptionResource}
|
|
63
|
-
* @memberof TagFrontendResource
|
|
64
|
-
*/
|
|
65
|
-
description: DescriptionResource | null;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Check if a given object implements the TagFrontendResource interface.
|
|
70
|
-
*/
|
|
71
|
-
export function instanceOfTagFrontendResource(value: object): value is TagFrontendResource {
|
|
72
|
-
if (!('id' in value) || value['id'] === undefined) return false;
|
|
73
|
-
if (!('name' in value) || value['name'] === undefined) return false;
|
|
74
|
-
if (!('slug' in value) || value['slug'] === undefined) return false;
|
|
75
|
-
if (!('type' in value) || value['type'] === undefined) return false;
|
|
76
|
-
if (!('seo' in value) || value['seo'] === undefined) return false;
|
|
77
|
-
if (!('description' in value) || value['description'] === undefined) return false;
|
|
78
|
-
return true;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export function TagFrontendResourceFromJSON(json: any): TagFrontendResource {
|
|
82
|
-
return TagFrontendResourceFromJSONTyped(json, false);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export function TagFrontendResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): TagFrontendResource {
|
|
86
|
-
if (json == null) {
|
|
87
|
-
return json;
|
|
88
|
-
}
|
|
89
|
-
return {
|
|
90
|
-
|
|
91
|
-
'id': json['id'],
|
|
92
|
-
'name': json['name'],
|
|
93
|
-
'slug': json['slug'],
|
|
94
|
-
'type': json['type'],
|
|
95
|
-
'seo': json['seo'],
|
|
96
|
-
'description': DescriptionResourceFromJSON(json['description']),
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
export function TagFrontendResourceToJSON(json: any): TagFrontendResource {
|
|
101
|
-
return TagFrontendResourceToJSONTyped(json, false);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
export function TagFrontendResourceToJSONTyped(value?: TagFrontendResource | null, ignoreDiscriminator: boolean = false): any {
|
|
105
|
-
if (value == null) {
|
|
106
|
-
return value;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
return {
|
|
110
|
-
|
|
111
|
-
'id': value['id'],
|
|
112
|
-
'name': value['name'],
|
|
113
|
-
'slug': value['slug'],
|
|
114
|
-
'type': value['type'],
|
|
115
|
-
'seo': value['seo'],
|
|
116
|
-
'description': DescriptionResourceToJSON(value['description']),
|
|
117
|
-
};
|
|
118
|
-
}
|
|
119
|
-
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* My API
|
|
5
|
-
* API documentation for my Laravel app
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
import type { TagFrontendResource } from './TagFrontendResource';
|
|
17
|
-
import {
|
|
18
|
-
TagFrontendResourceFromJSON,
|
|
19
|
-
TagFrontendResourceFromJSONTyped,
|
|
20
|
-
TagFrontendResourceToJSON,
|
|
21
|
-
TagFrontendResourceToJSONTyped,
|
|
22
|
-
} from './TagFrontendResource';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface TagFrontendResourceArrayResponse
|
|
28
|
-
*/
|
|
29
|
-
export interface TagFrontendResourceArrayResponse {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {Array<TagFrontendResource>}
|
|
33
|
-
* @memberof TagFrontendResourceArrayResponse
|
|
34
|
-
*/
|
|
35
|
-
data?: Array<TagFrontendResource>;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Check if a given object implements the TagFrontendResourceArrayResponse interface.
|
|
40
|
-
*/
|
|
41
|
-
export function instanceOfTagFrontendResourceArrayResponse(value: object): value is TagFrontendResourceArrayResponse {
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function TagFrontendResourceArrayResponseFromJSON(json: any): TagFrontendResourceArrayResponse {
|
|
46
|
-
return TagFrontendResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function TagFrontendResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TagFrontendResourceArrayResponse {
|
|
50
|
-
if (json == null) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(TagFrontendResourceFromJSON)),
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function TagFrontendResourceArrayResponseToJSON(json: any): TagFrontendResourceArrayResponse {
|
|
60
|
-
return TagFrontendResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function TagFrontendResourceArrayResponseToJSONTyped(value?: TagFrontendResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
-
if (value == null) {
|
|
65
|
-
return value;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
return {
|
|
69
|
-
|
|
70
|
-
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(TagFrontendResourceToJSON)),
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
|