@voyantjs/crm 0.62.3 → 0.63.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.
Files changed (33) hide show
  1. package/dist/action-ledger-capabilities.d.ts +20 -0
  2. package/dist/action-ledger-capabilities.d.ts.map +1 -0
  3. package/dist/action-ledger-capabilities.js +16 -0
  4. package/dist/routes/accounts.d.ts +19 -19
  5. package/dist/routes/activities.d.ts +6 -6
  6. package/dist/routes/custom-fields.d.ts +7 -7
  7. package/dist/routes/customer-signals.d.ts +14 -14
  8. package/dist/routes/index.d.ts +112 -60
  9. package/dist/routes/index.d.ts.map +1 -1
  10. package/dist/routes/opportunities.d.ts +4 -4
  11. package/dist/routes/person-documents.d.ts +67 -7
  12. package/dist/routes/person-documents.d.ts.map +1 -1
  13. package/dist/routes/person-documents.js +80 -0
  14. package/dist/routes/person-relationships.d.ts +2 -2
  15. package/dist/routes/quotes.d.ts +2 -2
  16. package/dist/schema-activities.d.ts +4 -4
  17. package/dist/schema-signals.d.ts +2 -2
  18. package/dist/service/accounts-organizations.d.ts +3 -3
  19. package/dist/service/accounts-people.d.ts +10 -10
  20. package/dist/service/accounts.d.ts +13 -13
  21. package/dist/service/activities.d.ts +6 -6
  22. package/dist/service/custom-fields.d.ts +9 -9
  23. package/dist/service/customer-signals.d.ts +18 -18
  24. package/dist/service/index.d.ts +72 -65
  25. package/dist/service/index.d.ts.map +1 -1
  26. package/dist/service/opportunities.d.ts +4 -4
  27. package/dist/service/person-documents.d.ts +17 -4
  28. package/dist/service/person-documents.d.ts.map +1 -1
  29. package/dist/service/person-documents.js +16 -0
  30. package/dist/service/person-relationships.d.ts +3 -3
  31. package/dist/service/quotes.d.ts +2 -2
  32. package/dist/validation.d.ts +35 -35
  33. package/package.json +7 -6
