@digital8/lighting-illusions-ts-sdk 0.0.649 → 0.0.651
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 +38 -10
- package/README.md +26 -7
- package/dist/apis/DefinitionApi.d.ts +85 -0
- package/dist/apis/DefinitionApi.js +355 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- 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/DefinitionListResource.d.ts +38 -0
- package/dist/models/DefinitionListResource.js +55 -0
- package/dist/models/DefinitionListResourceArrayResponse.d.ts +33 -0
- package/dist/models/DefinitionListResourceArrayResponse.js +50 -0
- package/dist/models/DefinitionResource.d.ts +44 -0
- package/dist/models/DefinitionResource.js +59 -0
- package/dist/models/DefinitionResourceArrayResponse.d.ts +33 -0
- package/dist/models/DefinitionResourceArrayResponse.js +50 -0
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/GetAllDefinitionRequest.d.ts +80 -0
- package/dist/models/GetAllDefinitionRequest.js +76 -0
- package/dist/models/GlobalSearchProductResource.d.ts +6 -0
- package/dist/models/GlobalSearchProductResource.js +4 -0
- package/dist/models/IndexDefinitionRequest.d.ts +92 -0
- package/dist/models/IndexDefinitionRequest.js +80 -0
- package/dist/models/OverlayTemplateAssetFrontendResource.d.ts +3 -2
- package/dist/models/OverlayTemplateAssetFrontendResource.js +3 -2
- package/dist/models/OverlayTemplateAssetResource.d.ts +3 -3
- package/dist/models/OverlayTemplateAssetResource.js +3 -3
- package/dist/models/PaginatedCategoryFrontendResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedCategoryFrontendResourceResponse.js +57 -0
- package/dist/models/PaginatedDefinitionListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedDefinitionListResourceResponse.js +57 -0
- package/dist/models/PaginatedDefinitionResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedDefinitionResourceResponse.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/StoreDefinitionRequest.d.ts +38 -0
- package/dist/models/StoreDefinitionRequest.js +55 -0
- package/dist/models/SupplierFrontendResource.d.ts +7 -8
- package/dist/models/SupplierFrontendResource.js +8 -9
- package/dist/models/TagFrontendResource.d.ts +63 -0
- package/dist/models/TagFrontendResource.js +72 -0
- package/dist/models/TagFrontendResourceArrayResponse.d.ts +33 -0
- package/dist/models/TagFrontendResourceArrayResponse.js +50 -0
- package/dist/models/UpdateDefinitionRequest.d.ts +38 -0
- package/dist/models/UpdateDefinitionRequest.js +55 -0
- package/dist/models/index.d.ts +18 -5
- package/dist/models/index.js +18 -5
- 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/DefinitionApi.md +407 -0
- package/docs/{WishlistToggleResource.md → DefinitionListResource.md} +8 -8
- package/docs/{WishlistToggleResourceArrayResponse.md → DefinitionListResourceArrayResponse.md} +5 -5
- package/docs/DefinitionResource.md +38 -0
- package/docs/{WishlistCheckResourceArrayResponse.md → DefinitionResourceArrayResponse.md} +5 -5
- package/docs/GetAllDefinitionRequest.md +44 -0
- package/docs/GlobalSearchProductResource.md +2 -0
- package/docs/IndexDefinitionRequest.md +48 -0
- package/docs/OverlayTemplateAssetFrontendResource.md +1 -1
- package/docs/OverlayTemplateAssetResource.md +1 -1
- package/docs/PaginatedCategoryFrontendResourceResponse.md +36 -0
- package/docs/PaginatedDefinitionListResourceResponse.md +36 -0
- package/docs/PaginatedDefinitionResourceResponse.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/{WishlistCheckResource.md → StoreDefinitionRequest.md} +8 -6
- package/docs/SupplierFrontendResource.md +4 -4
- package/docs/TagFrontendResource.md +44 -0
- package/docs/TagFrontendResourceArrayResponse.md +34 -0
- package/docs/UpdateDefinitionRequest.md +36 -0
- package/package.json +1 -1
- package/src/apis/DefinitionApi.ts +286 -0
- package/src/apis/index.ts +1 -0
- 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/DefinitionListResource.ts +75 -0
- package/src/models/DefinitionListResourceArrayResponse.ts +73 -0
- package/src/models/DefinitionResource.ts +84 -0
- package/src/models/DefinitionResourceArrayResponse.ts +73 -0
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/GetAllDefinitionRequest.ts +127 -0
- package/src/models/GlobalSearchProductResource.ts +9 -0
- package/src/models/IndexDefinitionRequest.ts +143 -0
- package/src/models/OverlayTemplateAssetFrontendResource.ts +12 -4
- package/src/models/OverlayTemplateAssetResource.ts +10 -10
- package/src/models/PaginatedCategoryFrontendResourceResponse.ts +90 -0
- package/src/models/PaginatedDefinitionListResourceResponse.ts +90 -0
- package/src/models/PaginatedDefinitionResourceResponse.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/StoreDefinitionRequest.ts +75 -0
- package/src/models/SupplierFrontendResource.ts +20 -27
- package/src/models/TagFrontendResource.ts +119 -0
- package/src/models/TagFrontendResourceArrayResponse.ts +73 -0
- package/src/models/UpdateDefinitionRequest.ts +75 -0
- package/src/models/index.ts +18 -5
- package/dist/models/ProductStatus.d.ts +0 -24
- package/dist/models/ProductStatus.js +0 -50
- package/dist/models/WishlistCheckResource.d.ts +0 -32
- package/dist/models/WishlistCheckResource.js +0 -51
- package/dist/models/WishlistCheckResourceArrayResponse.d.ts +0 -33
- package/dist/models/WishlistCheckResourceArrayResponse.js +0 -50
- package/dist/models/WishlistToggleResource.d.ts +0 -38
- package/dist/models/WishlistToggleResource.js +0 -55
- package/dist/models/WishlistToggleResourceArrayResponse.d.ts +0 -33
- package/dist/models/WishlistToggleResourceArrayResponse.js +0 -50
- package/src/models/ProductStatus.ts +0 -52
- package/src/models/WishlistCheckResource.ts +0 -66
- package/src/models/WishlistCheckResourceArrayResponse.ts +0 -73
- package/src/models/WishlistToggleResource.ts +0 -75
- package/src/models/WishlistToggleResourceArrayResponse.ts +0 -73
|
@@ -0,0 +1,127 @@
|
|
|
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 GetAllDefinitionRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface GetAllDefinitionRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof GetAllDefinitionRequest
|
|
26
|
+
*/
|
|
27
|
+
search?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof GetAllDefinitionRequest
|
|
32
|
+
*/
|
|
33
|
+
sortBy?: GetAllDefinitionRequestSortByEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof GetAllDefinitionRequest
|
|
38
|
+
*/
|
|
39
|
+
sortDirection?: GetAllDefinitionRequestSortDirectionEnum;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof GetAllDefinitionRequest
|
|
44
|
+
*/
|
|
45
|
+
relatedId?: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof GetAllDefinitionRequest
|
|
50
|
+
*/
|
|
51
|
+
relatedType?: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {boolean}
|
|
55
|
+
* @memberof GetAllDefinitionRequest
|
|
56
|
+
*/
|
|
57
|
+
includesRelations?: boolean;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export const GetAllDefinitionRequestSortByEnum = {
|
|
65
|
+
Id: 'id',
|
|
66
|
+
Name: 'name',
|
|
67
|
+
CreatedAt: 'created_at',
|
|
68
|
+
UpdatedAt: 'updated_at'
|
|
69
|
+
} as const;
|
|
70
|
+
export type GetAllDefinitionRequestSortByEnum = typeof GetAllDefinitionRequestSortByEnum[keyof typeof GetAllDefinitionRequestSortByEnum];
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* @export
|
|
74
|
+
*/
|
|
75
|
+
export const GetAllDefinitionRequestSortDirectionEnum = {
|
|
76
|
+
Asc: 'asc',
|
|
77
|
+
Desc: 'desc'
|
|
78
|
+
} as const;
|
|
79
|
+
export type GetAllDefinitionRequestSortDirectionEnum = typeof GetAllDefinitionRequestSortDirectionEnum[keyof typeof GetAllDefinitionRequestSortDirectionEnum];
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Check if a given object implements the GetAllDefinitionRequest interface.
|
|
84
|
+
*/
|
|
85
|
+
export function instanceOfGetAllDefinitionRequest(value: object): value is GetAllDefinitionRequest {
|
|
86
|
+
return true;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function GetAllDefinitionRequestFromJSON(json: any): GetAllDefinitionRequest {
|
|
90
|
+
return GetAllDefinitionRequestFromJSONTyped(json, false);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function GetAllDefinitionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAllDefinitionRequest {
|
|
94
|
+
if (json == null) {
|
|
95
|
+
return json;
|
|
96
|
+
}
|
|
97
|
+
return {
|
|
98
|
+
|
|
99
|
+
'search': json['search'] == null ? undefined : json['search'],
|
|
100
|
+
'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
|
|
101
|
+
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
102
|
+
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
103
|
+
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
104
|
+
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function GetAllDefinitionRequestToJSON(json: any): GetAllDefinitionRequest {
|
|
109
|
+
return GetAllDefinitionRequestToJSONTyped(json, false);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export function GetAllDefinitionRequestToJSONTyped(value?: GetAllDefinitionRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
113
|
+
if (value == null) {
|
|
114
|
+
return value;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
return {
|
|
118
|
+
|
|
119
|
+
'search': value['search'],
|
|
120
|
+
'sortBy': value['sortBy'],
|
|
121
|
+
'sortDirection': value['sortDirection'],
|
|
122
|
+
'related_id': value['relatedId'],
|
|
123
|
+
'related_type': value['relatedType'],
|
|
124
|
+
'includes_relations': value['includesRelations'],
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
|
|
@@ -31,6 +31,12 @@ export interface GlobalSearchProductResource {
|
|
|
31
31
|
* @memberof GlobalSearchProductResource
|
|
32
32
|
*/
|
|
33
33
|
name: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof GlobalSearchProductResource
|
|
38
|
+
*/
|
|
39
|
+
model: string;
|
|
34
40
|
/**
|
|
35
41
|
*
|
|
36
42
|
* @type {string}
|
|
@@ -87,6 +93,7 @@ export interface GlobalSearchProductResource {
|
|
|
87
93
|
export function instanceOfGlobalSearchProductResource(value: object): value is GlobalSearchProductResource {
|
|
88
94
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
89
95
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
96
|
+
if (!('model' in value) || value['model'] === undefined) return false;
|
|
90
97
|
if (!('slug' in value) || value['slug'] === undefined) return false;
|
|
91
98
|
if (!('sku' in value) || value['sku'] === undefined) return false;
|
|
92
99
|
if (!('thumbnail' in value) || value['thumbnail'] === undefined) return false;
|
|
@@ -110,6 +117,7 @@ export function GlobalSearchProductResourceFromJSONTyped(json: any, ignoreDiscri
|
|
|
110
117
|
|
|
111
118
|
'id': json['id'],
|
|
112
119
|
'name': json['name'],
|
|
120
|
+
'model': json['model'],
|
|
113
121
|
'slug': json['slug'],
|
|
114
122
|
'sku': json['sku'],
|
|
115
123
|
'thumbnail': json['thumbnail'],
|
|
@@ -134,6 +142,7 @@ export function GlobalSearchProductResourceToJSONTyped(value?: GlobalSearchProdu
|
|
|
134
142
|
|
|
135
143
|
'id': value['id'],
|
|
136
144
|
'name': value['name'],
|
|
145
|
+
'model': value['model'],
|
|
137
146
|
'slug': value['slug'],
|
|
138
147
|
'sku': value['sku'],
|
|
139
148
|
'thumbnail': value['thumbnail'],
|
|
@@ -0,0 +1,143 @@
|
|
|
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 IndexDefinitionRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface IndexDefinitionRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof IndexDefinitionRequest
|
|
26
|
+
*/
|
|
27
|
+
search?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof IndexDefinitionRequest
|
|
32
|
+
*/
|
|
33
|
+
sortBy?: IndexDefinitionRequestSortByEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof IndexDefinitionRequest
|
|
38
|
+
*/
|
|
39
|
+
sortDirection?: IndexDefinitionRequestSortDirectionEnum;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof IndexDefinitionRequest
|
|
44
|
+
*/
|
|
45
|
+
perPage?: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof IndexDefinitionRequest
|
|
50
|
+
*/
|
|
51
|
+
page?: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof IndexDefinitionRequest
|
|
56
|
+
*/
|
|
57
|
+
relatedId?: number;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof IndexDefinitionRequest
|
|
62
|
+
*/
|
|
63
|
+
relatedType?: string;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {boolean}
|
|
67
|
+
* @memberof IndexDefinitionRequest
|
|
68
|
+
*/
|
|
69
|
+
includesRelations?: boolean;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @export
|
|
75
|
+
*/
|
|
76
|
+
export const IndexDefinitionRequestSortByEnum = {
|
|
77
|
+
Id: 'id',
|
|
78
|
+
Name: 'name',
|
|
79
|
+
CreatedAt: 'created_at',
|
|
80
|
+
UpdatedAt: 'updated_at'
|
|
81
|
+
} as const;
|
|
82
|
+
export type IndexDefinitionRequestSortByEnum = typeof IndexDefinitionRequestSortByEnum[keyof typeof IndexDefinitionRequestSortByEnum];
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* @export
|
|
86
|
+
*/
|
|
87
|
+
export const IndexDefinitionRequestSortDirectionEnum = {
|
|
88
|
+
Asc: 'asc',
|
|
89
|
+
Desc: 'desc'
|
|
90
|
+
} as const;
|
|
91
|
+
export type IndexDefinitionRequestSortDirectionEnum = typeof IndexDefinitionRequestSortDirectionEnum[keyof typeof IndexDefinitionRequestSortDirectionEnum];
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Check if a given object implements the IndexDefinitionRequest interface.
|
|
96
|
+
*/
|
|
97
|
+
export function instanceOfIndexDefinitionRequest(value: object): value is IndexDefinitionRequest {
|
|
98
|
+
return true;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function IndexDefinitionRequestFromJSON(json: any): IndexDefinitionRequest {
|
|
102
|
+
return IndexDefinitionRequestFromJSONTyped(json, false);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export function IndexDefinitionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexDefinitionRequest {
|
|
106
|
+
if (json == null) {
|
|
107
|
+
return json;
|
|
108
|
+
}
|
|
109
|
+
return {
|
|
110
|
+
|
|
111
|
+
'search': json['search'] == null ? undefined : json['search'],
|
|
112
|
+
'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
|
|
113
|
+
'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
|
|
114
|
+
'perPage': json['per_page'] == null ? undefined : json['per_page'],
|
|
115
|
+
'page': json['page'] == null ? undefined : json['page'],
|
|
116
|
+
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
117
|
+
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
118
|
+
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export function IndexDefinitionRequestToJSON(json: any): IndexDefinitionRequest {
|
|
123
|
+
return IndexDefinitionRequestToJSONTyped(json, false);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export function IndexDefinitionRequestToJSONTyped(value?: IndexDefinitionRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
127
|
+
if (value == null) {
|
|
128
|
+
return value;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
return {
|
|
132
|
+
|
|
133
|
+
'search': value['search'],
|
|
134
|
+
'sortBy': value['sortBy'],
|
|
135
|
+
'sortDirection': value['sortDirection'],
|
|
136
|
+
'per_page': value['perPage'],
|
|
137
|
+
'page': value['page'],
|
|
138
|
+
'related_id': value['relatedId'],
|
|
139
|
+
'related_type': value['relatedType'],
|
|
140
|
+
'includes_relations': value['includesRelations'],
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
|
|
@@ -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
|
+
|
|
@@ -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 { DefinitionListResource } from './DefinitionListResource';
|
|
24
|
+
import {
|
|
25
|
+
DefinitionListResourceFromJSON,
|
|
26
|
+
DefinitionListResourceFromJSONTyped,
|
|
27
|
+
DefinitionListResourceToJSON,
|
|
28
|
+
DefinitionListResourceToJSONTyped,
|
|
29
|
+
} from './DefinitionListResource';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PaginatedDefinitionListResourceResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface PaginatedDefinitionListResourceResponse {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<DefinitionListResource>}
|
|
40
|
+
* @memberof PaginatedDefinitionListResourceResponse
|
|
41
|
+
*/
|
|
42
|
+
data: Array<DefinitionListResource>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {PagingMetadata}
|
|
46
|
+
* @memberof PaginatedDefinitionListResourceResponse
|
|
47
|
+
*/
|
|
48
|
+
meta: PagingMetadata;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the PaginatedDefinitionListResourceResponse interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfPaginatedDefinitionListResourceResponse(value: object): value is PaginatedDefinitionListResourceResponse {
|
|
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 PaginatedDefinitionListResourceResponseFromJSON(json: any): PaginatedDefinitionListResourceResponse {
|
|
61
|
+
return PaginatedDefinitionListResourceResponseFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PaginatedDefinitionListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedDefinitionListResourceResponse {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': ((json['data'] as Array<any>).map(DefinitionListResourceFromJSON)),
|
|
71
|
+
'meta': PagingMetadataFromJSON(json['meta']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PaginatedDefinitionListResourceResponseToJSON(json: any): PaginatedDefinitionListResourceResponse {
|
|
76
|
+
return PaginatedDefinitionListResourceResponseToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PaginatedDefinitionListResourceResponseToJSONTyped(value?: PaginatedDefinitionListResourceResponse | 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(DefinitionListResourceToJSON)),
|
|
87
|
+
'meta': PagingMetadataToJSON(value['meta']),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -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 { DefinitionResource } from './DefinitionResource';
|
|
24
|
+
import {
|
|
25
|
+
DefinitionResourceFromJSON,
|
|
26
|
+
DefinitionResourceFromJSONTyped,
|
|
27
|
+
DefinitionResourceToJSON,
|
|
28
|
+
DefinitionResourceToJSONTyped,
|
|
29
|
+
} from './DefinitionResource';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PaginatedDefinitionResourceResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface PaginatedDefinitionResourceResponse {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<DefinitionResource>}
|
|
40
|
+
* @memberof PaginatedDefinitionResourceResponse
|
|
41
|
+
*/
|
|
42
|
+
data: Array<DefinitionResource>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {PagingMetadata}
|
|
46
|
+
* @memberof PaginatedDefinitionResourceResponse
|
|
47
|
+
*/
|
|
48
|
+
meta: PagingMetadata;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the PaginatedDefinitionResourceResponse interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfPaginatedDefinitionResourceResponse(value: object): value is PaginatedDefinitionResourceResponse {
|
|
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 PaginatedDefinitionResourceResponseFromJSON(json: any): PaginatedDefinitionResourceResponse {
|
|
61
|
+
return PaginatedDefinitionResourceResponseFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PaginatedDefinitionResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedDefinitionResourceResponse {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': ((json['data'] as Array<any>).map(DefinitionResourceFromJSON)),
|
|
71
|
+
'meta': PagingMetadataFromJSON(json['meta']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PaginatedDefinitionResourceResponseToJSON(json: any): PaginatedDefinitionResourceResponse {
|
|
76
|
+
return PaginatedDefinitionResourceResponseToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PaginatedDefinitionResourceResponseToJSONTyped(value?: PaginatedDefinitionResourceResponse | 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(DefinitionResourceToJSON)),
|
|
87
|
+
'meta': PagingMetadataToJSON(value['meta']),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|