n8n-nodes-propstack 0.2.1 → 0.2.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.
- package/README.md +5 -4
- package/dist/nodes/Propstack/Propstack.node.js +0 -2
- package/dist/nodes/Propstack/Propstack.node.js.map +1 -1
- package/dist/nodes/Propstack/v1/PropstackV1.d.ts +3 -2
- package/dist/nodes/Propstack/v1/PropstackV1.js +12 -7
- package/dist/nodes/Propstack/v1/PropstackV1.js.map +1 -1
- package/dist/nodes/Propstack/v1/constants.d.ts +1 -6
- package/dist/nodes/Propstack/v1/constants.js +1 -6
- package/dist/nodes/Propstack/v1/constants.js.map +1 -1
- package/dist/nodes/Propstack/v1/helpers.d.ts +4 -0
- package/dist/nodes/Propstack/v1/helpers.js +16 -0
- package/dist/nodes/Propstack/v1/helpers.js.map +1 -1
- package/dist/nodes/Propstack/v1/listSearch.d.ts +2 -1
- package/dist/nodes/Propstack/v1/listSearch.js +58 -40
- package/dist/nodes/Propstack/v1/listSearch.js.map +1 -1
- package/dist/nodes/Propstack/v1/resources/activities/activityTypesGetAll.js +3 -1
- package/dist/nodes/Propstack/v1/resources/activities/activityTypesGetAll.js.map +1 -1
- package/dist/nodes/Propstack/v1/resources/activities/getAll.d.ts +1 -3
- package/dist/nodes/Propstack/v1/resources/activities/getAll.js +21 -244
- package/dist/nodes/Propstack/v1/resources/activities/getAll.js.map +1 -1
- package/dist/nodes/Propstack/v1/resources/contacts/create.js +26 -46
- package/dist/nodes/Propstack/v1/resources/contacts/create.js.map +1 -1
- package/dist/nodes/Propstack/v1/resources/contacts/get.js +7 -17
- package/dist/nodes/Propstack/v1/resources/contacts/get.js.map +1 -1
- package/dist/nodes/Propstack/v1/resources/contacts/getAll.js +16 -87
- package/dist/nodes/Propstack/v1/resources/contacts/getAll.js.map +1 -1
- package/dist/nodes/Propstack/v1/resources/contacts/update.js +28 -56
- package/dist/nodes/Propstack/v1/resources/contacts/update.js.map +1 -1
- package/dist/nodes/Propstack/v1/resources/deals/create.js +17 -26
- package/dist/nodes/Propstack/v1/resources/deals/create.js.map +1 -1
- package/dist/nodes/Propstack/v1/resources/deals/get.js +3 -6
- package/dist/nodes/Propstack/v1/resources/deals/get.js.map +1 -1
- package/dist/nodes/Propstack/v1/resources/deals/getAll.js +28 -128
- package/dist/nodes/Propstack/v1/resources/deals/getAll.js.map +1 -1
- package/dist/nodes/Propstack/v1/resources/deals/update.js +15 -26
- package/dist/nodes/Propstack/v1/resources/deals/update.js.map +1 -1
- package/dist/nodes/Propstack/v1/resources/documents/create.js +18 -29
- package/dist/nodes/Propstack/v1/resources/documents/create.js.map +1 -1
- package/dist/nodes/Propstack/v1/resources/documents/getAll.js +17 -51
- package/dist/nodes/Propstack/v1/resources/documents/getAll.js.map +1 -1
- package/dist/nodes/Propstack/v1/resources/documents/update.js +16 -29
- package/dist/nodes/Propstack/v1/resources/documents/update.js.map +1 -1
- package/dist/nodes/Propstack/v1/resources/emails/get.d.ts +1 -3
- package/dist/nodes/Propstack/v1/resources/emails/get.js +0 -3
- package/dist/nodes/Propstack/v1/resources/emails/get.js.map +1 -1
- package/dist/nodes/Propstack/v1/resources/emails/index.d.ts +1 -2
- package/dist/nodes/Propstack/v1/resources/emails/index.js +2 -22
- package/dist/nodes/Propstack/v1/resources/emails/index.js.map +1 -1
- package/dist/nodes/Propstack/v1/resources/emails/send.d.ts +0 -1
- package/dist/nodes/Propstack/v1/resources/emails/send.js +61 -51
- package/dist/nodes/Propstack/v1/resources/emails/send.js.map +1 -1
- package/dist/nodes/Propstack/v1/resources/emails/update.js +9 -33
- package/dist/nodes/Propstack/v1/resources/emails/update.js.map +1 -1
- package/dist/nodes/Propstack/v1/resources/events/getAll.js +17 -39
- package/dist/nodes/Propstack/v1/resources/events/getAll.js.map +1 -1
- package/dist/nodes/Propstack/v1/resources/features/create.d.ts +1 -3
- package/dist/nodes/Propstack/v1/resources/features/create.js +1 -50
- package/dist/nodes/Propstack/v1/resources/features/create.js.map +1 -1
- package/dist/nodes/Propstack/v1/resources/features/getAll.d.ts +1 -3
- package/dist/nodes/Propstack/v1/resources/features/getAll.js +0 -43
- package/dist/nodes/Propstack/v1/resources/features/getAll.js.map +1 -1
- package/dist/nodes/Propstack/v1/resources/features/index.js +22 -0
- package/dist/nodes/Propstack/v1/resources/features/index.js.map +1 -1
- package/dist/nodes/Propstack/v1/resources/features/parentGetAll.d.ts +1 -3
- package/dist/nodes/Propstack/v1/resources/features/parentGetAll.js +3 -35
- package/dist/nodes/Propstack/v1/resources/features/parentGetAll.js.map +1 -1
- package/dist/nodes/Propstack/v1/resources/notes/getAll.d.ts +1 -3
- package/dist/nodes/Propstack/v1/resources/notes/getAll.js +8 -83
- package/dist/nodes/Propstack/v1/resources/notes/getAll.js.map +1 -1
- package/dist/nodes/Propstack/v1/resources/projects/create.d.ts +0 -1
- package/dist/nodes/Propstack/v1/resources/projects/create.js +37 -38
- package/dist/nodes/Propstack/v1/resources/projects/create.js.map +1 -1
- package/dist/nodes/Propstack/v1/resources/projects/get.d.ts +0 -1
- package/dist/nodes/Propstack/v1/resources/projects/get.js +0 -1
- package/dist/nodes/Propstack/v1/resources/projects/get.js.map +1 -1
- package/dist/nodes/Propstack/v1/resources/projects/getAll.d.ts +0 -1
- package/dist/nodes/Propstack/v1/resources/projects/getAll.js +15 -27
- package/dist/nodes/Propstack/v1/resources/projects/getAll.js.map +1 -1
- package/dist/nodes/Propstack/v1/resources/projects/index.d.ts +1 -2
- package/dist/nodes/Propstack/v1/resources/projects/index.js +2 -11
- package/dist/nodes/Propstack/v1/resources/projects/index.js.map +1 -1
- package/dist/nodes/Propstack/v1/resources/projects/update.d.ts +0 -1
- package/dist/nodes/Propstack/v1/resources/projects/update.js +37 -38
- package/dist/nodes/Propstack/v1/resources/projects/update.js.map +1 -1
- package/dist/nodes/Propstack/v1/resources/properties/create.d.ts +0 -1
- package/dist/nodes/Propstack/v1/resources/properties/create.js +98 -113
- package/dist/nodes/Propstack/v1/resources/properties/create.js.map +1 -1
- package/dist/nodes/Propstack/v1/resources/properties/get.d.ts +0 -1
- package/dist/nodes/Propstack/v1/resources/properties/get.js +5 -9
- package/dist/nodes/Propstack/v1/resources/properties/get.js.map +1 -1
- package/dist/nodes/Propstack/v1/resources/properties/getAll.d.ts +0 -1
- package/dist/nodes/Propstack/v1/resources/properties/getAll.js +60 -163
- package/dist/nodes/Propstack/v1/resources/properties/getAll.js.map +1 -1
- package/dist/nodes/Propstack/v1/resources/properties/update.d.ts +0 -1
- package/dist/nodes/Propstack/v1/resources/properties/update.js +40 -67
- package/dist/nodes/Propstack/v1/resources/properties/update.js.map +1 -1
- package/dist/nodes/Propstack/v1/resources/searchProfiles/create.d.ts +3 -3
- package/dist/nodes/Propstack/v1/resources/searchProfiles/create.js +40 -278
- package/dist/nodes/Propstack/v1/resources/searchProfiles/create.js.map +1 -1
- package/dist/nodes/Propstack/v1/resources/searchProfiles/delete.d.ts +1 -3
- package/dist/nodes/Propstack/v1/resources/searchProfiles/delete.js +0 -19
- package/dist/nodes/Propstack/v1/resources/searchProfiles/delete.js.map +1 -1
- package/dist/nodes/Propstack/v1/resources/searchProfiles/getAll.d.ts +1 -3
- package/dist/nodes/Propstack/v1/resources/searchProfiles/getAll.js +15 -62
- package/dist/nodes/Propstack/v1/resources/searchProfiles/getAll.js.map +1 -1
- package/dist/nodes/Propstack/v1/resources/searchProfiles/index.js +180 -252
- package/dist/nodes/Propstack/v1/resources/searchProfiles/index.js.map +1 -1
- package/dist/nodes/Propstack/v1/resources/searchProfiles/update.d.ts +1 -3
- package/dist/nodes/Propstack/v1/resources/searchProfiles/update.js +4 -273
- package/dist/nodes/Propstack/v1/resources/searchProfiles/update.js.map +1 -1
- package/dist/nodes/Propstack/v1/resources/snippets/getAll.d.ts +2 -0
- package/dist/nodes/Propstack/v1/resources/snippets/getAll.js +24 -0
- package/dist/nodes/Propstack/v1/resources/snippets/getAll.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/snippets/index.d.ts +4 -0
- package/dist/nodes/Propstack/v1/resources/snippets/index.js +73 -0
- package/dist/nodes/Propstack/v1/resources/snippets/index.js.map +1 -0
- package/dist/nodes/Propstack/v1/resources/tasks/create.d.ts +1 -3
- package/dist/nodes/Propstack/v1/resources/tasks/create.js +25 -221
- package/dist/nodes/Propstack/v1/resources/tasks/create.js.map +1 -1
- package/dist/nodes/Propstack/v1/resources/tasks/getAll.d.ts +1 -1
- package/dist/nodes/Propstack/v1/resources/tasks/getAll.js +28 -38
- package/dist/nodes/Propstack/v1/resources/tasks/getAll.js.map +1 -1
- package/dist/nodes/Propstack/v1/resources/tasks/update.d.ts +1 -1
- package/dist/nodes/Propstack/v1/resources/tasks/update.js +26 -73
- package/dist/nodes/Propstack/v1/resources/tasks/update.js.map +1 -1
- package/dist/nodes/Propstack/v1/resources/teams/getAll.d.ts +1 -3
- package/dist/nodes/Propstack/v1/resources/teams/getAll.js +4 -51
- package/dist/nodes/Propstack/v1/resources/teams/getAll.js.map +1 -1
- package/dist/nodes/Propstack/v1/resources/teams/index.d.ts +0 -4
- package/dist/nodes/Propstack/v1/resources/teams/index.js +1 -214
- package/dist/nodes/Propstack/v1/resources/teams/index.js.map +1 -1
- package/dist/nodes/Propstack/v1/resources/webhooks/create.d.ts +1 -1
- package/dist/nodes/Propstack/v1/resources/webhooks/create.js +5 -11
- package/dist/nodes/Propstack/v1/resources/webhooks/create.js.map +1 -1
- package/dist/nodes/Propstack/v1/resources/webhooks/getAll.d.ts +1 -1
- package/dist/nodes/Propstack/v1/resources/webhooks/getAll.js +7 -6
- package/dist/nodes/Propstack/v1/resources/webhooks/getAll.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/dist/nodes/Propstack/v1/resources/emails/getAll.d.ts +0 -4
- package/dist/nodes/Propstack/v1/resources/emails/getAll.js +0 -104
- package/dist/nodes/Propstack/v1/resources/emails/getAll.js.map +0 -1
- package/dist/nodes/Propstack/v1/resources/projects/delete.d.ts +0 -4
- package/dist/nodes/Propstack/v1/resources/projects/delete.js +0 -17
- package/dist/nodes/Propstack/v1/resources/projects/delete.js.map +0 -1
- package/dist/nodes/Propstack/v1/resources/teams/create.d.ts +0 -4
- package/dist/nodes/Propstack/v1/resources/teams/create.js +0 -133
- package/dist/nodes/Propstack/v1/resources/teams/create.js.map +0 -1
- package/dist/nodes/Propstack/v1/resources/teams/delete.d.ts +0 -4
- package/dist/nodes/Propstack/v1/resources/teams/delete.js +0 -17
- package/dist/nodes/Propstack/v1/resources/teams/delete.js.map +0 -1
- package/dist/nodes/Propstack/v1/resources/teams/get.d.ts +0 -4
- package/dist/nodes/Propstack/v1/resources/teams/get.js +0 -17
- package/dist/nodes/Propstack/v1/resources/teams/get.js.map +0 -1
- package/dist/nodes/Propstack/v1/resources/teams/update.d.ts +0 -4
- package/dist/nodes/Propstack/v1/resources/teams/update.js +0 -45
- package/dist/nodes/Propstack/v1/resources/teams/update.js.map +0 -1
|
@@ -1,230 +1,35 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.tasksCreateDescription = void 0;
|
|
4
3
|
exports.tasksCreate = tasksCreate;
|
|
5
4
|
const constants_1 = require("../../constants");
|
|
6
5
|
const helpers_1 = require("../../helpers");
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
const TASK_BODY_MAPPING = {
|
|
7
|
+
note_type_id: (0, helpers_1.toInt)("note_type_id"),
|
|
8
|
+
body: "body",
|
|
9
|
+
broker_id: (0, helpers_1.toInt)("broker_id"),
|
|
10
|
+
task_creator_id: (0, helpers_1.toInt)("task_creator_id"),
|
|
11
|
+
task_updater_id: (0, helpers_1.toInt)("task_updater_id"),
|
|
12
|
+
is_reminder: "is_reminder",
|
|
13
|
+
due_date: "due_date",
|
|
14
|
+
remind_at: "remind_at",
|
|
15
|
+
done: "done",
|
|
16
|
+
is_event: "is_event",
|
|
17
|
+
starts_at: "starts_at",
|
|
18
|
+
ends_at: "ends_at",
|
|
19
|
+
location: "location",
|
|
20
|
+
all_day: "all_day",
|
|
21
|
+
private: "private",
|
|
22
|
+
recurring: "recurring",
|
|
23
|
+
rrule: "rrule",
|
|
24
|
+
client_ids: (0, helpers_1.splitCsvInt)("client_ids"),
|
|
25
|
+
property_ids: (0, helpers_1.splitCsvInt)("property_ids"),
|
|
26
|
+
project_ids: (0, helpers_1.splitCsvInt)("project_ids"),
|
|
10
27
|
};
|
|
11
|
-
exports.tasksCreateDescription = [
|
|
12
|
-
{
|
|
13
|
-
displayName: "Title",
|
|
14
|
-
name: "title",
|
|
15
|
-
type: "string",
|
|
16
|
-
required: true,
|
|
17
|
-
default: "",
|
|
18
|
-
displayOptions: {
|
|
19
|
-
show: showForTasksCreate,
|
|
20
|
-
},
|
|
21
|
-
description: "Activity heading",
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
displayName: "Additional Fields",
|
|
25
|
-
name: "additionalFields",
|
|
26
|
-
type: "collection",
|
|
27
|
-
placeholder: "Add Field",
|
|
28
|
-
default: {},
|
|
29
|
-
displayOptions: {
|
|
30
|
-
show: showForTasksCreate,
|
|
31
|
-
},
|
|
32
|
-
options: [
|
|
33
|
-
{
|
|
34
|
-
displayName: "All Day",
|
|
35
|
-
name: "all_day",
|
|
36
|
-
type: "boolean",
|
|
37
|
-
default: false,
|
|
38
|
-
description: "Whether this is an all-day event",
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
displayName: "Body",
|
|
42
|
-
name: "body",
|
|
43
|
-
type: "string",
|
|
44
|
-
default: "",
|
|
45
|
-
description: "HTML-formatted notes section",
|
|
46
|
-
typeOptions: {
|
|
47
|
-
rows: 4,
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
displayName: "Broker ID",
|
|
52
|
-
name: "broker_id",
|
|
53
|
-
type: "string",
|
|
54
|
-
default: "",
|
|
55
|
-
description: "Assigned user ID",
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
displayName: "Client IDs",
|
|
59
|
-
name: "client_ids",
|
|
60
|
-
type: "string",
|
|
61
|
-
default: "",
|
|
62
|
-
description: "Contact associations (comma-separated)",
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
displayName: "Done",
|
|
66
|
-
name: "done",
|
|
67
|
-
type: "boolean",
|
|
68
|
-
default: false,
|
|
69
|
-
description: "Whether the task is completed",
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
displayName: "Due Date",
|
|
73
|
-
name: "due_date",
|
|
74
|
-
type: "dateTime",
|
|
75
|
-
default: "",
|
|
76
|
-
description: "Due date for reminder",
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
displayName: "Ends At",
|
|
80
|
-
name: "ends_at",
|
|
81
|
-
type: "dateTime",
|
|
82
|
-
default: "",
|
|
83
|
-
description: "Event end date/time",
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
displayName: "Is Event",
|
|
87
|
-
name: "is_event",
|
|
88
|
-
type: "boolean",
|
|
89
|
-
default: false,
|
|
90
|
-
description: "Whether this is an event/appointment",
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
displayName: "Is Reminder",
|
|
94
|
-
name: "is_reminder",
|
|
95
|
-
type: "boolean",
|
|
96
|
-
default: false,
|
|
97
|
-
description: "Whether this is a reminder task",
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
displayName: "Location",
|
|
101
|
-
name: "location",
|
|
102
|
-
type: "string",
|
|
103
|
-
default: "",
|
|
104
|
-
description: "Event location",
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
displayName: "Note Type ID",
|
|
108
|
-
name: "note_type_id",
|
|
109
|
-
type: "string",
|
|
110
|
-
default: "",
|
|
111
|
-
description: "Activity type ID",
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
displayName: "Private",
|
|
115
|
-
name: "private",
|
|
116
|
-
type: "boolean",
|
|
117
|
-
default: false,
|
|
118
|
-
description: "Whether this event is private",
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
displayName: "Project IDs",
|
|
122
|
-
name: "project_ids",
|
|
123
|
-
type: "string",
|
|
124
|
-
default: "",
|
|
125
|
-
description: "Project associations (comma-separated)",
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
displayName: "Property IDs",
|
|
129
|
-
name: "property_ids",
|
|
130
|
-
type: "string",
|
|
131
|
-
default: "",
|
|
132
|
-
description: "Property/unit associations (comma-separated)",
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
displayName: "Recurring",
|
|
136
|
-
name: "recurring",
|
|
137
|
-
type: "boolean",
|
|
138
|
-
default: false,
|
|
139
|
-
description: "Whether this event recurs",
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
displayName: "Remind At",
|
|
143
|
-
name: "remind_at",
|
|
144
|
-
type: "dateTime",
|
|
145
|
-
default: "",
|
|
146
|
-
description: "Reminder notification date/time",
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
displayName: "RRule",
|
|
150
|
-
name: "rrule",
|
|
151
|
-
type: "string",
|
|
152
|
-
default: "",
|
|
153
|
-
description: "Recurrence rules (iCalendar format)",
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
displayName: "Starts At",
|
|
157
|
-
name: "starts_at",
|
|
158
|
-
type: "dateTime",
|
|
159
|
-
default: "",
|
|
160
|
-
description: "Event start date/time",
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
displayName: "Task Creator ID",
|
|
164
|
-
name: "task_creator_id",
|
|
165
|
-
type: "string",
|
|
166
|
-
default: "",
|
|
167
|
-
description: "Original creator ID",
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
displayName: "Task Updater ID",
|
|
171
|
-
name: "task_updater_id",
|
|
172
|
-
type: "string",
|
|
173
|
-
default: "",
|
|
174
|
-
description: "Last modifier ID",
|
|
175
|
-
},
|
|
176
|
-
],
|
|
177
|
-
},
|
|
178
|
-
];
|
|
179
|
-
function buildTasksCreateBody() {
|
|
180
|
-
const body = {};
|
|
181
|
-
body.title = this.getNodeParameter("title", 0);
|
|
182
|
-
const options = this.getNodeParameter("additionalFields", 0);
|
|
183
|
-
if (options) {
|
|
184
|
-
const fields = [
|
|
185
|
-
"note_type_id",
|
|
186
|
-
"body",
|
|
187
|
-
"broker_id",
|
|
188
|
-
"task_creator_id",
|
|
189
|
-
"task_updater_id",
|
|
190
|
-
"is_reminder",
|
|
191
|
-
"due_date",
|
|
192
|
-
"remind_at",
|
|
193
|
-
"done",
|
|
194
|
-
"is_event",
|
|
195
|
-
"starts_at",
|
|
196
|
-
"ends_at",
|
|
197
|
-
"location",
|
|
198
|
-
"all_day",
|
|
199
|
-
"private",
|
|
200
|
-
"recurring",
|
|
201
|
-
"rrule",
|
|
202
|
-
];
|
|
203
|
-
for (const field of fields) {
|
|
204
|
-
if (options[field] !== undefined && options[field] !== "") {
|
|
205
|
-
body[field] = options[field];
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
if (options.client_ids) {
|
|
209
|
-
body.client_ids = options.client_ids
|
|
210
|
-
.split(",")
|
|
211
|
-
.map((id) => parseInt(id.trim(), 10));
|
|
212
|
-
}
|
|
213
|
-
if (options.property_ids) {
|
|
214
|
-
body.property_ids = options.property_ids
|
|
215
|
-
.split(",")
|
|
216
|
-
.map((id) => parseInt(id.trim(), 10));
|
|
217
|
-
}
|
|
218
|
-
if (options.project_ids) {
|
|
219
|
-
body.project_ids = options.project_ids
|
|
220
|
-
.split(",")
|
|
221
|
-
.map((id) => parseInt(id.trim(), 10));
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
return body;
|
|
225
|
-
}
|
|
226
28
|
async function tasksCreate() {
|
|
227
|
-
const
|
|
29
|
+
const title = this.getNodeParameter("title", 0);
|
|
30
|
+
const options = this.getNodeParameter("additionalFields", 0);
|
|
31
|
+
const body = (0, helpers_1.buildQs)(options, TASK_BODY_MAPPING);
|
|
32
|
+
body.title = title;
|
|
228
33
|
const response = await helpers_1.propstackRequest.call(this, {
|
|
229
34
|
method: "POST",
|
|
230
35
|
url: constants_1.API_ENDPOINTS.TASKS_CREATE,
|
|
@@ -232,5 +37,4 @@ async function tasksCreate() {
|
|
|
232
37
|
});
|
|
233
38
|
return this.helpers.returnJsonArray(Array.isArray(response) ? response : [response]);
|
|
234
39
|
}
|
|
235
|
-
exports.default = exports.tasksCreateDescription;
|
|
236
40
|
//# sourceMappingURL=create.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../../../nodes/Propstack/v1/resources/tasks/create.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../../../nodes/Propstack/v1/resources/tasks/create.ts"],"names":[],"mappings":";;AAgCA,kCAiBC;AA3CD,+CAAgD;AAChD,2CAA8E;AAE9E,MAAM,iBAAiB,GAAiE;IACtF,YAAY,EAAE,IAAA,eAAK,EAAC,cAAc,CAAC;IACnC,IAAI,EAAE,MAAM;IACZ,SAAS,EAAE,IAAA,eAAK,EAAC,WAAW,CAAC;IAC7B,eAAe,EAAE,IAAA,eAAK,EAAC,iBAAiB,CAAC;IACzC,eAAe,EAAE,IAAA,eAAK,EAAC,iBAAiB,CAAC;IACzC,WAAW,EAAE,aAAa;IAC1B,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,WAAW;IACtB,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,WAAW;IACtB,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,WAAW;IACtB,KAAK,EAAE,OAAO;IACd,UAAU,EAAE,IAAA,qBAAW,EAAC,YAAY,CAAC;IACrC,YAAY,EAAE,IAAA,qBAAW,EAAC,cAAc,CAAC;IACzC,WAAW,EAAE,IAAA,qBAAW,EAAC,aAAa,CAAC;CACxC,CAAC;AAEK,KAAK,UAAU,WAAW;IAG/B,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,CAAC,CAAW,CAAC;IAC1D,MAAM,OAAO,GAAG,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,CAAC,CAAgB,CAAC;IAC5E,MAAM,IAAI,GAAG,IAAA,iBAAO,EAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;IACjD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IAEnB,MAAM,QAAQ,GAAG,MAAM,0BAAgB,CAAC,IAAI,CAAC,IAAI,EAAE;QACjD,MAAM,EAAE,MAAM;QACd,GAAG,EAAE,yBAAa,CAAC,YAAY;QAC/B,IAAI,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE;KACrB,CAAC,CAAC;IAEH,OAAO,IAAI,CAAC,OAAO,CAAC,eAAe,CACjC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAChD,CAAC;AACJ,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IExecuteFunctions, INodeExecutionData } from "n8n-workflow";
|
|
1
|
+
import type { IExecuteFunctions, INodeExecutionData } from "n8n-workflow";
|
|
2
2
|
export declare function tasksGetAll(this: IExecuteFunctions): Promise<INodeExecutionData[]>;
|
|
@@ -1,47 +1,37 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.tasksGetAll = tasksGetAll;
|
|
4
|
-
const helpers_1 = require("../../helpers");
|
|
5
4
|
const constants_1 = require("../../constants");
|
|
5
|
+
const helpers_1 = require("../../helpers");
|
|
6
|
+
function buildFilterQs(filters) {
|
|
7
|
+
const qs = {};
|
|
8
|
+
const filterKeys = {
|
|
9
|
+
client_id: "filter[client_id]",
|
|
10
|
+
property_id: "filter[property_id]",
|
|
11
|
+
project_id: "filter[project_id]",
|
|
12
|
+
is_reminder: "filter[is_reminder]",
|
|
13
|
+
is_event: "filter[is_event]",
|
|
14
|
+
done: "filter[done]",
|
|
15
|
+
};
|
|
16
|
+
for (const [field, qsKey] of Object.entries(filterKeys)) {
|
|
17
|
+
if (filters[field] !== undefined && filters[field] !== "") {
|
|
18
|
+
qs[qsKey] = filters[field];
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
return qs;
|
|
22
|
+
}
|
|
6
23
|
async function tasksGetAll() {
|
|
7
24
|
const returnAll = this.getNodeParameter("returnAll", 0, false);
|
|
8
25
|
const filters = this.getNodeParameter("filters", 0, {});
|
|
9
|
-
const qs =
|
|
10
|
-
if (
|
|
11
|
-
qs
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
if (filters.is_reminder !== undefined) {
|
|
20
|
-
qs["filter[is_reminder]"] = filters.is_reminder;
|
|
21
|
-
}
|
|
22
|
-
if (filters.is_event !== undefined) {
|
|
23
|
-
qs["filter[is_event]"] = filters.is_event;
|
|
24
|
-
}
|
|
25
|
-
if (filters.done !== undefined) {
|
|
26
|
-
qs["filter[done]"] = filters.done;
|
|
27
|
-
}
|
|
28
|
-
if (returnAll) {
|
|
29
|
-
const response = await helpers_1.propstackRequest.call(this, {
|
|
30
|
-
method: "GET",
|
|
31
|
-
url: constants_1.API_ENDPOINTS.TASKS_GET_ALL,
|
|
32
|
-
qs,
|
|
33
|
-
});
|
|
34
|
-
return this.helpers.returnJsonArray(Array.isArray(response) ? response : [response]);
|
|
35
|
-
}
|
|
36
|
-
else {
|
|
37
|
-
const limit = this.getNodeParameter("limit", 0, 50);
|
|
38
|
-
qs.limit = limit;
|
|
39
|
-
const response = await helpers_1.propstackRequest.call(this, {
|
|
40
|
-
method: "GET",
|
|
41
|
-
url: constants_1.API_ENDPOINTS.TASKS_GET_ALL,
|
|
42
|
-
qs,
|
|
43
|
-
});
|
|
44
|
-
return this.helpers.returnJsonArray(Array.isArray(response) ? response : [response]);
|
|
45
|
-
}
|
|
26
|
+
const qs = buildFilterQs(filters);
|
|
27
|
+
if (!returnAll) {
|
|
28
|
+
qs.limit = this.getNodeParameter("limit", 0, 50);
|
|
29
|
+
}
|
|
30
|
+
const response = await helpers_1.propstackRequest.call(this, {
|
|
31
|
+
method: "GET",
|
|
32
|
+
url: constants_1.API_ENDPOINTS.TASKS_GET_ALL,
|
|
33
|
+
qs,
|
|
34
|
+
});
|
|
35
|
+
return this.helpers.returnJsonArray(Array.isArray(response) ? response : [response]);
|
|
46
36
|
}
|
|
47
37
|
//# sourceMappingURL=getAll.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAll.js","sourceRoot":"","sources":["../../../../../../nodes/Propstack/v1/resources/tasks/getAll.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"getAll.js","sourceRoot":"","sources":["../../../../../../nodes/Propstack/v1/resources/tasks/getAll.ts"],"names":[],"mappings":";;AA6BA,kCAoBC;AA3CD,+CAAgD;AAChD,2CAAiD;AAEjD,SAAS,aAAa,CAAC,OAAoB;IACzC,MAAM,EAAE,GAAgB,EAAE,CAAC;IAC3B,MAAM,UAAU,GAA2B;QACzC,SAAS,EAAE,mBAAmB;QAC9B,WAAW,EAAE,qBAAqB;QAClC,UAAU,EAAE,oBAAoB;QAChC,WAAW,EAAE,qBAAqB;QAClC,QAAQ,EAAE,kBAAkB;QAC5B,IAAI,EAAE,cAAc;KACrB,CAAC;IAEF,KAAK,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC;QACxD,IAAI,OAAO,CAAC,KAAK,CAAC,KAAK,SAAS,IAAI,OAAO,CAAC,KAAK,CAAC,KAAK,EAAE,EAAE,CAAC;YAC1D,EAAE,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;QAC7B,CAAC;IACH,CAAC;IAED,OAAO,EAAE,CAAC;AACZ,CAAC;AAEM,KAAK,UAAU,WAAW;IAG/B,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,CAAC,EAAE,KAAK,CAAY,CAAC;IAC1E,MAAM,OAAO,GAAG,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE,CAAC,EAAE,EAAE,CAAgB,CAAC;IACvE,MAAM,EAAE,GAAG,aAAa,CAAC,OAAO,CAAC,CAAC;IAElC,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,EAAE,CAAC,KAAK,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,CAAC,EAAE,EAAE,CAAW,CAAC;IAC7D,CAAC;IAED,MAAM,QAAQ,GAAG,MAAM,0BAAgB,CAAC,IAAI,CAAC,IAAI,EAAE;QACjD,MAAM,EAAE,KAAK;QACb,GAAG,EAAE,yBAAa,CAAC,aAAa;QAChC,EAAE;KACH,CAAC,CAAC;IAEH,OAAO,IAAI,CAAC,OAAO,CAAC,eAAe,CACjC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAChD,CAAC;AACJ,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IExecuteFunctions, INodeExecutionData } from "n8n-workflow";
|
|
1
|
+
import type { IExecuteFunctions, INodeExecutionData } from "n8n-workflow";
|
|
2
2
|
export declare function tasksUpdate(this: IExecuteFunctions): Promise<INodeExecutionData[]>;
|
|
@@ -1,82 +1,35 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.tasksUpdate = tasksUpdate;
|
|
4
|
-
const helpers_1 = require("../../helpers");
|
|
5
4
|
const constants_1 = require("../../constants");
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
if (options.due_date) {
|
|
31
|
-
body.due_date = options.due_date;
|
|
32
|
-
}
|
|
33
|
-
if (options.remind_at) {
|
|
34
|
-
body.remind_at = options.remind_at;
|
|
35
|
-
}
|
|
36
|
-
if (options.done !== undefined) {
|
|
37
|
-
body.done = options.done;
|
|
38
|
-
}
|
|
39
|
-
if (options.is_event !== undefined) {
|
|
40
|
-
body.is_event = options.is_event;
|
|
41
|
-
}
|
|
42
|
-
if (options.starts_at) {
|
|
43
|
-
body.starts_at = options.starts_at;
|
|
44
|
-
}
|
|
45
|
-
if (options.ends_at) {
|
|
46
|
-
body.ends_at = options.ends_at;
|
|
47
|
-
}
|
|
48
|
-
if (options.location) {
|
|
49
|
-
body.location = options.location;
|
|
50
|
-
}
|
|
51
|
-
if (options.all_day !== undefined) {
|
|
52
|
-
body.all_day = options.all_day;
|
|
53
|
-
}
|
|
54
|
-
if (options.private !== undefined) {
|
|
55
|
-
body.private = options.private;
|
|
56
|
-
}
|
|
57
|
-
if (options.recurring !== undefined) {
|
|
58
|
-
body.recurring = options.recurring;
|
|
59
|
-
}
|
|
60
|
-
if (options.rrule) {
|
|
61
|
-
body.rrule = options.rrule;
|
|
62
|
-
}
|
|
63
|
-
if (options.client_ids) {
|
|
64
|
-
const clientIds = options.client_ids.split(",").map((id) => id.trim());
|
|
65
|
-
body.client_ids = clientIds;
|
|
66
|
-
}
|
|
67
|
-
if (options.property_ids) {
|
|
68
|
-
const propertyIds = options.property_ids.split(",").map((id) => id.trim());
|
|
69
|
-
body.property_ids = propertyIds;
|
|
70
|
-
}
|
|
71
|
-
if (options.project_ids) {
|
|
72
|
-
const projectIds = options.project_ids.split(",").map((id) => id.trim());
|
|
73
|
-
body.project_ids = projectIds;
|
|
74
|
-
}
|
|
75
|
-
return body;
|
|
76
|
-
}
|
|
5
|
+
const helpers_1 = require("../../helpers");
|
|
6
|
+
const TASK_BODY_MAPPING = {
|
|
7
|
+
title: "title",
|
|
8
|
+
note_type_id: (0, helpers_1.toInt)("note_type_id"),
|
|
9
|
+
body: "body",
|
|
10
|
+
broker_id: (0, helpers_1.toInt)("broker_id"),
|
|
11
|
+
task_creator_id: (0, helpers_1.toInt)("task_creator_id"),
|
|
12
|
+
task_updater_id: (0, helpers_1.toInt)("task_updater_id"),
|
|
13
|
+
is_reminder: "is_reminder",
|
|
14
|
+
due_date: "due_date",
|
|
15
|
+
remind_at: "remind_at",
|
|
16
|
+
done: "done",
|
|
17
|
+
is_event: "is_event",
|
|
18
|
+
starts_at: "starts_at",
|
|
19
|
+
ends_at: "ends_at",
|
|
20
|
+
location: "location",
|
|
21
|
+
all_day: "all_day",
|
|
22
|
+
private: "private",
|
|
23
|
+
recurring: "recurring",
|
|
24
|
+
rrule: "rrule",
|
|
25
|
+
client_ids: (0, helpers_1.splitCsvInt)("client_ids"),
|
|
26
|
+
property_ids: (0, helpers_1.splitCsvInt)("property_ids"),
|
|
27
|
+
project_ids: (0, helpers_1.splitCsvInt)("project_ids"),
|
|
28
|
+
};
|
|
77
29
|
async function tasksUpdate() {
|
|
78
30
|
const taskId = (0, helpers_1.extractResourceLocatorValue)(this.getNodeParameter("taskId", 0));
|
|
79
|
-
const
|
|
31
|
+
const options = this.getNodeParameter("additionalFields", 0, {});
|
|
32
|
+
const body = (0, helpers_1.buildQs)(options, TASK_BODY_MAPPING);
|
|
80
33
|
const response = await helpers_1.propstackRequest.call(this, {
|
|
81
34
|
method: "PUT",
|
|
82
35
|
url: constants_1.API_ENDPOINTS.TASKS_UPDATE(taskId),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../../../../../nodes/Propstack/v1/resources/tasks/update.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../../../../../nodes/Propstack/v1/resources/tasks/update.ts"],"names":[],"mappings":";;AAiCA,kCAkBC;AA7CD,+CAAgD;AAChD,2CAA2G;AAE3G,MAAM,iBAAiB,GAAiE;IACtF,KAAK,EAAE,OAAO;IACd,YAAY,EAAE,IAAA,eAAK,EAAC,cAAc,CAAC;IACnC,IAAI,EAAE,MAAM;IACZ,SAAS,EAAE,IAAA,eAAK,EAAC,WAAW,CAAC;IAC7B,eAAe,EAAE,IAAA,eAAK,EAAC,iBAAiB,CAAC;IACzC,eAAe,EAAE,IAAA,eAAK,EAAC,iBAAiB,CAAC;IACzC,WAAW,EAAE,aAAa;IAC1B,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,WAAW;IACtB,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,WAAW;IACtB,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,WAAW;IACtB,KAAK,EAAE,OAAO;IACd,UAAU,EAAE,IAAA,qBAAW,EAAC,YAAY,CAAC;IACrC,YAAY,EAAE,IAAA,qBAAW,EAAC,cAAc,CAAC;IACzC,WAAW,EAAE,IAAA,qBAAW,EAAC,aAAa,CAAC;CACxC,CAAC;AAEK,KAAK,UAAU,WAAW;IAG/B,MAAM,MAAM,GAAG,IAAA,qCAA2B,EACxC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,CAAC,CAAC,CACnC,CAAC;IACF,MAAM,OAAO,GAAG,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,CAAC,EAAE,EAAE,CAAgB,CAAC;IAChF,MAAM,IAAI,GAAG,IAAA,iBAAO,EAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;IAEjD,MAAM,QAAQ,GAAG,MAAM,0BAAgB,CAAC,IAAI,CAAC,IAAI,EAAE;QACjD,MAAM,EAAE,KAAK;QACb,GAAG,EAAE,yBAAa,CAAC,YAAY,CAAC,MAAM,CAAC;QACvC,IAAI,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE;KACrB,CAAC,CAAC;IAEH,OAAO,IAAI,CAAC,OAAO,CAAC,eAAe,CACjC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAChD,CAAC;AACJ,CAAC"}
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import type { IExecuteFunctions, INodeExecutionData
|
|
2
|
-
export declare const teamsGetAllDescription: INodeProperties[];
|
|
1
|
+
import type { IExecuteFunctions, INodeExecutionData } from "n8n-workflow";
|
|
3
2
|
export declare function teamsGetAll(this: IExecuteFunctions): Promise<INodeExecutionData[]>;
|
|
4
|
-
export default teamsGetAllDescription;
|
|
@@ -1,42 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.teamsGetAllDescription = void 0;
|
|
4
3
|
exports.teamsGetAll = teamsGetAll;
|
|
5
4
|
const constants_1 = require("../../constants");
|
|
6
5
|
const helpers_1 = require("../../helpers");
|
|
7
|
-
const showForTeamsGetAll = {
|
|
8
|
-
operation: ["getAll"],
|
|
9
|
-
resource: ["teams"],
|
|
10
|
-
};
|
|
11
|
-
exports.teamsGetAllDescription = [
|
|
12
|
-
{
|
|
13
|
-
displayName: "Return All",
|
|
14
|
-
name: "returnAll",
|
|
15
|
-
type: "boolean",
|
|
16
|
-
default: false,
|
|
17
|
-
displayOptions: {
|
|
18
|
-
show: showForTeamsGetAll,
|
|
19
|
-
},
|
|
20
|
-
description: "Whether to return all results or only up to a given limit",
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
displayName: "Limit",
|
|
24
|
-
name: "limit",
|
|
25
|
-
type: "number",
|
|
26
|
-
default: 50,
|
|
27
|
-
displayOptions: {
|
|
28
|
-
show: {
|
|
29
|
-
...showForTeamsGetAll,
|
|
30
|
-
returnAll: [false],
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
description: "Max number of results to return",
|
|
34
|
-
typeOptions: {
|
|
35
|
-
minValue: 1,
|
|
36
|
-
maxValue: 100,
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
];
|
|
40
6
|
async function teamsGetAll() {
|
|
41
7
|
const returnAll = this.getNodeParameter("returnAll", 0);
|
|
42
8
|
const limit = this.getNodeParameter("limit", 0, 50);
|
|
@@ -45,36 +11,23 @@ async function teamsGetAll() {
|
|
|
45
11
|
let currentPage = 1;
|
|
46
12
|
let hasMore = true;
|
|
47
13
|
while (hasMore) {
|
|
48
|
-
const qs = {
|
|
49
|
-
page: currentPage,
|
|
50
|
-
per_page: 100,
|
|
51
|
-
};
|
|
52
14
|
const response = await helpers_1.propstackRequest.call(this, {
|
|
53
15
|
method: "GET",
|
|
54
16
|
url: constants_1.API_ENDPOINTS.TEAMS_GET_ALL,
|
|
55
|
-
qs,
|
|
17
|
+
qs: { page: currentPage, per: 100 },
|
|
56
18
|
});
|
|
57
19
|
const results = Array.isArray(response) ? response : [response];
|
|
58
20
|
allResults = allResults.concat(results);
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
else {
|
|
63
|
-
currentPage++;
|
|
64
|
-
}
|
|
21
|
+
hasMore = results.length >= 100;
|
|
22
|
+
currentPage++;
|
|
65
23
|
}
|
|
66
24
|
return this.helpers.returnJsonArray(allResults);
|
|
67
25
|
}
|
|
68
|
-
const qs = {
|
|
69
|
-
page: 1,
|
|
70
|
-
per_page: limit,
|
|
71
|
-
};
|
|
72
26
|
const response = await helpers_1.propstackRequest.call(this, {
|
|
73
27
|
method: "GET",
|
|
74
28
|
url: constants_1.API_ENDPOINTS.TEAMS_GET_ALL,
|
|
75
|
-
qs,
|
|
29
|
+
qs: { page: 1, per: limit },
|
|
76
30
|
});
|
|
77
31
|
return this.helpers.returnJsonArray(Array.isArray(response) ? response : [response]);
|
|
78
32
|
}
|
|
79
|
-
exports.default = exports.teamsGetAllDescription;
|
|
80
33
|
//# sourceMappingURL=getAll.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAll.js","sourceRoot":"","sources":["../../../../../../nodes/Propstack/v1/resources/teams/getAll.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getAll.js","sourceRoot":"","sources":["../../../../../../nodes/Propstack/v1/resources/teams/getAll.ts"],"names":[],"mappings":";;AASA,kCAoCC;AAvCD,+CAAgD;AAChD,2CAAiD;AAE1C,KAAK,UAAU,WAAW;IAG/B,MAAM,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,CAAC,CAAY,CAAC;IACnE,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,CAAC,EAAE,EAAE,CAAW,CAAC;IAE9D,IAAI,SAAS,EAAE,CAAC;QACd,IAAI,UAAU,GAAkB,EAAE,CAAC;QACnC,IAAI,WAAW,GAAG,CAAC,CAAC;QACpB,IAAI,OAAO,GAAG,IAAI,CAAC;QAEnB,OAAO,OAAO,EAAE,CAAC;YACf,MAAM,QAAQ,GAAG,MAAM,0BAAgB,CAAC,IAAI,CAAC,IAAI,EAAE;gBACjD,MAAM,EAAE,KAAK;gBACb,GAAG,EAAE,yBAAa,CAAC,aAAa;gBAChC,EAAE,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,EAAE,GAAG,EAAE;aACpC,CAAC,CAAC;YAEH,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;YAChE,UAAU,GAAG,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;YACxC,OAAO,GAAG,OAAO,CAAC,MAAM,IAAI,GAAG,CAAC;YAChC,WAAW,EAAE,CAAC;QAChB,CAAC;QAED,OAAO,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC;IAClD,CAAC;IAED,MAAM,QAAQ,GAAG,MAAM,0BAAgB,CAAC,IAAI,CAAC,IAAI,EAAE;QACjD,MAAM,EAAE,KAAK;QACb,GAAG,EAAE,yBAAa,CAAC,aAAa;QAChC,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE;KAC5B,CAAC,CAAC;IAEH,OAAO,IAAI,CAAC,OAAO,CAAC,eAAe,CACjC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAChD,CAAC;AACJ,CAAC"}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import { INodeProperties } from "n8n-workflow";
|
|
2
2
|
export declare const teamsOperations: INodeProperties[];
|
|
3
3
|
export declare const teamsFields: INodeProperties[];
|
|
4
|
-
export { teamsCreate } from "./create";
|
|
5
|
-
export { teamsDelete } from "./delete";
|
|
6
|
-
export { teamsGet } from "./get";
|
|
7
4
|
export { teamsGetAll } from "./getAll";
|
|
8
|
-
export { teamsUpdate } from "./update";
|