@digital8/security-registers-backend-ts-sdk 0.0.332 → 0.0.334
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 +3 -1
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +20 -45
- package/dist/apis/GeneralApi.js +107 -223
- package/dist/models/AssetResource.d.ts +1 -1
- package/dist/models/AssetResource.js +3 -1
- package/dist/models/AuthRegisterGuardRequestLicence.d.ts +0 -5
- package/dist/models/AuthRegisterGuardRequestLicence.js +1 -6
- package/dist/models/IncidentFieldSchemaResource.d.ts +11 -2
- package/dist/models/IncidentFieldSchemaResource.js +9 -0
- package/dist/models/IncidentFieldSchemasShowRequest.d.ts +0 -5
- package/dist/models/IncidentFieldSchemasShowRequest.js +1 -6
- package/dist/models/IncidentImageResource.d.ts +1 -1
- package/dist/models/IncidentImageResource.js +3 -1
- package/dist/models/IncidentVideoResource.d.ts +10 -1
- package/dist/models/IncidentVideoResource.js +9 -0
- package/dist/models/LicenceListResource.d.ts +11 -2
- package/dist/models/LicenceListResource.js +9 -0
- package/dist/models/LicenceLiteResource.d.ts +11 -2
- package/dist/models/LicenceLiteResource.js +9 -0
- package/dist/models/LicenceResource.d.ts +11 -2
- package/dist/models/LicenceResource.js +9 -0
- package/dist/models/LicenceVerificationFallbackSettingResource.d.ts +57 -0
- package/dist/models/LicenceVerificationFallbackSettingResource.js +67 -0
- package/dist/models/LicenceVerificationFallbackSettingResourceArrayResponse.d.ts +33 -0
- package/dist/models/LicenceVerificationFallbackSettingResourceArrayResponse.js +50 -0
- package/dist/models/LicencesStoreRequest.d.ts +0 -5
- package/dist/models/LicencesStoreRequest.js +1 -6
- package/dist/models/LicencesUpdateRequest.d.ts +0 -5
- package/dist/models/LicencesUpdateRequest.js +1 -6
- package/dist/models/LicencesVerifyRequest.d.ts +0 -5
- package/dist/models/LicencesVerifyRequest.js +1 -6
- package/dist/models/MobileDeviceResource.d.ts +9 -1
- package/dist/models/MobileDeviceResource.js +8 -0
- package/dist/models/NotificationPreferenceResource.d.ts +12 -1
- package/dist/models/NotificationPreferenceResource.js +11 -0
- package/dist/models/PdfExportQueuedResource.d.ts +11 -1
- package/dist/models/PdfExportQueuedResource.js +10 -0
- package/dist/models/PdfExportResource.d.ts +11 -1
- package/dist/models/PdfExportResource.js +10 -0
- package/dist/models/RegisterListResource.d.ts +11 -2
- package/dist/models/RegisterListResource.js +10 -3
- package/dist/models/RegisterResource.d.ts +12 -3
- package/dist/models/RegisterResource.js +12 -3
- package/dist/models/RosterListResource.d.ts +11 -2
- package/dist/models/RosterListResource.js +13 -3
- package/dist/models/RosterLiteResource.d.ts +1 -1
- package/dist/models/RosterLiteResource.js +3 -4
- package/dist/models/RosterResource.d.ts +10 -1
- package/dist/models/RosterResource.js +9 -0
- package/dist/models/RosterWithRegistersResource.d.ts +10 -1
- package/dist/models/RosterWithRegistersResource.js +9 -0
- package/dist/models/SettingsLicenceVerificationFallbackUpdateRequest.d.ts +44 -0
- package/dist/models/SettingsLicenceVerificationFallbackUpdateRequest.js +53 -0
- package/dist/models/UsersCreateWithRoleRequestLicencesInner.d.ts +0 -5
- package/dist/models/UsersCreateWithRoleRequestLicencesInner.js +1 -6
- package/dist/models/index.d.ts +3 -1
- package/dist/models/index.js +3 -1
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +87 -194
- package/src/models/AssetResource.ts +3 -2
- package/src/models/AuthRegisterGuardRequestLicence.ts +1 -6
- package/src/models/IncidentFieldSchemaResource.ts +14 -2
- package/src/models/IncidentFieldSchemasShowRequest.ts +1 -6
- package/src/models/IncidentImageResource.ts +3 -2
- package/src/models/IncidentVideoResource.ts +13 -1
- package/src/models/LicenceListResource.ts +14 -2
- package/src/models/LicenceLiteResource.ts +14 -2
- package/src/models/LicenceResource.ts +14 -2
- package/src/models/LicenceVerificationFallbackSettingResource.ts +109 -0
- package/src/models/LicenceVerificationFallbackSettingResourceArrayResponse.ts +73 -0
- package/src/models/LicencesStoreRequest.ts +1 -6
- package/src/models/LicencesUpdateRequest.ts +1 -6
- package/src/models/LicencesVerifyRequest.ts +1 -6
- package/src/models/MobileDeviceResource.ts +12 -1
- package/src/models/NotificationPreferenceResource.ts +15 -1
- package/src/models/PdfExportQueuedResource.ts +14 -1
- package/src/models/PdfExportResource.ts +14 -1
- package/src/models/RegisterListResource.ts +15 -4
- package/src/models/RegisterResource.ts +18 -6
- package/src/models/RosterListResource.ts +17 -4
- package/src/models/RosterLiteResource.ts +3 -4
- package/src/models/RosterResource.ts +13 -1
- package/src/models/RosterWithRegistersResource.ts +13 -1
- package/src/models/SettingsLicenceVerificationFallbackUpdateRequest.ts +81 -0
- package/src/models/UsersCreateWithRoleRequestLicencesInner.ts +1 -6
- package/src/models/index.ts +3 -1
- package/dist/models/IncidentsExportCsvBulkRequest.d.ts +0 -56
- package/dist/models/IncidentsExportCsvBulkRequest.js +0 -63
- package/src/models/IncidentsExportCsvBulkRequest.ts +0 -100
package/src/apis/GeneralApi.ts
CHANGED
|
@@ -30,7 +30,6 @@ import type {
|
|
|
30
30
|
IncidentVideoSignedUrlResource,
|
|
31
31
|
IncidentVideoUploadTokenResource,
|
|
32
32
|
IncidentsApproveRequest,
|
|
33
|
-
IncidentsExportCsvBulkRequest,
|
|
34
33
|
IncidentsExportPdfBulkRequest,
|
|
35
34
|
IncidentsListRequest,
|
|
36
35
|
IncidentsStoreRequest,
|
|
@@ -41,6 +40,7 @@ import type {
|
|
|
41
40
|
IndexUserRequest,
|
|
42
41
|
LicenceLiteResourceArrayResponse,
|
|
43
42
|
LicenceResource,
|
|
43
|
+
LicenceVerificationFallbackSettingResourceArrayResponse,
|
|
44
44
|
LicencesListAllRequest,
|
|
45
45
|
LicencesListRequest,
|
|
46
46
|
LicencesStoreRequest,
|
|
@@ -87,6 +87,7 @@ import type {
|
|
|
87
87
|
SecurityCompanyLiteResourceArrayResponse,
|
|
88
88
|
SecurityCompanyResource,
|
|
89
89
|
SendForgotPasswordLinkAuthRequest,
|
|
90
|
+
SettingsLicenceVerificationFallbackUpdateRequest,
|
|
90
91
|
StoreAssetFileRequest,
|
|
91
92
|
StoreUserRequest,
|
|
92
93
|
UpdateUserRequest,
|
|
@@ -140,8 +141,6 @@ import {
|
|
|
140
141
|
IncidentVideoUploadTokenResourceToJSON,
|
|
141
142
|
IncidentsApproveRequestFromJSON,
|
|
142
143
|
IncidentsApproveRequestToJSON,
|
|
143
|
-
IncidentsExportCsvBulkRequestFromJSON,
|
|
144
|
-
IncidentsExportCsvBulkRequestToJSON,
|
|
145
144
|
IncidentsExportPdfBulkRequestFromJSON,
|
|
146
145
|
IncidentsExportPdfBulkRequestToJSON,
|
|
147
146
|
IncidentsListRequestFromJSON,
|
|
@@ -162,6 +161,8 @@ import {
|
|
|
162
161
|
LicenceLiteResourceArrayResponseToJSON,
|
|
163
162
|
LicenceResourceFromJSON,
|
|
164
163
|
LicenceResourceToJSON,
|
|
164
|
+
LicenceVerificationFallbackSettingResourceArrayResponseFromJSON,
|
|
165
|
+
LicenceVerificationFallbackSettingResourceArrayResponseToJSON,
|
|
165
166
|
LicencesListAllRequestFromJSON,
|
|
166
167
|
LicencesListAllRequestToJSON,
|
|
167
168
|
LicencesListRequestFromJSON,
|
|
@@ -254,6 +255,8 @@ import {
|
|
|
254
255
|
SecurityCompanyResourceToJSON,
|
|
255
256
|
SendForgotPasswordLinkAuthRequestFromJSON,
|
|
256
257
|
SendForgotPasswordLinkAuthRequestToJSON,
|
|
258
|
+
SettingsLicenceVerificationFallbackUpdateRequestFromJSON,
|
|
259
|
+
SettingsLicenceVerificationFallbackUpdateRequestToJSON,
|
|
257
260
|
StoreAssetFileRequestFromJSON,
|
|
258
261
|
StoreAssetFileRequestToJSON,
|
|
259
262
|
StoreUserRequestFromJSON,
|
|
@@ -331,22 +334,6 @@ export interface IncidentsDestroyRequest {
|
|
|
331
334
|
incident: number;
|
|
332
335
|
}
|
|
333
336
|
|
|
334
|
-
export interface IncidentsExportCsvRequest {
|
|
335
|
-
incident: number;
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
export interface IncidentsExportCsvBulkOperationRequest {
|
|
339
|
-
incidentsExportCsvBulkRequest?: IncidentsExportCsvBulkRequest;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
export interface IncidentsExportCsvDownloadRequest {
|
|
343
|
-
pdfExport: number;
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
export interface IncidentsExportCsvStatusRequest {
|
|
347
|
-
pdfExport: number;
|
|
348
|
-
}
|
|
349
|
-
|
|
350
337
|
export interface IncidentsExportPdfRequest {
|
|
351
338
|
incident: number;
|
|
352
339
|
}
|
|
@@ -576,6 +563,10 @@ export interface SendForgotPasswordLinkAuthOperationRequest {
|
|
|
576
563
|
sendForgotPasswordLinkAuthRequest?: SendForgotPasswordLinkAuthRequest;
|
|
577
564
|
}
|
|
578
565
|
|
|
566
|
+
export interface SettingsLicenceVerificationFallbackUpdateOperationRequest {
|
|
567
|
+
settingsLicenceVerificationFallbackUpdateRequest?: SettingsLicenceVerificationFallbackUpdateRequest;
|
|
568
|
+
}
|
|
569
|
+
|
|
579
570
|
export interface StoreAssetFileOperationRequest {
|
|
580
571
|
storeAssetFileRequest?: StoreAssetFileRequest;
|
|
581
572
|
}
|
|
@@ -1048,181 +1039,6 @@ export class GeneralApi extends runtime.BaseAPI {
|
|
|
1048
1039
|
return await response.value();
|
|
1049
1040
|
}
|
|
1050
1041
|
|
|
1051
|
-
/**
|
|
1052
|
-
* Auto-generated: incidents.exportCsv
|
|
1053
|
-
*/
|
|
1054
|
-
async incidentsExportCsvRaw(requestParameters: IncidentsExportCsvRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PdfExportQueuedResource>> {
|
|
1055
|
-
if (requestParameters['incident'] == null) {
|
|
1056
|
-
throw new runtime.RequiredError(
|
|
1057
|
-
'incident',
|
|
1058
|
-
'Required parameter "incident" was null or undefined when calling incidentsExportCsv().'
|
|
1059
|
-
);
|
|
1060
|
-
}
|
|
1061
|
-
|
|
1062
|
-
const queryParameters: any = {};
|
|
1063
|
-
|
|
1064
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1065
|
-
|
|
1066
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
1067
|
-
const token = this.configuration.accessToken;
|
|
1068
|
-
const tokenString = await token("bearerAuth", []);
|
|
1069
|
-
|
|
1070
|
-
if (tokenString) {
|
|
1071
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1072
|
-
}
|
|
1073
|
-
}
|
|
1074
|
-
|
|
1075
|
-
let urlPath = `/api/incidents/{incident}/export-csv`;
|
|
1076
|
-
urlPath = urlPath.replace(`{${"incident"}}`, encodeURIComponent(String(requestParameters['incident'])));
|
|
1077
|
-
|
|
1078
|
-
const response = await this.request({
|
|
1079
|
-
path: urlPath,
|
|
1080
|
-
method: 'POST',
|
|
1081
|
-
headers: headerParameters,
|
|
1082
|
-
query: queryParameters,
|
|
1083
|
-
}, initOverrides);
|
|
1084
|
-
|
|
1085
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => PdfExportQueuedResourceFromJSON(jsonValue));
|
|
1086
|
-
}
|
|
1087
|
-
|
|
1088
|
-
/**
|
|
1089
|
-
* Auto-generated: incidents.exportCsv
|
|
1090
|
-
*/
|
|
1091
|
-
async incidentsExportCsv(requestParameters: IncidentsExportCsvRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PdfExportQueuedResource> {
|
|
1092
|
-
const response = await this.incidentsExportCsvRaw(requestParameters, initOverrides);
|
|
1093
|
-
return await response.value();
|
|
1094
|
-
}
|
|
1095
|
-
|
|
1096
|
-
/**
|
|
1097
|
-
* Auto-generated: incidents.exportCsv.bulk
|
|
1098
|
-
*/
|
|
1099
|
-
async incidentsExportCsvBulkRaw(requestParameters: IncidentsExportCsvBulkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PdfExportQueuedResource>> {
|
|
1100
|
-
const queryParameters: any = {};
|
|
1101
|
-
|
|
1102
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1103
|
-
|
|
1104
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
1105
|
-
|
|
1106
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
1107
|
-
const token = this.configuration.accessToken;
|
|
1108
|
-
const tokenString = await token("bearerAuth", []);
|
|
1109
|
-
|
|
1110
|
-
if (tokenString) {
|
|
1111
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1112
|
-
}
|
|
1113
|
-
}
|
|
1114
|
-
|
|
1115
|
-
let urlPath = `/api/incidents/export-csv/bulk`;
|
|
1116
|
-
|
|
1117
|
-
const response = await this.request({
|
|
1118
|
-
path: urlPath,
|
|
1119
|
-
method: 'POST',
|
|
1120
|
-
headers: headerParameters,
|
|
1121
|
-
query: queryParameters,
|
|
1122
|
-
body: IncidentsExportCsvBulkRequestToJSON(requestParameters['incidentsExportCsvBulkRequest']),
|
|
1123
|
-
}, initOverrides);
|
|
1124
|
-
|
|
1125
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => PdfExportQueuedResourceFromJSON(jsonValue));
|
|
1126
|
-
}
|
|
1127
|
-
|
|
1128
|
-
/**
|
|
1129
|
-
* Auto-generated: incidents.exportCsv.bulk
|
|
1130
|
-
*/
|
|
1131
|
-
async incidentsExportCsvBulk(requestParameters: IncidentsExportCsvBulkOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PdfExportQueuedResource> {
|
|
1132
|
-
const response = await this.incidentsExportCsvBulkRaw(requestParameters, initOverrides);
|
|
1133
|
-
return await response.value();
|
|
1134
|
-
}
|
|
1135
|
-
|
|
1136
|
-
/**
|
|
1137
|
-
* Auto-generated: incidents.exportCsv.download
|
|
1138
|
-
*/
|
|
1139
|
-
async incidentsExportCsvDownloadRaw(requestParameters: IncidentsExportCsvDownloadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>> {
|
|
1140
|
-
if (requestParameters['pdfExport'] == null) {
|
|
1141
|
-
throw new runtime.RequiredError(
|
|
1142
|
-
'pdfExport',
|
|
1143
|
-
'Required parameter "pdfExport" was null or undefined when calling incidentsExportCsvDownload().'
|
|
1144
|
-
);
|
|
1145
|
-
}
|
|
1146
|
-
|
|
1147
|
-
const queryParameters: any = {};
|
|
1148
|
-
|
|
1149
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1150
|
-
|
|
1151
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
1152
|
-
const token = this.configuration.accessToken;
|
|
1153
|
-
const tokenString = await token("bearerAuth", []);
|
|
1154
|
-
|
|
1155
|
-
if (tokenString) {
|
|
1156
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1157
|
-
}
|
|
1158
|
-
}
|
|
1159
|
-
|
|
1160
|
-
let urlPath = `/api/incidents/export-csv/{pdfExport}/download`;
|
|
1161
|
-
urlPath = urlPath.replace(`{${"pdfExport"}}`, encodeURIComponent(String(requestParameters['pdfExport'])));
|
|
1162
|
-
|
|
1163
|
-
const response = await this.request({
|
|
1164
|
-
path: urlPath,
|
|
1165
|
-
method: 'GET',
|
|
1166
|
-
headers: headerParameters,
|
|
1167
|
-
query: queryParameters,
|
|
1168
|
-
}, initOverrides);
|
|
1169
|
-
|
|
1170
|
-
return new runtime.BlobApiResponse(response);
|
|
1171
|
-
}
|
|
1172
|
-
|
|
1173
|
-
/**
|
|
1174
|
-
* Auto-generated: incidents.exportCsv.download
|
|
1175
|
-
*/
|
|
1176
|
-
async incidentsExportCsvDownload(requestParameters: IncidentsExportCsvDownloadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob> {
|
|
1177
|
-
const response = await this.incidentsExportCsvDownloadRaw(requestParameters, initOverrides);
|
|
1178
|
-
return await response.value();
|
|
1179
|
-
}
|
|
1180
|
-
|
|
1181
|
-
/**
|
|
1182
|
-
* Auto-generated: incidents.exportCsv.status
|
|
1183
|
-
*/
|
|
1184
|
-
async incidentsExportCsvStatusRaw(requestParameters: IncidentsExportCsvStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PdfExportResource>> {
|
|
1185
|
-
if (requestParameters['pdfExport'] == null) {
|
|
1186
|
-
throw new runtime.RequiredError(
|
|
1187
|
-
'pdfExport',
|
|
1188
|
-
'Required parameter "pdfExport" was null or undefined when calling incidentsExportCsvStatus().'
|
|
1189
|
-
);
|
|
1190
|
-
}
|
|
1191
|
-
|
|
1192
|
-
const queryParameters: any = {};
|
|
1193
|
-
|
|
1194
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1195
|
-
|
|
1196
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
1197
|
-
const token = this.configuration.accessToken;
|
|
1198
|
-
const tokenString = await token("bearerAuth", []);
|
|
1199
|
-
|
|
1200
|
-
if (tokenString) {
|
|
1201
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1202
|
-
}
|
|
1203
|
-
}
|
|
1204
|
-
|
|
1205
|
-
let urlPath = `/api/incidents/export-csv/{pdfExport}/status`;
|
|
1206
|
-
urlPath = urlPath.replace(`{${"pdfExport"}}`, encodeURIComponent(String(requestParameters['pdfExport'])));
|
|
1207
|
-
|
|
1208
|
-
const response = await this.request({
|
|
1209
|
-
path: urlPath,
|
|
1210
|
-
method: 'POST',
|
|
1211
|
-
headers: headerParameters,
|
|
1212
|
-
query: queryParameters,
|
|
1213
|
-
}, initOverrides);
|
|
1214
|
-
|
|
1215
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => PdfExportResourceFromJSON(jsonValue));
|
|
1216
|
-
}
|
|
1217
|
-
|
|
1218
|
-
/**
|
|
1219
|
-
* Auto-generated: incidents.exportCsv.status
|
|
1220
|
-
*/
|
|
1221
|
-
async incidentsExportCsvStatus(requestParameters: IncidentsExportCsvStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PdfExportResource> {
|
|
1222
|
-
const response = await this.incidentsExportCsvStatusRaw(requestParameters, initOverrides);
|
|
1223
|
-
return await response.value();
|
|
1224
|
-
}
|
|
1225
|
-
|
|
1226
1042
|
/**
|
|
1227
1043
|
* Auto-generated: incidents.exportPdf
|
|
1228
1044
|
*/
|
|
@@ -3735,6 +3551,83 @@ export class GeneralApi extends runtime.BaseAPI {
|
|
|
3735
3551
|
return await response.value();
|
|
3736
3552
|
}
|
|
3737
3553
|
|
|
3554
|
+
/**
|
|
3555
|
+
* Auto-generated: settings.licenceVerificationFallback.index
|
|
3556
|
+
*/
|
|
3557
|
+
async settingsLicenceVerificationFallbackIndexRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LicenceVerificationFallbackSettingResourceArrayResponse>> {
|
|
3558
|
+
const queryParameters: any = {};
|
|
3559
|
+
|
|
3560
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
3561
|
+
|
|
3562
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3563
|
+
const token = this.configuration.accessToken;
|
|
3564
|
+
const tokenString = await token("bearerAuth", []);
|
|
3565
|
+
|
|
3566
|
+
if (tokenString) {
|
|
3567
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3568
|
+
}
|
|
3569
|
+
}
|
|
3570
|
+
|
|
3571
|
+
let urlPath = `/api/settings/licence-verification-fallback`;
|
|
3572
|
+
|
|
3573
|
+
const response = await this.request({
|
|
3574
|
+
path: urlPath,
|
|
3575
|
+
method: 'GET',
|
|
3576
|
+
headers: headerParameters,
|
|
3577
|
+
query: queryParameters,
|
|
3578
|
+
}, initOverrides);
|
|
3579
|
+
|
|
3580
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => LicenceVerificationFallbackSettingResourceArrayResponseFromJSON(jsonValue));
|
|
3581
|
+
}
|
|
3582
|
+
|
|
3583
|
+
/**
|
|
3584
|
+
* Auto-generated: settings.licenceVerificationFallback.index
|
|
3585
|
+
*/
|
|
3586
|
+
async settingsLicenceVerificationFallbackIndex(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LicenceVerificationFallbackSettingResourceArrayResponse> {
|
|
3587
|
+
const response = await this.settingsLicenceVerificationFallbackIndexRaw(initOverrides);
|
|
3588
|
+
return await response.value();
|
|
3589
|
+
}
|
|
3590
|
+
|
|
3591
|
+
/**
|
|
3592
|
+
* Auto-generated: settings.licenceVerificationFallback.update
|
|
3593
|
+
*/
|
|
3594
|
+
async settingsLicenceVerificationFallbackUpdateRaw(requestParameters: SettingsLicenceVerificationFallbackUpdateOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LicenceVerificationFallbackSettingResourceArrayResponse>> {
|
|
3595
|
+
const queryParameters: any = {};
|
|
3596
|
+
|
|
3597
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
3598
|
+
|
|
3599
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
3600
|
+
|
|
3601
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
3602
|
+
const token = this.configuration.accessToken;
|
|
3603
|
+
const tokenString = await token("bearerAuth", []);
|
|
3604
|
+
|
|
3605
|
+
if (tokenString) {
|
|
3606
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
3607
|
+
}
|
|
3608
|
+
}
|
|
3609
|
+
|
|
3610
|
+
let urlPath = `/api/settings/licence-verification-fallback`;
|
|
3611
|
+
|
|
3612
|
+
const response = await this.request({
|
|
3613
|
+
path: urlPath,
|
|
3614
|
+
method: 'PUT',
|
|
3615
|
+
headers: headerParameters,
|
|
3616
|
+
query: queryParameters,
|
|
3617
|
+
body: SettingsLicenceVerificationFallbackUpdateRequestToJSON(requestParameters['settingsLicenceVerificationFallbackUpdateRequest']),
|
|
3618
|
+
}, initOverrides);
|
|
3619
|
+
|
|
3620
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => LicenceVerificationFallbackSettingResourceArrayResponseFromJSON(jsonValue));
|
|
3621
|
+
}
|
|
3622
|
+
|
|
3623
|
+
/**
|
|
3624
|
+
* Auto-generated: settings.licenceVerificationFallback.update
|
|
3625
|
+
*/
|
|
3626
|
+
async settingsLicenceVerificationFallbackUpdate(requestParameters: SettingsLicenceVerificationFallbackUpdateOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LicenceVerificationFallbackSettingResourceArrayResponse> {
|
|
3627
|
+
const response = await this.settingsLicenceVerificationFallbackUpdateRaw(requestParameters, initOverrides);
|
|
3628
|
+
return await response.value();
|
|
3629
|
+
}
|
|
3630
|
+
|
|
3738
3631
|
/**
|
|
3739
3632
|
* Auto-generated: storeAssetFile
|
|
3740
3633
|
*/
|
|
@@ -48,7 +48,7 @@ export interface AssetResource {
|
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof AssetResource
|
|
50
50
|
*/
|
|
51
|
-
altText
|
|
51
|
+
altText: string;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {number}
|
|
@@ -71,6 +71,7 @@ export function instanceOfAssetResource(value: object): value is AssetResource {
|
|
|
71
71
|
if (!('filePath' in value) || value['filePath'] === undefined) return false;
|
|
72
72
|
if (!('fileName' in value) || value['fileName'] === undefined) return false;
|
|
73
73
|
if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
|
|
74
|
+
if (!('altText' in value) || value['altText'] === undefined) return false;
|
|
74
75
|
if (!('index' in value) || value['index'] === undefined) return false;
|
|
75
76
|
if (!('fileId' in value) || value['fileId'] === undefined) return false;
|
|
76
77
|
return true;
|
|
@@ -90,7 +91,7 @@ export function AssetResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
90
91
|
'filePath': json['filePath'],
|
|
91
92
|
'fileName': json['fileName'],
|
|
92
93
|
'mimeType': json['mimeType'],
|
|
93
|
-
'altText': json['altText']
|
|
94
|
+
'altText': json['altText'],
|
|
94
95
|
'index': json['index'],
|
|
95
96
|
'fileId': json['fileId'],
|
|
96
97
|
};
|
|
@@ -111,12 +111,7 @@ export interface AuthRegisterGuardRequestLicence {
|
|
|
111
111
|
export const AuthRegisterGuardRequestLicenceStateEnum = {
|
|
112
112
|
Qld: 'QLD',
|
|
113
113
|
Nsw: 'NSW',
|
|
114
|
-
|
|
115
|
-
Vic: 'VIC',
|
|
116
|
-
Tas: 'TAS',
|
|
117
|
-
Sa: 'SA',
|
|
118
|
-
Wa: 'WA',
|
|
119
|
-
Nt: 'NT'
|
|
114
|
+
Vic: 'VIC'
|
|
120
115
|
} as const;
|
|
121
116
|
export type AuthRegisterGuardRequestLicenceStateEnum = typeof AuthRegisterGuardRequestLicenceStateEnum[keyof typeof AuthRegisterGuardRequestLicenceStateEnum];
|
|
122
117
|
|
|
@@ -27,10 +27,10 @@ export interface IncidentFieldSchemaResource {
|
|
|
27
27
|
id?: number | null;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
|
-
* @type {
|
|
30
|
+
* @type {string}
|
|
31
31
|
* @memberof IncidentFieldSchemaResource
|
|
32
32
|
*/
|
|
33
|
-
state:
|
|
33
|
+
state: IncidentFieldSchemaResourceStateEnum;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {{ [key: string]: boolean; }}
|
|
@@ -51,6 +51,18 @@ export interface IncidentFieldSchemaResource {
|
|
|
51
51
|
updatedAt?: Date | null;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export const IncidentFieldSchemaResourceStateEnum = {
|
|
59
|
+
Qld: 'QLD',
|
|
60
|
+
Nsw: 'NSW',
|
|
61
|
+
Vic: 'VIC'
|
|
62
|
+
} as const;
|
|
63
|
+
export type IncidentFieldSchemaResourceStateEnum = typeof IncidentFieldSchemaResourceStateEnum[keyof typeof IncidentFieldSchemaResourceStateEnum];
|
|
64
|
+
|
|
65
|
+
|
|
54
66
|
/**
|
|
55
67
|
* Check if a given object implements the IncidentFieldSchemaResource interface.
|
|
56
68
|
*/
|
|
@@ -34,12 +34,7 @@ export interface IncidentFieldSchemasShowRequest {
|
|
|
34
34
|
export const IncidentFieldSchemasShowRequestStateEnum = {
|
|
35
35
|
Qld: 'QLD',
|
|
36
36
|
Nsw: 'NSW',
|
|
37
|
-
|
|
38
|
-
Vic: 'VIC',
|
|
39
|
-
Tas: 'TAS',
|
|
40
|
-
Sa: 'SA',
|
|
41
|
-
Wa: 'WA',
|
|
42
|
-
Nt: 'NT'
|
|
37
|
+
Vic: 'VIC'
|
|
43
38
|
} as const;
|
|
44
39
|
export type IncidentFieldSchemasShowRequestStateEnum = typeof IncidentFieldSchemasShowRequestStateEnum[keyof typeof IncidentFieldSchemasShowRequestStateEnum];
|
|
45
40
|
|
|
@@ -36,7 +36,7 @@ export interface IncidentImageResource {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof IncidentImageResource
|
|
38
38
|
*/
|
|
39
|
-
altText
|
|
39
|
+
altText: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {number}
|
|
@@ -57,6 +57,7 @@ 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;
|
|
60
61
|
if (!('assetId' in value) || value['assetId'] === undefined) return false;
|
|
61
62
|
if (!('url' in value) || value['url'] === undefined) return false;
|
|
62
63
|
return true;
|
|
@@ -74,7 +75,7 @@ export function IncidentImageResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
74
75
|
|
|
75
76
|
'fileId': json['file_id'],
|
|
76
77
|
'mimeType': json['mime_type'],
|
|
77
|
-
'altText': json['alt_text']
|
|
78
|
+
'altText': json['alt_text'],
|
|
78
79
|
'assetId': json['asset_id'],
|
|
79
80
|
'url': json['url'],
|
|
80
81
|
};
|
|
@@ -30,7 +30,7 @@ export interface IncidentVideoResource {
|
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof IncidentVideoResource
|
|
32
32
|
*/
|
|
33
|
-
status:
|
|
33
|
+
status: IncidentVideoResourceStatusEnum;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
@@ -69,6 +69,18 @@ export interface IncidentVideoResource {
|
|
|
69
69
|
updatedAt?: Date | null;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @export
|
|
75
|
+
*/
|
|
76
|
+
export const IncidentVideoResourceStatusEnum = {
|
|
77
|
+
Processing: 'processing',
|
|
78
|
+
Ready: 'ready',
|
|
79
|
+
Failed: 'failed'
|
|
80
|
+
} as const;
|
|
81
|
+
export type IncidentVideoResourceStatusEnum = typeof IncidentVideoResourceStatusEnum[keyof typeof IncidentVideoResourceStatusEnum];
|
|
82
|
+
|
|
83
|
+
|
|
72
84
|
/**
|
|
73
85
|
* Check if a given object implements the IncidentVideoResource interface.
|
|
74
86
|
*/
|
|
@@ -41,10 +41,10 @@ export interface LicenceListResource {
|
|
|
41
41
|
user: UserRelationResource | null;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
|
-
* @type {
|
|
44
|
+
* @type {string}
|
|
45
45
|
* @memberof LicenceListResource
|
|
46
46
|
*/
|
|
47
|
-
state:
|
|
47
|
+
state: LicenceListResourceStateEnum;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {string}
|
|
@@ -83,6 +83,18 @@ export interface LicenceListResource {
|
|
|
83
83
|
createdAt?: Date | null;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* @export
|
|
89
|
+
*/
|
|
90
|
+
export const LicenceListResourceStateEnum = {
|
|
91
|
+
Qld: 'QLD',
|
|
92
|
+
Nsw: 'NSW',
|
|
93
|
+
Vic: 'VIC'
|
|
94
|
+
} as const;
|
|
95
|
+
export type LicenceListResourceStateEnum = typeof LicenceListResourceStateEnum[keyof typeof LicenceListResourceStateEnum];
|
|
96
|
+
|
|
97
|
+
|
|
86
98
|
/**
|
|
87
99
|
* Check if a given object implements the LicenceListResource interface.
|
|
88
100
|
*/
|
|
@@ -33,12 +33,24 @@ export interface LicenceLiteResource {
|
|
|
33
33
|
licenceNumber: string;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
|
-
* @type {
|
|
36
|
+
* @type {string}
|
|
37
37
|
* @memberof LicenceLiteResource
|
|
38
38
|
*/
|
|
39
|
-
state:
|
|
39
|
+
state: LicenceLiteResourceStateEnum;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export const LicenceLiteResourceStateEnum = {
|
|
47
|
+
Qld: 'QLD',
|
|
48
|
+
Nsw: 'NSW',
|
|
49
|
+
Vic: 'VIC'
|
|
50
|
+
} as const;
|
|
51
|
+
export type LicenceLiteResourceStateEnum = typeof LicenceLiteResourceStateEnum[keyof typeof LicenceLiteResourceStateEnum];
|
|
52
|
+
|
|
53
|
+
|
|
42
54
|
/**
|
|
43
55
|
* Check if a given object implements the LicenceLiteResource interface.
|
|
44
56
|
*/
|
|
@@ -41,10 +41,10 @@ export interface LicenceResource {
|
|
|
41
41
|
user: UserRelationResource | null;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
|
-
* @type {
|
|
44
|
+
* @type {string}
|
|
45
45
|
* @memberof LicenceResource
|
|
46
46
|
*/
|
|
47
|
-
state:
|
|
47
|
+
state: LicenceResourceStateEnum;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {string}
|
|
@@ -113,6 +113,18 @@ export interface LicenceResource {
|
|
|
113
113
|
updatedAt?: Date | null;
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* @export
|
|
119
|
+
*/
|
|
120
|
+
export const LicenceResourceStateEnum = {
|
|
121
|
+
Qld: 'QLD',
|
|
122
|
+
Nsw: 'NSW',
|
|
123
|
+
Vic: 'VIC'
|
|
124
|
+
} as const;
|
|
125
|
+
export type LicenceResourceStateEnum = typeof LicenceResourceStateEnum[keyof typeof LicenceResourceStateEnum];
|
|
126
|
+
|
|
127
|
+
|
|
116
128
|
/**
|
|
117
129
|
* Check if a given object implements the LicenceResource interface.
|
|
118
130
|
*/
|
|
@@ -0,0 +1,109 @@
|
|
|
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 { UserLiteResource } from './UserLiteResource';
|
|
17
|
+
import {
|
|
18
|
+
UserLiteResourceFromJSON,
|
|
19
|
+
UserLiteResourceFromJSONTyped,
|
|
20
|
+
UserLiteResourceToJSON,
|
|
21
|
+
UserLiteResourceToJSONTyped,
|
|
22
|
+
} from './UserLiteResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface LicenceVerificationFallbackSettingResource
|
|
28
|
+
*/
|
|
29
|
+
export interface LicenceVerificationFallbackSettingResource {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof LicenceVerificationFallbackSettingResource
|
|
34
|
+
*/
|
|
35
|
+
id: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof LicenceVerificationFallbackSettingResource
|
|
40
|
+
*/
|
|
41
|
+
state: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
* @memberof LicenceVerificationFallbackSettingResource
|
|
46
|
+
*/
|
|
47
|
+
enabled: boolean;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Date}
|
|
51
|
+
* @memberof LicenceVerificationFallbackSettingResource
|
|
52
|
+
*/
|
|
53
|
+
updatedAt?: Date | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {UserLiteResource}
|
|
57
|
+
* @memberof LicenceVerificationFallbackSettingResource
|
|
58
|
+
*/
|
|
59
|
+
updatedByUser: UserLiteResource | null;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the LicenceVerificationFallbackSettingResource interface.
|
|
64
|
+
*/
|
|
65
|
+
export function instanceOfLicenceVerificationFallbackSettingResource(value: object): value is LicenceVerificationFallbackSettingResource {
|
|
66
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
67
|
+
if (!('state' in value) || value['state'] === undefined) return false;
|
|
68
|
+
if (!('enabled' in value) || value['enabled'] === undefined) return false;
|
|
69
|
+
if (!('updatedByUser' in value) || value['updatedByUser'] === undefined) return false;
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function LicenceVerificationFallbackSettingResourceFromJSON(json: any): LicenceVerificationFallbackSettingResource {
|
|
74
|
+
return LicenceVerificationFallbackSettingResourceFromJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function LicenceVerificationFallbackSettingResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): LicenceVerificationFallbackSettingResource {
|
|
78
|
+
if (json == null) {
|
|
79
|
+
return json;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'id': json['id'],
|
|
84
|
+
'state': json['state'],
|
|
85
|
+
'enabled': json['enabled'],
|
|
86
|
+
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
87
|
+
'updatedByUser': UserLiteResourceFromJSON(json['updatedByUser']),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function LicenceVerificationFallbackSettingResourceToJSON(json: any): LicenceVerificationFallbackSettingResource {
|
|
92
|
+
return LicenceVerificationFallbackSettingResourceToJSONTyped(json, false);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function LicenceVerificationFallbackSettingResourceToJSONTyped(value?: LicenceVerificationFallbackSettingResource | null, ignoreDiscriminator: boolean = false): any {
|
|
96
|
+
if (value == null) {
|
|
97
|
+
return value;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
return {
|
|
101
|
+
|
|
102
|
+
'id': value['id'],
|
|
103
|
+
'state': value['state'],
|
|
104
|
+
'enabled': value['enabled'],
|
|
105
|
+
'updatedAt': value['updatedAt'] === null ? null : ((value['updatedAt'] as any)?.toISOString()),
|
|
106
|
+
'updatedByUser': UserLiteResourceToJSON(value['updatedByUser']),
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
|