@general-dexterity/n8n-nodes-qonto 0.1.0 → 0.2.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 (85) hide show
  1. package/README.md +144 -16
  2. package/dist/credentials/QontoApiKey.credentials.js.map +1 -1
  3. package/dist/credentials/QontoOAuth2Api.credentials.js +5 -4
  4. package/dist/credentials/QontoOAuth2Api.credentials.js.map +1 -1
  5. package/dist/nodes/Qonto/Qonto.node.d.ts +8 -1
  6. package/dist/nodes/Qonto/Qonto.node.js +53 -207
  7. package/dist/nodes/Qonto/Qonto.node.js.map +1 -1
  8. package/dist/nodes/Qonto/resources/Attachment.resource.d.ts +11 -0
  9. package/dist/nodes/Qonto/resources/Attachment.resource.js +61 -0
  10. package/dist/nodes/Qonto/resources/Attachment.resource.js.map +1 -0
  11. package/dist/nodes/Qonto/resources/Beneficiary.resource.d.ts +8 -0
  12. package/dist/nodes/Qonto/resources/Beneficiary.resource.js +50 -0
  13. package/dist/nodes/Qonto/resources/Beneficiary.resource.js.map +1 -0
  14. package/dist/nodes/Qonto/resources/BusinessAccount.resource.d.ts +6 -0
  15. package/dist/nodes/Qonto/resources/BusinessAccount.resource.js +26 -0
  16. package/dist/nodes/Qonto/resources/BusinessAccount.resource.js.map +1 -0
  17. package/dist/nodes/Qonto/resources/Card.resource.d.ts +6 -0
  18. package/dist/nodes/Qonto/resources/Card.resource.js +26 -0
  19. package/dist/nodes/Qonto/resources/Card.resource.js.map +1 -0
  20. package/dist/nodes/Qonto/resources/Client.resource.d.ts +8 -0
  21. package/dist/nodes/Qonto/resources/Client.resource.js +40 -0
  22. package/dist/nodes/Qonto/resources/Client.resource.js.map +1 -0
  23. package/dist/nodes/Qonto/resources/ClientInvoice.resource.d.ts +8 -0
  24. package/dist/nodes/Qonto/resources/ClientInvoice.resource.js +37 -0
  25. package/dist/nodes/Qonto/resources/ClientInvoice.resource.js.map +1 -0
  26. package/dist/nodes/Qonto/resources/CreditNote.resource.d.ts +8 -0
  27. package/dist/nodes/Qonto/resources/CreditNote.resource.js +35 -0
  28. package/dist/nodes/Qonto/resources/CreditNote.resource.js.map +1 -0
  29. package/dist/nodes/Qonto/resources/ExternalTransfer.resource.d.ts +8 -0
  30. package/dist/nodes/Qonto/resources/ExternalTransfer.resource.js +45 -0
  31. package/dist/nodes/Qonto/resources/ExternalTransfer.resource.js.map +1 -0
  32. package/dist/nodes/Qonto/resources/InsuranceContract.resource.d.ts +6 -0
  33. package/dist/nodes/Qonto/resources/InsuranceContract.resource.js +26 -0
  34. package/dist/nodes/Qonto/resources/InsuranceContract.resource.js.map +1 -0
  35. package/dist/nodes/Qonto/resources/InternalTransfer.resource.d.ts +6 -0
  36. package/dist/nodes/Qonto/resources/InternalTransfer.resource.js +26 -0
  37. package/dist/nodes/Qonto/resources/InternalTransfer.resource.js.map +1 -0
  38. package/dist/nodes/Qonto/resources/Label.resource.d.ts +6 -0
  39. package/dist/nodes/Qonto/resources/Label.resource.js +26 -0
  40. package/dist/nodes/Qonto/resources/Label.resource.js.map +1 -0
  41. package/dist/nodes/Qonto/resources/Membership.resource.d.ts +8 -0
  42. package/dist/nodes/Qonto/resources/Membership.resource.js +41 -0
  43. package/dist/nodes/Qonto/resources/Membership.resource.js.map +1 -0
  44. package/dist/nodes/Qonto/resources/Organization.resource.d.ts +8 -0
  45. package/dist/nodes/Qonto/resources/Organization.resource.js +31 -0
  46. package/dist/nodes/Qonto/resources/Organization.resource.js.map +1 -0
  47. package/dist/nodes/Qonto/resources/Quote.resource.d.ts +8 -0
  48. package/dist/nodes/Qonto/resources/Quote.resource.js +36 -0
  49. package/dist/nodes/Qonto/resources/Quote.resource.js.map +1 -0
  50. package/dist/nodes/Qonto/resources/Request.resource.d.ts +8 -0
  51. package/dist/nodes/Qonto/resources/Request.resource.js +45 -0
  52. package/dist/nodes/Qonto/resources/Request.resource.js.map +1 -0
  53. package/dist/nodes/Qonto/resources/SepaTransfer.resource.d.ts +9 -0
  54. package/dist/nodes/Qonto/resources/SepaTransfer.resource.js +53 -0
  55. package/dist/nodes/Qonto/resources/SepaTransfer.resource.js.map +1 -0
  56. package/dist/nodes/Qonto/resources/Statement.resource.d.ts +8 -0
  57. package/dist/nodes/Qonto/resources/Statement.resource.js +49 -0
  58. package/dist/nodes/Qonto/resources/Statement.resource.js.map +1 -0
  59. package/dist/nodes/Qonto/resources/SupplierInvoice.resource.d.ts +8 -0
  60. package/dist/nodes/Qonto/resources/SupplierInvoice.resource.js +36 -0
  61. package/dist/nodes/Qonto/resources/SupplierInvoice.resource.js.map +1 -0
  62. package/dist/nodes/Qonto/resources/Team.resource.d.ts +6 -0
  63. package/dist/nodes/Qonto/resources/Team.resource.js +26 -0
  64. package/dist/nodes/Qonto/resources/Team.resource.js.map +1 -0
  65. package/dist/nodes/Qonto/resources/Transaction.resource.d.ts +10 -0
  66. package/dist/nodes/Qonto/resources/Transaction.resource.js +117 -0
  67. package/dist/nodes/Qonto/resources/Transaction.resource.js.map +1 -0
  68. package/dist/nodes/Qonto/resources/index.d.ts +20 -0
  69. package/dist/nodes/Qonto/resources/index.js +44 -0
  70. package/dist/nodes/Qonto/resources/index.js.map +1 -0
  71. package/dist/nodes/Qonto/shared/base.d.ts +20 -0
  72. package/dist/nodes/Qonto/shared/base.js +147 -0
  73. package/dist/nodes/Qonto/shared/base.js.map +1 -0
  74. package/dist/nodes/Qonto/shared/constants.d.ts +35 -0
  75. package/dist/nodes/Qonto/shared/constants.js +504 -0
  76. package/dist/nodes/Qonto/shared/constants.js.map +1 -0
  77. package/dist/nodes/Qonto/shared/types.d.ts +91 -0
  78. package/dist/nodes/Qonto/shared/types.js +77 -0
  79. package/dist/nodes/Qonto/shared/types.js.map +1 -0
  80. package/dist/nodes/Qonto/shared/utils.d.ts +38 -0
  81. package/dist/nodes/Qonto/shared/utils.js +407 -0
  82. package/dist/nodes/Qonto/shared/utils.js.map +1 -0
  83. package/dist/package.json +15 -13
  84. package/dist/tsconfig.tsbuildinfo +1 -1
  85. package/package.json +3 -3
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrganizationResource = void 0;
4
+ const base_1 = require("../shared/base");
5
+ const constants_1 = require("../shared/constants");
6
+ const utils_1 = require("../shared/utils");
7
+ class OrganizationResource extends base_1.BaseResource {
8
+ constructor() {
9
+ super(constants_1.RESOURCE_CONFIGS.organization);
10
+ }
11
+ getProperties() {
12
+ const operations = this.config.operations.map((op) => ({
13
+ name: op.name,
14
+ value: op.value,
15
+ description: op.description,
16
+ action: op.action,
17
+ }));
18
+ return [(0, utils_1.createOperationProperty)(this.config.value, operations, 'get')];
19
+ }
20
+ isGetManyOperation(operation) {
21
+ return false;
22
+ }
23
+ async execute(executeFunctions, i) {
24
+ const { endpoint, dataKey } = this.getEndpoint('get');
25
+ const response = await this.executeRequest(executeFunctions, i, endpoint);
26
+ const data = response[dataKey];
27
+ return [{ json: data }];
28
+ }
29
+ }
30
+ exports.OrganizationResource = OrganizationResource;
31
+ //# sourceMappingURL=Organization.resource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Organization.resource.js","sourceRoot":"","sources":["../../../../nodes/Qonto/resources/Organization.resource.ts"],"names":[],"mappings":";;;AACA,yCAA8C;AAC9C,mDAAuD;AACvD,2CAA0D;AAE1D,MAAa,oBAAqB,SAAQ,mBAAY;IACpD;QACE,KAAK,CAAC,4BAAgB,CAAC,YAAY,CAAC,CAAC;IACvC,CAAC;IAED,aAAa;QACX,MAAM,UAAU,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;YACrD,IAAI,EAAE,EAAE,CAAC,IAAI;YACb,KAAK,EAAE,EAAE,CAAC,KAAK;YACf,WAAW,EAAE,EAAE,CAAC,WAAW;YAC3B,MAAM,EAAE,EAAE,CAAC,MAAM;SAClB,CAAC,CAAC,CAAC;QAEJ,OAAO,CAAC,IAAA,+BAAuB,EAAC,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,CAAC,CAAC,CAAC;IACzE,CAAC;IAES,kBAAkB,CAAC,SAAiB;QAC5C,OAAO,KAAK,CAAC;IACf,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,gBAAqB,EAAE,CAAS;QAC5C,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QAEtD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,gBAAgB,EAAE,CAAC,EAAE,QAAQ,CAAC,CAAC;QAC1E,MAAM,IAAI,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC;QAE/B,OAAO,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;IAC1B,CAAC;CACF;AA5BD,oDA4BC"}
@@ -0,0 +1,8 @@
1
+ import { INodeProperties } from 'n8n-workflow';
2
+ import { BaseResource } from '../shared/base';
3
+ import { QontoFilters } from '../shared/types';
4
+ export declare class QuoteResource extends BaseResource {
5
+ constructor();
6
+ getProperties(): INodeProperties[];
7
+ protected processFilters(filters: QontoFilters): Record<string, any>;
8
+ }
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.QuoteResource = void 0;
4
+ const base_1 = require("../shared/base");
5
+ const constants_1 = require("../shared/constants");
6
+ const utils_1 = require("../shared/utils");
7
+ class QuoteResource extends base_1.BaseResource {
8
+ constructor() {
9
+ super(constants_1.RESOURCE_CONFIGS.quote);
10
+ }
11
+ getProperties() {
12
+ const operations = this.config.operations.map((op) => ({
13
+ name: op.name,
14
+ value: op.value,
15
+ description: op.description,
16
+ action: op.action,
17
+ }));
18
+ return [
19
+ (0, utils_1.createOperationProperty)(this.config.value, operations),
20
+ (0, utils_1.createIdProperty)(this.config.value, ['getOne']),
21
+ (0, utils_1.createReturnAllProperty)([this.config.value]),
22
+ (0, utils_1.createLimitProperty)([this.config.value]),
23
+ (0, utils_1.createPageProperty)([this.config.value]),
24
+ (0, utils_1.createFiltersProperty)(this.config.value, [
25
+ (0, utils_1.createStatusFilter)('quote'),
26
+ (0, utils_1.createDateFilter)('Created From', 'createdFrom', 'Minimum creation date'),
27
+ (0, utils_1.createDateFilter)('Created To', 'createdTo', 'Maximum creation date'),
28
+ ]),
29
+ ];
30
+ }
31
+ processFilters(filters) {
32
+ return (0, utils_1.processQuoteFilters)(filters);
33
+ }
34
+ }
35
+ exports.QuoteResource = QuoteResource;
36
+ //# sourceMappingURL=Quote.resource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Quote.resource.js","sourceRoot":"","sources":["../../../../nodes/Qonto/resources/Quote.resource.ts"],"names":[],"mappings":";;;AACA,yCAA8C;AAC9C,mDAAuD;AAEvD,2CAUyB;AAEzB,MAAa,aAAc,SAAQ,mBAAY;IAC7C;QACE,KAAK,CAAC,4BAAgB,CAAC,KAAK,CAAC,CAAC;IAChC,CAAC;IAED,aAAa;QACX,MAAM,UAAU,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;YACrD,IAAI,EAAE,EAAE,CAAC,IAAI;YACb,KAAK,EAAE,EAAE,CAAC,KAAK;YACf,WAAW,EAAE,EAAE,CAAC,WAAW;YAC3B,MAAM,EAAE,EAAE,CAAC,MAAM;SAClB,CAAC,CAAC,CAAC;QAEJ,OAAO;YACL,IAAA,+BAAuB,EAAC,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,UAAU,CAAC;YACtD,IAAA,wBAAgB,EAAC,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,QAAQ,CAAC,CAAC;YAC/C,IAAA,+BAAuB,EAAC,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YAC5C,IAAA,2BAAmB,EAAC,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACxC,IAAA,0BAAkB,EAAC,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACvC,IAAA,6BAAqB,EAAC,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE;gBACvC,IAAA,0BAAkB,EAAC,OAAO,CAAC;gBAC3B,IAAA,wBAAgB,EAAC,cAAc,EAAE,aAAa,EAAE,uBAAuB,CAAC;gBACxE,IAAA,wBAAgB,EAAC,YAAY,EAAE,WAAW,EAAE,uBAAuB,CAAC;aACrE,CAAC;SACH,CAAC;IACJ,CAAC;IAES,cAAc,CAAC,OAAqB;QAC5C,OAAO,IAAA,2BAAmB,EAAC,OAAO,CAAC,CAAC;IACtC,CAAC;CACF;AA9BD,sCA8BC"}
@@ -0,0 +1,8 @@
1
+ import { INodeProperties } from 'n8n-workflow';
2
+ import { BaseResource } from '../shared/base';
3
+ import { QontoFilters } from '../shared/types';
4
+ export declare class RequestResource extends BaseResource {
5
+ constructor();
6
+ getProperties(): INodeProperties[];
7
+ protected processFilters(filters: QontoFilters): Record<string, any>;
8
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RequestResource = void 0;
4
+ const base_1 = require("../shared/base");
5
+ const constants_1 = require("../shared/constants");
6
+ const types_1 = require("../shared/types");
7
+ const utils_1 = require("../shared/utils");
8
+ class RequestResource extends base_1.BaseResource {
9
+ constructor() {
10
+ super(constants_1.RESOURCE_CONFIGS.request);
11
+ }
12
+ getProperties() {
13
+ const operations = this.config.operations.map((op) => ({
14
+ name: op.name,
15
+ value: op.value,
16
+ description: op.description,
17
+ action: op.action,
18
+ }));
19
+ return [
20
+ (0, utils_1.createOperationProperty)(this.config.value, operations),
21
+ (0, utils_1.createIdProperty)(this.config.value, ['getOne']),
22
+ (0, utils_1.createReturnAllProperty)([this.config.value]),
23
+ (0, utils_1.createLimitProperty)([this.config.value]),
24
+ (0, utils_1.createPageProperty)([this.config.value]),
25
+ (0, utils_1.createFiltersProperty)(this.config.value, [
26
+ (0, utils_1.createMultiStatusFilter)('request'),
27
+ {
28
+ displayName: 'Request Type',
29
+ name: 'requestType',
30
+ type: 'multiOptions',
31
+ default: [],
32
+ options: types_1.STATUS_OPTIONS.requestType,
33
+ description: 'Filter by request type',
34
+ },
35
+ (0, utils_1.createDateFilter)('Created From', 'createdFrom', 'Minimum creation date'),
36
+ (0, utils_1.createDateFilter)('Processed From', 'processedFrom', 'Minimum processed date'),
37
+ ]),
38
+ ];
39
+ }
40
+ processFilters(filters) {
41
+ return (0, utils_1.processRequestFilters)(filters);
42
+ }
43
+ }
44
+ exports.RequestResource = RequestResource;
45
+ //# sourceMappingURL=Request.resource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Request.resource.js","sourceRoot":"","sources":["../../../../nodes/Qonto/resources/Request.resource.ts"],"names":[],"mappings":";;;AACA,yCAA8C;AAC9C,mDAAuD;AACvD,2CAA+D;AAC/D,2CAUyB;AAEzB,MAAa,eAAgB,SAAQ,mBAAY;IAC/C;QACE,KAAK,CAAC,4BAAgB,CAAC,OAAO,CAAC,CAAC;IAClC,CAAC;IAED,aAAa;QACX,MAAM,UAAU,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;YACrD,IAAI,EAAE,EAAE,CAAC,IAAI;YACb,KAAK,EAAE,EAAE,CAAC,KAAK;YACf,WAAW,EAAE,EAAE,CAAC,WAAW;YAC3B,MAAM,EAAE,EAAE,CAAC,MAAM;SAClB,CAAC,CAAC,CAAC;QAEJ,OAAO;YACL,IAAA,+BAAuB,EAAC,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,UAAU,CAAC;YACtD,IAAA,wBAAgB,EAAC,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,QAAQ,CAAC,CAAC;YAC/C,IAAA,+BAAuB,EAAC,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YAC5C,IAAA,2BAAmB,EAAC,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACxC,IAAA,0BAAkB,EAAC,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACvC,IAAA,6BAAqB,EAAC,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE;gBACvC,IAAA,+BAAuB,EAAC,SAAS,CAAC;gBAClC;oBACE,WAAW,EAAE,cAAc;oBAC3B,IAAI,EAAE,aAAa;oBACnB,IAAI,EAAE,cAAc;oBACpB,OAAO,EAAE,EAAE;oBACX,OAAO,EAAE,sBAAc,CAAC,WAAW;oBACnC,WAAW,EAAE,wBAAwB;iBACtC;gBACD,IAAA,wBAAgB,EAAC,cAAc,EAAE,aAAa,EAAE,uBAAuB,CAAC;gBACxE,IAAA,wBAAgB,EAAC,gBAAgB,EAAE,eAAe,EAAE,wBAAwB,CAAC;aAC9E,CAAC;SACH,CAAC;IACJ,CAAC;IAES,cAAc,CAAC,OAAqB;QAC5C,OAAO,IAAA,6BAAqB,EAAC,OAAO,CAAC,CAAC;IACxC,CAAC;CACF;AAtCD,0CAsCC"}
@@ -0,0 +1,9 @@
1
+ import { INodeProperties } from 'n8n-workflow';
2
+ import { BaseResource } from '../shared/base';
3
+ import { QontoFilters } from '../shared/types';
4
+ export declare class SepaTransferResource extends BaseResource {
5
+ constructor();
6
+ getProperties(): INodeProperties[];
7
+ protected processFilters(filters: QontoFilters): Record<string, any>;
8
+ protected isGetManyOperation(operation: string): boolean;
9
+ }
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SepaTransferResource = void 0;
4
+ const base_1 = require("../shared/base");
5
+ const constants_1 = require("../shared/constants");
6
+ const utils_1 = require("../shared/utils");
7
+ class SepaTransferResource extends base_1.BaseResource {
8
+ constructor() {
9
+ super(constants_1.RESOURCE_CONFIGS.sepaTransfer);
10
+ }
11
+ getProperties() {
12
+ const operations = this.config.operations.map((op) => ({
13
+ name: op.name,
14
+ value: op.value,
15
+ description: op.description,
16
+ action: op.action,
17
+ }));
18
+ return [
19
+ (0, utils_1.createOperationProperty)(this.config.value, operations),
20
+ (0, utils_1.createIdProperty)(this.config.value, [
21
+ 'getOne',
22
+ 'getRecurringOne',
23
+ 'getBulkOne',
24
+ 'getBeneficiaryOne',
25
+ ]),
26
+ (0, utils_1.createReturnAllProperty)([this.config.value], ['getMany', 'getRecurring', 'getBulk', 'getBeneficiaries']),
27
+ (0, utils_1.createLimitProperty)([this.config.value]),
28
+ (0, utils_1.createPageProperty)([this.config.value]),
29
+ (0, utils_1.createFiltersProperty)(this.config.value, [
30
+ (0, utils_1.createMultiStatusFilter)('sepaTransfer'),
31
+ {
32
+ displayName: 'Beneficiary IDs',
33
+ name: 'beneficiaryIds',
34
+ type: 'string',
35
+ default: '',
36
+ description: 'Comma-separated list of beneficiary IDs',
37
+ },
38
+ (0, utils_1.createDateFilter)('Updated From', 'updatedFrom', 'Minimum update timestamp'),
39
+ (0, utils_1.createDateFilter)('Updated To', 'updatedTo', 'Maximum update timestamp'),
40
+ (0, utils_1.createDateFilter)('Scheduled Date From', 'scheduledDateFrom', 'Minimum scheduled date'),
41
+ (0, utils_1.createDateFilter)('Scheduled Date To', 'scheduledDateTo', 'Maximum scheduled date'),
42
+ ]),
43
+ ];
44
+ }
45
+ processFilters(filters) {
46
+ return (0, utils_1.processSepaTransferFilters)(filters);
47
+ }
48
+ isGetManyOperation(operation) {
49
+ return ['getMany', 'getRecurring', 'getBulk', 'getBeneficiaries'].includes(operation);
50
+ }
51
+ }
52
+ exports.SepaTransferResource = SepaTransferResource;
53
+ //# sourceMappingURL=SepaTransfer.resource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SepaTransfer.resource.js","sourceRoot":"","sources":["../../../../nodes/Qonto/resources/SepaTransfer.resource.ts"],"names":[],"mappings":";;;AACA,yCAA8C;AAC9C,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BAC3E,IAAA,wBAAgB,EAAC,YAAY,EAAE,WAAW,EAAE,0BAA0B,CAAC;gBACvE,IAAA,wBAAgB,EAAC,qBAAqB,EAAE,mBAAmB,EAAE,wBAAwB,CAAC;gBACtF,IAAA,wBAAgB,EAAC,mBAAmB,EAAE,iBAAiB,EAAE,wBAAwB,CAAC;aACnF,CAAC;SACH,CAAC;IACJ,CAAC;IAES,cAAc,CAAC,OAAqB;QAC5C,OAAO,IAAA,kCAA0B,EAAC,OAAO,CAAC,CAAC;IAC7C,CAAC;IAES,kBAAkB,CAAC,SAAiB;QAC5C,OAAO,CAAC,SAAS,EAAE,cAAc,EAAE,SAAS,EAAE,kBAAkB,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;IACxF,CAAC;CACF;AAnDD,oDAmDC"}
@@ -0,0 +1,8 @@
1
+ import { INodeProperties } from 'n8n-workflow';
2
+ import { BaseResource } from '../shared/base';
3
+ import { QontoFilters } from '../shared/types';
4
+ export declare class StatementResource extends BaseResource {
5
+ constructor();
6
+ getProperties(): INodeProperties[];
7
+ protected processFilters(filters: QontoFilters): Record<string, any>;
8
+ }
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StatementResource = void 0;
4
+ const base_1 = require("../shared/base");
5
+ const constants_1 = require("../shared/constants");
6
+ const utils_1 = require("../shared/utils");
7
+ class StatementResource extends base_1.BaseResource {
8
+ constructor() {
9
+ super(constants_1.RESOURCE_CONFIGS.statement);
10
+ }
11
+ getProperties() {
12
+ const operations = this.config.operations.map((op) => ({
13
+ name: op.name,
14
+ value: op.value,
15
+ description: op.description,
16
+ action: op.action,
17
+ }));
18
+ return [
19
+ (0, utils_1.createOperationProperty)(this.config.value, operations),
20
+ (0, utils_1.createIdProperty)(this.config.value, ['getOne']),
21
+ (0, utils_1.createReturnAllProperty)([this.config.value]),
22
+ (0, utils_1.createLimitProperty)([this.config.value]),
23
+ (0, utils_1.createPageProperty)([this.config.value]),
24
+ (0, utils_1.createFiltersProperty)(this.config.value, [
25
+ {
26
+ displayName: 'Bank Account IDs',
27
+ name: 'bankAccountIds',
28
+ type: 'string',
29
+ default: '',
30
+ description: 'Comma-separated list of bank account IDs',
31
+ },
32
+ {
33
+ displayName: 'IBANs',
34
+ name: 'ibans',
35
+ type: 'string',
36
+ default: '',
37
+ description: 'Comma-separated list of IBANs',
38
+ },
39
+ (0, utils_1.createDateFilter)('Period From', 'periodFrom', 'Start period for filtering'),
40
+ (0, utils_1.createDateFilter)('Period To', 'periodTo', 'End period for filtering'),
41
+ ]),
42
+ ];
43
+ }
44
+ processFilters(filters) {
45
+ return (0, utils_1.processStatementFilters)(filters);
46
+ }
47
+ }
48
+ exports.StatementResource = StatementResource;
49
+ //# sourceMappingURL=Statement.resource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Statement.resource.js","sourceRoot":"","sources":["../../../../nodes/Qonto/resources/Statement.resource.ts"],"names":[],"mappings":";;;AACA,yCAA8C;AAC9C,mDAAuD;AAEvD,2CASyB;AAEzB,MAAa,iBAAkB,SAAQ,mBAAY;IACjD;QACE,KAAK,CAAC,4BAAgB,CAAC,SAAS,CAAC,CAAC;IACpC,CAAC;IAED,aAAa;QACX,MAAM,UAAU,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;YACrD,IAAI,EAAE,EAAE,CAAC,IAAI;YACb,KAAK,EAAE,EAAE,CAAC,KAAK;YACf,WAAW,EAAE,EAAE,CAAC,WAAW;YAC3B,MAAM,EAAE,EAAE,CAAC,MAAM;SAClB,CAAC,CAAC,CAAC;QAEJ,OAAO;YACL,IAAA,+BAAuB,EAAC,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,UAAU,CAAC;YACtD,IAAA,wBAAgB,EAAC,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,QAAQ,CAAC,CAAC;YAC/C,IAAA,+BAAuB,EAAC,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YAC5C,IAAA,2BAAmB,EAAC,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACxC,IAAA,0BAAkB,EAAC,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACvC,IAAA,6BAAqB,EAAC,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE;gBACvC;oBACE,WAAW,EAAE,kBAAkB;oBAC/B,IAAI,EAAE,gBAAgB;oBACtB,IAAI,EAAE,QAAQ;oBACd,OAAO,EAAE,EAAE;oBACX,WAAW,EAAE,0CAA0C;iBACxD;gBACD;oBACE,WAAW,EAAE,OAAO;oBACpB,IAAI,EAAE,OAAO;oBACb,IAAI,EAAE,QAAQ;oBACd,OAAO,EAAE,EAAE;oBACX,WAAW,EAAE,+BAA+B;iBAC7C;gBACD,IAAA,wBAAgB,EAAC,aAAa,EAAE,YAAY,EAAE,4BAA4B,CAAC;gBAC3E,IAAA,wBAAgB,EAAC,WAAW,EAAE,UAAU,EAAE,0BAA0B,CAAC;aACtE,CAAC;SACH,CAAC;IACJ,CAAC;IAES,cAAc,CAAC,OAAqB;QAC5C,OAAO,IAAA,+BAAuB,EAAC,OAAO,CAAC,CAAC;IAC1C,CAAC;CACF;AA3CD,8CA2CC"}
@@ -0,0 +1,8 @@
1
+ import { INodeProperties } from 'n8n-workflow';
2
+ import { BaseResource } from '../shared/base';
3
+ import { QontoFilters } from '../shared/types';
4
+ export declare class SupplierInvoiceResource extends BaseResource {
5
+ constructor();
6
+ getProperties(): INodeProperties[];
7
+ protected processFilters(filters: QontoFilters): Record<string, any>;
8
+ }
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SupplierInvoiceResource = void 0;
4
+ const base_1 = require("../shared/base");
5
+ const constants_1 = require("../shared/constants");
6
+ const utils_1 = require("../shared/utils");
7
+ class SupplierInvoiceResource extends base_1.BaseResource {
8
+ constructor() {
9
+ super(constants_1.RESOURCE_CONFIGS.supplierInvoice);
10
+ }
11
+ getProperties() {
12
+ const operations = this.config.operations.map((op) => ({
13
+ name: op.name,
14
+ value: op.value,
15
+ description: op.description,
16
+ action: op.action,
17
+ }));
18
+ return [
19
+ (0, utils_1.createOperationProperty)(this.config.value, operations),
20
+ (0, utils_1.createIdProperty)(this.config.value, ['getOne']),
21
+ (0, utils_1.createReturnAllProperty)([this.config.value]),
22
+ (0, utils_1.createLimitProperty)([this.config.value]),
23
+ (0, utils_1.createPageProperty)([this.config.value]),
24
+ (0, utils_1.createFiltersProperty)(this.config.value, [
25
+ (0, utils_1.createStatusFilter)('supplierInvoice'),
26
+ (0, utils_1.createDateFilter)('Created From', 'createdFrom', 'Minimum creation date'),
27
+ (0, utils_1.createDateFilter)('Created To', 'createdTo', 'Maximum creation date'),
28
+ ]),
29
+ ];
30
+ }
31
+ processFilters(filters) {
32
+ return (0, utils_1.processSupplierInvoiceFilters)(filters);
33
+ }
34
+ }
35
+ exports.SupplierInvoiceResource = SupplierInvoiceResource;
36
+ //# sourceMappingURL=SupplierInvoice.resource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SupplierInvoice.resource.js","sourceRoot":"","sources":["../../../../nodes/Qonto/resources/SupplierInvoice.resource.ts"],"names":[],"mappings":";;;AACA,yCAA8C;AAC9C,mDAAuD;AAEvD,2CAUyB;AAEzB,MAAa,uBAAwB,SAAQ,mBAAY;IACvD;QACE,KAAK,CAAC,4BAAgB,CAAC,eAAe,CAAC,CAAC;IAC1C,CAAC;IAED,aAAa;QACX,MAAM,UAAU,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;YACrD,IAAI,EAAE,EAAE,CAAC,IAAI;YACb,KAAK,EAAE,EAAE,CAAC,KAAK;YACf,WAAW,EAAE,EAAE,CAAC,WAAW;YAC3B,MAAM,EAAE,EAAE,CAAC,MAAM;SAClB,CAAC,CAAC,CAAC;QAEJ,OAAO;YACL,IAAA,+BAAuB,EAAC,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,UAAU,CAAC;YACtD,IAAA,wBAAgB,EAAC,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,QAAQ,CAAC,CAAC;YAC/C,IAAA,+BAAuB,EAAC,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YAC5C,IAAA,2BAAmB,EAAC,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACxC,IAAA,0BAAkB,EAAC,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACvC,IAAA,6BAAqB,EAAC,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE;gBACvC,IAAA,0BAAkB,EAAC,iBAAiB,CAAC;gBACrC,IAAA,wBAAgB,EAAC,cAAc,EAAE,aAAa,EAAE,uBAAuB,CAAC;gBACxE,IAAA,wBAAgB,EAAC,YAAY,EAAE,WAAW,EAAE,uBAAuB,CAAC;aACrE,CAAC;SACH,CAAC;IACJ,CAAC;IAES,cAAc,CAAC,OAAqB;QAC5C,OAAO,IAAA,qCAA6B,EAAC,OAAO,CAAC,CAAC;IAChD,CAAC;CACF;AA9BD,0DA8BC"}
@@ -0,0 +1,6 @@
1
+ import { INodeProperties } from 'n8n-workflow';
2
+ import { BaseResource } from '../shared/base';
3
+ export declare class TeamResource extends BaseResource {
4
+ constructor();
5
+ getProperties(): INodeProperties[];
6
+ }
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TeamResource = void 0;
4
+ const base_1 = require("../shared/base");
5
+ const constants_1 = require("../shared/constants");
6
+ const utils_1 = require("../shared/utils");
7
+ class TeamResource extends base_1.BaseResource {
8
+ constructor() {
9
+ super(constants_1.RESOURCE_CONFIGS.team);
10
+ }
11
+ getProperties() {
12
+ const operations = this.config.operations.map((op) => ({
13
+ name: op.name,
14
+ value: op.value,
15
+ description: op.description,
16
+ action: op.action,
17
+ }));
18
+ return [
19
+ (0, utils_1.createOperationProperty)(this.config.value, operations),
20
+ (0, utils_1.createIdProperty)(this.config.value, ['getOne']),
21
+ (0, utils_1.createReturnAllProperty)([this.config.value]),
22
+ ];
23
+ }
24
+ }
25
+ exports.TeamResource = TeamResource;
26
+ //# sourceMappingURL=Team.resource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Team.resource.js","sourceRoot":"","sources":["../../../../nodes/Qonto/resources/Team.resource.ts"],"names":[],"mappings":";;;AACA,yCAA8C;AAC9C,mDAAuD;AACvD,2CAIyB;AAEzB,MAAa,YAAa,SAAQ,mBAAY;IAC5C;QACE,KAAK,CAAC,4BAAgB,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;IAED,aAAa;QACX,MAAM,UAAU,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;YACrD,IAAI,EAAE,EAAE,CAAC,IAAI;YACb,KAAK,EAAE,EAAE,CAAC,KAAK;YACf,WAAW,EAAE,EAAE,CAAC,WAAW;YAC3B,MAAM,EAAE,EAAE,CAAC,MAAM;SAClB,CAAC,CAAC,CAAC;QAEJ,OAAO;YACL,IAAA,+BAAuB,EAAC,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,UAAU,CAAC;YACtD,IAAA,wBAAgB,EAAC,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,QAAQ,CAAC,CAAC;YAC/C,IAAA,+BAAuB,EAAC,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;SAC7C,CAAC;IACJ,CAAC;CACF;AAnBD,oCAmBC"}
@@ -0,0 +1,10 @@
1
+ import { ILoadOptionsFunctions, INodeProperties } from 'n8n-workflow';
2
+ import { BaseResource } from '../shared/base';
3
+ import { QontoFilters } from '../shared/types';
4
+ export declare class TransactionResource extends BaseResource {
5
+ constructor();
6
+ getProperties(): INodeProperties[];
7
+ protected processFilters(filters: QontoFilters): Record<string, any>;
8
+ protected executeGetMany(executeFunctions: any, i: number): Promise<any[]>;
9
+ static getBankAccounts(loadOptionsFunctions: ILoadOptionsFunctions): Promise<any>;
10
+ }
@@ -0,0 +1,117 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TransactionResource = void 0;
4
+ const base_1 = require("../shared/base");
5
+ const constants_1 = require("../shared/constants");
6
+ const utils_1 = require("../shared/utils");
7
+ class TransactionResource extends base_1.BaseResource {
8
+ constructor() {
9
+ super(constants_1.RESOURCE_CONFIGS.transaction);
10
+ }
11
+ getProperties() {
12
+ const operations = this.config.operations.map((op) => ({
13
+ name: op.name,
14
+ value: op.value,
15
+ description: op.description,
16
+ action: op.action,
17
+ }));
18
+ return [
19
+ (0, utils_1.createOperationProperty)(this.config.value, operations),
20
+ (0, utils_1.createIdProperty)(this.config.value, ['getOne']),
21
+ {
22
+ displayName: 'Bank Account',
23
+ name: 'bankAccount',
24
+ type: 'options',
25
+ typeOptions: {
26
+ loadOptionsMethod: 'getBankAccounts',
27
+ },
28
+ required: true,
29
+ displayOptions: {
30
+ show: {
31
+ resource: [this.config.value],
32
+ operation: ['getMany'],
33
+ },
34
+ },
35
+ default: '',
36
+ description: 'Bank account to retrieve transactions for',
37
+ },
38
+ (0, utils_1.createReturnAllProperty)([this.config.value]),
39
+ (0, utils_1.createLimitProperty)([this.config.value]),
40
+ (0, utils_1.createPageProperty)([this.config.value]),
41
+ (0, utils_1.createFiltersProperty)(this.config.value, [
42
+ (0, utils_1.createStatusFilter)('transaction'),
43
+ (0, utils_1.createDateFilter)('Date From', 'dateFrom', 'Start date for transaction filtering'),
44
+ (0, utils_1.createDateFilter)('Date To', 'dateTo', 'End date for transaction filtering'),
45
+ ]),
46
+ (0, utils_1.createOptionsProperty)(this.config.value),
47
+ ];
48
+ }
49
+ processFilters(filters) {
50
+ return (0, utils_1.processTransactionFilters)(filters);
51
+ }
52
+ async executeGetMany(executeFunctions, i) {
53
+ const bankAccountId = executeFunctions.getNodeParameter('bankAccount', i);
54
+ const returnAll = executeFunctions.getNodeParameter('returnAll', i, false);
55
+ const { endpoint, dataKey } = this.getEndpoint('getMany');
56
+ const qs = {
57
+ bank_account_id: bankAccountId,
58
+ };
59
+ const filters = executeFunctions.getNodeParameter('filters', i, {});
60
+ const options = executeFunctions.getNodeParameter('options', i, {});
61
+ Object.assign(qs, this.processFilters(filters));
62
+ Object.assign(qs, this.processOptions(options));
63
+ if (returnAll) {
64
+ qs.per_page = 100;
65
+ qs.page = 1;
66
+ const responseData = await this.executePaginatedRequest(executeFunctions, i, endpoint, qs);
67
+ const returnData = [];
68
+ for (const response of responseData) {
69
+ const data = response.body[dataKey];
70
+ if (Array.isArray(data)) {
71
+ returnData.push(...executeFunctions.helpers.returnJsonArray(data));
72
+ }
73
+ else {
74
+ returnData.push({ json: data });
75
+ }
76
+ }
77
+ return returnData;
78
+ }
79
+ else {
80
+ const limit = executeFunctions.getNodeParameter('limit', i, 100);
81
+ qs.per_page = limit;
82
+ qs.page = 1;
83
+ const response = await this.executeRequest(executeFunctions, i, endpoint, qs);
84
+ const data = response[dataKey];
85
+ if (Array.isArray(data)) {
86
+ return executeFunctions.helpers.returnJsonArray(data);
87
+ }
88
+ else {
89
+ return [{ json: data }];
90
+ }
91
+ }
92
+ }
93
+ static async getBankAccounts(loadOptionsFunctions) {
94
+ const authentication = loadOptionsFunctions.getNodeParameter('authentication', 0);
95
+ const credentialType = authentication === 'apiKey' ? 'qontoApiKeyCredentials' : 'qontoOAuth2Api';
96
+ const credentials = await loadOptionsFunctions.getCredentials(credentialType);
97
+ const baseURL = (0, utils_1.getBaseURL)(credentials.environment);
98
+ try {
99
+ const response = await loadOptionsFunctions.helpers.requestWithAuthentication.call(loadOptionsFunctions, credentialType, {
100
+ method: 'GET',
101
+ url: `${baseURL}/v2/bank_accounts`,
102
+ json: true,
103
+ });
104
+ const bankAccounts = response.bank_accounts || [];
105
+ return bankAccounts.map((account) => ({
106
+ name: `${account.name} (${account.iban})`,
107
+ value: account.id,
108
+ }));
109
+ }
110
+ catch (error) {
111
+ console.error('Error loading bank accounts:', error);
112
+ return [];
113
+ }
114
+ }
115
+ }
116
+ exports.TransactionResource = TransactionResource;
117
+ //# sourceMappingURL=Transaction.resource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Transaction.resource.js","sourceRoot":"","sources":["../../../../nodes/Qonto/resources/Transaction.resource.ts"],"names":[],"mappings":";;;AACA,yCAA8C;AAC9C,mDAAuD;AAEvD,2CAYyB;AAEzB,MAAa,mBAAoB,SAAQ,mBAAY;IACnD;QACE,KAAK,CAAC,4BAAgB,CAAC,WAAW,CAAC,CAAC;IACtC,CAAC;IAED,aAAa;QACX,MAAM,UAAU,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;YACrD,IAAI,EAAE,EAAE,CAAC,IAAI;YACb,KAAK,EAAE,EAAE,CAAC,KAAK;YACf,WAAW,EAAE,EAAE,CAAC,WAAW;YAC3B,MAAM,EAAE,EAAE,CAAC,MAAM;SAClB,CAAC,CAAC,CAAC;QAEJ,OAAO;YACL,IAAA,+BAAuB,EAAC,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,UAAU,CAAC;YACtD,IAAA,wBAAgB,EAAC,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,QAAQ,CAAC,CAAC;YAC/C;gBACE,WAAW,EAAE,cAAc;gBAC3B,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE;oBACX,iBAAiB,EAAE,iBAAiB;iBACrC;gBACD,QAAQ,EAAE,IAAI;gBACd,cAAc,EAAE;oBACd,IAAI,EAAE;wBACJ,QAAQ,EAAE,CAAC,IAAI,CAAC,MAAM,CAA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AO,CAAC,EAAE;aAClB,CAAC,CAAC,CAAC;QACN,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,CAAC,KAAK,CAAC,8BAA8B,EAAE,KAAK,CAAC,CAAC;YACrD,OAAO,EAAE,CAAC;QACZ,CAAC;IACH,CAAC;CACF;AA9HD,kDA8HC"}
@@ -0,0 +1,20 @@
1
+ export { AttachmentResource } from './Attachment.resource';
2
+ export { BeneficiaryResource } from './Beneficiary.resource';
3
+ export { BusinessAccountResource } from './BusinessAccount.resource';
4
+ export { CardResource } from './Card.resource';
5
+ export { ClientResource } from './Client.resource';
6
+ export { ClientInvoiceResource } from './ClientInvoice.resource';
7
+ export { CreditNoteResource } from './CreditNote.resource';
8
+ export { ExternalTransferResource } from './ExternalTransfer.resource';
9
+ export { InsuranceContractResource } from './InsuranceContract.resource';
10
+ export { InternalTransferResource } from './InternalTransfer.resource';
11
+ export { LabelResource } from './Label.resource';
12
+ export { MembershipResource } from './Membership.resource';
13
+ export { OrganizationResource } from './Organization.resource';
14
+ export { QuoteResource } from './Quote.resource';
15
+ export { RequestResource } from './Request.resource';
16
+ export { SepaTransferResource } from './SepaTransfer.resource';
17
+ export { StatementResource } from './Statement.resource';
18
+ export { SupplierInvoiceResource } from './SupplierInvoice.resource';
19
+ export { TeamResource } from './Team.resource';
20
+ export { TransactionResource } from './Transaction.resource';
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TransactionResource = exports.TeamResource = exports.SupplierInvoiceResource = exports.StatementResource = exports.SepaTransferResource = exports.RequestResource = exports.QuoteResource = exports.OrganizationResource = exports.MembershipResource = exports.LabelResource = exports.InternalTransferResource = exports.InsuranceContractResource = exports.ExternalTransferResource = exports.CreditNoteResource = exports.ClientInvoiceResource = exports.ClientResource = exports.CardResource = exports.BusinessAccountResource = exports.BeneficiaryResource = exports.AttachmentResource = void 0;
4
+ var Attachment_resource_1 = require("./Attachment.resource");
5
+ Object.defineProperty(exports, "AttachmentResource", { enumerable: true, get: function () { return Attachment_resource_1.AttachmentResource; } });
6
+ var Beneficiary_resource_1 = require("./Beneficiary.resource");
7
+ Object.defineProperty(exports, "BeneficiaryResource", { enumerable: true, get: function () { return Beneficiary_resource_1.BeneficiaryResource; } });
8
+ var BusinessAccount_resource_1 = require("./BusinessAccount.resource");
9
+ Object.defineProperty(exports, "BusinessAccountResource", { enumerable: true, get: function () { return BusinessAccount_resource_1.BusinessAccountResource; } });
10
+ var Card_resource_1 = require("./Card.resource");
11
+ Object.defineProperty(exports, "CardResource", { enumerable: true, get: function () { return Card_resource_1.CardResource; } });
12
+ var Client_resource_1 = require("./Client.resource");
13
+ Object.defineProperty(exports, "ClientResource", { enumerable: true, get: function () { return Client_resource_1.ClientResource; } });
14
+ var ClientInvoice_resource_1 = require("./ClientInvoice.resource");
15
+ Object.defineProperty(exports, "ClientInvoiceResource", { enumerable: true, get: function () { return ClientInvoice_resource_1.ClientInvoiceResource; } });
16
+ var CreditNote_resource_1 = require("./CreditNote.resource");
17
+ Object.defineProperty(exports, "CreditNoteResource", { enumerable: true, get: function () { return CreditNote_resource_1.CreditNoteResource; } });
18
+ var ExternalTransfer_resource_1 = require("./ExternalTransfer.resource");
19
+ Object.defineProperty(exports, "ExternalTransferResource", { enumerable: true, get: function () { return ExternalTransfer_resource_1.ExternalTransferResource; } });
20
+ var InsuranceContract_resource_1 = require("./InsuranceContract.resource");
21
+ Object.defineProperty(exports, "InsuranceContractResource", { enumerable: true, get: function () { return InsuranceContract_resource_1.InsuranceContractResource; } });
22
+ var InternalTransfer_resource_1 = require("./InternalTransfer.resource");
23
+ Object.defineProperty(exports, "InternalTransferResource", { enumerable: true, get: function () { return InternalTransfer_resource_1.InternalTransferResource; } });
24
+ var Label_resource_1 = require("./Label.resource");
25
+ Object.defineProperty(exports, "LabelResource", { enumerable: true, get: function () { return Label_resource_1.LabelResource; } });
26
+ var Membership_resource_1 = require("./Membership.resource");
27
+ Object.defineProperty(exports, "MembershipResource", { enumerable: true, get: function () { return Membership_resource_1.MembershipResource; } });
28
+ var Organization_resource_1 = require("./Organization.resource");
29
+ Object.defineProperty(exports, "OrganizationResource", { enumerable: true, get: function () { return Organization_resource_1.OrganizationResource; } });
30
+ var Quote_resource_1 = require("./Quote.resource");
31
+ Object.defineProperty(exports, "QuoteResource", { enumerable: true, get: function () { return Quote_resource_1.QuoteResource; } });
32
+ var Request_resource_1 = require("./Request.resource");
33
+ Object.defineProperty(exports, "RequestResource", { enumerable: true, get: function () { return Request_resource_1.RequestResource; } });
34
+ var SepaTransfer_resource_1 = require("./SepaTransfer.resource");
35
+ Object.defineProperty(exports, "SepaTransferResource", { enumerable: true, get: function () { return SepaTransfer_resource_1.SepaTransferResource; } });
36
+ var Statement_resource_1 = require("./Statement.resource");
37
+ Object.defineProperty(exports, "StatementResource", { enumerable: true, get: function () { return Statement_resource_1.StatementResource; } });
38
+ var SupplierInvoice_resource_1 = require("./SupplierInvoice.resource");
39
+ Object.defineProperty(exports, "SupplierInvoiceResource", { enumerable: true, get: function () { return SupplierInvoice_resource_1.SupplierInvoiceResource; } });
40
+ var Team_resource_1 = require("./Team.resource");
41
+ Object.defineProperty(exports, "TeamResource", { enumerable: true, get: function () { return Team_resource_1.TeamResource; } });
42
+ var Transaction_resource_1 = require("./Transaction.resource");
43
+ Object.defineProperty(exports, "TransactionResource", { enumerable: true, get: function () { return Transaction_resource_1.TransactionResource; } });
44
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../nodes/Qonto/resources/index.ts"],"names":[],"mappings":";;;AAAA,6DAA2D;AAAlD,yHAAA,kBAAkB,OAAA;AAC3B,+DAA6D;AAApD,2HAAA,mBAAmB,OAAA;AAC5B,uEAAqE;AAA5D,mIAAA,uBAAuB,OAAA;AAChC,iDAA+C;AAAtC,6GAAA,YAAY,OAAA;AACrB,qDAAmD;AAA1C,iHAAA,cAAc,OAAA;AACvB,mEAAiE;AAAxD,+HAAA,qBAAqB,OAAA;AAC9B,6DAA2D;AAAlD,yHAAA,kBAAkB,OAAA;AAC3B,yEAAuE;AAA9D,qIAAA,wBAAwB,OAAA;AACjC,2EAAyE;AAAhE,uIAAA,yBAAyB,OAAA;AAClC,yEAAuE;AAA9D,qIAAA,wBAAwB,OAAA;AACjC,mDAAiD;AAAxC,+GAAA,aAAa,OAAA;AACtB,6DAA2D;AAAlD,yHAAA,kBAAkB,OAAA;AAC3B,iEAA+D;AAAtD,6HAAA,oBAAoB,OAAA;AAC7B,mDAAiD;AAAxC,+GAAA,aAAa,OAAA;AACtB,uDAAqD;AAA5C,mHAAA,eAAe,OAAA;AACxB,iEAA+D;AAAtD,6HAAA,oBAAoB,OAAA;AAC7B,2DAAyD;AAAhD,uHAAA,iBAAiB,OAAA;AAC1B,uEAAqE;AAA5D,mIAAA,uBAAuB,OAAA;AAChC,iDAA+C;AAAtC,6GAAA,YAAY,OAAA;AACrB,+DAA6D;AAApD,2HAAA,mBAAmB,OAAA"}
@@ -0,0 +1,20 @@
1
+ import { IExecuteFunctions, INodeExecutionData, INodeProperties } from 'n8n-workflow';
2
+ import { QontoFilters, QontoOptions, ResourceConfig } from './types';
3
+ export declare abstract class BaseResource {
4
+ protected config: ResourceConfig;
5
+ constructor(config: ResourceConfig);
6
+ abstract getProperties(): INodeProperties[];
7
+ getResourceConfig(): ResourceConfig;
8
+ protected getEndpoint(operation: string, id?: string): {
9
+ endpoint: string;
10
+ dataKey: string;
11
+ };
12
+ protected executeRequest(executeFunctions: IExecuteFunctions, i: number, endpoint: string, qs?: any): Promise<any>;
13
+ protected executePaginatedRequest(executeFunctions: IExecuteFunctions, i: number, endpoint: string, qs: any): Promise<any[]>;
14
+ protected processFilters(filters: QontoFilters): Record<string, any>;
15
+ protected processOptions(options: QontoOptions): Record<string, any>;
16
+ execute(executeFunctions: IExecuteFunctions, i: number): Promise<INodeExecutionData[]>;
17
+ protected isGetManyOperation(operation: string): boolean;
18
+ protected executeGetMany(executeFunctions: IExecuteFunctions, i: number): Promise<INodeExecutionData[]>;
19
+ protected executeGetOne(executeFunctions: IExecuteFunctions, i: number, operation: string): Promise<INodeExecutionData[]>;
20
+ }