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.
Files changed (158) hide show
  1. package/README.md +5 -4
  2. package/dist/nodes/Propstack/Propstack.node.js +0 -2
  3. package/dist/nodes/Propstack/Propstack.node.js.map +1 -1
  4. package/dist/nodes/Propstack/v1/PropstackV1.d.ts +3 -2
  5. package/dist/nodes/Propstack/v1/PropstackV1.js +12 -7
  6. package/dist/nodes/Propstack/v1/PropstackV1.js.map +1 -1
  7. package/dist/nodes/Propstack/v1/constants.d.ts +1 -6
  8. package/dist/nodes/Propstack/v1/constants.js +1 -6
  9. package/dist/nodes/Propstack/v1/constants.js.map +1 -1
  10. package/dist/nodes/Propstack/v1/helpers.d.ts +4 -0
  11. package/dist/nodes/Propstack/v1/helpers.js +16 -0
  12. package/dist/nodes/Propstack/v1/helpers.js.map +1 -1
  13. package/dist/nodes/Propstack/v1/listSearch.d.ts +2 -1
  14. package/dist/nodes/Propstack/v1/listSearch.js +58 -40
  15. package/dist/nodes/Propstack/v1/listSearch.js.map +1 -1
  16. package/dist/nodes/Propstack/v1/resources/activities/activityTypesGetAll.js +3 -1
  17. package/dist/nodes/Propstack/v1/resources/activities/activityTypesGetAll.js.map +1 -1
  18. package/dist/nodes/Propstack/v1/resources/activities/getAll.d.ts +1 -3
  19. package/dist/nodes/Propstack/v1/resources/activities/getAll.js +21 -244
  20. package/dist/nodes/Propstack/v1/resources/activities/getAll.js.map +1 -1
  21. package/dist/nodes/Propstack/v1/resources/contacts/create.js +26 -46
  22. package/dist/nodes/Propstack/v1/resources/contacts/create.js.map +1 -1
  23. package/dist/nodes/Propstack/v1/resources/contacts/get.js +7 -17
  24. package/dist/nodes/Propstack/v1/resources/contacts/get.js.map +1 -1
  25. package/dist/nodes/Propstack/v1/resources/contacts/getAll.js +16 -87
  26. package/dist/nodes/Propstack/v1/resources/contacts/getAll.js.map +1 -1
  27. package/dist/nodes/Propstack/v1/resources/contacts/update.js +28 -56
  28. package/dist/nodes/Propstack/v1/resources/contacts/update.js.map +1 -1
  29. package/dist/nodes/Propstack/v1/resources/deals/create.js +17 -26
  30. package/dist/nodes/Propstack/v1/resources/deals/create.js.map +1 -1
  31. package/dist/nodes/Propstack/v1/resources/deals/get.js +3 -6
  32. package/dist/nodes/Propstack/v1/resources/deals/get.js.map +1 -1
  33. package/dist/nodes/Propstack/v1/resources/deals/getAll.js +28 -128
  34. package/dist/nodes/Propstack/v1/resources/deals/getAll.js.map +1 -1
  35. package/dist/nodes/Propstack/v1/resources/deals/update.js +15 -26
  36. package/dist/nodes/Propstack/v1/resources/deals/update.js.map +1 -1
  37. package/dist/nodes/Propstack/v1/resources/documents/create.js +18 -29
  38. package/dist/nodes/Propstack/v1/resources/documents/create.js.map +1 -1
  39. package/dist/nodes/Propstack/v1/resources/documents/getAll.js +17 -51
  40. package/dist/nodes/Propstack/v1/resources/documents/getAll.js.map +1 -1
  41. package/dist/nodes/Propstack/v1/resources/documents/update.js +16 -29
  42. package/dist/nodes/Propstack/v1/resources/documents/update.js.map +1 -1
  43. package/dist/nodes/Propstack/v1/resources/emails/get.d.ts +1 -3
  44. package/dist/nodes/Propstack/v1/resources/emails/get.js +0 -3
  45. package/dist/nodes/Propstack/v1/resources/emails/get.js.map +1 -1
  46. package/dist/nodes/Propstack/v1/resources/emails/index.d.ts +1 -2
  47. package/dist/nodes/Propstack/v1/resources/emails/index.js +2 -22
  48. package/dist/nodes/Propstack/v1/resources/emails/index.js.map +1 -1
  49. package/dist/nodes/Propstack/v1/resources/emails/send.d.ts +0 -1
  50. package/dist/nodes/Propstack/v1/resources/emails/send.js +61 -51
  51. package/dist/nodes/Propstack/v1/resources/emails/send.js.map +1 -1
  52. package/dist/nodes/Propstack/v1/resources/emails/update.js +9 -33
  53. package/dist/nodes/Propstack/v1/resources/emails/update.js.map +1 -1
  54. package/dist/nodes/Propstack/v1/resources/events/getAll.js +17 -39
  55. package/dist/nodes/Propstack/v1/resources/events/getAll.js.map +1 -1
  56. package/dist/nodes/Propstack/v1/resources/features/create.d.ts +1 -3
  57. package/dist/nodes/Propstack/v1/resources/features/create.js +1 -50
  58. package/dist/nodes/Propstack/v1/resources/features/create.js.map +1 -1
  59. package/dist/nodes/Propstack/v1/resources/features/getAll.d.ts +1 -3
  60. package/dist/nodes/Propstack/v1/resources/features/getAll.js +0 -43
  61. package/dist/nodes/Propstack/v1/resources/features/getAll.js.map +1 -1
  62. package/dist/nodes/Propstack/v1/resources/features/index.js +22 -0
  63. package/dist/nodes/Propstack/v1/resources/features/index.js.map +1 -1
  64. package/dist/nodes/Propstack/v1/resources/features/parentGetAll.d.ts +1 -3
  65. package/dist/nodes/Propstack/v1/resources/features/parentGetAll.js +3 -35
  66. package/dist/nodes/Propstack/v1/resources/features/parentGetAll.js.map +1 -1
  67. package/dist/nodes/Propstack/v1/resources/notes/getAll.d.ts +1 -3
  68. package/dist/nodes/Propstack/v1/resources/notes/getAll.js +8 -83
  69. package/dist/nodes/Propstack/v1/resources/notes/getAll.js.map +1 -1
  70. package/dist/nodes/Propstack/v1/resources/projects/create.d.ts +0 -1
  71. package/dist/nodes/Propstack/v1/resources/projects/create.js +37 -38
  72. package/dist/nodes/Propstack/v1/resources/projects/create.js.map +1 -1
  73. package/dist/nodes/Propstack/v1/resources/projects/get.d.ts +0 -1
  74. package/dist/nodes/Propstack/v1/resources/projects/get.js +0 -1
  75. package/dist/nodes/Propstack/v1/resources/projects/get.js.map +1 -1
  76. package/dist/nodes/Propstack/v1/resources/projects/getAll.d.ts +0 -1
  77. package/dist/nodes/Propstack/v1/resources/projects/getAll.js +15 -27
  78. package/dist/nodes/Propstack/v1/resources/projects/getAll.js.map +1 -1
  79. package/dist/nodes/Propstack/v1/resources/projects/index.d.ts +1 -2
  80. package/dist/nodes/Propstack/v1/resources/projects/index.js +2 -11
  81. package/dist/nodes/Propstack/v1/resources/projects/index.js.map +1 -1
  82. package/dist/nodes/Propstack/v1/resources/projects/update.d.ts +0 -1
  83. package/dist/nodes/Propstack/v1/resources/projects/update.js +37 -38
  84. package/dist/nodes/Propstack/v1/resources/projects/update.js.map +1 -1
  85. package/dist/nodes/Propstack/v1/resources/properties/create.d.ts +0 -1
  86. package/dist/nodes/Propstack/v1/resources/properties/create.js +98 -113
  87. package/dist/nodes/Propstack/v1/resources/properties/create.js.map +1 -1
  88. package/dist/nodes/Propstack/v1/resources/properties/get.d.ts +0 -1
  89. package/dist/nodes/Propstack/v1/resources/properties/get.js +5 -9
  90. package/dist/nodes/Propstack/v1/resources/properties/get.js.map +1 -1
  91. package/dist/nodes/Propstack/v1/resources/properties/getAll.d.ts +0 -1
  92. package/dist/nodes/Propstack/v1/resources/properties/getAll.js +60 -163
  93. package/dist/nodes/Propstack/v1/resources/properties/getAll.js.map +1 -1
  94. package/dist/nodes/Propstack/v1/resources/properties/update.d.ts +0 -1
  95. package/dist/nodes/Propstack/v1/resources/properties/update.js +40 -67
  96. package/dist/nodes/Propstack/v1/resources/properties/update.js.map +1 -1
  97. package/dist/nodes/Propstack/v1/resources/searchProfiles/create.d.ts +3 -3
  98. package/dist/nodes/Propstack/v1/resources/searchProfiles/create.js +40 -278
  99. package/dist/nodes/Propstack/v1/resources/searchProfiles/create.js.map +1 -1
  100. package/dist/nodes/Propstack/v1/resources/searchProfiles/delete.d.ts +1 -3
  101. package/dist/nodes/Propstack/v1/resources/searchProfiles/delete.js +0 -19
  102. package/dist/nodes/Propstack/v1/resources/searchProfiles/delete.js.map +1 -1
  103. package/dist/nodes/Propstack/v1/resources/searchProfiles/getAll.d.ts +1 -3
  104. package/dist/nodes/Propstack/v1/resources/searchProfiles/getAll.js +15 -62
  105. package/dist/nodes/Propstack/v1/resources/searchProfiles/getAll.js.map +1 -1
  106. package/dist/nodes/Propstack/v1/resources/searchProfiles/index.js +180 -252
  107. package/dist/nodes/Propstack/v1/resources/searchProfiles/index.js.map +1 -1
  108. package/dist/nodes/Propstack/v1/resources/searchProfiles/update.d.ts +1 -3
  109. package/dist/nodes/Propstack/v1/resources/searchProfiles/update.js +4 -273
  110. package/dist/nodes/Propstack/v1/resources/searchProfiles/update.js.map +1 -1
  111. package/dist/nodes/Propstack/v1/resources/snippets/getAll.d.ts +2 -0
  112. package/dist/nodes/Propstack/v1/resources/snippets/getAll.js +24 -0
  113. package/dist/nodes/Propstack/v1/resources/snippets/getAll.js.map +1 -0
  114. package/dist/nodes/Propstack/v1/resources/snippets/index.d.ts +4 -0
  115. package/dist/nodes/Propstack/v1/resources/snippets/index.js +73 -0
  116. package/dist/nodes/Propstack/v1/resources/snippets/index.js.map +1 -0
  117. package/dist/nodes/Propstack/v1/resources/tasks/create.d.ts +1 -3
  118. package/dist/nodes/Propstack/v1/resources/tasks/create.js +25 -221
  119. package/dist/nodes/Propstack/v1/resources/tasks/create.js.map +1 -1
  120. package/dist/nodes/Propstack/v1/resources/tasks/getAll.d.ts +1 -1
  121. package/dist/nodes/Propstack/v1/resources/tasks/getAll.js +28 -38
  122. package/dist/nodes/Propstack/v1/resources/tasks/getAll.js.map +1 -1
  123. package/dist/nodes/Propstack/v1/resources/tasks/update.d.ts +1 -1
  124. package/dist/nodes/Propstack/v1/resources/tasks/update.js +26 -73
  125. package/dist/nodes/Propstack/v1/resources/tasks/update.js.map +1 -1
  126. package/dist/nodes/Propstack/v1/resources/teams/getAll.d.ts +1 -3
  127. package/dist/nodes/Propstack/v1/resources/teams/getAll.js +4 -51
  128. package/dist/nodes/Propstack/v1/resources/teams/getAll.js.map +1 -1
  129. package/dist/nodes/Propstack/v1/resources/teams/index.d.ts +0 -4
  130. package/dist/nodes/Propstack/v1/resources/teams/index.js +1 -214
  131. package/dist/nodes/Propstack/v1/resources/teams/index.js.map +1 -1
  132. package/dist/nodes/Propstack/v1/resources/webhooks/create.d.ts +1 -1
  133. package/dist/nodes/Propstack/v1/resources/webhooks/create.js +5 -11
  134. package/dist/nodes/Propstack/v1/resources/webhooks/create.js.map +1 -1
  135. package/dist/nodes/Propstack/v1/resources/webhooks/getAll.d.ts +1 -1
  136. package/dist/nodes/Propstack/v1/resources/webhooks/getAll.js +7 -6
  137. package/dist/nodes/Propstack/v1/resources/webhooks/getAll.js.map +1 -1
  138. package/dist/package.json +1 -1
  139. package/dist/tsconfig.tsbuildinfo +1 -1
  140. package/package.json +3 -3
  141. package/dist/nodes/Propstack/v1/resources/emails/getAll.d.ts +0 -4
  142. package/dist/nodes/Propstack/v1/resources/emails/getAll.js +0 -104
  143. package/dist/nodes/Propstack/v1/resources/emails/getAll.js.map +0 -1
  144. package/dist/nodes/Propstack/v1/resources/projects/delete.d.ts +0 -4
  145. package/dist/nodes/Propstack/v1/resources/projects/delete.js +0 -17
  146. package/dist/nodes/Propstack/v1/resources/projects/delete.js.map +0 -1
  147. package/dist/nodes/Propstack/v1/resources/teams/create.d.ts +0 -4
  148. package/dist/nodes/Propstack/v1/resources/teams/create.js +0 -133
  149. package/dist/nodes/Propstack/v1/resources/teams/create.js.map +0 -1
  150. package/dist/nodes/Propstack/v1/resources/teams/delete.d.ts +0 -4
  151. package/dist/nodes/Propstack/v1/resources/teams/delete.js +0 -17
  152. package/dist/nodes/Propstack/v1/resources/teams/delete.js.map +0 -1
  153. package/dist/nodes/Propstack/v1/resources/teams/get.d.ts +0 -4
  154. package/dist/nodes/Propstack/v1/resources/teams/get.js +0 -17
  155. package/dist/nodes/Propstack/v1/resources/teams/get.js.map +0 -1
  156. package/dist/nodes/Propstack/v1/resources/teams/update.d.ts +0 -4
  157. package/dist/nodes/Propstack/v1/resources/teams/update.js +0 -45
  158. package/dist/nodes/Propstack/v1/resources/teams/update.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-propstack",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Propstack CRM API community node for n8n — automate real estate CRM workflows.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/hansdoebel/n8n-nodes-propstack#readme",
