@activepieces/piece-ghostcms 0.1.5 → 0.1.8
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 -16
- package/src/index.js +56 -72
- package/src/index.d.ts +0 -9
- package/src/index.d.ts.map +0 -1
- package/src/index.js.map +0 -1
- package/src/lib/actions/create-member.d.ts +0 -16
- package/src/lib/actions/create-member.d.ts.map +0 -1
- package/src/lib/actions/create-member.js +0 -62
- package/src/lib/actions/create-member.js.map +0 -1
- package/src/lib/actions/create-post.d.ts +0 -21
- package/src/lib/actions/create-post.d.ts.map +0 -1
- package/src/lib/actions/create-post.js +0 -86
- package/src/lib/actions/create-post.js.map +0 -1
- package/src/lib/actions/find-member.d.ts +0 -7
- package/src/lib/actions/find-member.d.ts.map +0 -1
- package/src/lib/actions/find-member.js +0 -38
- package/src/lib/actions/find-member.js.map +0 -1
- package/src/lib/actions/find-user.d.ts +0 -7
- package/src/lib/actions/find-user.d.ts.map +0 -1
- package/src/lib/actions/find-user.js +0 -38
- package/src/lib/actions/find-user.js.map +0 -1
- package/src/lib/actions/update-member.d.ts +0 -23
- package/src/lib/actions/update-member.d.ts.map +0 -1
- package/src/lib/actions/update-member.js +0 -65
- package/src/lib/actions/update-member.js.map +0 -1
- package/src/lib/common/index.d.ts +0 -34
- package/src/lib/common/index.d.ts.map +0 -1
- 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 -15
- package/src/lib/triggers/member-added.d.ts.map +0 -1
- package/src/lib/triggers/member-added.js +0 -104
- package/src/lib/triggers/member-added.js.map +0 -1
- package/src/lib/triggers/member-deleted.d.ts +0 -15
- package/src/lib/triggers/member-deleted.d.ts.map +0 -1
- package/src/lib/triggers/member-deleted.js +0 -104
- package/src/lib/triggers/member-deleted.js.map +0 -1
- package/src/lib/triggers/member-edited.d.ts +0 -15
- package/src/lib/triggers/member-edited.d.ts.map +0 -1
- package/src/lib/triggers/member-edited.js +0 -109
- package/src/lib/triggers/member-edited.js.map +0 -1
- package/src/lib/triggers/page-published.d.ts +0 -15
- package/src/lib/triggers/page-published.d.ts.map +0 -1
- package/src/lib/triggers/page-published.js +0 -211
- package/src/lib/triggers/page-published.js.map +0 -1
- package/src/lib/triggers/post-published.d.ts +0 -15
- package/src/lib/triggers/post-published.d.ts.map +0 -1
- package/src/lib/triggers/post-published.js +0 -212
- package/src/lib/triggers/post-published.js.map +0 -1
- package/src/lib/triggers/post-scheduled.d.ts +0 -15
- package/src/lib/triggers/post-scheduled.d.ts.map +0 -1
- package/src/lib/triggers/post-scheduled.js +0 -212
- package/src/lib/triggers/post-scheduled.js.map +0 -1
package/src/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare const ghostAuth: import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
-
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
4
|
-
}>;
|
|
5
|
-
export declare const ghostcms: import("@activepieces/pieces-framework").Piece<import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
6
|
-
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
7
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
8
|
-
}>>;
|
|
9
|
-
//# sourceMappingURL=index.d.ts.map
|
package/src/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AA6BA,eAAO,MAAM,SAAS;;;EAgBpB,CAAC;AAEH,eAAO,MAAM,QAAQ;;;GAkCnB,CAAC"}
|
package/src/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;AAAA,qEAIw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AE,CAAO,IAAI,EAAE,EAAE;gBAAC,OAAA,CAAC;oBAC5B,aAAa,EAAE,SAAS,eAAM,CAAC,aAAa,CAC1C,IAAI,CAAC,KAAK,CAAC,MAAM,CAClB,EAAE;iBACJ,CAAC,CAAA;cAAA;SACH,CAAC;KACH;IACD,QAAQ,EAAE;QACR,0BAAW;QACX,4BAAY;QACZ,8BAAa;QACb,8BAAa;QACb,8BAAa;QACb,8BAAa;KACd;CACF,CAAC,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare const createMember: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
-
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
4
|
-
}>, {
|
|
5
|
-
email: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
6
|
-
name: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
7
|
-
note: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
8
|
-
newsletters: import("@activepieces/pieces-framework").MultiSelectDropdownProperty<any, false, 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").MultiSelectDropdownProperty<any, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
12
|
-
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
13
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
14
|
-
}>>;
|
|
15
|
-
}>;
|
|
16
|
-
//# sourceMappingURL=create-member.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-member.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/create-member.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;EAqDvB,CAAC"}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createMember = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
|
-
const __1 = require("../..");
|
|
8
|
-
const common_1 = require("../common");
|
|
9
|
-
exports.createMember = (0, pieces_framework_1.createAction)({
|
|
10
|
-
name: 'create_member',
|
|
11
|
-
displayName: 'Create Member',
|
|
12
|
-
description: 'Create a new member',
|
|
13
|
-
audience: 'both',
|
|
14
|
-
aiMetadata: { description: 'Creates a new member in a Ghost publication from an email (required), with optional name, internal note, and newsletter subscriptions. Use to add a subscriber/member to the audience. Not idempotent: each call creates a member and re-running with the same email may produce a duplicate or error.', idempotent: false },
|
|
15
|
-
auth: __1.ghostAuth,
|
|
16
|
-
props: {
|
|
17
|
-
email: pieces_framework_1.Property.ShortText({
|
|
18
|
-
displayName: 'Email',
|
|
19
|
-
required: true,
|
|
20
|
-
}),
|
|
21
|
-
name: pieces_framework_1.Property.ShortText({
|
|
22
|
-
displayName: 'Full Name',
|
|
23
|
-
required: false,
|
|
24
|
-
}),
|
|
25
|
-
note: pieces_framework_1.Property.ShortText({
|
|
26
|
-
displayName: 'Note',
|
|
27
|
-
required: false,
|
|
28
|
-
}),
|
|
29
|
-
newsletters: common_1.common.properties.newsletters(false),
|
|
30
|
-
},
|
|
31
|
-
run(context) {
|
|
32
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
33
|
-
const newsletters = [];
|
|
34
|
-
if (context.propsValue.newsletters) {
|
|
35
|
-
context.propsValue.newsletters.forEach((newsletter) => {
|
|
36
|
-
newsletters.push({
|
|
37
|
-
id: newsletter,
|
|
38
|
-
});
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
42
|
-
url: `${context.auth.props.baseUrl}/ghost/api/admin/members`,
|
|
43
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
44
|
-
headers: {
|
|
45
|
-
Authorization: `Ghost ${common_1.common.jwtFromApiKey(context.auth.props.apiKey)}`,
|
|
46
|
-
},
|
|
47
|
-
body: {
|
|
48
|
-
members: [
|
|
49
|
-
{
|
|
50
|
-
email: context.propsValue.email,
|
|
51
|
-
name: context.propsValue.name,
|
|
52
|
-
note: context.propsValue.note,
|
|
53
|
-
newsletters: newsletters,
|
|
54
|
-
},
|
|
55
|
-
],
|
|
56
|
-
},
|
|
57
|
-
});
|
|
58
|
-
return response.body;
|
|
59
|
-
});
|
|
60
|
-
},
|
|
61
|
-
});
|
|
62
|
-
//# sourceMappingURL=create-member.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-member.js","sourceRoot":"","sources":["../../../../src/lib/actions/create-member.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAqE;AAErE,6BAAkC;AAClC,sCAAmC;AAEtB,QAAA,YAAY,GAAG,IAAA,+BAAY,EAAC;IACvC,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,eAAe;IAC5B,WAAW,EAAE,qBAAqB;IAClC,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE,EAAE,WAAW,EAAE,wSAAwS,EAAE,UAAU,EAAE,KAAK,EAAE;IACxV,IAAI,EAAE,aAAS;IACf,KAAK,EAAE;QACL,KAAK,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACxB,WAAW,EAAE,OAAO;YACpB,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,IAAI,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACvB,WAAW,EAAE,WAAW;YACxB,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,IAAI,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACvB,WAAW,EAAE,MAAM;YACnB,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,WAAW,EAAE,eAAM,CAAC,UAAU,CAAC,WAAW,CAAC,KAAK,CAAC;KAClD;IAEK,GAAG,CAAC,OAAO;;YACf,MAAM,WAAW,GAAU,EAAE,CAAC;YAC9B,IAAI,OAAO,CAAC,UAAU,CAAC,WAAW,EAAE,CAAC;gBACnC,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,UAAe,EAAE,EAAE;oBACzD,WAAW,CAAC,IAAI,CAAC;wBACf,EAAE,EAAE,UAAU;qBACf,CAAC,CAAC;gBACL,CAAC,CAAC,CAAC;YACL,CAAC;YAED,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAC;gBAC5C,GAAG,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,0BAA0B;gBAC5D,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,OAAO,EAAE;oBACP,aAAa,EAAE,SAAS,eAAM,CAAC,aAAa,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE;iBAC1E;gBACD,IAAI,EAAE;oBACJ,OAAO,EAAE;wBACP;4BACE,KAAK,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK;4BAC/B,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,IAAI;4BAC7B,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,IAAI;4BAC7B,WAAW,EAAE,WAAW;yBACzB;qBACF;iBACF;aACF,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export declare const createPost: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
-
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
4
|
-
}>, {
|
|
5
|
-
title: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
6
|
-
slug: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
7
|
-
status: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
|
|
8
|
-
publishedAt: import("@activepieces/pieces-framework").DateTimeProperty<false>;
|
|
9
|
-
html: import("@activepieces/pieces-framework").LongTextProperty<true>;
|
|
10
|
-
customExcerpt: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
11
|
-
author: import("@activepieces/pieces-framework").DropdownProperty<unknown, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
12
|
-
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
13
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
14
|
-
}>>;
|
|
15
|
-
featured: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
16
|
-
tags: import("@activepieces/pieces-framework").MultiSelectDropdownProperty<unknown, false, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
17
|
-
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
18
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
19
|
-
}>>;
|
|
20
|
-
}>;
|
|
21
|
-
//# sourceMappingURL=create-post.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-post.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/create-post.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;EA4ErB,CAAC"}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createPost = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
|
-
const __1 = require("../..");
|
|
8
|
-
const common_1 = require("../common");
|
|
9
|
-
exports.createPost = (0, pieces_framework_1.createAction)({
|
|
10
|
-
name: 'create_post',
|
|
11
|
-
displayName: 'Create Post',
|
|
12
|
-
description: 'Create a new post',
|
|
13
|
-
audience: 'both',
|
|
14
|
-
aiMetadata: { description: 'Creates a new post in a Ghost publication from a title and HTML content, with the status controlling whether it is saved as a draft, published immediately, or scheduled (scheduled requires a future Published At). Supports optional slug, excerpt, author, tags, and a featured flag. Not idempotent: each call creates a separate post.', idempotent: false },
|
|
15
|
-
auth: __1.ghostAuth,
|
|
16
|
-
props: {
|
|
17
|
-
title: pieces_framework_1.Property.ShortText({
|
|
18
|
-
displayName: 'Title',
|
|
19
|
-
required: true,
|
|
20
|
-
}),
|
|
21
|
-
slug: pieces_framework_1.Property.ShortText({
|
|
22
|
-
displayName: 'Slug',
|
|
23
|
-
required: false,
|
|
24
|
-
}),
|
|
25
|
-
status: pieces_framework_1.Property.StaticDropdown({
|
|
26
|
-
displayName: 'Status',
|
|
27
|
-
required: true,
|
|
28
|
-
options: {
|
|
29
|
-
options: [
|
|
30
|
-
{ label: 'Draft', value: 'draft' },
|
|
31
|
-
{ label: 'Published', value: 'published' },
|
|
32
|
-
{ label: 'Scheduled', value: 'scheduled' },
|
|
33
|
-
],
|
|
34
|
-
},
|
|
35
|
-
}),
|
|
36
|
-
publishedAt: pieces_framework_1.Property.DateTime({
|
|
37
|
-
displayName: 'Published At',
|
|
38
|
-
required: false,
|
|
39
|
-
}),
|
|
40
|
-
html: pieces_framework_1.Property.LongText({
|
|
41
|
-
displayName: 'Content (HTML)',
|
|
42
|
-
required: true,
|
|
43
|
-
}),
|
|
44
|
-
customExcerpt: pieces_framework_1.Property.ShortText({
|
|
45
|
-
displayName: 'Custom Excerpt',
|
|
46
|
-
required: false,
|
|
47
|
-
}),
|
|
48
|
-
author: common_1.common.properties.author,
|
|
49
|
-
featured: pieces_framework_1.Property.Checkbox({
|
|
50
|
-
displayName: 'Featured',
|
|
51
|
-
required: false,
|
|
52
|
-
}),
|
|
53
|
-
tags: common_1.common.properties.tags,
|
|
54
|
-
},
|
|
55
|
-
run(context) {
|
|
56
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
57
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
58
|
-
url: `${context.auth.props.baseUrl}/ghost/api/admin/posts`,
|
|
59
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
60
|
-
headers: {
|
|
61
|
-
Authorization: `Ghost ${common_1.common.jwtFromApiKey(context.auth.props.apiKey)}`,
|
|
62
|
-
},
|
|
63
|
-
body: {
|
|
64
|
-
posts: [
|
|
65
|
-
{
|
|
66
|
-
title: context.propsValue.title,
|
|
67
|
-
slug: context.propsValue.slug,
|
|
68
|
-
status: context.propsValue.status,
|
|
69
|
-
html: context.propsValue.html,
|
|
70
|
-
published_at: context.propsValue.publishedAt,
|
|
71
|
-
authors: [context.propsValue.author],
|
|
72
|
-
featured: context.propsValue.featured,
|
|
73
|
-
custom_excerpt: context.propsValue.customExcerpt,
|
|
74
|
-
tags: context.propsValue.tags,
|
|
75
|
-
},
|
|
76
|
-
],
|
|
77
|
-
},
|
|
78
|
-
queryParams: {
|
|
79
|
-
source: 'html',
|
|
80
|
-
},
|
|
81
|
-
});
|
|
82
|
-
return response.body;
|
|
83
|
-
});
|
|
84
|
-
},
|
|
85
|
-
});
|
|
86
|
-
//# sourceMappingURL=create-post.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-post.js","sourceRoot":"","sources":["../../../../src/lib/actions/create-post.ts"],"names":[],"mappings":";;;;AAAA,qEAIwC;AACxC,+DAAqE;AAErE,6BAAkC;AAClC,sCAAmC;AAEtB,QAAA,UAAU,GAAG,IAAA,+BAAY,EAAC;IACrC,IAAI,EAAE,aAAa;I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AAE,eAAM,CAAC,UAAU,CAAC,IAAI;KAC7B;IAEK,GAAG,CAAC,OAAO;;YACf,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAC;gBAC5C,GAAG,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,wBAAwB;gBAC1D,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,OAAO,EAAE;oBACP,aAAa,EAAE,SAAS,eAAM,CAAC,aAAa,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE;iBAC1E;gBACD,IAAI,EAAE;oBACJ,KAAK,EAAE;wBACL;4BACE,KAAK,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK;4BAC/B,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,IAAI;4BAC7B,MAAM,EAAE,OAAO,CAAC,UAAU,CAAC,MAAM;4BACjC,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,IAAI;4BAC7B,YAAY,EAAE,OAAO,CAAC,UAAU,CAAC,WAAW;4BAC5C,OAAO,EAAE,CAAC,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC;4BACpC,QAAQ,EAAE,OAAO,CAAC,UAAU,CAAC,QAAQ;4BACrC,cAAc,EAAE,OAAO,CAAC,UAAU,CAAC,aAAa;4BAChD,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,IAAI;yBAC9B;qBACF;iBACF;gBACD,WAAW,EAAE;oBACX,MAAM,EAAE,MAAM;iBACf;aACF,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const findMember: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
-
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
4
|
-
}>, {
|
|
5
|
-
email: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
6
|
-
}>;
|
|
7
|
-
//# sourceMappingURL=find-member.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"find-member.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/find-member.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,UAAU;;;;;EA4BrB,CAAC"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.findMember = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
|
-
const __1 = require("../..");
|
|
8
|
-
const common_1 = require("../common");
|
|
9
|
-
exports.findMember = (0, pieces_framework_1.createAction)({
|
|
10
|
-
name: 'find_member',
|
|
11
|
-
displayName: 'Find Member',
|
|
12
|
-
description: 'Find a member by email',
|
|
13
|
-
audience: 'both',
|
|
14
|
-
aiMetadata: { description: 'Looks up Ghost members filtered by an exact email address and returns the matches. Use to check whether a member exists or to resolve a member id before updating. Read-only and idempotent.', idempotent: true },
|
|
15
|
-
auth: __1.ghostAuth,
|
|
16
|
-
props: {
|
|
17
|
-
email: pieces_framework_1.Property.ShortText({
|
|
18
|
-
displayName: 'Email',
|
|
19
|
-
required: true,
|
|
20
|
-
}),
|
|
21
|
-
},
|
|
22
|
-
run(context) {
|
|
23
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
24
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
25
|
-
url: `${context.auth.props.baseUrl}/ghost/api/admin/members`,
|
|
26
|
-
method: pieces_common_1.HttpMethod.GET,
|
|
27
|
-
headers: {
|
|
28
|
-
Authorization: `Ghost ${common_1.common.jwtFromApiKey(context.auth.props.apiKey)}`,
|
|
29
|
-
},
|
|
30
|
-
queryParams: {
|
|
31
|
-
filter: `email:${context.propsValue.email}`,
|
|
32
|
-
},
|
|
33
|
-
});
|
|
34
|
-
return response.body;
|
|
35
|
-
});
|
|
36
|
-
},
|
|
37
|
-
});
|
|
38
|
-
//# sourceMappingURL=find-member.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"find-member.js","sourceRoot":"","sources":["../../../../src/lib/actions/find-member.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAqE;AAErE,6BAAkC;AAClC,sCAAmC;AAEtB,QAAA,UAAU,GAAG,IAAA,+BAAY,EAAC;IACrC,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,aAAa;IAC1B,WAAW,EAAE,wBAAwB;IACrC,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE,EAAE,WAAW,EAAE,8LAA8L,EAAE,UAAU,EAAE,IAAI,EAAE;IAC7O,IAAI,EAAE,aAAS;IACf,KAAK,EAAE;QACL,KAAK,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACxB,WAAW,EAAE,OAAO;YACpB,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IAEK,GAAG,CAAC,OAAO;;YACf,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAC;gBAC5C,GAAG,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,0BAA0B;gBAC5D,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,OAAO,EAAE;oBACP,aAAa,EAAE,SAAS,eAAM,CAAC,aAAa,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE;iBAC1E;gBACD,WAAW,EAAE;oBACX,MAAM,EAAE,SAAS,OAAO,CAAC,UAAU,CAAC,KAAK,EAAE;iBAC5C;aACF,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const findUser: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
-
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
4
|
-
}>, {
|
|
5
|
-
email: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
6
|
-
}>;
|
|
7
|
-
//# sourceMappingURL=find-user.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"find-user.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/find-user.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,QAAQ;;;;;EA4BnB,CAAC"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.findUser = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
|
-
const __1 = require("../..");
|
|
8
|
-
const common_1 = require("../common");
|
|
9
|
-
exports.findUser = (0, pieces_framework_1.createAction)({
|
|
10
|
-
name: 'find_user',
|
|
11
|
-
displayName: 'Find User',
|
|
12
|
-
description: 'Find a staff user by email',
|
|
13
|
-
audience: 'both',
|
|
14
|
-
aiMetadata: { description: 'Looks up Ghost staff users (authors/admins, not members) filtered by an exact email address and returns the matches. Use to resolve a staff user id, e.g. to set as a post author. Read-only and idempotent.', idempotent: true },
|
|
15
|
-
auth: __1.ghostAuth,
|
|
16
|
-
props: {
|
|
17
|
-
email: pieces_framework_1.Property.ShortText({
|
|
18
|
-
displayName: 'Email',
|
|
19
|
-
required: true,
|
|
20
|
-
}),
|
|
21
|
-
},
|
|
22
|
-
run(context) {
|
|
23
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
24
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
25
|
-
url: `${context.auth.props.baseUrl}/ghost/api/admin/users`,
|
|
26
|
-
method: pieces_common_1.HttpMethod.GET,
|
|
27
|
-
headers: {
|
|
28
|
-
Authorization: `Ghost ${common_1.common.jwtFromApiKey(context.auth.props.apiKey)}`,
|
|
29
|
-
},
|
|
30
|
-
queryParams: {
|
|
31
|
-
filter: `email:${context.propsValue.email}`,
|
|
32
|
-
},
|
|
33
|
-
});
|
|
34
|
-
return response.body;
|
|
35
|
-
});
|
|
36
|
-
},
|
|
37
|
-
});
|
|
38
|
-
//# sourceMappingURL=find-user.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"find-user.js","sourceRoot":"","sources":["../../../../src/lib/actions/find-user.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAqE;AAErE,6BAAkC;AAClC,sCAAmC;AAEtB,QAAA,QAAQ,GAAG,IAAA,+BAAY,EAAC;IACnC,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,WAAW;IACxB,WAAW,EAAE,4BAA4B;IACzC,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE,EAAE,WAAW,EAAE,8MAA8M,EAAE,UAAU,EAAE,IAAI,EAAE;IAC7P,IAAI,EAAE,aAAS;IACf,KAAK,EAAE;QACL,KAAK,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACxB,WAAW,EAAE,OAAO;YACpB,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IAEK,GAAG,CAAC,OAAO;;YACf,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAC;gBAC5C,GAAG,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,wBAAwB;gBAC1D,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,OAAO,EAAE;oBACP,aAAa,EAAE,SAAS,eAAM,CAAC,aAAa,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE;iBAC1E;gBACD,WAAW,EAAE;oBACX,MAAM,EAAE,SAAS,OAAO,CAAC,UAAU,CAAC,KAAK,EAAE;iBAC5C;aACF,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export declare const updateMember: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
-
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
4
|
-
}>, {
|
|
5
|
-
member: import("@activepieces/pieces-framework").DropdownProperty<any, false, 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").DropdownProperty<any, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
9
|
-
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
10
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
11
|
-
}>>;
|
|
12
|
-
email: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
13
|
-
name: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
14
|
-
note: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
15
|
-
newsletters: import("@activepieces/pieces-framework").MultiSelectDropdownProperty<any, false, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
16
|
-
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
17
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
18
|
-
}>> | import("@activepieces/pieces-framework").MultiSelectDropdownProperty<any, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
19
|
-
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
20
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
21
|
-
}>>;
|
|
22
|
-
}>;
|
|
23
|
-
//# sourceMappingURL=update-member.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update-member.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/update-member.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;EA4DvB,CAAC"}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.updateMember = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
|
-
const __1 = require("../..");
|
|
8
|
-
const common_1 = require("../common");
|
|
9
|
-
exports.updateMember = (0, pieces_framework_1.createAction)({
|
|
10
|
-
name: 'update_member',
|
|
11
|
-
displayName: 'Update Member',
|
|
12
|
-
description: 'Update a member',
|
|
13
|
-
audience: 'both',
|
|
14
|
-
aiMetadata: { description: 'Updates an existing Ghost member identified by member id, changing any supplied fields (email, name, note, newsletter subscriptions); omitted fields are left unchanged. Use to edit a known member. Requires the target member id. Idempotent: re-applying the same field values yields the same member state.', idempotent: true },
|
|
15
|
-
auth: __1.ghostAuth,
|
|
16
|
-
props: {
|
|
17
|
-
member: common_1.common.properties.member(),
|
|
18
|
-
email: pieces_framework_1.Property.ShortText({
|
|
19
|
-
displayName: 'Email',
|
|
20
|
-
required: false,
|
|
21
|
-
}),
|
|
22
|
-
name: pieces_framework_1.Property.ShortText({
|
|
23
|
-
displayName: 'Full Name',
|
|
24
|
-
required: false,
|
|
25
|
-
}),
|
|
26
|
-
note: pieces_framework_1.Property.ShortText({
|
|
27
|
-
displayName: 'Note',
|
|
28
|
-
required: false,
|
|
29
|
-
}),
|
|
30
|
-
newsletters: common_1.common.properties.newsletters(false),
|
|
31
|
-
},
|
|
32
|
-
run(context) {
|
|
33
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
34
|
-
const newsletters = [];
|
|
35
|
-
if (context.propsValue.newsletters) {
|
|
36
|
-
context.propsValue.newsletters.forEach((newsletter) => {
|
|
37
|
-
newsletters.push({
|
|
38
|
-
id: newsletter,
|
|
39
|
-
});
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
const data = {};
|
|
43
|
-
if (context.propsValue.email)
|
|
44
|
-
data.email = context.propsValue.email;
|
|
45
|
-
if (context.propsValue.name)
|
|
46
|
-
data.name = context.propsValue.name;
|
|
47
|
-
if (context.propsValue.note)
|
|
48
|
-
data.note = context.propsValue.note;
|
|
49
|
-
if (context.propsValue.newsletters)
|
|
50
|
-
data.newsletters = context.propsValue.newsletters;
|
|
51
|
-
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
52
|
-
url: `${context.auth.props.baseUrl}/ghost/api/admin/members/${context.propsValue.member}`,
|
|
53
|
-
method: pieces_common_1.HttpMethod.PUT,
|
|
54
|
-
headers: {
|
|
55
|
-
Authorization: `Ghost ${common_1.common.jwtFromApiKey(context.auth.props.apiKey)}`,
|
|
56
|
-
},
|
|
57
|
-
body: {
|
|
58
|
-
members: [data],
|
|
59
|
-
},
|
|
60
|
-
});
|
|
61
|
-
return response.body;
|
|
62
|
-
});
|
|
63
|
-
},
|
|
64
|
-
});
|
|
65
|
-
//# sourceMappingURL=update-member.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update-member.js","sourceRoot":"","sources":["../../../../src/lib/actions/update-member.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAqE;AAErE,6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IAAI,GAAG,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC;YACjE,IAAI,OAAO,CAAC,UAAU,CAAC,IAAI;gBAAE,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC;YACjE,IAAI,OAAO,CAAC,UAAU,CAAC,WAAW;gBAChC,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC;YAEpD,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAC;gBAC5C,GAAG,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,4BAA4B,OAAO,CAAC,UAAU,CAAC,MAAM,EAAE;gBACzF,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,OAAO,EAAE;oBACP,aAAa,EAAE,SAAS,eAAM,CAAC,aAAa,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE;iBAC1E;gBACD,IAAI,EAAE;oBACJ,OAAO,EAAE,CAAC,IAAI,CAAC;iBAChB;aACF,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
export declare const common: {
|
|
2
|
-
properties: {
|
|
3
|
-
newsletters: (required?: boolean) => import("@activepieces/pieces-framework").MultiSelectDropdownProperty<any, false, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
4
|
-
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
5
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
6
|
-
}>> | import("@activepieces/pieces-framework").MultiSelectDropdownProperty<any, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
7
|
-
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
8
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
9
|
-
}>>;
|
|
10
|
-
member: (required?: boolean) => import("@activepieces/pieces-framework").DropdownProperty<any, false, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
11
|
-
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
12
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
13
|
-
}>> | import("@activepieces/pieces-framework").DropdownProperty<any, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
14
|
-
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
15
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
16
|
-
}>>;
|
|
17
|
-
author: import("@activepieces/pieces-framework").DropdownProperty<unknown, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
18
|
-
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
19
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
20
|
-
}>>;
|
|
21
|
-
tags: import("@activepieces/pieces-framework").MultiSelectDropdownProperty<unknown, false, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
22
|
-
baseUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
23
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
24
|
-
}>>;
|
|
25
|
-
};
|
|
26
|
-
jwtFromApiKey: (apiKey: string) => string;
|
|
27
|
-
subscribeWebhook(auth: any, webhookType: string, webhookUrl: string): Promise<any>;
|
|
28
|
-
unsubscribeWebhook(auth: any, webhookId: string): Promise<any>;
|
|
29
|
-
getNewsletters(auth: any): Promise<any>;
|
|
30
|
-
getMembers(auth: any): Promise<any>;
|
|
31
|
-
getUsers(auth: any): Promise<any>;
|
|
32
|
-
getTags(auth: any): Promise<any>;
|
|
33
|
-
};
|
|
34
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/common/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;4BAoHO,MAAM;2BAUD,GAAG,eAAe,MAAM,cAAc,MAAM;6BAoB1C,GAAG,aAAa,MAAM;yBAY1B,GAAG;qBAYP,GAAG;mBAYL,GAAG;kBAYJ,GAAG;CAWxB,CAAC"}
|