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

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 (45) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +2 -2
  3. package/dist/apis/GeneralApi.d.ts +12 -1
  4. package/dist/apis/GeneralApi.js +55 -0
  5. package/dist/models/AssetLiteResource.d.ts +0 -12
  6. package/dist/models/AssetLiteResource.js +0 -6
  7. package/dist/models/AssetResource.d.ts +1 -13
  8. package/dist/models/AssetResource.js +3 -7
  9. package/dist/models/IncidentListResource.d.ts +89 -0
  10. package/dist/models/IncidentListResource.js +73 -0
  11. package/dist/models/IncidentListResourceArrayResponse.d.ts +33 -0
  12. package/dist/models/IncidentListResourceArrayResponse.js +50 -0
  13. package/dist/models/IncidentsListRequest.d.ts +151 -0
  14. package/dist/models/IncidentsListRequest.js +99 -0
  15. package/dist/models/PaginatedIncidentListResourceResponse.d.ts +40 -0
  16. package/dist/models/PaginatedIncidentListResourceResponse.js +57 -0
  17. package/dist/models/RegisterGroupedByRosterResource.d.ts +1 -1
  18. package/dist/models/RegisterGroupedByRosterResource.js +3 -4
  19. package/dist/models/RegisterListResource.d.ts +5 -5
  20. package/dist/models/RegisterListResource.js +6 -9
  21. package/dist/models/RegisterResource.d.ts +0 -12
  22. package/dist/models/RegisterResource.js +0 -8
  23. package/dist/models/RosterLiteResource.d.ts +1 -1
  24. package/dist/models/RosterLiteResource.js +3 -4
  25. package/dist/models/RosterWithRegistersResource.d.ts +1 -1
  26. package/dist/models/RosterWithRegistersResource.js +3 -4
  27. package/dist/models/SecurityCompanyResource.d.ts +1 -1
  28. package/dist/models/SecurityCompanyResource.js +1 -3
  29. package/dist/models/index.d.ts +4 -0
  30. package/dist/models/index.js +4 -0
  31. package/package.json +1 -1
  32. package/src/apis/GeneralApi.ts +50 -0
  33. package/src/models/AssetLiteResource.ts +0 -17
  34. package/src/models/AssetResource.ts +3 -19
  35. package/src/models/IncidentListResource.ts +160 -0
  36. package/src/models/IncidentListResourceArrayResponse.ts +73 -0
  37. package/src/models/IncidentsListRequest.ts +222 -0
  38. package/src/models/PaginatedIncidentListResourceResponse.ts +90 -0
  39. package/src/models/RegisterGroupedByRosterResource.ts +3 -4
  40. package/src/models/RegisterListResource.ts +10 -11
  41. package/src/models/RegisterResource.ts +0 -18
  42. package/src/models/RosterLiteResource.ts +3 -4
  43. package/src/models/RosterWithRegistersResource.ts +3 -4
  44. package/src/models/SecurityCompanyResource.ts +2 -3
  45. package/src/models/index.ts +4 -0
@@ -31,18 +31,6 @@ export interface AssetLiteResource {
31
31
  * @memberof AssetLiteResource
32
32
  */
33
33
  filePath: string;
34
- /**
35
- *
36
- * @type {boolean}
37
- * @memberof AssetLiteResource
38
- */
39
- isExternal: boolean;
40
- /**
41
- *
42
- * @type {string}
43
- * @memberof AssetLiteResource
44
- */
45
- externalUrl?: string | null;
46
34
  }
47
35
 
48
36
  /**
@@ -51,7 +39,6 @@ export interface AssetLiteResource {
51
39
  export function instanceOfAssetLiteResource(value: object): value is AssetLiteResource {
52
40
  if (!('id' in value) || value['id'] === undefined) return false;
53
41
  if (!('filePath' in value) || value['filePath'] === undefined) return false;
54
- if (!('isExternal' in value) || value['isExternal'] === undefined) return false;
55
42
  return true;
56
43
  }
57
44
 
@@ -67,8 +54,6 @@ export function AssetLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: b
67
54
 
68
55
  'id': json['id'],
69
56
  'filePath': json['filePath'],
70
- 'isExternal': json['isExternal'],
71
- 'externalUrl': json['externalUrl'] == null ? undefined : json['externalUrl'],
72
57
  };
73
58
  }
74
59
 
@@ -85,8 +70,6 @@ export function AssetLiteResourceToJSONTyped(value?: AssetLiteResource | null, i
85
70
 
86
71
  'id': value['id'],
87
72
  'filePath': value['filePath'],
88
- 'isExternal': value['isExternal'],
89
- 'externalUrl': value['externalUrl'],
90
73
  };
91
74
  }
92
75
 
@@ -48,7 +48,7 @@ export interface AssetResource {
48
48
  * @type {string}
49
49
  * @memberof AssetResource
50
50
  */
