@medipass/utils 11.70.0 → 11.71.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/.eslintignore +1 -0
- package/.eslintrc.cjs +3 -0
- package/CHANGELOG.md +11 -0
- package/{billable-items-01050ba2.js → billable-items-f8291b1e.js} +0 -0
- package/build-validation-schema.js +14 -1
- package/{businesses-e3a20604.js → businesses-2633ab9b.js} +0 -0
- package/chart.js +2 -0
- package/{forms-f06ca97e.js → forms-e1c51a53.js} +0 -0
- package/get-select-options.js +1 -0
- package/google-addresses.js +17 -7
- package/{health-fund-accounts-3cd8650f.js → health-fund-accounts-88eac93c.js} +0 -0
- package/{health-fund-settings-43327826.js → health-fund-settings-e7a0f2ec.js} +0 -0
- package/{health-funds-300facef.js → health-funds-7fea63a0.js} +0 -0
- package/intercom.js +7 -2
- package/lib/__tests__/get-env.test.d.ts +1 -0
- package/lib/__tests__/get-staff-type-display-name.test.d.ts +1 -0
- package/lib/__tests__/redux-actions.test.d.ts +1 -0
- package/lib/__tests__/redux-reducer.test.d.ts +1 -0
- package/lib/__tests__/validate.test.d.ts +1 -0
- package/lib/build-validation-schema.d.ts +149 -0
- package/lib/chart.d.ts +9 -0
- package/lib/claim-payment-status-formatted.d.ts +6 -0
- package/lib/claim-payment-status-icons.d.ts +4 -0
- package/lib/claim-payment-status-text-classes.d.ts +4 -0
- package/lib/constants.d.ts +325 -0
- package/lib/countries.d.ts +10 -0
- package/lib/datetime.d.ts +2 -0
- package/lib/document-types-formatted.d.ts +9 -0
- package/lib/document-types-icons.d.ts +4 -0
- package/lib/document-types-text-classes.d.ts +4 -0
- package/lib/documents/workflow-state-formatted-text-classes.d.ts +6 -0
- package/lib/documents/workflow-state-formatted.d.ts +6 -0
- package/lib/documents/workflow-state-icons.d.ts +5 -0
- package/lib/form-applications/assign-values-to-sections.d.ts +5 -0
- package/lib/funders.d.ts +20 -0
- package/lib/get-env.d.ts +22 -0
- package/lib/get-select-options.d.ts +9 -0
- package/lib/get-staff-type-display-name.d.ts +2 -0
- package/lib/google-addresses.d.ts +3 -0
- package/lib/i18n/index.d.ts +8 -0
- package/lib/i18n/translations.d.ts +28 -0
- package/lib/index.d.ts +47 -0
- package/lib/intercom.d.ts +16 -0
- package/lib/normalise-abn.d.ts +2 -0
- package/lib/parse-health-fund-card-fields.d.ts +2 -0
- package/lib/payment-options.d.ts +13 -0
- package/lib/products.d.ts +4 -0
- package/lib/redux-actions.d.ts +35 -0
- package/lib/redux-reducer.d.ts +24 -0
- package/lib/sanitise-url.d.ts +4 -0
- package/lib/scroll.d.ts +2 -0
- package/lib/sensitive-keys.d.ts +3 -0
- package/lib/sentry.d.ts +15 -0
- package/lib/service-items.d.ts +37 -0
- package/lib/status-icons.d.ts +4 -0
- package/lib/status-text-classes.d.ts +4 -0
- package/lib/test-framework/fixtures/accounts.d.ts +28 -0
- package/lib/test-framework/fixtures/billable-items.d.ts +17 -0
- package/lib/test-framework/fixtures/businesses.d.ts +43 -0
- package/lib/test-framework/fixtures/documents.d.ts +113 -0
- package/lib/test-framework/fixtures/form-application-templates.d.ts +66 -0
- package/lib/test-framework/fixtures/form-applications.d.ts +30 -0
- package/lib/test-framework/fixtures/forms.d.ts +41 -0
- package/lib/test-framework/fixtures/health-fund-accounts.d.ts +10 -0
- package/lib/test-framework/fixtures/health-fund-settings.d.ts +12 -0
- package/lib/test-framework/fixtures/health-funds.d.ts +90 -0
- package/lib/test-framework/fixtures/index.d.ts +39 -0
- package/lib/test-framework/fixtures/members.d.ts +43 -0
- package/lib/test-framework/fixtures/message-mappings.d.ts +19 -0
- package/lib/test-framework/fixtures/modalities.d.ts +9 -0
- package/lib/test-framework/fixtures/patients.d.ts +36 -0
- package/lib/test-framework/fixtures/payment-methods.d.ts +16 -0
- package/lib/test-framework/fixtures/practices.d.ts +105 -0
- package/lib/test-framework/fixtures/products.d.ts +46 -0
- package/lib/test-framework/fixtures/professional-categories.d.ts +9 -0
- package/lib/test-framework/fixtures/services.d.ts +93 -0
- package/lib/test-framework/fixtures/specialties.d.ts +10 -0
- package/lib/test-framework/fixtures/staff.d.ts +139 -0
- package/lib/test-framework/fixtures/subscriptions.d.ts +142 -0
- package/lib/test-framework/fixtures/transaction-reports.d.ts +156 -0
- package/lib/test-framework/fixtures/transactions.d.ts +1832 -0
- package/lib/test-framework/fixtures/workflow-exceptions.d.ts +25 -0
- package/lib/test-framework/react.d.ts +8 -0
- package/lib/transaction-details-by-funder.d.ts +33 -0
- package/lib/transaction-status-formatted.d.ts +9 -0
- package/lib/transaction-status-helpers.d.ts +20 -0
- package/lib/transaction-status-icons.d.ts +4 -0
- package/lib/transaction-status-text-classes.d.ts +4 -0
- package/lib/transaction-status.d.ts +1 -0
- package/lib/validate-form.d.ts +45 -0
- package/lib/validate.d.ts +15 -0
- package/lib/webpack-config.d.ts +4 -0
- package/lib/workflow-state-formatted-text-classes.d.ts +5 -0
- package/lib/workflow-state-formatted.d.ts +4 -0
- package/{members-cb4f73a9.js → members-8eb8d8d0.js} +0 -0
- package/{modalities-b360d521.js → modalities-2dfbea63.js} +0 -0
- package/package.json +9 -6
- package/{patients-2083dd9c.js → patients-dd3709c1.js} +0 -0
- package/{payment-methods-4fa2d01f.js → payment-methods-d36bc018.js} +0 -0
- package/{practices-3e703f22.js → practices-d6c480f1.js} +0 -0
- package/{products-bd313cb4.js → products-0a392564.js} +0 -0
- package/{professional-categories-e2e5284b.js → professional-categories-157d1767.js} +0 -0
- package/redux-actions.js +13 -3
- package/redux-reducer.js +1 -0
- package/sentry.js +3 -1
- package/service-items.js +5 -34
- package/{services-2e25cdac.js → services-f8480eba.js} +0 -0
- package/{specialties-7640b7e3.js → specialties-25fbb171.js} +0 -0
- package/{staff-990794cd.js → staff-646053b7.js} +0 -0
- package/{subscriptions-45c1321a.js → subscriptions-aef302aa.js} +0 -0
- package/test-framework/fixtures/billable-items.js +1 -1
- package/test-framework/fixtures/businesses.js +1 -1
- package/test-framework/fixtures/forms.js +1 -1
- package/test-framework/fixtures/health-fund-accounts.js +1 -1
- package/test-framework/fixtures/health-fund-settings.js +1 -1
- package/test-framework/fixtures/health-funds.js +1 -1
- package/test-framework/fixtures/index.js +18 -18
- package/test-framework/fixtures/members.js +1 -1
- package/test-framework/fixtures/modalities.js +1 -1
- package/test-framework/fixtures/patients.js +1 -1
- package/test-framework/fixtures/payment-methods.js +1 -1
- package/test-framework/fixtures/practices.js +1 -1
- package/test-framework/fixtures/products.js +1 -1
- package/test-framework/fixtures/professional-categories.js +1 -1
- package/test-framework/fixtures/services.js +1 -1
- package/test-framework/fixtures/specialties.js +1 -1
- package/test-framework/fixtures/staff.js +1 -1
- package/test-framework/fixtures/subscriptions.js +1 -1
- package/test-framework/fixtures/transactions.js +1 -1
- package/transaction-details-by-funder.js +1 -0
- package/transaction-status.js +2 -2
- package/{transactions-6e5fd92d.js → transactions-4a08e450.js} +0 -0
- package/tsconfig.json +32 -0
- package/validate-form.js +3 -3
- package/.eslintrc +0 -3
- package/blah.js +0 -2
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
export declare const ERROR_MESSAGES: {
|
|
2
|
+
INTERNET_ERROR: string;
|
|
3
|
+
NETWORK_ERROR: string;
|
|
4
|
+
SERVER_ERROR: string;
|
|
5
|
+
PAYMENT_GATEWAY_ERROR: string;
|
|
6
|
+
PAYMENT_ERROR: string;
|
|
7
|
+
PAYMENT_GATEWAY_FIELDS: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const ERROR_CODES: {
|
|
10
|
+
USERNAME_ALREADY_EXISTS: number;
|
|
11
|
+
PAYMENT_PROVIDER_PARAMETERS_INVALID: number;
|
|
12
|
+
ACCOUNT_DOES_NOT_HAVE_ACCESS_TO_CHECKOUT_SESSION: number;
|
|
13
|
+
CARD_FAILED: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const STANDALONE_ERRORS: {
|
|
16
|
+
noAPIKey: {
|
|
17
|
+
code: string;
|
|
18
|
+
message: string;
|
|
19
|
+
};
|
|
20
|
+
noAppID: {
|
|
21
|
+
code: string;
|
|
22
|
+
message: string;
|
|
23
|
+
};
|
|
24
|
+
providerNumberNotFound: {
|
|
25
|
+
code: string;
|
|
26
|
+
message: string;
|
|
27
|
+
};
|
|
28
|
+
providerNumberDoesNotMatchFunder: {
|
|
29
|
+
code: string;
|
|
30
|
+
message: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export declare const DOCUMENT_STATUSES: {
|
|
34
|
+
AVAILABLE: string;
|
|
35
|
+
PENDING: string;
|
|
36
|
+
ACTIVE: string;
|
|
37
|
+
};
|
|
38
|
+
export declare const DOCUMENT_TYPES: {
|
|
39
|
+
APPLICATION: string;
|
|
40
|
+
FORM: string;
|
|
41
|
+
};
|
|
42
|
+
export declare const DOCUMENT_WORKFLOW_STATES: {
|
|
43
|
+
INBOX: string;
|
|
44
|
+
ASSIGNED: string;
|
|
45
|
+
APPROVED: string;
|
|
46
|
+
DECLINED: string;
|
|
47
|
+
CANCELLED: string;
|
|
48
|
+
PARKED: string;
|
|
49
|
+
CEASED: string;
|
|
50
|
+
};
|
|
51
|
+
export declare const DOCUMENT_WORKFLOW_STATES_HUMANIZED: {
|
|
52
|
+
SUBMITTED: string;
|
|
53
|
+
UNDER_REVIEW: string;
|
|
54
|
+
APPROVED: string;
|
|
55
|
+
};
|
|
56
|
+
export declare const FORM_STATUSES: {
|
|
57
|
+
PUBLISHED: string;
|
|
58
|
+
DRAFT: string;
|
|
59
|
+
};
|
|
60
|
+
export declare const FORM_APPLICATION_STATUSES: {
|
|
61
|
+
PENDING: string;
|
|
62
|
+
APPROVED: string;
|
|
63
|
+
DECLINED: string;
|
|
64
|
+
CANCELLED: string;
|
|
65
|
+
};
|
|
66
|
+
export declare const FUNDERS: {
|
|
67
|
+
ADF: string;
|
|
68
|
+
COMCARE: string;
|
|
69
|
+
DVA: string;
|
|
70
|
+
ECLIPSE: string;
|
|
71
|
+
GARRISON: string;
|
|
72
|
+
HBF: string;
|
|
73
|
+
HEALTHPOINT: string;
|
|
74
|
+
HICAPS: string;
|
|
75
|
+
ICARE: string;
|
|
76
|
+
MEDICARE: string;
|
|
77
|
+
NIB: string;
|
|
78
|
+
NDIS: string;
|
|
79
|
+
OHC: string;
|
|
80
|
+
PATIENT: string;
|
|
81
|
+
WCQ: string;
|
|
82
|
+
WSV: string;
|
|
83
|
+
};
|
|
84
|
+
export declare const FUNDERS_FORMATTED: {
|
|
85
|
+
[x: string]: string;
|
|
86
|
+
};
|
|
87
|
+
export declare const FUTURE_STATUSES: {
|
|
88
|
+
ACTIVE: string;
|
|
89
|
+
PENDING: string;
|
|
90
|
+
COMPLETED: string;
|
|
91
|
+
CANCELLED: string;
|
|
92
|
+
DECLINED: string;
|
|
93
|
+
ERRORED: string;
|
|
94
|
+
};
|
|
95
|
+
export declare const FUTURE_TYPES: {
|
|
96
|
+
HOLD: string;
|
|
97
|
+
SUBSCRIPTION: string;
|
|
98
|
+
INSTALMENT_PLAN: string;
|
|
99
|
+
};
|
|
100
|
+
export declare const FUTURE_LABELS: {
|
|
101
|
+
hold: string;
|
|
102
|
+
subscription: string;
|
|
103
|
+
'instalment-plan': string;
|
|
104
|
+
};
|
|
105
|
+
export declare const EPISODE_INITIATOR_IDS: {
|
|
106
|
+
COMMONWEALTH: string;
|
|
107
|
+
EMERGENCY: string;
|
|
108
|
+
};
|
|
109
|
+
export declare const NO_EP_ID_REASON_IDS: {
|
|
110
|
+
ENTITLED_FAMILY_MEMBER: string;
|
|
111
|
+
FOREIGN_MEMBER: string;
|
|
112
|
+
CIVIC_ASSISTANCE: string;
|
|
113
|
+
OTHER: string;
|
|
114
|
+
};
|
|
115
|
+
export declare const GATEWAY_CODES: {
|
|
116
|
+
HICAPS_ERROR: string;
|
|
117
|
+
HICAPS_DOWN: string;
|
|
118
|
+
MEDICARE_DOWN: string;
|
|
119
|
+
};
|
|
120
|
+
export declare const AUS_STATES: string[];
|
|
121
|
+
export declare const PAYMENT_FACILITIES: {
|
|
122
|
+
HICAPS_GO: string;
|
|
123
|
+
MEDIPASS_PAYMENTS: string;
|
|
124
|
+
};
|
|
125
|
+
export declare const PAYMENT_PROVIDERS: {
|
|
126
|
+
GOOGLE_PAY: string;
|
|
127
|
+
APPLE_PAY: string;
|
|
128
|
+
PAYMENT_CARD: string;
|
|
129
|
+
};
|
|
130
|
+
export declare const PRODUCTS: {
|
|
131
|
+
BASIC: string;
|
|
132
|
+
PRO: string;
|
|
133
|
+
};
|
|
134
|
+
export declare const AVAILABLE_PRODUCTS: string[];
|
|
135
|
+
export declare const PRODUCT_FEATURES: {
|
|
136
|
+
CLAIMING_ADFHS: string;
|
|
137
|
+
CLAIMING_BRIDGE: string;
|
|
138
|
+
CLAIMING_COMCARE: string;
|
|
139
|
+
CLAIMING_GHS: string;
|
|
140
|
+
CLAIMING_ICARE: string;
|
|
141
|
+
CLAIMING_MEDICARE: string;
|
|
142
|
+
CLAIMING_NDIS: string;
|
|
143
|
+
CLAIMING_OHC: string;
|
|
144
|
+
CLAIMING_PHI: string;
|
|
145
|
+
CLAIMING_PHI_QUOTES: string;
|
|
146
|
+
CLAIMING_WCQ: string;
|
|
147
|
+
PAYMENTS_ASSISTED: string;
|
|
148
|
+
PAYMENTS_FULLY_PATIENT_FUNDED: string;
|
|
149
|
+
PMS_INTEGRATION: string;
|
|
150
|
+
REPORTING: string;
|
|
151
|
+
};
|
|
152
|
+
export declare const STATUSES: {
|
|
153
|
+
ACTIVE: string;
|
|
154
|
+
DISABLED: string;
|
|
155
|
+
NEW: string;
|
|
156
|
+
INVITED: string;
|
|
157
|
+
UNVERIFIED: string;
|
|
158
|
+
CANCELLED: string;
|
|
159
|
+
COMPLETED: string;
|
|
160
|
+
ERRORED: string;
|
|
161
|
+
PENDING: string;
|
|
162
|
+
EXPIRED: string;
|
|
163
|
+
};
|
|
164
|
+
export declare const BUSINESS_STATUSES: {
|
|
165
|
+
ACTIVE: string;
|
|
166
|
+
SUSPENDED: string;
|
|
167
|
+
};
|
|
168
|
+
export declare const PAYMENT_STATUSES: {
|
|
169
|
+
ACCEPTED: string;
|
|
170
|
+
APPROVED: string;
|
|
171
|
+
PAID: string;
|
|
172
|
+
PENDING: string;
|
|
173
|
+
SETTLING: string;
|
|
174
|
+
};
|
|
175
|
+
export declare const PAYMENT_TYPES: {
|
|
176
|
+
SALE: string;
|
|
177
|
+
REFUND: string;
|
|
178
|
+
IN_PERSON: string;
|
|
179
|
+
};
|
|
180
|
+
export declare const TERMINAL_TRANSACTION_PAYMENT_TYPES: {
|
|
181
|
+
CLAIM: string;
|
|
182
|
+
PAYMENT: string;
|
|
183
|
+
};
|
|
184
|
+
export declare const TRANSACTION_CLAIM_OPTIONS: {
|
|
185
|
+
TERMINAL: string;
|
|
186
|
+
PHONE: string;
|
|
187
|
+
GLASS: string;
|
|
188
|
+
};
|
|
189
|
+
export declare const TRANSACTION_PAYMENT_OPTIONS: {
|
|
190
|
+
PAYMENT_AUTHORITY: string;
|
|
191
|
+
PAY_IN_PERSON: string;
|
|
192
|
+
PROCESS_OUTSIDE_MEDIPASS: string;
|
|
193
|
+
TERMINAL: string;
|
|
194
|
+
PHONE: string;
|
|
195
|
+
EXISTING_PAYMENT_CARD: string;
|
|
196
|
+
NEW_PAYMENT_CARD: string;
|
|
197
|
+
PAYMENT_CARD: string;
|
|
198
|
+
APPLE_PAY: string;
|
|
199
|
+
GOOGLE_PAY: string;
|
|
200
|
+
LINK: string;
|
|
201
|
+
HOLD: string;
|
|
202
|
+
INSTALMENT_PLAN: string;
|
|
203
|
+
};
|
|
204
|
+
export declare const TRANSACTION_PLATFORM: {
|
|
205
|
+
FUNDER: string;
|
|
206
|
+
VIRTUAL_TERMINAL: string;
|
|
207
|
+
};
|
|
208
|
+
export declare const TRANSACTION_STATUSES: {
|
|
209
|
+
DISABLED: string;
|
|
210
|
+
ERRORED: string;
|
|
211
|
+
REQUESTED: string;
|
|
212
|
+
ACCEPTED: string;
|
|
213
|
+
APPROVED: string;
|
|
214
|
+
REJECTED: string;
|
|
215
|
+
REVERSED: string;
|
|
216
|
+
CANCELLED: string;
|
|
217
|
+
VOIDED: string;
|
|
218
|
+
SKIPPED: string;
|
|
219
|
+
REFUNDED: string;
|
|
220
|
+
PENDING: string;
|
|
221
|
+
NEW: string;
|
|
222
|
+
COMPLETED: string;
|
|
223
|
+
PARTIALLY_REFUNDED: string;
|
|
224
|
+
UNDER_REVIEW: string;
|
|
225
|
+
SUBMITTED: string;
|
|
226
|
+
OUTSTANDING: string;
|
|
227
|
+
DECLINED: string;
|
|
228
|
+
ARCHIVED: string;
|
|
229
|
+
PAID: string;
|
|
230
|
+
READY: string;
|
|
231
|
+
};
|
|
232
|
+
export declare const WORKFLOW_STATES: {
|
|
233
|
+
INBOX: string;
|
|
234
|
+
ASSIGNED: string;
|
|
235
|
+
PARKED: string;
|
|
236
|
+
SUBMITTED: string;
|
|
237
|
+
POSTED: string;
|
|
238
|
+
COMPLETED: string;
|
|
239
|
+
ERRORED: string;
|
|
240
|
+
ARCHIVED: string;
|
|
241
|
+
CANCELLED: string;
|
|
242
|
+
APPROVED: string;
|
|
243
|
+
ACCEPTED: string;
|
|
244
|
+
};
|
|
245
|
+
export declare const GARRISON_WORKFLOW_STATES_HUMANIZED: {
|
|
246
|
+
SUBMITTED: string;
|
|
247
|
+
UNDER_REVIEW: string;
|
|
248
|
+
ACCEPTED: string;
|
|
249
|
+
COMPLETED: string;
|
|
250
|
+
};
|
|
251
|
+
export declare const ICARE_WORKFLOW_STATES_HUMANIZED: {
|
|
252
|
+
SUBMITTED: string;
|
|
253
|
+
APPROVED: string;
|
|
254
|
+
COMPLETED: string;
|
|
255
|
+
REJECTED: string;
|
|
256
|
+
};
|
|
257
|
+
export declare const MEDICARE_FORMS: {
|
|
258
|
+
ONLINE_CLAIMING_PROVIDER_AGREEMENT: string;
|
|
259
|
+
};
|
|
260
|
+
export declare const HICAPS_FORMS: {
|
|
261
|
+
CLAIMING_PROVIDER_APPLICATION: string;
|
|
262
|
+
};
|
|
263
|
+
export declare const PMS: string[];
|
|
264
|
+
export declare const REGIONS: {
|
|
265
|
+
au: string;
|
|
266
|
+
uk: string;
|
|
267
|
+
};
|
|
268
|
+
export declare const VERIFY_MEMBER_HEALTH_FUNDS_CODES: string[];
|
|
269
|
+
export declare const INVOICE_ORIGINATING_FLOW: {
|
|
270
|
+
ALLIED_PHI: string;
|
|
271
|
+
COMCARE: string;
|
|
272
|
+
DVA: string;
|
|
273
|
+
HEALTHPOINT: string;
|
|
274
|
+
ICARE: string;
|
|
275
|
+
INSTALMENT_PLAN: string;
|
|
276
|
+
MEDICARE_BULK_BILLED: string;
|
|
277
|
+
MEDICARE_PATIENT_CLAIM: string;
|
|
278
|
+
NDIS: string;
|
|
279
|
+
NIB: string;
|
|
280
|
+
OVERSEAS_HEALTH_COVER: string;
|
|
281
|
+
PATIENT_FUNDED: string;
|
|
282
|
+
VIRTUAL_TERMINAL: string;
|
|
283
|
+
WORK_COVER_QUEENSLAND: string;
|
|
284
|
+
WORKSAFE_VICTORIA: string;
|
|
285
|
+
};
|
|
286
|
+
export declare const STAFF_TYPES: {
|
|
287
|
+
LOCATION: string;
|
|
288
|
+
PERSON: string;
|
|
289
|
+
};
|
|
290
|
+
export declare const ECLIPSE_SUB_TYPE: {
|
|
291
|
+
ONLINE_ELIGIBILITY_CHECK: string;
|
|
292
|
+
IN_PATIENT: string;
|
|
293
|
+
OVERSEAS: string;
|
|
294
|
+
};
|
|
295
|
+
export declare const ECLIPSE_ONLINE_ELIGIBILITY_CHECK_TYPES: {
|
|
296
|
+
MEDICARE_AND_PHI: string;
|
|
297
|
+
MEDICARE_ONLY: string;
|
|
298
|
+
FUND_ONLY: string;
|
|
299
|
+
OVERSEAS: string;
|
|
300
|
+
};
|
|
301
|
+
export declare const OEC_MEDICARE_AND_PHI_PROCESSING_CLASSES: {
|
|
302
|
+
AGREEMENTS: string;
|
|
303
|
+
SCHEMES: string;
|
|
304
|
+
PATIENT_CLAIM: string;
|
|
305
|
+
BILLING_AGENT: string;
|
|
306
|
+
};
|
|
307
|
+
export declare const OEC_OVERSEAS_PROCESSING_CLASSES: {
|
|
308
|
+
AGREEMENTS: string;
|
|
309
|
+
SCHEMES: string;
|
|
310
|
+
PATIENT_CLAIM: string;
|
|
311
|
+
BILLING_AGENT: string;
|
|
312
|
+
};
|
|
313
|
+
export declare const ECLIPSE_IN_PATIENT_CLAIM_TYPES: {
|
|
314
|
+
BILLING_AGENT: string;
|
|
315
|
+
BILLING_AGENT_MEDICARE_ONLY: string;
|
|
316
|
+
PATIENT_CLAIM: string;
|
|
317
|
+
AGREEMENTS: string;
|
|
318
|
+
SCHEMES: string;
|
|
319
|
+
};
|
|
320
|
+
export declare const ECLIPSE_OVERSEAS_CLAIM_TYPES: {
|
|
321
|
+
BILLING_AGENT: string;
|
|
322
|
+
PATIENT_CLAIM: string;
|
|
323
|
+
AGREEMENTS: string;
|
|
324
|
+
SCHEMES: string;
|
|
325
|
+
};
|
package/lib/funders.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const FUNDERS_WITH_ONBOARDING: string[];
|
|
2
|
+
export declare const CLAIMABLE_FUNDERS: string[];
|
|
3
|
+
export declare const getFunderCodeFromTransaction: (transaction: Record<string, any>, funderCode?: string) => string;
|
|
4
|
+
export declare const isADF: (funderCode: string) => boolean;
|
|
5
|
+
export declare const isComcare: (funderCode: string) => boolean;
|
|
6
|
+
export declare const isDVA: (funderCode: string) => boolean;
|
|
7
|
+
export declare const isEclipse: (funderCode: string) => boolean;
|
|
8
|
+
export declare const isGHS: (funderCode: string) => boolean;
|
|
9
|
+
export declare const isHBF: (funderCode: string) => boolean;
|
|
10
|
+
export declare const isHICAPS: (funderCode: string) => boolean;
|
|
11
|
+
export declare const isIcare: (funderCode: string) => boolean;
|
|
12
|
+
export declare const isHealthPoint: (funderCode: string) => boolean;
|
|
13
|
+
export declare const isMedicare: (funderCode: string) => boolean;
|
|
14
|
+
export declare const isNDIS: (funderCode: string) => boolean;
|
|
15
|
+
export declare const isNib: (funderCode: string) => boolean;
|
|
16
|
+
export declare const isOHC: (funderCode: string) => boolean;
|
|
17
|
+
export declare const isPatientFunded: (funderCode: string) => boolean;
|
|
18
|
+
export declare const isWCQ: (funderCode: string) => boolean;
|
|
19
|
+
export declare const isWSV: (funderCode: string) => boolean;
|
|
20
|
+
export declare const isFunderClaimable: (funderCode: string) => boolean;
|
package/lib/get-env.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
declare type Environment = {
|
|
2
|
+
_global: Record<string, any>;
|
|
3
|
+
local: Record<string, any>;
|
|
4
|
+
dev: Record<string, any>;
|
|
5
|
+
staging: Record<string, any>;
|
|
6
|
+
perf: Record<string, any>;
|
|
7
|
+
preprod: Record<string, any>;
|
|
8
|
+
prod: Record<string, any>;
|
|
9
|
+
};
|
|
10
|
+
export declare const REQUIRED_VARIABLES: string[];
|
|
11
|
+
declare class Env {
|
|
12
|
+
setup(env: Environment): void;
|
|
13
|
+
clear(): void;
|
|
14
|
+
}
|
|
15
|
+
declare const _default: Env;
|
|
16
|
+
export default _default;
|
|
17
|
+
export declare const ERROR_MESSAGE__INTERNET_ERROR: string;
|
|
18
|
+
export declare const ERROR_MESSAGE__NETWORK_ERROR: string;
|
|
19
|
+
export declare const ERROR_MESSAGE__SERVER_ERROR: string;
|
|
20
|
+
export declare const ERROR_MESSAGE__PAYMENT_GATEWAY_ERROR: string;
|
|
21
|
+
export declare const ERROR_MESSAGE__PAYMENT_ERROR: string;
|
|
22
|
+
export declare const ERROR_MESSAGE__PAYMENT_GATEWAY_FIELDS: string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const getSelectOptions: (values: any, labelKey: any, valueKey?: any, opts?: {}) => any;
|
|
2
|
+
export default getSelectOptions;
|
|
3
|
+
export declare const getNameMobileEmail: (value: Record<string, any>) => string;
|
|
4
|
+
export declare const getDisplayNameAndICDCode: (value: Record<string, any>) => string;
|
|
5
|
+
export declare const getFullName: (value: Record<string, any>) => string;
|
|
6
|
+
export declare const getSelectOptionsWithNameMobileEmail: (data: Array<Record<string, any>>) => any;
|
|
7
|
+
export declare const getSelectOptionsWithDisplayName: (data: Array<Record<string, any>>) => any;
|
|
8
|
+
export declare const getSelectOptionsWithDisplayNameAndICDCode: (data: Array<Record<string, any>>) => any;
|
|
9
|
+
export declare const getSelectOptionsWithFullName: (data: Array<Record<string, any>>) => any;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare const regionsList: string[];
|
|
2
|
+
declare const _default: {
|
|
3
|
+
$: {
|
|
4
|
+
au: string;
|
|
5
|
+
uk: string;
|
|
6
|
+
};
|
|
7
|
+
business: {
|
|
8
|
+
au: string;
|
|
9
|
+
uk: string;
|
|
10
|
+
};
|
|
11
|
+
Business: {
|
|
12
|
+
au: string;
|
|
13
|
+
uk: string;
|
|
14
|
+
};
|
|
15
|
+
'Business number': {
|
|
16
|
+
au: string;
|
|
17
|
+
uk: string;
|
|
18
|
+
};
|
|
19
|
+
'placeholders.businessNumber': {
|
|
20
|
+
au: string;
|
|
21
|
+
uk: string;
|
|
22
|
+
};
|
|
23
|
+
'fields.businessNumber': {
|
|
24
|
+
au: string;
|
|
25
|
+
uk: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export default _default;
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
chart: {
|
|
3
|
+
buildChartLabelsFromDataset: (dataset: any, labelKey: any, opts?: {}) => any;
|
|
4
|
+
buildDataPointsFromDataset: (dataset: any, dataKey: any) => any;
|
|
5
|
+
humanizePeriod: (period: any) => string;
|
|
6
|
+
};
|
|
7
|
+
claimPaymentStatusIcons: {
|
|
8
|
+
[x: string]: string;
|
|
9
|
+
};
|
|
10
|
+
claimPaymentStatusTextClasses: {
|
|
11
|
+
[x: string]: string;
|
|
12
|
+
};
|
|
13
|
+
getEnv: {
|
|
14
|
+
setup(env: {
|
|
15
|
+
_global: Record<string, any>;
|
|
16
|
+
local: Record<string, any>;
|
|
17
|
+
dev: Record<string, any>;
|
|
18
|
+
staging: Record<string, any>;
|
|
19
|
+
perf: Record<string, any>;
|
|
20
|
+
preprod: Record<string, any>;
|
|
21
|
+
prod: Record<string, any>;
|
|
22
|
+
}): void;
|
|
23
|
+
clear(): void;
|
|
24
|
+
};
|
|
25
|
+
getSelectOptions: (values: any, labelKey: any, valueKey?: any, opts?: {}) => any;
|
|
26
|
+
getStaffTypeDisplayName: (staffType: any) => any;
|
|
27
|
+
intercom: {};
|
|
28
|
+
sentry: {};
|
|
29
|
+
reduxActions: {};
|
|
30
|
+
reduxReducer: {};
|
|
31
|
+
sensitiveKeys: string[];
|
|
32
|
+
statusTextClasses: {
|
|
33
|
+
[x: string]: string;
|
|
34
|
+
};
|
|
35
|
+
transactionStatusHelpers: {};
|
|
36
|
+
transactionStatusTextClasses: {
|
|
37
|
+
[x: string]: string;
|
|
38
|
+
};
|
|
39
|
+
validate: {
|
|
40
|
+
isEmail: (email: any) => Promise<boolean>;
|
|
41
|
+
isNotEmpty: (value: any) => Promise<boolean>;
|
|
42
|
+
isNumber: (number: any) => Promise<boolean>;
|
|
43
|
+
isStringLength: (length: any, value: any) => Promise<boolean>;
|
|
44
|
+
isUrl: (value: any) => Promise<boolean>;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const bootIntercom: (data: any) => Promise<any>;
|
|
2
|
+
export declare const showNewMessage: (message: any) => any;
|
|
3
|
+
export declare const shutdownIntercom: () => any;
|
|
4
|
+
export declare const trackEvent: (name: any, data: any) => any;
|
|
5
|
+
export declare const trackCreateDVAInvoice: (data: any) => any;
|
|
6
|
+
export declare const trackCreateHICAPSInvoice: (data: any) => any;
|
|
7
|
+
export declare const trackCreateGarrisonInvoice: (data: any) => any;
|
|
8
|
+
export declare const trackCreateMedicareInvoice: (data: any) => any;
|
|
9
|
+
export declare const trackCreatePatientFundedInvoice: (data: any) => any;
|
|
10
|
+
export declare const trackCreateNDISInvoice: (data: any) => any;
|
|
11
|
+
export declare const trackCreateOHCInvoice: (data: any) => any;
|
|
12
|
+
export declare const trackCreateVirtualTerminalInvoice: (data: any) => any;
|
|
13
|
+
export declare const trackCreateQuote: (data: any) => any;
|
|
14
|
+
export declare const updateIntercom: (data: any) => any;
|
|
15
|
+
declare const _default: {};
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TRANSACTION_PAYMENT_OPTIONS } from './constants';
|
|
2
|
+
export { TRANSACTION_PAYMENT_OPTIONS as PAYMENT_OPTIONS };
|
|
3
|
+
export declare const isPaymentAuthority: (paymentOption: any) => boolean;
|
|
4
|
+
export declare const isExistingPaymentCard: (paymentOption: any) => boolean;
|
|
5
|
+
export declare const isNewPaymentCard: (paymentOption: any) => boolean;
|
|
6
|
+
export declare const isLink: (paymentOption: any) => boolean;
|
|
7
|
+
export declare const isPaymentCard: (paymentOption: any) => boolean;
|
|
8
|
+
export declare const isPayInPerson: (paymentOption: any) => boolean;
|
|
9
|
+
export declare const isProcessOutsideMedipass: (paymentOption: any) => boolean;
|
|
10
|
+
export declare const isSendToPhone: (paymentOption: any) => boolean;
|
|
11
|
+
export declare const isPaymentHold: (paymentOption: any) => boolean;
|
|
12
|
+
export declare const isInstalmentPlan: (paymentOption: any) => boolean;
|
|
13
|
+
export declare const isTerminal: (paymentOption: any) => boolean;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const getProductType: (product: Record<string, any>) => any;
|
|
2
|
+
export declare const isBusinessProduct: (product: Record<string, any>) => any;
|
|
3
|
+
export declare const isBasic: (product: Record<string, any>) => any;
|
|
4
|
+
export declare const isPro: (product: Record<string, any>) => any;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export declare const CLEAR_ALL_STATE = "CLEAR_ALL_STATE";
|
|
2
|
+
export declare const CLEAR_VALUE = "CLEAR_VALUE";
|
|
3
|
+
export declare const SET_VALUE = "SET_VALUE";
|
|
4
|
+
export declare const action: (type: any, payload?: {}) => {
|
|
5
|
+
type: any;
|
|
6
|
+
};
|
|
7
|
+
export declare const clear: (keys: any) => {
|
|
8
|
+
type: string;
|
|
9
|
+
keys: any;
|
|
10
|
+
};
|
|
11
|
+
export declare const set: (key: any, value: any) => {
|
|
12
|
+
type: string;
|
|
13
|
+
key: any;
|
|
14
|
+
value: any;
|
|
15
|
+
};
|
|
16
|
+
export declare const createRequestTypes: (base: any) => {};
|
|
17
|
+
export declare function clearAllState(): {
|
|
18
|
+
type: string;
|
|
19
|
+
};
|
|
20
|
+
export declare function receiveError(type: any, err: any): {
|
|
21
|
+
type: any;
|
|
22
|
+
err: any;
|
|
23
|
+
};
|
|
24
|
+
export declare function receiveSuccess(type: any, data: any): {
|
|
25
|
+
type: any;
|
|
26
|
+
data: any;
|
|
27
|
+
};
|
|
28
|
+
export declare function request(type: any, endpoint: any, data?: any): {
|
|
29
|
+
type: any;
|
|
30
|
+
endpoint: any;
|
|
31
|
+
data: any;
|
|
32
|
+
};
|
|
33
|
+
export declare const sdkActionCreator: (sdkAction: any, actions?: {}, funcs?: {}) => (dispatch: any) => Promise<any>;
|
|
34
|
+
declare const _default: {};
|
|
35
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare const request: (state: any, { isFetchingKey, hasFetchedKey, persistState }?: {
|
|
2
|
+
isFetchingKey?: string;
|
|
3
|
+
hasFetchedKey?: string;
|
|
4
|
+
persistState?: boolean;
|
|
5
|
+
}) => any;
|
|
6
|
+
export declare const oneSuccess: (state: any, action: any, { isFetchingKey, hasFetchedKey, persistState }?: {
|
|
7
|
+
isFetchingKey?: string;
|
|
8
|
+
hasFetchedKey?: string;
|
|
9
|
+
persistState?: boolean;
|
|
10
|
+
}) => any;
|
|
11
|
+
export declare const paginatedListSuccess: (state: any, action: any, { isFetchingKey, hasFetchedKey }?: {
|
|
12
|
+
isFetchingKey?: string;
|
|
13
|
+
hasFetchedKey?: string;
|
|
14
|
+
}) => any;
|
|
15
|
+
export declare const failure: (state: any, action: any, { isFetchingKey, hasFetchedKey, persistState }?: {
|
|
16
|
+
isFetchingKey?: string;
|
|
17
|
+
hasFetchedKey?: string;
|
|
18
|
+
persistState?: boolean;
|
|
19
|
+
}) => any;
|
|
20
|
+
export declare const getRootReducer: (appReducer: any, { persistKeys }?: {
|
|
21
|
+
persistKeys: {};
|
|
22
|
+
}) => (state: any, action: any) => any;
|
|
23
|
+
declare const _default: {};
|
|
24
|
+
export default _default;
|
package/lib/scroll.d.ts
ADDED
package/lib/sentry.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const clearUserContext: () => void;
|
|
2
|
+
export declare const createReduxMiddleware: () => any;
|
|
3
|
+
export declare const logError: (_error: any, { name, data }?: {
|
|
4
|
+
name: any;
|
|
5
|
+
data: any;
|
|
6
|
+
}) => any;
|
|
7
|
+
export declare const setup: ({ environment, url, version }: {
|
|
8
|
+
environment: any;
|
|
9
|
+
url: any;
|
|
10
|
+
version: any;
|
|
11
|
+
}) => void;
|
|
12
|
+
export declare const setUserContext: (user: any) => void;
|
|
13
|
+
export declare const setTag: (key: any, value: any) => void;
|
|
14
|
+
declare const _default: {};
|
|
15
|
+
export default _default;
|