n8n-nodes-runrunit 0.3.0 → 0.3.2

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.
@@ -8,8 +8,16 @@ class RunrunitApi {
8
8
  this.documentationUrl = 'https://github.com/org/-runrunit?tab=readme-ov-file#credentials';
9
9
  this.properties = [
10
10
  {
11
- displayName: 'API Key',
12
- name: 'apiKey',
11
+ displayName: 'App Key',
12
+ name: 'appKey',
13
+ type: 'string',
14
+ typeOptions: { password: true },
15
+ required: true,
16
+ default: '',
17
+ },
18
+ {
19
+ displayName: 'User Token',
20
+ name: 'userToken',
13
21
  type: 'string',
14
22
  typeOptions: { password: true },
15
23
  required: true,
@@ -20,14 +28,15 @@ class RunrunitApi {
20
28
  type: 'generic',
21
29
  properties: {
22
30
  headers: {
23
- 'x-api-key': '={{$credentials.apiKey}}',
31
+ 'App-Key': '={{$credentials.appKey}}',
32
+ 'User-Token': '={{$credentials.userToken}}',
24
33
  },
25
34
  },
26
35
  };
27
36
  this.test = {
28
37
  request: {
29
- baseURL: 'https://runrun.it/api/v1',
30
- url: '/v1/user',
38
+ baseURL: 'https://runrun.it/api/v1.0',
39
+ url: '/users',
31
40
  },
32
41
  };
33
42
  }
@@ -1 +1 @@
1
- {"version":3,"file":"RunrunitApi.credentials.js","sourceRoot":"","sources":["../../credentials/RunrunitApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,WAAW;IAAxB;QACC,SAAI,GAAG,aAAa,CAAC;QAErB,gBAAW,GAAG,cAAc,CAAC;QAG7B,qBAAgB,GAAG,iEAAiE,CAAC;QAErF,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,EAAE;aACX;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,WAAW,EAAE,0BAA0B;iBACvC;aACD;SACD,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,0BAA0B;gBACnC,GAAG,EAAE,UAAU;aACf;SACD,CAAC;IACH,CAAC;CAAA;AAlCD,kCAkCC"}
1
+ {"version":3,"file":"RunrunitApi.credentials.js","sourceRoot":"","sources":["../../credentials/RunrunitApi.credentials.ts"],"names":[],"mappings":";;;AAOA,MAAa,WAAW;IAAxB;QACC,SAAI,GAAG,aAAa,CAAC;QAErB,gBAAW,GAAG,cAAc,CAAC;QAG7B,qBAAgB,GAAG,iEAAiE,CAAC;QAErF,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,EAAE;aACX;YACD;gBACC,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,EAAE;aACX;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,SAAS,EAAE,0BAA0B;oBACrC,YAAY,EAAE,6BAA6B;iBAC3C;aACD;SACD,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,4BAA4B;gBACrC,GAAG,EAAE,QAAQ;aACb;SACD,CAAC;IACH,CAAC;CAAA;AA3CD,kCA2CC"}
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Runrunit = void 0;
4
4
  const n8n_workflow_1 = require("n8n-workflow");
5
5
  const user_1 = require("./resources/user");
6
- const company_1 = require("./resources/company");
6
+ const task_1 = require("./resources/task");
7
7
  class Runrunit {
8
8
  constructor() {
9
9
  this.description = {
@@ -22,7 +22,7 @@ class Runrunit {
22
22
  outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
23
23
  credentials: [{ name: 'runrunitApi', required: true }],
24
24
  requestDefaults: {
25
- baseURL: 'https://runrun.it/api/v1',
25
+ baseURL: 'https://runrun.it/api/v1.0',
26
26
  headers: {
27
27
  Accept: 'application/json',
28
28
  'Content-Type': 'application/json',
@@ -40,14 +40,14 @@ class Runrunit {
40
40
  value: 'user',
41
41
  },
42
42
  {
43
- name: 'Company',
44
- value: 'company',
43
+ name: 'Task',
44
+ value: 'task',
45
45
  },
46
46
  ],
47
47
  default: 'user',
48
48
  },
49
49
  ...user_1.userDescription,
50
- ...company_1.companyDescription,
50
+ ...task_1.taskDescription,
51
51
  ],
52
52
  };
53
53
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Runrunit.node.js","sourceRoot":"","sources":["../../../nodes/Runrunit/Runrunit.node.ts"],"names":[],"mappings":";;;AAAA,+CAA8F;AAC9F,2CAAmD;AACnD,iDAAyD;AAEzD,MAAa,QAAQ;IAArB;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,UAAU;YACvB,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,EAAE,KAAK,EAAE,mBAAmB,EAAE,IAAI,EAAE,wBAAwB,EAAE;YACpE,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,8DAA8D;YACxE,WAAW,EAAE,gCAAgC;YAC7C,QAAQ,EAAE;gBACT,IAAI,EAAE,UAAU;aAChB;YACD,YAAY,EAAE,IAAI;YAClB,MAAM,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YAClC,OAAO,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YACnC,WAAW,EAAE,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;YACtD,eAAe,EAAE;gBAChB,OAAO,EAAE,0BAA0B;gBACnC,OAAO,EAAE;oBACR,MAAM,EAAE,kBAAkB;oBAC1B,cAAc,EAAE,kBAAkB;iBAClC;aACD;YACD,UAAU,EAAE;gBACX;oBACC,WAAW,EAAE,UAAU;oBACvB,IAAI,EAAE,UAAU;oBAChB,IAAI,EAAE,SAAS;oBACf,gBAAgB,EAAE,IAAI;oBACtB,OAAO,EAAE;wBACR;4BACC,IAAI,EAAE,MAAM;4BACZ,KAAK,EAAE,MAAM;yBACb;wBACD;4BACC,IAAI,EAAE,SAAS;4BACf,KAAK,EAAE,SAAS;yBAChB;qBACD;oBACD,OAAO,EAAE,MAAM;iBACf;gBACD,GAAG,sBAAe;gBAClB,GAAG,4BAAkB;aACrB;SACD,CAAC;IACH,CAAC;CAAA;AA7CD,4BA6CC"}
1
+ {"version":3,"file":"Runrunit.node.js","sourceRoot":"","sources":["../../../nodes/Runrunit/Runrunit.node.ts"],"names":[],"mappings":";;;AAAA,+CAA8F;AAC9F,2CAAmD;AACnD,2CAAmD;AAEnD,MAAa,QAAQ;IAArB;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,UAAU;YACvB,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,EAAE,KAAK,EAAE,mBAAmB,EAAE,IAAI,EAAE,wBAAwB,EAAE;YACpE,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,8DAA8D;YACxE,WAAW,EAAE,gCAAgC;YAC7C,QAAQ,EAAE;gBACT,IAAI,EAAE,UAAU;aAChB;YACD,YAAY,EAAE,IAAI;YAClB,MAAM,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YAClC,OAAO,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YACnC,WAAW,EAAE,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;YACtD,eAAe,EAAE;gBAChB,OAAO,EAAE,4BAA4B;gBACrC,OAAO,EAAE;oBACR,MAAM,EAAE,kBAAkB;oBAC1B,cAAc,EAAE,kBAAkB;iBAClC;aACD;YACD,UAAU,EAAE;gBACX;oBACC,WAAW,EAAE,UAAU;oBACvB,IAAI,EAAE,UAAU;oBAChB,IAAI,EAAE,SAAS;oBACf,gBAAgB,EAAE,IAAI;oBACtB,OAAO,EAAE;wBACR;4BACC,IAAI,EAAE,MAAM;4BACZ,KAAK,EAAE,MAAM;yBACb;wBACD;4BACC,IAAI,EAAE,MAAM;4BACZ,KAAK,EAAE,MAAM;yBACb;qBACD;oBACD,OAAO,EAAE,MAAM;iBACf;gBACD,GAAG,sBAAe;gBAClB,GAAG,sBAAe;aAClB;SACD,CAAC;IACH,CAAC;CAAA;AA7CD,4BA6CC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const taskDescription: INodeProperties[];
@@ -0,0 +1,227 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.taskDescription = void 0;
4
+ const update_1 = require("./update");
5
+ const showOnlyForTasks = {
6
+ resource: ['task'],
7
+ };
8
+ const taskGetManyDescription = [
9
+ {
10
+ displayName: 'Limit',
11
+ name: 'limit',
12
+ type: 'number',
13
+ displayOptions: {
14
+ show: {
15
+ ...showOnlyForTasks,
16
+ returnAll: [false],
17
+ },
18
+ },
19
+ typeOptions: {
20
+ minValue: 1,
21
+ maxValue: 100,
22
+ },
23
+ default: 50,
24
+ routing: {
25
+ send: {
26
+ type: 'query',
27
+ property: 'limit',
28
+ },
29
+ output: {
30
+ maxResults: '={{$value}}',
31
+ },
32
+ },
33
+ description: 'Max number of results to return',
34
+ },
35
+ {
36
+ displayName: 'Return All',
37
+ name: 'returnAll',
38
+ type: 'boolean',
39
+ displayOptions: {
40
+ show: showOnlyForTasks,
41
+ },
42
+ default: false,
43
+ description: 'Whether to return all results or only up to a given limit',
44
+ routing: {
45
+ send: {
46
+ paginate: '={{ $value }}',
47
+ },
48
+ operations: {
49
+ pagination: {
50
+ type: 'offset',
51
+ properties: {
52
+ limitParameter: 'limit',
53
+ offsetParameter: 'offset',
54
+ pageSize: 100,
55
+ type: 'query',
56
+ },
57
+ },
58
+ },
59
+ },
60
+ },
61
+ ];
62
+ const taskGetDescription = [
63
+ {
64
+ displayName: 'Task ID',
65
+ name: 'taskId',
66
+ type: 'string',
67
+ default: '',
68
+ required: true,
69
+ description: 'ID of the task',
70
+ },
71
+ ];
72
+ const taskCreateDescription = [
73
+ {
74
+ displayName: 'Task Object (JSON)',
75
+ name: 'taskObject',
76
+ type: 'json',
77
+ default: '{"title":""}',
78
+ description: 'Task object to create. Will be sent as `task` in the body.',
79
+ routing: {
80
+ send: {
81
+ type: 'body',
82
+ property: 'task',
83
+ },
84
+ },
85
+ },
86
+ ];
87
+ const taskDeleteDescription = [
88
+ {
89
+ displayName: 'Task ID',
90
+ name: 'taskId',
91
+ type: 'string',
92
+ default: '',
93
+ required: true,
94
+ description: 'ID of the task to delete',
95
+ },
96
+ ];
97
+ const taskActionBody = [
98
+ {
99
+ displayName: 'Payload (JSON)',
100
+ name: 'payload',
101
+ type: 'json',
102
+ default: '{}',
103
+ description: 'Optional payload to send with the action',
104
+ routing: {
105
+ send: {
106
+ type: 'body',
107
+ property: 'data',
108
+ },
109
+ },
110
+ },
111
+ {
112
+ displayName: 'Comment ID',
113
+ name: 'commentId',
114
+ type: 'string',
115
+ displayOptions: {
116
+ show: {
117
+ operation: ['update_comment'],
118
+ resource: ['task'],
119
+ },
120
+ },
121
+ default: '',
122
+ description: 'ID of the comment to update (for Update Comment operation)',
123
+ },
124
+ ];
125
+ exports.taskDescription = [
126
+ {
127
+ displayName: 'Operation',
128
+ name: 'operation',
129
+ type: 'options',
130
+ noDataExpression: true,
131
+ displayOptions: { show: showOnlyForTasks },
132
+ options: [
133
+ {
134
+ name: 'Get Many',
135
+ value: 'getAll',
136
+ action: 'Get many tasks',
137
+ description: 'Get many tasks',
138
+ routing: { request: { method: 'GET', url: '/tasks' } },
139
+ },
140
+ {
141
+ name: 'Get',
142
+ value: 'get',
143
+ action: 'Get a task',
144
+ description: 'Get a single task',
145
+ routing: { request: { method: 'GET', url: '=/tasks/{{$parameter.taskId}}' } },
146
+ },
147
+ {
148
+ name: 'Create',
149
+ value: 'create',
150
+ action: 'Create a task',
151
+ description: 'Create a new task',
152
+ routing: { request: { method: 'POST', url: '/tasks' } },
153
+ },
154
+ {
155
+ name: 'Update',
156
+ value: 'update',
157
+ action: 'Update a task',
158
+ description: 'Update task fields',
159
+ routing: { request: { method: 'PUT', url: '=/tasks/{{$parameter.taskId}}' } },
160
+ },
161
+ {
162
+ name: 'Delete',
163
+ value: 'delete',
164
+ action: 'Delete a task',
165
+ description: 'Delete a task',
166
+ routing: { request: { method: 'DELETE', url: '=/tasks/{{$parameter.taskId}}' } },
167
+ },
168
+ {
169
+ name: 'Deliver',
170
+ value: 'deliver',
171
+ action: 'Deliver a task',
172
+ description: 'Move task to delivered/closed state',
173
+ routing: { request: { method: 'POST', url: '=/tasks/{{$parameter.taskId}}/deliver' } },
174
+ },
175
+ {
176
+ name: 'Reopen',
177
+ value: 'reopen',
178
+ action: 'Reopen a task',
179
+ description: 'Reopen a closed task',
180
+ routing: { request: { method: 'POST', url: '=/tasks/{{$parameter.taskId}}/reopen' } },
181
+ },
182
+ {
183
+ name: 'Move',
184
+ value: 'move',
185
+ action: 'Move a task between stages',
186
+ description: 'Move task between stages',
187
+ routing: { request: { method: 'POST', url: '=/tasks/{{$parameter.taskId}}/move' } },
188
+ },
189
+ {
190
+ name: 'Add Manual Work Period',
191
+ value: 'add_manual_work_period',
192
+ action: 'Add manual work period to task',
193
+ description: 'Add manual work period',
194
+ routing: { request: { method: 'POST', url: '=/tasks/{{$parameter.taskId}}/add_manual_work_period' } },
195
+ },
196
+ {
197
+ name: 'Change Time Worked',
198
+ value: 'change_time_worked',
199
+ action: 'Change total time worked on task',
200
+ description: 'Change time worked',
201
+ routing: { request: { method: 'POST', url: '=/tasks/{{$parameter.taskId}}/change_time_worked' } },
202
+ },
203
+ {
204
+ name: 'Add Comment',
205
+ value: 'add_comment',
206
+ action: 'Add a comment to a task',
207
+ description: 'Create a comment on a task',
208
+ routing: { request: { method: 'POST', url: '=/tasks/{{$parameter.taskId}}/comments' } },
209
+ },
210
+ {
211
+ name: 'Update Comment',
212
+ value: 'update_comment',
213
+ action: 'Update a comment on a task',
214
+ description: 'Update a task comment',
215
+ routing: { request: { method: 'PUT', url: '=/tasks/{{$parameter.taskId}}/comments/{{$parameter.commentId}}' } },
216
+ },
217
+ ],
218
+ default: 'getAll',
219
+ },
220
+ ...taskGetManyDescription,
221
+ ...taskGetDescription,
222
+ ...taskCreateDescription,
223
+ ...update_1.taskUpdateDescription,
224
+ ...taskDeleteDescription,
225
+ ...taskActionBody,
226
+ ];
227
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Runrunit/resources/task/index.ts"],"names":[],"mappings":";;;AACA,qCAAiD;AAEjD,MAAM,gBAAgB,GAAG;IACxB,QAAQ,EAAE,CAAC,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,sBAAsB,GAAsB;IACjD;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,GAAG,gBAAgB;gBACnB,SAAS,EAAE,CAAC,KAAK,CAAC;aAClB;SACD;QACD,WAAW,EAAE;YACZ,QAAQ,EAAE,CAAC;YACX,QAAQ,EAAE,GAAG;SACb;QACD,OAAO,EAAE,EAAE;QACX,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,OAAO;gBACb,QAAQ,EAAE,OAAO;a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/B,MAAM,EAAE,gCAAgC;gBACxC,WAAW,EAAE,wBAAwB;gBACrC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,sDAAsD,EAAE,EAAE;aACrG;YACD;gBACC,IAAI,EAAE,oBAAoB;gBAC1B,KAAK,EAAE,oBAAoB;gBAC3B,MAAM,EAAE,kCAAkC;gBAC1C,WAAW,EAAE,oBAAoB;gBACjC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,kDAAkD,EAAE,EAAE;aACjG;YACD;gBACC,IAAI,EAAE,aAAa;gBACnB,KAAK,EAAE,aAAa;gBACpB,MAAM,EAAE,yBAAyB;gBACjC,WAAW,EAAE,4BAA4B;gBACzC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,wCAAwC,EAAE,EAAE;aACvF;YACD;gBACC,IAAI,EAAE,gBAAgB;gBACtB,KAAK,EAAE,gBAAgB;gBACvB,MAAM,EAAE,4BAA4B;gBACpC,WAAW,EAAE,uBAAuB;gBACpC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,iEAAiE,EAAE,EAAE;aAC/G;SACD;QACD,OAAO,EAAE,QAAQ;KACjB;IACD,GAAG,sBAAsB;IACzB,GAAG,kBAAkB;IACrB,GAAG,qBAAqB;IACxB,GAAG,8BAAqB;IACxB,GAAG,qBAAqB;IACxB,GAAG,cAAc;CACjB,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const taskUpdateDescription: INodeProperties[];
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.taskUpdateDescription = void 0;
4
+ const showOnlyForTaskUpdate = {
5
+ operation: ['update'],
6
+ resource: ['task'],
7
+ };
8
+ exports.taskUpdateDescription = [
9
+ {
10
+ displayName: 'Task ID',
11
+ name: 'taskId',
12
+ type: 'string',
13
+ displayOptions: { show: showOnlyForTaskUpdate },
14
+ default: '',
15
+ required: true,
16
+ description: 'ID of the task to update',
17
+ },
18
+ {
19
+ displayName: 'Task Object (JSON)',
20
+ name: 'taskObject',
21
+ type: 'json',
22
+ displayOptions: { show: showOnlyForTaskUpdate },
23
+ default: '{"custom_fields": {}}',
24
+ description: 'Full task object or partial object that will be sent as the `task` payload (e.g. {"custom_fields": {"custom_20":"Sim"}}).',
25
+ routing: {
26
+ send: {
27
+ type: 'body',
28
+ property: 'task',
29
+ },
30
+ },
31
+ },
32
+ ];
33
+ //# sourceMappingURL=update.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update.js","sourceRoot":"","sources":["../../../../../nodes/Runrunit/resources/task/update.ts"],"names":[],"mappings":";;;AAEA,MAAM,qBAAqB,GAAG;IAC7B,SAAS,EAAE,CAAC,QAAQ,CAAC;IACrB,QAAQ,EAAE,CAAC,MAAM,CAAC;CAClB,CAAC;AAEW,QAAA,qBAAqB,GAAsB;IACvD;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE,EAAE,IAAI,EAAE,qBAAqB,EAAE;QAC/C,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,0BAA0B;KACvC;IACD;QACC,WAAW,EAAE,oBAAoB;QACjC,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,MAAM;QACZ,cAAc,EAAE,EAAE,IAAI,EAAE,qBAAqB,EAAE;QAC/C,OAAO,EAAE,uBAAuB;QAChC,WAAW,EAAE,2HAA2H;QACxI,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,MAAM;gBACZ,QAAQ,EAAE,MAAM;aAChB;SACD;KACD;CACD,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { INodeProperties } from 'n8n-workflow';
2
+ export declare const userGetManyDescription: INodeProperties[];
@@ -1,18 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.companyGetManyDescription = void 0;
4
- const showOnlyForCompanyGetMany = {
3
+ exports.userGetManyDescription = void 0;
4
+ const showOnlyForUserGetMany = {
5
5
  operation: ['getAll'],
6
- resource: ['company'],
6
+ resource: ['user'],
7
7
  };
8
- exports.companyGetManyDescription = [
8
+ exports.userGetManyDescription = [
9
9
  {
10
10
  displayName: 'Limit',
11
11
  name: 'limit',
12
12
  type: 'number',
13
13
  displayOptions: {
14
14
  show: {
15
- ...showOnlyForCompanyGetMany,
15
+ ...showOnlyForUserGetMany,
16
16
  returnAll: [false],
17
17
  },
18
18
  },
@@ -37,7 +37,7 @@ exports.companyGetManyDescription = [
37
37
  name: 'returnAll',
38
38
  type: 'boolean',
39
39
  displayOptions: {
40
- show: showOnlyForCompanyGetMany,
40
+ show: showOnlyForUserGetMany,
41
41
  },
42
42
  default: false,
43
43
  description: 'Whether to return all results or only up to a given limit',
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAll.js","sourceRoot":"","sources":["../../../../../nodes/Runrunit/resources/user/getAll.ts"],"names":[],"mappings":";;;AAEA,MAAM,sBAAsB,GAAG;IAC9B,SAAS,EAAE,CAAC,QAAQ,CAAC;IACrB,QAAQ,EAAE,CAAC,MAAM,CAAC;CAClB,CAAC;AAEW,QAAA,sBAAsB,GAAsB;IACxD;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,GAAG,sBAAsB;gBACzB,SAAS,EAAE,CAAC,KAAK,CAAC;aAClB;SACD;QACD,WAAW,EAAE;YACZ,QAAQ,EAAE,CAAC;YACX,QAAQ,EAAE,GAAG;SACb;QACD,OAAO,EAAE,EAAE;QACX,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,IAAI,EAAE,OAAO;gBACb,QAAQ,EAAE,OAAO;aACjB;YACD,MAAM,EAAE;gBACP,UAAU,EAAE,aAAa;aACzB;SACD;QACD,WAAW,EAAE,iCAAiC;KAC9C;IACD;QACC,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,cAAc,EAAE;YACf,IAAI,EAAE,sBAAsB;SAC5B;QACD,OAAO,EAAE,KAAK;QACd,WAAW,EAAE,2DAA2D;QACxE,OAAO,EAAE;YACR,IAAI,EAAE;gBACL,QAAQ,EAAE,eAAe;aACzB;YACD,UAAU,EAAE;gBACX,UAAU,EAAE;oBACX,IAAI,EAAE,QAAQ;oBACd,UAAU,EAAE;wBACX,cAAc,EAAE,OAAO;wBACvB,eAAe,EAAE,QAAQ;wBACzB,QAAQ,EAAE,GAAG;wBACb,IAAI,EAAE,OAAO;qBACb;iBACD;aACD;SACD;KACD;CACD,CAAC"}
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.userDescription = void 0;
4
4
  const create_1 = require("./create");
5
5
  const get_1 = require("./get");
6
+ const getAll_1 = require("./getAll");
6
7
  const showOnlyForUsers = {
7
8
  resource: ['user'],
8
9
  };
@@ -55,6 +56,7 @@ exports.userDescription = [
55
56
  ],
56
57
  default: 'getAll',
57
58
  },
59
+ ...getAll_1.userGetManyDescription,
58
60
  ...get_1.userGetDescription,
59
61
  ...create_1.userCreateDescription,
60
62
  ];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Runrunit/resources/user/index.ts"],"names":[],"mappings":";;;AACA,qCAAiD;AACjD,+BAA2C;AAE3C,MAAM,gBAAgB,GAAG;IACxB,QAAQ,EAAE,CAAC,MAAM,CAAC;CAClB,CAAC;AAEW,QAAA,eAAe,GAAsB;IACjD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE,gBAAgB;SACtB;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,WAAW;gBACnB,WAAW,EAAE,gBAAgB;gBAC7B,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,KAAK;wBACb,GAAG,EAAE,QAAQ;qBACb;iBACD;aACD;YACD;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,YAAY;gBACpB,WAAW,EAAE,+BAA+B;gBAC5C,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,KAAK;wBACb,GAAG,EAAE,+BAA+B;qBACpC;iBACD;aACD;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,mBAAmB;gBAC3B,WAAW,EAAE,mBAAmB;gBAChC,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,MAAM;wBACd,GAAG,EAAE,QAAQ;qBACb;iBACD;aACD;SACD;QACD,OAAO,EAAE,QAAQ;KACjB;IACD,GAAG,wBAAkB;IACrB,GAAG,8BAAqB;CACxB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Runrunit/resources/user/index.ts"],"names":[],"mappings":";;;AACA,qCAAiD;AACjD,+BAA2C;AAC3C,qCAAkD;AAElD,MAAM,gBAAgB,GAAG;IACxB,QAAQ,EAAE,CAAC,MAAM,CAAC;CAClB,CAAC;AAEW,QAAA,eAAe,GAAsB;IACjD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE,gBAAgB;SACtB;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,WAAW;gBACnB,WAAW,EAAE,gBAAgB;gBAC7B,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,KAAK;wBACb,GAAG,EAAE,QAAQ;qBACb;iBACD;aACD;YACD;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,YAAY;gBACpB,WAAW,EAAE,+BAA+B;gBAC5C,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,KAAK;wBACb,GAAG,EAAE,+BAA+B;qBACpC;iBACD;aACD;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,mBAAmB;gBAC3B,WAAW,EAAE,mBAAmB;gBAChC,OAAO,EAAE;oBACR,OAAO,EAAE;wBACR,MAAM,EAAE,MAAM;wBACd,GAAG,EAAE,QAAQ;qBACb;iBACD;aACD;SACD;QACD,OAAO,EAAE,QAAQ;KACjB;IACD,GAAG,+BAAsB;IACzB,GAAG,wBAAkB;IACrB,GAAG,8BAAqB;CACxB,CAAC"}
@@ -1,13 +1,25 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="aquamarine"
2
- stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-cpu">
3
- <rect x="4" y="4" width="16" height="16" rx="2" ry="2"></rect>
4
- <rect x="9" y="9" width="6" height="6"></rect>
5
- <line x1="9" y1="1" x2="9" y2="4"></line>
6
- <line x1="15" y1="1" x2="15" y2="4"></line>
7
- <line x1="9" y1="20" x2="9" y2="23"></line>
8
- <line x1="15" y1="20" x2="15" y2="23"></line>
9
- <line x1="20" y1="9" x2="23" y2="9"></line>
10
- <line x1="20" y1="14" x2="23" y2="14"></line>
11
- <line x1="1" y1="9" x2="4" y2="9"></line>
12
- <line x1="1" y1="14" x2="4" y2="14"></line>
1
+ <?xml version="1.0" standalone="no"?>
2
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
3
+ "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
4
+ <svg version="1.0" xmlns="http://www.w3.org/2000/svg"
5
+ width="255.000000pt" height="255.000000pt" viewBox="0 0 255.000000 255.000000"
6
+ preserveAspectRatio="xMidYMid meet">
7
+
8
+ <g transform="translate(0.000000,255.000000) scale(0.100000,-0.100000)"
9
+ fill="#000000" stroke="none">
10
+ <path d="M0 1275 l0 -1275 1275 0 1275 0 0 1275 0 1275 -1275 0 -1275 0 0
11
+ -1275z m1595 870 c177 -52 297 -139 366 -267 33 -61 34 -67 34 -174 0 -107 -1
12
+ -112 -38 -187 -72 -145 -212 -251 -396 -297 l-44 -11 7 -63 c8 -81 40 -195 73
13
+ -259 89 -178 207 -214 331 -103 49 45 81 47 116 6 71 -86 28 -227 -95 -309
14
+ -79 -53 -165 -75 -271 -69 -97 5 -146 26 -219 95 -121 113 -210 322 -254 598
15
+ -9 55 -17 101 -19 102 -6 6 -48 -230 -62 -351 -11 -86 -14 -166 -10 -232 l6
16
+ -101 -41 -38 c-58 -52 -122 -79 -191 -79 -47 -1 -61 3 -83 24 -76 70 -74 200
17
+ 10 555 99 419 131 590 142 769 6 101 5 109 -11 103 -41 -16 -129 -83 -174
18
+ -132 -90 -98 -109 -175 -72 -284 20 -59 20 -64 4 -82 -47 -52 -163 -75 -224
19
+ -44 -114 59 -140 254 -57 425 43 88 166 212 272 274 198 115 419 168 675 161
20
+ 109 -3 152 -9 225 -30z"/>
21
+ <path d="M1297 1818 c-7 -108 -31 -265 -61 -390 l-13 -58 46 0 c90 0 220 47
22
+ 288 104 16 13 42 48 58 78 24 44 29 65 30 123 0 147 -90 225 -291 250 l-51 6
23
+ -6 -113z"/>
24
+ </g>
13
25
  </svg>
@@ -1,13 +1,25 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="darkblue"
2
- stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-cpu">
3
- <rect x="4" y="4" width="16" height="16" rx="2" ry="2"></rect>
4
- <rect x="9" y="9" width="6" height="6"></rect>
5
- <line x1="9" y1="1" x2="9" y2="4"></line>
6
- <line x1="15" y1="1" x2="15" y2="4"></line>
7
- <line x1="9" y1="20" x2="9" y2="23"></line>
8
- <line x1="15" y1="20" x2="15" y2="23"></line>
9
- <line x1="20" y1="9" x2="23" y2="9"></line>
10
- <line x1="20" y1="14" x2="23" y2="14"></line>
11
- <line x1="1" y1="9" x2="4" y2="9"></line>
12
- <line x1="1" y1="14" x2="4" y2="14"></line>
1
+ <?xml version="1.0" standalone="no"?>
2
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
3
+ "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
4
+ <svg version="1.0" xmlns="http://www.w3.org/2000/svg"
5
+ width="255.000000pt" height="255.000000pt" viewBox="0 0 255.000000 255.000000"
6
+ preserveAspectRatio="xMidYMid meet">
7
+
8
+ <g transform="translate(0.000000,255.000000) scale(0.100000,-0.100000)"
9
+ fill="#E84A43" stroke="none">
10
+ <path d="M0 1275 l0 -1275 1275 0 1275 0 0 1275 0 1275 -1275 0 -1275 0 0
11
+ -1275z m1595 870 c177 -52 297 -139 366 -267 33 -61 34 -67 34 -174 0 -107 -1
12
+ -112 -38 -187 -72 -145 -212 -251 -396 -297 l-44 -11 7 -63 c8 -81 40 -195 73
13
+ -259 89 -178 207 -214 331 -103 49 45 81 47 116 6 71 -86 28 -227 -95 -309
14
+ -79 -53 -165 -75 -271 -69 -97 5 -146 26 -219 95 -121 113 -210 322 -254 598
15
+ -9 55 -17 101 -19 102 -6 6 -48 -230 -62 -351 -11 -86 -14 -166 -10 -232 l6
16
+ -101 -41 -38 c-58 -52 -122 -79 -191 -79 -47 -1 -61 3 -83 24 -76 70 -74 200
17
+ 10 555 99 419 131 590 142 769 6 101 5 109 -11 103 -41 -16 -129 -83 -174
18
+ -132 -90 -98 -109 -175 -72 -284 20 -59 20 -64 4 -82 -47 -52 -163 -75 -224
19
+ -44 -114 59 -140 254 -57 425 43 88 166 212 272 274 198 115 419 168 675 161
20
+ 109 -3 152 -9 225 -30z"/>
21
+ <path d="M1297 1818 c-7 -108 -31 -265 -61 -390 l-13 -58 46 0 c90 0 220 47
22
+ 288 104 16 13 42 48 58 78 24 44 29 65 30 123 0 147 -90 225 -291 250 l-51 6
23
+ -6 -113z"/>
24
+ </g>
13
25
  </svg>
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-runrunit",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "homepage": "",