@easy8/n8n-nodes-easy8 0.1.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 +21 -0
- package/README.md +310 -0
- package/dist/credentials/Easy8.dark.svg +17 -0
- package/dist/credentials/Easy8.svg +16 -0
- package/dist/credentials/Easy8Api.credentials.d.ts +13 -0
- package/dist/credentials/Easy8Api.credentials.js +47 -0
- package/dist/credentials/Easy8Api.credentials.js.map +1 -0
- package/dist/images/cred-guide-1.png +0 -0
- package/dist/images/cred-guide-2.png +0 -0
- package/dist/images/cred-guide-3.png +0 -0
- package/dist/nodes/Easy8/Easy8.dark.svg +17 -0
- package/dist/nodes/Easy8/Easy8.node.d.ts +10 -0
- package/dist/nodes/Easy8/Easy8.node.js +283 -0
- package/dist/nodes/Easy8/Easy8.node.js.map +1 -0
- package/dist/nodes/Easy8/Easy8.svg +16 -0
- package/dist/nodes/Easy8/LoadOptions.d.ts +4 -0
- package/dist/nodes/Easy8/LoadOptions.js +157 -0
- package/dist/nodes/Easy8/LoadOptions.js.map +1 -0
- package/dist/nodes/Easy8/Model.d.ts +18 -0
- package/dist/nodes/Easy8/Model.js +24 -0
- package/dist/nodes/Easy8/Model.js.map +1 -0
- package/dist/nodes/Easy8/client/Autocomplete.d.ts +5 -0
- package/dist/nodes/Easy8/client/Autocomplete.js +3 -0
- package/dist/nodes/Easy8/client/Autocomplete.js.map +1 -0
- package/dist/nodes/Easy8/client/Easy8Client.d.ts +18 -0
- package/dist/nodes/Easy8/client/Easy8Client.js +124 -0
- package/dist/nodes/Easy8/client/Easy8Client.js.map +1 -0
- package/dist/nodes/Easy8/client/Issue.d.ts +15 -0
- package/dist/nodes/Easy8/client/Issue.js +3 -0
- package/dist/nodes/Easy8/client/Issue.js.map +1 -0
- package/dist/nodes/Easy8/client/Project.d.ts +10 -0
- package/dist/nodes/Easy8/client/Project.js +3 -0
- package/dist/nodes/Easy8/client/Project.js.map +1 -0
- package/dist/nodes/Easy8/client/Resources.d.ts +8 -0
- package/dist/nodes/Easy8/client/Resources.js +3 -0
- package/dist/nodes/Easy8/client/Resources.js.map +1 -0
- package/dist/nodes/Easy8/client/index.d.ts +3 -0
- package/dist/nodes/Easy8/client/index.js +20 -0
- package/dist/nodes/Easy8/client/index.js.map +1 -0
- package/dist/nodes/Easy8/fields/AccountFields.d.ts +2 -0
- package/dist/nodes/Easy8/fields/AccountFields.js +293 -0
- package/dist/nodes/Easy8/fields/AccountFields.js.map +1 -0
- package/dist/nodes/Easy8/fields/AttendanceFields.d.ts +2 -0
- package/dist/nodes/Easy8/fields/AttendanceFields.js +141 -0
- package/dist/nodes/Easy8/fields/AttendanceFields.js.map +1 -0
- package/dist/nodes/Easy8/fields/CustomFields.d.ts +2 -0
- package/dist/nodes/Easy8/fields/CustomFields.js +33 -0
- package/dist/nodes/Easy8/fields/CustomFields.js.map +1 -0
- package/dist/nodes/Easy8/fields/IssueFields.d.ts +2 -0
- package/dist/nodes/Easy8/fields/IssueFields.js +200 -0
- package/dist/nodes/Easy8/fields/IssueFields.js.map +1 -0
- package/dist/nodes/Easy8/fields/LeadFields.d.ts +2 -0
- package/dist/nodes/Easy8/fields/LeadFields.js +84 -0
- package/dist/nodes/Easy8/fields/LeadFields.js.map +1 -0
- package/dist/nodes/Easy8/fields/OpportunityFields.d.ts +3 -0
- package/dist/nodes/Easy8/fields/OpportunityFields.js +169 -0
- package/dist/nodes/Easy8/fields/OpportunityFields.js.map +1 -0
- package/dist/nodes/Easy8/fields/PersonalContactFields.d.ts +2 -0
- package/dist/nodes/Easy8/fields/PersonalContactFields.js +207 -0
- package/dist/nodes/Easy8/fields/PersonalContactFields.js.map +1 -0
- package/dist/nodes/Easy8/fields/ProjectFields.d.ts +2 -0
- package/dist/nodes/Easy8/fields/ProjectFields.js +61 -0
- package/dist/nodes/Easy8/fields/ProjectFields.js.map +1 -0
- package/dist/nodes/Easy8/fields/TimeEntryFields.d.ts +2 -0
- package/dist/nodes/Easy8/fields/TimeEntryFields.js +171 -0
- package/dist/nodes/Easy8/fields/TimeEntryFields.js.map +1 -0
- package/dist/nodes/Easy8/fields/UserFields.d.ts +2 -0
- package/dist/nodes/Easy8/fields/UserFields.js +195 -0
- package/dist/nodes/Easy8/fields/UserFields.js.map +1 -0
- package/dist/nodes/Easy8/operations/AddCommentOperation.d.ts +3 -0
- package/dist/nodes/Easy8/operations/AddCommentOperation.js +46 -0
- package/dist/nodes/Easy8/operations/AddCommentOperation.js.map +1 -0
- package/dist/nodes/Easy8/operations/BaseModel.d.ts +18 -0
- package/dist/nodes/Easy8/operations/BaseModel.js +3 -0
- package/dist/nodes/Easy8/operations/BaseModel.js.map +1 -0
- package/dist/nodes/Easy8/operations/CreateModel.d.ts +83 -0
- package/dist/nodes/Easy8/operations/CreateModel.js +3 -0
- package/dist/nodes/Easy8/operations/CreateModel.js.map +1 -0
- package/dist/nodes/Easy8/operations/CreateOperation.d.ts +6 -0
- package/dist/nodes/Easy8/operations/CreateOperation.js +211 -0
- package/dist/nodes/Easy8/operations/CreateOperation.js.map +1 -0
- package/dist/nodes/Easy8/operations/GetManyOperation.d.ts +3 -0
- package/dist/nodes/Easy8/operations/GetManyOperation.js +77 -0
- package/dist/nodes/Easy8/operations/GetManyOperation.js.map +1 -0
- package/dist/nodes/Easy8/operations/GetOneOperation.d.ts +3 -0
- package/dist/nodes/Easy8/operations/GetOneOperation.js +17 -0
- package/dist/nodes/Easy8/operations/GetOneOperation.js.map +1 -0
- package/dist/nodes/Easy8/operations/UpdateModel.d.ts +83 -0
- package/dist/nodes/Easy8/operations/UpdateModel.js +3 -0
- package/dist/nodes/Easy8/operations/UpdateModel.js.map +1 -0
- package/dist/nodes/Easy8/operations/UpdateOperation.d.ts +3 -0
- package/dist/nodes/Easy8/operations/UpdateOperation.js +188 -0
- package/dist/nodes/Easy8/operations/UpdateOperation.js.map +1 -0
- package/dist/nodes/Easy8/utils/ConvertToEasyDate.d.ts +1 -0
- package/dist/nodes/Easy8/utils/ConvertToEasyDate.js +26 -0
- package/dist/nodes/Easy8/utils/ConvertToEasyDate.js.map +1 -0
- package/dist/nodes/Easy8/utils/ExtractBillingOptions.d.ts +20 -0
- package/dist/nodes/Easy8/utils/ExtractBillingOptions.js +29 -0
- package/dist/nodes/Easy8/utils/ExtractBillingOptions.js.map +1 -0
- package/dist/nodes/Easy8/utils/SanitizeDomain.d.ts +1 -0
- package/dist/nodes/Easy8/utils/SanitizeDomain.js +10 -0
- package/dist/nodes/Easy8/utils/SanitizeDomain.js.map +1 -0
- package/dist/nodes/Easy8/utils/TryToParseParameterAsNumber.d.ts +2 -0
- package/dist/nodes/Easy8/utils/TryToParseParameterAsNumber.js +18 -0
- package/dist/nodes/Easy8/utils/TryToParseParameterAsNumber.js.map +1 -0
- package/dist/nodes/Easy8/utils/index.d.ts +4 -0
- package/dist/nodes/Easy8/utils/index.js +21 -0
- package/dist/nodes/Easy8/utils/index.js.map +1 -0
- package/dist/package.json +58 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +58 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AttendanceFields.js","sourceRoot":"","sources":["../../../../nodes/Easy8/fields/AttendanceFields.ts"],"names":[],"mappings":";;;AAAA,oCAAuE;AAGvE,MAAM,uBAAuB,GAAsB;IACjD;QACE,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,UAAU;QAChB,OAAO,EAAE,EAAE;KACZ;IACD;QACE,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;KACZ;IACD;QACE,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;KACZ;CACF,CAAC;AAEF,MAAM,uBAAuB,GAAsB;IACjD;QACE,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf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
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CustomFieldsOption = void 0;
|
|
4
|
+
exports.CustomFieldsOption = {
|
|
5
|
+
displayName: 'Custom Fields',
|
|
6
|
+
name: 'customFields',
|
|
7
|
+
type: 'fixedCollection',
|
|
8
|
+
typeOptions: {
|
|
9
|
+
multipleValues: true,
|
|
10
|
+
},
|
|
11
|
+
default: {},
|
|
12
|
+
options: [
|
|
13
|
+
{
|
|
14
|
+
name: 'field',
|
|
15
|
+
displayName: 'Field',
|
|
16
|
+
values: [
|
|
17
|
+
{
|
|
18
|
+
displayName: 'ID',
|
|
19
|
+
name: 'id',
|
|
20
|
+
type: 'number',
|
|
21
|
+
default: '',
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
displayName: 'Value',
|
|
25
|
+
name: 'value',
|
|
26
|
+
type: 'string',
|
|
27
|
+
default: '',
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=CustomFields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CustomFields.js","sourceRoot":"","sources":["../../../../nodes/Easy8/fields/CustomFields.ts"],"names":[],"mappings":";;;AAEa,QAAA,kBAAkB,GAAoB;IAClD,WAAW,EAAE,eAAe;IAC5B,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE;QACZ,cAAc,EAAE,IAAI;KACpB;IACD,OAAO,EAAE,EAAE;IACX,OAAO,EAAE;QACR;YACC,IAAI,EAAE,OAAO;YACb,WAAW,EAAE,OAAO;YACpB,MAAM,EAAE;gBACP;oBACC,WAAW,EAAE,IAAI;oBACjB,IAAI,EAAE,IAAI;oBACV,IAAI,EAAE,QAAQ;oBACd,OAAO,EAAE,EAAE;iBACX;gBACD;oBACC,WAAW,EAAE,OAAO;oBACpB,IAAI,EAAE,OAAO;oBACb,IAAI,EAAE,QAAQ;oBACd,OAAO,EAAE,EAAE;iBACX;aACD;SACD;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IssueFields = void 0;
|
|
4
|
+
const Model_1 = require("../Model");
|
|
5
|
+
const CustomFields_1 = require("./CustomFields");
|
|
6
|
+
const ProjectIdField = {
|
|
7
|
+
displayName: 'Project Name or ID',
|
|
8
|
+
name: 'projectId',
|
|
9
|
+
type: 'options',
|
|
10
|
+
description: 'ID of the project. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
11
|
+
default: '',
|
|
12
|
+
typeOptions: {
|
|
13
|
+
loadOptionsMethod: 'getAccessibleProjects',
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
const CommonIssueFields = [
|
|
17
|
+
{
|
|
18
|
+
displayName: 'Assigned To ID',
|
|
19
|
+
description: 'ID of the user to assign the issue to',
|
|
20
|
+
name: 'assignedToId',
|
|
21
|
+
type: 'number',
|
|
22
|
+
default: '',
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
displayName: 'Description',
|
|
26
|
+
name: 'description',
|
|
27
|
+
type: 'string',
|
|
28
|
+
default: '',
|
|
29
|
+
description: 'Issue description',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
displayName: 'Done Ratio (0-100)',
|
|
33
|
+
name: 'doneRatio',
|
|
34
|
+
type: 'number',
|
|
35
|
+
default: '',
|
|
36
|
+
description: 'Percentage of completion of the issue',
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
displayName: 'Due Date',
|
|
40
|
+
name: 'dueDate',
|
|
41
|
+
type: 'dateTime',
|
|
42
|
+
default: '',
|
|
43
|
+
description: 'Due date of the issue',
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
displayName: 'Estimated Hours',
|
|
47
|
+
name: 'estimatedHours',
|
|
48
|
+
type: 'number',
|
|
49
|
+
default: '',
|
|
50
|
+
description: 'Estimated hours to complete the issue',
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
displayName: 'Private Issue',
|
|
54
|
+
name: 'isPrivate',
|
|
55
|
+
type: 'boolean',
|
|
56
|
+
default: false,
|
|
57
|
+
description: 'Whether to make the issue private',
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
displayName: 'Parent Issue ID',
|
|
61
|
+
name: 'parentIssueId',
|
|
62
|
+
type: 'number',
|
|
63
|
+
default: '',
|
|
64
|
+
description: 'ID of the parent issue',
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
displayName: 'Priority Name or ID',
|
|
68
|
+
name: 'priorityId',
|
|
69
|
+
type: 'options',
|
|
70
|
+
description: 'ID of the priority. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
71
|
+
default: '',
|
|
72
|
+
typeOptions: {
|
|
73
|
+
loadOptionsMethod: 'getAvailablePriorities',
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
displayName: 'Start Date',
|
|
78
|
+
name: 'startDate',
|
|
79
|
+
type: 'dateTime',
|
|
80
|
+
description: 'Start date of the issue',
|
|
81
|
+
default: '',
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
displayName: 'Status Name or ID',
|
|
85
|
+
name: 'statusId',
|
|
86
|
+
type: 'options',
|
|
87
|
+
description: 'ID of the status. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
88
|
+
default: '',
|
|
89
|
+
typeOptions: {
|
|
90
|
+
loadOptionsMethod: 'getAvailableStatuses',
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
displayName: 'Tracker Name or ID',
|
|
95
|
+
name: 'trackerId',
|
|
96
|
+
type: 'options',
|
|
97
|
+
description: 'ID of the tracker. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
98
|
+
default: '',
|
|
99
|
+
typeOptions: {
|
|
100
|
+
loadOptionsMethod: 'getProjectsTrackers',
|
|
101
|
+
loadOptionsDependsOn: ['projectId', 'id', 'issueUpdateOptions.projectId'],
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
];
|
|
105
|
+
exports.IssueFields = [
|
|
106
|
+
{
|
|
107
|
+
displayName: 'Issue ID',
|
|
108
|
+
name: 'id',
|
|
109
|
+
type: 'number',
|
|
110
|
+
displayOptions: {
|
|
111
|
+
show: {
|
|
112
|
+
operation: [
|
|
113
|
+
Model_1.EasyNodeOperationType.getOne,
|
|
114
|
+
Model_1.EasyNodeOperationType.addComment,
|
|
115
|
+
Model_1.EasyNodeOperationType.update,
|
|
116
|
+
],
|
|
117
|
+
resource: ['issues'],
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
default: '',
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
displayName: 'Easy8 Issues Query Name or ID',
|
|
124
|
+
name: 'issueQueryId',
|
|
125
|
+
type: 'options',
|
|
126
|
+
description: 'Choose a query to filter the results. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
127
|
+
displayOptions: {
|
|
128
|
+
show: {
|
|
129
|
+
resource: [Model_1.EasyNodeResourceType.issues],
|
|
130
|
+
operation: [Model_1.EasyNodeOperationType.getMany],
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
typeOptions: {
|
|
134
|
+
loadOptionsMethod: 'getEasyIssueQueries',
|
|
135
|
+
},
|
|
136
|
+
default: '',
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
displayName: 'Subject',
|
|
140
|
+
name: 'subject',
|
|
141
|
+
type: 'string',
|
|
142
|
+
description: 'Subject of the issue',
|
|
143
|
+
displayOptions: {
|
|
144
|
+
show: {
|
|
145
|
+
resource: [Model_1.EasyNodeResourceType.issues],
|
|
146
|
+
operation: [Model_1.EasyNodeOperationType.create],
|
|
147
|
+
},
|
|
148
|
+
},
|
|
149
|
+
default: '',
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
...ProjectIdField,
|
|
153
|
+
displayOptions: {
|
|
154
|
+
show: {
|
|
155
|
+
resource: [Model_1.EasyNodeResourceType.issues],
|
|
156
|
+
operation: [Model_1.EasyNodeOperationType.create],
|
|
157
|
+
},
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
displayName: 'Create Fields',
|
|
162
|
+
name: 'issueCreateOptions',
|
|
163
|
+
type: 'collection',
|
|
164
|
+
placeholder: 'Add option',
|
|
165
|
+
default: {},
|
|
166
|
+
displayOptions: {
|
|
167
|
+
show: {
|
|
168
|
+
operation: [Model_1.EasyNodeOperationType.create],
|
|
169
|
+
resource: [Model_1.EasyNodeResourceType.issues],
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
options: [...CommonIssueFields, CustomFields_1.CustomFieldsOption],
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
displayName: 'Update Fields',
|
|
176
|
+
name: 'issueUpdateOptions',
|
|
177
|
+
type: 'collection',
|
|
178
|
+
placeholder: 'Add option',
|
|
179
|
+
default: {},
|
|
180
|
+
displayOptions: {
|
|
181
|
+
show: {
|
|
182
|
+
operation: [Model_1.EasyNodeOperationType.update],
|
|
183
|
+
resource: [Model_1.EasyNodeResourceType.issues],
|
|
184
|
+
},
|
|
185
|
+
},
|
|
186
|
+
options: [
|
|
187
|
+
{
|
|
188
|
+
displayName: 'Subject',
|
|
189
|
+
name: 'subject',
|
|
190
|
+
type: 'string',
|
|
191
|
+
default: '',
|
|
192
|
+
description: 'Subject of the issue',
|
|
193
|
+
},
|
|
194
|
+
ProjectIdField,
|
|
195
|
+
...CommonIssueFields,
|
|
196
|
+
CustomFields_1.CustomFieldsOption,
|
|
197
|
+
],
|
|
198
|
+
},
|
|
199
|
+
];
|
|
200
|
+
//# sourceMappingURL=IssueFields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IssueFields.js","sourceRoot":"","sources":["../../../../nodes/Easy8/fields/IssueFields.ts"],"names":[],"mappings":";;;AAAA,oCAAuE;AAEvE,iDAAoD;AAEpD,MAAM,cAAc,GAAoB;IACtC,WAAW,EAAE,oBAAoB;IACjC,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,SAAS;IACf,WAAW,EACT,oIAAoI;IACtI,OAAO,EAAE,EAAE;IACX,WAAW,EAAE;QACX,iBAAiB,EAAE,uBAAuB;KAC3C;CACF,CAAC;AAEF,MAAM,iBAAiB,GAAsB;IAC3C;QACE,WAAW,EAAE,gBAAgB;QAC7B,WAAW,EAAE,uCAAuC;QACpD,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;KACZ;IACD;QACE,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,mBAAmB;KACjC;IACD;QACE,WAAW,EAAE,oBAAoB;QACjC,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,uCAAuC;KACrD;IACD;QACE,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,UAAU;QAChB,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,uBAAuB;KACrC;IACD;QACE,WAAW,EAAE,iBAAiB;QAC9B,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,uCAAuC;KACrD;IACD;QACE,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,OAAO,EAA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AE,YAAY;QAClB,WAAW,EAAE,YAAY;QACzB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,SAAS,EAAE,CAAC,6BAAqB,CAAC,MAAM,CAAC;gBACzC,QAAQ,EAAE,CAAC,4BAAoB,CAAC,MAAM,CAAC;aACxC;SACF;QACD,OAAO,EAAE;YACP;gBACE,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,sBAAsB;aACpC;YACD,cAAc;YACd,GAAG,iBAAiB;YACpB,iCAAkB;SACnB;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LeadFields = void 0;
|
|
4
|
+
const Model_1 = require("../Model");
|
|
5
|
+
const CustomFields_1 = require("./CustomFields");
|
|
6
|
+
const CommonLeadOptions = [
|
|
7
|
+
{
|
|
8
|
+
displayName: 'Company Name',
|
|
9
|
+
name: 'companyName',
|
|
10
|
+
type: 'string',
|
|
11
|
+
default: '',
|
|
12
|
+
description: 'Lead company name',
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
displayName: 'Description',
|
|
16
|
+
name: 'description',
|
|
17
|
+
type: 'string',
|
|
18
|
+
default: '',
|
|
19
|
+
description: 'Lead description',
|
|
20
|
+
},
|
|
21
|
+
];
|
|
22
|
+
exports.LeadFields = [
|
|
23
|
+
{
|
|
24
|
+
displayName: 'Lead ID',
|
|
25
|
+
name: 'id',
|
|
26
|
+
type: 'number',
|
|
27
|
+
displayOptions: {
|
|
28
|
+
show: {
|
|
29
|
+
operation: [
|
|
30
|
+
Model_1.EasyNodeOperationType.getOne,
|
|
31
|
+
Model_1.EasyNodeOperationType.addComment,
|
|
32
|
+
Model_1.EasyNodeOperationType.update,
|
|
33
|
+
],
|
|
34
|
+
resource: [Model_1.EasyNodeResourceType.leads],
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
default: '',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
displayName: 'Easy8 Leads Query Name or ID',
|
|
41
|
+
name: 'leadQueryId',
|
|
42
|
+
type: 'options',
|
|
43
|
+
description: 'Choose a query to filter the results. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
44
|
+
displayOptions: {
|
|
45
|
+
show: {
|
|
46
|
+
resource: [Model_1.EasyNodeResourceType.leads],
|
|
47
|
+
operation: [Model_1.EasyNodeOperationType.getMany],
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
typeOptions: {
|
|
51
|
+
loadOptionsMethod: 'getEasyLeadQueries',
|
|
52
|
+
},
|
|
53
|
+
default: '',
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
displayName: 'Create Options',
|
|
57
|
+
name: 'leadCreateOptions',
|
|
58
|
+
type: 'collection',
|
|
59
|
+
placeholder: 'Add option',
|
|
60
|
+
default: {},
|
|
61
|
+
displayOptions: {
|
|
62
|
+
show: {
|
|
63
|
+
operation: [Model_1.EasyNodeOperationType.create],
|
|
64
|
+
resource: [Model_1.EasyNodeResourceType.leads],
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
options: [...CommonLeadOptions, CustomFields_1.CustomFieldsOption],
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
displayName: 'Update Fields',
|
|
71
|
+
name: 'leadUpdateOptions',
|
|
72
|
+
type: 'collection',
|
|
73
|
+
placeholder: 'Add option',
|
|
74
|
+
default: {},
|
|
75
|
+
displayOptions: {
|
|
76
|
+
show: {
|
|
77
|
+
operation: [Model_1.EasyNodeOperationType.update],
|
|
78
|
+
resource: [Model_1.EasyNodeResourceType.leads],
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
options: [...CommonLeadOptions, CustomFields_1.CustomFieldsOption],
|
|
82
|
+
},
|
|
83
|
+
];
|
|
84
|
+
//# sourceMappingURL=LeadFields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LeadFields.js","sourceRoot":"","sources":["../../../../nodes/Easy8/fields/LeadFields.ts"],"names":[],"mappings":";;;AAAA,oCAAuE;AAEvE,iDAAoD;AAEpD,MAAM,iBAAiB,GAAsB;IAC3C;QACE,WAAW,EAAE,cAAc;QAC3B,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,mBAAmB;KACjC;IACD;QACE,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,kBAAkB;KAChC;CACF,CAAC;AAEW,QAAA,UAAU,GAAsB;IAC3C;QACE,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,IAAI;QACV,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,SAAS,EAAE;oBACT,6BAAqB,CAAC,MAAM;oBAC5B,6BAAqB,CAAC,UAAU;oBAChC,6BAAqB,CAAC,MAAM;iBAC7B;gBACD,QAAQ,EAAE,CAAC,4BAAoB,CAAC,KAAK,CAAC;aACvC;SACF;QACD,OAAO,EAAE,EAAE;KACZ;IAED;QACE,WAAW,EAAE,8BAA8B;QAC3C,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,SAAS;QACf,WAAW,EACT,gRAAgR;QAClR,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,4BAAoB,CAAC,KAAK,CAAC;gBACtC,SAAS,EAAE,CAAC,6BAAqB,CAAC,OAAO,CAAC;aAC3C;SACF;QACD,WAAW,EAAE;YACX,iBAAiB,EAAE,oBAAoB;SACxC;QACD,OAAO,EAAE,EAAE;KACZ;IAED;QACE,WAAW,EAAE,gBAAgB;QAC7B,IAAI,EAAE,mBAAmB;QACzB,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,YAAY;QACzB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,SAAS,EAAE,CAAC,6BAAqB,CAAC,MAAM,CAAC;gBACzC,QAAQ,EAAE,CAAC,4BAAoB,CAAC,KAAK,CAAC;aACvC;SACF;QACD,OAAO,EAAE,CAAC,GAAG,iBAAiB,EAAE,iCAAkB,CAAC;KACpD;IAED;QACE,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,mBAAmB;QACzB,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,YAAY;QACzB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,SAAS,EAAE,CAAC,6BAAqB,CAAC,MAAM,CAAC;gBACzC,QAAQ,EAAE,CAAC,4BAAoB,CAAC,KAAK,CAAC;aACvC;SACF;QACD,OAAO,EAAE,CAAC,GAAG,iBAAiB,EAAE,iCAAkB,CAAC;KACpD;CACF,CAAC"}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OpportunityFields = exports.OpportunityOptions = void 0;
|
|
4
|
+
const Model_1 = require("../Model");
|
|
5
|
+
const CustomFields_1 = require("./CustomFields");
|
|
6
|
+
exports.OpportunityOptions = [
|
|
7
|
+
{
|
|
8
|
+
displayName: 'Status ID',
|
|
9
|
+
name: 'statusId',
|
|
10
|
+
type: 'number',
|
|
11
|
+
default: '',
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
displayName: 'Account Manager ID',
|
|
15
|
+
name: 'assignedToId',
|
|
16
|
+
type: 'number',
|
|
17
|
+
default: '',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
displayName: 'External Account Manager ID',
|
|
21
|
+
name: 'externalAssignedToId',
|
|
22
|
+
type: 'number',
|
|
23
|
+
default: '',
|
|
24
|
+
description: 'External account manager identifier',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
displayName: 'Price',
|
|
28
|
+
name: 'price',
|
|
29
|
+
type: 'number',
|
|
30
|
+
default: '',
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
displayName: 'Contract Date',
|
|
34
|
+
name: 'contractDate',
|
|
35
|
+
type: 'string',
|
|
36
|
+
default: '',
|
|
37
|
+
description: 'Contract date in YYYY-MM-DD format',
|
|
38
|
+
},
|
|
39
|
+
];
|
|
40
|
+
exports.OpportunityFields = [
|
|
41
|
+
{
|
|
42
|
+
displayName: 'Opportunity ID',
|
|
43
|
+
name: 'id',
|
|
44
|
+
type: 'number',
|
|
45
|
+
displayOptions: {
|
|
46
|
+
show: {
|
|
47
|
+
operation: [
|
|
48
|
+
Model_1.EasyNodeOperationType.getOne,
|
|
49
|
+
Model_1.EasyNodeOperationType.addComment,
|
|
50
|
+
Model_1.EasyNodeOperationType.update,
|
|
51
|
+
],
|
|
52
|
+
resource: [Model_1.EasyNodeResourceType.opportunities],
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
default: '',
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
displayName: 'Easy8 Opportunities Query Name or ID',
|
|
59
|
+
name: 'opportunityQueryId',
|
|
60
|
+
type: 'options',
|
|
61
|
+
description: 'Choose a query to filter the results. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
62
|
+
displayOptions: {
|
|
63
|
+
show: {
|
|
64
|
+
resource: [Model_1.EasyNodeResourceType.opportunities],
|
|
65
|
+
operation: [Model_1.EasyNodeOperationType.getMany],
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
typeOptions: {
|
|
69
|
+
loadOptionsMethod: 'getEasyCrmCaseQueries',
|
|
70
|
+
},
|
|
71
|
+
default: '',
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
displayName: 'Name',
|
|
75
|
+
name: 'name',
|
|
76
|
+
type: 'string',
|
|
77
|
+
default: '',
|
|
78
|
+
displayOptions: {
|
|
79
|
+
show: {
|
|
80
|
+
operation: [Model_1.EasyNodeOperationType.create],
|
|
81
|
+
resource: [Model_1.EasyNodeResourceType.opportunities],
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
displayName: 'Account ID',
|
|
87
|
+
name: 'accountId',
|
|
88
|
+
type: 'number',
|
|
89
|
+
default: '',
|
|
90
|
+
displayOptions: {
|
|
91
|
+
show: {
|
|
92
|
+
operation: [Model_1.EasyNodeOperationType.create],
|
|
93
|
+
resource: [Model_1.EasyNodeResourceType.opportunities],
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
displayName: 'Project Name or ID',
|
|
99
|
+
name: 'projectId',
|
|
100
|
+
type: 'options',
|
|
101
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
102
|
+
default: '',
|
|
103
|
+
displayOptions: {
|
|
104
|
+
show: {
|
|
105
|
+
operation: [Model_1.EasyNodeOperationType.create],
|
|
106
|
+
resource: [Model_1.EasyNodeResourceType.opportunities],
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
typeOptions: {
|
|
110
|
+
loadOptionsMethod: 'getAccessibleProjects',
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
displayName: 'Create Options',
|
|
115
|
+
name: 'opportunityCreateOptions',
|
|
116
|
+
type: 'collection',
|
|
117
|
+
placeholder: 'Add option',
|
|
118
|
+
default: {},
|
|
119
|
+
displayOptions: {
|
|
120
|
+
show: {
|
|
121
|
+
operation: [Model_1.EasyNodeOperationType.create],
|
|
122
|
+
resource: [Model_1.EasyNodeResourceType.opportunities],
|
|
123
|
+
},
|
|
124
|
+
},
|
|
125
|
+
options: [...exports.OpportunityOptions, CustomFields_1.CustomFieldsOption],
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
displayName: 'Update Fields',
|
|
129
|
+
name: 'opportunityUpdateOptions',
|
|
130
|
+
type: 'collection',
|
|
131
|
+
placeholder: 'Add option',
|
|
132
|
+
default: {},
|
|
133
|
+
displayOptions: {
|
|
134
|
+
show: {
|
|
135
|
+
operation: [Model_1.EasyNodeOperationType.update],
|
|
136
|
+
resource: [Model_1.EasyNodeResourceType.opportunities],
|
|
137
|
+
},
|
|
138
|
+
},
|
|
139
|
+
options: [
|
|
140
|
+
{
|
|
141
|
+
displayName: 'Name',
|
|
142
|
+
name: 'name',
|
|
143
|
+
type: 'string',
|
|
144
|
+
default: '',
|
|
145
|
+
description: 'Opportunity name',
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
displayName: 'Description',
|
|
149
|
+
name: 'description',
|
|
150
|
+
type: 'string',
|
|
151
|
+
default: '',
|
|
152
|
+
description: 'Opportunity description',
|
|
153
|
+
},
|
|
154
|
+
...exports.OpportunityOptions,
|
|
155
|
+
{
|
|
156
|
+
displayName: 'Project Name or ID',
|
|
157
|
+
name: 'projectId',
|
|
158
|
+
type: 'options',
|
|
159
|
+
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>',
|
|
160
|
+
default: '',
|
|
161
|
+
typeOptions: {
|
|
162
|
+
loadOptionsMethod: 'getAccessibleProjects',
|
|
163
|
+
},
|
|
164
|
+
},
|
|
165
|
+
CustomFields_1.CustomFieldsOption,
|
|
166
|
+
],
|
|
167
|
+
},
|
|
168
|
+
];
|
|
169
|
+
//# sourceMappingURL=OpportunityFields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OpportunityFields.js","sourceRoot":"","sources":["../../../../nodes/Easy8/fields/OpportunityFields.ts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