@coasy/piece-coasy 0.1.11 → 0.1.12
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/coasy-piece-coasy-0.1.12.tgz +0 -0
- package/package.json +1 -1
- package/src/index.js +0 -8
- package/src/index.js.map +1 -1
- package/src/lib/actions/create-event-participant.d.ts +3 -0
- package/src/lib/actions/create-event-participant.js +16 -0
- package/src/lib/actions/create-event-participant.js.map +1 -1
- package/src/lib/triggers/new-webinar-participant.js +4 -8
- package/src/lib/triggers/new-webinar-participant.js.map +1 -1
- package/src/lib/triggers/webinar-participant-attend.d.ts +3 -3
- package/src/lib/triggers/webinar-participant-attend.js +9 -13
- package/src/lib/triggers/webinar-participant-attend.js.map +1 -1
- package/src/lib/triggers/webinar-participant-reminder.d.ts +3 -3
- package/src/lib/triggers/webinar-participant-reminder.js +9 -13
- package/src/lib/triggers/webinar-participant-reminder.js.map +1 -1
- package/src/lib/triggers/get-events.d.ts +0 -11
- package/src/lib/triggers/get-events.js +0 -39
- package/src/lib/triggers/get-events.js.map +0 -1
- package/src/lib/triggers/new-app-user-sign-up.d.ts +0 -11
- package/src/lib/triggers/new-app-user-sign-up.js +0 -39
- package/src/lib/triggers/new-app-user-sign-up.js.map +0 -1
- package/src/lib/triggers/new-event-participant.d.ts +0 -20
- package/src/lib/triggers/new-event-participant.js +0 -50
- package/src/lib/triggers/new-event-participant.js.map +0 -1
- package/src/lib/triggers/new-lead.d.ts +0 -17
- package/src/lib/triggers/new-lead.js +0 -45
- package/src/lib/triggers/new-lead.js.map +0 -1
|
Binary file
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -12,13 +12,9 @@ const cancelled_order_1 = require("./lib/triggers/cancelled-order");
|
|
|
12
12
|
const cancelled_order_item_1 = require("./lib/triggers/cancelled-order-item");
|
|
13
13
|
const cancelled_orderprocess_1 = require("./lib/triggers/cancelled-orderprocess");
|
|
14
14
|
const cancelled_subscription_1 = require("./lib/triggers/cancelled-subscription");
|
|
15
|
-
const get_events_1 = require("./lib/triggers/get-events");
|
|
16
|
-
const new_app_user_sign_up_1 = require("./lib/triggers/new-app-user-sign-up");
|
|
17
15
|
const new_auth_event_1 = require("./lib/triggers/new-auth-event");
|
|
18
16
|
const new_customer_1 = require("./lib/triggers/new-customer");
|
|
19
|
-
const new_event_participant_1 = require("./lib/triggers/new-event-participant");
|
|
20
17
|
const new_funnel_participant_1 = require("./lib/triggers/new-funnel-participant");
|
|
21
|
-
const new_lead_1 = require("./lib/triggers/new-lead");
|
|
22
18
|
const new_membership_1 = require("./lib/triggers/new-membership");
|
|
23
19
|
const new_order_1 = require("./lib/triggers/new-order");
|
|
24
20
|
const new_order_item_1 = require("./lib/triggers/new-order-item");
|
|
@@ -63,13 +59,9 @@ exports.coasy = (0, pieces_framework_1.createPiece)({
|
|
|
63
59
|
cancelled_order_item_1.cancelledOrderItem,
|
|
64
60
|
cancelled_orderprocess_1.cancelledOrderprocess,
|
|
65
61
|
cancelled_subscription_1.cancelledSubscription,
|
|
66
|
-
get_events_1.getEvents,
|
|
67
|
-
new_app_user_sign_up_1.newAppUserSignUp,
|
|
68
62
|
new_auth_event_1.newAuthEvent,
|
|
69
63
|
new_customer_1.newCustomer,
|
|
70
|
-
new_event_participant_1.newEventParticipant,
|
|
71
64
|
new_funnel_participant_1.newFunnelParticipant,
|
|
72
|
-
new_lead_1.newLead,
|
|
73
65
|
new_membership_1.newMembership,
|
|
74
66
|
new_order_1.newOrder,
|
|
75
67
|
new_order_item_1.newOrderItem,
|
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,qEAIwC;AACxC,qFAAgF;AAChF,uFAAkF;AAClF,iEAA6D;AAC7D,yEAAoE;AACpE,yDAAqD;AACrD,8EAA0E;AAC1E,oEAAgE;AAChE,8EAAyE;AACzE,kFAA8E;AAC9E,kFAA8E;AAC9E,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/pieces/community/coasy/src/index.ts"],"names":[],"mappings":";;;AAAA,qEAIwC;AACxC,qFAAgF;AAChF,uFAAkF;AAClF,iEAA6D;AAC7D,yEAAoE;AACpE,yDAAqD;AACrD,8EAA0E;AAC1E,oEAAgE;AAChE,8EAAyE;AACzE,kFAA8E;AAC9E,kFAA8E;AAC9E,kEAA6D;AAC7D,8DAA0D;AAC1D,kFAA6E;AAC7E,kEAA8D;AAC9D,wDAAoD;AACpD,kEAA6D;AAC7D,sEAAkE;AAClE,oFAA+E;AAC/E,0FAAqF;AACrF,8FAAyF;AAE5E,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,KAAK;YACf,YAAY,EAAE,mCAAmC;SAClD,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,iDAAiD;IAC1D,OAAO,EAAE,CAAC,iBAAiB,CAAC;IAC5B,OAAO,EAAE;QACP,iDAAsB;QACtB,mDAAuB;QACvB,8BAAa;QACb,qCAAgB;QAChB,sBAAS;KACV;IACD,QAAQ,EAAE;QACR,0CAAmB;QACnB,gCAAc;QACd,yCAAkB;QAClB,8CAAqB;QACrB,8CAAqB;QACrB,6BAAY;QACZ,0BAAW;QACX,6CAAoB;QACpB,8BAAa;QACb,oBAAQ;QACR,6BAAY;QACZ,kCAAe;QACf,+CAAqB;QACrB,qDAAwB;QACxB,yDAA0B;KAC3B;CACF,CAAC,CAAC"}
|
|
@@ -3,5 +3,8 @@ export declare const createEventParticipant: import("@activepieces/pieces-framew
|
|
|
3
3
|
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
4
4
|
}>, {
|
|
5
5
|
eventId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
6
|
+
customerId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
7
|
+
contact: import("@activepieces/pieces-framework").ObjectProperty<true>;
|
|
6
8
|
eventCategoryId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
9
|
+
price: import("@activepieces/pieces-framework").ObjectProperty<false>;
|
|
7
10
|
}>;
|
|
@@ -16,11 +16,27 @@ exports.createEventParticipant = (0, pieces_framework_1.createAction)({
|
|
|
16
16
|
description: 'ID of event',
|
|
17
17
|
required: true,
|
|
18
18
|
}),
|
|
19
|
+
customerId: pieces_framework_1.Property.ShortText({
|
|
20
|
+
displayName: 'Customer ID',
|
|
21
|
+
description: 'ID of customer',
|
|
22
|
+
required: true,
|
|
23
|
+
}),
|
|
24
|
+
contact: pieces_framework_1.Property.Object({
|
|
25
|
+
displayName: 'Contact',
|
|
26
|
+
description: 'Contact object: {firstName: string}',
|
|
27
|
+
required: true,
|
|
28
|
+
}),
|
|
19
29
|
eventCategoryId: pieces_framework_1.Property.ShortText({
|
|
20
30
|
displayName: 'Category ID',
|
|
21
31
|
description: 'ID of category',
|
|
22
32
|
required: true,
|
|
23
33
|
}),
|
|
34
|
+
price: pieces_framework_1.Property.Object({
|
|
35
|
+
displayName: 'Price',
|
|
36
|
+
description: 'Price object: {grossMicros: number, netMicros: number, vatRateMicros: number, vatCountry: number}',
|
|
37
|
+
required: false,
|
|
38
|
+
defaultValue: {},
|
|
39
|
+
}),
|
|
24
40
|
},
|
|
25
41
|
run: (configValue) => (0, actions_1.runCoasyAction)(configValue, name),
|
|
26
42
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-event-participant.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/coasy/src/lib/actions/create-event-participant.ts"],"names":[],"mappings":";;;AAAA,qEAAwE;AACxE,6BAAkC;AAClC,+CAAmD;AAEnD,MAAM,IAAI,GAAG,wBAAwB,CAAC;AAEzB,QAAA,sBAAsB,GAAG,IAAA,+BAAY,EAAC;IACjD,IAAI,EAAE,aAAS;IACf,IAAI;IACJ,WAAW,EAAE,0BAA0B;IACvC,WAAW,EAAE,iCAAiC;IAC9C,KAAK,EAAE;QACL,OAAO,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC1B,WAAW,EAAE,UAAU;YACvB,WAAW,EAAE,aAAa;YAC1B,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,eAAe,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAClC,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,gBAAgB;YAC7B,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACD,GAAG,EAAE,CAAC,WAAW,EAAE,EAAE,CAAC,IAAA,wBAAc,EAAC,WAAW,EAAE,IAAI,CAAC;CACxD,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"create-event-participant.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/coasy/src/lib/actions/create-event-participant.ts"],"names":[],"mappings":";;;AAAA,qEAAwE;AACxE,6BAAkC;AAClC,+CAAmD;AAEnD,MAAM,IAAI,GAAG,wBAAwB,CAAC;AAEzB,QAAA,sBAAsB,GAAG,IAAA,+BAAY,EAAC;IACjD,IAAI,EAAE,aAAS;IACf,IAAI;IACJ,WAAW,EAAE,0BAA0B;IACvC,WAAW,EAAE,iCAAiC;IAC9C,KAAK,EAAE;QACL,OAAO,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC1B,WAAW,EAAE,UAAU;YACvB,WAAW,EAAE,aAAa;YAC1B,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,UAAU,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,gBAAgB;YAC7B,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,OAAO,EAAE,2BAAQ,CAAC,MAAM,CAAC;YACvB,WAAW,EAAE,SAAS;YACtB,WAAW,EAAE,qCAAqC;YAClD,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,eAAe,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAClC,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,gBAAgB;YAC7B,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,KAAK,EAAE,2BAAQ,CAAC,MAAM,CAAC;YACrB,WAAW,EAAE,OAAO;YACpB,WAAW,EACT,mGAAmG;YACrG,QAAQ,EAAE,KAAK;YACf,YAAY,EAAE,EAAE;SACjB,CAAC;KACH;IACD,GAAG,EAAE,CAAC,WAAW,EAAE,EAAE,CAAC,IAAA,wBAAc,EAAC,WAAW,EAAE,IAAI,CAAC;CACxD,CAAC,CAAC"}
|
|
@@ -24,16 +24,12 @@ exports.newWebinarParticipant = (0, pieces_framework_1.createTrigger)({
|
|
|
24
24
|
options: {
|
|
25
25
|
options: [
|
|
26
26
|
{
|
|
27
|
-
label: '
|
|
28
|
-
value: '
|
|
27
|
+
label: 'Later',
|
|
28
|
+
value: 'LATER',
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
|
-
label: '
|
|
32
|
-
value: '
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
label: 'Not Attended',
|
|
36
|
-
value: 'NOT_ATTENDED',
|
|
31
|
+
label: 'Instantly',
|
|
32
|
+
value: 'INSTANTLY',
|
|
37
33
|
},
|
|
38
34
|
],
|
|
39
35
|
},
|
|
@@ -1 +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,qEAIwC;AACxC,6BAAkC;AAClC,iDAI4B;AAE5B,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,qBAAqB;YAClC,WAAW,EAAE,gCAAgC;YAC7C,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE;gBACP,OAAO,EAAE;oBACP;wBACE,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"new-webinar-participant.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/coasy/src/lib/triggers/new-webinar-participant.ts"],"names":[],"mappings":";;;;AAAA,qEAIwC;AACxC,6BAAkC;AAClC,iDAI4B;AAE5B,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,qBAAqB;YAClC,WAAW,EAAE,gCAAgC;YAC7C,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE;gBACP,OAAO,EAAE;oBACP;wBACE,KAAK,EAAE,OAAO;wBACd,KAAK,EAAE,OAAO;qBACf;oBACD;wBACE,KAAK,EAAE,WAAW;wBAClB,KAAK,EAAE,WAAW;qBACnB;iBACF;aACF;SACF,CAAC;KACH;IACD,UAAU,EAAE,EAAE;IACd,IAAI,EAAE,kCAAe,CAAC,OAAO;IAC7B,QAAQ,EAAE,CAAC,OAAO,EAAE,EAAE,CACpB,IAAA,6BAAkB,EAAC;QACjB,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;IACJ,SAAS,EAAE,CAAC,OAAO,EAAE,EAAE,CACrB,IAAA,8BAAmB,EAAC;QAClB,WAAW;QACX,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,KAAK,EAAE,OAAO,CAAC,KAAK;KACrB,CAAC;IACJ,IAAI,EAAE,CAAC,OAAO,EAAE,EAAE,CAChB,IAAA,2BAAgB,EAAC;QACf,WAAW;QACX,IAAI,EAAE,OAAO,CAAC,IAAI;KACnB,CAAC;IACE,GAAG,CAAC,OAAO;;YACf,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAChC,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -3,18 +3,18 @@ export declare const webinarParticipantAttend: import("@activepieces/pieces-fram
|
|
|
3
3
|
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
4
4
|
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
5
5
|
}>, {
|
|
6
|
-
selectedStartType: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
7
6
|
webinarIds: import("@activepieces/pieces-framework").ArrayProperty<false>;
|
|
7
|
+
selectedStartType: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
8
8
|
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
9
9
|
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
10
10
|
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
11
11
|
}>, {
|
|
12
|
-
selectedStartType: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
13
12
|
webinarIds: import("@activepieces/pieces-framework").ArrayProperty<false>;
|
|
13
|
+
selectedStartType: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
14
14
|
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
15
15
|
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
16
16
|
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
17
17
|
}>, {
|
|
18
|
-
selectedStartType: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
19
18
|
webinarIds: import("@activepieces/pieces-framework").ArrayProperty<false>;
|
|
19
|
+
selectedStartType: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
20
20
|
}>;
|
|
@@ -12,6 +12,11 @@ exports.webinarParticipantAttend = (0, pieces_framework_1.createTrigger)({
|
|
|
12
12
|
displayName: 'Webinar Participant Attend',
|
|
13
13
|
description: 'Triggers when a webinar participant has attended or not attended',
|
|
14
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
|
+
}),
|
|
15
20
|
selectedStartType: pieces_framework_1.Property.StaticDropdown({
|
|
16
21
|
displayName: 'Selected start type',
|
|
17
22
|
description: 'filter only those participants',
|
|
@@ -19,25 +24,16 @@ exports.webinarParticipantAttend = (0, pieces_framework_1.createTrigger)({
|
|
|
19
24
|
options: {
|
|
20
25
|
options: [
|
|
21
26
|
{
|
|
22
|
-
label: '
|
|
23
|
-
value: '
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
label: 'Attended',
|
|
27
|
-
value: 'ATTENDED',
|
|
27
|
+
label: 'Later',
|
|
28
|
+
value: 'LATER',
|
|
28
29
|
},
|
|
29
30
|
{
|
|
30
|
-
label: '
|
|
31
|
-
value: '
|
|
31
|
+
label: 'Instantly',
|
|
32
|
+
value: 'INSTANTLY',
|
|
32
33
|
},
|
|
33
34
|
],
|
|
34
35
|
},
|
|
35
36
|
}),
|
|
36
|
-
webinarIds: pieces_framework_1.Property.Array({
|
|
37
|
-
displayName: 'Webinar IDs',
|
|
38
|
-
description: 'IDs of webinar to react to',
|
|
39
|
-
required: false,
|
|
40
|
-
}),
|
|
41
37
|
},
|
|
42
38
|
sampleData: {},
|
|
43
39
|
type: pieces_framework_1.TriggerStrategy.WEBHOOK,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webinar-participant-attend.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/coasy/src/lib/triggers/webinar-participant-attend.ts"],"names":[],"mappings":";;;;AAAA,qEAIwC;AACxC,6BAAkC;AAClC,iDAI4B;AAE5B,MAAM,WAAW,GAAG,4BAA4B,CAAC;AAEpC,QAAA,wBAAwB,GAAG,IAAA,gCAAa,EAAC;IACpD,IAAI,EAAE,aAAS;IACf,IAAI,EAAE,0BAA0B;IAChC,WAAW,EAAE,4BAA4B;IACzC,WAAW,EACT,kEAAkE;IACpE,KAAK,EAAE;QACL,iBAAiB,EAAE,2BAAQ,CAAC,cAAc,CAAC;YACzC,WAAW,EAAE,qBAAqB;YAClC,WAAW,EAAE,gCAAgC;YAC7C,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE;gBACP,OAAO,EAAE;oBACP;wBACE,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"webinar-participant-attend.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/coasy/src/lib/triggers/webinar-participant-attend.ts"],"names":[],"mappings":";;;;AAAA,qEAIwC;AACxC,6BAAkC;AAClC,iDAI4B;AAE5B,MAAM,WAAW,GAAG,4BAA4B,CAAC;AAEpC,QAAA,wBAAwB,GAAG,IAAA,gCAAa,EAAC;IACpD,IAAI,EAAE,aAAS;IACf,IAAI,EAAE,0BAA0B;IAChC,WAAW,EAAE,4BAA4B;IACzC,WAAW,EACT,kEAAkE;IACpE,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,qBAAqB;YAClC,WAAW,EAAE,gCAAgC;YAC7C,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE;gBACP,OAAO,EAAE;oBACP;wBACE,KAAK,EAAE,OAAO;wBACd,KAAK,EAAE,OAAO;qBACf;oBACD;wBACE,KAAK,EAAE,WAAW;wBAClB,KAAK,EAAE,WAAW;qBACnB;iBACF;aACF;SACF,CAAC;KACH;IACD,UAAU,EAAE,EAAE;IACd,IAAI,EAAE,kCAAe,CAAC,OAAO;IAC7B,QAAQ,EAAE,CAAC,OAAO,EAAE,EAAE,CACpB,IAAA,6BAAkB,EAAC;QACjB,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;IACJ,SAAS,EAAE,CAAC,OAAO,EAAE,EAAE,CACrB,IAAA,8BAAmB,EAAC;QAClB,WAAW;QACX,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,KAAK,EAAE,OAAO,CAAC,KAAK;KACrB,CAAC;IACJ,IAAI,EAAE,CAAC,OAAO,EAAE,EAAE,CAChB,IAAA,2BAAgB,EAAC;QACf,WAAW;QACX,IAAI,EAAE,OAAO,CAAC,IAAI;KACnB,CAAC;IACE,GAAG,CAAC,OAAO;;YACf,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAChC,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -3,18 +3,18 @@ export declare const webinarParticipantReminder: import("@activepieces/pieces-fr
|
|
|
3
3
|
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
4
4
|
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
5
5
|
}>, {
|
|
6
|
-
selectedStartType: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
7
6
|
webinarIds: import("@activepieces/pieces-framework").ArrayProperty<false>;
|
|
7
|
+
selectedStartType: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
8
8
|
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
9
9
|
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
10
10
|
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
11
11
|
}>, {
|
|
12
|
-
selectedStartType: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
13
12
|
webinarIds: import("@activepieces/pieces-framework").ArrayProperty<false>;
|
|
13
|
+
selectedStartType: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
14
14
|
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
15
15
|
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
16
16
|
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
17
17
|
}>, {
|
|
18
|
-
selectedStartType: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
19
18
|
webinarIds: import("@activepieces/pieces-framework").ArrayProperty<false>;
|
|
19
|
+
selectedStartType: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
20
20
|
}>;
|
|
@@ -12,6 +12,11 @@ exports.webinarParticipantReminder = (0, pieces_framework_1.createTrigger)({
|
|
|
12
12
|
displayName: 'Webinar Participant Reminder',
|
|
13
13
|
description: 'Triggers when a webinar participant is reminded',
|
|
14
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
|
+
}),
|
|
15
20
|
selectedStartType: pieces_framework_1.Property.StaticDropdown({
|
|
16
21
|
displayName: 'Selected start type',
|
|
17
22
|
description: 'filter only those participants',
|
|
@@ -19,25 +24,16 @@ exports.webinarParticipantReminder = (0, pieces_framework_1.createTrigger)({
|
|
|
19
24
|
options: {
|
|
20
25
|
options: [
|
|
21
26
|
{
|
|
22
|
-
label: '
|
|
23
|
-
value: '
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
label: 'Attended',
|
|
27
|
-
value: 'ATTENDED',
|
|
27
|
+
label: 'Later',
|
|
28
|
+
value: 'LATER',
|
|
28
29
|
},
|
|
29
30
|
{
|
|
30
|
-
label: '
|
|
31
|
-
value: '
|
|
31
|
+
label: 'Instantly',
|
|
32
|
+
value: 'INSTANTLY',
|
|
32
33
|
},
|
|
33
34
|
],
|
|
34
35
|
},
|
|
35
36
|
}),
|
|
36
|
-
webinarIds: pieces_framework_1.Property.Array({
|
|
37
|
-
displayName: 'Webinar IDs',
|
|
38
|
-
description: 'IDs of webinar to react to',
|
|
39
|
-
required: false,
|
|
40
|
-
}),
|
|
41
37
|
},
|
|
42
38
|
sampleData: {},
|
|
43
39
|
type: pieces_framework_1.TriggerStrategy.WEBHOOK,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webinar-participant-reminder.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/coasy/src/lib/triggers/webinar-participant-reminder.ts"],"names":[],"mappings":";;;;AAAA,qEAIwC;AACxC,6BAAkC;AAClC,iDAI4B;AAE5B,MAAM,WAAW,GAAG,8BAA8B,CAAC;AAEtC,QAAA,0BAA0B,GAAG,IAAA,gCAAa,EAAC;IACtD,IAAI,EAAE,aAAS;IACf,IAAI,EAAE,4BAA4B;IAClC,WAAW,EAAE,8BAA8B;IAC3C,WAAW,EAAE,iDAAiD;IAC9D,KAAK,EAAE;QACL,iBAAiB,EAAE,2BAAQ,CAAC,cAAc,CAAC;YACzC,WAAW,EAAE,qBAAqB;YAClC,WAAW,EAAE,gCAAgC;YAC7C,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE;gBACP,OAAO,EAAE;oBACP;wBACE,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"webinar-participant-reminder.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/coasy/src/lib/triggers/webinar-participant-reminder.ts"],"names":[],"mappings":";;;;AAAA,qEAIwC;AACxC,6BAAkC;AAClC,iDAI4B;AAE5B,MAAM,WAAW,GAAG,8BAA8B,CAAC;AAEtC,QAAA,0BAA0B,GAAG,IAAA,gCAAa,EAAC;IACtD,IAAI,EAAE,aAAS;IACf,IAAI,EAAE,4BAA4B;IAClC,WAAW,EAAE,8BAA8B;IAC3C,WAAW,EAAE,iDAAiD;IAC9D,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,qBAAqB;YAClC,WAAW,EAAE,gCAAgC;YAC7C,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE;gBACP,OAAO,EAAE;oBACP;wBACE,KAAK,EAAE,OAAO;wBACd,KAAK,EAAE,OAAO;qBACf;oBACD;wBACE,KAAK,EAAE,WAAW;wBAClB,KAAK,EAAE,WAAW;qBACnB;iBACF;aACF;SACF,CAAC;KACH;IACD,UAAU,EAAE,EAAE;IACd,IAAI,EAAE,kCAAe,CAAC,OAAO;IAC7B,QAAQ,EAAE,CAAC,OAAO,EAAE,EAAE,CACpB,IAAA,6BAAkB,EAAC;QACjB,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;IACJ,SAAS,EAAE,CAAC,OAAO,EAAE,EAAE,CACrB,IAAA,8BAAmB,EAAC;QAClB,WAAW;QACX,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,KAAK,EAAE,OAAO,CAAC,KAAK;KACrB,CAAC;IACJ,IAAI,EAAE,CAAC,OAAO,EAAE,EAAE,CAChB,IAAA,2BAAgB,EAAC;QACf,WAAW;QACX,IAAI,EAAE,OAAO,CAAC,IAAI;KACnB,CAAC;IACE,GAAG,CAAC,OAAO;;YACf,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAChC,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { TriggerStrategy } from '@activepieces/pieces-framework';
|
|
2
|
-
export declare const getEvents: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
3
|
-
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
4
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
5
|
-
}>, {}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
6
|
-
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
7
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
8
|
-
}>, {}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
9
|
-
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
10
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
11
|
-
}>, {}>;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getEvents = 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 = 'GET_EVENTS';
|
|
9
|
-
exports.getEvents = (0, pieces_framework_1.createTrigger)({
|
|
10
|
-
auth: __1.coasyAuth,
|
|
11
|
-
name: 'getEvents',
|
|
12
|
-
displayName: 'Get Events',
|
|
13
|
-
description: 'Get a list of all events.',
|
|
14
|
-
props: {},
|
|
15
|
-
sampleData: {},
|
|
16
|
-
type: pieces_framework_1.TriggerStrategy.WEBHOOK,
|
|
17
|
-
onEnable: (context) => (0, triggers_1.createCoasyTrigger)({
|
|
18
|
-
triggerName,
|
|
19
|
-
webhookUrl: context.webhookUrl,
|
|
20
|
-
auth: context.auth,
|
|
21
|
-
filter: context.propsValue,
|
|
22
|
-
store: context.store,
|
|
23
|
-
}),
|
|
24
|
-
onDisable: (context) => (0, triggers_1.destroyCoasyTrigger)({
|
|
25
|
-
triggerName,
|
|
26
|
-
auth: context.auth,
|
|
27
|
-
store: context.store,
|
|
28
|
-
}),
|
|
29
|
-
test: (context) => (0, triggers_1.testCoasyTrigger)({
|
|
30
|
-
triggerName,
|
|
31
|
-
auth: context.auth,
|
|
32
|
-
}),
|
|
33
|
-
run(context) {
|
|
34
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
35
|
-
return [context.payload.body];
|
|
36
|
-
});
|
|
37
|
-
},
|
|
38
|
-
});
|
|
39
|
-
//# sourceMappingURL=get-events.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-events.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/coasy/src/lib/triggers/get-events.ts"],"names":[],"mappings":";;;;AAAA,qEAAgF;AAChF,6BAAkC;AAClC,iDAI4B;AAE5B,MAAM,WAAW,GAAG,YAAY,CAAC;AAEpB,QAAA,SAAS,GAAG,IAAA,gCAAa,EAAC;IACrC,IAAI,EAAE,aAAS;IACf,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,YAAY;IACzB,WAAW,EAAE,2BAA2B;IACxC,KAAK,EAAE,EAAE;IACT,UAAU,EAAE,EAAE;IACd,IAAI,EAAE,kCAAe,CAAC,OAAO;IAC7B,QAAQ,EAAE,CAAC,OAAO,EAAE,EAAE,CACpB,IAAA,6BAAkB,EAAC;QACjB,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;IACJ,SAAS,EAAE,CAAC,OAAO,EAAE,EAAE,CACrB,IAAA,8BAAmB,EAAC;QAClB,WAAW;QACX,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,KAAK,EAAE,OAAO,CAAC,KAAK;KACrB,CAAC;IACJ,IAAI,EAAE,CAAC,OAAO,EAAE,EAAE,CAChB,IAAA,2BAAgB,EAAC;QACf,WAAW;QACX,IAAI,EAAE,OAAO,CAAC,IAAI;KACnB,CAAC;IACE,GAAG,CAAC,OAAO;;YACf,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAChC,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { TriggerStrategy } from '@activepieces/pieces-framework';
|
|
2
|
-
export declare const newAppUserSignUp: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
3
|
-
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
4
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
5
|
-
}>, {}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
6
|
-
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
7
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
8
|
-
}>, {}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
9
|
-
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
10
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
11
|
-
}>, {}>;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.newAppUserSignUp = 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_APP_USER_SIGN_UP';
|
|
9
|
-
exports.newAppUserSignUp = (0, pieces_framework_1.createTrigger)({
|
|
10
|
-
auth: __1.coasyAuth,
|
|
11
|
-
name: 'newAppUserSignUp',
|
|
12
|
-
displayName: 'New App User Sign Up',
|
|
13
|
-
description: 'Triggers when a new app user sign up.',
|
|
14
|
-
props: {},
|
|
15
|
-
sampleData: {},
|
|
16
|
-
type: pieces_framework_1.TriggerStrategy.WEBHOOK,
|
|
17
|
-
onEnable: (context) => (0, triggers_1.createCoasyTrigger)({
|
|
18
|
-
triggerName,
|
|
19
|
-
webhookUrl: context.webhookUrl,
|
|
20
|
-
auth: context.auth,
|
|
21
|
-
filter: context.propsValue,
|
|
22
|
-
store: context.store,
|
|
23
|
-
}),
|
|
24
|
-
onDisable: (context) => (0, triggers_1.destroyCoasyTrigger)({
|
|
25
|
-
triggerName,
|
|
26
|
-
auth: context.auth,
|
|
27
|
-
store: context.store,
|
|
28
|
-
}),
|
|
29
|
-
test: (context) => (0, triggers_1.testCoasyTrigger)({
|
|
30
|
-
triggerName,
|
|
31
|
-
auth: context.auth,
|
|
32
|
-
}),
|
|
33
|
-
run(context) {
|
|
34
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
35
|
-
return [context.payload.body];
|
|
36
|
-
});
|
|
37
|
-
},
|
|
38
|
-
});
|
|
39
|
-
//# sourceMappingURL=new-app-user-sign-up.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"new-app-user-sign-up.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/coasy/src/lib/triggers/new-app-user-sign-up.ts"],"names":[],"mappings":";;;;AAAA,qEAAgF;AAChF,6BAAkC;AAClC,iDAI4B;AAE5B,MAAM,WAAW,GAAG,sBAAsB,CAAC;AAE9B,QAAA,gBAAgB,GAAG,IAAA,gCAAa,EAAC;IAC5C,IAAI,EAAE,aAAS;IACf,IAAI,EAAE,kBAAkB;IACxB,WAAW,EAAE,sBAAsB;IACnC,WAAW,EAAE,uCAAuC;IACpD,KAAK,EAAE,EAAE;IACT,UAAU,EAAE,EAAE;IACd,IAAI,EAAE,kCAAe,CAAC,OAAO;IAC7B,QAAQ,EAAE,CAAC,OAAO,EAAE,EAAE,CACpB,IAAA,6BAAkB,EAAC;QACjB,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;IACJ,SAAS,EAAE,CAAC,OAAO,EAAE,EAAE,CACrB,IAAA,8BAAmB,EAAC;QAClB,WAAW;QACX,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,KAAK,EAAE,OAAO,CAAC,KAAK;KACrB,CAAC;IACJ,IAAI,EAAE,CAAC,OAAO,EAAE,EAAE,CAChB,IAAA,2BAAgB,EAAC;QACf,WAAW;QACX,IAAI,EAAE,OAAO,CAAC,IAAI;KACnB,CAAC;IACE,GAAG,CAAC,OAAO;;YACf,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAChC,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { TriggerStrategy } from '@activepieces/pieces-framework';
|
|
2
|
-
export declare const newEventParticipant: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
3
|
-
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
4
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
5
|
-
}>, {
|
|
6
|
-
eventIds: import("@activepieces/pieces-framework").ArrayProperty<false>;
|
|
7
|
-
eventTypeIds: import("@activepieces/pieces-framework").ArrayProperty<false>;
|
|
8
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
9
|
-
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
10
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
11
|
-
}>, {
|
|
12
|
-
eventIds: import("@activepieces/pieces-framework").ArrayProperty<false>;
|
|
13
|
-
eventTypeIds: import("@activepieces/pieces-framework").ArrayProperty<false>;
|
|
14
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
15
|
-
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
16
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
17
|
-
}>, {
|
|
18
|
-
eventIds: import("@activepieces/pieces-framework").ArrayProperty<false>;
|
|
19
|
-
eventTypeIds: import("@activepieces/pieces-framework").ArrayProperty<false>;
|
|
20
|
-
}>;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.newEventParticipant = 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_EVENT_PARTICIPANT';
|
|
9
|
-
exports.newEventParticipant = (0, pieces_framework_1.createTrigger)({
|
|
10
|
-
auth: __1.coasyAuth,
|
|
11
|
-
name: 'newEventParticipant',
|
|
12
|
-
displayName: 'New Event Participant',
|
|
13
|
-
description: 'Triggers when a new Event Participant is created.',
|
|
14
|
-
props: {
|
|
15
|
-
eventIds: pieces_framework_1.Property.Array({
|
|
16
|
-
displayName: 'Event IDs',
|
|
17
|
-
description: 'IDs of events to react to',
|
|
18
|
-
required: false,
|
|
19
|
-
}),
|
|
20
|
-
eventTypeIds: pieces_framework_1.Property.Array({
|
|
21
|
-
displayName: 'Event Type IDs',
|
|
22
|
-
description: 'IDs of event types to react to',
|
|
23
|
-
required: false,
|
|
24
|
-
}),
|
|
25
|
-
},
|
|
26
|
-
sampleData: {},
|
|
27
|
-
type: pieces_framework_1.TriggerStrategy.WEBHOOK,
|
|
28
|
-
onEnable: (context) => (0, triggers_1.createCoasyTrigger)({
|
|
29
|
-
triggerName,
|
|
30
|
-
webhookUrl: context.webhookUrl,
|
|
31
|
-
auth: context.auth,
|
|
32
|
-
filter: context.propsValue,
|
|
33
|
-
store: context.store,
|
|
34
|
-
}),
|
|
35
|
-
onDisable: (context) => (0, triggers_1.destroyCoasyTrigger)({
|
|
36
|
-
triggerName,
|
|
37
|
-
auth: context.auth,
|
|
38
|
-
store: context.store,
|
|
39
|
-
}),
|
|
40
|
-
test: (context) => (0, triggers_1.testCoasyTrigger)({
|
|
41
|
-
triggerName,
|
|
42
|
-
auth: context.auth,
|
|
43
|
-
}),
|
|
44
|
-
run(context) {
|
|
45
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
46
|
-
return [context.payload.body];
|
|
47
|
-
});
|
|
48
|
-
},
|
|
49
|
-
});
|
|
50
|
-
//# sourceMappingURL=new-event-participant.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"new-event-participant.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/coasy/src/lib/triggers/new-event-participant.ts"],"names":[],"mappings":";;;;AAAA,qEAIwC;AACxC,6BAAkC;AAClC,iDAI4B;AAE5B,MAAM,WAAW,GAAG,uBAAuB,CAAC;AAE/B,QAAA,mBAAmB,GAAG,IAAA,gCAAa,EAAC;IAC/C,IAAI,EAAE,aAAS;IACf,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE,uBAAuB;IACpC,WAAW,EAAE,mDAAmD;IAChE,KAAK,EAAE;QACL,QAAQ,EAAE,2BAAQ,CAAC,KAAK,CAAC;YACvB,WAAW,EAAE,WAAW;YACxB,WAAW,EAAE,2BAA2B;YACxC,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,YAAY,EAAE,2BAAQ,CAAC,KAAK,CAAC;YAC3B,WAAW,EAAE,gBAAgB;YAC7B,WAAW,EAAE,gCAAgC;YAC7C,QAAQ,EAAE,KAAK;SAChB,CAAC;KACH;IACD,UAAU,EAAE,EAAE;IACd,IAAI,EAAE,kCAAe,CAAC,OAAO;IAC7B,QAAQ,EAAE,CAAC,OAAO,EAAE,EAAE,CACpB,IAAA,6BAAkB,EAAC;QACjB,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;IACJ,SAAS,EAAE,CAAC,OAAO,EAAE,EAAE,CACrB,IAAA,8BAAmB,EAAC;QAClB,WAAW;QACX,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,KAAK,EAAE,OAAO,CAAC,KAAK;KACrB,CAAC;IACJ,IAAI,EAAE,CAAC,OAAO,EAAE,EAAE,CAChB,IAAA,2BAAgB,EAAC;QACf,WAAW;QACX,IAAI,EAAE,OAAO,CAAC,IAAI;KACnB,CAAC;IACE,GAAG,CAAC,OAAO;;YACf,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAChC,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { TriggerStrategy } from '@activepieces/pieces-framework';
|
|
2
|
-
export declare const newLead: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
3
|
-
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
4
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
5
|
-
}>, {
|
|
6
|
-
funnelIds: import("@activepieces/pieces-framework").ArrayProperty<false>;
|
|
7
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
8
|
-
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
9
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
10
|
-
}>, {
|
|
11
|
-
funnelIds: import("@activepieces/pieces-framework").ArrayProperty<false>;
|
|
12
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
13
|
-
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
14
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
15
|
-
}>, {
|
|
16
|
-
funnelIds: import("@activepieces/pieces-framework").ArrayProperty<false>;
|
|
17
|
-
}>;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.newLead = 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_LEAD';
|
|
9
|
-
exports.newLead = (0, pieces_framework_1.createTrigger)({
|
|
10
|
-
auth: __1.coasyAuth,
|
|
11
|
-
name: 'newLead',
|
|
12
|
-
displayName: 'New Lead',
|
|
13
|
-
description: 'Triggers when a new lead is created.',
|
|
14
|
-
props: {
|
|
15
|
-
funnelIds: pieces_framework_1.Property.Array({
|
|
16
|
-
displayName: 'Funnel IDs',
|
|
17
|
-
description: 'IDs of funnels to react to',
|
|
18
|
-
required: false,
|
|
19
|
-
}),
|
|
20
|
-
},
|
|
21
|
-
sampleData: {},
|
|
22
|
-
type: pieces_framework_1.TriggerStrategy.WEBHOOK,
|
|
23
|
-
onEnable: (context) => (0, triggers_1.createCoasyTrigger)({
|
|
24
|
-
triggerName,
|
|
25
|
-
webhookUrl: context.webhookUrl,
|
|
26
|
-
auth: context.auth,
|
|
27
|
-
filter: context.propsValue,
|
|
28
|
-
store: context.store,
|
|
29
|
-
}),
|
|
30
|
-
onDisable: (context) => (0, triggers_1.destroyCoasyTrigger)({
|
|
31
|
-
triggerName,
|
|
32
|
-
auth: context.auth,
|
|
33
|
-
store: context.store,
|
|
34
|
-
}),
|
|
35
|
-
test: (context) => (0, triggers_1.testCoasyTrigger)({
|
|
36
|
-
triggerName,
|
|
37
|
-
auth: context.auth,
|
|
38
|
-
}),
|
|
39
|
-
run(context) {
|
|
40
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
41
|
-
return [context.payload.body];
|
|
42
|
-
});
|
|
43
|
-
},
|
|
44
|
-
});
|
|
45
|
-
//# sourceMappingURL=new-lead.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"new-lead.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/coasy/src/lib/triggers/new-lead.ts"],"names":[],"mappings":";;;;AAAA,qEAIwC;AACxC,6BAAkC;AAClC,iDAI4B;AAE5B,MAAM,WAAW,GAAG,UAAU,CAAC;AAElB,QAAA,OAAO,GAAG,IAAA,gCAAa,EAAC;IACnC,IAAI,EAAE,aAAS;IACf,IAAI,EAAE,SAAS;IACf,WAAW,EAAE,UAAU;IACvB,WAAW,EAAE,sCAAsC;IACnD,KAAK,EAAE;QACL,SAAS,EAAE,2BAAQ,CAAC,KAAK,CAAC;YACxB,WAAW,EAAE,YAAY;YACzB,WAAW,EAAE,4BAA4B;YACzC,QAAQ,EAAE,KAAK;SAChB,CAAC;KACH;IACD,UAAU,EAAE,EAAE;IACd,IAAI,EAAE,kCAAe,CAAC,OAAO;IAC7B,QAAQ,EAAE,CAAC,OAAO,EAAE,EAAE,CACpB,IAAA,6BAAkB,EAAC;QACjB,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;IACJ,SAAS,EAAE,CAAC,OAAO,EAAE,EAAE,CACrB,IAAA,8BAAmB,EAAC;QAClB,WAAW;QACX,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,KAAK,EAAE,OAAO,CAAC,KAAK;KACrB,CAAC;IACJ,IAAI,EAAE,CAAC,OAAO,EAAE,EAAE,CAChB,IAAA,2BAAgB,EAAC;QACf,WAAW;QACX,IAAI,EAAE,OAAO,CAAC,IAAI;KACnB,CAAC;IACE,GAAG,CAAC,OAAO;;YACf,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAChC,CAAC;KAAA;CACF,CAAC,CAAC"}
|