lancer-shared 1.2.71 → 1.2.73

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 (163) hide show
  1. package/dist/bundle.cjs.js +9 -2
  2. package/dist/constants/routes.d.ts +4 -1
  3. package/dist/schemas/account/bidder-account.d.ts +6 -2
  4. package/dist/schemas/campaign/campaign-analytics.d.ts +24 -24
  5. package/dist/schemas/proxy/proxy-available-replacements.d.ts +1 -1
  6. package/package.json +1 -1
  7. package/dist/constants/collections.d.ts +0 -13
  8. package/dist/constants/collections.js +0 -14
  9. package/dist/constants/common-questions.js +0 -57
  10. package/dist/constants/index.js +0 -18
  11. package/dist/constants/job-filter-options.js +0 -265
  12. package/dist/constants/job-status.js +0 -21
  13. package/dist/constants/mappings/countryMapping.js +0 -120
  14. package/dist/constants/mappings/regionMapping.js +0 -240
  15. package/dist/constants/organization.d.ts +0 -2
  16. package/dist/constants/routes.js +0 -116
  17. package/dist/constants/upwork-accounts.js +0 -18
  18. package/dist/index.js +0 -4
  19. package/dist/schemas/account/account-status.js +0 -8
  20. package/dist/schemas/account/bidder-account.js +0 -35
  21. package/dist/schemas/account/index.js +0 -3
  22. package/dist/schemas/account/scraper-account.js +0 -34
  23. package/dist/schemas/ai/ai-config.d.ts +0 -36
  24. package/dist/schemas/ai/ai-config.js +0 -9
  25. package/dist/schemas/ai/index.d.ts +0 -3
  26. package/dist/schemas/ai/index.js +0 -3
  27. package/dist/schemas/ai/proposal.d.ts +0 -82
  28. package/dist/schemas/ai/proposal.js +0 -13
  29. package/dist/schemas/ai/suitability.d.ts +0 -37
  30. package/dist/schemas/ai/suitability.js +0 -14
  31. package/dist/schemas/bid/bid-result.js +0 -11
  32. package/dist/schemas/bid/bid.js +0 -35
  33. package/dist/schemas/bid/index.js +0 -2
  34. package/dist/schemas/campaign/campaign-ai-metrics.js +0 -6
  35. package/dist/schemas/campaign/campaign-analytics.js +0 -42
  36. package/dist/schemas/campaign/campaign-expenses.js +0 -6
  37. package/dist/schemas/campaign/campaign-insights.js +0 -31
  38. package/dist/schemas/campaign/campaign-integrations.d.ts +0 -87
  39. package/dist/schemas/campaign/campaign-integrations.js +0 -13
  40. package/dist/schemas/campaign/campaign-job-count.d.ts +0 -2
  41. package/dist/schemas/campaign/campaign-job-count.js +0 -3
  42. package/dist/schemas/campaign/campaign.js +0 -41
  43. package/dist/schemas/campaign/index.js +0 -7
  44. package/dist/schemas/chat-message/chat-message.d.ts +0 -31
  45. package/dist/schemas/chat-message/chat-message.js +0 -10
  46. package/dist/schemas/chat-message/index.d.ts +0 -1
  47. package/dist/schemas/chat-message/index.js +0 -1
  48. package/dist/schemas/config/agency-config.d.ts +0 -17
  49. package/dist/schemas/config/agency-config.js +0 -7
  50. package/dist/schemas/config/index.d.ts +0 -1
  51. package/dist/schemas/config/index.js +0 -1
  52. package/dist/schemas/event/index.d.ts +0 -58
  53. package/dist/schemas/index.js +0 -17
  54. package/dist/schemas/job-filters/index.d.ts +0 -1
  55. package/dist/schemas/job-filters/index.js +0 -1
  56. package/dist/schemas/job-filters/job-filters.d.ts +0 -241
  57. package/dist/schemas/job-filters/job-filters.js +0 -84
  58. package/dist/schemas/lead/index.js +0 -173
  59. package/dist/schemas/lead/lead-note.d.ts +0 -83
  60. package/dist/schemas/lead/lead-note.js +0 -27
  61. package/dist/schemas/lead/lead-status.js +0 -23
  62. package/dist/schemas/lead/nuxt.d.ts +0 -1664
  63. package/dist/schemas/lead/nuxt.js +0 -287
  64. package/dist/schemas/logger/index.js +0 -1
  65. package/dist/schemas/logger/log-event.js +0 -117
  66. package/dist/schemas/meter-event/index.d.ts +0 -12
  67. package/dist/schemas/organization/index.js +0 -70
  68. package/dist/schemas/organization/member.js +0 -7
  69. package/dist/schemas/organization/organization.d.ts +0 -240
  70. package/dist/schemas/organization/organization.js +0 -16
  71. package/dist/schemas/organization/subscription.js +0 -17
  72. package/dist/schemas/proxy/index.js +0 -3
  73. package/dist/schemas/proxy/proxy-available-replacements.js +0 -3
  74. package/dist/schemas/proxy/proxy-country.js +0 -249
  75. package/dist/schemas/proxy/proxy.js +0 -29
  76. package/dist/schemas/saved-search/index.js +0 -9
  77. package/dist/schemas/scraper/index.js +0 -2
  78. package/dist/schemas/scraper/scrape-payload.js +0 -21
  79. package/dist/schemas/scraper/scrape-result.js +0 -23
  80. package/dist/schemas/shared.js +0 -19
  81. package/dist/schemas/tier/index.d.ts +0 -119
  82. package/dist/schemas/time-filter/index.js +0 -6
  83. package/dist/schemas/transaction/index.js +0 -17
  84. package/dist/schemas/usage/index.js +0 -18
  85. package/dist/schemas/user/index.js +0 -52
  86. package/dist/types/account/account-status.d.ts +0 -3
  87. package/dist/types/account/account-status.js +0 -1
  88. package/dist/types/account/bidder-account.d.ts +0 -7
  89. package/dist/types/account/bidder-account.js +0 -1
  90. package/dist/types/account/index.d.ts +0 -3
  91. package/dist/types/account/index.js +0 -3
  92. package/dist/types/account/scraper-account.d.ts +0 -5
  93. package/dist/types/account/scraper-account.js +0 -1
  94. package/dist/types/ai/ai-config.d.ts +0 -6
  95. package/dist/types/ai/ai-config.js +0 -1
  96. package/dist/types/ai/index.d.ts +0 -3
  97. package/dist/types/ai/index.js +0 -3
  98. package/dist/types/ai/proposal.d.ts +0 -10
  99. package/dist/types/ai/proposal.js +0 -1
  100. package/dist/types/ai/suitability.d.ts +0 -6
  101. package/dist/types/ai/suitability.js +0 -1
  102. package/dist/types/bid/bid-result.d.ts +0 -5
  103. package/dist/types/bid/bid-result.js +0 -1
  104. package/dist/types/bid/bid.d.ts +0 -9
  105. package/dist/types/bid/bid.js +0 -1
  106. package/dist/types/bid/index.d.ts +0 -2
  107. package/dist/types/bid/index.js +0 -2
  108. package/dist/types/campaign/campaign-analytics.d.ts +0 -7
  109. package/dist/types/campaign/campaign-analytics.js +0 -1
  110. package/dist/types/campaign/campaign-expenses.d.ts +0 -3
  111. package/dist/types/campaign/campaign-expenses.js +0 -1
  112. package/dist/types/campaign/campaign-insights.js +0 -1
  113. package/dist/types/campaign/campaign-integrations.d.ts +0 -6
  114. package/dist/types/campaign/campaign-integrations.js +0 -1
  115. package/dist/types/campaign/campaign-job-count.d.ts +0 -4
  116. package/dist/types/campaign/campaign-job-count.js +0 -1
  117. package/dist/types/campaign/campaign.js +0 -1
  118. package/dist/types/campaign/index.js +0 -6
  119. package/dist/types/chat-message/chat-message.d.ts +0 -4
  120. package/dist/types/chat-message/chat-message.js +0 -1
  121. package/dist/types/chat-message/index.d.ts +0 -1
  122. package/dist/types/chat-message/index.js +0 -1
  123. package/dist/types/config/agency-config.d.ts +0 -4
  124. package/dist/types/config/agency-config.js +0 -1
  125. package/dist/types/config/index.d.ts +0 -1
  126. package/dist/types/config/index.js +0 -1
  127. package/dist/types/index.d.ts +0 -15
  128. package/dist/types/index.js +0 -15
  129. package/dist/types/job/index.d.ts +0 -48
  130. package/dist/types/job/index.js +0 -3
  131. package/dist/types/job/job-note.d.ts +0 -10
  132. package/dist/types/job/job-note.js +0 -1
  133. package/dist/types/job/job-status.d.ts +0 -5
  134. package/dist/types/job/job-status.js +0 -9
  135. package/dist/types/job/nuxt.d.ts +0 -4
  136. package/dist/types/job/nuxt.js +0 -1
  137. package/dist/types/job-filters/index.d.ts +0 -1
  138. package/dist/types/job-filters/index.js +0 -1
  139. package/dist/types/job-filters/job-filters.d.ts +0 -4
  140. package/dist/types/job-filters/job-filters.js +0 -1
  141. package/dist/types/logger/index.d.ts +0 -1
  142. package/dist/types/logger/index.js +0 -1
  143. package/dist/types/logger/log-event.js +0 -1
  144. package/dist/types/saved-search/index.d.ts +0 -6
  145. package/dist/types/saved-search/index.js +0 -1
  146. package/dist/types/scraper/index.d.ts +0 -2
  147. package/dist/types/scraper/index.js +0 -2
  148. package/dist/types/scraper/scrape-payload.d.ts +0 -10
  149. package/dist/types/scraper/scrape-payload.js +0 -1
  150. package/dist/types/scraper/scrape-result.d.ts +0 -8
  151. package/dist/types/scraper/scrape-result.js +0 -1
  152. package/dist/types/shared.d.ts +0 -8
  153. package/dist/types/shared.js +0 -1
  154. package/dist/types/time-filter/index.d.ts +0 -3
  155. package/dist/types/time-filter/index.js +0 -1
  156. package/dist/types/transaction/index.d.ts +0 -4
  157. package/dist/types/transaction/index.js +0 -1
  158. package/dist/types/usage/index.d.ts +0 -6
  159. package/dist/types/usage/index.js +0 -1
  160. package/dist/types/user/index.d.ts +0 -15
  161. package/dist/types/user/index.js +0 -1
  162. package/dist/utils/index.js +0 -1
  163. package/dist/utils/try-catch.js +0 -10
