n8n-nodes-didar-crm 0.0.21 → 0.0.23
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.
|
@@ -18,13 +18,11 @@ async function activityCreate(i, returnData) {
|
|
|
18
18
|
const isDone = this.getNodeParameter('IsDone', i, false);
|
|
19
19
|
// Additional fields
|
|
20
20
|
const add = this.getNodeParameter('additionalFields', i, {}) || {};
|
|
21
|
-
// Owner
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
ownerId = add.OwnerIdManual || '';
|
|
27
|
-
// OwnerId اختیاری است مگر شما الزامش کنید؛ اگر لازم شد همینجا ارور دهید.
|
|
21
|
+
// Owner (select/manual) — optional
|
|
22
|
+
const ownerMode = this.getNodeParameter('OwnerMode', i, 'select');
|
|
23
|
+
const ownerSel = this.getNodeParameter('OwnerIdSelect', i, '');
|
|
24
|
+
const ownerMan = this.getNodeParameter('OwnerIdManual', i, '');
|
|
25
|
+
const ownerId = ownerMode === 'select' ? ownerSel : ownerMan;
|
|
28
26
|
const note = (_a = add.Note) !== null && _a !== void 0 ? _a : '';
|
|
29
27
|
const resultNote = (_b = add.ResultNote) !== null && _b !== void 0 ? _b : '';
|
|
30
28
|
const isDeleted = (_c = add.IsDeleted) !== null && _c !== void 0 ? _c : false;
|
|
@@ -6,7 +6,8 @@ async function getBaseInfo(i, returnData) {
|
|
|
6
6
|
var _a;
|
|
7
7
|
const dataset = this.getNodeParameter('dataset', i);
|
|
8
8
|
const map = {
|
|
9
|
-
|
|
9
|
+
deal_pipelines: { path: '/api/pipeline/list/0', method: 'POST' },
|
|
10
|
+
case_pipelines: { path: '/api/pipeline/list/1', method: 'POST' },
|
|
10
11
|
activityTypes: { path: '/api/activity/GetActivityType', method: 'POST' },
|
|
11
12
|
customFields: { path: '/api/customfield/GetCustomfieldList', method: 'POST' },
|
|
12
13
|
productCategories: { path: '/api/product/categories', method: 'POST' },
|
|
@@ -8,12 +8,13 @@ exports.getBaseInfoProperties = [
|
|
|
8
8
|
name: 'dataset',
|
|
9
9
|
type: 'options',
|
|
10
10
|
options: [
|
|
11
|
-
{ name: 'Pipelines', value: '
|
|
11
|
+
{ name: 'Deal Pipelines', value: 'deal_pipelines' },
|
|
12
|
+
{ name: 'Case Pipelines', value: 'case_pipelines' },
|
|
12
13
|
{ name: 'Activity Types', value: 'activityTypes' },
|
|
13
14
|
{ name: 'Custom Fields List', value: 'customFields' },
|
|
14
15
|
{ name: 'Product Categories', value: 'productCategories' },
|
|
15
16
|
],
|
|
16
|
-
default: '
|
|
17
|
+
default: 'deal_pipelines',
|
|
17
18
|
displayOptions: showForGetBaseInfo,
|
|
18
19
|
description: 'Choose which base information to fetch.',
|
|
19
20
|
},
|