@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,207 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PersonalContactFields = void 0;
|
|
4
|
+
const Model_1 = require("../Model");
|
|
5
|
+
const CustomFields_1 = require("./CustomFields");
|
|
6
|
+
const PersonalContactCreateOptionalFields = [
|
|
7
|
+
{
|
|
8
|
+
displayName: 'Account ID',
|
|
9
|
+
name: 'accountId',
|
|
10
|
+
type: 'number',
|
|
11
|
+
default: '',
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
displayName: 'Partner ID',
|
|
15
|
+
name: 'partnerId',
|
|
16
|
+
type: 'number',
|
|
17
|
+
default: '',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
displayName: 'Job Title',
|
|
21
|
+
name: 'jobTitle',
|
|
22
|
+
type: 'string',
|
|
23
|
+
default: '',
|
|
24
|
+
},
|
|
25
|
+
];
|
|
26
|
+
const PersonalContactUpdateOptionalFields = [
|
|
27
|
+
{
|
|
28
|
+
displayName: 'Account ID',
|
|
29
|
+
name: 'accountId',
|
|
30
|
+
type: 'number',
|
|
31
|
+
default: '',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
displayName: 'Partner ID',
|
|
35
|
+
name: 'partnerId',
|
|
36
|
+
type: 'number',
|
|
37
|
+
default: '',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
displayName: 'First Name',
|
|
41
|
+
name: 'firstname',
|
|
42
|
+
type: 'string',
|
|
43
|
+
default: '',
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
displayName: 'Last Name',
|
|
47
|
+
name: 'lastname',
|
|
48
|
+
type: 'string',
|
|
49
|
+
default: '',
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
displayName: 'Email',
|
|
53
|
+
name: 'mail',
|
|
54
|
+
type: 'string',
|
|
55
|
+
default: '',
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
displayName: 'Job Title',
|
|
59
|
+
name: 'jobTitle',
|
|
60
|
+
type: 'string',
|
|
61
|
+
default: '',
|
|
62
|
+
},
|
|
63
|
+
];
|
|
64
|
+
exports.PersonalContactFields = [
|
|
65
|
+
{
|
|
66
|
+
displayName: 'Operation',
|
|
67
|
+
name: 'operation',
|
|
68
|
+
type: 'options',
|
|
69
|
+
noDataExpression: true,
|
|
70
|
+
displayOptions: {
|
|
71
|
+
show: {
|
|
72
|
+
resource: [Model_1.EasyNodeResourceType.personalContacts],
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
default: 'get-many',
|
|
76
|
+
options: [
|
|
77
|
+
{
|
|
78
|
+
name: 'Get One',
|
|
79
|
+
description: 'Get a single personal contact',
|
|
80
|
+
value: Model_1.EasyNodeOperationType.getOne,
|
|
81
|
+
action: 'Get one',
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: 'Get Many',
|
|
85
|
+
description: 'Get multiple personal contacts',
|
|
86
|
+
value: Model_1.EasyNodeOperationType.getMany,
|
|
87
|
+
action: 'Get many',
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
name: 'Add Comment',
|
|
91
|
+
description: 'Add comment to personal contact',
|
|
92
|
+
value: Model_1.EasyNodeOperationType.addComment,
|
|
93
|
+
action: 'Add comment',
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
name: 'Create',
|
|
97
|
+
description: 'Create personal contact',
|
|
98
|
+
value: Model_1.EasyNodeOperationType.create,
|
|
99
|
+
action: 'Create',
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
name: 'Update',
|
|
103
|
+
description: 'Update personal contact',
|
|
104
|
+
value: Model_1.EasyNodeOperationType.update,
|
|
105
|
+
action: 'Update',
|
|
106
|
+
},
|
|
107
|
+
],
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
displayName: 'Personal Contact ID',
|
|
111
|
+
name: 'id',
|
|
112
|
+
type: 'number',
|
|
113
|
+
displayOptions: {
|
|
114
|
+
show: {
|
|
115
|
+
operation: [
|
|
116
|
+
Model_1.EasyNodeOperationType.getOne,
|
|
117
|
+
Model_1.EasyNodeOperationType.addComment,
|
|
118
|
+
Model_1.EasyNodeOperationType.update,
|
|
119
|
+
],
|
|
120
|
+
resource: [Model_1.EasyNodeResourceType.personalContacts],
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
default: '',
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
displayName: 'Easy8 Personal Contacts Query Name or ID',
|
|
127
|
+
name: 'personalContactQueryId',
|
|
128
|
+
type: 'options',
|
|
129
|
+
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>.',
|
|
130
|
+
displayOptions: {
|
|
131
|
+
show: {
|
|
132
|
+
resource: [Model_1.EasyNodeResourceType.personalContacts],
|
|
133
|
+
operation: [Model_1.EasyNodeOperationType.getMany],
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
typeOptions: {
|
|
137
|
+
loadOptionsMethod: 'getEasyPersonalAccountQueries',
|
|
138
|
+
},
|
|
139
|
+
default: '',
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
displayName: 'First Name',
|
|
143
|
+
name: 'firstname',
|
|
144
|
+
type: 'string',
|
|
145
|
+
displayOptions: {
|
|
146
|
+
show: {
|
|
147
|
+
resource: [Model_1.EasyNodeResourceType.personalContacts],
|
|
148
|
+
operation: [Model_1.EasyNodeOperationType.create],
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
default: '',
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
displayName: 'Last Name',
|
|
155
|
+
name: 'lastname',
|
|
156
|
+
type: 'string',
|
|
157
|
+
displayOptions: {
|
|
158
|
+
show: {
|
|
159
|
+
resource: [Model_1.EasyNodeResourceType.personalContacts],
|
|
160
|
+
operation: [Model_1.EasyNodeOperationType.create],
|
|
161
|
+
},
|
|
162
|
+
},
|
|
163
|
+
default: '',
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
displayName: 'Email',
|
|
167
|
+
name: 'email',
|
|
168
|
+
type: 'string',
|
|
169
|
+
placeholder: 'name@email.com',
|
|
170
|
+
displayOptions: {
|
|
171
|
+
show: {
|
|
172
|
+
resource: [Model_1.EasyNodeResourceType.personalContacts],
|
|
173
|
+
operation: [Model_1.EasyNodeOperationType.create],
|
|
174
|
+
},
|
|
175
|
+
},
|
|
176
|
+
default: '',
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
displayName: 'Create Fields',
|
|
180
|
+
name: 'personalContactCreateOptions',
|
|
181
|
+
type: 'collection',
|
|
182
|
+
placeholder: 'Add option',
|
|
183
|
+
default: {},
|
|
184
|
+
displayOptions: {
|
|
185
|
+
show: {
|
|
186
|
+
operation: [Model_1.EasyNodeOperationType.create],
|
|
187
|
+
resource: [Model_1.EasyNodeResourceType.personalContacts],
|
|
188
|
+
},
|
|
189
|
+
},
|
|
190
|
+
options: [...PersonalContactCreateOptionalFields, CustomFields_1.CustomFieldsOption],
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
displayName: 'Update Fields',
|
|
194
|
+
name: 'personalContactUpdateOptions',
|
|
195
|
+
type: 'collection',
|
|
196
|
+
placeholder: 'Add option',
|
|
197
|
+
default: {},
|
|
198
|
+
displayOptions: {
|
|
199
|
+
show: {
|
|
200
|
+
operation: [Model_1.EasyNodeOperationType.update],
|
|
201
|
+
resource: [Model_1.EasyNodeResourceType.personalContacts],
|
|
202
|
+
},
|
|
203
|
+
},
|
|
204
|
+
options: [...PersonalContactUpdateOptionalFields, CustomFields_1.CustomFieldsOption],
|
|
205
|
+
},
|
|
206
|
+
];
|
|
207
|
+
//# sourceMappingURL=PersonalContactFields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PersonalContactFields.js","sourceRoot":"","sources":["../../../../nodes/Easy8/fields/PersonalContactFields.ts"],"names":[],"mappings":";;;AAAA,oCAAuE;AAEvE,iDAAoD;AAEpD,MAAM,mCAAmC,GAAsB;IAC7D;QACE,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;KACZ;IACD;QACE,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;KACZ;IACD;QACE,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;KACZ;CACF,CAAC;AAEF,MAAM,mCAAmC,GAAsB;IAC7D;QACE,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAA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ty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProjectFields = void 0;
|
|
4
|
+
const Model_1 = require("../Model");
|
|
5
|
+
exports.ProjectFields = [
|
|
6
|
+
{
|
|
7
|
+
displayName: 'Operation',
|
|
8
|
+
name: 'operation',
|
|
9
|
+
type: 'options',
|
|
10
|
+
noDataExpression: true,
|
|
11
|
+
displayOptions: {
|
|
12
|
+
show: {
|
|
13
|
+
resource: [Model_1.EasyNodeResourceType.projects],
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
default: 'get-many',
|
|
17
|
+
options: [
|
|
18
|
+
{
|
|
19
|
+
name: 'Get One',
|
|
20
|
+
description: 'Get a single project',
|
|
21
|
+
value: Model_1.EasyNodeOperationType.getOne,
|
|
22
|
+
action: 'Get one',
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
name: 'Get Many',
|
|
26
|
+
description: 'Get multiple projects',
|
|
27
|
+
value: Model_1.EasyNodeOperationType.getMany,
|
|
28
|
+
action: 'Get many',
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
displayName: 'Project ID',
|
|
34
|
+
name: 'id',
|
|
35
|
+
type: 'number',
|
|
36
|
+
displayOptions: {
|
|
37
|
+
show: {
|
|
38
|
+
operation: [Model_1.EasyNodeOperationType.getOne],
|
|
39
|
+
resource: [Model_1.EasyNodeResourceType.projects],
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
default: '',
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
displayName: 'Easy8 Project Query Name or ID',
|
|
46
|
+
name: 'projectQueryId',
|
|
47
|
+
type: 'options',
|
|
48
|
+
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>.',
|
|
49
|
+
displayOptions: {
|
|
50
|
+
show: {
|
|
51
|
+
resource: [Model_1.EasyNodeResourceType.projects],
|
|
52
|
+
operation: [Model_1.EasyNodeOperationType.getMany],
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
typeOptions: {
|
|
56
|
+
loadOptionsMethod: 'getEasyProjectQueries',
|
|
57
|
+
},
|
|
58
|
+
default: '',
|
|
59
|
+
},
|
|
60
|
+
];
|
|
61
|
+
//# sourceMappingURL=ProjectFields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProjectFields.js","sourceRoot":"","sources":["../../../../nodes/Easy8/fields/ProjectFields.ts"],"names":[],"mappings":";;;AACA,oCAAuE;AAE1D,QAAA,aAAa,GAAsB;IAC9C;QACE,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,4BAAoB,CAAC,QAAQ,CAAC;aAC1C;SACF;QACD,OAAO,EAAE,UAAU;QACnB,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,sBAAsB;gBACnC,KAAK,EAAE,6BAAqB,CAAC,MAAM;gBACnC,MAAM,EAAE,SAAS;aAClB;YACD;gBACE,IAAI,EAAE,UAAU;gBAChB,WAAW,EAAE,uBAAuB;gBACpC,KAAK,EAAE,6BAAqB,CAAC,OAAO;gBACpC,MAAM,EAAE,UAAU;aACnB;SACF;KACF;IAED;QACE,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,IAAI;QACV,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,SAAS,EAAE,CAAC,6BAAqB,CAAC,MAAM,CAAC;gBACzC,QAAQ,EAAE,CAAC,4BAAoB,CAAC,QAAQ,CAAC;aAC1C;SACF;QACD,OAAO,EAAE,EAAE;KACZ;IAED;QACE,WAAW,EAAE,gCAAgC;QAC7C,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,SAAS;QACf,WAAW,EACT,gRAAgR;QAClR,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,4BAAoB,CAAC,QAAQ,CAAC;gBACzC,SAAS,EAAE,CAAC,6BAAqB,CAAC,OAAO,CAAC;aAC3C;SACF;QACD,WAAW,EAAE;YACX,iBAAiB,EAAE,uBAAuB;SAC3C;QACD,OAAO,EAAE,EAAE;KACZ;CACF,CAAC"}
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TimeEntryFields = void 0;
|
|
4
|
+
const Model_1 = require("../Model");
|
|
5
|
+
const CustomFields_1 = require("./CustomFields");
|
|
6
|
+
const CommonTimeEntryOptions = [
|
|
7
|
+
{
|
|
8
|
+
displayName: 'Comment',
|
|
9
|
+
name: 'comment',
|
|
10
|
+
type: 'string',
|
|
11
|
+
default: '',
|
|
12
|
+
description: 'Time entry comment',
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
displayName: 'Spent On',
|
|
16
|
+
name: 'spentOn',
|
|
17
|
+
type: 'string',
|
|
18
|
+
typeOptions: {
|
|
19
|
+
inputType: 'date',
|
|
20
|
+
dateFormat: 'YYYY-MM-DD',
|
|
21
|
+
},
|
|
22
|
+
default: '',
|
|
23
|
+
placeholder: 'YYYY-MM-DD',
|
|
24
|
+
description: 'Date when the time was spent',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
displayName: 'Project Name or ID',
|
|
28
|
+
name: 'projectId',
|
|
29
|
+
type: 'options',
|
|
30
|
+
default: '',
|
|
31
|
+
description: 'ID of the project associated with the time entry. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
32
|
+
typeOptions: {
|
|
33
|
+
loadOptionsMethod: 'getAccessibleProjects',
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
displayName: 'Activity ID',
|
|
38
|
+
name: 'activityId',
|
|
39
|
+
type: 'number',
|
|
40
|
+
default: '',
|
|
41
|
+
description: 'ID of the activity associated with the time entry',
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
displayName: 'User ID',
|
|
45
|
+
name: 'userId',
|
|
46
|
+
type: 'number',
|
|
47
|
+
default: '',
|
|
48
|
+
description: 'ID of the user to whom the time entry belongs',
|
|
49
|
+
},
|
|
50
|
+
];
|
|
51
|
+
exports.TimeEntryFields = [
|
|
52
|
+
{
|
|
53
|
+
displayName: 'Operation',
|
|
54
|
+
name: 'operation',
|
|
55
|
+
type: 'options',
|
|
56
|
+
noDataExpression: true,
|
|
57
|
+
displayOptions: {
|
|
58
|
+
show: {
|
|
59
|
+
resource: [Model_1.EasyNodeResourceType.timeEntries],
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
default: 'get-many',
|
|
63
|
+
options: [
|
|
64
|
+
{
|
|
65
|
+
name: 'Get One',
|
|
66
|
+
description: 'Get a single entity',
|
|
67
|
+
value: Model_1.EasyNodeOperationType.getOne,
|
|
68
|
+
action: 'Get one',
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
name: 'Get Many',
|
|
72
|
+
description: 'Get multiple entities',
|
|
73
|
+
value: Model_1.EasyNodeOperationType.getMany,
|
|
74
|
+
action: 'Get many',
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
name: 'Create',
|
|
78
|
+
description: 'Create entity',
|
|
79
|
+
value: Model_1.EasyNodeOperationType.create,
|
|
80
|
+
action: 'Create',
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
name: 'Update',
|
|
84
|
+
description: 'Update entity',
|
|
85
|
+
value: Model_1.EasyNodeOperationType.update,
|
|
86
|
+
action: 'Update',
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
displayName: 'Time Entry ID',
|
|
92
|
+
name: 'id',
|
|
93
|
+
type: 'number',
|
|
94
|
+
displayOptions: {
|
|
95
|
+
show: {
|
|
96
|
+
operation: [Model_1.EasyNodeOperationType.getOne, Model_1.EasyNodeOperationType.update],
|
|
97
|
+
resource: [Model_1.EasyNodeResourceType.timeEntries],
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
default: '',
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
displayName: 'Easy8 Time Entries Query Name or ID',
|
|
104
|
+
name: 'timeEntryQueryId',
|
|
105
|
+
type: 'options',
|
|
106
|
+
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>.',
|
|
107
|
+
displayOptions: {
|
|
108
|
+
show: {
|
|
109
|
+
resource: [Model_1.EasyNodeResourceType.timeEntries],
|
|
110
|
+
operation: [Model_1.EasyNodeOperationType.getMany],
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
typeOptions: {
|
|
114
|
+
loadOptionsMethod: 'getTimeEntryQueries',
|
|
115
|
+
},
|
|
116
|
+
default: '',
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
displayName: 'Hours',
|
|
120
|
+
name: 'hours',
|
|
121
|
+
type: 'number',
|
|
122
|
+
default: '',
|
|
123
|
+
required: true,
|
|
124
|
+
description: 'Spent hours',
|
|
125
|
+
displayOptions: {
|
|
126
|
+
show: {
|
|
127
|
+
resource: [Model_1.EasyNodeResourceType.timeEntries],
|
|
128
|
+
operation: [Model_1.EasyNodeOperationType.create],
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
displayName: 'Create Fields',
|
|
134
|
+
name: 'timeEntryCreateOptions',
|
|
135
|
+
type: 'collection',
|
|
136
|
+
placeholder: 'Add option',
|
|
137
|
+
default: {},
|
|
138
|
+
displayOptions: {
|
|
139
|
+
show: {
|
|
140
|
+
operation: [Model_1.EasyNodeOperationType.create],
|
|
141
|
+
resource: [Model_1.EasyNodeResourceType.timeEntries],
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
options: [...CommonTimeEntryOptions, CustomFields_1.CustomFieldsOption],
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
displayName: 'Update Fields',
|
|
148
|
+
name: 'timeEntryUpdateOptions',
|
|
149
|
+
type: 'collection',
|
|
150
|
+
placeholder: 'Add option',
|
|
151
|
+
default: {},
|
|
152
|
+
displayOptions: {
|
|
153
|
+
show: {
|
|
154
|
+
operation: [Model_1.EasyNodeOperationType.update],
|
|
155
|
+
resource: [Model_1.EasyNodeResourceType.timeEntries],
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
options: [
|
|
159
|
+
{
|
|
160
|
+
displayName: 'Hours',
|
|
161
|
+
name: 'hours',
|
|
162
|
+
type: 'number',
|
|
163
|
+
default: '',
|
|
164
|
+
description: 'Spent hours',
|
|
165
|
+
},
|
|
166
|
+
...CommonTimeEntryOptions,
|
|
167
|
+
CustomFields_1.CustomFieldsOption,
|
|
168
|
+
],
|
|
169
|
+
},
|
|
170
|
+
];
|
|
171
|
+
//# sourceMappingURL=TimeEntryFields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TimeEntryFields.js","sourceRoot":"","sources":["../../../../nodes/Easy8/fields/TimeEntryFields.ts"],"names":[],"mappings":";;;AACA,oCAAuE;AACvE,iDAAoD;AAEpD,MAAM,sBAAsB,GAAsB;IAChD;QACE,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,oBAAoB;KAClC;IAED;QACE,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE;YACX,SAAS,EAAE,MAAM;YACjB,UAAU,EAAE,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AAM,CAAC;gBACzC,QAAQ,EAAE,CAAC,4BAAoB,CAAC,WAAW,CAAC;aAC7C;SACF;QACD,OAAO,EAAE,CAAC,GAAG,sBAAsB,EAAE,iCAAkB,CAAC;KACzD;IAED;QACE,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,wBAAwB;QAC9B,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,WAAW,CAAC;aAC7C;SACF;QACD,OAAO,EAAE;YACP;gBACE,WAAW,EAAE,OAAO;gBACpB,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,aAAa;aAC3B;YACD,GAAG,sBAAsB;YACzB,iCAAkB;SACnB;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserFields = void 0;
|
|
4
|
+
const Model_1 = require("../Model");
|
|
5
|
+
const CustomFields_1 = require("./CustomFields");
|
|
6
|
+
exports.UserFields = [
|
|
7
|
+
{
|
|
8
|
+
displayName: 'Operation',
|
|
9
|
+
name: 'operation',
|
|
10
|
+
type: 'options',
|
|
11
|
+
noDataExpression: true,
|
|
12
|
+
displayOptions: {
|
|
13
|
+
show: {
|
|
14
|
+
resource: [Model_1.EasyNodeResourceType.users],
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
default: 'get-many',
|
|
18
|
+
options: [
|
|
19
|
+
{
|
|
20
|
+
name: 'Get One',
|
|
21
|
+
description: 'Get a single user',
|
|
22
|
+
value: Model_1.EasyNodeOperationType.getOne,
|
|
23
|
+
action: 'Get one',
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: 'Get Many',
|
|
27
|
+
description: 'Get multiple user',
|
|
28
|
+
value: Model_1.EasyNodeOperationType.getMany,
|
|
29
|
+
action: 'Get many',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: 'Create',
|
|
33
|
+
description: 'Create user',
|
|
34
|
+
value: Model_1.EasyNodeOperationType.create,
|
|
35
|
+
action: 'Create',
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: 'Update',
|
|
39
|
+
description: 'Update user',
|
|
40
|
+
value: Model_1.EasyNodeOperationType.update,
|
|
41
|
+
action: 'Update',
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
displayName: 'User ID',
|
|
47
|
+
name: 'id',
|
|
48
|
+
type: 'number',
|
|
49
|
+
displayOptions: {
|
|
50
|
+
show: {
|
|
51
|
+
operation: [Model_1.EasyNodeOperationType.getOne, Model_1.EasyNodeOperationType.update],
|
|
52
|
+
resource: [Model_1.EasyNodeResourceType.users],
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
default: '',
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
displayName: 'Easy8 User Query Name or ID',
|
|
59
|
+
name: 'userQueryId',
|
|
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.users],
|
|
65
|
+
operation: [Model_1.EasyNodeOperationType.getMany],
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
typeOptions: {
|
|
69
|
+
loadOptionsMethod: 'getEasyUserQueries',
|
|
70
|
+
},
|
|
71
|
+
default: '',
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
displayName: 'Login',
|
|
75
|
+
name: 'login',
|
|
76
|
+
type: 'string',
|
|
77
|
+
displayOptions: {
|
|
78
|
+
show: {
|
|
79
|
+
operation: [Model_1.EasyNodeOperationType.create],
|
|
80
|
+
resource: [Model_1.EasyNodeResourceType.users],
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
default: '',
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
displayName: 'First Name',
|
|
87
|
+
name: 'firstname',
|
|
88
|
+
type: 'string',
|
|
89
|
+
displayOptions: {
|
|
90
|
+
show: {
|
|
91
|
+
operation: [Model_1.EasyNodeOperationType.create],
|
|
92
|
+
resource: [Model_1.EasyNodeResourceType.users],
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
default: '',
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
displayName: 'Last Name',
|
|
99
|
+
name: 'lastname',
|
|
100
|
+
type: 'string',
|
|
101
|
+
displayOptions: {
|
|
102
|
+
show: {
|
|
103
|
+
operation: [Model_1.EasyNodeOperationType.create],
|
|
104
|
+
resource: [Model_1.EasyNodeResourceType.users],
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
default: '',
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
displayName: 'Email',
|
|
111
|
+
name: 'email',
|
|
112
|
+
type: 'string',
|
|
113
|
+
placeholder: 'name@email.com',
|
|
114
|
+
displayOptions: {
|
|
115
|
+
show: {
|
|
116
|
+
operation: [Model_1.EasyNodeOperationType.create],
|
|
117
|
+
resource: [Model_1.EasyNodeResourceType.users],
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
default: '',
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
displayName: 'Create Options',
|
|
124
|
+
name: 'userCreateOptions',
|
|
125
|
+
type: 'collection',
|
|
126
|
+
placeholder: 'Add option',
|
|
127
|
+
default: {},
|
|
128
|
+
displayOptions: {
|
|
129
|
+
show: {
|
|
130
|
+
operation: [Model_1.EasyNodeOperationType.create],
|
|
131
|
+
resource: [Model_1.EasyNodeResourceType.users],
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
options: [
|
|
135
|
+
{
|
|
136
|
+
displayName: 'Phone',
|
|
137
|
+
name: 'phone',
|
|
138
|
+
type: 'string',
|
|
139
|
+
default: '',
|
|
140
|
+
description: 'Phone number',
|
|
141
|
+
},
|
|
142
|
+
CustomFields_1.CustomFieldsOption,
|
|
143
|
+
],
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
displayName: 'Update Fields',
|
|
147
|
+
name: 'userUpdateOptions',
|
|
148
|
+
type: 'collection',
|
|
149
|
+
placeholder: 'Add option',
|
|
150
|
+
default: {},
|
|
151
|
+
displayOptions: {
|
|
152
|
+
show: {
|
|
153
|
+
operation: [Model_1.EasyNodeOperationType.update],
|
|
154
|
+
resource: [Model_1.EasyNodeResourceType.users],
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
options: [
|
|
158
|
+
{
|
|
159
|
+
displayName: 'Email',
|
|
160
|
+
name: 'mail',
|
|
161
|
+
type: 'string',
|
|
162
|
+
default: '',
|
|
163
|
+
description: 'Email address',
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
displayName: 'First Name',
|
|
167
|
+
name: 'firstname',
|
|
168
|
+
type: 'string',
|
|
169
|
+
default: '',
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
displayName: 'Last Name',
|
|
173
|
+
name: 'lastname',
|
|
174
|
+
type: 'string',
|
|
175
|
+
default: '',
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
displayName: 'Login',
|
|
179
|
+
name: 'login',
|
|
180
|
+
type: 'string',
|
|
181
|
+
default: '',
|
|
182
|
+
description: 'User login',
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
displayName: 'Phone',
|
|
186
|
+
name: 'phone',
|
|
187
|
+
type: 'string',
|
|
188
|
+
default: '',
|
|
189
|
+
description: 'Phone number',
|
|
190
|
+
},
|
|
191
|
+
CustomFields_1.CustomFieldsOption,
|
|
192
|
+
],
|
|
193
|
+
},
|
|
194
|
+
];
|
|
195
|
+
//# sourceMappingURL=UserFields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserFields.js","sourceRoot":"","sources":["../../../../nodes/Easy8/fields/UserFields.ts"],"names":[],"mappings":";;;AAAA,oCAAuE;AAEvE,iDAAoD;AAEvC,QAAA,UAAU,GAAsB;IAC3C;QACE,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,4BAAoB,CAAC,KAAK,CAAC;aACvC;SACF;QACD,OAAO,EAAE,UAAU;QACnB,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,mBAAmB;gBAChC,KAAK,EAAE,6BAAqB,CAAC,MAAM;gBACnC,MAAM,EAAE,SAAS;aAClB;YACD;gBACE,IAAI,EAAE,UAAU;gBAChB,WAAW,EAAE,mBAAmB;gBAChC,KAAK,EAAE,6BAAqB,CAAC,OAAO;gBACpC,MAAM,EAAE,UAAU;aACnB;YACD;gBACE,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,aAAa;gBAC1B,KAAK,EAAE,6BAAqB,CAAC,MAAM;gBACnC,MAAM,EAAE,QAAQ;aACjB;YACD;gBACE,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,aAAa;gBAC1B,KAAK,EAAE,6BAAqB,CAAC,MAAM;gBACnC,MAAM,EAAE,QAAQ;aACjB;SACF;KACF;IAED;QACE,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,IAAI;QACV,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,SAAS,EAAE,CAAC,6BAAqB,CAAC,MAAM,EAA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