@formfeed/sdk 0.3.19 → 0.3.21
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 +1 -1
- package/types/lib/client.d.cts +16 -7
- package/types/lib/client.d.ts +16 -7
package/package.json
CHANGED
package/types/lib/client.d.cts
CHANGED
|
@@ -173,19 +173,25 @@ export interface EinvoiceOptions {
|
|
|
173
173
|
/** What a value of the XML that the PDF does not show does: a warning, or a failed render. */
|
|
174
174
|
display_check?: 'warn' | 'strict';
|
|
175
175
|
}
|
|
176
|
-
/**
|
|
176
|
+
/**
|
|
177
|
+
* One finding of the validator: a rule of the XML, or a clause of PDF/A. `part` and `severity` name
|
|
178
|
+
* today's values and take any other text, which a later release of the API may send.
|
|
179
|
+
*/
|
|
177
180
|
export interface EinvoiceMessage {
|
|
178
|
-
part: 'xml' | 'pdf';
|
|
179
|
-
severity: 'error' | 'warning';
|
|
181
|
+
part: 'xml' | 'pdf' | (string & {});
|
|
182
|
+
severity: 'error' | 'warning' | (string & {});
|
|
180
183
|
rule: string | null;
|
|
181
184
|
message: string;
|
|
182
185
|
/** An XPath into the XML, or the object of the PDF. */
|
|
183
186
|
location: string | null;
|
|
184
187
|
}
|
|
185
|
-
/**
|
|
188
|
+
/**
|
|
189
|
+
* The e-invoice of a render: what was made, what the validator said, what the PDF shows. `profile`
|
|
190
|
+
* and `flavour` name today's values and take any other text, which a later release may send.
|
|
191
|
+
*/
|
|
186
192
|
export interface Einvoice {
|
|
187
|
-
profile: 'basic' | 'en16931';
|
|
188
|
-
flavour: 'factur-x' | 'zugferd';
|
|
193
|
+
profile: 'basic' | 'en16931' | (string & {});
|
|
194
|
+
flavour: 'factur-x' | 'zugferd' | (string & {});
|
|
189
195
|
/** The release under the flavour's name: Factur-X `1.09` is ZUGFeRD `2.5`. */
|
|
190
196
|
spec_version: string;
|
|
191
197
|
/** A signed link to the XML when the render asked for `xml: "both"`; null otherwise. */
|
|
@@ -540,7 +546,8 @@ export interface RenderInput {
|
|
|
540
546
|
url?: string;
|
|
541
547
|
data?: Record<string, unknown>;
|
|
542
548
|
locale?: string | null;
|
|
543
|
-
output
|
|
549
|
+
/** One of today's output formats, or one a later release of the API adds. */
|
|
550
|
+
output?: OutputFormat | (string & {});
|
|
544
551
|
settings?: Record<string, unknown>;
|
|
545
552
|
filename?: string;
|
|
546
553
|
post?: Record<string, unknown>;
|
|
@@ -692,6 +699,8 @@ export interface TemplateCreate extends TemplateFiles {
|
|
|
692
699
|
kind: TemplateKind;
|
|
693
700
|
engine: Engine;
|
|
694
701
|
tags?: string[];
|
|
702
|
+
/** What version 1 is; shown in the version history. */
|
|
703
|
+
change_note?: string;
|
|
695
704
|
publish?: boolean;
|
|
696
705
|
}
|
|
697
706
|
export interface TemplateVersionCreate extends TemplateFiles {
|
package/types/lib/client.d.ts
CHANGED
|
@@ -173,19 +173,25 @@ export interface EinvoiceOptions {
|
|
|
173
173
|
/** What a value of the XML that the PDF does not show does: a warning, or a failed render. */
|
|
174
174
|
display_check?: 'warn' | 'strict';
|
|
175
175
|
}
|
|
176
|
-
/**
|
|
176
|
+
/**
|
|
177
|
+
* One finding of the validator: a rule of the XML, or a clause of PDF/A. `part` and `severity` name
|
|
178
|
+
* today's values and take any other text, which a later release of the API may send.
|
|
179
|
+
*/
|
|
177
180
|
export interface EinvoiceMessage {
|
|
178
|
-
part: 'xml' | 'pdf';
|
|
179
|
-
severity: 'error' | 'warning';
|
|
181
|
+
part: 'xml' | 'pdf' | (string & {});
|
|
182
|
+
severity: 'error' | 'warning' | (string & {});
|
|
180
183
|
rule: string | null;
|
|
181
184
|
message: string;
|
|
182
185
|
/** An XPath into the XML, or the object of the PDF. */
|
|
183
186
|
location: string | null;
|
|
184
187
|
}
|
|
185
|
-
/**
|
|
188
|
+
/**
|
|
189
|
+
* The e-invoice of a render: what was made, what the validator said, what the PDF shows. `profile`
|
|
190
|
+
* and `flavour` name today's values and take any other text, which a later release may send.
|
|
191
|
+
*/
|
|
186
192
|
export interface Einvoice {
|
|
187
|
-
profile: 'basic' | 'en16931';
|
|
188
|
-
flavour: 'factur-x' | 'zugferd';
|
|
193
|
+
profile: 'basic' | 'en16931' | (string & {});
|
|
194
|
+
flavour: 'factur-x' | 'zugferd' | (string & {});
|
|
189
195
|
/** The release under the flavour's name: Factur-X `1.09` is ZUGFeRD `2.5`. */
|
|
190
196
|
spec_version: string;
|
|
191
197
|
/** A signed link to the XML when the render asked for `xml: "both"`; null otherwise. */
|
|
@@ -540,7 +546,8 @@ export interface RenderInput {
|
|
|
540
546
|
url?: string;
|
|
541
547
|
data?: Record<string, unknown>;
|
|
542
548
|
locale?: string | null;
|
|
543
|
-
output
|
|
549
|
+
/** One of today's output formats, or one a later release of the API adds. */
|
|
550
|
+
output?: OutputFormat | (string & {});
|
|
544
551
|
settings?: Record<string, unknown>;
|
|
545
552
|
filename?: string;
|
|
546
553
|
post?: Record<string, unknown>;
|
|
@@ -692,6 +699,8 @@ export interface TemplateCreate extends TemplateFiles {
|
|
|
692
699
|
kind: TemplateKind;
|
|
693
700
|
engine: Engine;
|
|
694
701
|
tags?: string[];
|
|
702
|
+
/** What version 1 is; shown in the version history. */
|
|
703
|
+
change_note?: string;
|
|
695
704
|
publish?: boolean;
|
|
696
705
|
}
|
|
697
706
|
export interface TemplateVersionCreate extends TemplateFiles {
|