@metriport/shared 0.30.1 → 0.32.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.
@@ -15,17 +15,17 @@ export declare const cqlTransformSchema: z.ZodObject<{
15
15
  cxId: string;
16
16
  patientId: string;
17
17
  jobId?: string | undefined;
18
- mode?: "engine" | "cli" | undefined;
19
18
  patientBundleS3Key?: string | undefined;
20
19
  measuresToExecute?: string[] | undefined;
20
+ mode?: "engine" | "cli" | undefined;
21
21
  parameters?: Record<string, unknown> | undefined;
22
22
  }, {
23
23
  cxId: string;
24
24
  patientId: string;
25
25
  jobId?: string | undefined;
26
- mode?: "engine" | "cli" | undefined;
27
26
  patientBundleS3Key?: string | undefined;
28
27
  measuresToExecute?: string[] | undefined;
28
+ mode?: "engine" | "cli" | undefined;
29
29
  parameters?: Record<string, unknown> | undefined;
30
30
  }>;
31
31
  export type CqlTransformRequest = z.infer<typeof cqlTransformSchema>;
@@ -1,4 +1,3 @@
1
- export { makeAxiosInstance } from "./axios";
2
1
  export * from "./error";
3
2
  export * from "./http";
4
3
  export * from "./retry";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/net/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAC5C,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/net/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC"}
package/dist/net/index.js CHANGED
@@ -14,9 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.makeAxiosInstance = void 0;
18
- var axios_1 = require("./axios");
19
- Object.defineProperty(exports, "makeAxiosInstance", { enumerable: true, get: function () { return axios_1.makeAxiosInstance; } });
20
17
  __exportStar(require("./error"), exports);
21
18
  __exportStar(require("./http"), exports);
22
19
  __exportStar(require("./retry"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/net/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,iCAA4C;AAAnC,0GAAA,iBAAiB,OAAA;AAC1B,0CAAwB;AACxB,yCAAuB;AACvB,0CAAwB;AACxB,wCAAsB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/net/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,yCAAuB;AACvB,0CAAwB;AACxB,wCAAsB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metriport/shared",
3
- "version": "0.30.1",
3
+ "version": "0.32.1",
4
4
  "description": "Common code shared across packages - by Metriport Inc.",
5
5
  "author": "Metriport Inc. <contact@metriport.com>",
6
6
  "homepage": "https://metriport.com/",
@@ -127,5 +127,6 @@
127
127
  "ts-essentials": "^9.3.1",
128
128
  "ts-jest": "29.1.1",
129
129
  "typescript": "^4.9.5"
130
- }
130
+ },
131
+ "gitHead": "ac98d7855f52db1edd7f16ae5d8a313f974f3875"
131
132
  }
@@ -1,3 +0,0 @@
1
- import { AxiosInstance, CreateAxiosDefaults } from "axios";
2
- export declare function makeAxiosInstance(config?: Partial<CreateAxiosDefaults>): AxiosInstance;
3
- //# sourceMappingURL=axios.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"axios.d.ts","sourceRoot":"","sources":["../../src/net/axios.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAMlE,wBAAgB,iBAAiB,CAAC,MAAM,GAAE,OAAO,CAAC,mBAAmB,CAAM,GAAG,aAAa,CAQ1F"}
package/dist/net/axios.js DELETED
@@ -1,21 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.makeAxiosInstance = void 0;
7
- const axios_1 = __importDefault(require("axios"));
8
- const http_1 = __importDefault(require("http"));
9
- const https_1 = __importDefault(require("https"));
10
- const isLocalDevelopment = process.env["NODE_ENV"] !== "production";
11
- function makeAxiosInstance(config = {}) {
12
- const defaults = {};
13
- if (isLocalDevelopment) {
14
- // Fix IPv4 only by default so we don't get errors on local development from Axios trying to use IPv6.
15
- defaults.httpAgent = new http_1.default.Agent({ family: 4 });
16
- defaults.httpsAgent = new https_1.default.Agent({ family: 4 });
17
- }
18
- return axios_1.default.create({ ...defaults, ...config });
19
- }
20
- exports.makeAxiosInstance = makeAxiosInstance;
21
- //# sourceMappingURL=axios.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"axios.js","sourceRoot":"","sources":["../../src/net/axios.ts"],"names":[],"mappings":";;;;;;AAAA,kDAAkE;AAClE,gDAAwB;AACxB,kDAA0B;AAE1B,MAAM,kBAAkB,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,KAAK,YAAY,CAAC;AAEpE,SAAgB,iBAAiB,CAAC,SAAuC,EAAE;IACzE,MAAM,QAAQ,GAAiC,EAAE,CAAC;IAClD,IAAI,kBAAkB,EAAE;QACtB,sGAAsG;QACtG,QAAQ,CAAC,SAAS,GAAG,IAAI,cAAI,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC;QACnD,QAAQ,CAAC,UAAU,GAAG,IAAI,eAAK,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC;KACtD;IACD,OAAO,eAAK,CAAC,MAAM,CAAC,EAAE,GAAG,QAAQ,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC;AAClD,CAAC;AARD,8CAQC"}