@medipass/web-sdk 11.52.3-feature-add-new-mfa-endpoints.1 → 11.52.3-feature-healthpoint-upload-endpoints.0
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/lib/index.js +1 -1
- package/lib/resources/abr.js +1 -1
- package/lib/resources/accounts.d.ts +0 -35
- package/lib/resources/accounts.js +1 -4
- package/lib/resources/actions.js +1 -1
- package/lib/resources/api-keys.js +1 -1
- package/lib/resources/applications.js +1 -1
- package/lib/resources/attachments.d.ts +35 -1
- package/lib/resources/attachments.js +7 -1
- package/lib/resources/auth.js +1 -1
- package/lib/resources/blacklist.js +1 -1
- package/lib/resources/bulk-submits.js +1 -1
- package/lib/resources/bulk-uploads.js +1 -1
- package/lib/resources/business-profiles.js +1 -1
- package/lib/resources/businesses.d.ts +9 -0
- package/lib/resources/businesses.js +2 -1
- package/lib/resources/claim-items.js +1 -1
- package/lib/resources/devices.js +1 -1
- package/lib/resources/doc-accounts.js +1 -1
- package/lib/resources/documents.js +1 -1
- package/lib/resources/emails.js +1 -1
- package/lib/resources/filter-options.js +1 -1
- package/lib/resources/form-application-templates.js +1 -1
- package/lib/resources/form-applications.js +1 -1
- package/lib/resources/forms.js +1 -1
- package/lib/resources/funder-services.js +1 -1
- package/lib/resources/funder-settings.js +1 -1
- package/lib/resources/funder-values.js +1 -1
- package/lib/resources/funders.js +1 -1
- package/lib/resources/futures.js +1 -1
- package/lib/resources/health-fund-accounts.js +1 -1
- package/lib/resources/health-fund-settings.js +1 -1
- package/lib/resources/healthfunds.js +1 -1
- package/lib/resources/icditems.js +1 -1
- package/lib/resources/invoice-scans.js +1 -1
- package/lib/resources/jhcs.js +1 -1
- package/lib/resources/kyc.js +1 -1
- package/lib/resources/logs.js +1 -1
- package/lib/resources/members.js +1 -1
- package/lib/resources/message-mappings.js +1 -1
- package/lib/resources/minions.js +1 -1
- package/lib/resources/modalities.js +1 -1
- package/lib/resources/notes.js +1 -1
- package/lib/resources/onboarding-applications.js +1 -1
- package/lib/resources/onboarding-requests.js +1 -1
- package/lib/resources/ops.js +1 -1
- package/lib/resources/organisations.js +1 -1
- package/lib/resources/partners.js +1 -1
- package/lib/resources/patients.js +1 -1
- package/lib/resources/payments.js +1 -1
- package/lib/resources/pms.js +1 -1
- package/lib/resources/practice-profiles.js +1 -1
- package/lib/resources/practice-types.js +1 -1
- package/lib/resources/practices.js +1 -1
- package/lib/resources/products.js +1 -1
- package/lib/resources/professional-categories.js +1 -1
- package/lib/resources/provider-number-types.js +1 -1
- package/lib/resources/provider-registration-types.js +1 -1
- package/lib/resources/provider-requests.js +1 -1
- package/lib/resources/provider-types.js +1 -1
- package/lib/resources/ref-sources.js +1 -1
- package/lib/resources/risk.js +1 -1
- package/lib/resources/rnas.js +1 -1
- package/lib/resources/roles.js +1 -1
- package/lib/resources/self-checkout-sessions.js +1 -1
- package/lib/resources/services.js +1 -1
- package/lib/resources/settlements.js +1 -1
- package/lib/resources/sign-up.js +1 -1
- package/lib/resources/specialties.js +1 -1
- package/lib/resources/staff-profiles.js +1 -1
- package/lib/resources/staff.js +1 -1
- package/lib/resources/statistics.js +1 -1
- package/lib/resources/subscriptions.js +1 -1
- package/lib/resources/terminals.js +1 -1
- package/lib/resources/transaction-export.js +1 -1
- package/lib/resources/transactions.js +1 -1
- package/lib/resources/triggers.js +1 -1
- package/lib/resources/vendors.js +1 -1
- package/lib/resources/verify.js +1 -1
- package/lib/resources/workers.js +1 -1
- package/lib/resources/workflow-exceptions.js +1 -1
- package/lib/services/aws.d.ts +10 -0
- package/lib/services/aws.js +2 -1
- package/lib/services/version.js +1 -1
- package/lib/{staff-126cd1b7.js → staff-edec8e01.js} +239 -153
- package/lib/types/index.d.ts +3 -1
- package/lib/types/virus-scan.d.ts +13 -0
- package/lib/types/virus-scan.js +2 -0
- package/lib/utils/application.js +1 -1
- package/lib/utils/professions.js +1 -1
- package/lib/utils/request.js +1 -1
- package/lib/utils/staff.js +1 -1
- package/package.json +4 -4
|
@@ -155,7 +155,7 @@ var abr = /*#__PURE__*/Object.freeze({
|
|
|
155
155
|
function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
156
156
|
|
|
157
157
|
function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
158
|
-
var PATH__ACCOUNTS = '/accounts';
|
|
158
|
+
var PATH__ACCOUNTS = '/accounts'; // @ts-expect-error TS(7006): Parameter 'accountId' implicitly has an 'any' type... Remove this comment to see the full error message
|
|
159
159
|
|
|
160
160
|
var pathAccountsByAccountId = function pathAccountsByAccountId(accountId) {
|
|
161
161
|
return "/accounts/" + accountId;
|
|
@@ -163,23 +163,28 @@ var pathAccountsByAccountId = function pathAccountsByAccountId(accountId) {
|
|
|
163
163
|
|
|
164
164
|
var pathAccountExists = function pathAccountExists() {
|
|
165
165
|
return "/accounts/exists";
|
|
166
|
-
};
|
|
166
|
+
}; // @ts-expect-error TS(7006): Parameter 'accountId' implicitly has an 'any' type... Remove this comment to see the full error message
|
|
167
|
+
|
|
167
168
|
|
|
168
169
|
var pathAccountRolesByAccountId = function pathAccountRolesByAccountId(accountId) {
|
|
169
170
|
return "/accounts/" + accountId + "/roles";
|
|
170
|
-
};
|
|
171
|
+
}; // @ts-expect-error TS(7006): Parameter 'accountId' implicitly has an 'any' type... Remove this comment to see the full error message
|
|
172
|
+
|
|
171
173
|
|
|
172
174
|
var pathAccountSecretKeysByAccountId = function pathAccountSecretKeysByAccountId(accountId) {
|
|
173
175
|
return "/accounts/" + accountId + "/secretkeys";
|
|
174
|
-
};
|
|
176
|
+
}; // @ts-expect-error TS(7006): Parameter 'accountId' implicitly has an 'any' type... Remove this comment to see the full error message
|
|
177
|
+
|
|
175
178
|
|
|
176
179
|
var pathAccountSecretKey = function pathAccountSecretKey(accountId, secretKey) {
|
|
177
180
|
return "/accounts/" + accountId + "/secretkeys/" + secretKey;
|
|
178
|
-
};
|
|
181
|
+
}; // @ts-expect-error TS(7006): Parameter 'accountId' implicitly has an 'any' type... Remove this comment to see the full error message
|
|
182
|
+
|
|
179
183
|
|
|
180
184
|
var pathAccountTransactions = function pathAccountTransactions(accountId) {
|
|
181
185
|
return "/accounts/" + accountId + "/transactions";
|
|
182
|
-
};
|
|
186
|
+
}; // @ts-expect-error TS(7006): Parameter 'businessId' implicitly has an 'any' typ... Remove this comment to see the full error message
|
|
187
|
+
|
|
183
188
|
|
|
184
189
|
var pathBusinessStaffAccount = function pathBusinessStaffAccount(businessId, staffId) {
|
|
185
190
|
return "/businesses/" + businessId + "/staff/" + staffId + "/account";
|
|
@@ -187,48 +192,43 @@ var pathBusinessStaffAccount = function pathBusinessStaffAccount(businessId, sta
|
|
|
187
192
|
|
|
188
193
|
var pathChangePassword = function pathChangePassword() {
|
|
189
194
|
return "/accounts/changepassword";
|
|
190
|
-
};
|
|
195
|
+
}; // @ts-expect-error TS(7006): Parameter 'accountId' implicitly has an 'any' type... Remove this comment to see the full error message
|
|
196
|
+
|
|
191
197
|
|
|
192
198
|
var pathEnableAccount = function pathEnableAccount(accountId) {
|
|
193
199
|
return "/accounts/" + accountId + "/enable";
|
|
194
|
-
};
|
|
200
|
+
}; // @ts-expect-error TS(7006): Parameter 'accountId' implicitly has an 'any' type... Remove this comment to see the full error message
|
|
201
|
+
|
|
195
202
|
|
|
196
203
|
var pathDisableAccount = function pathDisableAccount(accountId) {
|
|
197
204
|
return "/accounts/" + accountId + "/disable";
|
|
198
|
-
};
|
|
205
|
+
}; // @ts-expect-error TS(7006): Parameter 'accountId' implicitly has an 'any' type... Remove this comment to see the full error message
|
|
206
|
+
|
|
199
207
|
|
|
200
208
|
var pathRequestVerifyAccount = function pathRequestVerifyAccount(accountId) {
|
|
201
209
|
return "/accounts/" + accountId + "/verify/request";
|
|
202
|
-
};
|
|
210
|
+
}; // @ts-expect-error TS(7006): Parameter 'healthFundId' implicitly has an 'any' t... Remove this comment to see the full error message
|
|
211
|
+
|
|
203
212
|
|
|
204
213
|
var pathHealthFundAccounts = function pathHealthFundAccounts(healthFundId) {
|
|
205
214
|
return "/healthfunds/" + healthFundId + "/accounts";
|
|
206
|
-
};
|
|
215
|
+
}; // @ts-expect-error TS(7006): Parameter 'healthFundId' implicitly has an 'any' t... Remove this comment to see the full error message
|
|
216
|
+
|
|
207
217
|
|
|
208
218
|
var pathHealthFundAccount = function pathHealthFundAccount(healthFundId, accountId) {
|
|
209
219
|
return "/healthfunds/" + healthFundId + "/accounts/" + accountId;
|
|
210
|
-
};
|
|
220
|
+
}; // @ts-expect-error TS(7006): Parameter 'organisationId' implicitly has an 'any'... Remove this comment to see the full error message
|
|
221
|
+
|
|
211
222
|
|
|
212
223
|
var pathOrganisationAccounts = function pathOrganisationAccounts(organisationId) {
|
|
213
224
|
return "/organisations/" + organisationId + "/accounts";
|
|
214
|
-
};
|
|
225
|
+
}; // @ts-expect-error TS(7006): Parameter 'accountId' implicitly has an 'any' type... Remove this comment to see the full error message
|
|
226
|
+
|
|
215
227
|
|
|
216
228
|
var pathAccountPractices = function pathAccountPractices(accountId) {
|
|
217
229
|
return "/accounts/" + accountId + "/practices";
|
|
218
230
|
};
|
|
219
231
|
|
|
220
|
-
var pathEnableTwoFactorAuthentication = function pathEnableTwoFactorAuthentication(accountId) {
|
|
221
|
-
return "/accounts/" + accountId + "/mfa/sms";
|
|
222
|
-
};
|
|
223
|
-
|
|
224
|
-
var pathDisableTwoFactorAuthentication = function pathDisableTwoFactorAuthentication(accountId) {
|
|
225
|
-
return "/accounts/" + accountId + "/mfa/sms";
|
|
226
|
-
};
|
|
227
|
-
|
|
228
|
-
var pathUpdateTwoFactorAuthentication = function pathUpdateTwoFactorAuthentication(accountId) {
|
|
229
|
-
return "/accounts/" + accountId + "/mfa/sms";
|
|
230
|
-
};
|
|
231
|
-
|
|
232
232
|
var PATH__ACCEPT_ACCOUNT_INVITE = '/accounts/invites/accept';
|
|
233
233
|
var PATH__REQUEST_ACCOUNT_RESET = '/accounts/reset/request';
|
|
234
234
|
var PATH__REQUEST_PASSWORD_RESET = '/accounts/reset/password/request';
|
|
@@ -1524,123 +1524,6 @@ var changePassword = /*#__PURE__*/function () {
|
|
|
1524
1524
|
return _ref34.apply(this, arguments);
|
|
1525
1525
|
};
|
|
1526
1526
|
}();
|
|
1527
|
-
/**
|
|
1528
|
-
* Enable SMS MFA
|
|
1529
|
-
* @param {String} accountId - Account ID
|
|
1530
|
-
* @param {Object} body - Object body
|
|
1531
|
-
* @param {Object} opts - Additional options
|
|
1532
|
-
*/
|
|
1533
|
-
|
|
1534
|
-
var enableTwoFactorAuthentication = /*#__PURE__*/function () {
|
|
1535
|
-
var _ref35 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee33(accountId, body, opts) {
|
|
1536
|
-
return _regeneratorRuntime.wrap(function _callee33$(_context33) {
|
|
1537
|
-
while (1) {
|
|
1538
|
-
switch (_context33.prev = _context33.next) {
|
|
1539
|
-
case 0:
|
|
1540
|
-
if (opts === void 0) {
|
|
1541
|
-
opts = {};
|
|
1542
|
-
}
|
|
1543
|
-
|
|
1544
|
-
doesParamExist.default({
|
|
1545
|
-
accountId: accountId
|
|
1546
|
-
}, opts.hyperMediaEndpoint);
|
|
1547
|
-
return _context33.abrupt("return", request(_objectSpread$2({}, opts, {
|
|
1548
|
-
path: pathEnableTwoFactorAuthentication(accountId)
|
|
1549
|
-
}), {
|
|
1550
|
-
method: 'post',
|
|
1551
|
-
data: body
|
|
1552
|
-
}));
|
|
1553
|
-
|
|
1554
|
-
case 3:
|
|
1555
|
-
case "end":
|
|
1556
|
-
return _context33.stop();
|
|
1557
|
-
}
|
|
1558
|
-
}
|
|
1559
|
-
}, _callee33);
|
|
1560
|
-
}));
|
|
1561
|
-
|
|
1562
|
-
return function enableTwoFactorAuthentication(_x82, _x83, _x84) {
|
|
1563
|
-
return _ref35.apply(this, arguments);
|
|
1564
|
-
};
|
|
1565
|
-
}();
|
|
1566
|
-
/**
|
|
1567
|
-
* Disable SMS MFA
|
|
1568
|
-
* @param {String} accountId - Account ID
|
|
1569
|
-
* @param {Object} body - Object body
|
|
1570
|
-
* @param {Object} opts - Additional options
|
|
1571
|
-
*/
|
|
1572
|
-
|
|
1573
|
-
var disableTwoFactorAuthentication = /*#__PURE__*/function () {
|
|
1574
|
-
var _ref36 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee34(accountId, body, opts) {
|
|
1575
|
-
return _regeneratorRuntime.wrap(function _callee34$(_context34) {
|
|
1576
|
-
while (1) {
|
|
1577
|
-
switch (_context34.prev = _context34.next) {
|
|
1578
|
-
case 0:
|
|
1579
|
-
if (opts === void 0) {
|
|
1580
|
-
opts = {};
|
|
1581
|
-
}
|
|
1582
|
-
|
|
1583
|
-
doesParamExist.default({
|
|
1584
|
-
accountId: accountId
|
|
1585
|
-
}, opts.hyperMediaEndpoint);
|
|
1586
|
-
return _context34.abrupt("return", request(_objectSpread$2({}, opts, {
|
|
1587
|
-
path: pathDisableTwoFactorAuthentication(accountId)
|
|
1588
|
-
}), {
|
|
1589
|
-
method: 'delete',
|
|
1590
|
-
data: body
|
|
1591
|
-
}));
|
|
1592
|
-
|
|
1593
|
-
case 3:
|
|
1594
|
-
case "end":
|
|
1595
|
-
return _context34.stop();
|
|
1596
|
-
}
|
|
1597
|
-
}
|
|
1598
|
-
}, _callee34);
|
|
1599
|
-
}));
|
|
1600
|
-
|
|
1601
|
-
return function disableTwoFactorAuthentication(_x85, _x86, _x87) {
|
|
1602
|
-
return _ref36.apply(this, arguments);
|
|
1603
|
-
};
|
|
1604
|
-
}();
|
|
1605
|
-
/**
|
|
1606
|
-
* Update SMS MFA
|
|
1607
|
-
* @param {String} accountId - Account ID
|
|
1608
|
-
* @param {Object} body - Object body
|
|
1609
|
-
* @param {Object} opts - Additional options
|
|
1610
|
-
*/
|
|
1611
|
-
|
|
1612
|
-
var updateTwoFactorAuthentication = /*#__PURE__*/function () {
|
|
1613
|
-
var _ref37 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee35(accountId, body, opts) {
|
|
1614
|
-
return _regeneratorRuntime.wrap(function _callee35$(_context35) {
|
|
1615
|
-
while (1) {
|
|
1616
|
-
switch (_context35.prev = _context35.next) {
|
|
1617
|
-
case 0:
|
|
1618
|
-
if (opts === void 0) {
|
|
1619
|
-
opts = {};
|
|
1620
|
-
}
|
|
1621
|
-
|
|
1622
|
-
doesParamExist.default({
|
|
1623
|
-
accountId: accountId
|
|
1624
|
-
}, opts.hyperMediaEndpoint);
|
|
1625
|
-
return _context35.abrupt("return", request(_objectSpread$2({}, opts, {
|
|
1626
|
-
path: pathUpdateTwoFactorAuthentication(accountId)
|
|
1627
|
-
}), {
|
|
1628
|
-
method: 'put',
|
|
1629
|
-
data: body
|
|
1630
|
-
}));
|
|
1631
|
-
|
|
1632
|
-
case 3:
|
|
1633
|
-
case "end":
|
|
1634
|
-
return _context35.stop();
|
|
1635
|
-
}
|
|
1636
|
-
}
|
|
1637
|
-
}, _callee35);
|
|
1638
|
-
}));
|
|
1639
|
-
|
|
1640
|
-
return function updateTwoFactorAuthentication(_x88, _x89, _x90) {
|
|
1641
|
-
return _ref37.apply(this, arguments);
|
|
1642
|
-
};
|
|
1643
|
-
}();
|
|
1644
1527
|
|
|
1645
1528
|
var accounts = /*#__PURE__*/Object.freeze({
|
|
1646
1529
|
__proto__: null,
|
|
@@ -1675,10 +1558,7 @@ var accounts = /*#__PURE__*/Object.freeze({
|
|
|
1675
1558
|
updateAccount: updateAccount,
|
|
1676
1559
|
updateAccountRoles: updateAccountRoles,
|
|
1677
1560
|
getAccountPractices: getAccountPractices,
|
|
1678
|
-
changePassword: changePassword
|
|
1679
|
-
enableTwoFactorAuthentication: enableTwoFactorAuthentication,
|
|
1680
|
-
disableTwoFactorAuthentication: disableTwoFactorAuthentication,
|
|
1681
|
-
updateTwoFactorAuthentication: updateTwoFactorAuthentication
|
|
1561
|
+
changePassword: changePassword
|
|
1682
1562
|
});
|
|
1683
1563
|
|
|
1684
1564
|
function ownKeys$3(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -1918,6 +1798,15 @@ var pathGetS3SignedUrl = function pathGetS3SignedUrl(businessId, practiceId, sta
|
|
|
1918
1798
|
var pathScanClaimFile = function pathScanClaimFile(businessId, practiceId, staffId) {
|
|
1919
1799
|
return "/businesses/" + businessId + "/practices/" + practiceId + "/staff/" + staffId + "/attachments/virusscan";
|
|
1920
1800
|
};
|
|
1801
|
+
var pathScanFile = function pathScanFile(businessId) {
|
|
1802
|
+
return "/businesses/" + businessId + "/attachments/virusscan";
|
|
1803
|
+
};
|
|
1804
|
+
var pathGetAttachmentUrl = function pathGetAttachmentUrl(businessId) {
|
|
1805
|
+
return "/businesses/" + businessId + "/attachments/uploadurl";
|
|
1806
|
+
};
|
|
1807
|
+
var pathGetBusinessS3SignedUrl = function pathGetBusinessS3SignedUrl(businessId, s3SignedUrlId) {
|
|
1808
|
+
return "/businesses/" + businessId + "/attachments/s3signedurls/" + s3SignedUrlId;
|
|
1809
|
+
};
|
|
1921
1810
|
/**
|
|
1922
1811
|
* Get url to upload a file associated to a claim
|
|
1923
1812
|
* @param {String} businessId - Business ID
|
|
@@ -1999,14 +1888,88 @@ var getS3SignedUrl = function getS3SignedUrl(businessId, practiceId, staffId, s3
|
|
|
1999
1888
|
});
|
|
2000
1889
|
};
|
|
2001
1890
|
|
|
1891
|
+
/**
|
|
1892
|
+
* Scan a file
|
|
1893
|
+
* @param {String} businessId - Business ID
|
|
1894
|
+
* @param {Object} body - Request body
|
|
1895
|
+
* @param {Object} opts - Additional options
|
|
1896
|
+
*/
|
|
1897
|
+
var scanFile = function scanFile(businessId, body, opts) {
|
|
1898
|
+
if (opts === void 0) {
|
|
1899
|
+
opts = {};
|
|
1900
|
+
}
|
|
1901
|
+
|
|
1902
|
+
doesParamExist.default({
|
|
1903
|
+
businessId: businessId
|
|
1904
|
+
}, opts.hyperMediaEndpoint);
|
|
1905
|
+
return request(_objectSpread$5({}, opts, {
|
|
1906
|
+
path: pathScanFile(businessId)
|
|
1907
|
+
}), {
|
|
1908
|
+
method: 'post',
|
|
1909
|
+
data: body
|
|
1910
|
+
});
|
|
1911
|
+
};
|
|
1912
|
+
|
|
1913
|
+
/**
|
|
1914
|
+
* Get url to upload a file
|
|
1915
|
+
* @param {String} businessId - Business ID
|
|
1916
|
+
* @param {Object} query - Query
|
|
1917
|
+
* @param {Object} opts - Additional options
|
|
1918
|
+
*/
|
|
1919
|
+
var getAttachmentUrl = function getAttachmentUrl(businessId, query, opts) {
|
|
1920
|
+
if (opts === void 0) {
|
|
1921
|
+
opts = {};
|
|
1922
|
+
}
|
|
1923
|
+
|
|
1924
|
+
doesParamExist.default({
|
|
1925
|
+
businessId: businessId
|
|
1926
|
+
}, opts.hyperMediaEndpoint);
|
|
1927
|
+
return request(_objectSpread$5({}, opts, {
|
|
1928
|
+
path: pathGetAttachmentUrl(businessId)
|
|
1929
|
+
}), {
|
|
1930
|
+
method: 'get',
|
|
1931
|
+
params: query
|
|
1932
|
+
});
|
|
1933
|
+
};
|
|
1934
|
+
/**
|
|
1935
|
+
* Get a business' s3 signed url
|
|
1936
|
+
* @param {String} businessId - Business ID
|
|
1937
|
+
* @param {String} s3SignedUrlId - Internal s3 signed url ID
|
|
1938
|
+
* @param {Object} query - Request query
|
|
1939
|
+
* @param {Object} opts - Additional options
|
|
1940
|
+
*/
|
|
1941
|
+
|
|
1942
|
+
var getBusinessS3SignedUrl = function getBusinessS3SignedUrl(businessId, s3SignedUrlId, query, opts) {
|
|
1943
|
+
if (opts === void 0) {
|
|
1944
|
+
opts = {};
|
|
1945
|
+
}
|
|
1946
|
+
|
|
1947
|
+
doesParamExist.default({
|
|
1948
|
+
businessId: businessId,
|
|
1949
|
+
s3SignedUrlId: s3SignedUrlId
|
|
1950
|
+
}, opts.hyperMediaEndpoint);
|
|
1951
|
+
return request(_objectSpread$5({}, opts, {
|
|
1952
|
+
path: pathGetBusinessS3SignedUrl(businessId, s3SignedUrlId)
|
|
1953
|
+
}), {
|
|
1954
|
+
method: 'get',
|
|
1955
|
+
params: query
|
|
1956
|
+
});
|
|
1957
|
+
};
|
|
1958
|
+
|
|
2002
1959
|
var attachments = /*#__PURE__*/Object.freeze({
|
|
2003
1960
|
__proto__: null,
|
|
2004
1961
|
pathGetClaimAttachmentUrl: pathGetClaimAttachmentUrl,
|
|
2005
1962
|
pathGetS3SignedUrl: pathGetS3SignedUrl,
|
|
2006
1963
|
pathScanClaimFile: pathScanClaimFile,
|
|
1964
|
+
pathScanFile: pathScanFile,
|
|
1965
|
+
pathGetAttachmentUrl: pathGetAttachmentUrl,
|
|
1966
|
+
pathGetBusinessS3SignedUrl: pathGetBusinessS3SignedUrl,
|
|
2007
1967
|
getClaimAttachmentUrl: getClaimAttachmentUrl,
|
|
2008
1968
|
scanClaimFile: scanClaimFile,
|
|
2009
|
-
getS3SignedUrl: getS3SignedUrl
|
|
1969
|
+
getS3SignedUrl: getS3SignedUrl,
|
|
1970
|
+
scanFile: scanFile,
|
|
1971
|
+
getAttachmentUrl: getAttachmentUrl,
|
|
1972
|
+
getBusinessS3SignedUrl: getBusinessS3SignedUrl
|
|
2010
1973
|
});
|
|
2011
1974
|
|
|
2012
1975
|
function ownKeys$6(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -3850,6 +3813,10 @@ var pathGetBusinessBillingHistoryRecords = function pathGetBusinessBillingHistor
|
|
|
3850
3813
|
var pathGetBusinessBillingHistoryRecord = function pathGetBusinessBillingHistoryRecord(businessId, billingHistoryId) {
|
|
3851
3814
|
return "/businesses/" + businessId + "/billinghistories/" + billingHistoryId;
|
|
3852
3815
|
};
|
|
3816
|
+
|
|
3817
|
+
var pathGetOrgByHealthFundExists = function pathGetOrgByHealthFundExists(businessId) {
|
|
3818
|
+
return "/businesses/" + businessId + "/orgexists";
|
|
3819
|
+
};
|
|
3853
3820
|
/**
|
|
3854
3821
|
* Create businesses
|
|
3855
3822
|
* @param {Object} body - Request body
|
|
@@ -4423,6 +4390,27 @@ var suspendBusiness = function suspendBusiness(businessId, body, opts) {
|
|
|
4423
4390
|
});
|
|
4424
4391
|
};
|
|
4425
4392
|
|
|
4393
|
+
/**
|
|
4394
|
+
* Search if the business exists for a healthfund
|
|
4395
|
+
* @param {String} businessId - Business ID
|
|
4396
|
+
* @param {Object} opts - Additional options
|
|
4397
|
+
*/
|
|
4398
|
+
var getOrgByHealthFundExists = function getOrgByHealthFundExists(businessId, query, opts) {
|
|
4399
|
+
if (opts === void 0) {
|
|
4400
|
+
opts = {};
|
|
4401
|
+
}
|
|
4402
|
+
|
|
4403
|
+
doesParamExist.default({
|
|
4404
|
+
businessId: businessId
|
|
4405
|
+
}, opts.hyperMediaEndpoint);
|
|
4406
|
+
return request(_objectSpread$e({}, opts, {
|
|
4407
|
+
path: pathGetOrgByHealthFundExists(businessId)
|
|
4408
|
+
}), {
|
|
4409
|
+
method: 'get',
|
|
4410
|
+
params: query
|
|
4411
|
+
});
|
|
4412
|
+
};
|
|
4413
|
+
|
|
4426
4414
|
var businesses = /*#__PURE__*/Object.freeze({
|
|
4427
4415
|
__proto__: null,
|
|
4428
4416
|
createBusiness: createBusiness,
|
|
@@ -4449,7 +4437,8 @@ var businesses = /*#__PURE__*/Object.freeze({
|
|
|
4449
4437
|
createSupportNote: createSupportNote,
|
|
4450
4438
|
getBsbDetails: getBsbDetails,
|
|
4451
4439
|
sendBusinessEmail: sendBusinessEmail,
|
|
4452
|
-
suspendBusiness: suspendBusiness
|
|
4440
|
+
suspendBusiness: suspendBusiness,
|
|
4441
|
+
getOrgByHealthFundExists: getOrgByHealthFundExists
|
|
4453
4442
|
});
|
|
4454
4443
|
|
|
4455
4444
|
function ownKeys$f(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -21511,6 +21500,95 @@ var uploadKycTrustDocumentToS3 = /*#__PURE__*/function () {
|
|
|
21511
21500
|
return _ref8.apply(this, arguments);
|
|
21512
21501
|
};
|
|
21513
21502
|
}();
|
|
21503
|
+
/**
|
|
21504
|
+
* Upload attachment to S3
|
|
21505
|
+
* @param {String} businessId - Business ID
|
|
21506
|
+
* @param {String} healthFundId - Health fund ID
|
|
21507
|
+
* @param {File} file - File
|
|
21508
|
+
*/
|
|
21509
|
+
|
|
21510
|
+
var uploadAttachmentToS3 = /*#__PURE__*/function () {
|
|
21511
|
+
var _ref9 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee9(businessId, healthFundId, file, opts) {
|
|
21512
|
+
var awsAxios, _yield$getAttachmentU, signedPost, s3Url, s3SignedUrlId, bodyFormData, key;
|
|
21513
|
+
|
|
21514
|
+
return _regeneratorRuntime.wrap(function _callee9$(_context9) {
|
|
21515
|
+
while (1) {
|
|
21516
|
+
switch (_context9.prev = _context9.next) {
|
|
21517
|
+
case 0:
|
|
21518
|
+
awsAxios = axios.create();
|
|
21519
|
+
|
|
21520
|
+
if (businessId) {
|
|
21521
|
+
_context9.next = 3;
|
|
21522
|
+
break;
|
|
21523
|
+
}
|
|
21524
|
+
|
|
21525
|
+
throw new paramError.default('businessId');
|
|
21526
|
+
|
|
21527
|
+
case 3:
|
|
21528
|
+
if (healthFundId) {
|
|
21529
|
+
_context9.next = 5;
|
|
21530
|
+
break;
|
|
21531
|
+
}
|
|
21532
|
+
|
|
21533
|
+
throw new paramError.default('healthFundId');
|
|
21534
|
+
|
|
21535
|
+
case 5:
|
|
21536
|
+
if (file) {
|
|
21537
|
+
_context9.next = 7;
|
|
21538
|
+
break;
|
|
21539
|
+
}
|
|
21540
|
+
|
|
21541
|
+
throw new paramError.default('file');
|
|
21542
|
+
|
|
21543
|
+
case 7:
|
|
21544
|
+
_context9.prev = 7;
|
|
21545
|
+
_context9.next = 10;
|
|
21546
|
+
return getAttachmentUrl(businessId, {
|
|
21547
|
+
contentType: file.type,
|
|
21548
|
+
fileName: file.name,
|
|
21549
|
+
healthFundId: healthFundId,
|
|
21550
|
+
contentLength: file.size
|
|
21551
|
+
}, opts);
|
|
21552
|
+
|
|
21553
|
+
case 10:
|
|
21554
|
+
_yield$getAttachmentU = _context9.sent;
|
|
21555
|
+
signedPost = _yield$getAttachmentU.signedPost;
|
|
21556
|
+
s3Url = _yield$getAttachmentU.s3Url;
|
|
21557
|
+
s3SignedUrlId = _yield$getAttachmentU.s3SignedUrlId;
|
|
21558
|
+
// eslint-disable-next-line
|
|
21559
|
+
bodyFormData = new FormData();
|
|
21560
|
+
|
|
21561
|
+
for (key in signedPost.fields) {
|
|
21562
|
+
bodyFormData.append(key, signedPost.fields[key]);
|
|
21563
|
+
}
|
|
21564
|
+
|
|
21565
|
+
bodyFormData.append('file', file);
|
|
21566
|
+
_context9.next = 19;
|
|
21567
|
+
return awsAxios.post(signedPost.url, bodyFormData);
|
|
21568
|
+
|
|
21569
|
+
case 19:
|
|
21570
|
+
return _context9.abrupt("return", {
|
|
21571
|
+
s3Url: s3Url,
|
|
21572
|
+
s3SignedUrlId: s3SignedUrlId
|
|
21573
|
+
});
|
|
21574
|
+
|
|
21575
|
+
case 22:
|
|
21576
|
+
_context9.prev = 22;
|
|
21577
|
+
_context9.t0 = _context9["catch"](7);
|
|
21578
|
+
throw _context9.t0;
|
|
21579
|
+
|
|
21580
|
+
case 25:
|
|
21581
|
+
case "end":
|
|
21582
|
+
return _context9.stop();
|
|
21583
|
+
}
|
|
21584
|
+
}
|
|
21585
|
+
}, _callee9, null, [[7, 22]]);
|
|
21586
|
+
}));
|
|
21587
|
+
|
|
21588
|
+
return function uploadAttachmentToS3(_x30, _x31, _x32, _x33) {
|
|
21589
|
+
return _ref9.apply(this, arguments);
|
|
21590
|
+
};
|
|
21591
|
+
}();
|
|
21514
21592
|
|
|
21515
21593
|
var aws = /*#__PURE__*/Object.freeze({
|
|
21516
21594
|
__proto__: null,
|
|
@@ -21521,7 +21599,8 @@ var aws = /*#__PURE__*/Object.freeze({
|
|
|
21521
21599
|
uploadBusinessStaffMemberImageToS3: uploadBusinessStaffMemberImageToS3,
|
|
21522
21600
|
uploadInvoiceScanToS3: uploadInvoiceScanToS3,
|
|
21523
21601
|
uploadBulkUploadCSVToS3: uploadBulkUploadCSVToS3,
|
|
21524
|
-
uploadKycTrustDocumentToS3: uploadKycTrustDocumentToS3
|
|
21602
|
+
uploadKycTrustDocumentToS3: uploadKycTrustDocumentToS3,
|
|
21603
|
+
uploadAttachmentToS3: uploadAttachmentToS3
|
|
21525
21604
|
});
|
|
21526
21605
|
|
|
21527
21606
|
function ownKeys$1e(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -22334,7 +22413,9 @@ function _parseProviderSet() {
|
|
|
22334
22413
|
practiceIds = providerSet.map(function (providerData) {
|
|
22335
22414
|
return providerData.practiceId;
|
|
22336
22415
|
});
|
|
22337
|
-
uniquePracticeIds = _uniq(practiceIds).filter(Boolean)
|
|
22416
|
+
uniquePracticeIds = _uniq(practiceIds).filter(Boolean).filter(function (practiceId) {
|
|
22417
|
+
return !!practiceId;
|
|
22418
|
+
});
|
|
22338
22419
|
practices = [];
|
|
22339
22420
|
_context.next = 5;
|
|
22340
22421
|
return Promise.all(uniquePracticeIds.map(function (practiceId) {
|
|
@@ -22670,7 +22751,6 @@ exports.deployService = deployService;
|
|
|
22670
22751
|
exports.devices = devices;
|
|
22671
22752
|
exports.disableAccount = disableAccount;
|
|
22672
22753
|
exports.disableBusiness = disableBusiness;
|
|
22673
|
-
exports.disableTwoFactorAuthentication = disableTwoFactorAuthentication;
|
|
22674
22754
|
exports.discoverMember = discoverMember;
|
|
22675
22755
|
exports.discoverMember$1 = discoverMember$1;
|
|
22676
22756
|
exports.docAccounts = docAccounts;
|
|
@@ -22679,7 +22759,6 @@ exports.emailBusinessOnboardingQuestions = emailBusinessOnboardingQuestions;
|
|
|
22679
22759
|
exports.emails = emails;
|
|
22680
22760
|
exports.enableAccount = enableAccount;
|
|
22681
22761
|
exports.enableBusiness = enableBusiness;
|
|
22682
|
-
exports.enableTwoFactorAuthentication = enableTwoFactorAuthentication;
|
|
22683
22762
|
exports.fetchLatestAppVersion = fetchLatestAppVersion;
|
|
22684
22763
|
exports.fetchMinimumAppVerson = fetchMinimumAppVerson;
|
|
22685
22764
|
exports.filterOptions = filterOptions;
|
|
@@ -22710,6 +22789,7 @@ exports.getAction = getAction;
|
|
|
22710
22789
|
exports.getActions = getActions;
|
|
22711
22790
|
exports.getApplication = getApplication;
|
|
22712
22791
|
exports.getApplications = getApplications;
|
|
22792
|
+
exports.getAttachmentUrl = getAttachmentUrl;
|
|
22713
22793
|
exports.getBlacklistedBankAccounts = getBlacklistedBankAccounts;
|
|
22714
22794
|
exports.getBsbDetails = getBsbDetails;
|
|
22715
22795
|
exports.getBulkUpload = getBulkUpload;
|
|
@@ -22780,6 +22860,7 @@ exports.getBusinessProducts = getBusinessProducts;
|
|
|
22780
22860
|
exports.getBusinessProfessionalCategories = getBusinessProfessionalCategories;
|
|
22781
22861
|
exports.getBusinessRNA = getBusinessRNA;
|
|
22782
22862
|
exports.getBusinessRNAs = getBusinessRNAs;
|
|
22863
|
+
exports.getBusinessS3SignedUrl = getBusinessS3SignedUrl;
|
|
22783
22864
|
exports.getBusinessSalesClientToken = getBusinessSalesClientToken;
|
|
22784
22865
|
exports.getBusinessService = getBusinessService;
|
|
22785
22866
|
exports.getBusinessServiceStaffMembers = getBusinessServiceStaffMembers;
|
|
@@ -22872,6 +22953,7 @@ exports.getMySelfCheckoutSession = getMySelfCheckoutSession;
|
|
|
22872
22953
|
exports.getMySelfCheckoutSessionTransaction = getMySelfCheckoutSessionTransaction;
|
|
22873
22954
|
exports.getNonce = getNonce;
|
|
22874
22955
|
exports.getOnboardingRequest = getOnboardingRequest;
|
|
22956
|
+
exports.getOrgByHealthFundExists = getOrgByHealthFundExists;
|
|
22875
22957
|
exports.getOrganisationAccounts = getOrganisationAccounts;
|
|
22876
22958
|
exports.getOrganisationBusinessProfiles = getOrganisationBusinessProfiles;
|
|
22877
22959
|
exports.getOrganisationBusinesses = getOrganisationBusinesses;
|
|
@@ -23029,6 +23111,8 @@ exports.pathFunderValues = pathFunderValues;
|
|
|
23029
23111
|
exports.pathFunderValuesById = pathFunderValuesById;
|
|
23030
23112
|
exports.pathFuture = pathFuture;
|
|
23031
23113
|
exports.pathGetAbr = pathGetAbr;
|
|
23114
|
+
exports.pathGetAttachmentUrl = pathGetAttachmentUrl;
|
|
23115
|
+
exports.pathGetBusinessS3SignedUrl = pathGetBusinessS3SignedUrl;
|
|
23032
23116
|
exports.pathGetClaimAttachmentUrl = pathGetClaimAttachmentUrl;
|
|
23033
23117
|
exports.pathGetDraftProgressStatus = pathGetDraftProgressStatus;
|
|
23034
23118
|
exports.pathGetHealthFundTransactionExport = pathGetHealthFundTransactionExport;
|
|
@@ -23095,6 +23179,7 @@ exports.pathRequestVerificationSupport = pathRequestVerificationSupport;
|
|
|
23095
23179
|
exports.pathResetTerminal = pathResetTerminal;
|
|
23096
23180
|
exports.pathResumeComplexVerification = pathResumeComplexVerification;
|
|
23097
23181
|
exports.pathScanClaimFile = pathScanClaimFile;
|
|
23182
|
+
exports.pathScanFile = pathScanFile;
|
|
23098
23183
|
exports.pathSendReceipt = pathSendReceipt;
|
|
23099
23184
|
exports.pathSendWorkerMessage = pathSendWorkerMessage;
|
|
23100
23185
|
exports.pathSignUp = pathSignUp;
|
|
@@ -23168,6 +23253,7 @@ exports.saveDraft = saveDraft;
|
|
|
23168
23253
|
exports.saveDraftEclipseInPatientInvoice = saveDraftEclipseInPatientInvoice;
|
|
23169
23254
|
exports.saveDraftEclipseOverseasInvoice = saveDraftEclipseOverseasInvoice;
|
|
23170
23255
|
exports.scanClaimFile = scanClaimFile;
|
|
23256
|
+
exports.scanFile = scanFile;
|
|
23171
23257
|
exports.scoreAndSaveTransaction = scoreAndSaveTransaction;
|
|
23172
23258
|
exports.sdk = sdkClient;
|
|
23173
23259
|
exports.sdkClient = sdkClient;
|
|
@@ -23260,7 +23346,7 @@ exports.updateService = updateService;
|
|
|
23260
23346
|
exports.updateStaffProviderSetItem = updateStaffProviderSetItem;
|
|
23261
23347
|
exports.updateTerminal = updateTerminal;
|
|
23262
23348
|
exports.updateTransaction = updateTransaction;
|
|
23263
|
-
exports.
|
|
23349
|
+
exports.uploadAttachmentToS3 = uploadAttachmentToS3;
|
|
23264
23350
|
exports.uploadBulkUploadCSVToS3 = uploadBulkUploadCSVToS3;
|
|
23265
23351
|
exports.uploadBusinessPracticeImageToS3 = uploadBusinessPracticeImageToS3;
|
|
23266
23352
|
exports.uploadBusinessStaffMemberImageToS3 = uploadBusinessStaffMemberImageToS3;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { COUNTRY_CODES } from '../utils/regions';
|
|
2
2
|
export * from './abr';
|
|
3
3
|
export * from './blacklist-bank-account';
|
|
4
|
+
export * from './business';
|
|
4
5
|
export * from './device';
|
|
5
6
|
export * from './documents';
|
|
6
7
|
export * from './filter-option';
|
|
@@ -16,9 +17,10 @@ export * from './provider-number-type';
|
|
|
16
17
|
export * from './provider-registration-type';
|
|
17
18
|
export * from './provider-registration';
|
|
18
19
|
export * from './provider-set-item';
|
|
20
|
+
export * from './staff-member';
|
|
19
21
|
export * from './specialty';
|
|
20
22
|
export * from './subscriptions';
|
|
21
|
-
export * from './
|
|
23
|
+
export * from './virus-scan';
|
|
22
24
|
export declare type MedipassRequestOpts = {
|
|
23
25
|
baseUrl?: string;
|
|
24
26
|
hyperMediaEndpoint?: string | null | undefined;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface VirusScan {
|
|
2
|
+
_id: string;
|
|
3
|
+
accountId: string;
|
|
4
|
+
healthFundId: string;
|
|
5
|
+
businessId: string;
|
|
6
|
+
s3Bucket: string;
|
|
7
|
+
s3Key: string;
|
|
8
|
+
antiVirusStatus: string;
|
|
9
|
+
antiVirusTimestamp: string;
|
|
10
|
+
viruses: string[];
|
|
11
|
+
created: string;
|
|
12
|
+
modified: string;
|
|
13
|
+
}
|
package/lib/utils/application.js
CHANGED
|
@@ -14,7 +14,7 @@ require('lodash/forOwn');
|
|
|
14
14
|
require('lodash/get');
|
|
15
15
|
require('@medipass/utils/sentry');
|
|
16
16
|
require('./get-axios-error.js');
|
|
17
|
-
var request = require('../staff-
|
|
17
|
+
var request = require('../staff-edec8e01.js');
|
|
18
18
|
require('@babel/runtime/helpers/inheritsLoose');
|
|
19
19
|
require('@babel/runtime/helpers/wrapNativeSuper');
|
|
20
20
|
require('./param-error.js');
|
package/lib/utils/professions.js
CHANGED
|
@@ -14,7 +14,7 @@ require('lodash/forOwn');
|
|
|
14
14
|
require('lodash/get');
|
|
15
15
|
require('@medipass/utils/sentry');
|
|
16
16
|
require('./get-axios-error.js');
|
|
17
|
-
var request = require('../staff-
|
|
17
|
+
var request = require('../staff-edec8e01.js');
|
|
18
18
|
require('@babel/runtime/helpers/inheritsLoose');
|
|
19
19
|
require('@babel/runtime/helpers/wrapNativeSuper');
|
|
20
20
|
require('./param-error.js');
|
package/lib/utils/request.js
CHANGED
|
@@ -14,7 +14,7 @@ require('lodash/forOwn');
|
|
|
14
14
|
require('lodash/get');
|
|
15
15
|
require('@medipass/utils/sentry');
|
|
16
16
|
require('./get-axios-error.js');
|
|
17
|
-
var request = require('../staff-
|
|
17
|
+
var request = require('../staff-edec8e01.js');
|
|
18
18
|
require('@babel/runtime/helpers/inheritsLoose');
|
|
19
19
|
require('@babel/runtime/helpers/wrapNativeSuper');
|
|
20
20
|
require('./param-error.js');
|
package/lib/utils/staff.js
CHANGED
|
@@ -14,7 +14,7 @@ require('lodash/forOwn');
|
|
|
14
14
|
require('lodash/get');
|
|
15
15
|
require('@medipass/utils/sentry');
|
|
16
16
|
require('./get-axios-error.js');
|
|
17
|
-
var request = require('../staff-
|
|
17
|
+
var request = require('../staff-edec8e01.js');
|
|
18
18
|
require('@babel/runtime/helpers/inheritsLoose');
|
|
19
19
|
require('@babel/runtime/helpers/wrapNativeSuper');
|
|
20
20
|
require('./param-error.js');
|