lancer-shared 1.0.152 → 1.0.154
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.
- package/dist/schemas/campaign/campaign-ai-metrics.d.ts +13 -0
- package/dist/schemas/campaign/campaign-ai-metrics.js +8 -0
- package/dist/schemas/campaign/campaign.d.ts +10 -1
- package/dist/schemas/campaign/campaign.js +5 -4
- package/dist/schemas/campaign/index.d.ts +7 -6
- package/dist/schemas/campaign/index.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const campaignAIMetricsSchema: z.ZodObject<{
|
|
3
|
+
suitabilityCompleteCount: z.ZodNumber;
|
|
4
|
+
proposalCompleteCount: z.ZodNumber;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
suitabilityCompleteCount: number;
|
|
7
|
+
proposalCompleteCount: number;
|
|
8
|
+
}, {
|
|
9
|
+
suitabilityCompleteCount: number;
|
|
10
|
+
proposalCompleteCount: number;
|
|
11
|
+
}>;
|
|
12
|
+
export interface CampaignAIMetrics extends z.infer<typeof campaignAIMetricsSchema> {
|
|
13
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.campaignAIMetricsSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.campaignAIMetricsSchema = zod_1.z.object({
|
|
6
|
+
suitabilityCompleteCount: zod_1.z.number(),
|
|
7
|
+
proposalCompleteCount: zod_1.z.number(),
|
|
8
|
+
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from
|
|
1
|
+
import { z } from 'zod';
|
|
2
2
|
export declare const campaignStatusSchema: z.ZodUnion<[z.ZodLiteral<"active">, z.ZodLiteral<"draft">, z.ZodLiteral<"paused">, z.ZodLiteral<"error">]>;
|
|
3
3
|
export declare const campaignSchema: z.ZodObject<{
|
|
4
4
|
id: z.ZodString;
|
|
@@ -232,6 +232,7 @@ export declare const campaignSchema: z.ZodObject<{
|
|
|
232
232
|
}>;
|
|
233
233
|
createdAt: z.ZodNumber;
|
|
234
234
|
updatedAt: z.ZodNumber;
|
|
235
|
+
confirmedBillingAt: z.ZodNullable<z.ZodNumber>;
|
|
235
236
|
automatedSuitability: z.ZodNullable<z.ZodBoolean>;
|
|
236
237
|
automatedBidding: z.ZodNullable<z.ZodBoolean>;
|
|
237
238
|
boostingEnabled: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -353,6 +354,7 @@ export declare const campaignSchema: z.ZodObject<{
|
|
|
353
354
|
} | null;
|
|
354
355
|
engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
|
|
355
356
|
};
|
|
357
|
+
confirmedBillingAt: number | null;
|
|
356
358
|
automatedSuitability: boolean | null;
|
|
357
359
|
automatedBidding: boolean | null;
|
|
358
360
|
boostingEnabled: boolean | null;
|
|
@@ -435,6 +437,7 @@ export declare const campaignSchema: z.ZodObject<{
|
|
|
435
437
|
} | null;
|
|
436
438
|
engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
|
|
437
439
|
};
|
|
440
|
+
confirmedBillingAt: number | null;
|
|
438
441
|
automatedSuitability: boolean | null;
|
|
439
442
|
automatedBidding: boolean | null;
|
|
440
443
|
webhookUrl: string | null;
|
|
@@ -693,6 +696,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
|
|
|
693
696
|
}>;
|
|
694
697
|
createdAt: z.ZodNumber;
|
|
695
698
|
updatedAt: z.ZodNumber;
|
|
699
|
+
confirmedBillingAt: z.ZodNullable<z.ZodNumber>;
|
|
696
700
|
automatedSuitability: z.ZodNullable<z.ZodBoolean>;
|
|
697
701
|
automatedBidding: z.ZodNullable<z.ZodBoolean>;
|
|
698
702
|
boostingEnabled: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -811,6 +815,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
|
|
|
811
815
|
} | null;
|
|
812
816
|
engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
|
|
813
817
|
};
|
|
818
|
+
confirmedBillingAt: number | null;
|
|
814
819
|
automatedSuitability: boolean | null;
|
|
815
820
|
automatedBidding: boolean | null;
|
|
816
821
|
boostingEnabled: boolean | null;
|
|
@@ -890,6 +895,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
|
|
|
890
895
|
} | null;
|
|
891
896
|
engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
|
|
892
897
|
};
|
|
898
|
+
confirmedBillingAt: number | null;
|
|
893
899
|
automatedSuitability: boolean | null;
|
|
894
900
|
automatedBidding: boolean | null;
|
|
895
901
|
webhookUrl: string | null;
|
|
@@ -1148,6 +1154,7 @@ export declare const updateCampaignSchema: z.ZodObject<Omit<{
|
|
|
1148
1154
|
}>;
|
|
1149
1155
|
createdAt: z.ZodNumber;
|
|
1150
1156
|
updatedAt: z.ZodNumber;
|
|
1157
|
+
confirmedBillingAt: z.ZodNullable<z.ZodNumber>;
|
|
1151
1158
|
automatedSuitability: z.ZodNullable<z.ZodBoolean>;
|
|
1152
1159
|
automatedBidding: z.ZodNullable<z.ZodBoolean>;
|
|
1153
1160
|
boostingEnabled: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
|
|
@@ -1267,6 +1274,7 @@ export declare const updateCampaignSchema: z.ZodObject<Omit<{
|
|
|
1267
1274
|
} | null;
|
|
1268
1275
|
engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
|
|
1269
1276
|
};
|
|
1277
|
+
confirmedBillingAt: number | null;
|
|
1270
1278
|
automatedSuitability: boolean | null;
|
|
1271
1279
|
automatedBidding: boolean | null;
|
|
1272
1280
|
boostingEnabled: boolean | null;
|
|
@@ -1347,6 +1355,7 @@ export declare const updateCampaignSchema: z.ZodObject<Omit<{
|
|
|
1347
1355
|
} | null;
|
|
1348
1356
|
engagementType: ("Unspecified" | "Less than 30 hrs/week" | "More than 30 hrs/week")[] | null;
|
|
1349
1357
|
};
|
|
1358
|
+
confirmedBillingAt: number | null;
|
|
1350
1359
|
automatedSuitability: boolean | null;
|
|
1351
1360
|
automatedBidding: boolean | null;
|
|
1352
1361
|
webhookUrl: string | null;
|
|
@@ -7,10 +7,10 @@ const lead_1 = require("../lead");
|
|
|
7
7
|
const campaign_expenses_1 = require("./campaign-expenses");
|
|
8
8
|
const campaign_integrations_1 = require("./campaign-integrations");
|
|
9
9
|
exports.campaignStatusSchema = zod_1.z.union([
|
|
10
|
-
zod_1.z.literal(
|
|
11
|
-
zod_1.z.literal(
|
|
12
|
-
zod_1.z.literal(
|
|
13
|
-
zod_1.z.literal(
|
|
10
|
+
zod_1.z.literal('active'),
|
|
11
|
+
zod_1.z.literal('draft'),
|
|
12
|
+
zod_1.z.literal('paused'),
|
|
13
|
+
zod_1.z.literal('error'),
|
|
14
14
|
]);
|
|
15
15
|
exports.campaignSchema = zod_1.z.object({
|
|
16
16
|
id: zod_1.z.string(),
|
|
@@ -18,6 +18,7 @@ exports.campaignSchema = zod_1.z.object({
|
|
|
18
18
|
filters: job_filters_1.jobFiltersSchema,
|
|
19
19
|
createdAt: (0, zod_1.number)(),
|
|
20
20
|
updatedAt: (0, zod_1.number)(),
|
|
21
|
+
confirmedBillingAt: (0, zod_1.number)().nullable(),
|
|
21
22
|
automatedSuitability: zod_1.z.boolean().nullable(),
|
|
22
23
|
automatedBidding: zod_1.z.boolean().nullable(),
|
|
23
24
|
boostingEnabled: zod_1.z.boolean().nullable().default(false),
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
1
|
+
export * from './campaign';
|
|
2
|
+
export * from './campaign-insights';
|
|
3
|
+
export * from './campaign-job-count';
|
|
4
|
+
export * from './campaign-expenses';
|
|
5
|
+
export * from './campaign-integrations';
|
|
6
|
+
export * from './campaign-analytics';
|
|
7
|
+
export * from './campaign-ai-metrics';
|
|
@@ -20,3 +20,4 @@ __exportStar(require("./campaign-job-count"), exports);
|
|
|
20
20
|
__exportStar(require("./campaign-expenses"), exports);
|
|
21
21
|
__exportStar(require("./campaign-integrations"), exports);
|
|
22
22
|
__exportStar(require("./campaign-analytics"), exports);
|
|
23
|
+
__exportStar(require("./campaign-ai-metrics"), exports);
|