lancer-shared 1.2.245 → 1.2.247

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.
@@ -8404,6 +8404,36 @@ const organizationCampaignStatsSchema = z.object({
8404
8404
  campaigns: z.array(campaignDetailsSchema),
8405
8405
  });
8406
8406
 
8407
+ const labelEnum = z.enum(['suitable', 'unsuitable']);
8408
+ const sampleSchema = z.object({
8409
+ id: z.string(),
8410
+ organizationId: z.string(),
8411
+ campaignId: z.string(),
8412
+ leadId: z.string(),
8413
+ systemPromptSnapshot: z.string(),
8414
+ jobDetailsSnapshot: z.string(),
8415
+ label: labelEnum,
8416
+ updatedAt: z.number(),
8417
+ createdAt: z.number(),
8418
+ });
8419
+ const createSampleSchema = z.object({
8420
+ organizationId: z.string(),
8421
+ systemPromptSnapshot: z.string(),
8422
+ jobDetailsSnapshot: z.string(),
8423
+ campaignId: z.string(),
8424
+ leadId: z.string(),
8425
+ label: labelEnum,
8426
+ });
8427
+ const getSamplesRequestSchema = z.object({
8428
+ organizationId: z.string(),
8429
+ campaignId: z.string(),
8430
+ leadIds: z.array(z.string()),
8431
+ });
8432
+ const updateSampleSchema = z.object({
8433
+ id: z.string(),
8434
+ label: labelEnum,
8435
+ });
8436
+
8407
8437
  const gcpMetadataSchema = objectType({
8408
8438
  instanceName: stringType(),
8409
8439
  machineType: stringType(),
@@ -14999,6 +15029,13 @@ const ROUTES = {
14999
15029
  BASE: 'admin/alerts',
15000
15030
  SEND_ALERT: 'admin/alerts/send',
15001
15031
  },
15032
+ GOLDEN_DATASET: {
15033
+ BASE: 'admin/golden-dataset',
15034
+ SAMPLE: (id) => `admin/golden-dataset/${id}`,
15035
+ CREATE_SAMPLE: 'admin/golden-dataset/create',
15036
+ GET_SAMPLES: 'admin/golden-dataset/get-samples',
15037
+ UPDATE_SAMPLE: 'admin/golden-dataset/update',
15038
+ },
15002
15039
  AGENT: {
15003
15040
  BASE: 'admin/agent',
15004
15041
  TEST_JOB_QUALITY: 'admin/agent/test-job-quality',
@@ -23897,6 +23934,7 @@ exports.createCoverLetterTemplateSchema = createCoverLetterTemplateSchema;
23897
23934
  exports.createHourlyRateFormSchema = createHourlyRateFormSchema;
23898
23935
  exports.createOrganizationProfileSchema = createOrganizationProfileSchema;
23899
23936
  exports.createOrganizationSchema = createOrganizationSchema;
23937
+ exports.createSampleSchema = createSampleSchema;
23900
23938
  exports.createScraperAccountSchema = createScraperAccountSchema;
23901
23939
  exports.createSuitabilityFormSchema = createSuitabilityFormSchema;
23902
23940
  exports.dailyUsageSchema = dailyUsageSchema;
@@ -23949,6 +23987,7 @@ exports.getMultiloginBrowserException = getMultiloginBrowserException;
23949
23987
  exports.getNextStatus = getNextStatus;
23950
23988
  exports.getPreviousStatus = getPreviousStatus;
23951
23989
  exports.getRouteWithoutAdminPrefix = getRouteWithoutAdminPrefix;
23990
+ exports.getSamplesRequestSchema = getSamplesRequestSchema;
23952
23991
  exports.goToUrlException = goToUrlException;
23953
23992
  exports.hasQuestionsEnum = hasQuestionsEnum;
23954
23993
  exports.incorrectSecurityQuestionAnswerException = incorrectSecurityQuestionAnswerException;
@@ -23987,6 +24026,7 @@ exports.jobNoLongerAvailableException = jobNoLongerAvailableException;
23987
24026
  exports.jobQualityScoreSchema = jobQualityScoreSchema;
23988
24027
  exports.jobSkillsSchema = jobSkillsSchema;
23989
24028
  exports.jobStatusOrder = jobStatusOrder;
24029
+ exports.labelEnum = labelEnum;
23990
24030
  exports.lancerBiddingExceptionEventMetadata = lancerBiddingExceptionEventMetadata;
23991
24031
  exports.leadAnalysisActivitySchema = leadAnalysisActivitySchema;
23992
24032
  exports.leadResponseSchema = leadResponseSchema;
@@ -24069,6 +24109,7 @@ exports.regionSchema = regionSchema;
24069
24109
  exports.registerSchema = registerSchema;
24070
24110
  exports.requiredEarningsEnum = requiredEarningsEnum;
24071
24111
  exports.requiredJSSEnum = requiredJSSEnum;
24112
+ exports.sampleSchema = sampleSchema;
24072
24113
  exports.savedSearchSchema = savedSearchSchema;
24073
24114
  exports.scrapeJobActivityPayloadSchema = scrapeJobActivityPayloadSchema;
24074
24115
  exports.scrapeJobPayloadSchema = scrapeJobPayloadSchema;
@@ -24123,6 +24164,7 @@ exports.updateChatbotSchema = updateChatbotSchema;
24123
24164
  exports.updateLeadStatusSchema = updateLeadStatusSchema;
24124
24165
  exports.updateOrganizationLeadsStatusPayloadSchema = updateOrganizationLeadsStatusPayloadSchema;
24125
24166
  exports.updateOrganizationProfileSchema = updateOrganizationProfileSchema;
24167
+ exports.updateSampleSchema = updateSampleSchema;
24126
24168
  exports.updateScraperAccountSchema = updateScraperAccountSchema;
24127
24169
  exports.updateSuitableLeadNotificationBodySchema = updateSuitableLeadNotificationBodySchema;
24128
24170
  exports.updateSuitableLeadNotificationType = updateSuitableLeadNotificationType;