@digital8/security-registers-backend-ts-sdk 0.0.249 → 0.0.251
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/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +1 -3
- package/dist/models/AssetResource.d.ts +1 -1
- package/dist/models/AssetResource.js +3 -1
- package/dist/models/IncidentListResource.d.ts +95 -0
- package/dist/models/IncidentListResource.js +75 -0
- package/dist/models/IncidentListResourceArrayResponse.d.ts +33 -0
- package/dist/models/IncidentListResourceArrayResponse.js +50 -0
- package/dist/models/IncidentResource.d.ts +6 -0
- package/dist/models/IncidentResource.js +2 -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/RegisterListResource.d.ts +4 -4
- package/dist/models/RegisterListResource.js +6 -5
- package/dist/models/RegisterResource.d.ts +3 -3
- package/dist/models/RegisterResource.js +8 -10
- 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/AddressResource.ts +2 -3
- package/src/models/AssetResource.ts +3 -2
- package/src/models/IncidentListResource.ts +168 -0
- package/src/models/IncidentListResourceArrayResponse.ts +73 -0
- package/src/models/IncidentResource.ts +8 -0
- package/src/models/IncidentsListRequest.ts +222 -0
- package/src/models/PaginatedIncidentListResourceResponse.ts +90 -0
- package/src/models/RegisterListResource.ts +8 -8
- package/src/models/RegisterResource.ts +8 -9
- 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
|
|
@@ -39,6 +41,7 @@ src/models/IncidentVideoSignedUrlResourceArrayResponse.ts
|
|
|
39
41
|
src/models/IncidentVideoUploadTokenResource.ts
|
|
40
42
|
src/models/IncidentVideoUploadTokenResourceArrayResponse.ts
|
|
41
43
|
src/models/IncidentsApproveRequest.ts
|
|
44
|
+
src/models/IncidentsListRequest.ts
|
|
42
45
|
src/models/IncidentsStoreRequest.ts
|
|
43
46
|
src/models/IncidentsUpdateRequest.ts
|
|
44
47
|
src/models/IncidentsVideosStoreRequest.ts
|
|
@@ -62,6 +65,7 @@ src/models/NotificationPreferenceResourceArrayResponse.ts
|
|
|
62
65
|
src/models/NotificationPreferencesStoreRequest.ts
|
|
63
66
|
src/models/NotificationTypeResource.ts
|
|
64
67
|
src/models/NotificationTypeResourceArrayResponse.ts
|
|
68
|
+
src/models/PaginatedIncidentListResourceResponse.ts
|
|
65
69
|
src/models/PaginatedLicenceListResourceResponse.ts
|
|
66
70
|
src/models/PaginatedLicenceResourceResponse.ts
|
|
67
71
|
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.251
|
|
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.251 --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, 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';
|
|
14
14
|
export interface DestroyUserRequest {
|
|
15
15
|
user: number;
|
|
16
16
|
}
|
|
@@ -21,6 +21,9 @@ export interface IncidentsApproveOperationRequest {
|
|
|
21
21
|
incident: number;
|
|
22
22
|
incidentsApproveRequest?: IncidentsApproveRequest;
|
|
23
23
|
}
|
|
24
|
+
export interface IncidentsListOperationRequest {
|
|
25
|
+
incidentsListRequest?: IncidentsListRequest;
|
|
26
|
+
}
|
|
24
27
|
export interface IncidentsShowRequest {
|
|
25
28
|
incident: number;
|
|
26
29
|
}
|
|
@@ -288,6 +291,14 @@ export declare class GeneralApi extends runtime.BaseAPI {
|
|
|
288
291
|
* Auto-generated: incidents.approve
|
|
289
292
|
*/
|
|
290
293
|
incidentsApprove(requestParameters: IncidentsApproveOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IncidentResource>;
|
|
294
|
+
/**
|
|
295
|
+
* Auto-generated: incidents.list
|
|
296
|
+
*/
|
|
297
|
+
incidentsListRaw(requestParameters: IncidentsListOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedIncidentListResourceResponse>>;
|
|
298
|
+
/**
|
|
299
|
+
* Auto-generated: incidents.list
|
|
300
|
+
*/
|
|
301
|
+
incidentsList(requestParameters?: IncidentsListOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedIncidentListResourceResponse>;
|
|
291
302
|
/**
|
|
292
303
|
* Auto-generated: incidents.show
|
|
293
304
|
*/
|
package/dist/apis/GeneralApi.js
CHANGED
|
@@ -296,6 +296,61 @@ var GeneralApi = /** @class */ (function (_super) {
|
|
|
296
296
|
});
|
|
297
297
|
});
|
|
298
298
|
};
|
|
299
|
+
/**
|
|
300
|
+
* Auto-generated: incidents.list
|
|
301
|
+
*/
|
|
302
|
+
GeneralApi.prototype.incidentsListRaw = 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
|
+
queryParameters = {};
|
|
309
|
+
headerParameters = {};
|
|
310
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
311
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
312
|
+
token = this.configuration.accessToken;
|
|
313
|
+
return [4 /*yield*/, token("bearerAuth", [])];
|
|
314
|
+
case 1:
|
|
315
|
+
tokenString = _a.sent();
|
|
316
|
+
if (tokenString) {
|
|
317
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
318
|
+
}
|
|
319
|
+
_a.label = 2;
|
|
320
|
+
case 2:
|
|
321
|
+
urlPath = "/api/incidents/list";
|
|
322
|
+
return [4 /*yield*/, this.request({
|
|
323
|
+
path: urlPath,
|
|
324
|
+
method: 'POST',
|
|
325
|
+
headers: headerParameters,
|
|
326
|
+
query: queryParameters,
|
|
327
|
+
body: (0, index_1.IncidentsListRequestToJSON)(requestParameters['incidentsListRequest']),
|
|
328
|
+
}, initOverrides)];
|
|
329
|
+
case 3:
|
|
330
|
+
response = _a.sent();
|
|
331
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedIncidentListResourceResponseFromJSON)(jsonValue); })];
|
|
332
|
+
}
|
|
333
|
+
});
|
|
334
|
+
});
|
|
335
|
+
};
|
|
336
|
+
/**
|
|
337
|
+
* Auto-generated: incidents.list
|
|
338
|
+
*/
|
|
339
|
+
GeneralApi.prototype.incidentsList = function () {
|
|
340
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
341
|
+
var response;
|
|
342
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
343
|
+
return __generator(this, function (_a) {
|
|
344
|
+
switch (_a.label) {
|
|
345
|
+
case 0: return [4 /*yield*/, this.incidentsListRaw(requestParameters, initOverrides)];
|
|
346
|
+
case 1:
|
|
347
|
+
response = _a.sent();
|
|
348
|
+
return [4 /*yield*/, response.value()];
|
|
349
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
350
|
+
}
|
|
351
|
+
});
|
|
352
|
+
});
|
|
353
|
+
};
|
|
299
354
|
/**
|
|
300
355
|
* Auto-generated: incidents.show
|
|
301
356
|
*/
|
|
@@ -24,8 +24,6 @@ exports.AddressResourceToJSONTyped = AddressResourceToJSONTyped;
|
|
|
24
24
|
function instanceOfAddressResource(value) {
|
|
25
25
|
if (!('addressLine1' in value) || value['addressLine1'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
-
if (!('addressLine2' in value) || value['addressLine2'] === undefined)
|
|
28
|
-
return false;
|
|
29
27
|
if (!('suburb' in value) || value['suburb'] === undefined)
|
|
30
28
|
return false;
|
|
31
29
|
if (!('city' in value) || value['city'] === undefined)
|
|
@@ -50,7 +48,7 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
48
|
return {
|
|
51
49
|
'id': json['id'] == null ? undefined : json['id'],
|
|
52
50
|
'addressLine1': json['addressLine1'],
|
|
53
|
-
'addressLine2': json['addressLine2'],
|
|
51
|
+
'addressLine2': json['addressLine2'] == null ? undefined : json['addressLine2'],
|
|
54
52
|
'suburb': json['suburb'],
|
|
55
53
|
'city': json['city'],
|
|
56
54
|
'state': json['state'],
|
|
@@ -30,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,95 @@
|
|
|
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 {Date}
|
|
60
|
+
* @memberof IncidentListResource
|
|
61
|
+
*/
|
|
62
|
+
incidentDateTime?: Date | null;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof IncidentListResource
|
|
67
|
+
*/
|
|
68
|
+
state?: string | null;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {Date}
|
|
72
|
+
* @memberof IncidentListResource
|
|
73
|
+
*/
|
|
74
|
+
approvedAt?: Date | null;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {Date}
|
|
78
|
+
* @memberof IncidentListResource
|
|
79
|
+
*/
|
|
80
|
+
createdAt?: Date | null;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @type {Date}
|
|
84
|
+
* @memberof IncidentListResource
|
|
85
|
+
*/
|
|
86
|
+
updatedAt?: Date | null;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Check if a given object implements the IncidentListResource interface.
|
|
90
|
+
*/
|
|
91
|
+
export declare function instanceOfIncidentListResource(value: object): value is IncidentListResource;
|
|
92
|
+
export declare function IncidentListResourceFromJSON(json: any): IncidentListResource;
|
|
93
|
+
export declare function IncidentListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentListResource;
|
|
94
|
+
export declare function IncidentListResourceToJSON(json: any): IncidentListResource;
|
|
95
|
+
export declare function IncidentListResourceToJSONTyped(value?: IncidentListResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,75 @@
|
|
|
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
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function IncidentListResourceFromJSON(json) {
|
|
33
|
+
return IncidentListResourceFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function IncidentListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'id': json['id'],
|
|
41
|
+
'venue': json['venue'] == null ? undefined : (0, VenueLiteResource_1.VenueLiteResourceFromJSON)(json['venue']),
|
|
42
|
+
'securityCompany': json['securityCompany'] == null ? undefined : (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceFromJSON)(json['securityCompany']),
|
|
43
|
+
'user': json['user'] == null ? undefined : (0, UserLiteResource_1.UserLiteResourceFromJSON)(json['user']),
|
|
44
|
+
'approvedByUser': json['approvedByUser'] == null ? undefined : (0, UserLiteResource_1.UserLiteResourceFromJSON)(json['approvedByUser']),
|
|
45
|
+
'title': json['title'] == null ? undefined : json['title'],
|
|
46
|
+
'incidentDateTime': json['incidentDateTime'] == null ? undefined : (new Date(json['incidentDateTime'])),
|
|
47
|
+
'state': json['state'] == null ? undefined : json['state'],
|
|
48
|
+
'approvedAt': json['approvedAt'] == null ? undefined : (new Date(json['approvedAt'])),
|
|
49
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
50
|
+
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function IncidentListResourceToJSON(json) {
|
|
54
|
+
return IncidentListResourceToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function IncidentListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
57
|
+
var _a, _b, _c, _d;
|
|
58
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'id': value['id'],
|
|
64
|
+
'venue': (0, VenueLiteResource_1.VenueLiteResourceToJSON)(value['venue']),
|
|
65
|
+
'securityCompany': (0, SecurityCompanyLiteResource_1.SecurityCompanyLiteResourceToJSON)(value['securityCompany']),
|
|
66
|
+
'user': (0, UserLiteResource_1.UserLiteResourceToJSON)(value['user']),
|
|
67
|
+
'approvedByUser': (0, UserLiteResource_1.UserLiteResourceToJSON)(value['approvedByUser']),
|
|
68
|
+
'title': value['title'],
|
|
69
|
+
'incidentDateTime': value['incidentDateTime'] === null ? null : ((_a = value['incidentDateTime']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
70
|
+
'state': value['state'],
|
|
71
|
+
'approvedAt': value['approvedAt'] === null ? null : ((_b = value['approvedAt']) === null || _b === void 0 ? void 0 : _b.toISOString()),
|
|
72
|
+
'createdAt': value['createdAt'] === null ? null : ((_c = value['createdAt']) === null || _c === void 0 ? void 0 : _c.toISOString()),
|
|
73
|
+
'updatedAt': value['updatedAt'] === null ? null : ((_d = value['updatedAt']) === null || _d === void 0 ? void 0 : _d.toISOString()),
|
|
74
|
+
};
|
|
75
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -107,6 +107,12 @@ export interface IncidentResource {
|
|
|
107
107
|
* @memberof IncidentResource
|
|
108
108
|
*/
|
|
109
109
|
videos: Array<IncidentVideoResource> | null;
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* @type {string}
|
|
113
|
+
* @memberof IncidentResource
|
|
114
|
+
*/
|
|
115
|
+
state?: string | null;
|
|
110
116
|
}
|
|
111
117
|
/**
|
|
112
118
|
* Check if a given object implements the IncidentResource interface.
|
|
@@ -76,6 +76,7 @@ function IncidentResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
76
76
|
'fields': json['fields'],
|
|
77
77
|
'fieldAudits': (json['fieldAudits'] == null ? null : json['fieldAudits'].map(IncidentFieldAuditResource_1.IncidentFieldAuditResourceFromJSON)),
|
|
78
78
|
'videos': (json['videos'] == null ? null : json['videos'].map(IncidentVideoResource_1.IncidentVideoResourceFromJSON)),
|
|
79
|
+
'state': json['state'] == null ? undefined : json['state'],
|
|
79
80
|
};
|
|
80
81
|
}
|
|
81
82
|
function IncidentResourceToJSON(json) {
|
|
@@ -102,5 +103,6 @@ function IncidentResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
|
102
103
|
'fields': value['fields'],
|
|
103
104
|
'fieldAudits': (value['fieldAudits'] == null ? null : value['fieldAudits'].map(IncidentFieldAuditResource_1.IncidentFieldAuditResourceToJSON)),
|
|
104
105
|
'videos': (value['videos'] == null ? null : value['videos'].map(IncidentVideoResource_1.IncidentVideoResourceToJSON)),
|
|
106
|
+
'state': value['state'],
|
|
105
107
|
};
|
|
106
108
|
}
|
|
@@ -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;
|