@metriport/api-sdk 12.0.2-alpha.0 → 12.0.2

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.
@@ -213,9 +213,10 @@ export declare const personalIdentifierSchema: z.ZodUnion<[z.ZodObject<{
213
213
  }>]>;
214
214
  export type PersonalIdentifier = z.infer<typeof personalIdentifierSchema>;
215
215
  export declare const genderAtBirthSchema: z.ZodEnum<["F", "M", "O", "U"]>;
216
+ export declare const emailSchema: z.ZodString;
216
217
  export declare const contactSchema: z.ZodEffects<z.ZodObject<{
217
218
  phone: z.ZodUnion<[z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodNull]>, z.ZodUndefined]>;
218
- email: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodUndefined]>;
219
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
219
220
  }, "strip", z.ZodTypeAny, {
220
221
  phone?: string | null | undefined;
221
222
  email?: string | null | undefined;
@@ -410,7 +411,7 @@ export declare const demographicsSchema: z.ZodObject<{
410
411
  }>]>;
411
412
  contact: z.ZodUnion<[z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
412
413
  phone: z.ZodUnion<[z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodNull]>, z.ZodUndefined]>;
413
- email: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodUndefined]>;
414
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
414
415
  }, "strip", z.ZodTypeAny, {
415
416
  phone?: string | null | undefined;
416
417
  email?: string | null | undefined;
@@ -425,7 +426,7 @@ export declare const demographicsSchema: z.ZodObject<{
425
426
  email?: string | null | undefined;
426
427
  }>, "many">>, z.ZodOptional<z.ZodEffects<z.ZodObject<{
427
428
  phone: z.ZodUnion<[z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodNull]>, z.ZodUndefined]>;
428
- email: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodUndefined]>;
429
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
429
430
  }, "strip", z.ZodTypeAny, {
430
431
  phone?: string | null | undefined;
431
432
  email?: string | null | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"demographics.d.ts","sourceRoot":"","sources":["../../../src/medical/models/demographics.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,0BAA0B,kBAAmB,CAAC;AAC3D,eAAO,MAAM,gCAAgC,6BAA8B,CAAC;AAC5E,MAAM,MAAM,0BAA0B,GAAG,CAAC,OAAO,0BAA0B,CAAC,CAAC,MAAM,CAAC,CAAC;AACrF,MAAM,MAAM,gCAAgC,GAAG,CAAC,OAAO,gCAAgC,CAAC,CAAC,MAAM,CAAC,CAAC;AAmBjG,eAAO,MAAM,6BAA6B;;;;;;;;;EAGxC,CAAC;AACH,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEjD,CAAC;AACF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC;AAE5F,eAAO,MAAM,2BAA2B;;;;;;EAEtC,CAAC;AACH,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE/C,CAAC;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AAExF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEpC,CAAC;AACF,MAAM,MAAM,kBAAkB,GA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQ7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.demographicsSchema = exports.contactSchema = exports.genderAtBirthSchema = exports.personalIdentifierSchema = exports.generalTypeIdentifierWithBaseSchema = exports.generalTypeIdentifierSchema = exports.driverLicenseIdentifierWithBaseSchema = exports.driverLicenseIdentifierSchema = exports.driversLicensePersonalIdentifier = exports.generalPersonalIdentifiers = void 0;
3
+ exports.demographicsSchema = exports.contactSchema = exports.emailSchema = exports.genderAtBirthSchema = exports.personalIdentifierSchema = exports.generalTypeIdentifierWithBaseSchema = exports.generalTypeIdentifierSchema = exports.driverLicenseIdentifierWithBaseSchema = exports.driverLicenseIdentifierSchema = exports.driversLicensePersonalIdentifier = exports.generalPersonalIdentifiers = void 0;
4
4
  const shared_1 = require("@metriport/shared");
5
5
  const zod_1 = require("zod");
6
6
  const shared_2 = require("../../shared");
@@ -33,6 +33,7 @@ exports.generalTypeIdentifierSchema = zod_1.z.object({
33
33
  exports.generalTypeIdentifierWithBaseSchema = basePersonalIdentifierSchema.merge(exports.generalTypeIdentifierSchema);
34
34
  exports.personalIdentifierSchema = exports.driverLicenseIdentifierWithBaseSchema.or(exports.generalTypeIdentifierWithBaseSchema);
35
35
  exports.genderAtBirthSchema = zod_1.z.enum(["F", "M", "O", "U"]);
36
+ exports.emailSchema = zod_1.z.string().email();
36
37
  exports.contactSchema = zod_1.z
37
38
  .object({
38
39
  phone: zod_1.z.coerce
@@ -43,7 +44,7 @@ exports.contactSchema = zod_1.z
43
44
  })
44
45
  .or(zod_1.z.null())
45
46
  .or(zod_1.z.undefined()),
46
- email: zod_1.z.string().email().or(zod_1.z.null()).or(zod_1.z.undefined()),
47
+ email: exports.emailSchema.nullish(),
47
48
  })
48
49
  .refine(c => c.email || c.phone, { message: "Either email or phone must be present" });
49
50
  exports.demographicsSchema = zod_1.z.object({
@@ -1 +1 @@
1
- {"version":3,"file":"demographics.js","sourceRoot":"","sources":["../../../src/medical/models/demographics.ts"],"names":[],"mappings":";;;AAAA,8CAK2B;AAC3B,6BAAwB;AACxB,yCAAoE;AACpE,8CAAiD;AACjD,8CAAiD;AAEpC,QAAA,0BAA0B,GAAG,CAAC,KAAK,CAAU,CAAC;AAC9C,QAAA,gCAAgC,GAAG,CAAC,gBAAgB,CAAU,CAAC;AAI5E,MAAM,4BAA4B,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,MAAM,EAAE,OAAC;SACN,MAAM,CAAC;QACN,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;QACjB,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAC3B,CAAC;SACD,EAAE,CACD,OAAC,CAAC,MAAM,CAAC;QACP,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC5B,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;KAChB,CAAC,CACH;SACA,QAAQ,EAAE;IACb,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC;AAEU,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IACpD,IAAI,EAAE,OAAC,CAAC,IAAI,CAAC,wCAAgC,CAAC;IAC9C,KAAK,EAAE,uBAAa;CACrB,CAAC,CAAC;AACU,QAAA,qCAAqC,GAAG,4BAA4B,CAAC,KAAK,CACrF,qCAA6B,CAC9B,CAAC;AAGW,QAAA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C,CAAC,QAAQ,EAAE;IACjE,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,uBAAa,CAAC,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAC,uBAAa,CAAC;IAC5D,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,qBAAa,CAAC,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAC,qBAAa,CAAC,QAAQ,EAAE,CAAC;CACxE,CAAC,CAAC"}
@@ -180,7 +180,7 @@ export declare const patientCreateSchema: z.ZodObject<{
180
180
  }>]>;
181
181
  contact: z.ZodUnion<[z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
182
182
  phone: z.ZodUnion<[z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodNull]>, z.ZodUndefined]>;
183
- email: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodUndefined]>;
183
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
184
184
  }, "strip", z.ZodTypeAny, {
185
185
  phone?: string | null | undefined;
186
186
  email?: string | null | undefined;
@@ -195,7 +195,7 @@ export declare const patientCreateSchema: z.ZodObject<{
195
195
  email?: string | null | undefined;
196
196
  }>, "many">>, z.ZodOptional<z.ZodEffects<z.ZodObject<{
197
197
  phone: z.ZodUnion<[z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodNull]>, z.ZodUndefined]>;
198
- email: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodUndefined]>;
198
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
199
199
  }, "strip", z.ZodTypeAny, {
200
200
  phone?: string | null | undefined;
201
201
  email?: string | null | undefined;
@@ -600,7 +600,7 @@ export declare const patientUpdateSchema: z.ZodObject<{
600
600
  }>]>;
