@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
package/.openapi-generator/FILES
CHANGED
|
@@ -67,6 +67,14 @@ docs/GetAllProductChildRequest.md
|
|
|
67
67
|
docs/GetAllProductRequest.md
|
|
68
68
|
docs/GetAllProductTypeRequest.md
|
|
69
69
|
docs/GetAllSupplierRequest.md
|
|
70
|
+
docs/GlobalSearchCategoryResource.md
|
|
71
|
+
docs/GlobalSearchCategoryResourceArrayResponse.md
|
|
72
|
+
docs/GlobalSearchProductResource.md
|
|
73
|
+
docs/GlobalSearchProductResourceArrayResponse.md
|
|
74
|
+
docs/GlobalSearchRangeResource.md
|
|
75
|
+
docs/GlobalSearchRangeResourceArrayResponse.md
|
|
76
|
+
docs/GlobalSearchResponseResource.md
|
|
77
|
+
docs/GlobalSearchResponseResourceArrayResponse.md
|
|
70
78
|
docs/GoogleCategoryApi.md
|
|
71
79
|
docs/GoogleCategoryResource.md
|
|
72
80
|
docs/GoogleCategoryResourceArrayResponse.md
|
|
@@ -334,6 +342,14 @@ src/models/GetAllProductChildRequest.ts
|
|
|
334
342
|
src/models/GetAllProductRequest.ts
|
|
335
343
|
src/models/GetAllProductTypeRequest.ts
|
|
336
344
|
src/models/GetAllSupplierRequest.ts
|
|
345
|
+
src/models/GlobalSearchCategoryResource.ts
|
|
346
|
+
src/models/GlobalSearchCategoryResourceArrayResponse.ts
|
|
347
|
+
src/models/GlobalSearchProductResource.ts
|
|
348
|
+
src/models/GlobalSearchProductResourceArrayResponse.ts
|
|
349
|
+
src/models/GlobalSearchRangeResource.ts
|
|
350
|
+
src/models/GlobalSearchRangeResourceArrayResponse.ts
|
|
351
|
+
src/models/GlobalSearchResponseResource.ts
|
|
352
|
+
src/models/GlobalSearchResponseResourceArrayResponse.ts
|
|
337
353
|
src/models/GoogleCategoryResource.ts
|
|
338
354
|
src/models/GoogleCategoryResourceArrayResponse.ts
|
|
339
355
|
src/models/IndexAttributeRequest.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @digital8/lighting-illusions-ts-sdk@0.0.
|
|
1
|
+
# @digital8/lighting-illusions-ts-sdk@0.0.572
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -216,6 +216,14 @@ All URIs are relative to *http://localhost/api*
|
|
|
216
216
|
- [GetAllProductRequest](docs/GetAllProductRequest.md)
|
|
217
217
|
- [GetAllProductTypeRequest](docs/GetAllProductTypeRequest.md)
|
|
218
218
|
- [GetAllSupplierRequest](docs/GetAllSupplierRequest.md)
|
|
219
|
+
- [GlobalSearchCategoryResource](docs/GlobalSearchCategoryResource.md)
|
|
220
|
+
- [GlobalSearchCategoryResourceArrayResponse](docs/GlobalSearchCategoryResourceArrayResponse.md)
|
|
221
|
+
- [GlobalSearchProductResource](docs/GlobalSearchProductResource.md)
|
|
222
|
+
- [GlobalSearchProductResourceArrayResponse](docs/GlobalSearchProductResourceArrayResponse.md)
|
|
223
|
+
- [GlobalSearchRangeResource](docs/GlobalSearchRangeResource.md)
|
|
224
|
+
- [GlobalSearchRangeResourceArrayResponse](docs/GlobalSearchRangeResourceArrayResponse.md)
|
|
225
|
+
- [GlobalSearchResponseResource](docs/GlobalSearchResponseResource.md)
|
|
226
|
+
- [GlobalSearchResponseResourceArrayResponse](docs/GlobalSearchResponseResourceArrayResponse.md)
|
|
219
227
|
- [GoogleCategoryResource](docs/GoogleCategoryResource.md)
|
|
220
228
|
- [GoogleCategoryResourceArrayResponse](docs/GoogleCategoryResourceArrayResponse.md)
|
|
221
229
|
- [IndexAttributeRequest](docs/IndexAttributeRequest.md)
|
|
@@ -410,7 +418,7 @@ and is automatically generated by the
|
|
|
410
418
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
411
419
|
|
|
412
420
|
- API version: `1.0.0`
|
|
413
|
-
- Package version: `0.0.
|
|
421
|
+
- Package version: `0.0.572`
|
|
414
422
|
- Generator version: `7.18.0`
|
|
415
423
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
416
424
|
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GlobalSearchCategoryResource
|
|
16
|
+
*/
|
|
17
|
+
export interface GlobalSearchCategoryResource {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof GlobalSearchCategoryResource
|
|
22
|
+
*/
|
|
23
|
+
id: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GlobalSearchCategoryResource
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GlobalSearchCategoryResource
|
|
34
|
+
*/
|
|
35
|
+
slug: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the GlobalSearchCategoryResource interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfGlobalSearchCategoryResource(value: object): value is GlobalSearchCategoryResource;
|
|
41
|
+
export declare function GlobalSearchCategoryResourceFromJSON(json: any): GlobalSearchCategoryResource;
|
|
42
|
+
export declare function GlobalSearchCategoryResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): GlobalSearchCategoryResource;
|
|
43
|
+
export declare function GlobalSearchCategoryResourceToJSON(json: any): GlobalSearchCategoryResource;
|
|
44
|
+
export declare function GlobalSearchCategoryResourceToJSONTyped(value?: GlobalSearchCategoryResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
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.instanceOfGlobalSearchCategoryResource = instanceOfGlobalSearchCategoryResource;
|
|
17
|
+
exports.GlobalSearchCategoryResourceFromJSON = GlobalSearchCategoryResourceFromJSON;
|
|
18
|
+
exports.GlobalSearchCategoryResourceFromJSONTyped = GlobalSearchCategoryResourceFromJSONTyped;
|
|
19
|
+
exports.GlobalSearchCategoryResourceToJSON = GlobalSearchCategoryResourceToJSON;
|
|
20
|
+
exports.GlobalSearchCategoryResourceToJSONTyped = GlobalSearchCategoryResourceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the GlobalSearchCategoryResource interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfGlobalSearchCategoryResource(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('slug' in value) || value['slug'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function GlobalSearchCategoryResourceFromJSON(json) {
|
|
34
|
+
return GlobalSearchCategoryResourceFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function GlobalSearchCategoryResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'id': json['id'],
|
|
42
|
+
'name': json['name'],
|
|
43
|
+
'slug': json['slug'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function GlobalSearchCategoryResourceToJSON(json) {
|
|
47
|
+
return GlobalSearchCategoryResourceToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function GlobalSearchCategoryResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'id': value['id'],
|
|
56
|
+
'name': value['name'],
|
|
57
|
+
'slug': value['slug'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { GlobalSearchCategoryResource } from './GlobalSearchCategoryResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GlobalSearchCategoryResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface GlobalSearchCategoryResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<GlobalSearchCategoryResource>}
|
|
22
|
+
* @memberof GlobalSearchCategoryResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<GlobalSearchCategoryResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the GlobalSearchCategoryResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfGlobalSearchCategoryResourceArrayResponse(value: object): value is GlobalSearchCategoryResourceArrayResponse;
|
|
30
|
+
export declare function GlobalSearchCategoryResourceArrayResponseFromJSON(json: any): GlobalSearchCategoryResourceArrayResponse;
|
|
31
|
+
export declare function GlobalSearchCategoryResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GlobalSearchCategoryResourceArrayResponse;
|
|
32
|
+
export declare function GlobalSearchCategoryResourceArrayResponseToJSON(json: any): GlobalSearchCategoryResourceArrayResponse;
|
|
33
|
+
export declare function GlobalSearchCategoryResourceArrayResponseToJSONTyped(value?: GlobalSearchCategoryResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfGlobalSearchCategoryResourceArrayResponse = instanceOfGlobalSearchCategoryResourceArrayResponse;
|
|
17
|
+
exports.GlobalSearchCategoryResourceArrayResponseFromJSON = GlobalSearchCategoryResourceArrayResponseFromJSON;
|
|
18
|
+
exports.GlobalSearchCategoryResourceArrayResponseFromJSONTyped = GlobalSearchCategoryResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.GlobalSearchCategoryResourceArrayResponseToJSON = GlobalSearchCategoryResourceArrayResponseToJSON;
|
|
20
|
+
exports.GlobalSearchCategoryResourceArrayResponseToJSONTyped = GlobalSearchCategoryResourceArrayResponseToJSONTyped;
|
|
21
|
+
var GlobalSearchCategoryResource_1 = require("./GlobalSearchCategoryResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the GlobalSearchCategoryResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfGlobalSearchCategoryResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function GlobalSearchCategoryResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return GlobalSearchCategoryResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function GlobalSearchCategoryResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(GlobalSearchCategoryResource_1.GlobalSearchCategoryResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function GlobalSearchCategoryResourceArrayResponseToJSON(json) {
|
|
40
|
+
return GlobalSearchCategoryResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function GlobalSearchCategoryResourceArrayResponseToJSONTyped(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(GlobalSearchCategoryResource_1.GlobalSearchCategoryResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GlobalSearchProductResource
|
|
16
|
+
*/
|
|
17
|
+
export interface GlobalSearchProductResource {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof GlobalSearchProductResource
|
|
22
|
+
*/
|
|
23
|
+
id: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GlobalSearchProductResource
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GlobalSearchProductResource
|
|
34
|
+
*/
|
|
35
|
+
slug: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof GlobalSearchProductResource
|
|
40
|
+
*/
|
|
41
|
+
sku: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof GlobalSearchProductResource
|
|
46
|
+
*/
|
|
47
|
+
thumbnail: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof GlobalSearchProductResource
|
|
52
|
+
*/
|
|
53
|
+
price: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof GlobalSearchProductResource
|
|
58
|
+
*/
|
|
59
|
+
salePrice: number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof GlobalSearchProductResource
|
|
64
|
+
*/
|
|
65
|
+
averageRating: number;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof GlobalSearchProductResource
|
|
70
|
+
*/
|
|
71
|
+
supplierName: string;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {Array<object>}
|
|
75
|
+
* @memberof GlobalSearchProductResource
|
|
76
|
+
*/
|
|
77
|
+
categories: Array<object>;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Check if a given object implements the GlobalSearchProductResource interface.
|
|
81
|
+
*/
|
|
82
|
+
export declare function instanceOfGlobalSearchProductResource(value: object): value is GlobalSearchProductResource;
|
|
83
|
+
export declare function GlobalSearchProductResourceFromJSON(json: any): GlobalSearchProductResource;
|
|
84
|
+
export declare function GlobalSearchProductResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): GlobalSearchProductResource;
|
|
85
|
+
export declare function GlobalSearchProductResourceToJSON(json: any): GlobalSearchProductResource;
|
|
86
|
+
export declare function GlobalSearchProductResourceToJSONTyped(value?: GlobalSearchProductResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,87 @@
|
|
|
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.instanceOfGlobalSearchProductResource = instanceOfGlobalSearchProductResource;
|
|
17
|
+
exports.GlobalSearchProductResourceFromJSON = GlobalSearchProductResourceFromJSON;
|
|
18
|
+
exports.GlobalSearchProductResourceFromJSONTyped = GlobalSearchProductResourceFromJSONTyped;
|
|
19
|
+
exports.GlobalSearchProductResourceToJSON = GlobalSearchProductResourceToJSON;
|
|
20
|
+
exports.GlobalSearchProductResourceToJSONTyped = GlobalSearchProductResourceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the GlobalSearchProductResource interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfGlobalSearchProductResource(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('slug' in value) || value['slug'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('sku' in value) || value['sku'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('thumbnail' in value) || value['thumbnail'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('price' in value) || value['price'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('salePrice' in value) || value['salePrice'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('averageRating' in value) || value['averageRating'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('supplierName' in value) || value['supplierName'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('categories' in value) || value['categories'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
return true;
|
|
46
|
+
}
|
|
47
|
+
function GlobalSearchProductResourceFromJSON(json) {
|
|
48
|
+
return GlobalSearchProductResourceFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function GlobalSearchProductResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'id': json['id'],
|
|
56
|
+
'name': json['name'],
|
|
57
|
+
'slug': json['slug'],
|
|
58
|
+
'sku': json['sku'],
|
|
59
|
+
'thumbnail': json['thumbnail'],
|
|
60
|
+
'price': json['price'],
|
|
61
|
+
'salePrice': json['salePrice'],
|
|
62
|
+
'averageRating': json['averageRating'],
|
|
63
|
+
'supplierName': json['supplierName'],
|
|
64
|
+
'categories': json['categories'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
function GlobalSearchProductResourceToJSON(json) {
|
|
68
|
+
return GlobalSearchProductResourceToJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
function GlobalSearchProductResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
71
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
72
|
+
if (value == null) {
|
|
73
|
+
return value;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
'id': value['id'],
|
|
77
|
+
'name': value['name'],
|
|
78
|
+
'slug': value['slug'],
|
|
79
|
+
'sku': value['sku'],
|
|
80
|
+
'thumbnail': value['thumbnail'],
|
|
81
|
+
'price': value['price'],
|
|
82
|
+
'salePrice': value['salePrice'],
|
|
83
|
+
'averageRating': value['averageRating'],
|
|
84
|
+
'supplierName': value['supplierName'],
|
|
85
|
+
'categories': value['categories'],
|
|
86
|
+
};
|
|
87
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { GlobalSearchProductResource } from './GlobalSearchProductResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GlobalSearchProductResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface GlobalSearchProductResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<GlobalSearchProductResource>}
|
|
22
|
+
* @memberof GlobalSearchProductResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<GlobalSearchProductResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the GlobalSearchProductResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfGlobalSearchProductResourceArrayResponse(value: object): value is GlobalSearchProductResourceArrayResponse;
|
|
30
|
+
export declare function GlobalSearchProductResourceArrayResponseFromJSON(json: any): GlobalSearchProductResourceArrayResponse;
|
|
31
|
+
export declare function GlobalSearchProductResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GlobalSearchProductResourceArrayResponse;
|
|
32
|
+
export declare function GlobalSearchProductResourceArrayResponseToJSON(json: any): GlobalSearchProductResourceArrayResponse;
|
|
33
|
+
export declare function GlobalSearchProductResourceArrayResponseToJSONTyped(value?: GlobalSearchProductResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfGlobalSearchProductResourceArrayResponse = instanceOfGlobalSearchProductResourceArrayResponse;
|
|
17
|
+
exports.GlobalSearchProductResourceArrayResponseFromJSON = GlobalSearchProductResourceArrayResponseFromJSON;
|
|
18
|
+
exports.GlobalSearchProductResourceArrayResponseFromJSONTyped = GlobalSearchProductResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.GlobalSearchProductResourceArrayResponseToJSON = GlobalSearchProductResourceArrayResponseToJSON;
|
|
20
|
+
exports.GlobalSearchProductResourceArrayResponseToJSONTyped = GlobalSearchProductResourceArrayResponseToJSONTyped;
|
|
21
|
+
var GlobalSearchProductResource_1 = require("./GlobalSearchProductResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the GlobalSearchProductResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfGlobalSearchProductResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function GlobalSearchProductResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return GlobalSearchProductResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function GlobalSearchProductResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(GlobalSearchProductResource_1.GlobalSearchProductResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function GlobalSearchProductResourceArrayResponseToJSON(json) {
|
|
40
|
+
return GlobalSearchProductResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function GlobalSearchProductResourceArrayResponseToJSONTyped(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(GlobalSearchProductResource_1.GlobalSearchProductResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GlobalSearchRangeResource
|
|
16
|
+
*/
|
|
17
|
+
export interface GlobalSearchRangeResource {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof GlobalSearchRangeResource
|
|
22
|
+
*/
|
|
23
|
+
id: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GlobalSearchRangeResource
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GlobalSearchRangeResource
|
|
34
|
+
*/
|
|
35
|
+
slug: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof GlobalSearchRangeResource
|
|
40
|
+
*/
|
|
41
|
+
thumbnail: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof GlobalSearchRangeResource
|
|
46
|
+
*/
|
|
47
|
+
description: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the GlobalSearchRangeResource interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfGlobalSearchRangeResource(value: object): value is GlobalSearchRangeResource;
|
|
53
|
+
export declare function GlobalSearchRangeResourceFromJSON(json: any): GlobalSearchRangeResource;
|
|
54
|
+
export declare function GlobalSearchRangeResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): GlobalSearchRangeResource;
|
|
55
|
+
export declare function GlobalSearchRangeResourceToJSON(json: any): GlobalSearchRangeResource;
|
|
56
|
+
export declare function GlobalSearchRangeResourceToJSONTyped(value?: GlobalSearchRangeResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,67 @@
|
|
|
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.instanceOfGlobalSearchRangeResource = instanceOfGlobalSearchRangeResource;
|
|
17
|
+
exports.GlobalSearchRangeResourceFromJSON = GlobalSearchRangeResourceFromJSON;
|
|
18
|
+
exports.GlobalSearchRangeResourceFromJSONTyped = GlobalSearchRangeResourceFromJSONTyped;
|
|
19
|
+
exports.GlobalSearchRangeResourceToJSON = GlobalSearchRangeResourceToJSON;
|
|
20
|
+
exports.GlobalSearchRangeResourceToJSONTyped = GlobalSearchRangeResourceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the GlobalSearchRangeResource interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfGlobalSearchRangeResource(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('slug' in value) || value['slug'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('thumbnail' in value) || value['thumbnail'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function GlobalSearchRangeResourceFromJSON(json) {
|
|
38
|
+
return GlobalSearchRangeResourceFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function GlobalSearchRangeResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'id': json['id'],
|
|
46
|
+
'name': json['name'],
|
|
47
|
+
'slug': json['slug'],
|
|
48
|
+
'thumbnail': json['thumbnail'],
|
|
49
|
+
'description': json['description'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function GlobalSearchRangeResourceToJSON(json) {
|
|
53
|
+
return GlobalSearchRangeResourceToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function GlobalSearchRangeResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
56
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'id': value['id'],
|
|
62
|
+
'name': value['name'],
|
|
63
|
+
'slug': value['slug'],
|
|
64
|
+
'thumbnail': value['thumbnail'],
|
|
65
|
+
'description': value['description'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { GlobalSearchRangeResource } from './GlobalSearchRangeResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GlobalSearchRangeResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface GlobalSearchRangeResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<GlobalSearchRangeResource>}
|
|
22
|
+
* @memberof GlobalSearchRangeResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<GlobalSearchRangeResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the GlobalSearchRangeResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfGlobalSearchRangeResourceArrayResponse(value: object): value is GlobalSearchRangeResourceArrayResponse;
|
|
30
|
+
export declare function GlobalSearchRangeResourceArrayResponseFromJSON(json: any): GlobalSearchRangeResourceArrayResponse;
|
|
31
|
+
export declare function GlobalSearchRangeResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GlobalSearchRangeResourceArrayResponse;
|
|
32
|
+
export declare function GlobalSearchRangeResourceArrayResponseToJSON(json: any): GlobalSearchRangeResourceArrayResponse;
|
|
33
|
+
export declare function GlobalSearchRangeResourceArrayResponseToJSONTyped(value?: GlobalSearchRangeResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|