tango-api-schema 2.5.43 → 2.5.45

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-api-schema",
3
- "version": "2.5.43",
3
+ "version": "2.5.45",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -2,6 +2,12 @@ import mongoose from 'mongoose';
2
2
 
3
3
  const findReplaceAi = new mongoose.Schema(
4
4
  {
5
+ name: {
6
+ type: String,
7
+ },
8
+ clientId: {
9
+ type: String,
10
+ },
5
11
  searchMode: {
6
12
  type: String,
7
13
  enum: ['store', 'cluster'],
@@ -44,6 +50,9 @@ const findReplaceAi = new mongoose.Schema(
44
50
  type: String,
45
51
  enum: ['yet-to-start', 'initiated', 'complete', 'failed'],
46
52
  },
53
+ operationKeys: {
54
+ type: [String],
55
+ },
47
56
  responseStatus: {
48
57
  type: String,
49
58
  enum: ['match', 'no-match'],
@@ -54,13 +63,38 @@ const findReplaceAi = new mongoose.Schema(
54
63
  replaceResponseData: {
55
64
  type: mongoose.Schema.Types.Mixed,
56
65
  },
66
+ isApproved: {
67
+ type: Boolean,
68
+ default: false,
69
+ },
70
+ },
71
+ ],
72
+ selectedClusters: [
73
+ {
74
+ id: {
75
+ type: String,
76
+ },
77
+ label: {
78
+ type: String,
79
+ },
57
80
  },
58
81
  ],
59
82
  status: {
60
83
  type: String,
61
- enum: ['draft', 'batch-running', 'yet-to-approve', 'approved', 'approved-rollout'],
84
+ enum: ['draft', 'batch-running', 'yet-to-approve', 'approved', 'scheduled'],
85
+ default: 'draft',
62
86
  required: true,
63
87
  },
88
+ schedule: {
89
+ type: Boolean,
90
+ default: false,
91
+ },
92
+ scheduleDate: {
93
+ type: Date,
94
+ },
95
+ batchMetadata: {
96
+ type: mongoose.Schema.Types.Mixed,
97
+ },
64
98
  },
65
99
  {
66
100
  strict: true,
@@ -67,7 +67,7 @@ const fixtureConfigSchema = new mongoose.Schema(
67
67
  },
68
68
  shelfType: {
69
69
  type: String,
70
- enum: ['shelf', 'tray'],
70
+ enum: ['shelf', 'tray', 'vmonly'],
71
71
  },
72
72
  productPerShelf: {
73
73
  type: Number,
@@ -67,7 +67,7 @@ const fixtureConfigSchema = new mongoose.Schema(
67
67
  },
68
68
  shelfType: {
69
69
  type: String,
70
- enum: ['shelf', 'tray'],
70
+ enum: ['shelf', 'tray', 'vmonly'],
71
71
  },
72
72
  productPerShelf: {
73
73
  type: Number,
@@ -106,7 +106,7 @@ const fixtureLibrarySchema = new mongoose.Schema(
106
106
  },
107
107
  shelfType: {
108
108
  type: String,
109
- enum: ['shelf', 'tray'],
109
+ enum: ['shelf', 'tray', 'vmonly'],
110
110
  },
111
111
  zone: {
112
112
  type: String,
@@ -106,7 +106,7 @@ const fixtureLibrarySchema = new mongoose.Schema(
106
106
  },
107
107
  shelfType: {
108
108
  type: String,
109
- enum: ['shelf', 'tray'],
109
+ enum: ['shelf', 'tray', 'vmonly'],
110
110
  },
111
111
  zone: {
112
112
  type: String,
@@ -53,7 +53,7 @@ const fixtureShelfSchema = new mongoose.Schema(
53
53
  },
54
54
  shelfType: {
55
55
  type: String,
56
- enum: ['shelf', 'tray'],
56
+ enum: ['shelf', 'tray', 'vmonly'],
57
57
  },
58
58
  productPerShelf: {
59
59
  type: Number,