@digital8/security-registers-backend-ts-sdk 0.0.284 → 0.0.286
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/AssetResource.d.ts +1 -1
- package/dist/models/AssetResource.js +3 -1
- 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/RegisterListResource.d.ts +2 -2
- package/dist/models/RegisterListResource.js +2 -6
- package/dist/models/RegisterResource.d.ts +2 -2
- package/dist/models/RegisterResource.js +6 -2
- package/dist/models/RosterListResource.d.ts +1 -1
- package/dist/models/RosterListResource.js +3 -4
- package/dist/models/RosterLiteResource.d.ts +1 -1
- package/dist/models/RosterLiteResource.js +3 -4
- package/dist/models/SecurityCompanyResource.d.ts +1 -1
- package/dist/models/SecurityCompanyResource.js +1 -3
- 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/AssetResource.ts +3 -2
- package/src/models/IncidentsExportPdfBulkRequest.ts +100 -0
- package/src/models/PdfExportQueuedResource.ts +84 -0
- package/src/models/PdfExportQueuedResourceArrayResponse.ts +73 -0
- package/src/models/RegisterListResource.ts +4 -6
- package/src/models/RegisterResource.ts +6 -4
- package/src/models/RosterListResource.ts +3 -4
- package/src/models/RosterLiteResource.ts +3 -4
- package/src/models/SecurityCompanyResource.ts +2 -3
- package/src/models/index.ts +3 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -41,6 +41,7 @@ src/models/IncidentVideoSignedUrlResourceArrayResponse.ts
|
|
|
41
41
|
src/models/IncidentVideoUploadTokenResource.ts
|
|
42
42
|
src/models/IncidentVideoUploadTokenResourceArrayResponse.ts
|
|
43
43
|
src/models/IncidentsApproveRequest.ts
|
|
44
|
+
src/models/IncidentsExportPdfBulkRequest.ts
|
|
44
45
|
src/models/IncidentsListRequest.ts
|
|
45
46
|
src/models/IncidentsStoreRequest.ts
|
|
46
47
|
src/models/IncidentsUpdateRequest.ts
|
|
@@ -78,6 +79,8 @@ src/models/PaginatedSecurityCompanyResourceResponse.ts
|
|
|
78
79
|
src/models/PaginatedUserResourceResponse.ts
|
|
79
80
|
src/models/PaginatedVenueResourceResponse.ts
|
|
80
81
|
src/models/PagingMetadata.ts
|
|
82
|
+
src/models/PdfExportQueuedResource.ts
|
|
83
|
+
src/models/PdfExportQueuedResourceArrayResponse.ts
|
|
81
84
|
src/models/PdfExportResource.ts
|
|
82
85
|
src/models/PdfExportResourceArrayResponse.ts
|
|
83
86
|
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.286
|
|
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.286 --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, IncidentsListRequest, IncidentsStoreRequest, IncidentsUpdateRequest, IncidentsVideosStoreRequest, IncidentsVideosUploadTokenRequest, IndexMinimalUserRequest, IndexUserRequest, LicenceLiteResourceArrayResponse, LicenceResource, LicencesListAllRequest, LicencesListRequest, LicencesStoreRequest, LicencesUpdateRequest, LicencesVerifyRequest, LoginAuthRequest, NotificationPreferenceResource, NotificationPreferenceResourceArrayResponse, NotificationPreferencesStoreRequest, NotificationTypeResourceArrayResponse, PaginatedIncidentListResourceResponse, 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, IncidentsListRequest, IncidentsStoreRequest, IncidentsUpdateRequest, IncidentsVideosStoreRequest, IncidentsVideosUploadTokenRequest, IndexMinimalUserRequest, IndexUserRequest, LicenceLiteResourceArrayResponse, LicenceResource, LicencesListAllRequest, LicencesListRequest, LicencesStoreRequest, LicencesUpdateRequest, LicencesVerifyRequest, LoginAuthRequest, NotificationPreferenceResource, NotificationPreferenceResourceArrayResponse, NotificationPreferencesStoreRequest, NotificationTypeResourceArrayResponse, PaginatedIncidentListResourceResponse, 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 IncidentsListOperationRequest {
|
|
25
37
|
incidentsListRequest?: IncidentsListRequest;
|
|
26
38
|
}
|
|
@@ -291,6 +303,38 @@ export declare class GeneralApi extends runtime.BaseAPI {
|
|
|
291
303
|
* Auto-generated: incidents.approve
|
|
292
304
|
*/
|
|
293
305
|
incidentsApprove(requestParameters: IncidentsApproveOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IncidentResource>;
|
|
306
|
+
/**
|
|
307
|
+
* Auto-generated: incidents.exportPdf
|
|
308
|
+
*/
|
|
309
|
+
incidentsExportPdfRaw(requestParameters: IncidentsExportPdfRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PdfExportQueuedResource>>;
|
|
310
|
+
/**
|
|
311
|
+
* Auto-generated: incidents.exportPdf
|
|
312
|
+
*/
|
|
313
|
+
incidentsExportPdf(requestParameters: IncidentsExportPdfRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PdfExportQueuedResource>;
|
|
314
|
+
/**
|
|
315
|
+
* Auto-generated: incidents.exportPdf.bulk
|
|
316
|
+
*/
|
|
317
|
+
incidentsExportPdfBulkRaw(requestParameters: IncidentsExportPdfBulkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PdfExportQueuedResource>>;
|
|
318
|
+
/**
|
|
319
|
+
* Auto-generated: incidents.exportPdf.bulk
|
|
320
|
+
*/
|
|
321
|
+
incidentsExportPdfBulk(requestParameters?: IncidentsExportPdfBulkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PdfExportQueuedResource>;
|
|
322
|
+
/**
|
|
323
|
+
* Auto-generated: incidents.exportPdf.download
|
|
324
|
+
*/
|
|
325
|
+
incidentsExportPdfDownloadRaw(requestParameters: IncidentsExportPdfDownloadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>>;
|
|
326
|
+
/**
|
|
327
|
+
* Auto-generated: incidents.exportPdf.download
|
|
328
|
+
*/
|
|
329
|
+
incidentsExportPdfDownload(requestParameters: IncidentsExportPdfDownloadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
330
|
+
/**
|
|
331
|
+
* Auto-generated: incidents.exportPdf.status
|
|
332
|
+
*/
|
|
333
|
+
incidentsExportPdfStatusRaw(requestParameters: IncidentsExportPdfStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PdfExportResource>>;
|
|
334
|
+
/**
|
|
335
|
+
* Auto-generated: incidents.exportPdf.status
|
|
336
|
+
*/
|
|
337
|
+
incidentsExportPdfStatus(requestParameters: IncidentsExportPdfStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PdfExportResource>;
|
|
294
338
|
/**
|
|
295
339
|
* Auto-generated: incidents.list
|
|
296
340
|
*/
|
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.list
|
|
301
524
|
*/
|
|
@@ -30,6 +30,8 @@ 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;
|
|
33
35
|
if (!('index' in value) || value['index'] === undefined)
|
|
34
36
|
return false;
|
|
35
37
|
if (!('fileId' in value) || value['fileId'] === undefined)
|
|
@@ -48,7 +50,7 @@ function AssetResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
50
|
'filePath': json['filePath'],
|
|
49
51
|
'fileName': json['fileName'],
|
|
50
52
|
'mimeType': json['mimeType'],
|
|
51
|
-
'altText': json['altText']
|
|
53
|
+
'altText': json['altText'],
|
|
52
54
|
'index': json['index'],
|
|
53
55
|
'fileId': json['fileId'],
|
|
54
56
|
};
|
|
@@ -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;
|
|
@@ -0,0 +1,59 @@
|
|
|
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.instanceOfPdfExportQueuedResource = instanceOfPdfExportQueuedResource;
|
|
17
|
+
exports.PdfExportQueuedResourceFromJSON = PdfExportQueuedResourceFromJSON;
|
|
18
|
+
exports.PdfExportQueuedResourceFromJSONTyped = PdfExportQueuedResourceFromJSONTyped;
|
|
19
|
+
exports.PdfExportQueuedResourceToJSON = PdfExportQueuedResourceToJSON;
|
|
20
|
+
exports.PdfExportQueuedResourceToJSONTyped = PdfExportQueuedResourceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PdfExportQueuedResource interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPdfExportQueuedResource(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function PdfExportQueuedResourceFromJSON(json) {
|
|
34
|
+
return PdfExportQueuedResourceFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function PdfExportQueuedResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'id': json['id'],
|
|
42
|
+
'status': json['status'],
|
|
43
|
+
'message': json['message'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function PdfExportQueuedResourceToJSON(json) {
|
|
47
|
+
return PdfExportQueuedResourceToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function PdfExportQueuedResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'id': value['id'],
|
|
56
|
+
'status': value['status'],
|
|
57
|
+
'message': value['message'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { PdfExportQueuedResource } from './PdfExportQueuedResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PdfExportQueuedResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface PdfExportQueuedResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<PdfExportQueuedResource>}
|
|
22
|
+
* @memberof PdfExportQueuedResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<PdfExportQueuedResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the PdfExportQueuedResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfPdfExportQueuedResourceArrayResponse(value: object): value is PdfExportQueuedResourceArrayResponse;
|
|
30
|
+
export declare function PdfExportQueuedResourceArrayResponseFromJSON(json: any): PdfExportQueuedResourceArrayResponse;
|
|
31
|
+
export declare function PdfExportQueuedResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PdfExportQueuedResourceArrayResponse;
|
|
32
|
+
export declare function PdfExportQueuedResourceArrayResponseToJSON(json: any): PdfExportQueuedResourceArrayResponse;
|
|
33
|
+
export declare function PdfExportQueuedResourceArrayResponseToJSONTyped(value?: PdfExportQueuedResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|