601
601
  contact: z.ZodUnion<[z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
602
602
  phone: z.ZodUnion<[z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodNull]>, z.ZodUndefined]>;
603
- email: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodUndefined]>;
603
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
604
604
  }, "strip", z.ZodTypeAny, {
605
605
  phone?: string | null | undefined;
606
606
  email?: string | null | undefined;
@@ -615,7 +615,7 @@ export declare const patientUpdateSchema: z.ZodObject<{
615
615
  email?: string | null | undefined;
616
616
  }>, "many">>, z.ZodOptional<z.ZodEffects<z.ZodObject<{
617
617
  phone: z.ZodUnion<[z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodNull]>, z.ZodUndefined]>;
618
- email: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodUndefined]>;
618
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
619
619
  }, "strip", z.ZodTypeAny, {
620
620
  phone?: string | null | undefined;
621
621
  email?: string | null | undefined;
@@ -1028,7 +1028,7 @@ export declare const patientSchema: z.ZodObject<{
1028
1028
  }>]>;
1029
1029
  contact: z.ZodUnion<[z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
1030
1030
  phone: z.ZodUnion<[z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodNull]>, z.ZodUndefined]>;
1031
- email: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodUndefined]>;
1031
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1032
1032
  }, "strip", z.ZodTypeAny, {
1033
1033
  phone?: string | null | undefined;
1034
1034
  email?: string | null | undefined;
@@ -1043,7 +1043,7 @@ export declare const patientSchema: z.ZodObject<{
1043
1043
  email?: string | null | undefined;
1044
1044
  }>, "many">>, z.ZodOptional<z.ZodEffects<z.ZodObject<{
1045
1045
  phone: z.ZodUnion<[z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodNull]>, z.ZodUndefined]>;
1046
- email: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodUndefined]>;
1046
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1047
1047
  }, "strip", z.ZodTypeAny, {
1048
1048
  phone?: string | null | undefined;
1049
1049
  email?: string | null | undefined;
@@ -1458,7 +1458,7 @@ export declare const patientListSchema: z.ZodObject<{
1458
1458
  }>]>;
