@digital8/security-registers-backend-ts-sdk 0.0.516 → 0.0.518
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 -2
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +3 -3
- package/dist/apis/GeneralApi.js +1 -1
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +3 -1
- package/dist/models/IncidentsEligibleOwnersRequest.d.ts +1 -1
- package/dist/models/RegisterListResource.d.ts +1 -1
- package/dist/models/RegisterListResource.js +1 -3
- package/dist/models/RegisterResource.d.ts +1 -1
- package/dist/models/RegisterResource.js +3 -1
- package/dist/models/index.d.ts +0 -2
- package/dist/models/index.js +0 -2
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +3 -6
- package/src/models/AddressResource.ts +3 -2
- package/src/models/IncidentsEligibleOwnersRequest.ts +1 -1
- package/src/models/RegisterListResource.ts +2 -3
- package/src/models/RegisterResource.ts +3 -2
- package/src/models/index.ts +0 -2
- package/dist/models/EligibleIncidentOwnerResource.d.ts +0 -62
- package/dist/models/EligibleIncidentOwnerResource.js +0 -71
- package/dist/models/EligibleIncidentOwnerResourceArrayResponse.d.ts +0 -33
- package/dist/models/EligibleIncidentOwnerResourceArrayResponse.js +0 -50
- package/src/models/EligibleIncidentOwnerResource.ts +0 -111
- package/src/models/EligibleIncidentOwnerResourceArrayResponse.ts +0 -73
package/.openapi-generator/FILES
CHANGED
|
@@ -25,8 +25,6 @@ src/models/BackAsset.ts
|
|
|
25
25
|
src/models/CurrentRegisterResource.ts
|
|
26
26
|
src/models/CurrentRegisterResourceArrayResponse.ts
|
|
27
27
|
src/models/DevicesRegisterRequest.ts
|
|
28
|
-
src/models/EligibleIncidentOwnerResource.ts
|
|
29
|
-
src/models/EligibleIncidentOwnerResourceArrayResponse.ts
|
|
30
28
|
src/models/ExportQueuedResource.ts
|
|
31
29
|
src/models/ExportQueuedResourceArrayResponse.ts
|
|
32
30
|
src/models/FirstAidAsset.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @digital8/security-registers-backend-ts-sdk@0.0.
|
|
1
|
+
## @digital8/security-registers-backend-ts-sdk@0.0.518
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @digital8/security-registers-backend-ts-sdk@0.0.
|
|
39
|
+
npm install @digital8/security-registers-backend-ts-sdk@0.0.518 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AssetFileForUploadResource, AuthChangePasswordRequest, AuthLoginWebRequest, AuthProfileUpdateRequest, AuthRegisterGuardFileRequest, AuthRegisterGuardRequest, DevicesRegisterRequest,
|
|
13
|
+
import type { AssetFileForUploadResource, AuthChangePasswordRequest, AuthLoginWebRequest, AuthProfileUpdateRequest, AuthRegisterGuardFileRequest, AuthRegisterGuardRequest, DevicesRegisterRequest, ExportQueuedResource, GenericResponse, IncidentFieldSchemaResource, IncidentFieldSchemasShowRequest, IncidentResource, IncidentVersionResource, IncidentVersionResourceArrayResponse, IncidentVideoResource, IncidentVideoResourceArrayResponse, IncidentVideoSignedUrlResource, IncidentVideoUploadTokenResource, IncidentsApproveRequest, IncidentsEligibleOwnersRequest, IncidentsExportCsvBulkRequest, IncidentsExportPdfBulkRequest, IncidentsExportPdfRequest, IncidentsListRequest, IncidentsStoreRequest, IncidentsUpdateRequest, IncidentsVideosStoreRequest, IncidentsVideosUploadTokenRequest, IndexMinimalUserRequest, IndexUserRequest, LicenceLiteResourceArrayResponse, LicenceResource, LicenceVerificationFallbackSettingResourceArrayResponse, LicencesCheckLogsListRequest, LicencesListAllRequest, LicencesListRequest, LicencesStoreRequest, LicencesUpdateRequest, LicencesVerifyRequest, MobileAppConfigRequest, MobileAppConfigResource, MobileDeviceResource, MobileInitResource, NotificationPreferenceResource, NotificationPreferenceResourceArrayResponse, NotificationPreferencesBulkRequest, NotificationPreferencesStoreRequest, NotificationTypeResourceArrayResponse, PaginatedIncidentListResourceResponse, PaginatedLicenceCheckLogResourceResponse, PaginatedLicenceListResourceResponse, PaginatedRegisterGroupedByRosterResourceResponse, PaginatedRosterListResourceResponse, PaginatedRosterWithRegistersResourceResponse, PaginatedSecurityCompanyResourceResponse, PaginatedUserResourceResponse, PaginatedVenueResourceResponse, PdfExportResource, RegisterLiteResourceArrayResponse, RegisterResource, RegistersCreateRequest, RegistersListAllRequest, RegistersListRequest, RegistersSignOffRequest, RegistersSignOnRequest, RegistersUpdateRequest, ResetPasswordAuthRequest, RosterLiteResourceArrayResponse, RosterResource, RostersExportPdfRequest, RostersListAllRequest, RostersListRequest, RostersListWithRegistersRequest, RostersUpdateRequest, SecurityCompaniesAttachUsersRequest, SecurityCompaniesListAllRequest, SecurityCompaniesListRequest, SecurityCompaniesStoreRequest, SecurityCompaniesUpdateRequest, SecurityCompanyLiteResourceArrayResponse, SecurityCompanyResource, SendForgotPasswordLinkAuthRequest, SettingsLicenceVerificationFallbackUpdateRequest, StoreAssetFileRequest, StoreUserRequest, UpdateUserRequest, UserAuthTokenResource, UserLiteResourceArrayResponse, UserResource, UserVenueResourceArrayResponse, UsersAttachSecurityCompaniesRequest, UsersAttachVenuesRequest, UsersCreateWithRoleRequest, UsersDetachVenuesRequest, UsersRegisterVenueManagerRequest, VenueGuardScheduleResourceArrayResponse, VenueLiteResourceArrayResponse, VenueResource, VenuesAttachUsersRequest, VenuesGuardScheduleUpdateRequest, VenuesListAllRequest, VenuesListForUserRequest, VenuesListRequest, VenuesNearbyRequest, VenuesPublicStoreRequest, VenuesUpdateRequest, VerifyLicenceResource } from '../models/index';
|
|
14
14
|
export interface AuthChangePasswordOperationRequest {
|
|
15
15
|
authChangePasswordRequest?: AuthChangePasswordRequest;
|
|
16
16
|
}
|
|
@@ -458,11 +458,11 @@ export declare class GeneralApi extends runtime.BaseAPI {
|
|
|
458
458
|
/**
|
|
459
459
|
* Auto-generated: incidents.eligibleOwners
|
|
460
460
|
*/
|
|
461
|
-
incidentsEligibleOwnersRaw(requestParameters: IncidentsEligibleOwnersOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
461
|
+
incidentsEligibleOwnersRaw(requestParameters: IncidentsEligibleOwnersOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserLiteResourceArrayResponse>>;
|
|
462
462
|
/**
|
|
463
463
|
* Auto-generated: incidents.eligibleOwners
|
|
464
464
|
*/
|
|
465
|
-
incidentsEligibleOwners(requestParameters?: IncidentsEligibleOwnersOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
465
|
+
incidentsEligibleOwners(requestParameters?: IncidentsEligibleOwnersOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserLiteResourceArrayResponse>;
|
|
466
466
|
/**
|
|
467
467
|
* Auto-generated: incidents.exportCsv
|
|
468
468
|
*/
|
package/dist/apis/GeneralApi.js
CHANGED
|
@@ -825,7 +825,7 @@ var GeneralApi = /** @class */ (function (_super) {
|
|
|
825
825
|
}, initOverrides)];
|
|
826
826
|
case 3:
|
|
827
827
|
response = _a.sent();
|
|
828
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.
|
|
828
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.UserLiteResourceArrayResponseFromJSON)(jsonValue); })];
|
|
829
829
|
}
|
|
830
830
|
});
|
|
831
831
|
});
|
|
@@ -24,6 +24,8 @@ exports.AddressResourceToJSONTyped = AddressResourceToJSONTyped;
|
|
|
24
24
|
function instanceOfAddressResource(value) {
|
|
25
25
|
if (!('addressLine1' in value) || value['addressLine1'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
+
if (!('addressLine2' in value) || value['addressLine2'] === undefined)
|
|
28
|
+
return false;
|
|
27
29
|
if (!('suburb' in value) || value['suburb'] === undefined)
|
|
28
30
|
return false;
|
|
29
31
|
if (!('city' in value) || value['city'] === undefined)
|
|
@@ -48,7 +50,7 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
50
|
return {
|
|
49
51
|
'id': json['id'] == null ? undefined : json['id'],
|
|
50
52
|
'addressLine1': json['addressLine1'],
|
|
51
|
-
'addressLine2': json['addressLine2']
|
|
53
|
+
'addressLine2': json['addressLine2'],
|
|
52
54
|
'suburb': json['suburb'],
|
|
53
55
|
'city': json['city'],
|
|
54
56
|
'state': json['state'],
|
|
@@ -22,7 +22,7 @@ export interface IncidentsEligibleOwnersRequest {
|
|
|
22
22
|
*/
|
|
23
23
|
venueId: number;
|
|
24
24
|
/**
|
|
25
|
-
* Optional incident start datetime (ISO-8601, in the venue's timezone). Used to decide guard eligibility ("signed on at this venue OR not signed on at any other venue at that time")
|
|
25
|
+
* Optional incident start datetime (ISO-8601, in the venue's timezone). Used to decide guard eligibility ("signed on at this venue OR not signed on at any other venue at that time"). Omit to fall back to the current server time.
|
|
26
26
|
* @type {Date}
|
|
27
27
|
* @memberof IncidentsEligibleOwnersRequest
|
|
28
28
|
*/
|
|
@@ -67,8 +67,6 @@ function instanceOfRegisterListResource(value) {
|
|
|
67
67
|
return false;
|
|
68
68
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined)
|
|
69
69
|
return false;
|
|
70
|
-
if (!('signOffLat' in value) || value['signOffLat'] === undefined)
|
|
71
|
-
return false;
|
|
72
70
|
if (!('signOffLong' in value) || value['signOffLong'] === undefined)
|
|
73
71
|
return false;
|
|
74
72
|
if (!('hasIncidents' in value) || value['hasIncidents'] === undefined)
|
|
@@ -104,7 +102,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
104
102
|
'firstAid': json['firstAid'],
|
|
105
103
|
'signOnLat': json['signOnLat'],
|
|
106
104
|
'signOnLong': json['signOnLong'],
|
|
107
|
-
'signOffLat': json['signOffLat'],
|
|
105
|
+
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
108
106
|
'signOffLong': json['signOffLong'],
|
|
109
107
|
'hasIncidents': json['hasIncidents'],
|
|
110
108
|
};
|
|
@@ -65,6 +65,8 @@ function instanceOfRegisterResource(value) {
|
|
|
65
65
|
return false;
|
|
66
66
|
if (!('licenceLastName' in value) || value['licenceLastName'] === undefined)
|
|
67
67
|
return false;
|
|
68
|
+
if (!('badgeNumber' in value) || value['badgeNumber'] === undefined)
|
|
69
|
+
return false;
|
|
68
70
|
return true;
|
|
69
71
|
}
|
|
70
72
|
function RegisterResourceFromJSON(json) {
|
|
@@ -95,7 +97,7 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
95
97
|
'licenceExpiry': json['licenceExpiry'],
|
|
96
98
|
'licenceFirstName': json['licenceFirstName'],
|
|
97
99
|
'licenceLastName': json['licenceLastName'],
|
|
98
|
-
'badgeNumber': json['badgeNumber']
|
|
100
|
+
'badgeNumber': json['badgeNumber'],
|
|
99
101
|
'rampReadAt': json['rampReadAt'] == null ? undefined : (new Date(json['rampReadAt'])),
|
|
100
102
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
101
103
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
package/dist/models/index.d.ts
CHANGED
|
@@ -17,8 +17,6 @@ export * from './BackAsset';
|
|
|
17
17
|
export * from './CurrentRegisterResource';
|
|
18
18
|
export * from './CurrentRegisterResourceArrayResponse';
|
|
19
19
|
export * from './DevicesRegisterRequest';
|
|
20
|
-
export * from './EligibleIncidentOwnerResource';
|
|
21
|
-
export * from './EligibleIncidentOwnerResourceArrayResponse';
|
|
22
20
|
export * from './ExportQueuedResource';
|
|
23
21
|
export * from './ExportQueuedResourceArrayResponse';
|
|
24
22
|
export * from './FirstAidAsset';
|
package/dist/models/index.js
CHANGED
|
@@ -35,8 +35,6 @@ __exportStar(require("./BackAsset"), exports);
|
|
|
35
35
|
__exportStar(require("./CurrentRegisterResource"), exports);
|
|
36
36
|
__exportStar(require("./CurrentRegisterResourceArrayResponse"), exports);
|
|
37
37
|
__exportStar(require("./DevicesRegisterRequest"), exports);
|
|
38
|
-
__exportStar(require("./EligibleIncidentOwnerResource"), exports);
|
|
39
|
-
__exportStar(require("./EligibleIncidentOwnerResourceArrayResponse"), exports);
|
|
40
38
|
__exportStar(require("./ExportQueuedResource"), exports);
|
|
41
39
|
__exportStar(require("./ExportQueuedResourceArrayResponse"), exports);
|
|
42
40
|
__exportStar(require("./FirstAidAsset"), exports);
|
package/package.json
CHANGED
package/src/apis/GeneralApi.ts
CHANGED
|
@@ -22,7 +22,6 @@ import type {
|
|
|
22
22
|
AuthRegisterGuardFileRequest,
|
|
23
23
|
AuthRegisterGuardRequest,
|
|
24
24
|
DevicesRegisterRequest,
|
|
25
|
-
EligibleIncidentOwnerResourceArrayResponse,
|
|
26
25
|
ExportQueuedResource,
|
|
27
26
|
GenericResponse,
|
|
28
27
|
IncidentFieldSchemaResource,
|
|
@@ -139,8 +138,6 @@ import {
|
|
|
139
138
|
AuthRegisterGuardRequestToJSON,
|
|
140
139
|
DevicesRegisterRequestFromJSON,
|
|
141
140
|
DevicesRegisterRequestToJSON,
|
|
142
|
-
EligibleIncidentOwnerResourceArrayResponseFromJSON,
|
|
143
|
-
EligibleIncidentOwnerResourceArrayResponseToJSON,
|
|
144
141
|
ExportQueuedResourceFromJSON,
|
|
145
142
|
ExportQueuedResourceToJSON,
|
|
146
143
|
GenericResponseFromJSON,
|
|
@@ -1330,7 +1327,7 @@ export class GeneralApi extends runtime.BaseAPI {
|
|
|
1330
1327
|
/**
|
|
1331
1328
|
* Auto-generated: incidents.eligibleOwners
|
|
1332
1329
|
*/
|
|
1333
|
-
async incidentsEligibleOwnersRaw(requestParameters: IncidentsEligibleOwnersOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
1330
|
+
async incidentsEligibleOwnersRaw(requestParameters: IncidentsEligibleOwnersOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserLiteResourceArrayResponse>> {
|
|
1334
1331
|
const queryParameters: any = {};
|
|
1335
1332
|
|
|
1336
1333
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
@@ -1356,13 +1353,13 @@ export class GeneralApi extends runtime.BaseAPI {
|
|
|
1356
1353
|
body: IncidentsEligibleOwnersRequestToJSON(requestParameters['incidentsEligibleOwnersRequest']),
|
|
1357
1354
|
}, initOverrides);
|
|
1358
1355
|
|
|
1359
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
1356
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => UserLiteResourceArrayResponseFromJSON(jsonValue));
|
|
1360
1357
|
}
|
|
1361
1358
|
|
|
1362
1359
|
/**
|
|
1363
1360
|
* Auto-generated: incidents.eligibleOwners
|
|
1364
1361
|
*/
|
|
1365
|
-
async incidentsEligibleOwners(requestParameters: IncidentsEligibleOwnersOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
1362
|
+
async incidentsEligibleOwners(requestParameters: IncidentsEligibleOwnersOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserLiteResourceArrayResponse> {
|
|
1366
1363
|
const response = await this.incidentsEligibleOwnersRaw(requestParameters, initOverrides);
|
|
1367
1364
|
return await response.value();
|
|
1368
1365
|
}
|
|
@@ -36,7 +36,7 @@ export interface AddressResource {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof AddressResource
|
|
38
38
|
*/
|
|
39
|
-
addressLine2
|
|
39
|
+
addressLine2: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
@@ -80,6 +80,7 @@ export interface AddressResource {
|
|
|
80
80
|
*/
|
|
81
81
|
export function instanceOfAddressResource(value: object): value is AddressResource {
|
|
82
82
|
if (!('addressLine1' in value) || value['addressLine1'] === undefined) return false;
|
|
83
|
+
if (!('addressLine2' in value) || value['addressLine2'] === undefined) return false;
|
|
83
84
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
84
85
|
if (!('city' in value) || value['city'] === undefined) return false;
|
|
85
86
|
if (!('state' in value) || value['state'] === undefined) return false;
|
|
@@ -101,7 +102,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
101
102
|
|
|
102
103
|
'id': json['id'] == null ? undefined : json['id'],
|
|
103
104
|
'addressLine1': json['addressLine1'],
|
|
104
|
-
'addressLine2': json['addressLine2']
|
|
105
|
+
'addressLine2': json['addressLine2'],
|
|
105
106
|
'suburb': json['suburb'],
|
|
106
107
|
'city': json['city'],
|
|
107
108
|
'state': json['state'],
|
|
@@ -26,7 +26,7 @@ export interface IncidentsEligibleOwnersRequest {
|
|
|
26
26
|
*/
|
|
27
27
|
venueId: number;
|
|
28
28
|
/**
|
|
29
|
-
* Optional incident start datetime (ISO-8601, in the venue's timezone). Used to decide guard eligibility ("signed on at this venue OR not signed on at any other venue at that time")
|
|
29
|
+
* Optional incident start datetime (ISO-8601, in the venue's timezone). Used to decide guard eligibility ("signed on at this venue OR not signed on at any other venue at that time"). Omit to fall back to the current server time.
|
|
30
30
|
* @type {Date}
|
|
31
31
|
* @memberof IncidentsEligibleOwnersRequest
|
|
32
32
|
*/
|
|
@@ -165,7 +165,7 @@ export interface RegisterListResource {
|
|
|
165
165
|
* @type {number}
|
|
166
166
|
* @memberof RegisterListResource
|
|
167
167
|
*/
|
|
168
|
-
signOffLat
|
|
168
|
+
signOffLat?: number | null;
|
|
169
169
|
/**
|
|
170
170
|
*
|
|
171
171
|
* @type {number}
|
|
@@ -213,7 +213,6 @@ export function instanceOfRegisterListResource(value: object): value is Register
|
|
|
213
213
|
if (!('firstAid' in value) || value['firstAid'] === undefined) return false;
|
|
214
214
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
215
215
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
216
|
-
if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
|
|
217
216
|
if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
|
|
218
217
|
if (!('hasIncidents' in value) || value['hasIncidents'] === undefined) return false;
|
|
219
218
|
return true;
|
|
@@ -250,7 +249,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
250
249
|
'firstAid': json['firstAid'],
|
|
251
250
|
'signOnLat': json['signOnLat'],
|
|
252
251
|
'signOnLong': json['signOnLong'],
|
|
253
|
-
'signOffLat': json['signOffLat'],
|
|
252
|
+
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
254
253
|
'signOffLong': json['signOffLong'],
|
|
255
254
|
'hasIncidents': json['hasIncidents'],
|
|
256
255
|
};
|
|
@@ -159,7 +159,7 @@ export interface RegisterResource {
|
|
|
159
159
|
* @type {string}
|
|
160
160
|
* @memberof RegisterResource
|
|
161
161
|
*/
|
|
162
|
-
badgeNumber
|
|
162
|
+
badgeNumber: string;
|
|
163
163
|
/**
|
|
164
164
|
*
|
|
165
165
|
* @type {Date}
|
|
@@ -212,6 +212,7 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
|
|
|
212
212
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
|
|
213
213
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
|
|
214
214
|
if (!('licenceLastName' in value) || value['licenceLastName'] === undefined) return false;
|
|
215
|
+
if (!('badgeNumber' in value) || value['badgeNumber'] === undefined) return false;
|
|
215
216
|
return true;
|
|
216
217
|
}
|
|
217
218
|
|
|
@@ -245,7 +246,7 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
245
246
|
'licenceExpiry': json['licenceExpiry'],
|
|
246
247
|
'licenceFirstName': json['licenceFirstName'],
|
|
247
248
|
'licenceLastName': json['licenceLastName'],
|
|
248
|
-
'badgeNumber': json['badgeNumber']
|
|
249
|
+
'badgeNumber': json['badgeNumber'],
|
|
249
250
|
'rampReadAt': json['rampReadAt'] == null ? undefined : (new Date(json['rampReadAt'])),
|
|
250
251
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
251
252
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
package/src/models/index.ts
CHANGED
|
@@ -19,8 +19,6 @@ export * from './BackAsset';
|
|
|
19
19
|
export * from './CurrentRegisterResource';
|
|
20
20
|
export * from './CurrentRegisterResourceArrayResponse';
|
|
21
21
|
export * from './DevicesRegisterRequest';
|
|
22
|
-
export * from './EligibleIncidentOwnerResource';
|
|
23
|
-
export * from './EligibleIncidentOwnerResourceArrayResponse';
|
|
24
22
|
export * from './ExportQueuedResource';
|
|
25
23
|
export * from './ExportQueuedResourceArrayResponse';
|
|
26
24
|
export * from './FirstAidAsset';
|
|
@@ -1,62 +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 EligibleIncidentOwnerResource
|
|
16
|
-
*/
|
|
17
|
-
export interface EligibleIncidentOwnerResource {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof EligibleIncidentOwnerResource
|
|
22
|
-
*/
|
|
23
|
-
id: number;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof EligibleIncidentOwnerResource
|
|
28
|
-
*/
|
|
29
|
-
firstName: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof EligibleIncidentOwnerResource
|
|
34
|
-
*/
|
|
35
|
-
lastName: string;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof EligibleIncidentOwnerResource
|
|
40
|
-
*/
|
|
41
|
-
fullName: string;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof EligibleIncidentOwnerResource
|
|
46
|
-
*/
|
|
47
|
-
role: string;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {boolean}
|
|
51
|
-
* @memberof EligibleIncidentOwnerResource
|
|
52
|
-
*/
|
|
53
|
-
activeRegisterAtIncidentDatetime: boolean;
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Check if a given object implements the EligibleIncidentOwnerResource interface.
|
|
57
|
-
*/
|
|
58
|
-
export declare function instanceOfEligibleIncidentOwnerResource(value: object): value is EligibleIncidentOwnerResource;
|
|
59
|
-
export declare function EligibleIncidentOwnerResourceFromJSON(json: any): EligibleIncidentOwnerResource;
|
|
60
|
-
export declare function EligibleIncidentOwnerResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): EligibleIncidentOwnerResource;
|
|
61
|
-
export declare function EligibleIncidentOwnerResourceToJSON(json: any): EligibleIncidentOwnerResource;
|
|
62
|
-
export declare function EligibleIncidentOwnerResourceToJSONTyped(value?: EligibleIncidentOwnerResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,71 +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.instanceOfEligibleIncidentOwnerResource = instanceOfEligibleIncidentOwnerResource;
|
|
17
|
-
exports.EligibleIncidentOwnerResourceFromJSON = EligibleIncidentOwnerResourceFromJSON;
|
|
18
|
-
exports.EligibleIncidentOwnerResourceFromJSONTyped = EligibleIncidentOwnerResourceFromJSONTyped;
|
|
19
|
-
exports.EligibleIncidentOwnerResourceToJSON = EligibleIncidentOwnerResourceToJSON;
|
|
20
|
-
exports.EligibleIncidentOwnerResourceToJSONTyped = EligibleIncidentOwnerResourceToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the EligibleIncidentOwnerResource interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfEligibleIncidentOwnerResource(value) {
|
|
25
|
-
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
if (!('firstName' in value) || value['firstName'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
if (!('lastName' in value) || value['lastName'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
if (!('fullName' in value) || value['fullName'] === undefined)
|
|
32
|
-
return false;
|
|
33
|
-
if (!('role' in value) || value['role'] === undefined)
|
|
34
|
-
return false;
|
|
35
|
-
if (!('activeRegisterAtIncidentDatetime' in value) || value['activeRegisterAtIncidentDatetime'] === undefined)
|
|
36
|
-
return false;
|
|
37
|
-
return true;
|
|
38
|
-
}
|
|
39
|
-
function EligibleIncidentOwnerResourceFromJSON(json) {
|
|
40
|
-
return EligibleIncidentOwnerResourceFromJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
function EligibleIncidentOwnerResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
-
if (json == null) {
|
|
44
|
-
return json;
|
|
45
|
-
}
|
|
46
|
-
return {
|
|
47
|
-
'id': json['id'],
|
|
48
|
-
'firstName': json['firstName'],
|
|
49
|
-
'lastName': json['lastName'],
|
|
50
|
-
'fullName': json['fullName'],
|
|
51
|
-
'role': json['role'],
|
|
52
|
-
'activeRegisterAtIncidentDatetime': json['activeRegisterAtIncidentDatetime'],
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
function EligibleIncidentOwnerResourceToJSON(json) {
|
|
56
|
-
return EligibleIncidentOwnerResourceToJSONTyped(json, false);
|
|
57
|
-
}
|
|
58
|
-
function EligibleIncidentOwnerResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
59
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
60
|
-
if (value == null) {
|
|
61
|
-
return value;
|
|
62
|
-
}
|
|
63
|
-
return {
|
|
64
|
-
'id': value['id'],
|
|
65
|
-
'firstName': value['firstName'],
|
|
66
|
-
'lastName': value['lastName'],
|
|
67
|
-
'fullName': value['fullName'],
|
|
68
|
-
'role': value['role'],
|
|
69
|
-
'activeRegisterAtIncidentDatetime': value['activeRegisterAtIncidentDatetime'],
|
|
70
|
-
};
|
|
71
|
-
}
|
|
@@ -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 { EligibleIncidentOwnerResource } from './EligibleIncidentOwnerResource';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface EligibleIncidentOwnerResourceArrayResponse
|
|
17
|
-
*/
|
|
18
|
-
export interface EligibleIncidentOwnerResourceArrayResponse {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<EligibleIncidentOwnerResource>}
|
|
22
|
-
* @memberof EligibleIncidentOwnerResourceArrayResponse
|
|
23
|
-
*/
|
|
24
|
-
data?: Array<EligibleIncidentOwnerResource>;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the EligibleIncidentOwnerResourceArrayResponse interface.
|
|
28
|
-
*/
|
|
29
|
-
export declare function instanceOfEligibleIncidentOwnerResourceArrayResponse(value: object): value is EligibleIncidentOwnerResourceArrayResponse;
|
|
30
|
-
export declare function EligibleIncidentOwnerResourceArrayResponseFromJSON(json: any): EligibleIncidentOwnerResourceArrayResponse;
|
|
31
|
-
export declare function EligibleIncidentOwnerResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): EligibleIncidentOwnerResourceArrayResponse;
|
|
32
|
-
export declare function EligibleIncidentOwnerResourceArrayResponseToJSON(json: any): EligibleIncidentOwnerResourceArrayResponse;
|
|
33
|
-
export declare function EligibleIncidentOwnerResourceArrayResponseToJSONTyped(value?: EligibleIncidentOwnerResourceArrayResponse | 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.instanceOfEligibleIncidentOwnerResourceArrayResponse = instanceOfEligibleIncidentOwnerResourceArrayResponse;
|
|
17
|
-
exports.EligibleIncidentOwnerResourceArrayResponseFromJSON = EligibleIncidentOwnerResourceArrayResponseFromJSON;
|
|
18
|
-
exports.EligibleIncidentOwnerResourceArrayResponseFromJSONTyped = EligibleIncidentOwnerResourceArrayResponseFromJSONTyped;
|
|
19
|
-
exports.EligibleIncidentOwnerResourceArrayResponseToJSON = EligibleIncidentOwnerResourceArrayResponseToJSON;
|
|
20
|
-
exports.EligibleIncidentOwnerResourceArrayResponseToJSONTyped = EligibleIncidentOwnerResourceArrayResponseToJSONTyped;
|
|
21
|
-
var EligibleIncidentOwnerResource_1 = require("./EligibleIncidentOwnerResource");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the EligibleIncidentOwnerResourceArrayResponse interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfEligibleIncidentOwnerResourceArrayResponse(value) {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
function EligibleIncidentOwnerResourceArrayResponseFromJSON(json) {
|
|
29
|
-
return EligibleIncidentOwnerResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
function EligibleIncidentOwnerResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (json == null) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'data': json['data'] == null ? undefined : (json['data'].map(EligibleIncidentOwnerResource_1.EligibleIncidentOwnerResourceFromJSON)),
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function EligibleIncidentOwnerResourceArrayResponseToJSON(json) {
|
|
40
|
-
return EligibleIncidentOwnerResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
function EligibleIncidentOwnerResourceArrayResponseToJSONTyped(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(EligibleIncidentOwnerResource_1.EligibleIncidentOwnerResourceToJSON)),
|
|
49
|
-
};
|
|
50
|
-
}
|
|
@@ -1,111 +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 EligibleIncidentOwnerResource
|
|
20
|
-
*/
|
|
21
|
-
export interface EligibleIncidentOwnerResource {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {number}
|
|
25
|
-
* @memberof EligibleIncidentOwnerResource
|
|
26
|
-
*/
|
|
27
|
-
id: number;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof EligibleIncidentOwnerResource
|
|
32
|
-
*/
|
|
33
|
-
firstName: string;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof EligibleIncidentOwnerResource
|
|
38
|
-
*/
|
|
39
|
-
lastName: string;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof EligibleIncidentOwnerResource
|
|
44
|
-
*/
|
|
45
|
-
fullName: string;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {string}
|
|
49
|
-
* @memberof EligibleIncidentOwnerResource
|
|
50
|
-
*/
|
|
51
|
-
role: string;
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {boolean}
|
|
55
|
-
* @memberof EligibleIncidentOwnerResource
|
|
56
|
-
*/
|
|
57
|
-
activeRegisterAtIncidentDatetime: boolean;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* Check if a given object implements the EligibleIncidentOwnerResource interface.
|
|
62
|
-
*/
|
|
63
|
-
export function instanceOfEligibleIncidentOwnerResource(value: object): value is EligibleIncidentOwnerResource {
|
|
64
|
-
if (!('id' in value) || value['id'] === undefined) return false;
|
|
65
|
-
if (!('firstName' in value) || value['firstName'] === undefined) return false;
|
|
66
|
-
if (!('lastName' in value) || value['lastName'] === undefined) return false;
|
|
67
|
-
if (!('fullName' in value) || value['fullName'] === undefined) return false;
|
|
68
|
-
if (!('role' in value) || value['role'] === undefined) return false;
|
|
69
|
-
if (!('activeRegisterAtIncidentDatetime' in value) || value['activeRegisterAtIncidentDatetime'] === undefined) return false;
|
|
70
|
-
return true;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export function EligibleIncidentOwnerResourceFromJSON(json: any): EligibleIncidentOwnerResource {
|
|
74
|
-
return EligibleIncidentOwnerResourceFromJSONTyped(json, false);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export function EligibleIncidentOwnerResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): EligibleIncidentOwnerResource {
|
|
78
|
-
if (json == null) {
|
|
79
|
-
return json;
|
|
80
|
-
}
|
|
81
|
-
return {
|
|
82
|
-
|
|
83
|
-
'id': json['id'],
|
|
84
|
-
'firstName': json['firstName'],
|
|
85
|
-
'lastName': json['lastName'],
|
|
86
|
-
'fullName': json['fullName'],
|
|
87
|
-
'role': json['role'],
|
|
88
|
-
'activeRegisterAtIncidentDatetime': json['activeRegisterAtIncidentDatetime'],
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export function EligibleIncidentOwnerResourceToJSON(json: any): EligibleIncidentOwnerResource {
|
|
93
|
-
return EligibleIncidentOwnerResourceToJSONTyped(json, false);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
export function EligibleIncidentOwnerResourceToJSONTyped(value?: EligibleIncidentOwnerResource | null, ignoreDiscriminator: boolean = false): any {
|
|
97
|
-
if (value == null) {
|
|
98
|
-
return value;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
return {
|
|
102
|
-
|
|
103
|
-
'id': value['id'],
|
|
104
|
-
'firstName': value['firstName'],
|
|
105
|
-
'lastName': value['lastName'],
|
|
106
|
-
'fullName': value['fullName'],
|
|
107
|
-
'role': value['role'],
|
|
108
|
-
'activeRegisterAtIncidentDatetime': value['activeRegisterAtIncidentDatetime'],
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
|
|
@@ -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 { EligibleIncidentOwnerResource } from './EligibleIncidentOwnerResource';
|
|
17
|
-
import {
|
|
18
|
-
EligibleIncidentOwnerResourceFromJSON,
|
|
19
|
-
EligibleIncidentOwnerResourceFromJSONTyped,
|
|
20
|
-
EligibleIncidentOwnerResourceToJSON,
|
|
21
|
-
EligibleIncidentOwnerResourceToJSONTyped,
|
|
22
|
-
} from './EligibleIncidentOwnerResource';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface EligibleIncidentOwnerResourceArrayResponse
|
|
28
|
-
*/
|
|
29
|
-
export interface EligibleIncidentOwnerResourceArrayResponse {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {Array<EligibleIncidentOwnerResource>}
|
|
33
|
-
* @memberof EligibleIncidentOwnerResourceArrayResponse
|
|
34
|
-
*/
|
|
35
|
-
data?: Array<EligibleIncidentOwnerResource>;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Check if a given object implements the EligibleIncidentOwnerResourceArrayResponse interface.
|
|
40
|
-
*/
|
|
41
|
-
export function instanceOfEligibleIncidentOwnerResourceArrayResponse(value: object): value is EligibleIncidentOwnerResourceArrayResponse {
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function EligibleIncidentOwnerResourceArrayResponseFromJSON(json: any): EligibleIncidentOwnerResourceArrayResponse {
|
|
46
|
-
return EligibleIncidentOwnerResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function EligibleIncidentOwnerResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): EligibleIncidentOwnerResourceArrayResponse {
|
|
50
|
-
if (json == null) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(EligibleIncidentOwnerResourceFromJSON)),
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function EligibleIncidentOwnerResourceArrayResponseToJSON(json: any): EligibleIncidentOwnerResourceArrayResponse {
|
|
60
|
-
return EligibleIncidentOwnerResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function EligibleIncidentOwnerResourceArrayResponseToJSONTyped(value?: EligibleIncidentOwnerResourceArrayResponse | 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(EligibleIncidentOwnerResourceToJSON)),
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
|