@closeloop/sdk 0.1.4 → 0.1.5

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.
@@ -580,9 +580,9 @@ interface PaymentSuccessPayload {
580
580
  */
581
581
  planName: string;
582
582
  /**
583
- * Payment amount in USDC
583
+ * Payment price in USDC
584
584
  */
585
- amount: number;
585
+ price: number;
586
586
  /**
587
587
  * Wallet address of the payer
588
588
  */
@@ -580,9 +580,9 @@ interface PaymentSuccessPayload {
580
580
  */
581
581
  planName: string;
582
582
  /**
583
- * Payment amount in USDC
583
+ * Payment price in USDC
584
584
  */
585
- amount: number;
585
+ price: number;
586
586
  /**
587
587
  * Wallet address of the payer
588
588
  */
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- export { A as AuthenticationError, B as Balances, k as BatchConsumeParams, l as BatchConsumeResponse, C as CloseLoop, c as CloseLoopError, a as CloseLoopOptions, i as ConsumeCreditsParams, j as ConsumeCreditsResponse, m as CreditBalance, r as CreditStats, o as CreditTransaction, b as Credits, d as CreditsExpiredError, v as CreditsExpiredPayload, u as CreditsLowPayload, G as GetBalanceParams, I as InsufficientCreditsError, L as ListBalancesParams, n as ListBalancesResponse, p as ListTransactionsParams, q as ListTransactionsResponse, N as NetworkError, e as NotFoundError, P as PaymentSuccessPayload, R as RateLimitError, f as ValidationError, g as VerifyCreditsParams, h as VerifyCreditsResponse, V as VerifyWebhookParams, t as WebhookEvent, s as WebhookEventType, w as WebhookPayload, W as Webhooks } from './errors-CmMqVxNU.mjs';
1
+ export { A as AuthenticationError, B as Balances, k as BatchConsumeParams, l as BatchConsumeResponse, C as CloseLoop, c as CloseLoopError, a as CloseLoopOptions, i as ConsumeCreditsParams, j as ConsumeCreditsResponse, m as CreditBalance, r as CreditStats, o as CreditTransaction, b as Credits, d as CreditsExpiredError, v as CreditsExpiredPayload, u as CreditsLowPayload, G as GetBalanceParams, I as InsufficientCreditsError, L as ListBalancesParams, n as ListBalancesResponse, p as ListTransactionsParams, q as ListTransactionsResponse, N as NetworkError, e as NotFoundError, P as PaymentSuccessPayload, R as RateLimitError, f as ValidationError, g as VerifyCreditsParams, h as VerifyCreditsResponse, V as VerifyWebhookParams, t as WebhookEvent, s as WebhookEventType, w as WebhookPayload, W as Webhooks } from './errors-CNnLzjDZ.mjs';
2
2
 
3
3
  /**
4
4
  * Generic schema interface for validation
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { A as AuthenticationError, B as Balances, k as BatchConsumeParams, l as BatchConsumeResponse, C as CloseLoop, c as CloseLoopError, a as CloseLoopOptions, i as ConsumeCreditsParams, j as ConsumeCreditsResponse, m as CreditBalance, r as CreditStats, o as CreditTransaction, b as Credits, d as CreditsExpiredError, v as CreditsExpiredPayload, u as CreditsLowPayload, G as GetBalanceParams, I as InsufficientCreditsError, L as ListBalancesParams, n as ListBalancesResponse, p as ListTransactionsParams, q as ListTransactionsResponse, N as NetworkError, e as NotFoundError, P as PaymentSuccessPayload, R as RateLimitError, f as ValidationError, g as VerifyCreditsParams, h as VerifyCreditsResponse, V as VerifyWebhookParams, t as WebhookEvent, s as WebhookEventType, w as WebhookPayload, W as Webhooks } from './errors-CmMqVxNU.js';
1
+ export { A as AuthenticationError, B as Balances, k as BatchConsumeParams, l as BatchConsumeResponse, C as CloseLoop, c as CloseLoopError, a as CloseLoopOptions, i as ConsumeCreditsParams, j as ConsumeCreditsResponse, m as CreditBalance, r as CreditStats, o as CreditTransaction, b as Credits, d as CreditsExpiredError, v as CreditsExpiredPayload, u as CreditsLowPayload, G as GetBalanceParams, I as InsufficientCreditsError, L as ListBalancesParams, n as ListBalancesResponse, p as ListTransactionsParams, q as ListTransactionsResponse, N as NetworkError, e as NotFoundError, P as PaymentSuccessPayload, R as RateLimitError, f as ValidationError, g as VerifyCreditsParams, h as VerifyCreditsResponse, V as VerifyWebhookParams, t as WebhookEvent, s as WebhookEventType, w as WebhookPayload, W as Webhooks } from './errors-CNnLzjDZ.js';
2
2
 
3
3
  /**
4
4
  * Generic schema interface for validation
package/dist/nextjs.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { NextRequest, NextResponse } from 'next/server';
2
- import { C as CloseLoop } from './errors-CmMqVxNU.mjs';
3
- export { A as AuthenticationError, c as CloseLoopError, a as CloseLoopOptions, d as CreditsExpiredError, I as InsufficientCreditsError, N as NetworkError, e as NotFoundError, R as RateLimitError, f as ValidationError } from './errors-CmMqVxNU.mjs';
2
+ import { C as CloseLoop } from './errors-CNnLzjDZ.mjs';
3
+ export { A as AuthenticationError, c as CloseLoopError, a as CloseLoopOptions, d as CreditsExpiredError, I as InsufficientCreditsError, N as NetworkError, e as NotFoundError, R as RateLimitError, f as ValidationError } from './errors-CNnLzjDZ.mjs';
4
4
 
5
5
  /**
6
6
  * Options for the creditGate middleware
package/dist/nextjs.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { NextRequest, NextResponse } from 'next/server';
2
- import { C as CloseLoop } from './errors-CmMqVxNU.js';
3
- export { A as AuthenticationError, c as CloseLoopError, a as CloseLoopOptions, d as CreditsExpiredError, I as InsufficientCreditsError, N as NetworkError, e as NotFoundError, R as RateLimitError, f as ValidationError } from './errors-CmMqVxNU.js';
2
+ import { C as CloseLoop } from './errors-CNnLzjDZ.js';
3
+ export { A as AuthenticationError, c as CloseLoopError, a as CloseLoopOptions, d as CreditsExpiredError, I as InsufficientCreditsError, N as NetworkError, e as NotFoundError, R as RateLimitError, f as ValidationError } from './errors-CNnLzjDZ.js';
4
4
 
5
5
  /**
6
6
  * Options for the creditGate middleware
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@closeloop/sdk",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Official Node.js SDK for CloseLoop credit billing system",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -63,8 +63,9 @@
63
63
  "lint": "eslint src/",
64
64
  "typecheck": "tsc --noEmit",
65
65
  "login": "pnpm login",
66
- "minor": "pnpm version minor",
67
- "major": "pnpm version minor",
68
- "version": "pnpm version patch"
66
+ "update-minor": "pnpm version minor",
67
+ "update-major": "pnpm version minor",
68
+ "update-patch": "pnpm version patch",
69
+ "update-publish": "pnpm publish --access public --no-git-checks"
69
70
  }
70
71
  }