shuttlepro-shared 1.4.81 → 1.4.82

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.
@@ -233,6 +233,7 @@ const AutomationCondition = new Schema({
233
233
  "withInShift",
234
234
  "afterShift",
235
235
  "orderConfirmation",
236
+ "bankDeposit",
236
237
  "orderPublish",
237
238
  "bankDeposit",
238
239
  "orderDelivery",
@@ -14,6 +14,11 @@ const CheckpointSchema = new Schema(
14
14
  ref: "Workspace",
15
15
  default: null,
16
16
  },
17
+ createdBy: {
18
+ type: Schema.Types.ObjectId,
19
+ ref: "User",
20
+ default: null,
21
+ },
17
22
  },
18
23
  { timestamps: true, toJSON: { virtuals: true }, toObject: { virtuals: true } }
19
24
  );
@@ -0,0 +1,28 @@
1
+ const { Schema, model } = require("mongoose");
2
+
3
+ const OrderPreviewLogsSchema = new Schema(
4
+ {
5
+ workspaceId: {
6
+ type: Schema.Types.ObjectId,
7
+ ref: "Workspace",
8
+ default: null,
9
+ },
10
+ orderId: {
11
+ type: Schema.Types.ObjectId,
12
+ ref: "Order",
13
+ default: null,
14
+ },
15
+ userId: {
16
+ type: Schema.Types.ObjectId,
17
+ ref: "User",
18
+ default: null,
19
+ },
20
+ body: {
21
+ type: Schema.Types.Mixed,
22
+ default: {},
23
+ },
24
+ },
25
+ { timestamps: true, toJSON: { virtuals: true }, toObject: { virtuals: true } }
26
+ );
27
+
28
+ module.exports = model("OrderPreviewLogs", OrderPreviewLogsSchema);
package/models.js CHANGED
@@ -63,6 +63,7 @@ const Notification = require("./models/Notification");
63
63
  const NotificationSettings = require("./models/NotificationSettings");
64
64
  const Order = require("./models/Order");
65
65
  const OrderPdf = require("./models/OrderPdf");
66
+ const OrderPreviewLogs = require("./models/OrderPreviewLogs");
66
67
  const OrderProduct = require("./models/OrderProduct");
67
68
  const OrderQueue = require("./models/OrderQueue");
68
69
  const PostsAutomation = require("./models/PostsAutomation");
@@ -177,6 +178,7 @@ module.exports = {
177
178
  NotificationSettings,
178
179
  Order,
179
180
  OrderPdf,
181
+ OrderPreviewLogs,
180
182
  OrderProduct,
181
183
  OrderQueue,
182
184
  PostsAutomation,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shuttlepro-shared",
3
- "version": "1.4.81",
3
+ "version": "1.4.82",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {