@medipass/web-sdk 11.50.1-feature-healthpoint-upload-endpoints.1 → 11.50.1-feature-parse-provider-ts-support.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.
Files changed (104) hide show
  1. package/lib/index.js +1 -1
  2. package/lib/resources/abr.js +1 -1
  3. package/lib/resources/accounts.js +1 -1
  4. package/lib/resources/actions.js +1 -1
  5. package/lib/resources/api-keys.js +1 -1
  6. package/lib/resources/applications.js +1 -1
  7. package/lib/resources/attachments.d.ts +1 -35
  8. package/lib/resources/attachments.js +1 -7
  9. package/lib/resources/auth.js +1 -1
  10. package/lib/resources/blacklist.js +1 -1
  11. package/lib/resources/bulk-submits.js +1 -1
  12. package/lib/resources/bulk-uploads.js +1 -1
  13. package/lib/resources/business-profiles.js +1 -1
  14. package/lib/resources/businesses.js +1 -1
  15. package/lib/resources/claim-items.js +1 -1
  16. package/lib/resources/devices.js +1 -1
  17. package/lib/resources/doc-accounts.js +1 -1
  18. package/lib/resources/documents.js +1 -1
  19. package/lib/resources/emails.js +1 -1
  20. package/lib/resources/filter-options.js +1 -1
  21. package/lib/resources/form-application-templates.js +1 -1
  22. package/lib/resources/form-applications.js +1 -1
  23. package/lib/resources/forms.js +1 -1
  24. package/lib/resources/funder-services.js +1 -1
  25. package/lib/resources/funder-settings.js +1 -1
  26. package/lib/resources/funder-values.js +1 -1
  27. package/lib/resources/funders.js +1 -1
  28. package/lib/resources/futures.js +1 -1
  29. package/lib/resources/health-fund-accounts.js +1 -1
  30. package/lib/resources/health-fund-settings.js +1 -1
  31. package/lib/resources/healthfunds.js +1 -1
  32. package/lib/resources/icditems.js +1 -1
  33. package/lib/resources/invoice-scans.js +1 -1
  34. package/lib/resources/jhcs.js +1 -1
  35. package/lib/resources/kyc.js +1 -1
  36. package/lib/resources/logs.js +1 -1
  37. package/lib/resources/members.js +1 -1
  38. package/lib/resources/message-mappings.js +1 -1
  39. package/lib/resources/minions.js +1 -1
  40. package/lib/resources/modalities.js +1 -1
  41. package/lib/resources/notes.js +1 -1
  42. package/lib/resources/onboarding-applications.js +1 -1
  43. package/lib/resources/onboarding-requests.js +1 -1
  44. package/lib/resources/ops.js +1 -1
  45. package/lib/resources/organisations.js +1 -1
  46. package/lib/resources/partners.js +1 -1
  47. package/lib/resources/patients.js +1 -1
  48. package/lib/resources/payments.js +1 -1
  49. package/lib/resources/pms.js +1 -1
  50. package/lib/resources/practice-profiles.js +1 -1
  51. package/lib/resources/practice-types.js +1 -1
  52. package/lib/resources/practices.js +1 -1
  53. package/lib/resources/products.js +1 -1
  54. package/lib/resources/professional-categories.d.ts +2 -2
  55. package/lib/resources/professional-categories.js +1 -1
  56. package/lib/resources/provider-number-types.js +1 -1
  57. package/lib/resources/provider-registration-types.js +1 -1
  58. package/lib/resources/provider-requests.js +1 -1
  59. package/lib/resources/provider-types.js +1 -1
  60. package/lib/resources/ref-sources.js +1 -1
  61. package/lib/resources/risk.js +1 -1
  62. package/lib/resources/rnas.js +1 -1
  63. package/lib/resources/roles.js +1 -1
  64. package/lib/resources/self-checkout-sessions.js +1 -1
  65. package/lib/resources/services.js +1 -1
  66. package/lib/resources/settlements.js +1 -1
  67. package/lib/resources/sign-up.js +1 -1
  68. package/lib/resources/specialties.d.ts +2 -2
  69. package/lib/resources/specialties.js +1 -1
  70. package/lib/resources/staff-profiles.js +1 -1
  71. package/lib/resources/staff.js +1 -1
  72. package/lib/resources/statistics.js +1 -1
  73. package/lib/resources/subscriptions.js +1 -1
  74. package/lib/resources/terminals.js +1 -1
  75. package/lib/resources/transaction-export.js +1 -1
  76. package/lib/resources/transactions.js +1 -1
  77. package/lib/resources/triggers.js +1 -1
  78. package/lib/resources/vendors.js +1 -1
  79. package/lib/resources/verify.js +1 -1
  80. package/lib/resources/workers.js +1 -1
  81. package/lib/resources/workflow-exceptions.js +1 -1
  82. package/lib/services/aws.d.ts +0 -10
  83. package/lib/services/aws.js +1 -2
  84. package/lib/services/version.js +1 -1
  85. package/lib/{staff-fcff4468.js → staff-e0d846c9.js} +22 -219
  86. package/lib/types/funder.d.ts +1 -1
  87. package/lib/types/index.d.ts +3 -7
  88. package/lib/types/professional-category.d.ts +16 -0
  89. package/lib/types/provider-registration.d.ts +4 -10
  90. package/lib/types/provider-set-item.d.ts +8 -19
  91. package/lib/types/specialties.d.ts +1 -1
  92. package/lib/types/specialty.d.ts +17 -0
  93. package/lib/types/staff-member.d.ts +1 -1
  94. package/lib/utils/application.js +1 -1
  95. package/lib/utils/professions.d.ts +3 -3
  96. package/lib/utils/professions.js +1 -1
  97. package/lib/utils/request.js +1 -1
  98. package/lib/utils/staff.d.ts +5 -122
  99. package/lib/utils/staff.js +1 -1
  100. package/package.json +6 -5
  101. package/lib/types/professional-categories.d.ts +0 -21
  102. package/lib/types/professional-categories.js +0 -2
  103. package/lib/types/virus-scan.d.ts +0 -13
  104. package/lib/types/virus-scan.js +0 -2
