@activepieces/pieces-framework 0.7.25 → 0.7.26

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@activepieces/pieces-framework",
3
- "version": "0.7.25",
3
+ "version": "0.7.26",
4
4
  "type": "commonjs",
5
5
  "dependencies": {
6
6
  "@sinclair/typebox": "0.26.8",
@@ -10,7 +10,7 @@
10
10
  "lodash": "4.17.21",
11
11
  "nanoid": "3.3.6",
12
12
  "semver": "7.6.0",
13
- "@activepieces/shared": "0.10.94",
13
+ "@activepieces/shared": "0.10.97",
14
14
  "tslib": "1.14.1"
15
15
  },
16
16
  "main": "./src/index.js"
@@ -7,7 +7,7 @@ import { StopResponse, DelayPauseMetadata, PauseMetadata, WebhookPauseMetadata }
7
7
  type BaseContext<PieceAuth extends PieceAuthProperty, Props extends InputPropertyMap> = {
8
8
  auth: PiecePropValueSchema<PieceAuth>;
9
9
  propsValue: StaticPropsValue<Props>;
10
- store: Store<StoreScope>;
10
+ store: Store;
11
11
  project: {
12
12
  id: ProjectId;
13
13
  externalId: () => Promise<string | undefined>;
@@ -95,14 +95,13 @@ export interface TagsManager {
95
95
  name: string;
96
96
  }): Promise<void>;
97
97
  }
98
- export interface Store<SCOPE extends StoreScope | Omit<StoreScope, 'RUN'>> {
99
- put<T>(key: string, value: T, scope?: SCOPE): Promise<T>;
100
- get<T>(key: string, scope?: SCOPE): Promise<T | null>;
101
- delete(key: string, scope?: SCOPE): Promise<void>;
98
+ export interface Store {
99
+ put<T>(key: string, value: T, scope?: StoreScope): Promise<T>;
100
+ get<T>(key: string, scope?: StoreScope): Promise<T | null>;
101
+ delete(key: string, scope?: StoreScope): Promise<void>;
102
102
  }
103
103
  export declare enum StoreScope {
104
104
  PROJECT = "COLLECTION",
105
- FLOW = "FLOW",
106
- RUN = "RUN"
105
+ FLOW = "FLOW"
107
106
  }
108
107
  export {};
@@ -6,6 +6,5 @@ var StoreScope;
6
6
  // Collection were deprecated in favor of project
7
7
  StoreScope["PROJECT"] = "COLLECTION";
8
8
  StoreScope["FLOW"] = "FLOW";
9
- StoreScope["RUN"] = "RUN";
10
9
  })(StoreScope || (exports.StoreScope = StoreScope = {}));
11
10
  //# sourceMappingURL=context.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../../../../packages/pieces/community/framework/src/lib/context.ts"],"names":[],"mappings":";;;AAgLA,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,iDAAiD;IACjD,oCAAsB,CAAA;IACtB,2BAAa,CAAA;IACb,yBAAW,CAAA;AACb,CAAC,EALW,UAAU,0BAAV,UAAU,QAKrB"}
1
+ {"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../../../../packages/pieces/community/framework/src/lib/context.ts"],"names":[],"mappings":";;;AAgLA,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,iDAAiD;IACjD,oCAAsB,CAAA;IACtB,2BAAa,CAAA;AACf,CAAC,EAJW,UAAU,0BAAV,UAAU,QAIrB"}
@@ -16,7 +16,7 @@ export declare class Piece<PieceAuth extends PieceAuthProperty = PieceAuthProper
16
16
  private readonly _actions;
17
17
  private readonly _triggers;
18
18
  constructor(displayName: string, logoUrl: string, authors: string[], events: PieceEventProcessors | undefined, actions: Action<PieceAuth>[], triggers: Trigger<PieceAuth>[], categories: PieceCategory[], auth?: PieceAuth | undefined, minimumSupportedRelease?: string | undefined, maximumSupportedRelease?: string | undefined, description?: string);
19
- metadata(): Omit<PieceMetadata, 'name' | 'version'>;
19
+ metadata(): BackwardCompatiblePieceMetadata;
20
20
  getAction(actionName: string): Action | undefined;
21
21
  getTrigger(triggerName: string): Trigger | undefined;
22
22
  actions(): Record<string, Action>;
@@ -46,4 +46,7 @@ type PieceEventProcessors = {
46
46
  appWebhookUrl: string;
47
47
  }) => boolean;
48
48
  };
49
+ type BackwardCompatiblePieceMetadata = Omit<PieceMetadata, 'name' | 'version' | 'authors'> & {
50
+ authors?: PieceMetadata['authors'];
51
+ };
49
52
  export {};