@tagadapay/node-sdk 0.1.0 → 0.2.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.
Files changed (69) hide show
  1. package/README.md +13 -5
  2. package/dist/HttpClient.d.ts +2 -2
  3. package/dist/HttpClient.d.ts.map +1 -1
  4. package/dist/HttpClient.js +2 -2
  5. package/dist/Tagada.d.ts +3 -1
  6. package/dist/Tagada.d.ts.map +1 -1
  7. package/dist/Tagada.js +3 -1
  8. package/dist/Tagada.js.map +1 -1
  9. package/dist/index.d.ts +1 -1
  10. package/dist/index.d.ts.map +1 -1
  11. package/dist/resources/Domains.d.ts +13 -4
  12. package/dist/resources/Domains.d.ts.map +1 -1
  13. package/dist/resources/Domains.js +22 -3
  14. package/dist/resources/Domains.js.map +1 -1
  15. package/dist/resources/EmailTemplates.d.ts +66 -0
  16. package/dist/resources/EmailTemplates.d.ts.map +1 -0
  17. package/dist/resources/EmailTemplates.js +72 -0
  18. package/dist/resources/EmailTemplates.js.map +1 -0
  19. package/dist/resources/Funnels.d.ts +6 -1
  20. package/dist/resources/Funnels.d.ts.map +1 -1
  21. package/dist/resources/Funnels.js +7 -0
  22. package/dist/resources/Funnels.js.map +1 -1
  23. package/dist/resources/PaymentFlows.d.ts +3 -3
  24. package/dist/resources/PaymentFlows.js +3 -3
  25. package/dist/resources/Plugins.d.ts +74 -16
  26. package/dist/resources/Plugins.d.ts.map +1 -1
  27. package/dist/resources/Plugins.js +305 -18
  28. package/dist/resources/Plugins.js.map +1 -1
  29. package/dist/resources/Processors.d.ts +39 -1
  30. package/dist/resources/Processors.d.ts.map +1 -1
  31. package/dist/resources/Processors.js +43 -0
  32. package/dist/resources/Processors.js.map +1 -1
  33. package/dist/resources/Webhooks.d.ts +1 -1
  34. package/dist/resources/Webhooks.d.ts.map +1 -1
  35. package/dist/resources/Webhooks.js +11 -1
  36. package/dist/resources/Webhooks.js.map +1 -1
  37. package/dist/resources/index.d.ts +1 -0
  38. package/dist/resources/index.d.ts.map +1 -1
  39. package/dist/resources/index.js +1 -0
  40. package/dist/resources/index.js.map +1 -1
  41. package/dist/types/checkout-offers.d.ts +1 -1
  42. package/dist/types/checkout-offers.d.ts.map +1 -1
  43. package/dist/types/domains.d.ts +34 -2
  44. package/dist/types/domains.d.ts.map +1 -1
  45. package/dist/types/emailTemplates.d.ts +55 -0
  46. package/dist/types/emailTemplates.d.ts.map +1 -0
  47. package/dist/types/emailTemplates.js +5 -0
  48. package/dist/types/emailTemplates.js.map +1 -0
  49. package/dist/types/events.d.ts +2 -1
  50. package/dist/types/events.d.ts.map +1 -1
  51. package/dist/types/funnels.d.ts +10 -0
  52. package/dist/types/funnels.d.ts.map +1 -1
  53. package/dist/types/index.d.ts +2 -0
  54. package/dist/types/index.d.ts.map +1 -1
  55. package/dist/types/index.js +2 -0
  56. package/dist/types/index.js.map +1 -1
  57. package/dist/types/paymentFlows.d.ts +4 -3
  58. package/dist/types/paymentFlows.d.ts.map +1 -1
  59. package/dist/types/plugins.d.ts +104 -2
  60. package/dist/types/plugins.d.ts.map +1 -1
  61. package/dist/types/processors.d.ts +37 -0
  62. package/dist/types/processors.d.ts.map +1 -1
  63. package/dist/types/stores.d.ts +1 -0
  64. package/dist/types/stores.d.ts.map +1 -1
  65. package/dist/types/webhooks.d.ts +8 -2
  66. package/dist/types/webhooks.d.ts.map +1 -1
  67. package/dist/types/webhooks.js +48 -1
  68. package/dist/types/webhooks.js.map +1 -1
  69. package/package.json +1 -1
