@digital8/security-registers-backend-ts-sdk 0.0.216 → 0.0.217
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 +17 -2
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +142 -3
- package/dist/apis/GeneralApi.js +694 -1
- package/dist/models/AssetResource.d.ts +1 -1
- package/dist/models/AssetResource.js +1 -3
- package/dist/models/IncidentFieldAuditResource.d.ts +56 -0
- package/dist/models/IncidentFieldAuditResource.js +67 -0
- package/dist/models/IncidentFieldAuditResourceArrayResponse.d.ts +33 -0
- package/dist/models/IncidentFieldAuditResourceArrayResponse.js +50 -0
- package/dist/models/IncidentFieldsResourceArrayResponse.d.ts +32 -0
- package/dist/models/IncidentFieldsResourceArrayResponse.js +49 -0
- package/dist/models/IncidentResource.d.ts +118 -0
- package/dist/models/IncidentResource.js +106 -0
- package/dist/models/IncidentResourceArrayResponse.d.ts +33 -0
- package/dist/models/IncidentResourceArrayResponse.js +50 -0
- package/dist/models/IncidentVersionResource.d.ts +57 -0
- package/dist/models/IncidentVersionResource.js +68 -0
- package/dist/models/IncidentVersionResourceArrayResponse.d.ts +33 -0
- package/dist/models/IncidentVersionResourceArrayResponse.js +50 -0
- package/dist/models/IncidentVideoResource.d.ts +74 -0
- package/dist/models/IncidentVideoResource.js +72 -0
- package/dist/models/IncidentVideoResourceArrayResponse.d.ts +33 -0
- package/dist/models/IncidentVideoResourceArrayResponse.js +50 -0
- package/dist/models/IncidentVideoSignedUrlResource.d.ts +32 -0
- package/dist/models/IncidentVideoSignedUrlResource.js +51 -0
- package/dist/models/IncidentVideoSignedUrlResourceArrayResponse.d.ts +33 -0
- package/dist/models/IncidentVideoSignedUrlResourceArrayResponse.js +50 -0
- package/dist/models/IncidentVideoUploadTokenResource.d.ts +50 -0
- package/dist/models/IncidentVideoUploadTokenResource.js +63 -0
- package/dist/models/IncidentVideoUploadTokenResourceArrayResponse.d.ts +33 -0
- package/dist/models/IncidentVideoUploadTokenResourceArrayResponse.js +50 -0
- package/dist/models/IncidentsStoreRequest.d.ts +38 -0
- package/dist/models/IncidentsStoreRequest.js +55 -0
- package/dist/models/IncidentsUpdateRequest.d.ts +32 -0
- package/dist/models/IncidentsUpdateRequest.js +51 -0
- package/dist/models/IncidentsVideosStoreRequest.d.ts +44 -0
- package/dist/models/IncidentsVideosStoreRequest.js +59 -0
- package/dist/models/IncidentsVideosUploadTokenRequest.d.ts +44 -0
- package/dist/models/IncidentsVideosUploadTokenRequest.js +59 -0
- package/dist/models/LicencesVerifyRequest.d.ts +3 -21
- package/dist/models/LicencesVerifyRequest.js +6 -14
- package/dist/models/RegisterGroupedByRosterResource.d.ts +1 -1
- package/dist/models/RegisterGroupedByRosterResource.js +4 -3
- package/dist/models/RegisterListResource.d.ts +3 -3
- package/dist/models/RegisterListResource.js +3 -4
- package/dist/models/RegisterResource.d.ts +1 -1
- package/dist/models/RegisterResource.js +7 -5
- package/dist/models/RosterLiteResource.d.ts +1 -1
- package/dist/models/RosterLiteResource.js +3 -4
- package/dist/models/RosterResource.d.ts +1 -1
- package/dist/models/RosterResource.js +4 -3
- package/dist/models/SecurityCompanyResource.d.ts +1 -1
- package/dist/models/SecurityCompanyResource.js +3 -1
- package/dist/models/index.d.ts +17 -2
- package/dist/models/index.js +17 -2
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +664 -6
- package/src/models/AssetResource.ts +2 -3
- package/src/models/IncidentFieldAuditResource.ts +102 -0
- package/src/models/IncidentFieldAuditResourceArrayResponse.ts +73 -0
- package/src/models/IncidentFieldsResourceArrayResponse.ts +65 -0
- package/src/models/IncidentResource.ts +237 -0
- package/src/models/IncidentResourceArrayResponse.ts +73 -0
- package/src/models/IncidentVersionResource.ts +110 -0
- package/src/models/IncidentVersionResourceArrayResponse.ts +73 -0
- package/src/models/IncidentVideoResource.ts +125 -0
- package/src/models/IncidentVideoResourceArrayResponse.ts +73 -0
- package/src/models/IncidentVideoSignedUrlResource.ts +66 -0
- package/src/models/IncidentVideoSignedUrlResourceArrayResponse.ts +73 -0
- package/src/models/IncidentVideoUploadTokenResource.ts +93 -0
- package/src/models/IncidentVideoUploadTokenResourceArrayResponse.ts +73 -0
- package/src/models/IncidentsStoreRequest.ts +75 -0
- package/src/models/IncidentsUpdateRequest.ts +66 -0
- package/src/models/IncidentsVideosStoreRequest.ts +84 -0
- package/src/models/IncidentsVideosUploadTokenRequest.ts +84 -0
- package/src/models/LicencesVerifyRequest.ts +8 -33
- package/src/models/RegisterGroupedByRosterResource.ts +4 -3
- package/src/models/RegisterListResource.ts +5 -6
- package/src/models/RegisterResource.ts +4 -3
- package/src/models/RosterLiteResource.ts +3 -4
- package/src/models/RosterResource.ts +4 -3
- package/src/models/SecurityCompanyResource.ts +3 -2
- package/src/models/index.ts +17 -2
- package/dist/models/LicenceVerificationResultResource.d.ts +0 -44
- package/dist/models/LicenceVerificationResultResource.js +0 -59
- package/dist/models/LicenceVerificationResultResourceArrayResponse.d.ts +0 -33
- package/dist/models/LicenceVerificationResultResourceArrayResponse.js +0 -50
- package/src/models/LicenceVerificationResultResource.ts +0 -84
- package/src/models/LicenceVerificationResultResourceArrayResponse.ts +0 -73
|
@@ -0,0 +1,66 @@
|
|
|
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 IncidentsUpdateRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface IncidentsUpdateRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {Array<string>}
|
|
25
|
+
* @memberof IncidentsUpdateRequest
|
|
26
|
+
*/
|
|
27
|
+
fields: Array<string>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the IncidentsUpdateRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfIncidentsUpdateRequest(value: object): value is IncidentsUpdateRequest {
|
|
34
|
+
if (!('fields' in value) || value['fields'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function IncidentsUpdateRequestFromJSON(json: any): IncidentsUpdateRequest {
|
|
39
|
+
return IncidentsUpdateRequestFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function IncidentsUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentsUpdateRequest {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'fields': json['fields'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function IncidentsUpdateRequestToJSON(json: any): IncidentsUpdateRequest {
|
|
53
|
+
return IncidentsUpdateRequestToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function IncidentsUpdateRequestToJSONTyped(value?: IncidentsUpdateRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'fields': value['fields'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -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 IncidentsVideosStoreRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface IncidentsVideosStoreRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof IncidentsVideosStoreRequest
|
|
26
|
+
*/
|
|
27
|
+
rawBlobPath: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof IncidentsVideosStoreRequest
|
|
32
|
+
*/
|
|
33
|
+
originalFilename: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof IncidentsVideosStoreRequest
|
|
38
|
+
*/
|
|
39
|
+
mimeType: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the IncidentsVideosStoreRequest interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfIncidentsVideosStoreRequest(value: object): value is IncidentsVideosStoreRequest {
|
|
46
|
+
if (!('rawBlobPath' in value) || value['rawBlobPath'] === undefined) return false;
|
|
47
|
+
if (!('originalFilename' in value) || value['originalFilename'] === undefined) return false;
|
|
48
|
+
if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function IncidentsVideosStoreRequestFromJSON(json: any): IncidentsVideosStoreRequest {
|
|
53
|
+
return IncidentsVideosStoreRequestFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function IncidentsVideosStoreRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentsVideosStoreRequest {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'rawBlobPath': json['raw_blob_path'],
|
|
63
|
+
'originalFilename': json['original_filename'],
|
|
64
|
+
'mimeType': json['mime_type'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function IncidentsVideosStoreRequestToJSON(json: any): IncidentsVideosStoreRequest {
|
|
69
|
+
return IncidentsVideosStoreRequestToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function IncidentsVideosStoreRequestToJSONTyped(value?: IncidentsVideosStoreRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'raw_blob_path': value['rawBlobPath'],
|
|
80
|
+
'original_filename': value['originalFilename'],
|
|
81
|
+
'mime_type': value['mimeType'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -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 IncidentsVideosUploadTokenRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface IncidentsVideosUploadTokenRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof IncidentsVideosUploadTokenRequest
|
|
26
|
+
*/
|
|
27
|
+
filename: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof IncidentsVideosUploadTokenRequest
|
|
32
|
+
*/
|
|
33
|
+
mimeType: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof IncidentsVideosUploadTokenRequest
|
|
38
|
+
*/
|
|
39
|
+
sizeBytes: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the IncidentsVideosUploadTokenRequest interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfIncidentsVideosUploadTokenRequest(value: object): value is IncidentsVideosUploadTokenRequest {
|
|
46
|
+
if (!('filename' in value) || value['filename'] === undefined) return false;
|
|
47
|
+
if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
|
|
48
|
+
if (!('sizeBytes' in value) || value['sizeBytes'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function IncidentsVideosUploadTokenRequestFromJSON(json: any): IncidentsVideosUploadTokenRequest {
|
|
53
|
+
return IncidentsVideosUploadTokenRequestFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function IncidentsVideosUploadTokenRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentsVideosUploadTokenRequest {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'filename': json['filename'],
|
|
63
|
+
'mimeType': json['mime_type'],
|
|
64
|
+
'sizeBytes': json['size_bytes'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function IncidentsVideosUploadTokenRequestToJSON(json: any): IncidentsVideosUploadTokenRequest {
|
|
69
|
+
return IncidentsVideosUploadTokenRequestToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function IncidentsVideosUploadTokenRequestToJSONTyped(value?: IncidentsVideosUploadTokenRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'filename': value['filename'],
|
|
80
|
+
'mime_type': value['mimeType'],
|
|
81
|
+
'size_bytes': value['sizeBytes'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -25,18 +25,6 @@ export interface LicencesVerifyRequest {
|
|
|
25
25
|
* @memberof LicencesVerifyRequest
|
|
26
26
|
*/
|
|
27
27
|
state: LicencesVerifyRequestStateEnum;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {number}
|
|
31
|
-
* @memberof LicencesVerifyRequest
|
|
32
|
-
*/
|
|
33
|
-
userId?: number;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {number}
|
|
37
|
-
* @memberof LicencesVerifyRequest
|
|
38
|
-
*/
|
|
39
|
-
licenceId?: number;
|
|
40
28
|
/**
|
|
41
29
|
*
|
|
42
30
|
* @type {string}
|
|
@@ -45,22 +33,16 @@ export interface LicencesVerifyRequest {
|
|
|
45
33
|
licenceNumber: string;
|
|
46
34
|
/**
|
|
47
35
|
*
|
|
48
|
-
* @type {
|
|
49
|
-
* @memberof LicencesVerifyRequest
|
|
50
|
-
*/
|
|
51
|
-
givenName: string;
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {string}
|
|
36
|
+
* @type {Date}
|
|
55
37
|
* @memberof LicencesVerifyRequest
|
|
56
38
|
*/
|
|
57
|
-
|
|
39
|
+
expiryDate: Date;
|
|
58
40
|
/**
|
|
59
41
|
*
|
|
60
42
|
* @type {string}
|
|
61
43
|
* @memberof LicencesVerifyRequest
|
|
62
44
|
*/
|
|
63
|
-
|
|
45
|
+
name: string;
|
|
64
46
|
}
|
|
65
47
|
|
|
66
48
|
|
|
@@ -86,9 +68,8 @@ export type LicencesVerifyRequestStateEnum = typeof LicencesVerifyRequestStateEn
|
|
|
86
68
|
export function instanceOfLicencesVerifyRequest(value: object): value is LicencesVerifyRequest {
|
|
87
69
|
if (!('state' in value) || value['state'] === undefined) return false;
|
|
88
70
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
89
|
-
if (!('givenName' in value) || value['givenName'] === undefined) return false;
|
|
90
|
-
if (!('lastName' in value) || value['lastName'] === undefined) return false;
|
|
91
71
|
if (!('expiryDate' in value) || value['expiryDate'] === undefined) return false;
|
|
72
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
92
73
|
return true;
|
|
93
74
|
}
|
|
94
75
|
|
|
@@ -103,12 +84,9 @@ export function LicencesVerifyRequestFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
103
84
|
return {
|
|
104
85
|
|
|
105
86
|
'state': json['state'],
|
|
106
|
-
'userId': json['user_id'] == null ? undefined : json['user_id'],
|
|
107
|
-
'licenceId': json['licence_id'] == null ? undefined : json['licence_id'],
|
|
108
87
|
'licenceNumber': json['licence_number'],
|
|
109
|
-
'
|
|
110
|
-
'
|
|
111
|
-
'expiryDate': json['expiry_date'],
|
|
88
|
+
'expiryDate': (new Date(json['expiry_date'])),
|
|
89
|
+
'name': json['name'],
|
|
112
90
|
};
|
|
113
91
|
}
|
|
114
92
|
|
|
@@ -124,12 +102,9 @@ export function LicencesVerifyRequestToJSONTyped(value?: LicencesVerifyRequest |
|
|
|
124
102
|
return {
|
|
125
103
|
|
|
126
104
|
'state': value['state'],
|
|
127
|
-
'user_id': value['userId'],
|
|
128
|
-
'licence_id': value['licenceId'],
|
|
129
105
|
'licence_number': value['licenceNumber'],
|
|
130
|
-
'
|
|
131
|
-
'
|
|
132
|
-
'expiry_date': value['expiryDate'],
|
|
106
|
+
'expiry_date': ((value['expiryDate']).toISOString()),
|
|
107
|
+
'name': value['name'],
|
|
133
108
|
};
|
|
134
109
|
}
|
|
135
110
|
|
|
@@ -69,7 +69,7 @@ export interface RegisterGroupedByRosterResource {
|
|
|
69
69
|
* @type {Date}
|
|
70
70
|
* @memberof RegisterGroupedByRosterResource
|
|
71
71
|
*/
|
|
72
|
-
finishDateTime
|
|
72
|
+
finishDateTime: Date;
|
|
73
73
|
/**
|
|
74
74
|
*
|
|
75
75
|
* @type {Array<RegisterListResource>}
|
|
@@ -86,6 +86,7 @@ export function instanceOfRegisterGroupedByRosterResource(value: object): value
|
|
|
86
86
|
if (!('timezone' in value) || value['timezone'] === undefined) return false;
|
|
87
87
|
if (!('state' in value) || value['state'] === undefined) return false;
|
|
88
88
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
89
|
+
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
|
|
89
90
|
if (!('registers' in value) || value['registers'] === undefined) return false;
|
|
90
91
|
return true;
|
|
91
92
|
}
|
|
@@ -105,7 +106,7 @@ export function RegisterGroupedByRosterResourceFromJSONTyped(json: any, ignoreDi
|
|
|
105
106
|
'timezone': json['timezone'],
|
|
106
107
|
'state': json['state'],
|
|
107
108
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
108
|
-
'finishDateTime':
|
|
109
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
109
110
|
'registers': (json['registers'] == null ? null : (json['registers'] as Array<any>).map(RegisterListResourceFromJSON)),
|
|
110
111
|
};
|
|
111
112
|
}
|
|
@@ -126,7 +127,7 @@ export function RegisterGroupedByRosterResourceToJSONTyped(value?: RegisterGroup
|
|
|
126
127
|
'timezone': value['timezone'],
|
|
127
128
|
'state': value['state'],
|
|
128
129
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
129
|
-
'finishDateTime':
|
|
130
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
130
131
|
'registers': (value['registers'] == null ? null : (value['registers'] as Array<any>).map(RegisterListResourceToJSON)),
|
|
131
132
|
};
|
|
132
133
|
}
|
|
@@ -63,13 +63,13 @@ export interface RegisterListResource {
|
|
|
63
63
|
* @type {Date}
|
|
64
64
|
* @memberof RegisterListResource
|
|
65
65
|
*/
|
|
66
|
-
finishDateTime
|
|
66
|
+
finishDateTime?: Date | null;
|
|
67
67
|
/**
|
|
68
68
|
*
|
|
69
|
-
* @type {
|
|
69
|
+
* @type {object}
|
|
70
70
|
* @memberof RegisterListResource
|
|
71
71
|
*/
|
|
72
|
-
shiftLength:
|
|
72
|
+
shiftLength: object;
|
|
73
73
|
/**
|
|
74
74
|
*
|
|
75
75
|
* @type {number}
|
|
@@ -181,7 +181,6 @@ export function instanceOfRegisterListResource(value: object): value is Register
|
|
|
181
181
|
if (!('user' in value) || value['user'] === undefined) return false;
|
|
182
182
|
if (!('venue' in value) || value['venue'] === undefined) return false;
|
|
183
183
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
184
|
-
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
|
|
185
184
|
if (!('shiftLength' in value) || value['shiftLength'] === undefined) return false;
|
|
186
185
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
187
186
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
@@ -215,7 +214,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
215
214
|
'user': UserLiteResourceFromJSON(json['user']),
|
|
216
215
|
'venue': VenueLiteResourceFromJSON(json['venue']),
|
|
217
216
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
218
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
217
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
219
218
|
'shiftLength': json['shiftLength'],
|
|
220
219
|
'signOffStatus': json['signOffStatus'],
|
|
221
220
|
'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
|
|
@@ -252,7 +251,7 @@ export function RegisterListResourceToJSONTyped(value?: RegisterListResource | n
|
|
|
252
251
|
'user': UserLiteResourceToJSON(value['user']),
|
|
253
252
|
'venue': VenueLiteResourceToJSON(value['venue']),
|
|
254
253
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
255
|
-
'finishDateTime': ((value['finishDateTime'])
|
|
254
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
|
|
256
255
|
'shiftLength': value['shiftLength'],
|
|
257
256
|
'signOffStatus': value['signOffStatus'],
|
|
258
257
|
'badgeNumber': value['badgeNumber'],
|
|
@@ -63,7 +63,7 @@ export interface RegisterResource {
|
|
|
63
63
|
* @type {Date}
|
|
64
64
|
* @memberof RegisterResource
|
|
65
65
|
*/
|
|
66
|
-
finishDateTime
|
|
66
|
+
finishDateTime: Date;
|
|
67
67
|
/**
|
|
68
68
|
*
|
|
69
69
|
* @type {number}
|
|
@@ -181,6 +181,7 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
|
|
|
181
181
|
if (!('venue' in value) || value['venue'] === undefined) return false;
|
|
182
182
|
if (!('user' in value) || value['user'] === undefined) return false;
|
|
183
183
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
184
|
+
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
|
|
184
185
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
185
186
|
if (!('signOnSignature' in value) || value['signOnSignature'] === undefined) return false;
|
|
186
187
|
if (!('signOffSignature' in value) || value['signOffSignature'] === undefined) return false;
|
|
@@ -211,7 +212,7 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
211
212
|
'venue': VenueLiteResourceFromJSON(json['venue']),
|
|
212
213
|
'user': UserLiteResourceFromJSON(json['user']),
|
|
213
214
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
214
|
-
'finishDateTime':
|
|
215
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
215
216
|
'signOffStatus': json['signOffStatus'],
|
|
216
217
|
'signOnSignature': json['signOnSignature'],
|
|
217
218
|
'signOffSignature': json['signOffSignature'],
|
|
@@ -248,7 +249,7 @@ export function RegisterResourceToJSONTyped(value?: RegisterResource | null, ign
|
|
|
248
249
|
'venue': VenueLiteResourceToJSON(value['venue']),
|
|
249
250
|
'user': UserLiteResourceToJSON(value['user']),
|
|
250
251
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
251
|
-
'finishDateTime':
|
|
252
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
252
253
|
'signOffStatus': value['signOffStatus'],
|
|
253
254
|
'signOnSignature': value['signOnSignature'],
|
|
254
255
|
'signOffSignature': value['signOffSignature'],
|
|
@@ -36,7 +36,7 @@ export interface RosterLiteResource {
|
|
|
36
36
|
* @type {Date}
|
|
37
37
|
* @memberof RosterLiteResource
|
|
38
38
|
*/
|
|
39
|
-
finishDateTime
|
|
39
|
+
finishDateTime?: Date | null;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
/**
|
|
@@ -44,7 +44,6 @@ export interface RosterLiteResource {
|
|
|
44
44
|
*/
|
|
45
45
|
export function instanceOfRosterLiteResource(value: object): value is RosterLiteResource {
|
|
46
46
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
47
|
-
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
|
|
48
47
|
return true;
|
|
49
48
|
}
|
|
50
49
|
|
|
@@ -60,7 +59,7 @@ export function RosterLiteResourceFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
60
59
|
|
|
61
60
|
'id': json['id'] == null ? undefined : json['id'],
|
|
62
61
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
63
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
62
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
64
63
|
};
|
|
65
64
|
}
|
|
66
65
|
|
|
@@ -77,7 +76,7 @@ export function RosterLiteResourceToJSONTyped(value?: RosterLiteResource | null,
|
|
|
77
76
|
|
|
78
77
|
'id': value['id'],
|
|
79
78
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
80
|
-
'finishDateTime': ((value['finishDateTime'])
|
|
79
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
|
|
81
80
|
};
|
|
82
81
|
}
|
|
83
82
|
|
|
@@ -70,7 +70,7 @@ export interface RosterResource {
|
|
|
70
70
|
* @type {Date}
|
|
71
71
|
* @memberof RosterResource
|
|
72
72
|
*/
|
|
73
|
-
finishDateTime
|
|
73
|
+
finishDateTime: Date;
|
|
74
74
|
/**
|
|
75
75
|
*
|
|
76
76
|
* @type {boolean}
|
|
@@ -104,6 +104,7 @@ export function instanceOfRosterResource(value: object): value is RosterResource
|
|
|
104
104
|
if (!('venue' in value) || value['venue'] === undefined) return false;
|
|
105
105
|
if (!('securityCompany' in value) || value['securityCompany'] === undefined) return false;
|
|
106
106
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
107
|
+
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
|
|
107
108
|
if (!('isCompliant' in value) || value['isCompliant'] === undefined) return false;
|
|
108
109
|
if (!('isComplete' in value) || value['isComplete'] === undefined) return false;
|
|
109
110
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
@@ -125,7 +126,7 @@ export function RosterResourceFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
125
126
|
'venue': VenueLiteResourceFromJSON(json['venue']),
|
|
126
127
|
'securityCompany': SecurityCompanyLiteResourceFromJSON(json['securityCompany']),
|
|
127
128
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
128
|
-
'finishDateTime':
|
|
129
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
129
130
|
'isCompliant': json['isCompliant'],
|
|
130
131
|
'isComplete': json['isComplete'],
|
|
131
132
|
'signOffStatus': json['signOffStatus'],
|
|
@@ -148,7 +149,7 @@ export function RosterResourceToJSONTyped(value?: RosterResource | null, ignoreD
|
|
|
148
149
|
'venue': VenueLiteResourceToJSON(value['venue']),
|
|
149
150
|
'securityCompany': SecurityCompanyLiteResourceToJSON(value['securityCompany']),
|
|
150
151
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
151
|
-
'finishDateTime':
|
|
152
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
152
153
|
'isCompliant': value['isCompliant'],
|
|
153
154
|
'isComplete': value['isComplete'],
|
|
154
155
|
'signOffStatus': value['signOffStatus'],
|
|
@@ -44,7 +44,7 @@ export interface SecurityCompanyResource {
|
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof SecurityCompanyResource
|
|
46
46
|
*/
|
|
47
|
-
email
|
|
47
|
+
email: string;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {boolean}
|
|
@@ -82,6 +82,7 @@ export interface SecurityCompanyResource {
|
|
|
82
82
|
*/
|
|
83
83
|
export function instanceOfSecurityCompanyResource(value: object): value is SecurityCompanyResource {
|
|
84
84
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
85
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
85
86
|
if (!('isEnabled' in value) || value['isEnabled'] === undefined) return false;
|
|
86
87
|
if (!('address' in value) || value['address'] === undefined) return false;
|
|
87
88
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
@@ -100,7 +101,7 @@ export function SecurityCompanyResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
100
101
|
|
|
101
102
|
'id': json['id'] == null ? undefined : json['id'],
|
|
102
103
|
'name': json['name'],
|
|
103
|
-
'email': json['email']
|
|
104
|
+
'email': json['email'],
|
|
104
105
|
'isEnabled': json['isEnabled'],
|
|
105
106
|
'address': AddressResourceFromJSON(json['address']),
|
|
106
107
|
'licenceNumber': json['licenceNumber'],
|
package/src/models/index.ts
CHANGED
|
@@ -11,9 +11,26 @@ export * from './AssetResourceArrayResponse';
|
|
|
11
11
|
export * from './CurrentRegisterResource';
|
|
12
12
|
export * from './CurrentRegisterResourceArrayResponse';
|
|
13
13
|
export * from './GenericResponse';
|
|
14
|
+
export * from './IncidentFieldAuditResource';
|
|
15
|
+
export * from './IncidentFieldAuditResourceArrayResponse';
|
|
14
16
|
export * from './IncidentFieldSchemaResource';
|
|
15
17
|
export * from './IncidentFieldSchemaResourceArrayResponse';
|
|
16
18
|
export * from './IncidentFieldSchemasShowRequest';
|
|
19
|
+
export * from './IncidentFieldsResourceArrayResponse';
|
|
20
|
+
export * from './IncidentResource';
|
|
21
|
+
export * from './IncidentResourceArrayResponse';
|
|
22
|
+
export * from './IncidentVersionResource';
|
|
23
|
+
export * from './IncidentVersionResourceArrayResponse';
|
|
24
|
+
export * from './IncidentVideoResource';
|
|
25
|
+
export * from './IncidentVideoResourceArrayResponse';
|
|
26
|
+
export * from './IncidentVideoSignedUrlResource';
|
|
27
|
+
export * from './IncidentVideoSignedUrlResourceArrayResponse';
|
|
28
|
+
export * from './IncidentVideoUploadTokenResource';
|
|
29
|
+
export * from './IncidentVideoUploadTokenResourceArrayResponse';
|
|
30
|
+
export * from './IncidentsStoreRequest';
|
|
31
|
+
export * from './IncidentsUpdateRequest';
|
|
32
|
+
export * from './IncidentsVideosStoreRequest';
|
|
33
|
+
export * from './IncidentsVideosUploadTokenRequest';
|
|
17
34
|
export * from './IndexMinimalUserRequest';
|
|
18
35
|
export * from './IndexUserRequest';
|
|
19
36
|
export * from './LicenceListResource';
|
|
@@ -22,8 +39,6 @@ export * from './LicenceLiteResource';
|
|
|
22
39
|
export * from './LicenceLiteResourceArrayResponse';
|
|
23
40
|
export * from './LicenceResource';
|
|
24
41
|
export * from './LicenceResourceArrayResponse';
|
|
25
|
-
export * from './LicenceVerificationResultResource';
|
|
26
|
-
export * from './LicenceVerificationResultResourceArrayResponse';
|
|
27
42
|
export * from './LicencesListAllRequest';
|
|
28
43
|
export * from './LicencesListRequest';
|
|
29
44
|
export * from './LicencesStoreRequest';
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* My API
|
|
3
|
-
* API documentation for my Laravel app
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface LicenceVerificationResultResource
|
|
16
|
-
*/
|
|
17
|
-
export interface LicenceVerificationResultResource {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {boolean}
|
|
21
|
-
* @memberof LicenceVerificationResultResource
|
|
22
|
-
*/
|
|
23
|
-
verified: boolean;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof LicenceVerificationResultResource
|
|
28
|
-
*/
|
|
29
|
-
message: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof LicenceVerificationResultResource
|
|
34
|
-
*/
|
|
35
|
-
result: string;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Check if a given object implements the LicenceVerificationResultResource interface.
|
|
39
|
-
*/
|
|
40
|
-
export declare function instanceOfLicenceVerificationResultResource(value: object): value is LicenceVerificationResultResource;
|
|
41
|
-
export declare function LicenceVerificationResultResourceFromJSON(json: any): LicenceVerificationResultResource;
|
|
42
|
-
export declare function LicenceVerificationResultResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): LicenceVerificationResultResource;
|
|
43
|
-
export declare function LicenceVerificationResultResourceToJSON(json: any): LicenceVerificationResultResource;
|
|
44
|
-
export declare function LicenceVerificationResultResourceToJSONTyped(value?: LicenceVerificationResultResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* My API
|
|
6
|
-
* API documentation for my Laravel app
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.instanceOfLicenceVerificationResultResource = instanceOfLicenceVerificationResultResource;
|
|
17
|
-
exports.LicenceVerificationResultResourceFromJSON = LicenceVerificationResultResourceFromJSON;
|
|
18
|
-
exports.LicenceVerificationResultResourceFromJSONTyped = LicenceVerificationResultResourceFromJSONTyped;
|
|
19
|
-
exports.LicenceVerificationResultResourceToJSON = LicenceVerificationResultResourceToJSON;
|
|
20
|
-
exports.LicenceVerificationResultResourceToJSONTyped = LicenceVerificationResultResourceToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the LicenceVerificationResultResource interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfLicenceVerificationResultResource(value) {
|
|
25
|
-
if (!('verified' in value) || value['verified'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
if (!('message' in value) || value['message'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
if (!('result' in value) || value['result'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
return true;
|
|
32
|
-
}
|
|
33
|
-
function LicenceVerificationResultResourceFromJSON(json) {
|
|
34
|
-
return LicenceVerificationResultResourceFromJSONTyped(json, false);
|
|
35
|
-
}
|
|
36
|
-
function LicenceVerificationResultResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
-
if (json == null) {
|
|
38
|
-
return json;
|
|
39
|
-
}
|
|
40
|
-
return {
|
|
41
|
-
'verified': json['verified'],
|
|
42
|
-
'message': json['message'],
|
|
43
|
-
'result': json['result'],
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
function LicenceVerificationResultResourceToJSON(json) {
|
|
47
|
-
return LicenceVerificationResultResourceToJSONTyped(json, false);
|
|
48
|
-
}
|
|
49
|
-
function LicenceVerificationResultResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
51
|
-
if (value == null) {
|
|
52
|
-
return value;
|
|
53
|
-
}
|
|
54
|
-
return {
|
|
55
|
-
'verified': value['verified'],
|
|
56
|
-
'message': value['message'],
|
|
57
|
-
'result': value['result'],
|
|
58
|
-
};
|
|
59
|
-
}
|