n8n-nodes-codex 1.0.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 +19 -0
- package/README.md +108 -0
- package/dist/credentials/CodexApi.credentials.d.ts +10 -0
- package/dist/credentials/CodexApi.credentials.js +92 -0
- package/dist/credentials/CodexApi.credentials.js.map +1 -0
- package/dist/icons/codex-dark.svg +7 -0
- package/dist/icons/codex-light.svg +7 -0
- package/dist/icons/codex.svg +7 -0
- package/dist/icons/github.dark.svg +3 -0
- package/dist/icons/github.svg +3 -0
- package/dist/nodes/Codex/Codex.node.d.ts +4 -0
- package/dist/nodes/Codex/Codex.node.js +133 -0
- package/dist/nodes/Codex/Codex.node.js.map +1 -0
- package/dist/nodes/Codex/resources/admin/index.d.ts +2 -0
- package/dist/nodes/Codex/resources/admin/index.js +489 -0
- package/dist/nodes/Codex/resources/admin/index.js.map +1 -0
- package/dist/nodes/Codex/resources/apiKey/index.d.ts +2 -0
- package/dist/nodes/Codex/resources/apiKey/index.js +233 -0
- package/dist/nodes/Codex/resources/apiKey/index.js.map +1 -0
- package/dist/nodes/Codex/resources/book/get.d.ts +2 -0
- package/dist/nodes/Codex/resources/book/get.js +5 -0
- package/dist/nodes/Codex/resources/book/get.js.map +1 -0
- package/dist/nodes/Codex/resources/book/index.d.ts +2 -0
- package/dist/nodes/Codex/resources/book/index.js +450 -0
- package/dist/nodes/Codex/resources/book/index.js.map +1 -0
- package/dist/nodes/Codex/resources/book/list.d.ts +2 -0
- package/dist/nodes/Codex/resources/book/list.js +81 -0
- package/dist/nodes/Codex/resources/book/list.js.map +1 -0
- package/dist/nodes/Codex/resources/book/updateMetadata.d.ts +2 -0
- package/dist/nodes/Codex/resources/book/updateMetadata.js +98 -0
- package/dist/nodes/Codex/resources/book/updateMetadata.js.map +1 -0
- package/dist/nodes/Codex/resources/book/updateProgress.d.ts +2 -0
- package/dist/nodes/Codex/resources/book/updateProgress.js +46 -0
- package/dist/nodes/Codex/resources/book/updateProgress.js.map +1 -0
- package/dist/nodes/Codex/resources/duplicate/index.d.ts +2 -0
- package/dist/nodes/Codex/resources/duplicate/index.js +162 -0
- package/dist/nodes/Codex/resources/duplicate/index.js.map +1 -0
- package/dist/nodes/Codex/resources/filesystem/index.d.ts +2 -0
- package/dist/nodes/Codex/resources/filesystem/index.js +64 -0
- package/dist/nodes/Codex/resources/filesystem/index.js.map +1 -0
- package/dist/nodes/Codex/resources/genre/index.d.ts +2 -0
- package/dist/nodes/Codex/resources/genre/index.js +83 -0
- package/dist/nodes/Codex/resources/genre/index.js.map +1 -0
- package/dist/nodes/Codex/resources/library/create.d.ts +2 -0
- package/dist/nodes/Codex/resources/library/create.js +94 -0
- package/dist/nodes/Codex/resources/library/create.js.map +1 -0
- package/dist/nodes/Codex/resources/library/delete.d.ts +2 -0
- package/dist/nodes/Codex/resources/library/delete.js +5 -0
- package/dist/nodes/Codex/resources/library/delete.js.map +1 -0
- package/dist/nodes/Codex/resources/library/get.d.ts +2 -0
- package/dist/nodes/Codex/resources/library/get.js +5 -0
- package/dist/nodes/Codex/resources/library/get.js.map +1 -0
- package/dist/nodes/Codex/resources/library/index.d.ts +2 -0
- package/dist/nodes/Codex/resources/library/index.js +360 -0
- package/dist/nodes/Codex/resources/library/index.js.map +1 -0
- package/dist/nodes/Codex/resources/library/list.d.ts +2 -0
- package/dist/nodes/Codex/resources/library/list.js +5 -0
- package/dist/nodes/Codex/resources/library/list.js.map +1 -0
- package/dist/nodes/Codex/resources/library/scan.d.ts +2 -0
- package/dist/nodes/Codex/resources/library/scan.js +37 -0
- package/dist/nodes/Codex/resources/library/scan.js.map +1 -0
- package/dist/nodes/Codex/resources/library/update.d.ts +2 -0
- package/dist/nodes/Codex/resources/library/update.js +73 -0
- package/dist/nodes/Codex/resources/library/update.js.map +1 -0
- package/dist/nodes/Codex/resources/metric/index.d.ts +2 -0
- package/dist/nodes/Codex/resources/metric/index.js +154 -0
- package/dist/nodes/Codex/resources/metric/index.js.map +1 -0
- package/dist/nodes/Codex/resources/misc/index.d.ts +2 -0
- package/dist/nodes/Codex/resources/misc/index.js +216 -0
- package/dist/nodes/Codex/resources/misc/index.js.map +1 -0
- package/dist/nodes/Codex/resources/series/get.d.ts +2 -0
- package/dist/nodes/Codex/resources/series/get.js +5 -0
- package/dist/nodes/Codex/resources/series/get.js.map +1 -0
- package/dist/nodes/Codex/resources/series/index.d.ts +2 -0
- package/dist/nodes/Codex/resources/series/index.js +1348 -0
- package/dist/nodes/Codex/resources/series/index.js.map +1 -0
- package/dist/nodes/Codex/resources/series/list.d.ts +2 -0
- package/dist/nodes/Codex/resources/series/list.js +108 -0
- package/dist/nodes/Codex/resources/series/list.js.map +1 -0
- package/dist/nodes/Codex/resources/series/updateMetadata.d.ts +2 -0
- package/dist/nodes/Codex/resources/series/updateMetadata.js +116 -0
- package/dist/nodes/Codex/resources/series/updateMetadata.js.map +1 -0
- package/dist/nodes/Codex/resources/tag/index.d.ts +2 -0
- package/dist/nodes/Codex/resources/tag/index.js +83 -0
- package/dist/nodes/Codex/resources/tag/index.js.map +1 -0
- package/dist/nodes/Codex/resources/task/index.d.ts +2 -0
- package/dist/nodes/Codex/resources/task/index.js +241 -0
- package/dist/nodes/Codex/resources/task/index.js.map +1 -0
- package/dist/nodes/Codex/resources/user/index.d.ts +2 -0
- package/dist/nodes/Codex/resources/user/index.js +362 -0
- package/dist/nodes/Codex/resources/user/index.js.map +1 -0
- package/dist/nodes/Codex/resources/userPreference/index.d.ts +2 -0
- package/dist/nodes/Codex/resources/userPreference/index.js +358 -0
- package/dist/nodes/Codex/resources/userPreference/index.js.map +1 -0
- package/dist/nodes/Codex/shared/descriptions.d.ts +6 -0
- package/dist/nodes/Codex/shared/descriptions.js +94 -0
- package/dist/nodes/Codex/shared/descriptions.js.map +1 -0
- package/dist/package.json +60 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +60 -0
|
@@ -0,0 +1,489 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.adminDescription = void 0;
|
|
4
|
+
const showOnlyForAdmin = {
|
|
5
|
+
resource: ['admin'],
|
|
6
|
+
};
|
|
7
|
+
exports.adminDescription = [
|
|
8
|
+
{
|
|
9
|
+
displayName: 'Operation',
|
|
10
|
+
name: 'operation',
|
|
11
|
+
type: 'options',
|
|
12
|
+
noDataExpression: true,
|
|
13
|
+
displayOptions: {
|
|
14
|
+
show: showOnlyForAdmin,
|
|
15
|
+
},
|
|
16
|
+
options: [
|
|
17
|
+
{
|
|
18
|
+
name: 'Cleanup Orphans',
|
|
19
|
+
value: 'cleanupOrphans',
|
|
20
|
+
action: 'Cleanup orphan files',
|
|
21
|
+
description: 'Remove orphaned files from the filesystem',
|
|
22
|
+
routing: {
|
|
23
|
+
request: {
|
|
24
|
+
method: 'POST',
|
|
25
|
+
url: '/api/v1/admin/cleanup-orphans',
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: 'Cleanup PDF Cache',
|
|
31
|
+
value: 'cleanupPdfCache',
|
|
32
|
+
action: 'Cleanup PDF cache',
|
|
33
|
+
description: 'Clean up the PDF processing cache',
|
|
34
|
+
routing: {
|
|
35
|
+
request: {
|
|
36
|
+
method: 'POST',
|
|
37
|
+
url: '/api/v1/admin/pdf-cache/cleanup',
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
name: 'Create Integration',
|
|
43
|
+
value: 'createIntegration',
|
|
44
|
+
action: 'Create integration',
|
|
45
|
+
description: 'Create a new integration',
|
|
46
|
+
routing: {
|
|
47
|
+
request: {
|
|
48
|
+
method: 'POST',
|
|
49
|
+
url: '/api/v1/admin/integrations',
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
name: 'Create Sharing Tag',
|
|
55
|
+
value: 'createSharingTag',
|
|
56
|
+
action: 'Create sharing tag',
|
|
57
|
+
description: 'Create a new sharing tag',
|
|
58
|
+
routing: {
|
|
59
|
+
request: {
|
|
60
|
+
method: 'POST',
|
|
61
|
+
url: '/api/v1/admin/sharing-tags',
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
name: 'Delete Integration',
|
|
67
|
+
value: 'deleteIntegration',
|
|
68
|
+
action: 'Delete integration',
|
|
69
|
+
description: 'Delete an integration',
|
|
70
|
+
routing: {
|
|
71
|
+
request: {
|
|
72
|
+
method: 'DELETE',
|
|
73
|
+
url: '=/api/v1/admin/integrations/{{$parameter.integrationId}}',
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: 'Delete Setting',
|
|
79
|
+
value: 'deleteSetting',
|
|
80
|
+
action: 'Delete setting',
|
|
81
|
+
description: 'Delete a setting',
|
|
82
|
+
routing: {
|
|
83
|
+
request: {
|
|
84
|
+
method: 'DELETE',
|
|
85
|
+
url: '=/api/v1/admin/settings/{{$parameter.settingKey}}',
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
name: 'Delete Sharing Tag',
|
|
91
|
+
value: 'deleteSharingTag',
|
|
92
|
+
action: 'Delete sharing tag',
|
|
93
|
+
description: 'Delete a sharing tag',
|
|
94
|
+
routing: {
|
|
95
|
+
request: {
|
|
96
|
+
method: 'DELETE',
|
|
97
|
+
url: '=/api/v1/admin/sharing-tags/{{$parameter.sharingTagId}}',
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
name: 'Disable Integration',
|
|
103
|
+
value: 'disableIntegration',
|
|
104
|
+
action: 'Disable integration',
|
|
105
|
+
description: 'Disable an integration',
|
|
106
|
+
routing: {
|
|
107
|
+
request: {
|
|
108
|
+
method: 'POST',
|
|
109
|
+
url: '=/api/v1/admin/integrations/{{$parameter.integrationId}}/disable',
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
name: 'Enable Integration',
|
|
115
|
+
value: 'enableIntegration',
|
|
116
|
+
action: 'Enable integration',
|
|
117
|
+
description: 'Enable an integration',
|
|
118
|
+
routing: {
|
|
119
|
+
request: {
|
|
120
|
+
method: 'POST',
|
|
121
|
+
url: '=/api/v1/admin/integrations/{{$parameter.integrationId}}/enable',
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
name: 'Get Integration',
|
|
127
|
+
value: 'getIntegration',
|
|
128
|
+
action: 'Get integration',
|
|
129
|
+
description: 'Get an integration by ID',
|
|
130
|
+
routing: {
|
|
131
|
+
request: {
|
|
132
|
+
method: 'GET',
|
|
133
|
+
url: '=/api/v1/admin/integrations/{{$parameter.integrationId}}',
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
name: 'Get Orphan Stats',
|
|
139
|
+
value: 'getOrphanStats',
|
|
140
|
+
action: 'Get orphan stats',
|
|
141
|
+
description: 'Get statistics about orphaned files',
|
|
142
|
+
routing: {
|
|
143
|
+
request: {
|
|
144
|
+
method: 'GET',
|
|
145
|
+
url: '/api/v1/admin/cleanup-orphans/stats',
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
name: 'Get PDF Cache Info',
|
|
151
|
+
value: 'getPdfCacheInfo',
|
|
152
|
+
action: 'Get PDF cache info',
|
|
153
|
+
description: 'Get information about the PDF cache',
|
|
154
|
+
routing: {
|
|
155
|
+
request: {
|
|
156
|
+
method: 'GET',
|
|
157
|
+
url: '/api/v1/admin/pdf-cache',
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
name: 'Get PDF Cache Stats',
|
|
163
|
+
value: 'getPdfCacheStats',
|
|
164
|
+
action: 'Get PDF cache stats',
|
|
165
|
+
description: 'Get statistics about the PDF cache',
|
|
166
|
+
routing: {
|
|
167
|
+
request: {
|
|
168
|
+
method: 'GET',
|
|
169
|
+
url: '/api/v1/admin/pdf-cache/stats',
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
name: 'Get Setting',
|
|
175
|
+
value: 'getSetting',
|
|
176
|
+
action: 'Get setting',
|
|
177
|
+
description: 'Get a setting by key',
|
|
178
|
+
routing: {
|
|
179
|
+
request: {
|
|
180
|
+
method: 'GET',
|
|
181
|
+
url: '=/api/v1/admin/settings/{{$parameter.settingKey}}',
|
|
182
|
+
},
|
|
183
|
+
},
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
name: 'Get Setting History',
|
|
187
|
+
value: 'getSettingHistory',
|
|
188
|
+
action: 'Get setting history',
|
|
189
|
+
description: 'Get the history of a setting',
|
|
190
|
+
routing: {
|
|
191
|
+
request: {
|
|
192
|
+
method: 'GET',
|
|
193
|
+
url: '=/api/v1/admin/settings/{{$parameter.settingKey}}/history',
|
|
194
|
+
},
|
|
195
|
+
},
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
name: 'Get Sharing Tag',
|
|
199
|
+
value: 'getSharingTag',
|
|
200
|
+
action: 'Get sharing tag',
|
|
201
|
+
description: 'Get a sharing tag by ID',
|
|
202
|
+
routing: {
|
|
203
|
+
request: {
|
|
204
|
+
method: 'GET',
|
|
205
|
+
url: '=/api/v1/admin/sharing-tags/{{$parameter.sharingTagId}}',
|
|
206
|
+
},
|
|
207
|
+
},
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
name: 'List Integrations',
|
|
211
|
+
value: 'listIntegrations',
|
|
212
|
+
action: 'List integrations',
|
|
213
|
+
description: 'List all integrations',
|
|
214
|
+
routing: {
|
|
215
|
+
request: {
|
|
216
|
+
method: 'GET',
|
|
217
|
+
url: '/api/v1/admin/integrations',
|
|
218
|
+
},
|
|
219
|
+
},
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
name: 'List Settings',
|
|
223
|
+
value: 'listSettings',
|
|
224
|
+
action: 'List settings',
|
|
225
|
+
description: 'Get all settings',
|
|
226
|
+
routing: {
|
|
227
|
+
request: {
|
|
228
|
+
method: 'GET',
|
|
229
|
+
url: '/api/v1/admin/settings',
|
|
230
|
+
},
|
|
231
|
+
},
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
name: 'List Sharing Tags',
|
|
235
|
+
value: 'listSharingTags',
|
|
236
|
+
action: 'List sharing tags',
|
|
237
|
+
description: 'List all sharing tags',
|
|
238
|
+
routing: {
|
|
239
|
+
request: {
|
|
240
|
+
method: 'GET',
|
|
241
|
+
url: '/api/v1/admin/sharing-tags',
|
|
242
|
+
},
|
|
243
|
+
},
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
name: 'Reset Setting',
|
|
247
|
+
value: 'resetSetting',
|
|
248
|
+
action: 'Reset setting',
|
|
249
|
+
description: 'Reset a setting to its default value',
|
|
250
|
+
routing: {
|
|
251
|
+
request: {
|
|
252
|
+
method: 'POST',
|
|
253
|
+
url: '=/api/v1/admin/settings/{{$parameter.settingKey}}/reset',
|
|
254
|
+
},
|
|
255
|
+
},
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
name: 'Test Integration',
|
|
259
|
+
value: 'testIntegration',
|
|
260
|
+
action: 'Test integration',
|
|
261
|
+
description: 'Test an integration connection',
|
|
262
|
+
routing: {
|
|
263
|
+
request: {
|
|
264
|
+
method: 'POST',
|
|
265
|
+
url: '=/api/v1/admin/integrations/{{$parameter.integrationId}}/test',
|
|
266
|
+
},
|
|
267
|
+
},
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
name: 'Update Bulk Settings',
|
|
271
|
+
value: 'updateBulkSettings',
|
|
272
|
+
action: 'Update bulk settings',
|
|
273
|
+
description: 'Update multiple settings at once',
|
|
274
|
+
routing: {
|
|
275
|
+
request: {
|
|
276
|
+
method: 'PUT',
|
|
277
|
+
url: '/api/v1/admin/settings/bulk',
|
|
278
|
+
},
|
|
279
|
+
},
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
name: 'Update Integration',
|
|
283
|
+
value: 'updateIntegration',
|
|
284
|
+
action: 'Update integration',
|
|
285
|
+
description: 'Update an integration',
|
|
286
|
+
routing: {
|
|
287
|
+
request: {
|
|
288
|
+
method: 'PATCH',
|
|
289
|
+
url: '=/api/v1/admin/integrations/{{$parameter.integrationId}}',
|
|
290
|
+
},
|
|
291
|
+
},
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
name: 'Update Setting',
|
|
295
|
+
value: 'updateSetting',
|
|
296
|
+
action: 'Update setting',
|
|
297
|
+
description: 'Update a setting',
|
|
298
|
+
routing: {
|
|
299
|
+
request: {
|
|
300
|
+
method: 'PUT',
|
|
301
|
+
url: '=/api/v1/admin/settings/{{$parameter.settingKey}}',
|
|
302
|
+
},
|
|
303
|
+
},
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
name: 'Update Sharing Tag',
|
|
307
|
+
value: 'updateSharingTag',
|
|
308
|
+
action: 'Update sharing tag',
|
|
309
|
+
description: 'Update a sharing tag',
|
|
310
|
+
routing: {
|
|
311
|
+
request: {
|
|
312
|
+
method: 'PUT',
|
|
313
|
+
url: '=/api/v1/admin/sharing-tags/{{$parameter.sharingTagId}}',
|
|
314
|
+
},
|
|
315
|
+
},
|
|
316
|
+
},
|
|
317
|
+
],
|
|
318
|
+
default: 'listSettings',
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
displayName: 'Integration ID',
|
|
322
|
+
name: 'integrationId',
|
|
323
|
+
type: 'string',
|
|
324
|
+
default: '',
|
|
325
|
+
required: true,
|
|
326
|
+
displayOptions: {
|
|
327
|
+
show: {
|
|
328
|
+
...showOnlyForAdmin,
|
|
329
|
+
operation: [
|
|
330
|
+
'deleteIntegration',
|
|
331
|
+
'disableIntegration',
|
|
332
|
+
'enableIntegration',
|
|
333
|
+
'getIntegration',
|
|
334
|
+
'testIntegration',
|
|
335
|
+
'updateIntegration',
|
|
336
|
+
],
|
|
337
|
+
},
|
|
338
|
+
},
|
|
339
|
+
description: 'The ID of the integration',
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
displayName: 'Setting Key',
|
|
343
|
+
name: 'settingKey',
|
|
344
|
+
type: 'string',
|
|
345
|
+
default: '',
|
|
346
|
+
required: true,
|
|
347
|
+
displayOptions: {
|
|
348
|
+
show: {
|
|
349
|
+
...showOnlyForAdmin,
|
|
350
|
+
operation: ['deleteSetting', 'getSetting', 'getSettingHistory', 'resetSetting', 'updateSetting'],
|
|
351
|
+
},
|
|
352
|
+
},
|
|
353
|
+
description: 'The key of the setting',
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
displayName: 'Setting Value',
|
|
357
|
+
name: 'settingValue',
|
|
358
|
+
type: 'string',
|
|
359
|
+
default: '',
|
|
360
|
+
required: true,
|
|
361
|
+
displayOptions: {
|
|
362
|
+
show: {
|
|
363
|
+
...showOnlyForAdmin,
|
|
364
|
+
operation: ['updateSetting'],
|
|
365
|
+
},
|
|
366
|
+
},
|
|
367
|
+
description: 'The new value for the setting',
|
|
368
|
+
routing: {
|
|
369
|
+
send: {
|
|
370
|
+
type: 'body',
|
|
371
|
+
property: 'value',
|
|
372
|
+
},
|
|
373
|
+
},
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
displayName: 'Settings',
|
|
377
|
+
name: 'bulkSettings',
|
|
378
|
+
type: 'json',
|
|
379
|
+
default: '{}',
|
|
380
|
+
required: true,
|
|
381
|
+
displayOptions: {
|
|
382
|
+
show: {
|
|
383
|
+
...showOnlyForAdmin,
|
|
384
|
+
operation: ['updateBulkSettings'],
|
|
385
|
+
},
|
|
386
|
+
},
|
|
387
|
+
description: 'JSON object with setting keys and values',
|
|
388
|
+
routing: {
|
|
389
|
+
send: {
|
|
390
|
+
type: 'body',
|
|
391
|
+
property: 'settings',
|
|
392
|
+
},
|
|
393
|
+
},
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
displayName: 'Sharing Tag ID',
|
|
397
|
+
name: 'sharingTagId',
|
|
398
|
+
type: 'string',
|
|
399
|
+
default: '',
|
|
400
|
+
required: true,
|
|
401
|
+
displayOptions: {
|
|
402
|
+
show: {
|
|
403
|
+
...showOnlyForAdmin,
|
|
404
|
+
operation: ['deleteSharingTag', 'getSharingTag', 'updateSharingTag'],
|
|
405
|
+
},
|
|
406
|
+
},
|
|
407
|
+
description: 'The ID of the sharing tag',
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
displayName: 'Sharing Tag Name',
|
|
411
|
+
name: 'sharingTagName',
|
|
412
|
+
type: 'string',
|
|
413
|
+
default: '',
|
|
414
|
+
required: true,
|
|
415
|
+
displayOptions: {
|
|
416
|
+
show: {
|
|
417
|
+
...showOnlyForAdmin,
|
|
418
|
+
operation: ['createSharingTag', 'updateSharingTag'],
|
|
419
|
+
},
|
|
420
|
+
},
|
|
421
|
+
description: 'The name of the sharing tag',
|
|
422
|
+
routing: {
|
|
423
|
+
send: {
|
|
424
|
+
type: 'body',
|
|
425
|
+
property: 'name',
|
|
426
|
+
},
|
|
427
|
+
},
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
displayName: 'Integration Name',
|
|
431
|
+
name: 'integrationName',
|
|
432
|
+
type: 'string',
|
|
433
|
+
default: '',
|
|
434
|
+
required: true,
|
|
435
|
+
displayOptions: {
|
|
436
|
+
show: {
|
|
437
|
+
...showOnlyForAdmin,
|
|
438
|
+
operation: ['createIntegration'],
|
|
439
|
+
},
|
|
440
|
+
},
|
|
441
|
+
description: 'The name of the integration',
|
|
442
|
+
routing: {
|
|
443
|
+
send: {
|
|
444
|
+
type: 'body',
|
|
445
|
+
property: 'name',
|
|
446
|
+
},
|
|
447
|
+
},
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
displayName: 'Integration Type',
|
|
451
|
+
name: 'integrationType',
|
|
452
|
+
type: 'string',
|
|
453
|
+
default: '',
|
|
454
|
+
required: true,
|
|
455
|
+
displayOptions: {
|
|
456
|
+
show: {
|
|
457
|
+
...showOnlyForAdmin,
|
|
458
|
+
operation: ['createIntegration'],
|
|
459
|
+
},
|
|
460
|
+
},
|
|
461
|
+
description: 'The type of the integration',
|
|
462
|
+
routing: {
|
|
463
|
+
send: {
|
|
464
|
+
type: 'body',
|
|
465
|
+
property: 'type',
|
|
466
|
+
},
|
|
467
|
+
},
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
displayName: 'Integration Config',
|
|
471
|
+
name: 'integrationConfig',
|
|
472
|
+
type: 'json',
|
|
473
|
+
default: '{}',
|
|
474
|
+
displayOptions: {
|
|
475
|
+
show: {
|
|
476
|
+
...showOnlyForAdmin,
|
|
477
|
+
operation: ['createIntegration', 'updateIntegration'],
|
|
478
|
+
},
|
|
479
|
+
},
|
|
480
|
+
description: 'JSON configuration for the integration',
|
|
481
|
+
routing: {
|
|
482
|
+
send: {
|
|
483
|
+
type: 'body',
|
|
484
|
+
property: 'config',
|
|
485
|
+
},
|
|
486
|
+
},
|
|
487
|
+
},
|
|
488
|
+
];
|
|
489
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Codex/resources/admin/index.ts"],"names":[],"mappings":";;;AAEA,MAAM,gBAAgB,GAAG;IACxB,QAAQ,EAAE,CAAC,OAAO,CAAC;CACnB,CAAC;AAEW,QAAA,gBAAgB,GAAsB;IAClD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE,gBAAgB;SACtB;QACD,OAAO,EAAE;YACR;gBACC,IAAI,E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