@voyant-travel/relationships 0.119.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.
Files changed (96) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +36 -0
  3. package/dist/action-ledger-capabilities.d.ts +20 -0
  4. package/dist/action-ledger-capabilities.d.ts.map +1 -0
  5. package/dist/action-ledger-capabilities.js +16 -0
  6. package/dist/events.d.ts +23 -0
  7. package/dist/events.d.ts.map +1 -0
  8. package/dist/events.js +9 -0
  9. package/dist/index.d.ts +32 -0
  10. package/dist/index.d.ts.map +1 -0
  11. package/dist/index.js +49 -0
  12. package/dist/route-runtime.d.ts +21 -0
  13. package/dist/route-runtime.d.ts.map +1 -0
  14. package/dist/route-runtime.js +28 -0
  15. package/dist/routes/accounts.d.ts +1460 -0
  16. package/dist/routes/accounts.d.ts.map +1 -0
  17. package/dist/routes/accounts.js +274 -0
  18. package/dist/routes/activities.d.ts +299 -0
  19. package/dist/routes/activities.d.ts.map +1 -0
  20. package/dist/routes/activities.js +64 -0
  21. package/dist/routes/custom-fields.d.ts +256 -0
  22. package/dist/routes/custom-fields.d.ts.map +1 -0
  23. package/dist/routes/custom-fields.js +47 -0
  24. package/dist/routes/customer-signals.d.ts +281 -0
  25. package/dist/routes/customer-signals.d.ts.map +1 -0
  26. package/dist/routes/customer-signals.js +45 -0
  27. package/dist/routes/index.d.ts +2945 -0
  28. package/dist/routes/index.d.ts.map +1 -0
  29. package/dist/routes/index.js +14 -0
  30. package/dist/routes/person-documents.d.ts +519 -0
  31. package/dist/routes/person-documents.d.ts.map +1 -0
  32. package/dist/routes/person-documents.js +240 -0
  33. package/dist/routes/person-relationships.d.ts +189 -0
  34. package/dist/routes/person-relationships.d.ts.map +1 -0
  35. package/dist/routes/person-relationships.js +36 -0
  36. package/dist/schema-accounts.d.ts +2099 -0
  37. package/dist/schema-accounts.d.ts.map +1 -0
  38. package/dist/schema-accounts.js +312 -0
  39. package/dist/schema-activities.d.ts +821 -0
  40. package/dist/schema-activities.d.ts.map +1 -0
  41. package/dist/schema-activities.js +92 -0
  42. package/dist/schema-relations.d.ts +47 -0
  43. package/dist/schema-relations.d.ts.map +1 -0
  44. package/dist/schema-relations.js +70 -0
  45. package/dist/schema-shared.d.ts +10 -0
  46. package/dist/schema-shared.d.ts.map +1 -0
  47. package/dist/schema-shared.js +36 -0
  48. package/dist/schema-signals.d.ts +324 -0
  49. package/dist/schema-signals.d.ts.map +1 -0
  50. package/dist/schema-signals.js +80 -0
  51. package/dist/schema.d.ts +6 -0
  52. package/dist/schema.d.ts.map +1 -0
  53. package/dist/schema.js +5 -0
  54. package/dist/service/accounts-merge.d.ts +63 -0
  55. package/dist/service/accounts-merge.d.ts.map +1 -0
  56. package/dist/service/accounts-merge.js +382 -0
  57. package/dist/service/accounts-organizations.d.ts +97 -0
  58. package/dist/service/accounts-organizations.d.ts.map +1 -0
  59. package/dist/service/accounts-organizations.js +70 -0
  60. package/dist/service/accounts-people.d.ts +1315 -0
  61. package/dist/service/accounts-people.d.ts.map +1 -0
  62. package/dist/service/accounts-people.js +409 -0
  63. package/dist/service/accounts-resolve.d.ts +76 -0
  64. package/dist/service/accounts-resolve.d.ts.map +1 -0
  65. package/dist/service/accounts-resolve.js +103 -0
  66. package/dist/service/accounts-shared.d.ts +68 -0
  67. package/dist/service/accounts-shared.d.ts.map +1 -0
  68. package/dist/service/accounts-shared.js +149 -0
  69. package/dist/service/accounts.d.ts +1465 -0
  70. package/dist/service/accounts.d.ts.map +1 -0
  71. package/dist/service/accounts.js +13 -0
  72. package/dist/service/activities.d.ts +486 -0
  73. package/dist/service/activities.d.ts.map +1 -0
  74. package/dist/service/activities.js +114 -0
  75. package/dist/service/custom-fields.d.ts +118 -0
  76. package/dist/service/custom-fields.d.ts.map +1 -0
  77. package/dist/service/custom-fields.js +88 -0
  78. package/dist/service/customer-signals.d.ts +733 -0
  79. package/dist/service/customer-signals.d.ts.map +1 -0
  80. package/dist/service/customer-signals.js +112 -0
  81. package/dist/service/helpers.d.ts +22 -0
  82. package/dist/service/helpers.d.ts.map +1 -0
  83. package/dist/service/helpers.js +39 -0
  84. package/dist/service/index.d.ts +4434 -0
  85. package/dist/service/index.d.ts.map +1 -0
  86. package/dist/service/index.js +17 -0
  87. package/dist/service/person-documents.d.ts +1201 -0
  88. package/dist/service/person-documents.d.ts.map +1 -0
  89. package/dist/service/person-documents.js +240 -0
  90. package/dist/service/person-relationships.d.ts +502 -0
  91. package/dist/service/person-relationships.d.ts.map +1 -0
  92. package/dist/service/person-relationships.js +121 -0
  93. package/dist/validation.d.ts +3 -0
  94. package/dist/validation.d.ts.map +1 -0
  95. package/dist/validation.js +1 -0
  96. package/package.json +80 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/routes/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAUjE,KAAK,GAAG,GAAG;IACT,SAAS,EAAE;QACT,EAAE,EAAE,kBAAkB,CAAA;QACtB,MAAM,CAAC,EAAE,MAAM,CAAA;KAChB,CAAA;CACF,CAAA;AAED,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAMA,CAAA;AAEhC,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAA"}
