@formalingo/sdk 0.1.0 → 0.1.1
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 +214 -0
- package/dist/client/api/index.d.ts +20 -0
- package/dist/client/api/index.d.ts.map +1 -0
- package/dist/client/api/index.js +20 -0
- package/dist/client/api/index.js.map +1 -0
- package/dist/client/api/v1/documents/index.d.ts +163 -0
- package/dist/client/api/v1/documents/index.d.ts.map +1 -0
- package/dist/client/api/v1/documents/index.js +164 -0
- package/dist/client/api/v1/documents/index.js.map +1 -0
- package/dist/client/api/v1/documents/item/fields/index.d.ts +111 -0
- package/dist/client/api/v1/documents/item/fields/index.d.ts.map +1 -0
- package/dist/client/api/v1/documents/item/fields/index.js +115 -0
- package/dist/client/api/v1/documents/item/fields/index.js.map +1 -0
- package/dist/client/api/v1/documents/item/fields/item/index.d.ts +221 -0
- package/dist/client/api/v1/documents/item/fields/item/index.d.ts.map +1 -0
- package/dist/client/api/v1/documents/item/fields/item/index.js +218 -0
- package/dist/client/api/v1/documents/item/fields/item/index.js.map +1 -0
- package/dist/client/api/v1/documents/item/index.d.ts +207 -0
- package/dist/client/api/v1/documents/item/index.d.ts.map +1 -0
- package/dist/client/api/v1/documents/item/index.js +217 -0
- package/dist/client/api/v1/documents/item/index.js.map +1 -0
- package/dist/client/api/v1/documents/item/signerRoles/index.d.ts +111 -0
- package/dist/client/api/v1/documents/item/signerRoles/index.d.ts.map +1 -0
- package/dist/client/api/v1/documents/item/signerRoles/index.js +115 -0
- package/dist/client/api/v1/documents/item/signerRoles/index.js.map +1 -0
- package/dist/client/api/v1/documents/item/signerRoles/item/index.d.ts +56 -0
- package/dist/client/api/v1/documents/item/signerRoles/item/index.d.ts.map +1 -0
- package/dist/client/api/v1/documents/item/signerRoles/item/index.js +59 -0
- package/dist/client/api/v1/documents/item/signerRoles/item/index.js.map +1 -0
- package/dist/client/api/v1/documents/item/submissions/index.d.ts +111 -0
- package/dist/client/api/v1/documents/item/submissions/index.d.ts.map +1 -0
- package/dist/client/api/v1/documents/item/submissions/index.js +116 -0
- package/dist/client/api/v1/documents/item/submissions/index.js.map +1 -0
- package/dist/client/api/v1/documents/item/submissions/item/index.d.ts +65 -0
- package/dist/client/api/v1/documents/item/submissions/item/index.d.ts.map +1 -0
- package/dist/client/api/v1/documents/item/submissions/item/index.js +70 -0
- package/dist/client/api/v1/documents/item/submissions/item/index.js.map +1 -0
- package/dist/client/api/v1/documents/item/submissions/item/signers/index.d.ts +68 -0
- package/dist/client/api/v1/documents/item/submissions/item/signers/index.d.ts.map +1 -0
- package/dist/client/api/v1/documents/item/submissions/item/signers/index.js +70 -0
- package/dist/client/api/v1/documents/item/submissions/item/signers/index.js.map +1 -0
- package/dist/client/api/v1/documents/item/submissions/item/signers/item/index.d.ts +137 -0
- package/dist/client/api/v1/documents/item/submissions/item/signers/item/index.d.ts.map +1 -0
- package/dist/client/api/v1/documents/item/submissions/item/signers/item/index.js +146 -0
- package/dist/client/api/v1/documents/item/submissions/item/signers/item/index.js.map +1 -0
- package/dist/client/api/v1/forms/index.d.ts +231 -0
- package/dist/client/api/v1/forms/index.d.ts.map +1 -0
- package/dist/client/api/v1/forms/index.js +244 -0
- package/dist/client/api/v1/forms/index.js.map +1 -0
- package/dist/client/api/v1/forms/item/index.d.ts +241 -0
- package/dist/client/api/v1/forms/item/index.d.ts.map +1 -0
- package/dist/client/api/v1/forms/item/index.js +261 -0
- package/dist/client/api/v1/forms/item/index.js.map +1 -0
- package/dist/client/api/v1/forms/item/questions/index.d.ts +111 -0
- package/dist/client/api/v1/forms/item/questions/index.d.ts.map +1 -0
- package/dist/client/api/v1/forms/item/questions/index.js +115 -0
- package/dist/client/api/v1/forms/item/questions/index.js.map +1 -0
- package/dist/client/api/v1/forms/item/questions/item/index.d.ts +196 -0
- package/dist/client/api/v1/forms/item/questions/item/index.d.ts.map +1 -0
- package/dist/client/api/v1/forms/item/questions/item/index.js +193 -0
- package/dist/client/api/v1/forms/item/questions/item/index.js.map +1 -0
- package/dist/client/api/v1/forms/item/recipients/index.d.ts +111 -0
- package/dist/client/api/v1/forms/item/recipients/index.d.ts.map +1 -0
- package/dist/client/api/v1/forms/item/recipients/index.js +115 -0
- package/dist/client/api/v1/forms/item/recipients/index.js.map +1 -0
- package/dist/client/api/v1/forms/item/recipients/item/index.d.ts +100 -0
- package/dist/client/api/v1/forms/item/recipients/item/index.d.ts.map +1 -0
- package/dist/client/api/v1/forms/item/recipients/item/index.js +106 -0
- package/dist/client/api/v1/forms/item/recipients/item/index.js.map +1 -0
- package/dist/client/api/v1/forms/item/sections/index.d.ts +111 -0
- package/dist/client/api/v1/forms/item/sections/index.d.ts.map +1 -0
- package/dist/client/api/v1/forms/item/sections/index.js +115 -0
- package/dist/client/api/v1/forms/item/sections/index.js.map +1 -0
- package/dist/client/api/v1/forms/item/sections/item/index.d.ts +100 -0
- package/dist/client/api/v1/forms/item/sections/item/index.d.ts.map +1 -0
- package/dist/client/api/v1/forms/item/sections/item/index.js +106 -0
- package/dist/client/api/v1/forms/item/sections/item/index.js.map +1 -0
- package/dist/client/api/v1/index.d.ts +25 -0
- package/dist/client/api/v1/index.d.ts.map +1 -0
- package/dist/client/api/v1/index.js +27 -0
- package/dist/client/api/v1/index.js.map +1 -0
- package/dist/client/formalingoClient.d.ts +20 -7
- package/dist/client/formalingoClient.d.ts.map +1 -1
- package/dist/client/formalingoClient.js +56 -2
- package/dist/client/formalingoClient.js.map +1 -1
- package/dist/client/models/index.d.ts +1376 -0
- package/dist/client/models/index.d.ts.map +1 -0
- package/dist/client/models/index.js +1333 -0
- package/dist/client/models/index.js.map +1 -0
- package/dist/index.d.ts +8 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
# @formalingo/sdk
|
|
2
|
+
|
|
3
|
+
Official TypeScript SDK for the [Formalingo](https://formalingo.com) API — build and manage AI-powered forms and document signing programmatically.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @formalingo/sdk
|
|
9
|
+
# or
|
|
10
|
+
yarn add @formalingo/sdk
|
|
11
|
+
# or
|
|
12
|
+
pnpm add @formalingo/sdk
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Quick Start
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { createClient } from "@formalingo/sdk"
|
|
19
|
+
|
|
20
|
+
const client = createClient("af_live_YOUR_API_KEY")
|
|
21
|
+
|
|
22
|
+
// List all forms
|
|
23
|
+
const forms = await client.forms.get()
|
|
24
|
+
|
|
25
|
+
// Create a form
|
|
26
|
+
const form = await client.forms.post({
|
|
27
|
+
body: {
|
|
28
|
+
title: "Customer Feedback",
|
|
29
|
+
description: "Help us improve our service",
|
|
30
|
+
},
|
|
31
|
+
})
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Setup
|
|
35
|
+
|
|
36
|
+
### Get Your API Key
|
|
37
|
+
|
|
38
|
+
1. Log in to [Formalingo](https://formalingo.com)
|
|
39
|
+
2. Go to **Settings > API Keys**
|
|
40
|
+
3. Create a new key
|
|
41
|
+
|
|
42
|
+
### Initialize the Client
|
|
43
|
+
|
|
44
|
+
```typescript
|
|
45
|
+
import { createClient } from "@formalingo/sdk"
|
|
46
|
+
|
|
47
|
+
// Production (default)
|
|
48
|
+
const client = createClient("af_live_YOUR_API_KEY")
|
|
49
|
+
|
|
50
|
+
// Custom base URL (e.g., local development)
|
|
51
|
+
const client = createClient("af_live_YOUR_API_KEY", "http://localhost:3000")
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Usage Examples
|
|
55
|
+
|
|
56
|
+
### Forms
|
|
57
|
+
|
|
58
|
+
```typescript
|
|
59
|
+
// List forms
|
|
60
|
+
const forms = await client.forms.get()
|
|
61
|
+
|
|
62
|
+
// Get a specific form
|
|
63
|
+
const form = await client.forms.byFormId("form-id").get()
|
|
64
|
+
|
|
65
|
+
// Update a form
|
|
66
|
+
await client.forms.byFormId("form-id").put({
|
|
67
|
+
body: { title: "Updated Title", status: "published" },
|
|
68
|
+
})
|
|
69
|
+
|
|
70
|
+
// Delete a form
|
|
71
|
+
await client.forms.byFormId("form-id").delete()
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### Sections & Questions
|
|
75
|
+
|
|
76
|
+
```typescript
|
|
77
|
+
const formApi = client.forms.byFormId("form-id")
|
|
78
|
+
|
|
79
|
+
// Create a section
|
|
80
|
+
const section = await formApi.sections.post({
|
|
81
|
+
body: { title: "Personal Info", order: 0 },
|
|
82
|
+
})
|
|
83
|
+
|
|
84
|
+
// Add a question
|
|
85
|
+
const question = await formApi.questions.post({
|
|
86
|
+
body: {
|
|
87
|
+
sectionId: section.id,
|
|
88
|
+
type: "short_text",
|
|
89
|
+
title: "What is your name?",
|
|
90
|
+
required: true,
|
|
91
|
+
order: 0,
|
|
92
|
+
},
|
|
93
|
+
})
|
|
94
|
+
|
|
95
|
+
// Multiple choice question
|
|
96
|
+
await formApi.questions.post({
|
|
97
|
+
body: {
|
|
98
|
+
sectionId: section.id,
|
|
99
|
+
type: "mcq",
|
|
100
|
+
title: "How did you hear about us?",
|
|
101
|
+
required: false,
|
|
102
|
+
order: 1,
|
|
103
|
+
options: {
|
|
104
|
+
choices: ["Search engine", "Social media", "Friend", "Other"],
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
})
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
### Recipients
|
|
111
|
+
|
|
112
|
+
```typescript
|
|
113
|
+
// Create a recipient (generates a shareable link)
|
|
114
|
+
const recipient = await client.forms.byFormId("form-id").recipients.post({
|
|
115
|
+
body: {
|
|
116
|
+
label: "John Doe",
|
|
117
|
+
prefill: { name: "John Doe", email: "john@example.com" },
|
|
118
|
+
},
|
|
119
|
+
})
|
|
120
|
+
|
|
121
|
+
// The shareable form URL
|
|
122
|
+
const formUrl = `https://formalingo.com/f/${recipient.token}`
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
### Branding
|
|
126
|
+
|
|
127
|
+
```typescript
|
|
128
|
+
await client.forms.byFormId("form-id").branding.put({
|
|
129
|
+
body: {
|
|
130
|
+
primaryColor: "#4F46E5",
|
|
131
|
+
backgroundColor: "#F9FAFB",
|
|
132
|
+
welcomeHeading: "Welcome!",
|
|
133
|
+
welcomeSubtitle: "This will only take a minute.",
|
|
134
|
+
thankYouHeading: "Thank you!",
|
|
135
|
+
thankYouMessage: "Your response has been recorded.",
|
|
136
|
+
},
|
|
137
|
+
})
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
### Documents
|
|
141
|
+
|
|
142
|
+
```typescript
|
|
143
|
+
// List documents
|
|
144
|
+
const documents = await client.documents.get()
|
|
145
|
+
|
|
146
|
+
// Create a document with signers
|
|
147
|
+
const doc = await client.documents.post({
|
|
148
|
+
body: {
|
|
149
|
+
title: "NDA Agreement",
|
|
150
|
+
content: "Full document text...",
|
|
151
|
+
signers: [
|
|
152
|
+
{ name: "Alice", email: "alice@example.com" },
|
|
153
|
+
{ name: "Bob", email: "bob@example.com" },
|
|
154
|
+
],
|
|
155
|
+
},
|
|
156
|
+
})
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
### Error Handling
|
|
160
|
+
|
|
161
|
+
```typescript
|
|
162
|
+
try {
|
|
163
|
+
const form = await client.forms.byFormId("nonexistent").get()
|
|
164
|
+
} catch (error) {
|
|
165
|
+
if (error instanceof Error) {
|
|
166
|
+
console.error("API error:", error.message)
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
## Advanced Usage
|
|
172
|
+
|
|
173
|
+
For full control over the underlying Kiota client:
|
|
174
|
+
|
|
175
|
+
```typescript
|
|
176
|
+
import { createFormalingoClient } from "@formalingo/sdk"
|
|
177
|
+
import {
|
|
178
|
+
ApiKeyAuthenticationProvider,
|
|
179
|
+
ApiKeyLocation,
|
|
180
|
+
} from "@microsoft/kiota-abstractions"
|
|
181
|
+
import { FetchRequestAdapter } from "@microsoft/kiota-http-fetchlibrary"
|
|
182
|
+
|
|
183
|
+
const auth = new ApiKeyAuthenticationProvider(
|
|
184
|
+
"Bearer af_live_YOUR_API_KEY",
|
|
185
|
+
"Authorization",
|
|
186
|
+
ApiKeyLocation.Header
|
|
187
|
+
)
|
|
188
|
+
const adapter = new FetchRequestAdapter(auth)
|
|
189
|
+
adapter.baseUrl = "https://formalingo.com"
|
|
190
|
+
|
|
191
|
+
const rawClient = createFormalingoClient(adapter)
|
|
192
|
+
const v1 = rawClient.api.v1
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
## Requirements
|
|
196
|
+
|
|
197
|
+
- Node.js 20+
|
|
198
|
+
- ESM (this package uses `"type": "module"`)
|
|
199
|
+
|
|
200
|
+
## Other SDKs
|
|
201
|
+
|
|
202
|
+
Formalingo also provides SDKs for:
|
|
203
|
+
|
|
204
|
+
- **Python** — [`formalingo-sdk`](https://github.com/Formalingo/sdk-python)
|
|
205
|
+
- **.NET** — [`Formalingo.Sdk`](https://www.nuget.org/packages/Formalingo.Sdk)
|
|
206
|
+
- **Go** — [`github.com/Formalingo/sdk-go`](https://github.com/Formalingo/sdk-go)
|
|
207
|
+
|
|
208
|
+
## Documentation
|
|
209
|
+
|
|
210
|
+
Full API documentation and guides: [formalingo.com/docs](https://formalingo.com/docs)
|
|
211
|
+
|
|
212
|
+
## License
|
|
213
|
+
|
|
214
|
+
MIT
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type V1RequestBuilder } from './v1/index.js';
|
|
2
|
+
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata } from '@microsoft/kiota-abstractions';
|
|
3
|
+
/**
|
|
4
|
+
* Builds and executes requests for operations under /api
|
|
5
|
+
*/
|
|
6
|
+
export interface ApiRequestBuilder extends BaseRequestBuilder<ApiRequestBuilder> {
|
|
7
|
+
/**
|
|
8
|
+
* The v1 property
|
|
9
|
+
*/
|
|
10
|
+
get v1(): V1RequestBuilder;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Uri template for the request builder.
|
|
14
|
+
*/
|
|
15
|
+
export declare const ApiRequestBuilderUriTemplate = "{+baseurl}/api";
|
|
16
|
+
/**
|
|
17
|
+
* Metadata for all the navigation properties in the request builder.
|
|
18
|
+
*/
|
|
19
|
+
export declare const ApiRequestBuilderNavigationMetadata: Record<Exclude<keyof ApiRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/api/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,gBAAgB,EAAsC,MAAM,eAAe,CAAC;AAE1F,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,kCAAkC,EAAE,KAAK,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAE1I;;GAEG;AACH,MAAM,WAAW,iBAAkB,SAAQ,kBAAkB,CAAC,iBAAiB,CAAC;IAC5E;;OAEG;IACH,IAAI,EAAE,IAAI,gBAAgB,CAAC;CAC9B;AACD;;GAEG;AACH,eAAO,MAAM,4BAA4B,mBAAmB,CAAC;AAC7D;;GAEG;AACH,eAAO,MAAM,mCAAmC,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,iBAAiB,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CAIhJ,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
// Generated by Microsoft Kiota
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
import { V1RequestBuilderNavigationMetadata } from './v1/index.js';
|
|
6
|
+
/**
|
|
7
|
+
* Uri template for the request builder.
|
|
8
|
+
*/
|
|
9
|
+
export const ApiRequestBuilderUriTemplate = "{+baseurl}/api";
|
|
10
|
+
/**
|
|
11
|
+
* Metadata for all the navigation properties in the request builder.
|
|
12
|
+
*/
|
|
13
|
+
export const ApiRequestBuilderNavigationMetadata = {
|
|
14
|
+
v1: {
|
|
15
|
+
navigationMetadata: V1RequestBuilderNavigationMetadata,
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
/* tslint:enable */
|
|
19
|
+
/* eslint-enable */
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/client/api/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAAa;AACb,OAAO,EAAyB,kCAAkC,EAAE,MAAM,eAAe,CAAC;AAa1F;;GAEG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,gBAAgB,CAAC;AAC7D;;GAEG;AACH,MAAM,CAAC,MAAM,mCAAmC,GAAqG;IACjJ,EAAE,EAAE;QACA,kBAAkB,EAAE,kCAAkC;KACzD;CACJ,CAAC;AACF,mBAAmB;AACnB,mBAAmB"}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { type Document } from '../../../models/index.js';
|
|
2
|
+
import { type DocumentsItemRequestBuilder } from './item/index.js';
|
|
3
|
+
import { MultipartBody, type AdditionalDataHolder, type BaseRequestBuilder, type Guid, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type Parsable, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter } from '@microsoft/kiota-abstractions';
|
|
4
|
+
/**
|
|
5
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
6
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
7
|
+
* @returns {DocumentsGetResponse_meta}
|
|
8
|
+
*/
|
|
9
|
+
export declare function createDocumentsGetResponse_metaFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
10
|
+
/**
|
|
11
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
12
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
13
|
+
* @returns {DocumentsGetResponse}
|
|
14
|
+
*/
|
|
15
|
+
export declare function createDocumentsGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
16
|
+
/**
|
|
17
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
18
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
19
|
+
* @returns {DocumentsPostResponse}
|
|
20
|
+
*/
|
|
21
|
+
export declare function createDocumentsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
|
|
22
|
+
/**
|
|
23
|
+
* The deserialization information for the current model
|
|
24
|
+
* @param DocumentsGetResponse The instance to deserialize into.
|
|
25
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
26
|
+
*/
|
|
27
|
+
export declare function deserializeIntoDocumentsGetResponse(documentsGetResponse?: Partial<DocumentsGetResponse> | undefined): Record<string, (node: ParseNode) => void>;
|
|
28
|
+
/**
|
|
29
|
+
* The deserialization information for the current model
|
|
30
|
+
* @param DocumentsGetResponse_meta The instance to deserialize into.
|
|
31
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
32
|
+
*/
|
|
33
|
+
export declare function deserializeIntoDocumentsGetResponse_meta(documentsGetResponse_meta?: Partial<DocumentsGetResponse_meta> | undefined): Record<string, (node: ParseNode) => void>;
|
|
34
|
+
/**
|
|
35
|
+
* The deserialization information for the current model
|
|
36
|
+
* @param DocumentsPostResponse The instance to deserialize into.
|
|
37
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
38
|
+
*/
|
|
39
|
+
export declare function deserializeIntoDocumentsPostResponse(documentsPostResponse?: Partial<DocumentsPostResponse> | undefined): Record<string, (node: ParseNode) => void>;
|
|
40
|
+
export interface DocumentsGetResponse extends AdditionalDataHolder, Parsable {
|
|
41
|
+
/**
|
|
42
|
+
* The data property
|
|
43
|
+
*/
|
|
44
|
+
data?: Document[] | null;
|
|
45
|
+
/**
|
|
46
|
+
* The meta property
|
|
47
|
+
*/
|
|
48
|
+
meta?: DocumentsGetResponse_meta | null;
|
|
49
|
+
/**
|
|
50
|
+
* The success property
|
|
51
|
+
*/
|
|
52
|
+
success?: boolean | null;
|
|
53
|
+
}
|
|
54
|
+
export interface DocumentsGetResponse_meta extends AdditionalDataHolder, Parsable {
|
|
55
|
+
/**
|
|
56
|
+
* The limit property
|
|
57
|
+
*/
|
|
58
|
+
limit?: number | null;
|
|
59
|
+
/**
|
|
60
|
+
* The page property
|
|
61
|
+
*/
|
|
62
|
+
page?: number | null;
|
|
63
|
+
/**
|
|
64
|
+
* The total property
|
|
65
|
+
*/
|
|
66
|
+
total?: number | null;
|
|
67
|
+
}
|
|
68
|
+
export interface DocumentsPostResponse extends AdditionalDataHolder, Parsable {
|
|
69
|
+
/**
|
|
70
|
+
* The data property
|
|
71
|
+
*/
|
|
72
|
+
data?: Document | null;
|
|
73
|
+
/**
|
|
74
|
+
* The success property
|
|
75
|
+
*/
|
|
76
|
+
success?: boolean | null;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Builds and executes requests for operations under /api/v1/documents
|
|
80
|
+
*/
|
|
81
|
+
export interface DocumentsRequestBuilder extends BaseRequestBuilder<DocumentsRequestBuilder> {
|
|
82
|
+
/**
|
|
83
|
+
* Gets an item from the formalingo.api.v1.documents.item collection
|
|
84
|
+
* @param id Unique identifier of the item
|
|
85
|
+
* @returns {DocumentsItemRequestBuilder}
|
|
86
|
+
*/
|
|
87
|
+
byId(id: Guid): DocumentsItemRequestBuilder;
|
|
88
|
+
/**
|
|
89
|
+
* List documents
|
|
90
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
91
|
+
* @returns {Promise<DocumentsGetResponse>}
|
|
92
|
+
*/
|
|
93
|
+
get(requestConfiguration?: RequestConfiguration<DocumentsRequestBuilderGetQueryParameters> | undefined): Promise<DocumentsGetResponse | undefined>;
|
|
94
|
+
/**
|
|
95
|
+
* Upload a PDF or DOCX file using multipart/form-data. Max file size: 50 MB.
|
|
96
|
+
* @param body The request body
|
|
97
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
98
|
+
* @returns {Promise<DocumentsPostResponse>}
|
|
99
|
+
*/
|
|
100
|
+
post(body: MultipartBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<DocumentsPostResponse | undefined>;
|
|
101
|
+
/**
|
|
102
|
+
* List documents
|
|
103
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
104
|
+
* @returns {RequestInformation}
|
|
105
|
+
*/
|
|
106
|
+
toGetRequestInformation(requestConfiguration?: RequestConfiguration<DocumentsRequestBuilderGetQueryParameters> | undefined): RequestInformation;
|
|
107
|
+
/**
|
|
108
|
+
* Upload a PDF or DOCX file using multipart/form-data. Max file size: 50 MB.
|
|
109
|
+
* @param body The request body
|
|
110
|
+
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
|
111
|
+
* @returns {RequestInformation}
|
|
112
|
+
*/
|
|
113
|
+
toPostRequestInformation(body: MultipartBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* List documents
|
|
117
|
+
*/
|
|
118
|
+
export interface DocumentsRequestBuilderGetQueryParameters {
|
|
119
|
+
limit?: number;
|
|
120
|
+
page?: number;
|
|
121
|
+
status?: GetStatusQueryParameterType;
|
|
122
|
+
}
|
|
123
|
+
export type GetStatusQueryParameterType = (typeof GetStatusQueryParameterTypeObject)[keyof typeof GetStatusQueryParameterTypeObject];
|
|
124
|
+
/**
|
|
125
|
+
* Serializes information the current object
|
|
126
|
+
* @param DocumentsGetResponse The instance to serialize from.
|
|
127
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
128
|
+
* @param writer Serialization writer to use to serialize this model
|
|
129
|
+
*/
|
|
130
|
+
export declare function serializeDocumentsGetResponse(writer: SerializationWriter, documentsGetResponse?: Partial<DocumentsGetResponse> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
131
|
+
/**
|
|
132
|
+
* Serializes information the current object
|
|
133
|
+
* @param DocumentsGetResponse_meta The instance to serialize from.
|
|
134
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
135
|
+
* @param writer Serialization writer to use to serialize this model
|
|
136
|
+
*/
|
|
137
|
+
export declare function serializeDocumentsGetResponse_meta(writer: SerializationWriter, documentsGetResponse_meta?: Partial<DocumentsGetResponse_meta> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
138
|
+
/**
|
|
139
|
+
* Serializes information the current object
|
|
140
|
+
* @param DocumentsPostResponse The instance to serialize from.
|
|
141
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
142
|
+
* @param writer Serialization writer to use to serialize this model
|
|
143
|
+
*/
|
|
144
|
+
export declare function serializeDocumentsPostResponse(writer: SerializationWriter, documentsPostResponse?: Partial<DocumentsPostResponse> | undefined | null, isSerializingDerivedType?: boolean): void;
|
|
145
|
+
/**
|
|
146
|
+
* Uri template for the request builder.
|
|
147
|
+
*/
|
|
148
|
+
export declare const DocumentsRequestBuilderUriTemplate = "{+baseurl}/api/v1/documents{?limit*,page*,status*}";
|
|
149
|
+
/**
|
|
150
|
+
* Metadata for all the navigation properties in the request builder.
|
|
151
|
+
*/
|
|
152
|
+
export declare const DocumentsRequestBuilderNavigationMetadata: Record<Exclude<keyof DocumentsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
|
|
153
|
+
/**
|
|
154
|
+
* Metadata for all the requests in the request builder.
|
|
155
|
+
*/
|
|
156
|
+
export declare const DocumentsRequestBuilderRequestsMetadata: RequestsMetadata;
|
|
157
|
+
export declare const GetStatusQueryParameterTypeObject: {
|
|
158
|
+
readonly Draft: "draft";
|
|
159
|
+
readonly Sent: "sent";
|
|
160
|
+
readonly Completed: "completed";
|
|
161
|
+
readonly Expired: "expired";
|
|
162
|
+
};
|
|
163
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/client/api/v1/documents/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAA2D,KAAK,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAElH,OAAO,EAA8F,KAAK,2BAA2B,EAAE,MAAM,iBAAiB,CAAC;AAE/J,OAAO,EAAE,aAAa,EAA0B,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,IAAI,EAAE,KAAK,kCAAkC,EAAE,KAAK,kBAAkB,EAAE,KAAK,QAAQ,EAAwB,KAAK,SAAS,EAAE,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,KAAK,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAEjX;;;;GAIG;AAEH,wBAAgB,qDAAqD,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,GAAI,CAAC,CAAC,QAAQ,CAAC,EAAE,QAAQ,KAAK,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC,CAAC,CAE7K;AACD;;;;GAIG;AAEH,wBAAgB,gDAAgD,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,GAAI,CAAC,CAAC,QAAQ,CAAC,EAAE,QAAQ,KAAK,MAAM,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC,CAAC,CAExK;AACD;;;;GAIG;AAEH,wBAAgB,iDAAiD,CAAC,SAAS,EAAE,SAAS,GAAG,S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,OAAe,GAAI,IAAI,CAMxM;AACD;;;;;GAKG;AAEH,wBAAgB,kCAAkC,CAAC,MAAM,EAAE,mBAAmB,EAAE,yBAAyB,GAAE,OAAO,CAAC,yBAAyB,CAAC,GAAG,SAAS,GAAG,IAAS,EAAE,wBAAwB,GAAE,OAAe,GAAI,IAAI,CAMvN;AACD;;;;;GAKG;AAEH,wBAAgB,8BAA8B,CAAC,MAAM,EAAE,mBAAmB,EAAE,qBAAqB,GAAE,OAAO,CAAC,qBAAqB,CAAC,GAAG,SAAS,GAAG,IAAS,EAAE,wBAAwB,GAAE,OAAe,GAAI,IAAI,CAK3M;AACD;;GAEG;AACH,eAAO,MAAM,kCAAkC,uDAAuD,CAAC;AACvG;;GAEG;AACH,eAAO,MAAM,yCAAyC,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,uBAAuB,EAAE,kCAAkC,CAAC,EAAE,kBAAkB,CAM5J,CAAC;AACF;;GAEG;AACH,eAAO,MAAM,uCAAuC,EAAE,gBAgBrD,CAAC;AACF,eAAO,MAAM,iCAAiC;;;;;CAKpC,CAAC"}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
// Generated by Microsoft Kiota
|
|
4
|
+
// @ts-ignore
|
|
5
|
+
import { createDocumentFromDiscriminatorValue, serializeDocument } from '../../../models/index.js';
|
|
6
|
+
// @ts-ignore
|
|
7
|
+
import { DocumentsItemRequestBuilderNavigationMetadata, DocumentsItemRequestBuilderRequestsMetadata } from './item/index.js';
|
|
8
|
+
// @ts-ignore
|
|
9
|
+
import { serializeMultipartBody } from '@microsoft/kiota-abstractions';
|
|
10
|
+
/**
|
|
11
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
12
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
13
|
+
* @returns {DocumentsGetResponse_meta}
|
|
14
|
+
*/
|
|
15
|
+
// @ts-ignore
|
|
16
|
+
export function createDocumentsGetResponse_metaFromDiscriminatorValue(parseNode) {
|
|
17
|
+
return deserializeIntoDocumentsGetResponse_meta;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
21
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
22
|
+
* @returns {DocumentsGetResponse}
|
|
23
|
+
*/
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
export function createDocumentsGetResponseFromDiscriminatorValue(parseNode) {
|
|
26
|
+
return deserializeIntoDocumentsGetResponse;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Creates a new instance of the appropriate class based on discriminator value
|
|
30
|
+
* @param parseNode The parse node to use to read the discriminator value and create the object
|
|
31
|
+
* @returns {DocumentsPostResponse}
|
|
32
|
+
*/
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
export function createDocumentsPostResponseFromDiscriminatorValue(parseNode) {
|
|
35
|
+
return deserializeIntoDocumentsPostResponse;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* The deserialization information for the current model
|
|
39
|
+
* @param DocumentsGetResponse The instance to deserialize into.
|
|
40
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
41
|
+
*/
|
|
42
|
+
// @ts-ignore
|
|
43
|
+
export function deserializeIntoDocumentsGetResponse(documentsGetResponse = {}) {
|
|
44
|
+
return {
|
|
45
|
+
"data": n => { documentsGetResponse.data = n.getCollectionOfObjectValues(createDocumentFromDiscriminatorValue); },
|
|
46
|
+
"meta": n => { documentsGetResponse.meta = n.getObjectValue(createDocumentsGetResponse_metaFromDiscriminatorValue); },
|
|
47
|
+
"success": n => { documentsGetResponse.success = n.getBooleanValue(); },
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* The deserialization information for the current model
|
|
52
|
+
* @param DocumentsGetResponse_meta The instance to deserialize into.
|
|
53
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
54
|
+
*/
|
|
55
|
+
// @ts-ignore
|
|
56
|
+
export function deserializeIntoDocumentsGetResponse_meta(documentsGetResponse_meta = {}) {
|
|
57
|
+
return {
|
|
58
|
+
"limit": n => { documentsGetResponse_meta.limit = n.getNumberValue(); },
|
|
59
|
+
"page": n => { documentsGetResponse_meta.page = n.getNumberValue(); },
|
|
60
|
+
"total": n => { documentsGetResponse_meta.total = n.getNumberValue(); },
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* The deserialization information for the current model
|
|
65
|
+
* @param DocumentsPostResponse The instance to deserialize into.
|
|
66
|
+
* @returns {Record<string, (node: ParseNode) => void>}
|
|
67
|
+
*/
|
|
68
|
+
// @ts-ignore
|
|
69
|
+
export function deserializeIntoDocumentsPostResponse(documentsPostResponse = {}) {
|
|
70
|
+
return {
|
|
71
|
+
"data": n => { documentsPostResponse.data = n.getObjectValue(createDocumentFromDiscriminatorValue); },
|
|
72
|
+
"success": n => { documentsPostResponse.success = n.getBooleanValue(); },
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Serializes information the current object
|
|
77
|
+
* @param DocumentsGetResponse The instance to serialize from.
|
|
78
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
79
|
+
* @param writer Serialization writer to use to serialize this model
|
|
80
|
+
*/
|
|
81
|
+
// @ts-ignore
|
|
82
|
+
export function serializeDocumentsGetResponse(writer, documentsGetResponse = {}, isSerializingDerivedType = false) {
|
|
83
|
+
if (!documentsGetResponse || isSerializingDerivedType) {
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
writer.writeCollectionOfObjectValues("data", documentsGetResponse.data, serializeDocument);
|
|
87
|
+
writer.writeObjectValue("meta", documentsGetResponse.meta, serializeDocumentsGetResponse_meta);
|
|
88
|
+
writer.writeBooleanValue("success", documentsGetResponse.success);
|
|
89
|
+
writer.writeAdditionalData(documentsGetResponse.additionalData);
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Serializes information the current object
|
|
93
|
+
* @param DocumentsGetResponse_meta The instance to serialize from.
|
|
94
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
95
|
+
* @param writer Serialization writer to use to serialize this model
|
|
96
|
+
*/
|
|
97
|
+
// @ts-ignore
|
|
98
|
+
export function serializeDocumentsGetResponse_meta(writer, documentsGetResponse_meta = {}, isSerializingDerivedType = false) {
|
|
99
|
+
if (!documentsGetResponse_meta || isSerializingDerivedType) {
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
writer.writeNumberValue("limit", documentsGetResponse_meta.limit);
|
|
103
|
+
writer.writeNumberValue("page", documentsGetResponse_meta.page);
|
|
104
|
+
writer.writeNumberValue("total", documentsGetResponse_meta.total);
|
|
105
|
+
writer.writeAdditionalData(documentsGetResponse_meta.additionalData);
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Serializes information the current object
|
|
109
|
+
* @param DocumentsPostResponse The instance to serialize from.
|
|
110
|
+
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
|
|
111
|
+
* @param writer Serialization writer to use to serialize this model
|
|
112
|
+
*/
|
|
113
|
+
// @ts-ignore
|
|
114
|
+
export function serializeDocumentsPostResponse(writer, documentsPostResponse = {}, isSerializingDerivedType = false) {
|
|
115
|
+
if (!documentsPostResponse || isSerializingDerivedType) {
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
writer.writeObjectValue("data", documentsPostResponse.data, serializeDocument);
|
|
119
|
+
writer.writeBooleanValue("success", documentsPostResponse.success);
|
|
120
|
+
writer.writeAdditionalData(documentsPostResponse.additionalData);
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Uri template for the request builder.
|
|
124
|
+
*/
|
|
125
|
+
export const DocumentsRequestBuilderUriTemplate = "{+baseurl}/api/v1/documents{?limit*,page*,status*}";
|
|
126
|
+
/**
|
|
127
|
+
* Metadata for all the navigation properties in the request builder.
|
|
128
|
+
*/
|
|
129
|
+
export const DocumentsRequestBuilderNavigationMetadata = {
|
|
130
|
+
byId: {
|
|
131
|
+
requestsMetadata: DocumentsItemRequestBuilderRequestsMetadata,
|
|
132
|
+
navigationMetadata: DocumentsItemRequestBuilderNavigationMetadata,
|
|
133
|
+
pathParametersMappings: ["id"],
|
|
134
|
+
},
|
|
135
|
+
};
|
|
136
|
+
/**
|
|
137
|
+
* Metadata for all the requests in the request builder.
|
|
138
|
+
*/
|
|
139
|
+
export const DocumentsRequestBuilderRequestsMetadata = {
|
|
140
|
+
get: {
|
|
141
|
+
uriTemplate: DocumentsRequestBuilderUriTemplate,
|
|
142
|
+
responseBodyContentType: "application/json",
|
|
143
|
+
adapterMethodName: "send",
|
|
144
|
+
responseBodyFactory: createDocumentsGetResponseFromDiscriminatorValue,
|
|
145
|
+
},
|
|
146
|
+
post: {
|
|
147
|
+
uriTemplate: DocumentsRequestBuilderUriTemplate,
|
|
148
|
+
responseBodyContentType: "application/json",
|
|
149
|
+
adapterMethodName: "send",
|
|
150
|
+
responseBodyFactory: createDocumentsPostResponseFromDiscriminatorValue,
|
|
151
|
+
requestBodyContentType: "multipart/form-data",
|
|
152
|
+
requestBodySerializer: serializeMultipartBody,
|
|
153
|
+
requestInformationContentSetMethod: "setContentFromParsable",
|
|
154
|
+
},
|
|
155
|
+
};
|
|
156
|
+
export const GetStatusQueryParameterTypeObject = {
|
|
157
|
+
Draft: "draft",
|
|
158
|
+
Sent: "sent",
|
|
159
|
+
Completed: "completed",
|
|
160
|
+
Expired: "expired",
|
|
161
|
+
};
|
|
162
|
+
/* tslint:enable */
|
|
163
|
+
/* eslint-enable */
|
|
164
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/client/api/v1/documents/index.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,+BAA+B;AAC/B,aAA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