@emailshepherd/cli 0.2.3 → 0.2.4
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 +1 -1
- package/dist/types.d.ts +64 -5
- package/package.json +1 -1
package/dist/cli.js
CHANGED
package/dist/types.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export interface RichTextCustomStyle {
|
|
|
11
11
|
name: string;
|
|
12
12
|
label: string;
|
|
13
13
|
}
|
|
14
|
-
export type FieldDefinition = TextFieldDefinition | NumberFieldDefinition | EnumFieldDefinition | BooleanFieldDefinition | UrlFieldDefinition | ImageFieldDefinition | ColorFieldDefinition | RichTextFieldDefinition | CodeFieldDefinition;
|
|
14
|
+
export type FieldDefinition = TextFieldDefinition | NumberFieldDefinition | EnumFieldDefinition | BooleanFieldDefinition | UrlFieldDefinition | ImageFieldDefinition | ColorFieldDefinition | RichTextFieldDefinition | CodeFieldDefinition | HorizontalAlignFieldDefinition | VerticalAlignFieldDefinition;
|
|
15
15
|
export type TextFieldDefinitionType = typeof TextFieldDefinitionType[keyof typeof TextFieldDefinitionType];
|
|
16
16
|
declare const TextFieldDefinitionType: {
|
|
17
17
|
readonly text: "text";
|
|
@@ -70,8 +70,6 @@ export type EnumFieldDefinitionValidations = {
|
|
|
70
70
|
export type EnumFieldDefinitionOptionsItem = {
|
|
71
71
|
label: string;
|
|
72
72
|
value: string;
|
|
73
|
-
/** @nullable */
|
|
74
|
-
icon_url?: string | null;
|
|
75
73
|
};
|
|
76
74
|
export interface EnumFieldDefinition {
|
|
77
75
|
type: EnumFieldDefinitionType;
|
|
@@ -258,8 +256,69 @@ export interface CodeFieldDefinition {
|
|
|
258
256
|
/** @nullable */
|
|
259
257
|
feed_field_name?: string | null;
|
|
260
258
|
}
|
|
259
|
+
export type HorizontalAlignFieldDefinitionType = typeof HorizontalAlignFieldDefinitionType[keyof typeof HorizontalAlignFieldDefinitionType];
|
|
260
|
+
declare const HorizontalAlignFieldDefinitionType: {
|
|
261
|
+
readonly horizontal_align: "horizontal_align";
|
|
262
|
+
};
|
|
263
|
+
export type HorizontalAlignFieldDefinitionValidations = {
|
|
264
|
+
[key: string]: unknown;
|
|
265
|
+
};
|
|
266
|
+
export type HorizontalAlignFieldDefinitionOptionsItem = typeof HorizontalAlignFieldDefinitionOptionsItem[keyof typeof HorizontalAlignFieldDefinitionOptionsItem];
|
|
267
|
+
declare const HorizontalAlignFieldDefinitionOptionsItem: {
|
|
268
|
+
readonly left: "left";
|
|
269
|
+
readonly center: "center";
|
|
270
|
+
readonly right: "right";
|
|
271
|
+
};
|
|
272
|
+
export interface HorizontalAlignFieldDefinition {
|
|
273
|
+
type: HorizontalAlignFieldDefinitionType;
|
|
274
|
+
label: string;
|
|
275
|
+
/** @nullable */
|
|
276
|
+
group?: string | null;
|
|
277
|
+
liquid_variable: string;
|
|
278
|
+
visible_if?: string;
|
|
279
|
+
default_value: string;
|
|
280
|
+
validations?: HorizontalAlignFieldDefinitionValidations;
|
|
281
|
+
options: HorizontalAlignFieldDefinitionOptionsItem[];
|
|
282
|
+
hint?: string;
|
|
283
|
+
hidden_in_editor?: boolean;
|
|
284
|
+
hidden_from_ai?: boolean;
|
|
285
|
+
/** @nullable */
|
|
286
|
+
feed_field_name?: string | null;
|
|
287
|
+
}
|
|
288
|
+
export type VerticalAlignFieldDefinitionType = typeof VerticalAlignFieldDefinitionType[keyof typeof VerticalAlignFieldDefinitionType];
|
|
289
|
+
declare const VerticalAlignFieldDefinitionType: {
|
|
290
|
+
readonly vertical_align: "vertical_align";
|
|
291
|
+
};
|
|
292
|
+
export type VerticalAlignFieldDefinitionValidations = {
|
|
293
|
+
[key: string]: unknown;
|
|
294
|
+
};
|
|
295
|
+
export type VerticalAlignFieldDefinitionOptionsItem = typeof VerticalAlignFieldDefinitionOptionsItem[keyof typeof VerticalAlignFieldDefinitionOptionsItem];
|
|
296
|
+
declare const VerticalAlignFieldDefinitionOptionsItem: {
|
|
297
|
+
readonly top: "top";
|
|
298
|
+
readonly middle: "middle";
|
|
299
|
+
readonly bottom: "bottom";
|
|
300
|
+
};
|
|
301
|
+
export interface VerticalAlignFieldDefinition {
|
|
302
|
+
type: VerticalAlignFieldDefinitionType;
|
|
303
|
+
label: string;
|
|
304
|
+
/** @nullable */
|
|
305
|
+
group?: string | null;
|
|
306
|
+
liquid_variable: string;
|
|
307
|
+
visible_if?: string;
|
|
308
|
+
default_value: string;
|
|
309
|
+
validations?: VerticalAlignFieldDefinitionValidations;
|
|
310
|
+
options: VerticalAlignFieldDefinitionOptionsItem[];
|
|
311
|
+
hint?: string;
|
|
312
|
+
hidden_in_editor?: boolean;
|
|
313
|
+
hidden_from_ai?: boolean;
|
|
314
|
+
/** @nullable */
|
|
315
|
+
feed_field_name?: string | null;
|
|
316
|
+
}
|
|
317
|
+
/**
|
|
318
|
+
* @nullable
|
|
319
|
+
*/
|
|
320
|
+
export type ComponentLastUpdatedBy = UserReference | null;
|
|
261
321
|
export interface Component {
|
|
262
|
-
id: number;
|
|
263
322
|
name: string;
|
|
264
323
|
label: string;
|
|
265
324
|
/** @nullable */
|
|
@@ -275,7 +334,7 @@ export interface Component {
|
|
|
275
334
|
/** @nullable */
|
|
276
335
|
position: number | null;
|
|
277
336
|
/** @nullable */
|
|
278
|
-
last_updated_by:
|
|
337
|
+
last_updated_by: ComponentLastUpdatedBy;
|
|
279
338
|
/** @nullable */
|
|
280
339
|
feed_id: number | null;
|
|
281
340
|
deprecated: boolean;
|