@metriport/api-sdk 7.6.1 → 7.6.2-alpha.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.
@@ -4,13 +4,13 @@ exports.facilityListSchema = exports.facilitySchema = exports.facilityCreateSche
4
4
  const zod_1 = require("zod");
5
5
  const address_1 = require("./common/address");
6
6
  const base_update_1 = require("./common/base-update");
7
- const validate_npi_1 = require("@metriport/commonwell-sdk/common/validate-npi");
7
+ const shared_1 = require("@metriport/shared");
8
8
  exports.facilityCreateSchema = zod_1.z.object({
9
9
  name: zod_1.z.string().min(1),
10
10
  npi: zod_1.z
11
11
  .string()
12
12
  .length(10)
13
- .refine(npi => (0, validate_npi_1.validateNPI)(npi), { message: "NPI is not valid" }),
13
+ .refine(npi => (0, shared_1.validateNPI)(npi), { message: "NPI is not valid" }),
14
14
  tin: zod_1.z.string().optional().nullable(),
15
15
  active: zod_1.z.boolean().optional().nullable(),
16
16
  address: address_1.addressSchema,
@@ -1 +1 @@
1
- {"version":3,"file":"facility.js","sourceRoot":"","sources":["../../../src/medical/models/facility.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,8CAAiD;AACjD,sDAAwD;AACxD,gFAA4E;AAE/D,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACvB,GAAG,EAAE,OAAC;SACH,MAAM,EAAE;SACR,MAAM,CAAC,EAAE,CAAC;SACV,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,IAAA,0BAAW,EAAC,GAAG,CAAC,EAAE,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC;IACnE,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACrC,MAAM,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACzC,OAAO,EAAE,uBAAa;CACvB,CAAC,CAAC;AAGU,QAAA,cAAc,GAAG,4BAAoB,CAAC,KAAK,CAAC,8BAAgB,CAAC,CAAC;AAG9D,QAAA,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,UAAU,EAAE,OAAC,CAAC,KAAK,CAAC,sBAAc,CAAC;CACpC,CAAC,CAAC"}
1
+ {"version":3,"file":"facility.js","sourceRoot":"","sources":["../../../src/medical/models/facility.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,8CAAiD;AACjD,sDAAwD;AACxD,8CAAgD;AAEnC,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACvB,GAAG,EAAE,OAAC;SACH,MAAM,EAAE;SACR,MAAM,CAAC,EAAE,CAAC;SACV,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,IAAA,oBAAW,EAAC,GAAG,CAAC,EAAE,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC;IACnE,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACrC,MAAM,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IACzC,OAAO,EAAE,uBAAa;CACvB,CAAC,CAAC;AAGU,QAAA,cAAc,GAAG,4BAAoB,CAAC,KAAK,CAAC,8BAAgB,CAAC,CAAC;AAG9D,QAAA,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,UAAU,EAAE,OAAC,CAAC,KAAK,CAAC,sBAAc,CAAC;CACpC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metriport/api-sdk",
3
- "version": "7.6.1",
3
+ "version": "7.6.2-alpha.0",
4
4
  "description": "Metriport helps you access and manage health and medical data, through a single open source API.",
5
5
  "author": "Metriport Inc. <contact@metriport.com>",
6
6
  "homepage": "https://metriport.com/",
@@ -56,7 +56,8 @@
56
56
  "url": "https://github.com/metriport/metriport/issues"
57
57
  },
58
58
  "dependencies": {
59
- "@metriport/commonwell-sdk": "^4.9.1",
59
+ "@metriport/commonwell-sdk": "^4.9.2-alpha.0",
60
+ "@metriport/shared": "^0.1.1-alpha.1",
60
61
  "axios": "^1.3.4",
61
62
  "dayjs": "^1.11.7",
62
63
  "dotenv": "^16.3.1",
@@ -74,5 +75,5 @@
74
75
  "ts-jest": "29.1.1",
75
76
  "typescript": "^4.9.5"
76
77
  },
77
- "gitHead": "096a630d04baf1325a443220b412a42aa2a15b15"
78
+ "gitHead": "48c79801631e4cf06a57ffdd648b0c92815d31ac"
78
79
  }