@digital8/security-registers-backend-ts-sdk 0.0.274 → 0.0.275
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 -1
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +1 -45
- package/dist/apis/GeneralApi.js +0 -223
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +1 -3
- package/dist/models/AssetResource.d.ts +1 -1
- package/dist/models/AssetResource.js +1 -3
- package/dist/models/RegisterListResource.d.ts +3 -3
- package/dist/models/RegisterListResource.js +4 -3
- package/dist/models/RegisterResource.d.ts +3 -3
- package/dist/models/RegisterResource.js +6 -4
- package/dist/models/RosterWithRegistersResource.d.ts +1 -1
- package/dist/models/RosterWithRegistersResource.js +4 -3
- package/dist/models/index.d.ts +0 -1
- package/dist/models/index.js +0 -1
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +0 -194
- package/src/models/AddressResource.ts +2 -3
- package/src/models/AssetResource.ts +2 -3
- package/src/models/RegisterListResource.ts +6 -5
- package/src/models/RegisterResource.ts +8 -7
- package/src/models/RosterWithRegistersResource.ts +4 -3
- package/src/models/index.ts +0 -1
- package/dist/models/IncidentsExportPdfBulkRequest.d.ts +0 -56
- package/dist/models/IncidentsExportPdfBulkRequest.js +0 -63
- package/src/models/IncidentsExportPdfBulkRequest.ts +0 -100
package/.openapi-generator/FILES
CHANGED
|
@@ -39,7 +39,6 @@ src/models/IncidentVideoSignedUrlResourceArrayResponse.ts
|
|
|
39
39
|
src/models/IncidentVideoUploadTokenResource.ts
|
|
40
40
|
src/models/IncidentVideoUploadTokenResourceArrayResponse.ts
|
|
41
41
|
src/models/IncidentsApproveRequest.ts
|
|
42
|
-
src/models/IncidentsExportPdfBulkRequest.ts
|
|
43
42
|
src/models/IncidentsStoreRequest.ts
|
|
44
43
|
src/models/IncidentsUpdateRequest.ts
|
|
45
44
|
src/models/IncidentsVideosStoreRequest.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.275
|
|
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.275 --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, GenericResponse, IncidentFieldSchemaResource, IncidentFieldSchemasShowRequest, IncidentResource, IncidentVersionResource, IncidentVersionResourceArrayResponse, IncidentVideoResource, IncidentVideoSignedUrlResource, IncidentVideoUploadTokenResource, IncidentsApproveRequest,
|
|
13
|
+
import type { AssetFileForUploadResource, GenericResponse, IncidentFieldSchemaResource, IncidentFieldSchemasShowRequest, IncidentResource, IncidentVersionResource, IncidentVersionResourceArrayResponse, IncidentVideoResource, IncidentVideoSignedUrlResource, IncidentVideoUploadTokenResource, IncidentsApproveRequest, IncidentsStoreRequest, IncidentsUpdateRequest, IncidentsVideosStoreRequest, IncidentsVideosUploadTokenRequest, IndexMinimalUserRequest, IndexUserRequest, LicenceLiteResourceArrayResponse, LicenceResource, LicencesListAllRequest, LicencesListRequest, LicencesStoreRequest, LicencesUpdateRequest, LicencesVerifyRequest, LoginAuthRequest, NotificationPreferenceResource, NotificationPreferenceResourceArrayResponse, NotificationPreferencesStoreRequest, NotificationTypeResourceArrayResponse, 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, StoreAssetFileRequest, StoreUserRequest, UpdateUserRequest, UserAuthTokenResource, UserLiteResourceArrayResponse, UserResource, UsersAttachSecurityCompaniesRequest, UsersAttachVenuesRequest, UsersCreateWithRoleRequest, UsersDetachVenuesRequest, UsersRegisterVenueManagerRequest, VenueLiteResourceArrayResponse, VenueResource, VenuesAttachUsersRequest, VenuesListAllRequest, VenuesListRequest, VenuesNearbyRequest, VenuesPublicStoreRequest, VenuesUpdateRequest, VerifyLicenceResource } from '../models/index';
|
|
14
14
|
export interface DestroyUserRequest {
|
|
15
15
|
user: number;
|
|
16
16
|
}
|
|
@@ -21,18 +21,6 @@ export interface IncidentsApproveOperationRequest {
|
|
|
21
21
|
incident: number;
|
|
22
22
|
incidentsApproveRequest?: IncidentsApproveRequest;
|
|
23
23
|
}
|
|
24
|
-
export interface IncidentsExportPdfRequest {
|
|
25
|
-
incident: number;
|
|
26
|
-
}
|
|
27
|
-
export interface IncidentsExportPdfBulkOperationRequest {
|
|
28
|
-
incidentsExportPdfBulkRequest?: IncidentsExportPdfBulkRequest;
|
|
29
|
-
}
|
|
30
|
-
export interface IncidentsExportPdfDownloadRequest {
|
|
31
|
-
pdfExport: number;
|
|
32
|
-
}
|
|
33
|
-
export interface IncidentsExportPdfStatusRequest {
|
|
34
|
-
pdfExport: number;
|
|
35
|
-
}
|
|
36
24
|
export interface IncidentsShowRequest {
|
|
37
25
|
incident: number;
|
|
38
26
|
}
|
|
@@ -300,38 +288,6 @@ export declare class GeneralApi extends runtime.BaseAPI {
|
|
|
300
288
|
* Auto-generated: incidents.approve
|
|
301
289
|
*/
|
|
302
290
|
incidentsApprove(requestParameters: IncidentsApproveOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IncidentResource>;
|
|
303
|
-
/**
|
|
304
|
-
* Auto-generated: incidents.exportPdf
|
|
305
|
-
*/
|
|
306
|
-
incidentsExportPdfRaw(requestParameters: IncidentsExportPdfRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>>;
|
|
307
|
-
/**
|
|
308
|
-
* Auto-generated: incidents.exportPdf
|
|
309
|
-
*/
|
|
310
|
-
incidentsExportPdf(requestParameters: IncidentsExportPdfRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse>;
|
|
311
|
-
/**
|
|
312
|
-
* Auto-generated: incidents.exportPdf.bulk
|
|
313
|
-
*/
|
|
314
|
-
incidentsExportPdfBulkRaw(requestParameters: IncidentsExportPdfBulkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>>;
|
|
315
|
-
/**
|
|
316
|
-
* Auto-generated: incidents.exportPdf.bulk
|
|
317
|
-
*/
|
|
318
|
-
incidentsExportPdfBulk(requestParameters?: IncidentsExportPdfBulkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse>;
|
|
319
|
-
/**
|
|
320
|
-
* Auto-generated: incidents.exportPdf.download
|
|
321
|
-
*/
|
|
322
|
-
incidentsExportPdfDownloadRaw(requestParameters: IncidentsExportPdfDownloadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
|
|
323
|
-
/**
|
|
324
|
-
* Auto-generated: incidents.exportPdf.download
|
|
325
|
-
*/
|
|
326
|
-
incidentsExportPdfDownload(requestParameters: IncidentsExportPdfDownloadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
327
|
-
/**
|
|
328
|
-
* Auto-generated: incidents.exportPdf.status
|
|
329
|
-
*/
|
|
330
|
-
incidentsExportPdfStatusRaw(requestParameters: IncidentsExportPdfStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PdfExportResource>>;
|
|
331
|
-
/**
|
|
332
|
-
* Auto-generated: incidents.exportPdf.status
|
|
333
|
-
*/
|
|
334
|
-
incidentsExportPdfStatus(requestParameters: IncidentsExportPdfStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PdfExportResource>;
|
|
335
291
|
/**
|
|
336
292
|
* Auto-generated: incidents.show
|
|
337
293
|
*/
|
package/dist/apis/GeneralApi.js
CHANGED
|
@@ -296,229 +296,6 @@ var GeneralApi = /** @class */ (function (_super) {
|
|
|
296
296
|
});
|
|
297
297
|
});
|
|
298
298
|
};
|
|
299
|
-
/**
|
|
300
|
-
* Auto-generated: incidents.exportPdf
|
|
301
|
-
*/
|
|
302
|
-
GeneralApi.prototype.incidentsExportPdfRaw = function (requestParameters, initOverrides) {
|
|
303
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
304
|
-
var queryParameters, headerParameters, token, tokenString, urlPath, response;
|
|
305
|
-
return __generator(this, function (_a) {
|
|
306
|
-
switch (_a.label) {
|
|
307
|
-
case 0:
|
|
308
|
-
if (requestParameters['incident'] == null) {
|
|
309
|
-
throw new runtime.RequiredError('incident', 'Required parameter "incident" was null or undefined when calling incidentsExportPdf().');
|
|
310
|
-
}
|
|
311
|
-
queryParameters = {};
|
|
312
|
-
headerParameters = {};
|
|
313
|
-
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
314
|
-
token = this.configuration.accessToken;
|
|
315
|
-
return [4 /*yield*/, token("bearerAuth", [])];
|
|
316
|
-
case 1:
|
|
317
|
-
tokenString = _a.sent();
|
|
318
|
-
if (tokenString) {
|
|
319
|
-
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
320
|
-
}
|
|
321
|
-
_a.label = 2;
|
|
322
|
-
case 2:
|
|
323
|
-
urlPath = "/api/incidents/{incident}/export-pdf";
|
|
324
|
-
urlPath = urlPath.replace("{".concat("incident", "}"), encodeURIComponent(String(requestParameters['incident'])));
|
|
325
|
-
return [4 /*yield*/, this.request({
|
|
326
|
-
path: urlPath,
|
|
327
|
-
method: 'POST',
|
|
328
|
-
headers: headerParameters,
|
|
329
|
-
query: queryParameters,
|
|
330
|
-
}, initOverrides)];
|
|
331
|
-
case 3:
|
|
332
|
-
response = _a.sent();
|
|
333
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GenericResponseFromJSON)(jsonValue); })];
|
|
334
|
-
}
|
|
335
|
-
});
|
|
336
|
-
});
|
|
337
|
-
};
|
|
338
|
-
/**
|
|
339
|
-
* Auto-generated: incidents.exportPdf
|
|
340
|
-
*/
|
|
341
|
-
GeneralApi.prototype.incidentsExportPdf = function (requestParameters, initOverrides) {
|
|
342
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
343
|
-
var response;
|
|
344
|
-
return __generator(this, function (_a) {
|
|
345
|
-
switch (_a.label) {
|
|
346
|
-
case 0: return [4 /*yield*/, this.incidentsExportPdfRaw(requestParameters, initOverrides)];
|
|
347
|
-
case 1:
|
|
348
|
-
response = _a.sent();
|
|
349
|
-
return [4 /*yield*/, response.value()];
|
|
350
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
351
|
-
}
|
|
352
|
-
});
|
|
353
|
-
});
|
|
354
|
-
};
|
|
355
|
-
/**
|
|
356
|
-
* Auto-generated: incidents.exportPdf.bulk
|
|
357
|
-
*/
|
|
358
|
-
GeneralApi.prototype.incidentsExportPdfBulkRaw = function (requestParameters, initOverrides) {
|
|
359
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
360
|
-
var queryParameters, headerParameters, token, tokenString, urlPath, response;
|
|
361
|
-
return __generator(this, function (_a) {
|
|
362
|
-
switch (_a.label) {
|
|
363
|
-
case 0:
|
|
364
|
-
queryParameters = {};
|
|
365
|
-
headerParameters = {};
|
|
366
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
367
|
-
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
368
|
-
token = this.configuration.accessToken;
|
|
369
|
-
return [4 /*yield*/, token("bearerAuth", [])];
|
|
370
|
-
case 1:
|
|
371
|
-
tokenString = _a.sent();
|
|
372
|
-
if (tokenString) {
|
|
373
|
-
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
374
|
-
}
|
|
375
|
-
_a.label = 2;
|
|
376
|
-
case 2:
|
|
377
|
-
urlPath = "/api/incidents/export-pdf/bulk";
|
|
378
|
-
return [4 /*yield*/, this.request({
|
|
379
|
-
path: urlPath,
|
|
380
|
-
method: 'POST',
|
|
381
|
-
headers: headerParameters,
|
|
382
|
-
query: queryParameters,
|
|
383
|
-
body: (0, index_1.IncidentsExportPdfBulkRequestToJSON)(requestParameters['incidentsExportPdfBulkRequest']),
|
|
384
|
-
}, initOverrides)];
|
|
385
|
-
case 3:
|
|
386
|
-
response = _a.sent();
|
|
387
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GenericResponseFromJSON)(jsonValue); })];
|
|
388
|
-
}
|
|
389
|
-
});
|
|
390
|
-
});
|
|
391
|
-
};
|
|
392
|
-
/**
|
|
393
|
-
* Auto-generated: incidents.exportPdf.bulk
|
|
394
|
-
*/
|
|
395
|
-
GeneralApi.prototype.incidentsExportPdfBulk = function () {
|
|
396
|
-
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
397
|
-
var response;
|
|
398
|
-
if (requestParameters === void 0) { requestParameters = {}; }
|
|
399
|
-
return __generator(this, function (_a) {
|
|
400
|
-
switch (_a.label) {
|
|
401
|
-
case 0: return [4 /*yield*/, this.incidentsExportPdfBulkRaw(requestParameters, initOverrides)];
|
|
402
|
-
case 1:
|
|
403
|
-
response = _a.sent();
|
|
404
|
-
return [4 /*yield*/, response.value()];
|
|
405
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
406
|
-
}
|
|
407
|
-
});
|
|
408
|
-
});
|
|
409
|
-
};
|
|
410
|
-
/**
|
|
411
|
-
* Auto-generated: incidents.exportPdf.download
|
|
412
|
-
*/
|
|
413
|
-
GeneralApi.prototype.incidentsExportPdfDownloadRaw = function (requestParameters, initOverrides) {
|
|
414
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
415
|
-
var queryParameters, headerParameters, token, tokenString, urlPath, response;
|
|
416
|
-
return __generator(this, function (_a) {
|
|
417
|
-
switch (_a.label) {
|
|
418
|
-
case 0:
|
|
419
|
-
if (requestParameters['pdfExport'] == null) {
|
|
420
|
-
throw new runtime.RequiredError('pdfExport', 'Required parameter "pdfExport" was null or undefined when calling incidentsExportPdfDownload().');
|
|
421
|
-
}
|
|
422
|
-
queryParameters = {};
|
|
423
|
-
headerParameters = {};
|
|
424
|
-
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
425
|
-
token = this.configuration.accessToken;
|
|
426
|
-
return [4 /*yield*/, token("bearerAuth", [])];
|
|
427
|
-
case 1:
|
|
428
|
-
tokenString = _a.sent();
|
|
429
|
-
if (tokenString) {
|
|
430
|
-
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
431
|
-
}
|
|
432
|
-
_a.label = 2;
|
|
433
|
-
case 2:
|
|
434
|
-
urlPath = "/api/incidents/export-pdf/{pdfExport}/download";
|
|
435
|
-
urlPath = urlPath.replace("{".concat("pdfExport", "}"), encodeURIComponent(String(requestParameters['pdfExport'])));
|
|
436
|
-
return [4 /*yield*/, this.request({
|
|
437
|
-
path: urlPath,
|
|
438
|
-
method: 'GET',
|
|
439
|
-
headers: headerParameters,
|
|
440
|
-
query: queryParameters,
|
|
441
|
-
}, initOverrides)];
|
|
442
|
-
case 3:
|
|
443
|
-
response = _a.sent();
|
|
444
|
-
return [2 /*return*/, new runtime.BlobApiResponse(response)];
|
|
445
|
-
}
|
|
446
|
-
});
|
|
447
|
-
});
|
|
448
|
-
};
|
|
449
|
-
/**
|
|
450
|
-
* Auto-generated: incidents.exportPdf.download
|
|
451
|
-
*/
|
|
452
|
-
GeneralApi.prototype.incidentsExportPdfDownload = function (requestParameters, initOverrides) {
|
|
453
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
454
|
-
var response;
|
|
455
|
-
return __generator(this, function (_a) {
|
|
456
|
-
switch (_a.label) {
|
|
457
|
-
case 0: return [4 /*yield*/, this.incidentsExportPdfDownloadRaw(requestParameters, initOverrides)];
|
|
458
|
-
case 1:
|
|
459
|
-
response = _a.sent();
|
|
460
|
-
return [4 /*yield*/, response.value()];
|
|
461
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
462
|
-
}
|
|
463
|
-
});
|
|
464
|
-
});
|
|
465
|
-
};
|
|
466
|
-
/**
|
|
467
|
-
* Auto-generated: incidents.exportPdf.status
|
|
468
|
-
*/
|
|
469
|
-
GeneralApi.prototype.incidentsExportPdfStatusRaw = function (requestParameters, initOverrides) {
|
|
470
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
471
|
-
var queryParameters, headerParameters, token, tokenString, urlPath, response;
|
|
472
|
-
return __generator(this, function (_a) {
|
|
473
|
-
switch (_a.label) {
|
|
474
|
-
case 0:
|
|
475
|
-
if (requestParameters['pdfExport'] == null) {
|
|
476
|
-
throw new runtime.RequiredError('pdfExport', 'Required parameter "pdfExport" was null or undefined when calling incidentsExportPdfStatus().');
|
|
477
|
-
}
|
|
478
|
-
queryParameters = {};
|
|
479
|
-
headerParameters = {};
|
|
480
|
-
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
481
|
-
token = this.configuration.accessToken;
|
|
482
|
-
return [4 /*yield*/, token("bearerAuth", [])];
|
|
483
|
-
case 1:
|
|
484
|
-
tokenString = _a.sent();
|
|
485
|
-
if (tokenString) {
|
|
486
|
-
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
487
|
-
}
|
|
488
|
-
_a.label = 2;
|
|
489
|
-
case 2:
|
|
490
|
-
urlPath = "/api/incidents/export-pdf/{pdfExport}/status";
|
|
491
|
-
urlPath = urlPath.replace("{".concat("pdfExport", "}"), encodeURIComponent(String(requestParameters['pdfExport'])));
|
|
492
|
-
return [4 /*yield*/, this.request({
|
|
493
|
-
path: urlPath,
|
|
494
|
-
method: 'POST',
|
|
495
|
-
headers: headerParameters,
|
|
496
|
-
query: queryParameters,
|
|
497
|
-
}, initOverrides)];
|
|
498
|
-
case 3:
|
|
499
|
-
response = _a.sent();
|
|
500
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PdfExportResourceFromJSON)(jsonValue); })];
|
|
501
|
-
}
|
|
502
|
-
});
|
|
503
|
-
});
|
|
504
|
-
};
|
|
505
|
-
/**
|
|
506
|
-
* Auto-generated: incidents.exportPdf.status
|
|
507
|
-
*/
|
|
508
|
-
GeneralApi.prototype.incidentsExportPdfStatus = function (requestParameters, initOverrides) {
|
|
509
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
510
|
-
var response;
|
|
511
|
-
return __generator(this, function (_a) {
|
|
512
|
-
switch (_a.label) {
|
|
513
|
-
case 0: return [4 /*yield*/, this.incidentsExportPdfStatusRaw(requestParameters, initOverrides)];
|
|
514
|
-
case 1:
|
|
515
|
-
response = _a.sent();
|
|
516
|
-
return [4 /*yield*/, response.value()];
|
|
517
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
518
|
-
}
|
|
519
|
-
});
|
|
520
|
-
});
|
|
521
|
-
};
|
|
522
299
|
/**
|
|
523
300
|
* Auto-generated: incidents.show
|
|
524
301
|
*/
|
|
@@ -24,8 +24,6 @@ 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;
|
|
29
27
|
if (!('suburb' in value) || value['suburb'] === undefined)
|
|
30
28
|
return false;
|
|
31
29
|
if (!('city' in value) || value['city'] === undefined)
|
|
@@ -50,7 +48,7 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
48
|
return {
|
|
51
49
|
'id': json['id'] == null ? undefined : json['id'],
|
|
52
50
|
'addressLine1': json['addressLine1'],
|
|
53
|
-
'addressLine2': json['addressLine2'],
|
|
51
|
+
'addressLine2': json['addressLine2'] == null ? undefined : json['addressLine2'],
|
|
54
52
|
'suburb': json['suburb'],
|
|
55
53
|
'city': json['city'],
|
|
56
54
|
'state': json['state'],
|
|
@@ -30,8 +30,6 @@ function instanceOfAssetResource(value) {
|
|
|
30
30
|
return false;
|
|
31
31
|
if (!('mimeType' in value) || value['mimeType'] === undefined)
|
|
32
32
|
return false;
|
|
33
|
-
if (!('altText' in value) || value['altText'] === undefined)
|
|
34
|
-
return false;
|
|
35
33
|
if (!('index' in value) || value['index'] === undefined)
|
|
36
34
|
return false;
|
|
37
35
|
if (!('fileId' in value) || value['fileId'] === undefined)
|
|
@@ -50,7 +48,7 @@ function AssetResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
48
|
'filePath': json['filePath'],
|
|
51
49
|
'fileName': json['fileName'],
|
|
52
50
|
'mimeType': json['mimeType'],
|
|
53
|
-
'altText': json['altText'],
|
|
51
|
+
'altText': json['altText'] == null ? undefined : json['altText'],
|
|
54
52
|
'index': json['index'],
|
|
55
53
|
'fileId': json['fileId'],
|
|
56
54
|
};
|
|
@@ -47,13 +47,13 @@ export interface RegisterListResource {
|
|
|
47
47
|
* @type {Date}
|
|
48
48
|
* @memberof RegisterListResource
|
|
49
49
|
*/
|
|
50
|
-
finishDateTime
|
|
50
|
+
finishDateTime: Date;
|
|
51
51
|
/**
|
|
52
52
|
*
|
|
53
|
-
* @type {
|
|
53
|
+
* @type {string}
|
|
54
54
|
* @memberof RegisterListResource
|
|
55
55
|
*/
|
|
56
|
-
shiftLength:
|
|
56
|
+
shiftLength: string;
|
|
57
57
|
/**
|
|
58
58
|
*
|
|
59
59
|
* @type {number}
|
|
@@ -31,6 +31,8 @@ function instanceOfRegisterListResource(value) {
|
|
|
31
31
|
return false;
|
|
32
32
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined)
|
|
33
33
|
return false;
|
|
34
|
+
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
|
|
35
|
+
return false;
|
|
34
36
|
if (!('shiftLength' in value) || value['shiftLength'] === undefined)
|
|
35
37
|
return false;
|
|
36
38
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined)
|
|
@@ -75,7 +77,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
75
77
|
'user': (0, UserLiteResource_1.UserLiteResourceFromJSON)(json['user']),
|
|
76
78
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
|
|
77
79
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
78
|
-
'finishDateTime':
|
|
80
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
79
81
|
'shiftLength': json['shiftLength'],
|
|
80
82
|
'signOffStatus': json['signOffStatus'],
|
|
81
83
|
'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
|
|
@@ -100,7 +102,6 @@ function RegisterListResourceToJSON(json) {
|
|
|
100
102
|
return RegisterListResourceToJSONTyped(json, false);
|
|
101
103
|
}
|
|
102
104
|
function RegisterListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
103
|
-
var _a;
|
|
104
105
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
105
106
|
if (value == null) {
|
|
106
107
|
return value;
|
|
@@ -110,7 +111,7 @@ function RegisterListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
110
111
|
'user': (0, UserLiteResource_1.UserLiteResourceToJSON)(value['user']),
|
|
111
112
|
'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
|
|
112
113
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
113
|
-
'finishDateTime':
|
|
114
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
114
115
|
'shiftLength': value['shiftLength'],
|
|
115
116
|
'signOffStatus': value['signOffStatus'],
|
|
116
117
|
'badgeNumber': value['badgeNumber'],
|
|
@@ -106,13 +106,13 @@ export interface RegisterResource {
|
|
|
106
106
|
* @type {number}
|
|
107
107
|
* @memberof RegisterResource
|
|
108
108
|
*/
|
|
109
|
-
signOffLat
|
|
109
|
+
signOffLat: number;
|
|
110
110
|
/**
|
|
111
111
|
*
|
|
112
112
|
* @type {number}
|
|
113
113
|
* @memberof RegisterResource
|
|
114
114
|
*/
|
|
115
|
-
signOffLong
|
|
115
|
+
signOffLong?: number | null;
|
|
116
116
|
/**
|
|
117
117
|
*
|
|
118
118
|
* @type {string}
|
|
@@ -142,7 +142,7 @@ export interface RegisterResource {
|
|
|
142
142
|
* @type {string}
|
|
143
143
|
* @memberof RegisterResource
|
|
144
144
|
*/
|
|
145
|
-
badgeNumber
|
|
145
|
+
badgeNumber: string;
|
|
146
146
|
/**
|
|
147
147
|
*
|
|
148
148
|
* @type {Date}
|
|
@@ -48,7 +48,7 @@ function instanceOfRegisterResource(value) {
|
|
|
48
48
|
return false;
|
|
49
49
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined)
|
|
50
50
|
return false;
|
|
51
|
-
if (!('
|
|
51
|
+
if (!('signOffLat' in value) || value['signOffLat'] === undefined)
|
|
52
52
|
return false;
|
|
53
53
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
|
|
54
54
|
return false;
|
|
@@ -58,6 +58,8 @@ function instanceOfRegisterResource(value) {
|
|
|
58
58
|
return false;
|
|
59
59
|
if (!('licenceLastName' in value) || value['licenceLastName'] === undefined)
|
|
60
60
|
return false;
|
|
61
|
+
if (!('badgeNumber' in value) || value['badgeNumber'] === undefined)
|
|
62
|
+
return false;
|
|
61
63
|
return true;
|
|
62
64
|
}
|
|
63
65
|
function RegisterResourceFromJSON(json) {
|
|
@@ -82,13 +84,13 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
82
84
|
'firstAidImage': json['firstAidImage'],
|
|
83
85
|
'signOnLat': json['signOnLat'],
|
|
84
86
|
'signOnLong': json['signOnLong'],
|
|
85
|
-
'signOffLat': json['signOffLat']
|
|
86
|
-
'signOffLong': json['signOffLong'],
|
|
87
|
+
'signOffLat': json['signOffLat'],
|
|
88
|
+
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
87
89
|
'licenceNumber': json['licenceNumber'],
|
|
88
90
|
'licenceExpiry': json['licenceExpiry'],
|
|
89
91
|
'licenceFirstName': json['licenceFirstName'],
|
|
90
92
|
'licenceLastName': json['licenceLastName'],
|
|
91
|
-
'badgeNumber': json['badgeNumber']
|
|
93
|
+
'badgeNumber': json['badgeNumber'],
|
|
92
94
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
93
95
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
94
96
|
};
|
|
@@ -33,6 +33,8 @@ function instanceOfRosterWithRegistersResource(value) {
|
|
|
33
33
|
return false;
|
|
34
34
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined)
|
|
35
35
|
return false;
|
|
36
|
+
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined)
|
|
37
|
+
return false;
|
|
36
38
|
if (!('isCompliant' in value) || value['isCompliant'] === undefined)
|
|
37
39
|
return false;
|
|
38
40
|
if (!('isComplete' in value) || value['isComplete'] === undefined)
|
|
@@ -56,7 +58,7 @@ function RosterWithRegistersResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
58
|
'state': json['state'],
|
|
57
59
|
'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceFromJSON)(json['securityCompany']),
|
|
58
60
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
59
|
-
'finishDateTime':
|
|
61
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
60
62
|
'isCompliant': json['isCompliant'],
|
|
61
63
|
'isComplete': json['isComplete'],
|
|
62
64
|
'signOffStatus': json['signOffStatus'],
|
|
@@ -67,7 +69,6 @@ function RosterWithRegistersResourceToJSON(json) {
|
|
|
67
69
|
return RosterWithRegistersResourceToJSONTyped(json, false);
|
|
68
70
|
}
|
|
69
71
|
function RosterWithRegistersResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
70
|
-
var _a;
|
|
71
72
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
72
73
|
if (value == null) {
|
|
73
74
|
return value;
|
|
@@ -78,7 +79,7 @@ function RosterWithRegistersResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
78
79
|
'state': value['state'],
|
|
79
80
|
'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceToJSON)(value['securityCompany']),
|
|
80
81
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
81
|
-
'finishDateTime':
|
|
82
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
82
83
|
'isCompliant': value['isCompliant'],
|
|
83
84
|
'isComplete': value['isComplete'],
|
|
84
85
|
'signOffStatus': value['signOffStatus'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -31,7 +31,6 @@ export * from './IncidentVideoSignedUrlResourceArrayResponse';
|
|
|
31
31
|
export * from './IncidentVideoUploadTokenResource';
|
|
32
32
|
export * from './IncidentVideoUploadTokenResourceArrayResponse';
|
|
33
33
|
export * from './IncidentsApproveRequest';
|
|
34
|
-
export * from './IncidentsExportPdfBulkRequest';
|
|
35
34
|
export * from './IncidentsStoreRequest';
|
|
36
35
|
export * from './IncidentsUpdateRequest';
|
|
37
36
|
export * from './IncidentsVideosStoreRequest';
|
package/dist/models/index.js
CHANGED
|
@@ -49,7 +49,6 @@ __exportStar(require("./IncidentVideoSignedUrlResourceArrayResponse"), exports);
|
|
|
49
49
|
__exportStar(require("./IncidentVideoUploadTokenResource"), exports);
|
|
50
50
|
__exportStar(require("./IncidentVideoUploadTokenResourceArrayResponse"), exports);
|
|
51
51
|
__exportStar(require("./IncidentsApproveRequest"), exports);
|
|
52
|
-
__exportStar(require("./IncidentsExportPdfBulkRequest"), exports);
|
|
53
52
|
__exportStar(require("./IncidentsStoreRequest"), exports);
|
|
54
53
|
__exportStar(require("./IncidentsUpdateRequest"), exports);
|
|
55
54
|
__exportStar(require("./IncidentsVideosStoreRequest"), exports);
|
package/package.json
CHANGED
package/src/apis/GeneralApi.ts
CHANGED
|
@@ -26,7 +26,6 @@ import type {
|
|
|
26
26
|
IncidentVideoSignedUrlResource,
|
|
27
27
|
IncidentVideoUploadTokenResource,
|
|
28
28
|
IncidentsApproveRequest,
|
|
29
|
-
IncidentsExportPdfBulkRequest,
|
|
30
29
|
IncidentsStoreRequest,
|
|
31
30
|
IncidentsUpdateRequest,
|
|
32
31
|
IncidentsVideosStoreRequest,
|
|
@@ -121,8 +120,6 @@ import {
|
|
|
121
120
|
IncidentVideoUploadTokenResourceToJSON,
|
|
122
121
|
IncidentsApproveRequestFromJSON,
|
|
123
122
|
IncidentsApproveRequestToJSON,
|
|
124
|
-
IncidentsExportPdfBulkRequestFromJSON,
|
|
125
|
-
IncidentsExportPdfBulkRequestToJSON,
|
|
126
123
|
IncidentsStoreRequestFromJSON,
|
|
127
124
|
IncidentsStoreRequestToJSON,
|
|
128
125
|
IncidentsUpdateRequestFromJSON,
|
|
@@ -278,22 +275,6 @@ export interface IncidentsApproveOperationRequest {
|
|
|
278
275
|
incidentsApproveRequest?: IncidentsApproveRequest;
|
|
279
276
|
}
|
|
280
277
|
|
|
281
|
-
export interface IncidentsExportPdfRequest {
|
|
282
|
-
incident: number;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
export interface IncidentsExportPdfBulkOperationRequest {
|
|
286
|
-
incidentsExportPdfBulkRequest?: IncidentsExportPdfBulkRequest;
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
export interface IncidentsExportPdfDownloadRequest {
|
|
290
|
-
pdfExport: number;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
export interface IncidentsExportPdfStatusRequest {
|
|
294
|
-
pdfExport: number;
|
|
295
|
-
}
|
|
296
|
-
|
|
297
278
|
export interface IncidentsShowRequest {
|
|
298
279
|
incident: number;
|
|
299
280
|
}
|
|
@@ -770,181 +751,6 @@ export class GeneralApi extends runtime.BaseAPI {
|
|
|
770
751
|
return await response.value();
|
|
771
752
|
}
|
|
772
753
|
|
|
773
|
-
/**
|
|
774
|
-
* Auto-generated: incidents.exportPdf
|
|
775
|
-
*/
|
|
776
|
-
async incidentsExportPdfRaw(requestParameters: IncidentsExportPdfRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>> {
|
|
777
|
-
if (requestParameters['incident'] == null) {
|
|
778
|
-
throw new runtime.RequiredError(
|
|
779
|
-
'incident',
|
|
780
|
-
'Required parameter "incident" was null or undefined when calling incidentsExportPdf().'
|
|
781
|
-
);
|
|
782
|
-
}
|
|
783
|
-
|
|
784
|
-
const queryParameters: any = {};
|
|
785
|
-
|
|
786
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
787
|
-
|
|
788
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
789
|
-
const token = this.configuration.accessToken;
|
|
790
|
-
const tokenString = await token("bearerAuth", []);
|
|
791
|
-
|
|
792
|
-
if (tokenString) {
|
|
793
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
794
|
-
}
|
|
795
|
-
}
|
|
796
|
-
|
|
797
|
-
let urlPath = `/api/incidents/{incident}/export-pdf`;
|
|
798
|
-
urlPath = urlPath.replace(`{${"incident"}}`, encodeURIComponent(String(requestParameters['incident'])));
|
|
799
|
-
|
|
800
|
-
const response = await this.request({
|
|
801
|
-
path: urlPath,
|
|
802
|
-
method: 'POST',
|
|
803
|
-
headers: headerParameters,
|
|
804
|
-
query: queryParameters,
|
|
805
|
-
}, initOverrides);
|
|
806
|
-
|
|
807
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => GenericResponseFromJSON(jsonValue));
|
|
808
|
-
}
|
|
809
|
-
|
|
810
|
-
/**
|
|
811
|
-
* Auto-generated: incidents.exportPdf
|
|
812
|
-
*/
|
|
813
|
-
async incidentsExportPdf(requestParameters: IncidentsExportPdfRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse> {
|
|
814
|
-
const response = await this.incidentsExportPdfRaw(requestParameters, initOverrides);
|
|
815
|
-
return await response.value();
|
|
816
|
-
}
|
|
817
|
-
|
|
818
|
-
/**
|
|
819
|
-
* Auto-generated: incidents.exportPdf.bulk
|
|
820
|
-
*/
|
|
821
|
-
async incidentsExportPdfBulkRaw(requestParameters: IncidentsExportPdfBulkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>> {
|
|
822
|
-
const queryParameters: any = {};
|
|
823
|
-
|
|
824
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
825
|
-
|
|
826
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
827
|
-
|
|
828
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
829
|
-
const token = this.configuration.accessToken;
|
|
830
|
-
const tokenString = await token("bearerAuth", []);
|
|
831
|
-
|
|
832
|
-
if (tokenString) {
|
|
833
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
834
|
-
}
|
|
835
|
-
}
|
|
836
|
-
|
|
837
|
-
let urlPath = `/api/incidents/export-pdf/bulk`;
|
|
838
|
-
|
|
839
|
-
const response = await this.request({
|
|
840
|
-
path: urlPath,
|
|
841
|
-
method: 'POST',
|
|
842
|
-
headers: headerParameters,
|
|
843
|
-
query: queryParameters,
|
|
844
|
-
body: IncidentsExportPdfBulkRequestToJSON(requestParameters['incidentsExportPdfBulkRequest']),
|
|
845
|
-
}, initOverrides);
|
|
846
|
-
|
|
847
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => GenericResponseFromJSON(jsonValue));
|
|
848
|
-
}
|
|
849
|
-
|
|
850
|
-
/**
|
|
851
|
-
* Auto-generated: incidents.exportPdf.bulk
|
|
852
|
-
*/
|
|
853
|
-
async incidentsExportPdfBulk(requestParameters: IncidentsExportPdfBulkOperationRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse> {
|
|
854
|
-
const response = await this.incidentsExportPdfBulkRaw(requestParameters, initOverrides);
|
|
855
|
-
return await response.value();
|
|
856
|
-
}
|
|
857
|
-
|
|
858
|
-
/**
|
|
859
|
-
* Auto-generated: incidents.exportPdf.download
|
|
860
|
-
*/
|
|
861
|
-
async incidentsExportPdfDownloadRaw(requestParameters: IncidentsExportPdfDownloadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>> {
|
|
862
|
-
if (requestParameters['pdfExport'] == null) {
|
|
863
|
-
throw new runtime.RequiredError(
|
|
864
|
-
'pdfExport',
|
|
865
|
-
'Required parameter "pdfExport" was null or undefined when calling incidentsExportPdfDownload().'
|
|
866
|
-
);
|
|
867
|
-
}
|
|
868
|
-
|
|
869
|
-
const queryParameters: any = {};
|
|
870
|
-
|
|
871
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
872
|
-
|
|
873
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
874
|
-
const token = this.configuration.accessToken;
|
|
875
|
-
const tokenString = await token("bearerAuth", []);
|
|
876
|
-
|
|
877
|
-
if (tokenString) {
|
|
878
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
879
|
-
}
|
|
880
|
-
}
|
|
881
|
-
|
|
882
|
-
let urlPath = `/api/incidents/export-pdf/{pdfExport}/download`;
|
|
883
|
-
urlPath = urlPath.replace(`{${"pdfExport"}}`, encodeURIComponent(String(requestParameters['pdfExport'])));
|
|
884
|
-
|
|
885
|
-
const response = await this.request({
|
|
886
|
-
path: urlPath,
|
|
887
|
-
method: 'GET',
|
|
888
|
-
headers: headerParameters,
|
|
889
|
-
query: queryParameters,
|
|
890
|
-
}, initOverrides);
|
|
891
|
-
|
|
892
|
-
return new runtime.BlobApiResponse(response);
|
|
893
|
-
}
|
|
894
|
-
|
|
895
|
-
/**
|
|
896
|
-
* Auto-generated: incidents.exportPdf.download
|
|
897
|
-
*/
|
|
898
|
-
async incidentsExportPdfDownload(requestParameters: IncidentsExportPdfDownloadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob> {
|
|
899
|
-
const response = await this.incidentsExportPdfDownloadRaw(requestParameters, initOverrides);
|
|
900
|
-
return await response.value();
|
|
901
|
-
}
|
|
902
|
-
|
|
903
|
-
/**
|
|
904
|
-
* Auto-generated: incidents.exportPdf.status
|
|
905
|
-
*/
|
|
906
|
-
async incidentsExportPdfStatusRaw(requestParameters: IncidentsExportPdfStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PdfExportResource>> {
|
|
907
|
-
if (requestParameters['pdfExport'] == null) {
|
|
908
|
-
throw new runtime.RequiredError(
|
|
909
|
-
'pdfExport',
|
|
910
|
-
'Required parameter "pdfExport" was null or undefined when calling incidentsExportPdfStatus().'
|
|
911
|
-
);
|
|
912
|
-
}
|
|
913
|
-
|
|
914
|
-
const queryParameters: any = {};
|
|
915
|
-
|
|
916
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
917
|
-
|
|
918
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
919
|
-
const token = this.configuration.accessToken;
|
|
920
|
-
const tokenString = await token("bearerAuth", []);
|
|
921
|
-
|
|
922
|
-
if (tokenString) {
|
|
923
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
924
|
-
}
|
|
925
|
-
}
|
|
926
|
-
|
|
927
|
-
let urlPath = `/api/incidents/export-pdf/{pdfExport}/status`;
|
|
928
|
-
urlPath = urlPath.replace(`{${"pdfExport"}}`, encodeURIComponent(String(requestParameters['pdfExport'])));
|
|
929
|
-
|
|
930
|
-
const response = await this.request({
|
|
931
|
-
path: urlPath,
|
|
932
|
-
method: 'POST',
|
|
933
|
-
headers: headerParameters,
|
|
934
|
-
query: queryParameters,
|
|
935
|
-
}, initOverrides);
|
|
936
|
-
|
|
937
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => PdfExportResourceFromJSON(jsonValue));
|
|
938
|
-
}
|
|
939
|
-
|
|
940
|
-
/**
|
|
941
|
-
* Auto-generated: incidents.exportPdf.status
|
|
942
|
-
*/
|
|
943
|
-
async incidentsExportPdfStatus(requestParameters: IncidentsExportPdfStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PdfExportResource> {
|
|
944
|
-
const response = await this.incidentsExportPdfStatusRaw(requestParameters, initOverrides);
|
|
945
|
-
return await response.value();
|
|
946
|
-
}
|
|
947
|
-
|
|
948
754
|
/**
|
|
949
755
|
* Auto-generated: incidents.show
|
|
950
756
|
*/
|
|
@@ -36,7 +36,7 @@ export interface AddressResource {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof AddressResource
|
|
38
38
|
*/
|
|
39
|
-
addressLine2
|
|
39
|
+
addressLine2?: string | null;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
@@ -80,7 +80,6 @@ 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;
|
|
84
83
|
if (!('suburb' in value) || value['suburb'] === undefined) return false;
|
|
85
84
|
if (!('city' in value) || value['city'] === undefined) return false;
|
|
86
85
|
if (!('state' in value) || value['state'] === undefined) return false;
|
|
@@ -102,7 +101,7 @@ export function AddressResourceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
102
101
|
|
|
103
102
|
'id': json['id'] == null ? undefined : json['id'],
|
|
104
103
|
'addressLine1': json['addressLine1'],
|
|
105
|
-
'addressLine2': json['addressLine2'],
|
|
104
|
+
'addressLine2': json['addressLine2'] == null ? undefined : json['addressLine2'],
|
|
106
105
|
'suburb': json['suburb'],
|
|
107
106
|
'city': json['city'],
|
|
108
107
|
'state': json['state'],
|
|
@@ -48,7 +48,7 @@ export interface AssetResource {
|
|
|
48
48
|
* @type {string}
|
|
49
49
|
* @memberof AssetResource
|
|
50
50
|
*/
|
|
51
|
-
altText
|
|
51
|
+
altText?: string | null;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {number}
|
|
@@ -71,7 +71,6 @@ export function instanceOfAssetResource(value: object): value is AssetResource {
|
|
|
71
71
|
if (!('filePath' in value) || value['filePath'] === undefined) return false;
|
|
72
72
|
if (!('fileName' in value) || value['fileName'] === undefined) return false;
|
|
73
73
|
if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
|
|
74
|
-
if (!('altText' in value) || value['altText'] === undefined) return false;
|
|
75
74
|
if (!('index' in value) || value['index'] === undefined) return false;
|
|
76
75
|
if (!('fileId' in value) || value['fileId'] === undefined) return false;
|
|
77
76
|
return true;
|
|
@@ -91,7 +90,7 @@ export function AssetResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
91
90
|
'filePath': json['filePath'],
|
|
92
91
|
'fileName': json['fileName'],
|
|
93
92
|
'mimeType': json['mimeType'],
|
|
94
|
-
'altText': json['altText'],
|
|
93
|
+
'altText': json['altText'] == null ? undefined : json['altText'],
|
|
95
94
|
'index': json['index'],
|
|
96
95
|
'fileId': json['fileId'],
|
|
97
96
|
};
|
|
@@ -70,13 +70,13 @@ export interface RegisterListResource {
|
|
|
70
70
|
* @type {Date}
|
|
71
71
|
* @memberof RegisterListResource
|
|
72
72
|
*/
|
|
73
|
-
finishDateTime
|
|
73
|
+
finishDateTime: Date;
|
|
74
74
|
/**
|
|
75
75
|
*
|
|
76
|
-
* @type {
|
|
76
|
+
* @type {string}
|
|
77
77
|
* @memberof RegisterListResource
|
|
78
78
|
*/
|
|
79
|
-
shiftLength:
|
|
79
|
+
shiftLength: string;
|
|
80
80
|
/**
|
|
81
81
|
*
|
|
82
82
|
* @type {number}
|
|
@@ -188,6 +188,7 @@ export function instanceOfRegisterListResource(value: object): value is Register
|
|
|
188
188
|
if (!('user' in value) || value['user'] === undefined) return false;
|
|
189
189
|
if (!('venue' in value) || value['venue'] === undefined) return false;
|
|
190
190
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
191
|
+
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
|
|
191
192
|
if (!('shiftLength' in value) || value['shiftLength'] === undefined) return false;
|
|
192
193
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
193
194
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
@@ -220,7 +221,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
220
221
|
'user': UserLiteResourceFromJSON(json['user']),
|
|
221
222
|
'venue': VenueLiteResourceFromJSON(json['venue']),
|
|
222
223
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
223
|
-
'finishDateTime':
|
|
224
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
224
225
|
'shiftLength': json['shiftLength'],
|
|
225
226
|
'signOffStatus': json['signOffStatus'],
|
|
226
227
|
'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
|
|
@@ -257,7 +258,7 @@ export function RegisterListResourceToJSONTyped(value?: RegisterListResource | n
|
|
|
257
258
|
'user': UserLiteResourceToJSON(value['user']),
|
|
258
259
|
'venue': VenueLiteResourceToJSON(value['venue']),
|
|
259
260
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
260
|
-
'finishDateTime':
|
|
261
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
261
262
|
'shiftLength': value['shiftLength'],
|
|
262
263
|
'signOffStatus': value['signOffStatus'],
|
|
263
264
|
'badgeNumber': value['badgeNumber'],
|
|
@@ -123,13 +123,13 @@ export interface RegisterResource {
|
|
|
123
123
|
* @type {number}
|
|
124
124
|
* @memberof RegisterResource
|
|
125
125
|
*/
|
|
126
|
-
signOffLat
|
|
126
|
+
signOffLat: number;
|
|
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}
|
|
@@ -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}
|
|
@@ -190,11 +190,12 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
|
|
|
190
190
|
if (!('firstAidImage' in value) || value['firstAidImage'] === undefined) return false;
|
|
191
191
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
192
192
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
193
|
-
if (!('
|
|
193
|
+
if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
|
|
194
194
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
195
195
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
|
|
196
196
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
|
|
197
197
|
if (!('licenceLastName' in value) || value['licenceLastName'] === undefined) return false;
|
|
198
|
+
if (!('badgeNumber' in value) || value['badgeNumber'] === undefined) return false;
|
|
198
199
|
return true;
|
|
199
200
|
}
|
|
200
201
|
|
|
@@ -222,13 +223,13 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
222
223
|
'firstAidImage': json['firstAidImage'],
|
|
223
224
|
'signOnLat': json['signOnLat'],
|
|
224
225
|
'signOnLong': json['signOnLong'],
|
|
225
|
-
'signOffLat': json['signOffLat']
|
|
226
|
-
'signOffLong': json['signOffLong'],
|
|
226
|
+
'signOffLat': json['signOffLat'],
|
|
227
|
+
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
227
228
|
'licenceNumber': json['licenceNumber'],
|
|
228
229
|
'licenceExpiry': json['licenceExpiry'],
|
|
229
230
|
'licenceFirstName': json['licenceFirstName'],
|
|
230
231
|
'licenceLastName': json['licenceLastName'],
|
|
231
|
-
'badgeNumber': json['badgeNumber']
|
|
232
|
+
'badgeNumber': json['badgeNumber'],
|
|
232
233
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
233
234
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
234
235
|
};
|
|
@@ -76,7 +76,7 @@ export interface RosterWithRegistersResource {
|
|
|
76
76
|
* @type {Date}
|
|
77
77
|
* @memberof RosterWithRegistersResource
|
|
78
78
|
*/
|
|
79
|
-
finishDateTime
|
|
79
|
+
finishDateTime: Date;
|
|
80
80
|
/**
|
|
81
81
|
*
|
|
82
82
|
* @type {boolean}
|
|
@@ -111,6 +111,7 @@ export function instanceOfRosterWithRegistersResource(value: object): value is R
|
|
|
111
111
|
if (!('state' in value) || value['state'] === undefined) return false;
|
|
112
112
|
if (!('securityCompany' in value) || value['securityCompany'] === undefined) return false;
|
|
113
113
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
114
|
+
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
|
|
114
115
|
if (!('isCompliant' in value) || value['isCompliant'] === undefined) return false;
|
|
115
116
|
if (!('isComplete' in value) || value['isComplete'] === undefined) return false;
|
|
116
117
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
@@ -133,7 +134,7 @@ export function RosterWithRegistersResourceFromJSONTyped(json: any, ignoreDiscri
|
|
|
133
134
|
'state': json['state'],
|
|
134
135
|
'securityCompany': SecurityCompanyLiteResourceFromJSON(json['securityCompany']),
|
|
135
136
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
136
|
-
'finishDateTime':
|
|
137
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
137
138
|
'isCompliant': json['isCompliant'],
|
|
138
139
|
'isComplete': json['isComplete'],
|
|
139
140
|
'signOffStatus': json['signOffStatus'],
|
|
@@ -157,7 +158,7 @@ export function RosterWithRegistersResourceToJSONTyped(value?: RosterWithRegiste
|
|
|
157
158
|
'state': value['state'],
|
|
158
159
|
'securityCompany': SecurityCompanyLiteResourceToJSON(value['securityCompany']),
|
|
159
160
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
160
|
-
'finishDateTime':
|
|
161
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
161
162
|
'isCompliant': value['isCompliant'],
|
|
162
163
|
'isComplete': value['isComplete'],
|
|
163
164
|
'signOffStatus': value['signOffStatus'],
|
package/src/models/index.ts
CHANGED
|
@@ -33,7 +33,6 @@ export * from './IncidentVideoSignedUrlResourceArrayResponse';
|
|
|
33
33
|
export * from './IncidentVideoUploadTokenResource';
|
|
34
34
|
export * from './IncidentVideoUploadTokenResourceArrayResponse';
|
|
35
35
|
export * from './IncidentsApproveRequest';
|
|
36
|
-
export * from './IncidentsExportPdfBulkRequest';
|
|
37
36
|
export * from './IncidentsStoreRequest';
|
|
38
37
|
export * from './IncidentsUpdateRequest';
|
|
39
38
|
export * from './IncidentsVideosStoreRequest';
|
|
@@ -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 IncidentsExportPdfBulkRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface IncidentsExportPdfBulkRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof IncidentsExportPdfBulkRequest
|
|
22
|
-
*/
|
|
23
|
-
venueId: number;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {number}
|
|
27
|
-
* @memberof IncidentsExportPdfBulkRequest
|
|
28
|
-
*/
|
|
29
|
-
securityCompanyId?: number;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {boolean}
|
|
33
|
-
* @memberof IncidentsExportPdfBulkRequest
|
|
34
|
-
*/
|
|
35
|
-
hasApprovedAt?: boolean;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {Date}
|
|
39
|
-
* @memberof IncidentsExportPdfBulkRequest
|
|
40
|
-
*/
|
|
41
|
-
afterCreatedAt: Date;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {Date}
|
|
45
|
-
* @memberof IncidentsExportPdfBulkRequest
|
|
46
|
-
*/
|
|
47
|
-
beforeCreatedAt: Date;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Check if a given object implements the IncidentsExportPdfBulkRequest interface.
|
|
51
|
-
*/
|
|
52
|
-
export declare function instanceOfIncidentsExportPdfBulkRequest(value: object): value is IncidentsExportPdfBulkRequest;
|
|
53
|
-
export declare function IncidentsExportPdfBulkRequestFromJSON(json: any): IncidentsExportPdfBulkRequest;
|
|
54
|
-
export declare function IncidentsExportPdfBulkRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentsExportPdfBulkRequest;
|
|
55
|
-
export declare function IncidentsExportPdfBulkRequestToJSON(json: any): IncidentsExportPdfBulkRequest;
|
|
56
|
-
export declare function IncidentsExportPdfBulkRequestToJSONTyped(value?: IncidentsExportPdfBulkRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,63 +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.instanceOfIncidentsExportPdfBulkRequest = instanceOfIncidentsExportPdfBulkRequest;
|
|
17
|
-
exports.IncidentsExportPdfBulkRequestFromJSON = IncidentsExportPdfBulkRequestFromJSON;
|
|
18
|
-
exports.IncidentsExportPdfBulkRequestFromJSONTyped = IncidentsExportPdfBulkRequestFromJSONTyped;
|
|
19
|
-
exports.IncidentsExportPdfBulkRequestToJSON = IncidentsExportPdfBulkRequestToJSON;
|
|
20
|
-
exports.IncidentsExportPdfBulkRequestToJSONTyped = IncidentsExportPdfBulkRequestToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the IncidentsExportPdfBulkRequest interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfIncidentsExportPdfBulkRequest(value) {
|
|
25
|
-
if (!('venueId' in value) || value['venueId'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
if (!('afterCreatedAt' in value) || value['afterCreatedAt'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
if (!('beforeCreatedAt' in value) || value['beforeCreatedAt'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
return true;
|
|
32
|
-
}
|
|
33
|
-
function IncidentsExportPdfBulkRequestFromJSON(json) {
|
|
34
|
-
return IncidentsExportPdfBulkRequestFromJSONTyped(json, false);
|
|
35
|
-
}
|
|
36
|
-
function IncidentsExportPdfBulkRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
-
if (json == null) {
|
|
38
|
-
return json;
|
|
39
|
-
}
|
|
40
|
-
return {
|
|
41
|
-
'venueId': json['venue_id'],
|
|
42
|
-
'securityCompanyId': json['security_company_id'] == null ? undefined : json['security_company_id'],
|
|
43
|
-
'hasApprovedAt': json['has_approved_at'] == null ? undefined : json['has_approved_at'],
|
|
44
|
-
'afterCreatedAt': (new Date(json['after_created_at'])),
|
|
45
|
-
'beforeCreatedAt': (new Date(json['before_created_at'])),
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
function IncidentsExportPdfBulkRequestToJSON(json) {
|
|
49
|
-
return IncidentsExportPdfBulkRequestToJSONTyped(json, false);
|
|
50
|
-
}
|
|
51
|
-
function IncidentsExportPdfBulkRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
52
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
53
|
-
if (value == null) {
|
|
54
|
-
return value;
|
|
55
|
-
}
|
|
56
|
-
return {
|
|
57
|
-
'venue_id': value['venueId'],
|
|
58
|
-
'security_company_id': value['securityCompanyId'],
|
|
59
|
-
'has_approved_at': value['hasApprovedAt'],
|
|
60
|
-
'after_created_at': ((value['afterCreatedAt']).toISOString()),
|
|
61
|
-
'before_created_at': ((value['beforeCreatedAt']).toISOString()),
|
|
62
|
-
};
|
|
63
|
-
}
|
|
@@ -1,100 +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 IncidentsExportPdfBulkRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface IncidentsExportPdfBulkRequest {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {number}
|
|
25
|
-
* @memberof IncidentsExportPdfBulkRequest
|
|
26
|
-
*/
|
|
27
|
-
venueId: number;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {number}
|
|
31
|
-
* @memberof IncidentsExportPdfBulkRequest
|
|
32
|
-
*/
|
|
33
|
-
securityCompanyId?: number;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {boolean}
|
|
37
|
-
* @memberof IncidentsExportPdfBulkRequest
|
|
38
|
-
*/
|
|
39
|
-
hasApprovedAt?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {Date}
|
|
43
|
-
* @memberof IncidentsExportPdfBulkRequest
|
|
44
|
-
*/
|
|
45
|
-
afterCreatedAt: Date;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {Date}
|
|
49
|
-
* @memberof IncidentsExportPdfBulkRequest
|
|
50
|
-
*/
|
|
51
|
-
beforeCreatedAt: Date;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Check if a given object implements the IncidentsExportPdfBulkRequest interface.
|
|
56
|
-
*/
|
|
57
|
-
export function instanceOfIncidentsExportPdfBulkRequest(value: object): value is IncidentsExportPdfBulkRequest {
|
|
58
|
-
if (!('venueId' in value) || value['venueId'] === undefined) return false;
|
|
59
|
-
if (!('afterCreatedAt' in value) || value['afterCreatedAt'] === undefined) return false;
|
|
60
|
-
if (!('beforeCreatedAt' in value) || value['beforeCreatedAt'] === undefined) return false;
|
|
61
|
-
return true;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export function IncidentsExportPdfBulkRequestFromJSON(json: any): IncidentsExportPdfBulkRequest {
|
|
65
|
-
return IncidentsExportPdfBulkRequestFromJSONTyped(json, false);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export function IncidentsExportPdfBulkRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentsExportPdfBulkRequest {
|
|
69
|
-
if (json == null) {
|
|
70
|
-
return json;
|
|
71
|
-
}
|
|
72
|
-
return {
|
|
73
|
-
|
|
74
|
-
'venueId': json['venue_id'],
|
|
75
|
-
'securityCompanyId': json['security_company_id'] == null ? undefined : json['security_company_id'],
|
|
76
|
-
'hasApprovedAt': json['has_approved_at'] == null ? undefined : json['has_approved_at'],
|
|
77
|
-
'afterCreatedAt': (new Date(json['after_created_at'])),
|
|
78
|
-
'beforeCreatedAt': (new Date(json['before_created_at'])),
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
export function IncidentsExportPdfBulkRequestToJSON(json: any): IncidentsExportPdfBulkRequest {
|
|
83
|
-
return IncidentsExportPdfBulkRequestToJSONTyped(json, false);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export function IncidentsExportPdfBulkRequestToJSONTyped(value?: IncidentsExportPdfBulkRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
87
|
-
if (value == null) {
|
|
88
|
-
return value;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
return {
|
|
92
|
-
|
|
93
|
-
'venue_id': value['venueId'],
|
|
94
|
-
'security_company_id': value['securityCompanyId'],
|
|
95
|
-
'has_approved_at': value['hasApprovedAt'],
|
|
96
|
-
'after_created_at': ((value['afterCreatedAt']).toISOString()),
|
|
97
|
-
'before_created_at': ((value['beforeCreatedAt']).toISOString()),
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
|