@emailshepherd/cli 0.2.3 → 0.2.5

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
@@ -8,7 +8,7 @@ import updateNotifier from "update-notifier";
8
8
  // package.json
9
9
  var package_default = {
10
10
  name: "@emailshepherd/cli",
11
- version: "0.2.3",
11
+ version: "0.2.5",
12
12
  type: "module",
13
13
  publishConfig: {
14
14
  registry: "https://registry.npmjs.org",
@@ -566,9 +566,13 @@ function registerRenderCommand(program2) {
566
566
  }
567
567
 
568
568
  // src/cli.ts
569
- updateNotifier({ pkg: package_default }).notify({
569
+ updateNotifier({
570
+ pkg: package_default,
571
+ updateCheckInterval: 1e3 * 60 * 60 * 4,
572
+ shouldNotifyInNpmScript: true
573
+ }).notify({
570
574
  message: `Update available: {currentVersion} \u2192 {latestVersion}
571
- Run: npm update @emailshepherd/cli`
575
+ Run: npm install @emailshepherd/cli@latest`
572
576
  });
573
577
  var program = new Command();
574
578
  program.name("emailshepherd").description("EmailShepherd CLI - run commands from within an EDS project").version(package_default.version);
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: UserReference;
337
+ last_updated_by: ComponentLastUpdatedBy;
279
338
  /** @nullable */
280
339
  feed_id: number | null;
281
340
  deprecated: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emailshepherd/cli",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org",