@riocrypto/common-server 1.0.2447 → 1.0.2449

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.
@@ -3,7 +3,9 @@ import { Mongoose, Model, Document } from "mongoose";
3
3
  interface AdminAuthAttrs {
4
4
  password: string;
5
5
  email: string;
6
- slackWebhookUrl: string;
6
+ slack?: {
7
+ username?: string;
8
+ };
7
9
  acceptingTasks?: boolean;
8
10
  assignedTaskTypes: AdminTaskType[];
9
11
  userAuthId?: string;
@@ -20,7 +22,9 @@ interface AdminAuthAttrs {
20
22
  interface AdminAuthDoc extends Document {
21
23
  password: string;
22
24
  email: string;
23
- slackWebhookUrl: string;
25
+ slack?: {
26
+ username?: string;
27
+ };
24
28
  acceptingTasks?: boolean;
25
29
  assignedTaskTypes: AdminTaskType[];
26
30
  userAuthId?: string;
@@ -46,9 +46,8 @@ const buildAdminAuth = (mongoose) => {
46
46
  role: {
47
47
  type: String,
48
48
  },
49
- slackWebhookUrl: {
50
- type: String,
51
- required: true,
49
+ slack: {
50
+ type: Object,
52
51
  },
53
52
  acceptingTasks: {
54
53
  type: Boolean,
@@ -18,6 +18,9 @@ interface AuthAttrs {
18
18
  username?: string;
19
19
  telegramUserId?: number;
20
20
  };
21
+ slack?: {
22
+ username?: string;
23
+ };
21
24
  firstName?: string;
22
25
  middleName?: string;
23
26
  lastName?: string;
@@ -48,6 +48,9 @@ const buildAuth = (mongoose) => {
48
48
  type: Number,
49
49
  },
50
50
  },
51
+ slack: {
52
+ type: Object,
53
+ },
51
54
  previousPasswords: [
52
55
  {
53
56
  type: String,
@@ -3,14 +3,14 @@ interface AxeSlackThreadAttrs {
3
3
  createdAt: Date;
4
4
  axeId: string;
5
5
  userId: string;
6
- messageTs: string;
6
+ messageTs?: string;
7
7
  channel: string;
8
8
  }
9
9
  interface AxeSlackThreadDoc extends mongoose.Document {
10
10
  createdAt: Date;
11
11
  axeId: string;
12
12
  userId: string;
13
- messageTs: string;
13
+ messageTs?: string;
14
14
  channel: string;
15
15
  }
16
16
  interface AxeSlackThreadModel extends mongoose.Model<AxeSlackThreadDoc> {
@@ -21,7 +21,7 @@ const buildAxeSlackThread = (mongoose) => {
21
21
  },
22
22
  messageTs: {
23
23
  type: String,
24
- required: true,
24
+ required: false,
25
25
  },
26
26
  channel: {
27
27
  type: String,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2447",
3
+ "version": "1.0.2449",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -28,7 +28,7 @@
28
28
  "@google-cloud/secret-manager": "^5.3.0",
29
29
  "@google-cloud/storage": "^6.9.5",
30
30
  "@hyperdx/node-opentelemetry": "^0.7.0",
31
- "@riocrypto/common": "^1.0.2210",
31
+ "@riocrypto/common": "^1.0.2214",
32
32
  "@types/express": "^4.17.13",
33
33
  "axios": "^1.7.4",
34
34
  "crypto-js": "^4.2.0",