@waffo/pancake-ts 0.1.7 → 0.1.9

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/CHANGELOG.md CHANGED
@@ -4,6 +4,35 @@ All notable changes to `@waffo/pancake-ts` will be documented in this file.
4
4
 
5
5
  Format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), versioning follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [0.1.9] - 2026-04-02
8
+
9
+ ### Added
10
+
11
+ - **Checkout convenience methods** — `client.checkout.authenticated.create()` and `client.checkout.anonymous.create()` wrap the full checkout flow into a single call. Authenticated mode issues a session token, creates a checkout session, and returns a URL with the token appended as a URL fragment. Anonymous mode creates a session directly.
12
+ - **Types** — `AuthenticatedCheckoutParams`, `AuthenticatedCheckoutResult`, `AnonymousCheckoutParams`
13
+ - **Resources** — `CheckoutAnonymousResource`, `CheckoutAuthenticatedResource` (accessed via `client.checkout.anonymous` / `client.checkout.authenticated`)
14
+
15
+ ### Changed
16
+
17
+ - **Base URL** — Default API endpoint changed from `waffo-pancake-auth-service.vercel.app` to `api.waffo.ai`
18
+ - **Package** — `docs/` directory now included in npm package (`files` field)
19
+ - **Docs** — `docs/api-reference.md` synced with endpoint docs: fixed `storeId` required status, added `BillingDetail` conditional field rules, fixed price amount format (display string, not integer), added subscription product group UUID note
20
+ - **Docs** — `docs/graphql-guide.md` rewritten: corrected query names (`onetimeOrders` / `subscriptionOrders`), added product version queries, exchange rate query, webhook/email delivery log queries, 9 analytics queries (`orderStatistics`, `paymentStatistics`, `productStatistics`, `trendAnalysis`, `distributionAnalysis`, `customerAnalysis`, `taxAnalysis`, `subscriptionAnalysis`, `refundTicketAnalysis`), updated count query list and filter examples
21
+ - **Docs** — `docs/webhook-guide.md` fixed `amount` / `taxAmount` type from `number` to `string` (display format), added retry mechanism section with delivery status table
22
+ - **README** — Reorganized by use-case priority (checkout → webhooks → GraphQL → programmatic management), added checkout mode comparison and recommendation rationale
23
+
24
+ ## [0.1.8] - 2026-03-20
25
+
26
+ ### Added
27
+
28
+ - **Types** — `UpdateStoreParams` adds optional `supportEmail` and `website` fields (`string | null`) with JSDoc
29
+ - **Types** — `ErrorLayer` enum adds `Ticket = "ticket"` value
30
+
31
+ ### Changed
32
+
33
+ - **Resources** — All resource method calls now use explicit generic type parameters (`http.post<T>()`) for improved type safety
34
+ - **README** — Corrected Node requirement to "Node >= 20" and build output to "ESM + CJS"
35
+
7
36
  ## [0.1.7] - 2026-03-20
8
37
 
9
38
  ### Added
@@ -29,7 +58,7 @@ Remove `taxIncluded` from all `PriceInfo` / `Prices` objects:
29
58
 
30
59
  ```diff
31
60
  const { product } = await client.onetimeProducts.create({
32
- storeId: "store_xxx",
61
+ storeId: "STO_xxx",
33
62
  name: "My Product",
34
63
  prices: {
35
64
  - USD: { amount: 2900, taxIncluded: false, taxCategory: "digital_goods" },
@@ -42,7 +71,7 @@ Remove `isPublic` from `stores.update()` calls:
42
71
 
43
72
  ```diff
44
73
  const { store } = await client.stores.update({
45
- id: "store_xxx",
74
+ id: "STO_xxx",
46
75
  - isPublic: true,
47
76
  name: "Updated Name",
48
77
  });