@metriport/api-sdk 18.0.5 → 18.0.6

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.
@@ -119,7 +119,7 @@ export declare const addressSchema: z.ZodObject<{
119
119
  WI: import("@metriport/shared").USState.WI;
120
120
  WY: import("@metriport/shared").USState.WY;
121
121
  }>, import("@metriport/shared").USState, unknown>, z.ZodEffects<z.ZodNativeEnum<typeof import("@metriport/shared").USTerritory>, import("@metriport/shared").USTerritory, unknown>]>;
122
- zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
122
+ zip: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
123
123
  coordinates: z.ZodOptional<z.ZodObject<{
124
124
  lat: z.ZodNumber;
125
125
  lon: z.ZodNumber;
@@ -1 +1 @@
1
- {"version":3,"file":"address.d.ts","sourceRoot":"","sources":["../../../../src/medical/models/common/address.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,mBAAmB;;;;;;;;;EAG9B,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oLAAsC,CAAC;AAE3E,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAaxB,CAAC;AAEH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
1
+ {"version":3,"file":"address.d.ts","sourceRoot":"","sources":["../../../../src/medical/models/common/address.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,mBAAmB;;;;;;;;;EAG9B,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oLAAsC,CAAC;AAE3E,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBxB,CAAC;AAEH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
@@ -4,22 +4,24 @@ exports.addressSchema = exports.usStateForAddressSchema = exports.geoCoordinateS
4
4
  const shared_1 = require("@metriport/shared");
5
5
  const zod_1 = require("zod");
6
6
  const us_data_1 = require("./us-data");
7
- const zipLength = 5;
8
7
  exports.geoCoordinateSchema = zod_1.z.object({
9
8
  lat: zod_1.z.number(),
10
9
  lon: zod_1.z.number(),
11
10
  });
12
11
  exports.usStateForAddressSchema = us_data_1.usStateSchema.or(us_data_1.usTerritorySchema);
13
12
  exports.addressSchema = zod_1.z.object({
14
- addressLine1: shared_1.defaultStringSchema.min(1, { message: "Address line must be specified." }),
13
+ addressLine1: shared_1.defaultStringSchema.min(1, { message: "Address line must be specified" }),
15
14
  addressLine2: shared_1.defaultOptionalStringSchema,
16
- city: shared_1.defaultStringSchema.min(1, { message: "City must be specified." }),
15
+ city: shared_1.defaultStringSchema.min(1, { message: "City must be specified" }),
17
16
  state: exports.usStateForAddressSchema,
18
17
  zip: zod_1.z.coerce
19
18
  .string()
20
19
  .transform(zipStr => (0, shared_1.stripNonNumericChars)(zipStr))
21
- .refine(zip => zip.length === zipLength, {
22
- message: `Zip must be a string consisting of ${zipLength} numbers.`,
20
+ .refine(zip => (0, shared_1.isValidZipCodeLength)(zip), {
21
+ message: `Zip must be a string consisting of ${shared_1.zipLength} numbers`,
22
+ })
23
+ .refine(zipStr => (0, shared_1.isValidZipCode)(zipStr), {
24
+ message: `Invalid zip code`,
23
25
  }),
24
26
  coordinates: exports.geoCoordinateSchema.optional(),
25
27
  country: zod_1.z.literal("USA").optional().default("USA"),
@@ -1 +1 @@
1
- {"version":3,"file":"address.js","sourceRoot":"","sources":["../../../../src/medical/models/common/address.ts"],"names":[],"mappings":";;;AAAA,8CAI2B;AAC3B,6BAAwB;AACxB,uCAA6D;AAE7D,MAAM,SAAS,GAAG,CAAC,CAAC;AAEP,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAC;AAEU,QAAA,uBAAuB,GAAG,uBAAa,CAAC,EAAE,CAAC,2BAAiB,CAAC,CAAC;AAE9D,QAAA,aAAa,GAAG,OAAC,CAAC,MAAM,CAAC;IACpC,YAAY,EAAE,4BAAmB,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,iCAAiC,EAAE,CAAC;IACxF,YAAY,EAAE,oCAA2B;IACzC,IAAI,EAAE,4BAAmB,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,yBAAyB,EAAE,CAAC;IACxE,KAAK,EAAE,+BAAuB;IAC9B,GAAG,EAAE,OAAC,CAAC,MAAM;SACV,MAAM,EAAE;SACR,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC,IAAA,6BAAoB,EAAC,MAAM,CAAC,CAAC;SACjD,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,MAAM,KAAK,SAAS,EAAE;QACvC,OAAO,EAAE,sCAAsC,SAAS,WAAW;KACpE,CAAC;IACJ,WAAW,EAAE,2BAAmB,CAAC,QAAQ,EAAE;IAC3C,OAAO,EAAE,OAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;CACpD,CAAC,CAAC"}
1
+ {"version":3,"file":"address.js","sourceRoot":"","sources":["../../../../src/medical/models/common/address.ts"],"names":[],"mappings":";;;AAAA,8CAO2B;AAC3B,6BAAwB;AACxB,uCAA6D;AAEhD,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAC;AAEU,QAAA,uBAAuB,GAAG,uBAAa,CAAC,EAAE,CAAC,2BAAiB,CAAC,CAAC;AAE9D,QAAA,aAAa,GAAG,OAAC,CAAC,MAAM,CAAC;IACpC,YAAY,EAAE,4BAAmB,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,gCAAgC,EAAE,CAAC;IACvF,YAAY,EAAE,oCAA2B;IACzC,IAAI,EAAE,4BAAmB,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,wBAAwB,EAAE,CAAC;IACvE,KAAK,EAAE,+BAAuB;IAC9B,GAAG,EAAE,OAAC,CAAC,MAAM;SACV,MAAM,EAAE;SACR,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC,IAAA,6BAAoB,EAAC,MAAM,CAAC,CAAC;SACjD,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,IAAA,6BAAoB,EAAC,GAAG,CAAC,EAAE;QACxC,OAAO,EAAE,sCAAsC,kBAAS,UAAU;KACnE,CAAC;SACD,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,IAAA,uBAAc,EAAC,MAAM,CAAC,EAAE;QACxC,OAAO,EAAE,kBAAkB;KAC5B,CAAC;IACJ,WAAW,EAAE,2BAAmB,CAAC,QAAQ,EAAE;IAC3C,OAAO,EAAE,OAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;CACpD,CAAC,CAAC"}
@@ -373,10 +373,10 @@ export declare const personalIdentifierSchema: z.ZodUnion<[z.ZodObject<z.objectU
373
373
  }>]>;
374
374
  export type PersonalIdentifier = z.infer<typeof personalIdentifierSchema>;
375
375
  export declare const genderAtBirthSchema: z.ZodEnum<["F", "M", "O", "U"]>;
376
- export declare const emailSchema: z.ZodString;
376
+ export declare const emailSchema: z.ZodEffects<z.ZodString, string, string>;
377
377
  export declare const contactSchema: z.ZodEffects<z.ZodObject<{
378
378
  phone: z.ZodUnion<[z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodNull]>, z.ZodUndefined]>;
379
- email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
379
+ email: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
380
380
  }, "strip", z.ZodTypeAny, {
381
381
  phone?: string | null | undefined;
382
382
  email?: string | null | undefined;
@@ -601,7 +601,7 @@ export declare const demographicsSchema: z.ZodObject<{
601
601
  WI: import("@metriport/shared").USState.WI;
602
602
  WY: import("@metriport/shared").USState.WY;
603
603
  }>, import("@metriport/shared").USState, unknown>, z.ZodEffects<z.ZodNativeEnum<typeof import("@metriport/shared").USTerritory>, import("@metriport/shared").USTerritory, unknown>]>;
604
- zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
604
+ zip: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
605
605
  coordinates: z.ZodOptional<z.ZodObject<{
606
606
  lat: z.ZodNumber;
607
607
  lon: z.ZodNumber;
@@ -692,7 +692,7 @@ export declare const demographicsSchema: z.ZodObject<{
692
692
  WI: import("@metriport/shared").USState.WI;
693
693
  WY: import("@metriport/shared").USState.WY;
694
694
  }>, import("@metriport/shared").USState, unknown>, z.ZodEffects<z.ZodNativeEnum<typeof import("@metriport/shared").USTerritory>, import("@metriport/shared").USTerritory, unknown>]>;
695
- zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
695
+ zip: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
696
696
  coordinates: z.ZodOptional<z.ZodObject<{
697
697
  lat: z.ZodNumber;
698
698
  lon: z.ZodNumber;
@@ -729,7 +729,7 @@ export declare const demographicsSchema: z.ZodObject<{
729
729
  }>]>;
730
730
  contact: z.ZodUnion<[z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
731
731
  phone: z.ZodUnion<[z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodNull]>, z.ZodUndefined]>;
732
- email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
732
+ email: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
733
733
  }, "strip", z.ZodTypeAny, {
734
734
  phone?: string | null | undefined;
735
735
  email?: string | null | undefined;
@@ -744,7 +744,7 @@ export declare const demographicsSchema: z.ZodObject<{
744
744
  email?: string | null | undefined;
745
745
  }>, "many">>, z.ZodOptional<z.ZodEffects<z.ZodObject<{
746
746
  phone: z.ZodUnion<[z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodNull]>, z.ZodUndefined]>;
747
- email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
747
+ email: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
748
748
  }, "strip", z.ZodTypeAny, {
749
749
  phone?: string | null | undefined;
750
750
  email?: string | null | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"demographics.d.ts","sourceRoot":"","sources":["../../../src/medical/models/demographics.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,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;AA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQ7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
@@ -32,7 +32,9 @@ exports.generalTypeIdentifierSchema = zod_1.z.object({
32
32
  exports.generalTypeIdentifierWithBaseSchema = basePersonalIdentifierSchema.merge(exports.generalTypeIdentifierSchema);
33
33
  exports.personalIdentifierSchema = exports.driverLicenseIdentifierWithBaseSchema.or(exports.generalTypeIdentifierWithBaseSchema);
34
34
  exports.genderAtBirthSchema = zod_1.z.enum(["F", "M", "O", "U"]);
35
- exports.emailSchema = zod_1.z.string().email();
35
+ exports.emailSchema = zod_1.z.string().refine(shared_1.isEmailValid, {
36
+ message: "Invalid email address",
37
+ });
36
38
  exports.contactSchema = zod_1.z
37
39
  .object({
38
40
  phone: zod_1.z.coerce
@@ -1 +1 @@
1
- {"version":3,"file":"demographics.js","sourceRoot":"","sources":["../../../src/medical/models/demographics.ts"],"names":[],"mappings":";;;AAAA,8CAO2B;AAC3B,6BAAwB;AACxB,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,EAA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C;SACD,EAAE,CAAC,OAAC,CAAC,IAAI,EAAE,CAAC;SACZ,EAAE,CAAC,OAAC,CAAC,SAAS,EAAE,CAAC;IACpB,KAAK,EAAE,mBAAW,CAAC,OAAO,EAAE;CAC7B,CAAC;KACD,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,OAAO,EAAE,uCAAuC,EAAE,CAAC,CAAC;AAG5E,QAAA,kBAAkB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,SAAS,EAAE,gCAAuB;IAClC,QAAQ,EAAE,gCAAuB;IACjC,GAAG,EAAE,qCAA4B;IACjC,aAAa,EAAE,2BAAmB;IAClC,mBAAmB,EAAE,OAAC,CAAC,KAAK,CAAC,gCAAwB,CAAC,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"}
@@ -61,7 +61,7 @@ export declare const facilityCreateSchema: z.ZodObject<{
61
61
  WI: import("@metriport/shared").USState.WI;
62
62
  WY: import("@metriport/shared").USState.WY;
63
63
  }>, import("@metriport/shared").USState, unknown>, z.ZodEffects<z.ZodNativeEnum<typeof import("@metriport/shared").USTerritory>, import("@metriport/shared").USTerritory, unknown>]>;
64
- zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
64
+ zip: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
65
65
  coordinates: z.ZodOptional<z.ZodObject<{
66
66
  lat: z.ZodNumber;
67
67
  lon: z.ZodNumber;
@@ -194,7 +194,7 @@ export declare const facilitySchema: z.ZodObject<z.objectUtil.extendShape<{
194
194
  WI: import("@metriport/shared").USState.WI;
195
195
  WY: import("@metriport/shared").USState.WY;
196
196
  }>, import("@metriport/shared").USState, unknown>, z.ZodEffects<z.ZodNativeEnum<typeof import("@metriport/shared").USTerritory>, import("@metriport/shared").USTerritory, unknown>]>;
197
- zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
197
+ zip: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
198
198
  coordinates: z.ZodOptional<z.ZodObject<{
199
199
  lat: z.ZodNumber;
200
200
  lon: z.ZodNumber;
@@ -335,7 +335,7 @@ export declare const facilityListSchema: z.ZodObject<{
335
335
  WI: import("@metriport/shared").USState.WI;
336
336
  WY: import("@metriport/shared").USState.WY;
337
337
  }>, import("@metriport/shared").USState, unknown>, z.ZodEffects<z.ZodNativeEnum<typeof import("@metriport/shared").USTerritory>, import("@metriport/shared").USTerritory, unknown>]>;
338
- zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
338
+ zip: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
339
339
  coordinates: z.ZodOptional<z.ZodObject<{
340
340
  lat: z.ZodNumber;
341
341
  lon: z.ZodNumber;
@@ -61,7 +61,7 @@ export declare const organizationCreateSchema: z.ZodObject<{
61
61
  WI: import("@metriport/shared").USState.WI;
62
62
  WY: import("@metriport/shared").USState.WY;
63
63
  }>, import("@metriport/shared").USState, unknown>, z.ZodEffects<z.ZodNativeEnum<typeof import("@metriport/shared").USTerritory>, import("@metriport/shared").USTerritory, unknown>]>;
64
- zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
64
+ zip: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
65
65
  coordinates: z.ZodOptional<z.ZodObject<{
66
66
  lat: z.ZodNumber;
67
67
  lon: z.ZodNumber;
@@ -190,7 +190,7 @@ export declare const organizationSchema: z.ZodObject<z.objectUtil.extendShape<z.
190
190
  WI: import("@metriport/shared").USState.WI;
191
191
  WY: import("@metriport/shared").USState.WY;
192
192
  }>, import("@metriport/shared").USState, unknown>, z.ZodEffects<z.ZodNativeEnum<typeof import("@metriport/shared").USTerritory>, import("@metriport/shared").USTerritory, unknown>]>;
193
- zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
193
+ zip: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
194
194
  coordinates: z.ZodOptional<z.ZodObject<{
195
195
  lat: z.ZodNumber;
196
196
  lon: z.ZodNumber;
@@ -210,7 +210,7 @@ export declare const patientCreateSchema: z.ZodObject<z.objectUtil.extendShape<z
210
210
  WI: import("@metriport/shared").USState.WI;
211
211
  WY: import("@metriport/shared").USState.WY;
212
212
  }>, import("@metriport/shared").USState, unknown>, z.ZodEffects<z.ZodNativeEnum<typeof import("@metriport/shared").USTerritory>, import("@metriport/shared").USTerritory, unknown>]>;
213
- zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
213
+ zip: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
214
214
  coordinates: z.ZodOptional<z.ZodObject<{
215
215
  lat: z.ZodNumber;
216
216
  lon: z.ZodNumber;
@@ -301,7 +301,7 @@ export declare const patientCreateSchema: z.ZodObject<z.objectUtil.extendShape<z
301
301
  WI: import("@metriport/shared").USState.WI;
302
302
  WY: import("@metriport/shared").USState.WY;
303
303
  }>, import("@metriport/shared").USState, unknown>, z.ZodEffects<z.ZodNativeEnum<typeof import("@metriport/shared").USTerritory>, import("@metriport/shared").USTerritory, unknown>]>;
304
- zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
304
+ zip: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
305
305
  coordinates: z.ZodOptional<z.ZodObject<{
306
306
  lat: z.ZodNumber;
307
307
  lon: z.ZodNumber;
@@ -338,7 +338,7 @@ export declare const patientCreateSchema: z.ZodObject<z.objectUtil.extendShape<z
338
338
  }>]>;
339
339
  contact: z.ZodUnion<[z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
340
340
  phone: z.ZodUnion<[z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodNull]>, z.ZodUndefined]>;
341
- email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
341
+ email: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
342
342
  }, "strip", z.ZodTypeAny, {
343
343
  phone?: string | null | undefined;
344
344
  email?: string | null | undefined;
@@ -353,7 +353,7 @@ export declare const patientCreateSchema: z.ZodObject<z.objectUtil.extendShape<z
353
353
  email?: string | null | undefined;
354
354
  }>, "many">>, z.ZodOptional<z.ZodEffects<z.ZodObject<{
355
355
  phone: z.ZodUnion<[z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodNull]>, z.ZodUndefined]>;
356
- email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
356
+ email: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
357
357
  }, "strip", z.ZodTypeAny, {
358
358
  phone?: string | null | undefined;
359
359
  email?: string | null | undefined;
@@ -751,7 +751,7 @@ export declare const patientUpdateSchema: z.ZodObject<z.objectUtil.extendShape<z
751
751
  WI: import("@metriport/shared").USState.WI;
752
752
  WY: import("@metriport/shared").USState.WY;
753
753
  }>, import("@metriport/shared").USState, unknown>, z.ZodEffects<z.ZodNativeEnum<typeof import("@metriport/shared").USTerritory>, import("@metriport/shared").USTerritory, unknown>]>;
754
- zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
754
+ zip: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
755
755
  coordinates: z.ZodOptional<z.ZodObject<{
756
756
  lat: z.ZodNumber;
757
757
  lon: z.ZodNumber;
@@ -842,7 +842,7 @@ export declare const patientUpdateSchema: z.ZodObject<z.objectUtil.extendShape<z
842
842
  WI: import("@metriport/shared").USState.WI;
843
843
  WY: import("@metriport/shared").USState.WY;
844
844
  }>, import("@metriport/shared").USState, unknown>, z.ZodEffects<z.ZodNativeEnum<typeof import("@metriport/shared").USTerritory>, import("@metriport/shared").USTerritory, unknown>]>;
845
- zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
845
+ zip: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
846
846
  coordinates: z.ZodOptional<z.ZodObject<{
847
847
  lat: z.ZodNumber;
848
848
  lon: z.ZodNumber;
@@ -879,7 +879,7 @@ export declare const patientUpdateSchema: z.ZodObject<z.objectUtil.extendShape<z
879
879
  }>]>;
880
880
  contact: z.ZodUnion<[z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
881
881
  phone: z.ZodUnion<[z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodNull]>, z.ZodUndefined]>;
882
- email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
882
+ email: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
883
883
  }, "strip", z.ZodTypeAny, {
884
884
  phone?: string | null | undefined;
885
885
  email?: string | null | undefined;
@@ -894,7 +894,7 @@ export declare const patientUpdateSchema: z.ZodObject<z.objectUtil.extendShape<z
894
894
  email?: string | null | undefined;
895
895
  }>, "many">>, z.ZodOptional<z.ZodEffects<z.ZodObject<{
896
896
  phone: z.ZodUnion<[z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodNull]>, z.ZodUndefined]>;
897
- email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
897
+ email: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
898
898
  }, "strip", z.ZodTypeAny, {
899
899
  phone?: string | null | undefined;
900
900
  email?: string | null | undefined;
@@ -1299,7 +1299,7 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<z.objec
1299
1299
  WI: import("@metriport/shared").USState.WI;
1300
1300
  WY: import("@metriport/shared").USState.WY;
1301
1301
  }>, import("@metriport/shared").USState, unknown>, z.ZodEffects<z.ZodNativeEnum<typeof import("@metriport/shared").USTerritory>, import("@metriport/shared").USTerritory, unknown>]>;
