joye-backend-utility 4.1.15 → 4.1.16

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.
@@ -0,0 +1,2 @@
1
+ import { Schema } from 'mongoose';
2
+ export declare const MasterBlessingsDataSchema: Schema<import("mongoose").Document<any, any, any>, import("mongoose").Model<import("mongoose").Document<any, any, any>, any, any>, undefined, {}>;
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MasterBlessingsDataSchema = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ const MasterBlessingsData = new mongoose_1.Schema({
6
+ description: {
7
+ type: String,
8
+ required: true,
9
+ },
10
+ category: {
11
+ type: Array,
12
+ required: true,
13
+ index: true,
14
+ },
15
+ type: {
16
+ type: String,
17
+ required: true, // question, answer
18
+ },
19
+ minValue: {
20
+ type: Number,
21
+ required: false,
22
+ },
23
+ maxValue: {
24
+ type: Number,
25
+ required: false,
26
+ },
27
+ });
28
+ exports.MasterBlessingsDataSchema = MasterBlessingsData;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "joye-backend-utility",
3
- "version": "4.1.15",
3
+ "version": "4.1.16",
4
4
  "description": "Joye backend utility for db functions and common functions",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",