@digital8/security-registers-backend-ts-sdk 0.0.211 → 0.0.213
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +2 -9
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +3 -71
- package/dist/apis/GeneralApi.js +1 -342
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +3 -1
- package/dist/models/LicenceVerificationResultResource.d.ts +44 -0
- package/dist/models/LicenceVerificationResultResource.js +59 -0
- package/dist/models/LicenceVerificationResultResourceArrayResponse.d.ts +33 -0
- package/dist/models/LicenceVerificationResultResourceArrayResponse.js +50 -0
- package/dist/models/LicencesVerifyRequest.d.ts +21 -3
- package/dist/models/LicencesVerifyRequest.js +14 -6
- package/dist/models/RegisterListResource.d.ts +1 -1
- package/dist/models/RegisterListResource.js +1 -3
- package/dist/models/RegisterResource.d.ts +2 -2
- package/dist/models/RegisterResource.js +6 -10
- 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/RosterWithRegistersResource.d.ts +1 -1
- package/dist/models/RosterWithRegistersResource.js +4 -3
- package/dist/models/index.d.ts +2 -9
- package/dist/models/index.js +2 -9
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +6 -320
- package/src/models/AddressResource.ts +3 -2
- package/src/models/LicenceVerificationResultResource.ts +84 -0
- package/src/models/LicenceVerificationResultResourceArrayResponse.ts +73 -0
- package/src/models/LicencesVerifyRequest.ts +33 -8
- package/src/models/RegisterListResource.ts +2 -3
- package/src/models/RegisterResource.ts +5 -7
- package/src/models/RosterListResource.ts +4 -3
- package/src/models/RosterLiteResource.ts +4 -3
- package/src/models/RosterWithRegistersResource.ts +4 -3
- package/src/models/index.ts +2 -9
- 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/IncidentFieldsResourceArrayResponse.d.ts +0 -32
- package/dist/models/IncidentFieldsResourceArrayResponse.js +0 -49
- package/dist/models/IncidentResource.d.ts +0 -111
- package/dist/models/IncidentResource.js +0 -101
- package/dist/models/IncidentResourceArrayResponse.d.ts +0 -33
- package/dist/models/IncidentResourceArrayResponse.js +0 -50
- package/dist/models/IncidentVersionResource.d.ts +0 -57
- package/dist/models/IncidentVersionResource.js +0 -68
- package/dist/models/IncidentVersionResourceArrayResponse.d.ts +0 -33
- package/dist/models/IncidentVersionResourceArrayResponse.js +0 -50
- package/dist/models/IncidentsStoreRequest.d.ts +0 -38
- package/dist/models/IncidentsStoreRequest.js +0 -55
- 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/IncidentFieldsResourceArrayResponse.ts +0 -65
- package/src/models/IncidentResource.ts +0 -221
- package/src/models/IncidentResourceArrayResponse.ts +0 -73
- package/src/models/IncidentVersionResource.ts +0 -110
- package/src/models/IncidentVersionResourceArrayResponse.ts +0 -73
- package/src/models/IncidentsStoreRequest.ts +0 -75
- package/src/models/IncidentsUpdateRequest.ts +0 -66
|
@@ -1,101 +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.instanceOfIncidentResource = instanceOfIncidentResource;
|
|
17
|
-
exports.IncidentResourceFromJSON = IncidentResourceFromJSON;
|
|
18
|
-
exports.IncidentResourceFromJSONTyped = IncidentResourceFromJSONTyped;
|
|
19
|
-
exports.IncidentResourceToJSON = IncidentResourceToJSON;
|
|
20
|
-
exports.IncidentResourceToJSONTyped = IncidentResourceToJSONTyped;
|
|
21
|
-
var VenueLiteResource_1 = require("./VenueLiteResource");
|
|
22
|
-
var IncidentFieldSchemaResource_1 = require("./IncidentFieldSchemaResource");
|
|
23
|
-
var RosterLiteResource_1 = require("./RosterLiteResource");
|
|
24
|
-
var IncidentFieldAuditResource_1 = require("./IncidentFieldAuditResource");
|
|
25
|
-
var SecurityCompanyLiteResource_1 = require("./SecurityCompanyLiteResource");
|
|
26
|
-
var UserLiteResource_1 = require("./UserLiteResource");
|
|
27
|
-
var RegisterLiteResource_1 = require("./RegisterLiteResource");
|
|
28
|
-
/**
|
|
29
|
-
* Check if a given object implements the IncidentResource interface.
|
|
30
|
-
*/
|
|
31
|
-
function instanceOfIncidentResource(value) {
|
|
32
|
-
if (!('id' in value) || value['id'] === undefined)
|
|
33
|
-
return false;
|
|
34
|
-
if (!('venue' in value) || value['venue'] === undefined)
|
|
35
|
-
return false;
|
|
36
|
-
if (!('securityCompany' in value) || value['securityCompany'] === undefined)
|
|
37
|
-
return false;
|
|
38
|
-
if (!('roster' in value) || value['roster'] === undefined)
|
|
39
|
-
return false;
|
|
40
|
-
if (!('register' in value) || value['register'] === undefined)
|
|
41
|
-
return false;
|
|
42
|
-
if (!('user' in value) || value['user'] === undefined)
|
|
43
|
-
return false;
|
|
44
|
-
if (!('approvedByUser' in value) || value['approvedByUser'] === undefined)
|
|
45
|
-
return false;
|
|
46
|
-
if (!('incidentFieldSchema' in value) || value['incidentFieldSchema'] === undefined)
|
|
47
|
-
return false;
|
|
48
|
-
if (!('fields' in value) || value['fields'] === undefined)
|
|
49
|
-
return false;
|
|
50
|
-
if (!('fieldAudits' in value) || value['fieldAudits'] === undefined)
|
|
51
|
-
return false;
|
|
52
|
-
return true;
|
|
53
|
-
}
|
|
54
|
-
function IncidentResourceFromJSON(json) {
|
|
55
|
-
return IncidentResourceFromJSONTyped(json, false);
|
|
56
|
-
}
|
|
57
|
-
function IncidentResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
58
|
-
if (json == null) {
|
|
59
|
-
return json;
|
|
60
|
-
}
|
|
61
|
-
return {
|
|
62
|
-
'id': json['id'],
|
|
63
|
-
'venue': (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
|
|
64
|
-
'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceFromJSON)(json['securityCompany']),
|
|
65
|
-
'roster': (0, RosterLiteResource_1.RosterLiteResourceFromJSON)(json['roster']),
|
|
66
|
-
'register': (0, RegisterLiteResource_1.RegisterLiteResourceFromJSON)(json['register']),
|
|
67
|
-
'user': (0, UserLiteResource_1.UserLiteResourceFromJSON)(json['user']),
|
|
68
|
-
'approvedByUser': (0, UserLiteResource_1.UserLiteResourceFromJSON)(json['approvedByUser']),
|
|
69
|
-
'incidentFieldSchema': (0, IncidentFieldSchemaResource_1.IncidentFieldSchemaResourceFromJSON)(json['incidentFieldSchema']),
|
|
70
|
-
'approvedAt': json['approvedAt'] == null ? undefined : (new Date(json['approvedAt'])),
|
|
71
|
-
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
72
|
-
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
73
|
-
'fields': json['fields'],
|
|
74
|
-
'fieldAudits': (json['fieldAudits'] == null ? null : json['fieldAudits'].map(IncidentFieldAuditResource_1.IncidentFieldAuditResourceFromJSON)),
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
function IncidentResourceToJSON(json) {
|
|
78
|
-
return IncidentResourceToJSONTyped(json, false);
|
|
79
|
-
}
|
|
80
|
-
function IncidentResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
81
|
-
var _a, _b, _c;
|
|
82
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
83
|
-
if (value == null) {
|
|
84
|
-
return value;
|
|
85
|
-
}
|
|
86
|
-
return {
|
|
87
|
-
'id': value['id'],
|
|
88
|
-
'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
|
|
89
|
-
'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceToJSON)(value['securityCompany']),
|
|
90
|
-
'roster': (0, RosterLiteResource_1.RosterLiteResourceToJSON)(value['roster']),
|
|
91
|
-
'register': (0, RegisterLiteResource_1.RegisterLiteResourceToJSON)(value['register']),
|
|
92
|
-
'user': (0, UserLiteResource_1.UserLiteResourceToJSON)(value['user']),
|
|
93
|
-
'approvedByUser': (0, UserLiteResource_1.UserLiteResourceToJSON)(value['approvedByUser']),
|
|
94
|
-
'incidentFieldSchema': (0, IncidentFieldSchemaResource_1.IncidentFieldSchemaResourceToJSON)(value['incidentFieldSchema']),
|
|
95
|
-
'approvedAt': value['approvedAt'] === null ? null : ((_a = value['approvedAt']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
96
|
-
'createdAt': value['createdAt'] === null ? null : ((_b = value['createdAt']) === null || _b === void 0 ? void 0 : _b.toISOString()),
|
|
97
|
-
'updatedAt': value['updatedAt'] === null ? null : ((_c = value['updatedAt']) === null || _c === void 0 ? void 0 : _c.toISOString()),
|
|
98
|
-
'fields': value['fields'],
|
|
99
|
-
'fieldAudits': (value['fieldAudits'] == null ? null : value['fieldAudits'].map(IncidentFieldAuditResource_1.IncidentFieldAuditResourceToJSON)),
|
|
100
|
-
};
|
|
101
|
-
}
|
|
@@ -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 { IncidentResource } from './IncidentResource';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface IncidentResourceArrayResponse
|
|
17
|
-
*/
|
|
18
|
-
export interface IncidentResourceArrayResponse {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<IncidentResource>}
|
|
22
|
-
* @memberof IncidentResourceArrayResponse
|
|
23
|
-
*/
|
|
24
|
-
data?: Array<IncidentResource>;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the IncidentResourceArrayResponse interface.
|
|
28
|
-
*/
|
|
29
|
-
export declare function instanceOfIncidentResourceArrayResponse(value: object): value is IncidentResourceArrayResponse;
|
|
30
|
-
export declare function IncidentResourceArrayResponseFromJSON(json: any): IncidentResourceArrayResponse;
|
|
31
|
-
export declare function IncidentResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentResourceArrayResponse;
|
|
32
|
-
export declare function IncidentResourceArrayResponseToJSON(json: any): IncidentResourceArrayResponse;
|
|
33
|
-
export declare function IncidentResourceArrayResponseToJSONTyped(value?: IncidentResourceArrayResponse | 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.instanceOfIncidentResourceArrayResponse = instanceOfIncidentResourceArrayResponse;
|
|
17
|
-
exports.IncidentResourceArrayResponseFromJSON = IncidentResourceArrayResponseFromJSON;
|
|
18
|
-
exports.IncidentResourceArrayResponseFromJSONTyped = IncidentResourceArrayResponseFromJSONTyped;
|
|
19
|
-
exports.IncidentResourceArrayResponseToJSON = IncidentResourceArrayResponseToJSON;
|
|
20
|
-
exports.IncidentResourceArrayResponseToJSONTyped = IncidentResourceArrayResponseToJSONTyped;
|
|
21
|
-
var IncidentResource_1 = require("./IncidentResource");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the IncidentResourceArrayResponse interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfIncidentResourceArrayResponse(value) {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
function IncidentResourceArrayResponseFromJSON(json) {
|
|
29
|
-
return IncidentResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
function IncidentResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (json == null) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'data': json['data'] == null ? undefined : (json['data'].map(IncidentResource_1.IncidentResourceFromJSON)),
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function IncidentResourceArrayResponseToJSON(json) {
|
|
40
|
-
return IncidentResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
function IncidentResourceArrayResponseToJSONTyped(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(IncidentResource_1.IncidentResourceToJSON)),
|
|
49
|
-
};
|
|
50
|
-
}
|
|
@@ -1,57 +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
|
-
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;
|
|
@@ -1,68 +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
|
-
'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
|
-
}
|
|
@@ -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,38 +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 IncidentsStoreRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface IncidentsStoreRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof IncidentsStoreRequest
|
|
22
|
-
*/
|
|
23
|
-
venueId: number;
|
|
24
|
-
/**
|
|
25
|
-
* Dynamic fields keyed by section key. Non-repeatable sections are objects of field_key => value; repeatable sections are arrays of such objects. Shape is driven by the venue state's IncidentFieldSchema.
|
|
26
|
-
* @type {object}
|
|
27
|
-
* @memberof IncidentsStoreRequest
|
|
28
|
-
*/
|
|
29
|
-
fields: object;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the IncidentsStoreRequest interface.
|
|
33
|
-
*/
|
|
34
|
-
export declare function instanceOfIncidentsStoreRequest(value: object): value is IncidentsStoreRequest;
|
|
35
|
-
export declare function IncidentsStoreRequestFromJSON(json: any): IncidentsStoreRequest;
|
|
36
|
-
export declare function IncidentsStoreRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentsStoreRequest;
|
|
37
|
-
export declare function IncidentsStoreRequestToJSON(json: any): IncidentsStoreRequest;
|
|
38
|
-
export declare function IncidentsStoreRequestToJSONTyped(value?: IncidentsStoreRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,55 +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.instanceOfIncidentsStoreRequest = instanceOfIncidentsStoreRequest;
|
|
17
|
-
exports.IncidentsStoreRequestFromJSON = IncidentsStoreRequestFromJSON;
|
|
18
|
-
exports.IncidentsStoreRequestFromJSONTyped = IncidentsStoreRequestFromJSONTyped;
|
|
19
|
-
exports.IncidentsStoreRequestToJSON = IncidentsStoreRequestToJSON;
|
|
20
|
-
exports.IncidentsStoreRequestToJSONTyped = IncidentsStoreRequestToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the IncidentsStoreRequest interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfIncidentsStoreRequest(value) {
|
|
25
|
-
if (!('venueId' in value) || value['venueId'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
if (!('fields' in value) || value['fields'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
return true;
|
|
30
|
-
}
|
|
31
|
-
function IncidentsStoreRequestFromJSON(json) {
|
|
32
|
-
return IncidentsStoreRequestFromJSONTyped(json, false);
|
|
33
|
-
}
|
|
34
|
-
function IncidentsStoreRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
-
if (json == null) {
|
|
36
|
-
return json;
|
|
37
|
-
}
|
|
38
|
-
return {
|
|
39
|
-
'venueId': json['venue_id'],
|
|
40
|
-
'fields': json['fields'],
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
function IncidentsStoreRequestToJSON(json) {
|
|
44
|
-
return IncidentsStoreRequestToJSONTyped(json, false);
|
|
45
|
-
}
|
|
46
|
-
function IncidentsStoreRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
48
|
-
if (value == null) {
|
|
49
|
-
return value;
|
|
50
|
-
}
|
|
51
|
-
return {
|
|
52
|
-
'venue_id': value['venueId'],
|
|
53
|
-
'fields': value['fields'],
|
|
54
|
-
};
|
|
55
|
-
}
|
|
@@ -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
|
-
}
|
|
@@ -1,102 +0,0 @@
|
|
|
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 IncidentFieldAuditResource
|
|
20
|
-
*/
|
|
21
|
-
export interface IncidentFieldAuditResource {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {number}
|
|
25
|
-
* @memberof IncidentFieldAuditResource
|
|
26
|
-
*/
|
|
27
|
-
id: number;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof IncidentFieldAuditResource
|
|
32
|
-
*/
|
|
33
|
-
sectionKey: string;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof IncidentFieldAuditResource
|
|
38
|
-
*/
|
|
39
|
-
fieldKey: string;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof IncidentFieldAuditResource
|
|
44
|
-
*/
|
|
45
|
-
previousValue: string;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {object}
|
|
49
|
-
* @memberof IncidentFieldAuditResource
|
|
50
|
-
*/
|
|
51
|
-
changedAt: object;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Check if a given object implements the IncidentFieldAuditResource interface.
|
|
56
|
-
*/
|
|
57
|
-
export function instanceOfIncidentFieldAuditResource(value: object): value is IncidentFieldAuditResource {
|
|
58
|
-
if (!('id' in value) || value['id'] === undefined) return false;
|
|
59
|
-
if (!('sectionKey' in value) || value['sectionKey'] === undefined) return false;
|
|
60
|
-
if (!('fieldKey' in value) || value['fieldKey'] === undefined) return false;
|
|
61
|
-
if (!('previousValue' in value) || value['previousValue'] === undefined) return false;
|
|
62
|
-
if (!('changedAt' in value) || value['changedAt'] === undefined) return false;
|
|
63
|
-
return true;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export function IncidentFieldAuditResourceFromJSON(json: any): IncidentFieldAuditResource {
|
|
67
|
-
return IncidentFieldAuditResourceFromJSONTyped(json, false);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export function IncidentFieldAuditResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentFieldAuditResource {
|
|
71
|
-
if (json == null) {
|
|
72
|
-
return json;
|
|
73
|
-
}
|
|
74
|
-
return {
|
|
75
|
-
|
|
76
|
-
'id': json['id'],
|
|
77
|
-
'sectionKey': json['sectionKey'],
|
|
78
|
-
'fieldKey': json['fieldKey'],
|
|
79
|
-
'previousValue': json['previousValue'],
|
|
80
|
-
'changedAt': json['changedAt'],
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
export function IncidentFieldAuditResourceToJSON(json: any): IncidentFieldAuditResource {
|
|
85
|
-
return IncidentFieldAuditResourceToJSONTyped(json, false);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
export function IncidentFieldAuditResourceToJSONTyped(value?: IncidentFieldAuditResource | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
-
if (value == null) {
|
|
90
|
-
return value;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
return {
|
|
94
|
-
|
|
95
|
-
'id': value['id'],
|
|
96
|
-
'sectionKey': value['sectionKey'],
|
|
97
|
-
'fieldKey': value['fieldKey'],
|
|
98
|
-
'previousValue': value['previousValue'],
|
|
99
|
-
'changedAt': value['changedAt'],
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
|