@metriport/shared 0.25.2-alpha.1 → 0.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/domain/organization.d.ts +72 -1
- package/dist/domain/organization.d.ts.map +1 -1
- package/dist/domain/organization.js +27 -23
- package/dist/domain/organization.js.map +1 -1
- package/dist/external/zod/index.d.ts +0 -1
- package/dist/external/zod/index.d.ts.map +1 -1
- package/dist/external/zod/index.js +19 -4
- package/dist/external/zod/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/external/zod/us-state.d.ts +0 -3
- package/dist/external/zod/us-state.d.ts.map +0 -1
- package/dist/external/zod/us-state.js +0 -7
- package/dist/external/zod/us-state.js.map +0 -1
|
@@ -11,6 +11,77 @@ export declare enum OrganizationBizType {
|
|
|
11
11
|
healthcareProvider = "healthcare_provider",
|
|
12
12
|
healthcareITVendor = "healthcare_it_vendor"
|
|
13
13
|
}
|
|
14
|
-
export declare const internalOrganizationDTOSchema:
|
|
14
|
+
export declare const internalOrganizationDTOSchema: z.ZodObject<{
|
|
15
|
+
oid: z.ZodString;
|
|
16
|
+
cxId: z.ZodString;
|
|
17
|
+
name: z.ZodString;
|
|
18
|
+
shortcode: z.ZodOptional<z.ZodString>;
|
|
19
|
+
type: z.ZodNativeEnum<typeof TreatmentType>;
|
|
20
|
+
location: z.ZodObject<{
|
|
21
|
+
addressLine1: z.ZodString;
|
|
22
|
+
addressLine2: z.ZodOptional<z.ZodString>;
|
|
23
|
+
city: z.ZodString;
|
|
24
|
+
state: z.ZodString;
|
|
25
|
+
zip: z.ZodString;
|
|
26
|
+
country: z.ZodString;
|
|
27
|
+
}, "strip", z.ZodTypeAny, {
|
|
28
|
+
country: string;
|
|
29
|
+
state: string;
|
|
30
|
+
addressLine1: string;
|
|
31
|
+
city: string;
|
|
32
|
+
zip: string;
|
|
33
|
+
addressLine2?: string | undefined;
|
|
34
|
+
}, {
|
|
35
|
+
country: string;
|
|
36
|
+
state: string;
|
|
37
|
+
addressLine1: string;
|
|
38
|
+
city: string;
|
|
39
|
+
zip: string;
|
|
40
|
+
addressLine2?: string | undefined;
|
|
41
|
+
}>;
|
|
42
|
+
businessType: z.ZodNativeEnum<typeof OrganizationBizType>;
|
|
43
|
+
cqApproved: z.ZodBoolean;
|
|
44
|
+
cqActive: z.ZodBoolean;
|
|
45
|
+
cwApproved: z.ZodBoolean;
|
|
46
|
+
cwActive: z.ZodBoolean;
|
|
47
|
+
}, "strip", z.ZodTypeAny, {
|
|
48
|
+
name: string;
|
|
49
|
+
type: TreatmentType;
|
|
50
|
+
cxId: string;
|
|
51
|
+
oid: string;
|
|
52
|
+
location: {
|
|
53
|
+
country: string;
|
|
54
|
+
state: string;
|
|
55
|
+
addressLine1: string;
|
|
56
|
+
city: string;
|
|
57
|
+
zip: string;
|
|
58
|
+
addressLine2?: string | undefined;
|
|
59
|
+
};
|
|
60
|
+
businessType: OrganizationBizType;
|
|
61
|
+
cqApproved: boolean;
|
|
62
|
+
cqActive: boolean;
|
|
63
|
+
cwApproved: boolean;
|
|
64
|
+
cwActive: boolean;
|
|
65
|
+
shortcode?: string | undefined;
|
|
66
|
+
}, {
|
|
67
|
+
name: string;
|
|
68
|
+
type: TreatmentType;
|
|
69
|
+
cxId: string;
|
|
70
|
+
oid: string;
|
|
71
|
+
location: {
|
|
72
|
+
country: string;
|
|
73
|
+
state: string;
|
|
74
|
+
addressLine1: string;
|
|
75
|
+
city: string;
|
|
76
|
+
zip: string;
|
|
77
|
+
addressLine2?: string | undefined;
|
|
78
|
+
};
|
|
79
|
+
businessType: OrganizationBizType;
|
|
80
|
+
cqApproved: boolean;
|
|
81
|
+
cqActive: boolean;
|
|
82
|
+
cwApproved: boolean;
|
|
83
|
+
cwActive: boolean;
|
|
84
|
+
shortcode?: string | undefined;
|
|
85
|
+
}>;
|
|
15
86
|
export type InternalOrganizationDTO = z.infer<typeof internalOrganizationDTOSchema>;
|
|
16
87
|
//# sourceMappingURL=organization.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization.d.ts","sourceRoot":"","sources":["../../src/domain/organization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"organization.d.ts","sourceRoot":"","sources":["../../src/domain/organization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,oBAAY,aAAa;IACvB,SAAS,cAAc;IACvB,UAAU,eAAe;IACzB,QAAQ,aAAa;IACrB,UAAU,eAAe;IACzB,QAAQ,aAAa;IACrB,aAAa,kBAAkB;CAChC;AAGD,oBAAY,mBAAmB;IAC7B,kBAAkB,wBAAwB;IAC1C,kBAAkB,yBAAyB;CAC5C;AAED,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBxC,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.internalOrganizationDTOSchema = exports.OrganizationBizType = exports.TreatmentType = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
// TODO if you update this, make sure to update core's too (unless it has been removed)
|
|
6
|
+
var TreatmentType;
|
|
3
7
|
(function (TreatmentType) {
|
|
4
8
|
TreatmentType["acuteCare"] = "acuteCare";
|
|
5
9
|
TreatmentType["ambulatory"] = "ambulatory";
|
|
@@ -7,31 +11,31 @@ export var TreatmentType;
|
|
|
7
11
|
TreatmentType["labSystems"] = "labSystems";
|
|
8
12
|
TreatmentType["pharmacy"] = "pharmacy";
|
|
9
13
|
TreatmentType["postAcuteCare"] = "postAcuteCare";
|
|
10
|
-
})(TreatmentType || (TreatmentType = {}));
|
|
14
|
+
})(TreatmentType = exports.TreatmentType || (exports.TreatmentType = {}));
|
|
11
15
|
// TODO if you update this, make sure to update core's too (unless it has been removed)
|
|
12
|
-
|
|
16
|
+
var OrganizationBizType;
|
|
13
17
|
(function (OrganizationBizType) {
|
|
14
18
|
OrganizationBizType["healthcareProvider"] = "healthcare_provider";
|
|
15
19
|
OrganizationBizType["healthcareITVendor"] = "healthcare_it_vendor";
|
|
16
|
-
})(OrganizationBizType || (OrganizationBizType = {}));
|
|
17
|
-
|
|
18
|
-
oid: z.string(),
|
|
19
|
-
cxId: z.string(),
|
|
20
|
-
name: z.string(),
|
|
21
|
-
shortcode: z.string().optional(),
|
|
22
|
-
type: z.nativeEnum(TreatmentType),
|
|
23
|
-
location: z.object({
|
|
24
|
-
addressLine1: z.string(),
|
|
25
|
-
addressLine2: z.string().optional(),
|
|
26
|
-
city: z.string(),
|
|
27
|
-
state: z.string(),
|
|
28
|
-
zip: z.string(),
|
|
29
|
-
country: z.string(),
|
|
20
|
+
})(OrganizationBizType = exports.OrganizationBizType || (exports.OrganizationBizType = {}));
|
|
21
|
+
exports.internalOrganizationDTOSchema = zod_1.z.object({
|
|
22
|
+
oid: zod_1.z.string(),
|
|
23
|
+
cxId: zod_1.z.string(),
|
|
24
|
+
name: zod_1.z.string(),
|
|
25
|
+
shortcode: zod_1.z.string().optional(),
|
|
26
|
+
type: zod_1.z.nativeEnum(TreatmentType),
|
|
27
|
+
location: zod_1.z.object({
|
|
28
|
+
addressLine1: zod_1.z.string(),
|
|
29
|
+
addressLine2: zod_1.z.string().optional(),
|
|
30
|
+
city: zod_1.z.string(),
|
|
31
|
+
state: zod_1.z.string(),
|
|
32
|
+
zip: zod_1.z.string(),
|
|
33
|
+
country: zod_1.z.string(),
|
|
30
34
|
}),
|
|
31
|
-
businessType: z.nativeEnum(OrganizationBizType),
|
|
32
|
-
cqApproved: z.boolean(),
|
|
33
|
-
cqActive: z.boolean(),
|
|
34
|
-
cwApproved: z.boolean(),
|
|
35
|
-
cwActive: z.boolean(),
|
|
35
|
+
businessType: zod_1.z.nativeEnum(OrganizationBizType),
|
|
36
|
+
cqApproved: zod_1.z.boolean(),
|
|
37
|
+
cqActive: zod_1.z.boolean(),
|
|
38
|
+
cwApproved: zod_1.z.boolean(),
|
|
39
|
+
cwActive: zod_1.z.boolean(),
|
|
36
40
|
});
|
|
37
41
|
//# sourceMappingURL=organization.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization.js","sourceRoot":"","sources":["../../src/domain/organization.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"organization.js","sourceRoot":"","sources":["../../src/domain/organization.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,uFAAuF;AACvF,IAAY,aAOX;AAPD,WAAY,aAAa;IACvB,wCAAuB,CAAA;IACvB,0CAAyB,CAAA;IACzB,sCAAqB,CAAA;IACrB,0CAAyB,CAAA;IACzB,sCAAqB,CAAA;IACrB,gDAA+B,CAAA;AACjC,CAAC,EAPW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAOxB;AAED,uFAAuF;AACvF,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC7B,iEAA0C,CAAA;IAC1C,kEAA2C,CAAA;AAC7C,CAAC,EAHW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAG9B;AAEY,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IACpD,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,IAAI,EAAE,OAAC,CAAC,UAAU,CAAC,aAAa,CAAC;IACjC,QAAQ,EAAE,OAAC,CAAC,MAAM,CAAC;QACjB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;QACxB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACnC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;QAChB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;QACjB,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;QACf,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;KACpB,CAAC;IACF,YAAY,EAAE,OAAC,CAAC,UAAU,CAAC,mBAAmB,CAAC;IAC/C,UAAU,EAAE,OAAC,CAAC,OAAO,EAAE;IACvB,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE;IACrB,UAAU,EAAE,OAAC,CAAC,OAAO,EAAE;IACvB,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE;CACtB,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/external/zod/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/external/zod/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC"}
|
|
@@ -1,5 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./date"), exports);
|
|
18
|
+
__exportStar(require("./string"), exports);
|
|
19
|
+
__exportStar(require("./zip"), exports);
|
|
5
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/external/zod/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/external/zod/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,2CAAyB;AACzB,wCAAsB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metriport/shared",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.26.0",
|
|
4
4
|
"description": "Common code shared across packages - by Metriport Inc.",
|
|
5
5
|
"author": "Metriport Inc. <contact@metriport.com>",
|
|
6
6
|
"homepage": "https://metriport.com/",
|
|
@@ -115,5 +115,5 @@
|
|
|
115
115
|
"ts-jest": "29.1.1",
|
|
116
116
|
"typescript": "^4.9.5"
|
|
117
117
|
},
|
|
118
|
-
"gitHead": "
|
|
118
|
+
"gitHead": "ce5350385dc4610340d3b8611439b0b03a284e22"
|
|
119
119
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"us-state.d.ts","sourceRoot":"","sources":["../../../src/external/zod/us-state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAkC,MAAM,sBAAsB,CAAC;AAEzF,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,OAAO,GAAG,iBAAiB,GAAG,SAAS,CAG5E"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { normalizeUSStateForAddressSafe } from "../../domain/address";
|
|
2
|
-
export function normalizeUsState(val) {
|
|
3
|
-
if (typeof val !== "string")
|
|
4
|
-
throw new Error("Invalid state");
|
|
5
|
-
return normalizeUSStateForAddressSafe(val);
|
|
6
|
-
}
|
|
7
|
-
//# sourceMappingURL=us-state.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"us-state.js","sourceRoot":"","sources":["../../../src/external/zod/us-state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,8BAA8B,EAAE,MAAM,sBAAsB,CAAC;AAEzF,MAAM,UAAU,gBAAgB,CAAC,GAAY;IAC3C,IAAI,OAAO,GAAG,KAAK,QAAQ;QAAE,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAC;IAC9D,OAAO,8BAA8B,CAAC,GAAG,CAAC,CAAC;AAC7C,CAAC"}
|