@happyvertical/smrt-ads 0.57.36 → 0.57.37

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.
@@ -0,0 +1,192 @@
1
+ /**
2
+ * Declared recipes for smrt-ads (#4409, #4437): user-facing units of
3
+ * functionality an app or agent can pick instead of the whole package.
4
+ * The scanner reads these statics into the `recipes` array of `manifest.json`
5
+ * and `smrt-knowledge.json`; nothing here runs at that point.
6
+ *
7
+ * @packageDocumentation
8
+ */
9
+ import { SmrtRecipe } from '@happyvertical/smrt-core';
10
+ import { AdDeliveryTier } from './models/AdDeliveryTier.js';
11
+ import { AdFormat } from './models/AdFormat.js';
12
+ import { AdGroup } from './models/AdGroup.js';
13
+ import { AdVariation } from './models/AdVariation.js';
14
+ /**
15
+ * Ads: run ad campaigns on your site and see which ads get clicked.
16
+ *
17
+ * `AdEvent` is left out on purpose: it is the append-only record of every
18
+ * showing and click the app writes while serving ads (create and list only,
19
+ * no CLI, high volume). Nobody opens it as a list; the counts a person reads
20
+ * live on the ad itself (`AdVariation.impressions` / `clicks`).
21
+ */
22
+ export declare class AdsCampaignsRecipe extends SmrtRecipe {
23
+ static id: string;
24
+ static help: string;
25
+ static label: string;
26
+ static summary: string;
27
+ static synonyms: string[];
28
+ static section: {
29
+ id: string;
30
+ label: string;
31
+ icon: string;
32
+ description: string;
33
+ };
34
+ static models: (typeof AdDeliveryTier | typeof AdFormat | typeof AdGroup | typeof AdVariation)[];
35
+ static nav: ({
36
+ label: string;
37
+ model: typeof AdGroup;
38
+ icon: string;
39
+ description: string;
40
+ noun: string;
41
+ } | {
42
+ label: string;
43
+ model: typeof AdVariation;
44
+ icon: string;
45
+ description: string;
46
+ noun: string;
47
+ } | {
48
+ label: string;
49
+ model: typeof AdFormat;
50
+ icon: string;
51
+ description: string;
52
+ noun: string;
53
+ } | {
54
+ label: string;
55
+ model: typeof AdDeliveryTier;
56
+ icon: string;
57
+ description: string;
58
+ noun: string;
59
+ })[];
60
+ static options: {
61
+ readonly AdGroup: {
62
+ readonly fields: {
63
+ readonly name: {
64
+ readonly order: 1;
65
+ };
66
+ readonly status: {
67
+ readonly order: 2;
68
+ };
69
+ readonly tierId: {
70
+ readonly label: "Priority tier";
71
+ readonly order: 3;
72
+ };
73
+ readonly startDate: {
74
+ readonly label: "Starts on";
75
+ readonly order: 4;
76
+ };
77
+ readonly endDate: {
78
+ readonly label: "Ends on";
79
+ readonly order: 5;
80
+ };
81
+ readonly dailyBudget: {
82
+ readonly label: "Daily budget";
83
+ readonly order: 6;
84
+ };
85
+ readonly totalBudget: {
86
+ readonly label: "Total budget";
87
+ readonly order: 7;
88
+ };
89
+ readonly tenantId: {
90
+ readonly visibility: "hidden";
91
+ };
92
+ readonly contractId: {
93
+ readonly label: "Sales contract";
94
+ readonly visibility: "advanced";
95
+ };
96
+ readonly verticalSlug: {
97
+ readonly label: "Category";
98
+ readonly visibility: "advanced";
99
+ };
100
+ readonly targeting: {
101
+ readonly visibility: "hidden";
102
+ };
103
+ readonly zoneIds: {
104
+ readonly visibility: "hidden";
105
+ };
106
+ };
107
+ };
108
+ readonly AdVariation: {
109
+ readonly fields: {
110
+ readonly name: {
111
+ readonly order: 1;
112
+ };
113
+ readonly groupId: {
114
+ readonly label: "Ad campaign";
115
+ readonly order: 2;
116
+ };
117
+ readonly formatId: {
118
+ readonly label: "Ad size";
119
+ readonly order: 3;
120
+ };
121
+ readonly assetId: {
122
+ readonly label: "Picture";
123
+ readonly order: 4;
124
+ };
125
+ readonly clickUrl: {
126
+ readonly label: "Link to";
127
+ readonly order: 5;
128
+ };
129
+ readonly altText: {
130
+ readonly label: "Words for the picture";
131
+ readonly order: 6;
132
+ };
133
+ readonly weight: {
134
+ readonly order: 7;
135
+ };
136
+ readonly status: {
137
+ readonly order: 8;
138
+ };
139
+ readonly tenantId: {
140
+ readonly visibility: "hidden";
141
+ };
142
+ readonly impressions: {
143
+ readonly label: "Times shown";
144
+ readonly locked: true;
145
+ readonly visibility: "advanced";
146
+ };
147
+ readonly clicks: {
148
+ readonly locked: true;
149
+ readonly visibility: "advanced";
150
+ };
151
+ };
152
+ };
153
+ readonly AdFormat: {
154
+ readonly fields: {
155
+ readonly name: {
156
+ readonly order: 1;
157
+ };
158
+ readonly width: {
159
+ readonly order: 2;
160
+ };
161
+ readonly height: {
162
+ readonly order: 3;
163
+ };
164
+ readonly formatType: {
165
+ readonly label: "Kind";
166
+ readonly order: 4;
167
+ };
168
+ readonly description: {
169
+ readonly order: 5;
170
+ };
171
+ };
172
+ };
173
+ readonly AdDeliveryTier: {
174
+ readonly fields: {
175
+ readonly name: {
176
+ readonly order: 1;
177
+ };
178
+ readonly priority: {
179
+ readonly order: 2;
180
+ };
181
+ readonly pricingModel: {
182
+ readonly label: "How it is charged";
183
+ readonly order: 3;
184
+ };
185
+ readonly description: {
186
+ readonly order: 4;
187
+ };
188
+ };
189
+ };
190
+ };
191
+ }
192
+ //# sourceMappingURL=recipes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recipes.d.ts","sourceRoot":"","sources":["../src/recipes.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD;;;;;;;GAOG;AACH,qBAAa,kBAAmB,SAAQ,UAAU;IAChD,MAAM,CAAC,EAAE,SAAmB;IAC5B,MAAM,CAAC,IAAI,SAA2B;IACtC,MAAM,CAAC,KAAK,SAAS;IACrB,MAAM,CAAC,OAAO,SACkF;IAChG,MAAM,CAAC,QAAQ,WAOb;IACF,MAAM,CAAC,OAAO;;;;;MAKZ;IACF,MAAM,CAAC,MAAM,oFAAoD;IACjE,MAAM,CAAC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;SAiCR;IACF,MAAM,CAAC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAqDH;CACZ"}