package/README.md CHANGED
@@ -17,7 +17,7 @@ Requires Node.js 18+.
17
17
  ```ts
18
18
  import Tagada from '@tagadapay/node-sdk';
19
19
 
20
- const tagada = new Tagada('tgd_live_...');
20
+ const tagada = new Tagada('your-api-key');
21
21
 
22
22
  // List stores
23
23
  const stores = await tagada.stores.list();
@@ -40,20 +40,28 @@ const { payment } = await tagada.payments.process({
40
40
  | `tagada.payments` | Process, refund, and void payments |
41
41
  | `tagada.paymentFlows` | Configure PSP routing (cascade, weighted, failover) |
42
42
  | `tagada.funnels` | Create multi-step funnels (checkout → upsell → thank you) |
43
- | `tagada.plugins` | Deploy pages, instantiate, mount to domains |
43
+ | `tagada.plugins` | Deploy SPAs to edge CDN (`deployDirectory()`), A/B split testing, custom domains |
44
44
  | `tagada.subscriptions` | Create and manage recurring billing |
45
45
  | `tagada.customers` | Look up and manage customers |
46
46
  | `tagada.orders` | Query orders |
47
47
  | `tagada.webhooks` | Register webhook endpoints |
48
- | `tagada.domains` | Add custom domains |
48
+ | `tagada.events` | Query event log, statistics, and audit trail |
49
+ | `tagada.emailTemplates` | Create and manage transactional email templates |
50
+ | `tagada.promotions` | Create and manage discounts |
51
+ | `tagada.promotionCodes` | Generate and manage discount codes |
52
+ | `tagada.offers` | Configure upsells, downsells, and order bumps |
53
+ | `tagada.checkoutOffers` | Manage checkout-time offers |
54
+ | `tagada.blockRules` | Create fraud/block rules |
55
+ | `tagada.paymentInstruments` | Manage vaulted payment methods |
56
+ | `tagada.domains` | Add, verify, configure, and remove custom domains |
49
57
  | `tagada.checkout` | Server-side checkout operations |
50
- | `tagada.processors` | List connected payment processors |
58
+ | `tagada.processors` | List, create, and manage payment processors (incl. Stripe Connect OAuth) |
51
59
 
52
60
  ## Configuration
53
61
 
54
62
  ```ts
