@activepieces/piece-ghostcms 0.1.4 → 0.1.6
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 +7 -24
- package/src/index.js +56 -72
- package/README.md +0 -7
- package/src/index.d.ts +0 -8
- package/src/index.js.map +0 -1
- package/src/lib/actions/create-member.d.ts +0 -15
- package/src/lib/actions/create-member.js +0 -60
- package/src/lib/actions/create-member.js.map +0 -1
- package/src/lib/actions/create-post.d.ts +0 -20
- package/src/lib/actions/create-post.js +0 -84
- package/src/lib/actions/create-post.js.map +0 -1
- package/src/lib/actions/find-member.d.ts +0 -6
- package/src/lib/actions/find-member.js +0 -36
- package/src/lib/actions/find-member.js.map +0 -1
- package/src/lib/actions/find-user.d.ts +0 -6
- package/src/lib/actions/find-user.js +0 -36
- package/src/lib/actions/find-user.js.map +0 -1
- package/src/lib/actions/update-member.d.ts +0 -22
- package/src/lib/actions/update-member.js +0 -63
- package/src/lib/actions/update-member.js.map +0 -1
- package/src/lib/common/index.d.ts +0 -33
- package/src/lib/common/index.js +0 -203
- package/src/lib/common/index.js.map +0 -1
- package/src/lib/triggers/member-added.d.ts +0 -14
- package/src/lib/triggers/member-added.js +0 -101
- package/src/lib/triggers/member-added.js.map +0 -1
- package/src/lib/triggers/member-deleted.d.ts +0 -14
- package/src/lib/triggers/member-deleted.js +0 -101
- package/src/lib/triggers/member-deleted.js.map +0 -1
- package/src/lib/triggers/member-edited.d.ts +0 -14
- package/src/lib/triggers/member-edited.js +0 -106
- package/src/lib/triggers/member-edited.js.map +0 -1
- package/src/lib/triggers/page-published.d.ts +0 -14
- package/src/lib/triggers/page-published.js +0 -208
- package/src/lib/triggers/page-published.js.map +0 -1
- package/src/lib/triggers/post-published.d.ts +0 -14
- package/src/lib/triggers/post-published.js +0 -209
- package/src/lib/triggers/post-published.js.map +0 -1
- package/src/lib/triggers/post-scheduled.d.ts +0 -14
- package/src/lib/triggers/post-scheduled.js +0 -209
- package/src/lib/triggers/post-scheduled.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/ghostcms/src/lib/common/index.ts"],"names":[],"mappings":";;;;AAAA,+DAAqE;AACrE,qEAA0D;AAE1D,wEAA+B;AAC/B,6BAAkC;AAErB,QAAA,MAAM,GAAG;IACpB,UAAU,EAAE;QACV,WAAW,EAAE,CAAC,QAAQ,GAAG,IAAI,EAAE,EAAE;YAC/B,OAAO,2BAAQ,CAAC,mBAAmB,CAAC;gBAClC,IAAI,EAAE,aAAS;gBACf,WAAW,EAAE,aAAa;gBAC1B,QAAQ,EAAE,QAAQ;gBAClB,UAAU,EAAE,EAAE;gBACd,OAAO,EAAE,KAAiB,EAAE,oDAAZ,EAAE,IAAI,EAAE;oBACtB,IAAI,CAAC,IAAI,EAAE,CAAC;wBACV,OAAO;4BACL,QAAQ,EAAE,IAAI;4BACd,WAAW,EAAE,sBAAsB;4BACnC,OAAO,EAAE,EAAE;yBACZ,CAAC;oBACJ,CAAC;oBAED,MAAM,WAAW,GACf,CAAC,MAAM,cAAM,CAAC,cAAc,CAAC,IAAI,CAAC,CACnC,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,UAAe,EAAE,EAAE;wBACpC,OAAO;4BACL,KAAK,EAAE,UAAU,CAAC,IAAI;4BACtB,KAAK,EAAE,UAAU,CAAC,EAAE;yBACrB,CAAC;oBACJ,CAAC,CAAC,CAAC;oBACH,OAAO;wBACL,OAAO,EAAE,WAAW;qBACrB,CAAC;gBACJ,CAAC,CAAA;aACF,CAAC,CAAC;QACL,CAAC;QACD,MAAM,EAAE,CAAC,QAAQ,GAAG,IAAI,EAAE,EAAE;YAC1B,OAAO,2BAAQ,CAAC,QAAQ,CAAC;gBACvB,IAAI,EAAE,aAAS;gBACf,WAAW,EAAE,QAAQ;gBACrB,QAAQ,EAAE,QAAQ;gBAClB,UAAU,EAAE,EAAE;gBACd,OAAO,E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AC9C,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,OAAO,EAAE;oBACP,aAAa,EAAE,SAAS,cAAM,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE;iBAC5D;aACF,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;IAEK,QAAQ,CAAC,IAAS;;YACtB,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAC;gBAC5C,GAAG,EAAE,GAAG,IAAI,CAAC,OAAO,wBAAwB;gBAC5C,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,OAAO,EAAE;oBACP,aAAa,EAAE,SAAS,cAAM,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE;iBAC5D;aACF,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;IAEK,OAAO,CAAC,IAAS;;YACrB,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAC;gBAC5C,GAAG,EAAE,GAAG,IAAI,CAAC,OAAO,uBAAuB;gBAC3C,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,OAAO,EAAE;oBACP,aAAa,EAAE,SAAS,cAAM,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE;iBAC5D;aACF,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { TriggerStrategy } from '@activepieces/pieces-framework';
|
|
2
|
-
export declare const memberAdded: 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
|
-
}>, {}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
6
|
-
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
7
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
8
|
-
}>, {}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.MANUAL, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
9
|
-
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
10
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
11
|
-
}>, {}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
12
|
-
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
13
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
14
|
-
}>, {}>;
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.memberAdded = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const __1 = require("../..");
|
|
7
|
-
const common_1 = require("../common");
|
|
8
|
-
exports.memberAdded = (0, pieces_framework_1.createTrigger)({
|
|
9
|
-
auth: __1.ghostAuth,
|
|
10
|
-
name: 'member_added',
|
|
11
|
-
displayName: 'Member Added',
|
|
12
|
-
description: 'Triggers when a new member is added',
|
|
13
|
-
type: pieces_framework_1.TriggerStrategy.WEBHOOK,
|
|
14
|
-
props: {},
|
|
15
|
-
onEnable(context) {
|
|
16
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
17
|
-
var _a;
|
|
18
|
-
const webhookData = yield common_1.common.subscribeWebhook(context.auth, 'member.added', context.webhookUrl);
|
|
19
|
-
yield ((_a = context.store) === null || _a === void 0 ? void 0 : _a.put('_member_added_trigger', {
|
|
20
|
-
webhookId: webhookData.webhooks[0].id,
|
|
21
|
-
}));
|
|
22
|
-
});
|
|
23
|
-
},
|
|
24
|
-
onDisable(context) {
|
|
25
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
26
|
-
var _a;
|
|
27
|
-
const response = yield ((_a = context.store) === null || _a === void 0 ? void 0 : _a.get('_member_added_trigger'));
|
|
28
|
-
if (response !== null && response !== undefined) {
|
|
29
|
-
yield common_1.common.unsubscribeWebhook(context.auth, response.webhookId);
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
},
|
|
33
|
-
run(context) {
|
|
34
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
35
|
-
return [context.payload.body];
|
|
36
|
-
});
|
|
37
|
-
},
|
|
38
|
-
sampleData: {
|
|
39
|
-
member: {
|
|
40
|
-
current: {
|
|
41
|
-
id: '64be7cd524cb9a0001f49f04',
|
|
42
|
-
name: 'First Last',
|
|
43
|
-
note: null,
|
|
44
|
-
uuid: 'b6ef6f63-5bb0-4ace-8abf-f9f7c152659c',
|
|
45
|
-
email: 'my@email.com',
|
|
46
|
-
tiers: [],
|
|
47
|
-
comped: false,
|
|
48
|
-
labels: [],
|
|
49
|
-
status: 'free',
|
|
50
|
-
created_at: '2023-07-24T13:29:57.000Z',
|
|
51
|
-
subscribed: true,
|
|
52
|
-
updated_at: '2023-07-24T13:29:57.000Z',
|
|
53
|
-
email_count: 0,
|
|
54
|
-
geolocation: null,
|
|
55
|
-
newsletters: [
|
|
56
|
-
{
|
|
57
|
-
id: '64be4f5a03946b00098ef8f6',
|
|
58
|
-
name: 'Test Publication',
|
|
59
|
-
slug: 'default-newsletter',
|
|
60
|
-
uuid: '8bc1b063-57fa-4f26-8d7c-46a3d8002fad',
|
|
61
|
-
status: 'active',
|
|
62
|
-
created_at: '2023-07-24T10:15:54.000Z',
|
|
63
|
-
show_badge: true,
|
|
64
|
-
sort_order: 0,
|
|
65
|
-
updated_at: '2023-07-24T10:16:18.000Z',
|
|
66
|
-
visibility: 'members',
|
|
67
|
-
description: null,
|
|
68
|
-
sender_name: null,
|
|
69
|
-
title_color: null,
|
|
70
|
-
border_color: null,
|
|
71
|
-
header_image: null,
|
|
72
|
-
sender_email: null,
|
|
73
|
-
footer_content: null,
|
|
74
|
-
sender_reply_to: 'newsletter',
|
|
75
|
-
title_alignment: 'center',
|
|
76
|
-
background_color: 'light',
|
|
77
|
-
feedback_enabled: false,
|
|
78
|
-
show_comment_cta: true,
|
|
79
|
-
show_header_icon: true,
|
|
80
|
-
show_header_name: false,
|
|
81
|
-
show_header_title: true,
|
|
82
|
-
show_latest_posts: false,
|
|
83
|
-
body_font_category: 'sans_serif',
|
|
84
|
-
show_feature_image: true,
|
|
85
|
-
subscribe_on_signup: true,
|
|
86
|
-
title_font_category: 'sans_serif',
|
|
87
|
-
show_post_title_section: true,
|
|
88
|
-
show_subscription_details: false,
|
|
89
|
-
},
|
|
90
|
-
],
|
|
91
|
-
avatar_image: 'https://www.gravatar.com/avatar/123123123?s=250&r=g&d=blank',
|
|
92
|
-
last_seen_at: null,
|
|
93
|
-
subscriptions: [],
|
|
94
|
-
email_open_rate: null,
|
|
95
|
-
email_opened_count: 0,
|
|
96
|
-
},
|
|
97
|
-
previous: {},
|
|
98
|
-
},
|
|
99
|
-
},
|
|
100
|
-
});
|
|
101
|
-
//# sourceMappingURL=member-added.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"member-added.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/ghostcms/src/lib/triggers/member-added.ts"],"names":[],"mappings":";;;;AAAA,qEAAgF;AAEhF,6BAAkC;AAClC,sCAAmC;AAEtB,QAAA,WAAW,GAAG,IAAA,gCAAa,EAAC;IACvC,IAAI,EAAE,aAAS;IACf,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,cAAc;IAC3B,WAAW,E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,EAAE,IAAI;gBACjB,WAAW,EAAE;oBACX;wBACE,EAAE,EAAE,0BAA0B;wBAC9B,IAAI,EAAE,kBAAkB;wBACxB,IAAI,EAAE,oBAAoB;wBAC1B,IAAI,EAAE,sCAAsC;wBAC5C,MAAM,EAAE,QAAQ;wBAChB,UAAU,EAAE,0BAA0B;wBACtC,UAAU,EAAE,IAAI;wBAChB,UAAU,EAAE,CAAC;wBACb,UAAU,EAAE,0BAA0B;wBACtC,UAAU,EAAE,SAAS;wBACrB,WAAW,EAAE,IAAI;wBACjB,WAAW,EAAE,IAAI;wBACjB,WAAW,EAAE,IAAI;wBACjB,YAAY,EAAE,IAAI;wBAClB,YAAY,EAAE,IAAI;wBAClB,YAAY,EAAE,IAAI;wBAClB,cAAc,EAAE,IAAI;wBACpB,eAAe,EAAE,YAAY;wBAC7B,eAAe,EAAE,QAAQ;wBACzB,gBAAgB,EAAE,OAAO;wBACzB,gBAAgB,EAAE,KAAK;wBACvB,gBAAgB,EAAE,IAAI;wBACtB,gBAAgB,EAAE,IAAI;wBACtB,gBAAgB,EAAE,KAAK;wBACvB,iBAAiB,EAAE,IAAI;wBACvB,iBAAiB,EAAE,KAAK;wBACxB,kBAAkB,EAAE,YAAY;wBAChC,kBAAkB,EAAE,IAAI;wBACxB,mBAAmB,EAAE,IAAI;wBACzB,mBAAmB,EAAE,YAAY;wBACjC,uBAAuB,EAAE,IAAI;wBAC7B,yBAAyB,EAAE,KAAK;qBACjC;iBACF;gBACD,YAAY,EACV,6DAA6D;gBAC/D,YAAY,EAAE,IAAI;gBAClB,aAAa,EAAE,EAAE;gBACjB,eAAe,EAAE,IAAI;gBACrB,kBAAkB,EAAE,CAAC;aACtB;YACD,QAAQ,EAAE,EAAE;SACb;KACF;CACF,CAAC,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { TriggerStrategy } from '@activepieces/pieces-framework';
|
|
2
|
-
export declare const memberDeleted: 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
|
-
}>, {}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
6
|
-
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
7
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
8
|
-
}>, {}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.MANUAL, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
9
|
-
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
10
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
11
|
-
}>, {}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
12
|
-
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
13
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
14
|
-
}>, {}>;
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.memberDeleted = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const __1 = require("../..");
|
|
7
|
-
const common_1 = require("../common");
|
|
8
|
-
exports.memberDeleted = (0, pieces_framework_1.createTrigger)({
|
|
9
|
-
auth: __1.ghostAuth,
|
|
10
|
-
name: 'member_deleted',
|
|
11
|
-
displayName: 'Member Deleted',
|
|
12
|
-
description: 'Triggers when a member is deleted',
|
|
13
|
-
type: pieces_framework_1.TriggerStrategy.WEBHOOK,
|
|
14
|
-
props: {},
|
|
15
|
-
onEnable(context) {
|
|
16
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
17
|
-
var _a;
|
|
18
|
-
const webhookData = yield common_1.common.subscribeWebhook(context.auth, 'member.deleted', context.webhookUrl);
|
|
19
|
-
yield ((_a = context.store) === null || _a === void 0 ? void 0 : _a.put('_member_deleted_trigger', {
|
|
20
|
-
webhookId: webhookData.webhooks[0].id,
|
|
21
|
-
}));
|
|
22
|
-
});
|
|
23
|
-
},
|
|
24
|
-
onDisable(context) {
|
|
25
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
26
|
-
var _a;
|
|
27
|
-
const response = yield ((_a = context.store) === null || _a === void 0 ? void 0 : _a.get('_member_deleted_trigger'));
|
|
28
|
-
if (response !== null && response !== undefined) {
|
|
29
|
-
yield common_1.common.unsubscribeWebhook(context.auth, response.webhookId);
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
},
|
|
33
|
-
run(context) {
|
|
34
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
35
|
-
return [context.payload.body];
|
|
36
|
-
});
|
|
37
|
-
},
|
|
38
|
-
sampleData: {
|
|
39
|
-
member: {
|
|
40
|
-
current: {},
|
|
41
|
-
previous: {
|
|
42
|
-
id: '64be7cd524cb9a0001f49f04',
|
|
43
|
-
name: 'Updated Name',
|
|
44
|
-
note: null,
|
|
45
|
-
uuid: 'b6ef6f63-5bb0-4ace-8abf-f9f7c152659c',
|
|
46
|
-
email: 'my@email.com',
|
|
47
|
-
tiers: [],
|
|
48
|
-
comped: false,
|
|
49
|
-
labels: [],
|
|
50
|
-
status: 'free',
|
|
51
|
-
created_at: '2023-07-24T13:29:57.000Z',
|
|
52
|
-
subscribed: true,
|
|
53
|
-
updated_at: '2023-07-24T13:43:00.000Z',
|
|
54
|
-
email_count: 0,
|
|
55
|
-
geolocation: null,
|
|
56
|
-
newsletters: [
|
|
57
|
-
{
|
|
58
|
-
id: '64be4f5a03946b00098ef8f6',
|
|
59
|
-
name: 'Test Publication',
|
|
60
|
-
slug: 'default-newsletter',
|
|
61
|
-
uuid: '8bc1b063-57fa-4f26-8d7c-46a3d8002fad',
|
|
62
|
-
status: 'active',
|
|
63
|
-
created_at: '2023-07-24T10:15:54.000Z',
|
|
64
|
-
show_badge: true,
|
|
65
|
-
sort_order: 0,
|
|
66
|
-
updated_at: '2023-07-24T10:16:18.000Z',
|
|
67
|
-
visibility: 'members',
|
|
68
|
-
description: null,
|
|
69
|
-
sender_name: null,
|
|
70
|
-
title_color: null,
|
|
71
|
-
border_color: null,
|
|
72
|
-
header_image: null,
|
|
73
|
-
sender_email: null,
|
|
74
|
-
footer_content: null,
|
|
75
|
-
sender_reply_to: 'newsletter',
|
|
76
|
-
title_alignment: 'center',
|
|
77
|
-
background_color: 'light',
|
|
78
|
-
feedback_enabled: false,
|
|
79
|
-
show_comment_cta: true,
|
|
80
|
-
show_header_icon: true,
|
|
81
|
-
show_header_name: false,
|
|
82
|
-
show_header_title: true,
|
|
83
|
-
show_latest_posts: false,
|
|
84
|
-
body_font_category: 'sans_serif',
|
|
85
|
-
show_feature_image: true,
|
|
86
|
-
subscribe_on_signup: true,
|
|
87
|
-
title_font_category: 'sans_serif',
|
|
88
|
-
show_post_title_section: true,
|
|
89
|
-
show_subscription_details: false,
|
|
90
|
-
},
|
|
91
|
-
],
|
|
92
|
-
avatar_image: 'https://www.gravatar.com/avatar/123123123?s=250&r=g&d=blank',
|
|
93
|
-
last_seen_at: null,
|
|
94
|
-
subscriptions: [],
|
|
95
|
-
email_open_rate: null,
|
|
96
|
-
email_opened_count: 0,
|
|
97
|
-
},
|
|
98
|
-
},
|
|
99
|
-
},
|
|
100
|
-
});
|
|
101
|
-
//# sourceMappingURL=member-deleted.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"member-deleted.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/ghostcms/src/lib/triggers/member-deleted.ts"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,IAAI;gBACrB,kBAAkB,EAAE,CAAC;aACtB;SACF;KACF;CACF,CAAC,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { TriggerStrategy } from '@activepieces/pieces-framework';
|
|
2
|
-
export declare const memberEdited: 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
|
-
}>, {}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
6
|
-
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
7
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
8
|
-
}>, {}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.MANUAL, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
9
|
-
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
10
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
11
|
-
}>, {}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
12
|
-
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
13
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
14
|
-
}>, {}>;
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.memberEdited = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const __1 = require("../..");
|
|
7
|
-
const common_1 = require("../common");
|
|
8
|
-
exports.memberEdited = (0, pieces_framework_1.createTrigger)({
|
|
9
|
-
auth: __1.ghostAuth,
|
|
10
|
-
name: 'member_edited',
|
|
11
|
-
displayName: 'Member Edited',
|
|
12
|
-
description: 'Triggers when a member is edited',
|
|
13
|
-
type: pieces_framework_1.TriggerStrategy.WEBHOOK,
|
|
14
|
-
props: {},
|
|
15
|
-
onEnable(context) {
|
|
16
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
17
|
-
var _a;
|
|
18
|
-
const webhookData = yield common_1.common.subscribeWebhook(context.auth, 'member.edited', context.webhookUrl);
|
|
19
|
-
yield ((_a = context.store) === null || _a === void 0 ? void 0 : _a.put('_member_edited_trigger', {
|
|
20
|
-
webhookId: webhookData.webhooks[0].id,
|
|
21
|
-
}));
|
|
22
|
-
});
|
|
23
|
-
},
|
|
24
|
-
onDisable(context) {
|
|
25
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
26
|
-
var _a;
|
|
27
|
-
const response = yield ((_a = context.store) === null || _a === void 0 ? void 0 : _a.get('_member_edited_trigger'));
|
|
28
|
-
if (response !== null && response !== undefined) {
|
|
29
|
-
yield common_1.common.unsubscribeWebhook(context.auth, response.webhookId);
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
},
|
|
33
|
-
run(context) {
|
|
34
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
35
|
-
return [context.payload.body];
|
|
36
|
-
});
|
|
37
|
-
},
|
|
38
|
-
sampleData: {
|
|
39
|
-
member: {
|
|
40
|
-
current: {
|
|
41
|
-
id: '64be7cd524cb9a0001f49f04',
|
|
42
|
-
name: 'Updated Name',
|
|
43
|
-
note: null,
|
|
44
|
-
uuid: 'b6ef6f63-5bb0-4ace-8abf-f9f7c152659c',
|
|
45
|
-
email: 'my@email.com',
|
|
46
|
-
tiers: [],
|
|
47
|
-
comped: false,
|
|
48
|
-
labels: [],
|
|
49
|
-
status: 'free',
|
|
50
|
-
created_at: '2023-07-24T13:29:57.000Z',
|
|
51
|
-
subscribed: true,
|
|
52
|
-
updated_at: '2023-07-24T13:43:00.000Z',
|
|
53
|
-
email_count: 0,
|
|
54
|
-
geolocation: null,
|
|
55
|
-
newsletters: [
|
|
56
|
-
{
|
|
57
|
-
id: '64be4f5a03946b00098ef8f6',
|
|
58
|
-
name: 'Test Publication',
|
|
59
|
-
slug: 'default-newsletter',
|
|
60
|
-
uuid: '8bc1b063-57fa-4f26-8d7c-46a3d8002fad',
|
|
61
|
-
status: 'active',
|
|
62
|
-
created_at: '2023-07-24T10:15:54.000Z',
|
|
63
|
-
show_badge: true,
|
|
64
|
-
sort_order: 0,
|
|
65
|
-
updated_at: '2023-07-24T10:16:18.000Z',
|
|
66
|
-
visibility: 'members',
|
|
67
|
-
description: null,
|
|
68
|
-
sender_name: null,
|
|
69
|
-
title_color: null,
|
|
70
|
-
border_color: null,
|
|
71
|
-
header_image: null,
|
|
72
|
-
sender_email: null,
|
|
73
|
-
footer_content: null,
|
|
74
|
-
sender_reply_to: 'newsletter',
|
|
75
|
-
title_alignment: 'center',
|
|
76
|
-
background_color: 'light',
|
|
77
|
-
feedback_enabled: false,
|
|
78
|
-
show_comment_cta: true,
|
|
79
|
-
show_header_icon: true,
|
|
80
|
-
show_header_name: false,
|
|
81
|
-
show_header_title: true,
|
|
82
|
-
show_latest_posts: false,
|
|
83
|
-
body_font_category: 'sans_serif',
|
|
84
|
-
show_feature_image: true,
|
|
85
|
-
subscribe_on_signup: true,
|
|
86
|
-
title_font_category: 'sans_serif',
|
|
87
|
-
show_post_title_section: true,
|
|
88
|
-
show_subscription_details: false,
|
|
89
|
-
},
|
|
90
|
-
],
|
|
91
|
-
avatar_image: 'https://www.gravatar.com/avatar/123123123?s=250&r=g&d=blank',
|
|
92
|
-
last_seen_at: null,
|
|
93
|
-
subscriptions: [],
|
|
94
|
-
email_open_rate: null,
|
|
95
|
-
email_opened_count: 0,
|
|
96
|
-
},
|
|
97
|
-
previous: {
|
|
98
|
-
email: 'new@email.com',
|
|
99
|
-
note: null,
|
|
100
|
-
updated_at: '2023-07-24T13:38:29.000Z',
|
|
101
|
-
newsletters: [],
|
|
102
|
-
},
|
|
103
|
-
},
|
|
104
|
-
},
|
|
105
|
-
});
|
|
106
|
-
//# sourceMappingURL=member-edited.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"member-edited.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/ghostcms/src/lib/triggers/member-edited.ts"],"names":[],"mappings":";;;;AAAA,qEAAgF;AAEhF,6BAAkC;AAClC,sCAAmC;AAEtB,QAAA,YAAY,GAAG,IAAA,gCAAa,EAAC;IACxC,IAAI,EAAE,aAAS;IACf,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,eAAe;IAC5B,WAAW,EAAE,kCAAkC;IAC/C,IAAI,EAAE,kCAAe,CAAC,OAAO;IAC7B,KAAK,EAAE,EAAE;IACH,QAAQ,CAAC,OAAO;;;YACpB,MAAM,WAAW,GAAQ,MAAM,eAAM,CAAC,gBAAgB,CACpD,OAAO,CAAC,IAAI,EACZ,eAAe,EACf,OAAO,CAAC,UAAU,CACnB,CAAC;YAEF,MAAM,CAAA,MAAA,OAAO,CAAC,KAAK,0CAAE,GAAG,CAAC,wBAAwB,EAAE;gBACjD,SAAS,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,EAAE;aACtC,CAAC,CAAA,CAAC;QACL,CAAC;KAAA;IACK,SAAS,CAAC,OAAO;;;YACrB,MAAM,QAAQ,GAEH,MAAM,CAAA,MAAA,OAAO,CAAC,KAAK,0CAAE,GAAG,CAAC,wBAAwB,CAAC,CAAA,CAAC;YAE9D,IAAI,QAAQ,KAAK,IAAI,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;gBAChD,MAAM,eAAM,CAAC,kBAAkB,CAAC,OAAO,CAAC,IAAI,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAC;YACpE,CAAC;QACH,CAAC;KA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BACxB,kBAAkB,EAAE,YAAY;wBAChC,kBAAkB,EAAE,IAAI;wBACxB,mBAAmB,EAAE,IAAI;wBACzB,mBAAmB,EAAE,YAAY;wBACjC,uBAAuB,EAAE,IAAI;wBAC7B,yBAAyB,EAAE,KAAK;qBACjC;iBACF;gBACD,YAAY,EACV,6DAA6D;gBAC/D,YAAY,EAAE,IAAI;gBAClB,aAAa,EAAE,EAAE;gBACjB,eAAe,EAAE,IAAI;gBACrB,kBAAkB,EAAE,CAAC;aACtB;YACD,QAAQ,EAAE;gBACR,KAAK,EAAE,eAAe;gBACtB,IAAI,EAAE,IAAI;gBACV,UAAU,EAAE,0BAA0B;gBACtC,WAAW,EAAE,EAAE;aAChB;SACF;KACF;CACF,CAAC,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { TriggerStrategy } from '@activepieces/pieces-framework';
|
|
2
|
-
export declare const pagePublished: 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
|
-
}>, {}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
6
|
-
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
7
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
8
|
-
}>, {}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.MANUAL, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
9
|
-
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
10
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
11
|
-
}>, {}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
12
|
-
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
13
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
14
|
-
}>, {}>;
|
|
@@ -1,208 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.pagePublished = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const __1 = require("../..");
|
|
7
|
-
const common_1 = require("../common");
|
|
8
|
-
exports.pagePublished = (0, pieces_framework_1.createTrigger)({
|
|
9
|
-
auth: __1.ghostAuth,
|
|
10
|
-
name: 'page_published',
|
|
11
|
-
displayName: 'Page Published',
|
|
12
|
-
description: 'Triggers when a page is published',
|
|
13
|
-
type: pieces_framework_1.TriggerStrategy.WEBHOOK,
|
|
14
|
-
props: {},
|
|
15
|
-
onEnable(context) {
|
|
16
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
17
|
-
var _a;
|
|
18
|
-
const webhookData = yield common_1.common.subscribeWebhook(context.auth, 'page.published', context.webhookUrl);
|
|
19
|
-
yield ((_a = context.store) === null || _a === void 0 ? void 0 : _a.put('_page_published_trigger', {
|
|
20
|
-
webhookId: webhookData.webhooks[0].id,
|
|
21
|
-
}));
|
|
22
|
-
});
|
|
23
|
-
},
|
|
24
|
-
onDisable(context) {
|
|
25
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
26
|
-
var _a;
|
|
27
|
-
const response = yield ((_a = context.store) === null || _a === void 0 ? void 0 : _a.get('_page_published_trigger'));
|
|
28
|
-
if (response !== null && response !== undefined) {
|
|
29
|
-
yield common_1.common.unsubscribeWebhook(context.auth, response.webhookId);
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
},
|
|
33
|
-
run(context) {
|
|
34
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
35
|
-
return [context.payload.body];
|
|
36
|
-
});
|
|
37
|
-
},
|
|
38
|
-
sampleData: {
|
|
39
|
-
page: {
|
|
40
|
-
current: {
|
|
41
|
-
id: '64be860724cb9a0001f49f37',
|
|
42
|
-
url: 'https://test-publication.ghost.io/my-page/',
|
|
43
|
-
html: '<p>Page content</p>',
|
|
44
|
-
slug: 'my-page',
|
|
45
|
-
tags: [],
|
|
46
|
-
uuid: 'c2d16c98-f967-4aaa-ba10-ff4fedbb351e',
|
|
47
|
-
count: {
|
|
48
|
-
signups: 0,
|
|
49
|
-
paid_conversions: 0,
|
|
50
|
-
negative_feedback: 0,
|
|
51
|
-
positive_feedback: 0,
|
|
52
|
-
},
|
|
53
|
-
tiers: [
|
|
54
|
-
{
|
|
55
|
-
id: '64be4f5a03946b00098ef8f4',
|
|
56
|
-
name: 'Free',
|
|
57
|
-
slug: 'free',
|
|
58
|
-
type: 'free',
|
|
59
|
-
active: true,
|
|
60
|
-
currency: null,
|
|
61
|
-
created_at: '2023-07-24T10:15:54.000Z',
|
|
62
|
-
trial_days: 0,
|
|
63
|
-
updated_at: '2023-07-24T10:15:54.000Z',
|
|
64
|
-
visibility: 'public',
|
|
65
|
-
description: null,
|
|
66
|
-
yearly_price: null,
|
|
67
|
-
monthly_price: null,
|
|
68
|
-
yearly_price_id: null,
|
|
69
|
-
monthly_price_id: null,
|
|
70
|
-
welcome_page_url: null,
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
id: '64be4f5a03946b00098ef8f5',
|
|
74
|
-
name: 'Test Publication',
|
|
75
|
-
slug: 'default-product',
|
|
76
|
-
type: 'paid',
|
|
77
|
-
active: true,
|
|
78
|
-
currency: 'usd',
|
|
79
|
-
created_at: '2023-07-24T10:15:54.000Z',
|
|
80
|
-
trial_days: 0,
|
|
81
|
-
updated_at: '2023-07-24T10:15:54.000Z',
|
|
82
|
-
visibility: 'public',
|
|
83
|
-
description: null,
|
|
84
|
-
yearly_price: 5000,
|
|
85
|
-
monthly_price: 500,
|
|
86
|
-
yearly_price_id: null,
|
|
87
|
-
monthly_price_id: null,
|
|
88
|
-
welcome_page_url: null,
|
|
89
|
-
},
|
|
90
|
-
],
|
|
91
|
-
title: 'My Page',
|
|
92
|
-
status: 'published',
|
|
93
|
-
authors: [
|
|
94
|
-
{
|
|
95
|
-
id: '1',
|
|
96
|
-
bio: null,
|
|
97
|
-
url: 'https://test-publication.ghost.io/author/slug/',
|
|
98
|
-
name: 'First Last',
|
|
99
|
-
slug: 'slug',
|
|
100
|
-
tour: null,
|
|
101
|
-
email: 'my@email.com',
|
|
102
|
-
roles: [
|
|
103
|
-
{
|
|
104
|
-
id: '64be4f5903946b00098ef8eb',
|
|
105
|
-
name: 'Owner',
|
|
106
|
-
created_at: '2023-07-24T10:15:53.000Z',
|
|
107
|
-
updated_at: '2023-07-24T10:15:53.000Z',
|
|
108
|
-
description: 'Blog Owner',
|
|
109
|
-
},
|
|
110
|
-
],
|
|
111
|
-
status: 'active',
|
|
112
|
-
twitter: null,
|
|
113
|
-
website: null,
|
|
114
|
-
facebook: null,
|
|
115
|
-
location: null,
|
|
116
|
-
last_seen: '2023-07-24T14:05:21.000Z',
|
|
117
|
-
created_at: '2023-07-24T10:15:53.000Z',
|
|
118
|
-
meta_title: null,
|
|
119
|
-
updated_at: '2023-07-24T14:05:21.000Z',
|
|
120
|
-
cover_image: null,
|
|
121
|
-
accessibility: '{"nightShift":true}',
|
|
122
|
-
profile_image: 'https://www.gravatar.com/avatar/123123123?s=250&r=x&d=mp',
|
|
123
|
-
meta_description: null,
|
|
124
|
-
comment_notifications: true,
|
|
125
|
-
mention_notifications: true,
|
|
126
|
-
milestone_notifications: true,
|
|
127
|
-
free_member_signup_notification: true,
|
|
128
|
-
paid_subscription_started_notification: true,
|
|
129
|
-
paid_subscription_canceled_notification: false,
|
|
130
|
-
},
|
|
131
|
-
],
|
|
132
|
-
excerpt: 'Page content',
|
|
133
|
-
featured: false,
|
|
134
|
-
og_image: null,
|
|
135
|
-
og_title: null,
|
|
136
|
-
mobiledoc: '{"version":"0.3.1","atoms":[],"cards":[],"markups":[],"sections":[[1,"p",[[0,[],0,"Page content"]]]],"ghostVersion":"4.0"}',
|
|
137
|
-
plaintext: 'Page content',
|
|
138
|
-
comment_id: '64be860724cb9a0001f49f37',
|
|
139
|
-
created_at: '2023-07-24T14:09:11.000Z',
|
|
140
|
-
meta_title: null,
|
|
141
|
-
updated_at: '2023-07-24T14:09:19.000Z',
|
|
142
|
-
visibility: 'public',
|
|
143
|
-
frontmatter: null,
|
|
144
|
-
primary_tag: null,
|
|
145
|
-
published_at: '2023-07-24T14:09:19.000Z',
|
|
146
|
-
reading_time: 0,
|
|
147
|
-
canonical_url: null,
|
|
148
|
-
feature_image: null,
|
|
149
|
-
twitter_image: null,
|
|
150
|
-
twitter_title: null,
|
|
151
|
-
custom_excerpt: null,
|
|
152
|
-
og_description: null,
|
|
153
|
-
post_revisions: [],
|
|
154
|
-
primary_author: {
|
|
155
|
-
id: '1',
|
|
156
|
-
bio: null,
|
|
157
|
-
url: 'https://test-publication.ghost.io/author/slug/',
|
|
158
|
-
name: 'First Last',
|
|
159
|
-
slug: 'slug',
|
|
160
|
-
tour: null,
|
|
161
|
-
email: 'my@email.com',
|
|
162
|
-
roles: [
|
|
163
|
-
{
|
|
164
|
-
id: '64be4f5903946b00098ef8eb',
|
|
165
|
-
name: 'Owner',
|
|
166
|
-
created_at: '2023-07-24T10:15:53.000Z',
|
|
167
|
-
updated_at: '2023-07-24T10:15:53.000Z',
|
|
168
|
-
description: 'Blog Owner',
|
|
169
|
-
},
|
|
170
|
-
],
|
|
171
|
-
status: 'active',
|
|
172
|
-
twitter: null,
|
|
173
|
-
website: null,
|
|
174
|
-
facebook: null,
|
|
175
|
-
location: null,
|
|
176
|
-
last_seen: '2023-07-24T14:05:21.000Z',
|
|
177
|
-
created_at: '2023-07-24T10:15:53.000Z',
|
|
178
|
-
meta_title: null,
|
|
179
|
-
updated_at: '2023-07-24T14:05:21.000Z',
|
|
180
|
-
cover_image: null,
|
|
181
|
-
accessibility: '{"nightShift":true}',
|
|
182
|
-
profile_image: 'https://www.gravatar.com/avatar/123123123?s=250&r=x&d=mp',
|
|
183
|
-
meta_description: null,
|
|
184
|
-
comment_notifications: true,
|
|
185
|
-
mention_notifications: true,
|
|
186
|
-
milestone_notifications: true,
|
|
187
|
-
free_member_signup_notification: true,
|
|
188
|
-
paid_subscription_started_notification: true,
|
|
189
|
-
paid_subscription_canceled_notification: false,
|
|
190
|
-
},
|
|
191
|
-
custom_template: null,
|
|
192
|
-
meta_description: null,
|
|
193
|
-
feature_image_alt: null,
|
|
194
|
-
codeinjection_foot: null,
|
|
195
|
-
codeinjection_head: null,
|
|
196
|
-
twitter_description: null,
|
|
197
|
-
feature_image_caption: null,
|
|
198
|
-
show_title_and_feature_image: true,
|
|
199
|
-
},
|
|
200
|
-
previous: {
|
|
201
|
-
status: 'draft',
|
|
202
|
-
updated_at: '2023-07-24T14:09:16.000Z',
|
|
203
|
-
published_at: null,
|
|
204
|
-
},
|
|
205
|
-
},
|
|
206
|
-
},
|
|
207
|
-
});
|
|
208
|
-
//# sourceMappingURL=page-published.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"page-published.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/ghostcms/src/lib/triggers/page-published.ts"],"names":[],"mappings":";;;;AAAA,qEAAgF;AAEhF,6BAAkC;AAClC,sCAAmC;AAEtB,QAAA,aAAa,GAAG,IAAA,gCAAa,EAAC;IACzC,IAAI,EAAE,aAAS;IACf,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,gBAAgB;IAC7B,WAAW,EAAE,mCAAmC;IAChD,IAAI,EAAE,kCAAe,CAAC,OAAO;IAC7B,KAAK,EAAE,EAAE;IACH,QAAQ,CAAC,OAAO;;;YACpB,MAAM,WAAW,GAAQ,MAAM,eAAM,CAAC,gBAAgB,CACpD,OAAO,CAAC,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AU,EAAE,0BAA0B;4BACtC,UAAU,EAAE,0BAA0B;4BACtC,WAAW,EAAE,YAAY;yBAC1B;qBACF;oBACD,MAAM,EAAE,QAAQ;oBAChB,OAAO,EAAE,IAAI;oBACb,OAAO,EAAE,IAAI;oBACb,QAAQ,EAAE,IAAI;oBACd,QAAQ,EAAE,IAAI;oBACd,SAAS,EAAE,0BAA0B;oBACrC,UAAU,EAAE,0BAA0B;oBACtC,UAAU,EAAE,IAAI;oBAChB,UAAU,EAAE,0BAA0B;oBACtC,WAAW,EAAE,IAAI;oBACjB,aAAa,EAAE,qBAAqB;oBACpC,aAAa,EACX,0DAA0D;oBAC5D,gBAAgB,EAAE,IAAI;oBACtB,qBAAqB,EAAE,IAAI;oBAC3B,qBAAqB,EAAE,IAAI;oBAC3B,uBAAuB,EAAE,IAAI;oBAC7B,+BAA+B,EAAE,IAAI;oBACrC,sCAAsC,EAAE,IAAI;oBAC5C,uCAAuC,EAAE,KAAK;iBAC/C;gBACD,eAAe,EAAE,IAAI;gBACrB,gBAAgB,EAAE,IAAI;gBACtB,iBAAiB,EAAE,IAAI;gBACvB,kBAAkB,EAAE,IAAI;gBACxB,kBAAkB,EAAE,IAAI;gBACxB,mBAAmB,EAAE,IAAI;gBACzB,qBAAqB,EAAE,IAAI;gBAC3B,4BAA4B,EAAE,IAAI;aACnC;YACD,QAAQ,EAAE;gBACR,MAAM,EAAE,OAAO;gBACf,UAAU,EAAE,0BAA0B;gBACtC,YAAY,EAAE,IAAI;aACnB;SACF;KACF;CACF,CAAC,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { TriggerStrategy } from '@activepieces/pieces-framework';
|
|
2
|
-
export declare const postPublished: 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
|
-
}>, {}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
6
|
-
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
7
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
8
|
-
}>, {}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.MANUAL, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
9
|
-
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
10
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
11
|
-
}>, {}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
12
|
-
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
13
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
14
|
-
}>, {}>;
|