@medipass/utils 11.84.5 → 11.84.6-test-remove-intercom.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 (3) hide show
  1. package/intercom.d.ts +13 -13
  2. package/intercom.js +14 -56
  3. package/package.json +2 -2
package/intercom.d.ts CHANGED
@@ -1,15 +1,15 @@
1
- export declare const bootIntercom: (data: any) => Promise<any>;
2
- export declare const showNewMessage: (message?: string) => 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 trackCreateMedicareInvoice: (data: any) => any;
8
- export declare const trackCreatePatientFundedInvoice: (data: any) => any;
9
- export declare const trackCreateNDISInvoice: (data: any) => any;
10
- export declare const trackCreateOHCInvoice: (data: any) => any;
11
- export declare const trackCreateVirtualTerminalInvoice: (data: any) => any;
12
- export declare const trackCreateQuote: (data: any) => any;
13
- export declare const updateIntercom: (data: any) => any;
1
+ export declare const bootIntercom: (data: any) => Promise<void>;
2
+ export declare const showNewMessage: (message?: string) => void;
3
+ export declare const shutdownIntercom: () => void;
4
+ export declare const trackEvent: (name: any, data: any) => void;
5
+ export declare const trackCreateDVAInvoice: (data: any) => void;
6
+ export declare const trackCreateHICAPSInvoice: (data: any) => void;
7
+ export declare const trackCreateMedicareInvoice: (data: any) => void;
8
+ export declare const trackCreatePatientFundedInvoice: (data: any) => void;
9
+ export declare const trackCreateNDISInvoice: (data: any) => void;
10
+ export declare const trackCreateOHCInvoice: (data: any) => void;
11
+ export declare const trackCreateVirtualTerminalInvoice: (data: any) => void;
12
+ export declare const trackCreateQuote: (data: any) => void;
13
+ export declare const updateIntercom: (data: any) => void;
14
14
  declare const intercom: {};
15
15
  export default intercom;
package/intercom.js CHANGED
@@ -2,37 +2,21 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var _defineProperty = require('@babel/runtime/helpers/defineProperty');
6
5
  var _asyncToGenerator = require('@babel/runtime/helpers/asyncToGenerator');
7
6
  var _regeneratorRuntime = require('@babel/runtime/regenerator');
8
- var getEnv = require('./get-env.js');
9
- require('lodash/get');
10
- require('lodash/omitBy');
11
- require('lodash/isEmpty');
12
7
 
13
8
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
14
9
 
15
- var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
16
10
  var _asyncToGenerator__default = /*#__PURE__*/_interopDefaultLegacy(_asyncToGenerator);
17
11
  var _regeneratorRuntime__default = /*#__PURE__*/_interopDefaultLegacy(_regeneratorRuntime);
18
12
 
