@activepieces/shared 0.10.101 → 0.10.102

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/shared",
3
- "version": "0.10.101",
3
+ "version": "0.10.102",
4
4
  "type": "commonjs",
5
5
  "dependencies": {
6
6
  "@sinclair/typebox": "0.26.8",
@@ -128,6 +128,7 @@ export type PauseMetadataMissingErrorParams = BaseErrorParams<ErrorCode.PAUSE_ME
128
128
  export type InvalidApiKeyParams = BaseErrorParams<ErrorCode.INVALID_API_KEY, Record<string, never>>;
129
129
  export type EngineOperationFailureParams = BaseErrorParams<ErrorCode.ENGINE_OPERATION_FAILURE, {
130
130
  message: string;
131
+ context?: unknown;
131
132
  }>;
132
133
  export type InvalidAppConnectionParams = BaseErrorParams<ErrorCode.INVALID_APP_CONNECTION, {
133
134
  error: string;
@@ -1 +1 @@
1
- {"version":3,"file":"activepieces-error.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/common/activepieces-error.ts"],"names":[],"mappings":";;;AAQA,MAAa,iBAAkB,SAAQ,KAAK;IACxC,YAAmB,KAAkB,EAAE,OAAgB;QACnD,KAAK,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;QADpC,UAAK,GAAL,KAAK,CAAa;IAErC,CAAC;CACJ;AAJD,8CAIC;AAuUD,IAAY,SA6CX;AA7CD,WAAY,SAAS;IACjB,8CAAiC,CAAA;IACjC,4CAA+B,CAAA;IAC/B,kDAAqC,CAAA;IACrC,sDAAyC,CAAA;IACzC,4DAA+C,CAAA;IAC/C,kEAAqD,CAAA;IACrD,kDAAqC,CAAA;IACrC,oDAAuC,CAAA;IACvC,wDAA2C,CAAA;IAC3C,4CAA+B,CAAA;IAC/B,wDAA2C,CAAA;IAC3C,8CAAiC,CAAA;IACjC,2DAA8C,CAAA;IAC9C,8CAAiC,CAAA;IACjC,8DAAiD,CAAA;IACjD,wCAA2B,CAAA;IAC3B,sDAAyC,CAAA;IACzC,gDAAmC,CAAA;IACnC,8DAAiD,CAAA;IACjD,0DAA6C,CAAA;IAC7C,4CAA+B,CAAA;IAC/B,wDAA2C,CAAA;IAC3C,wDAA2C,CAAA;IAC3C,0EAA6D,CAAA;IAC7D,wCAA2B,CAAA;IAC3B,gEAAmD,CAAA;IACnD,wDAA2C,CAAA;IAC3C,8CAAiC,CAAA;IACjC,8DAAiD,CAAA;IACjD,oDAAuC,CAAA;IACvC,gDAAmC,CAAA;IACnC,gEAAmD,CAAA;IACnD,8CAAiC,CAAA;IACjC,kDAAqC,CAAA;IACrC,kDAAqC,CAAA;IACrC,8CAAiC,CAAA;IACjC,wDAA2C,CAAA;IAC3C,gEAAmD,CAAA;IACnD,wDAA2C,CAAA;IAC3C,gDAAmC,CAAA;IACnC,8CAAiC,CAAA;IACjC,8CAAiC,CAAA;IACjC,kDAAqC,CAAA;IACrC,sCAAyB,CAAA;AAC7B,CAAC,EA7CW,SAAS,yBAAT,SAAS,QA6CpB"}
1
+ {"version":3,"file":"activepieces-error.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/common/activepieces-error.ts"],"names":[],"mappings":";;;AAQA,MAAa,iBAAkB,SAAQ,KAAK;IACxC,YAAmB,KAAkB,EAAE,OAAgB;QACnD,KAAK,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;QADpC,UAAK,GAAL,KAAK,CAAa;IAErC,CAAC;CACJ;AAJD,8CAIC;AAwUD,IAAY,SA6CX;AA7CD,WAAY,SAAS;IACjB,8CAAiC,CAAA;IACjC,4CAA+B,CAAA;IAC/B,kDAAqC,CAAA;IACrC,sDAAyC,CAAA;IACzC,4DAA+C,CAAA;IAC/C,kEAAqD,CAAA;IACrD,kDAAqC,CAAA;IACrC,oDAAuC,CAAA;IACvC,wDAA2C,CAAA;IAC3C,4CAA+B,CAAA;IAC/B,wDAA2C,CAAA;IAC3C,8CAAiC,CAAA;IACjC,2DAA8C,CAAA;IAC9C,8CAAiC,CAAA;IACjC,8DAAiD,CAAA;IACjD,wCAA2B,CAAA;IAC3B,sDAAyC,CAAA;IACzC,gDAAmC,CAAA;IACnC,8DAAiD,CAAA;IACjD,0DAA6C,CAAA;IAC7C,4CAA+B,CAAA;IAC/B,wDAA2C,CAAA;IAC3C,wDAA2C,CAAA;IAC3C,0EAA6D,CAAA;IAC7D,wCAA2B,CAAA;IAC3B,gEAAmD,CAAA;IACnD,wDAA2C,CAAA;IAC3C,8CAAiC,CAAA;IACjC,8DAAiD,CAAA;IACjD,oDAAuC,CAAA;IACvC,gDAAmC,CAAA;IACnC,gEAAmD,CAAA;IACnD,8CAAiC,CAAA;IACjC,kDAAqC,CAAA;IACrC,kDAAqC,CAAA;IACrC,8CAAiC,CAAA;IACjC,wDAA2C,CAAA;IAC3C,gEAAmD,CAAA;IACnD,wDAA2C,CAAA;IAC3C,gDAAmC,CAAA;IACnC,8CAAiC,CAAA;IACjC,8CAAiC,CAAA;IACjC,kDAAqC,CAAA;IACrC,sCAAyB,CAAA;AAC7B,CAAC,EA7CW,SAAS,yBAAT,SAAS,QA6CpB"}
@@ -52,9 +52,15 @@ type UpgradePopup = {
52
52
  type ReferralLinkCopied = {
53
53
  userId: UserId;
54
54
  };
55
+ type RewardButtonClicked = {
56
+ email: string;
57
+ userId: string;
58
+ source: 'note' | 'rewards-button';
59
+ };
55
60
  type RewardInstructionsClicked = {
56
61
  email: string;
57
62
  userId: string;
63
+ type: 'share-template' | 'linkedin' | 'referral' | 'contribute-piece';
58
64
  };
59
65
  type Referral = {
60
66
  referredUserId: UserId;
@@ -97,15 +103,12 @@ export declare enum TelemetryEventName {
97
103
  COPILOT_GENERATED_CODE = "copilot.code.generated",
98
104
  FORMS_VIEWED = "forms.viewed",
99
105
  FORMS_SUBMITTED = "forms.submitted",
100
- REWARDS_BUTTON_CLICKED = "rewards.button.clicked",
101
- REWARDS_NOTE_SHOW_REWARDS_CLICKED = "rewards.note.show.rewards.clicked",
102
- PIECE_REWARD_INSTRUCTIONS_CLICKED = "piece.reward.instructions.clicked",
103
- TEMPLATE_REWARD_INSTRUCTIONS_CLICKED = "template.reward.instructions.clicked",
104
- LINKED_IN_REWARD_CLICKED = "linked.in.reward.clicked"
106
+ REWARDS_OPENED = "rewards.opened",
107
+ REWARDS_INSTRUCTION_CLICKED = "rewards.instructions.clicked"
105
108
  }
106
109
  type BaseTelemetryEvent<T, P> = {
107
110
  name: T;
108
111
  payload: P;
109
112
  };
110
- export type TelemetryEvent = BaseTelemetryEvent<TelemetryEventName.SIGNED_UP, SignedUp> | BaseTelemetryEvent<TelemetryEventName.REFERRAL, Referral> | BaseTelemetryEvent<TelemetryEventName.UPGRADE_CLICKED, UpgradeClicked> | BaseTelemetryEvent<TelemetryEventName.UPGRADE_POPUP, UpgradePopup> | BaseTelemetryEvent<TelemetryEventName.FLOW_RUN_CREATED, RunCreated> | BaseTelemetryEvent<TelemetryEventName.FLOW_PUBLISHED, FlowPublished> | BaseTelemetryEvent<TelemetryEventName.QUOTA_ALERT, QuotaAlert> | BaseTelemetryEvent<TelemetryEventName.CREATED_FLOW, FlowCreated> | BaseTelemetryEvent<TelemetryEventName.TEMPLATE_SEARCH, TemplateSearch> | BaseTelemetryEvent<TelemetryEventName.PIECES_SEARCH, PiecesSearch> | BaseTelemetryEvent<TelemetryEventName.FLOW_IMPORTED, FlowImported> | BaseTelemetryEvent<TelemetryEventName.FLOW_IMPORTED_USING_FILE, FlowImportedUsingFile> | BaseTelemetryEvent<TelemetryEventName.REFERRAL_LINK_COPIED, ReferralLinkCopied> | BaseTelemetryEvent<TelemetryEventName.FLOW_SHARED, FlowShared> | BaseTelemetryEvent<TelemetryEventName.DEMO_IMPORTED, Record<string, never>> | BaseTelemetryEvent<TelemetryEventName.OPENED_PRICING_FROM_DASHBOARD, OpenedFromDasahboard> | BaseTelemetryEvent<TelemetryEventName.COPILOT_GENERATED_CODE, CopilotGeneratedCode> | BaseTelemetryEvent<TelemetryEventName.FORMS_VIEWED, FormsViewed> | BaseTelemetryEvent<TelemetryEventName.FORMS_SUBMITTED, FormsViewed> | BaseTelemetryEvent<TelemetryEventName.REWARDS_BUTTON_CLICKED, RewardInstructionsClicked> | BaseTelemetryEvent<TelemetryEventName.PIECE_REWARD_INSTRUCTIONS_CLICKED, RewardInstructionsClicked> | BaseTelemetryEvent<TelemetryEventName.TEMPLATE_REWARD_INSTRUCTIONS_CLICKED, RewardInstructionsClicked> | BaseTelemetryEvent<TelemetryEventName.LINKED_IN_REWARD_CLICKED, RewardInstructionsClicked> | BaseTelemetryEvent<TelemetryEventName.REWARDS_NOTE_SHOW_REWARDS_CLICKED, RewardInstructionsClicked>;
113
+ export type TelemetryEvent = BaseTelemetryEvent<TelemetryEventName.SIGNED_UP, SignedUp> | BaseTelemetryEvent<TelemetryEventName.REFERRAL, Referral> | BaseTelemetryEvent<TelemetryEventName.UPGRADE_CLICKED, UpgradeClicked> | BaseTelemetryEvent<TelemetryEventName.UPGRADE_POPUP, UpgradePopup> | BaseTelemetryEvent<TelemetryEventName.FLOW_RUN_CREATED, RunCreated> | BaseTelemetryEvent<TelemetryEventName.FLOW_PUBLISHED, FlowPublished> | BaseTelemetryEvent<TelemetryEventName.QUOTA_ALERT, QuotaAlert> | BaseTelemetryEvent<TelemetryEventName.CREATED_FLOW, FlowCreated> | BaseTelemetryEvent<TelemetryEventName.TEMPLATE_SEARCH, TemplateSearch> | BaseTelemetryEvent<TelemetryEventName.PIECES_SEARCH, PiecesSearch> | BaseTelemetryEvent<TelemetryEventName.FLOW_IMPORTED, FlowImported> | BaseTelemetryEvent<TelemetryEventName.FLOW_IMPORTED_USING_FILE, FlowImportedUsingFile> | BaseTelemetryEvent<TelemetryEventName.REFERRAL_LINK_COPIED, ReferralLinkCopied> | BaseTelemetryEvent<TelemetryEventName.FLOW_SHARED, FlowShared> | BaseTelemetryEvent<TelemetryEventName.DEMO_IMPORTED, Record<string, never>> | BaseTelemetryEvent<TelemetryEventName.OPENED_PRICING_FROM_DASHBOARD, OpenedFromDasahboard> | BaseTelemetryEvent<TelemetryEventName.COPILOT_GENERATED_CODE, CopilotGeneratedCode> | BaseTelemetryEvent<TelemetryEventName.FORMS_VIEWED, FormsViewed> | BaseTelemetryEvent<TelemetryEventName.FORMS_SUBMITTED, FormsViewed> | BaseTelemetryEvent<TelemetryEventName.REWARDS_OPENED, RewardButtonClicked> | BaseTelemetryEvent<TelemetryEventName.REWARDS_INSTRUCTION_CLICKED, RewardInstructionsClicked>;
111
114
  export {};
@@ -24,10 +24,7 @@ var TelemetryEventName;
24
24
  TelemetryEventName["COPILOT_GENERATED_CODE"] = "copilot.code.generated";
25
25
  TelemetryEventName["FORMS_VIEWED"] = "forms.viewed";
26
26
  TelemetryEventName["FORMS_SUBMITTED"] = "forms.submitted";
27
- TelemetryEventName["REWARDS_BUTTON_CLICKED"] = "rewards.button.clicked";
28
- TelemetryEventName["REWARDS_NOTE_SHOW_REWARDS_CLICKED"] = "rewards.note.show.rewards.clicked";
29
- TelemetryEventName["PIECE_REWARD_INSTRUCTIONS_CLICKED"] = "piece.reward.instructions.clicked";
30
- TelemetryEventName["TEMPLATE_REWARD_INSTRUCTIONS_CLICKED"] = "template.reward.instructions.clicked";
31
- TelemetryEventName["LINKED_IN_REWARD_CLICKED"] = "linked.in.reward.clicked";
27
+ TelemetryEventName["REWARDS_OPENED"] = "rewards.opened";
28
+ TelemetryEventName["REWARDS_INSTRUCTION_CLICKED"] = "rewards.instructions.clicked";
32
29
  })(TelemetryEventName || (exports.TelemetryEventName = TelemetryEventName = {}));
33
30
  //# sourceMappingURL=telemetry.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"telemetry.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/common/telemetry.ts"],"names":[],"mappings":";;;AAgGA,IAAY,kBA2BX;AA3BD,WAAY,kBAAkB;IAC1B,6CAAuB,CAAA;IACvB,iDAA2B,CAAA;IAC3B,yDAAmC,CAAA;IACnC,sEAAgD,CAAA;IAChD,qDAA+B,CAAA;IAC/B,mDAA6B,CAAA;IAC7B,qDAA+B,CAAA;IAC/B,sDAAgC,CAAA;IAChC,uDAAiC,CAAA;IACjC,2FAA2F;IAC3F,qDAA+B,CAAA;IAC/B,sCAAsC;IACtC,2EAAqD,CAAA;IACrD,qDAA+B,CAAA;IAC/B,2CAAqB,CAAA;IACrB,mEAA6C,CAAA;IAC7C,iDAA2B,CAAA;IAC3B,yDAAmC,CAAA;IACnC,uEAAiD,CAAA;IACjD,mDAA6B,CAAA;IAC7B,yDAAmC,CAAA;IACnC,uEAAiD,CAAA;IACjD,6FAAuE,CAAA;IACvE,6FAAuE,CAAA;IACvE,mGAA6E,CAAA;IAC7E,2EAAqD,CAAA;AACzD,CAAC,EA3BW,kBAAkB,kCAAlB,kBAAkB,QA2B7B"}
