@coasy/piece-coasy 0.0.8 → 0.0.9
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 +1 -1
- package/src/index.js +2 -1
- package/src/index.js.map +1 -1
- package/src/lib/triggers/new-funnel-participant.d.ts +3 -3
- package/src/lib/triggers/new-funnel-participant.js +1 -1
- package/src/lib/triggers/new-funnel-participant.js.map +1 -1
- package/src/lib/triggers/new-webinar-participant.d.ts +20 -0
- package/src/lib/triggers/new-webinar-participant.js +55 -0
- package/src/lib/triggers/new-webinar-participant.js.map +1 -0
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -4,6 +4,7 @@ exports.coasy = exports.coasyAuth = void 0;
|
|
|
4
4
|
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
5
5
|
const create_funnel_participant_1 = require("./lib/actions/create-funnel-participant");
|
|
6
6
|
const new_funnel_participant_1 = require("./lib/triggers/new-funnel-participant");
|
|
7
|
+
const new_webinar_participant_1 = require("./lib/triggers/new-webinar-participant");
|
|
7
8
|
exports.coasyAuth = pieces_framework_1.PieceAuth.CustomAuth({
|
|
8
9
|
required: true,
|
|
9
10
|
description: 'Enter coasy authentication details',
|
|
@@ -28,6 +29,6 @@ exports.coasy = (0, pieces_framework_1.createPiece)({
|
|
|
28
29
|
logoUrl: 'https://console.achtsamkeitsakademie.de/favicon/apple-icon.png',
|
|
29
30
|
authors: ["christian-schab"],
|
|
30
31
|
actions: [create_funnel_participant_1.createFunnelParticipant],
|
|
31
|
-
triggers: [new_funnel_participant_1.newFunnelParticipant]
|
|
32
|
+
triggers: [new_funnel_participant_1.newFunnelParticipant, new_webinar_participant_1.newWebinarParticipant]
|
|
32
33
|
});
|
|
33
34
|
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/coasy/src/index.ts"],"names":[],"mappings":";;;AAAA,qEAAkF;AAClF,uFAAkF;AAClF,kFAA6E;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/coasy/src/index.ts"],"names":[],"mappings":";;;AAAA,qEAAkF;AAClF,uFAAkF;AAClF,kFAA6E;AAC7E,oFAA+E;AAElE,QAAA,SAAS,GAAG,4BAAS,CAAC,UAAU,CAAC;IAC5C,QAAQ,EAAE,IAAI;IACd,WAAW,EAAE,oCAAoC;IACjD,KAAK,EAAE;QACL,OAAO,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC1B,WAAW,EAAE,UAAU;YACvB,WAAW,EAAE,oBAAoB;YACjC,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,MAAM,EAAE,4BAAS,CAAC,UAAU,CAAC;YAC3B,WAAW,EAAE,SAAS;YACtB,WAAW,EAAE,mBAAmB;YAChC,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;CACF,CAAC,CAAC;AAEU,QAAA,KAAK,GAAG,IAAA,8BAAW,EAAC;IAC/B,WAAW,EAAE,OAAO;IACpB,IAAI,EAAE,iBAAS;IACf,WAAW,EAAE,wBAAwB;IACrC,uBAAuB,EAAE,QAAQ;IACjC,OAAO,EAAE,gEAAgE;IACzE,OAAO,EAAE,CAAC,iBAAiB,CAAC;IAC5B,OAAO,EAAE,CAAC,mDAAuB,CAAC;IAClC,QAAQ,EAAE,CAAC,6CAAoB,EAAE,+CAAqB,CAAC;CACxD,CAAC,CAAC"}
|
|
@@ -3,15 +3,15 @@ export declare const newFunnelParticipant: import("@activepieces/pieces-framewor
|
|
|
3
3
|
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
4
|
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
5
5
|
}>, {
|
|
6
|
-
|
|
6
|
+
funnelIds: import("@activepieces/pieces-framework").ArrayProperty<false>;
|
|
7
7
|
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
8
8
|
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
9
9
|
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
10
10
|
}>, {
|
|
11
|
-
|
|
11
|
+
funnelIds: import("@activepieces/pieces-framework").ArrayProperty<false>;
|
|
12
12
|
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
13
13
|
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
14
14
|
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
15
15
|
}>, {
|
|
16
|
-
|
|
16
|
+
funnelIds: import("@activepieces/pieces-framework").ArrayProperty<false>;
|
|
17
17
|
}>;
|
|
@@ -12,7 +12,7 @@ exports.newFunnelParticipant = (0, pieces_framework_1.createTrigger)({
|
|
|
12
12
|
displayName: 'New Funnel Participant',
|
|
13
13
|
description: 'Triggers when a new funnel particpant is created',
|
|
14
14
|
props: {
|
|
15
|
-
|
|
15
|
+
funnelIds: pieces_framework_1.Property.Array({
|
|
16
16
|
displayName: 'Funnel IDs',
|
|
17
17
|
description: 'IDs of funnel to react to',
|
|
18
18
|
required: false
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"new-funnel-participant.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/coasy/src/lib/triggers/new-funnel-participant.ts"],"names":[],"mappings":";;;;AAAA,qEAA0F;AAC1F,6BAAkC;AAClC,iDAA6E;AAG7E,MAAM,WAAW,GAAG,wBAAwB,CAAC;AAEhC,QAAA,oBAAoB,GAAG,IAAA,gCAAa,EAAC;IAChD,IAAI,EAAE,aAAS;IACf,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE,wBAAwB;IACrC,WAAW,EAAE,kDAAkD;IAC/D,KAAK,EAAE;QACL,
|
|
1
|
+
{"version":3,"file":"new-funnel-participant.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/coasy/src/lib/triggers/new-funnel-participant.ts"],"names":[],"mappings":";;;;AAAA,qEAA0F;AAC1F,6BAAkC;AAClC,iDAA6E;AAG7E,MAAM,WAAW,GAAG,wBAAwB,CAAC;AAEhC,QAAA,oBAAoB,GAAG,IAAA,gCAAa,EAAC;IAChD,IAAI,EAAE,aAAS;IACf,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE,wBAAwB;IACrC,WAAW,EAAE,kDAAkD;IAC/D,KAAK,EAAE;QACL,SAAS,EAAE,2BAAQ,CAAC,KAAK,CAAC;YACxB,WAAW,EAAE,YAAY;YACzB,WAAW,EAAE,2BAA2B;YACxC,QAAQ,EAAE,KAAK;SAChB,CAAC;KACH;IACD,UAAU,EAAE,EAAE;IACd,IAAI,EAAE,kCAAe,CAAC,OAAO;IAC7B,QAAQ,EAAG,CAAC,OAAO,EAAE,EAAE,CAAC,IAAA,6BAAkB,EAAC;QACzC,WAAW;QACX,UAAU,EAAE,OAAO,CAAC,UAAU;QAC9B,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,MAAM,EAAE,OAAO,CAAC,UAAU;QAC1B,KAAK,EAAE,OAAO,CAAC,KAAK;KACrB,CAAC;IACF,SAAS,EAAG,CAAC,OAAO,EAAE,EAAE,CAAC,IAAA,8BAAmB,EAAC;QAC3C,WAAW;QACX,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,KAAK,EAAE,OAAO,CAAC,KAAK;KACrB,CAAC;IACI,GAAG,CAAC,OAAO;;YACf,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAChC,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { TriggerStrategy } from '@activepieces/pieces-framework';
|
|
2
|
+
export declare const newWebinarParticipant: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
3
|
+
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
+
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
5
|
+
}>, {
|
|
6
|
+
webinarIds: import("@activepieces/pieces-framework").ArrayProperty<false>;
|
|
7
|
+
selectedStartType: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
8
|
+
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
9
|
+
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
10
|
+
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
11
|
+
}>, {
|
|
12
|
+
webinarIds: import("@activepieces/pieces-framework").ArrayProperty<false>;
|
|
13
|
+
selectedStartType: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
14
|
+
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
15
|
+
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
16
|
+
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
17
|
+
}>, {
|
|
18
|
+
webinarIds: import("@activepieces/pieces-framework").ArrayProperty<false>;
|
|
19
|
+
selectedStartType: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
20
|
+
}>;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.newWebinarParticipant = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
+
const __1 = require("../..");
|
|
7
|
+
const triggers_1 = require("../common/triggers");
|
|
8
|
+
const triggerName = "NEW_WEBINAR_PARTICIPANT";
|
|
9
|
+
exports.newWebinarParticipant = (0, pieces_framework_1.createTrigger)({
|
|
10
|
+
auth: __1.coasyAuth,
|
|
11
|
+
name: 'newWebinarParticipant',
|
|
12
|
+
displayName: 'New Webinar Participant',
|
|
13
|
+
description: 'Triggers when a new webinar particpant is created',
|
|
14
|
+
props: {
|
|
15
|
+
webinarIds: pieces_framework_1.Property.Array({
|
|
16
|
+
displayName: 'Webinar IDs',
|
|
17
|
+
description: 'IDs of webinar to react to',
|
|
18
|
+
required: false
|
|
19
|
+
}),
|
|
20
|
+
selectedStartType: pieces_framework_1.Property.StaticDropdown({
|
|
21
|
+
displayName: 'Webinar IDs',
|
|
22
|
+
description: 'IDs of webinar to react to',
|
|
23
|
+
required: false,
|
|
24
|
+
options: {
|
|
25
|
+
options: [{
|
|
26
|
+
label: "Instantly",
|
|
27
|
+
value: "INSTANTLY"
|
|
28
|
+
}, {
|
|
29
|
+
label: "Later",
|
|
30
|
+
value: "LATER"
|
|
31
|
+
}]
|
|
32
|
+
}
|
|
33
|
+
})
|
|
34
|
+
},
|
|
35
|
+
sampleData: {},
|
|
36
|
+
type: pieces_framework_1.TriggerStrategy.WEBHOOK,
|
|
37
|
+
onEnable: (context) => (0, triggers_1.createCoasyTrigger)({
|
|
38
|
+
triggerName,
|
|
39
|
+
webhookUrl: context.webhookUrl,
|
|
40
|
+
auth: context.auth,
|
|
41
|
+
filter: context.propsValue,
|
|
42
|
+
store: context.store
|
|
43
|
+
}),
|
|
44
|
+
onDisable: (context) => (0, triggers_1.destroyCoasyTrigger)({
|
|
45
|
+
triggerName,
|
|
46
|
+
auth: context.auth,
|
|
47
|
+
store: context.store
|
|
48
|
+
}),
|
|
49
|
+
run(context) {
|
|
50
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
51
|
+
return [context.payload.body];
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
//# sourceMappingURL=new-webinar-participant.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"new-webinar-participant.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/coasy/src/lib/triggers/new-webinar-participant.ts"],"names":[],"mappings":";;;;AAAA,qEAA0F;AAC1F,6BAAkC;AAClC,iDAA6E;AAG7E,MAAM,WAAW,GAAG,yBAAyB,CAAC;AAEjC,QAAA,qBAAqB,GAAG,IAAA,gCAAa,EAAC;IACjD,IAAI,EAAE,aAAS;IACf,IAAI,EAAE,uBAAuB;IAC7B,WAAW,EAAE,yBAAyB;IACtC,WAAW,EAAE,mDAAmD;IAChE,KAAK,EAAE;QACL,UAAU,EAAE,2BAAQ,CAAC,KAAK,CAAC;YACzB,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,4BAA4B;YACzC,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,iBAAiB,EAAE,2BAAQ,CAAC,cAAc,CAAC;YACzC,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,4BAA4B;YACzC,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE;gBACP,OAAO,EAAE,CAAC;wBACR,KAAK,EAAE,WAAW;wBAClB,KAAK,EAAE,WAAW;qBACnB,EAAE;wBACD,KAAK,EAAE,OAAO;wBACd,KAAK,EAAE,OAAO;qBACf,CAAC;aACH;SACF,CAAC;KACH;IACD,UAAU,EAAE,EAAE;IACd,IAAI,EAAE,kCAAe,CAAC,OAAO;IAC7B,QAAQ,EAAG,CAAC,OAAO,EAAE,EAAE,CAAC,IAAA,6BAAkB,EAAC;QACzC,WAAW;QACX,UAAU,EAAE,OAAO,CAAC,UAAU;QAC9B,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,MAAM,EAAE,OAAO,CAAC,UAAU;QAC1B,KAAK,EAAE,OAAO,CAAC,KAAK;KACrB,CAAC;IACF,SAAS,EAAG,CAAC,OAAO,EAAE,EAAE,CAAC,IAAA,8BAAmB,EAAC;QAC3C,WAAW;QACX,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,KAAK,EAAE,OAAO,CAAC,KAAK;KACrB,CAAC;IACI,GAAG,CAAC,OAAO;;YACf,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAChC,CAAC;KAAA;CACF,CAAC,CAAC"}
|