@waffo/pancake-ts 0.3.3 → 0.3.4
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 +10 -0
- package/dist/index.cjs +12 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +25 -7
- package/dist/index.d.ts +25 -7
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,16 @@ 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.3.4] - 2026-04-14
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
|
|
11
|
+
- **Store settings partial update types** — `UpdateStoreParams.webhookSettings`, `notificationSettings`, and `checkoutSettings` now use `Partial<>` types, allowing individual sub-fields to be omitted (kept unchanged) or set to `null` (cleared). Previously all sub-fields were required when passing a settings object.
|
|
12
|
+
|
|
13
|
+
### Documentation
|
|
14
|
+
|
|
15
|
+
- **`stores.update()` JSDoc** — Added partial update semantics explanation and example for clearing individual webhook URLs.
|
|
16
|
+
|
|
7
17
|
## [0.3.2] - 2026-04-10
|
|
8
18
|
|
|
9
19
|
### Fixed
|
package/dist/index.cjs
CHANGED
|
@@ -828,14 +828,26 @@ var StoresResource = class {
|
|
|
828
828
|
/**
|
|
829
829
|
* Update an existing store's settings.
|
|
830
830
|
*
|
|
831
|
+
* Settings objects (`webhookSettings`, `notificationSettings`, `checkoutSettings`)
|
|
832
|
+
* support partial updates: omitted sub-fields keep existing values, `null` clears
|
|
833
|
+
* a field. Pass the entire settings object as `null` to clear all fields.
|
|
834
|
+
*
|
|
831
835
|
* @param params - Fields to update (only provided fields are changed)
|
|
832
836
|
* @returns Updated store entity
|
|
833
837
|
*
|
|
834
838
|
* @example
|
|
839
|
+
* // Update name
|
|
835
840
|
* const { store } = await client.stores.update({
|
|
836
841
|
* id: "STO_xxx",
|
|
837
842
|
* name: "Updated Name",
|
|
838
843
|
* });
|
|
844
|
+
*
|
|
845
|
+
* @example
|
|
846
|
+
* // Clear test webhook URL while keeping other webhook settings
|
|
847
|
+
* const { store } = await client.stores.update({
|
|
848
|
+
* id: "STO_xxx",
|
|
849
|
+
* webhookSettings: { testWebhookUrl: null },
|
|
850
|
+
* });
|
|
839
851
|
*/
|
|
840
852
|
async update(params) {
|
|
841
853
|
validateShortId("id", params.id, "STO");
|