@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.
- package/README.md +144 -16
- package/dist/credentials/QontoApiKey.credentials.js.map +1 -1
- package/dist/credentials/QontoOAuth2Api.credentials.js +5 -4
- package/dist/credentials/QontoOAuth2Api.credentials.js.map +1 -1
- package/dist/nodes/Qonto/Qonto.node.d.ts +8 -1
- package/dist/nodes/Qonto/Qonto.node.js +53 -207
- package/dist/nodes/Qonto/Qonto.node.js.map +1 -1
- package/dist/nodes/Qonto/resources/Attachment.resource.d.ts +11 -0
- package/dist/nodes/Qonto/resources/Attachment.resource.js +61 -0
- package/dist/nodes/Qonto/resources/Attachment.resource.js.map +1 -0
- package/dist/nodes/Qonto/resources/Beneficiary.resource.d.ts +8 -0
- package/dist/nodes/Qonto/resources/Beneficiary.resource.js +50 -0
- package/dist/nodes/Qonto/resources/Beneficiary.resource.js.map +1 -0
- package/dist/nodes/Qonto/resources/BusinessAccount.resource.d.ts +6 -0
- package/dist/nodes/Qonto/resources/BusinessAccount.resource.js +26 -0
- package/dist/nodes/Qonto/resources/BusinessAccount.resource.js.map +1 -0
- package/dist/nodes/Qonto/resources/Card.resource.d.ts +6 -0
- package/dist/nodes/Qonto/resources/Card.resource.js +26 -0
- package/dist/nodes/Qonto/resources/Card.resource.js.map +1 -0
- package/dist/nodes/Qonto/resources/Client.resource.d.ts +8 -0
- package/dist/nodes/Qonto/resources/Client.resource.js +40 -0
- package/dist/nodes/Qonto/resources/Client.resource.js.map +1 -0
- package/dist/nodes/Qonto/resources/ClientInvoice.resource.d.ts +8 -0
- package/dist/nodes/Qonto/resources/ClientInvoice.resource.js +37 -0
- package/dist/nodes/Qonto/resources/ClientInvoice.resource.js.map +1 -0
- package/dist/nodes/Qonto/resources/CreditNote.resource.d.ts +8 -0
- package/dist/nodes/Qonto/resources/CreditNote.resource.js +35 -0
- package/dist/nodes/Qonto/resources/CreditNote.resource.js.map +1 -0
- package/dist/nodes/Qonto/resources/ExternalTransfer.resource.d.ts +8 -0
- package/dist/nodes/Qonto/resources/ExternalTransfer.resource.js +45 -0
- package/dist/nodes/Qonto/resources/ExternalTransfer.resource.js.map +1 -0
- package/dist/nodes/Qonto/resources/InsuranceContract.resource.d.ts +6 -0
- package/dist/nodes/Qonto/resources/InsuranceContract.resource.js +26 -0
- package/dist/nodes/Qonto/resources/InsuranceContract.resource.js.map +1 -0
- package/dist/nodes/Qonto/resources/InternalTransfer.resource.d.ts +6 -0
- package/dist/nodes/Qonto/resources/InternalTransfer.resource.js +26 -0
- package/dist/nodes/Qonto/resources/InternalTransfer.resource.js.map +1 -0
- package/dist/nodes/Qonto/resources/Label.resource.d.ts +6 -0
- package/dist/nodes/Qonto/resources/Label.resource.js +26 -0
- package/dist/nodes/Qonto/resources/Label.resource.js.map +1 -0
- package/dist/nodes/Qonto/resources/Membership.resource.d.ts +8 -0
- package/dist/nodes/Qonto/resources/Membership.resource.js +41 -0
- package/dist/nodes/Qonto/resources/Membership.resource.js.map +1 -0
- package/dist/nodes/Qonto/resources/Organization.resource.d.ts +8 -0
- package/dist/nodes/Qonto/resources/Organization.resource.js +31 -0
- package/dist/nodes/Qonto/resources/Organization.resource.js.map +1 -0
- package/dist/nodes/Qonto/resources/Quote.resource.d.ts +8 -0
- package/dist/nodes/Qonto/resources/Quote.resource.js +36 -0
- package/dist/nodes/Qonto/resources/Quote.resource.js.map +1 -0
- package/dist/nodes/Qonto/resources/Request.resource.d.ts +8 -0
- package/dist/nodes/Qonto/resources/Request.resource.js +45 -0
- package/dist/nodes/Qonto/resources/Request.resource.js.map +1 -0
- package/dist/nodes/Qonto/resources/SepaTransfer.resource.d.ts +9 -0
- package/dist/nodes/Qonto/resources/SepaTransfer.resource.js +53 -0
- package/dist/nodes/Qonto/resources/SepaTransfer.resource.js.map +1 -0
- package/dist/nodes/Qonto/resources/Statement.resource.d.ts +8 -0
- package/dist/nodes/Qonto/resources/Statement.resource.js +49 -0
- package/dist/nodes/Qonto/resources/Statement.resource.js.map +1 -0
- package/dist/nodes/Qonto/resources/SupplierInvoice.resource.d.ts +8 -0
- package/dist/nodes/Qonto/resources/SupplierInvoice.resource.js +36 -0
- package/dist/nodes/Qonto/resources/SupplierInvoice.resource.js.map +1 -0
- package/dist/nodes/Qonto/resources/Team.resource.d.ts +6 -0
- package/dist/nodes/Qonto/resources/Team.resource.js +26 -0
- package/dist/nodes/Qonto/resources/Team.resource.js.map +1 -0
- package/dist/nodes/Qonto/resources/Transaction.resource.d.ts +10 -0
- package/dist/nodes/Qonto/resources/Transaction.resource.js +117 -0
- package/dist/nodes/Qonto/resources/Transaction.resource.js.map +1 -0
- package/dist/nodes/Qonto/resources/index.d.ts +20 -0
- package/dist/nodes/Qonto/resources/index.js +44 -0
- package/dist/nodes/Qonto/resources/index.js.map +1 -0
- package/dist/nodes/Qonto/shared/base.d.ts +20 -0
- package/dist/nodes/Qonto/shared/base.js +147 -0
- package/dist/nodes/Qonto/shared/base.js.map +1 -0
- package/dist/nodes/Qonto/shared/constants.d.ts +35 -0
- package/dist/nodes/Qonto/shared/constants.js +504 -0
- package/dist/nodes/Qonto/shared/constants.js.map +1 -0
- package/dist/nodes/Qonto/shared/types.d.ts +91 -0
- package/dist/nodes/Qonto/shared/types.js +77 -0
- package/dist/nodes/Qonto/shared/types.js.map +1 -0
- package/dist/nodes/Qonto/shared/utils.d.ts +38 -0
- package/dist/nodes/Qonto/shared/utils.js +407 -0
- package/dist/nodes/Qonto/shared/utils.js.map +1 -0
- package/dist/package.json +15 -13
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
@@ -0,0 +1,61 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.AttachmentResource = 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 AttachmentResource extends base_1.BaseResource {
|
8
|
+
constructor() {
|
9
|
+
super(constants_1.RESOURCE_CONFIGS.attachment);
|
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: 'Transaction ID',
|
23
|
+
name: 'transactionId',
|
24
|
+
type: 'string',
|
25
|
+
required: true,
|
26
|
+
displayOptions: {
|
27
|
+
show: {
|
28
|
+
resource: [this.config.value],
|
29
|
+
operation: ['getMany'],
|
30
|
+
},
|
31
|
+
},
|
32
|
+
default: '',
|
33
|
+
description: 'The ID of the transaction to retrieve attachments for',
|
34
|
+
},
|
35
|
+
];
|
36
|
+
}
|
37
|
+
getEndpoint(operation, id) {
|
38
|
+
if (operation === 'getMany') {
|
39
|
+
return {
|
40
|
+
endpoint: `/v2/transactions/{transactionId}/attachments`,
|
41
|
+
dataKey: 'attachments',
|
42
|
+
};
|
43
|
+
}
|
44
|
+
return super.getEndpoint(operation, id);
|
45
|
+
}
|
46
|
+
async executeGetMany(executeFunctions, i) {
|
47
|
+
const transactionId = executeFunctions.getNodeParameter('transactionId', i);
|
48
|
+
const endpoint = `/v2/transactions/${transactionId}/attachments`;
|
49
|
+
const dataKey = 'attachments';
|
50
|
+
const response = await this.executeRequest(executeFunctions, i, endpoint);
|
51
|
+
const data = response[dataKey];
|
52
|
+
if (Array.isArray(data)) {
|
53
|
+
return executeFunctions.helpers.returnJsonArray(data);
|
54
|
+
}
|
55
|
+
else {
|
56
|
+
return [{ json: data }];
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
|
+
exports.AttachmentResource = AttachmentResource;
|
61
|
+
//# sourceMappingURL=Attachment.resource.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Attachment.resource.js","sourceRoot":"","sources":["../../../../nodes/Qonto/resources/Attachment.resource.ts"],"names":[],"mappings":";;;AACA,yCAA8C;AAC9C,mDAAuD;AACvD,2CAA4E;AAE5E,MAAa,kBAAmB,SAAQ,mBAAY;IAClD;QACE,KAAK,CAAC,4BAAgB,CAAC,UAAU,CAAC,CAAC;IACrC,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,gBAAgB;gBAC7B,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;gBACd,cAAc,EAAE;oBACd,IAAI,EAAE;wBACJ,QAAQ,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC;wBAC7B,SAAS,EAAE,CAAC,SAAS,CAAC;qBACvB;iBACF;gBACD,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,uDAAuD;aACrE;SACF,CAAC;IACJ,CAAC;IAES,WAAW,CAAC,SAAiB,EAAE,EAAW;QAClD,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;YAC5B,OAAO;gBACL,QAAQ,EAAE,8CAA8C;gBACxD,OAAO,EAAE,aAAa;aACvB,CAAC;QACJ,CAAC;QACD,OAAO,KAAK,CAAC,WAAW,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;IAC1C,CAAC;IAES,KAAK,CAAC,cAAc,CAAC,gBAAqB,EAAE,CAAS;QAC7D,MAAM,aAAa,GAAG,gBAAgB,CAAC,gBAAgB,CAAC,eAAe,EAAE,CAAC,CAAW,CAAC;QACtF,MAAM,QAAQ,GAAG,oBAAoB,aAAa,cAAc,CAAC;QACjE,MAAM,OAAO,GAAG,aAAa,CAAC;QAE9B,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,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;YACxB,OAAO,gBAAgB,CAAC,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;QACxD,CAAC;aAAM,CAAC;YACN,OAAO,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;QAC1B,CAAC;IACH,CAAC;CACF;AAzDD,gDAyDC"}
|
@@ -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 BeneficiaryResource extends BaseResource {
|
5
|
+
constructor();
|
6
|
+
getProperties(): INodeProperties[];
|
7
|
+
protected processFilters(filters: QontoFilters): Record<string, any>;
|
8
|
+
}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.BeneficiaryResource = 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 BeneficiaryResource extends base_1.BaseResource {
|
8
|
+
constructor() {
|
9
|
+
super(constants_1.RESOURCE_CONFIGS.beneficiary);
|
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: 'Trusted',
|
27
|
+
name: 'trusted',
|
28
|
+
type: 'boolean',
|
29
|
+
default: false,
|
30
|
+
description: 'Filter by trusted status',
|
31
|
+
},
|
32
|
+
(0, utils_1.createMultiStatusFilter)('beneficiary'),
|
33
|
+
{
|
34
|
+
displayName: 'IBAN',
|
35
|
+
name: 'iban',
|
36
|
+
type: 'string',
|
37
|
+
default: '',
|
38
|
+
description: 'Filter by IBAN',
|
39
|
+
},
|
40
|
+
(0, utils_1.createDateFilter)('Updated From', 'updatedFrom', 'Minimum update timestamp'),
|
41
|
+
(0, utils_1.createDateFilter)('Updated To', 'updatedTo', 'Maximum update timestamp'),
|
42
|
+
]),
|
43
|
+
];
|
44
|
+
}
|
45
|
+
processFilters(filters) {
|
46
|
+
return (0, utils_1.processBeneficiaryFilters)(filters);
|
47
|
+
}
|
48
|
+
}
|
49
|
+
exports.BeneficiaryResource = BeneficiaryResource;
|
50
|
+
//# sourceMappingURL=Beneficiary.resource.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Beneficiary.resource.js","sourceRoot":"","sources":["../../../../nodes/Qonto/resources/Beneficiary.resource.ts"],"names":[],"mappings":";;;AACA,yCAA8C;AAC9C,mDAAuD;AAEvD,2CAUyB;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,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,SAAS;oBACtB,IAAI,EAAE,SAAS;oBACf,IAAI,EAAE,SAAS;oBACf,OAAO,EAAE,KAAK;oBACd,WAAW,EAAE,0BAA0B;iBACxC;gBACD,IAAA,+BAAuB,EAAC,aAAa,CAAC;gBACtC;oBACE,WAAW,EAAE,MAAM;oBACnB,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,QAAQ;oBACd,OAAO,EAAE,EAAE;oBACX,WAAW,EAAE,gBAAgB;iBAC9B;gBACD,IAAA,wBAAgB,EAAC,cAAc,EAAE,aAAa,EAAE,0BAA0B,CAAC;gBAC3E,IAAA,wBAAgB,EAAC,YAAY,EAAE,WAAW,EAAE,0BAA0B,CAAC;aACxE,CAAC;SACH,CAAC;IACJ,CAAC;IAES,cAAc,CAAC,OAAqB;QAC5C,OAAO,IAAA,iCAAyB,EAAC,OAAO,CAAC,CAAC;IAC5C,CAAC;CACF;AA5CD,kDA4CC"}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.BusinessAccountResource = 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 BusinessAccountResource extends base_1.BaseResource {
|
8
|
+
constructor() {
|
9
|
+
super(constants_1.RESOURCE_CONFIGS.businessAccount);
|
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.BusinessAccountResource = BusinessAccountResource;
|
26
|
+
//# sourceMappingURL=BusinessAccount.resource.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"BusinessAccount.resource.js","sourceRoot":"","sources":["../../../../nodes/Qonto/resources/BusinessAccount.resource.ts"],"names":[],"mappings":";;;AACA,yCAA8C;AAC9C,mDAAuD;AACvD,2CAIyB;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;SAC7C,CAAC;IACJ,CAAC;CACF;AAnBD,0DAmBC"}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.CardResource = 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 CardResource extends base_1.BaseResource {
|
8
|
+
constructor() {
|
9
|
+
super(constants_1.RESOURCE_CONFIGS.card);
|
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.CardResource = CardResource;
|
26
|
+
//# sourceMappingURL=Card.resource.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Card.resource.js","sourceRoot":"","sources":["../../../../nodes/Qonto/resources/Card.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,8 @@
|
|
1
|
+
import { INodeProperties } from 'n8n-workflow';
|
2
|
+
import { BaseResource } from '../shared/base';
|
3
|
+
import { QontoFilters } from '../shared/types';
|
4
|
+
export declare class ClientResource extends BaseResource {
|
5
|
+
constructor();
|
6
|
+
getProperties(): INodeProperties[];
|
7
|
+
protected processFilters(filters: QontoFilters): Record<string, any>;
|
8
|
+
}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ClientResource = 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 ClientResource extends base_1.BaseResource {
|
8
|
+
constructor() {
|
9
|
+
super(constants_1.RESOURCE_CONFIGS.client);
|
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: 'Filter',
|
27
|
+
name: 'filter',
|
28
|
+
type: 'string',
|
29
|
+
default: '',
|
30
|
+
description: 'Filter clients by tax ID, VAT number, email, or name',
|
31
|
+
},
|
32
|
+
]),
|
33
|
+
];
|
34
|
+
}
|
35
|
+
processFilters(filters) {
|
36
|
+
return (0, utils_1.processClientFilters)(filters);
|
37
|
+
}
|
38
|
+
}
|
39
|
+
exports.ClientResource = ClientResource;
|
40
|
+
//# sourceMappingURL=Client.resource.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Client.resource.js","sourceRoot":"","sources":["../../../../nodes/Qonto/resources/Client.resource.ts"],"names":[],"mappings":";;;AACA,yCAA8C;AAC9C,mDAAuD;AAEvD,2CAQyB;AAEzB,MAAa,cAAe,SAAQ,mBAAY;IAC9C;QACE,KAAK,CAAC,4BAAgB,CAAC,MAAM,CAAC,CAAC;IACjC,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,QAAQ;oBACrB,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,QAAQ;oBACd,OAAO,EAAE,EAAE;oBACX,WAAW,EAAE,sDAAsD;iBACpE;aACF,CAAC;SACH,CAAC;IACJ,CAAC;IAES,cAAc,CAAC,OAAqB;QAC5C,OAAO,IAAA,4BAAoB,EAAC,OAAO,CAAC,CAAC;IACvC,CAAC;CACF;AAlCD,wCAkCC"}
|
@@ -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 ClientInvoiceResource extends BaseResource {
|
5
|
+
constructor();
|
6
|
+
getProperties(): INodeProperties[];
|
7
|
+
protected processFilters(filters: QontoFilters): Record<string, any>;
|
8
|
+
}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ClientInvoiceResource = 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 ClientInvoiceResource extends base_1.BaseResource {
|
8
|
+
constructor() {
|
9
|
+
super(constants_1.RESOURCE_CONFIGS.clientInvoice);
|
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)('clientInvoice'),
|
26
|
+
(0, utils_1.createDateFilter)('Created From', 'createdFrom', 'Minimum creation date'),
|
27
|
+
(0, utils_1.createDateFilter)('Created To', 'createdTo', 'Maximum creation date'),
|
28
|
+
]),
|
29
|
+
(0, utils_1.createOptionsProperty)(this.config.value),
|
30
|
+
];
|
31
|
+
}
|
32
|
+
processFilters(filters) {
|
33
|
+
return (0, utils_1.processClientInvoiceFilters)(filters);
|
34
|
+
}
|
35
|
+
}
|
36
|
+
exports.ClientInvoiceResource = ClientInvoiceResource;
|
37
|
+
//# sourceMappingURL=ClientInvoice.resource.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ClientInvoice.resource.js","sourceRoot":"","sources":["../../../../nodes/Qonto/resources/ClientInvoice.resource.ts"],"names":[],"mappings":";;;AACA,yCAA8C;AAC9C,mDAAuD;AAEvD,2CAWyB;AAEzB,MAAa,qBAAsB,SAAQ,mBAAY;IACrD;QACE,KAAK,CAAC,4BAAgB,CAAC,aAAa,CAAC,CAAC;IACxC,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,eAAe,CAAC;gBACnC,IAAA,wBAAgB,EAAC,cAAc,EAAE,aAAa,EAAE,uBAAuB,CAAC;gBACxE,IAAA,wBAAgB,EAAC,YAAY,EAAE,WAAW,EAAE,uBAAuB,CAAC;aACrE,CAAC;YACF,IAAA,6BAAqB,EAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC;SACzC,CAAC;IACJ,CAAC;IAES,cAAc,CAAC,OAAqB;QAC5C,OAAO,IAAA,mCAA2B,EAAC,OAAO,CAAC,CAAC;IAC9C,CAAC;CACF;AA/BD,sDA+BC"}
|
@@ -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 CreditNoteResource extends BaseResource {
|
5
|
+
constructor();
|
6
|
+
getProperties(): INodeProperties[];
|
7
|
+
protected processFilters(filters: QontoFilters): Record<string, any>;
|
8
|
+
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.CreditNoteResource = 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 CreditNoteResource extends base_1.BaseResource {
|
8
|
+
constructor() {
|
9
|
+
super(constants_1.RESOURCE_CONFIGS.creditNote);
|
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.createDateFilter)('Created From', 'createdFrom', 'Minimum creation date'),
|
26
|
+
(0, utils_1.createDateFilter)('Created To', 'createdTo', 'Maximum creation date'),
|
27
|
+
]),
|
28
|
+
];
|
29
|
+
}
|
30
|
+
processFilters(filters) {
|
31
|
+
return (0, utils_1.processCreditNoteFilters)(filters);
|
32
|
+
}
|
33
|
+
}
|
34
|
+
exports.CreditNoteResource = CreditNoteResource;
|
35
|
+
//# sourceMappingURL=CreditNote.resource.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"CreditNote.resource.js","sourceRoot":"","sources":["../../../../nodes/Qonto/resources/CreditNote.resource.ts"],"names":[],"mappings":";;;AACA,yCAA8C;AAC9C,mDAAuD;AAEvD,2CASyB;AAEzB,MAAa,kBAAmB,SAAQ,mBAAY;IAClD;QACE,KAAK,CAAC,4BAAgB,CAAC,UAAU,CAAC,CAAC;IACrC,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,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,gCAAwB,EAAC,OAAO,CAAC,CAAC;IAC3C,CAAC;CACF;AA7BD,gDA6BC"}
|
@@ -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 ExternalTransferResource 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.ExternalTransferResource = 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 ExternalTransferResource extends base_1.BaseResource {
|
8
|
+
constructor() {
|
9
|
+
super(constants_1.RESOURCE_CONFIGS.externalTransfer);
|
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.createMultiStatusFilter)('externalTransfer'),
|
26
|
+
{
|
27
|
+
displayName: 'Beneficiary IDs',
|
28
|
+
name: 'beneficiaryIds',
|
29
|
+
type: 'string',
|
30
|
+
default: '',
|
31
|
+
description: 'Comma-separated list of beneficiary IDs',
|
32
|
+
},
|
33
|
+
(0, utils_1.createDateFilter)('Updated From', 'updatedFrom', 'Minimum update timestamp'),
|
34
|
+
(0, utils_1.createDateFilter)('Updated To', 'updatedTo', 'Maximum update timestamp'),
|
35
|
+
(0, utils_1.createDateFilter)('Scheduled Date From', 'scheduledDateFrom', 'Minimum scheduled date'),
|
36
|
+
(0, utils_1.createDateFilter)('Scheduled Date To', 'scheduledDateTo', 'Maximum scheduled date'),
|
37
|
+
]),
|
38
|
+
];
|
39
|
+
}
|
40
|
+
processFilters(filters) {
|
41
|
+
return (0, utils_1.processExternalTransferFilters)(filters);
|
42
|
+
}
|
43
|
+
}
|
44
|
+
exports.ExternalTransferResource = ExternalTransferResource;
|
45
|
+
//# sourceMappingURL=ExternalTransfer.resource.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ExternalTransfer.resource.js","sourceRoot":"","sources":["../../../../nodes/Qonto/resources/ExternalTransfer.resource.ts"],"names":[],"mappings":";;;AACA,yCAA8C;AAC9C,mDAAuD;AAEvD,2CAUyB;AAEzB,MAAa,wBAAyB,SAAQ,mBAAY;IACxD;QACE,KAAK,CAAC,4BAAgB,CAAC,gBAAgB,CAAC,CAAC;IAC3C,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,kBAAkB,CAAC;gBAC3C;oBACE,WAAW,EAAE,iBAAiB;oBAC9B,IAAI,EAAE,gBAAgB;oBACtB,IAAI,EAAE,QAAQ;oBACd,OAAO,EAAE,EAAE;oBACX,WAAW,EAAE,yCAAyC;iBACvD;gBACD,IAAA,wBAAgB,EAAC,cAAc,EAAE,aAAa,EAAE,0BAA0B,CAAC;gBAC3E,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,sCAA8B,EAAC,OAAO,CAAC,CAAC;IACjD,CAAC;CACF;AAvCD,4DAuCC"}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.InsuranceContractResource = 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 InsuranceContractResource extends base_1.BaseResource {
|
8
|
+
constructor() {
|
9
|
+
super(constants_1.RESOURCE_CONFIGS.insuranceContract);
|
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.InsuranceContractResource = InsuranceContractResource;
|
26
|
+
//# sourceMappingURL=InsuranceContract.resource.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"InsuranceContract.resource.js","sourceRoot":"","sources":["../../../../nodes/Qonto/resources/InsuranceContract.resource.ts"],"names":[],"mappings":";;;AACA,yCAA8C;AAC9C,mDAAuD;AACvD,2CAIyB;AAEzB,MAAa,yBAA0B,SAAQ,mBAAY;IACzD;QACE,KAAK,CAAC,4BAAgB,CAAC,iBAAiB,CAAC,CAAC;IAC5C,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,8DAmBC"}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.InternalTransferResource = 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 InternalTransferResource extends base_1.BaseResource {
|
8
|
+
constructor() {
|
9
|
+
super(constants_1.RESOURCE_CONFIGS.internalTransfer);
|
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.InternalTransferResource = InternalTransferResource;
|
26
|
+
//# sourceMappingURL=InternalTransfer.resource.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"InternalTransfer.resource.js","sourceRoot":"","sources":["../../../../nodes/Qonto/resources/InternalTransfer.resource.ts"],"names":[],"mappings":";;;AACA,yCAA8C;AAC9C,mDAAuD;AACvD,2CAIyB;AAEzB,MAAa,wBAAyB,SAAQ,mBAAY;IACxD;QACE,KAAK,CAAC,4BAAgB,CAAC,gBAAgB,CAAC,CAAC;IAC3C,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,4DAmBC"}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.LabelResource = 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 LabelResource extends base_1.BaseResource {
|
8
|
+
constructor() {
|
9
|
+
super(constants_1.RESOURCE_CONFIGS.label);
|
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.LabelResource = LabelResource;
|
26
|
+
//# sourceMappingURL=Label.resource.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Label.resource.js","sourceRoot":"","sources":["../../../../nodes/Qonto/resources/Label.resource.ts"],"names":[],"mappings":";;;AACA,yCAA8C;AAC9C,mDAAuD;AACvD,2CAIyB;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;SAC7C,CAAC;IACJ,CAAC;CACF;AAnBD,sCAmBC"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { INodeProperties } from 'n8n-workflow';
|
2
|
+
import { BaseResource } from '../shared/base';
|
3
|
+
export declare class MembershipResource extends BaseResource {
|
4
|
+
constructor();
|
5
|
+
getProperties(): INodeProperties[];
|
6
|
+
protected isGetManyOperation(operation: string): boolean;
|
7
|
+
execute(executeFunctions: any, i: number): Promise<any[]>;
|
8
|
+
}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.MembershipResource = 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 MembershipResource extends base_1.BaseResource {
|
8
|
+
constructor() {
|
9
|
+
super(constants_1.RESOURCE_CONFIGS.membership);
|
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.createReturnAllProperty)([this.config.value]),
|
21
|
+
];
|
22
|
+
}
|
23
|
+
isGetManyOperation(operation) {
|
24
|
+
return operation === 'getMany';
|
25
|
+
}
|
26
|
+
async execute(executeFunctions, i) {
|
27
|
+
const operation = executeFunctions.getNodeParameter('operation', i);
|
28
|
+
if (operation === 'getMany') {
|
29
|
+
return await this.executeGetMany(executeFunctions, i);
|
30
|
+
}
|
31
|
+
else if (operation === 'getCurrent') {
|
32
|
+
const { endpoint, dataKey } = this.getEndpoint('getCurrent');
|
33
|
+
const response = await this.executeRequest(executeFunctions, i, endpoint);
|
34
|
+
const data = response[dataKey];
|
35
|
+
return [{ json: data }];
|
36
|
+
}
|
37
|
+
return [];
|
38
|
+
}
|
39
|
+
}
|
40
|
+
exports.MembershipResource = MembershipResource;
|
41
|
+
//# sourceMappingURL=Membership.resource.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Membership.resource.js","sourceRoot":"","sources":["../../../../nodes/Qonto/resources/Membership.resource.ts"],"names":[],"mappings":";;;AACA,yCAA8C;AAC9C,mDAAuD;AACvD,2CAAmF;AAEnF,MAAa,kBAAmB,SAAQ,mBAAY;IAClD;QACE,KAAK,CAAC,4BAAgB,CAAC,UAAU,CAAC,CAAC;IACrC,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,+BAAuB,EAAC,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;SAC7C,CAAC;IACJ,CAAC;IAES,kBAAkB,CAAC,SAAiB;QAC5C,OAAO,SAAS,KAAK,SAAS,CAAC;IACjC,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,gBAAqB,EAAE,CAAS;QAC5C,MAAM,SAAS,GAAG,gBAAgB,CAAC,gBAAgB,CAAC,WAAW,EAAE,CAAC,CAAW,CAAC;QAE9E,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;YAC5B,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAC;QACxD,CAAC;aAAM,IAAI,SAAS,KAAK,YAAY,EAAE,CAAC;YACtC,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;YAC7D,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,gBAAgB,EAAE,CAAC,EAAE,QAAQ,CAAC,CAAC;YAC1E,MAAM,IAAI,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC;YAC/B,OAAO,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;QAC1B,CAAC;QAED,OAAO,EAAE,CAAC;IACZ,CAAC;CACF;AArCD,gDAqCC"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { INodeProperties } from 'n8n-workflow';
|
2
|
+
import { BaseResource } from '../shared/base';
|
3
|
+
export declare class OrganizationResource extends BaseResource {
|
4
|
+
constructor();
|
5
|
+
getProperties(): INodeProperties[];
|
6
|
+
protected isGetManyOperation(operation: string): boolean;
|
7
|
+
execute(executeFunctions: any, i: number): Promise<any[]>;
|
8
|
+
}
|