joye-backend-utility 5.0.41 → 5.0.43

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.
Files changed (82) hide show
  1. package/README.md +2 -2
  2. package/dist/config/index.d.ts +2 -2
  3. package/dist/config/index.js +8 -8
  4. package/dist/database.d.ts +26 -26
  5. package/dist/database.js +135 -135
  6. package/dist/dateTime.d.ts +11 -11
  7. package/dist/dateTime.js +82 -82
  8. package/dist/index.d.ts +6 -6
  9. package/dist/index.js +25 -25
  10. package/dist/jwt.d.ts +3 -3
  11. package/dist/jwt.js +40 -40
  12. package/dist/redisClient.d.ts +6 -6
  13. package/dist/redisClient.js +34 -34
  14. package/dist/schema/brew.d.ts +2 -2
  15. package/dist/schema/brew.js +160 -148
  16. package/dist/schema/databaseInfo.d.ts +2 -2
  17. package/dist/schema/databaseInfo.js +35 -35
  18. package/dist/schema/index.d.ts +31 -31
  19. package/dist/schema/index.js +65 -65
  20. package/dist/schema/masterAppSetting.d.ts +2 -2
  21. package/dist/schema/masterAppSetting.js +24 -24
  22. package/dist/schema/masterBlessingsData.d.ts +2 -2
  23. package/dist/schema/masterBlessingsData.js +41 -41
  24. package/dist/schema/masterData.d.ts +2 -2
  25. package/dist/schema/masterData.js +28 -28
  26. package/dist/schema/masterEmotion.d.ts +2 -2
  27. package/dist/schema/masterEmotion.js +115 -114
  28. package/dist/schema/masterEmotionMessageMapping.d.ts +2 -2
  29. package/dist/schema/masterEmotionMessageMapping.js +16 -16
  30. package/dist/schema/masterEmotionMessageTypeThemeMapping.d.ts +2 -2
  31. package/dist/schema/masterEmotionMessageTypeThemeMapping.js +23 -23
  32. package/dist/schema/masterLinkCard.d.ts +2 -2
  33. package/dist/schema/masterLinkCard.js +28 -28
  34. package/dist/schema/masterPodcast.d.ts +2 -2
  35. package/dist/schema/masterPodcast.js +33 -33
  36. package/dist/schema/masterPredictionEmotion.d.ts +2 -2
  37. package/dist/schema/masterPredictionEmotion.js +27 -27
  38. package/dist/schema/masterPredictionEmotionMessage.d.ts +2 -2
  39. package/dist/schema/masterPredictionEmotionMessage.js +26 -26
  40. package/dist/schema/masterPredictionEmotionMessageMapping.d.ts +2 -2
  41. package/dist/schema/masterPredictionEmotionMessageMapping.js +16 -16
  42. package/dist/schema/masterSuggestionsMessage.model.d.ts +2 -2
  43. package/dist/schema/masterSuggestionsMessage.model.js +23 -23
  44. package/dist/schema/masterSuggestionsParameter.model.d.ts +2 -2
  45. package/dist/schema/masterSuggestionsParameter.model.js +23 -23
  46. package/dist/schema/masterThemeData.d.ts +2 -2
  47. package/dist/schema/masterThemeData.js +48 -48
  48. package/dist/schema/masterThemeMessage.d.ts +2 -2
  49. package/dist/schema/masterThemeMessage.js +13 -13
  50. package/dist/schema/masterVideo.d.ts +2 -2
  51. package/dist/schema/masterVideo.js +33 -33
  52. package/dist/schema/organization.d.ts +2 -2
  53. package/dist/schema/organization.js +79 -79
  54. package/dist/schema/organizationUserAttrPermission.d.ts +2 -2
  55. package/dist/schema/organizationUserAttrPermission.js +35 -35
  56. package/dist/schema/platform.d.ts +2 -2
  57. package/dist/schema/platform.js +28 -28
  58. package/dist/schema/timezones.d.ts +2 -2
  59. package/dist/schema/timezones.js +26 -26
  60. package/dist/schema/user.d.ts +2 -2
  61. package/dist/schema/user.js +221 -221
  62. package/dist/schema/userFeedback.d.ts +2 -2
  63. package/dist/schema/userFeedback.js +24 -24
  64. package/dist/schema/userLog.d.ts +2 -2
  65. package/dist/schema/userLog.js +22 -22
  66. package/dist/schema/userMeeting.d.ts +2 -2
  67. package/dist/schema/userMeeting.js +22 -22
  68. package/dist/schema/userMessages.d.ts +2 -2
  69. package/dist/schema/userMessages.js +24 -24
  70. package/dist/schema/userMessagesLog.d.ts +2 -2
  71. package/dist/schema/userMessagesLog.js +69 -69
  72. package/dist/schema/userRecommendation.d.ts +2 -2
  73. package/dist/schema/userRecommendation.js +24 -24
  74. package/dist/schema/userReminder.d.ts +2 -2
  75. package/dist/schema/userReminder.js +61 -61
  76. package/dist/schema/userVideo.d.ts +2 -2
  77. package/dist/schema/userVideo.js +50 -50
  78. package/dist/util.d.ts +2 -2
  79. package/dist/util.js +13 -13
  80. package/package.json +62 -62
  81. package/dist/jwtKeys/jwtRS256.key +0 -54
  82. package/dist/jwtKeys/jwtRS256.key.pub +0 -14
