shuttlepro-shared 1.4.62 → 1.4.64
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/Webhook.js +14 -0
- package/models.js +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const mongoose = require("mongoose");
|
|
2
|
+
const { Schema } = mongoose;
|
|
3
|
+
|
|
4
|
+
const WebhookSchema = new Schema(
|
|
5
|
+
{
|
|
6
|
+
isDeleted: { type: Boolean, default: false },
|
|
7
|
+
data: { type: Object, default: null },
|
|
8
|
+
},
|
|
9
|
+
{ timestamps: true, toJSON: { virtuals: true }, toObject: { virtuals: true } }
|
|
10
|
+
);
|
|
11
|
+
|
|
12
|
+
const Webhook = mongoose.model("Webhook", WebhookSchema);
|
|
13
|
+
|
|
14
|
+
module.exports = Webhook;
|
package/models.js
CHANGED
|
@@ -101,6 +101,7 @@ const UserRole = require("./models/UserRole");
|
|
|
101
101
|
const UserSession = require("./models/UserSession");
|
|
102
102
|
const UserWorkflow = require("./models/UserWorkflow");
|
|
103
103
|
const VariantLocation = require("./models/VariantLocation");
|
|
104
|
+
const Webhook = require("./models/Webhook");
|
|
104
105
|
const Website = require("./models/Website");
|
|
105
106
|
const WhatsappFlow = require("./models/WhatsappFlow");
|
|
106
107
|
const WorkflowRun = require("./models/WorkflowRun");
|
|
@@ -213,6 +214,7 @@ module.exports = {
|
|
|
213
214
|
UserSession,
|
|
214
215
|
UserWorkflow,
|
|
215
216
|
VariantLocation,
|
|
217
|
+
Webhook,
|
|
216
218
|
Website,
|
|
217
219
|
WhatsappFlow,
|
|
218
220
|
Workflow,
|