1302
- zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
1302
+ zip: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
1303
1303
  coordinates: z.ZodOptional<z.ZodObject<{
1304
1304
  lat: z.ZodNumber;
1305
1305
  lon: z.ZodNumber;
@@ -1390,7 +1390,7 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<z.objec
1390
1390
  WI: import("@metriport/shared").USState.WI;
1391
1391
  WY: import("@metriport/shared").USState.WY;
1392
1392
  }>, import("@metriport/shared").USState, unknown>, z.ZodEffects<z.ZodNativeEnum<typeof import("@metriport/shared").USTerritory>, import("@metriport/shared").USTerritory, unknown>]>;
1393
- zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
1393
+ zip: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
1394
1394
  coordinates: z.ZodOptional<z.ZodObject<{
1395
1395
  lat: z.ZodNumber;
1396
1396
  lon: z.ZodNumber;
@@ -1427,7 +1427,7 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<z.objec
1427
1427
  }>]>;
1428
1428
  contact: z.ZodUnion<[z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
1429
1429
  phone: z.ZodUnion<[z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodNull]>, z.ZodUndefined]>;
1430
- email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1430
+ email: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
1431
1431
  }, "strip", z.ZodTypeAny, {
1432
1432
  phone?: string | null | undefined;
1433
1433
  email?: string | null | undefined;
@@ -1442,7 +1442,7 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<z.objec
1442
1442
  email?: string | null | undefined;
1443
1443
  }>, "many">>, z.ZodOptional<z.ZodEffects<z.ZodObject<{
1444
1444
  phone: z.ZodUnion<[z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodNull]>, z.ZodUndefined]>;
