@digital8/security-registers-backend-ts-sdk 0.0.221 → 0.0.222
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 +6 -2
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +59 -1
- package/dist/apis/GeneralApi.js +288 -0
- package/dist/models/IncidentFieldAuditResource.d.ts +56 -0
- package/dist/models/IncidentFieldAuditResource.js +67 -0
- package/dist/models/IncidentFieldAuditResourceArrayResponse.d.ts +33 -0
- package/dist/models/IncidentFieldAuditResourceArrayResponse.js +50 -0
- package/dist/models/IncidentResource.d.ts +7 -0
- package/dist/models/IncidentResource.js +5 -0
- package/dist/models/IncidentVersionResource.d.ts +57 -0
- package/dist/models/IncidentVersionResource.js +68 -0
- package/dist/models/IncidentVersionResourceArrayResponse.d.ts +33 -0
- package/dist/models/IncidentVersionResourceArrayResponse.js +50 -0
- package/dist/models/IncidentsApproveRequest.d.ts +32 -0
- package/dist/models/IncidentsApproveRequest.js +51 -0
- package/dist/models/IncidentsUpdateRequest.d.ts +32 -0
- package/dist/models/IncidentsUpdateRequest.js +51 -0
- package/dist/models/RegisterListResource.d.ts +2 -2
- package/dist/models/RegisterListResource.js +6 -2
- package/dist/models/RegisterResource.d.ts +2 -2
- package/dist/models/RegisterResource.js +2 -6
- package/dist/models/RosterResource.d.ts +1 -1
- package/dist/models/RosterResource.js +4 -3
- package/dist/models/SecurityCompanyResource.d.ts +1 -1
- package/dist/models/SecurityCompanyResource.js +1 -3
- package/dist/models/index.d.ts +6 -2
- package/dist/models/index.js +6 -2
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +274 -0
- package/src/models/IncidentFieldAuditResource.ts +102 -0
- package/src/models/IncidentFieldAuditResourceArrayResponse.ts +73 -0
- package/src/models/IncidentResource.ts +16 -0
- package/src/models/IncidentVersionResource.ts +110 -0
- package/src/models/IncidentVersionResourceArrayResponse.ts +73 -0
- package/src/models/IncidentsApproveRequest.ts +66 -0
- package/src/models/IncidentsUpdateRequest.ts +66 -0
- package/src/models/RegisterListResource.ts +6 -4
- package/src/models/RegisterResource.ts +4 -6
- package/src/models/RosterResource.ts +4 -3
- package/src/models/SecurityCompanyResource.ts +2 -3
- package/src/models/index.ts +6 -2
- package/dist/models/IncidentImageResource.d.ts +0 -56
- package/dist/models/IncidentImageResource.js +0 -65
- package/dist/models/IncidentImageResourceArrayResponse.d.ts +0 -33
- package/dist/models/IncidentImageResourceArrayResponse.js +0 -50
- package/src/models/IncidentImageResource.ts +0 -101
- package/src/models/IncidentImageResourceArrayResponse.ts +0 -73
|
@@ -0,0 +1,73 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
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 IncidentsApproveRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface IncidentsApproveRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof IncidentsApproveRequest
|
|
26
|
+
*/
|
|
27
|
+
userId: number;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the IncidentsApproveRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfIncidentsApproveRequest(value: object): value is IncidentsApproveRequest {
|
|
34
|
+
if (!('userId' in value) || value['userId'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function IncidentsApproveRequestFromJSON(json: any): IncidentsApproveRequest {
|
|
39
|
+
return IncidentsApproveRequestFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function IncidentsApproveRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentsApproveRequest {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'userId': json['user_id'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function IncidentsApproveRequestToJSON(json: any): IncidentsApproveRequest {
|
|
53
|
+
return IncidentsApproveRequestToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function IncidentsApproveRequestToJSONTyped(value?: IncidentsApproveRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'user_id': value['userId'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
|
|
@@ -81,7 +81,7 @@ export interface RegisterListResource {
|
|
|
81
81
|
* @type {string}
|
|
82
82
|
* @memberof RegisterListResource
|
|
83
83
|
*/
|
|
84
|
-
badgeNumber
|
|
84
|
+
badgeNumber: string;
|
|
85
85
|
/**
|
|
86
86
|
*
|
|
87
87
|
* @type {string}
|
|
@@ -159,7 +159,7 @@ export interface RegisterListResource {
|
|
|
159
159
|
* @type {number}
|
|
160
160
|
* @memberof RegisterListResource
|
|
161
161
|
*/
|
|
162
|
-
signOffLat
|
|
162
|
+
signOffLat: number;
|
|
163
163
|
/**
|
|
164
164
|
*
|
|
165
165
|
* @type {number}
|
|
@@ -184,6 +184,7 @@ export function instanceOfRegisterListResource(value: object): value is Register
|
|
|
184
184
|
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
|
|
185
185
|
if (!('shiftLength' in value) || value['shiftLength'] === undefined) return false;
|
|
186
186
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
187
|
+
if (!('badgeNumber' in value) || value['badgeNumber'] === undefined) return false;
|
|
187
188
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
188
189
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
|
|
189
190
|
if (!('licenceLastName' in value) || value['licenceLastName'] === undefined) return false;
|
|
@@ -196,6 +197,7 @@ export function instanceOfRegisterListResource(value: object): value is Register
|
|
|
196
197
|
if (!('firstAid' in value) || value['firstAid'] === undefined) return false;
|
|
197
198
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
198
199
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
200
|
+
if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
|
|
199
201
|
if (!('incidents' in value) || value['incidents'] === undefined) return false;
|
|
200
202
|
return true;
|
|
201
203
|
}
|
|
@@ -217,7 +219,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
217
219
|
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
218
220
|
'shiftLength': json['shiftLength'],
|
|
219
221
|
'signOffStatus': json['signOffStatus'],
|
|
220
|
-
'badgeNumber': json['badgeNumber']
|
|
222
|
+
'badgeNumber': json['badgeNumber'],
|
|
221
223
|
'licenceNumber': json['licenceNumber'],
|
|
222
224
|
'licenceFirstName': json['licenceFirstName'],
|
|
223
225
|
'licenceLastName': json['licenceLastName'],
|
|
@@ -230,7 +232,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
230
232
|
'firstAid': json['firstAid'],
|
|
231
233
|
'signOnLat': json['signOnLat'],
|
|
232
234
|
'signOnLong': json['signOnLong'],
|
|
233
|
-
'signOffLat': json['signOffLat']
|
|
235
|
+
'signOffLat': json['signOffLat'],
|
|
234
236
|
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
235
237
|
'incidents': json['incidents'],
|
|
236
238
|
};
|
|
@@ -123,13 +123,13 @@ export interface RegisterResource {
|
|
|
123
123
|
* @type {number}
|
|
124
124
|
* @memberof RegisterResource
|
|
125
125
|
*/
|
|
126
|
-
signOffLat
|
|
126
|
+
signOffLat?: number | null;
|
|
127
127
|
/**
|
|
128
128
|
*
|
|
129
129
|
* @type {number}
|
|
130
130
|
* @memberof RegisterResource
|
|
131
131
|
*/
|
|
132
|
-
signOffLong
|
|
132
|
+
signOffLong?: number | null;
|
|
133
133
|
/**
|
|
134
134
|
*
|
|
135
135
|
* @type {string}
|
|
@@ -191,8 +191,6 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
|
|
|
191
191
|
if (!('firstAidImage' in value) || value['firstAidImage'] === undefined) return false;
|
|
192
192
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
193
193
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
194
|
-
if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
|
|
195
|
-
if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
|
|
196
194
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
197
195
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
|
|
198
196
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
|
|
@@ -224,8 +222,8 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
224
222
|
'firstAidImage': json['firstAidImage'],
|
|
225
223
|
'signOnLat': json['signOnLat'],
|
|
226
224
|
'signOnLong': json['signOnLong'],
|
|
227
|
-
'signOffLat': json['signOffLat'],
|
|
228
|
-
'signOffLong': json['signOffLong'],
|
|
225
|
+
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
226
|
+
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
229
227
|
'licenceNumber': json['licenceNumber'],
|
|
230
228
|
'licenceExpiry': json['licenceExpiry'],
|
|
231
229
|
'licenceFirstName': json['licenceFirstName'],
|
|
@@ -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'],
|
|
@@ -44,7 +44,7 @@ export interface SecurityCompanyResource {
|
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof SecurityCompanyResource
|
|
46
46
|
*/
|
|
47
|
-
email
|
|
47
|
+
email?: string | null;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {boolean}
|
|
@@ -82,7 +82,6 @@ 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;
|
|
86
85
|
if (!('isEnabled' in value) || value['isEnabled'] === undefined) return false;
|
|
87
86
|
if (!('address' in value) || value['address'] === undefined) return false;
|
|
88
87
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
@@ -101,7 +100,7 @@ export function SecurityCompanyResourceFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
101
100
|
|
|
102
101
|
'id': json['id'] == null ? undefined : json['id'],
|
|
103
102
|
'name': json['name'],
|
|
104
|
-
'email': json['email'],
|
|
103
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
105
104
|
'isEnabled': json['isEnabled'],
|
|
106
105
|
'address': AddressResourceFromJSON(json['address']),
|
|
107
106
|
'licenceNumber': json['licenceNumber'],
|
package/src/models/index.ts
CHANGED
|
@@ -11,15 +11,19 @@ export * from './AssetResourceArrayResponse';
|
|
|
11
11
|
export * from './CurrentRegisterResource';
|
|
12
12
|
export * from './CurrentRegisterResourceArrayResponse';
|
|
13
13
|
export * from './GenericResponse';
|
|
14
|
+
export * from './IncidentFieldAuditResource';
|
|
15
|
+
export * from './IncidentFieldAuditResourceArrayResponse';
|
|
14
16
|
export * from './IncidentFieldSchemaResource';
|
|
15
17
|
export * from './IncidentFieldSchemaResourceArrayResponse';
|
|
16
18
|
export * from './IncidentFieldSchemasShowRequest';
|
|
17
19
|
export * from './IncidentFieldsResourceArrayResponse';
|
|
18
|
-
export * from './IncidentImageResource';
|
|
19
|
-
export * from './IncidentImageResourceArrayResponse';
|
|
20
20
|
export * from './IncidentResource';
|
|
21
21
|
export * from './IncidentResourceArrayResponse';
|
|
22
|
+
export * from './IncidentVersionResource';
|
|
23
|
+
export * from './IncidentVersionResourceArrayResponse';
|
|
24
|
+
export * from './IncidentsApproveRequest';
|
|
22
25
|
export * from './IncidentsStoreRequest';
|
|
26
|
+
export * from './IncidentsUpdateRequest';
|
|
23
27
|
export * from './IndexMinimalUserRequest';
|
|
24
28
|
export * from './IndexUserRequest';
|
|
25
29
|
export * from './LicenceListResource';
|
|
@@ -1,56 +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 IncidentImageResource
|
|
16
|
-
*/
|
|
17
|
-
export interface IncidentImageResource {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof IncidentImageResource
|
|
22
|
-
*/
|
|
23
|
-
fileId: number;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof IncidentImageResource
|
|
28
|
-
*/
|
|
29
|
-
mimeType: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof IncidentImageResource
|
|
34
|
-
*/
|
|
35
|
-
altText?: string | null;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {number}
|
|
39
|
-
* @memberof IncidentImageResource
|
|
40
|
-
*/
|
|
41
|
-
assetId: number;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof IncidentImageResource
|
|
46
|
-
*/
|
|
47
|
-
url: string;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Check if a given object implements the IncidentImageResource interface.
|
|
51
|
-
*/
|
|
52
|
-
export declare function instanceOfIncidentImageResource(value: object): value is IncidentImageResource;
|
|
53
|
-
export declare function IncidentImageResourceFromJSON(json: any): IncidentImageResource;
|
|
54
|
-
export declare function IncidentImageResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentImageResource;
|
|
55
|
-
export declare function IncidentImageResourceToJSON(json: any): IncidentImageResource;
|
|
56
|
-
export declare function IncidentImageResourceToJSONTyped(value?: IncidentImageResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,65 +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.instanceOfIncidentImageResource = instanceOfIncidentImageResource;
|
|
17
|
-
exports.IncidentImageResourceFromJSON = IncidentImageResourceFromJSON;
|
|
18
|
-
exports.IncidentImageResourceFromJSONTyped = IncidentImageResourceFromJSONTyped;
|
|
19
|
-
exports.IncidentImageResourceToJSON = IncidentImageResourceToJSON;
|
|
20
|
-
exports.IncidentImageResourceToJSONTyped = IncidentImageResourceToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the IncidentImageResource interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfIncidentImageResource(value) {
|
|
25
|
-
if (!('fileId' in value) || value['fileId'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
if (!('mimeType' in value) || value['mimeType'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
if (!('assetId' in value) || value['assetId'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
if (!('url' in value) || value['url'] === undefined)
|
|
32
|
-
return false;
|
|
33
|
-
return true;
|
|
34
|
-
}
|
|
35
|
-
function IncidentImageResourceFromJSON(json) {
|
|
36
|
-
return IncidentImageResourceFromJSONTyped(json, false);
|
|
37
|
-
}
|
|
38
|
-
function IncidentImageResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
-
if (json == null) {
|
|
40
|
-
return json;
|
|
41
|
-
}
|
|
42
|
-
return {
|
|
43
|
-
'fileId': json['file_id'],
|
|
44
|
-
'mimeType': json['mime_type'],
|
|
45
|
-
'altText': json['alt_text'] == null ? undefined : json['alt_text'],
|
|
46
|
-
'assetId': json['asset_id'],
|
|
47
|
-
'url': json['url'],
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
function IncidentImageResourceToJSON(json) {
|
|
51
|
-
return IncidentImageResourceToJSONTyped(json, false);
|
|
52
|
-
}
|
|
53
|
-
function IncidentImageResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
54
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
55
|
-
if (value == null) {
|
|
56
|
-
return value;
|
|
57
|
-
}
|
|
58
|
-
return {
|
|
59
|
-
'file_id': value['fileId'],
|
|
60
|
-
'mime_type': value['mimeType'],
|
|
61
|
-
'alt_text': value['altText'],
|
|
62
|
-
'asset_id': value['assetId'],
|
|
63
|
-
'url': value['url'],
|
|
64
|
-
};
|
|
65
|
-
}
|
|
@@ -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 { IncidentImageResource } from './IncidentImageResource';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface IncidentImageResourceArrayResponse
|
|
17
|
-
*/
|
|
18
|
-
export interface IncidentImageResourceArrayResponse {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<IncidentImageResource>}
|
|
22
|
-
* @memberof IncidentImageResourceArrayResponse
|
|
23
|
-
*/
|
|
24
|
-
data?: Array<IncidentImageResource>;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the IncidentImageResourceArrayResponse interface.
|
|
28
|
-
*/
|
|
29
|
-
export declare function instanceOfIncidentImageResourceArrayResponse(value: object): value is IncidentImageResourceArrayResponse;
|
|
30
|
-
export declare function IncidentImageResourceArrayResponseFromJSON(json: any): IncidentImageResourceArrayResponse;
|
|
31
|
-
export declare function IncidentImageResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentImageResourceArrayResponse;
|
|
32
|
-
export declare function IncidentImageResourceArrayResponseToJSON(json: any): IncidentImageResourceArrayResponse;
|
|
33
|
-
export declare function IncidentImageResourceArrayResponseToJSONTyped(value?: IncidentImageResourceArrayResponse | 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.instanceOfIncidentImageResourceArrayResponse = instanceOfIncidentImageResourceArrayResponse;
|
|
17
|
-
exports.IncidentImageResourceArrayResponseFromJSON = IncidentImageResourceArrayResponseFromJSON;
|
|
18
|
-
exports.IncidentImageResourceArrayResponseFromJSONTyped = IncidentImageResourceArrayResponseFromJSONTyped;
|
|
19
|
-
exports.IncidentImageResourceArrayResponseToJSON = IncidentImageResourceArrayResponseToJSON;
|
|
20
|
-
exports.IncidentImageResourceArrayResponseToJSONTyped = IncidentImageResourceArrayResponseToJSONTyped;
|
|
21
|
-
var IncidentImageResource_1 = require("./IncidentImageResource");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the IncidentImageResourceArrayResponse interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfIncidentImageResourceArrayResponse(value) {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
function IncidentImageResourceArrayResponseFromJSON(json) {
|
|
29
|
-
return IncidentImageResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
function IncidentImageResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (json == null) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'data': json['data'] == null ? undefined : (json['data'].map(IncidentImageResource_1.IncidentImageResourceFromJSON)),
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function IncidentImageResourceArrayResponseToJSON(json) {
|
|
40
|
-
return IncidentImageResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
function IncidentImageResourceArrayResponseToJSONTyped(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(IncidentImageResource_1.IncidentImageResourceToJSON)),
|
|
49
|
-
};
|
|
50
|
-
}
|