@activepieces/piece-buttondown 0.0.3 → 0.0.4

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 (40) hide show
  1. package/package.json +7 -12
  2. package/src/index.js +13 -29
  3. package/src/index.d.ts +0 -1
  4. package/src/index.js.map +0 -1
  5. package/src/lib/actions/create-subscriber.d.ts +0 -16
  6. package/src/lib/actions/create-subscriber.js +0 -153
  7. package/src/lib/actions/create-subscriber.js.map +0 -1
  8. package/src/lib/actions/custom-api-call.d.ts +0 -12
  9. package/src/lib/actions/custom-api-call.js +0 -17
  10. package/src/lib/actions/custom-api-call.js.map +0 -1
  11. package/src/lib/actions/list-subscribers.d.ts +0 -10
  12. package/src/lib/actions/list-subscribers.js +0 -113
  13. package/src/lib/actions/list-subscribers.js.map +0 -1
  14. package/src/lib/actions/send-email.d.ts +0 -15
  15. package/src/lib/actions/send-email.js +0 -145
  16. package/src/lib/actions/send-email.js.map +0 -1
  17. package/src/lib/common/auth.d.ts +0 -1
  18. package/src/lib/common/auth.js +0 -44
  19. package/src/lib/common/auth.js.map +0 -1
  20. package/src/lib/common/client.d.ts +0 -19
  21. package/src/lib/common/client.js +0 -39
  22. package/src/lib/common/client.js.map +0 -1
  23. package/src/lib/common/options.d.ts +0 -21
  24. package/src/lib/common/options.js +0 -58
  25. package/src/lib/common/options.js.map +0 -1
  26. package/src/lib/common/types.d.ts +0 -80
  27. package/src/lib/common/types.js +0 -3
  28. package/src/lib/common/types.js.map +0 -1
  29. package/src/lib/common/webhook.d.ts +0 -35
  30. package/src/lib/common/webhook.js +0 -78
  31. package/src/lib/common/webhook.js.map +0 -1
  32. package/src/lib/triggers/email-sent.d.ts +0 -13
  33. package/src/lib/triggers/email-sent.js +0 -41
  34. package/src/lib/triggers/email-sent.js.map +0 -1
  35. package/src/lib/triggers/new-subscriber.d.ts +0 -13
  36. package/src/lib/triggers/new-subscriber.js +0 -41
  37. package/src/lib/triggers/new-subscriber.js.map +0 -1
  38. package/src/lib/triggers/subscriber-confirmed.d.ts +0 -13
  39. package/src/lib/triggers/subscriber-confirmed.js +0 -41
  40. package/src/lib/triggers/subscriber-confirmed.js.map +0 -1
