lancer-shared 1.2.343 → 1.2.345

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.
@@ -6940,6 +6940,11 @@ const updateScraperAccountSchema = scraperAccountSchema
6940
6940
  })
6941
6941
  .partial();
6942
6942
 
6943
+ const billingConfigSchema = objectType({
6944
+ overageBillingThreshold: numberType().int().positive(),
6945
+ updatedAt: numberType(),
6946
+ });
6947
+
6943
6948
  const agentStatusSchema = z.enum([
6944
6949
  'suitabilityPending',
6945
6950
  'suitabilityProcessing',
@@ -9124,6 +9129,7 @@ const bidderMonitoringRowSchema = z.object({
9124
9129
  'syncProposalsStatusFailed',
9125
9130
  'refreshRoomsFailed',
9126
9131
  'unauthenticatedSessionDetected',
9132
+ 'verifyCredentialsFailed',
9127
9133
  ]),
9128
9134
  eventId: z.string(),
9129
9135
  bidderAccountId: z.string().nullable(),
@@ -9148,6 +9154,16 @@ const bidderFailureDashboardResponseSchema = z.object({
9148
9154
  unviewedCount: z.number(),
9149
9155
  });
9150
9156
 
9157
+ const featureSchema = objectType({
9158
+ id: stringType(),
9159
+ slug: stringType().regex(/^[a-z0-9-]+$/),
9160
+ name: stringType(),
9161
+ description: stringType(),
9162
+ hasLimit: booleanType(),
9163
+ createdAt: numberType(),
9164
+ isActive: booleanType(),
9165
+ });
9166
+
9151
9167
  const labelEnum = z.enum(['suitable', 'unsuitable']);
9152
9168
  const sampleSchema = z.object({
9153
9169
  id: z.string(),
@@ -9519,6 +9535,7 @@ const verifyCredentialsFailedEventMetadataSchema = objectType({
9519
9535
  bidderAccountId: z.string(),
9520
9536
  errorMessage: z.string(),
9521
9537
  errorCode: z.string().optional(),
9538
+ screenshotUrl: z.string().optional(),
9522
9539
  });
9523
9540
  const refreshRoomsFailedEventMetadataSchema = objectType({
9524
9541
  bidderAccountId: z.string().optional(),
@@ -9665,6 +9682,7 @@ const planFeatureSchema = objectType({
9665
9682
  description: stringType(),
9666
9683
  tooltipContent: stringType().nullable(),
9667
9684
  icon: stringType().nullable(),
9685
+ billingIntervals: arrayType(billingIntervalEnum).optional(),
9668
9686
  });
9669
9687
  const planPricingIntervalSchema = objectType({
9670
9688
  amount: numberType(),
@@ -9678,7 +9696,7 @@ const planPricingSchema = objectType({
9678
9696
  yearly: arrayType(planPricingIntervalSchema).optional(),
9679
9697
  });
9680
9698
  const planSchema = objectType({
9681
- id: stringType().regex(/^prod_[a-zA-Z0-9]+$/),
9699
+ id: stringType(),
9682
9700
  name: stringType(),
9683
9701
  slug: stringType().regex(/^[a-z0-9-]+$/),
9684
9702
  description: stringType(),
@@ -9692,6 +9710,10 @@ const planSchema = objectType({
9692
9710
  hasFreeTrial: booleanType(),
9693
9711
  pricing: planPricingSchema,
9694
9712
  icon: stringType().nullable(),
9713
+ includedProposals: numberType().nullable().optional(),
9714
+ overagePrice: numberType().nullable().optional(),
9715
+ supportsCoupon: booleanType().optional(),
9716
+ featureConfig: z.record(stringType(), numberType().nullable()).optional(),
9695
9717
  });
9696
9718
  const planSlugEnum = z.enum(['lancer-unlimited-launch-offer']);
9697
9719
 
@@ -15869,6 +15891,8 @@ const ROUTES = {
15869
15891
  AGENCIES: 'admin/bidder-accounts/agencies',
15870
15892
  ASSIGN_IPROYAL_PROXY: (bidderId) => `admin/bidder-accounts/${bidderId}/assign-iproyal-proxy`,
15871
15893
  ASSIGN_DECODO_PROXY: (bidderId) => `admin/bidder-accounts/${bidderId}/assign-decodo-proxy`,
15894
+ RETRY_CONNECT: (bidderId) => `admin/bidder-accounts/${bidderId}/retry-connect`,
15895
+ SYNC_PROPOSALS_STATUS: (bidderId) => `admin/bidder-accounts/${bidderId}/sync-proposals-status`,
15872
15896
  },
15873
15897
  SCRAPER_ACCOUNTS: {
15874
15898
  BASE: 'admin/scraper-accounts',
@@ -15909,6 +15933,20 @@ const ROUTES = {
15909
15933
  TEST_SUITABILITY: 'admin/agent/test-suitability',
15910
15934
  TEST_PROPOSAL: 'admin/agent/test-proposal',
15911
15935
  },
15936
+ BILLING: {
15937
+ PLANS: {
15938
+ BASE: 'admin/billing/plans',
15939
+ BY_ID: (id) => `admin/billing/plans/${id}`,
15940
+ SYNC_TO_STRIPE: (id) => `admin/billing/plans/${id}/sync-to-stripe`,
15941
+ },
15942
+ CONFIG: {
15943
+ BASE: 'admin/billing/config',
15944
+ },
15945
+ FEATURES: {
15946
+ BASE: 'admin/billing/features',
15947
+ BY_ID: (id) => `admin/billing/features/${id}`,
15948
+ },
15949
+ },
15912
15950
  UPWORK_INVITATIONS_CONFIG: {
15913
15951
  BASE: 'admin/upwork-invitation-bucket-account',
15914
15952
  },
@@ -15977,6 +16015,7 @@ const ROUTES = {
15977
16015
  RETRY_CONNECT_UPWORK_ACCOUNT: (id, bidderId) => `organizations/${id}/bidder-accounts/${bidderId}/retry-connect-upwork-account`,
15978
16016
  AVAILABLE_REGIONS: (id) => `organizations/${id}/bidder-accounts/available-regions`,
15979
16017
  CHAT: {
16018
+ CHAT_HEARTBEAT: (organizationId) => `organizations/${organizationId}/chat/heartbeat`,
15980
16019
  ROOMS_TAGS: (organizationId) => `organizations/${organizationId}/chat/tags`,
15981
16020
  ROOM_TAG: (organizationId, bidderAccountId, roomId) => `organizations/${organizationId}/bidder-accounts/${bidderAccountId}/rooms/${roomId}/tags`,
15982
16021
  ROOM_NOTES: (organizationId, bidderAccountId, roomId) => `organizations/${organizationId}/bidder-accounts/${bidderAccountId}/rooms/${roomId}/notes`,
@@ -16114,6 +16153,10 @@ const ROUTES = {
16114
16153
  BASE: 'plans',
16115
16154
  BY_ID: (id) => `plans/${id}`,
16116
16155
  },
16156
+ FEATURES: {
16157
+ BASE: 'features',
16158
+ BY_ID: (id) => `features/${id}`,
16159
+ },
16117
16160
  NOTIFICATIONS: {
16118
16161
  BASE: 'notifications',
16119
16162
  SEND_NOTIFICATION: 'notifications/send',
@@ -24895,6 +24938,7 @@ exports.biddingFailedEventMetadata = biddingFailedEventMetadata;
24895
24938
  exports.biddingHourlyRateStrategyEnum = biddingHourlyRateStrategyEnum;
24896
24939
  exports.biddingProcessingEventMetadata = biddingProcessingEventMetadata;
24897
24940
  exports.biddingRejectedWithFeedbackEventMetadata = biddingRejectedWithFeedbackEventMetadata;
24941
+ exports.billingConfigSchema = billingConfigSchema;
24898
24942
  exports.billingIntervalEnum = billingIntervalEnum;
24899
24943
  exports.bookSlotRequestBodySchema = bookSlotRequestBodySchema;
24900
24944
  exports.booleanSchema = booleanSchema;
@@ -24962,6 +25006,7 @@ exports.eventLoggerPayloadSchema = eventLoggerPayloadSchema;
24962
25006
  exports.experienceLevelEnum = experienceLevelEnum;
24963
25007
  exports.externalProxySchema = externalProxySchema;
24964
25008
  exports.failedToParseNuxtJobException = failedToParseNuxtJobException;
25009
+ exports.featureSchema = featureSchema;
24965
25010
  exports.feedChunkEnrichCompletedEventMetadata = feedChunkEnrichCompletedEventMetadata;
24966
25011
  exports.feedChunkEnrichFailedEventMetadata = feedChunkEnrichFailedEventMetadata;
24967
25012
  exports.feedChunkEnrichStartedEventMetadata = feedChunkEnrichStartedEventMetadata;