@tagadapay/node-sdk 1.2.1 → 2.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.
- package/README.md +182 -100
- package/dist/HttpClient.d.ts +15 -7
- package/dist/HttpClient.d.ts.map +1 -1
- package/dist/HttpClient.js +16 -10
- package/dist/HttpClient.js.map +1 -1
- package/dist/Tagada.d.ts +24 -5
- package/dist/Tagada.d.ts.map +1 -1
- package/dist/Tagada.js +4 -0
- package/dist/Tagada.js.map +1 -1
- package/dist/cli/init.js +47 -45
- package/dist/cli/init.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/resources/Partners.d.ts +62 -111
- package/dist/resources/Partners.d.ts.map +1 -1
- package/dist/resources/Partners.js +70 -121
- package/dist/resources/Partners.js.map +1 -1
- package/dist/resources/Processing.d.ts +107 -0
- package/dist/resources/Processing.d.ts.map +1 -0
- package/dist/resources/Processing.js +123 -0
- package/dist/resources/Processing.js.map +1 -0
- package/dist/resources/TaxExemptions.d.ts +23 -0
- package/dist/resources/TaxExemptions.d.ts.map +1 -0
- package/dist/resources/TaxExemptions.js +25 -0
- package/dist/resources/TaxExemptions.js.map +1 -0
- package/dist/resources/index.d.ts +1 -0
- package/dist/resources/index.d.ts.map +1 -1
- package/dist/resources/index.js +1 -0
- package/dist/resources/index.js.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/partners.d.ts +117 -52
- package/dist/types/partners.d.ts.map +1 -1
- package/dist/types/partners.js +20 -4
- package/dist/types/partners.js.map +1 -1
- package/dist/types/taxExemptions.d.ts +25 -0
- package/dist/types/taxExemptions.d.ts.map +1 -0
- package/dist/types/taxExemptions.js +2 -0
- package/dist/types/taxExemptions.js.map +1 -0
- package/package.json +88 -88
package/dist/types/partners.d.ts
CHANGED
|
@@ -1,76 +1,141 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* A Tagada CRM merchant — the organization/account that owns stores,
|
|
3
|
+
* products, orders and CRM keys. Identified by `acc_xxx`.
|
|
4
|
+
*/
|
|
5
|
+
export interface Merchant {
|
|
6
|
+
object: 'merchant';
|
|
7
|
+
/** Tagada CRM account id (`acc_xxx`). */
|
|
4
8
|
id: string;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
storeId: string | null;
|
|
13
|
-
partnerId: string;
|
|
14
|
-
partnerExternalRef: string | null;
|
|
15
|
-
status: string;
|
|
16
|
-
applicationStatus: string;
|
|
17
|
-
mode: 'live' | 'test';
|
|
9
|
+
legalName: string | null;
|
|
10
|
+
/** Partner-supplied stable reference (idempotency / your own merchant id). */
|
|
11
|
+
externalRef: string | null;
|
|
12
|
+
country: string | null;
|
|
13
|
+
currency: string | null;
|
|
14
|
+
/** `partner_managed` when provisioned by a partner with no Clerk user yet. */
|
|
15
|
+
managementMode: 'self_serve' | 'partner_managed';
|
|
18
16
|
createdAt: string;
|
|
19
17
|
}
|
|
20
|
-
export interface
|
|
21
|
-
/**
|
|
18
|
+
export interface MerchantCreateParams {
|
|
19
|
+
/** Legal entity name for the merchant. */
|
|
22
20
|
legalName: string;
|
|
23
|
-
/** ISO 3166-1 alpha-2 country code. */
|
|
24
21
|
country?: string;
|
|
25
|
-
/** ISO 4217 settlement currency code. */
|
|
26
22
|
currency?: string;
|
|
27
23
|
/**
|
|
28
|
-
* Partner-supplied stable id used as the idempotency key. A second
|
|
29
|
-
*
|
|
24
|
+
* Partner-supplied stable id used as the idempotency key. A second call
|
|
25
|
+
* with the same `(partnerId, externalRef)` returns the existing merchant.
|
|
30
26
|
* Can also be passed via the `Idempotency-Key` header — body wins.
|
|
31
27
|
*/
|
|
32
28
|
externalRef?: string;
|
|
33
|
-
/** Free-form metadata bag. Stored on `tagadapay_accounts.merchantContractSnapshot`. */
|
|
34
29
|
metadata?: Record<string, unknown>;
|
|
35
30
|
}
|
|
36
|
-
export interface
|
|
37
|
-
/** Limit per page. Defaults to 50. */
|
|
31
|
+
export interface MerchantListParams {
|
|
38
32
|
limit?: number;
|
|
33
|
+
cursor?: string;
|
|
34
|
+
/** Filter by your own merchant reference. */
|
|
35
|
+
externalRef?: string;
|
|
39
36
|
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
37
|
+
/**
|
|
38
|
+
* A CRM Key grants access to the CRM API (`/api/public/v1/*`) for one
|
|
39
|
+
* merchant. New keys use the `sk_crm_…` format; legacy UUID keys remain
|
|
40
|
+
* valid. The plaintext token is returned ONLY on creation.
|
|
41
|
+
*/
|
|
42
|
+
export interface CrmKey {
|
|
43
|
+
object: 'crm_key';
|
|
44
|
+
id: string;
|
|
45
|
+
/** Merchant this key is scoped to (`acc_xxx`). */
|
|
46
|
+
accountId: string;
|
|
47
|
+
name: string;
|
|
48
|
+
/** Token prefix for display, e.g. `sk_crm_live_a1b2…`. */
|
|
49
|
+
prefix: string;
|
|
50
|
+
orgRole: string;
|
|
51
|
+
revoked: boolean;
|
|
52
|
+
createdAt: string;
|
|
53
|
+
expiresAt: string | null;
|
|
54
|
+
}
|
|
55
|
+
export interface CrmKeyCreated extends CrmKey {
|
|
56
|
+
/**
|
|
57
|
+
* Plaintext CRM Key (`sk_crm_live_…` / `sk_crm_test_…`). Returned ONLY on
|
|
58
|
+
* creation — store it immediately. The server keeps a hash only.
|
|
59
|
+
*/
|
|
60
|
+
token: string;
|
|
61
|
+
}
|
|
62
|
+
export interface CrmKeyCreateParams {
|
|
63
|
+
/** Optional human label. Auto-generated from the partner name when omitted. */
|
|
64
|
+
name?: string;
|
|
65
|
+
mode?: 'live' | 'test';
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* A TagadaPay Account (TPA) — one payfac processing context. Belongs to
|
|
69
|
+
* exactly one merchant (`acc_xxx`); a merchant may own several TPAs
|
|
70
|
+
* (e.g. one per settlement region). Identified by `tpa_xxx`.
|
|
71
|
+
*/
|
|
72
|
+
export interface Tpa {
|
|
73
|
+
object: 'tpa';
|
|
74
|
+
/** TagadaPay Account id (`tpa_xxx`). */
|
|
75
|
+
id: string;
|
|
76
|
+
/** Owning CRM merchant (`acc_xxx`). */
|
|
77
|
+
accountId: string;
|
|
78
|
+
/**
|
|
79
|
+
* Bound store. Auto-created on TPA creation (1 TPA → 1 store invariant).
|
|
80
|
+
* Null only for legacy TPAs created before the auto-store migration.
|
|
81
|
+
*/
|
|
82
|
+
storeId: string | null;
|
|
83
|
+
/** Owning partner (`par_xxx`), when provisioned on behalf of a merchant. */
|
|
84
|
+
partnerId?: string | null;
|
|
85
|
+
externalRef: string | null;
|
|
86
|
+
status: string;
|
|
87
|
+
applicationStatus: string;
|
|
88
|
+
mode: 'live' | 'test';
|
|
89
|
+
createdAt: string;
|
|
43
90
|
}
|
|
44
|
-
export interface
|
|
91
|
+
export interface TpaCreateParams {
|
|
45
92
|
/**
|
|
46
|
-
*
|
|
47
|
-
*
|
|
93
|
+
* Owning merchant (`acc_xxx`). Required for `partners.processing.tpas.create`
|
|
94
|
+
* and for a direct merchant adding an additional TPA. Omit only when the
|
|
95
|
+
* surface infers it from the calling key.
|
|
48
96
|
*/
|
|
49
|
-
|
|
97
|
+
accountId?: string;
|
|
98
|
+
/** Legal entity name going through KYB. */
|
|
99
|
+
legalName?: string;
|
|
100
|
+
/** ISO 3166-1 alpha-2 — used during provisioning (not echoed on the TPA). */
|
|
101
|
+
country?: string;
|
|
102
|
+
/** ISO 4217 — drives the auto-created store currency (not echoed on the TPA). */
|
|
103
|
+
currency?: string;
|
|
104
|
+
/** Partner-supplied stable id — idempotency key for the TPA. */
|
|
105
|
+
externalRef?: string;
|
|
106
|
+
metadata?: Record<string, unknown>;
|
|
107
|
+
}
|
|
108
|
+
export interface TpaListParams {
|
|
109
|
+
limit?: number;
|
|
110
|
+
cursor?: string;
|
|
111
|
+
/** Filter to TPAs owned by a given merchant. */
|
|
112
|
+
accountId?: string;
|
|
113
|
+
externalRef?: string;
|
|
50
114
|
}
|
|
51
|
-
|
|
52
|
-
|
|
115
|
+
/**
|
|
116
|
+
* A Processing Key (`tp_sk_…`) restricted to a single TPA. Use a processing
|
|
117
|
+
* key (not the partner key) for charging — smaller blast radius if it leaks.
|
|
118
|
+
*/
|
|
119
|
+
export interface ProcessingKey {
|
|
120
|
+
object: 'processing_key';
|
|
53
121
|
id: string;
|
|
54
122
|
prefix: string;
|
|
55
|
-
/**
|
|
56
|
-
|
|
123
|
+
/** TPA this key is scoped to (`tpa_xxx`). */
|
|
124
|
+
tpaId: string;
|
|
57
125
|
label?: string;
|
|
58
126
|
lastUsedAt?: string | null;
|
|
59
127
|
status: 'active' | 'revoked';
|
|
60
128
|
createdAt: string;
|
|
61
129
|
}
|
|
62
|
-
export interface
|
|
63
|
-
/**
|
|
64
|
-
* Plaintext secret. Returned ONLY on creation — store immediately.
|
|
65
|
-
* The server hashes it on storage; we cannot retrieve it later.
|
|
66
|
-
*/
|
|
130
|
+
export interface ProcessingKeyCreated extends ProcessingKey {
|
|
131
|
+
/** Plaintext secret (`tp_sk_live_…`). Returned ONLY on creation. */
|
|
67
132
|
secret: string;
|
|
68
133
|
}
|
|
69
|
-
export interface
|
|
70
|
-
|
|
134
|
+
export interface ProcessingKeyCreateParams {
|
|
135
|
+
mode?: 'live' | 'test';
|
|
71
136
|
label?: string;
|
|
72
137
|
}
|
|
73
|
-
export interface
|
|
138
|
+
export interface TpaRequirement {
|
|
74
139
|
object: 'requirement';
|
|
75
140
|
id: string;
|
|
76
141
|
code: string;
|
|
@@ -84,11 +149,13 @@ export interface PartnerRequirement {
|
|
|
84
149
|
createdAt: string;
|
|
85
150
|
updatedAt: string;
|
|
86
151
|
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
}
|
|
91
|
-
|
|
152
|
+
/**
|
|
153
|
+
* Value submitted for a non-document requirement via
|
|
154
|
+
* `requirements.update(tpaId, code, value)`. Accepts a primitive or a
|
|
155
|
+
* free-form object (e.g. `{ iban: 'FR…', bic: 'BNPAFRPP' }`).
|
|
156
|
+
*/
|
|
157
|
+
export type RequirementValue = string | number | boolean | Record<string, unknown>;
|
|
158
|
+
export interface TpaDocument {
|
|
92
159
|
object: 'document';
|
|
93
160
|
id: string;
|
|
94
161
|
requirementCode?: string | null;
|
|
@@ -102,9 +169,7 @@ export interface PartnerDocument {
|
|
|
102
169
|
createdAt: string;
|
|
103
170
|
updatedAt: string;
|
|
104
171
|
}
|
|
105
|
-
export interface
|
|
106
|
-
/** TPA this document is attached to. */
|
|
107
|
-
tagadapayAccountId: string;
|
|
172
|
+
export interface TpaDocumentRecordParams {
|
|
108
173
|
/** Optional link to a `tp_account_requirements.code` on this TPA. */
|
|
109
174
|
requirementCode?: string;
|
|
110
175
|
/** e.g. 'identity_proof' | 'proof_of_address' | 'company_registration' */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"partners.d.ts","sourceRoot":"","sources":["../../src/types/partners.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"partners.d.ts","sourceRoot":"","sources":["../../src/types/partners.ts"],"names":[],"mappings":"AA4BA;;;GAGG;AACH,MAAM,WAAW,QAAQ;IACvB,MAAM,EAAE,UAAU,CAAC;IACnB,yCAAyC;IACzC,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,8EAA8E;IAC9E,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,8EAA8E;IAC9E,cAAc,EAAE,YAAY,GAAG,iBAAiB,CAAC;IACjD,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,oBAAoB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MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,uBAAuB;IACtC,qEAAqE;IACrE,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,0EAA0E;IAC1E,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,8CAA8C;IAC9C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC"}
|
package/dist/types/partners.js
CHANGED
|
@@ -1,9 +1,25 @@
|
|
|
1
1
|
// ---------------------------------------------------------------------------
|
|
2
|
-
// Partner platform types
|
|
2
|
+
// Partner platform types.
|
|
3
3
|
//
|
|
4
|
-
//
|
|
5
|
-
//
|
|
6
|
-
//
|
|
4
|
+
// The Tagada platform is split into two clearly-separated domains. The SDK
|
|
5
|
+
// mirrors that split exactly:
|
|
6
|
+
//
|
|
7
|
+
// CRM domain → the merchant control plane (orders, stores, customers,
|
|
8
|
+
// subscriptions…). Exposed on `/api/public/v1/*` and
|
|
9
|
+
// authenticated with a **CRM Key** (`sk_crm_…`, legacy
|
|
10
|
+
// UUID still accepted). One CRM Key is scoped to one
|
|
11
|
+
// merchant (`acc_xxx`).
|
|
12
|
+
//
|
|
13
|
+
// Processing domain → TagadaPay payfac provisioning (TPAs, KYB requirements,
|
|
14
|
+
// documents, processing keys, charges). Exposed on
|
|
15
|
+
// `/api/tagadapay/v1/*` and authenticated with a
|
|
16
|
+
// **Processing Key** (`tp_sk_…`). One Processing Key is
|
|
17
|
+
// scoped to one TPA (`tpa_xxx`).
|
|
18
|
+
//
|
|
19
|
+
// A single merchant (`acc_xxx`) can own **0..N** TPAs (`tpa_xxx`).
|
|
20
|
+
//
|
|
21
|
+
// Partner ("on behalf of") operations live under the `partners.crm.*` and
|
|
22
|
+
// `partners.processing.*` namespaces and require a partner key.
|
|
7
23
|
// ---------------------------------------------------------------------------
|
|
8
24
|
export {};
|
|
9
25
|
//# sourceMappingURL=partners.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"partners.js","sourceRoot":"","sources":["../../src/types/partners.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,
|
|
1
|
+
{"version":3,"file":"partners.js","sourceRoot":"","sources":["../../src/types/partners.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,0BAA0B;AAC1B,EAAE;AACF,2EAA2E;AAC3E,8BAA8B;AAC9B,EAAE;AACF,+EAA+E;AAC/E,4EAA4E;AAC5E,8EAA8E;AAC9E,4EAA4E;AAC5E,+CAA+C;AAC/C,EAAE;AACF,+EAA+E;AAC/E,0EAA0E;AAC1E,wEAAwE;AACxE,+EAA+E;AAC/E,wDAAwD;AACxD,EAAE;AACF,mEAAmE;AACnE,EAAE;AACF,0EAA0E;AAC1E,gEAAgE;AAChE,8EAA8E"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface TaxExemption {
|
|
2
|
+
id: string;
|
|
3
|
+
storeId: string;
|
|
4
|
+
accountId: string;
|
|
5
|
+
email: string;
|
|
6
|
+
createdAt: string;
|
|
7
|
+
updatedAt: string;
|
|
8
|
+
}
|
|
9
|
+
export interface TaxExemptionCreateParams {
|
|
10
|
+
storeId: string;
|
|
11
|
+
emails: string[];
|
|
12
|
+
}
|
|
13
|
+
export interface TaxExemptionListParams {
|
|
14
|
+
storeId: string;
|
|
15
|
+
pageNumber?: number;
|
|
16
|
+
pageSize?: number;
|
|
17
|
+
}
|
|
18
|
+
export interface TaxExemptionListResult {
|
|
19
|
+
items: TaxExemption[];
|
|
20
|
+
total: number;
|
|
21
|
+
}
|
|
22
|
+
export interface TaxExemptionDeleteParams {
|
|
23
|
+
ids: string[];
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=taxExemptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taxExemptions.d.ts","sourceRoot":"","sources":["../../src/types/taxExemptions.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAED,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,wBAAwB;IACvC,GAAG,EAAE,MAAM,EAAE,CAAC;CACf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taxExemptions.js","sourceRoot":"","sources":["../../src/types/taxExemptions.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,88 +1,88 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@tagadapay/node-sdk",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "Official Tagada Node.js SDK — PSP/gateway-agnostic payment orchestration",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"exports": {
|
|
8
|
-
".": {
|
|
9
|
-
"types": "./dist/index.d.ts",
|
|
10
|
-
"import": "./dist/index.js",
|
|
11
|
-
"require": "./dist/index.js"
|
|
12
|
-
},
|
|
13
|
-
"./resources": {
|
|
14
|
-
"types": "./dist/resources/index.d.ts",
|
|
15
|
-
"import": "./dist/resources/index.js",
|
|
16
|
-
"require": "./dist/resources/index.js"
|
|
17
|
-
},
|
|
18
|
-
"./dashboard": {
|
|
19
|
-
"types": "./dist/dashboard/index.d.ts",
|
|
20
|
-
"import": "./dist/dashboard/index.js",
|
|
21
|
-
"require": "./dist/dashboard/index.js"
|
|
22
|
-
},
|
|
23
|
-
"./onboarding": {
|
|
24
|
-
"types": "./dist/onboarding/OnboardingClient.d.ts",
|
|
25
|
-
"import": "./dist/onboarding/OnboardingClient.js",
|
|
26
|
-
"require": "./dist/onboarding/OnboardingClient.js"
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
"bin": {
|
|
30
|
-
"tagada-init": "./dist/cli/init.js",
|
|
31
|
-
"tagada": "./dist/cli/init.js"
|
|
32
|
-
},
|
|
33
|
-
"scripts": {
|
|
34
|
-
"build": "tsc",
|
|
35
|
-
"clean": "rm -rf dist",
|
|
36
|
-
"dev": "tsc --watch",
|
|
37
|
-
"lint": "echo \"No linting configured\"",
|
|
38
|
-
"test": "echo \"No tests yet\" && exit 0",
|
|
39
|
-
"pack": "npm run clean && npm run build && npm pack",
|
|
40
|
-
"prepublishOnly": "npm run clean && npm run build",
|
|
41
|
-
"publish:patch": "npm version patch && npm publish",
|
|
42
|
-
"publish:minor": "npm version minor && npm publish",
|
|
43
|
-
"publish:major": "npm version major && npm publish",
|
|
44
|
-
"publish:beta": "npm version prerelease --preid=beta && npm publish --tag beta",
|
|
45
|
-
"publish:alpha": "npm version prerelease --preid=alpha && npm publish --tag alpha",
|
|
46
|
-
"version:patch": "npm version patch",
|
|
47
|
-
"version:minor": "npm version minor",
|
|
48
|
-
"version:major": "npm version major",
|
|
49
|
-
"version:beta": "npm version prerelease --preid=beta",
|
|
50
|
-
"version:alpha": "npm version prerelease --preid=alpha"
|
|
51
|
-
},
|
|
52
|
-
"keywords": [
|
|
53
|
-
"tagadapay",
|
|
54
|
-
"tagada",
|
|
55
|
-
"payment",
|
|
56
|
-
"sdk",
|
|
57
|
-
"psp-agnostic",
|
|
58
|
-
"gateway-agnostic",
|
|
59
|
-
"payment-orchestration",
|
|
60
|
-
"node",
|
|
61
|
-
"typescript"
|
|
62
|
-
],
|
|
63
|
-
"author": "Tagada Pay",
|
|
64
|
-
"license": "MIT",
|
|
65
|
-
"engines": {
|
|
66
|
-
"node": ">=18.0.0"
|
|
67
|
-
},
|
|
68
|
-
"files": [
|
|
69
|
-
"dist/**/*",
|
|
70
|
-
"README.md"
|
|
71
|
-
],
|
|
72
|
-
"repository": {
|
|
73
|
-
"type": "git",
|
|
74
|
-
"url": "https://github.com/tagadapay/tagadapay.git",
|
|
75
|
-
"directory": "packages/node-sdk"
|
|
76
|
-
},
|
|
77
|
-
"bugs": {
|
|
78
|
-
"url": "https://github.com/tagadapay/tagadapay/issues"
|
|
79
|
-
},
|
|
80
|
-
"homepage": "https://docs.tagadapay.com/sdk/node",
|
|
81
|
-
"publishConfig": {
|
|
82
|
-
"access": "public"
|
|
83
|
-
},
|
|
84
|
-
"devDependencies": {
|
|
85
|
-
"@types/node": "^18.0.0",
|
|
86
|
-
"typescript": "^5.0.0"
|
|
87
|
-
}
|
|
88
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@tagadapay/node-sdk",
|
|
3
|
+
"version": "2.0.2",
|
|
4
|
+
"description": "Official Tagada Node.js SDK — PSP/gateway-agnostic payment orchestration",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"import": "./dist/index.js",
|
|
11
|
+
"require": "./dist/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./resources": {
|
|
14
|
+
"types": "./dist/resources/index.d.ts",
|
|
15
|
+
"import": "./dist/resources/index.js",
|
|
16
|
+
"require": "./dist/resources/index.js"
|
|
17
|
+
},
|
|
18
|
+
"./dashboard": {
|
|
19
|
+
"types": "./dist/dashboard/index.d.ts",
|
|
20
|
+
"import": "./dist/dashboard/index.js",
|
|
21
|
+
"require": "./dist/dashboard/index.js"
|
|
22
|
+
},
|
|
23
|
+
"./onboarding": {
|
|
24
|
+
"types": "./dist/onboarding/OnboardingClient.d.ts",
|
|
25
|
+
"import": "./dist/onboarding/OnboardingClient.js",
|
|
26
|
+
"require": "./dist/onboarding/OnboardingClient.js"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"bin": {
|
|
30
|
+
"tagada-init": "./dist/cli/init.js",
|
|
31
|
+
"tagada": "./dist/cli/init.js"
|
|
32
|
+
},
|
|
33
|
+
"scripts": {
|
|
34
|
+
"build": "tsc",
|
|
35
|
+
"clean": "rm -rf dist",
|
|
36
|
+
"dev": "tsc --watch",
|
|
37
|
+
"lint": "echo \"No linting configured\"",
|
|
38
|
+
"test": "echo \"No tests yet\" && exit 0",
|
|
39
|
+
"pack": "npm run clean && npm run build && npm pack",
|
|
40
|
+
"prepublishOnly": "npm run clean && npm run build",
|
|
41
|
+
"publish:patch": "npm version patch && npm publish",
|
|
42
|
+
"publish:minor": "npm version minor && npm publish",
|
|
43
|
+
"publish:major": "npm version major && npm publish",
|
|
44
|
+
"publish:beta": "npm version prerelease --preid=beta && npm publish --tag beta",
|
|
45
|
+
"publish:alpha": "npm version prerelease --preid=alpha && npm publish --tag alpha",
|
|
46
|
+
"version:patch": "npm version patch",
|
|
47
|
+
"version:minor": "npm version minor",
|
|
48
|
+
"version:major": "npm version major",
|
|
49
|
+
"version:beta": "npm version prerelease --preid=beta",
|
|
50
|
+
"version:alpha": "npm version prerelease --preid=alpha"
|
|
51
|
+
},
|
|
52
|
+
"keywords": [
|
|
53
|
+
"tagadapay",
|
|
54
|
+
"tagada",
|
|
55
|
+
"payment",
|
|
56
|
+
"sdk",
|
|
57
|
+
"psp-agnostic",
|
|
58
|
+
"gateway-agnostic",
|
|
59
|
+
"payment-orchestration",
|
|
60
|
+
"node",
|
|
61
|
+
"typescript"
|
|
62
|
+
],
|
|
63
|
+
"author": "Tagada Pay",
|
|
64
|
+
"license": "MIT",
|
|
65
|
+
"engines": {
|
|
66
|
+
"node": ">=18.0.0"
|
|
67
|
+
},
|
|
68
|
+
"files": [
|
|
69
|
+
"dist/**/*",
|
|
70
|
+
"README.md"
|
|
71
|
+
],
|
|
72
|
+
"repository": {
|
|
73
|
+
"type": "git",
|
|
74
|
+
"url": "https://github.com/tagadapay/tagadapay.git",
|
|
75
|
+
"directory": "packages/node-sdk"
|
|
76
|
+
},
|
|
77
|
+
"bugs": {
|
|
78
|
+
"url": "https://github.com/tagadapay/tagadapay/issues"
|
|
79
|
+
},
|
|
80
|
+
"homepage": "https://docs.tagadapay.com/sdk/node",
|
|
81
|
+
"publishConfig": {
|
|
82
|
+
"access": "public"
|
|
83
|
+
},
|
|
84
|
+
"devDependencies": {
|
|
85
|
+
"@types/node": "^18.0.0",
|
|
86
|
+
"typescript": "^5.0.0"
|
|
87
|
+
}
|
|
88
|
+
}
|