n8n-nodes-didar-crm 0.0.5 → 0.0.6
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.
|
@@ -512,6 +512,15 @@ class DidarCrm {
|
|
|
512
512
|
{ displayName: 'Custom Fields (JSON)', name: 'Fields', type: 'json', default: '', placeholder: '{ "Field_8783_12_4": 12 }', description: 'JSON object of custom fields.' },
|
|
513
513
|
],
|
|
514
514
|
},
|
|
515
|
+
// ================= Deal → Get (MAIN FIELDS) =========================
|
|
516
|
+
{
|
|
517
|
+
displayName: 'Deal Id',
|
|
518
|
+
name: 'dealId',
|
|
519
|
+
type: 'string',
|
|
520
|
+
default: '',
|
|
521
|
+
displayOptions: { show: { resource: ['deal'], operation: ['get'] } },
|
|
522
|
+
description: 'Deal Id to fetch (required).',
|
|
523
|
+
}
|
|
515
524
|
]
|
|
516
525
|
};
|
|
517
526
|
}
|
|
@@ -6,11 +6,10 @@ async function dealGet(i, returnData) {
|
|
|
6
6
|
const dealId = this.getNodeParameter('dealId', i, '');
|
|
7
7
|
if (!dealId)
|
|
8
8
|
throw new Error('Deal Id is required.');
|
|
9
|
-
// اگر endpoint دقیق get چیز دیگری است، اینجا عوض کن
|
|
10
9
|
const resp = await (0, http_1.didarRequest)(this, i, {
|
|
11
|
-
method: '
|
|
12
|
-
path: '/api/deal/
|
|
13
|
-
|
|
10
|
+
method: 'POST',
|
|
11
|
+
path: '/api/deal/getdealdetail',
|
|
12
|
+
body: { Id: dealId },
|
|
14
13
|
});
|
|
15
14
|
returnData.push({ json: resp });
|
|
16
15
|
}
|