@metriport/shared 0.23.1 → 0.23.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.
- package/dist/common/retry.d.ts +1 -1
- package/dist/common/retry.d.ts.map +1 -1
- package/dist/domain/secrets.d.ts +1 -0
- package/dist/domain/secrets.d.ts.map +1 -1
- package/dist/domain/secrets.js +2 -1
- package/dist/domain/secrets.js.map +1 -1
- package/dist/error/metriport-error.d.ts +1 -0
- package/dist/error/metriport-error.d.ts.map +1 -1
- package/dist/error/metriport-error.js +5 -1
- package/dist/error/metriport-error.js.map +1 -1
- package/dist/interface/external/ehr/elation/index.d.ts +2 -0
- package/dist/interface/external/ehr/elation/index.d.ts.map +1 -1
- package/dist/interface/external/ehr/elation/index.js +2 -0
- package/dist/interface/external/ehr/elation/index.js.map +1 -1
- package/dist/interface/external/ehr/healthie/appointment.d.ts +221 -0
- package/dist/interface/external/ehr/healthie/appointment.d.ts.map +1 -0
- package/dist/interface/external/ehr/healthie/appointment.js +21 -0
- package/dist/interface/external/ehr/healthie/appointment.js.map +1 -0
- package/dist/interface/external/ehr/healthie/cx-mapping.d.ts +49 -0
- package/dist/interface/external/ehr/healthie/cx-mapping.d.ts.map +1 -0
- package/dist/interface/external/ehr/healthie/cx-mapping.js +21 -0
- package/dist/interface/external/ehr/healthie/cx-mapping.js.map +1 -0
- package/dist/interface/external/ehr/healthie/event.d.ts +30 -0
- package/dist/interface/external/ehr/healthie/event.d.ts.map +1 -0
- package/dist/interface/external/ehr/healthie/event.js +15 -0
- package/dist/interface/external/ehr/healthie/event.js.map +1 -0
- package/dist/interface/external/ehr/healthie/index.d.ts +7 -0
- package/dist/interface/external/ehr/healthie/index.d.ts.map +1 -0
- package/dist/interface/external/ehr/healthie/index.js +23 -0
- package/dist/interface/external/ehr/healthie/index.js.map +1 -0
- package/dist/interface/external/ehr/healthie/jwt-token.d.ts +18 -0
- package/dist/interface/external/ehr/healthie/jwt-token.d.ts.map +1 -0
- package/dist/interface/external/ehr/healthie/jwt-token.js +15 -0
- package/dist/interface/external/ehr/healthie/jwt-token.js.map +1 -0
- package/dist/interface/external/ehr/healthie/patient.d.ts +319 -0
- package/dist/interface/external/ehr/healthie/patient.d.ts.map +1 -0
- package/dist/interface/external/ehr/healthie/patient.js +44 -0
- package/dist/interface/external/ehr/healthie/patient.js.map +1 -0
- package/dist/interface/external/ehr/healthie/subscription.d.ts +317 -0
- package/dist/interface/external/ehr/healthie/subscription.d.ts.map +1 -0
- package/dist/interface/external/ehr/healthie/subscription.js +37 -0
- package/dist/interface/external/ehr/healthie/subscription.js.map +1 -0
- package/dist/interface/external/ehr/source.d.ts +2 -1
- package/dist/interface/external/ehr/source.d.ts.map +1 -1
- package/dist/interface/external/ehr/source.js +1 -0
- package/dist/interface/external/ehr/source.js.map +1 -1
- package/dist/net/retry.d.ts.map +1 -1
- package/dist/net/retry.js +4 -1
- package/dist/net/retry.js.map +1 -1
- package/package.json +4 -3
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const patientSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
first_name: z.ZodNullable<z.ZodString>;
|
|
5
|
+
last_name: z.ZodNullable<z.ZodString>;
|
|
6
|
+
dob: z.ZodNullable<z.ZodString>;
|
|
7
|
+
gender: z.ZodNullable<z.ZodString>;
|
|
8
|
+
email: z.ZodNullable<z.ZodString>;
|
|
9
|
+
phone_number: z.ZodNullable<z.ZodString>;
|
|
10
|
+
locations: z.ZodArray<z.ZodObject<{
|
|
11
|
+
line1: z.ZodString;
|
|
12
|
+
line2: z.ZodString;
|
|
13
|
+
city: z.ZodString;
|
|
14
|
+
state: z.ZodString;
|
|
15
|
+
zip: z.ZodString;
|
|
16
|
+
country: z.ZodString;
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
country: string;
|
|
19
|
+
state: string;
|
|
20
|
+
city: string;
|
|
21
|
+
zip: string;
|
|
22
|
+
line1: string;
|
|
23
|
+
line2: string;
|
|
24
|
+
}, {
|
|
25
|
+
country: string;
|
|
26
|
+
state: string;
|
|
27
|
+
city: string;
|
|
28
|
+
zip: string;
|
|
29
|
+
line1: string;
|
|
30
|
+
line2: string;
|
|
31
|
+
}>, "many">;
|
|
32
|
+
}, "strip", z.ZodTypeAny, {
|
|
33
|
+
email: string | null;
|
|
34
|
+
id: string;
|
|
35
|
+
gender: string | null;
|
|
36
|
+
dob: string | null;
|
|
37
|
+
first_name: string | null;
|
|
38
|
+
last_name: string | null;
|
|
39
|
+
phone_number: string | null;
|
|
40
|
+
locations: {
|
|
41
|
+
country: string;
|
|
42
|
+
state: string;
|
|
43
|
+
city: string;
|
|
44
|
+
zip: string;
|
|
45
|
+
line1: string;
|
|
46
|
+
line2: string;
|
|
47
|
+
}[];
|
|
48
|
+
}, {
|
|
49
|
+
email: string | null;
|
|
50
|
+
id: string;
|
|
51
|
+
gender: string | null;
|
|
52
|
+
dob: string | null;
|
|
53
|
+
first_name: string | null;
|
|
54
|
+
last_name: string | null;
|
|
55
|
+
phone_number: string | null;
|
|
56
|
+
locations: {
|
|
57
|
+
country: string;
|
|
58
|
+
state: string;
|
|
59
|
+
city: string;
|
|
60
|
+
zip: string;
|
|
61
|
+
line1: string;
|
|
62
|
+
line2: string;
|
|
63
|
+
}[];
|
|
64
|
+
}>;
|
|
65
|
+
export type Patient = z.infer<typeof patientSchema>;
|
|
66
|
+
export declare const patientGraphqlSchema: z.ZodObject<{
|
|
67
|
+
data: z.ZodObject<{
|
|
68
|
+
user: z.ZodNullable<z.ZodObject<{
|
|
69
|
+
id: z.ZodString;
|
|
70
|
+
first_name: z.ZodNullable<z.ZodString>;
|
|
71
|
+
last_name: z.ZodNullable<z.ZodString>;
|
|
72
|
+
dob: z.ZodNullable<z.ZodString>;
|
|
73
|
+
gender: z.ZodNullable<z.ZodString>;
|
|
74
|
+
email: z.ZodNullable<z.ZodString>;
|
|
75
|
+
phone_number: z.ZodNullable<z.ZodString>;
|
|
76
|
+
locations: z.ZodArray<z.ZodObject<{
|
|
77
|
+
line1: z.ZodString;
|
|
78
|
+
line2: z.ZodString;
|
|
79
|
+
city: z.ZodString;
|
|
80
|
+
state: z.ZodString;
|
|
81
|
+
zip: z.ZodString;
|
|
82
|
+
country: z.ZodString;
|
|
83
|
+
}, "strip", z.ZodTypeAny, {
|
|
84
|
+
country: string;
|
|
85
|
+
state: string;
|
|
86
|
+
city: string;
|
|
87
|
+
zip: string;
|
|
88
|
+
line1: string;
|
|
89
|
+
line2: string;
|
|
90
|
+
}, {
|
|
91
|
+
country: string;
|
|
92
|
+
state: string;
|
|
93
|
+
city: string;
|
|
94
|
+
zip: string;
|
|
95
|
+
line1: string;
|
|
96
|
+
line2: string;
|
|
97
|
+
}>, "many">;
|
|
98
|
+
}, "strip", z.ZodTypeAny, {
|
|
99
|
+
email: string | null;
|
|
100
|
+
id: string;
|
|
101
|
+
gender: string | null;
|
|
102
|
+
dob: string | null;
|
|
103
|
+
first_name: string | null;
|
|
104
|
+
last_name: string | null;
|
|
105
|
+
phone_number: string | null;
|
|
106
|
+
locations: {
|
|
107
|
+
country: string;
|
|
108
|
+
state: string;
|
|
109
|
+
city: string;
|
|
110
|
+
zip: string;
|
|
111
|
+
line1: string;
|
|
112
|
+
line2: string;
|
|
113
|
+
}[];
|
|
114
|
+
}, {
|
|
115
|
+
email: string | null;
|
|
116
|
+
id: string;
|
|
117
|
+
gender: string | null;
|
|
118
|
+
dob: string | null;
|
|
119
|
+
first_name: string | null;
|
|
120
|
+
last_name: string | null;
|
|
121
|
+
phone_number: string | null;
|
|
122
|
+
locations: {
|
|
123
|
+
country: string;
|
|
124
|
+
state: string;
|
|
125
|
+
city: string;
|
|
126
|
+
zip: string;
|
|
127
|
+
line1: string;
|
|
128
|
+
line2: string;
|
|
129
|
+
}[];
|
|
130
|
+
}>>;
|
|
131
|
+
}, "strip", z.ZodTypeAny, {
|
|
132
|
+
user: {
|
|
133
|
+
email: string | null;
|
|
134
|
+
id: string;
|
|
135
|
+
gender: string | null;
|
|
136
|
+
dob: string | null;
|
|
137
|
+
first_name: string | null;
|
|
138
|
+
last_name: string | null;
|
|
139
|
+
phone_number: string | null;
|
|
140
|
+
locations: {
|
|
141
|
+
country: string;
|
|
142
|
+
state: string;
|
|
143
|
+
city: string;
|
|
144
|
+
zip: string;
|
|
145
|
+
line1: string;
|
|
146
|
+
line2: string;
|
|
147
|
+
}[];
|
|
148
|
+
} | null;
|
|
149
|
+
}, {
|
|
150
|
+
user: {
|
|
151
|
+
email: string | null;
|
|
152
|
+
id: string;
|
|
153
|
+
gender: string | null;
|
|
154
|
+
dob: string | null;
|
|
155
|
+
first_name: string | null;
|
|
156
|
+
last_name: string | null;
|
|
157
|
+
phone_number: string | null;
|
|
158
|
+
locations: {
|
|
159
|
+
country: string;
|
|
160
|
+
state: string;
|
|
161
|
+
city: string;
|
|
162
|
+
zip: string;
|
|
163
|
+
line1: string;
|
|
164
|
+
line2: string;
|
|
165
|
+
}[];
|
|
166
|
+
} | null;
|
|
167
|
+
}>;
|
|
168
|
+
}, "strip", z.ZodTypeAny, {
|
|
169
|
+
data: {
|
|
170
|
+
user: {
|
|
171
|
+
email: string | null;
|
|
172
|
+
id: string;
|
|
173
|
+
gender: string | null;
|
|
174
|
+
dob: string | null;
|
|
175
|
+
first_name: string | null;
|
|
176
|
+
last_name: string | null;
|
|
177
|
+
phone_number: string | null;
|
|
178
|
+
locations: {
|
|
179
|
+
country: string;
|
|
180
|
+
state: string;
|
|
181
|
+
city: string;
|
|
182
|
+
zip: string;
|
|
183
|
+
line1: string;
|
|
184
|
+
line2: string;
|
|
185
|
+
}[];
|
|
186
|
+
} | null;
|
|
187
|
+
};
|
|
188
|
+
}, {
|
|
189
|
+
data: {
|
|
190
|
+
user: {
|
|
191
|
+
email: string | null;
|
|
192
|
+
id: string;
|
|
193
|
+
gender: string | null;
|
|
194
|
+
dob: string | null;
|
|
195
|
+
first_name: string | null;
|
|
196
|
+
last_name: string | null;
|
|
197
|
+
phone_number: string | null;
|
|
198
|
+
locations: {
|
|
199
|
+
country: string;
|
|
200
|
+
state: string;
|
|
201
|
+
city: string;
|
|
202
|
+
zip: string;
|
|
203
|
+
line1: string;
|
|
204
|
+
line2: string;
|
|
205
|
+
}[];
|
|
206
|
+
} | null;
|
|
207
|
+
};
|
|
208
|
+
}>;
|
|
209
|
+
export type PatientGraphql = z.infer<typeof patientGraphqlSchema>;
|
|
210
|
+
export declare const patientQuickNotesSchema: z.ZodObject<{
|
|
211
|
+
id: z.ZodString;
|
|
212
|
+
quick_notes: z.ZodNullable<z.ZodString>;
|
|
213
|
+
}, "strip", z.ZodTypeAny, {
|
|
214
|
+
id: string;
|
|
215
|
+
quick_notes: string | null;
|
|
216
|
+
}, {
|
|
217
|
+
id: string;
|
|
218
|
+
quick_notes: string | null;
|
|
219
|
+
}>;
|
|
220
|
+
export type PatientQuickNotes = z.infer<typeof patientQuickNotesSchema>;
|
|
221
|
+
export declare const patientQuickNotesGraphqlSchema: z.ZodObject<{
|
|
222
|
+
data: z.ZodObject<{
|
|
223
|
+
user: z.ZodNullable<z.ZodObject<{
|
|
224
|
+
id: z.ZodString;
|
|
225
|
+
quick_notes: z.ZodNullable<z.ZodString>;
|
|
226
|
+
}, "strip", z.ZodTypeAny, {
|
|
227
|
+
id: string;
|
|
228
|
+
quick_notes: string | null;
|
|
229
|
+
}, {
|
|
230
|
+
id: string;
|
|
231
|
+
quick_notes: string | null;
|
|
232
|
+
}>>;
|
|
233
|
+
}, "strip", z.ZodTypeAny, {
|
|
234
|
+
user: {
|
|
235
|
+
id: string;
|
|
236
|
+
quick_notes: string | null;
|
|
237
|
+
} | null;
|
|
238
|
+
}, {
|
|
239
|
+
user: {
|
|
240
|
+
id: string;
|
|
241
|
+
quick_notes: string | null;
|
|
242
|
+
} | null;
|
|
243
|
+
}>;
|
|
244
|
+
}, "strip", z.ZodTypeAny, {
|
|
245
|
+
data: {
|
|
246
|
+
user: {
|
|
247
|
+
id: string;
|
|
248
|
+
quick_notes: string | null;
|
|
249
|
+
} | null;
|
|
250
|
+
};
|
|
251
|
+
}, {
|
|
252
|
+
data: {
|
|
253
|
+
user: {
|
|
254
|
+
id: string;
|
|
255
|
+
quick_notes: string | null;
|
|
256
|
+
} | null;
|
|
257
|
+
};
|
|
258
|
+
}>;
|
|
259
|
+
export type PatientQuickNotesGraphql = z.infer<typeof patientQuickNotesGraphqlSchema>;
|
|
260
|
+
export declare const patientUpdateQuickNotesGraphqlSchema: z.ZodObject<{
|
|
261
|
+
data: z.ZodObject<{
|
|
262
|
+
updateClient: z.ZodObject<{
|
|
263
|
+
user: z.ZodNullable<z.ZodObject<{
|
|
264
|
+
id: z.ZodString;
|
|
265
|
+
quick_notes: z.ZodNullable<z.ZodString>;
|
|
266
|
+
}, "strip", z.ZodTypeAny, {
|
|
267
|
+
id: string;
|
|
268
|
+
quick_notes: string | null;
|
|
269
|
+
}, {
|
|
270
|
+
id: string;
|
|
271
|
+
quick_notes: string | null;
|
|
272
|
+
}>>;
|
|
273
|
+
}, "strip", z.ZodTypeAny, {
|
|
274
|
+
user: {
|
|
275
|
+
id: string;
|
|
276
|
+
quick_notes: string | null;
|
|
277
|
+
} | null;
|
|
278
|
+
}, {
|
|
279
|
+
user: {
|
|
280
|
+
id: string;
|
|
281
|
+
quick_notes: string | null;
|
|
282
|
+
} | null;
|
|
283
|
+
}>;
|
|
284
|
+
}, "strip", z.ZodTypeAny, {
|
|
285
|
+
updateClient: {
|
|
286
|
+
user: {
|
|
287
|
+
id: string;
|
|
288
|
+
quick_notes: string | null;
|
|
289
|
+
} | null;
|
|
290
|
+
};
|
|
291
|
+
}, {
|
|
292
|
+
updateClient: {
|
|
293
|
+
user: {
|
|
294
|
+
id: string;
|
|
295
|
+
quick_notes: string | null;
|
|
296
|
+
} | null;
|
|
297
|
+
};
|
|
298
|
+
}>;
|
|
299
|
+
}, "strip", z.ZodTypeAny, {
|
|
300
|
+
data: {
|
|
301
|
+
updateClient: {
|
|
302
|
+
user: {
|
|
303
|
+
id: string;
|
|
304
|
+
quick_notes: string | null;
|
|
305
|
+
} | null;
|
|
306
|
+
};
|
|
307
|
+
};
|
|
308
|
+
}, {
|
|
309
|
+
data: {
|
|
310
|
+
updateClient: {
|
|
311
|
+
user: {
|
|
312
|
+
id: string;
|
|
313
|
+
quick_notes: string | null;
|
|
314
|
+
} | null;
|
|
315
|
+
};
|
|
316
|
+
};
|
|
317
|
+
}>;
|
|
318
|
+
export type PatientUpdateQuickNotesGraphql = z.infer<typeof patientUpdateQuickNotesGraphqlSchema>;
|
|
319
|
+
//# sourceMappingURL=patient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patient.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/healthie/patient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EASxB,CAAC;AACH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEpD,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,uBAAuB;;;;;;;;;EAGlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIzC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAEtF,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAM/C,CAAC;AACH,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.patientUpdateQuickNotesGraphqlSchema = exports.patientQuickNotesGraphqlSchema = exports.patientQuickNotesSchema = exports.patientGraphqlSchema = exports.patientSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const locationSchema = zod_1.z.object({
|
|
6
|
+
line1: zod_1.z.string(),
|
|
7
|
+
line2: zod_1.z.string(),
|
|
8
|
+
city: zod_1.z.string(),
|
|
9
|
+
state: zod_1.z.string(),
|
|
10
|
+
zip: zod_1.z.string(),
|
|
11
|
+
country: zod_1.z.string(),
|
|
12
|
+
});
|
|
13
|
+
exports.patientSchema = zod_1.z.object({
|
|
14
|
+
id: zod_1.z.string(),
|
|
15
|
+
first_name: zod_1.z.string().nullable(),
|
|
16
|
+
last_name: zod_1.z.string().nullable(),
|
|
17
|
+
dob: zod_1.z.string().nullable(),
|
|
18
|
+
gender: zod_1.z.string().nullable(),
|
|
19
|
+
email: zod_1.z.string().nullable(),
|
|
20
|
+
phone_number: zod_1.z.string().nullable(),
|
|
21
|
+
locations: locationSchema.array(),
|
|
22
|
+
});
|
|
23
|
+
exports.patientGraphqlSchema = zod_1.z.object({
|
|
24
|
+
data: zod_1.z.object({
|
|
25
|
+
user: exports.patientSchema.nullable(),
|
|
26
|
+
}),
|
|
27
|
+
});
|
|
28
|
+
exports.patientQuickNotesSchema = zod_1.z.object({
|
|
29
|
+
id: zod_1.z.string(),
|
|
30
|
+
quick_notes: zod_1.z.string().nullable(),
|
|
31
|
+
});
|
|
32
|
+
exports.patientQuickNotesGraphqlSchema = zod_1.z.object({
|
|
33
|
+
data: zod_1.z.object({
|
|
34
|
+
user: exports.patientQuickNotesSchema.nullable(),
|
|
35
|
+
}),
|
|
36
|
+
});
|
|
37
|
+
exports.patientUpdateQuickNotesGraphqlSchema = zod_1.z.object({
|
|
38
|
+
data: zod_1.z.object({
|
|
39
|
+
updateClient: zod_1.z.object({
|
|
40
|
+
user: exports.patientQuickNotesSchema.nullable(),
|
|
41
|
+
}),
|
|
42
|
+
}),
|
|
43
|
+
});
|
|
44
|
+
//# sourceMappingURL=patient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patient.js","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/healthie/patient.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,MAAM,cAAc,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAC;AAEU,QAAA,aAAa,GAAG,OAAC,CAAC,MAAM,CAAC;IACpC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,SAAS,EAAE,cAAc,CAAC,KAAK,EAAE;CAClC,CAAC,CAAC;AAGU,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,IAAI,EAAE,OAAC,CAAC,MAAM,CAAC;QACb,IAAI,EAAE,qBAAa,CAAC,QAAQ,EAAE;KAC/B,CAAC;CACH,CAAC,CAAC;AAGU,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAC;AAGU,QAAA,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC;IACrD,IAAI,EAAE,OAAC,CAAC,MAAM,CAAC;QACb,IAAI,EAAE,+BAAuB,CAAC,QAAQ,EAAE;KACzC,CAAC;CACH,CAAC,CAAC;AAGU,QAAA,oCAAoC,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3D,IAAI,EAAE,OAAC,CAAC,MAAM,CAAC;QACb,YAAY,EAAE,OAAC,CAAC,MAAM,CAAC;YACrB,IAAI,EAAE,+BAAuB,CAAC,QAAQ,EAAE;SACzC,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const subscriptionResources: readonly ["appointment.created", "patient.created"];
|
|
3
|
+
export type SubscriptionResource = (typeof subscriptionResources)[number];
|
|
4
|
+
export declare function isSubscriptionResource(resource: string): resource is SubscriptionResource;
|
|
5
|
+
export declare const subscriptionSchema: z.ZodObject<{
|
|
6
|
+
id: z.ZodString;
|
|
7
|
+
event_type: z.ZodNullable<z.ZodString>;
|
|
8
|
+
is_enabled: z.ZodBoolean;
|
|
9
|
+
should_retry: z.ZodBoolean;
|
|
10
|
+
url: z.ZodNullable<z.ZodString>;
|
|
11
|
+
webhook_events: z.ZodArray<z.ZodObject<{
|
|
12
|
+
id: z.ZodString;
|
|
13
|
+
event_type: z.ZodNullable<z.ZodString>;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
id: string;
|
|
16
|
+
event_type: string | null;
|
|
17
|
+
}, {
|
|
18
|
+
id: string;
|
|
19
|
+
event_type: string | null;
|
|
20
|
+
}>, "many">;
|
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
url: string | null;
|
|
23
|
+
id: string;
|
|
24
|
+
event_type: string | null;
|
|
25
|
+
is_enabled: boolean;
|
|
26
|
+
should_retry: boolean;
|
|
27
|
+
webhook_events: {
|
|
28
|
+
id: string;
|
|
29
|
+
event_type: string | null;
|
|
30
|
+
}[];
|
|
31
|
+
}, {
|
|
32
|
+
url: string | null;
|
|
33
|
+
id: string;
|
|
34
|
+
event_type: string | null;
|
|
35
|
+
is_enabled: boolean;
|
|
36
|
+
should_retry: boolean;
|
|
37
|
+
webhook_events: {
|
|
38
|
+
id: string;
|
|
39
|
+
event_type: string | null;
|
|
40
|
+
}[];
|
|
41
|
+
}>;
|
|
42
|
+
export type Subscription = z.infer<typeof subscriptionSchema>;
|
|
43
|
+
export declare const subscriptionWithSignatureSecretSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
44
|
+
id: z.ZodString;
|
|
45
|
+
event_type: z.ZodNullable<z.ZodString>;
|
|
46
|
+
is_enabled: z.ZodBoolean;
|
|
47
|
+
should_retry: z.ZodBoolean;
|
|
48
|
+
url: z.ZodNullable<z.ZodString>;
|
|
49
|
+
webhook_events: z.ZodArray<z.ZodObject<{
|
|
50
|
+
id: z.ZodString;
|
|
51
|
+
event_type: z.ZodNullable<z.ZodString>;
|
|
52
|
+
}, "strip", z.ZodTypeAny, {
|
|
53
|
+
id: string;
|
|
54
|
+
event_type: string | null;
|
|
55
|
+
}, {
|
|
56
|
+
id: string;
|
|
57
|
+
event_type: string | null;
|
|
58
|
+
}>, "many">;
|
|
59
|
+
}, {
|
|
60
|
+
signature_secret: z.ZodNullable<z.ZodString>;
|
|
61
|
+
}>, "strip", z.ZodTypeAny, {
|
|
62
|
+
url: string | null;
|
|
63
|
+
id: string;
|
|
64
|
+
event_type: string | null;
|
|
65
|
+
is_enabled: boolean;
|
|
66
|
+
should_retry: boolean;
|
|
67
|
+
webhook_events: {
|
|
68
|
+
id: string;
|
|
69
|
+
event_type: string | null;
|
|
70
|
+
}[];
|
|
71
|
+
signature_secret: string | null;
|
|
72
|
+
}, {
|
|
73
|
+
url: string | null;
|
|
74
|
+
id: string;
|
|
75
|
+
event_type: string | null;
|
|
76
|
+
is_enabled: boolean;
|
|
77
|
+
should_retry: boolean;
|
|
78
|
+
webhook_events: {
|
|
79
|
+
id: string;
|
|
80
|
+
event_type: string | null;
|
|
81
|
+
}[];
|
|
82
|
+
signature_secret: string | null;
|
|
83
|
+
}>;
|
|
84
|
+
export type SubscriptionWithSignatureSecret = z.infer<typeof subscriptionWithSignatureSecretSchema>;
|
|
85
|
+
export declare const subscriptionWithSignatureSecretGraphqlSchema: z.ZodObject<{
|
|
86
|
+
data: z.ZodObject<{
|
|
87
|
+
createWebhook: z.ZodObject<{
|
|
88
|
+
webhook: z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
|
|
89
|
+
id: z.ZodString;
|
|
90
|
+
event_type: z.ZodNullable<z.ZodString>;
|
|
91
|
+
is_enabled: z.ZodBoolean;
|
|
92
|
+
should_retry: z.ZodBoolean;
|
|
93
|
+
url: z.ZodNullable<z.ZodString>;
|
|
94
|
+
webhook_events: z.ZodArray<z.ZodObject<{
|
|
95
|
+
id: z.ZodString;
|
|
96
|
+
event_type: z.ZodNullable<z.ZodString>;
|
|
97
|
+
}, "strip", z.ZodTypeAny, {
|
|
98
|
+
id: string;
|
|
99
|
+
event_type: string | null;
|
|
100
|
+
}, {
|
|
101
|
+
id: string;
|
|
102
|
+
event_type: string | null;
|
|
103
|
+
}>, "many">;
|
|
104
|
+
}, {
|
|
105
|
+
signature_secret: z.ZodNullable<z.ZodString>;
|
|
106
|
+
}>, "strip", z.ZodTypeAny, {
|
|
107
|
+
url: string | null;
|
|
108
|
+
id: string;
|
|
109
|
+
event_type: string | null;
|
|
110
|
+
is_enabled: boolean;
|
|
111
|
+
should_retry: boolean;
|
|
112
|
+
webhook_events: {
|
|
113
|
+
id: string;
|
|
114
|
+
event_type: string | null;
|
|
115
|
+
}[];
|
|
116
|
+
signature_secret: string | null;
|
|
117
|
+
}, {
|
|
118
|
+
url: string | null;
|
|
119
|
+
id: string;
|
|
120
|
+
event_type: string | null;
|
|
121
|
+
is_enabled: boolean;
|
|
122
|
+
should_retry: boolean;
|
|
123
|
+
webhook_events: {
|
|
124
|
+
id: string;
|
|
125
|
+
event_type: string | null;
|
|
126
|
+
}[];
|
|
127
|
+
signature_secret: string | null;
|
|
128
|
+
}>>;
|
|
129
|
+
}, "strip", z.ZodTypeAny, {
|
|
130
|
+
webhook: {
|
|
131
|
+
url: string | null;
|
|
132
|
+
id: string;
|
|
133
|
+
event_type: string | null;
|
|
134
|
+
is_enabled: boolean;
|
|
135
|
+
should_retry: boolean;
|
|
136
|
+
webhook_events: {
|
|
137
|
+
id: string;
|
|
138
|
+
event_type: string | null;
|
|
139
|
+
}[];
|
|
140
|
+
signature_secret: string | null;
|
|
141
|
+
} | null;
|
|
142
|
+
}, {
|
|
143
|
+
webhook: {
|
|
144
|
+
url: string | null;
|
|
145
|
+
id: string;
|
|
146
|
+
event_type: string | null;
|
|
147
|
+
is_enabled: boolean;
|
|
148
|
+
should_retry: boolean;
|
|
149
|
+
webhook_events: {
|
|
150
|
+
id: string;
|
|
151
|
+
event_type: string | null;
|
|
152
|
+
}[];
|
|
153
|
+
signature_secret: string | null;
|
|
154
|
+
} | null;
|
|
155
|
+
}>;
|
|
156
|
+
}, "strip", z.ZodTypeAny, {
|
|
157
|
+
createWebhook: {
|
|
158
|
+
webhook: {
|
|
159
|
+
url: string | null;
|
|
160
|
+
id: string;
|
|
161
|
+
event_type: string | null;
|
|
162
|
+
is_enabled: boolean;
|
|
163
|
+
should_retry: boolean;
|
|
164
|
+
webhook_events: {
|
|
165
|
+
id: string;
|
|
166
|
+
event_type: string | null;
|
|
167
|
+
}[];
|
|
168
|
+
signature_secret: string | null;
|
|
169
|
+
} | null;
|
|
170
|
+
};
|
|
171
|
+
}, {
|
|
172
|
+
createWebhook: {
|
|
173
|
+
webhook: {
|
|
174
|
+
url: string | null;
|
|
175
|
+
id: string;
|
|
176
|
+
event_type: string | null;
|
|
177
|
+
is_enabled: boolean;
|
|
178
|
+
should_retry: boolean;
|
|
179
|
+
webhook_events: {
|
|
180
|
+
id: string;
|
|
181
|
+
event_type: string | null;
|
|
182
|
+
}[];
|
|
183
|
+
signature_secret: string | null;
|
|
184
|
+
} | null;
|
|
185
|
+
};
|
|
186
|
+
}>;
|
|
187
|
+
}, "strip", z.ZodTypeAny, {
|
|
188
|
+
data: {
|
|
189
|
+
createWebhook: {
|
|
190
|
+
webhook: {
|
|
191
|
+
url: string | null;
|
|
192
|
+
id: string;
|
|
193
|
+
event_type: string | null;
|
|
194
|
+
is_enabled: boolean;
|
|
195
|
+
should_retry: boolean;
|
|
196
|
+
webhook_events: {
|
|
197
|
+
id: string;
|
|
198
|
+
event_type: string | null;
|
|
199
|
+
}[];
|
|
200
|
+
signature_secret: string | null;
|
|
201
|
+
} | null;
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
}, {
|
|
205
|
+
data: {
|
|
206
|
+
createWebhook: {
|
|
207
|
+
webhook: {
|
|
208
|
+
url: string | null;
|
|
209
|
+
id: string;
|
|
210
|
+
event_type: string | null;
|
|
211
|
+
is_enabled: boolean;
|
|
212
|
+
should_retry: boolean;
|
|
213
|
+
webhook_events: {
|
|
214
|
+
id: string;
|
|
215
|
+
event_type: string | null;
|
|
216
|
+
}[];
|
|
217
|
+
signature_secret: string | null;
|
|
218
|
+
} | null;
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
}>;
|
|
222
|
+
export type SubscriptionWithSignatureSecretGraphql = z.infer<typeof subscriptionWithSignatureSecretGraphqlSchema>;
|
|
223
|
+
export declare const subscriptionListResponseGraphqlSchema: z.ZodObject<{
|
|
224
|
+
data: z.ZodObject<{
|
|
225
|
+
webhooks: z.ZodArray<z.ZodObject<{
|
|
226
|
+
id: z.ZodString;
|
|
227
|
+
event_type: z.ZodNullable<z.ZodString>;
|
|
228
|
+
is_enabled: z.ZodBoolean;
|
|
229
|
+
should_retry: z.ZodBoolean;
|
|
230
|
+
url: z.ZodNullable<z.ZodString>;
|
|
231
|
+
webhook_events: z.ZodArray<z.ZodObject<{
|
|
232
|
+
id: z.ZodString;
|
|
233
|
+
event_type: z.ZodNullable<z.ZodString>;
|
|
234
|
+
}, "strip", z.ZodTypeAny, {
|
|
235
|
+
id: string;
|
|
236
|
+
event_type: string | null;
|
|
237
|
+
}, {
|
|
238
|
+
id: string;
|
|
239
|
+
event_type: string | null;
|
|
240
|
+
}>, "many">;
|
|
241
|
+
}, "strip", z.ZodTypeAny, {
|
|
242
|
+
url: string | null;
|
|
243
|
+
id: string;
|
|
244
|
+
event_type: string | null;
|
|
245
|
+
is_enabled: boolean;
|
|
246
|
+
should_retry: boolean;
|
|
247
|
+
webhook_events: {
|
|
248
|
+
id: string;
|
|
249
|
+
event_type: string | null;
|
|
250
|
+
}[];
|
|
251
|
+
}, {
|
|
252
|
+
url: string | null;
|
|
253
|
+
id: string;
|
|
254
|
+
event_type: string | null;
|
|
255
|
+
is_enabled: boolean;
|
|
256
|
+
should_retry: boolean;
|
|
257
|
+
webhook_events: {
|
|
258
|
+
id: string;
|
|
259
|
+
event_type: string | null;
|
|
260
|
+
}[];
|
|
261
|
+
}>, "many">;
|
|
262
|
+
}, "strip", z.ZodTypeAny, {
|
|
263
|
+
webhooks: {
|
|
264
|
+
url: string | null;
|
|
265
|
+
id: string;
|
|
266
|
+
event_type: string | null;
|
|
267
|
+
is_enabled: boolean;
|
|
268
|
+
should_retry: boolean;
|
|
269
|
+
webhook_events: {
|
|
270
|
+
id: string;
|
|
271
|
+
event_type: string | null;
|
|
272
|
+
}[];
|
|
273
|
+
}[];
|
|
274
|
+
}, {
|
|
275
|
+
webhooks: {
|
|
276
|
+
url: string | null;
|
|
277
|
+
id: string;
|
|
278
|
+
event_type: string | null;
|
|
279
|
+
is_enabled: boolean;
|
|
280
|
+
should_retry: boolean;
|
|
281
|
+
webhook_events: {
|
|
282
|
+
id: string;
|
|
283
|
+
event_type: string | null;
|
|
284
|
+
}[];
|
|
285
|
+
}[];
|
|
286
|
+
}>;
|
|
287
|
+
}, "strip", z.ZodTypeAny, {
|
|
288
|
+
data: {
|
|
289
|
+
webhooks: {
|
|
290
|
+
url: string | null;
|
|
291
|
+
id: string;
|
|
292
|
+
event_type: string | null;
|
|
293
|
+
is_enabled: boolean;
|
|
294
|
+
should_retry: boolean;
|
|
295
|
+
webhook_events: {
|
|
296
|
+
id: string;
|
|
297
|
+
event_type: string | null;
|
|
298
|
+
}[];
|
|
299
|
+
}[];
|
|
300
|
+
};
|
|
301
|
+
}, {
|
|
302
|
+
data: {
|
|
303
|
+
webhooks: {
|
|
304
|
+
url: string | null;
|
|
305
|
+
id: string;
|
|
306
|
+
event_type: string | null;
|
|
307
|
+
is_enabled: boolean;
|
|
308
|
+
should_retry: boolean;
|
|
309
|
+
webhook_events: {
|
|
310
|
+
id: string;
|
|
311
|
+
event_type: string | null;
|
|
312
|
+
}[];
|
|
313
|
+
}[];
|
|
314
|
+
};
|
|
315
|
+
}>;
|
|
316
|
+
export type SubscriptionListResponseGraphql = z.infer<typeof subscriptionListResponseGraphqlSchema>;
|
|
317
|
+
//# sourceMappingURL=subscription.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../../../../../src/interface/external/ehr/healthie/subscription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,qBAAqB,qDAAsD,CAAC;AACzF,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC;AAC1E,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,GAAG,QAAQ,IAAI,oBAAoB,CAEzF;AAOD,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAO7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEhD,CAAC;AACH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC;AAEpG,eAAO,MAAM,4CAA4C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMvD,CAAC;AACH,MAAM,MAAM,sCAAsC,GAAG,CAAC,CAAC,KAAK,CAC1D,OAAO,4CAA4C,CACpD,CAAC;AAEF,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIhD,CAAC;AACH,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC"}
|