@digital8/security-registers-backend-ts-sdk 0.0.221 → 0.0.222
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/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 +2 -2
- package/dist/models/RegisterListResource.js +6 -2
- package/dist/models/RegisterResource.d.ts +2 -2
- package/dist/models/RegisterResource.js +2 -6
- package/dist/models/RosterResource.d.ts +1 -1
- package/dist/models/RosterResource.js +4 -3
- package/dist/models/SecurityCompanyResource.d.ts +1 -1
- package/dist/models/SecurityCompanyResource.js +1 -3
- 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/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 +6 -4
- package/src/models/RegisterResource.ts +4 -6
- package/src/models/RosterResource.ts +4 -3
- package/src/models/SecurityCompanyResource.ts +2 -3
- 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
|
@@ -21,6 +21,7 @@ exports.IncidentResourceToJSONTyped = IncidentResourceToJSONTyped;
|
|
|
21
21
|
var VenueLiteResource_1 = require("./VenueLiteResource");
|
|
22
22
|
var IncidentFieldSchemaResource_1 = require("./IncidentFieldSchemaResource");
|
|
23
23
|
var RosterLiteResource_1 = require("./RosterLiteResource");
|
|
24
|
+
var IncidentFieldAuditResource_1 = require("./IncidentFieldAuditResource");
|
|
24
25
|
var SecurityCompanyLiteResource_1 = require("./SecurityCompanyLiteResource");
|
|
25
26
|
var UserLiteResource_1 = require("./UserLiteResource");
|
|
26
27
|
var RegisterLiteResource_1 = require("./RegisterLiteResource");
|
|
@@ -46,6 +47,8 @@ function instanceOfIncidentResource(value) {
|
|
|
46
47
|
return false;
|
|
47
48
|
if (!('fields' in value) || value['fields'] === undefined)
|
|
48
49
|
return false;
|
|
50
|
+
if (!('fieldAudits' in value) || value['fieldAudits'] === undefined)
|
|
51
|
+
return false;
|
|
49
52
|
return true;
|
|
50
53
|
}
|
|
51
54
|
function IncidentResourceFromJSON(json) {
|
|
@@ -68,6 +71,7 @@ function IncidentResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
68
71
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
69
72
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
70
73
|
'fields': json['fields'],
|
|
74
|
+
'fieldAudits': (json['fieldAudits'] == null ? null : json['fieldAudits'].map(IncidentFieldAuditResource_1.IncidentFieldAuditResourceFromJSON)),
|
|
71
75
|
};
|
|
72
76
|
}
|
|
73
77
|
function IncidentResourceToJSON(json) {
|
|
@@ -92,5 +96,6 @@ function IncidentResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
92
96
|
'createdAt': value['createdAt'] === null ? null : ((_b = value['createdAt']) === null || _b === void 0 ? void 0 : _b.toISOString()),
|
|
93
97
|
'updatedAt': value['updatedAt'] === null ? null : ((_c = value['updatedAt']) === null || _c === void 0 ? void 0 : _c.toISOString()),
|
|
94
98
|
'fields': value['fields'],
|
|
99
|
+
'fieldAudits': (value['fieldAudits'] == null ? null : value['fieldAudits'].map(IncidentFieldAuditResource_1.IncidentFieldAuditResourceToJSON)),
|
|
95
100
|
};
|
|
96
101
|
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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 { UserLiteResource } from './UserLiteResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface IncidentVersionResource
|
|
17
|
+
*/
|
|
18
|
+
export interface IncidentVersionResource {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof IncidentVersionResource
|
|
23
|
+
*/
|
|
24
|
+
id: number;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof IncidentVersionResource
|
|
29
|
+
*/
|
|
30
|
+
versionNumber: number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {UserLiteResource}
|
|
34
|
+
* @memberof IncidentVersionResource
|
|
35
|
+
*/
|
|
36
|
+
user: UserLiteResource | null;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<boolean>}
|
|
40
|
+
* @memberof IncidentVersionResource
|
|
41
|
+
*/
|
|
42
|
+
fieldData: Array<boolean>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Date}
|
|
46
|
+
* @memberof IncidentVersionResource
|
|
47
|
+
*/
|
|
48
|
+
createdAt: Date;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the IncidentVersionResource interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfIncidentVersionResource(value: object): value is IncidentVersionResource;
|
|
54
|
+
export declare function IncidentVersionResourceFromJSON(json: any): IncidentVersionResource;
|
|
55
|
+
export declare function IncidentVersionResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentVersionResource;
|
|
56
|
+
export declare function IncidentVersionResourceToJSON(json: any): IncidentVersionResource;
|
|
57
|
+
export declare function IncidentVersionResourceToJSONTyped(value?: IncidentVersionResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,68 @@
|
|
|
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.instanceOfIncidentVersionResource = instanceOfIncidentVersionResource;
|
|
17
|
+
exports.IncidentVersionResourceFromJSON = IncidentVersionResourceFromJSON;
|
|
18
|
+
exports.IncidentVersionResourceFromJSONTyped = IncidentVersionResourceFromJSONTyped;
|
|
19
|
+
exports.IncidentVersionResourceToJSON = IncidentVersionResourceToJSON;
|
|
20
|
+
exports.IncidentVersionResourceToJSONTyped = IncidentVersionResourceToJSONTyped;
|
|
21
|
+
var UserLiteResource_1 = require("./UserLiteResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the IncidentVersionResource interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfIncidentVersionResource(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('versionNumber' in value) || value['versionNumber'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('user' in value) || value['user'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('fieldData' in value) || value['fieldData'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function IncidentVersionResourceFromJSON(json) {
|
|
39
|
+
return IncidentVersionResourceFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function IncidentVersionResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'id': json['id'],
|
|
47
|
+
'versionNumber': json['versionNumber'],
|
|
48
|
+
'user': (0, UserLiteResource_1.UserLiteResourceFromJSON)(json['user']),
|
|
49
|
+
'fieldData': json['fieldData'],
|
|
50
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function IncidentVersionResourceToJSON(json) {
|
|
54
|
+
return IncidentVersionResourceToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function IncidentVersionResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
57
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
58
|
+
if (value == null) {
|
|
59
|
+
return value;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'id': value['id'],
|
|
63
|
+
'versionNumber': value['versionNumber'],
|
|
64
|
+
'user': (0, UserLiteResource_1.UserLiteResourceToJSON)(value['user']),
|
|
65
|
+
'fieldData': value['fieldData'],
|
|
66
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
67
|
+
};
|
|
68
|
+
}
|
|
@@ -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 { IncidentVersionResource } from './IncidentVersionResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface IncidentVersionResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface IncidentVersionResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<IncidentVersionResource>}
|
|
22
|
+
* @memberof IncidentVersionResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<IncidentVersionResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the IncidentVersionResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfIncidentVersionResourceArrayResponse(value: object): value is IncidentVersionResourceArrayResponse;
|
|
30
|
+
export declare function IncidentVersionResourceArrayResponseFromJSON(json: any): IncidentVersionResourceArrayResponse;
|
|
31
|
+
export declare function IncidentVersionResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentVersionResourceArrayResponse;
|
|
32
|
+
export declare function IncidentVersionResourceArrayResponseToJSON(json: any): IncidentVersionResourceArrayResponse;
|
|
33
|
+
export declare function IncidentVersionResourceArrayResponseToJSONTyped(value?: IncidentVersionResourceArrayResponse | 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.instanceOfIncidentVersionResourceArrayResponse = instanceOfIncidentVersionResourceArrayResponse;
|
|
17
|
+
exports.IncidentVersionResourceArrayResponseFromJSON = IncidentVersionResourceArrayResponseFromJSON;
|
|
18
|
+
exports.IncidentVersionResourceArrayResponseFromJSONTyped = IncidentVersionResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.IncidentVersionResourceArrayResponseToJSON = IncidentVersionResourceArrayResponseToJSON;
|
|
20
|
+
exports.IncidentVersionResourceArrayResponseToJSONTyped = IncidentVersionResourceArrayResponseToJSONTyped;
|
|
21
|
+
var IncidentVersionResource_1 = require("./IncidentVersionResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the IncidentVersionResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfIncidentVersionResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function IncidentVersionResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return IncidentVersionResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function IncidentVersionResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(IncidentVersionResource_1.IncidentVersionResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function IncidentVersionResourceArrayResponseToJSON(json) {
|
|
40
|
+
return IncidentVersionResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function IncidentVersionResourceArrayResponseToJSONTyped(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(IncidentVersionResource_1.IncidentVersionResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 IncidentsApproveRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface IncidentsApproveRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof IncidentsApproveRequest
|
|
22
|
+
*/
|
|
23
|
+
userId: number;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the IncidentsApproveRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfIncidentsApproveRequest(value: object): value is IncidentsApproveRequest;
|
|
29
|
+
export declare function IncidentsApproveRequestFromJSON(json: any): IncidentsApproveRequest;
|
|
30
|
+
export declare function IncidentsApproveRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentsApproveRequest;
|
|
31
|
+
export declare function IncidentsApproveRequestToJSON(json: any): IncidentsApproveRequest;
|
|
32
|
+
export declare function IncidentsApproveRequestToJSONTyped(value?: IncidentsApproveRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.instanceOfIncidentsApproveRequest = instanceOfIncidentsApproveRequest;
|
|
17
|
+
exports.IncidentsApproveRequestFromJSON = IncidentsApproveRequestFromJSON;
|
|
18
|
+
exports.IncidentsApproveRequestFromJSONTyped = IncidentsApproveRequestFromJSONTyped;
|
|
19
|
+
exports.IncidentsApproveRequestToJSON = IncidentsApproveRequestToJSON;
|
|
20
|
+
exports.IncidentsApproveRequestToJSONTyped = IncidentsApproveRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the IncidentsApproveRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfIncidentsApproveRequest(value) {
|
|
25
|
+
if (!('userId' in value) || value['userId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function IncidentsApproveRequestFromJSON(json) {
|
|
30
|
+
return IncidentsApproveRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function IncidentsApproveRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'userId': json['user_id'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function IncidentsApproveRequestToJSON(json) {
|
|
41
|
+
return IncidentsApproveRequestToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function IncidentsApproveRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'user_id': value['userId'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 IncidentsUpdateRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface IncidentsUpdateRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<string>}
|
|
21
|
+
* @memberof IncidentsUpdateRequest
|
|
22
|
+
*/
|
|
23
|
+
fields: Array<string>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the IncidentsUpdateRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfIncidentsUpdateRequest(value: object): value is IncidentsUpdateRequest;
|
|
29
|
+
export declare function IncidentsUpdateRequestFromJSON(json: any): IncidentsUpdateRequest;
|
|
30
|
+
export declare function IncidentsUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentsUpdateRequest;
|
|
31
|
+
export declare function IncidentsUpdateRequestToJSON(json: any): IncidentsUpdateRequest;
|
|
32
|
+
export declare function IncidentsUpdateRequestToJSONTyped(value?: IncidentsUpdateRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.instanceOfIncidentsUpdateRequest = instanceOfIncidentsUpdateRequest;
|
|
17
|
+
exports.IncidentsUpdateRequestFromJSON = IncidentsUpdateRequestFromJSON;
|
|
18
|
+
exports.IncidentsUpdateRequestFromJSONTyped = IncidentsUpdateRequestFromJSONTyped;
|
|
19
|
+
exports.IncidentsUpdateRequestToJSON = IncidentsUpdateRequestToJSON;
|
|
20
|
+
exports.IncidentsUpdateRequestToJSONTyped = IncidentsUpdateRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the IncidentsUpdateRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfIncidentsUpdateRequest(value) {
|
|
25
|
+
if (!('fields' in value) || value['fields'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function IncidentsUpdateRequestFromJSON(json) {
|
|
30
|
+
return IncidentsUpdateRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function IncidentsUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'fields': json['fields'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function IncidentsUpdateRequestToJSON(json) {
|
|
41
|
+
return IncidentsUpdateRequestToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function IncidentsUpdateRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'fields': value['fields'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -64,7 +64,7 @@ export interface RegisterListResource {
|
|
|
64
64
|
* @type {string}
|
|
65
65
|
* @memberof RegisterListResource
|
|
66
66
|
*/
|
|
67
|
-
badgeNumber
|
|
67
|
+
badgeNumber: string;
|
|
68
68
|
/**
|
|
69
69
|
*
|
|
70
70
|
* @type {string}
|
|
@@ -142,7 +142,7 @@ export interface RegisterListResource {
|
|
|
142
142
|
* @type {number}
|
|
143
143
|
* @memberof RegisterListResource
|
|
144
144
|
*/
|
|
145
|
-
signOffLat
|
|
145
|
+
signOffLat: number;
|
|
146
146
|
/**
|
|
147
147
|
*
|
|
148
148
|
* @type {number}
|
|
@@ -36,6 +36,8 @@ function instanceOfRegisterListResource(value) {
|
|
|
36
36
|
return false;
|
|
37
37
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined)
|
|
38
38
|
return false;
|
|
39
|
+
if (!('badgeNumber' in value) || value['badgeNumber'] === undefined)
|
|
40
|
+
return false;
|
|
39
41
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
|
|
40
42
|
return false;
|
|
41
43
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined)
|
|
@@ -60,6 +62,8 @@ function instanceOfRegisterListResource(value) {
|
|
|
60
62
|
return false;
|
|
61
63
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined)
|
|
62
64
|
return false;
|
|
65
|
+
if (!('signOffLat' in value) || value['signOffLat'] === undefined)
|
|
66
|
+
return false;
|
|
63
67
|
if (!('incidents' in value) || value['incidents'] === undefined)
|
|
64
68
|
return false;
|
|
65
69
|
return true;
|
|
@@ -79,7 +83,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
79
83
|
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
80
84
|
'shiftLength': json['shiftLength'],
|
|
81
85
|
'signOffStatus': json['signOffStatus'],
|
|
82
|
-
'badgeNumber': json['badgeNumber']
|
|
86
|
+
'badgeNumber': json['badgeNumber'],
|
|
83
87
|
'licenceNumber': json['licenceNumber'],
|
|
84
88
|
'licenceFirstName': json['licenceFirstName'],
|
|
85
89
|
'licenceLastName': json['licenceLastName'],
|
|
@@ -92,7 +96,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
92
96
|
'firstAid': json['firstAid'],
|
|
93
97
|
'signOnLat': json['signOnLat'],
|
|
94
98
|
'signOnLong': json['signOnLong'],
|
|
95
|
-
'signOffLat': json['signOffLat']
|
|
99
|
+
'signOffLat': json['signOffLat'],
|
|
96
100
|
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
97
101
|
'incidents': json['incidents'],
|
|
98
102
|
};
|
|
@@ -106,13 +106,13 @@ export interface RegisterResource {
|
|
|
106
106
|
* @type {number}
|
|
107
107
|
* @memberof RegisterResource
|
|
108
108
|
*/
|
|
109
|
-
signOffLat
|
|
109
|
+
signOffLat?: number | null;
|
|
110
110
|
/**
|
|
111
111
|
*
|
|
112
112
|
* @type {number}
|
|
113
113
|
* @memberof RegisterResource
|
|
114
114
|
*/
|
|
115
|
-
signOffLong
|
|
115
|
+
signOffLong?: number | null;
|
|
116
116
|
/**
|
|
117
117
|
*
|
|
118
118
|
* @type {string}
|
|
@@ -50,10 +50,6 @@ function instanceOfRegisterResource(value) {
|
|
|
50
50
|
return false;
|
|
51
51
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined)
|
|
52
52
|
return false;
|
|
53
|
-
if (!('signOffLat' in value) || value['signOffLat'] === undefined)
|
|
54
|
-
return false;
|
|
55
|
-
if (!('signOffLong' in value) || value['signOffLong'] === undefined)
|
|
56
|
-
return false;
|
|
57
53
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
|
|
58
54
|
return false;
|
|
59
55
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined)
|
|
@@ -86,8 +82,8 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
86
82
|
'firstAidImage': json['firstAidImage'],
|
|
87
83
|
'signOnLat': json['signOnLat'],
|
|
88
84
|
'signOnLong': json['signOnLong'],
|
|
89
|
-
'signOffLat': json['signOffLat'],
|
|
90
|
-
'signOffLong': json['signOffLong'],
|
|
85
|
+
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
86
|
+
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
91
87
|
'licenceNumber': json['licenceNumber'],
|
|
92
88
|
'licenceExpiry': json['licenceExpiry'],
|
|
93
89
|
'licenceFirstName': json['licenceFirstName'],
|
|
@@ -31,6 +31,8 @@ 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;
|
|
34
36
|
if (!('isCompliant' in value) || value['isCompliant'] === undefined)
|
|
35
37
|
return false;
|
|
36
38
|
if (!('isComplete' in value) || value['isComplete'] === undefined)
|
|
@@ -53,7 +55,7 @@ function RosterResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
55
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
|
|
54
56
|
'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceFromJSON)(json['securityCompany']),
|
|
55
57
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
56
|
-
'finishDateTime':
|
|
58
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
57
59
|
'isCompliant': json['isCompliant'],
|
|
58
60
|
'isComplete': json['isComplete'],
|
|
59
61
|
'signOffStatus': json['signOffStatus'],
|
|
@@ -64,7 +66,6 @@ function RosterResourceToJSON(json) {
|
|
|
64
66
|
return RosterResourceToJSONTyped(json, false);
|
|
65
67
|
}
|
|
66
68
|
function RosterResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
67
|
-
var _a;
|
|
68
69
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
69
70
|
if (value == null) {
|
|
70
71
|
return value;
|
|
@@ -74,7 +75,7 @@ function RosterResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
74
75
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
|
|
75
76
|
'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceToJSON)(value['securityCompany']),
|
|
76
77
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
77
|
-
'finishDateTime':
|
|
78
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
78
79
|
'isCompliant': value['isCompliant'],
|
|
79
80
|
'isComplete': value['isComplete'],
|
|
80
81
|
'signOffStatus': value['signOffStatus'],
|
|
@@ -25,8 +25,6 @@ var AddressResource_1 = require("./AddressResource");
|
|
|
25
25
|
function instanceOfSecurityCompanyResource(value) {
|
|
26
26
|
if (!('name' in value) || value['name'] === undefined)
|
|
27
27
|
return false;
|
|
28
|
-
if (!('email' in value) || value['email'] === undefined)
|
|
29
|
-
return false;
|
|
30
28
|
if (!('isEnabled' in value) || value['isEnabled'] === undefined)
|
|
31
29
|
return false;
|
|
32
30
|
if (!('address' in value) || value['address'] === undefined)
|
|
@@ -45,7 +43,7 @@ function SecurityCompanyResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
43
|
return {
|
|
46
44
|
'id': json['id'] == null ? undefined : json['id'],
|
|
47
45
|
'name': json['name'],
|
|
48
|
-
'email': json['email'],
|
|
46
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
49
47
|
'isEnabled': json['isEnabled'],
|
|
50
48
|
'address': (0, AddressResource_1.AddressResourceFromJSON)(json['address']),
|
|
51
49
|
'licenceNumber': json['licenceNumber'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -9,15 +9,19 @@ export * from './AssetResourceArrayResponse';
|
|
|
9
9
|
export * from './CurrentRegisterResource';
|
|
10
10
|
export * from './CurrentRegisterResourceArrayResponse';
|
|
11
11
|
export * from './GenericResponse';
|
|
12
|
+
export * from './IncidentFieldAuditResource';
|
|
13
|
+
export * from './IncidentFieldAuditResourceArrayResponse';
|
|
12
14
|
export * from './IncidentFieldSchemaResource';
|
|
13
15
|
export * from './IncidentFieldSchemaResourceArrayResponse';
|
|
14
16
|
export * from './IncidentFieldSchemasShowRequest';
|
|
15
17
|
export * from './IncidentFieldsResourceArrayResponse';
|
|
16
|
-
export * from './IncidentImageResource';
|
|
17
|
-
export * from './IncidentImageResourceArrayResponse';
|
|
18
18
|
export * from './IncidentResource';
|
|
19
19
|
export * from './IncidentResourceArrayResponse';
|
|
20
|
+
export * from './IncidentVersionResource';
|
|
21
|
+
export * from './IncidentVersionResourceArrayResponse';
|
|
22
|
+
export * from './IncidentsApproveRequest';
|
|
20
23
|
export * from './IncidentsStoreRequest';
|
|
24
|
+
export * from './IncidentsUpdateRequest';
|
|
21
25
|
export * from './IndexMinimalUserRequest';
|
|
22
26
|
export * from './IndexUserRequest';
|
|
23
27
|
export * from './LicenceListResource';
|
package/dist/models/index.js
CHANGED
|
@@ -27,15 +27,19 @@ __exportStar(require("./AssetResourceArrayResponse"), exports);
|
|
|
27
27
|
__exportStar(require("./CurrentRegisterResource"), exports);
|
|
28
28
|
__exportStar(require("./CurrentRegisterResourceArrayResponse"), exports);
|
|
29
29
|
__exportStar(require("./GenericResponse"), exports);
|
|
30
|
+
__exportStar(require("./IncidentFieldAuditResource"), exports);
|
|
31
|
+
__exportStar(require("./IncidentFieldAuditResourceArrayResponse"), exports);
|
|
30
32
|
__exportStar(require("./IncidentFieldSchemaResource"), exports);
|
|
31
33
|
__exportStar(require("./IncidentFieldSchemaResourceArrayResponse"), exports);
|
|
32
34
|
__exportStar(require("./IncidentFieldSchemasShowRequest"), exports);
|
|
33
35
|
__exportStar(require("./IncidentFieldsResourceArrayResponse"), exports);
|
|
34
|
-
__exportStar(require("./IncidentImageResource"), exports);
|
|
35
|
-
__exportStar(require("./IncidentImageResourceArrayResponse"), exports);
|
|
36
36
|
__exportStar(require("./IncidentResource"), exports);
|
|
37
37
|
__exportStar(require("./IncidentResourceArrayResponse"), exports);
|
|
38
|
+
__exportStar(require("./IncidentVersionResource"), exports);
|
|
39
|
+
__exportStar(require("./IncidentVersionResourceArrayResponse"), exports);
|
|
40
|
+
__exportStar(require("./IncidentsApproveRequest"), exports);
|
|
38
41
|
__exportStar(require("./IncidentsStoreRequest"), exports);
|
|
42
|
+
__exportStar(require("./IncidentsUpdateRequest"), exports);
|
|
39
43
|
__exportStar(require("./IndexMinimalUserRequest"), exports);
|
|
40
44
|
__exportStar(require("./IndexUserRequest"), exports);
|
|
41
45
|
__exportStar(require("./LicenceListResource"), exports);
|
package/package.json
CHANGED