@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.
- package/LICENSE.md +21 -0
- package/README.md +79 -0
- package/dist/credentials/PlanningCenterPatApi.credentials.d.ts +9 -0
- package/dist/credentials/PlanningCenterPatApi.credentials.js +84 -0
- package/dist/credentials/PlanningCenterPatApi.credentials.js.map +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +28 -0
- package/dist/index.js.map +1 -0
- package/dist/nodes/assets/api.svg +4 -0
- package/dist/nodes/assets/calendar.svg +4 -0
- package/dist/nodes/assets/check-ins.svg +4 -0
- package/dist/nodes/assets/current.svg +4 -0
- package/dist/nodes/assets/giving.svg +4 -0
- package/dist/nodes/assets/groups.svg +4 -0
- package/dist/nodes/assets/pco.svg +4 -0
- package/dist/nodes/assets/people.svg +4 -0
- package/dist/nodes/assets/publishing.svg +4 -0
- package/dist/nodes/assets/registrations.svg +4 -0
- package/dist/nodes/assets/services.svg +4 -0
- package/dist/nodes/assets/webhooks.svg +4 -0
- package/dist/nodes/generated/api/PlanningCenterApi.node.d.ts +16 -0
- package/dist/nodes/generated/api/PlanningCenterApi.node.js +745 -0
- package/dist/nodes/generated/api/PlanningCenterApi.node.js.map +1 -0
- package/dist/nodes/generated/api/api.svg +4 -0
- package/dist/nodes/generated/api/pco.svg +4 -0
- package/dist/nodes/generated/calendar/PlanningCenterCalendar.node.d.ts +305 -0
- package/dist/nodes/generated/calendar/PlanningCenterCalendar.node.js +33813 -0
- package/dist/nodes/generated/calendar/PlanningCenterCalendar.node.js.map +1 -0
- package/dist/nodes/generated/calendar/calendar.svg +4 -0
- package/dist/nodes/generated/calendar/pco.svg +4 -0
- package/dist/nodes/generated/check-ins/PlanningCenterCheckIns.node.d.ts +308 -0
- package/dist/nodes/generated/check-ins/PlanningCenterCheckIns.node.js +29142 -0
- package/dist/nodes/generated/check-ins/PlanningCenterCheckIns.node.js.map +1 -0
- package/dist/nodes/generated/check-ins/check-ins.svg +4 -0
- package/dist/nodes/generated/check-ins/pco.svg +4 -0
- package/dist/nodes/generated/current/PlanningCenterCurrent.node.d.ts +13 -0
- package/dist/nodes/generated/current/PlanningCenterCurrent.node.js +564 -0
- package/dist/nodes/generated/current/PlanningCenterCurrent.node.js.map +1 -0
- package/dist/nodes/generated/current/current.svg +4 -0
- package/dist/nodes/generated/current/pco.svg +4 -0
- package/dist/nodes/generated/giving/PlanningCenterGiving.node.d.ts +308 -0
- package/dist/nodes/generated/giving/PlanningCenterGiving.node.js +25566 -0
- package/dist/nodes/generated/giving/PlanningCenterGiving.node.js.map +1 -0
- package/dist/nodes/generated/giving/giving.svg +4 -0
- package/dist/nodes/generated/giving/pco.svg +4 -0
- package/dist/nodes/generated/groups/PlanningCenterGroups.node.d.ts +189 -0
- package/dist/nodes/generated/groups/PlanningCenterGroups.node.js +15344 -0
- package/dist/nodes/generated/groups/PlanningCenterGroups.node.js.map +1 -0
- package/dist/nodes/generated/groups/groups.svg +4 -0
- package/dist/nodes/generated/groups/pco.svg +4 -0
- package/dist/nodes/generated/people/PlanningCenterPeople.node.d.ts +979 -0
- package/dist/nodes/generated/people/PlanningCenterPeople.node.js +102040 -0
- package/dist/nodes/generated/people/PlanningCenterPeople.node.js.map +1 -0
- package/dist/nodes/generated/people/pco.svg +4 -0
- package/dist/nodes/generated/people/people.svg +4 -0
- package/dist/nodes/generated/publishing/PlanningCenterPublishing.node.d.ts +130 -0
- package/dist/nodes/generated/publishing/PlanningCenterPublishing.node.js +10671 -0
- package/dist/nodes/generated/publishing/PlanningCenterPublishing.node.js.map +1 -0
- package/dist/nodes/generated/publishing/pco.svg +4 -0
- package/dist/nodes/generated/publishing/publishing.svg +4 -0
- package/dist/nodes/generated/registrations/PlanningCenterRegistrations.node.d.ts +55 -0
- package/dist/nodes/generated/registrations/PlanningCenterRegistrations.node.js +3640 -0
- package/dist/nodes/generated/registrations/PlanningCenterRegistrations.node.js.map +1 -0
- package/dist/nodes/generated/registrations/pco.svg +4 -0
- package/dist/nodes/generated/registrations/registrations.svg +4 -0
- package/dist/nodes/generated/services/PlanningCenterServices.node.d.ts +1032 -0
- package/dist/nodes/generated/services/PlanningCenterServices.node.js +82196 -0
- package/dist/nodes/generated/services/PlanningCenterServices.node.js.map +1 -0
- package/dist/nodes/generated/services/pco.svg +4 -0
- package/dist/nodes/generated/services/services.svg +4 -0
- package/dist/nodes/generated/webhooks/PlanningCenterWebhooks.node.d.ts +25 -0
- package/dist/nodes/generated/webhooks/PlanningCenterWebhooks.node.js +1346 -0
- package/dist/nodes/generated/webhooks/PlanningCenterWebhooks.node.js.map +1 -0
- package/dist/nodes/generated/webhooks/pco.svg +4 -0
- package/dist/nodes/generated/webhooks/webhooks.svg +4 -0
- package/dist/src/generator/checkGenerated.d.ts +1 -0
- package/dist/src/generator/checkGenerated.js +34 -0
- package/dist/src/generator/checkGenerated.js.map +1 -0
- package/dist/src/generator/config.d.ts +13 -0
- package/dist/src/generator/config.js +114 -0
- package/dist/src/generator/config.js.map +1 -0
- package/dist/src/generator/generate.d.ts +1 -0
- package/dist/src/generator/generate.js +26 -0
- package/dist/src/generator/generate.js.map +1 -0
- package/dist/src/generator/labels.d.ts +3 -0
- package/dist/src/generator/labels.js +23 -0
- package/dist/src/generator/labels.js.map +1 -0
- package/dist/src/generator/model.d.ts +81 -0
- package/dist/src/generator/model.js +3 -0
- package/dist/src/generator/model.js.map +1 -0
- package/dist/src/generator/openapi.d.ts +3 -0
- package/dist/src/generator/openapi.js +667 -0
- package/dist/src/generator/openapi.js.map +1 -0
- package/dist/src/generator/refreshSnapshots.d.ts +1 -0
- package/dist/src/generator/refreshSnapshots.js +28 -0
- package/dist/src/generator/refreshSnapshots.js.map +1 -0
- package/dist/src/generator/render.d.ts +3 -0
- package/dist/src/generator/render.js +580 -0
- package/dist/src/generator/render.js.map +1 -0
- package/dist/src/runtime/execute.d.ts +2 -0
- package/dist/src/runtime/execute.js +25 -0
- package/dist/src/runtime/execute.js.map +1 -0
- package/dist/src/runtime/jsonApi.d.ts +3 -0
- package/dist/src/runtime/jsonApi.js +43 -0
- package/dist/src/runtime/jsonApi.js.map +1 -0
- package/dist/src/runtime/pagination.d.ts +8 -0
- package/dist/src/runtime/pagination.js +68 -0
- package/dist/src/runtime/pagination.js.map +1 -0
- package/dist/src/runtime/request.d.ts +22 -0
- package/dist/src/runtime/request.js +93 -0
- package/dist/src/runtime/request.js.map +1 -0
- package/dist/src/runtime/resourceLocator.d.ts +1 -0
- package/dist/src/runtime/resourceLocator.js +15 -0
- package/dist/src/runtime/resourceLocator.js.map +1 -0
- package/dist/tests/generator.test.d.ts +1 -0
- package/dist/tests/generator.test.js +622 -0
- package/dist/tests/generator.test.js.map +1 -0
- package/dist/tests/metadata.test.d.ts +1 -0
- package/dist/tests/metadata.test.js +124 -0
- package/dist/tests/metadata.test.js.map +1 -0
- package/dist/tests/runtime.test.d.ts +1 -0
- package/dist/tests/runtime.test.js +181 -0
- package/dist/tests/runtime.test.js.map +1 -0
- package/package.json +80 -0
|
@@ -0,0 +1,745 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PlanningCenterApi = 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": "getConnectedApplications",
|
|
12
|
+
"resource": "Connected Application",
|
|
13
|
+
"operation": "List Connected Applications",
|
|
14
|
+
"description": "GET /connected_applications",
|
|
15
|
+
"method": "GET",
|
|
16
|
+
"path": "/api/v2/connected_applications",
|
|
17
|
+
"deprecated": false,
|
|
18
|
+
"isList": true,
|
|
19
|
+
"lookupTarget": "connected application",
|
|
20
|
+
"pathParameters": [],
|
|
21
|
+
"queryParameters": [],
|
|
22
|
+
"queryOptions": [],
|
|
23
|
+
"attributeFields": [],
|
|
24
|
+
"relationshipFields": []
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"id": "getConnectedApplicationsConnectedApplicationIdPeople",
|
|
28
|
+
"resource": "Connected Application",
|
|
29
|
+
"operation": "List People (via Connected Application)",
|
|
30
|
+
"description": "GET /connected_applications/{connected_application_id}/people",
|
|
31
|
+
"method": "GET",
|
|
32
|
+
"path": "/api/v2/connected_applications/{connected_application_id}/people",
|
|
33
|
+
"deprecated": false,
|
|
34
|
+
"isList": true,
|
|
35
|
+
"lookupTarget": "connected application person",
|
|
36
|
+
"pathParameters": [
|
|
37
|
+
{
|
|
38
|
+
"name": "connectedApplicationId",
|
|
39
|
+
"sourceName": "connected_application_id",
|
|
40
|
+
"displayName": "Connected Application ID",
|
|
41
|
+
"required": true,
|
|
42
|
+
"type": "string",
|
|
43
|
+
"lookup": {
|
|
44
|
+
"methodName": "searchGetConnectedApplicationsConnectedApplicationIdPeopleConnectedApplicationId",
|
|
45
|
+
"sourcePath": "/api/v2/connected_applications",
|
|
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
|
+
"queryParameters": [],
|
|
65
|
+
"queryOptions": [],
|
|
66
|
+
"attributeFields": [],
|
|
67
|
+
"relationshipFields": []
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"id": "getConnectedApplicationsConnectedApplicationId",
|
|
71
|
+
"resource": "Connected Application",
|
|
72
|
+
"operation": "Get Connected Application",
|
|
73
|
+
"description": "GET /connected_applications/{connected_application_id}",
|
|
74
|
+
"method": "GET",
|
|
75
|
+
"path": "/api/v2/connected_applications/{connected_application_id}",
|
|
76
|
+
"deprecated": false,
|
|
77
|
+
"isList": false,
|
|
78
|
+
"lookupTarget": "connected application",
|
|
79
|
+
"pathParameters": [
|
|
80
|
+
{
|
|
81
|
+
"name": "connectedApplicationId",
|
|
82
|
+
"sourceName": "connected_application_id",
|
|
83
|
+
"displayName": "Connected Application ID",
|
|
84
|
+
"required": true,
|
|
85
|
+
"type": "string",
|
|
86
|
+
"lookup": {
|
|
87
|
+
"methodName": "searchGetConnectedApplicationsConnectedApplicationIdConnectedApplicationId",
|
|
88
|
+
"sourcePath": "/api/v2/connected_applications",
|
|
89
|
+
"parentBindings": [],
|
|
90
|
+
"labelFields": [
|
|
91
|
+
"name",
|
|
92
|
+
"full_name",
|
|
93
|
+
"display_name",
|
|
94
|
+
"search_name",
|
|
95
|
+
"path_name",
|
|
96
|
+
"first_name last_name",
|
|
97
|
+
"given_name last_name",
|
|
98
|
+
"nickname last_name",
|
|
99
|
+
"title",
|
|
100
|
+
"subject",
|
|
101
|
+
"label"
|
|
102
|
+
],
|
|
103
|
+
"resultLimit": 25
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
],
|
|
107
|
+
"queryParameters": [],
|
|
108
|
+
"queryOptions": [],
|
|
109
|
+
"attributeFields": [],
|
|
110
|
+
"relationshipFields": []
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"id": "getConnectedApplicationsConnectedApplicationIdPeoplePersonId",
|
|
114
|
+
"resource": "Connected Application",
|
|
115
|
+
"operation": "Get Person (via Connected Application)",
|
|
116
|
+
"description": "GET /connected_applications/{connected_application_id}/people/{person_id}",
|
|
117
|
+
"method": "GET",
|
|
118
|
+
"path": "/api/v2/connected_applications/{connected_application_id}/people/{person_id}",
|
|
119
|
+
"deprecated": false,
|
|
120
|
+
"isList": false,
|
|
121
|
+
"lookupTarget": "connected application person",
|
|
122
|
+
"pathParameters": [
|
|
123
|
+
{
|
|
124
|
+
"name": "connectedApplicationId",
|
|
125
|
+
"sourceName": "connected_application_id",
|
|
126
|
+
"displayName": "Connected Application ID",
|
|
127
|
+
"required": true,
|
|
128
|
+
"type": "string",
|
|
129
|
+
"lookup": {
|
|
130
|
+
"methodName": "searchGetConnectedApplicationsConnectedApplicationIdPeoplePersonIdConnectedApplicationId",
|
|
131
|
+
"sourcePath": "/api/v2/connected_applications",
|
|
132
|
+
"parentBindings": [],
|
|
133
|
+
"labelFields": [
|
|
134
|
+
"name",
|
|
135
|
+
"full_name",
|
|
136
|
+
"display_name",
|
|
137
|
+
"search_name",
|
|
138
|
+
"path_name",
|
|
139
|
+
"first_name last_name",
|
|
140
|
+
"given_name last_name",
|
|
141
|
+
"nickname last_name",
|
|
142
|
+
"title",
|
|
143
|
+
"subject",
|
|
144
|
+
"label"
|
|
145
|
+
],
|
|
146
|
+
"resultLimit": 25
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"name": "personId",
|
|
151
|
+
"sourceName": "person_id",
|
|
152
|
+
"displayName": "Person ID",
|
|
153
|
+
"required": true,
|
|
154
|
+
"type": "string"
|
|
155
|
+
}
|
|
156
|
+
],
|
|
157
|
+
"queryParameters": [],
|
|
158
|
+
"queryOptions": [],
|
|
159
|
+
"attributeFields": [],
|
|
160
|
+
"relationshipFields": []
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"id": "getOauthApplicationsOauthApplicationIdMau",
|
|
164
|
+
"resource": "Oauth Application",
|
|
165
|
+
"operation": "List Mau (via Oauth Application)",
|
|
166
|
+
"description": "GET /oauth_applications/{oauth_application_id}/mau",
|
|
167
|
+
"method": "GET",
|
|
168
|
+
"path": "/api/v2/oauth_applications/{oauth_application_id}/mau",
|
|
169
|
+
"deprecated": false,
|
|
170
|
+
"isList": true,
|
|
171
|
+
"lookupTarget": "oauth application mau",
|
|
172
|
+
"pathParameters": [
|
|
173
|
+
{
|
|
174
|
+
"name": "oauthApplicationId",
|
|
175
|
+
"sourceName": "oauth_application_id",
|
|
176
|
+
"displayName": "Oauth Application ID",
|
|
177
|
+
"required": true,
|
|
178
|
+
"type": "string",
|
|
179
|
+
"lookup": {
|
|
180
|
+
"methodName": "searchGetOauthApplicationsOauthApplicationIdMauOauthApplicationId",
|
|
181
|
+
"sourcePath": "/api/v2/oauth_applications",
|
|
182
|
+
"parentBindings": [],
|
|
183
|
+
"labelFields": [
|
|
184
|
+
"name",
|
|
185
|
+
"full_name",
|
|
186
|
+
"display_name",
|
|
187
|
+
"search_name",
|
|
188
|
+
"path_name",
|
|
189
|
+
"first_name last_name",
|
|
190
|
+
"given_name last_name",
|
|
191
|
+
"nickname last_name",
|
|
192
|
+
"title",
|
|
193
|
+
"subject",
|
|
194
|
+
"label"
|
|
195
|
+
],
|
|
196
|
+
"resultLimit": 25
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
],
|
|
200
|
+
"queryParameters": [],
|
|
201
|
+
"queryOptions": [],
|
|
202
|
+
"attributeFields": [],
|
|
203
|
+
"relationshipFields": []
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"id": "getOauthApplications",
|
|
207
|
+
"resource": "Oauth Application",
|
|
208
|
+
"operation": "List Oauth Applications",
|
|
209
|
+
"description": "GET /oauth_applications",
|
|
210
|
+
"method": "GET",
|
|
211
|
+
"path": "/api/v2/oauth_applications",
|
|
212
|
+
"deprecated": false,
|
|
213
|
+
"isList": true,
|
|
214
|
+
"lookupTarget": "oauth application",
|
|
215
|
+
"pathParameters": [],
|
|
216
|
+
"queryParameters": [],
|
|
217
|
+
"queryOptions": [],
|
|
218
|
+
"attributeFields": [],
|
|
219
|
+
"relationshipFields": []
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"id": "getOauthApplicationsOauthApplicationIdMauMauId",
|
|
223
|
+
"resource": "Oauth Application",
|
|
224
|
+
"operation": "Get Mau (via Oauth Application)",
|
|
225
|
+
"description": "GET /oauth_applications/{oauth_application_id}/mau/{mau_id}",
|
|
226
|
+
"method": "GET",
|
|
227
|
+
"path": "/api/v2/oauth_applications/{oauth_application_id}/mau/{mau_id}",
|
|
228
|
+
"deprecated": false,
|
|
229
|
+
"isList": false,
|
|
230
|
+
"lookupTarget": "oauth application mau",
|
|
231
|
+
"pathParameters": [
|
|
232
|
+
{
|
|
233
|
+
"name": "oauthApplicationId",
|
|
234
|
+
"sourceName": "oauth_application_id",
|
|
235
|
+
"displayName": "Oauth Application ID",
|
|
236
|
+
"required": true,
|
|
237
|
+
"type": "string",
|
|
238
|
+
"lookup": {
|
|
239
|
+
"methodName": "searchGetOauthApplicationsOauthApplicationIdMauMauIdOauthApplicationId",
|
|
240
|
+
"sourcePath": "/api/v2/oauth_applications",
|
|
241
|
+
"parentBindings": [],
|
|
242
|
+
"labelFields": [
|
|
243
|
+
"name",
|
|
244
|
+
"full_name",
|
|
245
|
+
"display_name",
|
|
246
|
+
"search_name",
|
|
247
|
+
"path_name",
|
|
248
|
+
"first_name last_name",
|
|
249
|
+
"given_name last_name",
|
|
250
|
+
"nickname last_name",
|
|
251
|
+
"title",
|
|
252
|
+
"subject",
|
|
253
|
+
"label"
|
|
254
|
+
],
|
|
255
|
+
"resultLimit": 25
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"name": "mauId",
|
|
260
|
+
"sourceName": "mau_id",
|
|
261
|
+
"displayName": "Mau ID",
|
|
262
|
+
"required": true,
|
|
263
|
+
"type": "string"
|
|
264
|
+
}
|
|
265
|
+
],
|
|
266
|
+
"queryParameters": [],
|
|
267
|
+
"queryOptions": [],
|
|
268
|
+
"attributeFields": [],
|
|
269
|
+
"relationshipFields": []
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"id": "getOauthApplicationsOauthApplicationId",
|
|
273
|
+
"resource": "Oauth Application",
|
|
274
|
+
"operation": "Get Oauth Application",
|
|
275
|
+
"description": "GET /oauth_applications/{oauth_application_id}",
|
|
276
|
+
"method": "GET",
|
|
277
|
+
"path": "/api/v2/oauth_applications/{oauth_application_id}",
|
|
278
|
+
"deprecated": false,
|
|
279
|
+
"isList": false,
|
|
280
|
+
"lookupTarget": "oauth application",
|
|
281
|
+
"pathParameters": [
|
|
282
|
+
{
|
|
283
|
+
"name": "oauthApplicationId",
|
|
284
|
+
"sourceName": "oauth_application_id",
|
|
285
|
+
"displayName": "Oauth Application ID",
|
|
286
|
+
"required": true,
|
|
287
|
+
"type": "string",
|
|
288
|
+
"lookup": {
|
|
289
|
+
"methodName": "searchGetOauthApplicationsOauthApplicationIdOauthApplicationId",
|
|
290
|
+
"sourcePath": "/api/v2/oauth_applications",
|
|
291
|
+
"parentBindings": [],
|
|
292
|
+
"labelFields": [
|
|
293
|
+
"name",
|
|
294
|
+
"full_name",
|
|
295
|
+
"display_name",
|
|
296
|
+
"search_name",
|
|
297
|
+
"path_name",
|
|
298
|
+
"first_name last_name",
|
|
299
|
+
"given_name last_name",
|
|
300
|
+
"nickname last_name",
|
|
301
|
+
"title",
|
|
302
|
+
"subject",
|
|
303
|
+
"label"
|
|
304
|
+
],
|
|
305
|
+
"resultLimit": 25
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
],
|
|
309
|
+
"queryParameters": [],
|
|
310
|
+
"queryOptions": [],
|
|
311
|
+
"attributeFields": [],
|
|
312
|
+
"relationshipFields": []
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"id": "getPersonalAccessTokens",
|
|
316
|
+
"resource": "Personal Access Token",
|
|
317
|
+
"operation": "List Personal Access Tokens",
|
|
318
|
+
"description": "GET /personal_access_tokens",
|
|
319
|
+
"method": "GET",
|
|
320
|
+
"path": "/api/v2/personal_access_tokens",
|
|
321
|
+
"deprecated": false,
|
|
322
|
+
"isList": true,
|
|
323
|
+
"lookupTarget": "personal access token",
|
|
324
|
+
"pathParameters": [],
|
|
325
|
+
"queryParameters": [],
|
|
326
|
+
"queryOptions": [],
|
|
327
|
+
"attributeFields": [],
|
|
328
|
+
"relationshipFields": []
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
"id": "getPersonalAccessTokensPersonalAccessTokenId",
|
|
332
|
+
"resource": "Personal Access Token",
|
|
333
|
+
"operation": "Get Personal Access Token",
|
|
334
|
+
"description": "GET /personal_access_tokens/{personal_access_token_id}",
|
|
335
|
+
"method": "GET",
|
|
336
|
+
"path": "/api/v2/personal_access_tokens/{personal_access_token_id}",
|
|
337
|
+
"deprecated": false,
|
|
338
|
+
"isList": false,
|
|
339
|
+
"lookupTarget": "personal access token",
|
|
340
|
+
"pathParameters": [
|
|
341
|
+
{
|
|
342
|
+
"name": "personalAccessTokenId",
|
|
343
|
+
"sourceName": "personal_access_token_id",
|
|
344
|
+
"displayName": "Personal Access Token ID",
|
|
345
|
+
"required": true,
|
|
346
|
+
"type": "string",
|
|
347
|
+
"lookup": {
|
|
348
|
+
"methodName": "searchGetPersonalAccessTokensPersonalAccessTokenIdPersonalAccessTokenId",
|
|
349
|
+
"sourcePath": "/api/v2/personal_access_tokens",
|
|
350
|
+
"parentBindings": [],
|
|
351
|
+
"labelFields": [
|
|
352
|
+
"name",
|
|
353
|
+
"full_name",
|
|
354
|
+
"display_name",
|
|
355
|
+
"search_name",
|
|
356
|
+
"path_name",
|
|
357
|
+
"first_name last_name",
|
|
358
|
+
"given_name last_name",
|
|
359
|
+
"nickname last_name",
|
|
360
|
+
"title",
|
|
361
|
+
"subject",
|
|
362
|
+
"label"
|
|
363
|
+
],
|
|
364
|
+
"resultLimit": 25
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
],
|
|
368
|
+
"queryParameters": [],
|
|
369
|
+
"queryOptions": [],
|
|
370
|
+
"attributeFields": [],
|
|
371
|
+
"relationshipFields": []
|
|
372
|
+
}
|
|
373
|
+
];
|
|
374
|
+
const LOOKUP_SOURCES = {
|
|
375
|
+
"searchGetConnectedApplicationsConnectedApplicationIdConnectedApplicationId": {
|
|
376
|
+
"methodName": "searchGetConnectedApplicationsConnectedApplicationIdConnectedApplicationId",
|
|
377
|
+
"sourcePath": "/api/v2/connected_applications",
|
|
378
|
+
"parentBindings": [],
|
|
379
|
+
"labelFields": [
|
|
380
|
+
"name",
|
|
381
|
+
"full_name",
|
|
382
|
+
"display_name",
|
|
383
|
+
"search_name",
|
|
384
|
+
"path_name",
|
|
385
|
+
"first_name last_name",
|
|
386
|
+
"given_name last_name",
|
|
387
|
+
"nickname last_name",
|
|
388
|
+
"title",
|
|
389
|
+
"subject",
|
|
390
|
+
"label"
|
|
391
|
+
],
|
|
392
|
+
"resultLimit": 25
|
|
393
|
+
},
|
|
394
|
+
"searchGetConnectedApplicationsConnectedApplicationIdPeopleConnectedApplicationId": {
|
|
395
|
+
"methodName": "searchGetConnectedApplicationsConnectedApplicationIdPeopleConnectedApplicationId",
|
|
396
|
+
"sourcePath": "/api/v2/connected_applications",
|
|
397
|
+
"parentBindings": [],
|
|
398
|
+
"labelFields": [
|
|
399
|
+
"name",
|
|
400
|
+
"full_name",
|
|
401
|
+
"display_name",
|
|
402
|
+
"search_name",
|
|
403
|
+
"path_name",
|
|
404
|
+
"first_name last_name",
|
|
405
|
+
"given_name last_name",
|
|
406
|
+
"nickname last_name",
|
|
407
|
+
"title",
|
|
408
|
+
"subject",
|
|
409
|
+
"label"
|
|
410
|
+
],
|
|
411
|
+
"resultLimit": 25
|
|
412
|
+
},
|
|
413
|
+
"searchGetConnectedApplicationsConnectedApplicationIdPeoplePersonIdConnectedApplicationId": {
|
|
414
|
+
"methodName": "searchGetConnectedApplicationsConnectedApplicationIdPeoplePersonIdConnectedApplicationId",
|
|
415
|
+
"sourcePath": "/api/v2/connected_applications",
|
|
416
|
+
"parentBindings": [],
|
|
417
|
+
"labelFields": [
|
|
418
|
+
"name",
|
|
419
|
+
"full_name",
|
|
420
|
+
"display_name",
|
|
421
|
+
"search_name",
|
|
422
|
+
"path_name",
|
|
423
|
+
"first_name last_name",
|
|
424
|
+
"given_name last_name",
|
|
425
|
+
"nickname last_name",
|
|
426
|
+
"title",
|
|
427
|
+
"subject",
|
|
428
|
+
"label"
|
|
429
|
+
],
|
|
430
|
+
"resultLimit": 25
|
|
431
|
+
},
|
|
432
|
+
"searchGetOauthApplicationsOauthApplicationIdMauMauIdOauthApplicationId": {
|
|
433
|
+
"methodName": "searchGetOauthApplicationsOauthApplicationIdMauMauIdOauthApplicationId",
|
|
434
|
+
"sourcePath": "/api/v2/oauth_applications",
|
|
435
|
+
"parentBindings": [],
|
|
436
|
+
"labelFields": [
|
|
437
|
+
"name",
|
|
438
|
+
"full_name",
|
|
439
|
+
"display_name",
|
|
440
|
+
"search_name",
|
|
441
|
+
"path_name",
|
|
442
|
+
"first_name last_name",
|
|
443
|
+
"given_name last_name",
|
|
444
|
+
"nickname last_name",
|
|
445
|
+
"title",
|
|
446
|
+
"subject",
|
|
447
|
+
"label"
|
|
448
|
+
],
|
|
449
|
+
"resultLimit": 25
|
|
450
|
+
},
|
|
451
|
+
"searchGetOauthApplicationsOauthApplicationIdMauOauthApplicationId": {
|
|
452
|
+
"methodName": "searchGetOauthApplicationsOauthApplicationIdMauOauthApplicationId",
|
|
453
|
+
"sourcePath": "/api/v2/oauth_applications",
|
|
454
|
+
"parentBindings": [],
|
|
455
|
+
"labelFields": [
|
|
456
|
+
"name",
|
|
457
|
+
"full_name",
|
|
458
|
+
"display_name",
|
|
459
|
+
"search_name",
|
|
460
|
+
"path_name",
|
|
461
|
+
"first_name last_name",
|
|
462
|
+
"given_name last_name",
|
|
463
|
+
"nickname last_name",
|
|
464
|
+
"title",
|
|
465
|
+
"subject",
|
|
466
|
+
"label"
|
|
467
|
+
],
|
|
468
|
+
"resultLimit": 25
|
|
469
|
+
},
|
|
470
|
+
"searchGetOauthApplicationsOauthApplicationIdOauthApplicationId": {
|
|
471
|
+
"methodName": "searchGetOauthApplicationsOauthApplicationIdOauthApplicationId",
|
|
472
|
+
"sourcePath": "/api/v2/oauth_applications",
|
|
473
|
+
"parentBindings": [],
|
|
474
|
+
"labelFields": [
|
|
475
|
+
"name",
|
|
476
|
+
"full_name",
|
|
477
|
+
"display_name",
|
|
478
|
+
"search_name",
|
|
479
|
+
"path_name",
|
|
480
|
+
"first_name last_name",
|
|
481
|
+
"given_name last_name",
|
|
482
|
+
"nickname last_name",
|
|
483
|
+
"title",
|
|
484
|
+
"subject",
|
|
485
|
+
"label"
|
|
486
|
+
],
|
|
487
|
+
"resultLimit": 25
|
|
488
|
+
},
|
|
489
|
+
"searchGetPersonalAccessTokensPersonalAccessTokenIdPersonalAccessTokenId": {
|
|
490
|
+
"methodName": "searchGetPersonalAccessTokensPersonalAccessTokenIdPersonalAccessTokenId",
|
|
491
|
+
"sourcePath": "/api/v2/personal_access_tokens",
|
|
492
|
+
"parentBindings": [],
|
|
493
|
+
"labelFields": [
|
|
494
|
+
"name",
|
|
495
|
+
"full_name",
|
|
496
|
+
"display_name",
|
|
497
|
+
"search_name",
|
|
498
|
+
"path_name",
|
|
499
|
+
"first_name last_name",
|
|
500
|
+
"given_name last_name",
|
|
501
|
+
"nickname last_name",
|
|
502
|
+
"title",
|
|
503
|
+
"subject",
|
|
504
|
+
"label"
|
|
505
|
+
],
|
|
506
|
+
"resultLimit": 25
|
|
507
|
+
}
|
|
508
|
+
};
|
|
509
|
+
const NODE_PROPERTIES = Function('return ' + "[\n {\n displayName: 'Resource',\n name: 'resource',\n type: 'options',\n noDataExpression: true,\n options: [{\"name\":\"Connected Application\",\"value\":\"Connected Application\"},{\"name\":\"Oauth Application\",\"value\":\"Oauth Application\"},{\"name\":\"Personal Access Token\",\"value\":\"Personal Access Token\"}],\n default: \"Connected Application\",\n },\n {\n displayName: 'Operation',\n name: 'operation',\n type: 'options',\n noDataExpression: true,\n displayOptions: {\"show\":{\"resource\":[\"Connected Application\"]}},\n options: [{\"name\":\"List Connected Applications\",\"value\":\"getConnectedApplications\",\"description\":\"GET /connected_applications\",\"action\":\"List Connected Applications\"},{\"name\":\"List People (via Connected Application)\",\"value\":\"getConnectedApplicationsConnectedApplicationIdPeople\",\"description\":\"GET /connected_applications/{connected_application_id}/people\",\"action\":\"List People (via Connected Application)\"},{\"name\":\"Get Connected Application\",\"value\":\"getConnectedApplicationsConnectedApplicationId\",\"description\":\"GET /connected_applications/{connected_application_id}\",\"action\":\"Get Connected Application\"},{\"name\":\"Get Person (via Connected Application)\",\"value\":\"getConnectedApplicationsConnectedApplicationIdPeoplePersonId\",\"description\":\"GET /connected_applications/{connected_application_id}/people/{person_id}\",\"action\":\"Get Person (via Connected Application)\"}],\n default: \"getConnectedApplications\",\n },\n {\n displayName: 'Operation',\n name: 'operation',\n type: 'options',\n noDataExpression: true,\n displayOptions: {\"show\":{\"resource\":[\"Oauth Application\"]}},\n options: [{\"name\":\"List Mau (via Oauth Application)\",\"value\":\"getOauthApplicationsOauthApplicationIdMau\",\"description\":\"GET /oauth_applications/{oauth_application_id}/mau\",\"action\":\"List Mau (via Oauth Application)\"},{\"name\":\"List Oauth Applications\",\"value\":\"getOauthApplications\",\"description\":\"GET /oauth_applications\",\"action\":\"List Oauth Applications\"},{\"name\":\"Get Mau (via Oauth Application)\",\"value\":\"getOauthApplicationsOauthApplicationIdMauMauId\",\"description\":\"GET /oauth_applications/{oauth_application_id}/mau/{mau_id}\",\"action\":\"Get Mau (via Oauth Application)\"},{\"name\":\"Get Oauth Application\",\"value\":\"getOauthApplicationsOauthApplicationId\",\"description\":\"GET /oauth_applications/{oauth_application_id}\",\"action\":\"Get Oauth Application\"}],\n default: \"getOauthApplicationsOauthApplicationIdMau\",\n },\n {\n displayName: 'Operation',\n name: 'operation',\n type: 'options',\n noDataExpression: true,\n displayOptions: {\"show\":{\"resource\":[\"Personal Access Token\"]}},\n options: [{\"name\":\"List Personal Access Tokens\",\"value\":\"getPersonalAccessTokens\",\"description\":\"GET /personal_access_tokens\",\"action\":\"List Personal Access Tokens\"},{\"name\":\"Get Personal Access Token\",\"value\":\"getPersonalAccessTokensPersonalAccessTokenId\",\"description\":\"GET /personal_access_tokens/{personal_access_token_id}\",\"action\":\"Get Personal Access Token\"}],\n default: \"getPersonalAccessTokens\",\n },\n {\n displayName: 'Return All',\n name: \"getConnectedApplications_returnAll\",\n type: 'boolean',\n default: false,\n displayOptions: {\"show\":{\"resource\":[\"Connected Application\"],\"operation\":[\"getConnectedApplications\"]}},\n },\n {\n displayName: 'Limit',\n name: \"getConnectedApplications_limit\",\n type: 'number',\n default: 100,\n typeOptions: { minValue: 1 },\n displayOptions: {\"show\":{\"resource\":[\"Connected Application\"],\"operation\":[\"getConnectedApplications\"],\"getConnectedApplications_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\":[\"Connected Application\"],\"operation\":[\"getConnectedApplications\"]}},\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: \"Connected Application ID\",\n name: \"getConnectedApplicationsConnectedApplicationIdPeople_connectedApplicationId\",\n type: \"resourceLocator\",\n default: {\"mode\":\"list\",\"value\":\"\"},\n required: true,\n modes: [{\"displayName\":\"List\",\"name\":\"list\",\"type\":\"list\",\"typeOptions\":{\"searchListMethod\":\"searchGetConnectedApplicationsConnectedApplicationIdPeopleConnectedApplicationId\",\"searchable\":true}},{\"displayName\":\"ID\",\"name\":\"id\",\"type\":\"string\",\"placeholder\":\"e.g. 12345\"}],\n displayOptions: {\"show\":{\"resource\":[\"Connected Application\"],\"operation\":[\"getConnectedApplicationsConnectedApplicationIdPeople\"]}},\n },\n {\n displayName: 'Return All',\n name: \"getConnectedApplicationsConnectedApplicationIdPeople_returnAll\",\n type: 'boolean',\n default: false,\n displayOptions: {\"show\":{\"resource\":[\"Connected Application\"],\"operation\":[\"getConnectedApplicationsConnectedApplicationIdPeople\"]}},\n },\n {\n displayName: 'Limit',\n name: \"getConnectedApplicationsConnectedApplicationIdPeople_limit\",\n type: 'number',\n default: 100,\n typeOptions: { minValue: 1 },\n displayOptions: {\"show\":{\"resource\":[\"Connected Application\"],\"operation\":[\"getConnectedApplicationsConnectedApplicationIdPeople\"],\"getConnectedApplicationsConnectedApplicationIdPeople_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\":[\"Connected Application\"],\"operation\":[\"getConnectedApplicationsConnectedApplicationIdPeople\"]}},\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: \"Connected Application ID\",\n name: \"getConnectedApplicationsConnectedApplicationId_connectedApplicationId\",\n type: \"resourceLocator\",\n default: {\"mode\":\"list\",\"value\":\"\"},\n required: true,\n modes: [{\"displayName\":\"List\",\"name\":\"list\",\"type\":\"list\",\"typeOptions\":{\"searchListMethod\":\"searchGetConnectedApplicationsConnectedApplicationIdConnectedApplicationId\",\"searchable\":true}},{\"displayName\":\"ID\",\"name\":\"id\",\"type\":\"string\",\"placeholder\":\"e.g. 12345\"}],\n displayOptions: {\"show\":{\"resource\":[\"Connected Application\"],\"operation\":[\"getConnectedApplicationsConnectedApplicationId\"]}},\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\":[\"Connected Application\"],\"operation\":[\"getConnectedApplicationsConnectedApplicationId\"]}},\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: \"Connected Application ID\",\n name: \"getConnectedApplicationsConnectedApplicationIdPeoplePersonId_connectedApplicationId\",\n type: \"resourceLocator\",\n default: {\"mode\":\"list\",\"value\":\"\"},\n required: true,\n modes: [{\"displayName\":\"List\",\"name\":\"list\",\"type\":\"list\",\"typeOptions\":{\"searchListMethod\":\"searchGetConnectedApplicationsConnectedApplicationIdPeoplePersonIdConnectedApplicationId\",\"searchable\":true}},{\"displayName\":\"ID\",\"name\":\"id\",\"type\":\"string\",\"placeholder\":\"e.g. 12345\"}],\n displayOptions: {\"show\":{\"resource\":[\"Connected Application\"],\"operation\":[\"getConnectedApplicationsConnectedApplicationIdPeoplePersonId\"]}},\n },\n {\n displayName: \"Person ID\",\n name: \"getConnectedApplicationsConnectedApplicationIdPeoplePersonId_personId\",\n type: \"string\",\n default: '',\n required: true,\n displayOptions: {\"show\":{\"resource\":[\"Connected Application\"],\"operation\":[\"getConnectedApplicationsConnectedApplicationIdPeoplePersonId\"]}},\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\":[\"Connected Application\"],\"operation\":[\"getConnectedApplicationsConnectedApplicationIdPeoplePersonId\"]}},\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: \"Oauth Application ID\",\n name: \"getOauthApplicationsOauthApplicationIdMau_oauthApplicationId\",\n type: \"resourceLocator\",\n default: {\"mode\":\"list\",\"value\":\"\"},\n required: true,\n modes: [{\"displayName\":\"List\",\"name\":\"list\",\"type\":\"list\",\"typeOptions\":{\"searchListMethod\":\"searchGetOauthApplicationsOauthApplicationIdMauOauthApplicationId\",\"searchable\":true}},{\"displayName\":\"ID\",\"name\":\"id\",\"type\":\"string\",\"placeholder\":\"e.g. 12345\"}],\n displayOptions: {\"show\":{\"resource\":[\"Oauth Application\"],\"operation\":[\"getOauthApplicationsOauthApplicationIdMau\"]}},\n },\n {\n displayName: 'Return All',\n name: \"getOauthApplicationsOauthApplicationIdMau_returnAll\",\n type: 'boolean',\n default: false,\n displayOptions: {\"show\":{\"resource\":[\"Oauth Application\"],\"operation\":[\"getOauthApplicationsOauthApplicationIdMau\"]}},\n },\n {\n displayName: 'Limit',\n name: \"getOauthApplicationsOauthApplicationIdMau_limit\",\n type: 'number',\n default: 100,\n typeOptions: { minValue: 1 },\n displayOptions: {\"show\":{\"resource\":[\"Oauth Application\"],\"operation\":[\"getOauthApplicationsOauthApplicationIdMau\"],\"getOauthApplicationsOauthApplicationIdMau_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\":[\"Oauth Application\"],\"operation\":[\"getOauthApplicationsOauthApplicationIdMau\"]}},\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: \"getOauthApplications_returnAll\",\n type: 'boolean',\n default: false,\n displayOptions: {\"show\":{\"resource\":[\"Oauth Application\"],\"operation\":[\"getOauthApplications\"]}},\n },\n {\n displayName: 'Limit',\n name: \"getOauthApplications_limit\",\n type: 'number',\n default: 100,\n typeOptions: { minValue: 1 },\n displayOptions: {\"show\":{\"resource\":[\"Oauth Application\"],\"operation\":[\"getOauthApplications\"],\"getOauthApplications_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\":[\"Oauth Application\"],\"operation\":[\"getOauthApplications\"]}},\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: \"Oauth Application ID\",\n name: \"getOauthApplicationsOauthApplicationIdMauMauId_oauthApplicationId\",\n type: \"resourceLocator\",\n default: {\"mode\":\"list\",\"value\":\"\"},\n required: true,\n modes: [{\"displayName\":\"List\",\"name\":\"list\",\"type\":\"list\",\"typeOptions\":{\"searchListMethod\":\"searchGetOauthApplicationsOauthApplicationIdMauMauIdOauthApplicationId\",\"searchable\":true}},{\"displayName\":\"ID\",\"name\":\"id\",\"type\":\"string\",\"placeholder\":\"e.g. 12345\"}],\n displayOptions: {\"show\":{\"resource\":[\"Oauth Application\"],\"operation\":[\"getOauthApplicationsOauthApplicationIdMauMauId\"]}},\n },\n {\n displayName: \"Mau ID\",\n name: \"getOauthApplicationsOauthApplicationIdMauMauId_mauId\",\n type: \"string\",\n default: '',\n required: true,\n displayOptions: {\"show\":{\"resource\":[\"Oauth Application\"],\"operation\":[\"getOauthApplicationsOauthApplicationIdMauMauId\"]}},\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\":[\"Oauth Application\"],\"operation\":[\"getOauthApplicationsOauthApplicationIdMauMauId\"]}},\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: \"Oauth Application ID\",\n name: \"getOauthApplicationsOauthApplicationId_oauthApplicationId\",\n type: \"resourceLocator\",\n default: {\"mode\":\"list\",\"value\":\"\"},\n required: true,\n modes: [{\"displayName\":\"List\",\"name\":\"list\",\"type\":\"list\",\"typeOptions\":{\"searchListMethod\":\"searchGetOauthApplicationsOauthApplicationIdOauthApplicationId\",\"searchable\":true}},{\"displayName\":\"ID\",\"name\":\"id\",\"type\":\"string\",\"placeholder\":\"e.g. 12345\"}],\n displayOptions: {\"show\":{\"resource\":[\"Oauth Application\"],\"operation\":[\"getOauthApplicationsOauthApplicationId\"]}},\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\":[\"Oauth Application\"],\"operation\":[\"getOauthApplicationsOauthApplicationId\"]}},\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: \"getPersonalAccessTokens_returnAll\",\n type: 'boolean',\n default: false,\n displayOptions: {\"show\":{\"resource\":[\"Personal Access Token\"],\"operation\":[\"getPersonalAccessTokens\"]}},\n },\n {\n displayName: 'Limit',\n name: \"getPersonalAccessTokens_limit\",\n type: 'number',\n default: 100,\n typeOptions: { minValue: 1 },\n displayOptions: {\"show\":{\"resource\":[\"Personal Access Token\"],\"operation\":[\"getPersonalAccessTokens\"],\"getPersonalAccessTokens_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\":[\"Personal Access Token\"],\"operation\":[\"getPersonalAccessTokens\"]}},\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: \"Personal Access Token ID\",\n name: \"getPersonalAccessTokensPersonalAccessTokenId_personalAccessTokenId\",\n type: \"resourceLocator\",\n default: {\"mode\":\"list\",\"value\":\"\"},\n required: true,\n modes: [{\"displayName\":\"List\",\"name\":\"list\",\"type\":\"list\",\"typeOptions\":{\"searchListMethod\":\"searchGetPersonalAccessTokensPersonalAccessTokenIdPersonalAccessTokenId\",\"searchable\":true}},{\"displayName\":\"ID\",\"name\":\"id\",\"type\":\"string\",\"placeholder\":\"e.g. 12345\"}],\n displayOptions: {\"show\":{\"resource\":[\"Personal Access Token\"],\"operation\":[\"getPersonalAccessTokensPersonalAccessTokenId\"]}},\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\":[\"Personal Access Token\"],\"operation\":[\"getPersonalAccessTokensPersonalAccessTokenId\"]}},\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 ]")();
|
|
510
|
+
function lookupResultName(item, lookup) {
|
|
511
|
+
const id = item?.id === undefined || item?.id === null ? '' : String(item.id);
|
|
512
|
+
const attributes = item?.attributes && typeof item.attributes === 'object' ? item.attributes : {};
|
|
513
|
+
const display = lookup.labelFields
|
|
514
|
+
.map((field) => {
|
|
515
|
+
const values = field.split(' ').map((part) => attributes[part]);
|
|
516
|
+
if (values.some((value) => typeof value !== 'string' || !value.trim()))
|
|
517
|
+
return '';
|
|
518
|
+
return values.map((value) => String(value).trim()).join(' ');
|
|
519
|
+
})
|
|
520
|
+
.find((value) => value.trim());
|
|
521
|
+
return display ? String(display) + ' (' + id + ')' : id;
|
|
522
|
+
}
|
|
523
|
+
function lookupPath(context, lookup) {
|
|
524
|
+
let path = lookup.sourcePath;
|
|
525
|
+
for (const binding of lookup.parentBindings) {
|
|
526
|
+
const id = (0, resourceLocator_1.extractResourceLocatorId)(context.getNodeParameter(binding.fieldName, ''));
|
|
527
|
+
if (!id)
|
|
528
|
+
return undefined;
|
|
529
|
+
path = path.replace('{' + binding.sourceName + '}', encodeURIComponent(id));
|
|
530
|
+
}
|
|
531
|
+
return path;
|
|
532
|
+
}
|
|
533
|
+
async function requestLookup(context, path, qs) {
|
|
534
|
+
const response = await request_1.planningCenterApiRequest.call(context, { method: 'GET', path, qs });
|
|
535
|
+
return Array.isArray(response?.data) ? response.data : [];
|
|
536
|
+
}
|
|
537
|
+
function lookupResults(dataSets, lookup) {
|
|
538
|
+
const seen = new Set();
|
|
539
|
+
const results = [];
|
|
540
|
+
for (const data of dataSets) {
|
|
541
|
+
for (const item of data) {
|
|
542
|
+
const value = item?.id === undefined || item?.id === null ? '' : String(item.id);
|
|
543
|
+
if (!value || seen.has(value))
|
|
544
|
+
continue;
|
|
545
|
+
seen.add(value);
|
|
546
|
+
results.push({ name: lookupResultName(item, lookup), value });
|
|
547
|
+
if (results.length >= lookup.resultLimit)
|
|
548
|
+
return { results };
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
return { results };
|
|
552
|
+
}
|
|
553
|
+
function splitNameRequests(lookup, filter) {
|
|
554
|
+
const terms = filter.trim().split(/\s+/).filter(Boolean);
|
|
555
|
+
const splitNameSearch = lookup.splitNameSearch;
|
|
556
|
+
if (!terms.length || !splitNameSearch)
|
|
557
|
+
return [];
|
|
558
|
+
return [
|
|
559
|
+
{ per_page: lookup.resultLimit, [splitNameSearch.firstNameFilter]: terms[0] },
|
|
560
|
+
{ per_page: lookup.resultLimit, [splitNameSearch.lastNameFilter]: terms[terms.length - 1] },
|
|
561
|
+
];
|
|
562
|
+
}
|
|
563
|
+
async function searchLookup(context, lookup, filter) {
|
|
564
|
+
const path = lookupPath(context, lookup);
|
|
565
|
+
if (!path)
|
|
566
|
+
return { results: [] };
|
|
567
|
+
const trimmedFilter = filter?.trim() ?? '';
|
|
568
|
+
let requests = [{ per_page: lookup.resultLimit }];
|
|
569
|
+
if (trimmedFilter && lookup.searchFilter) {
|
|
570
|
+
requests = [{ per_page: lookup.resultLimit, [lookup.searchFilter]: trimmedFilter }];
|
|
571
|
+
}
|
|
572
|
+
else if (trimmedFilter && lookup.splitNameSearch) {
|
|
573
|
+
requests = splitNameRequests(lookup, trimmedFilter);
|
|
574
|
+
}
|
|
575
|
+
const dataSets = await Promise.all(requests.map((qs) => requestLookup(context, path, qs)));
|
|
576
|
+
return lookupResults(dataSets, lookup);
|
|
577
|
+
}
|
|
578
|
+
function addAdditionalQuery(context, itemIndex, operation, qs) {
|
|
579
|
+
const additional = context.getNodeParameter('additionalQueryParameters', itemIndex, {});
|
|
580
|
+
for (const parameter of additional.parameters ?? []) {
|
|
581
|
+
if (parameter.name) {
|
|
582
|
+
qs[parameter.name] = parameter.value;
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
function queryOptionSelections(groupOptions, optionName) {
|
|
587
|
+
const selected = groupOptions[optionName];
|
|
588
|
+
if (Array.isArray(selected))
|
|
589
|
+
return selected;
|
|
590
|
+
return selected ? [selected] : [];
|
|
591
|
+
}
|
|
592
|
+
function addQueryStringValue(qs, sourceName, value) {
|
|
593
|
+
if (qs[sourceName] === undefined) {
|
|
594
|
+
qs[sourceName] = value;
|
|
595
|
+
return;
|
|
596
|
+
}
|
|
597
|
+
qs[sourceName] = String(qs[sourceName]) + ',' + String(value);
|
|
598
|
+
}
|
|
599
|
+
function addQueryOptions(context, itemIndex, operation, qs) {
|
|
600
|
+
for (const option of operation.queryOptions) {
|
|
601
|
+
const options = context.getNodeParameter(`${operation.id}_${option.group}`, itemIndex, {});
|
|
602
|
+
for (const selected of queryOptionSelections(options, option.name)) {
|
|
603
|
+
const value = option.lookup ? (0, resourceLocator_1.extractResourceLocatorId)(selected.value) : selected.value;
|
|
604
|
+
if (value === undefined || value === '')
|
|
605
|
+
continue;
|
|
606
|
+
if (option.kind === 'operator') {
|
|
607
|
+
const operator = option.operators?.find((candidate) => candidate.value === selected.operator) ?? option.operators?.[0];
|
|
608
|
+
if (operator)
|
|
609
|
+
addQueryStringValue(qs, operator.sourceName, value);
|
|
610
|
+
continue;
|
|
611
|
+
}
|
|
612
|
+
if (option.sourceName) {
|
|
613
|
+
addQueryStringValue(qs, option.sourceName, value);
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
function buildBody(context, itemIndex, operation) {
|
|
619
|
+
if (!['POST', 'PUT', 'PATCH'].includes(operation.method))
|
|
620
|
+
return undefined;
|
|
621
|
+
const bodyMode = context.getNodeParameter('bodyMode', itemIndex, 'fields');
|
|
622
|
+
if (bodyMode === 'rawJson') {
|
|
623
|
+
return JSON.parse(context.getNodeParameter('rawJsonBody', itemIndex, '{}'));
|
|
624
|
+
}
|
|
625
|
+
const attributes = {};
|
|
626
|
+
for (const field of operation.attributeFields) {
|
|
627
|
+
const value = field.required
|
|
628
|
+
? context.getNodeParameter(`${operation.id}_${field.name}`, itemIndex)
|
|
629
|
+
: context.getNodeParameter(`${operation.id}_${field.name}`, itemIndex, '');
|
|
630
|
+
const attributeValue = field.lookup ? (0, resourceLocator_1.extractResourceLocatorId)(value) : value;
|
|
631
|
+
if (attributeValue !== undefined && attributeValue !== '') {
|
|
632
|
+
attributes[field.sourceName] = attributeValue;
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
const relationships = {};
|
|
636
|
+
for (const field of operation.relationshipFields) {
|
|
637
|
+
const rawValue = context.getNodeParameter(`${operation.id}_${field.name}`, itemIndex, '');
|
|
638
|
+
const value = field.lookup ? (0, resourceLocator_1.extractResourceLocatorId)(rawValue) : String(rawValue);
|
|
639
|
+
if (!value)
|
|
640
|
+
continue;
|
|
641
|
+
const ids = field.multiple ? value.split(',').map((id) => id.trim()).filter(Boolean) : [value];
|
|
642
|
+
relationships[field.relationshipName] = {
|
|
643
|
+
data: field.multiple
|
|
644
|
+
? ids.map((id) => ({ type: field.relationshipType, id }))
|
|
645
|
+
: { type: field.relationshipType, id: ids[0] },
|
|
646
|
+
};
|
|
647
|
+
}
|
|
648
|
+
return {
|
|
649
|
+
data: {
|
|
650
|
+
type: operation.resource,
|
|
651
|
+
...(Object.keys(attributes).length ? { attributes } : {}),
|
|
652
|
+
...(Object.keys(relationships).length ? { relationships } : {}),
|
|
653
|
+
},
|
|
654
|
+
};
|
|
655
|
+
}
|
|
656
|
+
function buildPath(context, itemIndex, operation) {
|
|
657
|
+
let path = operation.path;
|
|
658
|
+
for (const parameter of operation.pathParameters) {
|
|
659
|
+
const value = (0, resourceLocator_1.extractResourceLocatorId)(context.getNodeParameter(`${operation.id}_${parameter.name}`, itemIndex));
|
|
660
|
+
path = path.replace(`{${parameter.sourceName}}`, encodeURIComponent(value));
|
|
661
|
+
}
|
|
662
|
+
return path;
|
|
663
|
+
}
|
|
664
|
+
async function executeOperation(context, itemIndex, operation) {
|
|
665
|
+
const qs = {};
|
|
666
|
+
addQueryOptions(context, itemIndex, operation, qs);
|
|
667
|
+
addAdditionalQuery(context, itemIndex, operation, qs);
|
|
668
|
+
const request = {
|
|
669
|
+
method: operation.method,
|
|
670
|
+
path: buildPath(context, itemIndex, operation),
|
|
671
|
+
qs,
|
|
672
|
+
body: buildBody(context, itemIndex, operation),
|
|
673
|
+
};
|
|
674
|
+
const data = operation.isList
|
|
675
|
+
? await pagination_1.collectPaginatedPlanningCenterResults.call(context, request, {
|
|
676
|
+
returnAll: context.getNodeParameter(`${operation.id}_returnAll`, itemIndex, false),
|
|
677
|
+
limit: context.getNodeParameter(`${operation.id}_limit`, itemIndex, 100),
|
|
678
|
+
})
|
|
679
|
+
: (0, jsonApi_1.normalizeJsonApiResponse)(await request_1.planningCenterApiRequest.call(context, request));
|
|
680
|
+
return data.map((json) => ({ json, pairedItem: { item: itemIndex } }));
|
|
681
|
+
}
|
|
682
|
+
class PlanningCenterApi {
|
|
683
|
+
description = {
|
|
684
|
+
displayName: "Planning Center API",
|
|
685
|
+
name: "planningCenterApi",
|
|
686
|
+
icon: 'file:api.svg',
|
|
687
|
+
group: ['transform'],
|
|
688
|
+
version: 1,
|
|
689
|
+
subtitle: "={{({\"getConnectedApplications\":\"GET /connected_applications\",\"getConnectedApplicationsConnectedApplicationIdPeople\":\"GET /connected_applications/{connected_application_id}/people\",\"getConnectedApplicationsConnectedApplicationId\":\"GET /connected_applications/{connected_application_id}\",\"getConnectedApplicationsConnectedApplicationIdPeoplePersonId\":\"GET /connected_applications/{connected_application_id}/people/{person_id}\",\"getOauthApplicationsOauthApplicationIdMau\":\"GET /oauth_applications/{oauth_application_id}/mau\",\"getOauthApplications\":\"GET /oauth_applications\",\"getOauthApplicationsOauthApplicationIdMauMauId\":\"GET /oauth_applications/{oauth_application_id}/mau/{mau_id}\",\"getOauthApplicationsOauthApplicationId\":\"GET /oauth_applications/{oauth_application_id}\",\"getPersonalAccessTokens\":\"GET /personal_access_tokens\",\"getPersonalAccessTokensPersonalAccessTokenId\":\"GET /personal_access_tokens/{personal_access_token_id}\"})[$parameter[\"operation\"]] || $parameter[\"operation\"]}}",
|
|
690
|
+
description: "Planning Center API generated from the Planning Center OpenAPI snapshot.",
|
|
691
|
+
defaults: {
|
|
692
|
+
name: "Planning Center API",
|
|
693
|
+
},
|
|
694
|
+
inputs: ['main'],
|
|
695
|
+
outputs: ['main'],
|
|
696
|
+
credentials: [
|
|
697
|
+
{
|
|
698
|
+
name: 'planningCenterPatApi',
|
|
699
|
+
required: true,
|
|
700
|
+
},
|
|
701
|
+
],
|
|
702
|
+
properties: NODE_PROPERTIES,
|
|
703
|
+
};
|
|
704
|
+
methods = {
|
|
705
|
+
listSearch: {
|
|
706
|
+
searchGetConnectedApplicationsConnectedApplicationIdConnectedApplicationId: async function (filter) {
|
|
707
|
+
return searchLookup(this, LOOKUP_SOURCES["searchGetConnectedApplicationsConnectedApplicationIdConnectedApplicationId"], filter);
|
|
708
|
+
},
|
|
709
|
+
searchGetConnectedApplicationsConnectedApplicationIdPeopleConnectedApplicationId: async function (filter) {
|
|
710
|
+
return searchLookup(this, LOOKUP_SOURCES["searchGetConnectedApplicationsConnectedApplicationIdPeopleConnectedApplicationId"], filter);
|
|
711
|
+
},
|
|
712
|
+
searchGetConnectedApplicationsConnectedApplicationIdPeoplePersonIdConnectedApplicationId: async function (filter) {
|
|
713
|
+
return searchLookup(this, LOOKUP_SOURCES["searchGetConnectedApplicationsConnectedApplicationIdPeoplePersonIdConnectedApplicationId"], filter);
|
|
714
|
+
},
|
|
715
|
+
searchGetOauthApplicationsOauthApplicationIdMauMauIdOauthApplicationId: async function (filter) {
|
|
716
|
+
return searchLookup(this, LOOKUP_SOURCES["searchGetOauthApplicationsOauthApplicationIdMauMauIdOauthApplicationId"], filter);
|
|
717
|
+
},
|
|
718
|
+
searchGetOauthApplicationsOauthApplicationIdMauOauthApplicationId: async function (filter) {
|
|
719
|
+
return searchLookup(this, LOOKUP_SOURCES["searchGetOauthApplicationsOauthApplicationIdMauOauthApplicationId"], filter);
|
|
720
|
+
},
|
|
721
|
+
searchGetOauthApplicationsOauthApplicationIdOauthApplicationId: async function (filter) {
|
|
722
|
+
return searchLookup(this, LOOKUP_SOURCES["searchGetOauthApplicationsOauthApplicationIdOauthApplicationId"], filter);
|
|
723
|
+
},
|
|
724
|
+
searchGetPersonalAccessTokensPersonalAccessTokenIdPersonalAccessTokenId: async function (filter) {
|
|
725
|
+
return searchLookup(this, LOOKUP_SOURCES["searchGetPersonalAccessTokensPersonalAccessTokenIdPersonalAccessTokenId"], filter);
|
|
726
|
+
},
|
|
727
|
+
},
|
|
728
|
+
};
|
|
729
|
+
async execute() {
|
|
730
|
+
const items = this.getInputData();
|
|
731
|
+
const returnData = [];
|
|
732
|
+
for (let itemIndex = 0; itemIndex < items.length; itemIndex += 1) {
|
|
733
|
+
const resource = this.getNodeParameter('resource', itemIndex);
|
|
734
|
+
const operationId = this.getNodeParameter('operation', itemIndex);
|
|
735
|
+
const operation = OPERATIONS.find((candidate) => candidate.resource === resource && candidate.id === operationId);
|
|
736
|
+
if (!operation) {
|
|
737
|
+
throw new Error(`Unsupported Planning Center API operation: ${resource}.${operationId}`);
|
|
738
|
+
}
|
|
739
|
+
returnData.push(...(await (0, execute_1.executeItemWithContinueOnFail)(this, itemIndex, () => executeOperation(this, itemIndex, operation))));
|
|
740
|
+
}
|
|
741
|
+
return [returnData];
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
exports.PlanningCenterApi = PlanningCenterApi;
|
|
745
|
+
//# sourceMappingURL=PlanningCenterApi.node.js.map
|