@memberjunction/actions-content-autotag 3.3.0 → 4.0.0
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/dist/generic/content-autotag-and-vectorize.action.d.ts +0 -1
- package/dist/generic/content-autotag-and-vectorize.action.d.ts.map +1 -1
- package/dist/generic/content-autotag-and-vectorize.action.js +11 -18
- package/dist/generic/content-autotag-and-vectorize.action.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -17
- package/dist/index.js.map +1 -1
- package/package.json +12 -11
|
@@ -10,5 +10,4 @@ import { ActionResultSimple, RunActionParams } from "@memberjunction/actions-bas
|
|
|
10
10
|
export declare class AutotagAndVectorizeContentAction extends VectorizeEntityAction {
|
|
11
11
|
protected InternalRunAction(params: RunActionParams): Promise<ActionResultSimple>;
|
|
12
12
|
}
|
|
13
|
-
export declare function LoadAutotagAndVectorizeContentAction(): void;
|
|
14
13
|
//# sourceMappingURL=content-autotag-and-vectorize.action.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content-autotag-and-vectorize.action.d.ts","sourceRoot":"","sources":["../../src/generic/content-autotag-and-vectorize.action.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAe,kBAAkB,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAEhG;;;;;;EAME;AACF,qBACa,gCAAiC,SAAQ,qBAAqB;cACvD,iBAAiB,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,kBAAkB,CAAC;CAwC1F
|
|
1
|
+
{"version":3,"file":"content-autotag-and-vectorize.action.d.ts","sourceRoot":"","sources":["../../src/generic/content-autotag-and-vectorize.action.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAe,kBAAkB,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAEhG;;;;;;EAME;AACF,qBACa,gCAAiC,SAAQ,qBAAqB;cACvD,iBAAiB,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,kBAAkB,CAAC;CAwC1F"}
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
4
|
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;
|
|
6
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
6
|
};
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
const core_actions_1 = require("@memberjunction/core-actions");
|
|
13
|
-
const content_autotagging_1 = require("@memberjunction/content-autotagging");
|
|
7
|
+
import { BaseAction } from "@memberjunction/actions";
|
|
8
|
+
import { RegisterClass } from "@memberjunction/global";
|
|
9
|
+
import { VectorizeEntityAction } from "@memberjunction/core-actions";
|
|
10
|
+
import { AutotagLocalFileSystem, AutotagRSSFeed, AutotagWebsite } from '@memberjunction/content-autotagging';
|
|
14
11
|
/**
|
|
15
12
|
*
|
|
16
13
|
* Params:
|
|
@@ -18,7 +15,7 @@ const content_autotagging_1 = require("@memberjunction/content-autotagging");
|
|
|
18
15
|
* * Vectorize: Bit, if set to true, will vectorize the content.
|
|
19
16
|
* * EntityNames: Comma separated list of entity names to vectorize.
|
|
20
17
|
*/
|
|
21
|
-
let AutotagAndVectorizeContentAction = class AutotagAndVectorizeContentAction extends
|
|
18
|
+
let AutotagAndVectorizeContentAction = class AutotagAndVectorizeContentAction extends VectorizeEntityAction {
|
|
22
19
|
async InternalRunAction(params) {
|
|
23
20
|
const autotagParam = params.Params.find(p => p.Name === 'Autotag');
|
|
24
21
|
const vectorizeParam = params.Params.find(p => p.Name === 'Vectorize');
|
|
@@ -27,11 +24,11 @@ let AutotagAndVectorizeContentAction = class AutotagAndVectorizeContentAction ex
|
|
|
27
24
|
}
|
|
28
25
|
try {
|
|
29
26
|
if (autotagParam.Value === 1) {
|
|
30
|
-
const FileAutotag = new
|
|
27
|
+
const FileAutotag = new AutotagLocalFileSystem();
|
|
31
28
|
await FileAutotag.Autotag(params.ContextUser);
|
|
32
|
-
const RSSAutotag = new
|
|
29
|
+
const RSSAutotag = new AutotagRSSFeed();
|
|
33
30
|
await RSSAutotag.Autotag(params.ContextUser);
|
|
34
|
-
const WebsiteAutotag = new
|
|
31
|
+
const WebsiteAutotag = new AutotagWebsite();
|
|
35
32
|
await WebsiteAutotag.Autotag(params.ContextUser);
|
|
36
33
|
console.log('Autotagging complete.');
|
|
37
34
|
}
|
|
@@ -53,12 +50,8 @@ let AutotagAndVectorizeContentAction = class AutotagAndVectorizeContentAction ex
|
|
|
53
50
|
}
|
|
54
51
|
}
|
|
55
52
|
};
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
(0, global_1.RegisterClass)(actions_1.BaseAction, "__AutotagAndVectorizeContent")
|
|
53
|
+
AutotagAndVectorizeContentAction = __decorate([
|
|
54
|
+
RegisterClass(BaseAction, "__AutotagAndVectorizeContent")
|
|
59
55
|
], AutotagAndVectorizeContentAction);
|
|
60
|
-
|
|
61
|
-
// this function is a stub that is used to force the bundler to include the above class in the final bundle and not tree shake them out
|
|
62
|
-
}
|
|
63
|
-
exports.LoadAutotagAndVectorizeContentAction = LoadAutotagAndVectorizeContentAction;
|
|
56
|
+
export { AutotagAndVectorizeContentAction };
|
|
64
57
|
//# sourceMappingURL=content-autotag-and-vectorize.action.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content-autotag-and-vectorize.action.js","sourceRoot":"","sources":["../../src/generic/content-autotag-and-vectorize.action.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"content-autotag-and-vectorize.action.js","sourceRoot":"","sources":["../../src/generic/content-autotag-and-vectorize.action.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAC,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAG7G;;;;;;EAME;AAEK,IAAM,gCAAgC,GAAtC,MAAM,gCAAiC,SAAQ,qBAAqB;IAC7D,KAAK,CAAC,iBAAiB,CAAC,MAAuB;QACrD,MAAM,YAAY,GAA4B,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC;QAC5F,MAAM,cAAc,GAA4B,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,WAAW,CAAC,CAAC;QAEhG,IAAG,CAAC,YAAY,IAAI,CAAC,cAAc,EAAC,CAAC;YACjC,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC;QAClE,CAAC;QAED,IAAI,CAAC;YAED,IAAI,YAAY,CAAC,KAAK,KAAK,CAAC,EAAE,CAAC;gBAC3B,MAAM,WAAW,GAAG,IAAI,sBAAsB,EAAE,CAAA;gBAChD,MAAM,WAAW,CAAC,OAAO,CAAC,MAAM,CAAC,WAAW,CAAC,CAAA;gBAC7C,MAAM,UAAU,GAAG,IAAI,cAAc,EAAE,CAAA;gBACvC,MAAM,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC,WAAW,CAAC,CAAA;gBAC5C,MAAM,cAAc,GAAG,IAAI,cAAc,EAAE,CAAA;gBAC3C,MAAM,cAAc,CAAC,OAAO,CAAC,MAAM,CAAC,WAAW,CAAC,CAAA;gBAEhD,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAA;YACxC,CAAC;YAED,IAAI,cAAc,CAAC,KAAK,KAAK,CAAC,EAAE,CAAC;gBAC7B,MAAM,SAAS,GAAG,MAAM,KAAK,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;gBAExD,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAA;YAC1C,CAAC;YAED,OAAO;gBACH,OAAO,EAAE,IAAI;gBACb,UAAU,EAAE,SAAS;aACxB,CAAC;QACN,CAAC;QACD,OAAO,KAAK,EAAE,CAAC;YACX,OAAO;gBACH,OAAO,EAAE,KAAK;gBACd,OAAO,EAAE,KAAY;gBACrB,UAAU,EAAE,QAAQ;aACvB,CAAC;QACN,CAAC;IACL,CAAC;CACJ,CAAA;AAzCY,gCAAgC;IAD5C,aAAa,CAAC,UAAU,EAAE,8BAA8B,CAAC;GAC7C,gCAAgC,CAyC5C"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './generic/content-autotag-and-vectorize.action';
|
|
1
|
+
export * from './generic/content-autotag-and-vectorize.action.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -1,18 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./generic/content-autotag-and-vectorize.action"), exports);
|
|
1
|
+
export * from './generic/content-autotag-and-vectorize.action.js';
|
|
18
2
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gDAAgD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/actions-content-autotag",
|
|
3
|
-
"
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "4.0.0",
|
|
4
5
|
"description": "Action classes that execute the content autotagging and vectorization actions.",
|
|
5
6
|
"main": "dist/index.js",
|
|
6
7
|
"types": "dist/index.d.ts",
|
|
@@ -9,24 +10,24 @@
|
|
|
9
10
|
],
|
|
10
11
|
"scripts": {
|
|
11
12
|
"start": "ts-node-dev src/index.ts",
|
|
12
|
-
"build": "tsc",
|
|
13
|
+
"build": "tsc && tsc-alias -f",
|
|
13
14
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
14
15
|
},
|
|
15
16
|
"author": "MemberJunction.com",
|
|
16
17
|
"license": "ISC",
|
|
17
18
|
"devDependencies": {
|
|
18
19
|
"ts-node-dev": "^2.0.0",
|
|
19
|
-
"typescript": "^5.
|
|
20
|
+
"typescript": "^5.9.3"
|
|
20
21
|
},
|
|
21
22
|
"dependencies": {
|
|
22
|
-
"@memberjunction/actions": "
|
|
23
|
-
"@memberjunction/actions-base": "
|
|
24
|
-
"@memberjunction/content-autotagging": "
|
|
25
|
-
"@memberjunction/core": "
|
|
26
|
-
"@memberjunction/core-actions": "
|
|
27
|
-
"@memberjunction/core-entities": "
|
|
28
|
-
"@memberjunction/global": "
|
|
29
|
-
"axios": "^1.
|
|
23
|
+
"@memberjunction/actions": "4.0.0",
|
|
24
|
+
"@memberjunction/actions-base": "4.0.0",
|
|
25
|
+
"@memberjunction/content-autotagging": "4.0.0",
|
|
26
|
+
"@memberjunction/core": "4.0.0",
|
|
27
|
+
"@memberjunction/core-actions": "4.0.0",
|
|
28
|
+
"@memberjunction/core-entities": "4.0.0",
|
|
29
|
+
"@memberjunction/global": "4.0.0",
|
|
30
|
+
"axios": "^1.13.4"
|
|
30
31
|
},
|
|
31
32
|
"repository": {
|
|
32
33
|
"type": "git",
|