react-shopwave-connect 0.4.5 → 0.4.6
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 +9 -9
- package/dist/core/index.cjs +7 -7
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +15 -15
- package/dist/core/index.d.ts +15 -15
- package/dist/core/index.js +7 -7
- package/dist/core/index.js.map +1 -1
- package/dist/hooks/index.cjs +3 -3
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.cts +6 -6
- package/dist/hooks/index.d.ts +6 -6
- package/dist/hooks/index.js +3 -3
- package/dist/hooks/index.js.map +1 -1
- package/dist/index.cjs +7 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +15 -15
- package/dist/index.d.ts +15 -15
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/next/index.cjs +2 -2
- package/dist/next/index.cjs.map +1 -1
- package/dist/next/index.d.cts +3 -3
- package/dist/next/index.d.ts +3 -3
- package/dist/next/index.js +2 -2
- package/dist/next/index.js.map +1 -1
- package/dist/server/index.cjs +2 -2
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.d.cts +5 -5
- package/dist/server/index.d.ts +5 -5
- package/dist/server/index.js +2 -2
- package/dist/server/index.js.map +1 -1
- package/package.json +5 -1
package/dist/next/index.d.cts
CHANGED
|
@@ -185,8 +185,8 @@ declare const UPLOAD_KINDS: Readonly<Record<UploadKind, string>>;
|
|
|
185
185
|
/**
|
|
186
186
|
* The role an image plays, sent to Shopwave as the uploader's `prefix` header.
|
|
187
187
|
* The uploader names the file `<prefix>_<hash>.<ext>`, so the role travels with
|
|
188
|
-
* the file wherever a record stores it (a product's `images`). Live,
|
|
189
|
-
*
|
|
188
|
+
* the file wherever a record stores it (a product's `images`). Live, test
|
|
189
|
+
* merchant, 4 Nov 2026: all four values answered 201.
|
|
190
190
|
* - `product`: a product gallery image;
|
|
191
191
|
* - `product_thumbnail`: the product's lead image, shown in lists;
|
|
192
192
|
* - `variant` / `variant_thumbnail`: a variant's own image and its lead image
|
|
@@ -208,7 +208,7 @@ declare const UPLOAD_PREFIXES: ReadonlyArray<UploadPrefix>;
|
|
|
208
208
|
* on the merchant's products. No parameters. The API reference says
|
|
209
209
|
* "internal SKU tags are excluded", but the live API includes system tags
|
|
210
210
|
* written by imports and syncs (`PID-133`, `VID-137`, `#Hash:…`, `upc-…`;
|
|
211
|
-
* test merchant
|
|
211
|
+
* a test merchant, 29 Oct 2026). Apps that offer the list as suggestions
|
|
212
212
|
* filter those themselves. Tags of deleted products drop out of the list.
|
|
213
213
|
* - productInstanceTags: `GET /product/instance/tags` → `{ tags: string[] }`,
|
|
214
214
|
* the same for price instances (channels such as "Eat In", "Takeout").
|
package/dist/next/index.d.ts
CHANGED
|
@@ -185,8 +185,8 @@ declare const UPLOAD_KINDS: Readonly<Record<UploadKind, string>>;
|
|
|
185
185
|
/**
|
|
186
186
|
* The role an image plays, sent to Shopwave as the uploader's `prefix` header.
|
|
187
187
|
* The uploader names the file `<prefix>_<hash>.<ext>`, so the role travels with
|
|
188
|
-
* the file wherever a record stores it (a product's `images`). Live,
|
|
189
|
-
*
|
|
188
|
+
* the file wherever a record stores it (a product's `images`). Live, test
|
|
189
|
+
* merchant, 4 Nov 2026: all four values answered 201.
|
|
190
190
|
* - `product`: a product gallery image;
|
|
191
191
|
* - `product_thumbnail`: the product's lead image, shown in lists;
|
|
192
192
|
* - `variant` / `variant_thumbnail`: a variant's own image and its lead image
|
|
@@ -208,7 +208,7 @@ declare const UPLOAD_PREFIXES: ReadonlyArray<UploadPrefix>;
|
|
|
208
208
|
* on the merchant's products. No parameters. The API reference says
|
|
209
209
|
* "internal SKU tags are excluded", but the live API includes system tags
|
|
210
210
|
* written by imports and syncs (`PID-133`, `VID-137`, `#Hash:…`, `upc-…`;
|
|
211
|
-
* test merchant
|
|
211
|
+
* a test merchant, 29 Oct 2026). Apps that offer the list as suggestions
|
|
212
212
|
* filter those themselves. Tags of deleted products drop out of the list.
|
|
213
213
|
* - productInstanceTags: `GET /product/instance/tags` → `{ tags: string[] }`,
|
|
214
214
|
* the same for price instances (channels such as "Eat In", "Takeout").
|
package/dist/next/index.js
CHANGED
|
@@ -48,7 +48,7 @@ function tokenFromResponse(response, previous, now = Date.now()) {
|
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
50
50
|
* Reads a token from session storage. Accepts both the current shape and the
|
|
51
|
-
* legacy raw response that older apps
|
|
51
|
+
* legacy raw response that older apps stored directly in
|
|
52
52
|
* the session, so existing sessions survive an upgrade.
|
|
53
53
|
*/
|
|
54
54
|
function normalizeStoredToken(raw) {
|
|
@@ -478,7 +478,7 @@ function isPlainObject(value) {
|
|
|
478
478
|
*
|
|
479
479
|
* Accepts:
|
|
480
480
|
* - the SDK ≥ 0.3 shape `{ <collection>: { "0": {...}, "1": {...} } }` (refs kept),
|
|
481
|
-
* - the older
|
|
481
|
+
* - the older app shapes `{ <collection>: { new: {...} } }` / `{ updated: {...} }`,
|
|
482
482
|
* - a bare entity object `{ title: … }`.
|
|
483
483
|
*
|
|
484
484
|
* With `forcedId` (item routes) exactly one entity is allowed and its `id` is
|