@digital8/security-registers-backend-ts-sdk 0.0.251 → 0.0.253
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 -12
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +1 -83
- package/dist/apis/GeneralApi.js +0 -407
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +3 -1
- package/dist/models/IncidentResource.d.ts +0 -13
- package/dist/models/IncidentResource.js +0 -7
- package/dist/models/RegisterGroupedByRosterResource.d.ts +1 -1
- package/dist/models/RegisterGroupedByRosterResource.js +4 -3
- package/dist/models/RegisterListResource.d.ts +3 -3
- package/dist/models/RegisterListResource.js +7 -5
- package/dist/models/RegisterResource.d.ts +2 -2
- package/dist/models/RegisterResource.js +3 -3
- package/dist/models/RosterListResource.d.ts +1 -1
- package/dist/models/RosterListResource.js +4 -3
- package/dist/models/index.d.ts +0 -12
- package/dist/models/index.js +0 -12
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +0 -394
- package/src/models/AddressResource.ts +3 -2
- package/src/models/IncidentResource.ts +0 -24
- package/src/models/RegisterGroupedByRosterResource.ts +4 -3
- package/src/models/RegisterListResource.ts +8 -7
- package/src/models/RegisterResource.ts +5 -5
- package/src/models/RosterListResource.ts +4 -3
- package/src/models/index.ts +0 -12
- package/dist/models/IncidentListResource.d.ts +0 -95
- package/dist/models/IncidentListResource.js +0 -75
- package/dist/models/IncidentListResourceArrayResponse.d.ts +0 -33
- package/dist/models/IncidentListResourceArrayResponse.js +0 -50
- 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/IncidentsListRequest.d.ts +0 -151
- package/dist/models/IncidentsListRequest.js +0 -99
- 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/dist/models/PaginatedIncidentListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedIncidentListResourceResponse.js +0 -57
- package/src/models/IncidentListResource.ts +0 -168
- package/src/models/IncidentListResourceArrayResponse.ts +0 -73
- 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/IncidentsListRequest.ts +0 -222
- package/src/models/IncidentsVideosStoreRequest.ts +0 -84
- package/src/models/IncidentsVideosUploadTokenRequest.ts +0 -84
- package/src/models/PaginatedIncidentListResourceResponse.ts +0 -90
package/src/apis/GeneralApi.ts
CHANGED
|
@@ -22,15 +22,9 @@ import type {
|
|
|
22
22
|
IncidentResource,
|
|
23
23
|
IncidentVersionResource,
|
|
24
24
|
IncidentVersionResourceArrayResponse,
|
|
25
|
-
IncidentVideoResource,
|
|
26
|
-
IncidentVideoSignedUrlResource,
|
|
27
|
-
IncidentVideoUploadTokenResource,
|
|
28
25
|
IncidentsApproveRequest,
|
|
29
|
-
IncidentsListRequest,
|
|
30
26
|
IncidentsStoreRequest,
|
|
31
27
|
IncidentsUpdateRequest,
|
|
32
|
-
IncidentsVideosStoreRequest,
|
|
33
|
-
IncidentsVideosUploadTokenRequest,
|
|
34
28
|
IndexMinimalUserRequest,
|
|
35
29
|
IndexUserRequest,
|
|
36
30
|
LicenceLiteResourceArrayResponse,
|
|
@@ -45,7 +39,6 @@ import type {
|
|
|
45
39
|
NotificationPreferenceResourceArrayResponse,
|
|
46
40
|
NotificationPreferencesStoreRequest,
|
|
47
41
|
NotificationTypeResourceArrayResponse,
|
|
48
|
-
PaginatedIncidentListResourceResponse,
|
|
49
42
|
PaginatedLicenceListResourceResponse,
|
|
50
43
|
PaginatedRegisterGroupedByRosterResourceResponse,
|
|
51
44
|
PaginatedRosterListResourceResponse,
|
|
@@ -114,24 +107,12 @@ import {
|
|
|
114
107
|
IncidentVersionResourceToJSON,
|
|
115
108
|
IncidentVersionResourceArrayResponseFromJSON,
|
|
116
109
|
IncidentVersionResourceArrayResponseToJSON,
|
|
117
|
-
IncidentVideoResourceFromJSON,
|
|
118
|
-
IncidentVideoResourceToJSON,
|
|
119
|
-
IncidentVideoSignedUrlResourceFromJSON,
|
|
120
|
-
IncidentVideoSignedUrlResourceToJSON,
|
|
121
|
-
IncidentVideoUploadTokenResourceFromJSON,
|
|
122
|
-
IncidentVideoUploadTokenResourceToJSON,
|
|
123
110
|
IncidentsApproveRequestFromJSON,
|
|
124
111
|
IncidentsApproveRequestToJSON,
|
|
125
|
-
IncidentsListRequestFromJSON,
|
|
126
|
-
IncidentsListRequestToJSON,
|
|
127
112
|
IncidentsStoreRequestFromJSON,
|
|
128
113
|
IncidentsStoreRequestToJSON,
|
|
129
114
|
IncidentsUpdateRequestFromJSON,
|
|
130
115
|
IncidentsUpdateRequestToJSON,
|
|
131
|
-
IncidentsVideosStoreRequestFromJSON,
|
|
132
|
-
IncidentsVideosStoreRequestToJSON,
|
|
133
|
-
IncidentsVideosUploadTokenRequestFromJSON,
|
|
134
|
-
IncidentsVideosUploadTokenRequestToJSON,
|
|
135
116
|
IndexMinimalUserRequestFromJSON,
|
|
136
117
|
IndexMinimalUserRequestToJSON,
|
|
137
118
|
IndexUserRequestFromJSON,
|
|
@@ -160,8 +141,6 @@ import {
|
|
|
160
141
|
NotificationPreferencesStoreRequestToJSON,
|
|
161
142
|
NotificationTypeResourceArrayResponseFromJSON,
|
|
162
143
|
NotificationTypeResourceArrayResponseToJSON,
|
|
163
|
-
PaginatedIncidentListResourceResponseFromJSON,
|
|
164
|
-
PaginatedIncidentListResourceResponseToJSON,
|
|
165
144
|
PaginatedLicenceListResourceResponseFromJSON,
|
|
166
145
|
PaginatedLicenceListResourceResponseToJSON,
|
|
167
146
|
PaginatedRegisterGroupedByRosterResourceResponseFromJSON,
|
|
@@ -281,14 +260,6 @@ export interface IncidentsApproveOperationRequest {
|
|
|
281
260
|
incidentsApproveRequest?: IncidentsApproveRequest;
|
|
282
261
|
}
|
|
283
262
|
|
|
284
|
-
export interface IncidentsListOperationRequest {
|
|
285
|
-
incidentsListRequest?: IncidentsListRequest;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
export interface IncidentsShowRequest {
|
|
289
|
-
incident: number;
|
|
290
|
-
}
|
|
291
|
-
|
|
292
263
|
export interface IncidentsStoreOperationRequest {
|
|
293
264
|
incidentsStoreRequest?: IncidentsStoreRequest;
|
|
294
265
|
}
|
|
@@ -311,31 +282,6 @@ export interface IncidentsVersionsShowRequest {
|
|
|
311
282
|
version: number;
|
|
312
283
|
}
|
|
313
284
|
|
|
314
|
-
export interface IncidentsVideosDestroyRequest {
|
|
315
|
-
incident: number;
|
|
316
|
-
video: number;
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
export interface IncidentsVideosRetryRequest {
|
|
320
|
-
incident: number;
|
|
321
|
-
video: number;
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
export interface IncidentsVideosSignedUrlRequest {
|
|
325
|
-
incident: number;
|
|
326
|
-
video: number;
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
export interface IncidentsVideosStoreOperationRequest {
|
|
330
|
-
incident: number;
|
|
331
|
-
incidentsVideosStoreRequest?: IncidentsVideosStoreRequest;
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
export interface IncidentsVideosUploadTokenOperationRequest {
|
|
335
|
-
incident: number;
|
|
336
|
-
incidentsVideosUploadTokenRequest?: IncidentsVideosUploadTokenRequest;
|
|
337
|
-
}
|
|
338
|
-
|
|
339
285
|
export interface IndexMinimalUserOperationRequest {
|
|
340
286
|
indexMinimalUserRequest?: IndexMinimalUserRequest;
|
|
341
287
|
}
|
|
@@ -761,91 +707,6 @@ export class GeneralApi extends runtime.BaseAPI {
|
|
|
761
707
|
return await response.value();
|
|
762
708
|
}
|
|
763
709
|
|
|
764
|
-
/**
|
|
765
|
-
* Auto-generated: incidents.list
|
|
766
|
-
*/
|
|
767
|
-
async incidentsListRaw(requestParameters: IncidentsListOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedIncidentListResourceResponse>> {
|
|
768
|
-
const queryParameters: any = {};
|
|
769
|
-
|
|
770
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
771
|
-
|
|
772
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
773
|
-
|
|
774
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
775
|
-
const token = this.configuration.accessToken;
|
|
776
|
-
const tokenString = await token("bearerAuth", []);
|
|
777
|
-
|
|
778
|
-
if (tokenString) {
|
|
779
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
780
|
-
}
|
|
781
|
-
}
|
|
782
|
-
|
|
783
|
-
let urlPath = `/api/incidents/list`;
|
|
784
|
-
|
|
785
|
-
const response = await this.request({
|
|
786
|
-
path: urlPath,
|
|
787
|
-
method: 'POST',
|
|
788
|
-
headers: headerParameters,
|
|
789
|
-
query: queryParameters,
|
|
790
|
-
body: IncidentsListRequestToJSON(requestParameters['incidentsListRequest']),
|
|
791
|
-
}, initOverrides);
|
|
792
|
-
|
|
793
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedIncidentListResourceResponseFromJSON(jsonValue));
|
|
794
|
-
}
|
|
795
|
-
|
|
796
|
-
/**
|
|
797
|
-
* Auto-generated: incidents.list
|
|
798
|
-
*/
|
|
799
|
-
async incidentsList(requestParameters: IncidentsListOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedIncidentListResourceResponse> {
|
|
800
|
-
const response = await this.incidentsListRaw(requestParameters, initOverrides);
|
|
801
|
-
return await response.value();
|
|
802
|
-
}
|
|
803
|
-
|
|
804
|
-
/**
|
|
805
|
-
* Auto-generated: incidents.show
|
|
806
|
-
*/
|
|
807
|
-
async incidentsShowRaw(requestParameters: IncidentsShowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IncidentResource>> {
|
|
808
|
-
if (requestParameters['incident'] == null) {
|
|
809
|
-
throw new runtime.RequiredError(
|
|
810
|
-
'incident',
|
|
811
|
-
'Required parameter "incident" was null or undefined when calling incidentsShow().'
|
|
812
|
-
);
|
|
813
|
-
}
|
|
814
|
-
|
|
815
|
-
const queryParameters: any = {};
|
|
816
|
-
|
|
817
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
818
|
-
|
|
819
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
820
|
-
const token = this.configuration.accessToken;
|
|
821
|
-
const tokenString = await token("bearerAuth", []);
|
|
822
|
-
|
|
823
|
-
if (tokenString) {
|
|
824
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
825
|
-
}
|
|
826
|
-
}
|
|
827
|
-
|
|
828
|
-
let urlPath = `/api/incidents/{incident}`;
|
|
829
|
-
urlPath = urlPath.replace(`{${"incident"}}`, encodeURIComponent(String(requestParameters['incident'])));
|
|
830
|
-
|
|
831
|
-
const response = await this.request({
|
|
832
|
-
path: urlPath,
|
|
833
|
-
method: 'GET',
|
|
834
|
-
headers: headerParameters,
|
|
835
|
-
query: queryParameters,
|
|
836
|
-
}, initOverrides);
|
|
837
|
-
|
|
838
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => IncidentResourceFromJSON(jsonValue));
|
|
839
|
-
}
|
|
840
|
-
|
|
841
|
-
/**
|
|
842
|
-
* Auto-generated: incidents.show
|
|
843
|
-
*/
|
|
844
|
-
async incidentsShow(requestParameters: IncidentsShowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IncidentResource> {
|
|
845
|
-
const response = await this.incidentsShowRaw(requestParameters, initOverrides);
|
|
846
|
-
return await response.value();
|
|
847
|
-
}
|
|
848
|
-
|
|
849
710
|
/**
|
|
850
711
|
* Auto-generated: incidents.store
|
|
851
712
|
*/
|
|
@@ -1077,261 +938,6 @@ export class GeneralApi extends runtime.BaseAPI {
|
|
|
1077
938
|
return await response.value();
|
|
1078
939
|
}
|
|
1079
940
|
|
|
1080
|
-
/**
|
|
1081
|
-
* Auto-generated: incidents.videos.destroy
|
|
1082
|
-
*/
|
|
1083
|
-
async incidentsVideosDestroyRaw(requestParameters: IncidentsVideosDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>> {
|
|
1084
|
-
if (requestParameters['incident'] == null) {
|
|
1085
|
-
throw new runtime.RequiredError(
|
|
1086
|
-
'incident',
|
|
1087
|
-
'Required parameter "incident" was null or undefined when calling incidentsVideosDestroy().'
|
|
1088
|
-
);
|
|
1089
|
-
}
|
|
1090
|
-
|
|
1091
|
-
if (requestParameters['video'] == null) {
|
|
1092
|
-
throw new runtime.RequiredError(
|
|
1093
|
-
'video',
|
|
1094
|
-
'Required parameter "video" was null or undefined when calling incidentsVideosDestroy().'
|
|
1095
|
-
);
|
|
1096
|
-
}
|
|
1097
|
-
|
|
1098
|
-
const queryParameters: any = {};
|
|
1099
|
-
|
|
1100
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1101
|
-
|
|
1102
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
1103
|
-
const token = this.configuration.accessToken;
|
|
1104
|
-
const tokenString = await token("bearerAuth", []);
|
|
1105
|
-
|
|
1106
|
-
if (tokenString) {
|
|
1107
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1108
|
-
}
|
|
1109
|
-
}
|
|
1110
|
-
|
|
1111
|
-
let urlPath = `/api/incidents/{incident}/videos/{video}`;
|
|
1112
|
-
urlPath = urlPath.replace(`{${"incident"}}`, encodeURIComponent(String(requestParameters['incident'])));
|
|
1113
|
-
urlPath = urlPath.replace(`{${"video"}}`, encodeURIComponent(String(requestParameters['video'])));
|
|
1114
|
-
|
|
1115
|
-
const response = await this.request({
|
|
1116
|
-
path: urlPath,
|
|
1117
|
-
method: 'DELETE',
|
|
1118
|
-
headers: headerParameters,
|
|
1119
|
-
query: queryParameters,
|
|
1120
|
-
}, initOverrides);
|
|
1121
|
-
|
|
1122
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => GenericResponseFromJSON(jsonValue));
|
|
1123
|
-
}
|
|
1124
|
-
|
|
1125
|
-
/**
|
|
1126
|
-
* Auto-generated: incidents.videos.destroy
|
|
1127
|
-
*/
|
|
1128
|
-
async incidentsVideosDestroy(requestParameters: IncidentsVideosDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse> {
|
|
1129
|
-
const response = await this.incidentsVideosDestroyRaw(requestParameters, initOverrides);
|
|
1130
|
-
return await response.value();
|
|
1131
|
-
}
|
|
1132
|
-
|
|
1133
|
-
/**
|
|
1134
|
-
* Auto-generated: incidents.videos.retry
|
|
1135
|
-
*/
|
|
1136
|
-
async incidentsVideosRetryRaw(requestParameters: IncidentsVideosRetryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IncidentVideoResource>> {
|
|
1137
|
-
if (requestParameters['incident'] == null) {
|
|
1138
|
-
throw new runtime.RequiredError(
|
|
1139
|
-
'incident',
|
|
1140
|
-
'Required parameter "incident" was null or undefined when calling incidentsVideosRetry().'
|
|
1141
|
-
);
|
|
1142
|
-
}
|
|
1143
|
-
|
|
1144
|
-
if (requestParameters['video'] == null) {
|
|
1145
|
-
throw new runtime.RequiredError(
|
|
1146
|
-
'video',
|
|
1147
|
-
'Required parameter "video" was null or undefined when calling incidentsVideosRetry().'
|
|
1148
|
-
);
|
|
1149
|
-
}
|
|
1150
|
-
|
|
1151
|
-
const queryParameters: any = {};
|
|
1152
|
-
|
|
1153
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1154
|
-
|
|
1155
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
1156
|
-
const token = this.configuration.accessToken;
|
|
1157
|
-
const tokenString = await token("bearerAuth", []);
|
|
1158
|
-
|
|
1159
|
-
if (tokenString) {
|
|
1160
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1161
|
-
}
|
|
1162
|
-
}
|
|
1163
|
-
|
|
1164
|
-
let urlPath = `/api/incidents/{incident}/videos/{video}/retry`;
|
|
1165
|
-
urlPath = urlPath.replace(`{${"incident"}}`, encodeURIComponent(String(requestParameters['incident'])));
|
|
1166
|
-
urlPath = urlPath.replace(`{${"video"}}`, encodeURIComponent(String(requestParameters['video'])));
|
|
1167
|
-
|
|
1168
|
-
const response = await this.request({
|
|
1169
|
-
path: urlPath,
|
|
1170
|
-
method: 'POST',
|
|
1171
|
-
headers: headerParameters,
|
|
1172
|
-
query: queryParameters,
|
|
1173
|
-
}, initOverrides);
|
|
1174
|
-
|
|
1175
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => IncidentVideoResourceFromJSON(jsonValue));
|
|
1176
|
-
}
|
|
1177
|
-
|
|
1178
|
-
/**
|
|
1179
|
-
* Auto-generated: incidents.videos.retry
|
|
1180
|
-
*/
|
|
1181
|
-
async incidentsVideosRetry(requestParameters: IncidentsVideosRetryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IncidentVideoResource> {
|
|
1182
|
-
const response = await this.incidentsVideosRetryRaw(requestParameters, initOverrides);
|
|
1183
|
-
return await response.value();
|
|
1184
|
-
}
|
|
1185
|
-
|
|
1186
|
-
/**
|
|
1187
|
-
* Auto-generated: incidents.videos.signedUrl
|
|
1188
|
-
*/
|
|
1189
|
-
async incidentsVideosSignedUrlRaw(requestParameters: IncidentsVideosSignedUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IncidentVideoSignedUrlResource>> {
|
|
1190
|
-
if (requestParameters['incident'] == null) {
|
|
1191
|
-
throw new runtime.RequiredError(
|
|
1192
|
-
'incident',
|
|
1193
|
-
'Required parameter "incident" was null or undefined when calling incidentsVideosSignedUrl().'
|
|
1194
|
-
);
|
|
1195
|
-
}
|
|
1196
|
-
|
|
1197
|
-
if (requestParameters['video'] == null) {
|
|
1198
|
-
throw new runtime.RequiredError(
|
|
1199
|
-
'video',
|
|
1200
|
-
'Required parameter "video" was null or undefined when calling incidentsVideosSignedUrl().'
|
|
1201
|
-
);
|
|
1202
|
-
}
|
|
1203
|
-
|
|
1204
|
-
const queryParameters: any = {};
|
|
1205
|
-
|
|
1206
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1207
|
-
|
|
1208
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
1209
|
-
const token = this.configuration.accessToken;
|
|
1210
|
-
const tokenString = await token("bearerAuth", []);
|
|
1211
|
-
|
|
1212
|
-
if (tokenString) {
|
|
1213
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1214
|
-
}
|
|
1215
|
-
}
|
|
1216
|
-
|
|
1217
|
-
let urlPath = `/api/incidents/{incident}/videos/{video}/signed-url`;
|
|
1218
|
-
urlPath = urlPath.replace(`{${"incident"}}`, encodeURIComponent(String(requestParameters['incident'])));
|
|
1219
|
-
urlPath = urlPath.replace(`{${"video"}}`, encodeURIComponent(String(requestParameters['video'])));
|
|
1220
|
-
|
|
1221
|
-
const response = await this.request({
|
|
1222
|
-
path: urlPath,
|
|
1223
|
-
method: 'GET',
|
|
1224
|
-
headers: headerParameters,
|
|
1225
|
-
query: queryParameters,
|
|
1226
|
-
}, initOverrides);
|
|
1227
|
-
|
|
1228
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => IncidentVideoSignedUrlResourceFromJSON(jsonValue));
|
|
1229
|
-
}
|
|
1230
|
-
|
|
1231
|
-
/**
|
|
1232
|
-
* Auto-generated: incidents.videos.signedUrl
|
|
1233
|
-
*/
|
|
1234
|
-
async incidentsVideosSignedUrl(requestParameters: IncidentsVideosSignedUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IncidentVideoSignedUrlResource> {
|
|
1235
|
-
const response = await this.incidentsVideosSignedUrlRaw(requestParameters, initOverrides);
|
|
1236
|
-
return await response.value();
|
|
1237
|
-
}
|
|
1238
|
-
|
|
1239
|
-
/**
|
|
1240
|
-
* Auto-generated: incidents.videos.store
|
|
1241
|
-
*/
|
|
1242
|
-
async incidentsVideosStoreRaw(requestParameters: IncidentsVideosStoreOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IncidentVideoResource>> {
|
|
1243
|
-
if (requestParameters['incident'] == null) {
|
|
1244
|
-
throw new runtime.RequiredError(
|
|
1245
|
-
'incident',
|
|
1246
|
-
'Required parameter "incident" was null or undefined when calling incidentsVideosStore().'
|
|
1247
|
-
);
|
|
1248
|
-
}
|
|
1249
|
-
|
|
1250
|
-
const queryParameters: any = {};
|
|
1251
|
-
|
|
1252
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1253
|
-
|
|
1254
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
1255
|
-
|
|
1256
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
1257
|
-
const token = this.configuration.accessToken;
|
|
1258
|
-
const tokenString = await token("bearerAuth", []);
|
|
1259
|
-
|
|
1260
|
-
if (tokenString) {
|
|
1261
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1262
|
-
}
|
|
1263
|
-
}
|
|
1264
|
-
|
|
1265
|
-
let urlPath = `/api/incidents/{incident}/videos`;
|
|
1266
|
-
urlPath = urlPath.replace(`{${"incident"}}`, encodeURIComponent(String(requestParameters['incident'])));
|
|
1267
|
-
|
|
1268
|
-
const response = await this.request({
|
|
1269
|
-
path: urlPath,
|
|
1270
|
-
method: 'POST',
|
|
1271
|
-
headers: headerParameters,
|
|
1272
|
-
query: queryParameters,
|
|
1273
|
-
body: IncidentsVideosStoreRequestToJSON(requestParameters['incidentsVideosStoreRequest']),
|
|
1274
|
-
}, initOverrides);
|
|
1275
|
-
|
|
1276
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => IncidentVideoResourceFromJSON(jsonValue));
|
|
1277
|
-
}
|
|
1278
|
-
|
|
1279
|
-
/**
|
|
1280
|
-
* Auto-generated: incidents.videos.store
|
|
1281
|
-
*/
|
|
1282
|
-
async incidentsVideosStore(requestParameters: IncidentsVideosStoreOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IncidentVideoResource> {
|
|
1283
|
-
const response = await this.incidentsVideosStoreRaw(requestParameters, initOverrides);
|
|
1284
|
-
return await response.value();
|
|
1285
|
-
}
|
|
1286
|
-
|
|
1287
|
-
/**
|
|
1288
|
-
* Auto-generated: incidents.videos.uploadToken
|
|
1289
|
-
*/
|
|
1290
|
-
async incidentsVideosUploadTokenRaw(requestParameters: IncidentsVideosUploadTokenOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IncidentVideoUploadTokenResource>> {
|
|
1291
|
-
if (requestParameters['incident'] == null) {
|
|
1292
|
-
throw new runtime.RequiredError(
|
|
1293
|
-
'incident',
|
|
1294
|
-
'Required parameter "incident" was null or undefined when calling incidentsVideosUploadToken().'
|
|
1295
|
-
);
|
|
1296
|
-
}
|
|
1297
|
-
|
|
1298
|
-
const queryParameters: any = {};
|
|
1299
|
-
|
|
1300
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1301
|
-
|
|
1302
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
1303
|
-
|
|
1304
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
1305
|
-
const token = this.configuration.accessToken;
|
|
1306
|
-
const tokenString = await token("bearerAuth", []);
|
|
1307
|
-
|
|
1308
|
-
if (tokenString) {
|
|
1309
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1310
|
-
}
|
|
1311
|
-
}
|
|
1312
|
-
|
|
1313
|
-
let urlPath = `/api/incidents/{incident}/videos/upload-token`;
|
|
1314
|
-
urlPath = urlPath.replace(`{${"incident"}}`, encodeURIComponent(String(requestParameters['incident'])));
|
|
1315
|
-
|
|
1316
|
-
const response = await this.request({
|
|
1317
|
-
path: urlPath,
|
|
1318
|
-
method: 'POST',
|
|
1319
|
-
headers: headerParameters,
|
|
1320
|
-
query: queryParameters,
|
|
1321
|
-
body: IncidentsVideosUploadTokenRequestToJSON(requestParameters['incidentsVideosUploadTokenRequest']),
|
|
1322
|
-
}, initOverrides);
|
|
1323
|
-
|
|
1324
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => IncidentVideoUploadTokenResourceFromJSON(jsonValue));
|
|
1325
|
-
}
|
|
1326
|
-
|
|
1327
|
-
/**
|
|
1328
|
-
* Auto-generated: incidents.videos.uploadToken
|
|
1329
|
-
*/
|
|
1330
|
-
async incidentsVideosUploadToken(requestParameters: IncidentsVideosUploadTokenOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IncidentVideoUploadTokenResource> {
|
|
1331
|
-
const response = await this.incidentsVideosUploadTokenRaw(requestParameters, initOverrides);
|
|
1332
|
-
return await response.value();
|
|
1333
|
-
}
|
|
1334
|
-
|
|
1335
941
|
/**
|
|
1336
942
|
* Auto-generated: indexMinimalUser
|
|
1337
943
|
*/
|
|
@@ -36,7 +36,7 @@ export interface AddressResource {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof AddressResource
|
|
38
38
|
*/
|
|
39
|
-
addressLine2
|
|
39
|
+
addressLine2: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
@@ -80,6 +80,7 @@ export interface AddressResource {
|
|
|
80
80
|
*/
|
|
81
81
|
export function instanceOfAddressResource(value: object): value is AddressResource {
|
|
82
82
|
if (!('addressLine1' in value) || value['addressLine1'] === undefined) return false;
|
|
83
|
+
if (!('addressLine2' in value) || value['addressLine2'] === undefined) return false;
|
|
83
84
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
84
85
|
if (!('city' in value) || value['city'] === undefined) return false;
|
|
85
86
|
if (!('state' in value) || value['state'] === undefined) return false;
|
|
@@ -101,7 +102,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
101
102
|
|
|
102
103
|
'id': json['id'] == null ? undefined : json['id'],
|
|
103
104
|
'addressLine1': json['addressLine1'],
|
|
104
|
-
'addressLine2': json['addressLine2']
|
|
105
|
+
'addressLine2': json['addressLine2'],
|
|
105
106
|
'suburb': json['suburb'],
|
|
106
107
|
'city': json['city'],
|
|
107
108
|
'state': json['state'],
|
|
@@ -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
|
|
|
@@ -69,7 +69,7 @@ export interface RegisterGroupedByRosterResource {
|
|
|
69
69
|
* @type {Date}
|
|
70
70
|
* @memberof RegisterGroupedByRosterResource
|
|
71
71
|
*/
|
|
72
|
-
finishDateTime
|
|
72
|
+
finishDateTime: Date;
|
|
73
73
|
/**
|
|
74
74
|
*
|
|
75
75
|
* @type {Array<RegisterListResource>}
|
|
@@ -86,6 +86,7 @@ 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;
|
|
89
90
|
if (!('registers' in value) || value['registers'] === undefined) return false;
|
|
90
91
|
return true;
|
|
91
92
|
}
|
|
@@ -105,7 +106,7 @@ export function RegisterGroupedByRosterResourceFromJSONTyped(json: any, ignoreDi
|
|
|
105
106
|
'timezone': json['timezone'],
|
|
106
107
|
'state': json['state'],
|
|
107
108
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
108
|
-
'finishDateTime':
|
|
109
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
109
110
|
'registers': (json['registers'] == null ? null : (json['registers'] as Array<any>).map(RegisterListResourceFromJSON)),
|
|
110
111
|
};
|
|
111
112
|
}
|
|
@@ -126,7 +127,7 @@ export function RegisterGroupedByRosterResourceToJSONTyped(value?: RegisterGroup
|
|
|
126
127
|
'timezone': value['timezone'],
|
|
127
128
|
'state': value['state'],
|
|
128
129
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
129
|
-
'finishDateTime':
|
|
130
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
130
131
|
'registers': (value['registers'] == null ? null : (value['registers'] as Array<any>).map(RegisterListResourceToJSON)),
|
|
131
132
|
};
|
|
132
133
|
}
|
|
@@ -88,7 +88,7 @@ export interface RegisterListResource {
|
|
|
88
88
|
* @type {string}
|
|
89
89
|
* @memberof RegisterListResource
|
|
90
90
|
*/
|
|
91
|
-
badgeNumber
|
|
91
|
+
badgeNumber?: string | null;
|
|
92
92
|
/**
|
|
93
93
|
*
|
|
94
94
|
* @type {string}
|
|
@@ -166,13 +166,13 @@ export interface RegisterListResource {
|
|
|
166
166
|
* @type {number}
|
|
167
167
|
* @memberof RegisterListResource
|
|
168
168
|
*/
|
|
169
|
-
signOffLat
|
|
169
|
+
signOffLat: number;
|
|
170
170
|
/**
|
|
171
171
|
*
|
|
172
172
|
* @type {number}
|
|
173
173
|
* @memberof RegisterListResource
|
|
174
174
|
*/
|
|
175
|
-
signOffLong
|
|
175
|
+
signOffLong: number;
|
|
176
176
|
/**
|
|
177
177
|
*
|
|
178
178
|
* @type {Array<IncidentLiteResource>}
|
|
@@ -190,7 +190,6 @@ 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;
|
|
194
193
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
195
194
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
|
|
196
195
|
if (!('licenceLastName' in value) || value['licenceLastName'] === undefined) return false;
|
|
@@ -203,6 +202,8 @@ export function instanceOfRegisterListResource(value: object): value is Register
|
|
|
203
202
|
if (!('firstAid' in value) || value['firstAid'] === undefined) return false;
|
|
204
203
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
205
204
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
205
|
+
if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
|
|
206
|
+
if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
|
|
206
207
|
if (!('incidents' in value) || value['incidents'] === undefined) return false;
|
|
207
208
|
return true;
|
|
208
209
|
}
|
|
@@ -224,7 +225,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
224
225
|
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
225
226
|
'shiftLength': json['shiftLength'],
|
|
226
227
|
'signOffStatus': json['signOffStatus'],
|
|
227
|
-
'badgeNumber': json['badgeNumber'],
|
|
228
|
+
'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
|
|
228
229
|
'licenceNumber': json['licenceNumber'],
|
|
229
230
|
'licenceFirstName': json['licenceFirstName'],
|
|
230
231
|
'licenceLastName': json['licenceLastName'],
|
|
@@ -237,8 +238,8 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
237
238
|
'firstAid': json['firstAid'],
|
|
238
239
|
'signOnLat': json['signOnLat'],
|
|
239
240
|
'signOnLong': json['signOnLong'],
|
|
240
|
-
'signOffLat': json['signOffLat']
|
|
241
|
-
'signOffLong': json['signOffLong']
|
|
241
|
+
'signOffLat': json['signOffLat'],
|
|
242
|
+
'signOffLong': json['signOffLong'],
|
|
242
243
|
'incidents': (json['incidents'] == null ? null : (json['incidents'] as Array<any>).map(IncidentLiteResourceFromJSON)),
|
|
243
244
|
};
|
|
244
245
|
}
|
|
@@ -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}
|
|
@@ -190,7 +190,7 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
|
|
|
190
190
|
if (!('firstAidImage' in value) || value['firstAidImage'] === undefined) return false;
|
|
191
191
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
192
192
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
193
|
-
if (!('
|
|
193
|
+
if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
|
|
194
194
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
195
195
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
|
|
196
196
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
|
|
@@ -222,8 +222,8 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
222
222
|
'firstAidImage': json['firstAidImage'],
|
|
223
223
|
'signOnLat': json['signOnLat'],
|
|
224
224
|
'signOnLong': json['signOnLong'],
|
|
225
|
-
'signOffLat': json['signOffLat'],
|
|
226
|
-
'signOffLong': json['signOffLong']
|
|
225
|
+
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
226
|
+
'signOffLong': json['signOffLong'],
|
|
227
227
|
'licenceNumber': json['licenceNumber'],
|
|
228
228
|
'licenceExpiry': json['licenceExpiry'],
|
|
229
229
|
'licenceFirstName': json['licenceFirstName'],
|