1459
1459
  contact: z.ZodUnion<[z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
1460
1460
  phone: z.ZodUnion<[z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodNull]>, z.ZodUndefined]>;
1461
- email: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodUndefined]>;
1461
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1462
1462
  }, "strip", z.ZodTypeAny, {
1463
1463
  phone?: string | null | undefined;
1464
1464
  email?: string | null | undefined;
@@ -1473,7 +1473,7 @@ export declare const patientListSchema: z.ZodObject<{
1473
1473
  email?: string | null | undefined;
1474
1474
  }>, "many">>, z.ZodOptional<z.ZodEffects<z.ZodObject<{
1475
1475
  phone: z.ZodUnion<[z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodNull]>, z.ZodUndefined]>;
1476
- email: z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNull]>, z.ZodUndefined]>;
1476
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1477
1477
  }, "strip", z.ZodTypeAny, {
1478
1478
  phone?: string | null | undefined;
1479
1479
  email?: string | null | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metriport/api-sdk",
3
- "version": "12.0.2-alpha.0",
3
+ "version": "12.0.2",
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/",
@@ -57,8 +57,8 @@
57
57
  },
58
58
  "dependencies": {
59
59
  "@medplum/fhirtypes": "^2.0.32",
60
- "@metriport/commonwell-sdk": "^5.0.2-alpha.0",
61
- "@metriport/shared": "^0.11.2-alpha.0",
60
+ "@metriport/commonwell-sdk": "^5.0.2",
61
+ "@metriport/shared": "^0.11.2",
62
62
  "axios": "^1.4.0",
63
63
  "dayjs": "^1.11.7",
64
64
  "dotenv": "^16.3.1",
@@ -76,5 +76,5 @@
76
76
  "ts-jest": "29.1.1",
77
77
  "typescript": "^4.9.5"
78
78
  },
79
- "gitHead": "d426f01238b5992703add026e5d264650083e51c"
79
+ "gitHead": "0018c6b8011c0302e614119c34940b96e8a674aa"
80
80
  }