@digital8/security-registers-backend-ts-sdk 0.0.283 → 0.0.285
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 +3 -0
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +45 -1
- package/dist/apis/GeneralApi.js +223 -0
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +1 -3
- package/dist/models/AssetLiteResource.d.ts +0 -12
- package/dist/models/AssetLiteResource.js +0 -6
- package/dist/models/AssetResource.d.ts +0 -12
- package/dist/models/AssetResource.js +0 -6
- package/dist/models/IncidentsExportPdfBulkRequest.d.ts +56 -0
- package/dist/models/IncidentsExportPdfBulkRequest.js +63 -0
- package/dist/models/PdfExportQueuedResource.d.ts +44 -0
- package/dist/models/PdfExportQueuedResource.js +59 -0
- package/dist/models/PdfExportQueuedResourceArrayResponse.d.ts +33 -0
- package/dist/models/PdfExportQueuedResourceArrayResponse.js +50 -0
- package/dist/models/RegisterGroupedByRosterResource.d.ts +1 -1
- package/dist/models/RegisterGroupedByRosterResource.js +3 -4
- package/dist/models/RegisterListResource.d.ts +2 -2
- package/dist/models/RegisterListResource.js +3 -3
- package/dist/models/RegisterResource.d.ts +1 -13
- package/dist/models/RegisterResource.js +1 -11
- package/dist/models/RosterLiteResource.d.ts +1 -1
- package/dist/models/RosterLiteResource.js +4 -3
- package/dist/models/RosterWithRegistersResource.d.ts +1 -1
- package/dist/models/RosterWithRegistersResource.js +3 -4
- package/dist/models/SecurityCompanyResource.d.ts +1 -1
- package/dist/models/SecurityCompanyResource.js +3 -1
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +197 -0
- package/src/models/AddressResource.ts +2 -3
- package/src/models/AssetLiteResource.ts +0 -17
- package/src/models/AssetResource.ts +0 -17
- package/src/models/IncidentsExportPdfBulkRequest.ts +100 -0
- package/src/models/PdfExportQueuedResource.ts +84 -0
- package/src/models/PdfExportQueuedResourceArrayResponse.ts +73 -0
- package/src/models/RegisterGroupedByRosterResource.ts +3 -4
- package/src/models/RegisterListResource.ts +5 -5
- package/src/models/RegisterResource.ts +2 -21
- package/src/models/RosterLiteResource.ts +4 -3
- package/src/models/RosterWithRegistersResource.ts +3 -4
- package/src/models/SecurityCompanyResource.ts +3 -2
- package/src/models/index.ts +3 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -39,6 +39,7 @@ 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
|
|
42
43
|
src/models/IncidentsStoreRequest.ts
|
|
43
44
|
src/models/IncidentsUpdateRequest.ts
|
|
44
45
|
src/models/IncidentsVideosStoreRequest.ts
|
|
@@ -74,6 +75,8 @@ src/models/PaginatedSecurityCompanyResourceResponse.ts
|
|
|
74
75
|
src/models/PaginatedUserResourceResponse.ts
|
|
75
76
|
src/models/PaginatedVenueResourceResponse.ts
|
|
76
77
|
src/models/PagingMetadata.ts
|
|
78
|
+
src/models/PdfExportQueuedResource.ts
|
|
79
|
+
src/models/PdfExportQueuedResourceArrayResponse.ts
|
|
77
80
|
src/models/PdfExportResource.ts
|
|
78
81
|
src/models/PdfExportResourceArrayResponse.ts
|
|
79
82
|
src/models/RegisterGroupedByRosterResource.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.285
|
|
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.285 --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, 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';
|
|
13
|
+
import type { AssetFileForUploadResource, GenericResponse, IncidentFieldSchemaResource, IncidentFieldSchemasShowRequest, IncidentResource, IncidentVersionResource, IncidentVersionResourceArrayResponse, IncidentVideoResource, IncidentVideoSignedUrlResource, IncidentVideoUploadTokenResource, IncidentsApproveRequest, IncidentsExportPdfBulkRequest, 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, PdfExportQueuedResource, 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,6 +21,18 @@ 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
|
+
}
|
|
24
36
|
export interface IncidentsShowRequest {
|
|
25
37
|
incident: number;
|
|
26
38
|
}
|
|
@@ -288,6 +300,38 @@ export declare class GeneralApi extends runtime.BaseAPI {
|
|
|
288
300
|
* Auto-generated: incidents.approve
|
|
289
301
|
*/
|
|
290
302
|
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<PdfExportQueuedResource>>;
|
|
307
|
+
/**
|
|
308
|
+
* Auto-generated: incidents.exportPdf
|
|
309
|
+
*/
|
|
310
|
+
incidentsExportPdf(requestParameters: IncidentsExportPdfRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PdfExportQueuedResource>;
|
|
311
|
+
/**
|
|
312
|
+
* Auto-generated: incidents.exportPdf.bulk
|
|
313
|
+
*/
|
|
314
|
+
incidentsExportPdfBulkRaw(requestParameters: IncidentsExportPdfBulkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PdfExportQueuedResource>>;
|
|
315
|
+
/**
|
|
316
|
+
* Auto-generated: incidents.exportPdf.bulk
|
|
317
|
+
*/
|
|
318
|
+
incidentsExportPdfBulk(requestParameters?: IncidentsExportPdfBulkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PdfExportQueuedResource>;
|
|
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>;
|
|
291
335
|
/**
|
|
292
336
|
* Auto-generated: incidents.show
|
|
293
337
|
*/
|
package/dist/apis/GeneralApi.js
CHANGED
|
@@ -296,6 +296,229 @@ 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.PdfExportQueuedResourceFromJSON)(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.PdfExportQueuedResourceFromJSON)(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
|
+
};
|
|
299
522
|
/**
|
|
300
523
|
* Auto-generated: incidents.show
|
|
301
524
|
*/
|
|
@@ -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'],
|
|
@@ -27,18 +27,6 @@ export interface AssetLiteResource {
|
|
|
27
27
|
* @memberof AssetLiteResource
|
|
28
28
|
*/
|
|
29
29
|
filePath: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {boolean}
|
|
33
|
-
* @memberof AssetLiteResource
|
|
34
|
-
*/
|
|
35
|
-
isExternal: boolean;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof AssetLiteResource
|
|
40
|
-
*/
|
|
41
|
-
externalUrl?: string | null;
|
|
42
30
|
}
|
|
43
31
|
/**
|
|
44
32
|
* Check if a given object implements the AssetLiteResource interface.
|
|
@@ -26,8 +26,6 @@ function instanceOfAssetLiteResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('filePath' in value) || value['filePath'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
-
if (!('isExternal' in value) || value['isExternal'] === undefined)
|
|
30
|
-
return false;
|
|
31
29
|
return true;
|
|
32
30
|
}
|
|
33
31
|
function AssetLiteResourceFromJSON(json) {
|
|
@@ -40,8 +38,6 @@ function AssetLiteResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
38
|
return {
|
|
41
39
|
'id': json['id'],
|
|
42
40
|
'filePath': json['filePath'],
|
|
43
|
-
'isExternal': json['isExternal'],
|
|
44
|
-
'externalUrl': json['externalUrl'] == null ? undefined : json['externalUrl'],
|
|
45
41
|
};
|
|
46
42
|
}
|
|
47
43
|
function AssetLiteResourceToJSON(json) {
|
|
@@ -55,7 +51,5 @@ function AssetLiteResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
55
51
|
return {
|
|
56
52
|
'id': value['id'],
|
|
57
53
|
'filePath': value['filePath'],
|
|
58
|
-
'isExternal': value['isExternal'],
|
|
59
|
-
'externalUrl': value['externalUrl'],
|
|
60
54
|
};
|
|
61
55
|
}
|
|
@@ -57,18 +57,6 @@ export interface AssetResource {
|
|
|
57
57
|
* @memberof AssetResource
|
|
58
58
|
*/
|
|
59
59
|
fileId: number;
|
|
60
|
-
/**
|
|
61
|
-
*
|
|
62
|
-
* @type {boolean}
|
|
63
|
-
* @memberof AssetResource
|
|
64
|
-
*/
|
|
65
|
-
isExternal: boolean;
|
|
66
|
-
/**
|
|
67
|
-
*
|
|
68
|
-
* @type {string}
|
|
69
|
-
* @memberof AssetResource
|
|
70
|
-
*/
|
|
71
|
-
externalUrl?: string | null;
|
|
72
60
|
}
|
|
73
61
|
/**
|
|
74
62
|
* Check if a given object implements the AssetResource interface.
|
|
@@ -36,8 +36,6 @@ function instanceOfAssetResource(value) {
|
|
|
36
36
|
return false;
|
|
37
37
|
if (!('fileId' in value) || value['fileId'] === undefined)
|
|
38
38
|
return false;
|
|
39
|
-
if (!('isExternal' in value) || value['isExternal'] === undefined)
|
|
40
|
-
return false;
|
|
41
39
|
return true;
|
|
42
40
|
}
|
|
43
41
|
function AssetResourceFromJSON(json) {
|
|
@@ -55,8 +53,6 @@ function AssetResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
53
|
'altText': json['altText'],
|
|
56
54
|
'index': json['index'],
|
|
57
55
|
'fileId': json['fileId'],
|
|
58
|
-
'isExternal': json['isExternal'],
|
|
59
|
-
'externalUrl': json['externalUrl'] == null ? undefined : json['externalUrl'],
|
|
60
56
|
};
|
|
61
57
|
}
|
|
62
58
|
function AssetResourceToJSON(json) {
|
|
@@ -75,7 +71,5 @@ function AssetResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
75
71
|
'altText': value['altText'],
|
|
76
72
|
'index': value['index'],
|
|
77
73
|
'fileId': value['fileId'],
|
|
78
|
-
'isExternal': value['isExternal'],
|
|
79
|
-
'externalUrl': value['externalUrl'],
|
|
80
74
|
};
|
|
81
75
|
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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;
|
|
@@ -0,0 +1,63 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 PdfExportQueuedResource
|
|
16
|
+
*/
|
|
17
|
+
export interface PdfExportQueuedResource {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof PdfExportQueuedResource
|
|
22
|
+
*/
|
|
23
|
+
id: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PdfExportQueuedResource
|
|
28
|
+
*/
|
|
29
|
+
status: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PdfExportQueuedResource
|
|
34
|
+
*/
|
|
35
|
+
message: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the PdfExportQueuedResource interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfPdfExportQueuedResource(value: object): value is PdfExportQueuedResource;
|
|
41
|
+
export declare function PdfExportQueuedResourceFromJSON(json: any): PdfExportQueuedResource;
|
|
42
|
+
export declare function PdfExportQueuedResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): PdfExportQueuedResource;
|
|
43
|
+
export declare function PdfExportQueuedResourceToJSON(json: any): PdfExportQueuedResource;
|
|
44
|
+
export declare function PdfExportQueuedResourceToJSONTyped(value?: PdfExportQueuedResource | null, ignoreDiscriminator?: boolean): any;
|