@@ -1,127 +1,10 @@
1
+ import type { Funder, PaginatedResponse, ParsedProviderSetItem, ProviderNumberType, ProviderRegistration, ProviderRegistrationType, ProviderSetItem } from '../index';
1
2
  import * as professionsUtils from './professions';
2
- import type { Funder, PaginatedResponse, StaffMember, ProviderRegistrationType, ProviderNumberType, Practice, ProviderSetItem, ProviderRegistration } from 'types';
3
- export declare function parseProviderSet(providerSet: (ProviderSetItem | ProviderRegistration)[], { businessId, funders, providerRegistrationTypes, providerNumberTypes: _providerNumberTypes, parseProviderNumberType }: {
3
+ export declare function parseProviderSet(providerSet: ProviderSetItem[], { businessId, funders, providerRegistrationTypes, providerNumberTypes: _providerNumberTypes, parseProviderNumberType }: {
4
4
  businessId: string;
5
5
  funders?: Funder[];
6
- providerRegistrationTypes: PaginatedResponse<ProviderRegistrationType>;
6
+ providerRegistrationTypes?: PaginatedResponse<ProviderRegistrationType>;
7
7
  providerNumberTypes?: ProviderNumberType[];
8
8
  parseProviderNumberType?: boolean;
9
- }): Promise<({
10
- providerNumberType?: ProviderNumberType | undefined;
11
- funder: Funder;
12
- practice: Practice;
13
- professionalCategory: import("types").ProfessionalCategory | undefined;
14
- specialties: (import("types").Specialty | undefined)[];
15
- providerRegistrationType: ProviderRegistrationType | undefined;
16
- specialtyIds: string[];
17
- providerRegistrationTypeId: string;
18
- professionalCategoryId: string;
19
- providerNumber: string;
20
- } | {
21
- providerNumberType?: ProviderNumberType | undefined;
22
- funder: undefined;
23
- practice: Practice;
24
- professionalCategory: import("types").ProfessionalCategory | undefined;
25
- specialties: (import("types").Specialty | undefined)[];
26
- providerRegistrationType: ProviderRegistrationType | undefined;
27
- specialtyIds: string[];
28
- providerRegistrationTypeId: string;
29
- professionalCategoryId: string;
30
- providerNumber: string;
31
- } | {
32
- providerNumberType?: ProviderNumberType | undefined;
33
- funder: Funder;
34
- practice: undefined;
35
- professionalCategory: import("types").ProfessionalCategory | undefined;
36
- specialties: (import("types").Specialty | undefined)[];
37
- providerRegistrationType: ProviderRegistrationType | undefined;
38
- specialtyIds: string[];
39
- providerRegistrationTypeId: string;
40
- professionalCategoryId: string;
41
- providerNumber: string;
42
- } | {
43
- providerNumberType?: ProviderNumberType | undefined;
44
- funder: undefined;
45
- practice: undefined;
46
- professionalCategory: import("types").ProfessionalCategory | undefined;
47
- specialties: (import("types").Specialty | undefined)[];
48
- providerRegistrationType: ProviderRegistrationType | undefined;
49
- specialtyIds: string[];
50
- providerRegistrationTypeId: string;
51
- professionalCategoryId: string;
52
- providerNumber: string;
53
- } | {
54
- providerNumberType?: ProviderNumberType | undefined;
55
- funder: Funder;
56
- practice: Practice;
57
- professionalCategory: import("types").ProfessionalCategory | undefined;
58
- specialties: (import("types").Specialty | undefined)[];
59
- providerRegistrationType: ProviderRegistrationType | undefined;
60
- created: string;
61
- funderId: string;
62
- healthFundOverrides: string[];
63
- practiceId: string;
64
- professionalCategoryId: string;
65
- providerNumber: string;
66
- providerNumberTypeId?: string | undefined;
67
- specialtyIds: string[];
68
- status: string;
69
- statusHistory: string[];
70
- _id: string;
71
- } | {
72
- providerNumberType?: ProviderNumberType | undefined;
73
- funder: undefined;
74
- practice: Practice;
75
- professionalCategory: import("types").ProfessionalCategory | undefined;
76
- specialties: (import("types").Specialty | undefined)[];
77
- providerRegistrationType: ProviderRegistrationType | undefined;
78
- created: string;
79
- funderId: string;
80
- healthFundOverrides: string[];
81
- practiceId: string;
82
- professionalCategoryId: string;
83
- providerNumber: string;
84
- providerNumberTypeId?: string | undefined;
85
- specialtyIds: string[];
86
- status: string;
87
- statusHistory: string[];
88
- _id: string;
89
- } | {
90
- providerNumberType?: ProviderNumberType | undefined;
91
- funder: Funder;
92
- practice: undefined;
93
- professionalCategory: import("types").ProfessionalCategory | undefined;
94
- specialties: (import("types").Specialty | undefined)[];
95
- providerRegistrationType: ProviderRegistrationType | undefined;
96
- created: string;
97
- funderId: string;
98
- healthFundOverrides: string[];
99
- practiceId: string;
100
- professionalCategoryId: string;
101
- providerNumber: string;
102
- providerNumberTypeId?: string | undefined;
103
- specialtyIds: string[];
104
- status: string;
105
- statusHistory: string[];
106
- _id: string;
107
- } | {
108
- providerNumberType?: ProviderNumberType | undefined;
109
- funder: undefined;
110
- practice: undefined;
111
- professionalCategory: import("types").ProfessionalCategory | undefined;
112
- specialties: (import("types").Specialty | undefined)[];
113
- providerRegistrationType: ProviderRegistrationType | undefined;
114
- created: string;
115
- funderId: string;
116
- healthFundOverrides: string[];
117
- practiceId: string;
118
- professionalCategoryId: string;
119
- providerNumber: string;
120
- providerNumberTypeId?: string | undefined;
121
- specialtyIds: string[];
122
- status: string;
123
- statusHistory: string[];
124
- _id: string;
125
- })[]>;
126
- export declare type ParseProviderRegistrationResponse = ProviderRegistration[] & professionsUtils.ParseProfessionsResponse;
127
- export declare function parseProviderRegistrations(providerRegistrations: StaffMember['providerRegistrations'], opts?: {}): Promise<ParseProviderRegistrationResponse>;
9
+ }): Promise<ParsedProviderSetItem[]>;
10
+ export declare function parseProviderRegistrations(providerRegistrations: ProviderRegistration[], opts?: {}): Promise<ProviderRegistration[] & professionsUtils.ParseProfessionsResponse>;
@@ -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-fcff4468.js');
17
+ var request = require('../staff-e0d846c9.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.50.1-feature-healthpoint-upload-endpoints.1",
3
+ "version": "11.50.1-feature-parse-provider-ts-support.0",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -45,10 +45,11 @@
45
45
  },
