shuttlepro-shared 1.2.99 → 1.3.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/models/Workspace.js +24 -6
- package/package.json +1 -1
package/models/Workspace.js
CHANGED
|
@@ -72,15 +72,29 @@ const feedbackFormSchema = new mongoose.Schema({
|
|
|
72
72
|
formName: { type: String, required: true, trim: true },
|
|
73
73
|
brandName: { type: String, default: "" },
|
|
74
74
|
brandLogoUrl: { type: String, default: "", trim: true },
|
|
75
|
-
type: {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
75
|
+
type: {
|
|
76
|
+
type: String,
|
|
77
|
+
default: "conversation",
|
|
78
|
+
enum: [
|
|
79
|
+
"conversation",
|
|
80
|
+
"shop",
|
|
81
|
+
// "order"
|
|
82
|
+
],
|
|
80
83
|
},
|
|
84
|
+
qr: [
|
|
85
|
+
{
|
|
86
|
+
type: mongoose.Schema.Types.Mixed,
|
|
87
|
+
default: {
|
|
88
|
+
data: "",
|
|
89
|
+
code: "",
|
|
90
|
+
link: "",
|
|
91
|
+
shopId: "",
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
],
|
|
81
95
|
integrationId: [
|
|
82
96
|
{
|
|
83
|
-
type:
|
|
97
|
+
type: Schema.Types.ObjectId,
|
|
84
98
|
ref: "Integration",
|
|
85
99
|
default: null,
|
|
86
100
|
},
|
|
@@ -252,6 +266,10 @@ const workspaceSchema = new mongoose.Schema(
|
|
|
252
266
|
option: {
|
|
253
267
|
type: mongoose.Schema.Types.Mixed,
|
|
254
268
|
},
|
|
269
|
+
isPublic: {
|
|
270
|
+
type: Boolean,
|
|
271
|
+
default: false,
|
|
272
|
+
},
|
|
255
273
|
},
|
|
256
274
|
],
|
|
257
275
|
},
|