@memberjunction/actions-base 6.1.0-edge.0 → 6.1.0-edge.1
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MJActionEntity
|
|
1
|
+
import { MJActionEntity } from "@memberjunction/core-entities";
|
|
2
2
|
export declare class MJActionEntityExtended extends MJActionEntity {
|
|
3
3
|
/**
|
|
4
4
|
* Returns true if this action is a core MemberJunction framework action, false otherwise.
|
|
@@ -8,14 +8,5 @@ export declare class MJActionEntityExtended extends MJActionEntity {
|
|
|
8
8
|
* Generates a programatically friendly name for the name of the Action.
|
|
9
9
|
*/
|
|
10
10
|
get ProgrammaticName(): string;
|
|
11
|
-
private _resultCodes;
|
|
12
|
-
/**
|
|
13
|
-
* Provides a list of possible result codes for this action.
|
|
14
|
-
*/
|
|
15
|
-
get ResultCodes(): MJActionResultCodeEntity[];
|
|
16
|
-
private _params;
|
|
17
|
-
get Params(): MJActionParamEntity[];
|
|
18
|
-
private _libs;
|
|
19
|
-
get Libraries(): MJActionLibraryEntity[];
|
|
20
11
|
}
|
|
21
12
|
//# sourceMappingURL=MJActionEntityExtended.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MJActionEntityExtended.d.ts","sourceRoot":"","sources":["../src/MJActionEntityExtended.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"MJActionEntityExtended.d.ts","sourceRoot":"","sources":["../src/MJActionEntityExtended.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAI/D,qBACa,sBAAuB,SAAQ,cAAc;IACtD;;OAEG;IACH,IAAW,YAAY,IAAI,OAAO,CAEjC;IAED;;OAEG;IACH,IAAW,gBAAgB,IAAI,MAAM,CAEpC;CAaJ"}
|
|
@@ -6,15 +6,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { BaseEntity, CodeNameFromString } from "@memberjunction/core";
|
|
8
8
|
import { MJActionEntity } from "@memberjunction/core-entities";
|
|
9
|
-
import { RegisterClass
|
|
9
|
+
import { RegisterClass } from "@memberjunction/global";
|
|
10
10
|
import { ActionEngineBase } from "./ActionEngine-Base.js";
|
|
11
11
|
let MJActionEntityExtended = class MJActionEntityExtended extends MJActionEntity {
|
|
12
|
-
constructor() {
|
|
13
|
-
super(...arguments);
|
|
14
|
-
this._resultCodes = null;
|
|
15
|
-
this._params = null;
|
|
16
|
-
this._libs = null;
|
|
17
|
-
}
|
|
18
12
|
/**
|
|
19
13
|
* Returns true if this action is a core MemberJunction framework action, false otherwise.
|
|
20
14
|
*/
|
|
@@ -27,30 +21,6 @@ let MJActionEntityExtended = class MJActionEntityExtended extends MJActionEntity
|
|
|
27
21
|
get ProgrammaticName() {
|
|
28
22
|
return CodeNameFromString(this.Name);
|
|
29
23
|
}
|
|
30
|
-
/**
|
|
31
|
-
* Provides a list of possible result codes for this action.
|
|
32
|
-
*/
|
|
33
|
-
get ResultCodes() {
|
|
34
|
-
if (!this._resultCodes) {
|
|
35
|
-
// load the result codes
|
|
36
|
-
this._resultCodes = ActionEngineBase.Instance.ActionResultCodes.filter(c => UUIDsEqual(c.ActionID, this.ID));
|
|
37
|
-
}
|
|
38
|
-
return this._resultCodes;
|
|
39
|
-
}
|
|
40
|
-
get Params() {
|
|
41
|
-
if (!this._params) {
|
|
42
|
-
// load the inputs
|
|
43
|
-
this._params = ActionEngineBase.Instance.ActionParams.filter(i => UUIDsEqual(i.ActionID, this.ID));
|
|
44
|
-
}
|
|
45
|
-
return this._params;
|
|
46
|
-
}
|
|
47
|
-
get Libraries() {
|
|
48
|
-
if (!this._libs) {
|
|
49
|
-
// load the inputs
|
|
50
|
-
this._libs = ActionEngineBase.Instance.ActionLibraries.filter(l => UUIDsEqual(l.ActionID, this.ID));
|
|
51
|
-
}
|
|
52
|
-
return this._libs;
|
|
53
|
-
}
|
|
54
24
|
};
|
|
55
25
|
MJActionEntityExtended = __decorate([
|
|
56
26
|
RegisterClass(BaseEntity, 'MJ: Actions') // high priority make sure this class is used ahead of other things
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MJActionEntityExtended.js","sourceRoot":"","sources":["../src/MJActionEntityExtended.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"MJActionEntityExtended.js","sourceRoot":"","sources":["../src/MJActionEntityExtended.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAGhD,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,cAAc;IACtD;;OAEG;IACH,IAAW,YAAY;QACnB,OAAO,gBAAgB,CAAC,QAAQ,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;IACxD,CAAC;IAED;;OAEG;IACH,IAAW,gBAAgB;QACvB,OAAO,kBAAkB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACzC,CAAC;CAaJ,CAAA;AA1BY,sBAAsB;IADlC,aAAa,CAAC,UAAU,EAAE,aAAa,CAAC,CAAC,mEAAmE;GAChG,sBAAsB,CA0BlC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/actions-base",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "6.1.0-edge.
|
|
4
|
+
"version": "6.1.0-edge.1",
|
|
5
5
|
"description": "Base Classes for MemberJunction Actions. This library is used on both server and network nodes.",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
"typescript": "^5.9.3"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@memberjunction/code-execution": "6.1.0-edge.
|
|
19
|
-
"@memberjunction/core": "6.1.0-edge.
|
|
20
|
-
"@memberjunction/core-entities": "6.1.0-edge.
|
|
21
|
-
"@memberjunction/global": "6.1.0-edge.
|
|
18
|
+
"@memberjunction/code-execution": "6.1.0-edge.1",
|
|
19
|
+
"@memberjunction/core": "6.1.0-edge.1",
|
|
20
|
+
"@memberjunction/core-entities": "6.1.0-edge.1",
|
|
21
|
+
"@memberjunction/global": "6.1.0-edge.1",
|
|
22
22
|
"zod": "^3.25.0"
|
|
23
23
|
},
|
|
24
24
|
"repository": {
|