@messenger-box/property-ext-server 10.0.2-alpha.2 → 10.0.2-alpha.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.
- package/lib/config/env-config.js +16 -0
- package/lib/config/env-config.js.map +1 -0
- package/lib/containers/container.js +5 -0
- package/lib/containers/container.js.map +1 -0
- package/lib/graphql/schema/index.js +3 -0
- package/lib/graphql/schema/index.js.map +1 -0
- package/lib/graphql/schema/post.graphql +4 -0
- package/lib/graphql/schema/post.graphql.js +1 -0
- package/lib/graphql/schema/post.graphql.js.map +1 -0
- package/lib/index.js +1 -766
- package/lib/index.js.map +1 -1
- package/lib/migrations/bot-user-migration.d.ts +2 -2
- package/lib/migrations/bot-user-migration.js +48 -0
- package/lib/migrations/bot-user-migration.js.map +1 -0
- package/lib/migrations/property-ext-messages-migration.d.ts +2 -2
- package/lib/migrations/property-ext-messages-migration.js +283 -0
- package/lib/migrations/property-ext-messages-migration.js.map +1 -0
- package/lib/mock/migration/add-channel-migration.d.ts +17 -0
- package/lib/mock/migration/test-user-migration.d.ts +12 -0
- package/lib/module.js +4 -0
- package/lib/module.js.map +1 -0
- package/lib/preferences/channels/channel-settings.d.ts +5 -0
- package/lib/routes.json +1 -0
- package/package.json +8 -8
package/lib/index.js
CHANGED
|
@@ -1,766 +1 @@
|
|
|
1
|
-
|
|
2
|
-
/******/ "use strict";
|
|
3
|
-
/******/ var __webpack_modules__ = ({
|
|
4
|
-
|
|
5
|
-
/***/ "./src/graphql/schema/post.graphql":
|
|
6
|
-
/*!*****************************************!*\
|
|
7
|
-
!*** ./src/graphql/schema/post.graphql ***!
|
|
8
|
-
\*****************************************/
|
|
9
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
10
|
-
|
|
11
|
-
__webpack_require__.r(__webpack_exports__);
|
|
12
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
14
|
-
/* harmony export */ });
|
|
15
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ("extend enum PostTypeEnum{\n ALERT\n CARD\n}\n");
|
|
16
|
-
|
|
17
|
-
/***/ }),
|
|
18
|
-
|
|
19
|
-
/***/ "./src/config/env-config.ts":
|
|
20
|
-
/*!**********************************!*\
|
|
21
|
-
!*** ./src/config/env-config.ts ***!
|
|
22
|
-
\**********************************/
|
|
23
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
24
|
-
|
|
25
|
-
__webpack_require__.r(__webpack_exports__);
|
|
26
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
27
|
-
/* harmony export */ config: () => (/* binding */ config)
|
|
28
|
-
/* harmony export */ });
|
|
29
|
-
/* harmony import */ var envalid__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! envalid */ "envalid");
|
|
30
|
-
/* harmony import */ var envalid__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(envalid__WEBPACK_IMPORTED_MODULE_0__);
|
|
31
|
-
|
|
32
|
-
const env = process.APP_ENV || process.env;
|
|
33
|
-
const config = (0,envalid__WEBPACK_IMPORTED_MODULE_0__.cleanEnv)(env, {
|
|
34
|
-
NODE_ENV: (0,envalid__WEBPACK_IMPORTED_MODULE_0__.str)({ choices: ['production', 'test', 'staging', 'development'], default: 'production' }),
|
|
35
|
-
POST_DATA_FILE_PATH: (0,envalid__WEBPACK_IMPORTED_MODULE_0__.str)({
|
|
36
|
-
default: 'node_modules/@messenger-box/property-ext-server/lib/mock/fixtures/post.json',
|
|
37
|
-
}),
|
|
38
|
-
CHANNEL_DATA_FILE_PATH: (0,envalid__WEBPACK_IMPORTED_MODULE_0__.str)({
|
|
39
|
-
default: 'node_modules/@messenger-box/property-ext-server/lib/mock/fixtures/channel.json',
|
|
40
|
-
}),
|
|
41
|
-
APP_NAME: (0,envalid__WEBPACK_IMPORTED_MODULE_0__.str)({ devDefault: 'Support' }),
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
/***/ }),
|
|
46
|
-
|
|
47
|
-
/***/ "./src/config/index.ts":
|
|
48
|
-
/*!*****************************!*\
|
|
49
|
-
!*** ./src/config/index.ts ***!
|
|
50
|
-
\*****************************/
|
|
51
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
52
|
-
|
|
53
|
-
__webpack_require__.r(__webpack_exports__);
|
|
54
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
55
|
-
/* harmony export */ config: () => (/* reexport safe */ _env_config__WEBPACK_IMPORTED_MODULE_0__.config)
|
|
56
|
-
/* harmony export */ });
|
|
57
|
-
/* harmony import */ var _env_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./env-config */ "./src/config/env-config.ts");
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
/***/ }),
|
|
62
|
-
|
|
63
|
-
/***/ "./src/containers/container.ts":
|
|
64
|
-
/*!*************************************!*\
|
|
65
|
-
!*** ./src/containers/container.ts ***!
|
|
66
|
-
\*************************************/
|
|
67
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
68
|
-
|
|
69
|
-
__webpack_require__.r(__webpack_exports__);
|
|
70
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
71
|
-
/* harmony export */ propertyContainerModule: () => (/* binding */ propertyContainerModule)
|
|
72
|
-
/* harmony export */ });
|
|
73
|
-
/* harmony import */ var inversify__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inversify */ "inversify");
|
|
74
|
-
/* harmony import */ var inversify__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(inversify__WEBPACK_IMPORTED_MODULE_0__);
|
|
75
|
-
/* harmony import */ var _migrations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../migrations */ "./src/migrations/index.ts");
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
const propertyContainerModule = () => new inversify__WEBPACK_IMPORTED_MODULE_0__.ContainerModule((bind) => {
|
|
79
|
-
bind('MongodbMigration').to(_migrations__WEBPACK_IMPORTED_MODULE_1__.BotUserMigration).whenTargetNamed(_migrations__WEBPACK_IMPORTED_MODULE_1__.BotUserMigration.name);
|
|
80
|
-
bind('MongodbMigration').to(_migrations__WEBPACK_IMPORTED_MODULE_1__.PropertyExtMessagesMigration).whenTargetNamed(_migrations__WEBPACK_IMPORTED_MODULE_1__.PropertyExtMessagesMigration.name);
|
|
81
|
-
});
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
/***/ }),
|
|
85
|
-
|
|
86
|
-
/***/ "./src/containers/index.ts":
|
|
87
|
-
/*!*********************************!*\
|
|
88
|
-
!*** ./src/containers/index.ts ***!
|
|
89
|
-
\*********************************/
|
|
90
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
91
|
-
|
|
92
|
-
__webpack_require__.r(__webpack_exports__);
|
|
93
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
94
|
-
/* harmony export */ propertyContainerModule: () => (/* reexport safe */ _container__WEBPACK_IMPORTED_MODULE_0__.propertyContainerModule)
|
|
95
|
-
/* harmony export */ });
|
|
96
|
-
/* harmony import */ var _container__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./container */ "./src/containers/container.ts");
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
/***/ }),
|
|
101
|
-
|
|
102
|
-
/***/ "./src/graphql/index.ts":
|
|
103
|
-
/*!******************************!*\
|
|
104
|
-
!*** ./src/graphql/index.ts ***!
|
|
105
|
-
\******************************/
|
|
106
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
107
|
-
|
|
108
|
-
__webpack_require__.r(__webpack_exports__);
|
|
109
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
110
|
-
/* harmony export */ schema: () => (/* reexport safe */ _schema__WEBPACK_IMPORTED_MODULE_0__.schema)
|
|
111
|
-
/* harmony export */ });
|
|
112
|
-
/* harmony import */ var _schema__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./schema */ "./src/graphql/schema/index.ts");
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
/***/ }),
|
|
117
|
-
|
|
118
|
-
/***/ "./src/graphql/schema/index.ts":
|
|
119
|
-
/*!*************************************!*\
|
|
120
|
-
!*** ./src/graphql/schema/index.ts ***!
|
|
121
|
-
\*************************************/
|
|
122
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
123
|
-
|
|
124
|
-
__webpack_require__.r(__webpack_exports__);
|
|
125
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
126
|
-
/* harmony export */ schema: () => (/* binding */ schema)
|
|
127
|
-
/* harmony export */ });
|
|
128
|
-
/* harmony import */ var _post_graphql__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./post.graphql */ "./src/graphql/schema/post.graphql");
|
|
129
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
130
|
-
// @ts-nocheck
|
|
131
|
-
|
|
132
|
-
const schema = [_post_graphql__WEBPACK_IMPORTED_MODULE_0__["default"]].join('/n');
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
/***/ }),
|
|
136
|
-
|
|
137
|
-
/***/ "./src/migrations/bot-user-migration.ts":
|
|
138
|
-
/*!**********************************************!*\
|
|
139
|
-
!*** ./src/migrations/bot-user-migration.ts ***!
|
|
140
|
-
\**********************************************/
|
|
141
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
142
|
-
|
|
143
|
-
__webpack_require__.r(__webpack_exports__);
|
|
144
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
145
|
-
/* harmony export */ BotUserMigration: () => (/* binding */ BotUserMigration)
|
|
146
|
-
/* harmony export */ });
|
|
147
|
-
/* harmony import */ var inversify__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inversify */ "inversify");
|
|
148
|
-
/* harmony import */ var inversify__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(inversify__WEBPACK_IMPORTED_MODULE_0__);
|
|
149
|
-
/* harmony import */ var _common_stack_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @common-stack/core */ "@common-stack/core");
|
|
150
|
-
/* harmony import */ var _common_stack_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_common_stack_core__WEBPACK_IMPORTED_MODULE_1__);
|
|
151
|
-
/* harmony import */ var moleculer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! moleculer */ "moleculer");
|
|
152
|
-
/* harmony import */ var moleculer__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(moleculer__WEBPACK_IMPORTED_MODULE_2__);
|
|
153
|
-
/* harmony import */ var bunyan__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! bunyan */ "bunyan");
|
|
154
|
-
/* harmony import */ var bunyan__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(bunyan__WEBPACK_IMPORTED_MODULE_3__);
|
|
155
|
-
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../config */ "./src/config/index.ts");
|
|
156
|
-
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
157
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
158
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
159
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
160
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
161
|
-
};
|
|
162
|
-
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
163
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
164
|
-
};
|
|
165
|
-
var __param = (undefined && undefined.__param) || function (paramIndex, decorator) {
|
|
166
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
167
|
-
};
|
|
168
|
-
var BotUserMigration_1;
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
let BotUserMigration = BotUserMigration_1 = class BotUserMigration {
|
|
175
|
-
broker;
|
|
176
|
-
logger;
|
|
177
|
-
constructor(broker, logger) {
|
|
178
|
-
this.broker = broker;
|
|
179
|
-
this.logger = logger;
|
|
180
|
-
this.logger = logger.child({ className: BotUserMigration_1.name });
|
|
181
|
-
}
|
|
182
|
-
name = 'BotUserMigration';
|
|
183
|
-
id = `${this.constructor.name}_20220502`;
|
|
184
|
-
async up() {
|
|
185
|
-
await this.down();
|
|
186
|
-
this.logger.debug(`(up) Starting up migration...`);
|
|
187
|
-
const user = await this.broker.call(`AccountUser.createAccount`, {
|
|
188
|
-
account: {
|
|
189
|
-
username: 'resortifi',
|
|
190
|
-
email: 'resortifi-bot@resortifi.com',
|
|
191
|
-
alias: 'resortifi',
|
|
192
|
-
emailVerified: true,
|
|
193
|
-
notificationEmail: '',
|
|
194
|
-
},
|
|
195
|
-
});
|
|
196
|
-
this.logger.debug(`(up) done`, user);
|
|
197
|
-
}
|
|
198
|
-
async down() {
|
|
199
|
-
if (_config__WEBPACK_IMPORTED_MODULE_4__.config.isDev) {
|
|
200
|
-
await this.broker.waitForServices('AccountUser');
|
|
201
|
-
}
|
|
202
|
-
this.logger.debug(`(down) Starting down migration...`);
|
|
203
|
-
const user = await this.broker.call(`AccountUser.findAccountByEmail`, {
|
|
204
|
-
email: 'resortifi-bot@resortifi.com',
|
|
205
|
-
});
|
|
206
|
-
if (!user) {
|
|
207
|
-
return;
|
|
208
|
-
}
|
|
209
|
-
this.logger.debug(`(down) User Found, dropping...`, user);
|
|
210
|
-
await this.broker.call(`AccountUser.deleteAccount`, {
|
|
211
|
-
account: {
|
|
212
|
-
id: user.id,
|
|
213
|
-
},
|
|
214
|
-
});
|
|
215
|
-
this.logger.debug(`(down) User drop done!`);
|
|
216
|
-
}
|
|
217
|
-
};
|
|
218
|
-
BotUserMigration = BotUserMigration_1 = __decorate([
|
|
219
|
-
(0,inversify__WEBPACK_IMPORTED_MODULE_0__.injectable)(),
|
|
220
|
-
__param(0, (0,inversify__WEBPACK_IMPORTED_MODULE_0__.inject)(_common_stack_core__WEBPACK_IMPORTED_MODULE_1__.CommonType.MOLECULER_BROKER)),
|
|
221
|
-
__param(1, (0,inversify__WEBPACK_IMPORTED_MODULE_0__.inject)('Logger')),
|
|
222
|
-
__metadata("design:paramtypes", [moleculer__WEBPACK_IMPORTED_MODULE_2__.ServiceBroker, Object])
|
|
223
|
-
], BotUserMigration);
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
/***/ }),
|
|
228
|
-
|
|
229
|
-
/***/ "./src/migrations/index.ts":
|
|
230
|
-
/*!*********************************!*\
|
|
231
|
-
!*** ./src/migrations/index.ts ***!
|
|
232
|
-
\*********************************/
|
|
233
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
234
|
-
|
|
235
|
-
__webpack_require__.r(__webpack_exports__);
|
|
236
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
237
|
-
/* harmony export */ BotUserMigration: () => (/* reexport safe */ _bot_user_migration__WEBPACK_IMPORTED_MODULE_1__.BotUserMigration),
|
|
238
|
-
/* harmony export */ PropertyExtMessagesMigration: () => (/* reexport safe */ _property_ext_messages_migration__WEBPACK_IMPORTED_MODULE_0__.PropertyExtMessagesMigration)
|
|
239
|
-
/* harmony export */ });
|
|
240
|
-
/* harmony import */ var _property_ext_messages_migration__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./property-ext-messages-migration */ "./src/migrations/property-ext-messages-migration.ts");
|
|
241
|
-
/* harmony import */ var _bot_user_migration__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./bot-user-migration */ "./src/migrations/bot-user-migration.ts");
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
/***/ }),
|
|
247
|
-
|
|
248
|
-
/***/ "./src/migrations/property-ext-messages-migration.ts":
|
|
249
|
-
/*!***********************************************************!*\
|
|
250
|
-
!*** ./src/migrations/property-ext-messages-migration.ts ***!
|
|
251
|
-
\***********************************************************/
|
|
252
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
253
|
-
|
|
254
|
-
__webpack_require__.r(__webpack_exports__);
|
|
255
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
256
|
-
/* harmony export */ PropertyExtMessagesMigration: () => (/* binding */ PropertyExtMessagesMigration)
|
|
257
|
-
/* harmony export */ });
|
|
258
|
-
/* harmony import */ var inversify__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! inversify */ "inversify");
|
|
259
|
-
/* harmony import */ var inversify__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(inversify__WEBPACK_IMPORTED_MODULE_0__);
|
|
260
|
-
/* harmony import */ var _common_stack_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @common-stack/core */ "@common-stack/core");
|
|
261
|
-
/* harmony import */ var _common_stack_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_common_stack_core__WEBPACK_IMPORTED_MODULE_1__);
|
|
262
|
-
/* harmony import */ var moleculer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! moleculer */ "moleculer");
|
|
263
|
-
/* harmony import */ var moleculer__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(moleculer__WEBPACK_IMPORTED_MODULE_2__);
|
|
264
|
-
/* harmony import */ var bunyan__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! bunyan */ "bunyan");
|
|
265
|
-
/* harmony import */ var bunyan__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(bunyan__WEBPACK_IMPORTED_MODULE_3__);
|
|
266
|
-
/* harmony import */ var common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! common */ "common");
|
|
267
|
-
/* harmony import */ var common__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(common__WEBPACK_IMPORTED_MODULE_4__);
|
|
268
|
-
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../config */ "./src/config/index.ts");
|
|
269
|
-
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
270
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
271
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
272
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
273
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
274
|
-
};
|
|
275
|
-
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
276
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
277
|
-
};
|
|
278
|
-
var __param = (undefined && undefined.__param) || function (paramIndex, decorator) {
|
|
279
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
280
|
-
};
|
|
281
|
-
var PropertyExtMessagesMigration_1;
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
let PropertyExtMessagesMigration = PropertyExtMessagesMigration_1 = class PropertyExtMessagesMigration {
|
|
289
|
-
broker;
|
|
290
|
-
logger;
|
|
291
|
-
constructor(broker, logger) {
|
|
292
|
-
this.broker = broker;
|
|
293
|
-
this.logger = logger;
|
|
294
|
-
this.logger = logger.child({ className: PropertyExtMessagesMigration_1.name });
|
|
295
|
-
}
|
|
296
|
-
name = this.constructor.name;
|
|
297
|
-
id = `${this.name}_20231006`;
|
|
298
|
-
async createUsers() {
|
|
299
|
-
const userOne = this.broker.call(`AccountUser.createAccount`, {
|
|
300
|
-
account: {
|
|
301
|
-
username: 'propertyAutomatedUser',
|
|
302
|
-
email: 'property-automated-user@resortifi.com',
|
|
303
|
-
alias: 'auth0|62df21f9e8116e9fce8207cf', // This need to match with auth0 id. Otherwise manually updatein the DB
|
|
304
|
-
familyName: 'property-fixure',
|
|
305
|
-
givenName: 'user1',
|
|
306
|
-
picture: 'https://lh3.googleusercontent.com/a/AATXAJxMARAgr96npkZGf4R2uGbahBP4tLh5SRbS9bVq=s96-c',
|
|
307
|
-
emailVerified: true,
|
|
308
|
-
notificationEmail: '',
|
|
309
|
-
},
|
|
310
|
-
});
|
|
311
|
-
const userTwo = this.broker.call(`AccountUser.createAccount`, {
|
|
312
|
-
account: {
|
|
313
|
-
username: 'propertyAutomatedUser2',
|
|
314
|
-
email: 'property-automated-user2@resortifi.com',
|
|
315
|
-
alias: 'auth0|62df22109b1f5f6077c1f57e', // This need to match with auth0 id. Otherwise manually updatein the DB
|
|
316
|
-
familyName: 'property-fixure',
|
|
317
|
-
givenName: 'user2',
|
|
318
|
-
picture: 'https://lh3.googleusercontent.com/a/AATXAJxMARAgr96npkZGf4R2uGbahBP4tLh5SRbS9bVq=s96-c',
|
|
319
|
-
emailVerified: true,
|
|
320
|
-
notificationEmail: '',
|
|
321
|
-
},
|
|
322
|
-
});
|
|
323
|
-
return Promise.all([userOne, userTwo]);
|
|
324
|
-
}
|
|
325
|
-
createServiceChannel(owner) {
|
|
326
|
-
return this.broker.call(`${common__WEBPACK_IMPORTED_MODULE_4__.MoleculerTopics.ChannelService}.${common__WEBPACK_IMPORTED_MODULE_4__.BaseServiceCommands.Create}`, {
|
|
327
|
-
data: {
|
|
328
|
-
topic: 'CustomerSupportServiceChat',
|
|
329
|
-
title: `${_config__WEBPACK_IMPORTED_MODULE_5__.config.APP_NAME} SUPPORT`,
|
|
330
|
-
description: `${_config__WEBPACK_IMPORTED_MODULE_5__.config.APP_NAME} SUPPORT SERVICE`,
|
|
331
|
-
creator: owner.id,
|
|
332
|
-
displayName: `followup-support-${owner.id}`,
|
|
333
|
-
type: common__WEBPACK_IMPORTED_MODULE_4__.RoomType.Service,
|
|
334
|
-
members: [
|
|
335
|
-
{
|
|
336
|
-
id: undefined,
|
|
337
|
-
schemeAdmin: false,
|
|
338
|
-
roles: 'OWNER',
|
|
339
|
-
user: owner.id,
|
|
340
|
-
},
|
|
341
|
-
],
|
|
342
|
-
},
|
|
343
|
-
});
|
|
344
|
-
}
|
|
345
|
-
createChannel(owner, guest) {
|
|
346
|
-
return this.broker.call(`${common__WEBPACK_IMPORTED_MODULE_4__.MoleculerTopics.ChannelService}.${common__WEBPACK_IMPORTED_MODULE_4__.BaseServiceCommands.Create}`, {
|
|
347
|
-
data: {
|
|
348
|
-
topic: 'Fixtures',
|
|
349
|
-
title: `${owner.alias}:${guest.alias}`,
|
|
350
|
-
creator: guest.id,
|
|
351
|
-
displayName: `${owner.id}:${guest.id}`,
|
|
352
|
-
type: common__WEBPACK_IMPORTED_MODULE_4__.RoomType.Direct,
|
|
353
|
-
members: [
|
|
354
|
-
{
|
|
355
|
-
id: undefined,
|
|
356
|
-
schemeAdmin: false,
|
|
357
|
-
roles: 'OWNER',
|
|
358
|
-
user: owner.id,
|
|
359
|
-
},
|
|
360
|
-
{
|
|
361
|
-
id: undefined,
|
|
362
|
-
schemeAdmin: true,
|
|
363
|
-
roles: 'GUEST',
|
|
364
|
-
user: guest.id,
|
|
365
|
-
},
|
|
366
|
-
],
|
|
367
|
-
},
|
|
368
|
-
});
|
|
369
|
-
}
|
|
370
|
-
async createSimpleMessage(channelId, editedBy) {
|
|
371
|
-
return this.broker.call(`${common__WEBPACK_IMPORTED_MODULE_4__.MoleculerTopics.PostService}.${common__WEBPACK_IMPORTED_MODULE_4__.BaseServiceCommands.Create}`, {
|
|
372
|
-
data: {
|
|
373
|
-
editedBy: editedBy,
|
|
374
|
-
channel: channelId,
|
|
375
|
-
message: 'Hello from the migrations',
|
|
376
|
-
type: common__WEBPACK_IMPORTED_MODULE_4__.PostTypeEnum.Simple,
|
|
377
|
-
files: [],
|
|
378
|
-
},
|
|
379
|
-
});
|
|
380
|
-
}
|
|
381
|
-
async createAlertMessage(channelId, editedBy) {
|
|
382
|
-
const message = 'This is a dummy alert!';
|
|
383
|
-
return this.broker.call(`${common__WEBPACK_IMPORTED_MODULE_4__.MoleculerTopics.PostService}.${common__WEBPACK_IMPORTED_MODULE_4__.BaseServiceCommands.Create}`, {
|
|
384
|
-
data: {
|
|
385
|
-
editedBy: editedBy,
|
|
386
|
-
channel: channelId,
|
|
387
|
-
message,
|
|
388
|
-
type: common__WEBPACK_IMPORTED_MODULE_4__.PostTypeEnum.Alert,
|
|
389
|
-
files: [],
|
|
390
|
-
props: {
|
|
391
|
-
ref: 'Dummy',
|
|
392
|
-
refId: 'some-ref',
|
|
393
|
-
attachment: {
|
|
394
|
-
title: message,
|
|
395
|
-
isTitleHtml: false,
|
|
396
|
-
icon: 'InfoIcon',
|
|
397
|
-
callToAction: {
|
|
398
|
-
title: 'View',
|
|
399
|
-
link: `/some-route/some-id`,
|
|
400
|
-
},
|
|
401
|
-
},
|
|
402
|
-
},
|
|
403
|
-
},
|
|
404
|
-
});
|
|
405
|
-
}
|
|
406
|
-
async createCardMessage(channelId, editedBy) {
|
|
407
|
-
const message = 'Inquiry for fixture property';
|
|
408
|
-
return this.broker.call(`${common__WEBPACK_IMPORTED_MODULE_4__.MoleculerTopics.PostService}.${common__WEBPACK_IMPORTED_MODULE_4__.BaseServiceCommands.Create}`, {
|
|
409
|
-
data: {
|
|
410
|
-
editedBy: editedBy,
|
|
411
|
-
channel: channelId,
|
|
412
|
-
message,
|
|
413
|
-
type: common__WEBPACK_IMPORTED_MODULE_4__.PostTypeEnum.Card,
|
|
414
|
-
files: [],
|
|
415
|
-
props: {
|
|
416
|
-
ref: 'Property',
|
|
417
|
-
refId: 'some-property-id',
|
|
418
|
-
attachment: {
|
|
419
|
-
image: 'https://placehold.co/300',
|
|
420
|
-
title: message,
|
|
421
|
-
isTitleHtml: false,
|
|
422
|
-
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.',
|
|
423
|
-
isDescriptionHtml: false,
|
|
424
|
-
callToAction: {
|
|
425
|
-
title: 'View',
|
|
426
|
-
// Should come from frontend
|
|
427
|
-
link: `/property/some-id`,
|
|
428
|
-
},
|
|
429
|
-
property: {
|
|
430
|
-
price: 10,
|
|
431
|
-
priceType: 'Hourly',
|
|
432
|
-
type: 'Hotel',
|
|
433
|
-
totalStar: 5,
|
|
434
|
-
maxPeople: 500,
|
|
435
|
-
totalReview: 450,
|
|
436
|
-
},
|
|
437
|
-
},
|
|
438
|
-
},
|
|
439
|
-
},
|
|
440
|
-
});
|
|
441
|
-
}
|
|
442
|
-
async waitForServices() {
|
|
443
|
-
if (_config__WEBPACK_IMPORTED_MODULE_5__.config.isDev) {
|
|
444
|
-
await Promise.all([
|
|
445
|
-
this.broker.waitForServices(`${common__WEBPACK_IMPORTED_MODULE_4__.MoleculerTopics.ChannelService}`),
|
|
446
|
-
this.broker.waitForServices('AccountUser'),
|
|
447
|
-
this.broker.waitForServices(`${common__WEBPACK_IMPORTED_MODULE_4__.MoleculerTopics.PostService}`),
|
|
448
|
-
this.broker.waitForServices(`${common__WEBPACK_IMPORTED_MODULE_4__.MoleculerTopics.PostThreadService}`),
|
|
449
|
-
]);
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
|
-
async up() {
|
|
453
|
-
await this.down();
|
|
454
|
-
await this.waitForServices();
|
|
455
|
-
// await this.down();
|
|
456
|
-
this.logger.debug(`(up) Starting up migration...`);
|
|
457
|
-
const users = await this.createUsers();
|
|
458
|
-
if (!users) {
|
|
459
|
-
return;
|
|
460
|
-
}
|
|
461
|
-
this.logger.debug('(up) users created...');
|
|
462
|
-
const channel = await this.createChannel(users[0], users[1]);
|
|
463
|
-
if (!channel) {
|
|
464
|
-
return;
|
|
465
|
-
}
|
|
466
|
-
this.logger.debug('(up) channel created...');
|
|
467
|
-
await Promise.all([
|
|
468
|
-
this.createSimpleMessage(channel.id, users[0].id),
|
|
469
|
-
this.createAlertMessage(channel.id, users[0].id),
|
|
470
|
-
this.createCardMessage(channel.id, users[0].id),
|
|
471
|
-
]);
|
|
472
|
-
this.logger.debug('(up) messages created...');
|
|
473
|
-
const serviceChannel = await this.createServiceChannel(users[1]);
|
|
474
|
-
if (!serviceChannel) {
|
|
475
|
-
return;
|
|
476
|
-
}
|
|
477
|
-
this.logger.debug('(up) service channel created...');
|
|
478
|
-
}
|
|
479
|
-
async down() {
|
|
480
|
-
this.logger.debug(`(down) Starting down migration...`);
|
|
481
|
-
await this.waitForServices();
|
|
482
|
-
try {
|
|
483
|
-
const users = await this.broker.call('AccountUser.getAll', {
|
|
484
|
-
options: {
|
|
485
|
-
criteria: {
|
|
486
|
-
email: {
|
|
487
|
-
$in: ['property-automated-user@resortifi.com', 'property-automated-user2@resortifi.com'],
|
|
488
|
-
},
|
|
489
|
-
},
|
|
490
|
-
},
|
|
491
|
-
});
|
|
492
|
-
if (!users.length) {
|
|
493
|
-
this.logger.debug(`(down) No Users found, skipping migrations!`);
|
|
494
|
-
return;
|
|
495
|
-
}
|
|
496
|
-
const [userOne, userTwo] = users;
|
|
497
|
-
const [channel] = await this.broker.call(`${common__WEBPACK_IMPORTED_MODULE_4__.MoleculerTopics.ChannelService}.${common__WEBPACK_IMPORTED_MODULE_4__.BaseServiceCommands.GetAll}`, {
|
|
498
|
-
criteria: {
|
|
499
|
-
displayName: `${userTwo.id}:${userOne.id}`,
|
|
500
|
-
},
|
|
501
|
-
});
|
|
502
|
-
if (!channel?.id) {
|
|
503
|
-
this.logger.debug(`(down) No Channel found, skipping channel delete!`);
|
|
504
|
-
}
|
|
505
|
-
else {
|
|
506
|
-
const posts = await this.broker.call(`${common__WEBPACK_IMPORTED_MODULE_4__.MoleculerTopics.PostService}.getAll`, {
|
|
507
|
-
criteria: {
|
|
508
|
-
channel: channel.id,
|
|
509
|
-
},
|
|
510
|
-
});
|
|
511
|
-
await Promise.all(posts.map(({ id }) => this.broker.call(`${common__WEBPACK_IMPORTED_MODULE_4__.MoleculerTopics.PostService}.delete`, {
|
|
512
|
-
id,
|
|
513
|
-
})));
|
|
514
|
-
await this.broker.call(`${common__WEBPACK_IMPORTED_MODULE_4__.MoleculerTopics.ChannelService}.${common__WEBPACK_IMPORTED_MODULE_4__.BaseServiceCommands.Delete}`, {
|
|
515
|
-
id: channel.id,
|
|
516
|
-
});
|
|
517
|
-
}
|
|
518
|
-
/////////////////////////....Service Channel....//////////////////////////////////
|
|
519
|
-
const serviceUsers = await this.broker.call('AccountUser.getAll', {
|
|
520
|
-
options: {
|
|
521
|
-
criteria: {
|
|
522
|
-
email: 'property-automated-user2@resortifi.com',
|
|
523
|
-
},
|
|
524
|
-
},
|
|
525
|
-
});
|
|
526
|
-
if (!serviceUsers.length) {
|
|
527
|
-
this.logger.debug(`(down) No service Users found, skipping migrations!`);
|
|
528
|
-
return;
|
|
529
|
-
}
|
|
530
|
-
const [serviceUser] = serviceUsers;
|
|
531
|
-
const [servicehannel] = await this.broker.call(`${common__WEBPACK_IMPORTED_MODULE_4__.MoleculerTopics.ChannelService}.${common__WEBPACK_IMPORTED_MODULE_4__.BaseServiceCommands.GetAll}`, {
|
|
532
|
-
criteria: {
|
|
533
|
-
displayName: `followup-support-${serviceUser?.id}`,
|
|
534
|
-
},
|
|
535
|
-
});
|
|
536
|
-
this.logger.debug(`servicehannel = ${JSON.stringify(servicehannel)}`);
|
|
537
|
-
if (!servicehannel?.id) {
|
|
538
|
-
this.logger.debug(`(down) No Service Channel found, skipping service channel delete!`);
|
|
539
|
-
}
|
|
540
|
-
else {
|
|
541
|
-
const posts = await this.broker.call(`${common__WEBPACK_IMPORTED_MODULE_4__.MoleculerTopics.PostService}.getAll`, {
|
|
542
|
-
criteria: {
|
|
543
|
-
channel: servicehannel.id,
|
|
544
|
-
},
|
|
545
|
-
});
|
|
546
|
-
await Promise.all(posts.map(({ id }) => this.broker.call(`${common__WEBPACK_IMPORTED_MODULE_4__.MoleculerTopics.PostService}.delete`, {
|
|
547
|
-
id,
|
|
548
|
-
})));
|
|
549
|
-
const postsThreads = await this.broker.call(`${common__WEBPACK_IMPORTED_MODULE_4__.MoleculerTopics.PostThreadService}.getAll`, {
|
|
550
|
-
criteria: {
|
|
551
|
-
channel: servicehannel.id,
|
|
552
|
-
},
|
|
553
|
-
});
|
|
554
|
-
await Promise.all(postsThreads.map(({ id }) => this.broker.call(`${common__WEBPACK_IMPORTED_MODULE_4__.MoleculerTopics.PostThreadService}.delete`, {
|
|
555
|
-
id,
|
|
556
|
-
})));
|
|
557
|
-
await this.broker.call(`${common__WEBPACK_IMPORTED_MODULE_4__.MoleculerTopics.ChannelService}.${common__WEBPACK_IMPORTED_MODULE_4__.BaseServiceCommands.Delete}`, {
|
|
558
|
-
id: servicehannel.id,
|
|
559
|
-
});
|
|
560
|
-
}
|
|
561
|
-
/////////////////////////....Service Channel.... end//////////////////////////////////
|
|
562
|
-
await Promise.all(users.map(({ id }) => this.broker.call(`AccountUser.deleteAccount`, {
|
|
563
|
-
account: {
|
|
564
|
-
id,
|
|
565
|
-
},
|
|
566
|
-
})));
|
|
567
|
-
this.logger.debug(`(down) Successful`);
|
|
568
|
-
}
|
|
569
|
-
catch (e) {
|
|
570
|
-
this.logger.error(e.message, e.stack);
|
|
571
|
-
}
|
|
572
|
-
}
|
|
573
|
-
};
|
|
574
|
-
PropertyExtMessagesMigration = PropertyExtMessagesMigration_1 = __decorate([
|
|
575
|
-
(0,inversify__WEBPACK_IMPORTED_MODULE_0__.injectable)(),
|
|
576
|
-
__param(0, (0,inversify__WEBPACK_IMPORTED_MODULE_0__.inject)(_common_stack_core__WEBPACK_IMPORTED_MODULE_1__.CommonType.MOLECULER_BROKER)),
|
|
577
|
-
__param(1, (0,inversify__WEBPACK_IMPORTED_MODULE_0__.inject)('Logger')),
|
|
578
|
-
__metadata("design:paramtypes", [moleculer__WEBPACK_IMPORTED_MODULE_2__.ServiceBroker, Object])
|
|
579
|
-
], PropertyExtMessagesMigration);
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
/***/ }),
|
|
584
|
-
|
|
585
|
-
/***/ "./src/module.ts":
|
|
586
|
-
/*!***********************!*\
|
|
587
|
-
!*** ./src/module.ts ***!
|
|
588
|
-
\***********************/
|
|
589
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
590
|
-
|
|
591
|
-
__webpack_require__.r(__webpack_exports__);
|
|
592
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
593
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
594
|
-
/* harmony export */ });
|
|
595
|
-
/* harmony import */ var _common_stack_server_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @common-stack/server-core */ "@common-stack/server-core");
|
|
596
|
-
/* harmony import */ var _common_stack_server_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_common_stack_server_core__WEBPACK_IMPORTED_MODULE_0__);
|
|
597
|
-
/* harmony import */ var _containers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./containers */ "./src/containers/index.ts");
|
|
598
|
-
/* harmony import */ var _graphql__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./graphql */ "./src/graphql/index.ts");
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (new _common_stack_server_core__WEBPACK_IMPORTED_MODULE_0__.Feature({
|
|
603
|
-
schema: _graphql__WEBPACK_IMPORTED_MODULE_2__.schema,
|
|
604
|
-
createContainerFunc: [_containers__WEBPACK_IMPORTED_MODULE_1__.propertyContainerModule],
|
|
605
|
-
}));
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
/***/ }),
|
|
609
|
-
|
|
610
|
-
/***/ "@common-stack/core":
|
|
611
|
-
/*!*************************************!*\
|
|
612
|
-
!*** external "@common-stack/core" ***!
|
|
613
|
-
\*************************************/
|
|
614
|
-
/***/ ((module) => {
|
|
615
|
-
|
|
616
|
-
module.exports = require("@common-stack/core");
|
|
617
|
-
|
|
618
|
-
/***/ }),
|
|
619
|
-
|
|
620
|
-
/***/ "@common-stack/server-core":
|
|
621
|
-
/*!********************************************!*\
|
|
622
|
-
!*** external "@common-stack/server-core" ***!
|
|
623
|
-
\********************************************/
|
|
624
|
-
/***/ ((module) => {
|
|
625
|
-
|
|
626
|
-
module.exports = require("@common-stack/server-core");
|
|
627
|
-
|
|
628
|
-
/***/ }),
|
|
629
|
-
|
|
630
|
-
/***/ "bunyan":
|
|
631
|
-
/*!*************************!*\
|
|
632
|
-
!*** external "bunyan" ***!
|
|
633
|
-
\*************************/
|
|
634
|
-
/***/ ((module) => {
|
|
635
|
-
|
|
636
|
-
module.exports = require("bunyan");
|
|
637
|
-
|
|
638
|
-
/***/ }),
|
|
639
|
-
|
|
640
|
-
/***/ "common":
|
|
641
|
-
/*!*************************!*\
|
|
642
|
-
!*** external "common" ***!
|
|
643
|
-
\*************************/
|
|
644
|
-
/***/ ((module) => {
|
|
645
|
-
|
|
646
|
-
module.exports = require("common");
|
|
647
|
-
|
|
648
|
-
/***/ }),
|
|
649
|
-
|
|
650
|
-
/***/ "envalid":
|
|
651
|
-
/*!**************************!*\
|
|
652
|
-
!*** external "envalid" ***!
|
|
653
|
-
\**************************/
|
|
654
|
-
/***/ ((module) => {
|
|
655
|
-
|
|
656
|
-
module.exports = require("envalid");
|
|
657
|
-
|
|
658
|
-
/***/ }),
|
|
659
|
-
|
|
660
|
-
/***/ "inversify":
|
|
661
|
-
/*!****************************!*\
|
|
662
|
-
!*** external "inversify" ***!
|
|
663
|
-
\****************************/
|
|
664
|
-
/***/ ((module) => {
|
|
665
|
-
|
|
666
|
-
module.exports = require("inversify");
|
|
667
|
-
|
|
668
|
-
/***/ }),
|
|
669
|
-
|
|
670
|
-
/***/ "moleculer":
|
|
671
|
-
/*!****************************!*\
|
|
672
|
-
!*** external "moleculer" ***!
|
|
673
|
-
\****************************/
|
|
674
|
-
/***/ ((module) => {
|
|
675
|
-
|
|
676
|
-
module.exports = require("moleculer");
|
|
677
|
-
|
|
678
|
-
/***/ })
|
|
679
|
-
|
|
680
|
-
/******/ });
|
|
681
|
-
/************************************************************************/
|
|
682
|
-
/******/ // The module cache
|
|
683
|
-
/******/ var __webpack_module_cache__ = {};
|
|
684
|
-
/******/
|
|
685
|
-
/******/ // The require function
|
|
686
|
-
/******/ function __webpack_require__(moduleId) {
|
|
687
|
-
/******/ // Check if module is in cache
|
|
688
|
-
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
689
|
-
/******/ if (cachedModule !== undefined) {
|
|
690
|
-
/******/ return cachedModule.exports;
|
|
691
|
-
/******/ }
|
|
692
|
-
/******/ // Create a new module (and put it into the cache)
|
|
693
|
-
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
694
|
-
/******/ // no module.id needed
|
|
695
|
-
/******/ // no module.loaded needed
|
|
696
|
-
/******/ exports: {}
|
|
697
|
-
/******/ };
|
|
698
|
-
/******/
|
|
699
|
-
/******/ // Execute the module function
|
|
700
|
-
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
701
|
-
/******/
|
|
702
|
-
/******/ // Return the exports of the module
|
|
703
|
-
/******/ return module.exports;
|
|
704
|
-
/******/ }
|
|
705
|
-
/******/
|
|
706
|
-
/************************************************************************/
|
|
707
|
-
/******/ /* webpack/runtime/compat get default export */
|
|
708
|
-
/******/ (() => {
|
|
709
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
710
|
-
/******/ __webpack_require__.n = (module) => {
|
|
711
|
-
/******/ var getter = module && module.__esModule ?
|
|
712
|
-
/******/ () => (module['default']) :
|
|
713
|
-
/******/ () => (module);
|
|
714
|
-
/******/ __webpack_require__.d(getter, { a: getter });
|
|
715
|
-
/******/ return getter;
|
|
716
|
-
/******/ };
|
|
717
|
-
/******/ })();
|
|
718
|
-
/******/
|
|
719
|
-
/******/ /* webpack/runtime/define property getters */
|
|
720
|
-
/******/ (() => {
|
|
721
|
-
/******/ // define getter functions for harmony exports
|
|
722
|
-
/******/ __webpack_require__.d = (exports, definition) => {
|
|
723
|
-
/******/ for(var key in definition) {
|
|
724
|
-
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
725
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
726
|
-
/******/ }
|
|
727
|
-
/******/ }
|
|
728
|
-
/******/ };
|
|
729
|
-
/******/ })();
|
|
730
|
-
/******/
|
|
731
|
-
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
732
|
-
/******/ (() => {
|
|
733
|
-
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
734
|
-
/******/ })();
|
|
735
|
-
/******/
|
|
736
|
-
/******/ /* webpack/runtime/make namespace object */
|
|
737
|
-
/******/ (() => {
|
|
738
|
-
/******/ // define __esModule on exports
|
|
739
|
-
/******/ __webpack_require__.r = (exports) => {
|
|
740
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
741
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
742
|
-
/******/ }
|
|
743
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
744
|
-
/******/ };
|
|
745
|
-
/******/ })();
|
|
746
|
-
/******/
|
|
747
|
-
/************************************************************************/
|
|
748
|
-
var __webpack_exports__ = {};
|
|
749
|
-
// This entry needs to be wrapped in an IIFE because it needs to be isolated against other modules in the chunk.
|
|
750
|
-
(() => {
|
|
751
|
-
/*!**********************!*\
|
|
752
|
-
!*** ./src/index.ts ***!
|
|
753
|
-
\**********************/
|
|
754
|
-
__webpack_require__.r(__webpack_exports__);
|
|
755
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
756
|
-
/* harmony export */ "default": () => (/* reexport safe */ _module__WEBPACK_IMPORTED_MODULE_0__["default"])
|
|
757
|
-
/* harmony export */ });
|
|
758
|
-
/* harmony import */ var _module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./module */ "./src/module.ts");
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
})();
|
|
762
|
-
|
|
763
|
-
module.exports = __webpack_exports__;
|
|
764
|
-
/******/ })()
|
|
765
|
-
;
|
|
766
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
export{default}from'./module.js';//# sourceMappingURL=index.js.map
|