lancer-shared 1.2.30 → 1.2.31

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 (47) hide show
  1. package/dist/schemas/agent/index.d.ts +94 -18
  2. package/package.json +1 -1
  3. package/dist/constants/collections.d.ts +0 -13
  4. package/dist/constants/organization.d.ts +0 -2
  5. package/dist/schemas/campaign/campaign-integrations.d.ts +0 -87
  6. package/dist/schemas/campaign/campaign-job-count.d.ts +0 -2
  7. package/dist/schemas/chat-message/chat-message.d.ts +0 -31
  8. package/dist/schemas/chat-message/index.d.ts +0 -1
  9. package/dist/schemas/config/agency-config.d.ts +0 -17
  10. package/dist/schemas/config/index.d.ts +0 -1
  11. package/dist/schemas/job-filters/index.d.ts +0 -1
  12. package/dist/schemas/job-filters/job-filters.d.ts +0 -241
  13. package/dist/schemas/lead/lead-note.d.ts +0 -83
  14. package/dist/schemas/lead/nuxt.d.ts +0 -1664
  15. package/dist/schemas/organization/organization.d.ts +0 -144
  16. package/dist/types/account/account-status.d.ts +0 -3
  17. package/dist/types/account/bidder-account.d.ts +0 -7
  18. package/dist/types/account/index.d.ts +0 -3
  19. package/dist/types/account/scraper-account.d.ts +0 -5
  20. package/dist/types/bid/bid-result.d.ts +0 -5
  21. package/dist/types/bid/bid.d.ts +0 -9
  22. package/dist/types/bid/index.d.ts +0 -2
  23. package/dist/types/campaign/campaign-analytics.d.ts +0 -7
  24. package/dist/types/campaign/campaign-expenses.d.ts +0 -3
  25. package/dist/types/campaign/campaign-integrations.d.ts +0 -6
  26. package/dist/types/campaign/campaign-job-count.d.ts +0 -4
  27. package/dist/types/chat-message/chat-message.d.ts +0 -4
  28. package/dist/types/chat-message/index.d.ts +0 -1
  29. package/dist/types/config/agency-config.d.ts +0 -4
  30. package/dist/types/config/index.d.ts +0 -1
  31. package/dist/types/index.d.ts +0 -15
  32. package/dist/types/job/index.d.ts +0 -48
  33. package/dist/types/job/job-note.d.ts +0 -10
  34. package/dist/types/job/job-status.d.ts +0 -5
  35. package/dist/types/job/nuxt.d.ts +0 -4
  36. package/dist/types/job-filters/index.d.ts +0 -1
  37. package/dist/types/job-filters/job-filters.d.ts +0 -4
  38. package/dist/types/logger/index.d.ts +0 -1
  39. package/dist/types/saved-search/index.d.ts +0 -6
  40. package/dist/types/scraper/index.d.ts +0 -2
  41. package/dist/types/scraper/scrape-payload.d.ts +0 -10
  42. package/dist/types/scraper/scrape-result.d.ts +0 -8
  43. package/dist/types/shared.d.ts +0 -8
  44. package/dist/types/time-filter/index.d.ts +0 -3
  45. package/dist/types/transaction/index.d.ts +0 -4
  46. package/dist/types/usage/index.d.ts +0 -6
  47. package/dist/types/user/index.d.ts +0 -15
@@ -8,17 +8,43 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
8
8
  suitabilityRules: z.ZodNullable<z.ZodString>;
9
9
  coverLetterRules: z.ZodNullable<z.ZodString>;
10
10
  coverLetterTemplate: z.ZodNullable<z.ZodString>;
