n8n-nodes-calendly 2.7.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/README.md +111 -0
- package/dist/credentials/CalendlyApi.credentials.d.ts +10 -0
- package/dist/credentials/CalendlyApi.credentials.d.ts.map +1 -0
- package/dist/credentials/CalendlyApi.credentials.js +37 -0
- package/dist/credentials/CalendlyApi.credentials.js.map +1 -0
- package/dist/nodes/Calendly/Calendly.node.d.ts +6 -0
- package/dist/nodes/Calendly/Calendly.node.d.ts.map +1 -0
- package/dist/nodes/Calendly/Calendly.node.js +561 -0
- package/dist/nodes/Calendly/Calendly.node.js.map +1 -0
- package/dist/nodes/Calendly/GenericFunctions.d.ts +19 -0
- package/dist/nodes/Calendly/GenericFunctions.d.ts.map +1 -0
- package/dist/nodes/Calendly/GenericFunctions.js +64 -0
- package/dist/nodes/Calendly/GenericFunctions.js.map +1 -0
- package/dist/nodes/Calendly/calendly.svg +10 -0
- package/dist/nodes/Calendly/descriptions/ActivityLogDescription.d.ts +4 -0
- package/dist/nodes/Calendly/descriptions/ActivityLogDescription.d.ts.map +1 -0
- package/dist/nodes/Calendly/descriptions/ActivityLogDescription.js +124 -0
- package/dist/nodes/Calendly/descriptions/ActivityLogDescription.js.map +1 -0
- package/dist/nodes/Calendly/descriptions/CustomApiCallDescription.d.ts +4 -0
- package/dist/nodes/Calendly/descriptions/CustomApiCallDescription.d.ts.map +1 -0
- package/dist/nodes/Calendly/descriptions/CustomApiCallDescription.js +127 -0
- package/dist/nodes/Calendly/descriptions/CustomApiCallDescription.js.map +1 -0
- package/dist/nodes/Calendly/descriptions/DataComplianceDescription.d.ts +4 -0
- package/dist/nodes/Calendly/descriptions/DataComplianceDescription.d.ts.map +1 -0
- package/dist/nodes/Calendly/descriptions/DataComplianceDescription.js +34 -0
- package/dist/nodes/Calendly/descriptions/DataComplianceDescription.js.map +1 -0
- package/dist/nodes/Calendly/descriptions/EventTypeDescription.d.ts +4 -0
- package/dist/nodes/Calendly/descriptions/EventTypeDescription.d.ts.map +1 -0
- package/dist/nodes/Calendly/descriptions/EventTypeDescription.js +167 -0
- package/dist/nodes/Calendly/descriptions/EventTypeDescription.js.map +1 -0
- package/dist/nodes/Calendly/descriptions/GroupDescription.d.ts +4 -0
- package/dist/nodes/Calendly/descriptions/GroupDescription.d.ts.map +1 -0
- package/dist/nodes/Calendly/descriptions/GroupDescription.js +98 -0
- package/dist/nodes/Calendly/descriptions/GroupDescription.js.map +1 -0
- package/dist/nodes/Calendly/descriptions/InviteeDescription.d.ts +4 -0
- package/dist/nodes/Calendly/descriptions/InviteeDescription.d.ts.map +1 -0
- package/dist/nodes/Calendly/descriptions/InviteeDescription.js +216 -0
- package/dist/nodes/Calendly/descriptions/InviteeDescription.js.map +1 -0
- package/dist/nodes/Calendly/descriptions/OrganizationDescription.d.ts +4 -0
- package/dist/nodes/Calendly/descriptions/OrganizationDescription.d.ts.map +1 -0
- package/dist/nodes/Calendly/descriptions/OrganizationDescription.js +145 -0
- package/dist/nodes/Calendly/descriptions/OrganizationDescription.js.map +1 -0
- package/dist/nodes/Calendly/descriptions/RoutingFormDescription.d.ts +4 -0
- package/dist/nodes/Calendly/descriptions/RoutingFormDescription.d.ts.map +1 -0
- package/dist/nodes/Calendly/descriptions/RoutingFormDescription.js +127 -0
- package/dist/nodes/Calendly/descriptions/RoutingFormDescription.js.map +1 -0
- package/dist/nodes/Calendly/descriptions/ScheduledEventDescription.d.ts +4 -0
- package/dist/nodes/Calendly/descriptions/ScheduledEventDescription.d.ts.map +1 -0
- package/dist/nodes/Calendly/descriptions/ScheduledEventDescription.js +165 -0
- package/dist/nodes/Calendly/descriptions/ScheduledEventDescription.js.map +1 -0
- package/dist/nodes/Calendly/descriptions/SchedulingLinkDescription.d.ts +4 -0
- package/dist/nodes/Calendly/descriptions/SchedulingLinkDescription.d.ts.map +1 -0
- package/dist/nodes/Calendly/descriptions/SchedulingLinkDescription.js +55 -0
- package/dist/nodes/Calendly/descriptions/SchedulingLinkDescription.js.map +1 -0
- package/dist/nodes/Calendly/descriptions/UserDescription.d.ts +4 -0
- package/dist/nodes/Calendly/descriptions/UserDescription.d.ts.map +1 -0
- package/dist/nodes/Calendly/descriptions/UserDescription.js +119 -0
- package/dist/nodes/Calendly/descriptions/UserDescription.js.map +1 -0
- package/dist/nodes/Calendly/descriptions/WebhookSubscriptionDescription.d.ts +4 -0
- package/dist/nodes/Calendly/descriptions/WebhookSubscriptionDescription.d.ts.map +1 -0
- package/dist/nodes/Calendly/descriptions/WebhookSubscriptionDescription.js +149 -0
- package/dist/nodes/Calendly/descriptions/WebhookSubscriptionDescription.js.map +1 -0
- package/dist/nodes/CalendlyTrigger/CalendlyTrigger.node.d.ts +13 -0
- package/dist/nodes/CalendlyTrigger/CalendlyTrigger.node.d.ts.map +1 -0
- package/dist/nodes/CalendlyTrigger/CalendlyTrigger.node.js +210 -0
- package/dist/nodes/CalendlyTrigger/CalendlyTrigger.node.js.map +1 -0
- package/dist/nodes/CalendlyTrigger/calendly.svg +10 -0
- package/dist/nodes/calendly.svg +10 -0
- package/package.json +63 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GenericFunctions.d.ts","sourceRoot":"","sources":["../../../nodes/Calendly/GenericFunctions.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,iBAAiB,EACjB,cAAc,EACd,qBAAqB,EACrB,WAAW,EACX,mBAAmB,EAInB,MAAM,cAAc,CAAC;AAItB;;GAEG;AACH,wBAAsB,kBAAkB,CACvC,IAAI,EAAE,iBAAiB,GAAG,cAAc,GAAG,qBAAqB,EAChE,MAAM,EAAE,mBAAmB,EAC3B,QAAQ,EAAE,MAAM,EAChB,IAAI,GAAE,WAAgB,EACtB,EAAE,GAAE,WAAgB,GAClB,OAAO,CAAC,WAAW,CAAC,CAkBtB;AAED;;GAEG;AACH,wBAAsB,0BAA0B,CAC/C,IAAI,EAAE,iBAAiB,GAAG,qBAAqB,EAC/C,MAAM,EAAE,mBAAmB,EAC3B,QAAQ,EAAE,MAAM,EAChB,IAAI,GAAE,WAAgB,EACtB,EAAE,GAAE,WAAgB,GAClB,OAAO,CAAC,WAAW,EAAE,CAAC,CAkBxB;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAG/C;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAE/D"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.calendlyApiRequest = calendlyApiRequest;
|
|
4
|
+
exports.calendlyApiRequestAllItems = calendlyApiRequestAllItems;
|
|
5
|
+
exports.extractUuid = extractUuid;
|
|
6
|
+
exports.buildUri = buildUri;
|
|
7
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
8
|
+
const BASE_URL = 'https://api.calendly.com';
|
|
9
|
+
/**
|
|
10
|
+
* Make an authenticated request to the Calendly API v2.
|
|
11
|
+
*/
|
|
12
|
+
async function calendlyApiRequest(method, endpoint, body = {}, qs = {}) {
|
|
13
|
+
const options = {
|
|
14
|
+
method,
|
|
15
|
+
uri: `${BASE_URL}${endpoint}`,
|
|
16
|
+
qs,
|
|
17
|
+
body,
|
|
18
|
+
json: true,
|
|
19
|
+
};
|
|
20
|
+
if (Object.keys(body).length === 0) {
|
|
21
|
+
delete options.body;
|
|
22
|
+
}
|
|
23
|
+
try {
|
|
24
|
+
return await this.helpers.requestWithAuthentication.call(this, 'calendlyApi', options);
|
|
25
|
+
}
|
|
26
|
+
catch (error) {
|
|
27
|
+
throw new n8n_workflow_1.NodeApiError(this.getNode(), error);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Fetch all pages of a paginated Calendly API endpoint, returning all items.
|
|
32
|
+
*/
|
|
33
|
+
async function calendlyApiRequestAllItems(method, endpoint, body = {}, qs = {}) {
|
|
34
|
+
const returnData = [];
|
|
35
|
+
let pageToken;
|
|
36
|
+
do {
|
|
37
|
+
if (pageToken) {
|
|
38
|
+
qs.page_token = pageToken;
|
|
39
|
+
}
|
|
40
|
+
const responseData = await calendlyApiRequest.call(this, method, endpoint, body, qs);
|
|
41
|
+
const collection = responseData.collection;
|
|
42
|
+
if (collection) {
|
|
43
|
+
returnData.push(...collection);
|
|
44
|
+
}
|
|
45
|
+
const pagination = responseData.pagination;
|
|
46
|
+
pageToken = pagination === null || pagination === void 0 ? void 0 : pagination.next_page_token;
|
|
47
|
+
} while (pageToken);
|
|
48
|
+
return returnData;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Extract the UUID from a Calendly resource URI.
|
|
52
|
+
* e.g. "https://api.calendly.com/scheduled_events/abc123" → "abc123"
|
|
53
|
+
*/
|
|
54
|
+
function extractUuid(uri) {
|
|
55
|
+
const parts = uri.split('/');
|
|
56
|
+
return parts[parts.length - 1];
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Build a Calendly resource URI from a base path and UUID.
|
|
60
|
+
*/
|
|
61
|
+
function buildUri(resource, uuid) {
|
|
62
|
+
return `${BASE_URL}/${resource}/${uuid}`;
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=GenericFunctions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GenericFunctions.js","sourceRoot":"","sources":["../../../nodes/Calendly/GenericFunctions.ts"],"names":[],"mappings":";;AAgBA,gDAwBC;AAKD,gEAwBC;AAMD,kCAGC;AAKD,4BAEC;AArFD,+CASsB;AAEtB,MAAM,QAAQ,GAAG,0BAA0B,CAAC;AAE5C;;GAEG;AACI,KAAK,UAAU,kBAAkB,CAEvC,MAA2B,EAC3B,QAAgB,EAChB,OAAoB,EAAE,EACtB,KAAkB,EAAE;IAEpB,MAAM,OAAO,GAAoB;QAChC,MAAM;QACN,GAAG,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ED;;;GAGG;AACH,SAAgB,WAAW,CAAC,GAAW;IACtC,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC7B,OAAO,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;AAChC,CAAC;AAED;;GAEG;AACH,SAAgB,QAAQ,CAAC,QAAgB,EAAE,IAAY;IACtD,OAAO,GAAG,QAAQ,IAAI,QAAQ,IAAI,IAAI,EAAE,CAAC;AAC1C,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
|
|
2
|
+
<!-- Outer dark blue C ring - gap at top right (~40deg to ~320deg) -->
|
|
3
|
+
<path d="M 83,32 A 40,40 0 1,0 83,68 L 75,62 A 29,29 0 1,1 75,38 Z" fill="#0055D4"/>
|
|
4
|
+
<!-- Middle bright blue C ring -->
|
|
5
|
+
<path d="M 79,35 A 34,34 0 1,0 79,65 L 71,59 A 23,23 0 1,1 71,41 Z" fill="#0082FF"/>
|
|
6
|
+
<!-- Inner cyan C ring -->
|
|
7
|
+
<path d="M 75,38 A 28,28 0 1,0 75,62 L 67,56 A 17,17 0 1,1 67,44 Z" fill="#00AAFF"/>
|
|
8
|
+
<!-- Innermost light cyan -->
|
|
9
|
+
<path d="M 71,41 A 22,22 0 1,0 71,59 L 63,53 A 12,12 0 1,1 63,47 Z" fill="#00CCFF"/>
|
|
10
|
+
</svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActivityLogDescription.d.ts","sourceRoot":"","sources":["../../../../nodes/Calendly/descriptions/ActivityLogDescription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,eAAO,MAAM,qBAAqB,EAAE,eAAe,EAiBlD,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,eAAe,EAqG9C,CAAC"}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.activityLogFields = exports.activityLogOperations = void 0;
|
|
4
|
+
exports.activityLogOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: { show: { resource: ['activityLog'] } },
|
|
11
|
+
options: [
|
|
12
|
+
{
|
|
13
|
+
name: 'Get Many',
|
|
14
|
+
value: 'getAll',
|
|
15
|
+
description: 'List activity log entries for an organization (Enterprise plan required)',
|
|
16
|
+
action: 'Get many activity log entries',
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
default: 'getAll',
|
|
20
|
+
},
|
|
21
|
+
];
|
|
22
|
+
exports.activityLogFields = [
|
|
23
|
+
{
|
|
24
|
+
displayName: 'Organization URI',
|
|
25
|
+
name: 'organizationUri',
|
|
26
|
+
type: 'string',
|
|
27
|
+
required: true,
|
|
28
|
+
displayOptions: { show: { resource: ['activityLog'], operation: ['getAll'] } },
|
|
29
|
+
default: '',
|
|
30
|
+
placeholder: 'https://api.calendly.com/organizations/AAAAAAAAAAAAAAAA',
|
|
31
|
+
description: 'The URI of the organization (Enterprise plan required)',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
displayName: 'Return All',
|
|
35
|
+
name: 'returnAll',
|
|
36
|
+
type: 'boolean',
|
|
37
|
+
displayOptions: { show: { resource: ['activityLog'], operation: ['getAll'] } },
|
|
38
|
+
default: false,
|
|
39
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
displayName: 'Limit',
|
|
43
|
+
name: 'limit',
|
|
44
|
+
type: 'number',
|
|
45
|
+
typeOptions: { minValue: 1, maxValue: 100 },
|
|
46
|
+
displayOptions: {
|
|
47
|
+
show: { resource: ['activityLog'], operation: ['getAll'], returnAll: [false] },
|
|
48
|
+
},
|
|
49
|
+
default: 20,
|
|
50
|
+
description: 'Max number of results to return',
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
displayName: 'Filters',
|
|
54
|
+
name: 'filters',
|
|
55
|
+
type: 'collection',
|
|
56
|
+
placeholder: 'Add Filter',
|
|
57
|
+
default: {},
|
|
58
|
+
displayOptions: { show: { resource: ['activityLog'], operation: ['getAll'] } },
|
|
59
|
+
options: [
|
|
60
|
+
{
|
|
61
|
+
displayName: 'Action',
|
|
62
|
+
name: 'action',
|
|
63
|
+
type: 'multiOptions',
|
|
64
|
+
options: [
|
|
65
|
+
{ name: 'Create', value: 'create' },
|
|
66
|
+
{ name: 'Delete', value: 'delete' },
|
|
67
|
+
{ name: 'Update', value: 'update' },
|
|
68
|
+
{ name: 'Cancel', value: 'cancel' },
|
|
69
|
+
{ name: 'Publish', value: 'publish' },
|
|
70
|
+
{ name: 'Unpublish', value: 'unpublish' },
|
|
71
|
+
{ name: 'Transfer', value: 'transfer' },
|
|
72
|
+
],
|
|
73
|
+
default: [],
|
|
74
|
+
description: 'Filter by action type',
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
displayName: 'Actor',
|
|
78
|
+
name: 'actor',
|
|
79
|
+
type: 'string',
|
|
80
|
+
default: '',
|
|
81
|
+
description: 'Filter by actor URI (user who performed the action)',
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
displayName: 'Min Occurred At',
|
|
85
|
+
name: 'min_occurred_at',
|
|
86
|
+
type: 'dateTime',
|
|
87
|
+
default: '',
|
|
88
|
+
description: 'Return entries after this time (ISO-8601 UTC)',
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
displayName: 'Max Occurred At',
|
|
92
|
+
name: 'max_occurred_at',
|
|
93
|
+
type: 'dateTime',
|
|
94
|
+
default: '',
|
|
95
|
+
description: 'Return entries before this time (ISO-8601 UTC)',
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
displayName: 'Namespace',
|
|
99
|
+
name: 'namespace',
|
|
100
|
+
type: 'multiOptions',
|
|
101
|
+
options: [
|
|
102
|
+
{ name: 'Routing', value: 'routing' },
|
|
103
|
+
{ name: 'Scheduling', value: 'scheduling' },
|
|
104
|
+
{ name: 'Organization', value: 'organization' },
|
|
105
|
+
{ name: 'Payments', value: 'payments' },
|
|
106
|
+
{ name: 'Data Compliance', value: 'data_compliance' },
|
|
107
|
+
],
|
|
108
|
+
default: [],
|
|
109
|
+
description: 'Filter by namespace',
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
displayName: 'Sort',
|
|
113
|
+
name: 'sort',
|
|
114
|
+
type: 'options',
|
|
115
|
+
options: [
|
|
116
|
+
{ name: 'Occurred At Ascending', value: 'occurred_at:asc' },
|
|
117
|
+
{ name: 'Occurred At Descending', value: 'occurred_at:desc' },
|
|
118
|
+
],
|
|
119
|
+
default: 'occurred_at:desc',
|
|
120
|
+
},
|
|
121
|
+
],
|
|
122
|
+
},
|
|
123
|
+
];
|
|
124
|
+
//# sourceMappingURL=ActivityLogDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActivityLogDescription.js","sourceRoot":"","sources":["../../../../nodes/Calendly/descriptions/ActivityLogDescription.ts"],"names":[],"mappings":";;;AAEa,QAAA,qBAAqB,GAAsB;IACvD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,aAAa,CAAC,EAAE,EAAE;QACvD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,0EAA0E;gBACvF,MAAM,EAAE,+BAA+B;aACvC;SACD;QACD,OAAO,EAAE,QAAQ;KACjB;CACD,CAAC;AAEW,QAAA,iBAAiB,GAAsB;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AE,cAAc,EAAE,KAAK,EAAE,cAAc,EAAE;oBAC/C,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE;oBACvC,EAAE,IAAI,EAAE,iBAAiB,EAAE,KAAK,EAAE,iBAAiB,EAAE;iBACrD;gBACD,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,qBAAqB;aAClC;YACD;gBACC,WAAW,EAAE,MAAM;gBACnB,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE;oBACR,EAAE,IAAI,EAAE,uBAAuB,EAAE,KAAK,EAAE,iBAAiB,EAAE;oBAC3D,EAAE,IAAI,EAAE,wBAAwB,EAAE,KAAK,EAAE,kBAAkB,EAAE;iBAC7D;gBACD,OAAO,EAAE,kBAAkB;aAC3B;SACD;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CustomApiCallDescription.d.ts","sourceRoot":"","sources":["../../../../nodes/Calendly/descriptions/CustomApiCallDescription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,eAAO,MAAM,uBAAuB,EAAE,eAAe,EAiBpD,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,eAAe,EAyGhD,CAAC"}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.customApiCallFields = exports.customApiCallOperations = void 0;
|
|
4
|
+
exports.customApiCallOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: { show: { resource: ['customApiCall'] } },
|
|
11
|
+
options: [
|
|
12
|
+
{
|
|
13
|
+
name: 'Make an API Call',
|
|
14
|
+
value: 'makeApiCall',
|
|
15
|
+
description: 'Perform an arbitrary authorized API call to any Calendly API v2 endpoint',
|
|
16
|
+
action: 'Make an API call',
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
default: 'makeApiCall',
|
|
20
|
+
},
|
|
21
|
+
];
|
|
22
|
+
exports.customApiCallFields = [
|
|
23
|
+
{
|
|
24
|
+
displayName: 'Method',
|
|
25
|
+
name: 'method',
|
|
26
|
+
type: 'options',
|
|
27
|
+
required: true,
|
|
28
|
+
displayOptions: { show: { resource: ['customApiCall'], operation: ['makeApiCall'] } },
|
|
29
|
+
options: [
|
|
30
|
+
{ name: 'DELETE', value: 'DELETE' },
|
|
31
|
+
{ name: 'GET', value: 'GET' },
|
|
32
|
+
{ name: 'PATCH', value: 'PATCH' },
|
|
33
|
+
{ name: 'POST', value: 'POST' },
|
|
34
|
+
{ name: 'PUT', value: 'PUT' },
|
|
35
|
+
],
|
|
36
|
+
default: 'GET',
|
|
37
|
+
description: 'The HTTP method to use',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
displayName: 'URL',
|
|
41
|
+
name: 'url',
|
|
42
|
+
type: 'string',
|
|
43
|
+
required: true,
|
|
44
|
+
displayOptions: { show: { resource: ['customApiCall'], operation: ['makeApiCall'] } },
|
|
45
|
+
default: '',
|
|
46
|
+
placeholder: '/scheduled_events',
|
|
47
|
+
description: 'The endpoint path relative to https://api.calendly.com (e.g. /scheduled_events) or a full URL',
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
displayName: 'Query Parameters',
|
|
51
|
+
name: 'queryParameters',
|
|
52
|
+
type: 'fixedCollection',
|
|
53
|
+
typeOptions: { multipleValues: true },
|
|
54
|
+
displayOptions: { show: { resource: ['customApiCall'], operation: ['makeApiCall'] } },
|
|
55
|
+
default: {},
|
|
56
|
+
placeholder: 'Add Parameter',
|
|
57
|
+
options: [
|
|
58
|
+
{
|
|
59
|
+
name: 'parameter',
|
|
60
|
+
displayName: 'Parameter',
|
|
61
|
+
values: [
|
|
62
|
+
{
|
|
63
|
+
displayName: 'Name',
|
|
64
|
+
name: 'name',
|
|
65
|
+
type: 'string',
|
|
66
|
+
default: '',
|
|
67
|
+
description: 'Name of the query parameter',
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
displayName: 'Value',
|
|
71
|
+
name: 'value',
|
|
72
|
+
type: 'string',
|
|
73
|
+
default: '',
|
|
74
|
+
description: 'Value of the query parameter',
|
|
75
|
+
},
|
|
76
|
+
],
|
|
77
|
+
},
|
|
78
|
+
],
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
displayName: 'Headers',
|
|
82
|
+
name: 'headers',
|
|
83
|
+
type: 'fixedCollection',
|
|
84
|
+
typeOptions: { multipleValues: true },
|
|
85
|
+
displayOptions: { show: { resource: ['customApiCall'], operation: ['makeApiCall'] } },
|
|
86
|
+
default: {},
|
|
87
|
+
placeholder: 'Add Header',
|
|
88
|
+
description: 'Additional headers to include (Authorization is added automatically)',
|
|
89
|
+
options: [
|
|
90
|
+
{
|
|
91
|
+
name: 'header',
|
|
92
|
+
displayName: 'Header',
|
|
93
|
+
values: [
|
|
94
|
+
{
|
|
95
|
+
displayName: 'Name',
|
|
96
|
+
name: 'name',
|
|
97
|
+
type: 'string',
|
|
98
|
+
default: '',
|
|
99
|
+
description: 'Name of the header',
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
displayName: 'Value',
|
|
103
|
+
name: 'value',
|
|
104
|
+
type: 'string',
|
|
105
|
+
default: '',
|
|
106
|
+
description: 'Value of the header',
|
|
107
|
+
},
|
|
108
|
+
],
|
|
109
|
+
},
|
|
110
|
+
],
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
displayName: 'Body (JSON)',
|
|
114
|
+
name: 'body',
|
|
115
|
+
type: 'json',
|
|
116
|
+
displayOptions: {
|
|
117
|
+
show: {
|
|
118
|
+
resource: ['customApiCall'],
|
|
119
|
+
operation: ['makeApiCall'],
|
|
120
|
+
method: ['POST', 'PUT', 'PATCH'],
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
default: '{}',
|
|
124
|
+
description: 'The JSON body to send with the request',
|
|
125
|
+
},
|
|
126
|
+
];
|
|
127
|
+
//# sourceMappingURL=CustomApiCallDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CustomApiCallDescription.js","sourceRoot":"","sources":["../../../../nodes/Calendly/descriptions/CustomApiCallDescription.ts"],"names":[],"mappings":";;;AAEa,QAAA,uBAAuB,GAAsB;IACzD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,eAAe,CAAC,EAAE,EAAE;QACzD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,kBAAkB;gBACxB,KAAK,EAAE,aAAa;gBACpB,WAAW,EAAE,0EAA0E;gBACvF,MAAM,EAAE,kBAAkB;aAC1B;SACD;QACD,OAAO,EAAE,aAAa;KACtB;CACD,CAAC;AAEW,QAAA,mBAAmB,GAAsB;IACrD;QACC,WAAW,EAAE,QAAQ;QACrB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,eAAe,CAAC,EAAE,SAAS,EAAE,CAAC,aAAa,CAAC,EAAE,EAAE;QACrF,OAAO,EAAE;YACR,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;YACnC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;YAC7B,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;YACjC,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;YAC/B,EAAE,IAAI,EAAE,KAAK,EAAE,KA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,EAAE,EAAE,QAAQ,EAAE,CAAC,eAAe,CAAC,EAAE,SAAS,EAAE,CAAC,aAAa,CAAC,EAAE,EAAE;QACrF,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,YAAY;QACzB,WAAW,EAAE,sEAAsE;QACnF,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,QAAQ;gBACrB,MAAM,EAAE;oBACP;wBACC,WAAW,EAAE,MAAM;wBACnB,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,QAAQ;wBACd,OAAO,EAAE,EAAE;wBACX,WAAW,EAAE,oBAAoB;qBACjC;oBACD;wBACC,WAAW,EAAE,OAAO;wBACpB,IAAI,EAAE,OAAO;wBACb,IAAI,EAAE,QAAQ;wBACd,OAAO,EAAE,EAAE;wBACX,WAAW,EAAE,qBAAqB;qBAClC;iBACD;aACD;SACD;KACD;IACD;QACC,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,MAAM;QACZ,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,eAAe,CAAC;gBAC3B,SAAS,EAAE,CAAC,aAAa,CAAC;gBAC1B,MAAM,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC;aAChC;SACD;QACD,OAAO,EAAE,IAAI;QACb,WAAW,EAAE,wCAAwC;KACrD;CACD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataComplianceDescription.d.ts","sourceRoot":"","sources":["../../../../nodes/Calendly/descriptions/DataComplianceDescription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,eAAO,MAAM,wBAAwB,EAAE,eAAe,EAkBrD,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,eAAe,EAYjD,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.dataComplianceFields = exports.dataComplianceOperations = void 0;
|
|
4
|
+
exports.dataComplianceOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: { show: { resource: ['dataCompliance'] } },
|
|
11
|
+
options: [
|
|
12
|
+
{
|
|
13
|
+
name: 'Delete Invitee Data',
|
|
14
|
+
value: 'deleteInviteeData',
|
|
15
|
+
description: 'Delete personal data for invitees (GDPR/CCPA). Enterprise plan required.',
|
|
16
|
+
action: 'Delete invitee data',
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
default: 'deleteInviteeData',
|
|
20
|
+
},
|
|
21
|
+
];
|
|
22
|
+
exports.dataComplianceFields = [
|
|
23
|
+
{
|
|
24
|
+
displayName: 'Emails',
|
|
25
|
+
name: 'emails',
|
|
26
|
+
type: 'string',
|
|
27
|
+
required: true,
|
|
28
|
+
displayOptions: { show: { resource: ['dataCompliance'], operation: ['deleteInviteeData'] } },
|
|
29
|
+
default: '',
|
|
30
|
+
placeholder: 'email1@example.com, email2@example.com',
|
|
31
|
+
description: 'Comma-separated list of invitee email addresses whose data should be deleted. Enterprise plan required.',
|
|
32
|
+
},
|
|
33
|
+
];
|
|
34
|
+
//# sourceMappingURL=DataComplianceDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataComplianceDescription.js","sourceRoot":"","sources":["../../../../nodes/Calendly/descriptions/DataComplianceDescription.ts"],"names":[],"mappings":";;;AAEa,QAAA,wBAAwB,GAAsB;IAC1D;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,gBAAgB,CAAC,EAAE,EAAE;QAC1D,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,qBAAqB;gBAC3B,KAAK,EAAE,mBAAmB;gBAC1B,WAAW,EACV,0EAA0E;gBAC3E,MAAM,EAAE,qBAAqB;aAC7B;SACD;QACD,OAAO,EAAE,mBAAmB;KAC5B;CACD,CAAC;AAEW,QAAA,oBAAoB,GAAsB;IACtD;QACC,WAAW,EAAE,QAAQ;QACrB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,gBAAgB,CAAC,EAAE,SAAS,EAAE,CAAC,mBAAmB,CAAC,EAAE,EAAE;QAC5F,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,wCAAwC;QACrD,WAAW,EACV,yGAAyG;KAC1G;CACD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EventTypeDescription.d.ts","sourceRoot":"","sources":["../../../../nodes/Calendly/descriptions/EventTypeDescription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,eAAO,MAAM,mBAAmB,EAAE,eAAe,EAmChD,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,eAAe,EAgI5C,CAAC"}
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.eventTypeFields = exports.eventTypeOperations = void 0;
|
|
4
|
+
exports.eventTypeOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: 'Operation',
|
|
7
|
+
name: 'operation',
|
|
8
|
+
type: 'options',
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: { show: { resource: ['eventType'] } },
|
|
11
|
+
options: [
|
|
12
|
+
{
|
|
13
|
+
name: 'Get',
|
|
14
|
+
value: 'get',
|
|
15
|
+
description: 'Get a single event type',
|
|
16
|
+
action: 'Get an event type',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
name: 'Get Available Times',
|
|
20
|
+
value: 'getAvailableTimes',
|
|
21
|
+
description: 'List available time slots for an event type',
|
|
22
|
+
action: 'Get available times for an event type',
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
name: 'Get Many',
|
|
26
|
+
value: 'getAll',
|
|
27
|
+
description: "List a user's or organization's event types",
|
|
28
|
+
action: 'Get many event types',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
name: 'Get Availability Schedules',
|
|
32
|
+
value: 'getAvailabilitySchedules',
|
|
33
|
+
description: 'List availability schedules for an event type',
|
|
34
|
+
action: 'Get availability schedules for an event type',
|
|
35
|
+
},
|
|
36
|
+
],
|
|
37
|
+
default: 'getAll',
|
|
38
|
+
},
|
|
39
|
+
];
|
|
40
|
+
exports.eventTypeFields = [
|
|
41
|
+
// ─── GET MANY ───────────────────────────────────────────────────────────────
|
|
42
|
+
{
|
|
43
|
+
displayName: 'Scope',
|
|
44
|
+
name: 'scope',
|
|
45
|
+
type: 'options',
|
|
46
|
+
required: true,
|
|
47
|
+
displayOptions: { show: { resource: ['eventType'], operation: ['getAll'] } },
|
|
48
|
+
options: [
|
|
49
|
+
{ name: 'User', value: 'user' },
|
|
50
|
+
{ name: 'Organization', value: 'organization' },
|
|
51
|
+
],
|
|
52
|
+
default: 'user',
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
displayName: 'User URI',
|
|
56
|
+
name: 'userUri',
|
|
57
|
+
type: 'string',
|
|
58
|
+
required: true,
|
|
59
|
+
displayOptions: {
|
|
60
|
+
show: { resource: ['eventType'], operation: ['getAll'], scope: ['user'] },
|
|
61
|
+
},
|
|
62
|
+
default: '',
|
|
63
|
+
placeholder: 'https://api.calendly.com/users/AAAAAAAAAAAAAAAA',
|
|
64
|
+
description: 'The URI of the user whose event types to list',
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
displayName: 'Organization URI',
|
|
68
|
+
name: 'organizationUri',
|
|
69
|
+
type: 'string',
|
|
70
|
+
required: true,
|
|
71
|
+
displayOptions: {
|
|
72
|
+
show: { resource: ['eventType'], operation: ['getAll'], scope: ['organization'] },
|
|
73
|
+
},
|
|
74
|
+
default: '',
|
|
75
|
+
placeholder: 'https://api.calendly.com/organizations/AAAAAAAAAAAAAAAA',
|
|
76
|
+
description: 'The URI of the organization whose event types to list',
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
displayName: 'Return All',
|
|
80
|
+
name: 'returnAll',
|
|
81
|
+
type: 'boolean',
|
|
82
|
+
displayOptions: { show: { resource: ['eventType'], operation: ['getAll'] } },
|
|
83
|
+
default: false,
|
|
84
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
displayName: 'Limit',
|
|
88
|
+
name: 'limit',
|
|
89
|
+
type: 'number',
|
|
90
|
+
typeOptions: { minValue: 1, maxValue: 100 },
|
|
91
|
+
displayOptions: {
|
|
92
|
+
show: { resource: ['eventType'], operation: ['getAll'], returnAll: [false] },
|
|
93
|
+
},
|
|
94
|
+
default: 20,
|
|
95
|
+
description: 'Max number of results to return',
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
displayName: 'Filters',
|
|
99
|
+
name: 'filters',
|
|
100
|
+
type: 'collection',
|
|
101
|
+
placeholder: 'Add Filter',
|
|
102
|
+
default: {},
|
|
103
|
+
displayOptions: { show: { resource: ['eventType'], operation: ['getAll'] } },
|
|
104
|
+
options: [
|
|
105
|
+
{
|
|
106
|
+
displayName: 'Active Only',
|
|
107
|
+
name: 'active',
|
|
108
|
+
type: 'boolean',
|
|
109
|
+
default: true,
|
|
110
|
+
description: 'Whether to return only active event types',
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
displayName: 'Sort',
|
|
114
|
+
name: 'sort',
|
|
115
|
+
type: 'options',
|
|
116
|
+
options: [
|
|
117
|
+
{ name: 'Name Ascending', value: 'name:asc' },
|
|
118
|
+
{ name: 'Name Descending', value: 'name:desc' },
|
|
119
|
+
{ name: 'Created At Ascending', value: 'created_at:asc' },
|
|
120
|
+
{ name: 'Created At Descending', value: 'created_at:desc' },
|
|
121
|
+
],
|
|
122
|
+
default: 'name:asc',
|
|
123
|
+
},
|
|
124
|
+
],
|
|
125
|
+
},
|
|
126
|
+
// ─── GET ────────────────────────────────────────────────────────────────────
|
|
127
|
+
{
|
|
128
|
+
displayName: 'Event Type UUID',
|
|
129
|
+
name: 'eventTypeUuid',
|
|
130
|
+
type: 'string',
|
|
131
|
+
required: true,
|
|
132
|
+
displayOptions: {
|
|
133
|
+
show: { resource: ['eventType'], operation: ['get', 'getAvailableTimes', 'getAvailabilitySchedules'] },
|
|
134
|
+
},
|
|
135
|
+
default: '',
|
|
136
|
+
description: 'The UUID of the event type',
|
|
137
|
+
},
|
|
138
|
+
// ─── GET AVAILABLE TIMES ────────────────────────────────────────────────────
|
|
139
|
+
{
|
|
140
|
+
displayName: 'Start Time',
|
|
141
|
+
name: 'startTime',
|
|
142
|
+
type: 'dateTime',
|
|
143
|
+
required: true,
|
|
144
|
+
displayOptions: { show: { resource: ['eventType'], operation: ['getAvailableTimes'] } },
|
|
145
|
+
default: '',
|
|
146
|
+
description: 'Start of the time range to check for availability (ISO-8601 UTC)',
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
displayName: 'End Time',
|
|
150
|
+
name: 'endTime',
|
|
151
|
+
type: 'dateTime',
|
|
152
|
+
required: true,
|
|
153
|
+
displayOptions: { show: { resource: ['eventType'], operation: ['getAvailableTimes'] } },
|
|
154
|
+
default: '',
|
|
155
|
+
description: 'End of the time range to check for availability (ISO-8601 UTC)',
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
displayName: 'Timezone',
|
|
159
|
+
name: 'timezone',
|
|
160
|
+
type: 'string',
|
|
161
|
+
displayOptions: { show: { resource: ['eventType'], operation: ['getAvailableTimes'] } },
|
|
162
|
+
default: '',
|
|
163
|
+
placeholder: 'America/New_York',
|
|
164
|
+
description: 'Timezone for the availability results (IANA format)',
|
|
165
|
+
},
|
|
166
|
+
];
|
|
167
|
+
//# sourceMappingURL=EventTypeDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EventTypeDescription.js","sourceRoot":"","sources":["../../../../nodes/Calendly/descriptions/EventTypeDescription.ts"],"names":[],"mappings":";;;AAEa,QAAA,mBAAmB,GAAsB;IACrD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,WAAW,CAAC,EAAE,EAAE;QACrD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,WAAW,EAAE,yBAAyB;gBACtC,MAAM,EAAE,mBAAmB;aAC3B;YACD;gBACC,IAAI,EAAE,qBAAqB;gBAC3B,KAAK,EAAE,mBAAmB;gBAC1B,WAAW,EAAE,6CAA6C;gBAC1D,MAAM,EAAE,uCAAuC;aAC/C;YACD;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,6CAA6C;gBAC1D,MAAM,EAAE,sBAAsB;aAC9B;YACD;gBACC,IAAI,EAAE,4BAA4B;gBAClC,KAAK,EAAE,0BAA0B;gBACjC,WAAW,EAAE,+CAA+C;gBAC5D,MAAM,EAAE,8CAA8C;aACtD;SACD;QACD,OAAO,EAAE,QAAQ;KACjB;CACD,CAAC;AAEW,QAAA,eAAe,GAAsB;IACjD,+EAA+E;IAC/E;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE,EAAE,IAAI,EA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AAQ;QACd,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,WAAW,CAAC,EAAE,SAAS,EAAE,CAAC,KAAK,EAAE,mBAAmB,EAAE,0BAA0B,CAAC,EAAE;SACtG;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,4BAA4B;KACzC;IAED,+EAA+E;IAC/E;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,WAAW,CAAC,EAAE,SAAS,EAAE,CAAC,mBAAmB,CAAC,EAAE,EAAE;QACvF,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,kEAAkE;KAC/E;IACD;QACC,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,WAAW,CAAC,EAAE,SAAS,EAAE,CAAC,mBAAmB,CAAC,EAAE,EAAE;QACvF,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,gEAAgE;KAC7E;IACD;QACC,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,WAAW,CAAC,EAAE,SAAS,EAAE,CAAC,mBAAmB,CAAC,EAAE,EAAE;QACvF,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,kBAAkB;QAC/B,WAAW,EAAE,qDAAqD;KAClE;CACD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GroupDescription.d.ts","sourceRoot":"","sources":["../../../../nodes/Calendly/descriptions/GroupDescription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,eAAO,MAAM,eAAe,EAAE,eAAe,EAmC5C,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,eAAe,EA2DxC,CAAC"}
|