@formfeed/sdk 0.3.17 → 0.3.19

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formfeed/sdk",
3
- "version": "0.3.17",
3
+ "version": "0.3.19",
4
4
  "description": "Formfeed API client: renders, templates, webhooks. No dependencies, Web APIs only.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -141,7 +141,7 @@ export interface WatermarkOptions {
141
141
  image?: string;
142
142
  /** 0 to 1, default 0.2. */
143
143
  opacity?: number;
144
- /** Degrees clockwise as in CSS, default -45 (bottom left to top right). */
144
+ /** Degrees clockwise as in CSS, -360 to 360; left out, -45 for a text (bottom left to top right) and 0 for an image. */
145
145
  rotation?: number;
146
146
  /** Hex colour such as `#cc0000`; grey by default. Text only. */
147
147
  color?: string;
@@ -607,11 +607,11 @@ export interface TemplateFiles {
607
607
  settings?: Record<string, unknown>;
608
608
  sample_data?: Record<string, unknown>;
609
609
  /** Named sample data sets besides the default one, as the editor and the dev kit show them. */
610
- data_sets?: Record<string, unknown> | null;
610
+ data_sets?: Record<string, unknown>;
611
611
  data_schema?: Record<string, unknown> | null;
612
612
  i18n?: Record<string, unknown> | null;
613
613
  /** Partials the template includes (`name` → source); `formfeed templates push` sends them. */
614
- partials?: Record<string, string> | null;
614
+ partials?: Record<string, string>;
615
615
  }
616
616
  export interface TemplateVersion extends Partial<TemplateFiles> {
617
617
  id: string;
@@ -727,11 +727,19 @@ export interface OfficeVersionCreate extends OfficeFields {
727
727
  allow_breaking?: boolean;
728
728
  }
729
729
  export interface Usage {
730
+ /** The month the period started in, `YYYY-MM`. */
730
731
  period: string;
732
+ /** The first day of the period, `YYYY-MM-DD`. */
733
+ period_start: string;
734
+ /** The first day after the period. */
735
+ period_end: string;
731
736
  included: number;
732
737
  used: number;
733
738
  overage_used: number;
739
+ /** Prepaid units left now, also for an earlier period. */
734
740
  overage_balance: number;
741
+ /** The units at which overage stops live renders; null without overage and for an earlier period. */
742
+ hard_cap_units: number | null;
735
743
  daily: Array<{
736
744
  date: string;
737
745
  units: number;
@@ -141,7 +141,7 @@ export interface WatermarkOptions {
141
141
  image?: string;
142
142
  /** 0 to 1, default 0.2. */
143
143
  opacity?: number;
144
- /** Degrees clockwise as in CSS, default -45 (bottom left to top right). */
144
+ /** Degrees clockwise as in CSS, -360 to 360; left out, -45 for a text (bottom left to top right) and 0 for an image. */
145
145
  rotation?: number;
146
146
  /** Hex colour such as `#cc0000`; grey by default. Text only. */
147
147
  color?: string;
@@ -607,11 +607,11 @@ export interface TemplateFiles {
607
607
  settings?: Record<string, unknown>;
608
608
  sample_data?: Record<string, unknown>;
609
609
  /** Named sample data sets besides the default one, as the editor and the dev kit show them. */
610
- data_sets?: Record<string, unknown> | null;
610
+ data_sets?: Record<string, unknown>;
611
611
  data_schema?: Record<string, unknown> | null;
612
612
  i18n?: Record<string, unknown> | null;
613
613
  /** Partials the template includes (`name` → source); `formfeed templates push` sends them. */
614
- partials?: Record<string, string> | null;
614
+ partials?: Record<string, string>;
615
615
  }
616
616
  export interface TemplateVersion extends Partial<TemplateFiles> {
617
617
  id: string;
@@ -727,11 +727,19 @@ export interface OfficeVersionCreate extends OfficeFields {
727
727
  allow_breaking?: boolean;
728
728
  }
729
729
  export interface Usage {
730
+ /** The month the period started in, `YYYY-MM`. */
730
731
  period: string;
732
+ /** The first day of the period, `YYYY-MM-DD`. */
733
+ period_start: string;
734
+ /** The first day after the period. */
735
+ period_end: string;
731
736
  included: number;
732
737
  used: number;
733
738
  overage_used: number;
739
+ /** Prepaid units left now, also for an earlier period. */
734
740
  overage_balance: number;
741
+ /** The units at which overage stops live renders; null without overage and for an earlier period. */
742
+ hard_cap_units: number | null;
735
743
  daily: Array<{
736
744
  date: string;
737
745
  units: number;