@erxes/core-contract 0.1.0-v2.7 → 0.1.0-v2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/activities.d.ts +154 -14
- package/dist/activities.js +20 -8
- package/dist/automationRuns.d.ts +38 -1
- package/dist/automationRuns.js +34 -3
- package/dist/automations.d.ts +3 -0
- package/dist/client.d.ts +1069 -42
- package/dist/client.js +23 -1
- package/dist/companies.d.ts +70 -0
- package/dist/companies.js +3 -1
- package/dist/contract/routes.json.js +24 -0
- package/dist/customers.d.ts +77 -0
- package/dist/customers.js +3 -2
- package/dist/db/src/enums.d.ts +5 -0
- package/dist/db/src/enums.js +43 -4
- package/dist/db/src/schema/fields.js +16 -2
- package/dist/db/src/schema/views.js +5 -3
- package/dist/errors.d.ts +10 -0
- package/dist/errors.js +8 -0
- package/dist/events.js +1 -1
- package/dist/fields.d.ts +226 -0
- package/dist/fields.js +16 -9
- package/dist/index.d.ts +722 -46
- package/dist/index.js +8 -6
- package/dist/pluginFields.d.ts +158 -0
- package/dist/pluginFields.js +65 -0
- package/dist/pluginJobs.d.ts +1 -0
- package/dist/pluginJobs.js +5 -0
- package/dist/plugins.d.ts +53 -6
- package/dist/plugins.js +11 -31
- package/dist/timelines.d.ts +36 -0
- package/dist/timelines.js +38 -0
- package/dist/views.d.ts +149 -12
- package/dist/views.js +37 -11
- package/package.json +3 -1
package/dist/client.d.ts
CHANGED
|
@@ -325,6 +325,153 @@ export declare const orpc: {
|
|
|
325
325
|
targetType: string;
|
|
326
326
|
targetId: string;
|
|
327
327
|
}>;
|
|
328
|
+
importNote: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
329
|
+
targetType: string;
|
|
330
|
+
targetId: string;
|
|
331
|
+
body: string;
|
|
332
|
+
authorId: string;
|
|
333
|
+
createdAt: string;
|
|
334
|
+
dedupeKey: string;
|
|
335
|
+
}, {
|
|
336
|
+
activity: {
|
|
337
|
+
id: string;
|
|
338
|
+
targetType: string;
|
|
339
|
+
targetId: string;
|
|
340
|
+
source: string;
|
|
341
|
+
type: string;
|
|
342
|
+
summary: string | null;
|
|
343
|
+
data: Record<string, unknown>;
|
|
344
|
+
entityType: string | null;
|
|
345
|
+
entityId: string | null;
|
|
346
|
+
link: string | null;
|
|
347
|
+
actorType: "customer" | "plugin" | "system" | "user";
|
|
348
|
+
actorId: string | null;
|
|
349
|
+
occurredAt: string;
|
|
350
|
+
actorName: string | null;
|
|
351
|
+
actorAvatarUrl: string | null;
|
|
352
|
+
note: {
|
|
353
|
+
body: string;
|
|
354
|
+
mentions: string[];
|
|
355
|
+
fileIds: string[];
|
|
356
|
+
pinnedAt: string | null;
|
|
357
|
+
editedAt: string | null;
|
|
358
|
+
} | null;
|
|
359
|
+
reactions: Record<string, string[]>;
|
|
360
|
+
};
|
|
361
|
+
created: boolean;
|
|
362
|
+
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
363
|
+
UNAUTHORIZED: {
|
|
364
|
+
status: number;
|
|
365
|
+
};
|
|
366
|
+
NOT_ALLOWED: {
|
|
367
|
+
status: number;
|
|
368
|
+
data: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
369
|
+
permission: import("zod").ZodString;
|
|
370
|
+
}, import("zod/v4/core").$strip>>;
|
|
371
|
+
};
|
|
372
|
+
PLUGIN_ONLY: {
|
|
373
|
+
status: number;
|
|
374
|
+
};
|
|
375
|
+
MEMBERS_ONLY: {
|
|
376
|
+
status: number;
|
|
377
|
+
};
|
|
378
|
+
ORG_REQUIRED: {
|
|
379
|
+
status: number;
|
|
380
|
+
};
|
|
381
|
+
SCOPE_REQUIRED: {
|
|
382
|
+
status: number;
|
|
383
|
+
};
|
|
384
|
+
SERVICE_TOKEN_REQUIRED: {
|
|
385
|
+
status: number;
|
|
386
|
+
};
|
|
387
|
+
ORGANIZATION_DISABLED: {
|
|
388
|
+
status: number;
|
|
389
|
+
data: import("zod").ZodObject<{
|
|
390
|
+
manageUrl: import("zod").ZodNullable<import("zod").ZodString>;
|
|
391
|
+
}, import("zod/v4/core").$strip>;
|
|
392
|
+
};
|
|
393
|
+
NOT_IN_PLAN: {
|
|
394
|
+
status: number;
|
|
395
|
+
data: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
396
|
+
manageUrl: import("zod").ZodNullable<import("zod").ZodString>;
|
|
397
|
+
}, import("zod/v4/core").$strip>>;
|
|
398
|
+
};
|
|
399
|
+
READ_ONLY: {
|
|
400
|
+
status: number;
|
|
401
|
+
};
|
|
402
|
+
TOO_MANY_REQUESTS: {
|
|
403
|
+
status: number;
|
|
404
|
+
};
|
|
405
|
+
INVALID_INPUT: {
|
|
406
|
+
status: number;
|
|
407
|
+
data: import("zod").ZodObject<{
|
|
408
|
+
issues: import("zod").ZodArray<import("zod").ZodObject<{
|
|
409
|
+
path: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodInt]>>;
|
|
410
|
+
message: import("zod").ZodString;
|
|
411
|
+
}, import("zod/v4/core").$strip>>;
|
|
412
|
+
}, import("zod/v4/core").$strip>;
|
|
413
|
+
};
|
|
414
|
+
NOT_FOUND: {
|
|
415
|
+
status: number;
|
|
416
|
+
};
|
|
417
|
+
TAKEN: {
|
|
418
|
+
status: number;
|
|
419
|
+
data: import("zod").ZodObject<{
|
|
420
|
+
field: import("zod").ZodString;
|
|
421
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
422
|
+
values: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
423
|
+
}, import("zod/v4/core").$strip>;
|
|
424
|
+
};
|
|
425
|
+
INVALID_CURSOR: {
|
|
426
|
+
status: number;
|
|
427
|
+
};
|
|
428
|
+
INVALID_REFERENCE: {
|
|
429
|
+
status: number;
|
|
430
|
+
data: import("zod").ZodObject<{
|
|
431
|
+
field: import("zod").ZodString;
|
|
432
|
+
}, import("zod/v4/core").$strip>;
|
|
433
|
+
};
|
|
434
|
+
INVALID_FILTER: {
|
|
435
|
+
status: number;
|
|
436
|
+
};
|
|
437
|
+
FILTER_TOO_SLOW: {
|
|
438
|
+
status: number;
|
|
439
|
+
};
|
|
440
|
+
INVALID_ACTOR: {
|
|
441
|
+
status: number;
|
|
442
|
+
};
|
|
443
|
+
INVALID_FILE: {
|
|
444
|
+
status: number;
|
|
445
|
+
};
|
|
446
|
+
INVALID_OWNER: {
|
|
447
|
+
status: number;
|
|
448
|
+
};
|
|
449
|
+
INVALID_RECIPIENT: {
|
|
450
|
+
status: number;
|
|
451
|
+
};
|
|
452
|
+
INVALID_TYPE: {
|
|
453
|
+
status: number;
|
|
454
|
+
};
|
|
455
|
+
MASS_DELETE_STOPPED: {
|
|
456
|
+
status: number;
|
|
457
|
+
};
|
|
458
|
+
NOT_AUTHOR: {
|
|
459
|
+
status: number;
|
|
460
|
+
};
|
|
461
|
+
NO_TIMELINE: {
|
|
462
|
+
status: number;
|
|
463
|
+
};
|
|
464
|
+
TOO_MANY_REACTIONS: {
|
|
465
|
+
status: number;
|
|
466
|
+
};
|
|
467
|
+
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
468
|
+
targetType: string;
|
|
469
|
+
targetId: string;
|
|
470
|
+
body: string;
|
|
471
|
+
authorId: string;
|
|
472
|
+
createdAt: string;
|
|
473
|
+
dedupeKey: string;
|
|
474
|
+
}>;
|
|
328
475
|
react: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
329
476
|
id: string;
|
|
330
477
|
emoji: string;
|
|
@@ -1513,7 +1660,7 @@ export declare const orpc: {
|
|
|
1513
1660
|
fields: {
|
|
1514
1661
|
key: string;
|
|
1515
1662
|
label: string;
|
|
1516
|
-
type: "boolean" | "custom_field" | "date" | "json" | "lead_stage" | "longtext" | "members" | "number" | "recipients" | "select" | "tags" | "text";
|
|
1663
|
+
type: "boolean" | "custom_field" | "date" | "json" | "lead_stage" | "longtext" | "members" | "number" | "plugin_record" | "recipients" | "select" | "tags" | "text";
|
|
1517
1664
|
required: boolean;
|
|
1518
1665
|
options?: {
|
|
1519
1666
|
value: string;
|
|
@@ -1522,6 +1669,8 @@ export declare const orpc: {
|
|
|
1522
1669
|
description?: string | undefined;
|
|
1523
1670
|
placeholder?: string | undefined;
|
|
1524
1671
|
sameTypeAs?: string | undefined;
|
|
1672
|
+
recordType?: string | undefined;
|
|
1673
|
+
dependsOn?: string | undefined;
|
|
1525
1674
|
}[];
|
|
1526
1675
|
}[];
|
|
1527
1676
|
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
@@ -9366,6 +9515,13 @@ export declare const orpc: {
|
|
|
9366
9515
|
NOT_A_LEAD: {
|
|
9367
9516
|
status: number;
|
|
9368
9517
|
};
|
|
9518
|
+
PLUGIN_FIELD: {
|
|
9519
|
+
status: number;
|
|
9520
|
+
data: import("zod").ZodObject<{
|
|
9521
|
+
fieldId: import("zod").ZodString;
|
|
9522
|
+
plugin: import("zod").ZodString;
|
|
9523
|
+
}, import("zod/v4/core").$strip>;
|
|
9524
|
+
};
|
|
9369
9525
|
TAG_LIMIT: {
|
|
9370
9526
|
status: number;
|
|
9371
9527
|
};
|
|
@@ -9521,6 +9677,13 @@ export declare const orpc: {
|
|
|
9521
9677
|
NOT_A_LEAD: {
|
|
9522
9678
|
status: number;
|
|
9523
9679
|
};
|
|
9680
|
+
PLUGIN_FIELD: {
|
|
9681
|
+
status: number;
|
|
9682
|
+
data: import("zod").ZodObject<{
|
|
9683
|
+
fieldId: import("zod").ZodString;
|
|
9684
|
+
plugin: import("zod").ZodString;
|
|
9685
|
+
}, import("zod/v4/core").$strip>;
|
|
9686
|
+
};
|
|
9524
9687
|
TAG_LIMIT: {
|
|
9525
9688
|
status: number;
|
|
9526
9689
|
};
|
|
@@ -9685,6 +9848,13 @@ export declare const orpc: {
|
|
|
9685
9848
|
NOT_A_LEAD: {
|
|
9686
9849
|
status: number;
|
|
9687
9850
|
};
|
|
9851
|
+
PLUGIN_FIELD: {
|
|
9852
|
+
status: number;
|
|
9853
|
+
data: import("zod").ZodObject<{
|
|
9854
|
+
fieldId: import("zod").ZodString;
|
|
9855
|
+
plugin: import("zod").ZodString;
|
|
9856
|
+
}, import("zod/v4/core").$strip>;
|
|
9857
|
+
};
|
|
9688
9858
|
TAG_LIMIT: {
|
|
9689
9859
|
status: number;
|
|
9690
9860
|
};
|
|
@@ -9870,6 +10040,13 @@ export declare const orpc: {
|
|
|
9870
10040
|
NOT_A_LEAD: {
|
|
9871
10041
|
status: number;
|
|
9872
10042
|
};
|
|
10043
|
+
PLUGIN_FIELD: {
|
|
10044
|
+
status: number;
|
|
10045
|
+
data: import("zod").ZodObject<{
|
|
10046
|
+
fieldId: import("zod").ZodString;
|
|
10047
|
+
plugin: import("zod").ZodString;
|
|
10048
|
+
}, import("zod/v4/core").$strip>;
|
|
10049
|
+
};
|
|
9873
10050
|
TAG_LIMIT: {
|
|
9874
10051
|
status: number;
|
|
9875
10052
|
};
|
|
@@ -10009,6 +10186,13 @@ export declare const orpc: {
|
|
|
10009
10186
|
NOT_A_LEAD: {
|
|
10010
10187
|
status: number;
|
|
10011
10188
|
};
|
|
10189
|
+
PLUGIN_FIELD: {
|
|
10190
|
+
status: number;
|
|
10191
|
+
data: import("zod").ZodObject<{
|
|
10192
|
+
fieldId: import("zod").ZodString;
|
|
10193
|
+
plugin: import("zod").ZodString;
|
|
10194
|
+
}, import("zod/v4/core").$strip>;
|
|
10195
|
+
};
|
|
10012
10196
|
TAG_LIMIT: {
|
|
10013
10197
|
status: number;
|
|
10014
10198
|
};
|
|
@@ -10154,6 +10338,13 @@ export declare const orpc: {
|
|
|
10154
10338
|
NOT_A_LEAD: {
|
|
10155
10339
|
status: number;
|
|
10156
10340
|
};
|
|
10341
|
+
PLUGIN_FIELD: {
|
|
10342
|
+
status: number;
|
|
10343
|
+
data: import("zod").ZodObject<{
|
|
10344
|
+
fieldId: import("zod").ZodString;
|
|
10345
|
+
plugin: import("zod").ZodString;
|
|
10346
|
+
}, import("zod/v4/core").$strip>;
|
|
10347
|
+
};
|
|
10157
10348
|
TAG_LIMIT: {
|
|
10158
10349
|
status: number;
|
|
10159
10350
|
};
|
|
@@ -10275,6 +10466,13 @@ export declare const orpc: {
|
|
|
10275
10466
|
NOT_A_LEAD: {
|
|
10276
10467
|
status: number;
|
|
10277
10468
|
};
|
|
10469
|
+
PLUGIN_FIELD: {
|
|
10470
|
+
status: number;
|
|
10471
|
+
data: import("zod").ZodObject<{
|
|
10472
|
+
fieldId: import("zod").ZodString;
|
|
10473
|
+
plugin: import("zod").ZodString;
|
|
10474
|
+
}, import("zod/v4/core").$strip>;
|
|
10475
|
+
};
|
|
10278
10476
|
TAG_LIMIT: {
|
|
10279
10477
|
status: number;
|
|
10280
10478
|
};
|
|
@@ -10409,6 +10607,13 @@ export declare const orpc: {
|
|
|
10409
10607
|
NOT_A_LEAD: {
|
|
10410
10608
|
status: number;
|
|
10411
10609
|
};
|
|
10610
|
+
PLUGIN_FIELD: {
|
|
10611
|
+
status: number;
|
|
10612
|
+
data: import("zod").ZodObject<{
|
|
10613
|
+
fieldId: import("zod").ZodString;
|
|
10614
|
+
plugin: import("zod").ZodString;
|
|
10615
|
+
}, import("zod/v4/core").$strip>;
|
|
10616
|
+
};
|
|
10412
10617
|
TAG_LIMIT: {
|
|
10413
10618
|
status: number;
|
|
10414
10619
|
};
|
|
@@ -10531,6 +10736,13 @@ export declare const orpc: {
|
|
|
10531
10736
|
NOT_A_LEAD: {
|
|
10532
10737
|
status: number;
|
|
10533
10738
|
};
|
|
10739
|
+
PLUGIN_FIELD: {
|
|
10740
|
+
status: number;
|
|
10741
|
+
data: import("zod").ZodObject<{
|
|
10742
|
+
fieldId: import("zod").ZodString;
|
|
10743
|
+
plugin: import("zod").ZodString;
|
|
10744
|
+
}, import("zod/v4/core").$strip>;
|
|
10745
|
+
};
|
|
10534
10746
|
TAG_LIMIT: {
|
|
10535
10747
|
status: number;
|
|
10536
10748
|
};
|
|
@@ -10654,6 +10866,13 @@ export declare const orpc: {
|
|
|
10654
10866
|
NOT_A_LEAD: {
|
|
10655
10867
|
status: number;
|
|
10656
10868
|
};
|
|
10869
|
+
PLUGIN_FIELD: {
|
|
10870
|
+
status: number;
|
|
10871
|
+
data: import("zod").ZodObject<{
|
|
10872
|
+
fieldId: import("zod").ZodString;
|
|
10873
|
+
plugin: import("zod").ZodString;
|
|
10874
|
+
}, import("zod/v4/core").$strip>;
|
|
10875
|
+
};
|
|
10657
10876
|
TAG_LIMIT: {
|
|
10658
10877
|
status: number;
|
|
10659
10878
|
};
|
|
@@ -10823,6 +11042,13 @@ export declare const orpc: {
|
|
|
10823
11042
|
NOT_A_LEAD: {
|
|
10824
11043
|
status: number;
|
|
10825
11044
|
};
|
|
11045
|
+
PLUGIN_FIELD: {
|
|
11046
|
+
status: number;
|
|
11047
|
+
data: import("zod").ZodObject<{
|
|
11048
|
+
fieldId: import("zod").ZodString;
|
|
11049
|
+
plugin: import("zod").ZodString;
|
|
11050
|
+
}, import("zod/v4/core").$strip>;
|
|
11051
|
+
};
|
|
10826
11052
|
TAG_LIMIT: {
|
|
10827
11053
|
status: number;
|
|
10828
11054
|
};
|
|
@@ -10988,6 +11214,13 @@ export declare const orpc: {
|
|
|
10988
11214
|
NOT_A_LEAD: {
|
|
10989
11215
|
status: number;
|
|
10990
11216
|
};
|
|
11217
|
+
PLUGIN_FIELD: {
|
|
11218
|
+
status: number;
|
|
11219
|
+
data: import("zod").ZodObject<{
|
|
11220
|
+
fieldId: import("zod").ZodString;
|
|
11221
|
+
plugin: import("zod").ZodString;
|
|
11222
|
+
}, import("zod/v4/core").$strip>;
|
|
11223
|
+
};
|
|
10991
11224
|
TAG_LIMIT: {
|
|
10992
11225
|
status: number;
|
|
10993
11226
|
};
|
|
@@ -11139,6 +11372,13 @@ export declare const orpc: {
|
|
|
11139
11372
|
NOT_A_LEAD: {
|
|
11140
11373
|
status: number;
|
|
11141
11374
|
};
|
|
11375
|
+
PLUGIN_FIELD: {
|
|
11376
|
+
status: number;
|
|
11377
|
+
data: import("zod").ZodObject<{
|
|
11378
|
+
fieldId: import("zod").ZodString;
|
|
11379
|
+
plugin: import("zod").ZodString;
|
|
11380
|
+
}, import("zod/v4/core").$strip>;
|
|
11381
|
+
};
|
|
11142
11382
|
TAG_LIMIT: {
|
|
11143
11383
|
status: number;
|
|
11144
11384
|
};
|
|
@@ -11305,6 +11545,13 @@ export declare const orpc: {
|
|
|
11305
11545
|
NOT_A_LEAD: {
|
|
11306
11546
|
status: number;
|
|
11307
11547
|
};
|
|
11548
|
+
PLUGIN_FIELD: {
|
|
11549
|
+
status: number;
|
|
11550
|
+
data: import("zod").ZodObject<{
|
|
11551
|
+
fieldId: import("zod").ZodString;
|
|
11552
|
+
plugin: import("zod").ZodString;
|
|
11553
|
+
}, import("zod/v4/core").$strip>;
|
|
11554
|
+
};
|
|
11308
11555
|
TAG_LIMIT: {
|
|
11309
11556
|
status: number;
|
|
11310
11557
|
};
|
|
@@ -11493,6 +11740,13 @@ export declare const orpc: {
|
|
|
11493
11740
|
NOT_A_LEAD: {
|
|
11494
11741
|
status: number;
|
|
11495
11742
|
};
|
|
11743
|
+
PLUGIN_FIELD: {
|
|
11744
|
+
status: number;
|
|
11745
|
+
data: import("zod").ZodObject<{
|
|
11746
|
+
fieldId: import("zod").ZodString;
|
|
11747
|
+
plugin: import("zod").ZodString;
|
|
11748
|
+
}, import("zod/v4/core").$strip>;
|
|
11749
|
+
};
|
|
11496
11750
|
TAG_LIMIT: {
|
|
11497
11751
|
status: number;
|
|
11498
11752
|
};
|
|
@@ -11633,6 +11887,13 @@ export declare const orpc: {
|
|
|
11633
11887
|
NOT_A_LEAD: {
|
|
11634
11888
|
status: number;
|
|
11635
11889
|
};
|
|
11890
|
+
PLUGIN_FIELD: {
|
|
11891
|
+
status: number;
|
|
11892
|
+
data: import("zod").ZodObject<{
|
|
11893
|
+
fieldId: import("zod").ZodString;
|
|
11894
|
+
plugin: import("zod").ZodString;
|
|
11895
|
+
}, import("zod/v4/core").$strip>;
|
|
11896
|
+
};
|
|
11636
11897
|
TAG_LIMIT: {
|
|
11637
11898
|
status: number;
|
|
11638
11899
|
};
|
|
@@ -11779,6 +12040,13 @@ export declare const orpc: {
|
|
|
11779
12040
|
NOT_A_LEAD: {
|
|
11780
12041
|
status: number;
|
|
11781
12042
|
};
|
|
12043
|
+
PLUGIN_FIELD: {
|
|
12044
|
+
status: number;
|
|
12045
|
+
data: import("zod").ZodObject<{
|
|
12046
|
+
fieldId: import("zod").ZodString;
|
|
12047
|
+
plugin: import("zod").ZodString;
|
|
12048
|
+
}, import("zod/v4/core").$strip>;
|
|
12049
|
+
};
|
|
11782
12050
|
TAG_LIMIT: {
|
|
11783
12051
|
status: number;
|
|
11784
12052
|
};
|
|
@@ -11900,6 +12168,13 @@ export declare const orpc: {
|
|
|
11900
12168
|
NOT_A_LEAD: {
|
|
11901
12169
|
status: number;
|
|
11902
12170
|
};
|
|
12171
|
+
PLUGIN_FIELD: {
|
|
12172
|
+
status: number;
|
|
12173
|
+
data: import("zod").ZodObject<{
|
|
12174
|
+
fieldId: import("zod").ZodString;
|
|
12175
|
+
plugin: import("zod").ZodString;
|
|
12176
|
+
}, import("zod/v4/core").$strip>;
|
|
12177
|
+
};
|
|
11903
12178
|
TAG_LIMIT: {
|
|
11904
12179
|
status: number;
|
|
11905
12180
|
};
|
|
@@ -12031,6 +12306,13 @@ export declare const orpc: {
|
|
|
12031
12306
|
NOT_A_LEAD: {
|
|
12032
12307
|
status: number;
|
|
12033
12308
|
};
|
|
12309
|
+
PLUGIN_FIELD: {
|
|
12310
|
+
status: number;
|
|
12311
|
+
data: import("zod").ZodObject<{
|
|
12312
|
+
fieldId: import("zod").ZodString;
|
|
12313
|
+
plugin: import("zod").ZodString;
|
|
12314
|
+
}, import("zod/v4/core").$strip>;
|
|
12315
|
+
};
|
|
12034
12316
|
TAG_LIMIT: {
|
|
12035
12317
|
status: number;
|
|
12036
12318
|
};
|
|
@@ -12153,6 +12435,13 @@ export declare const orpc: {
|
|
|
12153
12435
|
NOT_A_LEAD: {
|
|
12154
12436
|
status: number;
|
|
12155
12437
|
};
|
|
12438
|
+
PLUGIN_FIELD: {
|
|
12439
|
+
status: number;
|
|
12440
|
+
data: import("zod").ZodObject<{
|
|
12441
|
+
fieldId: import("zod").ZodString;
|
|
12442
|
+
plugin: import("zod").ZodString;
|
|
12443
|
+
}, import("zod/v4/core").$strip>;
|
|
12444
|
+
};
|
|
12156
12445
|
TAG_LIMIT: {
|
|
12157
12446
|
status: number;
|
|
12158
12447
|
};
|
|
@@ -12276,6 +12565,13 @@ export declare const orpc: {
|
|
|
12276
12565
|
NOT_A_LEAD: {
|
|
12277
12566
|
status: number;
|
|
12278
12567
|
};
|
|
12568
|
+
PLUGIN_FIELD: {
|
|
12569
|
+
status: number;
|
|
12570
|
+
data: import("zod").ZodObject<{
|
|
12571
|
+
fieldId: import("zod").ZodString;
|
|
12572
|
+
plugin: import("zod").ZodString;
|
|
12573
|
+
}, import("zod/v4/core").$strip>;
|
|
12574
|
+
};
|
|
12279
12575
|
TAG_LIMIT: {
|
|
12280
12576
|
status: number;
|
|
12281
12577
|
};
|
|
@@ -14775,6 +15071,13 @@ export declare const orpc: {
|
|
|
14775
15071
|
groupId: import("zod").ZodString;
|
|
14776
15072
|
}, import("zod/v4/core").$strip>>;
|
|
14777
15073
|
};
|
|
15074
|
+
PLUGIN_FIELD: {
|
|
15075
|
+
status: number;
|
|
15076
|
+
data: import("zod").ZodObject<{
|
|
15077
|
+
fieldId: import("zod").ZodString;
|
|
15078
|
+
plugin: import("zod").ZodString;
|
|
15079
|
+
}, import("zod/v4/core").$strip>;
|
|
15080
|
+
};
|
|
14778
15081
|
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
14779
15082
|
contentType: "company" | "customer" | "product";
|
|
14780
15083
|
archived?: "false" | "true" | boolean | undefined;
|
|
@@ -14883,10 +15186,17 @@ export declare const orpc: {
|
|
|
14883
15186
|
groupId: import("zod").ZodString;
|
|
14884
15187
|
}, import("zod/v4/core").$strip>>;
|
|
14885
15188
|
};
|
|
14886
|
-
|
|
14887
|
-
|
|
14888
|
-
|
|
14889
|
-
|
|
15189
|
+
PLUGIN_FIELD: {
|
|
15190
|
+
status: number;
|
|
15191
|
+
data: import("zod").ZodObject<{
|
|
15192
|
+
fieldId: import("zod").ZodString;
|
|
15193
|
+
plugin: import("zod").ZodString;
|
|
15194
|
+
}, import("zod/v4/core").$strip>;
|
|
15195
|
+
};
|
|
15196
|
+
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
15197
|
+
contentType: "company" | "customer" | "product";
|
|
15198
|
+
name: string;
|
|
15199
|
+
code?: string | undefined;
|
|
14890
15200
|
description?: string | null | undefined;
|
|
14891
15201
|
}>;
|
|
14892
15202
|
update: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
@@ -14994,6 +15304,13 @@ export declare const orpc: {
|
|
|
14994
15304
|
groupId: import("zod").ZodString;
|
|
14995
15305
|
}, import("zod/v4/core").$strip>>;
|
|
14996
15306
|
};
|
|
15307
|
+
PLUGIN_FIELD: {
|
|
15308
|
+
status: number;
|
|
15309
|
+
data: import("zod").ZodObject<{
|
|
15310
|
+
fieldId: import("zod").ZodString;
|
|
15311
|
+
plugin: import("zod").ZodString;
|
|
15312
|
+
}, import("zod/v4/core").$strip>;
|
|
15313
|
+
};
|
|
14997
15314
|
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
14998
15315
|
name?: string | undefined;
|
|
14999
15316
|
code?: string | undefined;
|
|
@@ -15098,6 +15415,13 @@ export declare const orpc: {
|
|
|
15098
15415
|
groupId: import("zod").ZodString;
|
|
15099
15416
|
}, import("zod/v4/core").$strip>>;
|
|
15100
15417
|
};
|
|
15418
|
+
PLUGIN_FIELD: {
|
|
15419
|
+
status: number;
|
|
15420
|
+
data: import("zod").ZodObject<{
|
|
15421
|
+
fieldId: import("zod").ZodString;
|
|
15422
|
+
plugin: import("zod").ZodString;
|
|
15423
|
+
}, import("zod/v4/core").$strip>;
|
|
15424
|
+
};
|
|
15101
15425
|
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
15102
15426
|
orders: {
|
|
15103
15427
|
id: string;
|
|
@@ -15205,6 +15529,13 @@ export declare const orpc: {
|
|
|
15205
15529
|
groupId: import("zod").ZodString;
|
|
15206
15530
|
}, import("zod/v4/core").$strip>>;
|
|
15207
15531
|
};
|
|
15532
|
+
PLUGIN_FIELD: {
|
|
15533
|
+
status: number;
|
|
15534
|
+
data: import("zod").ZodObject<{
|
|
15535
|
+
fieldId: import("zod").ZodString;
|
|
15536
|
+
plugin: import("zod").ZodString;
|
|
15537
|
+
}, import("zod/v4/core").$strip>;
|
|
15538
|
+
};
|
|
15208
15539
|
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
15209
15540
|
id: string;
|
|
15210
15541
|
}>;
|
|
@@ -15309,6 +15640,13 @@ export declare const orpc: {
|
|
|
15309
15640
|
groupId: import("zod").ZodString;
|
|
15310
15641
|
}, import("zod/v4/core").$strip>>;
|
|
15311
15642
|
};
|
|
15643
|
+
PLUGIN_FIELD: {
|
|
15644
|
+
status: number;
|
|
15645
|
+
data: import("zod").ZodObject<{
|
|
15646
|
+
fieldId: import("zod").ZodString;
|
|
15647
|
+
plugin: import("zod").ZodString;
|
|
15648
|
+
}, import("zod/v4/core").$strip>;
|
|
15649
|
+
};
|
|
15312
15650
|
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
15313
15651
|
id: string;
|
|
15314
15652
|
}>;
|
|
@@ -15406,11 +15744,126 @@ export declare const orpc: {
|
|
|
15406
15744
|
groupId: import("zod").ZodString;
|
|
15407
15745
|
}, import("zod/v4/core").$strip>>;
|
|
15408
15746
|
};
|
|
15747
|
+
PLUGIN_FIELD: {
|
|
15748
|
+
status: number;
|
|
15749
|
+
data: import("zod").ZodObject<{
|
|
15750
|
+
fieldId: import("zod").ZodString;
|
|
15751
|
+
plugin: import("zod").ZodString;
|
|
15752
|
+
}, import("zod/v4/core").$strip>;
|
|
15753
|
+
};
|
|
15409
15754
|
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
15410
15755
|
id: string;
|
|
15411
15756
|
}>;
|
|
15412
15757
|
} & import("@orpc/tanstack-query").GeneralUtils<unknown>;
|
|
15413
15758
|
fields: {
|
|
15759
|
+
setPluginValues: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
15760
|
+
contentType: "company" | "customer";
|
|
15761
|
+
values: {
|
|
15762
|
+
recordId: string;
|
|
15763
|
+
code: string;
|
|
15764
|
+
value: string | number | string[] | null;
|
|
15765
|
+
}[];
|
|
15766
|
+
}, {
|
|
15767
|
+
written: number;
|
|
15768
|
+
skipped: string[];
|
|
15769
|
+
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
15770
|
+
UNAUTHORIZED: {
|
|
15771
|
+
status: number;
|
|
15772
|
+
};
|
|
15773
|
+
NOT_ALLOWED: {
|
|
15774
|
+
status: number;
|
|
15775
|
+
data: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
15776
|
+
permission: import("zod").ZodString;
|
|
15777
|
+
}, import("zod/v4/core").$strip>>;
|
|
15778
|
+
};
|
|
15779
|
+
PLUGIN_ONLY: {
|
|
15780
|
+
status: number;
|
|
15781
|
+
};
|
|
15782
|
+
MEMBERS_ONLY: {
|
|
15783
|
+
status: number;
|
|
15784
|
+
};
|
|
15785
|
+
ORG_REQUIRED: {
|
|
15786
|
+
status: number;
|
|
15787
|
+
};
|
|
15788
|
+
SCOPE_REQUIRED: {
|
|
15789
|
+
status: number;
|
|
15790
|
+
};
|
|
15791
|
+
SERVICE_TOKEN_REQUIRED: {
|
|
15792
|
+
status: number;
|
|
15793
|
+
};
|
|
15794
|
+
ORGANIZATION_DISABLED: {
|
|
15795
|
+
status: number;
|
|
15796
|
+
data: import("zod").ZodObject<{
|
|
15797
|
+
manageUrl: import("zod").ZodNullable<import("zod").ZodString>;
|
|
15798
|
+
}, import("zod/v4/core").$strip>;
|
|
15799
|
+
};
|
|
15800
|
+
NOT_IN_PLAN: {
|
|
15801
|
+
status: number;
|
|
15802
|
+
data: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
15803
|
+
manageUrl: import("zod").ZodNullable<import("zod").ZodString>;
|
|
15804
|
+
}, import("zod/v4/core").$strip>>;
|
|
15805
|
+
};
|
|
15806
|
+
READ_ONLY: {
|
|
15807
|
+
status: number;
|
|
15808
|
+
};
|
|
15809
|
+
TOO_MANY_REQUESTS: {
|
|
15810
|
+
status: number;
|
|
15811
|
+
};
|
|
15812
|
+
INVALID_INPUT: {
|
|
15813
|
+
status: number;
|
|
15814
|
+
data: import("zod").ZodObject<{
|
|
15815
|
+
issues: import("zod").ZodArray<import("zod").ZodObject<{
|
|
15816
|
+
path: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodInt]>>;
|
|
15817
|
+
message: import("zod").ZodString;
|
|
15818
|
+
}, import("zod/v4/core").$strip>>;
|
|
15819
|
+
}, import("zod/v4/core").$strip>;
|
|
15820
|
+
};
|
|
15821
|
+
NOT_FOUND: {
|
|
15822
|
+
status: number;
|
|
15823
|
+
};
|
|
15824
|
+
TAKEN: {
|
|
15825
|
+
status: number;
|
|
15826
|
+
data: import("zod").ZodObject<{
|
|
15827
|
+
field: import("zod").ZodString;
|
|
15828
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
15829
|
+
values: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
15830
|
+
}, import("zod/v4/core").$strip>;
|
|
15831
|
+
};
|
|
15832
|
+
INVALID_CURSOR: {
|
|
15833
|
+
status: number;
|
|
15834
|
+
};
|
|
15835
|
+
INVALID_REFERENCE: {
|
|
15836
|
+
status: number;
|
|
15837
|
+
data: import("zod").ZodObject<{
|
|
15838
|
+
field: import("zod").ZodString;
|
|
15839
|
+
}, import("zod/v4/core").$strip>;
|
|
15840
|
+
};
|
|
15841
|
+
INVALID_FILTER: {
|
|
15842
|
+
status: number;
|
|
15843
|
+
};
|
|
15844
|
+
FILTER_TOO_SLOW: {
|
|
15845
|
+
status: number;
|
|
15846
|
+
};
|
|
15847
|
+
INVALID_FIELD: {
|
|
15848
|
+
status: number;
|
|
15849
|
+
data: import("zod").ZodObject<{
|
|
15850
|
+
fieldId: import("zod").ZodString;
|
|
15851
|
+
}, import("zod/v4/core").$strip>;
|
|
15852
|
+
};
|
|
15853
|
+
INVALID_FIELD_VALUE: {
|
|
15854
|
+
status: number;
|
|
15855
|
+
data: import("zod").ZodObject<{
|
|
15856
|
+
fieldId: import("zod").ZodString;
|
|
15857
|
+
}, import("zod/v4/core").$strip>;
|
|
15858
|
+
};
|
|
15859
|
+
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
15860
|
+
contentType: "company" | "customer";
|
|
15861
|
+
values: {
|
|
15862
|
+
recordId: string;
|
|
15863
|
+
code: string;
|
|
15864
|
+
value: string | number | string[] | null;
|
|
15865
|
+
}[];
|
|
15866
|
+
}>;
|
|
15414
15867
|
list: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
15415
15868
|
contentType: "company" | "customer" | "product";
|
|
15416
15869
|
groupId?: string | undefined;
|
|
@@ -15429,8 +15882,10 @@ export declare const orpc: {
|
|
|
15429
15882
|
options: string[];
|
|
15430
15883
|
isVisible: boolean;
|
|
15431
15884
|
order: number;
|
|
15885
|
+
plugin: string | null;
|
|
15432
15886
|
archivedAt: string | null;
|
|
15433
15887
|
createdAt: string;
|
|
15888
|
+
pluginTitle: string | null;
|
|
15434
15889
|
}[];
|
|
15435
15890
|
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
15436
15891
|
UNAUTHORIZED: {
|
|
@@ -15522,6 +15977,13 @@ export declare const orpc: {
|
|
|
15522
15977
|
groupId: import("zod").ZodString;
|
|
15523
15978
|
}, import("zod/v4/core").$strip>>;
|
|
15524
15979
|
};
|
|
15980
|
+
PLUGIN_FIELD: {
|
|
15981
|
+
status: number;
|
|
15982
|
+
data: import("zod").ZodObject<{
|
|
15983
|
+
fieldId: import("zod").ZodString;
|
|
15984
|
+
plugin: import("zod").ZodString;
|
|
15985
|
+
}, import("zod/v4/core").$strip>;
|
|
15986
|
+
};
|
|
15525
15987
|
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
15526
15988
|
contentType: "company" | "customer" | "product";
|
|
15527
15989
|
groupId?: string | undefined;
|
|
@@ -15624,6 +16086,13 @@ export declare const orpc: {
|
|
|
15624
16086
|
groupId: import("zod").ZodString;
|
|
15625
16087
|
}, import("zod/v4/core").$strip>>;
|
|
15626
16088
|
};
|
|
16089
|
+
PLUGIN_FIELD: {
|
|
16090
|
+
status: number;
|
|
16091
|
+
data: import("zod").ZodObject<{
|
|
16092
|
+
fieldId: import("zod").ZodString;
|
|
16093
|
+
plugin: import("zod").ZodString;
|
|
16094
|
+
}, import("zod/v4/core").$strip>;
|
|
16095
|
+
};
|
|
15627
16096
|
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
15628
16097
|
ids?: string | undefined;
|
|
15629
16098
|
groupId?: string | undefined;
|
|
@@ -15652,8 +16121,10 @@ export declare const orpc: {
|
|
|
15652
16121
|
options: string[];
|
|
15653
16122
|
isVisible: boolean;
|
|
15654
16123
|
order: number;
|
|
16124
|
+
plugin: string | null;
|
|
15655
16125
|
archivedAt: string | null;
|
|
15656
16126
|
createdAt: string;
|
|
16127
|
+
pluginTitle: string | null;
|
|
15657
16128
|
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
15658
16129
|
UNAUTHORIZED: {
|
|
15659
16130
|
status: number;
|
|
@@ -15744,6 +16215,13 @@ export declare const orpc: {
|
|
|
15744
16215
|
groupId: import("zod").ZodString;
|
|
15745
16216
|
}, import("zod/v4/core").$strip>>;
|
|
15746
16217
|
};
|
|
16218
|
+
PLUGIN_FIELD: {
|
|
16219
|
+
status: number;
|
|
16220
|
+
data: import("zod").ZodObject<{
|
|
16221
|
+
fieldId: import("zod").ZodString;
|
|
16222
|
+
plugin: import("zod").ZodString;
|
|
16223
|
+
}, import("zod/v4/core").$strip>;
|
|
16224
|
+
};
|
|
15747
16225
|
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
15748
16226
|
contentType: "company" | "customer" | "product";
|
|
15749
16227
|
groupId?: string | null | undefined;
|
|
@@ -15781,8 +16259,10 @@ export declare const orpc: {
|
|
|
15781
16259
|
options: string[];
|
|
15782
16260
|
isVisible: boolean;
|
|
15783
16261
|
order: number;
|
|
16262
|
+
plugin: string | null;
|
|
15784
16263
|
archivedAt: string | null;
|
|
15785
16264
|
createdAt: string;
|
|
16265
|
+
pluginTitle: string | null;
|
|
15786
16266
|
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
15787
16267
|
UNAUTHORIZED: {
|
|
15788
16268
|
status: number;
|
|
@@ -15873,6 +16353,13 @@ export declare const orpc: {
|
|
|
15873
16353
|
groupId: import("zod").ZodString;
|
|
15874
16354
|
}, import("zod/v4/core").$strip>>;
|
|
15875
16355
|
};
|
|
16356
|
+
PLUGIN_FIELD: {
|
|
16357
|
+
status: number;
|
|
16358
|
+
data: import("zod").ZodObject<{
|
|
16359
|
+
fieldId: import("zod").ZodString;
|
|
16360
|
+
plugin: import("zod").ZodString;
|
|
16361
|
+
}, import("zod/v4/core").$strip>;
|
|
16362
|
+
};
|
|
15876
16363
|
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
15877
16364
|
groupId?: string | null | undefined;
|
|
15878
16365
|
label?: string | undefined;
|
|
@@ -15983,6 +16470,13 @@ export declare const orpc: {
|
|
|
15983
16470
|
groupId: import("zod").ZodString;
|
|
15984
16471
|
}, import("zod/v4/core").$strip>>;
|
|
15985
16472
|
};
|
|
16473
|
+
PLUGIN_FIELD: {
|
|
16474
|
+
status: number;
|
|
16475
|
+
data: import("zod").ZodObject<{
|
|
16476
|
+
fieldId: import("zod").ZodString;
|
|
16477
|
+
plugin: import("zod").ZodString;
|
|
16478
|
+
}, import("zod/v4/core").$strip>;
|
|
16479
|
+
};
|
|
15986
16480
|
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
15987
16481
|
orders: {
|
|
15988
16482
|
id: string;
|
|
@@ -16083,6 +16577,13 @@ export declare const orpc: {
|
|
|
16083
16577
|
groupId: import("zod").ZodString;
|
|
16084
16578
|
}, import("zod/v4/core").$strip>>;
|
|
16085
16579
|
};
|
|
16580
|
+
PLUGIN_FIELD: {
|
|
16581
|
+
status: number;
|
|
16582
|
+
data: import("zod").ZodObject<{
|
|
16583
|
+
fieldId: import("zod").ZodString;
|
|
16584
|
+
plugin: import("zod").ZodString;
|
|
16585
|
+
}, import("zod/v4/core").$strip>;
|
|
16586
|
+
};
|
|
16086
16587
|
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
16087
16588
|
ids: string[];
|
|
16088
16589
|
}>;
|
|
@@ -16101,8 +16602,10 @@ export declare const orpc: {
|
|
|
16101
16602
|
options: string[];
|
|
16102
16603
|
isVisible: boolean;
|
|
16103
16604
|
order: number;
|
|
16605
|
+
plugin: string | null;
|
|
16104
16606
|
archivedAt: string | null;
|
|
16105
16607
|
createdAt: string;
|
|
16608
|
+
pluginTitle: string | null;
|
|
16106
16609
|
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
16107
16610
|
UNAUTHORIZED: {
|
|
16108
16611
|
status: number;
|
|
@@ -16193,6 +16696,13 @@ export declare const orpc: {
|
|
|
16193
16696
|
groupId: import("zod").ZodString;
|
|
16194
16697
|
}, import("zod/v4/core").$strip>>;
|
|
16195
16698
|
};
|
|
16699
|
+
PLUGIN_FIELD: {
|
|
16700
|
+
status: number;
|
|
16701
|
+
data: import("zod").ZodObject<{
|
|
16702
|
+
fieldId: import("zod").ZodString;
|
|
16703
|
+
plugin: import("zod").ZodString;
|
|
16704
|
+
}, import("zod/v4/core").$strip>;
|
|
16705
|
+
};
|
|
16196
16706
|
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
16197
16707
|
id: string;
|
|
16198
16708
|
}>;
|
|
@@ -16290,6 +16800,13 @@ export declare const orpc: {
|
|
|
16290
16800
|
groupId: import("zod").ZodString;
|
|
16291
16801
|
}, import("zod/v4/core").$strip>>;
|
|
16292
16802
|
};
|
|
16803
|
+
PLUGIN_FIELD: {
|
|
16804
|
+
status: number;
|
|
16805
|
+
data: import("zod").ZodObject<{
|
|
16806
|
+
fieldId: import("zod").ZodString;
|
|
16807
|
+
plugin: import("zod").ZodString;
|
|
16808
|
+
}, import("zod/v4/core").$strip>;
|
|
16809
|
+
};
|
|
16293
16810
|
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
16294
16811
|
ids: string[];
|
|
16295
16812
|
}>;
|
|
@@ -16387,6 +16904,13 @@ export declare const orpc: {
|
|
|
16387
16904
|
groupId: import("zod").ZodString;
|
|
16388
16905
|
}, import("zod/v4/core").$strip>>;
|
|
16389
16906
|
};
|
|
16907
|
+
PLUGIN_FIELD: {
|
|
16908
|
+
status: number;
|
|
16909
|
+
data: import("zod").ZodObject<{
|
|
16910
|
+
fieldId: import("zod").ZodString;
|
|
16911
|
+
plugin: import("zod").ZodString;
|
|
16912
|
+
}, import("zod/v4/core").$strip>;
|
|
16913
|
+
};
|
|
16390
16914
|
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
16391
16915
|
id: string;
|
|
16392
16916
|
}>;
|
|
@@ -21831,7 +22355,7 @@ export declare const orpc: {
|
|
|
21831
22355
|
customerApp?: {
|
|
21832
22356
|
origins: string[];
|
|
21833
22357
|
} | undefined;
|
|
21834
|
-
scopes?: ("activities:write" | "audit:write" | "customers:read" | "customers:write" | "emails:write" | "events:read" | "events:write" | "files:read" | "files:write" | "live:write" | "notifications:write" | "payments:read" | "payments:write" | "products:read" | "products:write" | "users:read")[] | undefined;
|
|
22358
|
+
scopes?: ("activities:write" | "audit:write" | "customers:read" | "customers:write" | "emails:write" | "events:read" | "events:write" | "fields:write" | "files:read" | "files:write" | "live:write" | "notifications:write" | "payments:read" | "payments:write" | "products:read" | "products:write" | "users:read" | "views:read")[] | undefined;
|
|
21835
22359
|
permissions?: {
|
|
21836
22360
|
action: string;
|
|
21837
22361
|
label: string;
|
|
@@ -21857,7 +22381,7 @@ export declare const orpc: {
|
|
|
21857
22381
|
fields?: {
|
|
21858
22382
|
key: string;
|
|
21859
22383
|
label: string;
|
|
21860
|
-
type: "boolean" | "custom_field" | "date" | "json" | "lead_stage" | "longtext" | "members" | "number" | "recipients" | "select" | "tags" | "text";
|
|
22384
|
+
type: "boolean" | "custom_field" | "date" | "json" | "lead_stage" | "longtext" | "members" | "number" | "plugin_record" | "recipients" | "select" | "tags" | "text";
|
|
21861
22385
|
required?: boolean | undefined;
|
|
21862
22386
|
options?: {
|
|
21863
22387
|
value: string;
|
|
@@ -21866,12 +22390,15 @@ export declare const orpc: {
|
|
|
21866
22390
|
description?: string | undefined;
|
|
21867
22391
|
placeholder?: string | undefined;
|
|
21868
22392
|
sameTypeAs?: string | undefined;
|
|
22393
|
+
recordType?: string | undefined;
|
|
22394
|
+
dependsOn?: string | undefined;
|
|
21869
22395
|
}[] | undefined;
|
|
21870
22396
|
}[] | undefined;
|
|
21871
22397
|
timelines?: {
|
|
21872
22398
|
type: string;
|
|
21873
22399
|
label: string;
|
|
21874
22400
|
permission?: string | undefined;
|
|
22401
|
+
recordAccess?: boolean | undefined;
|
|
21875
22402
|
}[] | undefined;
|
|
21876
22403
|
activityTypes?: {
|
|
21877
22404
|
type: string;
|
|
@@ -21883,12 +22410,21 @@ export declare const orpc: {
|
|
|
21883
22410
|
jobs?: {
|
|
21884
22411
|
name: string;
|
|
21885
22412
|
cron?: string | undefined;
|
|
22413
|
+
onInstall?: boolean | undefined;
|
|
21886
22414
|
retry?: {
|
|
21887
22415
|
attempts: number;
|
|
21888
22416
|
delay: number;
|
|
21889
22417
|
maxDelay: number;
|
|
21890
22418
|
} | undefined;
|
|
21891
22419
|
}[] | undefined;
|
|
22420
|
+
fields?: {
|
|
22421
|
+
code: string;
|
|
22422
|
+
contentType: "company" | "customer";
|
|
22423
|
+
label: string;
|
|
22424
|
+
type: "date" | "multiselect" | "number" | "select" | "text";
|
|
22425
|
+
options?: string[] | undefined;
|
|
22426
|
+
description?: string | undefined;
|
|
22427
|
+
}[] | undefined;
|
|
21892
22428
|
events?: {
|
|
21893
22429
|
type: string;
|
|
21894
22430
|
label: string;
|
|
@@ -22023,7 +22559,7 @@ export declare const orpc: {
|
|
|
22023
22559
|
customerApp?: {
|
|
22024
22560
|
origins: string[];
|
|
22025
22561
|
} | undefined;
|
|
22026
|
-
scopes?: ("activities:write" | "audit:write" | "customers:read" | "customers:write" | "emails:write" | "events:read" | "events:write" | "files:read" | "files:write" | "live:write" | "notifications:write" | "payments:read" | "payments:write" | "products:read" | "products:write" | "users:read")[] | undefined;
|
|
22562
|
+
scopes?: ("activities:write" | "audit:write" | "customers:read" | "customers:write" | "emails:write" | "events:read" | "events:write" | "fields:write" | "files:read" | "files:write" | "live:write" | "notifications:write" | "payments:read" | "payments:write" | "products:read" | "products:write" | "users:read" | "views:read")[] | undefined;
|
|
22027
22563
|
permissions?: {
|
|
22028
22564
|
action: string;
|
|
22029
22565
|
label: string;
|
|
@@ -22049,7 +22585,7 @@ export declare const orpc: {
|
|
|
22049
22585
|
fields?: {
|
|
22050
22586
|
key: string;
|
|
22051
22587
|
label: string;
|
|
22052
|
-
type: "boolean" | "custom_field" | "date" | "json" | "lead_stage" | "longtext" | "members" | "number" | "recipients" | "select" | "tags" | "text";
|
|
22588
|
+
type: "boolean" | "custom_field" | "date" | "json" | "lead_stage" | "longtext" | "members" | "number" | "plugin_record" | "recipients" | "select" | "tags" | "text";
|
|
22053
22589
|
required?: boolean | undefined;
|
|
22054
22590
|
options?: {
|
|
22055
22591
|
value: string;
|
|
@@ -22058,12 +22594,15 @@ export declare const orpc: {
|
|
|
22058
22594
|
description?: string | undefined;
|
|
22059
22595
|
placeholder?: string | undefined;
|
|
22060
22596
|
sameTypeAs?: string | undefined;
|
|
22597
|
+
recordType?: string | undefined;
|
|
22598
|
+
dependsOn?: string | undefined;
|
|
22061
22599
|
}[] | undefined;
|
|
22062
22600
|
}[] | undefined;
|
|
22063
22601
|
timelines?: {
|
|
22064
22602
|
type: string;
|
|
22065
22603
|
label: string;
|
|
22066
22604
|
permission?: string | undefined;
|
|
22605
|
+
recordAccess?: boolean | undefined;
|
|
22067
22606
|
}[] | undefined;
|
|
22068
22607
|
activityTypes?: {
|
|
22069
22608
|
type: string;
|
|
@@ -22075,12 +22614,21 @@ export declare const orpc: {
|
|
|
22075
22614
|
jobs?: {
|
|
22076
22615
|
name: string;
|
|
22077
22616
|
cron?: string | undefined;
|
|
22617
|
+
onInstall?: boolean | undefined;
|
|
22078
22618
|
retry?: {
|
|
22079
22619
|
attempts: number;
|
|
22080
22620
|
delay: number;
|
|
22081
22621
|
maxDelay: number;
|
|
22082
22622
|
} | undefined;
|
|
22083
22623
|
}[] | undefined;
|
|
22624
|
+
fields?: {
|
|
22625
|
+
code: string;
|
|
22626
|
+
contentType: "company" | "customer";
|
|
22627
|
+
label: string;
|
|
22628
|
+
type: "date" | "multiselect" | "number" | "select" | "text";
|
|
22629
|
+
options?: string[] | undefined;
|
|
22630
|
+
description?: string | undefined;
|
|
22631
|
+
}[] | undefined;
|
|
22084
22632
|
events?: {
|
|
22085
22633
|
type: string;
|
|
22086
22634
|
label: string;
|
|
@@ -29246,11 +29794,11 @@ export declare const orpc: {
|
|
|
29246
29794
|
} & import("@orpc/tanstack-query").GeneralUtils<unknown>;
|
|
29247
29795
|
views: {
|
|
29248
29796
|
list: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
29249
|
-
recordType: "company" | "company_lead" | "customer" | "lead" | "product"
|
|
29797
|
+
recordType: "company" | "company_lead" | "customer" | "lead" | "product" | `${string}:${string}`;
|
|
29250
29798
|
}, {
|
|
29251
29799
|
data: {
|
|
29252
29800
|
id: string;
|
|
29253
|
-
recordType: "company" | "company_lead" | "customer" | "lead" | "product"
|
|
29801
|
+
recordType: "company" | "company_lead" | "customer" | "lead" | "product" | `${string}:${string}`;
|
|
29254
29802
|
name: string;
|
|
29255
29803
|
filter: ConditionGroup | null;
|
|
29256
29804
|
search: string | null;
|
|
@@ -29343,8 +29891,14 @@ export declare const orpc: {
|
|
|
29343
29891
|
FILTER_TOO_SLOW: {
|
|
29344
29892
|
status: number;
|
|
29345
29893
|
};
|
|
29894
|
+
INVALID_TYPE: {
|
|
29895
|
+
status: number;
|
|
29896
|
+
};
|
|
29897
|
+
VIEW_NOT_SHARED: {
|
|
29898
|
+
status: number;
|
|
29899
|
+
};
|
|
29346
29900
|
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
29347
|
-
recordType: "company" | "company_lead" | "customer" | "lead" | "product"
|
|
29901
|
+
recordType: "company" | "company_lead" | "customer" | "lead" | "product" | `${string}:${string}`;
|
|
29348
29902
|
}>;
|
|
29349
29903
|
create: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
29350
29904
|
name: string;
|
|
@@ -29356,10 +29910,10 @@ export declare const orpc: {
|
|
|
29356
29910
|
direction: "asc" | "desc";
|
|
29357
29911
|
} | null | undefined;
|
|
29358
29912
|
shared?: boolean | undefined;
|
|
29359
|
-
recordType: "company" | "company_lead" | "customer" | "lead" | "product"
|
|
29913
|
+
recordType: "company" | "company_lead" | "customer" | "lead" | "product" | `${string}:${string}`;
|
|
29360
29914
|
}, {
|
|
29361
29915
|
id: string;
|
|
29362
|
-
recordType: "company" | "company_lead" | "customer" | "lead" | "product"
|
|
29916
|
+
recordType: "company" | "company_lead" | "customer" | "lead" | "product" | `${string}:${string}`;
|
|
29363
29917
|
name: string;
|
|
29364
29918
|
filter: ConditionGroup | null;
|
|
29365
29919
|
search: string | null;
|
|
@@ -29451,6 +30005,12 @@ export declare const orpc: {
|
|
|
29451
30005
|
FILTER_TOO_SLOW: {
|
|
29452
30006
|
status: number;
|
|
29453
30007
|
};
|
|
30008
|
+
INVALID_TYPE: {
|
|
30009
|
+
status: number;
|
|
30010
|
+
};
|
|
30011
|
+
VIEW_NOT_SHARED: {
|
|
30012
|
+
status: number;
|
|
30013
|
+
};
|
|
29454
30014
|
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
29455
30015
|
name: string;
|
|
29456
30016
|
filter?: unknown;
|
|
@@ -29461,7 +30021,7 @@ export declare const orpc: {
|
|
|
29461
30021
|
direction: "asc" | "desc";
|
|
29462
30022
|
} | null | undefined;
|
|
29463
30023
|
shared?: boolean | undefined;
|
|
29464
|
-
recordType: "company" | "company_lead" | "customer" | "lead" | "product"
|
|
30024
|
+
recordType: "company" | "company_lead" | "customer" | "lead" | "product" | `${string}:${string}`;
|
|
29465
30025
|
}>;
|
|
29466
30026
|
update: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
29467
30027
|
name?: string | undefined;
|
|
@@ -29476,7 +30036,7 @@ export declare const orpc: {
|
|
|
29476
30036
|
id: string;
|
|
29477
30037
|
}, {
|
|
29478
30038
|
id: string;
|
|
29479
|
-
recordType: "company" | "company_lead" | "customer" | "lead" | "product"
|
|
30039
|
+
recordType: "company" | "company_lead" | "customer" | "lead" | "product" | `${string}:${string}`;
|
|
29480
30040
|
name: string;
|
|
29481
30041
|
filter: ConditionGroup | null;
|
|
29482
30042
|
search: string | null;
|
|
@@ -29568,6 +30128,12 @@ export declare const orpc: {
|
|
|
29568
30128
|
FILTER_TOO_SLOW: {
|
|
29569
30129
|
status: number;
|
|
29570
30130
|
};
|
|
30131
|
+
INVALID_TYPE: {
|
|
30132
|
+
status: number;
|
|
30133
|
+
};
|
|
30134
|
+
VIEW_NOT_SHARED: {
|
|
30135
|
+
status: number;
|
|
30136
|
+
};
|
|
29571
30137
|
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
29572
30138
|
name?: string | undefined;
|
|
29573
30139
|
filter?: unknown;
|
|
@@ -29662,6 +30228,12 @@ export declare const orpc: {
|
|
|
29662
30228
|
FILTER_TOO_SLOW: {
|
|
29663
30229
|
status: number;
|
|
29664
30230
|
};
|
|
30231
|
+
INVALID_TYPE: {
|
|
30232
|
+
status: number;
|
|
30233
|
+
};
|
|
30234
|
+
VIEW_NOT_SHARED: {
|
|
30235
|
+
status: number;
|
|
30236
|
+
};
|
|
29665
30237
|
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
29666
30238
|
id: string;
|
|
29667
30239
|
}>;
|
|
@@ -29673,7 +30245,8 @@ export declare const orpc: {
|
|
|
29673
30245
|
label: string;
|
|
29674
30246
|
type: "boolean" | "date" | "member" | "number" | "select" | "tags" | "text";
|
|
29675
30247
|
options?: string[] | undefined;
|
|
29676
|
-
group: "activity" | "company" | "custom" | "fields" | "lead";
|
|
30248
|
+
group: "activity" | "company" | "custom" | "fields" | "lead" | "plugin";
|
|
30249
|
+
groupLabel?: string | undefined;
|
|
29677
30250
|
}[];
|
|
29678
30251
|
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
29679
30252
|
UNAUTHORIZED: {
|
|
@@ -29753,19 +30326,20 @@ export declare const orpc: {
|
|
|
29753
30326
|
FILTER_TOO_SLOW: {
|
|
29754
30327
|
status: number;
|
|
29755
30328
|
};
|
|
30329
|
+
INVALID_TYPE: {
|
|
30330
|
+
status: number;
|
|
30331
|
+
};
|
|
30332
|
+
VIEW_NOT_SHARED: {
|
|
30333
|
+
status: number;
|
|
30334
|
+
};
|
|
29756
30335
|
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
29757
30336
|
recordType: "company" | "company_lead" | "customer" | "lead" | "product";
|
|
29758
30337
|
}>;
|
|
29759
|
-
|
|
29760
|
-
|
|
29761
|
-
|
|
29762
|
-
|
|
29763
|
-
|
|
29764
|
-
label: string;
|
|
29765
|
-
description: string | null;
|
|
29766
|
-
source: string;
|
|
29767
|
-
subject: "company" | "customer" | null;
|
|
29768
|
-
}[];
|
|
30338
|
+
matches: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
30339
|
+
viewId: string;
|
|
30340
|
+
recordIds: string[];
|
|
30341
|
+
}, {
|
|
30342
|
+
recordIds: string[];
|
|
29769
30343
|
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
29770
30344
|
UNAUTHORIZED: {
|
|
29771
30345
|
status: number;
|
|
@@ -29844,24 +30418,25 @@ export declare const orpc: {
|
|
|
29844
30418
|
FILTER_TOO_SLOW: {
|
|
29845
30419
|
status: number;
|
|
29846
30420
|
};
|
|
29847
|
-
|
|
30421
|
+
INVALID_TYPE: {
|
|
29848
30422
|
status: number;
|
|
29849
30423
|
};
|
|
29850
|
-
|
|
30424
|
+
VIEW_NOT_SHARED: {
|
|
29851
30425
|
status: number;
|
|
29852
30426
|
};
|
|
29853
|
-
}>>> & import("@orpc/tanstack-query").GeneralUtils<
|
|
29854
|
-
|
|
30427
|
+
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
30428
|
+
viewId: string;
|
|
30429
|
+
recordIds: string[];
|
|
30430
|
+
}>;
|
|
30431
|
+
} & import("@orpc/tanstack-query").GeneralUtils<unknown>;
|
|
30432
|
+
webhooks: {
|
|
30433
|
+
eventTypes: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, unknown, {
|
|
29855
30434
|
data: {
|
|
29856
|
-
|
|
29857
|
-
|
|
30435
|
+
type: string;
|
|
30436
|
+
label: string;
|
|
29858
30437
|
description: string | null;
|
|
29859
|
-
|
|
29860
|
-
|
|
29861
|
-
disabledReason: string | null;
|
|
29862
|
-
consecutiveFailures: number;
|
|
29863
|
-
createdAt: string;
|
|
29864
|
-
updatedAt: string;
|
|
30438
|
+
source: string;
|
|
30439
|
+
subject: "company" | "customer" | null;
|
|
29865
30440
|
}[];
|
|
29866
30441
|
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
29867
30442
|
UNAUTHORIZED: {
|
|
@@ -29948,9 +30523,106 @@ export declare const orpc: {
|
|
|
29948
30523
|
status: number;
|
|
29949
30524
|
};
|
|
29950
30525
|
}>>> & import("@orpc/tanstack-query").GeneralUtils<unknown>;
|
|
29951
|
-
|
|
29952
|
-
|
|
29953
|
-
|
|
30526
|
+
list: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, unknown, {
|
|
30527
|
+
data: {
|
|
30528
|
+
id: string;
|
|
30529
|
+
url: string;
|
|
30530
|
+
description: string | null;
|
|
30531
|
+
eventTypes: string[];
|
|
30532
|
+
status: "active" | "disabled";
|
|
30533
|
+
disabledReason: string | null;
|
|
30534
|
+
consecutiveFailures: number;
|
|
30535
|
+
createdAt: string;
|
|
30536
|
+
updatedAt: string;
|
|
30537
|
+
}[];
|
|
30538
|
+
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
30539
|
+
UNAUTHORIZED: {
|
|
30540
|
+
status: number;
|
|
30541
|
+
};
|
|
30542
|
+
NOT_ALLOWED: {
|
|
30543
|
+
status: number;
|
|
30544
|
+
data: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
30545
|
+
permission: import("zod").ZodString;
|
|
30546
|
+
}, import("zod/v4/core").$strip>>;
|
|
30547
|
+
};
|
|
30548
|
+
PLUGIN_ONLY: {
|
|
30549
|
+
status: number;
|
|
30550
|
+
};
|
|
30551
|
+
MEMBERS_ONLY: {
|
|
30552
|
+
status: number;
|
|
30553
|
+
};
|
|
30554
|
+
ORG_REQUIRED: {
|
|
30555
|
+
status: number;
|
|
30556
|
+
};
|
|
30557
|
+
SCOPE_REQUIRED: {
|
|
30558
|
+
status: number;
|
|
30559
|
+
};
|
|
30560
|
+
SERVICE_TOKEN_REQUIRED: {
|
|
30561
|
+
status: number;
|
|
30562
|
+
};
|
|
30563
|
+
ORGANIZATION_DISABLED: {
|
|
30564
|
+
status: number;
|
|
30565
|
+
data: import("zod").ZodObject<{
|
|
30566
|
+
manageUrl: import("zod").ZodNullable<import("zod").ZodString>;
|
|
30567
|
+
}, import("zod/v4/core").$strip>;
|
|
30568
|
+
};
|
|
30569
|
+
NOT_IN_PLAN: {
|
|
30570
|
+
status: number;
|
|
30571
|
+
data: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
30572
|
+
manageUrl: import("zod").ZodNullable<import("zod").ZodString>;
|
|
30573
|
+
}, import("zod/v4/core").$strip>>;
|
|
30574
|
+
};
|
|
30575
|
+
READ_ONLY: {
|
|
30576
|
+
status: number;
|
|
30577
|
+
};
|
|
30578
|
+
TOO_MANY_REQUESTS: {
|
|
30579
|
+
status: number;
|
|
30580
|
+
};
|
|
30581
|
+
INVALID_INPUT: {
|
|
30582
|
+
status: number;
|
|
30583
|
+
data: import("zod").ZodObject<{
|
|
30584
|
+
issues: import("zod").ZodArray<import("zod").ZodObject<{
|
|
30585
|
+
path: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodInt]>>;
|
|
30586
|
+
message: import("zod").ZodString;
|
|
30587
|
+
}, import("zod/v4/core").$strip>>;
|
|
30588
|
+
}, import("zod/v4/core").$strip>;
|
|
30589
|
+
};
|
|
30590
|
+
NOT_FOUND: {
|
|
30591
|
+
status: number;
|
|
30592
|
+
};
|
|
30593
|
+
TAKEN: {
|
|
30594
|
+
status: number;
|
|
30595
|
+
data: import("zod").ZodObject<{
|
|
30596
|
+
field: import("zod").ZodString;
|
|
30597
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
30598
|
+
values: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
30599
|
+
}, import("zod/v4/core").$strip>;
|
|
30600
|
+
};
|
|
30601
|
+
INVALID_CURSOR: {
|
|
30602
|
+
status: number;
|
|
30603
|
+
};
|
|
30604
|
+
INVALID_REFERENCE: {
|
|
30605
|
+
status: number;
|
|
30606
|
+
data: import("zod").ZodObject<{
|
|
30607
|
+
field: import("zod").ZodString;
|
|
30608
|
+
}, import("zod/v4/core").$strip>;
|
|
30609
|
+
};
|
|
30610
|
+
INVALID_FILTER: {
|
|
30611
|
+
status: number;
|
|
30612
|
+
};
|
|
30613
|
+
FILTER_TOO_SLOW: {
|
|
30614
|
+
status: number;
|
|
30615
|
+
};
|
|
30616
|
+
INVALID_URL: {
|
|
30617
|
+
status: number;
|
|
30618
|
+
};
|
|
30619
|
+
LIMIT_EXCEEDED: {
|
|
30620
|
+
status: number;
|
|
30621
|
+
};
|
|
30622
|
+
}>>> & import("@orpc/tanstack-query").GeneralUtils<unknown>;
|
|
30623
|
+
create: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
30624
|
+
url: string;
|
|
30625
|
+
description?: string | null | undefined;
|
|
29954
30626
|
eventTypes: string[];
|
|
29955
30627
|
}, {
|
|
29956
30628
|
webhook: {
|
|
@@ -31168,6 +31840,13 @@ export declare const contactQueries: {
|
|
|
31168
31840
|
NOT_A_LEAD: {
|
|
31169
31841
|
status: number;
|
|
31170
31842
|
};
|
|
31843
|
+
PLUGIN_FIELD: {
|
|
31844
|
+
status: number;
|
|
31845
|
+
data: import("zod").ZodObject<{
|
|
31846
|
+
fieldId: import("zod").ZodString;
|
|
31847
|
+
plugin: import("zod").ZodString;
|
|
31848
|
+
}, import("zod/v4/core").$strip>;
|
|
31849
|
+
};
|
|
31171
31850
|
TAG_LIMIT: {
|
|
31172
31851
|
status: number;
|
|
31173
31852
|
};
|
|
@@ -31313,6 +31992,354 @@ export declare const contactQueries: {
|
|
|
31313
31992
|
NOT_A_LEAD: {
|
|
31314
31993
|
status: number;
|
|
31315
31994
|
};
|
|
31995
|
+
PLUGIN_FIELD: {
|
|
31996
|
+
status: number;
|
|
31997
|
+
data: import("zod").ZodObject<{
|
|
31998
|
+
fieldId: import("zod").ZodString;
|
|
31999
|
+
plugin: import("zod").ZodString;
|
|
32000
|
+
}, import("zod/v4/core").$strip>;
|
|
32001
|
+
};
|
|
32002
|
+
TAG_LIMIT: {
|
|
32003
|
+
status: number;
|
|
32004
|
+
};
|
|
32005
|
+
}>>>, "input" | "staleTime">>;
|
|
32006
|
+
};
|
|
32007
|
+
/**
|
|
32008
|
+
* Where erxes-ui's list filter searches customers and companies for `customer` and `company`
|
|
32009
|
+
* fields: `<ListFilter contacts={contactSearchQueries} … />`. A rule's picked contacts load by id.
|
|
32010
|
+
*/
|
|
32011
|
+
export declare const contactSearchQueries: {
|
|
32012
|
+
customers: ({ search, ids }: {
|
|
32013
|
+
search?: string;
|
|
32014
|
+
ids?: string[];
|
|
32015
|
+
}) => NoInfer<{
|
|
32016
|
+
input: {
|
|
32017
|
+
limit: number;
|
|
32018
|
+
search: string | undefined;
|
|
32019
|
+
ids: string | undefined;
|
|
32020
|
+
};
|
|
32021
|
+
staleTime: number;
|
|
32022
|
+
} & Omit<import("@orpc/tanstack-query").QueryOptionsBase<{
|
|
32023
|
+
data: {
|
|
32024
|
+
id: string;
|
|
32025
|
+
state: "customer" | "lead";
|
|
32026
|
+
firstName: string | null;
|
|
32027
|
+
middleName: string | null;
|
|
32028
|
+
lastName: string | null;
|
|
32029
|
+
avatarUrl: string | null;
|
|
32030
|
+
primaryEmail: string | null;
|
|
32031
|
+
emails: string[];
|
|
32032
|
+
primaryPhone: string | null;
|
|
32033
|
+
phones: string[];
|
|
32034
|
+
sex: 0 | 1 | 2 | 9 | null;
|
|
32035
|
+
birthDate: string | null;
|
|
32036
|
+
position: string | null;
|
|
32037
|
+
department: string | null;
|
|
32038
|
+
code: string | null;
|
|
32039
|
+
description: string | null;
|
|
32040
|
+
ownerId: string | null;
|
|
32041
|
+
leadStageId: string | null;
|
|
32042
|
+
leadStageChangedAt: string | null;
|
|
32043
|
+
disqualifyReason: string | null;
|
|
32044
|
+
source: string | null;
|
|
32045
|
+
sourceDetails: Record<string, string>;
|
|
32046
|
+
convertedAt: string | null;
|
|
32047
|
+
lastActivityAt: string;
|
|
32048
|
+
createdAt: string;
|
|
32049
|
+
updatedAt: string;
|
|
32050
|
+
tagIds: string[];
|
|
32051
|
+
customFields: Record<string, string | number | boolean | string[]>;
|
|
32052
|
+
}[];
|
|
32053
|
+
pageInfo: {
|
|
32054
|
+
hasNextPage: boolean;
|
|
32055
|
+
hasPreviousPage: boolean;
|
|
32056
|
+
startCursor: string | null;
|
|
32057
|
+
endCursor: string | null;
|
|
32058
|
+
};
|
|
32059
|
+
totalCount: number;
|
|
32060
|
+
totalCapped?: boolean | undefined;
|
|
32061
|
+
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
32062
|
+
UNAUTHORIZED: {
|
|
32063
|
+
status: number;
|
|
32064
|
+
};
|
|
32065
|
+
NOT_ALLOWED: {
|
|
32066
|
+
status: number;
|
|
32067
|
+
data: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
32068
|
+
permission: import("zod").ZodString;
|
|
32069
|
+
}, import("zod/v4/core").$strip>>;
|
|
32070
|
+
};
|
|
32071
|
+
PLUGIN_ONLY: {
|
|
32072
|
+
status: number;
|
|
32073
|
+
};
|
|
32074
|
+
MEMBERS_ONLY: {
|
|
32075
|
+
status: number;
|
|
32076
|
+
};
|
|
32077
|
+
ORG_REQUIRED: {
|
|
32078
|
+
status: number;
|
|
32079
|
+
};
|
|
32080
|
+
SCOPE_REQUIRED: {
|
|
32081
|
+
status: number;
|
|
32082
|
+
};
|
|
32083
|
+
SERVICE_TOKEN_REQUIRED: {
|
|
32084
|
+
status: number;
|
|
32085
|
+
};
|
|
32086
|
+
ORGANIZATION_DISABLED: {
|
|
32087
|
+
status: number;
|
|
32088
|
+
data: import("zod").ZodObject<{
|
|
32089
|
+
manageUrl: import("zod").ZodNullable<import("zod").ZodString>;
|
|
32090
|
+
}, import("zod/v4/core").$strip>;
|
|
32091
|
+
};
|
|
32092
|
+
NOT_IN_PLAN: {
|
|
32093
|
+
status: number;
|
|
32094
|
+
data: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
32095
|
+
manageUrl: import("zod").ZodNullable<import("zod").ZodString>;
|
|
32096
|
+
}, import("zod/v4/core").$strip>>;
|
|
32097
|
+
};
|
|
32098
|
+
READ_ONLY: {
|
|
32099
|
+
status: number;
|
|
32100
|
+
};
|
|
32101
|
+
TOO_MANY_REQUESTS: {
|
|
32102
|
+
status: number;
|
|
32103
|
+
};
|
|
32104
|
+
INVALID_INPUT: {
|
|
32105
|
+
status: number;
|
|
32106
|
+
data: import("zod").ZodObject<{
|
|
32107
|
+
issues: import("zod").ZodArray<import("zod").ZodObject<{
|
|
32108
|
+
path: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodInt]>>;
|
|
32109
|
+
message: import("zod").ZodString;
|
|
32110
|
+
}, import("zod/v4/core").$strip>>;
|
|
32111
|
+
}, import("zod/v4/core").$strip>;
|
|
32112
|
+
};
|
|
32113
|
+
NOT_FOUND: {
|
|
32114
|
+
status: number;
|
|
32115
|
+
};
|
|
32116
|
+
TAKEN: {
|
|
32117
|
+
status: number;
|
|
32118
|
+
data: import("zod").ZodObject<{
|
|
32119
|
+
field: import("zod").ZodString;
|
|
32120
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
32121
|
+
values: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
32122
|
+
}, import("zod/v4/core").$strip>;
|
|
32123
|
+
};
|
|
32124
|
+
INVALID_CURSOR: {
|
|
32125
|
+
status: number;
|
|
32126
|
+
};
|
|
32127
|
+
INVALID_REFERENCE: {
|
|
32128
|
+
status: number;
|
|
32129
|
+
data: import("zod").ZodObject<{
|
|
32130
|
+
field: import("zod").ZodString;
|
|
32131
|
+
}, import("zod/v4/core").$strip>;
|
|
32132
|
+
};
|
|
32133
|
+
INVALID_FILTER: {
|
|
32134
|
+
status: number;
|
|
32135
|
+
};
|
|
32136
|
+
FILTER_TOO_SLOW: {
|
|
32137
|
+
status: number;
|
|
32138
|
+
};
|
|
32139
|
+
INVALID_ACTOR: {
|
|
32140
|
+
status: number;
|
|
32141
|
+
};
|
|
32142
|
+
INVALID_FIELD: {
|
|
32143
|
+
status: number;
|
|
32144
|
+
data: import("zod").ZodObject<{
|
|
32145
|
+
fieldId: import("zod").ZodString;
|
|
32146
|
+
}, import("zod/v4/core").$strip>;
|
|
32147
|
+
};
|
|
32148
|
+
INVALID_FIELD_VALUE: {
|
|
32149
|
+
status: number;
|
|
32150
|
+
data: import("zod").ZodObject<{
|
|
32151
|
+
fieldId: import("zod").ZodString;
|
|
32152
|
+
}, import("zod/v4/core").$strip>;
|
|
32153
|
+
};
|
|
32154
|
+
INVALID_OWNER: {
|
|
32155
|
+
status: number;
|
|
32156
|
+
};
|
|
32157
|
+
INVALID_TAG: {
|
|
32158
|
+
status: number;
|
|
32159
|
+
};
|
|
32160
|
+
INVALID_TYPE: {
|
|
32161
|
+
status: number;
|
|
32162
|
+
};
|
|
32163
|
+
MASS_DELETE_STOPPED: {
|
|
32164
|
+
status: number;
|
|
32165
|
+
};
|
|
32166
|
+
NOT_A_LEAD: {
|
|
32167
|
+
status: number;
|
|
32168
|
+
};
|
|
32169
|
+
PLUGIN_FIELD: {
|
|
32170
|
+
status: number;
|
|
32171
|
+
data: import("zod").ZodObject<{
|
|
32172
|
+
fieldId: import("zod").ZodString;
|
|
32173
|
+
plugin: import("zod").ZodString;
|
|
32174
|
+
}, import("zod/v4/core").$strip>;
|
|
32175
|
+
};
|
|
32176
|
+
TAG_LIMIT: {
|
|
32177
|
+
status: number;
|
|
32178
|
+
};
|
|
32179
|
+
}>>>, "input" | "staleTime">>;
|
|
32180
|
+
companies: ({ search, ids }: {
|
|
32181
|
+
search?: string;
|
|
32182
|
+
ids?: string[];
|
|
32183
|
+
}) => NoInfer<{
|
|
32184
|
+
input: {
|
|
32185
|
+
limit: number;
|
|
32186
|
+
search: string | undefined;
|
|
32187
|
+
ids: string | undefined;
|
|
32188
|
+
};
|
|
32189
|
+
staleTime: number;
|
|
32190
|
+
} & Omit<import("@orpc/tanstack-query").QueryOptionsBase<{
|
|
32191
|
+
data: {
|
|
32192
|
+
id: string;
|
|
32193
|
+
primaryName: string;
|
|
32194
|
+
state: "customer" | "lead";
|
|
32195
|
+
names: string[];
|
|
32196
|
+
avatarUrl: string | null;
|
|
32197
|
+
primaryEmail: string | null;
|
|
32198
|
+
emails: string[];
|
|
32199
|
+
primaryPhone: string | null;
|
|
32200
|
+
phones: string[];
|
|
32201
|
+
website: string | null;
|
|
32202
|
+
industry: string | null;
|
|
32203
|
+
size: number | null;
|
|
32204
|
+
businessType: string | null;
|
|
32205
|
+
code: string | null;
|
|
32206
|
+
description: string | null;
|
|
32207
|
+
ownerId: string | null;
|
|
32208
|
+
leadStageId: string | null;
|
|
32209
|
+
leadStageChangedAt: string | null;
|
|
32210
|
+
disqualifyReason: string | null;
|
|
32211
|
+
source: string | null;
|
|
32212
|
+
sourceDetails: Record<string, string>;
|
|
32213
|
+
convertedAt: string | null;
|
|
32214
|
+
lastActivityAt: string;
|
|
32215
|
+
createdAt: string;
|
|
32216
|
+
updatedAt: string;
|
|
32217
|
+
tagIds: string[];
|
|
32218
|
+
customFields: Record<string, string | number | boolean | string[]>;
|
|
32219
|
+
}[];
|
|
32220
|
+
pageInfo: {
|
|
32221
|
+
hasNextPage: boolean;
|
|
32222
|
+
hasPreviousPage: boolean;
|
|
32223
|
+
startCursor: string | null;
|
|
32224
|
+
endCursor: string | null;
|
|
32225
|
+
};
|
|
32226
|
+
totalCount: number;
|
|
32227
|
+
totalCapped?: boolean | undefined;
|
|
32228
|
+
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
32229
|
+
UNAUTHORIZED: {
|
|
32230
|
+
status: number;
|
|
32231
|
+
};
|
|
32232
|
+
NOT_ALLOWED: {
|
|
32233
|
+
status: number;
|
|
32234
|
+
data: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
32235
|
+
permission: import("zod").ZodString;
|
|
32236
|
+
}, import("zod/v4/core").$strip>>;
|
|
32237
|
+
};
|
|
32238
|
+
PLUGIN_ONLY: {
|
|
32239
|
+
status: number;
|
|
32240
|
+
};
|
|
32241
|
+
MEMBERS_ONLY: {
|
|
32242
|
+
status: number;
|
|
32243
|
+
};
|
|
32244
|
+
ORG_REQUIRED: {
|
|
32245
|
+
status: number;
|
|
32246
|
+
};
|
|
32247
|
+
SCOPE_REQUIRED: {
|
|
32248
|
+
status: number;
|
|
32249
|
+
};
|
|
32250
|
+
SERVICE_TOKEN_REQUIRED: {
|
|
32251
|
+
status: number;
|
|
32252
|
+
};
|
|
32253
|
+
ORGANIZATION_DISABLED: {
|
|
32254
|
+
status: number;
|
|
32255
|
+
data: import("zod").ZodObject<{
|
|
32256
|
+
manageUrl: import("zod").ZodNullable<import("zod").ZodString>;
|
|
32257
|
+
}, import("zod/v4/core").$strip>;
|
|
32258
|
+
};
|
|
32259
|
+
NOT_IN_PLAN: {
|
|
32260
|
+
status: number;
|
|
32261
|
+
data: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
32262
|
+
manageUrl: import("zod").ZodNullable<import("zod").ZodString>;
|
|
32263
|
+
}, import("zod/v4/core").$strip>>;
|
|
32264
|
+
};
|
|
32265
|
+
READ_ONLY: {
|
|
32266
|
+
status: number;
|
|
32267
|
+
};
|
|
32268
|
+
TOO_MANY_REQUESTS: {
|
|
32269
|
+
status: number;
|
|
32270
|
+
};
|
|
32271
|
+
INVALID_INPUT: {
|
|
32272
|
+
status: number;
|
|
32273
|
+
data: import("zod").ZodObject<{
|
|
32274
|
+
issues: import("zod").ZodArray<import("zod").ZodObject<{
|
|
32275
|
+
path: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodInt]>>;
|
|
32276
|
+
message: import("zod").ZodString;
|
|
32277
|
+
}, import("zod/v4/core").$strip>>;
|
|
32278
|
+
}, import("zod/v4/core").$strip>;
|
|
32279
|
+
};
|
|
32280
|
+
NOT_FOUND: {
|
|
32281
|
+
status: number;
|
|
32282
|
+
};
|
|
32283
|
+
TAKEN: {
|
|
32284
|
+
status: number;
|
|
32285
|
+
data: import("zod").ZodObject<{
|
|
32286
|
+
field: import("zod").ZodString;
|
|
32287
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
32288
|
+
values: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
32289
|
+
}, import("zod/v4/core").$strip>;
|
|
32290
|
+
};
|
|
32291
|
+
INVALID_CURSOR: {
|
|
32292
|
+
status: number;
|
|
32293
|
+
};
|
|
32294
|
+
INVALID_REFERENCE: {
|
|
32295
|
+
status: number;
|
|
32296
|
+
data: import("zod").ZodObject<{
|
|
32297
|
+
field: import("zod").ZodString;
|
|
32298
|
+
}, import("zod/v4/core").$strip>;
|
|
32299
|
+
};
|
|
32300
|
+
INVALID_FILTER: {
|
|
32301
|
+
status: number;
|
|
32302
|
+
};
|
|
32303
|
+
FILTER_TOO_SLOW: {
|
|
32304
|
+
status: number;
|
|
32305
|
+
};
|
|
32306
|
+
INVALID_ACTOR: {
|
|
32307
|
+
status: number;
|
|
32308
|
+
};
|
|
32309
|
+
INVALID_FIELD: {
|
|
32310
|
+
status: number;
|
|
32311
|
+
data: import("zod").ZodObject<{
|
|
32312
|
+
fieldId: import("zod").ZodString;
|
|
32313
|
+
}, import("zod/v4/core").$strip>;
|
|
32314
|
+
};
|
|
32315
|
+
INVALID_FIELD_VALUE: {
|
|
32316
|
+
status: number;
|
|
32317
|
+
data: import("zod").ZodObject<{
|
|
32318
|
+
fieldId: import("zod").ZodString;
|
|
32319
|
+
}, import("zod/v4/core").$strip>;
|
|
32320
|
+
};
|
|
32321
|
+
INVALID_OWNER: {
|
|
32322
|
+
status: number;
|
|
32323
|
+
};
|
|
32324
|
+
INVALID_TAG: {
|
|
32325
|
+
status: number;
|
|
32326
|
+
};
|
|
32327
|
+
INVALID_TYPE: {
|
|
32328
|
+
status: number;
|
|
32329
|
+
};
|
|
32330
|
+
MASS_DELETE_STOPPED: {
|
|
32331
|
+
status: number;
|
|
32332
|
+
};
|
|
32333
|
+
NOT_A_LEAD: {
|
|
32334
|
+
status: number;
|
|
32335
|
+
};
|
|
32336
|
+
PLUGIN_FIELD: {
|
|
32337
|
+
status: number;
|
|
32338
|
+
data: import("zod").ZodObject<{
|
|
32339
|
+
fieldId: import("zod").ZodString;
|
|
32340
|
+
plugin: import("zod").ZodString;
|
|
32341
|
+
}, import("zod/v4/core").$strip>;
|
|
32342
|
+
};
|
|
31316
32343
|
TAG_LIMIT: {
|
|
31317
32344
|
status: number;
|
|
31318
32345
|
};
|