@@ -0,0 +1,14 @@
1
+ import { Hono } from "hono";
2
+ import { accountRoutes } from "./accounts.js";
3
+ import { activityRoutes } from "./activities.js";
4
+ import { customFieldRoutes } from "./custom-fields.js";
5
+ import { customerSignalRoutes } from "./customer-signals.js";
6
+ import { personDocumentRoutes } from "./person-documents.js";
7
+ import { personRelationshipRoutes } from "./person-relationships.js";
8
+ export const relationshipsRoutes = new Hono()
9
+ .route("/", accountRoutes)
10
+ .route("/", personDocumentRoutes)
11
+ .route("/", personRelationshipRoutes)
12
+ .route("/", customerSignalRoutes)
13
+ .route("/", activityRoutes)
14
+ .route("/", customFieldRoutes);
@@ -0,0 +1,519 @@
1
+ import type { ModuleContainer } from "@voyant-travel/core";
2
+ import type { PostgresJsDatabase } from "drizzle-orm/postgres-js";
3
+ type Env = {
4
+ Variables: {
5
+ container?: ModuleContainer;
6
+ db: PostgresJsDatabase;
7
+ userId?: string;
8
+ sessionId?: string;
9
+ organizationId?: string | null;
10
+ actor?: string;
11
+ callerType?: string;
12
+ scopes?: string[] | null;
13
+ isInternalRequest?: boolean;
14
+ apiKeyId?: string;
15
+ apiTokenId?: string;
16
+ };
17
+ };
18
+ export declare const personDocumentRoutes: import("hono/hono-base").HonoBase<Env, {
19
+ "/people/:id/documents": {
20
+ $get: {
21
+ input: {
22
+ param: {
23
+ id: string;
24
+ };
25
+ };
26
+ output: {
27
+ data: {
28
+ id: string;
29
+ personId: string;
30
+ type: "other" | "visa" | "passport" | "id_card" | "driver_license";
31
+ numberEncrypted: {
32
+ enc: string;
33
+ } | null;
34
+ issuingAuthority: string | null;
35
+ issuingCountry: string | null;
36
+ issueDate: string | null;
37
+ expiryDate: string | null;
38
+ attachmentId: string | null;
39
+ isPrimary: boolean;
40
+ notes: string | null;
41
+ metadata: {
42
+ [x: string]: import("hono/utils/types").JSONValue;
43
+ } | null;
44
+ createdAt: string;
45
+ updatedAt: string;
46
+ }[];
47
+ };
48
+ outputFormat: "json";
49
+ status: import("hono/utils/http-status").ContentfulStatusCode;
50
+ };
51
+ };
52
+ } & {
53
+ "/people/:id/documents": {
54
+ $post: {
55
+ input: {
56
+ param: {
57
+ id: string;
58
+ };
59
+ };
60
+ output: {
61
+ error: string;
62
+ };
63
+ outputFormat: "json";
64
+ status: 404;
65
+ } | {
66
+ input: {
67
+ param: {
68
+ id: string;
69
+ };
70
+ };
71
+ output: {
72
+ data: {
73
+ id: string;
74
+ createdAt: string;
75
+ type: "other" | "visa" | "passport" | "id_card" | "driver_license";
76
+ updatedAt: string;
77
+ notes: string | null;
78
+ isPrimary: boolean;
79
+ metadata: {
80
+ [x: string]: import("hono/utils/types").JSONValue;
81
+ } | null;
82
+ personId: string;
83
+ numberEncrypted: {
84
+ enc: string;
85
+ } | null;
86
+ issuingAuthority: string | null;
87
+ issuingCountry: string | null;
88
+ issueDate: string | null;
89
+ expiryDate: string | null;
90
+ attachmentId: string | null;
91
+ };
92
+ };
93
+ outputFormat: "json";
94
+ status: 201;
95
+ };
96
+ };
97
+ } & {
98
+ "/person-documents/:id": {
99
+ $get: {
100
+ input: {
101
+ param: {
102
+ id: string;
103
+ };
104
+ };
105
+ output: {
106
+ error: string;
107
+ };
108
+ outputFormat: "json";
109
+ status: 404;
110
+ } | {
111
+ input: {
112
+ param: {
113
+ id: string;
114
+ };
115
+ };
116
+ output: {
117
+ data: {
118
+ id: string;
119
+ personId: string;
120
+ type: "other" | "visa" | "passport" | "id_card" | "driver_license";
121
+ numberEncrypted: {
122
+ enc: string;
123
+ } | null;
124
+ issuingAuthority: string | null;
125
+ issuingCountry: string | null;
126
+ issueDate: string | null;
127
+ expiryDate: string | null;
128
+ attachmentId: string | null;
129
+ isPrimary: boolean;
130
+ notes: string | null;
131
+ metadata: {
132
+ [x: string]: import("hono/utils/types").JSONValue;
133
+ } | null;
134
+ createdAt: string;
135
+ updatedAt: string;
136
+ };
137
+ };
138
+ outputFormat: "json";
139
+ status: import("hono/utils/http-status").ContentfulStatusCode;
140
+ };
141
+ };
142
+ } & {
143
+ "/person-documents/:id": {
144
+ $patch: {
145
+ input: {
146
+ param: {
147
+ id: string;
148
+ };
149
+ };
150
+ output: {
151
+ error: string;
152
+ };
153
+ outputFormat: "json";
154
+ status: 404;
155
+ } | {
156
+ input: {
157
+ param: {
158
+ id: string;
159
+ };
160
+ };
161
+ output: {
162
+ data: {
163
+ id: string;
164
+ personId: string;
165
+ type: "other" | "visa" | "passport" | "id_card" | "driver_license";
166
+ numberEncrypted: {
167
+ enc: string;
168
+ } | null;
169
+ issuingAuthority: string | null;
170
+ issuingCountry: string | null;
171
+ issueDate: string | null;
172
+ expiryDate: string | null;
173
+ attachmentId: string | null;
174
+ isPrimary: boolean;
175
+ notes: string | null;
176
+ metadata: {
177
+ [x: string]: import("hono/utils/types").JSONValue;
178
+ } | null;
179
+ createdAt: string;
180
+ updatedAt: string;
181
+ };
182
+ };
183
+ outputFormat: "json";
184
+ status: import("hono/utils/http-status").ContentfulStatusCode;
185
+ };
186
+ };
187
+ } & {
188
+ "/person-documents/:id": {
189
+ $delete: {
190
+ input: {
191
+ param: {
192
+ id: string;
193
+ };
194
+ };
195
+ output: {
196
+ error: string;
197
+ };
198
+ outputFormat: "json";
199
+ status: 404;
200
+ } | {
201
+ input: {
202
+ param: {
203
+ id: string;
204
+ };
205
+ };
206
+ output: {
207
+ success: true;
208
+ };
209
+ outputFormat: "json";
210
+ status: import("hono/utils/http-status").ContentfulStatusCode;
211
+ };
212
+ };
213
+ } & {
214
+ "/person-documents/:id/set-primary": {
215
+ $post: {
216
+ input: {
217
+ param: {
218
+ id: string;
219
+ };
220
+ };
221
+ output: {
222
+ error: string;
223
+ };
224
+ outputFormat: "json";
225
+ status: 404;
226
+ } | {
227
+ input: {
228
+ param: {
229
+ id: string;
230
+ };
231
+ };
232
+ output: {
233
+ data: {
234
+ id: string;
235
+ personId: string;
236
+ type: "other" | "visa" | "passport" | "id_card" | "driver_license";
237
+ numberEncrypted: {
238
+ enc: string;
239
+ } | null;
240
+ issuingAuthority: string | null;
241
+ issuingCountry: string | null;
242
+ issueDate: string | null;
243
+ expiryDate: string | null;
244
+ attachmentId: string | null;
245
+ isPrimary: boolean;
246
+ notes: string | null;
247
+ metadata: {
248
+ [x: string]: import("hono/utils/types").JSONValue;
249
+ } | null;
250
+ createdAt: string;
251
+ updatedAt: string;
252
+ };
253
+ };
254
+ outputFormat: "json";
255
+ status: import("hono/utils/http-status").ContentfulStatusCode;
256
+ };
257
+ };
258
+ } & {
259
+ "/people/:id/travel-snapshot": {
260
+ $get: {
261
+ input: {
262
+ param: {
263
+ id: string;
264
+ };
265
+ };
266
+ output: {
267
+ error: string;
268
+ };
269
+ outputFormat: "json";
270
+ status: 503;
271
+ } | {
272
+ input: {
273
+ param: {
274
+ id: string;
275
+ };
276
+ };
277
+ output: {
278
+ error: string;
279
+ };
280
+ outputFormat: "json";
281
+ status: 404;
282
+ } | {
283
+ input: {
284
+ param: {
285
+ id: string;
286
+ };
287
+ };
288
+ output: {
289
+ data: {
290
+ dateOfBirth: string | null;
291
+ dietaryRequirements: string | null;
292
+ accessibilityNeeds: string | null;
293
+ documentType: import("../index.js").PersonDocumentType | null;
294
+ documentNumber: string | null;
295
+ documentExpiry: string | null;
296
+ documentIssuingCountry: string | null;
297
+ documentIssuingAuthority: string | null;
298
+ documentPersonDocumentId: string | null;
299
+ };
300
+ };
301
+ outputFormat: "json";
302
+ status: import("hono/utils/http-status").ContentfulStatusCode;
303
+ };
304
+ };
305
+ } & {
306
+ "/people/:id/profile-pii": {
307
+ $patch: {
308
+ input: {
309
+ param: {
310
+ id: string;
311
+ };
312
+ };
313
+ output: {
314
+ error: string;
315
+ };
316
+ outputFormat: "json";
317
+ status: 503;
318
+ } | {
319
+ input: {
320
+ param: {
321
+ id: string;
322
+ };
323
+ };
324
+ output: {
325
+ error: string;
326
+ };
327
+ outputFormat: "json";
328
+ status: 400;
329
+ } | {
330
+ input: {
331
+ param: {
332
+ id: string;
333
+ };
334
+ };
335
+ output: {
336
+ error: string;
337
+ };
338
+ outputFormat: "json";
339
+ status: 404;
340
+ } | {
341
+ input: {
342
+ param: {
343
+ id: string;
344
+ };
345
+ };
346
+ output: {
347
+ success: true;
348
+ };
349
+ outputFormat: "json";
350
+ status: import("hono/utils/http-status").ContentfulStatusCode;
351
+ };
352
+ };
353
+ } & {
354
+ "/people/:id/documents/from-plaintext": {
355
+ $post: {
356
+ input: {
357
+ param: {
358
+ id: string;
359
+ };
360
+ };
361
+ output: {
362
+ error: string;
363
+ };
364
+ outputFormat: "json";
365
+ status: 503;
366
+ } | {
367
+ input: {
368
+ param: {
369
+ id: string;
370
+ };
371
+ };
372
+ output: {
373
+ error: string;
374
+ };
375
+ outputFormat: "json";
376
+ status: 404;
377
+ } | {
378
+ input: {
379
+ param: {
380
+ id: string;
381
+ };
382
+ };
383
+ output: {
384
+ data: {
385
+ id: string;
386
+ createdAt: string;
387
+ type: "other" | "visa" | "passport" | "id_card" | "driver_license";
388
+ updatedAt: string;
389
+ notes: string | null;
390
+ isPrimary: boolean;
391
+ metadata: {
392
+ [x: string]: import("hono/utils/types").JSONValue;
393
+ } | null;
394
+ personId: string;
395
+ numberEncrypted: {
396
+ enc: string;
397
+ } | null;
398
+ issuingAuthority: string | null;
399
+ issuingCountry: string | null;
400
+ issueDate: string | null;
401
+ expiryDate: string | null;
402
+ attachmentId: string | null;
403
+ };
404
+ };
405
+ outputFormat: "json";
406
+ status: 201;
407
+ };
408
+ };
409
+ } & {
410
+ "/person-documents/:id/from-plaintext": {
411
+ $patch: {
412
+ input: {
413
+ param: {
414
+ id: string;
415
+ };
416
+ };
417
+ output: {
418
+ error: string;
419
+ };
420
+ outputFormat: "json";
421
+ status: 503;
422
+ } | {
423
+ input: {
424
+ param: {
425
+ id: string;
426
+ };
427
+ };
428
+ output: {
429
+ error: string;
430
+ };
431
+ outputFormat: "json";
432
+ status: 404;
433
+ } | {
434
+ input: {
435
+ param: {
436
+ id: string;
437
+ };
438
+ };
439
+ output: {
440
+ data: {
441
+ id: string;
442
+ personId: string;
443
+ type: "other" | "visa" | "passport" | "id_card" | "driver_license";
444
+ numberEncrypted: {
445
+ enc: string;
446
+ } | null;
447
+ issuingAuthority: string | null;
448
+ issuingCountry: string | null;
449
+ issueDate: string | null;
450
+ expiryDate: string | null;
451
+ attachmentId: string | null;
452
+ isPrimary: boolean;
453
+ notes: string | null;
454
+ metadata: {
455
+ [x: string]: import("hono/utils/types").JSONValue;
456
+ } | null;
457
+ createdAt: string;
458
+ updatedAt: string;
459
+ };
460
+ };
461
+ outputFormat: "json";
462
+ status: import("hono/utils/http-status").ContentfulStatusCode;
463
+ };
464
+ };
465
+ } & {
466
+ "/person-documents/:id/reveal": {
467
+ $get: {
468
+ input: {
469
+ param: {
470
+ id: string;
471
+ };
472
+ };
473
+ output: {
474
+ error: string;
475
+ };
476
+ outputFormat: "json";
477
+ status: 503;
478
+ } | {
479
+ input: {
480
+ param: {
481
+ id: string;
482
+ };
483
+ };
484
+ output: {
485
+ error: string;
486
+ reason: import("@voyant-travel/action-ledger").ActionLedgerCapabilityAccessReason;
487
+ };
488
+ outputFormat: "json";
489
+ status: 403;
490
+ } | {
491
+ input: {
492
+ param: {
493
+ id: string;
494
+ };
495
+ };
496
+ output: {
497
+ error: string;
498
+ };
499
+ outputFormat: "json";
500
+ status: 404;
501
+ } | {
502
+ input: {
503
+ param: {
504
+ id: string;
505
+ };
506
+ };
507
+ output: {
508
+ data: {
509
+ documentId: string;
510
+ number: string | null;
511
+ };
512
+ };
513
+ outputFormat: "json";
514
+ status: import("hono/utils/http-status").ContentfulStatusCode;
515
+ };
516
+ };
517
+ }, "/", "/person-documents/:id/reveal">;
518
+ export {};
519
+ //# sourceMappingURL=person-documents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"person-documents.d.ts","sourceRoot":"","sources":["../../src/routes/person-documents.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAI1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAyBjE,KAAK,GAAG,GAAG;IACT,SAAS,EAAE;QACT,SAAS,CAAC,EAAE,eAAe,CAAA;QAC3B,EAAE,EAAE,kBAAkB,CAAA;QACtB,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,SAAS,CAAC,EAAE,MAAM,CAAA;QAClB,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;QAC9B,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,UAAU,CAAC,EAAE,MAAM,CAAA;QACnB,MAAM,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;QACxB,iBAAiB,CAAC,EAAE,OAAO,CAAA;QAC3B,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,UAAU,CAAC,EAAE,MAAM,CAAA;KACpB,CAAA;CACF,CAAA;AAqCD,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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