@@ -6507,7 +6507,10 @@ const ROUTES = {
6507
6507
  ORGANIZATIONS: {
6508
6508
  BASE: "organizations",
6509
6509
  BY_ID: (id) => `organizations/${id}`,
6510
- ONBOARDING: (id) => `organizations/${id}/onboarding/progress`,
6510
+ ONBOARDING: {
6511
+ BASE: (id) => `organizations/${id}/onboarding`,
6512
+ PROGRESS: (id) => `organizations/${id}/onboarding/progress`,
6513
+ },
6511
6514
  AI_CONFIG: (id) => `organizations/${id}/settings/ai-config`,
6512
6515
  COVER_LETTER: {
6513
6516
  BASE: (id) => `organizations/${id}/cover-letter`,
@@ -11357,7 +11360,8 @@ const bidderAccountSchema = z.object({
11357
11360
  createdAt: z.number(),
11358
11361
  updatedAt: z.number(),
11359
11362
  });
11360
- const createBidderAccountSchema = bidderAccountSchema.pick({
11363
+ const createBidderAccountSchema = bidderAccountSchema
11364
+ .pick({
11361
11365
  email: true,
11362
11366
  password: true,
11363
11367
  provider: true,
@@ -11366,6 +11370,9 @@ const createBidderAccountSchema = bidderAccountSchema.pick({
11366
11370
  name: true,
11367
11371
  agencies: true,
11368
11372
  assignedOrganizations: true,
11373
+ })
11374
+ .extend({
11375
+ proxyCountry: proxyCountryEnum.nullable(),
11369
11376
  });
11370
11377
  const updateBidderAccountSchema = bidderAccountSchema
11371
11378
  .omit({
@@ -94,7 +94,10 @@ export declare const ROUTES: {
94
94
  readonly ORGANIZATIONS: {
95
95
  readonly BASE: "organizations";
96
96
  readonly BY_ID: (id: string) => string;
97
- readonly ONBOARDING: (id: string) => string;
97
+ readonly ONBOARDING: {
98
+ readonly BASE: (id: string) => string;
99
+ readonly PROGRESS: (id: string) => string;
100
+ };
98
101
  readonly AI_CONFIG: (id: string) => string;
99
102
  readonly COVER_LETTER: {
100
103
  readonly BASE: (id: string) => string;
@@ -91,7 +91,7 @@ export declare const bidderAccountSchema: z.ZodObject<{
91
91
  updatedAt: number;
92
92
  googleOauthTokens?: any;
93
93
  }>;
94
- export declare const createBidderAccountSchema: z.ZodObject<Pick<{
94
+ export declare const createBidderAccountSchema: z.ZodObject<z.objectUtil.extendShape<Pick<{
95
95
  id: z.ZodString;
96
96
  provider: z.ZodEnum<["user-provided", "lancer-provided"]>;
97
97
  email: z.ZodString;
@@ -122,7 +122,9 @@ export declare const createBidderAccountSchema: z.ZodObject<Pick<{
122
122
  }>, "many">>;
123
123
  createdAt: z.ZodNumber;
124
124
  updatedAt: z.ZodNumber;
125
- }, "name" | "provider" | "email" | "password" | "securityQuestionAnswer" | "assignedOrganizations" | "profilePhotoUrl" | "agencies">, "strip", z.ZodTypeAny, {
125
+ }, "name" | "provider" | "email" | "password" | "securityQuestionAnswer" | "assignedOrganizations" | "profilePhotoUrl" | "agencies">, {
126
+ proxyCountry: z.ZodNullable<z.ZodEnum<["US", "CA", "GB", "AF", "AX", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BS", "BH", "BD", "BB", "BY", "BE", "BZ", "BJ", "BM", "BT", "BO", "BA", "BW", "BV", "BR", "IO", "BN", "BG", "BF", "BI", "KH", "CM", "CV", "KY", "CF", "TD", "CL", "CN", "CX", "CC", "CO", "KM", "CG", "CD", "CK", "CR", "CI", "HR", "CU", "CY", "CZ", "DK", "DJ", "DM", "DO", "EC", "EG", "SV", "GQ", "ER", "EE", "ET", "FK", "FO", "FJ", "FI", "FR", "GF", "PF", "TF", "GA", "GM", "GE", "DE", "GH", "GI", "GR", "GL", "GD", "GP", "GU", "GT", "GG", "GN", "GW", "GY", "HT", "HM", "VA", "HN", "HK", "HU", "IS", "IN", "ID", "IR", "IQ", "IE", "IM", "IL", "IT", "JM", "JP", "JE", "JO", "KZ", "KE", "KI", "KP", "KR", "KW", "KG", "LA", "LV", "LB", "LS", "LR", "LY", "LI", "LT", "LU", "MO", "MK", "MG", "MW", "MY", "MV", "ML", "MT", "MH", "MQ", "MR", "MU", "YT", "MX", "FM", "MD", "MC", "MN", "ME", "MS", "MA", "MZ", "MM", "NA", "NR", "NP", "NL", "AN", "NC", "NZ", "NI", "NE", "NG", "NU", "NF", "MP", "NO", "OM", "PK", "PW", "PS", "PA", "PG", "PY", "PE", "PH", "PN", "PL", "PT", "PR", "QA", "RE", "RO", "RU", "RW", "BL", "SH", "KN", "LC", "MF", "PM", "VC", "WS", "SM", "ST", "SA", "SN", "RS", "SC", "SL", "SG", "SK", "SI", "SB", "SO", "ZA", "GS", "ES", "LK", "SD", "SR", "SJ", "SZ", "SE", "CH", "SY", "TW", "TJ", "TZ", "TH", "TL", "TG", "TK", "TO", "TT", "TN", "TR", "TM", "TC", "TV", "UG", "UA", "AE", "UM", "UY", "UZ", "VU", "VE", "VN", "VG", "VI", "WF", "EH", "YE", "ZM", "ZW"]>>;
127
+ }>, "strip", z.ZodTypeAny, {
126
128
  name: string | null;
127
129
  provider: "user-provided" | "lancer-provided";
128
130
  email: string;
@@ -136,6 +138,7 @@ export declare const createBidderAccountSchema: z.ZodObject<Pick<{
136
138
  contractors: string[];
137
139
  organizationId: string;
138
140
  }[] | null;
141
+ proxyCountry: "US" | "CA" | "GB" | "AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KP" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "AN" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "UM" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW" | null;
139
142
  }, {
140
143
  name: string | null;
141
144
  provider: "user-provided" | "lancer-provided";
@@ -150,6 +153,7 @@ export declare const createBidderAccountSchema: z.ZodObject<Pick<{
150
153
  contractors: string[];
151
154
  organizationId: string;
152
155
  }[] | null;
156
+ proxyCountry: "US" | "CA" | "GB" | "AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KP" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "AN" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "UM" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW" | null;
153
157
  }>;
154
158
  export declare const updateBidderAccountSchema: z.ZodObject<{
155
159
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -163,7 +163,7 @@ export declare const campaignStatusActivitySchema: z.ZodObject<z.objectUtil.exte
163
163
  subscription: z.ZodNullable<z.ZodObject<{
164
164
  planId: z.ZodString;
165
165
  pendingPlanId: z.ZodNullable<z.ZodString>;
166
- status: z.ZodEnum<["active", "trialing", "cancelled", "paused", "payment_processing", "payment_pending", "payment_failed"]>;
166
+ status: z.ZodEnum<["active", "trialing", "cancelled", "paused", "payment_pending", "payment_failed"]>;
167
167
  startedAt: z.ZodNumber;
168
168
  currentPeriodEnd: z.ZodNumber;
169
169
  stripe: z.ZodObject<{
@@ -226,7 +226,7 @@ export declare const campaignStatusActivitySchema: z.ZodObject<z.objectUtil.exte
226
226
  source: z.ZodEnum<["stripe", "manual"]>;
227
227
  usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
228
228
  }, "strip", z.ZodTypeAny, {
229
- status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
229
+ status: "active" | "trialing" | "cancelled" | "paused" | "payment_pending" | "payment_failed";
230
230
  planId: string;
231
231
  pendingPlanId: string | null;
232
232
  startedAt: number;
@@ -247,7 +247,7 @@ export declare const campaignStatusActivitySchema: z.ZodObject<z.objectUtil.exte
247
247
  source: "stripe" | "manual";
248
248
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
249
249
  }, {
250
- status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
250
+ status: "active" | "trialing" | "cancelled" | "paused" | "payment_pending" | "payment_failed";
251
251
  planId: string;
252
252
  pendingPlanId: string | null;
253
253
  startedAt: number;
@@ -671,7 +671,7 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
671
671
  subscription: z.ZodNullable<z.ZodObject<{
672
672
  planId: z.ZodString;
673
673
  pendingPlanId: z.ZodNullable<z.ZodString>;
674
- status: z.ZodEnum<["active", "trialing", "cancelled", "paused", "payment_processing", "payment_pending", "payment_failed"]>;
674
+ status: z.ZodEnum<["active", "trialing", "cancelled", "paused", "payment_pending", "payment_failed"]>;
675
675
  startedAt: z.ZodNumber;
676
676
  currentPeriodEnd: z.ZodNumber;
677
677
  stripe: z.ZodObject<{
@@ -734,7 +734,7 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
734
734
  source: z.ZodEnum<["stripe", "manual"]>;
735
735
  usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
736
736
  }, "strip", z.ZodTypeAny, {
737
- status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
737
+ status: "active" | "trialing" | "cancelled" | "paused" | "payment_pending" | "payment_failed";
738
738
  planId: string;
739
739
  pendingPlanId: string | null;
740
740
  startedAt: number;
@@ -755,7 +755,7 @@ export declare const leadAnalysisActivitySchema: z.ZodObject<z.objectUtil.extend
755
755
  source: "stripe" | "manual";
756
756
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
757
757
  }, {
758
- status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
758
+ status: "active" | "trialing" | "cancelled" | "paused" | "payment_pending" | "payment_failed";
759
759
  planId: string;
760
760
  pendingPlanId: string | null;
761
761
  startedAt: number;
@@ -1524,7 +1524,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
1524
1524
  subscription: z.ZodNullable<z.ZodObject<{
1525
1525
  planId: z.ZodString;
1526
1526
  pendingPlanId: z.ZodNullable<z.ZodString>;
1527
- status: z.ZodEnum<["active", "trialing", "cancelled", "paused", "payment_processing", "payment_pending", "payment_failed"]>;
1527
+ status: z.ZodEnum<["active", "trialing", "cancelled", "paused", "payment_pending", "payment_failed"]>;
1528
1528
  startedAt: z.ZodNumber;
1529
1529
  currentPeriodEnd: z.ZodNumber;
1530
1530
  stripe: z.ZodObject<{
@@ -1587,7 +1587,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
1587
1587
  source: z.ZodEnum<["stripe", "manual"]>;
1588
1588
  usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
1589
1589
  }, "strip", z.ZodTypeAny, {
1590
- status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
1590
+ status: "active" | "trialing" | "cancelled" | "paused" | "payment_pending" | "payment_failed";
1591
1591
  planId: string;
1592
1592
  pendingPlanId: string | null;
1593
1593
  startedAt: number;
@@ -1608,7 +1608,7 @@ export declare const leadStatusActivitySchema: z.ZodObject<z.objectUtil.extendSh
1608
1608
  source: "stripe" | "manual";
1609
1609
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
1610
1610
  }, {
1611
- status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
1611
+ status: "active" | "trialing" | "cancelled" | "paused" | "payment_pending" | "payment_failed";
1612
1612
  planId: string;
1613
1613
  pendingPlanId: string | null;
1614
1614
  startedAt: number;
@@ -2377,7 +2377,7 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
2377
2377
  subscription: z.ZodNullable<z.ZodObject<{
2378
2378
  planId: z.ZodString;
2379
2379
  pendingPlanId: z.ZodNullable<z.ZodString>;
2380
- status: z.ZodEnum<["active", "trialing", "cancelled", "paused", "payment_processing", "payment_pending", "payment_failed"]>;
2380
+ status: z.ZodEnum<["active", "trialing", "cancelled", "paused", "payment_pending", "payment_failed"]>;
2381
2381
  startedAt: z.ZodNumber;
2382
2382
  currentPeriodEnd: z.ZodNumber;
2383
2383
  stripe: z.ZodObject<{
@@ -2440,7 +2440,7 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
2440
2440
  source: z.ZodEnum<["stripe", "manual"]>;
2441
2441
  usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
2442
2442
  }, "strip", z.ZodTypeAny, {
2443
- status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
2443
+ status: "active" | "trialing" | "cancelled" | "paused" | "payment_pending" | "payment_failed";
2444
2444
  planId: string;
2445
2445
  pendingPlanId: string | null;
2446
2446
  startedAt: number;
@@ -2461,7 +2461,7 @@ export declare const proposalSentActivitySchema: z.ZodObject<z.objectUtil.extend
2461
2461
  source: "stripe" | "manual";
2462
2462
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
2463
2463
  }, {
2464
- status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
2464
+ status: "active" | "trialing" | "cancelled" | "paused" | "payment_pending" | "payment_failed";
2465
2465
  planId: string;
2466
2466
  pendingPlanId: string | null;
2467
2467
  startedAt: number;
@@ -3227,7 +3227,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
3227
3227
  subscription: z.ZodNullable<z.ZodObject<{
3228
3228
  planId: z.ZodString;
3229
3229
  pendingPlanId: z.ZodNullable<z.ZodString>;
3230
- status: z.ZodEnum<["active", "trialing", "cancelled", "paused", "payment_processing", "payment_pending", "payment_failed"]>;
3230
+ status: z.ZodEnum<["active", "trialing", "cancelled", "paused", "payment_pending", "payment_failed"]>;
3231
3231
  startedAt: z.ZodNumber;
3232
3232
  currentPeriodEnd: z.ZodNumber;
3233
3233
  stripe: z.ZodObject<{
@@ -3290,7 +3290,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
3290
3290
  source: z.ZodEnum<["stripe", "manual"]>;
3291
3291
  usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
3292
3292
  }, "strip", z.ZodTypeAny, {
3293
- status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
3293
+ status: "active" | "trialing" | "cancelled" | "paused" | "payment_pending" | "payment_failed";
3294
3294
  planId: string;
3295
3295
  pendingPlanId: string | null;
3296
3296
  startedAt: number;
@@ -3311,7 +3311,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
3311
3311
  source: "stripe" | "manual";
3312
3312
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
3313
3313
  }, {
3314
- status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
3314
+ status: "active" | "trialing" | "cancelled" | "paused" | "payment_pending" | "payment_failed";
3315
3315
  planId: string;
3316
3316
  pendingPlanId: string | null;
3317
3317
  startedAt: number;
@@ -3734,7 +3734,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
3734
3734
  subscription: z.ZodNullable<z.ZodObject<{
3735
3735
  planId: z.ZodString;
3736
3736
  pendingPlanId: z.ZodNullable<z.ZodString>;
3737
- status: z.ZodEnum<["active", "trialing", "cancelled", "paused", "payment_processing", "payment_pending", "payment_failed"]>;
3737
+ status: z.ZodEnum<["active", "trialing", "cancelled", "paused", "payment_pending", "payment_failed"]>;
3738
3738
  startedAt: z.ZodNumber;
3739
3739
  currentPeriodEnd: z.ZodNumber;
3740
3740
  stripe: z.ZodObject<{
@@ -3797,7 +3797,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
3797
3797
  source: z.ZodEnum<["stripe", "manual"]>;
3798
3798
  usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
3799
3799
  }, "strip", z.ZodTypeAny, {
3800
- status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
3800
+ status: "active" | "trialing" | "cancelled" | "paused" | "payment_pending" | "payment_failed";
3801
3801
  planId: string;
3802
3802
  pendingPlanId: string | null;
3803
3803
  startedAt: number;
@@ -3818,7 +3818,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
3818
3818
  source: "stripe" | "manual";
3819
3819
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
3820
3820
  }, {
3821
- status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
3821
+ status: "active" | "trialing" | "cancelled" | "paused" | "payment_pending" | "payment_failed";
3822
3822
  planId: string;
3823
3823
  pendingPlanId: string | null;
3824
3824
  startedAt: number;
@@ -4586,7 +4586,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
4586
4586
  subscription: z.ZodNullable<z.ZodObject<{
4587
4587
  planId: z.ZodString;
4588
4588
  pendingPlanId: z.ZodNullable<z.ZodString>;
4589
- status: z.ZodEnum<["active", "trialing", "cancelled", "paused", "payment_processing", "payment_pending", "payment_failed"]>;
4589
+ status: z.ZodEnum<["active", "trialing", "cancelled", "paused", "payment_pending", "payment_failed"]>;
4590
4590
  startedAt: z.ZodNumber;
4591
4591
  currentPeriodEnd: z.ZodNumber;
4592
4592
  stripe: z.ZodObject<{
@@ -4649,7 +4649,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
4649
4649
  source: z.ZodEnum<["stripe", "manual"]>;
4650
4650
  usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
4651
4651
  }, "strip", z.ZodTypeAny, {
4652
- status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
4652
+ status: "active" | "trialing" | "cancelled" | "paused" | "payment_pending" | "payment_failed";
4653
4653
  planId: string;
4654
4654
  pendingPlanId: string | null;
4655
4655
  startedAt: number;
@@ -4670,7 +4670,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
4670
4670
  source: "stripe" | "manual";
4671
4671
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
4672
4672
  }, {
4673
- status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
4673
+ status: "active" | "trialing" | "cancelled" | "paused" | "payment_pending" | "payment_failed";
4674
4674
  planId: string;
4675
4675
  pendingPlanId: string | null;
4676
4676
  startedAt: number;
@@ -5438,7 +5438,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
5438
5438
  subscription: z.ZodNullable<z.ZodObject<{
5439
5439
  planId: z.ZodString;
5440
5440
  pendingPlanId: z.ZodNullable<z.ZodString>;
5441
- status: z.ZodEnum<["active", "trialing", "cancelled", "paused", "payment_processing", "payment_pending", "payment_failed"]>;
5441
+ status: z.ZodEnum<["active", "trialing", "cancelled", "paused", "payment_pending", "payment_failed"]>;
5442
5442
  startedAt: z.ZodNumber;
5443
5443
  currentPeriodEnd: z.ZodNumber;
5444
5444
  stripe: z.ZodObject<{
@@ -5501,7 +5501,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
5501
5501
  source: z.ZodEnum<["stripe", "manual"]>;
5502
5502
  usage: z.ZodRecord<z.ZodEnum<["suitabilityComplete", "proposalComplete", "biddingComplete"]>, z.ZodNumber>;
5503
5503
  }, "strip", z.ZodTypeAny, {
5504
- status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
5504
+ status: "active" | "trialing" | "cancelled" | "paused" | "payment_pending" | "payment_failed";
5505
5505
  planId: string;
5506
5506
  pendingPlanId: string | null;
5507
5507
  startedAt: number;
@@ -5522,7 +5522,7 @@ export declare const campaignActivitySchema: z.ZodDiscriminatedUnion<"type", [z.
5522
5522
  source: "stripe" | "manual";
5523
5523
  usage: Partial<Record<"suitabilityComplete" | "proposalComplete" | "biddingComplete", number>>;
5524
5524
  }, {
5525
- status: "active" | "trialing" | "cancelled" | "paused" | "payment_processing" | "payment_pending" | "payment_failed";
5525
+ status: "active" | "trialing" | "cancelled" | "paused" | "payment_pending" | "payment_failed";
5526
5526
  planId: string;
5527
5527
  pendingPlanId: string | null;
5528
5528
  startedAt: number;
@@ -1,4 +1,4 @@
1
1
  import { z } from 'zod';
2
- export declare const proxyAvailableReplacementsSchema: z.ZodRecord<z.ZodEnum<["webshare", "decodo"]>, z.ZodNumber>;
2
+ export declare const proxyAvailableReplacementsSchema: z.ZodRecord<z.ZodEnum<["webshare"]>, z.ZodNumber>;
3
3
  export interface ProxyAvailableReplacements extends z.infer<typeof proxyAvailableReplacementsSchema> {
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lancer-shared",
3
- "version": "1.2.71",
3
+ "version": "1.2.73",
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,14 +0,0 @@
1
- // Base collection names
2
- export const COLLECTIONS = {
3
- USERS: "users",
4
- SETTINGS: "settings",
5
- CAMPAIGNS: "campaigns",
6
- LEADS: "leads",
7
- EVENTS: "events",
8
- SCRAPER_ACCOUNTS: "scrapers",
9
- BIDDER_ACCOUNTS: "bidders",
10
- CAMPAIGN_ACTIVITIES: (userId, campaignId) => `users/${userId}/campaigns/${campaignId}/activities`,
11
- ORGANIZATIONS: "organizations",
12
- PROXIES: "proxies",
13
- TRANSACTIONS: "transactions",
14
- };
@@ -1,57 +0,0 @@
1
- export const commonQuestions = [
2
- {
3
- id: 'similar_experience',
4
- question: 'Describe your recent experience with similar projects',
5
- placeholder: 'ex: [Answer the question based on case studies, if not certain ask to discuss in DMs]',
6
- },
7
- {
8
- id: 'profile_links',
9
- question: 'Include a link to your GitHub profile and/or website',
10
- placeholder: 'ex: [https://github.com/yourusername or https://yourwebsite.com]',
11
- },
12
- {
13
- id: 'frameworks',
14
- question: 'What frameworks have you worked with?',
15
- placeholder: 'ex: [NextJS, React, TailwindCSS, etc...]',
16
- },
17
- {
18
- id: 'testing_approach',
19
- question: 'Describe your approach to testing and improving QA',
20
- placeholder: 'ex: [We are using test-driven development, and we are using Jest for testing]',
21
- },
22
- {
23
- id: 'certifications',
24
- question: 'Please list any certifications related to this project',
25
- placeholder: 'ex: [Certification in React, Certification in NextJS, etc...]',
26
- },
27
- {
28
- id: 'similar_project',
29
- question: 'What past project or job have you had that is most like this one and why?',
30
- placeholder: "ex: [Describe a similar project and explain the key similarities... If you can't answer based on the case studies, ask to discuss in DMs]",
31
- },
32
- {
33
- id: 'project_fit',
34
- question: 'Why do you think you are a good fit for this particular project?',
35
- placeholder: 'ex: [Explain how your skills and experience match the project requirements...]',
36
- },
37
- {
38
- id: 'job_questions',
39
- question: 'Do you have any questions about the job description?',
40
- placeholder: 'ex: [Ask for any clarifications needed about the role or requirements...]',
41
- },
42
- {
43
- id: 'project_questions',
44
- question: 'What questions do you have about the project?',
45
- placeholder: 'ex: [Ask about project scope, timeline, team structure...]',
46
- },
47
- {
48
- id: 'project_suggestions',
49
- question: 'Do you have suggestions to make this project run successfully?',
50
- placeholder: 'ex: [Ask to discuss in DMs]',
51
- },
52
- {
53
- id: 'company_info',
54
- question: 'What is your company website URL? . . . Company size?',
55
- placeholder: 'ex: [https://company.com | Number of employees: ...]',
56
- },
57
- ];
@@ -1,18 +0,0 @@
1
- export const paths = {
2
- auth: {
3
- register: `auth/register`,
4
- },
5
- users: {
6
- root: 'users',
7
- details: (id) => `users/${id}`,
8
- },
9
- };
10
- export * from './job-filter-options';
11
- export { default as countryMapping } from './mappings/countryMapping';
12
- export { default as regionMapping } from './mappings/regionMapping';
13
- export * from './job-filter-options';
14
- export * from './common-questions';
15
- export * from './job-status';
16
- export * from './routes';
17
- export * from './collections';
18
- export * from './upwork-accounts';