lancer-shared 1.2.241 → 1.2.243

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 (55) hide show
  1. package/dist/bundle.cjs.js +2 -1
  2. package/dist/bundle.cjs.js.map +1 -0
  3. package/dist/bundle.esm.js +2 -1
  4. package/dist/bundle.esm.js.map +1 -0
  5. package/dist/schemas/account/bidder-account.d.ts +75 -75
  6. package/dist/schemas/account/scraper-account.d.ts +37 -37
  7. package/dist/schemas/agent/index.d.ts +287 -287
  8. package/dist/schemas/agent/proposal.d.ts +6 -6
  9. package/dist/schemas/bidder/bid.d.ts +2345 -2345
  10. package/dist/schemas/campaign/campaign-analytics.d.ts +857 -857
  11. package/dist/schemas/campaign/campaign-chat-bot.d.ts +25 -25
  12. package/dist/schemas/campaign/campaign-expenses.d.ts +2 -2
  13. package/dist/schemas/campaign/campaign-insights.d.ts +12 -12
  14. package/dist/schemas/campaign/campaign.d.ts +201 -201
  15. package/dist/schemas/campaign/sequence/boost-node.d.ts +2 -2
  16. package/dist/schemas/campaign/sequence/client-size-node.d.ts +8 -8
  17. package/dist/schemas/campaign/sequence/client-spent-node.d.ts +16 -16
  18. package/dist/schemas/campaign/sequence/hire-rate-node.d.ts +16 -16
  19. package/dist/schemas/campaign/sequence/hourly-rate-node.d.ts +16 -16
  20. package/dist/schemas/campaign/sequence/rating-node.d.ts +16 -16
  21. package/dist/schemas/campaign/sequence/suitability-node.d.ts +16 -16
  22. package/dist/schemas/dashboard/index.d.ts +34 -34
  23. package/dist/schemas/infrastructure/index.d.ts +8 -8
  24. package/dist/schemas/invoice/index.d.ts +51 -51
  25. package/dist/schemas/job/index.d.ts +212 -212
  26. package/dist/schemas/job/job-api.d.ts +4 -4
  27. package/dist/schemas/job/job-details.d.ts +736 -736
  28. package/dist/schemas/job/job-filters.d.ts +14 -14
  29. package/dist/schemas/job/job-listing.d.ts +94 -94
  30. package/dist/schemas/job/nuxt.d.ts +150 -150
  31. package/dist/schemas/lead/index.d.ts +1025 -1022
  32. package/dist/schemas/lead/lead-status.d.ts +10 -10
  33. package/dist/schemas/logger/feed/feed-chunk-enrich.d.ts +25 -25
  34. package/dist/schemas/logger/feed/feed-enrich.d.ts +15 -15
  35. package/dist/schemas/logger/feed/feed-job-enrich.d.ts +321 -321
  36. package/dist/schemas/logger/feed/feed-scrape.d.ts +15 -15
  37. package/dist/schemas/logger/log-event.d.ts +91 -91
  38. package/dist/schemas/logger/scraper-events.d.ts +90 -90
  39. package/dist/schemas/notifications/index.d.ts +4 -4
  40. package/dist/schemas/organization/cover-letter.d.ts +2 -2
  41. package/dist/schemas/organization/index.d.ts +104 -104
  42. package/dist/schemas/organization/subscription.d.ts +6 -6
  43. package/dist/schemas/plan/index.d.ts +14 -14
  44. package/dist/schemas/proxy/proxy.d.ts +20 -20
  45. package/dist/schemas/saved-search/index.d.ts +4 -4
  46. package/dist/schemas/scraper/scrape-payload.d.ts +621 -621
  47. package/dist/schemas/scraper/scrape-result.d.ts +214 -214
  48. package/dist/schemas/scraper/upwork-profile.d.ts +16 -16
  49. package/dist/schemas/shared.d.ts +1 -1
  50. package/dist/schemas/talent/index.d.ts +854 -854
  51. package/dist/schemas/transaction/index.d.ts +18 -18
  52. package/dist/schemas/usage/index.d.ts +16 -16
  53. package/dist/schemas/usage-event/index.d.ts +4 -4
  54. package/dist/schemas/user/index.d.ts +4 -4
  55. package/package.json +7 -5
@@ -15,19 +15,19 @@ export declare const transactionStripeMetadataSchema: z.ZodObject<{
15
15
  id: string | null;
16
16
  }>;
