@digital8/security-registers-backend-ts-sdk 0.0.171 → 0.0.173
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +0 -8
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +23 -80
- package/dist/apis/GeneralApi.js +112 -397
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +1 -3
- package/dist/models/RegisterGroupedByRosterResource.d.ts +1 -1
- package/dist/models/RegisterGroupedByRosterResource.js +4 -3
- package/dist/models/RegisterListResource.d.ts +4 -4
- package/dist/models/RegisterListResource.js +7 -4
- package/dist/models/RegisterResource.d.ts +2 -2
- package/dist/models/RegisterResource.js +2 -6
- package/dist/models/RosterLiteResource.d.ts +1 -1
- package/dist/models/RosterLiteResource.js +3 -4
- package/dist/models/RosterResource.d.ts +1 -1
- package/dist/models/RosterResource.js +4 -3
- package/dist/models/UsersCreateWithRoleRequestLicencesInner.d.ts +8 -8
- package/dist/models/UsersCreateWithRoleRequestLicencesInner.js +9 -9
- package/dist/models/index.d.ts +0 -8
- package/dist/models/index.js +0 -8
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +98 -363
- package/src/models/AddressResource.ts +2 -3
- package/src/models/RegisterGroupedByRosterResource.ts +4 -3
- package/src/models/RegisterListResource.ts +9 -7
- package/src/models/RegisterResource.ts +4 -6
- package/src/models/RosterLiteResource.ts +3 -4
- package/src/models/RosterResource.ts +4 -3
- package/src/models/UsersCreateWithRoleRequestLicencesInner.ts +17 -17
- package/src/models/index.ts +0 -8
- package/dist/models/IncidentFieldSchemaResource.d.ts +0 -56
- package/dist/models/IncidentFieldSchemaResource.js +0 -62
- package/dist/models/IncidentFieldSchemaResourceArrayResponse.d.ts +0 -33
- package/dist/models/IncidentFieldSchemaResourceArrayResponse.js +0 -50
- package/dist/models/IncidentResource.d.ts +0 -125
- package/dist/models/IncidentResource.js +0 -95
- package/dist/models/IncidentResourceArrayResponse.d.ts +0 -33
- package/dist/models/IncidentResourceArrayResponse.js +0 -50
- package/dist/models/IncidentVersionResource.d.ts +0 -69
- package/dist/models/IncidentVersionResource.js +0 -72
- package/dist/models/IncidentVersionResourceArrayResponse.d.ts +0 -33
- package/dist/models/IncidentVersionResourceArrayResponse.js +0 -50
- package/dist/models/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/IncidentFieldSchemaResource.ts +0 -99
- package/src/models/IncidentFieldSchemaResourceArrayResponse.ts +0 -73
- package/src/models/IncidentResource.ts +0 -213
- package/src/models/IncidentResourceArrayResponse.ts +0 -73
- package/src/models/IncidentVersionResource.ts +0 -126
- package/src/models/IncidentVersionResourceArrayResponse.ts +0 -73
- package/src/models/IncidentsStoreRequest.ts +0 -75
- package/src/models/IncidentsUpdateRequest.ts +0 -66
|
@@ -1,213 +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 { SecurityCompanyLiteResource } from './SecurityCompanyLiteResource';
|
|
24
|
-
import {
|
|
25
|
-
SecurityCompanyLiteResourceFromJSON,
|
|
26
|
-
SecurityCompanyLiteResourceFromJSONTyped,
|
|
27
|
-
SecurityCompanyLiteResourceToJSON,
|
|
28
|
-
SecurityCompanyLiteResourceToJSONTyped,
|
|
29
|
-
} from './SecurityCompanyLiteResource';
|
|
30
|
-
import type { UserLiteResource } from './UserLiteResource';
|
|
31
|
-
import {
|
|
32
|
-
UserLiteResourceFromJSON,
|
|
33
|
-
UserLiteResourceFromJSONTyped,
|
|
34
|
-
UserLiteResourceToJSON,
|
|
35
|
-
UserLiteResourceToJSONTyped,
|
|
36
|
-
} from './UserLiteResource';
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @export
|
|
41
|
-
* @interface IncidentResource
|
|
42
|
-
*/
|
|
43
|
-
export interface IncidentResource {
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @type {number}
|
|
47
|
-
* @memberof IncidentResource
|
|
48
|
-
*/
|
|
49
|
-
id: number;
|
|
50
|
-
/**
|
|
51
|
-
*
|
|
52
|
-
* @type {number}
|
|
53
|
-
* @memberof IncidentResource
|
|
54
|
-
*/
|
|
55
|
-
venueId?: number | null;
|
|
56
|
-
/**
|
|
57
|
-
*
|
|
58
|
-
* @type {VenueLiteResource}
|
|
59
|
-
* @memberof IncidentResource
|
|
60
|
-
*/
|
|
61
|
-
venue: VenueLiteResource | null;
|
|
62
|
-
/**
|
|
63
|
-
*
|
|
64
|
-
* @type {number}
|
|
65
|
-
* @memberof IncidentResource
|
|
66
|
-
*/
|
|
67
|
-
securityCompanyId?: number | null;
|
|
68
|
-
/**
|
|
69
|
-
*
|
|
70
|
-
* @type {SecurityCompanyLiteResource}
|
|
71
|
-
* @memberof IncidentResource
|
|
72
|
-
*/
|
|
73
|
-
securityCompany: SecurityCompanyLiteResource | null;
|
|
74
|
-
/**
|
|
75
|
-
*
|
|
76
|
-
* @type {number}
|
|
77
|
-
* @memberof IncidentResource
|
|
78
|
-
*/
|
|
79
|
-
rosterId?: number | null;
|
|
80
|
-
/**
|
|
81
|
-
*
|
|
82
|
-
* @type {number}
|
|
83
|
-
* @memberof IncidentResource
|
|
84
|
-
*/
|
|
85
|
-
registerId?: number | null;
|
|
86
|
-
/**
|
|
87
|
-
*
|
|
88
|
-
* @type {number}
|
|
89
|
-
* @memberof IncidentResource
|
|
90
|
-
*/
|
|
91
|
-
userId?: number | null;
|
|
92
|
-
/**
|
|
93
|
-
*
|
|
94
|
-
* @type {UserLiteResource}
|
|
95
|
-
* @memberof IncidentResource
|
|
96
|
-
*/
|
|
97
|
-
user: UserLiteResource | null;
|
|
98
|
-
/**
|
|
99
|
-
*
|
|
100
|
-
* @type {number}
|
|
101
|
-
* @memberof IncidentResource
|
|
102
|
-
*/
|
|
103
|
-
incidentFieldSchemaId?: number | null;
|
|
104
|
-
/**
|
|
105
|
-
*
|
|
106
|
-
* @type {Date}
|
|
107
|
-
* @memberof IncidentResource
|
|
108
|
-
*/
|
|
109
|
-
approvedAt?: Date | null;
|
|
110
|
-
/**
|
|
111
|
-
*
|
|
112
|
-
* @type {number}
|
|
113
|
-
* @memberof IncidentResource
|
|
114
|
-
*/
|
|
115
|
-
approvedByUserId?: number | null;
|
|
116
|
-
/**
|
|
117
|
-
*
|
|
118
|
-
* @type {UserLiteResource}
|
|
119
|
-
* @memberof IncidentResource
|
|
120
|
-
*/
|
|
121
|
-
approvedByUser: UserLiteResource | null;
|
|
122
|
-
/**
|
|
123
|
-
*
|
|
124
|
-
* @type {Date}
|
|
125
|
-
* @memberof IncidentResource
|
|
126
|
-
*/
|
|
127
|
-
createdAt?: Date | null;
|
|
128
|
-
/**
|
|
129
|
-
*
|
|
130
|
-
* @type {Date}
|
|
131
|
-
* @memberof IncidentResource
|
|
132
|
-
*/
|
|
133
|
-
updatedAt?: Date | null;
|
|
134
|
-
/**
|
|
135
|
-
*
|
|
136
|
-
* @type {object}
|
|
137
|
-
* @memberof IncidentResource
|
|
138
|
-
*/
|
|
139
|
-
fields: object;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* Check if a given object implements the IncidentResource interface.
|
|
144
|
-
*/
|
|
145
|
-
export function instanceOfIncidentResource(value: object): value is IncidentResource {
|
|
146
|
-
if (!('id' in value) || value['id'] === undefined) return false;
|
|
147
|
-
if (!('venue' in value) || value['venue'] === undefined) return false;
|
|
148
|
-
if (!('securityCompany' in value) || value['securityCompany'] === undefined) return false;
|
|
149
|
-
if (!('user' in value) || value['user'] === undefined) return false;
|
|
150
|
-
if (!('approvedByUser' in value) || value['approvedByUser'] === undefined) return false;
|
|
151
|
-
if (!('fields' in value) || value['fields'] === undefined) return false;
|
|
152
|
-
return true;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
export function IncidentResourceFromJSON(json: any): IncidentResource {
|
|
156
|
-
return IncidentResourceFromJSONTyped(json, false);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
export function IncidentResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentResource {
|
|
160
|
-
if (json == null) {
|
|
161
|
-
return json;
|
|
162
|
-
}
|
|
163
|
-
return {
|
|
164
|
-
|
|
165
|
-
'id': json['id'],
|
|
166
|
-
'venueId': json['venueId'] == null ? undefined : json['venueId'],
|
|
167
|
-
'venue': VenueLiteResourceFromJSON(json['venue']),
|
|
168
|
-
'securityCompanyId': json['securityCompanyId'] == null ? undefined : json['securityCompanyId'],
|
|
169
|
-
'securityCompany': SecurityCompanyLiteResourceFromJSON(json['securityCompany']),
|
|
170
|
-
'rosterId': json['rosterId'] == null ? undefined : json['rosterId'],
|
|
171
|
-
'registerId': json['registerId'] == null ? undefined : json['registerId'],
|
|
172
|
-
'userId': json['userId'] == null ? undefined : json['userId'],
|
|
173
|
-
'user': UserLiteResourceFromJSON(json['user']),
|
|
174
|
-
'incidentFieldSchemaId': json['incidentFieldSchemaId'] == null ? undefined : json['incidentFieldSchemaId'],
|
|
175
|
-
'approvedAt': json['approvedAt'] == null ? undefined : (new Date(json['approvedAt'])),
|
|
176
|
-
'approvedByUserId': json['approvedByUserId'] == null ? undefined : json['approvedByUserId'],
|
|
177
|
-
'approvedByUser': UserLiteResourceFromJSON(json['approvedByUser']),
|
|
178
|
-
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
179
|
-
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
180
|
-
'fields': json['fields'],
|
|
181
|
-
};
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
export function IncidentResourceToJSON(json: any): IncidentResource {
|
|
185
|
-
return IncidentResourceToJSONTyped(json, false);
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
export function IncidentResourceToJSONTyped(value?: IncidentResource | null, ignoreDiscriminator: boolean = false): any {
|
|
189
|
-
if (value == null) {
|
|
190
|
-
return value;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
return {
|
|
194
|
-
|
|
195
|
-
'id': value['id'],
|
|
196
|
-
'venueId': value['venueId'],
|
|
197
|
-
'venue': VenueLiteResourceToJSON(value['venue']),
|
|
198
|
-
'securityCompanyId': value['securityCompanyId'],
|
|
199
|
-
'securityCompany': SecurityCompanyLiteResourceToJSON(value['securityCompany']),
|
|
200
|
-
'rosterId': value['rosterId'],
|
|
201
|
-
'registerId': value['registerId'],
|
|
202
|
-
'userId': value['userId'],
|
|
203
|
-
'user': UserLiteResourceToJSON(value['user']),
|
|
204
|
-
'incidentFieldSchemaId': value['incidentFieldSchemaId'],
|
|
205
|
-
'approvedAt': value['approvedAt'] === null ? null : ((value['approvedAt'] as any)?.toISOString()),
|
|
206
|
-
'approvedByUserId': value['approvedByUserId'],
|
|
207
|
-
'approvedByUser': UserLiteResourceToJSON(value['approvedByUser']),
|
|
208
|
-
'createdAt': value['createdAt'] === null ? null : ((value['createdAt'] as any)?.toISOString()),
|
|
209
|
-
'updatedAt': value['updatedAt'] === null ? null : ((value['updatedAt'] as any)?.toISOString()),
|
|
210
|
-
'fields': value['fields'],
|
|
211
|
-
};
|
|
212
|
-
}
|
|
213
|
-
|
|
@@ -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,126 +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
|
-
incidentId?: number | null;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {number}
|
|
45
|
-
* @memberof IncidentVersionResource
|
|
46
|
-
*/
|
|
47
|
-
versionNumber: number;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {number}
|
|
51
|
-
* @memberof IncidentVersionResource
|
|
52
|
-
*/
|
|
53
|
-
userId?: number | null;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {UserLiteResource}
|
|
57
|
-
* @memberof IncidentVersionResource
|
|
58
|
-
*/
|
|
59
|
-
user: UserLiteResource | null;
|
|
60
|
-
/**
|
|
61
|
-
*
|
|
62
|
-
* @type {Array<boolean>}
|
|
63
|
-
* @memberof IncidentVersionResource
|
|
64
|
-
*/
|
|
65
|
-
fieldData: Array<boolean>;
|
|
66
|
-
/**
|
|
67
|
-
*
|
|
68
|
-
* @type {Date}
|
|
69
|
-
* @memberof IncidentVersionResource
|
|
70
|
-
*/
|
|
71
|
-
createdAt: Date;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* Check if a given object implements the IncidentVersionResource interface.
|
|
76
|
-
*/
|
|
77
|
-
export function instanceOfIncidentVersionResource(value: object): value is IncidentVersionResource {
|
|
78
|
-
if (!('id' in value) || value['id'] === undefined) return false;
|
|
79
|
-
if (!('versionNumber' in value) || value['versionNumber'] === undefined) return false;
|
|
80
|
-
if (!('user' in value) || value['user'] === undefined) return false;
|
|
81
|
-
if (!('fieldData' in value) || value['fieldData'] === undefined) return false;
|
|
82
|
-
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
83
|
-
return true;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export function IncidentVersionResourceFromJSON(json: any): IncidentVersionResource {
|
|
87
|
-
return IncidentVersionResourceFromJSONTyped(json, false);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
export function IncidentVersionResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentVersionResource {
|
|
91
|
-
if (json == null) {
|
|
92
|
-
return json;
|
|
93
|
-
}
|
|
94
|
-
return {
|
|
95
|
-
|
|
96
|
-
'id': json['id'],
|
|
97
|
-
'incidentId': json['incidentId'] == null ? undefined : json['incidentId'],
|
|
98
|
-
'versionNumber': json['versionNumber'],
|
|
99
|
-
'userId': json['userId'] == null ? undefined : json['userId'],
|
|
100
|
-
'user': UserLiteResourceFromJSON(json['user']),
|
|
101
|
-
'fieldData': json['fieldData'],
|
|
102
|
-
'createdAt': (new Date(json['createdAt'])),
|
|
103
|
-
};
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
export function IncidentVersionResourceToJSON(json: any): IncidentVersionResource {
|
|
107
|
-
return IncidentVersionResourceToJSONTyped(json, false);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
export function IncidentVersionResourceToJSONTyped(value?: IncidentVersionResource | null, ignoreDiscriminator: boolean = false): any {
|
|
111
|
-
if (value == null) {
|
|
112
|
-
return value;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
return {
|
|
116
|
-
|
|
117
|
-
'id': value['id'],
|
|
118
|
-
'incidentId': value['incidentId'],
|
|
119
|
-
'versionNumber': value['versionNumber'],
|
|
120
|
-
'userId': value['userId'],
|
|
121
|
-
'user': UserLiteResourceToJSON(value['user']),
|
|
122
|
-
'fieldData': value['fieldData'],
|
|
123
|
-
'createdAt': ((value['createdAt']).toISOString()),
|
|
124
|
-
};
|
|
125
|
-
}
|
|
126
|
-
|
|
@@ -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
|
-
*
|
|
30
|
-
* @type {Array<string>}
|
|
31
|
-
* @memberof IncidentsStoreRequest
|
|
32
|
-
*/
|
|
33
|
-
fields: Array<string>;
|
|
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
|
-
|
|
@@ -1,66 +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 IncidentsUpdateRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface IncidentsUpdateRequest {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {Array<string>}
|
|
25
|
-
* @memberof IncidentsUpdateRequest
|
|
26
|
-
*/
|
|
27
|
-
fields: Array<string>;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Check if a given object implements the IncidentsUpdateRequest interface.
|
|
32
|
-
*/
|
|
33
|
-
export function instanceOfIncidentsUpdateRequest(value: object): value is IncidentsUpdateRequest {
|
|
34
|
-
if (!('fields' in value) || value['fields'] === undefined) return false;
|
|
35
|
-
return true;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export function IncidentsUpdateRequestFromJSON(json: any): IncidentsUpdateRequest {
|
|
39
|
-
return IncidentsUpdateRequestFromJSONTyped(json, false);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export function IncidentsUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentsUpdateRequest {
|
|
43
|
-
if (json == null) {
|
|
44
|
-
return json;
|
|
45
|
-
}
|
|
46
|
-
return {
|
|
47
|
-
|
|
48
|
-
'fields': json['fields'],
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export function IncidentsUpdateRequestToJSON(json: any): IncidentsUpdateRequest {
|
|
53
|
-
return IncidentsUpdateRequestToJSONTyped(json, false);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export function IncidentsUpdateRequestToJSONTyped(value?: IncidentsUpdateRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
-
if (value == null) {
|
|
58
|
-
return value;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
return {
|
|
62
|
-
|
|
63
|
-
'fields': value['fields'],
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
|