@digital8/security-registers-backend-ts-sdk 0.0.280 → 0.0.282

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 (48) hide show
  1. package/.openapi-generator/FILES +3 -4
  2. package/README.md +2 -2
  3. package/dist/apis/GeneralApi.d.ts +40 -7
  4. package/dist/apis/GeneralApi.js +176 -8
  5. package/dist/models/AddressResource.d.ts +1 -1
  6. package/dist/models/AddressResource.js +3 -1
  7. package/dist/models/IncidentsExportPdfBulkRequest.d.ts +56 -0
  8. package/dist/models/IncidentsExportPdfBulkRequest.js +63 -0
  9. package/dist/models/PdfExportQueuedResource.d.ts +44 -0
  10. package/dist/models/PdfExportQueuedResource.js +59 -0
  11. package/dist/models/PdfExportQueuedResourceArrayResponse.d.ts +33 -0
  12. package/dist/models/PdfExportQueuedResourceArrayResponse.js +50 -0
  13. package/dist/models/RegisterGroupedByRosterResource.d.ts +1 -1
  14. package/dist/models/RegisterGroupedByRosterResource.js +4 -3
  15. package/dist/models/RegisterListResource.d.ts +5 -5
  16. package/dist/models/RegisterListResource.js +6 -7
  17. package/dist/models/RegisterResource.d.ts +2 -2
  18. package/dist/models/RegisterResource.js +8 -8
  19. package/dist/models/RosterLiteResource.d.ts +1 -1
  20. package/dist/models/RosterLiteResource.js +4 -3
  21. package/dist/models/SecurityCompanyResource.d.ts +1 -1
  22. package/dist/models/SecurityCompanyResource.js +3 -1
  23. package/dist/models/index.d.ts +3 -4
  24. package/dist/models/index.js +3 -4
  25. package/package.json +1 -1
  26. package/src/apis/GeneralApi.ts +163 -16
  27. package/src/models/AddressResource.ts +3 -2
  28. package/src/models/IncidentsExportPdfBulkRequest.ts +100 -0
  29. package/src/models/PdfExportQueuedResource.ts +84 -0
  30. package/src/models/PdfExportQueuedResourceArrayResponse.ts +73 -0
  31. package/src/models/RegisterGroupedByRosterResource.ts +4 -3
  32. package/src/models/RegisterListResource.ts +10 -11
  33. package/src/models/RegisterResource.ts +6 -6
  34. package/src/models/RosterLiteResource.ts +4 -3
  35. package/src/models/SecurityCompanyResource.ts +3 -2
  36. package/src/models/index.ts +3 -4
  37. package/dist/models/IncidentListResource.d.ts +0 -89
  38. package/dist/models/IncidentListResource.js +0 -73
  39. package/dist/models/IncidentListResourceArrayResponse.d.ts +0 -33
  40. package/dist/models/IncidentListResourceArrayResponse.js +0 -50
  41. package/dist/models/IncidentsListRequest.d.ts +0 -151
  42. package/dist/models/IncidentsListRequest.js +0 -99
  43. package/dist/models/PaginatedIncidentListResourceResponse.d.ts +0 -40
  44. package/dist/models/PaginatedIncidentListResourceResponse.js +0 -57
  45. package/src/models/IncidentListResource.ts +0 -160
  46. package/src/models/IncidentListResourceArrayResponse.ts +0 -73
  47. package/src/models/IncidentsListRequest.ts +0 -222
  48. package/src/models/PaginatedIncidentListResourceResponse.ts +0 -90
