@healthcloudai/hc-settings-connector 0.2.0 → 0.2.1
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/dist/index.cjs +8 -8
- package/dist/index.js +8 -8
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -60,7 +60,7 @@ var HCSettingsClient = class extends import_hc_http.HCBaseConnector {
|
|
|
60
60
|
* Extension must be a valid file extension such as "jpg" or "png".
|
|
61
61
|
*/
|
|
62
62
|
async getUserImageCannedUrl(extension) {
|
|
63
|
-
const resolvedExtension = this.requireValue(extension, "Extension");
|
|
63
|
+
const resolvedExtension = this.requireValue(extension, "Extension", "extension");
|
|
64
64
|
const requestPayload = {
|
|
65
65
|
Data: { Extension: resolvedExtension }
|
|
66
66
|
};
|
|
@@ -77,7 +77,7 @@ var HCSettingsClient = class extends import_hc_http.HCBaseConnector {
|
|
|
77
77
|
* Updates the patient's profile image by confirming the uploaded file name.
|
|
78
78
|
*/
|
|
79
79
|
async updateUserImage(fileName) {
|
|
80
|
-
const resolvedFileName = this.requireValue(fileName, "File name");
|
|
80
|
+
const resolvedFileName = this.requireValue(fileName, "File name", "fileName");
|
|
81
81
|
const requestPayload = {
|
|
82
82
|
Data: { FileName: resolvedFileName }
|
|
83
83
|
};
|
|
@@ -97,7 +97,7 @@ var HCSettingsClient = class extends import_hc_http.HCBaseConnector {
|
|
|
97
97
|
* Returns a canned URL for uploading the patient's driving licence image.
|
|
98
98
|
*/
|
|
99
99
|
async getDrivingLicenseCannedUrl(extension) {
|
|
100
|
-
const resolvedExtension = this.requireValue(extension, "Extension");
|
|
100
|
+
const resolvedExtension = this.requireValue(extension, "Extension", "extension");
|
|
101
101
|
const requestPayload = {
|
|
102
102
|
Data: { Extension: resolvedExtension }
|
|
103
103
|
};
|
|
@@ -115,7 +115,7 @@ var HCSettingsClient = class extends import_hc_http.HCBaseConnector {
|
|
|
115
115
|
* fileKey is the storage key of the uploaded image.
|
|
116
116
|
*/
|
|
117
117
|
async captureDrivingLicense(fileKey) {
|
|
118
|
-
const resolvedFileKey = this.requireValue(fileKey, "File key");
|
|
118
|
+
const resolvedFileKey = this.requireValue(fileKey, "File key", "fileKey");
|
|
119
119
|
const requestPayload = {
|
|
120
120
|
Data: { Type: "identification", FileID: resolvedFileKey }
|
|
121
121
|
};
|
|
@@ -132,7 +132,7 @@ var HCSettingsClient = class extends import_hc_http.HCBaseConnector {
|
|
|
132
132
|
* Submits a base64-encoded driving licence image to the EHR.
|
|
133
133
|
*/
|
|
134
134
|
async submitDrivingLicense(image) {
|
|
135
|
-
const resolvedImage = this.requireValue(image, "Image");
|
|
135
|
+
const resolvedImage = this.requireValue(image, "Image", "image");
|
|
136
136
|
const requestPayload = {
|
|
137
137
|
Data: { Image: resolvedImage }
|
|
138
138
|
};
|
|
@@ -152,7 +152,7 @@ var HCSettingsClient = class extends import_hc_http.HCBaseConnector {
|
|
|
152
152
|
* Returns a canned URL for uploading the insurance card image.
|
|
153
153
|
*/
|
|
154
154
|
async getInsuranceCannedUrl(extension) {
|
|
155
|
-
const resolvedExtension = this.requireValue(extension, "Extension");
|
|
155
|
+
const resolvedExtension = this.requireValue(extension, "Extension", "extension");
|
|
156
156
|
const requestPayload = {
|
|
157
157
|
Data: { Extension: resolvedExtension }
|
|
158
158
|
};
|
|
@@ -170,7 +170,7 @@ var HCSettingsClient = class extends import_hc_http.HCBaseConnector {
|
|
|
170
170
|
* fileKey is the storage key of the uploaded image.
|
|
171
171
|
*/
|
|
172
172
|
async captureInsurance(fileKey) {
|
|
173
|
-
const resolvedFileKey = this.requireValue(fileKey, "File key");
|
|
173
|
+
const resolvedFileKey = this.requireValue(fileKey, "File key", "fileKey");
|
|
174
174
|
const requestPayload = {
|
|
175
175
|
Data: { Type: "healthinsurance", FileID: resolvedFileKey }
|
|
176
176
|
};
|
|
@@ -226,7 +226,7 @@ var HCSettingsClient = class extends import_hc_http.HCBaseConnector {
|
|
|
226
226
|
* fileKey is the storage key of the uploaded image.
|
|
227
227
|
*/
|
|
228
228
|
async captureUserPhoto(fileKey) {
|
|
229
|
-
const resolvedFileKey = this.requireValue(fileKey, "File key");
|
|
229
|
+
const resolvedFileKey = this.requireValue(fileKey, "File key", "fileKey");
|
|
230
230
|
const requestPayload = {
|
|
231
231
|
Data: { Type: "userphoto", FileID: resolvedFileKey }
|
|
232
232
|
};
|
package/dist/index.js
CHANGED
|
@@ -28,7 +28,7 @@ var HCSettingsClient = class extends HCBaseConnector {
|
|
|
28
28
|
* Extension must be a valid file extension such as "jpg" or "png".
|
|
29
29
|
*/
|
|
30
30
|
async getUserImageCannedUrl(extension) {
|
|
31
|
-
const resolvedExtension = this.requireValue(extension, "Extension");
|
|
31
|
+
const resolvedExtension = this.requireValue(extension, "Extension", "extension");
|
|
32
32
|
const requestPayload = {
|
|
33
33
|
Data: { Extension: resolvedExtension }
|
|
34
34
|
};
|
|
@@ -45,7 +45,7 @@ var HCSettingsClient = class extends HCBaseConnector {
|
|
|
45
45
|
* Updates the patient's profile image by confirming the uploaded file name.
|
|
46
46
|
*/
|
|
47
47
|
async updateUserImage(fileName) {
|
|
48
|
-
const resolvedFileName = this.requireValue(fileName, "File name");
|
|
48
|
+
const resolvedFileName = this.requireValue(fileName, "File name", "fileName");
|
|
49
49
|
const requestPayload = {
|
|
50
50
|
Data: { FileName: resolvedFileName }
|
|
51
51
|
};
|
|
@@ -65,7 +65,7 @@ var HCSettingsClient = class extends HCBaseConnector {
|
|
|
65
65
|
* Returns a canned URL for uploading the patient's driving licence image.
|
|
66
66
|
*/
|
|
67
67
|
async getDrivingLicenseCannedUrl(extension) {
|
|
68
|
-
const resolvedExtension = this.requireValue(extension, "Extension");
|
|
68
|
+
const resolvedExtension = this.requireValue(extension, "Extension", "extension");
|
|
69
69
|
const requestPayload = {
|
|
70
70
|
Data: { Extension: resolvedExtension }
|
|
71
71
|
};
|
|
@@ -83,7 +83,7 @@ var HCSettingsClient = class extends HCBaseConnector {
|
|
|
83
83
|
* fileKey is the storage key of the uploaded image.
|
|
84
84
|
*/
|
|
85
85
|
async captureDrivingLicense(fileKey) {
|
|
86
|
-
const resolvedFileKey = this.requireValue(fileKey, "File key");
|
|
86
|
+
const resolvedFileKey = this.requireValue(fileKey, "File key", "fileKey");
|
|
87
87
|
const requestPayload = {
|
|
88
88
|
Data: { Type: "identification", FileID: resolvedFileKey }
|
|
89
89
|
};
|
|
@@ -100,7 +100,7 @@ var HCSettingsClient = class extends HCBaseConnector {
|
|
|
100
100
|
* Submits a base64-encoded driving licence image to the EHR.
|
|
101
101
|
*/
|
|
102
102
|
async submitDrivingLicense(image) {
|
|
103
|
-
const resolvedImage = this.requireValue(image, "Image");
|
|
103
|
+
const resolvedImage = this.requireValue(image, "Image", "image");
|
|
104
104
|
const requestPayload = {
|
|
105
105
|
Data: { Image: resolvedImage }
|
|
106
106
|
};
|
|
@@ -120,7 +120,7 @@ var HCSettingsClient = class extends HCBaseConnector {
|
|
|
120
120
|
* Returns a canned URL for uploading the insurance card image.
|
|
121
121
|
*/
|
|
122
122
|
async getInsuranceCannedUrl(extension) {
|
|
123
|
-
const resolvedExtension = this.requireValue(extension, "Extension");
|
|
123
|
+
const resolvedExtension = this.requireValue(extension, "Extension", "extension");
|
|
124
124
|
const requestPayload = {
|
|
125
125
|
Data: { Extension: resolvedExtension }
|
|
126
126
|
};
|
|
@@ -138,7 +138,7 @@ var HCSettingsClient = class extends HCBaseConnector {
|
|
|
138
138
|
* fileKey is the storage key of the uploaded image.
|
|
139
139
|
*/
|
|
140
140
|
async captureInsurance(fileKey) {
|
|
141
|
-
const resolvedFileKey = this.requireValue(fileKey, "File key");
|
|
141
|
+
const resolvedFileKey = this.requireValue(fileKey, "File key", "fileKey");
|
|
142
142
|
const requestPayload = {
|
|
143
143
|
Data: { Type: "healthinsurance", FileID: resolvedFileKey }
|
|
144
144
|
};
|
|
@@ -194,7 +194,7 @@ var HCSettingsClient = class extends HCBaseConnector {
|
|
|
194
194
|
* fileKey is the storage key of the uploaded image.
|
|
195
195
|
*/
|
|
196
196
|
async captureUserPhoto(fileKey) {
|
|
197
|
-
const resolvedFileKey = this.requireValue(fileKey, "File key");
|
|
197
|
+
const resolvedFileKey = this.requireValue(fileKey, "File key", "fileKey");
|
|
198
198
|
const requestPayload = {
|
|
199
199
|
Data: { Type: "userphoto", FileID: resolvedFileKey }
|
|
200
200
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@healthcloudai/hc-settings-connector",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Healthcheck Settings SDK with TypeScript",
|
|
5
5
|
"author": "Healthcheck Systems Inc",
|
|
6
6
|
"license": "MIT",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"axios": "^1.13.4",
|
|
39
|
-
"@healthcloudai/hc-login-connector": "^0.3.
|
|
40
|
-
"@healthcloudai/hc-http": "^0.2.
|
|
39
|
+
"@healthcloudai/hc-login-connector": "^0.3.1",
|
|
40
|
+
"@healthcloudai/hc-http": "^0.2.1"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"react-native": ">=0.70.0"
|