@metriport/api-sdk 17.3.0-alpha.0 → 17.3.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.
@@ -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.ZodString, string, unknown>;
122
+ zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
123
123
  coordinates: z.ZodOptional<z.ZodObject<{
124
124
  lat: z.ZodNumber;
125
125
  lon: z.ZodNumber;
@@ -145,9 +145,9 @@ export declare const addressSchema: z.ZodObject<{
145
145
  }, {
146
146
  addressLine1: string;
147
147
  city: string;
148
+ zip: string;
148
149
  addressLine2?: string | undefined;
149
150
  state?: unknown;
150
- zip?: unknown;
151
151
  coordinates?: {
152
152
  lat: number;
153
153
  lon: number;
@@ -1 +1 @@
1
- {"version":3,"file":"address.d.ts","sourceRoot":"","sources":["../../../../src/medical/models/common/address.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,mBAAmB;;;;;;;;;EAG9B,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oLAAsC,CAAC;AAE3E,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQxB,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":"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"}
@@ -4,6 +4,7 @@ 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;
7
8
  exports.geoCoordinateSchema = zod_1.z.object({
8
9
  lat: zod_1.z.number(),
9
10
  lon: zod_1.z.number(),
@@ -14,7 +15,12 @@ exports.addressSchema = zod_1.z.object({
14
15
  addressLine2: shared_1.defaultOptionalStringSchema,
15
16
  city: shared_1.defaultStringSchema.min(1, { message: "City must be specified." }),
16
17
  state: exports.usStateForAddressSchema,
17
- zip: us_data_1.usZipSchema,
18
+ zip: zod_1.z.coerce
19
+ .string()
20
+ .transform(zipStr => (0, shared_1.stripNonNumericChars)(zipStr))
21
+ .refine(zip => zip.length === zipLength, {
22
+ message: `Zip must be a string consisting of ${zipLength} numbers.`,
23
+ }),
18
24
  coordinates: exports.geoCoordinateSchema.optional(),
19
25
  country: zod_1.z.literal("USA").optional().default("USA"),
20
26
  });
@@ -1 +1 @@
1
- {"version":3,"file":"address.js","sourceRoot":"","sources":["../../../../src/medical/models/common/address.ts"],"names":[],"mappings":";;;AAAA,8CAAqF;AACrF,6BAAwB;AACxB,uCAA0E;AAE7D,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,qBAAW;IAChB,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,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"}
@@ -108,5 +108,4 @@ export declare const usStateSchema: z.ZodEffects<z.ZodNativeEnum<{
108
108
  }>, USStateShared, unknown>;
109
109
  export declare const USTerritory: typeof USTerritoryShared;
110
110
  export declare const usTerritorySchema: z.ZodEffects<z.ZodNativeEnum<typeof USTerritoryShared>, USTerritoryShared, unknown>;
111
- export declare const usZipSchema: z.ZodEffects<z.ZodString, string, unknown>;
112
111
  //# sourceMappingURL=us-data.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"us-data.d.ts","sourceRoot":"","sources":["../../../../src/medical/models/common/us-data.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,OAAO,IAAI,aAAa,EACxB,WAAW,IAAI,iBAAiB,EACjC,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEnB,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAGzB,CAAC;AAEF,eAAO,MAAM,WAAW,0BAAoB,CAAC;AAE7C,eAAO,MAAM,iBAAiB,qFAG7B,CAAC;AAEF,eAAO,MAAM,WAAW,4CAGvB,CAAC"}
1
+ {"version":3,"file":"us-data.d.ts","sourceRoot":"","sources":["../../../../src/medical/models/common/us-data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,WAAW,IAAI,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC/F,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEnB,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAGzB,CAAC;AAEF,eAAO,MAAM,WAAW,0BAAoB,CAAC;AAE7C,eAAO,MAAM,iBAAiB,qFAG7B,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.usZipSchema = exports.usTerritorySchema = exports.USTerritory = exports.usStateSchema = exports.USState = void 0;
3
+ exports.usTerritorySchema = exports.USTerritory = exports.usStateSchema = exports.USState = void 0;
4
4
  const shared_1 = require("@metriport/shared");
5
5
  const zod_1 = require("zod");
6
6
  exports.USState = {
@@ -9,5 +9,4 @@ exports.USState = {
9
9
  exports.usStateSchema = zod_1.z.preprocess(val => (typeof val === "string" ? val.toUpperCase().trim() : val), zod_1.z.nativeEnum(exports.USState));
10
10
  exports.USTerritory = shared_1.USTerritory;
11
11
  exports.usTerritorySchema = zod_1.z.preprocess(val => (typeof val === "string" ? val.toUpperCase().trim() : val), zod_1.z.nativeEnum(exports.USTerritory));
12
- exports.usZipSchema = zod_1.z.preprocess(val => (typeof val === "string" ? (0, shared_1.normalizeZipCodeNew)(val) : val), zod_1.z.string());
13
12
  //# sourceMappingURL=us-data.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"us-data.js","sourceRoot":"","sources":["../../../../src/medical/models/common/us-data.ts"],"names":[],"mappings":";;;AAAA,8CAI2B;AAC3B,6BAAwB;AAEX,QAAA,OAAO,GAAG;IACrB,GAAG,gBAAa;CACjB,CAAC;AAEW,QAAA,aAAa,GAAG,OAAC,CAAC,UAAU,CACvC,GAAG,CAAC,EAAE,CAAC,CAAC,OAAO,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,EACjE,OAAC,CAAC,UAAU,CAAC,eAAO,CAAC,CACtB,CAAC;AAEW,QAAA,WAAW,GAAG,oBAAiB,CAAC;AAEhC,QAAA,iBAAiB,GAAG,OAAC,CAAC,UAAU,CAC3C,GAAG,CAAC,EAAE,CAAC,CAAC,OAAO,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,EACjE,OAAC,CAAC,UAAU,CAAC,mBAAW,CAAC,CAC1B,CAAC;AAEW,QAAA,WAAW,GAAG,OAAC,CAAC,UAAU,CACrC,GAAG,CAAC,EAAE,CAAC,CAAC,OAAO,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAA,4BAAmB,EAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EACjE,OAAC,CAAC,MAAM,EAAE,CACX,CAAC"}
1
+ {"version":3,"file":"us-data.js","sourceRoot":"","sources":["../../../../src/medical/models/common/us-data.ts"],"names":[],"mappings":";;;AAAA,8CAA+F;AAC/F,6BAAwB;AAEX,QAAA,OAAO,GAAG;IACrB,GAAG,gBAAa;CACjB,CAAC;AAEW,QAAA,aAAa,GAAG,OAAC,CAAC,UAAU,CACvC,GAAG,CAAC,EAAE,CAAC,CAAC,OAAO,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,EACjE,OAAC,CAAC,UAAU,CAAC,eAAO,CAAC,CACtB,CAAC;AAEW,QAAA,WAAW,GAAG,oBAAiB,CAAC;AAEhC,QAAA,iBAAiB,GAAG,OAAC,CAAC,UAAU,CAC3C,GAAG,CAAC,EAAE,CAAC,CAAC,OAAO,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,EACjE,OAAC,CAAC,UAAU,CAAC,mBAAW,CAAC,CAC1B,CAAC"}
@@ -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.ZodString, string, unknown>;
604
+ zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
605
605
  coordinates: z.ZodOptional<z.ZodObject<{
606
606
  lat: z.ZodNumber;
607
607
  lon: z.ZodNumber;
@@ -627,9 +627,9 @@ export declare const demographicsSchema: z.ZodObject<{
627
627
  }, {
628
628
  addressLine1: string;
629
629
  city: string;
630
+ zip: string;
630
631
  addressLine2?: string | undefined;
631
632
  state?: unknown;
632
- zip?: unknown;
633
633
  coordinates?: {
634
634
  lat: number;
635
635
  lon: number;
@@ -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.ZodString, string, unknown>;
695
+ zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
696
696
  coordinates: z.ZodOptional<z.ZodObject<{
697
697
  lat: z.ZodNumber;
698
698
  lon: z.ZodNumber;
@@ -718,9 +718,9 @@ export declare const demographicsSchema: z.ZodObject<{
718
718
  }, {
719
719
  addressLine1: string;
720
720
  city: string;
721
+ zip: string;
721
722
  addressLine2?: string | undefined;
722
723
  state?: unknown;
723
- zip?: unknown;
724
724
  coordinates?: {
725
725
  lat: number;
726
726
  lon: number;
@@ -836,9 +836,9 @@ export declare const demographicsSchema: z.ZodObject<{
836
836
  address: {
837
837
  addressLine1: string;
838
838
  city: string;
839
+ zip: string;
839
840
  addressLine2?: string | undefined;
840
841
  state?: unknown;
841
- zip?: unknown;
842
842
  coordinates?: {
843
843
  lat: number;
844
844
  lon: number;
@@ -847,9 +847,9 @@ export declare const demographicsSchema: z.ZodObject<{
847
847
  } | [{
848
848
  addressLine1: string;
849
849
  city: string;
850
+ zip: string;
850
851
  addressLine2?: string | undefined;
851
852
  state?: unknown;
852
- zip?: unknown;
853
853
  coordinates?: {
854
854
  lat: number;
855
855
  lon: number;
@@ -858,9 +858,9 @@ export declare const demographicsSchema: z.ZodObject<{
858
858
  }, ...{
859
859
  addressLine1: string;
860
860
  city: string;
861
+ zip: string;
861
862
  addressLine2?: string | undefined;
862
863
  state?: unknown;
863
- zip?: unknown;
864
864
  coordinates?: {
865
865
  lat: number;
866
866
  lon: number;
@@ -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.ZodString, string, unknown>;
64
+ zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
65
65
  coordinates: z.ZodOptional<z.ZodObject<{
66
66
  lat: z.ZodNumber;
67
67
  lon: z.ZodNumber;
@@ -87,9 +87,9 @@ export declare const facilityCreateSchema: z.ZodObject<{
87
87
  }, {
88
88
  addressLine1: string;
89
89
  city: string;
90
+ zip: string;
90
91
  addressLine2?: string | undefined;
91
92
  state?: unknown;
92
- zip?: unknown;
93
93
  coordinates?: {
94
94
  lat: number;
95
95
  lon: number;
@@ -117,9 +117,9 @@ export declare const facilityCreateSchema: z.ZodObject<{
117
117
  address: {
118
118
  addressLine1: string;
119
119
  city: string;
120
+ zip: string;
120
121
  addressLine2?: string | undefined;
121
122
  state?: unknown;
122
- zip?: unknown;
123
123
  coordinates?: {
124
124
  lat: number;
125
125
  lon: number;
@@ -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.ZodString, string, unknown>;
197
+ zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
198
198
  coordinates: z.ZodOptional<z.ZodObject<{
199
199
  lat: z.ZodNumber;
200
200
  lon: z.ZodNumber;
@@ -220,9 +220,9 @@ export declare const facilitySchema: z.ZodObject<z.objectUtil.extendShape<{
220
220
  }, {
221
221
  addressLine1: string;
222
222
  city: string;
223
+ zip: string;
223
224
  addressLine2?: string | undefined;
224
225
  state?: unknown;
225
- zip?: unknown;
226
226
  coordinates?: {
227
227
  lat: number;
228
228
  lon: number;
@@ -256,9 +256,9 @@ export declare const facilitySchema: z.ZodObject<z.objectUtil.extendShape<{
256
256
  address: {
257
257
  addressLine1: string;
258
258
  city: string;
259
+ zip: string;
259
260
  addressLine2?: string | undefined;
260
261
  state?: unknown;
261
- zip?: unknown;
262
262
  coordinates?: {
263
263
  lat: number;
264
264
  lon: number;
@@ -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.ZodString, string, unknown>;
338
+ zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
339
339
  coordinates: z.ZodOptional<z.ZodObject<{
340
340
  lat: z.ZodNumber;
341
341
  lon: z.ZodNumber;
@@ -361,9 +361,9 @@ export declare const facilityListSchema: z.ZodObject<{
361
361
  }, {
362
362
  addressLine1: string;
363
363
  city: string;
364
+ zip: string;
364
365
  addressLine2?: string | undefined;
365
366
  state?: unknown;
366
- zip?: unknown;
367
367
  coordinates?: {
368
368
  lat: number;
369
369
  lon: number;
@@ -397,9 +397,9 @@ export declare const facilityListSchema: z.ZodObject<{
397
397
  address: {
398
398
  addressLine1: string;
399
399
  city: string;
400
+ zip: string;
400
401
  addressLine2?: string | undefined;
401
402
  state?: unknown;
402
- zip?: unknown;
403
403
  coordinates?: {
404
404
  lat: number;
405
405
  lon: number;
@@ -439,9 +439,9 @@ export declare const facilityListSchema: z.ZodObject<{
439
439
  address: {
440
440
  addressLine1: string;
441
441
  city: string;
442
+ zip: string;
442
443
  addressLine2?: string | undefined;
443
444
  state?: unknown;
444
- zip?: unknown;
445
445
  coordinates?: {
446
446
  lat: number;
447
447
  lon: number;
@@ -68,7 +68,7 @@ export declare const organizationCreateSchema: z.ZodObject<{
68
68
  WI: import("@metriport/shared/domain/address/state").USState.WI;
69
69
  WY: import("@metriport/shared/domain/address/state").USState.WY;
70
70
  }>, import("@metriport/shared/domain/address/state").USState, unknown>, z.ZodEffects<z.ZodNativeEnum<typeof import("@metriport/shared/domain/address/territory").USTerritory>, import("@metriport/shared/domain/address/territory").USTerritory, unknown>]>;
71
- zip: z.ZodEffects<z.ZodString, string, unknown>;
71
+ zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
72
72
  coordinates: z.ZodOptional<z.ZodObject<{
73
73
  lat: z.ZodNumber;
74
74
  lon: z.ZodNumber;
@@ -94,9 +94,9 @@ export declare const organizationCreateSchema: z.ZodObject<{
94
94
  }, {
95
95
  addressLine1: string;
96
96
  city: string;
97
+ zip: string;
97
98
  addressLine2?: string | undefined;
98
99
  state?: unknown;
99
- zip?: unknown;
100
100
  coordinates?: {
101
101
  lat: number;
102
102
  lon: number;
@@ -124,9 +124,9 @@ export declare const organizationCreateSchema: z.ZodObject<{
124
124
  location: {
125
125
  addressLine1: string;
126
126
  city: string;
127
+ zip: string;
127
128
  addressLine2?: string | undefined;
128
129
  state?: unknown;
129
- zip?: unknown;
130
130
  coordinates?: {
131
131
  lat: number;
132
132
  lon: number;
@@ -197,7 +197,7 @@ export declare const organizationSchema: z.ZodObject<z.objectUtil.extendShape<z.
197
197
  WI: import("@metriport/shared/domain/address/state").USState.WI;
198
198
  WY: import("@metriport/shared/domain/address/state").USState.WY;
199
199
  }>, import("@metriport/shared/domain/address/state").USState, unknown>, z.ZodEffects<z.ZodNativeEnum<typeof import("@metriport/shared/domain/address/territory").USTerritory>, import("@metriport/shared/domain/address/territory").USTerritory, unknown>]>;
200
- zip: z.ZodEffects<z.ZodString, string, unknown>;
200
+ zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
201
201
  coordinates: z.ZodOptional<z.ZodObject<{
202
202
  lat: z.ZodNumber;
203
203
  lon: z.ZodNumber;
@@ -223,9 +223,9 @@ export declare const organizationSchema: z.ZodObject<z.objectUtil.extendShape<z.
223
223
  }, {
224
224
  addressLine1: string;
225
225
  city: string;
226
+ zip: string;
226
227
  addressLine2?: string | undefined;
227
228
  state?: unknown;
228
- zip?: unknown;
229
229
  coordinates?: {
230
230
  lat: number;
231
231
  lon: number;
@@ -260,9 +260,9 @@ export declare const organizationSchema: z.ZodObject<z.objectUtil.extendShape<z.
260
260
  location: {
261
261
  addressLine1: string;
262
262
  city: string;
263
+ zip: string;
263
264
  addressLine2?: string | undefined;
264
265
  state?: unknown;
265
- zip?: unknown;
266
266
  coordinates?: {
267
267
  lat: number;
268
268
  lon: number;
@@ -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.ZodString, string, unknown>;
213
+ zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
214
214
  coordinates: z.ZodOptional<z.ZodObject<{
215
215
  lat: z.ZodNumber;
216
216
  lon: z.ZodNumber;
@@ -236,9 +236,9 @@ export declare const patientCreateSchema: z.ZodObject<z.objectUtil.extendShape<z
236
236
  }, {
237
237
  addressLine1: string;
238
238
  city: string;
239
+ zip: string;
239
240
  addressLine2?: string | undefined;
240
241
  state?: unknown;
241
- zip?: unknown;
242
242
  coordinates?: {
243
243
  lat: number;
244
244
  lon: number;
@@ -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.ZodString, string, unknown>;
304
+ zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
305
305
  coordinates: z.ZodOptional<z.ZodObject<{
306
306
  lat: z.ZodNumber;
307
307
  lon: z.ZodNumber;
@@ -327,9 +327,9 @@ export declare const patientCreateSchema: z.ZodObject<z.objectUtil.extendShape<z
327
327
  }, {
328
328
  addressLine1: string;
329
329
  city: string;
330
+ zip: string;
330
331
  addressLine2?: string | undefined;
331
332
  state?: unknown;
332
- zip?: unknown;
333
333
  coordinates?: {
334
334
  lat: number;
335
335
  lon: number;
@@ -471,9 +471,9 @@ export declare const patientCreateSchema: z.ZodObject<z.objectUtil.extendShape<z
471
471
  address: {
472
472
  addressLine1: string;
473
473
  city: string;
474
+ zip: string;
474
475
  addressLine2?: string | undefined;
475
476
  state?: unknown;
476
- zip?: unknown;
477
477
  coordinates?: {
478
478
  lat: number;
479
479
  lon: number;
@@ -482,9 +482,9 @@ export declare const patientCreateSchema: z.ZodObject<z.objectUtil.extendShape<z
482
482
  } | [{
483
483
  addressLine1: string;
484
484
  city: string;
485
+ zip: string;
485
486
  addressLine2?: string | undefined;
486
487
  state?: unknown;
487
- zip?: unknown;
488
488
  coordinates?: {
489
489
  lat: number;
490
490
  lon: number;
@@ -493,9 +493,9 @@ export declare const patientCreateSchema: z.ZodObject<z.objectUtil.extendShape<z
493
493
  }, ...{
494
494
  addressLine1: string;
495
495
  city: string;
496
+ zip: string;
496
497
  addressLine2?: string | undefined;
497
498
  state?: unknown;
498
- zip?: unknown;
499
499
  coordinates?: {
500
500
  lat: number;
501
501
  lon: number;
@@ -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.ZodString, string, unknown>;
754
+ zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
755
755
  coordinates: z.ZodOptional<z.ZodObject<{
756
756
  lat: z.ZodNumber;
757
757
  lon: z.ZodNumber;
@@ -777,9 +777,9 @@ export declare const patientUpdateSchema: z.ZodObject<z.objectUtil.extendShape<z
777
777
  }, {
778
778
  addressLine1: string;
779
779
  city: string;
780
+ zip: string;
780
781
  addressLine2?: string | undefined;
781
782
  state?: unknown;
782
- zip?: unknown;
783
783
  coordinates?: {
784
784
  lat: number;
785
785
  lon: number;
@@ -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.ZodString, string, unknown>;
845
+ zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
846
846
  coordinates: z.ZodOptional<z.ZodObject<{
847
847
  lat: z.ZodNumber;
848
848
  lon: z.ZodNumber;
@@ -868,9 +868,9 @@ export declare const patientUpdateSchema: z.ZodObject<z.objectUtil.extendShape<z
868
868
  }, {
869
869
  addressLine1: string;
870
870
  city: string;
871
+ zip: string;
871
872
  addressLine2?: string | undefined;
872
873
  state?: unknown;
873
- zip?: unknown;
874
874
  coordinates?: {
875
875
  lat: number;
876
876
  lon: number;
@@ -1018,9 +1018,9 @@ export declare const patientUpdateSchema: z.ZodObject<z.objectUtil.extendShape<z
1018
1018
  address: {
1019
1019
  addressLine1: string;
1020
1020
  city: string;
1021
+ zip: string;
1021
1022
  addressLine2?: string | undefined;
1022
1023
  state?: unknown;
1023
- zip?: unknown;
1024
1024
  coordinates?: {
1025
1025
  lat: number;
1026
1026
  lon: number;
@@ -1029,9 +1029,9 @@ export declare const patientUpdateSchema: z.ZodObject<z.objectUtil.extendShape<z
1029
1029
  } | [{
1030
1030
  addressLine1: string;
1031
1031
  city: string;
1032
+ zip: string;
1032
1033
  addressLine2?: string | undefined;
1033
1034
  state?: unknown;
1034
- zip?: unknown;
1035
1035
  coordinates?: {
1036
1036
  lat: number;
1037
1037
  lon: number;
@@ -1040,9 +1040,9 @@ export declare const patientUpdateSchema: z.ZodObject<z.objectUtil.extendShape<z
1040
1040
  }, ...{
1041
1041
  addressLine1: string;
1042
1042
  city: string;
1043
+ zip: string;
1043
1044
  addressLine2?: string | undefined;
1044
1045
  state?: unknown;
1045
- zip?: unknown;
1046
1046
  coordinates?: {
1047
1047
  lat: number;
1048
1048
  lon: number;
@@ -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.ZodString, string, unknown>;
1302
+ zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
1303
1303
  coordinates: z.ZodOptional<z.ZodObject<{
1304
1304
  lat: z.ZodNumber;
1305
1305
  lon: z.ZodNumber;
@@ -1325,9 +1325,9 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<z.objec
1325
1325
  }, {
1326
1326
  addressLine1: string;
1327
1327
  city: string;
1328
+ zip: string;
1328
1329
  addressLine2?: string | undefined;
1329
1330
  state?: unknown;
1330
- zip?: unknown;
1331
1331
  coordinates?: {
1332
1332
  lat: number;
1333
1333
  lon: number;
@@ -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.ZodString, string, unknown>;
1393
+ zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
1394
1394
  coordinates: z.ZodOptional<z.ZodObject<{
1395
1395
  lat: z.ZodNumber;
1396
1396
  lon: z.ZodNumber;
@@ -1416,9 +1416,9 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<z.objec
1416
1416
  }, {
1417
1417
  addressLine1: string;
1418
1418
  city: string;
1419
+ zip: string;
1419
1420
  addressLine2?: string | undefined;
1420
1421
  state?: unknown;
1421
- zip?: unknown;
1422
1422
  coordinates?: {
1423
1423
  lat: number;
1424
1424
  lon: number;
@@ -1569,9 +1569,9 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<z.objec
1569
1569
  address: {
1570
1570
  addressLine1: string;
1571
1571
  city: string;
1572
+ zip: string;
1572
1573
  addressLine2?: string | undefined;
1573
1574
  state?: unknown;
1574
- zip?: unknown;
1575
1575
  coordinates?: {
1576
1576
  lat: number;
1577
1577
  lon: number;
@@ -1580,9 +1580,9 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<z.objec
1580
1580
  } | [{
1581
1581
  addressLine1: string;
1582
1582
  city: string;
1583
+ zip: string;
1583
1584
  addressLine2?: string | undefined;
1584
1585
  state?: unknown;
1585
- zip?: unknown;
1586
1586
  coordinates?: {
1587
1587
  lat: number;
1588
1588
  lon: number;
@@ -1591,9 +1591,9 @@ export declare const patientSchema: z.ZodObject<z.objectUtil.extendShape<z.objec
1591
1591
  }, ...{
1592
1592
  addressLine1: string;
1593
1593
  city: string;
1594
+ zip: string;
1594
1595
  addressLine2?: string | undefined;
1595
1596
  state?: unknown;
1596
- zip?: unknown;
1597
1597
  coordinates?: {
1598
1598
  lat: number;
1599
1599
  lon: number;
@@ -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.ZodString, string, unknown>;
1855
+ zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
1856
1856
  coordinates: z.ZodOptional<z.ZodObject<{
1857
1857
  lat: z.ZodNumber;
1858
1858
  lon: z.ZodNumber;
@@ -1878,9 +1878,9 @@ export declare const patientListSchema: z.ZodObject<{
1878
1878
  }, {
1879
1879
  addressLine1: string;
1880
1880
  city: string;
1881
+ zip: string;
1881
1882
  addressLine2?: string | undefined;
1882
1883
  state?: unknown;
1883
- zip?: unknown;
1884
1884
  coordinates?: {
1885
1885
  lat: number;
1886
1886
  lon: number;
@@ -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.ZodString, string, unknown>;
1946
+ zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
1947
1947
  coordinates: z.ZodOptional<z.ZodObject<{
1948
1948
  lat: z.ZodNumber;
1949
1949
  lon: z.ZodNumber;
@@ -1969,9 +1969,9 @@ export declare const patientListSchema: z.ZodObject<{
1969
1969
  }, {
1970
1970
  addressLine1: string;
1971
1971
  city: string;
1972
+ zip: string;
1972
1973
  addressLine2?: string | undefined;
1973
1974
  state?: unknown;
1974
- zip?: unknown;
1975
1975
  coordinates?: {
1976
1976
  lat: number;
1977
1977
  lon: number;
@@ -2122,9 +2122,9 @@ export declare const patientListSchema: z.ZodObject<{
2122
2122
  address: {
2123
2123
  addressLine1: string;
2124
2124
  city: string;
2125
+ zip: string;
2125
2126
  addressLine2?: string | undefined;
2126
2127
  state?: unknown;
2127
- zip?: unknown;
2128
2128
  coordinates?: {
2129
2129
  lat: number;
2130
2130
  lon: number;
@@ -2133,9 +2133,9 @@ export declare const patientListSchema: z.ZodObject<{
2133
2133
  } | [{
2134
2134
  addressLine1: string;
2135
2135
  city: string;
2136
+ zip: string;
2136
2137
  addressLine2?: string | undefined;
2137
2138
  state?: unknown;
2138
- zip?: unknown;
2139
2139
  coordinates?: {
2140
2140
  lat: number;
2141
2141
  lon: number;
@@ -2144,9 +2144,9 @@ export declare const patientListSchema: z.ZodObject<{
2144
2144
  }, ...{
2145
2145
  addressLine1: string;
2146
2146
  city: string;
2147
+ zip: string;
2147
2148
  addressLine2?: string | undefined;
2148
2149
  state?: unknown;
2149
- zip?: unknown;
2150
2150
  coordinates?: {
2151
2151
  lat: number;
2152
2152
  lon: number;
@@ -2284,9 +2284,9 @@ export declare const patientListSchema: z.ZodObject<{
2284
2284
  address: {
2285
2285
  addressLine1: string;
2286
2286
  city: string;
2287
+ zip: string;
2287
2288
  addressLine2?: string | undefined;
2288
2289
  state?: unknown;
2289
- zip?: unknown;
2290
2290
  coordinates?: {
2291
2291
  lat: number;
2292
2292
  lon: number;
@@ -2295,9 +2295,9 @@ export declare const patientListSchema: z.ZodObject<{
2295
2295
  } | [{
2296
2296
  addressLine1: string;
2297
2297
  city: string;
2298
+ zip: string;
2298
2299
  addressLine2?: string | undefined;
2299
2300
  state?: unknown;
2300
- zip?: unknown;
2301
2301
  coordinates?: {
2302
2302
  lat: number;
2303
2303
  lon: number;
@@ -2306,9 +2306,9 @@ export declare const patientListSchema: z.ZodObject<{
2306
2306
  }, ...{
2307
2307
  addressLine1: string;
2308
2308
  city: string;
2309
+ zip: string;
2309
2310
  addressLine2?: string | undefined;
2310
2311
  state?: unknown;
2311
- zip?: unknown;
2312
2312
  coordinates?: {
2313
2313
  lat: number;
2314
2314
  lon: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metriport/api-sdk",
3
- "version": "17.3.0-alpha.0",
3
+ "version": "17.3.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/",
@@ -58,8 +58,8 @@
58
58
  },
59
59
  "dependencies": {
60
60
  "@medplum/fhirtypes": "^2.0.32",
61
- "@metriport/commonwell-sdk": "^5.9.21-alpha.0",
62
- "@metriport/shared": "^0.25.0-alpha.0",
61
+ "@metriport/commonwell-sdk": "^5.9.20",
62
+ "@metriport/shared": "^0.25.0",
63
63
  "axios": "^1.8.2",
64
64
  "dayjs": "^1.11.7",
65
65
  "dotenv": "^16.3.1",
@@ -78,5 +78,5 @@
78
78
  "ts-jest": "29.1.1",
79
79
  "typescript": "^4.9.5"
80
80
  },
81
- "gitHead": "5ad92dd4b589da27a065dfbb8dc3396cc8e14acf"
81
+ "gitHead": "545553811a9873458d83080db6127fc420970c4c"
82
82
  }