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.
@@ -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, merchant
189
- * 5644, 4 Nov 2026: all four values answered 201.
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 5644, 29 Oct 2026). Apps that offer the list as suggestions
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").
@@ -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, merchant
189
- * 5644, 4 Nov 2026: all four values answered 201.
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 5644, 29 Oct 2026). Apps that offer the list as suggestions
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").
@@ -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 (e.g. AdminUI ≤ 0.1) stored directly in
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 AdminUI shapes `{ <collection>: { new: {...} } }` / `{ updated: {...} }`,
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