@messenger-box/cron-job-server-module 10.0.3-alpha.2 → 10.0.3-alpha.201
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/module.d.ts +1 -1
- package/lib/module.js +3 -3
- package/lib/module.js.map +1 -1
- package/lib/plugins/messenger-notification-cron-moleculer-service.js +1 -1
- package/lib/plugins/messenger-notification-cron-moleculer-service.js.map +1 -1
- package/package.json +5 -5
- package/CHANGELOG.md +0 -92
- package/jest.config.js +0 -26
- package/rollup.config.mjs +0 -36
- package/src/config/env-config.ts +0 -13
- package/src/config/index.ts +0 -1
- package/src/graphql/index.ts +0 -1
- package/src/graphql/schema/index.ts +0 -4
- package/src/graphql/schema/messenger-notification-cron-moleculer-service.graphql +0 -12
- package/src/index.ts +0 -1
- package/src/module.ts +0 -12
- package/src/plugins/index.ts +0 -1
- package/src/plugins/messenger-notification-cron-moleculer-service.ts +0 -63
- package/tsconfig.json +0 -13
- package/webpack.config.js +0 -64
package/lib/module.d.ts
CHANGED
package/lib/module.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {Feature}from'@common-stack/server-core';import {MessengerNotificationCronMoleculerService}from'./plugins/messenger-notification-cron-moleculer-service.js';import {schema}from'./graphql/schema/index.js';var module = new Feature({
|
|
1
|
+
import {Feature}from'@common-stack/server-core';import {MessengerNotificationCronMoleculerService}from'./plugins/messenger-notification-cron-moleculer-service.js';import {schema}from'./graphql/schema/index.js';var module$1 = new Feature({
|
|
2
2
|
schema,
|
|
3
|
-
|
|
4
|
-
});export{module as default};//# sourceMappingURL=module.js.map
|
|
3
|
+
addMicroserviceBrokerServiceClass: [MessengerNotificationCronMoleculerService]
|
|
4
|
+
});export{module$1 as default};//# sourceMappingURL=module.js.map
|
package/lib/module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.js","sources":["../src/module.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"module.js","sources":["../src/module.ts"],"sourcesContent":[null],"names":[],"mappings":"kNAIA,eAAe,IAAI,OAAO,CAAC;QACvB;mCACA,EAAiC,CAAA,yCAAG;AACvC,CAAA,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {Service}from'moleculer';import {SERVER_TYPES,MoleculerCronServiceName,
|
|
1
|
+
import {Service}from'moleculer';import {SERVER_TYPES,MessengerNotificationCronTaskName,MoleculerCronServiceName,NotificationDurationUnitEnum}from'common/server';import {CommonType}from'@common-stack/core';import CronTasks from'@skoropletov/moleculer-cron-tasks';class MessengerNotificationCronMoleculerService extends Service {
|
|
2
2
|
constructor(broker, {
|
|
3
3
|
container
|
|
4
4
|
}) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messenger-notification-cron-moleculer-service.js","sources":["../../src/plugins/messenger-notification-cron-moleculer-service.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"messenger-notification-cron-moleculer-service.js","sources":["../../src/plugins/messenger-notification-cron-moleculer-service.ts"],"sourcesContent":[null],"names":[],"mappings":"sQAQM,MAAO,yCAA0C,SAAQ,OAAO,CAAA;AAClE,EAAA,WAAA,CAAA,MAAY,EAAqB;;AAE7B,GAAA,EAAA;SACA,CAAA;kBACU,GAAA,SAAA;2BACC,CAAA;qDACU,CAAA,IAAA;AACb,MAAA,OAAA,GAAA;;AAEP,QAAA,IAAE,CAAA,gBAAA,CAAA,SAAA,CAAA;MACN;AAEO,KAAA,CAAA;;kBAEE,CAAA,SAAA,EAAgB;AAGtB,IAAA,MAAA,MAAK,GAAM,SAAC,CAAA,GAAA,CAAa,UAAC,CAAA,MAAA,CAAA;0BAChB,GAAA,SAAA,CAAA,GAAwB,CAAC,YAAA,CAAA,4BAA4B,CAAA;eAC3D,CAAA,aAAS,CAAS;AAClB,MAAA,IAAA,EAAA,wBAAO,CAAA,4BAAA;wBACC,CAAA;;;;;;;AAOJ;AACI;AACA,MAAA;AACA,QAAA,IAAA,EAAA,CAAA,EAAA,iCAAc,CAAA,+BAAA,CAAA,CAAA;;yBAEV;sBAIH,CAAA,yDAAA,EAAA,IAAA,IAAA,EAAA,CAAA;AACJ,UAAA,MAAA,gBAAA,CAAA,+BAAA,CAAA,4BAAA,CAAA,OAAA,EAAA,EAAA,CAAA;AACD,QAAA;AACI,OAAA,EAAA;AACA,QAAA,IAAA,EAAA,CAAA,EAAA,iCAA0B,CAAA,uCAAA,CAAA,CAAA;AAC1B,QAAA,QAAA,EAAA,gBAAc;yBACV;wFAEI,EAAA,IAAA,IAAA,EAAA,CAAA;gCAGP,CAAA,uCAAA,CAAA,4BAAA,CAAA,OAAA,EAAA,EAAA,CAAA;AACJ,QAAA;AACJ,OAAA;AACJ,KAAA,CAAA;;AAER"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@messenger-box/cron-job-server-module",
|
|
3
|
-
"version": "10.0.3-alpha.
|
|
3
|
+
"version": "10.0.3-alpha.201",
|
|
4
4
|
"description": "Extension to Messenger box cron jobs server",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "CDMBase LLC",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"watch": "yarn build:lib:watch"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@messenger-box/core": "10.0.3-alpha.
|
|
25
|
-
"@messenger-box/platform-server": "10.0.3-alpha.
|
|
24
|
+
"@messenger-box/core": "10.0.3-alpha.201",
|
|
25
|
+
"@messenger-box/platform-server": "10.0.3-alpha.201",
|
|
26
26
|
"@skoropletov/moleculer-cron-tasks": "^0.0.8"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"@adminide-stack/core": "*",
|
|
33
|
+
"@adminide-stack/mailing-api": "*",
|
|
33
34
|
"@adminide-stack/platform-server": "*",
|
|
34
35
|
"@cdm-logger/core": "*",
|
|
35
36
|
"@common-stack/core": "*",
|
|
36
37
|
"@common-stack/server-core": "*",
|
|
37
38
|
"@common-stack/store-mongo": "*",
|
|
38
|
-
"@container-stack/mailing-api": "*",
|
|
39
39
|
"@vscode-alt/monaco-editor": "*",
|
|
40
40
|
"@workbench-stack/core": "*",
|
|
41
41
|
"bunyan": "*",
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"typescript": {
|
|
59
59
|
"definition": "lib/index.d.ts"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "1be5725604232d5f432d47a63a712031da4d96c0"
|
|
62
62
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
-
|
|
6
|
-
## [10.0.3-alpha.2](https://github.com/cdmbase/messenger-box/compare/v10.0.3-alpha.1...v10.0.3-alpha.2) (2025-02-24)
|
|
7
|
-
|
|
8
|
-
**Note:** Version bump only for package @messenger-box/cron-job-server-module
|
|
9
|
-
|
|
10
|
-
## [10.0.3-alpha.0](https://github.com/cdmbase/messenger-box/compare/v10.0.2-alpha.6...v10.0.3-alpha.0) (2025-02-24)
|
|
11
|
-
|
|
12
|
-
**Note:** Version bump only for package @messenger-box/cron-job-server-module
|
|
13
|
-
|
|
14
|
-
## [10.0.2-alpha.5](https://github.com/CDEBase/messenger-box/compare/v10.0.2-alpha.4...v10.0.2-alpha.5) (2025-02-24)
|
|
15
|
-
|
|
16
|
-
**Note:** Version bump only for package @messenger-box/cron-job-server-module
|
|
17
|
-
|
|
18
|
-
## [10.0.2-alpha.4](https://github.com/CDEBase/messenger-box/compare/v10.0.2-alpha.3...v10.0.2-alpha.4) (2025-02-10)
|
|
19
|
-
|
|
20
|
-
**Note:** Version bump only for package @messenger-box/cron-job-server-module
|
|
21
|
-
|
|
22
|
-
## [10.0.2-alpha.3](https://github.com/CDEBase/messenger-box/compare/v10.0.2-alpha.2...v10.0.2-alpha.3) (2025-02-10)
|
|
23
|
-
|
|
24
|
-
**Note:** Version bump only for package @messenger-box/cron-job-server-module
|
|
25
|
-
|
|
26
|
-
## [10.0.2-alpha.2](https://github.com/CDEBase/messenger-box/compare/v10.0.2-alpha.1...v10.0.2-alpha.2) (2025-02-10)
|
|
27
|
-
|
|
28
|
-
**Note:** Version bump only for package @messenger-box/cron-job-server-module
|
|
29
|
-
|
|
30
|
-
## [10.0.2-alpha.0](https://github.com/cdmbase/messenger-box/compare/v9.0.4-alpha.23...v10.0.2-alpha.0) (2025-02-04)
|
|
31
|
-
|
|
32
|
-
**Note:** Version bump only for package @messenger-box/cron-job-server-module
|
|
33
|
-
|
|
34
|
-
## [10.0.1-alpha.0](https://github.com/cdmbase/messenger-box/compare/v9.0.4-alpha.23...v10.0.1-alpha.0) (2025-02-04)
|
|
35
|
-
|
|
36
|
-
**Note:** Version bump only for package @messenger-box/cron-job-server-module
|
|
37
|
-
|
|
38
|
-
## [9.0.4-alpha.22](https://github.com/CDEBase/messenger-box/compare/v9.0.4-alpha.21...v9.0.4-alpha.22) (2025-01-31)
|
|
39
|
-
|
|
40
|
-
**Note:** Version bump only for package @messenger-box/cron-job-server-module
|
|
41
|
-
|
|
42
|
-
## [9.0.4-alpha.21](https://github.com/CDEBase/messenger-box/compare/v9.0.4-alpha.20...v9.0.4-alpha.21) (2025-01-20)
|
|
43
|
-
|
|
44
|
-
**Note:** Version bump only for package @messenger-box/cron-job-server-module
|
|
45
|
-
|
|
46
|
-
## [9.0.4-alpha.17](https://github.com/CDEBase/messenger-box/compare/v9.0.4-alpha.16...v9.0.4-alpha.17) (2024-10-17)
|
|
47
|
-
|
|
48
|
-
**Note:** Version bump only for package @messenger-box/cron-job-server-module
|
|
49
|
-
|
|
50
|
-
## [9.0.4-alpha.15](https://github.com/CDEBase/messenger-box/compare/v9.0.4-alpha.14...v9.0.4-alpha.15) (2024-09-30)
|
|
51
|
-
|
|
52
|
-
**Note:** Version bump only for package @messenger-box/cron-job-server-module
|
|
53
|
-
|
|
54
|
-
## [9.0.4-alpha.7](https://github.com/CDEBase/messenger-box/compare/v9.0.4-alpha.6...v9.0.4-alpha.7) (2024-09-20)
|
|
55
|
-
|
|
56
|
-
**Note:** Version bump only for package @messenger-box/cron-job-server-module
|
|
57
|
-
|
|
58
|
-
## [9.0.4-alpha.4](https://github.com/CDEBase/messenger-box/compare/v9.0.4-alpha.3...v9.0.4-alpha.4) (2024-09-19)
|
|
59
|
-
|
|
60
|
-
**Note:** Version bump only for package @messenger-box/cron-job-server-module
|
|
61
|
-
|
|
62
|
-
## [9.0.4-alpha.2](https://github.com/CDEBase/messenger-box/compare/v9.0.4-alpha.1...v9.0.4-alpha.2) (2024-09-14)
|
|
63
|
-
|
|
64
|
-
**Note:** Version bump only for package @messenger-box/cron-job-server-module
|
|
65
|
-
|
|
66
|
-
## [9.0.4-alpha.1](https://github.com/CDEBase/messenger-box/compare/v9.0.4-alpha.0...v9.0.4-alpha.1) (2024-09-12)
|
|
67
|
-
|
|
68
|
-
**Note:** Version bump only for package @messenger-box/cron-job-server-module
|
|
69
|
-
|
|
70
|
-
## [9.0.2-alpha.0](https://github.com/CDEBase/messenger-box/compare/v7.2.6-alpha.10...v9.0.2-alpha.0) (2024-09-06)
|
|
71
|
-
|
|
72
|
-
**Note:** Version bump only for package @messenger-box/cron-job-server-module
|
|
73
|
-
|
|
74
|
-
## [7.2.6-alpha.4](https://github.com/CDEBase/messenger-box/compare/v7.2.6-alpha.3...v7.2.6-alpha.4) (2024-08-12)
|
|
75
|
-
|
|
76
|
-
**Note:** Version bump only for package @messenger-box/cron-job-server-module
|
|
77
|
-
|
|
78
|
-
## 7.2.6-alpha.0 (2024-08-11)
|
|
79
|
-
|
|
80
|
-
**Note:** Version bump only for package @messenger-box/cron-job-server-module
|
|
81
|
-
|
|
82
|
-
## 7.2.4-alpha.0 (2024-07-19)
|
|
83
|
-
|
|
84
|
-
**Note:** Version bump only for package @messenger-box/cron-job-server-module
|
|
85
|
-
|
|
86
|
-
## [7.2.1-alpha.2](https://github.com/CDEBase/messenger-box/compare/v7.2.1-alpha.1...v7.2.1-alpha.2) (2024-07-16)
|
|
87
|
-
|
|
88
|
-
**Note:** Version bump only for package @messenger-box/cron-job-server-module
|
|
89
|
-
|
|
90
|
-
## 7.2.1-alpha.0 (2024-07-15)
|
|
91
|
-
|
|
92
|
-
**Note:** Version bump only for package @messenger-box/cron-job-server-module
|
package/jest.config.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
const merge = require('merge');
|
|
2
|
-
const baseConfig = require('../../../jest.config.base');
|
|
3
|
-
const mongodbConfig = require('../../../jest.config.mongodb');
|
|
4
|
-
|
|
5
|
-
const mergeData = merge.recursive(
|
|
6
|
-
baseConfig,
|
|
7
|
-
{
|
|
8
|
-
transform: {
|
|
9
|
-
'\\.(js|jsx)?$': '../../../transform.js',
|
|
10
|
-
},
|
|
11
|
-
moduleNameMapper: {
|
|
12
|
-
'^__mocks__/(.*)$': '<rootDir>/../../__mocks__/$1',
|
|
13
|
-
// we'll use commonjs version of lodash for tests 👌
|
|
14
|
-
// because we don't need to use any kind of tree shaking right?!
|
|
15
|
-
'^lodash-es$': '<rootDir>/../../../node_modules/lodash/index.js',
|
|
16
|
-
},
|
|
17
|
-
roots: ['src', 'tests'],
|
|
18
|
-
},
|
|
19
|
-
|
|
20
|
-
mongodbConfig,
|
|
21
|
-
{
|
|
22
|
-
globals: {},
|
|
23
|
-
},
|
|
24
|
-
);
|
|
25
|
-
|
|
26
|
-
module.exports = mergeData;
|
package/rollup.config.mjs
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { createRollupConfig } from '../../../rollup.config.base.mjs';
|
|
2
|
-
|
|
3
|
-
// Define any additional plugins specific to this bundle
|
|
4
|
-
const additionalPlugins = [];
|
|
5
|
-
|
|
6
|
-
// Use the createRollupConfig function to merge the base and specific configurations
|
|
7
|
-
export default (commandLineArgs) => {
|
|
8
|
-
const isWatchMode = commandLineArgs.watch;
|
|
9
|
-
return [
|
|
10
|
-
createRollupConfig(
|
|
11
|
-
{
|
|
12
|
-
input: ['src/index.ts'],
|
|
13
|
-
plugins: [
|
|
14
|
-
// Spread in additional plugins specific to this config
|
|
15
|
-
...additionalPlugins,
|
|
16
|
-
],
|
|
17
|
-
output: [
|
|
18
|
-
{
|
|
19
|
-
dir: 'lib',
|
|
20
|
-
format: 'es',
|
|
21
|
-
name: 'Accounts',
|
|
22
|
-
compact: true,
|
|
23
|
-
exports: 'named',
|
|
24
|
-
sourcemap: true,
|
|
25
|
-
preserveModules: true,
|
|
26
|
-
chunkFileNames: '[name]-[hash].[format].js',
|
|
27
|
-
},
|
|
28
|
-
],
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
isWatchMode,
|
|
32
|
-
generateRoutesJSON: false,
|
|
33
|
-
},
|
|
34
|
-
),
|
|
35
|
-
];
|
|
36
|
-
};
|
package/src/config/env-config.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { cleanEnv, num, str } from 'envalid';
|
|
2
|
-
|
|
3
|
-
export const config = cleanEnv(
|
|
4
|
-
process.env,
|
|
5
|
-
/* start */
|
|
6
|
-
{
|
|
7
|
-
APP_URL: str({ devDefault: 'http://localhost:3011' }),
|
|
8
|
-
ADMIN_API_NAMESPACE: str({ devDefault: 'default' }),
|
|
9
|
-
NAMESPACE: str({ default: 'default' }),
|
|
10
|
-
GRAPHQL_URL: str(),
|
|
11
|
-
MAIL_SEND_DEFAULT_EMAIL: str(),
|
|
12
|
-
} /* end */,
|
|
13
|
-
);
|
package/src/config/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './env-config';
|
package/src/graphql/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './schema';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
extend enum MoleculerCronServiceName {
|
|
2
|
-
MessengerNotificationCronJob
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
enum MessengerNotificationCronTaskName {
|
|
6
|
-
sendNotificationOfUnreadMessages
|
|
7
|
-
sendNotificationOnPost
|
|
8
|
-
sendNotificationOfAlertMessages
|
|
9
|
-
sendPushNotificationsExpo
|
|
10
|
-
sendExpoNotificationOnPost
|
|
11
|
-
sendNotificationOfUnreadServiceMessages
|
|
12
|
-
}
|
package/src/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './module';
|
package/src/module.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Feature } from '@common-stack/server-core';
|
|
2
|
-
import {
|
|
3
|
-
MessengerNotificationCronMoleculerService,
|
|
4
|
-
} from './plugins';
|
|
5
|
-
import { schema } from './graphql';
|
|
6
|
-
|
|
7
|
-
export default new Feature({
|
|
8
|
-
schema,
|
|
9
|
-
addBrokerClientServiceClass: [
|
|
10
|
-
MessengerNotificationCronMoleculerService,
|
|
11
|
-
],
|
|
12
|
-
})
|
package/src/plugins/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './messenger-notification-cron-moleculer-service';
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { Service, ServiceBroker } from 'moleculer';
|
|
2
|
-
import { MoleculerCronServiceName, MessengerNotificationCronTaskName } from 'common';
|
|
3
|
-
import { NotificationDurationUnitEnum, IMessengerNotificationService, SERVER_TYPES } from 'common';
|
|
4
|
-
import { Container } from 'inversify';
|
|
5
|
-
import { CommonType } from '@common-stack/core';
|
|
6
|
-
import CronTasks from '@skoropletov/moleculer-cron-tasks';
|
|
7
|
-
import { CdmLogger } from '@cdm-logger/core';
|
|
8
|
-
|
|
9
|
-
export class MessengerNotificationCronMoleculerService extends Service {
|
|
10
|
-
constructor(broker: ServiceBroker, { container }: { container: Container } & { settings: any }) {
|
|
11
|
-
super(broker);
|
|
12
|
-
this.container = container;
|
|
13
|
-
this.parseServiceSchema({
|
|
14
|
-
name: MessengerNotificationCronMoleculerService.name,
|
|
15
|
-
started() {
|
|
16
|
-
// @ts-ignore
|
|
17
|
-
this.registerCronJobs(container);
|
|
18
|
-
},
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
private registerCronJobs(container: Container): void {
|
|
23
|
-
const logger: CdmLogger.ILogger = container.get(CommonType.LOGGER);
|
|
24
|
-
const messengerService: IMessengerNotificationService = container.get(
|
|
25
|
-
SERVER_TYPES.MessengerNotificationService,
|
|
26
|
-
);
|
|
27
|
-
this.broker.createService({
|
|
28
|
-
name: MoleculerCronServiceName.MessengerNotificationCronJob,
|
|
29
|
-
mixins: [CronTasks],
|
|
30
|
-
tasks: [
|
|
31
|
-
// {
|
|
32
|
-
// name: `${MessengerNotificationCronTaskName.SendNotificationOfUnreadMessages}`,
|
|
33
|
-
// cronTime: '0 * * * *',
|
|
34
|
-
// async callback() {
|
|
35
|
-
// return messengerService.sendNotificationOfUnreadMessages(NotificationDurationUnitEnum.hours, 1);
|
|
36
|
-
// },
|
|
37
|
-
// },
|
|
38
|
-
{
|
|
39
|
-
name: `${MessengerNotificationCronTaskName.SendNotificationOfAlertMessages}`,
|
|
40
|
-
cronTime: '*/10 * * * * *',
|
|
41
|
-
async callback() {
|
|
42
|
-
logger.debug('CronJob (sendNotificationOfAlertMessages) - running at', new Date());
|
|
43
|
-
await messengerService.sendNotificationOfAlertMessages(
|
|
44
|
-
NotificationDurationUnitEnum.seconds,
|
|
45
|
-
10,
|
|
46
|
-
);
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
name: `${MessengerNotificationCronTaskName.SendNotificationOfUnreadServiceMessages}`,
|
|
51
|
-
cronTime: '0 */10 * * * *',
|
|
52
|
-
async callback() {
|
|
53
|
-
logger.debug('CronJob (sendNotificationOfUnreadServiceMessages) - running at', new Date());
|
|
54
|
-
await messengerService.sendNotificationOfUnreadServiceMessages(
|
|
55
|
-
NotificationDurationUnitEnum.minutes,
|
|
56
|
-
10,
|
|
57
|
-
);
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
],
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
}
|
package/tsconfig.json
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../../../tsconfig.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"rootDir": "src",
|
|
5
|
-
"outDir": "lib",
|
|
6
|
-
"declarationDir": "lib",
|
|
7
|
-
"esModuleInterop": true,
|
|
8
|
-
"allowSyntheticDefaultImports": true,
|
|
9
|
-
"resolveJsonModule": true
|
|
10
|
-
},
|
|
11
|
-
"include": ["src"],
|
|
12
|
-
"exclude": ["node_modules", "lib", "dist", "webpack.config.js"]
|
|
13
|
-
}
|
package/webpack.config.js
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
const nodeExternals = require('webpack-node-externals');
|
|
2
|
-
const webpack = require('webpack');
|
|
3
|
-
const path = require('path');
|
|
4
|
-
|
|
5
|
-
const webpackOpts = {
|
|
6
|
-
mode: 'development',
|
|
7
|
-
entry: {
|
|
8
|
-
index: './src/index.ts',
|
|
9
|
-
},
|
|
10
|
-
node: {
|
|
11
|
-
__dirname: true,
|
|
12
|
-
},
|
|
13
|
-
target: 'node',
|
|
14
|
-
output: {
|
|
15
|
-
path: path.join(__dirname, 'lib'),
|
|
16
|
-
filename: '[name].js',
|
|
17
|
-
libraryTarget: 'commonjs2',
|
|
18
|
-
},
|
|
19
|
-
resolve: {
|
|
20
|
-
extensions: ['.ts', '.tsx', '.js'],
|
|
21
|
-
},
|
|
22
|
-
plugins: [
|
|
23
|
-
new webpack.LoaderOptionsPlugin({
|
|
24
|
-
options: {
|
|
25
|
-
test: /\.tsx?$/,
|
|
26
|
-
ts: {
|
|
27
|
-
compiler: 'typescript',
|
|
28
|
-
configFile: 'tsconfig.json',
|
|
29
|
-
},
|
|
30
|
-
tslint: {
|
|
31
|
-
emitErrors: true,
|
|
32
|
-
failOnHint: true,
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
}),
|
|
36
|
-
],
|
|
37
|
-
devtool: 'source-map',
|
|
38
|
-
module: {
|
|
39
|
-
rules: [
|
|
40
|
-
{
|
|
41
|
-
test: /\.tsx?$/,
|
|
42
|
-
use: 'ts-loader',
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
test: /\.(gql)$/,
|
|
46
|
-
exclude: /node_modules/,
|
|
47
|
-
use: ['graphql-tag/loader'],
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
test: /\.graphql?/,
|
|
51
|
-
exclude: /node_modules/,
|
|
52
|
-
use: 'raw-loader',
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
test: /\.ejs$/,
|
|
56
|
-
exclude: /node_modules/,
|
|
57
|
-
use: 'raw-loader',
|
|
58
|
-
},
|
|
59
|
-
],
|
|
60
|
-
},
|
|
61
|
-
externals: [nodeExternals({ modulesDir: '../../../node_modules' }), nodeExternals()],
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
module.exports = webpackOpts;
|