@metriport/ihe-gateway-sdk 0.8.0 → 0.8.1

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.
@@ -0,0 +1,540 @@
1
+ import { BaseRequest, BaseResponse, BaseErrorResponse, DocumentReference, XCAGateway, XCPDPatientId, Code } from "./shared";
2
+ import * as z from "zod";
3
+ export declare const dateRangeSchema: z.ZodObject<{
4
+ dateFrom: z.ZodString;
5
+ dateTo: z.ZodString;
6
+ }, "strip", z.ZodTypeAny, {
7
+ dateFrom: string;
8
+ dateTo: string;
9
+ }, {
10
+ dateFrom: string;
11
+ dateTo: string;
12
+ }>;
13
+ export type DateRange = z.infer<typeof dateRangeSchema>;
14
+ export type DocumentQueryRequestOutgoing = BaseRequest & {
15
+ cxId: string;
16
+ xcpdPatientId: XCPDPatientId;
17
+ patientId?: string;
18
+ gateway: XCAGateway;
19
+ classCode?: Code[];
20
+ practiceSettingCode?: Code[];
21
+ facilityTypeCode?: Code[];
22
+ documentCreationDate?: DateRange;
23
+ serviceDate?: DateRange;
24
+ };
25
+ export declare const documentQueryResponseIncomingSchema: z.ZodUnion<[z.ZodIntersection<z.ZodObject<{
26
+ id: z.ZodString;
27
+ timestamp: z.ZodString;
28
+ responseTimestamp: z.ZodString;
29
+ externalGatewayPatient: z.ZodOptional<z.ZodObject<{
30
+ id: z.ZodString;
31
+ system: z.ZodString;
32
+ }, "strip", z.ZodTypeAny, {
33
+ id: string;
34
+ system: string;
35
+ }, {
36
+ id: string;
37
+ system: string;
38
+ }>>;
39
+ patientId: z.ZodOptional<z.ZodString>;
40
+ }, "strip", z.ZodTypeAny, {
41
+ id: string;
42
+ timestamp: string;
43
+ responseTimestamp: string;
44
+ externalGatewayPatient?: {
45
+ id: string;
46
+ system: string;
47
+ } | undefined;
48
+ patientId?: string | undefined;
49
+ }, {
50
+ id: string;
51
+ timestamp: string;
52
+ responseTimestamp: string;
53
+ externalGatewayPatient?: {
54
+ id: string;
55
+ system: string;
56
+ } | undefined;
57
+ patientId?: string | undefined;
58
+ }>, z.ZodObject<{
59
+ documentReference: z.ZodArray<z.ZodObject<{
60
+ homeCommunityId: z.ZodString;
61
+ docUniqueId: z.ZodString;
62
+ urn: z.ZodString;
63
+ repositoryUniqueId: z.ZodString;
64
+ newRepositoryUniqueId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
65
+ newDocumentUniqueId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
66
+ contentType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
67
+ language: z.ZodOptional<z.ZodNullable<z.ZodString>>;
68
+ uri: z.ZodOptional<z.ZodNullable<z.ZodString>>;
69
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
70
+ creation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
71
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
72
+ }, "strip", z.ZodTypeAny, {
73
+ homeCommunityId: string;
74
+ docUniqueId: string;
75
+ urn: string;
76
+ repositoryUniqueId: string;
77
+ newRepositoryUniqueId?: string | null | undefined;
78
+ newDocumentUniqueId?: string | null | undefined;
79
+ contentType?: string | null | undefined;
80
+ language?: string | null | undefined;
81
+ uri?: string | null | undefined;
82
+ url?: string | null | undefined;
83
+ creation?: string | null | undefined;
84
+ title?: string | null | undefined;
85
+ }, {
86
+ homeCommunityId: string;
87
+ docUniqueId: string;
88
+ urn: string;
89
+ repositoryUniqueId: string;
90
+ newRepositoryUniqueId?: string | null | undefined;
91
+ newDocumentUniqueId?: string | null | undefined;
92
+ contentType?: string | null | undefined;
93
+ language?: string | null | undefined;
94
+ uri?: string | null | undefined;
95
+ url?: string | null | undefined;
96
+ creation?: string | null | undefined;
97
+ title?: string | null | undefined;
98
+ }>, "many">;
99
+ gateway: z.ZodObject<{
100
+ homeCommunityId: z.ZodString;
101
+ url: z.ZodString;
102
+ }, "strip", z.ZodTypeAny, {
103
+ url: string;
104
+ homeCommunityId: string;
105
+ }, {
106
+ url: string;
107
+ homeCommunityId: string;
108
+ }>;
109
+ }, "strip", z.ZodTypeAny, {
110
+ gateway: {
111
+ url: string;
112
+ homeCommunityId: string;
113
+ };
114
+ documentReference: {
115
+ homeCommunityId: string;
116
+ docUniqueId: string;
117
+ urn: string;
118
+ repositoryUniqueId: string;
119
+ newRepositoryUniqueId?: string | null | undefined;
120
+ newDocumentUniqueId?: string | null | undefined;
121
+ contentType?: string | null | undefined;
122
+ language?: string | null | undefined;
123
+ uri?: string | null | undefined;
124
+ url?: string | null | undefined;
125
+ creation?: string | null | undefined;
126
+ title?: string | null | undefined;
127
+ }[];
128
+ }, {
129
+ gateway: {
130
+ url: string;
131
+ homeCommunityId: string;
132
+ };
133
+ documentReference: {
134
+ homeCommunityId: string;
135
+ docUniqueId: string;
136
+ urn: string;
137
+ repositoryUniqueId: string;
138
+ newRepositoryUniqueId?: string | null | undefined;
139
+ newDocumentUniqueId?: string | null | undefined;
140
+ contentType?: string | null | undefined;
141
+ language?: string | null | undefined;
142
+ uri?: string | null | undefined;
143
+ url?: string | null | undefined;
144
+ creation?: string | null | undefined;
145
+ title?: string | null | undefined;
146
+ }[];
147
+ }>>, z.ZodIntersection<z.ZodObject<{
148
+ id: z.ZodString;
149
+ timestamp: z.ZodString;
150
+ responseTimestamp: z.ZodString;
151
+ externalGatewayPatient: z.ZodOptional<z.ZodObject<{
152
+ id: z.ZodString;
153
+ system: z.ZodString;
154
+ }, "strip", z.ZodTypeAny, {
155
+ id: string;
156
+ system: string;
157
+ }, {
158
+ id: string;
159
+ system: string;
160
+ }>>;
161
+ patientId: z.ZodOptional<z.ZodString>;
162
+ }, "strip", z.ZodTypeAny, {
163
+ id: string;
164
+ timestamp: string;
165
+ responseTimestamp: string;
166
+ externalGatewayPatient?: {
167
+ id: string;
168
+ system: string;
169
+ } | undefined;
170
+ patientId?: string | undefined;
171
+ }, {
172
+ id: string;
173
+ timestamp: string;
174
+ responseTimestamp: string;
175
+ externalGatewayPatient?: {
176
+ id: string;
177
+ system: string;
178
+ } | undefined;
179
+ patientId?: string | undefined;
180
+ }>, z.ZodObject<{
181
+ operationOutcome: z.ZodObject<{
182
+ resourceType: z.ZodString;
183
+ id: z.ZodString;
184
+ issue: z.ZodArray<z.ZodObject<{
185
+ severity: z.ZodString;
186
+ code: z.ZodString;
187
+ details: z.ZodUnion<[z.ZodObject<{
188
+ coding: z.ZodArray<z.ZodObject<{
189
+ system: z.ZodString;
190
+ code: z.ZodString;
191
+ }, "strip", z.ZodTypeAny, {
192
+ code: string;
193
+ system: string;
194
+ }, {
195
+ code: string;
196
+ system: string;
197
+ }>, "many">;
198
+ }, "strip", z.ZodTypeAny, {
199
+ coding: {
200
+ code: string;
201
+ system: string;
202
+ }[];
203
+ }, {
204
+ coding: {
205
+ code: string;
206
+ system: string;
207
+ }[];
208
+ }>, z.ZodObject<{
209
+ text: z.ZodString;
210
+ }, "strip", z.ZodTypeAny, {
211
+ text: string;
212
+ }, {
213
+ text: string;
214
+ }>]>;
215
+ }, "strip", z.ZodTypeAny, {
216
+ code: string;
217
+ severity: string;
218
+ details: ({
219
+ coding: {
220
+ code: string;
221
+ system: string;
222
+ }[];
223
+ } | {
224
+ text: string;
225
+ }) & ({
226
+ coding: {
227
+ code: string;
228
+ system: string;
229
+ }[];
230
+ } | {
231
+ text: string;
232
+ } | undefined);
233
+ }, {
234
+ code: string;
235
+ severity: string;
236
+ details: ({
237
+ coding: {
238
+ code: string;
239
+ system: string;
240
+ }[];
241
+ } | {
242
+ text: string;
243
+ }) & ({
244
+ coding: {
245
+ code: string;
246
+ system: string;
247
+ }[];
248
+ } | {
249
+ text: string;
250
+ } | undefined);
251
+ }>, "many">;
252
+ }, "strip", z.ZodTypeAny, {
253
+ id: string;
254
+ resourceType: string;
255
+ issue: {
256
+ code: string;
257
+ severity: string;
258
+ details: ({
259
+ coding: {
260
+ code: string;
261
+ system: string;
262
+ }[];
263
+ } | {
264
+ text: string;
265
+ }) & ({
266
+ coding: {
267
+ code: string;
268
+ system: string;
269
+ }[];
270
+ } | {
271
+ text: string;
272
+ } | undefined);
273
+ }[];
274
+ }, {
275
+ id: string;
276
+ resourceType: string;
277
+ issue: {
278
+ code: string;
279
+ severity: string;
280
+ details: ({
281
+ coding: {
282
+ code: string;
283
+ system: string;
284
+ }[];
285
+ } | {
286
+ text: string;
287
+ }) & ({
288
+ coding: {
289
+ code: string;
290
+ system: string;
291
+ }[];
292
+ } | {
293
+ text: string;
294
+ } | undefined);
295
+ }[];
296
+ }>;
297
+ }, "strip", z.ZodTypeAny, {
298
+ operationOutcome: {
299
+ id: string;
300
+ resourceType: string;
301
+ issue: {
302
+ code: string;
303
+ severity: string;
304
+ details: ({
305
+ coding: {
306
+ code: string;
307
+ system: string;
308
+ }[];
309
+ } | {
310
+ text: string;
311
+ }) & ({
312
+ coding: {
313
+ code: string;
314
+ system: string;
315
+ }[];
316
+ } | {
317
+ text: string;
318
+ } | undefined);
319
+ }[];
320
+ };
321
+ }, {
322
+ operationOutcome: {
323
+ id: string;
324
+ resourceType: string;
325
+ issue: {
326
+ code: string;
327
+ severity: string;
328
+ details: ({
329
+ coding: {
330
+ code: string;
331
+ system: string;
332
+ }[];
333
+ } | {
334
+ text: string;
335
+ }) & ({
336
+ coding: {
337
+ code: string;
338
+ system: string;
339
+ }[];
340
+ } | {
341
+ text: string;
342
+ } | undefined);
343
+ }[];
344
+ };
345
+ }>>]>;
346
+ export type DocumentQueryResponseIncoming = z.infer<typeof documentQueryResponseIncomingSchema>;
347
+ export declare const documentQueryRequestIncomingSchema: z.ZodIntersection<z.ZodObject<{
348
+ id: z.ZodString;
349
+ timestamp: z.ZodString;
350
+ samlAttributes: z.ZodObject<{
351
+ subjectId: z.ZodString;
352
+ subjectRole: z.ZodObject<{
353
+ display: z.ZodString;
354
+ code: z.ZodString;
355
+ }, "strip", z.ZodTypeAny, {
356
+ code: string;
357
+ display: string;
358
+ }, {
359
+ code: string;
360
+ display: string;
361
+ }>;
362
+ organization: z.ZodString;
363
+ organizationId: z.ZodString;
364
+ homeCommunityId: z.ZodString;
365
+ purposeOfUse: z.ZodString;
366
+ }, "strip", z.ZodTypeAny, {
367
+ subjectId: string;
368
+ subjectRole: {
369
+ code: string;
370
+ display: string;
371
+ };
372
+ organization: string;
373
+ organizationId: string;
374
+ homeCommunityId: string;
375
+ purposeOfUse: string;
376
+ }, {
377
+ subjectId: string;
378
+ subjectRole: {
379
+ code: string;
380
+ display: string;
381
+ };
382
+ organization: string;
383
+ organizationId: string;
384
+ homeCommunityId: string;
385
+ purposeOfUse: string;
386
+ }>;
387
+ patientId: z.ZodOptional<z.ZodString>;
388
+ }, "strip", z.ZodTypeAny, {
389
+ id: string;
390
+ timestamp: string;
391
+ samlAttributes: {
392
+ subjectId: string;
393
+ subjectRole: {
394
+ code: string;
395
+ display: string;
396
+ };
397
+ organization: string;
398
+ organizationId: string;
399
+ homeCommunityId: string;
400
+ purposeOfUse: string;
401
+ };
402
+ patientId?: string | undefined;
403
+ }, {
404
+ id: string;
405
+ timestamp: string;
406
+ samlAttributes: {
407
+ subjectId: string;
408
+ subjectRole: {
409
+ code: string;
410
+ display: string;
411
+ };
412
+ organization: string;
413
+ organizationId: string;
414
+ homeCommunityId: string;
415
+ purposeOfUse: string;
416
+ };
417
+ patientId?: string | undefined;
418
+ }>, z.ZodObject<{
419
+ xcpdPatientId: z.ZodObject<{
420
+ id: z.ZodString;
421
+ system: z.ZodString;
422
+ }, "strip", z.ZodTypeAny, {
423
+ id: string;
424
+ system: string;
425
+ }, {
426
+ id: string;
427
+ system: string;
428
+ }>;
429
+ classCode: z.ZodOptional<z.ZodArray<z.ZodObject<{
430
+ system: z.ZodString;
431
+ code: z.ZodString;
432
+ }, "strip", z.ZodTypeAny, {
433
+ code: string;
434
+ system: string;
435
+ }, {
436
+ code: string;
437
+ system: string;
438
+ }>, "many">>;
439
+ practiceSettingCode: z.ZodOptional<z.ZodArray<z.ZodObject<{
440
+ system: z.ZodString;
441
+ code: z.ZodString;
442
+ }, "strip", z.ZodTypeAny, {
443
+ code: string;
444
+ system: string;
445
+ }, {
446
+ code: string;
447
+ system: string;
448
+ }>, "many">>;
449
+ facilityTypeCode: z.ZodOptional<z.ZodArray<z.ZodObject<{
450
+ system: z.ZodString;
451
+ code: z.ZodString;
452
+ }, "strip", z.ZodTypeAny, {
453
+ code: string;
454
+ system: string;
455
+ }, {
456
+ code: string;
457
+ system: string;
458
+ }>, "many">>;
459
+ documentCreationDate: z.ZodOptional<z.ZodObject<{
460
+ dateFrom: z.ZodString;
461
+ dateTo: z.ZodString;
462
+ }, "strip", z.ZodTypeAny, {
463
+ dateFrom: string;
464
+ dateTo: string;
465
+ }, {
466
+ dateFrom: string;
467
+ dateTo: string;
468
+ }>>;
469
+ serviceDate: z.ZodOptional<z.ZodObject<{
470
+ dateFrom: z.ZodString;
471
+ dateTo: z.ZodString;
472
+ }, "strip", z.ZodTypeAny, {
473
+ dateFrom: string;
474
+ dateTo: string;
475
+ }, {
476
+ dateFrom: string;
477
+ dateTo: string;
478
+ }>>;
479
+ }, "strip", z.ZodTypeAny, {
480
+ xcpdPatientId: {
481
+ id: string;
482
+ system: string;
483
+ };
484
+ classCode?: {
485
+ code: string;
486
+ system: string;
487
+ }[] | undefined;
488
+ practiceSettingCode?: {
489
+ code: string;
490
+ system: string;
491
+ }[] | undefined;
492
+ facilityTypeCode?: {
493
+ code: string;
494
+ system: string;
495
+ }[] | undefined;
496
+ documentCreationDate?: {
497
+ dateFrom: string;
498
+ dateTo: string;
499
+ } | undefined;
500
+ serviceDate?: {
501
+ dateFrom: string;
502
+ dateTo: string;
503
+ } | undefined;
504
+ }, {
505
+ xcpdPatientId: {
506
+ id: string;
507
+ system: string;
508
+ };
509
+ classCode?: {
510
+ code: string;
511
+ system: string;
512
+ }[] | undefined;
513
+ practiceSettingCode?: {
514
+ code: string;
515
+ system: string;
516
+ }[] | undefined;
517
+ facilityTypeCode?: {
518
+ code: string;
519
+ system: string;
520
+ }[] | undefined;
521
+ documentCreationDate?: {
522
+ dateFrom: string;
523
+ dateTo: string;
524
+ } | undefined;
525
+ serviceDate?: {
526
+ dateFrom: string;
527
+ dateTo: string;
528
+ } | undefined;
529
+ }>>;
530
+ export type DocumentQueryRequestIncoming = z.infer<typeof documentQueryRequestIncomingSchema>;
531
+ export type DocumentQueryResponseOutgoing = (BaseResponse & {
532
+ documentReference: DocumentReference[];
533
+ operationOutcome?: never;
534
+ }) | (BaseErrorResponse & {
535
+ documentReference?: never;
536
+ });
537
+ export declare function isDocumentQueryResponse(obj: BaseResponse): obj is DocumentQueryResponseIncoming & {
538
+ documentReference: DocumentReference[];
539
+ };
540
+ //# sourceMappingURL=document-query.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"document-query.d.ts","sourceRoot":"","sources":["../../src/models/document-query.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,EACjB,UAAU,EACV,aAAa,EAIb,IAAI,EAKL,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,eAAO,MAAM,eAAe;;;;;;;;;EAG1B,CAAC;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,MAAM,MAAM,4BAA4B,GAAG,WAAW,GAAG;IACvD,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,aAAa,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,UAAU,CAAC;IACpB,SAAS,CAAC,EAAE,IAAI,EAAE,CAAC;IACnB,mBAAmB,CAAC,EAAE,IAAI,EAAE,CAAC;IAC7B,gBAAgB,CAAC,EAAE,IAAI,EAAE,CAAC;IAC1B,oBAAoB,CAAC,EAAE,SAAS,CAAC;IACjC,WAAW,CAAC,EAAE,SAAS,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAS9C,CAAC;AACH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AAEhG,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAU9C,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAE9F,MAAM,MAAM,6BAA6B,GACrC,CAAC,YAAY,GAAG;IACd,iBAAiB,EAAE,iBAAiB,EAAE,CAAC;IACvC,gBAAgB,CAAC,EAAE,KAAK,CAAC;CAC1B,CAAC,GACF,CAAC,iBAAiB,GAAG;IACnB,iBAAiB,CAAC,EAAE,KAAK,CAAC;CAC3B,CAAC,CAAC;AAEP,wBAAgB,uBAAuB,CAErC,GAAG,EAAE,YAAY,GAChB,GAAG,IAAI,6BAA6B,GAAG;IAAE,iBAAiB,EAAE,iBAAiB,EAAE,CAAA;CAAE,CAEnF"}
@@ -0,0 +1,54 @@
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.isDocumentQueryResponse = exports.documentQueryRequestIncomingSchema = exports.documentQueryResponseIncomingSchema = exports.dateRangeSchema = void 0;
27
+ const shared_1 = require("./shared");
28
+ const z = __importStar(require("zod"));
29
+ exports.dateRangeSchema = z.object({
30
+ dateFrom: z.string(),
31
+ dateTo: z.string(),
32
+ });
33
+ exports.documentQueryResponseIncomingSchema = z.union([
34
+ z.intersection(shared_1.baseResponseSchema, z.object({
35
+ documentReference: shared_1.documentReferenceSchema.array(),
36
+ gateway: shared_1.xcaGatewaySchema,
37
+ })),
38
+ shared_1.baseErrorResponseSchema,
39
+ ]);
40
+ exports.documentQueryRequestIncomingSchema = z.intersection(shared_1.baseRequestSchema, z.object({
41
+ xcpdPatientId: shared_1.xcpdPatientIdSchema,
42
+ classCode: z.array(shared_1.codeSchema).optional(),
43
+ practiceSettingCode: z.array(shared_1.codeSchema).optional(),
44
+ facilityTypeCode: z.array(shared_1.codeSchema).optional(),
45
+ documentCreationDate: exports.dateRangeSchema.optional(),
46
+ serviceDate: exports.dateRangeSchema.optional(),
47
+ }));
48
+ function isDocumentQueryResponse(
49
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
50
+ obj) {
51
+ return "documentReference" in obj;
52
+ }
53
+ exports.isDocumentQueryResponse = isDocumentQueryResponse;
54
+ //# sourceMappingURL=document-query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"document-query.js","sourceRoot":"","sources":["../../src/models/document-query.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qCAekB;AAClB,uCAAyB;AAEZ,QAAA,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC;AAeU,QAAA,mCAAmC,GAAG,CAAC,CAAC,KAAK,CAAC;IACzD,CAAC,CAAC,YAAY,CACZ,2BAAkB,EAClB,CAAC,CAAC,MAAM,CAAC;QACP,iBAAiB,EAAE,gCAAuB,CAAC,KAAK,EAAE;QAClD,OAAO,EAAE,yBAAgB;KAC1B,CAAC,CACH;IACD,gCAAuB;CACxB,CAAC,CAAC;AAGU,QAAA,kCAAkC,GAAG,CAAC,CAAC,YAAY,CAC9D,0BAAiB,EACjB,CAAC,CAAC,MAAM,CAAC;IACP,aAAa,EAAE,4BAAmB;IAClC,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,mBAAU,CAAC,CAAC,QAAQ,EAAE;IACzC,mBAAmB,EAAE,CAAC,CAAC,KAAK,CAAC,mBAAU,CAAC,CAAC,QAAQ,EAAE;IACnD,gBAAgB,EAAE,CAAC,CAAC,KAAK,CAAC,mBAAU,CAAC,CAAC,QAAQ,EAAE;IAChD,oBAAoB,EAAE,uBAAe,CAAC,QAAQ,EAAE;IAChD,WAAW,EAAE,uBAAe,CAAC,QAAQ,EAAE;CACxC,CAAC,CACH,CAAC;AAaF,SAAgB,uBAAuB;AACrC,8DAA8D;AAC9D,GAAiB;IAEjB,OAAO,mBAAmB,IAAI,GAAG,CAAC;AACpC,CAAC;AALD,0DAKC"}