@digital8/security-registers-backend-ts-sdk 0.0.775 → 0.0.777
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/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +3 -1
- package/dist/models/AssetResource.d.ts +1 -1
- package/dist/models/AssetResource.js +3 -1
- package/dist/models/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/IncidentImageResource.d.ts +1 -1
- package/dist/models/IncidentImageResource.js +3 -1
- 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 +1 -1
- package/dist/models/RegisterListResource.js +3 -1
- package/dist/models/RegisterResource.d.ts +2 -2
- package/dist/models/RegisterResource.js +2 -6
- 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/AddressResource.ts +3 -2
- 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/IncidentImageResource.ts +3 -2
- package/src/models/LicencesStoreRequest.ts +18 -18
- package/src/models/LicencesUpdateRequest.ts +22 -22
- package/src/models/RegisterListResource.ts +3 -2
- package/src/models/RegisterResource.ts +4 -6
- 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.777
|
|
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.777 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -24,6 +24,8 @@ exports.AddressResourceToJSONTyped = AddressResourceToJSONTyped;
|
|
|
24
24
|
function instanceOfAddressResource(value) {
|
|
25
25
|
if (!('addressLine1' in value) || value['addressLine1'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
+
if (!('addressLine2' in value) || value['addressLine2'] === undefined)
|
|
28
|
+
return false;
|
|
27
29
|
if (!('suburb' in value) || value['suburb'] === undefined)
|
|
28
30
|
return false;
|
|
29
31
|
if (!('city' in value) || value['city'] === undefined)
|
|
@@ -48,7 +50,7 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
50
|
return {
|
|
49
51
|
'id': json['id'] == null ? undefined : json['id'],
|
|
50
52
|
'addressLine1': json['addressLine1'],
|
|
51
|
-
'addressLine2': json['addressLine2']
|
|
53
|
+
'addressLine2': json['addressLine2'],
|
|
52
54
|
'suburb': json['suburb'],
|
|
53
55
|
'city': json['city'],
|
|
54
56
|
'state': json['state'],
|
|
@@ -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;
|
|
@@ -26,6 +26,8 @@ function instanceOfIncidentImageResource(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('mimeType' in value) || value['mimeType'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
+
if (!('altText' in value) || value['altText'] === undefined)
|
|
30
|
+
return false;
|
|
29
31
|
if (!('assetId' in value) || value['assetId'] === undefined)
|
|
30
32
|
return false;
|
|
31
33
|
if (!('url' in value) || value['url'] === undefined)
|
|
@@ -42,7 +44,7 @@ function IncidentImageResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
44
|
return {
|
|
43
45
|
'fileId': json['file_id'],
|
|
44
46
|
'mimeType': json['mime_type'],
|
|
45
|
-
'altText': json['alt_text']
|
|
47
|
+
'altText': json['alt_text'],
|
|
46
48
|
'assetId': json['asset_id'],
|
|
47
49
|
'url': json['url'],
|
|
48
50
|
};
|
|
@@ -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
|
}
|
|
@@ -71,6 +71,8 @@ function instanceOfRegisterListResource(value) {
|
|
|
71
71
|
return false;
|
|
72
72
|
if (!('signOnLong' in value) || value['signOnLong'] === undefined)
|
|
73
73
|
return false;
|
|
74
|
+
if (!('signOffLong' in value) || value['signOffLong'] === undefined)
|
|
75
|
+
return false;
|
|
74
76
|
if (!('hasIncidents' in value) || value['hasIncidents'] === undefined)
|
|
75
77
|
return false;
|
|
76
78
|
return true;
|
|
@@ -106,7 +108,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
106
108
|
'signOnLat': json['signOnLat'],
|
|
107
109
|
'signOnLong': json['signOnLong'],
|
|
108
110
|
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
109
|
-
'signOffLong': json['signOffLong']
|
|
111
|
+
'signOffLong': json['signOffLong'],
|
|
110
112
|
'hasIncidents': json['hasIncidents'],
|
|
111
113
|
};
|
|
112
114
|
}
|
|
@@ -112,7 +112,7 @@ export interface RegisterResource {
|
|
|
112
112
|
* @type {number}
|
|
113
113
|
* @memberof RegisterResource
|
|
114
114
|
*/
|
|
115
|
-
signOffLat
|
|
115
|
+
signOffLat?: number | null;
|
|
116
116
|
/**
|
|
117
117
|
*
|
|
118
118
|
* @type {number}
|
|
@@ -148,7 +148,7 @@ export interface RegisterResource {
|
|
|
148
148
|
* @type {string}
|
|
149
149
|
* @memberof RegisterResource
|
|
150
150
|
*/
|
|
151
|
-
badgeNumber
|
|
151
|
+
badgeNumber?: string | null;
|
|
152
152
|
/**
|
|
153
153
|
*
|
|
154
154
|
* @type {Date}
|
|
@@ -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)
|
|
@@ -71,8 +69,6 @@ function instanceOfRegisterResource(value) {
|
|
|
71
69
|
return false;
|
|
72
70
|
if (!('licenceLastName' in value) || value['licenceLastName'] === undefined)
|
|
73
71
|
return false;
|
|
74
|
-
if (!('badgeNumber' in value) || value['badgeNumber'] === undefined)
|
|
75
|
-
return false;
|
|
76
72
|
return true;
|
|
77
73
|
}
|
|
78
74
|
function RegisterResourceFromJSON(json) {
|
|
@@ -98,13 +94,13 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
98
94
|
'firstAidImage': json['firstAidImage'],
|
|
99
95
|
'signOnLat': json['signOnLat'],
|
|
100
96
|
'signOnLong': json['signOnLong'],
|
|
101
|
-
'signOffLat': json['signOffLat'],
|
|
97
|
+
'signOffLat': json['signOffLat'] == null ? undefined : json['signOffLat'],
|
|
102
98
|
'signOffLong': json['signOffLong'],
|
|
103
99
|
'licenceNumber': json['licenceNumber'],
|
|
104
100
|
'licenceExpiry': json['licenceExpiry'],
|
|
105
101
|
'licenceFirstName': json['licenceFirstName'],
|
|
106
102
|
'licenceLastName': json['licenceLastName'],
|
|
107
|
-
'badgeNumber': json['badgeNumber'],
|
|
103
|
+
'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
|
|
108
104
|
'rampReadAt': json['rampReadAt'] == null ? undefined : (new Date(json['rampReadAt'])),
|
|
109
105
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
110
106
|
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
@@ -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
|
}
|