@scopieflows/app-convertkit 0.3.0

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.
Files changed (81) hide show
  1. package/README.md +29 -0
  2. package/package.json +28 -0
  3. package/src/i18n/ca.json +240 -0
  4. package/src/i18n/de.json +239 -0
  5. package/src/i18n/es.json +239 -0
  6. package/src/i18n/fr.json +239 -0
  7. package/src/i18n/hi.json +240 -0
  8. package/src/i18n/id.json +240 -0
  9. package/src/i18n/ja.json +239 -0
  10. package/src/i18n/nl.json +239 -0
  11. package/src/i18n/pt.json +239 -0
  12. package/src/i18n/ru.json +240 -0
  13. package/src/i18n/translation.json +239 -0
  14. package/src/i18n/vi.json +240 -0
  15. package/src/i18n/zh.json +239 -0
  16. package/src/index.d.ts +2 -0
  17. package/src/index.js +80 -0
  18. package/src/index.js.map +1 -0
  19. package/src/lib/actions/broadcasts.d.ts +37 -0
  20. package/src/lib/actions/broadcasts.js +213 -0
  21. package/src/lib/actions/broadcasts.js.map +1 -0
  22. package/src/lib/actions/custom-fields.d.ts +11 -0
  23. package/src/lib/actions/custom-fields.js +109 -0
  24. package/src/lib/actions/custom-fields.js.map +1 -0
  25. package/src/lib/actions/forms.d.ts +23 -0
  26. package/src/lib/actions/forms.js +90 -0
  27. package/src/lib/actions/forms.js.map +1 -0
  28. package/src/lib/actions/purchases.d.ts +51 -0
  29. package/src/lib/actions/purchases.js +258 -0
  30. package/src/lib/actions/purchases.js.map +1 -0
  31. package/src/lib/actions/sequences.d.ts +11 -0
  32. package/src/lib/actions/sequences.js +87 -0
  33. package/src/lib/actions/sequences.js.map +1 -0
  34. package/src/lib/actions/subscribers.d.ts +38 -0
  35. package/src/lib/actions/subscribers.js +172 -0
  36. package/src/lib/actions/subscribers.js.map +1 -0
  37. package/src/lib/actions/tags.d.ts +37 -0
  38. package/src/lib/actions/tags.js +188 -0
  39. package/src/lib/actions/tags.js.map +1 -0
  40. package/src/lib/actions/webhooks.d.ts +8 -0
  41. package/src/lib/actions/webhooks.js +40 -0
  42. package/src/lib/actions/webhooks.js.map +1 -0
  43. package/src/lib/common/broadcasts/index.d.ts +12 -0
  44. package/src/lib/common/broadcasts/index.js +67 -0
  45. package/src/lib/common/broadcasts/index.js.map +1 -0
  46. package/src/lib/common/constants.d.ts +9 -0
  47. package/src/lib/common/constants.js +13 -0
  48. package/src/lib/common/constants.js.map +1 -0
  49. package/src/lib/common/custom-fields/index.d.ts +4 -0
  50. package/src/lib/common/custom-fields/index.js +71 -0
  51. package/src/lib/common/custom-fields/index.js.map +1 -0
  52. package/src/lib/common/forms/index.d.ts +1 -0
  53. package/src/lib/common/forms/index.js +34 -0
  54. package/src/lib/common/forms/index.js.map +1 -0
  55. package/src/lib/common/index.d.ts +7 -0
  56. package/src/lib/common/index.js +11 -0
  57. package/src/lib/common/index.js.map +1 -0
  58. package/src/lib/common/purchases/index.d.ts +22 -0
  59. package/src/lib/common/purchases/index.js +168 -0
  60. package/src/lib/common/purchases/index.js.map +1 -0
  61. package/src/lib/common/sequences/index.d.ts +2 -0
  62. package/src/lib/common/sequences/index.js +39 -0
  63. package/src/lib/common/sequences/index.js.map +1 -0
  64. package/src/lib/common/service.d.ts +12 -0
  65. package/src/lib/common/service.js +238 -0
  66. package/src/lib/common/service.js.map +1 -0
  67. package/src/lib/common/subscribers/index.d.ts +18 -0
  68. package/src/lib/common/subscribers/index.js +64 -0
  69. package/src/lib/common/subscribers/index.js.map +1 -0
  70. package/src/lib/common/tags/index.d.ts +23 -0
  71. package/src/lib/common/tags/index.js +215 -0
  72. package/src/lib/common/tags/index.js.map +1 -0
  73. package/src/lib/common/types.d.ts +115 -0
  74. package/src/lib/common/types.js +19 -0
  75. package/src/lib/common/types.js.map +1 -0
  76. package/src/lib/common/webhooks/index.d.ts +7 -0
  77. package/src/lib/common/webhooks/index.js +209 -0
  78. package/src/lib/common/webhooks/index.js.map +1 -0
  79. package/src/lib/triggers/index.d.ts +69 -0
  80. package/src/lib/triggers/index.js +549 -0
  81. package/src/lib/triggers/index.js.map +1 -0
