@positivegrid/pg-mongoose-schema 27.8.1 → 27.8.4

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.
@@ -6,13 +6,20 @@ module.exports = function (mongoose) {
6
6
  const DataSourceSchema = new Schema({
7
7
  type: {
8
8
  type: String,
9
- enum: ['tone_theme_query', 'tone_theme_ids'],
9
+ enum: ['tone_theme_query', 'tone_theme_ids', 'tone_theme_id'],
10
10
  required: true
11
11
  },
12
+ // 單一 theme ID(當 type = 'tone_theme_id')
13
+ tone_theme_id: {
14
+ type: String,
15
+ default: null
16
+ },
17
+ // 動態查詢(當 type = 'tone_theme_query')
12
18
  query: {
13
19
  type: Schema.Types.Mixed,
14
20
  default: null
15
21
  },
22
+ // 多個 theme IDs(當 type = 'tone_theme_ids')
16
23
  ids: [{
17
24
  type: String
18
25
  }],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@positivegrid/pg-mongoose-schema",
3
- "version": "27.8.1",
3
+ "version": "27.8.4",
4
4
  "description": "Positive Grid mongoose schema",
5
5
  "author": "Ferrari Lee <shiyung@positivegrid.com>",
6
6
  "homepage": "https://git.positivegrid.com:8443/backend/pg-mongoose-schema",