@thegraphitelab/n8n-nodes-toolbox 1.0.1 → 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.
- package/dist/core/handlers/utils.d.ts +1 -1
- package/dist/core/handlers/utils.js.map +1 -1
- package/dist/core/handlers/webhookHandler.d.ts +14 -0
- package/dist/core/handlers/webhookHandler.js +57 -0
- package/dist/core/handlers/webhookHandler.js.map +1 -0
- package/dist/core/parameters/utils.d.ts +14 -3
- package/dist/core/parameters/utils.js +63 -1
- package/dist/core/parameters/utils.js.map +1 -1
- package/dist/core/transport/index.d.ts +1 -12
- package/dist/core/transport/index.js +3 -40
- package/dist/core/transport/index.js.map +1 -1
- package/dist/core/transport/jerboa.d.ts +14 -0
- package/dist/core/transport/jerboa.js +89 -0
- package/dist/core/transport/jerboa.js.map +1 -0
- package/dist/core/transport/toolbox.d.ts +12 -0
- package/dist/core/transport/toolbox.js +18 -0
- package/dist/core/transport/toolbox.js.map +1 -0
- package/dist/core/transport/utils.d.ts +2 -0
- package/dist/core/transport/utils.js +31 -0
- package/dist/core/transport/utils.js.map +1 -0
- package/dist/core/utils/array.d.ts +1 -0
- package/dist/core/utils/array.js +9 -0
- package/dist/core/utils/array.js.map +1 -0
- package/dist/core/utils/file.d.ts +5 -0
- package/dist/core/utils/file.js +25 -0
- package/dist/core/utils/file.js.map +1 -0
- package/dist/core/utils/string.d.ts +2 -0
- package/dist/core/utils/string.js +10 -0
- package/dist/core/utils/string.js.map +1 -0
- package/dist/credentials/JerboaApi.credentials.d.ts +10 -0
- package/dist/credentials/JerboaApi.credentials.js +28 -0
- package/dist/credentials/JerboaApi.credentials.js.map +1 -0
- package/dist/nodes/CallIQ/v1/actions/call/get/description.js +1 -1
- package/dist/nodes/CallIQ/v1/triggers/poll/onCallCompletion/description.js +1 -1
- package/dist/nodes/PurchasingAssistant/PurchasingAssistant.node.d.ts +4 -0
- package/dist/nodes/PurchasingAssistant/PurchasingAssistant.node.js +24 -0
- package/dist/nodes/PurchasingAssistant/PurchasingAssistant.node.js.map +1 -0
- package/dist/nodes/PurchasingAssistant/PurchasingAssistant.node.json +18 -0
- package/dist/nodes/PurchasingAssistant/PurchasingAssistantWhTrigger.node.d.ts +4 -0
- package/dist/nodes/PurchasingAssistant/PurchasingAssistantWhTrigger.node.js +24 -0
- package/dist/nodes/PurchasingAssistant/PurchasingAssistantWhTrigger.node.js.map +1 -0
- package/dist/nodes/PurchasingAssistant/PurchasingAssistantWhTrigger.node.json +18 -0
- package/dist/nodes/PurchasingAssistant/eli.svg +106 -0
- package/dist/nodes/PurchasingAssistant/v1/PurchasingAssistantV1.node.d.ts +6 -0
- package/dist/nodes/PurchasingAssistant/v1/PurchasingAssistantV1.node.js +68 -0
- package/dist/nodes/PurchasingAssistant/v1/PurchasingAssistantV1.node.js.map +1 -0
- package/dist/nodes/PurchasingAssistant/v1/PurchasingAssistantWhTriggerV1.node.d.ts +13 -0
- package/dist/nodes/PurchasingAssistant/v1/PurchasingAssistantWhTriggerV1.node.js +66 -0
- package/dist/nodes/PurchasingAssistant/v1/PurchasingAssistantWhTriggerV1.node.js.map +1 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/index.d.ts +20 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/index.js +30 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/index.js.map +1 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transaction/const.d.ts +2 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transaction/const.js +6 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transaction/const.js.map +1 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transaction/create/description.d.ts +29 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transaction/create/description.js +20 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transaction/create/description.js.map +1 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transaction/create/execution.d.ts +6 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transaction/create/execution.js +39 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transaction/create/execution.js.map +1 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transaction/get/description.d.ts +29 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transaction/get/description.js +19 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transaction/get/description.js.map +1 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transaction/get/execution.d.ts +6 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transaction/get/execution.js +16 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transaction/get/execution.js.map +1 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transaction/getMany/description.d.ts +29 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transaction/getMany/description.js +19 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transaction/getMany/description.js.map +1 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transaction/getMany/execution.d.ts +6 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transaction/getMany/execution.js +23 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transaction/getMany/execution.js.map +1 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transaction/index.d.ts +13 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transaction/index.js +51 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transaction/index.js.map +1 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transaction/update/description.d.ts +29 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transaction/update/description.js +23 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transaction/update/description.js.map +1 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transaction/update/execution.d.ts +6 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transaction/update/execution.js +35 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transaction/update/execution.js.map +1 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transaction/utils.d.ts +10 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transaction/utils.js +21 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transaction/utils.js.map +1 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/const.d.ts +2 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/const.js +6 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/const.js.map +1 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/create/description.d.ts +29 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/create/description.js +23 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/create/description.js.map +1 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/create/execution.d.ts +6 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/create/execution.js +24 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/create/execution.js.map +1 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/get/description.d.ts +29 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/get/description.js +19 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/get/description.js.map +1 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/get/execution.d.ts +6 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/get/execution.js +23 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/get/execution.js.map +1 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/getMany/description.d.ts +29 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/getMany/description.js +27 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/getMany/description.js.map +1 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/getMany/execution.d.ts +6 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/getMany/execution.js +23 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/getMany/execution.js.map +1 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/index.d.ts +13 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/index.js +51 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/index.js.map +1 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/update/description.d.ts +29 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/update/description.js +19 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/update/description.js.map +1 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/update/execution.d.ts +6 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/update/execution.js +22 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/update/execution.js.map +1 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/utils.d.ts +1 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/utils.js +7 -0
- package/dist/nodes/PurchasingAssistant/v1/actions/transactionNote/utils.js.map +1 -0
- package/dist/nodes/PurchasingAssistant/v1/parameters/index.d.ts +3 -0
- package/dist/nodes/PurchasingAssistant/v1/parameters/index.js +68 -0
- package/dist/nodes/PurchasingAssistant/v1/parameters/index.js.map +1 -0
- package/dist/nodes/PurchasingAssistant/v1/parameters/options.d.ts +22 -0
- package/dist/nodes/PurchasingAssistant/v1/parameters/options.js +34 -0
- package/dist/nodes/PurchasingAssistant/v1/parameters/options.js.map +1 -0
- package/dist/nodes/PurchasingAssistant/v1/parameters/types.d.ts +1 -0
- package/dist/nodes/PurchasingAssistant/v1/parameters/types.js +3 -0
- package/dist/nodes/PurchasingAssistant/v1/parameters/types.js.map +1 -0
- package/dist/nodes/PurchasingAssistant/v1/triggers/index.d.ts +8 -0
- package/dist/nodes/PurchasingAssistant/v1/triggers/index.js +26 -0
- package/dist/nodes/PurchasingAssistant/v1/triggers/index.js.map +1 -0
- package/dist/nodes/PurchasingAssistant/v1/triggers/webhook/index.d.ts +3 -0
- package/dist/nodes/PurchasingAssistant/v1/triggers/webhook/index.js +23 -0
- package/dist/nodes/PurchasingAssistant/v1/triggers/webhook/index.js.map +1 -0
- package/dist/nodes/PurchasingAssistant/v1/triggers/webhook/onTransactionCreation/description.d.ts +3 -0
- package/dist/nodes/PurchasingAssistant/v1/triggers/webhook/onTransactionCreation/description.js +15 -0
- package/dist/nodes/PurchasingAssistant/v1/triggers/webhook/onTransactionCreation/description.js.map +1 -0
- package/dist/nodes/PurchasingAssistant/v1/triggers/webhook/onTransactionCreation/webhookMethods.d.ts +1 -0
- package/dist/nodes/PurchasingAssistant/v1/triggers/webhook/onTransactionCreation/webhookMethods.js +10 -0
- package/dist/nodes/PurchasingAssistant/v1/triggers/webhook/onTransactionCreation/webhookMethods.js.map +1 -0
- package/dist/nodes/PurchasingAssistant/v1/triggers/webhook/onTransactionStatusChange/description.d.ts +3 -0
- package/dist/nodes/PurchasingAssistant/v1/triggers/webhook/onTransactionStatusChange/description.js +16 -0
- package/dist/nodes/PurchasingAssistant/v1/triggers/webhook/onTransactionStatusChange/description.js.map +1 -0
- package/dist/nodes/PurchasingAssistant/v1/triggers/webhook/onTransactionStatusChange/webhookMethods.d.ts +3 -0
- package/dist/nodes/PurchasingAssistant/v1/triggers/webhook/onTransactionStatusChange/webhookMethods.js +14 -0
- package/dist/nodes/PurchasingAssistant/v1/triggers/webhook/onTransactionStatusChange/webhookMethods.js.map +1 -0
- package/dist/nodes/Toolbox/eli.svg +51 -106
- package/dist/nodes/Webhooks/v1/actions/webhookInstance/create/description.js +2 -2
- package/dist/nodes/Webhooks/v1/actions/webhookInstance/create/description.js.map +1 -1
- package/dist/nodes/Webhooks/v1/actions/webhookInstance/deactivate/description.js +1 -1
- package/dist/nodes/Webhooks/v1/actions/webhookInstance/get/description.js +1 -1
- package/dist/nodes/Webhooks/v1/actions/webhookInstance/update/description.js +1 -1
- package/dist/nodes/Webhooks/v1/triggers/webhook/onWebhookEvent/description.js +1 -1
- package/dist/package.json +8 -2
- package/package.json +8 -2
|
@@ -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,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, };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.transactionType = exports.transactionStatusMultiOptional = exports.transactionStatusOptional = exports.transactionStatus = exports.transactionStatusOptions = exports.transactionTypesOptions = void 0;
|
|
4
|
+
const utils_1 = require("../../../../core/parameters/utils");
|
|
5
|
+
const transactionTypes = {
|
|
6
|
+
bill: "Bill",
|
|
7
|
+
credit: "Credit",
|
|
8
|
+
delivery: "Delivery",
|
|
9
|
+
orderAck: "Order Acknowledgement",
|
|
10
|
+
purchaseOrder: "Purchase Order",
|
|
11
|
+
receipt: "Receipt",
|
|
12
|
+
statement: "Statement",
|
|
13
|
+
other: "Other",
|
|
14
|
+
};
|
|
15
|
+
exports.transactionTypesOptions = Object.entries(transactionTypes).map(([key, value]) => ({ name: key, value }));
|
|
16
|
+
const transactionStatuses = {
|
|
17
|
+
Confirmed: "CONFIRMED",
|
|
18
|
+
Unconfirmed: "UNCONFIRMED",
|
|
19
|
+
Paid: "PAID",
|
|
20
|
+
Issue: "ISSUE",
|
|
21
|
+
Completed: "COMPLETED",
|
|
22
|
+
Archived: "ARCHIVED",
|
|
23
|
+
};
|
|
24
|
+
exports.transactionStatusOptions = Object.entries(transactionStatuses).map(([key, value]) => ({ name: key, value }));
|
|
25
|
+
const { options: transactionStatus, // for TRIGGER
|
|
26
|
+
optionalOptions: transactionStatusOptional, // for UPDATE
|
|
27
|
+
multiOptionalOptions: transactionStatusMultiOptional, // for GET MANY
|
|
28
|
+
} = (0, utils_1.deriveAllOptionTypes)("Transaction Status", "transactionStatus", exports.transactionStatusOptions);
|
|
29
|
+
exports.transactionStatus = transactionStatus;
|
|
30
|
+
exports.transactionStatusOptional = transactionStatusOptional;
|
|
31
|
+
exports.transactionStatusMultiOptional = transactionStatusMultiOptional;
|
|
32
|
+
const { options: transactionType } = (0, utils_1.deriveAllOptionTypes)("Transaction Type", "transactionType", exports.transactionTypesOptions, "Invoice");
|
|
33
|
+
exports.transactionType = transactionType;
|
|
34
|
+
//# sourceMappingURL=options.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../../nodes/PurchasingAssistant/v1/parameters/options.ts"],"names":[],"mappings":";;;AAAA,6DAAyE;AAEzE,MAAM,gBAAgB,GAAG;IACrB,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,uBAAuB;IACjC,aAAa,EAAE,gBAAgB;IAC/B,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,WAAW;IACtB,KAAK,EAAE,OAAO;CACjB,CAAC;AACW,QAAA,uBAAuB,GAAG,MAAM,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,GAAG,CACvE,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,CAC3C,CAAC;AAEF,MAAM,mBAAmB,GAAG;IACxB,SAAS,EAAE,WAAW;IACtB,WAAW,EAAE,aAAa;IAC1B,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,SAAS,EAAE,WAAW;IACtB,QAAQ,EAAE,UAAU;CACd,CAAC;AACE,QAAA,wBAAwB,GAAG,MAAM,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC,GAAG,CAC3E,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,CAC3C,CAAC;AAOF,MAAM,EACF,OAAO,EAAE,iBAAiB,EAAE,cAAc;AAC1C,eAAe,EAAE,yBAAyB,EAAE,aAAa;AACzD,oBAAoB,EAAE,8BAA8B,EAAE,eAAe;EACxE,GAAG,IAAA,4BAAoB,EACpB,oBAAoB,EACpB,mBAAmB,EACnB,gCAAwB,CAC3B,CAAC;AAUE,8CAAiB;AACjB,8DAAyB;AACzB,wEAA8B;AAVlC,MAAM,EAAE,OAAO,EAAE,eAAe,EAAE,GAAG,IAAA,4BAAoB,EACrD,kBAAkB,EAClB,iBAAiB,EACjB,+BAAuB,EACvB,SAAS,CACZ,CAAC;AAME,0CAAe"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ParamKeys = "createdOnOrAfter" | "createdBefore" | "transactionID" | "transactionGroupID" | "transactionStatus" | "transactionStatusOptional" | "transactionStatusMultiOptional" | "transactionType" | "transactionFileKey" | "transactionFileName" | "transactionSource" | "transactionNoteID" | "transactionNoteContent";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../nodes/PurchasingAssistant/v1/parameters/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { properties } from "./webhook";
|
|
2
|
+
export declare const webhookMethods: {
|
|
3
|
+
default: {
|
|
4
|
+
checkExists(this: import("n8n-workflow").IHookFunctions): Promise<boolean>;
|
|
5
|
+
create(this: import("n8n-workflow").IHookFunctions): Promise<boolean>;
|
|
6
|
+
delete(this: import("n8n-workflow").IHookFunctions): Promise<boolean>;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.webhookMethods = exports.properties = void 0;
|
|
4
|
+
/* eslint-disable @n8n/community-nodes/no-restricted-imports */
|
|
5
|
+
const n8n_utils_1 = require("@thegraphitelab/n8n-utils");
|
|
6
|
+
var webhook_1 = require("./webhook");
|
|
7
|
+
Object.defineProperty(exports, "properties", { enumerable: true, get: function () { return webhook_1.properties; } });
|
|
8
|
+
// triggers/webhook/index.ts
|
|
9
|
+
exports.webhookMethods = (0, n8n_utils_1.webhookHandler)({
|
|
10
|
+
onTransactionCreation: {
|
|
11
|
+
webhookTypeName: "AIBPA:onTransactionCreation",
|
|
12
|
+
getFilterCriteria: (clientSettings) => {
|
|
13
|
+
return Object.fromEntries(clientSettings.map(({ clientID }) => [clientID, {}]));
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
onTransactionStatusChange: {
|
|
17
|
+
webhookTypeName: "AIBPA:onTransactionStatusChange",
|
|
18
|
+
getFilterCriteria: (clientSettings) => {
|
|
19
|
+
return Object.fromEntries(clientSettings.map(({ clientID, transactionStatus }) => [
|
|
20
|
+
clientID,
|
|
21
|
+
{ status: [transactionStatus] },
|
|
22
|
+
]));
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/PurchasingAssistant/v1/triggers/index.ts"],"names":[],"mappings":";;;AAAA,+DAA+D;AAC/D,yDAA2D;AAI3D,qCAAuC;AAA9B,qGAAA,UAAU,OAAA;AAEnB,4BAA4B;AACf,QAAA,cAAc,GAAG,IAAA,0BAAc,EAGzC;IACC,qBAAqB,EAAE;QACnB,eAAe,EAAE,6BAA6B;QAC9C,iBAAiB,EAAE,CAAC,cAAc,EAAE,EAAE;YAClC,OAAO,MAAM,CAAC,WAAW,CACrB,cAAc,CAAC,GAAG,CAAC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CACvD,CAAC;QACN,CAAC;KACJ;IACD,yBAAyB,EAAE;QACvB,eAAe,EAAE,iCAAiC;QAClD,iBAAiB,EAAE,CAAC,cAAc,EAAE,EAAE;YAClC,OAAO,MAAM,CAAC,WAAW,CACrB,cAAc,CAAC,GAAG,CAAC,CAAC,EAAE,QAAQ,EAAE,iBAAiB,EAAE,EAAE,EAAE,CAAC;gBACpD,QAAQ;gBACR,EAAE,MAAM,EAAE,CAAC,iBAAiB,CAAC,EAAE;aAClC,CAAC,CACL,CAAC;QACN,CAAC;KACJ;CACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.properties = void 0;
|
|
4
|
+
const description_1 = require("./onTransactionStatusChange/description");
|
|
5
|
+
const description_2 = require("./onTransactionCreation/description");
|
|
6
|
+
const properties = [
|
|
7
|
+
{
|
|
8
|
+
displayName: "Events",
|
|
9
|
+
name: "event",
|
|
10
|
+
type: "options",
|
|
11
|
+
noDataExpression: true,
|
|
12
|
+
//TODO: enforce this being a specific type
|
|
13
|
+
default: "onTransactionStatusChange",
|
|
14
|
+
options: [
|
|
15
|
+
description_1.onTransactionStatusChangeEventOptions,
|
|
16
|
+
description_2.onTransactionCreationEventOptions,
|
|
17
|
+
],
|
|
18
|
+
},
|
|
19
|
+
...description_1.onTransactionStatusChangeEventDesc,
|
|
20
|
+
...description_2.onTransactionCreationEventDesc,
|
|
21
|
+
];
|
|
22
|
+
exports.properties = properties;
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../nodes/PurchasingAssistant/v1/triggers/webhook/index.ts"],"names":[],"mappings":";;;AAEA,yEAGiD;AAEjD,qEAG6C;AAE7C,MAAM,UAAU,GAAsB;IAClC;QACI,WAAW,EAAE,QAAQ;QACrB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,0CAA0C;QAC1C,OAAO,EAAE,2BAA2B;QACpC,OAAO,EAAE;YACL,mDAAqC;YACrC,+CAAiC;SACpC;KACJ;IACD,GAAG,gDAAkC;IACrC,GAAG,4CAA8B;CACpC,CAAC;AAEO,gCAAU"}
|
package/dist/nodes/PurchasingAssistant/v1/triggers/webhook/onTransactionCreation/description.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.onTransactionCreationEventOptions = exports.onTransactionCreationEventDesc = void 0;
|
|
4
|
+
/* eslint-disable @n8n/community-nodes/no-restricted-imports */
|
|
5
|
+
const n8n_utils_1 = require("@thegraphitelab/n8n-utils");
|
|
6
|
+
exports.onTransactionCreationEventDesc = (0, n8n_utils_1.getWebhookDescription)({
|
|
7
|
+
mainParameters: [],
|
|
8
|
+
displayOptions: { show: { event: ["onTransactionCreation"] } },
|
|
9
|
+
});
|
|
10
|
+
exports.onTransactionCreationEventOptions = {
|
|
11
|
+
name: "On Transaction Creation",
|
|
12
|
+
value: "onTransactionCreation",
|
|
13
|
+
action: "Subscribe to new transactions",
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=description.js.map
|
package/dist/nodes/PurchasingAssistant/v1/triggers/webhook/onTransactionCreation/description.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"description.js","sourceRoot":"","sources":["../../../../../../../nodes/PurchasingAssistant/v1/triggers/webhook/onTransactionCreation/description.ts"],"names":[],"mappings":";;;AAAA,+DAA+D;AAC/D,yDAAkE;AAGrD,QAAA,8BAA8B,GAAG,IAAA,iCAAqB,EAAC;IAChE,cAAc,EAAE,EAAE;IAClB,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,CAAC,uBAAuB,CAAC,EAAE,EAAE;CACjE,CAAC,CAAC;AACU,QAAA,iCAAiC,GAAyB;IACnE,IAAI,EAAE,yBAAyB;IAC/B,KAAK,EAAE,uBAAuB;IAC9B,MAAM,EAAE,+BAA+B;CAC1C,CAAC"}
|
package/dist/nodes/PurchasingAssistant/v1/triggers/webhook/onTransactionCreation/webhookMethods.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type OnTransactionCreationFilterCriteria = Record<string, never>;
|
package/dist/nodes/PurchasingAssistant/v1/triggers/webhook/onTransactionCreation/webhookMethods.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
// export const webhookMethods = webhookHandler<OnTransactionCreation>({
|
|
4
|
+
// getFilterCriteria: (clientSettings) => {
|
|
5
|
+
// return Object.fromEntries(
|
|
6
|
+
// clientSettings.map(({ clientID }) => [clientID, { status: {} }]),
|
|
7
|
+
// );
|
|
8
|
+
// },
|
|
9
|
+
// });
|
|
10
|
+
//# sourceMappingURL=webhookMethods.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhookMethods.js","sourceRoot":"","sources":["../../../../../../../nodes/PurchasingAssistant/v1/triggers/webhook/onTransactionCreation/webhookMethods.ts"],"names":[],"mappings":";;AAEA,wEAAwE;AACxE,+CAA+C;AAC/C,qCAAqC;AACrC,gFAAgF;AAChF,aAAa;AACb,SAAS;AACT,MAAM"}
|
package/dist/nodes/PurchasingAssistant/v1/triggers/webhook/onTransactionStatusChange/description.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.onTransactionStatusChangeEventOptions = exports.onTransactionStatusChangeEventDesc = void 0;
|
|
4
|
+
/* eslint-disable @n8n/community-nodes/no-restricted-imports */
|
|
5
|
+
const n8n_utils_1 = require("@thegraphitelab/n8n-utils");
|
|
6
|
+
const parameters_1 = require("../../../parameters");
|
|
7
|
+
exports.onTransactionStatusChangeEventDesc = (0, n8n_utils_1.getWebhookDescription)({
|
|
8
|
+
mainParameters: [parameters_1.params.transactionStatus],
|
|
9
|
+
displayOptions: { show: { event: ["onTransactionStatusChange"] } },
|
|
10
|
+
});
|
|
11
|
+
exports.onTransactionStatusChangeEventOptions = {
|
|
12
|
+
name: "On Transaction Status Change",
|
|
13
|
+
value: "onTransactionStatusChange",
|
|
14
|
+
action: "Subscribe to changes in transaction status",
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=description.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"description.js","sourceRoot":"","sources":["../../../../../../../nodes/PurchasingAssistant/v1/triggers/webhook/onTransactionStatusChange/description.ts"],"names":[],"mappings":";;;AAAA,+DAA+D;AAC/D,yDAAkE;AAElE,oDAA6C;AAEhC,QAAA,kCAAkC,GAAG,IAAA,iCAAqB,EAAC;IACpE,cAAc,EAAE,CAAC,mBAAM,CAAC,iBAAiB,CAAC;IAC1C,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,CAAC,2BAA2B,CAAC,EAAE,EAAE;CACrE,CAAC,CAAC;AACU,QAAA,qCAAqC,GAAyB;IACvE,IAAI,EAAE,8BAA8B;IACpC,KAAK,EAAE,2BAA2B;IAClC,MAAM,EAAE,4CAA4C;CACvD,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// export const webhookMethods =
|
|
3
|
+
// webhookHandler<OnTransactionStatusChangeFilterCriteria>({
|
|
4
|
+
// getFilterCriteria: (clientSettings) => {
|
|
5
|
+
// return Object.fromEntries(
|
|
6
|
+
// clientSettings.map(({ clientID, transactionStatus }) => [
|
|
7
|
+
// clientID,
|
|
8
|
+
// { status: [transactionStatus] },
|
|
9
|
+
// ]),
|
|
10
|
+
// );
|
|
11
|
+
// },
|
|
12
|
+
// });
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
//# sourceMappingURL=webhookMethods.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhookMethods.js","sourceRoot":"","sources":["../../../../../../../nodes/PurchasingAssistant/v1/triggers/webhook/onTransactionStatusChange/webhookMethods.ts"],"names":[],"mappings":";AAAA,gCAAgC;AAChC,gEAAgE;AAChE,mDAAmD;AACnD,yCAAyC;AACzC,4EAA4E;AAC5E,gCAAgC;AAChC,uDAAuD;AACvD,sBAAsB;AACtB,iBAAiB;AACjB,aAAa;AACb,UAAU"}
|