@digital8/lighting-illusions-ts-sdk 0.0.572 → 0.0.574
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 +4 -16
- package/README.md +6 -10
- package/dist/apis/ProductCategoryApi.d.ts +25 -1
- package/dist/apis/ProductCategoryApi.js +96 -0
- package/dist/models/AttachProductsProductCategoryRequest.d.ts +32 -0
- package/dist/models/AttachProductsProductCategoryRequest.js +51 -0
- package/dist/models/DetachProductsProductCategoryRequest.d.ts +32 -0
- package/dist/models/DetachProductsProductCategoryRequest.js +51 -0
- package/dist/models/index.d.ts +2 -8
- package/dist/models/index.js +2 -8
- package/docs/{GlobalSearchCategoryResource.md → AttachProductsProductCategoryRequest.md} +6 -10
- package/docs/{GlobalSearchRangeResourceArrayResponse.md → DetachProductsProductCategoryRequest.md} +6 -6
- package/docs/ProductCategoryApi.md +138 -0
- package/package.json +1 -1
- package/src/apis/ProductCategoryApi.ts +96 -0
- package/src/models/AttachProductsProductCategoryRequest.ts +66 -0
- package/src/models/DetachProductsProductCategoryRequest.ts +66 -0
- package/src/models/index.ts +2 -8
- package/dist/models/GlobalSearchCategoryResource.d.ts +0 -44
- package/dist/models/GlobalSearchCategoryResource.js +0 -59
- package/dist/models/GlobalSearchCategoryResourceArrayResponse.d.ts +0 -33
- package/dist/models/GlobalSearchCategoryResourceArrayResponse.js +0 -50
- package/dist/models/GlobalSearchProductResource.d.ts +0 -86
- package/dist/models/GlobalSearchProductResource.js +0 -87
- package/dist/models/GlobalSearchProductResourceArrayResponse.d.ts +0 -33
- package/dist/models/GlobalSearchProductResourceArrayResponse.js +0 -50
- package/dist/models/GlobalSearchRangeResource.d.ts +0 -56
- package/dist/models/GlobalSearchRangeResource.js +0 -67
- package/dist/models/GlobalSearchRangeResourceArrayResponse.d.ts +0 -33
- package/dist/models/GlobalSearchRangeResourceArrayResponse.js +0 -50
- package/dist/models/GlobalSearchResponseResource.d.ts +0 -47
- package/dist/models/GlobalSearchResponseResource.js +0 -62
- package/dist/models/GlobalSearchResponseResourceArrayResponse.d.ts +0 -33
- package/dist/models/GlobalSearchResponseResourceArrayResponse.js +0 -50
- package/docs/GlobalSearchCategoryResourceArrayResponse.md +0 -34
- package/docs/GlobalSearchProductResource.md +0 -52
- package/docs/GlobalSearchProductResourceArrayResponse.md +0 -34
- package/docs/GlobalSearchRangeResource.md +0 -42
- package/docs/GlobalSearchResponseResource.md +0 -38
- package/docs/GlobalSearchResponseResourceArrayResponse.md +0 -34
- package/src/models/GlobalSearchCategoryResource.ts +0 -84
- package/src/models/GlobalSearchCategoryResourceArrayResponse.ts +0 -73
- package/src/models/GlobalSearchProductResource.ts +0 -147
- package/src/models/GlobalSearchProductResourceArrayResponse.ts +0 -73
- package/src/models/GlobalSearchRangeResource.ts +0 -102
- package/src/models/GlobalSearchRangeResourceArrayResponse.ts +0 -73
- package/src/models/GlobalSearchResponseResource.ts +0 -106
- package/src/models/GlobalSearchResponseResourceArrayResponse.ts +0 -73
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# GlobalSearchCategoryResourceArrayResponse
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`data` | [Array<GlobalSearchCategoryResource>](GlobalSearchCategoryResource.md)
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import type { GlobalSearchCategoryResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
-
|
|
16
|
-
// TODO: Update the object below with actual values
|
|
17
|
-
const example = {
|
|
18
|
-
"data": null,
|
|
19
|
-
} satisfies GlobalSearchCategoryResourceArrayResponse
|
|
20
|
-
|
|
21
|
-
console.log(example)
|
|
22
|
-
|
|
23
|
-
// Convert the instance to a JSON string
|
|
24
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
-
console.log(exampleJSON)
|
|
26
|
-
|
|
27
|
-
// Parse the JSON string back to an object
|
|
28
|
-
const exampleParsed = JSON.parse(exampleJSON) as GlobalSearchCategoryResourceArrayResponse
|
|
29
|
-
console.log(exampleParsed)
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
-
|
|
34
|
-
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# GlobalSearchProductResource
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`id` | number
|
|
10
|
-
`name` | string
|
|
11
|
-
`slug` | string
|
|
12
|
-
`sku` | string
|
|
13
|
-
`thumbnail` | string
|
|
14
|
-
`price` | number
|
|
15
|
-
`salePrice` | number
|
|
16
|
-
`averageRating` | number
|
|
17
|
-
`supplierName` | string
|
|
18
|
-
`categories` | Array<object>
|
|
19
|
-
|
|
20
|
-
## Example
|
|
21
|
-
|
|
22
|
-
```typescript
|
|
23
|
-
import type { GlobalSearchProductResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
24
|
-
|
|
25
|
-
// TODO: Update the object below with actual values
|
|
26
|
-
const example = {
|
|
27
|
-
"id": null,
|
|
28
|
-
"name": null,
|
|
29
|
-
"slug": null,
|
|
30
|
-
"sku": null,
|
|
31
|
-
"thumbnail": null,
|
|
32
|
-
"price": null,
|
|
33
|
-
"salePrice": null,
|
|
34
|
-
"averageRating": null,
|
|
35
|
-
"supplierName": null,
|
|
36
|
-
"categories": null,
|
|
37
|
-
} satisfies GlobalSearchProductResource
|
|
38
|
-
|
|
39
|
-
console.log(example)
|
|
40
|
-
|
|
41
|
-
// Convert the instance to a JSON string
|
|
42
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
43
|
-
console.log(exampleJSON)
|
|
44
|
-
|
|
45
|
-
// Parse the JSON string back to an object
|
|
46
|
-
const exampleParsed = JSON.parse(exampleJSON) as GlobalSearchProductResource
|
|
47
|
-
console.log(exampleParsed)
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
51
|
-
|
|
52
|
-
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# GlobalSearchProductResourceArrayResponse
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`data` | [Array<GlobalSearchProductResource>](GlobalSearchProductResource.md)
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import type { GlobalSearchProductResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
-
|
|
16
|
-
// TODO: Update the object below with actual values
|
|
17
|
-
const example = {
|
|
18
|
-
"data": null,
|
|
19
|
-
} satisfies GlobalSearchProductResourceArrayResponse
|
|
20
|
-
|
|
21
|
-
console.log(example)
|
|
22
|
-
|
|
23
|
-
// Convert the instance to a JSON string
|
|
24
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
-
console.log(exampleJSON)
|
|
26
|
-
|
|
27
|
-
// Parse the JSON string back to an object
|
|
28
|
-
const exampleParsed = JSON.parse(exampleJSON) as GlobalSearchProductResourceArrayResponse
|
|
29
|
-
console.log(exampleParsed)
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
-
|
|
34
|
-
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# GlobalSearchRangeResource
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`id` | number
|
|
10
|
-
`name` | string
|
|
11
|
-
`slug` | string
|
|
12
|
-
`thumbnail` | string
|
|
13
|
-
`description` | string
|
|
14
|
-
|
|
15
|
-
## Example
|
|
16
|
-
|
|
17
|
-
```typescript
|
|
18
|
-
import type { GlobalSearchRangeResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
19
|
-
|
|
20
|
-
// TODO: Update the object below with actual values
|
|
21
|
-
const example = {
|
|
22
|
-
"id": null,
|
|
23
|
-
"name": null,
|
|
24
|
-
"slug": null,
|
|
25
|
-
"thumbnail": null,
|
|
26
|
-
"description": null,
|
|
27
|
-
} satisfies GlobalSearchRangeResource
|
|
28
|
-
|
|
29
|
-
console.log(example)
|
|
30
|
-
|
|
31
|
-
// Convert the instance to a JSON string
|
|
32
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
33
|
-
console.log(exampleJSON)
|
|
34
|
-
|
|
35
|
-
// Parse the JSON string back to an object
|
|
36
|
-
const exampleParsed = JSON.parse(exampleJSON) as GlobalSearchRangeResource
|
|
37
|
-
console.log(exampleParsed)
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
41
|
-
|
|
42
|
-
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# GlobalSearchResponseResource
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`products` | [Array<GlobalSearchProductResource>](GlobalSearchProductResource.md)
|
|
10
|
-
`categories` | [Array<GlobalSearchCategoryResource>](GlobalSearchCategoryResource.md)
|
|
11
|
-
`ranges` | [Array<GlobalSearchRangeResource>](GlobalSearchRangeResource.md)
|
|
12
|
-
|
|
13
|
-
## Example
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
import type { GlobalSearchResponseResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
17
|
-
|
|
18
|
-
// TODO: Update the object below with actual values
|
|
19
|
-
const example = {
|
|
20
|
-
"products": null,
|
|
21
|
-
"categories": null,
|
|
22
|
-
"ranges": null,
|
|
23
|
-
} satisfies GlobalSearchResponseResource
|
|
24
|
-
|
|
25
|
-
console.log(example)
|
|
26
|
-
|
|
27
|
-
// Convert the instance to a JSON string
|
|
28
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
-
console.log(exampleJSON)
|
|
30
|
-
|
|
31
|
-
// Parse the JSON string back to an object
|
|
32
|
-
const exampleParsed = JSON.parse(exampleJSON) as GlobalSearchResponseResource
|
|
33
|
-
console.log(exampleParsed)
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
|
-
|
|
38
|
-
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# GlobalSearchResponseResourceArrayResponse
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`data` | [Array<GlobalSearchResponseResource>](GlobalSearchResponseResource.md)
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import type { GlobalSearchResponseResourceArrayResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
-
|
|
16
|
-
// TODO: Update the object below with actual values
|
|
17
|
-
const example = {
|
|
18
|
-
"data": null,
|
|
19
|
-
} satisfies GlobalSearchResponseResourceArrayResponse
|
|
20
|
-
|
|
21
|
-
console.log(example)
|
|
22
|
-
|
|
23
|
-
// Convert the instance to a JSON string
|
|
24
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
-
console.log(exampleJSON)
|
|
26
|
-
|
|
27
|
-
// Parse the JSON string back to an object
|
|
28
|
-
const exampleParsed = JSON.parse(exampleJSON) as GlobalSearchResponseResourceArrayResponse
|
|
29
|
-
console.log(exampleParsed)
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
-
|
|
34
|
-
|
|
@@ -1,84 +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
|
-
/**
|
|
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
|
-
|
|
@@ -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 { 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
|
-
|
|
@@ -1,147 +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
|
-
/**
|
|
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
|
-
|
|
@@ -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 { 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
|
-
|