11
- questionRules: z.ZodNullable<z.ZodString>;
11
+ questionRules: z.ZodNullable<z.ZodArray<z.ZodObject<{
12
+ question: z.ZodString;
13
+ answer: z.ZodString;
14
+ category: z.ZodString;
15
+ }, "strip", z.ZodTypeAny, {
16
+ question: string;
17
+ answer: string;
18
+ category: string;
19
+ }, {
20
+ question: string;
21
+ answer: string;
22
+ category: string;
23
+ }>, "many">>;
24
+ approvedSuitabilityJobs: z.ZodNullable<z.ZodNumber>;
25
+ approvedProposalJobs: z.ZodNullable<z.ZodNumber>;
12
26
  }, "strip", z.ZodTypeAny, {
13
27
  suitabilityRules: string | null;
14
28
  coverLetterRules: string | null;
15
29
  coverLetterTemplate: string | null;
16
- questionRules: string | null;
30
+ questionRules: {
31
+ question: string;
32
+ answer: string;
33
+ category: string;
34
+ }[] | null;
35
+ approvedSuitabilityJobs: number | null;
36
+ approvedProposalJobs: number | null;
17
37
  }, {
18
38
  suitabilityRules: string | null;
19
39
  coverLetterRules: string | null;
20
40
  coverLetterTemplate: string | null;
21
- questionRules: string | null;
41
+ questionRules: {
42
+ question: string;
43
+ answer: string;
44
+ category: string;
45
+ }[] | null;
46
+ approvedSuitabilityJobs: number | null;
47
+ approvedProposalJobs: number | null;
22
48
  }>;
23
49
  lead: z.ZodObject<Omit<z.objectUtil.extendShape<{
24
50
  id: z.ZodNullable<z.ZodString>;
@@ -342,11 +368,11 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
342
368
  biddingTaskScheduled: z.ZodNullable<z.ZodBoolean>;
343
369
  scheduledBiddingTime: z.ZodNullable<z.ZodNumber>;
344
370
  }>, "processed">, "strip", z.ZodTypeAny, {
371
+ category: string | null;
345
372
  id: string | null;
346
373
  uid: string | null;
347
374
  createdAt: number | null;
348
375
  title: string | null;
349
- category: string | null;
350
376
  skills: {
351
377
  name: string;
352
378
  }[] | null;
@@ -469,11 +495,11 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
469
495
  } | null | undefined;
470
496
  proposalId?: string | undefined;
471
497
  }, {
498
+ category: string | null;
472
499
  id: string | null;
473
500
  uid: string | null;
474
501
  createdAt: number | null;
475
502
  title: string | null;
476
- category: string | null;
477
503
  skills: {
478
504
  name: string;
479
505
  }[] | null;
@@ -603,14 +629,20 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
603
629
  suitabilityRules: string | null;
604
630
  coverLetterRules: string | null;
605
631
  coverLetterTemplate: string | null;
606
- questionRules: string | null;
632
+ questionRules: {
633
+ question: string;
634
+ answer: string;
635
+ category: string;
636
+ }[] | null;
637
+ approvedSuitabilityJobs: number | null;
638
+ approvedProposalJobs: number | null;
607
639
  };
