@final-commerce/command-frame 0.1.56 → 0.1.57
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 -5
- package/dist/CommonTypes.d.ts +33 -0
- package/dist/actions/get-active-customer/action.d.ts +2 -0
- package/dist/actions/get-active-customer/action.js +4 -0
- package/dist/actions/get-active-customer/mock.d.ts +2 -0
- package/dist/actions/get-active-customer/mock.js +10 -0
- package/dist/actions/get-active-customer/types.d.ts +7 -0
- package/dist/actions/get-active-order/action.d.ts +6 -0
- package/dist/actions/get-active-order/action.js +8 -0
- package/dist/actions/get-active-order/mock.d.ts +2 -0
- package/dist/actions/get-active-order/mock.js +11 -0
- package/dist/actions/get-active-order/types.d.ts +7 -0
- package/dist/actions/get-active-order/types.js +1 -0
- package/dist/actions/get-active-outlet/action.d.ts +2 -0
- package/dist/actions/get-active-outlet/action.js +4 -0
- package/dist/actions/get-active-outlet/mock.d.ts +2 -0
- package/dist/actions/get-active-outlet/mock.js +9 -0
- package/dist/actions/get-active-outlet/types.d.ts +7 -0
- package/dist/actions/get-active-outlet/types.js +1 -0
- package/dist/actions/get-active-refund/action.d.ts +2 -0
- package/dist/actions/get-active-refund/action.js +4 -0
- package/dist/actions/get-active-refund/mock.d.ts +2 -0
- package/dist/actions/get-active-refund/mock.js +9 -0
- package/dist/actions/get-active-refund/types.d.ts +7 -0
- package/dist/actions/get-active-refund/types.js +1 -0
- package/dist/actions/get-active-session/action.d.ts +2 -0
- package/dist/actions/get-active-session/action.js +4 -0
- package/dist/actions/get-active-session/mock.d.ts +2 -0
- package/dist/actions/get-active-session/mock.js +9 -0
- package/dist/actions/get-active-session/types.d.ts +7 -0
- package/dist/actions/get-active-session/types.js +1 -0
- package/dist/actions/get-active-station/action.d.ts +2 -0
- package/dist/actions/get-active-station/action.js +4 -0
- package/dist/actions/get-active-station/mock.d.ts +2 -0
- package/dist/actions/get-active-station/mock.js +9 -0
- package/dist/actions/get-active-station/types.d.ts +7 -0
- package/dist/actions/get-active-station/types.js +1 -0
- package/dist/actions/get-active-user/action.d.ts +2 -0
- package/dist/actions/get-active-user/action.js +4 -0
- package/dist/actions/get-active-user/mock.d.ts +2 -0
- package/dist/actions/get-active-user/mock.js +9 -0
- package/dist/actions/get-active-user/types.d.ts +7 -0
- package/dist/actions/get-active-user/types.js +1 -0
- package/dist/actions/set-active-customer/action.d.ts +2 -0
- package/dist/actions/set-active-customer/action.js +4 -0
- package/dist/actions/set-active-customer/mock.d.ts +2 -0
- package/dist/actions/set-active-customer/mock.js +16 -0
- package/dist/actions/set-active-customer/types.d.ts +10 -0
- package/dist/actions/set-active-customer/types.js +1 -0
- package/dist/actions/set-active-outlet/action.d.ts +2 -0
- package/dist/actions/set-active-outlet/action.js +4 -0
- package/dist/actions/set-active-outlet/mock.d.ts +2 -0
- package/dist/actions/set-active-outlet/mock.js +16 -0
- package/dist/actions/set-active-outlet/types.d.ts +10 -0
- package/dist/actions/set-active-outlet/types.js +1 -0
- package/dist/actions/set-active-refund/action.d.ts +2 -0
- package/dist/actions/set-active-refund/action.js +4 -0
- package/dist/actions/set-active-refund/mock.d.ts +2 -0
- package/dist/actions/set-active-refund/mock.js +12 -0
- package/dist/actions/set-active-refund/types.d.ts +10 -0
- package/dist/actions/set-active-refund/types.js +1 -0
- package/dist/actions/set-active-session/action.d.ts +2 -0
- package/dist/actions/set-active-session/action.js +4 -0
- package/dist/actions/set-active-session/mock.d.ts +2 -0
- package/dist/actions/set-active-session/mock.js +15 -0
- package/dist/actions/set-active-session/types.d.ts +10 -0
- package/dist/actions/set-active-session/types.js +1 -0
- package/dist/actions/set-active-station/action.d.ts +2 -0
- package/dist/actions/set-active-station/action.js +4 -0
- package/dist/actions/set-active-station/mock.d.ts +2 -0
- package/dist/actions/set-active-station/mock.js +16 -0
- package/dist/actions/set-active-station/types.d.ts +10 -0
- package/dist/actions/set-active-station/types.js +1 -0
- package/dist/actions/set-active-user/action.d.ts +2 -0
- package/dist/actions/set-active-user/action.js +4 -0
- package/dist/actions/set-active-user/mock.d.ts +2 -0
- package/dist/actions/set-active-user/mock.js +16 -0
- package/dist/actions/set-active-user/types.d.ts +10 -0
- package/dist/actions/set-active-user/types.js +1 -0
- package/dist/demo/database.d.ts +3 -1
- package/dist/demo/database.js +19 -1
- package/dist/index.d.ts +39 -4
- package/dist/index.js +30 -0
- package/dist/projects/render/mocks.js +26 -0
- package/dist/projects/render/provider.d.ts +2 -2
- package/dist/projects/render/types.d.ts +14 -1
- package/dist/pubsub/topics/customers/get-active-customer/types.d.ts +6 -0
- package/dist/pubsub/topics/customers/get-active-customer/types.js +1 -0
- package/dist/pubsub/topics/customers/index.js +10 -0
- package/dist/pubsub/topics/customers/set-active-customer/types.d.ts +6 -0
- package/dist/pubsub/topics/customers/set-active-customer/types.js +1 -0
- package/dist/pubsub/topics/customers/types.d.ts +6 -2
- package/dist/pubsub/topics/customers/types.js +2 -0
- package/dist/pubsub/topics/index.d.ts +4 -0
- package/dist/pubsub/topics/index.js +4 -0
- package/dist/pubsub/topics/orders/get-active-order/types.d.ts +6 -0
- package/dist/pubsub/topics/orders/get-active-order/types.js +1 -0
- package/dist/pubsub/topics/orders/index.js +10 -0
- package/dist/pubsub/topics/orders/set-active-order/types.d.ts +6 -0
- package/dist/pubsub/topics/orders/set-active-order/types.js +1 -0
- package/dist/pubsub/topics/orders/types.d.ts +6 -2
- package/dist/pubsub/topics/orders/types.js +2 -0
- package/dist/pubsub/topics/outlet/get-active-outlet/types.d.ts +6 -0
- package/dist/pubsub/topics/outlet/get-active-outlet/types.js +1 -0
- package/dist/pubsub/topics/outlet/index.d.ts +3 -0
- package/dist/pubsub/topics/outlet/index.js +18 -0
- package/dist/pubsub/topics/outlet/set-active-outlet/types.d.ts +6 -0
- package/dist/pubsub/topics/outlet/set-active-outlet/types.js +1 -0
- package/dist/pubsub/topics/outlet/types.d.ts +6 -0
- package/dist/pubsub/topics/outlet/types.js +2 -0
- package/dist/pubsub/topics/products/product-get-active/types.js +1 -0
- package/dist/pubsub/topics/products/types.d.ts +6 -2
- package/dist/pubsub/topics/products/types.js +2 -0
- package/dist/pubsub/topics/refunds/get-active-refund/types.d.ts +6 -0
- package/dist/pubsub/topics/refunds/get-active-refund/types.js +1 -0
- package/dist/pubsub/topics/refunds/index.js +10 -0
- package/dist/pubsub/topics/refunds/set-active-refund/types.d.ts +6 -0
- package/dist/pubsub/topics/refunds/set-active-refund/types.js +1 -0
- package/dist/pubsub/topics/refunds/types.d.ts +6 -2
- package/dist/pubsub/topics/refunds/types.js +2 -0
- package/dist/pubsub/topics/session/get-active-session/types.d.ts +6 -0
- package/dist/pubsub/topics/session/get-active-session/types.js +1 -0
- package/dist/pubsub/topics/session/index.d.ts +3 -0
- package/dist/pubsub/topics/session/index.js +18 -0
- package/dist/pubsub/topics/session/set-active-session/types.d.ts +6 -0
- package/dist/pubsub/topics/session/set-active-session/types.js +1 -0
- package/dist/pubsub/topics/session/types.d.ts +6 -0
- package/dist/pubsub/topics/session/types.js +2 -0
- package/dist/pubsub/topics/station/get-active-station/types.d.ts +6 -0
- package/dist/pubsub/topics/station/get-active-station/types.js +1 -0
- package/dist/pubsub/topics/station/index.d.ts +3 -0
- package/dist/pubsub/topics/station/index.js +18 -0
- package/dist/pubsub/topics/station/set-active-station/types.d.ts +6 -0
- package/dist/pubsub/topics/station/set-active-station/types.js +1 -0
- package/dist/pubsub/topics/station/types.d.ts +6 -0
- package/dist/pubsub/topics/station/types.js +2 -0
- package/dist/pubsub/topics/types.d.ts +8 -0
- package/dist/pubsub/topics/users/get-active-user/types.d.ts +6 -0
- package/dist/pubsub/topics/users/get-active-user/types.js +1 -0
- package/dist/pubsub/topics/users/index.d.ts +3 -0
- package/dist/pubsub/topics/users/index.js +18 -0
- package/dist/pubsub/topics/users/set-active-user/types.d.ts +6 -0
- package/dist/pubsub/topics/users/set-active-user/types.js +1 -0
- package/dist/pubsub/topics/users/types.d.ts +6 -0
- package/dist/pubsub/topics/users/types.js +2 -0
- package/package.json +1 -1
- /package/dist/{pubsub/topics/products/product-get-active/types..js → actions/get-active-customer/types.js} +0 -0
- /package/dist/pubsub/topics/products/product-get-active/{types..d.ts → types.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -75,7 +75,7 @@ const context = await client.getContext();
|
|
|
75
75
|
The pub/sub system allows iframe extensions to subscribe to topics and receive real-time events published by the host (Render). Subscriptions are **page-scoped** -- they fire only while the iframe is mounted on the current page.
|
|
76
76
|
|
|
77
77
|
- **[Pub/Sub Documentation](./src/pubsub/README.md)**
|
|
78
|
-
- **Topics:** Cart (8
|
|
78
|
+
- **Topics:** Cart (8), Customers (8), Orders (4), Payments (2), Products (4), Refunds (4), Print (3), Custom Tables (3), Outlet (2), Station (2), Session (2), Users (2).
|
|
79
79
|
|
|
80
80
|
```typescript
|
|
81
81
|
import { topics } from '@final-commerce/command-frame';
|
|
@@ -170,7 +170,3 @@ Alternatively, set the global flag before initialization:
|
|
|
170
170
|
```typescript
|
|
171
171
|
(window as any).__POSTMESSAGE_DEBUG__ = true;
|
|
172
172
|
```
|
|
173
|
-
|
|
174
|
-
## License
|
|
175
|
-
|
|
176
|
-
MIT
|
package/dist/CommonTypes.d.ts
CHANGED
|
@@ -465,6 +465,39 @@ export interface CFActiveStation {
|
|
|
465
465
|
updatedAt?: string;
|
|
466
466
|
stripeTerminalId?: string;
|
|
467
467
|
}
|
|
468
|
+
/** Cash register session (station session), aligned with Render `Session`. */
|
|
469
|
+
export interface CFSession {
|
|
470
|
+
id: string;
|
|
471
|
+
stationId: string;
|
|
472
|
+
openingAmount?: number;
|
|
473
|
+
closingAmount?: number;
|
|
474
|
+
openedBy?: string;
|
|
475
|
+
closedBy?: string;
|
|
476
|
+
notes?: string[];
|
|
477
|
+
currency?: CurrencyCode;
|
|
478
|
+
minorUnits?: number;
|
|
479
|
+
}
|
|
480
|
+
/** Refund UI / selection state in POS, aligned with Render `ActiveRefundOrder`. */
|
|
481
|
+
export interface CFRefundProcessingStatus {
|
|
482
|
+
status: string;
|
|
483
|
+
isCardPresent?: boolean;
|
|
484
|
+
message?: string;
|
|
485
|
+
}
|
|
486
|
+
export interface CFActiveRefundDetails {
|
|
487
|
+
quantities?: Record<string, number>;
|
|
488
|
+
options?: Record<string, string>;
|
|
489
|
+
refundAmounts?: Record<string, number>;
|
|
490
|
+
refundPayments?: CFPaymentMethod[] | null;
|
|
491
|
+
currentRefundTotal?: number;
|
|
492
|
+
amountRemaining?: number | null;
|
|
493
|
+
buttonsDisabled?: Record<string, boolean>;
|
|
494
|
+
isRefund?: boolean;
|
|
495
|
+
customSalesQuantities?: Record<string, number>;
|
|
496
|
+
cartFeesRefunds?: Record<string, number>;
|
|
497
|
+
tipsRefunds?: Record<string, number>;
|
|
498
|
+
refundProcessingStatus?: CFRefundProcessingStatus | null;
|
|
499
|
+
sessionRefundedTotal?: number;
|
|
500
|
+
}
|
|
468
501
|
export interface CFActiveOrder extends CFOrder {
|
|
469
502
|
id?: string;
|
|
470
503
|
internalId?: string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { MOCK_CUSTOMER_1 } from "../../demo/database";
|
|
2
|
+
export const mockGetActiveCustomer = async () => {
|
|
3
|
+
console.log("[Mock] getActiveCustomer called");
|
|
4
|
+
const customer = { ...MOCK_CUSTOMER_1, id: MOCK_CUSTOMER_1._id };
|
|
5
|
+
return {
|
|
6
|
+
success: true,
|
|
7
|
+
customer,
|
|
8
|
+
timestamp: new Date().toISOString()
|
|
9
|
+
};
|
|
10
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { MOCK_ORDERS, safeSerialize } from "../../demo/database";
|
|
2
|
+
export const mockGetActiveOrder = async () => {
|
|
3
|
+
console.log("[Mock] getActiveOrder called");
|
|
4
|
+
const orders = safeSerialize(MOCK_ORDERS);
|
|
5
|
+
const order = orders.length > 0 ? orders[0] : null;
|
|
6
|
+
return {
|
|
7
|
+
success: true,
|
|
8
|
+
order,
|
|
9
|
+
timestamp: new Date().toISOString()
|
|
10
|
+
};
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { MOCK_ACTIVE_REFUND_DETAILS } from "../../demo/database";
|
|
2
|
+
export const mockGetActiveRefund = async () => {
|
|
3
|
+
console.log("[Mock] getActiveRefund called");
|
|
4
|
+
return {
|
|
5
|
+
success: true,
|
|
6
|
+
refund: MOCK_ACTIVE_REFUND_DETAILS,
|
|
7
|
+
timestamp: new Date().toISOString()
|
|
8
|
+
};
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { MOCK_CUSTOMERS } from "../../demo/database";
|
|
2
|
+
export const mockSetActiveCustomer = async (params) => {
|
|
3
|
+
console.log("[Mock] setActiveCustomer called", params);
|
|
4
|
+
if (!params?.customerId) {
|
|
5
|
+
throw new Error("customerId is required");
|
|
6
|
+
}
|
|
7
|
+
const found = MOCK_CUSTOMERS.find(c => c._id === params.customerId);
|
|
8
|
+
if (!found) {
|
|
9
|
+
throw new Error(`Customer with ID ${params.customerId} not found`);
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
success: true,
|
|
13
|
+
customer: { ...found, id: found._id },
|
|
14
|
+
timestamp: new Date().toISOString()
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CFActiveCustomer } from "../../CommonTypes";
|
|
2
|
+
export interface SetActiveCustomerParams {
|
|
3
|
+
customerId: string;
|
|
4
|
+
}
|
|
5
|
+
export interface SetActiveCustomerResponse {
|
|
6
|
+
success: boolean;
|
|
7
|
+
customer: CFActiveCustomer;
|
|
8
|
+
timestamp: string;
|
|
9
|
+
}
|
|
10
|
+
export type SetActiveCustomer = (params?: SetActiveCustomerParams) => Promise<SetActiveCustomerResponse>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { MOCK_OUTLETS } from "../../demo/database";
|
|
2
|
+
export const mockSetActiveOutlet = async (params) => {
|
|
3
|
+
console.log("[Mock] setActiveOutlet called", params);
|
|
4
|
+
if (!params?.outletId) {
|
|
5
|
+
throw new Error("outletId is required");
|
|
6
|
+
}
|
|
7
|
+
const found = MOCK_OUTLETS.find(o => o.id === params.outletId || o._id === params.outletId);
|
|
8
|
+
if (!found) {
|
|
9
|
+
throw new Error(`Outlet with ID ${params.outletId} not found`);
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
success: true,
|
|
13
|
+
outlet: found,
|
|
14
|
+
timestamp: new Date().toISOString()
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CFActiveOutlet } from "../../CommonTypes";
|
|
2
|
+
export interface SetActiveOutletParams {
|
|
3
|
+
outletId: string;
|
|
4
|
+
}
|
|
5
|
+
export interface SetActiveOutletResponse {
|
|
6
|
+
success: boolean;
|
|
7
|
+
outlet: CFActiveOutlet;
|
|
8
|
+
timestamp: string;
|
|
9
|
+
}
|
|
10
|
+
export type SetActiveOutlet = (params?: SetActiveOutletParams) => Promise<SetActiveOutletResponse>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { MOCK_ACTIVE_REFUND_DETAILS } from "../../demo/database";
|
|
2
|
+
export const mockSetActiveRefund = async (params) => {
|
|
3
|
+
console.log("[Mock] setActiveRefund called", params);
|
|
4
|
+
if (!params?.orderId) {
|
|
5
|
+
throw new Error("orderId is required");
|
|
6
|
+
}
|
|
7
|
+
return {
|
|
8
|
+
success: true,
|
|
9
|
+
refund: { ...MOCK_ACTIVE_REFUND_DETAILS, isRefund: true },
|
|
10
|
+
timestamp: new Date().toISOString()
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CFActiveRefundDetails } from "../../CommonTypes";
|
|
2
|
+
export interface SetActiveRefundParams {
|
|
3
|
+
orderId: string;
|
|
4
|
+
}
|
|
5
|
+
export interface SetActiveRefundResponse {
|
|
6
|
+
success: boolean;
|
|
7
|
+
refund: CFActiveRefundDetails;
|
|
8
|
+
timestamp: string;
|
|
9
|
+
}
|
|
10
|
+
export type SetActiveRefund = (params?: SetActiveRefundParams) => Promise<SetActiveRefundResponse>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MOCK_SESSION } from "../../demo/database";
|
|
2
|
+
export const mockSetActiveSession = async (params) => {
|
|
3
|
+
console.log("[Mock] setActiveSession called", params);
|
|
4
|
+
if (!params?.sessionId) {
|
|
5
|
+
throw new Error("sessionId is required");
|
|
6
|
+
}
|
|
7
|
+
if (params.sessionId !== MOCK_SESSION.id) {
|
|
8
|
+
throw new Error(`Session with ID ${params.sessionId} not found`);
|
|
9
|
+
}
|
|
10
|
+
return {
|
|
11
|
+
success: true,
|
|
12
|
+
session: MOCK_SESSION,
|
|
13
|
+
timestamp: new Date().toISOString()
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CFSession } from "../../CommonTypes";
|
|
2
|
+
export interface SetActiveSessionParams {
|
|
3
|
+
sessionId: string;
|
|
4
|
+
}
|
|
5
|
+
export interface SetActiveSessionResponse {
|
|
6
|
+
success: boolean;
|
|
7
|
+
session: CFSession;
|
|
8
|
+
timestamp: string;
|
|
9
|
+
}
|
|
10
|
+
export type SetActiveSession = (params?: SetActiveSessionParams) => Promise<SetActiveSessionResponse>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { MOCK_STATIONS } from "../../demo/database";
|
|
2
|
+
export const mockSetActiveStation = async (params) => {
|
|
3
|
+
console.log("[Mock] setActiveStation called", params);
|
|
4
|
+
if (!params?.stationId) {
|
|
5
|
+
throw new Error("stationId is required");
|
|
6
|
+
}
|
|
7
|
+
const found = MOCK_STATIONS.find(s => s._id === params.stationId);
|
|
8
|
+
if (!found) {
|
|
9
|
+
throw new Error(`Station with ID ${params.stationId} not found`);
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
success: true,
|
|
13
|
+
station: found,
|
|
14
|
+
timestamp: new Date().toISOString()
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CFActiveStation } from "../../CommonTypes";
|
|
2
|
+
export interface SetActiveStationParams {
|
|
3
|
+
stationId: string;
|
|
4
|
+
}
|
|
5
|
+
export interface SetActiveStationResponse {
|
|
6
|
+
success: boolean;
|
|
7
|
+
station: CFActiveStation;
|
|
8
|
+
timestamp: string;
|
|
9
|
+
}
|
|
10
|
+
export type SetActiveStation = (params?: SetActiveStationParams) => Promise<SetActiveStationResponse>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { MOCK_USERS } from "../../demo/database";
|
|
2
|
+
export const mockSetActiveUser = async (params) => {
|
|
3
|
+
console.log("[Mock] setActiveUser called", params);
|
|
4
|
+
if (!params?.userId) {
|
|
5
|
+
throw new Error("userId is required");
|
|
6
|
+
}
|
|
7
|
+
const found = MOCK_USERS.find(u => u.id === params.userId);
|
|
8
|
+
if (!found) {
|
|
9
|
+
throw new Error(`User with ID ${params.userId} not found`);
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
success: true,
|
|
13
|
+
user: found,
|
|
14
|
+
timestamp: new Date().toISOString()
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CFActiveUser } from "../../CommonTypes";
|
|
2
|
+
export interface SetActiveUserParams {
|
|
3
|
+
userId: string;
|
|
4
|
+
}
|
|
5
|
+
export interface SetActiveUserResponse {
|
|
6
|
+
success: boolean;
|
|
7
|
+
user: CFActiveUser;
|
|
8
|
+
timestamp: string;
|
|
9
|
+
}
|
|
10
|
+
export type SetActiveUser = (params?: SetActiveUserParams) => Promise<SetActiveUserResponse>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|