@digital8/security-registers-backend-ts-sdk 0.0.216 → 0.0.217
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 +17 -2
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +142 -3
- package/dist/apis/GeneralApi.js +694 -1
- package/dist/models/AssetResource.d.ts +1 -1
- package/dist/models/AssetResource.js +1 -3
- package/dist/models/IncidentFieldAuditResource.d.ts +56 -0
- package/dist/models/IncidentFieldAuditResource.js +67 -0
- package/dist/models/IncidentFieldAuditResourceArrayResponse.d.ts +33 -0
- package/dist/models/IncidentFieldAuditResourceArrayResponse.js +50 -0
- package/dist/models/IncidentFieldsResourceArrayResponse.d.ts +32 -0
- package/dist/models/IncidentFieldsResourceArrayResponse.js +49 -0
- package/dist/models/IncidentResource.d.ts +118 -0
- package/dist/models/IncidentResource.js +106 -0
- package/dist/models/IncidentResourceArrayResponse.d.ts +33 -0
- package/dist/models/IncidentResourceArrayResponse.js +50 -0
- package/dist/models/IncidentVersionResource.d.ts +57 -0
- package/dist/models/IncidentVersionResource.js +68 -0
- package/dist/models/IncidentVersionResourceArrayResponse.d.ts +33 -0
- package/dist/models/IncidentVersionResourceArrayResponse.js +50 -0
- package/dist/models/IncidentVideoResource.d.ts +74 -0
- package/dist/models/IncidentVideoResource.js +72 -0
- package/dist/models/IncidentVideoResourceArrayResponse.d.ts +33 -0
- package/dist/models/IncidentVideoResourceArrayResponse.js +50 -0
- package/dist/models/IncidentVideoSignedUrlResource.d.ts +32 -0
- package/dist/models/IncidentVideoSignedUrlResource.js +51 -0
- package/dist/models/IncidentVideoSignedUrlResourceArrayResponse.d.ts +33 -0
- package/dist/models/IncidentVideoSignedUrlResourceArrayResponse.js +50 -0
- package/dist/models/IncidentVideoUploadTokenResource.d.ts +50 -0
- package/dist/models/IncidentVideoUploadTokenResource.js +63 -0
- package/dist/models/IncidentVideoUploadTokenResourceArrayResponse.d.ts +33 -0
- package/dist/models/IncidentVideoUploadTokenResourceArrayResponse.js +50 -0
- package/dist/models/IncidentsStoreRequest.d.ts +38 -0
- package/dist/models/IncidentsStoreRequest.js +55 -0
- package/dist/models/IncidentsUpdateRequest.d.ts +32 -0
- package/dist/models/IncidentsUpdateRequest.js +51 -0
- package/dist/models/IncidentsVideosStoreRequest.d.ts +44 -0
- package/dist/models/IncidentsVideosStoreRequest.js +59 -0
- package/dist/models/IncidentsVideosUploadTokenRequest.d.ts +44 -0
- package/dist/models/IncidentsVideosUploadTokenRequest.js +59 -0
- package/dist/models/LicencesVerifyRequest.d.ts +3 -21
- package/dist/models/LicencesVerifyRequest.js +6 -14
- 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 +3 -4
- package/dist/models/RegisterResource.d.ts +1 -1
- package/dist/models/RegisterResource.js +7 -5
- 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 +4 -3
- package/dist/models/SecurityCompanyResource.d.ts +1 -1
- package/dist/models/SecurityCompanyResource.js +3 -1
- package/dist/models/index.d.ts +17 -2
- package/dist/models/index.js +17 -2
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +664 -6
- package/src/models/AssetResource.ts +2 -3
- package/src/models/IncidentFieldAuditResource.ts +102 -0
- package/src/models/IncidentFieldAuditResourceArrayResponse.ts +73 -0
- package/src/models/IncidentFieldsResourceArrayResponse.ts +65 -0
- package/src/models/IncidentResource.ts +237 -0
- package/src/models/IncidentResourceArrayResponse.ts +73 -0
- package/src/models/IncidentVersionResource.ts +110 -0
- package/src/models/IncidentVersionResourceArrayResponse.ts +73 -0
- package/src/models/IncidentVideoResource.ts +125 -0
- package/src/models/IncidentVideoResourceArrayResponse.ts +73 -0
- package/src/models/IncidentVideoSignedUrlResource.ts +66 -0
- package/src/models/IncidentVideoSignedUrlResourceArrayResponse.ts +73 -0
- package/src/models/IncidentVideoUploadTokenResource.ts +93 -0
- package/src/models/IncidentVideoUploadTokenResourceArrayResponse.ts +73 -0
- package/src/models/IncidentsStoreRequest.ts +75 -0
- package/src/models/IncidentsUpdateRequest.ts +66 -0
- package/src/models/IncidentsVideosStoreRequest.ts +84 -0
- package/src/models/IncidentsVideosUploadTokenRequest.ts +84 -0
- package/src/models/LicencesVerifyRequest.ts +8 -33
- package/src/models/RegisterGroupedByRosterResource.ts +4 -3
- package/src/models/RegisterListResource.ts +5 -6
- package/src/models/RegisterResource.ts +4 -3
- package/src/models/RosterLiteResource.ts +3 -4
- package/src/models/RosterResource.ts +4 -3
- package/src/models/SecurityCompanyResource.ts +3 -2
- package/src/models/index.ts +17 -2
- package/dist/models/LicenceVerificationResultResource.d.ts +0 -44
- package/dist/models/LicenceVerificationResultResource.js +0 -59
- package/dist/models/LicenceVerificationResultResourceArrayResponse.d.ts +0 -33
- package/dist/models/LicenceVerificationResultResourceArrayResponse.js +0 -50
- package/src/models/LicenceVerificationResultResource.ts +0 -84
- package/src/models/LicenceVerificationResultResourceArrayResponse.ts +0 -73
|
@@ -0,0 +1,57 @@
|
|
|
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 { UserLiteResource } from './UserLiteResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface IncidentVersionResource
|
|
17
|
+
*/
|
|
18
|
+
export interface IncidentVersionResource {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof IncidentVersionResource
|
|
23
|
+
*/
|
|
24
|
+
id: number;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof IncidentVersionResource
|
|
29
|
+
*/
|
|
30
|
+
versionNumber: number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {UserLiteResource}
|
|
34
|
+
* @memberof IncidentVersionResource
|
|
35
|
+
*/
|
|
36
|
+
user: UserLiteResource | null;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {Array<boolean>}
|
|
40
|
+
* @memberof IncidentVersionResource
|
|
41
|
+
*/
|
|
42
|
+
fieldData: Array<boolean>;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Date}
|
|
46
|
+
* @memberof IncidentVersionResource
|
|
47
|
+
*/
|
|
48
|
+
createdAt: Date;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the IncidentVersionResource interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfIncidentVersionResource(value: object): value is IncidentVersionResource;
|
|
54
|
+
export declare function IncidentVersionResourceFromJSON(json: any): IncidentVersionResource;
|
|
55
|
+
export declare function IncidentVersionResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentVersionResource;
|
|
56
|
+
export declare function IncidentVersionResourceToJSON(json: any): IncidentVersionResource;
|
|
57
|
+
export declare function IncidentVersionResourceToJSONTyped(value?: IncidentVersionResource | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,68 @@
|
|
|
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.instanceOfIncidentVersionResource = instanceOfIncidentVersionResource;
|
|
17
|
+
exports.IncidentVersionResourceFromJSON = IncidentVersionResourceFromJSON;
|
|
18
|
+
exports.IncidentVersionResourceFromJSONTyped = IncidentVersionResourceFromJSONTyped;
|
|
19
|
+
exports.IncidentVersionResourceToJSON = IncidentVersionResourceToJSON;
|
|
20
|
+
exports.IncidentVersionResourceToJSONTyped = IncidentVersionResourceToJSONTyped;
|
|
21
|
+
var UserLiteResource_1 = require("./UserLiteResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the IncidentVersionResource interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfIncidentVersionResource(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('versionNumber' in value) || value['versionNumber'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('user' in value) || value['user'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('fieldData' in value) || value['fieldData'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function IncidentVersionResourceFromJSON(json) {
|
|
39
|
+
return IncidentVersionResourceFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function IncidentVersionResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'id': json['id'],
|
|
47
|
+
'versionNumber': json['versionNumber'],
|
|
48
|
+
'user': (0, UserLiteResource_1.UserLiteResourceFromJSON)(json['user']),
|
|
49
|
+
'fieldData': json['fieldData'],
|
|
50
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function IncidentVersionResourceToJSON(json) {
|
|
54
|
+
return IncidentVersionResourceToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function IncidentVersionResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
57
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
58
|
+
if (value == null) {
|
|
59
|
+
return value;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'id': value['id'],
|
|
63
|
+
'versionNumber': value['versionNumber'],
|
|
64
|
+
'user': (0, UserLiteResource_1.UserLiteResourceToJSON)(value['user']),
|
|
65
|
+
'fieldData': value['fieldData'],
|
|
66
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
67
|
+
};
|
|
68
|
+
}
|
|
@@ -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 { IncidentVersionResource } from './IncidentVersionResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface IncidentVersionResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface IncidentVersionResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<IncidentVersionResource>}
|
|
22
|
+
* @memberof IncidentVersionResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<IncidentVersionResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the IncidentVersionResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfIncidentVersionResourceArrayResponse(value: object): value is IncidentVersionResourceArrayResponse;
|
|
30
|
+
export declare function IncidentVersionResourceArrayResponseFromJSON(json: any): IncidentVersionResourceArrayResponse;
|
|
31
|
+
export declare function IncidentVersionResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentVersionResourceArrayResponse;
|
|
32
|
+
export declare function IncidentVersionResourceArrayResponseToJSON(json: any): IncidentVersionResourceArrayResponse;
|
|
33
|
+
export declare function IncidentVersionResourceArrayResponseToJSONTyped(value?: IncidentVersionResourceArrayResponse | 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.instanceOfIncidentVersionResourceArrayResponse = instanceOfIncidentVersionResourceArrayResponse;
|
|
17
|
+
exports.IncidentVersionResourceArrayResponseFromJSON = IncidentVersionResourceArrayResponseFromJSON;
|
|
18
|
+
exports.IncidentVersionResourceArrayResponseFromJSONTyped = IncidentVersionResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.IncidentVersionResourceArrayResponseToJSON = IncidentVersionResourceArrayResponseToJSON;
|
|
20
|
+
exports.IncidentVersionResourceArrayResponseToJSONTyped = IncidentVersionResourceArrayResponseToJSONTyped;
|
|
21
|
+
var IncidentVersionResource_1 = require("./IncidentVersionResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the IncidentVersionResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfIncidentVersionResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function IncidentVersionResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return IncidentVersionResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function IncidentVersionResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(IncidentVersionResource_1.IncidentVersionResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function IncidentVersionResourceArrayResponseToJSON(json) {
|
|
40
|
+
return IncidentVersionResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function IncidentVersionResourceArrayResponseToJSONTyped(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(IncidentVersionResource_1.IncidentVersionResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
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;
|
|
@@ -0,0 +1,72 @@
|
|
|
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
|
+
}
|
|
@@ -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 { 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;
|
|
@@ -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.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
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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;
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
}
|
|
@@ -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 { IncidentVideoSignedUrlResource } from './IncidentVideoSignedUrlResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface IncidentVideoSignedUrlResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface IncidentVideoSignedUrlResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<IncidentVideoSignedUrlResource>}
|
|
22
|
+
* @memberof IncidentVideoSignedUrlResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<IncidentVideoSignedUrlResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the IncidentVideoSignedUrlResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfIncidentVideoSignedUrlResourceArrayResponse(value: object): value is IncidentVideoSignedUrlResourceArrayResponse;
|
|
30
|
+
export declare function IncidentVideoSignedUrlResourceArrayResponseFromJSON(json: any): IncidentVideoSignedUrlResourceArrayResponse;
|
|
31
|
+
export declare function IncidentVideoSignedUrlResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentVideoSignedUrlResourceArrayResponse;
|
|
32
|
+
export declare function IncidentVideoSignedUrlResourceArrayResponseToJSON(json: any): IncidentVideoSignedUrlResourceArrayResponse;
|
|
33
|
+
export declare function IncidentVideoSignedUrlResourceArrayResponseToJSONTyped(value?: IncidentVideoSignedUrlResourceArrayResponse | 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.instanceOfIncidentVideoSignedUrlResourceArrayResponse = instanceOfIncidentVideoSignedUrlResourceArrayResponse;
|
|
17
|
+
exports.IncidentVideoSignedUrlResourceArrayResponseFromJSON = IncidentVideoSignedUrlResourceArrayResponseFromJSON;
|
|
18
|
+
exports.IncidentVideoSignedUrlResourceArrayResponseFromJSONTyped = IncidentVideoSignedUrlResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.IncidentVideoSignedUrlResourceArrayResponseToJSON = IncidentVideoSignedUrlResourceArrayResponseToJSON;
|
|
20
|
+
exports.IncidentVideoSignedUrlResourceArrayResponseToJSONTyped = IncidentVideoSignedUrlResourceArrayResponseToJSONTyped;
|
|
21
|
+
var IncidentVideoSignedUrlResource_1 = require("./IncidentVideoSignedUrlResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the IncidentVideoSignedUrlResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfIncidentVideoSignedUrlResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function IncidentVideoSignedUrlResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return IncidentVideoSignedUrlResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function IncidentVideoSignedUrlResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(IncidentVideoSignedUrlResource_1.IncidentVideoSignedUrlResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function IncidentVideoSignedUrlResourceArrayResponseToJSON(json) {
|
|
40
|
+
return IncidentVideoSignedUrlResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function IncidentVideoSignedUrlResourceArrayResponseToJSONTyped(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(IncidentVideoSignedUrlResource_1.IncidentVideoSignedUrlResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 IncidentVideoUploadTokenResource
|
|
16
|
+
*/
|
|
17
|
+
export interface IncidentVideoUploadTokenResource {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof IncidentVideoUploadTokenResource
|
|
22
|
+
*/
|
|
23
|
+
url: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof IncidentVideoUploadTokenResource
|
|
28
|
+
*/
|
|
29
|
+
rawBlobPath: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof IncidentVideoUploadTokenResource
|
|
34
|
+
*/
|
|
35
|
+
containerName: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Array<string>}
|
|
39
|
+
* @memberof IncidentVideoUploadTokenResource
|
|
40
|
+
*/
|
|
41
|
+
headers: Array<string>;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the IncidentVideoUploadTokenResource interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfIncidentVideoUploadTokenResource(value: object): value is IncidentVideoUploadTokenResource;
|
|
47
|
+
export declare function IncidentVideoUploadTokenResourceFromJSON(json: any): IncidentVideoUploadTokenResource;
|
|
48
|
+
export declare function IncidentVideoUploadTokenResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentVideoUploadTokenResource;
|
|
49
|
+
export declare function IncidentVideoUploadTokenResourceToJSON(json: any): IncidentVideoUploadTokenResource;
|
|
50
|
+
export declare function IncidentVideoUploadTokenResourceToJSONTyped(value?: IncidentVideoUploadTokenResource | null, ignoreDiscriminator?: boolean): any;
|