@mac777/project-pinecone-models 1.1.13 → 1.1.15
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/Payout.d.ts +3 -3
- package/dist/Payout.js +1 -1
- package/dist/User.d.ts +24 -3
- package/dist/User.js +22 -0
- package/dist/User.v2.d.ts +3 -3
- package/package.json +1 -1
- package/src/Payout.ts +1 -1
- package/src/User.ts +22 -0
package/dist/Payout.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import mongoose from 'mongoose';
|
|
|
2
2
|
declare const payoutSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
3
3
|
timestamps: true;
|
|
4
4
|
}, {
|
|
5
|
-
status: "pending" | "approved" | "completed" | "failed" | "processing" | "on_hold";
|
|
5
|
+
status: "pending" | "approved" | "rejected" | "completed" | "failed" | "processing" | "on_hold";
|
|
6
6
|
currency: string;
|
|
7
7
|
hostId: mongoose.Types.ObjectId;
|
|
8
8
|
eventId: mongoose.Types.ObjectId;
|
|
@@ -37,7 +37,7 @@ declare const payoutSchema: mongoose.Schema<any, mongoose.Model<any, any, any, a
|
|
|
37
37
|
reviewReason?: string | null | undefined;
|
|
38
38
|
holdReason?: string | null | undefined;
|
|
39
39
|
} & mongoose.DefaultTimestampProps, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
40
|
-
status: "pending" | "approved" | "completed" | "failed" | "processing" | "on_hold";
|
|
40
|
+
status: "pending" | "approved" | "rejected" | "completed" | "failed" | "processing" | "on_hold";
|
|
41
41
|
currency: string;
|
|
42
42
|
hostId: mongoose.Types.ObjectId;
|
|
43
43
|
eventId: mongoose.Types.ObjectId;
|
|
@@ -74,7 +74,7 @@ declare const payoutSchema: mongoose.Schema<any, mongoose.Model<any, any, any, a
|
|
|
74
74
|
} & mongoose.DefaultTimestampProps>, {}, mongoose.ResolveSchemaOptions<{
|
|
75
75
|
timestamps: true;
|
|
76
76
|
}>> & mongoose.FlatRecord<{
|
|
77
|
-
status: "pending" | "approved" | "completed" | "failed" | "processing" | "on_hold";
|
|
77
|
+
status: "pending" | "approved" | "rejected" | "completed" | "failed" | "processing" | "on_hold";
|
|
78
78
|
currency: string;
|
|
79
79
|
hostId: mongoose.Types.ObjectId;
|
|
80
80
|
eventId: mongoose.Types.ObjectId;
|
package/dist/Payout.js
CHANGED
|
@@ -56,7 +56,7 @@ const payoutSchema = new mongoose_1.default.Schema({
|
|
|
56
56
|
// Status
|
|
57
57
|
status: {
|
|
58
58
|
type: String,
|
|
59
|
-
enum: ['pending', 'approved', 'processing', 'completed', 'failed', 'on_hold'],
|
|
59
|
+
enum: ['pending', 'approved', 'processing', 'completed', 'failed', 'on_hold', 'rejected'],
|
|
60
60
|
default: 'pending'
|
|
61
61
|
}, // "pending" | "approved" | "processing" | "completed" | "failed" | "on_hold"
|
|
62
62
|
// Admin Actions
|
package/dist/User.d.ts
CHANGED
|
@@ -10,6 +10,13 @@ declare const userSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any
|
|
|
10
10
|
emailVerified: boolean;
|
|
11
11
|
phoneVerified: boolean;
|
|
12
12
|
nidVerified: boolean;
|
|
13
|
+
moderation?: {
|
|
14
|
+
isSuspended: boolean;
|
|
15
|
+
isVerified: boolean;
|
|
16
|
+
suspendedAt?: NativeDate | null | undefined;
|
|
17
|
+
suspensionReason?: string | null | undefined;
|
|
18
|
+
verifiedAt?: NativeDate | null | undefined;
|
|
19
|
+
} | null | undefined;
|
|
13
20
|
password?: string | null | undefined;
|
|
14
21
|
organization?: string | null | undefined;
|
|
15
22
|
emailVerificationToken?: string | null | undefined;
|
|
@@ -23,11 +30,11 @@ declare const userSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any
|
|
|
23
30
|
verified: boolean;
|
|
24
31
|
accountNumber?: string | null | undefined;
|
|
25
32
|
accountName?: string | null | undefined;
|
|
33
|
+
verifiedAt?: NativeDate | null | undefined;
|
|
26
34
|
bkashNumber?: string | null | undefined;
|
|
27
35
|
bankName?: string | null | undefined;
|
|
28
36
|
branchName?: string | null | undefined;
|
|
29
37
|
routingNumber?: string | null | undefined;
|
|
30
|
-
verifiedAt?: NativeDate | null | undefined;
|
|
31
38
|
} | null | undefined;
|
|
32
39
|
refreshToken?: string | null | undefined;
|
|
33
40
|
googleId?: string | null | undefined;
|
|
@@ -40,6 +47,13 @@ declare const userSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any
|
|
|
40
47
|
emailVerified: boolean;
|
|
41
48
|
phoneVerified: boolean;
|
|
42
49
|
nidVerified: boolean;
|
|
50
|
+
moderation?: {
|
|
51
|
+
isSuspended: boolean;
|
|
52
|
+
isVerified: boolean;
|
|
53
|
+
suspendedAt?: NativeDate | null | undefined;
|
|
54
|
+
suspensionReason?: string | null | undefined;
|
|
55
|
+
verifiedAt?: NativeDate | null | undefined;
|
|
56
|
+
} | null | undefined;
|
|
43
57
|
password?: string | null | undefined;
|
|
44
58
|
organization?: string | null | undefined;
|
|
45
59
|
emailVerificationToken?: string | null | undefined;
|
|
@@ -53,11 +67,11 @@ declare const userSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any
|
|
|
53
67
|
verified: boolean;
|
|
54
68
|
accountNumber?: string | null | undefined;
|
|
55
69
|
accountName?: string | null | undefined;
|
|
70
|
+
verifiedAt?: NativeDate | null | undefined;
|
|
56
71
|
bkashNumber?: string | null | undefined;
|
|
57
72
|
bankName?: string | null | undefined;
|
|
58
73
|
branchName?: string | null | undefined;
|
|
59
74
|
routingNumber?: string | null | undefined;
|
|
60
|
-
verifiedAt?: NativeDate | null | undefined;
|
|
61
75
|
} | null | undefined;
|
|
62
76
|
refreshToken?: string | null | undefined;
|
|
63
77
|
googleId?: string | null | undefined;
|
|
@@ -72,6 +86,13 @@ declare const userSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any
|
|
|
72
86
|
emailVerified: boolean;
|
|
73
87
|
phoneVerified: boolean;
|
|
74
88
|
nidVerified: boolean;
|
|
89
|
+
moderation?: {
|
|
90
|
+
isSuspended: boolean;
|
|
91
|
+
isVerified: boolean;
|
|
92
|
+
suspendedAt?: NativeDate | null | undefined;
|
|
93
|
+
suspensionReason?: string | null | undefined;
|
|
94
|
+
verifiedAt?: NativeDate | null | undefined;
|
|
95
|
+
} | null | undefined;
|
|
75
96
|
password?: string | null | undefined;
|
|
76
97
|
organization?: string | null | undefined;
|
|
77
98
|
emailVerificationToken?: string | null | undefined;
|
|
@@ -85,11 +106,11 @@ declare const userSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any
|
|
|
85
106
|
verified: boolean;
|
|
86
107
|
accountNumber?: string | null | undefined;
|
|
87
108
|
accountName?: string | null | undefined;
|
|
109
|
+
verifiedAt?: NativeDate | null | undefined;
|
|
88
110
|
bkashNumber?: string | null | undefined;
|
|
89
111
|
bankName?: string | null | undefined;
|
|
90
112
|
branchName?: string | null | undefined;
|
|
91
113
|
routingNumber?: string | null | undefined;
|
|
92
|
-
verifiedAt?: NativeDate | null | undefined;
|
|
93
114
|
} | null | undefined;
|
|
94
115
|
refreshToken?: string | null | undefined;
|
|
95
116
|
googleId?: string | null | undefined;
|
package/dist/User.js
CHANGED
|
@@ -26,6 +26,28 @@ const userSchema = new mongoose_1.default.Schema({
|
|
|
26
26
|
type: String,
|
|
27
27
|
required: false
|
|
28
28
|
},
|
|
29
|
+
moderation: {
|
|
30
|
+
isSuspended: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default: false
|
|
33
|
+
},
|
|
34
|
+
suspensionReason: {
|
|
35
|
+
type: String,
|
|
36
|
+
required: false
|
|
37
|
+
},
|
|
38
|
+
suspendedAt: {
|
|
39
|
+
type: Date,
|
|
40
|
+
required: false
|
|
41
|
+
},
|
|
42
|
+
isVerified: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
default: false
|
|
45
|
+
},
|
|
46
|
+
verifiedAt: {
|
|
47
|
+
type: Date,
|
|
48
|
+
required: false
|
|
49
|
+
},
|
|
50
|
+
},
|
|
29
51
|
emailVerified: {
|
|
30
52
|
type: Boolean,
|
|
31
53
|
default: false
|
package/dist/User.v2.d.ts
CHANGED
|
@@ -45,8 +45,8 @@ declare const userSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any
|
|
|
45
45
|
} | null | undefined;
|
|
46
46
|
identity?: {
|
|
47
47
|
nidVerified: boolean;
|
|
48
|
-
nidNumber?: string | null | undefined;
|
|
49
48
|
verifiedAt?: NativeDate | null | undefined;
|
|
49
|
+
nidNumber?: string | null | undefined;
|
|
50
50
|
} | null | undefined;
|
|
51
51
|
auth?: {
|
|
52
52
|
provider: "google" | "local";
|
|
@@ -98,8 +98,8 @@ declare const userSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any
|
|
|
98
98
|
} | null | undefined;
|
|
99
99
|
identity?: {
|
|
100
100
|
nidVerified: boolean;
|
|
101
|
-
nidNumber?: string | null | undefined;
|
|
102
101
|
verifiedAt?: NativeDate | null | undefined;
|
|
102
|
+
nidNumber?: string | null | undefined;
|
|
103
103
|
} | null | undefined;
|
|
104
104
|
auth?: {
|
|
105
105
|
provider: "google" | "local";
|
|
@@ -154,8 +154,8 @@ declare const userSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any
|
|
|
154
154
|
} | null | undefined;
|
|
155
155
|
identity?: {
|
|
156
156
|
nidVerified: boolean;
|
|
157
|
-
nidNumber?: string | null | undefined;
|
|
158
157
|
verifiedAt?: NativeDate | null | undefined;
|
|
158
|
+
nidNumber?: string | null | undefined;
|
|
159
159
|
} | null | undefined;
|
|
160
160
|
auth?: {
|
|
161
161
|
provider: "google" | "local";
|
package/package.json
CHANGED
package/src/Payout.ts
CHANGED
|
@@ -56,7 +56,7 @@ const payoutSchema = new mongoose.Schema({
|
|
|
56
56
|
// Status
|
|
57
57
|
status: {
|
|
58
58
|
type: String,
|
|
59
|
-
enum: ['pending', 'approved', 'processing', 'completed', 'failed', 'on_hold'],
|
|
59
|
+
enum: ['pending', 'approved', 'processing', 'completed', 'failed', 'on_hold', 'rejected'],
|
|
60
60
|
default: 'pending'
|
|
61
61
|
}, // "pending" | "approved" | "processing" | "completed" | "failed" | "on_hold"
|
|
62
62
|
|
package/src/User.ts
CHANGED
|
@@ -22,6 +22,28 @@ const userSchema = new mongoose.Schema({
|
|
|
22
22
|
type: String,
|
|
23
23
|
required: false
|
|
24
24
|
},
|
|
25
|
+
moderation: {
|
|
26
|
+
isSuspended: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
default: false
|
|
29
|
+
},
|
|
30
|
+
suspensionReason: {
|
|
31
|
+
type: String,
|
|
32
|
+
required: false
|
|
33
|
+
},
|
|
34
|
+
suspendedAt: {
|
|
35
|
+
type: Date,
|
|
36
|
+
required: false
|
|
37
|
+
},
|
|
38
|
+
isVerified: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: false
|
|
41
|
+
},
|
|
42
|
+
verifiedAt: {
|
|
43
|
+
type: Date,
|
|
44
|
+
required: false
|
|
45
|
+
},
|
|
46
|
+
},
|
|
25
47
|
emailVerified: {
|
|
26
48
|
type: Boolean,
|
|
27
49
|
default: false
|