@@ -0,0 +1,115 @@
1
+ export interface Broadcast {
2
+ id: string;
3
+ created_at: string;
4
+ subject: string;
5
+ }
6
+ export interface CustomField {
7
+ id: string;
8
+ label: string;
9
+ key: string;
10
+ name: string;
11
+ }
12
+ export interface Form {
13
+ id: string;
14
+ name: string;
15
+ created_at: string;
16
+ type: string;
17
+ format: string;
18
+ embed_js: string;
19
+ embed_url: string;
20
+ archived: boolean;
21
+ uid: string;
22
+ }
23
+ export interface Subscription {
24
+ id: string;
25
+ state: string;
26
+ created_at: string;
27
+ source: string;
28
+ referrer: string;
29
+ subscribable_id: string;
30
+ subscribable_type: string;
31
+ subscriber: Subscriber;
32
+ }
33
+ export interface Subscriber {
34
+ id: string;
35
+ first_name: string;
36
+ email_address: string;
37
+ state: string;
38
+ created_at: string;
39
+ fields: Fields;
40
+ }
41
+ export interface Fields {
42
+ [key: string]: string;
43
+ }
44
+ export interface Purchase {
45
+ id: string;
46
+ transaction_id: string;
47
+ status: string;
48
+ email_address: string;
49
+ currency: string;
50
+ transaction_time: string;
51
+ subtotal: number;
52
+ discount: number;
53
+ tax: number;
54
+ total: number;
55
+ products: Product[];
56
+ }
57
+ export interface Product {
58
+ quantity: number;
59
+ lid: string;
60
+ unit_price: number;
61
+ sku: string;
62
+ name: string;
63
+ pid: string;
64
+ }
65
+ export interface Sequence {
66
+ id: string;
67
+ name: string;
68
+ hold: boolean;
69
+ repeat: boolean;
70
+ created_at: string;
71
+ }
72
+ export interface Tag {
73
+ id: string;
74
+ name: string;
75
+ created_at: string;
76
+ }
77
+ export declare enum EventType {
78
+ subscriberActivate = "subscriber.subscriber_activate",
79
+ subscriberUnsubscribe = "subscriber.subscriber_unsubscribe",
80
+ subscriberBounce = "subscriber.subscriber_bounce",
81
+ subscriberComplain = "subscriber.subscriber_complain",
82
+ formSubscribe = "subscriber.form_subscribe",
83
+ courseSubscribe = "subscriber.course_subscribe",
84
+ courseComplete = "subscriber.course_complete",
85
+ linkClick = "subscriber.link_click",
86
+ productPurchase = "subscriber.product_purchase",
87
+ tagAdd = "subscriber.tag_add",
88
+ tagRemove = "subscriber.tag_remove",
89
+ purchaseCreate = "purchase.purchase_create"
90
+ }
91
+ export type EventParameterKey = 'form_id' | 'sequence_id' | 'initiator_value' | 'product_id' | 'tag_id';
92
+ type EventMapped = {
93
+ [K in EventParameterKey]?: string | number;
94
+ };
95
+ export type Event = EventMapped & {
96
+ name: EventType;
97
+ };
98
+ export interface Webhook {
99
+ id: number;
100
+ account_id: number;
101
+ event: Event;
102
+ target_url: string;
103
+ }
104
+ export interface EventOption {
105
+ label: string;
106
+ value: EventType;
107
+ required_parameter: EventParameterKey | null;
108
+ param_label: string | null;
109
+ type: string | null;
110
+ }
111
+ export interface AuthEmail {
112
+ auth: string;
113
+ email: string;
114
+ }
115
+ export {};
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EventType = void 0;
4
+ var EventType;
5
+ (function (EventType) {
6
+ EventType["subscriberActivate"] = "subscriber.subscriber_activate";
7
+ EventType["subscriberUnsubscribe"] = "subscriber.subscriber_unsubscribe";
8
+ EventType["subscriberBounce"] = "subscriber.subscriber_bounce";
9
+ EventType["subscriberComplain"] = "subscriber.subscriber_complain";
10
+ EventType["formSubscribe"] = "subscriber.form_subscribe";
11
+ EventType["courseSubscribe"] = "subscriber.course_subscribe";
12
+ EventType["courseComplete"] = "subscriber.course_complete";
13
+ EventType["linkClick"] = "subscriber.link_click";
14
+ EventType["productPurchase"] = "subscriber.product_purchase";
15
+ EventType["tagAdd"] = "subscriber.tag_add";
16
+ EventType["tagRemove"] = "subscriber.tag_remove";
17
+ EventType["purchaseCreate"] = "purchase.purchase_create";
18
+ })(EventType || (exports.EventType = EventType = {}));
19
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/convertkit/src/lib/common/types.ts"],"names":[],"mappings":";;;AAsFA,IAAY,SAaX;AAbD,WAAY,SAAS;IACnB,kEAAqD,CAAA;IACrD,wEAA2D,CAAA;IAC3D,8DAAiD,CAAA;IACjD,kEAAqD,CAAA;IACrD,wDAA2C,CAAA;IAC3C,4DAA+C,CAAA;IAC/C,0DAA6C,CAAA;IAC7C,gDAAmC,CAAA;IACnC,4DAA+C,CAAA;IAC/C,0CAA6B,CAAA;IAC7B,gDAAmC,CAAA;IACnC,wDAA2C,CAAA;AAC7C,CAAC,EAbW,SAAS,yBAAT,SAAS,QAapB"}
@@ -0,0 +1,7 @@
1
+ import { EventType, EventOption } from '../types';
2
+ export declare const initiatorValue: import("@scopieflows/pieces-framework").ShortTextProperty<true>;
3
+ export declare const webhookId: import("@scopieflows/pieces-framework").NumberProperty<true>;
4
+ export declare const targetUrl: import("@scopieflows/pieces-framework").ShortTextProperty<true>;
5
+ export declare const eventParameter: import("@scopieflows/pieces-framework").DynamicProperties<false, import("@scopieflows/pieces-framework").SecretTextProperty<true>>;
6
+ export declare const createWebhookParameterOptions: EventOption[];
7
+ export declare const event: import("@scopieflows/pieces-framework").StaticDropdownProperty<EventType, true>;
@@ -0,0 +1,209 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.event = exports.createWebhookParameterOptions = exports.eventParameter = exports.targetUrl = exports.webhookId = exports.initiatorValue = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const pieces_framework_1 = require("@scopieflows/pieces-framework");
6
+ const types_1 = require("../types");
7
+ const service_1 = require("../service");
8
+ const __1 = require("../../..");
9
+ exports.initiatorValue = pieces_framework_1.Property.ShortText({
10
+ displayName: 'Initiator Value URL',
11
+ description: 'The initiator value URL that will trigger the webhook',
12
+ required: true,
13
+ });
14
+ exports.webhookId = pieces_framework_1.Property.Number({
15
+ displayName: 'Webhook Id',
16
+ description: 'The webhook rule id',
17
+ required: true,
18
+ });
19
+ exports.targetUrl = pieces_framework_1.Property.ShortText({
20
+ displayName: 'Target URL',
21
+ description: 'The URL that will be called when the webhook is triggered',
22
+ required: true,
23
+ });
24
+ exports.eventParameter = pieces_framework_1.Property.DynamicProperties({
25
+ displayName: 'Event Parameter',
26
+ description: 'The required parameter for the event',
27
+ required: false,
28
+ refreshers: ['auth', 'event'],
29
+ auth: __1.convertkitAuth,
30
+ props: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth, event }) {
31
+ if (!event || !auth) {
32
+ return {
33
+ disabled: true,
34
+ placeholder: 'Select event first',
35
+ options: [],
36
+ };
37
+ }
38
+ const fields = {};
39
+ const eventOption = exports.createWebhookParameterOptions.find((option) => option.value === event &&
40
+ option.required_parameter);
41
+ if (!eventOption) {
42
+ return fields;
43
+ }
44
+ const required_parameter = eventOption.required_parameter || '';
45
+ const param_label = eventOption.param_label || '';
46
+ const fieldType = eventOption.type || '';
47
+ if (required_parameter === 'tag_id') {
48
+ const tags = yield (0, service_1.fetchTags)(auth.secret_text);
49
+ const options = tags.map((tag) => {
50
+ return {
51
+ label: tag.name,
52
+ value: tag.id,
53
+ };
54
+ });
55
+ fields[required_parameter] = pieces_framework_1.Property.StaticDropdown({
56
+ displayName: 'Tag',
57
+ description: 'Choose a Tag',
58
+ required: true,
59
+ options: {
60
+ options,
61
+ },
62
+ });
63
+ return fields;
64
+ }
65
+ if (required_parameter === 'form_id') {
66
+ const forms = yield (0, service_1.fetchForms)(auth.secret_text);
67
+ const options = forms.map((form) => {
68
+ return {
69
+ label: form.name,
70
+ value: form.id,
71
+ };
72
+ });
73
+ fields[required_parameter] = pieces_framework_1.Property.StaticDropdown({
74
+ displayName: 'Form',
75
+ description: 'Choose a Form',
76
+ required: true,
77
+ options: {
78
+ options,
79
+ },
80
+ });
81
+ return fields;
82
+ }
83
+ if (required_parameter === 'sequence_id') {
84
+ const courses = yield (0, service_1.fetchSequences)(auth.secret_text);
85
+ const options = courses.map((sequence) => {
86
+ return {
87
+ label: sequence.name,
88
+ value: sequence.id,
89
+ };
90
+ });
91
+ fields[required_parameter] = pieces_framework_1.Property.StaticDropdown({
92
+ displayName: 'Sequence',
93
+ description: 'Choose a Sequence',
94
+ required: true,
95
+ options: {
96
+ options,
97
+ },
98
+ });
99
+ return fields;
100
+ }
101
+ const field = {
102
+ displayName: param_label,
103
+ description: `The ${param_label} parameter for the event`,
104
+ required: true,
105
+ };
106
+ if (fieldType === 'number') {
107
+ fields[required_parameter] = pieces_framework_1.Property.Number(field);
108
+ }
109
+ if (fieldType === 'string') {
110
+ fields[required_parameter] = pieces_framework_1.Property.ShortText(field);
111
+ }
112
+ return fields;
113
+ }),
114
+ });
115
+ exports.createWebhookParameterOptions = [
116
+ {
117
+ label: 'Subscriber activated',
118
+ value: types_1.EventType.subscriberActivate,
119
+ required_parameter: null,
120
+ param_label: null,
121
+ type: null,
122
+ },
123
+ {
124
+ label: 'Subscriber unsubscribed',
125
+ value: types_1.EventType.subscriberUnsubscribe,
126
+ required_parameter: null,
127
+ param_label: null,
128
+ type: null,
129
+ },
130
+ {
131
+ label: 'Subscriber bounced',
132
+ value: types_1.EventType.subscriberBounce,
133
+ required_parameter: null,
134
+ param_label: null,
135
+ type: null,
136
+ },
137
+ {
138
+ label: 'Subscriber complained',
139
+ value: types_1.EventType.subscriberComplain,
140
+ required_parameter: null,
141
+ param_label: null,
142
+ type: null,
143
+ },
144
+ {
145
+ label: 'Form subscribed',
146
+ value: types_1.EventType.formSubscribe,
147
+ required_parameter: 'form_id',
148
+ param_label: 'Form Id',
149
+ type: 'number',
150
+ },
151
+ {
152
+ label: 'Sequence subscribed',
153
+ value: types_1.EventType.courseSubscribe,
154
+ required_parameter: 'sequence_id',
155
+ param_label: 'Sequence Id',
156
+ type: 'number',
157
+ },
158
+ {
159
+ label: 'Sequence completed',
160
+ value: types_1.EventType.courseComplete,
161
+ required_parameter: 'sequence_id',
162
+ param_label: 'Sequence Id',
163
+ type: 'number',
164
+ },
165
+ {
166
+ label: 'Link clicked',
167
+ value: types_1.EventType.linkClick,
168
+ required_parameter: 'initiator_value',
169
+ param_label: 'Initiator Value',
170
+ type: 'string',
171
+ },
172
+ {
173
+ label: 'Product purchased',
174
+ value: types_1.EventType.productPurchase,
175
+ required_parameter: 'product_id',
176
+ param_label: 'Product Id',
177
+ type: 'number',
178
+ },
179
+ {
180
+ label: 'Tag added to subscriber',
181
+ value: types_1.EventType.tagAdd,
182
+ required_parameter: 'tag_id',
183
+ param_label: 'Tag Id',
184
+ type: 'number',
185
+ },
186
+ {
187
+ label: 'Tag removed from subscriber',
188
+ value: types_1.EventType.tagRemove,
189
+ required_parameter: 'tag_id',
190
+ param_label: 'Tag Id',
191
+ type: 'number',
192
+ },
193
+ {
194
+ label: 'Purchase created',
195
+ value: types_1.EventType.purchaseCreate,
196
+ required_parameter: null,
197
+ param_label: null,
198
+ type: null,
199
+ },
200
+ ];
201
+ exports.event = pieces_framework_1.Property.StaticDropdown({
202
+ displayName: 'Event',
203
+ description: 'The event that will trigger the webhook',
204
+ required: true,
205
+ options: {
206
+ options: exports.createWebhookParameterOptions,
207
+ },
208
+ });
209
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../packages/pieces/community/convertkit/src/lib/common/webhooks/index.ts"],"names":[],"mappings":";;;;AAAA,oEAA4E;AAC5E,oCAAkD;AAClD,wCAAmE;AACnE,gCAA0C;AAE7B,QAAA,cAAc,GAAG,2BAAQ,CAAC,SAAS,CAAC;IAC/C,WAAW,EAAE,qBAAqB;IAClC,WAAW,EAAE,uDAAuD;IACpE,QAAQ,EAAE,IAAI;CACf,CAAC,CAAC;AAEU,QAAA,SAAS,GAAG,2BAAQ,CAAC,MAAM,CAAC;IACvC,WAAW,EAAE,YAAY;IACzB,WAAW,EAAE,qBAAqB;IAClC,QAAQ,EAAE,IAAI;CACf,CAAC,CAAC;AAEU,QAAA,SAAS,GAAG,2BAAQ,CAAC,SAAS,CAAC;IAC1C,WAAW,EA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W,QAAA,KAAK,GAAG,2BAAQ,CAAC,cAAc,CAAC;IAC3C,WAAW,EAAE,OAAO;IACpB,WAAW,EAAE,yCAAyC;IACtD,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE;QACP,OAAO,EAAE,qCAA6B;KACvC;CACF,CAAC,CAAC"}
@@ -0,0 +1,69 @@
1
+ import { TriggerStrategy } from '@scopieflows/pieces-framework';
2
+ export declare const addTag: import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@scopieflows/pieces-framework").SecretTextProperty<true>, {
3
+ tagId: import("@scopieflows/pieces-framework").DropdownProperty<string, true, import("@scopieflows/pieces-framework").SecretTextProperty<true>>;
4
+ }> | import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@scopieflows/pieces-framework").SecretTextProperty<true>, {
5
+ tagId: import("@scopieflows/pieces-framework").DropdownProperty<string, true, import("@scopieflows/pieces-framework").SecretTextProperty<true>>;
6
+ }> | import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.MANUAL, import("@scopieflows/pieces-framework").SecretTextProperty<true>, {
7
+ tagId: import("@scopieflows/pieces-framework").DropdownProperty<string, true, import("@scopieflows/pieces-framework").SecretTextProperty<true>>;
8
+ }> | import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@scopieflows/pieces-framework").SecretTextProperty<true>, {
9
+ tagId: import("@scopieflows/pieces-framework").DropdownProperty<string, true, import("@scopieflows/pieces-framework").SecretTextProperty<true>>;
10
+ }>;
11
+ export declare const removeTag: import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@scopieflows/pieces-framework").SecretTextProperty<true>, {
12
+ tagId: import("@scopieflows/pieces-framework").DropdownProperty<string, true, import("@scopieflows/pieces-framework").SecretTextProperty<true>>;
13
+ }> | import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@scopieflows/pieces-framework").SecretTextProperty<true>, {
14
+ tagId: import("@scopieflows/pieces-framework").DropdownProperty<string, true, import("@scopieflows/pieces-framework").SecretTextProperty<true>>;
15
+ }> | import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.MANUAL, import("@scopieflows/pieces-framework").SecretTextProperty<true>, {
16
+ tagId: import("@scopieflows/pieces-framework").DropdownProperty<string, true, import("@scopieflows/pieces-framework").SecretTextProperty<true>>;
17
+ }> | import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@scopieflows/pieces-framework").SecretTextProperty<true>, {
18
+ tagId: import("@scopieflows/pieces-framework").DropdownProperty<string, true, import("@scopieflows/pieces-framework").SecretTextProperty<true>>;
19
+ }>;
20
+ export declare const subscriberActivated: import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@scopieflows/pieces-framework").SecretTextProperty<true>, {}> | import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@scopieflows/pieces-framework").SecretTextProperty<true>, {}> | import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.MANUAL, import("@scopieflows/pieces-framework").SecretTextProperty<true>, {}> | import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@scopieflows/pieces-framework").SecretTextProperty<true>, {}>;
21
+ export declare const subscriberUnsubscribed: import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@scopieflows/pieces-framework").SecretTextProperty<true>, {}> | import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@scopieflows/pieces-framework").SecretTextProperty<true>, {}> | import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.MANUAL, import("@scopieflows/pieces-framework").SecretTextProperty<true>, {}> | import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@scopieflows/pieces-framework").SecretTextProperty<true>, {}>;
22
+ export declare const subscriberBounced: import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@scopieflows/pieces-framework").SecretTextProperty<true>, {}> | import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@scopieflows/pieces-framework").SecretTextProperty<true>, {}> | import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.MANUAL, import("@scopieflows/pieces-framework").SecretTextProperty<true>, {}> | import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@scopieflows/pieces-framework").SecretTextProperty<true>, {}>;
23
+ export declare const subscriberComplained: import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@scopieflows/pieces-framework").SecretTextProperty<true>, {}> | import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@scopieflows/pieces-framework").SecretTextProperty<true>, {}> | import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.MANUAL, import("@scopieflows/pieces-framework").SecretTextProperty<true>, {}> | import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@scopieflows/pieces-framework").SecretTextProperty<true>, {}>;
24
+ export declare const formSubscribed: import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@scopieflows/pieces-framework").SecretTextProperty<true>, {
25
+ formId: import("@scopieflows/pieces-framework").DropdownProperty<string, true, import("@scopieflows/pieces-framework").SecretTextProperty<true>>;
26
+ }> | import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@scopieflows/pieces-framework").SecretTextProperty<true>, {
27
+ formId: import("@scopieflows/pieces-framework").DropdownProperty<string, true, import("@scopieflows/pieces-framework").SecretTextProperty<true>>;
28
+ }> | import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.MANUAL, import("@scopieflows/pieces-framework").SecretTextProperty<true>, {
29
+ formId: import("@scopieflows/pieces-framework").DropdownProperty<string, true, import("@scopieflows/pieces-framework").SecretTextProperty<true>>;
30
+ }> | import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@scopieflows/pieces-framework").SecretTextProperty<true>, {
31
+ formId: import("@scopieflows/pieces-framework").DropdownProperty<string, true, import("@scopieflows/pieces-framework").SecretTextProperty<true>>;
32
+ }>;
33
+ export declare const sequenceSubscribed: import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@scopieflows/pieces-framework").SecretTextProperty<true>, {
34
+ sequenceIdChoice: import("@scopieflows/pieces-framework").DropdownProperty<string, true, import("@scopieflows/pieces-framework").SecretTextProperty<true>>;
35
+ }> | import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@scopieflows/pieces-framework").SecretTextProperty<true>, {
36
+ sequenceIdChoice: import("@scopieflows/pieces-framework").DropdownProperty<string, true, import("@scopieflows/pieces-framework").SecretTextProperty<true>>;
37
+ }> | import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.MANUAL, import("@scopieflows/pieces-framework").SecretTextProperty<true>, {
38
+ sequenceIdChoice: import("@scopieflows/pieces-framework").DropdownProperty<string, true, import("@scopieflows/pieces-framework").SecretTextProperty<true>>;
39
+ }> | import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@scopieflows/pieces-framework").SecretTextProperty<true>, {
40
+ sequenceIdChoice: import("@scopieflows/pieces-framework").DropdownProperty<string, true, import("@scopieflows/pieces-framework").SecretTextProperty<true>>;
41
+ }>;
42
+ export declare const sequenceCompleted: import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@scopieflows/pieces-framework").SecretTextProperty<true>, {
43
+ sequenceIdChoice: import("@scopieflows/pieces-framework").DropdownProperty<string, true, import("@scopieflows/pieces-framework").SecretTextProperty<true>>;
44
+ }> | import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@scopieflows/pieces-framework").SecretTextProperty<true>, {
45
+ sequenceIdChoice: import("@scopieflows/pieces-framework").DropdownProperty<string, true, import("@scopieflows/pieces-framework").SecretTextProperty<true>>;
46
+ }> | import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.MANUAL, import("@scopieflows/pieces-framework").SecretTextProperty<true>, {
47
+ sequenceIdChoice: import("@scopieflows/pieces-framework").DropdownProperty<string, true, import("@scopieflows/pieces-framework").SecretTextProperty<true>>;
48
+ }> | import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@scopieflows/pieces-framework").SecretTextProperty<true>, {
49
+ sequenceIdChoice: import("@scopieflows/pieces-framework").DropdownProperty<string, true, import("@scopieflows/pieces-framework").SecretTextProperty<true>>;
50
+ }>;
51
+ export declare const linkClicked: import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@scopieflows/pieces-framework").SecretTextProperty<true>, {
52
+ initiatorValue: import("@scopieflows/pieces-framework").ShortTextProperty<true>;
53
+ }> | import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@scopieflows/pieces-framework").SecretTextProperty<true>, {
54
+ initiatorValue: import("@scopieflows/pieces-framework").ShortTextProperty<true>;
55
+ }> | import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.MANUAL, import("@scopieflows/pieces-framework").SecretTextProperty<true>, {
56
+ initiatorValue: import("@scopieflows/pieces-framework").ShortTextProperty<true>;
57
+ }> | import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@scopieflows/pieces-framework").SecretTextProperty<true>, {
58
+ initiatorValue: import("@scopieflows/pieces-framework").ShortTextProperty<true>;
59
+ }>;
60
+ export declare const productPurchased: import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@scopieflows/pieces-framework").SecretTextProperty<true>, {
61
+ productId: import("@scopieflows/pieces-framework").NumberProperty<true>;
62
+ }> | import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@scopieflows/pieces-framework").SecretTextProperty<true>, {
63
+ productId: import("@scopieflows/pieces-framework").NumberProperty<true>;
64
+ }> | import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.MANUAL, import("@scopieflows/pieces-framework").SecretTextProperty<true>, {
65
+ productId: import("@scopieflows/pieces-framework").NumberProperty<true>;
66
+ }> | import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@scopieflows/pieces-framework").SecretTextProperty<true>, {
67
+ productId: import("@scopieflows/pieces-framework").NumberProperty<true>;
68
+ }>;
69
+ export declare const purchaseCreated: import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@scopieflows/pieces-framework").SecretTextProperty<true>, {}> | import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@scopieflows/pieces-framework").SecretTextProperty<true>, {}> | import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.MANUAL, import("@scopieflows/pieces-framework").SecretTextProperty<true>, {}> | import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@scopieflows/pieces-framework").SecretTextProperty<true>, {}>;