@digital8/security-registers-backend-ts-sdk 0.0.538 → 0.0.539
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 +4 -0
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +12 -1
- package/dist/apis/GeneralApi.js +55 -0
- package/dist/models/IncidentImageResource.d.ts +1 -1
- package/dist/models/IncidentImageResource.js +1 -3
- package/dist/models/IncidentVideosRecentRequest.d.ts +82 -0
- package/dist/models/IncidentVideosRecentRequest.js +71 -0
- package/dist/models/PaginatedRecentVideoListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedRecentVideoListResourceResponse.js +57 -0
- package/dist/models/RecentVideoListResource.d.ts +69 -0
- package/dist/models/RecentVideoListResource.js +71 -0
- package/dist/models/RecentVideoListResourceArrayResponse.d.ts +33 -0
- package/dist/models/RecentVideoListResourceArrayResponse.js +50 -0
- package/dist/models/RegisterResource.d.ts +2 -2
- package/dist/models/RegisterResource.js +3 -3
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +50 -0
- package/src/models/IncidentImageResource.ts +2 -3
- package/src/models/IncidentVideosRecentRequest.ts +132 -0
- package/src/models/PaginatedRecentVideoListResourceResponse.ts +90 -0
- package/src/models/RecentVideoListResource.ts +125 -0
- package/src/models/RecentVideoListResourceArrayResponse.ts +73 -0
- package/src/models/RegisterResource.ts +5 -5
- package/src/models/index.ts +4 -0
|
@@ -59,7 +59,7 @@ function instanceOfRegisterResource(value) {
|
|
|
59
59
|
return false;
|
|
60
60
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined)
|
|
61
61
|
return false;
|
|
62
|
-
if (!('
|
|
62
|
+
if (!('signOffLong' in value) || value['signOffLong'] === undefined)
|
|
63
63
|
return false;
|
|
64
64
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
|
|
65
65
|
return false;
|
|
@@ -96,8 +96,8 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
96
96
|
'firstAidImage': json['firstAidImage'],
|
|
97
97
|
'signOnLat': json['signOnLat'],
|
|
98
98
|
'signOnLong': json['signOnLong'],
|
|
99
|
-
'signOffLat': json['signOffLat'],
|
|
100
|
-
'signOffLong': json['signOffLong']
|
|
99
|
+
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
100
|
+
'signOffLong': json['signOffLong'],
|
|
101
101
|
'licenceNumber': json['licenceNumber'],
|
|
102
102
|
'licenceExpiry': json['licenceExpiry'],
|
|
103
103
|
'licenceFirstName': json['licenceFirstName'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -47,6 +47,7 @@ export * from './IncidentVideoSignedUrlResource';
|
|
|
47
47
|
export * from './IncidentVideoSignedUrlResourceArrayResponse';
|
|
48
48
|
export * from './IncidentVideoUploadTokenResource';
|
|
49
49
|
export * from './IncidentVideoUploadTokenResourceArrayResponse';
|
|
50
|
+
export * from './IncidentVideosRecentRequest';
|
|
50
51
|
export * from './IncidentsApproveRequest';
|
|
51
52
|
export * from './IncidentsEligibleOwnersRequest';
|
|
52
53
|
export * from './IncidentsExportCsvBulkRequest';
|
|
@@ -94,6 +95,7 @@ export * from './PaginatedIncidentListResourceResponse';
|
|
|
94
95
|
export * from './PaginatedLicenceCheckLogResourceResponse';
|
|
95
96
|
export * from './PaginatedLicenceListResourceResponse';
|
|
96
97
|
export * from './PaginatedLicenceResourceResponse';
|
|
98
|
+
export * from './PaginatedRecentVideoListResourceResponse';
|
|
97
99
|
export * from './PaginatedRegisterGroupedByRosterResourceResponse';
|
|
98
100
|
export * from './PaginatedRegisterListResourceResponse';
|
|
99
101
|
export * from './PaginatedRegisterResourceResponse';
|
|
@@ -106,6 +108,8 @@ export * from './PaginatedVenueResourceResponse';
|
|
|
106
108
|
export * from './PagingMetadata';
|
|
107
109
|
export * from './PdfExportResource';
|
|
108
110
|
export * from './PdfExportResourceArrayResponse';
|
|
111
|
+
export * from './RecentVideoListResource';
|
|
112
|
+
export * from './RecentVideoListResourceArrayResponse';
|
|
109
113
|
export * from './RegisterGroupedByRosterResource';
|
|
110
114
|
export * from './RegisterGroupedByRosterResourceArrayResponse';
|
|
111
115
|
export * from './RegisterListResource';
|
package/dist/models/index.js
CHANGED
|
@@ -65,6 +65,7 @@ __exportStar(require("./IncidentVideoSignedUrlResource"), exports);
|
|
|
65
65
|
__exportStar(require("./IncidentVideoSignedUrlResourceArrayResponse"), exports);
|
|
66
66
|
__exportStar(require("./IncidentVideoUploadTokenResource"), exports);
|
|
67
67
|
__exportStar(require("./IncidentVideoUploadTokenResourceArrayResponse"), exports);
|
|
68
|
+
__exportStar(require("./IncidentVideosRecentRequest"), exports);
|
|
68
69
|
__exportStar(require("./IncidentsApproveRequest"), exports);
|
|
69
70
|
__exportStar(require("./IncidentsEligibleOwnersRequest"), exports);
|
|
70
71
|
__exportStar(require("./IncidentsExportCsvBulkRequest"), exports);
|
|
@@ -112,6 +113,7 @@ __exportStar(require("./PaginatedIncidentListResourceResponse"), exports);
|
|
|
112
113
|
__exportStar(require("./PaginatedLicenceCheckLogResourceResponse"), exports);
|
|
113
114
|
__exportStar(require("./PaginatedLicenceListResourceResponse"), exports);
|
|
114
115
|
__exportStar(require("./PaginatedLicenceResourceResponse"), exports);
|
|
116
|
+
__exportStar(require("./PaginatedRecentVideoListResourceResponse"), exports);
|
|
115
117
|
__exportStar(require("./PaginatedRegisterGroupedByRosterResourceResponse"), exports);
|
|
116
118
|
__exportStar(require("./PaginatedRegisterListResourceResponse"), exports);
|
|
117
119
|
__exportStar(require("./PaginatedRegisterResourceResponse"), exports);
|
|
@@ -124,6 +126,8 @@ __exportStar(require("./PaginatedVenueResourceResponse"), exports);
|
|
|
124
126
|
__exportStar(require("./PagingMetadata"), exports);
|
|
125
127
|
__exportStar(require("./PdfExportResource"), exports);
|
|
126
128
|
__exportStar(require("./PdfExportResourceArrayResponse"), exports);
|
|
129
|
+
__exportStar(require("./RecentVideoListResource"), exports);
|
|
130
|
+
__exportStar(require("./RecentVideoListResourceArrayResponse"), exports);
|
|
127
131
|
__exportStar(require("./RegisterGroupedByRosterResource"), exports);
|
|
128
132
|
__exportStar(require("./RegisterGroupedByRosterResourceArrayResponse"), exports);
|
|
129
133
|
__exportStar(require("./RegisterListResource"), exports);
|
package/package.json
CHANGED
package/src/apis/GeneralApi.ts
CHANGED
|
@@ -33,6 +33,7 @@ import type {
|
|
|
33
33
|
IncidentVideoResourceArrayResponse,
|
|
34
34
|
IncidentVideoSignedUrlResource,
|
|
35
35
|
IncidentVideoUploadTokenResource,
|
|
36
|
+
IncidentVideosRecentRequest,
|
|
36
37
|
IncidentsApproveRequest,
|
|
37
38
|
IncidentsEligibleOwnersRequest,
|
|
38
39
|
IncidentsExportCsvBulkRequest,
|
|
@@ -66,6 +67,7 @@ import type {
|
|
|
66
67
|
PaginatedIncidentListResourceResponse,
|
|
67
68
|
PaginatedLicenceCheckLogResourceResponse,
|
|
68
69
|
PaginatedLicenceListResourceResponse,
|
|
70
|
+
PaginatedRecentVideoListResourceResponse,
|
|
69
71
|
PaginatedRegisterGroupedByRosterResourceResponse,
|
|
70
72
|
PaginatedRosterListResourceResponse,
|
|
71
73
|
PaginatedRosterWithRegistersResourceResponse,
|
|
@@ -161,6 +163,8 @@ import {
|
|
|
161
163
|
IncidentVideoSignedUrlResourceToJSON,
|
|
162
164
|
IncidentVideoUploadTokenResourceFromJSON,
|
|
163
165
|
IncidentVideoUploadTokenResourceToJSON,
|
|
166
|
+
IncidentVideosRecentRequestFromJSON,
|
|
167
|
+
IncidentVideosRecentRequestToJSON,
|
|
164
168
|
IncidentsApproveRequestFromJSON,
|
|
165
169
|
IncidentsApproveRequestToJSON,
|
|
166
170
|
IncidentsEligibleOwnersRequestFromJSON,
|
|
@@ -227,6 +231,8 @@ import {
|
|
|
227
231
|
PaginatedLicenceCheckLogResourceResponseToJSON,
|
|
228
232
|
PaginatedLicenceListResourceResponseFromJSON,
|
|
229
233
|
PaginatedLicenceListResourceResponseToJSON,
|
|
234
|
+
PaginatedRecentVideoListResourceResponseFromJSON,
|
|
235
|
+
PaginatedRecentVideoListResourceResponseToJSON,
|
|
230
236
|
PaginatedRegisterGroupedByRosterResourceResponseFromJSON,
|
|
231
237
|
PaginatedRegisterGroupedByRosterResourceResponseToJSON,
|
|
232
238
|
PaginatedRosterListResourceResponseFromJSON,
|
|
@@ -383,6 +389,10 @@ export interface IncidentFieldSchemasShowOperationRequest {
|
|
|
383
389
|
incidentFieldSchemasShowRequest?: IncidentFieldSchemasShowRequest;
|
|
384
390
|
}
|
|
385
391
|
|
|
392
|
+
export interface IncidentVideosRecentOperationRequest {
|
|
393
|
+
incidentVideosRecentRequest?: IncidentVideosRecentRequest;
|
|
394
|
+
}
|
|
395
|
+
|
|
386
396
|
export interface IncidentsApproveOperationRequest {
|
|
387
397
|
incident: number;
|
|
388
398
|
incidentsApproveRequest?: IncidentsApproveRequest;
|
|
@@ -1238,6 +1248,46 @@ export class GeneralApi extends runtime.BaseAPI {
|
|
|
1238
1248
|
return await response.value();
|
|
1239
1249
|
}
|
|
1240
1250
|
|
|
1251
|
+
/**
|
|
1252
|
+
* Auto-generated: incidentVideos.recent
|
|
1253
|
+
*/
|
|
1254
|
+
async incidentVideosRecentRaw(requestParameters: IncidentVideosRecentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedRecentVideoListResourceResponse>> {
|
|
1255
|
+
const queryParameters: any = {};
|
|
1256
|
+
|
|
1257
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1258
|
+
|
|
1259
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1260
|
+
|
|
1261
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1262
|
+
const token = this.configuration.accessToken;
|
|
1263
|
+
const tokenString = await token("bearerAuth", []);
|
|
1264
|
+
|
|
1265
|
+
if (tokenString) {
|
|
1266
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1267
|
+
}
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
let urlPath = `/api/incident-videos/recent`;
|
|
1271
|
+
|
|
1272
|
+
const response = await this.request({
|
|
1273
|
+
path: urlPath,
|
|
1274
|
+
method: 'POST',
|
|
1275
|
+
headers: headerParameters,
|
|
1276
|
+
query: queryParameters,
|
|
1277
|
+
body: IncidentVideosRecentRequestToJSON(requestParameters['incidentVideosRecentRequest']),
|
|
1278
|
+
}, initOverrides);
|
|
1279
|
+
|
|
1280
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedRecentVideoListResourceResponseFromJSON(jsonValue));
|
|
1281
|
+
}
|
|
1282
|
+
|
|
1283
|
+
/**
|
|
1284
|
+
* Auto-generated: incidentVideos.recent
|
|
1285
|
+
*/
|
|
1286
|
+
async incidentVideosRecent(requestParameters: IncidentVideosRecentOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedRecentVideoListResourceResponse> {
|
|
1287
|
+
const response = await this.incidentVideosRecentRaw(requestParameters, initOverrides);
|
|
1288
|
+
return await response.value();
|
|
1289
|
+
}
|
|
1290
|
+
|
|
1241
1291
|
/**
|
|
1242
1292
|
* Auto-generated: incidents.approve
|
|
1243
1293
|
*/
|
|
@@ -36,7 +36,7 @@ export interface IncidentImageResource {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof IncidentImageResource
|
|
38
38
|
*/
|
|
39
|
-
altText
|
|
39
|
+
altText?: string | null;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {number}
|
|
@@ -57,7 +57,6 @@ export interface IncidentImageResource {
|
|
|
57
57
|
export function instanceOfIncidentImageResource(value: object): value is IncidentImageResource {
|
|
58
58
|
if (!('fileId' in value) || value['fileId'] === undefined) return false;
|
|
59
59
|
if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
|
|
60
|
-
if (!('altText' in value) || value['altText'] === undefined) return false;
|
|
61
60
|
if (!('assetId' in value) || value['assetId'] === undefined) return false;
|
|
62
61
|
if (!('url' in value) || value['url'] === undefined) return false;
|
|
63
62
|
return true;
|
|
@@ -75,7 +74,7 @@ export function IncidentImageResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
75
74
|
|
|
76
75
|
'fileId': json['file_id'],
|
|
77
76
|
'mimeType': json['mime_type'],
|
|
78
|
-
'altText': json['alt_text'],
|
|
77
|
+
'altText': json['alt_text'] == null ? undefined : json['alt_text'],
|
|
79
78
|
'assetId': json['asset_id'],
|
|
80
79
|
'url': json['url'],
|
|
81
80
|
};
|
|
@@ -0,0 +1,132 @@
|
|
|
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 IncidentVideosRecentRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface IncidentVideosRecentRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof IncidentVideosRecentRequest
|
|
26
|
+
*/
|
|
27
|
+
search?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof IncidentVideosRecentRequest
|
|
32
|
+
*/
|
|
33
|
+
sortBy?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof IncidentVideosRecentRequest
|
|
38
|
+
*/
|
|
39
|
+
sortDirection?: IncidentVideosRecentRequestSortDirectionEnum;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof IncidentVideosRecentRequest
|
|
44
|
+
*/
|
|
45
|
+
perPage?: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof IncidentVideosRecentRequest
|
|
50
|
+
*/
|
|
51
|
+
page?: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof IncidentVideosRecentRequest
|
|
56
|
+
*/
|
|
57
|
+
relatedId?: number;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof IncidentVideosRecentRequest
|
|
62
|
+
*/
|
|
63
|
+
relatedType?: string;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {boolean}
|
|
67
|
+
* @memberof IncidentVideosRecentRequest
|
|
68
|
+
*/
|
|
69
|
+
includesRelations?: boolean;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @export
|
|
75
|
+
*/
|
|
76
|
+
export const IncidentVideosRecentRequestSortDirectionEnum = {
|
|
77
|
+
Asc: 'asc',
|
|
78
|
+
Desc: 'desc'
|
|
79
|
+
} as const;
|
|
80
|
+
export type IncidentVideosRecentRequestSortDirectionEnum = typeof IncidentVideosRecentRequestSortDirectionEnum[keyof typeof IncidentVideosRecentRequestSortDirectionEnum];
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Check if a given object implements the IncidentVideosRecentRequest interface.
|
|
85
|
+
*/
|
|
86
|
+
export function instanceOfIncidentVideosRecentRequest(value: object): value is IncidentVideosRecentRequest {
|
|
87
|
+
return true;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function IncidentVideosRecentRequestFromJSON(json: any): IncidentVideosRecentRequest {
|
|
91
|
+
return IncidentVideosRecentRequestFromJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function IncidentVideosRecentRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentVideosRecentRequest {
|
|
95
|
+
if (json == null) {
|
|
96
|
+
return json;
|
|
97
|
+
}
|
|
98
|
+
return {
|
|
99
|
+
|
|
100
|
+
'search': json['search'] == null ? undefined : json['search'],
|
|
101
|
+
'sortBy': json['sort_by'] == null ? undefined : json['sort_by'],
|
|
102
|
+
'sortDirection': json['sort_direction'] == null ? undefined : json['sort_direction'],
|
|
103
|
+
'perPage': json['per_page'] == null ? undefined : json['per_page'],
|
|
104
|
+
'page': json['page'] == null ? undefined : json['page'],
|
|
105
|
+
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
106
|
+
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
107
|
+
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export function IncidentVideosRecentRequestToJSON(json: any): IncidentVideosRecentRequest {
|
|
112
|
+
return IncidentVideosRecentRequestToJSONTyped(json, false);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function IncidentVideosRecentRequestToJSONTyped(value?: IncidentVideosRecentRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
116
|
+
if (value == null) {
|
|
117
|
+
return value;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
return {
|
|
121
|
+
|
|
122
|
+
'search': value['search'],
|
|
123
|
+
'sort_by': value['sortBy'],
|
|
124
|
+
'sort_direction': value['sortDirection'],
|
|
125
|
+
'per_page': value['perPage'],
|
|
126
|
+
'page': value['page'],
|
|
127
|
+
'related_id': value['relatedId'],
|
|
128
|
+
'related_type': value['relatedType'],
|
|
129
|
+
'includes_relations': value['includesRelations'],
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
|
|
@@ -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 { RecentVideoListResource } from './RecentVideoListResource';
|
|
24
|
+
import {
|
|
25
|
+
RecentVideoListResourceFromJSON,
|
|
26
|
+
RecentVideoListResourceFromJSONTyped,
|
|
27
|
+
RecentVideoListResourceToJSON,
|
|
28
|
+
RecentVideoListResourceToJSONTyped,
|
|
29
|
+
} from './RecentVideoListResource';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface PaginatedRecentVideoListResourceResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface PaginatedRecentVideoListResourceResponse {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<RecentVideoListResource>}
|
|
40
|
+
* @memberof PaginatedRecentVideoListResourceResponse
|
|
41
|
+
*/
|
|
42
|
+
data: Array<RecentVideoListResource>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {PagingMetadata}
|
|
46
|
+
* @memberof PaginatedRecentVideoListResourceResponse
|
|
47
|
+
*/
|
|
48
|
+
meta: PagingMetadata;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the PaginatedRecentVideoListResourceResponse interface.
|
|
53
|
+
*/
|
|
54
|
+
export function instanceOfPaginatedRecentVideoListResourceResponse(value: object): value is PaginatedRecentVideoListResourceResponse {
|
|
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 PaginatedRecentVideoListResourceResponseFromJSON(json: any): PaginatedRecentVideoListResourceResponse {
|
|
61
|
+
return PaginatedRecentVideoListResourceResponseFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function PaginatedRecentVideoListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedRecentVideoListResourceResponse {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': ((json['data'] as Array<any>).map(RecentVideoListResourceFromJSON)),
|
|
71
|
+
'meta': PagingMetadataFromJSON(json['meta']),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function PaginatedRecentVideoListResourceResponseToJSON(json: any): PaginatedRecentVideoListResourceResponse {
|
|
76
|
+
return PaginatedRecentVideoListResourceResponseToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PaginatedRecentVideoListResourceResponseToJSONTyped(value?: PaginatedRecentVideoListResourceResponse | 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(RecentVideoListResourceToJSON)),
|
|
87
|
+
'meta': PagingMetadataToJSON(value['meta']),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -0,0 +1,125 @@
|
|
|
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
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface RecentVideoListResource
|
|
28
|
+
*/
|
|
29
|
+
export interface RecentVideoListResource {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof RecentVideoListResource
|
|
34
|
+
*/
|
|
35
|
+
id?: number | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof RecentVideoListResource
|
|
40
|
+
*/
|
|
41
|
+
incidentId?: number | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {VenueLiteResource}
|
|
45
|
+
* @memberof RecentVideoListResource
|
|
46
|
+
*/
|
|
47
|
+
venue: VenueLiteResource | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof RecentVideoListResource
|
|
52
|
+
*/
|
|
53
|
+
originalFilename: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof RecentVideoListResource
|
|
58
|
+
*/
|
|
59
|
+
sizeBytes: number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {Date}
|
|
63
|
+
* @memberof RecentVideoListResource
|
|
64
|
+
*/
|
|
65
|
+
createdAt?: Date | null;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof RecentVideoListResource
|
|
70
|
+
*/
|
|
71
|
+
playbackUrl: string;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Check if a given object implements the RecentVideoListResource interface.
|
|
76
|
+
*/
|
|
77
|
+
export function instanceOfRecentVideoListResource(value: object): value is RecentVideoListResource {
|
|
78
|
+
if (!('venue' in value) || value['venue'] === undefined) return false;
|
|
79
|
+
if (!('originalFilename' in value) || value['originalFilename'] === undefined) return false;
|
|
80
|
+
if (!('sizeBytes' in value) || value['sizeBytes'] === undefined) return false;
|
|
81
|
+
if (!('playbackUrl' in value) || value['playbackUrl'] === undefined) return false;
|
|
82
|
+
return true;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function RecentVideoListResourceFromJSON(json: any): RecentVideoListResource {
|
|
86
|
+
return RecentVideoListResourceFromJSONTyped(json, false);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function RecentVideoListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecentVideoListResource {
|
|
90
|
+
if (json == null) {
|
|
91
|
+
return json;
|
|
92
|
+
}
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
96
|
+
'incidentId': json['incidentId'] == null ? undefined : json['incidentId'],
|
|
97
|
+
'venue': VenueLiteResourceFromJSON(json['venue']),
|
|
98
|
+
'originalFilename': json['originalFilename'],
|
|
99
|
+
'sizeBytes': json['sizeBytes'],
|
|
100
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
101
|
+
'playbackUrl': json['playbackUrl'],
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export function RecentVideoListResourceToJSON(json: any): RecentVideoListResource {
|
|
106
|
+
return RecentVideoListResourceToJSONTyped(json, false);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export function RecentVideoListResourceToJSONTyped(value?: RecentVideoListResource | null, ignoreDiscriminator: boolean = false): any {
|
|
110
|
+
if (value == null) {
|
|
111
|
+
return value;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
return {
|
|
115
|
+
|
|
116
|
+
'id': value['id'],
|
|
117
|
+
'incidentId': value['incidentId'],
|
|
118
|
+
'venue': VenueLiteResourceToJSON(value['venue']),
|
|
119
|
+
'originalFilename': value['originalFilename'],
|
|
120
|
+
'sizeBytes': value['sizeBytes'],
|
|
121
|
+
'createdAt': value['createdAt'] === null ? null : ((value['createdAt'] as any)?.toISOString()),
|
|
122
|
+
'playbackUrl': value['playbackUrl'],
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
|
|
@@ -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 { RecentVideoListResource } from './RecentVideoListResource';
|
|
17
|
+
import {
|
|
18
|
+
RecentVideoListResourceFromJSON,
|
|
19
|
+
RecentVideoListResourceFromJSONTyped,
|
|
20
|
+
RecentVideoListResourceToJSON,
|
|
21
|
+
RecentVideoListResourceToJSONTyped,
|
|
22
|
+
} from './RecentVideoListResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface RecentVideoListResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface RecentVideoListResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<RecentVideoListResource>}
|
|
33
|
+
* @memberof RecentVideoListResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<RecentVideoListResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the RecentVideoListResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfRecentVideoListResourceArrayResponse(value: object): value is RecentVideoListResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function RecentVideoListResourceArrayResponseFromJSON(json: any): RecentVideoListResourceArrayResponse {
|
|
46
|
+
return RecentVideoListResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function RecentVideoListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecentVideoListResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(RecentVideoListResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function RecentVideoListResourceArrayResponseToJSON(json: any): RecentVideoListResourceArrayResponse {
|
|
60
|
+
return RecentVideoListResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function RecentVideoListResourceArrayResponseToJSONTyped(value?: RecentVideoListResourceArrayResponse | 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(RecentVideoListResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -129,13 +129,13 @@ export interface RegisterResource {
|
|
|
129
129
|
* @type {number}
|
|
130
130
|
* @memberof RegisterResource
|
|
131
131
|
*/
|
|
132
|
-
signOffLat
|
|
132
|
+
signOffLat?: number | null;
|
|
133
133
|
/**
|
|
134
134
|
*
|
|
135
135
|
* @type {number}
|
|
136
136
|
* @memberof RegisterResource
|
|
137
137
|
*/
|
|
138
|
-
signOffLong
|
|
138
|
+
signOffLong: number;
|
|
139
139
|
/**
|
|
140
140
|
*
|
|
141
141
|
* @type {string}
|
|
@@ -215,7 +215,7 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
|
|
|
215
215
|
if (!('firstAidImage' in value) || value['firstAidImage'] === undefined) return false;
|
|
216
216
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
217
217
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
218
|
-
if (!('
|
|
218
|
+
if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
|
|
219
219
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
220
220
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
|
|
221
221
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
|
|
@@ -249,8 +249,8 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
249
249
|
'firstAidImage': json['firstAidImage'],
|
|
250
250
|
'signOnLat': json['signOnLat'],
|
|
251
251
|
'signOnLong': json['signOnLong'],
|
|
252
|
-
'signOffLat': json['signOffLat'],
|
|
253
|
-
'signOffLong': json['signOffLong']
|
|
252
|
+
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
253
|
+
'signOffLong': json['signOffLong'],
|
|
254
254
|
'licenceNumber': json['licenceNumber'],
|
|
255
255
|
'licenceExpiry': json['licenceExpiry'],
|
|
256
256
|
'licenceFirstName': json['licenceFirstName'],
|
package/src/models/index.ts
CHANGED
|
@@ -49,6 +49,7 @@ export * from './IncidentVideoSignedUrlResource';
|
|
|
49
49
|
export * from './IncidentVideoSignedUrlResourceArrayResponse';
|
|
50
50
|
export * from './IncidentVideoUploadTokenResource';
|
|
51
51
|
export * from './IncidentVideoUploadTokenResourceArrayResponse';
|
|
52
|
+
export * from './IncidentVideosRecentRequest';
|
|
52
53
|
export * from './IncidentsApproveRequest';
|
|
53
54
|
export * from './IncidentsEligibleOwnersRequest';
|
|
54
55
|
export * from './IncidentsExportCsvBulkRequest';
|
|
@@ -96,6 +97,7 @@ export * from './PaginatedIncidentListResourceResponse';
|
|
|
96
97
|
export * from './PaginatedLicenceCheckLogResourceResponse';
|
|
97
98
|
export * from './PaginatedLicenceListResourceResponse';
|
|
98
99
|
export * from './PaginatedLicenceResourceResponse';
|
|
100
|
+
export * from './PaginatedRecentVideoListResourceResponse';
|
|
99
101
|
export * from './PaginatedRegisterGroupedByRosterResourceResponse';
|
|
100
102
|
export * from './PaginatedRegisterListResourceResponse';
|
|
101
103
|
export * from './PaginatedRegisterResourceResponse';
|
|
@@ -108,6 +110,8 @@ export * from './PaginatedVenueResourceResponse';
|
|
|
108
110
|
export * from './PagingMetadata';
|
|
109
111
|
export * from './PdfExportResource';
|
|
110
112
|
export * from './PdfExportResourceArrayResponse';
|
|
113
|
+
export * from './RecentVideoListResource';
|
|
114
|
+
export * from './RecentVideoListResourceArrayResponse';
|
|
111
115
|
export * from './RegisterGroupedByRosterResource';
|
|
112
116
|
export * from './RegisterGroupedByRosterResourceArrayResponse';
|
|
113
117
|
export * from './RegisterListResource';
|