@tallyui/core 3.0.0-next.2 → 3.0.0
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 +5 -3
- package/package.json +1 -1
- package/src/replication/combine.ts +3 -2
- package/src/types/connector.ts +5 -3
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
|
|
573
|
-
*
|
|
574
|
-
* administrator lacks the
|
|
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
|
@@ -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
|
-
//
|
|
74
|
-
//
|
|
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
|
},
|
package/src/types/connector.ts
CHANGED
|
@@ -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
|
|
255
|
-
*
|
|
256
|
-
* administrator lacks the
|
|
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. */
|