@@ -1,40 +0,0 @@
1
- /**
2
- * My API
3
- * API documentation for my Laravel app
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import type { PagingMetadata } from './PagingMetadata';
13
- import type { IncidentListResource } from './IncidentListResource';
14
- /**
15
- *
16
- * @export
17
- * @interface PaginatedIncidentListResourceResponse
18
- */
19
- export interface PaginatedIncidentListResourceResponse {
20
- /**
21
- *
22
- * @type {Array<IncidentListResource>}
23
- * @memberof PaginatedIncidentListResourceResponse
24
- */
25
- data: Array<IncidentListResource>;
26
- /**
27
- *
28
- * @type {PagingMetadata}
29
- * @memberof PaginatedIncidentListResourceResponse
30
- */
31
- meta: PagingMetadata;
32
- }
33
- /**
34
- * Check if a given object implements the PaginatedIncidentListResourceResponse interface.
35
- */
36
- export declare function instanceOfPaginatedIncidentListResourceResponse(value: object): value is PaginatedIncidentListResourceResponse;
37
- export declare function PaginatedIncidentListResourceResponseFromJSON(json: any): PaginatedIncidentListResourceResponse;
38
- export declare function PaginatedIncidentListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedIncidentListResourceResponse;
39
- export declare function PaginatedIncidentListResourceResponseToJSON(json: any): PaginatedIncidentListResourceResponse;
40
- export declare function PaginatedIncidentListResourceResponseToJSONTyped(value?: PaginatedIncidentListResourceResponse | null, ignoreDiscriminator?: boolean): any;
@@ -1,57 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * My API
6
- * API documentation for my Laravel app
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.instanceOfPaginatedIncidentListResourceResponse = instanceOfPaginatedIncidentListResourceResponse;
17
- exports.PaginatedIncidentListResourceResponseFromJSON = PaginatedIncidentListResourceResponseFromJSON;
18
- exports.PaginatedIncidentListResourceResponseFromJSONTyped = PaginatedIncidentListResourceResponseFromJSONTyped;
19
- exports.PaginatedIncidentListResourceResponseToJSON = PaginatedIncidentListResourceResponseToJSON;
20
- exports.PaginatedIncidentListResourceResponseToJSONTyped = PaginatedIncidentListResourceResponseToJSONTyped;
21
- var PagingMetadata_1 = require("./PagingMetadata");
22
- var IncidentListResource_1 = require("./IncidentListResource");
23
- /**
24
- * Check if a given object implements the PaginatedIncidentListResourceResponse interface.
25
- */
26
- function instanceOfPaginatedIncidentListResourceResponse(value) {
27
- if (!('data' in value) || value['data'] === undefined)
28
- return false;
29
- if (!('meta' in value) || value['meta'] === undefined)
30
- return false;
31
- return true;
32
- }
33
- function PaginatedIncidentListResourceResponseFromJSON(json) {
34
- return PaginatedIncidentListResourceResponseFromJSONTyped(json, false);
35
- }
36
- function PaginatedIncidentListResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
37
- if (json == null) {
38
- return json;
39
- }
40
- return {
41
- 'data': (json['data'].map(IncidentListResource_1.IncidentListResourceFromJSON)),
42
- 'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
43
- };
44
- }
45
- function PaginatedIncidentListResourceResponseToJSON(json) {
46
- return PaginatedIncidentListResourceResponseToJSONTyped(json, false);
47
- }
48
- function PaginatedIncidentListResourceResponseToJSONTyped(value, ignoreDiscriminator) {
49
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
50
- if (value == null) {
51
- return value;
52
- }
53
- return {
54
- 'data': (value['data'].map(IncidentListResource_1.IncidentListResourceToJSON)),
55
- 'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
56
- };
57
- }
@@ -1,160 +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 { VenueLiteResource } from './VenueLiteResource';
17
- import {
18
- VenueLiteResourceFromJSON,
19
- VenueLiteResourceFromJSONTyped,
20
- VenueLiteResourceToJSON,
21
- VenueLiteResourceToJSONTyped,
22
- } from './VenueLiteResource';
23
- import type { SecurityCompanyLiteResource } from './SecurityCompanyLiteResource';
24
- import {
25
- SecurityCompanyLiteResourceFromJSON,
26
- SecurityCompanyLiteResourceFromJSONTyped,
27
- SecurityCompanyLiteResourceToJSON,
28
- SecurityCompanyLiteResourceToJSONTyped,
29
- } from './SecurityCompanyLiteResource';
30
- import type { UserLiteResource } from './UserLiteResource';
31
- import {
32
- UserLiteResourceFromJSON,
33
- UserLiteResourceFromJSONTyped,
34
- UserLiteResourceToJSON,
35
- UserLiteResourceToJSONTyped,
36
- } from './UserLiteResource';
37
-
38
- /**
39
- *
40
- * @export
41
- * @interface IncidentListResource
42
- */
43
- export interface IncidentListResource {
44
- /**
45
- *
46
- * @type {number}
47
- * @memberof IncidentListResource
48
- */
49
- id: number;
50
- /**
51
- *
52
- * @type {VenueLiteResource}
53
- * @memberof IncidentListResource
54
- */
55
- venue?: VenueLiteResource;
56
- /**
57
- *
58
- * @type {SecurityCompanyLiteResource}
59
- * @memberof IncidentListResource
60
- */
61
- securityCompany?: SecurityCompanyLiteResource;
62
- /**
63
- *
64
- * @type {UserLiteResource}
65
- * @memberof IncidentListResource
66
- */
67
- user?: UserLiteResource;
68
- /**
69
- *
70
- * @type {UserLiteResource}
71
- * @memberof IncidentListResource
72
- */
73
- approvedByUser?: UserLiteResource;
74
- /**
75
- *
76
- * @type {string}
77
- * @memberof IncidentListResource
78
- */
79
- title?: string | null;
80
- /**
81
- *
82
- * @type {Date}
83
- * @memberof IncidentListResource
84
- */
85
- incidentDateTime?: Date | null;
86
- /**
87
- *
88
- * @type {string}
89
- * @memberof IncidentListResource
90
- */
91
- state?: string | null;
92
- /**
93
- *
94
- * @type {Date}
95
- * @memberof IncidentListResource
96
- */
97
- approvedAt?: Date | null;
98
- /**
99
- *
100
- * @type {Date}
101
- * @memberof IncidentListResource
102
- */
103
- createdAt?: Date | null;
104
- }
105
-
106
- /**
107
- * Check if a given object implements the IncidentListResource interface.
108
- */
109
- export function instanceOfIncidentListResource(value: object): value is IncidentListResource {
110
- if (!('id' in value) || value['id'] === undefined) return false;
111
- return true;
112
- }
113
-
114
- export function IncidentListResourceFromJSON(json: any): IncidentListResource {
115
- return IncidentListResourceFromJSONTyped(json, false);
116
- }
117
-
118
- export function IncidentListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentListResource {
119
- if (json == null) {
120
- return json;
121
- }
122
- return {
123
-
124
- 'id': json['id'],
125
- 'venue': json['venue'] == null ? undefined : VenueLiteResourceFromJSON(json['venue']),
126
- 'securityCompany': json['securityCompany'] == null ? undefined : SecurityCompanyLiteResourceFromJSON(json['securityCompany']),
127
- 'user': json['user'] == null ? undefined : UserLiteResourceFromJSON(json['user']),
128
- 'approvedByUser': json['approvedByUser'] == null ? undefined : UserLiteResourceFromJSON(json['approvedByUser']),
129
- 'title': json['title'] == null ? undefined : json['title'],
130
- 'incidentDateTime': json['incidentDateTime'] == null ? undefined : (new Date(json['incidentDateTime'])),
131
- 'state': json['state'] == null ? undefined : json['state'],
132
- 'approvedAt': json['approvedAt'] == null ? undefined : (new Date(json['approvedAt'])),
133
- 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
134
- };
135
- }
136
-
137
- export function IncidentListResourceToJSON(json: any): IncidentListResource {
138
- return IncidentListResourceToJSONTyped(json, false);
139
- }
140
-
141
- export function IncidentListResourceToJSONTyped(value?: IncidentListResource | null, ignoreDiscriminator: boolean = false): any {
142
- if (value == null) {
143
- return value;
144
- }
145
-
146
- return {
147
-
148
- 'id': value['id'],
149
- 'venue': VenueLiteResourceToJSON(value['venue']),
150
- 'securityCompany': SecurityCompanyLiteResourceToJSON(value['securityCompany']),
151
- 'user': UserLiteResourceToJSON(value['user']),
152
- 'approvedByUser': UserLiteResourceToJSON(value['approvedByUser']),
153
- 'title': value['title'],
154
- 'incidentDateTime': value['incidentDateTime'] === null ? null : ((value['incidentDateTime'] as any)?.toISOString()),
155
- 'state': value['state'],
156
- 'approvedAt': value['approvedAt'] === null ? null : ((value['approvedAt'] as any)?.toISOString()),
157
- 'createdAt': value['createdAt'] === null ? null : ((value['createdAt'] as any)?.toISOString()),
158
- };
159
- }
160
-
@@ -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 { IncidentListResource } from './IncidentListResource';
17
- import {
18
- IncidentListResourceFromJSON,
19
- IncidentListResourceFromJSONTyped,
20
- IncidentListResourceToJSON,
21
- IncidentListResourceToJSONTyped,
22
- } from './IncidentListResource';
23
-
24
- /**
25
- *
26
- * @export
27
- * @interface IncidentListResourceArrayResponse
28
- */
29
- export interface IncidentListResourceArrayResponse {
30
- /**
31
- *
32
- * @type {Array<IncidentListResource>}
33
- * @memberof IncidentListResourceArrayResponse
34
- */
35
- data?: Array<IncidentListResource>;
36
- }
37
-
38
- /**
39
- * Check if a given object implements the IncidentListResourceArrayResponse interface.
40
- */
41
- export function instanceOfIncidentListResourceArrayResponse(value: object): value is IncidentListResourceArrayResponse {
42
- return true;
43
- }
44
-
45
- export function IncidentListResourceArrayResponseFromJSON(json: any): IncidentListResourceArrayResponse {
46
- return IncidentListResourceArrayResponseFromJSONTyped(json, false);
47
- }
48
-
49
- export function IncidentListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentListResourceArrayResponse {
50
- if (json == null) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(IncidentListResourceFromJSON)),
56
- };
57
- }
58
-
59
- export function IncidentListResourceArrayResponseToJSON(json: any): IncidentListResourceArrayResponse {
60
- return IncidentListResourceArrayResponseToJSONTyped(json, false);
61
- }
62
-
63
- export function IncidentListResourceArrayResponseToJSONTyped(value?: IncidentListResourceArrayResponse | 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(IncidentListResourceToJSON)),
71
- };
72
- }
73
-
@@ -1,222 +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 IncidentsListRequest
20
- */
21
- export interface IncidentsListRequest {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof IncidentsListRequest
26
- */
27
- search?: string;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof IncidentsListRequest
32
- */
33
- sortBy?: IncidentsListRequestSortByEnum;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof IncidentsListRequest
38
- */
39
- sortDirection?: IncidentsListRequestSortDirectionEnum;
40
- /**
41
- *
42
- * @type {number}
43
- * @memberof IncidentsListRequest
44
- */
45
- perPage?: number;
46
- /**
47
- *
48
- * @type {string}
49
- * @memberof IncidentsListRequest
50
- */
51
- page?: string;
52
- /**
53
- *
54
- * @type {Array<string>}
55
- * @memberof IncidentsListRequest
56
- */
57
- venueId?: Array<string>;
58
- /**
59
- *
60
- * @type {Array<string>}
61
- * @memberof IncidentsListRequest
62
- */
63
- securityCompanyId?: Array<string>;
64
- /**
65
- *
66
- * @type {Array<string>}
67
- * @memberof IncidentsListRequest
68
- */
69
- rosterId?: Array<string>;
70
- /**
71
- *
72
- * @type {Array<string>}
73
- * @memberof IncidentsListRequest
74
- */
75
- userId?: Array<string>;
76
- /**
77
- *
78
- * @type {Array<string>}
79
- * @memberof IncidentsListRequest
80
- */
81
- approvedByUserId?: Array<string>;
82
- /**
83
- *
84
- * @type {Array<string>}
85
- * @memberof IncidentsListRequest
86
- */
87
- hasApprovedAt?: Array<string>;
88
- /**
89
- *
90
- * @type {Date}
91
- * @memberof IncidentsListRequest
92
- */
93
- beforeApprovedAt?: Date;
94
- /**
95
- *
96
- * @type {Date}
97
- * @memberof IncidentsListRequest
98
- */
99
- afterApprovedAt?: Date;
100
- /**
101
- *
102
- * @type {Date}
103
- * @memberof IncidentsListRequest
104
- */
105
- beforeCreatedAt?: Date;
106
- /**
107
- *
108
- * @type {Date}
109
- * @memberof IncidentsListRequest
110
- */
111
- afterCreatedAt?: Date;
112
- /**
113
- *
114
- * @type {number}
115
- * @memberof IncidentsListRequest
116
- */
117
- relatedId?: number;
118
- /**
119
- *
120
- * @type {string}
121
- * @memberof IncidentsListRequest
122
- */
123
- relatedType?: string;
124
- /**
125
- *
126
- * @type {boolean}
127
- * @memberof IncidentsListRequest
128
- */
129
- includesRelations?: boolean;
130
- }
131
-
132
-
133
- /**
134
- * @export
135
- */
136
- export const IncidentsListRequestSortByEnum = {
137
- Id: 'id',
138
- CreatedAt: 'created_at',
139
- ApprovedAt: 'approved_at'
140
- } as const;
141
- export type IncidentsListRequestSortByEnum = typeof IncidentsListRequestSortByEnum[keyof typeof IncidentsListRequestSortByEnum];
142
-
143
- /**
144
- * @export
145
- */
146
- export const IncidentsListRequestSortDirectionEnum = {
147
- Asc: 'asc',
148
- Desc: 'desc'
149
- } as const;
150
- export type IncidentsListRequestSortDirectionEnum = typeof IncidentsListRequestSortDirectionEnum[keyof typeof IncidentsListRequestSortDirectionEnum];
151
-
152
-
153
- /**
154
- * Check if a given object implements the IncidentsListRequest interface.
155
- */
156
- export function instanceOfIncidentsListRequest(value: object): value is IncidentsListRequest {
157
- return true;
158
- }
159
-
160
- export function IncidentsListRequestFromJSON(json: any): IncidentsListRequest {
161
- return IncidentsListRequestFromJSONTyped(json, false);
162
- }
163
-
164
- export function IncidentsListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentsListRequest {
165
- if (json == null) {
166
- return json;
167
- }
168
- return {
169
-
170
- 'search': json['search'] == null ? undefined : json['search'],
171
- 'sortBy': json['sort_by'] == null ? undefined : json['sort_by'],
172
- 'sortDirection': json['sort_direction'] == null ? undefined : json['sort_direction'],
173
- 'perPage': json['per_page'] == null ? undefined : json['per_page'],
174
- 'page': json['page'] == null ? undefined : json['page'],
175
- 'venueId': json['venue_id'] == null ? undefined : json['venue_id'],
176
- 'securityCompanyId': json['security_company_id'] == null ? undefined : json['security_company_id'],
177
- 'rosterId': json['roster_id'] == null ? undefined : json['roster_id'],
178
- 'userId': json['user_id'] == null ? undefined : json['user_id'],
179
- 'approvedByUserId': json['approved_by_user_id'] == null ? undefined : json['approved_by_user_id'],
180
- 'hasApprovedAt': json['has_approved_at'] == null ? undefined : json['has_approved_at'],
181
- 'beforeApprovedAt': json['before_approved_at'] == null ? undefined : (new Date(json['before_approved_at'])),
182
- 'afterApprovedAt': json['after_approved_at'] == null ? undefined : (new Date(json['after_approved_at'])),
183
- 'beforeCreatedAt': json['before_created_at'] == null ? undefined : (new Date(json['before_created_at'])),
184
- 'afterCreatedAt': json['after_created_at'] == null ? undefined : (new Date(json['after_created_at'])),
185
- 'relatedId': json['related_id'] == null ? undefined : json['related_id'],
186
- 'relatedType': json['related_type'] == null ? undefined : json['related_type'],
187
- 'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
188
- };
189
- }
190
-
191
- export function IncidentsListRequestToJSON(json: any): IncidentsListRequest {
192
- return IncidentsListRequestToJSONTyped(json, false);
193
- }
194
-
195
- export function IncidentsListRequestToJSONTyped(value?: IncidentsListRequest | null, ignoreDiscriminator: boolean = false): any {
196
- if (value == null) {
197
- return value;
198
- }
199
-
200
- return {
201
-
202
- 'search': value['search'],
203
- 'sort_by': value['sortBy'],
204
- 'sort_direction': value['sortDirection'],
205
- 'per_page': value['perPage'],
206
- 'page': value['page'],
207
- 'venue_id': value['venueId'],
208
- 'security_company_id': value['securityCompanyId'],
209
- 'roster_id': value['rosterId'],
210
- 'user_id': value['userId'],
211
- 'approved_by_user_id': value['approvedByUserId'],
212
- 'has_approved_at': value['hasApprovedAt'],
213
- 'before_approved_at': value['beforeApprovedAt'] == null ? undefined : ((value['beforeApprovedAt']).toISOString()),
214
- 'after_approved_at': value['afterApprovedAt'] == null ? undefined : ((value['afterApprovedAt']).toISOString()),
215
- 'before_created_at': value['beforeCreatedAt'] == null ? undefined : ((value['beforeCreatedAt']).toISOString()),
216
- 'after_created_at': value['afterCreatedAt'] == null ? undefined : ((value['afterCreatedAt']).toISOString()),
217
- 'related_id': value['relatedId'],
218
- 'related_type': value['relatedType'],
219
- 'includes_relations': value['includesRelations'],
220
- };
221
- }
222
-
@@ -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 { IncidentListResource } from './IncidentListResource';
24
- import {
25
- IncidentListResourceFromJSON,
26
- IncidentListResourceFromJSONTyped,
27
- IncidentListResourceToJSON,
28
- IncidentListResourceToJSONTyped,
29
- } from './IncidentListResource';
30
-
31
- /**
32
- *
33
- * @export
34
- * @interface PaginatedIncidentListResourceResponse
35
- */
36
- export interface PaginatedIncidentListResourceResponse {
37
- /**
38
- *
39
- * @type {Array<IncidentListResource>}
40
- * @memberof PaginatedIncidentListResourceResponse
41
- */
42
- data: Array<IncidentListResource>;
43
- /**
44
- *
45
- * @type {PagingMetadata}
46
- * @memberof PaginatedIncidentListResourceResponse
47
- */
48
- meta: PagingMetadata;
49
- }
50
-
51
- /**
52
- * Check if a given object implements the PaginatedIncidentListResourceResponse interface.
53
- */
54
- export function instanceOfPaginatedIncidentListResourceResponse(value: object): value is PaginatedIncidentListResourceResponse {
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 PaginatedIncidentListResourceResponseFromJSON(json: any): PaginatedIncidentListResourceResponse {
61
- return PaginatedIncidentListResourceResponseFromJSONTyped(json, false);
62
- }
63
-
64
- export function PaginatedIncidentListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedIncidentListResourceResponse {
65
- if (json == null) {
66
- return json;
67
- }
68
- return {
69
-
70
- 'data': ((json['data'] as Array<any>).map(IncidentListResourceFromJSON)),
71
- 'meta': PagingMetadataFromJSON(json['meta']),
72
- };
73
- }
74
-
75
- export function PaginatedIncidentListResourceResponseToJSON(json: any): PaginatedIncidentListResourceResponse {
76
- return PaginatedIncidentListResourceResponseToJSONTyped(json, false);
77
- }
78
-
79
- export function PaginatedIncidentListResourceResponseToJSONTyped(value?: PaginatedIncidentListResourceResponse | 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(IncidentListResourceToJSON)),
87
- 'meta': PagingMetadataToJSON(value['meta']),
88
- };
89
- }
90
-