19
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
20
-
21
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
22
-
13
+ // @ts-expect-error TS(7006): Parameter 'data' implicitly has an 'any' type.
23
14
  var bootIntercom = /*#__PURE__*/function () {
24
15
  var _ref = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee(data) {
25
16
  return _regeneratorRuntime__default["default"].wrap(function _callee$(_context) {
26
17
  while (1) {
27
18
  switch (_context.prev = _context.next) {
28
19
  case 0:
29
- return _context.abrupt("return", window.Intercom('boot', _objectSpread({}, data, {
30
- app_id: getEnv["default"].INTERCOM_APP_ID,
31
- // eslint-disable-line camelcase
32
- user_hash: data.intercomHash
33
- })));
34
-
35
- case 1:
36
20
  case "end":
37
21
  return _context.stop();
38
22
  }
@@ -44,58 +28,32 @@ var bootIntercom = /*#__PURE__*/function () {
44
28
  return _ref.apply(this, arguments);
45
29
  };
46
30
  }();
47
- var showNewMessage = function showNewMessage(message) {
48
- return (// @ts-expect-error TS(2339): Property 'Intercom' does not exist on type 'Window... Remove this comment to see the full error message
49
- window.Intercom('showNewMessage', typeof message === 'string' ? message : '')
50
- );
51
- }; // eslint-disable-line new-cap
52
- // @ts-expect-error TS(2339): Property 'Intercom' does not exist on type 'Window... Remove this comment to see the full error message
31
+ var showNewMessage = function showNewMessage(message) {}; // // @ts-expect-error TS(2339): Property 'Intercom' does not exist on type 'Window... Remove this comment to see the full error message
32
+ // window.Intercom('showNewMessage', typeof message === 'string' ? message : ''); // eslint-disable-line new-cap
53
33
 
54
- var shutdownIntercom = function shutdownIntercom() {
55
- return window.Intercom('shutdown');
56
- }; // eslint-disable-line new-cap
34
+ var shutdownIntercom = function shutdownIntercom() {}; // eslint-disable-line new-cap
57
35
  // @ts-expect-error TS(2339): Property 'Intercom' does not exist on type 'Window... Remove this comment to see the full error message
58
36
 
59
- var trackEvent = function trackEvent(name, data) {
60
- return window.Intercom('trackEvent', name, data);
61
- }; // eslint-disable-line new-cap
37
+ var trackEvent = function trackEvent(name, data) {}; // eslint-disable-line new-cap
62
38
  // @ts-expect-error TS(7006): Parameter 'data' implicitly has an 'any' type.
63
39
 
64
- var trackCreateDVAInvoice = function trackCreateDVAInvoice(data) {
65
- return trackEvent('created-dva-invoice', data);
66
- }; // @ts-expect-error TS(7006): Parameter 'data' implicitly has an 'any' type.
40
+ var trackCreateDVAInvoice = function trackCreateDVAInvoice(data) {}; // @ts-expect-error TS(7006): Parameter 'data' implicitly has an 'any' type.
67
41
 
68
- var trackCreateHICAPSInvoice = function trackCreateHICAPSInvoice(data) {
69
- return trackEvent('created-hicaps-invoice', data);
70
- }; // @ts-expect-error TS(7006): Parameter 'data' implicitly has an 'any' type.
42
+ var trackCreateHICAPSInvoice = function trackCreateHICAPSInvoice(data) {}; // @ts-expect-error TS(7006): Parameter 'data' implicitly has an 'any' type.
71
43
 
72
- var trackCreateMedicareInvoice = function trackCreateMedicareInvoice(data) {
73
- return trackEvent('created-medicare-invoice', data);
74
- }; // @ts-expect-error TS(7006): Parameter 'data' implicitly has an 'any' type.
44
+ var trackCreateMedicareInvoice = function trackCreateMedicareInvoice(data) {}; // @ts-expect-error TS(7006): Parameter 'data' implicitly has an 'any' type.
75
45
 
76
- var trackCreatePatientFundedInvoice = function trackCreatePatientFundedInvoice(data) {
77
- return trackEvent('created-patient-funded-invoice', data);
78
- }; // @ts-expect-error TS(7006): Parameter 'data' implicitly has an 'any' type.
46
+ var trackCreatePatientFundedInvoice = function trackCreatePatientFundedInvoice(data) {}; // @ts-expect-error TS(7006): Parameter 'data' implicitly has an 'any' type.
79
47
 
80
- var trackCreateNDISInvoice = function trackCreateNDISInvoice(data) {
81
- return trackEvent('created-ndis-invoice', data);
82
- }; // @ts-expect-error TS(7006): Parameter 'data' implicitly has an 'any' type.
48
+ var trackCreateNDISInvoice = function trackCreateNDISInvoice(data) {}; // @ts-expect-error TS(7006): Parameter 'data' implicitly has an 'any' type.
83
49
 
84
- var trackCreateOHCInvoice = function trackCreateOHCInvoice(data) {
85
- return trackEvent('created-ohc-invoice', data);
86
- }; // @ts-expect-error TS(7006): Parameter 'data' implicitly has an 'any' type.
50
+ var trackCreateOHCInvoice = function trackCreateOHCInvoice(data) {}; // @ts-expect-error TS(7006): Parameter 'data' implicitly has an 'any' type.
87
51
 
88
- var trackCreateVirtualTerminalInvoice = function trackCreateVirtualTerminalInvoice(data) {
89
- return trackEvent('created-virtual-terminal-invoice', data);
90
- }; // @ts-expect-error TS(7006): Parameter 'data' implicitly has an 'any' type.
52
+ var trackCreateVirtualTerminalInvoice = function trackCreateVirtualTerminalInvoice(data) {}; // @ts-expect-error TS(7006): Parameter 'data' implicitly has an 'any' type.
91
53
 
92
- var trackCreateQuote = function trackCreateQuote(data) {
93
- return trackEvent('created-quote', data);
94
- }; // @ts-expect-error TS(2339): Property 'Intercom' does not exist on type 'Window... Remove this comment to see the full error message
54
+ var trackCreateQuote = function trackCreateQuote(data) {}; // @ts-expect-error TS(2339): Property 'Intercom' does not exist on type 'Window... Remove this comment to see the full error message
95
55
 
96
- var updateIntercom = function updateIntercom(data) {
97
- return window.Intercom('update', data);
98
- }; // eslint-disable-line new-cap
56
+ var updateIntercom = function updateIntercom(data) {}; // eslint-disable-line new-cap
99
57
 
100
58
  var intercom = {};
101
59
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medipass/utils",
3
- "version": "11.84.5",
3
+ "version": "11.84.6-test-remove-intercom.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -48,5 +48,5 @@
48
48
  "rimraf": "^2.6.2",
49
49
  "typescript": "4.8.4"
50
50
  },
51
- "gitHead": "04d7103ae52cbec56acb463abfbe0ebd3ef22fe7"
51
+ "gitHead": "eaf70ef81c621ed74132f8b22182e97d18559590"
52
52
  }