@metriport/api-sdk 12.1.3-alpha.0 → 12.1.4
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.
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/medical/models/common/address.d.ts +56 -3
- package/dist/medical/models/common/address.d.ts.map +1 -1
- package/dist/medical/models/common/address.js +3 -2
- package/dist/medical/models/common/address.js.map +1 -1
- package/dist/medical/models/common/us-data.d.ts +3 -1
- package/dist/medical/models/common/us-data.d.ts.map +1 -1
- package/dist/medical/models/common/us-data.js +5 -3
- package/dist/medical/models/common/us-data.js.map +1 -1
- package/dist/medical/models/demographics.d.ts +12 -12
- package/dist/medical/models/facility.d.ts +13 -13
- package/dist/medical/models/organization.d.ts +8 -8
- package/dist/medical/models/patient.d.ts +54 -54
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -11,10 +11,10 @@ export { Sleep } from "./devices/models/sleep";
|
|
|
11
11
|
export { User } from "./devices/models/user";
|
|
12
12
|
export { WebhookRequestParsingFailure, WebhookRequest, WebhookRequestStatus, WebhookType, } from "@metriport/shared/medical";
|
|
13
13
|
export { MetriportMedicalApi } from "./medical/client/metriport";
|
|
14
|
-
export { Address, addressSchema } from "./medical/models/common/address";
|
|
14
|
+
export { Address, addressSchema, usStateForAddressSchema } from "./medical/models/common/address";
|
|
15
15
|
export { BaseUpdate, baseUpdateSchema } from "./medical/models/common/base-update";
|
|
16
16
|
export { MedicalDataSource } from "./medical/models/common/medical-data-source";
|
|
17
|
-
export { USState, usStateSchema } from "./medical/models/common/us-data";
|
|
17
|
+
export { USState, usStateSchema, USTerritory, usTerritorySchema, } from "./medical/models/common/us-data";
|
|
18
18
|
export { Contact, contactSchema, Demographics, demographicsSchema, genderAtBirthSchema, PersonalIdentifier, personalIdentifierSchema, GeneralTypeIdentifier, generalPersonalIdentifiers, DriverLicenseIdentifier, driversLicensePersonalIdentifier, } from "./medical/models/demographics";
|
|
19
19
|
export { DocumentQuery, documentQuerySchema, DocumentQueryStatus, documentQueryStatusSchema, ListDocumentFilters, ListDocumentResult, UploadDocumentResult, } from "./medical/models/document";
|
|
20
20
|
export { MedicalRecordsStatusDTO } from "./medical/models/medicalRecordStatus";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,6CAA6C,CAAC;AAChF,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAG7C,OAAO,EACL,4BAA4B,EAC5B,cAAc,EACd,oBAAoB,EACpB,WAAW,GACZ,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,6CAA6C,CAAC;AAChF,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAG7C,OAAO,EACL,4BAA4B,EAC5B,cAAc,EACd,oBAAoB,EACpB,WAAW,GACZ,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAClG,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACnF,OAAO,EAAE,iBAAiB,EAAE,MAAM,6CAA6C,CAAC;AAChF,OAAO,EACL,OAAO,EACP,aAAa,EACb,WAAW,EACX,iBAAiB,GAClB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,OAAO,EACP,aAAa,EACb,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,wBAAwB,EACxB,qBAAqB,EACrB,0BAA0B,EAC1B,uBAAuB,EACvB,gCAAgC,GACjC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,aAAa,EACb,mBAAmB,EACnB,mBAAmB,EACnB,yBAAyB,EACzB,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EACL,QAAQ,EACR,cAAc,EACd,oBAAoB,EACpB,kBAAkB,EAClB,cAAc,GACf,MAAM,2BAA2B,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,wBAAwB,EACxB,kBAAkB,EAClB,OAAO,EACP,aAAa,GACd,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,OAAO,EACP,aAAa,EACb,mBAAmB,EACnB,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,mBAAmB,GACpB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.patientUpdateSchema = exports.patientSchema = exports.patientListSchema = exports.patientCreateSchema = exports.orgTypeSchema = exports.OrgType = exports.organizationSchema = exports.organizationCreateSchema = exports.facilitySchema = exports.facilityListSchema = exports.facilityCreateSchema = exports.documentQueryStatusSchema = exports.documentQuerySchema = exports.driversLicensePersonalIdentifier = exports.generalPersonalIdentifiers = exports.personalIdentifierSchema = exports.genderAtBirthSchema = exports.demographicsSchema = exports.contactSchema = exports.usStateSchema = exports.USState = exports.MedicalDataSource = exports.baseUpdateSchema = exports.addressSchema = exports.MetriportMedicalApi = exports.WebhookRequestParsingFailure = exports.SourceType = exports.ProviderSource = exports.MetriportDevicesApi = void 0;
|
|
17
|
+
exports.patientUpdateSchema = exports.patientSchema = exports.patientListSchema = exports.patientCreateSchema = exports.orgTypeSchema = exports.OrgType = exports.organizationSchema = exports.organizationCreateSchema = exports.facilitySchema = exports.facilityListSchema = exports.facilityCreateSchema = exports.documentQueryStatusSchema = exports.documentQuerySchema = exports.driversLicensePersonalIdentifier = exports.generalPersonalIdentifiers = exports.personalIdentifierSchema = exports.genderAtBirthSchema = exports.demographicsSchema = exports.contactSchema = exports.usTerritorySchema = exports.USTerritory = exports.usStateSchema = exports.USState = exports.MedicalDataSource = exports.baseUpdateSchema = exports.usStateForAddressSchema = exports.addressSchema = exports.MetriportMedicalApi = exports.WebhookRequestParsingFailure = exports.SourceType = exports.ProviderSource = exports.MetriportDevicesApi = void 0;
|
|
18
18
|
// Devices API
|
|
19
19
|
var metriport_1 = require("./devices/client/metriport");
|
|
20
20
|
Object.defineProperty(exports, "MetriportDevicesApi", { enumerable: true, get: function () { return metriport_1.MetriportDevicesApi; } });
|
|
@@ -29,6 +29,7 @@ var metriport_2 = require("./medical/client/metriport");
|
|
|
29
29
|
Object.defineProperty(exports, "MetriportMedicalApi", { enumerable: true, get: function () { return metriport_2.MetriportMedicalApi; } });
|
|
30
30
|
var address_1 = require("./medical/models/common/address");
|
|
31
31
|
Object.defineProperty(exports, "addressSchema", { enumerable: true, get: function () { return address_1.addressSchema; } });
|
|
32
|
+
Object.defineProperty(exports, "usStateForAddressSchema", { enumerable: true, get: function () { return address_1.usStateForAddressSchema; } });
|
|
32
33
|
var base_update_1 = require("./medical/models/common/base-update");
|
|
33
34
|
Object.defineProperty(exports, "baseUpdateSchema", { enumerable: true, get: function () { return base_update_1.baseUpdateSchema; } });
|
|
34
35
|
var medical_data_source_1 = require("./medical/models/common/medical-data-source");
|
|
@@ -36,6 +37,8 @@ Object.defineProperty(exports, "MedicalDataSource", { enumerable: true, get: fun
|
|
|
36
37
|
var us_data_1 = require("./medical/models/common/us-data");
|
|
37
38
|
Object.defineProperty(exports, "USState", { enumerable: true, get: function () { return us_data_1.USState; } });
|
|
38
39
|
Object.defineProperty(exports, "usStateSchema", { enumerable: true, get: function () { return us_data_1.usStateSchema; } });
|
|
40
|
+
Object.defineProperty(exports, "USTerritory", { enumerable: true, get: function () { return us_data_1.USTerritory; } });
|
|
41
|
+
Object.defineProperty(exports, "usTerritorySchema", { enumerable: true, get: function () { return us_data_1.usTerritorySchema; } });
|
|
39
42
|
var demographics_1 = require("./medical/models/demographics");
|
|
40
43
|
Object.defineProperty(exports, "contactSchema", { enumerable: true, get: function () { return demographics_1.contactSchema; } });
|
|
41
44
|
Object.defineProperty(exports, "demographicsSchema", { enumerable: true, get: function () { return demographics_1.demographicsSchema; } });
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,cAAc;AACd,wDAAiE;AAAxD,gHAAA,mBAAmB,OAAA;AAM5B,2EAAyE;AAAhE,iHAAA,cAAc,OAAA;AACvB,mEAAiE;AAAxD,yGAAA,UAAU,OAAA;AAKnB,cAAc;AACd,qDAKmC;AAJjC,uHAAA,4BAA4B,OAAA;AAK9B,wDAAiE;AAAxD,gHAAA,mBAAmB,OAAA;AAC5B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,cAAc;AACd,wDAAiE;AAAxD,gHAAA,mBAAmB,OAAA;AAM5B,2EAAyE;AAAhE,iHAAA,cAAc,OAAA;AACvB,mEAAiE;AAAxD,yGAAA,UAAU,OAAA;AAKnB,cAAc;AACd,qDAKmC;AAJjC,uHAAA,4BAA4B,OAAA;AAK9B,wDAAiE;AAAxD,gHAAA,mBAAmB,OAAA;AAC5B,2DAAkG;AAAhF,wGAAA,aAAa,OAAA;AAAE,kHAAA,uBAAuB,OAAA;AACxD,mEAAmF;AAA9D,+GAAA,gBAAgB,OAAA;AACrC,mFAAgF;AAAvE,wHAAA,iBAAiB,OAAA;AAC1B,2DAKyC;AAJvC,kGAAA,OAAO,OAAA;AACP,wGAAA,aAAa,OAAA;AACb,sGAAA,WAAW,OAAA;AACX,4GAAA,iBAAiB,OAAA;AAEnB,8DAYuC;AAVrC,6GAAA,aAAa,OAAA;AAEb,kHAAA,kBAAkB,OAAA;AAClB,mHAAA,mBAAmB,OAAA;AAEnB,wHAAA,wBAAwB,OAAA;AAExB,0HAAA,0BAA0B,OAAA;AAE1B,gIAAA,gCAAgC,OAAA;AAElC,sDAQmC;AANjC,+GAAA,mBAAmB,OAAA;AAEnB,qHAAA,yBAAyB,OAAA;AAM3B,sDAMmC;AAHjC,gHAAA,oBAAoB,OAAA;AACpB,8GAAA,kBAAkB,OAAA;AAClB,0GAAA,cAAc,OAAA;AAEhB,wDAAsC;AACtC,8DAOuC;AAJrC,wHAAA,wBAAwB,OAAA;AACxB,kHAAA,kBAAkB,OAAA;AAClB,uGAAA,OAAO,OAAA;AACP,6GAAA,aAAa,OAAA;AAEf,oDAQkC;AALhC,8GAAA,mBAAmB,OAAA;AACnB,4GAAA,iBAAiB,OAAA;AACjB,wGAAA,aAAa,OAAA;AAEb,8GAAA,mBAAmB,OAAA"}
|
|
@@ -9,11 +9,64 @@ export declare const geoCoordinateSchema: z.ZodObject<{
|
|
|
9
9
|
lat: number;
|
|
10
10
|
lon: number;
|
|
11
11
|
}>;
|
|
12
|
+
export declare const usStateForAddressSchema: z.ZodUnion<[z.ZodEffects<z.ZodNativeEnum<{
|
|
13
|
+
AL: import("@metriport/shared").USState.AL;
|
|
14
|
+
AK: import("@metriport/shared").USState.AK;
|
|
15
|
+
AZ: import("@metriport/shared").USState.AZ;
|
|
16
|
+
AR: import("@metriport/shared").USState.AR;
|
|
17
|
+
CA: import("@metriport/shared").USState.CA;
|
|
18
|
+
CO: import("@metriport/shared").USState.CO;
|
|
19
|
+
CT: import("@metriport/shared").USState.CT;
|
|
20
|
+
DE: import("@metriport/shared").USState.DE;
|
|
21
|
+
DC: import("@metriport/shared").USState.DC;
|
|
22
|
+
FL: import("@metriport/shared").USState.FL;
|
|
23
|
+
GA: import("@metriport/shared").USState.GA;
|
|
24
|
+
HI: import("@metriport/shared").USState.HI;
|
|
25
|
+
ID: import("@metriport/shared").USState.ID;
|
|
26
|
+
IL: import("@metriport/shared").USState.IL;
|
|
27
|
+
IN: import("@metriport/shared").USState.IN;
|
|
28
|
+
IA: import("@metriport/shared").USState.IA;
|
|
29
|
+
KS: import("@metriport/shared").USState.KS;
|
|
30
|
+
KY: import("@metriport/shared").USState.KY;
|
|
31
|
+
LA: import("@metriport/shared").USState.LA;
|
|
32
|
+
ME: import("@metriport/shared").USState.ME;
|
|
33
|
+
MD: import("@metriport/shared").USState.MD;
|
|
34
|
+
MA: import("@metriport/shared").USState.MA;
|
|
35
|
+
MI: import("@metriport/shared").USState.MI;
|
|
36
|
+
MN: import("@metriport/shared").USState.MN;
|
|
37
|
+
MS: import("@metriport/shared").USState.MS;
|
|
38
|
+
MO: import("@metriport/shared").USState.MO;
|
|
39
|
+
MT: import("@metriport/shared").USState.MT;
|
|
40
|
+
NE: import("@metriport/shared").USState.NE;
|
|
41
|
+
NV: import("@metriport/shared").USState.NV;
|
|
42
|
+
NH: import("@metriport/shared").USState.NH;
|
|
43
|
+
NJ: import("@metriport/shared").USState.NJ;
|
|
44
|
+
NM: import("@metriport/shared").USState.NM;
|
|
45
|
+
NY: import("@metriport/shared").USState.NY;
|
|
46
|
+
NC: import("@metriport/shared").USState.NC;
|
|
47
|
+
ND: import("@metriport/shared").USState.ND;
|
|
48
|
+
OH: import("@metriport/shared").USState.OH;
|
|
49
|
+
OK: import("@metriport/shared").USState.OK;
|
|
50
|
+
OR: import("@metriport/shared").USState.OR;
|
|
51
|
+
PA: import("@metriport/shared").USState.PA;
|
|
52
|
+
RI: import("@metriport/shared").USState.RI;
|
|
53
|
+
SC: import("@metriport/shared").USState.SC;
|
|
54
|
+
SD: import("@metriport/shared").USState.SD;
|
|
55
|
+
TN: import("@metriport/shared").USState.TN;
|
|
56
|
+
TX: import("@metriport/shared").USState.TX;
|
|
57
|
+
UT: import("@metriport/shared").USState.UT;
|
|
58
|
+
VT: import("@metriport/shared").USState.VT;
|
|
59
|
+
VA: import("@metriport/shared").USState.VA;
|
|
60
|
+
WA: import("@metriport/shared").USState.WA;
|
|
61
|
+
WV: import("@metriport/shared").USState.WV;
|
|
62
|
+
WI: import("@metriport/shared").USState.WI;
|
|
63
|
+
WY: import("@metriport/shared").USState.WY;
|
|
64
|
+
}>, import("@metriport/shared").USState, unknown>, z.ZodEffects<z.ZodNativeEnum<typeof import("@metriport/shared").USTerritory>, import("@metriport/shared").USTerritory, unknown>]>;
|
|
12
65
|
export declare const addressSchema: z.ZodObject<{
|
|
13
66
|
addressLine1: z.ZodString;
|
|
14
67
|
addressLine2: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>;
|
|
15
68
|
city: z.ZodString;
|
|
16
|
-
state: z.ZodEffects<z.ZodNativeEnum<{
|
|
69
|
+
state: z.ZodUnion<[z.ZodEffects<z.ZodNativeEnum<{
|
|
17
70
|
AL: import("@metriport/shared").USState.AL;
|
|
18
71
|
AK: import("@metriport/shared").USState.AK;
|
|
19
72
|
AZ: import("@metriport/shared").USState.AZ;
|
|
@@ -65,7 +118,7 @@ export declare const addressSchema: z.ZodObject<{
|
|
|
65
118
|
WV: import("@metriport/shared").USState.WV;
|
|
66
119
|
WI: import("@metriport/shared").USState.WI;
|
|
67
120
|
WY: import("@metriport/shared").USState.WY;
|
|
68
|
-
}>, import("@metriport/shared").USState, unknown>;
|
|
121
|
+
}>, import("@metriport/shared").USState, unknown>, z.ZodEffects<z.ZodNativeEnum<typeof import("@metriport/shared").USTerritory>, import("@metriport/shared").USTerritory, unknown>]>;
|
|
69
122
|
zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
70
123
|
coordinates: z.ZodOptional<z.ZodObject<{
|
|
71
124
|
lat: z.ZodNumber;
|
|
@@ -81,7 +134,7 @@ export declare const addressSchema: z.ZodObject<{
|
|
|
81
134
|
}, "strip", z.ZodTypeAny, {
|
|
82
135
|
addressLine1: string;
|
|
83
136
|
city: string;
|
|
84
|
-
state: import("@metriport/shared").USState;
|
|
137
|
+
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
85
138
|
zip: string;
|
|
86
139
|
country: "USA";
|
|
87
140
|
addressLine2?: string | undefined;
|
|
@@ -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;AAMxB,eAAO,MAAM,mBAAmB;;;;;;;;;EAG9B,CAAC;AAEH,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":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,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,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.addressSchema = exports.geoCoordinateSchema = void 0;
|
|
3
|
+
exports.addressSchema = exports.usStateForAddressSchema = exports.geoCoordinateSchema = void 0;
|
|
4
4
|
const shared_1 = require("@metriport/shared");
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
const shared_2 = require("../../../shared");
|
|
@@ -10,11 +10,12 @@ exports.geoCoordinateSchema = zod_1.z.object({
|
|
|
10
10
|
lat: zod_1.z.number(),
|
|
11
11
|
lon: zod_1.z.number(),
|
|
12
12
|
});
|
|
13
|
+
exports.usStateForAddressSchema = us_data_1.usStateSchema.or(us_data_1.usTerritorySchema);
|
|
13
14
|
exports.addressSchema = zod_1.z.object({
|
|
14
15
|
addressLine1: shared_2.defaultString.min(1, { message: "Address line must be specified." }),
|
|
15
16
|
addressLine2: shared_2.defaultOptionalString,
|
|
16
17
|
city: shared_2.defaultString.min(1, { message: "City must be specified." }),
|
|
17
|
-
state:
|
|
18
|
+
state: exports.usStateForAddressSchema,
|
|
18
19
|
zip: zod_1.z.coerce
|
|
19
20
|
.string()
|
|
20
21
|
.transform(zipStr => (0, shared_1.stripNonNumericChars)(zipStr))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"address.js","sourceRoot":"","sources":["../../../../src/medical/models/common/address.ts"],"names":[],"mappings":";;;AAAA,8CAAyD;AACzD,6BAAwB;AACxB,4CAAuE;AACvE,
|
|
1
|
+
{"version":3,"file":"address.js","sourceRoot":"","sources":["../../../../src/medical/models/common/address.ts"],"names":[],"mappings":";;;AAAA,8CAAyD;AACzD,6BAAwB;AACxB,4CAAuE;AACvE,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,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,+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,5 +1,5 @@
|
|
|
1
|
+
import { USState as USStateShared, USTerritory as USTerritoryShared } from "@metriport/shared";
|
|
1
2
|
import { z } from "zod";
|
|
2
|
-
import { USState as USStateShared } from "@metriport/shared";
|
|
3
3
|
export declare const USState: {
|
|
4
4
|
AL: USStateShared.AL;
|
|
5
5
|
AK: USStateShared.AK;
|
|
@@ -106,4 +106,6 @@ export declare const usStateSchema: z.ZodEffects<z.ZodNativeEnum<{
|
|
|
106
106
|
WI: USStateShared.WI;
|
|
107
107
|
WY: USStateShared.WY;
|
|
108
108
|
}>, USStateShared, unknown>;
|
|
109
|
+
export declare const USTerritory: typeof USTerritoryShared;
|
|
110
|
+
export declare const usTerritorySchema: z.ZodEffects<z.ZodNativeEnum<typeof USTerritoryShared>, USTerritoryShared, unknown>;
|
|
109
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,EAAE,
|
|
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,10 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.usStateSchema = exports.USState = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
3
|
+
exports.usTerritorySchema = exports.USTerritory = exports.usStateSchema = exports.USState = void 0;
|
|
5
4
|
const shared_1 = require("@metriport/shared");
|
|
5
|
+
const zod_1 = require("zod");
|
|
6
6
|
exports.USState = {
|
|
7
7
|
...shared_1.USState,
|
|
8
8
|
};
|
|
9
|
-
exports.usStateSchema = zod_1.z.preprocess(val => (typeof val === "string" ? val.toUpperCase() : val), zod_1.z.nativeEnum(exports.USState));
|
|
9
|
+
exports.usStateSchema = zod_1.z.preprocess(val => (typeof val === "string" ? val.toUpperCase().trim() : val), zod_1.z.nativeEnum(exports.USState));
|
|
10
|
+
exports.USTerritory = shared_1.USTerritory;
|
|
11
|
+
exports.usTerritorySchema = zod_1.z.preprocess(val => (typeof val === "string" ? val.toUpperCase().trim() : val), zod_1.z.nativeEnum(exports.USTerritory));
|
|
10
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,
|
|
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"}
|
|
@@ -542,7 +542,7 @@ export declare const demographicsSchema: z.ZodObject<{
|
|
|
542
542
|
addressLine1: z.ZodString;
|
|
543
543
|
addressLine2: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>;
|
|
544
544
|
city: z.ZodString;
|
|
545
|
-
state: z.ZodEffects<z.ZodNativeEnum<{
|
|
545
|
+
state: z.ZodUnion<[z.ZodEffects<z.ZodNativeEnum<{
|
|
546
546
|
AL: import("@metriport/shared").USState.AL;
|
|
547
547
|
AK: import("@metriport/shared").USState.AK;
|
|
548
548
|
AZ: import("@metriport/shared").USState.AZ;
|
|
@@ -594,7 +594,7 @@ export declare const demographicsSchema: z.ZodObject<{
|
|
|
594
594
|
WV: import("@metriport/shared").USState.WV;
|
|
595
595
|
WI: import("@metriport/shared").USState.WI;
|
|
596
596
|
WY: import("@metriport/shared").USState.WY;
|
|
597
|
-
}>, import("@metriport/shared").USState, unknown>;
|
|
597
|
+
}>, import("@metriport/shared").USState, unknown>, z.ZodEffects<z.ZodNativeEnum<typeof import("@metriport/shared").USTerritory>, import("@metriport/shared").USTerritory, unknown>]>;
|
|
598
598
|
zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
599
599
|
coordinates: z.ZodOptional<z.ZodObject<{
|
|
600
600
|
lat: z.ZodNumber;
|
|
@@ -610,7 +610,7 @@ export declare const demographicsSchema: z.ZodObject<{
|
|
|
610
610
|
}, "strip", z.ZodTypeAny, {
|
|
611
611
|
addressLine1: string;
|
|
612
612
|
city: string;
|
|
613
|
-
state: import("@metriport/shared").USState;
|
|
613
|
+
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
614
614
|
zip: string;
|
|
615
615
|
country: "USA";
|
|
616
616
|
addressLine2?: string | undefined;
|
|
@@ -633,7 +633,7 @@ export declare const demographicsSchema: z.ZodObject<{
|
|
|
633
633
|
addressLine1: z.ZodString;
|
|
634
634
|
addressLine2: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>;
|
|
635
635
|
city: z.ZodString;
|
|
636
|
-
state: z.ZodEffects<z.ZodNativeEnum<{
|
|
636
|
+
state: z.ZodUnion<[z.ZodEffects<z.ZodNativeEnum<{
|
|
637
637
|
AL: import("@metriport/shared").USState.AL;
|
|
638
638
|
AK: import("@metriport/shared").USState.AK;
|
|
639
639
|
AZ: import("@metriport/shared").USState.AZ;
|
|
@@ -685,7 +685,7 @@ export declare const demographicsSchema: z.ZodObject<{
|
|
|
685
685
|
WV: import("@metriport/shared").USState.WV;
|
|
686
686
|
WI: import("@metriport/shared").USState.WI;
|
|
687
687
|
WY: import("@metriport/shared").USState.WY;
|
|
688
|
-
}>, import("@metriport/shared").USState, unknown>;
|
|
688
|
+
}>, import("@metriport/shared").USState, unknown>, z.ZodEffects<z.ZodNativeEnum<typeof import("@metriport/shared").USTerritory>, import("@metriport/shared").USTerritory, unknown>]>;
|
|
689
689
|
zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
690
690
|
coordinates: z.ZodOptional<z.ZodObject<{
|
|
691
691
|
lat: z.ZodNumber;
|
|
@@ -701,7 +701,7 @@ export declare const demographicsSchema: z.ZodObject<{
|
|
|
701
701
|
}, "strip", z.ZodTypeAny, {
|
|
702
702
|
addressLine1: string;
|
|
703
703
|
city: string;
|
|
704
|
-
state: import("@metriport/shared").USState;
|
|
704
|
+
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
705
705
|
zip: string;
|
|
706
706
|
country: "USA";
|
|
707
707
|
addressLine2?: string | undefined;
|
|
@@ -760,7 +760,7 @@ export declare const demographicsSchema: z.ZodObject<{
|
|
|
760
760
|
address: ({
|
|
761
761
|
addressLine1: string;
|
|
762
762
|
city: string;
|
|
763
|
-
state: import("@metriport/shared").USState;
|
|
763
|
+
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
764
764
|
zip: string;
|
|
765
765
|
country: "USA";
|
|
766
766
|
addressLine2?: string | undefined;
|
|
@@ -771,7 +771,7 @@ export declare const demographicsSchema: z.ZodObject<{
|
|
|
771
771
|
} | [{
|
|
772
772
|
addressLine1: string;
|
|
773
773
|
city: string;
|
|
774
|
-
state: import("@metriport/shared").USState;
|
|
774
|
+
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
775
775
|
zip: string;
|
|
776
776
|
country: "USA";
|
|
777
777
|
addressLine2?: string | undefined;
|
|
@@ -782,7 +782,7 @@ export declare const demographicsSchema: z.ZodObject<{
|
|
|
782
782
|
}, ...{
|
|
783
783
|
addressLine1: string;
|
|
784
784
|
city: string;
|
|
785
|
-
state: import("@metriport/shared").USState;
|
|
785
|
+
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
786
786
|
zip: string;
|
|
787
787
|
country: "USA";
|
|
788
788
|
addressLine2?: string | undefined;
|
|
@@ -793,7 +793,7 @@ export declare const demographicsSchema: z.ZodObject<{
|
|
|
793
793
|
}[]]) & ({
|
|
794
794
|
addressLine1: string;
|
|
795
795
|
city: string;
|
|
796
|
-
state: import("@metriport/shared").USState;
|
|
796
|
+
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
797
797
|
zip: string;
|
|
798
798
|
country: "USA";
|
|
799
799
|
addressLine2?: string | undefined;
|
|
@@ -804,7 +804,7 @@ export declare const demographicsSchema: z.ZodObject<{
|
|
|
804
804
|
} | [{
|
|
805
805
|
addressLine1: string;
|
|
806
806
|
city: string;
|
|
807
|
-
state: import("@metriport/shared").USState;
|
|
807
|
+
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
808
808
|
zip: string;
|
|
809
809
|
country: "USA";
|
|
810
810
|
addressLine2?: string | undefined;
|
|
@@ -815,7 +815,7 @@ export declare const demographicsSchema: z.ZodObject<{
|
|
|
815
815
|
}, ...{
|
|
816
816
|
addressLine1: string;
|
|
817
817
|
city: string;
|
|
818
|
-
state: import("@metriport/shared").USState;
|
|
818
|
+
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
819
819
|
zip: string;
|
|
820
820
|
country: "USA";
|
|
821
821
|
addressLine2?: string | undefined;
|
|
@@ -8,7 +8,7 @@ export declare const facilityCreateSchema: z.ZodObject<{
|
|
|
8
8
|
addressLine1: z.ZodString;
|
|
9
9
|
addressLine2: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>;
|
|
10
10
|
city: z.ZodString;
|
|
11
|
-
state: z.ZodEffects<z.ZodNativeEnum<{
|
|
11
|
+
state: z.ZodUnion<[z.ZodEffects<z.ZodNativeEnum<{
|
|
12
12
|
AL: import("@metriport/shared").USState.AL;
|
|
13
13
|
AK: import("@metriport/shared").USState.AK;
|
|
14
14
|
AZ: import("@metriport/shared").USState.AZ;
|
|
@@ -60,7 +60,7 @@ export declare const facilityCreateSchema: z.ZodObject<{
|
|
|
60
60
|
WV: import("@metriport/shared").USState.WV;
|
|
61
61
|
WI: import("@metriport/shared").USState.WI;
|
|
62
62
|
WY: import("@metriport/shared").USState.WY;
|
|
63
|
-
}>, import("@metriport/shared").USState, unknown>;
|
|
63
|
+
}>, import("@metriport/shared").USState, unknown>, z.ZodEffects<z.ZodNativeEnum<typeof import("@metriport/shared").USTerritory>, import("@metriport/shared").USTerritory, unknown>]>;
|
|
64
64
|
zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
65
65
|
coordinates: z.ZodOptional<z.ZodObject<{
|
|
66
66
|
lat: z.ZodNumber;
|
|
@@ -76,7 +76,7 @@ export declare const facilityCreateSchema: z.ZodObject<{
|
|
|
76
76
|
}, "strip", z.ZodTypeAny, {
|
|
77
77
|
addressLine1: string;
|
|
78
78
|
city: string;
|
|
79
|
-
state: import("@metriport/shared").USState;
|
|
79
|
+
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
80
80
|
zip: string;
|
|
81
81
|
country: "USA";
|
|
82
82
|
addressLine2?: string | undefined;
|
|
@@ -100,7 +100,7 @@ export declare const facilityCreateSchema: z.ZodObject<{
|
|
|
100
100
|
address: {
|
|
101
101
|
addressLine1: string;
|
|
102
102
|
city: string;
|
|
103
|
-
state: import("@metriport/shared").USState;
|
|
103
|
+
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
104
104
|
zip: string;
|
|
105
105
|
country: "USA";
|
|
106
106
|
addressLine2?: string | undefined;
|
|
@@ -137,7 +137,7 @@ export declare const facilitySchema: z.ZodObject<{
|
|
|
137
137
|
addressLine1: z.ZodString;
|
|
138
138
|
addressLine2: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>;
|
|
139
139
|
city: z.ZodString;
|
|
140
|
-
state: z.ZodEffects<z.ZodNativeEnum<{
|
|
140
|
+
state: z.ZodUnion<[z.ZodEffects<z.ZodNativeEnum<{
|
|
141
141
|
AL: import("@metriport/shared").USState.AL;
|
|
142
142
|
AK: import("@metriport/shared").USState.AK;
|
|
143
143
|
AZ: import("@metriport/shared").USState.AZ;
|
|
@@ -189,7 +189,7 @@ export declare const facilitySchema: z.ZodObject<{
|
|
|
189
189
|
WV: import("@metriport/shared").USState.WV;
|
|
190
190
|
WI: import("@metriport/shared").USState.WI;
|
|
191
191
|
WY: import("@metriport/shared").USState.WY;
|
|
192
|
-
}>, import("@metriport/shared").USState, unknown>;
|
|
192
|
+
}>, import("@metriport/shared").USState, unknown>, z.ZodEffects<z.ZodNativeEnum<typeof import("@metriport/shared").USTerritory>, import("@metriport/shared").USTerritory, unknown>]>;
|
|
193
193
|
zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
194
194
|
coordinates: z.ZodOptional<z.ZodObject<{
|
|
195
195
|
lat: z.ZodNumber;
|
|
@@ -205,7 +205,7 @@ export declare const facilitySchema: z.ZodObject<{
|
|
|
205
205
|
}, "strip", z.ZodTypeAny, {
|
|
206
206
|
addressLine1: string;
|
|
207
207
|
city: string;
|
|
208
|
-
state: import("@metriport/shared").USState;
|
|
208
|
+
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
209
209
|
zip: string;
|
|
210
210
|
country: "USA";
|
|
211
211
|
addressLine2?: string | undefined;
|
|
@@ -236,7 +236,7 @@ export declare const facilitySchema: z.ZodObject<{
|
|
|
236
236
|
address: {
|
|
237
237
|
addressLine1: string;
|
|
238
238
|
city: string;
|
|
239
|
-
state: import("@metriport/shared").USState;
|
|
239
|
+
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
240
240
|
zip: string;
|
|
241
241
|
country: "USA";
|
|
242
242
|
addressLine2?: string | undefined;
|
|
@@ -277,7 +277,7 @@ export declare const facilityListSchema: z.ZodObject<{
|
|
|
277
277
|
addressLine1: z.ZodString;
|
|
278
278
|
addressLine2: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>;
|
|
279
279
|
city: z.ZodString;
|
|
280
|
-
state: z.ZodEffects<z.ZodNativeEnum<{
|
|
280
|
+
state: z.ZodUnion<[z.ZodEffects<z.ZodNativeEnum<{
|
|
281
281
|
AL: import("@metriport/shared").USState.AL;
|
|
282
282
|
AK: import("@metriport/shared").USState.AK;
|
|
283
283
|
AZ: import("@metriport/shared").USState.AZ;
|
|
@@ -329,7 +329,7 @@ export declare const facilityListSchema: z.ZodObject<{
|
|
|
329
329
|
WV: import("@metriport/shared").USState.WV;
|
|
330
330
|
WI: import("@metriport/shared").USState.WI;
|
|
331
331
|
WY: import("@metriport/shared").USState.WY;
|
|
332
|
-
}>, import("@metriport/shared").USState, unknown>;
|
|
332
|
+
}>, import("@metriport/shared").USState, unknown>, z.ZodEffects<z.ZodNativeEnum<typeof import("@metriport/shared").USTerritory>, import("@metriport/shared").USTerritory, unknown>]>;
|
|
333
333
|
zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
334
334
|
coordinates: z.ZodOptional<z.ZodObject<{
|
|
335
335
|
lat: z.ZodNumber;
|
|
@@ -345,7 +345,7 @@ export declare const facilityListSchema: z.ZodObject<{
|
|
|
345
345
|
}, "strip", z.ZodTypeAny, {
|
|
346
346
|
addressLine1: string;
|
|
347
347
|
city: string;
|
|
348
|
-
state: import("@metriport/shared").USState;
|
|
348
|
+
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
349
349
|
zip: string;
|
|
350
350
|
country: "USA";
|
|
351
351
|
addressLine2?: string | undefined;
|
|
@@ -376,7 +376,7 @@ export declare const facilityListSchema: z.ZodObject<{
|
|
|
376
376
|
address: {
|
|
377
377
|
addressLine1: string;
|
|
378
378
|
city: string;
|
|
379
|
-
state: import("@metriport/shared").USState;
|
|
379
|
+
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
380
380
|
zip: string;
|
|
381
381
|
country: "USA";
|
|
382
382
|
addressLine2?: string | undefined;
|
|
@@ -416,7 +416,7 @@ export declare const facilityListSchema: z.ZodObject<{
|
|
|
416
416
|
address: {
|
|
417
417
|
addressLine1: string;
|
|
418
418
|
city: string;
|
|
419
|
-
state: import("@metriport/shared").USState;
|
|
419
|
+
state: import("@metriport/shared").USState | import("@metriport/shared").USTerritory;
|
|
420
420
|
zip: string;
|
|
421
421
|
country: "USA";
|
|
422
422
|
addressLine2?: string | undefined;
|
|
@@ -15,7 +15,7 @@ export declare const organizationCreateSchema: z.ZodObject<{
|
|
|
15
15
|
addressLine1: z.ZodString;
|
|
16
16
|
addressLine2: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>;
|
|
17
17
|
city: z.ZodString;
|
|
18
|
-
state: z.ZodEffects<z.ZodNativeEnum<{
|
|
18
|
+
state: z.ZodUnion<[z.ZodEffects<z.ZodNativeEnum<{
|
|
19
19
|
AL: import("@metriport/shared/dist/domain/address/state").USState.AL;
|
|
20
20
|
AK: import("@metriport/shared/dist/domain/address/state").USState.AK;
|
|
21
21
|
AZ: import("@metriport/shared/dist/domain/address/state").USState.AZ;
|
|
@@ -67,7 +67,7 @@ export declare const organizationCreateSchema: z.ZodObject<{
|
|
|
67
67
|
WV: import("@metriport/shared/dist/domain/address/state").USState.WV;
|
|
68
68
|
WI: import("@metriport/shared/dist/domain/address/state").USState.WI;
|
|
69
69
|
WY: import("@metriport/shared/dist/domain/address/state").USState.WY;
|
|
70
|
-
}>, import("@metriport/shared/dist/domain/address/state").USState, unknown>;
|
|
70
|
+
}>, import("@metriport/shared/dist/domain/address/state").USState, unknown>, z.ZodEffects<z.ZodNativeEnum<typeof import("@metriport/shared/dist/domain/address/territory").USTerritory>, import("@metriport/shared/dist/domain/address/territory").USTerritory, unknown>]>;
|
|
71
71
|
zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
72
72
|
coordinates: z.ZodOptional<z.ZodObject<{
|
|
73
73
|
lat: z.ZodNumber;
|
|
@@ -83,7 +83,7 @@ export declare const organizationCreateSchema: z.ZodObject<{
|
|
|
83
83
|
}, "strip", z.ZodTypeAny, {
|
|
84
84
|
addressLine1: string;
|
|
85
85
|
city: string;
|
|
86
|
-
state: import("@metriport/shared/dist/domain/address/state").USState;
|
|
86
|
+
state: import("@metriport/shared/dist/domain/address/state").USState | import("@metriport/shared/dist/domain/address/territory").USTerritory;
|
|
87
87
|
zip: string;
|
|
88
88
|
country: "USA";
|
|
89
89
|
addressLine2?: string | undefined;
|
|
@@ -109,7 +109,7 @@ export declare const organizationCreateSchema: z.ZodObject<{
|
|
|
109
109
|
location: {
|
|
110
110
|
addressLine1: string;
|
|
111
111
|
city: string;
|
|
112
|
-
state: import("@metriport/shared/dist/domain/address/state").USState;
|
|
112
|
+
state: import("@metriport/shared/dist/domain/address/state").USState | import("@metriport/shared/dist/domain/address/territory").USTerritory;
|
|
113
113
|
zip: string;
|
|
114
114
|
country: "USA";
|
|
115
115
|
addressLine2?: string | undefined;
|
|
@@ -142,7 +142,7 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
142
142
|
addressLine1: z.ZodString;
|
|
143
143
|
addressLine2: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>;
|
|
144
144
|
city: z.ZodString;
|
|
145
|
-
state: z.ZodEffects<z.ZodNativeEnum<{
|
|
145
|
+
state: z.ZodUnion<[z.ZodEffects<z.ZodNativeEnum<{
|
|
146
146
|
AL: import("@metriport/shared/dist/domain/address/state").USState.AL;
|
|
147
147
|
AK: import("@metriport/shared/dist/domain/address/state").USState.AK;
|
|
148
148
|
AZ: import("@metriport/shared/dist/domain/address/state").USState.AZ;
|
|
@@ -194,7 +194,7 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
194
194
|
WV: import("@metriport/shared/dist/domain/address/state").USState.WV;
|
|
195
195
|
WI: import("@metriport/shared/dist/domain/address/state").USState.WI;
|
|
196
196
|
WY: import("@metriport/shared/dist/domain/address/state").USState.WY;
|
|
197
|
-
}>, import("@metriport/shared/dist/domain/address/state").USState, unknown>;
|
|
197
|
+
}>, import("@metriport/shared/dist/domain/address/state").USState, unknown>, z.ZodEffects<z.ZodNativeEnum<typeof import("@metriport/shared/dist/domain/address/territory").USTerritory>, import("@metriport/shared/dist/domain/address/territory").USTerritory, unknown>]>;
|
|
198
198
|
zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
199
199
|
coordinates: z.ZodOptional<z.ZodObject<{
|
|
200
200
|
lat: z.ZodNumber;
|
|
@@ -210,7 +210,7 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
210
210
|
}, "strip", z.ZodTypeAny, {
|
|
211
211
|
addressLine1: string;
|
|
212
212
|
city: string;
|
|
213
|
-
state: import("@metriport/shared/dist/domain/address/state").USState;
|
|
213
|
+
state: import("@metriport/shared/dist/domain/address/state").USState | import("@metriport/shared/dist/domain/address/territory").USTerritory;
|
|
214
214
|
zip: string;
|
|
215
215
|
country: "USA";
|
|
216
216
|
addressLine2?: string | undefined;
|
|
@@ -240,7 +240,7 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
240
240
|
location: {
|
|
241
241
|
addressLine1: string;
|
|
242
242
|
city: string;
|
|
243
|
-
state: import("@metriport/shared/dist/domain/address/state").USState;
|
|
243
|
+
state: import("@metriport/shared/dist/domain/address/state").USState | import("@metriport/shared/dist/domain/address/territory").USTerritory;
|
|
244
244
|
zip: string;
|
|
245
245
|
country: "USA";
|
|
246
246
|
addressLine2?: string | undefined;
|
|
@@ -155,7 +155,7 @@ export declare const patientCreateSchema: 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
|
-
state: z.ZodEffects<z.ZodNativeEnum<{
|
|
158
|
+
state: z.ZodUnion<[z.ZodEffects<z.ZodNativeEnum<{
|
|
159
159
|
AL: import("@metriport/shared/dist/domain/address/state").USState.AL;
|
|
160
160
|
AK: import("@metriport/shared/dist/domain/address/state").USState.AK;
|
|
161
161
|
AZ: import("@metriport/shared/dist/domain/address/state").USState.AZ;
|
|
@@ -207,7 +207,7 @@ export declare const patientCreateSchema: z.ZodObject<{
|
|
|
207
207
|
WV: import("@metriport/shared/dist/domain/address/state").USState.WV;
|
|
208
208
|
WI: import("@metriport/shared/dist/domain/address/state").USState.WI;
|
|
209
209
|
WY: import("@metriport/shared/dist/domain/address/state").USState.WY;
|
|
210
|
-
}>, import("@metriport/shared/dist/domain/address/state").USState, unknown>;
|
|
210
|
+
}>, import("@metriport/shared/dist/domain/address/state").USState, unknown>, z.ZodEffects<z.ZodNativeEnum<typeof import("@metriport/shared/dist/domain/address/territory").USTerritory>, import("@metriport/shared/dist/domain/address/territory").USTerritory, unknown>]>;
|
|
211
211
|
zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
212
212
|
coordinates: z.ZodOptional<z.ZodObject<{
|
|
213
213
|
lat: z.ZodNumber;
|
|
@@ -223,7 +223,7 @@ export declare const patientCreateSchema: z.ZodObject<{
|
|
|
223
223
|
}, "strip", z.ZodTypeAny, {
|
|
224
224
|
addressLine1: string;
|
|
225
225
|
city: string;
|
|
226
|
-
state: import("@metriport/shared/dist/domain/address/state").USState;
|
|
226
|
+
state: import("@metriport/shared/dist/domain/address/state").USState | import("@metriport/shared/dist/domain/address/territory").USTerritory;
|
|
227
227
|
zip: string;
|
|
228
228
|
country: "USA";
|
|
229
229
|
addressLine2?: string | undefined;
|
|
@@ -246,7 +246,7 @@ export declare const patientCreateSchema: z.ZodObject<{
|
|
|
246
246
|
addressLine1: z.ZodString;
|
|
247
247
|
addressLine2: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>;
|
|
248
248
|
city: z.ZodString;
|
|
249
|
-
state: z.ZodEffects<z.ZodNativeEnum<{
|
|
249
|
+
state: z.ZodUnion<[z.ZodEffects<z.ZodNativeEnum<{
|
|
250
250
|
AL: import("@metriport/shared/dist/domain/address/state").USState.AL;
|
|
251
251
|
AK: import("@metriport/shared/dist/domain/address/state").USState.AK;
|
|
252
252
|
AZ: import("@metriport/shared/dist/domain/address/state").USState.AZ;
|
|
@@ -298,7 +298,7 @@ export declare const patientCreateSchema: z.ZodObject<{
|
|
|
298
298
|
WV: import("@metriport/shared/dist/domain/address/state").USState.WV;
|
|
299
299
|
WI: import("@metriport/shared/dist/domain/address/state").USState.WI;
|
|
300
300
|
WY: import("@metriport/shared/dist/domain/address/state").USState.WY;
|
|
301
|
-
}>, import("@metriport/shared/dist/domain/address/state").USState, unknown>;
|
|
301
|
+
}>, import("@metriport/shared/dist/domain/address/state").USState, unknown>, z.ZodEffects<z.ZodNativeEnum<typeof import("@metriport/shared/dist/domain/address/territory").USTerritory>, import("@metriport/shared/dist/domain/address/territory").USTerritory, unknown>]>;
|
|
302
302
|
zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
303
303
|
coordinates: z.ZodOptional<z.ZodObject<{
|
|
304
304
|
lat: z.ZodNumber;
|
|
@@ -314,7 +314,7 @@ export declare const patientCreateSchema: z.ZodObject<{
|
|
|
314
314
|
}, "strip", z.ZodTypeAny, {
|
|
315
315
|
addressLine1: string;
|
|
316
316
|
city: string;
|
|
317
|
-
state: import("@metriport/shared/dist/domain/address/state").USState;
|
|
317
|
+
state: import("@metriport/shared/dist/domain/address/state").USState | import("@metriport/shared/dist/domain/address/territory").USTerritory;
|
|
318
318
|
zip: string;
|
|
319
319
|
country: "USA";
|
|
320
320
|
addressLine2?: string | undefined;
|
|
@@ -374,7 +374,7 @@ export declare const patientCreateSchema: z.ZodObject<{
|
|
|
374
374
|
address: ({
|
|
375
375
|
addressLine1: string;
|
|
376
376
|
city: string;
|
|
377
|
-
state: import("@metriport/shared/dist/domain/address/state").USState;
|
|
377
|
+
state: import("@metriport/shared/dist/domain/address/state").USState | import("@metriport/shared/dist/domain/address/territory").USTerritory;
|
|
378
378
|
zip: string;
|
|
379
379
|
country: "USA";
|
|
380
380
|
addressLine2?: string | undefined;
|
|
@@ -385,7 +385,7 @@ export declare const patientCreateSchema: z.ZodObject<{
|
|
|
385
385
|
} | [{
|
|
386
386
|
addressLine1: string;
|
|
387
387
|
city: string;
|
|
388
|
-
state: import("@metriport/shared/dist/domain/address/state").USState;
|
|
388
|
+
state: import("@metriport/shared/dist/domain/address/state").USState | import("@metriport/shared/dist/domain/address/territory").USTerritory;
|
|
389
389
|
zip: string;
|
|
390
390
|
country: "USA";
|
|
391
391
|
addressLine2?: string | undefined;
|
|
@@ -396,7 +396,7 @@ export declare const patientCreateSchema: z.ZodObject<{
|
|
|
396
396
|
}, ...{
|
|
397
397
|
addressLine1: string;
|
|
398
398
|
city: string;
|
|
399
|
-
state: import("@metriport/shared/dist/domain/address/state").USState;
|
|
399
|
+
state: import("@metriport/shared/dist/domain/address/state").USState | import("@metriport/shared/dist/domain/address/territory").USTerritory;
|
|
400
400
|
zip: string;
|
|
401
401
|
country: "USA";
|
|
402
402
|
addressLine2?: string | undefined;
|
|
@@ -407,7 +407,7 @@ export declare const patientCreateSchema: z.ZodObject<{
|
|
|
407
407
|
}[]]) & ({
|
|
408
408
|
addressLine1: string;
|
|
409
409
|
city: string;
|
|
410
|
-
state: import("@metriport/shared/dist/domain/address/state").USState;
|
|
410
|
+
state: import("@metriport/shared/dist/domain/address/state").USState | import("@metriport/shared/dist/domain/address/territory").USTerritory;
|
|
411
411
|
zip: string;
|
|
412
412
|
country: "USA";
|
|
413
413
|
addressLine2?: string | undefined;
|
|
@@ -418,7 +418,7 @@ export declare const patientCreateSchema: z.ZodObject<{
|
|
|
418
418
|
} | [{
|
|
419
419
|
addressLine1: string;
|
|
420
420
|
city: string;
|
|
421
|
-
state: import("@metriport/shared/dist/domain/address/state").USState;
|
|
421
|
+
state: import("@metriport/shared/dist/domain/address/state").USState | import("@metriport/shared/dist/domain/address/territory").USTerritory;
|
|
422
422
|
zip: string;
|
|
423
423
|
country: "USA";
|
|
424
424
|
addressLine2?: string | undefined;
|
|
@@ -429,7 +429,7 @@ export declare const patientCreateSchema: z.ZodObject<{
|
|
|
429
429
|
}, ...{
|
|
430
430
|
addressLine1: string;
|
|
431
431
|
city: string;
|
|
432
|
-
state: import("@metriport/shared/dist/domain/address/state").USState;
|
|
432
|
+
state: import("@metriport/shared/dist/domain/address/state").USState | import("@metriport/shared/dist/domain/address/territory").USTerritory;
|
|
433
433
|
zip: string;
|
|
434
434
|
country: "USA";
|
|
435
435
|
addressLine2?: string | undefined;
|
|
@@ -731,7 +731,7 @@ export declare const patientUpdateSchema: z.ZodObject<{
|
|
|
731
731
|
addressLine1: z.ZodString;
|
|
732
732
|
addressLine2: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>;
|
|
733
733
|
city: z.ZodString;
|
|
734
|
-
state: z.ZodEffects<z.ZodNativeEnum<{
|
|
734
|
+
state: z.ZodUnion<[z.ZodEffects<z.ZodNativeEnum<{
|
|
735
735
|
AL: import("@metriport/shared/dist/domain/address/state").USState.AL;
|
|
736
736
|
AK: import("@metriport/shared/dist/domain/address/state").USState.AK;
|
|
737
737
|
AZ: import("@metriport/shared/dist/domain/address/state").USState.AZ;
|
|
@@ -783,7 +783,7 @@ export declare const patientUpdateSchema: z.ZodObject<{
|
|
|
783
783
|
WV: import("@metriport/shared/dist/domain/address/state").USState.WV;
|
|
784
784
|
WI: import("@metriport/shared/dist/domain/address/state").USState.WI;
|
|
785
785
|
WY: import("@metriport/shared/dist/domain/address/state").USState.WY;
|
|
786
|
-
}>, import("@metriport/shared/dist/domain/address/state").USState, unknown>;
|
|
786
|
+
}>, import("@metriport/shared/dist/domain/address/state").USState, unknown>, z.ZodEffects<z.ZodNativeEnum<typeof import("@metriport/shared/dist/domain/address/territory").USTerritory>, import("@metriport/shared/dist/domain/address/territory").USTerritory, unknown>]>;
|
|
787
787
|
zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
788
788
|
coordinates: z.ZodOptional<z.ZodObject<{
|
|
789
789
|
lat: z.ZodNumber;
|
|
@@ -799,7 +799,7 @@ export declare const patientUpdateSchema: z.ZodObject<{
|
|
|
799
799
|
}, "strip", z.ZodTypeAny, {
|
|
800
800
|
addressLine1: string;
|
|
801
801
|
city: string;
|
|
802
|
-
state: import("@metriport/shared/dist/domain/address/state").USState;
|
|
802
|
+
state: import("@metriport/shared/dist/domain/address/state").USState | import("@metriport/shared/dist/domain/address/territory").USTerritory;
|
|
803
803
|
zip: string;
|
|
804
804
|
country: "USA";
|
|
805
805
|
addressLine2?: string | undefined;
|
|
@@ -822,7 +822,7 @@ export declare const patientUpdateSchema: z.ZodObject<{
|
|
|
822
822
|
addressLine1: z.ZodString;
|
|
823
823
|
addressLine2: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>;
|
|
824
824
|
city: z.ZodString;
|
|
825
|
-
state: z.ZodEffects<z.ZodNativeEnum<{
|
|
825
|
+
state: z.ZodUnion<[z.ZodEffects<z.ZodNativeEnum<{
|
|
826
826
|
AL: import("@metriport/shared/dist/domain/address/state").USState.AL;
|
|
827
827
|
AK: import("@metriport/shared/dist/domain/address/state").USState.AK;
|
|
828
828
|
AZ: import("@metriport/shared/dist/domain/address/state").USState.AZ;
|
|
@@ -874,7 +874,7 @@ export declare const patientUpdateSchema: z.ZodObject<{
|
|
|
874
874
|
WV: import("@metriport/shared/dist/domain/address/state").USState.WV;
|
|
875
875
|
WI: import("@metriport/shared/dist/domain/address/state").USState.WI;
|
|
876
876
|
WY: import("@metriport/shared/dist/domain/address/state").USState.WY;
|
|
877
|
-
}>, import("@metriport/shared/dist/domain/address/state").USState, unknown>;
|
|
877
|
+
}>, import("@metriport/shared/dist/domain/address/state").USState, unknown>, z.ZodEffects<z.ZodNativeEnum<typeof import("@metriport/shared/dist/domain/address/territory").USTerritory>, import("@metriport/shared/dist/domain/address/territory").USTerritory, unknown>]>;
|
|
878
878
|
zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
879
879
|
coordinates: z.ZodOptional<z.ZodObject<{
|
|
880
880
|
lat: z.ZodNumber;
|
|
@@ -890,7 +890,7 @@ export declare const patientUpdateSchema: z.ZodObject<{
|
|
|
890
890
|
}, "strip", z.ZodTypeAny, {
|
|
891
891
|
addressLine1: string;
|
|
892
892
|
city: string;
|
|
893
|
-
state: import("@metriport/shared/dist/domain/address/state").USState;
|
|
893
|
+
state: import("@metriport/shared/dist/domain/address/state").USState | import("@metriport/shared/dist/domain/address/territory").USTerritory;
|
|
894
894
|
zip: string;
|
|
895
895
|
country: "USA";
|
|
896
896
|
addressLine2?: string | undefined;
|
|
@@ -953,7 +953,7 @@ export declare const patientUpdateSchema: z.ZodObject<{
|
|
|
953
953
|
address: ({
|
|
954
954
|
addressLine1: string;
|
|
955
955
|
city: string;
|
|
956
|
-
state: import("@metriport/shared/dist/domain/address/state").USState;
|
|
956
|
+
state: import("@metriport/shared/dist/domain/address/state").USState | import("@metriport/shared/dist/domain/address/territory").USTerritory;
|
|
957
957
|
zip: string;
|
|
958
958
|
country: "USA";
|
|
959
959
|
addressLine2?: string | undefined;
|
|
@@ -964,7 +964,7 @@ export declare const patientUpdateSchema: z.ZodObject<{
|
|
|
964
964
|
} | [{
|
|
965
965
|
addressLine1: string;
|
|
966
966
|
city: string;
|
|
967
|
-
state: import("@metriport/shared/dist/domain/address/state").USState;
|
|
967
|
+
state: import("@metriport/shared/dist/domain/address/state").USState | import("@metriport/shared/dist/domain/address/territory").USTerritory;
|
|
968
968
|
zip: string;
|
|
969
969
|
country: "USA";
|
|
970
970
|
addressLine2?: string | undefined;
|
|
@@ -975,7 +975,7 @@ export declare const patientUpdateSchema: z.ZodObject<{
|
|
|
975
975
|
}, ...{
|
|
976
976
|
addressLine1: string;
|
|
977
977
|
city: string;
|
|
978
|
-
state: import("@metriport/shared/dist/domain/address/state").USState;
|
|
978
|
+
state: import("@metriport/shared/dist/domain/address/state").USState | import("@metriport/shared/dist/domain/address/territory").USTerritory;
|
|
979
979
|
zip: string;
|
|
980
980
|
country: "USA";
|
|
981
981
|
addressLine2?: string | undefined;
|
|
@@ -986,7 +986,7 @@ export declare const patientUpdateSchema: z.ZodObject<{
|
|
|
986
986
|
}[]]) & ({
|
|
987
987
|
addressLine1: string;
|
|
988
988
|
city: string;
|
|
989
|
-
state: import("@metriport/shared/dist/domain/address/state").USState;
|
|
989
|
+
state: import("@metriport/shared/dist/domain/address/state").USState | import("@metriport/shared/dist/domain/address/territory").USTerritory;
|
|
990
990
|
zip: string;
|
|
991
991
|
country: "USA";
|
|
992
992
|
addressLine2?: string | undefined;
|
|
@@ -997,7 +997,7 @@ export declare const patientUpdateSchema: z.ZodObject<{
|
|
|
997
997
|
} | [{
|
|
998
998
|
addressLine1: string;
|
|
999
999
|
city: string;
|
|
1000
|
-
state: import("@metriport/shared/dist/domain/address/state").USState;
|
|
1000
|
+
state: import("@metriport/shared/dist/domain/address/state").USState | import("@metriport/shared/dist/domain/address/territory").USTerritory;
|
|
1001
1001
|
zip: string;
|
|
1002
1002
|
country: "USA";
|
|
1003
1003
|
addressLine2?: string | undefined;
|
|
@@ -1008,7 +1008,7 @@ export declare const patientUpdateSchema: z.ZodObject<{
|
|
|
1008
1008
|
}, ...{
|
|
1009
1009
|
addressLine1: string;
|
|
1010
1010
|
city: string;
|
|
1011
|
-
state: import("@metriport/shared/dist/domain/address/state").USState;
|
|
1011
|
+
state: import("@metriport/shared/dist/domain/address/state").USState | import("@metriport/shared/dist/domain/address/territory").USTerritory;
|
|
1012
1012
|
zip: string;
|
|
1013
1013
|
country: "USA";
|
|
1014
1014
|
addressLine2?: string | undefined;
|
|
@@ -1315,7 +1315,7 @@ export declare const patientSchema: z.ZodObject<{
|
|
|
1315
1315
|
addressLine1: z.ZodString;
|
|
1316
1316
|
addressLine2: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>;
|
|
1317
1317
|
city: z.ZodString;
|
|
1318
|
-
state: z.ZodEffects<z.ZodNativeEnum<{
|
|
1318
|
+
state: z.ZodUnion<[z.ZodEffects<z.ZodNativeEnum<{
|
|
1319
1319
|
AL: import("@metriport/shared/dist/domain/address/state").USState.AL;
|
|
1320
1320
|
AK: import("@metriport/shared/dist/domain/address/state").USState.AK;
|
|
1321
1321
|
AZ: import("@metriport/shared/dist/domain/address/state").USState.AZ;
|
|
@@ -1367,7 +1367,7 @@ export declare const patientSchema: z.ZodObject<{
|
|
|
1367
1367
|
WV: import("@metriport/shared/dist/domain/address/state").USState.WV;
|
|
1368
1368
|
WI: import("@metriport/shared/dist/domain/address/state").USState.WI;
|
|
1369
1369
|
WY: import("@metriport/shared/dist/domain/address/state").USState.WY;
|
|
1370
|
-
}>, import("@metriport/shared/dist/domain/address/state").USState, unknown>;
|
|
1370
|
+
}>, import("@metriport/shared/dist/domain/address/state").USState, unknown>, z.ZodEffects<z.ZodNativeEnum<typeof import("@metriport/shared/dist/domain/address/territory").USTerritory>, import("@metriport/shared/dist/domain/address/territory").USTerritory, unknown>]>;
|
|
1371
1371
|
zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1372
1372
|
coordinates: z.ZodOptional<z.ZodObject<{
|
|
1373
1373
|
lat: z.ZodNumber;
|
|
@@ -1383,7 +1383,7 @@ export declare const patientSchema: z.ZodObject<{
|
|
|
1383
1383
|
}, "strip", z.ZodTypeAny, {
|
|
1384
1384
|
addressLine1: string;
|
|
1385
1385
|
city: string;
|
|
1386
|
-
state: import("@metriport/shared/dist/domain/address/state").USState;
|
|
1386
|
+
state: import("@metriport/shared/dist/domain/address/state").USState | import("@metriport/shared/dist/domain/address/territory").USTerritory;
|
|
1387
1387
|
zip: string;
|
|
1388
1388
|
country: "USA";
|
|
1389
1389
|
addressLine2?: string | undefined;
|
|
@@ -1406,7 +1406,7 @@ export declare const patientSchema: z.ZodObject<{
|
|
|
1406
1406
|
addressLine1: z.ZodString;
|
|
1407
1407
|
addressLine2: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>;
|
|
1408
1408
|
city: z.ZodString;
|
|
1409
|
-
state: z.ZodEffects<z.ZodNativeEnum<{
|
|
1409
|
+
state: z.ZodUnion<[z.ZodEffects<z.ZodNativeEnum<{
|
|
1410
1410
|
AL: import("@metriport/shared/dist/domain/address/state").USState.AL;
|
|
1411
1411
|
AK: import("@metriport/shared/dist/domain/address/state").USState.AK;
|
|
1412
1412
|
AZ: import("@metriport/shared/dist/domain/address/state").USState.AZ;
|
|
@@ -1458,7 +1458,7 @@ export declare const patientSchema: z.ZodObject<{
|
|
|
1458
1458
|
WV: import("@metriport/shared/dist/domain/address/state").USState.WV;
|
|
1459
1459
|
WI: import("@metriport/shared/dist/domain/address/state").USState.WI;
|
|
1460
1460
|
WY: import("@metriport/shared/dist/domain/address/state").USState.WY;
|
|
1461
|
-
}>, import("@metriport/shared/dist/domain/address/state").USState, unknown>;
|
|
1461
|
+
}>, import("@metriport/shared/dist/domain/address/state").USState, unknown>, z.ZodEffects<z.ZodNativeEnum<typeof import("@metriport/shared/dist/domain/address/territory").USTerritory>, import("@metriport/shared/dist/domain/address/territory").USTerritory, unknown>]>;
|
|
1462
1462
|
zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1463
1463
|
coordinates: z.ZodOptional<z.ZodObject<{
|
|
1464
1464
|
lat: z.ZodNumber;
|
|
@@ -1474,7 +1474,7 @@ export declare const patientSchema: z.ZodObject<{
|
|
|
1474
1474
|
}, "strip", z.ZodTypeAny, {
|
|
1475
1475
|
addressLine1: string;
|
|
1476
1476
|
city: string;
|
|
1477
|
-
state: import("@metriport/shared/dist/domain/address/state").USState;
|
|
1477
|
+
state: import("@metriport/shared/dist/domain/address/state").USState | import("@metriport/shared/dist/domain/address/territory").USTerritory;
|
|
1478
1478
|
zip: string;
|
|
1479
1479
|
country: "USA";
|
|
1480
1480
|
addressLine2?: string | undefined;
|
|
@@ -1536,7 +1536,7 @@ export declare const patientSchema: z.ZodObject<{
|
|
|
1536
1536
|
address: ({
|
|
1537
1537
|
addressLine1: string;
|
|
1538
1538
|
city: string;
|
|
1539
|
-
state: import("@metriport/shared/dist/domain/address/state").USState;
|
|
1539
|
+
state: import("@metriport/shared/dist/domain/address/state").USState | import("@metriport/shared/dist/domain/address/territory").USTerritory;
|
|
1540
1540
|
zip: string;
|
|
1541
1541
|
country: "USA";
|
|
1542
1542
|
addressLine2?: string | undefined;
|
|
@@ -1547,7 +1547,7 @@ export declare const patientSchema: z.ZodObject<{
|
|
|
1547
1547
|
} | [{
|
|
1548
1548
|
addressLine1: string;
|
|
1549
1549
|
city: string;
|
|
1550
|
-
state: import("@metriport/shared/dist/domain/address/state").USState;
|
|
1550
|
+
state: import("@metriport/shared/dist/domain/address/state").USState | import("@metriport/shared/dist/domain/address/territory").USTerritory;
|
|
1551
1551
|
zip: string;
|
|
1552
1552
|
country: "USA";
|
|
1553
1553
|
addressLine2?: string | undefined;
|
|
@@ -1558,7 +1558,7 @@ export declare const patientSchema: z.ZodObject<{
|
|
|
1558
1558
|
}, ...{
|
|
1559
1559
|
addressLine1: string;
|
|
1560
1560
|
city: string;
|
|
1561
|
-
state: import("@metriport/shared/dist/domain/address/state").USState;
|
|
1561
|
+
state: import("@metriport/shared/dist/domain/address/state").USState | import("@metriport/shared/dist/domain/address/territory").USTerritory;
|
|
1562
1562
|
zip: string;
|
|
1563
1563
|
country: "USA";
|
|
1564
1564
|
addressLine2?: string | undefined;
|
|
@@ -1569,7 +1569,7 @@ export declare const patientSchema: z.ZodObject<{
|
|
|
1569
1569
|
}[]]) & ({
|
|
1570
1570
|
addressLine1: string;
|
|
1571
1571
|
city: string;
|
|
1572
|
-
state: import("@metriport/shared/dist/domain/address/state").USState;
|
|
1572
|
+
state: import("@metriport/shared/dist/domain/address/state").USState | import("@metriport/shared/dist/domain/address/territory").USTerritory;
|
|
1573
1573
|
zip: string;
|
|
1574
1574
|
country: "USA";
|
|
1575
1575
|
addressLine2?: string | undefined;
|
|
@@ -1580,7 +1580,7 @@ export declare const patientSchema: z.ZodObject<{
|
|
|
1580
1580
|
} | [{
|
|
1581
1581
|
addressLine1: string;
|
|
1582
1582
|
city: string;
|
|
1583
|
-
state: import("@metriport/shared/dist/domain/address/state").USState;
|
|
1583
|
+
state: import("@metriport/shared/dist/domain/address/state").USState | import("@metriport/shared/dist/domain/address/territory").USTerritory;
|
|
1584
1584
|
zip: string;
|
|
1585
1585
|
country: "USA";
|
|
1586
1586
|
addressLine2?: string | undefined;
|
|
@@ -1591,7 +1591,7 @@ export declare const patientSchema: z.ZodObject<{
|
|
|
1591
1591
|
}, ...{
|
|
1592
1592
|
addressLine1: string;
|
|
1593
1593
|
city: string;
|
|
1594
|
-
state: import("@metriport/shared/dist/domain/address/state").USState;
|
|
1594
|
+
state: import("@metriport/shared/dist/domain/address/state").USState | import("@metriport/shared/dist/domain/address/territory").USTerritory;
|
|
1595
1595
|
zip: string;
|
|
1596
1596
|
country: "USA";
|
|
1597
1597
|
addressLine2?: string | undefined;
|
|
@@ -1901,7 +1901,7 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
1901
1901
|
addressLine1: z.ZodString;
|
|
1902
1902
|
addressLine2: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>;
|
|
1903
1903
|
city: z.ZodString;
|
|
1904
|
-
state: z.ZodEffects<z.ZodNativeEnum<{
|
|
1904
|
+
state: z.ZodUnion<[z.ZodEffects<z.ZodNativeEnum<{
|
|
1905
1905
|
AL: import("@metriport/shared/dist/domain/address/state").USState.AL;
|
|
1906
1906
|
AK: import("@metriport/shared/dist/domain/address/state").USState.AK;
|
|
1907
1907
|
AZ: import("@metriport/shared/dist/domain/address/state").USState.AZ;
|
|
@@ -1953,7 +1953,7 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
1953
1953
|
WV: import("@metriport/shared/dist/domain/address/state").USState.WV;
|
|
1954
1954
|
WI: import("@metriport/shared/dist/domain/address/state").USState.WI;
|
|
1955
1955
|
WY: import("@metriport/shared/dist/domain/address/state").USState.WY;
|
|
1956
|
-
}>, import("@metriport/shared/dist/domain/address/state").USState, unknown>;
|
|
1956
|
+
}>, import("@metriport/shared/dist/domain/address/state").USState, unknown>, z.ZodEffects<z.ZodNativeEnum<typeof import("@metriport/shared/dist/domain/address/territory").USTerritory>, import("@metriport/shared/dist/domain/address/territory").USTerritory, unknown>]>;
|
|
1957
1957
|
zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
1958
1958
|
coordinates: z.ZodOptional<z.ZodObject<{
|
|
1959
1959
|
lat: z.ZodNumber;
|
|
@@ -1969,7 +1969,7 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
1969
1969
|
}, "strip", z.ZodTypeAny, {
|
|
1970
1970
|
addressLine1: string;
|
|
1971
1971
|
city: string;
|
|
1972
|
-
state: import("@metriport/shared/dist/domain/address/state").USState;
|
|
1972
|
+
state: import("@metriport/shared/dist/domain/address/state").USState | import("@metriport/shared/dist/domain/address/territory").USTerritory;
|
|
1973
1973
|
zip: string;
|
|
1974
1974
|
country: "USA";
|
|
1975
1975
|
addressLine2?: string | undefined;
|
|
@@ -1992,7 +1992,7 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
1992
1992
|
addressLine1: z.ZodString;
|
|
1993
1993
|
addressLine2: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodOptional<z.ZodString>]>, string | undefined, string | undefined>;
|
|
1994
1994
|
city: z.ZodString;
|
|
1995
|
-
state: z.ZodEffects<z.ZodNativeEnum<{
|
|
1995
|
+
state: z.ZodUnion<[z.ZodEffects<z.ZodNativeEnum<{
|
|
1996
1996
|
AL: import("@metriport/shared/dist/domain/address/state").USState.AL;
|
|
1997
1997
|
AK: import("@metriport/shared/dist/domain/address/state").USState.AK;
|
|
1998
1998
|
AZ: import("@metriport/shared/dist/domain/address/state").USState.AZ;
|
|
@@ -2044,7 +2044,7 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
2044
2044
|
WV: import("@metriport/shared/dist/domain/address/state").USState.WV;
|
|
2045
2045
|
WI: import("@metriport/shared/dist/domain/address/state").USState.WI;
|
|
2046
2046
|
WY: import("@metriport/shared/dist/domain/address/state").USState.WY;
|
|
2047
|
-
}>, import("@metriport/shared/dist/domain/address/state").USState, unknown>;
|
|
2047
|
+
}>, import("@metriport/shared/dist/domain/address/state").USState, unknown>, z.ZodEffects<z.ZodNativeEnum<typeof import("@metriport/shared/dist/domain/address/territory").USTerritory>, import("@metriport/shared/dist/domain/address/territory").USTerritory, unknown>]>;
|
|
2048
2048
|
zip: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
2049
2049
|
coordinates: z.ZodOptional<z.ZodObject<{
|
|
2050
2050
|
lat: z.ZodNumber;
|
|
@@ -2060,7 +2060,7 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
2060
2060
|
}, "strip", z.ZodTypeAny, {
|
|
2061
2061
|
addressLine1: string;
|
|
2062
2062
|
city: string;
|
|
2063
|
-
state: import("@metriport/shared/dist/domain/address/state").USState;
|
|
2063
|
+
state: import("@metriport/shared/dist/domain/address/state").USState | import("@metriport/shared/dist/domain/address/territory").USTerritory;
|
|
2064
2064
|
zip: string;
|
|
2065
2065
|
country: "USA";
|
|
2066
2066
|
addressLine2?: string | undefined;
|
|
@@ -2122,7 +2122,7 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
2122
2122
|
address: ({
|
|
2123
2123
|
addressLine1: string;
|
|
2124
2124
|
city: string;
|
|
2125
|
-
state: import("@metriport/shared/dist/domain/address/state").USState;
|
|
2125
|
+
state: import("@metriport/shared/dist/domain/address/state").USState | import("@metriport/shared/dist/domain/address/territory").USTerritory;
|
|
2126
2126
|
zip: string;
|
|
2127
2127
|
country: "USA";
|
|
2128
2128
|
addressLine2?: string | undefined;
|
|
@@ -2133,7 +2133,7 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
2133
2133
|
} | [{
|
|
2134
2134
|
addressLine1: string;
|
|
2135
2135
|
city: string;
|
|
2136
|
-
state: import("@metriport/shared/dist/domain/address/state").USState;
|
|
2136
|
+
state: import("@metriport/shared/dist/domain/address/state").USState | import("@metriport/shared/dist/domain/address/territory").USTerritory;
|
|
2137
2137
|
zip: string;
|
|
2138
2138
|
country: "USA";
|
|
2139
2139
|
addressLine2?: string | undefined;
|
|
@@ -2144,7 +2144,7 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
2144
2144
|
}, ...{
|
|
2145
2145
|
addressLine1: string;
|
|
2146
2146
|
city: string;
|
|
2147
|
-
state: import("@metriport/shared/dist/domain/address/state").USState;
|
|
2147
|
+
state: import("@metriport/shared/dist/domain/address/state").USState | import("@metriport/shared/dist/domain/address/territory").USTerritory;
|
|
2148
2148
|
zip: string;
|
|
2149
2149
|
country: "USA";
|
|
2150
2150
|
addressLine2?: string | undefined;
|
|
@@ -2155,7 +2155,7 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
2155
2155
|
}[]]) & ({
|
|
2156
2156
|
addressLine1: string;
|
|
2157
2157
|
city: string;
|
|
2158
|
-
state: import("@metriport/shared/dist/domain/address/state").USState;
|
|
2158
|
+
state: import("@metriport/shared/dist/domain/address/state").USState | import("@metriport/shared/dist/domain/address/territory").USTerritory;
|
|
2159
2159
|
zip: string;
|
|
2160
2160
|
country: "USA";
|
|
2161
2161
|
addressLine2?: string | undefined;
|
|
@@ -2166,7 +2166,7 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
2166
2166
|
} | [{
|
|
2167
2167
|
addressLine1: string;
|
|
2168
2168
|
city: string;
|
|
2169
|
-
state: import("@metriport/shared/dist/domain/address/state").USState;
|
|
2169
|
+
state: import("@metriport/shared/dist/domain/address/state").USState | import("@metriport/shared/dist/domain/address/territory").USTerritory;
|
|
2170
2170
|
zip: string;
|
|
2171
2171
|
country: "USA";
|
|
2172
2172
|
addressLine2?: string | undefined;
|
|
@@ -2177,7 +2177,7 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
2177
2177
|
}, ...{
|
|
2178
2178
|
addressLine1: string;
|
|
2179
2179
|
city: string;
|
|
2180
|
-
state: import("@metriport/shared/dist/domain/address/state").USState;
|
|
2180
|
+
state: import("@metriport/shared/dist/domain/address/state").USState | import("@metriport/shared/dist/domain/address/territory").USTerritory;
|
|
2181
2181
|
zip: string;
|
|
2182
2182
|
country: "USA";
|
|
2183
2183
|
addressLine2?: string | undefined;
|
|
@@ -2338,7 +2338,7 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
2338
2338
|
address: ({
|
|
2339
2339
|
addressLine1: string;
|
|
2340
2340
|
city: string;
|
|
2341
|
-
state: import("@metriport/shared/dist/domain/address/state").USState;
|
|
2341
|
+
state: import("@metriport/shared/dist/domain/address/state").USState | import("@metriport/shared/dist/domain/address/territory").USTerritory;
|
|
2342
2342
|
zip: string;
|
|
2343
2343
|
country: "USA";
|
|
2344
2344
|
addressLine2?: string | undefined;
|
|
@@ -2349,7 +2349,7 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
2349
2349
|
} | [{
|
|
2350
2350
|
addressLine1: string;
|
|
2351
2351
|
city: string;
|
|
2352
|
-
state: import("@metriport/shared/dist/domain/address/state").USState;
|
|
2352
|
+
state: import("@metriport/shared/dist/domain/address/state").USState | import("@metriport/shared/dist/domain/address/territory").USTerritory;
|
|
2353
2353
|
zip: string;
|
|
2354
2354
|
country: "USA";
|
|
2355
2355
|
addressLine2?: string | undefined;
|
|
@@ -2360,7 +2360,7 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
2360
2360
|
}, ...{
|
|
2361
2361
|
addressLine1: string;
|
|
2362
2362
|
city: string;
|
|
2363
|
-
state: import("@metriport/shared/dist/domain/address/state").USState;
|
|
2363
|
+
state: import("@metriport/shared/dist/domain/address/state").USState | import("@metriport/shared/dist/domain/address/territory").USTerritory;
|
|
2364
2364
|
zip: string;
|
|
2365
2365
|
country: "USA";
|
|
2366
2366
|
addressLine2?: string | undefined;
|
|
@@ -2371,7 +2371,7 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
2371
2371
|
}[]]) & ({
|
|
2372
2372
|
addressLine1: string;
|
|
2373
2373
|
city: string;
|
|
2374
|
-
state: import("@metriport/shared/dist/domain/address/state").USState;
|
|
2374
|
+
state: import("@metriport/shared/dist/domain/address/state").USState | import("@metriport/shared/dist/domain/address/territory").USTerritory;
|
|
2375
2375
|
zip: string;
|
|
2376
2376
|
country: "USA";
|
|
2377
2377
|
addressLine2?: string | undefined;
|
|
@@ -2382,7 +2382,7 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
2382
2382
|
} | [{
|
|
2383
2383
|
addressLine1: string;
|
|
2384
2384
|
city: string;
|
|
2385
|
-
state: import("@metriport/shared/dist/domain/address/state").USState;
|
|
2385
|
+
state: import("@metriport/shared/dist/domain/address/state").USState | import("@metriport/shared/dist/domain/address/territory").USTerritory;
|
|
2386
2386
|
zip: string;
|
|
2387
2387
|
country: "USA";
|
|
2388
2388
|
addressLine2?: string | undefined;
|
|
@@ -2393,7 +2393,7 @@ export declare const patientListSchema: z.ZodObject<{
|
|
|
2393
2393
|
}, ...{
|
|
2394
2394
|
addressLine1: string;
|
|
2395
2395
|
city: string;
|
|
2396
|
-
state: import("@metriport/shared/dist/domain/address/state").USState;
|
|
2396
|
+
state: import("@metriport/shared/dist/domain/address/state").USState | import("@metriport/shared/dist/domain/address/territory").USTerritory;
|
|
2397
2397
|
zip: string;
|
|
2398
2398
|
country: "USA";
|
|
2399
2399
|
addressLine2?: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metriport/api-sdk",
|
|
3
|
-
"version": "12.1.
|
|
3
|
+
"version": "12.1.4",
|
|
4
4
|
"description": "Metriport helps you access and manage health and medical data, through a single open source API.",
|
|
5
5
|
"author": "Metriport Inc. <contact@metriport.com>",
|
|
6
6
|
"homepage": "https://metriport.com/",
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@medplum/fhirtypes": "^2.0.32",
|
|
60
|
-
"@metriport/commonwell-sdk": "^5.1.
|
|
61
|
-
"@metriport/shared": "^0.13.
|
|
60
|
+
"@metriport/commonwell-sdk": "^5.1.4",
|
|
61
|
+
"@metriport/shared": "^0.13.4",
|
|
62
62
|
"axios": "^1.4.0",
|
|
63
63
|
"dayjs": "^1.11.7",
|
|
64
64
|
"dotenv": "^16.3.1",
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"ts-jest": "29.1.1",
|
|
77
77
|
"typescript": "^4.9.5"
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "c3bb480e8e75b94a1b0cc3842c995566b6312357"
|
|
80
80
|
}
|