@digital8/lighting-illusions-ts-sdk 0.0.650 → 0.0.652
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 +16 -2
- package/README.md +10 -3
- package/dist/models/CategoryFrontendResource.d.ts +70 -0
- package/dist/models/CategoryFrontendResource.js +73 -0
- package/dist/models/CategoryFrontendResourceArrayResponse.d.ts +33 -0
- package/dist/models/CategoryFrontendResourceArrayResponse.js +50 -0
- package/dist/models/CategoryWithChildrenFrontendResource.d.ts +39 -0
- package/dist/models/CategoryWithChildrenFrontendResource.js +56 -0
- package/dist/models/CategoryWithChildrenFrontendResourceArrayResponse.d.ts +33 -0
- package/dist/models/CategoryWithChildrenFrontendResourceArrayResponse.js +50 -0
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/GlobalSearchProductResource.d.ts +6 -0
- package/dist/models/GlobalSearchProductResource.js +4 -0
- package/dist/models/OverlayTemplateAssetFrontendResource.d.ts +3 -2
- package/dist/models/OverlayTemplateAssetFrontendResource.js +3 -2
- package/dist/models/OverlayTemplateAssetResource.d.ts +3 -3
- package/dist/models/OverlayTemplateAssetResource.js +3 -3
- package/dist/models/PaginatedCategoryFrontendResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedCategoryFrontendResourceResponse.js +57 -0
- package/dist/models/ProductAvailability.d.ts +26 -0
- package/dist/models/ProductAvailability.js +52 -0
- package/dist/models/ProductCompareResource.d.ts +2 -2
- package/dist/models/ProductSearchResultResource.d.ts +12 -6
- package/dist/models/ProductSearchResultResource.js +8 -4
- package/dist/models/SupplierFrontendResource.d.ts +7 -8
- package/dist/models/SupplierFrontendResource.js +8 -9
- package/dist/models/TagFrontendResource.d.ts +63 -0
- package/dist/models/TagFrontendResource.js +72 -0
- package/dist/models/TagFrontendResourceArrayResponse.d.ts +33 -0
- package/dist/models/TagFrontendResourceArrayResponse.js +50 -0
- package/dist/models/index.d.ts +8 -1
- package/dist/models/index.js +8 -1
- package/docs/CategoryFrontendResource.md +46 -0
- package/docs/CategoryFrontendResourceArrayResponse.md +34 -0
- package/docs/CategoryWithChildrenFrontendResource.md +36 -0
- package/docs/CategoryWithChildrenFrontendResourceArrayResponse.md +34 -0
- package/docs/GlobalSearchProductResource.md +2 -0
- package/docs/OverlayTemplateAssetFrontendResource.md +1 -1
- package/docs/OverlayTemplateAssetResource.md +1 -1
- package/docs/PaginatedCategoryFrontendResourceResponse.md +36 -0
- package/docs/{ProductStatus.md → ProductAvailability.md} +4 -4
- package/docs/ProductCompareResource.md +1 -1
- package/docs/ProductSearchResultResource.md +4 -2
- package/docs/SupplierFrontendResource.md +4 -4
- package/docs/TagFrontendResource.md +44 -0
- package/docs/TagFrontendResourceArrayResponse.md +34 -0
- package/package.json +1 -1
- package/src/models/CategoryFrontendResource.ts +133 -0
- package/src/models/CategoryFrontendResourceArrayResponse.ts +73 -0
- package/src/models/CategoryWithChildrenFrontendResource.ts +83 -0
- package/src/models/CategoryWithChildrenFrontendResourceArrayResponse.ts +73 -0
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/GlobalSearchProductResource.ts +9 -0
- package/src/models/OverlayTemplateAssetFrontendResource.ts +12 -4
- package/src/models/OverlayTemplateAssetResource.ts +10 -10
- package/src/models/PaginatedCategoryFrontendResourceResponse.ts +90 -0
- package/src/models/ProductAvailability.ts +54 -0
- package/src/models/ProductCompareResource.ts +2 -2
- package/src/models/ProductSearchResultResource.ts +18 -9
- package/src/models/SupplierFrontendResource.ts +20 -27
- package/src/models/TagFrontendResource.ts +119 -0
- package/src/models/TagFrontendResourceArrayResponse.ts +73 -0
- package/src/models/index.ts +8 -1
- package/dist/models/ProductStatus.d.ts +0 -24
- package/dist/models/ProductStatus.js +0 -50
- package/src/models/ProductStatus.ts +0 -52
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { AssetLiteResource } from './AssetLiteResource';
|
|
17
|
+
import {
|
|
18
|
+
AssetLiteResourceFromJSON,
|
|
19
|
+
AssetLiteResourceFromJSONTyped,
|
|
20
|
+
AssetLiteResourceToJSON,
|
|
21
|
+
AssetLiteResourceToJSONTyped,
|
|
22
|
+
} from './AssetLiteResource';
|
|
16
23
|
import type { DescriptionResource } from './DescriptionResource';
|
|
17
24
|
import {
|
|
18
25
|
DescriptionResourceFromJSON,
|
|
@@ -20,20 +27,6 @@ import {
|
|
|
20
27
|
DescriptionResourceToJSON,
|
|
21
28
|
DescriptionResourceToJSONTyped,
|
|
22
29
|
} from './DescriptionResource';
|
|
23
|
-
import type { AssetResource } from './AssetResource';
|
|
24
|
-
import {
|
|
25
|
-
AssetResourceFromJSON,
|
|
26
|
-
AssetResourceFromJSONTyped,
|
|
27
|
-
AssetResourceToJSON,
|
|
28
|
-
AssetResourceToJSONTyped,
|
|
29
|
-
} from './AssetResource';
|
|
30
|
-
import type { SEOResource } from './SEOResource';
|
|
31
|
-
import {
|
|
32
|
-
SEOResourceFromJSON,
|
|
33
|
-
SEOResourceFromJSONTyped,
|
|
34
|
-
SEOResourceToJSON,
|
|
35
|
-
SEOResourceToJSONTyped,
|
|
36
|
-
} from './SEOResource';
|
|
37
30
|
|
|
38
31
|
/**
|
|
39
32
|
*
|
|
@@ -61,10 +54,10 @@ export interface SupplierFrontendResource {
|
|
|
61
54
|
slug: string;
|
|
62
55
|
/**
|
|
63
56
|
*
|
|
64
|
-
* @type {
|
|
57
|
+
* @type {AssetLiteResource}
|
|
65
58
|
* @memberof SupplierFrontendResource
|
|
66
59
|
*/
|
|
67
|
-
thumbnail:
|
|
60
|
+
thumbnail: AssetLiteResource | null;
|
|
68
61
|
/**
|
|
69
62
|
*
|
|
70
63
|
* @type {number}
|
|
@@ -73,16 +66,16 @@ export interface SupplierFrontendResource {
|
|
|
73
66
|
supplierEta: number;
|
|
74
67
|
/**
|
|
75
68
|
*
|
|
76
|
-
* @type {
|
|
69
|
+
* @type {object}
|
|
77
70
|
* @memberof SupplierFrontendResource
|
|
78
71
|
*/
|
|
79
|
-
seo:
|
|
72
|
+
seo: object;
|
|
80
73
|
/**
|
|
81
74
|
*
|
|
82
|
-
* @type {
|
|
75
|
+
* @type {DescriptionResource}
|
|
83
76
|
* @memberof SupplierFrontendResource
|
|
84
77
|
*/
|
|
85
|
-
|
|
78
|
+
description: DescriptionResource | null;
|
|
86
79
|
}
|
|
87
80
|
|
|
88
81
|
/**
|
|
@@ -95,7 +88,7 @@ export function instanceOfSupplierFrontendResource(value: object): value is Supp
|
|
|
95
88
|
if (!('thumbnail' in value) || value['thumbnail'] === undefined) return false;
|
|
96
89
|
if (!('supplierEta' in value) || value['supplierEta'] === undefined) return false;
|
|
97
90
|
if (!('seo' in value) || value['seo'] === undefined) return false;
|
|
98
|
-
if (!('
|
|
91
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
99
92
|
return true;
|
|
100
93
|
}
|
|
101
94
|
|
|
@@ -112,10 +105,10 @@ export function SupplierFrontendResourceFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
112
105
|
'id': json['id'],
|
|
113
106
|
'name': json['name'],
|
|
114
107
|
'slug': json['slug'],
|
|
115
|
-
'thumbnail':
|
|
108
|
+
'thumbnail': AssetLiteResourceFromJSON(json['thumbnail']),
|
|
116
109
|
'supplierEta': json['supplierEta'],
|
|
117
|
-
'seo':
|
|
118
|
-
'
|
|
110
|
+
'seo': json['seo'],
|
|
111
|
+
'description': DescriptionResourceFromJSON(json['description']),
|
|
119
112
|
};
|
|
120
113
|
}
|
|
121
114
|
|
|
@@ -133,10 +126,10 @@ export function SupplierFrontendResourceToJSONTyped(value?: SupplierFrontendReso
|
|
|
133
126
|
'id': value['id'],
|
|
134
127
|
'name': value['name'],
|
|
135
128
|
'slug': value['slug'],
|
|
136
|
-
'thumbnail':
|
|
129
|
+
'thumbnail': AssetLiteResourceToJSON(value['thumbnail']),
|
|
137
130
|
'supplierEta': value['supplierEta'],
|
|
138
|
-
'seo':
|
|
139
|
-
'
|
|
131
|
+
'seo': value['seo'],
|
|
132
|
+
'description': DescriptionResourceToJSON(value['description']),
|
|
140
133
|
};
|
|
141
134
|
}
|
|
142
135
|
|
|
@@ -0,0 +1,119 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { 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
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -34,6 +34,10 @@ export * from './CategoryAutomationConditionType';
|
|
|
34
34
|
export * from './CategoryAutomationFieldType';
|
|
35
35
|
export * from './CategoryAutomationRuleResource';
|
|
36
36
|
export * from './CategoryAutomationRuleResourceArrayResponse';
|
|
37
|
+
export * from './CategoryFrontendResource';
|
|
38
|
+
export * from './CategoryFrontendResourceArrayResponse';
|
|
39
|
+
export * from './CategoryWithChildrenFrontendResource';
|
|
40
|
+
export * from './CategoryWithChildrenFrontendResourceArrayResponse';
|
|
37
41
|
export * from './CouponDiscountType';
|
|
38
42
|
export * from './DefinitionListResource';
|
|
39
43
|
export * from './DefinitionListResourceArrayResponse';
|
|
@@ -112,6 +116,7 @@ export * from './PaginatedAttributeListResourceResponse';
|
|
|
112
116
|
export * from './PaginatedAttributeLiteResourceResponse';
|
|
113
117
|
export * from './PaginatedAttributeProductTypeRelationResourceResponse';
|
|
114
118
|
export * from './PaginatedAttributeResourceResponse';
|
|
119
|
+
export * from './PaginatedCategoryFrontendResourceResponse';
|
|
115
120
|
export * from './PaginatedDefinitionListResourceResponse';
|
|
116
121
|
export * from './PaginatedDefinitionResourceResponse';
|
|
117
122
|
export * from './PaginatedDocumentResourceResponse';
|
|
@@ -153,6 +158,7 @@ export * from './PreviewAutomationRulesResource';
|
|
|
153
158
|
export * from './PreviewAutomationRulesResourceArrayResponse';
|
|
154
159
|
export * from './ProductAggregationResource';
|
|
155
160
|
export * from './ProductAggregationResourceArrayResponse';
|
|
161
|
+
export * from './ProductAvailability';
|
|
156
162
|
export * from './ProductCategoryHierarchyResource';
|
|
157
163
|
export * from './ProductCategoryHierarchyResourceArrayResponse';
|
|
158
164
|
export * from './ProductCategoryListResource';
|
|
@@ -191,7 +197,6 @@ export * from './ProductSearchResponseResourcePriceInfo';
|
|
|
191
197
|
export * from './ProductSearchResultResource';
|
|
192
198
|
export * from './ProductSearchResultResourceArrayResponse';
|
|
193
199
|
export * from './ProductSortBy';
|
|
194
|
-
export * from './ProductStatus';
|
|
195
200
|
export * from './ProductTypeListResource';
|
|
196
201
|
export * from './ProductTypeListResourceArrayResponse';
|
|
197
202
|
export * from './ProductTypeLiteResource';
|
|
@@ -244,6 +249,8 @@ export * from './SupplierLiteResource';
|
|
|
244
249
|
export * from './SupplierLiteResourceArrayResponse';
|
|
245
250
|
export * from './SupplierResource';
|
|
246
251
|
export * from './SupplierResourceArrayResponse';
|
|
252
|
+
export * from './TagFrontendResource';
|
|
253
|
+
export * from './TagFrontendResourceArrayResponse';
|
|
247
254
|
export * from './TagListResource';
|
|
248
255
|
export * from './TagListResourceArrayResponse';
|
|
249
256
|
export * from './TagLiteResource';
|
|
@@ -1,24 +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 ProductStatus: {
|
|
17
|
-
readonly InStock: "in_stock";
|
|
18
|
-
};
|
|
19
|
-
export type ProductStatus = typeof ProductStatus[keyof typeof ProductStatus];
|
|
20
|
-
export declare function instanceOfProductStatus(value: any): boolean;
|
|
21
|
-
export declare function ProductStatusFromJSON(json: any): ProductStatus;
|
|
22
|
-
export declare function ProductStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductStatus;
|
|
23
|
-
export declare function ProductStatusToJSON(value?: ProductStatus | null): any;
|
|
24
|
-
export declare function ProductStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): ProductStatus;
|
|
@@ -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.ProductStatus = void 0;
|
|
17
|
-
exports.instanceOfProductStatus = instanceOfProductStatus;
|
|
18
|
-
exports.ProductStatusFromJSON = ProductStatusFromJSON;
|
|
19
|
-
exports.ProductStatusFromJSONTyped = ProductStatusFromJSONTyped;
|
|
20
|
-
exports.ProductStatusToJSON = ProductStatusToJSON;
|
|
21
|
-
exports.ProductStatusToJSONTyped = ProductStatusToJSONTyped;
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @export
|
|
25
|
-
*/
|
|
26
|
-
exports.ProductStatus = {
|
|
27
|
-
InStock: 'in_stock'
|
|
28
|
-
};
|
|
29
|
-
function instanceOfProductStatus(value) {
|
|
30
|
-
for (var key in exports.ProductStatus) {
|
|
31
|
-
if (Object.prototype.hasOwnProperty.call(exports.ProductStatus, key)) {
|
|
32
|
-
if (exports.ProductStatus[key] === value) {
|
|
33
|
-
return true;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
return false;
|
|
38
|
-
}
|
|
39
|
-
function ProductStatusFromJSON(json) {
|
|
40
|
-
return ProductStatusFromJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
function ProductStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
-
return json;
|
|
44
|
-
}
|
|
45
|
-
function ProductStatusToJSON(value) {
|
|
46
|
-
return value;
|
|
47
|
-
}
|
|
48
|
-
function ProductStatusToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
-
return value;
|
|
50
|
-
}
|
|
@@ -1,52 +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 ProductStatus = {
|
|
21
|
-
InStock: 'in_stock'
|
|
22
|
-
} as const;
|
|
23
|
-
export type ProductStatus = typeof ProductStatus[keyof typeof ProductStatus];
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
export function instanceOfProductStatus(value: any): boolean {
|
|
27
|
-
for (const key in ProductStatus) {
|
|
28
|
-
if (Object.prototype.hasOwnProperty.call(ProductStatus, key)) {
|
|
29
|
-
if (ProductStatus[key as keyof typeof ProductStatus] === value) {
|
|
30
|
-
return true;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
return false;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export function ProductStatusFromJSON(json: any): ProductStatus {
|
|
38
|
-
return ProductStatusFromJSONTyped(json, false);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export function ProductStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductStatus {
|
|
42
|
-
return json as ProductStatus;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function ProductStatusToJSON(value?: ProductStatus | null): any {
|
|
46
|
-
return value as any;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function ProductStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): ProductStatus {
|
|
50
|
-
return value as ProductStatus;
|
|
51
|
-
}
|
|
52
|
-
|