@digital8/security-registers-backend-ts-sdk 0.0.267 → 0.0.268
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 +0 -8
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +1 -72
- package/dist/apis/GeneralApi.js +0 -352
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +1 -3
- package/dist/models/IncidentResource.d.ts +0 -13
- package/dist/models/IncidentResource.js +0 -7
- package/dist/models/RegisterListResource.d.ts +2 -2
- package/dist/models/RegisterListResource.js +4 -4
- package/dist/models/RegisterResource.d.ts +4 -4
- package/dist/models/RegisterResource.js +9 -13
- package/dist/models/RosterResource.d.ts +1 -1
- package/dist/models/RosterResource.js +3 -4
- package/dist/models/index.d.ts +0 -8
- package/dist/models/index.js +0 -8
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +0 -344
- package/src/models/AddressResource.ts +2 -3
- package/src/models/IncidentResource.ts +0 -24
- package/src/models/RegisterListResource.ts +5 -5
- package/src/models/RegisterResource.ts +10 -12
- package/src/models/RosterResource.ts +3 -4
- package/src/models/index.ts +0 -8
- package/dist/models/IncidentVideoResource.d.ts +0 -74
- package/dist/models/IncidentVideoResource.js +0 -72
- package/dist/models/IncidentVideoResourceArrayResponse.d.ts +0 -33
- package/dist/models/IncidentVideoResourceArrayResponse.js +0 -50
- package/dist/models/IncidentVideoSignedUrlResource.d.ts +0 -32
- package/dist/models/IncidentVideoSignedUrlResource.js +0 -51
- package/dist/models/IncidentVideoSignedUrlResourceArrayResponse.d.ts +0 -33
- package/dist/models/IncidentVideoSignedUrlResourceArrayResponse.js +0 -50
- package/dist/models/IncidentVideoUploadTokenResource.d.ts +0 -50
- package/dist/models/IncidentVideoUploadTokenResource.js +0 -63
- package/dist/models/IncidentVideoUploadTokenResourceArrayResponse.d.ts +0 -33
- package/dist/models/IncidentVideoUploadTokenResourceArrayResponse.js +0 -50
- package/dist/models/IncidentsVideosStoreRequest.d.ts +0 -44
- package/dist/models/IncidentsVideosStoreRequest.js +0 -59
- package/dist/models/IncidentsVideosUploadTokenRequest.d.ts +0 -44
- package/dist/models/IncidentsVideosUploadTokenRequest.js +0 -59
- package/src/models/IncidentVideoResource.ts +0 -125
- package/src/models/IncidentVideoResourceArrayResponse.ts +0 -73
- package/src/models/IncidentVideoSignedUrlResource.ts +0 -66
- package/src/models/IncidentVideoSignedUrlResourceArrayResponse.ts +0 -73
- package/src/models/IncidentVideoUploadTokenResource.ts +0 -93
- package/src/models/IncidentVideoUploadTokenResourceArrayResponse.ts +0 -73
- package/src/models/IncidentsVideosStoreRequest.ts +0 -84
- package/src/models/IncidentsVideosUploadTokenRequest.ts +0 -84
|
@@ -48,13 +48,6 @@ import {
|
|
|
48
48
|
SecurityCompanyLiteResourceToJSON,
|
|
49
49
|
SecurityCompanyLiteResourceToJSONTyped,
|
|
50
50
|
} from './SecurityCompanyLiteResource';
|
|
51
|
-
import type { IncidentVideoResource } from './IncidentVideoResource';
|
|
52
|
-
import {
|
|
53
|
-
IncidentVideoResourceFromJSON,
|
|
54
|
-
IncidentVideoResourceFromJSONTyped,
|
|
55
|
-
IncidentVideoResourceToJSON,
|
|
56
|
-
IncidentVideoResourceToJSONTyped,
|
|
57
|
-
} from './IncidentVideoResource';
|
|
58
51
|
import type { UserLiteResource } from './UserLiteResource';
|
|
59
52
|
import {
|
|
60
53
|
UserLiteResourceFromJSON,
|
|
@@ -154,18 +147,6 @@ export interface IncidentResource {
|
|
|
154
147
|
* @memberof IncidentResource
|
|
155
148
|
*/
|
|
156
149
|
fieldAudits: Array<IncidentFieldAuditResource> | null;
|
|
157
|
-
/**
|
|
158
|
-
*
|
|
159
|
-
* @type {Array<IncidentVideoResource>}
|
|
160
|
-
* @memberof IncidentResource
|
|
161
|
-
*/
|
|
162
|
-
videos: Array<IncidentVideoResource> | null;
|
|
163
|
-
/**
|
|
164
|
-
*
|
|
165
|
-
* @type {string}
|
|
166
|
-
* @memberof IncidentResource
|
|
167
|
-
*/
|
|
168
|
-
state?: string | null;
|
|
169
150
|
}
|
|
170
151
|
|
|
171
152
|
/**
|
|
@@ -182,7 +163,6 @@ export function instanceOfIncidentResource(value: object): value is IncidentReso
|
|
|
182
163
|
if (!('incidentFieldSchema' in value) || value['incidentFieldSchema'] === undefined) return false;
|
|
183
164
|
if (!('fields' in value) || value['fields'] === undefined) return false;
|
|
184
165
|
if (!('fieldAudits' in value) || value['fieldAudits'] === undefined) return false;
|
|
185
|
-
if (!('videos' in value) || value['videos'] === undefined) return false;
|
|
186
166
|
return true;
|
|
187
167
|
}
|
|
188
168
|
|
|
@@ -209,8 +189,6 @@ export function IncidentResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
209
189
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
210
190
|
'fields': json['fields'],
|
|
211
191
|
'fieldAudits': (json['fieldAudits'] == null ? null : (json['fieldAudits'] as Array<any>).map(IncidentFieldAuditResourceFromJSON)),
|
|
212
|
-
'videos': (json['videos'] == null ? null : (json['videos'] as Array<any>).map(IncidentVideoResourceFromJSON)),
|
|
213
|
-
'state': json['state'] == null ? undefined : json['state'],
|
|
214
192
|
};
|
|
215
193
|
}
|
|
216
194
|
|
|
@@ -238,8 +216,6 @@ export function IncidentResourceToJSONTyped(value?: IncidentResource | null, ign
|
|
|
238
216
|
'updatedAt': value['updatedAt'] === null ? null : ((value['updatedAt'] as any)?.toISOString()),
|
|
239
217
|
'fields': value['fields'],
|
|
240
218
|
'fieldAudits': (value['fieldAudits'] == null ? null : (value['fieldAudits'] as Array<any>).map(IncidentFieldAuditResourceToJSON)),
|
|
241
|
-
'videos': (value['videos'] == null ? null : (value['videos'] as Array<any>).map(IncidentVideoResourceToJSON)),
|
|
242
|
-
'state': value['state'],
|
|
243
219
|
};
|
|
244
220
|
}
|
|
245
221
|
|
|
@@ -88,7 +88,7 @@ export interface RegisterListResource {
|
|
|
88
88
|
* @type {string}
|
|
89
89
|
* @memberof RegisterListResource
|
|
90
90
|
*/
|
|
91
|
-
badgeNumber
|
|
91
|
+
badgeNumber: string;
|
|
92
92
|
/**
|
|
93
93
|
*
|
|
94
94
|
* @type {string}
|
|
@@ -166,7 +166,7 @@ export interface RegisterListResource {
|
|
|
166
166
|
* @type {number}
|
|
167
167
|
* @memberof RegisterListResource
|
|
168
168
|
*/
|
|
169
|
-
signOffLat
|
|
169
|
+
signOffLat?: number | null;
|
|
170
170
|
/**
|
|
171
171
|
*
|
|
172
172
|
* @type {number}
|
|
@@ -190,6 +190,7 @@ export function instanceOfRegisterListResource(value: object): value is Register
|
|
|
190
190
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
191
191
|
if (!('shiftLength' in value) || value['shiftLength'] === undefined) return false;
|
|
192
192
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
193
|
+
if (!('badgeNumber' in value) || value['badgeNumber'] === undefined) return false;
|
|
193
194
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
194
195
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
|
|
195
196
|
if (!('licenceLastName' in value) || value['licenceLastName'] === undefined) return false;
|
|
@@ -202,7 +203,6 @@ export function instanceOfRegisterListResource(value: object): value is Register
|
|
|
202
203
|
if (!('firstAid' in value) || value['firstAid'] === undefined) return false;
|
|
203
204
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
204
205
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
205
|
-
if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
|
|
206
206
|
if (!('incidents' in value) || value['incidents'] === undefined) return false;
|
|
207
207
|
return true;
|
|
208
208
|
}
|
|
@@ -224,7 +224,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
224
224
|
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
225
225
|
'shiftLength': json['shiftLength'],
|
|
226
226
|
'signOffStatus': json['signOffStatus'],
|
|
227
|
-
'badgeNumber': json['badgeNumber']
|
|
227
|
+
'badgeNumber': json['badgeNumber'],
|
|
228
228
|
'licenceNumber': json['licenceNumber'],
|
|
229
229
|
'licenceFirstName': json['licenceFirstName'],
|
|
230
230
|
'licenceLastName': json['licenceLastName'],
|
|
@@ -237,7 +237,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
237
237
|
'firstAid': json['firstAid'],
|
|
238
238
|
'signOnLat': json['signOnLat'],
|
|
239
239
|
'signOnLong': json['signOnLong'],
|
|
240
|
-
'signOffLat': json['signOffLat'],
|
|
240
|
+
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
241
241
|
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
242
242
|
'incidents': (json['incidents'] == null ? null : (json['incidents'] as Array<any>).map(IncidentLiteResourceFromJSON)),
|
|
243
243
|
};
|
|
@@ -63,7 +63,7 @@ export interface RegisterResource {
|
|
|
63
63
|
* @type {Date}
|
|
64
64
|
* @memberof RegisterResource
|
|
65
65
|
*/
|
|
66
|
-
finishDateTime
|
|
66
|
+
finishDateTime?: Date | null;
|
|
67
67
|
/**
|
|
68
68
|
*
|
|
69
69
|
* @type {number}
|
|
@@ -123,13 +123,13 @@ export interface RegisterResource {
|
|
|
123
123
|
* @type {number}
|
|
124
124
|
* @memberof RegisterResource
|
|
125
125
|
*/
|
|
126
|
-
signOffLat
|
|
126
|
+
signOffLat?: number | null;
|
|
127
127
|
/**
|
|
128
128
|
*
|
|
129
129
|
* @type {number}
|
|
130
130
|
* @memberof RegisterResource
|
|
131
131
|
*/
|
|
132
|
-
signOffLong
|
|
132
|
+
signOffLong: number;
|
|
133
133
|
/**
|
|
134
134
|
*
|
|
135
135
|
* @type {string}
|
|
@@ -159,7 +159,7 @@ export interface RegisterResource {
|
|
|
159
159
|
* @type {string}
|
|
160
160
|
* @memberof RegisterResource
|
|
161
161
|
*/
|
|
162
|
-
badgeNumber
|
|
162
|
+
badgeNumber?: string | null;
|
|
163
163
|
/**
|
|
164
164
|
*
|
|
165
165
|
* @type {Date}
|
|
@@ -181,7 +181,6 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
|
|
|
181
181
|
if (!('venue' in value) || value['venue'] === undefined) return false;
|
|
182
182
|
if (!('user' in value) || value['user'] === undefined) return false;
|
|
183
183
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
184
|
-
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
|
|
185
184
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
186
185
|
if (!('signOnSignature' in value) || value['signOnSignature'] === undefined) return false;
|
|
187
186
|
if (!('signOffSignature' in value) || value['signOffSignature'] === undefined) return false;
|
|
@@ -191,12 +190,11 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
|
|
|
191
190
|
if (!('firstAidImage' in value) || value['firstAidImage'] === undefined) return false;
|
|
192
191
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
193
192
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
194
|
-
if (!('
|
|
193
|
+
if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
|
|
195
194
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
196
195
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
|
|
197
196
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
|
|
198
197
|
if (!('licenceLastName' in value) || value['licenceLastName'] === undefined) return false;
|
|
199
|
-
if (!('badgeNumber' in value) || value['badgeNumber'] === undefined) return false;
|
|
200
198
|
return true;
|
|
201
199
|
}
|
|
202
200
|
|
|
@@ -214,7 +212,7 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
214
212
|
'venue': VenueLiteResourceFromJSON(json['venue']),
|
|
215
213
|
'user': UserLiteResourceFromJSON(json['user']),
|
|
216
214
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
217
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
215
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
218
216
|
'signOffStatus': json['signOffStatus'],
|
|
219
217
|
'signOnSignature': json['signOnSignature'],
|
|
220
218
|
'signOffSignature': json['signOffSignature'],
|
|
@@ -224,13 +222,13 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
224
222
|
'firstAidImage': json['firstAidImage'],
|
|
225
223
|
'signOnLat': json['signOnLat'],
|
|
226
224
|
'signOnLong': json['signOnLong'],
|
|
227
|
-
'signOffLat': json['signOffLat'],
|
|
228
|
-
'signOffLong': json['signOffLong']
|
|
225
|
+
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
226
|
+
'signOffLong': json['signOffLong'],
|
|
229
227
|
'licenceNumber': json['licenceNumber'],
|
|
230
228
|
'licenceExpiry': json['licenceExpiry'],
|
|
231
229
|
'licenceFirstName': json['licenceFirstName'],
|
|
232
230
|
'licenceLastName': json['licenceLastName'],
|
|
233
|
-
'badgeNumber': json['badgeNumber'],
|
|
231
|
+
'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
|
|
234
232
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
235
233
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
236
234
|
};
|
|
@@ -251,7 +249,7 @@ export function RegisterResourceToJSONTyped(value?: RegisterResource | null, ign
|
|
|
251
249
|
'venue': VenueLiteResourceToJSON(value['venue']),
|
|
252
250
|
'user': UserLiteResourceToJSON(value['user']),
|
|
253
251
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
254
|
-
'finishDateTime': ((value['finishDateTime'])
|
|
252
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
|
|
255
253
|
'signOffStatus': value['signOffStatus'],
|
|
256
254
|
'signOnSignature': value['signOnSignature'],
|
|
257
255
|
'signOffSignature': value['signOffSignature'],
|
|
@@ -70,7 +70,7 @@ export interface RosterResource {
|
|
|
70
70
|
* @type {Date}
|
|
71
71
|
* @memberof RosterResource
|
|
72
72
|
*/
|
|
73
|
-
finishDateTime
|
|
73
|
+
finishDateTime?: Date | null;
|
|
74
74
|
/**
|
|
75
75
|
*
|
|
76
76
|
* @type {boolean}
|
|
@@ -104,7 +104,6 @@ export function instanceOfRosterResource(value: object): value is RosterResource
|
|
|
104
104
|
if (!('venue' in value) || value['venue'] === undefined) return false;
|
|
105
105
|
if (!('securityCompany' in value) || value['securityCompany'] === undefined) return false;
|
|
106
106
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
107
|
-
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
|
|
108
107
|
if (!('isCompliant' in value) || value['isCompliant'] === undefined) return false;
|
|
109
108
|
if (!('isComplete' in value) || value['isComplete'] === undefined) return false;
|
|
110
109
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
@@ -126,7 +125,7 @@ export function RosterResourceFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
126
125
|
'venue': VenueLiteResourceFromJSON(json['venue']),
|
|
127
126
|
'securityCompany': SecurityCompanyLiteResourceFromJSON(json['securityCompany']),
|
|
128
127
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
129
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
128
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
130
129
|
'isCompliant': json['isCompliant'],
|
|
131
130
|
'isComplete': json['isComplete'],
|
|
132
131
|
'signOffStatus': json['signOffStatus'],
|
|
@@ -149,7 +148,7 @@ export function RosterResourceToJSONTyped(value?: RosterResource | null, ignoreD
|
|
|
149
148
|
'venue': VenueLiteResourceToJSON(value['venue']),
|
|
150
149
|
'securityCompany': SecurityCompanyLiteResourceToJSON(value['securityCompany']),
|
|
151
150
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
152
|
-
'finishDateTime': ((value['finishDateTime'])
|
|
151
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
|
|
153
152
|
'isCompliant': value['isCompliant'],
|
|
154
153
|
'isComplete': value['isComplete'],
|
|
155
154
|
'signOffStatus': value['signOffStatus'],
|
package/src/models/index.ts
CHANGED
|
@@ -26,17 +26,9 @@ export * from './IncidentResource';
|
|
|
26
26
|
export * from './IncidentResourceArrayResponse';
|
|
27
27
|
export * from './IncidentVersionResource';
|
|
28
28
|
export * from './IncidentVersionResourceArrayResponse';
|
|
29
|
-
export * from './IncidentVideoResource';
|
|
30
|
-
export * from './IncidentVideoResourceArrayResponse';
|
|
31
|
-
export * from './IncidentVideoSignedUrlResource';
|
|
32
|
-
export * from './IncidentVideoSignedUrlResourceArrayResponse';
|
|
33
|
-
export * from './IncidentVideoUploadTokenResource';
|
|
34
|
-
export * from './IncidentVideoUploadTokenResourceArrayResponse';
|
|
35
29
|
export * from './IncidentsApproveRequest';
|
|
36
30
|
export * from './IncidentsStoreRequest';
|
|
37
31
|
export * from './IncidentsUpdateRequest';
|
|
38
|
-
export * from './IncidentsVideosStoreRequest';
|
|
39
|
-
export * from './IncidentsVideosUploadTokenRequest';
|
|
40
32
|
export * from './IndexMinimalUserRequest';
|
|
41
33
|
export * from './IndexUserRequest';
|
|
42
34
|
export * from './LicenceListResource';
|
|
@@ -1,74 +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
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface IncidentVideoResource
|
|
16
|
-
*/
|
|
17
|
-
export interface IncidentVideoResource {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof IncidentVideoResource
|
|
22
|
-
*/
|
|
23
|
-
id: number;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof IncidentVideoResource
|
|
28
|
-
*/
|
|
29
|
-
status: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof IncidentVideoResource
|
|
34
|
-
*/
|
|
35
|
-
originalFilename: string;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof IncidentVideoResource
|
|
40
|
-
*/
|
|
41
|
-
mimeType: string;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {number}
|
|
45
|
-
* @memberof IncidentVideoResource
|
|
46
|
-
*/
|
|
47
|
-
sizeBytes?: number | null;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {string}
|
|
51
|
-
* @memberof IncidentVideoResource
|
|
52
|
-
*/
|
|
53
|
-
failureReason?: string | null;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {Date}
|
|
57
|
-
* @memberof IncidentVideoResource
|
|
58
|
-
*/
|
|
59
|
-
createdAt?: Date | null;
|
|
60
|
-
/**
|
|
61
|
-
*
|
|
62
|
-
* @type {Date}
|
|
63
|
-
* @memberof IncidentVideoResource
|
|
64
|
-
*/
|
|
65
|
-
updatedAt?: Date | null;
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Check if a given object implements the IncidentVideoResource interface.
|
|
69
|
-
*/
|
|
70
|
-
export declare function instanceOfIncidentVideoResource(value: object): value is IncidentVideoResource;
|
|
71
|
-
export declare function IncidentVideoResourceFromJSON(json: any): IncidentVideoResource;
|
|
72
|
-
export declare function IncidentVideoResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentVideoResource;
|
|
73
|
-
export declare function IncidentVideoResourceToJSON(json: any): IncidentVideoResource;
|
|
74
|
-
export declare function IncidentVideoResourceToJSONTyped(value?: IncidentVideoResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,72 +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.instanceOfIncidentVideoResource = instanceOfIncidentVideoResource;
|
|
17
|
-
exports.IncidentVideoResourceFromJSON = IncidentVideoResourceFromJSON;
|
|
18
|
-
exports.IncidentVideoResourceFromJSONTyped = IncidentVideoResourceFromJSONTyped;
|
|
19
|
-
exports.IncidentVideoResourceToJSON = IncidentVideoResourceToJSON;
|
|
20
|
-
exports.IncidentVideoResourceToJSONTyped = IncidentVideoResourceToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the IncidentVideoResource interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfIncidentVideoResource(value) {
|
|
25
|
-
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
if (!('status' in value) || value['status'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
if (!('originalFilename' in value) || value['originalFilename'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
if (!('mimeType' in value) || value['mimeType'] === undefined)
|
|
32
|
-
return false;
|
|
33
|
-
return true;
|
|
34
|
-
}
|
|
35
|
-
function IncidentVideoResourceFromJSON(json) {
|
|
36
|
-
return IncidentVideoResourceFromJSONTyped(json, false);
|
|
37
|
-
}
|
|
38
|
-
function IncidentVideoResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
-
if (json == null) {
|
|
40
|
-
return json;
|
|
41
|
-
}
|
|
42
|
-
return {
|
|
43
|
-
'id': json['id'],
|
|
44
|
-
'status': json['status'],
|
|
45
|
-
'originalFilename': json['originalFilename'],
|
|
46
|
-
'mimeType': json['mimeType'],
|
|
47
|
-
'sizeBytes': json['sizeBytes'] == null ? undefined : json['sizeBytes'],
|
|
48
|
-
'failureReason': json['failureReason'] == null ? undefined : json['failureReason'],
|
|
49
|
-
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
50
|
-
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
function IncidentVideoResourceToJSON(json) {
|
|
54
|
-
return IncidentVideoResourceToJSONTyped(json, false);
|
|
55
|
-
}
|
|
56
|
-
function IncidentVideoResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
57
|
-
var _a, _b;
|
|
58
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
59
|
-
if (value == null) {
|
|
60
|
-
return value;
|
|
61
|
-
}
|
|
62
|
-
return {
|
|
63
|
-
'id': value['id'],
|
|
64
|
-
'status': value['status'],
|
|
65
|
-
'originalFilename': value['originalFilename'],
|
|
66
|
-
'mimeType': value['mimeType'],
|
|
67
|
-
'sizeBytes': value['sizeBytes'],
|
|
68
|
-
'failureReason': value['failureReason'],
|
|
69
|
-
'createdAt': value['createdAt'] === null ? null : ((_a = value['createdAt']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
70
|
-
'updatedAt': value['updatedAt'] === null ? null : ((_b = value['updatedAt']) === null || _b === void 0 ? void 0 : _b.toISOString()),
|
|
71
|
-
};
|
|
72
|
-
}
|
|
@@ -1,33 +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 { IncidentVideoResource } from './IncidentVideoResource';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface IncidentVideoResourceArrayResponse
|
|
17
|
-
*/
|
|
18
|
-
export interface IncidentVideoResourceArrayResponse {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<IncidentVideoResource>}
|
|
22
|
-
* @memberof IncidentVideoResourceArrayResponse
|
|
23
|
-
*/
|
|
24
|
-
data?: Array<IncidentVideoResource>;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the IncidentVideoResourceArrayResponse interface.
|
|
28
|
-
*/
|
|
29
|
-
export declare function instanceOfIncidentVideoResourceArrayResponse(value: object): value is IncidentVideoResourceArrayResponse;
|
|
30
|
-
export declare function IncidentVideoResourceArrayResponseFromJSON(json: any): IncidentVideoResourceArrayResponse;
|
|
31
|
-
export declare function IncidentVideoResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentVideoResourceArrayResponse;
|
|
32
|
-
export declare function IncidentVideoResourceArrayResponseToJSON(json: any): IncidentVideoResourceArrayResponse;
|
|
33
|
-
export declare function IncidentVideoResourceArrayResponseToJSONTyped(value?: IncidentVideoResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,50 +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.instanceOfIncidentVideoResourceArrayResponse = instanceOfIncidentVideoResourceArrayResponse;
|
|
17
|
-
exports.IncidentVideoResourceArrayResponseFromJSON = IncidentVideoResourceArrayResponseFromJSON;
|
|
18
|
-
exports.IncidentVideoResourceArrayResponseFromJSONTyped = IncidentVideoResourceArrayResponseFromJSONTyped;
|
|
19
|
-
exports.IncidentVideoResourceArrayResponseToJSON = IncidentVideoResourceArrayResponseToJSON;
|
|
20
|
-
exports.IncidentVideoResourceArrayResponseToJSONTyped = IncidentVideoResourceArrayResponseToJSONTyped;
|
|
21
|
-
var IncidentVideoResource_1 = require("./IncidentVideoResource");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the IncidentVideoResourceArrayResponse interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfIncidentVideoResourceArrayResponse(value) {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
function IncidentVideoResourceArrayResponseFromJSON(json) {
|
|
29
|
-
return IncidentVideoResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
function IncidentVideoResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (json == null) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'data': json['data'] == null ? undefined : (json['data'].map(IncidentVideoResource_1.IncidentVideoResourceFromJSON)),
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function IncidentVideoResourceArrayResponseToJSON(json) {
|
|
40
|
-
return IncidentVideoResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
function IncidentVideoResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
44
|
-
if (value == null) {
|
|
45
|
-
return value;
|
|
46
|
-
}
|
|
47
|
-
return {
|
|
48
|
-
'data': value['data'] == null ? undefined : (value['data'].map(IncidentVideoResource_1.IncidentVideoResourceToJSON)),
|
|
49
|
-
};
|
|
50
|
-
}
|
|
@@ -1,32 +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
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface IncidentVideoSignedUrlResource
|
|
16
|
-
*/
|
|
17
|
-
export interface IncidentVideoSignedUrlResource {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof IncidentVideoSignedUrlResource
|
|
22
|
-
*/
|
|
23
|
-
url: string;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Check if a given object implements the IncidentVideoSignedUrlResource interface.
|
|
27
|
-
*/
|
|
28
|
-
export declare function instanceOfIncidentVideoSignedUrlResource(value: object): value is IncidentVideoSignedUrlResource;
|
|
29
|
-
export declare function IncidentVideoSignedUrlResourceFromJSON(json: any): IncidentVideoSignedUrlResource;
|
|
30
|
-
export declare function IncidentVideoSignedUrlResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentVideoSignedUrlResource;
|
|
31
|
-
export declare function IncidentVideoSignedUrlResourceToJSON(json: any): IncidentVideoSignedUrlResource;
|
|
32
|
-
export declare function IncidentVideoSignedUrlResourceToJSONTyped(value?: IncidentVideoSignedUrlResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,51 +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.instanceOfIncidentVideoSignedUrlResource = instanceOfIncidentVideoSignedUrlResource;
|
|
17
|
-
exports.IncidentVideoSignedUrlResourceFromJSON = IncidentVideoSignedUrlResourceFromJSON;
|
|
18
|
-
exports.IncidentVideoSignedUrlResourceFromJSONTyped = IncidentVideoSignedUrlResourceFromJSONTyped;
|
|
19
|
-
exports.IncidentVideoSignedUrlResourceToJSON = IncidentVideoSignedUrlResourceToJSON;
|
|
20
|
-
exports.IncidentVideoSignedUrlResourceToJSONTyped = IncidentVideoSignedUrlResourceToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the IncidentVideoSignedUrlResource interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfIncidentVideoSignedUrlResource(value) {
|
|
25
|
-
if (!('url' in value) || value['url'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
return true;
|
|
28
|
-
}
|
|
29
|
-
function IncidentVideoSignedUrlResourceFromJSON(json) {
|
|
30
|
-
return IncidentVideoSignedUrlResourceFromJSONTyped(json, false);
|
|
31
|
-
}
|
|
32
|
-
function IncidentVideoSignedUrlResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if (json == null) {
|
|
34
|
-
return json;
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
'url': json['url'],
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
function IncidentVideoSignedUrlResourceToJSON(json) {
|
|
41
|
-
return IncidentVideoSignedUrlResourceToJSONTyped(json, false);
|
|
42
|
-
}
|
|
43
|
-
function IncidentVideoSignedUrlResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
-
if (value == null) {
|
|
46
|
-
return value;
|
|
47
|
-
}
|
|
48
|
-
return {
|
|
49
|
-
'url': value['url'],
|
|
50
|
-
};
|
|
51
|
-
}
|
|
@@ -1,33 +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 { IncidentVideoSignedUrlResource } from './IncidentVideoSignedUrlResource';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface IncidentVideoSignedUrlResourceArrayResponse
|
|
17
|
-
*/
|
|
18
|
-
export interface IncidentVideoSignedUrlResourceArrayResponse {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<IncidentVideoSignedUrlResource>}
|
|
22
|
-
* @memberof IncidentVideoSignedUrlResourceArrayResponse
|
|
23
|
-
*/
|
|
24
|
-
data?: Array<IncidentVideoSignedUrlResource>;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the IncidentVideoSignedUrlResourceArrayResponse interface.
|
|
28
|
-
*/
|
|
29
|
-
export declare function instanceOfIncidentVideoSignedUrlResourceArrayResponse(value: object): value is IncidentVideoSignedUrlResourceArrayResponse;
|
|
30
|
-
export declare function IncidentVideoSignedUrlResourceArrayResponseFromJSON(json: any): IncidentVideoSignedUrlResourceArrayResponse;
|
|
31
|
-
export declare function IncidentVideoSignedUrlResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentVideoSignedUrlResourceArrayResponse;
|
|
32
|
-
export declare function IncidentVideoSignedUrlResourceArrayResponseToJSON(json: any): IncidentVideoSignedUrlResourceArrayResponse;
|
|
33
|
-
export declare function IncidentVideoSignedUrlResourceArrayResponseToJSONTyped(value?: IncidentVideoSignedUrlResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,50 +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.instanceOfIncidentVideoSignedUrlResourceArrayResponse = instanceOfIncidentVideoSignedUrlResourceArrayResponse;
|
|
17
|
-
exports.IncidentVideoSignedUrlResourceArrayResponseFromJSON = IncidentVideoSignedUrlResourceArrayResponseFromJSON;
|
|
18
|
-
exports.IncidentVideoSignedUrlResourceArrayResponseFromJSONTyped = IncidentVideoSignedUrlResourceArrayResponseFromJSONTyped;
|
|
19
|
-
exports.IncidentVideoSignedUrlResourceArrayResponseToJSON = IncidentVideoSignedUrlResourceArrayResponseToJSON;
|
|
20
|
-
exports.IncidentVideoSignedUrlResourceArrayResponseToJSONTyped = IncidentVideoSignedUrlResourceArrayResponseToJSONTyped;
|
|
21
|
-
var IncidentVideoSignedUrlResource_1 = require("./IncidentVideoSignedUrlResource");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the IncidentVideoSignedUrlResourceArrayResponse interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfIncidentVideoSignedUrlResourceArrayResponse(value) {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
function IncidentVideoSignedUrlResourceArrayResponseFromJSON(json) {
|
|
29
|
-
return IncidentVideoSignedUrlResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
function IncidentVideoSignedUrlResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (json == null) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'data': json['data'] == null ? undefined : (json['data'].map(IncidentVideoSignedUrlResource_1.IncidentVideoSignedUrlResourceFromJSON)),
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function IncidentVideoSignedUrlResourceArrayResponseToJSON(json) {
|
|
40
|
-
return IncidentVideoSignedUrlResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
function IncidentVideoSignedUrlResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
44
|
-
if (value == null) {
|
|
45
|
-
return value;
|
|
46
|
-
}
|
|
47
|
-
return {
|
|
48
|
-
'data': value['data'] == null ? undefined : (value['data'].map(IncidentVideoSignedUrlResource_1.IncidentVideoSignedUrlResourceToJSON)),
|
|
49
|
-
};
|
|
50
|
-
}
|