@anvilco/types 0.2.1 → 0.2.3
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/README.md +1 -0
- package/dist/index.d.cts +177 -52
- package/dist/index.d.ts +177 -52
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,6 +5,7 @@ TypeScript types generated from the [Anvil](https://www.useanvil.com) OpenAPI sp
|
|
|
5
5
|
The one place for the Anvil SDK's TypeScript types:
|
|
6
6
|
|
|
7
7
|
- **REST**: `paths`, `components` and `operations`, generated from the OpenAPI spec, plus the fill-PDF request types (`FillPdfPayload`, `FillPdfData`, `FillPdfOptions`).
|
|
8
|
+
- **Etch**: `CreateEtchPacketArgs`, the createEtchPacket mutation's arguments with the ones the GraphQL schema calls `JSON` typed: `signers` (`EtchSigner`), `signaturePageOptions` (`EtchSignaturePageOptions`) and `finishPageOptions` (`EtchFinishPageOptions`). The OpenAPI spec publishes their shapes.
|
|
8
9
|
- **GraphQL**: the `GraphQL` namespace, generated from the schema.
|
|
9
10
|
- **The SDK's own types**: `AnvilOptions`, `GraphQLResponse`, `RESTResponse`, `ResponseError`, `ResponseErrorField`, `RuntimeError` and `Abortable`.
|
|
10
11
|
|
package/dist/index.d.cts
CHANGED
|
@@ -64,6 +64,31 @@ interface paths {
|
|
|
64
64
|
patch?: never;
|
|
65
65
|
trace?: never;
|
|
66
66
|
};
|
|
67
|
+
'/api/v1/fill/{integrationType}/{castEid}.pdf': {
|
|
68
|
+
parameters: {
|
|
69
|
+
query?: never;
|
|
70
|
+
header?: never;
|
|
71
|
+
path?: never;
|
|
72
|
+
cookie?: never;
|
|
73
|
+
};
|
|
74
|
+
get?: never;
|
|
75
|
+
put?: never;
|
|
76
|
+
/**
|
|
77
|
+
* Fill a PDF template from integration records
|
|
78
|
+
* @description Fills a PDF template (Cast) built from an integration with values read
|
|
79
|
+
* from that integration's records, and returns the same PDF or signed URL
|
|
80
|
+
* as `/api/v1/fill/{castEid}.pdf`. Accepts every option that endpoint does
|
|
81
|
+
* except `data`.
|
|
82
|
+
*
|
|
83
|
+
* Only `hubspot` is supported, and one record per object type.
|
|
84
|
+
*/
|
|
85
|
+
post: operations['fillPdfFromIntegration'];
|
|
86
|
+
delete?: never;
|
|
87
|
+
options?: never;
|
|
88
|
+
head?: never;
|
|
89
|
+
patch?: never;
|
|
90
|
+
trace?: never;
|
|
91
|
+
};
|
|
67
92
|
'/api/v1/generate-pdf': {
|
|
68
93
|
parameters: {
|
|
69
94
|
query?: never;
|
|
@@ -287,6 +312,22 @@ interface components {
|
|
|
287
312
|
*/
|
|
288
313
|
outputFormat: 'pdf' | 'url';
|
|
289
314
|
};
|
|
315
|
+
FillPdfFromIntegrationRequest: {
|
|
316
|
+
/**
|
|
317
|
+
* @description Record IDs keyed by the template's object types, e.g.
|
|
318
|
+
* `{ "contacts": "111", "companies": "999" }`. Each type takes one ID
|
|
319
|
+
* as a numeric string, or a list holding one.
|
|
320
|
+
*/
|
|
321
|
+
records: {
|
|
322
|
+
[key: string]: string | string[];
|
|
323
|
+
};
|
|
324
|
+
title?: string;
|
|
325
|
+
/**
|
|
326
|
+
* @default pdf
|
|
327
|
+
* @enum {string}
|
|
328
|
+
*/
|
|
329
|
+
outputFormat: 'pdf' | 'url';
|
|
330
|
+
};
|
|
290
331
|
/** @description Custom page dimensions and margins for the generated PDF. */
|
|
291
332
|
PageOptions: {
|
|
292
333
|
/** @description Page width with unit (e.g. `8.5in`, `210mm`). */
|
|
@@ -473,7 +514,7 @@ interface operations {
|
|
|
473
514
|
};
|
|
474
515
|
content?: never;
|
|
475
516
|
};
|
|
476
|
-
/** @description
|
|
517
|
+
/** @description Not found. No document group exists with the given EID, the authenticated user lacks access to it, or its zip is missing from storage. */
|
|
477
518
|
404: {
|
|
478
519
|
headers: {
|
|
479
520
|
[name: string]: unknown;
|
|
@@ -552,6 +593,81 @@ interface operations {
|
|
|
552
593
|
};
|
|
553
594
|
};
|
|
554
595
|
};
|
|
596
|
+
fillPdfFromIntegration: {
|
|
597
|
+
parameters: {
|
|
598
|
+
query?: {
|
|
599
|
+
/** @description The version number of the template to use. Defaults to the latest published version. */
|
|
600
|
+
versionNumber?: number;
|
|
601
|
+
};
|
|
602
|
+
header?: never;
|
|
603
|
+
path: {
|
|
604
|
+
/** @description The integration the template was built from. */
|
|
605
|
+
integrationType: 'hubspot';
|
|
606
|
+
/** @description The EID of the PDF template (Cast) to fill. */
|
|
607
|
+
castEid: string;
|
|
608
|
+
};
|
|
609
|
+
cookie?: never;
|
|
610
|
+
};
|
|
611
|
+
requestBody: {
|
|
612
|
+
content: {
|
|
613
|
+
'application/json': components['schemas']['FillPdfFromIntegrationRequest'];
|
|
614
|
+
'multipart/form-data': components['schemas']['FillPdfFromIntegrationRequest'];
|
|
615
|
+
};
|
|
616
|
+
};
|
|
617
|
+
responses: {
|
|
618
|
+
/** @description The filled PDF document. */
|
|
619
|
+
200: {
|
|
620
|
+
headers: {
|
|
621
|
+
[name: string]: unknown;
|
|
622
|
+
};
|
|
623
|
+
content: {
|
|
624
|
+
'application/pdf': string;
|
|
625
|
+
};
|
|
626
|
+
};
|
|
627
|
+
/** @description Validation error, the template wasn't built from this integration, or the integration has no record with a given ID. */
|
|
628
|
+
400: {
|
|
629
|
+
headers: {
|
|
630
|
+
[name: string]: unknown;
|
|
631
|
+
};
|
|
632
|
+
content?: never;
|
|
633
|
+
};
|
|
634
|
+
/** @description Authentication required. */
|
|
635
|
+
401: {
|
|
636
|
+
headers: {
|
|
637
|
+
[name: string]: unknown;
|
|
638
|
+
};
|
|
639
|
+
content?: never;
|
|
640
|
+
};
|
|
641
|
+
/** @description No edit access to the template. */
|
|
642
|
+
403: {
|
|
643
|
+
headers: {
|
|
644
|
+
[name: string]: unknown;
|
|
645
|
+
};
|
|
646
|
+
content?: never;
|
|
647
|
+
};
|
|
648
|
+
/** @description Template not found. */
|
|
649
|
+
404: {
|
|
650
|
+
headers: {
|
|
651
|
+
[name: string]: unknown;
|
|
652
|
+
};
|
|
653
|
+
content?: never;
|
|
654
|
+
};
|
|
655
|
+
/** @description Unsupported media type. */
|
|
656
|
+
415: {
|
|
657
|
+
headers: {
|
|
658
|
+
[name: string]: unknown;
|
|
659
|
+
};
|
|
660
|
+
content?: never;
|
|
661
|
+
};
|
|
662
|
+
/** @description Concurrency limit exceeded. */
|
|
663
|
+
429: {
|
|
664
|
+
headers: {
|
|
665
|
+
[name: string]: unknown;
|
|
666
|
+
};
|
|
667
|
+
content?: never;
|
|
668
|
+
};
|
|
669
|
+
};
|
|
670
|
+
};
|
|
555
671
|
generatePdf: {
|
|
556
672
|
parameters: {
|
|
557
673
|
query?: never;
|
|
@@ -607,56 +723,6 @@ interface operations {
|
|
|
607
723
|
};
|
|
608
724
|
}
|
|
609
725
|
|
|
610
|
-
interface AnvilOptions {
|
|
611
|
-
apiKey?: string;
|
|
612
|
-
accessToken?: string;
|
|
613
|
-
baseURL?: string;
|
|
614
|
-
userAgent?: string;
|
|
615
|
-
requestLimit?: number;
|
|
616
|
-
requestLimitMS?: number;
|
|
617
|
-
}
|
|
618
|
-
interface ResponseErrorField {
|
|
619
|
-
message: string;
|
|
620
|
-
property?: string;
|
|
621
|
-
[key: string]: unknown;
|
|
622
|
-
}
|
|
623
|
-
interface ResponseError {
|
|
624
|
-
message: string;
|
|
625
|
-
status?: number;
|
|
626
|
-
name?: string;
|
|
627
|
-
fields?: ResponseErrorField[];
|
|
628
|
-
[key: string]: unknown;
|
|
629
|
-
}
|
|
630
|
-
interface RuntimeError {
|
|
631
|
-
name: string;
|
|
632
|
-
message: string;
|
|
633
|
-
stack?: string;
|
|
634
|
-
code?: string;
|
|
635
|
-
cause?: unknown;
|
|
636
|
-
}
|
|
637
|
-
interface GraphQLResponseData {
|
|
638
|
-
[key: string]: unknown;
|
|
639
|
-
}
|
|
640
|
-
interface GraphQLResponse<TData = GraphQLResponseData> {
|
|
641
|
-
statusCode: number;
|
|
642
|
-
data?: TData;
|
|
643
|
-
errors?: Array<ResponseError | RuntimeError>;
|
|
644
|
-
}
|
|
645
|
-
interface RESTResponse<T = unknown> {
|
|
646
|
-
statusCode: number;
|
|
647
|
-
data?: T;
|
|
648
|
-
errors?: Array<ResponseError | RuntimeError>;
|
|
649
|
-
}
|
|
650
|
-
interface Abortable {
|
|
651
|
-
signal?: AbortSignal;
|
|
652
|
-
}
|
|
653
|
-
type FillPdfPayload = components['schemas']['FillPdfRequest'];
|
|
654
|
-
type FillPdfData = FillPdfPayload['data'];
|
|
655
|
-
type FillPdfVersionNumber = NonNullable<operations['fillPdf']['parameters']['query']>['versionNumber'];
|
|
656
|
-
interface FillPdfOptions extends Abortable {
|
|
657
|
-
versionNumber?: FillPdfVersionNumber;
|
|
658
|
-
}
|
|
659
|
-
|
|
660
726
|
// Generated by scripts/generate-graphql.js (gql.tada) from schema/anvil-schema.graphql — do not edit by hand.
|
|
661
727
|
// Run `yarn workspace @anvilco/types generate:graphql` to regenerate.
|
|
662
728
|
/* eslint-disable */
|
|
@@ -10915,4 +10981,63 @@ declare namespace index {
|
|
|
10915
10981
|
export type { index_Introspection as Introspection, index_MutationArgs as MutationArgs, index_MutationName as MutationName, index_QueryArgs as QueryArgs, index_QueryName as QueryName, index_Scalars as Scalars, index_Setup as Setup, index_Type as Type, index_TypeName as TypeName };
|
|
10916
10982
|
}
|
|
10917
10983
|
|
|
10918
|
-
|
|
10984
|
+
interface AnvilOptions {
|
|
10985
|
+
apiKey?: string;
|
|
10986
|
+
accessToken?: string;
|
|
10987
|
+
baseURL?: string;
|
|
10988
|
+
userAgent?: string;
|
|
10989
|
+
requestLimit?: number;
|
|
10990
|
+
requestLimitMS?: number;
|
|
10991
|
+
}
|
|
10992
|
+
interface ResponseErrorField {
|
|
10993
|
+
message: string;
|
|
10994
|
+
property?: string;
|
|
10995
|
+
[key: string]: unknown;
|
|
10996
|
+
}
|
|
10997
|
+
interface ResponseError {
|
|
10998
|
+
message: string;
|
|
10999
|
+
status?: number;
|
|
11000
|
+
name?: string;
|
|
11001
|
+
fields?: ResponseErrorField[];
|
|
11002
|
+
[key: string]: unknown;
|
|
11003
|
+
}
|
|
11004
|
+
interface RuntimeError {
|
|
11005
|
+
name: string;
|
|
11006
|
+
message: string;
|
|
11007
|
+
stack?: string;
|
|
11008
|
+
code?: string;
|
|
11009
|
+
cause?: unknown;
|
|
11010
|
+
}
|
|
11011
|
+
interface GraphQLResponseData {
|
|
11012
|
+
[key: string]: unknown;
|
|
11013
|
+
}
|
|
11014
|
+
interface GraphQLResponse<TData = GraphQLResponseData> {
|
|
11015
|
+
statusCode: number;
|
|
11016
|
+
data?: TData;
|
|
11017
|
+
errors?: Array<ResponseError | RuntimeError>;
|
|
11018
|
+
}
|
|
11019
|
+
interface RESTResponse<T = unknown> {
|
|
11020
|
+
statusCode: number;
|
|
11021
|
+
data?: T;
|
|
11022
|
+
errors?: Array<ResponseError | RuntimeError>;
|
|
11023
|
+
}
|
|
11024
|
+
interface Abortable {
|
|
11025
|
+
signal?: AbortSignal;
|
|
11026
|
+
}
|
|
11027
|
+
type FillPdfPayload = components['schemas']['FillPdfRequest'];
|
|
11028
|
+
type FillPdfData = FillPdfPayload['data'];
|
|
11029
|
+
type FillPdfVersionNumber = NonNullable<operations['fillPdf']['parameters']['query']>['versionNumber'];
|
|
11030
|
+
interface FillPdfOptions extends Abortable {
|
|
11031
|
+
versionNumber?: FillPdfVersionNumber;
|
|
11032
|
+
}
|
|
11033
|
+
type EtchSigner = components['schemas']['EtchSigner'];
|
|
11034
|
+
type EtchSignaturePageOptions = components['schemas']['EtchSignaturePageOptions'];
|
|
11035
|
+
type EtchFinishPageOptions = components['schemas']['EtchFinishPageOptions'];
|
|
11036
|
+
/** createEtchPacket's arguments, with `signers`, `signaturePageOptions` and `finishPageOptions` typed. */
|
|
11037
|
+
type CreateEtchPacketArgs = Omit<MutationArgs<'createEtchPacket'>, 'signers' | 'signaturePageOptions' | 'finishPageOptions'> & {
|
|
11038
|
+
signers?: EtchSigner[] | null;
|
|
11039
|
+
signaturePageOptions?: EtchSignaturePageOptions | null;
|
|
11040
|
+
finishPageOptions?: EtchFinishPageOptions | null;
|
|
11041
|
+
};
|
|
11042
|
+
|
|
11043
|
+
export { type Abortable, type AnvilOptions, type CreateEtchPacketArgs, type EtchFinishPageOptions, type EtchSignaturePageOptions, type EtchSigner, type FillPdfData, type FillPdfOptions, type FillPdfPayload, type FillPdfVersionNumber, index as GraphQL, type GraphQLResponse, type GraphQLResponseData, type RESTResponse, type ResponseError, type ResponseErrorField, type RuntimeError, type components, type operations, type paths };
|
package/dist/index.d.ts
CHANGED
|
@@ -64,6 +64,31 @@ interface paths {
|
|
|
64
64
|
patch?: never;
|
|
65
65
|
trace?: never;
|
|
66
66
|
};
|
|
67
|
+
'/api/v1/fill/{integrationType}/{castEid}.pdf': {
|
|
68
|
+
parameters: {
|
|
69
|
+
query?: never;
|
|
70
|
+
header?: never;
|
|
71
|
+
path?: never;
|
|
72
|
+
cookie?: never;
|
|
73
|
+
};
|
|
74
|
+
get?: never;
|
|
75
|
+
put?: never;
|
|
76
|
+
/**
|
|
77
|
+
* Fill a PDF template from integration records
|
|
78
|
+
* @description Fills a PDF template (Cast) built from an integration with values read
|
|
79
|
+
* from that integration's records, and returns the same PDF or signed URL
|
|
80
|
+
* as `/api/v1/fill/{castEid}.pdf`. Accepts every option that endpoint does
|
|
81
|
+
* except `data`.
|
|
82
|
+
*
|
|
83
|
+
* Only `hubspot` is supported, and one record per object type.
|
|
84
|
+
*/
|
|
85
|
+
post: operations['fillPdfFromIntegration'];
|
|
86
|
+
delete?: never;
|
|
87
|
+
options?: never;
|
|
88
|
+
head?: never;
|
|
89
|
+
patch?: never;
|
|
90
|
+
trace?: never;
|
|
91
|
+
};
|
|
67
92
|
'/api/v1/generate-pdf': {
|
|
68
93
|
parameters: {
|
|
69
94
|
query?: never;
|
|
@@ -287,6 +312,22 @@ interface components {
|
|
|
287
312
|
*/
|
|
288
313
|
outputFormat: 'pdf' | 'url';
|
|
289
314
|
};
|
|
315
|
+
FillPdfFromIntegrationRequest: {
|
|
316
|
+
/**
|
|
317
|
+
* @description Record IDs keyed by the template's object types, e.g.
|
|
318
|
+
* `{ "contacts": "111", "companies": "999" }`. Each type takes one ID
|
|
319
|
+
* as a numeric string, or a list holding one.
|
|
320
|
+
*/
|
|
321
|
+
records: {
|
|
322
|
+
[key: string]: string | string[];
|
|
323
|
+
};
|
|
324
|
+
title?: string;
|
|
325
|
+
/**
|
|
326
|
+
* @default pdf
|
|
327
|
+
* @enum {string}
|
|
328
|
+
*/
|
|
329
|
+
outputFormat: 'pdf' | 'url';
|
|
330
|
+
};
|
|
290
331
|
/** @description Custom page dimensions and margins for the generated PDF. */
|
|
291
332
|
PageOptions: {
|
|
292
333
|
/** @description Page width with unit (e.g. `8.5in`, `210mm`). */
|
|
@@ -473,7 +514,7 @@ interface operations {
|
|
|
473
514
|
};
|
|
474
515
|
content?: never;
|
|
475
516
|
};
|
|
476
|
-
/** @description
|
|
517
|
+
/** @description Not found. No document group exists with the given EID, the authenticated user lacks access to it, or its zip is missing from storage. */
|
|
477
518
|
404: {
|
|
478
519
|
headers: {
|
|
479
520
|
[name: string]: unknown;
|
|
@@ -552,6 +593,81 @@ interface operations {
|
|
|
552
593
|
};
|
|
553
594
|
};
|
|
554
595
|
};
|
|
596
|
+
fillPdfFromIntegration: {
|
|
597
|
+
parameters: {
|
|
598
|
+
query?: {
|
|
599
|
+
/** @description The version number of the template to use. Defaults to the latest published version. */
|
|
600
|
+
versionNumber?: number;
|
|
601
|
+
};
|
|
602
|
+
header?: never;
|
|
603
|
+
path: {
|
|
604
|
+
/** @description The integration the template was built from. */
|
|
605
|
+
integrationType: 'hubspot';
|
|
606
|
+
/** @description The EID of the PDF template (Cast) to fill. */
|
|
607
|
+
castEid: string;
|
|
608
|
+
};
|
|
609
|
+
cookie?: never;
|
|
610
|
+
};
|
|
611
|
+
requestBody: {
|
|
612
|
+
content: {
|
|
613
|
+
'application/json': components['schemas']['FillPdfFromIntegrationRequest'];
|
|
614
|
+
'multipart/form-data': components['schemas']['FillPdfFromIntegrationRequest'];
|
|
615
|
+
};
|
|
616
|
+
};
|
|
617
|
+
responses: {
|
|
618
|
+
/** @description The filled PDF document. */
|
|
619
|
+
200: {
|
|
620
|
+
headers: {
|
|
621
|
+
[name: string]: unknown;
|
|
622
|
+
};
|
|
623
|
+
content: {
|
|
624
|
+
'application/pdf': string;
|
|
625
|
+
};
|
|
626
|
+
};
|
|
627
|
+
/** @description Validation error, the template wasn't built from this integration, or the integration has no record with a given ID. */
|
|
628
|
+
400: {
|
|
629
|
+
headers: {
|
|
630
|
+
[name: string]: unknown;
|
|
631
|
+
};
|
|
632
|
+
content?: never;
|
|
633
|
+
};
|
|
634
|
+
/** @description Authentication required. */
|
|
635
|
+
401: {
|
|
636
|
+
headers: {
|
|
637
|
+
[name: string]: unknown;
|
|
638
|
+
};
|
|
639
|
+
content?: never;
|
|
640
|
+
};
|
|
641
|
+
/** @description No edit access to the template. */
|
|
642
|
+
403: {
|
|
643
|
+
headers: {
|
|
644
|
+
[name: string]: unknown;
|
|
645
|
+
};
|
|
646
|
+
content?: never;
|
|
647
|
+
};
|
|
648
|
+
/** @description Template not found. */
|
|
649
|
+
404: {
|
|
650
|
+
headers: {
|
|
651
|
+
[name: string]: unknown;
|
|
652
|
+
};
|
|
653
|
+
content?: never;
|
|
654
|
+
};
|
|
655
|
+
/** @description Unsupported media type. */
|
|
656
|
+
415: {
|
|
657
|
+
headers: {
|
|
658
|
+
[name: string]: unknown;
|
|
659
|
+
};
|
|
660
|
+
content?: never;
|
|
661
|
+
};
|
|
662
|
+
/** @description Concurrency limit exceeded. */
|
|
663
|
+
429: {
|
|
664
|
+
headers: {
|
|
665
|
+
[name: string]: unknown;
|
|
666
|
+
};
|
|
667
|
+
content?: never;
|
|
668
|
+
};
|
|
669
|
+
};
|
|
670
|
+
};
|
|
555
671
|
generatePdf: {
|
|
556
672
|
parameters: {
|
|
557
673
|
query?: never;
|
|
@@ -607,56 +723,6 @@ interface operations {
|
|
|
607
723
|
};
|
|
608
724
|
}
|
|
609
725
|
|
|
610
|
-
interface AnvilOptions {
|
|
611
|
-
apiKey?: string;
|
|
612
|
-
accessToken?: string;
|
|
613
|
-
baseURL?: string;
|
|
614
|
-
userAgent?: string;
|
|
615
|
-
requestLimit?: number;
|
|
616
|
-
requestLimitMS?: number;
|
|
617
|
-
}
|
|
618
|
-
interface ResponseErrorField {
|
|
619
|
-
message: string;
|
|
620
|
-
property?: string;
|
|
621
|
-
[key: string]: unknown;
|
|
622
|
-
}
|
|
623
|
-
interface ResponseError {
|
|
624
|
-
message: string;
|
|
625
|
-
status?: number;
|
|
626
|
-
name?: string;
|
|
627
|
-
fields?: ResponseErrorField[];
|
|
628
|
-
[key: string]: unknown;
|
|
629
|
-
}
|
|
630
|
-
interface RuntimeError {
|
|
631
|
-
name: string;
|
|
632
|
-
message: string;
|
|
633
|
-
stack?: string;
|
|
634
|
-
code?: string;
|
|
635
|
-
cause?: unknown;
|
|
636
|
-
}
|
|
637
|
-
interface GraphQLResponseData {
|
|
638
|
-
[key: string]: unknown;
|
|
639
|
-
}
|
|
640
|
-
interface GraphQLResponse<TData = GraphQLResponseData> {
|
|
641
|
-
statusCode: number;
|
|
642
|
-
data?: TData;
|
|
643
|
-
errors?: Array<ResponseError | RuntimeError>;
|
|
644
|
-
}
|
|
645
|
-
interface RESTResponse<T = unknown> {
|
|
646
|
-
statusCode: number;
|
|
647
|
-
data?: T;
|
|
648
|
-
errors?: Array<ResponseError | RuntimeError>;
|
|
649
|
-
}
|
|
650
|
-
interface Abortable {
|
|
651
|
-
signal?: AbortSignal;
|
|
652
|
-
}
|
|
653
|
-
type FillPdfPayload = components['schemas']['FillPdfRequest'];
|
|
654
|
-
type FillPdfData = FillPdfPayload['data'];
|
|
655
|
-
type FillPdfVersionNumber = NonNullable<operations['fillPdf']['parameters']['query']>['versionNumber'];
|
|
656
|
-
interface FillPdfOptions extends Abortable {
|
|
657
|
-
versionNumber?: FillPdfVersionNumber;
|
|
658
|
-
}
|
|
659
|
-
|
|
660
726
|
// Generated by scripts/generate-graphql.js (gql.tada) from schema/anvil-schema.graphql — do not edit by hand.
|
|
661
727
|
// Run `yarn workspace @anvilco/types generate:graphql` to regenerate.
|
|
662
728
|
/* eslint-disable */
|
|
@@ -10915,4 +10981,63 @@ declare namespace index {
|
|
|
10915
10981
|
export type { index_Introspection as Introspection, index_MutationArgs as MutationArgs, index_MutationName as MutationName, index_QueryArgs as QueryArgs, index_QueryName as QueryName, index_Scalars as Scalars, index_Setup as Setup, index_Type as Type, index_TypeName as TypeName };
|
|
10916
10982
|
}
|
|
10917
10983
|
|
|
10918
|
-
|
|
10984
|
+
interface AnvilOptions {
|
|
10985
|
+
apiKey?: string;
|
|
10986
|
+
accessToken?: string;
|
|
10987
|
+
baseURL?: string;
|
|
10988
|
+
userAgent?: string;
|
|
10989
|
+
requestLimit?: number;
|
|
10990
|
+
requestLimitMS?: number;
|
|
10991
|
+
}
|
|
10992
|
+
interface ResponseErrorField {
|
|
10993
|
+
message: string;
|
|
10994
|
+
property?: string;
|
|
10995
|
+
[key: string]: unknown;
|
|
10996
|
+
}
|
|
10997
|
+
interface ResponseError {
|
|
10998
|
+
message: string;
|
|
10999
|
+
status?: number;
|
|
11000
|
+
name?: string;
|
|
11001
|
+
fields?: ResponseErrorField[];
|
|
11002
|
+
[key: string]: unknown;
|
|
11003
|
+
}
|
|
11004
|
+
interface RuntimeError {
|
|
11005
|
+
name: string;
|
|
11006
|
+
message: string;
|
|
11007
|
+
stack?: string;
|
|
11008
|
+
code?: string;
|
|
11009
|
+
cause?: unknown;
|
|
11010
|
+
}
|
|
11011
|
+
interface GraphQLResponseData {
|
|
11012
|
+
[key: string]: unknown;
|
|
11013
|
+
}
|
|
11014
|
+
interface GraphQLResponse<TData = GraphQLResponseData> {
|
|
11015
|
+
statusCode: number;
|
|
11016
|
+
data?: TData;
|
|
11017
|
+
errors?: Array<ResponseError | RuntimeError>;
|
|
11018
|
+
}
|
|
11019
|
+
interface RESTResponse<T = unknown> {
|
|
11020
|
+
statusCode: number;
|
|
11021
|
+
data?: T;
|
|
11022
|
+
errors?: Array<ResponseError | RuntimeError>;
|
|
11023
|
+
}
|
|
11024
|
+
interface Abortable {
|
|
11025
|
+
signal?: AbortSignal;
|
|
11026
|
+
}
|
|
11027
|
+
type FillPdfPayload = components['schemas']['FillPdfRequest'];
|
|
11028
|
+
type FillPdfData = FillPdfPayload['data'];
|
|
11029
|
+
type FillPdfVersionNumber = NonNullable<operations['fillPdf']['parameters']['query']>['versionNumber'];
|
|
11030
|
+
interface FillPdfOptions extends Abortable {
|
|
11031
|
+
versionNumber?: FillPdfVersionNumber;
|
|
11032
|
+
}
|
|
11033
|
+
type EtchSigner = components['schemas']['EtchSigner'];
|
|
11034
|
+
type EtchSignaturePageOptions = components['schemas']['EtchSignaturePageOptions'];
|
|
11035
|
+
type EtchFinishPageOptions = components['schemas']['EtchFinishPageOptions'];
|
|
11036
|
+
/** createEtchPacket's arguments, with `signers`, `signaturePageOptions` and `finishPageOptions` typed. */
|
|
11037
|
+
type CreateEtchPacketArgs = Omit<MutationArgs<'createEtchPacket'>, 'signers' | 'signaturePageOptions' | 'finishPageOptions'> & {
|
|
11038
|
+
signers?: EtchSigner[] | null;
|
|
11039
|
+
signaturePageOptions?: EtchSignaturePageOptions | null;
|
|
11040
|
+
finishPageOptions?: EtchFinishPageOptions | null;
|
|
11041
|
+
};
|
|
11042
|
+
|
|
11043
|
+
export { type Abortable, type AnvilOptions, type CreateEtchPacketArgs, type EtchFinishPageOptions, type EtchSignaturePageOptions, type EtchSigner, type FillPdfData, type FillPdfOptions, type FillPdfPayload, type FillPdfVersionNumber, index as GraphQL, type GraphQLResponse, type GraphQLResponseData, type RESTResponse, type ResponseError, type ResponseErrorField, type RuntimeError, type components, type operations, type paths };
|