@digital8/security-registers-backend-ts-sdk 0.0.284 → 0.0.285
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 -4
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +40 -7
- package/dist/apis/GeneralApi.js +176 -8
- package/dist/models/AssetResource.d.ts +1 -1
- package/dist/models/AssetResource.js +3 -1
- package/dist/models/IncidentsExportPdfBulkRequest.d.ts +56 -0
- package/dist/models/IncidentsExportPdfBulkRequest.js +63 -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 +3 -4
- package/dist/models/RegisterListResource.d.ts +2 -2
- package/dist/models/RegisterListResource.js +4 -4
- 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 +3 -4
- package/dist/models/RosterResource.d.ts +1 -1
- package/dist/models/RosterResource.js +4 -3
- package/dist/models/RosterWithRegistersResource.d.ts +1 -1
- package/dist/models/RosterWithRegistersResource.js +3 -4
- package/dist/models/VenueLiteResource.d.ts +0 -6
- package/dist/models/VenueLiteResource.js +0 -4
- package/dist/models/index.d.ts +3 -4
- package/dist/models/index.js +3 -4
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +163 -16
- package/src/models/AssetResource.ts +3 -2
- package/src/models/IncidentsExportPdfBulkRequest.ts +100 -0
- package/src/models/PdfExportQueuedResource.ts +84 -0
- package/src/models/PdfExportQueuedResourceArrayResponse.ts +73 -0
- package/src/models/RegisterGroupedByRosterResource.ts +3 -4
- package/src/models/RegisterListResource.ts +5 -5
- package/src/models/RegisterResource.ts +5 -5
- package/src/models/RosterListResource.ts +3 -4
- package/src/models/RosterResource.ts +4 -3
- package/src/models/RosterWithRegistersResource.ts +3 -4
- package/src/models/VenueLiteResource.ts +0 -9
- package/src/models/index.ts +3 -4
- package/dist/models/IncidentListResource.d.ts +0 -101
- package/dist/models/IncidentListResource.js +0 -79
- package/dist/models/IncidentListResourceArrayResponse.d.ts +0 -33
- package/dist/models/IncidentListResourceArrayResponse.js +0 -50
- package/dist/models/IncidentsListRequest.d.ts +0 -151
- package/dist/models/IncidentsListRequest.js +0 -99
- package/dist/models/PaginatedIncidentListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedIncidentListResourceResponse.js +0 -57
- package/src/models/IncidentListResource.ts +0 -177
- package/src/models/IncidentListResourceArrayResponse.ts +0 -73
- package/src/models/IncidentsListRequest.ts +0 -222
- package/src/models/PaginatedIncidentListResourceResponse.ts +0 -90
package/src/apis/GeneralApi.ts
CHANGED
|
@@ -26,7 +26,7 @@ import type {
|
|
|
26
26
|
IncidentVideoSignedUrlResource,
|
|
27
27
|
IncidentVideoUploadTokenResource,
|
|
28
28
|
IncidentsApproveRequest,
|
|
29
|
-
|
|
29
|
+
IncidentsExportPdfBulkRequest,
|
|
30
30
|
IncidentsStoreRequest,
|
|
31
31
|
IncidentsUpdateRequest,
|
|
32
32
|
IncidentsVideosStoreRequest,
|
|
@@ -45,7 +45,6 @@ import type {
|
|
|
45
45
|
NotificationPreferenceResourceArrayResponse,
|
|
46
46
|
NotificationPreferencesStoreRequest,
|
|
47
47
|
NotificationTypeResourceArrayResponse,
|
|
48
|
-
PaginatedIncidentListResourceResponse,
|
|
49
48
|
PaginatedLicenceListResourceResponse,
|
|
50
49
|
PaginatedRegisterGroupedByRosterResourceResponse,
|
|
51
50
|
PaginatedRosterListResourceResponse,
|
|
@@ -53,6 +52,7 @@ import type {
|
|
|
53
52
|
PaginatedSecurityCompanyResourceResponse,
|
|
54
53
|
PaginatedUserResourceResponse,
|
|
55
54
|
PaginatedVenueResourceResponse,
|
|
55
|
+
PdfExportQueuedResource,
|
|
56
56
|
PdfExportResource,
|
|
57
57
|
RegisterLiteResourceArrayResponse,
|
|
58
58
|
RegisterResource,
|
|
@@ -122,8 +122,8 @@ import {
|
|
|
122
122
|
IncidentVideoUploadTokenResourceToJSON,
|
|
123
123
|
IncidentsApproveRequestFromJSON,
|
|
124
124
|
IncidentsApproveRequestToJSON,
|
|
125
|
-
|
|
126
|
-
|
|
125
|
+
IncidentsExportPdfBulkRequestFromJSON,
|
|
126
|
+
IncidentsExportPdfBulkRequestToJSON,
|
|
127
127
|
IncidentsStoreRequestFromJSON,
|
|
128
128
|
IncidentsStoreRequestToJSON,
|
|
129
129
|
IncidentsUpdateRequestFromJSON,
|
|
@@ -160,8 +160,6 @@ import {
|
|
|
160
160
|
NotificationPreferencesStoreRequestToJSON,
|
|
161
161
|
NotificationTypeResourceArrayResponseFromJSON,
|
|
162
162
|
NotificationTypeResourceArrayResponseToJSON,
|
|
163
|
-
PaginatedIncidentListResourceResponseFromJSON,
|
|
164
|
-
PaginatedIncidentListResourceResponseToJSON,
|
|
165
163
|
PaginatedLicenceListResourceResponseFromJSON,
|
|
166
164
|
PaginatedLicenceListResourceResponseToJSON,
|
|
167
165
|
PaginatedRegisterGroupedByRosterResourceResponseFromJSON,
|
|
@@ -176,6 +174,8 @@ import {
|
|
|
176
174
|
PaginatedUserResourceResponseToJSON,
|
|
177
175
|
PaginatedVenueResourceResponseFromJSON,
|
|
178
176
|
PaginatedVenueResourceResponseToJSON,
|
|
177
|
+
PdfExportQueuedResourceFromJSON,
|
|
178
|
+
PdfExportQueuedResourceToJSON,
|
|
179
179
|
PdfExportResourceFromJSON,
|
|
180
180
|
PdfExportResourceToJSON,
|
|
181
181
|
RegisterLiteResourceArrayResponseFromJSON,
|
|
@@ -281,8 +281,20 @@ export interface IncidentsApproveOperationRequest {
|
|
|
281
281
|
incidentsApproveRequest?: IncidentsApproveRequest;
|
|
282
282
|
}
|
|
283
283
|
|
|
284
|
-
export interface
|
|
285
|
-
|
|
284
|
+
export interface IncidentsExportPdfRequest {
|
|
285
|
+
incident: number;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
export interface IncidentsExportPdfBulkOperationRequest {
|
|
289
|
+
incidentsExportPdfBulkRequest?: IncidentsExportPdfBulkRequest;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
export interface IncidentsExportPdfDownloadRequest {
|
|
293
|
+
pdfExport: number;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
export interface IncidentsExportPdfStatusRequest {
|
|
297
|
+
pdfExport: number;
|
|
286
298
|
}
|
|
287
299
|
|
|
288
300
|
export interface IncidentsShowRequest {
|
|
@@ -762,9 +774,54 @@ export class GeneralApi extends runtime.BaseAPI {
|
|
|
762
774
|
}
|
|
763
775
|
|
|
764
776
|
/**
|
|
765
|
-
* Auto-generated: incidents.
|
|
777
|
+
* Auto-generated: incidents.exportPdf
|
|
766
778
|
*/
|
|
767
|
-
async
|
|
779
|
+
async incidentsExportPdfRaw(requestParameters: IncidentsExportPdfRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PdfExportQueuedResource>> {
|
|
780
|
+
if (requestParameters['incident'] == null) {
|
|
781
|
+
throw new runtime.RequiredError(
|
|
782
|
+
'incident',
|
|
783
|
+
'Required parameter "incident" was null or undefined when calling incidentsExportPdf().'
|
|
784
|
+
);
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
const queryParameters: any = {};
|
|
788
|
+
|
|
789
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
790
|
+
|
|
791
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
792
|
+
const token = this.configuration.accessToken;
|
|
793
|
+
const tokenString = await token("bearerAuth", []);
|
|
794
|
+
|
|
795
|
+
if (tokenString) {
|
|
796
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
let urlPath = `/api/incidents/{incident}/export-pdf`;
|
|
801
|
+
urlPath = urlPath.replace(`{${"incident"}}`, encodeURIComponent(String(requestParameters['incident'])));
|
|
802
|
+
|
|
803
|
+
const response = await this.request({
|
|
804
|
+
path: urlPath,
|
|
805
|
+
method: 'POST',
|
|
806
|
+
headers: headerParameters,
|
|
807
|
+
query: queryParameters,
|
|
808
|
+
}, initOverrides);
|
|
809
|
+
|
|
810
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PdfExportQueuedResourceFromJSON(jsonValue));
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
/**
|
|
814
|
+
* Auto-generated: incidents.exportPdf
|
|
815
|
+
*/
|
|
816
|
+
async incidentsExportPdf(requestParameters: IncidentsExportPdfRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PdfExportQueuedResource> {
|
|
817
|
+
const response = await this.incidentsExportPdfRaw(requestParameters, initOverrides);
|
|
818
|
+
return await response.value();
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
/**
|
|
822
|
+
* Auto-generated: incidents.exportPdf.bulk
|
|
823
|
+
*/
|
|
824
|
+
async incidentsExportPdfBulkRaw(requestParameters: IncidentsExportPdfBulkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PdfExportQueuedResource>> {
|
|
768
825
|
const queryParameters: any = {};
|
|
769
826
|
|
|
770
827
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -780,24 +837,114 @@ export class GeneralApi extends runtime.BaseAPI {
|
|
|
780
837
|
}
|
|
781
838
|
}
|
|
782
839
|
|
|
783
|
-
let urlPath = `/api/incidents/
|
|
840
|
+
let urlPath = `/api/incidents/export-pdf/bulk`;
|
|
841
|
+
|
|
842
|
+
const response = await this.request({
|
|
843
|
+
path: urlPath,
|
|
844
|
+
method: 'POST',
|
|
845
|
+
headers: headerParameters,
|
|
846
|
+
query: queryParameters,
|
|
847
|
+
body: IncidentsExportPdfBulkRequestToJSON(requestParameters['incidentsExportPdfBulkRequest']),
|
|
848
|
+
}, initOverrides);
|
|
849
|
+
|
|
850
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PdfExportQueuedResourceFromJSON(jsonValue));
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
/**
|
|
854
|
+
* Auto-generated: incidents.exportPdf.bulk
|
|
855
|
+
*/
|
|
856
|
+
async incidentsExportPdfBulk(requestParameters: IncidentsExportPdfBulkOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PdfExportQueuedResource> {
|
|
857
|
+
const response = await this.incidentsExportPdfBulkRaw(requestParameters, initOverrides);
|
|
858
|
+
return await response.value();
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
/**
|
|
862
|
+
* Auto-generated: incidents.exportPdf.download
|
|
863
|
+
*/
|
|
864
|
+
async incidentsExportPdfDownloadRaw(requestParameters: IncidentsExportPdfDownloadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>> {
|
|
865
|
+
if (requestParameters['pdfExport'] == null) {
|
|
866
|
+
throw new runtime.RequiredError(
|
|
867
|
+
'pdfExport',
|
|
868
|
+
'Required parameter "pdfExport" was null or undefined when calling incidentsExportPdfDownload().'
|
|
869
|
+
);
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
const queryParameters: any = {};
|
|
873
|
+
|
|
874
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
875
|
+
|
|
876
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
877
|
+
const token = this.configuration.accessToken;
|
|
878
|
+
const tokenString = await token("bearerAuth", []);
|
|
879
|
+
|
|
880
|
+
if (tokenString) {
|
|
881
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
let urlPath = `/api/incidents/export-pdf/{pdfExport}/download`;
|
|
886
|
+
urlPath = urlPath.replace(`{${"pdfExport"}}`, encodeURIComponent(String(requestParameters['pdfExport'])));
|
|
887
|
+
|
|
888
|
+
const response = await this.request({
|
|
889
|
+
path: urlPath,
|
|
890
|
+
method: 'GET',
|
|
891
|
+
headers: headerParameters,
|
|
892
|
+
query: queryParameters,
|
|
893
|
+
}, initOverrides);
|
|
894
|
+
|
|
895
|
+
return new runtime.BlobApiResponse(response);
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
/**
|
|
899
|
+
* Auto-generated: incidents.exportPdf.download
|
|
900
|
+
*/
|
|
901
|
+
async incidentsExportPdfDownload(requestParameters: IncidentsExportPdfDownloadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob> {
|
|
902
|
+
const response = await this.incidentsExportPdfDownloadRaw(requestParameters, initOverrides);
|
|
903
|
+
return await response.value();
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
/**
|
|
907
|
+
* Auto-generated: incidents.exportPdf.status
|
|
908
|
+
*/
|
|
909
|
+
async incidentsExportPdfStatusRaw(requestParameters: IncidentsExportPdfStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PdfExportResource>> {
|
|
910
|
+
if (requestParameters['pdfExport'] == null) {
|
|
911
|
+
throw new runtime.RequiredError(
|
|
912
|
+
'pdfExport',
|
|
913
|
+
'Required parameter "pdfExport" was null or undefined when calling incidentsExportPdfStatus().'
|
|
914
|
+
);
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
const queryParameters: any = {};
|
|
918
|
+
|
|
919
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
920
|
+
|
|
921
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
922
|
+
const token = this.configuration.accessToken;
|
|
923
|
+
const tokenString = await token("bearerAuth", []);
|
|
924
|
+
|
|
925
|
+
if (tokenString) {
|
|
926
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
let urlPath = `/api/incidents/export-pdf/{pdfExport}/status`;
|
|
931
|
+
urlPath = urlPath.replace(`{${"pdfExport"}}`, encodeURIComponent(String(requestParameters['pdfExport'])));
|
|
784
932
|
|
|
785
933
|
const response = await this.request({
|
|
786
934
|
path: urlPath,
|
|
787
935
|
method: 'POST',
|
|
788
936
|
headers: headerParameters,
|
|
789
937
|
query: queryParameters,
|
|
790
|
-
body: IncidentsListRequestToJSON(requestParameters['incidentsListRequest']),
|
|
791
938
|
}, initOverrides);
|
|
792
939
|
|
|
793
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
940
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PdfExportResourceFromJSON(jsonValue));
|
|
794
941
|
}
|
|
795
942
|
|
|
796
943
|
/**
|
|
797
|
-
* Auto-generated: incidents.
|
|
944
|
+
* Auto-generated: incidents.exportPdf.status
|
|
798
945
|
*/
|
|
799
|
-
async
|
|
800
|
-
const response = await this.
|
|
946
|
+
async incidentsExportPdfStatus(requestParameters: IncidentsExportPdfStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PdfExportResource> {
|
|
947
|
+
const response = await this.incidentsExportPdfStatusRaw(requestParameters, initOverrides);
|
|
801
948
|
return await response.value();
|
|
802
949
|
}
|
|
803
950
|
|
|
@@ -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
|
};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface IncidentsExportPdfBulkRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface IncidentsExportPdfBulkRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof IncidentsExportPdfBulkRequest
|
|
26
|
+
*/
|
|
27
|
+
venueId: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof IncidentsExportPdfBulkRequest
|
|
32
|
+
*/
|
|
33
|
+
securityCompanyId?: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @memberof IncidentsExportPdfBulkRequest
|
|
38
|
+
*/
|
|
39
|
+
hasApprovedAt?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Date}
|
|
43
|
+
* @memberof IncidentsExportPdfBulkRequest
|
|
44
|
+
*/
|
|
45
|
+
afterCreatedAt: Date;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {Date}
|
|
49
|
+
* @memberof IncidentsExportPdfBulkRequest
|
|
50
|
+
*/
|
|
51
|
+
beforeCreatedAt: Date;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the IncidentsExportPdfBulkRequest interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfIncidentsExportPdfBulkRequest(value: object): value is IncidentsExportPdfBulkRequest {
|
|
58
|
+
if (!('venueId' in value) || value['venueId'] === undefined) return false;
|
|
59
|
+
if (!('afterCreatedAt' in value) || value['afterCreatedAt'] === undefined) return false;
|
|
60
|
+
if (!('beforeCreatedAt' in value) || value['beforeCreatedAt'] === undefined) return false;
|
|
61
|
+
return true;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function IncidentsExportPdfBulkRequestFromJSON(json: any): IncidentsExportPdfBulkRequest {
|
|
65
|
+
return IncidentsExportPdfBulkRequestFromJSONTyped(json, false);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function IncidentsExportPdfBulkRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentsExportPdfBulkRequest {
|
|
69
|
+
if (json == null) {
|
|
70
|
+
return json;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
|
|
74
|
+
'venueId': json['venue_id'],
|
|
75
|
+
'securityCompanyId': json['security_company_id'] == null ? undefined : json['security_company_id'],
|
|
76
|
+
'hasApprovedAt': json['has_approved_at'] == null ? undefined : json['has_approved_at'],
|
|
77
|
+
'afterCreatedAt': (new Date(json['after_created_at'])),
|
|
78
|
+
'beforeCreatedAt': (new Date(json['before_created_at'])),
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function IncidentsExportPdfBulkRequestToJSON(json: any): IncidentsExportPdfBulkRequest {
|
|
83
|
+
return IncidentsExportPdfBulkRequestToJSONTyped(json, false);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function IncidentsExportPdfBulkRequestToJSONTyped(value?: IncidentsExportPdfBulkRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
87
|
+
if (value == null) {
|
|
88
|
+
return value;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
return {
|
|
92
|
+
|
|
93
|
+
'venue_id': value['venueId'],
|
|
94
|
+
'security_company_id': value['securityCompanyId'],
|
|
95
|
+
'has_approved_at': value['hasApprovedAt'],
|
|
96
|
+
'after_created_at': ((value['afterCreatedAt']).toISOString()),
|
|
97
|
+
'before_created_at': ((value['beforeCreatedAt']).toISOString()),
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PdfExportQueuedResource
|
|
20
|
+
*/
|
|
21
|
+
export interface PdfExportQueuedResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof PdfExportQueuedResource
|
|
26
|
+
*/
|
|
27
|
+
id: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PdfExportQueuedResource
|
|
32
|
+
*/
|
|
33
|
+
status: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof PdfExportQueuedResource
|
|
38
|
+
*/
|
|
39
|
+
message: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the PdfExportQueuedResource interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfPdfExportQueuedResource(value: object): value is PdfExportQueuedResource {
|
|
46
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
47
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
48
|
+
if (!('message' in value) || value['message'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function PdfExportQueuedResourceFromJSON(json: any): PdfExportQueuedResource {
|
|
53
|
+
return PdfExportQueuedResourceFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function PdfExportQueuedResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): PdfExportQueuedResource {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'id': json['id'],
|
|
63
|
+
'status': json['status'],
|
|
64
|
+
'message': json['message'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function PdfExportQueuedResourceToJSON(json: any): PdfExportQueuedResource {
|
|
69
|
+
return PdfExportQueuedResourceToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function PdfExportQueuedResourceToJSONTyped(value?: PdfExportQueuedResource | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'id': value['id'],
|
|
80
|
+
'status': value['status'],
|
|
81
|
+
'message': value['message'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { PdfExportQueuedResource } from './PdfExportQueuedResource';
|
|
17
|
+
import {
|
|
18
|
+
PdfExportQueuedResourceFromJSON,
|
|
19
|
+
PdfExportQueuedResourceFromJSONTyped,
|
|
20
|
+
PdfExportQueuedResourceToJSON,
|
|
21
|
+
PdfExportQueuedResourceToJSONTyped,
|
|
22
|
+
} from './PdfExportQueuedResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface PdfExportQueuedResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface PdfExportQueuedResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<PdfExportQueuedResource>}
|
|
33
|
+
* @memberof PdfExportQueuedResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<PdfExportQueuedResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the PdfExportQueuedResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfPdfExportQueuedResourceArrayResponse(value: object): value is PdfExportQueuedResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function PdfExportQueuedResourceArrayResponseFromJSON(json: any): PdfExportQueuedResourceArrayResponse {
|
|
46
|
+
return PdfExportQueuedResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function PdfExportQueuedResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PdfExportQueuedResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(PdfExportQueuedResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function PdfExportQueuedResourceArrayResponseToJSON(json: any): PdfExportQueuedResourceArrayResponse {
|
|
60
|
+
return PdfExportQueuedResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function PdfExportQueuedResourceArrayResponseToJSONTyped(value?: PdfExportQueuedResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(PdfExportQueuedResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -69,7 +69,7 @@ export interface RegisterGroupedByRosterResource {
|
|
|
69
69
|
* @type {Date}
|
|
70
70
|
* @memberof RegisterGroupedByRosterResource
|
|
71
71
|
*/
|
|
72
|
-
finishDateTime
|
|
72
|
+
finishDateTime?: Date | null;
|
|
73
73
|
/**
|
|
74
74
|
*
|
|
75
75
|
* @type {Array<RegisterListResource>}
|
|
@@ -86,7 +86,6 @@ 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;
|
|
90
89
|
if (!('registers' in value) || value['registers'] === undefined) return false;
|
|
91
90
|
return true;
|
|
92
91
|
}
|
|
@@ -106,7 +105,7 @@ export function RegisterGroupedByRosterResourceFromJSONTyped(json: any, ignoreDi
|
|
|
106
105
|
'timezone': json['timezone'],
|
|
107
106
|
'state': json['state'],
|
|
108
107
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
109
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
108
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
110
109
|
'registers': (json['registers'] == null ? null : (json['registers'] as Array<any>).map(RegisterListResourceFromJSON)),
|
|
111
110
|
};
|
|
112
111
|
}
|
|
@@ -127,7 +126,7 @@ export function RegisterGroupedByRosterResourceToJSONTyped(value?: RegisterGroup
|
|
|
127
126
|
'timezone': value['timezone'],
|
|
128
127
|
'state': value['state'],
|
|
129
128
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
130
|
-
'finishDateTime': ((value['finishDateTime'])
|
|
129
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
|
|
131
130
|
'registers': (value['registers'] == null ? null : (value['registers'] as Array<any>).map(RegisterListResourceToJSON)),
|
|
132
131
|
};
|
|
133
132
|
}
|
|
@@ -88,7 +88,7 @@ export interface RegisterListResource {
|
|
|
88
88
|
* @type {string}
|
|
89
89
|
* @memberof RegisterListResource
|
|
90
90
|
*/
|
|
91
|
-
badgeNumber
|
|
91
|
+
badgeNumber: string;
|
|
92
92
|
/**
|
|
93
93
|
*
|
|
94
94
|
* @type {string}
|
|
@@ -172,7 +172,7 @@ export interface RegisterListResource {
|
|
|
172
172
|
* @type {number}
|
|
173
173
|
* @memberof RegisterListResource
|
|
174
174
|
*/
|
|
175
|
-
signOffLong
|
|
175
|
+
signOffLong?: number | null;
|
|
176
176
|
/**
|
|
177
177
|
*
|
|
178
178
|
* @type {Array<IncidentLiteResource>}
|
|
@@ -190,6 +190,7 @@ export function instanceOfRegisterListResource(value: object): value is Register
|
|
|
190
190
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
191
191
|
if (!('shiftLength' in value) || value['shiftLength'] === undefined) return false;
|
|
192
192
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
193
|
+
if (!('badgeNumber' in value) || value['badgeNumber'] === undefined) return false;
|
|
193
194
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
194
195
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
|
|
195
196
|
if (!('licenceLastName' in value) || value['licenceLastName'] === undefined) return false;
|
|
@@ -203,7 +204,6 @@ export function instanceOfRegisterListResource(value: object): value is Register
|
|
|
203
204
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
204
205
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
205
206
|
if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
|
|
206
|
-
if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
|
|
207
207
|
if (!('incidents' in value) || value['incidents'] === undefined) return false;
|
|
208
208
|
return true;
|
|
209
209
|
}
|
|
@@ -225,7 +225,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
225
225
|
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
226
226
|
'shiftLength': json['shiftLength'],
|
|
227
227
|
'signOffStatus': json['signOffStatus'],
|
|
228
|
-
'badgeNumber': json['badgeNumber']
|
|
228
|
+
'badgeNumber': json['badgeNumber'],
|
|
229
229
|
'licenceNumber': json['licenceNumber'],
|
|
230
230
|
'licenceFirstName': json['licenceFirstName'],
|
|
231
231
|
'licenceLastName': json['licenceLastName'],
|
|
@@ -239,7 +239,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
239
239
|
'signOnLat': json['signOnLat'],
|
|
240
240
|
'signOnLong': json['signOnLong'],
|
|
241
241
|
'signOffLat': json['signOffLat'],
|
|
242
|
-
'signOffLong': json['signOffLong'],
|
|
242
|
+
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
243
243
|
'incidents': (json['incidents'] == null ? null : (json['incidents'] as Array<any>).map(IncidentLiteResourceFromJSON)),
|
|
244
244
|
};
|
|
245
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}
|
|
@@ -191,7 +191,7 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
|
|
|
191
191
|
if (!('firstAidImage' in value) || value['firstAidImage'] === undefined) return false;
|
|
192
192
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
193
193
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
194
|
-
if (!('
|
|
194
|
+
if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
|
|
195
195
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
196
196
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
|
|
197
197
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
|
|
@@ -223,8 +223,8 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
223
223
|
'firstAidImage': json['firstAidImage'],
|
|
224
224
|
'signOnLat': json['signOnLat'],
|
|
225
225
|
'signOnLong': json['signOnLong'],
|
|
226
|
-
'signOffLat': json['signOffLat'],
|
|
227
|
-
'signOffLong': json['signOffLong']
|
|
226
|
+
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
227
|
+
'signOffLong': json['signOffLong'],
|
|
228
228
|
'licenceNumber': json['licenceNumber'],
|
|
229
229
|
'licenceExpiry': json['licenceExpiry'],
|
|
230
230
|
'licenceFirstName': json['licenceFirstName'],
|