@digital8/security-registers-backend-ts-sdk 0.0.305 → 0.0.306
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 +22 -0
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +127 -1
- package/dist/apis/GeneralApi.js +693 -35
- package/dist/models/AssetFileForUploadResource.d.ts +4 -2
- package/dist/models/AssetLiteResource.d.ts +0 -12
- package/dist/models/AssetLiteResource.js +0 -6
- package/dist/models/AssetResource.d.ts +1 -13
- package/dist/models/AssetResource.js +3 -7
- package/dist/models/AuthChangePasswordRequest.d.ts +38 -0
- package/dist/models/AuthChangePasswordRequest.js +55 -0
- package/dist/models/AuthProfileUpdateRequest.d.ts +56 -0
- package/dist/models/AuthProfileUpdateRequest.js +57 -0
- package/dist/models/AuthRegisterGuardRequest.d.ts +70 -0
- package/dist/models/AuthRegisterGuardRequest.js +77 -0
- package/dist/models/AuthRegisterGuardRequestLicence.d.ts +98 -0
- package/dist/models/AuthRegisterGuardRequestLicence.js +95 -0
- package/dist/models/AuthRegisterGuardRequestProfileSignature.d.ts +50 -0
- package/dist/models/AuthRegisterGuardRequestProfileSignature.js +55 -0
- package/dist/models/BackAsset.d.ts +50 -0
- package/dist/models/BackAsset.js +55 -0
- package/dist/models/DevicesRegisterRequest.d.ts +76 -0
- package/dist/models/DevicesRegisterRequest.js +73 -0
- package/dist/models/FirstAidAsset.d.ts +50 -0
- package/dist/models/FirstAidAsset.js +55 -0
- package/dist/models/FrontAsset.d.ts +50 -0
- package/dist/models/FrontAsset.js +55 -0
- package/dist/models/IncidentFieldSchemaResource.d.ts +4 -2
- package/dist/models/IncidentImageResource.d.ts +1 -1
- package/dist/models/IncidentImageResource.js +3 -1
- package/dist/models/IncidentListResource.d.ts +107 -0
- package/dist/models/IncidentListResource.js +81 -0
- package/dist/models/IncidentListResourceArrayResponse.d.ts +33 -0
- package/dist/models/IncidentListResourceArrayResponse.js +50 -0
- package/dist/models/IncidentVideoUploadTokenResource.d.ts +4 -2
- package/dist/models/IncidentsExportPdfBulkRequest.d.ts +56 -0
- package/dist/models/IncidentsExportPdfBulkRequest.js +63 -0
- package/dist/models/IncidentsListRequest.d.ts +163 -0
- package/dist/models/IncidentsListRequest.js +103 -0
- package/dist/models/LicencesStoreRequest.d.ts +10 -104
- package/dist/models/LicencesStoreRequest.js +10 -40
- package/dist/models/LicencesStoreRequestBackAsset.d.ts +50 -0
- package/dist/models/LicencesStoreRequestBackAsset.js +55 -0
- package/dist/models/LicencesUpdateRequest.d.ts +9 -104
- package/dist/models/LicencesUpdateRequest.js +9 -40
- package/dist/models/MobileDeviceResource.d.ts +92 -0
- package/dist/models/MobileDeviceResource.js +86 -0
- package/dist/models/MobileDeviceResourceArrayResponse.d.ts +33 -0
- package/dist/models/MobileDeviceResourceArrayResponse.js +50 -0
- package/dist/models/MobileInitResource.d.ts +47 -0
- package/dist/models/MobileInitResource.js +62 -0
- package/dist/models/MobileInitResourceArrayResponse.d.ts +33 -0
- package/dist/models/MobileInitResourceArrayResponse.js +50 -0
- package/dist/models/PaginatedIncidentListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedIncidentListResourceResponse.js +57 -0
- package/dist/models/PdfExportQueuedResource.d.ts +44 -0
- package/dist/models/PdfExportQueuedResource.js +59 -0
- package/dist/models/PdfExportQueuedResourceArrayResponse.d.ts +33 -0
- package/dist/models/PdfExportQueuedResourceArrayResponse.js +50 -0
- package/dist/models/RegisterListResource.d.ts +5 -6
- package/dist/models/RegisterListResource.js +6 -8
- package/dist/models/RegisterResource.d.ts +1 -13
- package/dist/models/RegisterResource.js +3 -9
- package/dist/models/RsaAsset.d.ts +50 -0
- package/dist/models/RsaAsset.js +55 -0
- package/dist/models/SecurityCompanyResource.d.ts +1 -1
- package/dist/models/SecurityCompanyResource.js +1 -3
- package/dist/models/UsersCreateWithRoleRequestLicencesInner.d.ts +12 -8
- package/dist/models/UsersCreateWithRoleRequestLicencesInner.js +12 -8
- package/dist/models/VenueLiteResource.d.ts +6 -0
- package/dist/models/VenueLiteResource.js +4 -0
- package/dist/models/index.d.ts +22 -0
- package/dist/models/index.js +22 -0
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +564 -0
- package/src/models/AssetFileForUploadResource.ts +2 -2
- package/src/models/AssetLiteResource.ts +0 -17
- package/src/models/AssetResource.ts +3 -19
- package/src/models/AuthChangePasswordRequest.ts +75 -0
- package/src/models/AuthProfileUpdateRequest.ts +97 -0
- package/src/models/AuthRegisterGuardRequest.ts +135 -0
- package/src/models/AuthRegisterGuardRequestLicence.ts +181 -0
- package/src/models/AuthRegisterGuardRequestProfileSignature.ts +89 -0
- package/src/models/BackAsset.ts +89 -0
- package/src/models/DevicesRegisterRequest.ts +126 -0
- package/src/models/FirstAidAsset.ts +89 -0
- package/src/models/FrontAsset.ts +89 -0
- package/src/models/IncidentFieldSchemaResource.ts +2 -2
- package/src/models/IncidentImageResource.ts +3 -2
- package/src/models/IncidentListResource.ts +185 -0
- package/src/models/IncidentListResourceArrayResponse.ts +73 -0
- package/src/models/IncidentVideoUploadTokenResource.ts +2 -2
- package/src/models/IncidentsExportPdfBulkRequest.ts +100 -0
- package/src/models/IncidentsListRequest.ts +238 -0
- package/src/models/LicencesStoreRequest.ts +31 -144
- package/src/models/LicencesStoreRequestBackAsset.ts +89 -0
- package/src/models/LicencesUpdateRequest.ts +24 -144
- package/src/models/MobileDeviceResource.ts +153 -0
- package/src/models/MobileDeviceResourceArrayResponse.ts +73 -0
- package/src/models/MobileInitResource.ts +106 -0
- package/src/models/MobileInitResourceArrayResponse.ts +73 -0
- package/src/models/PaginatedIncidentListResourceResponse.ts +90 -0
- package/src/models/PdfExportQueuedResource.ts +84 -0
- package/src/models/PdfExportQueuedResourceArrayResponse.ts +73 -0
- package/src/models/RegisterListResource.ts +10 -18
- package/src/models/RegisterResource.ts +3 -20
- package/src/models/RsaAsset.ts +89 -0
- package/src/models/SecurityCompanyResource.ts +2 -3
- package/src/models/UsersCreateWithRoleRequestLicencesInner.ts +45 -16
- package/src/models/VenueLiteResource.ts +9 -0
- package/src/models/index.ts +22 -0
|
@@ -0,0 +1,89 @@
|
|
|
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 BackAsset
|
|
20
|
+
*/
|
|
21
|
+
export interface BackAsset {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof BackAsset
|
|
26
|
+
*/
|
|
27
|
+
fileId?: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof BackAsset
|
|
32
|
+
*/
|
|
33
|
+
fileName?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof BackAsset
|
|
38
|
+
*/
|
|
39
|
+
mimeType?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof BackAsset
|
|
44
|
+
*/
|
|
45
|
+
altText?: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the BackAsset interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfBackAsset(value: object): value is BackAsset {
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function BackAssetFromJSON(json: any): BackAsset {
|
|
56
|
+
return BackAssetFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function BackAssetFromJSONTyped(json: any, ignoreDiscriminator: boolean): BackAsset {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'fileId': json['file_id'] == null ? undefined : json['file_id'],
|
|
66
|
+
'fileName': json['file_name'] == null ? undefined : json['file_name'],
|
|
67
|
+
'mimeType': json['mime_type'] == null ? undefined : json['mime_type'],
|
|
68
|
+
'altText': json['alt_text'] == null ? undefined : json['alt_text'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function BackAssetToJSON(json: any): BackAsset {
|
|
73
|
+
return BackAssetToJSONTyped(json, false);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function BackAssetToJSONTyped(value?: BackAsset | null, ignoreDiscriminator: boolean = false): any {
|
|
77
|
+
if (value == null) {
|
|
78
|
+
return value;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'file_id': value['fileId'],
|
|
84
|
+
'file_name': value['fileName'],
|
|
85
|
+
'mime_type': value['mimeType'],
|
|
86
|
+
'alt_text': value['altText'],
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
@@ -0,0 +1,126 @@
|
|
|
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 DevicesRegisterRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface DevicesRegisterRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof DevicesRegisterRequest
|
|
26
|
+
*/
|
|
27
|
+
deviceId: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof DevicesRegisterRequest
|
|
32
|
+
*/
|
|
33
|
+
platform: DevicesRegisterRequestPlatformEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof DevicesRegisterRequest
|
|
38
|
+
*/
|
|
39
|
+
osVersion?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof DevicesRegisterRequest
|
|
44
|
+
*/
|
|
45
|
+
appVersion?: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof DevicesRegisterRequest
|
|
50
|
+
*/
|
|
51
|
+
model?: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof DevicesRegisterRequest
|
|
56
|
+
*/
|
|
57
|
+
name?: string;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof DevicesRegisterRequest
|
|
62
|
+
*/
|
|
63
|
+
pushToken?: string;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* @export
|
|
69
|
+
*/
|
|
70
|
+
export const DevicesRegisterRequestPlatformEnum = {
|
|
71
|
+
Ios: 'ios',
|
|
72
|
+
Android: 'android'
|
|
73
|
+
} as const;
|
|
74
|
+
export type DevicesRegisterRequestPlatformEnum = typeof DevicesRegisterRequestPlatformEnum[keyof typeof DevicesRegisterRequestPlatformEnum];
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Check if a given object implements the DevicesRegisterRequest interface.
|
|
79
|
+
*/
|
|
80
|
+
export function instanceOfDevicesRegisterRequest(value: object): value is DevicesRegisterRequest {
|
|
81
|
+
if (!('deviceId' in value) || value['deviceId'] === undefined) return false;
|
|
82
|
+
if (!('platform' in value) || value['platform'] === undefined) return false;
|
|
83
|
+
return true;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function DevicesRegisterRequestFromJSON(json: any): DevicesRegisterRequest {
|
|
87
|
+
return DevicesRegisterRequestFromJSONTyped(json, false);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function DevicesRegisterRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DevicesRegisterRequest {
|
|
91
|
+
if (json == null) {
|
|
92
|
+
return json;
|
|
93
|
+
}
|
|
94
|
+
return {
|
|
95
|
+
|
|
96
|
+
'deviceId': json['device_id'],
|
|
97
|
+
'platform': json['platform'],
|
|
98
|
+
'osVersion': json['os_version'] == null ? undefined : json['os_version'],
|
|
99
|
+
'appVersion': json['app_version'] == null ? undefined : json['app_version'],
|
|
100
|
+
'model': json['model'] == null ? undefined : json['model'],
|
|
101
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
102
|
+
'pushToken': json['push_token'] == null ? undefined : json['push_token'],
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export function DevicesRegisterRequestToJSON(json: any): DevicesRegisterRequest {
|
|
107
|
+
return DevicesRegisterRequestToJSONTyped(json, false);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export function DevicesRegisterRequestToJSONTyped(value?: DevicesRegisterRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
111
|
+
if (value == null) {
|
|
112
|
+
return value;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
return {
|
|
116
|
+
|
|
117
|
+
'device_id': value['deviceId'],
|
|
118
|
+
'platform': value['platform'],
|
|
119
|
+
'os_version': value['osVersion'],
|
|
120
|
+
'app_version': value['appVersion'],
|
|
121
|
+
'model': value['model'],
|
|
122
|
+
'name': value['name'],
|
|
123
|
+
'push_token': value['pushToken'],
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
|
|
@@ -0,0 +1,89 @@
|
|
|
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 FirstAidAsset
|
|
20
|
+
*/
|
|
21
|
+
export interface FirstAidAsset {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof FirstAidAsset
|
|
26
|
+
*/
|
|
27
|
+
fileId?: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof FirstAidAsset
|
|
32
|
+
*/
|
|
33
|
+
fileName?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof FirstAidAsset
|
|
38
|
+
*/
|
|
39
|
+
mimeType?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof FirstAidAsset
|
|
44
|
+
*/
|
|
45
|
+
altText?: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the FirstAidAsset interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfFirstAidAsset(value: object): value is FirstAidAsset {
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function FirstAidAssetFromJSON(json: any): FirstAidAsset {
|
|
56
|
+
return FirstAidAssetFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function FirstAidAssetFromJSONTyped(json: any, ignoreDiscriminator: boolean): FirstAidAsset {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'fileId': json['file_id'] == null ? undefined : json['file_id'],
|
|
66
|
+
'fileName': json['file_name'] == null ? undefined : json['file_name'],
|
|
67
|
+
'mimeType': json['mime_type'] == null ? undefined : json['mime_type'],
|
|
68
|
+
'altText': json['alt_text'] == null ? undefined : json['alt_text'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function FirstAidAssetToJSON(json: any): FirstAidAsset {
|
|
73
|
+
return FirstAidAssetToJSONTyped(json, false);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function FirstAidAssetToJSONTyped(value?: FirstAidAsset | null, ignoreDiscriminator: boolean = false): any {
|
|
77
|
+
if (value == null) {
|
|
78
|
+
return value;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'file_id': value['fileId'],
|
|
84
|
+
'file_name': value['fileName'],
|
|
85
|
+
'mime_type': value['mimeType'],
|
|
86
|
+
'alt_text': value['altText'],
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
@@ -0,0 +1,89 @@
|
|
|
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 FrontAsset
|
|
20
|
+
*/
|
|
21
|
+
export interface FrontAsset {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof FrontAsset
|
|
26
|
+
*/
|
|
27
|
+
fileId?: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof FrontAsset
|
|
32
|
+
*/
|
|
33
|
+
fileName?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof FrontAsset
|
|
38
|
+
*/
|
|
39
|
+
mimeType?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof FrontAsset
|
|
44
|
+
*/
|
|
45
|
+
altText?: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the FrontAsset interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfFrontAsset(value: object): value is FrontAsset {
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function FrontAssetFromJSON(json: any): FrontAsset {
|
|
56
|
+
return FrontAssetFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function FrontAssetFromJSONTyped(json: any, ignoreDiscriminator: boolean): FrontAsset {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'fileId': json['file_id'] == null ? undefined : json['file_id'],
|
|
66
|
+
'fileName': json['file_name'] == null ? undefined : json['file_name'],
|
|
67
|
+
'mimeType': json['mime_type'] == null ? undefined : json['mime_type'],
|
|
68
|
+
'altText': json['alt_text'] == null ? undefined : json['alt_text'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function FrontAssetToJSON(json: any): FrontAsset {
|
|
73
|
+
return FrontAssetToJSONTyped(json, false);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function FrontAssetToJSONTyped(value?: FrontAsset | null, ignoreDiscriminator: boolean = false): any {
|
|
77
|
+
if (value == null) {
|
|
78
|
+
return value;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'file_id': value['fileId'],
|
|
84
|
+
'file_name': value['fileName'],
|
|
85
|
+
'mime_type': value['mimeType'],
|
|
86
|
+
'alt_text': value['altText'],
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
@@ -33,10 +33,10 @@ export interface IncidentFieldSchemaResource {
|
|
|
33
33
|
state: object;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
|
-
* @type {
|
|
36
|
+
* @type {{ [key: string]: boolean; }}
|
|
37
37
|
* @memberof IncidentFieldSchemaResource
|
|
38
38
|
*/
|
|
39
|
-
jsonSchema:
|
|
39
|
+
jsonSchema: { [key: string]: boolean; };
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {Date}
|
|
@@ -36,7 +36,7 @@ export interface IncidentImageResource {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof IncidentImageResource
|
|
38
38
|
*/
|
|
39
|
-
altText
|
|
39
|
+
altText: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {number}
|
|
@@ -57,6 +57,7 @@ export interface IncidentImageResource {
|
|
|
57
57
|
export function instanceOfIncidentImageResource(value: object): value is IncidentImageResource {
|
|
58
58
|
if (!('fileId' in value) || value['fileId'] === undefined) return false;
|
|
59
59
|
if (!('mimeType' in value) || value['mimeType'] === undefined) return false;
|
|
60
|
+
if (!('altText' in value) || value['altText'] === undefined) return false;
|
|
60
61
|
if (!('assetId' in value) || value['assetId'] === undefined) return false;
|
|
61
62
|
if (!('url' in value) || value['url'] === undefined) return false;
|
|
62
63
|
return true;
|
|
@@ -74,7 +75,7 @@ export function IncidentImageResourceFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
74
75
|
|
|
75
76
|
'fileId': json['file_id'],
|
|
76
77
|
'mimeType': json['mime_type'],
|
|
77
|
-
'altText': json['alt_text']
|
|
78
|
+
'altText': json['alt_text'],
|
|
78
79
|
'assetId': json['asset_id'],
|
|
79
80
|
'url': json['url'],
|
|
80
81
|
};
|
|
@@ -0,0 +1,185 @@
|
|
|
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 { VenueLiteResource } from './VenueLiteResource';
|
|
17
|
+
import {
|
|
18
|
+
VenueLiteResourceFromJSON,
|
|
19
|
+
VenueLiteResourceFromJSONTyped,
|
|
20
|
+
VenueLiteResourceToJSON,
|
|
21
|
+
VenueLiteResourceToJSONTyped,
|
|
22
|
+
} from './VenueLiteResource';
|
|
23
|
+
import type { SecurityCompanyLiteResource } from './SecurityCompanyLiteResource';
|
|
24
|
+
import {
|
|
25
|
+
SecurityCompanyLiteResourceFromJSON,
|
|
26
|
+
SecurityCompanyLiteResourceFromJSONTyped,
|
|
27
|
+
SecurityCompanyLiteResourceToJSON,
|
|
28
|
+
SecurityCompanyLiteResourceToJSONTyped,
|
|
29
|
+
} from './SecurityCompanyLiteResource';
|
|
30
|
+
import type { UserLiteResource } from './UserLiteResource';
|
|
31
|
+
import {
|
|
32
|
+
UserLiteResourceFromJSON,
|
|
33
|
+
UserLiteResourceFromJSONTyped,
|
|
34
|
+
UserLiteResourceToJSON,
|
|
35
|
+
UserLiteResourceToJSONTyped,
|
|
36
|
+
} from './UserLiteResource';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
* @interface IncidentListResource
|
|
42
|
+
*/
|
|
43
|
+
export interface IncidentListResource {
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {number}
|
|
47
|
+
* @memberof IncidentListResource
|
|
48
|
+
*/
|
|
49
|
+
id: number;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {VenueLiteResource}
|
|
53
|
+
* @memberof IncidentListResource
|
|
54
|
+
*/
|
|
55
|
+
venue?: VenueLiteResource;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {SecurityCompanyLiteResource}
|
|
59
|
+
* @memberof IncidentListResource
|
|
60
|
+
*/
|
|
61
|
+
securityCompany?: SecurityCompanyLiteResource;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {UserLiteResource}
|
|
65
|
+
* @memberof IncidentListResource
|
|
66
|
+
*/
|
|
67
|
+
user?: UserLiteResource;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {UserLiteResource}
|
|
71
|
+
* @memberof IncidentListResource
|
|
72
|
+
*/
|
|
73
|
+
approvedByUser?: UserLiteResource;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof IncidentListResource
|
|
78
|
+
*/
|
|
79
|
+
title?: string | null;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof IncidentListResource
|
|
84
|
+
*/
|
|
85
|
+
dutyManager?: string | null;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {Date}
|
|
89
|
+
* @memberof IncidentListResource
|
|
90
|
+
*/
|
|
91
|
+
incidentDateTime?: Date | null;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {string}
|
|
95
|
+
* @memberof IncidentListResource
|
|
96
|
+
*/
|
|
97
|
+
state?: string | null;
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @type {boolean}
|
|
101
|
+
* @memberof IncidentListResource
|
|
102
|
+
*/
|
|
103
|
+
submittedByGuard: boolean;
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @type {Date}
|
|
107
|
+
* @memberof IncidentListResource
|
|
108
|
+
*/
|
|
109
|
+
approvedAt?: Date | null;
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* @type {Date}
|
|
113
|
+
* @memberof IncidentListResource
|
|
114
|
+
*/
|
|
115
|
+
createdAt?: Date | null;
|
|
116
|
+
/**
|
|
117
|
+
*
|
|
118
|
+
* @type {Date}
|
|
119
|
+
* @memberof IncidentListResource
|
|
120
|
+
*/
|
|
121
|
+
updatedAt?: Date | null;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Check if a given object implements the IncidentListResource interface.
|
|
126
|
+
*/
|
|
127
|
+
export function instanceOfIncidentListResource(value: object): value is IncidentListResource {
|
|
128
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
129
|
+
if (!('submittedByGuard' in value) || value['submittedByGuard'] === undefined) return false;
|
|
130
|
+
return true;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export function IncidentListResourceFromJSON(json: any): IncidentListResource {
|
|
134
|
+
return IncidentListResourceFromJSONTyped(json, false);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export function IncidentListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentListResource {
|
|
138
|
+
if (json == null) {
|
|
139
|
+
return json;
|
|
140
|
+
}
|
|
141
|
+
return {
|
|
142
|
+
|
|
143
|
+
'id': json['id'],
|
|
144
|
+
'venue': json['venue'] == null ? undefined : VenueLiteResourceFromJSON(json['venue']),
|
|
145
|
+
'securityCompany': json['securityCompany'] == null ? undefined : SecurityCompanyLiteResourceFromJSON(json['securityCompany']),
|
|
146
|
+
'user': json['user'] == null ? undefined : UserLiteResourceFromJSON(json['user']),
|
|
147
|
+
'approvedByUser': json['approvedByUser'] == null ? undefined : UserLiteResourceFromJSON(json['approvedByUser']),
|
|
148
|
+
'title': json['title'] == null ? undefined : json['title'],
|
|
149
|
+
'dutyManager': json['dutyManager'] == null ? undefined : json['dutyManager'],
|
|
150
|
+
'incidentDateTime': json['incidentDateTime'] == null ? undefined : (new Date(json['incidentDateTime'])),
|
|
151
|
+
'state': json['state'] == null ? undefined : json['state'],
|
|
152
|
+
'submittedByGuard': json['submittedByGuard'],
|
|
153
|
+
'approvedAt': json['approvedAt'] == null ? undefined : (new Date(json['approvedAt'])),
|
|
154
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
155
|
+
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export function IncidentListResourceToJSON(json: any): IncidentListResource {
|
|
160
|
+
return IncidentListResourceToJSONTyped(json, false);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export function IncidentListResourceToJSONTyped(value?: IncidentListResource | null, ignoreDiscriminator: boolean = false): any {
|
|
164
|
+
if (value == null) {
|
|
165
|
+
return value;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
return {
|
|
169
|
+
|
|
170
|
+
'id': value['id'],
|
|
171
|
+
'venue': VenueLiteResourceToJSON(value['venue']),
|
|
172
|
+
'securityCompany': SecurityCompanyLiteResourceToJSON(value['securityCompany']),
|
|
173
|
+
'user': UserLiteResourceToJSON(value['user']),
|
|
174
|
+
'approvedByUser': UserLiteResourceToJSON(value['approvedByUser']),
|
|
175
|
+
'title': value['title'],
|
|
176
|
+
'dutyManager': value['dutyManager'],
|
|
177
|
+
'incidentDateTime': value['incidentDateTime'] === null ? null : ((value['incidentDateTime'] as any)?.toISOString()),
|
|
178
|
+
'state': value['state'],
|
|
179
|
+
'submittedByGuard': value['submittedByGuard'],
|
|
180
|
+
'approvedAt': value['approvedAt'] === null ? null : ((value['approvedAt'] as any)?.toISOString()),
|
|
181
|
+
'createdAt': value['createdAt'] === null ? null : ((value['createdAt'] as any)?.toISOString()),
|
|
182
|
+
'updatedAt': value['updatedAt'] === null ? null : ((value['updatedAt'] as any)?.toISOString()),
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
|
|
@@ -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 { IncidentListResource } from './IncidentListResource';
|
|
17
|
+
import {
|
|
18
|
+
IncidentListResourceFromJSON,
|
|
19
|
+
IncidentListResourceFromJSONTyped,
|
|
20
|
+
IncidentListResourceToJSON,
|
|
21
|
+
IncidentListResourceToJSONTyped,
|
|
22
|
+
} from './IncidentListResource';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface IncidentListResourceArrayResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface IncidentListResourceArrayResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<IncidentListResource>}
|
|
33
|
+
* @memberof IncidentListResourceArrayResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<IncidentListResource>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the IncidentListResourceArrayResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfIncidentListResourceArrayResponse(value: object): value is IncidentListResourceArrayResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function IncidentListResourceArrayResponseFromJSON(json: any): IncidentListResourceArrayResponse {
|
|
46
|
+
return IncidentListResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function IncidentListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IncidentListResourceArrayResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(IncidentListResourceFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function IncidentListResourceArrayResponseToJSON(json: any): IncidentListResourceArrayResponse {
|
|
60
|
+
return IncidentListResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function IncidentListResourceArrayResponseToJSONTyped(value?: IncidentListResourceArrayResponse | 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(IncidentListResourceToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -39,10 +39,10 @@ export interface IncidentVideoUploadTokenResource {
|
|
|
39
39
|
containerName: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
|
-
* @type {
|
|
42
|
+
* @type {{ [key: string]: string; }}
|
|
43
43
|
* @memberof IncidentVideoUploadTokenResource
|
|
44
44
|
*/
|
|
45
|
-
headers:
|
|
45
|
+
headers: { [key: string]: string; };
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
/**
|