@digital8/security-registers-backend-ts-sdk 0.0.251 → 0.0.253
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +0 -12
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +1 -83
- package/dist/apis/GeneralApi.js +0 -407
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +3 -1
- package/dist/models/IncidentResource.d.ts +0 -13
- package/dist/models/IncidentResource.js +0 -7
- package/dist/models/RegisterGroupedByRosterResource.d.ts +1 -1
- package/dist/models/RegisterGroupedByRosterResource.js +4 -3
- package/dist/models/RegisterListResource.d.ts +3 -3
- package/dist/models/RegisterListResource.js +7 -5
- package/dist/models/RegisterResource.d.ts +2 -2
- package/dist/models/RegisterResource.js +3 -3
- package/dist/models/RosterListResource.d.ts +1 -1
- package/dist/models/RosterListResource.js +4 -3
- package/dist/models/index.d.ts +0 -12
- package/dist/models/index.js +0 -12
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +0 -394
- package/src/models/AddressResource.ts +3 -2
- package/src/models/IncidentResource.ts +0 -24
- package/src/models/RegisterGroupedByRosterResource.ts +4 -3
- package/src/models/RegisterListResource.ts +8 -7
- package/src/models/RegisterResource.ts +5 -5
- package/src/models/RosterListResource.ts +4 -3
- package/src/models/index.ts +0 -12
- package/dist/models/IncidentListResource.d.ts +0 -95
- package/dist/models/IncidentListResource.js +0 -75
- package/dist/models/IncidentListResourceArrayResponse.d.ts +0 -33
- package/dist/models/IncidentListResourceArrayResponse.js +0 -50
- package/dist/models/IncidentVideoResource.d.ts +0 -74
- package/dist/models/IncidentVideoResource.js +0 -72
- package/dist/models/IncidentVideoResourceArrayResponse.d.ts +0 -33
- package/dist/models/IncidentVideoResourceArrayResponse.js +0 -50
- package/dist/models/IncidentVideoSignedUrlResource.d.ts +0 -32
- package/dist/models/IncidentVideoSignedUrlResource.js +0 -51
- package/dist/models/IncidentVideoSignedUrlResourceArrayResponse.d.ts +0 -33
- package/dist/models/IncidentVideoSignedUrlResourceArrayResponse.js +0 -50
- package/dist/models/IncidentVideoUploadTokenResource.d.ts +0 -50
- package/dist/models/IncidentVideoUploadTokenResource.js +0 -63
- package/dist/models/IncidentVideoUploadTokenResourceArrayResponse.d.ts +0 -33
- package/dist/models/IncidentVideoUploadTokenResourceArrayResponse.js +0 -50
- package/dist/models/IncidentsListRequest.d.ts +0 -151
- package/dist/models/IncidentsListRequest.js +0 -99
- package/dist/models/IncidentsVideosStoreRequest.d.ts +0 -44
- package/dist/models/IncidentsVideosStoreRequest.js +0 -59
- package/dist/models/IncidentsVideosUploadTokenRequest.d.ts +0 -44
- package/dist/models/IncidentsVideosUploadTokenRequest.js +0 -59
- package/dist/models/PaginatedIncidentListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedIncidentListResourceResponse.js +0 -57
- package/src/models/IncidentListResource.ts +0 -168
- package/src/models/IncidentListResourceArrayResponse.ts +0 -73
- package/src/models/IncidentVideoResource.ts +0 -125
- package/src/models/IncidentVideoResourceArrayResponse.ts +0 -73
- package/src/models/IncidentVideoSignedUrlResource.ts +0 -66
- package/src/models/IncidentVideoSignedUrlResourceArrayResponse.ts +0 -73
- package/src/models/IncidentVideoUploadTokenResource.ts +0 -93
- package/src/models/IncidentVideoUploadTokenResourceArrayResponse.ts +0 -73
- package/src/models/IncidentsListRequest.ts +0 -222
- package/src/models/IncidentsVideosStoreRequest.ts +0 -84
- package/src/models/IncidentsVideosUploadTokenRequest.ts +0 -84
- package/src/models/PaginatedIncidentListResourceResponse.ts +0 -90
|
@@ -63,7 +63,7 @@ export interface RosterListResource {
|
|
|
63
63
|
* @type {Date}
|
|
64
64
|
* @memberof RosterListResource
|
|
65
65
|
*/
|
|
66
|
-
finishDateTime
|
|
66
|
+
finishDateTime: Date;
|
|
67
67
|
/**
|
|
68
68
|
*
|
|
69
69
|
* @type {boolean}
|
|
@@ -97,6 +97,7 @@ export function instanceOfRosterListResource(value: object): value is RosterList
|
|
|
97
97
|
if (!('venue' in value) || value['venue'] === undefined) return false;
|
|
98
98
|
if (!('securityCompany' in value) || value['securityCompany'] === undefined) return false;
|
|
99
99
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
100
|
+
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
|
|
100
101
|
if (!('isCompliant' in value) || value['isCompliant'] === undefined) return false;
|
|
101
102
|
if (!('isComplete' in value) || value['isComplete'] === undefined) return false;
|
|
102
103
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
@@ -118,7 +119,7 @@ export function RosterListResourceFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
118
119
|
'venue': VenueLiteResourceFromJSON(json['venue']),
|
|
119
120
|
'securityCompany': SecurityCompanyLiteResourceFromJSON(json['securityCompany']),
|
|
120
121
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
121
|
-
'finishDateTime':
|
|
122
|
+
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
122
123
|
'isCompliant': json['isCompliant'],
|
|
123
124
|
'isComplete': json['isComplete'],
|
|
124
125
|
'signOffStatus': json['signOffStatus'],
|
|
@@ -141,7 +142,7 @@ export function RosterListResourceToJSONTyped(value?: RosterListResource | null,
|
|
|
141
142
|
'venue': VenueLiteResourceToJSON(value['venue']),
|
|
142
143
|
'securityCompany': SecurityCompanyLiteResourceToJSON(value['securityCompany']),
|
|
143
144
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
144
|
-
'finishDateTime':
|
|
145
|
+
'finishDateTime': ((value['finishDateTime']).toISOString()),
|
|
145
146
|
'isCompliant': value['isCompliant'],
|
|
146
147
|
'isComplete': value['isComplete'],
|
|
147
148
|
'signOffStatus': value['signOffStatus'],
|
package/src/models/index.ts
CHANGED
|
@@ -19,8 +19,6 @@ export * from './IncidentFieldSchemasShowRequest';
|
|
|
19
19
|
export * from './IncidentFieldsResourceArrayResponse';
|
|
20
20
|
export * from './IncidentImageResource';
|
|
21
21
|
export * from './IncidentImageResourceArrayResponse';
|
|
22
|
-
export * from './IncidentListResource';
|
|
23
|
-
export * from './IncidentListResourceArrayResponse';
|
|
24
22
|
export * from './IncidentLiteResource';
|
|
25
23
|
export * from './IncidentLiteResourceArrayResponse';
|
|
26
24
|
export * from './IncidentLiteResourceStaff';
|
|
@@ -28,18 +26,9 @@ export * from './IncidentResource';
|
|
|
28
26
|
export * from './IncidentResourceArrayResponse';
|
|
29
27
|
export * from './IncidentVersionResource';
|
|
30
28
|
export * from './IncidentVersionResourceArrayResponse';
|
|
31
|
-
export * from './IncidentVideoResource';
|
|
32
|
-
export * from './IncidentVideoResourceArrayResponse';
|
|
33
|
-
export * from './IncidentVideoSignedUrlResource';
|
|
34
|
-
export * from './IncidentVideoSignedUrlResourceArrayResponse';
|
|
35
|
-
export * from './IncidentVideoUploadTokenResource';
|
|
36
|
-
export * from './IncidentVideoUploadTokenResourceArrayResponse';
|
|
37
29
|
export * from './IncidentsApproveRequest';
|
|
38
|
-
export * from './IncidentsListRequest';
|
|
39
30
|
export * from './IncidentsStoreRequest';
|
|
40
31
|
export * from './IncidentsUpdateRequest';
|
|
41
|
-
export * from './IncidentsVideosStoreRequest';
|
|
42
|
-
export * from './IncidentsVideosUploadTokenRequest';
|
|
43
32
|
export * from './IndexMinimalUserRequest';
|
|
44
33
|
export * from './IndexUserRequest';
|
|
45
34
|
export * from './LicenceListResource';
|
|
@@ -59,7 +48,6 @@ export * from './NotificationPreferenceResourceArrayResponse';
|
|
|
59
48
|
export * from './NotificationPreferencesStoreRequest';
|
|
60
49
|
export * from './NotificationTypeResource';
|
|
61
50
|
export * from './NotificationTypeResourceArrayResponse';
|
|
62
|
-
export * from './PaginatedIncidentListResourceResponse';
|
|
63
51
|
export * from './PaginatedLicenceListResourceResponse';
|
|
64
52
|
export * from './PaginatedLicenceResourceResponse';
|
|
65
53
|
export * from './PaginatedRegisterGroupedByRosterResourceResponse';
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* My API
|
|
3
|
-
* API documentation for my Laravel app
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
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;
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* My API
|
|
6
|
-
* API documentation for my Laravel app
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.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
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* My API
|
|
3
|
-
* API documentation for my Laravel app
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
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;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* My API
|
|
6
|
-
* API documentation for my Laravel app
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.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
|
-
}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* My API
|
|
3
|
-
* API documentation for my Laravel app
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface IncidentVideoResource
|
|
16
|
-
*/
|
|
17
|
-
export interface IncidentVideoResource {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof IncidentVideoResource
|
|
22
|
-
*/
|
|
23
|
-
id: number;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof IncidentVideoResource
|
|
28
|
-
*/
|
|
29
|
-
status: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof IncidentVideoResource
|
|
34
|
-
*/
|
|
35
|
-
originalFilename: string;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof IncidentVideoResource
|
|
40
|
-
*/
|
|
41
|
-
mimeType: string;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {number}
|
|
45
|
-
* @memberof IncidentVideoResource
|
|
46
|
-
*/
|
|
47
|
-
sizeBytes?: number | null;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {string}
|
|
51
|
-
* @memberof IncidentVideoResource
|
|
52
|
-
*/
|
|
53
|
-
failureReason?: string | null;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {Date}
|
|
57
|
-
* @memberof IncidentVideoResource
|
|
58
|
-
*/
|
|
59
|
-
createdAt?: Date | null;
|
|
60
|
-
/**
|
|
61
|
-
*
|
|
62
|
-
* @type {Date}
|
|
63
|
-
* @memberof IncidentVideoResource
|
|
64
|
-
*/
|
|
65
|
-
updatedAt?: Date | null;
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Check if a given object implements the IncidentVideoResource interface.
|
|
69
|
-
*/
|
|
70
|
-
export declare function instanceOfIncidentVideoResource(value: object): value is IncidentVideoResource;
|
|
71
|
-
export declare function IncidentVideoResourceFromJSON(json: any): IncidentVideoResource;
|
|
72
|
-
export declare function IncidentVideoResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentVideoResource;
|
|
73
|
-
export declare function IncidentVideoResourceToJSON(json: any): IncidentVideoResource;
|
|
74
|
-
export declare function IncidentVideoResourceToJSONTyped(value?: IncidentVideoResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* My API
|
|
6
|
-
* API documentation for my Laravel app
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.instanceOfIncidentVideoResource = instanceOfIncidentVideoResource;
|
|
17
|
-
exports.IncidentVideoResourceFromJSON = IncidentVideoResourceFromJSON;
|
|
18
|
-
exports.IncidentVideoResourceFromJSONTyped = IncidentVideoResourceFromJSONTyped;
|
|
19
|
-
exports.IncidentVideoResourceToJSON = IncidentVideoResourceToJSON;
|
|
20
|
-
exports.IncidentVideoResourceToJSONTyped = IncidentVideoResourceToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the IncidentVideoResource interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfIncidentVideoResource(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 (!('originalFilename' in value) || value['originalFilename'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
if (!('mimeType' in value) || value['mimeType'] === undefined)
|
|
32
|
-
return false;
|
|
33
|
-
return true;
|
|
34
|
-
}
|
|
35
|
-
function IncidentVideoResourceFromJSON(json) {
|
|
36
|
-
return IncidentVideoResourceFromJSONTyped(json, false);
|
|
37
|
-
}
|
|
38
|
-
function IncidentVideoResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
-
if (json == null) {
|
|
40
|
-
return json;
|
|
41
|
-
}
|
|
42
|
-
return {
|
|
43
|
-
'id': json['id'],
|
|
44
|
-
'status': json['status'],
|
|
45
|
-
'originalFilename': json['originalFilename'],
|
|
46
|
-
'mimeType': json['mimeType'],
|
|
47
|
-
'sizeBytes': json['sizeBytes'] == null ? undefined : json['sizeBytes'],
|
|
48
|
-
'failureReason': json['failureReason'] == null ? undefined : json['failureReason'],
|
|
49
|
-
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
50
|
-
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
function IncidentVideoResourceToJSON(json) {
|
|
54
|
-
return IncidentVideoResourceToJSONTyped(json, false);
|
|
55
|
-
}
|
|
56
|
-
function IncidentVideoResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
57
|
-
var _a, _b;
|
|
58
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
59
|
-
if (value == null) {
|
|
60
|
-
return value;
|
|
61
|
-
}
|
|
62
|
-
return {
|
|
63
|
-
'id': value['id'],
|
|
64
|
-
'status': value['status'],
|
|
65
|
-
'originalFilename': value['originalFilename'],
|
|
66
|
-
'mimeType': value['mimeType'],
|
|
67
|
-
'sizeBytes': value['sizeBytes'],
|
|
68
|
-
'failureReason': value['failureReason'],
|
|
69
|
-
'createdAt': value['createdAt'] === null ? null : ((_a = value['createdAt']) === null || _a === void 0 ? void 0 : _a.toISOString()),
|
|
70
|
-
'updatedAt': value['updatedAt'] === null ? null : ((_b = value['updatedAt']) === null || _b === void 0 ? void 0 : _b.toISOString()),
|
|
71
|
-
};
|
|
72
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* My API
|
|
3
|
-
* API documentation for my Laravel app
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { IncidentVideoResource } from './IncidentVideoResource';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface IncidentVideoResourceArrayResponse
|
|
17
|
-
*/
|
|
18
|
-
export interface IncidentVideoResourceArrayResponse {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<IncidentVideoResource>}
|
|
22
|
-
* @memberof IncidentVideoResourceArrayResponse
|
|
23
|
-
*/
|
|
24
|
-
data?: Array<IncidentVideoResource>;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the IncidentVideoResourceArrayResponse interface.
|
|
28
|
-
*/
|
|
29
|
-
export declare function instanceOfIncidentVideoResourceArrayResponse(value: object): value is IncidentVideoResourceArrayResponse;
|
|
30
|
-
export declare function IncidentVideoResourceArrayResponseFromJSON(json: any): IncidentVideoResourceArrayResponse;
|
|
31
|
-
export declare function IncidentVideoResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentVideoResourceArrayResponse;
|
|
32
|
-
export declare function IncidentVideoResourceArrayResponseToJSON(json: any): IncidentVideoResourceArrayResponse;
|
|
33
|
-
export declare function IncidentVideoResourceArrayResponseToJSONTyped(value?: IncidentVideoResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* My API
|
|
6
|
-
* API documentation for my Laravel app
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.instanceOfIncidentVideoResourceArrayResponse = instanceOfIncidentVideoResourceArrayResponse;
|
|
17
|
-
exports.IncidentVideoResourceArrayResponseFromJSON = IncidentVideoResourceArrayResponseFromJSON;
|
|
18
|
-
exports.IncidentVideoResourceArrayResponseFromJSONTyped = IncidentVideoResourceArrayResponseFromJSONTyped;
|
|
19
|
-
exports.IncidentVideoResourceArrayResponseToJSON = IncidentVideoResourceArrayResponseToJSON;
|
|
20
|
-
exports.IncidentVideoResourceArrayResponseToJSONTyped = IncidentVideoResourceArrayResponseToJSONTyped;
|
|
21
|
-
var IncidentVideoResource_1 = require("./IncidentVideoResource");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the IncidentVideoResourceArrayResponse interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfIncidentVideoResourceArrayResponse(value) {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
function IncidentVideoResourceArrayResponseFromJSON(json) {
|
|
29
|
-
return IncidentVideoResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
function IncidentVideoResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (json == null) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'data': json['data'] == null ? undefined : (json['data'].map(IncidentVideoResource_1.IncidentVideoResourceFromJSON)),
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function IncidentVideoResourceArrayResponseToJSON(json) {
|
|
40
|
-
return IncidentVideoResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
function IncidentVideoResourceArrayResponseToJSONTyped(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(IncidentVideoResource_1.IncidentVideoResourceToJSON)),
|
|
49
|
-
};
|
|
50
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* My API
|
|
3
|
-
* API documentation for my Laravel app
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface IncidentVideoSignedUrlResource
|
|
16
|
-
*/
|
|
17
|
-
export interface IncidentVideoSignedUrlResource {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof IncidentVideoSignedUrlResource
|
|
22
|
-
*/
|
|
23
|
-
url: string;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Check if a given object implements the IncidentVideoSignedUrlResource interface.
|
|
27
|
-
*/
|
|
28
|
-
export declare function instanceOfIncidentVideoSignedUrlResource(value: object): value is IncidentVideoSignedUrlResource;
|
|
29
|
-
export declare function IncidentVideoSignedUrlResourceFromJSON(json: any): IncidentVideoSignedUrlResource;
|
|
30
|
-
export declare function IncidentVideoSignedUrlResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentVideoSignedUrlResource;
|
|
31
|
-
export declare function IncidentVideoSignedUrlResourceToJSON(json: any): IncidentVideoSignedUrlResource;
|
|
32
|
-
export declare function IncidentVideoSignedUrlResourceToJSONTyped(value?: IncidentVideoSignedUrlResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* My API
|
|
6
|
-
* API documentation for my Laravel app
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.instanceOfIncidentVideoSignedUrlResource = instanceOfIncidentVideoSignedUrlResource;
|
|
17
|
-
exports.IncidentVideoSignedUrlResourceFromJSON = IncidentVideoSignedUrlResourceFromJSON;
|
|
18
|
-
exports.IncidentVideoSignedUrlResourceFromJSONTyped = IncidentVideoSignedUrlResourceFromJSONTyped;
|
|
19
|
-
exports.IncidentVideoSignedUrlResourceToJSON = IncidentVideoSignedUrlResourceToJSON;
|
|
20
|
-
exports.IncidentVideoSignedUrlResourceToJSONTyped = IncidentVideoSignedUrlResourceToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the IncidentVideoSignedUrlResource interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfIncidentVideoSignedUrlResource(value) {
|
|
25
|
-
if (!('url' in value) || value['url'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
return true;
|
|
28
|
-
}
|
|
29
|
-
function IncidentVideoSignedUrlResourceFromJSON(json) {
|
|
30
|
-
return IncidentVideoSignedUrlResourceFromJSONTyped(json, false);
|
|
31
|
-
}
|
|
32
|
-
function IncidentVideoSignedUrlResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if (json == null) {
|
|
34
|
-
return json;
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
'url': json['url'],
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
function IncidentVideoSignedUrlResourceToJSON(json) {
|
|
41
|
-
return IncidentVideoSignedUrlResourceToJSONTyped(json, false);
|
|
42
|
-
}
|
|
43
|
-
function IncidentVideoSignedUrlResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
-
if (value == null) {
|
|
46
|
-
return value;
|
|
47
|
-
}
|
|
48
|
-
return {
|
|
49
|
-
'url': value['url'],
|
|
50
|
-
};
|
|
51
|
-
}
|