@emilgroup/payment-sdk-node 1.0.0
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/.openapi-generator/FILES +44 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +68 -0
- package/api/bank-accounts-api.ts +167 -0
- package/api/payment-methods-api.ts +581 -0
- package/api/payment-service-providers-api.ts +165 -0
- package/api/payment-setup-api.ts +268 -0
- package/api/payments-api.ts +491 -0
- package/api/webhooks-api.ts +154 -0
- package/api.ts +46 -0
- package/base.ts +293 -0
- package/common.ts +138 -0
- package/configuration.ts +109 -0
- package/dist/api/bank-accounts-api.d.ts +96 -0
- package/dist/api/bank-accounts-api.js +228 -0
- package/dist/api/payment-methods-api.d.ts +327 -0
- package/dist/api/payment-methods-api.js +551 -0
- package/dist/api/payment-service-providers-api.d.ts +93 -0
- package/dist/api/payment-service-providers-api.js +224 -0
- package/dist/api/payment-setup-api.d.ts +146 -0
- package/dist/api/payment-setup-api.js +313 -0
- package/dist/api/payments-api.d.ts +281 -0
- package/dist/api/payments-api.js +463 -0
- package/dist/api/webhooks-api.d.ts +91 -0
- package/dist/api/webhooks-api.js +213 -0
- package/dist/api.d.ts +21 -0
- package/dist/api.js +41 -0
- package/dist/base.d.ts +77 -0
- package/dist/base.js +394 -0
- package/dist/common.d.ts +66 -0
- package/dist/common.js +244 -0
- package/dist/configuration.d.ts +90 -0
- package/dist/configuration.js +44 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +35 -0
- package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +48 -0
- package/dist/models/complete-braintree-payment-setup-request-dto.js +15 -0
- package/dist/models/complete-payment-setup-request-dto.d.ts +32 -0
- package/dist/models/complete-payment-setup-request-dto.js +15 -0
- package/dist/models/complete-payment-setup-response-class.d.ts +25 -0
- package/dist/models/complete-payment-setup-response-class.js +15 -0
- package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +54 -0
- package/dist/models/complete-stripe-payment-setup-request-dto.js +15 -0
- package/dist/models/create-bank-account-request-dto.d.ts +30 -0
- package/dist/models/create-bank-account-request-dto.js +15 -0
- package/dist/models/create-payment-method-response-class.d.ts +25 -0
- package/dist/models/create-payment-method-response-class.js +15 -0
- package/dist/models/create-payment-request-dto.d.ts +42 -0
- package/dist/models/create-payment-request-dto.js +15 -0
- package/dist/models/create-payment-response-class.d.ts +25 -0
- package/dist/models/create-payment-response-class.js +15 -0
- package/dist/models/create-psp-payment-method-request-dto.d.ts +53 -0
- package/dist/models/create-psp-payment-method-request-dto.js +31 -0
- package/dist/models/get-payment-method-response-class.d.ts +25 -0
- package/dist/models/get-payment-method-response-class.js +15 -0
- package/dist/models/get-payment-response-class.d.ts +25 -0
- package/dist/models/get-payment-response-class.js +15 -0
- package/dist/models/get-request-dto.d.ts +30 -0
- package/dist/models/get-request-dto.js +15 -0
- package/dist/models/index.d.ts +25 -0
- package/dist/models/index.js +41 -0
- package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +24 -0
- package/dist/models/initiate-braintree-payment-setup-request-dto.js +15 -0
- package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +24 -0
- package/dist/models/initiate-braintree-payment-setup-response-class.js +15 -0
- package/dist/models/initiate-payment-setup-request-dto.d.ts +32 -0
- package/dist/models/initiate-payment-setup-request-dto.js +15 -0
- package/dist/models/initiate-payment-setup-response-class.d.ts +32 -0
- package/dist/models/initiate-payment-setup-response-class.js +15 -0
- package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +24 -0
- package/dist/models/initiate-stripe-payment-setup-request-dto.js +15 -0
- package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +30 -0
- package/dist/models/initiate-stripe-payment-setup-response-class.js +15 -0
- package/dist/models/list-payment-methods-response-class.d.ts +30 -0
- package/dist/models/list-payment-methods-response-class.js +15 -0
- package/dist/models/list-payments-response-class.d.ts +30 -0
- package/dist/models/list-payments-response-class.js +15 -0
- package/dist/models/payment-class.d.ts +72 -0
- package/dist/models/payment-class.js +15 -0
- package/dist/models/payment-method-class.d.ts +60 -0
- package/dist/models/payment-method-class.js +15 -0
- package/dist/models/sepa-direct-dto.d.ts +24 -0
- package/dist/models/sepa-direct-dto.js +15 -0
- package/dist/models/validate-pspconfig-request-dto.d.ts +41 -0
- package/dist/models/validate-pspconfig-request-dto.js +20 -0
- package/dist/models/validate-pspconfig-response-class.d.ts +24 -0
- package/dist/models/validate-pspconfig-response-class.js +15 -0
- package/git_push.sh +57 -0
- package/index.ts +19 -0
- package/models/complete-braintree-payment-setup-request-dto.ts +54 -0
- package/models/complete-payment-setup-request-dto.ts +38 -0
- package/models/complete-payment-setup-response-class.ts +31 -0
- package/models/complete-stripe-payment-setup-request-dto.ts +60 -0
- package/models/create-bank-account-request-dto.ts +36 -0
- package/models/create-payment-method-response-class.ts +31 -0
- package/models/create-payment-request-dto.ts +48 -0
- package/models/create-payment-response-class.ts +31 -0
- package/models/create-psp-payment-method-request-dto.ts +62 -0
- package/models/get-payment-method-response-class.ts +31 -0
- package/models/get-payment-response-class.ts +31 -0
- package/models/get-request-dto.ts +36 -0
- package/models/index.ts +25 -0
- package/models/initiate-braintree-payment-setup-request-dto.ts +30 -0
- package/models/initiate-braintree-payment-setup-response-class.ts +30 -0
- package/models/initiate-payment-setup-request-dto.ts +38 -0
- package/models/initiate-payment-setup-response-class.ts +38 -0
- package/models/initiate-stripe-payment-setup-request-dto.ts +30 -0
- package/models/initiate-stripe-payment-setup-response-class.ts +36 -0
- package/models/list-payment-methods-response-class.ts +36 -0
- package/models/list-payments-response-class.ts +36 -0
- package/models/payment-class.ts +78 -0
- package/models/payment-method-class.ts +66 -0
- package/models/sepa-direct-dto.ts +30 -0
- package/models/validate-pspconfig-request-dto.ts +50 -0
- package/models/validate-pspconfig-response-class.ts +30 -0
- package/package.json +30 -0
- package/tsconfig.json +22 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Emil Payment Service
|
|
5
|
+
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface ListPaymentMethodsResponseClass
|
|
21
|
+
*/
|
|
22
|
+
export interface ListPaymentMethodsResponseClass {
|
|
23
|
+
/**
|
|
24
|
+
* Payment methods
|
|
25
|
+
* @type {Array<string>}
|
|
26
|
+
* @memberof ListPaymentMethodsResponseClass
|
|
27
|
+
*/
|
|
28
|
+
'items': Array<string>;
|
|
29
|
+
/**
|
|
30
|
+
* Next page token
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof ListPaymentMethodsResponseClass
|
|
33
|
+
*/
|
|
34
|
+
'nextPageToken': string;
|
|
35
|
+
}
|
|
36
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Emil Payment Service
|
|
5
|
+
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface ListPaymentsResponseClass
|
|
21
|
+
*/
|
|
22
|
+
export interface ListPaymentsResponseClass {
|
|
23
|
+
/**
|
|
24
|
+
* Payments
|
|
25
|
+
* @type {Array<string>}
|
|
26
|
+
* @memberof ListPaymentsResponseClass
|
|
27
|
+
*/
|
|
28
|
+
'items': Array<string>;
|
|
29
|
+
/**
|
|
30
|
+
* Next page token
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof ListPaymentsResponseClass
|
|
33
|
+
*/
|
|
34
|
+
'nextPageToken': string;
|
|
35
|
+
}
|
|
36
|
+
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Emil Payment Service
|
|
5
|
+
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface PaymentClass
|
|
21
|
+
*/
|
|
22
|
+
export interface PaymentClass {
|
|
23
|
+
/**
|
|
24
|
+
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof PaymentClass
|
|
27
|
+
*/
|
|
28
|
+
'id': number;
|
|
29
|
+
/**
|
|
30
|
+
* Unique identifier for the object.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof PaymentClass
|
|
33
|
+
*/
|
|
34
|
+
'code': string;
|
|
35
|
+
/**
|
|
36
|
+
* Payment Service Provider with which the payment is done.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof PaymentClass
|
|
39
|
+
*/
|
|
40
|
+
'psp': string;
|
|
41
|
+
/**
|
|
42
|
+
* User account code associated to that payment.
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof PaymentClass
|
|
45
|
+
*/
|
|
46
|
+
'accountCode': string;
|
|
47
|
+
/**
|
|
48
|
+
* Amount to be paid in cents. 100 to charge 1€.
|
|
49
|
+
* @type {number}
|
|
50
|
+
* @memberof PaymentClass
|
|
51
|
+
*/
|
|
52
|
+
'amount': number;
|
|
53
|
+
/**
|
|
54
|
+
* Invoices referenced in this payment. Usually, one payment has one invoice id but it is possible to pay multiple invoices at once with a single payment.
|
|
55
|
+
* @type {Array<string>}
|
|
56
|
+
* @memberof PaymentClass
|
|
57
|
+
*/
|
|
58
|
+
'invoiceIds': Array<string>;
|
|
59
|
+
/**
|
|
60
|
+
* Time at which the object was created.
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof PaymentClass
|
|
63
|
+
*/
|
|
64
|
+
'createdAt': string;
|
|
65
|
+
/**
|
|
66
|
+
* Time at which the object was updated.
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof PaymentClass
|
|
69
|
+
*/
|
|
70
|
+
'updatedAt': string;
|
|
71
|
+
/**
|
|
72
|
+
* Transactions referenced by this payment.
|
|
73
|
+
* @type {Array<string>}
|
|
74
|
+
* @memberof PaymentClass
|
|
75
|
+
*/
|
|
76
|
+
'transactions': Array<string>;
|
|
77
|
+
}
|
|
78
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Emil Payment Service
|
|
5
|
+
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface PaymentMethodClass
|
|
21
|
+
*/
|
|
22
|
+
export interface PaymentMethodClass {
|
|
23
|
+
/**
|
|
24
|
+
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof PaymentMethodClass
|
|
27
|
+
*/
|
|
28
|
+
'id': number;
|
|
29
|
+
/**
|
|
30
|
+
* Unique identifier for the object.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof PaymentMethodClass
|
|
33
|
+
*/
|
|
34
|
+
'code': string;
|
|
35
|
+
/**
|
|
36
|
+
* A unique identifier generated by the payment service provider for this payment method.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof PaymentMethodClass
|
|
39
|
+
*/
|
|
40
|
+
'providerToken': string;
|
|
41
|
+
/**
|
|
42
|
+
* Customer identifier for the payment service provider.
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof PaymentMethodClass
|
|
45
|
+
*/
|
|
46
|
+
'pspCustomerId': string;
|
|
47
|
+
/**
|
|
48
|
+
* The payment service provider used by this payment method.
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof PaymentMethodClass
|
|
51
|
+
*/
|
|
52
|
+
'psp': string;
|
|
53
|
+
/**
|
|
54
|
+
* The payment method type.
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof PaymentMethodClass
|
|
57
|
+
*/
|
|
58
|
+
'type': string;
|
|
59
|
+
/**
|
|
60
|
+
* Created at
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof PaymentMethodClass
|
|
63
|
+
*/
|
|
64
|
+
'createdAt': string;
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Emil Payment Service
|
|
5
|
+
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface SepaDirectDto
|
|
21
|
+
*/
|
|
22
|
+
export interface SepaDirectDto {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof SepaDirectDto
|
|
27
|
+
*/
|
|
28
|
+
'iban': string;
|
|
29
|
+
}
|
|
30
|
+
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Emil Payment Service
|
|
5
|
+
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface ValidatePSPConfigRequestDto
|
|
21
|
+
*/
|
|
22
|
+
export interface ValidatePSPConfigRequestDto {
|
|
23
|
+
/**
|
|
24
|
+
* Payment service provider type.
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof ValidatePSPConfigRequestDto
|
|
27
|
+
*/
|
|
28
|
+
'type': ValidatePSPConfigRequestDtoTypeEnum;
|
|
29
|
+
/**
|
|
30
|
+
* Map containing various necessary keys to properly use the payment service provider. In the form of <api key name, api key value>.
|
|
31
|
+
* @type {object}
|
|
32
|
+
* @memberof ValidatePSPConfigRequestDto
|
|
33
|
+
*/
|
|
34
|
+
'apiKeys': object;
|
|
35
|
+
/**
|
|
36
|
+
* List of payment methods that should be accepted by the payment service provider.
|
|
37
|
+
* @type {Array<string>}
|
|
38
|
+
* @memberof ValidatePSPConfigRequestDto
|
|
39
|
+
*/
|
|
40
|
+
'paymentMethods': Array<string>;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export const ValidatePSPConfigRequestDtoTypeEnum = {
|
|
44
|
+
Braintree: 'braintree',
|
|
45
|
+
Stripe: 'stripe'
|
|
46
|
+
} as const;
|
|
47
|
+
|
|
48
|
+
export type ValidatePSPConfigRequestDtoTypeEnum = typeof ValidatePSPConfigRequestDtoTypeEnum[keyof typeof ValidatePSPConfigRequestDtoTypeEnum];
|
|
49
|
+
|
|
50
|
+
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Emil Payment Service
|
|
5
|
+
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface ValidatePSPConfigResponseClass
|
|
21
|
+
*/
|
|
22
|
+
export interface ValidatePSPConfigResponseClass {
|
|
23
|
+
/**
|
|
24
|
+
* Returns if configuration is valid or not.
|
|
25
|
+
* @type {boolean}
|
|
26
|
+
* @memberof ValidatePSPConfigResponseClass
|
|
27
|
+
*/
|
|
28
|
+
'valid': boolean;
|
|
29
|
+
}
|
|
30
|
+
|
package/package.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@emilgroup/payment-sdk-node",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "OpenAPI client for @emilgroup/payment-sdk-node",
|
|
5
|
+
"author": "OpenAPI-Generator Contributors",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"axios",
|
|
8
|
+
"typescript",
|
|
9
|
+
"openapi-client",
|
|
10
|
+
"openapi-generator",
|
|
11
|
+
"@emilgroup/payment-sdk-node"
|
|
12
|
+
],
|
|
13
|
+
"license": "Unlicense",
|
|
14
|
+
"main": "./dist/index.js",
|
|
15
|
+
"typings": "./dist/index.d.ts",
|
|
16
|
+
"scripts": {
|
|
17
|
+
"build": "tsc --outDir dist/",
|
|
18
|
+
"prepare": "npm run build"
|
|
19
|
+
},
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"axios": "^0.26.1"
|
|
22
|
+
,
|
|
23
|
+
"form-data": "^4.0.0",
|
|
24
|
+
"url": "^0.11.0"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@types/node": "^12.11.5",
|
|
28
|
+
"typescript": "^4.0"
|
|
29
|
+
}
|
|
30
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"declaration": true,
|
|
4
|
+
"target": "ES5",
|
|
5
|
+
"module": "CommonJS",
|
|
6
|
+
"noImplicitAny": true,
|
|
7
|
+
"esModuleInterop": true,
|
|
8
|
+
"outDir": "dist",
|
|
9
|
+
"rootDir": ".",
|
|
10
|
+
"lib": [
|
|
11
|
+
"es6",
|
|
12
|
+
"dom"
|
|
13
|
+
],
|
|
14
|
+
"typeRoots": [
|
|
15
|
+
"node_modules/@types"
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
"exclude": [
|
|
19
|
+
"dist",
|
|
20
|
+
"node_modules"
|
|
21
|
+
]
|
|
22
|
+
}
|