@voyantjs/crm 0.28.1 → 0.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -766,7 +766,7 @@ export declare const crmService: {
766
766
  tableName: "person_relationships";
767
767
  dataType: "string";
768
768
  columnType: "PgEnumColumn";
769
- data: "partner" | "other" | "spouse" | "parent" | "child" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
769
+ data: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
770
770
  driverParam: string;
771
771
  notNull: true;
772
772
  hasDefault: false;
@@ -783,7 +783,7 @@ export declare const crmService: {
783
783
  tableName: "person_relationships";
784
784
  dataType: "string";
785
785
  columnType: "PgEnumColumn";
786
- data: "partner" | "other" | "spouse" | "parent" | "child" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
786
+ data: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
787
787
  driverParam: string;
788
788
  notNull: false;
789
789
  hasDefault: false;
@@ -920,8 +920,8 @@ export declare const crmService: {
920
920
  id: string;
921
921
  fromPersonId: string;
922
922
  toPersonId: string;
923
- kind: "partner" | "other" | "spouse" | "parent" | "child" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
924
- inverseKind: "partner" | "other" | "spouse" | "parent" | "child" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion" | null;
923
+ kind: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
924
+ inverseKind: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion" | null;
925
925
  startDate: string | null;
926
926
  endDate: string | null;
927
927
  isPrimary: boolean;
@@ -986,7 +986,7 @@ export declare const crmService: {
986
986
  tableName: "person_relationships";
987
987
  dataType: "string";
988
988
  columnType: "PgEnumColumn";
989
- data: "partner" | "other" | "spouse" | "parent" | "child" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
989
+ data: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
990
990
  driverParam: string;
991
991
  notNull: true;
992
992
  hasDefault: false;
@@ -1003,7 +1003,7 @@ export declare const crmService: {
1003
1003
  tableName: "person_relationships";
1004
1004
  dataType: "string";
1005
1005
  columnType: "PgEnumColumn";
1006
- data: "partner" | "other" | "spouse" | "parent" | "child" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
1006
+ data: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
1007
1007
  driverParam: string;
1008
1008
  notNull: false;
1009
1009
  hasDefault: false;
@@ -1141,8 +1141,8 @@ export declare const crmService: {
1141
1141
  id: string;
1142
1142
  fromPersonId: string;
1143
1143
  toPersonId: string;
1144
- kind: "partner" | "other" | "spouse" | "parent" | "child" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
1145
- inverseKind: "partner" | "other" | "spouse" | "parent" | "child" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion" | null;
1144
+ kind: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
1145
+ inverseKind: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion" | null;
1146
1146
  startDate: string | null;
1147
1147
  endDate: string | null;
1148
1148
  isPrimary: boolean;
@@ -1159,18 +1159,18 @@ export declare const crmService: {
1159
1159
  startDate: string | null;
1160
1160
  endDate: string | null;
1161
1161
  notes: string | null;
1162
- kind: "partner" | "other" | "spouse" | "parent" | "child" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
1162
+ kind: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
1163
1163
  isPrimary: boolean;
1164
1164
  fromPersonId: string;
1165
1165
  toPersonId: string;
1166
- inverseKind: "partner" | "other" | "spouse" | "parent" | "child" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion" | null;
1166
+ inverseKind: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion" | null;
1167
1167
  } | null>;
1168
1168
  updatePersonRelationship(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, id: string, data: import("./person-relationships.js").UpdatePersonRelationshipInput): Promise<{
1169
1169
  id: string;
1170
1170
  fromPersonId: string;
1171
1171
  toPersonId: string;
1172
- kind: "partner" | "other" | "spouse" | "parent" | "child" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
1173
- inverseKind: "partner" | "other" | "spouse" | "parent" | "child" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion" | null;
1172
+ kind: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
1173
+ inverseKind: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion" | null;
1174
1174
  startDate: string | null;
1175
1175
  endDate: string | null;
1176
1176
  isPrimary: boolean;
@@ -2313,7 +2313,7 @@ export declare const crmService: {
2313
2313
  entityType: "organization" | "person" | "opportunity" | "quote" | "activity";
2314
2314
  key: string;
2315
2315
  label: string;
2316
- fieldType: "boolean" | "json" | "date" | "set" | "enum" | "text" | "phone" | "varchar" | "double" | "monetary" | "address";
2316
+ fieldType: "boolean" | "json" | "text" | "date" | "set" | "enum" | "phone" | "varchar" | "double" | "monetary" | "address";
2317
2317
  isRequired: boolean;
2318
2318
  isSearchable: boolean;
2319
2319
  options: {
@@ -2332,7 +2332,7 @@ export declare const crmService: {
2332
2332
  entityType: "organization" | "person" | "opportunity" | "quote" | "activity";
2333
2333
  key: string;
2334
2334
  label: string;
2335
- fieldType: "boolean" | "json" | "date" | "set" | "enum" | "text" | "phone" | "varchar" | "double" | "monetary" | "address";
2335
+ fieldType: "boolean" | "json" | "text" | "date" | "set" | "enum" | "phone" | "varchar" | "double" | "monetary" | "address";
2336
2336
  isRequired: boolean;
2337
2337
  isSearchable: boolean;
2338
2338
  options: {
@@ -2346,7 +2346,7 @@ export declare const crmService: {
2346
2346
  entityType: "organization" | "person" | "opportunity" | "quote" | "activity";
2347
2347
  key: string;
2348
2348
  label: string;
2349
- fieldType: "boolean" | "json" | "date" | "set" | "enum" | "text" | "phone" | "varchar" | "double" | "monetary" | "address";
2349
+ fieldType: "boolean" | "json" | "text" | "date" | "set" | "enum" | "phone" | "varchar" | "double" | "monetary" | "address";
2350
2350
  isRequired: boolean;
2351
2351
  isSearchable: boolean;
2352
2352
  options?: {
@@ -2364,7 +2364,7 @@ export declare const crmService: {
2364
2364
  }[] | null;
2365
2365
  entityType: "organization" | "person" | "opportunity" | "quote" | "activity";
2366
2366
  label: string;
2367
- fieldType: "boolean" | "json" | "date" | "set" | "enum" | "text" | "phone" | "varchar" | "double" | "monetary" | "address";
2367
+ fieldType: "boolean" | "json" | "text" | "date" | "set" | "enum" | "phone" | "varchar" | "double" | "monetary" | "address";
2368
2368
  isRequired: boolean;
2369
2369
  isSearchable: boolean;
2370
2370
  } | undefined>;
@@ -2372,7 +2372,7 @@ export declare const crmService: {
2372
2372
  entityType?: "organization" | "person" | "opportunity" | "quote" | "activity" | undefined;
2373
2373
  key?: string | undefined;
2374
2374
  label?: string | undefined;
2375
- fieldType?: "boolean" | "json" | "date" | "set" | "enum" | "text" | "phone" | "varchar" | "double" | "monetary" | "address" | undefined;
2375
+ fieldType?: "boolean" | "json" | "text" | "date" | "set" | "enum" | "phone" | "varchar" | "double" | "monetary" | "address" | undefined;
2376
2376
  isRequired?: boolean | undefined;
2377
2377
  isSearchable?: boolean | undefined;
2378
2378
  options?: {
@@ -2384,7 +2384,7 @@ export declare const crmService: {
2384
2384
  entityType: "organization" | "person" | "opportunity" | "quote" | "activity";
2385
2385
  key: string;
2386
2386
  label: string;
2387
- fieldType: "boolean" | "json" | "date" | "set" | "enum" | "text" | "phone" | "varchar" | "double" | "monetary" | "address";
2387
+ fieldType: "boolean" | "json" | "text" | "date" | "set" | "enum" | "phone" | "varchar" | "double" | "monetary" | "address";
2388
2388
  isRequired: boolean;
2389
2389
  isSearchable: boolean;
2390
2390
  options: {
@@ -2455,7 +2455,7 @@ export declare const crmService: {
2455
2455
  limit: number;
2456
2456
  offset: number;
2457
2457
  ownerId?: string | undefined;
2458
- status?: "done" | "planned" | "cancelled" | undefined;
2458
+ status?: "done" | "cancelled" | "planned" | undefined;
2459
2459
  type?: "email" | "meeting" | "call" | "task" | "follow_up" | "note" | undefined;
2460
2460
  entityType?: "organization" | "person" | "opportunity" | "quote" | "activity" | undefined;
2461
2461
  entityId?: string | undefined;
@@ -2466,7 +2466,7 @@ export declare const crmService: {
2466
2466
  subject: string;
2467
2467
  type: "email" | "meeting" | "call" | "task" | "follow_up" | "note";
2468
2468
  ownerId: string | null;
2469
- status: "done" | "planned" | "cancelled";
2469
+ status: "done" | "cancelled" | "planned";
2470
2470
  dueAt: Date | null;
2471
2471
  completedAt: Date | null;
2472
2472
  location: string | null;
@@ -2483,7 +2483,7 @@ export declare const crmService: {
2483
2483
  subject: string;
2484
2484
  type: "email" | "meeting" | "call" | "task" | "follow_up" | "note";
2485
2485
  ownerId: string | null;
2486
- status: "done" | "planned" | "cancelled";
2486
+ status: "done" | "cancelled" | "planned";
2487
2487
  dueAt: Date | null;
2488
2488
  completedAt: Date | null;
2489
2489
  location: string | null;
@@ -2494,7 +2494,7 @@ export declare const crmService: {
2494
2494
  createActivity(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, data: {
2495
2495
  subject: string;
2496
2496
  type: "email" | "meeting" | "call" | "task" | "follow_up" | "note";
2497
- status: "done" | "planned" | "cancelled";
2497
+ status: "done" | "cancelled" | "planned";
2498
2498
  ownerId?: string | null | undefined;
2499
2499
  dueAt?: string | null | undefined;
2500
2500
  completedAt?: string | null | undefined;
@@ -2504,7 +2504,7 @@ export declare const crmService: {
2504
2504
  id: string;
2505
2505
  createdAt: Date;
2506
2506
  updatedAt: Date;
2507
- status: "done" | "planned" | "cancelled";
2507
+ status: "done" | "cancelled" | "planned";
2508
2508
  type: "email" | "meeting" | "call" | "task" | "follow_up" | "note";
2509
2509
  description: string | null;
2510
2510
  ownerId: string | null;
@@ -2517,7 +2517,7 @@ export declare const crmService: {
2517
2517
  subject?: string | undefined;
2518
2518
  type?: "email" | "meeting" | "call" | "task" | "follow_up" | "note" | undefined;
2519
2519
  ownerId?: string | null | undefined;
2520
- status?: "done" | "planned" | "cancelled" | undefined;
2520
+ status?: "done" | "cancelled" | "planned" | undefined;
2521
2521
  dueAt?: string | null | undefined;
2522
2522
  completedAt?: string | null | undefined;
2523
2523
  location?: string | null | undefined;
@@ -2527,7 +2527,7 @@ export declare const crmService: {
2527
2527
  subject: string;
2528
2528
  type: "email" | "meeting" | "call" | "task" | "follow_up" | "note";
2529
2529
  ownerId: string | null;
2530
- status: "done" | "planned" | "cancelled";
2530
+ status: "done" | "cancelled" | "planned";
2531
2531
  dueAt: Date | null;
2532
2532
  completedAt: Date | null;
2533
2533
  location: string | null;
@@ -4386,8 +4386,8 @@ export declare const crmService: {
4386
4386
  isDefault: boolean;
4387
4387
  sortOrder: number;
4388
4388
  }): Promise<{
4389
- id: string;
4390
4389
  name: string;
4390
+ id: string;
4391
4391
  createdAt: Date;
4392
4392
  updatedAt: Date;
4393
4393
  entityType: "organization" | "person" | "opportunity" | "quote" | "activity";
@@ -4453,8 +4453,8 @@ export declare const crmService: {
4453
4453
  isLost: boolean;
4454
4454
  probability?: number | null | undefined;
4455
4455
  }): Promise<{
4456
- id: string;
4457
4456
  name: string;
4457
+ id: string;
4458
4458
  createdAt: Date;
4459
4459
  updatedAt: Date;
4460
4460
  sortOrder: number;
@@ -5773,8 +5773,8 @@ export declare const crmService: {
5773
5773
  }, {}, {}>;
5774
5774
  }>, "orderBy">;
5775
5775
  createSegment(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, data: import("./accounts-shared.js").CreateSegmentInput): Promise<{
5776
- id: string;
5777
5776
  name: string;
5777
+ id: string;
5778
5778
  createdAt: Date;
5779
5779
  updatedAt: Date;
5780
5780
  description: string | null;
@@ -5846,8 +5846,8 @@ export declare const crmService: {
5846
5846
  createOrganization(db: import("drizzle-orm/postgres-js").PostgresJsDatabase, data: import("./accounts-shared.js").CreateOrganizationInput): Promise<{
5847
5847
  source: string | null;
5848
5848
  relation: "partner" | "supplier" | "other" | "client" | null;
5849
- id: string;
5850
5849
  name: string;
5850
+ id: string;
5851
5851
  createdAt: Date;
5852
5852
  updatedAt: Date;
5853
5853
  status: "active" | "inactive" | "archived";
@@ -68,7 +68,7 @@ export declare const personRelationshipsService: {
68
68
  tableName: "person_relationships";
69
69
  dataType: "string";
70
70
  columnType: "PgEnumColumn";
71
- data: "partner" | "other" | "spouse" | "parent" | "child" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
71
+ data: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
72
72
  driverParam: string;
73
73
  notNull: true;
74
74
  hasDefault: false;
@@ -85,7 +85,7 @@ export declare const personRelationshipsService: {
85
85
  tableName: "person_relationships";
86
86
  dataType: "string";
87
87
  columnType: "PgEnumColumn";
88
- data: "partner" | "other" | "spouse" | "parent" | "child" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
88
+ data: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
89
89
  driverParam: string;
90
90
  notNull: false;
91
91
  hasDefault: false;
@@ -222,8 +222,8 @@ export declare const personRelationshipsService: {
222
222
  id: string;
223
223
  fromPersonId: string;
224
224
  toPersonId: string;
225
- kind: "partner" | "other" | "spouse" | "parent" | "child" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
226
- inverseKind: "partner" | "other" | "spouse" | "parent" | "child" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion" | null;
225
+ kind: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
226
+ inverseKind: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion" | null;
227
227
  startDate: string | null;
228
228
  endDate: string | null;
229
229
  isPrimary: boolean;
@@ -288,7 +288,7 @@ export declare const personRelationshipsService: {
288
288
  tableName: "person_relationships";
289
289
  dataType: "string";
290
290
  columnType: "PgEnumColumn";
291
- data: "partner" | "other" | "spouse" | "parent" | "child" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
291
+ data: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
292
292
  driverParam: string;
293
293
  notNull: true;
294
294
  hasDefault: false;
@@ -305,7 +305,7 @@ export declare const personRelationshipsService: {
305
305
  tableName: "person_relationships";
306
306
  dataType: "string";
307
307
  columnType: "PgEnumColumn";
308
- data: "partner" | "other" | "spouse" | "parent" | "child" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
308
+ data: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
309
309
  driverParam: string;
310
310
  notNull: false;
311
311
  hasDefault: false;
@@ -443,8 +443,8 @@ export declare const personRelationshipsService: {
443
443
  id: string;
444
444
  fromPersonId: string;
445
445
  toPersonId: string;
446
- kind: "partner" | "other" | "spouse" | "parent" | "child" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
447
- inverseKind: "partner" | "other" | "spouse" | "parent" | "child" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion" | null;
446
+ kind: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
447
+ inverseKind: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion" | null;
448
448
  startDate: string | null;
449
449
  endDate: string | null;
450
450
  isPrimary: boolean;
@@ -475,18 +475,18 @@ export declare const personRelationshipsService: {
475
475
  startDate: string | null;
476
476
  endDate: string | null;
477
477
  notes: string | null;
478
- kind: "partner" | "other" | "spouse" | "parent" | "child" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
478
+ kind: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
479
479
  isPrimary: boolean;
480
480
  fromPersonId: string;
481
481
  toPersonId: string;
482
- inverseKind: "partner" | "other" | "spouse" | "parent" | "child" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion" | null;
482
+ inverseKind: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion" | null;
483
483
  } | null>;
484
484
  updatePersonRelationship(db: PostgresJsDatabase, id: string, data: UpdatePersonRelationshipInput): Promise<{
485
485
  id: string;
486
486
  fromPersonId: string;
487
487
  toPersonId: string;
488
- kind: "partner" | "other" | "spouse" | "parent" | "child" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
489
- inverseKind: "partner" | "other" | "spouse" | "parent" | "child" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion" | null;
488
+ kind: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion";
489
+ inverseKind: "partner" | "parent" | "child" | "other" | "spouse" | "sibling" | "guardian" | "ward" | "emergency_contact" | "friend" | "travel_companion" | null;
490
490
  startDate: string | null;
491
491
  endDate: string | null;
492
492
  isPrimary: boolean;
@@ -32,8 +32,8 @@ export declare const pipelinesService: {
32
32
  updatedAt: Date;
33
33
  } | null>;
34
34
  createPipeline(db: PostgresJsDatabase, data: CreatePipelineInput): Promise<{
35
- id: string;
36
35
  name: string;
36
+ id: string;
37
37
  createdAt: Date;
38
38
  updatedAt: Date;
39
39
  entityType: "organization" | "person" | "opportunity" | "quote" | "activity";
@@ -82,8 +82,8 @@ export declare const pipelinesService: {
82
82
  updatedAt: Date;
83
83
  } | null>;
84
84
  createStage(db: PostgresJsDatabase, data: CreateStageInput): Promise<{
85
- id: string;
86
85
  name: string;
86
+ id: string;
87
87
  createdAt: Date;
88
88
  updatedAt: Date;
89
89
  sortOrder: number;