n8n-nodes-propstack 0.2.0 → 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/PropstackTrigger.node.d.ts +1 -8
- package/dist/nodes/Propstack/PropstackTrigger.node.js +75 -92
- package/dist/nodes/Propstack/PropstackTrigger.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,287 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.searchProfilesUpdateDescription = void 0;
|
|
4
3
|
exports.searchProfilesUpdate = searchProfilesUpdate;
|
|
5
4
|
const constants_1 = require("../../constants");
|
|
6
5
|
const helpers_1 = require("../../helpers");
|
|
7
|
-
const
|
|
8
|
-
operation: ["update"],
|
|
9
|
-
resource: ["searchProfiles"],
|
|
10
|
-
};
|
|
11
|
-
exports.searchProfilesUpdateDescription = [
|
|
12
|
-
{
|
|
13
|
-
displayName: "Search Profile ID",
|
|
14
|
-
name: "profileId",
|
|
15
|
-
type: "string",
|
|
16
|
-
required: true,
|
|
17
|
-
default: "",
|
|
18
|
-
displayOptions: {
|
|
19
|
-
show: showForSearchProfilesUpdate,
|
|
20
|
-
},
|
|
21
|
-
description: "The ID of the search profile to update",
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
displayName: "Additional Fields",
|
|
25
|
-
name: "additionalFields",
|
|
26
|
-
type: "collection",
|
|
27
|
-
placeholder: "Add Field",
|
|
28
|
-
default: {},
|
|
29
|
-
displayOptions: {
|
|
30
|
-
show: showForSearchProfilesUpdate,
|
|
31
|
-
},
|
|
32
|
-
options: [
|
|
33
|
-
{
|
|
34
|
-
displayName: "Active",
|
|
35
|
-
name: "active",
|
|
36
|
-
type: "boolean",
|
|
37
|
-
default: true,
|
|
38
|
-
description: "Whether the search profile is active",
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
displayName: "Balcony",
|
|
42
|
-
name: "balcony",
|
|
43
|
-
type: "boolean",
|
|
44
|
-
default: false,
|
|
45
|
-
description: "Whether the property has a balcony",
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
displayName: "Base Rent From",
|
|
49
|
-
name: "baseRentFrom",
|
|
50
|
-
type: "number",
|
|
51
|
-
default: 0,
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
displayName: "Base Rent To",
|
|
55
|
-
name: "baseRentTo",
|
|
56
|
-
type: "number",
|
|
57
|
-
default: 0,
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
displayName: "Built-in Kitchen",
|
|
61
|
-
name: "builtInKitchen",
|
|
62
|
-
type: "boolean",
|
|
63
|
-
default: false,
|
|
64
|
-
description: "Whether the property has a built-in kitchen",
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
displayName: "Cellar",
|
|
68
|
-
name: "cellar",
|
|
69
|
-
type: "boolean",
|
|
70
|
-
default: false,
|
|
71
|
-
description: "Whether the property has a cellar",
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
displayName: "Cities",
|
|
75
|
-
name: "cities",
|
|
76
|
-
type: "string",
|
|
77
|
-
default: "",
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
displayName: "Construction Year From",
|
|
81
|
-
name: "constructionYearFrom",
|
|
82
|
-
type: "number",
|
|
83
|
-
default: 0,
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
displayName: "Construction Year To",
|
|
87
|
-
name: "constructionYearTo",
|
|
88
|
-
type: "number",
|
|
89
|
-
default: 0,
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
displayName: "Floor From",
|
|
93
|
-
name: "floorFrom",
|
|
94
|
-
type: "number",
|
|
95
|
-
default: 0,
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
displayName: "Floor To",
|
|
99
|
-
name: "floorTo",
|
|
100
|
-
type: "number",
|
|
101
|
-
default: 0,
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
displayName: "Garden",
|
|
105
|
-
name: "garden",
|
|
106
|
-
type: "boolean",
|
|
107
|
-
default: false,
|
|
108
|
-
description: "Whether the property has a garden",
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
displayName: "Lift",
|
|
112
|
-
name: "lift",
|
|
113
|
-
type: "boolean",
|
|
114
|
-
default: false,
|
|
115
|
-
description: "Whether the property has a lift",
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
displayName: "Living Space From",
|
|
119
|
-
name: "livingSpaceFrom",
|
|
120
|
-
type: "number",
|
|
121
|
-
default: 0,
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
displayName: "Living Space To",
|
|
125
|
-
name: "livingSpaceTo",
|
|
126
|
-
type: "number",
|
|
127
|
-
default: 0,
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
displayName: "Marketing Type",
|
|
131
|
-
name: "marketingType",
|
|
132
|
-
type: "options",
|
|
133
|
-
default: "BUY",
|
|
134
|
-
options: [
|
|
135
|
-
{ name: "Buy", value: "BUY" },
|
|
136
|
-
{ name: "Rent", value: "RENT" },
|
|
137
|
-
],
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
displayName: "Note",
|
|
141
|
-
name: "note",
|
|
142
|
-
type: "string",
|
|
143
|
-
default: "",
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
displayName: "Number of Rooms From",
|
|
147
|
-
name: "numberOfRoomsFrom",
|
|
148
|
-
type: "number",
|
|
149
|
-
default: 0,
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
displayName: "Number of Rooms To",
|
|
153
|
-
name: "numberOfRoomsTo",
|
|
154
|
-
type: "number",
|
|
155
|
-
default: 0,
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
displayName: "Price From",
|
|
159
|
-
name: "priceFrom",
|
|
160
|
-
type: "number",
|
|
161
|
-
default: 0,
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
displayName: "Price To",
|
|
165
|
-
name: "priceTo",
|
|
166
|
-
type: "number",
|
|
167
|
-
default: 0,
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
displayName: "Real Estate Categories",
|
|
171
|
-
name: "rsCategories",
|
|
172
|
-
type: "string",
|
|
173
|
-
default: "",
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
displayName: "Real Estate Types",
|
|
177
|
-
name: "rsTypes",
|
|
178
|
-
type: "string",
|
|
179
|
-
default: "",
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
displayName: "Regions",
|
|
183
|
-
name: "regions",
|
|
184
|
-
type: "string",
|
|
185
|
-
default: "",
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
displayName: "Rented",
|
|
189
|
-
name: "rented",
|
|
190
|
-
type: "boolean",
|
|
191
|
-
default: false,
|
|
192
|
-
description: "Whether the property is currently rented",
|
|
193
|
-
},
|
|
194
|
-
],
|
|
195
|
-
},
|
|
196
|
-
];
|
|
197
|
-
function buildSearchProfilesUpdateBody() {
|
|
198
|
-
const savedQuery = {};
|
|
199
|
-
const options = this.getNodeParameter("additionalFields", 0);
|
|
200
|
-
if (options) {
|
|
201
|
-
if (options.active !== undefined) {
|
|
202
|
-
savedQuery.active = options.active;
|
|
203
|
-
}
|
|
204
|
-
if (options.baseRentFrom) {
|
|
205
|
-
savedQuery.base_rent_from = options.baseRentFrom;
|
|
206
|
-
}
|
|
207
|
-
if (options.baseRentTo) {
|
|
208
|
-
savedQuery.base_rent_to = options.baseRentTo;
|
|
209
|
-
}
|
|
210
|
-
if (options.balcony !== undefined) {
|
|
211
|
-
savedQuery.balcony = options.balcony;
|
|
212
|
-
}
|
|
213
|
-
if (options.builtInKitchen !== undefined) {
|
|
214
|
-
savedQuery.built_in_kitchen = options.builtInKitchen;
|
|
215
|
-
}
|
|
216
|
-
if (options.cellar !== undefined) {
|
|
217
|
-
savedQuery.cellar = options.cellar;
|
|
218
|
-
}
|
|
219
|
-
if (options.cities)
|
|
220
|
-
savedQuery.cities = options.cities;
|
|
221
|
-
if (options.constructionYearFrom) {
|
|
222
|
-
savedQuery.construction_year_from = options.constructionYearFrom;
|
|
223
|
-
}
|
|
224
|
-
if (options.constructionYearTo) {
|
|
225
|
-
savedQuery.construction_year_to = options.constructionYearTo;
|
|
226
|
-
}
|
|
227
|
-
if (options.floorFrom) {
|
|
228
|
-
savedQuery.floor_from = options.floorFrom;
|
|
229
|
-
}
|
|
230
|
-
if (options.floorTo) {
|
|
231
|
-
savedQuery.floor_to = options.floorTo;
|
|
232
|
-
}
|
|
233
|
-
if (options.garden !== undefined) {
|
|
234
|
-
savedQuery.garden = options.garden;
|
|
235
|
-
}
|
|
236
|
-
if (options.livingSpaceFrom) {
|
|
237
|
-
savedQuery.living_space_from = options.livingSpaceFrom;
|
|
238
|
-
}
|
|
239
|
-
if (options.livingSpaceTo) {
|
|
240
|
-
savedQuery.living_space_to = options.livingSpaceTo;
|
|
241
|
-
}
|
|
242
|
-
if (options.lift !== undefined) {
|
|
243
|
-
savedQuery.lift = options.lift;
|
|
244
|
-
}
|
|
245
|
-
if (options.marketingType) {
|
|
246
|
-
savedQuery.marketing_type = options.marketingType;
|
|
247
|
-
}
|
|
248
|
-
if (options.note)
|
|
249
|
-
savedQuery.note = options.note;
|
|
250
|
-
if (options.numberOfRoomsFrom) {
|
|
251
|
-
savedQuery.number_of_rooms_from = options.numberOfRoomsFrom;
|
|
252
|
-
}
|
|
253
|
-
if (options.numberOfRoomsTo) {
|
|
254
|
-
savedQuery.number_of_rooms_to = options.numberOfRoomsTo;
|
|
255
|
-
}
|
|
256
|
-
if (options.priceFrom) {
|
|
257
|
-
savedQuery.price_from = options.priceFrom;
|
|
258
|
-
}
|
|
259
|
-
if (options.priceTo) {
|
|
260
|
-
savedQuery.price_to = options.priceTo;
|
|
261
|
-
}
|
|
262
|
-
if (options.rsCategories) {
|
|
263
|
-
savedQuery.rs_categories = options.rsCategories;
|
|
264
|
-
}
|
|
265
|
-
if (options.rsTypes) {
|
|
266
|
-
savedQuery.rs_types = options.rsTypes;
|
|
267
|
-
}
|
|
268
|
-
if (options.regions)
|
|
269
|
-
savedQuery.regions = options.regions;
|
|
270
|
-
if (options.rented !== undefined) {
|
|
271
|
-
savedQuery.rented = options.rented;
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
return { saved_query: savedQuery };
|
|
275
|
-
}
|
|
6
|
+
const create_1 = require("./create");
|
|
276
7
|
async function searchProfilesUpdate() {
|
|
277
8
|
const profileId = (0, helpers_1.extractResourceLocatorValue)(this.getNodeParameter("profileId", 0));
|
|
278
|
-
const
|
|
9
|
+
const additionalFields = this.getNodeParameter("additionalFields", 0);
|
|
10
|
+
const body = (0, helpers_1.buildQs)(additionalFields, create_1.SEARCH_PROFILE_FIELD_MAPPING);
|
|
279
11
|
const response = await helpers_1.propstackRequest.call(this, {
|
|
280
12
|
method: "PUT",
|
|
281
13
|
url: constants_1.API_ENDPOINTS.SEARCH_PROFILES_UPDATE(profileId),
|
|
282
|
-
body,
|
|
14
|
+
body: { saved_query: body },
|
|
283
15
|
});
|
|
284
16
|
return this.helpers.returnJsonArray(Array.isArray(response) ? response : [response]);
|
|
285
17
|
}
|
|
286
|
-
exports.default = exports.searchProfilesUpdateDescription;
|
|
287
18
|
//# sourceMappingURL=update.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../../../../../nodes/Propstack/v1/resources/searchProfiles/update.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../../../../../nodes/Propstack/v1/resources/searchProfiles/update.ts"],"names":[],"mappings":";;AAcA,oDAsBC;AA9BD,+CAAgD;AAChD,2CAIuB;AACvB,qCAAwD;AAEjD,KAAK,UAAU,oBAAoB;IAGxC,MAAM,SAAS,GAAG,IAAA,qCAA2B,EAC3C,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,CAAC,CAAC,CACtC,CAAC;IACF,MAAM,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAC5C,kBAAkB,EAClB,CAAC,CACa,CAAC;IAEjB,MAAM,IAAI,GAAG,IAAA,iBAAO,EAAC,gBAAgB,EAAE,qCAA4B,CAAC,CAAC;IAErE,MAAM,QAAQ,GAAG,MAAM,0BAAgB,CAAC,IAAI,CAAC,IAAI,EAAE;QACjD,MAAM,EAAE,KAAK;QACb,GAAG,EAAE,yBAAa,CAAC,sBAAsB,CAAC,SAAS,CAAC;QACpD,IAAI,EAAE,EAAE,WAAW,EAAE,IAAI,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"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.snippetsGetAll = snippetsGetAll;
|
|
4
|
+
const constants_1 = require("../../constants");
|
|
5
|
+
const helpers_1 = require("../../helpers");
|
|
6
|
+
const SNIPPETS_SIMPLIFIED_FIELDS = [
|
|
7
|
+
"id", "name", "subject", "message_category_id",
|
|
8
|
+
"snippet_category_id", "message_template_id",
|
|
9
|
+
];
|
|
10
|
+
async function snippetsGetAll() {
|
|
11
|
+
const returnAll = this.getNodeParameter("returnAll", 0);
|
|
12
|
+
const limit = this.getNodeParameter("limit", 0, 50);
|
|
13
|
+
const simplify = this.getNodeParameter("simplify", 0, true);
|
|
14
|
+
const response = await helpers_1.propstackRequest.call(this, {
|
|
15
|
+
method: "GET",
|
|
16
|
+
url: constants_1.API_ENDPOINTS.SNIPPETS_GET_ALL,
|
|
17
|
+
});
|
|
18
|
+
let data = Array.isArray(response) ? response : [response];
|
|
19
|
+
if (!returnAll) {
|
|
20
|
+
data = data.slice(0, limit);
|
|
21
|
+
}
|
|
22
|
+
return this.helpers.returnJsonArray(simplify ? (0, helpers_1.simplifyResponse)(data, SNIPPETS_SIMPLIFIED_FIELDS) : data);
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=getAll.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAll.js","sourceRoot":"","sources":["../../../../../../nodes/Propstack/v1/resources/snippets/getAll.ts"],"names":[],"mappings":";;AAcA,wCAqBC;AA7BD,+CAAgD;AAChD,2CAAmE;AAEnE,MAAM,0BAA0B,GAAG;IACjC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,qBAAqB;IAC9C,qBAAqB,EAAE,qBAAqB;CAC7C,CAAC;AAEK,KAAK,UAAU,cAAc;IAGlC,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;IAC9D,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,CAAC,EAAE,IAAI,CAAY,CAAC;IAEvE,MAAM,QAAQ,GAAG,MAAM,0BAAgB,CAAC,IAAI,CAAC,IAAI,EAAE;QACjD,MAAM,EAAE,KAAK;QACb,GAAG,EAAE,yBAAa,CAAC,gBAAgB;KACpC,CAAC,CAAC;IAEH,IAAI,IAAI,GAAG,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;IAE3D,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;IAC9B,CAAC;IAED,OAAO,IAAI,CAAC,OAAO,CAAC,eAAe,CACjC,QAAQ,CAAC,CAAC,CAAC,IAAA,0BAAgB,EAAC,IAAqB,EAAE,0BAA0B,CAAC,CAAC,CAAC,CAAC,IAAI,CACtF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.snippetsGetAll = exports.snippetsFields = exports.snippetsOperations = void 0;
|
|
4
|
+
exports.snippetsOperations = [
|
|
5
|
+
{
|
|
6
|
+
displayName: "Operation",
|
|
7
|
+
name: "operation",
|
|
8
|
+
type: "options",
|
|
9
|
+
noDataExpression: true,
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: {
|
|
12
|
+
resource: ["snippets"],
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
options: [
|
|
16
|
+
{
|
|
17
|
+
name: "Get Many",
|
|
18
|
+
value: "getAll",
|
|
19
|
+
action: "Get many snippets",
|
|
20
|
+
description: "Retrieve a list of email templates",
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
default: "getAll",
|
|
24
|
+
},
|
|
25
|
+
];
|
|
26
|
+
exports.snippetsFields = [
|
|
27
|
+
{
|
|
28
|
+
displayName: "Return All",
|
|
29
|
+
name: "returnAll",
|
|
30
|
+
type: "boolean",
|
|
31
|
+
default: false,
|
|
32
|
+
displayOptions: {
|
|
33
|
+
show: {
|
|
34
|
+
resource: ["snippets"],
|
|
35
|
+
operation: ["getAll"],
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
description: "Whether to return all results or only up to a given limit",
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
displayName: "Limit",
|
|
42
|
+
name: "limit",
|
|
43
|
+
type: "number",
|
|
44
|
+
default: 50,
|
|
45
|
+
displayOptions: {
|
|
46
|
+
show: {
|
|
47
|
+
resource: ["snippets"],
|
|
48
|
+
operation: ["getAll"],
|
|
49
|
+
returnAll: [false],
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
description: "Max number of results to return",
|
|
53
|
+
typeOptions: {
|
|
54
|
+
minValue: 1,
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
displayName: "Simplify",
|
|
59
|
+
name: "simplify",
|
|
60
|
+
type: "boolean",
|
|
61
|
+
default: true,
|
|
62
|
+
displayOptions: {
|
|
63
|
+
show: {
|
|
64
|
+
resource: ["snippets"],
|
|
65
|
+
operation: ["getAll"],
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
description: "Whether to return a simplified version of the response instead of the raw data",
|
|
69
|
+
},
|
|
70
|
+
];
|
|
71
|
+
var getAll_1 = require("./getAll");
|
|
72
|
+
Object.defineProperty(exports, "snippetsGetAll", { enumerable: true, get: function () { return getAll_1.snippetsGetAll; } });
|
|
73
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../nodes/Propstack/v1/resources/snippets/index.ts"],"names":[],"mappings":";;;AAEa,QAAA,kBAAkB,GAAsB;IACnD;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,UAAU,CAAC;aACvB;SACF;QACD,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,mBAAmB;gBAC3B,WAAW,EAAE,oCAAoC;aAClD;SACF;QACD,OAAO,EAAE,QAAQ;KAClB;CACF,CAAC;AAEW,QAAA,cAAc,GAAsB;IAC/C;QACE,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,KAAK;QACd,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,UAAU,CAAC;gBACtB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,WAAW,EAAE,2DAA2D;KACzE;IACD;QACE,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,UAAU,CAAC;gBACtB,SAAS,EAAE,CAAC,QAAQ,CAAC;gBACrB,SAAS,EAAE,CAAC,KAAK,CAAC;aACnB;SACF;QACD,WAAW,EAAE,iCAAiC;QAC9C,WAAW,EAAE;YACX,QAAQ,EAAE,CAAC;SACZ;KACF;IACD;QACE,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,IAAI;QACb,cAAc,EAAE;YACd,IAAI,EAAE;gBACJ,QAAQ,EAAE,CAAC,UAAU,CAAC;gBACtB,SAAS,EAAE,CAAC,QAAQ,CAAC;aACtB;SACF;QACD,WAAW,EAAE,gFAAgF;KAC9F;CACF,CAAC;AAEF,mCAA0C;AAAjC,wGAAA,cAAc,OAAA"}
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import type { IExecuteFunctions, INodeExecutionData
|
|
2
|
-
export declare const tasksCreateDescription: INodeProperties[];
|
|
1
|
+
import type { IExecuteFunctions, INodeExecutionData } from "n8n-workflow";
|
|
3
2
|
export declare function tasksCreate(this: IExecuteFunctions): Promise<INodeExecutionData[]>;
|
|
4
|
-
export default tasksCreateDescription;
|