@@ -1,33 +1,33 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MasterVideoSchema = void 0;
4
- const mongoose_1 = require("mongoose");
5
- const MasterVideo = new mongoose_1.Schema({
6
- key: {
7
- type: String,
8
- required: true,
9
- index: true,
10
- },
11
- file: {
12
- type: String,
13
- required: false,
14
- },
15
- title: {
16
- type: String,
17
- required: false,
18
- },
19
- url: {
20
- type: String,
21
- required: false,
22
- },
23
- duration: {
24
- type: String,
25
- required: false,
26
- },
27
- morningPodcast: {
28
- type: Boolean,
29
- default: false,
30
- required: false,
31
- },
32
- });
33
- exports.MasterVideoSchema = MasterVideo;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MasterVideoSchema = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ const MasterVideo = new mongoose_1.Schema({
6
+ key: {
7
+ type: String,
8
+ required: true,
9
+ index: true,
10
+ },
11
+ file: {
12
+ type: String,
13
+ required: false,
14
+ },
15
+ title: {
16
+ type: String,
17
+ required: false,
18
+ },
19
+ url: {
20
+ type: String,
21
+ required: false,
22
+ },
23
+ duration: {
24
+ type: String,
25
+ required: false,
26
+ },
27
+ morningPodcast: {
28
+ type: Boolean,
29
+ default: false,
30
+ required: false,
31
+ },
32
+ });
33
+ exports.MasterVideoSchema = MasterVideo;
@@ -1,2 +1,2 @@
1
- import { Schema } from 'mongoose';
2
- export declare const OrganizationSchema: Schema<import("mongoose").Document<any, any, any>, import("mongoose").Model<import("mongoose").Document<any, any, any>, any, any>, undefined, {}>;
1
+ import { Schema } from 'mongoose';
2
+ export declare const OrganizationSchema: Schema<import("mongoose").Document<any, any, any>, import("mongoose").Model<import("mongoose").Document<any, any, any>, any, any>, undefined, {}>;
@@ -1,79 +1,79 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OrganizationSchema = void 0;
4
- const mongoose_1 = require("mongoose");
5
- const Organization = new mongoose_1.Schema({
6
- platformKey: {
7
- type: String,
8
- required: true,
9
- index: true,
10
- },
11
- key: {
12
- type: String,
13
- required: true,
14
- },
15
- name: {
16
- type: String,
17
- required: true,
18
- },
19
- tId: {
20
- type: String,
21
- required: true,
22
- index: true,
23
- },
24
- tenantName: {
25
- type: String,
26
- required: false,
27
- index: true,
28
- },
29
- emergency: {
30
- type: Object,
31
- helpline: {
32
- type: Boolean,
33
- required: false,
34
- },
35
- required: false,
36
- },
37
- paidSubscription: {
38
- type: Boolean,
39
- required: false,
40
- },
41
- pilot: {
42
- type: Boolean,
43
- required: false,
44
- },
45
- streakPercentage: {
46
- type: Number,
47
- default: 10,
48
- required: false,
49
- },
50
- streakQualifier: {
51
- type: Number,
52
- default: 3,
53
- required: false,
54
- },
55
- praiseThanksQualifier: {
56
- type: Number,
57
- default: 5,
58
- required: false,
59
- },
60
- subscriptionEndDate: {
61
- type: Number,
62
- required: false,
63
- },
64
- timezone: {
65
- type: String,
66
- default: 'Asia/Singapore',
67
- required: false,
68
- },
69
- createTimestamp: {
70
- type: Number,
71
- required: false,
72
- },
73
- inactive: {
74
- type: Boolean,
75
- required: false,
76
- },
77
- });
78
- Organization.index({ platformKey: 1, timezone: -1, inactive: -1 });
79
- exports.OrganizationSchema = Organization;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrganizationSchema = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ const Organization = new mongoose_1.Schema({
6
+ platformKey: {
7
+ type: String,
8
+ required: true,
9
+ index: true,
10
+ },
11
+ key: {
12
+ type: String,
13
+ required: true,
14
+ },
15
+ name: {
16
+ type: String,
17
+ required: true,
18
+ },
19
+ tId: {
20
+ type: String,
21
+ required: true,
22
+ index: true,
23
+ },
24
+ tenantName: {
25
+ type: String,
26
+ required: false,
27
+ index: true,
28
+ },
29
+ emergency: {
30
+ type: Object,
31
+ helpline: {
32
+ type: Boolean,
33
+ required: false,
34
+ },
35
+ required: false,
36
+ },
37
+ paidSubscription: {
38
+ type: Boolean,
39
+ required: false,
40
+ },
41
+ pilot: {
42
+ type: Boolean,
43
+ required: false,
44
+ },
45
+ streakPercentage: {
46
+ type: Number,
47
+ default: 10,
48
+ required: false,
49
+ },
50
+ streakQualifier: {
51
+ type: Number,
52
+ default: 3,
53
+ required: false,
54
+ },
55
+ praiseThanksQualifier: {
56
+ type: Number,
57
+ default: 5,
58
+ required: false,
59
+ },
60
+ subscriptionEndDate: {
61
+ type: Number,
62
+ required: false,
63
+ },
64
+ timezone: {
65
+ type: String,
66
+ default: 'Asia/Singapore',
67
+ required: false,
68
+ },
69
+ createTimestamp: {
70
+ type: Number,
71
+ required: false,
72
+ },
73
+ inactive: {
74
+ type: Boolean,
75
+ required: false,
76
+ },
77
+ });
78
+ Organization.index({ platformKey: 1, timezone: -1, inactive: -1 });
79
+ exports.OrganizationSchema = Organization;
@@ -1,2 +1,2 @@
1
- import { Schema } from 'mongoose';
2
- export declare const OrganizationUserAttrPermissionSchema: Schema<import("mongoose").Document<any, any, any>, import("mongoose").Model<import("mongoose").Document<any, any, any>, any, any>, undefined, {}>;
1
+ import { Schema } from 'mongoose';
2
+ export declare const OrganizationUserAttrPermissionSchema: Schema<import("mongoose").Document<any, any, any>, import("mongoose").Model<import("mongoose").Document<any, any, any>, any, any>, undefined, {}>;
@@ -1,35 +1,35 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OrganizationUserAttrPermissionSchema = void 0;
4
- const mongoose_1 = require("mongoose");
5
- const OrganizationUserAttrPermission = new mongoose_1.Schema({
6
- tId: {
7
- type: String,
8
- required: true,
9
- },
10
- tenantName: {
11
- type: String,
12
- required: false,
13
- },
14
- userAttributes: {
15
- type: Array,
16
- required: false,
17
- },
18
- customConsent: {
19
- type: String,
20
- required: false,
21
- },
22
- email: {
23
- type: String,
24
- required: false,
25
- },
26
- consentImage: {
27
- type: String,
28
- required: false,
29
- },
30
- timezone: {
31
- type: String,
32
- required: false,
33
- },
34
- });
35
- exports.OrganizationUserAttrPermissionSchema = OrganizationUserAttrPermission;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrganizationUserAttrPermissionSchema = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ const OrganizationUserAttrPermission = new mongoose_1.Schema({
6
+ tId: {
7
+ type: String,
8
+ required: true,
9
+ },
10
+ tenantName: {
11
+ type: String,
12
+ required: false,
13
+ },
14
+ userAttributes: {
15
+ type: Array,
16
+ required: false,
17
+ },
18
+ customConsent: {
19
+ type: String,
20
+ required: false,
21
+ },
22
+ email: {
23
+ type: String,
24
+ required: false,
25
+ },
26
+ consentImage: {
27
+ type: String,
28
+ required: false,
29
+ },
30
+ timezone: {
31
+ type: String,
32
+ required: false,
33
+ },
34
+ });
35
+ exports.OrganizationUserAttrPermissionSchema = OrganizationUserAttrPermission;
@@ -1,2 +1,2 @@
1
- import { Schema } from 'mongoose';
2
- export declare const PlatformSchema: Schema<import("mongoose").Document<any, any, any>, import("mongoose").Model<import("mongoose").Document<any, any, any>, any, any>, undefined, {}>;
1
+ import { Schema } from 'mongoose';
2
+ export declare const PlatformSchema: Schema<import("mongoose").Document<any, any, any>, import("mongoose").Model<import("mongoose").Document<any, any, any>, any, any>, undefined, {}>;
@@ -1,28 +1,28 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PlatformSchema = void 0;
4
- const mongoose_1 = require("mongoose");
5
- const Platform = new mongoose_1.Schema({
6
- key: {
7
- type: String,
8
- required: true,
9
- index: true,
10
- },
11
- name: {
12
- type: String,
13
- required: true,
14
- },
15
- email: {
16
- type: String,
17
- required: false,
18
- },
19
- subscriptionEndDate: {
20
- type: Number,
21
- required: false,
22
- },
23
- timezone: {
24
- type: String,
25
- required: false,
26
- },
27
- });
28
- exports.PlatformSchema = Platform;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PlatformSchema = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ const Platform = new mongoose_1.Schema({
6
+ key: {
7
+ type: String,
8
+ required: true,
9
+ index: true,
10
+ },
11
+ name: {
12
+ type: String,
13
+ required: true,
14
+ },
15
+ email: {
16
+ type: String,
17
+ required: false,
18
+ },
19
+ subscriptionEndDate: {
20
+ type: Number,
21
+ required: false,
22
+ },
23
+ timezone: {
24
+ type: String,
25
+ required: false,
26
+ },
27
+ });
28
+ exports.PlatformSchema = Platform;
@@ -1,2 +1,2 @@
1
- import { Schema } from 'mongoose';
2
- export declare const TimezoneSchema: Schema<import("mongoose").Document<any, any, any>, import("mongoose").Model<import("mongoose").Document<any, any, any>, any, any>, undefined, {}>;
1
+ import { Schema } from 'mongoose';
2
+ export declare const TimezoneSchema: Schema<import("mongoose").Document<any, any, any>, import("mongoose").Model<import("mongoose").Document<any, any, any>, any, any>, undefined, {}>;
@@ -1,26 +1,26 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TimezoneSchema = void 0;
4
- const mongoose_1 = require("mongoose");
5
- const Timezone = new mongoose_1.Schema({
6
- name: {
7
- type: String,
8
- required: true,
9
- },
10
- timezone: {
11
- type: String,
12
- required: true,
13
- },
14
- isActive: {
15
- type: Boolean,
16
- required: true,
17
- index: true,
18
- default: true,
19
- },
20
- userTimezone: {
21
- type: Boolean,
22
- required: false,
23
- default: false,
24
- },
25
- });
26
- exports.TimezoneSchema = Timezone;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TimezoneSchema = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ const Timezone = new mongoose_1.Schema({
6
+ name: {
7
+ type: String,
8
+ required: true,
9
+ },
10
+ timezone: {
11
+ type: String,
12
+ required: true,
13
+ },
14
+ isActive: {
15
+ type: Boolean,
16
+ required: true,
17
+ index: true,
18
+ default: true,
19
+ },
20
+ userTimezone: {
21
+ type: Boolean,
22
+ required: false,
23
+ default: false,
24
+ },
25
+ });
26
+ exports.TimezoneSchema = Timezone;
@@ -1,2 +1,2 @@
1
- import { Schema } from 'mongoose';
2
- export declare const UserSchema: Schema<import("mongoose").Document<any, any, any>, import("mongoose").Model<import("mongoose").Document<any, any, any>, any, any>, undefined, {}>;
1
+ import { Schema } from 'mongoose';
2
+ export declare const UserSchema: Schema<import("mongoose").Document<any, any, any>, import("mongoose").Model<import("mongoose").Document<any, any, any>, any, any>, undefined, {}>;