tango-api-schema 2.5.44 → 2.5.47

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.44",
3
+ "version": "2.5.47",
4
4
  "description": "tangoEye model schema",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -257,7 +257,11 @@ const externalParameter = new mongoose.Schema(
257
257
  type: String,
258
258
  default: "30"
259
259
  },
260
- }
260
+ },
261
+ isMandatory: {
262
+ type: Boolean,
263
+ default: true
264
+ },
261
265
 
262
266
 
263
267
  },
@@ -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,