@digital8/security-registers-backend-ts-sdk 0.0.299 → 0.0.300
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 +7 -0
- package/README.md +2 -2
- package/dist/models/AssetResource.d.ts +1 -1
- package/dist/models/AssetResource.js +3 -1
- package/dist/models/AuthRegisterGuardRequest.d.ts +6 -192
- package/dist/models/AuthRegisterGuardRequest.js +6 -88
- 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/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/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/RegisterListResource.d.ts +3 -3
- package/dist/models/RegisterListResource.js +3 -4
- package/dist/models/RegisterResource.d.ts +1 -1
- package/dist/models/RegisterResource.js +7 -5
- package/dist/models/RosterLiteResource.d.ts +1 -1
- package/dist/models/RosterLiteResource.js +3 -4
- package/dist/models/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/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/package.json +1 -1
- package/src/models/AssetResource.ts +3 -2
- package/src/models/AuthRegisterGuardRequest.ts +23 -263
- package/src/models/AuthRegisterGuardRequestLicence.ts +181 -0
- package/src/models/AuthRegisterGuardRequestProfileSignature.ts +89 -0
- package/src/models/BackAsset.ts +89 -0
- package/src/models/FirstAidAsset.ts +89 -0
- package/src/models/FrontAsset.ts +89 -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/RegisterListResource.ts +5 -6
- package/src/models/RegisterResource.ts +4 -3
- package/src/models/RosterLiteResource.ts +3 -4
- package/src/models/RsaAsset.ts +89 -0
- package/src/models/UsersCreateWithRoleRequestLicencesInner.ts +45 -16
- package/src/models/index.ts +7 -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,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
|
+
|
|
@@ -13,6 +13,21 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { LicencesStoreRequestBackAsset } from './LicencesStoreRequestBackAsset';
|
|
17
|
+
import {
|
|
18
|
+
LicencesStoreRequestBackAssetFromJSON,
|
|
19
|
+
LicencesStoreRequestBackAssetFromJSONTyped,
|
|
20
|
+
LicencesStoreRequestBackAssetToJSON,
|
|
21
|
+
LicencesStoreRequestBackAssetToJSONTyped,
|
|
22
|
+
} from './LicencesStoreRequestBackAsset';
|
|
23
|
+
import type { AuthRegisterGuardRequestProfileSignature } from './AuthRegisterGuardRequestProfileSignature';
|
|
24
|
+
import {
|
|
25
|
+
AuthRegisterGuardRequestProfileSignatureFromJSON,
|
|
26
|
+
AuthRegisterGuardRequestProfileSignatureFromJSONTyped,
|
|
27
|
+
AuthRegisterGuardRequestProfileSignatureToJSON,
|
|
28
|
+
AuthRegisterGuardRequestProfileSignatureToJSONTyped,
|
|
29
|
+
} from './AuthRegisterGuardRequestProfileSignature';
|
|
30
|
+
|
|
16
31
|
/**
|
|
17
32
|
*
|
|
18
33
|
* @export
|
|
@@ -57,124 +72,28 @@ export interface LicencesStoreRequest {
|
|
|
57
72
|
expiryDate: Date;
|
|
58
73
|
/**
|
|
59
74
|
*
|
|
60
|
-
* @type {
|
|
61
|
-
* @memberof LicencesStoreRequest
|
|
62
|
-
*/
|
|
63
|
-
frontAsset: Array<string>;
|
|
64
|
-
/**
|
|
65
|
-
*
|
|
66
|
-
* @type {number}
|
|
67
|
-
* @memberof LicencesStoreRequest
|
|
68
|
-
*/
|
|
69
|
-
frontAssetFileId?: number;
|
|
70
|
-
/**
|
|
71
|
-
*
|
|
72
|
-
* @type {string}
|
|
73
|
-
* @memberof LicencesStoreRequest
|
|
74
|
-
*/
|
|
75
|
-
frontAssetFileName?: string;
|
|
76
|
-
/**
|
|
77
|
-
*
|
|
78
|
-
* @type {string}
|
|
79
|
-
* @memberof LicencesStoreRequest
|
|
80
|
-
*/
|
|
81
|
-
frontAssetMimeType?: string;
|
|
82
|
-
/**
|
|
83
|
-
*
|
|
84
|
-
* @type {string}
|
|
75
|
+
* @type {AuthRegisterGuardRequestProfileSignature}
|
|
85
76
|
* @memberof LicencesStoreRequest
|
|
86
77
|
*/
|
|
87
|
-
|
|
78
|
+
frontAsset: AuthRegisterGuardRequestProfileSignature;
|
|
88
79
|
/**
|
|
89
80
|
*
|
|
90
|
-
* @type {
|
|
91
|
-
* @memberof LicencesStoreRequest
|
|
92
|
-
*/
|
|
93
|
-
backAsset?: Array<string>;
|
|
94
|
-
/**
|
|
95
|
-
*
|
|
96
|
-
* @type {number}
|
|
97
|
-
* @memberof LicencesStoreRequest
|
|
98
|
-
*/
|
|
99
|
-
backAssetFileId?: number;
|
|
100
|
-
/**
|
|
101
|
-
*
|
|
102
|
-
* @type {string}
|
|
103
|
-
* @memberof LicencesStoreRequest
|
|
104
|
-
*/
|
|
105
|
-
backAssetFileName?: string;
|
|
106
|
-
/**
|
|
107
|
-
*
|
|
108
|
-
* @type {string}
|
|
109
|
-
* @memberof LicencesStoreRequest
|
|
110
|
-
*/
|
|
111
|
-
backAssetMimeType?: string;
|
|
112
|
-
/**
|
|
113
|
-
*
|
|
114
|
-
* @type {string}
|
|
81
|
+
* @type {LicencesStoreRequestBackAsset}
|
|
115
82
|
* @memberof LicencesStoreRequest
|
|
116
83
|
*/
|
|
117
|
-
|
|
84
|
+
backAsset?: LicencesStoreRequestBackAsset | null;
|
|
118
85
|
/**
|
|
119
86
|
*
|
|
120
|
-
* @type {
|
|
87
|
+
* @type {LicencesStoreRequestBackAsset}
|
|
121
88
|
* @memberof LicencesStoreRequest
|
|
122
89
|
*/
|
|
123
|
-
rsaAsset?:
|
|
90
|
+
rsaAsset?: LicencesStoreRequestBackAsset | null;
|
|
124
91
|
/**
|
|
125
92
|
*
|
|
126
|
-
* @type {
|
|
127
|
-
* @memberof LicencesStoreRequest
|
|
128
|
-
*/
|
|
129
|
-
rsaAssetFileId?: number;
|
|
130
|
-
/**
|
|
131
|
-
*
|
|
132
|
-
* @type {string}
|
|
133
|
-
* @memberof LicencesStoreRequest
|
|
134
|
-
*/
|
|
135
|
-
rsaAssetFileName?: string;
|
|
136
|
-
/**
|
|
137
|
-
*
|
|
138
|
-
* @type {string}
|
|
139
|
-
* @memberof LicencesStoreRequest
|
|
140
|
-
*/
|
|
141
|
-
rsaAssetMimeType?: string;
|
|
142
|
-
/**
|
|
143
|
-
*
|
|
144
|
-
* @type {string}
|
|
145
|
-
* @memberof LicencesStoreRequest
|
|
146
|
-
*/
|
|
147
|
-
rsaAssetAltText?: string;
|
|
148
|
-
/**
|
|
149
|
-
*
|
|
150
|
-
* @type {Array<string>}
|
|
151
|
-
* @memberof LicencesStoreRequest
|
|
152
|
-
*/
|
|
153
|
-
firstAidAsset?: Array<string>;
|
|
154
|
-
/**
|
|
155
|
-
*
|
|
156
|
-
* @type {number}
|
|
157
|
-
* @memberof LicencesStoreRequest
|
|
158
|
-
*/
|
|
159
|
-
firstAidAssetFileId?: number;
|
|
160
|
-
/**
|
|
161
|
-
*
|
|
162
|
-
* @type {string}
|
|
163
|
-
* @memberof LicencesStoreRequest
|
|
164
|
-
*/
|
|
165
|
-
firstAidAssetFileName?: string;
|
|
166
|
-
/**
|
|
167
|
-
*
|
|
168
|
-
* @type {string}
|
|
169
|
-
* @memberof LicencesStoreRequest
|
|
170
|
-
*/
|
|
171
|
-
firstAidAssetMimeType?: string;
|
|
172
|
-
/**
|
|
173
|
-
*
|
|
174
|
-
* @type {string}
|
|
93
|
+
* @type {LicencesStoreRequestBackAsset}
|
|
175
94
|
* @memberof LicencesStoreRequest
|
|
176
95
|
*/
|
|
177
|
-
|
|
96
|
+
firstAidAsset?: LicencesStoreRequestBackAsset | null;
|
|
178
97
|
}
|
|
179
98
|
|
|
180
99
|
|
|
@@ -224,26 +143,10 @@ export function LicencesStoreRequestFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
224
143
|
'firstName': json['first_name'],
|
|
225
144
|
'lastName': json['last_name'],
|
|
226
145
|
'expiryDate': (new Date(json['expiry_date'])),
|
|
227
|
-
'frontAsset': json['front_asset'],
|
|
228
|
-
'
|
|
229
|
-
'
|
|
230
|
-
'
|
|
231
|
-
'frontAssetAltText': json['front_asset.alt_text'] == null ? undefined : json['front_asset.alt_text'],
|
|
232
|
-
'backAsset': json['back_asset'] == null ? undefined : json['back_asset'],
|
|
233
|
-
'backAssetFileId': json['back_asset.file_id'] == null ? undefined : json['back_asset.file_id'],
|
|
234
|
-
'backAssetFileName': json['back_asset.file_name'] == null ? undefined : json['back_asset.file_name'],
|
|
235
|
-
'backAssetMimeType': json['back_asset.mime_type'] == null ? undefined : json['back_asset.mime_type'],
|
|
236
|
-
'backAssetAltText': json['back_asset.alt_text'] == null ? undefined : json['back_asset.alt_text'],
|
|
237
|
-
'rsaAsset': json['rsa_asset'] == null ? undefined : json['rsa_asset'],
|
|
238
|
-
'rsaAssetFileId': json['rsa_asset.file_id'] == null ? undefined : json['rsa_asset.file_id'],
|
|
239
|
-
'rsaAssetFileName': json['rsa_asset.file_name'] == null ? undefined : json['rsa_asset.file_name'],
|
|
240
|
-
'rsaAssetMimeType': json['rsa_asset.mime_type'] == null ? undefined : json['rsa_asset.mime_type'],
|
|
241
|
-
'rsaAssetAltText': json['rsa_asset.alt_text'] == null ? undefined : json['rsa_asset.alt_text'],
|
|
242
|
-
'firstAidAsset': json['first_aid_asset'] == null ? undefined : json['first_aid_asset'],
|
|
243
|
-
'firstAidAssetFileId': json['first_aid_asset.file_id'] == null ? undefined : json['first_aid_asset.file_id'],
|
|
244
|
-
'firstAidAssetFileName': json['first_aid_asset.file_name'] == null ? undefined : json['first_aid_asset.file_name'],
|
|
245
|
-
'firstAidAssetMimeType': json['first_aid_asset.mime_type'] == null ? undefined : json['first_aid_asset.mime_type'],
|
|
246
|
-
'firstAidAssetAltText': json['first_aid_asset.alt_text'] == null ? undefined : json['first_aid_asset.alt_text'],
|
|
146
|
+
'frontAsset': AuthRegisterGuardRequestProfileSignatureFromJSON(json['front_asset']),
|
|
147
|
+
'backAsset': json['back_asset'] == null ? undefined : LicencesStoreRequestBackAssetFromJSON(json['back_asset']),
|
|
148
|
+
'rsaAsset': json['rsa_asset'] == null ? undefined : LicencesStoreRequestBackAssetFromJSON(json['rsa_asset']),
|
|
149
|
+
'firstAidAsset': json['first_aid_asset'] == null ? undefined : LicencesStoreRequestBackAssetFromJSON(json['first_aid_asset']),
|
|
247
150
|
};
|
|
248
151
|
}
|
|
249
152
|
|
|
@@ -264,26 +167,10 @@ export function LicencesStoreRequestToJSONTyped(value?: LicencesStoreRequest | n
|
|
|
264
167
|
'first_name': value['firstName'],
|
|
265
168
|
'last_name': value['lastName'],
|
|
266
169
|
'expiry_date': ((value['expiryDate']).toISOString()),
|
|
267
|
-
'front_asset': value['frontAsset'],
|
|
268
|
-
'
|
|
269
|
-
'
|
|
270
|
-
'
|
|
271
|
-
'front_asset.alt_text': value['frontAssetAltText'],
|
|
272
|
-
'back_asset': value['backAsset'],
|
|
273
|
-
'back_asset.file_id': value['backAssetFileId'],
|
|
274
|
-
'back_asset.file_name': value['backAssetFileName'],
|
|
275
|
-
'back_asset.mime_type': value['backAssetMimeType'],
|
|
276
|
-
'back_asset.alt_text': value['backAssetAltText'],
|
|
277
|
-
'rsa_asset': value['rsaAsset'],
|
|
278
|
-
'rsa_asset.file_id': value['rsaAssetFileId'],
|
|
279
|
-
'rsa_asset.file_name': value['rsaAssetFileName'],
|
|
280
|
-
'rsa_asset.mime_type': value['rsaAssetMimeType'],
|
|
281
|
-
'rsa_asset.alt_text': value['rsaAssetAltText'],
|
|
282
|
-
'first_aid_asset': value['firstAidAsset'],
|
|
283
|
-
'first_aid_asset.file_id': value['firstAidAssetFileId'],
|
|
284
|
-
'first_aid_asset.file_name': value['firstAidAssetFileName'],
|
|
285
|
-
'first_aid_asset.mime_type': value['firstAidAssetMimeType'],
|
|
286
|
-
'first_aid_asset.alt_text': value['firstAidAssetAltText'],
|
|
170
|
+
'front_asset': AuthRegisterGuardRequestProfileSignatureToJSON(value['frontAsset']),
|
|
171
|
+
'back_asset': LicencesStoreRequestBackAssetToJSON(value['backAsset']),
|
|
172
|
+
'rsa_asset': LicencesStoreRequestBackAssetToJSON(value['rsaAsset']),
|
|
173
|
+
'first_aid_asset': LicencesStoreRequestBackAssetToJSON(value['firstAidAsset']),
|
|
287
174
|
};
|
|
288
175
|
}
|
|
289
176
|
|
|
@@ -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 LicencesStoreRequestBackAsset
|
|
20
|
+
*/
|
|
21
|
+
export interface LicencesStoreRequestBackAsset {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof LicencesStoreRequestBackAsset
|
|
26
|
+
*/
|
|
27
|
+
fileId?: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof LicencesStoreRequestBackAsset
|
|
32
|
+
*/
|
|
33
|
+
fileName?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof LicencesStoreRequestBackAsset
|
|
38
|
+
*/
|
|
39
|
+
mimeType?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof LicencesStoreRequestBackAsset
|
|
44
|
+
*/
|
|
45
|
+
altText?: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the LicencesStoreRequestBackAsset interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfLicencesStoreRequestBackAsset(value: object): value is LicencesStoreRequestBackAsset {
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function LicencesStoreRequestBackAssetFromJSON(json: any): LicencesStoreRequestBackAsset {
|
|
56
|
+
return LicencesStoreRequestBackAssetFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function LicencesStoreRequestBackAssetFromJSONTyped(json: any, ignoreDiscriminator: boolean): LicencesStoreRequestBackAsset {
|
|
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 LicencesStoreRequestBackAssetToJSON(json: any): LicencesStoreRequestBackAsset {
|
|
73
|
+
return LicencesStoreRequestBackAssetToJSONTyped(json, false);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function LicencesStoreRequestBackAssetToJSONTyped(value?: LicencesStoreRequestBackAsset | 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
|
+
|