@digital8/lighting-illusions-ts-sdk 0.0.446 → 0.0.448
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 +24 -0
- package/README.md +18 -2
- package/dist/apis/AttributeApi.d.ts +14 -3
- package/dist/apis/AttributeApi.js +46 -1
- package/dist/apis/ProductTypeApi.d.ts +14 -3
- package/dist/apis/ProductTypeApi.js +46 -1
- package/dist/apis/SiteApi.d.ts +14 -3
- package/dist/apis/SiteApi.js +46 -1
- package/dist/apis/SupplierApi.d.ts +14 -3
- package/dist/apis/SupplierApi.js +46 -1
- package/dist/models/AttributeListResource.d.ts +56 -0
- package/dist/models/AttributeListResource.js +67 -0
- package/dist/models/AttributeListResourceArrayResponse.d.ts +33 -0
- package/dist/models/AttributeListResourceArrayResponse.js +50 -0
- package/dist/models/IndexAttributeRequest.d.ts +8 -1
- package/dist/models/IndexAttributeRequest.js +7 -1
- package/dist/models/IndexSupplierRequest.d.ts +8 -1
- package/dist/models/IndexSupplierRequest.js +7 -1
- package/dist/models/PaginatedAttributeListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedAttributeListResourceResponse.js +57 -0
- package/dist/models/PaginatedProductTypeListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedProductTypeListResourceResponse.js +57 -0
- package/dist/models/PaginatedSiteListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedSiteListResourceResponse.js +57 -0
- package/dist/models/PaginatedSupplierListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedSupplierListResourceResponse.js +57 -0
- package/dist/models/ProductTypeListResource.d.ts +38 -0
- package/dist/models/ProductTypeListResource.js +55 -0
- package/dist/models/ProductTypeListResourceArrayResponse.d.ts +33 -0
- package/dist/models/ProductTypeListResourceArrayResponse.js +50 -0
- package/dist/models/SiteListResource.d.ts +50 -0
- package/dist/models/SiteListResource.js +63 -0
- package/dist/models/SiteListResourceArrayResponse.d.ts +33 -0
- package/dist/models/SiteListResourceArrayResponse.js +50 -0
- package/dist/models/SupplierListResource.d.ts +57 -0
- package/dist/models/SupplierListResource.js +68 -0
- package/dist/models/SupplierListResourceArrayResponse.d.ts +33 -0
- package/dist/models/SupplierListResourceArrayResponse.js +50 -0
- package/dist/models/index.d.ts +12 -0
- package/dist/models/index.js +12 -0
- package/docs/AttributeApi.md +69 -3
- package/docs/AttributeListResource.md +42 -0
- package/docs/AttributeListResourceArrayResponse.md +34 -0
- package/docs/PaginatedAttributeListResourceResponse.md +36 -0
- package/docs/PaginatedProductTypeListResourceResponse.md +36 -0
- package/docs/PaginatedSiteListResourceResponse.md +36 -0
- package/docs/PaginatedSupplierListResourceResponse.md +36 -0
- package/docs/ProductTypeApi.md +69 -3
- package/docs/ProductTypeListResource.md +36 -0
- package/docs/ProductTypeListResourceArrayResponse.md +34 -0
- package/docs/SiteApi.md +69 -3
- package/docs/SiteListResource.md +40 -0
- package/docs/SiteListResourceArrayResponse.md +34 -0
- package/docs/SupplierApi.md +69 -3
- package/docs/SupplierListResource.md +42 -0
- package/docs/SupplierListResourceArrayResponse.md +34 -0
- package/package.json +1 -1
- package/src/apis/AttributeApi.ts +42 -6
- package/src/apis/ProductTypeApi.ts +42 -6
- package/src/apis/SiteApi.ts +42 -6
- package/src/apis/SupplierApi.ts +42 -6
- package/src/models/AttributeListResource.ts +102 -0
- package/src/models/AttributeListResourceArrayResponse.ts +73 -0
- package/src/models/IndexAttributeRequest.ts +9 -1
- package/src/models/IndexSupplierRequest.ts +9 -1
- package/src/models/PaginatedAttributeListResourceResponse.ts +90 -0
- package/src/models/PaginatedProductTypeListResourceResponse.ts +90 -0
- package/src/models/PaginatedSiteListResourceResponse.ts +90 -0
- package/src/models/PaginatedSupplierListResourceResponse.ts +90 -0
- package/src/models/ProductTypeListResource.ts +75 -0
- package/src/models/ProductTypeListResourceArrayResponse.ts +73 -0
- package/src/models/SiteListResource.ts +93 -0
- package/src/models/SiteListResourceArrayResponse.ts +73 -0
- package/src/models/SupplierListResource.ts +110 -0
- package/src/models/SupplierListResourceArrayResponse.ts +73 -0
- package/src/models/index.ts +12 -0
package/src/apis/SupplierApi.ts
CHANGED
|
@@ -18,7 +18,7 @@ import type {
|
|
|
18
18
|
GenericResponse,
|
|
19
19
|
GetAllSupplierRequest,
|
|
20
20
|
IndexSupplierRequest,
|
|
21
|
-
|
|
21
|
+
PaginatedSupplierListResourceResponse,
|
|
22
22
|
StoreSupplierRequest,
|
|
23
23
|
SupplierLiteResourceArrayResponse,
|
|
24
24
|
SupplierResource,
|
|
@@ -31,8 +31,8 @@ import {
|
|
|
31
31
|
GetAllSupplierRequestToJSON,
|
|
32
32
|
IndexSupplierRequestFromJSON,
|
|
33
33
|
IndexSupplierRequestToJSON,
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
PaginatedSupplierListResourceResponseFromJSON,
|
|
35
|
+
PaginatedSupplierListResourceResponseToJSON,
|
|
36
36
|
StoreSupplierRequestFromJSON,
|
|
37
37
|
StoreSupplierRequestToJSON,
|
|
38
38
|
SupplierLiteResourceArrayResponseFromJSON,
|
|
@@ -63,6 +63,10 @@ export interface IndexSupplierOperationRequest {
|
|
|
63
63
|
indexSupplierRequest?: IndexSupplierRequest;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
+
export interface SearchExcludingRelationsSupplierRequest {
|
|
67
|
+
indexSupplierRequest?: IndexSupplierRequest;
|
|
68
|
+
}
|
|
69
|
+
|
|
66
70
|
export interface ShowSupplierRequest {
|
|
67
71
|
supplier: number;
|
|
68
72
|
}
|
|
@@ -242,7 +246,7 @@ export class SupplierApi extends runtime.BaseAPI {
|
|
|
242
246
|
/**
|
|
243
247
|
* Auto-generated: indexSupplier
|
|
244
248
|
*/
|
|
245
|
-
async indexSupplierRaw(requestParameters: IndexSupplierOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
249
|
+
async indexSupplierRaw(requestParameters: IndexSupplierOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedSupplierListResourceResponse>> {
|
|
246
250
|
const queryParameters: any = {};
|
|
247
251
|
|
|
248
252
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -260,17 +264,49 @@ export class SupplierApi extends runtime.BaseAPI {
|
|
|
260
264
|
body: IndexSupplierRequestToJSON(requestParameters['indexSupplierRequest']),
|
|
261
265
|
}, initOverrides);
|
|
262
266
|
|
|
263
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
267
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedSupplierListResourceResponseFromJSON(jsonValue));
|
|
264
268
|
}
|
|
265
269
|
|
|
266
270
|
/**
|
|
267
271
|
* Auto-generated: indexSupplier
|
|
268
272
|
*/
|
|
269
|
-
async indexSupplier(requestParameters: IndexSupplierOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
273
|
+
async indexSupplier(requestParameters: IndexSupplierOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedSupplierListResourceResponse> {
|
|
270
274
|
const response = await this.indexSupplierRaw(requestParameters, initOverrides);
|
|
271
275
|
return await response.value();
|
|
272
276
|
}
|
|
273
277
|
|
|
278
|
+
/**
|
|
279
|
+
* Auto-generated: searchExcludingRelationsSupplier
|
|
280
|
+
*/
|
|
281
|
+
async searchExcludingRelationsSupplierRaw(requestParameters: SearchExcludingRelationsSupplierRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedSupplierListResourceResponse>> {
|
|
282
|
+
const queryParameters: any = {};
|
|
283
|
+
|
|
284
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
285
|
+
|
|
286
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
let urlPath = `/admin-api/supplier/search-excluding-relations`;
|
|
290
|
+
|
|
291
|
+
const response = await this.request({
|
|
292
|
+
path: urlPath,
|
|
293
|
+
method: 'POST',
|
|
294
|
+
headers: headerParameters,
|
|
295
|
+
query: queryParameters,
|
|
296
|
+
body: IndexSupplierRequestToJSON(requestParameters['indexSupplierRequest']),
|
|
297
|
+
}, initOverrides);
|
|
298
|
+
|
|
299
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedSupplierListResourceResponseFromJSON(jsonValue));
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* Auto-generated: searchExcludingRelationsSupplier
|
|
304
|
+
*/
|
|
305
|
+
async searchExcludingRelationsSupplier(requestParameters: SearchExcludingRelationsSupplierRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedSupplierListResourceResponse> {
|
|
306
|
+
const response = await this.searchExcludingRelationsSupplierRaw(requestParameters, initOverrides);
|
|
307
|
+
return await response.value();
|
|
308
|
+
}
|
|
309
|
+
|
|
274
310
|
/**
|
|
275
311
|
* Auto-generated: showSupplier
|
|
276
312
|
*/
|
|
@@ -0,0 +1,102 @@
|
|
|
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 AttributeListResource
|
|
20
|
+
*/
|
|
21
|
+
export interface AttributeListResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof AttributeListResource
|
|
26
|
+
*/
|
|
27
|
+
id: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AttributeListResource
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof AttributeListResource
|
|
38
|
+
*/
|
|
39
|
+
type: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {boolean}
|
|
43
|
+
* @memberof AttributeListResource
|
|
44
|
+
*/
|
|
45
|
+
isFilterable: boolean;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof AttributeListResource
|
|
50
|
+
*/
|
|
51
|
+
filterIndex: number;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the AttributeListResource interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfAttributeListResource(value: object): value is AttributeListResource {
|
|
58
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
59
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
60
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
61
|
+
if (!('isFilterable' in value) || value['isFilterable'] === undefined) return false;
|
|
62
|
+
if (!('filterIndex' in value) || value['filterIndex'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function AttributeListResourceFromJSON(json: any): AttributeListResource {
|
|
67
|
+
return AttributeListResourceFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function AttributeListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttributeListResource {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'id': json['id'],
|
|
77
|
+
'name': json['name'],
|
|
78
|
+
'type': json['type'],
|
|
79
|
+
'isFilterable': json['isFilterable'],
|
|
80
|
+
'filterIndex': json['filterIndex'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function AttributeListResourceToJSON(json: any): AttributeListResource {
|
|
85
|
+
return AttributeListResourceToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function AttributeListResourceToJSONTyped(value?: AttributeListResource | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'id': value['id'],
|
|
96
|
+
'name': value['name'],
|
|
97
|
+
'type': value['type'],
|
|
98
|
+
'isFilterable': value['isFilterable'],
|
|
99
|
+
'filterIndex': value['filterIndex'],
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
@@ -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 { AttributeListResource } from './AttributeListResource';
|
|
17
|
+
import {
|
|
18
|
+
AttributeListResourceFromJSON,
|
|
19
|
+
AttributeListResourceFromJSONTyped,
|
|
20
|
+
AttributeListResourceToJSON,
|
|
21
|
+
AttributeListResourceToJSONTyped,
|
|
22
|
+
} from './AttributeListResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface AttributeListResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface AttributeListResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<AttributeListResource>}
|
|
33
|
+
* @memberof AttributeListResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<AttributeListResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the AttributeListResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfAttributeListResourceArrayResponse(value: object): value is AttributeListResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function AttributeListResourceArrayResponseFromJSON(json: any): AttributeListResourceArrayResponse {
|
|
46
|
+
return AttributeListResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function AttributeListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttributeListResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(AttributeListResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function AttributeListResourceArrayResponseToJSON(json: any): AttributeListResourceArrayResponse {
|
|
60
|
+
return AttributeListResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function AttributeListResourceArrayResponseToJSONTyped(value?: AttributeListResourceArrayResponse | 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(AttributeListResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -78,7 +78,7 @@ export interface IndexAttributeRequest {
|
|
|
78
78
|
* @type {string}
|
|
79
79
|
* @memberof IndexAttributeRequest
|
|
80
80
|
*/
|
|
81
|
-
relatedType?:
|
|
81
|
+
relatedType?: IndexAttributeRequestRelatedTypeEnum;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
|
|
@@ -102,6 +102,14 @@ export const IndexAttributeRequestSortDirectionEnum = {
|
|
|
102
102
|
} as const;
|
|
103
103
|
export type IndexAttributeRequestSortDirectionEnum = typeof IndexAttributeRequestSortDirectionEnum[keyof typeof IndexAttributeRequestSortDirectionEnum];
|
|
104
104
|
|
|
105
|
+
/**
|
|
106
|
+
* @export
|
|
107
|
+
*/
|
|
108
|
+
export const IndexAttributeRequestRelatedTypeEnum = {
|
|
109
|
+
ProductType: 'productType'
|
|
110
|
+
} as const;
|
|
111
|
+
export type IndexAttributeRequestRelatedTypeEnum = typeof IndexAttributeRequestRelatedTypeEnum[keyof typeof IndexAttributeRequestRelatedTypeEnum];
|
|
112
|
+
|
|
105
113
|
|
|
106
114
|
/**
|
|
107
115
|
* Check if a given object implements the IndexAttributeRequest interface.
|
|
@@ -60,7 +60,7 @@ export interface IndexSupplierRequest {
|
|
|
60
60
|
* @type {string}
|
|
61
61
|
* @memberof IndexSupplierRequest
|
|
62
62
|
*/
|
|
63
|
-
relatedType?:
|
|
63
|
+
relatedType?: IndexSupplierRequestRelatedTypeEnum;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
|
|
@@ -86,6 +86,14 @@ export const IndexSupplierRequestSortDirectionEnum = {
|
|
|
86
86
|
} as const;
|
|
87
87
|
export type IndexSupplierRequestSortDirectionEnum = typeof IndexSupplierRequestSortDirectionEnum[keyof typeof IndexSupplierRequestSortDirectionEnum];
|
|
88
88
|
|
|
89
|
+
/**
|
|
90
|
+
* @export
|
|
91
|
+
*/
|
|
92
|
+
export const IndexSupplierRequestRelatedTypeEnum = {
|
|
93
|
+
ProductChild: 'productChild'
|
|
94
|
+
} as const;
|
|
95
|
+
export type IndexSupplierRequestRelatedTypeEnum = typeof IndexSupplierRequestRelatedTypeEnum[keyof typeof IndexSupplierRequestRelatedTypeEnum];
|
|
96
|
+
|
|
89
97
|
|
|
90
98
|
/**
|
|
91
99
|
* Check if a given object implements the IndexSupplierRequest interface.
|
|
@@ -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 { AttributeListResource } from './AttributeListResource';
|
|
24
|
+
import {
|
|
25
|
+
AttributeListResourceFromJSON,
|
|
26
|
+
AttributeListResourceFromJSONTyped,
|
|
27
|
+
AttributeListResourceToJSON,
|
|
28
|
+
AttributeListResourceToJSONTyped,
|
|
29
|
+
} from './AttributeListResource';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PaginatedAttributeListResourceResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface PaginatedAttributeListResourceResponse {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<AttributeListResource>}
|
|
40
|
+
* @memberof PaginatedAttributeListResourceResponse
|
|
41
|
+
*/
|
|
42
|
+
data: Array<AttributeListResource>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {PagingMetadata}
|
|
46
|
+
* @memberof PaginatedAttributeListResourceResponse
|
|
47
|
+
*/
|
|
48
|
+
meta: PagingMetadata;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the PaginatedAttributeListResourceResponse interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfPaginatedAttributeListResourceResponse(value: object): value is PaginatedAttributeListResourceResponse {
|
|
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 PaginatedAttributeListResourceResponseFromJSON(json: any): PaginatedAttributeListResourceResponse {
|
|
61
|
+
return PaginatedAttributeListResourceResponseFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PaginatedAttributeListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedAttributeListResourceResponse {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': ((json['data'] as Array<any>).map(AttributeListResourceFromJSON)),
|
|
71
|
+
'meta': PagingMetadataFromJSON(json['meta']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PaginatedAttributeListResourceResponseToJSON(json: any): PaginatedAttributeListResourceResponse {
|
|
76
|
+
return PaginatedAttributeListResourceResponseToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PaginatedAttributeListResourceResponseToJSONTyped(value?: PaginatedAttributeListResourceResponse | 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(AttributeListResourceToJSON)),
|
|
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 { ProductTypeListResource } from './ProductTypeListResource';
|
|
17
|
+
import {
|
|
18
|
+
ProductTypeListResourceFromJSON,
|
|
19
|
+
ProductTypeListResourceFromJSONTyped,
|
|
20
|
+
ProductTypeListResourceToJSON,
|
|
21
|
+
ProductTypeListResourceToJSONTyped,
|
|
22
|
+
} from './ProductTypeListResource';
|
|
23
|
+
import type { PagingMetadata } from './PagingMetadata';
|
|
24
|
+
import {
|
|
25
|
+
PagingMetadataFromJSON,
|
|
26
|
+
PagingMetadataFromJSONTyped,
|
|
27
|
+
PagingMetadataToJSON,
|
|
28
|
+
PagingMetadataToJSONTyped,
|
|
29
|
+
} from './PagingMetadata';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PaginatedProductTypeListResourceResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface PaginatedProductTypeListResourceResponse {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<ProductTypeListResource>}
|
|
40
|
+
* @memberof PaginatedProductTypeListResourceResponse
|
|
41
|
+
*/
|
|
42
|
+
data: Array<ProductTypeListResource>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {PagingMetadata}
|
|
46
|
+
* @memberof PaginatedProductTypeListResourceResponse
|
|
47
|
+
*/
|
|
48
|
+
meta: PagingMetadata;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the PaginatedProductTypeListResourceResponse interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfPaginatedProductTypeListResourceResponse(value: object): value is PaginatedProductTypeListResourceResponse {
|
|
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 PaginatedProductTypeListResourceResponseFromJSON(json: any): PaginatedProductTypeListResourceResponse {
|
|
61
|
+
return PaginatedProductTypeListResourceResponseFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PaginatedProductTypeListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedProductTypeListResourceResponse {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': ((json['data'] as Array<any>).map(ProductTypeListResourceFromJSON)),
|
|
71
|
+
'meta': PagingMetadataFromJSON(json['meta']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PaginatedProductTypeListResourceResponseToJSON(json: any): PaginatedProductTypeListResourceResponse {
|
|
76
|
+
return PaginatedProductTypeListResourceResponseToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PaginatedProductTypeListResourceResponseToJSONTyped(value?: PaginatedProductTypeListResourceResponse | 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(ProductTypeListResourceToJSON)),
|
|
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 { SiteListResource } from './SiteListResource';
|
|
24
|
+
import {
|
|
25
|
+
SiteListResourceFromJSON,
|
|
26
|
+
SiteListResourceFromJSONTyped,
|
|
27
|
+
SiteListResourceToJSON,
|
|
28
|
+
SiteListResourceToJSONTyped,
|
|
29
|
+
} from './SiteListResource';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PaginatedSiteListResourceResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface PaginatedSiteListResourceResponse {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<SiteListResource>}
|
|
40
|
+
* @memberof PaginatedSiteListResourceResponse
|
|
41
|
+
*/
|
|
42
|
+
data: Array<SiteListResource>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {PagingMetadata}
|
|
46
|
+
* @memberof PaginatedSiteListResourceResponse
|
|
47
|
+
*/
|
|
48
|
+
meta: PagingMetadata;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the PaginatedSiteListResourceResponse interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfPaginatedSiteListResourceResponse(value: object): value is PaginatedSiteListResourceResponse {
|
|
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 PaginatedSiteListResourceResponseFromJSON(json: any): PaginatedSiteListResourceResponse {
|
|
61
|
+
return PaginatedSiteListResourceResponseFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PaginatedSiteListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedSiteListResourceResponse {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': ((json['data'] as Array<any>).map(SiteListResourceFromJSON)),
|
|
71
|
+
'meta': PagingMetadataFromJSON(json['meta']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PaginatedSiteListResourceResponseToJSON(json: any): PaginatedSiteListResourceResponse {
|
|
76
|
+
return PaginatedSiteListResourceResponseToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PaginatedSiteListResourceResponseToJSONTyped(value?: PaginatedSiteListResourceResponse | 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(SiteListResourceToJSON)),
|
|
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 { SupplierListResource } from './SupplierListResource';
|
|
24
|
+
import {
|
|
25
|
+
SupplierListResourceFromJSON,
|
|
26
|
+
SupplierListResourceFromJSONTyped,
|
|
27
|
+
SupplierListResourceToJSON,
|
|
28
|
+
SupplierListResourceToJSONTyped,
|
|
29
|
+
} from './SupplierListResource';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PaginatedSupplierListResourceResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface PaginatedSupplierListResourceResponse {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<SupplierListResource>}
|
|
40
|
+
* @memberof PaginatedSupplierListResourceResponse
|
|
41
|
+
*/
|
|
42
|
+
data: Array<SupplierListResource>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {PagingMetadata}
|
|
46
|
+
* @memberof PaginatedSupplierListResourceResponse
|
|
47
|
+
*/
|
|
48
|
+
meta: PagingMetadata;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the PaginatedSupplierListResourceResponse interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfPaginatedSupplierListResourceResponse(value: object): value is PaginatedSupplierListResourceResponse {
|
|
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 PaginatedSupplierListResourceResponseFromJSON(json: any): PaginatedSupplierListResourceResponse {
|
|
61
|
+
return PaginatedSupplierListResourceResponseFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PaginatedSupplierListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedSupplierListResourceResponse {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': ((json['data'] as Array<any>).map(SupplierListResourceFromJSON)),
|
|
71
|
+
'meta': PagingMetadataFromJSON(json['meta']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PaginatedSupplierListResourceResponseToJSON(json: any): PaginatedSupplierListResourceResponse {
|
|
76
|
+
return PaginatedSupplierListResourceResponseToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PaginatedSupplierListResourceResponseToJSONTyped(value?: PaginatedSupplierListResourceResponse | 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(SupplierListResourceToJSON)),
|
|
87
|
+
'meta': PagingMetadataToJSON(value['meta']),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|