@medipass/web-sdk 11.49.4-feature-strict-mode.0 → 11.50.1-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/CHANGELOG.md +11 -0
- package/lib/index.js +1 -1
- package/lib/resources/abr.js +1 -1
- package/lib/resources/accounts.js +1 -1
- 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.js +1 -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-e842c318.js → staff-1637edec.js} +228 -58
- package/lib/types/funder.d.ts +10 -0
- package/lib/types/funder.js +2 -0
- package/lib/types/index.d.ts +12 -2
- package/lib/types/practice.d.ts +96 -0
- package/lib/types/practice.js +2 -0
- package/lib/types/professional-categories.d.ts +1 -0
- package/lib/types/professional-category.d.ts +6 -0
- package/lib/types/professional-category.js +2 -0
- package/lib/types/provider-number-type.d.ts +11 -0
- package/lib/types/provider-number-type.js +2 -0
- package/lib/types/provider-registration-type.d.ts +9 -0
- package/lib/types/provider-registration-type.js +2 -0
- package/lib/types/provider-registration.d.ts +19 -0
- package/lib/types/provider-registration.js +2 -0
- package/lib/types/provider-set-item.d.ts +51 -0
- package/lib/types/provider-set-item.js +2 -0
- package/lib/types/specialties.d.ts +1 -0
- package/lib/types/specialty.d.ts +7 -0
- package/lib/types/specialty.js +2 -0
- package/lib/types/staff-member.d.ts +50 -0
- package/lib/types/staff-member.js +2 -0
- 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.d.ts +9 -3
- package/lib/utils/professions.js +1 -1
- package/lib/utils/request.js +1 -1
- package/lib/utils/staff.d.ts +12 -8
- package/lib/utils/staff.js +1 -1
- package/package.json +5 -6
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ProviderNumberType, Practice, ProfessionalCategory, Specialty, Funder, ProviderRegistrationType } from 'types';
|
|
2
|
+
export interface ProviderRegistration {
|
|
3
|
+
specialtyIds: string[];
|
|
4
|
+
providerRegistrationTypeId: string;
|
|
5
|
+
professionalCategoryId: string;
|
|
6
|
+
providerNumber: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ParsedProviderRegistration {
|
|
9
|
+
providerNumberType?: ProviderNumberType | undefined;
|
|
10
|
+
practice: Practice;
|
|
11
|
+
funder: Funder;
|
|
12
|
+
professionalCategory?: ProfessionalCategory | undefined;
|
|
13
|
+
specialties?: (Specialty | undefined)[] | undefined;
|
|
14
|
+
providerRegistrationType?: ProviderRegistrationType | undefined;
|
|
15
|
+
specialtyIds: string[];
|
|
16
|
+
providerRegistrationTypeId: string;
|
|
17
|
+
professionalCategoryId: string;
|
|
18
|
+
providerNumber: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { ProviderNumberType, Practice, ProfessionalCategory, Specialty, Funder, ProviderRegistrationType } from 'types';
|
|
2
|
+
export interface ParsedProviderSetItem {
|
|
3
|
+
providerNumberType?: ProviderNumberType | undefined;
|
|
4
|
+
practice: Practice;
|
|
5
|
+
funder: Funder;
|
|
6
|
+
professionalCategory?: ProfessionalCategory | undefined;
|
|
7
|
+
specialties?: (Specialty | undefined)[] | undefined;
|
|
8
|
+
providerRegistrationType?: ProviderRegistrationType | undefined;
|
|
9
|
+
created: string;
|
|
10
|
+
funderId: string;
|
|
11
|
+
healthFundOverrides: string[];
|
|
12
|
+
practiceId: string;
|
|
13
|
+
professionalCategoryId: string;
|
|
14
|
+
providerNumber: string;
|
|
15
|
+
providerNumberTypeId?: string | undefined;
|
|
16
|
+
specialtyIds: string[];
|
|
17
|
+
status: string;
|
|
18
|
+
statusHistory: string[];
|
|
19
|
+
_id: string;
|
|
20
|
+
}
|
|
21
|
+
export interface ProviderSetItem {
|
|
22
|
+
created: string;
|
|
23
|
+
funderId: string;
|
|
24
|
+
healthFundOverrides: string[];
|
|
25
|
+
practiceId: string;
|
|
26
|
+
professionalCategoryId: string;
|
|
27
|
+
providerNumber: string;
|
|
28
|
+
providerNumberTypeId?: string;
|
|
29
|
+
specialtyIds: string[];
|
|
30
|
+
status: string;
|
|
31
|
+
statusHistory: string[];
|
|
32
|
+
_id: string;
|
|
33
|
+
}
|
|
34
|
+
export interface ProviderSetItemRequestBody {
|
|
35
|
+
funderId: string;
|
|
36
|
+
practiceId: string;
|
|
37
|
+
professionalCategoryId: string;
|
|
38
|
+
providerNumber: string;
|
|
39
|
+
specialtyIds: string[];
|
|
40
|
+
hicaps?: HicapsProviderSetAttributes;
|
|
41
|
+
}
|
|
42
|
+
export interface HicapsProviderSetAttributes {
|
|
43
|
+
address?: string;
|
|
44
|
+
addressPrefix?: string;
|
|
45
|
+
city?: string;
|
|
46
|
+
country?: string;
|
|
47
|
+
postcode?: string;
|
|
48
|
+
state?: string;
|
|
49
|
+
lnglat?: string[];
|
|
50
|
+
gmapsPlaceId?: string;
|
|
51
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { ProviderSetItem } from './provider-set-item';
|
|
2
|
+
import type { ProviderRegistration } from './provider-registration';
|
|
3
|
+
export declare type HealthFundOverride = {
|
|
4
|
+
healthFundId: string;
|
|
5
|
+
providerNumber: string;
|
|
6
|
+
};
|
|
7
|
+
export declare type StaffMember = {
|
|
8
|
+
serviceIds: string[];
|
|
9
|
+
practiceIds: string[];
|
|
10
|
+
worksAtPracticeIds: string[];
|
|
11
|
+
status: string;
|
|
12
|
+
_id: string;
|
|
13
|
+
firstName: string;
|
|
14
|
+
lastName: string;
|
|
15
|
+
email: string;
|
|
16
|
+
isProvider: boolean;
|
|
17
|
+
modified: string;
|
|
18
|
+
created: string;
|
|
19
|
+
organisationId: string;
|
|
20
|
+
businessId: string;
|
|
21
|
+
providerSet?: ProviderSetItem[];
|
|
22
|
+
providerRegistrations: ProviderRegistration[];
|
|
23
|
+
refId: string;
|
|
24
|
+
refSource: string;
|
|
25
|
+
hasAccount: boolean;
|
|
26
|
+
staffType: 'person';
|
|
27
|
+
description: string;
|
|
28
|
+
landline: string;
|
|
29
|
+
mobile: string;
|
|
30
|
+
_links: StaffLinks;
|
|
31
|
+
};
|
|
32
|
+
declare type StaffLinks = {
|
|
33
|
+
self: Links;
|
|
34
|
+
practices: Links;
|
|
35
|
+
services: Links;
|
|
36
|
+
staff: Links;
|
|
37
|
+
tranasctions: Links;
|
|
38
|
+
documents: Links;
|
|
39
|
+
subscriptions: Links;
|
|
40
|
+
paymentMethods: Links;
|
|
41
|
+
};
|
|
42
|
+
declare type Links = {
|
|
43
|
+
read?: string;
|
|
44
|
+
update?: string;
|
|
45
|
+
delete?: string;
|
|
46
|
+
updatePhoto?: string;
|
|
47
|
+
deleteEmail?: string;
|
|
48
|
+
changeEmail?: string;
|
|
49
|
+
};
|
|
50
|
+
export {};
|
|
@@ -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-1637edec.js');
|
|
18
18
|
require('@babel/runtime/helpers/inheritsLoose');
|
|
19
19
|
require('@babel/runtime/helpers/wrapNativeSuper');
|
|
20
20
|
require('./param-error.js');
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import type { PaginatedResponse, ProviderRegistrationType, Specialty, ProfessionalCategory, ProviderSetItem, ProviderRegistration } from 'types';
|
|
2
|
+
export declare type ParseProfessionsResponse = {
|
|
3
|
+
professionalCategory: ProfessionalCategory | undefined;
|
|
4
|
+
specialties: (Specialty | undefined)[];
|
|
5
|
+
providerRegistrationType: ProviderRegistrationType;
|
|
6
|
+
}[];
|
|
7
|
+
export declare function parseProfessions(registration: ProviderSetItem[] | ProviderRegistration[], { providerRegistrationTypes }?: {
|
|
8
|
+
providerRegistrationTypes?: PaginatedResponse<ProviderRegistrationType>;
|
|
9
|
+
}): Promise<ParseProfessionsResponse>;
|
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-1637edec.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-1637edec.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.d.ts
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import * as professionsUtils from './professions';
|
|
2
|
+
import type { Funder, PaginatedResponse, StaffMember, ProviderRegistrationType, ProviderNumberType, ProviderSetItem, ProviderRegistration, ParsedProviderSetItem, ParsedProviderRegistration } from 'types';
|
|
3
|
+
export declare type ParseProviderSetResponse = (ParsedProviderSetItem | ParsedProviderRegistration)[];
|
|
4
|
+
export declare function parseProviderSet(providerSet: ProviderSetItem[] | ProviderRegistration[], { businessId, funders, providerRegistrationTypes, providerNumberTypes: _providerNumberTypes, parseProviderNumberType }: {
|
|
5
|
+
businessId: string;
|
|
6
|
+
funders?: Funder[];
|
|
7
|
+
providerRegistrationTypes: PaginatedResponse<ProviderRegistrationType>;
|
|
8
|
+
providerNumberTypes?: ProviderNumberType[];
|
|
9
|
+
parseProviderNumberType?: boolean;
|
|
10
|
+
}): Promise<ParseProviderSetResponse>;
|
|
11
|
+
export declare type ParseProviderRegistrationResponse = ProviderRegistration[] & professionsUtils.ParseProfessionsResponse;
|
|
12
|
+
export declare function parseProviderRegistrations(providerRegistrations: StaffMember['providerRegistrations'], opts?: {}): Promise<ParseProviderRegistrationResponse>;
|
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-1637edec.js');
|
|
18
18
|
require('@babel/runtime/helpers/inheritsLoose');
|
|
19
19
|
require('@babel/runtime/helpers/wrapNativeSuper');
|
|
20
20
|
require('./param-error.js');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medipass/web-sdk",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.50.1-feature-healthpoint-upload-endpoints.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -45,11 +45,10 @@
|
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@babel/plugin-transform-runtime": "7.8.3",
|
|
48
|
-
"@medipass/utils": "^11.
|
|
49
|
-
"@types/jest": "
|
|
50
|
-
"@types/mocha": "9.1.1",
|
|
48
|
+
"@medipass/utils": "^11.75.1-feature-healthpoint-upload-endpoints.0",
|
|
49
|
+
"@types/jest": "29.2.6",
|
|
51
50
|
"@types/node": "18.7.1",
|
|
52
|
-
"axios-mock-adapter": "1.
|
|
51
|
+
"axios-mock-adapter": "1.21.2",
|
|
53
52
|
"query-string": "7.0.0",
|
|
54
53
|
"rimraf": "^2.6.2",
|
|
55
54
|
"typescript": "4.7.4"
|
|
@@ -57,5 +56,5 @@
|
|
|
57
56
|
"resolutions": {
|
|
58
57
|
"react-scripts/**/@typescript-eslint/eslint-plugin": "5.32.0"
|
|
59
58
|
},
|
|
60
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "4f66d6e60b5c40e376cd87f2380d9a9285bbce04"
|
|
61
60
|
}
|