46
46
  "devDependencies": {
47
47
  "@babel/plugin-transform-runtime": "7.8.3",
48
- "@medipass/utils": "^11.75.1-feature-healthpoint-upload-endpoints.0",
49
- "@types/jest": "29.2.6",
48
+ "@medipass/utils": "^11.75.0",
49
+ "@types/jest": "28.1.6",
50
+ "@types/mocha": "9.1.1",
50
51
  "@types/node": "18.7.1",
51
- "axios-mock-adapter": "1.21.2",
52
+ "axios-mock-adapter": "1.19.0",
52
53
  "query-string": "7.0.0",
53
54
  "rimraf": "^2.6.2",
54
55
  "typescript": "4.7.4"
@@ -56,5 +57,5 @@
56
57
  "resolutions": {
57
58
  "react-scripts/**/@typescript-eslint/eslint-plugin": "5.32.0"
58
59
  },
59
- "gitHead": "8bc0b3e5da1efbea95375e43cf677b911ef7da59"
60
+ "gitHead": "e1f29008d70f421b655c3c799f4304730a9f1baf"
60
61
  }
@@ -1,21 +0,0 @@
1
- import type { PaginationMeta, PaginatedQuery } from './index';
2
- /** START: Requests */
3
- export declare type GetProfessionalCategoriesQuery = PaginatedQuery & {
4
- searchText?: string;
5
- professionalCategoryIds?: string;
6
- };
7
- /** START: Requests */
8
- /** START: Responses */
9
- export declare type ProfessionalCategoryResponse = {
10
- _id: string;
11
- fullName: string;
12
- displayName: string;
13
- description: string;
14
- created: string;
15
- modified: string;
16
- };
17
- export declare type ProfessionalCategoriesResponse = {
18
- meta: PaginationMeta;
19
- items: Array<ProfessionalCategoryResponse>;
20
- };
21
- /** END: Responses */
@@ -1,2 +0,0 @@
1
- 'use strict';
2
-
@@ -1,13 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- 'use strict';
2
-