@scopieflows/app-avoma 0.1.0
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/README.md +7 -0
- package/package.json +28 -0
- package/src/i18n/de.json +67 -0
- package/src/i18n/es.json +67 -0
- package/src/i18n/fr.json +67 -0
- package/src/i18n/ja.json +67 -0
- package/src/i18n/nl.json +67 -0
- package/src/i18n/pt.json +67 -0
- package/src/i18n/translation.json +67 -0
- package/src/i18n/zh.json +67 -0
- package/src/index.d.ts +1 -0
- package/src/index.js +23 -0
- package/src/index.js.map +1 -0
- package/src/lib/actions/create-call.d.ts +17 -0
- package/src/lib/actions/create-call.js +230 -0
- package/src/lib/actions/create-call.js.map +1 -0
- package/src/lib/actions/get-meeting-recording.d.ts +3 -0
- package/src/lib/actions/get-meeting-recording.js +80 -0
- package/src/lib/actions/get-meeting-recording.js.map +1 -0
- package/src/lib/actions/get-meeting-transcription.d.ts +3 -0
- package/src/lib/actions/get-meeting-transcription.js +61 -0
- package/src/lib/actions/get-meeting-transcription.js.map +1 -0
- package/src/lib/actions/index.d.ts +3 -0
- package/src/lib/actions/index.js +10 -0
- package/src/lib/actions/index.js.map +1 -0
- package/src/lib/common/index.d.ts +7 -0
- package/src/lib/common/index.js +150 -0
- package/src/lib/common/index.js.map +1 -0
- package/src/lib/triggers/index.d.ts +4 -0
- package/src/lib/triggers/index.js +12 -0
- package/src/lib/triggers/index.js.map +1 -0
- package/src/lib/triggers/meeting-cancelled.d.ts +10 -0
- package/src/lib/triggers/meeting-cancelled.js +75 -0
- package/src/lib/triggers/meeting-cancelled.js.map +1 -0
- package/src/lib/triggers/meeting-rescheduled.d.ts +10 -0
- package/src/lib/triggers/meeting-rescheduled.js +75 -0
- package/src/lib/triggers/meeting-rescheduled.js.map +1 -0
- package/src/lib/triggers/new-meeting-scheduled.d.ts +10 -0
- package/src/lib/triggers/new-meeting-scheduled.js +75 -0
- package/src/lib/triggers/new-meeting-scheduled.js.map +1 -0
- package/src/lib/triggers/new-note.d.ts +10 -0
- package/src/lib/triggers/new-note.js +100 -0
- package/src/lib/triggers/new-note.js.map +1 -0
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.avomaCommon = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const pieces_framework_1 = require("@scopieflows/pieces-framework");
|
|
6
|
+
const pieces_common_1 = require("@scopieflows/pieces-common");
|
|
7
|
+
const avomaAuth = pieces_framework_1.PieceAuth.SecretText({
|
|
8
|
+
displayName: 'API Key',
|
|
9
|
+
description: 'Your Avoma API Key (Bearer token). Generate it from your Avoma API Integration settings: https://help.avoma.com/api-integration-for-avoma',
|
|
10
|
+
required: true
|
|
11
|
+
});
|
|
12
|
+
exports.avomaCommon = {
|
|
13
|
+
avomaAuth: avomaAuth,
|
|
14
|
+
meetingDropdown: pieces_framework_1.Property.Dropdown({
|
|
15
|
+
auth: avomaAuth,
|
|
16
|
+
displayName: 'Meeting',
|
|
17
|
+
description: 'Select a meeting from your Avoma account',
|
|
18
|
+
required: true,
|
|
19
|
+
refreshers: [],
|
|
20
|
+
options: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth }) {
|
|
21
|
+
var _b, _c;
|
|
22
|
+
if (!auth) {
|
|
23
|
+
return {
|
|
24
|
+
disabled: true,
|
|
25
|
+
placeholder: 'Please connect your Avoma account first',
|
|
26
|
+
options: []
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
try {
|
|
30
|
+
const toDate = new Date().toISOString();
|
|
31
|
+
const fromDate = new Date(Date.now() - 30 * 24 * 60 * 60 * 1000).toISOString();
|
|
32
|
+
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
33
|
+
method: pieces_common_1.HttpMethod.GET,
|
|
34
|
+
url: `https://api.avoma.com/v1/meetings/?page_size=100&from_date=${encodeURIComponent(fromDate)}&to_date=${encodeURIComponent(toDate)}`,
|
|
35
|
+
headers: {
|
|
36
|
+
'Authorization': `Bearer ${auth.secret_text}`,
|
|
37
|
+
'Content-Type': 'application/json'
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
const meetings = ((_b = response.body) === null || _b === void 0 ? void 0 : _b.results) || ((_c = response.body) === null || _c === void 0 ? void 0 : _c.data) || response.body || [];
|
|
41
|
+
if (!Array.isArray(meetings)) {
|
|
42
|
+
return {
|
|
43
|
+
disabled: true,
|
|
44
|
+
placeholder: 'No meetings found or unexpected response format',
|
|
45
|
+
options: []
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
disabled: false,
|
|
50
|
+
options: meetings.map((meeting) => {
|
|
51
|
+
const subject = meeting.subject || meeting.title || 'Untitled Meeting';
|
|
52
|
+
const startTime = meeting.start_time || meeting.startTime || meeting.created_at;
|
|
53
|
+
const dateStr = startTime ? new Date(startTime).toLocaleDateString() : 'Unknown date';
|
|
54
|
+
const uuid = meeting.uuid || meeting.id;
|
|
55
|
+
return {
|
|
56
|
+
label: `${subject} - ${dateStr}`,
|
|
57
|
+
value: uuid
|
|
58
|
+
};
|
|
59
|
+
})
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
catch (error) {
|
|
63
|
+
console.error('Error fetching meetings:', error);
|
|
64
|
+
return {
|
|
65
|
+
disabled: true,
|
|
66
|
+
placeholder: 'Failed to load meetings. Please check your API key.',
|
|
67
|
+
options: []
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
})
|
|
71
|
+
}),
|
|
72
|
+
transcriptionDropdown: pieces_framework_1.Property.Dropdown({
|
|
73
|
+
auth: avomaAuth,
|
|
74
|
+
displayName: 'Transcription',
|
|
75
|
+
description: 'Select a transcription from your Avoma meetings',
|
|
76
|
+
required: true,
|
|
77
|
+
refreshers: [],
|
|
78
|
+
options: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth }) {
|
|
79
|
+
var _b;
|
|
80
|
+
if (!auth) {
|
|
81
|
+
return {
|
|
82
|
+
disabled: true,
|
|
83
|
+
placeholder: 'Please connect your Avoma account first',
|
|
84
|
+
options: []
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
try {
|
|
88
|
+
const toDate = new Date().toISOString();
|
|
89
|
+
const fromDate = new Date(Date.now() - 30 * 24 * 60 * 60 * 1000).toISOString();
|
|
90
|
+
const response = yield pieces_common_1.httpClient.sendRequest({
|
|
91
|
+
method: pieces_common_1.HttpMethod.GET,
|
|
92
|
+
url: `https://api.avoma.com/v1/transcriptions/?page_size=100&from_date=${encodeURIComponent(fromDate)}&to_date=${encodeURIComponent(toDate)}`,
|
|
93
|
+
headers: {
|
|
94
|
+
'Authorization': `Bearer ${auth.secret_text}`,
|
|
95
|
+
'Content-Type': 'application/json'
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
let transcriptions = [];
|
|
99
|
+
if ((_b = response.body) === null || _b === void 0 ? void 0 : _b.results) {
|
|
100
|
+
transcriptions = response.body.results;
|
|
101
|
+
}
|
|
102
|
+
else if (Array.isArray(response.body)) {
|
|
103
|
+
transcriptions = response.body;
|
|
104
|
+
}
|
|
105
|
+
else if (response.body && typeof response.body === 'object') {
|
|
106
|
+
transcriptions = [response.body];
|
|
107
|
+
}
|
|
108
|
+
if (!Array.isArray(transcriptions)) {
|
|
109
|
+
return {
|
|
110
|
+
disabled: true,
|
|
111
|
+
placeholder: 'Unexpected response format from API',
|
|
112
|
+
options: []
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
return {
|
|
116
|
+
disabled: false,
|
|
117
|
+
options: transcriptions.map((transcription) => {
|
|
118
|
+
var _a, _b;
|
|
119
|
+
const transcriptionUuid = transcription.uuid;
|
|
120
|
+
const speakersCount = ((_a = transcription.speakers) === null || _a === void 0 ? void 0 : _a.length) || 0;
|
|
121
|
+
const transcriptLength = ((_b = transcription.transcript) === null || _b === void 0 ? void 0 : _b.length) || 0;
|
|
122
|
+
return {
|
|
123
|
+
label: `Transcription ${transcriptionUuid.substring(0, 8)}... - ${speakersCount} speakers, ${transcriptLength} paragraphs`,
|
|
124
|
+
value: transcriptionUuid
|
|
125
|
+
};
|
|
126
|
+
})
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
catch (error) {
|
|
130
|
+
console.error('Error fetching transcriptions:', error);
|
|
131
|
+
return {
|
|
132
|
+
disabled: true,
|
|
133
|
+
placeholder: 'Failed to load transcriptions. Please check your API key.',
|
|
134
|
+
options: []
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
})
|
|
138
|
+
}),
|
|
139
|
+
meetingUuidProperty: pieces_framework_1.Property.ShortText({
|
|
140
|
+
displayName: 'Meeting UUID',
|
|
141
|
+
description: 'Enter the meeting UUID directly, or use the dropdown below to select from your meetings',
|
|
142
|
+
required: false
|
|
143
|
+
}),
|
|
144
|
+
transcriptionUuidProperty: pieces_framework_1.Property.ShortText({
|
|
145
|
+
displayName: 'Transcription UUID',
|
|
146
|
+
description: 'Enter the transcription UUID directly, or use the dropdown below to select from available transcriptions',
|
|
147
|
+
required: false
|
|
148
|
+
})
|
|
149
|
+
};
|
|
150
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/avoma/src/lib/common/index.ts"],"names":[],"mappings":";;;;AAAA,oEAAoE;AACpE,8DAAoE;AAEpE,MAAM,SAAS,GAAG,4BAAS,CAAC,UAAU,CAAC;IACrC,WAAW,EAAE,SAAS;IACtB,WAAW,EACT,2IAA2I;IAC7I,QAAQ,EAAE,IAAI;CACf,CAAC,CAAC;AACU,QAAA,WAAW,GAAG;IACzB,SAAS,EAAE,SAAS;IACpB,eAAe,EAAE,2BAAQ,CAAC,QAAQ,CAAC;QACjC,IAAI,EAAE,SAAS;QACf,WAAW,EAAE,SAAS;QACtB,WAAW,EAAE,0CAA0C;QACvD,QAA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C,aAAkB,EAAE,EAAE;;wBACjD,MAAM,iBAAiB,GAAG,aAAa,CAAC,IAAI,CAAC;wBAC7C,MAAM,aAAa,GAAG,CAAA,MAAA,aAAa,CAAC,QAAQ,0CAAE,MAAM,KAAI,CAAC,CAAC;wBAC1D,MAAM,gBAAgB,GAAG,CAAA,MAAA,aAAa,CAAC,UAAU,0CAAE,MAAM,KAAI,CAAC,CAAC;wBAE/D,OAAO;4BACL,KAAK,EAAE,iBAAiB,iBAAiB,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,SAAS,aAAa,cAAc,gBAAgB,aAAa;4BAC1H,KAAK,EAAE,iBAAiB;yBACzB,CAAC;oBACJ,CAAC,CAAC;iBACH,CAAC;YACJ,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,OAAO,CAAC,KAAK,CAAC,gCAAgC,EAAE,KAAK,CAAC,CAAC;gBACvD,OAAO;oBACL,QAAQ,EAAE,IAAI;oBACd,WAAW,EAAE,2DAA2D;oBACxE,OAAO,EAAE,EAAE;iBACZ,CAAC;YACJ,CAAC;QACH,CAAC,CAAA;KACF,CAAC;IAEF,mBAAmB,EAAE,2BAAQ,CAAC,SAAS,CAAC;QACtC,WAAW,EAAE,cAAc;QAC3B,WAAW,EAAE,yFAAyF;QACtG,QAAQ,EAAE,KAAK;KAChB,CAAC;IAEF,yBAAyB,EAAE,2BAAQ,CAAC,SAAS,CAAC;QAC5C,WAAW,EAAE,oBAAoB;QACjC,WAAW,EAAE,0GAA0G;QACvH,QAAQ,EAAE,KAAK;KAChB,CAAC;CACH,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.meetingCancelled = exports.meetingRescheduled = exports.newMeetingScheduled = exports.newNote = void 0;
|
|
4
|
+
var new_note_1 = require("./new-note");
|
|
5
|
+
Object.defineProperty(exports, "newNote", { enumerable: true, get: function () { return new_note_1.newNote; } });
|
|
6
|
+
var new_meeting_scheduled_1 = require("./new-meeting-scheduled");
|
|
7
|
+
Object.defineProperty(exports, "newMeetingScheduled", { enumerable: true, get: function () { return new_meeting_scheduled_1.newMeetingScheduled; } });
|
|
8
|
+
var meeting_rescheduled_1 = require("./meeting-rescheduled");
|
|
9
|
+
Object.defineProperty(exports, "meetingRescheduled", { enumerable: true, get: function () { return meeting_rescheduled_1.meetingRescheduled; } });
|
|
10
|
+
var meeting_cancelled_1 = require("./meeting-cancelled");
|
|
11
|
+
Object.defineProperty(exports, "meetingCancelled", { enumerable: true, get: function () { return meeting_cancelled_1.meetingCancelled; } });
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/avoma/src/lib/triggers/index.ts"],"names":[],"mappings":";;;AAAA,uCAAqC;AAA5B,mGAAA,OAAO,OAAA;AAChB,iEAA8D;AAArD,4HAAA,mBAAmB,OAAA;AAC5B,6DAA2D;AAAlD,yHAAA,kBAAkB,OAAA;AAC3B,yDAAuD;AAA9C,qHAAA,gBAAgB,OAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TriggerStrategy } from '@scopieflows/pieces-framework';
|
|
2
|
+
export declare const meetingCancelled: import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@scopieflows/pieces-framework").PieceAuthProperty | undefined, {
|
|
3
|
+
setupInstructions: import("dist/packages/pieces/community/framework/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
4
|
+
}> | import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@scopieflows/pieces-framework").PieceAuthProperty | undefined, {
|
|
5
|
+
setupInstructions: import("dist/packages/pieces/community/framework/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
6
|
+
}> | import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.MANUAL, import("@scopieflows/pieces-framework").PieceAuthProperty | undefined, {
|
|
7
|
+
setupInstructions: import("dist/packages/pieces/community/framework/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
8
|
+
}> | import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@scopieflows/pieces-framework").PieceAuthProperty | undefined, {
|
|
9
|
+
setupInstructions: import("dist/packages/pieces/community/framework/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
10
|
+
}>;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.meetingCancelled = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const pieces_framework_1 = require("@scopieflows/pieces-framework");
|
|
6
|
+
exports.meetingCancelled = (0, pieces_framework_1.createTrigger)({
|
|
7
|
+
name: 'meeting_cancelled',
|
|
8
|
+
displayName: 'Meeting Cancelled',
|
|
9
|
+
description: 'Triggers when a meeting booked via the scheduling page is cancelled',
|
|
10
|
+
type: pieces_framework_1.TriggerStrategy.WEBHOOK,
|
|
11
|
+
props: {
|
|
12
|
+
setupInstructions: pieces_framework_1.Property.MarkDown({
|
|
13
|
+
value: `
|
|
14
|
+
**Quick Setup:**
|
|
15
|
+
|
|
16
|
+
1. In Avoma: **Settings > Integrations > Webhooks**
|
|
17
|
+
2. **Webhook URL:** \`{{webhookUrl}}\`
|
|
18
|
+
3. **Event Type:** Select **"MEETING_BOOKED_VIA_SCHEDULER_CANCELED"**
|
|
19
|
+
4. **HTTP Method:** POST
|
|
20
|
+
5. **Content Type:** application/json
|
|
21
|
+
|
|
22
|
+
**Note:** Requires admin permissions in Avoma.
|
|
23
|
+
`,
|
|
24
|
+
}),
|
|
25
|
+
},
|
|
26
|
+
sampleData: {
|
|
27
|
+
booker_email: 'client@example.com',
|
|
28
|
+
cancel_reason: 'Schedule conflict - need to reschedule for next week',
|
|
29
|
+
conference_link: 'https://zoom.us/j/123456789',
|
|
30
|
+
created: '2019-08-24T14:15:22Z',
|
|
31
|
+
event_end_time: '2019-08-24T15:15:22Z',
|
|
32
|
+
event_start_time: '2019-08-24T14:15:22Z',
|
|
33
|
+
event_type: 'MEETING_BOOKED_VIA_SCHEDULER_CANCELED',
|
|
34
|
+
invitee_details: {
|
|
35
|
+
email: 'client@example.com',
|
|
36
|
+
locale: 'en-US',
|
|
37
|
+
name: 'John Client',
|
|
38
|
+
tz: 'America/New_York'
|
|
39
|
+
},
|
|
40
|
+
invitee_responses: [
|
|
41
|
+
{
|
|
42
|
+
question: 'What would you like to discuss?',
|
|
43
|
+
response: 'Product demo and pricing discussion'
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
question: 'Company size?',
|
|
47
|
+
response: '50-100 employees'
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
meeting_uuid: '65fb768c-30b9-4a9a-999f-5dab85e66635',
|
|
51
|
+
modified: '2019-08-24T16:30:22Z',
|
|
52
|
+
organizer_email: 'sales@company.com',
|
|
53
|
+
organizer_timezone: 'America/New_York',
|
|
54
|
+
purpose: 'Sales Demo',
|
|
55
|
+
scheduling_page_link: 'https://meet.avoma.com/sales-demo',
|
|
56
|
+
subject: 'Product Demo - John Client (Cancelled)',
|
|
57
|
+
uuid: '095be615-a8ad-4c33-8e9c-c7612fbf6c9f'
|
|
58
|
+
},
|
|
59
|
+
onEnable(context) {
|
|
60
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
61
|
+
// Manual setup - no programmatic registration needed
|
|
62
|
+
});
|
|
63
|
+
},
|
|
64
|
+
onDisable(context) {
|
|
65
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
66
|
+
// Manual setup - users manage webhooks in Avoma UI
|
|
67
|
+
});
|
|
68
|
+
},
|
|
69
|
+
run(context) {
|
|
70
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
71
|
+
return [context.payload.body];
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
//# sourceMappingURL=meeting-cancelled.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meeting-cancelled.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/avoma/src/lib/triggers/meeting-cancelled.ts"],"names":[],"mappings":";;;;AAAA,oEAAyF;AAE5E,QAAA,gBAAgB,GAAG,IAAA,gCAAa,EAAC;IAC5C,IAAI,EAAE,mBAAmB;IACzB,WAAW,EAAE,mBAAmB;IAChC,WAAW,EAAE,qEAAqE;IAClF,IAAI,EAAE,kCAAe,CAAC,OAAO;IAC7B,KAAK,EAAE;QACL,iBAAiB,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACnC,KAAK,EAAE;;;;;;;;;;OAUN;SACF,CAAC;KACH;IACD,UAAU,EAAE;QACV,YAAY,EAAE,oBAAoB;QAClC,aAAa,EAAE,sDAAsD;QACrE,eAAe,EAAE,6BAA6B;QAC9C,OAAO,EAAE,sBAAsB;QAC/B,cAAc,EAAE,sBAAsB;QACtC,gBAAgB,EAAE,sBAAsB;QACxC,UAAU,EAAE,uCAAuC;QACnD,eAAe,EAAE;YACf,KAAK,EAAE,oBAAoB;YAC3B,MAAM,EAAE,OAAO;YACf,IAAI,EAAE,aAAa;YACnB,EAAE,EAAE,kBAAkB;SACvB;QACD,iBAAiB,EAAE;YACjB;gBACE,QAAQ,EAAE,iCAAiC;gBAC3C,QAAQ,EAAE,qCAAqC;aAChD;YACD;gBACE,QAAQ,EAAE,eAAe;gBACzB,QAAQ,EAAE,kBAAkB;aAC7B;SACF;QACD,YAAY,EAAE,sCAAsC;QACpD,QAAQ,EAAE,sBAAsB;QAChC,eAAe,EAAE,mBAAmB;QACpC,kBAAkB,EAAE,kBAAkB;QACtC,OAAO,EAAE,YAAY;QACrB,oBAAoB,EAAE,mCAAmC;QACzD,OAAO,EAAE,wCAAwC;QACjD,IAAI,EAAE,sCAAsC;KAC7C;IACK,QAAQ,CAAC,OAAO;;YACpB,qDAAqD;QACvD,CAAC;KAAA;IAEK,SAAS,CAAC,OAAO;;YACrB,mDAAmD;QACrD,CAAC;KAAA;IAEK,GAAG,CAAC,OAAO;;YACf,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAChC,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TriggerStrategy } from '@scopieflows/pieces-framework';
|
|
2
|
+
export declare const meetingRescheduled: import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@scopieflows/pieces-framework").PieceAuthProperty | undefined, {
|
|
3
|
+
setupInstructions: import("dist/packages/pieces/community/framework/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
4
|
+
}> | import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@scopieflows/pieces-framework").PieceAuthProperty | undefined, {
|
|
5
|
+
setupInstructions: import("dist/packages/pieces/community/framework/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
6
|
+
}> | import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.MANUAL, import("@scopieflows/pieces-framework").PieceAuthProperty | undefined, {
|
|
7
|
+
setupInstructions: import("dist/packages/pieces/community/framework/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
8
|
+
}> | import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@scopieflows/pieces-framework").PieceAuthProperty | undefined, {
|
|
9
|
+
setupInstructions: import("dist/packages/pieces/community/framework/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
10
|
+
}>;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.meetingRescheduled = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const pieces_framework_1 = require("@scopieflows/pieces-framework");
|
|
6
|
+
exports.meetingRescheduled = (0, pieces_framework_1.createTrigger)({
|
|
7
|
+
name: 'meeting_rescheduled',
|
|
8
|
+
displayName: 'Meeting Rescheduled',
|
|
9
|
+
description: 'Triggers when a scheduled meeting is rescheduled',
|
|
10
|
+
type: pieces_framework_1.TriggerStrategy.WEBHOOK,
|
|
11
|
+
props: {
|
|
12
|
+
setupInstructions: pieces_framework_1.Property.MarkDown({
|
|
13
|
+
value: `
|
|
14
|
+
**Quick Setup:**
|
|
15
|
+
|
|
16
|
+
1. In Avoma: **Settings > Integrations > Webhooks**
|
|
17
|
+
2. **Webhook URL:** \`{{webhookUrl}}\`
|
|
18
|
+
3. **Event Type:** Select **"MEETING_BOOKED_VIA_SCHEDULER_RESCHEDULED"**
|
|
19
|
+
4. **HTTP Method:** POST
|
|
20
|
+
5. **Content Type:** application/json
|
|
21
|
+
|
|
22
|
+
**Note:** Requires admin permissions in Avoma.
|
|
23
|
+
`,
|
|
24
|
+
}),
|
|
25
|
+
},
|
|
26
|
+
sampleData: {
|
|
27
|
+
booker_email: 'client@example.com',
|
|
28
|
+
cancel_reason: null,
|
|
29
|
+
conference_link: 'https://zoom.us/j/123456789',
|
|
30
|
+
created: '2019-08-24T14:15:22Z',
|
|
31
|
+
event_end_time: '2019-08-25T15:15:22Z',
|
|
32
|
+
event_start_time: '2019-08-25T14:15:22Z',
|
|
33
|
+
event_type: 'MEETING_BOOKED_VIA_SCHEDULER_RESCHEDULED',
|
|
34
|
+
invitee_details: {
|
|
35
|
+
email: 'client@example.com',
|
|
36
|
+
locale: 'en-US',
|
|
37
|
+
name: 'John Client',
|
|
38
|
+
tz: 'America/New_York'
|
|
39
|
+
},
|
|
40
|
+
invitee_responses: [
|
|
41
|
+
{
|
|
42
|
+
question: 'What would you like to discuss?',
|
|
43
|
+
response: 'Product demo and pricing discussion'
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
question: 'Company size?',
|
|
47
|
+
response: '50-100 employees'
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
meeting_uuid: '65fb768c-30b9-4a9a-999f-5dab85e66635',
|
|
51
|
+
modified: '2019-08-24T16:30:22Z',
|
|
52
|
+
organizer_email: 'sales@company.com',
|
|
53
|
+
organizer_timezone: 'America/New_York',
|
|
54
|
+
purpose: 'Sales Demo',
|
|
55
|
+
scheduling_page_link: 'https://meet.avoma.com/sales-demo',
|
|
56
|
+
subject: 'Product Demo - John Client (Rescheduled)',
|
|
57
|
+
uuid: '095be615-a8ad-4c33-8e9c-c7612fbf6c9f'
|
|
58
|
+
},
|
|
59
|
+
onEnable(context) {
|
|
60
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
61
|
+
// Manual setup - no programmatic registration needed
|
|
62
|
+
});
|
|
63
|
+
},
|
|
64
|
+
onDisable(context) {
|
|
65
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
66
|
+
// Manual setup - users manage webhooks in Avoma UI
|
|
67
|
+
});
|
|
68
|
+
},
|
|
69
|
+
run(context) {
|
|
70
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
71
|
+
return [context.payload.body];
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
//# sourceMappingURL=meeting-rescheduled.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meeting-rescheduled.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/avoma/src/lib/triggers/meeting-rescheduled.ts"],"names":[],"mappings":";;;;AAAA,oEAAyF;AAE5E,QAAA,kBAAkB,GAAG,IAAA,gCAAa,EAAC;IAC9C,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE,qBAAqB;IAClC,WAAW,EAAE,kDAAkD;IAC/D,IAAI,EAAE,kCAAe,CAAC,OAAO;IAC7B,KAAK,EAAE;QACL,iBAAiB,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACnC,KAAK,EAAE;;;;;;;;;;OAUN;SACF,CAAC;KACH;IACD,UAAU,EAAE;QACV,YAAY,EAAE,oBAAoB;QAClC,aAAa,EAAE,IAAI;QACnB,eAAe,EAAE,6BAA6B;QAC9C,OAAO,EAAE,sBAAsB;QAC/B,cAAc,EAAE,sBAAsB;QACtC,gBAAgB,EAAE,sBAAsB;QACxC,UAAU,EAAE,0CAA0C;QACtD,eAAe,EAAE;YACf,KAAK,EAAE,oBAAoB;YAC3B,MAAM,EAAE,OAAO;YACf,IAAI,EAAE,aAAa;YACnB,EAAE,EAAE,kBAAkB;SACvB;QACD,iBAAiB,EAAE;YACjB;gBACE,QAAQ,EAAE,iCAAiC;gBAC3C,QAAQ,EAAE,qCAAqC;aAChD;YACD;gBACE,QAAQ,EAAE,eAAe;gBACzB,QAAQ,EAAE,kBAAkB;aAC7B;SACF;QACD,YAAY,EAAE,sCAAsC;QACpD,QAAQ,EAAE,sBAAsB;QAChC,eAAe,EAAE,mBAAmB;QACpC,kBAAkB,EAAE,kBAAkB;QACtC,OAAO,EAAE,YAAY;QACrB,oBAAoB,EAAE,mCAAmC;QACzD,OAAO,EAAE,0CAA0C;QACnD,IAAI,EAAE,sCAAsC;KAC7C;IACK,QAAQ,CAAC,OAAO;;YACpB,qDAAqD;QACvD,CAAC;KAAA;IAEK,SAAS,CAAC,OAAO;;YACrB,mDAAmD;QACrD,CAAC;KAAA;IAEK,GAAG,CAAC,OAAO;;YACf,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAChC,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TriggerStrategy } from '@scopieflows/pieces-framework';
|
|
2
|
+
export declare const newMeetingScheduled: import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@scopieflows/pieces-framework").PieceAuthProperty | undefined, {
|
|
3
|
+
setupInstructions: import("dist/packages/pieces/community/framework/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
4
|
+
}> | import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@scopieflows/pieces-framework").PieceAuthProperty | undefined, {
|
|
5
|
+
setupInstructions: import("dist/packages/pieces/community/framework/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
6
|
+
}> | import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.MANUAL, import("@scopieflows/pieces-framework").PieceAuthProperty | undefined, {
|
|
7
|
+
setupInstructions: import("dist/packages/pieces/community/framework/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
8
|
+
}> | import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@scopieflows/pieces-framework").PieceAuthProperty | undefined, {
|
|
9
|
+
setupInstructions: import("dist/packages/pieces/community/framework/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
10
|
+
}>;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.newMeetingScheduled = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const pieces_framework_1 = require("@scopieflows/pieces-framework");
|
|
6
|
+
exports.newMeetingScheduled = (0, pieces_framework_1.createTrigger)({
|
|
7
|
+
name: 'new_meeting_scheduled',
|
|
8
|
+
displayName: 'New Meeting Scheduled',
|
|
9
|
+
description: 'Triggers when a meeting is booked via one of your Avoma scheduling pages',
|
|
10
|
+
type: pieces_framework_1.TriggerStrategy.WEBHOOK,
|
|
11
|
+
props: {
|
|
12
|
+
setupInstructions: pieces_framework_1.Property.MarkDown({
|
|
13
|
+
value: `
|
|
14
|
+
**Quick Setup:**
|
|
15
|
+
|
|
16
|
+
1. In Avoma: **Settings > Integrations > Webhooks**
|
|
17
|
+
2. **Webhook URL:** \`{{webhookUrl}}\`
|
|
18
|
+
3. **Event Type:** Select **"MEETING_BOOKED_VIA_SCHEDULER"**
|
|
19
|
+
4. **HTTP Method:** POST
|
|
20
|
+
5. **Content Type:** application/json
|
|
21
|
+
|
|
22
|
+
**Note:** Requires admin permissions in Avoma.
|
|
23
|
+
`,
|
|
24
|
+
}),
|
|
25
|
+
},
|
|
26
|
+
sampleData: {
|
|
27
|
+
booker_email: 'client@example.com',
|
|
28
|
+
cancel_reason: null,
|
|
29
|
+
conference_link: 'https://zoom.us/j/123456789',
|
|
30
|
+
created: '2019-08-24T14:15:22Z',
|
|
31
|
+
event_end_time: '2019-08-24T15:15:22Z',
|
|
32
|
+
event_start_time: '2019-08-24T14:15:22Z',
|
|
33
|
+
event_type: 'MEETING_BOOKED_VIA_SCHEDULER',
|
|
34
|
+
invitee_details: {
|
|
35
|
+
email: 'client@example.com',
|
|
36
|
+
locale: 'en-US',
|
|
37
|
+
name: 'John Client',
|
|
38
|
+
tz: 'America/New_York'
|
|
39
|
+
},
|
|
40
|
+
invitee_responses: [
|
|
41
|
+
{
|
|
42
|
+
question: 'What would you like to discuss?',
|
|
43
|
+
response: 'Product demo and pricing discussion'
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
question: 'Company size?',
|
|
47
|
+
response: '50-100 employees'
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
meeting_uuid: '65fb768c-30b9-4a9a-999f-5dab85e66635',
|
|
51
|
+
modified: '2019-08-24T14:15:22Z',
|
|
52
|
+
organizer_email: 'sales@company.com',
|
|
53
|
+
organizer_timezone: 'America/New_York',
|
|
54
|
+
purpose: 'Sales Demo',
|
|
55
|
+
scheduling_page_link: 'https://meet.avoma.com/sales-demo',
|
|
56
|
+
subject: 'Product Demo - John Client',
|
|
57
|
+
uuid: '095be615-a8ad-4c33-8e9c-c7612fbf6c9f'
|
|
58
|
+
},
|
|
59
|
+
onEnable(context) {
|
|
60
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
61
|
+
// Manual setup - no programmatic registration needed
|
|
62
|
+
});
|
|
63
|
+
},
|
|
64
|
+
onDisable(context) {
|
|
65
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
66
|
+
// Manual setup - users manage webhooks in Avoma UI
|
|
67
|
+
});
|
|
68
|
+
},
|
|
69
|
+
run(context) {
|
|
70
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
71
|
+
return [context.payload.body];
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
//# sourceMappingURL=new-meeting-scheduled.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"new-meeting-scheduled.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/avoma/src/lib/triggers/new-meeting-scheduled.ts"],"names":[],"mappings":";;;;AAAA,oEAAyF;AAE5E,QAAA,mBAAmB,GAAG,IAAA,gCAAa,EAAC;IAC/C,IAAI,EAAE,uBAAuB;IAC7B,WAAW,EAAE,uBAAuB;IACpC,WAAW,EAAE,0EAA0E;IACvF,IAAI,EAAE,kCAAe,CAAC,OAAO;IAC7B,KAAK,EAAE;QACL,iBAAiB,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACnC,KAAK,EAAE;;;;;;;;;;OAUN;SACF,CAAC;KACH;IACD,UAAU,EAAE;QACV,YAAY,EAAE,oBAAoB;QAClC,aAAa,EAAE,IAAI;QACnB,eAAe,EAAE,6BAA6B;QAC9C,OAAO,EAAE,sBAAsB;QAC/B,cAAc,EAAE,sBAAsB;QACtC,gBAAgB,EAAE,sBAAsB;QACxC,UAAU,EAAE,8BAA8B;QAC1C,eAAe,EAAE;YACf,KAAK,EAAE,oBAAoB;YAC3B,MAAM,EAAE,OAAO;YACf,IAAI,EAAE,aAAa;YACnB,EAAE,EAAE,kBAAkB;SACvB;QACD,iBAAiB,EAAE;YACjB;gBACE,QAAQ,EAAE,iCAAiC;gBAC3C,QAAQ,EAAE,qCAAqC;aAChD;YACD;gBACE,QAAQ,EAAE,eAAe;gBACzB,QAAQ,EAAE,kBAAkB;aAC7B;SACF;QACD,YAAY,EAAE,sCAAsC;QACpD,QAAQ,EAAE,sBAAsB;QAChC,eAAe,EAAE,mBAAmB;QACpC,kBAAkB,EAAE,kBAAkB;QACtC,OAAO,EAAE,YAAY;QACrB,oBAAoB,EAAE,mCAAmC;QACzD,OAAO,EAAE,4BAA4B;QACrC,IAAI,EAAE,sCAAsC;KAC7C;IACK,QAAQ,CAAC,OAAO;;YACpB,qDAAqD;QACvD,CAAC;KAAA;IAEK,SAAS,CAAC,OAAO;;YACrB,mDAAmD;QACrD,CAAC;KAAA;IAEK,GAAG,CAAC,OAAO;;YACf,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAChC,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TriggerStrategy } from '@scopieflows/pieces-framework';
|
|
2
|
+
export declare const newNote: import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@scopieflows/pieces-framework").PieceAuthProperty | undefined, {
|
|
3
|
+
setupInstructions: import("dist/packages/pieces/community/framework/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
4
|
+
}> | import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@scopieflows/pieces-framework").PieceAuthProperty | undefined, {
|
|
5
|
+
setupInstructions: import("dist/packages/pieces/community/framework/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
6
|
+
}> | import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.MANUAL, import("@scopieflows/pieces-framework").PieceAuthProperty | undefined, {
|
|
7
|
+
setupInstructions: import("dist/packages/pieces/community/framework/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
8
|
+
}> | import("@scopieflows/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@scopieflows/pieces-framework").PieceAuthProperty | undefined, {
|
|
9
|
+
setupInstructions: import("dist/packages/pieces/community/framework/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
10
|
+
}>;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.newNote = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const pieces_framework_1 = require("@scopieflows/pieces-framework");
|
|
6
|
+
exports.newNote = (0, pieces_framework_1.createTrigger)({
|
|
7
|
+
name: 'new_note',
|
|
8
|
+
displayName: 'New Note',
|
|
9
|
+
description: 'Triggers when notes are successfully generated for meetings or calls',
|
|
10
|
+
type: pieces_framework_1.TriggerStrategy.WEBHOOK,
|
|
11
|
+
props: {
|
|
12
|
+
setupInstructions: pieces_framework_1.Property.MarkDown({
|
|
13
|
+
value: `
|
|
14
|
+
**Quick Setup:**
|
|
15
|
+
|
|
16
|
+
1. In Avoma: **Settings > Integrations > Webhooks**
|
|
17
|
+
2. **Webhook URL:** \`{{webhookUrl}}\`
|
|
18
|
+
3. **Event Type:** Select **"AINOTE"**
|
|
19
|
+
4. **HTTP Method:** POST
|
|
20
|
+
5. **Content Type:** application/json
|
|
21
|
+
|
|
22
|
+
**Note:** Requires admin permissions in Avoma.
|
|
23
|
+
`,
|
|
24
|
+
}),
|
|
25
|
+
},
|
|
26
|
+
sampleData: {
|
|
27
|
+
action_items: [
|
|
28
|
+
{
|
|
29
|
+
action_item: 'Follow up with client on project timeline',
|
|
30
|
+
company: 'Avoma',
|
|
31
|
+
email: 'john.doe@avoma.com',
|
|
32
|
+
name: 'John Doe'
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
ai_notes: '<h2>Participants</h2><ul><li><p>Avoma: John Doe</p></li></ul>',
|
|
36
|
+
ai_notes_txt: 'Participants: Avoma: John Doe',
|
|
37
|
+
attendees: [
|
|
38
|
+
{
|
|
39
|
+
email: 'user@example.com',
|
|
40
|
+
name: 'John Doe',
|
|
41
|
+
response_status: 'accepted',
|
|
42
|
+
uuid: '095be615-a8ad-4c33-8e9c-c7612fbf6c9f'
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
audio_ready: true,
|
|
46
|
+
audio_url: 'http://example.com',
|
|
47
|
+
created: '2019-08-24T14:15:22Z',
|
|
48
|
+
duration: 3600,
|
|
49
|
+
end_at: '2019-08-24T14:15:22Z',
|
|
50
|
+
event_type: 'AINOTE',
|
|
51
|
+
is_call: true,
|
|
52
|
+
is_internal: false,
|
|
53
|
+
meeting_url: 'https://app.avoma.com/meeting/aa380fc2-725d-4ef8-909c-c595c0e62bcd',
|
|
54
|
+
modified: '2019-08-24T14:15:22Z',
|
|
55
|
+
notes_ready: true,
|
|
56
|
+
organizer_email: 'user@example.com',
|
|
57
|
+
organizer_name: 'John Doe',
|
|
58
|
+
privacy: 'private',
|
|
59
|
+
processing_status: 'completed',
|
|
60
|
+
insights: {
|
|
61
|
+
filler_wpm: [],
|
|
62
|
+
longest_monologue: {},
|
|
63
|
+
patience: [],
|
|
64
|
+
sentiment: {},
|
|
65
|
+
speaker_mapping: {},
|
|
66
|
+
talk_stats: {},
|
|
67
|
+
wpm: []
|
|
68
|
+
},
|
|
69
|
+
purpose: {
|
|
70
|
+
label: 'Sales Call',
|
|
71
|
+
uuid: '095be615-a8ad-4c33-8e9c-c7612fbf6c9f'
|
|
72
|
+
},
|
|
73
|
+
recording_uuid: '3e256a03-2cdd-4fe9-823b-2b61bb25d916',
|
|
74
|
+
start_at: '2019-08-24T14:15:22Z',
|
|
75
|
+
state: 'completed',
|
|
76
|
+
subject: 'Weekly Team Meeting',
|
|
77
|
+
transcript_ready: true,
|
|
78
|
+
transcription_uuid: '4753c6bf-25a6-45a1-8d86-0af7c8bde615',
|
|
79
|
+
transcription_vtt_url: 'http://example.com',
|
|
80
|
+
uuid: '095be615-a8ad-4c33-8e9c-c7612fbf6c9f',
|
|
81
|
+
video_ready: true,
|
|
82
|
+
video_url: 'http://example.com'
|
|
83
|
+
},
|
|
84
|
+
onEnable(context) {
|
|
85
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
86
|
+
// Manual setup - no programmatic registration needed
|
|
87
|
+
});
|
|
88
|
+
},
|
|
89
|
+
onDisable(context) {
|
|
90
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
91
|
+
// Manual setup - users manage webhooks in Avoma UI
|
|
92
|
+
});
|
|
93
|
+
},
|
|
94
|
+
run(context) {
|
|
95
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
96
|
+
return [context.payload.body];
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
//# sourceMappingURL=new-note.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"new-note.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/avoma/src/lib/triggers/new-note.ts"],"names":[],"mappings":";;;;AAAA,oEAAyF;AAE5E,QAAA,OAAO,GAAG,IAAA,gCAAa,EAAC;IACnC,IAAI,EAAE,UAAU;IAChB,WAAW,EAAE,UAAU;IACvB,WAAW,EACT,sEAAsE;IACxE,IAAI,EAAE,kCAAe,CAAC,OAAO;IAC7B,KAAK,EAAE;QACL,iBAAiB,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACnC,KAAK,EAAE;;;;;;;;;;OAUN;SACF,CAAC;KACH;IACD,UAAU,EAAE;QACV,YAAY,EAAE;YACZ;gBACE,WAAW,EAAE,2CAA2C;gBACxD,OAAO,EAAE,OAAO;gBAChB,KAAK,EAAE,oBAAoB;gBAC3B,IAAI,EAAE,UAAU;aACjB;SACF;QACD,QAAQ,EAAE,+DAA+D;QACzE,YAAY,EAAE,+BAA+B;QAC7C,SAAS,EAAE;YACT;gBACE,KAAK,EAAE,kBAAkB;gBACzB,IAAI,EAAE,UAAU;gBAChB,eAAe,EAAE,UAAU;gBAC3B,IAAI,EAAE,sCAAsC;aAC7C;SACF;QACD,WAAW,EAAE,IAAI;QACjB,SAAS,EAAE,oBAAoB;QAC/B,OAAO,EAAE,sBAAsB;QAC/B,QAAQ,EAAE,IAAI;QACd,MAAM,EAAE,sBAAsB;QAC9B,UAAU,EAAE,QAAQ;QACpB,OAAO,E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