@probo/n8n-nodes-probo 0.169.0 → 0.170.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/dist/nodes/Probo/Probo.node.js +5 -0
- package/dist/nodes/Probo/Probo.node.js.map +1 -1
- package/dist/nodes/Probo/actions/asset/create.operation.js +1 -1
- package/dist/nodes/Probo/actions/asset/get.operation.js +1 -1
- package/dist/nodes/Probo/actions/asset/getAll.operation.js +1 -1
- package/dist/nodes/Probo/actions/asset/update.operation.js +1 -1
- package/dist/nodes/Probo/actions/datum/create.operation.js +1 -1
- package/dist/nodes/Probo/actions/datum/get.operation.js +1 -1
- package/dist/nodes/Probo/actions/datum/getAll.operation.js +1 -1
- package/dist/nodes/Probo/actions/datum/update.operation.js +1 -1
- package/dist/nodes/Probo/actions/document/getAllSignatures.operation.js +1 -1
- package/dist/nodes/Probo/actions/document/getSignature.operation.js +1 -1
- package/dist/nodes/Probo/actions/document/requestSignature.operation.js +1 -1
- package/dist/nodes/Probo/actions/index.js +2 -0
- package/dist/nodes/Probo/actions/index.js.map +1 -1
- package/dist/nodes/Probo/actions/vendor/get.operation.js +2 -2
- package/dist/nodes/Probo/actions/vendor/getAll.operation.js +2 -2
- package/dist/nodes/Probo/actions/webhook/create.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/webhook/create.operation.js +96 -0
- package/dist/nodes/Probo/actions/webhook/create.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/webhook/delete.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/webhook/delete.operation.js +39 -0
- package/dist/nodes/Probo/actions/webhook/delete.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/webhook/get.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/webhook/get.operation.js +43 -0
- package/dist/nodes/Probo/actions/webhook/get.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/webhook/getAll.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/webhook/getAll.operation.js +89 -0
- package/dist/nodes/Probo/actions/webhook/getAll.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/webhook/getEvents.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/webhook/getEvents.operation.js +89 -0
- package/dist/nodes/Probo/actions/webhook/getEvents.operation.js.map +1 -0
- package/dist/nodes/Probo/actions/webhook/index.d.ts +9 -0
- package/dist/nodes/Probo/actions/webhook/index.js +107 -0
- package/dist/nodes/Probo/actions/webhook/index.js.map +1 -0
- package/dist/nodes/Probo/actions/webhook/update.operation.d.ts +3 -0
- package/dist/nodes/Probo/actions/webhook/update.operation.js +90 -0
- package/dist/nodes/Probo/actions/webhook/update.operation.js.map +1 -0
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.getEvents = exports.getAll = exports.get = exports.delete = exports.update = exports.create = exports.description = void 0;
|
|
37
|
+
const createOp = __importStar(require("./create.operation"));
|
|
38
|
+
exports.create = createOp;
|
|
39
|
+
const updateOp = __importStar(require("./update.operation"));
|
|
40
|
+
exports.update = updateOp;
|
|
41
|
+
const deleteOp = __importStar(require("./delete.operation"));
|
|
42
|
+
exports.delete = deleteOp;
|
|
43
|
+
const getOp = __importStar(require("./get.operation"));
|
|
44
|
+
exports.get = getOp;
|
|
45
|
+
const getAllOp = __importStar(require("./getAll.operation"));
|
|
46
|
+
exports.getAll = getAllOp;
|
|
47
|
+
const getEventsOp = __importStar(require("./getEvents.operation"));
|
|
48
|
+
exports.getEvents = getEventsOp;
|
|
49
|
+
exports.description = [
|
|
50
|
+
{
|
|
51
|
+
displayName: 'Operation',
|
|
52
|
+
name: 'operation',
|
|
53
|
+
type: 'options',
|
|
54
|
+
noDataExpression: true,
|
|
55
|
+
displayOptions: {
|
|
56
|
+
show: {
|
|
57
|
+
resource: ['webhook'],
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
options: [
|
|
61
|
+
{
|
|
62
|
+
name: 'Create',
|
|
63
|
+
value: 'create',
|
|
64
|
+
description: 'Create a new webhook subscription',
|
|
65
|
+
action: 'Create a webhook subscription',
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
name: 'Delete',
|
|
69
|
+
value: 'delete',
|
|
70
|
+
description: 'Delete a webhook subscription',
|
|
71
|
+
action: 'Delete a webhook subscription',
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
name: 'Get',
|
|
75
|
+
value: 'get',
|
|
76
|
+
description: 'Get a webhook subscription',
|
|
77
|
+
action: 'Get a webhook subscription',
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
name: 'Get Events',
|
|
81
|
+
value: 'getEvents',
|
|
82
|
+
description: 'Get delivery events for a webhook subscription',
|
|
83
|
+
action: 'Get webhook delivery events',
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
name: 'Get Many',
|
|
87
|
+
value: 'getAll',
|
|
88
|
+
description: 'Get many webhook subscriptions',
|
|
89
|
+
action: 'Get many webhook subscriptions',
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
name: 'Update',
|
|
93
|
+
value: 'update',
|
|
94
|
+
description: 'Update a webhook subscription',
|
|
95
|
+
action: 'Update a webhook subscription',
|
|
96
|
+
},
|
|
97
|
+
],
|
|
98
|
+
default: 'create',
|
|
99
|
+
},
|
|
100
|
+
...createOp.description,
|
|
101
|
+
...updateOp.description,
|
|
102
|
+
...deleteOp.description,
|
|
103
|
+
...getOp.description,
|
|
104
|
+
...getAllOp.description,
|
|
105
|
+
...getEventsOp.description,
|
|
106
|
+
];
|
|
107
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/webhook/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAeA,6DAA+C;AAkE1B,0BAAM;AAjE3B,6DAA+C;AAiEN,0BAAM;AAhE/C,6DAA+C;AAgEc,0BAAM;AA/DnE,uDAAyC;AA+DqC,oBAAG;AA9DjF,6DAA+C;AA8DgD,0B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
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.description = void 0;
|
|
4
|
+
exports.execute = execute;
|
|
5
|
+
const GenericFunctions_1 = require("../../GenericFunctions");
|
|
6
|
+
exports.description = [
|
|
7
|
+
{
|
|
8
|
+
displayName: 'Webhook Subscription ID',
|
|
9
|
+
name: 'webhookSubscriptionId',
|
|
10
|
+
type: 'string',
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: ['webhook'],
|
|
14
|
+
operation: ['update'],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
default: '',
|
|
18
|
+
description: 'The ID of the webhook subscription to update',
|
|
19
|
+
required: true,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
displayName: 'Endpoint URL',
|
|
23
|
+
name: 'endpointUrl',
|
|
24
|
+
type: 'string',
|
|
25
|
+
displayOptions: {
|
|
26
|
+
show: {
|
|
27
|
+
resource: ['webhook'],
|
|
28
|
+
operation: ['update'],
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
default: '',
|
|
32
|
+
description: 'The HTTPS endpoint URL that receives webhook events',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
displayName: 'Selected Events',
|
|
36
|
+
name: 'selectedEvents',
|
|
37
|
+
type: 'multiOptions',
|
|
38
|
+
displayOptions: {
|
|
39
|
+
show: {
|
|
40
|
+
resource: ['webhook'],
|
|
41
|
+
operation: ['update'],
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
options: [
|
|
45
|
+
{ name: 'Meeting Created', value: 'MEETING_CREATED' },
|
|
46
|
+
{ name: 'Meeting Deleted', value: 'MEETING_DELETED' },
|
|
47
|
+
{ name: 'Meeting Updated', value: 'MEETING_UPDATED' },
|
|
48
|
+
{ name: 'Obligation Created', value: 'OBLIGATION_CREATED' },
|
|
49
|
+
{ name: 'Obligation Deleted', value: 'OBLIGATION_DELETED' },
|
|
50
|
+
{ name: 'Obligation Updated', value: 'OBLIGATION_UPDATED' },
|
|
51
|
+
{ name: 'User Created', value: 'USER_CREATED' },
|
|
52
|
+
{ name: 'User Deleted', value: 'USER_DELETED' },
|
|
53
|
+
{ name: 'User Updated', value: 'USER_UPDATED' },
|
|
54
|
+
{ name: 'Vendor Created', value: 'VENDOR_CREATED' },
|
|
55
|
+
{ name: 'Vendor Deleted', value: 'VENDOR_DELETED' },
|
|
56
|
+
{ name: 'Vendor Updated', value: 'VENDOR_UPDATED' },
|
|
57
|
+
],
|
|
58
|
+
default: [],
|
|
59
|
+
description: 'The event types to subscribe to (replaces existing selection)',
|
|
60
|
+
},
|
|
61
|
+
];
|
|
62
|
+
async function execute(itemIndex) {
|
|
63
|
+
const webhookSubscriptionId = this.getNodeParameter('webhookSubscriptionId', itemIndex);
|
|
64
|
+
const endpointUrl = this.getNodeParameter('endpointUrl', itemIndex, '');
|
|
65
|
+
const selectedEvents = this.getNodeParameter('selectedEvents', itemIndex, []);
|
|
66
|
+
const query = `
|
|
67
|
+
mutation UpdateWebhookSubscription($input: UpdateWebhookSubscriptionInput!) {
|
|
68
|
+
updateWebhookSubscription(input: $input) {
|
|
69
|
+
webhookSubscription {
|
|
70
|
+
id
|
|
71
|
+
endpointUrl
|
|
72
|
+
selectedEvents
|
|
73
|
+
createdAt
|
|
74
|
+
updatedAt
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
`;
|
|
79
|
+
const input = { webhookSubscriptionId };
|
|
80
|
+
if (endpointUrl)
|
|
81
|
+
input.endpointUrl = endpointUrl;
|
|
82
|
+
if (selectedEvents !== undefined)
|
|
83
|
+
input.selectedEvents = selectedEvents;
|
|
84
|
+
const responseData = await GenericFunctions_1.proboApiRequest.call(this, query, { input });
|
|
85
|
+
return {
|
|
86
|
+
json: responseData,
|
|
87
|
+
pairedItem: { item: itemIndex },
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=update.operation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.operation.js","sourceRoot":"","sources":["../../../../../nodes/Probo/actions/webhook/update.operation.ts"],"names":[],"mappings":";;;AA0EA,0BAgCC;AA3FD,6DAAyD;AAE5C,QAAA,WAAW,GAAsB;IAC7C;QACC,WAAW,EAAE,yBAAyB;QACtC,IAAI,EAAE,uBAAuB;QAC7B,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,SAAS,CAAC;gBACrB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,8CAA8C;QAC3D,QAAQ,EAAE,IAAI;KACd;IACD;QACC,WAAW,EAAE,cAAc;QAC3B,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,SAAS,CAAC;gBACrB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,qDAAqD;KAClE;IACD;QACC,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,cAAc;QACpB,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,SAAS,CAAC;gBACrB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACrB;SACD;QACD,OAAO,EAAE;YACR,EAAE,IAAI,EAAE,iBAAiB,EAAE,KAAK,EAAE,iBAAiB,EAAE;YACrD,EAAE,IAAI,EAAE,iBAAiB,EAAE,KAAK,EAAE,iBAAiB,EAAE;YACrD,EAAE,IAAI,EAAE,iBAAiB,EAAE,KAAK,EAAE,iBAAiB,EAAE;YACrD,EAAE,IAAI,EAAE,oBAAoB,EAAE,KAAK,EAAE,oBAAoB,EAAE;YAC3D,EAAE,IAAI,EAAE,oBAAo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