@koda-sl/baker-cli 0.366.0 → 0.367.0-dev.a5b15aee3
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/cli.js
CHANGED
|
@@ -69,7 +69,7 @@ import {
|
|
|
69
69
|
validateCanvasDeep,
|
|
70
70
|
withoutCastName,
|
|
71
71
|
ytDlpBlockSignal
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-K2IKLMCM.js";
|
|
73
73
|
import {
|
|
74
74
|
csvOrJson,
|
|
75
75
|
daysAgoIso,
|
|
@@ -977,6 +977,14 @@ var OBJECTIVE_CAMPAIGN_TYPES = {
|
|
|
977
977
|
LEAD_GENERATION: ["SPONSORED_UPDATES", "SPONSORED_INMAILS"],
|
|
978
978
|
ENGAGEMENT: ["SPONSORED_UPDATES", "DYNAMIC"]
|
|
979
979
|
};
|
|
980
|
+
var ENTITY_STATUSES = ["ACTIVE", "PAUSED", "ARCHIVED", "CANCELED", "DRAFT", "COMPLETED"];
|
|
981
|
+
var CAMPAIGN_GROUP_STATUSES = [
|
|
982
|
+
"ACTIVE",
|
|
983
|
+
"PAUSED",
|
|
984
|
+
"ARCHIVED",
|
|
985
|
+
"CANCELED",
|
|
986
|
+
"DRAFT"
|
|
987
|
+
];
|
|
980
988
|
var STAGEABLE_CREATE_STATUSES = ["DRAFT", "ACTIVE", "PAUSED"];
|
|
981
989
|
var CREATIVE_INTENDED_STATUSES = ["ACTIVE", "PAUSED", "DRAFT"];
|
|
982
990
|
var CTA_TYPES = [
|
|
@@ -1104,7 +1112,7 @@ var targetingCriteriaSchema = z3.object({
|
|
|
1104
1112
|
}).optional()
|
|
1105
1113
|
});
|
|
1106
1114
|
var stageableStatusSchema = z3.enum(STAGEABLE_CREATE_STATUSES);
|
|
1107
|
-
var entityStatusSchema = z3.enum(
|
|
1115
|
+
var entityStatusSchema = z3.enum(ENTITY_STATUSES);
|
|
1108
1116
|
function currencyMinimums(currencyCode) {
|
|
1109
1117
|
return CURRENCY_MINIMUMS[currencyCode] ?? DEFAULT_CURRENCY_MINIMUM;
|
|
1110
1118
|
}
|
|
@@ -1118,7 +1126,7 @@ var campaignGroupUpdateSchema = z3.object({
|
|
|
1118
1126
|
name: z3.string().min(1).max(LINKEDIN_LIMITS.campaignGroup.nameMax).optional(),
|
|
1119
1127
|
runSchedule: runScheduleSchema.optional(),
|
|
1120
1128
|
totalBudget: moneySchema.optional(),
|
|
1121
|
-
status:
|
|
1129
|
+
status: z3.enum(CAMPAIGN_GROUP_STATUSES).optional()
|
|
1122
1130
|
}).refine((p) => Object.values(p).some((val) => val !== void 0), "update needs at least one field");
|
|
1123
1131
|
var campaignFields = {
|
|
1124
1132
|
name: z3.string().min(1).max(LINKEDIN_LIMITS.campaign.nameMax),
|
|
@@ -1819,6 +1827,18 @@ var linkedinDraftOpInputSchema = z3.discriminatedUnion("kind", [
|
|
|
1819
1827
|
updateOp("leadForm.update", leadFormUpdateSchema)
|
|
1820
1828
|
]);
|
|
1821
1829
|
|
|
1830
|
+
// ../api/src/ads-linkedin/transitions.ts
|
|
1831
|
+
var CAMPAIGN_GROUP_TRANSITIONS = {
|
|
1832
|
+
DRAFT: ["ACTIVE", "PAUSED", "CANCELED", "ARCHIVED"],
|
|
1833
|
+
ACTIVE: ["PAUSED", "CANCELED", "ARCHIVED"],
|
|
1834
|
+
PAUSED: ["ACTIVE", "CANCELED", "ARCHIVED"],
|
|
1835
|
+
ARCHIVED: ["ACTIVE", "PAUSED"]
|
|
1836
|
+
};
|
|
1837
|
+
var CAMPAIGN_TRANSITIONS = {
|
|
1838
|
+
...CAMPAIGN_GROUP_TRANSITIONS,
|
|
1839
|
+
ACTIVE: ["PAUSED", "CANCELED", "ARCHIVED", "COMPLETED"]
|
|
1840
|
+
};
|
|
1841
|
+
|
|
1822
1842
|
// ../api/src/ads-linkedin/wire.ts
|
|
1823
1843
|
import { z as z7 } from "zod";
|
|
1824
1844
|
|
|
@@ -21070,7 +21090,7 @@ Example: baker ads linkedin campaign-groups update 635137195 --total-budget 8000
|
|
|
21070
21090
|
end: { type: "string", description: "New run schedule end" },
|
|
21071
21091
|
"total-budget": { type: "string", description: TOTAL_BUDGET_HELP },
|
|
21072
21092
|
currency: { type: "string", description: "3-letter currency code (defaults to the ad account currency)" },
|
|
21073
|
-
status: { type: "string", description: "ACTIVE|PAUSED|ARCHIVED
|
|
21093
|
+
status: { type: "string", description: "ACTIVE|PAUSED|ARCHIVED|CANCELED|DRAFT (COMPLETED is campaigns only)" },
|
|
21074
21094
|
file: { type: "string", description: "JSON file with fields to change" }
|
|
21075
21095
|
},
|
|
21076
21096
|
run: async ({ args: args5 }) => {
|