@thegraphitelab/n8n-nodes-toolbox 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (183) hide show
  1. package/dist/core/handlers/execHandler.js +6 -7
  2. package/dist/core/handlers/execHandler.js.map +1 -1
  3. package/dist/core/handlers/pollHandler.js +6 -7
  4. package/dist/core/handlers/pollHandler.js.map +1 -1
  5. package/dist/core/handlers/utils.d.ts +6 -6
  6. package/dist/core/handlers/utils.js +11 -11
  7. package/dist/core/handlers/utils.js.map +1 -1
  8. package/dist/core/handlers/webhookHandler.d.ts +14 -0
  9. package/dist/core/handlers/webhookHandler.js +57 -0
  10. package/dist/core/handlers/webhookHandler.js.map +1 -0
  11. package/dist/core/parameters/utils.d.ts +14 -3
  12. package/dist/core/parameters/utils.js +63 -1
  13. package/dist/core/parameters/utils.js.map +1 -1
  14. package/dist/core/transport/index.d.ts +1 -12
  15. package/dist/core/transport/index.js +3 -42
  16. package/dist/core/transport/index.js.map +1 -1
  17. package/dist/core/transport/jerboa.d.ts +14 -0
  18. package/dist/core/transport/jerboa.js +89 -0
  19. package/dist/core/transport/jerboa.js.map +1 -0
  20. package/dist/core/transport/toolbox.d.ts +12 -0
  21. package/dist/core/transport/toolbox.js +18 -0
  22. package/dist/core/transport/toolbox.js.map +1 -0
  23. package/dist/core/transport/utils.d.ts +2 -0
  24. package/dist/core/transport/utils.js +31 -0
  25. package/dist/core/transport/utils.js.map +1 -0
  26. package/dist/core/utils/array.d.ts +1 -0
  27. package/dist/core/utils/array.js +9 -0
  28. package/dist/core/utils/array.js.map +1 -0
  29. package/dist/core/utils/file.d.ts +5 -0
  30. package/dist/core/utils/file.js +25 -0
  31. package/dist/core/utils/file.js.map +1 -0
  32. package/dist/core/utils/string.d.ts +2 -0
  33. package/dist/core/utils/string.js +10 -0
  34. package/dist/core/utils/string.js.map +1 -0
  35. package/dist/credentials/JerboaApi.credentials.d.ts +10 -0
  36. package/dist/credentials/JerboaApi.credentials.js +28 -0
  37. package/dist/credentials/JerboaApi.credentials.js.map +1 -0
  38. package/dist/nodes/CallIQ/v1/CallIqPollTriggerV1.node.js +0 -1
  39. package/dist/nodes/CallIQ/v1/CallIqPollTriggerV1.node.js.map +1 -1
  40. package/dist/nodes/CallIQ/v1/actions/call/get/description.js +1 -1
  41. package/dist/nodes/CallIQ/v1/actions/call/get/execution.js +2 -2
  42. package/dist/nodes/CallIQ/v1/actions/call/get/execution.js.map +1 -1
  43. package/dist/nodes/CallIQ/v1/triggers/poll/onCallCompletion/description.js +1 -1
  44. package/dist/nodes/CallIQ/v1/triggers/poll/onCallCompletion/polling.js +1 -1
  45. package/dist/nodes/CallIQ/v1/triggers/poll/onCallCompletion/polling.js.map +1 -1
  46. package/dist/nodes/PurchasingAssistant/PurchasingAssistant.node.d.ts +4 -0
  47. package/dist/nodes/PurchasingAssistant/PurchasingAssistant.node.js +24 -0
  48. package/dist/nodes/PurchasingAssistant/PurchasingAssistant.node.js.map +1 -0
  49. package/dist/nodes/PurchasingAssistant/PurchasingAssistant.node.json +18 -0
  50. package/dist/nodes/PurchasingAssistant/PurchasingAssistantWhTrigger.node.d.ts +4 -0
  51. package/dist/nodes/PurchasingAssistant/PurchasingAssistantWhTrigger.node.js +24 -0
  52. package/dist/nodes/PurchasingAssistant/PurchasingAssistantWhTrigger.node.js.map +1 -0
  53. package/dist/nodes/PurchasingAssistant/PurchasingAssistantWhTrigger.node.json +18 -0
  54. package/dist/nodes/PurchasingAssistant/eli.svg +106 -0
  55. package/dist/nodes/PurchasingAssistant/v1/PurchasingAssistantV1.node.d.ts +6 -0
  56. package/dist/nodes/PurchasingAssistant/v1/PurchasingAssistantV1.node.js +68 -0
  57. package/dist/nodes/PurchasingAssistant/v1/PurchasingAssistantV1.node.js.map +1 -0
  58. package/dist/nodes/PurchasingAssistant/v1/PurchasingAssistantWhTriggerV1.node.d.ts +13 -0
  59. package/dist/nodes/PurchasingAssistant/v1/PurchasingAssistantWhTriggerV1.node.js +66 -0
  60. package/dist/nodes/PurchasingAssistant/v1/PurchasingAssistantWhTriggerV1.node.js.map +1 -0
  61. package/dist/nodes/PurchasingAssistant/v1/actions/index.d.ts +20 -0
  62. package/dist/nodes/PurchasingAssistant/v1/actions/index.js +30 -0
  63. package/dist/nodes/PurchasingAssistant/v1/actions/index.js.map +1 -0
  64. package/dist/nodes/PurchasingAssistant/v1/actions/transaction/const.d.ts +2 -0
  65. package/dist/nodes/PurchasingAssistant/v1/actions/transaction/const.js +6 -0
  66. package/dist/nodes/PurchasingAssistant/v1/actions/transaction/const.js.map +1 -0
  67. package/dist/nodes/PurchasingAssistant/v1/actions/transaction/create/description.d.ts +29 -0
  68. package/dist/nodes/PurchasingAssistant/v1/actions/transaction/create/description.js +20 -0
  69. package/dist/nodes/PurchasingAssistant/v1/actions/transaction/create/description.js.map +1 -0
  70. package/dist/nodes/PurchasingAssistant/v1/actions/transaction/create/execution.d.ts +6 -0
  71. package/dist/nodes/PurchasingAssistant/v1/actions/transaction/create/execution.js +39 -0
  72. package/dist/nodes/PurchasingAssistant/v1/actions/transaction/create/execution.js.map +1 -0
  73. package/dist/nodes/PurchasingAssistant/v1/actions/transaction/get/description.d.ts +29 -0
  74. package/dist/nodes/PurchasingAssistant/v1/actions/transaction/get/description.js +19 -0
  75. package/dist/nodes/PurchasingAssistant/v1/actions/transaction/get/description.js.map +1 -0
  76. package/dist/nodes/PurchasingAssistant/v1/actions/transaction/get/execution.d.ts +6 -0
  77. package/dist/nodes/PurchasingAssistant/v1/actions/transaction/get/execution.js +16 -0
  78. package/dist/nodes/PurchasingAssistant/v1/actions/transaction/get/execution.js.map +1 -0
  79. package/dist/nodes/PurchasingAssistant/v1/actions/transaction/getMany/description.d.ts +29 -0
  80. package/dist/nodes/PurchasingAssistant/v1/actions/transaction/getMany/description.js +19 -0
  81. package/dist/nodes/PurchasingAssistant/v1/actions/transaction/getMany/description.js.map +1 -0
  82. package/dist/nodes/PurchasingAssistant/v1/actions/transaction/getMany/execution.d.ts +6 -0
  83. package/dist/nodes/PurchasingAssistant/v1/actions/transaction/getMany/execution.js +23 -0
  84. package/dist/nodes/PurchasingAssistant/v1/actions/transaction/getMany/execution.js.map +1 -0
  85. package/dist/nodes/PurchasingAssistant/v1/actions/transaction/index.d.ts +13 -0
  86. package/dist/nodes/PurchasingAssistant/v1/actions/transaction/index.js +51 -0
  87. package/dist/nodes/PurchasingAssistant/v1/actions/transaction/index.js.map +1 -0
  88. package/dist/nodes/PurchasingAssistant/v1/actions/transaction/update/description.d.ts +29 -0
  89. package/dist/nodes/PurchasingAssistant/v1/actions/transaction/update/description.js +23 -0
  90. package/dist/nodes/PurchasingAssistant/v1/actions/transaction/update/description.js.map +1 -0
  91. package/dist/nodes/PurchasingAssistant/v1/actions/transaction/update/execution.d.ts +6 -0
  92. package/dist/nodes/PurchasingAssistant/v1/actions/transaction/update/execution.js +35 -0
  93. package/dist/nodes/PurchasingAssistant/v1/actions/transaction/update/execution.js.map +1 -0
  94. package/dist/nodes/PurchasingAssistant/v1/actions/transaction/utils.d.ts +10 -0
  95. package/dist/nodes/PurchasingAssistant/v1/actions/transaction/utils.js +21 -0
  96. package/dist/nodes/PurchasingAssistant/v1/actions/transaction/utils.js.map +1 -0
  97. package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/const.d.ts +2 -0
  98. package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/const.js +6 -0
  99. package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/const.js.map +1 -0
  100. package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/create/description.d.ts +29 -0
  101. package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/create/description.js +23 -0
  102. package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/create/description.js.map +1 -0
  103. package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/create/execution.d.ts +6 -0
  104. package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/create/execution.js +24 -0
  105. package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/create/execution.js.map +1 -0
  106. package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/get/description.d.ts +29 -0
  107. package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/get/description.js +19 -0
  108. package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/get/description.js.map +1 -0
  109. package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/get/execution.d.ts +6 -0
  110. package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/get/execution.js +23 -0
  111. package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/get/execution.js.map +1 -0
  112. package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/getMany/description.d.ts +29 -0
  113. package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/getMany/description.js +27 -0
  114. package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/getMany/description.js.map +1 -0
  115. package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/getMany/execution.d.ts +6 -0
  116. package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/getMany/execution.js +23 -0
  117. package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/getMany/execution.js.map +1 -0
  118. package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/index.d.ts +13 -0
  119. package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/index.js +51 -0
  120. package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/index.js.map +1 -0
  121. package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/update/description.d.ts +29 -0
  122. package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/update/description.js +19 -0
  123. package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/update/description.js.map +1 -0
  124. package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/update/execution.d.ts +6 -0
  125. package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/update/execution.js +22 -0
  126. package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/update/execution.js.map +1 -0
  127. package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/utils.d.ts +1 -0
  128. package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/utils.js +7 -0
  129. package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/utils.js.map +1 -0
  130. package/dist/nodes/PurchasingAssistant/v1/parameters/index.d.ts +3 -0
  131. package/dist/nodes/PurchasingAssistant/v1/parameters/index.js +68 -0
  132. package/dist/nodes/PurchasingAssistant/v1/parameters/index.js.map +1 -0
  133. package/dist/nodes/PurchasingAssistant/v1/parameters/options.d.ts +22 -0
  134. package/dist/nodes/PurchasingAssistant/v1/parameters/options.js +34 -0
  135. package/dist/nodes/PurchasingAssistant/v1/parameters/options.js.map +1 -0
  136. package/dist/nodes/PurchasingAssistant/v1/parameters/types.d.ts +1 -0
  137. package/dist/nodes/PurchasingAssistant/v1/parameters/types.js +3 -0
  138. package/dist/nodes/PurchasingAssistant/v1/parameters/types.js.map +1 -0
  139. package/dist/nodes/PurchasingAssistant/v1/triggers/index.d.ts +8 -0
  140. package/dist/nodes/PurchasingAssistant/v1/triggers/index.js +26 -0
  141. package/dist/nodes/PurchasingAssistant/v1/triggers/index.js.map +1 -0
  142. package/dist/nodes/PurchasingAssistant/v1/triggers/webhook/index.d.ts +3 -0
  143. package/dist/nodes/PurchasingAssistant/v1/triggers/webhook/index.js +23 -0
  144. package/dist/nodes/PurchasingAssistant/v1/triggers/webhook/index.js.map +1 -0
  145. package/dist/nodes/PurchasingAssistant/v1/triggers/webhook/onTransactionCreation/description.d.ts +3 -0
  146. package/dist/nodes/PurchasingAssistant/v1/triggers/webhook/onTransactionCreation/description.js +15 -0
  147. package/dist/nodes/PurchasingAssistant/v1/triggers/webhook/onTransactionCreation/description.js.map +1 -0
  148. package/dist/nodes/PurchasingAssistant/v1/triggers/webhook/onTransactionCreation/webhookMethods.d.ts +1 -0
  149. package/dist/nodes/PurchasingAssistant/v1/triggers/webhook/onTransactionCreation/webhookMethods.js +10 -0
  150. package/dist/nodes/PurchasingAssistant/v1/triggers/webhook/onTransactionCreation/webhookMethods.js.map +1 -0
  151. package/dist/nodes/PurchasingAssistant/v1/triggers/webhook/onTransactionStatusChange/description.d.ts +3 -0
  152. package/dist/nodes/PurchasingAssistant/v1/triggers/webhook/onTransactionStatusChange/description.js +16 -0
  153. package/dist/nodes/PurchasingAssistant/v1/triggers/webhook/onTransactionStatusChange/description.js.map +1 -0
  154. package/dist/nodes/PurchasingAssistant/v1/triggers/webhook/onTransactionStatusChange/webhookMethods.d.ts +3 -0
  155. package/dist/nodes/PurchasingAssistant/v1/triggers/webhook/onTransactionStatusChange/webhookMethods.js +14 -0
  156. package/dist/nodes/PurchasingAssistant/v1/triggers/webhook/onTransactionStatusChange/webhookMethods.js.map +1 -0
  157. package/dist/nodes/Toolbox/eli.svg +51 -106
  158. package/dist/nodes/Toolbox/v1/transport/index.js +0 -2
  159. package/dist/nodes/Toolbox/v1/transport/index.js.map +1 -1
  160. package/dist/nodes/Webhooks/v1/WebhooksV1.node.js +0 -1
  161. package/dist/nodes/Webhooks/v1/WebhooksV1.node.js.map +1 -1
  162. package/dist/nodes/Webhooks/v1/actions/webhookInstance/create/description.js +2 -2
  163. package/dist/nodes/Webhooks/v1/actions/webhookInstance/create/description.js.map +1 -1
  164. package/dist/nodes/Webhooks/v1/actions/webhookInstance/create/execution.js +3 -3
  165. package/dist/nodes/Webhooks/v1/actions/webhookInstance/create/execution.js.map +1 -1
  166. package/dist/nodes/Webhooks/v1/actions/webhookInstance/deactivate/description.js +1 -1
  167. package/dist/nodes/Webhooks/v1/actions/webhookInstance/deactivate/execution.js +2 -2
  168. package/dist/nodes/Webhooks/v1/actions/webhookInstance/deactivate/execution.js.map +1 -1
  169. package/dist/nodes/Webhooks/v1/actions/webhookInstance/get/description.js +1 -1
  170. package/dist/nodes/Webhooks/v1/actions/webhookInstance/get/execution.js +3 -3
  171. package/dist/nodes/Webhooks/v1/actions/webhookInstance/get/execution.js.map +1 -1
  172. package/dist/nodes/Webhooks/v1/actions/webhookInstance/update/description.js +1 -1
  173. package/dist/nodes/Webhooks/v1/actions/webhookInstance/update/execution.js +3 -3
  174. package/dist/nodes/Webhooks/v1/actions/webhookInstance/update/execution.js.map +1 -1
  175. package/dist/nodes/Webhooks/v1/methods/loadOptions.js +1 -1
  176. package/dist/nodes/Webhooks/v1/methods/loadOptions.js.map +1 -1
  177. package/dist/nodes/Webhooks/v1/methods/resourceMapping.js +1 -1
  178. package/dist/nodes/Webhooks/v1/methods/resourceMapping.js.map +1 -1
  179. package/dist/nodes/Webhooks/v1/triggers/webhook/onWebhookEvent/description.js +1 -1
  180. package/dist/nodes/Webhooks/v1/triggers/webhook/onWebhookEvent/webhookMethods.js +2 -2
  181. package/dist/nodes/Webhooks/v1/triggers/webhook/onWebhookEvent/webhookMethods.js.map +1 -1
  182. package/dist/package.json +8 -2
  183. package/package.json +8 -2
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getParamTransactionID = getParamTransactionID;
4
+ exports.getParamStatusMultiOptional = getParamStatusMultiOptional;
5
+ const n8n_workflow_1 = require("n8n-workflow");
6
+ const options_1 = require("../../parameters/options");
7
+ function getParamTransactionID(index) {
8
+ const transactionID = this.getNodeParameter("transactionID", index, null);
9
+ if (!transactionID) {
10
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), "Please enter a value for Transaction ID");
11
+ }
12
+ return transactionID;
13
+ }
14
+ function getParamStatusMultiOptional(index) {
15
+ const status = this.getNodeParameter("transactionStatusMultiOptional", index, null);
16
+ if (status.length === 0) {
17
+ return options_1.transactionStatusOptions.map(({ value }) => value);
18
+ }
19
+ return status;
20
+ }
21
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../../nodes/PurchasingAssistant/v1/actions/transaction/utils.ts"],"names":[],"mappings":";;AAMA,sDASC;AACD,kEAcC;AA9BD,+CAAqE;AACrE,sDAGkC;AAElC,SAAgB,qBAAqB,CAA0B,KAAa;IACxE,MAAM,aAAa,GAAG,IAAI,CAAC,gBAAgB,CAAC,eAAe,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC;IAC1E,IAAI,CAAC,aAAa,EAAE,CAAC;QACjB,MAAM,IAAI,iCAAkB,CACxB,IAAI,CAAC,OAAO,EAAE,EACd,yCAAyC,CAC5C,CAAC;IACN,CAAC;IACD,OAAO,aAAa,CAAC;AACzB,CAAC;AACD,SAAgB,2BAA2B,CAEvC,KAAa;IAEb,MAAM,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAChC,gCAAgC,EAChC,KAAK,EACL,IAAI,CACqB,CAAC;IAE9B,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACtB,OAAO,kCAAwB,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC;IAC9D,CAAC;IACD,OAAO,MAAM,CAAC;AAClB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const RESOURCE_DISPLAY_NAME = "Transaction Note";
2
+ export declare const RESOURCE_VALUE = "transactionNote";
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RESOURCE_VALUE = exports.RESOURCE_DISPLAY_NAME = void 0;
4
+ exports.RESOURCE_DISPLAY_NAME = "Transaction Note";
5
+ exports.RESOURCE_VALUE = "transactionNote";
6
+ //# sourceMappingURL=const.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"const.js","sourceRoot":"","sources":["../../../../../../nodes/PurchasingAssistant/v1/actions/transactionNote/const.ts"],"names":[],"mappings":";;;AAAa,QAAA,qBAAqB,GAAG,kBAAkB,CAAC;AAC3C,QAAA,cAAc,GAAG,iBAAiB,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { INodePropertyOptions } from "n8n-workflow";
2
+ export declare const descriptionCreate: {
3
+ displayOptions: import("n8n-workflow").IDisplayOptions;
4
+ displayName: string;
5
+ name: string;
6
+ type: import("n8n-workflow").NodePropertyTypes;
7
+ typeOptions?: import("n8n-workflow").INodePropertyTypeOptions;
8
+ default: import("n8n-workflow").NodeParameterValueType;
9
+ description?: string;
10
+ hint?: string;
11
+ builderHint?: import("n8n-workflow").IParameterBuilderHint;
12
+ disabledOptions?: import("n8n-workflow").IDisplayOptions;
13
+ options?: Array<import("n8n-workflow/dist/esm/interfaces").INodePropertyOptions | import("n8n-workflow").INodeProperties | import("n8n-workflow").INodePropertyCollection>;
14
+ placeholder?: string;
15
+ isNodeSetting?: boolean;
16
+ noDataExpression?: boolean;
17
+ required?: boolean;
18
+ routing?: import("n8n-workflow").INodePropertyRouting;
19
+ credentialTypes?: Array<"extends:oAuth2Api" | "extends:oAuth1Api" | "has:authenticate" | "has:genericAuth">;
20
+ extractValue?: import("n8n-workflow").INodePropertyValueExtractor;
21
+ modes?: import("n8n-workflow").INodePropertyMode[];
22
+ requiresDataPath?: "single" | "multiple";
23
+ doNotInherit?: boolean;
24
+ validateType?: import("n8n-workflow").FieldType;
25
+ ignoreValidationDuringExecution?: boolean;
26
+ allowArbitraryValues?: boolean;
27
+ resolvableField?: boolean;
28
+ }[];
29
+ export declare const optionsCreate: INodePropertyOptions;
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.optionsCreate = exports.descriptionCreate = void 0;
4
+ const utils_1 = require("../../../../../../core/parameters/utils");
5
+ const parameters_1 = require("../../../parameters");
6
+ const const_1 = require("../const");
7
+ exports.descriptionCreate = (0, utils_1.getDescription)({
8
+ mainParameters: [
9
+ // TODO: document this standard or replace this standard
10
+ { ...parameters_1.params.transactionID, required: true },
11
+ parameters_1.params.transactionNoteContent,
12
+ ],
13
+ displayOptions: {
14
+ show: { resource: [const_1.RESOURCE_VALUE], operation: ["create"] },
15
+ },
16
+ });
17
+ exports.optionsCreate = {
18
+ name: "Create",
19
+ value: "create",
20
+ description: "Create a transaction note for Purchasing Assistant",
21
+ action: "Create a transaction note",
22
+ };
23
+ //# sourceMappingURL=description.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"description.js","sourceRoot":"","sources":["../../../../../../../nodes/PurchasingAssistant/v1/actions/transactionNote/create/description.ts"],"names":[],"mappings":";;;AACA,mEAAyE;AACzE,oDAA6C;AAC7C,oCAA0C;AAE7B,QAAA,iBAAiB,GAAG,IAAA,sBAAc,EAAC;IAC5C,cAAc,EAAE;QACZ,wDAAwD;QACxD,EAAE,GAAG,mBAAM,CAAC,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC3C,mBAAM,CAAC,sBAAsB;KAChC;IACD,cAAc,EAAE;QACZ,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,sBAAc,CAAC,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE;KAC9D;CACJ,CAAC,CAAC;AAEU,QAAA,aAAa,GAAyB;IAC/C,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,QAAQ;IACf,WAAW,EAAE,oDAAoD;IACjE,MAAM,EAAE,2BAA2B;CACtC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { IExecuteFunctions, NodeExecutionWithMetadata } from "n8n-workflow";
2
+ declare function createExec(this: IExecuteFunctions, index: number): Promise<NodeExecutionWithMetadata[]>;
3
+ export declare const operationCreate: {
4
+ create: typeof createExec;
5
+ };
6
+ export {};
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.operationCreate = void 0;
4
+ const utils_1 = require("../../../../../../core/handlers/utils");
5
+ const transport_1 = require("../../../../../../core/transport");
6
+ const string_1 = require("../../../../../../core/utils/string");
7
+ const utils_2 = require("../utils");
8
+ async function createExec(index) {
9
+ const id = this.getNodeParameter("transactionID", index);
10
+ (0, string_1.assertValidString)(this, id, "A note must be created on a transaction. Please enter a valid Transaction ID");
11
+ const content = this.getNodeParameter("transactionNoteContent", index);
12
+ (0, string_1.assertValidString)(this, id, "You are not allowed to create an empty note.");
13
+ const result = await (0, transport_1.toolboxApiRequest)(this, {
14
+ method: "POST",
15
+ endpoint: `notes`,
16
+ body: {
17
+ note: content,
18
+ pagePath: (0, utils_2.getPagePathFromTransactionID)(id),
19
+ },
20
+ });
21
+ return (0, utils_1.constructExecutionMetaData)(this, index, result);
22
+ }
23
+ exports.operationCreate = { create: createExec };
24
+ //# sourceMappingURL=execution.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execution.js","sourceRoot":"","sources":["../../../../../../../nodes/PurchasingAssistant/v1/actions/transactionNote/create/execution.ts"],"names":[],"mappings":";;;AACA,iEAAmF;AACnF,gEAAqE;AACrE,gEAAwE;AACxE,oCAAwD;AAExD,KAAK,UAAU,UAAU,CAErB,KAAa;IAEb,MAAM,EAAE,GAAG,IAAI,CAAC,gBAAgB,CAAC,eAAe,EAAE,KAAK,CAAW,CAAC;IACnE,IAAA,0BAAiB,EACb,IAAI,EACJ,EAAE,EACF,8EAA8E,CACjF,CAAC;IAEF,MAAM,OAAO,GAAG,IAAI,CAAC,gBAAgB,CACjC,wBAAwB,EACxB,KAAK,CACE,CAAC;IACZ,IAAA,0BAAiB,EAAC,IAAI,EAAE,EAAE,EAAE,8CAA8C,CAAC,CAAC;IAE5E,MAAM,MAAM,GAAG,MAAM,IAAA,6BAAiB,EAAC,IAAI,EAAE;QACzC,MAAM,EAAE,MAAM;QACd,QAAQ,EAAE,OAAO;QACjB,IAAI,EAAE;YACF,IAAI,EAAE,OAAO;YACb,QAAQ,EAAE,IAAA,oCAA4B,EAAC,EAAE,CAAC;SAC7C;KACJ,CAAC,CAAC;IAEH,OAAO,IAAA,kCAA0B,EAAC,IAAI,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;AAC3D,CAAC;AAEY,QAAA,eAAe,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { INodePropertyOptions } from "n8n-workflow";
2
+ export declare const descriptionGet: {
3
+ displayOptions: import("n8n-workflow").IDisplayOptions;
4
+ displayName: string;
5
+ name: string;
6
+ type: import("n8n-workflow").NodePropertyTypes;
7
+ typeOptions?: import("n8n-workflow").INodePropertyTypeOptions;
8
+ default: import("n8n-workflow").NodeParameterValueType;
9
+ description?: string;
10
+ hint?: string;
11
+ builderHint?: import("n8n-workflow").IParameterBuilderHint;
12
+ disabledOptions?: import("n8n-workflow").IDisplayOptions;
13
+ options?: Array<import("n8n-workflow/dist/esm/interfaces").INodePropertyOptions | import("n8n-workflow").INodeProperties | import("n8n-workflow").INodePropertyCollection>;
14
+ placeholder?: string;
15
+ isNodeSetting?: boolean;
16
+ noDataExpression?: boolean;
17
+ required?: boolean;
18
+ routing?: import("n8n-workflow").INodePropertyRouting;
19
+ credentialTypes?: Array<"extends:oAuth2Api" | "extends:oAuth1Api" | "has:authenticate" | "has:genericAuth">;
20
+ extractValue?: import("n8n-workflow").INodePropertyValueExtractor;
21
+ modes?: import("n8n-workflow").INodePropertyMode[];
22
+ requiresDataPath?: "single" | "multiple";
23
+ doNotInherit?: boolean;
24
+ validateType?: import("n8n-workflow").FieldType;
25
+ ignoreValidationDuringExecution?: boolean;
26
+ allowArbitraryValues?: boolean;
27
+ resolvableField?: boolean;
28
+ }[];
29
+ export declare const optionsGet: INodePropertyOptions;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.optionsGet = exports.descriptionGet = void 0;
4
+ const utils_1 = require("../../../../../../core/parameters/utils");
5
+ const parameters_1 = require("../../../parameters");
6
+ const const_1 = require("../const");
7
+ exports.descriptionGet = (0, utils_1.getDescription)({
8
+ mainParameters: [parameters_1.params.transactionNoteID],
9
+ displayOptions: {
10
+ show: { resource: [const_1.RESOURCE_VALUE], operation: ["get"] },
11
+ },
12
+ });
13
+ exports.optionsGet = {
14
+ name: "Get",
15
+ value: "get",
16
+ description: "Retrieve a transaction note from Purchasing Assistant",
17
+ action: "Get a transaction note",
18
+ };
19
+ //# sourceMappingURL=description.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"description.js","sourceRoot":"","sources":["../../../../../../../nodes/PurchasingAssistant/v1/actions/transactionNote/get/description.ts"],"names":[],"mappings":";;;AACA,mEAAyE;AACzE,oDAA6C;AAC7C,oCAA0C;AAE7B,QAAA,cAAc,GAAG,IAAA,sBAAc,EAAC;IACzC,cAAc,EAAE,CAAC,mBAAM,CAAC,iBAAiB,CAAC;IAC1C,cAAc,EAAE;QACZ,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,sBAAc,CAAC,EAAE,SAAS,EAAE,CAAC,KAAK,CAAC,EAAE;KAC3D;CACJ,CAAC,CAAC;AAEU,QAAA,UAAU,GAAyB;IAC5C,IAAI,EAAE,KAAK;IACX,KAAK,EAAE,KAAK;IACZ,WAAW,EAAE,uDAAuD;IACpE,MAAM,EAAE,wBAAwB;CACnC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { IExecuteFunctions, NodeExecutionWithMetadata } from "n8n-workflow";
2
+ declare function getExec(this: IExecuteFunctions, index: number): Promise<NodeExecutionWithMetadata[]>;
3
+ export declare const operationGet: {
4
+ get: typeof getExec;
5
+ };
6
+ export {};
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.operationGet = void 0;
4
+ const utils_1 = require("../../../../../../core/handlers/utils");
5
+ const transport_1 = require("../../../../../../core/transport");
6
+ function constructGetParams(index) {
7
+ const id = this.getNodeParameter("transactionNoteID", index);
8
+ const qs = {};
9
+ if (id && id !== "")
10
+ qs.id = id;
11
+ return qs;
12
+ }
13
+ async function getExec(index) {
14
+ const qs = constructGetParams.call(this, index);
15
+ const result = await (0, transport_1.toolboxApiRequest)(this, {
16
+ method: "GET",
17
+ endpoint: `notes`,
18
+ qs,
19
+ });
20
+ return (0, utils_1.constructExecutionMetaData)(this, index, result);
21
+ }
22
+ exports.operationGet = { get: getExec };
23
+ //# sourceMappingURL=execution.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execution.js","sourceRoot":"","sources":["../../../../../../../nodes/PurchasingAssistant/v1/actions/transactionNote/get/execution.ts"],"names":[],"mappings":";;;AACA,iEAAmF;AACnF,gEAAqE;AAErE,SAAS,kBAAkB,CAA0B,KAAa;IAC9D,MAAM,EAAE,GAAG,IAAI,CAAC,gBAAgB,CAAC,mBAAmB,EAAE,KAAK,CAAW,CAAC;IAEvE,MAAM,EAAE,GAA2B,EAAE,CAAC;IACtC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE;QAAE,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC;IAChC,OAAO,EAAE,CAAC;AACd,CAAC;AAED,KAAK,UAAU,OAAO,CAElB,KAAa;IAEb,MAAM,EAAE,GAAG,kBAAkB,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAEhD,MAAM,MAAM,GAAG,MAAM,IAAA,6BAAiB,EAAC,IAAI,EAAE;QACzC,MAAM,EAAE,KAAK;QACb,QAAQ,EAAE,OAAO;QACjB,EAAE;KACL,CAAC,CAAC;IAEH,OAAO,IAAA,kCAA0B,EAAC,IAAI,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;AAC3D,CAAC;AAEY,QAAA,YAAY,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { INodePropertyOptions } from "n8n-workflow";
2
+ export declare const descriptionGetMany: {
3
+ displayOptions: import("n8n-workflow").IDisplayOptions;
4
+ displayName: string;
5
+ name: string;
6
+ type: import("n8n-workflow").NodePropertyTypes;
7
+ typeOptions?: import("n8n-workflow").INodePropertyTypeOptions;
8
+ default: import("n8n-workflow").NodeParameterValueType;
9
+ description?: string;
10
+ hint?: string;
11
+ builderHint?: import("n8n-workflow").IParameterBuilderHint;
12
+ disabledOptions?: import("n8n-workflow").IDisplayOptions;
13
+ options?: Array<import("n8n-workflow/dist/esm/interfaces").INodePropertyOptions | import("n8n-workflow").INodeProperties | import("n8n-workflow").INodePropertyCollection>;
14
+ placeholder?: string;
15
+ isNodeSetting?: boolean;
16
+ noDataExpression?: boolean;
17
+ required?: boolean;
18
+ routing?: import("n8n-workflow").INodePropertyRouting;
19
+ credentialTypes?: Array<"extends:oAuth2Api" | "extends:oAuth1Api" | "has:authenticate" | "has:genericAuth">;
20
+ extractValue?: import("n8n-workflow").INodePropertyValueExtractor;
21
+ modes?: import("n8n-workflow").INodePropertyMode[];
22
+ requiresDataPath?: "single" | "multiple";
23
+ doNotInherit?: boolean;
24
+ validateType?: import("n8n-workflow").FieldType;
25
+ ignoreValidationDuringExecution?: boolean;
26
+ allowArbitraryValues?: boolean;
27
+ resolvableField?: boolean;
28
+ }[];
29
+ export declare const optionsGetMany: INodePropertyOptions;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.optionsGetMany = exports.descriptionGetMany = void 0;
4
+ const utils_1 = require("../../../../../../core/parameters/utils");
5
+ const parameters_1 = require("../../../parameters");
6
+ const const_1 = require("../const");
7
+ exports.descriptionGetMany = (0, utils_1.getDescription)({
8
+ mainParameters: [parameters_1.params.transactionID],
9
+ displayOptions: {
10
+ show: { resource: [const_1.RESOURCE_VALUE], operation: ["getMany"] },
11
+ },
12
+ hints: [
13
+ {
14
+ displayName: "Enter Transaction ID if you only want notes from a specific transaction",
15
+ name: "notice",
16
+ type: "notice",
17
+ default: "",
18
+ },
19
+ ],
20
+ });
21
+ exports.optionsGetMany = {
22
+ name: "Get Many",
23
+ value: "getMany",
24
+ description: "Retrieve transaction notes from Purchasing Assistant",
25
+ action: "Get many transaction notes",
26
+ };
27
+ //# sourceMappingURL=description.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"description.js","sourceRoot":"","sources":["../../../../../../../nodes/PurchasingAssistant/v1/actions/transactionNote/getMany/description.ts"],"names":[],"mappings":";;;AACA,mEAAyE;AACzE,oDAA6C;AAC7C,oCAA0C;AAE7B,QAAA,kBAAkB,GAAG,IAAA,sBAAc,EAAC;IAC7C,cAAc,EAAE,CAAC,mBAAM,CAAC,aAAa,CAAC;IACtC,cAAc,EAAE;QACZ,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,sBAAc,CAAC,EAAE,SAAS,EAAE,CAAC,SAAS,CAAC,EAAE;KAC/D;IACD,KAAK,EAAE;QACH;YACI,WAAW,EACP,yEAAyE;YAC7E,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,EAAE;SACd;KACJ;CACJ,CAAC,CAAC;AAEU,QAAA,cAAc,GAAyB;IAChD,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,SAAS;IAChB,WAAW,EAAE,sDAAsD;IACnE,MAAM,EAAE,4BAA4B;CACvC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { IExecuteFunctions, NodeExecutionWithMetadata } from "n8n-workflow";
2
+ declare function getExec(this: IExecuteFunctions, index: number): Promise<NodeExecutionWithMetadata[]>;
3
+ export declare const operationGetMany: {
4
+ getMany: typeof getExec;
5
+ };
6
+ export {};
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.operationGetMany = void 0;
4
+ const utils_1 = require("../../../../../../core/handlers/utils");
5
+ const transport_1 = require("../../../../../../core/transport");
6
+ const utils_2 = require("../utils");
7
+ function constructGetManyParams(index) {
8
+ const id = this.getNodeParameter("transactionID", index);
9
+ if (!id || id === "")
10
+ return {};
11
+ return { pagePath: (0, utils_2.getPagePathFromTransactionID)(id) };
12
+ }
13
+ async function getExec(index) {
14
+ const qs = constructGetManyParams.call(this, index);
15
+ const result = await (0, transport_1.toolboxApiRequest)(this, {
16
+ method: "GET",
17
+ endpoint: `notes`,
18
+ qs,
19
+ });
20
+ return (0, utils_1.constructExecutionMetaData)(this, index, result);
21
+ }
22
+ exports.operationGetMany = { getMany: getExec };
23
+ //# sourceMappingURL=execution.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execution.js","sourceRoot":"","sources":["../../../../../../../nodes/PurchasingAssistant/v1/actions/transactionNote/getMany/execution.ts"],"names":[],"mappings":";;;AACA,iEAAmF;AACnF,gEAAqE;AACrE,oCAAwD;AAExD,SAAS,sBAAsB,CAA0B,KAAa;IAClE,MAAM,EAAE,GAAG,IAAI,CAAC,gBAAgB,CAAC,eAAe,EAAE,KAAK,CAAW,CAAC;IACnE,IAAI,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE;QAAE,OAAO,EAAE,CAAC;IAChC,OAAO,EAAE,QAAQ,EAAE,IAAA,oCAA4B,EAAC,EAAE,CAAC,EAAE,CAAC;AAC1D,CAAC;AAED,KAAK,UAAU,OAAO,CAElB,KAAa;IAEb,MAAM,EAAE,GAAG,sBAAsB,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAEpD,MAAM,MAAM,GAAG,MAAM,IAAA,6BAAiB,EAAC,IAAI,EAAE;QACzC,MAAM,EAAE,KAAK;QACb,QAAQ,EAAE,OAAO;QACjB,EAAE;KACL,CAAC,CAAC;IAEH,OAAO,IAAA,kCAA0B,EAAC,IAAI,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;AAC3D,CAAC;AAEY,QAAA,gBAAgB,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { INodeProperties } from "n8n-workflow";
2
+ export declare const transactionNoteDescription: INodeProperties[];
3
+ export declare const transactionNoteOperations: {
4
+ transactionNote: {
5
+ create: (this: import("n8n-workflow").IExecuteFunctions, index: number) => Promise<import("n8n-workflow").NodeExecutionWithMetadata[]>;
6
+ getMany: (this: import("n8n-workflow").IExecuteFunctions, index: number) => Promise<import("n8n-workflow").NodeExecutionWithMetadata[]>;
7
+ get: (this: import("n8n-workflow").IExecuteFunctions, index: number) => Promise<import("n8n-workflow").NodeExecutionWithMetadata[]>;
8
+ };
9
+ };
10
+ export declare const transactionNoteOptions: {
11
+ name: string;
12
+ value: string;
13
+ };
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.transactionNoteOptions = exports.transactionNoteOperations = exports.transactionNoteDescription = void 0;
4
+ const const_1 = require("./const");
5
+ const execution_1 = require("./get/execution");
6
+ const execution_2 = require("./getMany/execution");
7
+ const execution_3 = require("./create/execution");
8
+ // (BROKEN) import { operationUpdate } from "./update/execution";
9
+ const description_1 = require("./get/description");
10
+ const description_2 = require("./getMany/description");
11
+ const description_3 = require("./create/description");
12
+ // (BROKEN) import { descriptionUpdate, optionsUpdate } from "./update/description";
13
+ const options = [
14
+ description_1.optionsGet,
15
+ description_2.optionsGetMany,
16
+ description_3.optionsCreate,
17
+ // (BROKEN) optionsUpdate,
18
+ ];
19
+ const operation = {
20
+ displayName: "Operation",
21
+ name: "operation",
22
+ type: "options",
23
+ noDataExpression: true,
24
+ displayOptions: {
25
+ show: {
26
+ resource: [const_1.RESOURCE_VALUE],
27
+ },
28
+ },
29
+ options,
30
+ default: "get",
31
+ };
32
+ exports.transactionNoteDescription = [
33
+ operation,
34
+ ...description_1.descriptionGet,
35
+ ...description_2.descriptionGetMany,
36
+ ...description_3.descriptionCreate,
37
+ // (BROKEN) ...descriptionUpdate,
38
+ ];
39
+ exports.transactionNoteOperations = {
40
+ transactionNote: {
41
+ ...execution_1.operationGet,
42
+ ...execution_2.operationGetMany,
43
+ ...execution_3.operationCreate,
44
+ // (BROKEN) ...operationUpdate,
45
+ },
46
+ };
47
+ exports.transactionNoteOptions = {
48
+ name: const_1.RESOURCE_DISPLAY_NAME,
49
+ value: const_1.RESOURCE_VALUE,
50
+ };
51
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../nodes/PurchasingAssistant/v1/actions/transactionNote/index.ts"],"names":[],"mappings":";;;AACA,mCAAgE;AAEhE,+CAA+C;AAC/C,mDAAuD;AACvD,kDAAqD;AACrD,iEAAiE;AAEjE,mDAA+D;AAC/D,uDAA2E;AAC3E,sDAAwE;AACxE,oFAAoF;AAEpF,MAAM,OAAO,GAAG;IACZ,wBAAU;IACV,4BAAc;IACd,2BAAa;IACb,0BAA0B;CAC7B,CAAC;AAEF,MAAM,SAAS,GAAoB;IAC/B,WAAW,EAAE,WAAW;IACxB,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,SAAS;IACf,gBAAgB,EAAE,IAAI;IACtB,cAAc,EAAE;QACZ,IAAI,EAAE;YACF,QAAQ,EAAE,CAAC,sBAAc,CAAC;SAC7B;KACJ;IACD,OAAO;IACP,OAAO,EAAE,KAAK;CACjB,CAAC;AAEW,QAAA,0BAA0B,GAAG;IACtC,SAAS;IACT,GAAG,4BAAc;IACjB,GAAG,gCAAkB;IACrB,GAAG,+BAAiB;IACpB,iCAAiC;CACpC,CAAC;AAEW,QAAA,yBAAyB,GAAG;IACrC,eAAe,EAAE;QACb,GAAG,wBAAY;QACf,GAAG,4BAAgB;QACnB,GAAG,2BAAe;QAClB,+BAA+B;KAClC;CACJ,CAAC;AAEW,QAAA,sBAAsB,GAAG;IAClC,IAAI,EAAE,6BAAqB;IAC3B,KAAK,EAAE,sBAAc;CACxB,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { INodePropertyOptions } from "n8n-workflow";
2
+ export declare const descriptionUpdate: {
3
+ displayOptions: import("n8n-workflow").IDisplayOptions;
4
+ displayName: string;
5
+ name: string;
6
+ type: import("n8n-workflow").NodePropertyTypes;
7
+ typeOptions?: import("n8n-workflow").INodePropertyTypeOptions;
8
+ default: import("n8n-workflow").NodeParameterValueType;
9
+ description?: string;
10
+ hint?: string;
11
+ builderHint?: import("n8n-workflow").IParameterBuilderHint;
12
+ disabledOptions?: import("n8n-workflow").IDisplayOptions;
13
+ options?: Array<import("n8n-workflow/dist/esm/interfaces").INodePropertyOptions | import("n8n-workflow").INodeProperties | import("n8n-workflow").INodePropertyCollection>;
14
+ placeholder?: string;
15
+ isNodeSetting?: boolean;
16
+ noDataExpression?: boolean;
17
+ required?: boolean;
18
+ routing?: import("n8n-workflow").INodePropertyRouting;
19
+ credentialTypes?: Array<"extends:oAuth2Api" | "extends:oAuth1Api" | "has:authenticate" | "has:genericAuth">;
20
+ extractValue?: import("n8n-workflow").INodePropertyValueExtractor;
21
+ modes?: import("n8n-workflow").INodePropertyMode[];
22
+ requiresDataPath?: "single" | "multiple";
23
+ doNotInherit?: boolean;
24
+ validateType?: import("n8n-workflow").FieldType;
25
+ ignoreValidationDuringExecution?: boolean;
26
+ allowArbitraryValues?: boolean;
27
+ resolvableField?: boolean;
28
+ }[];
29
+ export declare const optionsUpdate: INodePropertyOptions;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.optionsUpdate = exports.descriptionUpdate = void 0;
4
+ const utils_1 = require("../../../../../../core/parameters/utils");
5
+ const parameters_1 = require("../../../parameters");
6
+ const const_1 = require("../const");
7
+ exports.descriptionUpdate = (0, utils_1.getDescription)({
8
+ mainParameters: [parameters_1.params.transactionNoteID, parameters_1.params.transactionNoteContent],
9
+ displayOptions: {
10
+ show: { resource: [const_1.RESOURCE_VALUE], operation: ["update"] },
11
+ },
12
+ });
13
+ exports.optionsUpdate = {
14
+ name: "(BROKEN) Update",
15
+ value: "update",
16
+ description: "Update a transaction note for Purchasing Assistant",
17
+ action: "Update a transaction note",
18
+ };
19
+ //# sourceMappingURL=description.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"description.js","sourceRoot":"","sources":["../../../../../../../nodes/PurchasingAssistant/v1/actions/transactionNote/update/description.ts"],"names":[],"mappings":";;;AACA,mEAAyE;AACzE,oDAA6C;AAC7C,oCAA0C;AAE7B,QAAA,iBAAiB,GAAG,IAAA,sBAAc,EAAC;IAC5C,cAAc,EAAE,CAAC,mBAAM,CAAC,iBAAiB,EAAE,mBAAM,CAAC,sBAAsB,CAAC;IACzE,cAAc,EAAE;QACZ,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,sBAAc,CAAC,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE;KAC9D;CACJ,CAAC,CAAC;AAEU,QAAA,aAAa,GAAyB;IAC/C,IAAI,EAAE,iBAAiB;IACvB,KAAK,EAAE,QAAQ;IACf,WAAW,EAAE,oDAAoD;IACjE,MAAM,EAAE,2BAA2B;CACtC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { IExecuteFunctions, NodeExecutionWithMetadata } from "n8n-workflow";
2
+ declare function updateExec(this: IExecuteFunctions, index: number): Promise<NodeExecutionWithMetadata[]>;
3
+ export declare const operationUpdate: {
4
+ update: typeof updateExec;
5
+ };
6
+ export {};
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.operationUpdate = void 0;
4
+ const utils_1 = require("../../../../../../core/handlers/utils");
5
+ const transport_1 = require("../../../../../../core/transport");
6
+ const string_1 = require("../../../../../../core/utils/string");
7
+ async function updateExec(index) {
8
+ const id = this.getNodeParameter("transactionNoteID", index);
9
+ (0, string_1.assertValidString)(this, id, "Please provide a Transaction Note ID to update.");
10
+ const content = this.getNodeParameter("transactionNoteContent", index);
11
+ (0, string_1.assertValidString)(this, id, "Please enter the new note content.");
12
+ const result = await (0, transport_1.toolboxApiRequest)(this, {
13
+ method: "PATCH",
14
+ endpoint: `notes/${id}`,
15
+ body: {
16
+ note: content,
17
+ },
18
+ });
19
+ return (0, utils_1.constructExecutionMetaData)(this, index, result);
20
+ }
21
+ exports.operationUpdate = { update: updateExec };
22
+ //# sourceMappingURL=execution.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execution.js","sourceRoot":"","sources":["../../../../../../../nodes/PurchasingAssistant/v1/actions/transactionNote/update/execution.ts"],"names":[],"mappings":";;;AACA,iEAAmF;AACnF,gEAAqE;AACrE,gEAAwE;AAExE,KAAK,UAAU,UAAU,CAErB,KAAa;IAEb,MAAM,EAAE,GAAG,IAAI,CAAC,gBAAgB,CAAC,mBAAmB,EAAE,KAAK,CAAW,CAAC;IACvE,IAAA,0BAAiB,EACb,IAAI,EACJ,EAAE,EACF,iDAAiD,CACpD,CAAC;IAEF,MAAM,OAAO,GAAG,IAAI,CAAC,gBAAgB,CACjC,wBAAwB,EACxB,KAAK,CACE,CAAC;IACZ,IAAA,0BAAiB,EAAC,IAAI,EAAE,EAAE,EAAE,oCAAoC,CAAC,CAAC;IAElE,MAAM,MAAM,GAAG,MAAM,IAAA,6BAAiB,EAAC,IAAI,EAAE;QACzC,MAAM,EAAE,OAAO;QACf,QAAQ,EAAE,SAAS,EAAE,EAAE;QACvB,IAAI,EAAE;YACF,IAAI,EAAE,OAAO;SAChB;KACJ,CAAC,CAAC;IAEH,OAAO,IAAA,kCAA0B,EAAC,IAAI,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;AAC3D,CAAC;AAEY,QAAA,eAAe,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC"}
@@ -0,0 +1 @@
1
+ export declare function getPagePathFromTransactionID(transactionID: string): string;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getPagePathFromTransactionID = getPagePathFromTransactionID;
4
+ function getPagePathFromTransactionID(transactionID) {
5
+ return `/tools/ai-bill-pay-assistant/${transactionID}`;
6
+ }
7
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../../nodes/PurchasingAssistant/v1/actions/transactionNote/utils.ts"],"names":[],"mappings":";;AAAA,oEAEC;AAFD,SAAgB,4BAA4B,CAAC,aAAqB;IAC9D,OAAO,gCAAgC,aAAa,EAAE,CAAC;AAC3D,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { INodeProperties } from "n8n-workflow";
2
+ import { ParamKeys } from "./types";
3
+ export declare const params: Record<ParamKeys, INodeProperties>;
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.params = void 0;
4
+ const options_1 = require("./options");
5
+ const base_1 = require("../../../../core/parameters/base");
6
+ // TODO: create helper that creates required vs not required versions of params
7
+ exports.params = {
8
+ createdOnOrAfter: base_1.baseParams.createdOnOrAfter({
9
+ description: "The earliest date of a transaction creation. The beginning of the time range.",
10
+ required: true,
11
+ }),
12
+ createdBefore: base_1.baseParams.createdBefore({
13
+ description: "The latest date of a transaction creation. The end of the time range.",
14
+ required: true,
15
+ }),
16
+ transactionID: {
17
+ displayName: "Transaction ID",
18
+ name: "transactionID",
19
+ type: "string",
20
+ default: "",
21
+ },
22
+ transactionGroupID: {
23
+ displayName: "Group ID",
24
+ name: "transactionGroupID",
25
+ type: "string",
26
+ default: "",
27
+ },
28
+ transactionFileKey: {
29
+ displayName: "Transaction File",
30
+ name: "transactionFileKey",
31
+ type: "string",
32
+ default: "data",
33
+ description: "Where file data is written to from inputs in previous steps",
34
+ },
35
+ transactionFileName: {
36
+ displayName: "Transaction File Name",
37
+ name: "transactionFileName",
38
+ type: "string",
39
+ default: `${Date.now()}-file`,
40
+ required: true,
41
+ },
42
+ transactionSource: {
43
+ displayName: "Transaction File Source",
44
+ name: "transactionSource",
45
+ type: "string",
46
+ default: "Workflow",
47
+ description: "Describes where the transaction came from",
48
+ },
49
+ transactionStatus: options_1.transactionStatus,
50
+ transactionStatusOptional: options_1.transactionStatusOptional,
51
+ transactionStatusMultiOptional: options_1.transactionStatusMultiOptional,
52
+ transactionType: options_1.transactionType,
53
+ transactionNoteID: {
54
+ displayName: "Transaction Note ID",
55
+ name: "transactionNoteID",
56
+ type: "string",
57
+ default: "",
58
+ required: true,
59
+ },
60
+ transactionNoteContent: {
61
+ displayName: "Transaction Note Content",
62
+ name: "transactionNoteContent",
63
+ type: "string",
64
+ default: "",
65
+ required: true,
66
+ },
67
+ };
68
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/PurchasingAssistant/v1/parameters/index.ts"],"names":[],"mappings":";;;AAGA,uCAKmB;AACnB,2DAA8D;AAE9D,+EAA+E;AAClE,QAAA,MAAM,GAAuC;IACtD,gBAAgB,EAAE,iBAAU,CAAC,gBAAgB,CAAC;QAC1C,WAAW,EACP,+EAA+E;QACnF,QAAQ,EAAE,IAAI;KACjB,CAAC;IACF,aAAa,EAAE,iBAAU,CAAC,aAAa,CAAC;QACpC,WAAW,EACP,uEAAuE;QAC3E,QAAQ,EAAE,IAAI;KACjB,CAAC;IACF,aAAa,EAAE;QACX,WAAW,EAAE,gBAAgB;QAC7B,IAAI,EAAE,eAAe;QACrB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;KACd;IACD,kBAAkB,EAAE;QAChB,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,oBAAoB;QAC1B,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;KACd;IACD,kBAAkB,EAAE;QAChB,WAAW,EAAE,kBAAkB;QAC/B,IAAI,EAAE,oBAAoB;QAC1B,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,MAAM;QACf,WAAW,EACP,6DAA6D;KACpE;IACD,mBAAmB,EAAE;QACjB,WAAW,EAAE,uBAAuB;QACpC,IAAI,EAAE,qBAAqB;QAC3B,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,GAAG,IAAI,CAAC,GAAG,EAAE,OAAO;QAC7B,QAAQ,EAAE,IAAI;KACjB;IACD,iBAAiB,EAAE;QACf,WAAW,EAAE,yBAAyB;QACtC,IAAI,EAAE,mBAAmB;QACzB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,UAAU;QACnB,WAAW,EAAE,2CAA2C;KAC3D;IAED,iBAAiB,EAAjB,2BAAiB;IACjB,yBAAyB,EAAzB,mCAAyB;IACzB,8BAA8B,EAA9B,wCAA8B;IAC9B,eAAe,EAAf,yBAAe;IACf,iBAAiB,EAAE;QACf,WAAW,EAAE,qBAAqB;QAClC,IAAI,EAAE,mBAAmB;QACzB,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;KACjB;IACD,sBAAsB,EAAE;QACpB,WAAW,EAAE,0BAA0B;QACvC,IAAI,EAAE,wBAAwB;QAC9B,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;KACjB;CACJ,CAAC"}
@@ -0,0 +1,22 @@
1
+ export declare const transactionTypesOptions: {
2
+ name: string;
3
+ value: string;
4
+ }[];
5
+ declare const transactionStatuses: {
6
+ readonly Confirmed: "CONFIRMED";
7
+ readonly Unconfirmed: "UNCONFIRMED";
8
+ readonly Paid: "PAID";
9
+ readonly Issue: "ISSUE";
10
+ readonly Completed: "COMPLETED";
11
+ readonly Archived: "ARCHIVED";
12
+ };
13
+ export declare const transactionStatusOptions: {
14
+ name: string;
15
+ value: "COMPLETED" | "CONFIRMED" | "UNCONFIRMED" | "PAID" | "ISSUE" | "ARCHIVED";
16
+ }[];
17
+ type TransactionStatusMap = typeof transactionStatuses;
18
+ export type TransactionStatusName = keyof TransactionStatusMap;
19
+ export type TransactionStatusValue = TransactionStatusMap[TransactionStatusName];
20
+ declare const transactionStatus: import("n8n-workflow").INodeProperties, transactionStatusOptional: import("n8n-workflow").INodeProperties, transactionStatusMultiOptional: import("n8n-workflow").INodeProperties;
21
+ declare const transactionType: import("n8n-workflow").INodeProperties;
22
+ export { transactionStatus, transactionStatusOptional, transactionStatusMultiOptional, transactionType, };