@marianmeres/collection-types 1.37.0 → 1.38.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/area-pages.d.ts +1 -1
- package/dist/area-pages.js +1 -1
- package/dist/customer.d.ts +8 -0
- package/dist/joy-response.d.ts +2 -2
- package/dist/mod.js +1 -1
- package/dist/navigation.d.ts +1 -1
- package/dist/order.d.ts +8 -0
- package/package.json +9 -1
package/dist/area-pages.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Area Pages Configuration Types (Unified 3-Level Hierarchy)
|
|
3
3
|
*
|
|
4
4
|
* Generic type definitions for area-based page hierarchies in the admin SPA.
|
|
5
|
-
* Used by both "custom" and "
|
|
5
|
+
* Used by both "custom" and "user" areas (and potentially others).
|
|
6
6
|
*
|
|
7
7
|
* Hierarchy:
|
|
8
8
|
* - Level 1: Group (shown in sidebar with expand/collapse)
|
package/dist/area-pages.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Area Pages Configuration Types (Unified 3-Level Hierarchy)
|
|
3
3
|
*
|
|
4
4
|
* Generic type definitions for area-based page hierarchies in the admin SPA.
|
|
5
|
-
* Used by both "custom" and "
|
|
5
|
+
* Used by both "custom" and "user" areas (and potentially others).
|
|
6
6
|
*
|
|
7
7
|
* Hierarchy:
|
|
8
8
|
* - Level 1: Group (shown in sidebar with expand/collapse)
|
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
|
@@ -49,8 +49,8 @@ export interface JoyResponse {
|
|
|
49
49
|
*/
|
|
50
50
|
customPages: AreaPagesConfig | null;
|
|
51
51
|
/**
|
|
52
|
-
*
|
|
52
|
+
* User pages configuration from `__joy_user_pages__`.
|
|
53
53
|
* 3-level hierarchy: Group -> Page -> Tab.
|
|
54
54
|
*/
|
|
55
|
-
|
|
55
|
+
userPages: AreaPagesConfig | null;
|
|
56
56
|
}
|
package/dist/mod.js
CHANGED
|
@@ -69,7 +69,7 @@ export * from "./schema-builder.js";
|
|
|
69
69
|
export * from "./navigation.js";
|
|
70
70
|
// Form Routes Configuration Types (admin UI)
|
|
71
71
|
export * from "./form-routes.js";
|
|
72
|
-
// Area Pages Configuration Types (unified custom/
|
|
72
|
+
// Area Pages Configuration Types (unified custom/user pages - admin UI)
|
|
73
73
|
export * from "./area-pages.js";
|
|
74
74
|
// Joy Config Types (admin UI)
|
|
75
75
|
export * from "./joy-config.js";
|
package/dist/navigation.d.ts
CHANGED
|
@@ -95,7 +95,7 @@ export interface NavItemDef {
|
|
|
95
95
|
* Each area represents a distinct section of the application with its own
|
|
96
96
|
* routing pattern and navigation structure.
|
|
97
97
|
*/
|
|
98
|
-
export type AreaId = "cms" | "custom" | "
|
|
98
|
+
export type AreaId = "cms" | "custom" | "user" | "extra" | "me";
|
|
99
99
|
/**
|
|
100
100
|
* Base nav item structure shared across all areas.
|
|
101
101
|
* Designed to support hierarchical navigation (groups, pages, tabs).
|
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.38.1",
|
|
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": {},
|