55
63
  const tagada = new Tagada({
56
- apiKey: 'tgd_live_...',
64
+ apiKey: 'your-api-key',
57
65
  baseUrl: 'https://app.tagadapay.com/api/public/v1',
58
66
  timeout: 30_000,
59
67
  maxRetries: 2,
@@ -1,7 +1,7 @@
1
1
  import type { RequestOptions, TagadaClientOptions } from './types/common.js';
2
2
  export declare class HttpClient {
3
- private readonly apiKey;
4
- private readonly baseUrl;
3
+ /** @internal */ readonly apiKey: string;
4
+ /** @internal */ readonly baseUrl: string;
5
5
  private readonly timeout;
6
6
  private readonly maxRetries;
7
7
  private readonly apiVersion;
@@ -1 +1 @@
1
- {"version":3,"file":"HttpClient.d.ts","sourceRoot":"","sources":["../src/HttpClient.ts"],"names":[],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,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC;YAoC7F,OAAO;YAgCP,cAAc;YAkDd,mBAAmB;IAuCjC;;;OAGG;IACH,OAAO,CAAC,cAAc;IAkBtB;;OAEG;IACH,OAAO,CAAC,uBAAuB;IA2B/B,OAAO,CAAC,QAAQ;IAehB,OAAO,CAAC,YAAY;IAoBpB,OAAO,CAAC,WAAW;IASnB,OAAO,CAAC,UAAU;CAMnB"}
@@ -1,6 +1,6 @@
1
1
  import { TagadaAPIError, TagadaAuthenticationError, TagadaPermissionError, TagadaNotFoundError, TagadaRateLimitError, TagadaValidationError, TagadaConnectionError, TagadaTimeoutError, } from './errors/index.js';
2
2
  import { sleep } from './utils/sleep.js';
3
- const SDK_VERSION = '0.1.0';
3
+ const SDK_VERSION = '0.2.0';
4
4
  const DEFAULT_BASE_URL = 'https://app.tagadapay.com/api/public/v1';
5
5
  const DEFAULT_TIMEOUT = 30000;
6
6
  const DEFAULT_MAX_RETRIES = 2;
@@ -9,7 +9,7 @@ export class HttpClient {
9
9
  constructor(opts) {
10
10
  if (!opts.apiKey) {
11
11
  throw new TagadaAuthenticationError({
12
- message: 'No API key provided. Set it when initializing Tagada: new Tagada("tgd_live_...")',
12
+ message: 'No API key provided. Set it when initializing Tagada: new Tagada("your-api-key")',
13
13
  });
14
14
  }
15
15
  this.apiKey = opts.apiKey;
package/dist/Tagada.d.ts CHANGED
@@ -18,6 +18,7 @@ import { BlockRules } from './resources/BlockRules.js';
18
18
  import { Plugins } from './resources/Plugins.js';
19
19
  import { Offers } from './resources/Offers.js';
20
20
  import { CheckoutOffers } from './resources/CheckoutOffers.js';
21
+ import { EmailTemplates } from './resources/EmailTemplates.js';
21
22
  /**
22
23
  * The Tagada Node.js SDK client.
23
24
  *
@@ -30,7 +31,7 @@ import { CheckoutOffers } from './resources/CheckoutOffers.js';
30
31
  * ```ts
31
32
  * import Tagada from '@tagadapay/node-sdk';
32
33
  *
33
- * const tagada = new Tagada('tgd_live_...');
34
+ * const tagada = new Tagada('your-api-key');
34
35
  *
35
36
  * // List payments
36
37
  * const payments = await tagada.payments.list({
@@ -88,6 +89,7 @@ export declare class Tagada {
88
89
  readonly plugins: Plugins;
89
90
  readonly offers: Offers;
90
91
  readonly checkoutOffers: CheckoutOffers;
92
+ readonly emailTemplates: EmailTemplates;
91
93
  constructor(apiKeyOrOptions: string | TagadaClientOptions);
92
94
  }
93
95
  //# sourceMappingURL=Tagada.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tagada.d.ts","sourceRoot":"","sources":["../src/Tagada.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,E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H,qBAAa,MAAM;IACjB,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAC5B,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IAC9B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IACtC,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAC5B,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;IACpC,QAAQ,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;IAChD,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAC5B,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC;IAChC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC;IAChC,QAAQ,CAAC,cAAc,EAAE,cAAc,CAAC;IACxC,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC;IAChC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,cAAc,EAAE,cAAc,CAAC;IACxC,QAAQ,CAAC,cAAc,EAAE,cAAc,CAAC;gBAE5B,eAAe,EAAE,MAAM,GAAG,mBAAmB;CA8B1D"}
package/dist/Tagada.js CHANGED
@@ -18,6 +18,7 @@ import { BlockRules } from './resources/BlockRules.js';
18
18
  import { Plugins } from './resources/Plugins.js';
19
19
  import { Offers } from './resources/Offers.js';
20
20
  import { CheckoutOffers } from './resources/CheckoutOffers.js';
21
+ import { EmailTemplates } from './resources/EmailTemplates.js';
21
22
  /**
22
23
  * The Tagada Node.js SDK client.
23
24
  *
@@ -30,7 +31,7 @@ import { CheckoutOffers } from './resources/CheckoutOffers.js';
30
31
  * ```ts
31
32
  * import Tagada from '@tagadapay/node-sdk';
32
33
  *
33
- * const tagada = new Tagada('tgd_live_...');
34
+ * const tagada = new Tagada('your-api-key');
34
35
  *
35
36
  * // List payments
36
37
  * const payments = await tagada.payments.list({
@@ -93,6 +94,7 @@ export class Tagada {
93
94
  this.plugins = new Plugins(client);
94
95
  this.offers = new Offers(client);
95
96
  this.checkoutOffers = new CheckoutOffers(client);
97
+ this.emailTemplates = new EmailTemplates(client);
96
98
  }
97
99
  }
98
100
  //# sourceMappingURL=Tagada.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tagada.js","sourceRoot":"","sources":["../src/Tagada.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,OA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from './Tagada.js';
3
3
  export * from './types/index.js';
4
4
  export * from './errors/index.js';
5
- export type { Payments, Customers, Orders, Stores, Subscriptions, Products, Checkout, PaymentFlows, PaymentInstruments, Webhooks, Funnels, Events, Processors, Domains, Promotions, PromotionCodes, BlockRules, Plugins, Offers, CheckoutOffers, } from './resources/index.js';
5
+ export type { Payments, Customers, Orders, Stores, Subscriptions, Products, Checkout, PaymentFlows, PaymentInstruments, Webhooks, Funnels, Events, Processors, Domains, Promotions, PromotionCodes, BlockRules, Plugins, Offers, CheckoutOffers, EmailTemplates, } from './resources/index.js';
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,MAAM,IAAI,OAAO,EAAE,MAAM,aAAa,CAAC;AAEhD,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAElC,YAAY,EACV,QAAQ,EACR,SAAS,EACT,MAAM,EACN,MAAM,EACN,aAAa,EACb,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,kBAAkB,EAClB,QAAQ,EACR,OAAO,EACP,MAAM,EACN,UAAU,EACV,OAAO,EACP,UAAU,EACV,cAAc,EACd,UAAU,EACV,OAAO,EACP,MAAM,EACN,cAAc,GACf,MAAM,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,MAAM,IAAI,OAAO,EAAE,MAAM,aAAa,CAAC;AAEhD,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAElC,YAAY,EACV,QAAQ,EACR,SAAS,EACT,MAAM,EACN,MAAM,EACN,aAAa,EACb,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,kBAAkB,EAClB,QAAQ,EACR,OAAO,EACP,MAAM,EACN,UAAU,EACV,OAAO,EACP,UAAU,EACV,cAAc,EACd,UAAU,EACV,OAAO,EACP,MAAM,EACN,cAAc,EACd,cAAc,GACf,MAAM,sBAAsB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { BaseResource } from './BaseResource.js';
2
2
  import type { RequestOptions } from '../types/common.js';
3
- import type { CustomDomain, DomainAddParams, DomainVerifyParams, DomainRemoveParams } from '../types/domains.js';
3
+ import type { CustomDomain, DomainAddParams, DomainVerifyParams, DomainRemoveParams, DomainConfigParams, DnsLookupParams, DomainVerifyResponse, DomainConfigResponse, DnsLookupResponse } from '../types/domains.js';
4
4
  export declare class Domains extends BaseResource {
5
5
  /**
6
6
  * List custom domains for the account.
@@ -9,21 +9,30 @@ export declare class Domains extends BaseResource {
9
9
  domains: CustomDomain[];
10
10
  }>;
11
11
  /**
12
- * Add a custom domain.
12
+ * Add a custom domain. Validates format before sending.
13
13
  */
14
14
  add(params: DomainAddParams, opts?: RequestOptions): Promise<{
15
15
  success: boolean;
16
16
  domain: CustomDomain;
17
17
  }>;
18
18
  /**
19
- * Verify DNS configuration for a custom domain.
19
+ * Verify DNS configuration and ownership of a custom domain.
20
20
  */
21
- verify(params: DomainVerifyParams, opts?: RequestOptions): Promise<unknown>;
21
+ verify(params: DomainVerifyParams, opts?: RequestOptions): Promise<DomainVerifyResponse>;
22
22
  /**
23
23
  * Remove a custom domain.
24
24
  */
25
25
  remove(params: DomainRemoveParams, opts?: RequestOptions): Promise<{
26
26
  success: boolean;
27
27
  }>;
28
+ /**
29
+ * Get domain configuration (recommended CNAME, misconfigured status).
30
+ * Useful to display DNS setup instructions to users.
31
+ */
32
+ getConfig(params: DomainConfigParams, opts?: RequestOptions): Promise<DomainConfigResponse>;
33
+ /**
34
+ * Lookup DNS records for a domain. Queries both standard and Google DNS.
35
+ */
36
+ getDnsLookup(params: DnsLookupParams, opts?: RequestOptions): Promise<DnsLookupResponse>;
28
37
  }
29
38
  //# sourceMappingURL=Domains.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Domains.d.ts","sourceRoot":"","sources":["../../src/resources/Domains.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAEjH,qBAAa,OAAQ,SAAQ,YAAY;IACvC;;OAEG;IACG,IAAI,CAAC,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,YAAY,EAAE,CAAA;KAAE,CAAC;IAIvE;;OAEG;IACG,GAAG,CAAC,MAAM,EAAE,eAAe,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,MAAM,EAAE,YAAY,CAAA;KAAE,CAAC;IAI9G;;OAEG;IACG,MAAM,CAAC,MAAM,EAAE,kBAAkB,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;IAIjF;;OAEG;IACG,MAAM,CAAC,MAAM,EAAE,kBAAkB,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC;CAG/F"}
1
+ {"version":3,"file":"Domains.d.ts","sourceRoot":"","sources":["../../src/resources/Domains.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EACV,YAAY,EACZ,eAAe,EACf,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,iBAAiB,EAClB,MAAM,qBAAqB,CAAC;AAI7B,qBAAa,OAAQ,SAAQ,YAAY;IACvC;;OAEG;IACG,IAAI,CAAC,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,YAAY,EAAE,CAAA;KAAE,CAAC;IAIvE;;OAEG;IACG,GAAG,CAAC,MAAM,EAAE,eAAe,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,MAAM,EAAE,YAAY,CAAA;KAAE,CAAC;IAW9G;;OAEG;IACG,MAAM,CAAC,MAAM,EAAE,kBAAkB,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAI9F;;OAEG;IACG,MAAM,CAAC,MAAM,EAAE,kBAAkB,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC;IAI9F;;;OAGG;IACG,SAAS,CAAC,MAAM,EAAE,kBAAkB,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAIjG;;OAEG;IACG,YAAY,CAAC,MAAM,EAAE,eAAe,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,iBAAiB,CAAC;CAG/F"}
@@ -1,4 +1,5 @@
1
1
  import { BaseResource } from './BaseResource.js';
2
+ const DOMAIN_REGEX = /^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/;
2
3
  export class Domains extends BaseResource {
3
4
  /**
4
5
  * List custom domains for the account.
@@ -7,13 +8,18 @@ export class Domains extends BaseResource {
7
8
  return this._post('/domains/list', {}, opts);
8
9
  }
9
10
  /**
10
- * Add a custom domain.
11
+ * Add a custom domain. Validates format before sending.
11
12
  */
12
13
  async add(params, opts) {
13
- return this._post('/domains/add', params, opts);
14
+ const normalized = params.domain?.trim().toLowerCase();
15
+ if (!normalized || !DOMAIN_REGEX.test(normalized)) {
16
+ throw new Error(`Invalid domain format "${params.domain}". ` +
17
+ 'Expected a valid domain like checkout.example.com');
18
+ }
19
+ return this._post('/domains/add', { ...params, domain: normalized }, opts);
14
20
  }
15
21
  /**
16
- * Verify DNS configuration for a custom domain.
22
+ * Verify DNS configuration and ownership of a custom domain.
17
23
  */
18
24
  async verify(params, opts) {
19
25
  return this._post('/domains/verify', params, opts);
@@ -24,5 +30,18 @@ export class Domains extends BaseResource {
24
30
  async remove(params, opts) {
25
31
  return this._post('/domains/remove', params, opts);
26
32
  }
33
+ /**
34
+ * Get domain configuration (recommended CNAME, misconfigured status).
35
+ * Useful to display DNS setup instructions to users.
36
+ */
37
+ async getConfig(params, opts) {
38
+ return this._post('/domains/config', params, opts);
39
+ }
40
+ /**
41
+ * Lookup DNS records for a domain. Queries both standard and Google DNS.
42
+ */
43
+ async getDnsLookup(params, opts) {
44
+ return this._post('/domains/dns-lookup', params, opts);
45
+ }
27
46
  }
28
47
  //# sourceMappingURL=Domains.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Domains.js","sourceRoot":"","sources":["../../src/resources/Domains.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAIjD,MAAM,OAAO,OAAQ,SAAQ,YAAY;IACvC;;OAEG;IACH,KAAK,CAAC,IAAI,CAAC,IAAqB;QAC9B,OAAO,IAAI,CAAC,KAAK,CAA8B,eAAe,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;IAC5E,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,GAAG,CAAC,MAAuB,EAAE,IAAqB;QACtD,OAAO,IAAI,CAAC,KAAK,CAAC,cAAc,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IAClD,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CAAC,MAA0B,EAAE,IAAqB;QAC5D,OAAO,IA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AC,MAAM,CAAC,MAA0B,EAAE,IAAqB;QAC5D,OAAO,IAAI,CAAC,KAAK,CAAC,iBAAiB,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IACrD,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,SAAS,CAAC,MAA0B,EAAE,IAAqB;QAC/D,OAAO,IAAI,CAAC,KAAK,CAAuB,iBAAiB,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IAC3E,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,YAAY,CAAC,MAAuB,EAAE,IAAqB;QAC/D,OAAO,IAAI,CAAC,KAAK,CAAoB,qBAAqB,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IAC5E,CAAC;CACF"}
@@ -0,0 +1,66 @@
1
+ import { BaseResource } from './BaseResource.js';
2
+ import type { RequestOptions } from '../types/common.js';
3
+ import type { EmailTemplate, EmailTemplateCreateParams, EmailTemplateUpdateParams, EmailTemplateListParams, EmailTemplateTestParams, EmailTemplateTypeInfo } from '../types/emailTemplates.js';
4
+ export declare class EmailTemplates extends BaseResource {
5
+ /**
6
+ * List all email templates for a store.
7
+ *
8
+ * @example
9
+ * const templates = await tagada.emailTemplates.list({ storeId: 'store_xxx' });
10
+ */
11
+ list(params: EmailTemplateListParams, opts?: RequestOptions): Promise<EmailTemplate[]>;
12
+ /**
13
+ * Create a new email template.
14
+ *
15
+ * @example
16
+ * const template = await tagada.emailTemplates.create({
17
+ * storeId: 'store_xxx',
18
+ * type: 'order_paid',
19
+ * name: 'Order Confirmation',
20
+ * subject: { en: 'Your order #{{orderNumber}} is confirmed!' },
21
+ * active: true,
22
+ * });
23
+ */
24
+ create(params: EmailTemplateCreateParams, opts?: RequestOptions): Promise<EmailTemplate>;
25
+ /**
26
+ * Update an existing email template.
27
+ *
28
+ * @example
29
+ * await tagada.emailTemplates.update('et_xxx', {
30
+ * subject: { en: 'Updated subject line' },
31
+ * active: false,
32
+ * });
33
+ */
34
+ update(id: string, data: EmailTemplateUpdateParams, opts?: RequestOptions): Promise<EmailTemplate>;
35
+ /**
36
+ * Delete an email template.
37
+ *
38
+ * @example
39
+ * await tagada.emailTemplates.del('et_xxx', 'store_xxx');
40
+ */
41
+ del(id: string, storeId: string, opts?: RequestOptions): Promise<{
42
+ success: boolean;
43
+ }>;
44
+ /**
45
+ * Send a test email using a template.
46
+ *
47
+ * @example
48
+ * await tagada.emailTemplates.test({
49
+ * templateId: 'et_xxx',
50
+ * to: 'test@example.com',
51
+ * locale: 'en',
52
+ * });
53
+ */
54
+ test(params: EmailTemplateTestParams, opts?: RequestOptions): Promise<{
55
+ success: boolean;
56
+ }>;
57
+ /**
58
+ * List all available email template types with labels and descriptions.
59
+ *
60
+ * @example
61
+ * const types = await tagada.emailTemplates.listTypes();
62
+ * // [{ type: 'order_paid', label: 'Order Paid', description: '...' }, ...]
63
+ */
64
+ listTypes(opts?: RequestOptions): Promise<EmailTemplateTypeInfo[]>;
65
+ }
66
+ //# sourceMappingURL=EmailTemplates.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmailTemplates.d.ts","sourceRoot":"","sources":["../../src/resources/EmailTemplates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EACV,aAAa,EACb,yBAAyB,EACzB,yBAAyB,EACzB,uBAAuB,EACvB,uBAAuB,EACvB,qBAAqB,EACtB,MAAM,4BAA4B,CAAC;AAEpC,qBAAa,cAAe,SAAQ,YAAY;IAC9C;;;;;OAKG;IACG,IAAI,CAAC,MAAM,EAAE,uBAAuB,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;IAI5F;;;;;;;;;;;OAWG;IACG,MAAM,CAAC,MAAM,EAAE,yBAAyB,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;IAI9F;;;;;;;;OAQG;IACG,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,yBAAyB,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;IAIxG;;;;;OAKG;IACG,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC;IAI5F;;;;;;;;;OASG;IACG,IAAI,CAAC,MAAM,EAAE,uBAAuB,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC;IAIjG;;;;;;OAMG;IACG,SAAS,CAAC,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,qBAAqB,EAAE,CAAC;CAGzE"}
@@ -0,0 +1,72 @@
1
+ import { BaseResource } from './BaseResource.js';
2
+ export class EmailTemplates extends BaseResource {
3
+ /**
4
+ * List all email templates for a store.
5
+ *
6
+ * @example
7
+ * const templates = await tagada.emailTemplates.list({ storeId: 'store_xxx' });
8
+ */
9
+ async list(params, opts) {
10
+ return this._post('/email-templates/list', params, opts);
11
+ }
12
+ /**
13
+ * Create a new email template.
14
+ *
15
+ * @example
16
+ * const template = await tagada.emailTemplates.create({
17
+ * storeId: 'store_xxx',
18
+ * type: 'order_paid',
19
+ * name: 'Order Confirmation',
20
+ * subject: { en: 'Your order #{{orderNumber}} is confirmed!' },
21
+ * active: true,
22
+ * });
23
+ */
24
+ async create(params, opts) {
25
+ return this._post('/email-templates', params, opts);
26
+ }
27
+ /**
28
+ * Update an existing email template.
29
+ *
30
+ * @example
31
+ * await tagada.emailTemplates.update('et_xxx', {
32
+ * subject: { en: 'Updated subject line' },
33
+ * active: false,
34
+ * });
35
+ */
36
+ async update(id, data, opts) {
37
+ return this._post('/email-templates/update', { id, data }, opts);
38
+ }
39
+ /**
40
+ * Delete an email template.
41
+ *
42
+ * @example
43
+ * await tagada.emailTemplates.del('et_xxx', 'store_xxx');
44
+ */
45
+ async del(id, storeId, opts) {
46
+ return this._post('/email-templates/delete', { id, storeId }, opts);
47
+ }
48
+ /**
49
+ * Send a test email using a template.
50
+ *
51
+ * @example
52
+ * await tagada.emailTemplates.test({
53
+ * templateId: 'et_xxx',
54
+ * to: 'test@example.com',
55
+ * locale: 'en',
56
+ * });
57
+ */
58
+ async test(params, opts) {
59
+ return this._post('/email-templates/test', params, opts);
60
+ }
61
+ /**
62
+ * List all available email template types with labels and descriptions.
63
+ *
64
+ * @example
65
+ * const types = await tagada.emailTemplates.listTypes();
66
+ * // [{ type: 'order_paid', label: 'Order Paid', description: '...' }, ...]
67
+ */
68
+ async listTypes(opts) {
69
+ return this._post('/email-templates/types', {}, opts);
70
+ }
71
+ }
72
+ //# sourceMappingURL=EmailTemplates.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EmailTemplates.js","sourceRoot":"","sources":["../../src/resources/EmailTemplates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAWjD,MAAM,OAAO,cAAe,SAAQ,YAAY;IAC9C;;;;;OAKG;IACH,KAAK,CAAC,IAAI,CAAC,MAA+B,EAAE,IAAqB;QAC/D,OAAO,IAAI,CAAC,KAAK,CAAkB,uBAAuB,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IAC5E,CAAC;IAED;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,MAAM,CAAC,MAAiC,EAAE,IAAqB;QACnE,OAAO,IAAI,CAAC,KAAK,CAAgB,kBAAkB,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IACrE,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,MAAM,CAAC,EAAU,EAAE,IAA+B,EAAE,IAAqB;QAC7E,OAAO,IAAI,CAAC,KAAK,CAAgB,yBAAyB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,CAAC,CAAC;IAClF,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,GAAG,CAAC,EAAU,EAAE,OAAe,EAAE,IAAqB;QAC1D,OAAO,IAAI,CAAC,KAAK,CAAuB,yBAAyB,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,CAAC,CAAC;IAC5F,CAAC;IAED;;;;;;;;;OASG;IACH,KAAK,CAAC,IAAI,CAAC,MAA+B,EAAE,IAAqB;QAC/D,OAAO,IAAI,CAAC,KAAK,CAAuB,uBAAuB,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IACjF,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,SAAS,CAAC,IAAqB;QACnC,OAAO,IAAI,CAAC,KAAK,CAA0B,wBAAwB,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;IACjF,CAAC;CACF"}
@@ -1,6 +1,6 @@
1
1
  import { BaseResource } from './BaseResource.js';
2
2
  import type { RequestOptions } from '../types/common.js';
3
- import type { Funnel, FunnelCreateParams, FunnelUpdateParams, FunnelPreviewSessionParams, FunnelSession } from '../types/funnels.js';
3
+ import type { Funnel, FunnelCreateParams, FunnelUpdateParams, FunnelPromoteParams, FunnelPromoteResult, FunnelPreviewSessionParams, FunnelSession } from '../types/funnels.js';
4
4
  export declare class Funnels extends BaseResource {
5
5
  /**
6
6
  * List all funnels for a store.
@@ -27,6 +27,11 @@ export declare class Funnels extends BaseResource {
27
27
  success: boolean;
28
28
  routesRemoved: number;
29
29
  }>;
30
+ /**
31
+ * Promote the staging configuration to production on a custom domain.
32
+ * The server handles instance cloning, route setup, and prebuilds.
33
+ */
34
+ promote(funnelId: string, params: FunnelPromoteParams, opts?: RequestOptions): Promise<FunnelPromoteResult>;
30
35
  /**
31
36
  * Create a preview session for testing a funnel step in the builder.
32
37
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Funnels.d.ts","sourceRoot":"","sources":["../../src/resources/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AAQ,EAAE,MAAM,EAChB,MAAM,EAAE,0BAA0B,EAClC,IAAI,CAAC,EAAE,cAAc,GACpB,OAAO,CAAC,aAAa,CAAC;IAIzB;;OAEG;IACG,eAAe,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;CAGxF"}
@@ -30,6 +30,13 @@ export class Funnels extends BaseResource {
30
30
  async del(funnelId, storeId, opts) {
31
31
  return this._del(`/funnels/${funnelId}?storeId=${encodeURIComponent(storeId)}`, undefined, opts);
32
32
  }
33
+ /**
34
+ * Promote the staging configuration to production on a custom domain.
35
+ * The server handles instance cloning, route setup, and prebuilds.
36
+ */
37
+ async promote(funnelId, params, opts) {
38
+ return this._post(`/funnels/${funnelId}/promote`, params, opts);
39
+ }
33
40
  /**
34
41
  * Create a preview session for testing a funnel step in the builder.
35
42
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Funnels.js","sourceRoot":"","sources":["../../src/resources/Funnels.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAUjD,MAAM,OAAO,OAAQ,SAAQ,YAAY;IACvC;;OAEG;IACH,KAAK,CAAC,IAAI,CAAC,OAAe,EAAE,IAAqB;QAC/C,OAAO,IAAI,CAAC,IAAI,CAAwB,WAAW,OAAO,UAAU,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC;IACzF,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,QAAQ,CAAC,QAAgB,EAAE,IAAqB;QACpD,OAAO,IAAI,CAAC,IAAI,CAAS,YAAY,QAAQ,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC;IACpE,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CAAC,MAA0B,EAAE,IAAqB;QAC5D,OAAO,IAAI,CAAC,KAAK,CAAS,UAAU,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IACtD,CAAC;IAED;;OAEG;IACH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;;OAEG;IACH,KAAK,CAAC,MAAM,CAAC,MAA0B,EAAE,IAAqB;QAC5D,OAAO,IAAI,CAAC,KAAK,CAAS,UAAU,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IACtD,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CAAC,QAAgB,EAAE,MAA0B,EAAE,IAAqB;QAC9E,OAAO,IAAI,CAAC,IAAI,CAAC,YAAY,QAAQ,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IACzD,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,GAAG,CAAC,QAAgB,EAAE,OAAe,EAAE,IAAqB;QAChE,OAAO,IAAI,CAAC,IAAI,CAAC,YAAY,QAAQ,YAAY,kBAAkB,CAAC,OAAO,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC;IACnG,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,OAAO,CAAC,QAAgB,EAAE,MAA2B,EAAE,IAAqB;QAChF,OAAO,IAAI,CAAC,KAAK,CAAsB,YAAY,QAAQ,UAAU,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IACvF,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,oBAAoB,CACxB,QAAgB,EAChB,MAAkC,EAClC,IAAqB;QAErB,OAAO,IAAI,CAAC,KAAK,CAAgB,YAAY,QAAQ,kBAAkB,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IACzF,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,eAAe,CAAC,SAAiB,EAAE,IAAqB;QAC5D,OAAO,IAAI,CAAC,IAAI,CAAgB,oBAAoB,SAAS,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC;IACpF,CAAC;CACF"}
@@ -34,14 +34,14 @@ export declare class PaymentFlows extends BaseResource {
34
34
  * data: {
35
35
  * name: 'Primary Flow',
36
36
  * strategy: 'cascade',
37
- * fallbackMode: 'sequential',
37
+ * fallbackMode: true,
38
38
  * maxFallbackRetries: 3,
39
39
  * threeDsEnabled: true,
40
40
  * stickyProcessorEnabled: true,
41
41
  * pickProcessorStrategy: 'weighted',
42
42
  * processorConfigs: [
43
- * { processorId: 'proc_stripe', weight: 70 },
44
- * { processorId: 'proc_adyen', weight: 30 },
43
+ * { processorId: 'proc_stripe', weight: 70, disabled: false, nonStickable: false },
44
+ * { processorId: 'proc_adyen', weight: 30, disabled: false, nonStickable: false },
45
45
  * ],
46
46
  * fallbackProcessorConfigs: [
47
47
  * { processorId: 'proc_nmi', orderIndex: 0 },
@@ -37,14 +37,14 @@ export class PaymentFlows extends BaseResource {
37
37
  * data: {
38
38
  * name: 'Primary Flow',
39
39
  * strategy: 'cascade',
40
- * fallbackMode: 'sequential',
40
+ * fallbackMode: true,
41
41
  * maxFallbackRetries: 3,
42
42
  * threeDsEnabled: true,
43
43
  * stickyProcessorEnabled: true,
44
44
  * pickProcessorStrategy: 'weighted',
45
45
  * processorConfigs: [
46
- * { processorId: 'proc_stripe', weight: 70 },
47
- * { processorId: 'proc_adyen', weight: 30 },
46
+ * { processorId: 'proc_stripe', weight: 70, disabled: false, nonStickable: false },
47
+ * { processorId: 'proc_adyen', weight: 30, disabled: false, nonStickable: false },
48
48
  * ],
49
49
  * fallbackProcessorConfigs: [
50
50
  * { processorId: 'proc_nmi', orderIndex: 0 },