@hobokengrace/n8n-nodes-pco 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.
Files changed (124) hide show
  1. package/LICENSE.md +21 -0
  2. package/README.md +79 -0
  3. package/dist/credentials/PlanningCenterPatApi.credentials.d.ts +9 -0
  4. package/dist/credentials/PlanningCenterPatApi.credentials.js +84 -0
  5. package/dist/credentials/PlanningCenterPatApi.credentials.js.map +1 -0
  6. package/dist/index.d.ts +12 -0
  7. package/dist/index.js +28 -0
  8. package/dist/index.js.map +1 -0
  9. package/dist/nodes/assets/api.svg +4 -0
  10. package/dist/nodes/assets/calendar.svg +4 -0
  11. package/dist/nodes/assets/check-ins.svg +4 -0
  12. package/dist/nodes/assets/current.svg +4 -0
  13. package/dist/nodes/assets/giving.svg +4 -0
  14. package/dist/nodes/assets/groups.svg +4 -0
  15. package/dist/nodes/assets/pco.svg +4 -0
  16. package/dist/nodes/assets/people.svg +4 -0
  17. package/dist/nodes/assets/publishing.svg +4 -0
  18. package/dist/nodes/assets/registrations.svg +4 -0
  19. package/dist/nodes/assets/services.svg +4 -0
  20. package/dist/nodes/assets/webhooks.svg +4 -0
  21. package/dist/nodes/generated/api/PlanningCenterApi.node.d.ts +16 -0
  22. package/dist/nodes/generated/api/PlanningCenterApi.node.js +745 -0
  23. package/dist/nodes/generated/api/PlanningCenterApi.node.js.map +1 -0
  24. package/dist/nodes/generated/api/api.svg +4 -0
  25. package/dist/nodes/generated/api/pco.svg +4 -0
  26. package/dist/nodes/generated/calendar/PlanningCenterCalendar.node.d.ts +305 -0
  27. package/dist/nodes/generated/calendar/PlanningCenterCalendar.node.js +33813 -0
  28. package/dist/nodes/generated/calendar/PlanningCenterCalendar.node.js.map +1 -0
  29. package/dist/nodes/generated/calendar/calendar.svg +4 -0
  30. package/dist/nodes/generated/calendar/pco.svg +4 -0
  31. package/dist/nodes/generated/check-ins/PlanningCenterCheckIns.node.d.ts +308 -0
  32. package/dist/nodes/generated/check-ins/PlanningCenterCheckIns.node.js +29142 -0
  33. package/dist/nodes/generated/check-ins/PlanningCenterCheckIns.node.js.map +1 -0
  34. package/dist/nodes/generated/check-ins/check-ins.svg +4 -0
  35. package/dist/nodes/generated/check-ins/pco.svg +4 -0
  36. package/dist/nodes/generated/current/PlanningCenterCurrent.node.d.ts +13 -0
  37. package/dist/nodes/generated/current/PlanningCenterCurrent.node.js +564 -0
  38. package/dist/nodes/generated/current/PlanningCenterCurrent.node.js.map +1 -0
  39. package/dist/nodes/generated/current/current.svg +4 -0
  40. package/dist/nodes/generated/current/pco.svg +4 -0
  41. package/dist/nodes/generated/giving/PlanningCenterGiving.node.d.ts +308 -0
  42. package/dist/nodes/generated/giving/PlanningCenterGiving.node.js +25566 -0
  43. package/dist/nodes/generated/giving/PlanningCenterGiving.node.js.map +1 -0
  44. package/dist/nodes/generated/giving/giving.svg +4 -0
  45. package/dist/nodes/generated/giving/pco.svg +4 -0
  46. package/dist/nodes/generated/groups/PlanningCenterGroups.node.d.ts +189 -0
  47. package/dist/nodes/generated/groups/PlanningCenterGroups.node.js +15344 -0
  48. package/dist/nodes/generated/groups/PlanningCenterGroups.node.js.map +1 -0
  49. package/dist/nodes/generated/groups/groups.svg +4 -0
  50. package/dist/nodes/generated/groups/pco.svg +4 -0
  51. package/dist/nodes/generated/people/PlanningCenterPeople.node.d.ts +979 -0
  52. package/dist/nodes/generated/people/PlanningCenterPeople.node.js +102040 -0
  53. package/dist/nodes/generated/people/PlanningCenterPeople.node.js.map +1 -0
  54. package/dist/nodes/generated/people/pco.svg +4 -0
  55. package/dist/nodes/generated/people/people.svg +4 -0
  56. package/dist/nodes/generated/publishing/PlanningCenterPublishing.node.d.ts +130 -0
  57. package/dist/nodes/generated/publishing/PlanningCenterPublishing.node.js +10671 -0
  58. package/dist/nodes/generated/publishing/PlanningCenterPublishing.node.js.map +1 -0
  59. package/dist/nodes/generated/publishing/pco.svg +4 -0
  60. package/dist/nodes/generated/publishing/publishing.svg +4 -0
  61. package/dist/nodes/generated/registrations/PlanningCenterRegistrations.node.d.ts +55 -0
  62. package/dist/nodes/generated/registrations/PlanningCenterRegistrations.node.js +3640 -0
  63. package/dist/nodes/generated/registrations/PlanningCenterRegistrations.node.js.map +1 -0
  64. package/dist/nodes/generated/registrations/pco.svg +4 -0
  65. package/dist/nodes/generated/registrations/registrations.svg +4 -0
  66. package/dist/nodes/generated/services/PlanningCenterServices.node.d.ts +1032 -0
  67. package/dist/nodes/generated/services/PlanningCenterServices.node.js +82196 -0
  68. package/dist/nodes/generated/services/PlanningCenterServices.node.js.map +1 -0
  69. package/dist/nodes/generated/services/pco.svg +4 -0
  70. package/dist/nodes/generated/services/services.svg +4 -0
  71. package/dist/nodes/generated/webhooks/PlanningCenterWebhooks.node.d.ts +25 -0
  72. package/dist/nodes/generated/webhooks/PlanningCenterWebhooks.node.js +1346 -0
  73. package/dist/nodes/generated/webhooks/PlanningCenterWebhooks.node.js.map +1 -0
  74. package/dist/nodes/generated/webhooks/pco.svg +4 -0
  75. package/dist/nodes/generated/webhooks/webhooks.svg +4 -0
  76. package/dist/src/generator/checkGenerated.d.ts +1 -0
  77. package/dist/src/generator/checkGenerated.js +34 -0
  78. package/dist/src/generator/checkGenerated.js.map +1 -0
  79. package/dist/src/generator/config.d.ts +13 -0
  80. package/dist/src/generator/config.js +114 -0
  81. package/dist/src/generator/config.js.map +1 -0
  82. package/dist/src/generator/generate.d.ts +1 -0
  83. package/dist/src/generator/generate.js +26 -0
  84. package/dist/src/generator/generate.js.map +1 -0
  85. package/dist/src/generator/labels.d.ts +3 -0
  86. package/dist/src/generator/labels.js +23 -0
  87. package/dist/src/generator/labels.js.map +1 -0
  88. package/dist/src/generator/model.d.ts +81 -0
  89. package/dist/src/generator/model.js +3 -0
  90. package/dist/src/generator/model.js.map +1 -0
  91. package/dist/src/generator/openapi.d.ts +3 -0
  92. package/dist/src/generator/openapi.js +667 -0
  93. package/dist/src/generator/openapi.js.map +1 -0
  94. package/dist/src/generator/refreshSnapshots.d.ts +1 -0
  95. package/dist/src/generator/refreshSnapshots.js +28 -0
  96. package/dist/src/generator/refreshSnapshots.js.map +1 -0
  97. package/dist/src/generator/render.d.ts +3 -0
  98. package/dist/src/generator/render.js +580 -0
  99. package/dist/src/generator/render.js.map +1 -0
  100. package/dist/src/runtime/execute.d.ts +2 -0
  101. package/dist/src/runtime/execute.js +25 -0
  102. package/dist/src/runtime/execute.js.map +1 -0
  103. package/dist/src/runtime/jsonApi.d.ts +3 -0
  104. package/dist/src/runtime/jsonApi.js +43 -0
  105. package/dist/src/runtime/jsonApi.js.map +1 -0
  106. package/dist/src/runtime/pagination.d.ts +8 -0
  107. package/dist/src/runtime/pagination.js +68 -0
  108. package/dist/src/runtime/pagination.js.map +1 -0
  109. package/dist/src/runtime/request.d.ts +22 -0
  110. package/dist/src/runtime/request.js +93 -0
  111. package/dist/src/runtime/request.js.map +1 -0
  112. package/dist/src/runtime/resourceLocator.d.ts +1 -0
  113. package/dist/src/runtime/resourceLocator.js +15 -0
  114. package/dist/src/runtime/resourceLocator.js.map +1 -0
  115. package/dist/tests/generator.test.d.ts +1 -0
  116. package/dist/tests/generator.test.js +622 -0
  117. package/dist/tests/generator.test.js.map +1 -0
  118. package/dist/tests/metadata.test.d.ts +1 -0
  119. package/dist/tests/metadata.test.js +124 -0
  120. package/dist/tests/metadata.test.js.map +1 -0
  121. package/dist/tests/runtime.test.d.ts +1 -0
  122. package/dist/tests/runtime.test.js +181 -0
  123. package/dist/tests/runtime.test.js.map +1 -0
  124. package/package.json +80 -0
