@medipass/utils 11.87.1-fix-aged-care-create-invoice.0 → 11.87.1

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/funders.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- export declare const FUNDERS_WITH_ONBOARDING: readonly ["nab", "medicare", "icare", "wcq", "comcare", "wsv", "nib", "qbe", any];
2
- export declare const CLAIMABLE_FUNDERS: readonly ["comcare", "dva", "eclipse", "healthpoint", "nab", "icare", "medicare", "nib", "ohc", "qbe", "wcq", "wsv", any];
3
- export declare const getFunderCodeFromTransaction: (transaction: Record<string, any>, funderCode?: string) => any;
1
+ export declare const FUNDERS_WITH_ONBOARDING: readonly ["nab", "medicare", "icare", "wcq", "comcare", "wsv", "nib", "qbe", "aged-care"];
2
+ export declare const CLAIMABLE_FUNDERS: readonly ["comcare", "dva", "eclipse", "healthpoint", "nab", "icare", "medicare", "nib", "ohc", "qbe", "wcq", "wsv", "aged-care"];
3
+ export declare const getFunderCodeFromTransaction: (transaction: Record<string, any>, funderCode?: string) => "comcare" | "dva" | "eclipse" | "hbf" | "healthpoint" | "nab" | "icare" | "medicare" | "nib" | "ndis" | "ohc" | "patient-funded" | "qbe" | "wcq" | "wsv" | "aged-care";
4
4
  export declare const isComcare: (funderCode: string) => boolean;
5
5
  export declare const isDVA: (funderCode: string) => boolean;
6
6
  export declare const isEclipse: (funderCode: string) => boolean;
@@ -16,5 +16,5 @@ export declare const isPatientFunded: (funderCode: string) => boolean;
16
16
  export declare const isQBE: (funderCode: string) => boolean;
17
17
  export declare const isWCQ: (funderCode: string) => boolean;
18
18
  export declare const isWSV: (funderCode: string) => boolean;
19
- export declare const isAGC: (funderCode: string) => boolean;
19
+ export declare const isAgedCare: (funderCode: string) => boolean;
20
20
  export declare const isFunderClaimable: (funderCode: string) => boolean;
package/funders.js CHANGED
@@ -9,8 +9,8 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
9
9
 
10
10
  var _get__default = /*#__PURE__*/_interopDefaultLegacy(_get);
11
11
 
12
- var FUNDERS_WITH_ONBOARDING = [constants.FUNDERS.HICAPS, constants.FUNDERS.MEDICARE, constants.FUNDERS.ICARE, constants.FUNDERS.WCQ, constants.FUNDERS.COMCARE, constants.FUNDERS.WSV, constants.FUNDERS.NIB, constants.FUNDERS.QBE, constants.FUNDERS.AGC];
13
- var CLAIMABLE_FUNDERS = [constants.FUNDERS.COMCARE, constants.FUNDERS.DVA, constants.FUNDERS.ECLIPSE, constants.FUNDERS.HEALTHPOINT, constants.FUNDERS.HICAPS, constants.FUNDERS.ICARE, constants.FUNDERS.MEDICARE, constants.FUNDERS.NIB, constants.FUNDERS.OHC, constants.FUNDERS.QBE, constants.FUNDERS.WCQ, constants.FUNDERS.WSV, constants.FUNDERS.AGC];
12
+ var FUNDERS_WITH_ONBOARDING = [constants.FUNDERS.HICAPS, constants.FUNDERS.MEDICARE, constants.FUNDERS.ICARE, constants.FUNDERS.WCQ, constants.FUNDERS.COMCARE, constants.FUNDERS.WSV, constants.FUNDERS.NIB, constants.FUNDERS.QBE, constants.FUNDERS.AGED_CARE];
13
+ var CLAIMABLE_FUNDERS = [constants.FUNDERS.COMCARE, constants.FUNDERS.DVA, constants.FUNDERS.ECLIPSE, constants.FUNDERS.HEALTHPOINT, constants.FUNDERS.HICAPS, constants.FUNDERS.ICARE, constants.FUNDERS.MEDICARE, constants.FUNDERS.NIB, constants.FUNDERS.OHC, constants.FUNDERS.QBE, constants.FUNDERS.WCQ, constants.FUNDERS.WSV, constants.FUNDERS.AGED_CARE];
14
14
  var getFunderCodeFromTransaction = function getFunderCodeFromTransaction(transaction, funderCode) {
15
15
  if (transaction.isPatientFunded || _get__default["default"](transaction, 'claims[0].isPatientFunded')) {
16
16
  return constants.FUNDERS.PATIENT;
@@ -44,8 +44,8 @@ var getFunderCodeFromTransaction = function getFunderCodeFromTransaction(transac
44
44
  return constants.FUNDERS.ECLIPSE;
45
45
  } else if (funderCode === constants.FUNDERS.QBE) {
46
46
  return constants.FUNDERS.QBE;
47
- } else if (funderCode === constants.FUNDERS.AGC) {
48
- return constants.FUNDERS.AGC;
47
+ } else if (funderCode === constants.FUNDERS.AGED_CARE) {
48
+ return constants.FUNDERS.AGED_CARE;
49
49
  }
50
50
 
51
51
  return constants.FUNDERS.PATIENT;
@@ -95,8 +95,8 @@ var isWCQ = function isWCQ(funderCode) {
95
95
  var isWSV = function isWSV(funderCode) {
96
96
  return funderCode === constants.FUNDERS.WSV;
97
97
  };
98
- var isAGC = function isAGC(funderCode) {
99
- return funderCode === constants.FUNDERS.AGC;
98
+ var isAgedCare = function isAgedCare(funderCode) {
99
+ return funderCode === constants.FUNDERS.AGED_CARE;
100
100
  }; // @ts-expect-error
101
101
 
102
102
  var isFunderClaimable = function isFunderClaimable(funderCode) {
@@ -106,7 +106,7 @@ var isFunderClaimable = function isFunderClaimable(funderCode) {
106
106
  exports.CLAIMABLE_FUNDERS = CLAIMABLE_FUNDERS;
107
107
  exports.FUNDERS_WITH_ONBOARDING = FUNDERS_WITH_ONBOARDING;
108
108
  exports.getFunderCodeFromTransaction = getFunderCodeFromTransaction;
109
- exports.isAGC = isAGC;
109
+ exports.isAgedCare = isAgedCare;
110
110
  exports.isComcare = isComcare;
111
111
  exports.isDVA = isDVA;
112
112
  exports.isEclipse = isEclipse;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medipass/utils",
3
- "version": "11.87.1-fix-aged-care-create-invoice.0",
3
+ "version": "11.87.1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -47,5 +47,5 @@
47
47
  "rimraf": "^2.6.2",
48
48
  "typescript": "4.8.4"
49
49
  },
50
- "gitHead": "1d0463b082c12b06ce3206f60122ffe7aa6caef1"
50
+ "gitHead": "a5be2e1f672b1554a65ce39b6fa0f72d8ff024ac"
51
51
  }