17
17
  }, "strip", z.ZodTypeAny, {
18
- subscription: {
19
- id: string | null;
20
- };
21
18
  invoice: {
22
19
  id: string | null;
23
20
  };
24
- }, {
25
21
  subscription: {
26
22
  id: string | null;
27
23
  };
24
+ }, {
28
25
  invoice: {
29
26
  id: string | null;
30
27
  };
28
+ subscription: {
29
+ id: string | null;
30
+ };
31
31
  }>;
32
32
  export declare const transactionTypeEnum: z.ZodEnum<["subscription", "add-on", "refund"]>;
33
33
  export declare const transactionStatusEnum: z.ZodEnum<["succeeded", "failed", "refunded"]>;
@@ -53,48 +53,48 @@ export declare const transactionSchema: z.ZodObject<{
53
53
  id: string | null;
54
54
  }>;
55
55
  }, "strip", z.ZodTypeAny, {
56
- subscription: {
57
- id: string | null;
58
- };
59
56
  invoice: {
60
57
  id: string | null;
61
58
  };
62
- }, {
63
59
  subscription: {
64
60
  id: string | null;
65
61
  };
62
+ }, {
66
63
  invoice: {
67
64
  id: string | null;
68
65
  };
66
+ subscription: {
67
+ id: string | null;
68
+ };
69
69
  }>;
