@textbee/n8n-nodes-textbee 0.0.0-stage → 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 +22 -0
- package/NOTICE.md +20 -0
- package/README.md +109 -2
- package/dist/credentials/TextbeeApi.credentials.d.ts +10 -0
- package/dist/credentials/TextbeeApi.credentials.js +57 -0
- package/dist/credentials/TextbeeApi.credentials.js.map +1 -0
- package/dist/icons/textbee.dark.svg +1 -0
- package/dist/icons/textbee.svg +1 -0
- package/dist/nodes/Textbee/Textbee.node.d.ts +10 -0
- package/dist/nodes/Textbee/Textbee.node.js +80 -0
- package/dist/nodes/Textbee/Textbee.node.js.map +1 -0
- package/dist/nodes/Textbee/Textbee.node.json +19 -0
- package/dist/nodes/Textbee/listSearch/searchDevices.d.ts +2 -0
- package/dist/nodes/Textbee/listSearch/searchDevices.js +36 -0
- package/dist/nodes/Textbee/listSearch/searchDevices.js.map +1 -0
- package/dist/nodes/Textbee/resources/device/get.d.ts +19 -0
- package/dist/nodes/Textbee/resources/device/get.js +31 -0
- package/dist/nodes/Textbee/resources/device/get.js.map +1 -0
- package/dist/nodes/Textbee/resources/device/getAll.d.ts +16 -0
- package/dist/nodes/Textbee/resources/device/getAll.js +29 -0
- package/dist/nodes/Textbee/resources/device/getAll.js.map +1 -0
- package/dist/nodes/Textbee/resources/device/index.d.ts +2 -0
- package/dist/nodes/Textbee/resources/device/index.js +39 -0
- package/dist/nodes/Textbee/resources/device/index.js.map +1 -0
- package/dist/nodes/Textbee/resources/message/get.d.ts +19 -0
- package/dist/nodes/Textbee/resources/message/get.js +42 -0
- package/dist/nodes/Textbee/resources/message/get.js.map +1 -0
- package/dist/nodes/Textbee/resources/message/getAll.d.ts +16 -0
- package/dist/nodes/Textbee/resources/message/getAll.js +240 -0
- package/dist/nodes/Textbee/resources/message/getAll.js.map +1 -0
- package/dist/nodes/Textbee/resources/message/getBatch.d.ts +19 -0
- package/dist/nodes/Textbee/resources/message/getBatch.js +42 -0
- package/dist/nodes/Textbee/resources/message/getBatch.js.map +1 -0
- package/dist/nodes/Textbee/resources/message/index.d.ts +2 -0
- package/dist/nodes/Textbee/resources/message/index.js +66 -0
- package/dist/nodes/Textbee/resources/message/index.js.map +1 -0
- package/dist/nodes/Textbee/resources/message/send.d.ts +19 -0
- package/dist/nodes/Textbee/resources/message/send.js +124 -0
- package/dist/nodes/Textbee/resources/message/send.js.map +1 -0
- package/dist/nodes/Textbee/resources/message/sendBulk.d.ts +19 -0
- package/dist/nodes/Textbee/resources/message/sendBulk.js +110 -0
- package/dist/nodes/Textbee/resources/message/sendBulk.js.map +1 -0
- package/dist/nodes/Textbee/resources/stats/get.d.ts +16 -0
- package/dist/nodes/Textbee/resources/stats/get.js +29 -0
- package/dist/nodes/Textbee/resources/stats/get.js.map +1 -0
- package/dist/nodes/Textbee/resources/stats/index.d.ts +2 -0
- package/dist/nodes/Textbee/resources/stats/index.js +30 -0
- package/dist/nodes/Textbee/resources/stats/index.js.map +1 -0
- package/dist/nodes/Textbee/resources/webhook/create.d.ts +22 -0
- package/dist/nodes/Textbee/resources/webhook/create.js +98 -0
- package/dist/nodes/Textbee/resources/webhook/create.js.map +1 -0
- package/dist/nodes/Textbee/resources/webhook/delete.d.ts +19 -0
- package/dist/nodes/Textbee/resources/webhook/delete.js +35 -0
- package/dist/nodes/Textbee/resources/webhook/delete.js.map +1 -0
- package/dist/nodes/Textbee/resources/webhook/get.d.ts +20 -0
- package/dist/nodes/Textbee/resources/webhook/get.js +35 -0
- package/dist/nodes/Textbee/resources/webhook/get.js.map +1 -0
- package/dist/nodes/Textbee/resources/webhook/getAll.d.ts +17 -0
- package/dist/nodes/Textbee/resources/webhook/getAll.js +30 -0
- package/dist/nodes/Textbee/resources/webhook/getAll.js.map +1 -0
- package/dist/nodes/Textbee/resources/webhook/getNotifications.d.ts +20 -0
- package/dist/nodes/Textbee/resources/webhook/getNotifications.js +213 -0
- package/dist/nodes/Textbee/resources/webhook/getNotifications.js.map +1 -0
- package/dist/nodes/Textbee/resources/webhook/index.d.ts +2 -0
- package/dist/nodes/Textbee/resources/webhook/index.js +75 -0
- package/dist/nodes/Textbee/resources/webhook/index.js.map +1 -0
- package/dist/nodes/Textbee/resources/webhook/update.d.ts +20 -0
- package/dist/nodes/Textbee/resources/webhook/update.js +115 -0
- package/dist/nodes/Textbee/resources/webhook/update.js.map +1 -0
- package/dist/nodes/Textbee/shared/baseUrl.d.ts +2 -0
- package/dist/nodes/Textbee/shared/baseUrl.js +17 -0
- package/dist/nodes/Textbee/shared/baseUrl.js.map +1 -0
- package/dist/nodes/Textbee/shared/bulk.d.ts +20 -0
- package/dist/nodes/Textbee/shared/bulk.js +56 -0
- package/dist/nodes/Textbee/shared/bulk.js.map +1 -0
- package/dist/nodes/Textbee/shared/descriptions.d.ts +8 -0
- package/dist/nodes/Textbee/shared/descriptions.js +46 -0
- package/dist/nodes/Textbee/shared/descriptions.js.map +1 -0
- package/dist/nodes/Textbee/shared/signature.d.ts +2 -0
- package/dist/nodes/Textbee/shared/signature.js +16 -0
- package/dist/nodes/Textbee/shared/signature.js.map +1 -0
- package/dist/nodes/Textbee/shared/subscription.d.ts +15 -0
- package/dist/nodes/Textbee/shared/subscription.js +30 -0
- package/dist/nodes/Textbee/shared/subscription.js.map +1 -0
- package/dist/nodes/Textbee/shared/transport.d.ts +5 -0
- package/dist/nodes/Textbee/shared/transport.js +29 -0
- package/dist/nodes/Textbee/shared/transport.js.map +1 -0
- package/dist/nodes/Textbee/shared/validation.d.ts +5 -0
- package/dist/nodes/Textbee/shared/validation.js +52 -0
- package/dist/nodes/Textbee/shared/validation.js.map +1 -0
- package/dist/nodes/TextbeeTrigger/TextbeeTrigger.node.d.ts +12 -0
- package/dist/nodes/TextbeeTrigger/TextbeeTrigger.node.js +220 -0
- package/dist/nodes/TextbeeTrigger/TextbeeTrigger.node.js.map +1 -0
- package/dist/nodes/TextbeeTrigger/TextbeeTrigger.node.json +22 -0
- package/package.json +72 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"send.js","sourceRoot":"","sources":["../../../../../nodes/Textbee/resources/message/send.ts"],"names":[],"mappings":";;;AAEA,wDAA2D;AAC3D,4DAAoF;AAEpF,MAAM,sBAAsB,GAAG;IAC9B,SAAS,EAAE,CAAC,MAAM,CAAC;IACnB,QAAQ,EAAE,CAAC,SAAS,CAAC;CACrB,CAAC;AAEW,QAAA,sBAAsB,GAAsB;IACxD;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE;YACZ,IAAI,EAAE,CAAC;SACP;QACD,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,wEAAwE;QACrF,cAAc,EAAE;YACf,IAAI,EAAE,sBAAsB;SAC5B;QACD,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,SAAS;aACnB;SACD;KACD;IACD;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,4BAA4B;QACzC,WAAW,EACV,kIAAkI;QACnI,cAAc,EAAE;YACf,IAAI,EAAE,sBAAsB;SAC5B;QACD,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,YAAY;gBACtB,KAAK,EAAE,4EAA4E;aACnF;SACD;KACD;IACD;QACC,GAAG,+BAAgB;QACnB,cAAc,EAAE;YACf,IAAI,EAAE,sBAAsB;SAC5B;QACD,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,UAAU;gBACpB,KAAK,EAAE,0DAA0D;aACjE;SACD;KACD;IACD;QACC,WAAW,EAAE,mBAAmB;QAChC,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,WAAW;QACxB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACf,IAAI,EAAE,sBAAsB;SAC5B;QACD,OAAO,EAAE;YACR;gBACC,WAAW,EAAE,qBAAqB;gBAClC,IAAI,EAAE,mBAAmB;gBACzB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,CAAC;gBACV,WAAW,EACV,iIAAiI;gBAClI,OAAO,EAAE;oBACR,IAAI,EAAE;wBACL,IAAI,EAAE,MAAM;wBACZ,QAAQ,EAAE,mBAAmB;qBAC7B;iBACD;aACD;YACD;gBACC,WAAW,EAAE,cAAc;gBAC3B,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,UAAU;gBAChB,OAAO,EAAE,EAAE;gBACX,WAAW,EACV,oGAAoG;gBACrG,OAAO,EAAE;oBACR,IAAI,EAAE;wBACL,IAAI,EAAE,MAAM;wBACZ,QAAQ,EAAE,aAAa;wBACvB,KAAK,EAAE,4DAA4D;qBACnE;iBACD;aACD;SACD;KACD;IACD;QACC,WAAW,EACV,0JAA0J;QAC3J,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACf,IAAI,EAAE,sBAAsB;SAC5B;KACD;CACD,CAAC;AAEW,QAAA,kBAAkB,GAAG;IACjC,IAAI,EAAE;QACL,OAAO,EAAE,CAAC,IAAA,6BAAgB,EAAC,WAAW,CAAC,CAAC;KACxC;IACD,OAAO,EAAE;QACR,MAAM,EAAE,MAAe;QACvB,GAAG,EAAE,mBAAmB;KACxB;IACD,MAAM,EAAE;QACP,WAAW,EAAE,oCAAqB;KAClC;CACD,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare const messageSendBulkDescription: INodeProperties[];
|
|
3
|
+
export declare const messageSendBulkRouting: {
|
|
4
|
+
send: {
|
|
5
|
+
preSend: ((this: import("n8n-workflow").IExecuteSingleFunctions, requestOptions: import("n8n-workflow").IHttpRequestOptions) => Promise<import("n8n-workflow").IHttpRequestOptions>)[];
|
|
6
|
+
};
|
|
7
|
+
request: {
|
|
8
|
+
method: "POST";
|
|
9
|
+
url: string;
|
|
10
|
+
};
|
|
11
|
+
output: {
|
|
12
|
+
postReceive: {
|
|
13
|
+
type: "rootProperty";
|
|
14
|
+
properties: {
|
|
15
|
+
property: string;
|
|
16
|
+
};
|
|
17
|
+
}[];
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.messageSendBulkRouting = exports.messageSendBulkDescription = void 0;
|
|
4
|
+
const bulk_1 = require("../../shared/bulk");
|
|
5
|
+
const validation_1 = require("../../shared/validation");
|
|
6
|
+
const descriptions_1 = require("../../shared/descriptions");
|
|
7
|
+
const showOnlyForMessageSendBulk = {
|
|
8
|
+
operation: ['sendBulk'],
|
|
9
|
+
resource: ['message'],
|
|
10
|
+
};
|
|
11
|
+
exports.messageSendBulkDescription = [
|
|
12
|
+
{
|
|
13
|
+
displayName: 'Messages',
|
|
14
|
+
name: 'messages',
|
|
15
|
+
type: 'fixedCollection',
|
|
16
|
+
typeOptions: {
|
|
17
|
+
multipleValues: true,
|
|
18
|
+
},
|
|
19
|
+
placeholder: 'Add Message',
|
|
20
|
+
default: {},
|
|
21
|
+
required: true,
|
|
22
|
+
displayOptions: {
|
|
23
|
+
show: showOnlyForMessageSendBulk,
|
|
24
|
+
},
|
|
25
|
+
options: [
|
|
26
|
+
{
|
|
27
|
+
displayName: 'Message',
|
|
28
|
+
name: 'messageValues',
|
|
29
|
+
values: [
|
|
30
|
+
{
|
|
31
|
+
displayName: 'Message',
|
|
32
|
+
name: 'message',
|
|
33
|
+
type: 'string',
|
|
34
|
+
typeOptions: {
|
|
35
|
+
rows: 3,
|
|
36
|
+
},
|
|
37
|
+
default: '',
|
|
38
|
+
required: true,
|
|
39
|
+
description: 'Text of this SMS entry',
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
displayName: 'Recipients',
|
|
43
|
+
name: 'recipients',
|
|
44
|
+
type: 'string',
|
|
45
|
+
default: '',
|
|
46
|
+
required: true,
|
|
47
|
+
placeholder: '+12015550123',
|
|
48
|
+
description: 'E.164 numbers, comma-separated',
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
displayName: 'SIM Subscription ID',
|
|
52
|
+
name: 'simSubscriptionId',
|
|
53
|
+
type: 'number',
|
|
54
|
+
default: 0,
|
|
55
|
+
description: 'SIM subscription ID for this entry. Leave at 0 to use the device default SIM.',
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
displayName: 'Scheduled At',
|
|
59
|
+
name: 'scheduledAt',
|
|
60
|
+
type: 'dateTime',
|
|
61
|
+
default: '',
|
|
62
|
+
description: 'Optional ISO schedule time (up to 72 hours ahead)',
|
|
63
|
+
},
|
|
64
|
+
],
|
|
65
|
+
},
|
|
66
|
+
],
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
...descriptions_1.deviceIdProperty,
|
|
70
|
+
displayOptions: {
|
|
71
|
+
show: showOnlyForMessageSendBulk,
|
|
72
|
+
},
|
|
73
|
+
routing: {
|
|
74
|
+
send: {
|
|
75
|
+
type: 'body',
|
|
76
|
+
property: 'deviceId',
|
|
77
|
+
value: '={{ $value && $value.value ? $value.value : undefined }}',
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
displayName: 'Message Template Label',
|
|
83
|
+
name: 'messageTemplate',
|
|
84
|
+
type: 'string',
|
|
85
|
+
default: '',
|
|
86
|
+
description: 'Optional label for the batch (not the SMS body)',
|
|
87
|
+
displayOptions: {
|
|
88
|
+
show: showOnlyForMessageSendBulk,
|
|
89
|
+
},
|
|
90
|
+
routing: {
|
|
91
|
+
send: {
|
|
92
|
+
type: 'body',
|
|
93
|
+
property: 'messageTemplate',
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
];
|
|
98
|
+
exports.messageSendBulkRouting = {
|
|
99
|
+
send: {
|
|
100
|
+
preSend: [(0, validation_1.requireObjectIds)('deviceId?'), bulk_1.bulkMessagesPreSend],
|
|
101
|
+
},
|
|
102
|
+
request: {
|
|
103
|
+
method: 'POST',
|
|
104
|
+
url: '/gateway/send-bulk-sms',
|
|
105
|
+
},
|
|
106
|
+
output: {
|
|
107
|
+
postReceive: descriptions_1.unwrapDataPostReceive,
|
|
108
|
+
},
|
|
109
|
+
};
|
|
110
|
+
//# sourceMappingURL=sendBulk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sendBulk.js","sourceRoot":"","sources":["../../../../../nodes/Textbee/resources/message/sendBulk.ts"],"names":[],"mappings":";;;AAEA,4CAAwD;AACxD,wDAA2D;AAC3D,4DAAoF;AAEpF,MAAM,0BAA0B,GAAG;IAClC,SAAS,EAAE,CAAC,UAAU,CAAC;IACvB,QAAQ,EAAE,CAAC,SAAS,CAAC;CACrB,CAAC;AAEW,QAAA,0BAA0B,GAAsB;IAC5D;QACC,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,iBAAiB;QACvB,WAAW,EAAE;YACZ,cAAc,EAAE,IAAI;SACpB;QACD,WAAW,EAAE,aAAa;QAC1B,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE,0BAA0B;SAChC;QACD,OAAO,EAAE;YACR;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,eAAe;gBACrB,MAAM,EAAE;oBACP;wBACC,WAAW,EAAE,SAAS;wBACtB,IAAI,EAAE,SAAS;wBACf,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE;4BACZ,IAAI,EAAE,CAAC;yBACP;wBACD,OAAO,EAAE,EAAE;wBACX,QAAQ,EAAE,IAAI;wBACd,WAAW,EAAE,wBAAwB;qBACrC;oBACD;wBACC,WAAW,EAAE,YAAY;wBACzB,IAAI,EAAE,YAAY;wBAClB,IAAI,EAAE,QAAQ;wBACd,OAAO,EAAE,EAAE;wBACX,QAAQ,EAAE,IAAI;wBACd,WAAW,EAAE,cAAc;wBAC3B,WAAW,EAAE,gCAAgC;qBAC7C;oBACD;wBACC,WAAW,EAAE,qBAAqB;wBAClC,IAAI,EAAE,mBAAmB;wBACzB,IAAI,EAAE,QAAQ;wBACd,OAAO,EAAE,CAAC;wBACV,WAAW,EACV,+EAA+E;qBAChF;oBACD;wBACC,WAAW,EAAE,cAAc;wBAC3B,IAAI,EAAE,aAAa;wBACnB,IAAI,EAAE,UAAU;wBAChB,OAAO,EAAE,EAAE;wBACX,WAAW,EAAE,mDAAmD;qBAChE;iBACD;aACD;SACD;KACD;IACD;QACC,GAAG,+BAAgB;QACnB,cAAc,EAAE;YACf,IAAI,EAAE,0BAA0B;SAChC;QACD,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,UAAU;gBACpB,KAAK,EAAE,0DAA0D;aACjE;SACD;KACD;IACD;QACC,WAAW,EAAE,wBAAwB;QACrC,IAAI,EAAE,iBAAiB;QACvB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,iDAAiD;QAC9D,cAAc,EAAE;YACf,IAAI,EAAE,0BAA0B;SAChC;QACD,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,iBAAiB;aAC3B;SACD;KACD;CACD,CAAC;AAEW,QAAA,sBAAsB,GAAG;IACrC,IAAI,EAAE;QACL,OAAO,EAAE,CAAC,IAAA,6BAAgB,EAAC,WAAW,CAAC,EAAE,0BAAmB,CAAC;KAC7D;IACD,OAAO,EAAE;QACR,MAAM,EAAE,MAAe;QACvB,GAAG,EAAE,wBAAwB;KAC7B;IACD,MAAM,EAAE;QACP,WAAW,EAAE,oCAAqB;KAClC;CACD,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare const statsGetDescription: INodeProperties[];
|
|
3
|
+
export declare const statsGetRouting: {
|
|
4
|
+
request: {
|
|
5
|
+
method: "GET";
|
|
6
|
+
url: string;
|
|
7
|
+
};
|
|
8
|
+
output: {
|
|
9
|
+
postReceive: {
|
|
10
|
+
type: "rootProperty";
|
|
11
|
+
properties: {
|
|
12
|
+
property: string;
|
|
13
|
+
};
|
|
14
|
+
}[];
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.statsGetRouting = exports.statsGetDescription = void 0;
|
|
4
|
+
const descriptions_1 = require("../../shared/descriptions");
|
|
5
|
+
const showOnlyForStatsGet = {
|
|
6
|
+
operation: ['get'],
|
|
7
|
+
resource: ['account'],
|
|
8
|
+
};
|
|
9
|
+
exports.statsGetDescription = [
|
|
10
|
+
{
|
|
11
|
+
displayName: 'This returns account totals: sent SMS, received SMS, devices, and API keys.',
|
|
12
|
+
name: 'statsNotice',
|
|
13
|
+
type: 'notice',
|
|
14
|
+
default: '',
|
|
15
|
+
displayOptions: {
|
|
16
|
+
show: showOnlyForStatsGet,
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
];
|
|
20
|
+
exports.statsGetRouting = {
|
|
21
|
+
request: {
|
|
22
|
+
method: 'GET',
|
|
23
|
+
url: '/gateway/stats',
|
|
24
|
+
},
|
|
25
|
+
output: {
|
|
26
|
+
postReceive: descriptions_1.unwrapDataPostReceive,
|
|
27
|
+
},
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=get.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../../../nodes/Textbee/resources/stats/get.ts"],"names":[],"mappings":";;;AAEA,4DAAkE;AAElE,MAAM,mBAAmB,GAAG;IAC3B,SAAS,EAAE,CAAC,KAAK,CAAC;IAClB,QAAQ,EAAE,CAAC,SAAS,CAAC;CACrB,CAAC;AAEW,QAAA,mBAAmB,GAAsB;IACrD;QACC,WAAW,EAAE,6EAA6E;QAC1F,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACf,IAAI,EAAE,mBAAmB;SACzB;KACD;CACD,CAAC;AAEW,QAAA,eAAe,GAAG;IAC9B,OAAO,EAAE;QACR,MAAM,EAAE,KAAc;QACtB,GAAG,EAAE,gBAAgB;KACrB;IACD,MAAM,EAAE;QACP,WAAW,EAAE,oCAAqB;KAClC;CACD,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.statsDescription = void 0;
|
|
4
|
+
const get_1 = require("./get");
|
|
5
|
+
const showOnlyForStats = {
|
|
6
|
+
resource: ['account'],
|
|
7
|
+
};
|
|
8
|
+
exports.statsDescription = [
|
|
9
|
+
{
|
|
10
|
+
displayName: 'Operation',
|
|
11
|
+
name: 'operation',
|
|
12
|
+
type: 'options',
|
|
13
|
+
noDataExpression: true,
|
|
14
|
+
displayOptions: {
|
|
15
|
+
show: showOnlyForStats,
|
|
16
|
+
},
|
|
17
|
+
options: [
|
|
18
|
+
{
|
|
19
|
+
name: 'Get',
|
|
20
|
+
value: 'get',
|
|
21
|
+
action: 'Get account stats',
|
|
22
|
+
description: 'Get account totals for sent/received SMS, devices, and API keys',
|
|
23
|
+
routing: get_1.statsGetRouting,
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
default: 'get',
|
|
27
|
+
},
|
|
28
|
+
...get_1.statsGetDescription,
|
|
29
|
+
];
|
|
30
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Textbee/resources/stats/index.ts"],"names":[],"mappings":";;;AAEA,+BAA6D;AAE7D,MAAM,gBAAgB,GAAG;IACxB,QAAQ,EAAE,CAAC,SAAS,CAAC;CACrB,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,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,mBAAmB;gBAC3B,WAAW,EAAE,iEAAiE;gBAC9E,OAAO,EAAE,qBAAe;aACxB;SACD;QACD,OAAO,EAAE,KAAK;KACd;IACD,GAAG,yBAAmB;CACtB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { INodeProperties } from 'n8n-workflow';
|
|
2
|
+
import { stripSecretsPostReceive } from '../../shared/validation';
|
|
3
|
+
declare const eventOptions: {
|
|
4
|
+
name: string;
|
|
5
|
+
value: string;
|
|
6
|
+
}[];
|
|
7
|
+
export declare const webhookCreateDescription: INodeProperties[];
|
|
8
|
+
export declare const webhookCreateRouting: {
|
|
9
|
+
request: {
|
|
10
|
+
method: "POST";
|
|
11
|
+
url: string;
|
|
12
|
+
};
|
|
13
|
+
output: {
|
|
14
|
+
postReceive: ({
|
|
15
|
+
type: "rootProperty";
|
|
16
|
+
properties: {
|
|
17
|
+
property: string;
|
|
18
|
+
};
|
|
19
|
+
} | typeof stripSecretsPostReceive)[];
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export { eventOptions };
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.eventOptions = exports.webhookCreateRouting = exports.webhookCreateDescription = void 0;
|
|
4
|
+
const validation_1 = require("../../shared/validation");
|
|
5
|
+
const descriptions_1 = require("../../shared/descriptions");
|
|
6
|
+
const showOnlyForWebhookCreate = {
|
|
7
|
+
operation: ['create'],
|
|
8
|
+
resource: ['webhook'],
|
|
9
|
+
};
|
|
10
|
+
const eventOptions = [
|
|
11
|
+
{ name: 'Message Delivered', value: 'MESSAGE_DELIVERED' },
|
|
12
|
+
{ name: 'Message Failed', value: 'MESSAGE_FAILED' },
|
|
13
|
+
{ name: 'Message Received', value: 'MESSAGE_RECEIVED' },
|
|
14
|
+
{ name: 'Message Sent', value: 'MESSAGE_SENT' },
|
|
15
|
+
{ name: 'Unknown State', value: 'UNKNOWN_STATE' },
|
|
16
|
+
];
|
|
17
|
+
exports.eventOptions = eventOptions;
|
|
18
|
+
exports.webhookCreateDescription = [
|
|
19
|
+
{
|
|
20
|
+
displayName: 'Delivery URL',
|
|
21
|
+
name: 'deliveryUrl',
|
|
22
|
+
type: 'string',
|
|
23
|
+
default: '',
|
|
24
|
+
required: true,
|
|
25
|
+
description: 'Public http(s) URL that receives POSTs. Private and loopback hosts are rejected by textbee.',
|
|
26
|
+
displayOptions: {
|
|
27
|
+
show: showOnlyForWebhookCreate,
|
|
28
|
+
},
|
|
29
|
+
routing: {
|
|
30
|
+
send: {
|
|
31
|
+
type: 'body',
|
|
32
|
+
property: 'deliveryUrl',
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
displayName: 'Signing Secret',
|
|
38
|
+
name: 'signingSecret',
|
|
39
|
+
type: 'string',
|
|
40
|
+
typeOptions: { password: true },
|
|
41
|
+
default: '',
|
|
42
|
+
required: true,
|
|
43
|
+
description: 'Shared secret, at least 20 characters. textbee signs each delivery with it.',
|
|
44
|
+
displayOptions: {
|
|
45
|
+
show: showOnlyForWebhookCreate,
|
|
46
|
+
},
|
|
47
|
+
routing: {
|
|
48
|
+
send: {
|
|
49
|
+
type: 'body',
|
|
50
|
+
property: 'signingSecret',
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
displayName: 'Events',
|
|
56
|
+
name: 'events',
|
|
57
|
+
type: 'multiOptions',
|
|
58
|
+
options: eventOptions,
|
|
59
|
+
default: ['MESSAGE_RECEIVED'],
|
|
60
|
+
required: true,
|
|
61
|
+
description: 'Events to deliver',
|
|
62
|
+
displayOptions: {
|
|
63
|
+
show: showOnlyForWebhookCreate,
|
|
64
|
+
},
|
|
65
|
+
routing: {
|
|
66
|
+
send: {
|
|
67
|
+
type: 'body',
|
|
68
|
+
property: 'events',
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
displayName: 'Name',
|
|
74
|
+
name: 'name',
|
|
75
|
+
type: 'string',
|
|
76
|
+
default: '',
|
|
77
|
+
description: 'Label shown in the dashboard (up to 64 characters)',
|
|
78
|
+
displayOptions: {
|
|
79
|
+
show: showOnlyForWebhookCreate,
|
|
80
|
+
},
|
|
81
|
+
routing: {
|
|
82
|
+
send: {
|
|
83
|
+
type: 'body',
|
|
84
|
+
property: 'name',
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
];
|
|
89
|
+
exports.webhookCreateRouting = {
|
|
90
|
+
request: {
|
|
91
|
+
method: 'POST',
|
|
92
|
+
url: '/webhooks',
|
|
93
|
+
},
|
|
94
|
+
output: {
|
|
95
|
+
postReceive: [...descriptions_1.unwrapDataPostReceive, validation_1.stripSecretsPostReceive],
|
|
96
|
+
},
|
|
97
|
+
};
|
|
98
|
+
//# sourceMappingURL=create.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../../nodes/Textbee/resources/webhook/create.ts"],"names":[],"mappings":";;;AAEA,wDAAkE;AAClE,4DAAkE;AAElE,MAAM,wBAAwB,GAAG;IAChC,SAAS,EAAE,CAAC,QAAQ,CAAC;IACrB,QAAQ,EAAE,CAAC,SAAS,CAAC;CACrB,CAAC;AAEF,MAAM,YAAY,GAAG;IACpB,EAAE,IAAI,EAAE,mBAAmB,EAAE,KAAK,EAAE,mBAAmB,EAAE;IACzD,EAAE,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,gBAAgB,EAAE;IACnD,EAAE,IAAI,EAAE,kBAAkB,EAAE,KAAK,EAAE,kBAAkB,EAAE;IACvD,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,cAAc,EAAE;IAC/C,EAAE,IAAI,EAAE,eAAe,EAAE,KAAK,EAAE,eAAe,EAAE;CACjD,CAAC;AAqFO,oCAAY;AAnFR,QAAA,wBAAwB,GAAsB;IAC1D;QACC,WAAW,EAAE,cAAc;QAC3B,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,WAAW,EACV,6FAA6F;QAC9F,cAAc,EAAE;YACf,IAAI,EAAE,wBAAwB;SAC9B;QACD,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,aAAa;aACvB;SACD;KACD;IACD;QACC,WAAW,EAAE,gBAAgB;QAC7B,IAAI,EAAE,eAAe;QACrB,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC/B,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,6EAA6E;QAC1F,cAAc,EAAE;YACf,IAAI,EAAE,wBAAwB;SAC9B;QACD,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,eAAe;aACzB;SACD;KACD;IACD;QACC,WAAW,EAAE,QAAQ;QACrB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,cAAc;QACpB,OAAO,EAAE,YAAY;QACrB,OAAO,EAAE,CAAC,kBAAkB,CAAC;QAC7B,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,mBAAmB;QAChC,cAAc,EAAE;YACf,IAAI,EAAE,wBAAwB;SAC9B;QACD,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,QAAQ;aAClB;SACD;KACD;IACD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,oDAAoD;QACjE,cAAc,EAAE;YACf,IAAI,EAAE,wBAAwB;SAC9B;QACD,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,MAAM;aAChB;SACD;KACD;CACD,CAAC;AAEW,QAAA,oBAAoB,GAAG;IACnC,OAAO,EAAE;QACR,MAAM,EAAE,MAAe;QACvB,GAAG,EAAE,WAAW;KAChB;IACD,MAAM,EAAE;QACP,WAAW,EAAE,CAAC,GAAG,oCAAqB,EAAE,oCAAuB,CAAC;KAChE;CACD,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare const webhookDeleteDescription: INodeProperties[];
|
|
3
|
+
export declare const webhookDeleteRouting: {
|
|
4
|
+
send: {
|
|
5
|
+
preSend: ((this: import("n8n-workflow").IExecuteSingleFunctions, requestOptions: import("n8n-workflow").IHttpRequestOptions) => Promise<import("n8n-workflow").IHttpRequestOptions>)[];
|
|
6
|
+
};
|
|
7
|
+
request: {
|
|
8
|
+
method: "DELETE";
|
|
9
|
+
url: string;
|
|
10
|
+
};
|
|
11
|
+
output: {
|
|
12
|
+
postReceive: {
|
|
13
|
+
type: "rootProperty";
|
|
14
|
+
properties: {
|
|
15
|
+
property: string;
|
|
16
|
+
};
|
|
17
|
+
}[];
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.webhookDeleteRouting = exports.webhookDeleteDescription = void 0;
|
|
4
|
+
const validation_1 = require("../../shared/validation");
|
|
5
|
+
const descriptions_1 = require("../../shared/descriptions");
|
|
6
|
+
const showOnlyForWebhookDelete = {
|
|
7
|
+
operation: ['delete'],
|
|
8
|
+
resource: ['webhook'],
|
|
9
|
+
};
|
|
10
|
+
exports.webhookDeleteDescription = [
|
|
11
|
+
{
|
|
12
|
+
displayName: 'Webhook ID',
|
|
13
|
+
name: 'webhookId',
|
|
14
|
+
type: 'string',
|
|
15
|
+
default: '',
|
|
16
|
+
required: true,
|
|
17
|
+
description: 'Subscription ID to delete',
|
|
18
|
+
displayOptions: {
|
|
19
|
+
show: showOnlyForWebhookDelete,
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
];
|
|
23
|
+
exports.webhookDeleteRouting = {
|
|
24
|
+
send: {
|
|
25
|
+
preSend: [(0, validation_1.requireObjectIds)('webhookId')],
|
|
26
|
+
},
|
|
27
|
+
request: {
|
|
28
|
+
method: 'DELETE',
|
|
29
|
+
url: '=/webhooks/{{$parameter.webhookId}}',
|
|
30
|
+
},
|
|
31
|
+
output: {
|
|
32
|
+
postReceive: descriptions_1.unwrapDataPostReceive,
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=delete.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete.js","sourceRoot":"","sources":["../../../../../nodes/Textbee/resources/webhook/delete.ts"],"names":[],"mappings":";;;AAEA,wDAA2D;AAC3D,4DAAkE;AAElE,MAAM,wBAAwB,GAAG;IAChC,SAAS,EAAE,CAAC,QAAQ,CAAC;IACrB,QAAQ,EAAE,CAAC,SAAS,CAAC;CACrB,CAAC;AAEW,QAAA,wBAAwB,GAAsB;IAC1D;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,2BAA2B;QACxC,cAAc,EAAE;YACf,IAAI,EAAE,wBAAwB;SAC9B;KACD;CACD,CAAC;AAEW,QAAA,oBAAoB,GAAG;IACnC,IAAI,EAAE;QACL,OAAO,EAAE,CAAC,IAAA,6BAAgB,EAAC,WAAW,CAAC,CAAC;KACxC;IACD,OAAO,EAAE;QACR,MAAM,EAAE,QAAiB;QACzB,GAAG,EAAE,qCAAqC;KAC1C;IACD,MAAM,EAAE;QACP,WAAW,EAAE,oCAAqB;KAClC;CACD,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { INodeProperties } from 'n8n-workflow';
|
|
2
|
+
import { stripSecretsPostReceive } from '../../shared/validation';
|
|
3
|
+
export declare const webhookGetDescription: INodeProperties[];
|
|
4
|
+
export declare const webhookGetRouting: {
|
|
5
|
+
send: {
|
|
6
|
+
preSend: ((this: import("n8n-workflow").IExecuteSingleFunctions, requestOptions: import("n8n-workflow").IHttpRequestOptions) => Promise<import("n8n-workflow").IHttpRequestOptions>)[];
|
|
7
|
+
};
|
|
8
|
+
request: {
|
|
9
|
+
method: "GET";
|
|
10
|
+
url: string;
|
|
11
|
+
};
|
|
12
|
+
output: {
|
|
13
|
+
postReceive: ({
|
|
14
|
+
type: "rootProperty";
|
|
15
|
+
properties: {
|
|
16
|
+
property: string;
|
|
17
|
+
};
|
|
18
|
+
} | typeof stripSecretsPostReceive)[];
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.webhookGetRouting = exports.webhookGetDescription = void 0;
|
|
4
|
+
const validation_1 = require("../../shared/validation");
|
|
5
|
+
const descriptions_1 = require("../../shared/descriptions");
|
|
6
|
+
const showOnlyForWebhookGet = {
|
|
7
|
+
operation: ['get'],
|
|
8
|
+
resource: ['webhook'],
|
|
9
|
+
};
|
|
10
|
+
exports.webhookGetDescription = [
|
|
11
|
+
{
|
|
12
|
+
displayName: 'Webhook ID',
|
|
13
|
+
name: 'webhookId',
|
|
14
|
+
type: 'string',
|
|
15
|
+
default: '',
|
|
16
|
+
required: true,
|
|
17
|
+
description: 'Subscription ID from GET /webhooks',
|
|
18
|
+
displayOptions: {
|
|
19
|
+
show: showOnlyForWebhookGet,
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
];
|
|
23
|
+
exports.webhookGetRouting = {
|
|
24
|
+
send: {
|
|
25
|
+
preSend: [(0, validation_1.requireObjectIds)('webhookId')],
|
|
26
|
+
},
|
|
27
|
+
request: {
|
|
28
|
+
method: 'GET',
|
|
29
|
+
url: '=/webhooks/{{$parameter.webhookId}}',
|
|
30
|
+
},
|
|
31
|
+
output: {
|
|
32
|
+
postReceive: [...descriptions_1.unwrapDataPostReceive, validation_1.stripSecretsPostReceive],
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=get.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../../../nodes/Textbee/resources/webhook/get.ts"],"names":[],"mappings":";;;AAEA,wDAAoF;AACpF,4DAAkE;AAElE,MAAM,qBAAqB,GAAG;IAC7B,SAAS,EAAE,CAAC,KAAK,CAAC;IAClB,QAAQ,EAAE,CAAC,SAAS,CAAC;CACrB,CAAC;AAEW,QAAA,qBAAqB,GAAsB;IACvD;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,oCAAoC;QACjD,cAAc,EAAE;YACf,IAAI,EAAE,qBAAqB;SAC3B;KACD;CACD,CAAC;AAEW,QAAA,iBAAiB,GAAG;IAChC,IAAI,EAAE;QACL,OAAO,EAAE,CAAC,IAAA,6BAAgB,EAAC,WAAW,CAAC,CAAC;KACxC;IACD,OAAO,EAAE;QACR,MAAM,EAAE,KAAc;QACtB,GAAG,EAAE,qCAAqC;KAC1C;IACD,MAAM,EAAE;QACP,WAAW,EAAE,CAAC,GAAG,oCAAqB,EAAE,oCAAuB,CAAC;KAChE;CACD,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { INodeProperties } from 'n8n-workflow';
|
|
2
|
+
import { stripSecretsPostReceive } from '../../shared/validation';
|
|
3
|
+
export declare const webhookGetManyDescription: INodeProperties[];
|
|
4
|
+
export declare const webhookGetManyRouting: {
|
|
5
|
+
request: {
|
|
6
|
+
method: "GET";
|
|
7
|
+
url: string;
|
|
8
|
+
};
|
|
9
|
+
output: {
|
|
10
|
+
postReceive: ({
|
|
11
|
+
type: "rootProperty";
|
|
12
|
+
properties: {
|
|
13
|
+
property: string;
|
|
14
|
+
};
|
|
15
|
+
} | typeof stripSecretsPostReceive)[];
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.webhookGetManyRouting = exports.webhookGetManyDescription = void 0;
|
|
4
|
+
const validation_1 = require("../../shared/validation");
|
|
5
|
+
const descriptions_1 = require("../../shared/descriptions");
|
|
6
|
+
const showOnlyForWebhookGetMany = {
|
|
7
|
+
operation: ['getAll'],
|
|
8
|
+
resource: ['webhook'],
|
|
9
|
+
};
|
|
10
|
+
exports.webhookGetManyDescription = [
|
|
11
|
+
{
|
|
12
|
+
displayName: 'Lists webhook subscriptions on your account (deleted ones are excluded).',
|
|
13
|
+
name: 'webhookListNotice',
|
|
14
|
+
type: 'notice',
|
|
15
|
+
default: '',
|
|
16
|
+
displayOptions: {
|
|
17
|
+
show: showOnlyForWebhookGetMany,
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
];
|
|
21
|
+
exports.webhookGetManyRouting = {
|
|
22
|
+
request: {
|
|
23
|
+
method: 'GET',
|
|
24
|
+
url: '/webhooks',
|
|
25
|
+
},
|
|
26
|
+
output: {
|
|
27
|
+
postReceive: [...descriptions_1.unwrapDataPostReceive, validation_1.stripSecretsPostReceive],
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=getAll.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAll.js","sourceRoot":"","sources":["../../../../../nodes/Textbee/resources/webhook/getAll.ts"],"names":[],"mappings":";;;AAEA,wDAAkE;AAClE,4DAAkE;AAElE,MAAM,yBAAyB,GAAG;IACjC,SAAS,EAAE,CAAC,QAAQ,CAAC;IACrB,QAAQ,EAAE,CAAC,SAAS,CAAC;CACrB,CAAC;AAEW,QAAA,yBAAyB,GAAsB;IAC3D;QACC,WAAW,EAAE,0EAA0E;QACvF,IAAI,EAAE,mBAAmB;QACzB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACf,IAAI,EAAE,yBAAyB;SAC/B;KACD;CACD,CAAC;AAEW,QAAA,qBAAqB,GAAG;IACpC,OAAO,EAAE;QACR,MAAM,EAAE,KAAc;QACtB,GAAG,EAAE,WAAW;KAChB;IACD,MAAM,EAAE;QACP,WAAW,EAAE,CAAC,GAAG,oCAAqB,EAAE,oCAAuB,CAAC;KAChE;CACD,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { INodeProperties } from 'n8n-workflow';
|
|
2
|
+
import { stripSecretsPostReceive } from '../../shared/validation';
|
|
3
|
+
export declare const webhookGetNotificationsDescription: INodeProperties[];
|
|
4
|
+
export declare const webhookGetNotificationsRouting: {
|
|
5
|
+
send: {
|
|
6
|
+
preSend: ((this: import("n8n-workflow").IExecuteSingleFunctions, requestOptions: import("n8n-workflow").IHttpRequestOptions) => Promise<import("n8n-workflow").IHttpRequestOptions>)[];
|
|
7
|
+
};
|
|
8
|
+
request: {
|
|
9
|
+
method: "GET";
|
|
10
|
+
url: string;
|
|
11
|
+
};
|
|
12
|
+
output: {
|
|
13
|
+
postReceive: (typeof stripSecretsPostReceive | {
|
|
14
|
+
type: "rootProperty";
|
|
15
|
+
properties: {
|
|
16
|
+
property: string;
|
|
17
|
+
};
|
|
18
|
+
})[];
|
|
19
|
+
};
|
|
20
|
+
};
|