@digital8/lighting-illusions-ts-sdk 0.0.635 → 0.0.636
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 +12 -2
- package/README.md +8 -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/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/index.d.ts +6 -1
- package/dist/models/index.js +6 -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/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/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/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/index.ts +6 -1
- package/dist/models/ProductStatus.d.ts +0 -24
- package/dist/models/ProductStatus.js +0 -50
- package/src/models/ProductStatus.ts +0 -52
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# ProductAvailability
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
@@ -10,11 +10,11 @@ Name | Type
|
|
|
10
10
|
## Example
|
|
11
11
|
|
|
12
12
|
```typescript
|
|
13
|
-
import type {
|
|
13
|
+
import type { ProductAvailability } from '@digital8/lighting-illusions-ts-sdk'
|
|
14
14
|
|
|
15
15
|
// TODO: Update the object below with actual values
|
|
16
16
|
const example = {
|
|
17
|
-
} satisfies
|
|
17
|
+
} satisfies ProductAvailability
|
|
18
18
|
|
|
19
19
|
console.log(example)
|
|
20
20
|
|
|
@@ -23,7 +23,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
23
23
|
console.log(exampleJSON)
|
|
24
24
|
|
|
25
25
|
// Parse the JSON string back to an object
|
|
26
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
26
|
+
const exampleParsed = JSON.parse(exampleJSON) as ProductAvailability
|
|
27
27
|
console.log(exampleParsed)
|
|
28
28
|
```
|
|
29
29
|
|
|
@@ -16,12 +16,13 @@ Name | Type
|
|
|
16
16
|
`thumbnail` | string
|
|
17
17
|
`averageRating` | string
|
|
18
18
|
`labelDetails` | Array<number>
|
|
19
|
-
`categories` | Array<object>
|
|
20
19
|
`supplierName` | string
|
|
21
20
|
`supplierLogo` | string
|
|
22
21
|
`supplierId` | number
|
|
23
22
|
`availability` | string
|
|
24
23
|
`wishlisted` | boolean
|
|
24
|
+
`variationCount` | number
|
|
25
|
+
`overlayAssets` | Array<object>
|
|
25
26
|
|
|
26
27
|
## Example
|
|
27
28
|
|
|
@@ -40,12 +41,13 @@ const example = {
|
|
|
40
41
|
"thumbnail": null,
|
|
41
42
|
"averageRating": null,
|
|
42
43
|
"labelDetails": null,
|
|
43
|
-
"categories": null,
|
|
44
44
|
"supplierName": null,
|
|
45
45
|
"supplierLogo": null,
|
|
46
46
|
"supplierId": null,
|
|
47
47
|
"availability": null,
|
|
48
48
|
"wishlisted": null,
|
|
49
|
+
"variationCount": null,
|
|
50
|
+
"overlayAssets": null,
|
|
49
51
|
} satisfies ProductSearchResultResource
|
|
50
52
|
|
|
51
53
|
console.log(example)
|
|
@@ -9,10 +9,10 @@ Name | Type
|
|
|
9
9
|
`id` | number
|
|
10
10
|
`name` | string
|
|
11
11
|
`slug` | string
|
|
12
|
-
`thumbnail` | [
|
|
12
|
+
`thumbnail` | [AssetLiteResource](AssetLiteResource.md)
|
|
13
13
|
`supplierEta` | number
|
|
14
|
-
`seo` |
|
|
15
|
-
`
|
|
14
|
+
`seo` | object
|
|
15
|
+
`description` | [DescriptionResource](DescriptionResource.md)
|
|
16
16
|
|
|
17
17
|
## Example
|
|
18
18
|
|
|
@@ -27,7 +27,7 @@ const example = {
|
|
|
27
27
|
"thumbnail": null,
|
|
28
28
|
"supplierEta": null,
|
|
29
29
|
"seo": null,
|
|
30
|
-
"
|
|
30
|
+
"description": null,
|
|
31
31
|
} satisfies SupplierFrontendResource
|
|
32
32
|
|
|
33
33
|
console.log(example)
|
package/package.json
CHANGED
|
@@ -0,0 +1,133 @@
|
|
|
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 { AssetLiteResource } from './AssetLiteResource';
|
|
17
|
+
import {
|
|
18
|
+
AssetLiteResourceFromJSON,
|
|
19
|
+
AssetLiteResourceFromJSONTyped,
|
|
20
|
+
AssetLiteResourceToJSON,
|
|
21
|
+
AssetLiteResourceToJSONTyped,
|
|
22
|
+
} from './AssetLiteResource';
|
|
23
|
+
import type { DescriptionResource } from './DescriptionResource';
|
|
24
|
+
import {
|
|
25
|
+
DescriptionResourceFromJSON,
|
|
26
|
+
DescriptionResourceFromJSONTyped,
|
|
27
|
+
DescriptionResourceToJSON,
|
|
28
|
+
DescriptionResourceToJSONTyped,
|
|
29
|
+
} from './DescriptionResource';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface CategoryFrontendResource
|
|
35
|
+
*/
|
|
36
|
+
export interface CategoryFrontendResource {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof CategoryFrontendResource
|
|
41
|
+
*/
|
|
42
|
+
id?: number | null;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof CategoryFrontendResource
|
|
47
|
+
*/
|
|
48
|
+
name: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof CategoryFrontendResource
|
|
53
|
+
*/
|
|
54
|
+
slug: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof CategoryFrontendResource
|
|
59
|
+
*/
|
|
60
|
+
parentId?: string | null;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {AssetLiteResource}
|
|
64
|
+
* @memberof CategoryFrontendResource
|
|
65
|
+
*/
|
|
66
|
+
thumbnail: AssetLiteResource | null;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {object}
|
|
70
|
+
* @memberof CategoryFrontendResource
|
|
71
|
+
*/
|
|
72
|
+
seo: object;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {Array<DescriptionResource>}
|
|
76
|
+
* @memberof CategoryFrontendResource
|
|
77
|
+
*/
|
|
78
|
+
descriptions: Array<DescriptionResource> | null;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Check if a given object implements the CategoryFrontendResource interface.
|
|
83
|
+
*/
|
|
84
|
+
export function instanceOfCategoryFrontendResource(value: object): value is CategoryFrontendResource {
|
|
85
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
86
|
+
if (!('slug' in value) || value['slug'] === undefined) return false;
|
|
87
|
+
if (!('thumbnail' in value) || value['thumbnail'] === undefined) return false;
|
|
88
|
+
if (!('seo' in value) || value['seo'] === undefined) return false;
|
|
89
|
+
if (!('descriptions' in value) || value['descriptions'] === undefined) return false;
|
|
90
|
+
return true;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function CategoryFrontendResourceFromJSON(json: any): CategoryFrontendResource {
|
|
94
|
+
return CategoryFrontendResourceFromJSONTyped(json, false);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function CategoryFrontendResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CategoryFrontendResource {
|
|
98
|
+
if (json == null) {
|
|
99
|
+
return json;
|
|
100
|
+
}
|
|
101
|
+
return {
|
|
102
|
+
|
|
103
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
104
|
+
'name': json['name'],
|
|
105
|
+
'slug': json['slug'],
|
|
106
|
+
'parentId': json['parentId'] == null ? undefined : json['parentId'],
|
|
107
|
+
'thumbnail': AssetLiteResourceFromJSON(json['thumbnail']),
|
|
108
|
+
'seo': json['seo'],
|
|
109
|
+
'descriptions': (json['descriptions'] == null ? null : (json['descriptions'] as Array<any>).map(DescriptionResourceFromJSON)),
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export function CategoryFrontendResourceToJSON(json: any): CategoryFrontendResource {
|
|
114
|
+
return CategoryFrontendResourceToJSONTyped(json, false);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export function CategoryFrontendResourceToJSONTyped(value?: CategoryFrontendResource | null, ignoreDiscriminator: boolean = false): any {
|
|
118
|
+
if (value == null) {
|
|
119
|
+
return value;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
return {
|
|
123
|
+
|
|
124
|
+
'id': value['id'],
|
|
125
|
+
'name': value['name'],
|
|
126
|
+
'slug': value['slug'],
|
|
127
|
+
'parentId': value['parentId'],
|
|
128
|
+
'thumbnail': AssetLiteResourceToJSON(value['thumbnail']),
|
|
129
|
+
'seo': value['seo'],
|
|
130
|
+
'descriptions': (value['descriptions'] == null ? null : (value['descriptions'] as Array<any>).map(DescriptionResourceToJSON)),
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
|
|
@@ -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 { CategoryFrontendResource } from './CategoryFrontendResource';
|
|
17
|
+
import {
|
|
18
|
+
CategoryFrontendResourceFromJSON,
|
|
19
|
+
CategoryFrontendResourceFromJSONTyped,
|
|
20
|
+
CategoryFrontendResourceToJSON,
|
|
21
|
+
CategoryFrontendResourceToJSONTyped,
|
|
22
|
+
} from './CategoryFrontendResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface CategoryFrontendResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface CategoryFrontendResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<CategoryFrontendResource>}
|
|
33
|
+
* @memberof CategoryFrontendResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<CategoryFrontendResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the CategoryFrontendResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfCategoryFrontendResourceArrayResponse(value: object): value is CategoryFrontendResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function CategoryFrontendResourceArrayResponseFromJSON(json: any): CategoryFrontendResourceArrayResponse {
|
|
46
|
+
return CategoryFrontendResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function CategoryFrontendResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CategoryFrontendResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(CategoryFrontendResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function CategoryFrontendResourceArrayResponseToJSON(json: any): CategoryFrontendResourceArrayResponse {
|
|
60
|
+
return CategoryFrontendResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function CategoryFrontendResourceArrayResponseToJSONTyped(value?: CategoryFrontendResourceArrayResponse | 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(CategoryFrontendResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,83 @@
|
|
|
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 { CategoryFrontendResource } from './CategoryFrontendResource';
|
|
17
|
+
import {
|
|
18
|
+
CategoryFrontendResourceFromJSON,
|
|
19
|
+
CategoryFrontendResourceFromJSONTyped,
|
|
20
|
+
CategoryFrontendResourceToJSON,
|
|
21
|
+
CategoryFrontendResourceToJSONTyped,
|
|
22
|
+
} from './CategoryFrontendResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface CategoryWithChildrenFrontendResource
|
|
28
|
+
*/
|
|
29
|
+
export interface CategoryWithChildrenFrontendResource {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {CategoryFrontendResource}
|
|
33
|
+
* @memberof CategoryWithChildrenFrontendResource
|
|
34
|
+
*/
|
|
35
|
+
category: CategoryFrontendResource | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Array<CategoryFrontendResource>}
|
|
39
|
+
* @memberof CategoryWithChildrenFrontendResource
|
|
40
|
+
*/
|
|
41
|
+
children: Array<CategoryFrontendResource> | null;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the CategoryWithChildrenFrontendResource interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfCategoryWithChildrenFrontendResource(value: object): value is CategoryWithChildrenFrontendResource {
|
|
48
|
+
if (!('category' in value) || value['category'] === undefined) return false;
|
|
49
|
+
if (!('children' in value) || value['children'] === undefined) return false;
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function CategoryWithChildrenFrontendResourceFromJSON(json: any): CategoryWithChildrenFrontendResource {
|
|
54
|
+
return CategoryWithChildrenFrontendResourceFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function CategoryWithChildrenFrontendResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CategoryWithChildrenFrontendResource {
|
|
58
|
+
if (json == null) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'category': CategoryFrontendResourceFromJSON(json['category']),
|
|
64
|
+
'children': (json['children'] == null ? null : (json['children'] as Array<any>).map(CategoryFrontendResourceFromJSON)),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function CategoryWithChildrenFrontendResourceToJSON(json: any): CategoryWithChildrenFrontendResource {
|
|
69
|
+
return CategoryWithChildrenFrontendResourceToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function CategoryWithChildrenFrontendResourceToJSONTyped(value?: CategoryWithChildrenFrontendResource | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'category': CategoryFrontendResourceToJSON(value['category']),
|
|
80
|
+
'children': (value['children'] == null ? null : (value['children'] as Array<any>).map(CategoryFrontendResourceToJSON)),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
@@ -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 { CategoryWithChildrenFrontendResource } from './CategoryWithChildrenFrontendResource';
|
|
17
|
+
import {
|
|
18
|
+
CategoryWithChildrenFrontendResourceFromJSON,
|
|
19
|
+
CategoryWithChildrenFrontendResourceFromJSONTyped,
|
|
20
|
+
CategoryWithChildrenFrontendResourceToJSON,
|
|
21
|
+
CategoryWithChildrenFrontendResourceToJSONTyped,
|
|
22
|
+
} from './CategoryWithChildrenFrontendResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface CategoryWithChildrenFrontendResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface CategoryWithChildrenFrontendResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<CategoryWithChildrenFrontendResource>}
|
|
33
|
+
* @memberof CategoryWithChildrenFrontendResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<CategoryWithChildrenFrontendResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the CategoryWithChildrenFrontendResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfCategoryWithChildrenFrontendResourceArrayResponse(value: object): value is CategoryWithChildrenFrontendResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function CategoryWithChildrenFrontendResourceArrayResponseFromJSON(json: any): CategoryWithChildrenFrontendResourceArrayResponse {
|
|
46
|
+
return CategoryWithChildrenFrontendResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function CategoryWithChildrenFrontendResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CategoryWithChildrenFrontendResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(CategoryWithChildrenFrontendResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function CategoryWithChildrenFrontendResourceArrayResponseToJSON(json: any): CategoryWithChildrenFrontendResourceArrayResponse {
|
|
60
|
+
return CategoryWithChildrenFrontendResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function CategoryWithChildrenFrontendResourceArrayResponseToJSONTyped(value?: CategoryWithChildrenFrontendResourceArrayResponse | 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(CategoryWithChildrenFrontendResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
|
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof ExternalApiLogResource
|
|
76
76
|
*/
|
|
77
|
-
requestPayload
|
|
77
|
+
requestPayload?: string | null;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @type {string}
|
|
@@ -106,7 +106,6 @@ export function instanceOfExternalApiLogResource(value: object): value is Extern
|
|
|
106
106
|
if (!('exteranlApiLoggableId' in value) || value['exteranlApiLoggableId'] === undefined) return false;
|
|
107
107
|
if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
|
|
108
108
|
if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
|
|
109
|
-
if (!('requestPayload' in value) || value['requestPayload'] === undefined) return false;
|
|
110
109
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
|
|
111
110
|
if (!('site' in value) || value['site'] === undefined) return false;
|
|
112
111
|
return true;
|
|
@@ -129,7 +128,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
129
128
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
130
129
|
'endpoint': json['endpoint'],
|
|
131
130
|
'responseCode': json['responseCode'],
|
|
132
|
-
'requestPayload': json['requestPayload'],
|
|
131
|
+
'requestPayload': json['requestPayload'] == null ? undefined : json['requestPayload'],
|
|
133
132
|
'responsePayload': json['responsePayload'],
|
|
134
133
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
135
134
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
@@ -13,6 +13,14 @@
|
|
|
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';
|
|
23
|
+
|
|
16
24
|
/**
|
|
17
25
|
*
|
|
18
26
|
* @export
|
|
@@ -51,10 +59,10 @@ export interface OverlayTemplateAssetFrontendResource {
|
|
|
51
59
|
verticalMargin: number;
|
|
52
60
|
/**
|
|
53
61
|
*
|
|
54
|
-
* @type {
|
|
62
|
+
* @type {AssetLiteResource}
|
|
55
63
|
* @memberof OverlayTemplateAssetFrontendResource
|
|
56
64
|
*/
|
|
57
|
-
image:
|
|
65
|
+
image: AssetLiteResource | null;
|
|
58
66
|
}
|
|
59
67
|
|
|
60
68
|
/**
|
|
@@ -85,7 +93,7 @@ export function OverlayTemplateAssetFrontendResourceFromJSONTyped(json: any, ign
|
|
|
85
93
|
'padding': json['padding'],
|
|
86
94
|
'horizontalMargin': json['horizontalMargin'],
|
|
87
95
|
'verticalMargin': json['verticalMargin'],
|
|
88
|
-
'image': json['image'],
|
|
96
|
+
'image': AssetLiteResourceFromJSON(json['image']),
|
|
89
97
|
};
|
|
90
98
|
}
|
|
91
99
|
|
|
@@ -105,7 +113,7 @@ export function OverlayTemplateAssetFrontendResourceToJSONTyped(value?: OverlayT
|
|
|
105
113
|
'padding': value['padding'],
|
|
106
114
|
'horizontalMargin': value['horizontalMargin'],
|
|
107
115
|
'verticalMargin': value['verticalMargin'],
|
|
108
|
-
'image': value['image'],
|
|
116
|
+
'image': AssetLiteResourceToJSON(value['image']),
|
|
109
117
|
};
|
|
110
118
|
}
|
|
111
119
|
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type {
|
|
16
|
+
import type { AssetLiteResource } from './AssetLiteResource';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from './
|
|
18
|
+
AssetLiteResourceFromJSON,
|
|
19
|
+
AssetLiteResourceFromJSONTyped,
|
|
20
|
+
AssetLiteResourceToJSON,
|
|
21
|
+
AssetLiteResourceToJSONTyped,
|
|
22
|
+
} from './AssetLiteResource';
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
@@ -35,10 +35,10 @@ export interface OverlayTemplateAssetResource {
|
|
|
35
35
|
id: number;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
|
-
* @type {
|
|
38
|
+
* @type {AssetLiteResource}
|
|
39
39
|
* @memberof OverlayTemplateAssetResource
|
|
40
40
|
*/
|
|
41
|
-
asset:
|
|
41
|
+
asset: AssetLiteResource | null;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {string}
|
|
@@ -89,7 +89,7 @@ export function OverlayTemplateAssetResourceFromJSONTyped(json: any, ignoreDiscr
|
|
|
89
89
|
return {
|
|
90
90
|
|
|
91
91
|
'id': json['id'],
|
|
92
|
-
'asset':
|
|
92
|
+
'asset': AssetLiteResourceFromJSON(json['asset']),
|
|
93
93
|
'position': json['position'],
|
|
94
94
|
'padding': json['padding'],
|
|
95
95
|
'horizontalMargin': json['horizontalMargin'],
|
|
@@ -109,7 +109,7 @@ export function OverlayTemplateAssetResourceToJSONTyped(value?: OverlayTemplateA
|
|
|
109
109
|
return {
|
|
110
110
|
|
|
111
111
|
'id': value['id'],
|
|
112
|
-
'asset':
|
|
112
|
+
'asset': AssetLiteResourceToJSON(value['asset']),
|
|
113
113
|
'position': value['position'],
|
|
114
114
|
'padding': value['padding'],
|
|
115
115
|
'horizontalMargin': value['horizontalMargin'],
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { PagingMetadata } from './PagingMetadata';
|
|
17
|
+
import {
|
|
18
|
+
PagingMetadataFromJSON,
|
|
19
|
+
PagingMetadataFromJSONTyped,
|
|
20
|
+
PagingMetadataToJSON,
|
|
21
|
+
PagingMetadataToJSONTyped,
|
|
22
|
+
} from './PagingMetadata';
|
|
23
|
+
import type { CategoryFrontendResource } from './CategoryFrontendResource';
|
|
24
|
+
import {
|
|
25
|
+
CategoryFrontendResourceFromJSON,
|
|
26
|
+
CategoryFrontendResourceFromJSONTyped,
|
|
27
|
+
CategoryFrontendResourceToJSON,
|
|
28
|
+
CategoryFrontendResourceToJSONTyped,
|
|
29
|
+
} from './CategoryFrontendResource';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PaginatedCategoryFrontendResourceResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface PaginatedCategoryFrontendResourceResponse {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<CategoryFrontendResource>}
|
|
40
|
+
* @memberof PaginatedCategoryFrontendResourceResponse
|
|
41
|
+
*/
|
|
42
|
+
data: Array<CategoryFrontendResource>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {PagingMetadata}
|
|
46
|
+
* @memberof PaginatedCategoryFrontendResourceResponse
|
|
47
|
+
*/
|
|
48
|
+
meta: PagingMetadata;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the PaginatedCategoryFrontendResourceResponse interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfPaginatedCategoryFrontendResourceResponse(value: object): value is PaginatedCategoryFrontendResourceResponse {
|
|
55
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
56
|
+
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function PaginatedCategoryFrontendResourceResponseFromJSON(json: any): PaginatedCategoryFrontendResourceResponse {
|
|
61
|
+
return PaginatedCategoryFrontendResourceResponseFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PaginatedCategoryFrontendResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedCategoryFrontendResourceResponse {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': ((json['data'] as Array<any>).map(CategoryFrontendResourceFromJSON)),
|
|
71
|
+
'meta': PagingMetadataFromJSON(json['meta']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PaginatedCategoryFrontendResourceResponseToJSON(json: any): PaginatedCategoryFrontendResourceResponse {
|
|
76
|
+
return PaginatedCategoryFrontendResourceResponseToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PaginatedCategoryFrontendResourceResponseToJSONTyped(value?: PaginatedCategoryFrontendResourceResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'data': ((value['data'] as Array<any>).map(CategoryFrontendResourceToJSON)),
|
|
87
|
+
'meta': PagingMetadataToJSON(value['meta']),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|