@digital8/security-registers-backend-ts-sdk 0.0.314 → 0.0.315
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 +22 -0
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +127 -1
- package/dist/apis/GeneralApi.js +693 -35
- package/dist/models/AssetFileForUploadResource.d.ts +4 -2
- package/dist/models/AuthChangePasswordRequest.d.ts +38 -0
- package/dist/models/AuthChangePasswordRequest.js +55 -0
- package/dist/models/AuthProfileUpdateRequest.d.ts +56 -0
- package/dist/models/AuthProfileUpdateRequest.js +57 -0
- package/dist/models/AuthRegisterGuardRequest.d.ts +70 -0
- package/dist/models/AuthRegisterGuardRequest.js +77 -0
- package/dist/models/AuthRegisterGuardRequestLicence.d.ts +98 -0
- package/dist/models/AuthRegisterGuardRequestLicence.js +95 -0
- package/dist/models/AuthRegisterGuardRequestProfileSignature.d.ts +50 -0
- package/dist/models/AuthRegisterGuardRequestProfileSignature.js +55 -0
- package/dist/models/BackAsset.d.ts +50 -0
- package/dist/models/BackAsset.js +55 -0
- package/dist/models/DevicesRegisterRequest.d.ts +76 -0
- package/dist/models/DevicesRegisterRequest.js +73 -0
- package/dist/models/FirstAidAsset.d.ts +50 -0
- package/dist/models/FirstAidAsset.js +55 -0
- package/dist/models/FrontAsset.d.ts +50 -0
- package/dist/models/FrontAsset.js +55 -0
- package/dist/models/IncidentFieldSchemaResource.d.ts +4 -2
- package/dist/models/IncidentImageResource.d.ts +1 -1
- package/dist/models/IncidentImageResource.js +3 -1
- package/dist/models/IncidentListResource.d.ts +107 -0
- package/dist/models/IncidentListResource.js +81 -0
- package/dist/models/IncidentListResourceArrayResponse.d.ts +33 -0
- package/dist/models/IncidentListResourceArrayResponse.js +50 -0
- package/dist/models/IncidentVideoUploadTokenResource.d.ts +4 -2
- package/dist/models/IncidentsExportPdfBulkRequest.d.ts +56 -0
- package/dist/models/IncidentsExportPdfBulkRequest.js +63 -0
- package/dist/models/IncidentsListRequest.d.ts +163 -0
- package/dist/models/IncidentsListRequest.js +103 -0
- package/dist/models/LicencesStoreRequest.d.ts +10 -104
- package/dist/models/LicencesStoreRequest.js +10 -40
- package/dist/models/LicencesStoreRequestBackAsset.d.ts +50 -0
- package/dist/models/LicencesStoreRequestBackAsset.js +55 -0
- package/dist/models/LicencesUpdateRequest.d.ts +9 -104
- package/dist/models/LicencesUpdateRequest.js +9 -40
- package/dist/models/MobileDeviceResource.d.ts +92 -0
- package/dist/models/MobileDeviceResource.js +86 -0
- package/dist/models/MobileDeviceResourceArrayResponse.d.ts +33 -0
- package/dist/models/MobileDeviceResourceArrayResponse.js +50 -0
- package/dist/models/MobileInitResource.d.ts +47 -0
- package/dist/models/MobileInitResource.js +62 -0
- package/dist/models/MobileInitResourceArrayResponse.d.ts +33 -0
- package/dist/models/MobileInitResourceArrayResponse.js +50 -0
- package/dist/models/PaginatedIncidentListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedIncidentListResourceResponse.js +57 -0
- package/dist/models/PdfExportQueuedResource.d.ts +44 -0
- package/dist/models/PdfExportQueuedResource.js +59 -0
- package/dist/models/PdfExportQueuedResourceArrayResponse.d.ts +33 -0
- package/dist/models/PdfExportQueuedResourceArrayResponse.js +50 -0
- package/dist/models/RegisterGroupedByRosterResource.d.ts +1 -1
- package/dist/models/RegisterGroupedByRosterResource.js +4 -3
- package/dist/models/RegisterListResource.d.ts +7 -8
- package/dist/models/RegisterListResource.js +11 -11
- package/dist/models/RegisterResource.d.ts +2 -2
- package/dist/models/RegisterResource.js +6 -10
- package/dist/models/RosterListResource.d.ts +1 -1
- package/dist/models/RosterListResource.js +3 -4
- package/dist/models/RosterLiteResource.d.ts +1 -1
- package/dist/models/RosterLiteResource.js +4 -3
- package/dist/models/RosterWithRegistersResource.d.ts +1 -1
- package/dist/models/RosterWithRegistersResource.js +3 -4
- package/dist/models/RsaAsset.d.ts +50 -0
- package/dist/models/RsaAsset.js +55 -0
- package/dist/models/UsersCreateWithRoleRequestLicencesInner.d.ts +12 -8
- package/dist/models/UsersCreateWithRoleRequestLicencesInner.js +12 -8
- package/dist/models/VenueLiteResource.d.ts +6 -0
- package/dist/models/VenueLiteResource.js +4 -0
- package/dist/models/index.d.ts +22 -0
- package/dist/models/index.js +22 -0
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +564 -0
- package/src/models/AssetFileForUploadResource.ts +2 -2
- package/src/models/AuthChangePasswordRequest.ts +75 -0
- package/src/models/AuthProfileUpdateRequest.ts +97 -0
- package/src/models/AuthRegisterGuardRequest.ts +135 -0
- package/src/models/AuthRegisterGuardRequestLicence.ts +181 -0
- package/src/models/AuthRegisterGuardRequestProfileSignature.ts +89 -0
- package/src/models/BackAsset.ts +89 -0
- package/src/models/DevicesRegisterRequest.ts +126 -0
- package/src/models/FirstAidAsset.ts +89 -0
- package/src/models/FrontAsset.ts +89 -0
- package/src/models/IncidentFieldSchemaResource.ts +2 -2
- package/src/models/IncidentImageResource.ts +3 -2
- package/src/models/IncidentListResource.ts +185 -0
- package/src/models/IncidentListResourceArrayResponse.ts +73 -0
- package/src/models/IncidentVideoUploadTokenResource.ts +2 -2
- package/src/models/IncidentsExportPdfBulkRequest.ts +100 -0
- package/src/models/IncidentsListRequest.ts +238 -0
- package/src/models/LicencesStoreRequest.ts +31 -144
- package/src/models/LicencesStoreRequestBackAsset.ts +89 -0
- package/src/models/LicencesUpdateRequest.ts +24 -144
- package/src/models/MobileDeviceResource.ts +153 -0
- package/src/models/MobileDeviceResourceArrayResponse.ts +73 -0
- package/src/models/MobileInitResource.ts +106 -0
- package/src/models/MobileInitResourceArrayResponse.ts +73 -0
- package/src/models/PaginatedIncidentListResourceResponse.ts +90 -0
- package/src/models/PdfExportQueuedResource.ts +84 -0
- package/src/models/PdfExportQueuedResourceArrayResponse.ts +73 -0
- package/src/models/RegisterGroupedByRosterResource.ts +4 -3
- package/src/models/RegisterListResource.ts +16 -22
- package/src/models/RegisterResource.ts +5 -7
- package/src/models/RosterListResource.ts +3 -4
- package/src/models/RosterLiteResource.ts +4 -3
- package/src/models/RosterWithRegistersResource.ts +3 -4
- package/src/models/RsaAsset.ts +89 -0
- package/src/models/UsersCreateWithRoleRequestLicencesInner.ts +45 -16
- package/src/models/VenueLiteResource.ts +9 -0
- package/src/models/index.ts +22 -0
package/src/apis/GeneralApi.ts
CHANGED
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
AssetFileForUploadResource,
|
|
19
|
+
AuthChangePasswordRequest,
|
|
20
|
+
AuthProfileUpdateRequest,
|
|
21
|
+
AuthRegisterGuardRequest,
|
|
22
|
+
DevicesRegisterRequest,
|
|
19
23
|
GenericResponse,
|
|
20
24
|
IncidentFieldSchemaResource,
|
|
21
25
|
IncidentFieldSchemasShowRequest,
|
|
@@ -26,6 +30,8 @@ import type {
|
|
|
26
30
|
IncidentVideoSignedUrlResource,
|
|
27
31
|
IncidentVideoUploadTokenResource,
|
|
28
32
|
IncidentsApproveRequest,
|
|
33
|
+
IncidentsExportPdfBulkRequest,
|
|
34
|
+
IncidentsListRequest,
|
|
29
35
|
IncidentsStoreRequest,
|
|
30
36
|
IncidentsUpdateRequest,
|
|
31
37
|
IncidentsVideosStoreRequest,
|
|
@@ -40,10 +46,13 @@ import type {
|
|
|
40
46
|
LicencesUpdateRequest,
|
|
41
47
|
LicencesVerifyRequest,
|
|
42
48
|
LoginAuthRequest,
|
|
49
|
+
MobileDeviceResource,
|
|
50
|
+
MobileInitResource,
|
|
43
51
|
NotificationPreferenceResource,
|
|
44
52
|
NotificationPreferenceResourceArrayResponse,
|
|
45
53
|
NotificationPreferencesStoreRequest,
|
|
46
54
|
NotificationTypeResourceArrayResponse,
|
|
55
|
+
PaginatedIncidentListResourceResponse,
|
|
47
56
|
PaginatedLicenceListResourceResponse,
|
|
48
57
|
PaginatedRegisterGroupedByRosterResourceResponse,
|
|
49
58
|
PaginatedRosterListResourceResponse,
|
|
@@ -51,6 +60,7 @@ import type {
|
|
|
51
60
|
PaginatedSecurityCompanyResourceResponse,
|
|
52
61
|
PaginatedUserResourceResponse,
|
|
53
62
|
PaginatedVenueResourceResponse,
|
|
63
|
+
PdfExportQueuedResource,
|
|
54
64
|
PdfExportResource,
|
|
55
65
|
RegisterLiteResourceArrayResponse,
|
|
56
66
|
RegisterResource,
|
|
@@ -100,6 +110,14 @@ import type {
|
|
|
100
110
|
import {
|
|
101
111
|
AssetFileForUploadResourceFromJSON,
|
|
102
112
|
AssetFileForUploadResourceToJSON,
|
|
113
|
+
AuthChangePasswordRequestFromJSON,
|
|
114
|
+
AuthChangePasswordRequestToJSON,
|
|
115
|
+
AuthProfileUpdateRequestFromJSON,
|
|
116
|
+
AuthProfileUpdateRequestToJSON,
|
|
117
|
+
AuthRegisterGuardRequestFromJSON,
|
|
118
|
+
AuthRegisterGuardRequestToJSON,
|
|
119
|
+
DevicesRegisterRequestFromJSON,
|
|
120
|
+
DevicesRegisterRequestToJSON,
|
|
103
121
|
GenericResponseFromJSON,
|
|
104
122
|
GenericResponseToJSON,
|
|
105
123
|
IncidentFieldSchemaResourceFromJSON,
|
|
@@ -120,6 +138,10 @@ import {
|
|
|
120
138
|
IncidentVideoUploadTokenResourceToJSON,
|
|
121
139
|
IncidentsApproveRequestFromJSON,
|
|
122
140
|
IncidentsApproveRequestToJSON,
|
|
141
|
+
IncidentsExportPdfBulkRequestFromJSON,
|
|
142
|
+
IncidentsExportPdfBulkRequestToJSON,
|
|
143
|
+
IncidentsListRequestFromJSON,
|
|
144
|
+
IncidentsListRequestToJSON,
|
|
123
145
|
IncidentsStoreRequestFromJSON,
|
|
124
146
|
IncidentsStoreRequestToJSON,
|
|
125
147
|
IncidentsUpdateRequestFromJSON,
|
|
@@ -148,6 +170,10 @@ import {
|
|
|
148
170
|
LicencesVerifyRequestToJSON,
|
|
149
171
|
LoginAuthRequestFromJSON,
|
|
150
172
|
LoginAuthRequestToJSON,
|
|
173
|
+
MobileDeviceResourceFromJSON,
|
|
174
|
+
MobileDeviceResourceToJSON,
|
|
175
|
+
MobileInitResourceFromJSON,
|
|
176
|
+
MobileInitResourceToJSON,
|
|
151
177
|
NotificationPreferenceResourceFromJSON,
|
|
152
178
|
NotificationPreferenceResourceToJSON,
|
|
153
179
|
NotificationPreferenceResourceArrayResponseFromJSON,
|
|
@@ -156,6 +182,8 @@ import {
|
|
|
156
182
|
NotificationPreferencesStoreRequestToJSON,
|
|
157
183
|
NotificationTypeResourceArrayResponseFromJSON,
|
|
158
184
|
NotificationTypeResourceArrayResponseToJSON,
|
|
185
|
+
PaginatedIncidentListResourceResponseFromJSON,
|
|
186
|
+
PaginatedIncidentListResourceResponseToJSON,
|
|
159
187
|
PaginatedLicenceListResourceResponseFromJSON,
|
|
160
188
|
PaginatedLicenceListResourceResponseToJSON,
|
|
161
189
|
PaginatedRegisterGroupedByRosterResourceResponseFromJSON,
|
|
@@ -170,6 +198,8 @@ import {
|
|
|
170
198
|
PaginatedUserResourceResponseToJSON,
|
|
171
199
|
PaginatedVenueResourceResponseFromJSON,
|
|
172
200
|
PaginatedVenueResourceResponseToJSON,
|
|
201
|
+
PdfExportQueuedResourceFromJSON,
|
|
202
|
+
PdfExportQueuedResourceToJSON,
|
|
173
203
|
PdfExportResourceFromJSON,
|
|
174
204
|
PdfExportResourceToJSON,
|
|
175
205
|
RegisterLiteResourceArrayResponseFromJSON,
|
|
@@ -262,10 +292,26 @@ import {
|
|
|
262
292
|
VerifyLicenceResourceToJSON,
|
|
263
293
|
} from '../models/index';
|
|
264
294
|
|
|
295
|
+
export interface AuthChangePasswordOperationRequest {
|
|
296
|
+
authChangePasswordRequest?: AuthChangePasswordRequest;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
export interface AuthProfileUpdateOperationRequest {
|
|
300
|
+
authProfileUpdateRequest?: AuthProfileUpdateRequest;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
export interface AuthRegisterGuardOperationRequest {
|
|
304
|
+
authRegisterGuardRequest?: AuthRegisterGuardRequest;
|
|
305
|
+
}
|
|
306
|
+
|
|
265
307
|
export interface DestroyUserRequest {
|
|
266
308
|
user: number;
|
|
267
309
|
}
|
|
268
310
|
|
|
311
|
+
export interface DevicesRegisterOperationRequest {
|
|
312
|
+
devicesRegisterRequest?: DevicesRegisterRequest;
|
|
313
|
+
}
|
|
314
|
+
|
|
269
315
|
export interface IncidentFieldSchemasShowOperationRequest {
|
|
270
316
|
incidentFieldSchemasShowRequest?: IncidentFieldSchemasShowRequest;
|
|
271
317
|
}
|
|
@@ -275,6 +321,30 @@ export interface IncidentsApproveOperationRequest {
|
|
|
275
321
|
incidentsApproveRequest?: IncidentsApproveRequest;
|
|
276
322
|
}
|
|
277
323
|
|
|
324
|
+
export interface IncidentsDestroyRequest {
|
|
325
|
+
incident: number;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
export interface IncidentsExportPdfRequest {
|
|
329
|
+
incident: number;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
export interface IncidentsExportPdfBulkOperationRequest {
|
|
333
|
+
incidentsExportPdfBulkRequest?: IncidentsExportPdfBulkRequest;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
export interface IncidentsExportPdfDownloadRequest {
|
|
337
|
+
pdfExport: number;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
export interface IncidentsExportPdfStatusRequest {
|
|
341
|
+
pdfExport: number;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
export interface IncidentsListOperationRequest {
|
|
345
|
+
incidentsListRequest?: IncidentsListRequest;
|
|
346
|
+
}
|
|
347
|
+
|
|
278
348
|
export interface IncidentsShowRequest {
|
|
279
349
|
incident: number;
|
|
280
350
|
}
|
|
@@ -581,6 +651,126 @@ export interface VenuesUpdateOperationRequest {
|
|
|
581
651
|
*/
|
|
582
652
|
export class GeneralApi extends runtime.BaseAPI {
|
|
583
653
|
|
|
654
|
+
/**
|
|
655
|
+
* Auto-generated: auth.changePassword
|
|
656
|
+
*/
|
|
657
|
+
async authChangePasswordRaw(requestParameters: AuthChangePasswordOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>> {
|
|
658
|
+
const queryParameters: any = {};
|
|
659
|
+
|
|
660
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
661
|
+
|
|
662
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
663
|
+
|
|
664
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
665
|
+
const token = this.configuration.accessToken;
|
|
666
|
+
const tokenString = await token("bearerAuth", []);
|
|
667
|
+
|
|
668
|
+
if (tokenString) {
|
|
669
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
let urlPath = `/api/auth/change-password`;
|
|
674
|
+
|
|
675
|
+
const response = await this.request({
|
|
676
|
+
path: urlPath,
|
|
677
|
+
method: 'POST',
|
|
678
|
+
headers: headerParameters,
|
|
679
|
+
query: queryParameters,
|
|
680
|
+
body: AuthChangePasswordRequestToJSON(requestParameters['authChangePasswordRequest']),
|
|
681
|
+
}, initOverrides);
|
|
682
|
+
|
|
683
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GenericResponseFromJSON(jsonValue));
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
/**
|
|
687
|
+
* Auto-generated: auth.changePassword
|
|
688
|
+
*/
|
|
689
|
+
async authChangePassword(requestParameters: AuthChangePasswordOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse> {
|
|
690
|
+
const response = await this.authChangePasswordRaw(requestParameters, initOverrides);
|
|
691
|
+
return await response.value();
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
/**
|
|
695
|
+
* Auto-generated: auth.profile.update
|
|
696
|
+
*/
|
|
697
|
+
async authProfileUpdateRaw(requestParameters: AuthProfileUpdateOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserResource>> {
|
|
698
|
+
const queryParameters: any = {};
|
|
699
|
+
|
|
700
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
701
|
+
|
|
702
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
703
|
+
|
|
704
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
705
|
+
const token = this.configuration.accessToken;
|
|
706
|
+
const tokenString = await token("bearerAuth", []);
|
|
707
|
+
|
|
708
|
+
if (tokenString) {
|
|
709
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
let urlPath = `/api/auth/profile`;
|
|
714
|
+
|
|
715
|
+
const response = await this.request({
|
|
716
|
+
path: urlPath,
|
|
717
|
+
method: 'PUT',
|
|
718
|
+
headers: headerParameters,
|
|
719
|
+
query: queryParameters,
|
|
720
|
+
body: AuthProfileUpdateRequestToJSON(requestParameters['authProfileUpdateRequest']),
|
|
721
|
+
}, initOverrides);
|
|
722
|
+
|
|
723
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => UserResourceFromJSON(jsonValue));
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
/**
|
|
727
|
+
* Auto-generated: auth.profile.update
|
|
728
|
+
*/
|
|
729
|
+
async authProfileUpdate(requestParameters: AuthProfileUpdateOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserResource> {
|
|
730
|
+
const response = await this.authProfileUpdateRaw(requestParameters, initOverrides);
|
|
731
|
+
return await response.value();
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
/**
|
|
735
|
+
* Auto-generated: auth.registerGuard
|
|
736
|
+
*/
|
|
737
|
+
async authRegisterGuardRaw(requestParameters: AuthRegisterGuardOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserAuthTokenResource>> {
|
|
738
|
+
const queryParameters: any = {};
|
|
739
|
+
|
|
740
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
741
|
+
|
|
742
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
743
|
+
|
|
744
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
745
|
+
const token = this.configuration.accessToken;
|
|
746
|
+
const tokenString = await token("bearerAuth", []);
|
|
747
|
+
|
|
748
|
+
if (tokenString) {
|
|
749
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
let urlPath = `/api/auth/register-guard`;
|
|
754
|
+
|
|
755
|
+
const response = await this.request({
|
|
756
|
+
path: urlPath,
|
|
757
|
+
method: 'POST',
|
|
758
|
+
headers: headerParameters,
|
|
759
|
+
query: queryParameters,
|
|
760
|
+
body: AuthRegisterGuardRequestToJSON(requestParameters['authRegisterGuardRequest']),
|
|
761
|
+
}, initOverrides);
|
|
762
|
+
|
|
763
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => UserAuthTokenResourceFromJSON(jsonValue));
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
/**
|
|
767
|
+
* Auto-generated: auth.registerGuard
|
|
768
|
+
*/
|
|
769
|
+
async authRegisterGuard(requestParameters: AuthRegisterGuardOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserAuthTokenResource> {
|
|
770
|
+
const response = await this.authRegisterGuardRaw(requestParameters, initOverrides);
|
|
771
|
+
return await response.value();
|
|
772
|
+
}
|
|
773
|
+
|
|
584
774
|
/**
|
|
585
775
|
* Auto-generated: destroyUser
|
|
586
776
|
*/
|
|
@@ -626,6 +816,46 @@ export class GeneralApi extends runtime.BaseAPI {
|
|
|
626
816
|
return await response.value();
|
|
627
817
|
}
|
|
628
818
|
|
|
819
|
+
/**
|
|
820
|
+
* Auto-generated: devices.register
|
|
821
|
+
*/
|
|
822
|
+
async devicesRegisterRaw(requestParameters: DevicesRegisterOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MobileDeviceResource>> {
|
|
823
|
+
const queryParameters: any = {};
|
|
824
|
+
|
|
825
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
826
|
+
|
|
827
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
828
|
+
|
|
829
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
830
|
+
const token = this.configuration.accessToken;
|
|
831
|
+
const tokenString = await token("bearerAuth", []);
|
|
832
|
+
|
|
833
|
+
if (tokenString) {
|
|
834
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
let urlPath = `/api/devices/register`;
|
|
839
|
+
|
|
840
|
+
const response = await this.request({
|
|
841
|
+
path: urlPath,
|
|
842
|
+
method: 'POST',
|
|
843
|
+
headers: headerParameters,
|
|
844
|
+
query: queryParameters,
|
|
845
|
+
body: DevicesRegisterRequestToJSON(requestParameters['devicesRegisterRequest']),
|
|
846
|
+
}, initOverrides);
|
|
847
|
+
|
|
848
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => MobileDeviceResourceFromJSON(jsonValue));
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
/**
|
|
852
|
+
* Auto-generated: devices.register
|
|
853
|
+
*/
|
|
854
|
+
async devicesRegister(requestParameters: DevicesRegisterOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MobileDeviceResource> {
|
|
855
|
+
const response = await this.devicesRegisterRaw(requestParameters, initOverrides);
|
|
856
|
+
return await response.value();
|
|
857
|
+
}
|
|
858
|
+
|
|
629
859
|
/**
|
|
630
860
|
* Auto-generated: fetchProfileAuth
|
|
631
861
|
*/
|
|
@@ -751,6 +981,266 @@ export class GeneralApi extends runtime.BaseAPI {
|
|
|
751
981
|
return await response.value();
|
|
752
982
|
}
|
|
753
983
|
|
|
984
|
+
/**
|
|
985
|
+
* Auto-generated: incidents.destroy
|
|
986
|
+
*/
|
|
987
|
+
async incidentsDestroyRaw(requestParameters: IncidentsDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>> {
|
|
988
|
+
if (requestParameters['incident'] == null) {
|
|
989
|
+
throw new runtime.RequiredError(
|
|
990
|
+
'incident',
|
|
991
|
+
'Required parameter "incident" was null or undefined when calling incidentsDestroy().'
|
|
992
|
+
);
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
const queryParameters: any = {};
|
|
996
|
+
|
|
997
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
998
|
+
|
|
999
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1000
|
+
const token = this.configuration.accessToken;
|
|
1001
|
+
const tokenString = await token("bearerAuth", []);
|
|
1002
|
+
|
|
1003
|
+
if (tokenString) {
|
|
1004
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
let urlPath = `/api/incidents/{incident}/delete`;
|
|
1009
|
+
urlPath = urlPath.replace(`{${"incident"}}`, encodeURIComponent(String(requestParameters['incident'])));
|
|
1010
|
+
|
|
1011
|
+
const response = await this.request({
|
|
1012
|
+
path: urlPath,
|
|
1013
|
+
method: 'POST',
|
|
1014
|
+
headers: headerParameters,
|
|
1015
|
+
query: queryParameters,
|
|
1016
|
+
}, initOverrides);
|
|
1017
|
+
|
|
1018
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GenericResponseFromJSON(jsonValue));
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
/**
|
|
1022
|
+
* Auto-generated: incidents.destroy
|
|
1023
|
+
*/
|
|
1024
|
+
async incidentsDestroy(requestParameters: IncidentsDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse> {
|
|
1025
|
+
const response = await this.incidentsDestroyRaw(requestParameters, initOverrides);
|
|
1026
|
+
return await response.value();
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
/**
|
|
1030
|
+
* Auto-generated: incidents.exportPdf
|
|
1031
|
+
*/
|
|
1032
|
+
async incidentsExportPdfRaw(requestParameters: IncidentsExportPdfRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PdfExportQueuedResource>> {
|
|
1033
|
+
if (requestParameters['incident'] == null) {
|
|
1034
|
+
throw new runtime.RequiredError(
|
|
1035
|
+
'incident',
|
|
1036
|
+
'Required parameter "incident" was null or undefined when calling incidentsExportPdf().'
|
|
1037
|
+
);
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1040
|
+
const queryParameters: any = {};
|
|
1041
|
+
|
|
1042
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1043
|
+
|
|
1044
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1045
|
+
const token = this.configuration.accessToken;
|
|
1046
|
+
const tokenString = await token("bearerAuth", []);
|
|
1047
|
+
|
|
1048
|
+
if (tokenString) {
|
|
1049
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1050
|
+
}
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
let urlPath = `/api/incidents/{incident}/export-pdf`;
|
|
1054
|
+
urlPath = urlPath.replace(`{${"incident"}}`, encodeURIComponent(String(requestParameters['incident'])));
|
|
1055
|
+
|
|
1056
|
+
const response = await this.request({
|
|
1057
|
+
path: urlPath,
|
|
1058
|
+
method: 'POST',
|
|
1059
|
+
headers: headerParameters,
|
|
1060
|
+
query: queryParameters,
|
|
1061
|
+
}, initOverrides);
|
|
1062
|
+
|
|
1063
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PdfExportQueuedResourceFromJSON(jsonValue));
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
/**
|
|
1067
|
+
* Auto-generated: incidents.exportPdf
|
|
1068
|
+
*/
|
|
1069
|
+
async incidentsExportPdf(requestParameters: IncidentsExportPdfRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PdfExportQueuedResource> {
|
|
1070
|
+
const response = await this.incidentsExportPdfRaw(requestParameters, initOverrides);
|
|
1071
|
+
return await response.value();
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
/**
|
|
1075
|
+
* Auto-generated: incidents.exportPdf.bulk
|
|
1076
|
+
*/
|
|
1077
|
+
async incidentsExportPdfBulkRaw(requestParameters: IncidentsExportPdfBulkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PdfExportQueuedResource>> {
|
|
1078
|
+
const queryParameters: any = {};
|
|
1079
|
+
|
|
1080
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1081
|
+
|
|
1082
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1083
|
+
|
|
1084
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1085
|
+
const token = this.configuration.accessToken;
|
|
1086
|
+
const tokenString = await token("bearerAuth", []);
|
|
1087
|
+
|
|
1088
|
+
if (tokenString) {
|
|
1089
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1090
|
+
}
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
let urlPath = `/api/incidents/export-pdf/bulk`;
|
|
1094
|
+
|
|
1095
|
+
const response = await this.request({
|
|
1096
|
+
path: urlPath,
|
|
1097
|
+
method: 'POST',
|
|
1098
|
+
headers: headerParameters,
|
|
1099
|
+
query: queryParameters,
|
|
1100
|
+
body: IncidentsExportPdfBulkRequestToJSON(requestParameters['incidentsExportPdfBulkRequest']),
|
|
1101
|
+
}, initOverrides);
|
|
1102
|
+
|
|
1103
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PdfExportQueuedResourceFromJSON(jsonValue));
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
/**
|
|
1107
|
+
* Auto-generated: incidents.exportPdf.bulk
|
|
1108
|
+
*/
|
|
1109
|
+
async incidentsExportPdfBulk(requestParameters: IncidentsExportPdfBulkOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PdfExportQueuedResource> {
|
|
1110
|
+
const response = await this.incidentsExportPdfBulkRaw(requestParameters, initOverrides);
|
|
1111
|
+
return await response.value();
|
|
1112
|
+
}
|
|
1113
|
+
|
|
1114
|
+
/**
|
|
1115
|
+
* Auto-generated: incidents.exportPdf.download
|
|
1116
|
+
*/
|
|
1117
|
+
async incidentsExportPdfDownloadRaw(requestParameters: IncidentsExportPdfDownloadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>> {
|
|
1118
|
+
if (requestParameters['pdfExport'] == null) {
|
|
1119
|
+
throw new runtime.RequiredError(
|
|
1120
|
+
'pdfExport',
|
|
1121
|
+
'Required parameter "pdfExport" was null or undefined when calling incidentsExportPdfDownload().'
|
|
1122
|
+
);
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
const queryParameters: any = {};
|
|
1126
|
+
|
|
1127
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1128
|
+
|
|
1129
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1130
|
+
const token = this.configuration.accessToken;
|
|
1131
|
+
const tokenString = await token("bearerAuth", []);
|
|
1132
|
+
|
|
1133
|
+
if (tokenString) {
|
|
1134
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1135
|
+
}
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
let urlPath = `/api/incidents/export-pdf/{pdfExport}/download`;
|
|
1139
|
+
urlPath = urlPath.replace(`{${"pdfExport"}}`, encodeURIComponent(String(requestParameters['pdfExport'])));
|
|
1140
|
+
|
|
1141
|
+
const response = await this.request({
|
|
1142
|
+
path: urlPath,
|
|
1143
|
+
method: 'GET',
|
|
1144
|
+
headers: headerParameters,
|
|
1145
|
+
query: queryParameters,
|
|
1146
|
+
}, initOverrides);
|
|
1147
|
+
|
|
1148
|
+
return new runtime.BlobApiResponse(response);
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
/**
|
|
1152
|
+
* Auto-generated: incidents.exportPdf.download
|
|
1153
|
+
*/
|
|
1154
|
+
async incidentsExportPdfDownload(requestParameters: IncidentsExportPdfDownloadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob> {
|
|
1155
|
+
const response = await this.incidentsExportPdfDownloadRaw(requestParameters, initOverrides);
|
|
1156
|
+
return await response.value();
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
/**
|
|
1160
|
+
* Auto-generated: incidents.exportPdf.status
|
|
1161
|
+
*/
|
|
1162
|
+
async incidentsExportPdfStatusRaw(requestParameters: IncidentsExportPdfStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PdfExportResource>> {
|
|
1163
|
+
if (requestParameters['pdfExport'] == null) {
|
|
1164
|
+
throw new runtime.RequiredError(
|
|
1165
|
+
'pdfExport',
|
|
1166
|
+
'Required parameter "pdfExport" was null or undefined when calling incidentsExportPdfStatus().'
|
|
1167
|
+
);
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
const queryParameters: any = {};
|
|
1171
|
+
|
|
1172
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1173
|
+
|
|
1174
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1175
|
+
const token = this.configuration.accessToken;
|
|
1176
|
+
const tokenString = await token("bearerAuth", []);
|
|
1177
|
+
|
|
1178
|
+
if (tokenString) {
|
|
1179
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1180
|
+
}
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1183
|
+
let urlPath = `/api/incidents/export-pdf/{pdfExport}/status`;
|
|
1184
|
+
urlPath = urlPath.replace(`{${"pdfExport"}}`, encodeURIComponent(String(requestParameters['pdfExport'])));
|
|
1185
|
+
|
|
1186
|
+
const response = await this.request({
|
|
1187
|
+
path: urlPath,
|
|
1188
|
+
method: 'POST',
|
|
1189
|
+
headers: headerParameters,
|
|
1190
|
+
query: queryParameters,
|
|
1191
|
+
}, initOverrides);
|
|
1192
|
+
|
|
1193
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PdfExportResourceFromJSON(jsonValue));
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
/**
|
|
1197
|
+
* Auto-generated: incidents.exportPdf.status
|
|
1198
|
+
*/
|
|
1199
|
+
async incidentsExportPdfStatus(requestParameters: IncidentsExportPdfStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PdfExportResource> {
|
|
1200
|
+
const response = await this.incidentsExportPdfStatusRaw(requestParameters, initOverrides);
|
|
1201
|
+
return await response.value();
|
|
1202
|
+
}
|
|
1203
|
+
|
|
1204
|
+
/**
|
|
1205
|
+
* Auto-generated: incidents.list
|
|
1206
|
+
*/
|
|
1207
|
+
async incidentsListRaw(requestParameters: IncidentsListOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedIncidentListResourceResponse>> {
|
|
1208
|
+
const queryParameters: any = {};
|
|
1209
|
+
|
|
1210
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1211
|
+
|
|
1212
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1213
|
+
|
|
1214
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1215
|
+
const token = this.configuration.accessToken;
|
|
1216
|
+
const tokenString = await token("bearerAuth", []);
|
|
1217
|
+
|
|
1218
|
+
if (tokenString) {
|
|
1219
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1220
|
+
}
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1223
|
+
let urlPath = `/api/incidents/list`;
|
|
1224
|
+
|
|
1225
|
+
const response = await this.request({
|
|
1226
|
+
path: urlPath,
|
|
1227
|
+
method: 'POST',
|
|
1228
|
+
headers: headerParameters,
|
|
1229
|
+
query: queryParameters,
|
|
1230
|
+
body: IncidentsListRequestToJSON(requestParameters['incidentsListRequest']),
|
|
1231
|
+
}, initOverrides);
|
|
1232
|
+
|
|
1233
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedIncidentListResourceResponseFromJSON(jsonValue));
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1236
|
+
/**
|
|
1237
|
+
* Auto-generated: incidents.list
|
|
1238
|
+
*/
|
|
1239
|
+
async incidentsList(requestParameters: IncidentsListOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedIncidentListResourceResponse> {
|
|
1240
|
+
const response = await this.incidentsListRaw(requestParameters, initOverrides);
|
|
1241
|
+
return await response.value();
|
|
1242
|
+
}
|
|
1243
|
+
|
|
754
1244
|
/**
|
|
755
1245
|
* Auto-generated: incidents.show
|
|
756
1246
|
*/
|
|
@@ -1737,6 +2227,43 @@ export class GeneralApi extends runtime.BaseAPI {
|
|
|
1737
2227
|
return await response.value();
|
|
1738
2228
|
}
|
|
1739
2229
|
|
|
2230
|
+
/**
|
|
2231
|
+
* Auto-generated: mobile.init
|
|
2232
|
+
*/
|
|
2233
|
+
async mobileInitRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MobileInitResource>> {
|
|
2234
|
+
const queryParameters: any = {};
|
|
2235
|
+
|
|
2236
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2237
|
+
|
|
2238
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2239
|
+
const token = this.configuration.accessToken;
|
|
2240
|
+
const tokenString = await token("bearerAuth", []);
|
|
2241
|
+
|
|
2242
|
+
if (tokenString) {
|
|
2243
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2244
|
+
}
|
|
2245
|
+
}
|
|
2246
|
+
|
|
2247
|
+
let urlPath = `/api/mobile/init`;
|
|
2248
|
+
|
|
2249
|
+
const response = await this.request({
|
|
2250
|
+
path: urlPath,
|
|
2251
|
+
method: 'POST',
|
|
2252
|
+
headers: headerParameters,
|
|
2253
|
+
query: queryParameters,
|
|
2254
|
+
}, initOverrides);
|
|
2255
|
+
|
|
2256
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => MobileInitResourceFromJSON(jsonValue));
|
|
2257
|
+
}
|
|
2258
|
+
|
|
2259
|
+
/**
|
|
2260
|
+
* Auto-generated: mobile.init
|
|
2261
|
+
*/
|
|
2262
|
+
async mobileInit(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MobileInitResource> {
|
|
2263
|
+
const response = await this.mobileInitRaw(initOverrides);
|
|
2264
|
+
return await response.value();
|
|
2265
|
+
}
|
|
2266
|
+
|
|
1740
2267
|
/**
|
|
1741
2268
|
* Auto-generated: notificationPreferences.delete
|
|
1742
2269
|
*/
|
|
@@ -3717,6 +4244,43 @@ export class GeneralApi extends runtime.BaseAPI {
|
|
|
3717
4244
|
return await response.value();
|
|
3718
4245
|
}
|
|
3719
4246
|
|
|
4247
|
+
/**
|
|
4248
|
+
* Auto-generated: venues.previous
|
|
4249
|
+
*/
|
|
4250
|
+
async venuesPreviousRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VenueLiteResourceArrayResponse>> {
|
|
4251
|
+
const queryParameters: any = {};
|
|
4252
|
+
|
|
4253
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
4254
|
+
|
|
4255
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
4256
|
+
const token = this.configuration.accessToken;
|
|
4257
|
+
const tokenString = await token("bearerAuth", []);
|
|
4258
|
+
|
|
4259
|
+
if (tokenString) {
|
|
4260
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
4261
|
+
}
|
|
4262
|
+
}
|
|
4263
|
+
|
|
4264
|
+
let urlPath = `/api/venues/previous`;
|
|
4265
|
+
|
|
4266
|
+
const response = await this.request({
|
|
4267
|
+
path: urlPath,
|
|
4268
|
+
method: 'POST',
|
|
4269
|
+
headers: headerParameters,
|
|
4270
|
+
query: queryParameters,
|
|
4271
|
+
}, initOverrides);
|
|
4272
|
+
|
|
4273
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VenueLiteResourceArrayResponseFromJSON(jsonValue));
|
|
4274
|
+
}
|
|
4275
|
+
|
|
4276
|
+
/**
|
|
4277
|
+
* Auto-generated: venues.previous
|
|
4278
|
+
*/
|
|
4279
|
+
async venuesPrevious(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VenueLiteResourceArrayResponse> {
|
|
4280
|
+
const response = await this.venuesPreviousRaw(initOverrides);
|
|
4281
|
+
return await response.value();
|
|
4282
|
+
}
|
|
4283
|
+
|
|
3720
4284
|
/**
|
|
3721
4285
|
* Auto-generated: venues.public.store
|
|
3722
4286
|
*/
|
|
@@ -33,10 +33,10 @@ export interface AssetFileForUploadResource {
|
|
|
33
33
|
url: string;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
|
-
* @type {
|
|
36
|
+
* @type {{ [key: string]: string; }}
|
|
37
37
|
* @memberof AssetFileForUploadResource
|
|
38
38
|
*/
|
|
39
|
-
headers:
|
|
39
|
+
headers: { [key: string]: string; };
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|