@digital8/lighting-illusions-ts-sdk 0.0.571 → 0.0.572
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 -0
- package/README.md +10 -2
- package/dist/models/GlobalSearchCategoryResource.d.ts +44 -0
- package/dist/models/GlobalSearchCategoryResource.js +59 -0
- package/dist/models/GlobalSearchCategoryResourceArrayResponse.d.ts +33 -0
- package/dist/models/GlobalSearchCategoryResourceArrayResponse.js +50 -0
- package/dist/models/GlobalSearchProductResource.d.ts +86 -0
- package/dist/models/GlobalSearchProductResource.js +87 -0
- package/dist/models/GlobalSearchProductResourceArrayResponse.d.ts +33 -0
- package/dist/models/GlobalSearchProductResourceArrayResponse.js +50 -0
- package/dist/models/GlobalSearchRangeResource.d.ts +56 -0
- package/dist/models/GlobalSearchRangeResource.js +67 -0
- package/dist/models/GlobalSearchRangeResourceArrayResponse.d.ts +33 -0
- package/dist/models/GlobalSearchRangeResourceArrayResponse.js +50 -0
- package/dist/models/GlobalSearchResponseResource.d.ts +47 -0
- package/dist/models/GlobalSearchResponseResource.js +62 -0
- package/dist/models/GlobalSearchResponseResourceArrayResponse.d.ts +33 -0
- package/dist/models/GlobalSearchResponseResourceArrayResponse.js +50 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/docs/GlobalSearchCategoryResource.md +38 -0
- package/docs/GlobalSearchCategoryResourceArrayResponse.md +34 -0
- package/docs/GlobalSearchProductResource.md +52 -0
- package/docs/GlobalSearchProductResourceArrayResponse.md +34 -0
- package/docs/GlobalSearchRangeResource.md +42 -0
- package/docs/GlobalSearchRangeResourceArrayResponse.md +34 -0
- package/docs/GlobalSearchResponseResource.md +38 -0
- package/docs/GlobalSearchResponseResourceArrayResponse.md +34 -0
- package/package.json +1 -1
- package/src/models/GlobalSearchCategoryResource.ts +84 -0
- package/src/models/GlobalSearchCategoryResourceArrayResponse.ts +73 -0
- package/src/models/GlobalSearchProductResource.ts +147 -0
- package/src/models/GlobalSearchProductResourceArrayResponse.ts +73 -0
- package/src/models/GlobalSearchRangeResource.ts +102 -0
- package/src/models/GlobalSearchRangeResourceArrayResponse.ts +73 -0
- package/src/models/GlobalSearchResponseResource.ts +106 -0
- package/src/models/GlobalSearchResponseResourceArrayResponse.ts +73 -0
- package/src/models/index.ts +8 -0
|
@@ -0,0 +1,84 @@
|
|
|
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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface GlobalSearchCategoryResource
|
|
20
|
+
*/
|
|
21
|
+
export interface GlobalSearchCategoryResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof GlobalSearchCategoryResource
|
|
26
|
+
*/
|
|
27
|
+
id: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof GlobalSearchCategoryResource
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof GlobalSearchCategoryResource
|
|
38
|
+
*/
|
|
39
|
+
slug: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the GlobalSearchCategoryResource interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfGlobalSearchCategoryResource(value: object): value is GlobalSearchCategoryResource {
|
|
46
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
47
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
48
|
+
if (!('slug' in value) || value['slug'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function GlobalSearchCategoryResourceFromJSON(json: any): GlobalSearchCategoryResource {
|
|
53
|
+
return GlobalSearchCategoryResourceFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function GlobalSearchCategoryResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): GlobalSearchCategoryResource {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'id': json['id'],
|
|
63
|
+
'name': json['name'],
|
|
64
|
+
'slug': json['slug'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function GlobalSearchCategoryResourceToJSON(json: any): GlobalSearchCategoryResource {
|
|
69
|
+
return GlobalSearchCategoryResourceToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function GlobalSearchCategoryResourceToJSONTyped(value?: GlobalSearchCategoryResource | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'id': value['id'],
|
|
80
|
+
'name': value['name'],
|
|
81
|
+
'slug': value['slug'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -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 { GlobalSearchCategoryResource } from './GlobalSearchCategoryResource';
|
|
17
|
+
import {
|
|
18
|
+
GlobalSearchCategoryResourceFromJSON,
|
|
19
|
+
GlobalSearchCategoryResourceFromJSONTyped,
|
|
20
|
+
GlobalSearchCategoryResourceToJSON,
|
|
21
|
+
GlobalSearchCategoryResourceToJSONTyped,
|
|
22
|
+
} from './GlobalSearchCategoryResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface GlobalSearchCategoryResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface GlobalSearchCategoryResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<GlobalSearchCategoryResource>}
|
|
33
|
+
* @memberof GlobalSearchCategoryResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<GlobalSearchCategoryResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the GlobalSearchCategoryResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfGlobalSearchCategoryResourceArrayResponse(value: object): value is GlobalSearchCategoryResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function GlobalSearchCategoryResourceArrayResponseFromJSON(json: any): GlobalSearchCategoryResourceArrayResponse {
|
|
46
|
+
return GlobalSearchCategoryResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function GlobalSearchCategoryResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GlobalSearchCategoryResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(GlobalSearchCategoryResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function GlobalSearchCategoryResourceArrayResponseToJSON(json: any): GlobalSearchCategoryResourceArrayResponse {
|
|
60
|
+
return GlobalSearchCategoryResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function GlobalSearchCategoryResourceArrayResponseToJSONTyped(value?: GlobalSearchCategoryResourceArrayResponse | 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(GlobalSearchCategoryResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,147 @@
|
|
|
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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface GlobalSearchProductResource
|
|
20
|
+
*/
|
|
21
|
+
export interface GlobalSearchProductResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof GlobalSearchProductResource
|
|
26
|
+
*/
|
|
27
|
+
id: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof GlobalSearchProductResource
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof GlobalSearchProductResource
|
|
38
|
+
*/
|
|
39
|
+
slug: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof GlobalSearchProductResource
|
|
44
|
+
*/
|
|
45
|
+
sku: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof GlobalSearchProductResource
|
|
50
|
+
*/
|
|
51
|
+
thumbnail: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof GlobalSearchProductResource
|
|
56
|
+
*/
|
|
57
|
+
price: number;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof GlobalSearchProductResource
|
|
62
|
+
*/
|
|
63
|
+
salePrice: number;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof GlobalSearchProductResource
|
|
68
|
+
*/
|
|
69
|
+
averageRating: number;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof GlobalSearchProductResource
|
|
74
|
+
*/
|
|
75
|
+
supplierName: string;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {Array<object>}
|
|
79
|
+
* @memberof GlobalSearchProductResource
|
|
80
|
+
*/
|
|
81
|
+
categories: Array<object>;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Check if a given object implements the GlobalSearchProductResource interface.
|
|
86
|
+
*/
|
|
87
|
+
export function instanceOfGlobalSearchProductResource(value: object): value is GlobalSearchProductResource {
|
|
88
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
89
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
90
|
+
if (!('slug' in value) || value['slug'] === undefined) return false;
|
|
91
|
+
if (!('sku' in value) || value['sku'] === undefined) return false;
|
|
92
|
+
if (!('thumbnail' in value) || value['thumbnail'] === undefined) return false;
|
|
93
|
+
if (!('price' in value) || value['price'] === undefined) return false;
|
|
94
|
+
if (!('salePrice' in value) || value['salePrice'] === undefined) return false;
|
|
95
|
+
if (!('averageRating' in value) || value['averageRating'] === undefined) return false;
|
|
96
|
+
if (!('supplierName' in value) || value['supplierName'] === undefined) return false;
|
|
97
|
+
if (!('categories' in value) || value['categories'] === undefined) return false;
|
|
98
|
+
return true;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function GlobalSearchProductResourceFromJSON(json: any): GlobalSearchProductResource {
|
|
102
|
+
return GlobalSearchProductResourceFromJSONTyped(json, false);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export function GlobalSearchProductResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): GlobalSearchProductResource {
|
|
106
|
+
if (json == null) {
|
|
107
|
+
return json;
|
|
108
|
+
}
|
|
109
|
+
return {
|
|
110
|
+
|
|
111
|
+
'id': json['id'],
|
|
112
|
+
'name': json['name'],
|
|
113
|
+
'slug': json['slug'],
|
|
114
|
+
'sku': json['sku'],
|
|
115
|
+
'thumbnail': json['thumbnail'],
|
|
116
|
+
'price': json['price'],
|
|
117
|
+
'salePrice': json['salePrice'],
|
|
118
|
+
'averageRating': json['averageRating'],
|
|
119
|
+
'supplierName': json['supplierName'],
|
|
120
|
+
'categories': json['categories'],
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export function GlobalSearchProductResourceToJSON(json: any): GlobalSearchProductResource {
|
|
125
|
+
return GlobalSearchProductResourceToJSONTyped(json, false);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export function GlobalSearchProductResourceToJSONTyped(value?: GlobalSearchProductResource | null, ignoreDiscriminator: boolean = false): any {
|
|
129
|
+
if (value == null) {
|
|
130
|
+
return value;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
return {
|
|
134
|
+
|
|
135
|
+
'id': value['id'],
|
|
136
|
+
'name': value['name'],
|
|
137
|
+
'slug': value['slug'],
|
|
138
|
+
'sku': value['sku'],
|
|
139
|
+
'thumbnail': value['thumbnail'],
|
|
140
|
+
'price': value['price'],
|
|
141
|
+
'salePrice': value['salePrice'],
|
|
142
|
+
'averageRating': value['averageRating'],
|
|
143
|
+
'supplierName': value['supplierName'],
|
|
144
|
+
'categories': value['categories'],
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
|
|
@@ -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 { GlobalSearchProductResource } from './GlobalSearchProductResource';
|
|
17
|
+
import {
|
|
18
|
+
GlobalSearchProductResourceFromJSON,
|
|
19
|
+
GlobalSearchProductResourceFromJSONTyped,
|
|
20
|
+
GlobalSearchProductResourceToJSON,
|
|
21
|
+
GlobalSearchProductResourceToJSONTyped,
|
|
22
|
+
} from './GlobalSearchProductResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface GlobalSearchProductResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface GlobalSearchProductResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<GlobalSearchProductResource>}
|
|
33
|
+
* @memberof GlobalSearchProductResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<GlobalSearchProductResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the GlobalSearchProductResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfGlobalSearchProductResourceArrayResponse(value: object): value is GlobalSearchProductResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function GlobalSearchProductResourceArrayResponseFromJSON(json: any): GlobalSearchProductResourceArrayResponse {
|
|
46
|
+
return GlobalSearchProductResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function GlobalSearchProductResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GlobalSearchProductResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(GlobalSearchProductResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function GlobalSearchProductResourceArrayResponseToJSON(json: any): GlobalSearchProductResourceArrayResponse {
|
|
60
|
+
return GlobalSearchProductResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function GlobalSearchProductResourceArrayResponseToJSONTyped(value?: GlobalSearchProductResourceArrayResponse | 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(GlobalSearchProductResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,102 @@
|
|
|
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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface GlobalSearchRangeResource
|
|
20
|
+
*/
|
|
21
|
+
export interface GlobalSearchRangeResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof GlobalSearchRangeResource
|
|
26
|
+
*/
|
|
27
|
+
id: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof GlobalSearchRangeResource
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof GlobalSearchRangeResource
|
|
38
|
+
*/
|
|
39
|
+
slug: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof GlobalSearchRangeResource
|
|
44
|
+
*/
|
|
45
|
+
thumbnail: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof GlobalSearchRangeResource
|
|
50
|
+
*/
|
|
51
|
+
description: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the GlobalSearchRangeResource interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfGlobalSearchRangeResource(value: object): value is GlobalSearchRangeResource {
|
|
58
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
59
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
60
|
+
if (!('slug' in value) || value['slug'] === undefined) return false;
|
|
61
|
+
if (!('thumbnail' in value) || value['thumbnail'] === undefined) return false;
|
|
62
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function GlobalSearchRangeResourceFromJSON(json: any): GlobalSearchRangeResource {
|
|
67
|
+
return GlobalSearchRangeResourceFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function GlobalSearchRangeResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): GlobalSearchRangeResource {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'id': json['id'],
|
|
77
|
+
'name': json['name'],
|
|
78
|
+
'slug': json['slug'],
|
|
79
|
+
'thumbnail': json['thumbnail'],
|
|
80
|
+
'description': json['description'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function GlobalSearchRangeResourceToJSON(json: any): GlobalSearchRangeResource {
|
|
85
|
+
return GlobalSearchRangeResourceToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function GlobalSearchRangeResourceToJSONTyped(value?: GlobalSearchRangeResource | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'id': value['id'],
|
|
96
|
+
'name': value['name'],
|
|
97
|
+
'slug': value['slug'],
|
|
98
|
+
'thumbnail': value['thumbnail'],
|
|
99
|
+
'description': value['description'],
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
@@ -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 { GlobalSearchRangeResource } from './GlobalSearchRangeResource';
|
|
17
|
+
import {
|
|
18
|
+
GlobalSearchRangeResourceFromJSON,
|
|
19
|
+
GlobalSearchRangeResourceFromJSONTyped,
|
|
20
|
+
GlobalSearchRangeResourceToJSON,
|
|
21
|
+
GlobalSearchRangeResourceToJSONTyped,
|
|
22
|
+
} from './GlobalSearchRangeResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface GlobalSearchRangeResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface GlobalSearchRangeResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<GlobalSearchRangeResource>}
|
|
33
|
+
* @memberof GlobalSearchRangeResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<GlobalSearchRangeResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the GlobalSearchRangeResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfGlobalSearchRangeResourceArrayResponse(value: object): value is GlobalSearchRangeResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function GlobalSearchRangeResourceArrayResponseFromJSON(json: any): GlobalSearchRangeResourceArrayResponse {
|
|
46
|
+
return GlobalSearchRangeResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function GlobalSearchRangeResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GlobalSearchRangeResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(GlobalSearchRangeResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function GlobalSearchRangeResourceArrayResponseToJSON(json: any): GlobalSearchRangeResourceArrayResponse {
|
|
60
|
+
return GlobalSearchRangeResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function GlobalSearchRangeResourceArrayResponseToJSONTyped(value?: GlobalSearchRangeResourceArrayResponse | 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(GlobalSearchRangeResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,106 @@
|
|
|
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 { GlobalSearchProductResource } from './GlobalSearchProductResource';
|
|
17
|
+
import {
|
|
18
|
+
GlobalSearchProductResourceFromJSON,
|
|
19
|
+
GlobalSearchProductResourceFromJSONTyped,
|
|
20
|
+
GlobalSearchProductResourceToJSON,
|
|
21
|
+
GlobalSearchProductResourceToJSONTyped,
|
|
22
|
+
} from './GlobalSearchProductResource';
|
|
23
|
+
import type { GlobalSearchCategoryResource } from './GlobalSearchCategoryResource';
|
|
24
|
+
import {
|
|
25
|
+
GlobalSearchCategoryResourceFromJSON,
|
|
26
|
+
GlobalSearchCategoryResourceFromJSONTyped,
|
|
27
|
+
GlobalSearchCategoryResourceToJSON,
|
|
28
|
+
GlobalSearchCategoryResourceToJSONTyped,
|
|
29
|
+
} from './GlobalSearchCategoryResource';
|
|
30
|
+
import type { GlobalSearchRangeResource } from './GlobalSearchRangeResource';
|
|
31
|
+
import {
|
|
32
|
+
GlobalSearchRangeResourceFromJSON,
|
|
33
|
+
GlobalSearchRangeResourceFromJSONTyped,
|
|
34
|
+
GlobalSearchRangeResourceToJSON,
|
|
35
|
+
GlobalSearchRangeResourceToJSONTyped,
|
|
36
|
+
} from './GlobalSearchRangeResource';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
* @interface GlobalSearchResponseResource
|
|
42
|
+
*/
|
|
43
|
+
export interface GlobalSearchResponseResource {
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Array<GlobalSearchProductResource>}
|
|
47
|
+
* @memberof GlobalSearchResponseResource
|
|
48
|
+
*/
|
|
49
|
+
products: Array<GlobalSearchProductResource> | null;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {Array<GlobalSearchCategoryResource>}
|
|
53
|
+
* @memberof GlobalSearchResponseResource
|
|
54
|
+
*/
|
|
55
|
+
categories: Array<GlobalSearchCategoryResource> | null;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {Array<GlobalSearchRangeResource>}
|
|
59
|
+
* @memberof GlobalSearchResponseResource
|
|
60
|
+
*/
|
|
61
|
+
ranges: Array<GlobalSearchRangeResource> | null;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Check if a given object implements the GlobalSearchResponseResource interface.
|
|
66
|
+
*/
|
|
67
|
+
export function instanceOfGlobalSearchResponseResource(value: object): value is GlobalSearchResponseResource {
|
|
68
|
+
if (!('products' in value) || value['products'] === undefined) return false;
|
|
69
|
+
if (!('categories' in value) || value['categories'] === undefined) return false;
|
|
70
|
+
if (!('ranges' in value) || value['ranges'] === undefined) return false;
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function GlobalSearchResponseResourceFromJSON(json: any): GlobalSearchResponseResource {
|
|
75
|
+
return GlobalSearchResponseResourceFromJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function GlobalSearchResponseResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): GlobalSearchResponseResource {
|
|
79
|
+
if (json == null) {
|
|
80
|
+
return json;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'products': (json['products'] == null ? null : (json['products'] as Array<any>).map(GlobalSearchProductResourceFromJSON)),
|
|
85
|
+
'categories': (json['categories'] == null ? null : (json['categories'] as Array<any>).map(GlobalSearchCategoryResourceFromJSON)),
|
|
86
|
+
'ranges': (json['ranges'] == null ? null : (json['ranges'] as Array<any>).map(GlobalSearchRangeResourceFromJSON)),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function GlobalSearchResponseResourceToJSON(json: any): GlobalSearchResponseResource {
|
|
91
|
+
return GlobalSearchResponseResourceToJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function GlobalSearchResponseResourceToJSONTyped(value?: GlobalSearchResponseResource | null, ignoreDiscriminator: boolean = false): any {
|
|
95
|
+
if (value == null) {
|
|
96
|
+
return value;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
return {
|
|
100
|
+
|
|
101
|
+
'products': (value['products'] == null ? null : (value['products'] as Array<any>).map(GlobalSearchProductResourceToJSON)),
|
|
102
|
+
'categories': (value['categories'] == null ? null : (value['categories'] as Array<any>).map(GlobalSearchCategoryResourceToJSON)),
|
|
103
|
+
'ranges': (value['ranges'] == null ? null : (value['ranges'] as Array<any>).map(GlobalSearchRangeResourceToJSON)),
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|