@digital8/security-registers-backend-ts-sdk 0.0.269 → 0.0.271
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 +8 -0
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +72 -1
- package/dist/apis/GeneralApi.js +352 -0
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +3 -1
- package/dist/models/AssetResource.d.ts +1 -1
- package/dist/models/AssetResource.js +3 -1
- package/dist/models/IncidentResource.d.ts +13 -0
- package/dist/models/IncidentResource.js +7 -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/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/RegisterListResource.d.ts +4 -4
- package/dist/models/RegisterListResource.js +6 -5
- package/dist/models/RegisterResource.d.ts +1 -1
- package/dist/models/RegisterResource.js +1 -3
- package/dist/models/RosterListResource.d.ts +1 -1
- package/dist/models/RosterListResource.js +4 -3
- 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 +1 -3
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +344 -0
- package/src/models/AddressResource.ts +3 -2
- package/src/models/AssetResource.ts +3 -2
- package/src/models/IncidentResource.ts +24 -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/IncidentsVideosStoreRequest.ts +84 -0
- package/src/models/IncidentsVideosUploadTokenRequest.ts +84 -0
- package/src/models/RegisterListResource.ts +8 -8
- package/src/models/RegisterResource.ts +2 -3
- package/src/models/RosterListResource.ts +4 -3
- package/src/models/RosterResource.ts +4 -3
- package/src/models/SecurityCompanyResource.ts +2 -3
- package/src/models/index.ts +8 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { IncidentVideoResource } from './IncidentVideoResource';
|
|
17
|
+
import {
|
|
18
|
+
IncidentVideoResourceFromJSON,
|
|
19
|
+
IncidentVideoResourceFromJSONTyped,
|
|
20
|
+
IncidentVideoResourceToJSON,
|
|
21
|
+
IncidentVideoResourceToJSONTyped,
|
|
22
|
+
} from './IncidentVideoResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface IncidentVideoResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface IncidentVideoResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<IncidentVideoResource>}
|
|
33
|
+
* @memberof IncidentVideoResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<IncidentVideoResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the IncidentVideoResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfIncidentVideoResourceArrayResponse(value: object): value is IncidentVideoResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function IncidentVideoResourceArrayResponseFromJSON(json: any): IncidentVideoResourceArrayResponse {
|
|
46
|
+
return IncidentVideoResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function IncidentVideoResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentVideoResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(IncidentVideoResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function IncidentVideoResourceArrayResponseToJSON(json: any): IncidentVideoResourceArrayResponse {
|
|
60
|
+
return IncidentVideoResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function IncidentVideoResourceArrayResponseToJSONTyped(value?: IncidentVideoResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(IncidentVideoResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface IncidentVideoSignedUrlResource
|
|
20
|
+
*/
|
|
21
|
+
export interface IncidentVideoSignedUrlResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof IncidentVideoSignedUrlResource
|
|
26
|
+
*/
|
|
27
|
+
url: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the IncidentVideoSignedUrlResource interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfIncidentVideoSignedUrlResource(value: object): value is IncidentVideoSignedUrlResource {
|
|
34
|
+
if (!('url' in value) || value['url'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function IncidentVideoSignedUrlResourceFromJSON(json: any): IncidentVideoSignedUrlResource {
|
|
39
|
+
return IncidentVideoSignedUrlResourceFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function IncidentVideoSignedUrlResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentVideoSignedUrlResource {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'url': json['url'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function IncidentVideoSignedUrlResourceToJSON(json: any): IncidentVideoSignedUrlResource {
|
|
53
|
+
return IncidentVideoSignedUrlResourceToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function IncidentVideoSignedUrlResourceToJSONTyped(value?: IncidentVideoSignedUrlResource | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'url': value['url'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { IncidentVideoSignedUrlResource } from './IncidentVideoSignedUrlResource';
|
|
17
|
+
import {
|
|
18
|
+
IncidentVideoSignedUrlResourceFromJSON,
|
|
19
|
+
IncidentVideoSignedUrlResourceFromJSONTyped,
|
|
20
|
+
IncidentVideoSignedUrlResourceToJSON,
|
|
21
|
+
IncidentVideoSignedUrlResourceToJSONTyped,
|
|
22
|
+
} from './IncidentVideoSignedUrlResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface IncidentVideoSignedUrlResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface IncidentVideoSignedUrlResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<IncidentVideoSignedUrlResource>}
|
|
33
|
+
* @memberof IncidentVideoSignedUrlResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<IncidentVideoSignedUrlResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the IncidentVideoSignedUrlResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfIncidentVideoSignedUrlResourceArrayResponse(value: object): value is IncidentVideoSignedUrlResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function IncidentVideoSignedUrlResourceArrayResponseFromJSON(json: any): IncidentVideoSignedUrlResourceArrayResponse {
|
|
46
|
+
return IncidentVideoSignedUrlResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function IncidentVideoSignedUrlResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentVideoSignedUrlResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(IncidentVideoSignedUrlResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function IncidentVideoSignedUrlResourceArrayResponseToJSON(json: any): IncidentVideoSignedUrlResourceArrayResponse {
|
|
60
|
+
return IncidentVideoSignedUrlResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function IncidentVideoSignedUrlResourceArrayResponseToJSONTyped(value?: IncidentVideoSignedUrlResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(IncidentVideoSignedUrlResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface IncidentVideoUploadTokenResource
|
|
20
|
+
*/
|
|
21
|
+
export interface IncidentVideoUploadTokenResource {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof IncidentVideoUploadTokenResource
|
|
26
|
+
*/
|
|
27
|
+
url: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof IncidentVideoUploadTokenResource
|
|
32
|
+
*/
|
|
33
|
+
rawBlobPath: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof IncidentVideoUploadTokenResource
|
|
38
|
+
*/
|
|
39
|
+
containerName: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Array<string>}
|
|
43
|
+
* @memberof IncidentVideoUploadTokenResource
|
|
44
|
+
*/
|
|
45
|
+
headers: Array<string>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the IncidentVideoUploadTokenResource interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfIncidentVideoUploadTokenResource(value: object): value is IncidentVideoUploadTokenResource {
|
|
52
|
+
if (!('url' in value) || value['url'] === undefined) return false;
|
|
53
|
+
if (!('rawBlobPath' in value) || value['rawBlobPath'] === undefined) return false;
|
|
54
|
+
if (!('containerName' in value) || value['containerName'] === undefined) return false;
|
|
55
|
+
if (!('headers' in value) || value['headers'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function IncidentVideoUploadTokenResourceFromJSON(json: any): IncidentVideoUploadTokenResource {
|
|
60
|
+
return IncidentVideoUploadTokenResourceFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function IncidentVideoUploadTokenResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentVideoUploadTokenResource {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'url': json['url'],
|
|
70
|
+
'rawBlobPath': json['rawBlobPath'],
|
|
71
|
+
'containerName': json['containerName'],
|
|
72
|
+
'headers': json['headers'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function IncidentVideoUploadTokenResourceToJSON(json: any): IncidentVideoUploadTokenResource {
|
|
77
|
+
return IncidentVideoUploadTokenResourceToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function IncidentVideoUploadTokenResourceToJSONTyped(value?: IncidentVideoUploadTokenResource | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'url': value['url'],
|
|
88
|
+
'rawBlobPath': value['rawBlobPath'],
|
|
89
|
+
'containerName': value['containerName'],
|
|
90
|
+
'headers': value['headers'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { IncidentVideoUploadTokenResource } from './IncidentVideoUploadTokenResource';
|
|
17
|
+
import {
|
|
18
|
+
IncidentVideoUploadTokenResourceFromJSON,
|
|
19
|
+
IncidentVideoUploadTokenResourceFromJSONTyped,
|
|
20
|
+
IncidentVideoUploadTokenResourceToJSON,
|
|
21
|
+
IncidentVideoUploadTokenResourceToJSONTyped,
|
|
22
|
+
} from './IncidentVideoUploadTokenResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface IncidentVideoUploadTokenResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface IncidentVideoUploadTokenResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<IncidentVideoUploadTokenResource>}
|
|
33
|
+
* @memberof IncidentVideoUploadTokenResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<IncidentVideoUploadTokenResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the IncidentVideoUploadTokenResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfIncidentVideoUploadTokenResourceArrayResponse(value: object): value is IncidentVideoUploadTokenResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function IncidentVideoUploadTokenResourceArrayResponseFromJSON(json: any): IncidentVideoUploadTokenResourceArrayResponse {
|
|
46
|
+
return IncidentVideoUploadTokenResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function IncidentVideoUploadTokenResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentVideoUploadTokenResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(IncidentVideoUploadTokenResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function IncidentVideoUploadTokenResourceArrayResponseToJSON(json: any): IncidentVideoUploadTokenResourceArrayResponse {
|
|
60
|
+
return IncidentVideoUploadTokenResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function IncidentVideoUploadTokenResourceArrayResponseToJSONTyped(value?: IncidentVideoUploadTokenResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(IncidentVideoUploadTokenResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface IncidentsVideosStoreRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface IncidentsVideosStoreRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof IncidentsVideosStoreRequest
|
|
26
|
+
*/
|
|
27
|
+
rawBlobPath: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof IncidentsVideosStoreRequest
|
|
32
|
+
*/
|
|
33
|
+
originalFilename: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof IncidentsVideosStoreRequest
|
|
38
|
+
*/
|
|
39
|
+
mimeType: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the IncidentsVideosStoreRequest interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfIncidentsVideosStoreRequest(value: object): value is IncidentsVideosStoreRequest {
|
|
46
|
+
if (!('rawBlobPath' in value) || value['rawBlobPath'] === undefined) return false;
|
|
47
|
+
if (!('originalFilename' in value) || value['originalFilename'] === undefined) return false;
|
|
48
|
+
if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function IncidentsVideosStoreRequestFromJSON(json: any): IncidentsVideosStoreRequest {
|
|
53
|
+
return IncidentsVideosStoreRequestFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function IncidentsVideosStoreRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentsVideosStoreRequest {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'rawBlobPath': json['raw_blob_path'],
|
|
63
|
+
'originalFilename': json['original_filename'],
|
|
64
|
+
'mimeType': json['mime_type'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function IncidentsVideosStoreRequestToJSON(json: any): IncidentsVideosStoreRequest {
|
|
69
|
+
return IncidentsVideosStoreRequestToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function IncidentsVideosStoreRequestToJSONTyped(value?: IncidentsVideosStoreRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'raw_blob_path': value['rawBlobPath'],
|
|
80
|
+
'original_filename': value['originalFilename'],
|
|
81
|
+
'mime_type': value['mimeType'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* My API
|
|
5
|
+
* API documentation for my Laravel app
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface IncidentsVideosUploadTokenRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface IncidentsVideosUploadTokenRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof IncidentsVideosUploadTokenRequest
|
|
26
|
+
*/
|
|
27
|
+
filename: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof IncidentsVideosUploadTokenRequest
|
|
32
|
+
*/
|
|
33
|
+
mimeType: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof IncidentsVideosUploadTokenRequest
|
|
38
|
+
*/
|
|
39
|
+
sizeBytes: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the IncidentsVideosUploadTokenRequest interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfIncidentsVideosUploadTokenRequest(value: object): value is IncidentsVideosUploadTokenRequest {
|
|
46
|
+
if (!('filename' in value) || value['filename'] === undefined) return false;
|
|
47
|
+
if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
|
|
48
|
+
if (!('sizeBytes' in value) || value['sizeBytes'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function IncidentsVideosUploadTokenRequestFromJSON(json: any): IncidentsVideosUploadTokenRequest {
|
|
53
|
+
return IncidentsVideosUploadTokenRequestFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function IncidentsVideosUploadTokenRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentsVideosUploadTokenRequest {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'filename': json['filename'],
|
|
63
|
+
'mimeType': json['mime_type'],
|
|
64
|
+
'sizeBytes': json['size_bytes'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function IncidentsVideosUploadTokenRequestToJSON(json: any): IncidentsVideosUploadTokenRequest {
|
|
69
|
+
return IncidentsVideosUploadTokenRequestToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function IncidentsVideosUploadTokenRequestToJSONTyped(value?: IncidentsVideosUploadTokenRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'filename': value['filename'],
|
|
80
|
+
'mime_type': value['mimeType'],
|
|
81
|
+
'size_bytes': value['sizeBytes'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -70,13 +70,13 @@ export interface RegisterListResource {
|
|
|
70
70
|
* @type {Date}
|
|
71
71
|
* @memberof RegisterListResource
|
|
72
72
|
*/
|
|
73
|
-
finishDateTime
|
|
73
|
+
finishDateTime?: Date | null;
|
|
74
74
|
/**
|
|
75
75
|
*
|
|
76
|
-
* @type {
|
|
76
|
+
* @type {object}
|
|
77
77
|
* @memberof RegisterListResource
|
|
78
78
|
*/
|
|
79
|
-
shiftLength:
|
|
79
|
+
shiftLength: object;
|
|
80
80
|
/**
|
|
81
81
|
*
|
|
82
82
|
* @type {number}
|
|
@@ -166,7 +166,7 @@ export interface RegisterListResource {
|
|
|
166
166
|
* @type {number}
|
|
167
167
|
* @memberof RegisterListResource
|
|
168
168
|
*/
|
|
169
|
-
signOffLat
|
|
169
|
+
signOffLat: number;
|
|
170
170
|
/**
|
|
171
171
|
*
|
|
172
172
|
* @type {number}
|
|
@@ -188,7 +188,6 @@ export function instanceOfRegisterListResource(value: object): value is Register
|
|
|
188
188
|
if (!('user' in value) || value['user'] === undefined) return false;
|
|
189
189
|
if (!('venue' in value) || value['venue'] === undefined) return false;
|
|
190
190
|
if (!('startDateTime' in value) || value['startDateTime'] === undefined) return false;
|
|
191
|
-
if (!('finishDateTime' in value) || value['finishDateTime'] === undefined) return false;
|
|
192
191
|
if (!('shiftLength' in value) || value['shiftLength'] === undefined) return false;
|
|
193
192
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined) return false;
|
|
194
193
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
@@ -203,6 +202,7 @@ export function instanceOfRegisterListResource(value: object): value is Register
|
|
|
203
202
|
if (!('firstAid' in value) || value['firstAid'] === undefined) return false;
|
|
204
203
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
205
204
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
205
|
+
if (!('signOffLat' in value) || value['signOffLat'] === undefined) return false;
|
|
206
206
|
if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
|
|
207
207
|
if (!('incidents' in value) || value['incidents'] === undefined) return false;
|
|
208
208
|
return true;
|
|
@@ -222,7 +222,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
222
222
|
'user': UserLiteResourceFromJSON(json['user']),
|
|
223
223
|
'venue': VenueLiteResourceFromJSON(json['venue']),
|
|
224
224
|
'startDateTime': (new Date(json['startDateTime'])),
|
|
225
|
-
'finishDateTime': (new Date(json['finishDateTime'])),
|
|
225
|
+
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
226
226
|
'shiftLength': json['shiftLength'],
|
|
227
227
|
'signOffStatus': json['signOffStatus'],
|
|
228
228
|
'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
|
|
@@ -238,7 +238,7 @@ export function RegisterListResourceFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
238
238
|
'firstAid': json['firstAid'],
|
|
239
239
|
'signOnLat': json['signOnLat'],
|
|
240
240
|
'signOnLong': json['signOnLong'],
|
|
241
|
-
'signOffLat': json['signOffLat']
|
|
241
|
+
'signOffLat': json['signOffLat'],
|
|
242
242
|
'signOffLong': json['signOffLong'],
|
|
243
243
|
'incidents': (json['incidents'] == null ? null : (json['incidents'] as Array<any>).map(IncidentLiteResourceFromJSON)),
|
|
244
244
|
};
|
|
@@ -259,7 +259,7 @@ export function RegisterListResourceToJSONTyped(value?: RegisterListResource | n
|
|
|
259
259
|
'user': UserLiteResourceToJSON(value['user']),
|
|
260
260
|
'venue': VenueLiteResourceToJSON(value['venue']),
|
|
261
261
|
'startDateTime': ((value['startDateTime']).toISOString()),
|
|
262
|
-
'finishDateTime': ((value['finishDateTime'])
|
|
262
|
+
'finishDateTime': value['finishDateTime'] === null ? null : ((value['finishDateTime'] as any)?.toISOString()),
|
|
263
263
|
'shiftLength': value['shiftLength'],
|
|
264
264
|
'signOffStatus': value['signOffStatus'],
|
|
265
265
|
'badgeNumber': value['badgeNumber'],
|
|
@@ -129,7 +129,7 @@ export interface RegisterResource {
|
|
|
129
129
|
* @type {number}
|
|
130
130
|
* @memberof RegisterResource
|
|
131
131
|
*/
|
|
132
|
-
signOffLong
|
|
132
|
+
signOffLong?: number | null;
|
|
133
133
|
/**
|
|
134
134
|
*
|
|
135
135
|
* @type {string}
|
|
@@ -190,7 +190,6 @@ export function instanceOfRegisterResource(value: object): value is RegisterReso
|
|
|
190
190
|
if (!('firstAidImage' in value) || value['firstAidImage'] === undefined) return false;
|
|
191
191
|
if (!('signOnLat' in value) || value['signOnLat'] === undefined) return false;
|
|
192
192
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined) return false;
|
|
193
|
-
if (!('signOffLong' in value) || value['signOffLong'] === undefined) return false;
|
|
194
193
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined) return false;
|
|
195
194
|
if (!('licenceExpiry' in value) || value['licenceExpiry'] === undefined) return false;
|
|
196
195
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined) return false;
|
|
@@ -223,7 +222,7 @@ export function RegisterResourceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
223
222
|
'signOnLat': json['signOnLat'],
|
|
224
223
|
'signOnLong': json['signOnLong'],
|
|
225
224
|
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
226
|
-
'signOffLong': json['signOffLong'],
|
|
225
|
+
'signOffLong': json['signOffLong'] == null ? undefined : json['signOffLong'],
|
|
227
226
|
'licenceNumber': json['licenceNumber'],
|
|
228
227
|
'licenceExpiry': json['licenceExpiry'],
|
|
229
228
|
'licenceFirstName': json['licenceFirstName'],
|
|
@@ -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'],
|