n8n-nodes-didar-crm 0.0.11 → 0.0.12

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.
@@ -0,0 +1,2 @@
1
+ export * from './nodes/DidarCrm.node';
2
+ export * from './credentials/DidarApi.credentials';
package/dist/index.js ADDED
@@ -0,0 +1,19 @@
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
+ // index.ts (Root)
18
+ __exportStar(require("./nodes/DidarCrm.node"), exports);
19
+ __exportStar(require("./credentials/DidarApi.credentials"), exports);
@@ -53,6 +53,7 @@ exports.activityCreateProperties = [
53
53
  { name: 'Enter ID manually', value: 'manual' },
54
54
  ],
55
55
  default: 'select',
56
+ displayOptions: showForActivityCreate,
56
57
  description: 'Choose how to set the owner.',
57
58
  },
58
59
  {
@@ -61,7 +62,7 @@ exports.activityCreateProperties = [
61
62
  type: 'options',
62
63
  typeOptions: { loadOptionsMethod: 'getUsers' },
63
64
  default: '',
64
- displayOptions: { show: { OwnerMode: ['select'] } },
65
+ displayOptions: { show: { ...showForActivityCreate.show, OwnerMode: ['select'] } },
65
66
  description: 'Select the owner user (required if select mode).',
66
67
  },
67
68
  {
@@ -69,7 +70,7 @@ exports.activityCreateProperties = [
69
70
  name: 'OwnerIdManual',
70
71
  type: 'string',
71
72
  default: '',
72
- displayOptions: { show: { OwnerMode: ['manual'] } },
73
+ displayOptions: { show: { ...showForActivityCreate.show, OwnerMode: ['manual'] } },
73
74
  description: 'Enter owner user ID manually (required if manual mode).',
74
75
  },
75
76
  {
@@ -53,44 +53,43 @@ exports.activityUpdateProperties = [
53
53
  displayOptions: { show: { resource: ['activity'], operation: ['update'], ActivityTypeMode: ['manual'] } },
54
54
  description: 'Enter activity type ID manually (required if manual mode).',
55
55
  },
56
- // // Owner (فقط این‌جا، نه در Additional Fields)
57
- // {
58
- // displayName: 'Owner Input Mode',
59
- // name: 'OwnerMode',
60
- // type: 'options',
61
- // options: [
62
- // { name: 'Select from list', value: 'select' },
63
- // { name: 'Enter ID manually', value: 'manual' },
64
- // ],
65
- // default: 'select',
66
- // displayOptions: showForActivityUpdate,
67
- // description: 'Choose how to set the owner.',
68
- // },
69
- // {
70
- // displayName: 'Owner',
71
- // name: 'OwnerIdSelect',
72
- // type: 'options',
73
- // typeOptions: { loadOptionsMethod: 'getUsers' },
74
- // default: '',
75
- // displayOptions: { show: { resource: ['activity'], operation: ['update'], OwnerMode: ['select'] } },
76
- // description: 'Select the owner user (required if select mode).',
77
- // },
78
- // {
79
- // displayName: 'Owner ID',
80
- // name: 'OwnerIdManual',
81
- // type: 'string',
82
- // default: '',
83
- // displayOptions: { show: { resource: ['activity'], operation: ['update'], OwnerMode: ['manual'] } },
84
- // description: 'Enter owner user ID manually (required if manual mode).',
85
- // },
86
- // {
87
- // displayName: 'Is Done',
88
- // name: 'IsDone',
89
- // type: 'boolean',
90
- // default: false,
91
- // displayOptions: showForActivityUpdate,
92
- // description: 'Mark the activity as completed.',
93
- // },
56
+ {
57
+ displayName: 'Owner Input Mode',
58
+ name: 'OwnerMode',
59
+ type: 'options',
60
+ options: [
61
+ { name: 'Select from list', value: 'select' },
62
+ { name: 'Enter ID manually', value: 'manual' },
63
+ ],
64
+ default: 'select',
65
+ displayOptions: showForActivityUpdate,
66
+ description: 'Choose how to set the owner.',
67
+ },
68
+ {
69
+ displayName: 'Owner',
70
+ name: 'OwnerIdSelect',
71
+ type: 'options',
72
+ typeOptions: { loadOptionsMethod: 'getUsers' },
73
+ default: '',
74
+ displayOptions: { show: { ...showForActivityUpdate.show, OwnerMode: ['select'] } },
75
+ description: 'Select the owner user (required if select mode).',
76
+ },
77
+ {
78
+ displayName: 'Owner ID',
79
+ name: 'OwnerIdManual',
80
+ type: 'string',
81
+ default: '',
82
+ displayOptions: { show: { ...showForActivityUpdate.show, OwnerMode: ['manual'] } },
83
+ description: 'Enter owner user ID manually (required if manual mode).',
84
+ },
85
+ {
86
+ displayName: 'Is Done',
87
+ name: 'IsDone',
88
+ type: 'boolean',
89
+ default: false,
90
+ displayOptions: showForActivityUpdate,
91
+ description: 'Mark the activity as completed.',
92
+ },
94
93
  // ===== Additional Fields (بدون Owner) =====
95
94
  {
96
95
  displayName: 'Additional Fields',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-didar-crm",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "description": "Didar CRM nodes for n8n (Trigger + Deal.create)",
5
5
  "author": "You",
6
6
  "license": "MIT",