@digital8/lighting-illusions-ts-sdk 0.0.613 → 0.0.614

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.
Files changed (65) hide show
  1. package/.openapi-generator/FILES +0 -28
  2. package/README.md +2 -21
  3. package/dist/apis/index.d.ts +0 -1
  4. package/dist/apis/index.js +0 -1
  5. package/dist/models/index.d.ts +0 -13
  6. package/dist/models/index.js +0 -13
  7. package/package.json +1 -1
  8. package/src/apis/index.ts +0 -1
  9. package/src/models/index.ts +0 -13
  10. package/dist/apis/DefinitionApi.d.ts +0 -85
  11. package/dist/apis/DefinitionApi.js +0 -355
  12. package/dist/models/DefinitionListResource.d.ts +0 -44
  13. package/dist/models/DefinitionListResource.js +0 -59
  14. package/dist/models/DefinitionListResourceArrayResponse.d.ts +0 -33
  15. package/dist/models/DefinitionListResourceArrayResponse.js +0 -50
  16. package/dist/models/DefinitionLiteResource.d.ts +0 -38
  17. package/dist/models/DefinitionLiteResource.js +0 -55
  18. package/dist/models/DefinitionLiteResourceArrayResponse.d.ts +0 -33
  19. package/dist/models/DefinitionLiteResourceArrayResponse.js +0 -50
  20. package/dist/models/DefinitionResource.d.ts +0 -44
  21. package/dist/models/DefinitionResource.js +0 -59
  22. package/dist/models/DefinitionResourceArrayResponse.d.ts +0 -33
  23. package/dist/models/DefinitionResourceArrayResponse.js +0 -50
  24. package/dist/models/GetAllDefinitionRequest.d.ts +0 -80
  25. package/dist/models/GetAllDefinitionRequest.js +0 -76
  26. package/dist/models/IndexDefinitionRequest.d.ts +0 -92
  27. package/dist/models/IndexDefinitionRequest.js +0 -80
  28. package/dist/models/PaginatedDefinitionListResourceResponse.d.ts +0 -40
  29. package/dist/models/PaginatedDefinitionListResourceResponse.js +0 -57
  30. package/dist/models/PaginatedDefinitionLiteResourceResponse.d.ts +0 -40
  31. package/dist/models/PaginatedDefinitionLiteResourceResponse.js +0 -57
  32. package/dist/models/PaginatedDefinitionResourceResponse.d.ts +0 -40
  33. package/dist/models/PaginatedDefinitionResourceResponse.js +0 -57
  34. package/dist/models/StoreDefinitionRequest.d.ts +0 -38
  35. package/dist/models/StoreDefinitionRequest.js +0 -55
  36. package/dist/models/UpdateDefinitionRequest.d.ts +0 -38
  37. package/dist/models/UpdateDefinitionRequest.js +0 -55
  38. package/docs/DefinitionApi.md +0 -407
  39. package/docs/DefinitionListResource.md +0 -38
  40. package/docs/DefinitionListResourceArrayResponse.md +0 -34
  41. package/docs/DefinitionLiteResource.md +0 -36
  42. package/docs/DefinitionLiteResourceArrayResponse.md +0 -34
  43. package/docs/DefinitionResource.md +0 -38
  44. package/docs/DefinitionResourceArrayResponse.md +0 -34
  45. package/docs/GetAllDefinitionRequest.md +0 -44
  46. package/docs/IndexDefinitionRequest.md +0 -48
  47. package/docs/PaginatedDefinitionListResourceResponse.md +0 -36
  48. package/docs/PaginatedDefinitionLiteResourceResponse.md +0 -36
  49. package/docs/PaginatedDefinitionResourceResponse.md +0 -36
  50. package/docs/StoreDefinitionRequest.md +0 -36
  51. package/docs/UpdateDefinitionRequest.md +0 -36
  52. package/src/apis/DefinitionApi.ts +0 -286
  53. package/src/models/DefinitionListResource.ts +0 -84
  54. package/src/models/DefinitionListResourceArrayResponse.ts +0 -73
  55. package/src/models/DefinitionLiteResource.ts +0 -75
  56. package/src/models/DefinitionLiteResourceArrayResponse.ts +0 -73
  57. package/src/models/DefinitionResource.ts +0 -84
  58. package/src/models/DefinitionResourceArrayResponse.ts +0 -73
  59. package/src/models/GetAllDefinitionRequest.ts +0 -127
  60. package/src/models/IndexDefinitionRequest.ts +0 -143
  61. package/src/models/PaginatedDefinitionListResourceResponse.ts +0 -90
  62. package/src/models/PaginatedDefinitionLiteResourceResponse.ts +0 -90
  63. package/src/models/PaginatedDefinitionResourceResponse.ts +0 -90
  64. package/src/models/StoreDefinitionRequest.ts +0 -75
  65. package/src/models/UpdateDefinitionRequest.ts +0 -75
@@ -1,75 +0,0 @@
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
-
@@ -1,73 +0,0 @@
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
-
@@ -1,84 +0,0 @@
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
-
@@ -1,73 +0,0 @@
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
-
@@ -1,127 +0,0 @@
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
-
@@ -1,143 +0,0 @@
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
-
@@ -1,90 +0,0 @@
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
-