lancer-shared 1.2.131 → 1.2.132

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.
@@ -6550,12 +6550,14 @@ const ROUTES = {
6550
6550
  PAYMENT_METHODS: (id) => `organizations/${id}/payment-methods`,
6551
6551
  TRACK_USAGE: (id) => `organizations/${id}/track-usage`,
6552
6552
  SUBSCRIBE: (id) => `organizations/${id}/subscribe`,
6553
+ BUY_US_BIDDER_ACCOUNT: (id) => `organizations/${id}/buy-us-bidder-account`,
6553
6554
  BIDDER_ACCOUNTS: {
6554
6555
  BASE: (id) => `organizations/${id}/bidder-accounts`,
6555
6556
  BY_ID: (id, bidderId) => `organizations/${id}/bidder-accounts/${bidderId}`,
6556
- AVAILABLE_LANCER_PROVIDED_BIDDER_ACCOUNT: (id) => `organizations/${id}/bidder-accounts/available-lancer-provided`,
6557
+ AVAILABLE_BIDDER_ACCOUNT: (id, region) => `organizations/${id}/bidder-accounts/available-bidder-account/${region}`,
6557
6558
  ACCEPT_UPWORK_INVITATION: (id, bidderId) => `organizations/${id}/bidder-accounts/${bidderId}/accept-upwork-invitation`,
6558
6559
  CONNECTION: (id) => `organizations/${id}/bidder-account-connection/status`,
6560
+ DISMISS_CONNECTION_ERROR: (id) => `organizations/${id}/bidder-account-connection/dismiss-connection-error`,
6559
6561
  },
6560
6562
  LEADS_BY_JOB_ID: (organizationId, jobId) => `organizations/${organizationId}/leads/${jobId}`,
6561
6563
  UPDATE_CAMPAIGN_PRIORITY: (organizationId) => `organizations/${organizationId}/update-campaign-priority`,
@@ -13145,6 +13147,16 @@ const limitsSchema = objectType({
13145
13147
  usedCredits: numberType(),
13146
13148
  extraCredits: numberType(),
13147
13149
  });
13150
+ const oneTimePaymentSchema = z.object({
13151
+ paidAt: z.number(),
13152
+ amount: z.number(),
13153
+ currency: z.string(),
13154
+ status: z.string(),
13155
+ paymentIntentId: z.string(),
13156
+ });
13157
+ const oneTimePaymentsSchema = z.object({
13158
+ usAccountRental: oneTimePaymentSchema.optional(),
13159
+ });
13148
13160
  const organizationSchema = objectType({
13149
13161
  id: stringType(),
13150
13162
  name: stringType(),
@@ -13160,6 +13172,7 @@ const organizationSchema = objectType({
13160
13172
  updatedAt: numberType(),
13161
13173
  openRouterApiKey: stringType().nullable(),
13162
13174
  appTrialEndsAt: numberType().nullable(),
13175
+ oneTimePayments: oneTimePaymentsSchema.optional(),
13163
13176
  });
13164
13177
  const caseStudySchema = objectType({
13165
13178
  id: stringType(),
@@ -13202,15 +13215,10 @@ const questionRulesSchema = objectType({
13202
13215
  category: stringType(),
13203
13216
  });
13204
13217
  const aiConfigSchema = objectType({
13205
- // suitabilityRules: string().nullable(),
13206
- // coverLetterRules: string().nullable(),
13207
- // coverLetterTemplate: string().nullable(),
13208
13218
  questionHandling: z.string().nullable(),
13209
13219
  questionRules: arrayType(questionRulesSchema).nullable(),
13210
13220
  disqualifierRules: z.string().nullable(),
13211
13221
  userInstructions: z.string().nullable(),
13212
- // approvedSuitabilityJobs: number().nullable(),
13213
- // approvedProposalJobs: number().nullable(),
13214
13222
  });
13215
13223
  const notificationConfigSchema = objectType({
13216
13224
  emailEnabled: booleanType(),
@@ -131,12 +131,14 @@ export declare const ROUTES: {
131
131
  readonly PAYMENT_METHODS: (id: string) => string;
132
132
  readonly TRACK_USAGE: (id: string) => string;
133
133
  readonly SUBSCRIBE: (id: string) => string;
134
+ readonly BUY_US_BIDDER_ACCOUNT: (id: string) => string;
134
135
  readonly BIDDER_ACCOUNTS: {
135
136
  readonly BASE: (id: string) => string;
136
137
  readonly BY_ID: (id: string, bidderId: string) => string;
137
- readonly AVAILABLE_LANCER_PROVIDED_BIDDER_ACCOUNT: (id: string) => string;
138
+ readonly AVAILABLE_BIDDER_ACCOUNT: (id: string, region: string) => string;
138
139
  readonly ACCEPT_UPWORK_INVITATION: (id: string, bidderId: string) => string;
139
140
  readonly CONNECTION: (id: string) => string;
141
+ readonly DISMISS_CONNECTION_ERROR: (id: string) => string;
140
142
  };
141
143
  readonly LEADS_BY_JOB_ID: (organizationId: string, jobId: string) => string;
142
144
  readonly UPDATE_CAMPAIGN_PRIORITY: (organizationId: string) => string;
@@ -183,6 +183,43 @@ export declare const organizationSchema: z.ZodObject<{
183
183
  updatedAt: z.ZodNumber;
184
184
  openRouterApiKey: z.ZodNullable<z.ZodString>;
185
185
  appTrialEndsAt: z.ZodNullable<z.ZodNumber>;
186
+ oneTimePayments: z.ZodOptional<z.ZodObject<{
187
+ usAccountRental: z.ZodOptional<z.ZodObject<{
188
+ paidAt: z.ZodNumber;
189
+ amount: z.ZodNumber;
190
+ currency: z.ZodString;
191
+ status: z.ZodString;
192
+ paymentIntentId: z.ZodString;
193
+ }, "strip", z.ZodTypeAny, {
194
+ status: string;
195
+ paidAt: number;
196
+ amount: number;
197
+ currency: string;
198
+ paymentIntentId: string;
199
+ }, {
200
+ status: string;
201
+ paidAt: number;
202
+ amount: number;
203
+ currency: string;
204
+ paymentIntentId: string;
205
+ }>>;
206
+ }, "strip", z.ZodTypeAny, {
207
+ usAccountRental?: {
208
+ status: string;
209
+ paidAt: number;
210
+ amount: number;
211
+ currency: string;
212
+ paymentIntentId: string;
213
+ } | undefined;
214
+ }, {
215
+ usAccountRental?: {
216
+ status: string;
217
+ paidAt: number;
218
+ amount: number;
219
+ currency: string;
220
+ paymentIntentId: string;
221
+ } | undefined;
222
+ }>>;
186
223
  }, "strip", z.ZodTypeAny, {
187
224
  type: "agency" | "freelancer";
188
225
  id: string;
@@ -230,6 +267,15 @@ export declare const organizationSchema: z.ZodObject<{
230
267
  updatedAt: number;
231
268
  openRouterApiKey: string | null;
232
269
  appTrialEndsAt: number | null;
270
+ oneTimePayments?: {
271
+ usAccountRental?: {
272
+ status: string;
273
+ paidAt: number;
274
+ amount: number;
275
+ currency: string;
276
+ paymentIntentId: string;
277
+ } | undefined;
278
+ } | undefined;
233
279
  }, {
234
280
  type: "agency" | "freelancer";
235
281
  id: string;
@@ -277,6 +323,15 @@ export declare const organizationSchema: z.ZodObject<{
277
323
  updatedAt: number;
278
324
  openRouterApiKey: string | null;
279
325
  appTrialEndsAt: number | null;
326
+ oneTimePayments?: {
327
+ usAccountRental?: {
328
+ status: string;
329
+ paidAt: number;
330
+ amount: number;
331
+ currency: string;
332
+ paymentIntentId: string;
333
+ } | undefined;
334
+ } | undefined;
280
335
  }>;
281
336
  export declare const caseStudySchema: z.ZodObject<{
282
337
  id: z.ZodString;
@@ -537,6 +592,43 @@ export declare const createOrganizationSchema: z.ZodObject<Pick<{
537
592
  updatedAt: z.ZodNumber;
538
593
  openRouterApiKey: z.ZodNullable<z.ZodString>;
539
594
  appTrialEndsAt: z.ZodNullable<z.ZodNumber>;
595
+ oneTimePayments: z.ZodOptional<z.ZodObject<{
596
+ usAccountRental: z.ZodOptional<z.ZodObject<{
597
+ paidAt: z.ZodNumber;
598
+ amount: z.ZodNumber;
599
+ currency: z.ZodString;
600
+ status: z.ZodString;
601
+ paymentIntentId: z.ZodString;
602
+ }, "strip", z.ZodTypeAny, {
603
+ status: string;
604
+ paidAt: number;
605
+ amount: number;
606
+ currency: string;
607
+ paymentIntentId: string;
608
+ }, {
609
+ status: string;
610
+ paidAt: number;
611
+ amount: number;
612
+ currency: string;
613
+ paymentIntentId: string;
614
+ }>>;
615
+ }, "strip", z.ZodTypeAny, {
616
+ usAccountRental?: {
617
+ status: string;
618
+ paidAt: number;
619
+ amount: number;
620
+ currency: string;
621
+ paymentIntentId: string;
622
+ } | undefined;
623
+ }, {
624
+ usAccountRental?: {
625
+ status: string;
626
+ paidAt: number;
627
+ amount: number;
628
+ currency: string;
629
+ paymentIntentId: string;
630
+ } | undefined;
631
+ }>>;
540
632
  }, "type" | "name">, "strip", z.ZodTypeAny, {
541
633
  type: "agency" | "freelancer";
542
634
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lancer-shared",
3
- "version": "1.2.131",
3
+ "version": "1.2.132",
4
4
  "description": "This package contains shared stuff.",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "dist/bundle.cjs.js",