@digital8/security-registers-backend-ts-sdk 0.0.209 → 0.0.210
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 +0 -5
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +1 -58
- package/dist/apis/GeneralApi.js +0 -286
- package/dist/models/IncidentResource.d.ts +0 -7
- package/dist/models/IncidentResource.js +0 -5
- package/dist/models/RegisterListResource.d.ts +4 -4
- package/dist/models/RegisterListResource.js +6 -5
- package/dist/models/RegisterResource.d.ts +2 -2
- package/dist/models/RegisterResource.js +8 -8
- 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/SecurityCompanyResource.d.ts +1 -1
- package/dist/models/SecurityCompanyResource.js +1 -3
- package/dist/models/index.d.ts +0 -5
- package/dist/models/index.js +0 -5
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +0 -261
- package/src/models/IncidentResource.ts +0 -16
- package/src/models/RegisterListResource.ts +8 -8
- package/src/models/RegisterResource.ts +6 -6
- package/src/models/RosterListResource.ts +4 -3
- package/src/models/RosterLiteResource.ts +4 -3
- package/src/models/SecurityCompanyResource.ts +2 -3
- package/src/models/index.ts +0 -5
- package/dist/models/IncidentFieldAuditResource.d.ts +0 -56
- package/dist/models/IncidentFieldAuditResource.js +0 -67
- package/dist/models/IncidentFieldAuditResourceArrayResponse.d.ts +0 -33
- package/dist/models/IncidentFieldAuditResourceArrayResponse.js +0 -50
- package/dist/models/IncidentVersionResource.d.ts +0 -69
- package/dist/models/IncidentVersionResource.js +0 -72
- package/dist/models/IncidentVersionResourceArrayResponse.d.ts +0 -33
- package/dist/models/IncidentVersionResourceArrayResponse.js +0 -50
- package/dist/models/IncidentsUpdateRequest.d.ts +0 -32
- package/dist/models/IncidentsUpdateRequest.js +0 -51
- package/src/models/IncidentFieldAuditResource.ts +0 -102
- package/src/models/IncidentFieldAuditResourceArrayResponse.ts +0 -73
- package/src/models/IncidentVersionResource.ts +0 -126
- package/src/models/IncidentVersionResourceArrayResponse.ts +0 -73
- package/src/models/IncidentsUpdateRequest.ts +0 -66
|
@@ -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
|
|
|
@@ -44,7 +44,7 @@ export interface SecurityCompanyResource {
|
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof SecurityCompanyResource
|
|
46
46
|
*/
|
|
47
|
-
email
|
|
47
|
+
email?: string | null;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {boolean}
|
|
@@ -82,7 +82,6 @@ export interface SecurityCompanyResource {
|
|
|
82
82
|
*/
|
|
83
83
|
export function instanceOfSecurityCompanyResource(value: object): value is SecurityCompanyResource {
|
|
84
84
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
85
|
-
if (!('email' in value) || value['email'] === undefined) return false;
|
|
86
85
|
if (!('isEnabled' in value) || value['isEnabled'] === undefined) return false;
|
|
87
86
|
if (!('address' in value) || value['address'] === undefined) return false;
|
|
88
87
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
@@ -101,7 +100,7 @@ export function SecurityCompanyResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
101
100
|
|
|
102
101
|
'id': json['id'] == null ? undefined : json['id'],
|
|
103
102
|
'name': json['name'],
|
|
104
|
-
'email': json['email'],
|
|
103
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
105
104
|
'isEnabled': json['isEnabled'],
|
|
106
105
|
'address': AddressResourceFromJSON(json['address']),
|
|
107
106
|
'licenceNumber': json['licenceNumber'],
|
package/src/models/index.ts
CHANGED
|
@@ -11,18 +11,13 @@ export * from './AssetResourceArrayResponse';
|
|
|
11
11
|
export * from './CurrentRegisterResource';
|
|
12
12
|
export * from './CurrentRegisterResourceArrayResponse';
|
|
13
13
|
export * from './GenericResponse';
|
|
14
|
-
export * from './IncidentFieldAuditResource';
|
|
15
|
-
export * from './IncidentFieldAuditResourceArrayResponse';
|
|
16
14
|
export * from './IncidentFieldSchemaResource';
|
|
17
15
|
export * from './IncidentFieldSchemaResourceArrayResponse';
|
|
18
16
|
export * from './IncidentFieldSchemasShowRequest';
|
|
19
17
|
export * from './IncidentFieldsResourceArrayResponse';
|
|
20
18
|
export * from './IncidentResource';
|
|
21
19
|
export * from './IncidentResourceArrayResponse';
|
|
22
|
-
export * from './IncidentVersionResource';
|
|
23
|
-
export * from './IncidentVersionResourceArrayResponse';
|
|
24
20
|
export * from './IncidentsStoreRequest';
|
|
25
|
-
export * from './IncidentsUpdateRequest';
|
|
26
21
|
export * from './IndexMinimalUserRequest';
|
|
27
22
|
export * from './IndexUserRequest';
|
|
28
23
|
export * from './LicenceListResource';
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* My API
|
|
3
|
-
* API documentation for my Laravel app
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface IncidentFieldAuditResource
|
|
16
|
-
*/
|
|
17
|
-
export interface IncidentFieldAuditResource {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof IncidentFieldAuditResource
|
|
22
|
-
*/
|
|
23
|
-
id: number;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof IncidentFieldAuditResource
|
|
28
|
-
*/
|
|
29
|
-
sectionKey: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof IncidentFieldAuditResource
|
|
34
|
-
*/
|
|
35
|
-
fieldKey: string;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof IncidentFieldAuditResource
|
|
40
|
-
*/
|
|
41
|
-
previousValue: string;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {object}
|
|
45
|
-
* @memberof IncidentFieldAuditResource
|
|
46
|
-
*/
|
|
47
|
-
changedAt: object;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Check if a given object implements the IncidentFieldAuditResource interface.
|
|
51
|
-
*/
|
|
52
|
-
export declare function instanceOfIncidentFieldAuditResource(value: object): value is IncidentFieldAuditResource;
|
|
53
|
-
export declare function IncidentFieldAuditResourceFromJSON(json: any): IncidentFieldAuditResource;
|
|
54
|
-
export declare function IncidentFieldAuditResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentFieldAuditResource;
|
|
55
|
-
export declare function IncidentFieldAuditResourceToJSON(json: any): IncidentFieldAuditResource;
|
|
56
|
-
export declare function IncidentFieldAuditResourceToJSONTyped(value?: IncidentFieldAuditResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* My API
|
|
6
|
-
* API documentation for my Laravel app
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.instanceOfIncidentFieldAuditResource = instanceOfIncidentFieldAuditResource;
|
|
17
|
-
exports.IncidentFieldAuditResourceFromJSON = IncidentFieldAuditResourceFromJSON;
|
|
18
|
-
exports.IncidentFieldAuditResourceFromJSONTyped = IncidentFieldAuditResourceFromJSONTyped;
|
|
19
|
-
exports.IncidentFieldAuditResourceToJSON = IncidentFieldAuditResourceToJSON;
|
|
20
|
-
exports.IncidentFieldAuditResourceToJSONTyped = IncidentFieldAuditResourceToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the IncidentFieldAuditResource interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfIncidentFieldAuditResource(value) {
|
|
25
|
-
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
if (!('sectionKey' in value) || value['sectionKey'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
if (!('fieldKey' in value) || value['fieldKey'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
if (!('previousValue' in value) || value['previousValue'] === undefined)
|
|
32
|
-
return false;
|
|
33
|
-
if (!('changedAt' in value) || value['changedAt'] === undefined)
|
|
34
|
-
return false;
|
|
35
|
-
return true;
|
|
36
|
-
}
|
|
37
|
-
function IncidentFieldAuditResourceFromJSON(json) {
|
|
38
|
-
return IncidentFieldAuditResourceFromJSONTyped(json, false);
|
|
39
|
-
}
|
|
40
|
-
function IncidentFieldAuditResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
-
if (json == null) {
|
|
42
|
-
return json;
|
|
43
|
-
}
|
|
44
|
-
return {
|
|
45
|
-
'id': json['id'],
|
|
46
|
-
'sectionKey': json['sectionKey'],
|
|
47
|
-
'fieldKey': json['fieldKey'],
|
|
48
|
-
'previousValue': json['previousValue'],
|
|
49
|
-
'changedAt': json['changedAt'],
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
function IncidentFieldAuditResourceToJSON(json) {
|
|
53
|
-
return IncidentFieldAuditResourceToJSONTyped(json, false);
|
|
54
|
-
}
|
|
55
|
-
function IncidentFieldAuditResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
56
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
57
|
-
if (value == null) {
|
|
58
|
-
return value;
|
|
59
|
-
}
|
|
60
|
-
return {
|
|
61
|
-
'id': value['id'],
|
|
62
|
-
'sectionKey': value['sectionKey'],
|
|
63
|
-
'fieldKey': value['fieldKey'],
|
|
64
|
-
'previousValue': value['previousValue'],
|
|
65
|
-
'changedAt': value['changedAt'],
|
|
66
|
-
};
|
|
67
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* My API
|
|
3
|
-
* API documentation for my Laravel app
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { IncidentFieldAuditResource } from './IncidentFieldAuditResource';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface IncidentFieldAuditResourceArrayResponse
|
|
17
|
-
*/
|
|
18
|
-
export interface IncidentFieldAuditResourceArrayResponse {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<IncidentFieldAuditResource>}
|
|
22
|
-
* @memberof IncidentFieldAuditResourceArrayResponse
|
|
23
|
-
*/
|
|
24
|
-
data?: Array<IncidentFieldAuditResource>;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the IncidentFieldAuditResourceArrayResponse interface.
|
|
28
|
-
*/
|
|
29
|
-
export declare function instanceOfIncidentFieldAuditResourceArrayResponse(value: object): value is IncidentFieldAuditResourceArrayResponse;
|
|
30
|
-
export declare function IncidentFieldAuditResourceArrayResponseFromJSON(json: any): IncidentFieldAuditResourceArrayResponse;
|
|
31
|
-
export declare function IncidentFieldAuditResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentFieldAuditResourceArrayResponse;
|
|
32
|
-
export declare function IncidentFieldAuditResourceArrayResponseToJSON(json: any): IncidentFieldAuditResourceArrayResponse;
|
|
33
|
-
export declare function IncidentFieldAuditResourceArrayResponseToJSONTyped(value?: IncidentFieldAuditResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* My API
|
|
6
|
-
* API documentation for my Laravel app
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.instanceOfIncidentFieldAuditResourceArrayResponse = instanceOfIncidentFieldAuditResourceArrayResponse;
|
|
17
|
-
exports.IncidentFieldAuditResourceArrayResponseFromJSON = IncidentFieldAuditResourceArrayResponseFromJSON;
|
|
18
|
-
exports.IncidentFieldAuditResourceArrayResponseFromJSONTyped = IncidentFieldAuditResourceArrayResponseFromJSONTyped;
|
|
19
|
-
exports.IncidentFieldAuditResourceArrayResponseToJSON = IncidentFieldAuditResourceArrayResponseToJSON;
|
|
20
|
-
exports.IncidentFieldAuditResourceArrayResponseToJSONTyped = IncidentFieldAuditResourceArrayResponseToJSONTyped;
|
|
21
|
-
var IncidentFieldAuditResource_1 = require("./IncidentFieldAuditResource");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the IncidentFieldAuditResourceArrayResponse interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfIncidentFieldAuditResourceArrayResponse(value) {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
function IncidentFieldAuditResourceArrayResponseFromJSON(json) {
|
|
29
|
-
return IncidentFieldAuditResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
function IncidentFieldAuditResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (json == null) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'data': json['data'] == null ? undefined : (json['data'].map(IncidentFieldAuditResource_1.IncidentFieldAuditResourceFromJSON)),
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function IncidentFieldAuditResourceArrayResponseToJSON(json) {
|
|
40
|
-
return IncidentFieldAuditResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
function IncidentFieldAuditResourceArrayResponseToJSONTyped(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(IncidentFieldAuditResource_1.IncidentFieldAuditResourceToJSON)),
|
|
49
|
-
};
|
|
50
|
-
}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* My API
|
|
3
|
-
* API documentation for my Laravel app
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { 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
|
-
incidentId?: number | null;
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @type {number}
|
|
34
|
-
* @memberof IncidentVersionResource
|
|
35
|
-
*/
|
|
36
|
-
versionNumber: number;
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {number}
|
|
40
|
-
* @memberof IncidentVersionResource
|
|
41
|
-
*/
|
|
42
|
-
userId?: number | null;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {UserLiteResource}
|
|
46
|
-
* @memberof IncidentVersionResource
|
|
47
|
-
*/
|
|
48
|
-
user: UserLiteResource | null;
|
|
49
|
-
/**
|
|
50
|
-
*
|
|
51
|
-
* @type {Array<boolean>}
|
|
52
|
-
* @memberof IncidentVersionResource
|
|
53
|
-
*/
|
|
54
|
-
fieldData: Array<boolean>;
|
|
55
|
-
/**
|
|
56
|
-
*
|
|
57
|
-
* @type {Date}
|
|
58
|
-
* @memberof IncidentVersionResource
|
|
59
|
-
*/
|
|
60
|
-
createdAt: Date;
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Check if a given object implements the IncidentVersionResource interface.
|
|
64
|
-
*/
|
|
65
|
-
export declare function instanceOfIncidentVersionResource(value: object): value is IncidentVersionResource;
|
|
66
|
-
export declare function IncidentVersionResourceFromJSON(json: any): IncidentVersionResource;
|
|
67
|
-
export declare function IncidentVersionResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentVersionResource;
|
|
68
|
-
export declare function IncidentVersionResourceToJSON(json: any): IncidentVersionResource;
|
|
69
|
-
export declare function IncidentVersionResourceToJSONTyped(value?: IncidentVersionResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* My API
|
|
6
|
-
* API documentation for my Laravel app
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.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
|
-
'incidentId': json['incidentId'] == null ? undefined : json['incidentId'],
|
|
48
|
-
'versionNumber': json['versionNumber'],
|
|
49
|
-
'userId': json['userId'] == null ? undefined : json['userId'],
|
|
50
|
-
'user': (0, UserLiteResource_1.UserLiteResourceFromJSON)(json['user']),
|
|
51
|
-
'fieldData': json['fieldData'],
|
|
52
|
-
'createdAt': (new Date(json['createdAt'])),
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
function IncidentVersionResourceToJSON(json) {
|
|
56
|
-
return IncidentVersionResourceToJSONTyped(json, false);
|
|
57
|
-
}
|
|
58
|
-
function IncidentVersionResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
59
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
60
|
-
if (value == null) {
|
|
61
|
-
return value;
|
|
62
|
-
}
|
|
63
|
-
return {
|
|
64
|
-
'id': value['id'],
|
|
65
|
-
'incidentId': value['incidentId'],
|
|
66
|
-
'versionNumber': value['versionNumber'],
|
|
67
|
-
'userId': value['userId'],
|
|
68
|
-
'user': (0, UserLiteResource_1.UserLiteResourceToJSON)(value['user']),
|
|
69
|
-
'fieldData': value['fieldData'],
|
|
70
|
-
'createdAt': ((value['createdAt']).toISOString()),
|
|
71
|
-
};
|
|
72
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* My API
|
|
3
|
-
* API documentation for my Laravel app
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { 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;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* My API
|
|
6
|
-
* API documentation for my Laravel app
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.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
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* My API
|
|
3
|
-
* API documentation for my Laravel app
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface 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;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* My API
|
|
6
|
-
* API documentation for my Laravel app
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.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
|
-
}
|