@affeldt28/n8n-nodes-weclapp 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 +126 -0
- package/dist/credentials/WeclappApi.credentials.d.ts +10 -0
- package/dist/credentials/WeclappApi.credentials.js +50 -0
- package/dist/credentials/WeclappApi.credentials.js.map +1 -0
- package/dist/icons/weclapp.svg +20 -0
- package/dist/nodes/Weclapp/Weclapp.node.d.ts +5 -0
- package/dist/nodes/Weclapp/Weclapp.node.js +67 -0
- package/dist/nodes/Weclapp/Weclapp.node.js.map +1 -0
- package/dist/nodes/Weclapp/Weclapp.node.json +22 -0
- package/dist/nodes/Weclapp/descriptions/article/Article.resource.d.ts +2 -0
- package/dist/nodes/Weclapp/descriptions/article/Article.resource.js +95 -0
- package/dist/nodes/Weclapp/descriptions/article/Article.resource.js.map +1 -0
- package/dist/nodes/Weclapp/descriptions/article/count.operation.d.ts +28 -0
- package/dist/nodes/Weclapp/descriptions/article/count.operation.js +14 -0
- package/dist/nodes/Weclapp/descriptions/article/count.operation.js.map +1 -0
- package/dist/nodes/Weclapp/descriptions/article/query.operation.d.ts +28 -0
- package/dist/nodes/Weclapp/descriptions/article/query.operation.js +21 -0
- package/dist/nodes/Weclapp/descriptions/article/query.operation.js.map +1 -0
- package/dist/nodes/Weclapp/descriptions/article/queryId.operation.d.ts +28 -0
- package/dist/nodes/Weclapp/descriptions/article/queryId.operation.js +13 -0
- package/dist/nodes/Weclapp/descriptions/article/queryId.operation.js.map +1 -0
- package/dist/nodes/Weclapp/descriptions/index.d.ts +4 -0
- package/dist/nodes/Weclapp/descriptions/index.js +41 -0
- package/dist/nodes/Weclapp/descriptions/index.js.map +1 -0
- package/dist/nodes/Weclapp/descriptions/party/Party.resource.d.ts +2 -0
- package/dist/nodes/Weclapp/descriptions/party/Party.resource.js +95 -0
- package/dist/nodes/Weclapp/descriptions/party/Party.resource.js.map +1 -0
- package/dist/nodes/Weclapp/descriptions/party/count.operation.d.ts +28 -0
- package/dist/nodes/Weclapp/descriptions/party/count.operation.js +14 -0
- package/dist/nodes/Weclapp/descriptions/party/count.operation.js.map +1 -0
- package/dist/nodes/Weclapp/descriptions/party/create.operation.d.ts +28 -0
- package/dist/nodes/Weclapp/descriptions/party/create.operation.js +1654 -0
- package/dist/nodes/Weclapp/descriptions/party/create.operation.js.map +1 -0
- package/dist/nodes/Weclapp/descriptions/party/query.operation.d.ts +28 -0
- package/dist/nodes/Weclapp/descriptions/party/query.operation.js +21 -0
- package/dist/nodes/Weclapp/descriptions/party/query.operation.js.map +1 -0
- package/dist/nodes/Weclapp/descriptions/recurringInvoice/RecurringInvoice.resource.d.ts +2 -0
- package/dist/nodes/Weclapp/descriptions/recurringInvoice/RecurringInvoice.resource.js +92 -0
- package/dist/nodes/Weclapp/descriptions/recurringInvoice/RecurringInvoice.resource.js.map +1 -0
- package/dist/nodes/Weclapp/descriptions/recurringInvoice/count.operation.d.ts +28 -0
- package/dist/nodes/Weclapp/descriptions/recurringInvoice/count.operation.js +14 -0
- package/dist/nodes/Weclapp/descriptions/recurringInvoice/count.operation.js.map +1 -0
- package/dist/nodes/Weclapp/descriptions/recurringInvoice/query.operation.d.ts +28 -0
- package/dist/nodes/Weclapp/descriptions/recurringInvoice/query.operation.js +21 -0
- package/dist/nodes/Weclapp/descriptions/recurringInvoice/query.operation.js.map +1 -0
- package/dist/nodes/Weclapp/descriptions/shared/BodyProperties/customAttributes.d.ts +2 -0
- package/dist/nodes/Weclapp/descriptions/shared/BodyProperties/customAttributes.js +181 -0
- package/dist/nodes/Weclapp/descriptions/shared/BodyProperties/customAttributes.js.map +1 -0
- package/dist/nodes/Weclapp/descriptions/shared/BodyProperties/index.d.ts +1 -0
- package/dist/nodes/Weclapp/descriptions/shared/BodyProperties/index.js +18 -0
- package/dist/nodes/Weclapp/descriptions/shared/BodyProperties/index.js.map +1 -0
- package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/additionalProperties.d.ts +2 -0
- package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/additionalProperties.js +52 -0
- package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/additionalProperties.js.map +1 -0
- package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/dryRun.d.ts +2 -0
- package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/dryRun.js +17 -0
- package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/dryRun.js.map +1 -0
- package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/filter.d.ts +2 -0
- package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/filter.js +302 -0
- package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/filter.js.map +1 -0
- package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/includeReferencedEntities.d.ts +2 -0
- package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/includeReferencedEntities.js +37 -0
- package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/includeReferencedEntities.js.map +1 -0
- package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/index.d.ts +8 -0
- package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/index.js +25 -0
- package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/index.js.map +1 -0
- package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/pagination.d.ts +2 -0
- package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/pagination.js +80 -0
- package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/pagination.js.map +1 -0
- package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/properties.d.ts +2 -0
- package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/properties.js +38 -0
- package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/properties.js.map +1 -0
- package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/serializeNulls.d.ts +2 -0
- package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/serializeNulls.js +17 -0
- package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/serializeNulls.js.map +1 -0
- package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/sort.d.ts +2 -0
- package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/sort.js +53 -0
- package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/sort.js.map +1 -0
- package/dist/nodes/Weclapp/descriptions/shared/enum.d.ts +6 -0
- package/dist/nodes/Weclapp/descriptions/shared/enum.js +304 -0
- package/dist/nodes/Weclapp/descriptions/shared/enum.js.map +1 -0
- package/dist/nodes/Weclapp/descriptions/user/User.resource.d.ts +2 -0
- package/dist/nodes/Weclapp/descriptions/user/User.resource.js +99 -0
- package/dist/nodes/Weclapp/descriptions/user/User.resource.js.map +1 -0
- package/dist/nodes/Weclapp/descriptions/user/count.operation.d.ts +28 -0
- package/dist/nodes/Weclapp/descriptions/user/count.operation.js +14 -0
- package/dist/nodes/Weclapp/descriptions/user/count.operation.js.map +1 -0
- package/dist/nodes/Weclapp/descriptions/user/create.operation.d.ts +28 -0
- package/dist/nodes/Weclapp/descriptions/user/create.operation.js +243 -0
- package/dist/nodes/Weclapp/descriptions/user/create.operation.js.map +1 -0
- package/dist/nodes/Weclapp/descriptions/user/query.operation.d.ts +28 -0
- package/dist/nodes/Weclapp/descriptions/user/query.operation.js +21 -0
- package/dist/nodes/Weclapp/descriptions/user/query.operation.js.map +1 -0
- package/dist/package.json +57 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +57 -0
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.filterQueryParameters = void 0;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
const basicOperatorMap = {
|
|
6
|
+
after: 'gt',
|
|
7
|
+
afterOrEquals: 'ge',
|
|
8
|
+
before: 'lt',
|
|
9
|
+
beforeOrEquals: 'le',
|
|
10
|
+
empty: 'null',
|
|
11
|
+
equals: 'eq',
|
|
12
|
+
gt: 'gt',
|
|
13
|
+
gte: 'ge',
|
|
14
|
+
lt: 'lt',
|
|
15
|
+
lte: 'le',
|
|
16
|
+
notEmpty: 'notnull',
|
|
17
|
+
notEquals: 'ne',
|
|
18
|
+
};
|
|
19
|
+
const advancedOperators = [
|
|
20
|
+
{ name: 'Equal', value: 'eq' },
|
|
21
|
+
{ name: 'Not Equal', value: 'ne' },
|
|
22
|
+
{ name: 'Less Than', value: 'lt' },
|
|
23
|
+
{ name: 'Greater Than', value: 'gt' },
|
|
24
|
+
{ name: 'Less Than or Equal', value: 'le' },
|
|
25
|
+
{ name: 'Greater Than or Equal', value: 'ge' },
|
|
26
|
+
{ name: 'Is Null', value: 'null' },
|
|
27
|
+
{ name: 'Is Not Null', value: 'notnull' },
|
|
28
|
+
{ name: 'Like', value: 'like' },
|
|
29
|
+
{ name: 'Not Like', value: 'notlike' },
|
|
30
|
+
{ name: 'Like (Case Insensitive)', value: 'ilike' },
|
|
31
|
+
{ name: 'Not Like (Case Insensitive)', value: 'notilike' },
|
|
32
|
+
{ name: 'In', value: 'in' },
|
|
33
|
+
{ name: 'Not In', value: 'notin' },
|
|
34
|
+
];
|
|
35
|
+
exports.filterQueryParameters = [
|
|
36
|
+
{
|
|
37
|
+
name: 'filterMode',
|
|
38
|
+
displayName: 'Filter Mode',
|
|
39
|
+
type: 'options',
|
|
40
|
+
default: 'basic',
|
|
41
|
+
options: [
|
|
42
|
+
{
|
|
43
|
+
name: 'Basic',
|
|
44
|
+
description: 'Use the standard n8n filter builder',
|
|
45
|
+
value: 'basic',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: 'Advanced',
|
|
49
|
+
description: 'Use all weclapp operators and per-condition combinations',
|
|
50
|
+
value: 'advanced',
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
routing: {
|
|
54
|
+
send: {
|
|
55
|
+
preSend: [addFilterQuery],
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: 'filters',
|
|
61
|
+
displayName: 'Filters',
|
|
62
|
+
description: 'Use the weclapp property name, including nested properties such as customAttribute3387.value, as the left value.',
|
|
63
|
+
type: 'filter',
|
|
64
|
+
typeOptions: {
|
|
65
|
+
filter: {
|
|
66
|
+
version: 3,
|
|
67
|
+
caseSensitive: true,
|
|
68
|
+
typeValidation: 'loose',
|
|
69
|
+
allowedCombinators: ['and', 'or'],
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
default: '',
|
|
73
|
+
placeholder: 'Add Filter',
|
|
74
|
+
displayOptions: {
|
|
75
|
+
show: {
|
|
76
|
+
filterMode: ['basic'],
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
name: 'advancedFiltersNotice',
|
|
82
|
+
displayName: 'Use weclapp filter syntax for advanced filters. See the <a href="https://www.weclapp.com/api/#overview--filtering" target="_blank">weclapp filtering documentation</a> for supported operators and examples.',
|
|
83
|
+
type: 'notice',
|
|
84
|
+
default: '',
|
|
85
|
+
displayOptions: {
|
|
86
|
+
show: {
|
|
87
|
+
filterMode: ['advanced'],
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
name: 'advancedFilters',
|
|
93
|
+
displayName: 'Advanced Filters',
|
|
94
|
+
type: 'fixedCollection',
|
|
95
|
+
typeOptions: {
|
|
96
|
+
multipleValues: true,
|
|
97
|
+
},
|
|
98
|
+
default: '',
|
|
99
|
+
placeholder: 'Add Filter',
|
|
100
|
+
displayOptions: {
|
|
101
|
+
show: {
|
|
102
|
+
filterMode: ['advanced'],
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
options: [
|
|
106
|
+
{
|
|
107
|
+
name: 'conditions',
|
|
108
|
+
displayName: 'Condition',
|
|
109
|
+
values: [
|
|
110
|
+
{
|
|
111
|
+
name: 'property',
|
|
112
|
+
displayName: 'Property',
|
|
113
|
+
description: 'weclapp property to filter, including nested properties such as customAttribute3387.value',
|
|
114
|
+
type: 'string',
|
|
115
|
+
default: '',
|
|
116
|
+
placeholder: 'createdDate',
|
|
117
|
+
required: true,
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
name: 'operator',
|
|
121
|
+
displayName: 'Operator',
|
|
122
|
+
type: 'options',
|
|
123
|
+
default: 'eq',
|
|
124
|
+
options: advancedOperators,
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
name: 'value',
|
|
128
|
+
displayName: 'Value',
|
|
129
|
+
description: 'For In and Not In, enter a JSON array such as ["1006","1007"]',
|
|
130
|
+
type: 'string',
|
|
131
|
+
default: '',
|
|
132
|
+
displayOptions: {
|
|
133
|
+
hide: {
|
|
134
|
+
operator: ['null', 'notnull'],
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
name: 'combination',
|
|
140
|
+
displayName: 'Combine With',
|
|
141
|
+
type: 'options',
|
|
142
|
+
default: 'and',
|
|
143
|
+
options: [
|
|
144
|
+
{
|
|
145
|
+
name: 'AND',
|
|
146
|
+
value: 'and',
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
name: 'OR',
|
|
150
|
+
value: 'or',
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
name: 'Named OR Group',
|
|
154
|
+
value: 'orGroup',
|
|
155
|
+
},
|
|
156
|
+
],
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
name: 'groupName',
|
|
160
|
+
displayName: 'OR Group Name',
|
|
161
|
+
description: 'Conditions with the same group name are ORed together; separate groups are ANDed',
|
|
162
|
+
type: 'string',
|
|
163
|
+
default: 'Group1',
|
|
164
|
+
required: true,
|
|
165
|
+
displayOptions: {
|
|
166
|
+
show: {
|
|
167
|
+
combination: ['orGroup'],
|
|
168
|
+
},
|
|
169
|
+
},
|
|
170
|
+
},
|
|
171
|
+
],
|
|
172
|
+
},
|
|
173
|
+
],
|
|
174
|
+
},
|
|
175
|
+
];
|
|
176
|
+
function addQueryValue(query, key, value) {
|
|
177
|
+
const existingValue = query[key];
|
|
178
|
+
if (existingValue === undefined) {
|
|
179
|
+
query[key] = value;
|
|
180
|
+
}
|
|
181
|
+
else if (Array.isArray(existingValue)) {
|
|
182
|
+
existingValue.push(value);
|
|
183
|
+
}
|
|
184
|
+
else {
|
|
185
|
+
query[key] = [existingValue, value];
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
function getBasicOperator(condition) {
|
|
189
|
+
if (condition.operator.operation === 'true' || condition.operator.operation === 'false') {
|
|
190
|
+
return 'eq';
|
|
191
|
+
}
|
|
192
|
+
const operator = basicOperatorMap[condition.operator.operation];
|
|
193
|
+
if (!operator) {
|
|
194
|
+
throw new TypeError(`The basic operator "${condition.operator.operation}" is not supported by weclapp. Use Advanced filter mode for weclapp-specific operators.`);
|
|
195
|
+
}
|
|
196
|
+
return operator;
|
|
197
|
+
}
|
|
198
|
+
function getBasicFilterKey(condition, combinator) {
|
|
199
|
+
var _a;
|
|
200
|
+
const property = String((_a = condition.leftValue) !== null && _a !== void 0 ? _a : '').trim();
|
|
201
|
+
if (!property) {
|
|
202
|
+
throw new TypeError('A property name is required as the left value');
|
|
203
|
+
}
|
|
204
|
+
const prefix = combinator === 'or' ? 'or-' : '';
|
|
205
|
+
return `${prefix}${property}-${getBasicOperator(condition)}`;
|
|
206
|
+
}
|
|
207
|
+
function getBasicFilterValue(condition) {
|
|
208
|
+
var _a;
|
|
209
|
+
const operation = condition.operator.operation;
|
|
210
|
+
if (operation === 'empty' || operation === 'notEmpty') {
|
|
211
|
+
return '';
|
|
212
|
+
}
|
|
213
|
+
if (operation === 'true' || operation === 'false') {
|
|
214
|
+
return operation;
|
|
215
|
+
}
|
|
216
|
+
return String((_a = condition.rightValue) !== null && _a !== void 0 ? _a : '');
|
|
217
|
+
}
|
|
218
|
+
function shouldSkipBasicFilter(condition) {
|
|
219
|
+
var _a, _b;
|
|
220
|
+
const isPropertyEmpty = String((_a = condition.leftValue) !== null && _a !== void 0 ? _a : '').trim() === '';
|
|
221
|
+
const isValueEmpty = String((_b = condition.rightValue) !== null && _b !== void 0 ? _b : '').trim() === '';
|
|
222
|
+
if (isPropertyEmpty && isValueEmpty)
|
|
223
|
+
return true;
|
|
224
|
+
return false;
|
|
225
|
+
}
|
|
226
|
+
function buildBasicFilterQuery(filters) {
|
|
227
|
+
var _a, _b;
|
|
228
|
+
const query = {};
|
|
229
|
+
const combinator = (_a = filters.combinator) !== null && _a !== void 0 ? _a : 'and';
|
|
230
|
+
for (const condition of (_b = filters.conditions) !== null && _b !== void 0 ? _b : []) {
|
|
231
|
+
if (shouldSkipBasicFilter(condition))
|
|
232
|
+
continue;
|
|
233
|
+
addQueryValue(query, getBasicFilterKey(condition, combinator), getBasicFilterValue(condition));
|
|
234
|
+
}
|
|
235
|
+
return query;
|
|
236
|
+
}
|
|
237
|
+
function getAdvancedFilterKey(condition) {
|
|
238
|
+
var _a, _b, _c, _d, _e;
|
|
239
|
+
const property = (_b = (_a = condition.property) === null || _a === void 0 ? void 0 : _a.trim()) !== null && _b !== void 0 ? _b : '';
|
|
240
|
+
const operator = (_c = condition.operator) !== null && _c !== void 0 ? _c : 'eq';
|
|
241
|
+
if (condition.combination === 'or') {
|
|
242
|
+
return `or-${property}-${operator}`;
|
|
243
|
+
}
|
|
244
|
+
if (condition.combination === 'orGroup') {
|
|
245
|
+
return `or${(_e = (_d = condition.groupName) === null || _d === void 0 ? void 0 : _d.trim()) !== null && _e !== void 0 ? _e : ''}-${property}-${operator}`;
|
|
246
|
+
}
|
|
247
|
+
return `${property}-${operator}`;
|
|
248
|
+
}
|
|
249
|
+
function getAdvancedFilterValue(condition) {
|
|
250
|
+
var _a;
|
|
251
|
+
if (condition.operator === 'null' || condition.operator === 'notnull') {
|
|
252
|
+
return '';
|
|
253
|
+
}
|
|
254
|
+
const value = String((_a = condition.value) !== null && _a !== void 0 ? _a : '');
|
|
255
|
+
if (condition.operator === 'in' || condition.operator === 'notin') {
|
|
256
|
+
const parsedValue = JSON.parse(value);
|
|
257
|
+
if (!Array.isArray(parsedValue)) {
|
|
258
|
+
throw new TypeError('The value must be a JSON array');
|
|
259
|
+
}
|
|
260
|
+
return JSON.stringify(parsedValue);
|
|
261
|
+
}
|
|
262
|
+
return value;
|
|
263
|
+
}
|
|
264
|
+
function buildAdvancedFilterQuery(conditions) {
|
|
265
|
+
var _a;
|
|
266
|
+
const query = {};
|
|
267
|
+
for (const condition of conditions) {
|
|
268
|
+
if (!((_a = condition.property) === null || _a === void 0 ? void 0 : _a.trim()))
|
|
269
|
+
continue;
|
|
270
|
+
addQueryValue(query, getAdvancedFilterKey(condition), getAdvancedFilterValue(condition));
|
|
271
|
+
}
|
|
272
|
+
return query;
|
|
273
|
+
}
|
|
274
|
+
async function addFilterQuery(requestOptions) {
|
|
275
|
+
var _a;
|
|
276
|
+
const filterMode = this.getNodeParameter('filterMode', 'basic');
|
|
277
|
+
try {
|
|
278
|
+
let query;
|
|
279
|
+
if (filterMode === 'advanced') {
|
|
280
|
+
const filters = this.getNodeParameter('advancedFilters', {});
|
|
281
|
+
const conditions = ((_a = filters.conditions) !== null && _a !== void 0 ? _a : []);
|
|
282
|
+
query = buildAdvancedFilterQuery(conditions);
|
|
283
|
+
}
|
|
284
|
+
else {
|
|
285
|
+
const filters = this.getNodeParameter('filters', {});
|
|
286
|
+
query = buildBasicFilterQuery(filters);
|
|
287
|
+
}
|
|
288
|
+
if (Object.keys(query).length === 0) {
|
|
289
|
+
return requestOptions;
|
|
290
|
+
}
|
|
291
|
+
requestOptions.qs = {
|
|
292
|
+
...requestOptions.qs,
|
|
293
|
+
...query,
|
|
294
|
+
};
|
|
295
|
+
requestOptions.arrayFormat = 'repeat';
|
|
296
|
+
return requestOptions;
|
|
297
|
+
}
|
|
298
|
+
catch (error) {
|
|
299
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Invalid weclapp filter: ${error instanceof Error ? error.message : String(error)}`);
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
//# sourceMappingURL=filter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filter.js","sourceRoot":"","sources":["../../../../../../nodes/Weclapp/descriptions/shared/QueryParameter/filter.ts"],"names":[],"mappings":";;;AASA,+CAAkD;AAYlD,MAAM,gBAAgB,GAA2B;IAChD,KAAK,EAAE,IAAI;IACX,aAAa,EAAE,IAAI;IACnB,MAAM,EAAE,IAAI;IACZ,cAAc,EAAE,IAAI;IACpB,KAAK,EAAE,MAAM;IACb,MAAM,EAAE,IAAI;IACZ,EAAE,EAAE,IAAI;IACR,GAAG,EAAE,IAAI;IACT,EAAE,EAAE,IAAI;IACR,GAAG,EAAE,IAAI;IACT,QAAQ,EAAE,SAAS;IACnB,SAAS,EAAE,IAAI;CACf,CAAC;AAEF,MAAM,iBAAiB,GAAG;IACzB,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE;IAC9B,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,IAAI,EAAE;IAClC,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,IAAI,EAAE;IAClC,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,IAAI,EAAE;IACrC,EAAE,IAAI,EAAE,oBAAoB,EAAE,KAAK,EAAE,IAAI,EAAE;IAC3C,EAAE,IAAI,EAAE,uBAAuB,EAAE,KAAK,EAAE,IAAI,EAAE;IAC9C,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE;IAClC,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,SAAS,EAAE;IACzC,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;IAC/B,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE;IACtC,EAAE,IAAI,EAAE,yBAAyB,EAAE,KAAK,EAAE,O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I,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACrC,OAAO,cAAc,CAAC;QACvB,CAAC;QAED,cAAc,CAAC,EAAE,GAAG;YACnB,GAAG,cAAc,CAAC,EAAE;YACpB,GAAG,KAAK;SACR,CAAC;QACF,cAAc,CAAC,WAAW,GAAG,QAAQ,CAAC;QACtC,OAAO,cAAc,CAAC;IACvB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QAChB,MAAM,IAAI,iCAAkB,CAC3B,IAAI,CAAC,OAAO,EAAE,EACd,2BAA2B,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CACnF,CAAC;IACH,CAAC;AACF,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.includeReferencedEntitiesQueryParameter = void 0;
|
|
4
|
+
exports.includeReferencedEntitiesQueryParameter = {
|
|
5
|
+
name: 'includeReferencedEntities',
|
|
6
|
+
displayName: 'Include Referenced Entities',
|
|
7
|
+
type: 'fixedCollection',
|
|
8
|
+
typeOptions: {
|
|
9
|
+
multipleValues: true,
|
|
10
|
+
},
|
|
11
|
+
default: '',
|
|
12
|
+
placeholder: 'Add Referenced Entity',
|
|
13
|
+
options: [
|
|
14
|
+
{
|
|
15
|
+
name: 'entity',
|
|
16
|
+
displayName: 'Referenced Entity',
|
|
17
|
+
values: [
|
|
18
|
+
{
|
|
19
|
+
name: 'name',
|
|
20
|
+
displayName: 'Entity Name',
|
|
21
|
+
type: 'string',
|
|
22
|
+
default: '',
|
|
23
|
+
placeholder: 'e.g.: customer',
|
|
24
|
+
required: true,
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
routing: {
|
|
30
|
+
request: {
|
|
31
|
+
qs: {
|
|
32
|
+
includeReferencedEntities: '={{$parameter.includeReferencedEntities.entity.map((e) => e.name).join(",")}}',
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=includeReferencedEntities.js.map
|
package/dist/nodes/Weclapp/descriptions/shared/QueryParameter/includeReferencedEntities.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"includeReferencedEntities.js","sourceRoot":"","sources":["../../../../../../nodes/Weclapp/descriptions/shared/QueryParameter/includeReferencedEntities.ts"],"names":[],"mappings":";;;AAEa,QAAA,uCAAuC,GAAoB;IACvE,IAAI,EAAE,2BAA2B;IACjC,WAAW,EAAE,6BAA6B;IAC1C,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE;QACZ,cAAc,EAAE,IAAI;KACpB;IACD,OAAO,EAAE,EAAE;IACX,WAAW,EAAE,uBAAuB;IACpC,OAAO,EAAE;QACR;YACC,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,mBAAmB;YAChC,MAAM,EAAE;gBACP;oBACC,IAAI,EAAE,MAAM;oBACZ,WAAW,EAAE,aAAa;oBAC1B,IAAI,EAAE,QAAQ;oBACd,OAAO,EAAE,EAAE;oBACX,WAAW,EAAE,gBAAgB;oBAC7B,QAAQ,EAAE,IAAI;iBACd;aACD;SACD;KACD;IACD,OAAO,EAAE;QACR,OAAO,EAAE;YACR,EAAE,EAAE;gBACH,yBAAyB,EACxB,+EAA+E;aAChF;SACD;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './additionalProperties';
|
|
2
|
+
export * from './dryRun';
|
|
3
|
+
export * from './filter';
|
|
4
|
+
export * from './includeReferencedEntities';
|
|
5
|
+
export * from './pagination';
|
|
6
|
+
export * from './properties';
|
|
7
|
+
export * from './serializeNulls';
|
|
8
|
+
export * from './sort';
|
|
@@ -0,0 +1,25 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./additionalProperties"), exports);
|
|
18
|
+
__exportStar(require("./dryRun"), exports);
|
|
19
|
+
__exportStar(require("./filter"), exports);
|
|
20
|
+
__exportStar(require("./includeReferencedEntities"), exports);
|
|
21
|
+
__exportStar(require("./pagination"), exports);
|
|
22
|
+
__exportStar(require("./properties"), exports);
|
|
23
|
+
__exportStar(require("./serializeNulls"), exports);
|
|
24
|
+
__exportStar(require("./sort"), exports);
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../nodes/Weclapp/descriptions/shared/QueryParameter/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,2CAAyB;AACzB,2CAAyB;AACzB,8DAA4C;AAC5C,+CAA6B;AAC7B,+CAA6B;AAC7B,mDAAiC;AACjC,yCAAuB"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginationQueryParameters = void 0;
|
|
4
|
+
exports.paginationQueryParameters = [
|
|
5
|
+
{
|
|
6
|
+
name: 'usePagination',
|
|
7
|
+
displayName: 'Use Pagination',
|
|
8
|
+
description: 'Whether to use pagination for the request',
|
|
9
|
+
type: 'boolean',
|
|
10
|
+
default: false,
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
name: 'page',
|
|
14
|
+
displayName: 'Page',
|
|
15
|
+
description: 'The page number to retrieve',
|
|
16
|
+
type: 'number',
|
|
17
|
+
typeOptions: {
|
|
18
|
+
minValue: 1,
|
|
19
|
+
},
|
|
20
|
+
default: 1,
|
|
21
|
+
placeholder: '1',
|
|
22
|
+
displayOptions: {
|
|
23
|
+
show: {
|
|
24
|
+
usePagination: [true],
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
routing: {
|
|
28
|
+
send: {
|
|
29
|
+
type: 'query',
|
|
30
|
+
property: 'page',
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: 'pageSize',
|
|
36
|
+
displayName: 'Page Size',
|
|
37
|
+
description: 'The number of items to retrieve per page',
|
|
38
|
+
type: 'number',
|
|
39
|
+
typeOptions: {
|
|
40
|
+
minValue: 1,
|
|
41
|
+
maxValue: 1000,
|
|
42
|
+
},
|
|
43
|
+
default: 100,
|
|
44
|
+
placeholder: '100',
|
|
45
|
+
displayOptions: {
|
|
46
|
+
show: {
|
|
47
|
+
usePagination: [true],
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
routing: {
|
|
51
|
+
send: {
|
|
52
|
+
type: 'query',
|
|
53
|
+
property: 'pageSize',
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
name: 'offset',
|
|
59
|
+
displayName: 'Offset',
|
|
60
|
+
description: 'The number of items to skip before starting to collect the result set',
|
|
61
|
+
type: 'number',
|
|
62
|
+
typeOptions: {
|
|
63
|
+
minValue: 0,
|
|
64
|
+
},
|
|
65
|
+
default: 0,
|
|
66
|
+
placeholder: '0',
|
|
67
|
+
displayOptions: {
|
|
68
|
+
show: {
|
|
69
|
+
usePagination: [true],
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
routing: {
|
|
73
|
+
send: {
|
|
74
|
+
type: 'query',
|
|
75
|
+
property: 'offset',
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
];
|
|
80
|
+
//# sourceMappingURL=pagination.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.js","sourceRoot":"","sources":["../../../../../../nodes/Weclapp/descriptions/shared/QueryParameter/pagination.ts"],"names":[],"mappings":";;;AAEa,QAAA,yBAAyB,GAAsB;IAC3D;QACC,IAAI,EAAE,eAAe;QACrB,WAAW,EAAE,gBAAgB;QAC7B,WAAW,EAAE,2CAA2C;QACxD,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,KAAK;KACd;IACD;QACC,IAAI,EAAE,MAAM;QACZ,WAAW,EAAE,MAAM;QACnB,WAAW,EAAE,6BAA6B;QAC1C,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE;YACZ,QAAQ,EAAE,CAAC;SACX;QACD,OAAO,EAAE,CAAC;QACV,WAAW,EAAE,GAAG;QAChB,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,aAAa,EAAE,CAAC,IAAI,CAAC;aACrB;SACD;QACD,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,OAAO;gBACb,QAAQ,EAAE,MAAM;aAChB;SACD;KACD;IACD;QACC,IAAI,EAAE,UAAU;QAChB,WAAW,EAAE,WAAW;QACxB,WAAW,EAAE,0CAA0C;QACvD,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE;YACZ,QAAQ,EAAE,CAAC;YACX,QAAQ,EAAE,IAAI;SACd;QACD,OAAO,EAAE,GAAG;QACZ,WAAW,EAAE,KAAK;QAClB,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,aAAa,EAAE,CAAC,IAAI,CAAC;aACrB;SACD;QACD,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,OAAO;gBACb,QAAQ,EAAE,UAAU;aACpB;SACD;KACD;IACD;QACC,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,QAAQ;QACrB,WAAW,EAAE,uEAAuE;QACpF,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE;YACZ,QAAQ,EAAE,CAAC;SACX;QACD,OAAO,EAAE,CAAC;QACV,WAAW,EAAE,GAAG;QAChB,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,aAAa,EAAE,CAAC,IAAI,CAAC;aACrB;SACD;QACD,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,OAAO;gBACb,QAAQ,EAAE,QAAQ;aAClB;SACD;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.propertiesQueryParameter = void 0;
|
|
4
|
+
exports.propertiesQueryParameter = {
|
|
5
|
+
name: 'properties',
|
|
6
|
+
displayName: 'Properties',
|
|
7
|
+
type: 'fixedCollection',
|
|
8
|
+
typeOptions: {
|
|
9
|
+
multipleValues: true,
|
|
10
|
+
},
|
|
11
|
+
default: '',
|
|
12
|
+
placeholder: 'Add Property',
|
|
13
|
+
options: [
|
|
14
|
+
{
|
|
15
|
+
name: 'items',
|
|
16
|
+
displayName: 'Property',
|
|
17
|
+
values: [
|
|
18
|
+
{
|
|
19
|
+
name: 'property',
|
|
20
|
+
displayName: 'Property Path',
|
|
21
|
+
description: 'Property or nested property path to include in the response',
|
|
22
|
+
type: 'string',
|
|
23
|
+
default: '',
|
|
24
|
+
placeholder: 'contacts.lastName',
|
|
25
|
+
required: true,
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
routing: {
|
|
31
|
+
request: {
|
|
32
|
+
qs: {
|
|
33
|
+
properties: '={{$parameter.properties.items.map(item => item.property).join(",")}}',
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=properties.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"properties.js","sourceRoot":"","sources":["../../../../../../nodes/Weclapp/descriptions/shared/QueryParameter/properties.ts"],"names":[],"mappings":";;;AAEa,QAAA,wBAAwB,GAAoB;IACxD,IAAI,EAAE,YAAY;IAClB,WAAW,EAAE,YAAY;IACzB,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE;QACZ,cAAc,EAAE,IAAI;KACpB;IACD,OAAO,EAAE,EAAE;IACX,WAAW,EAAE,cAAc;IAC3B,OAAO,EAAE;QACR;YACC,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,UAAU;YACvB,MAAM,EAAE;gBACP;oBACC,IAAI,EAAE,UAAU;oBAChB,WAAW,EAAE,eAAe;oBAC5B,WAAW,EAAE,6DAA6D;oBAC1E,IAAI,EAAE,QAAQ;oBACd,OAAO,EAAE,EAAE;oBACX,WAAW,EAAE,mBAAmB;oBAChC,QAAQ,EAAE,IAAI;iBACd;aACD;SACD;KACD;IACD,OAAO,EAAE;QACR,OAAO,EAAE;YACR,EAAE,EAAE;gBACH,UAAU,EAAE,uEAAuE;aACnF;SACD;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.serializeNullsQueryParameter = void 0;
|
|
4
|
+
exports.serializeNullsQueryParameter = {
|
|
5
|
+
name: 'serializeNulls',
|
|
6
|
+
displayName: 'Serialize Nulls',
|
|
7
|
+
description: 'Whether to include fields with null values in the response',
|
|
8
|
+
type: 'boolean',
|
|
9
|
+
default: false,
|
|
10
|
+
routing: {
|
|
11
|
+
send: {
|
|
12
|
+
type: 'query',
|
|
13
|
+
property: 'serializeNulls',
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=serializeNulls.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serializeNulls.js","sourceRoot":"","sources":["../../../../../../nodes/Weclapp/descriptions/shared/QueryParameter/serializeNulls.ts"],"names":[],"mappings":";;;AAEa,QAAA,4BAA4B,GAAoB;IAC5D,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,iBAAiB;IAC9B,WAAW,EAAE,4DAA4D;IACzE,IAAI,EAAE,SAAS;IACf,OAAO,EAAE,KAAK;IACd,OAAO,EAAE;QACR,IAAI,EAAE;YACL,IAAI,EAAE,OAAO;YACb,QAAQ,EAAE,gBAAgB;SAC1B;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sortQueryParameter = void 0;
|
|
4
|
+
exports.sortQueryParameter = {
|
|
5
|
+
name: 'sort',
|
|
6
|
+
displayName: 'Sort',
|
|
7
|
+
type: 'fixedCollection',
|
|
8
|
+
typeOptions: {
|
|
9
|
+
multipleValues: true,
|
|
10
|
+
},
|
|
11
|
+
default: '',
|
|
12
|
+
placeholder: 'Add Sort',
|
|
13
|
+
options: [
|
|
14
|
+
{
|
|
15
|
+
name: 'criteria',
|
|
16
|
+
displayName: 'Sort',
|
|
17
|
+
values: [
|
|
18
|
+
{
|
|
19
|
+
name: 'property',
|
|
20
|
+
displayName: 'Property',
|
|
21
|
+
type: 'string',
|
|
22
|
+
default: '',
|
|
23
|
+
placeholder: 'lastModifiedDate',
|
|
24
|
+
required: true,
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: 'direction',
|
|
28
|
+
displayName: 'Direction',
|
|
29
|
+
type: 'options',
|
|
30
|
+
default: 'asc',
|
|
31
|
+
options: [
|
|
32
|
+
{
|
|
33
|
+
name: 'Ascending',
|
|
34
|
+
value: 'asc',
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
name: 'Descending',
|
|
38
|
+
value: 'desc',
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
routing: {
|
|
46
|
+
request: {
|
|
47
|
+
qs: {
|
|
48
|
+
sort: '={{$parameter.sort.criteria.map(sort => `${sort.direction === "desc" ? "-" : ""}${sort.property}`).join(",")}}',
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
};
|
|
53
|
+
//# sourceMappingURL=sort.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sort.js","sourceRoot":"","sources":["../../../../../../nodes/Weclapp/descriptions/shared/QueryParameter/sort.ts"],"names":[],"mappings":";;;AAEa,QAAA,kBAAkB,GAAoB;IAClD,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,MAAM;IACnB,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE;QACZ,cAAc,EAAE,IAAI;KACpB;IACD,OAAO,EAAE,EAAE;IACX,WAAW,EAAE,UAAU;IACvB,OAAO,EAAE;QACR;YACC,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,MAAM;YACnB,MAAM,EAAE;gBACP;oBACC,IAAI,EAAE,UAAU;oBAChB,WAAW,EAAE,UAAU;oBACvB,IAAI,EAAE,QAAQ;oBACd,OAAO,EAAE,EAAE;oBACX,WAAW,EAAE,kBAAkB;oBAC/B,QAAQ,EAAE,IAAI;iBACd;gBACD;oBACC,IAAI,EAAE,WAAW;oBACjB,WAAW,EAAE,WAAW;oBACxB,IAAI,EAAE,SAAS;oBACf,OAAO,EAAE,KAAK;oBACd,OAAO,EAAE;wBACR;4BACC,IAAI,EAAE,WAAW;4BACjB,KAAK,EAAE,KAAK;yBACZ;wBACD;4BACC,IAAI,EAAE,YAAY;4BAClB,KAAK,EAAE,MAAM;yBACb;qBACD;iBACD;aACD;SACD;KACD;IACD,OAAO,EAAE;QACR,OAAO,EAAE;YACR,EAAE,EAAE;gBACH,IAAI,EAAE,gHAAgH;aACtH;SACD;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { INodePropertyOptions } from 'n8n-workflow';
|
|
2
|
+
export declare const SALUTATIONS: INodePropertyOptions[];
|
|
3
|
+
export declare const COUNTRY_CODES: INodePropertyOptions[];
|
|
4
|
+
export declare const SOCIAL_MEDIA_CODES: INodePropertyOptions[];
|
|
5
|
+
export declare const CUSTOMER_SALES_CHANNELS: INodePropertyOptions[];
|
|
6
|
+
export declare const PARTY_TYPES: INodePropertyOptions[];
|