@metriport/api-sdk 7.3.1 → 7.3.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.
@@ -5,13 +5,13 @@ export declare const addressSchema: z.ZodObject<{
5
5
  city: z.ZodString;
6
6
  state: z.ZodUnion<[z.ZodNativeEnum<typeof import("./us-data").USState>, z.ZodString]>;
7
7
  zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
8
- country: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>>;
8
+ country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>;
9
9
  }, "strip", z.ZodTypeAny, {
10
10
  addressLine1: string;
11
11
  city: string;
12
12
  state: string;
13
13
  zip: string;
14
- country: string;
14
+ country: "USA";
15
15
  addressLine2?: string | undefined;
16
16
  }, {
17
17
  addressLine1: string;
@@ -19,7 +19,7 @@ export declare const addressSchema: z.ZodObject<{
19
19
  state: string;
20
20
  zip: string;
21
21
  addressLine2?: string | undefined;
22
- country?: string | undefined;
22
+ country?: "USA" | undefined;
23
23
  }>;
24
24
  export type Address = z.infer<typeof addressSchema>;
25
25
  //# sourceMappingURL=address.d.ts.map
@@ -16,6 +16,6 @@ exports.addressSchema = zod_1.z.object({
16
16
  .refine(zip => zip.length === zipLength, {
17
17
  message: `Zip must be a string consisting of ${zipLength} numbers.`,
18
18
  }),
19
- country: shared_1.defaultOptionalString.default("USA"), // here for backwards compatibility, we'll ignore this and always default to USA
19
+ country: zod_1.z.literal("USA").optional().default("USA"),
20
20
  });
21
21
  //# sourceMappingURL=address.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"address.js","sourceRoot":"","sources":["../../../../src/medical/models/common/address.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,uCAA0C;AAC1C,4CAA6F;AAE7F,MAAM,SAAS,GAAG,CAAC,CAAC;AACP,QAAA,aAAa,GAAG,OAAC,CAAC,MAAM,CAAC;IACpC,YAAY,EAAE,sBAAa,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,iCAAiC,EAAE,CAAC;IAClF,YAAY,EAAE,8BAAqB;IACnC,IAAI,EAAE,sBAAa,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,yBAAyB,EAAE,CAAC;IAClE,KAAK,EAAE,uBAAa,CAAC,EAAE,CAAC,sBAAa,CAAC;IACtC,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,OAAO,EAAE,8BAAqB,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,gFAAgF;CAChI,CAAC,CAAC"}
1
+ {"version":3,"file":"address.js","sourceRoot":"","sources":["../../../../src/medical/models/common/address.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,uCAA0C;AAC1C,4CAA6F;AAE7F,MAAM,SAAS,GAAG,CAAC,CAAC;AACP,QAAA,aAAa,GAAG,OAAC,CAAC,MAAM,CAAC;IACpC,YAAY,EAAE,sBAAa,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,iCAAiC,EAAE,CAAC;IAClF,YAAY,EAAE,8BAAqB;IACnC,IAAI,EAAE,sBAAa,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,yBAAyB,EAAE,CAAC;IAClE,KAAK,EAAE,uBAAa,CAAC,EAAE,CAAC,sBAAa,CAAC;IACtC,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,OAAO,EAAE,OAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;CACpD,CAAC,CAAC"}
@@ -136,13 +136,13 @@ export declare const demographicsSchema: z.ZodObject<{
136
136
  city: z.ZodString;
137
137
  state: z.ZodUnion<[z.ZodNativeEnum<typeof import("./common/us-data").USState>, z.ZodString]>;
138
138
  zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
139
- country: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>>;
139
+ country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>;
140
140
  }, "strip", z.ZodTypeAny, {
141
141
  addressLine1: string;
142
142
  city: string;
143
143
  state: string;
144
144
  zip: string;
145
- country: string;
145
+ country: "USA";
146
146
  addressLine2?: string | undefined;
147
147
  }, {
148
148
  addressLine1: string;
@@ -150,20 +150,20 @@ export declare const demographicsSchema: z.ZodObject<{
150
150
  state: string;
151
151
  zip: string;
152
152
  addressLine2?: string | undefined;
153
- country?: string | undefined;
153
+ country?: "USA" | undefined;
154
154
  }>, "many">, z.ZodObject<{
155
155
  addressLine1: z.ZodString;
156
156
  addressLine2: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>;
157
157
  city: z.ZodString;
158
158
  state: z.ZodUnion<[z.ZodNativeEnum<typeof import("./common/us-data").USState>, z.ZodString]>;
159
159
  zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
160
- country: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>>;
160
+ country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>;
161
161
  }, "strip", z.ZodTypeAny, {
162
162
  addressLine1: string;
163
163
  city: string;
164
164
  state: string;
165
165
  zip: string;
166
- country: string;
166
+ country: "USA";
167
167
  addressLine2?: string | undefined;
168
168
  }, {
169
169
  addressLine1: string;
@@ -171,7 +171,7 @@ export declare const demographicsSchema: z.ZodObject<{
171
171
  state: string;
172
172
  zip: string;
173
173
  addressLine2?: string | undefined;
174
- country?: string | undefined;
174
+ country?: "USA" | undefined;
175
175
  }>]>;
176
176
  contact: z.ZodUnion<[z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
177
177
  phone: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>]>;
@@ -210,28 +210,28 @@ export declare const demographicsSchema: z.ZodObject<{
210
210
  city: string;
211
211
  state: string;
212
212
  zip: string;
213
- country: string;
213
+ country: "USA";
214
214
  addressLine2?: string | undefined;
215
215
  } | {
216
216
  addressLine1: string;
217
217
  city: string;
218
218
  state: string;
219
219
  zip: string;
220
- country: string;
220
+ country: "USA";
221
221
  addressLine2?: string | undefined;
222
222
  }[]) & ({
223
223
  addressLine1: string;
224
224
  city: string;
225
225
  state: string;
226
226
  zip: string;
227
- country: string;
227
+ country: "USA";
228
228
  addressLine2?: string | undefined;
229
229
  } | {
230
230
  addressLine1: string;
231
231
  city: string;
232
232
  state: string;
233
233
  zip: string;
234
- country: string;
234
+ country: "USA";
235
235
  addressLine2?: string | undefined;
236
236
  }[] | undefined);
237
237
  firstName: string;
@@ -265,28 +265,28 @@ export declare const demographicsSchema: z.ZodObject<{
265
265
  state: string;
266
266
  zip: string;
267
267
  addressLine2?: string | undefined;
268
- country?: string | undefined;
268
+ country?: "USA" | undefined;
269
269
  } | {
270
270
  addressLine1: string;
271
271
  city: string;
272
272
  state: string;
273
273
  zip: string;
274
274
  addressLine2?: string | undefined;
275
- country?: string | undefined;
275
+ country?: "USA" | undefined;
276
276
  }[]) & ({
277
277
  addressLine1: string;
278
278
  city: string;
279
279
  state: string;
280
280
  zip: string;
281
281
  addressLine2?: string | undefined;
282
- country?: string | undefined;
282
+ country?: "USA" | undefined;
283
283
  } | {
284
284
  addressLine1: string;
285
285
  city: string;
286
286
  state: string;
287
287
  zip: string;
288
288
  addressLine2?: string | undefined;
289
- country?: string | undefined;
289
+ country?: "USA" | undefined;
290
290
  }[] | undefined);
291
291
  firstName: string;
292
292
  lastName: string;
@@ -10,13 +10,13 @@ export declare const facilityCreateSchema: z.ZodObject<{
10
10
  city: z.ZodString;
11
11
  state: z.ZodUnion<[z.ZodNativeEnum<typeof import("./common/us-data").USState>, z.ZodString]>;
12
12
  zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
13
- country: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>>;
13
+ country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>;
14
14
  }, "strip", z.ZodTypeAny, {
15
15
  addressLine1: string;
16
16
  city: string;
17
17
  state: string;
18
18
  zip: string;
19
- country: string;
19
+ country: "USA";
20
20
  addressLine2?: string | undefined;
21
21
  }, {
22
22
  addressLine1: string;
@@ -24,7 +24,7 @@ export declare const facilityCreateSchema: z.ZodObject<{
24
24
  state: string;
25
25
  zip: string;
26
26
  addressLine2?: string | undefined;
27
- country?: string | undefined;
27
+ country?: "USA" | undefined;
28
28
  }>;
29
29
  }, "strip", z.ZodTypeAny, {
30
30
  name: string;
@@ -34,7 +34,7 @@ export declare const facilityCreateSchema: z.ZodObject<{
34
34
  city: string;
35
35
  state: string;
36
36
  zip: string;
37
- country: string;
37
+ country: "USA";
38
38
  addressLine2?: string | undefined;
39
39
  };
40
40
  tin?: string | null | undefined;
@@ -48,7 +48,7 @@ export declare const facilityCreateSchema: z.ZodObject<{
48
48
  state: string;
49
49
  zip: string;
50
50
  addressLine2?: string | undefined;
51
- country?: string | undefined;
51
+ country?: "USA" | undefined;
52
52
  };
53
53
  tin?: string | null | undefined;
54
54
  active?: boolean | null | undefined;
@@ -65,13 +65,13 @@ export declare const facilitySchema: z.ZodObject<{
65
65
  city: z.ZodString;
66
66
  state: z.ZodUnion<[z.ZodNativeEnum<typeof import("./common/us-data").USState>, z.ZodString]>;
67
67
  zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
68
- country: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>>;
68
+ country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>;
69
69
  }, "strip", z.ZodTypeAny, {
70
70
  addressLine1: string;
71
71
  city: string;
72
72
  state: string;
73
73
  zip: string;
74
- country: string;
74
+ country: "USA";
75
75
  addressLine2?: string | undefined;
76
76
  }, {
77
77
  addressLine1: string;
@@ -79,7 +79,7 @@ export declare const facilitySchema: z.ZodObject<{
79
79
  state: string;
80
80
  zip: string;
81
81
  addressLine2?: string | undefined;
82
- country?: string | undefined;
82
+ country?: "USA" | undefined;
83
83
  }>;
84
84
  id: z.ZodString;
85
85
  eTag: z.ZodOptional<z.ZodString>;
@@ -92,7 +92,7 @@ export declare const facilitySchema: z.ZodObject<{
92
92
  city: string;
93
93
  state: string;
94
94
  zip: string;
95
- country: string;
95
+ country: "USA";
96
96
  addressLine2?: string | undefined;
97
97
  };
98
98
  tin?: string | null | undefined;
@@ -108,7 +108,7 @@ export declare const facilitySchema: z.ZodObject<{
108
108
  state: string;
109
109
  zip: string;
110
110
  addressLine2?: string | undefined;
111
- country?: string | undefined;
111
+ country?: "USA" | undefined;
112
112
  };
113
113
  tin?: string | null | undefined;
114
114
  active?: boolean | null | undefined;
@@ -127,13 +127,13 @@ export declare const facilityListSchema: z.ZodObject<{
127
127
  city: z.ZodString;
128
128
  state: z.ZodUnion<[z.ZodNativeEnum<typeof import("./common/us-data").USState>, z.ZodString]>;
129
129
  zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
130
- country: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>>;
130
+ country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>;
131
131
  }, "strip", z.ZodTypeAny, {
132
132
  addressLine1: string;
133
133
  city: string;
134
134
  state: string;
135
135
  zip: string;
136
- country: string;
136
+ country: "USA";
137
137
  addressLine2?: string | undefined;
138
138
  }, {
139
139
  addressLine1: string;
@@ -141,7 +141,7 @@ export declare const facilityListSchema: z.ZodObject<{
141
141
  state: string;
142
142
  zip: string;
143
143
  addressLine2?: string | undefined;
144
- country?: string | undefined;
144
+ country?: "USA" | undefined;
145
145
  }>;
146
146
  id: z.ZodString;
147
147
  eTag: z.ZodOptional<z.ZodString>;
@@ -154,7 +154,7 @@ export declare const facilityListSchema: z.ZodObject<{
154
154
  city: string;
155
155
  state: string;
156
156
  zip: string;
157
- country: string;
157
+ country: "USA";
158
158
  addressLine2?: string | undefined;
159
159
  };
160
160
  tin?: string | null | undefined;
@@ -170,7 +170,7 @@ export declare const facilityListSchema: z.ZodObject<{
170
170
  state: string;
171
171
  zip: string;
172
172
  addressLine2?: string | undefined;
173
- country?: string | undefined;
173
+ country?: "USA" | undefined;
174
174
  };
175
175
  tin?: string | null | undefined;
176
176
  active?: boolean | null | undefined;
@@ -186,7 +186,7 @@ export declare const facilityListSchema: z.ZodObject<{
186
186
  city: string;
187
187
  state: string;
188
188
  zip: string;
189
- country: string;
189
+ country: "USA";
190
190
  addressLine2?: string | undefined;
191
191
  };
192
192
  tin?: string | null | undefined;
@@ -204,7 +204,7 @@ export declare const facilityListSchema: z.ZodObject<{
204
204
  state: string;
205
205
  zip: string;
206
206
  addressLine2?: string | undefined;
207
- country?: string | undefined;
207
+ country?: "USA" | undefined;
208
208
  };
209
209
  tin?: string | null | undefined;
210
210
  active?: boolean | null | undefined;
@@ -17,13 +17,13 @@ export declare const organizationCreateSchema: z.ZodObject<{
17
17
  city: z.ZodString;
18
18
  state: z.ZodUnion<[z.ZodNativeEnum<typeof import("./common/us-data").USState>, z.ZodString]>;
19
19
  zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
20
- country: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>>;
20
+ country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>;
21
21
  }, "strip", z.ZodTypeAny, {
22
22
  addressLine1: string;
23
23
  city: string;
24
24
  state: string;
25
25
  zip: string;
26
- country: string;
26
+ country: "USA";
27
27
  addressLine2?: string | undefined;
28
28
  }, {
29
29
  addressLine1: string;
@@ -31,7 +31,7 @@ export declare const organizationCreateSchema: z.ZodObject<{
31
31
  state: string;
32
32
  zip: string;
33
33
  addressLine2?: string | undefined;
34
- country?: string | undefined;
34
+ country?: "USA" | undefined;
35
35
  }>;
36
36
  }, "strip", z.ZodTypeAny, {
37
37
  type: OrgType;
@@ -41,7 +41,7 @@ export declare const organizationCreateSchema: z.ZodObject<{
41
41
  city: string;
42
42
  state: string;
43
43
  zip: string;
44
- country: string;
44
+ country: "USA";
45
45
  addressLine2?: string | undefined;
46
46
  };
47
47
  }, {
@@ -53,7 +53,7 @@ export declare const organizationCreateSchema: z.ZodObject<{
53
53
  state: string;
54
54
  zip: string;
55
55
  addressLine2?: string | undefined;
56
- country?: string | undefined;
56
+ country?: "USA" | undefined;
57
57
  };
58
58
  }>;
59
59
  export type OrganizationCreate = z.infer<typeof organizationCreateSchema>;
@@ -66,13 +66,13 @@ export declare const organizationSchema: z.ZodObject<{
66
66
  city: z.ZodString;
67
67
  state: z.ZodUnion<[z.ZodNativeEnum<typeof import("./common/us-data").USState>, z.ZodString]>;
68
68
  zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
69
- country: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>>;
69
+ country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>;
70
70
  }, "strip", z.ZodTypeAny, {
71
71
  addressLine1: string;
72
72
  city: string;
73
73
  state: string;
74
74
  zip: string;
75
- country: string;
75
+ country: "USA";
76
76
  addressLine2?: string | undefined;
77
77
  }, {
78
78
  addressLine1: string;
@@ -80,7 +80,7 @@ export declare const organizationSchema: z.ZodObject<{
80
80
  state: string;
81
81
  zip: string;
82
82
  addressLine2?: string | undefined;
83
- country?: string | undefined;
83
+ country?: "USA" | undefined;
84
84
  }>;
85
85
  oid: z.ZodString;
86
86
  id: z.ZodString;
@@ -94,7 +94,7 @@ export declare const organizationSchema: z.ZodObject<{
94
94
  city: string;
95
95
  state: string;
96
96
  zip: string;
97
- country: string;
97
+ country: "USA";
98
98
  addressLine2?: string | undefined;
99
99
  };
100
100
  oid: string;
@@ -109,7 +109,7 @@ export declare const organizationSchema: z.ZodObject<{
109
109
  state: string;
110
110
  zip: string;
111
111
  addressLine2?: string | undefined;
112
- country?: string | undefined;
112
+ country?: "USA" | undefined;
113
113
  };
114
114
  oid: string;
115
115
  eTag?: string | undefined;
@@ -59,13 +59,13 @@ export declare const patientCreateSchema: z.ZodObject<{
59
59
  city: z.ZodString;
60
60
  state: z.ZodUnion<[z.ZodNativeEnum<typeof import("./common/us-data").USState>, z.ZodString]>;
61
61
  zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
62
- country: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>>;
62
+ country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>;
63
63
  }, "strip", z.ZodTypeAny, {
64
64
  addressLine1: string;
65
65
  city: string;
66
66
  state: string;
67
67
  zip: string;
68
- country: string;
68
+ country: "USA";
69
69
  addressLine2?: string | undefined;
70
70
  }, {
71
71
  addressLine1: string;
@@ -73,20 +73,20 @@ export declare const patientCreateSchema: z.ZodObject<{
73
73
  state: string;
74
74
  zip: string;
75
75
  addressLine2?: string | undefined;
76
- country?: string | undefined;
76
+ country?: "USA" | undefined;
77
77
  }>, "many">, z.ZodObject<{
78
78
  addressLine1: z.ZodString;
79
79
  addressLine2: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>;
80
80
  city: z.ZodString;
81
81
  state: z.ZodUnion<[z.ZodNativeEnum<typeof import("./common/us-data").USState>, z.ZodString]>;
82
82
  zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
83
- country: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>>;
83
+ country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>;
84
84
  }, "strip", z.ZodTypeAny, {
85
85
  addressLine1: string;
86
86
  city: string;
87
87
  state: string;
88
88
  zip: string;
89
- country: string;
89
+ country: "USA";
90
90
  addressLine2?: string | undefined;
91
91
  }, {
92
92
  addressLine1: string;
@@ -94,7 +94,7 @@ export declare const patientCreateSchema: z.ZodObject<{
94
94
  state: string;
95
95
  zip: string;
96
96
  addressLine2?: string | undefined;
97
- country?: string | undefined;
97
+ country?: "USA" | undefined;
98
98
  }>]>;
99
99
  contact: z.ZodUnion<[z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
100
100
  phone: z.ZodUnion<[z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>]>;
@@ -133,28 +133,28 @@ export declare const patientCreateSchema: z.ZodObject<{
133
133
  city: string;
134
134
  state: string;
135
135
  zip: string;
136
- country: string;
136
+ country: "USA";
137
137
  addressLine2?: string | undefined;
138
138
  } | {
139
139
  addressLine1: string;
140
140
  city: string;
141
141
  state: string;
142
142
  zip: string;
143
- country: string;
143
+ country: "USA";
144
144
  addressLine2?: string | undefined;
145
145
  }[]) & ({
146
146
  addressLine1: string;
147
147
  city: string;
148
148
  state: string;
149
149
  zip: string;
150
- country: string;
150
+ country: "USA";
151
151
  addressLine2?: string | undefined;
152
152
  } | {
153
153
  addressLine1: string;
154
154
  city: string;
155
155
  state: string;
156
156
  zip: string;
157
- country: string;
157
+ country: "USA";
158
158
  addressLine2?: string | undefined;
159
159
  }[] | undefined);
160
160
  firstName: string;
@@ -188,28 +188,28 @@ export declare const patientCreateSchema: z.ZodObject<{
188
188
  state: string;
189
189
  zip: string;
190
190
  addressLine2?: string | undefined;
191
- country?: string | undefined;
191
+ country?: "USA" | undefined;
192
192
  } | {
193
193
  addressLine1: string;
194
194
  city: string;
195
195
  state: string;
196
196
  zip: string;
197
197
  addressLine2?: string | undefined;
198
- country?: string | undefined;
198
+ country?: "USA" | undefined;
199
199
  }[]) & ({
200
200
  addressLine1: string;
201
201
  city: string;
202
202
  state: string;
203
203
  zip: string;
204
204
  addressLine2?: string | undefined;
205
- country?: string | undefined;
205
+ country?: "USA" | undefined;
206
206
  } | {
207
207
  addressLine1: string;
208
208
  city: string;
209
209
  state: string;
210
210
  zip: string;
211
211
  addressLine2?: string | undefined;
212
- country?: string | undefined;
212
+ country?: "USA" | undefined;
213
213
  }[] | undefined);
214
214
  firstName: string;
215
215
  lastName: string;
@@ -244,13 +244,13 @@ export declare const patientUpdateSchema: z.ZodObject<{
244
244
  city: z.ZodString;
245
245
  state: z.ZodUnion<[z.ZodNativeEnum<typeof import("./common/us-data").USState>, z.ZodString]>;
246
246
  zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
247
- country: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>>;
247
+ country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>;
248
248
  }, "strip", z.ZodTypeAny, {
249
249
  addressLine1: string;
250
250
  city: string;
251
251
  state: string;
252
252
  zip: string;
253
- country: string;
253
+ country: "USA";
254
254
  addressLine2?: string | undefined;
255
255
  }, {
256
256
  addressLine1: string;
@@ -258,20 +258,20 @@ export declare const patientUpdateSchema: z.ZodObject<{
258
258
  state: string;
259
259
  zip: string;
260
260
  addressLine2?: string | undefined;
261
- country?: string | undefined;
261
+ country?: "USA" | undefined;
262
262
  }>, "many">, z.ZodObject<{
263
263
  addressLine1: z.ZodString;
264
264
  addressLine2: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>;
265
265
  city: z.ZodString;
266
266
  state: z.ZodUnion<[z.ZodNativeEnum<typeof import("./common/us-data").USState>, z.ZodString]>;
267
267
  zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
268
- country: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>>;
268
+ country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>;
269
269
  }, "strip", z.ZodTypeAny, {
270
270
  addressLine1: string;
271
271
  city: string;
272
272
  state: string;
273
273
  zip: string;
274
- country: string;
274
+ country: "USA";
275
275
  addressLine2?: string | undefined;
276
276
  }, {
277
277
  addressLine1: string;
@@ -279,7 +279,7 @@ export declare const patientUpdateSchema: z.ZodObject<{
279
279
  state: string;
280
280
  zip: string;
281
281
  addressLine2?: string | undefined;
282
- country?: string | undefined;
282
+ country?: "USA" | undefined;
283
283
  }>]>;
284
284
  firstName: z.ZodString;
285
285
  lastName: z.ZodString;
@@ -374,28 +374,28 @@ export declare const patientUpdateSchema: z.ZodObject<{
374
374
  city: string;
375
375
  state: string;
376
376
  zip: string;
377
- country: string;
377
+ country: "USA";
378
378
  addressLine2?: string | undefined;
379
379
  } | {
380
380
  addressLine1: string;
381
381
  city: string;
382
382
  state: string;
383
383
  zip: string;
384
- country: string;
384
+ country: "USA";
385
385
  addressLine2?: string | undefined;
386
386
  }[]) & ({
387
387
  addressLine1: string;
388
388
  city: string;
389
389
  state: string;
390
390
  zip: string;
391
- country: string;
391
+ country: "USA";
392
392
  addressLine2?: string | undefined;
393
393
  } | {
394
394
  addressLine1: string;
395
395
  city: string;
396
396
  state: string;
397
397
  zip: string;
398
- country: string;
398
+ country: "USA";
399
399
  addressLine2?: string | undefined;
400
400
  }[] | undefined);
401
401
  firstName: string;
@@ -431,28 +431,28 @@ export declare const patientUpdateSchema: z.ZodObject<{
431
431
  state: string;
432
432
  zip: string;
433
433
  addressLine2?: string | undefined;
434
- country?: string | undefined;
434
+ country?: "USA" | undefined;
435
435
  } | {
436
436
  addressLine1: string;
437
437
  city: string;
438
438
  state: string;
439
439
  zip: string;
440
440
  addressLine2?: string | undefined;
441
- country?: string | undefined;
441
+ country?: "USA" | undefined;
442
442
  }[]) & ({
443
443
  addressLine1: string;
444
444
  city: string;
445
445
  state: string;
446
446
  zip: string;
447
447
  addressLine2?: string | undefined;
448
- country?: string | undefined;
448
+ country?: "USA" | undefined;
449
449
  } | {
450
450
  addressLine1: string;
451
451
  city: string;
452
452
  state: string;
453
453
  zip: string;
454
454
  addressLine2?: string | undefined;
455
- country?: string | undefined;
455
+ country?: "USA" | undefined;
456
456
  }[] | undefined);
457
457
  firstName: string;
458
458
  lastName: string;
@@ -490,13 +490,13 @@ export declare const patientSchema: z.ZodObject<{
490
490
  city: z.ZodString;
491
491
  state: z.ZodUnion<[z.ZodNativeEnum<typeof import("./common/us-data").USState>, z.ZodString]>;
492
492
  zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
493
- country: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>>;
493
+ country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>;
494
494
  }, "strip", z.ZodTypeAny, {
495
495
  addressLine1: string;
496
496
  city: string;
497
497
  state: string;
498
498
  zip: string;
499
- country: string;
499
+ country: "USA";
500
500
  addressLine2?: string | undefined;
501
501
  }, {
502
502
  addressLine1: string;
@@ -504,20 +504,20 @@ export declare const patientSchema: z.ZodObject<{
504
504
  state: string;
505
505
  zip: string;
506
506
  addressLine2?: string | undefined;
507
- country?: string | undefined;
507
+ country?: "USA" | undefined;
508
508
  }>, "many">, z.ZodObject<{
509
509
  addressLine1: z.ZodString;
510
510
  addressLine2: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>;
511
511
  city: z.ZodString;
512
512
  state: z.ZodUnion<[z.ZodNativeEnum<typeof import("./common/us-data").USState>, z.ZodString]>;
513
513
  zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
514
- country: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>>;
514
+ country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>;
515
515
  }, "strip", z.ZodTypeAny, {
516
516
  addressLine1: string;
517
517
  city: string;
518
518
  state: string;
519
519
  zip: string;
520
- country: string;
520
+ country: "USA";
521
521
  addressLine2?: string | undefined;
522
522
  }, {
523
523
  addressLine1: string;
@@ -525,7 +525,7 @@ export declare const patientSchema: z.ZodObject<{
525
525
  state: string;
526
526
  zip: string;
527
527
  addressLine2?: string | undefined;
528
- country?: string | undefined;
528
+ country?: "USA" | undefined;
529
529
  }>]>;
530
530
  firstName: z.ZodString;
531
531
  lastName: z.ZodString;
@@ -619,28 +619,28 @@ export declare const patientSchema: z.ZodObject<{
619
619
  city: string;
620
620
  state: string;
621
621
  zip: string;
622
- country: string;
622
+ country: "USA";
623
623
  addressLine2?: string | undefined;
624
624
  } | {
625
625
  addressLine1: string;
626
626
  city: string;
627
627
  state: string;
628
628
  zip: string;
629
- country: string;
629
+ country: "USA";
630
630
  addressLine2?: string | undefined;
631
631
  }[]) & ({
632
632
  addressLine1: string;
633
633
  city: string;
634
634
  state: string;
635
635
  zip: string;
636
- country: string;
636
+ country: "USA";
637
637
  addressLine2?: string | undefined;
638
638
  } | {
639
639
  addressLine1: string;
640
640
  city: string;
641
641
  state: string;
642
642
  zip: string;
643
- country: string;
643
+ country: "USA";
644
644
  addressLine2?: string | undefined;
645
645
  }[] | undefined);
646
646
  firstName: string;
@@ -677,28 +677,28 @@ export declare const patientSchema: z.ZodObject<{
677
677
  state: string;
678
678
  zip: string;
679
679
  addressLine2?: string | undefined;
680
- country?: string | undefined;
680
+ country?: "USA" | undefined;
681
681
  } | {
682
682
  addressLine1: string;
683
683
  city: string;
684
684
  state: string;
685
685
  zip: string;
686
686
  addressLine2?: string | undefined;
687
- country?: string | undefined;
687
+ country?: "USA" | undefined;
688
688
  }[]) & ({
689
689
  addressLine1: string;
690
690
  city: string;
691
691
  state: string;
692
692
  zip: string;
693
693
  addressLine2?: string | undefined;
694
- country?: string | undefined;
694
+ country?: "USA" | undefined;
695
695
  } | {
696
696
  addressLine1: string;
697
697
  city: string;
698
698
  state: string;
699
699
  zip: string;
700
700
  addressLine2?: string | undefined;
701
- country?: string | undefined;
701
+ country?: "USA" | undefined;
702
702
  }[] | undefined);
703
703
  firstName: string;
704
704
  lastName: string;
@@ -738,13 +738,13 @@ export declare const patientListSchema: z.ZodObject<{
738
738
  city: z.ZodString;
739
739
  state: z.ZodUnion<[z.ZodNativeEnum<typeof import("./common/us-data").USState>, z.ZodString]>;
740
740
  zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
741
- country: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>>;
741
+ country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>;
742
742
  }, "strip", z.ZodTypeAny, {
743
743
  addressLine1: string;
744
744
  city: string;
745
745
  state: string;
746
746
  zip: string;
747
- country: string;
747
+ country: "USA";
748
748
  addressLine2?: string | undefined;
749
749
  }, {
750
750
  addressLine1: string;
@@ -752,20 +752,20 @@ export declare const patientListSchema: z.ZodObject<{
752
752
  state: string;
753
753
  zip: string;
754
754
  addressLine2?: string | undefined;
755
- country?: string | undefined;
755
+ country?: "USA" | undefined;
756
756
  }>, "many">, z.ZodObject<{
757
757
  addressLine1: z.ZodString;
758
758
  addressLine2: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>;
759
759
  city: z.ZodString;
760
760
  state: z.ZodUnion<[z.ZodNativeEnum<typeof import("./common/us-data").USState>, z.ZodString]>;
761
761
  zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
762
- country: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>>;
762
+ country: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USA">>>;
763
763
  }, "strip", z.ZodTypeAny, {
764
764
  addressLine1: string;
765
765
  city: string;
766
766
  state: string;
767
767
  zip: string;
768
- country: string;
768
+ country: "USA";
769
769
  addressLine2?: string | undefined;
770
770
  }, {
771
771
  addressLine1: string;
@@ -773,7 +773,7 @@ export declare const patientListSchema: z.ZodObject<{
773
773
  state: string;
774
774
  zip: string;
775
775
  addressLine2?: string | undefined;
776
- country?: string | undefined;
776
+ country?: "USA" | undefined;
777
777
  }>]>;
778
778
  firstName: z.ZodString;
779
779
  lastName: z.ZodString;
@@ -867,28 +867,28 @@ export declare const patientListSchema: z.ZodObject<{
867
867
  city: string;
868
868
  state: string;
869
869
  zip: string;
870
- country: string;
870
+ country: "USA";
871
871
  addressLine2?: string | undefined;
872
872
  } | {
873
873
  addressLine1: string;
874
874
  city: string;
875
875
  state: string;
876
876
  zip: string;
877
- country: string;
877
+ country: "USA";
878
878
  addressLine2?: string | undefined;
879
879
  }[]) & ({
880
880
  addressLine1: string;
881
881
  city: string;
882
882
  state: string;
883
883
  zip: string;
884
- country: string;
884
+ country: "USA";
885
885
  addressLine2?: string | undefined;
886
886
  } | {
887
887
  addressLine1: string;
888
888
  city: string;
889
889
  state: string;
890
890
  zip: string;
891
- country: string;
891
+ country: "USA";
892
892
  addressLine2?: string | undefined;
893
893
  }[] | undefined);
894
894
  firstName: string;
@@ -925,28 +925,28 @@ export declare const patientListSchema: z.ZodObject<{
925
925
  state: string;
926
926
  zip: string;
927
927
  addressLine2?: string | undefined;
928
- country?: string | undefined;
928
+ country?: "USA" | undefined;
929
929
  } | {
930
930
  addressLine1: string;
931
931
  city: string;
932
932
  state: string;
933
933
  zip: string;
934
934
  addressLine2?: string | undefined;
935
- country?: string | undefined;
935
+ country?: "USA" | undefined;
936
936
  }[]) & ({
937
937
  addressLine1: string;
938
938
  city: string;
939
939
  state: string;
940
940
  zip: string;
941
941
  addressLine2?: string | undefined;
942
- country?: string | undefined;
942
+ country?: "USA" | undefined;
943
943
  } | {
944
944
  addressLine1: string;
945
945
  city: string;
946
946
  state: string;
947
947
  zip: string;
948
948
  addressLine2?: string | undefined;
949
- country?: string | undefined;
949
+ country?: "USA" | undefined;
950
950
  }[] | undefined);
951
951
  firstName: string;
952
952
  lastName: string;
@@ -983,28 +983,28 @@ export declare const patientListSchema: z.ZodObject<{
983
983
  city: string;
984
984
  state: string;
985
985
  zip: string;
986
- country: string;
986
+ country: "USA";
987
987
  addressLine2?: string | undefined;
988
988
  } | {
989
989
  addressLine1: string;
990
990
  city: string;
991
991
  state: string;
992
992
  zip: string;
993
- country: string;
993
+ country: "USA";
994
994
  addressLine2?: string | undefined;
995
995
  }[]) & ({
996
996
  addressLine1: string;
997
997
  city: string;
998
998
  state: string;
999
999
  zip: string;
1000
- country: string;
1000
+ country: "USA";
1001
1001
  addressLine2?: string | undefined;
1002
1002
  } | {
1003
1003
  addressLine1: string;
1004
1004
  city: string;
1005
1005
  state: string;
1006
1006
  zip: string;
1007
- country: string;
1007
+ country: "USA";
1008
1008
  addressLine2?: string | undefined;
1009
1009
  }[] | undefined);
1010
1010
  firstName: string;
@@ -1043,28 +1043,28 @@ export declare const patientListSchema: z.ZodObject<{
1043
1043
  state: string;
1044
1044
  zip: string;
1045
1045
  addressLine2?: string | undefined;
1046
- country?: string | undefined;
1046
+ country?: "USA" | undefined;
1047
1047
  } | {
1048
1048
  addressLine1: string;
1049
1049
  city: string;
1050
1050
  state: string;
1051
1051
  zip: string;
1052
1052
  addressLine2?: string | undefined;
1053
- country?: string | undefined;
1053
+ country?: "USA" | undefined;
1054
1054
  }[]) & ({
1055
1055
  addressLine1: string;
1056
1056
  city: string;
1057
1057
  state: string;
1058
1058
  zip: string;
1059
1059
  addressLine2?: string | undefined;
1060
- country?: string | undefined;
1060
+ country?: "USA" | undefined;
1061
1061
  } | {
1062
1062
  addressLine1: string;
1063
1063
  city: string;
1064
1064
  state: string;
1065
1065
  zip: string;
1066
1066
  addressLine2?: string | undefined;
1067
- country?: string | undefined;
1067
+ country?: "USA" | undefined;
1068
1068
  }[] | undefined);
1069
1069
  firstName: string;
1070
1070
  lastName: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metriport/api-sdk",
3
- "version": "7.3.1",
3
+ "version": "7.3.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/",
@@ -56,7 +56,7 @@
56
56
  "url": "https://github.com/metriport/metriport/issues"
57
57
  },
58
58
  "dependencies": {
59
- "@metriport/commonwell-sdk": "^4.8.14",
59
+ "@metriport/commonwell-sdk": "^4.8.15",
60
60
  "axios": "^1.3.4",
61
61
  "dayjs": "^1.11.7",
62
62
  "dotenv": "^16.3.1",
@@ -74,5 +74,5 @@
74
74
  "ts-jest": "29.1.1",
75
75
  "typescript": "^4.9.5"
76
76
  },
77
- "gitHead": "913cc4ca9d5aa72f296e523373c12cd0a35ccb59"
77
+ "gitHead": "21966e22f106ac6da888e4ac63d841c31031cb00"
78
78
  }