lancer-shared 1.2.26 → 1.2.28

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 (170) hide show
  1. package/dist/bundle.cjs.js +11808 -11402
  2. package/dist/constants/campaign-notifications.d.ts +2 -0
  3. package/dist/constants/routes.d.ts +12 -8
  4. package/dist/constants/upwork-accounts.d.ts +1 -1
  5. package/dist/index.d.ts +3 -3
  6. package/dist/schemas/account/account-status.d.ts +2 -2
  7. package/dist/schemas/account/bidder-account.d.ts +285 -35
  8. package/dist/schemas/account/exceptions/index.d.ts +3 -0
  9. package/dist/schemas/account/exceptions/invalid-google-oauth-token.exception.d.ts +5 -0
  10. package/dist/schemas/account/exceptions/no-bidder-accounts-available.exception.d.ts +5 -0
  11. package/dist/schemas/account/exceptions/no-google-oauth-tokens-found.exception.d.ts +5 -0
  12. package/dist/schemas/account/index.d.ts +4 -3
  13. package/dist/schemas/account/scraper-account.d.ts +7 -7
  14. package/dist/schemas/bid/exceptions/cloudflare-challenge-failed.exception.d.ts +5 -0
  15. package/dist/schemas/bid/exceptions/delete-multilogin-profile.exception.d.ts +5 -0
  16. package/dist/schemas/bid/exceptions/dropdown-option-not-present.exception.d.ts +5 -0
  17. package/dist/schemas/bid/exceptions/element-not-clickable.exception.d.ts +5 -0
  18. package/dist/schemas/bid/exceptions/evalaute-element.exception.d.ts +5 -0
  19. package/dist/schemas/bid/exceptions/evaluate-function.exception.d.ts +5 -0
  20. package/dist/schemas/bid/exceptions/get-multilogin-browser.exception.d.ts +5 -0
  21. package/dist/schemas/bid/exceptions/incorrect-security-question-answer.exception.d.ts +5 -0
  22. package/dist/schemas/bid/exceptions/index.d.ts +61 -0
  23. package/dist/schemas/bid/exceptions/init-browser.exception.d.ts +5 -0
  24. package/dist/schemas/bid/exceptions/insufficient-connects.exception.d.ts +5 -0
  25. package/dist/schemas/bid/exceptions/invalid-credentials.exception.d.ts +5 -0
  26. package/dist/schemas/bid/exceptions/invalid-job-url.exception.d.ts +5 -0
  27. package/dist/schemas/bid/exceptions/login-failed.exception.d.ts +5 -0
  28. package/dist/schemas/bid/exceptions/multilogin-authentication.exception.d.ts +5 -0
  29. package/dist/schemas/bid/exceptions/navigation-timeout.exception.d.ts +5 -0
  30. package/dist/schemas/bid/exceptions/new-browser-page.exception.d.ts +5 -0
  31. package/dist/schemas/bid/exceptions/new-page.exception.d.ts +5 -0
  32. package/dist/schemas/bid/exceptions/open-new-url.exception.d.ts +5 -0
  33. package/dist/schemas/bid/exceptions/parse-connects.exception.d.ts +5 -0
  34. package/dist/schemas/bid/exceptions/proposal-error-alert.exception.d.ts +5 -0
  35. package/dist/schemas/bid/exceptions/proposal-form-warning-alert.exception.d.ts +5 -0
  36. package/dist/schemas/bid/exceptions/proposal-submit-failed.exception.d.ts +5 -0
  37. package/dist/schemas/bid/exceptions/pupeteer-conection-error.exception.d.ts +5 -0
  38. package/dist/schemas/bid/exceptions/question-pair-not-matching.exception.d.ts +5 -0
  39. package/dist/schemas/bid/exceptions/select-agency.exception.d.ts +5 -0
  40. package/dist/schemas/bid/exceptions/select-contractor.exception.d.ts +5 -0
  41. package/dist/schemas/bid/exceptions/selector-not-found.exception.d.ts +5 -0
  42. package/dist/schemas/bid/exceptions/typed-value-not-matching.exception.d.ts +5 -0
  43. package/dist/schemas/bid/exceptions/typing-input-field.exception.d.ts +5 -0
  44. package/dist/schemas/bid/exceptions/wait-for-function-timeout.exception.d.ts +5 -0
  45. package/dist/schemas/bid/index.d.ts +1 -0
  46. package/dist/schemas/campaign/campaign-notifications.d.ts +9 -0
  47. package/dist/schemas/campaign/campaign.d.ts +171 -238
  48. package/dist/schemas/campaign/index.d.ts +6 -6
  49. package/dist/schemas/logger/log-event.d.ts +18 -17
  50. package/dist/schemas/organization/index.d.ts +5 -62
  51. package/dist/schemas/organization/organization.d.ts +22 -118
  52. package/dist/schemas/scraper/scrape-payload.d.ts +65 -60
  53. package/dist/types/campaign/campaign-insights.d.ts +1 -2
  54. package/dist/types/campaign/campaign-notifications.d.ts +7 -0
  55. package/dist/types/campaign/campaign.d.ts +3 -5
  56. package/dist/types/campaign/index.d.ts +3 -6
  57. package/dist/types/logger/log-event.d.ts +5 -4
  58. package/package.json +1 -1
  59. package/dist/constants/collections.js +0 -14
  60. package/dist/constants/common-questions.js +0 -57
  61. package/dist/constants/index.js +0 -18
  62. package/dist/constants/job-filter-options.js +0 -265
  63. package/dist/constants/job-status.js +0 -21
  64. package/dist/constants/mappings/countryMapping.js +0 -120
  65. package/dist/constants/mappings/regionMapping.js +0 -240
  66. package/dist/constants/routes.js +0 -116
  67. package/dist/constants/upwork-accounts.js +0 -18
  68. package/dist/index.js +0 -4
  69. package/dist/schemas/account/account-status.js +0 -8
  70. package/dist/schemas/account/bidder-account.js +0 -35
  71. package/dist/schemas/account/index.js +0 -3
  72. package/dist/schemas/account/scraper-account.js +0 -34
  73. package/dist/schemas/ai/ai-config.d.ts +0 -36
  74. package/dist/schemas/ai/ai-config.js +0 -9
  75. package/dist/schemas/ai/index.d.ts +0 -3
  76. package/dist/schemas/ai/index.js +0 -3
  77. package/dist/schemas/ai/proposal.d.ts +0 -82
  78. package/dist/schemas/ai/proposal.js +0 -13
  79. package/dist/schemas/ai/suitability.d.ts +0 -37
  80. package/dist/schemas/ai/suitability.js +0 -14
  81. package/dist/schemas/bid/bid-result.js +0 -11
  82. package/dist/schemas/bid/bid.js +0 -35
  83. package/dist/schemas/bid/index.js +0 -2
  84. package/dist/schemas/campaign/campaign-ai-metrics.js +0 -6
  85. package/dist/schemas/campaign/campaign-analytics.js +0 -42
  86. package/dist/schemas/campaign/campaign-expenses.js +0 -6
  87. package/dist/schemas/campaign/campaign-insights.js +0 -31
  88. package/dist/schemas/campaign/campaign-integrations.js +0 -13
  89. package/dist/schemas/campaign/campaign-job-count.js +0 -3
  90. package/dist/schemas/campaign/campaign.js +0 -41
  91. package/dist/schemas/campaign/index.js +0 -7
  92. package/dist/schemas/chat-message/chat-message.js +0 -10
  93. package/dist/schemas/chat-message/index.js +0 -1
  94. package/dist/schemas/config/agency-config.js +0 -7
  95. package/dist/schemas/config/index.js +0 -1
  96. package/dist/schemas/event/index.d.ts +0 -58
  97. package/dist/schemas/index.js +0 -17
  98. package/dist/schemas/job-filters/index.js +0 -1
  99. package/dist/schemas/job-filters/job-filters.js +0 -84
  100. package/dist/schemas/lead/index.js +0 -173
  101. package/dist/schemas/lead/lead-note.js +0 -27
  102. package/dist/schemas/lead/lead-status.js +0 -23
  103. package/dist/schemas/lead/nuxt.js +0 -287
  104. package/dist/schemas/logger/index.js +0 -1
  105. package/dist/schemas/logger/log-event.js +0 -117
  106. package/dist/schemas/meter-event/index.d.ts +0 -12
  107. package/dist/schemas/organization/index.js +0 -70
  108. package/dist/schemas/organization/member.js +0 -7
  109. package/dist/schemas/organization/organization.js +0 -16
  110. package/dist/schemas/organization/subscription.js +0 -17
  111. package/dist/schemas/proxy/index.js +0 -3
  112. package/dist/schemas/proxy/proxy-available-replacements.js +0 -3
  113. package/dist/schemas/proxy/proxy-country.js +0 -249
  114. package/dist/schemas/proxy/proxy.js +0 -29
  115. package/dist/schemas/saved-search/index.js +0 -9
  116. package/dist/schemas/scraper/index.js +0 -2
  117. package/dist/schemas/scraper/scrape-payload.js +0 -21
  118. package/dist/schemas/scraper/scrape-result.js +0 -23
  119. package/dist/schemas/shared.js +0 -19
  120. package/dist/schemas/tier/index.d.ts +0 -119
  121. package/dist/schemas/time-filter/index.js +0 -6
  122. package/dist/schemas/transaction/index.js +0 -17
  123. package/dist/schemas/usage/index.js +0 -18
  124. package/dist/schemas/user/index.js +0 -52
  125. package/dist/types/account/account-status.js +0 -1
  126. package/dist/types/account/bidder-account.js +0 -1
  127. package/dist/types/account/index.js +0 -3
  128. package/dist/types/account/scraper-account.js +0 -1
  129. package/dist/types/ai/ai-config.d.ts +0 -6
  130. package/dist/types/ai/ai-config.js +0 -1
  131. package/dist/types/ai/index.d.ts +0 -3
  132. package/dist/types/ai/index.js +0 -3
  133. package/dist/types/ai/proposal.d.ts +0 -10
  134. package/dist/types/ai/proposal.js +0 -1
  135. package/dist/types/ai/suitability.d.ts +0 -6
  136. package/dist/types/ai/suitability.js +0 -1
  137. package/dist/types/bid/bid-result.js +0 -1
  138. package/dist/types/bid/bid.js +0 -1
  139. package/dist/types/bid/index.js +0 -2
  140. package/dist/types/campaign/campaign-analytics.js +0 -1
  141. package/dist/types/campaign/campaign-expenses.js +0 -1
  142. package/dist/types/campaign/campaign-insights.js +0 -1
  143. package/dist/types/campaign/campaign-integrations.js +0 -1
  144. package/dist/types/campaign/campaign-job-count.js +0 -1
  145. package/dist/types/campaign/campaign.js +0 -1
  146. package/dist/types/campaign/index.js +0 -6
  147. package/dist/types/chat-message/chat-message.js +0 -1
  148. package/dist/types/chat-message/index.js +0 -1
  149. package/dist/types/config/agency-config.js +0 -1
  150. package/dist/types/config/index.js +0 -1
  151. package/dist/types/index.js +0 -15
  152. package/dist/types/job/index.js +0 -3
  153. package/dist/types/job/job-note.js +0 -1
  154. package/dist/types/job/job-status.js +0 -9
  155. package/dist/types/job/nuxt.js +0 -1
  156. package/dist/types/job-filters/index.js +0 -1
  157. package/dist/types/job-filters/job-filters.js +0 -1
  158. package/dist/types/logger/index.js +0 -1
  159. package/dist/types/logger/log-event.js +0 -1
  160. package/dist/types/saved-search/index.js +0 -1
  161. package/dist/types/scraper/index.js +0 -2
  162. package/dist/types/scraper/scrape-payload.js +0 -1
  163. package/dist/types/scraper/scrape-result.js +0 -1
  164. package/dist/types/shared.js +0 -1
  165. package/dist/types/time-filter/index.js +0 -1
  166. package/dist/types/transaction/index.js +0 -1
  167. package/dist/types/usage/index.js +0 -1
  168. package/dist/types/user/index.js +0 -1
  169. package/dist/utils/index.js +0 -1
  170. package/dist/utils/try-catch.js +0 -10
