@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,73 +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
|
-
import type { IncidentFieldAuditResource } from './IncidentFieldAuditResource';
|
|
17
|
-
import {
|
|
18
|
-
IncidentFieldAuditResourceFromJSON,
|
|
19
|
-
IncidentFieldAuditResourceFromJSONTyped,
|
|
20
|
-
IncidentFieldAuditResourceToJSON,
|
|
21
|
-
IncidentFieldAuditResourceToJSONTyped,
|
|
22
|
-
} from './IncidentFieldAuditResource';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface IncidentFieldAuditResourceArrayResponse
|
|
28
|
-
*/
|
|
29
|
-
export interface IncidentFieldAuditResourceArrayResponse {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {Array<IncidentFieldAuditResource>}
|
|
33
|
-
* @memberof IncidentFieldAuditResourceArrayResponse
|
|
34
|
-
*/
|
|
35
|
-
data?: Array<IncidentFieldAuditResource>;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Check if a given object implements the IncidentFieldAuditResourceArrayResponse interface.
|
|
40
|
-
*/
|
|
41
|
-
export function instanceOfIncidentFieldAuditResourceArrayResponse(value: object): value is IncidentFieldAuditResourceArrayResponse {
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function IncidentFieldAuditResourceArrayResponseFromJSON(json: any): IncidentFieldAuditResourceArrayResponse {
|
|
46
|
-
return IncidentFieldAuditResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function IncidentFieldAuditResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentFieldAuditResourceArrayResponse {
|
|
50
|
-
if (json == null) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(IncidentFieldAuditResourceFromJSON)),
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function IncidentFieldAuditResourceArrayResponseToJSON(json: any): IncidentFieldAuditResourceArrayResponse {
|
|
60
|
-
return IncidentFieldAuditResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function IncidentFieldAuditResourceArrayResponseToJSONTyped(value?: IncidentFieldAuditResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
-
if (value == null) {
|
|
65
|
-
return value;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
return {
|
|
69
|
-
|
|
70
|
-
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(IncidentFieldAuditResourceToJSON)),
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
|
|
@@ -1,65 +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 IncidentFieldsResourceArrayResponse
|
|
20
|
-
*/
|
|
21
|
-
export interface IncidentFieldsResourceArrayResponse {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {Array<object>}
|
|
25
|
-
* @memberof IncidentFieldsResourceArrayResponse
|
|
26
|
-
*/
|
|
27
|
-
data?: Array<object>;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Check if a given object implements the IncidentFieldsResourceArrayResponse interface.
|
|
32
|
-
*/
|
|
33
|
-
export function instanceOfIncidentFieldsResourceArrayResponse(value: object): value is IncidentFieldsResourceArrayResponse {
|
|
34
|
-
return true;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export function IncidentFieldsResourceArrayResponseFromJSON(json: any): IncidentFieldsResourceArrayResponse {
|
|
38
|
-
return IncidentFieldsResourceArrayResponseFromJSONTyped(json, false);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export function IncidentFieldsResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentFieldsResourceArrayResponse {
|
|
42
|
-
if (json == null) {
|
|
43
|
-
return json;
|
|
44
|
-
}
|
|
45
|
-
return {
|
|
46
|
-
|
|
47
|
-
'data': json['data'] == null ? undefined : json['data'],
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export function IncidentFieldsResourceArrayResponseToJSON(json: any): IncidentFieldsResourceArrayResponse {
|
|
52
|
-
return IncidentFieldsResourceArrayResponseToJSONTyped(json, false);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export function IncidentFieldsResourceArrayResponseToJSONTyped(value?: IncidentFieldsResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
-
if (value == null) {
|
|
57
|
-
return value;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
return {
|
|
61
|
-
|
|
62
|
-
'data': value['data'],
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
|
|
@@ -1,221 +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
|
-
import type { VenueLiteResource } from './VenueLiteResource';
|
|
17
|
-
import {
|
|
18
|
-
VenueLiteResourceFromJSON,
|
|
19
|
-
VenueLiteResourceFromJSONTyped,
|
|
20
|
-
VenueLiteResourceToJSON,
|
|
21
|
-
VenueLiteResourceToJSONTyped,
|
|
22
|
-
} from './VenueLiteResource';
|
|
23
|
-
import type { IncidentFieldSchemaResource } from './IncidentFieldSchemaResource';
|
|
24
|
-
import {
|
|
25
|
-
IncidentFieldSchemaResourceFromJSON,
|
|
26
|
-
IncidentFieldSchemaResourceFromJSONTyped,
|
|
27
|
-
IncidentFieldSchemaResourceToJSON,
|
|
28
|
-
IncidentFieldSchemaResourceToJSONTyped,
|
|
29
|
-
} from './IncidentFieldSchemaResource';
|
|
30
|
-
import type { RosterLiteResource } from './RosterLiteResource';
|
|
31
|
-
import {
|
|
32
|
-
RosterLiteResourceFromJSON,
|
|
33
|
-
RosterLiteResourceFromJSONTyped,
|
|
34
|
-
RosterLiteResourceToJSON,
|
|
35
|
-
RosterLiteResourceToJSONTyped,
|
|
36
|
-
} from './RosterLiteResource';
|
|
37
|
-
import type { IncidentFieldAuditResource } from './IncidentFieldAuditResource';
|
|
38
|
-
import {
|
|
39
|
-
IncidentFieldAuditResourceFromJSON,
|
|
40
|
-
IncidentFieldAuditResourceFromJSONTyped,
|
|
41
|
-
IncidentFieldAuditResourceToJSON,
|
|
42
|
-
IncidentFieldAuditResourceToJSONTyped,
|
|
43
|
-
} from './IncidentFieldAuditResource';
|
|
44
|
-
import type { SecurityCompanyLiteResource } from './SecurityCompanyLiteResource';
|
|
45
|
-
import {
|
|
46
|
-
SecurityCompanyLiteResourceFromJSON,
|
|
47
|
-
SecurityCompanyLiteResourceFromJSONTyped,
|
|
48
|
-
SecurityCompanyLiteResourceToJSON,
|
|
49
|
-
SecurityCompanyLiteResourceToJSONTyped,
|
|
50
|
-
} from './SecurityCompanyLiteResource';
|
|
51
|
-
import type { UserLiteResource } from './UserLiteResource';
|
|
52
|
-
import {
|
|
53
|
-
UserLiteResourceFromJSON,
|
|
54
|
-
UserLiteResourceFromJSONTyped,
|
|
55
|
-
UserLiteResourceToJSON,
|
|
56
|
-
UserLiteResourceToJSONTyped,
|
|
57
|
-
} from './UserLiteResource';
|
|
58
|
-
import type { RegisterLiteResource } from './RegisterLiteResource';
|
|
59
|
-
import {
|
|
60
|
-
RegisterLiteResourceFromJSON,
|
|
61
|
-
RegisterLiteResourceFromJSONTyped,
|
|
62
|
-
RegisterLiteResourceToJSON,
|
|
63
|
-
RegisterLiteResourceToJSONTyped,
|
|
64
|
-
} from './RegisterLiteResource';
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
*
|
|
68
|
-
* @export
|
|
69
|
-
* @interface IncidentResource
|
|
70
|
-
*/
|
|
71
|
-
export interface IncidentResource {
|
|
72
|
-
/**
|
|
73
|
-
*
|
|
74
|
-
* @type {number}
|
|
75
|
-
* @memberof IncidentResource
|
|
76
|
-
*/
|
|
77
|
-
id: number;
|
|
78
|
-
/**
|
|
79
|
-
*
|
|
80
|
-
* @type {VenueLiteResource}
|
|
81
|
-
* @memberof IncidentResource
|
|
82
|
-
*/
|
|
83
|
-
venue: VenueLiteResource | null;
|
|
84
|
-
/**
|
|
85
|
-
*
|
|
86
|
-
* @type {SecurityCompanyLiteResource}
|
|
87
|
-
* @memberof IncidentResource
|
|
88
|
-
*/
|
|
89
|
-
securityCompany: SecurityCompanyLiteResource | null;
|
|
90
|
-
/**
|
|
91
|
-
*
|
|
92
|
-
* @type {RosterLiteResource}
|
|
93
|
-
* @memberof IncidentResource
|
|
94
|
-
*/
|
|
95
|
-
roster: RosterLiteResource | null;
|
|
96
|
-
/**
|
|
97
|
-
*
|
|
98
|
-
* @type {RegisterLiteResource}
|
|
99
|
-
* @memberof IncidentResource
|
|
100
|
-
*/
|
|
101
|
-
register: RegisterLiteResource | null;
|
|
102
|
-
/**
|
|
103
|
-
*
|
|
104
|
-
* @type {UserLiteResource}
|
|
105
|
-
* @memberof IncidentResource
|
|
106
|
-
*/
|
|
107
|
-
user: UserLiteResource | null;
|
|
108
|
-
/**
|
|
109
|
-
*
|
|
110
|
-
* @type {UserLiteResource}
|
|
111
|
-
* @memberof IncidentResource
|
|
112
|
-
*/
|
|
113
|
-
approvedByUser: UserLiteResource | null;
|
|
114
|
-
/**
|
|
115
|
-
*
|
|
116
|
-
* @type {IncidentFieldSchemaResource}
|
|
117
|
-
* @memberof IncidentResource
|
|
118
|
-
*/
|
|
119
|
-
incidentFieldSchema: IncidentFieldSchemaResource | null;
|
|
120
|
-
/**
|
|
121
|
-
*
|
|
122
|
-
* @type {Date}
|
|
123
|
-
* @memberof IncidentResource
|
|
124
|
-
*/
|
|
125
|
-
approvedAt?: Date | null;
|
|
126
|
-
/**
|
|
127
|
-
*
|
|
128
|
-
* @type {Date}
|
|
129
|
-
* @memberof IncidentResource
|
|
130
|
-
*/
|
|
131
|
-
createdAt?: Date | null;
|
|
132
|
-
/**
|
|
133
|
-
*
|
|
134
|
-
* @type {Date}
|
|
135
|
-
* @memberof IncidentResource
|
|
136
|
-
*/
|
|
137
|
-
updatedAt?: Date | null;
|
|
138
|
-
/**
|
|
139
|
-
* Incident field values grouped by section key. Each section is an object of field_key => value for non-repeatable sections, or an array of such objects for repeatable sections. Shape is driven by the venue state's IncidentFieldSchema. Datetime values are returned in the venue's timezone.
|
|
140
|
-
* @type {object}
|
|
141
|
-
* @memberof IncidentResource
|
|
142
|
-
*/
|
|
143
|
-
fields: object;
|
|
144
|
-
/**
|
|
145
|
-
*
|
|
146
|
-
* @type {Array<IncidentFieldAuditResource>}
|
|
147
|
-
* @memberof IncidentResource
|
|
148
|
-
*/
|
|
149
|
-
fieldAudits: Array<IncidentFieldAuditResource> | null;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* Check if a given object implements the IncidentResource interface.
|
|
154
|
-
*/
|
|
155
|
-
export function instanceOfIncidentResource(value: object): value is IncidentResource {
|
|
156
|
-
if (!('id' in value) || value['id'] === undefined) return false;
|
|
157
|
-
if (!('venue' in value) || value['venue'] === undefined) return false;
|
|
158
|
-
if (!('securityCompany' in value) || value['securityCompany'] === undefined) return false;
|
|
159
|
-
if (!('roster' in value) || value['roster'] === undefined) return false;
|
|
160
|
-
if (!('register' in value) || value['register'] === undefined) return false;
|
|
161
|
-
if (!('user' in value) || value['user'] === undefined) return false;
|
|
162
|
-
if (!('approvedByUser' in value) || value['approvedByUser'] === undefined) return false;
|
|
163
|
-
if (!('incidentFieldSchema' in value) || value['incidentFieldSchema'] === undefined) return false;
|
|
164
|
-
if (!('fields' in value) || value['fields'] === undefined) return false;
|
|
165
|
-
if (!('fieldAudits' in value) || value['fieldAudits'] === undefined) return false;
|
|
166
|
-
return true;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
export function IncidentResourceFromJSON(json: any): IncidentResource {
|
|
170
|
-
return IncidentResourceFromJSONTyped(json, false);
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
export function IncidentResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentResource {
|
|
174
|
-
if (json == null) {
|
|
175
|
-
return json;
|
|
176
|
-
}
|
|
177
|
-
return {
|
|
178
|
-
|
|
179
|
-
'id': json['id'],
|
|
180
|
-
'venue': VenueLiteResourceFromJSON(json['venue']),
|
|
181
|
-
'securityCompany': SecurityCompanyLiteResourceFromJSON(json['securityCompany']),
|
|
182
|
-
'roster': RosterLiteResourceFromJSON(json['roster']),
|
|
183
|
-
'register': RegisterLiteResourceFromJSON(json['register']),
|
|
184
|
-
'user': UserLiteResourceFromJSON(json['user']),
|
|
185
|
-
'approvedByUser': UserLiteResourceFromJSON(json['approvedByUser']),
|
|
186
|
-
'incidentFieldSchema': IncidentFieldSchemaResourceFromJSON(json['incidentFieldSchema']),
|
|
187
|
-
'approvedAt': json['approvedAt'] == null ? undefined : (new Date(json['approvedAt'])),
|
|
188
|
-
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
189
|
-
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
190
|
-
'fields': json['fields'],
|
|
191
|
-
'fieldAudits': (json['fieldAudits'] == null ? null : (json['fieldAudits'] as Array<any>).map(IncidentFieldAuditResourceFromJSON)),
|
|
192
|
-
};
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
export function IncidentResourceToJSON(json: any): IncidentResource {
|
|
196
|
-
return IncidentResourceToJSONTyped(json, false);
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
export function IncidentResourceToJSONTyped(value?: IncidentResource | null, ignoreDiscriminator: boolean = false): any {
|
|
200
|
-
if (value == null) {
|
|
201
|
-
return value;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
return {
|
|
205
|
-
|
|
206
|
-
'id': value['id'],
|
|
207
|
-
'venue': VenueLiteResourceToJSON(value['venue']),
|
|
208
|
-
'securityCompany': SecurityCompanyLiteResourceToJSON(value['securityCompany']),
|
|
209
|
-
'roster': RosterLiteResourceToJSON(value['roster']),
|
|
210
|
-
'register': RegisterLiteResourceToJSON(value['register']),
|
|
211
|
-
'user': UserLiteResourceToJSON(value['user']),
|
|
212
|
-
'approvedByUser': UserLiteResourceToJSON(value['approvedByUser']),
|
|
213
|
-
'incidentFieldSchema': IncidentFieldSchemaResourceToJSON(value['incidentFieldSchema']),
|
|
214
|
-
'approvedAt': value['approvedAt'] === null ? null : ((value['approvedAt'] as any)?.toISOString()),
|
|
215
|
-
'createdAt': value['createdAt'] === null ? null : ((value['createdAt'] as any)?.toISOString()),
|
|
216
|
-
'updatedAt': value['updatedAt'] === null ? null : ((value['updatedAt'] as any)?.toISOString()),
|
|
217
|
-
'fields': value['fields'],
|
|
218
|
-
'fieldAudits': (value['fieldAudits'] == null ? null : (value['fieldAudits'] as Array<any>).map(IncidentFieldAuditResourceToJSON)),
|
|
219
|
-
};
|
|
220
|
-
}
|
|
221
|
-
|
|
@@ -1,73 +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
|
-
import type { IncidentResource } from './IncidentResource';
|
|
17
|
-
import {
|
|
18
|
-
IncidentResourceFromJSON,
|
|
19
|
-
IncidentResourceFromJSONTyped,
|
|
20
|
-
IncidentResourceToJSON,
|
|
21
|
-
IncidentResourceToJSONTyped,
|
|
22
|
-
} from './IncidentResource';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface IncidentResourceArrayResponse
|
|
28
|
-
*/
|
|
29
|
-
export interface IncidentResourceArrayResponse {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {Array<IncidentResource>}
|
|
33
|
-
* @memberof IncidentResourceArrayResponse
|
|
34
|
-
*/
|
|
35
|
-
data?: Array<IncidentResource>;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Check if a given object implements the IncidentResourceArrayResponse interface.
|
|
40
|
-
*/
|
|
41
|
-
export function instanceOfIncidentResourceArrayResponse(value: object): value is IncidentResourceArrayResponse {
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function IncidentResourceArrayResponseFromJSON(json: any): IncidentResourceArrayResponse {
|
|
46
|
-
return IncidentResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function IncidentResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentResourceArrayResponse {
|
|
50
|
-
if (json == null) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(IncidentResourceFromJSON)),
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function IncidentResourceArrayResponseToJSON(json: any): IncidentResourceArrayResponse {
|
|
60
|
-
return IncidentResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function IncidentResourceArrayResponseToJSONTyped(value?: IncidentResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
-
if (value == null) {
|
|
65
|
-
return value;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
return {
|
|
69
|
-
|
|
70
|
-
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(IncidentResourceToJSON)),
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
|
|
@@ -1,110 +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
|
-
import type { UserLiteResource } from './UserLiteResource';
|
|
17
|
-
import {
|
|
18
|
-
UserLiteResourceFromJSON,
|
|
19
|
-
UserLiteResourceFromJSONTyped,
|
|
20
|
-
UserLiteResourceToJSON,
|
|
21
|
-
UserLiteResourceToJSONTyped,
|
|
22
|
-
} from './UserLiteResource';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface IncidentVersionResource
|
|
28
|
-
*/
|
|
29
|
-
export interface IncidentVersionResource {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {number}
|
|
33
|
-
* @memberof IncidentVersionResource
|
|
34
|
-
*/
|
|
35
|
-
id: number;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @memberof IncidentVersionResource
|
|
40
|
-
*/
|
|
41
|
-
versionNumber: number;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {UserLiteResource}
|
|
45
|
-
* @memberof IncidentVersionResource
|
|
46
|
-
*/
|
|
47
|
-
user: UserLiteResource | null;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {Array<boolean>}
|
|
51
|
-
* @memberof IncidentVersionResource
|
|
52
|
-
*/
|
|
53
|
-
fieldData: Array<boolean>;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {Date}
|
|
57
|
-
* @memberof IncidentVersionResource
|
|
58
|
-
*/
|
|
59
|
-
createdAt: Date;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* Check if a given object implements the IncidentVersionResource interface.
|
|
64
|
-
*/
|
|
65
|
-
export function instanceOfIncidentVersionResource(value: object): value is IncidentVersionResource {
|
|
66
|
-
if (!('id' in value) || value['id'] === undefined) return false;
|
|
67
|
-
if (!('versionNumber' in value) || value['versionNumber'] === undefined) return false;
|
|
68
|
-
if (!('user' in value) || value['user'] === undefined) return false;
|
|
69
|
-
if (!('fieldData' in value) || value['fieldData'] === undefined) return false;
|
|
70
|
-
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
71
|
-
return true;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export function IncidentVersionResourceFromJSON(json: any): IncidentVersionResource {
|
|
75
|
-
return IncidentVersionResourceFromJSONTyped(json, false);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export function IncidentVersionResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentVersionResource {
|
|
79
|
-
if (json == null) {
|
|
80
|
-
return json;
|
|
81
|
-
}
|
|
82
|
-
return {
|
|
83
|
-
|
|
84
|
-
'id': json['id'],
|
|
85
|
-
'versionNumber': json['versionNumber'],
|
|
86
|
-
'user': UserLiteResourceFromJSON(json['user']),
|
|
87
|
-
'fieldData': json['fieldData'],
|
|
88
|
-
'createdAt': (new Date(json['createdAt'])),
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export function IncidentVersionResourceToJSON(json: any): IncidentVersionResource {
|
|
93
|
-
return IncidentVersionResourceToJSONTyped(json, false);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
export function IncidentVersionResourceToJSONTyped(value?: IncidentVersionResource | null, ignoreDiscriminator: boolean = false): any {
|
|
97
|
-
if (value == null) {
|
|
98
|
-
return value;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
return {
|
|
102
|
-
|
|
103
|
-
'id': value['id'],
|
|
104
|
-
'versionNumber': value['versionNumber'],
|
|
105
|
-
'user': UserLiteResourceToJSON(value['user']),
|
|
106
|
-
'fieldData': value['fieldData'],
|
|
107
|
-
'createdAt': ((value['createdAt']).toISOString()),
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
|
|
@@ -1,73 +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
|
-
import type { IncidentVersionResource } from './IncidentVersionResource';
|
|
17
|
-
import {
|
|
18
|
-
IncidentVersionResourceFromJSON,
|
|
19
|
-
IncidentVersionResourceFromJSONTyped,
|
|
20
|
-
IncidentVersionResourceToJSON,
|
|
21
|
-
IncidentVersionResourceToJSONTyped,
|
|
22
|
-
} from './IncidentVersionResource';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface IncidentVersionResourceArrayResponse
|
|
28
|
-
*/
|
|
29
|
-
export interface IncidentVersionResourceArrayResponse {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {Array<IncidentVersionResource>}
|
|
33
|
-
* @memberof IncidentVersionResourceArrayResponse
|
|
34
|
-
*/
|
|
35
|
-
data?: Array<IncidentVersionResource>;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Check if a given object implements the IncidentVersionResourceArrayResponse interface.
|
|
40
|
-
*/
|
|
41
|
-
export function instanceOfIncidentVersionResourceArrayResponse(value: object): value is IncidentVersionResourceArrayResponse {
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function IncidentVersionResourceArrayResponseFromJSON(json: any): IncidentVersionResourceArrayResponse {
|
|
46
|
-
return IncidentVersionResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function IncidentVersionResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentVersionResourceArrayResponse {
|
|
50
|
-
if (json == null) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(IncidentVersionResourceFromJSON)),
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function IncidentVersionResourceArrayResponseToJSON(json: any): IncidentVersionResourceArrayResponse {
|
|
60
|
-
return IncidentVersionResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function IncidentVersionResourceArrayResponseToJSONTyped(value?: IncidentVersionResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
-
if (value == null) {
|
|
65
|
-
return value;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
return {
|
|
69
|
-
|
|
70
|
-
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(IncidentVersionResourceToJSON)),
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
|
|
@@ -1,75 +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 IncidentsStoreRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface IncidentsStoreRequest {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {number}
|
|
25
|
-
* @memberof IncidentsStoreRequest
|
|
26
|
-
*/
|
|
27
|
-
venueId: number;
|
|
28
|
-
/**
|
|
29
|
-
* 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.
|
|
30
|
-
* @type {object}
|
|
31
|
-
* @memberof IncidentsStoreRequest
|
|
32
|
-
*/
|
|
33
|
-
fields: object;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Check if a given object implements the IncidentsStoreRequest interface.
|
|
38
|
-
*/
|
|
39
|
-
export function instanceOfIncidentsStoreRequest(value: object): value is IncidentsStoreRequest {
|
|
40
|
-
if (!('venueId' in value) || value['venueId'] === undefined) return false;
|
|
41
|
-
if (!('fields' in value) || value['fields'] === undefined) return false;
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function IncidentsStoreRequestFromJSON(json: any): IncidentsStoreRequest {
|
|
46
|
-
return IncidentsStoreRequestFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function IncidentsStoreRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentsStoreRequest {
|
|
50
|
-
if (json == null) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'venueId': json['venue_id'],
|
|
56
|
-
'fields': json['fields'],
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export function IncidentsStoreRequestToJSON(json: any): IncidentsStoreRequest {
|
|
61
|
-
return IncidentsStoreRequestToJSONTyped(json, false);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export function IncidentsStoreRequestToJSONTyped(value?: IncidentsStoreRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
-
if (value == null) {
|
|
66
|
-
return value;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
return {
|
|
70
|
-
|
|
71
|
-
'venue_id': value['venueId'],
|
|
72
|
-
'fields': value['fields'],
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
|