@activepieces/pieces-framework 0.7.3 → 0.7.5
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/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@activepieces/pieces-framework",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.5",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@sinclair/typebox": "0.26.8",
|
|
7
|
-
"axios": "^1.6.
|
|
7
|
+
"axios": "^1.6.3",
|
|
8
8
|
"dayjs": "1.11.9",
|
|
9
9
|
"is-base64": "1.1.0",
|
|
10
10
|
"lodash": "4.17.21",
|
|
11
11
|
"nanoid": "3.3.6",
|
|
12
12
|
"semver": "7.5.4",
|
|
13
|
-
"@activepieces/shared": "0.10.
|
|
14
|
-
"tslib": "
|
|
13
|
+
"@activepieces/shared": "0.10.47",
|
|
14
|
+
"tslib": "1.14.1"
|
|
15
15
|
},
|
|
16
16
|
"main": "./src/index.js"
|
|
17
17
|
}
|
package/src/lib/context.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import { AppConnectionValue, ExecutionType, FlowRunId, PauseMetadata, StopResponse, TriggerPayload } from "@activepieces/shared";
|
|
2
|
+
import { AppConnectionValue, ExecutionType, FlowRunId, PauseMetadata, Project, StopResponse, TriggerPayload } from "@activepieces/shared";
|
|
3
3
|
import { TriggerStrategy } from "./trigger/trigger";
|
|
4
4
|
import { NonAuthPiecePropertyMap, PieceAuthProperty, PiecePropValueSchema, PiecePropertyMap, StaticPropsValue } from "./property";
|
|
5
5
|
type BaseContext<PieceAuth extends PieceAuthProperty, Props extends PiecePropertyMap> = {
|
|
6
6
|
auth: PiecePropValueSchema<PieceAuth>;
|
|
7
7
|
propsValue: StaticPropsValue<Props>;
|
|
8
8
|
store: Store;
|
|
9
|
+
project: Pick<Project, 'id'>;
|
|
9
10
|
};
|
|
10
11
|
type AppWebhookTriggerHookContext<PieceAuth extends PieceAuthProperty, TriggerProps extends PiecePropertyMap> = BaseContext<PieceAuth, TriggerProps> & {
|
|
11
12
|
webhookUrl: string;
|
package/src/lib/context.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../../../packages/pieces/framework/src/lib/context.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../../../packages/pieces/framework/src/lib/context.ts"],"names":[],"mappings":";;;AAoIA,IAAY,UAIX;AAJD,WAAY,UAAU;IAClB,iDAAiD;IACjD,oCAAsB,CAAA;IACtB,2BAAa,CAAA;AACjB,CAAC,EAJW,UAAU,0BAAV,UAAU,QAIrB"}
|
|
@@ -3,6 +3,7 @@ import { BasePieceAuthSchema, SecretTextProperty, ShortTextProperty, TPropertyVa
|
|
|
3
3
|
import { StaticDropdownProperty } from "./dropdown-prop";
|
|
4
4
|
import { StaticPropsValue } from "./property";
|
|
5
5
|
import { ValidationInputType } from "../validators/types";
|
|
6
|
+
import { OAuth2GrantType } from "@activepieces/shared";
|
|
6
7
|
type OAuthProp = ShortTextProperty<true> | SecretTextProperty<true> | StaticDropdownProperty<any, true>;
|
|
7
8
|
export interface OAuth2Props {
|
|
8
9
|
[name: string]: ShortTextProperty<boolean> | SecretTextProperty<boolean> | StaticDropdownProperty<unknown, boolean>;
|
|
@@ -15,6 +16,7 @@ export type OAuth2PropertySchema = BasePieceAuthSchema<OAuth2PropertyValue> & {
|
|
|
15
16
|
scope: string[];
|
|
16
17
|
pkce?: boolean;
|
|
17
18
|
authorizationMethod?: OAuth2AuthorizationMethod;
|
|
19
|
+
grantType?: OAuth2GrantType;
|
|
18
20
|
extra?: Record<string, unknown>;
|
|
19
21
|
};
|
|
20
22
|
export type OAuth2PropertyValue<T extends OAuth2Props = any> = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oauth2-prop.js","sourceRoot":"","sources":["../../../../../../../packages/pieces/framework/src/lib/property/oauth2-prop.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"oauth2-prop.js","sourceRoot":"","sources":["../../../../../../../packages/pieces/framework/src/lib/property/oauth2-prop.ts"],"names":[],"mappings":";;;AAwCA,IAAY,yBAGX;AAHD,WAAY,yBAAyB;IACpC,8CAAiB,CAAA;IACjB,0CAAa,CAAA;AACd,CAAC,EAHW,yBAAyB,yCAAzB,yBAAyB,QAGpC"}
|