@digital8/security-registers-backend-ts-sdk 0.0.235 → 0.0.236
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 +5 -0
- package/README.md +2 -2
- package/dist/models/AssetResource.d.ts +1 -1
- package/dist/models/AssetResource.js +3 -1
- package/dist/models/IncidentImageResource.d.ts +56 -0
- package/dist/models/IncidentImageResource.js +67 -0
- package/dist/models/IncidentImageResourceArrayResponse.d.ts +33 -0
- package/dist/models/IncidentImageResourceArrayResponse.js +50 -0
- package/dist/models/IncidentLiteResource.d.ts +75 -0
- package/dist/models/IncidentLiteResource.js +67 -0
- package/dist/models/IncidentLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/IncidentLiteResourceArrayResponse.js +50 -0
- package/dist/models/IncidentLiteResourceStaff.d.ts +32 -0
- package/dist/models/IncidentLiteResourceStaff.js +51 -0
- package/dist/models/RegisterListResource.d.ts +3 -2
- package/dist/models/RegisterListResource.js +3 -2
- package/dist/models/RegisterResource.d.ts +1 -1
- package/dist/models/RegisterResource.js +3 -1
- 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 +3 -4
- package/dist/models/RosterWithRegistersResource.d.ts +1 -1
- package/dist/models/RosterWithRegistersResource.js +3 -4
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/package.json +1 -1
- package/src/models/AssetResource.ts +3 -2
- package/src/models/IncidentImageResource.ts +102 -0
- package/src/models/IncidentImageResourceArrayResponse.ts +73 -0
- package/src/models/IncidentLiteResource.ts +130 -0
- package/src/models/IncidentLiteResourceArrayResponse.ts +73 -0
- package/src/models/IncidentLiteResourceStaff.ts +66 -0
- package/src/models/RegisterListResource.ts +11 -4
- package/src/models/RegisterResource.ts +3 -2
- package/src/models/RosterListResource.ts +4 -3
- package/src/models/RosterLiteResource.ts +3 -4
- package/src/models/RosterWithRegistersResource.ts +3 -4
- package/src/models/index.ts +5 -0
|
@@ -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,8 +24,6 @@ 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;
|
|
29
27
|
return true;
|
|
30
28
|
}
|
|
31
29
|
function RosterLiteResourceFromJSON(json) {
|
|
@@ -38,13 +36,14 @@ function RosterLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
36
|
return {
|
|
39
37
|
'id': json['id'] == null ? undefined : json['id'],
|
|
40
38
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
41
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
39
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
42
40
|
};
|
|
43
41
|
}
|
|
44
42
|
function RosterLiteResourceToJSON(json) {
|
|
45
43
|
return RosterLiteResourceToJSONTyped(json, false);
|
|
46
44
|
}
|
|
47
45
|
function RosterLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
46
|
+
var _a;
|
|
48
47
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
49
48
|
if (value == null) {
|
|
50
49
|
return value;
|
|
@@ -52,6 +51,6 @@ function RosterLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
52
51
|
return {
|
|
53
52
|
'id': value['id'],
|
|
54
53
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
55
|
-
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
54
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((_a = value['finishDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
56
55
|
};
|
|
57
56
|
}
|
|
@@ -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
|
@@ -15,6 +15,11 @@ export * from './IncidentFieldSchemaResource';
|
|
|
15
15
|
export * from './IncidentFieldSchemaResourceArrayResponse';
|
|
16
16
|
export * from './IncidentFieldSchemasShowRequest';
|
|
17
17
|
export * from './IncidentFieldsResourceArrayResponse';
|
|
18
|
+
export * from './IncidentImageResource';
|
|
19
|
+
export * from './IncidentImageResourceArrayResponse';
|
|
20
|
+
export * from './IncidentLiteResource';
|
|
21
|
+
export * from './IncidentLiteResourceArrayResponse';
|
|
22
|
+
export * from './IncidentLiteResourceStaff';
|
|
18
23
|
export * from './IncidentResource';
|
|
19
24
|
export * from './IncidentResourceArrayResponse';
|
|
20
25
|
export * from './IncidentVersionResource';
|
package/dist/models/index.js
CHANGED
|
@@ -33,6 +33,11 @@ __exportStar(require("./IncidentFieldSchemaResource"), exports);
|
|
|
33
33
|
__exportStar(require("./IncidentFieldSchemaResourceArrayResponse"), exports);
|
|
34
34
|
__exportStar(require("./IncidentFieldSchemasShowRequest"), exports);
|
|
35
35
|
__exportStar(require("./IncidentFieldsResourceArrayResponse"), exports);
|
|
36
|
+
__exportStar(require("./IncidentImageResource"), exports);
|
|
37
|
+
__exportStar(require("./IncidentImageResourceArrayResponse"), exports);
|
|
38
|
+
__exportStar(require("./IncidentLiteResource"), exports);
|
|
39
|
+
__exportStar(require("./IncidentLiteResourceArrayResponse"), exports);
|
|
40
|
+
__exportStar(require("./IncidentLiteResourceStaff"), exports);
|
|
36
41
|
__exportStar(require("./IncidentResource"), exports);
|
|
37
42
|
__exportStar(require("./IncidentResourceArrayResponse"), exports);
|
|
38
43
|
__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;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {number}
|
|
@@ -71,6 +71,7 @@ export function instanceOfAssetResource(value: object): value is AssetResource {
|
|
|
71
71
|
if (!('filePath' in value) || value['filePath'] === undefined) return false;
|
|
72
72
|
if (!('fileName' in value) || value['fileName'] === undefined) return false;
|
|
73
73
|
if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
|
|
74
|
+
if (!('altText' in value) || value['altText'] === undefined) return false;
|
|
74
75
|
if (!('index' in value) || value['index'] === undefined) return false;
|
|
75
76
|
if (!('fileId' in value) || value['fileId'] === undefined) return false;
|
|
76
77
|
return true;
|
|
@@ -90,7 +91,7 @@ export function AssetResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
90
91
|
'filePath': json['filePath'],
|
|
91
92
|
'fileName': json['fileName'],
|
|
92
93
|
'mimeType': json['mimeType'],
|
|
93
|
-
'altText': json['altText']
|
|
94
|
+
'altText': json['altText'],
|
|
94
95
|
'index': json['index'],
|
|
95
96
|
'fileId': json['fileId'],
|
|
96
97
|
};
|
|
@@ -0,0 +1,102 @@
|
|
|
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 IncidentImageResource
|
|
20
|
+
*/
|
|
21
|
+
export interface IncidentImageResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof IncidentImageResource
|
|
26
|
+
*/
|
|
27
|
+
fileId: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof IncidentImageResource
|
|
32
|
+
*/
|
|
33
|
+
mimeType: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof IncidentImageResource
|
|
38
|
+
*/
|
|
39
|
+
altText: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof IncidentImageResource
|
|
44
|
+
*/
|
|
45
|
+
assetId: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof IncidentImageResource
|
|
50
|
+
*/
|
|
51
|
+
url: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the IncidentImageResource interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfIncidentImageResource(value: object): value is IncidentImageResource {
|
|
58
|
+
if (!('fileId' in value) || value['fileId'] === undefined) return false;
|
|
59
|
+
if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
|
|
60
|
+
if (!('altText' in value) || value['altText'] === undefined) return false;
|
|
61
|
+
if (!('assetId' in value) || value['assetId'] === undefined) return false;
|
|
62
|
+
if (!('url' in value) || value['url'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function IncidentImageResourceFromJSON(json: any): IncidentImageResource {
|
|
67
|
+
return IncidentImageResourceFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function IncidentImageResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentImageResource {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'fileId': json['file_id'],
|
|
77
|
+
'mimeType': json['mime_type'],
|
|
78
|
+
'altText': json['alt_text'],
|
|
79
|
+
'assetId': json['asset_id'],
|
|
80
|
+
'url': json['url'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function IncidentImageResourceToJSON(json: any): IncidentImageResource {
|
|
85
|
+
return IncidentImageResourceToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function IncidentImageResourceToJSONTyped(value?: IncidentImageResource | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'file_id': value['fileId'],
|
|
96
|
+
'mime_type': value['mimeType'],
|
|
97
|
+
'alt_text': value['altText'],
|
|
98
|
+
'asset_id': value['assetId'],
|
|
99
|
+
'url': value['url'],
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
@@ -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 { IncidentImageResource } from './IncidentImageResource';
|
|
17
|
+
import {
|
|
18
|
+
IncidentImageResourceFromJSON,
|
|
19
|
+
IncidentImageResourceFromJSONTyped,
|
|
20
|
+
IncidentImageResourceToJSON,
|
|
21
|
+
IncidentImageResourceToJSONTyped,
|
|
22
|
+
} from './IncidentImageResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface IncidentImageResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface IncidentImageResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<IncidentImageResource>}
|
|
33
|
+
* @memberof IncidentImageResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<IncidentImageResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the IncidentImageResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfIncidentImageResourceArrayResponse(value: object): value is IncidentImageResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function IncidentImageResourceArrayResponseFromJSON(json: any): IncidentImageResourceArrayResponse {
|
|
46
|
+
return IncidentImageResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function IncidentImageResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentImageResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(IncidentImageResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function IncidentImageResourceArrayResponseToJSON(json: any): IncidentImageResourceArrayResponse {
|
|
60
|
+
return IncidentImageResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function IncidentImageResourceArrayResponseToJSONTyped(value?: IncidentImageResourceArrayResponse | 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(IncidentImageResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,130 @@
|
|
|
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 { IncidentLiteResourceStaff } from './IncidentLiteResourceStaff';
|
|
17
|
+
import {
|
|
18
|
+
IncidentLiteResourceStaffFromJSON,
|
|
19
|
+
IncidentLiteResourceStaffFromJSONTyped,
|
|
20
|
+
IncidentLiteResourceStaffToJSON,
|
|
21
|
+
IncidentLiteResourceStaffToJSONTyped,
|
|
22
|
+
} from './IncidentLiteResourceStaff';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface IncidentLiteResource
|
|
28
|
+
*/
|
|
29
|
+
export interface IncidentLiteResource {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof IncidentLiteResource
|
|
34
|
+
*/
|
|
35
|
+
id: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof IncidentLiteResource
|
|
40
|
+
*/
|
|
41
|
+
title?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof IncidentLiteResource
|
|
46
|
+
*/
|
|
47
|
+
manager?: string | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Date}
|
|
51
|
+
* @memberof IncidentLiteResource
|
|
52
|
+
*/
|
|
53
|
+
date?: Date | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof IncidentLiteResource
|
|
58
|
+
*/
|
|
59
|
+
startTime?: string | null;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {IncidentLiteResourceStaff}
|
|
63
|
+
* @memberof IncidentLiteResource
|
|
64
|
+
*/
|
|
65
|
+
staff?: IncidentLiteResourceStaff | null;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {Date}
|
|
69
|
+
* @memberof IncidentLiteResource
|
|
70
|
+
*/
|
|
71
|
+
lastUpdated?: Date | null;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {Date}
|
|
75
|
+
* @memberof IncidentLiteResource
|
|
76
|
+
*/
|
|
77
|
+
approvedAt?: Date | null;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Check if a given object implements the IncidentLiteResource interface.
|
|
82
|
+
*/
|
|
83
|
+
export function instanceOfIncidentLiteResource(value: object): value is IncidentLiteResource {
|
|
84
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
85
|
+
return true;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function IncidentLiteResourceFromJSON(json: any): IncidentLiteResource {
|
|
89
|
+
return IncidentLiteResourceFromJSONTyped(json, false);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function IncidentLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentLiteResource {
|
|
93
|
+
if (json == null) {
|
|
94
|
+
return json;
|
|
95
|
+
}
|
|
96
|
+
return {
|
|
97
|
+
|
|
98
|
+
'id': json['id'],
|
|
99
|
+
'title': json['title'] == null ? undefined : json['title'],
|
|
100
|
+
'manager': json['manager'] == null ? undefined : json['manager'],
|
|
101
|
+
'date': json['date'] == null ? undefined : (new Date(json['date'])),
|
|
102
|
+
'startTime': json['startTime'] == null ? undefined : json['startTime'],
|
|
103
|
+
'staff': json['staff'] == null ? undefined : IncidentLiteResourceStaffFromJSON(json['staff']),
|
|
104
|
+
'lastUpdated': json['lastUpdated'] == null ? undefined : (new Date(json['lastUpdated'])),
|
|
105
|
+
'approvedAt': json['approvedAt'] == null ? undefined : (new Date(json['approvedAt'])),
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export function IncidentLiteResourceToJSON(json: any): IncidentLiteResource {
|
|
110
|
+
return IncidentLiteResourceToJSONTyped(json, false);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export function IncidentLiteResourceToJSONTyped(value?: IncidentLiteResource | null, ignoreDiscriminator: boolean = false): any {
|
|
114
|
+
if (value == null) {
|
|
115
|
+
return value;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
return {
|
|
119
|
+
|
|
120
|
+
'id': value['id'],
|
|
121
|
+
'title': value['title'],
|
|
122
|
+
'manager': value['manager'],
|
|
123
|
+
'date': value['date'] === null ? null : ((value['date'] as any)?.toISOString().substring(0,10)),
|
|
124
|
+
'startTime': value['startTime'],
|
|
125
|
+
'staff': IncidentLiteResourceStaffToJSON(value['staff']),
|
|
126
|
+
'lastUpdated': value['lastUpdated'] === null ? null : ((value['lastUpdated'] as any)?.toISOString()),
|
|
127
|
+
'approvedAt': value['approvedAt'] === null ? null : ((value['approvedAt'] as any)?.toISOString()),
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
|
|
@@ -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
|
+
|
|
@@ -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 IncidentLiteResourceStaff
|
|
20
|
+
*/
|
|
21
|
+
export interface IncidentLiteResourceStaff {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof IncidentLiteResourceStaff
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the IncidentLiteResourceStaff interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfIncidentLiteResourceStaff(value: object): value is IncidentLiteResourceStaff {
|
|
34
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function IncidentLiteResourceStaffFromJSON(json: any): IncidentLiteResourceStaff {
|
|
39
|
+
return IncidentLiteResourceStaffFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function IncidentLiteResourceStaffFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentLiteResourceStaff {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'name': json['name'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function IncidentLiteResourceStaffToJSON(json: any): IncidentLiteResourceStaff {
|
|
53
|
+
return IncidentLiteResourceStaffToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function IncidentLiteResourceStaffToJSONTyped(value?: IncidentLiteResourceStaff | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'name': value['name'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -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
|
*
|
|
@@ -168,10 +175,10 @@ export interface RegisterListResource {
|
|
|
168
175
|
signOffLong: number;
|
|
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
|
/**
|
|
@@ -234,7 +241,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
234
241
|
'signOnLong': json['signOnLong'],
|
|
235
242
|
'signOffLat': json['signOffLat'],
|
|
236
243
|
'signOffLong': json['signOffLong'],
|
|
237
|
-
'incidents': json['incidents'],
|
|
244
|
+
'incidents': (json['incidents'] == null ? null : (json['incidents'] as Array<any>).map(IncidentLiteResourceFromJSON)),
|
|
238
245
|
};
|
|
239
246
|
}
|
|
240
247
|
|
|
@@ -271,7 +278,7 @@ export function RegisterListResourceToJSONTyped(value?: RegisterListResource | n
|
|
|
271
278
|
'signOnLong': value['signOnLong'],
|
|
272
279
|
'signOffLat': value['signOffLat'],
|
|
273
280
|
'signOffLong': value['signOffLong'],
|
|
274
|
-
'incidents': value['incidents'],
|
|
281
|
+
'incidents': (value['incidents'] == null ? null : (value['incidents'] as Array<any>).map(IncidentLiteResourceToJSON)),
|
|
275
282
|
};
|
|
276
283
|
}
|
|
277
284
|
|