@messenger-box/property-ext-server 10.0.3-alpha.143 → 10.0.3-alpha.145
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/lib/migrations/bot-user-migration.d.ts +3 -3
- package/lib/migrations/bot-user-migration.js +15 -27
- package/lib/migrations/bot-user-migration.js.map +1 -1
- package/lib/migrations/property-ext-messages-migration.d.ts +6 -4
- package/lib/migrations/property-ext-messages-migration.js +131 -164
- package/lib/migrations/property-ext-messages-migration.js.map +1 -1
- package/lib/mock/migration/add-channel-migration.d.ts +3 -4
- package/package.json +6 -6
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ServiceBroker } from 'moleculer';
|
|
2
1
|
import { IDatabaseMigration } from '@adminide-stack/core';
|
|
3
2
|
import { CdmLogger } from '@cdm-logger/core';
|
|
3
|
+
import { IAccountService } from 'common/server';
|
|
4
4
|
export declare class BotUserMigration implements IDatabaseMigration {
|
|
5
|
-
private readonly
|
|
5
|
+
private readonly accountService;
|
|
6
6
|
private logger;
|
|
7
|
-
constructor(
|
|
7
|
+
constructor(accountService: IAccountService, logger: CdmLogger.ILogger);
|
|
8
8
|
protected name: string;
|
|
9
9
|
id: string;
|
|
10
10
|
up(): Promise<void>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {__decorate,__param,__metadata}from'tslib';import {injectable,inject}from'inversify';import
|
|
1
|
+
import {__decorate,__param,__metadata}from'tslib';import {injectable,inject}from'inversify';import'@cdm-logger/core';import {SERVER_TYPES}from'common/server';var BotUserMigration_1;
|
|
2
2
|
let BotUserMigration = BotUserMigration_1 = class BotUserMigration {
|
|
3
|
-
|
|
3
|
+
accountService;
|
|
4
4
|
logger;
|
|
5
|
-
constructor(
|
|
6
|
-
this.
|
|
5
|
+
constructor(accountService, logger) {
|
|
6
|
+
this.accountService = accountService;
|
|
7
7
|
this.logger = logger;
|
|
8
8
|
this.logger = logger.child({
|
|
9
9
|
className: BotUserMigration_1.name
|
|
@@ -14,38 +14,26 @@ let BotUserMigration = BotUserMigration_1 = class BotUserMigration {
|
|
|
14
14
|
async up() {
|
|
15
15
|
await this.down();
|
|
16
16
|
this.logger.debug(`(up) Starting up migration...`);
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
emailVerified: true,
|
|
24
|
-
notificationEmail: ''
|
|
25
|
-
}
|
|
17
|
+
const user = await this.accountService.createAccount({
|
|
18
|
+
username: 'resortifi',
|
|
19
|
+
email: 'resortifi-bot@resortifi.com',
|
|
20
|
+
alias: ['resortifi'],
|
|
21
|
+
emailVerified: true,
|
|
22
|
+
notificationEmail: ''
|
|
26
23
|
});
|
|
27
24
|
this.logger.debug(`(up) done`, user);
|
|
28
25
|
}
|
|
29
26
|
async down() {
|
|
30
|
-
if (config.isDev) {
|
|
31
|
-
await this.broker.waitForServices(AccountServiceSchemas.topic);
|
|
32
|
-
}
|
|
33
27
|
this.logger.debug(`(down) Starting down migration...`);
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
email: 'resortifi-bot@resortifi.com'
|
|
37
|
-
});
|
|
38
|
-
if (!user) {
|
|
28
|
+
const user = await this.accountService.findAccountByEmail('resortifi-bot@resortifi.com');
|
|
29
|
+
if (!user || user instanceof Error) {
|
|
39
30
|
return;
|
|
40
31
|
}
|
|
41
32
|
this.logger.debug(`(down) User Found, dropping...`, user);
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
account: {
|
|
45
|
-
id: user.id
|
|
46
|
-
}
|
|
33
|
+
await this.accountService.deleteAccount({
|
|
34
|
+
id: user.id
|
|
47
35
|
});
|
|
48
36
|
this.logger.debug(`(down) User drop done!`);
|
|
49
37
|
}
|
|
50
38
|
};
|
|
51
|
-
BotUserMigration = BotUserMigration_1 = __decorate([injectable(), __param(0, inject(
|
|
39
|
+
BotUserMigration = BotUserMigration_1 = __decorate([injectable(), __param(0, inject(SERVER_TYPES.IAccountService)), __param(1, inject('Logger')), __metadata("design:paramtypes", [Object, Object])], BotUserMigration);export{BotUserMigration};//# sourceMappingURL=bot-user-migration.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bot-user-migration.js","sources":["../../src/migrations/bot-user-migration.ts"],"sourcesContent":[null],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"bot-user-migration.js","sources":["../../src/migrations/bot-user-migration.ts"],"sourcesContent":[null],"names":[],"mappings":";AAMO,IAAM,gBAAgB,GAAA,kBAAA,GAAtB,MAAM,gBAAgB,CAAA;AAGJ,EAAA,cAAA;AAET,EAAA,MAAA;aAJZ,CAAA,cAEqB,EAA+B,MAExC,EAAyB;QAFhB,CAAA,cAAA,GAAA;QAET,CAAA,MAAA,GAAA;AAER,IAAA,IAAA,CAAA,MAAK,GAAA,MAAS,CAAA,KAAO,CAAA;MACxB,SAAA,EAAA,kBAAA,CAAA;KAES,CAAA;;AAIV,EAAA,IAAA,GAAK,kBAAG;AACJ,EAAA,EAAA,GAAA,CAAA,EAAA,IAAM,CAAA,WAAY,CAAA,IAAA,CAAA,SAAA,CAAA;AAClB,EAAA,MAAA,EAAA,GAAK;UACL,IAAM,CAAA,MAAO;AACT,IAAA,IAAA,CAAA,MAAA,CAAA,MAAU,CAAA,6BAAW,CAAA,CAAA;AACrB,IAAA,MAAA,IAAA,GAAK,MAAE,IAAA,CAAA,cAAA,CAAA,aAA6B,CAAA;cACpC,EAAA,WAAQ;AACR,MAAA,KAAA,EAAA,6BAAmB;AACnB,MAAA,KAAA,EAAA,CAAA,WAAA,CAAA;AACI,MAAA,aAAE,EAAA,IAAA;uBACE,EAAK;KACpB,CAAA;AAED,IAAA,IAAA,CAAK,MAAK,CAAA,KAAA,CAAA,CAAA,SAAA,CAAA,EAAA,IAAA,CAAA;AACN,EAAA;QACA,IAAA,GAAM;AACN,IAAA,IAAA,CAAA,MAAK,CAAA,KAAQ,mCAAwB,CAAA,CAAA;cACjC,GAAA,MAAO,IAAA,CAAA,cAAA,CAAA,kBAAA,CAAA,6BAAA,CAAA;QACX,CAAC,IAAA,IAAA,IAAA,YAAA,KAAA,EAAA;;AAED,IAAA;eACM,CAAE,KAAK,CAAA,CAAE,8BAAA,CAAA,EAAA,IAAA,CAAA;AACP,IAAA,MAAC,IAAC,CAAA,cAAA,CAAA,aAAA,CAAA;AACV,MAAA,EAAA,EAAA,IAAK,CAAA;KACR,CAAA;IACJ,IAAA,CAAA,MAAA,CAAA,KAAA,CAAA,CAAA,sBAAA,CAAA,CAAA;AAvCY,EAAA;AADZ;AAGQ,qCAAoB,GAAA,UAAe,CAAC,CAAA,UAAA,EAAA,EAAA,OAAA,CAAA,CAAA,EAAA,MAAA,CAAA,YAAA,CAAA,eAAA,CAAA,CAAA,EAAA,OAAA,CAAA,CAAA,EAAA,MAAA,CAAA,QAAA,CAAA,CAAA,EAAA,UAAA,CAAA,mBAAA,EAAA,CAAA,MAAA,EAAA,MAAA,CAAA,CAAA,CAAA,EAAA,gBAAA,CAAA"}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { IDatabaseMigration } from '@adminide-stack/core';
|
|
2
|
-
import {
|
|
2
|
+
import { IAccountService, IChannelService, IPostService, IPostThreadService } from 'common/server';
|
|
3
3
|
import { CdmLogger } from '@cdm-logger/core';
|
|
4
4
|
export declare class PropertyExtMessagesMigration implements IDatabaseMigration {
|
|
5
|
-
private readonly
|
|
5
|
+
private readonly accountService;
|
|
6
|
+
private readonly channelService;
|
|
7
|
+
private readonly postService;
|
|
8
|
+
private readonly postThreadService;
|
|
6
9
|
private logger;
|
|
7
|
-
constructor(
|
|
10
|
+
constructor(accountService: IAccountService, channelService: IChannelService, postService: IPostService, postThreadService: IPostThreadService, logger: CdmLogger.ILogger);
|
|
8
11
|
protected name: string;
|
|
9
12
|
id: string;
|
|
10
13
|
private createUsers;
|
|
@@ -13,7 +16,6 @@ export declare class PropertyExtMessagesMigration implements IDatabaseMigration
|
|
|
13
16
|
private createSimpleMessage;
|
|
14
17
|
private createAlertMessage;
|
|
15
18
|
private createCardMessage;
|
|
16
|
-
private waitForServices;
|
|
17
19
|
up(): Promise<void>;
|
|
18
20
|
down(): Promise<void>;
|
|
19
21
|
}
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
import {__decorate,__param,__metadata}from'tslib';import {injectable,inject}from'inversify';import {
|
|
1
|
+
import {__decorate,__param,__metadata}from'tslib';import {injectable,inject}from'inversify';import {SERVER_TYPES,RoomType,PostTypeEnum}from'common/server';import'@cdm-logger/core';import {config}from'../config/env-config.js';var PropertyExtMessagesMigration_1;
|
|
2
2
|
let PropertyExtMessagesMigration = PropertyExtMessagesMigration_1 = class PropertyExtMessagesMigration {
|
|
3
|
-
|
|
3
|
+
accountService;
|
|
4
|
+
channelService;
|
|
5
|
+
postService;
|
|
6
|
+
postThreadService;
|
|
4
7
|
logger;
|
|
5
|
-
constructor(
|
|
6
|
-
this.
|
|
8
|
+
constructor(accountService, channelService, postService, postThreadService, logger) {
|
|
9
|
+
this.accountService = accountService;
|
|
10
|
+
this.channelService = channelService;
|
|
11
|
+
this.postService = postService;
|
|
12
|
+
this.postThreadService = postThreadService;
|
|
7
13
|
this.logger = logger;
|
|
8
14
|
this.logger = logger.child({
|
|
9
15
|
className: PropertyExtMessagesMigration_1.name
|
|
@@ -12,106 +18,93 @@ let PropertyExtMessagesMigration = PropertyExtMessagesMigration_1 = class Proper
|
|
|
12
18
|
name = this.constructor.name;
|
|
13
19
|
id = `${this.name}_20231006`;
|
|
14
20
|
async createUsers() {
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
emailVerified: true,
|
|
26
|
-
notificationEmail: ''
|
|
27
|
-
}
|
|
21
|
+
const userOne = this.accountService.createAccount({
|
|
22
|
+
username: 'propertyAutomatedUser',
|
|
23
|
+
email: 'property-automated-user@resortifi.com',
|
|
24
|
+
alias: ['auth0|62df21f9e8116e9fce8207cf'],
|
|
25
|
+
// This need to match with auth0 id. Otherwise manually updatein the DB
|
|
26
|
+
familyName: 'property-fixure',
|
|
27
|
+
givenName: 'user1',
|
|
28
|
+
picture: 'https://lh3.googleusercontent.com/a/AATXAJxMARAgr96npkZGf4R2uGbahBP4tLh5SRbS9bVq=s96-c',
|
|
29
|
+
emailVerified: true,
|
|
30
|
+
notificationEmail: ''
|
|
28
31
|
});
|
|
29
|
-
const userTwo = this.
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
notificationEmail: ''
|
|
40
|
-
}
|
|
32
|
+
const userTwo = this.accountService.createAccount({
|
|
33
|
+
username: 'propertyAutomatedUser2',
|
|
34
|
+
email: 'property-automated-user2@resortifi.com',
|
|
35
|
+
alias: ['auth0|62df22109b1f5f6077c1f57e'],
|
|
36
|
+
// This need to match with auth0 id. Otherwise manually updatein the DB
|
|
37
|
+
familyName: 'property-fixure',
|
|
38
|
+
givenName: 'user2',
|
|
39
|
+
picture: 'https://lh3.googleusercontent.com/a/AATXAJxMARAgr96npkZGf4R2uGbahBP4tLh5SRbS9bVq=s96-c',
|
|
40
|
+
emailVerified: true,
|
|
41
|
+
notificationEmail: ''
|
|
41
42
|
});
|
|
42
43
|
return Promise.all([userOne, userTwo]);
|
|
43
44
|
}
|
|
44
|
-
createServiceChannel(owner) {
|
|
45
|
-
return this.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}]
|
|
59
|
-
}
|
|
45
|
+
async createServiceChannel(owner) {
|
|
46
|
+
return this.channelService.create({
|
|
47
|
+
topic: 'CustomerSupportServiceChat',
|
|
48
|
+
title: `${config.APP_NAME} SUPPORT`,
|
|
49
|
+
description: `${config.APP_NAME} SUPPORT SERVICE`,
|
|
50
|
+
creator: owner.id,
|
|
51
|
+
displayName: `followup-support-${owner.id}`,
|
|
52
|
+
type: RoomType.Service,
|
|
53
|
+
members: [{
|
|
54
|
+
id: undefined,
|
|
55
|
+
schemeAdmin: false,
|
|
56
|
+
roles: 'OWNER',
|
|
57
|
+
user: owner.id
|
|
58
|
+
}]
|
|
60
59
|
});
|
|
61
60
|
}
|
|
62
|
-
createChannel(owner, guest) {
|
|
63
|
-
return this.
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
}]
|
|
81
|
-
}
|
|
61
|
+
async createChannel(owner, guest) {
|
|
62
|
+
return this.channelService.create({
|
|
63
|
+
topic: 'Fixtures',
|
|
64
|
+
title: `${owner.alias}:${guest.alias}`,
|
|
65
|
+
creator: guest.id,
|
|
66
|
+
displayName: `${owner.id}:${guest.id}`,
|
|
67
|
+
type: RoomType.Direct,
|
|
68
|
+
members: [{
|
|
69
|
+
id: undefined,
|
|
70
|
+
schemeAdmin: false,
|
|
71
|
+
roles: 'OWNER',
|
|
72
|
+
user: owner.id
|
|
73
|
+
}, {
|
|
74
|
+
id: undefined,
|
|
75
|
+
schemeAdmin: true,
|
|
76
|
+
roles: 'GUEST',
|
|
77
|
+
user: guest.id
|
|
78
|
+
}]
|
|
82
79
|
});
|
|
83
80
|
}
|
|
84
81
|
async createSimpleMessage(channelId, editedBy) {
|
|
85
|
-
return this.
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
files: []
|
|
92
|
-
}
|
|
82
|
+
return this.postService.create({
|
|
83
|
+
editedBy: editedBy,
|
|
84
|
+
channel: channelId,
|
|
85
|
+
message: 'Hello from the migrations',
|
|
86
|
+
type: PostTypeEnum.Simple,
|
|
87
|
+
files: []
|
|
93
88
|
});
|
|
94
89
|
}
|
|
95
90
|
async createAlertMessage(channelId, editedBy) {
|
|
96
91
|
const message = 'This is a dummy alert!';
|
|
97
|
-
return this.
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
link: `/some-route/some-id`
|
|
114
|
-
}
|
|
92
|
+
return this.postService.create({
|
|
93
|
+
editedBy: editedBy,
|
|
94
|
+
channel: channelId,
|
|
95
|
+
message,
|
|
96
|
+
type: PostTypeEnum.Alert,
|
|
97
|
+
files: [],
|
|
98
|
+
props: {
|
|
99
|
+
ref: 'Dummy',
|
|
100
|
+
refId: 'some-ref',
|
|
101
|
+
attachment: {
|
|
102
|
+
title: message,
|
|
103
|
+
isTitleHtml: false,
|
|
104
|
+
icon: 'InfoIcon',
|
|
105
|
+
callToAction: {
|
|
106
|
+
title: 'View',
|
|
107
|
+
link: `/some-route/some-id`
|
|
115
108
|
}
|
|
116
109
|
}
|
|
117
110
|
}
|
|
@@ -119,49 +112,40 @@ let PropertyExtMessagesMigration = PropertyExtMessagesMigration_1 = class Proper
|
|
|
119
112
|
}
|
|
120
113
|
async createCardMessage(channelId, editedBy) {
|
|
121
114
|
const message = 'Inquiry for fixture property';
|
|
122
|
-
return this.
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
totalReview: 450
|
|
150
|
-
}
|
|
115
|
+
return this.postService.create({
|
|
116
|
+
editedBy: editedBy,
|
|
117
|
+
channel: channelId,
|
|
118
|
+
message,
|
|
119
|
+
type: PostTypeEnum.Card,
|
|
120
|
+
files: [],
|
|
121
|
+
props: {
|
|
122
|
+
ref: 'Property',
|
|
123
|
+
refId: 'some-property-id',
|
|
124
|
+
attachment: {
|
|
125
|
+
image: 'https://placehold.co/300',
|
|
126
|
+
title: message,
|
|
127
|
+
isTitleHtml: false,
|
|
128
|
+
description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis interdum leo augue, non posuere sapien ullamcorper ac. Aliquam vitae ornare libero, ac vulputate elit. Aenean interdum, mi a viverra maximus, leo nibh maximus augue, vel ultrices leo ante et ex. Maecenas vel mi auctor, egestas tellus nec, placerat odio. Curabitur eget tortor sed ligula pharetra varius. Aliquam sit amet lacus ligula. Etiam vitae magna eros.',
|
|
129
|
+
isDescriptionHtml: false,
|
|
130
|
+
callToAction: {
|
|
131
|
+
title: 'View',
|
|
132
|
+
// Should come from frontend
|
|
133
|
+
link: `/property/some-id`
|
|
134
|
+
},
|
|
135
|
+
property: {
|
|
136
|
+
price: 10,
|
|
137
|
+
priceType: 'Hourly',
|
|
138
|
+
type: 'Hotel',
|
|
139
|
+
totalStar: 5,
|
|
140
|
+
maxPeople: 500,
|
|
141
|
+
totalReview: 450
|
|
151
142
|
}
|
|
152
143
|
}
|
|
153
144
|
}
|
|
154
145
|
});
|
|
155
146
|
}
|
|
156
|
-
async waitForServices() {
|
|
157
|
-
if (config.isDev) {
|
|
158
|
-
await Promise.all([this.broker.waitForServices(`${MoleculerTopics.ChannelService}`), this.broker.waitForServices(AccountServiceSchemas.topic), this.broker.waitForServices(`${MoleculerTopics.PostService}`), this.broker.waitForServices(`${MoleculerTopics.PostThreadService}`)]);
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
147
|
async up() {
|
|
162
148
|
await this.down();
|
|
163
|
-
await this.waitForServices();
|
|
164
|
-
// await this.down();
|
|
165
149
|
this.logger.debug(`(up) Starting up migration...`);
|
|
166
150
|
const users = await this.createUsers();
|
|
167
151
|
if (!users) {
|
|
@@ -183,14 +167,10 @@ let PropertyExtMessagesMigration = PropertyExtMessagesMigration_1 = class Proper
|
|
|
183
167
|
}
|
|
184
168
|
async down() {
|
|
185
169
|
this.logger.debug(`(down) Starting down migration...`);
|
|
186
|
-
await this.waitForServices();
|
|
187
170
|
try {
|
|
188
|
-
const
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
email: {
|
|
192
|
-
$in: ['property-automated-user@resortifi.com', 'property-automated-user2@resortifi.com']
|
|
193
|
-
}
|
|
171
|
+
const users = await this.accountService.getUsers({
|
|
172
|
+
email: {
|
|
173
|
+
$in: ['property-automated-user@resortifi.com', 'property-automated-user2@resortifi.com']
|
|
194
174
|
}
|
|
195
175
|
});
|
|
196
176
|
if (!users.length) {
|
|
@@ -198,80 +178,67 @@ let PropertyExtMessagesMigration = PropertyExtMessagesMigration_1 = class Proper
|
|
|
198
178
|
return;
|
|
199
179
|
}
|
|
200
180
|
const [userOne, userTwo] = users;
|
|
201
|
-
const
|
|
181
|
+
const channels = await this.channelService.getAll({
|
|
202
182
|
criteria: {
|
|
203
183
|
displayName: `${userTwo.id}:${userOne.id}`
|
|
204
184
|
}
|
|
205
185
|
});
|
|
186
|
+
const [channel] = channels;
|
|
206
187
|
if (!channel?.id) {
|
|
207
188
|
this.logger.debug(`(down) No Channel found, skipping channel delete!`);
|
|
208
189
|
} else {
|
|
209
|
-
const posts = await this.
|
|
190
|
+
const posts = await this.postService.getAll({
|
|
210
191
|
criteria: {
|
|
211
192
|
channel: channel.id
|
|
212
193
|
}
|
|
213
194
|
});
|
|
214
195
|
await Promise.all(posts.map(({
|
|
215
196
|
id
|
|
216
|
-
}) => this.
|
|
217
|
-
|
|
218
|
-
})));
|
|
219
|
-
await this.broker.call(`${MoleculerTopics.ChannelService}.${BaseServiceCommands.Delete}`, {
|
|
220
|
-
id: channel.id
|
|
221
|
-
});
|
|
197
|
+
}) => this.postService.delete(id)));
|
|
198
|
+
await this.channelService.delete(channel.id);
|
|
222
199
|
}
|
|
223
200
|
/////////////////////////....Service Channel....//////////////////////////////////
|
|
224
|
-
const serviceUsers = await this.
|
|
225
|
-
|
|
226
|
-
email: 'property-automated-user2@resortifi.com'
|
|
227
|
-
}
|
|
201
|
+
const serviceUsers = await this.accountService.getUsers({
|
|
202
|
+
email: 'property-automated-user2@resortifi.com'
|
|
228
203
|
});
|
|
229
204
|
if (!serviceUsers.length) {
|
|
230
205
|
this.logger.debug(`(down) No service Users found, skipping migrations!`);
|
|
231
206
|
return;
|
|
232
207
|
}
|
|
233
208
|
const [serviceUser] = serviceUsers;
|
|
234
|
-
const
|
|
209
|
+
const serviceChannels = await this.channelService.getAll({
|
|
235
210
|
criteria: {
|
|
236
211
|
displayName: `followup-support-${serviceUser?.id}`
|
|
237
212
|
}
|
|
238
213
|
});
|
|
214
|
+
const [servicehannel] = serviceChannels;
|
|
239
215
|
this.logger.debug(`servicehannel = ${JSON.stringify(servicehannel)}`);
|
|
240
216
|
if (!servicehannel?.id) {
|
|
241
217
|
this.logger.debug(`(down) No Service Channel found, skipping service channel delete!`);
|
|
242
218
|
} else {
|
|
243
|
-
const posts = await this.
|
|
219
|
+
const posts = await this.postService.getAll({
|
|
244
220
|
criteria: {
|
|
245
221
|
channel: servicehannel.id
|
|
246
222
|
}
|
|
247
223
|
});
|
|
248
224
|
await Promise.all(posts.map(({
|
|
249
225
|
id
|
|
250
|
-
}) => this.
|
|
251
|
-
|
|
252
|
-
})));
|
|
253
|
-
const postsThreads = await this.broker.call(`${MoleculerTopics.PostThreadService}.getAll`, {
|
|
226
|
+
}) => this.postService.delete(id)));
|
|
227
|
+
const postsThreads = await this.postThreadService.getAll({
|
|
254
228
|
criteria: {
|
|
255
229
|
channel: servicehannel.id
|
|
256
230
|
}
|
|
257
231
|
});
|
|
258
232
|
await Promise.all(postsThreads.map(({
|
|
259
233
|
id
|
|
260
|
-
}) => this.
|
|
261
|
-
|
|
262
|
-
})));
|
|
263
|
-
await this.broker.call(`${MoleculerTopics.ChannelService}.${BaseServiceCommands.Delete}`, {
|
|
264
|
-
id: servicehannel.id
|
|
265
|
-
});
|
|
234
|
+
}) => this.postThreadService.delete(id)));
|
|
235
|
+
await this.channelService.delete(servicehannel.id);
|
|
266
236
|
}
|
|
267
237
|
/////////////////////////....Service Channel.... end//////////////////////////////////
|
|
268
|
-
const deleteAction = 'deleteAccount';
|
|
269
238
|
await Promise.all(users.map(({
|
|
270
239
|
id
|
|
271
|
-
}) => this.
|
|
272
|
-
|
|
273
|
-
id
|
|
274
|
-
}
|
|
240
|
+
}) => this.accountService.deleteAccount({
|
|
241
|
+
id
|
|
275
242
|
})));
|
|
276
243
|
this.logger.debug(`(down) Successful`);
|
|
277
244
|
} catch (e) {
|
|
@@ -279,4 +246,4 @@ let PropertyExtMessagesMigration = PropertyExtMessagesMigration_1 = class Proper
|
|
|
279
246
|
}
|
|
280
247
|
}
|
|
281
248
|
};
|
|
282
|
-
PropertyExtMessagesMigration = PropertyExtMessagesMigration_1 = __decorate([injectable(), __param(0, inject(
|
|
249
|
+
PropertyExtMessagesMigration = PropertyExtMessagesMigration_1 = __decorate([injectable(), __param(0, inject(SERVER_TYPES.IAccountService)), __param(1, inject(SERVER_TYPES.ChannelService)), __param(2, inject(SERVER_TYPES.PostService)), __param(3, inject(SERVER_TYPES.PostThreadService)), __param(4, inject('Logger')), __metadata("design:paramtypes", [Object, Object, Object, Object, Object])], PropertyExtMessagesMigration);export{PropertyExtMessagesMigration};//# sourceMappingURL=property-ext-messages-migration.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"property-ext-messages-migration.js","sources":["../../src/migrations/property-ext-messages-migration.ts"],"sourcesContent":[null],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"property-ext-messages-migration.js","sources":["../../src/migrations/property-ext-messages-migration.ts"],"sourcesContent":[null],"names":[],"mappings":";AAgBO,IAAM,4BAA4B,GAAA,8BAAA,GAAlC,MAAM,4BAA4B,CAAA;AAGhB,EAAA,cAAA;AAEA,EAAA,cAAA;AAEA,EAAA,WAAA;AAEA,EAAA,iBAAA;AAET,EAAA,MAAA;aAVZ,CAAA,cAEqB,EAA+B,cAE/B,EAA+B,aAEN,iBAEzB,EAAqC,MAE9C,EAAyB;QARhB,CAAA,cAAA,GAAA;QAEA,CAAA,cAAA,GAAA;QAEA,CAAA,WAAA,GAAA;QAEA,CAAA,iBAAA,GAAA;QAET,CAAA,MAAA,GAAA;AAER,IAAA,IAAA,CAAA,MAAK,GAAA,MAAS,CAAA,KAAO,CAAA;MACxB,SAAA,EAAA,8BAAA,CAAA;AAES,KAAA,CAAA;AAEV,EAAA;AAEQ,EAAA,IAAA,GAAK,IAAC,CAAA,WAAW,CAAA,IAAA;AACrB,EAAA,EAAA,GAAA,CAAA,EAAA,IAAM,eAAe,CAAA;AACjB,EAAA,MAAA,WAAA,GAAU;AACV,IAAA,MAAA,OAAK,GAAE,IAAA,CAAA,cAAA,CAAA,aAAA,CAAA;AACP,MAAA,QAAA,EAAA,uBAAQ;AACR,MAAA,KAAA,EAAA,uCAA6B;AAC7B,MAAA,KAAA,EAAA,CAAA,gCAAkB,CAAA;AAClB;AACA,MAAA,UAAA,EAAA,iBAAmB;AACnB,MAAA,SAAA,EAAA,OAAA;AACH,MAAA,OAAE,EAAA,wFAAA;AACH,MAAA,eAAa,IAAG;AACZ,MAAA,iBAAU,EAAA;AACV,KAAA,CAAA;AACA,IAAA,MAAA,OAAK,GAAG,IAAA,CAAA,cAAA,CAAA,aAAiC;AACzC,MAAA,QAAA,EAAA,wBAAY;AACZ,MAAA,KAAA,EAAA,wCAAkB;AAClB,MAAA,KAAA,EAAA,CAAA,gC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-
import { IChannelRepository, IPostRepository } from 'common/server';
|
|
3
|
-
import { ServiceBroker } from 'moleculer';
|
|
2
|
+
import { IAccountService, IChannelRepository, IPostRepository } from 'common/server';
|
|
4
3
|
export declare class AddPropertyMigration {
|
|
5
4
|
private readonly channelRepository;
|
|
6
5
|
private readonly postRepository;
|
|
7
|
-
private readonly
|
|
6
|
+
private readonly accountService;
|
|
8
7
|
private readonly logger;
|
|
9
8
|
private VERSION;
|
|
10
|
-
constructor(channelRepository: IChannelRepository, postRepository: IPostRepository,
|
|
9
|
+
constructor(channelRepository: IChannelRepository, postRepository: IPostRepository, accountService: IAccountService, logger: CdmLogger.ILogger);
|
|
11
10
|
get id(): string;
|
|
12
11
|
flattenIds(data: Record<string, unknown>): Record<string, unknown>;
|
|
13
12
|
readFiles<T>(listener?: (data: T[]) => Promise<unknown>): Promise<number>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@messenger-box/property-ext-server",
|
|
3
|
-
"version": "10.0.3-alpha.
|
|
3
|
+
"version": "10.0.3-alpha.145",
|
|
4
4
|
"description": "Extension to Messenger to support property",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "CDMBase LLC",
|
|
@@ -39,22 +39,22 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@messenger-box/core": "10.0.3-alpha.143",
|
|
42
|
-
"@messenger-box/platform-server": "10.0.3-alpha.
|
|
42
|
+
"@messenger-box/platform-server": "10.0.3-alpha.145",
|
|
43
43
|
"@messenger-box/property-ext-core": "9.0.4-alpha.22"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"@adminide-stack/account-api-server": "*",
|
|
47
47
|
"@adminide-stack/core": "*",
|
|
48
|
+
"@adminide-stack/file-info-core": "*",
|
|
48
49
|
"@adminide-stack/platform-server": "*",
|
|
49
50
|
"@cdm-logger/core": "*",
|
|
50
51
|
"@cdm-logger/server": "*",
|
|
51
52
|
"@common-stack/core": "*",
|
|
52
53
|
"@common-stack/server-core": "*",
|
|
53
54
|
"@common-stack/store-mongo": "*",
|
|
54
|
-
"@
|
|
55
|
-
"@messenger-box/core": "10.0.3-alpha.138",
|
|
55
|
+
"@messenger-box/core": "10.0.3-alpha.143",
|
|
56
56
|
"@messenger-box/notification-api-core": "10.0.3-alpha.6",
|
|
57
|
-
"@messenger-box/platform-server": "10.0.3-alpha.
|
|
57
|
+
"@messenger-box/platform-server": "10.0.3-alpha.143",
|
|
58
58
|
"@vscode-alt/monaco-editor": "*",
|
|
59
59
|
"bunyan": "*",
|
|
60
60
|
"graphql": "*",
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"typescript": {
|
|
73
73
|
"definition": "lib/index.d.ts"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "34d4c2b26a19ce5b0889be3b5f4f1420198fc618"
|
|
76
76
|
}
|