@digital8/security-registers-backend-ts-sdk 0.0.284 → 0.0.285
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/AssetResource.d.ts +1 -1
- package/dist/models/AssetResource.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 +3 -4
- package/dist/models/RegisterListResource.d.ts +2 -2
- package/dist/models/RegisterListResource.js +4 -4
- package/dist/models/RegisterResource.d.ts +2 -2
- package/dist/models/RegisterResource.js +3 -3
- package/dist/models/RosterListResource.d.ts +1 -1
- package/dist/models/RosterListResource.js +3 -4
- package/dist/models/RosterResource.d.ts +1 -1
- package/dist/models/RosterResource.js +4 -3
- package/dist/models/RosterWithRegistersResource.d.ts +1 -1
- package/dist/models/RosterWithRegistersResource.js +3 -4
- package/dist/models/VenueLiteResource.d.ts +0 -6
- package/dist/models/VenueLiteResource.js +0 -4
- 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/AssetResource.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 +3 -4
- package/src/models/RegisterListResource.ts +5 -5
- package/src/models/RegisterResource.ts +5 -5
- package/src/models/RosterListResource.ts +3 -4
- package/src/models/RosterResource.ts +4 -3
- package/src/models/RosterWithRegistersResource.ts +3 -4
- package/src/models/VenueLiteResource.ts +0 -9
- package/src/models/index.ts +3 -4
- package/dist/models/IncidentListResource.d.ts +0 -101
- package/dist/models/IncidentListResource.js +0 -79
- 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 -177
- 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 RosterListResource {
|
|
|
63
63
|
* @type {Date}
|
|
64
64
|
* @memberof RosterListResource
|
|
65
65
|
*/
|
|
66
|
-
finishDateTime
|
|
66
|
+
finishDateTime?: Date | null;
|
|
67
67
|
/**
|
|
68
68
|
*
|
|
69
69
|
* @type {boolean}
|
|
@@ -97,7 +97,6 @@ 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;
|
|
101
100
|
if (!('isCompliant' in value) || value['isCompliant'] === undefined) return false;
|
|
102
101
|
if (!('isComplete' in value) || value['isComplete'] === undefined) return false;
|
|
103
102
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
@@ -119,7 +118,7 @@ export function RosterListResourceFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
119
118
|
'venue': VenueLiteResourceFromJSON(json['venue']),
|
|
120
119
|
'securityCompany': SecurityCompanyLiteResourceFromJSON(json['securityCompany']),
|
|
121
120
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
122
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
121
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
123
122
|
'isCompliant': json['isCompliant'],
|
|
124
123
|
'isComplete': json['isComplete'],
|
|
125
124
|
'signOffStatus': json['signOffStatus'],
|
|
@@ -142,7 +141,7 @@ export function RosterListResourceToJSONTyped(value?: RosterListResource | null,
|
|
|
142
141
|
'venue': VenueLiteResourceToJSON(value['venue']),
|
|
143
142
|
'securityCompany': SecurityCompanyLiteResourceToJSON(value['securityCompany']),
|
|
144
143
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
145
|
-
'finishDateTime': ((value['finishDateTime'])
|
|
144
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
|
|
146
145
|
'isCompliant': value['isCompliant'],
|
|
147
146
|
'isComplete': value['isComplete'],
|
|
148
147
|
'signOffStatus': value['signOffStatus'],
|
|
@@ -70,7 +70,7 @@ export interface RosterResource {
|
|
|
70
70
|
* @type {Date}
|
|
71
71
|
* @memberof RosterResource
|
|
72
72
|
*/
|
|
73
|
-
finishDateTime
|
|
73
|
+
finishDateTime: Date;
|
|
74
74
|
/**
|
|
75
75
|
*
|
|
76
76
|
* @type {boolean}
|
|
@@ -104,6 +104,7 @@ export function instanceOfRosterResource(value: object): value is RosterResource
|
|
|
104
104
|
if (!('venue' in value) || value['venue'] === undefined) return false;
|
|
105
105
|
if (!('securityCompany' in value) || value['securityCompany'] === undefined) return false;
|
|
106
106
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
107
|
+
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
|
|
107
108
|
if (!('isCompliant' in value) || value['isCompliant'] === undefined) return false;
|
|
108
109
|
if (!('isComplete' in value) || value['isComplete'] === undefined) return false;
|
|
109
110
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
@@ -125,7 +126,7 @@ export function RosterResourceFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
125
126
|
'venue': VenueLiteResourceFromJSON(json['venue']),
|
|
126
127
|
'securityCompany': SecurityCompanyLiteResourceFromJSON(json['securityCompany']),
|
|
127
128
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
128
|
-
'finishDateTime':
|
|
129
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
129
130
|
'isCompliant': json['isCompliant'],
|
|
130
131
|
'isComplete': json['isComplete'],
|
|
131
132
|
'signOffStatus': json['signOffStatus'],
|
|
@@ -148,7 +149,7 @@ export function RosterResourceToJSONTyped(value?: RosterResource | null, ignoreD
|
|
|
148
149
|
'venue': VenueLiteResourceToJSON(value['venue']),
|
|
149
150
|
'securityCompany': SecurityCompanyLiteResourceToJSON(value['securityCompany']),
|
|
150
151
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
151
|
-
'finishDateTime':
|
|
152
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
152
153
|
'isCompliant': value['isCompliant'],
|
|
153
154
|
'isComplete': value['isComplete'],
|
|
154
155
|
'signOffStatus': value['signOffStatus'],
|
|
@@ -76,7 +76,7 @@ export interface RosterWithRegistersResource {
|
|
|
76
76
|
* @type {Date}
|
|
77
77
|
* @memberof RosterWithRegistersResource
|
|
78
78
|
*/
|
|
79
|
-
finishDateTime
|
|
79
|
+
finishDateTime?: Date | null;
|
|
80
80
|
/**
|
|
81
81
|
*
|
|
82
82
|
* @type {boolean}
|
|
@@ -111,7 +111,6 @@ export function instanceOfRosterWithRegistersResource(value: object): value is R
|
|
|
111
111
|
if (!('state' in value) || value['state'] === undefined) return false;
|
|
112
112
|
if (!('securityCompany' in value) || value['securityCompany'] === undefined) return false;
|
|
113
113
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
114
|
-
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
|
|
115
114
|
if (!('isCompliant' in value) || value['isCompliant'] === undefined) return false;
|
|
116
115
|
if (!('isComplete' in value) || value['isComplete'] === undefined) return false;
|
|
117
116
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
@@ -134,7 +133,7 @@ export function RosterWithRegistersResourceFromJSONTyped(json: any, ignoreDiscri
|
|
|
134
133
|
'state': json['state'],
|
|
135
134
|
'securityCompany': SecurityCompanyLiteResourceFromJSON(json['securityCompany']),
|
|
136
135
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
137
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
136
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
138
137
|
'isCompliant': json['isCompliant'],
|
|
139
138
|
'isComplete': json['isComplete'],
|
|
140
139
|
'signOffStatus': json['signOffStatus'],
|
|
@@ -158,7 +157,7 @@ export function RosterWithRegistersResourceToJSONTyped(value?: RosterWithRegiste
|
|
|
158
157
|
'state': value['state'],
|
|
159
158
|
'securityCompany': SecurityCompanyLiteResourceToJSON(value['securityCompany']),
|
|
160
159
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
161
|
-
'finishDateTime': ((value['finishDateTime'])
|
|
160
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
|
|
162
161
|
'isCompliant': value['isCompliant'],
|
|
163
162
|
'isComplete': value['isComplete'],
|
|
164
163
|
'signOffStatus': value['signOffStatus'],
|
|
@@ -37,12 +37,6 @@ export interface VenueLiteResource {
|
|
|
37
37
|
* @memberof VenueLiteResource
|
|
38
38
|
*/
|
|
39
39
|
venueCode: string;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof VenueLiteResource
|
|
44
|
-
*/
|
|
45
|
-
timezone: string;
|
|
46
40
|
}
|
|
47
41
|
|
|
48
42
|
/**
|
|
@@ -51,7 +45,6 @@ export interface VenueLiteResource {
|
|
|
51
45
|
export function instanceOfVenueLiteResource(value: object): value is VenueLiteResource {
|
|
52
46
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
53
47
|
if (!('venueCode' in value) || value['venueCode'] === undefined) return false;
|
|
54
|
-
if (!('timezone' in value) || value['timezone'] === undefined) return false;
|
|
55
48
|
return true;
|
|
56
49
|
}
|
|
57
50
|
|
|
@@ -68,7 +61,6 @@ export function VenueLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
68
61
|
'id': json['id'] == null ? undefined : json['id'],
|
|
69
62
|
'name': json['name'],
|
|
70
63
|
'venueCode': json['venueCode'],
|
|
71
|
-
'timezone': json['timezone'],
|
|
72
64
|
};
|
|
73
65
|
}
|
|
74
66
|
|
|
@@ -86,7 +78,6 @@ export function VenueLiteResourceToJSONTyped(value?: VenueLiteResource | null, i
|
|
|
86
78
|
'id': value['id'],
|
|
87
79
|
'name': value['name'],
|
|
88
80
|
'venueCode': value['venueCode'],
|
|
89
|
-
'timezone': value['timezone'],
|
|
90
81
|
};
|
|
91
82
|
}
|
|
92
83
|
|
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,101 +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 {string}
|
|
60
|
-
* @memberof IncidentListResource
|
|
61
|
-
*/
|
|
62
|
-
dutyManager?: string | null;
|
|
63
|
-
/**
|
|
64
|
-
*
|
|
65
|
-
* @type {Date}
|
|
66
|
-
* @memberof IncidentListResource
|
|
67
|
-
*/
|
|
68
|
-
incidentDateTime?: Date | null;
|
|
69
|
-
/**
|
|
70
|
-
*
|
|
71
|
-
* @type {string}
|
|
72
|
-
* @memberof IncidentListResource
|
|
73
|
-
*/
|
|
74
|
-
state?: string | null;
|
|
75
|
-
/**
|
|
76
|
-
*
|
|
77
|
-
* @type {boolean}
|
|
78
|
-
* @memberof IncidentListResource
|
|
79
|
-
*/
|
|
80
|
-
submittedByGuard: boolean;
|
|
81
|
-
/**
|
|
82
|
-
*
|
|
83
|
-
* @type {Date}
|
|
84
|
-
* @memberof IncidentListResource
|
|
85
|
-
*/
|
|
86
|
-
approvedAt?: Date | null;
|
|
87
|
-
/**
|
|
88
|
-
*
|
|
89
|
-
* @type {Date}
|
|
90
|
-
* @memberof IncidentListResource
|
|
91
|
-
*/
|
|
92
|
-
createdAt?: Date | null;
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Check if a given object implements the IncidentListResource interface.
|
|
96
|
-
*/
|
|
97
|
-
export declare function instanceOfIncidentListResource(value: object): value is IncidentListResource;
|
|
98
|
-
export declare function IncidentListResourceFromJSON(json: any): IncidentListResource;
|
|
99
|
-
export declare function IncidentListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentListResource;
|
|
100
|
-
export declare function IncidentListResourceToJSON(json: any): IncidentListResource;
|
|
101
|
-
export declare function IncidentListResourceToJSONTyped(value?: IncidentListResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,79 +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
|
-
if (!('submittedByGuard' in value) || value['submittedByGuard'] === undefined)
|
|
31
|
-
return false;
|
|
32
|
-
return true;
|
|
33
|
-
}
|
|
34
|
-
function IncidentListResourceFromJSON(json) {
|
|
35
|
-
return IncidentListResourceFromJSONTyped(json, false);
|
|
36
|
-
}
|
|
37
|
-
function IncidentListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
-
if (json == null) {
|
|
39
|
-
return json;
|
|
40
|
-
}
|
|
41
|
-
return {
|
|
42
|
-
'id': json['id'],
|
|
43
|
-
'venue': json['venue'] == null ? undefined : (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
|
|
44
|
-
'securityCompany': json['securityCompany'] == null ? undefined : (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceFromJSON)(json['securityCompany']),
|
|
45
|
-
'user': json['user'] == null ? undefined : (0, UserLiteResource_1.UserLiteResourceFromJSON)(json['user']),
|
|
46
|
-
'approvedByUser': json['approvedByUser'] == null ? undefined : (0, UserLiteResource_1.UserLiteResourceFromJSON)(json['approvedByUser']),
|
|
47
|
-
'title': json['title'] == null ? undefined : json['title'],
|
|
48
|
-
'dutyManager': json['dutyManager'] == null ? undefined : json['dutyManager'],
|
|
49
|
-
'incidentDateTime': json['incidentDateTime'] == null ? undefined : (new Date(json['incidentDateTime'])),
|
|
50
|
-
'state': json['state'] == null ? undefined : json['state'],
|
|
51
|
-
'submittedByGuard': json['submittedByGuard'],
|
|
52
|
-
'approvedAt': json['approvedAt'] == null ? undefined : (new Date(json['approvedAt'])),
|
|
53
|
-
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
function IncidentListResourceToJSON(json) {
|
|
57
|
-
return IncidentListResourceToJSONTyped(json, false);
|
|
58
|
-
}
|
|
59
|
-
function IncidentListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
60
|
-
var _a, _b, _c;
|
|
61
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
62
|
-
if (value == null) {
|
|
63
|
-
return value;
|
|
64
|
-
}
|
|
65
|
-
return {
|
|
66
|
-
'id': value['id'],
|
|
67
|
-
'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
|
|
68
|
-
'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceToJSON)(value['securityCompany']),
|
|
69
|
-
'user': (0, UserLiteResource_1.UserLiteResourceToJSON)(value['user']),
|
|
70
|
-
'approvedByUser': (0, UserLiteResource_1.UserLiteResourceToJSON)(value['approvedByUser']),
|
|
71
|
-
'title': value['title'],
|
|
72
|
-
'dutyManager': value['dutyManager'],
|
|
73
|
-
'incidentDateTime': value['incidentDateTime'] === null ? null : ((_a = value['incidentDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
74
|
-
'state': value['state'],
|
|
75
|
-
'submittedByGuard': value['submittedByGuard'],
|
|
76
|
-
'approvedAt': value['approvedAt'] === null ? null : ((_b = value['approvedAt']) === null || _b === void 0 ? void 0 : _b.toISOString()),
|
|
77
|
-
'createdAt': value['createdAt'] === null ? null : ((_c = value['createdAt']) === null || _c === void 0 ? void 0 : _c.toISOString()),
|
|
78
|
-
};
|
|
79
|
-
}
|
|
@@ -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;
|