@@ -1,20 +1,4 @@
1
1
  import { infer, z } from "zod";
2
- export declare const bidConfigSchema: z.ZodObject<{
3
- agencyName: z.ZodNullable<z.ZodString>;
4
- bidderId: z.ZodNullable<z.ZodString>;
5
- contractorName: z.ZodNullable<z.ZodString>;
6
- specialisedProfile: z.ZodNullable<z.ZodString>;
7
- }, "strip", z.ZodTypeAny, {
8
- agencyName: string | null;
9
- bidderId: string | null;
10
- contractorName: string | null;
11
- specialisedProfile: string | null;
12
- }, {
13
- agencyName: string | null;
14
- bidderId: string | null;
15
- contractorName: string | null;
16
- specialisedProfile: string | null;
17
- }>;
18
2
  export declare const organizationTypeSchema: z.ZodEnum<["agency", "freelancer"]>;
19
3
  export declare const organizationTierEnum: z.ZodEnum<["free", "premium"]>;
20
4
  export declare const limitsSchema: z.ZodObject<{
@@ -34,6 +18,7 @@ export declare const organizationSchema: z.ZodObject<{
34
18
  id: z.ZodString;
35
19
  name: z.ZodString;
36
20
  type: z.ZodEnum<["agency", "freelancer"]>;
21
+ associatedBidders: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
37
22
  tierId: z.ZodEnum<["free", "premium"]>;
38
23
  subscription: z.ZodNullable<z.ZodObject<{
39
24
  planId: z.ZodString;
@@ -143,22 +128,6 @@ export declare const organizationSchema: z.ZodObject<{
143
128
  source: "stripe" | "manual";
144
129
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
145
130
  }>>;
146
- bidConfig: z.ZodObject<{
147
- agencyName: z.ZodNullable<z.ZodString>;
148
- bidderId: z.ZodNullable<z.ZodString>;
149
- contractorName: z.ZodNullable<z.ZodString>;
150
- specialisedProfile: z.ZodNullable<z.ZodString>;
151
- }, "strip", z.ZodTypeAny, {
152
- agencyName: string | null;
153
- bidderId: string | null;
154
- contractorName: string | null;
155
- specialisedProfile: string | null;
156
- }, {
157
- agencyName: string | null;
158
- bidderId: string | null;
159
- contractorName: string | null;
160
- specialisedProfile: string | null;
161
- }>;
162
131
  active: z.ZodBoolean;
163
132
  limits: z.ZodObject<{
164
133
  monthlyCredits: z.ZodNumber;
@@ -213,6 +182,7 @@ export declare const organizationSchema: z.ZodObject<{
213
182
  type: "agency" | "freelancer";
214
183
  id: string;
215
184
  name: string;
185
+ associatedBidders: string[] | null;
216
186
  tierId: "free" | "premium";
217
187
  active: boolean;
218
188
  subscription: {
@@ -237,12 +207,6 @@ export declare const organizationSchema: z.ZodObject<{
237
207
  source: "stripe" | "manual";
238
208
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
239
209
  } | null;
240
- bidConfig: {
241
- agencyName: string | null;
242
- bidderId: string | null;
243
- contractorName: string | null;
244
- specialisedProfile: string | null;
245
- };
246
210
  limits: {
247
211
  monthlyCredits: number;
248
212
  usedCredits: number;
@@ -262,6 +226,7 @@ export declare const organizationSchema: z.ZodObject<{
262
226
  type: "agency" | "freelancer";
263
227
  id: string;
264
228
  name: string;
229
+ associatedBidders: string[] | null;
265
230
  tierId: "free" | "premium";
266
231
  active: boolean;
267
232
  subscription: {
@@ -286,12 +251,6 @@ export declare const organizationSchema: z.ZodObject<{
286
251
  source: "stripe" | "manual";
287
252
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
288
253
  } | null;
289
- bidConfig: {
290
- agencyName: string | null;
291
- bidderId: string | null;
292
- contractorName: string | null;
293
- specialisedProfile: string | null;
294
- };
295
254
  limits: {
296
255
  monthlyCredits: number;
297
256
  usedCredits: number;
@@ -312,6 +271,7 @@ export declare const createOrganizationSchema: z.ZodObject<Pick<{
312
271
  id: z.ZodString;
313
272
  name: z.ZodString;
314
273
  type: z.ZodEnum<["agency", "freelancer"]>;
274
+ associatedBidders: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
315
275
  tierId: z.ZodEnum<["free", "premium"]>;
316
276
  subscription: z.ZodNullable<z.ZodObject<{
317
277
  planId: z.ZodString;
@@ -421,22 +381,6 @@ export declare const createOrganizationSchema: z.ZodObject<Pick<{
421
381
  source: "stripe" | "manual";
422
382
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
423
383
  }>>;
424
- bidConfig: z.ZodObject<{
425
- agencyName: z.ZodNullable<z.ZodString>;
426
- bidderId: z.ZodNullable<z.ZodString>;
427
- contractorName: z.ZodNullable<z.ZodString>;
428
- specialisedProfile: z.ZodNullable<z.ZodString>;
429
- }, "strip", z.ZodTypeAny, {
430
- agencyName: string | null;
431
- bidderId: string | null;
432
- contractorName: string | null;
433
- specialisedProfile: string | null;
434
- }, {
435
- agencyName: string | null;
436
- bidderId: string | null;
437
- contractorName: string | null;
438
- specialisedProfile: string | null;
439
- }>;
440
384
  active: z.ZodBoolean;
441
385
  limits: z.ZodObject<{
442
386
  monthlyCredits: z.ZodNumber;
@@ -497,6 +441,7 @@ export declare const createOrganizationSchema: z.ZodObject<Pick<{
497
441
  tierId: "free" | "premium";
498
442
  }>;
499
443
  export type CreateOrganization = z.infer<typeof createOrganizationSchema>;
444
+ export declare const trackUsageEventTypeEnum: z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>;
500
445
  export declare const trackUsagePayloadSchema: z.ZodObject<{
501
446
  event: z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>;
502
447
  campaignId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -611,8 +556,6 @@ export interface NotificationConfig extends infer<typeof notificationConfigSchem
611
556
  }
612
557
  export interface OrganizationSettings extends infer<typeof organizationSettingsSchema> {
613
558
  }
614
- export interface BidConfig extends infer<typeof bidConfigSchema> {
615
- }
616
559
  export type OrganizationType = z.infer<typeof organizationTypeSchema>;
617
560
  export interface SubscribePayload extends z.infer<typeof subscribePayloadSchema> {
618
561
  }
@@ -6,13 +6,13 @@ export declare const bidConfigSchema: z.ZodObject<{
6
6
  specialisedProfile: z.ZodNullable<z.ZodString>;
7
7
  }, "strip", z.ZodTypeAny, {
8
8
  agencyName: string | null;
9
- bidderId: string | null;
10
9
  contractorName: string | null;
10
+ bidderId: string | null;
11
11
  specialisedProfile: string | null;
12
12
  }, {
13
13
  agencyName: string | null;
14
- bidderId: string | null;
15
14
  contractorName: string | null;
15
+ bidderId: string | null;
16
16
  specialisedProfile: string | null;
17
17
  }>;
18
18
  export declare const organizationTypeSchema: z.ZodEnum<["agency", "freelancer"]>;
@@ -27,149 +27,54 @@ export declare const organizationSchema: z.ZodObject<{
27
27
  specialisedProfile: z.ZodNullable<z.ZodString>;
28
28
  }, "strip", z.ZodTypeAny, {
29
29
  agencyName: string | null;
30
- bidderId: string | null;
31
30
  contractorName: string | null;
31
+ bidderId: string | null;
32
32
  specialisedProfile: string | null;
33
33
  }, {
34
34
  agencyName: string | null;
35
- bidderId: string | null;
36
35
  contractorName: string | null;
36
+ bidderId: string | null;
37
37
  specialisedProfile: string | null;
38
38
  }>;
39
- tierId: z.ZodEnum<["free", "premium"]>;
40
- active: z.ZodBoolean;
41
- limits: z.ZodNullable<z.ZodObject<{
42
- monthlyCredits: z.ZodNumber;
43
- usedCredits: z.ZodNumber;
44
- extraCredits: z.ZodNumber;
45
- }, "strip", z.ZodTypeAny, {
46
- monthlyCredits: number;
47
- usedCredits: number;
48
- extraCredits: number;
49
- }, {
50
- monthlyCredits: number;
51
- usedCredits: number;
52
- extraCredits: number;
53
- }>>;
54
- billing: z.ZodNullable<z.ZodObject<{
55
- stripeCustomerId: z.ZodString;
56
- savedCard: z.ZodBoolean;
57
- creditsRemaining: z.ZodNumber;
58
- }, "strip", z.ZodTypeAny, {
59
- stripeCustomerId: string;
60
- savedCard: boolean;
61
- creditsRemaining: number;
62
- }, {
63
- stripeCustomerId: string;
64
- savedCard: boolean;
65
- creditsRemaining: number;
66
- }>>;
67
- subscription: z.ZodNullable<z.ZodObject<{
68
- tierId: z.ZodString;
69
- status: z.ZodEnum<["active", "trialing", "cancelled", "paused"]>;
70
- creditsRemaining: z.ZodNumber;
71
- startedAt: z.ZodNumber;
72
- currentPeriodEnd: z.ZodNumber;
73
- stripeSubscriptionId: z.ZodString;
74
- source: z.ZodEnum<["stripe", "manual"]>;
75
- }, "strip", z.ZodTypeAny, {
76
- status: "active" | "trialing" | "cancelled" | "paused";
77
- creditsRemaining: number;
78
- tierId: string;
79
- startedAt: number;
80
- currentPeriodEnd: number;
81
- stripeSubscriptionId: string;
82
- source: "stripe" | "manual";
83
- }, {
84
- status: "active" | "trialing" | "cancelled" | "paused";
85
- creditsRemaining: number;
86
- tierId: string;
87
- startedAt: number;
88
- currentPeriodEnd: number;
89
- stripeSubscriptionId: string;
90
- source: "stripe" | "manual";
91
- }>>;
92
- createdAt: z.ZodNumber;
93
- updatedAt: z.ZodNumber;
39
+ createdAt: z.ZodDate;
40
+ updatedAt: z.ZodDate;
94
41
  }, "strip", z.ZodTypeAny, {
95
- type: "agency" | "freelancer";
96
42
  id: string;
43
+ type: "agency" | "freelancer";
44
+ createdAt: Date;
45
+ updatedAt: Date;
97
46
  name: string;
98
47
  bidConfig: {
99
48
  agencyName: string | null;
100
- bidderId: string | null;
101
49
  contractorName: string | null;
50
+ bidderId: string | null;
102
51
  specialisedProfile: string | null;
103
52
  };
104
- tierId: "free" | "premium";
105
- active: boolean;
106
- limits: {
107
- monthlyCredits: number;
108
- usedCredits: number;
109
- extraCredits: number;
110
- } | null;
111
- billing: {
112
- stripeCustomerId: string;
113
- savedCard: boolean;
114
- creditsRemaining: number;
115
- } | null;
116
- subscription: {
117
- status: "active" | "trialing" | "cancelled" | "paused";
118
- creditsRemaining: number;
119
- tierId: string;
120
- startedAt: number;
121
- currentPeriodEnd: number;
122
- stripeSubscriptionId: string;
123
- source: "stripe" | "manual";
124
- } | null;
125
- createdAt: number;
126
- updatedAt: number;
127
53
  }, {
128
- type: "agency" | "freelancer";
129
54
  id: string;
55
+ type: "agency" | "freelancer";
56
+ createdAt: Date;
57
+ updatedAt: Date;
130
58
  name: string;
131
59
  bidConfig: {
132
60
  agencyName: string | null;
133
- bidderId: string | null;
134
61
  contractorName: string | null;
62
+ bidderId: string | null;
135
63
  specialisedProfile: string | null;
136
64
  };
137
- tierId: "free" | "premium";
138
- active: boolean;
139
- limits: {
140
- monthlyCredits: number;
141
- usedCredits: number;
142
- extraCredits: number;
143
- } | null;
144
- billing: {
145
- stripeCustomerId: string;
146
- savedCard: boolean;
147
- creditsRemaining: number;
148
- } | null;
149
- subscription: {
150
- status: "active" | "trialing" | "cancelled" | "paused";
151
- creditsRemaining: number;
152
- tierId: string;
153
- startedAt: number;
154
- currentPeriodEnd: number;
155
- stripeSubscriptionId: string;
156
- source: "stripe" | "manual";
157
- } | null;
158
- createdAt: number;
159
- updatedAt: number;
160
65
  }>;
161
66
  export declare const aiConfigSchema: z.ZodObject<{
162
67
  suitabilityRules: z.ZodNullable<z.ZodString>;
163
- proposalRules: z.ZodNullable<z.ZodString>;
68
+ coverLetterRules: z.ZodNullable<z.ZodString>;
164
69
  questionRules: z.ZodNullable<z.ZodString>;
165
70
  }, "strip", z.ZodTypeAny, {
166
71
  suitabilityRules: string | null;
167
- proposalRules: string | null;
168
72
  questionRules: string | null;
73
+ coverLetterRules: string | null;
169
74
  }, {
170
75
  suitabilityRules: string | null;
171
- proposalRules: string | null;
172
76
  questionRules: string | null;
77
+ coverLetterRules: string | null;
173
78
  }>;
174
79
  export declare const knowledgeBaseSchema: z.ZodObject<{
175
80
  about: z.ZodString;
@@ -184,16 +89,16 @@ export declare const knowledgeBaseSchema: z.ZodObject<{
184
89
  export declare const organizationSettingsSchema: z.ZodObject<{
185
90
  aiConfig: z.ZodObject<{
186
91
  suitabilityRules: z.ZodNullable<z.ZodString>;
187
- proposalRules: z.ZodNullable<z.ZodString>;
92
+ coverLetterRules: z.ZodNullable<z.ZodString>;
188
93
  questionRules: z.ZodNullable<z.ZodString>;
189
94
  }, "strip", z.ZodTypeAny, {
190
95
  suitabilityRules: string | null;
191
- proposalRules: string | null;
192
96
  questionRules: string | null;
97
+ coverLetterRules: string | null;
193
98
  }, {
194
99
  suitabilityRules: string | null;
195
- proposalRules: string | null;
196
100
  questionRules: string | null;
101
+ coverLetterRules: string | null;
197
102
  }>;
198
103
  knowledgeBase: z.ZodObject<{
199
104
  about: z.ZodString;
@@ -208,8 +113,8 @@ export declare const organizationSettingsSchema: z.ZodObject<{
208
113
  }, "strip", z.ZodTypeAny, {
209
114
  aiConfig: {
210
115
  suitabilityRules: string | null;
211
- proposalRules: string | null;
212
116
  questionRules: string | null;
117
+ coverLetterRules: string | null;
213
118
  };
214
119
  knowledgeBase: {
215
120
  about: string;
@@ -218,8 +123,8 @@ export declare const organizationSettingsSchema: z.ZodObject<{
218
123
  }, {
219
124
  aiConfig: {
220
125
  suitabilityRules: string | null;
221
- proposalRules: string | null;
222
126
  questionRules: string | null;
127
+ coverLetterRules: string | null;
223
128
  };
224
129
  knowledgeBase: {
225
130
  about: string;
@@ -237,4 +142,3 @@ export interface OrganizationSettings extends z.infer<typeof organizationSetting
237
142
  export interface BidConfig extends z.infer<typeof bidConfigSchema> {
238
143
  }
239
144
  export type OrganizationType = z.infer<typeof organizationTypeSchema>;
240
- export * from "./subscription";
@@ -125,6 +125,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
125
125
  id: import("zod").ZodString;
126
126
  name: import("zod").ZodString;
127
127
  type: import("zod").ZodEnum<["agency", "freelancer"]>;
128
+ associatedBidders: import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodString, "many">>;
128
129
  tierId: import("zod").ZodEnum<["free", "premium"]>;
129
130
  subscription: import("zod").ZodNullable<import("zod").ZodObject<{
130
131
  planId: import("zod").ZodString;
@@ -234,22 +235,6 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
234
235
  source: "stripe" | "manual";
235
236
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
236
237
  }>>;
237
- bidConfig: import("zod").ZodObject<{
238
- agencyName: import("zod").ZodNullable<import("zod").ZodString>;
239
- bidderId: import("zod").ZodNullable<import("zod").ZodString>;
240
- contractorName: import("zod").ZodNullable<import("zod").ZodString>;
241
- specialisedProfile: import("zod").ZodNullable<import("zod").ZodString>;
242
- }, "strip", import("zod").ZodTypeAny, {
243
- agencyName: string | null;
244
- bidderId: string | null;
245
- contractorName: string | null;
246
- specialisedProfile: string | null;
247
- }, {
248
- agencyName: string | null;
249
- bidderId: string | null;
250
- contractorName: string | null;
251
- specialisedProfile: string | null;
252
- }>;
253
238
  active: import("zod").ZodBoolean;
254
239
  limits: import("zod").ZodObject<{
255
240
  monthlyCredits: import("zod").ZodNumber;
@@ -304,6 +289,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
304
289
  type: "agency" | "freelancer";
305
290
  id: string;
306
291
  name: string;
292
+ associatedBidders: string[] | null;
307
293
  tierId: "free" | "premium";
308
294
  active: boolean;
309
295
  subscription: {
@@ -328,12 +314,6 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
328
314
  source: "stripe" | "manual";
329
315
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
330
316
  } | null;
331
- bidConfig: {
332
- agencyName: string | null;
333
- bidderId: string | null;
334
- contractorName: string | null;
335
- specialisedProfile: string | null;
336
- };
337
317
  limits: {
338
318
  monthlyCredits: number;
339
319
  usedCredits: number;
@@ -353,6 +333,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
353
333
  type: "agency" | "freelancer";
354
334
  id: string;
355
335
  name: string;
336
+ associatedBidders: string[] | null;
356
337
  tierId: "free" | "premium";
357
338
  active: boolean;
358
339
  subscription: {
@@ -377,12 +358,6 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
377
358
  source: "stripe" | "manual";
378
359
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
379
360
  } | null;
380
- bidConfig: {
381
- agencyName: string | null;
382
- bidderId: string | null;
383
- contractorName: string | null;
384
- specialisedProfile: string | null;
385
- };
386
361
  limits: {
387
362
  monthlyCredits: number;
388
363
  usedCredits: number;
@@ -980,46 +955,74 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
980
955
  provider: import("zod").ZodEnum<["user-provided", "lancer-provided"]>;
981
956
  email: import("zod").ZodString;
982
957
  password: import("zod").ZodString;
983
- cookies: import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodAny, "many">>;
984
- status: import("zod").ZodEnum<["verification_required", "shadow_banned", "healthy", "banned", "suspended"]>;
985
- verified: import("zod").ZodBoolean;
986
- isActive: import("zod").ZodBoolean;
958
+ securityQuestionAnswer: import("zod").ZodNullable<import("zod").ZodString>;
987
959
  assignedOrganizations: import("zod").ZodArray<import("zod").ZodString, "many">;
960
+ googleOauthTokens: import("zod").ZodNullable<import("zod").ZodAny>;
988
961
  lastUsed: import("zod").ZodNullable<import("zod").ZodNumber>;
989
962
  multiLoginProfileId: import("zod").ZodNullable<import("zod").ZodString>;
990
963
  proxyId: import("zod").ZodNullable<import("zod").ZodString>;
964
+ profilePhotoUrl: import("zod").ZodNullable<import("zod").ZodString>;
965
+ name: import("zod").ZodNullable<import("zod").ZodString>;
966
+ agencies: import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodObject<{
967
+ name: import("zod").ZodString;
968
+ logoUrl: import("zod").ZodNullable<import("zod").ZodString>;
969
+ contractors: import("zod").ZodArray<import("zod").ZodString, "many">;
970
+ organizationId: import("zod").ZodString;
971
+ }, "strip", import("zod").ZodTypeAny, {
972
+ name: string;
973
+ logoUrl: string | null;
974
+ contractors: string[];
975
+ organizationId: string;
976
+ }, {
977
+ name: string;
978
+ logoUrl: string | null;
979
+ contractors: string[];
980
+ organizationId: string;
981
+ }>, "many">>;
991
982
  createdAt: import("zod").ZodNumber;
992
983
  updatedAt: import("zod").ZodNumber;
993
984
  }, "strip", import("zod").ZodTypeAny, {
994
- status: "verification_required" | "shadow_banned" | "healthy" | "banned" | "suspended";
995
- cookies: any[] | null;
996
985
  password: string;
997
986
  id: string;
987
+ name: string | null;
998
988
  createdAt: number;
999
989
  updatedAt: number;
1000
990
  provider: "user-provided" | "lancer-provided";
1001
991
  email: string;
1002
- verified: boolean;
1003
- isActive: boolean;
992
+ securityQuestionAnswer: string | null;
1004
993
  assignedOrganizations: string[];
1005
994
  lastUsed: number | null;
1006
995
  multiLoginProfileId: string | null;
1007
996
  proxyId: string | null;
997
+ profilePhotoUrl: string | null;
998
+ agencies: {
999
+ name: string;
1000
+ logoUrl: string | null;
1001
+ contractors: string[];
1002
+ organizationId: string;
1003
+ }[] | null;
1004
+ googleOauthTokens?: any;
1008
1005
  }, {
1009
- status: "verification_required" | "shadow_banned" | "healthy" | "banned" | "suspended";
1010
- cookies: any[] | null;
1011
1006
  password: string;
1012
1007
  id: string;
1008
+ name: string | null;
1013
1009
  createdAt: number;
1014
1010
  updatedAt: number;
1015
1011
  provider: "user-provided" | "lancer-provided";
1016
1012
  email: string;
1017
- verified: boolean;
1018
- isActive: boolean;
1013
+ securityQuestionAnswer: string | null;
1019
1014
  assignedOrganizations: string[];
1020
1015
  lastUsed: number | null;
1021
1016
  multiLoginProfileId: string | null;
1022
1017
  proxyId: string | null;
1018
+ profilePhotoUrl: string | null;
1019
+ agencies: {
1020
+ name: string;
1021
+ logoUrl: string | null;
1022
+ contractors: string[];
1023
+ organizationId: string;
1024
+ }[] | null;
1025
+ googleOauthTokens?: any;
1023
1026
  }>;
1024
1027
  firstExecutionTime: import("zod").ZodNumber;
1025
1028
  }, "strip", import("zod").ZodTypeAny, {
@@ -1029,6 +1032,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1029
1032
  type: "agency" | "freelancer";
1030
1033
  id: string;
1031
1034
  name: string;
1035
+ associatedBidders: string[] | null;
1032
1036
  tierId: "free" | "premium";
1033
1037
  active: boolean;
1034
1038
  subscription: {
@@ -1053,12 +1057,6 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1053
1057
  source: "stripe" | "manual";
1054
1058
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
1055
1059
  } | null;
1056
- bidConfig: {
1057
- agencyName: string | null;
1058
- bidderId: string | null;
1059
- contractorName: string | null;
1060
- specialisedProfile: string | null;
1061
- };
1062
1060
  limits: {
1063
1061
  monthlyCredits: number;
1064
1062
  usedCredits: number;
@@ -1204,20 +1202,26 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1204
1202
  proposalId?: string | undefined;
1205
1203
  };
1206
1204
  bidder: {
1207
- status: "verification_required" | "shadow_banned" | "healthy" | "banned" | "suspended";
1208
- cookies: any[] | null;
1209
1205
  password: string;
1210
1206
  id: string;
1207
+ name: string | null;
1211
1208
  createdAt: number;
1212
1209
  updatedAt: number;
1213
1210
  provider: "user-provided" | "lancer-provided";
1214
1211
  email: string;
1215
- verified: boolean;
1216
- isActive: boolean;
1212
+ securityQuestionAnswer: string | null;
1217
1213
  assignedOrganizations: string[];
1218
1214
  lastUsed: number | null;
1219
1215
  multiLoginProfileId: string | null;
1220
1216
  proxyId: string | null;
1217
+ profilePhotoUrl: string | null;
1218
+ agencies: {
1219
+ name: string;
1220
+ logoUrl: string | null;
1221
+ contractors: string[];
1222
+ organizationId: string;
1223
+ }[] | null;
1224
+ googleOauthTokens?: any;
1221
1225
  };
1222
1226
  firstExecutionTime: number;
1223
1227
  }, {
@@ -1227,6 +1231,7 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1227
1231
  type: "agency" | "freelancer";
1228
1232
  id: string;
1229
1233
  name: string;
1234
+ associatedBidders: string[] | null;
1230
1235
  tierId: "free" | "premium";
1231
1236
  active: boolean;
1232
1237
  subscription: {
@@ -1251,12 +1256,6 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1251
1256
  source: "stripe" | "manual";
1252
1257
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
1253
1258
  } | null;
1254
- bidConfig: {
1255
- agencyName: string | null;
1256
- bidderId: string | null;
1257
- contractorName: string | null;
1258
- specialisedProfile: string | null;
1259
- };
1260
1259
  limits: {
1261
1260
  monthlyCredits: number;
1262
1261
  usedCredits: number;
@@ -1402,20 +1401,26 @@ export declare const checkLeadStatusPayloadSchema: import("zod").ZodObject<{
1402
1401
  proposalId?: string | undefined;
1403
1402
  };
1404
1403
  bidder: {
1405
- status: "verification_required" | "shadow_banned" | "healthy" | "banned" | "suspended";
1406
- cookies: any[] | null;
1407
1404
  password: string;
1408
1405
  id: string;
1406
+ name: string | null;
1409
1407
  createdAt: number;
1410
1408
  updatedAt: number;
1411
1409
  provider: "user-provided" | "lancer-provided";
1412
1410
  email: string;
1413
- verified: boolean;
1414
- isActive: boolean;
1411
+ securityQuestionAnswer: string | null;
1415
1412
  assignedOrganizations: string[];
1416
1413
  lastUsed: number | null;
1417
1414
  multiLoginProfileId: string | null;
1418
1415
  proxyId: string | null;
1416
+ profilePhotoUrl: string | null;
1417
+ agencies: {
1418
+ name: string;
1419
+ logoUrl: string | null;
1420
+ contractors: string[];
1421
+ organizationId: string;
1422
+ }[] | null;
1423
+ googleOauthTokens?: any;
1419
1424
  };
1420
1425
  firstExecutionTime: number;
1421
1426
  }>;
@@ -1,7 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { campaignInsightsSchema, campaignIntegrations } from '../../schemas';
2
+ import { campaignInsightsSchema } from '../../schemas';
3
3
  import { campaignCountByStatusSchema } from '../../schemas/campaign/campaign-insights';
4
- export type CampaignIntegration = z.infer<typeof campaignIntegrations>;
5
4
  export interface CampaignCountByStatus extends z.infer<typeof campaignCountByStatusSchema> {
6
5
  }
7
6
  export interface CampaignInsights extends z.infer<typeof campaignInsightsSchema> {
@@ -0,0 +1,7 @@
1
+ import { z } from 'zod';
2
+ import { campaignNotificationType, campaignNotificationWebhooks, updateCampaignNotificationWebhooksSchema } from '../../schemas';
3
+ export type CampaignNotificationType = z.infer<typeof campaignNotificationType>;
4
+ export interface CampaignNotificationWebhooks extends z.infer<typeof campaignNotificationWebhooks> {
5
+ }
6
+ export interface UpdateCampaignNotificationWebhooks extends z.infer<typeof updateCampaignNotificationWebhooksSchema> {
7
+ }
@@ -1,12 +1,10 @@
1
1
  import { z } from "zod";
2
- import { campaignSchema, campaignStatusSchema, createCampaignSchema, updateCampaignSchema } from "../../schemas";
3
- import { JobFilters } from "../job-filters";
4
- import { CampaignExpenses } from "./campaign-expenses";
5
- import { CampaignIntegrations } from "./campaign-integrations";
2
+ import { CampaignExpenses, campaignSchema, campaignStatusSchema, createCampaignSchema, JobFilters, updateCampaignSchema } from "../../schemas";
3
+ import { CampaignNotificationWebhooks } from "./campaign-notifications";
6
4
  export interface Campaign extends z.infer<typeof campaignSchema> {
7
5
  filters: JobFilters;
8
6
  expenses: CampaignExpenses;
9
- integrations: CampaignIntegrations;
7
+ notificationWebhooks: CampaignNotificationWebhooks;
10
8
  }
11
9
  export type CampaignStatus = z.infer<typeof campaignStatusSchema>;
12
10
  export interface CreateCampaign extends z.infer<typeof createCampaignSchema> {
@@ -1,6 +1,3 @@
1
- export * from "./campaign";
2
- export * from "./campaign-insights";
3
- export * from "./campaign-job-count";
4
- export * from "./campaign-expenses";
5
- export * from "./campaign-integrations";
6
- export * from "./campaign-analytics";
1
+ export * from './campaign';
2
+ export * from './campaign-insights';
3
+ export * from './campaign-notifications';