creo-flow-extensions-base 1.2.0-dev.11 → 1.2.0-dev.13
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/extension/index.d.ts
CHANGED
package/lib/extension/index.js
CHANGED
|
@@ -16,7 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.createExtension = void 0;
|
|
18
18
|
__exportStar(require("./enum/ExtensionTypes"), exports);
|
|
19
|
-
__exportStar(require("./enum/ContextMode"), exports);
|
|
20
19
|
__exportStar(require("./interfaces"), exports);
|
|
21
20
|
const createExtension = (extension) => {
|
|
22
21
|
return extension;
|
|
@@ -2,7 +2,6 @@ import { IMethodSchema } from '../../method';
|
|
|
2
2
|
import { Field } from '../../fields';
|
|
3
3
|
import { IConnectionSchema } from '../../connection';
|
|
4
4
|
import { ExtensionTypes } from '../enum/ExtensionTypes';
|
|
5
|
-
import { ContextMode } from '../enum/ContextMode';
|
|
6
5
|
export interface ICreateExtensionParams {
|
|
7
6
|
methods: IMethodSchema<readonly Field[], readonly Field[]>[];
|
|
8
7
|
connections?: IConnectionSchema<readonly Field[]>[];
|
|
@@ -12,18 +11,4 @@ export interface ICreateExtensionParams {
|
|
|
12
11
|
version: string;
|
|
13
12
|
icon: string;
|
|
14
13
|
type: ExtensionTypes;
|
|
15
|
-
/**
|
|
16
|
-
* Context processing mode used by this extension.
|
|
17
|
-
*
|
|
18
|
-
* - `ContextMode.SIMPLIFIED` — the platform automatically parses the context
|
|
19
|
-
* and passes a simplified, small context payload to the extension
|
|
20
|
-
* (maximum size: less than 0.1 MB). Use this when you do not need to
|
|
21
|
-
* handle large or highly customized context structures.
|
|
22
|
-
*
|
|
23
|
-
* - `ContextMode.MANUAL` — the context is passed as a separate raw object
|
|
24
|
-
* and must be parsed manually inside the extension. In this mode, the
|
|
25
|
-
* context object is also forwarded to the extension method, allowing more
|
|
26
|
-
* flexible handling of complex or large context payloads.
|
|
27
|
-
*/
|
|
28
|
-
contextMode: ContextMode;
|
|
29
14
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FieldTypes } from '../enum';
|
|
2
2
|
import { IBaseField } from '../interfaces';
|
|
3
3
|
export interface ICodeField extends IBaseField {
|
|
4
|
-
language: 'javascript' | 'python' | 'json';
|
|
4
|
+
language: 'javascript' | 'python' | 'json' | 'typescript';
|
|
5
5
|
type: FieldTypes.CODE;
|
|
6
6
|
}
|
package/package.json
CHANGED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Defines how the extension receives and processes context.
|
|
3
|
-
*
|
|
4
|
-
* - `SIMPLIFIED` — the platform automatically parses the context and passes
|
|
5
|
-
* a pre-processed, small context payload to the extension.
|
|
6
|
-
* This mode supports only small context sizes (less than 0.1 MB).
|
|
7
|
-
* Use this mode when you want a simple setup and do not need to handle
|
|
8
|
-
* large or highly customized context structures.
|
|
9
|
-
*
|
|
10
|
-
* - `MANUAL` — the context is delivered to the extension as a separate,
|
|
11
|
-
* raw object and must be parsed manually inside the extension.
|
|
12
|
-
* In this mode, the `context` object is also passed directly into the
|
|
13
|
-
* extension method, giving you more flexibility and control over how the
|
|
14
|
-
* context is interpreted, transformed, and used.
|
|
15
|
-
*/
|
|
16
|
-
export declare enum ContextMode {
|
|
17
|
-
SIMPLIFIED = "simplified",
|
|
18
|
-
MANUAL = "manual"
|
|
19
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ContextMode = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Defines how the extension receives and processes context.
|
|
6
|
-
*
|
|
7
|
-
* - `SIMPLIFIED` — the platform automatically parses the context and passes
|
|
8
|
-
* a pre-processed, small context payload to the extension.
|
|
9
|
-
* This mode supports only small context sizes (less than 0.1 MB).
|
|
10
|
-
* Use this mode when you want a simple setup and do not need to handle
|
|
11
|
-
* large or highly customized context structures.
|
|
12
|
-
*
|
|
13
|
-
* - `MANUAL` — the context is delivered to the extension as a separate,
|
|
14
|
-
* raw object and must be parsed manually inside the extension.
|
|
15
|
-
* In this mode, the `context` object is also passed directly into the
|
|
16
|
-
* extension method, giving you more flexibility and control over how the
|
|
17
|
-
* context is interpreted, transformed, and used.
|
|
18
|
-
*/
|
|
19
|
-
var ContextMode;
|
|
20
|
-
(function (ContextMode) {
|
|
21
|
-
ContextMode["SIMPLIFIED"] = "simplified";
|
|
22
|
-
ContextMode["MANUAL"] = "manual";
|
|
23
|
-
})(ContextMode || (exports.ContextMode = ContextMode = {}));
|