1445
- email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1445
+ email: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
1446
1446
  }, "strip", z.ZodTypeAny, {
1447
1447
  phone?: string | null | undefined;
1448
1448
  email?: string | null | undefined;
@@ -1852,7 +1852,7 @@ export declare const patientListSchema: z.ZodObject<{
1852
1852
  WI: import("@metriport/shared").USState.WI;
1853
1853
  WY: import("@metriport/shared").USState.WY;
1854
1854
  }>, import("@metriport/shared").USState, unknown>, z.ZodEffects<z.ZodNativeEnum<typeof import("@metriport/shared").USTerritory>, import("@metriport/shared").USTerritory, unknown>]>;
1855
- zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
1855
+ zip: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
1856
1856
  coordinates: z.ZodOptional<z.ZodObject<{
1857
1857
  lat: z.ZodNumber;
1858
1858
  lon: z.ZodNumber;
@@ -1943,7 +1943,7 @@ export declare const patientListSchema: z.ZodObject<{
1943
1943
  WI: import("@metriport/shared").USState.WI;
1944
1944
  WY: import("@metriport/shared").USState.WY;
1945
1945
  }>, import("@metriport/shared").USState, unknown>, z.ZodEffects<z.ZodNativeEnum<typeof import("@metriport/shared").USTerritory>, import("@metriport/shared").USTerritory, unknown>]>;
