lancer-shared 1.2.342 → 1.2.343

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.
@@ -6660,6 +6660,7 @@ const largeCountries = [
6660
6660
  'IT',
6661
6661
  'ES',
6662
6662
  'UA',
6663
+ 'TH',
6663
6664
  ];
6664
6665
 
6665
6666
  const proxyStatusSchema = z.enum([
@@ -9192,15 +9193,22 @@ const hetznerMetadataSchema = objectType({
9192
9193
  const bidderInstanceStatusEnum = z.enum(["available", "unavailable"]);
9193
9194
  const bidderInstanceSchema = objectType({
9194
9195
  id: stringType(),
9196
+ name: stringType(),
9195
9197
  ipAddress: stringType(),
9196
9198
  domain: stringType().nullable(),
9197
9199
  bidderAccounts: arrayType(stringType()),
9198
- gcp: gcpMetadataSchema,
9199
- hetzner: hetznerMetadataSchema,
9200
+ gcp: gcpMetadataSchema.optional(),
9201
+ hetzner: hetznerMetadataSchema.optional(),
9202
+ isDefault: z.boolean().default(false),
9200
9203
  status: bidderInstanceStatusEnum,
9201
9204
  createdAt: numberType(),
9202
9205
  updatedAt: numberType(),
9203
9206
  });
9207
+ const createBidderInstanceSchema = bidderInstanceSchema.pick({
9208
+ name: true,
9209
+ ipAddress: true,
9210
+ isDefault: true,
9211
+ });
9204
9212
 
9205
9213
  const invoiceStripeMetadataLineSchema = objectType({
9206
9214
  description: stringType(),
@@ -15904,6 +15912,13 @@ const ROUTES = {
15904
15912
  UPWORK_INVITATIONS_CONFIG: {
15905
15913
  BASE: 'admin/upwork-invitation-bucket-account',
15906
15914
  },
15915
+ BIDDER_INSTANCES: {
15916
+ BASE: 'admin/bidder-instances',
15917
+ BY_ID: (id) => `admin/bidder-instances/${id}`,
15918
+ ASSIGN_ACCOUNTS: (id) => `admin/bidder-instances/${id}/assign-accounts`,
15919
+ UNASSIGN_ACCOUNTS: (id) => `admin/bidder-instances/${id}/unassign-accounts`,
15920
+ SET_DEFAULT: (id) => `admin/bidder-instances/${id}/set-default`,
15921
+ },
15907
15922
  },
15908
15923
  BID: {
15909
15924
  BASE: 'bid',
@@ -24917,6 +24932,7 @@ exports.convertToUtc = convertToUtc;
24917
24932
  exports.countryMapping = countryMapping;
24918
24933
  exports.coverLetterTemplateSchema = coverLetterTemplateSchema;
24919
24934
  exports.createBidderAccountSchema = createBidderAccountSchema;
24935
+ exports.createBidderInstanceSchema = createBidderInstanceSchema;
24920
24936
  exports.createCampaignSchema = createCampaignSchema;
24921
24937
  exports.createChatbotSchema = createChatbotSchema;
24922
24938
  exports.createClientHireRateFormSchema = createClientHireRateFormSchema;