shopoflex-types 1.0.202 → 1.0.205
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/common.d.ts +16 -1
- package/dist/types/user.d.ts +1 -0
- package/package.json +1 -1
package/dist/common.d.ts
CHANGED
|
@@ -65,6 +65,19 @@ export interface Address {
|
|
|
65
65
|
export interface PaymentMethod {
|
|
66
66
|
type: string;
|
|
67
67
|
}
|
|
68
|
+
export interface PaymentMethodSettingField {
|
|
69
|
+
name: string;
|
|
70
|
+
label: string;
|
|
71
|
+
type: 'text' | 'password' | 'email' | 'url' | 'select';
|
|
72
|
+
required: boolean;
|
|
73
|
+
placeholder?: string;
|
|
74
|
+
description?: string;
|
|
75
|
+
options?: string[];
|
|
76
|
+
}
|
|
77
|
+
export interface PaymentMethodSettings {
|
|
78
|
+
requiredFields: PaymentMethodSettingField[];
|
|
79
|
+
documentation?: string;
|
|
80
|
+
}
|
|
68
81
|
export interface PaymentMethodInfo {
|
|
69
82
|
id: string;
|
|
70
83
|
name: string;
|
|
@@ -74,13 +87,14 @@ export interface PaymentMethodInfo {
|
|
|
74
87
|
mode: 'online' | 'offline' | 'hybrid';
|
|
75
88
|
channels: ('pos' | 'online')[];
|
|
76
89
|
isActive: boolean;
|
|
90
|
+
settings?: PaymentMethodSettings;
|
|
77
91
|
}
|
|
78
92
|
export interface VendorPaymentMethodConfig {
|
|
79
93
|
methodId: string;
|
|
80
94
|
isActive: boolean;
|
|
81
95
|
channels: ('pos' | 'online')[];
|
|
82
96
|
settings?: Record<string, any>;
|
|
83
|
-
methodInfo?: Pick<PaymentMethodInfo, 'name' | 'description' | 'icon' | 'type' | 'mode'>;
|
|
97
|
+
methodInfo?: Pick<PaymentMethodInfo, 'name' | 'description' | 'icon' | 'type' | 'mode' | 'settings'>;
|
|
84
98
|
}
|
|
85
99
|
export interface OrderStatus {
|
|
86
100
|
status: "pending" | "cancelled" | "rejected" | "refunded" | "preparing" | "delivering" | "completed" | "awaiting_payment";
|
|
@@ -216,6 +230,7 @@ export interface IUser {
|
|
|
216
230
|
phone?: string;
|
|
217
231
|
photoURL?: string;
|
|
218
232
|
isAdmin?: boolean;
|
|
233
|
+
emailVerified?: boolean;
|
|
219
234
|
createdAt?: Date;
|
|
220
235
|
updatedAt?: Date;
|
|
221
236
|
fcmTokens?: string[];
|
package/dist/types/user.d.ts
CHANGED