70
70
  }, "strip", z.ZodTypeAny, {
71
71
  type: "subscription" | "add-on" | "refund";
72
- status: "succeeded" | "failed" | "refunded";
73
- orgId: string;
74
- amountUsd: number;
72
+ status: "failed" | "succeeded" | "refunded";
75
73
  timestamp: number;
76
74
  stripe: {
77
- subscription: {
75
+ invoice: {
78
76
  id: string | null;
79
77
  };
80
- invoice: {
78
+ subscription: {
81
79
  id: string | null;
82
80
  };
83
81
  };
84
- }, {
85
- type: "subscription" | "add-on" | "refund";
86
- status: "succeeded" | "failed" | "refunded";
87
82
  orgId: string;
88
83
  amountUsd: number;
84
+ }, {
85
+ type: "subscription" | "add-on" | "refund";
86
+ status: "failed" | "succeeded" | "refunded";
89
87
  timestamp: number;
90
88
  stripe: {
91
- subscription: {
89
+ invoice: {
92
90
  id: string | null;
93
91
  };
94
- invoice: {
92
+ subscription: {
95
93
  id: string | null;
96
94
  };
97
95
  };
96
+ orgId: string;
97
+ amountUsd: number;
98
98
  }>;
99
99
  export interface StripeTransactionMetadata extends z.infer<typeof transactionStripeMetadataSchema> {
100
100
  }
@@ -5,12 +5,12 @@ export declare const dailyUsageSchema: z.ZodObject<{
5
5
  proposal: z.ZodNumber;
6
6
  bidding: z.ZodNumber;
7
7
  }, "strip", z.ZodTypeAny, {
8
- suitability: number;
9
8
  proposal: number;
9
+ suitability: number;
10
10
  bidding: number;
11
11
  }, {
12
- suitability: number;
13
12
  proposal: number;
13
+ suitability: number;
14
14
  bidding: number;
15
15
  }>;
16
16
  tokensUsed: z.ZodOptional<z.ZodNumber>;
@@ -18,25 +18,25 @@ export declare const dailyUsageSchema: z.ZodObject<{
18
18
  model: z.ZodString;
19
19
  timestamp: z.ZodNumber;
20
20
  }, "strip", z.ZodTypeAny, {
21
+ timestamp: number;
22
+ model: string;
21
23
  breakdown: {
22
- suitability: number;
23
24
  proposal: number;
25
+ suitability: number;
24
26
  bidding: number;
25
27
  };
26
- model: string;
27
- timestamp: number;
28
- tokensUsed?: number | undefined;
29
28
  campaignId?: string | undefined;
29
+ tokensUsed?: number | undefined;
30
30
  }, {
31
+ timestamp: number;
32
+ model: string;
31
33
  breakdown: {
32
- suitability: number;
33
34
  proposal: number;
35
+ suitability: number;
34
36
  bidding: number;
35
37
  };
36
- model: string;
37
- timestamp: number;
38
- tokensUsed?: number | undefined;
39
38
  campaignId?: string | undefined;
39
+ tokensUsed?: number | undefined;
40
40
  }>;
41
41
  export declare const periodUsageSchema: z.ZodObject<{
42
42
  usedCredits: z.ZodNumber;
@@ -45,30 +45,30 @@ export declare const periodUsageSchema: z.ZodObject<{
45
45
  proposal: z.ZodNumber;
46
46
  bidding: z.ZodNumber;
47
47
  }, "strip", z.ZodTypeAny, {
48
- suitability: number;
49
48
  proposal: number;
49
+ suitability: number;
50
50
  bidding: number;
51
51
  }, {
52
- suitability: number;
53
52
  proposal: number;
53
+ suitability: number;
54
54
  bidding: number;
55
55
  }>;
56
56
  lastUpdated: z.ZodNumber;
57
57
  }, "strip", z.ZodTypeAny, {
58
+ usedCredits: number;
58
59
  breakdown: {
59
- suitability: number;
60
60
  proposal: number;
61
+ suitability: number;
61
62
  bidding: number;
62
63
  };
63
- usedCredits: number;
64
64
  lastUpdated: number;
65
65
  }, {
66
+ usedCredits: number;
66
67
  breakdown: {
67
- suitability: number;
68
68
  proposal: number;
69
+ suitability: number;
69
70
  bidding: number;
70
71
  };
71
- usedCredits: number;
72
72
  lastUpdated: number;
73
73
  }>;
74
74
  export interface DailyUsage extends z.infer<typeof dailyUsageSchema> {
@@ -37,25 +37,25 @@ export declare const usageEventSchema: z.ZodObject<{
37
37
  planId: string | null;
38
38
  }>;
39
39
  }, "strip", z.ZodTypeAny, {
40
- organizationId: string;
41
- typeId: "suitabilityComplete" | "proposalComplete" | "biddingComplete";
42
- timestamp: number;
43
40
  metadata: {
44
41
  campaignId: string | null;
45
42
  userId: string | null;
46
43
  stripeSubscriptionId: string | null;
47
44
  planId: string | null;
48
45
  };
49
- }, {
50
46
  organizationId: string;
51
47
  typeId: "suitabilityComplete" | "proposalComplete" | "biddingComplete";
52
48
  timestamp: number;
49
+ }, {
53
50
  metadata: {
54
51
  campaignId: string | null;
55
52
  userId: string | null;
56
53
  stripeSubscriptionId: string | null;
57
54
  planId: string | null;
58
55
  };
56
+ organizationId: string;
57
+ typeId: "suitabilityComplete" | "proposalComplete" | "biddingComplete";
58
+ timestamp: number;
59
59
  }>;
60
60
  export type UsageEventType = z.infer<typeof usageEventTypeEnum>;
61
61
  export interface UsageEvent extends infer<typeof usageEventSchema> {
@@ -12,18 +12,18 @@ export declare const userSchema: z.ZodObject<{
12
12
  id: string;
13
13
  name: string;
14
14
  email: string;
15
- organizationIds: string[];
16
15
  createdAt: number;
17
16
  updatedAt: number;
18
- role?: "admin" | "user" | undefined;
17
+ organizationIds: string[];
18
+ role?: "user" | "admin" | undefined;
19
19
  }, {
20
20
  id: string;
21
21
  name: string;
22
22
  email: string;
23
- organizationIds: string[];
24
23
  createdAt: number;
25
24
  updatedAt: number;
26
- role?: "admin" | "user" | undefined;
25
+ organizationIds: string[];
26
+ role?: "user" | "admin" | undefined;
27
27
  }>;
28
28
  export declare const loginSchema: z.ZodObject<{
29
29
  email: z.ZodString;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lancer-shared",
3
- "version": "1.2.241",
3
+ "version": "1.2.243",
4
4
  "description": "This package contains shared stuff.",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "dist/bundle.cjs.js",
@@ -8,15 +8,17 @@
8
8
  "files": [
9
9
  "dist/bundle.cjs.js",
10
10
  "dist/bundle.esm.js",
11
+ "dist/bundle.cjs.js.map",
12
+ "dist/bundle.esm.js.map",
11
13
  "dist/index.d.ts",
12
- "dist/schemas/**",
13
- "dist/constants/**",
14
- "dist/utils/**"
14
+ "dist/schemas/**/*.d.ts",
15
+ "dist/constants/**/*.d.ts",
16
+ "dist/utils/**/*.d.ts"
15
17
  ],
16
18
  "scripts": {
17
19
  "test": "echo \"Error: no test specified\" && exit 1",
18
20
  "prepublishOnly": "npm run build",
19
- "build": "rollup -c --bundleConfigAsCjs",
21
+ "build": "tsc",
20
22
  "dev": "rollup -c -w --bundleConfigAsCjs"
21
23
  },
22
24
  "keywords": [],