@activepieces/piece-clickfunnels 0.1.5 → 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 -12
- package/src/index.js +13 -64
- package/src/index.d.ts +0 -5
- package/src/index.d.ts.map +0 -1
- package/src/index.js.map +0 -1
- package/src/lib/actions/apply-tag-to-contact.d.ts +0 -22
- package/src/lib/actions/apply-tag-to-contact.d.ts.map +0 -1
- package/src/lib/actions/apply-tag-to-contact.js +0 -37
- package/src/lib/actions/apply-tag-to-contact.js.map +0 -1
- package/src/lib/actions/create-opportunity.d.ts +0 -36
- package/src/lib/actions/create-opportunity.d.ts.map +0 -1
- package/src/lib/actions/create-opportunity.js +0 -56
- package/src/lib/actions/create-opportunity.js.map +0 -1
- package/src/lib/actions/enroll-a-contact-into-a-course.d.ts +0 -22
- package/src/lib/actions/enroll-a-contact-into-a-course.d.ts.map +0 -1
- package/src/lib/actions/enroll-a-contact-into-a-course.js +0 -37
- package/src/lib/actions/enroll-a-contact-into-a-course.js.map +0 -1
- package/src/lib/actions/remove-tag-from-contact.d.ts +0 -22
- package/src/lib/actions/remove-tag-from-contact.d.ts.map +0 -1
- package/src/lib/actions/remove-tag-from-contact.js +0 -34
- package/src/lib/actions/remove-tag-from-contact.js.map +0 -1
- package/src/lib/actions/search-contacts.d.ts +0 -15
- package/src/lib/actions/search-contacts.d.ts.map +0 -1
- package/src/lib/actions/search-contacts.js +0 -35
- package/src/lib/actions/search-contacts.js.map +0 -1
- package/src/lib/actions/update-or-create-contact.d.ts +0 -23
- package/src/lib/actions/update-or-create-contact.d.ts.map +0 -1
- package/src/lib/actions/update-or-create-contact.js +0 -63
- package/src/lib/actions/update-or-create-contact.js.map +0 -1
- package/src/lib/common/constants.d.ts +0 -19
- package/src/lib/common/constants.d.ts.map +0 -1
- package/src/lib/common/constants.js +0 -50
- package/src/lib/common/constants.js.map +0 -1
- package/src/lib/common/props.d.ts +0 -44
- package/src/lib/common/props.d.ts.map +0 -1
- package/src/lib/common/props.js +0 -420
- package/src/lib/common/props.js.map +0 -1
- package/src/lib/common/requests.d.ts +0 -22
- package/src/lib/common/requests.d.ts.map +0 -1
- package/src/lib/common/requests.js +0 -179
- package/src/lib/common/requests.js.map +0 -1
- package/src/lib/triggers/contact-completed-course.d.ts +0 -51
- package/src/lib/triggers/contact-completed-course.d.ts.map +0 -1
- package/src/lib/triggers/contact-completed-course.js +0 -65
- package/src/lib/triggers/contact-completed-course.js.map +0 -1
- package/src/lib/triggers/contact-identified.d.ts +0 -51
- package/src/lib/triggers/contact-identified.d.ts.map +0 -1
- package/src/lib/triggers/contact-identified.js +0 -65
- package/src/lib/triggers/contact-identified.js.map +0 -1
- package/src/lib/triggers/contact-submitted-form.d.ts +0 -51
- package/src/lib/triggers/contact-submitted-form.d.ts.map +0 -1
- package/src/lib/triggers/contact-submitted-form.js +0 -65
- package/src/lib/triggers/contact-submitted-form.js.map +0 -1
- package/src/lib/triggers/contact-suspended-from-course.d.ts +0 -51
- package/src/lib/triggers/contact-suspended-from-course.d.ts.map +0 -1
- package/src/lib/triggers/contact-suspended-from-course.js +0 -65
- package/src/lib/triggers/contact-suspended-from-course.js.map +0 -1
- package/src/lib/triggers/course-enrollment-created-for-contact.d.ts +0 -51
- package/src/lib/triggers/course-enrollment-created-for-contact.d.ts.map +0 -1
- package/src/lib/triggers/course-enrollment-created-for-contact.js +0 -65
- package/src/lib/triggers/course-enrollment-created-for-contact.js.map +0 -1
- package/src/lib/triggers/one-time-order-paid.d.ts +0 -51
- package/src/lib/triggers/one-time-order-paid.d.ts.map +0 -1
- package/src/lib/triggers/one-time-order-paid.js +0 -65
- package/src/lib/triggers/one-time-order-paid.js.map +0 -1
- package/src/lib/triggers/scheduled-appointment-event-created.d.ts +0 -51
- package/src/lib/triggers/scheduled-appointment-event-created.d.ts.map +0 -1
- package/src/lib/triggers/scheduled-appointment-event-created.js +0 -65
- package/src/lib/triggers/scheduled-appointment-event-created.js.map +0 -1
- package/src/lib/triggers/subscription-invoice-paid.d.ts +0 -51
- package/src/lib/triggers/subscription-invoice-paid.d.ts.map +0 -1
- package/src/lib/triggers/subscription-invoice-paid.js +0 -65
- package/src/lib/triggers/subscription-invoice-paid.js.map +0 -1
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createOpportunity = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const constants_1 = require("../common/constants");
|
|
7
|
-
const props_1 = require("../common/props");
|
|
8
|
-
const requests_1 = require("../common/requests");
|
|
9
|
-
exports.createOpportunity = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth: constants_1.clickfunnelsAuth,
|
|
11
|
-
name: 'createOpportunity',
|
|
12
|
-
displayName: 'Create Opportunity',
|
|
13
|
-
description: 'Create a new opportunity for a contact.',
|
|
14
|
-
audience: 'both',
|
|
15
|
-
aiMetadata: {
|
|
16
|
-
description: 'Creates a sales opportunity in a ClickFunnels CRM pipeline, attached to a primary contact and placed in a specific pipeline stage. Use to register a new deal/lead in the sales pipeline. Requires a workspace, pipeline stage, and contact; optional value and close date. Not idempotent — each call creates a separate opportunity.',
|
|
17
|
-
idempotent: false,
|
|
18
|
-
},
|
|
19
|
-
props: {
|
|
20
|
-
name: pieces_framework_1.Property.ShortText({
|
|
21
|
-
displayName: 'Opportunity Name',
|
|
22
|
-
description: 'The name or title of the opportunity.',
|
|
23
|
-
required: true,
|
|
24
|
-
}),
|
|
25
|
-
teamId: (0, props_1.teamsDropdown)(['auth']),
|
|
26
|
-
workspaceId: (0, props_1.workspacesDropdown)(['auth', 'teamId']),
|
|
27
|
-
pipelineId: (0, props_1.pipelinesDropdown)(['auth', 'workspaceId']),
|
|
28
|
-
pipelineStageId: (0, props_1.pipelineStagesDropdown)(['auth', 'pipelineId']),
|
|
29
|
-
contactId: (0, props_1.contactsDropdown)(['auth', 'workspaceId']),
|
|
30
|
-
assigneeId: (0, props_1.teamMembershipsDropdown)(['auth', 'teamId'], false),
|
|
31
|
-
value: pieces_framework_1.Property.Number({
|
|
32
|
-
displayName: 'Value',
|
|
33
|
-
description: 'The potential value of this opportunity in the default currency of the workspace',
|
|
34
|
-
required: false,
|
|
35
|
-
}),
|
|
36
|
-
closedAt: pieces_framework_1.Property.DateTime({
|
|
37
|
-
displayName: 'Close Date',
|
|
38
|
-
description: 'The expected close date for the opportunity.',
|
|
39
|
-
required: false,
|
|
40
|
-
}),
|
|
41
|
-
},
|
|
42
|
-
run(_a) {
|
|
43
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
|
|
44
|
-
const payload = Object.assign(Object.assign(Object.assign({ name: propsValue.name, pipelines_stage_id: propsValue.pipelineStageId, primary_contact_id: propsValue.contactId }, (propsValue.value && {
|
|
45
|
-
value: propsValue.value,
|
|
46
|
-
})), (propsValue.closedAt && {
|
|
47
|
-
closed_at: new Date(propsValue.closedAt).toISOString(),
|
|
48
|
-
})), { assignee_id: propsValue.assigneeId });
|
|
49
|
-
const response = yield requests_1.clickfunnelsApiService.createOpportunity(auth.props, propsValue.workspaceId, {
|
|
50
|
-
sales_opportunity: payload,
|
|
51
|
-
});
|
|
52
|
-
return response;
|
|
53
|
-
});
|
|
54
|
-
},
|
|
55
|
-
});
|
|
56
|
-
//# sourceMappingURL=create-opportunity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-opportunity.js","sourceRoot":"","sources":["../../../../src/lib/actions/create-opportunity.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,mDAAuD;AACvD,2CAOyB;AACzB,iDAA4D;AAE/C,QAAA,iBAAiB,GAAG,IAAA,+BAAY,EAAC;IAC5C,IAAI,EAAE,4BAAgB;IACtB,IAAI,EAAE,mBAAmB;IACzB,WAAW,EAAE,oBAAoB;IACjC,WAAW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AAC,KAAK;aACxB,CAAC,GACC,CAAC,UAAU,CAAC,QAAQ,IAAI;gBACzB,SAAS,EAAE,IAAI,IAAI,CAAC,UAAU,CAAC,QAAkB,CAAC,CAAC,WAAW,EAAE;aACjE,CAAC,KACF,WAAW,EAAE,UAAU,CAAC,UAAU,GACnC,CAAC;YAEF,MAAM,QAAQ,GAAG,MAAM,iCAAsB,CAAC,iBAAiB,CAC7D,IAAI,CAAC,KAAK,EACV,UAAU,CAAC,WAAqB,EAChC;gBACE,iBAAiB,EAAE,OAAO;aAC3B,CACF,CAAC;YAEF,OAAO,QAAQ,CAAC;QAClB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export declare const enrollAContactIntoACourse: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
-
subdomain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
4
|
-
}>, {
|
|
5
|
-
teamId: import("@activepieces/pieces-framework").DropdownProperty<unknown, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
6
|
-
subdomain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
7
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
8
|
-
}>>;
|
|
9
|
-
workspaceId: import("@activepieces/pieces-framework").DropdownProperty<unknown, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
10
|
-
subdomain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
11
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
12
|
-
}>>;
|
|
13
|
-
courseId: import("@activepieces/pieces-framework").DropdownProperty<unknown, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
14
|
-
subdomain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
15
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
16
|
-
}>>;
|
|
17
|
-
contactId: import("@activepieces/pieces-framework").DropdownProperty<unknown, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
18
|
-
subdomain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
19
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
20
|
-
}>>;
|
|
21
|
-
}>;
|
|
22
|
-
//# sourceMappingURL=enroll-a-contact-into-a-course.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"enroll-a-contact-into-a-course.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/enroll-a-contact-into-a-course.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;EA4BpC,CAAC"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.enrollAContactIntoACourse = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const props_1 = require("../common/props");
|
|
7
|
-
const requests_1 = require("../common/requests");
|
|
8
|
-
const constants_1 = require("../common/constants");
|
|
9
|
-
exports.enrollAContactIntoACourse = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth: constants_1.clickfunnelsAuth,
|
|
11
|
-
name: 'enrollAContactIntoACourse',
|
|
12
|
-
displayName: 'Enroll a Contact Into a Course',
|
|
13
|
-
description: 'Create an enrollment for a contact in a course.',
|
|
14
|
-
audience: 'both',
|
|
15
|
-
aiMetadata: {
|
|
16
|
-
description: 'Enrolls a ClickFunnels contact into a specific course, granting them access to its content. Use to give a contact course access programmatically. Requires the workspace, course, and contact. Not idempotent — each call creates a new enrollment record.',
|
|
17
|
-
idempotent: false,
|
|
18
|
-
},
|
|
19
|
-
props: {
|
|
20
|
-
teamId: (0, props_1.teamsDropdown)(['auth']),
|
|
21
|
-
workspaceId: (0, props_1.workspacesDropdown)(['auth', 'teamId']),
|
|
22
|
-
courseId: (0, props_1.coursesDropdown)(['auth', 'workspaceId']),
|
|
23
|
-
contactId: (0, props_1.contactsDropdown)(['auth', 'workspaceId']),
|
|
24
|
-
},
|
|
25
|
-
run(_a) {
|
|
26
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
|
|
27
|
-
const payload = {
|
|
28
|
-
courses_enrollment: {
|
|
29
|
-
contact_id: propsValue.contactId
|
|
30
|
-
},
|
|
31
|
-
};
|
|
32
|
-
const response = yield requests_1.clickfunnelsApiService.createCourseEnrollment(auth.props, propsValue.courseId, payload);
|
|
33
|
-
return response;
|
|
34
|
-
});
|
|
35
|
-
},
|
|
36
|
-
});
|
|
37
|
-
//# sourceMappingURL=enroll-a-contact-into-a-course.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"enroll-a-contact-into-a-course.js","sourceRoot":"","sources":["../../../../src/lib/actions/enroll-a-contact-into-a-course.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,2CAAuG;AACvG,iDAA4D;AAC5D,mDAAuD;AAE1C,QAAA,yBAAyB,GAAG,IAAA,+BAAY,EAAC;IACpD,IAAI,EAAE,4BAAgB;IACtB,IAAI,EAAE,2BAA2B;IACjC,WAAW,EAAE,gCAAgC;IAC7C,WAAW,EAAE,iDAAiD;IAC9D,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,4PAA4P;QAC9P,UAAU,EAAE,KAAK;KAClB;IACD,KAAK,EAAE;QACL,MAAM,EAAE,IAAA,qBAAa,EAAC,CAAC,MAAM,CAAC,CAAC;QAC/B,WAAW,EAAE,IAAA,0BAAkB,EAAC,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACnD,QAAQ,EAAE,IAAA,uBAAe,EAAC,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;QAClD,SAAS,EAAE,IAAA,wBAAgB,EAAC,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;KACrD;IACK,GAAG;qEAAC,EAAC,IAAI,EAAE,UAAU,EAAC;YAC1B,MAAM,OAAO,GAAG;gBACd,kBAAkB,EAAE;oBAClB,UAAU,EAAE,UAAU,CAAC,SAAS;iBACjC;aACF,CAAC;YAEF,MAAM,QAAQ,GAAG,MAAM,iCAAsB,CAAC,sBAAsB,CAAC,IAAI,CAAC,KAAK,EAAE,UAAU,CAAC,QAAkB,EAAE,OAAO,CAAC,CAAC;YAEzH,OAAO,QAAQ,CAAC;QAClB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export declare const removeTagFromContact: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
-
subdomain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
4
|
-
}>, {
|
|
5
|
-
teamId: import("@activepieces/pieces-framework").DropdownProperty<unknown, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
6
|
-
subdomain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
7
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
8
|
-
}>>;
|
|
9
|
-
workspaceId: import("@activepieces/pieces-framework").DropdownProperty<unknown, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
10
|
-
subdomain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
11
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
12
|
-
}>>;
|
|
13
|
-
contactId: import("@activepieces/pieces-framework").DropdownProperty<unknown, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
14
|
-
subdomain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
15
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
16
|
-
}>>;
|
|
17
|
-
tagId: import("@activepieces/pieces-framework").DropdownProperty<unknown, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
18
|
-
subdomain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
19
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
20
|
-
}>>;
|
|
21
|
-
}>;
|
|
22
|
-
//# sourceMappingURL=remove-tag-from-contact.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"remove-tag-from-contact.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/remove-tag-from-contact.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;EAuB/B,CAAC"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.removeTagFromContact = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const props_1 = require("../common/props");
|
|
7
|
-
const constants_1 = require("../common/constants");
|
|
8
|
-
const requests_1 = require("../common/requests");
|
|
9
|
-
exports.removeTagFromContact = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth: constants_1.clickfunnelsAuth,
|
|
11
|
-
name: 'removeTagFromContact',
|
|
12
|
-
displayName: 'Remove Tag From Contact',
|
|
13
|
-
description: 'Remove a specific tag from a contact.',
|
|
14
|
-
audience: 'both',
|
|
15
|
-
aiMetadata: {
|
|
16
|
-
description: 'Removes a previously applied tag from a ClickFunnels contact, identified by the applied-tag record on that contact. Use to unlabel or reverse a tag-based segmentation. Idempotent — once the tag is gone, repeating leaves the contact in the same state.',
|
|
17
|
-
idempotent: true,
|
|
18
|
-
},
|
|
19
|
-
props: {
|
|
20
|
-
teamId: (0, props_1.teamsDropdown)(['auth']),
|
|
21
|
-
workspaceId: (0, props_1.workspacesDropdown)(['auth', 'teamId']),
|
|
22
|
-
contactId: (0, props_1.contactsDropdown)(['auth', 'workspaceId']),
|
|
23
|
-
tagId: (0, props_1.appliedTagsDropdown)(['auth', 'contactId']),
|
|
24
|
-
},
|
|
25
|
-
run(_a) {
|
|
26
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
|
|
27
|
-
yield requests_1.clickfunnelsApiService.removeAppliedTags(auth.props, propsValue.tagId);
|
|
28
|
-
return {
|
|
29
|
-
message: "Tag removed"
|
|
30
|
-
};
|
|
31
|
-
});
|
|
32
|
-
},
|
|
33
|
-
});
|
|
34
|
-
//# sourceMappingURL=remove-tag-from-contact.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"remove-tag-from-contact.js","sourceRoot":"","sources":["../../../../src/lib/actions/remove-tag-from-contact.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,2CAKyB;AACzB,mDAAuD;AACvD,iDAA4D;AAE/C,QAAA,oBAAoB,GAAG,IAAA,+BAAY,EAAC;IAC/C,IAAI,EAAE,4BAAgB;IACtB,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE,yBAAyB;IACtC,WAAW,EAAE,uCAAuC;IACpD,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,4PAA4P;QAC9P,UAAU,EAAE,IAAI;KACjB;IACD,KAAK,EAAE;QACL,MAAM,EAAE,IAAA,qBAAa,EAAC,CAAC,MAAM,CAAC,CAAC;QAC/B,WAAW,EAAE,IAAA,0BAAkB,EAAC,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACnD,SAAS,EAAE,IAAA,wBAAgB,EAAC,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;QACpD,KAAK,EAAE,IAAA,2BAAmB,EAAC,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;KAClD;IACK,GAAG;qEAAC,EAAC,IAAI,EAAE,UAAU,EAAC;YAC1B,MAAM,iCAAsB,CAAC,iBAAiB,CAAC,IAAI,CAAC,KAAK,EAAE,UAAU,CAAC,KAAe,CAAC,CAAC;YACvF,OAAO;gBACL,OAAO,EAAE,aAAa;aACvB,CAAA;QACH,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export declare const searchContacts: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
-
subdomain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
4
|
-
}>, {
|
|
5
|
-
teamId: import("@activepieces/pieces-framework").DropdownProperty<unknown, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
6
|
-
subdomain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
7
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
8
|
-
}>>;
|
|
9
|
-
workspaceId: import("@activepieces/pieces-framework").DropdownProperty<unknown, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
10
|
-
subdomain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
11
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
12
|
-
}>>;
|
|
13
|
-
searchTerm: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
14
|
-
}>;
|
|
15
|
-
//# sourceMappingURL=search-contacts.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"search-contacts.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/search-contacts.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,cAAc;;;;;;;;;;;;;EA6BzB,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.searchContacts = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const constants_1 = require("../common/constants");
|
|
7
|
-
const props_1 = require("../common/props");
|
|
8
|
-
const requests_1 = require("../common/requests");
|
|
9
|
-
exports.searchContacts = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth: constants_1.clickfunnelsAuth,
|
|
11
|
-
name: 'searchContacts',
|
|
12
|
-
displayName: 'Search Contacts',
|
|
13
|
-
description: 'Look up contacts by ID or email',
|
|
14
|
-
audience: 'both',
|
|
15
|
-
aiMetadata: {
|
|
16
|
-
description: 'Looks up contacts within a ClickFunnels workspace by a single search term, which is auto-detected as an email address (filters on email) when it contains "@", or otherwise as a contact ID. Use to resolve a contact record or its ID before another action. Read-only and idempotent.',
|
|
17
|
-
idempotent: true,
|
|
18
|
-
},
|
|
19
|
-
props: {
|
|
20
|
-
teamId: (0, props_1.teamsDropdown)(['auth']),
|
|
21
|
-
workspaceId: (0, props_1.workspacesDropdown)(['auth', 'teamId']),
|
|
22
|
-
searchTerm: pieces_framework_1.Property.ShortText({
|
|
23
|
-
displayName: 'Search Query',
|
|
24
|
-
description: 'Filter contacts by either email or id',
|
|
25
|
-
required: true,
|
|
26
|
-
}),
|
|
27
|
-
},
|
|
28
|
-
run(_a) {
|
|
29
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
|
|
30
|
-
const response = yield requests_1.clickfunnelsApiService.fetchContactByEmailSearch(auth.props, propsValue.workspaceId, propsValue.searchTerm);
|
|
31
|
-
return response;
|
|
32
|
-
});
|
|
33
|
-
},
|
|
34
|
-
});
|
|
35
|
-
//# sourceMappingURL=search-contacts.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"search-contacts.js","sourceRoot":"","sources":["../../../../src/lib/actions/search-contacts.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,mDAAuD;AACvD,2CAAoE;AACpE,iDAA4D;AAE/C,QAAA,cAAc,GAAG,IAAA,+BAAY,EAAC;IACzC,IAAI,EAAE,4BAAgB;IACtB,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,iBAAiB;IAC9B,WAAW,EAAE,iCAAiC;IAC9C,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,yRAAyR;QAC3R,UAAU,EAAE,IAAI;KACjB;IACD,KAAK,EAAE;QACL,MAAM,EAAE,IAAA,qBAAa,EAAC,CAAC,MAAM,CAAC,CAAC;QAC/B,WAAW,EAAE,IAAA,0BAAkB,EAAC,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACnD,UAAU,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,cAAc;YAC3B,WAAW,EAAE,uCAAuC;YACpD,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG;qEAAC,EAAE,IAAI,EAAE,UAAU,EAAE;YAC5B,MAAM,QAAQ,GAAG,MAAM,iCAAsB,CAAC,yBAAyB,CACrE,IAAI,CAAC,KAAK,EACV,UAAU,CAAC,WAAqB,EAChC,UAAU,CAAC,UAAoB,CAChC,CAAC;YAEF,OAAO,QAAQ,CAAC;QAClB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export declare const updateOrCreateContact: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
-
subdomain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
4
|
-
}>, {
|
|
5
|
-
teamId: import("@activepieces/pieces-framework").DropdownProperty<unknown, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
6
|
-
subdomain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
7
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
8
|
-
}>>;
|
|
9
|
-
workspaceId: import("@activepieces/pieces-framework").DropdownProperty<unknown, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
10
|
-
subdomain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
11
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
12
|
-
}>>;
|
|
13
|
-
emailAddress: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
14
|
-
firstName: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
15
|
-
lastName: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
16
|
-
phoneNumber: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
17
|
-
tagIds: import("@activepieces/pieces-framework").MultiSelectDropdownProperty<unknown, false, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
18
|
-
subdomain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
19
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
20
|
-
}>>;
|
|
21
|
-
customAttributes: import("@activepieces/pieces-framework").ObjectProperty<false>;
|
|
22
|
-
}>;
|
|
23
|
-
//# sourceMappingURL=update-or-create-contact.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update-or-create-contact.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/update-or-create-contact.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;EAwDhC,CAAC"}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.updateOrCreateContact = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const constants_1 = require("../common/constants");
|
|
7
|
-
const props_1 = require("../common/props");
|
|
8
|
-
const requests_1 = require("../common/requests");
|
|
9
|
-
exports.updateOrCreateContact = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth: constants_1.clickfunnelsAuth,
|
|
11
|
-
name: 'updateOrCreateContact',
|
|
12
|
-
displayName: 'Update or Create Contact',
|
|
13
|
-
description: 'Searches for a contact by email and updates it, or creates a new one if not found.',
|
|
14
|
-
audience: 'both',
|
|
15
|
-
aiMetadata: {
|
|
16
|
-
description: 'Upserts a ClickFunnels contact keyed on email address: updates the matching contact if one exists, otherwise creates it. Use to add or sync a contact (name, phone, tags, custom attributes) without first checking for a duplicate. Idempotent — repeating with the same email and fields converges to the same contact rather than creating duplicates. Custom-attribute keys that collide with default contact fields will error.',
|
|
17
|
-
idempotent: true,
|
|
18
|
-
},
|
|
19
|
-
props: {
|
|
20
|
-
teamId: (0, props_1.teamsDropdown)(['auth']),
|
|
21
|
-
workspaceId: (0, props_1.workspacesDropdown)(['auth', 'teamId']),
|
|
22
|
-
emailAddress: pieces_framework_1.Property.ShortText({
|
|
23
|
-
displayName: 'Email',
|
|
24
|
-
description: "The contact's email address. This is used to find and (update/create) the contact.",
|
|
25
|
-
required: true,
|
|
26
|
-
}),
|
|
27
|
-
firstName: pieces_framework_1.Property.ShortText({
|
|
28
|
-
displayName: 'First Name',
|
|
29
|
-
required: false,
|
|
30
|
-
}),
|
|
31
|
-
lastName: pieces_framework_1.Property.ShortText({
|
|
32
|
-
displayName: 'Last Name',
|
|
33
|
-
required: false,
|
|
34
|
-
}),
|
|
35
|
-
phoneNumber: pieces_framework_1.Property.ShortText({
|
|
36
|
-
displayName: 'Phone Number',
|
|
37
|
-
required: false,
|
|
38
|
-
}),
|
|
39
|
-
tagIds: (0, props_1.multiTagsDropdown)(['auth', 'workspaceId']),
|
|
40
|
-
customAttributes: pieces_framework_1.Property.Object({
|
|
41
|
-
displayName: 'Custom Attributes',
|
|
42
|
-
description: 'A key-value object for custom contact data. Keys that are default properties on the Contact resource or variations of it will result in an error. E.g., first_name, First Name, etc. are not valid inputs.',
|
|
43
|
-
required: false,
|
|
44
|
-
}),
|
|
45
|
-
},
|
|
46
|
-
run(_a) {
|
|
47
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* ({ auth, propsValue }) {
|
|
48
|
-
const payload = {
|
|
49
|
-
contact: {
|
|
50
|
-
email_address: propsValue.emailAddress,
|
|
51
|
-
first_name: propsValue.firstName,
|
|
52
|
-
last_name: propsValue.lastName,
|
|
53
|
-
phone_number: propsValue.phoneNumber,
|
|
54
|
-
tag_ids: propsValue.tagIds,
|
|
55
|
-
custom_attributes: propsValue.customAttributes
|
|
56
|
-
},
|
|
57
|
-
};
|
|
58
|
-
const response = yield requests_1.clickfunnelsApiService.upsertContact(auth.props, propsValue.workspaceId, payload);
|
|
59
|
-
return response;
|
|
60
|
-
});
|
|
61
|
-
},
|
|
62
|
-
});
|
|
63
|
-
//# sourceMappingURL=update-or-create-contact.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update-or-create-contact.js","sourceRoot":"","sources":["../../../../src/lib/actions/update-or-create-contact.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,mDAAuD;AACvD,2CAAuF;AACvF,iDAA4D;AAE/C,QAAA,qBAAqB,GAAG,IAAA,+BAAY,EAAC;IAChD,IAAI,EAAE,4BAAgB;IACtB,IAAI,EAAE,uBAAuB;IAC7B,WAAW,EAAE,0BAA0B;IACvC,WAAW,EACT,oFAAoF;IACtF,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,saAAsa;QACxa,UAAU,EAAE,IAAI;KACjB;IACD,KAAK,EAAE;QACL,MAAM,EAAE,IAAA,qBAAa,EAAC,CAAC,MAAM,CAAC,CAAC;QAC/B,WAAW,EAAE,IAAA,0BAAkB,EAAC,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACnD,YAAY,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC/B,WAAW,EAAE,OAAO;YACpB,WAAW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
3
|
-
ME: string;
|
|
4
|
-
TEAMS: string;
|
|
5
|
-
WORKSPACES: string;
|
|
6
|
-
PIPELINES: string;
|
|
7
|
-
CONTACTS: string;
|
|
8
|
-
COURSES: string;
|
|
9
|
-
TAGS: string;
|
|
10
|
-
};
|
|
11
|
-
export type CLICKFUNNELS_APIKEY_AUTH = {
|
|
12
|
-
subdomain: string;
|
|
13
|
-
apiKey: string;
|
|
14
|
-
};
|
|
15
|
-
export declare const clickfunnelsAuth: import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
16
|
-
subdomain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
17
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
18
|
-
}>;
|
|
19
|
-
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/lib/common/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,qBAAqB,cAAe,MAAM,WAAqD,CAAC;AAE7G,eAAO,MAAM,aAAa;;;;;;;;CAQzB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;EAmC3B,CAAC"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.clickfunnelsAuth = exports.API_ENDPOINTS = exports.CLICKFUNNELS_BASE_URL = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const requests_1 = require("./requests");
|
|
7
|
-
const CLICKFUNNELS_BASE_URL = (subdomain) => `https://${subdomain}.myclickfunnels.com/api/v2`;
|
|
8
|
-
exports.CLICKFUNNELS_BASE_URL = CLICKFUNNELS_BASE_URL;
|
|
9
|
-
exports.API_ENDPOINTS = {
|
|
10
|
-
ME: '/me',
|
|
11
|
-
TEAMS: '/teams',
|
|
12
|
-
WORKSPACES: '/workspaces',
|
|
13
|
-
PIPELINES: '/sales/pipelines',
|
|
14
|
-
CONTACTS: '/contacts',
|
|
15
|
-
COURSES: '/courses',
|
|
16
|
-
TAGS: '/tags',
|
|
17
|
-
};
|
|
18
|
-
exports.clickfunnelsAuth = pieces_framework_1.PieceAuth.CustomAuth({
|
|
19
|
-
description: 'Enter your ClickFunnels subdomain and API key.',
|
|
20
|
-
required: true,
|
|
21
|
-
props: {
|
|
22
|
-
subdomain: pieces_framework_1.Property.ShortText({
|
|
23
|
-
displayName: 'Subdomain',
|
|
24
|
-
description: 'Your ClickFunnels subdomain (e.g., if your URL is https://mycompany.myclickfunnels.com, enter "mycompany").',
|
|
25
|
-
required: true,
|
|
26
|
-
}),
|
|
27
|
-
apiKey: pieces_framework_1.PieceAuth.SecretText({
|
|
28
|
-
displayName: 'API Key',
|
|
29
|
-
description: 'Your ClickFunnels API key. You can find this in your ClickFunnels account settings.',
|
|
30
|
-
required: true,
|
|
31
|
-
}),
|
|
32
|
-
},
|
|
33
|
-
validate: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth }) {
|
|
34
|
-
try {
|
|
35
|
-
yield requests_1.clickfunnelsApiService.fetchCurrentlyLoggedInUser(auth).catch((err) => {
|
|
36
|
-
throw new Error("something went wrong. Please check your username and API key and try again.");
|
|
37
|
-
});
|
|
38
|
-
return {
|
|
39
|
-
valid: true,
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
catch (error) {
|
|
43
|
-
return {
|
|
44
|
-
valid: false,
|
|
45
|
-
error: `Connection failed: ${error instanceof Error ? error.message : 'Unknown error'}`,
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
}),
|
|
49
|
-
});
|
|
50
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +0,0 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,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,eAC3C,EAAE;aACH,CAAC;QACJ,CAAC;IACH,CAAC,CAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
export declare const teamsDropdown: (refreshers: string[]) => import("@activepieces/pieces-framework").DropdownProperty<unknown, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
2
|
-
subdomain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
4
|
-
}>>;
|
|
5
|
-
export declare const coursesDropdown: (refreshers: string[]) => import("@activepieces/pieces-framework").DropdownProperty<unknown, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
6
|
-
subdomain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
7
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
8
|
-
}>>;
|
|
9
|
-
export declare const teamMembershipsDropdown: (refreshers: string[], required?: boolean) => import("@activepieces/pieces-framework").DropdownProperty<any, false, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
10
|
-
subdomain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
11
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
12
|
-
}>> | import("@activepieces/pieces-framework").DropdownProperty<any, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
13
|
-
subdomain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
14
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
15
|
-
}>>;
|
|
16
|
-
export declare const workspacesDropdown: (refreshers: string[]) => import("@activepieces/pieces-framework").DropdownProperty<unknown, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
17
|
-
subdomain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
18
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
19
|
-
}>>;
|
|
20
|
-
export declare const pipelinesDropdown: (refreshers: string[]) => import("@activepieces/pieces-framework").DropdownProperty<unknown, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
21
|
-
subdomain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
22
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
23
|
-
}>>;
|
|
24
|
-
export declare const pipelineStagesDropdown: (refreshers: string[]) => import("@activepieces/pieces-framework").DropdownProperty<unknown, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
25
|
-
subdomain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
26
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
27
|
-
}>>;
|
|
28
|
-
export declare const contactsDropdown: (refreshers: string[]) => import("@activepieces/pieces-framework").DropdownProperty<unknown, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
29
|
-
subdomain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
30
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
31
|
-
}>>;
|
|
32
|
-
export declare const tagsDropdown: (refreshers: string[]) => import("@activepieces/pieces-framework").DropdownProperty<unknown, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
33
|
-
subdomain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
34
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
35
|
-
}>>;
|
|
36
|
-
export declare const multiTagsDropdown: (refreshers: string[]) => import("@activepieces/pieces-framework").MultiSelectDropdownProperty<unknown, false, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
37
|
-
subdomain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
38
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
39
|
-
}>>;
|
|
40
|
-
export declare const appliedTagsDropdown: (refreshers: string[]) => import("@activepieces/pieces-framework").DropdownProperty<unknown, true, import("@activepieces/pieces-framework").CustomAuthProperty<{
|
|
41
|
-
subdomain: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
42
|
-
apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
43
|
-
}>>;
|
|
44
|
-
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../../src/lib/common/props.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa,eAAgB,MAAM,EAAE;;;GAkC9C,CAAC;AAEL,eAAO,MAAM,eAAe,eAAgB,MAAM,EAAE;;;GA6ChD,CAAC;AAEL,eAAO,MAAM,uBAAuB,eACtB,MAAM,EAAE;;;;;;GAwDlB,CAAC;AAEL,eAAO,MAAM,kBAAkB,eAAgB,MAAM,EAAE;;;GA6CnD,CAAC;AAEL,eAAO,MAAM,iBAAiB,eAAgB,MAAM,EAAE;;;GA6ClD,CAAC;AAEL,eAAO,MAAM,sBAAsB,eAAgB,MAAM,EAAE;;;GA6CvD,CAAC;AAEL,eAAO,MAAM,gBAAgB,eAAgB,MAAM,EAAE;;;GAuDjD,CAAC;AAEL,eAAO,MAAM,YAAY,eAAgB,MAAM,EAAE;;;GAyC7C,CAAC;AACL,eAAO,MAAM,iBAAiB,eAAgB,MAAM,EAAE;;;GAyClD,CAAC;AAEL,eAAO,MAAM,mBAAmB,eAAgB,MAAM,EAAE;;;GA4CpD,CAAC"}
|