@digital8/security-registers-backend-ts-sdk 0.0.775 → 0.0.776
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 +1 -1
- package/README.md +2 -2
- package/dist/models/AssetResource.d.ts +1 -1
- package/dist/models/AssetResource.js +3 -1
- package/dist/models/AuthProfileUpdateRequest.d.ts +13 -0
- package/dist/models/AuthProfileUpdateRequest.js +5 -0
- package/dist/models/AuthProfileUpdateRequestSignature.d.ts +50 -0
- package/dist/models/{LicencesStoreRequestBackAsset.js → AuthProfileUpdateRequestSignature.js} +13 -13
- package/dist/models/LicencesStoreRequest.d.ts +7 -7
- package/dist/models/LicencesStoreRequest.js +7 -7
- package/dist/models/LicencesUpdateRequest.d.ts +9 -9
- package/dist/models/LicencesUpdateRequest.js +9 -9
- package/dist/models/RegisterListResource.d.ts +2 -2
- package/dist/models/RegisterListResource.js +4 -4
- package/dist/models/RegisterResource.d.ts +1 -1
- package/dist/models/RegisterResource.js +1 -3
- package/dist/models/RegistersCreateRequest.d.ts +3 -3
- package/dist/models/RegistersCreateRequest.js +3 -3
- package/dist/models/RegistersUpdateRequest.d.ts +5 -5
- package/dist/models/RegistersUpdateRequest.js +5 -5
- package/dist/models/SecurityCompanyResource.d.ts +1 -1
- package/dist/models/SecurityCompanyResource.js +3 -1
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.js +1 -1
- package/package.json +1 -1
- package/src/models/AssetResource.ts +3 -2
- package/src/models/AuthProfileUpdateRequest.ts +24 -0
- package/src/models/{LicencesStoreRequestBackAsset.ts → AuthProfileUpdateRequestSignature.ts} +14 -14
- package/src/models/LicencesStoreRequest.ts +18 -18
- package/src/models/LicencesUpdateRequest.ts +22 -22
- package/src/models/RegisterListResource.ts +5 -5
- package/src/models/RegisterResource.ts +2 -3
- package/src/models/RegistersCreateRequest.ts +10 -10
- package/src/models/RegistersUpdateRequest.ts +14 -14
- package/src/models/SecurityCompanyResource.ts +3 -2
- package/src/models/index.ts +1 -1
- package/dist/models/LicencesStoreRequestBackAsset.d.ts +0 -50
package/.openapi-generator/FILES
CHANGED
|
@@ -17,6 +17,7 @@ src/models/AssetResourceArrayResponse.ts
|
|
|
17
17
|
src/models/AuthChangePasswordRequest.ts
|
|
18
18
|
src/models/AuthLoginWebRequest.ts
|
|
19
19
|
src/models/AuthProfileUpdateRequest.ts
|
|
20
|
+
src/models/AuthProfileUpdateRequestSignature.ts
|
|
20
21
|
src/models/AuthRegisterGuardFileRequest.ts
|
|
21
22
|
src/models/AuthRegisterGuardRequest.ts
|
|
22
23
|
src/models/AuthRegisterGuardRequestLicencesInner.ts
|
|
@@ -83,7 +84,6 @@ src/models/LicencesCheckLogsListRequest.ts
|
|
|
83
84
|
src/models/LicencesListAllRequest.ts
|
|
84
85
|
src/models/LicencesListRequest.ts
|
|
85
86
|
src/models/LicencesStoreRequest.ts
|
|
86
|
-
src/models/LicencesStoreRequestBackAsset.ts
|
|
87
87
|
src/models/LicencesUpdateRequest.ts
|
|
88
88
|
src/models/LicencesVerifyRequest.ts
|
|
89
89
|
src/models/MobileAppConfigRequest.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @digital8/security-registers-backend-ts-sdk@0.0.
|
|
1
|
+
## @digital8/security-registers-backend-ts-sdk@0.0.776
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @digital8/security-registers-backend-ts-sdk@0.0.
|
|
39
|
+
npm install @digital8/security-registers-backend-ts-sdk@0.0.776 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -30,6 +30,8 @@ function instanceOfAssetResource(value) {
|
|
|
30
30
|
return false;
|
|
31
31
|
if (!('mimeType' in value) || value['mimeType'] === undefined)
|
|
32
32
|
return false;
|
|
33
|
+
if (!('altText' in value) || value['altText'] === undefined)
|
|
34
|
+
return false;
|
|
33
35
|
if (!('index' in value) || value['index'] === undefined)
|
|
34
36
|
return false;
|
|
35
37
|
if (!('fileId' in value) || value['fileId'] === undefined)
|
|
@@ -50,7 +52,7 @@ function AssetResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
52
|
'filePath': json['filePath'],
|
|
51
53
|
'fileName': json['fileName'],
|
|
52
54
|
'mimeType': json['mimeType'],
|
|
53
|
-
'altText': json['altText']
|
|
55
|
+
'altText': json['altText'],
|
|
54
56
|
'index': json['index'],
|
|
55
57
|
'fileId': json['fileId'],
|
|
56
58
|
'isExternal': json['isExternal'],
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { AuthProfileUpdateRequestSignature } from './AuthProfileUpdateRequestSignature';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -51,6 +52,18 @@ export interface AuthProfileUpdateRequest {
|
|
|
51
52
|
* @memberof AuthProfileUpdateRequest
|
|
52
53
|
*/
|
|
53
54
|
profileImageAssetId?: number;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {AuthProfileUpdateRequestSignature}
|
|
58
|
+
* @memberof AuthProfileUpdateRequest
|
|
59
|
+
*/
|
|
60
|
+
signature?: AuthProfileUpdateRequestSignature | null;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {AuthProfileUpdateRequestSignature}
|
|
64
|
+
* @memberof AuthProfileUpdateRequest
|
|
65
|
+
*/
|
|
66
|
+
profileImage?: AuthProfileUpdateRequestSignature | null;
|
|
54
67
|
}
|
|
55
68
|
/**
|
|
56
69
|
* Check if a given object implements the AuthProfileUpdateRequest interface.
|
|
@@ -18,6 +18,7 @@ exports.AuthProfileUpdateRequestFromJSON = AuthProfileUpdateRequestFromJSON;
|
|
|
18
18
|
exports.AuthProfileUpdateRequestFromJSONTyped = AuthProfileUpdateRequestFromJSONTyped;
|
|
19
19
|
exports.AuthProfileUpdateRequestToJSON = AuthProfileUpdateRequestToJSON;
|
|
20
20
|
exports.AuthProfileUpdateRequestToJSONTyped = AuthProfileUpdateRequestToJSONTyped;
|
|
21
|
+
var AuthProfileUpdateRequestSignature_1 = require("./AuthProfileUpdateRequestSignature");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the AuthProfileUpdateRequest interface.
|
|
23
24
|
*/
|
|
@@ -38,6 +39,8 @@ function AuthProfileUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
39
|
'mobile': json['mobile'] == null ? undefined : json['mobile'],
|
|
39
40
|
'signatureAssetId': json['signature_asset_id'] == null ? undefined : json['signature_asset_id'],
|
|
40
41
|
'profileImageAssetId': json['profile_image_asset_id'] == null ? undefined : json['profile_image_asset_id'],
|
|
42
|
+
'signature': json['signature'] == null ? undefined : (0, AuthProfileUpdateRequestSignature_1.AuthProfileUpdateRequestSignatureFromJSON)(json['signature']),
|
|
43
|
+
'profileImage': json['profile_image'] == null ? undefined : (0, AuthProfileUpdateRequestSignature_1.AuthProfileUpdateRequestSignatureFromJSON)(json['profile_image']),
|
|
41
44
|
};
|
|
42
45
|
}
|
|
43
46
|
function AuthProfileUpdateRequestToJSON(json) {
|
|
@@ -55,5 +58,7 @@ function AuthProfileUpdateRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
55
58
|
'mobile': value['mobile'],
|
|
56
59
|
'signature_asset_id': value['signatureAssetId'],
|
|
57
60
|
'profile_image_asset_id': value['profileImageAssetId'],
|
|
61
|
+
'signature': (0, AuthProfileUpdateRequestSignature_1.AuthProfileUpdateRequestSignatureToJSON)(value['signature']),
|
|
62
|
+
'profile_image': (0, AuthProfileUpdateRequestSignature_1.AuthProfileUpdateRequestSignatureToJSON)(value['profileImage']),
|
|
58
63
|
};
|
|
59
64
|
}
|
|
@@ -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 AuthProfileUpdateRequestSignature
|
|
16
|
+
*/
|
|
17
|
+
export interface AuthProfileUpdateRequestSignature {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof AuthProfileUpdateRequestSignature
|
|
22
|
+
*/
|
|
23
|
+
fileId?: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AuthProfileUpdateRequestSignature
|
|
28
|
+
*/
|
|
29
|
+
fileName?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AuthProfileUpdateRequestSignature
|
|
34
|
+
*/
|
|
35
|
+
mimeType?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AuthProfileUpdateRequestSignature
|
|
40
|
+
*/
|
|
41
|
+
altText?: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the AuthProfileUpdateRequestSignature interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfAuthProfileUpdateRequestSignature(value: object): value is AuthProfileUpdateRequestSignature;
|
|
47
|
+
export declare function AuthProfileUpdateRequestSignatureFromJSON(json: any): AuthProfileUpdateRequestSignature;
|
|
48
|
+
export declare function AuthProfileUpdateRequestSignatureFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthProfileUpdateRequestSignature;
|
|
49
|
+
export declare function AuthProfileUpdateRequestSignatureToJSON(json: any): AuthProfileUpdateRequestSignature;
|
|
50
|
+
export declare function AuthProfileUpdateRequestSignatureToJSONTyped(value?: AuthProfileUpdateRequestSignature | null, ignoreDiscriminator?: boolean): any;
|
package/dist/models/{LicencesStoreRequestBackAsset.js → AuthProfileUpdateRequestSignature.js}
RENAMED
|
@@ -13,21 +13,21 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
16
|
+
exports.instanceOfAuthProfileUpdateRequestSignature = instanceOfAuthProfileUpdateRequestSignature;
|
|
17
|
+
exports.AuthProfileUpdateRequestSignatureFromJSON = AuthProfileUpdateRequestSignatureFromJSON;
|
|
18
|
+
exports.AuthProfileUpdateRequestSignatureFromJSONTyped = AuthProfileUpdateRequestSignatureFromJSONTyped;
|
|
19
|
+
exports.AuthProfileUpdateRequestSignatureToJSON = AuthProfileUpdateRequestSignatureToJSON;
|
|
20
|
+
exports.AuthProfileUpdateRequestSignatureToJSONTyped = AuthProfileUpdateRequestSignatureToJSONTyped;
|
|
21
21
|
/**
|
|
22
|
-
* Check if a given object implements the
|
|
22
|
+
* Check if a given object implements the AuthProfileUpdateRequestSignature interface.
|
|
23
23
|
*/
|
|
24
|
-
function
|
|
24
|
+
function instanceOfAuthProfileUpdateRequestSignature(value) {
|
|
25
25
|
return true;
|
|
26
26
|
}
|
|
27
|
-
function
|
|
28
|
-
return
|
|
27
|
+
function AuthProfileUpdateRequestSignatureFromJSON(json) {
|
|
28
|
+
return AuthProfileUpdateRequestSignatureFromJSONTyped(json, false);
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function AuthProfileUpdateRequestSignatureFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
31
|
if (json == null) {
|
|
32
32
|
return json;
|
|
33
33
|
}
|
|
@@ -38,10 +38,10 @@ function LicencesStoreRequestBackAssetFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
'altText': json['alt_text'] == null ? undefined : json['alt_text'],
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
|
-
function
|
|
42
|
-
return
|
|
41
|
+
function AuthProfileUpdateRequestSignatureToJSON(json) {
|
|
42
|
+
return AuthProfileUpdateRequestSignatureToJSONTyped(json, false);
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function AuthProfileUpdateRequestSignatureToJSONTyped(value, ignoreDiscriminator) {
|
|
45
45
|
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
46
46
|
if (value == null) {
|
|
47
47
|
return value;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { AuthProfileUpdateRequestSignature } from './AuthProfileUpdateRequestSignature';
|
|
13
13
|
import type { AuthRegisterGuardRequestProfileSignature } from './AuthRegisterGuardRequestProfileSignature';
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
@@ -61,22 +61,22 @@ export interface LicencesStoreRequest {
|
|
|
61
61
|
frontAsset: AuthRegisterGuardRequestProfileSignature;
|
|
62
62
|
/**
|
|
63
63
|
*
|
|
64
|
-
* @type {
|
|
64
|
+
* @type {AuthProfileUpdateRequestSignature}
|
|
65
65
|
* @memberof LicencesStoreRequest
|
|
66
66
|
*/
|
|
67
|
-
backAsset?:
|
|
67
|
+
backAsset?: AuthProfileUpdateRequestSignature | null;
|
|
68
68
|
/**
|
|
69
69
|
*
|
|
70
|
-
* @type {
|
|
70
|
+
* @type {AuthProfileUpdateRequestSignature}
|
|
71
71
|
* @memberof LicencesStoreRequest
|
|
72
72
|
*/
|
|
73
|
-
rsaAsset?:
|
|
73
|
+
rsaAsset?: AuthProfileUpdateRequestSignature | null;
|
|
74
74
|
/**
|
|
75
75
|
*
|
|
76
|
-
* @type {
|
|
76
|
+
* @type {AuthProfileUpdateRequestSignature}
|
|
77
77
|
* @memberof LicencesStoreRequest
|
|
78
78
|
*/
|
|
79
|
-
firstAidAsset?:
|
|
79
|
+
firstAidAsset?: AuthProfileUpdateRequestSignature | null;
|
|
80
80
|
}
|
|
81
81
|
/**
|
|
82
82
|
* @export
|
|
@@ -19,7 +19,7 @@ exports.LicencesStoreRequestFromJSON = LicencesStoreRequestFromJSON;
|
|
|
19
19
|
exports.LicencesStoreRequestFromJSONTyped = LicencesStoreRequestFromJSONTyped;
|
|
20
20
|
exports.LicencesStoreRequestToJSON = LicencesStoreRequestToJSON;
|
|
21
21
|
exports.LicencesStoreRequestToJSONTyped = LicencesStoreRequestToJSONTyped;
|
|
22
|
-
var
|
|
22
|
+
var AuthProfileUpdateRequestSignature_1 = require("./AuthProfileUpdateRequestSignature");
|
|
23
23
|
var AuthRegisterGuardRequestProfileSignature_1 = require("./AuthRegisterGuardRequestProfileSignature");
|
|
24
24
|
/**
|
|
25
25
|
* @export
|
|
@@ -64,9 +64,9 @@ function LicencesStoreRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
64
64
|
'lastName': json['last_name'],
|
|
65
65
|
'expiryDate': json['expiry_date'],
|
|
66
66
|
'frontAsset': (0, AuthRegisterGuardRequestProfileSignature_1.AuthRegisterGuardRequestProfileSignatureFromJSON)(json['front_asset']),
|
|
67
|
-
'backAsset': json['back_asset'] == null ? undefined : (0,
|
|
68
|
-
'rsaAsset': json['rsa_asset'] == null ? undefined : (0,
|
|
69
|
-
'firstAidAsset': json['first_aid_asset'] == null ? undefined : (0,
|
|
67
|
+
'backAsset': json['back_asset'] == null ? undefined : (0, AuthProfileUpdateRequestSignature_1.AuthProfileUpdateRequestSignatureFromJSON)(json['back_asset']),
|
|
68
|
+
'rsaAsset': json['rsa_asset'] == null ? undefined : (0, AuthProfileUpdateRequestSignature_1.AuthProfileUpdateRequestSignatureFromJSON)(json['rsa_asset']),
|
|
69
|
+
'firstAidAsset': json['first_aid_asset'] == null ? undefined : (0, AuthProfileUpdateRequestSignature_1.AuthProfileUpdateRequestSignatureFromJSON)(json['first_aid_asset']),
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
72
|
function LicencesStoreRequestToJSON(json) {
|
|
@@ -85,8 +85,8 @@ function LicencesStoreRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
85
85
|
'last_name': value['lastName'],
|
|
86
86
|
'expiry_date': value['expiryDate'],
|
|
87
87
|
'front_asset': (0, AuthRegisterGuardRequestProfileSignature_1.AuthRegisterGuardRequestProfileSignatureToJSON)(value['frontAsset']),
|
|
88
|
-
'back_asset': (0,
|
|
89
|
-
'rsa_asset': (0,
|
|
90
|
-
'first_aid_asset': (0,
|
|
88
|
+
'back_asset': (0, AuthProfileUpdateRequestSignature_1.AuthProfileUpdateRequestSignatureToJSON)(value['backAsset']),
|
|
89
|
+
'rsa_asset': (0, AuthProfileUpdateRequestSignature_1.AuthProfileUpdateRequestSignatureToJSON)(value['rsaAsset']),
|
|
90
|
+
'first_aid_asset': (0, AuthProfileUpdateRequestSignature_1.AuthProfileUpdateRequestSignatureToJSON)(value['firstAidAsset']),
|
|
91
91
|
};
|
|
92
92
|
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { AuthProfileUpdateRequestSignature } from './AuthProfileUpdateRequestSignature';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -48,28 +48,28 @@ export interface LicencesUpdateRequest {
|
|
|
48
48
|
expiryDate?: string;
|
|
49
49
|
/**
|
|
50
50
|
*
|
|
51
|
-
* @type {
|
|
51
|
+
* @type {AuthProfileUpdateRequestSignature}
|
|
52
52
|
* @memberof LicencesUpdateRequest
|
|
53
53
|
*/
|
|
54
|
-
frontAsset?:
|
|
54
|
+
frontAsset?: AuthProfileUpdateRequestSignature | null;
|
|
55
55
|
/**
|
|
56
56
|
*
|
|
57
|
-
* @type {
|
|
57
|
+
* @type {AuthProfileUpdateRequestSignature}
|
|
58
58
|
* @memberof LicencesUpdateRequest
|
|
59
59
|
*/
|
|
60
|
-
backAsset?:
|
|
60
|
+
backAsset?: AuthProfileUpdateRequestSignature | null;
|
|
61
61
|
/**
|
|
62
62
|
*
|
|
63
|
-
* @type {
|
|
63
|
+
* @type {AuthProfileUpdateRequestSignature}
|
|
64
64
|
* @memberof LicencesUpdateRequest
|
|
65
65
|
*/
|
|
66
|
-
rsaAsset?:
|
|
66
|
+
rsaAsset?: AuthProfileUpdateRequestSignature | null;
|
|
67
67
|
/**
|
|
68
68
|
*
|
|
69
|
-
* @type {
|
|
69
|
+
* @type {AuthProfileUpdateRequestSignature}
|
|
70
70
|
* @memberof LicencesUpdateRequest
|
|
71
71
|
*/
|
|
72
|
-
firstAidAsset?:
|
|
72
|
+
firstAidAsset?: AuthProfileUpdateRequestSignature | null;
|
|
73
73
|
}
|
|
74
74
|
/**
|
|
75
75
|
* @export
|
|
@@ -19,7 +19,7 @@ exports.LicencesUpdateRequestFromJSON = LicencesUpdateRequestFromJSON;
|
|
|
19
19
|
exports.LicencesUpdateRequestFromJSONTyped = LicencesUpdateRequestFromJSONTyped;
|
|
20
20
|
exports.LicencesUpdateRequestToJSON = LicencesUpdateRequestToJSON;
|
|
21
21
|
exports.LicencesUpdateRequestToJSONTyped = LicencesUpdateRequestToJSONTyped;
|
|
22
|
-
var
|
|
22
|
+
var AuthProfileUpdateRequestSignature_1 = require("./AuthProfileUpdateRequestSignature");
|
|
23
23
|
/**
|
|
24
24
|
* @export
|
|
25
25
|
*/
|
|
@@ -47,10 +47,10 @@ function LicencesUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
47
|
'firstName': json['first_name'] == null ? undefined : json['first_name'],
|
|
48
48
|
'lastName': json['last_name'] == null ? undefined : json['last_name'],
|
|
49
49
|
'expiryDate': json['expiry_date'] == null ? undefined : json['expiry_date'],
|
|
50
|
-
'frontAsset': json['front_asset'] == null ? undefined : (0,
|
|
51
|
-
'backAsset': json['back_asset'] == null ? undefined : (0,
|
|
52
|
-
'rsaAsset': json['rsa_asset'] == null ? undefined : (0,
|
|
53
|
-
'firstAidAsset': json['first_aid_asset'] == null ? undefined : (0,
|
|
50
|
+
'frontAsset': json['front_asset'] == null ? undefined : (0, AuthProfileUpdateRequestSignature_1.AuthProfileUpdateRequestSignatureFromJSON)(json['front_asset']),
|
|
51
|
+
'backAsset': json['back_asset'] == null ? undefined : (0, AuthProfileUpdateRequestSignature_1.AuthProfileUpdateRequestSignatureFromJSON)(json['back_asset']),
|
|
52
|
+
'rsaAsset': json['rsa_asset'] == null ? undefined : (0, AuthProfileUpdateRequestSignature_1.AuthProfileUpdateRequestSignatureFromJSON)(json['rsa_asset']),
|
|
53
|
+
'firstAidAsset': json['first_aid_asset'] == null ? undefined : (0, AuthProfileUpdateRequestSignature_1.AuthProfileUpdateRequestSignatureFromJSON)(json['first_aid_asset']),
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
56
|
function LicencesUpdateRequestToJSON(json) {
|
|
@@ -67,9 +67,9 @@ function LicencesUpdateRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
67
67
|
'first_name': value['firstName'],
|
|
68
68
|
'last_name': value['lastName'],
|
|
69
69
|
'expiry_date': value['expiryDate'],
|
|
70
|
-
'front_asset': (0,
|
|
71
|
-
'back_asset': (0,
|
|
72
|
-
'rsa_asset': (0,
|
|
73
|
-
'first_aid_asset': (0,
|
|
70
|
+
'front_asset': (0, AuthProfileUpdateRequestSignature_1.AuthProfileUpdateRequestSignatureToJSON)(value['frontAsset']),
|
|
71
|
+
'back_asset': (0, AuthProfileUpdateRequestSignature_1.AuthProfileUpdateRequestSignatureToJSON)(value['backAsset']),
|
|
72
|
+
'rsa_asset': (0, AuthProfileUpdateRequestSignature_1.AuthProfileUpdateRequestSignatureToJSON)(value['rsaAsset']),
|
|
73
|
+
'first_aid_asset': (0, AuthProfileUpdateRequestSignature_1.AuthProfileUpdateRequestSignatureToJSON)(value['firstAidAsset']),
|
|
74
74
|
};
|
|
75
75
|
}
|
|
@@ -64,7 +64,7 @@ export interface RegisterListResource {
|
|
|
64
64
|
* @type {string}
|
|
65
65
|
* @memberof RegisterListResource
|
|
66
66
|
*/
|
|
67
|
-
badgeNumber
|
|
67
|
+
badgeNumber?: string | null;
|
|
68
68
|
/**
|
|
69
69
|
*
|
|
70
70
|
* @type {Date}
|
|
@@ -160,7 +160,7 @@ export interface RegisterListResource {
|
|
|
160
160
|
* @type {number}
|
|
161
161
|
* @memberof RegisterListResource
|
|
162
162
|
*/
|
|
163
|
-
signOffLong
|
|
163
|
+
signOffLong: number;
|
|
164
164
|
/**
|
|
165
165
|
*
|
|
166
166
|
* @type {boolean}
|
|
@@ -43,8 +43,6 @@ function instanceOfRegisterListResource(value) {
|
|
|
43
43
|
return false;
|
|
44
44
|
if (!('signOffStatus' in value) || value['signOffStatus'] === undefined)
|
|
45
45
|
return false;
|
|
46
|
-
if (!('badgeNumber' in value) || value['badgeNumber'] === undefined)
|
|
47
|
-
return false;
|
|
48
46
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
|
|
49
47
|
return false;
|
|
50
48
|
if (!('licenceFirstName' in value) || value['licenceFirstName'] === undefined)
|
|
@@ -71,6 +69,8 @@ function instanceOfRegisterListResource(value) {
|
|
|
71
69
|
return false;
|
|
72
70
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined)
|
|
73
71
|
return false;
|
|
72
|
+
if (!('signOffLong' in value) || value['signOffLong'] === undefined)
|
|
73
|
+
return false;
|
|
74
74
|
if (!('hasIncidents' in value) || value['hasIncidents'] === undefined)
|
|
75
75
|
return false;
|
|
76
76
|
return true;
|
|
@@ -90,7 +90,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
90
90
|
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
91
91
|
'shiftLength': json['shiftLength'],
|
|
92
92
|
'signOffStatus': json['signOffStatus'],
|
|
93
|
-
'badgeNumber': json['badgeNumber'],
|
|
93
|
+
'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
|
|
94
94
|
'rampReadAt': json['rampReadAt'] == null ? undefined : (new Date(json['rampReadAt'])),
|
|
95
95
|
'licenceNumber': json['licenceNumber'],
|
|
96
96
|
'licenceFirstName': json['licenceFirstName'],
|
|
@@ -106,7 +106,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
106
106
|
'signOnLat': json['signOnLat'],
|
|
107
107
|
'signOnLong': json['signOnLong'],
|
|
108
108
|
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
109
|
-
'signOffLong': json['signOffLong']
|
|
109
|
+
'signOffLong': json['signOffLong'],
|
|
110
110
|
'hasIncidents': json['hasIncidents'],
|
|
111
111
|
};
|
|
112
112
|
}
|
|
@@ -59,8 +59,6 @@ function instanceOfRegisterResource(value) {
|
|
|
59
59
|
return false;
|
|
60
60
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined)
|
|
61
61
|
return false;
|
|
62
|
-
if (!('signOffLat' in value) || value['signOffLat'] === undefined)
|
|
63
|
-
return false;
|
|
64
62
|
if (!('signOffLong' in value) || value['signOffLong'] === undefined)
|
|
65
63
|
return false;
|
|
66
64
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
|
|
@@ -98,7 +96,7 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
98
96
|
'firstAidImage': json['firstAidImage'],
|
|
99
97
|
'signOnLat': json['signOnLat'],
|
|
100
98
|
'signOnLong': json['signOnLong'],
|
|
101
|
-
'signOffLat': json['signOffLat'],
|
|
99
|
+
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
102
100
|
'signOffLong': json['signOffLong'],
|
|
103
101
|
'licenceNumber': json['licenceNumber'],
|
|
104
102
|
'licenceExpiry': json['licenceExpiry'],
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { AuthProfileUpdateRequestSignature } from './AuthProfileUpdateRequestSignature';
|
|
13
13
|
import type { AuthRegisterGuardRequestProfileSignature } from './AuthRegisterGuardRequestProfileSignature';
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
@@ -91,10 +91,10 @@ export interface RegistersCreateRequest {
|
|
|
91
91
|
signOnSignature: AuthRegisterGuardRequestProfileSignature;
|
|
92
92
|
/**
|
|
93
93
|
*
|
|
94
|
-
* @type {
|
|
94
|
+
* @type {AuthProfileUpdateRequestSignature}
|
|
95
95
|
* @memberof RegistersCreateRequest
|
|
96
96
|
*/
|
|
97
|
-
signOffSignature?:
|
|
97
|
+
signOffSignature?: AuthProfileUpdateRequestSignature | null;
|
|
98
98
|
}
|
|
99
99
|
/**
|
|
100
100
|
* Check if a given object implements the RegistersCreateRequest interface.
|
|
@@ -18,7 +18,7 @@ exports.RegistersCreateRequestFromJSON = RegistersCreateRequestFromJSON;
|
|
|
18
18
|
exports.RegistersCreateRequestFromJSONTyped = RegistersCreateRequestFromJSONTyped;
|
|
19
19
|
exports.RegistersCreateRequestToJSON = RegistersCreateRequestToJSON;
|
|
20
20
|
exports.RegistersCreateRequestToJSONTyped = RegistersCreateRequestToJSONTyped;
|
|
21
|
-
var
|
|
21
|
+
var AuthProfileUpdateRequestSignature_1 = require("./AuthProfileUpdateRequestSignature");
|
|
22
22
|
var AuthRegisterGuardRequestProfileSignature_1 = require("./AuthRegisterGuardRequestProfileSignature");
|
|
23
23
|
/**
|
|
24
24
|
* Check if a given object implements the RegistersCreateRequest interface.
|
|
@@ -58,7 +58,7 @@ function RegistersCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
58
|
'rampRead': json['ramp_read'] == null ? undefined : json['ramp_read'],
|
|
59
59
|
'bypassActiveRegisterCheck': json['bypass_active_register_check'] == null ? undefined : json['bypass_active_register_check'],
|
|
60
60
|
'signOnSignature': (0, AuthRegisterGuardRequestProfileSignature_1.AuthRegisterGuardRequestProfileSignatureFromJSON)(json['sign_on_signature']),
|
|
61
|
-
'signOffSignature': json['sign_off_signature'] == null ? undefined : (0,
|
|
61
|
+
'signOffSignature': json['sign_off_signature'] == null ? undefined : (0, AuthProfileUpdateRequestSignature_1.AuthProfileUpdateRequestSignatureFromJSON)(json['sign_off_signature']),
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
64
|
function RegistersCreateRequestToJSON(json) {
|
|
@@ -82,6 +82,6 @@ function RegistersCreateRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
82
82
|
'ramp_read': value['rampRead'],
|
|
83
83
|
'bypass_active_register_check': value['bypassActiveRegisterCheck'],
|
|
84
84
|
'sign_on_signature': (0, AuthRegisterGuardRequestProfileSignature_1.AuthRegisterGuardRequestProfileSignatureToJSON)(value['signOnSignature']),
|
|
85
|
-
'sign_off_signature': (0,
|
|
85
|
+
'sign_off_signature': (0, AuthProfileUpdateRequestSignature_1.AuthProfileUpdateRequestSignatureToJSON)(value['signOffSignature']),
|
|
86
86
|
};
|
|
87
87
|
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { AuthProfileUpdateRequestSignature } from './AuthProfileUpdateRequestSignature';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -84,16 +84,16 @@ export interface RegistersUpdateRequest {
|
|
|
84
84
|
bypassActiveRegisterCheck?: boolean;
|
|
85
85
|
/**
|
|
86
86
|
*
|
|
87
|
-
* @type {
|
|
87
|
+
* @type {AuthProfileUpdateRequestSignature}
|
|
88
88
|
* @memberof RegistersUpdateRequest
|
|
89
89
|
*/
|
|
90
|
-
signOnSignature?:
|
|
90
|
+
signOnSignature?: AuthProfileUpdateRequestSignature | null;
|
|
91
91
|
/**
|
|
92
92
|
*
|
|
93
|
-
* @type {
|
|
93
|
+
* @type {AuthProfileUpdateRequestSignature}
|
|
94
94
|
* @memberof RegistersUpdateRequest
|
|
95
95
|
*/
|
|
96
|
-
signOffSignature?:
|
|
96
|
+
signOffSignature?: AuthProfileUpdateRequestSignature | null;
|
|
97
97
|
}
|
|
98
98
|
/**
|
|
99
99
|
* @export
|
|
@@ -19,7 +19,7 @@ exports.RegistersUpdateRequestFromJSON = RegistersUpdateRequestFromJSON;
|
|
|
19
19
|
exports.RegistersUpdateRequestFromJSONTyped = RegistersUpdateRequestFromJSONTyped;
|
|
20
20
|
exports.RegistersUpdateRequestToJSON = RegistersUpdateRequestToJSON;
|
|
21
21
|
exports.RegistersUpdateRequestToJSONTyped = RegistersUpdateRequestToJSONTyped;
|
|
22
|
-
var
|
|
22
|
+
var AuthProfileUpdateRequestSignature_1 = require("./AuthProfileUpdateRequestSignature");
|
|
23
23
|
/**
|
|
24
24
|
* @export
|
|
25
25
|
*/
|
|
@@ -53,8 +53,8 @@ function RegistersUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
53
|
'signOffLat': json['sign_off_lat'] == null ? undefined : json['sign_off_lat'],
|
|
54
54
|
'signOffLong': json['sign_off_long'] == null ? undefined : json['sign_off_long'],
|
|
55
55
|
'bypassActiveRegisterCheck': json['bypass_active_register_check'] == null ? undefined : json['bypass_active_register_check'],
|
|
56
|
-
'signOnSignature': json['sign_on_signature'] == null ? undefined : (0,
|
|
57
|
-
'signOffSignature': json['sign_off_signature'] == null ? undefined : (0,
|
|
56
|
+
'signOnSignature': json['sign_on_signature'] == null ? undefined : (0, AuthProfileUpdateRequestSignature_1.AuthProfileUpdateRequestSignatureFromJSON)(json['sign_on_signature']),
|
|
57
|
+
'signOffSignature': json['sign_off_signature'] == null ? undefined : (0, AuthProfileUpdateRequestSignature_1.AuthProfileUpdateRequestSignatureFromJSON)(json['sign_off_signature']),
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
60
|
function RegistersUpdateRequestToJSON(json) {
|
|
@@ -77,7 +77,7 @@ function RegistersUpdateRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
77
77
|
'sign_off_lat': value['signOffLat'],
|
|
78
78
|
'sign_off_long': value['signOffLong'],
|
|
79
79
|
'bypass_active_register_check': value['bypassActiveRegisterCheck'],
|
|
80
|
-
'sign_on_signature': (0,
|
|
81
|
-
'sign_off_signature': (0,
|
|
80
|
+
'sign_on_signature': (0, AuthProfileUpdateRequestSignature_1.AuthProfileUpdateRequestSignatureToJSON)(value['signOnSignature']),
|
|
81
|
+
'sign_off_signature': (0, AuthProfileUpdateRequestSignature_1.AuthProfileUpdateRequestSignatureToJSON)(value['signOffSignature']),
|
|
82
82
|
};
|
|
83
83
|
}
|
|
@@ -25,6 +25,8 @@ var AddressResource_1 = require("./AddressResource");
|
|
|
25
25
|
function instanceOfSecurityCompanyResource(value) {
|
|
26
26
|
if (!('name' in value) || value['name'] === undefined)
|
|
27
27
|
return false;
|
|
28
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
29
|
+
return false;
|
|
28
30
|
if (!('isEnabled' in value) || value['isEnabled'] === undefined)
|
|
29
31
|
return false;
|
|
30
32
|
if (!('address' in value) || value['address'] === undefined)
|
|
@@ -43,7 +45,7 @@ function SecurityCompanyResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
45
|
return {
|
|
44
46
|
'id': json['id'] == null ? undefined : json['id'],
|
|
45
47
|
'name': json['name'],
|
|
46
|
-
'email': json['email']
|
|
48
|
+
'email': json['email'],
|
|
47
49
|
'isEnabled': json['isEnabled'],
|
|
48
50
|
'address': (0, AddressResource_1.AddressResourceFromJSON)(json['address']),
|
|
49
51
|
'licenceNumber': json['licenceNumber'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export * from './AssetResourceArrayResponse';
|
|
|
9
9
|
export * from './AuthChangePasswordRequest';
|
|
10
10
|
export * from './AuthLoginWebRequest';
|
|
11
11
|
export * from './AuthProfileUpdateRequest';
|
|
12
|
+
export * from './AuthProfileUpdateRequestSignature';
|
|
12
13
|
export * from './AuthRegisterGuardFileRequest';
|
|
13
14
|
export * from './AuthRegisterGuardRequest';
|
|
14
15
|
export * from './AuthRegisterGuardRequestLicencesInner';
|
|
@@ -75,7 +76,6 @@ export * from './LicencesCheckLogsListRequest';
|
|
|
75
76
|
export * from './LicencesListAllRequest';
|
|
76
77
|
export * from './LicencesListRequest';
|
|
77
78
|
export * from './LicencesStoreRequest';
|
|
78
|
-
export * from './LicencesStoreRequestBackAsset';
|
|
79
79
|
export * from './LicencesUpdateRequest';
|
|
80
80
|
export * from './LicencesVerifyRequest';
|
|
81
81
|
export * from './MobileAppConfigRequest';
|
package/dist/models/index.js
CHANGED
|
@@ -27,6 +27,7 @@ __exportStar(require("./AssetResourceArrayResponse"), exports);
|
|
|
27
27
|
__exportStar(require("./AuthChangePasswordRequest"), exports);
|
|
28
28
|
__exportStar(require("./AuthLoginWebRequest"), exports);
|
|
29
29
|
__exportStar(require("./AuthProfileUpdateRequest"), exports);
|
|
30
|
+
__exportStar(require("./AuthProfileUpdateRequestSignature"), exports);
|
|
30
31
|
__exportStar(require("./AuthRegisterGuardFileRequest"), exports);
|
|
31
32
|
__exportStar(require("./AuthRegisterGuardRequest"), exports);
|
|
32
33
|
__exportStar(require("./AuthRegisterGuardRequestLicencesInner"), exports);
|
|
@@ -93,7 +94,6 @@ __exportStar(require("./LicencesCheckLogsListRequest"), exports);
|
|
|
93
94
|
__exportStar(require("./LicencesListAllRequest"), exports);
|
|
94
95
|
__exportStar(require("./LicencesListRequest"), exports);
|
|
95
96
|
__exportStar(require("./LicencesStoreRequest"), exports);
|
|
96
|
-
__exportStar(require("./LicencesStoreRequestBackAsset"), exports);
|
|
97
97
|
__exportStar(require("./LicencesUpdateRequest"), exports);
|
|
98
98
|
__exportStar(require("./LicencesVerifyRequest"), exports);
|
|
99
99
|
__exportStar(require("./MobileAppConfigRequest"), exports);
|