hostinger-mail-api-sdk 1.0.2

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.
Files changed (77) hide show
  1. package/.github/workflows/build-release.yaml +91 -0
  2. package/CODEOWNERS +1 -0
  3. package/README.md +9 -0
  4. package/api.ts +3760 -0
  5. package/base.ts +83 -0
  6. package/common.ts +111 -0
  7. package/configuration.ts +72 -0
  8. package/dist/api.d.ts +2426 -0
  9. package/dist/api.js +2484 -0
  10. package/dist/base.d.ts +63 -0
  11. package/dist/base.js +62 -0
  12. package/dist/common.d.ts +47 -0
  13. package/dist/common.js +118 -0
  14. package/dist/configuration.d.ts +51 -0
  15. package/dist/configuration.js +37 -0
  16. package/dist/esm/api.d.ts +2426 -0
  17. package/dist/esm/api.js +2457 -0
  18. package/dist/esm/base.d.ts +63 -0
  19. package/dist/esm/base.js +57 -0
  20. package/dist/esm/common.d.ts +47 -0
  21. package/dist/esm/common.js +109 -0
  22. package/dist/esm/configuration.d.ts +51 -0
  23. package/dist/esm/configuration.js +33 -0
  24. package/dist/esm/index.d.ts +10 -0
  25. package/dist/esm/index.js +12 -0
  26. package/dist/index.d.ts +10 -0
  27. package/dist/index.js +28 -0
  28. package/docs/AccountApi.md +55 -0
  29. package/docs/Error.md +25 -0
  30. package/docs/FoldersApi.md +259 -0
  31. package/docs/MessagesApi.md +860 -0
  32. package/docs/Pagination.md +27 -0
  33. package/docs/QuotaApi.md +63 -0
  34. package/docs/SendApi.md +68 -0
  35. package/docs/V1FolderMessagesCollection.md +23 -0
  36. package/docs/V1FolderMessagesDeleteBulkRequest.md +21 -0
  37. package/docs/V1FolderMessagesFlagsBulkRequest.md +25 -0
  38. package/docs/V1FolderMessagesFlagsRequest.md +23 -0
  39. package/docs/V1FolderMessagesMessage.md +47 -0
  40. package/docs/V1FolderMessagesMessageAddress.md +23 -0
  41. package/docs/V1FolderMessagesMessageAttachment.md +31 -0
  42. package/docs/V1FolderMessagesMessageText.md +23 -0
  43. package/docs/V1FolderMessagesMessageTextResource.md +21 -0
  44. package/docs/V1FolderMessagesMoveBulkRequest.md +23 -0
  45. package/docs/V1FolderMessagesMoveRequest.md +21 -0
  46. package/docs/V1FolderMessagesResource.md +21 -0
  47. package/docs/V1FolderMessagesSearchRequest.md +45 -0
  48. package/docs/V1FolderMessagesUpdateFlagsResult.md +21 -0
  49. package/docs/V1FolderMessagesUpdateFlagsResultData.md +22 -0
  50. package/docs/V1FolderMessagesUpdateFlagsResultDataFailedInner.md +22 -0
  51. package/docs/V1FoldersCollection.md +23 -0
  52. package/docs/V1FoldersCreateRequest.md +21 -0
  53. package/docs/V1FoldersFolder.md +31 -0
  54. package/docs/V1FoldersResource.md +21 -0
  55. package/docs/V1FoldersUpdateRequest.md +21 -0
  56. package/docs/V1MeMailbox.md +23 -0
  57. package/docs/V1MeResource.md +21 -0
  58. package/docs/V1MeResourceData.md +22 -0
  59. package/docs/V1QuotaQuota.md +29 -0
  60. package/docs/V1QuotaQuotaResource.md +27 -0
  61. package/docs/V1QuotaResource.md +21 -0
  62. package/docs/V1SendAttachment.md +29 -0
  63. package/docs/V1SendRequest.md +35 -0
  64. package/docs/V1WebhooksCollection.md +23 -0
  65. package/docs/V1WebhooksCreateRequest.md +29 -0
  66. package/docs/V1WebhooksResource.md +21 -0
  67. package/docs/V1WebhooksResourceWithSecret.md +21 -0
  68. package/docs/V1WebhooksTestResult.md +21 -0
  69. package/docs/V1WebhooksTestResultData.md +24 -0
  70. package/docs/V1WebhooksUpdateRequest.md +29 -0
  71. package/docs/V1WebhooksWebhook.md +39 -0
  72. package/docs/V1WebhooksWebhookWithSecret.md +41 -0
  73. package/docs/WebhooksApi.md +439 -0
  74. package/index.ts +15 -0
  75. package/package.json +34 -0
  76. package/tsconfig.esm.json +7 -0
  77. package/tsconfig.json +18 -0
