n8n-nodes-42min 0.1.0 → 0.2.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 +13 -2
- package/dist/nodes/FortyTwoMin/FortyTwoMin.node.js +15 -1
- package/dist/nodes/FortyTwoMin/FortyTwoMin.node.js.map +1 -1
- package/dist/nodes/FortyTwoMin/GenericFunctions.js +2 -0
- package/dist/nodes/FortyTwoMin/GenericFunctions.js.map +1 -1
- package/dist/nodes/FortyTwoMin/Routing.js +4 -2
- package/dist/nodes/FortyTwoMin/Routing.js.map +1 -1
- package/dist/nodes/FortyTwoMin/descriptions/SeriesDescription.d.ts +3 -0
- package/dist/nodes/FortyTwoMin/descriptions/SeriesDescription.js +451 -0
- package/dist/nodes/FortyTwoMin/descriptions/SeriesDescription.js.map +1 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -30,8 +30,8 @@ The node authenticates with a **personal access token**.
|
|
|
30
30
|
1. In 42min, open **Settings → API** and create a token.
|
|
31
31
|
2. Give it the scopes you need. For everything this node offers:
|
|
32
32
|
`user:read`, `event_types:read`, `slots:read`, `bookings:read`, `bookings:create`,
|
|
33
|
-
`bookings:cancel`, `bookings:reschedule`, `bookings:update`, `
|
|
34
|
-
`webhooks:write`.
|
|
33
|
+
`bookings:cancel`, `bookings:reschedule`, `bookings:update`, `series:read`,
|
|
34
|
+
`series:write`, `webhooks:read`, `webhooks:write`.
|
|
35
35
|
3. In n8n, create a **42min API** credential and paste the token.
|
|
36
36
|
|
|
37
37
|
Use **Test** to confirm it works. Leave **Base URL** alone unless you run a
|
|
@@ -45,6 +45,7 @@ self-hosted 42min.
|
|
|
45
45
|
|---|---|
|
|
46
46
|
| **Booking** | Create, Get, Get Many, Update, Cancel, Reschedule |
|
|
47
47
|
| **Event Type** | Get, Get Many |
|
|
48
|
+
| **Series** | Create, Get, Get Many, Update, Pause, Resume, End, Change Host |
|
|
48
49
|
| **Slot** | Get Many, Check |
|
|
49
50
|
| **User** | Get Current |
|
|
50
51
|
|
|
@@ -59,6 +60,9 @@ Starts a workflow on any of these events:
|
|
|
59
60
|
Activating a workflow registers a webhook subscription with 42min automatically, and
|
|
60
61
|
deactivating it removes the subscription again.
|
|
61
62
|
|
|
63
|
+
A booking that is one occurrence of a recurring series carries `series_id` and
|
|
64
|
+
`series_index`, on trigger items and on lookups alike.
|
|
65
|
+
|
|
62
66
|
## Things worth knowing
|
|
63
67
|
|
|
64
68
|
**Trigger items and lookup items use the same field names.** 42min delivers webhooks
|
|
@@ -86,6 +90,13 @@ execution, for example keyed on a CRM record id.
|
|
|
86
90
|
enough, since it is unique per user rather than per account. The node encodes the
|
|
87
91
|
`username/slug` pair into the single path segment the API expects.
|
|
88
92
|
|
|
93
|
+
**Recurring series skip busy dates rather than shifting them.** Creating a series
|
|
94
|
+
books up to `count` occurrences; a date the host is not free on is left out, and the
|
|
95
|
+
output lists what was created and what was skipped. The event type must have
|
|
96
|
+
recurring meetings turned on. Updating a series reads it first to send its version
|
|
97
|
+
token back, exactly like updating a booking, and a pattern change rebooks the
|
|
98
|
+
upcoming occurrences onto the new dates.
|
|
99
|
+
|
|
89
100
|
**Check the slot before you book.** Use **Slot: Check** first. A slot that was free a
|
|
90
101
|
moment ago may not be, and Create Booking sends real email and writes to a real
|
|
91
102
|
calendar.
|
|
@@ -4,6 +4,7 @@ exports.FortyTwoMin = void 0;
|
|
|
4
4
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
5
|
const BookingDescription_1 = require("./descriptions/BookingDescription");
|
|
6
6
|
const EventTypeDescription_1 = require("./descriptions/EventTypeDescription");
|
|
7
|
+
const SeriesDescription_1 = require("./descriptions/SeriesDescription");
|
|
7
8
|
const SlotDescription_1 = require("./descriptions/SlotDescription");
|
|
8
9
|
const UserDescription_1 = require("./descriptions/UserDescription");
|
|
9
10
|
class FortyTwoMin {
|
|
@@ -15,7 +16,7 @@ class FortyTwoMin {
|
|
|
15
16
|
group: ['transform'],
|
|
16
17
|
version: 1,
|
|
17
18
|
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
|
18
|
-
description: 'Read and write bookings, event types and availability in 42min',
|
|
19
|
+
description: 'Read and write bookings, recurring series, event types and availability in 42min',
|
|
19
20
|
defaults: { name: '42min' },
|
|
20
21
|
inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
21
22
|
outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
@@ -37,6 +38,7 @@ class FortyTwoMin {
|
|
|
37
38
|
options: [
|
|
38
39
|
{ name: 'Booking', value: 'booking' },
|
|
39
40
|
{ name: 'Event Type', value: 'eventType' },
|
|
41
|
+
{ name: 'Series', value: 'series' },
|
|
40
42
|
{ name: 'Slot', value: 'slot' },
|
|
41
43
|
{ name: 'User', value: 'user' },
|
|
42
44
|
],
|
|
@@ -46,6 +48,8 @@ class FortyTwoMin {
|
|
|
46
48
|
...BookingDescription_1.bookingFields,
|
|
47
49
|
...EventTypeDescription_1.eventTypeOperations,
|
|
48
50
|
...EventTypeDescription_1.eventTypeFields,
|
|
51
|
+
...SeriesDescription_1.seriesOperations,
|
|
52
|
+
...SeriesDescription_1.seriesFields,
|
|
49
53
|
...SlotDescription_1.slotOperations,
|
|
50
54
|
...SlotDescription_1.slotFields,
|
|
51
55
|
...UserDescription_1.userOperations,
|
|
@@ -60,6 +64,16 @@ class FortyTwoMin {
|
|
|
60
64
|
},
|
|
61
65
|
description: 'Leave empty to derive one from the execution and item. Set it to a stable value of your own, such as a CRM record ID, when the same logical operation may be attempted from more than one execution.',
|
|
62
66
|
},
|
|
67
|
+
{
|
|
68
|
+
displayName: 'Idempotency Key',
|
|
69
|
+
name: 'idempotencyKey',
|
|
70
|
+
type: 'string',
|
|
71
|
+
default: '',
|
|
72
|
+
displayOptions: {
|
|
73
|
+
show: { resource: ['series'], operation: ['create', 'resume', 'end'] },
|
|
74
|
+
},
|
|
75
|
+
description: 'Leave empty to derive one from the execution and item. Set it to a stable value of your own, such as a CRM record ID, when the same logical operation may be attempted from more than one execution.',
|
|
76
|
+
},
|
|
63
77
|
],
|
|
64
78
|
};
|
|
65
79
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FortyTwoMin.node.js","sourceRoot":"","sources":["../../../nodes/FortyTwoMin/FortyTwoMin.node.ts"],"names":[],"mappings":";;;AACA,+CAAmD;AAEnD,0EAAqF;AACrF,8EAA2F;AAC3F,oEAA4E;AAC5E,oEAA4E;AAE5E,MAAa,WAAW;IAAxB;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,OAAO;YACpB,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE,EAAE,KAAK,EAAE,kCAAkC,EAAE,IAAI,EAAE,uCAAuC,EAAE;YAClG,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,8DAA8D;YACxE,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"FortyTwoMin.node.js","sourceRoot":"","sources":["../../../nodes/FortyTwoMin/FortyTwoMin.node.ts"],"names":[],"mappings":";;;AACA,+CAAmD;AAEnD,0EAAqF;AACrF,8EAA2F;AAC3F,wEAAkF;AAClF,oEAA4E;AAC5E,oEAA4E;AAE5E,MAAa,WAAW;IAAxB;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,OAAO;YACpB,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE,EAAE,KAAK,EAAE,kCAAkC,EAAE,IAAI,EAAE,uCAAuC,EAAE;YAClG,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,8DAA8D;YACxE,WAAW,EAAE,kFAAkF;YAC/F,QAAQ,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;YAC3B,MAAM,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YAClC,OAAO,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YACnC,YAAY,EAAE,IA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BACD;oBACC,WAAW,EAAE,iBAAiB;oBAC9B,IAAI,EAAE,gBAAgB;oBACtB,IAAI,EAAE,QAAQ;oBACd,OAAO,EAAE,EAAE;oBACX,cAAc,EAAE;wBACf,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,QAAQ,CAAC,EAAE,SAAS,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,CAAC,EAAE;qBACtE;oBACD,WAAW,EACV,sMAAsM;iBACvM;aACD;SACD,CAAC;IACH,CAAC;CAAA;AA1ED,kCA0EC"}
|
|
@@ -110,6 +110,8 @@ function normalizeBookingEvent(envelope) {
|
|
|
110
110
|
previous_start_at: previous?.startTime ?? null,
|
|
111
111
|
previous_end_at: previous?.endTime ?? null,
|
|
112
112
|
previous_timezone: previous?.timezone ?? null,
|
|
113
|
+
series_id: booking.series_id ?? null,
|
|
114
|
+
series_index: booking.series_index ?? null,
|
|
113
115
|
cancelled_at: booking.cancelledAt ?? null,
|
|
114
116
|
cancellation_reason: booking.cancelledReason ?? null,
|
|
115
117
|
no_show_at: booking.noShowAt ?? null,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenericFunctions.js","sourceRoot":"","sources":["../../../nodes/FortyTwoMin/GenericFunctions.ts"],"names":[],"mappings":";;AAuBA,sDA4BC;AASD,wDAuCC;AAWD,
|
|
1
|
+
{"version":3,"file":"GenericFunctions.js","sourceRoot":"","sources":["../../../nodes/FortyTwoMin/GenericFunctions.ts"],"names":[],"mappings":";;AAuBA,sDA4BC;AASD,wDAuCC;AAWD,sDA6EC;AA3LD,6CAA0D;AAU1D,+CAA4C;AAarC,KAAK,UAAU,qBAAqB,CAE1C,MAA2B,EAC3B,QAAgB,EAChB,OAAoB,EAAE,EACtB,KAAkB,EAAE;IAEpB,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,gBAAgB,CAAC,CAAC;IAChE,MAAM,OAAO,GAAG,CAAE,WAAW,CAAC,OAAkB,IAA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O,CAAC,OAAO,IAAI,IAAI;QAClC,eAAe,EAAE,OAAO,CAAC,WAAW,IAAI,IAAI;QAC5C,oBAAoB,EAAE,OAAO,CAAC,kBAAkB,IAAI,IAAI;QAExD,oBAAoB,EAAE,IAAI;QAC1B,iBAAiB,EAAE,IAAI;QACvB,oBAAoB,EAAE,IAAI;QAC1B,cAAc,EAAE,OAAO,CAAC,aAAa,IAAI,IAAI;QAC7C,qBAAqB,EAAE,OAAO,CAAC,qBAAqB,IAAI,CAAC;QACzD,iBAAiB,EAAE,QAAQ,EAAE,SAAS,IAAI,IAAI;QAC9C,eAAe,EAAE,QAAQ,EAAE,OAAO,IAAI,IAAI;QAC1C,iBAAiB,EAAE,QAAQ,EAAE,QAAQ,IAAI,IAAI;QAG7C,SAAS,EAAE,OAAO,CAAC,SAAS,IAAI,IAAI;QACpC,YAAY,EAAE,OAAO,CAAC,YAAY,IAAI,IAAI;QAE1C,YAAY,EAAE,OAAO,CAAC,WAAW,IAAI,IAAI;QACzC,mBAAmB,EAAE,OAAO,CAAC,eAAe,IAAI,IAAI;QACpD,UAAU,EAAE,OAAO,CAAC,QAAQ,IAAI,IAAI;QACpC,cAAc,EAAE,OAAO,CAAC,YAAY,IAAI,IAAI;QAE5C,eAAe,EAAE,OAAO,CAAC,cAAc,IAAI,IAAI;KAC/C,CAAC;AACH,CAAC"}
|
|
@@ -43,11 +43,13 @@ async function addIdempotencyKey(requestOptions) {
|
|
|
43
43
|
}
|
|
44
44
|
async function addIfMatch(requestOptions) {
|
|
45
45
|
const uid = this.getNodeParameter('uid');
|
|
46
|
+
const isSeries = this.getNodeParameter('resource') === 'series';
|
|
47
|
+
const noun = isSeries ? 'series' : 'booking';
|
|
46
48
|
const credentials = await this.getCredentials('fortyTwoMinApi');
|
|
47
49
|
const baseUrl = (credentials.baseUrl || 'https://api.42min.us').replace(/\/+$/, '');
|
|
48
50
|
const response = (await this.helpers.httpRequestWithAuthentication.call(this, 'fortyTwoMinApi', {
|
|
49
51
|
method: 'GET',
|
|
50
|
-
url: `${baseUrl}/v1
|
|
52
|
+
url: `${baseUrl}/v1/${isSeries ? 'series' : 'bookings'}/${encodeURIComponent(uid)}`,
|
|
51
53
|
headers: { Accept: 'application/json' },
|
|
52
54
|
returnFullResponse: true,
|
|
53
55
|
json: true,
|
|
@@ -55,7 +57,7 @@ async function addIfMatch(requestOptions) {
|
|
|
55
57
|
const headers = response.headers ?? {};
|
|
56
58
|
const etag = (headers.etag ?? headers.ETag);
|
|
57
59
|
if (!etag) {
|
|
58
|
-
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Could not read an ETag for
|
|
60
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Could not read an ETag for ${noun} ${uid}, so the update was not attempted`, { description: `Updating a ${noun} requires the version token from a prior read.` });
|
|
59
61
|
}
|
|
60
62
|
requestOptions.headers = { ...requestOptions.headers, 'If-Match': etag };
|
|
61
63
|
return requestOptions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Routing.js","sourceRoot":"","sources":["../../../nodes/FortyTwoMin/Routing.ts"],"names":[],"mappings":";;;AAgDA,8CA0BC;AAOD,
|
|
1
|
+
{"version":3,"file":"Routing.js","sourceRoot":"","sources":["../../../nodes/FortyTwoMin/Routing.ts"],"names":[],"mappings":";;;AAgDA,8CA0BC;AAOD,gCAmCC;AApHD,6CAAyC;AAOzC,+CAAkD;AAMrC,QAAA,MAAM,GAAG;IACrB,IAAI,EAAE,cAAuB;IAC7B,UAAU,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE;CAChC,CAAC;AAGW,QAAA,gBAAgB,GAA0B;IACtD,UAAU,EAAE;QACX,IAAI,EAAE,SAAS;QACf,UAAU,EAAE;YAGX,QAAQ,EAAE,8CAA8C;YAIxD,OAAO,EAAE;gBAIR,EAAE,EAAE,oJAA8K;aAClL;SACD;KACD;CACD,CAAC;AAWK,KAAK,UAAU,iBAAiB,CAEtC,cAAmC;IAEnC,IAAI,QAAQ,G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,MAAM,EAAE,EAAE,CAAC,CAAC;IAEhG,MAAM,QAAQ,GAAG,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,6BAA6B,CAAC,IAAI,CACtE,IAAI,EACJ,gBAAgB,EAChB;QACC,MAAM,EAAE,KAAK;QACb,GAAG,EAAE,GAAG,OAAO,OAAO,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU,IAAI,kBAAkB,CAAC,GAAG,CAAC,EAAE;QACnF,OAAO,EAAE,EAAE,MAAM,EAAE,kBAAkB,EAAE;QACvC,kBAAkB,EAAE,IAAI;QACxB,IAAI,EAAE,IAAI;KACV,CACD,CAA8B,CAAC;IAEhC,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,IAAI,EAAE,CAAC;IACvC,MAAM,IAAI,GAAG,CAAC,OAAO,CAAC,IAAI,IAAI,OAAO,CAAC,IAAI,CAAuB,CAAC;IAClE,IAAI,CAAC,IAAI,EAAE,CAAC;QACX,MAAM,IAAI,iCAAkB,CAC3B,IAAI,CAAC,OAAO,EAAE,EACd,8BAA8B,IAAI,IAAI,GAAG,mCAAmC,EAC5E,EAAE,WAAW,EAAE,cAAc,IAAI,gDAAgD,EAAE,CACnF,CAAC;IACH,CAAC;IAED,cAAc,CAAC,OAAO,GAAG,EAAE,GAAG,cAAc,CAAC,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;IACzE,OAAO,cAAc,CAAC;AACvB,CAAC"}
|
|
@@ -0,0 +1,451 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.seriesFields = exports.seriesOperations = void 0;
|
|
4
|
+
const Routing_1 = require("../Routing");
|
|
5
|
+
const WEEKDAYS = [
|
|
6
|
+
{ name: 'Monday', value: 'mon' },
|
|
7
|
+
{ name: 'Tuesday', value: 'tue' },
|
|
8
|
+
{ name: 'Wednesday', value: 'wed' },
|
|
9
|
+
{ name: 'Thursday', value: 'thu' },
|
|
10
|
+
{ name: 'Friday', value: 'fri' },
|
|
11
|
+
{ name: 'Saturday', value: 'sat' },
|
|
12
|
+
{ name: 'Sunday', value: 'sun' },
|
|
13
|
+
];
|
|
14
|
+
const FREQUENCIES = [
|
|
15
|
+
{ name: 'Monthly (Same Day)', value: 'monthly_same_day' },
|
|
16
|
+
{ name: 'Weekly', value: 'weekly' },
|
|
17
|
+
];
|
|
18
|
+
const CIVIL_DATE = '={{ String($value).slice(0, 10) }}';
|
|
19
|
+
exports.seriesOperations = [
|
|
20
|
+
{
|
|
21
|
+
displayName: 'Operation',
|
|
22
|
+
name: 'operation',
|
|
23
|
+
type: 'options',
|
|
24
|
+
noDataExpression: true,
|
|
25
|
+
displayOptions: { show: { resource: ['series'] } },
|
|
26
|
+
options: [
|
|
27
|
+
{
|
|
28
|
+
name: 'Change Host',
|
|
29
|
+
value: 'changeHost',
|
|
30
|
+
action: 'Change the host of a series',
|
|
31
|
+
description: 'Move the series and every upcoming occurrence to another host',
|
|
32
|
+
routing: {
|
|
33
|
+
request: { method: 'POST', url: '=/series/{{$parameter.uid}}/host' },
|
|
34
|
+
output: { postReceive: [Routing_1.unwrap] },
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: 'Create',
|
|
39
|
+
value: 'create',
|
|
40
|
+
action: 'Create a series',
|
|
41
|
+
description: 'Book a recurring meeting series. Dates the host is not free on are skipped, not shifted.',
|
|
42
|
+
routing: {
|
|
43
|
+
request: { method: 'POST', url: '/series' },
|
|
44
|
+
send: { preSend: [Routing_1.addIdempotencyKey] },
|
|
45
|
+
output: { postReceive: [Routing_1.unwrap] },
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
name: 'End',
|
|
50
|
+
value: 'end',
|
|
51
|
+
action: 'End a series',
|
|
52
|
+
description: 'Cancel every upcoming occurrence for good. The series cannot be resumed.',
|
|
53
|
+
routing: {
|
|
54
|
+
request: { method: 'POST', url: '=/series/{{$parameter.uid}}/end' },
|
|
55
|
+
send: { preSend: [Routing_1.addIdempotencyKey] },
|
|
56
|
+
output: { postReceive: [Routing_1.unwrap] },
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: 'Get',
|
|
61
|
+
value: 'get',
|
|
62
|
+
action: 'Get a series',
|
|
63
|
+
description: 'Retrieve a series with its next occurrence and how many remain',
|
|
64
|
+
routing: {
|
|
65
|
+
request: { method: 'GET', url: '=/series/{{$parameter.uid}}' },
|
|
66
|
+
output: { postReceive: [Routing_1.unwrap] },
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
name: 'Get Many',
|
|
71
|
+
value: 'getAll',
|
|
72
|
+
action: 'Get many series',
|
|
73
|
+
description: 'Retrieve a list of recurring series',
|
|
74
|
+
routing: {
|
|
75
|
+
request: { method: 'GET', url: '/series' },
|
|
76
|
+
operations: Routing_1.cursorPagination,
|
|
77
|
+
output: { postReceive: [Routing_1.unwrap] },
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
name: 'Pause',
|
|
82
|
+
value: 'pause',
|
|
83
|
+
action: 'Pause a series',
|
|
84
|
+
description: 'Cancel the upcoming occurrences and hold them, so Resume books a replacement for each',
|
|
85
|
+
routing: {
|
|
86
|
+
request: { method: 'POST', url: '=/series/{{$parameter.uid}}/pause' },
|
|
87
|
+
output: { postReceive: [Routing_1.unwrap] },
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
name: 'Resume',
|
|
92
|
+
value: 'resume',
|
|
93
|
+
action: 'Resume a series',
|
|
94
|
+
description: 'Book replacements for the held occurrences on the pattern\'s next free dates',
|
|
95
|
+
routing: {
|
|
96
|
+
request: { method: 'POST', url: '=/series/{{$parameter.uid}}/resume' },
|
|
97
|
+
send: { preSend: [Routing_1.addIdempotencyKey] },
|
|
98
|
+
output: { postReceive: [Routing_1.unwrap] },
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
name: 'Update',
|
|
103
|
+
value: 'update',
|
|
104
|
+
action: 'Update a series',
|
|
105
|
+
description: 'Change the repeat pattern, the fixed link, or whether the attendee is notified',
|
|
106
|
+
routing: {
|
|
107
|
+
request: { method: 'PATCH', url: '=/series/{{$parameter.uid}}' },
|
|
108
|
+
send: { preSend: [Routing_1.addIfMatch] },
|
|
109
|
+
output: { postReceive: [Routing_1.unwrap] },
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
],
|
|
113
|
+
default: 'getAll',
|
|
114
|
+
},
|
|
115
|
+
];
|
|
116
|
+
exports.seriesFields = [
|
|
117
|
+
{
|
|
118
|
+
displayName: 'Series UID',
|
|
119
|
+
name: 'uid',
|
|
120
|
+
type: 'string',
|
|
121
|
+
required: true,
|
|
122
|
+
default: '',
|
|
123
|
+
displayOptions: {
|
|
124
|
+
show: {
|
|
125
|
+
resource: ['series'],
|
|
126
|
+
operation: ['get', 'update', 'pause', 'resume', 'end', 'changeHost'],
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
description: 'The series UID. A booking that belongs to a series carries it as series_id.',
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
displayName: 'Identify Event Type By',
|
|
133
|
+
name: 'identifyBy',
|
|
134
|
+
type: 'options',
|
|
135
|
+
default: 'eventTypeId',
|
|
136
|
+
displayOptions: { show: { resource: ['series'], operation: ['create'] } },
|
|
137
|
+
options: [
|
|
138
|
+
{ name: 'Event Type ID', value: 'eventTypeId' },
|
|
139
|
+
{ name: 'Username and Slug', value: 'usernameSlug' },
|
|
140
|
+
],
|
|
141
|
+
description: 'The event type must have recurring meetings turned on',
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
displayName: 'Event Type ID',
|
|
145
|
+
name: 'eventTypeId',
|
|
146
|
+
type: 'string',
|
|
147
|
+
required: true,
|
|
148
|
+
default: '',
|
|
149
|
+
displayOptions: {
|
|
150
|
+
show: { resource: ['series'], operation: ['create'], identifyBy: ['eventTypeId'] },
|
|
151
|
+
},
|
|
152
|
+
routing: { send: { type: 'body', property: 'event_type_id' } },
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
displayName: 'Username',
|
|
156
|
+
name: 'username',
|
|
157
|
+
type: 'string',
|
|
158
|
+
required: true,
|
|
159
|
+
default: '',
|
|
160
|
+
displayOptions: {
|
|
161
|
+
show: { resource: ['series'], operation: ['create'], identifyBy: ['usernameSlug'] },
|
|
162
|
+
},
|
|
163
|
+
routing: { send: { type: 'body', property: 'username' } },
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
displayName: 'Event Slug',
|
|
167
|
+
name: 'eventSlug',
|
|
168
|
+
type: 'string',
|
|
169
|
+
required: true,
|
|
170
|
+
default: '',
|
|
171
|
+
displayOptions: {
|
|
172
|
+
show: { resource: ['series'], operation: ['create'], identifyBy: ['usernameSlug'] },
|
|
173
|
+
},
|
|
174
|
+
routing: { send: { type: 'body', property: 'event_slug' } },
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
displayName: 'Host User ID',
|
|
178
|
+
name: 'hostUserId',
|
|
179
|
+
type: 'string',
|
|
180
|
+
required: true,
|
|
181
|
+
default: '',
|
|
182
|
+
displayOptions: { show: { resource: ['series'], operation: ['create'] } },
|
|
183
|
+
description: 'Whose calendar the series is booked on. User: Get Current returns your own ID.',
|
|
184
|
+
routing: { send: { type: 'body', property: 'host_user_id' } },
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
displayName: 'Attendee Email',
|
|
188
|
+
name: 'attendeeEmail',
|
|
189
|
+
type: 'string',
|
|
190
|
+
placeholder: 'name@email.com',
|
|
191
|
+
required: true,
|
|
192
|
+
default: '',
|
|
193
|
+
displayOptions: { show: { resource: ['series'], operation: ['create'] } },
|
|
194
|
+
routing: { send: { type: 'body', property: 'attendee.email' } },
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
displayName: 'Frequency',
|
|
198
|
+
name: 'frequency',
|
|
199
|
+
type: 'options',
|
|
200
|
+
required: true,
|
|
201
|
+
default: 'weekly',
|
|
202
|
+
options: FREQUENCIES,
|
|
203
|
+
displayOptions: { show: { resource: ['series'], operation: ['create'] } },
|
|
204
|
+
routing: { send: { type: 'body', property: 'frequency' } },
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
displayName: 'Weekdays',
|
|
208
|
+
name: 'weekdays',
|
|
209
|
+
type: 'multiOptions',
|
|
210
|
+
required: true,
|
|
211
|
+
default: [],
|
|
212
|
+
options: WEEKDAYS,
|
|
213
|
+
displayOptions: {
|
|
214
|
+
show: { resource: ['series'], operation: ['create'], frequency: ['weekly'] },
|
|
215
|
+
},
|
|
216
|
+
routing: { send: { type: 'body', property: 'weekdays' } },
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
displayName: 'Time',
|
|
220
|
+
name: 'time',
|
|
221
|
+
type: 'string',
|
|
222
|
+
required: true,
|
|
223
|
+
default: '',
|
|
224
|
+
placeholder: '18:30',
|
|
225
|
+
displayOptions: { show: { resource: ['series'], operation: ['create'] } },
|
|
226
|
+
description: 'Wall clock time on a 24-hour clock, in the series timezone',
|
|
227
|
+
routing: { send: { type: 'body', property: 'time' } },
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
displayName: 'Starts On',
|
|
231
|
+
name: 'startsOn',
|
|
232
|
+
type: 'dateTime',
|
|
233
|
+
required: true,
|
|
234
|
+
default: '',
|
|
235
|
+
displayOptions: { show: { resource: ['series'], operation: ['create'] } },
|
|
236
|
+
description: 'The first day the pattern is walked from. Only the date part is used.',
|
|
237
|
+
routing: { send: { type: 'body', property: 'starts_on', value: CIVIL_DATE } },
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
displayName: 'Count',
|
|
241
|
+
name: 'count',
|
|
242
|
+
type: 'number',
|
|
243
|
+
required: true,
|
|
244
|
+
default: 4,
|
|
245
|
+
typeOptions: { minValue: 1, maxValue: 42 },
|
|
246
|
+
displayOptions: { show: { resource: ['series'], operation: ['create'] } },
|
|
247
|
+
description: 'How many occurrences to book, up to 42',
|
|
248
|
+
routing: { send: { type: 'body', property: 'count' } },
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
displayName: 'Additional Fields',
|
|
252
|
+
name: 'seriesAdditionalFields',
|
|
253
|
+
type: 'collection',
|
|
254
|
+
placeholder: 'Add Field',
|
|
255
|
+
default: {},
|
|
256
|
+
displayOptions: { show: { resource: ['series'], operation: ['create'] } },
|
|
257
|
+
options: [
|
|
258
|
+
{
|
|
259
|
+
displayName: 'Attendee First Name',
|
|
260
|
+
name: 'attendeeFirstName',
|
|
261
|
+
type: 'string',
|
|
262
|
+
default: '',
|
|
263
|
+
routing: { send: { type: 'body', property: 'attendee.first_name' } },
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
displayName: 'Attendee Last Name',
|
|
267
|
+
name: 'attendeeLastName',
|
|
268
|
+
type: 'string',
|
|
269
|
+
default: '',
|
|
270
|
+
routing: { send: { type: 'body', property: 'attendee.last_name' } },
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
displayName: 'Attendee Name',
|
|
274
|
+
name: 'attendeeName',
|
|
275
|
+
type: 'string',
|
|
276
|
+
default: '',
|
|
277
|
+
routing: { send: { type: 'body', property: 'attendee.name' } },
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
displayName: 'Attendee Phone',
|
|
281
|
+
name: 'attendeePhone',
|
|
282
|
+
type: 'string',
|
|
283
|
+
default: '',
|
|
284
|
+
routing: { send: { type: 'body', property: 'attendee.phone' } },
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
displayName: 'Interval (Weeks)',
|
|
288
|
+
name: 'intervalWeeks',
|
|
289
|
+
type: 'number',
|
|
290
|
+
default: 1,
|
|
291
|
+
typeOptions: { minValue: 1, maxValue: 8 },
|
|
292
|
+
description: 'Weeks between repeats. Weekly patterns only.',
|
|
293
|
+
routing: { send: { type: 'body', property: 'interval_weeks' } },
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
displayName: 'Location URL',
|
|
297
|
+
name: 'locationUrl',
|
|
298
|
+
type: 'string',
|
|
299
|
+
default: '',
|
|
300
|
+
description: 'A fixed link every occurrence carries instead of a generated conference. It can be replaced later but not added.',
|
|
301
|
+
routing: { send: { type: 'body', property: 'location_url' } },
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
displayName: 'Notify Invitee',
|
|
305
|
+
name: 'notifyInvitee',
|
|
306
|
+
type: 'boolean',
|
|
307
|
+
default: true,
|
|
308
|
+
description: 'Whether the attendee gets email about this series',
|
|
309
|
+
routing: { send: { type: 'body', property: 'notify_invitee' } },
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
displayName: 'Timezone',
|
|
313
|
+
name: 'timezone',
|
|
314
|
+
type: 'string',
|
|
315
|
+
default: '',
|
|
316
|
+
placeholder: 'Europe/Lisbon',
|
|
317
|
+
description: 'IANA zone for Time. Defaults to the host\'s own zone.',
|
|
318
|
+
routing: { send: { type: 'body', property: 'timezone' } },
|
|
319
|
+
},
|
|
320
|
+
],
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
displayName: 'Update Fields',
|
|
324
|
+
name: 'seriesUpdateFields',
|
|
325
|
+
type: 'collection',
|
|
326
|
+
placeholder: 'Add Field',
|
|
327
|
+
default: {},
|
|
328
|
+
displayOptions: { show: { resource: ['series'], operation: ['update'] } },
|
|
329
|
+
description: 'A pattern change rebooks the upcoming occurrences onto the new dates. The start date, count, attendee and event type are fixed for the life of a series.',
|
|
330
|
+
options: [
|
|
331
|
+
{
|
|
332
|
+
displayName: 'Frequency',
|
|
333
|
+
name: 'frequency',
|
|
334
|
+
type: 'options',
|
|
335
|
+
default: 'weekly',
|
|
336
|
+
options: FREQUENCIES,
|
|
337
|
+
routing: { send: { type: 'body', property: 'frequency' } },
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
displayName: 'Interval (Weeks)',
|
|
341
|
+
name: 'intervalWeeks',
|
|
342
|
+
type: 'number',
|
|
343
|
+
default: 1,
|
|
344
|
+
typeOptions: { minValue: 1, maxValue: 8 },
|
|
345
|
+
routing: { send: { type: 'body', property: 'interval_weeks' } },
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
displayName: 'Location URL',
|
|
349
|
+
name: 'locationUrl',
|
|
350
|
+
type: 'string',
|
|
351
|
+
default: '',
|
|
352
|
+
description: 'Replaces the existing fixed link. A series created without one cannot gain one.',
|
|
353
|
+
routing: { send: { type: 'body', property: 'location_url' } },
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
displayName: 'Notify Invitee',
|
|
357
|
+
name: 'notifyInvitee',
|
|
358
|
+
type: 'boolean',
|
|
359
|
+
default: true,
|
|
360
|
+
description: 'Whether the attendee gets email about this series',
|
|
361
|
+
routing: { send: { type: 'body', property: 'notify_invitee' } },
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
displayName: 'Time',
|
|
365
|
+
name: 'time',
|
|
366
|
+
type: 'string',
|
|
367
|
+
default: '',
|
|
368
|
+
placeholder: '18:30',
|
|
369
|
+
routing: { send: { type: 'body', property: 'time' } },
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
displayName: 'Weekdays',
|
|
373
|
+
name: 'weekdays',
|
|
374
|
+
type: 'multiOptions',
|
|
375
|
+
default: [],
|
|
376
|
+
options: WEEKDAYS,
|
|
377
|
+
routing: { send: { type: 'body', property: 'weekdays' } },
|
|
378
|
+
},
|
|
379
|
+
],
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
displayName: 'New Host User ID',
|
|
383
|
+
name: 'newHostUserId',
|
|
384
|
+
type: 'string',
|
|
385
|
+
required: true,
|
|
386
|
+
default: '',
|
|
387
|
+
displayOptions: { show: { resource: ['series'], operation: ['changeHost'] } },
|
|
388
|
+
description: 'The user to move the series to. If the output has a stopped_by value the host was not changed, and the call can be repeated.',
|
|
389
|
+
routing: { send: { type: 'body', property: 'host_user_id' } },
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
displayName: 'Return All',
|
|
393
|
+
name: 'returnAll',
|
|
394
|
+
type: 'boolean',
|
|
395
|
+
default: false,
|
|
396
|
+
displayOptions: { show: { resource: ['series'], operation: ['getAll'] } },
|
|
397
|
+
description: 'Whether to return all results or only up to a given limit',
|
|
398
|
+
routing: { send: { paginate: '={{ $value }}' } },
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
displayName: 'Limit',
|
|
402
|
+
name: 'limit',
|
|
403
|
+
type: 'number',
|
|
404
|
+
default: 50,
|
|
405
|
+
typeOptions: { minValue: 1 },
|
|
406
|
+
displayOptions: {
|
|
407
|
+
show: { resource: ['series'], operation: ['getAll'], returnAll: [false] },
|
|
408
|
+
},
|
|
409
|
+
description: 'Max number of results to return',
|
|
410
|
+
routing: { send: { type: 'query', property: 'limit' } },
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
displayName: 'Filters',
|
|
414
|
+
name: 'seriesFilters',
|
|
415
|
+
type: 'collection',
|
|
416
|
+
placeholder: 'Add Filter',
|
|
417
|
+
default: {},
|
|
418
|
+
displayOptions: { show: { resource: ['series'], operation: ['getAll'] } },
|
|
419
|
+
options: [
|
|
420
|
+
{
|
|
421
|
+
displayName: 'Event Type ID',
|
|
422
|
+
name: 'event_type_id',
|
|
423
|
+
type: 'string',
|
|
424
|
+
default: '',
|
|
425
|
+
routing: { send: { type: 'query', property: 'event_type_id' } },
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
displayName: 'Host User ID',
|
|
429
|
+
name: 'host_user_id',
|
|
430
|
+
type: 'string',
|
|
431
|
+
default: '',
|
|
432
|
+
routing: { send: { type: 'query', property: 'host_user_id' } },
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
displayName: 'Status',
|
|
436
|
+
name: 'status',
|
|
437
|
+
type: 'multiOptions',
|
|
438
|
+
default: [],
|
|
439
|
+
options: [
|
|
440
|
+
{ name: 'Active', value: 'active' },
|
|
441
|
+
{ name: 'Ended', value: 'ended' },
|
|
442
|
+
{ name: 'Paused', value: 'paused' },
|
|
443
|
+
],
|
|
444
|
+
routing: {
|
|
445
|
+
send: { type: 'query', property: 'status', value: '={{ $value.join(",") }}' },
|
|
446
|
+
},
|
|
447
|
+
},
|
|
448
|
+
],
|
|
449
|
+
},
|
|
450
|
+
];
|
|
451
|
+
//# sourceMappingURL=SeriesDescription.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SeriesDescription.js","sourceRoot":"","sources":["../../../../nodes/FortyTwoMin/descriptions/SeriesDescription.ts"],"names":[],"mappings":";;;AACA,wCAAqF;AAErF,MAAM,QAAQ,GAAG;IAChB,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE;IAChC,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE;IACjC,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE;IACnC,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE;IAClC,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE;IAChC,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE;IAClC,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE;CAChC,CAAC;AAEF,MAAM,WAAW,GAAG;IACnB,EAAE,IAAI,EAAE,oBAAoB,EAAE,KAAK,EAAE,kBAAkB,EAAE;IACzD,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;CACnC,CAAC;AAIF,MAAM,UAAU,GAAG,oCAAoC,CAAC;AAE3C,QAAA,gBAAgB,GAAsB;IAClD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACj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ACnC;gBACD,OAAO,EAAE;oBACR,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,yBAAyB,EAAE;iBAC7E;aACD;SACD;KACD;CACD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-42min",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "n8n community node for 42min
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "n8n community node for 42min — scheduling, bookings and booking event triggers",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"n8n-community-node-package",
|
|
7
7
|
"42min",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"homepage": "https://42min.us/help/api",
|
|
15
15
|
"author": {
|
|
16
16
|
"name": "42min",
|
|
17
|
-
"email": "
|
|
17
|
+
"email": "plus@42min.us"
|
|
18
18
|
},
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|