@digital8/lighting-illusions-ts-sdk 0.0.616 → 0.0.618
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 +28 -16
- package/README.md +21 -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 +44 -0
- package/dist/models/DefinitionListResource.js +59 -0
- package/dist/models/DefinitionListResourceArrayResponse.d.ts +33 -0
- package/dist/models/DefinitionListResourceArrayResponse.js +50 -0
- package/dist/models/DefinitionLiteResource.d.ts +38 -0
- package/dist/models/DefinitionLiteResource.js +55 -0
- package/dist/models/DefinitionLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/DefinitionLiteResourceArrayResponse.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 +3 -1
- 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/PaginatedDefinitionLiteResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedDefinitionLiteResourceResponse.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 +13 -8
- package/dist/models/index.js +13 -8
- package/docs/DefinitionApi.md +407 -0
- package/docs/{DocumentFrontendResource.md → DefinitionListResource.md} +6 -6
- package/docs/{ProductCompareResourceArrayResponse.md → DefinitionListResourceArrayResponse.md} +5 -5
- package/docs/DefinitionLiteResource.md +36 -0
- package/docs/{DocumentFrontendResourceArrayResponse.md → DefinitionLiteResourceArrayResponse.md} +5 -5
- package/docs/DefinitionResource.md +38 -0
- 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/PaginatedDefinitionLiteResourceResponse.md +36 -0
- 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 +84 -0
- package/src/models/DefinitionListResourceArrayResponse.ts +73 -0
- package/src/models/DefinitionLiteResource.ts +75 -0
- package/src/models/DefinitionLiteResourceArrayResponse.ts +73 -0
- package/src/models/DefinitionResource.ts +84 -0
- package/src/models/DefinitionResourceArrayResponse.ts +73 -0
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/GetAllDefinitionRequest.ts +127 -0
- package/src/models/IndexDefinitionRequest.ts +143 -0
- package/src/models/PaginatedDefinitionListResourceResponse.ts +90 -0
- package/src/models/PaginatedDefinitionLiteResourceResponse.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 +13 -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 { DefinitionListResource } from './DefinitionListResource';
|
|
17
|
+
import {
|
|
18
|
+
DefinitionListResourceFromJSON,
|
|
19
|
+
DefinitionListResourceFromJSONTyped,
|
|
20
|
+
DefinitionListResourceToJSON,
|
|
21
|
+
DefinitionListResourceToJSONTyped,
|
|
22
|
+
} from './DefinitionListResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface DefinitionListResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface DefinitionListResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<DefinitionListResource>}
|
|
33
|
+
* @memberof DefinitionListResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<DefinitionListResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the DefinitionListResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfDefinitionListResourceArrayResponse(value: object): value is DefinitionListResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function DefinitionListResourceArrayResponseFromJSON(json: any): DefinitionListResourceArrayResponse {
|
|
46
|
+
return DefinitionListResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function DefinitionListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DefinitionListResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(DefinitionListResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function DefinitionListResourceArrayResponseToJSON(json: any): DefinitionListResourceArrayResponse {
|
|
60
|
+
return DefinitionListResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function DefinitionListResourceArrayResponseToJSONTyped(value?: DefinitionListResourceArrayResponse | 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(DefinitionListResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -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 DefinitionLiteResource
|
|
20
|
+
*/
|
|
21
|
+
export interface DefinitionLiteResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof DefinitionLiteResource
|
|
26
|
+
*/
|
|
27
|
+
id: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof DefinitionLiteResource
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the DefinitionLiteResource interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfDefinitionLiteResource(value: object): value is DefinitionLiteResource {
|
|
40
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
41
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function DefinitionLiteResourceFromJSON(json: any): DefinitionLiteResource {
|
|
46
|
+
return DefinitionLiteResourceFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function DefinitionLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): DefinitionLiteResource {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'id': json['id'],
|
|
56
|
+
'name': json['name'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function DefinitionLiteResourceToJSON(json: any): DefinitionLiteResource {
|
|
61
|
+
return DefinitionLiteResourceToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function DefinitionLiteResourceToJSONTyped(value?: DefinitionLiteResource | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'id': value['id'],
|
|
72
|
+
'name': value['name'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -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 { DefinitionLiteResource } from './DefinitionLiteResource';
|
|
17
|
+
import {
|
|
18
|
+
DefinitionLiteResourceFromJSON,
|
|
19
|
+
DefinitionLiteResourceFromJSONTyped,
|
|
20
|
+
DefinitionLiteResourceToJSON,
|
|
21
|
+
DefinitionLiteResourceToJSONTyped,
|
|
22
|
+
} from './DefinitionLiteResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface DefinitionLiteResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface DefinitionLiteResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<DefinitionLiteResource>}
|
|
33
|
+
* @memberof DefinitionLiteResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<DefinitionLiteResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the DefinitionLiteResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfDefinitionLiteResourceArrayResponse(value: object): value is DefinitionLiteResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function DefinitionLiteResourceArrayResponseFromJSON(json: any): DefinitionLiteResourceArrayResponse {
|
|
46
|
+
return DefinitionLiteResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function DefinitionLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DefinitionLiteResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(DefinitionLiteResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function DefinitionLiteResourceArrayResponseToJSON(json: any): DefinitionLiteResourceArrayResponse {
|
|
60
|
+
return DefinitionLiteResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function DefinitionLiteResourceArrayResponseToJSONTyped(value?: DefinitionLiteResourceArrayResponse | 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(DefinitionLiteResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
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 DefinitionResource
|
|
20
|
+
*/
|
|
21
|
+
export interface DefinitionResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof DefinitionResource
|
|
26
|
+
*/
|
|
27
|
+
id: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof DefinitionResource
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof DefinitionResource
|
|
38
|
+
*/
|
|
39
|
+
content: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the DefinitionResource interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfDefinitionResource(value: object): value is DefinitionResource {
|
|
46
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
47
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
48
|
+
if (!('content' in value) || value['content'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function DefinitionResourceFromJSON(json: any): DefinitionResource {
|
|
53
|
+
return DefinitionResourceFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function DefinitionResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): DefinitionResource {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'id': json['id'],
|
|
63
|
+
'name': json['name'],
|
|
64
|
+
'content': json['content'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function DefinitionResourceToJSON(json: any): DefinitionResource {
|
|
69
|
+
return DefinitionResourceToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function DefinitionResourceToJSONTyped(value?: DefinitionResource | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'id': value['id'],
|
|
80
|
+
'name': value['name'],
|
|
81
|
+
'content': value['content'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -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
|
+
|
|
@@ -74,7 +74,7 @@ export interface ExternalApiLogResource {
|
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof ExternalApiLogResource
|
|
76
76
|
*/
|
|
77
|
-
requestPayload
|
|
77
|
+
requestPayload: string;
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
80
80
|
* @type {string}
|
|
@@ -106,6 +106,7 @@ export function instanceOfExternalApiLogResource(value: object): value is Extern
|
|
|
106
106
|
if (!('exteranlApiLoggableId' in value) || value['exteranlApiLoggableId'] === undefined) return false;
|
|
107
107
|
if (!('endpoint' in value) || value['endpoint'] === undefined) return false;
|
|
108
108
|
if (!('responseCode' in value) || value['responseCode'] === undefined) return false;
|
|
109
|
+
if (!('requestPayload' in value) || value['requestPayload'] === undefined) return false;
|
|
109
110
|
if (!('responsePayload' in value) || value['responsePayload'] === undefined) return false;
|
|
110
111
|
if (!('site' in value) || value['site'] === undefined) return false;
|
|
111
112
|
return true;
|
|
@@ -128,7 +129,7 @@ export function ExternalApiLogResourceFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
128
129
|
'exteranlApiLoggableId': json['exteranlApiLoggableId'],
|
|
129
130
|
'endpoint': json['endpoint'],
|
|
130
131
|
'responseCode': json['responseCode'],
|
|
131
|
-
'requestPayload': json['requestPayload']
|
|
132
|
+
'requestPayload': json['requestPayload'],
|
|
132
133
|
'responsePayload': json['responsePayload'],
|
|
133
134
|
'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
|
|
134
135
|
'site': SiteLiteResourceFromJSON(json['site']),
|
|
@@ -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
|
+
|