@peacom/core 2.0.5 → 2.0.7
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/README.md
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
# core
|
2
|
-
|
3
|
-
This library was generated with [Nx](https://nx.dev).
|
4
|
-
|
5
|
-
## Building
|
6
|
-
|
7
|
-
Run `nx build core` to build the library.
|
8
|
-
|
9
|
-
## Running unit tests
|
10
|
-
|
11
|
-
Run `nx test core` to execute the unit tests via [Jest](https://jestjs.io).
|
1
|
+
# core
|
2
|
+
|
3
|
+
This library was generated with [Nx](https://nx.dev).
|
4
|
+
|
5
|
+
## Building
|
6
|
+
|
7
|
+
Run `nx build core` to build the library.
|
8
|
+
|
9
|
+
## Running unit tests
|
10
|
+
|
11
|
+
Run `nx test core` to execute the unit tests via [Jest](https://jestjs.io).
|
package/package.json
CHANGED
@@ -1,20 +1,20 @@
|
|
1
1
|
{
|
2
2
|
"name": "@peacom/core",
|
3
|
-
"version": "2.0.
|
3
|
+
"version": "2.0.7",
|
4
4
|
"type": "commonjs",
|
5
5
|
"dependencies": {
|
6
|
-
"@aws-sdk/client-s3": "
|
7
|
-
"@aws-sdk/s3-request-presigner": "
|
8
|
-
"bullmq": "^5.
|
6
|
+
"@aws-sdk/client-s3": "3.554.0",
|
7
|
+
"@aws-sdk/s3-request-presigner": "3.554.0",
|
8
|
+
"bullmq": "^5.7.1",
|
9
9
|
"mime-types": "^2.1.35",
|
10
10
|
"uuid": "^9.0.1"
|
11
11
|
},
|
12
12
|
"peerDependencies": {
|
13
|
-
"@peacom/model": "2.0.
|
13
|
+
"@peacom/model": "2.0.11"
|
14
14
|
},
|
15
15
|
"devDependencies": {
|
16
|
-
"@types/node": "^20.
|
17
|
-
"dotenv": "^16.
|
16
|
+
"@types/node": "^20.12.7",
|
17
|
+
"dotenv": "^16.4.5",
|
18
18
|
"@types/mime-types": "^2.1.4",
|
19
19
|
"@types/uuid": "^9.0.8"
|
20
20
|
},
|
@@ -1,5 +1,11 @@
|
|
1
1
|
import { Application, PARTNER } from "@peacom/model";
|
2
2
|
export declare const BULK_BROADCAST_JOB_QUEUE = "BULK_BROADCAST_JOB_QUEUE";
|
3
|
+
export declare const BULK_QUEUE: {
|
4
|
+
BROADCAST_DISTRIBUTE: string;
|
5
|
+
BROADCAST_MESSAGE: string;
|
6
|
+
FALLBACK_DISTRIBUTE: string;
|
7
|
+
FALLBACK_MESSAGE: string;
|
8
|
+
};
|
3
9
|
/**
|
4
10
|
* Define QUEUE by partner and service, for guarantee the limit rate
|
5
11
|
*/
|
@@ -1,8 +1,14 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.getApplicationBroadcastQueueName = exports.BULK_BROADCAST_QUEUE = exports.BULK_BROADCAST_JOB_QUEUE = void 0;
|
3
|
+
exports.getApplicationBroadcastQueueName = exports.BULK_BROADCAST_QUEUE = exports.BULK_QUEUE = exports.BULK_BROADCAST_JOB_QUEUE = void 0;
|
4
4
|
const model_1 = require("@peacom/model");
|
5
5
|
exports.BULK_BROADCAST_JOB_QUEUE = 'BULK_BROADCAST_JOB_QUEUE';
|
6
|
+
exports.BULK_QUEUE = {
|
7
|
+
BROADCAST_DISTRIBUTE: 'BULK_BROADCAST_DISTRIBUTE',
|
8
|
+
BROADCAST_MESSAGE: 'BULK_BROADCAST_MESSAGE',
|
9
|
+
FALLBACK_DISTRIBUTE: 'BULK_FALLBACK_DISTRIBUTE',
|
10
|
+
FALLBACK_MESSAGE: 'BULK_FALLBACK_MESSAGE'
|
11
|
+
};
|
6
12
|
/**
|
7
13
|
* Define QUEUE by partner and service, for guarantee the limit rate
|
8
14
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"BroadcastQueue.js","sourceRoot":"","sources":["../../../../../../../packages/core/src/lib/model/queue/BroadcastQueue.ts"],"names":[],"mappings":";;;AAAA,yCAAmD;AAEtC,QAAA,wBAAwB,GAAG,0BAA0B,CAAA;
|
1
|
+
{"version":3,"file":"BroadcastQueue.js","sourceRoot":"","sources":["../../../../../../../packages/core/src/lib/model/queue/BroadcastQueue.ts"],"names":[],"mappings":";;;AAAA,yCAAmD;AAEtC,QAAA,wBAAwB,GAAG,0BAA0B,CAAA;AAErD,QAAA,UAAU,GAAG;IACxB,oBAAoB,EAAE,2BAA2B;IACjD,iBAAiB,EAAE,wBAAwB;IAC3C,mBAAmB,EAAE,0BAA0B;IAC/C,gBAAgB,EAAE,uBAAuB;CAC1C,CAAA;AAED;;GAEG;AACH,IAAY,oBAaX;AAbD,WAAY,oBAAoB;IAC9B,2DAAmC,CAAA;IACnC,yDAAiC,CAAA;IACjC,iEAAyC,CAAA;IACzC,iDAAyB,CAAA;IACzB,yEAAiD,CAAA;IACjD,mEAA2C,CAAA;IAC3C,uEAA+C,CAAA;IAC/C,+CAAuB,CAAA;IACvB,6CAAqB,CAAA;IACrB,qDAA6B,CAAA;IAC7B,mDAA2B,CAAA;IAC3B,wDAAgC,CAAA;AAClC,CAAC,EAbW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAa/B;AAEM,MAAM,gCAAgC,GAAG,CAAC,aAA0B,EAAE,YAA4B,IAAI,EAAE,EAAE;IAC/G,IAAI,SAAS,KAAK,eAAO,CAAC,MAAM,EAAE;QAChC,OAAO,oBAAoB,CAAC,MAAM,CAAA;KACnC;IACD,QAAQ,aAAa,EAAE;QACrB,KAAK,mBAAW,CAAC,GAAG;YAClB,OAAO,oBAAoB,CAAC,UAAU,CAAA;QACxC,KAAK,mBAAW,CAAC,KAAK,CAAC,CAAC;YACtB,QAAQ,SAAS,EAAE;gBACjB,KAAK,eAAO,CAAC,GAAG;oBACd,OAAO,oBAAoB,CAAC,SAAS,CAAC;gBACxC,KAAK,eAAO,CAAC,KAAK;oBAChB,OAAO,oBAAoB,CAAC,KAAK,CAAC;gBACpC,KAAK,eAAO,CAAC,QAAQ;oBACnB,OAAO,oB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