@digital8/security-registers-backend-ts-sdk 0.0.314 → 0.0.316
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 +26 -0
- package/README.md +2 -2
- package/dist/apis/GeneralApi.d.ts +150 -1
- package/dist/apis/GeneralApi.js +815 -43
- 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 +0 -12
- package/dist/models/AssetResource.js +0 -6
- 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/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 +7 -8
- package/dist/models/RegisterListResource.js +9 -13
- package/dist/models/RegisterResource.d.ts +1 -13
- package/dist/models/RegisterResource.js +1 -11
- package/dist/models/RosterListResource.d.ts +1 -1
- package/dist/models/RosterListResource.js +3 -4
- package/dist/models/RsaAsset.d.ts +50 -0
- package/dist/models/RsaAsset.js +55 -0
- package/dist/models/UsersCreateWithRoleRequestLicencesInner.d.ts +12 -8
- package/dist/models/UsersCreateWithRoleRequestLicencesInner.js +12 -8
- package/dist/models/VenueGuardScheduleResource.d.ts +50 -0
- package/dist/models/VenueGuardScheduleResource.js +63 -0
- package/dist/models/VenueGuardScheduleResourceArrayResponse.d.ts +33 -0
- package/dist/models/VenueGuardScheduleResourceArrayResponse.js +50 -0
- package/dist/models/VenueLiteResource.d.ts +6 -0
- package/dist/models/VenueLiteResource.js +4 -0
- package/dist/models/VenuesGuardScheduleUpdateRequest.d.ts +33 -0
- package/dist/models/VenuesGuardScheduleUpdateRequest.js +50 -0
- package/dist/models/VenuesGuardScheduleUpdateRequestEntriesInner.d.ts +44 -0
- package/dist/models/VenuesGuardScheduleUpdateRequestEntriesInner.js +59 -0
- package/dist/models/index.d.ts +26 -0
- package/dist/models/index.js +26 -0
- package/package.json +1 -1
- package/src/apis/GeneralApi.ts +709 -37
- package/src/models/AssetFileForUploadResource.ts +2 -2
- package/src/models/AssetLiteResource.ts +0 -17
- package/src/models/AssetResource.ts +0 -17
- 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/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 +15 -23
- package/src/models/RegisterResource.ts +2 -21
- package/src/models/RosterListResource.ts +3 -4
- package/src/models/RsaAsset.ts +89 -0
- package/src/models/UsersCreateWithRoleRequestLicencesInner.ts +45 -16
- package/src/models/VenueGuardScheduleResource.ts +93 -0
- package/src/models/VenueGuardScheduleResourceArrayResponse.ts +73 -0
- package/src/models/VenueLiteResource.ts +9 -0
- package/src/models/VenuesGuardScheduleUpdateRequest.ts +73 -0
- package/src/models/VenuesGuardScheduleUpdateRequestEntriesInner.ts +84 -0
- package/src/models/index.ts +26 -0
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { LicencesStoreRequestBackAsset } from './LicencesStoreRequestBackAsset';
|
|
13
|
+
import type { AuthRegisterGuardRequestProfileSignature } from './AuthRegisterGuardRequestProfileSignature';
|
|
12
14
|
/**
|
|
13
15
|
*
|
|
14
16
|
* @export
|
|
@@ -53,124 +55,28 @@ export interface LicencesStoreRequest {
|
|
|
53
55
|
expiryDate: Date;
|
|
54
56
|
/**
|
|
55
57
|
*
|
|
56
|
-
* @type {
|
|
58
|
+
* @type {AuthRegisterGuardRequestProfileSignature}
|
|
57
59
|
* @memberof LicencesStoreRequest
|
|
58
60
|
*/
|
|
59
|
-
frontAsset:
|
|
61
|
+
frontAsset: AuthRegisterGuardRequestProfileSignature;
|
|
60
62
|
/**
|
|
61
63
|
*
|
|
62
|
-
* @type {
|
|
63
|
-
* @memberof LicencesStoreRequest
|
|
64
|
-
*/
|
|
65
|
-
frontAssetFileId?: number;
|
|
66
|
-
/**
|
|
67
|
-
*
|
|
68
|
-
* @type {string}
|
|
69
|
-
* @memberof LicencesStoreRequest
|
|
70
|
-
*/
|
|
71
|
-
frontAssetFileName?: string;
|
|
72
|
-
/**
|
|
73
|
-
*
|
|
74
|
-
* @type {string}
|
|
75
|
-
* @memberof LicencesStoreRequest
|
|
76
|
-
*/
|
|
77
|
-
frontAssetMimeType?: string;
|
|
78
|
-
/**
|
|
79
|
-
*
|
|
80
|
-
* @type {string}
|
|
81
|
-
* @memberof LicencesStoreRequest
|
|
82
|
-
*/
|
|
83
|
-
frontAssetAltText?: string;
|
|
84
|
-
/**
|
|
85
|
-
*
|
|
86
|
-
* @type {Array<string>}
|
|
87
|
-
* @memberof LicencesStoreRequest
|
|
88
|
-
*/
|
|
89
|
-
backAsset?: Array<string>;
|
|
90
|
-
/**
|
|
91
|
-
*
|
|
92
|
-
* @type {number}
|
|
93
|
-
* @memberof LicencesStoreRequest
|
|
94
|
-
*/
|
|
95
|
-
backAssetFileId?: number;
|
|
96
|
-
/**
|
|
97
|
-
*
|
|
98
|
-
* @type {string}
|
|
99
|
-
* @memberof LicencesStoreRequest
|
|
100
|
-
*/
|
|
101
|
-
backAssetFileName?: string;
|
|
102
|
-
/**
|
|
103
|
-
*
|
|
104
|
-
* @type {string}
|
|
105
|
-
* @memberof LicencesStoreRequest
|
|
106
|
-
*/
|
|
107
|
-
backAssetMimeType?: string;
|
|
108
|
-
/**
|
|
109
|
-
*
|
|
110
|
-
* @type {string}
|
|
64
|
+
* @type {LicencesStoreRequestBackAsset}
|
|
111
65
|
* @memberof LicencesStoreRequest
|
|
112
66
|
*/
|
|
113
|
-
|
|
67
|
+
backAsset?: LicencesStoreRequestBackAsset | null;
|
|
114
68
|
/**
|
|
115
69
|
*
|
|
116
|
-
* @type {
|
|
70
|
+
* @type {LicencesStoreRequestBackAsset}
|
|
117
71
|
* @memberof LicencesStoreRequest
|
|
118
72
|
*/
|
|
119
|
-
rsaAsset?:
|
|
73
|
+
rsaAsset?: LicencesStoreRequestBackAsset | null;
|
|
120
74
|
/**
|
|
121
75
|
*
|
|
122
|
-
* @type {
|
|
123
|
-
* @memberof LicencesStoreRequest
|
|
124
|
-
*/
|
|
125
|
-
rsaAssetFileId?: number;
|
|
126
|
-
/**
|
|
127
|
-
*
|
|
128
|
-
* @type {string}
|
|
129
|
-
* @memberof LicencesStoreRequest
|
|
130
|
-
*/
|
|
131
|
-
rsaAssetFileName?: string;
|
|
132
|
-
/**
|
|
133
|
-
*
|
|
134
|
-
* @type {string}
|
|
135
|
-
* @memberof LicencesStoreRequest
|
|
136
|
-
*/
|
|
137
|
-
rsaAssetMimeType?: string;
|
|
138
|
-
/**
|
|
139
|
-
*
|
|
140
|
-
* @type {string}
|
|
141
|
-
* @memberof LicencesStoreRequest
|
|
142
|
-
*/
|
|
143
|
-
rsaAssetAltText?: string;
|
|
144
|
-
/**
|
|
145
|
-
*
|
|
146
|
-
* @type {Array<string>}
|
|
147
|
-
* @memberof LicencesStoreRequest
|
|
148
|
-
*/
|
|
149
|
-
firstAidAsset?: Array<string>;
|
|
150
|
-
/**
|
|
151
|
-
*
|
|
152
|
-
* @type {number}
|
|
153
|
-
* @memberof LicencesStoreRequest
|
|
154
|
-
*/
|
|
155
|
-
firstAidAssetFileId?: number;
|
|
156
|
-
/**
|
|
157
|
-
*
|
|
158
|
-
* @type {string}
|
|
159
|
-
* @memberof LicencesStoreRequest
|
|
160
|
-
*/
|
|
161
|
-
firstAidAssetFileName?: string;
|
|
162
|
-
/**
|
|
163
|
-
*
|
|
164
|
-
* @type {string}
|
|
165
|
-
* @memberof LicencesStoreRequest
|
|
166
|
-
*/
|
|
167
|
-
firstAidAssetMimeType?: string;
|
|
168
|
-
/**
|
|
169
|
-
*
|
|
170
|
-
* @type {string}
|
|
76
|
+
* @type {LicencesStoreRequestBackAsset}
|
|
171
77
|
* @memberof LicencesStoreRequest
|
|
172
78
|
*/
|
|
173
|
-
|
|
79
|
+
firstAidAsset?: LicencesStoreRequestBackAsset | null;
|
|
174
80
|
}
|
|
175
81
|
/**
|
|
176
82
|
* @export
|
|
@@ -19,6 +19,8 @@ exports.LicencesStoreRequestFromJSON = LicencesStoreRequestFromJSON;
|
|
|
19
19
|
exports.LicencesStoreRequestFromJSONTyped = LicencesStoreRequestFromJSONTyped;
|
|
20
20
|
exports.LicencesStoreRequestToJSON = LicencesStoreRequestToJSON;
|
|
21
21
|
exports.LicencesStoreRequestToJSONTyped = LicencesStoreRequestToJSONTyped;
|
|
22
|
+
var LicencesStoreRequestBackAsset_1 = require("./LicencesStoreRequestBackAsset");
|
|
23
|
+
var AuthRegisterGuardRequestProfileSignature_1 = require("./AuthRegisterGuardRequestProfileSignature");
|
|
22
24
|
/**
|
|
23
25
|
* @export
|
|
24
26
|
*/
|
|
@@ -66,26 +68,10 @@ function LicencesStoreRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
66
68
|
'firstName': json['first_name'],
|
|
67
69
|
'lastName': json['last_name'],
|
|
68
70
|
'expiryDate': (new Date(json['expiry_date'])),
|
|
69
|
-
'frontAsset': json['front_asset'],
|
|
70
|
-
'
|
|
71
|
-
'
|
|
72
|
-
'
|
|
73
|
-
'frontAssetAltText': json['front_asset.alt_text'] == null ? undefined : json['front_asset.alt_text'],
|
|
74
|
-
'backAsset': json['back_asset'] == null ? undefined : json['back_asset'],
|
|
75
|
-
'backAssetFileId': json['back_asset.file_id'] == null ? undefined : json['back_asset.file_id'],
|
|
76
|
-
'backAssetFileName': json['back_asset.file_name'] == null ? undefined : json['back_asset.file_name'],
|
|
77
|
-
'backAssetMimeType': json['back_asset.mime_type'] == null ? undefined : json['back_asset.mime_type'],
|
|
78
|
-
'backAssetAltText': json['back_asset.alt_text'] == null ? undefined : json['back_asset.alt_text'],
|
|
79
|
-
'rsaAsset': json['rsa_asset'] == null ? undefined : json['rsa_asset'],
|
|
80
|
-
'rsaAssetFileId': json['rsa_asset.file_id'] == null ? undefined : json['rsa_asset.file_id'],
|
|
81
|
-
'rsaAssetFileName': json['rsa_asset.file_name'] == null ? undefined : json['rsa_asset.file_name'],
|
|
82
|
-
'rsaAssetMimeType': json['rsa_asset.mime_type'] == null ? undefined : json['rsa_asset.mime_type'],
|
|
83
|
-
'rsaAssetAltText': json['rsa_asset.alt_text'] == null ? undefined : json['rsa_asset.alt_text'],
|
|
84
|
-
'firstAidAsset': json['first_aid_asset'] == null ? undefined : json['first_aid_asset'],
|
|
85
|
-
'firstAidAssetFileId': json['first_aid_asset.file_id'] == null ? undefined : json['first_aid_asset.file_id'],
|
|
86
|
-
'firstAidAssetFileName': json['first_aid_asset.file_name'] == null ? undefined : json['first_aid_asset.file_name'],
|
|
87
|
-
'firstAidAssetMimeType': json['first_aid_asset.mime_type'] == null ? undefined : json['first_aid_asset.mime_type'],
|
|
88
|
-
'firstAidAssetAltText': json['first_aid_asset.alt_text'] == null ? undefined : json['first_aid_asset.alt_text'],
|
|
71
|
+
'frontAsset': (0, AuthRegisterGuardRequestProfileSignature_1.AuthRegisterGuardRequestProfileSignatureFromJSON)(json['front_asset']),
|
|
72
|
+
'backAsset': json['back_asset'] == null ? undefined : (0, LicencesStoreRequestBackAsset_1.LicencesStoreRequestBackAssetFromJSON)(json['back_asset']),
|
|
73
|
+
'rsaAsset': json['rsa_asset'] == null ? undefined : (0, LicencesStoreRequestBackAsset_1.LicencesStoreRequestBackAssetFromJSON)(json['rsa_asset']),
|
|
74
|
+
'firstAidAsset': json['first_aid_asset'] == null ? undefined : (0, LicencesStoreRequestBackAsset_1.LicencesStoreRequestBackAssetFromJSON)(json['first_aid_asset']),
|
|
89
75
|
};
|
|
90
76
|
}
|
|
91
77
|
function LicencesStoreRequestToJSON(json) {
|
|
@@ -103,25 +89,9 @@ function LicencesStoreRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
103
89
|
'first_name': value['firstName'],
|
|
104
90
|
'last_name': value['lastName'],
|
|
105
91
|
'expiry_date': ((value['expiryDate']).toISOString()),
|
|
106
|
-
'front_asset': value['frontAsset'],
|
|
107
|
-
'
|
|
108
|
-
'
|
|
109
|
-
'
|
|
110
|
-
'front_asset.alt_text': value['frontAssetAltText'],
|
|
111
|
-
'back_asset': value['backAsset'],
|
|
112
|
-
'back_asset.file_id': value['backAssetFileId'],
|
|
113
|
-
'back_asset.file_name': value['backAssetFileName'],
|
|
114
|
-
'back_asset.mime_type': value['backAssetMimeType'],
|
|
115
|
-
'back_asset.alt_text': value['backAssetAltText'],
|
|
116
|
-
'rsa_asset': value['rsaAsset'],
|
|
117
|
-
'rsa_asset.file_id': value['rsaAssetFileId'],
|
|
118
|
-
'rsa_asset.file_name': value['rsaAssetFileName'],
|
|
119
|
-
'rsa_asset.mime_type': value['rsaAssetMimeType'],
|
|
120
|
-
'rsa_asset.alt_text': value['rsaAssetAltText'],
|
|
121
|
-
'first_aid_asset': value['firstAidAsset'],
|
|
122
|
-
'first_aid_asset.file_id': value['firstAidAssetFileId'],
|
|
123
|
-
'first_aid_asset.file_name': value['firstAidAssetFileName'],
|
|
124
|
-
'first_aid_asset.mime_type': value['firstAidAssetMimeType'],
|
|
125
|
-
'first_aid_asset.alt_text': value['firstAidAssetAltText'],
|
|
92
|
+
'front_asset': (0, AuthRegisterGuardRequestProfileSignature_1.AuthRegisterGuardRequestProfileSignatureToJSON)(value['frontAsset']),
|
|
93
|
+
'back_asset': (0, LicencesStoreRequestBackAsset_1.LicencesStoreRequestBackAssetToJSON)(value['backAsset']),
|
|
94
|
+
'rsa_asset': (0, LicencesStoreRequestBackAsset_1.LicencesStoreRequestBackAssetToJSON)(value['rsaAsset']),
|
|
95
|
+
'first_aid_asset': (0, LicencesStoreRequestBackAsset_1.LicencesStoreRequestBackAssetToJSON)(value['firstAidAsset']),
|
|
126
96
|
};
|
|
127
97
|
}
|
|
@@ -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 LicencesStoreRequestBackAsset
|
|
16
|
+
*/
|
|
17
|
+
export interface LicencesStoreRequestBackAsset {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof LicencesStoreRequestBackAsset
|
|
22
|
+
*/
|
|
23
|
+
fileId?: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof LicencesStoreRequestBackAsset
|
|
28
|
+
*/
|
|
29
|
+
fileName?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof LicencesStoreRequestBackAsset
|
|
34
|
+
*/
|
|
35
|
+
mimeType?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof LicencesStoreRequestBackAsset
|
|
40
|
+
*/
|
|
41
|
+
altText?: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the LicencesStoreRequestBackAsset interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfLicencesStoreRequestBackAsset(value: object): value is LicencesStoreRequestBackAsset;
|
|
47
|
+
export declare function LicencesStoreRequestBackAssetFromJSON(json: any): LicencesStoreRequestBackAsset;
|
|
48
|
+
export declare function LicencesStoreRequestBackAssetFromJSONTyped(json: any, ignoreDiscriminator: boolean): LicencesStoreRequestBackAsset;
|
|
49
|
+
export declare function LicencesStoreRequestBackAssetToJSON(json: any): LicencesStoreRequestBackAsset;
|
|
50
|
+
export declare function LicencesStoreRequestBackAssetToJSONTyped(value?: LicencesStoreRequestBackAsset | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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.instanceOfLicencesStoreRequestBackAsset = instanceOfLicencesStoreRequestBackAsset;
|
|
17
|
+
exports.LicencesStoreRequestBackAssetFromJSON = LicencesStoreRequestBackAssetFromJSON;
|
|
18
|
+
exports.LicencesStoreRequestBackAssetFromJSONTyped = LicencesStoreRequestBackAssetFromJSONTyped;
|
|
19
|
+
exports.LicencesStoreRequestBackAssetToJSON = LicencesStoreRequestBackAssetToJSON;
|
|
20
|
+
exports.LicencesStoreRequestBackAssetToJSONTyped = LicencesStoreRequestBackAssetToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the LicencesStoreRequestBackAsset interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfLicencesStoreRequestBackAsset(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function LicencesStoreRequestBackAssetFromJSON(json) {
|
|
28
|
+
return LicencesStoreRequestBackAssetFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function LicencesStoreRequestBackAssetFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'fileId': json['file_id'] == null ? undefined : json['file_id'],
|
|
36
|
+
'fileName': json['file_name'] == null ? undefined : json['file_name'],
|
|
37
|
+
'mimeType': json['mime_type'] == null ? undefined : json['mime_type'],
|
|
38
|
+
'altText': json['alt_text'] == null ? undefined : json['alt_text'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function LicencesStoreRequestBackAssetToJSON(json) {
|
|
42
|
+
return LicencesStoreRequestBackAssetToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function LicencesStoreRequestBackAssetToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'file_id': value['fileId'],
|
|
51
|
+
'file_name': value['fileName'],
|
|
52
|
+
'mime_type': value['mimeType'],
|
|
53
|
+
'alt_text': value['altText'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { LicencesStoreRequestBackAsset } from './LicencesStoreRequestBackAsset';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -47,124 +48,28 @@ export interface LicencesUpdateRequest {
|
|
|
47
48
|
expiryDate?: Date;
|
|
48
49
|
/**
|
|
49
50
|
*
|
|
50
|
-
* @type {
|
|
51
|
+
* @type {LicencesStoreRequestBackAsset}
|
|
51
52
|
* @memberof LicencesUpdateRequest
|
|
52
53
|
*/
|
|
53
|
-
frontAsset?:
|
|
54
|
+
frontAsset?: LicencesStoreRequestBackAsset | null;
|
|
54
55
|
/**
|
|
55
56
|
*
|
|
56
|
-
* @type {
|
|
57
|
+
* @type {LicencesStoreRequestBackAsset}
|
|
57
58
|
* @memberof LicencesUpdateRequest
|
|
58
59
|
*/
|
|
59
|
-
|
|
60
|
+
backAsset?: LicencesStoreRequestBackAsset | null;
|
|
60
61
|
/**
|
|
61
62
|
*
|
|
62
|
-
* @type {
|
|
63
|
-
* @memberof LicencesUpdateRequest
|
|
64
|
-
*/
|
|
65
|
-
frontAssetFileName?: string;
|
|
66
|
-
/**
|
|
67
|
-
*
|
|
68
|
-
* @type {string}
|
|
69
|
-
* @memberof LicencesUpdateRequest
|
|
70
|
-
*/
|
|
71
|
-
frontAssetMimeType?: string;
|
|
72
|
-
/**
|
|
73
|
-
*
|
|
74
|
-
* @type {string}
|
|
75
|
-
* @memberof LicencesUpdateRequest
|
|
76
|
-
*/
|
|
77
|
-
frontAssetAltText?: string;
|
|
78
|
-
/**
|
|
79
|
-
*
|
|
80
|
-
* @type {Array<string>}
|
|
81
|
-
* @memberof LicencesUpdateRequest
|
|
82
|
-
*/
|
|
83
|
-
backAsset?: Array<string>;
|
|
84
|
-
/**
|
|
85
|
-
*
|
|
86
|
-
* @type {number}
|
|
87
|
-
* @memberof LicencesUpdateRequest
|
|
88
|
-
*/
|
|
89
|
-
backAssetFileId?: number;
|
|
90
|
-
/**
|
|
91
|
-
*
|
|
92
|
-
* @type {string}
|
|
93
|
-
* @memberof LicencesUpdateRequest
|
|
94
|
-
*/
|
|
95
|
-
backAssetFileName?: string;
|
|
96
|
-
/**
|
|
97
|
-
*
|
|
98
|
-
* @type {string}
|
|
99
|
-
* @memberof LicencesUpdateRequest
|
|
100
|
-
*/
|
|
101
|
-
backAssetMimeType?: string;
|
|
102
|
-
/**
|
|
103
|
-
*
|
|
104
|
-
* @type {string}
|
|
105
|
-
* @memberof LicencesUpdateRequest
|
|
106
|
-
*/
|
|
107
|
-
backAssetAltText?: string;
|
|
108
|
-
/**
|
|
109
|
-
*
|
|
110
|
-
* @type {Array<string>}
|
|
63
|
+
* @type {LicencesStoreRequestBackAsset}
|
|
111
64
|
* @memberof LicencesUpdateRequest
|
|
112
65
|
*/
|
|
113
|
-
rsaAsset?:
|
|
66
|
+
rsaAsset?: LicencesStoreRequestBackAsset | null;
|
|
114
67
|
/**
|
|
115
68
|
*
|
|
116
|
-
* @type {
|
|
117
|
-
* @memberof LicencesUpdateRequest
|
|
118
|
-
*/
|
|
119
|
-
rsaAssetFileId?: number;
|
|
120
|
-
/**
|
|
121
|
-
*
|
|
122
|
-
* @type {string}
|
|
123
|
-
* @memberof LicencesUpdateRequest
|
|
124
|
-
*/
|
|
125
|
-
rsaAssetFileName?: string;
|
|
126
|
-
/**
|
|
127
|
-
*
|
|
128
|
-
* @type {string}
|
|
129
|
-
* @memberof LicencesUpdateRequest
|
|
130
|
-
*/
|
|
131
|
-
rsaAssetMimeType?: string;
|
|
132
|
-
/**
|
|
133
|
-
*
|
|
134
|
-
* @type {string}
|
|
135
|
-
* @memberof LicencesUpdateRequest
|
|
136
|
-
*/
|
|
137
|
-
rsaAssetAltText?: string;
|
|
138
|
-
/**
|
|
139
|
-
*
|
|
140
|
-
* @type {Array<string>}
|
|
141
|
-
* @memberof LicencesUpdateRequest
|
|
142
|
-
*/
|
|
143
|
-
firstAidAsset?: Array<string>;
|
|
144
|
-
/**
|
|
145
|
-
*
|
|
146
|
-
* @type {number}
|
|
147
|
-
* @memberof LicencesUpdateRequest
|
|
148
|
-
*/
|
|
149
|
-
firstAidAssetFileId?: number;
|
|
150
|
-
/**
|
|
151
|
-
*
|
|
152
|
-
* @type {string}
|
|
153
|
-
* @memberof LicencesUpdateRequest
|
|
154
|
-
*/
|
|
155
|
-
firstAidAssetFileName?: string;
|
|
156
|
-
/**
|
|
157
|
-
*
|
|
158
|
-
* @type {string}
|
|
159
|
-
* @memberof LicencesUpdateRequest
|
|
160
|
-
*/
|
|
161
|
-
firstAidAssetMimeType?: string;
|
|
162
|
-
/**
|
|
163
|
-
*
|
|
164
|
-
* @type {string}
|
|
69
|
+
* @type {LicencesStoreRequestBackAsset}
|
|
165
70
|
* @memberof LicencesUpdateRequest
|
|
166
71
|
*/
|
|
167
|
-
|
|
72
|
+
firstAidAsset?: LicencesStoreRequestBackAsset | null;
|
|
168
73
|
}
|
|
169
74
|
/**
|
|
170
75
|
* @export
|
|
@@ -19,6 +19,7 @@ exports.LicencesUpdateRequestFromJSON = LicencesUpdateRequestFromJSON;
|
|
|
19
19
|
exports.LicencesUpdateRequestFromJSONTyped = LicencesUpdateRequestFromJSONTyped;
|
|
20
20
|
exports.LicencesUpdateRequestToJSON = LicencesUpdateRequestToJSON;
|
|
21
21
|
exports.LicencesUpdateRequestToJSONTyped = LicencesUpdateRequestToJSONTyped;
|
|
22
|
+
var LicencesStoreRequestBackAsset_1 = require("./LicencesStoreRequestBackAsset");
|
|
22
23
|
/**
|
|
23
24
|
* @export
|
|
24
25
|
*/
|
|
@@ -51,26 +52,10 @@ function LicencesUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
52
|
'firstName': json['first_name'] == null ? undefined : json['first_name'],
|
|
52
53
|
'lastName': json['last_name'] == null ? undefined : json['last_name'],
|
|
53
54
|
'expiryDate': json['expiry_date'] == null ? undefined : (new Date(json['expiry_date'])),
|
|
54
|
-
'frontAsset': json['front_asset'] == null ? undefined : json['front_asset'],
|
|
55
|
-
'
|
|
56
|
-
'
|
|
57
|
-
'
|
|
58
|
-
'frontAssetAltText': json['front_asset.alt_text'] == null ? undefined : json['front_asset.alt_text'],
|
|
59
|
-
'backAsset': json['back_asset'] == null ? undefined : json['back_asset'],
|
|
60
|
-
'backAssetFileId': json['back_asset.file_id'] == null ? undefined : json['back_asset.file_id'],
|
|
61
|
-
'backAssetFileName': json['back_asset.file_name'] == null ? undefined : json['back_asset.file_name'],
|
|
62
|
-
'backAssetMimeType': json['back_asset.mime_type'] == null ? undefined : json['back_asset.mime_type'],
|
|
63
|
-
'backAssetAltText': json['back_asset.alt_text'] == null ? undefined : json['back_asset.alt_text'],
|
|
64
|
-
'rsaAsset': json['rsa_asset'] == null ? undefined : json['rsa_asset'],
|
|
65
|
-
'rsaAssetFileId': json['rsa_asset.file_id'] == null ? undefined : json['rsa_asset.file_id'],
|
|
66
|
-
'rsaAssetFileName': json['rsa_asset.file_name'] == null ? undefined : json['rsa_asset.file_name'],
|
|
67
|
-
'rsaAssetMimeType': json['rsa_asset.mime_type'] == null ? undefined : json['rsa_asset.mime_type'],
|
|
68
|
-
'rsaAssetAltText': json['rsa_asset.alt_text'] == null ? undefined : json['rsa_asset.alt_text'],
|
|
69
|
-
'firstAidAsset': json['first_aid_asset'] == null ? undefined : json['first_aid_asset'],
|
|
70
|
-
'firstAidAssetFileId': json['first_aid_asset.file_id'] == null ? undefined : json['first_aid_asset.file_id'],
|
|
71
|
-
'firstAidAssetFileName': json['first_aid_asset.file_name'] == null ? undefined : json['first_aid_asset.file_name'],
|
|
72
|
-
'firstAidAssetMimeType': json['first_aid_asset.mime_type'] == null ? undefined : json['first_aid_asset.mime_type'],
|
|
73
|
-
'firstAidAssetAltText': json['first_aid_asset.alt_text'] == null ? undefined : json['first_aid_asset.alt_text'],
|
|
55
|
+
'frontAsset': json['front_asset'] == null ? undefined : (0, LicencesStoreRequestBackAsset_1.LicencesStoreRequestBackAssetFromJSON)(json['front_asset']),
|
|
56
|
+
'backAsset': json['back_asset'] == null ? undefined : (0, LicencesStoreRequestBackAsset_1.LicencesStoreRequestBackAssetFromJSON)(json['back_asset']),
|
|
57
|
+
'rsaAsset': json['rsa_asset'] == null ? undefined : (0, LicencesStoreRequestBackAsset_1.LicencesStoreRequestBackAssetFromJSON)(json['rsa_asset']),
|
|
58
|
+
'firstAidAsset': json['first_aid_asset'] == null ? undefined : (0, LicencesStoreRequestBackAsset_1.LicencesStoreRequestBackAssetFromJSON)(json['first_aid_asset']),
|
|
74
59
|
};
|
|
75
60
|
}
|
|
76
61
|
function LicencesUpdateRequestToJSON(json) {
|
|
@@ -87,25 +72,9 @@ function LicencesUpdateRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
87
72
|
'first_name': value['firstName'],
|
|
88
73
|
'last_name': value['lastName'],
|
|
89
74
|
'expiry_date': value['expiryDate'] == null ? undefined : ((value['expiryDate']).toISOString()),
|
|
90
|
-
'front_asset': value['frontAsset'],
|
|
91
|
-
'
|
|
92
|
-
'
|
|
93
|
-
'
|
|
94
|
-
'front_asset.alt_text': value['frontAssetAltText'],
|
|
95
|
-
'back_asset': value['backAsset'],
|
|
96
|
-
'back_asset.file_id': value['backAssetFileId'],
|
|
97
|
-
'back_asset.file_name': value['backAssetFileName'],
|
|
98
|
-
'back_asset.mime_type': value['backAssetMimeType'],
|
|
99
|
-
'back_asset.alt_text': value['backAssetAltText'],
|
|
100
|
-
'rsa_asset': value['rsaAsset'],
|
|
101
|
-
'rsa_asset.file_id': value['rsaAssetFileId'],
|
|
102
|
-
'rsa_asset.file_name': value['rsaAssetFileName'],
|
|
103
|
-
'rsa_asset.mime_type': value['rsaAssetMimeType'],
|
|
104
|
-
'rsa_asset.alt_text': value['rsaAssetAltText'],
|
|
105
|
-
'first_aid_asset': value['firstAidAsset'],
|
|
106
|
-
'first_aid_asset.file_id': value['firstAidAssetFileId'],
|
|
107
|
-
'first_aid_asset.file_name': value['firstAidAssetFileName'],
|
|
108
|
-
'first_aid_asset.mime_type': value['firstAidAssetMimeType'],
|
|
109
|
-
'first_aid_asset.alt_text': value['firstAidAssetAltText'],
|
|
75
|
+
'front_asset': (0, LicencesStoreRequestBackAsset_1.LicencesStoreRequestBackAssetToJSON)(value['frontAsset']),
|
|
76
|
+
'back_asset': (0, LicencesStoreRequestBackAsset_1.LicencesStoreRequestBackAssetToJSON)(value['backAsset']),
|
|
77
|
+
'rsa_asset': (0, LicencesStoreRequestBackAsset_1.LicencesStoreRequestBackAssetToJSON)(value['rsaAsset']),
|
|
78
|
+
'first_aid_asset': (0, LicencesStoreRequestBackAsset_1.LicencesStoreRequestBackAssetToJSON)(value['firstAidAsset']),
|
|
110
79
|
};
|
|
111
80
|
}
|
|
@@ -0,0 +1,92 @@
|
|
|
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 MobileDeviceResource
|
|
16
|
+
*/
|
|
17
|
+
export interface MobileDeviceResource {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof MobileDeviceResource
|
|
22
|
+
*/
|
|
23
|
+
id?: number | null;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof MobileDeviceResource
|
|
28
|
+
*/
|
|
29
|
+
deviceId: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof MobileDeviceResource
|
|
34
|
+
*/
|
|
35
|
+
platform: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof MobileDeviceResource
|
|
40
|
+
*/
|
|
41
|
+
osVersion: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof MobileDeviceResource
|
|
46
|
+
*/
|
|
47
|
+
appVersion: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof MobileDeviceResource
|
|
52
|
+
*/
|
|
53
|
+
model: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof MobileDeviceResource
|
|
58
|
+
*/
|
|
59
|
+
name: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof MobileDeviceResource
|
|
64
|
+
*/
|
|
65
|
+
pushToken: string;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {Date}
|
|
69
|
+
* @memberof MobileDeviceResource
|
|
70
|
+
*/
|
|
71
|
+
lastSeenAt: Date;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {Date}
|
|
75
|
+
* @memberof MobileDeviceResource
|
|
76
|
+
*/
|
|
77
|
+
createdAt?: Date | null;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {Date}
|
|
81
|
+
* @memberof MobileDeviceResource
|
|
82
|
+
*/
|
|
83
|
+
updatedAt?: Date | null;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Check if a given object implements the MobileDeviceResource interface.
|
|
87
|
+
*/
|
|
88
|
+
export declare function instanceOfMobileDeviceResource(value: object): value is MobileDeviceResource;
|
|
89
|
+
export declare function MobileDeviceResourceFromJSON(json: any): MobileDeviceResource;
|
|
90
|
+
export declare function MobileDeviceResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): MobileDeviceResource;
|
|
91
|
+
export declare function MobileDeviceResourceToJSON(json: any): MobileDeviceResource;
|
|
92
|
+
export declare function MobileDeviceResourceToJSONTyped(value?: MobileDeviceResource | null, ignoreDiscriminator?: boolean): any;
|