lancer-shared 1.2.343 → 1.2.344

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(),
@@ -9678,7 +9695,7 @@ const planPricingSchema = objectType({
9678
9695
  yearly: arrayType(planPricingIntervalSchema).optional(),
9679
9696
  });
9680
9697
  const planSchema = objectType({
9681
- id: stringType().regex(/^prod_[a-zA-Z0-9]+$/),
9698
+ id: stringType(),
9682
9699
  name: stringType(),
9683
9700
  slug: stringType().regex(/^[a-z0-9-]+$/),
9684
9701
  description: stringType(),
@@ -9692,6 +9709,10 @@ const planSchema = objectType({
9692
9709
  hasFreeTrial: booleanType(),
9693
9710
  pricing: planPricingSchema,
9694
9711
  icon: stringType().nullable(),
9712
+ includedProposals: numberType().nullable().optional(),
9713
+ overagePrice: numberType().nullable().optional(),
9714
+ supportsCoupon: booleanType().optional(),
9715
+ featureConfig: z.record(stringType(), numberType().nullable()).optional(),
9695
9716
  });
9696
9717
  const planSlugEnum = z.enum(['lancer-unlimited-launch-offer']);
9697
9718
 
@@ -15869,6 +15890,8 @@ const ROUTES = {
15869
15890
  AGENCIES: 'admin/bidder-accounts/agencies',
15870
15891
  ASSIGN_IPROYAL_PROXY: (bidderId) => `admin/bidder-accounts/${bidderId}/assign-iproyal-proxy`,
15871
15892
  ASSIGN_DECODO_PROXY: (bidderId) => `admin/bidder-accounts/${bidderId}/assign-decodo-proxy`,
15893
+ RETRY_CONNECT: (bidderId) => `admin/bidder-accounts/${bidderId}/retry-connect`,
15894
+ SYNC_PROPOSALS_STATUS: (bidderId) => `admin/bidder-accounts/${bidderId}/sync-proposals-status`,
15872
15895
  },
15873
15896
  SCRAPER_ACCOUNTS: {
15874
15897
  BASE: 'admin/scraper-accounts',
@@ -15909,6 +15932,20 @@ const ROUTES = {
15909
15932
  TEST_SUITABILITY: 'admin/agent/test-suitability',
15910
15933
  TEST_PROPOSAL: 'admin/agent/test-proposal',
15911
15934
  },
15935
+ BILLING: {
15936
+ PLANS: {
15937
+ BASE: 'admin/billing/plans',
15938
+ BY_ID: (id) => `admin/billing/plans/${id}`,
15939
+ SYNC_TO_STRIPE: (id) => `admin/billing/plans/${id}/sync-to-stripe`,
15940
+ },
15941
+ CONFIG: {
15942
+ BASE: 'admin/billing/config',
15943
+ },
15944
+ FEATURES: {
15945
+ BASE: 'admin/billing/features',
15946
+ BY_ID: (id) => `admin/billing/features/${id}`,
15947
+ },
15948
+ },
15912
15949
  UPWORK_INVITATIONS_CONFIG: {
15913
15950
  BASE: 'admin/upwork-invitation-bucket-account',
15914
15951
  },
@@ -15977,6 +16014,7 @@ const ROUTES = {
15977
16014
  RETRY_CONNECT_UPWORK_ACCOUNT: (id, bidderId) => `organizations/${id}/bidder-accounts/${bidderId}/retry-connect-upwork-account`,
15978
16015
  AVAILABLE_REGIONS: (id) => `organizations/${id}/bidder-accounts/available-regions`,
15979
16016
  CHAT: {
16017
+ CHAT_HEARTBEAT: (organizationId) => `organizations/${organizationId}/chat/heartbeat`,
15980
16018
  ROOMS_TAGS: (organizationId) => `organizations/${organizationId}/chat/tags`,
15981
16019
  ROOM_TAG: (organizationId, bidderAccountId, roomId) => `organizations/${organizationId}/bidder-accounts/${bidderAccountId}/rooms/${roomId}/tags`,
15982
16020
  ROOM_NOTES: (organizationId, bidderAccountId, roomId) => `organizations/${organizationId}/bidder-accounts/${bidderAccountId}/rooms/${roomId}/notes`,
@@ -16114,6 +16152,10 @@ const ROUTES = {
16114
16152
  BASE: 'plans',
16115
16153
  BY_ID: (id) => `plans/${id}`,
16116
16154
  },
16155
+ FEATURES: {
16156
+ BASE: 'features',
16157
+ BY_ID: (id) => `features/${id}`,
16158
+ },
16117
16159
  NOTIFICATIONS: {
16118
16160
  BASE: 'notifications',
16119
16161
  SEND_NOTIFICATION: 'notifications/send',
@@ -24895,6 +24937,7 @@ exports.biddingFailedEventMetadata = biddingFailedEventMetadata;
24895
24937
  exports.biddingHourlyRateStrategyEnum = biddingHourlyRateStrategyEnum;
24896
24938
  exports.biddingProcessingEventMetadata = biddingProcessingEventMetadata;
24897
24939
  exports.biddingRejectedWithFeedbackEventMetadata = biddingRejectedWithFeedbackEventMetadata;
24940
+ exports.billingConfigSchema = billingConfigSchema;
24898
24941
  exports.billingIntervalEnum = billingIntervalEnum;
24899
24942
  exports.bookSlotRequestBodySchema = bookSlotRequestBodySchema;
24900
24943
  exports.booleanSchema = booleanSchema;
@@ -24962,6 +25005,7 @@ exports.eventLoggerPayloadSchema = eventLoggerPayloadSchema;
24962
25005
  exports.experienceLevelEnum = experienceLevelEnum;
24963
25006
  exports.externalProxySchema = externalProxySchema;
24964
25007
  exports.failedToParseNuxtJobException = failedToParseNuxtJobException;
25008
+ exports.featureSchema = featureSchema;
24965
25009
  exports.feedChunkEnrichCompletedEventMetadata = feedChunkEnrichCompletedEventMetadata;
24966
25010
  exports.feedChunkEnrichFailedEventMetadata = feedChunkEnrichFailedEventMetadata;
24967
25011
  exports.feedChunkEnrichStartedEventMetadata = feedChunkEnrichStartedEventMetadata;