@tallyui/core 3.0.0-next.2 → 3.0.1

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/dist/index.d.ts CHANGED
@@ -569,9 +569,11 @@ interface TallyConnector {
569
569
  * block discounts until the cashier signed in again. `undefined` means
570
570
  * the read was inconclusive (offline or a server error), not version 1;
571
571
  * see `resolveCapabilities`.
572
- * It throws when the store refuses the read. Medusa throws `SignInError` (`invalid_credentials`) for a 401. Vendure
573
- * throws `ConnectorUnauthorizedError`: `status: 401` when the session is signed out, `status: 403` when a signed-in
574
- * administrator lacks the CreateOrder permission.
572
+ * It may throw when the store refuses the read. Medusa throws `SignInError` (`invalid_credentials`) for a 401; its
573
+ * 403 gives `undefined`. Vendure throws `ConnectorUnauthorizedError` only once its sign-in probe settles the
574
+ * cause: `status: 401` when the session is signed out, `status: 403` when a signed-in administrator lacks the
575
+ * CreateOrder permission; a probe that fails gives `undefined`. Branch on the error's `code` (only
576
+ * `unauthorized` or `invalid_credentials` means sign in again), never on its class.
575
577
  */
576
578
  capabilities?: (context: SyncContext) => Promise<ServerCapabilities | undefined>;
577
579
  /** Customer search: online only; `undefined` when the connector has no customer support. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tallyui/core",
3
- "version": "3.0.0-next.2",
3
+ "version": "3.0.1",
4
4
  "type": "module",
5
5
  "description": "Core interfaces, traits, and context providers for Tally UI",
6
6
  "main": "./dist/index.js",
@@ -70,8 +70,9 @@ export function combinePullAdapters<Doc>(
70
70
  // keeps a sub-adapter's explicit undefined (cleared pass state).
71
71
  checkpoint[key] = { ...previous?.[key], ...result.checkpoint };
72
72
  }
73
- // Each sub-adapter returns unique keys, so one full sub-page makes the
74
- // combined page full: RxDB keeps pulling while any sub-adapter has more.
73
+ // The full-page claim rests on each sub-adapter returning unique keys within a page (for WooCommerce,
74
+ // WCPOS keeps uuids unique per response): then one full sub-page makes the combined page full, and RxDB
75
+ // keeps pulling while any sub-adapter has more.
75
76
  return { documents: [...byKey.values()], checkpoint };
76
77
  },
77
78
  },
@@ -251,9 +251,11 @@ export interface TallyConnector {
251
251
  * block discounts until the cashier signed in again. `undefined` means
252
252
  * the read was inconclusive (offline or a server error), not version 1;
253
253
  * see `resolveCapabilities`.
254
- * It throws when the store refuses the read. Medusa throws `SignInError` (`invalid_credentials`) for a 401. Vendure
255
- * throws `ConnectorUnauthorizedError`: `status: 401` when the session is signed out, `status: 403` when a signed-in
256
- * administrator lacks the CreateOrder permission.
254
+ * It may throw when the store refuses the read. Medusa throws `SignInError` (`invalid_credentials`) for a 401; its
255
+ * 403 gives `undefined`. Vendure throws `ConnectorUnauthorizedError` only once its sign-in probe settles the
256
+ * cause: `status: 401` when the session is signed out, `status: 403` when a signed-in administrator lacks the
257
+ * CreateOrder permission; a probe that fails gives `undefined`. Branch on the error's `code` (only
258
+ * `unauthorized` or `invalid_credentials` means sign in again), never on its class.
257
259
  */
258
260
  capabilities?: (context: SyncContext) => Promise<ServerCapabilities | undefined>;
259
261
  /** Customer search: online only; `undefined` when the connector has no customer support. */