@digital8/security-registers-backend-ts-sdk 0.0.221 → 0.0.223
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 +6 -2
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +59 -1
- package/dist/apis/GeneralApi.js +288 -0
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +3 -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/IncidentResource.d.ts +7 -0
- package/dist/models/IncidentResource.js +5 -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/IncidentsApproveRequest.d.ts +32 -0
- package/dist/models/IncidentsApproveRequest.js +51 -0
- package/dist/models/IncidentsUpdateRequest.d.ts +32 -0
- package/dist/models/IncidentsUpdateRequest.js +51 -0
- package/dist/models/RegisterListResource.d.ts +1 -1
- package/dist/models/RegisterListResource.js +3 -1
- package/dist/models/RegisterResource.d.ts +1 -1
- package/dist/models/RegisterResource.js +1 -3
- 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 +3 -4
- package/dist/models/index.d.ts +6 -2
- package/dist/models/index.js +6 -2
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +274 -0
- package/src/models/AddressResource.ts +3 -2
- package/src/models/AssetResource.ts +2 -3
- package/src/models/IncidentFieldAuditResource.ts +102 -0
- package/src/models/IncidentFieldAuditResourceArrayResponse.ts +73 -0
- package/src/models/IncidentResource.ts +16 -0
- package/src/models/IncidentVersionResource.ts +110 -0
- package/src/models/IncidentVersionResourceArrayResponse.ts +73 -0
- package/src/models/IncidentsApproveRequest.ts +66 -0
- package/src/models/IncidentsUpdateRequest.ts +66 -0
- package/src/models/RegisterListResource.ts +3 -2
- package/src/models/RegisterResource.ts +2 -3
- package/src/models/RosterListResource.ts +3 -4
- package/src/models/RosterLiteResource.ts +3 -4
- package/src/models/index.ts +6 -2
- package/dist/models/IncidentImageResource.d.ts +0 -56
- package/dist/models/IncidentImageResource.js +0 -65
- package/dist/models/IncidentImageResourceArrayResponse.d.ts +0 -33
- package/dist/models/IncidentImageResourceArrayResponse.js +0 -50
- package/src/models/IncidentImageResource.ts +0 -101
- package/src/models/IncidentImageResourceArrayResponse.ts +0 -73
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { UserLiteResource } from './UserLiteResource';
|
|
17
|
+
import {
|
|
18
|
+
UserLiteResourceFromJSON,
|
|
19
|
+
UserLiteResourceFromJSONTyped,
|
|
20
|
+
UserLiteResourceToJSON,
|
|
21
|
+
UserLiteResourceToJSONTyped,
|
|
22
|
+
} from './UserLiteResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface IncidentVersionResource
|
|
28
|
+
*/
|
|
29
|
+
export interface IncidentVersionResource {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof IncidentVersionResource
|
|
34
|
+
*/
|
|
35
|
+
id: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof IncidentVersionResource
|
|
40
|
+
*/
|
|
41
|
+
versionNumber: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {UserLiteResource}
|
|
45
|
+
* @memberof IncidentVersionResource
|
|
46
|
+
*/
|
|
47
|
+
user: UserLiteResource | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Array<boolean>}
|
|
51
|
+
* @memberof IncidentVersionResource
|
|
52
|
+
*/
|
|
53
|
+
fieldData: Array<boolean>;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Date}
|
|
57
|
+
* @memberof IncidentVersionResource
|
|
58
|
+
*/
|
|
59
|
+
createdAt: Date;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the IncidentVersionResource interface.
|
|
64
|
+
*/
|
|
65
|
+
export function instanceOfIncidentVersionResource(value: object): value is IncidentVersionResource {
|
|
66
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
67
|
+
if (!('versionNumber' in value) || value['versionNumber'] === undefined) return false;
|
|
68
|
+
if (!('user' in value) || value['user'] === undefined) return false;
|
|
69
|
+
if (!('fieldData' in value) || value['fieldData'] === undefined) return false;
|
|
70
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function IncidentVersionResourceFromJSON(json: any): IncidentVersionResource {
|
|
75
|
+
return IncidentVersionResourceFromJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function IncidentVersionResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentVersionResource {
|
|
79
|
+
if (json == null) {
|
|
80
|
+
return json;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'id': json['id'],
|
|
85
|
+
'versionNumber': json['versionNumber'],
|
|
86
|
+
'user': UserLiteResourceFromJSON(json['user']),
|
|
87
|
+
'fieldData': json['fieldData'],
|
|
88
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function IncidentVersionResourceToJSON(json: any): IncidentVersionResource {
|
|
93
|
+
return IncidentVersionResourceToJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function IncidentVersionResourceToJSONTyped(value?: IncidentVersionResource | null, ignoreDiscriminator: boolean = false): any {
|
|
97
|
+
if (value == null) {
|
|
98
|
+
return value;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return {
|
|
102
|
+
|
|
103
|
+
'id': value['id'],
|
|
104
|
+
'versionNumber': value['versionNumber'],
|
|
105
|
+
'user': UserLiteResourceToJSON(value['user']),
|
|
106
|
+
'fieldData': value['fieldData'],
|
|
107
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
@@ -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 { IncidentVersionResource } from './IncidentVersionResource';
|
|
17
|
+
import {
|
|
18
|
+
IncidentVersionResourceFromJSON,
|
|
19
|
+
IncidentVersionResourceFromJSONTyped,
|
|
20
|
+
IncidentVersionResourceToJSON,
|
|
21
|
+
IncidentVersionResourceToJSONTyped,
|
|
22
|
+
} from './IncidentVersionResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface IncidentVersionResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface IncidentVersionResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<IncidentVersionResource>}
|
|
33
|
+
* @memberof IncidentVersionResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<IncidentVersionResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the IncidentVersionResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfIncidentVersionResourceArrayResponse(value: object): value is IncidentVersionResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function IncidentVersionResourceArrayResponseFromJSON(json: any): IncidentVersionResourceArrayResponse {
|
|
46
|
+
return IncidentVersionResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function IncidentVersionResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentVersionResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(IncidentVersionResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function IncidentVersionResourceArrayResponseToJSON(json: any): IncidentVersionResourceArrayResponse {
|
|
60
|
+
return IncidentVersionResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function IncidentVersionResourceArrayResponseToJSONTyped(value?: IncidentVersionResourceArrayResponse | 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(IncidentVersionResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
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 IncidentsApproveRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface IncidentsApproveRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof IncidentsApproveRequest
|
|
26
|
+
*/
|
|
27
|
+
userId: number;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the IncidentsApproveRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfIncidentsApproveRequest(value: object): value is IncidentsApproveRequest {
|
|
34
|
+
if (!('userId' in value) || value['userId'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function IncidentsApproveRequestFromJSON(json: any): IncidentsApproveRequest {
|
|
39
|
+
return IncidentsApproveRequestFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function IncidentsApproveRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentsApproveRequest {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'userId': json['user_id'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function IncidentsApproveRequestToJSON(json: any): IncidentsApproveRequest {
|
|
53
|
+
return IncidentsApproveRequestToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function IncidentsApproveRequestToJSONTyped(value?: IncidentsApproveRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'user_id': value['userId'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -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
|
+
|
|
@@ -165,7 +165,7 @@ export interface RegisterListResource {
|
|
|
165
165
|
* @type {number}
|
|
166
166
|
* @memberof RegisterListResource
|
|
167
167
|
*/
|
|
168
|
-
signOffLong
|
|
168
|
+
signOffLong: number;
|
|
169
169
|
/**
|
|
170
170
|
*
|
|
171
171
|
* @type {Array<boolean>}
|
|
@@ -196,6 +196,7 @@ export function instanceOfRegisterListResource(value: object): value is Register
|
|
|
196
196
|
if (!('firstAid' in value) || value['firstAid'] === undefined) return false;
|
|
197
197
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
198
198
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
199
|
+
if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
|
|
199
200
|
if (!('incidents' in value) || value['incidents'] === undefined) return false;
|
|
200
201
|
return true;
|
|
201
202
|
}
|
|
@@ -231,7 +232,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
231
232
|
'signOnLat': json['signOnLat'],
|
|
232
233
|
'signOnLong': json['signOnLong'],
|
|
233
234
|
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
234
|
-
'signOffLong': json['signOffLong']
|
|
235
|
+
'signOffLong': json['signOffLong'],
|
|
235
236
|
'incidents': json['incidents'],
|
|
236
237
|
};
|
|
237
238
|
}
|
|
@@ -129,7 +129,7 @@ export interface RegisterResource {
|
|
|
129
129
|
* @type {number}
|
|
130
130
|
* @memberof RegisterResource
|
|
131
131
|
*/
|
|
132
|
-
signOffLong
|
|
132
|
+
signOffLong?: number | null;
|
|
133
133
|
/**
|
|
134
134
|
*
|
|
135
135
|
* @type {string}
|
|
@@ -192,7 +192,6 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
|
|
|
192
192
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
193
193
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
194
194
|
if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
|
|
195
|
-
if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
|
|
196
195
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
197
196
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
|
|
198
197
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
|
|
@@ -225,7 +224,7 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
225
224
|
'signOnLat': json['signOnLat'],
|
|
226
225
|
'signOnLong': json['signOnLong'],
|
|
227
226
|
'signOffLat': json['signOffLat'],
|
|
228
|
-
'signOffLong': json['signOffLong'],
|
|
227
|
+
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
229
228
|
'licenceNumber': json['licenceNumber'],
|
|
230
229
|
'licenceExpiry': json['licenceExpiry'],
|
|
231
230
|
'licenceFirstName': json['licenceFirstName'],
|
|
@@ -63,7 +63,7 @@ export interface RosterListResource {
|
|
|
63
63
|
* @type {Date}
|
|
64
64
|
* @memberof RosterListResource
|
|
65
65
|
*/
|
|
66
|
-
finishDateTime
|
|
66
|
+
finishDateTime?: Date | null;
|
|
67
67
|
/**
|
|
68
68
|
*
|
|
69
69
|
* @type {boolean}
|
|
@@ -97,7 +97,6 @@ export function instanceOfRosterListResource(value: object): value is RosterList
|
|
|
97
97
|
if (!('venue' in value) || value['venue'] === undefined) return false;
|
|
98
98
|
if (!('securityCompany' in value) || value['securityCompany'] === undefined) return false;
|
|
99
99
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
100
|
-
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
|
|
101
100
|
if (!('isCompliant' in value) || value['isCompliant'] === undefined) return false;
|
|
102
101
|
if (!('isComplete' in value) || value['isComplete'] === undefined) return false;
|
|
103
102
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
@@ -119,7 +118,7 @@ export function RosterListResourceFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
119
118
|
'venue': VenueLiteResourceFromJSON(json['venue']),
|
|
120
119
|
'securityCompany': SecurityCompanyLiteResourceFromJSON(json['securityCompany']),
|
|
121
120
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
122
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
121
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
123
122
|
'isCompliant': json['isCompliant'],
|
|
124
123
|
'isComplete': json['isComplete'],
|
|
125
124
|
'signOffStatus': json['signOffStatus'],
|
|
@@ -142,7 +141,7 @@ export function RosterListResourceToJSONTyped(value?: RosterListResource | null,
|
|
|
142
141
|
'venue': VenueLiteResourceToJSON(value['venue']),
|
|
143
142
|
'securityCompany': SecurityCompanyLiteResourceToJSON(value['securityCompany']),
|
|
144
143
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
145
|
-
'finishDateTime': ((value['finishDateTime'])
|
|
144
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
|
|
146
145
|
'isCompliant': value['isCompliant'],
|
|
147
146
|
'isComplete': value['isComplete'],
|
|
148
147
|
'signOffStatus': value['signOffStatus'],
|
|
@@ -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
|
|
package/src/models/index.ts
CHANGED
|
@@ -11,15 +11,19 @@ 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';
|
|
17
19
|
export * from './IncidentFieldsResourceArrayResponse';
|
|
18
|
-
export * from './IncidentImageResource';
|
|
19
|
-
export * from './IncidentImageResourceArrayResponse';
|
|
20
20
|
export * from './IncidentResource';
|
|
21
21
|
export * from './IncidentResourceArrayResponse';
|
|
22
|
+
export * from './IncidentVersionResource';
|
|
23
|
+
export * from './IncidentVersionResourceArrayResponse';
|
|
24
|
+
export * from './IncidentsApproveRequest';
|
|
22
25
|
export * from './IncidentsStoreRequest';
|
|
26
|
+
export * from './IncidentsUpdateRequest';
|
|
23
27
|
export * from './IndexMinimalUserRequest';
|
|
24
28
|
export * from './IndexUserRequest';
|
|
25
29
|
export * from './LicenceListResource';
|
|
@@ -1,56 +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 IncidentImageResource
|
|
16
|
-
*/
|
|
17
|
-
export interface IncidentImageResource {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof IncidentImageResource
|
|
22
|
-
*/
|
|
23
|
-
fileId: number;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof IncidentImageResource
|
|
28
|
-
*/
|
|
29
|
-
mimeType: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof IncidentImageResource
|
|
34
|
-
*/
|
|
35
|
-
altText?: string | null;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @memberof IncidentImageResource
|
|
40
|
-
*/
|
|
41
|
-
assetId: number;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof IncidentImageResource
|
|
46
|
-
*/
|
|
47
|
-
url: string;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Check if a given object implements the IncidentImageResource interface.
|
|
51
|
-
*/
|
|
52
|
-
export declare function instanceOfIncidentImageResource(value: object): value is IncidentImageResource;
|
|
53
|
-
export declare function IncidentImageResourceFromJSON(json: any): IncidentImageResource;
|
|
54
|
-
export declare function IncidentImageResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentImageResource;
|
|
55
|
-
export declare function IncidentImageResourceToJSON(json: any): IncidentImageResource;
|
|
56
|
-
export declare function IncidentImageResourceToJSONTyped(value?: IncidentImageResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,65 +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.instanceOfIncidentImageResource = instanceOfIncidentImageResource;
|
|
17
|
-
exports.IncidentImageResourceFromJSON = IncidentImageResourceFromJSON;
|
|
18
|
-
exports.IncidentImageResourceFromJSONTyped = IncidentImageResourceFromJSONTyped;
|
|
19
|
-
exports.IncidentImageResourceToJSON = IncidentImageResourceToJSON;
|
|
20
|
-
exports.IncidentImageResourceToJSONTyped = IncidentImageResourceToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the IncidentImageResource interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfIncidentImageResource(value) {
|
|
25
|
-
if (!('fileId' in value) || value['fileId'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
if (!('mimeType' in value) || value['mimeType'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
if (!('assetId' in value) || value['assetId'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
if (!('url' in value) || value['url'] === undefined)
|
|
32
|
-
return false;
|
|
33
|
-
return true;
|
|
34
|
-
}
|
|
35
|
-
function IncidentImageResourceFromJSON(json) {
|
|
36
|
-
return IncidentImageResourceFromJSONTyped(json, false);
|
|
37
|
-
}
|
|
38
|
-
function IncidentImageResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
-
if (json == null) {
|
|
40
|
-
return json;
|
|
41
|
-
}
|
|
42
|
-
return {
|
|
43
|
-
'fileId': json['file_id'],
|
|
44
|
-
'mimeType': json['mime_type'],
|
|
45
|
-
'altText': json['alt_text'] == null ? undefined : json['alt_text'],
|
|
46
|
-
'assetId': json['asset_id'],
|
|
47
|
-
'url': json['url'],
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
function IncidentImageResourceToJSON(json) {
|
|
51
|
-
return IncidentImageResourceToJSONTyped(json, false);
|
|
52
|
-
}
|
|
53
|
-
function IncidentImageResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
54
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
55
|
-
if (value == null) {
|
|
56
|
-
return value;
|
|
57
|
-
}
|
|
58
|
-
return {
|
|
59
|
-
'file_id': value['fileId'],
|
|
60
|
-
'mime_type': value['mimeType'],
|
|
61
|
-
'alt_text': value['altText'],
|
|
62
|
-
'asset_id': value['assetId'],
|
|
63
|
-
'url': value['url'],
|
|
64
|
-
};
|
|
65
|
-
}
|
|
@@ -1,33 +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
|
-
import type { IncidentImageResource } from './IncidentImageResource';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface IncidentImageResourceArrayResponse
|
|
17
|
-
*/
|
|
18
|
-
export interface IncidentImageResourceArrayResponse {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<IncidentImageResource>}
|
|
22
|
-
* @memberof IncidentImageResourceArrayResponse
|
|
23
|
-
*/
|
|
24
|
-
data?: Array<IncidentImageResource>;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the IncidentImageResourceArrayResponse interface.
|
|
28
|
-
*/
|
|
29
|
-
export declare function instanceOfIncidentImageResourceArrayResponse(value: object): value is IncidentImageResourceArrayResponse;
|
|
30
|
-
export declare function IncidentImageResourceArrayResponseFromJSON(json: any): IncidentImageResourceArrayResponse;
|
|
31
|
-
export declare function IncidentImageResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentImageResourceArrayResponse;
|
|
32
|
-
export declare function IncidentImageResourceArrayResponseToJSON(json: any): IncidentImageResourceArrayResponse;
|
|
33
|
-
export declare function IncidentImageResourceArrayResponseToJSONTyped(value?: IncidentImageResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,50 +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.instanceOfIncidentImageResourceArrayResponse = instanceOfIncidentImageResourceArrayResponse;
|
|
17
|
-
exports.IncidentImageResourceArrayResponseFromJSON = IncidentImageResourceArrayResponseFromJSON;
|
|
18
|
-
exports.IncidentImageResourceArrayResponseFromJSONTyped = IncidentImageResourceArrayResponseFromJSONTyped;
|
|
19
|
-
exports.IncidentImageResourceArrayResponseToJSON = IncidentImageResourceArrayResponseToJSON;
|
|
20
|
-
exports.IncidentImageResourceArrayResponseToJSONTyped = IncidentImageResourceArrayResponseToJSONTyped;
|
|
21
|
-
var IncidentImageResource_1 = require("./IncidentImageResource");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the IncidentImageResourceArrayResponse interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfIncidentImageResourceArrayResponse(value) {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
function IncidentImageResourceArrayResponseFromJSON(json) {
|
|
29
|
-
return IncidentImageResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
function IncidentImageResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (json == null) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'data': json['data'] == null ? undefined : (json['data'].map(IncidentImageResource_1.IncidentImageResourceFromJSON)),
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function IncidentImageResourceArrayResponseToJSON(json) {
|
|
40
|
-
return IncidentImageResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
function IncidentImageResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
44
|
-
if (value == null) {
|
|
45
|
-
return value;
|
|
46
|
-
}
|
|
47
|
-
return {
|
|
48
|
-
'data': value['data'] == null ? undefined : (value['data'].map(IncidentImageResource_1.IncidentImageResourceToJSON)),
|
|
49
|
-
};
|
|
50
|
-
}
|