@@ -0,0 +1,1346 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PlanningCenterWebhooks = void 0;
4
+ const execute_1 = require("../../../src/runtime/execute");
5
+ const jsonApi_1 = require("../../../src/runtime/jsonApi");
6
+ const pagination_1 = require("../../../src/runtime/pagination");
7
+ const request_1 = require("../../../src/runtime/request");
8
+ const resourceLocator_1 = require("../../../src/runtime/resourceLocator");
9
+ const OPERATIONS = [
10
+ {
11
+ "id": "getAvailableEvents",
12
+ "resource": "Available Event",
13
+ "operation": "List Available Events",
14
+ "description": "GET /available_events",
15
+ "method": "GET",
16
+ "path": "/webhooks/v2/available_events",
17
+ "deprecated": false,
18
+ "isList": true,
19
+ "lookupTarget": "available event",
20
+ "pathParameters": [],
21
+ "queryParameters": [],
22
+ "queryOptions": [],
23
+ "attributeFields": [],
24
+ "relationshipFields": []
25
+ },
26
+ {
27
+ "id": "getWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveries",
28
+ "resource": "Webhook Subscription",
29
+ "operation": "List Deliveries (via Event)",
30
+ "description": "GET /webhook_subscriptions/{webhook_subscription_id}/events/{event_id}/deliveries",
31
+ "method": "GET",
32
+ "path": "/webhooks/v2/webhook_subscriptions/{webhook_subscription_id}/events/{event_id}/deliveries",
33
+ "deprecated": false,
34
+ "isList": true,
35
+ "lookupTarget": "delivery",
36
+ "pathParameters": [
37
+ {
38
+ "name": "webhookSubscriptionId",
39
+ "sourceName": "webhook_subscription_id",
40
+ "displayName": "Webhook Subscription ID",
41
+ "required": true,
42
+ "type": "string",
43
+ "lookup": {
44
+ "methodName": "searchGetWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveriesWebhookSubscriptionId",
45
+ "sourcePath": "/webhooks/v2/webhook_subscriptions",
46
+ "parentBindings": [],
47
+ "labelFields": [
48
+ "name",
49
+ "full_name",
50
+ "display_name",
51
+ "search_name",
52
+ "path_name",
53
+ "first_name last_name",
54
+ "given_name last_name",
55
+ "nickname last_name",
56
+ "title",
57
+ "subject",
58
+ "label"
59
+ ],
60
+ "resultLimit": 25
61
+ }
62
+ },
63
+ {
64
+ "name": "eventId",
65
+ "sourceName": "event_id",
66
+ "displayName": "Event ID",
67
+ "required": true,
68
+ "type": "string",
69
+ "lookup": {
70
+ "methodName": "searchGetWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveriesEventId",
71
+ "sourcePath": "/webhooks/v2/webhook_subscriptions/{webhook_subscription_id}/events",
72
+ "parentBindings": [
73
+ {
74
+ "sourceName": "webhook_subscription_id",
75
+ "fieldName": "getWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveries_webhookSubscriptionId"
76
+ }
77
+ ],
78
+ "labelFields": [
79
+ "name",
80
+ "full_name",
81
+ "display_name",
82
+ "search_name",
83
+ "path_name",
84
+ "first_name last_name",
85
+ "given_name last_name",
86
+ "nickname last_name",
87
+ "title",
88
+ "subject",
89
+ "label"
90
+ ],
91
+ "resultLimit": 25
92
+ }
93
+ }
94
+ ],
95
+ "queryParameters": [
96
+ {
97
+ "name": "order",
98
+ "sourceName": "order",
99
+ "displayName": "Order",
100
+ "required": false,
101
+ "type": "string"
102
+ }
103
+ ],
104
+ "queryOptions": [
105
+ {
106
+ "name": "order",
107
+ "displayName": "Order",
108
+ "group": "order",
109
+ "type": "string",
110
+ "kind": "single",
111
+ "sourceName": "order"
112
+ }
113
+ ],
114
+ "attributeFields": [],
115
+ "relationshipFields": []
116
+ },
117
+ {
118
+ "id": "getWebhookSubscriptionsWebhookSubscriptionIdEvents",
119
+ "resource": "Webhook Subscription",
120
+ "operation": "List Events (via Webhook Subscription)",
121
+ "description": "GET /webhook_subscriptions/{webhook_subscription_id}/events",
122
+ "method": "GET",
123
+ "path": "/webhooks/v2/webhook_subscriptions/{webhook_subscription_id}/events",
124
+ "deprecated": false,
125
+ "isList": true,
126
+ "lookupTarget": "event",
127
+ "pathParameters": [
128
+ {
129
+ "name": "webhookSubscriptionId",
130
+ "sourceName": "webhook_subscription_id",
131
+ "displayName": "Webhook Subscription ID",
132
+ "required": true,
133
+ "type": "string",
134
+ "lookup": {
135
+ "methodName": "searchGetWebhookSubscriptionsWebhookSubscriptionIdEventsWebhookSubscriptionId",
136
+ "sourcePath": "/webhooks/v2/webhook_subscriptions",
137
+ "parentBindings": [],
138
+ "labelFields": [
139
+ "name",
140
+ "full_name",
141
+ "display_name",
142
+ "search_name",
143
+ "path_name",
144
+ "first_name last_name",
145
+ "given_name last_name",
146
+ "nickname last_name",
147
+ "title",
148
+ "subject",
149
+ "label"
150
+ ],
151
+ "resultLimit": 25
152
+ }
153
+ }
154
+ ],
155
+ "queryParameters": [
156
+ {
157
+ "name": "order",
158
+ "sourceName": "order",
159
+ "displayName": "Order",
160
+ "required": false,
161
+ "type": "string"
162
+ }
163
+ ],
164
+ "queryOptions": [
165
+ {
166
+ "name": "order",
167
+ "displayName": "Order",
168
+ "group": "order",
169
+ "type": "string",
170
+ "kind": "single",
171
+ "sourceName": "order"
172
+ }
173
+ ],
174
+ "attributeFields": [],
175
+ "relationshipFields": []
176
+ },
177
+ {
178
+ "id": "getWebhookSubscriptions",
179
+ "resource": "Webhook Subscription",
180
+ "operation": "List Webhook Subscriptions",
181
+ "description": "GET /webhook_subscriptions",
182
+ "method": "GET",
183
+ "path": "/webhooks/v2/webhook_subscriptions",
184
+ "deprecated": false,
185
+ "isList": true,
186
+ "lookupTarget": "webhook subscription",
187
+ "pathParameters": [],
188
+ "queryParameters": [],
189
+ "queryOptions": [],
190
+ "attributeFields": [],
191
+ "relationshipFields": []
192
+ },
193
+ {
194
+ "id": "getWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveriesDeliveryId",
195
+ "resource": "Webhook Subscription",
196
+ "operation": "Get Delivery (via Event)",
197
+ "description": "GET /webhook_subscriptions/{webhook_subscription_id}/events/{event_id}/deliveries/{delivery_id}",
198
+ "method": "GET",
199
+ "path": "/webhooks/v2/webhook_subscriptions/{webhook_subscription_id}/events/{event_id}/deliveries/{delivery_id}",
200
+ "deprecated": false,
201
+ "isList": false,
202
+ "lookupTarget": "delivery",
203
+ "pathParameters": [
204
+ {
205
+ "name": "webhookSubscriptionId",
206
+ "sourceName": "webhook_subscription_id",
207
+ "displayName": "Webhook Subscription ID",
208
+ "required": true,
209
+ "type": "string",
210
+ "lookup": {
211
+ "methodName": "searchGetWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveriesDeliveryIdWebhookSubscriptionId",
212
+ "sourcePath": "/webhooks/v2/webhook_subscriptions",
213
+ "parentBindings": [],
214
+ "labelFields": [
215
+ "name",
216
+ "full_name",
217
+ "display_name",
218
+ "search_name",
219
+ "path_name",
220
+ "first_name last_name",
221
+ "given_name last_name",
222
+ "nickname last_name",
223
+ "title",
224
+ "subject",
225
+ "label"
226
+ ],
227
+ "resultLimit": 25
228
+ }
229
+ },
230
+ {
231
+ "name": "eventId",
232
+ "sourceName": "event_id",
233
+ "displayName": "Event ID",
234
+ "required": true,
235
+ "type": "string",
236
+ "lookup": {
237
+ "methodName": "searchGetWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveriesDeliveryIdEventId",
238
+ "sourcePath": "/webhooks/v2/webhook_subscriptions/{webhook_subscription_id}/events",
239
+ "parentBindings": [
240
+ {
241
+ "sourceName": "webhook_subscription_id",
242
+ "fieldName": "getWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveriesDeliveryId_webhookSubscriptionId"
243
+ }
244
+ ],
245
+ "labelFields": [
246
+ "name",
247
+ "full_name",
248
+ "display_name",
249
+ "search_name",
250
+ "path_name",
251
+ "first_name last_name",
252
+ "given_name last_name",
253
+ "nickname last_name",
254
+ "title",
255
+ "subject",
256
+ "label"
257
+ ],
258
+ "resultLimit": 25
259
+ }
260
+ },
261
+ {
262
+ "name": "deliveryId",
263
+ "sourceName": "delivery_id",
264
+ "displayName": "Delivery ID",
265
+ "required": true,
266
+ "type": "string",
267
+ "lookup": {
268
+ "methodName": "searchGetWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveriesDeliveryIdDeliveryId",
269
+ "sourcePath": "/webhooks/v2/webhook_subscriptions/{webhook_subscription_id}/events/{event_id}/deliveries",
270
+ "parentBindings": [
271
+ {
272
+ "sourceName": "webhook_subscription_id",
273
+ "fieldName": "getWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveriesDeliveryId_webhookSubscriptionId"
274
+ },
275
+ {
276
+ "sourceName": "event_id",
277
+ "fieldName": "getWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveriesDeliveryId_eventId"
278
+ }
279
+ ],
280
+ "labelFields": [
281
+ "name",
282
+ "full_name",
283
+ "display_name",
284
+ "search_name",
285
+ "path_name",
286
+ "first_name last_name",
287
+ "given_name last_name",
288
+ "nickname last_name",
289
+ "title",
290
+ "subject",
291
+ "label"
292
+ ],
293
+ "resultLimit": 25
294
+ }
295
+ }
296
+ ],
297
+ "queryParameters": [],
298
+ "queryOptions": [],
299
+ "attributeFields": [],
300
+ "relationshipFields": []
301
+ },
302
+ {
303
+ "id": "getWebhookSubscriptionsWebhookSubscriptionIdEventsEventId",
304
+ "resource": "Webhook Subscription",
305
+ "operation": "Get Event (via Webhook Subscription)",
306
+ "description": "GET /webhook_subscriptions/{webhook_subscription_id}/events/{event_id}",
307
+ "method": "GET",
308
+ "path": "/webhooks/v2/webhook_subscriptions/{webhook_subscription_id}/events/{event_id}",
309
+ "deprecated": false,
310
+ "isList": false,
311
+ "lookupTarget": "event",
312
+ "pathParameters": [
313
+ {
314
+ "name": "webhookSubscriptionId",
315
+ "sourceName": "webhook_subscription_id",
316
+ "displayName": "Webhook Subscription ID",
317
+ "required": true,
318
+ "type": "string",
319
+ "lookup": {
320
+ "methodName": "searchGetWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdWebhookSubscriptionId",
321
+ "sourcePath": "/webhooks/v2/webhook_subscriptions",
322
+ "parentBindings": [],
323
+ "labelFields": [
324
+ "name",
325
+ "full_name",
326
+ "display_name",
327
+ "search_name",
328
+ "path_name",
329
+ "first_name last_name",
330
+ "given_name last_name",
331
+ "nickname last_name",
332
+ "title",
333
+ "subject",
334
+ "label"
335
+ ],
336
+ "resultLimit": 25
337
+ }
338
+ },
339
+ {
340
+ "name": "eventId",
341
+ "sourceName": "event_id",
342
+ "displayName": "Event ID",
343
+ "required": true,
344
+ "type": "string",
345
+ "lookup": {
346
+ "methodName": "searchGetWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdEventId",
347
+ "sourcePath": "/webhooks/v2/webhook_subscriptions/{webhook_subscription_id}/events",
348
+ "parentBindings": [
349
+ {
350
+ "sourceName": "webhook_subscription_id",
351
+ "fieldName": "getWebhookSubscriptionsWebhookSubscriptionIdEventsEventId_webhookSubscriptionId"
352
+ }
353
+ ],
354
+ "labelFields": [
355
+ "name",
356
+ "full_name",
357
+ "display_name",
358
+ "search_name",
359
+ "path_name",
360
+ "first_name last_name",
361
+ "given_name last_name",
362
+ "nickname last_name",
363
+ "title",
364
+ "subject",
365
+ "label"
366
+ ],
367
+ "resultLimit": 25
368
+ }
369
+ }
370
+ ],
371
+ "queryParameters": [],
372
+ "queryOptions": [],
373
+ "attributeFields": [],
374
+ "relationshipFields": []
375
+ },
376
+ {
377
+ "id": "getWebhookSubscriptionsWebhookSubscriptionId",
378
+ "resource": "Webhook Subscription",
379
+ "operation": "Get Webhook Subscription",
380
+ "description": "GET /webhook_subscriptions/{webhook_subscription_id}",
381
+ "method": "GET",
382
+ "path": "/webhooks/v2/webhook_subscriptions/{webhook_subscription_id}",
383
+ "deprecated": false,
384
+ "isList": false,
385
+ "lookupTarget": "webhook subscription",
386
+ "pathParameters": [
387
+ {
388
+ "name": "webhookSubscriptionId",
389
+ "sourceName": "webhook_subscription_id",
390
+ "displayName": "Webhook Subscription ID",
391
+ "required": true,
392
+ "type": "string",
393
+ "lookup": {
394
+ "methodName": "searchGetWebhookSubscriptionsWebhookSubscriptionIdWebhookSubscriptionId",
395
+ "sourcePath": "/webhooks/v2/webhook_subscriptions",
396
+ "parentBindings": [],
397
+ "labelFields": [
398
+ "name",
399
+ "full_name",
400
+ "display_name",
401
+ "search_name",
402
+ "path_name",
403
+ "first_name last_name",
404
+ "given_name last_name",
405
+ "nickname last_name",
406
+ "title",
407
+ "subject",
408
+ "label"
409
+ ],
410
+ "resultLimit": 25
411
+ }
412
+ }
413
+ ],
414
+ "queryParameters": [],
415
+ "queryOptions": [],
416
+ "attributeFields": [],
417
+ "relationshipFields": []
418
+ },
419
+ {
420
+ "id": "postWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdIgnore",
421
+ "resource": "Webhook Subscription",
422
+ "operation": "Create Ignore (via Event)",
423
+ "description": "POST /webhook_subscriptions/{webhook_subscription_id}/events/{event_id}/ignore",
424
+ "method": "POST",
425
+ "path": "/webhooks/v2/webhook_subscriptions/{webhook_subscription_id}/events/{event_id}/ignore",
426
+ "deprecated": false,
427
+ "isList": false,
428
+ "lookupTarget": "ignore",
429
+ "pathParameters": [
430
+ {
431
+ "name": "webhookSubscriptionId",
432
+ "sourceName": "webhook_subscription_id",
433
+ "displayName": "Webhook Subscription ID",
434
+ "required": true,
435
+ "type": "string",
436
+ "lookup": {
437
+ "methodName": "searchPostWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdIgnoreWebhookSubscriptionId",
438
+ "sourcePath": "/webhooks/v2/webhook_subscriptions",
439
+ "parentBindings": [],
440
+ "labelFields": [
441
+ "name",
442
+ "full_name",
443
+ "display_name",
444
+ "search_name",
445
+ "path_name",
446
+ "first_name last_name",
447
+ "given_name last_name",
448
+ "nickname last_name",
449
+ "title",
450
+ "subject",
451
+ "label"
452
+ ],
453
+ "resultLimit": 25
454
+ }
455
+ },
456
+ {
457
+ "name": "eventId",
458
+ "sourceName": "event_id",
459
+ "displayName": "Event ID",
460
+ "required": true,
461
+ "type": "string",
462
+ "lookup": {
463
+ "methodName": "searchPostWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdIgnoreEventId",
464
+ "sourcePath": "/webhooks/v2/webhook_subscriptions/{webhook_subscription_id}/events",
465
+ "parentBindings": [
466
+ {
467
+ "sourceName": "webhook_subscription_id",
468
+ "fieldName": "postWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdIgnore_webhookSubscriptionId"
469
+ }
470
+ ],
471
+ "labelFields": [
472
+ "name",
473
+ "full_name",
474
+ "display_name",
475
+ "search_name",
476
+ "path_name",
477
+ "first_name last_name",
478
+ "given_name last_name",
479
+ "nickname last_name",
480
+ "title",
481
+ "subject",
482
+ "label"
483
+ ],
484
+ "resultLimit": 25
485
+ }
486
+ }
487
+ ],
488
+ "queryParameters": [],
489
+ "queryOptions": [],
490
+ "attributeFields": [],
491
+ "relationshipFields": []
492
+ },
493
+ {
494
+ "id": "postWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdRedeliver",
495
+ "resource": "Webhook Subscription",
496
+ "operation": "Create Redeliver (via Event)",
497
+ "description": "POST /webhook_subscriptions/{webhook_subscription_id}/events/{event_id}/redeliver",
498
+ "method": "POST",
499
+ "path": "/webhooks/v2/webhook_subscriptions/{webhook_subscription_id}/events/{event_id}/redeliver",
500
+ "deprecated": false,
501
+ "isList": false,
502
+ "lookupTarget": "redeliver",
503
+ "pathParameters": [
504
+ {
505
+ "name": "webhookSubscriptionId",
506
+ "sourceName": "webhook_subscription_id",
507
+ "displayName": "Webhook Subscription ID",
508
+ "required": true,
509
+ "type": "string",
510
+ "lookup": {
511
+ "methodName": "searchPostWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdRedeliverWebhookSubscriptionId",
512
+ "sourcePath": "/webhooks/v2/webhook_subscriptions",
513
+ "parentBindings": [],
514
+ "labelFields": [
515
+ "name",
516
+ "full_name",
517
+ "display_name",
518
+ "search_name",
519
+ "path_name",
520
+ "first_name last_name",
521
+ "given_name last_name",
522
+ "nickname last_name",
523
+ "title",
524
+ "subject",
525
+ "label"
526
+ ],
527
+ "resultLimit": 25
528
+ }
529
+ },
530
+ {
531
+ "name": "eventId",
532
+ "sourceName": "event_id",
533
+ "displayName": "Event ID",
534
+ "required": true,
535
+ "type": "string",
536
+ "lookup": {
537
+ "methodName": "searchPostWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdRedeliverEventId",
538
+ "sourcePath": "/webhooks/v2/webhook_subscriptions/{webhook_subscription_id}/events",
539
+ "parentBindings": [
540
+ {
541
+ "sourceName": "webhook_subscription_id",
542
+ "fieldName": "postWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdRedeliver_webhookSubscriptionId"
543
+ }
544
+ ],
545
+ "labelFields": [
546
+ "name",
547
+ "full_name",
548
+ "display_name",
549
+ "search_name",
550
+ "path_name",
551
+ "first_name last_name",
552
+ "given_name last_name",
553
+ "nickname last_name",
554
+ "title",
555
+ "subject",
556
+ "label"
557
+ ],
558
+ "resultLimit": 25
559
+ }
560
+ }
561
+ ],
562
+ "queryParameters": [],
563
+ "queryOptions": [],
564
+ "attributeFields": [],
565
+ "relationshipFields": []
566
+ },
567
+ {
568
+ "id": "postWebhookSubscriptionsWebhookSubscriptionIdRotateSecret",
569
+ "resource": "Webhook Subscription",
570
+ "operation": "Create Rotate Secret (via Webhook Subscription)",
571
+ "description": "POST /webhook_subscriptions/{webhook_subscription_id}/rotate_secret",
572
+ "method": "POST",
573
+ "path": "/webhooks/v2/webhook_subscriptions/{webhook_subscription_id}/rotate_secret",
574
+ "deprecated": false,
575
+ "isList": false,
576
+ "lookupTarget": "rotate secret",
577
+ "pathParameters": [
578
+ {
579
+ "name": "webhookSubscriptionId",
580
+ "sourceName": "webhook_subscription_id",
581
+ "displayName": "Webhook Subscription ID",
582
+ "required": true,
583
+ "type": "string",
584
+ "lookup": {
585
+ "methodName": "searchPostWebhookSubscriptionsWebhookSubscriptionIdRotateSecretWebhookSubscriptionId",
586
+ "sourcePath": "/webhooks/v2/webhook_subscriptions",
587
+ "parentBindings": [],
588
+ "labelFields": [
589
+ "name",
590
+ "full_name",
591
+ "display_name",
592
+ "search_name",
593
+ "path_name",
594
+ "first_name last_name",
595
+ "given_name last_name",
596
+ "nickname last_name",
597
+ "title",
598
+ "subject",
599
+ "label"
600
+ ],
601
+ "resultLimit": 25
602
+ }
603
+ }
604
+ ],
605
+ "queryParameters": [],
606
+ "queryOptions": [],
607
+ "attributeFields": [],
608
+ "relationshipFields": []
609
+ },
610
+ {
611
+ "id": "postWebhookSubscriptions",
612
+ "resource": "Webhook Subscription",
613
+ "operation": "Create Webhook Subscription",
614
+ "description": "POST /webhook_subscriptions",
615
+ "method": "POST",
616
+ "path": "/webhooks/v2/webhook_subscriptions",
617
+ "deprecated": false,
618
+ "isList": false,
619
+ "lookupTarget": "webhook subscription",
620
+ "pathParameters": [],
621
+ "queryParameters": [],
622
+ "queryOptions": [],
623
+ "attributeFields": [
624
+ {
625
+ "name": "name",
626
+ "sourceName": "name",
627
+ "displayName": "Name",
628
+ "required": false,
629
+ "type": "string"
630
+ },
631
+ {
632
+ "name": "url",
633
+ "sourceName": "url",
634
+ "displayName": "Url",
635
+ "required": false,
636
+ "type": "string"
637
+ },
638
+ {
639
+ "name": "active",
640
+ "sourceName": "active",
641
+ "displayName": "Active",
642
+ "required": false,
643
+ "type": "boolean"
644
+ }
645
+ ],
646
+ "relationshipFields": []
647
+ },
648
+ {
649
+ "id": "patchWebhookSubscriptionsWebhookSubscriptionId",
650
+ "resource": "Webhook Subscription",
651
+ "operation": "Update Webhook Subscription",
652
+ "description": "PATCH /webhook_subscriptions/{webhook_subscription_id}",
653
+ "method": "PATCH",
654
+ "path": "/webhooks/v2/webhook_subscriptions/{webhook_subscription_id}",
655
+ "deprecated": false,
656
+ "isList": false,
657
+ "lookupTarget": "webhook subscription",
658
+ "pathParameters": [
659
+ {
660
+ "name": "webhookSubscriptionId",
661
+ "sourceName": "webhook_subscription_id",
662
+ "displayName": "Webhook Subscription ID",
663
+ "required": true,
664
+ "type": "string",
665
+ "lookup": {
666
+ "methodName": "searchPatchWebhookSubscriptionsWebhookSubscriptionIdWebhookSubscriptionId",
667
+ "sourcePath": "/webhooks/v2/webhook_subscriptions",
668
+ "parentBindings": [],
669
+ "labelFields": [
670
+ "name",
671
+ "full_name",
672
+ "display_name",
673
+ "search_name",
674
+ "path_name",
675
+ "first_name last_name",
676
+ "given_name last_name",
677
+ "nickname last_name",
678
+ "title",
679
+ "subject",
680
+ "label"
681
+ ],
682
+ "resultLimit": 25
683
+ }
684
+ }
685
+ ],
686
+ "queryParameters": [],
687
+ "queryOptions": [],
688
+ "attributeFields": [
689
+ {
690
+ "name": "active",
691
+ "sourceName": "active",
692
+ "displayName": "Active",
693
+ "required": false,
694
+ "type": "boolean"
695
+ }
696
+ ],
697
+ "relationshipFields": []
698
+ },
699
+ {
700
+ "id": "deleteWebhookSubscriptionsWebhookSubscriptionId",
701
+ "resource": "Webhook Subscription",
702
+ "operation": "Delete Webhook Subscription",
703
+ "description": "DELETE /webhook_subscriptions/{webhook_subscription_id}",
704
+ "method": "DELETE",
705
+ "path": "/webhooks/v2/webhook_subscriptions/{webhook_subscription_id}",
706
+ "deprecated": false,
707
+ "isList": false,
708
+ "lookupTarget": "webhook subscription",
709
+ "pathParameters": [
710
+ {
711
+ "name": "webhookSubscriptionId",
712
+ "sourceName": "webhook_subscription_id",
713
+ "displayName": "Webhook Subscription ID",
714
+ "required": true,
715
+ "type": "string",
716
+ "lookup": {
717
+ "methodName": "searchDeleteWebhookSubscriptionsWebhookSubscriptionIdWebhookSubscriptionId",
718
+ "sourcePath": "/webhooks/v2/webhook_subscriptions",
719
+ "parentBindings": [],
720
+ "labelFields": [
721
+ "name",
722
+ "full_name",
723
+ "display_name",
724
+ "search_name",
725
+ "path_name",
726
+ "first_name last_name",
727
+ "given_name last_name",
728
+ "nickname last_name",
729
+ "title",
730
+ "subject",
731
+ "label"
732
+ ],
733
+ "resultLimit": 25
734
+ }
735
+ }
736
+ ],
737
+ "queryParameters": [],
738
+ "queryOptions": [],
739
+ "attributeFields": [],
740
+ "relationshipFields": []
741
+ }
742
+ ];
743
+ const LOOKUP_SOURCES = {
744
+ "searchDeleteWebhookSubscriptionsWebhookSubscriptionIdWebhookSubscriptionId": {
745
+ "methodName": "searchDeleteWebhookSubscriptionsWebhookSubscriptionIdWebhookSubscriptionId",
746
+ "sourcePath": "/webhooks/v2/webhook_subscriptions",
747
+ "parentBindings": [],
748
+ "labelFields": [
749
+ "name",
750
+ "full_name",
751
+ "display_name",
752
+ "search_name",
753
+ "path_name",
754
+ "first_name last_name",
755
+ "given_name last_name",
756
+ "nickname last_name",
757
+ "title",
758
+ "subject",
759
+ "label"
760
+ ],
761
+ "resultLimit": 25
762
+ },
763
+ "searchGetWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveriesDeliveryIdDeliveryId": {
764
+ "methodName": "searchGetWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveriesDeliveryIdDeliveryId",
765
+ "sourcePath": "/webhooks/v2/webhook_subscriptions/{webhook_subscription_id}/events/{event_id}/deliveries",
766
+ "parentBindings": [
767
+ {
768
+ "sourceName": "webhook_subscription_id",
769
+ "fieldName": "getWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveriesDeliveryId_webhookSubscriptionId"
770
+ },
771
+ {
772
+ "sourceName": "event_id",
773
+ "fieldName": "getWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveriesDeliveryId_eventId"
774
+ }
775
+ ],
776
+ "labelFields": [
777
+ "name",
778
+ "full_name",
779
+ "display_name",
780
+ "search_name",
781
+ "path_name",
782
+ "first_name last_name",
783
+ "given_name last_name",
784
+ "nickname last_name",
785
+ "title",
786
+ "subject",
787
+ "label"
788
+ ],
789
+ "resultLimit": 25
790
+ },
791
+ "searchGetWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveriesDeliveryIdEventId": {
792
+ "methodName": "searchGetWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveriesDeliveryIdEventId",
793
+ "sourcePath": "/webhooks/v2/webhook_subscriptions/{webhook_subscription_id}/events",
794
+ "parentBindings": [
795
+ {
796
+ "sourceName": "webhook_subscription_id",
797
+ "fieldName": "getWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveriesDeliveryId_webhookSubscriptionId"
798
+ }
799
+ ],
800
+ "labelFields": [
801
+ "name",
802
+ "full_name",
803
+ "display_name",
804
+ "search_name",
805
+ "path_name",
806
+ "first_name last_name",
807
+ "given_name last_name",
808
+ "nickname last_name",
809
+ "title",
810
+ "subject",
811
+ "label"
812
+ ],
813
+ "resultLimit": 25
814
+ },
815
+ "searchGetWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveriesDeliveryIdWebhookSubscriptionId": {
816
+ "methodName": "searchGetWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveriesDeliveryIdWebhookSubscriptionId",
817
+ "sourcePath": "/webhooks/v2/webhook_subscriptions",
818
+ "parentBindings": [],
819
+ "labelFields": [
820
+ "name",
821
+ "full_name",
822
+ "display_name",
823
+ "search_name",
824
+ "path_name",
825
+ "first_name last_name",
826
+ "given_name last_name",
827
+ "nickname last_name",
828
+ "title",
829
+ "subject",
830
+ "label"
831
+ ],
832
+ "resultLimit": 25
833
+ },
834
+ "searchGetWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveriesEventId": {
835
+ "methodName": "searchGetWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveriesEventId",
836
+ "sourcePath": "/webhooks/v2/webhook_subscriptions/{webhook_subscription_id}/events",
837
+ "parentBindings": [
838
+ {
839
+ "sourceName": "webhook_subscription_id",
840
+ "fieldName": "getWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveries_webhookSubscriptionId"
841
+ }
842
+ ],
843
+ "labelFields": [
844
+ "name",
845
+ "full_name",
846
+ "display_name",
847
+ "search_name",
848
+ "path_name",
849
+ "first_name last_name",
850
+ "given_name last_name",
851
+ "nickname last_name",
852
+ "title",
853
+ "subject",
854
+ "label"
855
+ ],
856
+ "resultLimit": 25
857
+ },
858
+ "searchGetWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveriesWebhookSubscriptionId": {
859
+ "methodName": "searchGetWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveriesWebhookSubscriptionId",
860
+ "sourcePath": "/webhooks/v2/webhook_subscriptions",
861
+ "parentBindings": [],
862
+ "labelFields": [
863
+ "name",
864
+ "full_name",
865
+ "display_name",
866
+ "search_name",
867
+ "path_name",
868
+ "first_name last_name",
869
+ "given_name last_name",
870
+ "nickname last_name",
871
+ "title",
872
+ "subject",
873
+ "label"
874
+ ],
875
+ "resultLimit": 25
876
+ },
877
+ "searchGetWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdEventId": {
878
+ "methodName": "searchGetWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdEventId",
879
+ "sourcePath": "/webhooks/v2/webhook_subscriptions/{webhook_subscription_id}/events",
880
+ "parentBindings": [
881
+ {
882
+ "sourceName": "webhook_subscription_id",
883
+ "fieldName": "getWebhookSubscriptionsWebhookSubscriptionIdEventsEventId_webhookSubscriptionId"
884
+ }
885
+ ],
886
+ "labelFields": [
887
+ "name",
888
+ "full_name",
889
+ "display_name",
890
+ "search_name",
891
+ "path_name",
892
+ "first_name last_name",
893
+ "given_name last_name",
894
+ "nickname last_name",
895
+ "title",
896
+ "subject",
897
+ "label"
898
+ ],
899
+ "resultLimit": 25
900
+ },
901
+ "searchGetWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdWebhookSubscriptionId": {
902
+ "methodName": "searchGetWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdWebhookSubscriptionId",
903
+ "sourcePath": "/webhooks/v2/webhook_subscriptions",
904
+ "parentBindings": [],
905
+ "labelFields": [
906
+ "name",
907
+ "full_name",
908
+ "display_name",
909
+ "search_name",
910
+ "path_name",
911
+ "first_name last_name",
912
+ "given_name last_name",
913
+ "nickname last_name",
914
+ "title",
915
+ "subject",
916
+ "label"
917
+ ],
918
+ "resultLimit": 25
919
+ },
920
+ "searchGetWebhookSubscriptionsWebhookSubscriptionIdEventsWebhookSubscriptionId": {
921
+ "methodName": "searchGetWebhookSubscriptionsWebhookSubscriptionIdEventsWebhookSubscriptionId",
922
+ "sourcePath": "/webhooks/v2/webhook_subscriptions",
923
+ "parentBindings": [],
924
+ "labelFields": [
925
+ "name",
926
+ "full_name",
927
+ "display_name",
928
+ "search_name",
929
+ "path_name",
930
+ "first_name last_name",
931
+ "given_name last_name",
932
+ "nickname last_name",
933
+ "title",
934
+ "subject",
935
+ "label"
936
+ ],
937
+ "resultLimit": 25
938
+ },
939
+ "searchGetWebhookSubscriptionsWebhookSubscriptionIdWebhookSubscriptionId": {
940
+ "methodName": "searchGetWebhookSubscriptionsWebhookSubscriptionIdWebhookSubscriptionId",
941
+ "sourcePath": "/webhooks/v2/webhook_subscriptions",
942
+ "parentBindings": [],
943
+ "labelFields": [
944
+ "name",
945
+ "full_name",
946
+ "display_name",
947
+ "search_name",
948
+ "path_name",
949
+ "first_name last_name",
950
+ "given_name last_name",
951
+ "nickname last_name",
952
+ "title",
953
+ "subject",
954
+ "label"
955
+ ],
956
+ "resultLimit": 25
957
+ },
958
+ "searchPatchWebhookSubscriptionsWebhookSubscriptionIdWebhookSubscriptionId": {
959
+ "methodName": "searchPatchWebhookSubscriptionsWebhookSubscriptionIdWebhookSubscriptionId",
960
+ "sourcePath": "/webhooks/v2/webhook_subscriptions",
961
+ "parentBindings": [],
962
+ "labelFields": [
963
+ "name",
964
+ "full_name",
965
+ "display_name",
966
+ "search_name",
967
+ "path_name",
968
+ "first_name last_name",
969
+ "given_name last_name",
970
+ "nickname last_name",
971
+ "title",
972
+ "subject",
973
+ "label"
974
+ ],
975
+ "resultLimit": 25
976
+ },
977
+ "searchPostWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdIgnoreEventId": {
978
+ "methodName": "searchPostWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdIgnoreEventId",
979
+ "sourcePath": "/webhooks/v2/webhook_subscriptions/{webhook_subscription_id}/events",
980
+ "parentBindings": [
981
+ {
982
+ "sourceName": "webhook_subscription_id",
983
+ "fieldName": "postWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdIgnore_webhookSubscriptionId"
984
+ }
985
+ ],
986
+ "labelFields": [
987
+ "name",
988
+ "full_name",
989
+ "display_name",
990
+ "search_name",
991
+ "path_name",
992
+ "first_name last_name",
993
+ "given_name last_name",
994
+ "nickname last_name",
995
+ "title",
996
+ "subject",
997
+ "label"
998
+ ],
999
+ "resultLimit": 25
1000
+ },
1001
+ "searchPostWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdIgnoreWebhookSubscriptionId": {
1002
+ "methodName": "searchPostWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdIgnoreWebhookSubscriptionId",
1003
+ "sourcePath": "/webhooks/v2/webhook_subscriptions",
1004
+ "parentBindings": [],
1005
+ "labelFields": [
1006
+ "name",
1007
+ "full_name",
1008
+ "display_name",
1009
+ "search_name",
1010
+ "path_name",
1011
+ "first_name last_name",
1012
+ "given_name last_name",
1013
+ "nickname last_name",
1014
+ "title",
1015
+ "subject",
1016
+ "label"
1017
+ ],
1018
+ "resultLimit": 25
1019
+ },
1020
+ "searchPostWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdRedeliverEventId": {
1021
+ "methodName": "searchPostWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdRedeliverEventId",
1022
+ "sourcePath": "/webhooks/v2/webhook_subscriptions/{webhook_subscription_id}/events",
1023
+ "parentBindings": [
1024
+ {
1025
+ "sourceName": "webhook_subscription_id",
1026
+ "fieldName": "postWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdRedeliver_webhookSubscriptionId"
1027
+ }
1028
+ ],
1029
+ "labelFields": [
1030
+ "name",
1031
+ "full_name",
1032
+ "display_name",
1033
+ "search_name",
1034
+ "path_name",
1035
+ "first_name last_name",
1036
+ "given_name last_name",
1037
+ "nickname last_name",
1038
+ "title",
1039
+ "subject",
1040
+ "label"
1041
+ ],
1042
+ "resultLimit": 25
1043
+ },
1044
+ "searchPostWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdRedeliverWebhookSubscriptionId": {
1045
+ "methodName": "searchPostWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdRedeliverWebhookSubscriptionId",
1046
+ "sourcePath": "/webhooks/v2/webhook_subscriptions",
1047
+ "parentBindings": [],
1048
+ "labelFields": [
1049
+ "name",
1050
+ "full_name",
1051
+ "display_name",
1052
+ "search_name",
1053
+ "path_name",
1054
+ "first_name last_name",
1055
+ "given_name last_name",
1056
+ "nickname last_name",
1057
+ "title",
1058
+ "subject",
1059
+ "label"
1060
+ ],
1061
+ "resultLimit": 25
1062
+ },
1063
+ "searchPostWebhookSubscriptionsWebhookSubscriptionIdRotateSecretWebhookSubscriptionId": {
1064
+ "methodName": "searchPostWebhookSubscriptionsWebhookSubscriptionIdRotateSecretWebhookSubscriptionId",
1065
+ "sourcePath": "/webhooks/v2/webhook_subscriptions",
1066
+ "parentBindings": [],
1067
+ "labelFields": [
1068
+ "name",
1069
+ "full_name",
1070
+ "display_name",
1071
+ "search_name",
1072
+ "path_name",
1073
+ "first_name last_name",
1074
+ "given_name last_name",
1075
+ "nickname last_name",
1076
+ "title",
1077
+ "subject",
1078
+ "label"
1079
+ ],
1080
+ "resultLimit": 25
1081
+ }
1082
+ };
1083
+ const NODE_PROPERTIES = Function('return ' + "[\n {\n displayName: 'Resource',\n name: 'resource',\n type: 'options',\n noDataExpression: true,\n options: [{\"name\":\"Available Event\",\"value\":\"Available Event\"},{\"name\":\"Webhook Subscription\",\"value\":\"Webhook Subscription\"}],\n default: \"Available Event\",\n },\n {\n displayName: 'Operation',\n name: 'operation',\n type: 'options',\n noDataExpression: true,\n displayOptions: {\"show\":{\"resource\":[\"Available Event\"]}},\n options: [{\"name\":\"List Available Events\",\"value\":\"getAvailableEvents\",\"description\":\"GET /available_events\",\"action\":\"List Available Events\"}],\n default: \"getAvailableEvents\",\n },\n {\n displayName: 'Operation',\n name: 'operation',\n type: 'options',\n noDataExpression: true,\n displayOptions: {\"show\":{\"resource\":[\"Webhook Subscription\"]}},\n options: [{\"name\":\"List Deliveries (via Event)\",\"value\":\"getWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveries\",\"description\":\"GET /webhook_subscriptions/{webhook_subscription_id}/events/{event_id}/deliveries\",\"action\":\"List Deliveries (via Event)\"},{\"name\":\"List Events (via Webhook Subscription)\",\"value\":\"getWebhookSubscriptionsWebhookSubscriptionIdEvents\",\"description\":\"GET /webhook_subscriptions/{webhook_subscription_id}/events\",\"action\":\"List Events (via Webhook Subscription)\"},{\"name\":\"List Webhook Subscriptions\",\"value\":\"getWebhookSubscriptions\",\"description\":\"GET /webhook_subscriptions\",\"action\":\"List Webhook Subscriptions\"},{\"name\":\"Get Delivery (via Event)\",\"value\":\"getWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveriesDeliveryId\",\"description\":\"GET /webhook_subscriptions/{webhook_subscription_id}/events/{event_id}/deliveries/{delivery_id}\",\"action\":\"Get Delivery (via Event)\"},{\"name\":\"Get Event (via Webhook Subscription)\",\"value\":\"getWebhookSubscriptionsWebhookSubscriptionIdEventsEventId\",\"description\":\"GET /webhook_subscriptions/{webhook_subscription_id}/events/{event_id}\",\"action\":\"Get Event (via Webhook Subscription)\"},{\"name\":\"Get Webhook Subscription\",\"value\":\"getWebhookSubscriptionsWebhookSubscriptionId\",\"description\":\"GET /webhook_subscriptions/{webhook_subscription_id}\",\"action\":\"Get Webhook Subscription\"},{\"name\":\"Create Ignore (via Event)\",\"value\":\"postWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdIgnore\",\"description\":\"POST /webhook_subscriptions/{webhook_subscription_id}/events/{event_id}/ignore\",\"action\":\"Create Ignore (via Event)\"},{\"name\":\"Create Redeliver (via Event)\",\"value\":\"postWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdRedeliver\",\"description\":\"POST /webhook_subscriptions/{webhook_subscription_id}/events/{event_id}/redeliver\",\"action\":\"Create Redeliver (via Event)\"},{\"name\":\"Create Rotate Secret (via Webhook Subscription)\",\"value\":\"postWebhookSubscriptionsWebhookSubscriptionIdRotateSecret\",\"description\":\"POST /webhook_subscriptions/{webhook_subscription_id}/rotate_secret\",\"action\":\"Create Rotate Secret (via Webhook Subscription)\"},{\"name\":\"Create Webhook Subscription\",\"value\":\"postWebhookSubscriptions\",\"description\":\"POST /webhook_subscriptions\",\"action\":\"Create Webhook Subscription\"},{\"name\":\"Update Webhook Subscription\",\"value\":\"patchWebhookSubscriptionsWebhookSubscriptionId\",\"description\":\"PATCH /webhook_subscriptions/{webhook_subscription_id}\",\"action\":\"Update Webhook Subscription\"},{\"name\":\"Delete Webhook Subscription\",\"value\":\"deleteWebhookSubscriptionsWebhookSubscriptionId\",\"description\":\"DELETE /webhook_subscriptions/{webhook_subscription_id}\",\"action\":\"Delete Webhook Subscription\"}],\n default: \"getWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveries\",\n },\n {\n displayName: 'Return All',\n name: \"getAvailableEvents_returnAll\",\n type: 'boolean',\n default: false,\n displayOptions: {\"show\":{\"resource\":[\"Available Event\"],\"operation\":[\"getAvailableEvents\"]}},\n },\n {\n displayName: 'Limit',\n name: \"getAvailableEvents_limit\",\n type: 'number',\n default: 100,\n typeOptions: { minValue: 1 },\n displayOptions: {\"show\":{\"resource\":[\"Available Event\"],\"operation\":[\"getAvailableEvents\"],\"getAvailableEvents_returnAll\":[false]}},\n },\n {\n displayName: 'Additional Query Parameters',\n name: 'additionalQueryParameters',\n type: 'fixedCollection',\n default: {},\n placeholder: 'Add Parameter',\n typeOptions: { multipleValues: true },\n displayOptions: {\"show\":{\"resource\":[\"Available Event\"],\"operation\":[\"getAvailableEvents\"]}},\n options: [{\n displayName: 'Parameter',\n name: 'parameters',\n values: [\n { displayName: 'Name', name: 'name', type: 'string', default: '' },\n { displayName: 'Value', name: 'value', type: 'string', default: '' },\n ],\n }],\n },\n {\n displayName: \"Webhook Subscription ID\",\n name: \"getWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveries_webhookSubscriptionId\",\n type: \"resourceLocator\",\n default: {\"mode\":\"list\",\"value\":\"\"},\n required: true,\n modes: [{\"displayName\":\"List\",\"name\":\"list\",\"type\":\"list\",\"typeOptions\":{\"searchListMethod\":\"searchGetWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveriesWebhookSubscriptionId\",\"searchable\":true}},{\"displayName\":\"ID\",\"name\":\"id\",\"type\":\"string\",\"placeholder\":\"e.g. 12345\"}],\n displayOptions: {\"show\":{\"resource\":[\"Webhook Subscription\"],\"operation\":[\"getWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveries\"]}},\n },\n {\n displayName: \"Event ID\",\n name: \"getWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveries_eventId\",\n type: \"resourceLocator\",\n default: {\"mode\":\"list\",\"value\":\"\"},\n required: true,\n modes: [{\"displayName\":\"List\",\"name\":\"list\",\"type\":\"list\",\"typeOptions\":{\"searchListMethod\":\"searchGetWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveriesEventId\",\"searchable\":true}},{\"displayName\":\"ID\",\"name\":\"id\",\"type\":\"string\",\"placeholder\":\"e.g. 12345\"}],\n displayOptions: {\"show\":{\"resource\":[\"Webhook Subscription\"],\"operation\":[\"getWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveries\"]}},\n },\n {\n displayName: \"Order\",\n name: \"getWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveries_order\",\n type: 'fixedCollection',\n default: {},\n placeholder: \"Order by\",\n typeOptions: { multipleValues: true },\n displayOptions: {\"show\":{\"resource\":[\"Webhook Subscription\"],\"operation\":[\"getWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveries\"]}},\n options: [{\"displayName\":\"Order\",\"name\":\"order\",\"values\":[{\"displayName\":\"Value\",\"name\":\"value\",\"type\":\"options\",\"options\":[{\"name\":\"Created At Ascending\",\"value\":\"created_at\"},{\"name\":\"Created At Descending\",\"value\":\"-created_at\"}],\"default\":\"\"}]}],\n },\n {\n displayName: 'Return All',\n name: \"getWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveries_returnAll\",\n type: 'boolean',\n default: false,\n displayOptions: {\"show\":{\"resource\":[\"Webhook Subscription\"],\"operation\":[\"getWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveries\"]}},\n },\n {\n displayName: 'Limit',\n name: \"getWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveries_limit\",\n type: 'number',\n default: 100,\n typeOptions: { minValue: 1 },\n displayOptions: {\"show\":{\"resource\":[\"Webhook Subscription\"],\"operation\":[\"getWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveries\"],\"getWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveries_returnAll\":[false]}},\n },\n {\n displayName: 'Additional Query Parameters',\n name: 'additionalQueryParameters',\n type: 'fixedCollection',\n default: {},\n placeholder: 'Add Parameter',\n typeOptions: { multipleValues: true },\n displayOptions: {\"show\":{\"resource\":[\"Webhook Subscription\"],\"operation\":[\"getWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveries\"]}},\n options: [{\n displayName: 'Parameter',\n name: 'parameters',\n values: [\n { displayName: 'Name', name: 'name', type: 'string', default: '' },\n { displayName: 'Value', name: 'value', type: 'string', default: '' },\n ],\n }],\n },\n {\n displayName: \"Webhook Subscription ID\",\n name: \"getWebhookSubscriptionsWebhookSubscriptionIdEvents_webhookSubscriptionId\",\n type: \"resourceLocator\",\n default: {\"mode\":\"list\",\"value\":\"\"},\n required: true,\n modes: [{\"displayName\":\"List\",\"name\":\"list\",\"type\":\"list\",\"typeOptions\":{\"searchListMethod\":\"searchGetWebhookSubscriptionsWebhookSubscriptionIdEventsWebhookSubscriptionId\",\"searchable\":true}},{\"displayName\":\"ID\",\"name\":\"id\",\"type\":\"string\",\"placeholder\":\"e.g. 12345\"}],\n displayOptions: {\"show\":{\"resource\":[\"Webhook Subscription\"],\"operation\":[\"getWebhookSubscriptionsWebhookSubscriptionIdEvents\"]}},\n },\n {\n displayName: \"Order\",\n name: \"getWebhookSubscriptionsWebhookSubscriptionIdEvents_order\",\n type: 'fixedCollection',\n default: {},\n placeholder: \"Order by\",\n typeOptions: { multipleValues: true },\n displayOptions: {\"show\":{\"resource\":[\"Webhook Subscription\"],\"operation\":[\"getWebhookSubscriptionsWebhookSubscriptionIdEvents\"]}},\n options: [{\"displayName\":\"Order\",\"name\":\"order\",\"values\":[{\"displayName\":\"Value\",\"name\":\"value\",\"type\":\"options\",\"options\":[{\"name\":\"Created At Ascending\",\"value\":\"created_at\"},{\"name\":\"Created At Descending\",\"value\":\"-created_at\"}],\"default\":\"\"}]}],\n },\n {\n displayName: 'Return All',\n name: \"getWebhookSubscriptionsWebhookSubscriptionIdEvents_returnAll\",\n type: 'boolean',\n default: false,\n displayOptions: {\"show\":{\"resource\":[\"Webhook Subscription\"],\"operation\":[\"getWebhookSubscriptionsWebhookSubscriptionIdEvents\"]}},\n },\n {\n displayName: 'Limit',\n name: \"getWebhookSubscriptionsWebhookSubscriptionIdEvents_limit\",\n type: 'number',\n default: 100,\n typeOptions: { minValue: 1 },\n displayOptions: {\"show\":{\"resource\":[\"Webhook Subscription\"],\"operation\":[\"getWebhookSubscriptionsWebhookSubscriptionIdEvents\"],\"getWebhookSubscriptionsWebhookSubscriptionIdEvents_returnAll\":[false]}},\n },\n {\n displayName: 'Additional Query Parameters',\n name: 'additionalQueryParameters',\n type: 'fixedCollection',\n default: {},\n placeholder: 'Add Parameter',\n typeOptions: { multipleValues: true },\n displayOptions: {\"show\":{\"resource\":[\"Webhook Subscription\"],\"operation\":[\"getWebhookSubscriptionsWebhookSubscriptionIdEvents\"]}},\n options: [{\n displayName: 'Parameter',\n name: 'parameters',\n values: [\n { displayName: 'Name', name: 'name', type: 'string', default: '' },\n { displayName: 'Value', name: 'value', type: 'string', default: '' },\n ],\n }],\n },\n {\n displayName: 'Return All',\n name: \"getWebhookSubscriptions_returnAll\",\n type: 'boolean',\n default: false,\n displayOptions: {\"show\":{\"resource\":[\"Webhook Subscription\"],\"operation\":[\"getWebhookSubscriptions\"]}},\n },\n {\n displayName: 'Limit',\n name: \"getWebhookSubscriptions_limit\",\n type: 'number',\n default: 100,\n typeOptions: { minValue: 1 },\n displayOptions: {\"show\":{\"resource\":[\"Webhook Subscription\"],\"operation\":[\"getWebhookSubscriptions\"],\"getWebhookSubscriptions_returnAll\":[false]}},\n },\n {\n displayName: 'Additional Query Parameters',\n name: 'additionalQueryParameters',\n type: 'fixedCollection',\n default: {},\n placeholder: 'Add Parameter',\n typeOptions: { multipleValues: true },\n displayOptions: {\"show\":{\"resource\":[\"Webhook Subscription\"],\"operation\":[\"getWebhookSubscriptions\"]}},\n options: [{\n displayName: 'Parameter',\n name: 'parameters',\n values: [\n { displayName: 'Name', name: 'name', type: 'string', default: '' },\n { displayName: 'Value', name: 'value', type: 'string', default: '' },\n ],\n }],\n },\n {\n displayName: \"Webhook Subscription ID\",\n name: \"getWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveriesDeliveryId_webhookSubscriptionId\",\n type: \"resourceLocator\",\n default: {\"mode\":\"list\",\"value\":\"\"},\n required: true,\n modes: [{\"displayName\":\"List\",\"name\":\"list\",\"type\":\"list\",\"typeOptions\":{\"searchListMethod\":\"searchGetWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveriesDeliveryIdWebhookSubscriptionId\",\"searchable\":true}},{\"displayName\":\"ID\",\"name\":\"id\",\"type\":\"string\",\"placeholder\":\"e.g. 12345\"}],\n displayOptions: {\"show\":{\"resource\":[\"Webhook Subscription\"],\"operation\":[\"getWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveriesDeliveryId\"]}},\n },\n {\n displayName: \"Event ID\",\n name: \"getWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveriesDeliveryId_eventId\",\n type: \"resourceLocator\",\n default: {\"mode\":\"list\",\"value\":\"\"},\n required: true,\n modes: [{\"displayName\":\"List\",\"name\":\"list\",\"type\":\"list\",\"typeOptions\":{\"searchListMethod\":\"searchGetWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveriesDeliveryIdEventId\",\"searchable\":true}},{\"displayName\":\"ID\",\"name\":\"id\",\"type\":\"string\",\"placeholder\":\"e.g. 12345\"}],\n displayOptions: {\"show\":{\"resource\":[\"Webhook Subscription\"],\"operation\":[\"getWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveriesDeliveryId\"]}},\n },\n {\n displayName: \"Delivery ID\",\n name: \"getWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveriesDeliveryId_deliveryId\",\n type: \"resourceLocator\",\n default: {\"mode\":\"list\",\"value\":\"\"},\n required: true,\n modes: [{\"displayName\":\"List\",\"name\":\"list\",\"type\":\"list\",\"typeOptions\":{\"searchListMethod\":\"searchGetWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveriesDeliveryIdDeliveryId\",\"searchable\":true}},{\"displayName\":\"ID\",\"name\":\"id\",\"type\":\"string\",\"placeholder\":\"e.g. 12345\"}],\n displayOptions: {\"show\":{\"resource\":[\"Webhook Subscription\"],\"operation\":[\"getWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveriesDeliveryId\"]}},\n },\n {\n displayName: 'Additional Query Parameters',\n name: 'additionalQueryParameters',\n type: 'fixedCollection',\n default: {},\n placeholder: 'Add Parameter',\n typeOptions: { multipleValues: true },\n displayOptions: {\"show\":{\"resource\":[\"Webhook Subscription\"],\"operation\":[\"getWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveriesDeliveryId\"]}},\n options: [{\n displayName: 'Parameter',\n name: 'parameters',\n values: [\n { displayName: 'Name', name: 'name', type: 'string', default: '' },\n { displayName: 'Value', name: 'value', type: 'string', default: '' },\n ],\n }],\n },\n {\n displayName: \"Webhook Subscription ID\",\n name: \"getWebhookSubscriptionsWebhookSubscriptionIdEventsEventId_webhookSubscriptionId\",\n type: \"resourceLocator\",\n default: {\"mode\":\"list\",\"value\":\"\"},\n required: true,\n modes: [{\"displayName\":\"List\",\"name\":\"list\",\"type\":\"list\",\"typeOptions\":{\"searchListMethod\":\"searchGetWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdWebhookSubscriptionId\",\"searchable\":true}},{\"displayName\":\"ID\",\"name\":\"id\",\"type\":\"string\",\"placeholder\":\"e.g. 12345\"}],\n displayOptions: {\"show\":{\"resource\":[\"Webhook Subscription\"],\"operation\":[\"getWebhookSubscriptionsWebhookSubscriptionIdEventsEventId\"]}},\n },\n {\n displayName: \"Event ID\",\n name: \"getWebhookSubscriptionsWebhookSubscriptionIdEventsEventId_eventId\",\n type: \"resourceLocator\",\n default: {\"mode\":\"list\",\"value\":\"\"},\n required: true,\n modes: [{\"displayName\":\"List\",\"name\":\"list\",\"type\":\"list\",\"typeOptions\":{\"searchListMethod\":\"searchGetWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdEventId\",\"searchable\":true}},{\"displayName\":\"ID\",\"name\":\"id\",\"type\":\"string\",\"placeholder\":\"e.g. 12345\"}],\n displayOptions: {\"show\":{\"resource\":[\"Webhook Subscription\"],\"operation\":[\"getWebhookSubscriptionsWebhookSubscriptionIdEventsEventId\"]}},\n },\n {\n displayName: 'Additional Query Parameters',\n name: 'additionalQueryParameters',\n type: 'fixedCollection',\n default: {},\n placeholder: 'Add Parameter',\n typeOptions: { multipleValues: true },\n displayOptions: {\"show\":{\"resource\":[\"Webhook Subscription\"],\"operation\":[\"getWebhookSubscriptionsWebhookSubscriptionIdEventsEventId\"]}},\n options: [{\n displayName: 'Parameter',\n name: 'parameters',\n values: [\n { displayName: 'Name', name: 'name', type: 'string', default: '' },\n { displayName: 'Value', name: 'value', type: 'string', default: '' },\n ],\n }],\n },\n {\n displayName: \"Webhook Subscription ID\",\n name: \"getWebhookSubscriptionsWebhookSubscriptionId_webhookSubscriptionId\",\n type: \"resourceLocator\",\n default: {\"mode\":\"list\",\"value\":\"\"},\n required: true,\n modes: [{\"displayName\":\"List\",\"name\":\"list\",\"type\":\"list\",\"typeOptions\":{\"searchListMethod\":\"searchGetWebhookSubscriptionsWebhookSubscriptionIdWebhookSubscriptionId\",\"searchable\":true}},{\"displayName\":\"ID\",\"name\":\"id\",\"type\":\"string\",\"placeholder\":\"e.g. 12345\"}],\n displayOptions: {\"show\":{\"resource\":[\"Webhook Subscription\"],\"operation\":[\"getWebhookSubscriptionsWebhookSubscriptionId\"]}},\n },\n {\n displayName: 'Additional Query Parameters',\n name: 'additionalQueryParameters',\n type: 'fixedCollection',\n default: {},\n placeholder: 'Add Parameter',\n typeOptions: { multipleValues: true },\n displayOptions: {\"show\":{\"resource\":[\"Webhook Subscription\"],\"operation\":[\"getWebhookSubscriptionsWebhookSubscriptionId\"]}},\n options: [{\n displayName: 'Parameter',\n name: 'parameters',\n values: [\n { displayName: 'Name', name: 'name', type: 'string', default: '' },\n { displayName: 'Value', name: 'value', type: 'string', default: '' },\n ],\n }],\n },\n {\n displayName: \"Webhook Subscription ID\",\n name: \"postWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdIgnore_webhookSubscriptionId\",\n type: \"resourceLocator\",\n default: {\"mode\":\"list\",\"value\":\"\"},\n required: true,\n modes: [{\"displayName\":\"List\",\"name\":\"list\",\"type\":\"list\",\"typeOptions\":{\"searchListMethod\":\"searchPostWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdIgnoreWebhookSubscriptionId\",\"searchable\":true}},{\"displayName\":\"ID\",\"name\":\"id\",\"type\":\"string\",\"placeholder\":\"e.g. 12345\"}],\n displayOptions: {\"show\":{\"resource\":[\"Webhook Subscription\"],\"operation\":[\"postWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdIgnore\"]}},\n },\n {\n displayName: \"Event ID\",\n name: \"postWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdIgnore_eventId\",\n type: \"resourceLocator\",\n default: {\"mode\":\"list\",\"value\":\"\"},\n required: true,\n modes: [{\"displayName\":\"List\",\"name\":\"list\",\"type\":\"list\",\"typeOptions\":{\"searchListMethod\":\"searchPostWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdIgnoreEventId\",\"searchable\":true}},{\"displayName\":\"ID\",\"name\":\"id\",\"type\":\"string\",\"placeholder\":\"e.g. 12345\"}],\n displayOptions: {\"show\":{\"resource\":[\"Webhook Subscription\"],\"operation\":[\"postWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdIgnore\"]}},\n },\n {\n displayName: 'Body Mode',\n name: 'bodyMode',\n type: 'options',\n options: [{\"name\":\"Fields\",\"value\":\"fields\"},{\"name\":\"Raw JSON\",\"value\":\"rawJson\"}],\n default: 'fields',\n displayOptions: {\"show\":{\"resource\":[\"Webhook Subscription\"],\"operation\":[\"postWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdIgnore\"]}},\n },\n {\n displayName: 'Raw JSON Body',\n name: 'rawJsonBody',\n type: 'json',\n default: '{}',\n displayOptions: {\"show\":{\"resource\":[\"Webhook Subscription\"],\"operation\":[\"postWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdIgnore\"],\"bodyMode\":[\"rawJson\"]}},\n },\n {\n displayName: 'Additional Query Parameters',\n name: 'additionalQueryParameters',\n type: 'fixedCollection',\n default: {},\n placeholder: 'Add Parameter',\n typeOptions: { multipleValues: true },\n displayOptions: {\"show\":{\"resource\":[\"Webhook Subscription\"],\"operation\":[\"postWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdIgnore\"]}},\n options: [{\n displayName: 'Parameter',\n name: 'parameters',\n values: [\n { displayName: 'Name', name: 'name', type: 'string', default: '' },\n { displayName: 'Value', name: 'value', type: 'string', default: '' },\n ],\n }],\n },\n {\n displayName: \"Webhook Subscription ID\",\n name: \"postWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdRedeliver_webhookSubscriptionId\",\n type: \"resourceLocator\",\n default: {\"mode\":\"list\",\"value\":\"\"},\n required: true,\n modes: [{\"displayName\":\"List\",\"name\":\"list\",\"type\":\"list\",\"typeOptions\":{\"searchListMethod\":\"searchPostWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdRedeliverWebhookSubscriptionId\",\"searchable\":true}},{\"displayName\":\"ID\",\"name\":\"id\",\"type\":\"string\",\"placeholder\":\"e.g. 12345\"}],\n displayOptions: {\"show\":{\"resource\":[\"Webhook Subscription\"],\"operation\":[\"postWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdRedeliver\"]}},\n },\n {\n displayName: \"Event ID\",\n name: \"postWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdRedeliver_eventId\",\n type: \"resourceLocator\",\n default: {\"mode\":\"list\",\"value\":\"\"},\n required: true,\n modes: [{\"displayName\":\"List\",\"name\":\"list\",\"type\":\"list\",\"typeOptions\":{\"searchListMethod\":\"searchPostWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdRedeliverEventId\",\"searchable\":true}},{\"displayName\":\"ID\",\"name\":\"id\",\"type\":\"string\",\"placeholder\":\"e.g. 12345\"}],\n displayOptions: {\"show\":{\"resource\":[\"Webhook Subscription\"],\"operation\":[\"postWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdRedeliver\"]}},\n },\n {\n displayName: 'Body Mode',\n name: 'bodyMode',\n type: 'options',\n options: [{\"name\":\"Fields\",\"value\":\"fields\"},{\"name\":\"Raw JSON\",\"value\":\"rawJson\"}],\n default: 'fields',\n displayOptions: {\"show\":{\"resource\":[\"Webhook Subscription\"],\"operation\":[\"postWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdRedeliver\"]}},\n },\n {\n displayName: 'Raw JSON Body',\n name: 'rawJsonBody',\n type: 'json',\n default: '{}',\n displayOptions: {\"show\":{\"resource\":[\"Webhook Subscription\"],\"operation\":[\"postWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdRedeliver\"],\"bodyMode\":[\"rawJson\"]}},\n },\n {\n displayName: 'Additional Query Parameters',\n name: 'additionalQueryParameters',\n type: 'fixedCollection',\n default: {},\n placeholder: 'Add Parameter',\n typeOptions: { multipleValues: true },\n displayOptions: {\"show\":{\"resource\":[\"Webhook Subscription\"],\"operation\":[\"postWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdRedeliver\"]}},\n options: [{\n displayName: 'Parameter',\n name: 'parameters',\n values: [\n { displayName: 'Name', name: 'name', type: 'string', default: '' },\n { displayName: 'Value', name: 'value', type: 'string', default: '' },\n ],\n }],\n },\n {\n displayName: \"Webhook Subscription ID\",\n name: \"postWebhookSubscriptionsWebhookSubscriptionIdRotateSecret_webhookSubscriptionId\",\n type: \"resourceLocator\",\n default: {\"mode\":\"list\",\"value\":\"\"},\n required: true,\n modes: [{\"displayName\":\"List\",\"name\":\"list\",\"type\":\"list\",\"typeOptions\":{\"searchListMethod\":\"searchPostWebhookSubscriptionsWebhookSubscriptionIdRotateSecretWebhookSubscriptionId\",\"searchable\":true}},{\"displayName\":\"ID\",\"name\":\"id\",\"type\":\"string\",\"placeholder\":\"e.g. 12345\"}],\n displayOptions: {\"show\":{\"resource\":[\"Webhook Subscription\"],\"operation\":[\"postWebhookSubscriptionsWebhookSubscriptionIdRotateSecret\"]}},\n },\n {\n displayName: 'Body Mode',\n name: 'bodyMode',\n type: 'options',\n options: [{\"name\":\"Fields\",\"value\":\"fields\"},{\"name\":\"Raw JSON\",\"value\":\"rawJson\"}],\n default: 'fields',\n displayOptions: {\"show\":{\"resource\":[\"Webhook Subscription\"],\"operation\":[\"postWebhookSubscriptionsWebhookSubscriptionIdRotateSecret\"]}},\n },\n {\n displayName: 'Raw JSON Body',\n name: 'rawJsonBody',\n type: 'json',\n default: '{}',\n displayOptions: {\"show\":{\"resource\":[\"Webhook Subscription\"],\"operation\":[\"postWebhookSubscriptionsWebhookSubscriptionIdRotateSecret\"],\"bodyMode\":[\"rawJson\"]}},\n },\n {\n displayName: 'Additional Query Parameters',\n name: 'additionalQueryParameters',\n type: 'fixedCollection',\n default: {},\n placeholder: 'Add Parameter',\n typeOptions: { multipleValues: true },\n displayOptions: {\"show\":{\"resource\":[\"Webhook Subscription\"],\"operation\":[\"postWebhookSubscriptionsWebhookSubscriptionIdRotateSecret\"]}},\n options: [{\n displayName: 'Parameter',\n name: 'parameters',\n values: [\n { displayName: 'Name', name: 'name', type: 'string', default: '' },\n { displayName: 'Value', name: 'value', type: 'string', default: '' },\n ],\n }],\n },\n {\n displayName: 'Body Mode',\n name: 'bodyMode',\n type: 'options',\n options: [{\"name\":\"Fields\",\"value\":\"fields\"},{\"name\":\"Raw JSON\",\"value\":\"rawJson\"}],\n default: 'fields',\n displayOptions: {\"show\":{\"resource\":[\"Webhook Subscription\"],\"operation\":[\"postWebhookSubscriptions\"]}},\n },\n {\n displayName: \"Attribute: Name\",\n name: \"postWebhookSubscriptions_name\",\n type: \"string\",\n default: '',\n required: false,\n displayOptions: {\"show\":{\"resource\":[\"Webhook Subscription\"],\"operation\":[\"postWebhookSubscriptions\"],\"bodyMode\":[\"fields\"]}},\n },\n {\n displayName: \"Attribute: Url\",\n name: \"postWebhookSubscriptions_url\",\n type: \"string\",\n default: '',\n required: false,\n displayOptions: {\"show\":{\"resource\":[\"Webhook Subscription\"],\"operation\":[\"postWebhookSubscriptions\"],\"bodyMode\":[\"fields\"]}},\n },\n {\n displayName: \"Attribute: Active\",\n name: \"postWebhookSubscriptions_active\",\n type: \"boolean\",\n default: false,\n required: false,\n displayOptions: {\"show\":{\"resource\":[\"Webhook Subscription\"],\"operation\":[\"postWebhookSubscriptions\"],\"bodyMode\":[\"fields\"]}},\n },\n {\n displayName: 'Raw JSON Body',\n name: 'rawJsonBody',\n type: 'json',\n default: '{}',\n displayOptions: {\"show\":{\"resource\":[\"Webhook Subscription\"],\"operation\":[\"postWebhookSubscriptions\"],\"bodyMode\":[\"rawJson\"]}},\n },\n {\n displayName: 'Additional Query Parameters',\n name: 'additionalQueryParameters',\n type: 'fixedCollection',\n default: {},\n placeholder: 'Add Parameter',\n typeOptions: { multipleValues: true },\n displayOptions: {\"show\":{\"resource\":[\"Webhook Subscription\"],\"operation\":[\"postWebhookSubscriptions\"]}},\n options: [{\n displayName: 'Parameter',\n name: 'parameters',\n values: [\n { displayName: 'Name', name: 'name', type: 'string', default: '' },\n { displayName: 'Value', name: 'value', type: 'string', default: '' },\n ],\n }],\n },\n {\n displayName: \"Webhook Subscription ID\",\n name: \"patchWebhookSubscriptionsWebhookSubscriptionId_webhookSubscriptionId\",\n type: \"resourceLocator\",\n default: {\"mode\":\"list\",\"value\":\"\"},\n required: true,\n modes: [{\"displayName\":\"List\",\"name\":\"list\",\"type\":\"list\",\"typeOptions\":{\"searchListMethod\":\"searchPatchWebhookSubscriptionsWebhookSubscriptionIdWebhookSubscriptionId\",\"searchable\":true}},{\"displayName\":\"ID\",\"name\":\"id\",\"type\":\"string\",\"placeholder\":\"e.g. 12345\"}],\n displayOptions: {\"show\":{\"resource\":[\"Webhook Subscription\"],\"operation\":[\"patchWebhookSubscriptionsWebhookSubscriptionId\"]}},\n },\n {\n displayName: 'Body Mode',\n name: 'bodyMode',\n type: 'options',\n options: [{\"name\":\"Fields\",\"value\":\"fields\"},{\"name\":\"Raw JSON\",\"value\":\"rawJson\"}],\n default: 'fields',\n displayOptions: {\"show\":{\"resource\":[\"Webhook Subscription\"],\"operation\":[\"patchWebhookSubscriptionsWebhookSubscriptionId\"]}},\n },\n {\n displayName: \"Attribute: Active\",\n name: \"patchWebhookSubscriptionsWebhookSubscriptionId_active\",\n type: \"boolean\",\n default: false,\n required: false,\n displayOptions: {\"show\":{\"resource\":[\"Webhook Subscription\"],\"operation\":[\"patchWebhookSubscriptionsWebhookSubscriptionId\"],\"bodyMode\":[\"fields\"]}},\n },\n {\n displayName: 'Raw JSON Body',\n name: 'rawJsonBody',\n type: 'json',\n default: '{}',\n displayOptions: {\"show\":{\"resource\":[\"Webhook Subscription\"],\"operation\":[\"patchWebhookSubscriptionsWebhookSubscriptionId\"],\"bodyMode\":[\"rawJson\"]}},\n },\n {\n displayName: 'Additional Query Parameters',\n name: 'additionalQueryParameters',\n type: 'fixedCollection',\n default: {},\n placeholder: 'Add Parameter',\n typeOptions: { multipleValues: true },\n displayOptions: {\"show\":{\"resource\":[\"Webhook Subscription\"],\"operation\":[\"patchWebhookSubscriptionsWebhookSubscriptionId\"]}},\n options: [{\n displayName: 'Parameter',\n name: 'parameters',\n values: [\n { displayName: 'Name', name: 'name', type: 'string', default: '' },\n { displayName: 'Value', name: 'value', type: 'string', default: '' },\n ],\n }],\n },\n {\n displayName: \"Webhook Subscription ID\",\n name: \"deleteWebhookSubscriptionsWebhookSubscriptionId_webhookSubscriptionId\",\n type: \"resourceLocator\",\n default: {\"mode\":\"list\",\"value\":\"\"},\n required: true,\n modes: [{\"displayName\":\"List\",\"name\":\"list\",\"type\":\"list\",\"typeOptions\":{\"searchListMethod\":\"searchDeleteWebhookSubscriptionsWebhookSubscriptionIdWebhookSubscriptionId\",\"searchable\":true}},{\"displayName\":\"ID\",\"name\":\"id\",\"type\":\"string\",\"placeholder\":\"e.g. 12345\"}],\n displayOptions: {\"show\":{\"resource\":[\"Webhook Subscription\"],\"operation\":[\"deleteWebhookSubscriptionsWebhookSubscriptionId\"]}},\n },\n {\n displayName: 'Additional Query Parameters',\n name: 'additionalQueryParameters',\n type: 'fixedCollection',\n default: {},\n placeholder: 'Add Parameter',\n typeOptions: { multipleValues: true },\n displayOptions: {\"show\":{\"resource\":[\"Webhook Subscription\"],\"operation\":[\"deleteWebhookSubscriptionsWebhookSubscriptionId\"]}},\n options: [{\n displayName: 'Parameter',\n name: 'parameters',\n values: [\n { displayName: 'Name', name: 'name', type: 'string', default: '' },\n { displayName: 'Value', name: 'value', type: 'string', default: '' },\n ],\n }],\n },\n ]")();
1084
+ function lookupResultName(item, lookup) {
1085
+ const id = item?.id === undefined || item?.id === null ? '' : String(item.id);
1086
+ const attributes = item?.attributes && typeof item.attributes === 'object' ? item.attributes : {};
1087
+ const display = lookup.labelFields
1088
+ .map((field) => {
1089
+ const values = field.split(' ').map((part) => attributes[part]);
1090
+ if (values.some((value) => typeof value !== 'string' || !value.trim()))
1091
+ return '';
1092
+ return values.map((value) => String(value).trim()).join(' ');
1093
+ })
1094
+ .find((value) => value.trim());
1095
+ return display ? String(display) + ' (' + id + ')' : id;
1096
+ }
1097
+ function lookupPath(context, lookup) {
1098
+ let path = lookup.sourcePath;
1099
+ for (const binding of lookup.parentBindings) {
1100
+ const id = (0, resourceLocator_1.extractResourceLocatorId)(context.getNodeParameter(binding.fieldName, ''));
1101
+ if (!id)
1102
+ return undefined;
1103
+ path = path.replace('{' + binding.sourceName + '}', encodeURIComponent(id));
1104
+ }
1105
+ return path;
1106
+ }
1107
+ async function requestLookup(context, path, qs) {
1108
+ const response = await request_1.planningCenterApiRequest.call(context, { method: 'GET', path, qs });
1109
+ return Array.isArray(response?.data) ? response.data : [];
1110
+ }
1111
+ function lookupResults(dataSets, lookup) {
1112
+ const seen = new Set();
1113
+ const results = [];
1114
+ for (const data of dataSets) {
1115
+ for (const item of data) {
1116
+ const value = item?.id === undefined || item?.id === null ? '' : String(item.id);
1117
+ if (!value || seen.has(value))
1118
+ continue;
1119
+ seen.add(value);
1120
+ results.push({ name: lookupResultName(item, lookup), value });
1121
+ if (results.length >= lookup.resultLimit)
1122
+ return { results };
1123
+ }
1124
+ }
1125
+ return { results };
1126
+ }
1127
+ function splitNameRequests(lookup, filter) {
1128
+ const terms = filter.trim().split(/\s+/).filter(Boolean);
1129
+ const splitNameSearch = lookup.splitNameSearch;
1130
+ if (!terms.length || !splitNameSearch)
1131
+ return [];
1132
+ return [
1133
+ { per_page: lookup.resultLimit, [splitNameSearch.firstNameFilter]: terms[0] },
1134
+ { per_page: lookup.resultLimit, [splitNameSearch.lastNameFilter]: terms[terms.length - 1] },
1135
+ ];
1136
+ }
1137
+ async function searchLookup(context, lookup, filter) {
1138
+ const path = lookupPath(context, lookup);
1139
+ if (!path)
1140
+ return { results: [] };
1141
+ const trimmedFilter = filter?.trim() ?? '';
1142
+ let requests = [{ per_page: lookup.resultLimit }];
1143
+ if (trimmedFilter && lookup.searchFilter) {
1144
+ requests = [{ per_page: lookup.resultLimit, [lookup.searchFilter]: trimmedFilter }];
1145
+ }
1146
+ else if (trimmedFilter && lookup.splitNameSearch) {
1147
+ requests = splitNameRequests(lookup, trimmedFilter);
1148
+ }
1149
+ const dataSets = await Promise.all(requests.map((qs) => requestLookup(context, path, qs)));
1150
+ return lookupResults(dataSets, lookup);
1151
+ }
1152
+ function addAdditionalQuery(context, itemIndex, operation, qs) {
1153
+ const additional = context.getNodeParameter('additionalQueryParameters', itemIndex, {});
1154
+ for (const parameter of additional.parameters ?? []) {
1155
+ if (parameter.name) {
1156
+ qs[parameter.name] = parameter.value;
1157
+ }
1158
+ }
1159
+ }
1160
+ function queryOptionSelections(groupOptions, optionName) {
1161
+ const selected = groupOptions[optionName];
1162
+ if (Array.isArray(selected))
1163
+ return selected;
1164
+ return selected ? [selected] : [];
1165
+ }
1166
+ function addQueryStringValue(qs, sourceName, value) {
1167
+ if (qs[sourceName] === undefined) {
1168
+ qs[sourceName] = value;
1169
+ return;
1170
+ }
1171
+ qs[sourceName] = String(qs[sourceName]) + ',' + String(value);
1172
+ }
1173
+ function addQueryOptions(context, itemIndex, operation, qs) {
1174
+ for (const option of operation.queryOptions) {
1175
+ const options = context.getNodeParameter(`${operation.id}_${option.group}`, itemIndex, {});
1176
+ for (const selected of queryOptionSelections(options, option.name)) {
1177
+ const value = option.lookup ? (0, resourceLocator_1.extractResourceLocatorId)(selected.value) : selected.value;
1178
+ if (value === undefined || value === '')
1179
+ continue;
1180
+ if (option.kind === 'operator') {
1181
+ const operator = option.operators?.find((candidate) => candidate.value === selected.operator) ?? option.operators?.[0];
1182
+ if (operator)
1183
+ addQueryStringValue(qs, operator.sourceName, value);
1184
+ continue;
1185
+ }
1186
+ if (option.sourceName) {
1187
+ addQueryStringValue(qs, option.sourceName, value);
1188
+ }
1189
+ }
1190
+ }
1191
+ }
1192
+ function buildBody(context, itemIndex, operation) {
1193
+ if (!['POST', 'PUT', 'PATCH'].includes(operation.method))
1194
+ return undefined;
1195
+ const bodyMode = context.getNodeParameter('bodyMode', itemIndex, 'fields');
1196
+ if (bodyMode === 'rawJson') {
1197
+ return JSON.parse(context.getNodeParameter('rawJsonBody', itemIndex, '{}'));
1198
+ }
1199
+ const attributes = {};
1200
+ for (const field of operation.attributeFields) {
1201
+ const value = field.required
1202
+ ? context.getNodeParameter(`${operation.id}_${field.name}`, itemIndex)
1203
+ : context.getNodeParameter(`${operation.id}_${field.name}`, itemIndex, '');
1204
+ const attributeValue = field.lookup ? (0, resourceLocator_1.extractResourceLocatorId)(value) : value;
1205
+ if (attributeValue !== undefined && attributeValue !== '') {
1206
+ attributes[field.sourceName] = attributeValue;
1207
+ }
1208
+ }
1209
+ const relationships = {};
1210
+ for (const field of operation.relationshipFields) {
1211
+ const rawValue = context.getNodeParameter(`${operation.id}_${field.name}`, itemIndex, '');
1212
+ const value = field.lookup ? (0, resourceLocator_1.extractResourceLocatorId)(rawValue) : String(rawValue);
1213
+ if (!value)
1214
+ continue;
1215
+ const ids = field.multiple ? value.split(',').map((id) => id.trim()).filter(Boolean) : [value];
1216
+ relationships[field.relationshipName] = {
1217
+ data: field.multiple
1218
+ ? ids.map((id) => ({ type: field.relationshipType, id }))
1219
+ : { type: field.relationshipType, id: ids[0] },
1220
+ };
1221
+ }
1222
+ return {
1223
+ data: {
1224
+ type: operation.resource,
1225
+ ...(Object.keys(attributes).length ? { attributes } : {}),
1226
+ ...(Object.keys(relationships).length ? { relationships } : {}),
1227
+ },
1228
+ };
1229
+ }
1230
+ function buildPath(context, itemIndex, operation) {
1231
+ let path = operation.path;
1232
+ for (const parameter of operation.pathParameters) {
1233
+ const value = (0, resourceLocator_1.extractResourceLocatorId)(context.getNodeParameter(`${operation.id}_${parameter.name}`, itemIndex));
1234
+ path = path.replace(`{${parameter.sourceName}}`, encodeURIComponent(value));
1235
+ }
1236
+ return path;
1237
+ }
1238
+ async function executeOperation(context, itemIndex, operation) {
1239
+ const qs = {};
1240
+ addQueryOptions(context, itemIndex, operation, qs);
1241
+ addAdditionalQuery(context, itemIndex, operation, qs);
1242
+ const request = {
1243
+ method: operation.method,
1244
+ path: buildPath(context, itemIndex, operation),
1245
+ qs,
1246
+ body: buildBody(context, itemIndex, operation),
1247
+ };
1248
+ const data = operation.isList
1249
+ ? await pagination_1.collectPaginatedPlanningCenterResults.call(context, request, {
1250
+ returnAll: context.getNodeParameter(`${operation.id}_returnAll`, itemIndex, false),
1251
+ limit: context.getNodeParameter(`${operation.id}_limit`, itemIndex, 100),
1252
+ })
1253
+ : (0, jsonApi_1.normalizeJsonApiResponse)(await request_1.planningCenterApiRequest.call(context, request));
1254
+ return data.map((json) => ({ json, pairedItem: { item: itemIndex } }));
1255
+ }
1256
+ class PlanningCenterWebhooks {
1257
+ description = {
1258
+ displayName: "Planning Center Webhooks",
1259
+ name: "planningCenterWebhooks",
1260
+ icon: 'file:webhooks.svg',
1261
+ group: ['transform'],
1262
+ version: 1,
1263
+ subtitle: "={{({\"getAvailableEvents\":\"GET /available_events\",\"getWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveries\":\"GET /webhook_subscriptions/{webhook_subscription_id}/events/{event_id}/deliveries\",\"getWebhookSubscriptionsWebhookSubscriptionIdEvents\":\"GET /webhook_subscriptions/{webhook_subscription_id}/events\",\"getWebhookSubscriptions\":\"GET /webhook_subscriptions\",\"getWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveriesDeliveryId\":\"GET /webhook_subscriptions/{webhook_subscription_id}/events/{event_id}/deliveries/{delivery_id}\",\"getWebhookSubscriptionsWebhookSubscriptionIdEventsEventId\":\"GET /webhook_subscriptions/{webhook_subscription_id}/events/{event_id}\",\"getWebhookSubscriptionsWebhookSubscriptionId\":\"GET /webhook_subscriptions/{webhook_subscription_id}\",\"postWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdIgnore\":\"POST /webhook_subscriptions/{webhook_subscription_id}/events/{event_id}/ignore\",\"postWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdRedeliver\":\"POST /webhook_subscriptions/{webhook_subscription_id}/events/{event_id}/redeliver\",\"postWebhookSubscriptionsWebhookSubscriptionIdRotateSecret\":\"POST /webhook_subscriptions/{webhook_subscription_id}/rotate_secret\",\"postWebhookSubscriptions\":\"POST /webhook_subscriptions\",\"patchWebhookSubscriptionsWebhookSubscriptionId\":\"PATCH /webhook_subscriptions/{webhook_subscription_id}\",\"deleteWebhookSubscriptionsWebhookSubscriptionId\":\"DELETE /webhook_subscriptions/{webhook_subscription_id}\"})[$parameter[\"operation\"]] || $parameter[\"operation\"]}}",
1264
+ description: "Planning Center Webhooks generated from the Planning Center OpenAPI snapshot.",
1265
+ defaults: {
1266
+ name: "Planning Center Webhooks",
1267
+ },
1268
+ inputs: ['main'],
1269
+ outputs: ['main'],
1270
+ credentials: [
1271
+ {
1272
+ name: 'planningCenterPatApi',
1273
+ required: true,
1274
+ },
1275
+ ],
1276
+ properties: NODE_PROPERTIES,
1277
+ };
1278
+ methods = {
1279
+ listSearch: {
1280
+ searchDeleteWebhookSubscriptionsWebhookSubscriptionIdWebhookSubscriptionId: async function (filter) {
1281
+ return searchLookup(this, LOOKUP_SOURCES["searchDeleteWebhookSubscriptionsWebhookSubscriptionIdWebhookSubscriptionId"], filter);
1282
+ },
1283
+ searchGetWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveriesDeliveryIdDeliveryId: async function (filter) {
1284
+ return searchLookup(this, LOOKUP_SOURCES["searchGetWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveriesDeliveryIdDeliveryId"], filter);
1285
+ },
1286
+ searchGetWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveriesDeliveryIdEventId: async function (filter) {
1287
+ return searchLookup(this, LOOKUP_SOURCES["searchGetWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveriesDeliveryIdEventId"], filter);
1288
+ },
1289
+ searchGetWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveriesDeliveryIdWebhookSubscriptionId: async function (filter) {
1290
+ return searchLookup(this, LOOKUP_SOURCES["searchGetWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveriesDeliveryIdWebhookSubscriptionId"], filter);
1291
+ },
1292
+ searchGetWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveriesEventId: async function (filter) {
1293
+ return searchLookup(this, LOOKUP_SOURCES["searchGetWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveriesEventId"], filter);
1294
+ },
1295
+ searchGetWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveriesWebhookSubscriptionId: async function (filter) {
1296
+ return searchLookup(this, LOOKUP_SOURCES["searchGetWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdDeliveriesWebhookSubscriptionId"], filter);
1297
+ },
1298
+ searchGetWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdEventId: async function (filter) {
1299
+ return searchLookup(this, LOOKUP_SOURCES["searchGetWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdEventId"], filter);
1300
+ },
1301
+ searchGetWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdWebhookSubscriptionId: async function (filter) {
1302
+ return searchLookup(this, LOOKUP_SOURCES["searchGetWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdWebhookSubscriptionId"], filter);
1303
+ },
1304
+ searchGetWebhookSubscriptionsWebhookSubscriptionIdEventsWebhookSubscriptionId: async function (filter) {
1305
+ return searchLookup(this, LOOKUP_SOURCES["searchGetWebhookSubscriptionsWebhookSubscriptionIdEventsWebhookSubscriptionId"], filter);
1306
+ },
1307
+ searchGetWebhookSubscriptionsWebhookSubscriptionIdWebhookSubscriptionId: async function (filter) {
1308
+ return searchLookup(this, LOOKUP_SOURCES["searchGetWebhookSubscriptionsWebhookSubscriptionIdWebhookSubscriptionId"], filter);
1309
+ },
1310
+ searchPatchWebhookSubscriptionsWebhookSubscriptionIdWebhookSubscriptionId: async function (filter) {
1311
+ return searchLookup(this, LOOKUP_SOURCES["searchPatchWebhookSubscriptionsWebhookSubscriptionIdWebhookSubscriptionId"], filter);
1312
+ },
1313
+ searchPostWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdIgnoreEventId: async function (filter) {
1314
+ return searchLookup(this, LOOKUP_SOURCES["searchPostWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdIgnoreEventId"], filter);
1315
+ },
1316
+ searchPostWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdIgnoreWebhookSubscriptionId: async function (filter) {
1317
+ return searchLookup(this, LOOKUP_SOURCES["searchPostWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdIgnoreWebhookSubscriptionId"], filter);
1318
+ },
1319
+ searchPostWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdRedeliverEventId: async function (filter) {
1320
+ return searchLookup(this, LOOKUP_SOURCES["searchPostWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdRedeliverEventId"], filter);
1321
+ },
1322
+ searchPostWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdRedeliverWebhookSubscriptionId: async function (filter) {
1323
+ return searchLookup(this, LOOKUP_SOURCES["searchPostWebhookSubscriptionsWebhookSubscriptionIdEventsEventIdRedeliverWebhookSubscriptionId"], filter);
1324
+ },
1325
+ searchPostWebhookSubscriptionsWebhookSubscriptionIdRotateSecretWebhookSubscriptionId: async function (filter) {
1326
+ return searchLookup(this, LOOKUP_SOURCES["searchPostWebhookSubscriptionsWebhookSubscriptionIdRotateSecretWebhookSubscriptionId"], filter);
1327
+ },
1328
+ },
1329
+ };
1330
+ async execute() {
1331
+ const items = this.getInputData();
1332
+ const returnData = [];
1333
+ for (let itemIndex = 0; itemIndex < items.length; itemIndex += 1) {
1334
+ const resource = this.getNodeParameter('resource', itemIndex);
1335
+ const operationId = this.getNodeParameter('operation', itemIndex);
1336
+ const operation = OPERATIONS.find((candidate) => candidate.resource === resource && candidate.id === operationId);
1337
+ if (!operation) {
1338
+ throw new Error(`Unsupported Planning Center Webhooks operation: ${resource}.${operationId}`);
1339
+ }
1340
+ returnData.push(...(await (0, execute_1.executeItemWithContinueOnFail)(this, itemIndex, () => executeOperation(this, itemIndex, operation))));
1341
+ }
1342
+ return [returnData];
1343
+ }
1344
+ }
1345
+ exports.PlanningCenterWebhooks = PlanningCenterWebhooks;
1346
+ //# sourceMappingURL=PlanningCenterWebhooks.node.js.map