@digital8/security-registers-backend-ts-sdk 0.0.280 → 0.0.282
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 +3 -4
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +40 -7
- package/dist/apis/GeneralApi.js +176 -8
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +3 -1
- package/dist/models/IncidentsExportPdfBulkRequest.d.ts +56 -0
- package/dist/models/IncidentsExportPdfBulkRequest.js +63 -0
- package/dist/models/PdfExportQueuedResource.d.ts +44 -0
- package/dist/models/PdfExportQueuedResource.js +59 -0
- package/dist/models/PdfExportQueuedResourceArrayResponse.d.ts +33 -0
- package/dist/models/PdfExportQueuedResourceArrayResponse.js +50 -0
- package/dist/models/RegisterGroupedByRosterResource.d.ts +1 -1
- package/dist/models/RegisterGroupedByRosterResource.js +4 -3
- package/dist/models/RegisterListResource.d.ts +5 -5
- package/dist/models/RegisterListResource.js +6 -7
- package/dist/models/RegisterResource.d.ts +2 -2
- package/dist/models/RegisterResource.js +8 -8
- 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 +3 -1
- package/dist/models/index.d.ts +3 -4
- package/dist/models/index.js +3 -4
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +163 -16
- package/src/models/AddressResource.ts +3 -2
- package/src/models/IncidentsExportPdfBulkRequest.ts +100 -0
- package/src/models/PdfExportQueuedResource.ts +84 -0
- package/src/models/PdfExportQueuedResourceArrayResponse.ts +73 -0
- package/src/models/RegisterGroupedByRosterResource.ts +4 -3
- package/src/models/RegisterListResource.ts +10 -11
- package/src/models/RegisterResource.ts +6 -6
- package/src/models/RosterLiteResource.ts +4 -3
- package/src/models/SecurityCompanyResource.ts +3 -2
- package/src/models/index.ts +3 -4
- package/dist/models/IncidentListResource.d.ts +0 -89
- package/dist/models/IncidentListResource.js +0 -73
- package/dist/models/IncidentListResourceArrayResponse.d.ts +0 -33
- package/dist/models/IncidentListResourceArrayResponse.js +0 -50
- package/dist/models/IncidentsListRequest.d.ts +0 -151
- package/dist/models/IncidentsListRequest.js +0 -99
- package/dist/models/PaginatedIncidentListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedIncidentListResourceResponse.js +0 -57
- package/src/models/IncidentListResource.ts +0 -160
- package/src/models/IncidentListResourceArrayResponse.ts +0 -73
- package/src/models/IncidentsListRequest.ts +0 -222
- package/src/models/PaginatedIncidentListResourceResponse.ts +0 -90
|
@@ -63,7 +63,7 @@ export interface RegisterResource {
|
|
|
63
63
|
* @type {Date}
|
|
64
64
|
* @memberof RegisterResource
|
|
65
65
|
*/
|
|
66
|
-
finishDateTime
|
|
66
|
+
finishDateTime?: Date | null;
|
|
67
67
|
/**
|
|
68
68
|
*
|
|
69
69
|
* @type {number}
|
|
@@ -123,7 +123,7 @@ export interface RegisterResource {
|
|
|
123
123
|
* @type {number}
|
|
124
124
|
* @memberof RegisterResource
|
|
125
125
|
*/
|
|
126
|
-
signOffLat
|
|
126
|
+
signOffLat: number;
|
|
127
127
|
/**
|
|
128
128
|
*
|
|
129
129
|
* @type {number}
|
|
@@ -181,7 +181,6 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
|
|
|
181
181
|
if (!('venue' in value) || value['venue'] === undefined) return false;
|
|
182
182
|
if (!('user' in value) || value['user'] === undefined) return false;
|
|
183
183
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
184
|
-
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
|
|
185
184
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
186
185
|
if (!('signOnSignature' in value) || value['signOnSignature'] === undefined) return false;
|
|
187
186
|
if (!('signOffSignature' in value) || value['signOffSignature'] === undefined) return false;
|
|
@@ -191,6 +190,7 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
|
|
|
191
190
|
if (!('firstAidImage' in value) || value['firstAidImage'] === undefined) return false;
|
|
192
191
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
193
192
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
193
|
+
if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
|
|
194
194
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
195
195
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
|
|
196
196
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
|
|
@@ -212,7 +212,7 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
212
212
|
'venue': VenueLiteResourceFromJSON(json['venue']),
|
|
213
213
|
'user': UserLiteResourceFromJSON(json['user']),
|
|
214
214
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
215
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
215
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
216
216
|
'signOffStatus': json['signOffStatus'],
|
|
217
217
|
'signOnSignature': json['signOnSignature'],
|
|
218
218
|
'signOffSignature': json['signOffSignature'],
|
|
@@ -222,7 +222,7 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
222
222
|
'firstAidImage': json['firstAidImage'],
|
|
223
223
|
'signOnLat': json['signOnLat'],
|
|
224
224
|
'signOnLong': json['signOnLong'],
|
|
225
|
-
'signOffLat': json['signOffLat']
|
|
225
|
+
'signOffLat': json['signOffLat'],
|
|
226
226
|
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
227
227
|
'licenceNumber': json['licenceNumber'],
|
|
228
228
|
'licenceExpiry': json['licenceExpiry'],
|
|
@@ -249,7 +249,7 @@ export function RegisterResourceToJSONTyped(value?: RegisterResource | null, ign
|
|
|
249
249
|
'venue': VenueLiteResourceToJSON(value['venue']),
|
|
250
250
|
'user': UserLiteResourceToJSON(value['user']),
|
|
251
251
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
252
|
-
'finishDateTime': ((value['finishDateTime'])
|
|
252
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
|
|
253
253
|
'signOffStatus': value['signOffStatus'],
|
|
254
254
|
'signOnSignature': value['signOnSignature'],
|
|
255
255
|
'signOffSignature': value['signOffSignature'],
|
|
@@ -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;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {boolean}
|
|
@@ -82,6 +82,7 @@ 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;
|
|
85
86
|
if (!('isEnabled' in value) || value['isEnabled'] === undefined) return false;
|
|
86
87
|
if (!('address' in value) || value['address'] === undefined) return false;
|
|
87
88
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
@@ -100,7 +101,7 @@ export function SecurityCompanyResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
100
101
|
|
|
101
102
|
'id': json['id'] == null ? undefined : json['id'],
|
|
102
103
|
'name': json['name'],
|
|
103
|
-
'email': json['email']
|
|
104
|
+
'email': json['email'],
|
|
104
105
|
'isEnabled': json['isEnabled'],
|
|
105
106
|
'address': AddressResourceFromJSON(json['address']),
|
|
106
107
|
'licenceNumber': json['licenceNumber'],
|
package/src/models/index.ts
CHANGED
|
@@ -19,8 +19,6 @@ export * from './IncidentFieldSchemasShowRequest';
|
|
|
19
19
|
export * from './IncidentFieldsResourceArrayResponse';
|
|
20
20
|
export * from './IncidentImageResource';
|
|
21
21
|
export * from './IncidentImageResourceArrayResponse';
|
|
22
|
-
export * from './IncidentListResource';
|
|
23
|
-
export * from './IncidentListResourceArrayResponse';
|
|
24
22
|
export * from './IncidentLiteResource';
|
|
25
23
|
export * from './IncidentLiteResourceArrayResponse';
|
|
26
24
|
export * from './IncidentLiteResourceStaff';
|
|
@@ -35,7 +33,7 @@ export * from './IncidentVideoSignedUrlResourceArrayResponse';
|
|
|
35
33
|
export * from './IncidentVideoUploadTokenResource';
|
|
36
34
|
export * from './IncidentVideoUploadTokenResourceArrayResponse';
|
|
37
35
|
export * from './IncidentsApproveRequest';
|
|
38
|
-
export * from './
|
|
36
|
+
export * from './IncidentsExportPdfBulkRequest';
|
|
39
37
|
export * from './IncidentsStoreRequest';
|
|
40
38
|
export * from './IncidentsUpdateRequest';
|
|
41
39
|
export * from './IncidentsVideosStoreRequest';
|
|
@@ -59,7 +57,6 @@ export * from './NotificationPreferenceResourceArrayResponse';
|
|
|
59
57
|
export * from './NotificationPreferencesStoreRequest';
|
|
60
58
|
export * from './NotificationTypeResource';
|
|
61
59
|
export * from './NotificationTypeResourceArrayResponse';
|
|
62
|
-
export * from './PaginatedIncidentListResourceResponse';
|
|
63
60
|
export * from './PaginatedLicenceListResourceResponse';
|
|
64
61
|
export * from './PaginatedLicenceResourceResponse';
|
|
65
62
|
export * from './PaginatedRegisterGroupedByRosterResourceResponse';
|
|
@@ -72,6 +69,8 @@ export * from './PaginatedSecurityCompanyResourceResponse';
|
|
|
72
69
|
export * from './PaginatedUserResourceResponse';
|
|
73
70
|
export * from './PaginatedVenueResourceResponse';
|
|
74
71
|
export * from './PagingMetadata';
|
|
72
|
+
export * from './PdfExportQueuedResource';
|
|
73
|
+
export * from './PdfExportQueuedResourceArrayResponse';
|
|
75
74
|
export * from './PdfExportResource';
|
|
76
75
|
export * from './PdfExportResourceArrayResponse';
|
|
77
76
|
export * from './RegisterGroupedByRosterResource';
|
|
@@ -1,89 +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 { VenueLiteResource } from './VenueLiteResource';
|
|
13
|
-
import type { SecurityCompanyLiteResource } from './SecurityCompanyLiteResource';
|
|
14
|
-
import type { UserLiteResource } from './UserLiteResource';
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @export
|
|
18
|
-
* @interface IncidentListResource
|
|
19
|
-
*/
|
|
20
|
-
export interface IncidentListResource {
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @type {number}
|
|
24
|
-
* @memberof IncidentListResource
|
|
25
|
-
*/
|
|
26
|
-
id: number;
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @type {VenueLiteResource}
|
|
30
|
-
* @memberof IncidentListResource
|
|
31
|
-
*/
|
|
32
|
-
venue?: VenueLiteResource;
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
35
|
-
* @type {SecurityCompanyLiteResource}
|
|
36
|
-
* @memberof IncidentListResource
|
|
37
|
-
*/
|
|
38
|
-
securityCompany?: SecurityCompanyLiteResource;
|
|
39
|
-
/**
|
|
40
|
-
*
|
|
41
|
-
* @type {UserLiteResource}
|
|
42
|
-
* @memberof IncidentListResource
|
|
43
|
-
*/
|
|
44
|
-
user?: UserLiteResource;
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @type {UserLiteResource}
|
|
48
|
-
* @memberof IncidentListResource
|
|
49
|
-
*/
|
|
50
|
-
approvedByUser?: UserLiteResource;
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* @type {string}
|
|
54
|
-
* @memberof IncidentListResource
|
|
55
|
-
*/
|
|
56
|
-
title?: string | null;
|
|
57
|
-
/**
|
|
58
|
-
*
|
|
59
|
-
* @type {Date}
|
|
60
|
-
* @memberof IncidentListResource
|
|
61
|
-
*/
|
|
62
|
-
incidentDateTime?: Date | null;
|
|
63
|
-
/**
|
|
64
|
-
*
|
|
65
|
-
* @type {string}
|
|
66
|
-
* @memberof IncidentListResource
|
|
67
|
-
*/
|
|
68
|
-
state?: string | null;
|
|
69
|
-
/**
|
|
70
|
-
*
|
|
71
|
-
* @type {Date}
|
|
72
|
-
* @memberof IncidentListResource
|
|
73
|
-
*/
|
|
74
|
-
approvedAt?: Date | null;
|
|
75
|
-
/**
|
|
76
|
-
*
|
|
77
|
-
* @type {Date}
|
|
78
|
-
* @memberof IncidentListResource
|
|
79
|
-
*/
|
|
80
|
-
createdAt?: Date | null;
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* Check if a given object implements the IncidentListResource interface.
|
|
84
|
-
*/
|
|
85
|
-
export declare function instanceOfIncidentListResource(value: object): value is IncidentListResource;
|
|
86
|
-
export declare function IncidentListResourceFromJSON(json: any): IncidentListResource;
|
|
87
|
-
export declare function IncidentListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentListResource;
|
|
88
|
-
export declare function IncidentListResourceToJSON(json: any): IncidentListResource;
|
|
89
|
-
export declare function IncidentListResourceToJSONTyped(value?: IncidentListResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,73 +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.instanceOfIncidentListResource = instanceOfIncidentListResource;
|
|
17
|
-
exports.IncidentListResourceFromJSON = IncidentListResourceFromJSON;
|
|
18
|
-
exports.IncidentListResourceFromJSONTyped = IncidentListResourceFromJSONTyped;
|
|
19
|
-
exports.IncidentListResourceToJSON = IncidentListResourceToJSON;
|
|
20
|
-
exports.IncidentListResourceToJSONTyped = IncidentListResourceToJSONTyped;
|
|
21
|
-
var VenueLiteResource_1 = require("./VenueLiteResource");
|
|
22
|
-
var SecurityCompanyLiteResource_1 = require("./SecurityCompanyLiteResource");
|
|
23
|
-
var UserLiteResource_1 = require("./UserLiteResource");
|
|
24
|
-
/**
|
|
25
|
-
* Check if a given object implements the IncidentListResource interface.
|
|
26
|
-
*/
|
|
27
|
-
function instanceOfIncidentListResource(value) {
|
|
28
|
-
if (!('id' in value) || value['id'] === undefined)
|
|
29
|
-
return false;
|
|
30
|
-
return true;
|
|
31
|
-
}
|
|
32
|
-
function IncidentListResourceFromJSON(json) {
|
|
33
|
-
return IncidentListResourceFromJSONTyped(json, false);
|
|
34
|
-
}
|
|
35
|
-
function IncidentListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
-
if (json == null) {
|
|
37
|
-
return json;
|
|
38
|
-
}
|
|
39
|
-
return {
|
|
40
|
-
'id': json['id'],
|
|
41
|
-
'venue': json['venue'] == null ? undefined : (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
|
|
42
|
-
'securityCompany': json['securityCompany'] == null ? undefined : (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceFromJSON)(json['securityCompany']),
|
|
43
|
-
'user': json['user'] == null ? undefined : (0, UserLiteResource_1.UserLiteResourceFromJSON)(json['user']),
|
|
44
|
-
'approvedByUser': json['approvedByUser'] == null ? undefined : (0, UserLiteResource_1.UserLiteResourceFromJSON)(json['approvedByUser']),
|
|
45
|
-
'title': json['title'] == null ? undefined : json['title'],
|
|
46
|
-
'incidentDateTime': json['incidentDateTime'] == null ? undefined : (new Date(json['incidentDateTime'])),
|
|
47
|
-
'state': json['state'] == null ? undefined : json['state'],
|
|
48
|
-
'approvedAt': json['approvedAt'] == null ? undefined : (new Date(json['approvedAt'])),
|
|
49
|
-
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
function IncidentListResourceToJSON(json) {
|
|
53
|
-
return IncidentListResourceToJSONTyped(json, false);
|
|
54
|
-
}
|
|
55
|
-
function IncidentListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
56
|
-
var _a, _b, _c;
|
|
57
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
58
|
-
if (value == null) {
|
|
59
|
-
return value;
|
|
60
|
-
}
|
|
61
|
-
return {
|
|
62
|
-
'id': value['id'],
|
|
63
|
-
'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
|
|
64
|
-
'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceToJSON)(value['securityCompany']),
|
|
65
|
-
'user': (0, UserLiteResource_1.UserLiteResourceToJSON)(value['user']),
|
|
66
|
-
'approvedByUser': (0, UserLiteResource_1.UserLiteResourceToJSON)(value['approvedByUser']),
|
|
67
|
-
'title': value['title'],
|
|
68
|
-
'incidentDateTime': value['incidentDateTime'] === null ? null : ((_a = value['incidentDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
69
|
-
'state': value['state'],
|
|
70
|
-
'approvedAt': value['approvedAt'] === null ? null : ((_b = value['approvedAt']) === null || _b === void 0 ? void 0 : _b.toISOString()),
|
|
71
|
-
'createdAt': value['createdAt'] === null ? null : ((_c = value['createdAt']) === null || _c === void 0 ? void 0 : _c.toISOString()),
|
|
72
|
-
};
|
|
73
|
-
}
|
|
@@ -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 { IncidentListResource } from './IncidentListResource';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface IncidentListResourceArrayResponse
|
|
17
|
-
*/
|
|
18
|
-
export interface IncidentListResourceArrayResponse {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<IncidentListResource>}
|
|
22
|
-
* @memberof IncidentListResourceArrayResponse
|
|
23
|
-
*/
|
|
24
|
-
data?: Array<IncidentListResource>;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the IncidentListResourceArrayResponse interface.
|
|
28
|
-
*/
|
|
29
|
-
export declare function instanceOfIncidentListResourceArrayResponse(value: object): value is IncidentListResourceArrayResponse;
|
|
30
|
-
export declare function IncidentListResourceArrayResponseFromJSON(json: any): IncidentListResourceArrayResponse;
|
|
31
|
-
export declare function IncidentListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentListResourceArrayResponse;
|
|
32
|
-
export declare function IncidentListResourceArrayResponseToJSON(json: any): IncidentListResourceArrayResponse;
|
|
33
|
-
export declare function IncidentListResourceArrayResponseToJSONTyped(value?: IncidentListResourceArrayResponse | 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.instanceOfIncidentListResourceArrayResponse = instanceOfIncidentListResourceArrayResponse;
|
|
17
|
-
exports.IncidentListResourceArrayResponseFromJSON = IncidentListResourceArrayResponseFromJSON;
|
|
18
|
-
exports.IncidentListResourceArrayResponseFromJSONTyped = IncidentListResourceArrayResponseFromJSONTyped;
|
|
19
|
-
exports.IncidentListResourceArrayResponseToJSON = IncidentListResourceArrayResponseToJSON;
|
|
20
|
-
exports.IncidentListResourceArrayResponseToJSONTyped = IncidentListResourceArrayResponseToJSONTyped;
|
|
21
|
-
var IncidentListResource_1 = require("./IncidentListResource");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the IncidentListResourceArrayResponse interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfIncidentListResourceArrayResponse(value) {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
function IncidentListResourceArrayResponseFromJSON(json) {
|
|
29
|
-
return IncidentListResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
function IncidentListResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (json == null) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'data': json['data'] == null ? undefined : (json['data'].map(IncidentListResource_1.IncidentListResourceFromJSON)),
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function IncidentListResourceArrayResponseToJSON(json) {
|
|
40
|
-
return IncidentListResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
function IncidentListResourceArrayResponseToJSONTyped(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(IncidentListResource_1.IncidentListResourceToJSON)),
|
|
49
|
-
};
|
|
50
|
-
}
|
|
@@ -1,151 +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 IncidentsListRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface IncidentsListRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof IncidentsListRequest
|
|
22
|
-
*/
|
|
23
|
-
search?: string;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof IncidentsListRequest
|
|
28
|
-
*/
|
|
29
|
-
sortBy?: IncidentsListRequestSortByEnum;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof IncidentsListRequest
|
|
34
|
-
*/
|
|
35
|
-
sortDirection?: IncidentsListRequestSortDirectionEnum;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @memberof IncidentsListRequest
|
|
40
|
-
*/
|
|
41
|
-
perPage?: number;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof IncidentsListRequest
|
|
46
|
-
*/
|
|
47
|
-
page?: string;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {Array<string>}
|
|
51
|
-
* @memberof IncidentsListRequest
|
|
52
|
-
*/
|
|
53
|
-
venueId?: Array<string>;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {Array<string>}
|
|
57
|
-
* @memberof IncidentsListRequest
|
|
58
|
-
*/
|
|
59
|
-
securityCompanyId?: Array<string>;
|
|
60
|
-
/**
|
|
61
|
-
*
|
|
62
|
-
* @type {Array<string>}
|
|
63
|
-
* @memberof IncidentsListRequest
|
|
64
|
-
*/
|
|
65
|
-
rosterId?: Array<string>;
|
|
66
|
-
/**
|
|
67
|
-
*
|
|
68
|
-
* @type {Array<string>}
|
|
69
|
-
* @memberof IncidentsListRequest
|
|
70
|
-
*/
|
|
71
|
-
userId?: Array<string>;
|
|
72
|
-
/**
|
|
73
|
-
*
|
|
74
|
-
* @type {Array<string>}
|
|
75
|
-
* @memberof IncidentsListRequest
|
|
76
|
-
*/
|
|
77
|
-
approvedByUserId?: Array<string>;
|
|
78
|
-
/**
|
|
79
|
-
*
|
|
80
|
-
* @type {Array<string>}
|
|
81
|
-
* @memberof IncidentsListRequest
|
|
82
|
-
*/
|
|
83
|
-
hasApprovedAt?: Array<string>;
|
|
84
|
-
/**
|
|
85
|
-
*
|
|
86
|
-
* @type {Date}
|
|
87
|
-
* @memberof IncidentsListRequest
|
|
88
|
-
*/
|
|
89
|
-
beforeApprovedAt?: Date;
|
|
90
|
-
/**
|
|
91
|
-
*
|
|
92
|
-
* @type {Date}
|
|
93
|
-
* @memberof IncidentsListRequest
|
|
94
|
-
*/
|
|
95
|
-
afterApprovedAt?: Date;
|
|
96
|
-
/**
|
|
97
|
-
*
|
|
98
|
-
* @type {Date}
|
|
99
|
-
* @memberof IncidentsListRequest
|
|
100
|
-
*/
|
|
101
|
-
beforeCreatedAt?: Date;
|
|
102
|
-
/**
|
|
103
|
-
*
|
|
104
|
-
* @type {Date}
|
|
105
|
-
* @memberof IncidentsListRequest
|
|
106
|
-
*/
|
|
107
|
-
afterCreatedAt?: Date;
|
|
108
|
-
/**
|
|
109
|
-
*
|
|
110
|
-
* @type {number}
|
|
111
|
-
* @memberof IncidentsListRequest
|
|
112
|
-
*/
|
|
113
|
-
relatedId?: number;
|
|
114
|
-
/**
|
|
115
|
-
*
|
|
116
|
-
* @type {string}
|
|
117
|
-
* @memberof IncidentsListRequest
|
|
118
|
-
*/
|
|
119
|
-
relatedType?: string;
|
|
120
|
-
/**
|
|
121
|
-
*
|
|
122
|
-
* @type {boolean}
|
|
123
|
-
* @memberof IncidentsListRequest
|
|
124
|
-
*/
|
|
125
|
-
includesRelations?: boolean;
|
|
126
|
-
}
|
|
127
|
-
/**
|
|
128
|
-
* @export
|
|
129
|
-
*/
|
|
130
|
-
export declare const IncidentsListRequestSortByEnum: {
|
|
131
|
-
readonly Id: "id";
|
|
132
|
-
readonly CreatedAt: "created_at";
|
|
133
|
-
readonly ApprovedAt: "approved_at";
|
|
134
|
-
};
|
|
135
|
-
export type IncidentsListRequestSortByEnum = typeof IncidentsListRequestSortByEnum[keyof typeof IncidentsListRequestSortByEnum];
|
|
136
|
-
/**
|
|
137
|
-
* @export
|
|
138
|
-
*/
|
|
139
|
-
export declare const IncidentsListRequestSortDirectionEnum: {
|
|
140
|
-
readonly Asc: "asc";
|
|
141
|
-
readonly Desc: "desc";
|
|
142
|
-
};
|
|
143
|
-
export type IncidentsListRequestSortDirectionEnum = typeof IncidentsListRequestSortDirectionEnum[keyof typeof IncidentsListRequestSortDirectionEnum];
|
|
144
|
-
/**
|
|
145
|
-
* Check if a given object implements the IncidentsListRequest interface.
|
|
146
|
-
*/
|
|
147
|
-
export declare function instanceOfIncidentsListRequest(value: object): value is IncidentsListRequest;
|
|
148
|
-
export declare function IncidentsListRequestFromJSON(json: any): IncidentsListRequest;
|
|
149
|
-
export declare function IncidentsListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentsListRequest;
|
|
150
|
-
export declare function IncidentsListRequestToJSON(json: any): IncidentsListRequest;
|
|
151
|
-
export declare function IncidentsListRequestToJSONTyped(value?: IncidentsListRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,99 +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.IncidentsListRequestSortDirectionEnum = exports.IncidentsListRequestSortByEnum = void 0;
|
|
17
|
-
exports.instanceOfIncidentsListRequest = instanceOfIncidentsListRequest;
|
|
18
|
-
exports.IncidentsListRequestFromJSON = IncidentsListRequestFromJSON;
|
|
19
|
-
exports.IncidentsListRequestFromJSONTyped = IncidentsListRequestFromJSONTyped;
|
|
20
|
-
exports.IncidentsListRequestToJSON = IncidentsListRequestToJSON;
|
|
21
|
-
exports.IncidentsListRequestToJSONTyped = IncidentsListRequestToJSONTyped;
|
|
22
|
-
/**
|
|
23
|
-
* @export
|
|
24
|
-
*/
|
|
25
|
-
exports.IncidentsListRequestSortByEnum = {
|
|
26
|
-
Id: 'id',
|
|
27
|
-
CreatedAt: 'created_at',
|
|
28
|
-
ApprovedAt: 'approved_at'
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* @export
|
|
32
|
-
*/
|
|
33
|
-
exports.IncidentsListRequestSortDirectionEnum = {
|
|
34
|
-
Asc: 'asc',
|
|
35
|
-
Desc: 'desc'
|
|
36
|
-
};
|
|
37
|
-
/**
|
|
38
|
-
* Check if a given object implements the IncidentsListRequest interface.
|
|
39
|
-
*/
|
|
40
|
-
function instanceOfIncidentsListRequest(value) {
|
|
41
|
-
return true;
|
|
42
|
-
}
|
|
43
|
-
function IncidentsListRequestFromJSON(json) {
|
|
44
|
-
return IncidentsListRequestFromJSONTyped(json, false);
|
|
45
|
-
}
|
|
46
|
-
function IncidentsListRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
-
if (json == null) {
|
|
48
|
-
return json;
|
|
49
|
-
}
|
|
50
|
-
return {
|
|
51
|
-
'search': json['search'] == null ? undefined : json['search'],
|
|
52
|
-
'sortBy': json['sort_by'] == null ? undefined : json['sort_by'],
|
|
53
|
-
'sortDirection': json['sort_direction'] == null ? undefined : json['sort_direction'],
|
|
54
|
-
'perPage': json['per_page'] == null ? undefined : json['per_page'],
|
|
55
|
-
'page': json['page'] == null ? undefined : json['page'],
|
|
56
|
-
'venueId': json['venue_id'] == null ? undefined : json['venue_id'],
|
|
57
|
-
'securityCompanyId': json['security_company_id'] == null ? undefined : json['security_company_id'],
|
|
58
|
-
'rosterId': json['roster_id'] == null ? undefined : json['roster_id'],
|
|
59
|
-
'userId': json['user_id'] == null ? undefined : json['user_id'],
|
|
60
|
-
'approvedByUserId': json['approved_by_user_id'] == null ? undefined : json['approved_by_user_id'],
|
|
61
|
-
'hasApprovedAt': json['has_approved_at'] == null ? undefined : json['has_approved_at'],
|
|
62
|
-
'beforeApprovedAt': json['before_approved_at'] == null ? undefined : (new Date(json['before_approved_at'])),
|
|
63
|
-
'afterApprovedAt': json['after_approved_at'] == null ? undefined : (new Date(json['after_approved_at'])),
|
|
64
|
-
'beforeCreatedAt': json['before_created_at'] == null ? undefined : (new Date(json['before_created_at'])),
|
|
65
|
-
'afterCreatedAt': json['after_created_at'] == null ? undefined : (new Date(json['after_created_at'])),
|
|
66
|
-
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
67
|
-
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
68
|
-
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
function IncidentsListRequestToJSON(json) {
|
|
72
|
-
return IncidentsListRequestToJSONTyped(json, false);
|
|
73
|
-
}
|
|
74
|
-
function IncidentsListRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
75
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
76
|
-
if (value == null) {
|
|
77
|
-
return value;
|
|
78
|
-
}
|
|
79
|
-
return {
|
|
80
|
-
'search': value['search'],
|
|
81
|
-
'sort_by': value['sortBy'],
|
|
82
|
-
'sort_direction': value['sortDirection'],
|
|
83
|
-
'per_page': value['perPage'],
|
|
84
|
-
'page': value['page'],
|
|
85
|
-
'venue_id': value['venueId'],
|
|
86
|
-
'security_company_id': value['securityCompanyId'],
|
|
87
|
-
'roster_id': value['rosterId'],
|
|
88
|
-
'user_id': value['userId'],
|
|
89
|
-
'approved_by_user_id': value['approvedByUserId'],
|
|
90
|
-
'has_approved_at': value['hasApprovedAt'],
|
|
91
|
-
'before_approved_at': value['beforeApprovedAt'] == null ? undefined : ((value['beforeApprovedAt']).toISOString()),
|
|
92
|
-
'after_approved_at': value['afterApprovedAt'] == null ? undefined : ((value['afterApprovedAt']).toISOString()),
|
|
93
|
-
'before_created_at': value['beforeCreatedAt'] == null ? undefined : ((value['beforeCreatedAt']).toISOString()),
|
|
94
|
-
'after_created_at': value['afterCreatedAt'] == null ? undefined : ((value['afterCreatedAt']).toISOString()),
|
|
95
|
-
'related_id': value['relatedId'],
|
|
96
|
-
'related_type': value['relatedType'],
|
|
97
|
-
'includes_relations': value['includesRelations'],
|
|
98
|
-
};
|
|
99
|
-
}
|