@@ -5,9 +5,9 @@ export declare const crmService: {
5
5
  personId: string;
6
6
  productId: string | null;
7
7
  optionUnitId: string | null;
8
- kind: "wishlist" | "notify" | "inquiry" | "request_offer" | "referral";
8
+ kind: "notify" | "wishlist" | "inquiry" | "request_offer" | "referral";
9
9
  source: "admin" | "form" | "phone" | "abandoned_cart" | "website" | "booking";
10
- status: "new" | "contacted" | "qualified" | "converted" | "lost" | "expired";
10
+ status: "expired" | "new" | "contacted" | "qualified" | "converted" | "lost";
11
11
  priority: string;
12
12
  notes: string | null;
13
13
  tags: string[];
@@ -97,7 +97,7 @@ export declare const crmService: {
97
97
  tableName: "customer_signals";
98
98
  dataType: "string";
99
99
  columnType: "PgEnumColumn";
100
- data: "wishlist" | "notify" | "inquiry" | "request_offer" | "referral";
100
+ data: "notify" | "wishlist" | "inquiry" | "request_offer" | "referral";
101
101
  driverParam: string;
102
102
  notNull: true;
103
103
  hasDefault: false;
@@ -131,7 +131,7 @@ export declare const crmService: {
131
131
  tableName: "customer_signals";
132
132
  dataType: "string";
133
133
  columnType: "PgEnumColumn";
134
- data: "new" | "contacted" | "qualified" | "converted" | "lost" | "expired";
134
+ data: "expired" | "new" | "contacted" | "qualified" | "converted" | "lost";
135
135
  driverParam: string;
136
136
  notNull: true;
137
137
  hasDefault: true;
@@ -322,9 +322,9 @@ export declare const crmService: {
322
322
  personId: string;
323
323
  productId: string | null;
324
324
  optionUnitId: string | null;
325
- kind: "wishlist" | "notify" | "inquiry" | "request_offer" | "referral";
325
+ kind: "notify" | "wishlist" | "inquiry" | "request_offer" | "referral";
326
326
  source: "admin" | "form" | "phone" | "abandoned_cart" | "website" | "booking";
327
- status: "new" | "contacted" | "qualified" | "converted" | "lost" | "expired";
327
+ status: "expired" | "new" | "contacted" | "qualified" | "converted" | "lost";
328
328
  priority: string;
329
329
  notes: string | null;
330
330
  tags: string[];
@@ -409,7 +409,7 @@ export declare const crmService: {
409
409
  tableName: "customer_signals";
410
410
  dataType: "string";
411
411
  columnType: "PgEnumColumn";
412
- data: "wishlist" | "notify" | "inquiry" | "request_offer" | "referral";
412
+ data: "notify" | "wishlist" | "inquiry" | "request_offer" | "referral";
413
413
  driverParam: string;
414
414
  notNull: true;
415
415
  hasDefault: false;
@@ -443,7 +443,7 @@ export declare const crmService: {
443
443
  tableName: "customer_signals";
444
444
  dataType: "string";
445
445
  columnType: "PgEnumColumn";
446
- data: "new" | "contacted" | "qualified" | "converted" | "lost" | "expired";
446
+ data: "expired" | "new" | "contacted" | "qualified" | "converted" | "lost";
447
447
  driverParam: string;
448
448
  notNull: true;
449
449
  hasDefault: true;
@@ -635,9 +635,9 @@ export declare const crmService: {
635
635
  personId: string;
636
636
  productId: string | null;
637
637
  optionUnitId: string | null;
638
- kind: "wishlist" | "notify" | "inquiry" | "request_offer" | "referral";
638
+ kind: "notify" | "wishlist" | "inquiry" | "request_offer" | "referral";
639
639
  source: "admin" | "form" | "phone" | "abandoned_cart" | "website" | "booking";
640
- status: "new" | "contacted" | "qualified" | "converted" | "lost" | "expired";
640
+ status: "expired" | "new" | "contacted" | "qualified" | "converted" | "lost";
641
641
  priority: string;
642
642
  notes: string | null;
643
643
  tags: string[];
@@ -650,14 +650,14 @@ export declare const crmService: {
650
650
  updatedAt: Date;
651
651
  } | null>;
652
652
  createCustomerSignal(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, data: import("./customer-signals.js").CreateCustomerSignalInput): Promise<{
653
- source: "admin" | "form" | "phone" | "abandoned_cart" | "website" | "booking";
654
- metadata: Record<string, unknown> | null;
655
653
  id: string;
654
+ status: "expired" | "new" | "contacted" | "qualified" | "converted" | "lost";
656
655
  createdAt: Date;
656
+ source: "admin" | "form" | "phone" | "abandoned_cart" | "website" | "booking";
657
+ metadata: Record<string, unknown> | null;
657
658
  updatedAt: Date;
658
- status: "new" | "contacted" | "qualified" | "converted" | "lost" | "expired";
659
659
  notes: string | null;
660
- kind: "wishlist" | "notify" | "inquiry" | "request_offer" | "referral";
660
+ kind: "notify" | "wishlist" | "inquiry" | "request_offer" | "referral";
661
661
  tags: string[];
662
662
  personId: string;
663
663
  productId: string | null;
@@ -673,9 +673,9 @@ export declare const crmService: {
673
673
  personId: string;
674
674
  productId: string | null;
675
675
  optionUnitId: string | null;
676
- kind: "wishlist" | "notify" | "inquiry" | "request_offer" | "referral";
676
+ kind: "notify" | "wishlist" | "inquiry" | "request_offer" | "referral";
677
677
  source: "admin" | "form" | "phone" | "abandoned_cart" | "website" | "booking";
678
- status: "new" | "contacted" | "qualified" | "converted" | "lost" | "expired";
678
+ status: "expired" | "new" | "contacted" | "qualified" | "converted" | "lost";
679
679
  priority: string;
680
680
  notes: string | null;
681
681
  tags: string[];
@@ -695,9 +695,9 @@ export declare const crmService: {
695
695
  personId: string;
696
696
  productId: string | null;
697
697
  optionUnitId: string | null;
698
- kind: "wishlist" | "notify" | "inquiry" | "request_offer" | "referral";
698
+ kind: "notify" | "wishlist" | "inquiry" | "request_offer" | "referral";
699
699
  source: "admin" | "form" | "phone" | "abandoned_cart" | "website" | "booking";
700
- status: "new" | "contacted" | "qualified" | "converted" | "lost" | "expired";
700
+ status: "expired" | "new" | "contacted" | "qualified" | "converted" | "lost";
701
701
  priority: string;
702
702
  notes: string | null;
703
703
  tags: string[];
@@ -916,7 +916,7 @@ export declare const crmService: {
916
916
  identity: undefined;
917
917
  generated: undefined;
918
918
  }, {}, {}>;
919
- }, "single", Record<"person_relationships", "not-null">, false, "where" | "limit" | "orderBy" | "offset", {
919
+ }, "single", Record<"person_relationships", "not-null">, false, "where" | "orderBy" | "limit" | "offset", {
920
920
  id: string;
921
921
  fromPersonId: string;
922
922
  toPersonId: string;
@@ -1136,7 +1136,7 @@ export declare const crmService: {
1136
1136
  identity: undefined;
1137
1137
  generated: undefined;
1138
1138
  }, {}, {}>;
1139
- }>, "where" | "limit" | "orderBy" | "offset">;
1139
+ }>, "where" | "orderBy" | "limit" | "offset">;
1140
1140
  getPersonRelationship(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, id: string): Promise<{
1141
1141
  id: string;
1142
1142
  fromPersonId: string;
@@ -1152,9 +1152,9 @@ export declare const crmService: {
1152
1152
  updatedAt: Date;
1153
1153
  } | null>;
1154
1154
  createPersonRelationship(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, fromPersonId: string, data: import("./person-relationships.js").CreatePersonRelationshipInput): Promise<{
1155
- metadata: Record<string, unknown> | null;
1156
1155
  id: string;
1157
1156
  createdAt: Date;
1157
+ metadata: Record<string, unknown> | null;
1158
1158
  updatedAt: Date;
1159
1159
  startDate: string | null;
1160
1160
  endDate: string | null;
@@ -1429,7 +1429,7 @@ export declare const crmService: {
1429
1429
  identity: undefined;
1430
1430
  generated: undefined;
1431
1431
  }, {}, {}>;
1432
- }, "single", Record<"person_documents", "not-null">, false, "where" | "limit" | "orderBy" | "offset", {
1432
+ }, "single", Record<"person_documents", "not-null">, false, "where" | "orderBy" | "limit" | "offset", {
1433
1433
  id: string;
1434
1434
  personId: string;
1435
1435
  type: "passport" | "visa" | "other" | "id_card" | "driver_license";
@@ -1693,7 +1693,7 @@ export declare const crmService: {
1693
1693
  identity: undefined;
1694
1694
  generated: undefined;
1695
1695
  }, {}, {}>;
1696
- }>, "where" | "limit" | "orderBy" | "offset">;
1696
+ }>, "where" | "orderBy" | "limit" | "offset">;
1697
1697
  getPersonDocument(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, documentId: string): Promise<{
1698
1698
  id: string;
1699
1699
  personId: string;
@@ -1712,6 +1712,13 @@ export declare const crmService: {
1712
1712
  createdAt: Date;
1713
1713
  updatedAt: Date;
1714
1714
  } | null>;
1715
+ revealPersonDocumentNumber(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, documentId: string, options: {
1716
+ kms: import("@voyantjs/utils").KmsProvider;
1717
+ keyRef?: import("@voyantjs/utils").KeyRef;
1718
+ }): Promise<{
1719
+ documentId: string;
1720
+ number: string | null;
1721
+ } | null>;
1715
1722
  getPrimaryPersonDocument(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, personId: string, type: import("./person-documents.js").PersonDocumentType): Promise<{
1716
1723
  id: string;
1717
1724
  personId: string;
@@ -1731,11 +1738,11 @@ export declare const crmService: {
1731
1738
  updatedAt: Date;
1732
1739
  } | null>;
1733
1740
  createPersonDocument(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, personId: string, data: import("./person-documents.js").CreatePersonDocumentInput): Promise<{
1734
- metadata: Record<string, unknown> | null;
1741
+ type: "passport" | "visa" | "other" | "id_card" | "driver_license";
1735
1742
  id: string;
1736
1743
  createdAt: Date;
1744
+ metadata: Record<string, unknown> | null;
1737
1745
  updatedAt: Date;
1738
- type: "passport" | "visa" | "other" | "id_card" | "driver_license";
1739
1746
  issuingAuthority: string | null;
1740
1747
  issuingCountry: string | null;
1741
1748
  expiryDate: string | null;
@@ -2313,7 +2320,7 @@ export declare const crmService: {
2313
2320
  entityType: "organization" | "person" | "opportunity" | "quote" | "activity";
2314
2321
  key: string;
2315
2322
  label: string;
2316
- fieldType: "boolean" | "json" | "text" | "date" | "set" | "enum" | "phone" | "varchar" | "double" | "monetary" | "address";
2323
+ fieldType: "boolean" | "json" | "date" | "text" | "set" | "enum" | "phone" | "varchar" | "double" | "monetary" | "address";
2317
2324
  isRequired: boolean;
2318
2325
  isSearchable: boolean;
2319
2326
  options: {
@@ -2332,7 +2339,7 @@ export declare const crmService: {
2332
2339
  entityType: "organization" | "person" | "opportunity" | "quote" | "activity";
2333
2340
  key: string;
2334
2341
  label: string;
2335
- fieldType: "boolean" | "json" | "text" | "date" | "set" | "enum" | "phone" | "varchar" | "double" | "monetary" | "address";
2342
+ fieldType: "boolean" | "json" | "date" | "text" | "set" | "enum" | "phone" | "varchar" | "double" | "monetary" | "address";
2336
2343
  isRequired: boolean;
2337
2344
  isSearchable: boolean;
2338
2345
  options: {
@@ -2346,7 +2353,7 @@ export declare const crmService: {
2346
2353
  entityType: "organization" | "person" | "opportunity" | "quote" | "activity";
2347
2354
  key: string;
2348
2355
  label: string;
2349
- fieldType: "boolean" | "json" | "text" | "date" | "set" | "enum" | "phone" | "varchar" | "double" | "monetary" | "address";
2356
+ fieldType: "boolean" | "json" | "date" | "text" | "set" | "enum" | "phone" | "varchar" | "double" | "monetary" | "address";
2350
2357
  isRequired: boolean;
2351
2358
  isSearchable: boolean;
2352
2359
  options?: {
@@ -2354,17 +2361,17 @@ export declare const crmService: {
2354
2361
  value: string;
2355
2362
  }[] | null | undefined;
2356
2363
  }): Promise<{
2357
- key: string;
2358
2364
  id: string;
2359
- createdAt: Date;
2360
- updatedAt: Date;
2361
2365
  options: {
2362
2366
  label: string;
2363
2367
  value: string;
2364
2368
  }[] | null;
2369
+ createdAt: Date;
2370
+ key: string;
2371
+ updatedAt: Date;
2365
2372
  entityType: "organization" | "person" | "opportunity" | "quote" | "activity";
2366
2373
  label: string;
2367
- fieldType: "boolean" | "json" | "text" | "date" | "set" | "enum" | "phone" | "varchar" | "double" | "monetary" | "address";
2374
+ fieldType: "boolean" | "json" | "date" | "text" | "set" | "enum" | "phone" | "varchar" | "double" | "monetary" | "address";
2368
2375
  isRequired: boolean;
2369
2376
  isSearchable: boolean;
2370
2377
  } | undefined>;
@@ -2372,7 +2379,7 @@ export declare const crmService: {
2372
2379
  entityType?: "organization" | "person" | "opportunity" | "quote" | "activity" | undefined;
2373
2380
  key?: string | undefined;
2374
2381
  label?: string | undefined;
2375
- fieldType?: "boolean" | "json" | "text" | "date" | "set" | "enum" | "phone" | "varchar" | "double" | "monetary" | "address" | undefined;
2382
+ fieldType?: "boolean" | "json" | "date" | "text" | "set" | "enum" | "phone" | "varchar" | "double" | "monetary" | "address" | undefined;
2376
2383
  isRequired?: boolean | undefined;
2377
2384
  isSearchable?: boolean | undefined;
2378
2385
  options?: {
@@ -2384,7 +2391,7 @@ export declare const crmService: {
2384
2391
  entityType: "organization" | "person" | "opportunity" | "quote" | "activity";
2385
2392
  key: string;
2386
2393
  label: string;
2387
- fieldType: "boolean" | "json" | "text" | "date" | "set" | "enum" | "phone" | "varchar" | "double" | "monetary" | "address";
2394
+ fieldType: "boolean" | "json" | "date" | "text" | "set" | "enum" | "phone" | "varchar" | "double" | "monetary" | "address";
2388
2395
  isRequired: boolean;
2389
2396
  isSearchable: boolean;
2390
2397
  options: {
@@ -2415,7 +2422,7 @@ export declare const crmService: {
2415
2422
  booleanValue: boolean | null;
2416
2423
  monetaryValueCents: number | null;
2417
2424
  currencyCode: string | null;
2418
- jsonValue: Record<string, unknown> | string[] | null;
2425
+ jsonValue: string[] | Record<string, unknown> | null;
2419
2426
  createdAt: Date;
2420
2427
  updatedAt: Date;
2421
2428
  }[];
@@ -2432,7 +2439,7 @@ export declare const crmService: {
2432
2439
  booleanValue?: boolean | null | undefined;
2433
2440
  monetaryValueCents?: number | null | undefined;
2434
2441
  currencyCode?: string | null | undefined;
2435
- jsonValue?: Record<string, unknown> | string[] | null | undefined;
2442
+ jsonValue?: string[] | Record<string, unknown> | null | undefined;
2436
2443
  }): Promise<{
2437
2444
  id: string;
2438
2445
  createdAt: Date;
@@ -2446,7 +2453,7 @@ export declare const crmService: {
2446
2453
  booleanValue: boolean | null;
2447
2454
  monetaryValueCents: number | null;
2448
2455
  currencyCode: string | null;
2449
- jsonValue: Record<string, unknown> | string[] | null;
2456
+ jsonValue: string[] | Record<string, unknown> | null;
2450
2457
  } | undefined>;
2451
2458
  deleteCustomFieldValue(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, id: string): Promise<{
2452
2459
  id: string;
@@ -2455,7 +2462,7 @@ export declare const crmService: {
2455
2462
  limit: number;
2456
2463
  offset: number;
2457
2464
  ownerId?: string | undefined;
2458
- status?: "done" | "cancelled" | "planned" | undefined;
2465
+ status?: "cancelled" | "done" | "planned" | undefined;
2459
2466
  type?: "email" | "meeting" | "call" | "task" | "follow_up" | "note" | undefined;
2460
2467
  entityType?: "organization" | "person" | "opportunity" | "quote" | "activity" | undefined;
2461
2468
  entityId?: string | undefined;
@@ -2466,7 +2473,7 @@ export declare const crmService: {
2466
2473
  subject: string;
2467
2474
  type: "email" | "meeting" | "call" | "task" | "follow_up" | "note";
2468
2475
  ownerId: string | null;
2469
- status: "done" | "cancelled" | "planned";
2476
+ status: "cancelled" | "done" | "planned";
2470
2477
  dueAt: Date | null;
2471
2478
  completedAt: Date | null;
2472
2479
  location: string | null;
@@ -2483,7 +2490,7 @@ export declare const crmService: {
2483
2490
  subject: string;
2484
2491
  type: "email" | "meeting" | "call" | "task" | "follow_up" | "note";
2485
2492
  ownerId: string | null;
2486
- status: "done" | "cancelled" | "planned";
2493
+ status: "cancelled" | "done" | "planned";
2487
2494
  dueAt: Date | null;
2488
2495
  completedAt: Date | null;
2489
2496
  location: string | null;
@@ -2494,19 +2501,19 @@ export declare const crmService: {
2494
2501
  createActivity(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, data: {
2495
2502
  subject: string;
2496
2503
  type: "email" | "meeting" | "call" | "task" | "follow_up" | "note";
2497
- status: "done" | "cancelled" | "planned";
2504
+ status: "cancelled" | "done" | "planned";
2498
2505
  ownerId?: string | null | undefined;
2499
2506
  dueAt?: string | null | undefined;
2500
2507
  completedAt?: string | null | undefined;
2501
2508
  location?: string | null | undefined;
2502
2509
  description?: string | null | undefined;
2503
2510
  }): Promise<{
2511
+ type: "email" | "meeting" | "call" | "task" | "follow_up" | "note";
2504
2512
  id: string;
2513
+ description: string | null;
2514
+ status: "cancelled" | "done" | "planned";
2505
2515
  createdAt: Date;
2506
2516
  updatedAt: Date;
2507
- status: "done" | "cancelled" | "planned";
2508
- type: "email" | "meeting" | "call" | "task" | "follow_up" | "note";
2509
- description: string | null;
2510
2517
  ownerId: string | null;
2511
2518
  subject: string;
2512
2519
  dueAt: Date | null;
@@ -2517,7 +2524,7 @@ export declare const crmService: {
2517
2524
  subject?: string | undefined;
2518
2525
  type?: "email" | "meeting" | "call" | "task" | "follow_up" | "note" | undefined;
2519
2526
  ownerId?: string | null | undefined;
2520
- status?: "done" | "cancelled" | "planned" | undefined;
2527
+ status?: "cancelled" | "done" | "planned" | undefined;
2521
2528
  dueAt?: string | null | undefined;
2522
2529
  completedAt?: string | null | undefined;
2523
2530
  location?: string | null | undefined;
@@ -2527,7 +2534,7 @@ export declare const crmService: {
2527
2534
  subject: string;
2528
2535
  type: "email" | "meeting" | "call" | "task" | "follow_up" | "note";
2529
2536
  ownerId: string | null;
2530
- status: "done" | "cancelled" | "planned";
2537
+ status: "cancelled" | "done" | "planned";
2531
2538
  dueAt: Date | null;
2532
2539
  completedAt: Date | null;
2533
2540
  location: string | null;
@@ -3008,9 +3015,9 @@ export declare const crmService: {
3008
3015
  notes?: string | null | undefined;
3009
3016
  }): Promise<{
3010
3017
  id: string;
3018
+ status: "expired" | "archived" | "draft" | "sent" | "accepted" | "rejected";
3011
3019
  createdAt: Date;
3012
3020
  updatedAt: Date;
3013
- status: "expired" | "archived" | "draft" | "sent" | "accepted" | "rejected";
3014
3021
  currency: string;
3015
3022
  notes: string | null;
3016
3023
  opportunityId: string;
@@ -3445,10 +3452,10 @@ export declare const crmService: {
3445
3452
  supplierServiceId?: string | null | undefined;
3446
3453
  }): Promise<{
3447
3454
  id: string;
3455
+ description: string;
3448
3456
  createdAt: Date;
3449
3457
  updatedAt: Date;
3450
3458
  currency: string;
3451
- description: string;
3452
3459
  quoteId: string;
3453
3460
  productId: string | null;
3454
3461
  supplierServiceId: string | null;
@@ -3553,12 +3560,12 @@ export declare const crmService: {
3553
3560
  sourceRef?: string | null | undefined;
3554
3561
  lostReason?: string | null | undefined;
3555
3562
  }): Promise<{
3556
- source: string | null;
3557
3563
  id: string;
3564
+ status: "lost" | "archived" | "open" | "won";
3565
+ organizationId: string | null;
3558
3566
  createdAt: Date;
3567
+ source: string | null;
3559
3568
  updatedAt: Date;
3560
- organizationId: string | null;
3561
- status: "lost" | "archived" | "open" | "won";
3562
3569
  title: string;
3563
3570
  ownerId: string | null;
3564
3571
  sourceRef: string | null;
@@ -4312,10 +4319,10 @@ export declare const crmService: {
4312
4319
  discountAmountCents?: number | null | undefined;
4313
4320
  }): Promise<{
4314
4321
  id: string;
4322
+ description: string | null;
4315
4323
  createdAt: Date;
4316
4324
  updatedAt: Date;
4317
4325
  currency: string | null;
4318
- description: string | null;
4319
4326
  opportunityId: string;
4320
4327
  productId: string | null;
4321
4328
  supplierServiceId: string | null;
@@ -4648,10 +4655,10 @@ export declare const crmService: {
4648
4655
  updatedAt: Date;
4649
4656
  }[]>;
4650
4657
  createContactMethod(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, entityType: "organization" | "person", entityId: string, data: import("./accounts-shared.js").CreateContactPointInput): Promise<{
4651
- value: string;
4652
- metadata: Record<string, unknown> | null;
4653
4658
  id: string;
4654
4659
  createdAt: Date;
4660
+ value: string;
4661
+ metadata: Record<string, unknown> | null;
4655
4662
  updatedAt: Date;
4656
4663
  notes: string | null;
4657
4664
  kind: "email" | "other" | "phone" | "website" | "mobile" | "whatsapp" | "sms" | "fax" | "social";
@@ -4682,7 +4689,7 @@ export declare const crmService: {
4682
4689
  id: string;
4683
4690
  entityType: string;
4684
4691
  entityId: string;
4685
- label: "service" | "primary" | "other" | "legal" | "billing" | "shipping" | "mailing" | "meeting";
4692
+ label: "primary" | "service" | "other" | "legal" | "billing" | "shipping" | "mailing" | "meeting";
4686
4693
  fullText: string | null;
4687
4694
  line1: string | null;
4688
4695
  line2: string | null;
@@ -4700,16 +4707,16 @@ export declare const crmService: {
4700
4707
  updatedAt: Date;
4701
4708
  }[]>;
4702
4709
  createAddress(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, entityType: "organization" | "person", entityId: string, data: import("./accounts-shared.js").CreateAddressInput): Promise<{
4703
- metadata: Record<string, unknown> | null;
4704
4710
  id: string;
4705
4711
  createdAt: Date;
4712
+ metadata: Record<string, unknown> | null;
4706
4713
  updatedAt: Date;
4707
4714
  notes: string | null;
4708
4715
  timezone: string | null;
4709
4716
  region: string | null;
4710
4717
  entityType: string;
4711
4718
  entityId: string;
4712
- label: "service" | "primary" | "other" | "legal" | "billing" | "shipping" | "mailing" | "meeting";
4719
+ label: "primary" | "service" | "other" | "legal" | "billing" | "shipping" | "mailing" | "meeting";
4713
4720
  isPrimary: boolean;
4714
4721
  fullText: string | null;
4715
4722
  line1: string | null;
@@ -4724,7 +4731,7 @@ export declare const crmService: {
4724
4731
  id: string;
4725
4732
  entityType: string;
4726
4733
  entityId: string;
4727
- label: "service" | "primary" | "other" | "legal" | "billing" | "shipping" | "mailing" | "meeting";
4734
+ label: "primary" | "service" | "other" | "legal" | "billing" | "shipping" | "mailing" | "meeting";
4728
4735
  fullText: string | null;
4729
4736
  line1: string | null;
4730
4737
  line2: string | null;
@@ -5111,8 +5118,8 @@ export declare const crmService: {
5111
5118
  }>, "where" | "orderBy">;
5112
5119
  createOrganizationNote(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, organizationId: string, userId: string, data: import("./accounts-shared.js").CreateOrganizationNoteInput): Promise<{
5113
5120
  id: string;
5114
- createdAt: Date;
5115
5121
  organizationId: string;
5122
+ createdAt: Date;
5116
5123
  authorId: string;
5117
5124
  content: string;
5118
5125
  } | null | undefined>;
@@ -5529,8 +5536,8 @@ export declare const crmService: {
5529
5536
  } | null>;
5530
5537
  deleteOrganizationNote(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, id: string): Promise<{
5531
5538
  id: string;
5532
- createdAt: Date;
5533
5539
  organizationId: string;
5540
+ createdAt: Date;
5534
5541
  authorId: string;
5535
5542
  content: string;
5536
5543
  } | null>;
@@ -5547,8 +5554,8 @@ export declare const crmService: {
5547
5554
  }[]>;
5548
5555
  createCommunication(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, personId: string, data: import("./accounts-shared.js").CreateCommunicationLogInput): Promise<{
5549
5556
  id: string;
5550
- createdAt: Date;
5551
5557
  organizationId: string | null;
5558
+ createdAt: Date;
5552
5559
  personId: string;
5553
5560
  content: string | null;
5554
5561
  channel: "email" | "other" | "phone" | "whatsapp" | "sms" | "meeting";
@@ -5777,9 +5784,9 @@ export declare const crmService: {
5777
5784
  createSegment(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, data: import("./accounts-shared.js").CreateSegmentInput): Promise<{
5778
5785
  name: string;
5779
5786
  id: string;
5787
+ description: string | null;
5780
5788
  createdAt: Date;
5781
5789
  updatedAt: Date;
5782
- description: string | null;
5783
5790
  conditions: Record<string, unknown> | null;
5784
5791
  } | undefined>;
5785
5792
  deleteSegment(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, segmentId: string): Promise<{
@@ -5846,13 +5853,13 @@ export declare const crmService: {
5846
5853
  archivedAt: Date | null;
5847
5854
  } | null>;
5848
5855
  createOrganization(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, data: import("./accounts-shared.js").CreateOrganizationInput): Promise<{
5849
- source: string | null;
5850
- relation: "partner" | "supplier" | "other" | "client" | null;
5851
5856
  name: string;
5852
5857
  id: string;
5858
+ status: "active" | "inactive" | "archived";
5853
5859
  createdAt: Date;
5860
+ source: string | null;
5861
+ relation: "partner" | "supplier" | "other" | "client" | null;
5854
5862
  updatedAt: Date;
5855
- status: "active" | "inactive" | "archived";
5856
5863
  notes: string | null;
5857
5864
  website: string | null;
5858
5865
  legalName: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/service/index.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAM,2BAA2B,CAAA"}
@@ -56,12 +56,12 @@ export declare const opportunitiesService: {
56
56
  closedAt: Date | null;
57
57
  } | null>;
58
58
  createOpportunity(db: PostgresJsDatabase, data: CreateOpportunityInput): Promise<{
59
- source: string | null;
60
59
  id: string;
60
+ status: "lost" | "archived" | "open" | "won";
61
+ organizationId: string | null;
61
62
  createdAt: Date;
63
+ source: string | null;
62
64
  updatedAt: Date;
63
- organizationId: string | null;
64
- status: "lost" | "archived" | "open" | "won";
65
65
  title: string;
66
66
  ownerId: string | null;
67
67
  sourceRef: string | null;
@@ -786,10 +786,10 @@ export declare const opportunitiesService: {
786
786
  }>, "where" | "orderBy">;
787
787
  createOpportunityProduct(db: PostgresJsDatabase, opportunityId: string, data: CreateOpportunityProductInput): Promise<{
788
788
  id: string;
789
+ description: string | null;
789
790
  createdAt: Date;
790
791
  updatedAt: Date;
791
792
  currency: string | null;
792
- description: string | null;
793
793
  opportunityId: string;
794
794
  productId: string | null;
795
795
  supplierServiceId: string | null;
@@ -286,7 +286,7 @@ export declare const personDocumentsService: {
286
286
  identity: undefined;
287
287
  generated: undefined;
288
288
  }, {}, {}>;
289
- }, "single", Record<"person_documents", "not-null">, false, "where" | "limit" | "orderBy" | "offset", {
289
+ }, "single", Record<"person_documents", "not-null">, false, "where" | "orderBy" | "limit" | "offset", {
290
290
  id: string;
291
291
  personId: string;
292
292
  type: "passport" | "visa" | "other" | "id_card" | "driver_license";
@@ -550,7 +550,7 @@ export declare const personDocumentsService: {
550
550
  identity: undefined;
551
551
  generated: undefined;
552
552
  }, {}, {}>;
553
- }>, "where" | "limit" | "orderBy" | "offset">;
553
+ }>, "where" | "orderBy" | "limit" | "offset">;
554
554
  getPersonDocument(db: PostgresJsDatabase, documentId: string): Promise<{
555
555
  id: string;
556
556
  personId: string;
@@ -569,6 +569,19 @@ export declare const personDocumentsService: {
569
569
  createdAt: Date;
570
570
  updatedAt: Date;
571
571
  } | null>;
572
+ /**
573
+ * Decrypts the `numberEncrypted` slot for a single document and
574
+ * returns the plaintext. Returns `null` when the document has no
575
+ * encrypted number on file. Caller is responsible for authorization
576
+ * and audit-logging; this is just the KMS unwrap.
577
+ */
578
+ revealPersonDocumentNumber(db: PostgresJsDatabase, documentId: string, options: {
579
+ kms: KmsProvider;
580
+ keyRef?: KeyRef;
581
+ }): Promise<{
582
+ documentId: string;
583
+ number: string | null;
584
+ } | null>;
572
585
  /**
573
586
  * Returns the primary document of a given type for a person, or
574
587
  * `null` if no primary is set. Used by booking-traveler create to
@@ -593,11 +606,11 @@ export declare const personDocumentsService: {
593
606
  updatedAt: Date;
594
607
  } | null>;
595
608
  createPersonDocument(db: PostgresJsDatabase, personId: string, data: CreatePersonDocumentInput): Promise<{
596
- metadata: Record<string, unknown> | null;
609
+ type: "passport" | "visa" | "other" | "id_card" | "driver_license";
597
610
  id: string;
598
611
  createdAt: Date;
612
+ metadata: Record<string, unknown> | null;
599
613
  updatedAt: Date;
600
- type: "passport" | "visa" | "other" | "id_card" | "driver_license";
601
614
  issuingAuthority: string | null;
602
615
  issuingCountry: string | null;
603
616
  expiryDate: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"person-documents.d.ts","sourceRoot":"","sources":["../../src/service/person-documents.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAG1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AACjE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAGvB,OAAO,KAAK,EACV,0BAA0B,EAC1B,6BAA6B,EAC7B,0BAA0B,EAC3B,MAAM,kBAAkB,CAAA;AAEzB;;;;;;;;;GASG;AACH,eAAO,MAAM,4BAA4B;;iBAAiC,CAAA;AAE1E;;;;GAIG;AACH,eAAO,MAAM,mCAAmC;;iBAAmC,CAAA;AAEnF,kEAAkE;AAClE,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE,MAAM,GAAG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