@activepieces/piece-feedhive 0.0.2 → 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.
- package/package.json +7 -12
- package/src/index.js +40 -47
- package/src/index.d.ts +0 -4
- package/src/index.d.ts.map +0 -1
- package/src/index.js.map +0 -1
- package/src/lib/actions/create-label.d.ts +0 -4
- package/src/lib/actions/create-label.d.ts.map +0 -1
- package/src/lib/actions/create-label.js +0 -37
- package/src/lib/actions/create-label.js.map +0 -1
- package/src/lib/actions/create-post.d.ts +0 -10
- package/src/lib/actions/create-post.d.ts.map +0 -1
- package/src/lib/actions/create-post.js +0 -78
- package/src/lib/actions/create-post.js.map +0 -1
- package/src/lib/actions/delete-post.d.ts +0 -4
- package/src/lib/actions/delete-post.d.ts.map +0 -1
- package/src/lib/actions/delete-post.js +0 -28
- package/src/lib/actions/delete-post.js.map +0 -1
- package/src/lib/actions/fire-workflow-trigger.d.ts +0 -12
- package/src/lib/actions/fire-workflow-trigger.d.ts.map +0 -1
- package/src/lib/actions/fire-workflow-trigger.js +0 -93
- package/src/lib/actions/fire-workflow-trigger.js.map +0 -1
- package/src/lib/actions/get-post.d.ts +0 -4
- package/src/lib/actions/get-post.d.ts.map +0 -1
- package/src/lib/actions/get-post.js +0 -28
- package/src/lib/actions/get-post.js.map +0 -1
- package/src/lib/actions/list-posts.d.ts +0 -6
- package/src/lib/actions/list-posts.d.ts.map +0 -1
- package/src/lib/actions/list-posts.js +0 -58
- package/src/lib/actions/list-posts.js.map +0 -1
- package/src/lib/actions/update-post.d.ts +0 -11
- package/src/lib/actions/update-post.d.ts.map +0 -1
- package/src/lib/actions/update-post.js +0 -78
- package/src/lib/actions/update-post.js.map +0 -1
- package/src/lib/common/auth.d.ts +0 -2
- package/src/lib/common/auth.d.ts.map +0 -1
- package/src/lib/common/auth.js +0 -33
- package/src/lib/common/auth.js.map +0 -1
- package/src/lib/common/index.d.ts +0 -18
- package/src/lib/common/index.d.ts.map +0 -1
- package/src/lib/common/index.js +0 -144
- package/src/lib/common/index.js.map +0 -1
- package/src/lib/triggers/comment-notification.d.ts +0 -11
- package/src/lib/triggers/comment-notification.d.ts.map +0 -1
- package/src/lib/triggers/comment-notification.js +0 -93
- package/src/lib/triggers/comment-notification.js.map +0 -1
- package/src/lib/triggers/post-notification.d.ts +0 -15
- package/src/lib/triggers/post-notification.d.ts.map +0 -1
- package/src/lib/triggers/post-notification.js +0 -116
- package/src/lib/triggers/post-notification.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"comment-notification.d.ts","sourceRoot":"","sources":["../../../../src/lib/triggers/comment-notification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,eAAe,EAAY,MAAM,gCAAgC,CAAC;AAK1F,eAAO,MAAM,0BAA0B;;;;;;;;EAmFrC,CAAC"}
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.commentNotificationTrigger = 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 auth_1 = require("../common/auth");
|
|
8
|
-
const common_1 = require("../common");
|
|
9
|
-
exports.commentNotificationTrigger = (0, pieces_framework_1.createTrigger)({
|
|
10
|
-
auth: auth_1.feedhiveAuth,
|
|
11
|
-
name: 'comment_notification',
|
|
12
|
-
displayName: 'Comment Notification',
|
|
13
|
-
description: 'Triggers when a comment is added to one of your posts.',
|
|
14
|
-
props: {
|
|
15
|
-
instructions: pieces_framework_1.Property.MarkDown({
|
|
16
|
-
value: `### Setup Instructions
|
|
17
|
-
|
|
18
|
-
1. Enable this flow and copy the **Webhook URL** shown below.
|
|
19
|
-
\`\`\`text
|
|
20
|
-
{{webhookUrl}}
|
|
21
|
-
\`\`\`
|
|
22
|
-
2. In FeedHive, go to **Settings → Automation → Notifications**.
|
|
23
|
-
3. Click **Create New Notification**.
|
|
24
|
-
4. Choose **Comment Added** and paste the Webhook URL, then click **Save**.`,
|
|
25
|
-
}),
|
|
26
|
-
},
|
|
27
|
-
sampleData: {
|
|
28
|
-
post_id: 'xxxx-abcd-1234',
|
|
29
|
-
comment_id: 'yyyy-zxyw-4321',
|
|
30
|
-
commented_at: '2024-08-01T12:00:00.000Z',
|
|
31
|
-
commented_by: 'zzzz-efgh-5678',
|
|
32
|
-
commented_by_name: 'John Doe',
|
|
33
|
-
commented_by_email: 'johndoe@gmail.com',
|
|
34
|
-
comment_text: 'Great post. Perhaps add another image?',
|
|
35
|
-
post_excerpt: 'This is the first part of the post caption...',
|
|
36
|
-
post: {
|
|
37
|
-
content: [{ text: 'Full post caption.', media: [] }],
|
|
38
|
-
labels: ['Marketing'],
|
|
39
|
-
postNotes: 'Internal notes',
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
type: pieces_framework_1.TriggerStrategy.WEBHOOK,
|
|
43
|
-
onEnable(_context) {
|
|
44
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
45
|
-
// Webhook URL must be configured manually in FeedHive: Settings → Automation → Notifications
|
|
46
|
-
});
|
|
47
|
-
},
|
|
48
|
-
onDisable(_context) {
|
|
49
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
50
|
-
// Nothing to unregister
|
|
51
|
-
});
|
|
52
|
-
},
|
|
53
|
-
run(context) {
|
|
54
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
55
|
-
return [context.payload.body];
|
|
56
|
-
});
|
|
57
|
-
},
|
|
58
|
-
test(context) {
|
|
59
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
60
|
-
var _a, _b;
|
|
61
|
-
// No dedicated comments endpoint — fetch recent published posts and approximate the payload shape
|
|
62
|
-
const response = yield common_1.feedhiveCommon.apiCall({
|
|
63
|
-
token: context.auth.secret_text,
|
|
64
|
-
method: pieces_common_1.HttpMethod.GET,
|
|
65
|
-
path: '/posts',
|
|
66
|
-
queryParams: { limit: '5', status: 'published' },
|
|
67
|
-
});
|
|
68
|
-
const posts = (_b = (_a = response.body.data) === null || _a === void 0 ? void 0 : _a.items) !== null && _b !== void 0 ? _b : [];
|
|
69
|
-
return posts.map((post) => {
|
|
70
|
-
var _a, _b, _c, _d, _e;
|
|
71
|
-
const postExcerpt = typeof post['text'] === 'string'
|
|
72
|
-
? post['text'].slice(0, 100) + (post['text'].length > 100 ? '...' : '')
|
|
73
|
-
: '(no text)';
|
|
74
|
-
return {
|
|
75
|
-
post_id: (_a = post['id']) !== null && _a !== void 0 ? _a : null,
|
|
76
|
-
comment_id: null,
|
|
77
|
-
commented_at: null,
|
|
78
|
-
commented_by: null,
|
|
79
|
-
commented_by_name: '(see FeedHive notification)',
|
|
80
|
-
commented_by_email: '(see FeedHive notification)',
|
|
81
|
-
comment_text: '(see FeedHive notification)',
|
|
82
|
-
post_excerpt: postExcerpt,
|
|
83
|
-
post: {
|
|
84
|
-
content: [{ text: (_b = post['text']) !== null && _b !== void 0 ? _b : '', media: (_c = post['media']) !== null && _c !== void 0 ? _c : [] }],
|
|
85
|
-
labels: (_d = post['labels']) !== null && _d !== void 0 ? _d : [],
|
|
86
|
-
postNotes: (_e = post['notes']) !== null && _e !== void 0 ? _e : '',
|
|
87
|
-
},
|
|
88
|
-
};
|
|
89
|
-
});
|
|
90
|
-
});
|
|
91
|
-
},
|
|
92
|
-
});
|
|
93
|
-
//# sourceMappingURL=comment-notification.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"comment-notification.js","sourceRoot":"","sources":["../../../../src/lib/triggers/comment-notification.ts"],"names":[],"mappings":";;;;AAAA,qEAA0F;AAC1F,+DAAyD;AACzD,yCAA8C;AAC9C,sCAA2C;AAE9B,QAAA,0BAA0B,GAAG,IAAA,gCAAa,EAAC;IACtD,IAAI,EAAE,mBAAY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CAAC,IAAI,0CAAE,KAAK,mCAAI,EAAE,CAAC;YAE9C,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;;gBACxB,MAAM,WAAW,GACf,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,QAAQ;oBAC9B,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,GAAG,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;oBACvE,CAAC,CAAC,WAAW,CAAC;gBAElB,OAAO;oBACL,OAAO,EAAE,MAAA,IAAI,CAAC,IAAI,CAAC,mCAAI,IAAI;oBAC3B,UAAU,EAAE,IAAI;oBAChB,YAAY,EAAE,IAAI;oBAClB,YAAY,EAAE,IAAI;oBAClB,iBAAiB,EAAE,6BAA6B;oBAChD,kBAAkB,EAAE,6BAA6B;oBACjD,YAAY,EAAE,6BAA6B;oBAC3C,YAAY,EAAE,WAAW;oBACzB,IAAI,EAAE;wBACJ,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAA,IAAI,CAAC,MAAM,CAAC,mCAAI,EAAE,EAAE,KAAK,EAAE,MAAA,IAAI,CAAC,OAAO,CAAC,mCAAI,EAAE,EAAE,CAAC;wBACnE,MAAM,EAAE,MAAA,IAAI,CAAC,QAAQ,CAAC,mCAAI,EAAE;wBAC5B,SAAS,EAAE,MAAA,IAAI,CAAC,OAAO,CAAC,mCAAI,EAAE;qBAC/B;iBACF,CAAC;YACJ,CAAC,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { TriggerStrategy } from '@activepieces/pieces-framework';
|
|
2
|
-
export declare const postNotificationTrigger: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
3
|
-
event_type: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
|
|
4
|
-
instructions: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
5
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
6
|
-
event_type: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
|
|
7
|
-
instructions: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
8
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.MANUAL, import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
9
|
-
event_type: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
|
|
10
|
-
instructions: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
11
|
-
}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
12
|
-
event_type: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
|
|
13
|
-
instructions: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
14
|
-
}>;
|
|
15
|
-
//# sourceMappingURL=post-notification.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"post-notification.d.ts","sourceRoot":"","sources":["../../../../src/lib/triggers/post-notification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,eAAe,EAAY,MAAM,gCAAgC,CAAC;AAW1F,eAAO,MAAM,uBAAuB;;;;;;;;;;;;EA4ElC,CAAC"}
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.postNotificationTrigger = 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 auth_1 = require("../common/auth");
|
|
8
|
-
const common_1 = require("../common");
|
|
9
|
-
const EVENT_TYPE_STATUS_MAP = {
|
|
10
|
-
post_published: 'published',
|
|
11
|
-
post_scheduled: 'scheduled',
|
|
12
|
-
post_failed: 'failed',
|
|
13
|
-
};
|
|
14
|
-
exports.postNotificationTrigger = (0, pieces_framework_1.createTrigger)({
|
|
15
|
-
auth: auth_1.feedhiveAuth,
|
|
16
|
-
name: 'post_notification',
|
|
17
|
-
displayName: 'Post Notification',
|
|
18
|
-
description: 'Triggers when a post is published, scheduled, or fails.',
|
|
19
|
-
props: {
|
|
20
|
-
event_type: pieces_framework_1.Property.StaticDropdown({
|
|
21
|
-
displayName: 'Event Type',
|
|
22
|
-
description: 'Choose the event type you will configure in FeedHive. This is used to load sample data when testing the trigger — it does not filter incoming webhooks.',
|
|
23
|
-
required: true,
|
|
24
|
-
defaultValue: 'post_published',
|
|
25
|
-
options: {
|
|
26
|
-
options: [
|
|
27
|
-
{ label: 'Post Published', value: 'post_published' },
|
|
28
|
-
{ label: 'Post Scheduled', value: 'post_scheduled' },
|
|
29
|
-
{ label: 'Post Failed', value: 'post_failed' },
|
|
30
|
-
],
|
|
31
|
-
},
|
|
32
|
-
}),
|
|
33
|
-
instructions: pieces_framework_1.Property.MarkDown({
|
|
34
|
-
value: `### Setup Instructions
|
|
35
|
-
|
|
36
|
-
1. Enable this flow and copy the **Webhook URL** shown below.
|
|
37
|
-
\`\`\`text
|
|
38
|
-
{{webhookUrl}}
|
|
39
|
-
\`\`\`
|
|
40
|
-
2. In FeedHive, go to **Settings → Automation → Notifications**.
|
|
41
|
-
3. Click **Create New Notification**.
|
|
42
|
-
4. Choose the matching event type and paste the Webhook URL, then click **Save**.`,
|
|
43
|
-
}),
|
|
44
|
-
},
|
|
45
|
-
sampleData: {
|
|
46
|
-
post_id: 'xxxx-abcd-1234',
|
|
47
|
-
post_excerpt: 'This is the first part of the post caption...',
|
|
48
|
-
social_type: 'Facebook',
|
|
49
|
-
social_name: 'My Facebook Page',
|
|
50
|
-
public_id: '123456789101112_1314151617181920',
|
|
51
|
-
public_url: 'https://www.facebook.com/xxxx/posts/yyyy',
|
|
52
|
-
post: {
|
|
53
|
-
content: [{ text: 'Full post caption.', media: [] }],
|
|
54
|
-
labels: ['Marketing'],
|
|
55
|
-
postNotes: 'Internal notes',
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
type: pieces_framework_1.TriggerStrategy.WEBHOOK,
|
|
59
|
-
onEnable(_context) {
|
|
60
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
61
|
-
// Webhook URL must be configured manually in FeedHive: Settings → Automation → Notifications
|
|
62
|
-
});
|
|
63
|
-
},
|
|
64
|
-
onDisable(_context) {
|
|
65
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
66
|
-
// Nothing to unregister
|
|
67
|
-
});
|
|
68
|
-
},
|
|
69
|
-
run(context) {
|
|
70
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
71
|
-
return [context.payload.body];
|
|
72
|
-
});
|
|
73
|
-
},
|
|
74
|
-
test(context) {
|
|
75
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
76
|
-
var _a, _b, _c, _d;
|
|
77
|
-
const eventType = (_a = context.propsValue.event_type) !== null && _a !== void 0 ? _a : 'post_published';
|
|
78
|
-
const status = (_b = EVENT_TYPE_STATUS_MAP[eventType]) !== null && _b !== void 0 ? _b : 'published';
|
|
79
|
-
const response = yield common_1.feedhiveCommon.apiCall({
|
|
80
|
-
token: context.auth.secret_text,
|
|
81
|
-
method: pieces_common_1.HttpMethod.GET,
|
|
82
|
-
path: '/posts',
|
|
83
|
-
queryParams: { limit: '5', status },
|
|
84
|
-
});
|
|
85
|
-
const posts = (_d = (_c = response.body.data) === null || _c === void 0 ? void 0 : _c.items) !== null && _d !== void 0 ? _d : [];
|
|
86
|
-
return posts.map((post) => buildSamplePayload(eventType, post));
|
|
87
|
-
});
|
|
88
|
-
},
|
|
89
|
-
});
|
|
90
|
-
function buildSamplePayload(eventType, post) {
|
|
91
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
92
|
-
const postExcerpt = typeof post['text'] === 'string'
|
|
93
|
-
? post['text'].slice(0, 100) + (post['text'].length > 100 ? '...' : '')
|
|
94
|
-
: '(no text)';
|
|
95
|
-
const notificationPost = {
|
|
96
|
-
content: [{ text: (_a = post['text']) !== null && _a !== void 0 ? _a : '', media: (_b = post['media']) !== null && _b !== void 0 ? _b : [] }],
|
|
97
|
-
labels: (_c = post['labels']) !== null && _c !== void 0 ? _c : [],
|
|
98
|
-
postNotes: (_d = post['notes']) !== null && _d !== void 0 ? _d : '',
|
|
99
|
-
};
|
|
100
|
-
const base = {
|
|
101
|
-
post_id: (_e = post['id']) !== null && _e !== void 0 ? _e : null,
|
|
102
|
-
post_excerpt: postExcerpt,
|
|
103
|
-
post: notificationPost,
|
|
104
|
-
};
|
|
105
|
-
switch (eventType) {
|
|
106
|
-
case 'post_published':
|
|
107
|
-
return Object.assign(Object.assign({}, base), { social_type: '(see FeedHive notification)', social_name: '(see FeedHive notification)', public_id: null, public_url: null });
|
|
108
|
-
case 'post_scheduled':
|
|
109
|
-
return Object.assign(Object.assign({}, base), { schedule_at: (_f = post['scheduled_at']) !== null && _f !== void 0 ? _f : null, pending_approval: false, social_types: '(see FeedHive notification)' });
|
|
110
|
-
case 'post_failed':
|
|
111
|
-
return Object.assign(Object.assign({}, base), { failed_at: (_g = post['updated_at']) !== null && _g !== void 0 ? _g : null, message: '(see FeedHive notification)', social_type: '(see FeedHive notification)', social_name: '(see FeedHive notification)' });
|
|
112
|
-
default:
|
|
113
|
-
return base;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
//# sourceMappingURL=post-notification.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"post-notification.js","sourceRoot":"","sources":["../../../../src/lib/triggers/post-notification.ts"],"names":[],"mappings":";;;;AAAA,qEAA0F;AAC1F,+DAAyD;AACzD,yCAA8C;AAC9C,sCAA2C;AAE3C,MAAM,qBAAqB,GAA2B;IACpD,cAAc,EAAE,WAAW;IAC3B,cAAc,EAAE,WAAW;IAC3B,WAAW,EAAE,QAAQ;CACtB,CAAC;AAEW,QAAA,uBAAuB,GAAG,IAAA,gCAAa,EAAC;IACnD,IAAI,EAAE,mBAAY;IAClB,IAAI,EAAE,mBAAmB;IACzB,WAAW,EAAE,mBAAmB;IAChC,WAAW,EAAE,yDAAyD;IACtE,KAAK,EAAE;QACL,UAAU,EAAE,2BAAQ,CAAC,cAAc,CAAC;YAClC,WAAW,EAAE,YAAY;YACzB,WAAW,EACT,yJAAyJ;YAC3J,QAAQ,EAAE,IAAI;YACd,YAAY,EAAE,gBAAgB;YAC9B,OAAO,EAAE;gBACP,OAAO,EAAE;oBACP,EAAE,KAAK,EAAE,gBAAgB,EAAE,KAAK,EAAE,gBAAgB,EAAE;oBACpD,EAAE,KAAK,EAAE,gBAAgB,EAAE,KAAK,EAAE,gBAAgB,EAAE;oBACpD,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,EAAE;iBAC/C;aACF;SACF,CAAC;QACF,YAAY,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YAC9B,KAAK,EAAE;;;;;;;;kFAQqE;SAC7E,CAAC;KACH;IACD,UAAU,EAAE;QACV,OAAO,EAAE,gBAAgB;QACzB,YAAY,EAAE,+CAA+C;QAC7D,WAAW,EAAE,UAAU;QACvB,WAAW,EAAE,kBAAkB;QAC/B,SAAS,EAAE,kCAAkC;QAC7C,UAAU,EAAE,0CAA0C;QACtD,IAAI,EAAE;YACJ,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC;YACpD,MAAM,EAAE,CAAC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