@medipass/utils 11.73.2-fix-utils-ts.1 → 11.73.2-fix-utils-ts.3

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 (196) hide show
  1. package/{lib/__tests__ → __tests__}/abn.test.d.ts +0 -0
  2. package/{lib/__tests__ → __tests__}/get-env.test.d.ts +0 -0
  3. package/{lib/__tests__ → __tests__}/get-staff-type-display-name.test.d.ts +0 -0
  4. package/{lib/__tests__ → __tests__}/redux-actions.test.d.ts +0 -0
  5. package/{lib/__tests__ → __tests__}/redux-reducer.test.d.ts +0 -0
  6. package/{lib/__tests__ → __tests__}/validate.test.d.ts +0 -0
  7. package/{lib/abn.d.ts → abn.d.ts} +0 -0
  8. package/{lib/abn.js → abn.js} +0 -0
  9. package/babel.config.js +2 -1
  10. package/{lib/billable-items-f8291b1e.js → billable-items-f8291b1e.js} +0 -0
  11. package/{lib/build-validation-schema.d.ts → build-validation-schema.d.ts} +0 -0
  12. package/{lib/build-validation-schema.js → build-validation-schema.js} +0 -0
  13. package/{lib/businesses-2633ab9b.js → businesses-2633ab9b.js} +0 -0
  14. package/{lib/chart.d.ts → chart.d.ts} +0 -0
  15. package/{lib/chart.js → chart.js} +0 -0
  16. package/claim-payment-status-formatted.d.ts +8 -0
  17. package/{lib/claim-payment-status-formatted.js → claim-payment-status-formatted.js} +0 -0
  18. package/claim-payment-status-icons.d.ts +14 -0
  19. package/{lib/claim-payment-status-icons.js → claim-payment-status-icons.js} +0 -0
  20. package/claim-payment-status-text-classes.d.ts +15 -0
  21. package/{lib/claim-payment-status-text-classes.js → claim-payment-status-text-classes.js} +0 -0
  22. package/constants.d.ts +340 -0
  23. package/{lib/constants.js → constants.js} +1 -0
  24. package/{lib/countries.d.ts → countries.d.ts} +0 -0
  25. package/{lib/countries.js → countries.js} +0 -0
  26. package/{lib/datetime.d.ts → datetime.d.ts} +0 -0
  27. package/{lib/datetime.js → datetime.js} +0 -0
  28. package/document-types-formatted.d.ts +11 -0
  29. package/{lib/document-types-formatted.js → document-types-formatted.js} +0 -0
  30. package/{lib/document-types-icons.d.ts → document-types-icons.d.ts} +2 -1
  31. package/{lib/document-types-icons.js → document-types-icons.js} +0 -0
  32. package/document-types-text-classes.d.ts +6 -0
  33. package/{lib/document-types-text-classes.js → document-types-text-classes.js} +0 -0
  34. package/documents/workflow-state-formatted-text-classes.d.ts +11 -0
  35. package/{lib/documents → documents}/workflow-state-formatted-text-classes.js +0 -0
  36. package/documents/workflow-state-formatted.d.ts +11 -0
  37. package/{lib/documents → documents}/workflow-state-formatted.js +0 -0
  38. package/documents/workflow-state-icons.d.ts +9 -0
  39. package/{lib/documents → documents}/workflow-state-icons.js +0 -0
  40. package/{lib/form-applications → form-applications}/assign-values-to-sections.d.ts +0 -0
  41. package/{lib/form-applications → form-applications}/assign-values-to-sections.js +0 -0
  42. package/{lib/forms-e1c51a53.js → forms-e1c51a53.js} +0 -0
  43. package/{lib/funders.d.ts → funders.d.ts} +3 -3
  44. package/{lib/funders.js → funders.js} +2 -1
  45. package/{lib/get-env.d.ts → get-env.d.ts} +21 -1
  46. package/{lib/get-env.js → get-env.js} +39 -7
  47. package/{lib/get-select-options.d.ts → get-select-options.d.ts} +0 -0
  48. package/{lib/get-select-options.js → get-select-options.js} +0 -0
  49. package/{lib/get-staff-type-display-name.d.ts → get-staff-type-display-name.d.ts} +0 -0
  50. package/{lib/get-staff-type-display-name.js → get-staff-type-display-name.js} +0 -0
  51. package/google-addresses.d.ts +9 -0
  52. package/{lib/google-addresses.js → google-addresses.js} +0 -0
  53. package/{lib/health-fund-accounts-88eac93c.js → health-fund-accounts-88eac93c.js} +0 -0
  54. package/{lib/health-fund-settings-e7a0f2ec.js → health-fund-settings-e7a0f2ec.js} +0 -0
  55. package/{lib/health-funds-7fea63a0.js → health-funds-7fea63a0.js} +0 -0
  56. package/{lib/i18n → i18n}/index.d.ts +0 -0
  57. package/{lib/i18n → i18n}/index.js +0 -0
  58. package/{lib/i18n → i18n}/translations.d.ts +1 -1
  59. package/{lib/i18n → i18n}/translations.js +0 -0
  60. package/index.d.ts +103 -1
  61. package/{lib/index.js → index.js} +0 -0
  62. package/{lib/intercom.d.ts → intercom.d.ts} +1 -1
  63. package/{lib/intercom.js → intercom.js} +4 -3
  64. package/{lib/members-8eb8d8d0.js → members-8eb8d8d0.js} +0 -0
  65. package/{lib/modalities-2dfbea63.js → modalities-2dfbea63.js} +0 -0
  66. package/package.json +4 -4
  67. package/{lib/parse-health-fund-card-fields.d.ts → parse-health-fund-card-fields.d.ts} +0 -0
  68. package/{lib/parse-health-fund-card-fields.js → parse-health-fund-card-fields.js} +0 -0
  69. package/{lib/patients-dd3709c1.js → patients-dd3709c1.js} +0 -0
  70. package/{lib/payment-methods-d36bc018.js → payment-methods-d36bc018.js} +0 -0
  71. package/{lib/payment-options.d.ts → payment-options.d.ts} +0 -0
  72. package/{lib/payment-options.js → payment-options.js} +0 -0
  73. package/{lib/practices-d6c480f1.js → practices-d6c480f1.js} +0 -0
  74. package/{lib/products-0a392564.js → products-0a392564.js} +0 -0
  75. package/{lib/products.d.ts → products.d.ts} +0 -0
  76. package/{lib/products.js → products.js} +0 -0
  77. package/{lib/professional-categories-157d1767.js → professional-categories-157d1767.js} +0 -0
  78. package/{lib/redux-actions.d.ts → redux-actions.d.ts} +5 -1
  79. package/{lib/redux-actions.js → redux-actions.js} +7 -3
  80. package/{lib/redux-reducer.d.ts → redux-reducer.d.ts} +0 -0
  81. package/{lib/redux-reducer.js → redux-reducer.js} +0 -0
  82. package/{lib/sanitise-url.d.ts → sanitise-url.d.ts} +0 -0
  83. package/{lib/sanitise-url.js → sanitise-url.js} +0 -0
  84. package/{lib/scroll.d.ts → scroll.d.ts} +0 -0
  85. package/{lib/scroll.js → scroll.js} +0 -0
  86. package/{lib/sensitive-keys.d.ts → sensitive-keys.d.ts} +0 -0
  87. package/{lib/sensitive-keys.js → sensitive-keys.js} +0 -0
  88. package/{lib/sentry.d.ts → sentry.d.ts} +0 -0
  89. package/{lib/sentry.js → sentry.js} +0 -0
  90. package/{lib/service-items.d.ts → service-items.d.ts} +0 -0
  91. package/{lib/service-items.js → service-items.js} +0 -0
  92. package/{lib/services-f8480eba.js → services-f8480eba.js} +0 -0
  93. package/{lib/specialties-25fbb171.js → specialties-25fbb171.js} +0 -0
  94. package/{lib/staff-646053b7.js → staff-646053b7.js} +0 -0
  95. package/status-icons.d.ts +13 -0
  96. package/{lib/status-icons.js → status-icons.js} +0 -0
  97. package/status-text-classes.d.ts +13 -0
  98. package/{lib/status-text-classes.js → status-text-classes.js} +0 -0
  99. package/{lib/subscriptions-aef302aa.js → subscriptions-aef302aa.js} +0 -0
  100. package/{lib/test-framework → test-framework}/fixtures/accounts.d.ts +0 -0
  101. package/{lib/test-framework → test-framework}/fixtures/accounts.js +0 -0
  102. package/{lib/test-framework → test-framework}/fixtures/billable-items.d.ts +0 -0
  103. package/{lib/test-framework → test-framework}/fixtures/billable-items.js +0 -0
  104. package/{lib/test-framework → test-framework}/fixtures/businesses.d.ts +0 -0
  105. package/{lib/test-framework → test-framework}/fixtures/businesses.js +0 -0
  106. package/{lib/test-framework → test-framework}/fixtures/documents.d.ts +0 -0
  107. package/{lib/test-framework → test-framework}/fixtures/documents.js +0 -0
  108. package/{lib/test-framework → test-framework}/fixtures/form-application-templates.d.ts +0 -0
  109. package/{lib/test-framework → test-framework}/fixtures/form-application-templates.js +0 -0
  110. package/{lib/test-framework → test-framework}/fixtures/form-applications.d.ts +0 -0
  111. package/{lib/test-framework → test-framework}/fixtures/form-applications.js +0 -0
  112. package/{lib/test-framework → test-framework}/fixtures/forms.d.ts +0 -0
  113. package/{lib/test-framework → test-framework}/fixtures/forms.js +0 -0
  114. package/{lib/test-framework → test-framework}/fixtures/health-fund-accounts.d.ts +0 -0
  115. package/{lib/test-framework → test-framework}/fixtures/health-fund-accounts.js +0 -0
  116. package/{lib/test-framework → test-framework}/fixtures/health-fund-settings.d.ts +0 -0
  117. package/{lib/test-framework → test-framework}/fixtures/health-fund-settings.js +0 -0
  118. package/{lib/test-framework → test-framework}/fixtures/health-funds.d.ts +0 -0
  119. package/{lib/test-framework → test-framework}/fixtures/health-funds.js +0 -0
  120. package/{lib/test-framework → test-framework}/fixtures/index.d.ts +0 -0
  121. package/{lib/test-framework → test-framework}/fixtures/index.js +0 -0
  122. package/{lib/test-framework → test-framework}/fixtures/members.d.ts +0 -0
  123. package/{lib/test-framework → test-framework}/fixtures/members.js +0 -0
  124. package/{lib/test-framework → test-framework}/fixtures/message-mappings.d.ts +0 -0
  125. package/{lib/test-framework → test-framework}/fixtures/message-mappings.js +0 -0
  126. package/{lib/test-framework → test-framework}/fixtures/modalities.d.ts +0 -0
  127. package/{lib/test-framework → test-framework}/fixtures/modalities.js +0 -0
  128. package/{lib/test-framework → test-framework}/fixtures/patients.d.ts +0 -0
  129. package/{lib/test-framework → test-framework}/fixtures/patients.js +0 -0
  130. package/{lib/test-framework → test-framework}/fixtures/payment-methods.d.ts +0 -0
  131. package/{lib/test-framework → test-framework}/fixtures/payment-methods.js +0 -0
  132. package/{lib/test-framework → test-framework}/fixtures/practices.d.ts +0 -0
  133. package/{lib/test-framework → test-framework}/fixtures/practices.js +0 -0
  134. package/{lib/test-framework → test-framework}/fixtures/products.d.ts +0 -0
  135. package/{lib/test-framework → test-framework}/fixtures/products.js +0 -0
  136. package/{lib/test-framework → test-framework}/fixtures/professional-categories.d.ts +0 -0
  137. package/{lib/test-framework → test-framework}/fixtures/professional-categories.js +0 -0
  138. package/{lib/test-framework → test-framework}/fixtures/services.d.ts +0 -0
  139. package/{lib/test-framework → test-framework}/fixtures/services.js +0 -0
  140. package/{lib/test-framework → test-framework}/fixtures/specialties.d.ts +0 -0
  141. package/{lib/test-framework → test-framework}/fixtures/specialties.js +0 -0
  142. package/{lib/test-framework → test-framework}/fixtures/staff.d.ts +0 -0
  143. package/{lib/test-framework → test-framework}/fixtures/staff.js +0 -0
  144. package/{lib/test-framework → test-framework}/fixtures/subscriptions.d.ts +0 -0
  145. package/{lib/test-framework → test-framework}/fixtures/subscriptions.js +0 -0
  146. package/{lib/test-framework → test-framework}/fixtures/transaction-reports.d.ts +0 -0
  147. package/{lib/test-framework → test-framework}/fixtures/transaction-reports.js +0 -0
  148. package/{lib/test-framework → test-framework}/fixtures/transactions.d.ts +0 -0
  149. package/{lib/test-framework → test-framework}/fixtures/transactions.js +0 -0
  150. package/{lib/test-framework → test-framework}/fixtures/workflow-exceptions.d.ts +0 -0
  151. package/{lib/test-framework → test-framework}/fixtures/workflow-exceptions.js +0 -0
  152. package/{lib/test-framework → test-framework}/react.d.ts +1 -1
  153. package/{lib/test-framework → test-framework}/react.js +0 -0
  154. package/{lib/transaction-details-by-funder.d.ts → transaction-details-by-funder.d.ts} +0 -0
  155. package/{lib/transaction-details-by-funder.js → transaction-details-by-funder.js} +0 -0
  156. package/transaction-status-formatted.d.ts +16 -0
  157. package/{lib/transaction-status-formatted.js → transaction-status-formatted.js} +0 -0
  158. package/{lib/transaction-status-helpers.d.ts → transaction-status-helpers.d.ts} +2 -2
  159. package/{lib/transaction-status-helpers.js → transaction-status-helpers.js} +0 -0
  160. package/transaction-status-icons.d.ts +10 -0
  161. package/{lib/transaction-status-icons.js → transaction-status-icons.js} +0 -0
  162. package/transaction-status-text-classes.d.ts +17 -0
  163. package/{lib/transaction-status-text-classes.js → transaction-status-text-classes.js} +0 -0
  164. package/{lib/transaction-status.d.ts → transaction-status.d.ts} +0 -0
  165. package/{lib/transaction-status.js → transaction-status.js} +0 -0
  166. package/{lib/transactions-4a08e450.js → transactions-4a08e450.js} +0 -0
  167. package/tsconfig.json +1 -1
  168. package/{lib/validate-form.d.ts → validate-form.d.ts} +19 -7
  169. package/{lib/validate-form.js → validate-form.js} +0 -0
  170. package/{lib/validate.d.ts → validate.d.ts} +0 -0
  171. package/{lib/validate.js → validate.js} +0 -0
  172. package/{lib/webpack-config.d.ts → webpack-config.d.ts} +0 -0
  173. package/{lib/webpack-config.js → webpack-config.js} +0 -0
  174. package/workflow-state-formatted-text-classes.d.ts +13 -0
  175. package/{lib/workflow-state-formatted-text-classes.js → workflow-state-formatted-text-classes.js} +0 -0
  176. package/workflow-state-formatted.d.ts +12 -0
  177. package/workflow-state-formatted.js +13 -0
  178. package/lib/claim-payment-status-formatted.d.ts +0 -6
  179. package/lib/claim-payment-status-icons.d.ts +0 -4
  180. package/lib/claim-payment-status-text-classes.d.ts +0 -4
  181. package/lib/constants.d.ts +0 -325
  182. package/lib/document-types-formatted.d.ts +0 -9
  183. package/lib/document-types-text-classes.d.ts +0 -4
  184. package/lib/documents/workflow-state-formatted-text-classes.d.ts +0 -6
  185. package/lib/documents/workflow-state-formatted.d.ts +0 -6
  186. package/lib/documents/workflow-state-icons.d.ts +0 -5
  187. package/lib/google-addresses.d.ts +0 -3
  188. package/lib/index.d.ts +0 -48
  189. package/lib/status-icons.d.ts +0 -4
  190. package/lib/status-text-classes.d.ts +0 -4
  191. package/lib/transaction-status-formatted.d.ts +0 -9
  192. package/lib/transaction-status-icons.d.ts +0 -4
  193. package/lib/transaction-status-text-classes.d.ts +0 -4
  194. package/lib/workflow-state-formatted-text-classes.d.ts +0 -5
  195. package/lib/workflow-state-formatted.d.ts +0 -4
  196. package/lib/workflow-state-formatted.js +0 -13
