@tallyui/connector-woocommerce 3.14.0 → 3.16.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/README.md +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/package.json +3 -3
- package/src/replication/products.ts +1 -1
package/README.md
CHANGED
|
@@ -61,5 +61,5 @@ It is not idempotent: each call sends a mail, so don't auto-retry. The cashier n
|
|
|
61
61
|
- `ConnectorUnauthorizedError`, from `@tallyui/core` and re-exported here: the store refused the request (401: the token is missing, expired or revoked; 403: signed in but not allowed), or `WooMissingTokenError` (a subclass) was thrown for a missing token. `error.status` is `401` (`code: 'unauthorized'`, sign in again) or `403` (`code: 'forbidden'`, signed in but not allowed: the pull retries on the store schedule; don't sign out).
|
|
62
62
|
- `WooTokenRefusedError` (`code: 'store_misconfigured'`, `fixedBy: 'store'`, `fix`, and the store's own `storeCode`): the store answered a `jwt_auth_*` 403, the JWT Authentication plugin refusing the till's token. WCPOS 1.10.0–1.10.7 sent it for a valid token (wcpos#1863), and later versions can still send it when the token resolves to another user, so the error names no version. The store owner checks the JWT Authentication plugin's settings, or the till is paired again; the pull retries on the store schedule and the till stays signed in.
|
|
63
63
|
- `WooDateFilterError` (`code: 'unsupported_store'`): the store returned a product outside the requested date window, so it does not honour `modified_after` (WooCommerce before 5.8, or a proxy that drops the parameter). An app should show its own words for the `code`; the message, `This store needs WooCommerce 5.8 or later to sync products.`, is a plain fallback. The diagnostics are in `productId`, `bound` (the `modified_after` sent) and `received`. Today the pull retries a failed request every 5 s (RxDB's `retryTime`), one mark request each time. Stopping on errors that cannot recover is shared replication work.
|
|
64
|
-
- `WooTillUpdateRequiredError` (`code: 'till_update_required'`, `fixedBy: 'till'`): the store answered 426, normally WCPOS's protocol gate (`serverCode: 'wcpos_update_required'`), so this till must be updated; the pull
|
|
64
|
+
- `WooTillUpdateRequiredError` (`code: 'till_update_required'`, `fixedBy: 'till'`): the store answered 426, normally WCPOS's protocol gate (`serverCode: 'wcpos_update_required'`), so this till must be updated; the pull holds until `resume()`.
|
|
65
65
|
- `WooMissingUuidError`: a product came back without a `uuid`, so the store is not running the WCPOS Free plugin 1.10.0 or later, or the connector is not reaching it through `wcpos/v2`.
|
package/dist/index.d.ts
CHANGED
|
@@ -169,7 +169,7 @@ declare class WooTillUpdateRequiredError extends Error {
|
|
|
169
169
|
readonly serverCode: string | undefined;
|
|
170
170
|
name: string;
|
|
171
171
|
readonly code: "till_update_required";
|
|
172
|
-
/** Only updating this till fixes it, so the pull
|
|
172
|
+
/** Only updating this till fixes it, so the pull holds until resume() (`errorKind`). */
|
|
173
173
|
readonly fixedBy: "till";
|
|
174
174
|
/** The body's `code`, kept for diagnostics. */
|
|
175
175
|
constructor(serverCode: string | undefined);
|
package/dist/index.js
CHANGED
|
@@ -320,7 +320,7 @@ var WooTillUpdateRequiredError = class extends Error {
|
|
|
320
320
|
}
|
|
321
321
|
name = "WooTillUpdateRequiredError";
|
|
322
322
|
code = "till_update_required";
|
|
323
|
-
/** Only updating this till fixes it, so the pull
|
|
323
|
+
/** Only updating this till fixes it, so the pull holds until resume() (`errorKind`). */
|
|
324
324
|
fixedBy = "till";
|
|
325
325
|
};
|
|
326
326
|
var WooMissingUuidError = class extends Error {
|
|
@@ -1552,7 +1552,7 @@ async function readWooCapabilities(context) {
|
|
|
1552
1552
|
}
|
|
1553
1553
|
|
|
1554
1554
|
// package.json
|
|
1555
|
-
var version = "3.
|
|
1555
|
+
var version = "3.16.0";
|
|
1556
1556
|
|
|
1557
1557
|
// src/index.ts
|
|
1558
1558
|
import { ConnectorUnauthorizedError as ConnectorUnauthorizedError4 } from "@tallyui/core";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tallyui/connector-woocommerce",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.16.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "WooCommerce connector for Tally UI",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"directory": "connectors/woocommerce"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"@tallyui/core": "^3.
|
|
30
|
+
"@tallyui/core": "^3.16.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@tallyui/database": "3.
|
|
33
|
+
"@tallyui/database": "3.16.0",
|
|
34
34
|
"rxdb": "17.5.0"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
@@ -44,7 +44,7 @@ export async function checkResponse(response: Response) {
|
|
|
44
44
|
export class WooTillUpdateRequiredError extends Error {
|
|
45
45
|
name = 'WooTillUpdateRequiredError';
|
|
46
46
|
readonly code = 'till_update_required' as const;
|
|
47
|
-
/** Only updating this till fixes it, so the pull
|
|
47
|
+
/** Only updating this till fixes it, so the pull holds until resume() (`errorKind`). */
|
|
48
48
|
readonly fixedBy = 'till' as const;
|
|
49
49
|
|
|
50
50
|
/** The body's `code`, kept for diagnostics. */
|