sinfactura-types 1.6.73 → 1.6.74

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/cjs/index.js CHANGED
@@ -49,6 +49,7 @@ __exportStar(require("./stock"), exports);
49
49
  __exportStar(require("./store"), exports);
50
50
  __exportStar(require("./storefrontEvent"), exports);
51
51
  __exportStar(require("./subscription"), exports);
52
+ __exportStar(require("./support"), exports);
52
53
  __exportStar(require("./supplier"), exports);
53
54
  __exportStar(require("./user"), exports);
54
55
  __exportStar(require("./userActivity"), exports);
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ // Support helpdesk (platform→tenant) — ADR-0019 / app docs/SUPPORT.md (app#2150).
3
+ // api-owned entity. Grows the flat ticket row into a THREAD: a ticket header
4
+ // (this `Support` interface) plus ordered `SupportMessage` messages stored in a
5
+ // child partition. api#1816 (thread model + GET /support/:id) and api#1817
6
+ // (cross-tenant agent console) share this one shape — released together.
7
+ Object.defineProperty(exports, "__esModule", { value: true });
package/dist/index.d.ts CHANGED
@@ -33,6 +33,7 @@ export * from "./stock";
33
33
  export * from "./store";
34
34
  export * from "./storefrontEvent";
35
35
  export * from "./subscription";
36
+ export * from "./support";
36
37
  export * from "./supplier";
37
38
  export * from "./user";
38
39
  export * from "./userActivity";
package/dist/index.js CHANGED
@@ -33,6 +33,7 @@ export * from "./stock";
33
33
  export * from "./store";
34
34
  export * from "./storefrontEvent";
35
35
  export * from "./subscription";
36
+ export * from "./support";
36
37
  export * from "./supplier";
37
38
  export * from "./user";
38
39
  export * from "./userActivity";
@@ -0,0 +1,30 @@
1
+ declare global {
2
+ type SupportTicketStatus = 'pending' | 'resolved' | 'rejected';
3
+ type SupportTicketPriority = 'low' | 'normal' | 'high' | 'urgent';
4
+ type SupportMessageDirection = 'IN' | 'OUT';
5
+ interface Support {
6
+ storeId: string;
7
+ supportId: string;
8
+ subject: string;
9
+ category?: string;
10
+ priority: SupportTicketPriority;
11
+ status: SupportTicketStatus;
12
+ assignee?: string;
13
+ read: boolean;
14
+ createdAt: number;
15
+ updatedAt?: number;
16
+ firstResponseAt?: number;
17
+ closedAt?: number;
18
+ disabled?: boolean;
19
+ messages?: SupportMessage[];
20
+ }
21
+ interface SupportMessage {
22
+ messageId: string;
23
+ direction: SupportMessageDirection;
24
+ author: string;
25
+ body: string;
26
+ createdAt: number;
27
+ sentryEventId?: string;
28
+ }
29
+ }
30
+ export {};
@@ -0,0 +1,6 @@
1
+ // Support helpdesk (platform→tenant) — ADR-0019 / app docs/SUPPORT.md (app#2150).
2
+ // api-owned entity. Grows the flat ticket row into a THREAD: a ticket header
3
+ // (this `Support` interface) plus ordered `SupportMessage` messages stored in a
4
+ // child partition. api#1816 (thread model + GET /support/:id) and api#1817
5
+ // (cross-tenant agent console) share this one shape — released together.
6
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sinfactura-types",
3
- "version": "1.6.73",
3
+ "version": "1.6.74",
4
4
  "main": "dist/index.js",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",