File without changes
File without changes
File without changes
File without changes
File without changes
package/babel.config.js CHANGED
@@ -1,4 +1,5 @@
1
1
  module.exports = {
2
2
  extends: '../../babel.config.js',
3
- plugins: ['@babel/plugin-transform-runtime']
3
+ plugins: ['@babel/plugin-transform-runtime', '@babel/plugin-transform-typescript'],
4
+ presets: ['@babel/preset-typescript']
4
5
  };
File without changes
File without changes
@@ -0,0 +1,8 @@
1
+ declare const _default: {
2
+ PROVIDER: {
3
+ "under-review": string;
4
+ "partially-refunded": string;
5
+ errored: string;
6
+ };
7
+ };
8
+ export default _default;
@@ -0,0 +1,14 @@
1
+ declare const _default: {
2
+ errored: string;
3
+ requested: string;
4
+ pending: string;
5
+ accepted: string;
6
+ approved: string;
7
+ rejected: string;
8
+ reversed: string;
9
+ voided: string;
10
+ skipped: string;
11
+ refunded: string;
12
+ "under-review": string;
13
+ };
14
+ export default _default;
@@ -0,0 +1,15 @@
1
+ declare const _default: {
2
+ errored: string;
3
+ requested: string;
4
+ accepted: string;
5
+ approved: string;
6
+ rejected: string;
7
+ cancelled: string;
8
+ reversed: string;
9
+ voided: string;
10
+ skipped: string;
11
+ pending: string;
12
+ "under-review": string;
13
+ submitted: string;
14
+ };
15
+ export default _default;
package/constants.d.ts ADDED
@@ -0,0 +1,340 @@
1
+ export declare const ERROR_MESSAGES: {
2
+ readonly INTERNET_ERROR: "We are unable to establish an internet connection. We will take you back once you are connected to the internet.";
3
+ readonly NETWORK_ERROR: "There are issues connecting to the Medipass platform. Please refresh the page and try again.";
4
+ readonly SERVER_ERROR: "There are issues connecting to the Medipass platform. Please refresh the page and try again.";
5
+ readonly PAYMENT_GATEWAY_ERROR: "There are issues connecting to the payment gateway. Please refresh the page and try again.";
6
+ readonly PAYMENT_ERROR: "An error occurred when processing the payment. Please try again. The card was not charged.";
7
+ readonly PAYMENT_GATEWAY_FIELDS: "The payment card details you entered were invalid, please review the payment card credentials and try again.";
8
+ };
9
+ export declare const ERROR_CODES: {
10
+ readonly USERNAME_ALREADY_EXISTS: 10002;
11
+ readonly PAYMENT_PROVIDER_PARAMETERS_INVALID: 10014;
12
+ readonly ACCOUNT_DOES_NOT_HAVE_ACCESS_TO_CHECKOUT_SESSION: 10277;
13
+ readonly CARD_FAILED: "card-failed";
14
+ };
15
+ export declare const STANDALONE_ERRORS: {
16
+ readonly noAPIKey: {
17
+ readonly code: "noAPIKey";
18
+ readonly message: "Attribute `apiKey` or `token` not found in SDK configuration.";
19
+ };
20
+ readonly noAppID: {
21
+ readonly code: "noAppID";
22
+ readonly message: "Attribute `appId` not found in SDK configuration.";
23
+ };
24
+ readonly providerNumberNotFound: {
25
+ readonly code: "providerNumberNotFound";
26
+ readonly message: "No providers found under the given provider number.";
27
+ };
28
+ readonly providerNumberDoesNotMatchFunder: {
29
+ readonly code: "providerNumberDoesNotMatchFunder";
30
+ readonly message: "Provider number does not match the given funder.";
31
+ };
32
+ };
33
+ export declare const DOCUMENT_STATUSES: {
34
+ readonly AVAILABLE: "available";
35
+ readonly PENDING: "pending";
36
+ readonly ACTIVE: "active";
37
+ };
38
+ export declare const DOCUMENT_TYPES: {
39
+ readonly APPLICATION: "application";
40
+ readonly FORM: "form";
41
+ };
42
+ export declare const DOCUMENT_WORKFLOW_STATES: {
43
+ readonly INBOX: "inbox";
44
+ readonly ASSIGNED: "assigned";
45
+ readonly APPROVED: "approved";
46
+ readonly DECLINED: "declined";
47
+ readonly CANCELLED: "cancelled";
48
+ readonly PARKED: "parked";
49
+ readonly CEASED: "ceased";
50
+ };
51
+ export declare const DOCUMENT_WORKFLOW_STATES_HUMANIZED: {
52
+ readonly SUBMITTED: "Submitted";
53
+ readonly UNDER_REVIEW: "Under review";
54
+ readonly APPROVED: "Approved";
55
+ };
56
+ export declare const FORM_STATUSES: {
57
+ readonly PUBLISHED: "published";
58
+ readonly DRAFT: "draft";
59
+ };
60
+ export declare const FORM_APPLICATION_STATUSES: {
61
+ readonly PENDING: "pending";
62
+ readonly APPROVED: "approved";
63
+ readonly DECLINED: "declined";
64
+ readonly CANCELLED: "cancelled";
65
+ };
66
+ export declare const FUNDERS: {
67
+ readonly ADF: "adf";
68
+ readonly COMCARE: "comcare";
69
+ readonly DVA: "dva";
70
+ readonly ECLIPSE: "eclipse";
71
+ readonly GARRISON: "ghs";
72
+ readonly HBF: "hbf";
73
+ readonly HEALTHPOINT: "healthpoint";
74
+ readonly HICAPS: "nab";
75
+ readonly ICARE: "icare";
76
+ readonly MEDICARE: "medicare";
77
+ readonly NIB: "nib";
78
+ readonly NDIS: "ndis";
79
+ readonly OHC: "ohc";
80
+ readonly PATIENT: "patient-funded";
81
+ readonly WCQ: "wcq";
82
+ readonly WSV: "wsv";
83
+ };
84
+ export declare const FUNDERS_FORMATTED: {
85
+ readonly adf: "Australian Defence Force";
86
+ readonly comcare: "Comcare";
87
+ readonly eclipse: "Eclipse";
88
+ readonly ghs: "Garrison";
89
+ readonly hbf: "HBF";
90
+ readonly healthpoint: "HEALTHPOINT";
91
+ readonly nab: "HICAPS";
92
+ readonly icare: "icare";
93
+ readonly medicare: "Medicare";
94
+ readonly ndis: "NDIS";
95
+ readonly nib: "NIB";
96
+ readonly ohc: "Overseas health cover";
97
+ readonly "patient-funded": "Patient funded";
98
+ readonly wcq: "Workcover Queensland";
99
+ readonly wsv: "WorkSafe Victoria";
100
+ };
101
+ export declare const FUTURE_STATUSES: {
102
+ readonly ACTIVE: "active";
103
+ readonly PENDING: "pending";
104
+ readonly COMPLETED: "completed";
105
+ readonly CANCELLED: "cancelled";
106
+ readonly DECLINED: "declined";
107
+ readonly ERRORED: "errored";
108
+ };
109
+ export declare const FUTURE_TYPES: {
110
+ readonly HOLD: "hold";
111
+ readonly SUBSCRIPTION: "subscription";
112
+ readonly INSTALMENT_PLAN: "instalment-plan";
113
+ };
114
+ export declare const FUTURE_LABELS: {
115
+ readonly hold: "Payment hold";
116
+ readonly subscription: "Subscription";
117
+ readonly 'instalment-plan': "Instalment plan";
118
+ };
119
+ export declare const EPISODE_INITIATOR_IDS: {
120
+ readonly COMMONWEALTH: "commonwealth";
121
+ readonly EMERGENCY: "emergency";
122
+ };
123
+ export declare const NO_EP_ID_REASON_IDS: {
124
+ readonly ENTITLED_FAMILY_MEMBER: "1";
125
+ readonly FOREIGN_MEMBER: "2";
126
+ readonly CIVIC_ASSISTANCE: "3";
127
+ readonly OTHER: "4";
128
+ };
129
+ export declare const GATEWAY_CODES: {
130
+ readonly HICAPS_ERROR: "12";
131
+ readonly HICAPS_DOWN: "91";
132
+ readonly MEDICARE_DOWN: "3004";
133
+ };
134
+ export declare const AUS_STATES: readonly ["Victoria", "Tasmania", "Western Australia", "South Australia", "Queensland", "New South Wales", "Australian Capital Territory", "Northern Territory"];
135
+ export declare const PAYMENT_FACILITIES: {
136
+ readonly HICAPS_GO: "hicaps-go";
137
+ readonly MEDIPASS_PAYMENTS: "medipass-payments";
138
+ };
139
+ export declare const PAYMENT_PROVIDERS: {
140
+ readonly GOOGLE_PAY: "google-pay";
141
+ readonly APPLE_PAY: "apple-pay";
142
+ readonly PAYMENT_CARD: "payment-card";
143
+ };
144
+ export declare const PRODUCTS: {
145
+ readonly BASIC: "basic";
146
+ readonly PRO: "pro";
147
+ };
148
+ export declare const AVAILABLE_PRODUCTS: readonly ["basic", "pro"];
149
+ export declare const PRODUCT_FEATURES: {
150
+ readonly CLAIMING_ADFHS: "claiming:adfhs";
151
+ readonly CLAIMING_BRIDGE: "claiming:bridge";
152
+ readonly CLAIMING_COMCARE: "claiming:comcare";
153
+ readonly CLAIMING_GHS: "claiming:ghs";
154
+ readonly CLAIMING_ICARE: "claiming:icare";
155
+ readonly CLAIMING_MEDICARE: "claiming:medicare";
156
+ readonly CLAIMING_NDIS: "claiming:ndis";
157
+ readonly CLAIMING_OHC: "claiming:ohc";
158
+ readonly CLAIMING_PHI: "claiming:phi";
159
+ readonly CLAIMING_PHI_QUOTES: "claiming:phi.quotes";
160
+ readonly CLAIMING_WCQ: "claiming:wcq";
161
+ readonly PAYMENTS_ASSISTED: "payments:assisted";
162
+ readonly PAYMENTS_FULLY_PATIENT_FUNDED: "payments:fully-patient-funded";
163
+ readonly PMS_INTEGRATION: "pms:integration";
164
+ readonly REPORTING: "reporting";
165
+ };
166
+ export declare const STATUSES: {
167
+ readonly ACTIVE: "ACTIVE";
168
+ readonly DISABLED: "DISABLED";
169
+ readonly NEW: "NEW";
170
+ readonly INVITED: "INVITED";
171
+ readonly UNVERIFIED: "UNVERIFIED";
172
+ readonly CANCELLED: "CANCELLED";
173
+ readonly COMPLETED: "COMPLETED";
174
+ readonly ERRORED: "ERRORED";
175
+ readonly PENDING: "PENDING";
176
+ readonly EXPIRED: "EXPIRED";
177
+ };
178
+ export declare const BUSINESS_STATUSES: {
179
+ readonly ACTIVE: "ACTIVE";
180
+ readonly SUSPENDED: "SUSPENDED";
181
+ };
182
+ export declare const PAYMENT_STATUSES: {
183
+ readonly ACCEPTED: "accepted";
184
+ readonly APPROVED: "approved";
185
+ readonly PAID: "paid";
186
+ readonly PENDING: "pending";
187
+ readonly SETTLING: "settling";
188
+ };
189
+ export declare const PAYMENT_TYPES: {
190
+ readonly SALE: "sale";
191
+ readonly REFUND: "refund";
192
+ readonly IN_PERSON: "inperson";
193
+ };
194
+ export declare const TERMINAL_TRANSACTION_PAYMENT_TYPES: {
195
+ readonly CLAIM: "claim";
196
+ readonly PAYMENT: "payment";
197
+ };
198
+ export declare const TRANSACTION_CLAIM_OPTIONS: {
199
+ readonly TERMINAL: "terminal";
200
+ readonly PHONE: "phone";
201
+ readonly GLASS: "glass";
202
+ };
203
+ export declare const TRANSACTION_PAYMENT_OPTIONS: {
204
+ readonly PAYMENT_AUTHORITY: "payment-authority";
205
+ readonly PAY_IN_PERSON: "pay-in-person";
206
+ readonly PROCESS_OUTSIDE_MEDIPASS: "process-outside-medipass";
207
+ readonly TERMINAL: "terminal";
208
+ readonly PHONE: "phone";
209
+ readonly EXISTING_PAYMENT_CARD: "existing-payment-card";
210
+ readonly NEW_PAYMENT_CARD: "new-payment-card";
211
+ readonly PAYMENT_CARD: "payment-card";
212
+ readonly APPLE_PAY: "apple-pay";
213
+ readonly GOOGLE_PAY: "google-pay";
214
+ readonly LINK: "payment-link";
215
+ readonly HOLD: "payment-hold";
216
+ readonly INSTALMENT_PLAN: "instalment-plan";
217
+ };
218
+ export declare const TRANSACTION_PLATFORM: {
219
+ readonly FUNDER: "funder";
220
+ readonly VIRTUAL_TERMINAL: "virtual-terminal";
221
+ };
222
+ export declare const TRANSACTION_STATUSES: {
223
+ readonly DISABLED: "disabled";
224
+ readonly ERRORED: "errored";
225
+ readonly REQUESTED: "requested";
226
+ readonly ACCEPTED: "accepted";
227
+ readonly APPROVED: "approved";
228
+ readonly REJECTED: "rejected";
229
+ readonly REVERSED: "reversed";
230
+ readonly CANCELLED: "cancelled";
231
+ readonly VOIDED: "voided";
232
+ readonly SKIPPED: "skipped";
233
+ readonly REFUNDED: "refunded";
234
+ readonly PENDING: "pending";
235
+ readonly NEW: "new";
236
+ readonly COMPLETED: "completed";
237
+ readonly PARTIALLY_REFUNDED: "partially-refunded";
238
+ readonly UNDER_REVIEW: "under-review";
239
+ readonly SUBMITTED: "submitted";
240
+ readonly OUTSTANDING: "outstanding";
241
+ readonly DECLINED: "declined";
242
+ readonly ARCHIVED: "archived";
243
+ readonly PAID: "paid";
244
+ readonly READY: "ready";
245
+ };
246
+ export declare const WORKFLOW_STATES: {
247
+ readonly INBOX: "inbox";
248
+ readonly ASSIGNED: "assigned";
249
+ readonly PARKED: "parked";
250
+ readonly SUBMITTED: "submitted";
251
+ readonly POSTED: "posted";
252
+ readonly COMPLETED: "completed";
253
+ readonly ERRORED: "errored";
254
+ readonly ARCHIVED: "archived";
255
+ readonly CANCELLED: "cancelled";
256
+ readonly APPROVED: "approved";
257
+ readonly ACCEPTED: "accepted";
258
+ };
259
+ export declare const GARRISON_WORKFLOW_STATES_HUMANIZED: {
260
+ readonly SUBMITTED: "Submitted";
261
+ readonly UNDER_REVIEW: "Under review";
262
+ readonly ACCEPTED: "Accepted";
263
+ readonly COMPLETED: "Completed";
264
+ };
265
+ export declare const ICARE_WORKFLOW_STATES_HUMANIZED: {
266
+ readonly SUBMITTED: "Submitted";
267
+ readonly APPROVED: "Approved";
268
+ readonly COMPLETED: "Completed";
269
+ readonly REJECTED: "Rejected";
270
+ };
271
+ export declare const MEDICARE_FORMS: {
272
+ readonly ONLINE_CLAIMING_PROVIDER_AGREEMENT: "Online Claiming Provider Agreement";
273
+ };
274
+ export declare const HICAPS_FORMS: {
275
+ readonly CLAIMING_PROVIDER_APPLICATION: "HICAPS Claiming Application";
276
+ };
277
+ export declare const PMS: readonly ["Best Practice (Allied)", "Best Practice (Premier)", "Clinic to Cloud", "Cliniko", "Coreplus", "Coviu", "Dental4Windows", "Doctors on Demand", "Exact", "Front Desk", "Genie", "Gensolve", "Gentu", "Halaxy / HealthKit", "Iconpractice", "Kalysys", "Lysn", "Medical Director", "Medilink", "Medirecords", "MedTech", "My Appointments", "Myhealth1st", "Nookal", "Oasis", "Owner.health", "Optomate", "Powerdiary", "PPMP", "PracSuite", "Shexie", "Splose", "Sunix", "TM2", "VisitBase", "ZedMed", "Zurili", "Other"];
278
+ export declare const REGIONS: {
279
+ readonly au: "au";
280
+ readonly uk: "uk";
281
+ };
282
+ export declare const VERIFY_MEMBER_HEALTH_FUNDS_CODES: readonly ["BUP"];
283
+ export declare const INVOICE_ORIGINATING_FLOW: {
284
+ readonly ALLIED_PHI: "allied-phi";
285
+ readonly COMCARE: "comcare";
286
+ readonly DVA: "dva";
287
+ readonly ECLIPSE: "eclipse";
288
+ readonly HEALTHPOINT: "healthpoint";
289
+ readonly ICARE: "icare";
290
+ readonly INSTALMENT_PLAN: "instalment-plan";
291
+ readonly MEDICARE_BULK_BILLED: "medicare-bulk-billed";
292
+ readonly MEDICARE_PATIENT_CLAIM: "medicare-patient-claim";
293
+ readonly NDIS: "ndis";
294
+ readonly NIB: "nib";
295
+ readonly OVERSEAS_HEALTH_COVER: "overseas-health-cover";
296
+ readonly PATIENT_FUNDED: "patient-funded";
297
+ readonly VIRTUAL_TERMINAL: "virtual-terminal";
298
+ readonly WORK_COVER_QUEENSLAND: "wcq";
299
+ readonly WORKSAFE_VICTORIA: "wsv";
300
+ };
301
+ export declare const STAFF_TYPES: {
302
+ readonly LOCATION: "location";
303
+ readonly PERSON: "person";
304
+ };
305
+ export declare const ECLIPSE_SUB_TYPE: {
306
+ readonly ONLINE_ELIGIBILITY_CHECK: "onlineEligibilityCheck";
307
+ readonly IN_PATIENT: "inPatient";
308
+ readonly OVERSEAS: "overseas";
309
+ };
310
+ export declare const ECLIPSE_ONLINE_ELIGIBILITY_CHECK_TYPES: {
311
+ readonly MEDICARE_AND_PHI: "OEC";
312
+ readonly MEDICARE_ONLY: "ECM";
313
+ readonly FUND_ONLY: "ECF";
314
+ readonly OVERSEAS: "ECO";
315
+ };
316
+ export declare const OEC_MEDICARE_AND_PHI_PROCESSING_CLASSES: {
317
+ readonly AGREEMENTS: "AG";
318
+ readonly SCHEMES: "SC";
319
+ readonly PATIENT_CLAIM: "PC";
320
+ readonly BILLING_AGENT: "MB";
321
+ };
322
+ export declare const OEC_OVERSEAS_PROCESSING_CLASSES: {
323
+ readonly AGREEMENTS: "AG";
324
+ readonly SCHEMES: "SC";
325
+ readonly PATIENT_CLAIM: "PC";
326
+ readonly BILLING_AGENT: "MB";
327
+ };
328
+ export declare const ECLIPSE_IN_PATIENT_CLAIM_TYPES: {
329
+ readonly BILLING_AGENT: "MB";
330
+ readonly BILLING_AGENT_MEDICARE_ONLY: "MO";
331
+ readonly PATIENT_CLAIM: "PC";
332
+ readonly AGREEMENTS: "AG";
333
+ readonly SCHEMES: "SC";
334
+ };
335
+ export declare const ECLIPSE_OVERSEAS_CLAIM_TYPES: {
336
+ readonly BILLING_AGENT: "MB";
337
+ readonly PATIENT_CLAIM: "PC";
338
+ readonly AGREEMENTS: "AG";
339
+ readonly SCHEMES: "SC";
340
+ };
@@ -356,6 +356,7 @@ var INVOICE_ORIGINATING_FLOW = {
356
356
  ALLIED_PHI: 'allied-phi',
357
357
  COMCARE: 'comcare',
358
358
  DVA: 'dva',
359
+ ECLIPSE: 'eclipse',
359
360
  HEALTHPOINT: 'healthpoint',
360
361
  ICARE: 'icare',
361
362
  INSTALMENT_PLAN: 'instalment-plan',
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,11 @@
1
+ declare const _default: {
2
+ provider: {
3
+ form: string;
4
+ application: string;
5
+ };
6
+ funder: {
7
+ form: string;
8
+ application: string;
9
+ };
10
+ };
11
+ export default _default;
@@ -1,4 +1,5 @@
1
1
  declare const _default: {
2
- [x: string]: string;
2
+ application: string;
3
+ form: string;
3
4
  };
4
5
  export default _default;
@@ -0,0 +1,6 @@
1
+ declare const _default: {
2
+ active: string;
3
+ available: string;
4
+ pending: string;
5
+ };
6
+ export default _default;
@@ -0,0 +1,11 @@
1
+ declare const _default_1: {
2
+ [x: number]: string;
3
+ _default: string;
4
+ assigned: string;
5
+ parked: string;
6
+ cancelled: string;
7
+ inbox: string;
8
+ approved: string;
9
+ declined: string;
10
+ };
11
+ export default _default_1;
@@ -0,0 +1,11 @@
1
+ declare const _default_1: {
2
+ [x: number]: string;
3
+ _default: string;
4
+ assigned: "Under review";
5
+ parked: "Under review";
6
+ cancelled: string;
7
+ inbox: "Submitted";
8
+ approved: "Approved";
9
+ declined: string;
10
+ };
11
+ export default _default_1;
@@ -0,0 +1,9 @@
1
+ declare const _default: {
2
+ [x: number]: string;
3
+ assigned: string;
4
+ approved: string;
5
+ cancelled: string;
6
+ declined: string;
7
+ inbox: string;
8
+ };
9
+ export default _default;
File without changes
@@ -1,6 +1,6 @@
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;
1
+ export declare const FUNDERS_WITH_ONBOARDING: readonly ["nab", "medicare", "icare", "wcq", "comcare", "wsv", "nib"];
2
+ export declare const CLAIMABLE_FUNDERS: readonly ["adf", "comcare", "dva", "eclipse", "ghs", "healthpoint", "nab", "icare", "medicare", "nib", "ohc", "wcq", "wsv"];
3
+ export declare const getFunderCodeFromTransaction: (transaction: Record<string, any>, funderCode?: string) => "adf" | "comcare" | "dva" | "eclipse" | "ghs" | "hbf" | "healthpoint" | "nab" | "icare" | "medicare" | "nib" | "ndis" | "ohc" | "patient-funded" | "wcq" | "wsv";
4
4
  export declare const isADF: (funderCode: string) => boolean;
5
5
  export declare const isComcare: (funderCode: string) => boolean;
6
6
  export declare const isDVA: (funderCode: string) => boolean;
@@ -95,7 +95,8 @@ var isWCQ = function isWCQ(funderCode) {
95
95
  };
96
96
  var isWSV = function isWSV(funderCode) {
97
97
  return funderCode === constants.FUNDERS.WSV;
98
- };
98
+ }; // @ts-expect-error
99
+
99
100
  var isFunderClaimable = function isFunderClaimable(funderCode) {
100
101
  return CLAIMABLE_FUNDERS.includes(funderCode);
101
102
  };