@@ -0,0 +1,439 @@
1
+ # WebhooksApi
2
+
3
+ All URIs are relative to *https://api.mail.hostinger.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**createWebhook**](#createwebhook) | **POST** /api/v1/mailboxes/{mailboxResourceId}/webhooks | Create webhook|
8
+ |[**deleteWebhook**](#deletewebhook) | **DELETE** /api/v1/mailboxes/{mailboxResourceId}/webhooks/{webhook} | Delete webhook|
9
+ |[**getWebhook**](#getwebhook) | **GET** /api/v1/mailboxes/{mailboxResourceId}/webhooks/{webhook} | Get webhook|
10
+ |[**listWebhooks**](#listwebhooks) | **GET** /api/v1/mailboxes/{mailboxResourceId}/webhooks | List webhooks|
11
+ |[**regenerateWebhookSecret**](#regeneratewebhooksecret) | **POST** /api/v1/mailboxes/{mailboxResourceId}/webhooks/{webhook}/regenerate-secret | Regenerate webhook secret|
12
+ |[**testWebhook**](#testwebhook) | **POST** /api/v1/mailboxes/{mailboxResourceId}/webhooks/{webhook}/test | Test webhook|
13
+ |[**updateWebhook**](#updatewebhook) | **PATCH** /api/v1/mailboxes/{mailboxResourceId}/webhooks/{webhook} | Update webhook|
14
+
15
+ # **createWebhook**
16
+ > V1WebhooksResourceWithSecret createWebhook(v1WebhooksCreateRequest)
17
+
18
+ Create a webhook. The response includes the one-time `secret` — store it securely as it is never returned again.
19
+
20
+ ### Example
21
+
22
+ ```typescript
23
+ import {
24
+ WebhooksApi,
25
+ Configuration,
26
+ V1WebhooksCreateRequest
27
+ } from 'hostinger-mail-api-sdk';
28
+
29
+ const configuration = new Configuration();
30
+ const apiInstance = new WebhooksApi(configuration);
31
+
32
+ let mailboxResourceId: string; //Resource ID of the managed mailbox the bearer token is authorized for. (default to undefined)
33
+ let v1WebhooksCreateRequest: V1WebhooksCreateRequest; //
34
+
35
+ const { status, data } = await apiInstance.createWebhook(
36
+ mailboxResourceId,
37
+ v1WebhooksCreateRequest
38
+ );
39
+ ```
40
+
41
+ ### Parameters
42
+
43
+ |Name | Type | Description | Notes|
44
+ |------------- | ------------- | ------------- | -------------|
45
+ | **v1WebhooksCreateRequest** | **V1WebhooksCreateRequest**| | |
46
+ | **mailboxResourceId** | [**string**] | Resource ID of the managed mailbox the bearer token is authorized for. | defaults to undefined|
47
+
48
+
49
+ ### Return type
50
+
51
+ **V1WebhooksResourceWithSecret**
52
+
53
+ ### Authorization
54
+
55
+ [BearerAuth](../README.md#BearerAuth)
56
+
57
+ ### HTTP request headers
58
+
59
+ - **Content-Type**: application/json
60
+ - **Accept**: application/json
61
+
62
+
63
+ ### HTTP response details
64
+ | Status code | Description | Response headers |
65
+ |-------------|-------------|------------------|
66
+ |**201** | Webhook created. | - |
67
+ |**401** | Missing or invalid credentials. | - |
68
+ |**403** | Token is not authorized to manage the requested mailbox. | - |
69
+ |**422** | Request payload failed validation. `params` maps field name to an array of error messages. | - |
70
+ |**500** | Server-side failure. | - |
71
+ |**502** | Upstream service is unavailable or returned an unexpected response. | - |
72
+
73
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
74
+
75
+ # **deleteWebhook**
76
+ > deleteWebhook()
77
+
78
+ Delete a webhook.
79
+
80
+ ### Example
81
+
82
+ ```typescript
83
+ import {
84
+ WebhooksApi,
85
+ Configuration
86
+ } from 'hostinger-mail-api-sdk';
87
+
88
+ const configuration = new Configuration();
89
+ const apiInstance = new WebhooksApi(configuration);
90
+
91
+ let mailboxResourceId: string; //Resource ID of the managed mailbox. (default to undefined)
92
+ let webhook: string; //Webhook identifier (UUID v7). (default to undefined)
93
+
94
+ const { status, data } = await apiInstance.deleteWebhook(
95
+ mailboxResourceId,
96
+ webhook
97
+ );
98
+ ```
99
+
100
+ ### Parameters
101
+
102
+ |Name | Type | Description | Notes|
103
+ |------------- | ------------- | ------------- | -------------|
104
+ | **mailboxResourceId** | [**string**] | Resource ID of the managed mailbox. | defaults to undefined|
105
+ | **webhook** | [**string**] | Webhook identifier (UUID v7). | defaults to undefined|
106
+
107
+
108
+ ### Return type
109
+
110
+ void (empty response body)
111
+
112
+ ### Authorization
113
+
114
+ [BearerAuth](../README.md#BearerAuth)
115
+
116
+ ### HTTP request headers
117
+
118
+ - **Content-Type**: Not defined
119
+ - **Accept**: application/json
120
+
121
+
122
+ ### HTTP response details
123
+ | Status code | Description | Response headers |
124
+ |-------------|-------------|------------------|
125
+ |**204** | Webhook deleted. | - |
126
+ |**401** | Missing or invalid credentials. | - |
127
+ |**403** | Token is not authorized to manage the requested mailbox. | - |
128
+ |**404** | Resource not found. | - |
129
+ |**500** | Server-side failure. | - |
130
+ |**502** | Upstream service is unavailable or returned an unexpected response. | - |
131
+
132
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
133
+
134
+ # **getWebhook**
135
+ > V1WebhooksResource getWebhook()
136
+
137
+ Retrieve a single webhook by id.
138
+
139
+ ### Example
140
+
141
+ ```typescript
142
+ import {
143
+ WebhooksApi,
144
+ Configuration
145
+ } from 'hostinger-mail-api-sdk';
146
+
147
+ const configuration = new Configuration();
148
+ const apiInstance = new WebhooksApi(configuration);
149
+
150
+ let mailboxResourceId: string; //Resource ID of the managed mailbox. (default to undefined)
151
+ let webhook: string; //Webhook identifier (UUID v7). (default to undefined)
152
+
153
+ const { status, data } = await apiInstance.getWebhook(
154
+ mailboxResourceId,
155
+ webhook
156
+ );
157
+ ```
158
+
159
+ ### Parameters
160
+
161
+ |Name | Type | Description | Notes|
162
+ |------------- | ------------- | ------------- | -------------|
163
+ | **mailboxResourceId** | [**string**] | Resource ID of the managed mailbox. | defaults to undefined|
164
+ | **webhook** | [**string**] | Webhook identifier (UUID v7). | defaults to undefined|
165
+
166
+
167
+ ### Return type
168
+
169
+ **V1WebhooksResource**
170
+
171
+ ### Authorization
172
+
173
+ [BearerAuth](../README.md#BearerAuth)
174
+
175
+ ### HTTP request headers
176
+
177
+ - **Content-Type**: Not defined
178
+ - **Accept**: application/json
179
+
180
+
181
+ ### HTTP response details
182
+ | Status code | Description | Response headers |
183
+ |-------------|-------------|------------------|
184
+ |**200** | Webhook payload. | - |
185
+ |**401** | Missing or invalid credentials. | - |
186
+ |**403** | Token is not authorized to manage the requested mailbox. | - |
187
+ |**404** | Resource not found. | - |
188
+ |**500** | Server-side failure. | - |
189
+ |**502** | Upstream service is unavailable or returned an unexpected response. | - |
190
+
191
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
192
+
193
+ # **listWebhooks**
194
+ > V1WebhooksCollection listWebhooks()
195
+
196
+ List webhooks for a mailbox.
197
+
198
+ ### Example
199
+
200
+ ```typescript
201
+ import {
202
+ WebhooksApi,
203
+ Configuration
204
+ } from 'hostinger-mail-api-sdk';
205
+
206
+ const configuration = new Configuration();
207
+ const apiInstance = new WebhooksApi(configuration);
208
+
209
+ let mailboxResourceId: string; //Resource ID of the managed mailbox the bearer token is authorized for. (default to undefined)
210
+ let status: 'active' | 'paused' | 'disabled'; // (optional) (default to undefined)
211
+ let page: number; // (optional) (default to 1)
212
+ let perPage: number; // (optional) (default to 15)
213
+
214
+ const { status, data } = await apiInstance.listWebhooks(
215
+ mailboxResourceId,
216
+ status,
217
+ page,
218
+ perPage
219
+ );
220
+ ```
221
+
222
+ ### Parameters
223
+
224
+ |Name | Type | Description | Notes|
225
+ |------------- | ------------- | ------------- | -------------|
226
+ | **mailboxResourceId** | [**string**] | Resource ID of the managed mailbox the bearer token is authorized for. | defaults to undefined|
227
+ | **status** | [**&#39;active&#39; | &#39;paused&#39; | &#39;disabled&#39;**]**Array<&#39;active&#39; &#124; &#39;paused&#39; &#124; &#39;disabled&#39;>** | | (optional) defaults to undefined|
228
+ | **page** | [**number**] | | (optional) defaults to 1|
229
+ | **perPage** | [**number**] | | (optional) defaults to 15|
230
+
231
+
232
+ ### Return type
233
+
234
+ **V1WebhooksCollection**
235
+
236
+ ### Authorization
237
+
238
+ [BearerAuth](../README.md#BearerAuth)
239
+
240
+ ### HTTP request headers
241
+
242
+ - **Content-Type**: Not defined
243
+ - **Accept**: application/json
244
+
245
+
246
+ ### HTTP response details
247
+ | Status code | Description | Response headers |
248
+ |-------------|-------------|------------------|
249
+ |**200** | Paginated list of webhooks. | - |
250
+ |**401** | Missing or invalid credentials. | - |
251
+ |**403** | Token is not authorized to manage the requested mailbox. | - |
252
+ |**422** | Request payload failed validation. &#x60;params&#x60; maps field name to an array of error messages. | - |
253
+ |**500** | Server-side failure. | - |
254
+ |**502** | Upstream service is unavailable or returned an unexpected response. | - |
255
+
256
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
257
+
258
+ # **regenerateWebhookSecret**
259
+ > V1WebhooksResourceWithSecret regenerateWebhookSecret()
260
+
261
+ Regenerate the webhook secret. The previous secret is immediately invalidated. The new secret is returned once.
262
+
263
+ ### Example
264
+
265
+ ```typescript
266
+ import {
267
+ WebhooksApi,
268
+ Configuration
269
+ } from 'hostinger-mail-api-sdk';
270
+
271
+ const configuration = new Configuration();
272
+ const apiInstance = new WebhooksApi(configuration);
273
+
274
+ let mailboxResourceId: string; //Resource ID of the managed mailbox. (default to undefined)
275
+ let webhook: string; //Webhook identifier (UUID v7). (default to undefined)
276
+
277
+ const { status, data } = await apiInstance.regenerateWebhookSecret(
278
+ mailboxResourceId,
279
+ webhook
280
+ );
281
+ ```
282
+
283
+ ### Parameters
284
+
285
+ |Name | Type | Description | Notes|
286
+ |------------- | ------------- | ------------- | -------------|
287
+ | **mailboxResourceId** | [**string**] | Resource ID of the managed mailbox. | defaults to undefined|
288
+ | **webhook** | [**string**] | Webhook identifier (UUID v7). | defaults to undefined|
289
+
290
+
291
+ ### Return type
292
+
293
+ **V1WebhooksResourceWithSecret**
294
+
295
+ ### Authorization
296
+
297
+ [BearerAuth](../README.md#BearerAuth)
298
+
299
+ ### HTTP request headers
300
+
301
+ - **Content-Type**: Not defined
302
+ - **Accept**: application/json
303
+
304
+
305
+ ### HTTP response details
306
+ | Status code | Description | Response headers |
307
+ |-------------|-------------|------------------|
308
+ |**200** | Webhook with new secret. | - |
309
+ |**401** | Missing or invalid credentials. | - |
310
+ |**403** | Token is not authorized to manage the requested mailbox. | - |
311
+ |**404** | Resource not found. | - |
312
+ |**500** | Server-side failure. | - |
313
+ |**502** | Upstream service is unavailable or returned an unexpected response. | - |
314
+
315
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
316
+
317
+ # **testWebhook**
318
+ > V1WebhooksTestResult testWebhook()
319
+
320
+ Send a test delivery to the webhook URL and return the upstream response.
321
+
322
+ ### Example
323
+
324
+ ```typescript
325
+ import {
326
+ WebhooksApi,
327
+ Configuration
328
+ } from 'hostinger-mail-api-sdk';
329
+
330
+ const configuration = new Configuration();
331
+ const apiInstance = new WebhooksApi(configuration);
332
+
333
+ let mailboxResourceId: string; //Resource ID of the managed mailbox. (default to undefined)
334
+ let webhook: string; //Webhook identifier (UUID v7). (default to undefined)
335
+
336
+ const { status, data } = await apiInstance.testWebhook(
337
+ mailboxResourceId,
338
+ webhook
339
+ );
340
+ ```
341
+
342
+ ### Parameters
343
+
344
+ |Name | Type | Description | Notes|
345
+ |------------- | ------------- | ------------- | -------------|
346
+ | **mailboxResourceId** | [**string**] | Resource ID of the managed mailbox. | defaults to undefined|
347
+ | **webhook** | [**string**] | Webhook identifier (UUID v7). | defaults to undefined|
348
+
349
+
350
+ ### Return type
351
+
352
+ **V1WebhooksTestResult**
353
+
354
+ ### Authorization
355
+
356
+ [BearerAuth](../README.md#BearerAuth)
357
+
358
+ ### HTTP request headers
359
+
360
+ - **Content-Type**: Not defined
361
+ - **Accept**: application/json
362
+
363
+
364
+ ### HTTP response details
365
+ | Status code | Description | Response headers |
366
+ |-------------|-------------|------------------|
367
+ |**200** | Test delivery result. | - |
368
+ |**401** | Missing or invalid credentials. | - |
369
+ |**403** | Token is not authorized to manage the requested mailbox. | - |
370
+ |**404** | Resource not found. | - |
371
+ |**500** | Server-side failure. | - |
372
+ |**502** | Upstream service is unavailable or returned an unexpected response. | - |
373
+
374
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
375
+
376
+ # **updateWebhook**
377
+ > V1WebhooksResource updateWebhook(v1WebhooksUpdateRequest)
378
+
379
+ Partially update a webhook.
380
+
381
+ ### Example
382
+
383
+ ```typescript
384
+ import {
385
+ WebhooksApi,
386
+ Configuration,
387
+ V1WebhooksUpdateRequest
388
+ } from 'hostinger-mail-api-sdk';
389
+
390
+ const configuration = new Configuration();
391
+ const apiInstance = new WebhooksApi(configuration);
392
+
393
+ let mailboxResourceId: string; //Resource ID of the managed mailbox. (default to undefined)
394
+ let webhook: string; //Webhook identifier (UUID v7). (default to undefined)
395
+ let v1WebhooksUpdateRequest: V1WebhooksUpdateRequest; //
396
+
397
+ const { status, data } = await apiInstance.updateWebhook(
398
+ mailboxResourceId,
399
+ webhook,
400
+ v1WebhooksUpdateRequest
401
+ );
402
+ ```
403
+
404
+ ### Parameters
405
+
406
+ |Name | Type | Description | Notes|
407
+ |------------- | ------------- | ------------- | -------------|
408
+ | **v1WebhooksUpdateRequest** | **V1WebhooksUpdateRequest**| | |
409
+ | **mailboxResourceId** | [**string**] | Resource ID of the managed mailbox. | defaults to undefined|
410
+ | **webhook** | [**string**] | Webhook identifier (UUID v7). | defaults to undefined|
411
+
412
+
413
+ ### Return type
414
+
415
+ **V1WebhooksResource**
416
+
417
+ ### Authorization
418
+
419
+ [BearerAuth](../README.md#BearerAuth)
420
+
421
+ ### HTTP request headers
422
+
423
+ - **Content-Type**: application/json
424
+ - **Accept**: application/json
425
+
426
+
427
+ ### HTTP response details
428
+ | Status code | Description | Response headers |
429
+ |-------------|-------------|------------------|
430
+ |**200** | Updated webhook. | - |
431
+ |**401** | Missing or invalid credentials. | - |
432
+ |**403** | Token is not authorized to manage the requested mailbox. | - |
433
+ |**404** | Resource not found. | - |
434
+ |**422** | Request payload failed validation. &#x60;params&#x60; maps field name to an array of error messages. | - |
435
+ |**500** | Server-side failure. | - |
436
+ |**502** | Upstream service is unavailable or returned an unexpected response. | - |
437
+
438
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
439
+
package/index.ts ADDED
@@ -0,0 +1,15 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Hostinger Email API
5
+ *
6
+ * API Version: 1.0.0
7
+ *
8
+ * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
+ * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
10
+ */
11
+
12
+
13
+ export * from "./api";
14
+ export * from "./configuration";
15
+
package/package.json ADDED
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "hostinger-mail-api-sdk",
3
+ "version": "1.0.2",
4
+ "description": "Hostinger API TypeScript SDK",
5
+ "author": "Hostinger",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/hostinger/mail-api-typescript-sdk.git"
9
+ },
10
+ "keywords": [
11
+ "hostinger",
12
+ "openapi",
13
+ "typescript",
14
+ "sdk",
15
+ "rest",
16
+ "api"
17
+ ],
18
+ "license": "MIT",
19
+ "main": "./dist/index.js",
20
+ "typings": "./dist/index.d.ts",
21
+ "module": "./dist/esm/index.js",
22
+ "sideEffects": false,
23
+ "scripts": {
24
+ "build": "tsc && tsc -p tsconfig.esm.json",
25
+ "prepare": "npm run build"
26
+ },
27
+ "dependencies": {
28
+ "axios": "^1.8.0"
29
+ },
30
+ "devDependencies": {
31
+ "@types/node": "12.11.5 - 12.20.42",
32
+ "typescript": "^4.0 || ^5.0"
33
+ }
34
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "module": "esnext",
5
+ "outDir": "dist/esm"
6
+ }
7
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,18 @@
1
+ {
2
+ "compilerOptions": {
3
+ "declaration": true,
4
+ "target": "ES6",
5
+ "module": "commonjs",
6
+ "noImplicitAny": true,
7
+ "outDir": "dist",
8
+ "rootDir": ".",
9
+ "moduleResolution": "node",
10
+ "typeRoots": [
11
+ "node_modules/@types"
12
+ ]
13
+ },
14
+ "exclude": [
15
+ "dist",
16
+ "node_modules"
17
+ ]
18
+ }