@digital8/lighting-illusions-ts-sdk 0.0.621 → 0.0.623
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 +22 -16
- package/README.md +18 -10
- 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/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/GetAllDefinitionRequest.d.ts +80 -0
- package/dist/models/GetAllDefinitionRequest.js +76 -0
- package/dist/models/IndexDefinitionRequest.d.ts +92 -0
- package/dist/models/IndexDefinitionRequest.js +80 -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/StoreDefinitionRequest.d.ts +38 -0
- package/dist/models/StoreDefinitionRequest.js +55 -0
- package/dist/models/StoreProductCategoryRequest.d.ts +2 -2
- package/dist/models/UpdateDefinitionRequest.d.ts +38 -0
- package/dist/models/UpdateDefinitionRequest.js +55 -0
- package/dist/models/index.d.ts +10 -8
- package/dist/models/index.js +10 -8
- package/docs/DefinitionApi.md +407 -0
- package/docs/{DocumentFrontendResource.md → DefinitionListResource.md} +4 -6
- package/docs/{ProductCompareResourceArrayResponse.md → DefinitionListResourceArrayResponse.md} +5 -5
- package/docs/{DocumentFrontendResourceArrayResponse.md → DefinitionResource.md} +10 -6
- package/docs/{AssetFrontendResourceArrayResponse.md → DefinitionResourceArrayResponse.md} +5 -5
- package/docs/GetAllDefinitionRequest.md +44 -0
- package/docs/IndexDefinitionRequest.md +48 -0
- package/docs/{OverlayTemplateAssetFrontendResourceArrayResponse.md → PaginatedDefinitionListResourceResponse.md} +7 -5
- package/docs/PaginatedDefinitionResourceResponse.md +36 -0
- package/docs/StoreDefinitionRequest.md +36 -0
- package/docs/StoreProductCategoryRequest.md +1 -1
- 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/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/GetAllDefinitionRequest.ts +127 -0
- package/src/models/IndexDefinitionRequest.ts +143 -0
- package/src/models/PaginatedDefinitionListResourceResponse.ts +90 -0
- package/src/models/PaginatedDefinitionResourceResponse.ts +90 -0
- package/src/models/StoreDefinitionRequest.ts +75 -0
- package/src/models/StoreProductCategoryRequest.ts +2 -2
- package/src/models/UpdateDefinitionRequest.ts +75 -0
- package/src/models/index.ts +10 -8
- package/dist/models/AssetFrontendResource.d.ts +0 -74
- package/dist/models/AssetFrontendResource.js +0 -79
- package/dist/models/AssetFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/AssetFrontendResourceArrayResponse.js +0 -50
- package/dist/models/DocumentFrontendResource.d.ts +0 -44
- package/dist/models/DocumentFrontendResource.js +0 -57
- package/dist/models/DocumentFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/DocumentFrontendResourceArrayResponse.js +0 -50
- package/dist/models/OverlayTemplateAssetFrontendResource.d.ts +0 -62
- package/dist/models/OverlayTemplateAssetFrontendResource.js +0 -71
- package/dist/models/OverlayTemplateAssetFrontendResourceArrayResponse.d.ts +0 -33
- package/dist/models/OverlayTemplateAssetFrontendResourceArrayResponse.js +0 -50
- package/dist/models/ProductCompareResource.d.ts +0 -141
- package/dist/models/ProductCompareResource.js +0 -124
- package/dist/models/ProductCompareResourceArrayResponse.d.ts +0 -33
- package/dist/models/ProductCompareResourceArrayResponse.js +0 -50
- package/docs/AssetFrontendResource.md +0 -48
- package/docs/OverlayTemplateAssetFrontendResource.md +0 -44
- package/docs/ProductCompareResource.md +0 -70
- package/src/models/AssetFrontendResource.ts +0 -129
- package/src/models/AssetFrontendResourceArrayResponse.ts +0 -73
- package/src/models/DocumentFrontendResource.ts +0 -83
- package/src/models/DocumentFrontendResourceArrayResponse.ts +0 -73
- package/src/models/OverlayTemplateAssetFrontendResource.ts +0 -111
- package/src/models/OverlayTemplateAssetFrontendResourceArrayResponse.ts +0 -73
- package/src/models/ProductCompareResource.ts +0 -236
- package/src/models/ProductCompareResourceArrayResponse.ts +0 -73
|
@@ -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 { DefinitionResource } from './DefinitionResource';
|
|
17
|
+
import {
|
|
18
|
+
DefinitionResourceFromJSON,
|
|
19
|
+
DefinitionResourceFromJSONTyped,
|
|
20
|
+
DefinitionResourceToJSON,
|
|
21
|
+
DefinitionResourceToJSONTyped,
|
|
22
|
+
} from './DefinitionResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface DefinitionResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface DefinitionResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<DefinitionResource>}
|
|
33
|
+
* @memberof DefinitionResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<DefinitionResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the DefinitionResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfDefinitionResourceArrayResponse(value: object): value is DefinitionResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function DefinitionResourceArrayResponseFromJSON(json: any): DefinitionResourceArrayResponse {
|
|
46
|
+
return DefinitionResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function DefinitionResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DefinitionResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(DefinitionResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function DefinitionResourceArrayResponseToJSON(json: any): DefinitionResourceArrayResponse {
|
|
60
|
+
return DefinitionResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function DefinitionResourceArrayResponseToJSONTyped(value?: DefinitionResourceArrayResponse | 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(DefinitionResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
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
|
+
|
|
@@ -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
|
+
|
|
@@ -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
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
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 StoreDefinitionRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface StoreDefinitionRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof StoreDefinitionRequest
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof StoreDefinitionRequest
|
|
32
|
+
*/
|
|
33
|
+
content: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the StoreDefinitionRequest interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfStoreDefinitionRequest(value: object): value is StoreDefinitionRequest {
|
|
40
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
41
|
+
if (!('content' in value) || value['content'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function StoreDefinitionRequestFromJSON(json: any): StoreDefinitionRequest {
|
|
46
|
+
return StoreDefinitionRequestFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function StoreDefinitionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreDefinitionRequest {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'name': json['name'],
|
|
56
|
+
'content': json['content'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function StoreDefinitionRequestToJSON(json: any): StoreDefinitionRequest {
|
|
61
|
+
return StoreDefinitionRequestToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function StoreDefinitionRequestToJSONTyped(value?: StoreDefinitionRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'name': value['name'],
|
|
72
|
+
'content': value['content'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
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 UpdateDefinitionRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface UpdateDefinitionRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof UpdateDefinitionRequest
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof UpdateDefinitionRequest
|
|
32
|
+
*/
|
|
33
|
+
content: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the UpdateDefinitionRequest interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfUpdateDefinitionRequest(value: object): value is UpdateDefinitionRequest {
|
|
40
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
41
|
+
if (!('content' in value) || value['content'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function UpdateDefinitionRequestFromJSON(json: any): UpdateDefinitionRequest {
|
|
46
|
+
return UpdateDefinitionRequestFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function UpdateDefinitionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateDefinitionRequest {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'name': json['name'],
|
|
56
|
+
'content': json['content'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function UpdateDefinitionRequestToJSON(json: any): UpdateDefinitionRequest {
|
|
61
|
+
return UpdateDefinitionRequestToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function UpdateDefinitionRequestToJSONTyped(value?: UpdateDefinitionRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'name': value['name'],
|
|
72
|
+
'content': value['content'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|