608
640
  lead: {
641
+ category: string | null;
609
642
  id: string | null;
610
643
  uid: string | null;
611
644
  createdAt: number | null;
612
645
  title: string | null;
613
- category: string | null;
614
646
  skills: {
615
647
  name: string;
616
648
  }[] | null;
@@ -742,14 +774,20 @@ export declare const agentTaskRequestSchema: z.ZodObject<{
742
774
  suitabilityRules: string | null;
743
775
  coverLetterRules: string | null;
744
776
  coverLetterTemplate: string | null;
745
- questionRules: string | null;
777
+ questionRules: {
778
+ question: string;
779
+ answer: string;
780
+ category: string;
781
+ }[] | null;
782
+ approvedSuitabilityJobs: number | null;
783
+ approvedProposalJobs: number | null;
746
784
  };
747
785
  lead: {
786
+ category: string | null;
748
787
  id: string | null;
749
788
  uid: string | null;
750
789
  createdAt: number | null;
751
790
  title: string | null;
752
- category: string | null;
753
791
  skills: {
754
792
  name: string;
755
793
  }[] | null;
@@ -896,17 +934,43 @@ export declare const testSystemPromptsRequestSchema: z.ZodObject<{
896
934
  suitabilityRules: z.ZodNullable<z.ZodString>;
897
935
  coverLetterRules: z.ZodNullable<z.ZodString>;
898
936
  coverLetterTemplate: z.ZodNullable<z.ZodString>;
899
- questionRules: z.ZodNullable<z.ZodString>;
937
+ questionRules: z.ZodNullable<z.ZodArray<z.ZodObject<{
938
+ question: z.ZodString;
939
+ answer: z.ZodString;
940
+ category: z.ZodString;
941
+ }, "strip", z.ZodTypeAny, {
942
+ question: string;
943
+ answer: string;
944
+ category: string;
945
+ }, {
946
+ question: string;
947
+ answer: string;
948
+ category: string;
949
+ }>, "many">>;
950
+ approvedSuitabilityJobs: z.ZodNullable<z.ZodNumber>;
951
+ approvedProposalJobs: z.ZodNullable<z.ZodNumber>;
900
952
  }, "strip", z.ZodTypeAny, {
901
953
  suitabilityRules: string | null;
902
954
  coverLetterRules: string | null;
903
955
  coverLetterTemplate: string | null;
904
- questionRules: string | null;
956
+ questionRules: {
957
+ question: string;
958
+ answer: string;
959
+ category: string;
960
+ }[] | null;
961
+ approvedSuitabilityJobs: number | null;
962
+ approvedProposalJobs: number | null;
905
963
  }, {
906
964
  suitabilityRules: string | null;
907
965
  coverLetterRules: string | null;
908
966
  coverLetterTemplate: string | null;
909
- questionRules: string | null;
967
+ questionRules: {
968
+ question: string;
969
+ answer: string;
970
+ category: string;
971
+ }[] | null;
972
+ approvedSuitabilityJobs: number | null;
973
+ approvedProposalJobs: number | null;
910
974
  }>;
911
975
  lead: z.ZodObject<Omit<z.objectUtil.extendShape<{
912
976
  id: z.ZodNullable<z.ZodString>;
@@ -1230,11 +1294,11 @@ export declare const testSystemPromptsRequestSchema: z.ZodObject<{
1230
1294
  biddingTaskScheduled: z.ZodNullable<z.ZodBoolean>;
1231
1295
  scheduledBiddingTime: z.ZodNullable<z.ZodNumber>;
1232
1296
  }>, "processed">, "strip", z.ZodTypeAny, {
1297
+ category: string | null;
1233
1298
  id: string | null;
1234
1299
  uid: string | null;
1235
1300
  createdAt: number | null;
1236
1301
  title: string | null;
1237
- category: string | null;
1238
1302
  skills: {
1239
1303
  name: string;
1240
1304
  }[] | null;
@@ -1357,11 +1421,11 @@ export declare const testSystemPromptsRequestSchema: z.ZodObject<{
1357
1421
  } | null | undefined;
1358
1422
  proposalId?: string | undefined;
1359
1423
  }, {
1424
+ category: string | null;
1360
1425
  id: string | null;
1361
1426
  uid: string | null;
1362
1427
  createdAt: number | null;
1363
1428
  title: string | null;
1364
- category: string | null;
1365
1429
  skills: {
1366
1430
  name: string;
1367
1431
  }[] | null;
@@ -1490,14 +1554,20 @@ export declare const testSystemPromptsRequestSchema: z.ZodObject<{
1490
1554
  suitabilityRules: string | null;
1491
1555
  coverLetterRules: string | null;
1492
1556
  coverLetterTemplate: string | null;
1493
- questionRules: string | null;
1557
+ questionRules: {
1558
+ question: string;
1559
+ answer: string;
1560
+ category: string;
1561
+ }[] | null;
1562
+ approvedSuitabilityJobs: number | null;
1563
+ approvedProposalJobs: number | null;
1494
1564
  };
1495
1565
  lead: {
1566
+ category: string | null;
1496
1567
  id: string | null;
1497
1568
  uid: string | null;
1498
1569
  createdAt: number | null;
1499
1570
  title: string | null;
1500
- category: string | null;
1501
1571
  skills: {
1502
1572
  name: string;
1503
1573
  }[] | null;
@@ -1633,14 +1703,20 @@ export declare const testSystemPromptsRequestSchema: z.ZodObject<{
1633
1703
  suitabilityRules: string | null;
1634
1704
  coverLetterRules: string | null;
1635
1705
  coverLetterTemplate: string | null;
1636
- questionRules: string | null;
1706
+ questionRules: {
1707
+ question: string;
1708
+ answer: string;
1709
+ category: string;
1710
+ }[] | null;
1711
+ approvedSuitabilityJobs: number | null;
1712
+ approvedProposalJobs: number | null;
1637
1713
  };
1638
1714
  lead: {
1715
+ category: string | null;
1639
1716
  id: string | null;
1640
1717
  uid: string | null;
1641
1718
  createdAt: number | null;
1642
1719
  title: string | null;
1643
- category: string | null;
1644
1720
  skills: {
1645
1721
  name: string;
1646
1722
  }[] | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lancer-shared",
3
- "version": "1.2.30",
3
+ "version": "1.2.31",
4
4
  "description": "This package contains shared stuff.",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "dist/bundle.cjs.js",
@@ -1,13 +0,0 @@
1
- export declare const COLLECTIONS: {
2
- readonly USERS: "users";
3
- readonly SETTINGS: "settings";
4
- readonly CAMPAIGNS: "campaigns";
5
- readonly LEADS: "leads";
6
- readonly EVENTS: "events";
7
- readonly SCRAPER_ACCOUNTS: "scrapers";
8
- readonly BIDDER_ACCOUNTS: "bidders";
9
- readonly CAMPAIGN_ACTIVITIES: (userId: string, campaignId: string) => string;
10
- readonly ORGANIZATIONS: "organizations";
11
- readonly PROXIES: "proxies";
12
- readonly TRANSACTIONS: "transactions";
13
- };
@@ -1,2 +0,0 @@
1
- import { TrackUsageEventType } from "../schemas";
2
- export declare const creditDeductionAmountMap: Record<TrackUsageEventType, number>;
@@ -1,87 +0,0 @@
1
- import { z } from "zod";
2
- export declare const campaignIntegrations: z.ZodEnum<["discord", "slack"]>;
3
- export declare const campaignIntegrationsSchema: z.ZodObject<{
4
- suitabilityHooks: z.ZodObject<{
5
- discord: z.ZodNullable<z.ZodString>;
6
- slack: z.ZodNullable<z.ZodString>;
7
- }, "strip", z.ZodTypeAny, {
8
- discord: string | null;
9
- slack: string | null;
10
- }, {
11
- discord: string | null;
12
- slack: string | null;
13
- }>;
14
- proposalSentHooks: z.ZodObject<{
15
- discord: z.ZodNullable<z.ZodString>;
16
- slack: z.ZodNullable<z.ZodString>;
17
- }, "strip", z.ZodTypeAny, {
18
- discord: string | null;
19
- slack: string | null;
20
- }, {
21
- discord: string | null;
22
- slack: string | null;
23
- }>;
24
- }, "strip", z.ZodTypeAny, {
25
- suitabilityHooks: {
26
- discord: string | null;
27
- slack: string | null;
28
- };
29
- proposalSentHooks: {
30
- discord: string | null;
31
- slack: string | null;
32
- };
33
- }, {
34
- suitabilityHooks: {
35
- discord: string | null;
36
- slack: string | null;
37
- };
38
- proposalSentHooks: {
39
- discord: string | null;
40
- slack: string | null;
41
- };
42
- }>;
43
- export declare const updateCampaignIntegrationsSchema: z.ZodObject<{
44
- suitabilityHooks: z.ZodOptional<z.ZodObject<{
45
- discord: z.ZodNullable<z.ZodString>;
46
- slack: z.ZodNullable<z.ZodString>;
47
- }, "strip", z.ZodTypeAny, {
48
- discord: string | null;
49
- slack: string | null;
50
- }, {
51
- discord: string | null;
52
- slack: string | null;
53
- }>>;
54
- proposalSentHooks: z.ZodOptional<z.ZodObject<{
55
- discord: z.ZodNullable<z.ZodString>;
56
- slack: z.ZodNullable<z.ZodString>;
57
- }, "strip", z.ZodTypeAny, {
58
- discord: string | null;
59
- slack: string | null;
60
- }, {
61
- discord: string | null;
62
- slack: string | null;
63
- }>>;
64
- }, "strip", z.ZodTypeAny, {
65
- suitabilityHooks?: {
66
- discord: string | null;
67
- slack: string | null;
68
- } | undefined;
69
- proposalSentHooks?: {
70
- discord: string | null;
71
- slack: string | null;
72
- } | undefined;
73
- }, {
74
- suitabilityHooks?: {
75
- discord: string | null;
76
- slack: string | null;
77
- } | undefined;
78
- proposalSentHooks?: {
79
- discord: string | null;
80
- slack: string | null;
81
- } | undefined;
82
- }>;
83
- export type CampaignIntegration = z.infer<typeof campaignIntegrations>;
84
- export interface CampaignIntegrations extends z.infer<typeof campaignIntegrationsSchema> {
85
- }
86
- export interface UpdateCampaignIntegrations extends z.infer<typeof updateCampaignIntegrationsSchema> {
87
- }
@@ -1,2 +0,0 @@
1
- import { z } from "zod";
2
- export declare const campaignJobCountSchema: z.ZodRecord<z.ZodEnum<["leads", "contacted", "viewed", "replied", "negotiations", "won", "lost"]>, z.ZodNumber>;
@@ -1,31 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const chatMessageSchema: z.ZodObject<{
3
- id: z.ZodString;
4
- content: z.ZodString;
5
- role: z.ZodEnum<["user", "assistant"]>;
6
- timestamp: z.ZodString;
7
- }, "strip", z.ZodTypeAny, {
8
- id: string;
9
- content: string;
10
- role: "user" | "assistant";
11
- timestamp: string;
12
- }, {
13
- id: string;
14
- content: string;
15
- role: "user" | "assistant";
16
- timestamp: string;
17
- }>;
18
- export declare const newChatMessageSchema: z.ZodObject<Omit<{
19
- id: z.ZodString;
20
- content: z.ZodString;
21
- role: z.ZodEnum<["user", "assistant"]>;
22
- timestamp: z.ZodString;
23
- }, "id">, "strip", z.ZodTypeAny, {
24
- content: string;
25
- role: "user" | "assistant";
26
- timestamp: string;
27
- }, {
28
- content: string;
29
- role: "user" | "assistant";
30
- timestamp: string;
31
- }>;
@@ -1 +0,0 @@
1
- export * from './chat-message';
@@ -1,17 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const agencyConfigSchema: z.ZodObject<{
3
- agencyName: z.ZodString;
4
- contractorName: z.ZodString;
5
- specializedProfile: z.ZodNullable<z.ZodString>;
6
- accountId: z.ZodString;
7
- }, "strip", z.ZodTypeAny, {
8
- agencyName: string;
9
- contractorName: string;
10
- specializedProfile: string | null;
11
- accountId: string;
12
- }, {
13
- agencyName: string;
14
- contractorName: string;
15
- specializedProfile: string | null;
16
- accountId: string;
17
- }>;
@@ -1 +0,0 @@
1
- export * from './agency-config';
@@ -1 +0,0 @@
1
- export * from './job-filters';