@@ -1,78 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createButtondownWebhookTrigger = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_common_1 = require("@activepieces/pieces-common");
6
- const pieces_framework_1 = require("@activepieces/pieces-framework");
7
- const auth_1 = require("./auth");
8
- const client_1 = require("./client");
9
- const createButtondownWebhookTrigger = ({ name, displayName, description, aiMetadata, eventType, sampleData, enrich, }) => (0, pieces_framework_1.createTrigger)({
10
- auth: auth_1.buttondownAuth,
11
- name,
12
- displayName,
13
- description,
14
- aiMetadata,
15
- type: pieces_framework_1.TriggerStrategy.WEBHOOK,
16
- props: {
17
- webhookDescription: pieces_framework_1.Property.ShortText({
18
- displayName: 'Webhook Description',
19
- description: 'Optional description stored with the webhook in Buttondown.',
20
- required: false,
21
- }),
22
- signingKey: pieces_framework_1.Property.ShortText({
23
- displayName: 'Webhook Signing Key',
24
- description: 'Optional HMAC signing key to validate webhook requests.',
25
- required: false,
26
- }),
27
- },
28
- sampleData,
29
- onEnable(context) {
30
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
31
- const webhook = yield (0, client_1.buttondownRequest)({
32
- auth: context.auth.secret_text,
33
- method: pieces_common_1.HttpMethod.POST,
34
- path: '/webhooks',
35
- body: {
36
- url: context.webhookUrl,
37
- event_types: [eventType],
38
- description: context.propsValue.webhookDescription,
39
- signing_key: context.propsValue.signingKey,
40
- },
41
- });
42
- yield context.store.put('webhookId', webhook.id);
43
- });
44
- },
45
- onDisable(context) {
46
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
47
- const webhookId = yield context.store.get('webhookId');
48
- if (!webhookId) {
49
- return;
50
- }
51
- yield (0, client_1.buttondownRequest)({
52
- auth: context.auth.secret_text,
53
- method: pieces_common_1.HttpMethod.DELETE,
54
- path: `/webhooks/${webhookId}`,
55
- });
56
- });
57
- },
58
- run(context) {
59
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
60
- const payload = context.payload.body;
61
- if ((payload === null || payload === void 0 ? void 0 : payload.event_type) !== eventType) {
62
- return [];
63
- }
64
- let enriched;
65
- if (enrich) {
66
- enriched = yield enrich({
67
- apiKey: context.auth.secret_text,
68
- payload,
69
- });
70
- }
71
- return [
72
- Object.assign(Object.assign({}, payload), (enriched !== null && enriched !== void 0 ? enriched : {})),
73
- ];
74
- });
75
- },
76
- });
77
- exports.createButtondownWebhookTrigger = createButtondownWebhookTrigger;
78
- //# sourceMappingURL=webhook.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"webhook.js","sourceRoot":"","sources":["../../../../src/lib/common/webhook.ts"],"names":[],"mappings":";;;;AAAA,+DAAyD;AACzD,qEAA0F;AAC1F,iCAAwC;AACxC,qCAA6C;AAwBtC,MAAM,8BAA8B,GAAG,CAAC,EAC7C,IAAI,EACJ,WAAW,EACX,WAAW,EACX,UAAU,EACV,SAAS,EACT,UAAU,EACV,MAAM,GAC+B,EAAE,EAAE,CACzC,IAAA,gCAAa,EAAC;IACZ,IAAI,EAAE,qBAAc;IACpB,IAAI;IACJ,WAAW;IACX,WAAW;IACX,UAAU;IACV,IAAI,EAAE,kCAAe,CAAC,OAAO;IAC7B,KAAK,EAAE;QACL,kBAAkB,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACrC,WAAW,EAAE,qBAAqB;YAClC,WAAW,EAAE,6DAA6D;YAC1E,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,UAAU,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,qBAAqB;YAClC,WAAW,EAAE,yDAAyD;YACtE,QAAQ,EAAE,KAAK;SAChB,CAAC;KACH;IACD,UAAU;IACJ,QAAQ,CAAC,OAAO;;YACpB,MAAM,OAAO,GAAG,MAAM,IAAA,0BAAiB,EAAoB;gBACzD,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,WAAW;gBAC9B,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE;oBACJ,GAAG,EAAE,OAAO,CAAC,UAAU;oBACvB,WAAW,EAAE,CAAC,SAAS,CAAC;oBACxB,WAAW,EAAE,OAAO,CAAC,UAAU,CAAC,kBAAkB;oBAClD,WAAW,EAAE,OAAO,CAAC,UAAU,CAAC,UAAU;iBAC3C;aACF,CAAC,CAAC;YAEH,MAAM,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,WAAW,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC;QACnD,CAAC;KAAA;IACK,SAAS,CAAC,OAAO;;YACrB,MAAM,SAAS,GAAG,MAAM,OAAO,CAAC,KAAK,CAAC,GAAG,CAAS,WAAW,CAAC,CAAC;YAC/D,IAAI,CAAC,SAAS,EAAE,CAAC;gBACf,OAAO;YACT,CAAC;YAED,MAAM,IAAA,0BAAiB,EAAO;gBAC5B,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,WAAW;gBAC9B,MAAM,EAAE,0BAAU,CAAC,MAAM;gBACzB,IAAI,EAAE,aAAa,SAAS,EAAE;aAC/B,CAAC,CAAC;QACL,CAAC;KAAA;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,IAAgC,CAAC;YACjE,IAAI,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,MAAK,SAAS,EAAE,CAAC;gBACtC,OAAO,EAAE,CAAC;YACZ,CAAC;YAED,IAAI,QAA6C,CAAC;YAClD,IAAI,MAAM,EAAE,CAAC;gBACX,QAAQ,GAAG,MAAM,MAAM,CAAC;oBACtB,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,WAAW;oBAChC,OAAO;iBACR,CAAC,CAAC;YACL,CAAC;YAED,OAAO;gDAEA,OAAO,GACP,CAAC,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,EAAE,CAAC;aAEtB,CAAC;QACJ,CAAC;KAAA;CACF,CAAC,CAAC;AA7EQ,QAAA,8BAA8B,kCA6EtC"}
@@ -1,13 +0,0 @@
1
- export declare const buttondownEmailSent: import("@activepieces/pieces-framework").ITrigger<import("@activepieces/shared").TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
- webhookDescription: import("@activepieces/pieces-framework").ShortTextProperty<false>;
3
- signingKey: import("@activepieces/pieces-framework").ShortTextProperty<false>;
4
- }> | import("@activepieces/pieces-framework").ITrigger<import("@activepieces/shared").TriggerStrategy.POLLING, import("@activepieces/pieces-framework").SecretTextProperty<true>, {
5
- webhookDescription: import("@activepieces/pieces-framework").ShortTextProperty<false>;
6
- signingKey: import("@activepieces/pieces-framework").ShortTextProperty<false>;
7
- }> | import("@activepieces/pieces-framework").ITrigger<import("@activepieces/shared").TriggerStrategy.MANUAL, import("@activepieces/pieces-framework").SecretTextProperty<true>, {
8
- webhookDescription: import("@activepieces/pieces-framework").ShortTextProperty<false>;
9
- signingKey: import("@activepieces/pieces-framework").ShortTextProperty<false>;
10
- }> | import("@activepieces/pieces-framework").ITrigger<import("@activepieces/shared").TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").SecretTextProperty<true>, {
11
- webhookDescription: import("@activepieces/pieces-framework").ShortTextProperty<false>;
12
- signingKey: import("@activepieces/pieces-framework").ShortTextProperty<false>;
13
- }>;
@@ -1,41 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.buttondownEmailSent = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_common_1 = require("@activepieces/pieces-common");
6
- const client_1 = require("../common/client");
7
- const webhook_1 = require("../common/webhook");
8
- exports.buttondownEmailSent = (0, webhook_1.createButtondownWebhookTrigger)({
9
- name: 'buttondown_email_sent',
10
- displayName: 'Email Sent',
11
- description: 'Triggers when an email is sent from Buttondown.',
12
- aiMetadata: {
13
- description: 'Fires when an email is dispatched to subscribers from Buttondown. Represents a sent newsletter/email; the payload is enriched with the full email details.',
14
- },
15
- eventType: 'email.sent',
16
- sampleData: {
17
- event_type: 'email.sent',
18
- data: {
19
- email: 'eml_123456789',
20
- },
21
- },
22
- enrich: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ apiKey, payload }) {
23
- var _b;
24
- const emailData = (_b = payload.data) === null || _b === void 0 ? void 0 : _b['email'];
25
- let email;
26
- if (typeof emailData === 'string') {
27
- email = yield (0, client_1.buttondownRequest)({
28
- auth: apiKey,
29
- method: pieces_common_1.HttpMethod.GET,
30
- path: `/emails/${encodeURIComponent(emailData)}`,
31
- });
32
- }
33
- else if (emailData && typeof emailData === 'object') {
34
- email = emailData;
35
- }
36
- return {
37
- email,
38
- };
39
- }),
40
- });
41
- //# sourceMappingURL=email-sent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"email-sent.js","sourceRoot":"","sources":["../../../../src/lib/triggers/email-sent.ts"],"names":[],"mappings":";;;;AAAA,+DAAyD;AACzD,6CAAqD;AACrD,+CAAmE;AAGtD,QAAA,mBAAmB,GAAG,IAAA,wCAA8B,EAAC;IAChE,IAAI,EAAE,uBAAuB;IAC7B,WAAW,EAAE,YAAY;IACzB,WAAW,EAAE,iDAAiD;IAC9D,UAAU,EAAE;QACV,WAAW,EACT,4JAA4J;KAC/J;IACD,SAAS,EAAE,YAAY;IACvB,UAAU,EAAE;QACV,UAAU,EAAE,YAAY;QACxB,IAAI,EAAE;YACJ,KAAK,EAAE,eAAe;SACvB;KACF;IACD,MAAM,EAAE,KAA4B,EAAE,oDAAvB,EAAE,MAAM,EAAE,OAAO,EAAE;;QAChC,MAAM,SAAS,GAAG,MAAA,OAAO,CAAC,IAAI,0CAAG,OAAO,CAAC,CAAC;QAC1C,IAAI,KAAkC,CAAC;QAEvC,IAAI,OAAO,SAAS,KAAK,QAAQ,EAAE,CAAC;YAClC,KAAK,GAAG,MAAM,IAAA,0BAAiB,EAAkB;gBAC/C,IAAI,EAAE,MAAM;gBACZ,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,IAAI,EAAE,WAAW,kBAAkB,CAAC,SAAS,CAAC,EAAE;aACjD,CAAC,CAAC;QACL,CAAC;aAAM,IAAI,SAAS,IAAI,OAAO,SAAS,KAAK,QAAQ,EAAE,CAAC;YACtD,KAAK,GAAG,SAA4B,CAAC;QACvC,CAAC;QAED,OAAO;YACL,KAAK;SACN,CAAC;IACJ,CAAC,CAAA;CACF,CAAC,CAAC"}
@@ -1,13 +0,0 @@
1
- export declare const buttondownNewSubscriber: import("@activepieces/pieces-framework").ITrigger<import("@activepieces/shared").TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
- webhookDescription: import("@activepieces/pieces-framework").ShortTextProperty<false>;
3
- signingKey: import("@activepieces/pieces-framework").ShortTextProperty<false>;
4
- }> | import("@activepieces/pieces-framework").ITrigger<import("@activepieces/shared").TriggerStrategy.POLLING, import("@activepieces/pieces-framework").SecretTextProperty<true>, {
5
- webhookDescription: import("@activepieces/pieces-framework").ShortTextProperty<false>;
6
- signingKey: import("@activepieces/pieces-framework").ShortTextProperty<false>;
7
- }> | import("@activepieces/pieces-framework").ITrigger<import("@activepieces/shared").TriggerStrategy.MANUAL, import("@activepieces/pieces-framework").SecretTextProperty<true>, {
8
- webhookDescription: import("@activepieces/pieces-framework").ShortTextProperty<false>;
9
- signingKey: import("@activepieces/pieces-framework").ShortTextProperty<false>;
10
- }> | import("@activepieces/pieces-framework").ITrigger<import("@activepieces/shared").TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").SecretTextProperty<true>, {
11
- webhookDescription: import("@activepieces/pieces-framework").ShortTextProperty<false>;
12
- signingKey: import("@activepieces/pieces-framework").ShortTextProperty<false>;
13
- }>;
@@ -1,41 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.buttondownNewSubscriber = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_common_1 = require("@activepieces/pieces-common");
6
- const client_1 = require("../common/client");
7
- const webhook_1 = require("../common/webhook");
8
- exports.buttondownNewSubscriber = (0, webhook_1.createButtondownWebhookTrigger)({
9
- name: 'buttondown_new_subscriber',
10
- displayName: 'New Subscriber',
11
- description: 'Triggers when a new subscriber is created.',
12
- aiMetadata: {
13
- description: 'Fires when a subscriber is added to the Buttondown newsletter, regardless of confirmation status. Represents a newly created subscriber record; the payload is enriched with the full subscriber details.',
14
- },
15
- eventType: 'subscriber.created',
16
- sampleData: {
17
- event_type: 'subscriber.created',
18
- data: {
19
- subscriber: 'sub_123456789',
20
- },
21
- },
22
- enrich: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ apiKey, payload }) {
23
- var _b;
24
- const subscriberData = (_b = payload.data) === null || _b === void 0 ? void 0 : _b['subscriber'];
25
- let subscriber;
26
- if (typeof subscriberData === 'string') {
27
- subscriber = yield (0, client_1.buttondownRequest)({
28
- auth: apiKey,
29
- method: pieces_common_1.HttpMethod.GET,
30
- path: `/subscribers/${encodeURIComponent(subscriberData)}`,
31
- });
32
- }
33
- else if (subscriberData && typeof subscriberData === 'object') {
34
- subscriber = subscriberData;
35
- }
36
- return {
37
- subscriber,
38
- };
39
- }),
40
- });
41
- //# sourceMappingURL=new-subscriber.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"new-subscriber.js","sourceRoot":"","sources":["../../../../src/lib/triggers/new-subscriber.ts"],"names":[],"mappings":";;;;AAAA,+DAAyD;AACzD,6CAAqD;AACrD,+CAAmE;AAGtD,QAAA,uBAAuB,GAAG,IAAA,wCAA8B,EAAC;IACpE,IAAI,EAAE,2BAA2B;IACjC,WAAW,EAAE,gBAAgB;IAC7B,WAAW,EAAE,4CAA4C;IACzD,UAAU,EAAE;QACV,WAAW,EACT,2MAA2M;KAC9M;IACD,SAAS,EAAE,oBAAoB;IAC/B,UAAU,EAAE;QACV,UAAU,EAAE,oBAAoB;QAChC,IAAI,EAAE;YACJ,UAAU,EAAE,eAAe;SAC5B;KACF;IACD,MAAM,EAAE,KAA4B,EAAE,oDAAvB,EAAE,MAAM,EAAE,OAAO,EAAE;;QAChC,MAAM,cAAc,GAAG,MAAA,OAAO,CAAC,IAAI,0CAAG,YAAY,CAAC,CAAC;QACpD,IAAI,UAA4C,CAAC;QAEjD,IAAI,OAAO,cAAc,KAAK,QAAQ,EAAE,CAAC;YACvC,UAAU,GAAG,MAAM,IAAA,0BAAiB,EAAuB;gBACzD,IAAI,EAAE,MAAM;gBACZ,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,IAAI,EAAE,gBAAgB,kBAAkB,CAAC,cAAc,CAAC,EAAE;aAC3D,CAAC,CAAC;QACL,CAAC;aAAM,IAAI,cAAc,IAAI,OAAO,cAAc,KAAK,QAAQ,EAAE,CAAC;YAChE,UAAU,GAAG,cAAsC,CAAC;QACtD,CAAC;QAED,OAAO;YACL,UAAU;SACX,CAAC;IACJ,CAAC,CAAA;CACF,CAAC,CAAC"}
@@ -1,13 +0,0 @@
1
- export declare const buttondownSubscriberConfirmed: import("@activepieces/pieces-framework").ITrigger<import("@activepieces/shared").TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").SecretTextProperty<true>, {
2
- webhookDescription: import("@activepieces/pieces-framework").ShortTextProperty<false>;
3
- signingKey: import("@activepieces/pieces-framework").ShortTextProperty<false>;
4
- }> | import("@activepieces/pieces-framework").ITrigger<import("@activepieces/shared").TriggerStrategy.POLLING, import("@activepieces/pieces-framework").SecretTextProperty<true>, {
5
- webhookDescription: import("@activepieces/pieces-framework").ShortTextProperty<false>;
6
- signingKey: import("@activepieces/pieces-framework").ShortTextProperty<false>;
7
- }> | import("@activepieces/pieces-framework").ITrigger<import("@activepieces/shared").TriggerStrategy.MANUAL, import("@activepieces/pieces-framework").SecretTextProperty<true>, {
8
- webhookDescription: import("@activepieces/pieces-framework").ShortTextProperty<false>;
9
- signingKey: import("@activepieces/pieces-framework").ShortTextProperty<false>;
10
- }> | import("@activepieces/pieces-framework").ITrigger<import("@activepieces/shared").TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").SecretTextProperty<true>, {
11
- webhookDescription: import("@activepieces/pieces-framework").ShortTextProperty<false>;
12
- signingKey: import("@activepieces/pieces-framework").ShortTextProperty<false>;
13
- }>;
@@ -1,41 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.buttondownSubscriberConfirmed = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_common_1 = require("@activepieces/pieces-common");
6
- const client_1 = require("../common/client");
7
- const webhook_1 = require("../common/webhook");
8
- exports.buttondownSubscriberConfirmed = (0, webhook_1.createButtondownWebhookTrigger)({
9
- name: 'buttondown_subscriber_confirmed',
10
- displayName: 'Subscriber Confirmed',
11
- description: 'Triggers when a subscriber confirms their email.',
12
- aiMetadata: {
13
- description: 'Fires when a subscriber completes double opt-in and confirms their email address in Buttondown. Represents a subscriber transitioning to confirmed status; the payload is enriched with the full subscriber details.',
14
- },
15
- eventType: 'subscriber.confirmed',
16
- sampleData: {
17
- event_type: 'subscriber.confirmed',
18
- data: {
19
- subscriber: 'sub_123456789',
20
- },
21
- },
22
- enrich: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ apiKey, payload }) {
23
- var _b;
24
- const subscriberData = (_b = payload.data) === null || _b === void 0 ? void 0 : _b['subscriber'];
25
- let subscriber;
26
- if (typeof subscriberData === 'string') {
27
- subscriber = yield (0, client_1.buttondownRequest)({
28
- auth: apiKey,
29
- method: pieces_common_1.HttpMethod.GET,
30
- path: `/subscribers/${encodeURIComponent(subscriberData)}`,
31
- });
32
- }
33
- else if (subscriberData && typeof subscriberData === 'object') {
34
- subscriber = subscriberData;
35
- }
36
- return {
37
- subscriber,
38
- };
39
- }),
40
- });
41
- //# sourceMappingURL=subscriber-confirmed.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"subscriber-confirmed.js","sourceRoot":"","sources":["../../../../src/lib/triggers/subscriber-confirmed.ts"],"names":[],"mappings":";;;;AAAA,+DAAyD;AACzD,6CAAqD;AACrD,+CAAmE;AAGtD,QAAA,6BAA6B,GAAG,IAAA,wCAA8B,EAAC;IAC1E,IAAI,EAAE,iCAAiC;IACvC,WAAW,EAAE,sBAAsB;IACnC,WAAW,EAAE,kDAAkD;IAC/D,UAAU,EAAE;QACV,WAAW,EACT,sNAAsN;KACzN;IACD,SAAS,EAAE,sBAAsB;IACjC,UAAU,EAAE;QACV,UAAU,EAAE,sBAAsB;QAClC,IAAI,EAAE;YACJ,UAAU,EAAE,eAAe;SAC5B;KACF;IACD,MAAM,EAAE,KAA4B,EAAE,oDAAvB,EAAE,MAAM,EAAE,OAAO,EAAE;;QAChC,MAAM,cAAc,GAAG,MAAA,OAAO,CAAC,IAAI,0CAAG,YAAY,CAAC,CAAC;QACpD,IAAI,UAA4C,CAAC;QAEjD,IAAI,OAAO,cAAc,KAAK,QAAQ,EAAE,CAAC;YACvC,UAAU,GAAG,MAAM,IAAA,0BAAiB,EAAuB;gBACzD,IAAI,EAAE,MAAM;gBACZ,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,IAAI,EAAE,gBAAgB,kBAAkB,CAAC,cAAc,CAAC,EAAE;aAC3D,CAAC,CAAC;QACL,CAAC;aAAM,IAAI,cAAc,IAAI,OAAO,cAAc,KAAK,QAAQ,EAAE,CAAC;YAChE,UAAU,GAAG,cAAsC,CAAC;QACtD,CAAC;QAED,OAAO;YACL,UAAU;SACX,CAAC;IACJ,CAAC,CAAA;CACF,CAAC,CAAC"}