n8n-nodes-didar-crm 0.0.30 → 0.0.31

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.
@@ -12,6 +12,12 @@ async function getBaseInfo(i, returnData) {
12
12
  user_list: { path: '/api/User/List', method: 'POST' },
13
13
  customFields: { path: '/api/customfield/GetCustomfieldList', method: 'POST' },
14
14
  productCategories: { path: '/api/product/categories', method: 'POST' },
15
+ segments: { path: '/api/Segment/GetList', method: 'POST' },
16
+ case_labels: { path: '/api/Label/GetCaseLabels', method: 'GET' },
17
+ deal_labels: { path: '/api/Label/GetDealLabels', method: 'GET' },
18
+ tags: { path: '/api/Tag/GetTagList', method: 'POST' },
19
+ lost_reasons: { path: '/api/Deal/GetLostReasons', method: 'POST' },
20
+ sources: { path: '/api/Source/GetList', method: 'POST' },
15
21
  };
16
22
  const conf = map[dataset];
17
23
  if (!conf)
@@ -19,7 +25,7 @@ async function getBaseInfo(i, returnData) {
19
25
  const resp = await (0, http_1.didarRequest)(this, i, {
20
26
  method: conf.method || 'POST',
21
27
  path: conf.path,
22
- body: {}, // these endpoints are POST even if body is empty
28
+ body: conf.method === 'GET' ? undefined : {}, // GET requests don't need body, POST requests use empty body
23
29
  });
24
30
  // Always return full payload (no limiting)
25
31
  const data = ((_a = resp === null || resp === void 0 ? void 0 : resp.Response) !== null && _a !== void 0 ? _a : resp);
@@ -14,6 +14,12 @@ exports.getBaseInfoProperties = [
14
14
  { name: 'User List', value: 'user_list' },
15
15
  { name: 'Custom Fields List', value: 'customFields' },
16
16
  { name: 'Product Categories', value: 'productCategories' },
17
+ { name: 'Segments', value: 'segments' },
18
+ { name: 'Case Labels', value: 'case_labels' },
19
+ { name: 'Deal Labels', value: 'deal_labels' },
20
+ { name: 'Tags', value: 'tags' },
21
+ { name: 'Lost Reasons', value: 'lost_reasons' },
22
+ { name: 'Sources', value: 'sources' },
17
23
  ],
18
24
  default: 'deal_pipelines',
19
25
  displayOptions: showForGetBaseInfo,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-didar-crm",
3
- "version": "0.0.30",
3
+ "version": "0.0.31",
4
4
  "description": "Didar CRM nodes for n8n (Trigger + Deal.create)",
5
5
  "author": "You",
6
6
  "license": "MIT",