@@ -32,7 +32,7 @@
32
32
  "node": ">=18.10"
33
33
  },
34
34
  "scripts": {
35
- "build": "n8n-node build",
35
+ "build": "n8n-node build",
36
36
  "build:watch": "tsc --watch",
37
37
  "dev": "n8n-node dev",
38
38
  "lint": "n8n-node lint",
@@ -47,7 +47,7 @@
47
47
  "dist"
48
48
  ],
49
49
  "publishConfig": {
50
- "access": "public"
50
+ "access": "public"
51
51
  },
52
52
  "n8n": {
53
53
  "n8nNodesApiVersion": 1,
@@ -1,4 +0,0 @@
1
- import type { IExecuteFunctions, INodeExecutionData, INodeProperties } from "n8n-workflow";
2
- export declare const emailsGetAllDescription: INodeProperties[];
3
- export declare function emailsGetAll(this: IExecuteFunctions): Promise<INodeExecutionData[]>;
4
- export default emailsGetAllDescription;
@@ -1,104 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.emailsGetAllDescription = void 0;
4
- exports.emailsGetAll = emailsGetAll;
5
- const constants_1 = require("../../constants");
6
- const helpers_1 = require("../../helpers");
7
- const showForEmailsGetAll = {
8
- operation: ["getAll"],
9
- resource: ["emails"],
10
- };
11
- exports.emailsGetAllDescription = [
12
- {
13
- displayName: "Return All",
14
- name: "returnAll",
15
- type: "boolean",
16
- default: false,
17
- displayOptions: {
18
- show: showForEmailsGetAll,
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
- ...showForEmailsGetAll,
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
- displayName: "Additional Fields",
41
- name: "additionalFields",
42
- type: "collection",
43
- placeholder: "Add Field",
44
- default: {},
45
- displayOptions: {
46
- show: showForEmailsGetAll,
47
- },
48
- options: [
49
- {
50
- displayName: "Page",
51
- name: "page",
52
- type: "number",
53
- default: 1,
54
- description: "Page number for pagination",
55
- typeOptions: {
56
- minValue: 1,
57
- },
58
- },
59
- ],
60
- },
61
- ];
62
- async function emailsGetAll() {
63
- const returnAll = this.getNodeParameter("returnAll", 0);
64
- const limit = this.getNodeParameter("limit", 0, 50);
65
- const options = this.getNodeParameter("additionalFields", 0);
66
- const page = (options === null || options === void 0 ? void 0 : options.page) || 1;
67
- if (returnAll) {
68
- let allResults = [];
69
- let currentPage = 1;
70
- let hasMore = true;
71
- while (hasMore) {
72
- const qs = {
73
- page: currentPage,
74
- per_page: 100,
75
- };
76
- const response = await helpers_1.propstackRequest.call(this, {
77
- method: "GET",
78
- url: constants_1.API_ENDPOINTS.EMAILS_GET_ALL,
79
- qs,
80
- });
81
- const results = Array.isArray(response) ? response : [response];
82
- allResults = allResults.concat(results);
83
- if (results.length < 100) {
84
- hasMore = false;
85
- }
86
- else {
87
- currentPage++;
88
- }
89
- }
90
- return this.helpers.returnJsonArray(allResults);
91
- }
92
- const qs = {
93
- page,
94
- per_page: limit,
95
- };
96
- const response = await helpers_1.propstackRequest.call(this, {
97
- method: "GET",
98
- url: constants_1.API_ENDPOINTS.EMAILS_GET_ALL,
99
- qs,
100
- });
101
- return this.helpers.returnJsonArray(Array.isArray(response) ? response : [response]);
102
- }
103
- exports.default = exports.emailsGetAllDescription;
104
- //# sourceMappingURL=getAll.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getAll.js","sourceRoot":"","sources":["../../../../../../nodes/Propstack/v1/resources/emails/getAll.ts"],"names":[],"mappings":";;;AAmEA,oCAwDC;AApHD,+CAAgD;AAChD,2CAAiD;AAEjD,MAAM,mBAAmB,GAAG;IAC1B,SAAS,EAAE,CAAC,QAAQ,CAAC;IACrB,QAAQ,EAAE,CAAC,QAAQ,CAAC;CACrB,CAAC;AAEW,QAAA,uBAAuB,GAAsB;IACxD;QACE,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,KAAK;QACd,cAAc,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ctions, INodeExecutionData, INodeProperties } from "n8n-workflow";
2
- export declare const projectsDeleteDescription: INodeProperties[];
3
- export declare function projectsDelete(this: IExecuteFunctions): Promise<INodeExecutionData[]>;
4
- export default projectsDeleteDescription;
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.projectsDeleteDescription = void 0;
4
- exports.projectsDelete = projectsDelete;
5
- const constants_1 = require("../../constants");
6
- const helpers_1 = require("../../helpers");
7
- exports.projectsDeleteDescription = [];
8
- async function projectsDelete() {
9
- const projectId = (0, helpers_1.extractResourceLocatorValue)(this.getNodeParameter("projectId", 0));
10
- await helpers_1.propstackRequest.call(this, {
11
- method: "DELETE",
12
- url: constants_1.API_ENDPOINTS.PROJECTS_DELETE(projectId),
13
- });
14
- return [{ json: { deleted: true }, pairedItem: { item: 0 } }];
15
- }
16
- exports.default = exports.projectsDeleteDescription;
17
- //# sourceMappingURL=delete.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"delete.js","sourceRoot":"","sources":["../../../../../../nodes/Propstack/v1/resources/projects/delete.ts"],"names":[],"mappings":";;;AAWA,wCAaC;AAlBD,+CAAgD;AAChD,2CAA8E;AAEjE,QAAA,yBAAyB,GAAsB,EAAE,CAAC;AAExD,KAAK,UAAU,cAAc;IAGlC,MAAM,SAAS,GAAG,IAAA,qCAA2B,EAC3C,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,CAAC,CAAC,CACtC,CAAC;IAEF,MAAM,0BAAgB,CAAC,IAAI,CAAC,IAAI,EAAE;QAChC,MAAM,EAAE,QAAQ;QAChB,GAAG,EAAE,yBAAa,CAAC,eAAe,CAAC,SAAS,CAAC;KAC9C,CAAC,CAAC;IAEH,OAAO,CAAC,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;AAChE,CAAC;AAED,kBAAe,iCAAyB,CAAC"}
@@ -1,4 +0,0 @@
1
- import type { IExecuteFunctions, INodeExecutionData, INodeProperties } from "n8n-workflow";
2
- export declare const teamsCreateDescription: INodeProperties[];
3
- export declare function teamsCreate(this: IExecuteFunctions): Promise<INodeExecutionData[]>;
4
- export default teamsCreateDescription;
@@ -1,133 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.teamsCreateDescription = void 0;
4
- exports.teamsCreate = teamsCreate;
5
- const constants_1 = require("../../constants");
6
- const helpers_1 = require("../../helpers");
7
- const showForTeamsCreate = {
8
- operation: ["create"],
9
- resource: ["teams"],
10
- };
11
- exports.teamsCreateDescription = [
12
- {
13
- displayName: "Name",
14
- name: "name",
15
- type: "string",
16
- required: true,
17
- default: "",
18
- displayOptions: {
19
- show: showForTeamsCreate,
20
- },
21
- description: "Department name",
22
- },
23
- {
24
- displayName: "Additional Fields",
25
- name: "additionalFields",
26
- type: "collection",
27
- placeholder: "Add Field",
28
- default: {},
29
- displayOptions: {
30
- show: showForTeamsCreate,
31
- },
32
- options: [
33
- {
34
- displayName: "Broker IDs",
35
- name: "broker_ids",
36
- type: "string",
37
- default: "",
38
- description: "Associated broker identifiers (comma-separated)",
39
- },
40
- {
41
- displayName: "Cancellation Policy Note",
42
- name: "cancellation_policy_note",
43
- type: "string",
44
- default: "",
45
- description: "Cancellation terms (HTML)",
46
- typeOptions: {
47
- rows: 4,
48
- },
49
- },
50
- {
51
- displayName: "Imprint Note",
52
- name: "imprint_note",
53
- type: "string",
54
- default: "",
55
- description: "Legal imprint (HTML)",
56
- typeOptions: {
57
- rows: 4,
58
- },
59
- },
60
- {
61
- displayName: "Logo URL",
62
- name: "logo_url",
63
- type: "string",
64
- default: "",
65
- description: "Logo image URL",
66
- },
67
- {
68
- displayName: "Position",
69
- name: "position",
70
- type: "number",
71
- default: 0,
72
- description: "Display order",
73
- },
74
- {
75
- displayName: "Privacy Note",
76
- name: "privacy_note",
77
- type: "string",
78
- default: "",
79
- description: "Privacy policy (HTML)",
80
- typeOptions: {
81
- rows: 4,
82
- },
83
- },
84
- {
85
- displayName: "Terms Note",
86
- name: "terms_note",
87
- type: "string",
88
- default: "",
89
- description: "Terms of service (HTML)",
90
- typeOptions: {
91
- rows: 4,
92
- },
93
- },
94
- ],
95
- },
96
- ];
97
- function buildTeamsCreateBody() {
98
- const body = {};
99
- body.name = this.getNodeParameter("name", 0);
100
- const options = this.getNodeParameter("additionalFields", 0);
101
- if (options) {
102
- const fields = [
103
- "position",
104
- "logo_url",
105
- "cancellation_policy_note",
106
- "imprint_note",
107
- "terms_note",
108
- "privacy_note",
109
- ];
110
- for (const field of fields) {
111
- if (options[field] !== undefined && options[field] !== "") {
112
- body[field] = options[field];
113
- }
114
- }
115
- if (options.broker_ids) {
116
- body.broker_ids = options.broker_ids
117
- .split(",")
118
- .map((id) => parseInt(id.trim(), 10));
119
- }
120
- }
121
- return body;
122
- }
123
- async function teamsCreate() {
124
- const body = buildTeamsCreateBody.call(this);
125
- const response = await helpers_1.propstackRequest.call(this, {
126
- method: "POST",
127
- url: constants_1.API_ENDPOINTS.TEAMS_CREATE,
128
- body,
129
- });
130
- return this.helpers.returnJsonArray(Array.isArray(response) ? response : [response]);
131
- }
132
- exports.default = exports.teamsCreateDescription;
133
- //# sourceMappingURL=create.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../../../nodes/Propstack/v1/resources/teams/create.ts"],"names":[],"mappings":";;;AA4IA,kCAcC;AAnJD,+CAAgD;AAChD,2CAAiD;AAEjD,MAAM,kBAAkB,GAAG;IACzB,SAAS,EAAE,CAAC,QAAQ,CAAC;IACrB,QAAQ,EAAE,CAAC,OAAO,CAAC;CACpB,CAAC;AAEW,QAAA,sBAAsB,GAAsB;IACvD;QACE,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,EAAE;Q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,QAAQ,GAAG,MAAM,0BAAgB,CAAC,IAAI,CAAC,IAAI,EAAE;QACjD,MAAM,EAAE,MAAM;QACd,GAAG,EAAE,yBAAa,CAAC,YAAY;QAC/B,IAAI;KACL,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;AAED,kBAAe,8BAAsB,CAAC"}
@@ -1,4 +0,0 @@
1
- import type { IExecuteFunctions, INodeExecutionData, INodeProperties } from "n8n-workflow";
2
- export declare const teamsDeleteDescription: INodeProperties[];
3
- export declare function teamsDelete(this: IExecuteFunctions): Promise<INodeExecutionData[]>;
4
- export default teamsDeleteDescription;
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.teamsDeleteDescription = void 0;
4
- exports.teamsDelete = teamsDelete;
5
- const constants_1 = require("../../constants");
6
- const helpers_1 = require("../../helpers");
7
- exports.teamsDeleteDescription = [];
8
- async function teamsDelete() {
9
- const teamId = (0, helpers_1.extractResourceLocatorValue)(this.getNodeParameter("teamId", 0));
10
- await helpers_1.propstackRequest.call(this, {
11
- method: "DELETE",
12
- url: constants_1.API_ENDPOINTS.TEAMS_DELETE(teamId),
13
- });
14
- return [{ json: { deleted: true }, pairedItem: { item: 0 } }];
15
- }
16
- exports.default = exports.teamsDeleteDescription;
17
- //# sourceMappingURL=delete.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"delete.js","sourceRoot":"","sources":["../../../../../../nodes/Propstack/v1/resources/teams/delete.ts"],"names":[],"mappings":";;;AAWA,kCAaC;AAlBD,+CAAgD;AAChD,2CAA8E;AAEjE,QAAA,sBAAsB,GAAsB,EAAE,CAAC;AAErD,KAAK,UAAU,WAAW;IAG/B,MAAM,MAAM,GAAG,IAAA,qCAA2B,EACxC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,CAAC,CAAC,CACnC,CAAC;IAEF,MAAM,0BAAgB,CAAC,IAAI,CAAC,IAAI,EAAE;QAChC,MAAM,EAAE,QAAQ;QAChB,GAAG,EAAE,yBAAa,CAAC,YAAY,CAAC,MAAM,CAAC;KACxC,CAAC,CAAC;IAEH,OAAO,CAAC,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;AAChE,CAAC;AAED,kBAAe,8BAAsB,CAAC"}
@@ -1,4 +0,0 @@
1
- import type { IExecuteFunctions, INodeExecutionData, INodeProperties } from "n8n-workflow";
2
- export declare const teamsGetDescription: INodeProperties[];
3
- export declare function teamsGet(this: IExecuteFunctions): Promise<INodeExecutionData[]>;
4
- export default teamsGetDescription;
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.teamsGetDescription = void 0;
4
- exports.teamsGet = teamsGet;
5
- const constants_1 = require("../../constants");
6
- const helpers_1 = require("../../helpers");
7
- exports.teamsGetDescription = [];
8
- async function teamsGet() {
9
- const teamId = (0, helpers_1.extractResourceLocatorValue)(this.getNodeParameter("teamId", 0));
10
- const response = await helpers_1.propstackRequest.call(this, {
11
- method: "GET",
12
- url: constants_1.API_ENDPOINTS.TEAMS_GET(teamId),
13
- });
14
- return this.helpers.returnJsonArray(Array.isArray(response) ? response : [response]);
15
- }
16
- exports.default = exports.teamsGetDescription;
17
- //# sourceMappingURL=get.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get.js","sourceRoot":"","sources":["../../../../../../nodes/Propstack/v1/resources/teams/get.ts"],"names":[],"mappings":";;;AAWA,4BAeC;AApBD,+CAAgD;AAChD,2CAA8E;AAEjE,QAAA,mBAAmB,GAAsB,EAAE,CAAC;AAElD,KAAK,UAAU,QAAQ;IAG5B,MAAM,MAAM,GAAG,IAAA,qCAA2B,EACxC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,CAAC,CAAC,CACnC,CAAC;IAEF,MAAM,QAAQ,GAAG,MAAM,0BAAgB,CAAC,IAAI,CAAC,IAAI,EAAE;QACjD,MAAM,EAAE,KAAK;QACb,GAAG,EAAE,yBAAa,CAAC,SAAS,CAAC,MAAM,CAAC;KACrC,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;AAED,kBAAe,2BAAmB,CAAC"}
@@ -1,4 +0,0 @@
1
- import type { IExecuteFunctions, INodeExecutionData, INodeProperties } from "n8n-workflow";
2
- export declare const teamsUpdateDescription: INodeProperties[];
3
- export declare function teamsUpdate(this: IExecuteFunctions): Promise<INodeExecutionData[]>;
4
- export default teamsUpdateDescription;
@@ -1,45 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.teamsUpdateDescription = void 0;
4
- exports.teamsUpdate = teamsUpdate;
5
- const constants_1 = require("../../constants");
6
- const helpers_1 = require("../../helpers");
7
- exports.teamsUpdateDescription = [];
8
- function buildTeamsUpdateBody() {
9
- const body = {};
10
- const options = this.getNodeParameter("additionalFields", 0);
11
- if (options) {
12
- const fields = [
13
- "name",
14
- "position",
15
- "logo_url",
16
- "cancellation_policy_note",
17
- "imprint_note",
18
- "terms_note",
19
- "privacy_note",
20
- ];
21
- for (const field of fields) {
22
- if (options[field] !== undefined && options[field] !== "") {
23
- body[field] = options[field];
24
- }
25
- }
26
- if (options.broker_ids) {
27
- body.broker_ids = options.broker_ids
28
- .split(",")
29
- .map((id) => parseInt(id.trim(), 10));
30
- }
31
- }
32
- return body;
33
- }
34
- async function teamsUpdate() {
35
- const teamId = (0, helpers_1.extractResourceLocatorValue)(this.getNodeParameter("teamId", 0));
36
- const body = buildTeamsUpdateBody.call(this);
37
- const response = await helpers_1.propstackRequest.call(this, {
38
- method: "PUT",
39
- url: constants_1.API_ENDPOINTS.TEAMS_UPDATE(teamId),
40
- body,
41
- });
42
- return this.helpers.returnJsonArray(Array.isArray(response) ? response : [response]);
43
- }
44
- exports.default = exports.teamsUpdateDescription;
45
- //# sourceMappingURL=update.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update.js","sourceRoot":"","sources":["../../../../../../nodes/Propstack/v1/resources/teams/update.ts"],"names":[],"mappings":";;;AAiDA,kCAiBC;AA3DD,+CAAgD;AAChD,2CAA8E;AAEjE,QAAA,sBAAsB,GAAsB,EAAE,CAAC;AAE5D,SAAS,oBAAoB;IAC3B,MAAM,IAAI,GAAgB,EAAE,CAAC;IAE7B,MAAM,OAAO,GAAG,IAAI,CAAC,gBAAgB,CACnC,kBAAkB,EAClB,CAAC,CACa,CAAC;IAEjB,IAAI,OAAO,EAAE,CAAC;QACZ,MAAM,MAAM,GAAG;YACb,MAAM;YACN,UAAU;YACV,UAAU;YACV,0BAA0B;YAC1B,cAAc;YACd,YAAY;YACZ,cAAc;SACf,CAAC;QAEF,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;YAC3B,IACE,OAAO,CAAC,KAAK,CAAC,KAAK,SAAS,IAAI,OAAO,CAAC,KAAK,CAAC,KAAK,EAAE,EACrD,CAAC;gBACD,IAAI,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;YAC/B,CAAC;QACH,CAAC;QAED,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;YACvB,IAAI,CAAC,UAAU,GAAI,OAAO,CAAC,UAAqB;iBAC7C,KAAK,CAAC,GAAG,CAAC;iBACV,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;QAC1C,CAAC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