@digital8/security-registers-backend-ts-sdk 0.0.285 → 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 +4 -0
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +12 -1
- package/dist/apis/GeneralApi.js +55 -0
- package/dist/models/IncidentListResource.d.ts +101 -0
- package/dist/models/IncidentListResource.js +79 -0
- package/dist/models/IncidentListResourceArrayResponse.d.ts +33 -0
- package/dist/models/IncidentListResourceArrayResponse.js +50 -0
- package/dist/models/IncidentsListRequest.d.ts +151 -0
- package/dist/models/IncidentsListRequest.js +99 -0
- package/dist/models/PaginatedIncidentListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedIncidentListResourceResponse.js +57 -0
- package/dist/models/RegisterGroupedByRosterResource.d.ts +1 -1
- package/dist/models/RegisterGroupedByRosterResource.js +4 -3
- 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/RosterLiteResource.d.ts +1 -1
- package/dist/models/RosterLiteResource.js +3 -4
- package/dist/models/RosterResource.d.ts +1 -1
- package/dist/models/RosterResource.js +3 -4
- package/dist/models/RosterWithRegistersResource.d.ts +1 -1
- package/dist/models/RosterWithRegistersResource.js +4 -3
- package/dist/models/SecurityCompanyResource.d.ts +1 -1
- package/dist/models/SecurityCompanyResource.js +1 -3
- package/dist/models/VenueLiteResource.d.ts +6 -0
- package/dist/models/VenueLiteResource.js +4 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +50 -0
- package/src/models/IncidentListResource.ts +177 -0
- package/src/models/IncidentListResourceArrayResponse.ts +73 -0
- package/src/models/IncidentsListRequest.ts +222 -0
- package/src/models/PaginatedIncidentListResourceResponse.ts +90 -0
- package/src/models/RegisterGroupedByRosterResource.ts +4 -3
- package/src/models/RegisterListResource.ts +4 -6
- package/src/models/RegisterResource.ts +6 -4
- package/src/models/RosterLiteResource.ts +3 -4
- package/src/models/RosterResource.ts +3 -4
- package/src/models/RosterWithRegistersResource.ts +4 -3
- package/src/models/SecurityCompanyResource.ts +2 -3
- package/src/models/VenueLiteResource.ts +9 -0
- package/src/models/index.ts +4 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -25,6 +25,8 @@ src/models/IncidentFieldSchemasShowRequest.ts
|
|
|
25
25
|
src/models/IncidentFieldsResourceArrayResponse.ts
|
|
26
26
|
src/models/IncidentImageResource.ts
|
|
27
27
|
src/models/IncidentImageResourceArrayResponse.ts
|
|
28
|
+
src/models/IncidentListResource.ts
|
|
29
|
+
src/models/IncidentListResourceArrayResponse.ts
|
|
28
30
|
src/models/IncidentLiteResource.ts
|
|
29
31
|
src/models/IncidentLiteResourceArrayResponse.ts
|
|
30
32
|
src/models/IncidentLiteResourceStaff.ts
|
|
@@ -40,6 +42,7 @@ src/models/IncidentVideoUploadTokenResource.ts
|
|
|
40
42
|
src/models/IncidentVideoUploadTokenResourceArrayResponse.ts
|
|
41
43
|
src/models/IncidentsApproveRequest.ts
|
|
42
44
|
src/models/IncidentsExportPdfBulkRequest.ts
|
|
45
|
+
src/models/IncidentsListRequest.ts
|
|
43
46
|
src/models/IncidentsStoreRequest.ts
|
|
44
47
|
src/models/IncidentsUpdateRequest.ts
|
|
45
48
|
src/models/IncidentsVideosStoreRequest.ts
|
|
@@ -63,6 +66,7 @@ src/models/NotificationPreferenceResourceArrayResponse.ts
|
|
|
63
66
|
src/models/NotificationPreferencesStoreRequest.ts
|
|
64
67
|
src/models/NotificationTypeResource.ts
|
|
65
68
|
src/models/NotificationTypeResourceArrayResponse.ts
|
|
69
|
+
src/models/PaginatedIncidentListResourceResponse.ts
|
|
66
70
|
src/models/PaginatedLicenceListResourceResponse.ts
|
|
67
71
|
src/models/PaginatedLicenceResourceResponse.ts
|
|
68
72
|
src/models/PaginatedRegisterGroupedByRosterResourceResponse.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, 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';
|
|
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
|
}
|
|
@@ -33,6 +33,9 @@ export interface IncidentsExportPdfDownloadRequest {
|
|
|
33
33
|
export interface IncidentsExportPdfStatusRequest {
|
|
34
34
|
pdfExport: number;
|
|
35
35
|
}
|
|
36
|
+
export interface IncidentsListOperationRequest {
|
|
37
|
+
incidentsListRequest?: IncidentsListRequest;
|
|
38
|
+
}
|
|
36
39
|
export interface IncidentsShowRequest {
|
|
37
40
|
incident: number;
|
|
38
41
|
}
|
|
@@ -332,6 +335,14 @@ export declare class GeneralApi extends runtime.BaseAPI {
|
|
|
332
335
|
* Auto-generated: incidents.exportPdf.status
|
|
333
336
|
*/
|
|
334
337
|
incidentsExportPdfStatus(requestParameters: IncidentsExportPdfStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PdfExportResource>;
|
|
338
|
+
/**
|
|
339
|
+
* Auto-generated: incidents.list
|
|
340
|
+
*/
|
|
341
|
+
incidentsListRaw(requestParameters: IncidentsListOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedIncidentListResourceResponse>>;
|
|
342
|
+
/**
|
|
343
|
+
* Auto-generated: incidents.list
|
|
344
|
+
*/
|
|
345
|
+
incidentsList(requestParameters?: IncidentsListOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedIncidentListResourceResponse>;
|
|
335
346
|
/**
|
|
336
347
|
* Auto-generated: incidents.show
|
|
337
348
|
*/
|
package/dist/apis/GeneralApi.js
CHANGED
|
@@ -519,6 +519,61 @@ var GeneralApi = /** @class */ (function (_super) {
|
|
|
519
519
|
});
|
|
520
520
|
});
|
|
521
521
|
};
|
|
522
|
+
/**
|
|
523
|
+
* Auto-generated: incidents.list
|
|
524
|
+
*/
|
|
525
|
+
GeneralApi.prototype.incidentsListRaw = function (requestParameters, initOverrides) {
|
|
526
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
527
|
+
var queryParameters, headerParameters, token, tokenString, urlPath, response;
|
|
528
|
+
return __generator(this, function (_a) {
|
|
529
|
+
switch (_a.label) {
|
|
530
|
+
case 0:
|
|
531
|
+
queryParameters = {};
|
|
532
|
+
headerParameters = {};
|
|
533
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
534
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
535
|
+
token = this.configuration.accessToken;
|
|
536
|
+
return [4 /*yield*/, token("bearerAuth", [])];
|
|
537
|
+
case 1:
|
|
538
|
+
tokenString = _a.sent();
|
|
539
|
+
if (tokenString) {
|
|
540
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
541
|
+
}
|
|
542
|
+
_a.label = 2;
|
|
543
|
+
case 2:
|
|
544
|
+
urlPath = "/api/incidents/list";
|
|
545
|
+
return [4 /*yield*/, this.request({
|
|
546
|
+
path: urlPath,
|
|
547
|
+
method: 'POST',
|
|
548
|
+
headers: headerParameters,
|
|
549
|
+
query: queryParameters,
|
|
550
|
+
body: (0, index_1.IncidentsListRequestToJSON)(requestParameters['incidentsListRequest']),
|
|
551
|
+
}, initOverrides)];
|
|
552
|
+
case 3:
|
|
553
|
+
response = _a.sent();
|
|
554
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedIncidentListResourceResponseFromJSON)(jsonValue); })];
|
|
555
|
+
}
|
|
556
|
+
});
|
|
557
|
+
});
|
|
558
|
+
};
|
|
559
|
+
/**
|
|
560
|
+
* Auto-generated: incidents.list
|
|
561
|
+
*/
|
|
562
|
+
GeneralApi.prototype.incidentsList = function () {
|
|
563
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
564
|
+
var response;
|
|
565
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
566
|
+
return __generator(this, function (_a) {
|
|
567
|
+
switch (_a.label) {
|
|
568
|
+
case 0: return [4 /*yield*/, this.incidentsListRaw(requestParameters, initOverrides)];
|
|
569
|
+
case 1:
|
|
570
|
+
response = _a.sent();
|
|
571
|
+
return [4 /*yield*/, response.value()];
|
|
572
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
573
|
+
}
|
|
574
|
+
});
|
|
575
|
+
});
|
|
576
|
+
};
|
|
522
577
|
/**
|
|
523
578
|
* Auto-generated: incidents.show
|
|
524
579
|
*/
|
|
@@ -0,0 +1,101 @@
|
|
|
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 { VenueLiteResource } from './VenueLiteResource';
|
|
13
|
+
import type { SecurityCompanyLiteResource } from './SecurityCompanyLiteResource';
|
|
14
|
+
import type { UserLiteResource } from './UserLiteResource';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface IncidentListResource
|
|
19
|
+
*/
|
|
20
|
+
export interface IncidentListResource {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {number}
|
|
24
|
+
* @memberof IncidentListResource
|
|
25
|
+
*/
|
|
26
|
+
id: number;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {VenueLiteResource}
|
|
30
|
+
* @memberof IncidentListResource
|
|
31
|
+
*/
|
|
32
|
+
venue?: VenueLiteResource;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {SecurityCompanyLiteResource}
|
|
36
|
+
* @memberof IncidentListResource
|
|
37
|
+
*/
|
|
38
|
+
securityCompany?: SecurityCompanyLiteResource;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {UserLiteResource}
|
|
42
|
+
* @memberof IncidentListResource
|
|
43
|
+
*/
|
|
44
|
+
user?: UserLiteResource;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {UserLiteResource}
|
|
48
|
+
* @memberof IncidentListResource
|
|
49
|
+
*/
|
|
50
|
+
approvedByUser?: UserLiteResource;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof IncidentListResource
|
|
55
|
+
*/
|
|
56
|
+
title?: string | null;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof IncidentListResource
|
|
61
|
+
*/
|
|
62
|
+
dutyManager?: string | null;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {Date}
|
|
66
|
+
* @memberof IncidentListResource
|
|
67
|
+
*/
|
|
68
|
+
incidentDateTime?: Date | null;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {string}
|
|
72
|
+
* @memberof IncidentListResource
|
|
73
|
+
*/
|
|
74
|
+
state?: string | null;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {boolean}
|
|
78
|
+
* @memberof IncidentListResource
|
|
79
|
+
*/
|
|
80
|
+
submittedByGuard: boolean;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @type {Date}
|
|
84
|
+
* @memberof IncidentListResource
|
|
85
|
+
*/
|
|
86
|
+
approvedAt?: Date | null;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @type {Date}
|
|
90
|
+
* @memberof IncidentListResource
|
|
91
|
+
*/
|
|
92
|
+
createdAt?: Date | null;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Check if a given object implements the IncidentListResource interface.
|
|
96
|
+
*/
|
|
97
|
+
export declare function instanceOfIncidentListResource(value: object): value is IncidentListResource;
|
|
98
|
+
export declare function IncidentListResourceFromJSON(json: any): IncidentListResource;
|
|
99
|
+
export declare function IncidentListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentListResource;
|
|
100
|
+
export declare function IncidentListResourceToJSON(json: any): IncidentListResource;
|
|
101
|
+
export declare function IncidentListResourceToJSONTyped(value?: IncidentListResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,79 @@
|
|
|
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.instanceOfIncidentListResource = instanceOfIncidentListResource;
|
|
17
|
+
exports.IncidentListResourceFromJSON = IncidentListResourceFromJSON;
|
|
18
|
+
exports.IncidentListResourceFromJSONTyped = IncidentListResourceFromJSONTyped;
|
|
19
|
+
exports.IncidentListResourceToJSON = IncidentListResourceToJSON;
|
|
20
|
+
exports.IncidentListResourceToJSONTyped = IncidentListResourceToJSONTyped;
|
|
21
|
+
var VenueLiteResource_1 = require("./VenueLiteResource");
|
|
22
|
+
var SecurityCompanyLiteResource_1 = require("./SecurityCompanyLiteResource");
|
|
23
|
+
var UserLiteResource_1 = require("./UserLiteResource");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the IncidentListResource interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfIncidentListResource(value) {
|
|
28
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('submittedByGuard' in value) || value['submittedByGuard'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
function IncidentListResourceFromJSON(json) {
|
|
35
|
+
return IncidentListResourceFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
function IncidentListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'id': json['id'],
|
|
43
|
+
'venue': json['venue'] == null ? undefined : (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
|
|
44
|
+
'securityCompany': json['securityCompany'] == null ? undefined : (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceFromJSON)(json['securityCompany']),
|
|
45
|
+
'user': json['user'] == null ? undefined : (0, UserLiteResource_1.UserLiteResourceFromJSON)(json['user']),
|
|
46
|
+
'approvedByUser': json['approvedByUser'] == null ? undefined : (0, UserLiteResource_1.UserLiteResourceFromJSON)(json['approvedByUser']),
|
|
47
|
+
'title': json['title'] == null ? undefined : json['title'],
|
|
48
|
+
'dutyManager': json['dutyManager'] == null ? undefined : json['dutyManager'],
|
|
49
|
+
'incidentDateTime': json['incidentDateTime'] == null ? undefined : (new Date(json['incidentDateTime'])),
|
|
50
|
+
'state': json['state'] == null ? undefined : json['state'],
|
|
51
|
+
'submittedByGuard': json['submittedByGuard'],
|
|
52
|
+
'approvedAt': json['approvedAt'] == null ? undefined : (new Date(json['approvedAt'])),
|
|
53
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function IncidentListResourceToJSON(json) {
|
|
57
|
+
return IncidentListResourceToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
function IncidentListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
60
|
+
var _a, _b, _c;
|
|
61
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'id': value['id'],
|
|
67
|
+
'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
|
|
68
|
+
'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceToJSON)(value['securityCompany']),
|
|
69
|
+
'user': (0, UserLiteResource_1.UserLiteResourceToJSON)(value['user']),
|
|
70
|
+
'approvedByUser': (0, UserLiteResource_1.UserLiteResourceToJSON)(value['approvedByUser']),
|
|
71
|
+
'title': value['title'],
|
|
72
|
+
'dutyManager': value['dutyManager'],
|
|
73
|
+
'incidentDateTime': value['incidentDateTime'] === null ? null : ((_a = value['incidentDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
74
|
+
'state': value['state'],
|
|
75
|
+
'submittedByGuard': value['submittedByGuard'],
|
|
76
|
+
'approvedAt': value['approvedAt'] === null ? null : ((_b = value['approvedAt']) === null || _b === void 0 ? void 0 : _b.toISOString()),
|
|
77
|
+
'createdAt': value['createdAt'] === null ? null : ((_c = value['createdAt']) === null || _c === void 0 ? void 0 : _c.toISOString()),
|
|
78
|
+
};
|
|
79
|
+
}
|
|
@@ -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 { IncidentListResource } from './IncidentListResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface IncidentListResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface IncidentListResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<IncidentListResource>}
|
|
22
|
+
* @memberof IncidentListResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<IncidentListResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the IncidentListResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfIncidentListResourceArrayResponse(value: object): value is IncidentListResourceArrayResponse;
|
|
30
|
+
export declare function IncidentListResourceArrayResponseFromJSON(json: any): IncidentListResourceArrayResponse;
|
|
31
|
+
export declare function IncidentListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentListResourceArrayResponse;
|
|
32
|
+
export declare function IncidentListResourceArrayResponseToJSON(json: any): IncidentListResourceArrayResponse;
|
|
33
|
+
export declare function IncidentListResourceArrayResponseToJSONTyped(value?: IncidentListResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfIncidentListResourceArrayResponse = instanceOfIncidentListResourceArrayResponse;
|
|
17
|
+
exports.IncidentListResourceArrayResponseFromJSON = IncidentListResourceArrayResponseFromJSON;
|
|
18
|
+
exports.IncidentListResourceArrayResponseFromJSONTyped = IncidentListResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.IncidentListResourceArrayResponseToJSON = IncidentListResourceArrayResponseToJSON;
|
|
20
|
+
exports.IncidentListResourceArrayResponseToJSONTyped = IncidentListResourceArrayResponseToJSONTyped;
|
|
21
|
+
var IncidentListResource_1 = require("./IncidentListResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the IncidentListResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfIncidentListResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function IncidentListResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return IncidentListResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function IncidentListResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(IncidentListResource_1.IncidentListResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function IncidentListResourceArrayResponseToJSON(json) {
|
|
40
|
+
return IncidentListResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function IncidentListResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'data': value['data'] == null ? undefined : (value['data'].map(IncidentListResource_1.IncidentListResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,151 @@
|
|
|
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 IncidentsListRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface IncidentsListRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof IncidentsListRequest
|
|
22
|
+
*/
|
|
23
|
+
search?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof IncidentsListRequest
|
|
28
|
+
*/
|
|
29
|
+
sortBy?: IncidentsListRequestSortByEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof IncidentsListRequest
|
|
34
|
+
*/
|
|
35
|
+
sortDirection?: IncidentsListRequestSortDirectionEnum;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof IncidentsListRequest
|
|
40
|
+
*/
|
|
41
|
+
perPage?: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof IncidentsListRequest
|
|
46
|
+
*/
|
|
47
|
+
page?: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Array<string>}
|
|
51
|
+
* @memberof IncidentsListRequest
|
|
52
|
+
*/
|
|
53
|
+
venueId?: Array<string>;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Array<string>}
|
|
57
|
+
* @memberof IncidentsListRequest
|
|
58
|
+
*/
|
|
59
|
+
securityCompanyId?: Array<string>;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {Array<string>}
|
|
63
|
+
* @memberof IncidentsListRequest
|
|
64
|
+
*/
|
|
65
|
+
rosterId?: Array<string>;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {Array<string>}
|
|
69
|
+
* @memberof IncidentsListRequest
|
|
70
|
+
*/
|
|
71
|
+
userId?: Array<string>;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {Array<string>}
|
|
75
|
+
* @memberof IncidentsListRequest
|
|
76
|
+
*/
|
|
77
|
+
approvedByUserId?: Array<string>;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {Array<string>}
|
|
81
|
+
* @memberof IncidentsListRequest
|
|
82
|
+
*/
|
|
83
|
+
hasApprovedAt?: Array<string>;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {Date}
|
|
87
|
+
* @memberof IncidentsListRequest
|
|
88
|
+
*/
|
|
89
|
+
beforeApprovedAt?: Date;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {Date}
|
|
93
|
+
* @memberof IncidentsListRequest
|
|
94
|
+
*/
|
|
95
|
+
afterApprovedAt?: Date;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {Date}
|
|
99
|
+
* @memberof IncidentsListRequest
|
|
100
|
+
*/
|
|
101
|
+
beforeCreatedAt?: Date;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @type {Date}
|
|
105
|
+
* @memberof IncidentsListRequest
|
|
106
|
+
*/
|
|
107
|
+
afterCreatedAt?: Date;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @type {number}
|
|
111
|
+
* @memberof IncidentsListRequest
|
|
112
|
+
*/
|
|
113
|
+
relatedId?: number;
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @type {string}
|
|
117
|
+
* @memberof IncidentsListRequest
|
|
118
|
+
*/
|
|
119
|
+
relatedType?: string;
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
* @type {boolean}
|
|
123
|
+
* @memberof IncidentsListRequest
|
|
124
|
+
*/
|
|
125
|
+
includesRelations?: boolean;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* @export
|
|
129
|
+
*/
|
|
130
|
+
export declare const IncidentsListRequestSortByEnum: {
|
|
131
|
+
readonly Id: "id";
|
|
132
|
+
readonly CreatedAt: "created_at";
|
|
133
|
+
readonly ApprovedAt: "approved_at";
|
|
134
|
+
};
|
|
135
|
+
export type IncidentsListRequestSortByEnum = typeof IncidentsListRequestSortByEnum[keyof typeof IncidentsListRequestSortByEnum];
|
|
136
|
+
/**
|
|
137
|
+
* @export
|
|
138
|
+
*/
|
|
139
|
+
export declare const IncidentsListRequestSortDirectionEnum: {
|
|
140
|
+
readonly Asc: "asc";
|
|
141
|
+
readonly Desc: "desc";
|
|
142
|
+
};
|
|
143
|
+
export type IncidentsListRequestSortDirectionEnum = typeof IncidentsListRequestSortDirectionEnum[keyof typeof IncidentsListRequestSortDirectionEnum];
|
|
144
|
+
/**
|
|
145
|
+
* Check if a given object implements the IncidentsListRequest interface.
|
|
146
|
+
*/
|
|
147
|
+
export declare function instanceOfIncidentsListRequest(value: object): value is IncidentsListRequest;
|
|
148
|
+
export declare function IncidentsListRequestFromJSON(json: any): IncidentsListRequest;
|
|
149
|
+
export declare function IncidentsListRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentsListRequest;
|
|
150
|
+
export declare function IncidentsListRequestToJSON(json: any): IncidentsListRequest;
|
|
151
|
+
export declare function IncidentsListRequestToJSONTyped(value?: IncidentsListRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,99 @@
|
|
|
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.IncidentsListRequestSortDirectionEnum = exports.IncidentsListRequestSortByEnum = void 0;
|
|
17
|
+
exports.instanceOfIncidentsListRequest = instanceOfIncidentsListRequest;
|
|
18
|
+
exports.IncidentsListRequestFromJSON = IncidentsListRequestFromJSON;
|
|
19
|
+
exports.IncidentsListRequestFromJSONTyped = IncidentsListRequestFromJSONTyped;
|
|
20
|
+
exports.IncidentsListRequestToJSON = IncidentsListRequestToJSON;
|
|
21
|
+
exports.IncidentsListRequestToJSONTyped = IncidentsListRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.IncidentsListRequestSortByEnum = {
|
|
26
|
+
Id: 'id',
|
|
27
|
+
CreatedAt: 'created_at',
|
|
28
|
+
ApprovedAt: 'approved_at'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
exports.IncidentsListRequestSortDirectionEnum = {
|
|
34
|
+
Asc: 'asc',
|
|
35
|
+
Desc: 'desc'
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the IncidentsListRequest interface.
|
|
39
|
+
*/
|
|
40
|
+
function instanceOfIncidentsListRequest(value) {
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
function IncidentsListRequestFromJSON(json) {
|
|
44
|
+
return IncidentsListRequestFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function IncidentsListRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'search': json['search'] == null ? undefined : json['search'],
|
|
52
|
+
'sortBy': json['sort_by'] == null ? undefined : json['sort_by'],
|
|
53
|
+
'sortDirection': json['sort_direction'] == null ? undefined : json['sort_direction'],
|
|
54
|
+
'perPage': json['per_page'] == null ? undefined : json['per_page'],
|
|
55
|
+
'page': json['page'] == null ? undefined : json['page'],
|
|
56
|
+
'venueId': json['venue_id'] == null ? undefined : json['venue_id'],
|
|
57
|
+
'securityCompanyId': json['security_company_id'] == null ? undefined : json['security_company_id'],
|
|
58
|
+
'rosterId': json['roster_id'] == null ? undefined : json['roster_id'],
|
|
59
|
+
'userId': json['user_id'] == null ? undefined : json['user_id'],
|
|
60
|
+
'approvedByUserId': json['approved_by_user_id'] == null ? undefined : json['approved_by_user_id'],
|
|
61
|
+
'hasApprovedAt': json['has_approved_at'] == null ? undefined : json['has_approved_at'],
|
|
62
|
+
'beforeApprovedAt': json['before_approved_at'] == null ? undefined : (new Date(json['before_approved_at'])),
|
|
63
|
+
'afterApprovedAt': json['after_approved_at'] == null ? undefined : (new Date(json['after_approved_at'])),
|
|
64
|
+
'beforeCreatedAt': json['before_created_at'] == null ? undefined : (new Date(json['before_created_at'])),
|
|
65
|
+
'afterCreatedAt': json['after_created_at'] == null ? undefined : (new Date(json['after_created_at'])),
|
|
66
|
+
'relatedId': json['related_id'] == null ? undefined : json['related_id'],
|
|
67
|
+
'relatedType': json['related_type'] == null ? undefined : json['related_type'],
|
|
68
|
+
'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
function IncidentsListRequestToJSON(json) {
|
|
72
|
+
return IncidentsListRequestToJSONTyped(json, false);
|
|
73
|
+
}
|
|
74
|
+
function IncidentsListRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
75
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
76
|
+
if (value == null) {
|
|
77
|
+
return value;
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
'search': value['search'],
|
|
81
|
+
'sort_by': value['sortBy'],
|
|
82
|
+
'sort_direction': value['sortDirection'],
|
|
83
|
+
'per_page': value['perPage'],
|
|
84
|
+
'page': value['page'],
|
|
85
|
+
'venue_id': value['venueId'],
|
|
86
|
+
'security_company_id': value['securityCompanyId'],
|
|
87
|
+
'roster_id': value['rosterId'],
|
|
88
|
+
'user_id': value['userId'],
|
|
89
|
+
'approved_by_user_id': value['approvedByUserId'],
|
|
90
|
+
'has_approved_at': value['hasApprovedAt'],
|
|
91
|
+
'before_approved_at': value['beforeApprovedAt'] == null ? undefined : ((value['beforeApprovedAt']).toISOString()),
|
|
92
|
+
'after_approved_at': value['afterApprovedAt'] == null ? undefined : ((value['afterApprovedAt']).toISOString()),
|
|
93
|
+
'before_created_at': value['beforeCreatedAt'] == null ? undefined : ((value['beforeCreatedAt']).toISOString()),
|
|
94
|
+
'after_created_at': value['afterCreatedAt'] == null ? undefined : ((value['afterCreatedAt']).toISOString()),
|
|
95
|
+
'related_id': value['relatedId'],
|
|
96
|
+
'related_type': value['relatedType'],
|
|
97
|
+
'includes_relations': value['includesRelations'],
|
|
98
|
+
};
|
|
99
|
+
}
|