1
+ {"version":3,"file":"telemetry.js","sourceRoot":"","sources":["../../../../../../packages/shared/src/lib/common/telemetry.ts"],"names":[],"mappings":";;;AAuGA,IAAY,kBAwBX;AAxBD,WAAY,kBAAkB;IAC1B,6CAAuB,CAAA;IACvB,iDAA2B,CAAA;IAC3B,yDAAmC,CAAA;IACnC,sEAAgD,CAAA;IAChD,qDAA+B,CAAA;IAC/B,mDAA6B,CAAA;IAC7B,qDAA+B,CAAA;IAC/B,sDAAgC,CAAA;IAChC,uDAAiC,CAAA;IACjC,2FAA2F;IAC3F,qDAA+B,CAAA;IAC/B,sCAAsC;IACtC,2EAAqD,CAAA;IACrD,qDAA+B,CAAA;IAC/B,2CAAqB,CAAA;IACrB,mEAA6C,CAAA;IAC7C,iDAA2B,CAAA;IAC3B,yDAAmC,CAAA;IACnC,uEAAiD,CAAA;IACjD,mDAA6B,CAAA;IAC7B,yDAAmC,CAAA;IACnC,uDAAiC,CAAA;IACjC,kFAA4D,CAAA;AAChE,CAAC,EAxBW,kBAAkB,kCAAlB,kBAAkB,QAwB7B"}