@@ -1,5 +1,5 @@
1
1
  declare type Environment = {
2
- _global: Record<string, any>;
2
+ _global?: Record<string, any>;
3
3
  local: Record<string, any>;
4
4
  dev: Record<string, any>;
5
5
  staging: Record<string, any>;
@@ -8,7 +8,27 @@ declare type Environment = {
8
8
  prod: Record<string, any>;
9
9
  };
10
10
  export declare const REQUIRED_VARIABLES: string[];
11
+ declare const ENV_NAMES: {
12
+ readonly LOCAL: "local";
13
+ readonly DEV: "dev";
14
+ readonly STG: "staging";
15
+ readonly PERF: "perf";
16
+ readonly PREPROD: "pre-prod";
17
+ readonly PROD: "prod";
18
+ };
11
19
  declare class Env {
20
+ ENV_NAME: typeof ENV_NAMES[keyof typeof ENV_NAMES];
21
+ FUNDER_URL: string;
22
+ CONNECT_URL: string;
23
+ CONSUMER_URL: string;
24
+ ACCOUNTS_URL: string;
25
+ QUOTES_URL: string;
26
+ CHECKOUT_URL: string;
27
+ GOOGLE_ANALYTICS_TRACKING_ID: string;
28
+ GOOGLE_TAG_MANAGER_ID: string;
29
+ ERROR_MESSAGE__GATEWAY_ERROR: string;
30
+ ERROR_MESSAGE__PAYMENT_ERROR: string;
31
+ HPF_SCRIPT_URL: string;
12
32
  setup(env: Environment): void;
13
33
  clear(): void;
14
34
  }