1946
- zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
1946
+ zip: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
1947
1947
  coordinates: z.ZodOptional<z.ZodObject<{
1948
1948
  lat: z.ZodNumber;
1949
1949
  lon: z.ZodNumber;
@@ -1980,7 +1980,7 @@ export declare const patientListSchema: z.ZodObject<{
1980
1980
  }>]>;
1981
1981
  contact: z.ZodUnion<[z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
1982
1982
  phone: z.ZodUnion<[z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodNull]>, z.ZodUndefined]>;
1983
- email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1983
+ email: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
1984
1984
  }, "strip", z.ZodTypeAny, {
1985
1985
  phone?: string | null | undefined;
1986
1986
  email?: string | null | undefined;
@@ -1995,7 +1995,7 @@ export declare const patientListSchema: z.ZodObject<{
1995
1995
  email?: string | null | undefined;
1996
1996
  }>, "many">>, z.ZodOptional<z.ZodEffects<z.ZodObject<{
1997
1997
  phone: z.ZodUnion<[z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodNull]>, z.ZodUndefined]>;
1998
- email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1998
+ email: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
1999
1999
  }, "strip", z.ZodTypeAny, {
2000
2000
  phone?: string | null | undefined;
2001
2001
  email?: string | null | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metriport/api-sdk",
3
- "version": "18.0.5",
3
+ "version": "18.0.6",
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/",
@@ -44,7 +44,7 @@
44
44
  "typecheck": "tsc --noEmit",
45
45
  "lint": "npx eslint . --ext .ts",
46
46
  "lint-fix": "npm run lint --fix",
47
- "prettier-fix": "npx prettier '**/*.ts' --write",
47
+ "prettier-fix": "npx prettier '**/*.{js,ts,md}' --write --ignore-path ../../.prettierignore",
48
48
  "test": "jest --runInBand --detectOpenHandles --passWithNoTests",
49
49
  "test:e2e": "E2E=true jest --runInBand --detectOpenHandles"
50
50
  },
@@ -58,11 +58,12 @@
58
58
  },
59
59
  "dependencies": {
60
60
  "@medplum/fhirtypes": "^2.0.32",
61
- "@metriport/shared": "^0.26.5",
61
+ "@metriport/shared": "^0.26.6",
62
62
  "axios": "^1.8.2",
63
63
  "dayjs": "^1.11.7",
64
64
  "dotenv": "^16.3.1",
65
65
  "semver": ">=5.7.2",
66
+ "validator": "^13.15.15",
66
67
  "zod": "^3.22.1"
67
68
  },
68
69
  "devDependencies": {
@@ -77,5 +78,5 @@
77
78
  "ts-jest": "29.1.1",
78
79
  "typescript": "^4.9.5"
79
80
  },
80
- "gitHead": "bef38fce5ea71635e47ed0ad7042cf570f67d0be"
81
+ "gitHead": "54f58bc510b808fc8bfd805d2652cac52f4b3e1f"
81
82
  }