@digital8/security-registers-backend-ts-sdk 0.0.777 → 0.0.778
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 +1 -3
- package/dist/models/AssetResource.d.ts +1 -1
- package/dist/models/AssetResource.js +1 -3
- package/dist/models/AuthProfileUpdateRequest.d.ts +0 -13
- package/dist/models/AuthProfileUpdateRequest.js +0 -5
- package/dist/models/IncidentImageResource.d.ts +1 -1
- package/dist/models/IncidentImageResource.js +1 -3
- package/dist/models/LicencesStoreRequest.d.ts +7 -7
- package/dist/models/LicencesStoreRequest.js +7 -7
- package/dist/models/LicencesStoreRequestBackAsset.d.ts +50 -0
- package/dist/models/{AuthProfileUpdateRequestSignature.js → LicencesStoreRequestBackAsset.js} +13 -13
- 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 +2 -2
- package/dist/models/RegisterResource.js +6 -2
- 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/index.d.ts +1 -1
- package/dist/models/index.js +1 -1
- package/package.json +1 -1
- package/src/models/AddressResource.ts +2 -3
- package/src/models/AssetResource.ts +2 -3
- package/src/models/AuthProfileUpdateRequest.ts +0 -24
- package/src/models/IncidentImageResource.ts +2 -3
- package/src/models/LicencesStoreRequest.ts +18 -18
- package/src/models/{AuthProfileUpdateRequestSignature.ts → LicencesStoreRequestBackAsset.ts} +14 -14
- package/src/models/LicencesUpdateRequest.ts +22 -22
- package/src/models/RegisterListResource.ts +5 -5
- package/src/models/RegisterResource.ts +6 -4
- package/src/models/RegistersCreateRequest.ts +10 -10
- package/src/models/RegistersUpdateRequest.ts +14 -14
- package/src/models/index.ts +1 -1
- package/dist/models/AuthProfileUpdateRequestSignature.d.ts +0 -50
package/.openapi-generator/FILES
CHANGED
|
@@ -17,7 +17,6 @@ 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
|
|
21
20
|
src/models/AuthRegisterGuardFileRequest.ts
|
|
22
21
|
src/models/AuthRegisterGuardRequest.ts
|
|
23
22
|
src/models/AuthRegisterGuardRequestLicencesInner.ts
|
|
@@ -84,6 +83,7 @@ src/models/LicencesCheckLogsListRequest.ts
|
|
|
84
83
|
src/models/LicencesListAllRequest.ts
|
|
85
84
|
src/models/LicencesListRequest.ts
|
|
86
85
|
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.778
|
|
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.778 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -24,8 +24,6 @@ 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;
|
|
29
27
|
if (!('suburb' in value) || value['suburb'] === undefined)
|
|
30
28
|
return false;
|
|
31
29
|
if (!('city' in value) || value['city'] === undefined)
|
|
@@ -50,7 +48,7 @@ function AddressResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
48
|
return {
|
|
51
49
|
'id': json['id'] == null ? undefined : json['id'],
|
|
52
50
|
'addressLine1': json['addressLine1'],
|
|
53
|
-
'addressLine2': json['addressLine2'],
|
|
51
|
+
'addressLine2': json['addressLine2'] == null ? undefined : json['addressLine2'],
|
|
54
52
|
'suburb': json['suburb'],
|
|
55
53
|
'city': json['city'],
|
|
56
54
|
'state': json['state'],
|
|
@@ -30,8 +30,6 @@ 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;
|
|
35
33
|
if (!('index' in value) || value['index'] === undefined)
|
|
36
34
|
return false;
|
|
37
35
|
if (!('fileId' in value) || value['fileId'] === undefined)
|
|
@@ -52,7 +50,7 @@ function AssetResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
50
|
'filePath': json['filePath'],
|
|
53
51
|
'fileName': json['fileName'],
|
|
54
52
|
'mimeType': json['mimeType'],
|
|
55
|
-
'altText': json['altText'],
|
|
53
|
+
'altText': json['altText'] == null ? undefined : json['altText'],
|
|
56
54
|
'index': json['index'],
|
|
57
55
|
'fileId': json['fileId'],
|
|
58
56
|
'isExternal': json['isExternal'],
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { AuthProfileUpdateRequestSignature } from './AuthProfileUpdateRequestSignature';
|
|
13
12
|
/**
|
|
14
13
|
*
|
|
15
14
|
* @export
|
|
@@ -52,18 +51,6 @@ export interface AuthProfileUpdateRequest {
|
|
|
52
51
|
* @memberof AuthProfileUpdateRequest
|
|
53
52
|
*/
|
|
54
53
|
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;
|
|
67
54
|
}
|
|
68
55
|
/**
|
|
69
56
|
* Check if a given object implements the AuthProfileUpdateRequest interface.
|
|
@@ -18,7 +18,6 @@ exports.AuthProfileUpdateRequestFromJSON = AuthProfileUpdateRequestFromJSON;
|
|
|
18
18
|
exports.AuthProfileUpdateRequestFromJSONTyped = AuthProfileUpdateRequestFromJSONTyped;
|
|
19
19
|
exports.AuthProfileUpdateRequestToJSON = AuthProfileUpdateRequestToJSON;
|
|
20
20
|
exports.AuthProfileUpdateRequestToJSONTyped = AuthProfileUpdateRequestToJSONTyped;
|
|
21
|
-
var AuthProfileUpdateRequestSignature_1 = require("./AuthProfileUpdateRequestSignature");
|
|
22
21
|
/**
|
|
23
22
|
* Check if a given object implements the AuthProfileUpdateRequest interface.
|
|
24
23
|
*/
|
|
@@ -39,8 +38,6 @@ function AuthProfileUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
38
|
'mobile': json['mobile'] == null ? undefined : json['mobile'],
|
|
40
39
|
'signatureAssetId': json['signature_asset_id'] == null ? undefined : json['signature_asset_id'],
|
|
41
40
|
'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']),
|
|
44
41
|
};
|
|
45
42
|
}
|
|
46
43
|
function AuthProfileUpdateRequestToJSON(json) {
|
|
@@ -58,7 +55,5 @@ function AuthProfileUpdateRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
58
55
|
'mobile': value['mobile'],
|
|
59
56
|
'signature_asset_id': value['signatureAssetId'],
|
|
60
57
|
'profile_image_asset_id': value['profileImageAssetId'],
|
|
61
|
-
'signature': (0, AuthProfileUpdateRequestSignature_1.AuthProfileUpdateRequestSignatureToJSON)(value['signature']),
|
|
62
|
-
'profile_image': (0, AuthProfileUpdateRequestSignature_1.AuthProfileUpdateRequestSignatureToJSON)(value['profileImage']),
|
|
63
58
|
};
|
|
64
59
|
}
|
|
@@ -26,8 +26,6 @@ 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;
|
|
31
29
|
if (!('assetId' in value) || value['assetId'] === undefined)
|
|
32
30
|
return false;
|
|
33
31
|
if (!('url' in value) || value['url'] === undefined)
|
|
@@ -44,7 +42,7 @@ function IncidentImageResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
42
|
return {
|
|
45
43
|
'fileId': json['file_id'],
|
|
46
44
|
'mimeType': json['mime_type'],
|
|
47
|
-
'altText': json['alt_text'],
|
|
45
|
+
'altText': json['alt_text'] == null ? undefined : json['alt_text'],
|
|
48
46
|
'assetId': json['asset_id'],
|
|
49
47
|
'url': json['url'],
|
|
50
48
|
};
|
|
@@ -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 { LicencesStoreRequestBackAsset } from './LicencesStoreRequestBackAsset';
|
|
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 {LicencesStoreRequestBackAsset}
|
|
65
65
|
* @memberof LicencesStoreRequest
|
|
66
66
|
*/
|
|
67
|
-
backAsset?:
|
|
67
|
+
backAsset?: LicencesStoreRequestBackAsset | null;
|
|
68
68
|
/**
|
|
69
69
|
*
|
|
70
|
-
* @type {
|
|
70
|
+
* @type {LicencesStoreRequestBackAsset}
|
|
71
71
|
* @memberof LicencesStoreRequest
|
|
72
72
|
*/
|
|
73
|
-
rsaAsset?:
|
|
73
|
+
rsaAsset?: LicencesStoreRequestBackAsset | null;
|
|
74
74
|
/**
|
|
75
75
|
*
|
|
76
|
-
* @type {
|
|
76
|
+
* @type {LicencesStoreRequestBackAsset}
|
|
77
77
|
* @memberof LicencesStoreRequest
|
|
78
78
|
*/
|
|
79
|
-
firstAidAsset?:
|
|
79
|
+
firstAidAsset?: LicencesStoreRequestBackAsset | 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 LicencesStoreRequestBackAsset_1 = require("./LicencesStoreRequestBackAsset");
|
|
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, LicencesStoreRequestBackAsset_1.LicencesStoreRequestBackAssetFromJSON)(json['back_asset']),
|
|
68
|
+
'rsaAsset': json['rsa_asset'] == null ? undefined : (0, LicencesStoreRequestBackAsset_1.LicencesStoreRequestBackAssetFromJSON)(json['rsa_asset']),
|
|
69
|
+
'firstAidAsset': json['first_aid_asset'] == null ? undefined : (0, LicencesStoreRequestBackAsset_1.LicencesStoreRequestBackAssetFromJSON)(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, LicencesStoreRequestBackAsset_1.LicencesStoreRequestBackAssetToJSON)(value['backAsset']),
|
|
89
|
+
'rsa_asset': (0, LicencesStoreRequestBackAsset_1.LicencesStoreRequestBackAssetToJSON)(value['rsaAsset']),
|
|
90
|
+
'first_aid_asset': (0, LicencesStoreRequestBackAsset_1.LicencesStoreRequestBackAssetToJSON)(value['firstAidAsset']),
|
|
91
91
|
};
|
|
92
92
|
}
|
|
@@ -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;
|
package/dist/models/{AuthProfileUpdateRequestSignature.js → LicencesStoreRequestBackAsset.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.instanceOfLicencesStoreRequestBackAsset = instanceOfLicencesStoreRequestBackAsset;
|
|
17
|
+
exports.LicencesStoreRequestBackAssetFromJSON = LicencesStoreRequestBackAssetFromJSON;
|
|
18
|
+
exports.LicencesStoreRequestBackAssetFromJSONTyped = LicencesStoreRequestBackAssetFromJSONTyped;
|
|
19
|
+
exports.LicencesStoreRequestBackAssetToJSON = LicencesStoreRequestBackAssetToJSON;
|
|
20
|
+
exports.LicencesStoreRequestBackAssetToJSONTyped = LicencesStoreRequestBackAssetToJSONTyped;
|
|
21
21
|
/**
|
|
22
|
-
* Check if a given object implements the
|
|
22
|
+
* Check if a given object implements the LicencesStoreRequestBackAsset interface.
|
|
23
23
|
*/
|
|
24
|
-
function
|
|
24
|
+
function instanceOfLicencesStoreRequestBackAsset(value) {
|
|
25
25
|
return true;
|
|
26
26
|
}
|
|
27
|
-
function
|
|
28
|
-
return
|
|
27
|
+
function LicencesStoreRequestBackAssetFromJSON(json) {
|
|
28
|
+
return LicencesStoreRequestBackAssetFromJSONTyped(json, false);
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function LicencesStoreRequestBackAssetFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
31
|
if (json == null) {
|
|
32
32
|
return json;
|
|
33
33
|
}
|
|
@@ -38,10 +38,10 @@ function AuthProfileUpdateRequestSignatureFromJSONTyped(json, ignoreDiscriminato
|
|
|
38
38
|
'altText': json['alt_text'] == null ? undefined : json['alt_text'],
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
|
-
function
|
|
42
|
-
return
|
|
41
|
+
function LicencesStoreRequestBackAssetToJSON(json) {
|
|
42
|
+
return LicencesStoreRequestBackAssetToJSONTyped(json, false);
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function LicencesStoreRequestBackAssetToJSONTyped(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 { LicencesStoreRequestBackAsset } from './LicencesStoreRequestBackAsset';
|
|
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 {LicencesStoreRequestBackAsset}
|
|
52
52
|
* @memberof LicencesUpdateRequest
|
|
53
53
|
*/
|
|
54
|
-
frontAsset?:
|
|
54
|
+
frontAsset?: LicencesStoreRequestBackAsset | null;
|
|
55
55
|
/**
|
|
56
56
|
*
|
|
57
|
-
* @type {
|
|
57
|
+
* @type {LicencesStoreRequestBackAsset}
|
|
58
58
|
* @memberof LicencesUpdateRequest
|
|
59
59
|
*/
|
|
60
|
-
backAsset?:
|
|
60
|
+
backAsset?: LicencesStoreRequestBackAsset | null;
|
|
61
61
|
/**
|
|
62
62
|
*
|
|
63
|
-
* @type {
|
|
63
|
+
* @type {LicencesStoreRequestBackAsset}
|
|
64
64
|
* @memberof LicencesUpdateRequest
|
|
65
65
|
*/
|
|
66
|
-
rsaAsset?:
|
|
66
|
+
rsaAsset?: LicencesStoreRequestBackAsset | null;
|
|
67
67
|
/**
|
|
68
68
|
*
|
|
69
|
-
* @type {
|
|
69
|
+
* @type {LicencesStoreRequestBackAsset}
|
|
70
70
|
* @memberof LicencesUpdateRequest
|
|
71
71
|
*/
|
|
72
|
-
firstAidAsset?:
|
|
72
|
+
firstAidAsset?: LicencesStoreRequestBackAsset | 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 LicencesStoreRequestBackAsset_1 = require("./LicencesStoreRequestBackAsset");
|
|
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, LicencesStoreRequestBackAsset_1.LicencesStoreRequestBackAssetFromJSON)(json['front_asset']),
|
|
51
|
+
'backAsset': json['back_asset'] == null ? undefined : (0, LicencesStoreRequestBackAsset_1.LicencesStoreRequestBackAssetFromJSON)(json['back_asset']),
|
|
52
|
+
'rsaAsset': json['rsa_asset'] == null ? undefined : (0, LicencesStoreRequestBackAsset_1.LicencesStoreRequestBackAssetFromJSON)(json['rsa_asset']),
|
|
53
|
+
'firstAidAsset': json['first_aid_asset'] == null ? undefined : (0, LicencesStoreRequestBackAsset_1.LicencesStoreRequestBackAssetFromJSON)(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, LicencesStoreRequestBackAsset_1.LicencesStoreRequestBackAssetToJSON)(value['frontAsset']),
|
|
71
|
+
'back_asset': (0, LicencesStoreRequestBackAsset_1.LicencesStoreRequestBackAssetToJSON)(value['backAsset']),
|
|
72
|
+
'rsa_asset': (0, LicencesStoreRequestBackAsset_1.LicencesStoreRequestBackAssetToJSON)(value['rsaAsset']),
|
|
73
|
+
'first_aid_asset': (0, LicencesStoreRequestBackAsset_1.LicencesStoreRequestBackAssetToJSON)(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}
|
|
@@ -154,7 +154,7 @@ export interface RegisterListResource {
|
|
|
154
154
|
* @type {number}
|
|
155
155
|
* @memberof RegisterListResource
|
|
156
156
|
*/
|
|
157
|
-
signOffLat
|
|
157
|
+
signOffLat: number;
|
|
158
158
|
/**
|
|
159
159
|
*
|
|
160
160
|
* @type {number}
|
|
@@ -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 (!('signOffLat' in value) || value['signOffLat'] === undefined)
|
|
73
|
+
return false;
|
|
74
74
|
if (!('signOffLong' in value) || value['signOffLong'] === undefined)
|
|
75
75
|
return false;
|
|
76
76
|
if (!('hasIncidents' in value) || value['hasIncidents'] === undefined)
|
|
@@ -92,7 +92,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
92
92
|
'finishDateTime': json['finishDateTime'] == null ? undefined : (new Date(json['finishDateTime'])),
|
|
93
93
|
'shiftLength': json['shiftLength'],
|
|
94
94
|
'signOffStatus': json['signOffStatus'],
|
|
95
|
-
'badgeNumber': json['badgeNumber'],
|
|
95
|
+
'badgeNumber': json['badgeNumber'] == null ? undefined : json['badgeNumber'],
|
|
96
96
|
'rampReadAt': json['rampReadAt'] == null ? undefined : (new Date(json['rampReadAt'])),
|
|
97
97
|
'licenceNumber': json['licenceNumber'],
|
|
98
98
|
'licenceFirstName': json['licenceFirstName'],
|
|
@@ -107,7 +107,7 @@ function RegisterListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
107
107
|
'firstAid': json['firstAid'],
|
|
108
108
|
'signOnLat': json['signOnLat'],
|
|
109
109
|
'signOnLong': json['signOnLong'],
|
|
110
|
-
'signOffLat': json['signOffLat']
|
|
110
|
+
'signOffLat': json['signOffLat'],
|
|
111
111
|
'signOffLong': json['signOffLong'],
|
|
112
112
|
'hasIncidents': json['hasIncidents'],
|
|
113
113
|
};
|
|
@@ -112,7 +112,7 @@ export interface RegisterResource {
|
|
|
112
112
|
* @type {number}
|
|
113
113
|
* @memberof RegisterResource
|
|
114
114
|
*/
|
|
115
|
-
signOffLat
|
|
115
|
+
signOffLat: number;
|
|
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;
|
|
152
152
|
/**
|
|
153
153
|
*
|
|
154
154
|
* @type {Date}
|
|
@@ -59,6 +59,8 @@ 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;
|
|
62
64
|
if (!('signOffLong' in value) || value['signOffLong'] === undefined)
|
|
63
65
|
return false;
|
|
64
66
|
if (!('licenceNumber' in value) || value['licenceNumber'] === undefined)
|
|
@@ -69,6 +71,8 @@ function instanceOfRegisterResource(value) {
|
|
|
69
71
|
return false;
|
|
70
72
|
if (!('licenceLastName' in value) || value['licenceLastName'] === undefined)
|
|
71
73
|
return false;
|
|
74
|
+
if (!('badgeNumber' in value) || value['badgeNumber'] === undefined)
|
|
75
|
+
return false;
|
|
72
76
|
return true;
|
|
73
77
|
}
|
|
74
78
|
function RegisterResourceFromJSON(json) {
|
|
@@ -94,13 +98,13 @@ function RegisterResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
94
98
|
'firstAidImage': json['firstAidImage'],
|
|
95
99
|
'signOnLat': json['signOnLat'],
|
|
96
100
|
'signOnLong': json['signOnLong'],
|
|
97
|
-
'signOffLat': json['signOffLat']
|
|
101
|
+
'signOffLat': json['signOffLat'],
|
|
98
102
|
'signOffLong': json['signOffLong'],
|
|
99
103
|
'licenceNumber': json['licenceNumber'],
|
|
100
104
|
'licenceExpiry': json['licenceExpiry'],
|
|
101
105
|
'licenceFirstName': json['licenceFirstName'],
|
|
102
106
|
'licenceLastName': json['licenceLastName'],
|
|
103
|
-
'badgeNumber': json['badgeNumber']
|
|
107
|
+
'badgeNumber': json['badgeNumber'],
|
|
104
108
|
'rampReadAt': json['rampReadAt'] == null ? undefined : (new Date(json['rampReadAt'])),
|
|
105
109
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
106
110
|
'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 { LicencesStoreRequestBackAsset } from './LicencesStoreRequestBackAsset';
|
|
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 {LicencesStoreRequestBackAsset}
|
|
95
95
|
* @memberof RegistersCreateRequest
|
|
96
96
|
*/
|
|
97
|
-
signOffSignature?:
|
|
97
|
+
signOffSignature?: LicencesStoreRequestBackAsset | 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 LicencesStoreRequestBackAsset_1 = require("./LicencesStoreRequestBackAsset");
|
|
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, LicencesStoreRequestBackAsset_1.LicencesStoreRequestBackAssetFromJSON)(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, LicencesStoreRequestBackAsset_1.LicencesStoreRequestBackAssetToJSON)(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 { LicencesStoreRequestBackAsset } from './LicencesStoreRequestBackAsset';
|
|
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 {LicencesStoreRequestBackAsset}
|
|
88
88
|
* @memberof RegistersUpdateRequest
|
|
89
89
|
*/
|
|
90
|
-
signOnSignature?:
|
|
90
|
+
signOnSignature?: LicencesStoreRequestBackAsset | null;
|
|
91
91
|
/**
|
|
92
92
|
*
|
|
93
|
-
* @type {
|
|
93
|
+
* @type {LicencesStoreRequestBackAsset}
|
|
94
94
|
* @memberof RegistersUpdateRequest
|
|
95
95
|
*/
|
|
96
|
-
signOffSignature?:
|
|
96
|
+
signOffSignature?: LicencesStoreRequestBackAsset | null;
|
|
97
97
|
}
|
|
98
98
|
/**
|
|
99
99
|
* @export
|