@digital8/security-registers-backend-ts-sdk 0.0.229 → 0.0.230
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 +2 -0
- package/README.md +2 -2
- package/dist/models/AssetResource.d.ts +1 -1
- package/dist/models/AssetResource.js +1 -3
- package/dist/models/IncidentImageResource.d.ts +1 -1
- package/dist/models/IncidentImageResource.js +3 -1
- package/dist/models/IncidentLiteResource.d.ts +38 -0
- package/dist/models/IncidentLiteResource.js +54 -0
- package/dist/models/IncidentLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/IncidentLiteResourceArrayResponse.js +50 -0
- package/dist/models/RegisterGroupedByRosterResource.d.ts +1 -1
- package/dist/models/RegisterGroupedByRosterResource.js +3 -4
- package/dist/models/RegisterListResource.d.ts +4 -3
- package/dist/models/RegisterListResource.js +4 -5
- package/dist/models/RegisterResource.d.ts +2 -2
- package/dist/models/RegisterResource.js +4 -4
- package/dist/models/RosterListResource.d.ts +1 -1
- package/dist/models/RosterListResource.js +4 -3
- package/dist/models/RosterLiteResource.d.ts +1 -1
- package/dist/models/RosterLiteResource.js +4 -3
- package/dist/models/RosterResource.d.ts +1 -1
- package/dist/models/RosterResource.js +3 -4
- package/dist/models/RosterWithRegistersResource.d.ts +1 -1
- package/dist/models/RosterWithRegistersResource.js +3 -4
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +1 -1
- package/src/models/AssetResource.ts +2 -3
- package/src/models/IncidentImageResource.ts +3 -2
- package/src/models/IncidentLiteResource.ts +74 -0
- package/src/models/IncidentLiteResourceArrayResponse.ts +73 -0
- package/src/models/RegisterGroupedByRosterResource.ts +3 -4
- package/src/models/RegisterListResource.ts +13 -7
- package/src/models/RegisterResource.ts +5 -5
- package/src/models/RosterListResource.ts +4 -3
- package/src/models/RosterLiteResource.ts +4 -3
- package/src/models/RosterResource.ts +3 -4
- package/src/models/RosterWithRegistersResource.ts +3 -4
- package/src/models/index.ts +2 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -25,6 +25,8 @@ src/models/IncidentFieldSchemasShowRequest.ts
|
|
|
25
25
|
src/models/IncidentFieldsResourceArrayResponse.ts
|
|
26
26
|
src/models/IncidentImageResource.ts
|
|
27
27
|
src/models/IncidentImageResourceArrayResponse.ts
|
|
28
|
+
src/models/IncidentLiteResource.ts
|
|
29
|
+
src/models/IncidentLiteResourceArrayResponse.ts
|
|
28
30
|
src/models/IncidentResource.ts
|
|
29
31
|
src/models/IncidentResourceArrayResponse.ts
|
|
30
32
|
src/models/IncidentVersionResource.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @digital8/security-registers-backend-ts-sdk@0.0.
|
|
1
|
+
## @digital8/security-registers-backend-ts-sdk@0.0.230
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @digital8/security-registers-backend-ts-sdk@0.0.
|
|
39
|
+
npm install @digital8/security-registers-backend-ts-sdk@0.0.230 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -30,8 +30,6 @@ function instanceOfAssetResource(value) {
|
|
|
30
30
|
return false;
|
|
31
31
|
if (!('mimeType' in value) || value['mimeType'] === undefined)
|
|
32
32
|
return false;
|
|
33
|
-
if (!('altText' in value) || value['altText'] === undefined)
|
|
34
|
-
return false;
|
|
35
33
|
if (!('index' in value) || value['index'] === undefined)
|
|
36
34
|
return false;
|
|
37
35
|
if (!('fileId' in value) || value['fileId'] === undefined)
|
|
@@ -50,7 +48,7 @@ function AssetResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
48
|
'filePath': json['filePath'],
|
|
51
49
|
'fileName': json['fileName'],
|
|
52
50
|
'mimeType': json['mimeType'],
|
|
53
|
-
'altText': json['altText'],
|
|
51
|
+
'altText': json['altText'] == null ? undefined : json['altText'],
|
|
54
52
|
'index': json['index'],
|
|
55
53
|
'fileId': json['fileId'],
|
|
56
54
|
};
|
|
@@ -26,6 +26,8 @@ function instanceOfIncidentImageResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('mimeType' in value) || value['mimeType'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
+
if (!('altText' in value) || value['altText'] === undefined)
|
|
30
|
+
return false;
|
|
29
31
|
if (!('assetId' in value) || value['assetId'] === undefined)
|
|
30
32
|
return false;
|
|
31
33
|
if (!('url' in value) || value['url'] === undefined)
|
|
@@ -42,7 +44,7 @@ function IncidentImageResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
44
|
return {
|
|
43
45
|
'fileId': json['file_id'],
|
|
44
46
|
'mimeType': json['mime_type'],
|
|
45
|
-
'altText': json['alt_text']
|
|
47
|
+
'altText': json['alt_text'],
|
|
46
48
|
'assetId': json['asset_id'],
|
|
47
49
|
'url': json['url'],
|
|
48
50
|
};
|
|
@@ -0,0 +1,38 @@
|
|
|
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 IncidentLiteResource
|
|
16
|
+
*/
|
|
17
|
+
export interface IncidentLiteResource {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof IncidentLiteResource
|
|
22
|
+
*/
|
|
23
|
+
id: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Date}
|
|
27
|
+
* @memberof IncidentLiteResource
|
|
28
|
+
*/
|
|
29
|
+
approvedAt?: Date | null;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the IncidentLiteResource interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfIncidentLiteResource(value: object): value is IncidentLiteResource;
|
|
35
|
+
export declare function IncidentLiteResourceFromJSON(json: any): IncidentLiteResource;
|
|
36
|
+
export declare function IncidentLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentLiteResource;
|
|
37
|
+
export declare function IncidentLiteResourceToJSON(json: any): IncidentLiteResource;
|
|
38
|
+
export declare function IncidentLiteResourceToJSONTyped(value?: IncidentLiteResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.instanceOfIncidentLiteResource = instanceOfIncidentLiteResource;
|
|
17
|
+
exports.IncidentLiteResourceFromJSON = IncidentLiteResourceFromJSON;
|
|
18
|
+
exports.IncidentLiteResourceFromJSONTyped = IncidentLiteResourceFromJSONTyped;
|
|
19
|
+
exports.IncidentLiteResourceToJSON = IncidentLiteResourceToJSON;
|
|
20
|
+
exports.IncidentLiteResourceToJSONTyped = IncidentLiteResourceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the IncidentLiteResource interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfIncidentLiteResource(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function IncidentLiteResourceFromJSON(json) {
|
|
30
|
+
return IncidentLiteResourceFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function IncidentLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'id': json['id'],
|
|
38
|
+
'approvedAt': json['approvedAt'] == null ? undefined : (new Date(json['approvedAt'])),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function IncidentLiteResourceToJSON(json) {
|
|
42
|
+
return IncidentLiteResourceToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function IncidentLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
+
var _a;
|
|
46
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'id': value['id'],
|
|
52
|
+
'approvedAt': value['approvedAt'] === null ? null : ((_a = value['approvedAt']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 { IncidentLiteResource } from './IncidentLiteResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface IncidentLiteResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface IncidentLiteResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<IncidentLiteResource>}
|
|
22
|
+
* @memberof IncidentLiteResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<IncidentLiteResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the IncidentLiteResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfIncidentLiteResourceArrayResponse(value: object): value is IncidentLiteResourceArrayResponse;
|
|
30
|
+
export declare function IncidentLiteResourceArrayResponseFromJSON(json: any): IncidentLiteResourceArrayResponse;
|
|
31
|
+
export declare function IncidentLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentLiteResourceArrayResponse;
|
|
32
|
+
export declare function IncidentLiteResourceArrayResponseToJSON(json: any): IncidentLiteResourceArrayResponse;
|
|
33
|
+
export declare function IncidentLiteResourceArrayResponseToJSONTyped(value?: IncidentLiteResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfIncidentLiteResourceArrayResponse = instanceOfIncidentLiteResourceArrayResponse;
|
|
17
|
+
exports.IncidentLiteResourceArrayResponseFromJSON = IncidentLiteResourceArrayResponseFromJSON;
|
|
18
|
+
exports.IncidentLiteResourceArrayResponseFromJSONTyped = IncidentLiteResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.IncidentLiteResourceArrayResponseToJSON = IncidentLiteResourceArrayResponseToJSON;
|
|
20
|
+
exports.IncidentLiteResourceArrayResponseToJSONTyped = IncidentLiteResourceArrayResponseToJSONTyped;
|
|
21
|
+
var IncidentLiteResource_1 = require("./IncidentLiteResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the IncidentLiteResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfIncidentLiteResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function IncidentLiteResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return IncidentLiteResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function IncidentLiteResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(IncidentLiteResource_1.IncidentLiteResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function IncidentLiteResourceArrayResponseToJSON(json) {
|
|
40
|
+
return IncidentLiteResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function IncidentLiteResourceArrayResponseToJSONTyped(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(IncidentLiteResource_1.IncidentLiteResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -32,8 +32,6 @@ function instanceOfRegisterGroupedByRosterResource(value) {
|
|
|
32
32
|
return false;
|
|
33
33
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined)
|
|
34
34
|
return false;
|
|
35
|
-
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
|
|
36
|
-
return false;
|
|
37
35
|
if (!('registers' in value) || value['registers'] === undefined)
|
|
38
36
|
return false;
|
|
39
37
|
return true;
|
|
@@ -51,7 +49,7 @@ function RegisterGroupedByRosterResourceFromJSONTyped(json, ignoreDiscriminator)
|
|
|
51
49
|
'timezone': json['timezone'],
|
|
52
50
|
'state': json['state'],
|
|
53
51
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
54
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
52
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
55
53
|
'registers': (json['registers'] == null ? null : json['registers'].map(RegisterListResource_1.RegisterListResourceFromJSON)),
|
|
56
54
|
};
|
|
57
55
|
}
|
|
@@ -59,6 +57,7 @@ function RegisterGroupedByRosterResourceToJSON(json) {
|
|
|
59
57
|
return RegisterGroupedByRosterResourceToJSONTyped(json, false);
|
|
60
58
|
}
|
|
61
59
|
function RegisterGroupedByRosterResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
60
|
+
var _a;
|
|
62
61
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
63
62
|
if (value == null) {
|
|
64
63
|
return value;
|
|
@@ -69,7 +68,7 @@ function RegisterGroupedByRosterResourceToJSONTyped(value, ignoreDiscriminator)
|
|
|
69
68
|
'timezone': value['timezone'],
|
|
70
69
|
'state': value['state'],
|
|
71
70
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
72
|
-
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
71
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((_a = value['finishDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
73
72
|
'registers': (value['registers'] == null ? null : value['registers'].map(RegisterListResource_1.RegisterListResourceToJSON)),
|
|
74
73
|
};
|
|
75
74
|
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { VenueLiteResource } from './VenueLiteResource';
|
|
13
13
|
import type { UserLiteResource } from './UserLiteResource';
|
|
14
|
+
import type { IncidentLiteResource } from './IncidentLiteResource';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
16
17
|
* @export
|
|
@@ -148,13 +149,13 @@ export interface RegisterListResource {
|
|
|
148
149
|
* @type {number}
|
|
149
150
|
* @memberof RegisterListResource
|
|
150
151
|
*/
|
|
151
|
-
signOffLong
|
|
152
|
+
signOffLong?: number | null;
|
|
152
153
|
/**
|
|
153
154
|
*
|
|
154
|
-
* @type {Array<
|
|
155
|
+
* @type {Array<IncidentLiteResource>}
|
|
155
156
|
* @memberof RegisterListResource
|
|
156
157
|
*/
|
|
157
|
-
incidents: Array<
|
|
158
|
+
incidents: Array<IncidentLiteResource> | null;
|
|
158
159
|
}
|
|
159
160
|
/**
|
|
160
161
|
* Check if a given object implements the RegisterListResource interface.
|
|
@@ -20,6 +20,7 @@ exports.RegisterListResourceToJSON = RegisterListResourceToJSON;
|
|
|
20
20
|
exports.RegisterListResourceToJSONTyped = RegisterListResourceToJSONTyped;
|
|
21
21
|
var VenueLiteResource_1 = require("./VenueLiteResource");
|
|
22
22
|
var UserLiteResource_1 = require("./UserLiteResource");
|
|
23
|
+
var IncidentLiteResource_1 = require("./IncidentLiteResource");
|
|
23
24
|
/**
|
|
24
25
|
* Check if a given object implements the RegisterListResource interface.
|
|
25
26
|
*/
|
|
@@ -62,8 +63,6 @@ function instanceOfRegisterListResource(value) {
|
|
|
62
63
|
return false;
|
|
63
64
|
if (!('signOffLat' in value) || value['signOffLat'] === undefined)
|
|
64
65
|
return false;
|
|
65
|
-
if (!('signOffLong' in value) || value['signOffLong'] === undefined)
|
|
66
|
-
return false;
|
|
67
66
|
if (!('incidents' in value) || value['incidents'] === undefined)
|
|
68
67
|
return false;
|
|
69
68
|
return true;
|
|
@@ -97,8 +96,8 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
97
96
|
'signOnLat': json['signOnLat'],
|
|
98
97
|
'signOnLong': json['signOnLong'],
|
|
99
98
|
'signOffLat': json['signOffLat'],
|
|
100
|
-
'signOffLong': json['signOffLong'],
|
|
101
|
-
'incidents': json['incidents'],
|
|
99
|
+
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
100
|
+
'incidents': (json['incidents'] == null ? null : json['incidents'].map(IncidentLiteResource_1.IncidentLiteResourceFromJSON)),
|
|
102
101
|
};
|
|
103
102
|
}
|
|
104
103
|
function RegisterListResourceToJSON(json) {
|
|
@@ -132,6 +131,6 @@ function RegisterListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
132
131
|
'signOnLong': value['signOnLong'],
|
|
133
132
|
'signOffLat': value['signOffLat'],
|
|
134
133
|
'signOffLong': value['signOffLong'],
|
|
135
|
-
'incidents': value['incidents'],
|
|
134
|
+
'incidents': (value['incidents'] == null ? null : value['incidents'].map(IncidentLiteResource_1.IncidentLiteResourceToJSON)),
|
|
136
135
|
};
|
|
137
136
|
}
|
|
@@ -112,7 +112,7 @@ export interface RegisterResource {
|
|
|
112
112
|
* @type {number}
|
|
113
113
|
* @memberof RegisterResource
|
|
114
114
|
*/
|
|
115
|
-
signOffLong
|
|
115
|
+
signOffLong?: number | null;
|
|
116
116
|
/**
|
|
117
117
|
*
|
|
118
118
|
* @type {string}
|
|
@@ -142,7 +142,7 @@ export interface RegisterResource {
|
|
|
142
142
|
* @type {string}
|
|
143
143
|
* @memberof RegisterResource
|
|
144
144
|
*/
|
|
145
|
-
badgeNumber
|
|
145
|
+
badgeNumber: string;
|
|
146
146
|
/**
|
|
147
147
|
*
|
|
148
148
|
* @type {Date}
|
|
@@ -50,8 +50,6 @@ function instanceOfRegisterResource(value) {
|
|
|
50
50
|
return false;
|
|
51
51
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined)
|
|
52
52
|
return false;
|
|
53
|
-
if (!('signOffLong' in value) || value['signOffLong'] === undefined)
|
|
54
|
-
return false;
|
|
55
53
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
|
|
56
54
|
return false;
|
|
57
55
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined)
|
|
@@ -60,6 +58,8 @@ function instanceOfRegisterResource(value) {
|
|
|
60
58
|
return false;
|
|
61
59
|
if (!('licenceLastName' in value) || value['licenceLastName'] === undefined)
|
|
62
60
|
return false;
|
|
61
|
+
if (!('badgeNumber' in value) || value['badgeNumber'] === undefined)
|
|
62
|
+
return false;
|
|
63
63
|
return true;
|
|
64
64
|
}
|
|
65
65
|
function RegisterResourceFromJSON(json) {
|
|
@@ -85,12 +85,12 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
85
85
|
'signOnLat': json['signOnLat'],
|
|
86
86
|
'signOnLong': json['signOnLong'],
|
|
87
87
|
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
88
|
-
'signOffLong': json['signOffLong'],
|
|
88
|
+
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
89
89
|
'licenceNumber': json['licenceNumber'],
|
|
90
90
|
'licenceExpiry': json['licenceExpiry'],
|
|
91
91
|
'licenceFirstName': json['licenceFirstName'],
|
|
92
92
|
'licenceLastName': json['licenceLastName'],
|
|
93
|
-
'badgeNumber': json['badgeNumber']
|
|
93
|
+
'badgeNumber': json['badgeNumber'],
|
|
94
94
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
95
95
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
96
96
|
};
|
|
@@ -30,6 +30,8 @@ function instanceOfRosterListResource(value) {
|
|
|
30
30
|
return false;
|
|
31
31
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined)
|
|
32
32
|
return false;
|
|
33
|
+
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
|
|
34
|
+
return false;
|
|
33
35
|
if (!('isCompliant' in value) || value['isCompliant'] === undefined)
|
|
34
36
|
return false;
|
|
35
37
|
if (!('isComplete' in value) || value['isComplete'] === undefined)
|
|
@@ -52,7 +54,7 @@ function RosterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
54
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
|
|
53
55
|
'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceFromJSON)(json['securityCompany']),
|
|
54
56
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
55
|
-
'finishDateTime':
|
|
57
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
56
58
|
'isCompliant': json['isCompliant'],
|
|
57
59
|
'isComplete': json['isComplete'],
|
|
58
60
|
'signOffStatus': json['signOffStatus'],
|
|
@@ -63,7 +65,6 @@ function RosterListResourceToJSON(json) {
|
|
|
63
65
|
return RosterListResourceToJSONTyped(json, false);
|
|
64
66
|
}
|
|
65
67
|
function RosterListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
66
|
-
var _a;
|
|
67
68
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
68
69
|
if (value == null) {
|
|
69
70
|
return value;
|
|
@@ -73,7 +74,7 @@ function RosterListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
73
74
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
|
|
74
75
|
'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceToJSON)(value['securityCompany']),
|
|
75
76
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
76
|
-
'finishDateTime':
|
|
77
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
77
78
|
'isCompliant': value['isCompliant'],
|
|
78
79
|
'isComplete': value['isComplete'],
|
|
79
80
|
'signOffStatus': value['signOffStatus'],
|
|
@@ -24,6 +24,8 @@ exports.RosterLiteResourceToJSONTyped = RosterLiteResourceToJSONTyped;
|
|
|
24
24
|
function instanceOfRosterLiteResource(value) {
|
|
25
25
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
+
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
|
|
28
|
+
return false;
|
|
27
29
|
return true;
|
|
28
30
|
}
|
|
29
31
|
function RosterLiteResourceFromJSON(json) {
|
|
@@ -36,14 +38,13 @@ function RosterLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
36
38
|
return {
|
|
37
39
|
'id': json['id'] == null ? undefined : json['id'],
|
|
38
40
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
39
|
-
'finishDateTime':
|
|
41
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
40
42
|
};
|
|
41
43
|
}
|
|
42
44
|
function RosterLiteResourceToJSON(json) {
|
|
43
45
|
return RosterLiteResourceToJSONTyped(json, false);
|
|
44
46
|
}
|
|
45
47
|
function RosterLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
46
|
-
var _a;
|
|
47
48
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
49
|
if (value == null) {
|
|
49
50
|
return value;
|
|
@@ -51,6 +52,6 @@ function RosterLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
51
52
|
return {
|
|
52
53
|
'id': value['id'],
|
|
53
54
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
54
|
-
'finishDateTime':
|
|
55
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
55
56
|
};
|
|
56
57
|
}
|
|
@@ -31,8 +31,6 @@ function instanceOfRosterResource(value) {
|
|
|
31
31
|
return false;
|
|
32
32
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined)
|
|
33
33
|
return false;
|
|
34
|
-
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
|
|
35
|
-
return false;
|
|
36
34
|
if (!('isCompliant' in value) || value['isCompliant'] === undefined)
|
|
37
35
|
return false;
|
|
38
36
|
if (!('isComplete' in value) || value['isComplete'] === undefined)
|
|
@@ -55,7 +53,7 @@ function RosterResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
53
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
|
|
56
54
|
'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceFromJSON)(json['securityCompany']),
|
|
57
55
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
58
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
56
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
59
57
|
'isCompliant': json['isCompliant'],
|
|
60
58
|
'isComplete': json['isComplete'],
|
|
61
59
|
'signOffStatus': json['signOffStatus'],
|
|
@@ -66,6 +64,7 @@ function RosterResourceToJSON(json) {
|
|
|
66
64
|
return RosterResourceToJSONTyped(json, false);
|
|
67
65
|
}
|
|
68
66
|
function RosterResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
67
|
+
var _a;
|
|
69
68
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
70
69
|
if (value == null) {
|
|
71
70
|
return value;
|
|
@@ -75,7 +74,7 @@ function RosterResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
75
74
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
|
|
76
75
|
'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceToJSON)(value['securityCompany']),
|
|
77
76
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
78
|
-
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
77
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((_a = value['finishDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
79
78
|
'isCompliant': value['isCompliant'],
|
|
80
79
|
'isComplete': value['isComplete'],
|
|
81
80
|
'signOffStatus': value['signOffStatus'],
|
|
@@ -33,8 +33,6 @@ function instanceOfRosterWithRegistersResource(value) {
|
|
|
33
33
|
return false;
|
|
34
34
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined)
|
|
35
35
|
return false;
|
|
36
|
-
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
|
|
37
|
-
return false;
|
|
38
36
|
if (!('isCompliant' in value) || value['isCompliant'] === undefined)
|
|
39
37
|
return false;
|
|
40
38
|
if (!('isComplete' in value) || value['isComplete'] === undefined)
|
|
@@ -58,7 +56,7 @@ function RosterWithRegistersResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
56
|
'state': json['state'],
|
|
59
57
|
'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceFromJSON)(json['securityCompany']),
|
|
60
58
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
61
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
59
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
62
60
|
'isCompliant': json['isCompliant'],
|
|
63
61
|
'isComplete': json['isComplete'],
|
|
64
62
|
'signOffStatus': json['signOffStatus'],
|
|
@@ -69,6 +67,7 @@ function RosterWithRegistersResourceToJSON(json) {
|
|
|
69
67
|
return RosterWithRegistersResourceToJSONTyped(json, false);
|
|
70
68
|
}
|
|
71
69
|
function RosterWithRegistersResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
70
|
+
var _a;
|
|
72
71
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
73
72
|
if (value == null) {
|
|
74
73
|
return value;
|
|
@@ -79,7 +78,7 @@ function RosterWithRegistersResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
79
78
|
'state': value['state'],
|
|
80
79
|
'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceToJSON)(value['securityCompany']),
|
|
81
80
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
82
|
-
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
81
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((_a = value['finishDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
83
82
|
'isCompliant': value['isCompliant'],
|
|
84
83
|
'isComplete': value['isComplete'],
|
|
85
84
|
'signOffStatus': value['signOffStatus'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -17,6 +17,8 @@ export * from './IncidentFieldSchemasShowRequest';
|
|
|
17
17
|
export * from './IncidentFieldsResourceArrayResponse';
|
|
18
18
|
export * from './IncidentImageResource';
|
|
19
19
|
export * from './IncidentImageResourceArrayResponse';
|
|
20
|
+
export * from './IncidentLiteResource';
|
|
21
|
+
export * from './IncidentLiteResourceArrayResponse';
|
|
20
22
|
export * from './IncidentResource';
|
|
21
23
|
export * from './IncidentResourceArrayResponse';
|
|
22
24
|
export * from './IncidentVersionResource';
|
package/dist/models/index.js
CHANGED
|
@@ -35,6 +35,8 @@ __exportStar(require("./IncidentFieldSchemasShowRequest"), exports);
|
|
|
35
35
|
__exportStar(require("./IncidentFieldsResourceArrayResponse"), exports);
|
|
36
36
|
__exportStar(require("./IncidentImageResource"), exports);
|
|
37
37
|
__exportStar(require("./IncidentImageResourceArrayResponse"), exports);
|
|
38
|
+
__exportStar(require("./IncidentLiteResource"), exports);
|
|
39
|
+
__exportStar(require("./IncidentLiteResourceArrayResponse"), exports);
|
|
38
40
|
__exportStar(require("./IncidentResource"), exports);
|
|
39
41
|
__exportStar(require("./IncidentResourceArrayResponse"), exports);
|
|
40
42
|
__exportStar(require("./IncidentVersionResource"), exports);
|
package/package.json
CHANGED
|
@@ -48,7 +48,7 @@ export interface AssetResource {
|
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof AssetResource
|
|
50
50
|
*/
|
|
51
|
-
altText
|
|
51
|
+
altText?: string | null;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {number}
|
|
@@ -71,7 +71,6 @@ 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;
|
|
75
74
|
if (!('index' in value) || value['index'] === undefined) return false;
|
|
76
75
|
if (!('fileId' in value) || value['fileId'] === undefined) return false;
|
|
77
76
|
return true;
|
|
@@ -91,7 +90,7 @@ export function AssetResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
91
90
|
'filePath': json['filePath'],
|
|
92
91
|
'fileName': json['fileName'],
|
|
93
92
|
'mimeType': json['mimeType'],
|
|
94
|
-
'altText': json['altText'],
|
|
93
|
+
'altText': json['altText'] == null ? undefined : json['altText'],
|
|
95
94
|
'index': json['index'],
|
|
96
95
|
'fileId': json['fileId'],
|
|
97
96
|
};
|
|
@@ -36,7 +36,7 @@ export interface IncidentImageResource {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof IncidentImageResource
|
|
38
38
|
*/
|
|
39
|
-
altText
|
|
39
|
+
altText: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {number}
|
|
@@ -57,6 +57,7 @@ export interface IncidentImageResource {
|
|
|
57
57
|
export function instanceOfIncidentImageResource(value: object): value is IncidentImageResource {
|
|
58
58
|
if (!('fileId' in value) || value['fileId'] === undefined) return false;
|
|
59
59
|
if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
|
|
60
|
+
if (!('altText' in value) || value['altText'] === undefined) return false;
|
|
60
61
|
if (!('assetId' in value) || value['assetId'] === undefined) return false;
|
|
61
62
|
if (!('url' in value) || value['url'] === undefined) return false;
|
|
62
63
|
return true;
|
|
@@ -74,7 +75,7 @@ export function IncidentImageResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
74
75
|
|
|
75
76
|
'fileId': json['file_id'],
|
|
76
77
|
'mimeType': json['mime_type'],
|
|
77
|
-
'altText': json['alt_text']
|
|
78
|
+
'altText': json['alt_text'],
|
|
78
79
|
'assetId': json['asset_id'],
|
|
79
80
|
'url': json['url'],
|
|
80
81
|
};
|
|
@@ -0,0 +1,74 @@
|
|
|
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 IncidentLiteResource
|
|
20
|
+
*/
|
|
21
|
+
export interface IncidentLiteResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof IncidentLiteResource
|
|
26
|
+
*/
|
|
27
|
+
id: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {Date}
|
|
31
|
+
* @memberof IncidentLiteResource
|
|
32
|
+
*/
|
|
33
|
+
approvedAt?: Date | null;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the IncidentLiteResource interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfIncidentLiteResource(value: object): value is IncidentLiteResource {
|
|
40
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function IncidentLiteResourceFromJSON(json: any): IncidentLiteResource {
|
|
45
|
+
return IncidentLiteResourceFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function IncidentLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentLiteResource {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
|
|
54
|
+
'id': json['id'],
|
|
55
|
+
'approvedAt': json['approvedAt'] == null ? undefined : (new Date(json['approvedAt'])),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function IncidentLiteResourceToJSON(json: any): IncidentLiteResource {
|
|
60
|
+
return IncidentLiteResourceToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function IncidentLiteResourceToJSONTyped(value?: IncidentLiteResource | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'id': value['id'],
|
|
71
|
+
'approvedAt': value['approvedAt'] === null ? null : ((value['approvedAt'] as any)?.toISOString()),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -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 { IncidentLiteResource } from './IncidentLiteResource';
|
|
17
|
+
import {
|
|
18
|
+
IncidentLiteResourceFromJSON,
|
|
19
|
+
IncidentLiteResourceFromJSONTyped,
|
|
20
|
+
IncidentLiteResourceToJSON,
|
|
21
|
+
IncidentLiteResourceToJSONTyped,
|
|
22
|
+
} from './IncidentLiteResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface IncidentLiteResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface IncidentLiteResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<IncidentLiteResource>}
|
|
33
|
+
* @memberof IncidentLiteResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<IncidentLiteResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the IncidentLiteResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfIncidentLiteResourceArrayResponse(value: object): value is IncidentLiteResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function IncidentLiteResourceArrayResponseFromJSON(json: any): IncidentLiteResourceArrayResponse {
|
|
46
|
+
return IncidentLiteResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function IncidentLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentLiteResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(IncidentLiteResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function IncidentLiteResourceArrayResponseToJSON(json: any): IncidentLiteResourceArrayResponse {
|
|
60
|
+
return IncidentLiteResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function IncidentLiteResourceArrayResponseToJSONTyped(value?: IncidentLiteResourceArrayResponse | 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(IncidentLiteResourceToJSON)),
|
|
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
|
}
|
|
@@ -27,6 +27,13 @@ import {
|
|
|
27
27
|
UserLiteResourceToJSON,
|
|
28
28
|
UserLiteResourceToJSONTyped,
|
|
29
29
|
} from './UserLiteResource';
|
|
30
|
+
import type { IncidentLiteResource } from './IncidentLiteResource';
|
|
31
|
+
import {
|
|
32
|
+
IncidentLiteResourceFromJSON,
|
|
33
|
+
IncidentLiteResourceFromJSONTyped,
|
|
34
|
+
IncidentLiteResourceToJSON,
|
|
35
|
+
IncidentLiteResourceToJSONTyped,
|
|
36
|
+
} from './IncidentLiteResource';
|
|
30
37
|
|
|
31
38
|
/**
|
|
32
39
|
*
|
|
@@ -165,13 +172,13 @@ export interface RegisterListResource {
|
|
|
165
172
|
* @type {number}
|
|
166
173
|
* @memberof RegisterListResource
|
|
167
174
|
*/
|
|
168
|
-
signOffLong
|
|
175
|
+
signOffLong?: number | null;
|
|
169
176
|
/**
|
|
170
177
|
*
|
|
171
|
-
* @type {Array<
|
|
178
|
+
* @type {Array<IncidentLiteResource>}
|
|
172
179
|
* @memberof RegisterListResource
|
|
173
180
|
*/
|
|
174
|
-
incidents: Array<
|
|
181
|
+
incidents: Array<IncidentLiteResource> | null;
|
|
175
182
|
}
|
|
176
183
|
|
|
177
184
|
/**
|
|
@@ -197,7 +204,6 @@ export function instanceOfRegisterListResource(value: object): value is Register
|
|
|
197
204
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
198
205
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
199
206
|
if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
|
|
200
|
-
if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
|
|
201
207
|
if (!('incidents' in value) || value['incidents'] === undefined) return false;
|
|
202
208
|
return true;
|
|
203
209
|
}
|
|
@@ -233,8 +239,8 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
233
239
|
'signOnLat': json['signOnLat'],
|
|
234
240
|
'signOnLong': json['signOnLong'],
|
|
235
241
|
'signOffLat': json['signOffLat'],
|
|
236
|
-
'signOffLong': json['signOffLong'],
|
|
237
|
-
'incidents': json['incidents'],
|
|
242
|
+
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
243
|
+
'incidents': (json['incidents'] == null ? null : (json['incidents'] as Array<any>).map(IncidentLiteResourceFromJSON)),
|
|
238
244
|
};
|
|
239
245
|
}
|
|
240
246
|
|
|
@@ -271,7 +277,7 @@ export function RegisterListResourceToJSONTyped(value?: RegisterListResource | n
|
|
|
271
277
|
'signOnLong': value['signOnLong'],
|
|
272
278
|
'signOffLat': value['signOffLat'],
|
|
273
279
|
'signOffLong': value['signOffLong'],
|
|
274
|
-
'incidents': value['incidents'],
|
|
280
|
+
'incidents': (value['incidents'] == null ? null : (value['incidents'] as Array<any>).map(IncidentLiteResourceToJSON)),
|
|
275
281
|
};
|
|
276
282
|
}
|
|
277
283
|
|
|
@@ -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}
|
|
@@ -159,7 +159,7 @@ export interface RegisterResource {
|
|
|
159
159
|
* @type {string}
|
|
160
160
|
* @memberof RegisterResource
|
|
161
161
|
*/
|
|
162
|
-
badgeNumber
|
|
162
|
+
badgeNumber: string;
|
|
163
163
|
/**
|
|
164
164
|
*
|
|
165
165
|
* @type {Date}
|
|
@@ -191,11 +191,11 @@ 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 (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
|
|
195
194
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
196
195
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
|
|
197
196
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
|
|
198
197
|
if (!('licenceLastName' in value) || value['licenceLastName'] === undefined) return false;
|
|
198
|
+
if (!('badgeNumber' in value) || value['badgeNumber'] === undefined) return false;
|
|
199
199
|
return true;
|
|
200
200
|
}
|
|
201
201
|
|
|
@@ -224,12 +224,12 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
224
224
|
'signOnLat': json['signOnLat'],
|
|
225
225
|
'signOnLong': json['signOnLong'],
|
|
226
226
|
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
227
|
-
'signOffLong': json['signOffLong'],
|
|
227
|
+
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
228
228
|
'licenceNumber': json['licenceNumber'],
|
|
229
229
|
'licenceExpiry': json['licenceExpiry'],
|
|
230
230
|
'licenceFirstName': json['licenceFirstName'],
|
|
231
231
|
'licenceLastName': json['licenceLastName'],
|
|
232
|
-
'badgeNumber': json['badgeNumber']
|
|
232
|
+
'badgeNumber': json['badgeNumber'],
|
|
233
233
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
234
234
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
235
235
|
};
|
|
@@ -63,7 +63,7 @@ export interface RosterListResource {
|
|
|
63
63
|
* @type {Date}
|
|
64
64
|
* @memberof RosterListResource
|
|
65
65
|
*/
|
|
66
|
-
finishDateTime
|
|
66
|
+
finishDateTime: Date;
|
|
67
67
|
/**
|
|
68
68
|
*
|
|
69
69
|
* @type {boolean}
|
|
@@ -97,6 +97,7 @@ 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;
|
|
100
101
|
if (!('isCompliant' in value) || value['isCompliant'] === undefined) return false;
|
|
101
102
|
if (!('isComplete' in value) || value['isComplete'] === undefined) return false;
|
|
102
103
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
@@ -118,7 +119,7 @@ export function RosterListResourceFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
118
119
|
'venue': VenueLiteResourceFromJSON(json['venue']),
|
|
119
120
|
'securityCompany': SecurityCompanyLiteResourceFromJSON(json['securityCompany']),
|
|
120
121
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
121
|
-
'finishDateTime':
|
|
122
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
122
123
|
'isCompliant': json['isCompliant'],
|
|
123
124
|
'isComplete': json['isComplete'],
|
|
124
125
|
'signOffStatus': json['signOffStatus'],
|
|
@@ -141,7 +142,7 @@ export function RosterListResourceToJSONTyped(value?: RosterListResource | null,
|
|
|
141
142
|
'venue': VenueLiteResourceToJSON(value['venue']),
|
|
142
143
|
'securityCompany': SecurityCompanyLiteResourceToJSON(value['securityCompany']),
|
|
143
144
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
144
|
-
'finishDateTime':
|
|
145
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
145
146
|
'isCompliant': value['isCompliant'],
|
|
146
147
|
'isComplete': value['isComplete'],
|
|
147
148
|
'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;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
/**
|
|
@@ -44,6 +44,7 @@ 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;
|
|
47
48
|
return true;
|
|
48
49
|
}
|
|
49
50
|
|
|
@@ -59,7 +60,7 @@ export function RosterLiteResourceFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
59
60
|
|
|
60
61
|
'id': json['id'] == null ? undefined : json['id'],
|
|
61
62
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
62
|
-
'finishDateTime':
|
|
63
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
63
64
|
};
|
|
64
65
|
}
|
|
65
66
|
|
|
@@ -76,7 +77,7 @@ export function RosterLiteResourceToJSONTyped(value?: RosterLiteResource | null,
|
|
|
76
77
|
|
|
77
78
|
'id': value['id'],
|
|
78
79
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
79
|
-
'finishDateTime':
|
|
80
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
80
81
|
};
|
|
81
82
|
}
|
|
82
83
|
|
|
@@ -70,7 +70,7 @@ export interface RosterResource {
|
|
|
70
70
|
* @type {Date}
|
|
71
71
|
* @memberof RosterResource
|
|
72
72
|
*/
|
|
73
|
-
finishDateTime
|
|
73
|
+
finishDateTime?: Date | null;
|
|
74
74
|
/**
|
|
75
75
|
*
|
|
76
76
|
* @type {boolean}
|
|
@@ -104,7 +104,6 @@ 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;
|
|
108
107
|
if (!('isCompliant' in value) || value['isCompliant'] === undefined) return false;
|
|
109
108
|
if (!('isComplete' in value) || value['isComplete'] === undefined) return false;
|
|
110
109
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
@@ -126,7 +125,7 @@ export function RosterResourceFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
126
125
|
'venue': VenueLiteResourceFromJSON(json['venue']),
|
|
127
126
|
'securityCompany': SecurityCompanyLiteResourceFromJSON(json['securityCompany']),
|
|
128
127
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
129
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
128
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
130
129
|
'isCompliant': json['isCompliant'],
|
|
131
130
|
'isComplete': json['isComplete'],
|
|
132
131
|
'signOffStatus': json['signOffStatus'],
|
|
@@ -149,7 +148,7 @@ export function RosterResourceToJSONTyped(value?: RosterResource | null, ignoreD
|
|
|
149
148
|
'venue': VenueLiteResourceToJSON(value['venue']),
|
|
150
149
|
'securityCompany': SecurityCompanyLiteResourceToJSON(value['securityCompany']),
|
|
151
150
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
152
|
-
'finishDateTime': ((value['finishDateTime'])
|
|
151
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
|
|
153
152
|
'isCompliant': value['isCompliant'],
|
|
154
153
|
'isComplete': value['isComplete'],
|
|
155
154
|
'signOffStatus': value['signOffStatus'],
|
|
@@ -76,7 +76,7 @@ export interface RosterWithRegistersResource {
|
|
|
76
76
|
* @type {Date}
|
|
77
77
|
* @memberof RosterWithRegistersResource
|
|
78
78
|
*/
|
|
79
|
-
finishDateTime
|
|
79
|
+
finishDateTime?: Date | null;
|
|
80
80
|
/**
|
|
81
81
|
*
|
|
82
82
|
* @type {boolean}
|
|
@@ -111,7 +111,6 @@ export function instanceOfRosterWithRegistersResource(value: object): value is R
|
|
|
111
111
|
if (!('state' in value) || value['state'] === undefined) return false;
|
|
112
112
|
if (!('securityCompany' in value) || value['securityCompany'] === undefined) return false;
|
|
113
113
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
114
|
-
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
|
|
115
114
|
if (!('isCompliant' in value) || value['isCompliant'] === undefined) return false;
|
|
116
115
|
if (!('isComplete' in value) || value['isComplete'] === undefined) return false;
|
|
117
116
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
@@ -134,7 +133,7 @@ export function RosterWithRegistersResourceFromJSONTyped(json: any, ignoreDiscri
|
|
|
134
133
|
'state': json['state'],
|
|
135
134
|
'securityCompany': SecurityCompanyLiteResourceFromJSON(json['securityCompany']),
|
|
136
135
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
137
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
136
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
138
137
|
'isCompliant': json['isCompliant'],
|
|
139
138
|
'isComplete': json['isComplete'],
|
|
140
139
|
'signOffStatus': json['signOffStatus'],
|
|
@@ -158,7 +157,7 @@ export function RosterWithRegistersResourceToJSONTyped(value?: RosterWithRegiste
|
|
|
158
157
|
'state': value['state'],
|
|
159
158
|
'securityCompany': SecurityCompanyLiteResourceToJSON(value['securityCompany']),
|
|
160
159
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
161
|
-
'finishDateTime': ((value['finishDateTime'])
|
|
160
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
|
|
162
161
|
'isCompliant': value['isCompliant'],
|
|
163
162
|
'isComplete': value['isComplete'],
|
|
164
163
|
'signOffStatus': value['signOffStatus'],
|
package/src/models/index.ts
CHANGED
|
@@ -19,6 +19,8 @@ export * from './IncidentFieldSchemasShowRequest';
|
|
|
19
19
|
export * from './IncidentFieldsResourceArrayResponse';
|
|
20
20
|
export * from './IncidentImageResource';
|
|
21
21
|
export * from './IncidentImageResourceArrayResponse';
|
|
22
|
+
export * from './IncidentLiteResource';
|
|
23
|
+
export * from './IncidentLiteResourceArrayResponse';
|
|
22
24
|
export * from './IncidentResource';
|
|
23
25
|
export * from './IncidentResourceArrayResponse';
|
|
24
26
|
export * from './IncidentVersionResource';
|