51
- altText?: string | null;
51
+ altText: string;
52
52
  /**
53
53
  *
54
54
  * @type {number}
@@ -61,18 +61,6 @@ export interface AssetResource {
61
61
  * @memberof AssetResource
62
62
  */
63
63
  fileId: number;
64
- /**
65
- *
66
- * @type {boolean}
67
- * @memberof AssetResource
68
- */
69
- isExternal: boolean;
70
- /**
71
- *
72
- * @type {string}
73
- * @memberof AssetResource
74
- */
75
- externalUrl?: string | null;
76
64
  }
77
65
 
78
66
  /**
@@ -83,9 +71,9 @@ export function instanceOfAssetResource(value: object): value is AssetResource {
83
71
  if (!('filePath' in value) || value['filePath'] === undefined) return false;
84
72
  if (!('fileName' in value) || value['fileName'] === undefined) return false;
85
73
  if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
74
+ if (!('altText' in value) || value['altText'] === undefined) return false;
86
75
  if (!('index' in value) || value['index'] === undefined) return false;
87
76
  if (!('fileId' in value) || value['fileId'] === undefined) return false;
88
- if (!('isExternal' in value) || value['isExternal'] === undefined) return false;
89
77
  return true;
90
78
  }
91
79
 
@@ -103,11 +91,9 @@ export function AssetResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
103
91
  'filePath': json['filePath'],
104
92
  'fileName': json['fileName'],
105
93
  'mimeType': json['mimeType'],
106
- 'altText': json['altText'] == null ? undefined : json['altText'],
94
+ 'altText': json['altText'],
107
95
  'index': json['index'],
108
96
  'fileId': json['fileId'],
109
- 'isExternal': json['isExternal'],
110
- 'externalUrl': json['externalUrl'] == null ? undefined : json['externalUrl'],
111
97
  };
112
98
  }
113
99
 
@@ -129,8 +115,6 @@ export function AssetResourceToJSONTyped(value?: AssetResource | null, ignoreDis
129
115
  'altText': value['altText'],
130
116
  'index': value['index'],
131
117
  'fileId': value['fileId'],
132
- 'isExternal': value['isExternal'],
133
- 'externalUrl': value['externalUrl'],
134
118
  };
135
119
  }
136
120
 
@@ -0,0 +1,160 @@
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
+
@@ -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 { 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
+
@@ -0,0 +1,222 @@
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
+
@@ -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 { 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
+
@@ -69,7 +69,7 @@ export interface RegisterGroupedByRosterResource {
69
69
  * @type {Date}
70
70
  * @memberof RegisterGroupedByRosterResource
71
71
  */
72
- finishDateTime: Date;
72
+ finishDateTime?: Date | null;
73
73
  /**
74
74
  *
75
75
  * @type {Array<RegisterListResource>}
@@ -86,7 +86,6 @@ export function instanceOfRegisterGroupedByRosterResource(value: object): value
86
86
  if (!('timezone' in value) || value['timezone'] === undefined) return false;
87
87
  if (!('state' in value) || value['state'] === undefined) return false;
88
88
  if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
89
- if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
90
89
  if (!('registers' in value) || value['registers'] === undefined) return false;
91
90
  return true;
92
91
  }
@@ -106,7 +105,7 @@ export function RegisterGroupedByRosterResourceFromJSONTyped(json: any, ignoreDi
106
105
  'timezone': json['timezone'],
107
106
  'state': json['state'],
108
107
  'startDateTime': (new Date(json['startDateTime'])),
109
- 'finishDateTime': (new Date(json['finishDateTime'])),
108
+ 'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
110
109
  'registers': (json['registers'] == null ? null : (json['registers'] as Array<any>).map(RegisterListResourceFromJSON)),
111
110
  };
112
111
  }
@@ -127,7 +126,7 @@ export function RegisterGroupedByRosterResourceToJSONTyped(value?: RegisterGroup
127
126
  'timezone': value['timezone'],
128
127
  'state': value['state'],
129
128
  'startDateTime': ((value['startDateTime']).toISOString()),
130
- 'finishDateTime': ((value['finishDateTime']).toISOString()),
129
+ 'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
131
130
  'registers': (value['registers'] == null ? null : (value['registers'] as Array<any>).map(RegisterListResourceToJSON)),
132
131
  };
133
132
  }