@marianmeres/collection-types 1.38.0 → 1.39.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/customer.d.ts +8 -0
- package/dist/joy-response.d.ts +17 -0
- package/dist/order.d.ts +8 -0
- package/package.json +9 -1
package/dist/customer.d.ts
CHANGED
|
@@ -31,6 +31,14 @@ export interface CustomerData {
|
|
|
31
31
|
vat_number?: string;
|
|
32
32
|
/** Project-specific customer preferences */
|
|
33
33
|
custom?: Record<string, unknown>;
|
|
34
|
+
/**
|
|
35
|
+
* Guest-session identifier (X-Session-ID at the time the customer row
|
|
36
|
+
* was created), stamped only when the customer is created without an
|
|
37
|
+
* authenticated subject (i.e. `owner_id IS NULL`, `guest: true`). Acts
|
|
38
|
+
* as a lookup key for the explicit "claim guest customer" flow when
|
|
39
|
+
* the visitor later registers/logs in. Never set for owned customers.
|
|
40
|
+
*/
|
|
41
|
+
guest_session_id?: string;
|
|
34
42
|
addresses?: never;
|
|
35
43
|
/** Index signature for compatibility with UserData */
|
|
36
44
|
[key: string]: unknown;
|
package/dist/joy-response.d.ts
CHANGED
|
@@ -10,6 +10,19 @@ import type { AreaPagesConfig } from "./area-pages.js";
|
|
|
10
10
|
import type { FormRoutesConfig } from "./form-routes.js";
|
|
11
11
|
import type { JoyConfig } from "./joy-config.js";
|
|
12
12
|
import type { LinkedConfig } from "./linked.js";
|
|
13
|
+
/**
|
|
14
|
+
* Account auth flags advertised to the SPA so it can show/hide registration
|
|
15
|
+
* UI without an extra round trip. Populated server-side from the same boot
|
|
16
|
+
* options that drive `createAccountApp` / `bootstrapAccount`.
|
|
17
|
+
*/
|
|
18
|
+
export interface JoyAuthMeta {
|
|
19
|
+
/** Whether `POST /account/register` is enabled. Drives the Sign-up tab. */
|
|
20
|
+
allowSelfRegistration: boolean;
|
|
21
|
+
/** Whether OAuth providers may create new accounts (vs login-only). */
|
|
22
|
+
allowOAuthRegistration: boolean;
|
|
23
|
+
/** Whether the email verification gate is on (drives the OTP step). */
|
|
24
|
+
requireVerifiedEmail: boolean;
|
|
25
|
+
}
|
|
13
26
|
/**
|
|
14
27
|
* Consolidated Joy configuration response.
|
|
15
28
|
* Single endpoint replaces 5 individual config fetches.
|
|
@@ -53,4 +66,8 @@ export interface JoyResponse {
|
|
|
53
66
|
* 3-level hierarchy: Group -> Page -> Tab.
|
|
54
67
|
*/
|
|
55
68
|
userPages: AreaPagesConfig | null;
|
|
69
|
+
/**
|
|
70
|
+
* Account auth flags. Optional for back-compat — older servers may omit it.
|
|
71
|
+
*/
|
|
72
|
+
auth?: JoyAuthMeta;
|
|
56
73
|
}
|
package/dist/order.d.ts
CHANGED
|
@@ -72,6 +72,14 @@ export interface OrderData {
|
|
|
72
72
|
customer_email?: string;
|
|
73
73
|
/** Current checkout stage */
|
|
74
74
|
checkout_stage?: CheckoutStage;
|
|
75
|
+
/**
|
|
76
|
+
* Guest-session identifier (X-Session-ID at the time of /checkout/start),
|
|
77
|
+
* stamped only when the order is created without an authenticated subject
|
|
78
|
+
* (i.e. `owner_id IS NULL`). Acts as a lookup key for the explicit "claim
|
|
79
|
+
* guest order" flow when the visitor later registers/logs in. Never set
|
|
80
|
+
* for owned (account-linked) orders.
|
|
81
|
+
*/
|
|
82
|
+
guest_session_id?: string;
|
|
75
83
|
/** Index signature for compatibility with UserData */
|
|
76
84
|
[key: string]: unknown;
|
|
77
85
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marianmeres/collection-types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.39.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/mod.js",
|
|
6
6
|
"types": "dist/mod.d.ts",
|
|
@@ -10,6 +10,14 @@
|
|
|
10
10
|
"import": "./dist/mod.js"
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
|
+
"files": [
|
|
14
|
+
"dist",
|
|
15
|
+
"LICENSE",
|
|
16
|
+
"README.md",
|
|
17
|
+
"AGENTS.md",
|
|
18
|
+
"CLAUDE.md",
|
|
19
|
+
"docs"
|
|
20
|
+
],
|
|
13
21
|
"author": "Marian Meres",
|
|
14
22
|
"license": "MIT",
|
|
15
23
|
"dependencies": {},
|