lancer-shared 1.2.133 → 1.2.135
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/bundle.cjs.js +15 -13
- package/dist/constants/account-status.d.ts +3 -0
- package/dist/constants/account-status.js +17 -0
- package/dist/constants/collections.js +13 -11
- package/dist/constants/common-questions.js +4 -1
- package/dist/constants/index.js +32 -10
- package/dist/constants/job-filter-options.js +4 -1
- package/dist/constants/job-status.js +12 -7
- package/dist/constants/mappings/countryMapping.js +3 -1
- package/dist/constants/mappings/regionMapping.js +3 -1
- package/dist/constants/organization.d.ts +2 -2
- package/dist/constants/proxies.d.ts +4 -0
- package/dist/constants/routes.js +37 -39
- package/dist/constants/upwork-accounts.js +6 -3
- package/dist/constants/upwork-filters.d.ts +5 -0
- package/dist/constants/upwork-filters.js +75 -0
- package/dist/index.js +20 -4
- package/dist/schemas/account/account-status.js +5 -2
- package/dist/schemas/account/bidder-account.js +24 -22
- package/dist/schemas/account/exceptions/no-bidder-accounts-available.d.ts +5 -0
- package/dist/schemas/account/index.js +19 -3
- package/dist/schemas/account/manager-account.d.ts +116 -0
- package/dist/schemas/account/manager-account.js +38 -0
- package/dist/schemas/account/scraper-account.js +24 -21
- package/dist/schemas/ai/ai-config.js +11 -8
- package/dist/schemas/ai/index.js +19 -3
- package/dist/schemas/ai/proposal.js +13 -10
- package/dist/schemas/ai/suitability.js +11 -8
- package/dist/schemas/ai-config/ai-config.d.ts +39 -0
- package/dist/schemas/ai-config/ai-config.js +12 -0
- package/dist/schemas/ai-config/index.d.ts +1 -0
- package/dist/schemas/ai-config/index.js +17 -0
- package/dist/schemas/bid/bid-result.js +13 -9
- package/dist/schemas/bid/bid-status.d.ts +30 -0
- package/dist/schemas/bid/bid-status.js +15 -0
- package/dist/schemas/bid/bid.js +30 -29
- package/dist/schemas/bid/exceptions/base-exception.d.ts +4 -0
- package/dist/schemas/bid/exceptions/evalute-element.exception.d.ts +5 -0
- package/dist/schemas/bid/exceptions/wait-for-function-timeout.d.ts +5 -0
- package/dist/schemas/bid/index.js +18 -2
- package/dist/schemas/bidding/index.d.ts +1 -0
- package/dist/schemas/bidding/index.js +17 -0
- package/dist/schemas/bidding/proposal-bidding-status.d.ts +26 -0
- package/dist/schemas/bidding/proposal-bidding-status.js +18 -0
- package/dist/schemas/bidding/proposal-dto.d.ts +26 -0
- package/dist/schemas/bidding/proposal-dto.js +18 -0
- package/dist/schemas/campaign/campaign-ai-metrics.js +8 -5
- package/dist/schemas/campaign/campaign-analytics.d.ts +0 -296
- package/dist/schemas/campaign/campaign-analytics.js +31 -32
- package/dist/schemas/campaign/campaign-expenses.js +8 -5
- package/dist/schemas/campaign/campaign-insights.js +30 -30
- package/dist/schemas/campaign/campaign-integrations.d.ts +0 -5
- package/dist/schemas/campaign/campaign-integrations.js +13 -10
- package/dist/schemas/campaign/campaign-job-count.js +6 -3
- package/dist/schemas/campaign/campaign.js +35 -32
- package/dist/schemas/campaign/index.js +23 -7
- package/dist/schemas/chat-message/chat-message.js +10 -7
- package/dist/schemas/chat-message/index.js +17 -1
- package/dist/schemas/config/agency-config.js +9 -6
- package/dist/schemas/config/index.js +17 -1
- package/dist/schemas/index.js +32 -17
- package/dist/schemas/job/feed-job.d.ts +866 -0
- package/dist/schemas/job/index.js +19 -0
- package/dist/schemas/job/job-details.js +29 -0
- package/dist/schemas/job/job-note.d.ts +83 -0
- package/dist/schemas/job/job-note.js +30 -0
- package/dist/schemas/job/job-pipeline.d.ts +74 -0
- package/dist/schemas/job/job-pipeline.js +29 -0
- package/dist/schemas/job/job-status.d.ts +3 -0
- package/dist/schemas/job/job-status.js +27 -0
- package/dist/schemas/job/job-suitability.d.ts +12 -0
- package/dist/schemas/job/job-suitability.js +13 -0
- package/dist/schemas/job/job.d.ts +1160 -0
- package/dist/schemas/job/job.js +90 -0
- package/dist/schemas/job/pipeline-job.d.ts +608 -0
- package/dist/schemas/job/pipeline-job.js +43 -0
- package/dist/schemas/job/upwork-job.d.ts +334 -0
- package/dist/schemas/job/upwork-job.js +60 -0
- package/dist/schemas/job-filters/index.js +17 -1
- package/dist/schemas/job-filters/job-filters.js +65 -62
- package/dist/schemas/knowledge-object/index.d.ts +1 -0
- package/dist/schemas/knowledge-object/index.js +17 -0
- package/dist/schemas/knowledge-object/knowledge-object.d.ts +128 -0
- package/dist/schemas/knowledge-object/knowledge-object.js +47 -0
- package/dist/schemas/lead/index.js +19 -173
- package/dist/schemas/lead/lead-note.js +16 -13
- package/dist/schemas/lead/lead-status.js +6 -3
- package/dist/schemas/lead/lead.d.ts +1897 -0
- package/dist/schemas/lead/lead.js +143 -0
- package/dist/schemas/logger/index.js +17 -1
- package/dist/schemas/logger/log-event.d.ts +10 -10
- package/dist/schemas/logger/log-event.js +49 -100
- package/dist/schemas/organization/index.d.ts +145 -63
- package/dist/schemas/organization/index.js +17 -70
- package/dist/schemas/organization/organization.d.ts +7 -177
- package/dist/schemas/organization/organization.js +17 -14
- package/dist/schemas/proxy/index.js +17 -3
- package/dist/schemas/proxy/proxy.js +19 -25
- package/dist/schemas/saved-search/index.js +11 -8
- package/dist/schemas/scraper/index.js +18 -2
- package/dist/schemas/scraper/scrape-payload.d.ts +0 -78
- package/dist/schemas/scraper/scrape-payload.js +14 -19
- package/dist/schemas/scraper/scrape-response.d.ts +345 -0
- package/dist/schemas/scraper/scrape-response.js +9 -0
- package/dist/schemas/scraper/scrape-result.js +21 -21
- package/dist/schemas/shared.js +9 -12
- package/dist/schemas/time-filter/index.js +8 -5
- package/dist/schemas/upwork-account/index.d.ts +3 -0
- package/dist/schemas/upwork-account/index.js +19 -0
- package/dist/schemas/upwork-account/upwork-account-status.d.ts +2 -0
- package/dist/schemas/upwork-account/upwork-account-status.js +11 -0
- package/dist/schemas/upwork-account/upwork-business-manager-account.d.ts +95 -0
- package/dist/schemas/upwork-account/upwork-business-manager-account.js +35 -0
- package/dist/schemas/upwork-account/upwork-scraper-account.d.ts +92 -0
- package/dist/schemas/upwork-account/upwork-scraper-account.js +31 -0
- package/dist/schemas/upwork-account/upwork-scraping-account.d.ts +90 -0
- package/dist/schemas/upwork-account/upwork-scraping-account.js +30 -0
- package/dist/schemas/user/index.js +41 -38
- package/dist/types/account/account-status.js +2 -1
- package/dist/types/account/bidder-account.js +2 -1
- package/dist/types/account/index.js +19 -3
- package/dist/types/account/manager-account.d.ts +7 -0
- package/dist/types/account/manager-account.js +2 -0
- package/dist/types/account/scraper-account.js +2 -1
- package/dist/types/ai/ai-config.js +2 -1
- package/dist/types/ai/index.js +19 -3
- package/dist/types/ai/proposal.js +2 -1
- package/dist/types/ai/suitability.js +2 -1
- package/dist/types/ai-config/ai-config.d.ts +6 -0
- package/dist/types/ai-config/ai-config.js +2 -0
- package/dist/types/ai-config/index.d.ts +1 -0
- package/dist/types/ai-config/index.js +17 -0
- package/dist/types/bid/bid-result.js +2 -1
- package/dist/types/bid/bid-status.d.ts +5 -0
- package/dist/types/bid/bid-status.js +2 -0
- package/dist/types/bid/bid.js +2 -1
- package/dist/types/bid/index.js +18 -2
- package/dist/types/bidding/index.d.ts +1 -0
- package/dist/types/bidding/index.js +17 -0
- package/dist/types/bidding/proposal-bidding-status.d.ts +3 -0
- package/dist/types/bidding/proposal-bidding-status.js +2 -0
- package/dist/types/bidding/proposal-dto.d.ts +3 -0
- package/dist/types/bidding/proposal-dto.js +2 -0
- package/dist/types/campaign/campaign-analytics.js +2 -1
- package/dist/types/campaign/campaign-expenses.js +2 -1
- package/dist/types/campaign/campaign-insights.js +2 -1
- package/dist/types/campaign/campaign-integrations.js +2 -1
- package/dist/types/campaign/campaign-job-count.js +2 -1
- package/dist/types/campaign/campaign.js +2 -1
- package/dist/types/campaign/index.js +22 -6
- package/dist/types/chat-message/chat-message.js +2 -1
- package/dist/types/chat-message/index.js +17 -1
- package/dist/types/config/agency-config.js +2 -1
- package/dist/types/config/index.js +17 -1
- package/dist/types/index.js +29 -15
- package/dist/types/job/index.js +19 -3
- package/dist/types/job/job-details.d.ts +36 -0
- package/dist/types/job/job-details.js +2 -0
- package/dist/types/job/job-note.js +2 -1
- package/dist/types/job/job-pipeline.d.ts +4 -0
- package/dist/types/job/job-pipeline.js +2 -0
- package/dist/types/job/job-status.js +4 -1
- package/dist/types/job/job-suitability.d.ts +3 -0
- package/dist/types/job/job-suitability.js +2 -0
- package/dist/types/job/job.d.ts +36 -0
- package/dist/types/job/job.js +2 -0
- package/dist/types/job-filters/index.js +17 -1
- package/dist/types/job-filters/job-filters.js +2 -1
- package/dist/types/knowledge-object/index.d.ts +1 -0
- package/dist/types/knowledge-object/index.js +17 -0
- package/dist/types/knowledge-object/knowledge-object.d.ts +4 -0
- package/dist/types/knowledge-object/knowledge-object.js +2 -0
- package/dist/types/logger/index.js +17 -1
- package/dist/types/logger/log-event.js +2 -1
- package/dist/types/saved-search/index.js +2 -1
- package/dist/types/scraper/index.js +18 -2
- package/dist/types/scraper/scrape-payload.js +2 -1
- package/dist/types/scraper/scrape-response.d.ts +4 -0
- package/dist/types/scraper/scrape-response.js +2 -0
- package/dist/types/scraper/scrape-result.js +2 -1
- package/dist/types/time-filter/index.js +2 -1
- package/dist/types/upwork-account/index.d.ts +3 -0
- package/dist/types/upwork-account/index.js +19 -0
- package/dist/types/upwork-account/upwork-account-status.d.ts +3 -0
- package/dist/types/upwork-account/upwork-account-status.js +2 -0
- package/dist/types/upwork-account/upwork-business-manager-account.d.ts +7 -0
- package/dist/types/upwork-account/upwork-business-manager-account.js +2 -0
- package/dist/types/upwork-account/upwork-scraping-account.d.ts +5 -0
- package/dist/types/upwork-account/upwork-scraping-account.js +2 -0
- package/dist/types/user/index.js +2 -1
- package/dist/utils/index.js +17 -1
- package/dist/utils/try-catch.js +23 -8
- package/package.json +1 -1
- package/dist/schemas/event/index.d.ts +0 -58
- package/dist/schemas/job/haha.json +0 -581
- package/dist/schemas/lead/nuxt.js +0 -287
- package/dist/schemas/meter-event/index.d.ts +0 -12
- package/dist/schemas/organization/member.js +0 -7
- package/dist/schemas/organization/subscription.js +0 -17
- package/dist/schemas/proxy/proxy-available-replacements.js +0 -3
- package/dist/schemas/proxy/proxy-country.js +0 -249
- package/dist/schemas/tier/index.d.ts +0 -119
- package/dist/schemas/transaction/index.js +0 -17
- package/dist/schemas/usage/index.js +0 -18
- package/dist/types/job/nuxt.js +0 -1
- package/dist/types/shared.js +0 -1
- package/dist/types/transaction/index.js +0 -1
- package/dist/types/usage/index.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { infer, z } from
|
|
2
|
-
import { CoverLetterTemplate } from
|
|
3
|
-
import { OnboardingProgress } from
|
|
1
|
+
import { infer, z } from 'zod';
|
|
2
|
+
import { CoverLetterTemplate } from './cover-letter';
|
|
3
|
+
import { OnboardingProgress } from './onboarding';
|
|
4
4
|
export declare const organizationTypeSchema: z.ZodEnum<["agency", "freelancer"]>;
|
|
5
5
|
export declare const organizationTierEnum: z.ZodEnum<["free", "premium"]>;
|
|
6
6
|
export declare const limitsSchema: z.ZodObject<{
|
|
@@ -16,6 +16,70 @@ export declare const limitsSchema: z.ZodObject<{
|
|
|
16
16
|
usedCredits: number;
|
|
17
17
|
extraCredits: number;
|
|
18
18
|
}>;
|
|
19
|
+
declare const oneTimePaymentSchema: z.ZodObject<{
|
|
20
|
+
paidAt: z.ZodOptional<z.ZodNumber>;
|
|
21
|
+
amount: z.ZodOptional<z.ZodNumber>;
|
|
22
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
23
|
+
status: z.ZodString;
|
|
24
|
+
paymentIntentId: z.ZodOptional<z.ZodString>;
|
|
25
|
+
error: z.ZodOptional<z.ZodString>;
|
|
26
|
+
}, "strip", z.ZodTypeAny, {
|
|
27
|
+
status: string;
|
|
28
|
+
paidAt?: number | undefined;
|
|
29
|
+
amount?: number | undefined;
|
|
30
|
+
currency?: string | undefined;
|
|
31
|
+
paymentIntentId?: string | undefined;
|
|
32
|
+
error?: string | undefined;
|
|
33
|
+
}, {
|
|
34
|
+
status: string;
|
|
35
|
+
paidAt?: number | undefined;
|
|
36
|
+
amount?: number | undefined;
|
|
37
|
+
currency?: string | undefined;
|
|
38
|
+
paymentIntentId?: string | undefined;
|
|
39
|
+
error?: string | undefined;
|
|
40
|
+
}>;
|
|
41
|
+
declare const oneTimePaymentsSchema: z.ZodObject<{
|
|
42
|
+
usBidderAccountPayment: z.ZodOptional<z.ZodObject<{
|
|
43
|
+
paidAt: z.ZodOptional<z.ZodNumber>;
|
|
44
|
+
amount: z.ZodOptional<z.ZodNumber>;
|
|
45
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
46
|
+
status: z.ZodString;
|
|
47
|
+
paymentIntentId: z.ZodOptional<z.ZodString>;
|
|
48
|
+
error: z.ZodOptional<z.ZodString>;
|
|
49
|
+
}, "strip", z.ZodTypeAny, {
|
|
50
|
+
status: string;
|
|
51
|
+
paidAt?: number | undefined;
|
|
52
|
+
amount?: number | undefined;
|
|
53
|
+
currency?: string | undefined;
|
|
54
|
+
paymentIntentId?: string | undefined;
|
|
55
|
+
error?: string | undefined;
|
|
56
|
+
}, {
|
|
57
|
+
status: string;
|
|
58
|
+
paidAt?: number | undefined;
|
|
59
|
+
amount?: number | undefined;
|
|
60
|
+
currency?: string | undefined;
|
|
61
|
+
paymentIntentId?: string | undefined;
|
|
62
|
+
error?: string | undefined;
|
|
63
|
+
}>>;
|
|
64
|
+
}, "strip", z.ZodTypeAny, {
|
|
65
|
+
usBidderAccountPayment?: {
|
|
66
|
+
status: string;
|
|
67
|
+
paidAt?: number | undefined;
|
|
68
|
+
amount?: number | undefined;
|
|
69
|
+
currency?: string | undefined;
|
|
70
|
+
paymentIntentId?: string | undefined;
|
|
71
|
+
error?: string | undefined;
|
|
72
|
+
} | undefined;
|
|
73
|
+
}, {
|
|
74
|
+
usBidderAccountPayment?: {
|
|
75
|
+
status: string;
|
|
76
|
+
paidAt?: number | undefined;
|
|
77
|
+
amount?: number | undefined;
|
|
78
|
+
currency?: string | undefined;
|
|
79
|
+
paymentIntentId?: string | undefined;
|
|
80
|
+
error?: string | undefined;
|
|
81
|
+
} | undefined;
|
|
82
|
+
}>;
|
|
19
83
|
export declare const organizationSchema: z.ZodObject<{
|
|
20
84
|
id: z.ZodString;
|
|
21
85
|
name: z.ZodString;
|
|
@@ -184,40 +248,45 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
184
248
|
openRouterApiKey: z.ZodNullable<z.ZodString>;
|
|
185
249
|
appTrialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
186
250
|
oneTimePayments: z.ZodOptional<z.ZodObject<{
|
|
187
|
-
|
|
188
|
-
paidAt: z.ZodNumber
|
|
189
|
-
amount: z.ZodNumber
|
|
190
|
-
currency: z.ZodString
|
|
251
|
+
usBidderAccountPayment: z.ZodOptional<z.ZodObject<{
|
|
252
|
+
paidAt: z.ZodOptional<z.ZodNumber>;
|
|
253
|
+
amount: z.ZodOptional<z.ZodNumber>;
|
|
254
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
191
255
|
status: z.ZodString;
|
|
192
|
-
paymentIntentId: z.ZodString
|
|
256
|
+
paymentIntentId: z.ZodOptional<z.ZodString>;
|
|
257
|
+
error: z.ZodOptional<z.ZodString>;
|
|
193
258
|
}, "strip", z.ZodTypeAny, {
|
|
194
259
|
status: string;
|
|
195
|
-
paidAt
|
|
196
|
-
amount
|
|
197
|
-
currency
|
|
198
|
-
paymentIntentId
|
|
260
|
+
paidAt?: number | undefined;
|
|
261
|
+
amount?: number | undefined;
|
|
262
|
+
currency?: string | undefined;
|
|
263
|
+
paymentIntentId?: string | undefined;
|
|
264
|
+
error?: string | undefined;
|
|
199
265
|
}, {
|
|
200
266
|
status: string;
|
|
201
|
-
paidAt
|
|
202
|
-
amount
|
|
203
|
-
currency
|
|
204
|
-
paymentIntentId
|
|
267
|
+
paidAt?: number | undefined;
|
|
268
|
+
amount?: number | undefined;
|
|
269
|
+
currency?: string | undefined;
|
|
270
|
+
paymentIntentId?: string | undefined;
|
|
271
|
+
error?: string | undefined;
|
|
205
272
|
}>>;
|
|
206
273
|
}, "strip", z.ZodTypeAny, {
|
|
207
|
-
|
|
274
|
+
usBidderAccountPayment?: {
|
|
208
275
|
status: string;
|
|
209
|
-
paidAt
|
|
210
|
-
amount
|
|
211
|
-
currency
|
|
212
|
-
paymentIntentId
|
|
276
|
+
paidAt?: number | undefined;
|
|
277
|
+
amount?: number | undefined;
|
|
278
|
+
currency?: string | undefined;
|
|
279
|
+
paymentIntentId?: string | undefined;
|
|
280
|
+
error?: string | undefined;
|
|
213
281
|
} | undefined;
|
|
214
282
|
}, {
|
|
215
|
-
|
|
283
|
+
usBidderAccountPayment?: {
|
|
216
284
|
status: string;
|
|
217
|
-
paidAt
|
|
218
|
-
amount
|
|
219
|
-
currency
|
|
220
|
-
paymentIntentId
|
|
285
|
+
paidAt?: number | undefined;
|
|
286
|
+
amount?: number | undefined;
|
|
287
|
+
currency?: string | undefined;
|
|
288
|
+
paymentIntentId?: string | undefined;
|
|
289
|
+
error?: string | undefined;
|
|
221
290
|
} | undefined;
|
|
222
291
|
}>>;
|
|
223
292
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -268,12 +337,13 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
268
337
|
openRouterApiKey: string | null;
|
|
269
338
|
appTrialEndsAt: number | null;
|
|
270
339
|
oneTimePayments?: {
|
|
271
|
-
|
|
340
|
+
usBidderAccountPayment?: {
|
|
272
341
|
status: string;
|
|
273
|
-
paidAt
|
|
274
|
-
amount
|
|
275
|
-
currency
|
|
276
|
-
paymentIntentId
|
|
342
|
+
paidAt?: number | undefined;
|
|
343
|
+
amount?: number | undefined;
|
|
344
|
+
currency?: string | undefined;
|
|
345
|
+
paymentIntentId?: string | undefined;
|
|
346
|
+
error?: string | undefined;
|
|
277
347
|
} | undefined;
|
|
278
348
|
} | undefined;
|
|
279
349
|
}, {
|
|
@@ -324,12 +394,13 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
324
394
|
openRouterApiKey: string | null;
|
|
325
395
|
appTrialEndsAt: number | null;
|
|
326
396
|
oneTimePayments?: {
|
|
327
|
-
|
|
397
|
+
usBidderAccountPayment?: {
|
|
328
398
|
status: string;
|
|
329
|
-
paidAt
|
|
330
|
-
amount
|
|
331
|
-
currency
|
|
332
|
-
paymentIntentId
|
|
399
|
+
paidAt?: number | undefined;
|
|
400
|
+
amount?: number | undefined;
|
|
401
|
+
currency?: string | undefined;
|
|
402
|
+
paymentIntentId?: string | undefined;
|
|
403
|
+
error?: string | undefined;
|
|
333
404
|
} | undefined;
|
|
334
405
|
} | undefined;
|
|
335
406
|
}>;
|
|
@@ -593,40 +664,45 @@ export declare const createOrganizationSchema: z.ZodObject<Pick<{
|
|
|
593
664
|
openRouterApiKey: z.ZodNullable<z.ZodString>;
|
|
594
665
|
appTrialEndsAt: z.ZodNullable<z.ZodNumber>;
|
|
595
666
|
oneTimePayments: z.ZodOptional<z.ZodObject<{
|
|
596
|
-
|
|
597
|
-
paidAt: z.ZodNumber
|
|
598
|
-
amount: z.ZodNumber
|
|
599
|
-
currency: z.ZodString
|
|
667
|
+
usBidderAccountPayment: z.ZodOptional<z.ZodObject<{
|
|
668
|
+
paidAt: z.ZodOptional<z.ZodNumber>;
|
|
669
|
+
amount: z.ZodOptional<z.ZodNumber>;
|
|
670
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
600
671
|
status: z.ZodString;
|
|
601
|
-
paymentIntentId: z.ZodString
|
|
672
|
+
paymentIntentId: z.ZodOptional<z.ZodString>;
|
|
673
|
+
error: z.ZodOptional<z.ZodString>;
|
|
602
674
|
}, "strip", z.ZodTypeAny, {
|
|
603
675
|
status: string;
|
|
604
|
-
paidAt
|
|
605
|
-
amount
|
|
606
|
-
currency
|
|
607
|
-
paymentIntentId
|
|
676
|
+
paidAt?: number | undefined;
|
|
677
|
+
amount?: number | undefined;
|
|
678
|
+
currency?: string | undefined;
|
|
679
|
+
paymentIntentId?: string | undefined;
|
|
680
|
+
error?: string | undefined;
|
|
608
681
|
}, {
|
|
609
682
|
status: string;
|
|
610
|
-
paidAt
|
|
611
|
-
amount
|
|
612
|
-
currency
|
|
613
|
-
paymentIntentId
|
|
683
|
+
paidAt?: number | undefined;
|
|
684
|
+
amount?: number | undefined;
|
|
685
|
+
currency?: string | undefined;
|
|
686
|
+
paymentIntentId?: string | undefined;
|
|
687
|
+
error?: string | undefined;
|
|
614
688
|
}>>;
|
|
615
689
|
}, "strip", z.ZodTypeAny, {
|
|
616
|
-
|
|
690
|
+
usBidderAccountPayment?: {
|
|
617
691
|
status: string;
|
|
618
|
-
paidAt
|
|
619
|
-
amount
|
|
620
|
-
currency
|
|
621
|
-
paymentIntentId
|
|
692
|
+
paidAt?: number | undefined;
|
|
693
|
+
amount?: number | undefined;
|
|
694
|
+
currency?: string | undefined;
|
|
695
|
+
paymentIntentId?: string | undefined;
|
|
696
|
+
error?: string | undefined;
|
|
622
697
|
} | undefined;
|
|
623
698
|
}, {
|
|
624
|
-
|
|
699
|
+
usBidderAccountPayment?: {
|
|
625
700
|
status: string;
|
|
626
|
-
paidAt
|
|
627
|
-
amount
|
|
628
|
-
currency
|
|
629
|
-
paymentIntentId
|
|
701
|
+
paidAt?: number | undefined;
|
|
702
|
+
amount?: number | undefined;
|
|
703
|
+
currency?: string | undefined;
|
|
704
|
+
paymentIntentId?: string | undefined;
|
|
705
|
+
error?: string | undefined;
|
|
630
706
|
} | undefined;
|
|
631
707
|
}>>;
|
|
632
708
|
}, "type" | "name">, "strip", z.ZodTypeAny, {
|
|
@@ -787,11 +863,17 @@ export declare const subscribePayloadSchema: z.ZodObject<{
|
|
|
787
863
|
toltReferral?: string | undefined;
|
|
788
864
|
couponCode?: string | null | undefined;
|
|
789
865
|
}>;
|
|
866
|
+
export interface OneTimePayment extends z.infer<typeof oneTimePaymentSchema> {
|
|
867
|
+
}
|
|
868
|
+
export interface OneTimePayments extends z.infer<typeof oneTimePaymentsSchema> {
|
|
869
|
+
usBidderAccountPayment?: OneTimePayment;
|
|
870
|
+
}
|
|
790
871
|
export interface Organization extends infer<typeof organizationSchema> {
|
|
791
872
|
coverLetterTemplates: CoverLetterTemplate[] | null;
|
|
792
873
|
settings: OrganizationSettings | null;
|
|
793
874
|
profile: OrganizationProfile | null;
|
|
794
875
|
onboarding: OnboardingProgress | null;
|
|
876
|
+
oneTimePayments: OneTimePayments;
|
|
795
877
|
}
|
|
796
878
|
export interface TrackUsagePayloadSchema extends infer<typeof trackUsagePayloadSchema> {
|
|
797
879
|
}
|
|
@@ -804,7 +886,7 @@ export interface OrganizationSettings extends infer<typeof organizationSettingsS
|
|
|
804
886
|
export type OrganizationType = z.infer<typeof organizationTypeSchema>;
|
|
805
887
|
export interface SubscribePayload extends z.infer<typeof subscribePayloadSchema> {
|
|
806
888
|
}
|
|
807
|
-
export * from
|
|
808
|
-
export * from
|
|
809
|
-
export * from
|
|
810
|
-
export * from
|
|
889
|
+
export * from './cover-letter';
|
|
890
|
+
export * from './member';
|
|
891
|
+
export * from './onboarding';
|
|
892
|
+
export * from './subscription';
|
|
@@ -1,70 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
})
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
stripeCustomerId: string(),
|
|
19
|
-
savedCard: boolean(),
|
|
20
|
-
creditsRemaining: number(),
|
|
21
|
-
});
|
|
22
|
-
export const organizationSchema = object({
|
|
23
|
-
id: string(),
|
|
24
|
-
name: string(),
|
|
25
|
-
type: organizationTypeSchema,
|
|
26
|
-
tierId: organizationTierEnum,
|
|
27
|
-
subscription: organizationSubscriptionSchema.nullable(),
|
|
28
|
-
bidConfig: bidConfigSchema,
|
|
29
|
-
active: boolean(),
|
|
30
|
-
limits: organizationLimitsSchema,
|
|
31
|
-
billing: organizationBillingSchema.nullable(),
|
|
32
|
-
createdAt: number(),
|
|
33
|
-
updatedAt: number(),
|
|
34
|
-
});
|
|
35
|
-
export const creditDeductionEventTypeEnum = LogEventTypeEnum.extract([
|
|
36
|
-
"suitabilityComplete",
|
|
37
|
-
"proposalComplete",
|
|
38
|
-
]);
|
|
39
|
-
export const creditDeductionPayloadSchema = object({
|
|
40
|
-
event: creditDeductionEventTypeEnum,
|
|
41
|
-
campaignId: string().nullish(),
|
|
42
|
-
});
|
|
43
|
-
export const aiConfigOldSchema = object({
|
|
44
|
-
id: string(),
|
|
45
|
-
suitabilityPrompt: string().nullable(),
|
|
46
|
-
proposalPrompt: string().nullable(),
|
|
47
|
-
questionProposalPrompt: string().nullable(),
|
|
48
|
-
knowledgeBase: string().nullable(),
|
|
49
|
-
});
|
|
50
|
-
export const aiConfigSchema = object({
|
|
51
|
-
suitabilityRules: string().nullable(),
|
|
52
|
-
coverLetterRules: string().nullable(),
|
|
53
|
-
questionRules: string().nullable(),
|
|
54
|
-
});
|
|
55
|
-
export const knowledgeBaseSchema = object({
|
|
56
|
-
about: string(),
|
|
57
|
-
caseStudies: string(),
|
|
58
|
-
});
|
|
59
|
-
export const notificationConfigSchema = object({
|
|
60
|
-
emailEnabled: boolean(),
|
|
61
|
-
discordWebhookUrl: string().nullable(),
|
|
62
|
-
slackWebhookUrl: string().nullable(),
|
|
63
|
-
});
|
|
64
|
-
export const organizationSettingsSchema = object({
|
|
65
|
-
aiConfig: aiConfigSchema,
|
|
66
|
-
knowledgeBase: knowledgeBaseSchema,
|
|
67
|
-
notifications: notificationConfigSchema,
|
|
68
|
-
});
|
|
69
|
-
export * from "./member";
|
|
70
|
-
export * from "./subscription";
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./organization"), exports);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from
|
|
1
|
+
import { z } from 'zod';
|
|
2
2
|
export declare const bidConfigSchema: z.ZodObject<{
|
|
3
3
|
agencyName: z.ZodNullable<z.ZodString>;
|
|
4
4
|
bidderId: z.ZodNullable<z.ZodString>;
|
|
@@ -36,61 +36,8 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
36
36
|
contractorName: string | null;
|
|
37
37
|
specialisedProfile: string | null;
|
|
38
38
|
}>;
|
|
39
|
-
|
|
40
|
-
|
|
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
42
|
type: "agency" | "freelancer";
|
|
96
43
|
id: string;
|
|
@@ -101,29 +48,8 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
101
48
|
contractorName: string | null;
|
|
102
49
|
specialisedProfile: string | null;
|
|
103
50
|
};
|
|
104
|
-
|
|
105
|
-
|
|
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;
|
|
51
|
+
createdAt: Date;
|
|
52
|
+
updatedAt: Date;
|
|
127
53
|
}, {
|
|
128
54
|
type: "agency" | "freelancer";
|
|
129
55
|
id: string;
|
|
@@ -134,107 +60,11 @@ export declare const organizationSchema: z.ZodObject<{
|
|
|
134
60
|
contractorName: string | null;
|
|
135
61
|
specialisedProfile: string | null;
|
|
136
62
|
};
|
|
137
|
-
|
|
138
|
-
|
|
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
|
-
}>;
|
|
161
|
-
export declare const aiConfigSchema: z.ZodObject<{
|
|
162
|
-
suitabilityRules: z.ZodNullable<z.ZodString>;
|
|
163
|
-
proposalRules: z.ZodNullable<z.ZodString>;
|
|
164
|
-
questionRules: z.ZodNullable<z.ZodString>;
|
|
165
|
-
}, "strip", z.ZodTypeAny, {
|
|
166
|
-
suitabilityRules: string | null;
|
|
167
|
-
proposalRules: string | null;
|
|
168
|
-
questionRules: string | null;
|
|
169
|
-
}, {
|
|
170
|
-
suitabilityRules: string | null;
|
|
171
|
-
proposalRules: string | null;
|
|
172
|
-
questionRules: string | null;
|
|
173
|
-
}>;
|
|
174
|
-
export declare const knowledgeBaseSchema: z.ZodObject<{
|
|
175
|
-
about: z.ZodString;
|
|
176
|
-
caseStudies: z.ZodString;
|
|
177
|
-
}, "strip", z.ZodTypeAny, {
|
|
178
|
-
about: string;
|
|
179
|
-
caseStudies: string;
|
|
180
|
-
}, {
|
|
181
|
-
about: string;
|
|
182
|
-
caseStudies: string;
|
|
183
|
-
}>;
|
|
184
|
-
export declare const organizationSettingsSchema: z.ZodObject<{
|
|
185
|
-
aiConfig: z.ZodObject<{
|
|
186
|
-
suitabilityRules: z.ZodNullable<z.ZodString>;
|
|
187
|
-
proposalRules: z.ZodNullable<z.ZodString>;
|
|
188
|
-
questionRules: z.ZodNullable<z.ZodString>;
|
|
189
|
-
}, "strip", z.ZodTypeAny, {
|
|
190
|
-
suitabilityRules: string | null;
|
|
191
|
-
proposalRules: string | null;
|
|
192
|
-
questionRules: string | null;
|
|
193
|
-
}, {
|
|
194
|
-
suitabilityRules: string | null;
|
|
195
|
-
proposalRules: string | null;
|
|
196
|
-
questionRules: string | null;
|
|
197
|
-
}>;
|
|
198
|
-
knowledgeBase: z.ZodObject<{
|
|
199
|
-
about: z.ZodString;
|
|
200
|
-
caseStudies: z.ZodString;
|
|
201
|
-
}, "strip", z.ZodTypeAny, {
|
|
202
|
-
about: string;
|
|
203
|
-
caseStudies: string;
|
|
204
|
-
}, {
|
|
205
|
-
about: string;
|
|
206
|
-
caseStudies: string;
|
|
207
|
-
}>;
|
|
208
|
-
}, "strip", z.ZodTypeAny, {
|
|
209
|
-
aiConfig: {
|
|
210
|
-
suitabilityRules: string | null;
|
|
211
|
-
proposalRules: string | null;
|
|
212
|
-
questionRules: string | null;
|
|
213
|
-
};
|
|
214
|
-
knowledgeBase: {
|
|
215
|
-
about: string;
|
|
216
|
-
caseStudies: string;
|
|
217
|
-
};
|
|
218
|
-
}, {
|
|
219
|
-
aiConfig: {
|
|
220
|
-
suitabilityRules: string | null;
|
|
221
|
-
proposalRules: string | null;
|
|
222
|
-
questionRules: string | null;
|
|
223
|
-
};
|
|
224
|
-
knowledgeBase: {
|
|
225
|
-
about: string;
|
|
226
|
-
caseStudies: string;
|
|
227
|
-
};
|
|
63
|
+
createdAt: Date;
|
|
64
|
+
updatedAt: Date;
|
|
228
65
|
}>;
|
|
229
66
|
export interface Organization extends z.infer<typeof organizationSchema> {
|
|
230
67
|
}
|
|
231
|
-
export interface AiConfig extends z.infer<typeof aiConfigSchema> {
|
|
232
|
-
}
|
|
233
|
-
export interface KnowledgeBase extends z.infer<typeof knowledgeBaseSchema> {
|
|
234
|
-
}
|
|
235
|
-
export interface OrganizationSettings extends z.infer<typeof organizationSettingsSchema> {
|
|
236
|
-
}
|
|
237
68
|
export interface BidConfig extends z.infer<typeof bidConfigSchema> {
|
|
238
69
|
}
|
|
239
70
|
export type OrganizationType = z.infer<typeof organizationTypeSchema>;
|
|
240
|
-
export * from "./subscription";
|
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.organizationSchema = exports.organizationTypeSchema = exports.bidConfigSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.bidConfigSchema = zod_1.z.object({
|
|
6
|
+
agencyName: zod_1.z.string().nullable(),
|
|
7
|
+
bidderId: zod_1.z.string().nullable(),
|
|
8
|
+
contractorName: zod_1.z.string().nullable(),
|
|
9
|
+
specialisedProfile: zod_1.z.string().nullable(),
|
|
7
10
|
});
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
id: z.string(),
|
|
11
|
-
name: z.string(),
|
|
12
|
-
type: organizationTypeSchema,
|
|
13
|
-
bidConfig: bidConfigSchema,
|
|
14
|
-
createdAt: z.date(),
|
|
15
|
-
updatedAt: z.date(),
|
|
11
|
+
exports.organizationTypeSchema = zod_1.z.enum(['agency', 'freelancer']);
|
|
12
|
+
exports.organizationSchema = zod_1.z.object({
|
|
13
|
+
id: zod_1.z.string(),
|
|
14
|
+
name: zod_1.z.string(),
|
|
15
|
+
type: exports.organizationTypeSchema,
|
|
16
|
+
bidConfig: exports.bidConfigSchema,
|
|
17
|
+
createdAt: zod_1.z.date(),
|
|
18
|
+
updatedAt: zod_1.z.date(),
|
|
16
19
|
});
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./proxy"), exports);
|