@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,147 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.BaseResource = void 0;
|
4
|
+
const utils_1 = require("./utils");
|
5
|
+
class BaseResource {
|
6
|
+
constructor(config) {
|
7
|
+
this.config = config;
|
8
|
+
}
|
9
|
+
getResourceConfig() {
|
10
|
+
return this.config;
|
11
|
+
}
|
12
|
+
getEndpoint(operation, id) {
|
13
|
+
const operationConfig = this.config.operations.find((op) => op.value === operation);
|
14
|
+
if ((operationConfig === null || operationConfig === void 0 ? void 0 : operationConfig.endpoint) && (operationConfig === null || operationConfig === void 0 ? void 0 : operationConfig.dataKey)) {
|
15
|
+
return {
|
16
|
+
endpoint: operationConfig.endpoint + (id ? `/${id}` : ''),
|
17
|
+
dataKey: operationConfig.dataKey,
|
18
|
+
};
|
19
|
+
}
|
20
|
+
const endpoint = this.config.endpoint + (id ? `/${id}` : '');
|
21
|
+
const dataKey = operation === 'getOne' ? this.config.dataKey.slice(0, -1) : this.config.dataKey;
|
22
|
+
return { endpoint, dataKey };
|
23
|
+
}
|
24
|
+
async executeRequest(executeFunctions, i, endpoint, qs) {
|
25
|
+
const authentication = executeFunctions.getNodeParameter('authentication', 0);
|
26
|
+
const credentialType = authentication === 'apiKey' ? 'qontoApiKeyCredentials' : 'qontoOAuth2Api';
|
27
|
+
const credentials = await executeFunctions.getCredentials(credentialType);
|
28
|
+
const baseURL = (0, utils_1.getBaseURL)(credentials.environment);
|
29
|
+
try {
|
30
|
+
return await (0, utils_1.executeWithRetry)(async () => {
|
31
|
+
return await executeFunctions.helpers.requestWithAuthentication.call(executeFunctions, credentialType, {
|
32
|
+
method: 'GET',
|
33
|
+
url: `${baseURL}${endpoint}`,
|
34
|
+
qs,
|
35
|
+
json: true,
|
36
|
+
});
|
37
|
+
});
|
38
|
+
}
|
39
|
+
catch (error) {
|
40
|
+
throw (0, utils_1.createQontoApiError)(executeFunctions, error, `Failed to fetch from ${endpoint}`);
|
41
|
+
}
|
42
|
+
}
|
43
|
+
async executePaginatedRequest(executeFunctions, i, endpoint, qs) {
|
44
|
+
const authentication = executeFunctions.getNodeParameter('authentication', 0);
|
45
|
+
const credentialType = authentication === 'apiKey' ? 'qontoApiKeyCredentials' : 'qontoOAuth2Api';
|
46
|
+
const credentials = await executeFunctions.getCredentials(credentialType);
|
47
|
+
const baseURL = (0, utils_1.getBaseURL)(credentials.environment);
|
48
|
+
try {
|
49
|
+
return await executeFunctions.helpers.requestWithAuthenticationPaginated.call(executeFunctions, {
|
50
|
+
method: 'GET',
|
51
|
+
uri: `${baseURL}${endpoint}`,
|
52
|
+
qs,
|
53
|
+
json: true,
|
54
|
+
}, 0, {
|
55
|
+
requestInterval: 1000,
|
56
|
+
continue: '={{ !!$response.body?.meta?.next_page }}',
|
57
|
+
request: {
|
58
|
+
qs: {
|
59
|
+
page: '={{ $response.body.meta.next_page }}',
|
60
|
+
},
|
61
|
+
},
|
62
|
+
}, credentialType);
|
63
|
+
}
|
64
|
+
catch (error) {
|
65
|
+
throw (0, utils_1.createQontoApiError)(executeFunctions, error, `Failed to fetch paginated data from ${endpoint}`);
|
66
|
+
}
|
67
|
+
}
|
68
|
+
processFilters(filters) {
|
69
|
+
return {};
|
70
|
+
}
|
71
|
+
processOptions(options) {
|
72
|
+
const qs = {};
|
73
|
+
if (options.sortBy) {
|
74
|
+
qs.sort_by = options.sortBy;
|
75
|
+
}
|
76
|
+
return qs;
|
77
|
+
}
|
78
|
+
async execute(executeFunctions, i) {
|
79
|
+
const operation = executeFunctions.getNodeParameter('operation', i);
|
80
|
+
try {
|
81
|
+
if (this.isGetManyOperation(operation)) {
|
82
|
+
return await this.executeGetMany(executeFunctions, i);
|
83
|
+
}
|
84
|
+
else {
|
85
|
+
return await this.executeGetOne(executeFunctions, i, operation);
|
86
|
+
}
|
87
|
+
}
|
88
|
+
catch (error) {
|
89
|
+
if (executeFunctions.continueOnFail()) {
|
90
|
+
return [{ json: { error: error.message } }];
|
91
|
+
}
|
92
|
+
throw error;
|
93
|
+
}
|
94
|
+
}
|
95
|
+
isGetManyOperation(operation) {
|
96
|
+
return ['getMany', 'getRecurring', 'getBulk', 'getBeneficiaries'].includes(operation);
|
97
|
+
}
|
98
|
+
async executeGetMany(executeFunctions, i) {
|
99
|
+
const operation = executeFunctions.getNodeParameter('operation', i);
|
100
|
+
const returnAll = executeFunctions.getNodeParameter('returnAll', i, false);
|
101
|
+
const { endpoint, dataKey } = this.getEndpoint(operation);
|
102
|
+
const qs = {};
|
103
|
+
const filters = executeFunctions.getNodeParameter('filters', i, {});
|
104
|
+
const options = executeFunctions.getNodeParameter('options', i, {});
|
105
|
+
Object.assign(qs, this.processFilters(filters));
|
106
|
+
Object.assign(qs, this.processOptions(options));
|
107
|
+
if (returnAll) {
|
108
|
+
qs.per_page = 100;
|
109
|
+
qs.page = 1;
|
110
|
+
const responseData = await this.executePaginatedRequest(executeFunctions, i, endpoint, qs);
|
111
|
+
const returnData = [];
|
112
|
+
for (const response of responseData) {
|
113
|
+
const data = response.body[dataKey];
|
114
|
+
if (Array.isArray(data)) {
|
115
|
+
returnData.push(...executeFunctions.helpers.returnJsonArray(data));
|
116
|
+
}
|
117
|
+
else {
|
118
|
+
returnData.push({ json: data });
|
119
|
+
}
|
120
|
+
}
|
121
|
+
return returnData;
|
122
|
+
}
|
123
|
+
else {
|
124
|
+
const limit = executeFunctions.getNodeParameter('limit', i, 100);
|
125
|
+
const page = executeFunctions.getNodeParameter('page', i, 1);
|
126
|
+
qs.per_page = limit;
|
127
|
+
qs.page = page;
|
128
|
+
const response = await this.executeRequest(executeFunctions, i, endpoint, qs);
|
129
|
+
const data = response[dataKey];
|
130
|
+
if (Array.isArray(data)) {
|
131
|
+
return executeFunctions.helpers.returnJsonArray(data);
|
132
|
+
}
|
133
|
+
else {
|
134
|
+
return [{ json: data }];
|
135
|
+
}
|
136
|
+
}
|
137
|
+
}
|
138
|
+
async executeGetOne(executeFunctions, i, operation) {
|
139
|
+
const id = executeFunctions.getNodeParameter('id', i, '');
|
140
|
+
const { endpoint, dataKey } = this.getEndpoint(operation, id);
|
141
|
+
const response = await this.executeRequest(executeFunctions, i, endpoint);
|
142
|
+
const data = response[dataKey];
|
143
|
+
return [{ json: data }];
|
144
|
+
}
|
145
|
+
}
|
146
|
+
exports.Base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CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;YACxD,CAAC;iBAAM,CAAC;gBACN,OAAO,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;YAC1B,CAAC;QACH,CAAC;IACH,CAAC;IAES,KAAK,CAAC,aAAa,CAC3B,gBAAmC,EACnC,CAAS,EACT,SAAiB;QAEjB,MAAM,EAAE,GAAG,gBAAgB,CAAC,gBAAgB,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAW,CAAC;QACpE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,WAAW,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;QAE9D,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;AAzMD,oCAyMC"}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import { ResourceConfig } from './types';
|
2
|
+
export declare const BASE_URLS: {
|
3
|
+
production: string;
|
4
|
+
sandbox: string;
|
5
|
+
};
|
6
|
+
export declare const OAUTH_URLS: {
|
7
|
+
production: string;
|
8
|
+
sandbox: string;
|
9
|
+
};
|
10
|
+
export declare const API_ENDPOINTS: {
|
11
|
+
attachments: string;
|
12
|
+
bankAccounts: string;
|
13
|
+
beneficiaries: string;
|
14
|
+
cards: string;
|
15
|
+
clients: string;
|
16
|
+
clientInvoices: string;
|
17
|
+
creditNotes: string;
|
18
|
+
externalTransfers: string;
|
19
|
+
insuranceContracts: string;
|
20
|
+
internalTransfers: string;
|
21
|
+
labels: string;
|
22
|
+
membership: string;
|
23
|
+
memberships: string;
|
24
|
+
organization: string;
|
25
|
+
quotes: string;
|
26
|
+
requests: string;
|
27
|
+
sepaTransfers: string;
|
28
|
+
sepaRecurringTransfers: string;
|
29
|
+
sepaBulkTransfers: string;
|
30
|
+
statements: string;
|
31
|
+
supplierInvoices: string;
|
32
|
+
teams: string;
|
33
|
+
transactions: string;
|
34
|
+
};
|
35
|
+
export declare const RESOURCE_CONFIGS: Record<string, ResourceConfig>;
|
@@ -0,0 +1,504 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.RESOURCE_CONFIGS = exports.API_ENDPOINTS = exports.OAUTH_URLS = exports.BASE_URLS = void 0;
|
4
|
+
exports.BASE_URLS = {
|
5
|
+
production: 'https://thirdparty.qonto.com',
|
6
|
+
sandbox: 'https://thirdparty-sandbox.qonto.com',
|
7
|
+
};
|
8
|
+
exports.OAUTH_URLS = {
|
9
|
+
production: 'https://oauth.qonto.com',
|
10
|
+
sandbox: 'https://oauth-sandbox.qonto.com',
|
11
|
+
};
|
12
|
+
exports.API_ENDPOINTS = {
|
13
|
+
attachments: '/v2/attachments',
|
14
|
+
bankAccounts: '/v2/bank_accounts',
|
15
|
+
beneficiaries: '/v2/beneficiaries',
|
16
|
+
cards: '/v2/cards',
|
17
|
+
clients: '/v2/clients',
|
18
|
+
clientInvoices: '/v2/client_invoices',
|
19
|
+
creditNotes: '/v2/credit_notes',
|
20
|
+
externalTransfers: '/v2/external_transfers',
|
21
|
+
insuranceContracts: '/v2/insurance_contracts',
|
22
|
+
internalTransfers: '/v2/internal_transfers',
|
23
|
+
labels: '/v2/labels',
|
24
|
+
membership: '/v2/membership',
|
25
|
+
memberships: '/v2/memberships',
|
26
|
+
organization: '/v2/organization',
|
27
|
+
quotes: '/v2/quotes',
|
28
|
+
requests: '/v2/requests',
|
29
|
+
sepaTransfers: '/v2/sepa-transfers',
|
30
|
+
sepaRecurringTransfers: '/v2/sepa-recurring-transfers',
|
31
|
+
sepaBulkTransfers: '/v2/sepa-bulk-transfers',
|
32
|
+
statements: '/v2/statements',
|
33
|
+
supplierInvoices: '/v2/supplier_invoices',
|
34
|
+
teams: '/v2/teams',
|
35
|
+
transactions: '/v2/transactions',
|
36
|
+
};
|
37
|
+
exports.RESOURCE_CONFIGS = {
|
38
|
+
attachment: {
|
39
|
+
name: 'Attachment',
|
40
|
+
value: 'attachment',
|
41
|
+
endpoint: exports.API_ENDPOINTS.attachments,
|
42
|
+
dataKey: 'attachments',
|
43
|
+
operations: [
|
44
|
+
{
|
45
|
+
name: 'Get Many',
|
46
|
+
value: 'getMany',
|
47
|
+
description: 'Get many attachments',
|
48
|
+
action: 'Get many attachments',
|
49
|
+
},
|
50
|
+
{
|
51
|
+
name: 'Get One',
|
52
|
+
value: 'getOne',
|
53
|
+
description: 'Get a single attachment',
|
54
|
+
action: 'Get a single attachment',
|
55
|
+
requiresId: true,
|
56
|
+
},
|
57
|
+
],
|
58
|
+
},
|
59
|
+
beneficiary: {
|
60
|
+
name: 'Beneficiary',
|
61
|
+
value: 'beneficiary',
|
62
|
+
endpoint: exports.API_ENDPOINTS.beneficiaries,
|
63
|
+
dataKey: 'beneficiaries',
|
64
|
+
operations: [
|
65
|
+
{
|
66
|
+
name: 'Get Many',
|
67
|
+
value: 'getMany',
|
68
|
+
description: 'Get many beneficiaries',
|
69
|
+
action: 'Get many beneficiaries',
|
70
|
+
},
|
71
|
+
{
|
72
|
+
name: 'Get One',
|
73
|
+
value: 'getOne',
|
74
|
+
description: 'Get a single beneficiary',
|
75
|
+
action: 'Get a single beneficiary',
|
76
|
+
requiresId: true,
|
77
|
+
},
|
78
|
+
],
|
79
|
+
},
|
80
|
+
businessAccount: {
|
81
|
+
name: 'Business Account',
|
82
|
+
value: 'businessAccount',
|
83
|
+
endpoint: exports.API_ENDPOINTS.bankAccounts,
|
84
|
+
dataKey: 'bank_accounts',
|
85
|
+
operations: [
|
86
|
+
{
|
87
|
+
name: 'Get Many',
|
88
|
+
value: 'getMany',
|
89
|
+
description: 'Get many business accounts',
|
90
|
+
action: 'Get many business accounts',
|
91
|
+
},
|
92
|
+
{
|
93
|
+
name: 'Get One',
|
94
|
+
value: 'getOne',
|
95
|
+
description: 'Get a single business account',
|
96
|
+
action: 'Get a single business account',
|
97
|
+
requiresId: true,
|
98
|
+
},
|
99
|
+
],
|
100
|
+
},
|
101
|
+
card: {
|
102
|
+
name: 'Card',
|
103
|
+
value: 'card',
|
104
|
+
endpoint: exports.API_ENDPOINTS.cards,
|
105
|
+
dataKey: 'cards',
|
106
|
+
operations: [
|
107
|
+
{
|
108
|
+
name: 'Get Many',
|
109
|
+
value: 'getMany',
|
110
|
+
description: 'Get many cards',
|
111
|
+
action: 'Get many cards',
|
112
|
+
},
|
113
|
+
{
|
114
|
+
name: 'Get One',
|
115
|
+
value: 'getOne',
|
116
|
+
description: 'Get a single card',
|
117
|
+
action: 'Get a single card',
|
118
|
+
requiresId: true,
|
119
|
+
},
|
120
|
+
],
|
121
|
+
},
|
122
|
+
client: {
|
123
|
+
name: 'Client',
|
124
|
+
value: 'client',
|
125
|
+
endpoint: exports.API_ENDPOINTS.clients,
|
126
|
+
dataKey: 'clients',
|
127
|
+
operations: [
|
128
|
+
{
|
129
|
+
name: 'Get Many',
|
130
|
+
value: 'getMany',
|
131
|
+
description: 'Get many clients',
|
132
|
+
action: 'Get many clients',
|
133
|
+
},
|
134
|
+
{
|
135
|
+
name: 'Get One',
|
136
|
+
value: 'getOne',
|
137
|
+
description: 'Get a single client',
|
138
|
+
action: 'Get a single client',
|
139
|
+
requiresId: true,
|
140
|
+
},
|
141
|
+
],
|
142
|
+
},
|
143
|
+
clientInvoice: {
|
144
|
+
name: 'Client Invoice',
|
145
|
+
value: 'clientInvoice',
|
146
|
+
endpoint: exports.API_ENDPOINTS.clientInvoices,
|
147
|
+
dataKey: 'client_invoices',
|
148
|
+
operations: [
|
149
|
+
{
|
150
|
+
name: 'Get Many',
|
151
|
+
value: 'getMany',
|
152
|
+
description: 'Get many client invoices',
|
153
|
+
action: 'Get many client invoices',
|
154
|
+
},
|
155
|
+
{
|
156
|
+
name: 'Get One',
|
157
|
+
value: 'getOne',
|
158
|
+
description: 'Get a single client invoice',
|
159
|
+
action: 'Get a single client invoice',
|
160
|
+
requiresId: true,
|
161
|
+
},
|
162
|
+
],
|
163
|
+
},
|
164
|
+
creditNote: {
|
165
|
+
name: 'Credit Note',
|
166
|
+
value: 'creditNote',
|
167
|
+
endpoint: exports.API_ENDPOINTS.creditNotes,
|
168
|
+
dataKey: 'credit_notes',
|
169
|
+
operations: [
|
170
|
+
{
|
171
|
+
name: 'Get Many',
|
172
|
+
value: 'getMany',
|
173
|
+
description: 'Get many credit notes',
|
174
|
+
action: 'Get many credit notes',
|
175
|
+
},
|
176
|
+
{
|
177
|
+
name: 'Get One',
|
178
|
+
value: 'getOne',
|
179
|
+
description: 'Get a single credit note',
|
180
|
+
action: 'Get a single credit note',
|
181
|
+
requiresId: true,
|
182
|
+
},
|
183
|
+
],
|
184
|
+
},
|
185
|
+
externalTransfer: {
|
186
|
+
name: 'External Transfer',
|
187
|
+
value: 'externalTransfer',
|
188
|
+
endpoint: exports.API_ENDPOINTS.externalTransfers,
|
189
|
+
dataKey: 'external_transfers',
|
190
|
+
operations: [
|
191
|
+
{
|
192
|
+
name: 'Get Many',
|
193
|
+
value: 'getMany',
|
194
|
+
description: 'Get many external transfers',
|
195
|
+
action: 'Get many external transfers',
|
196
|
+
},
|
197
|
+
{
|
198
|
+
name: 'Get One',
|
199
|
+
value: 'getOne',
|
200
|
+
description: 'Get a single external transfer',
|
201
|
+
action: 'Get a single external transfer',
|
202
|
+
requiresId: true,
|
203
|
+
},
|
204
|
+
],
|
205
|
+
},
|
206
|
+
insuranceContract: {
|
207
|
+
name: 'Insurance Contract',
|
208
|
+
value: 'insuranceContract',
|
209
|
+
endpoint: exports.API_ENDPOINTS.insuranceContracts,
|
210
|
+
dataKey: 'insurance_contracts',
|
211
|
+
operations: [
|
212
|
+
{
|
213
|
+
name: 'Get Many',
|
214
|
+
value: 'getMany',
|
215
|
+
description: 'Get many insurance contracts',
|
216
|
+
action: 'Get many insurance contracts',
|
217
|
+
},
|
218
|
+
{
|
219
|
+
name: 'Get One',
|
220
|
+
value: 'getOne',
|
221
|
+
description: 'Get a single insurance contract',
|
222
|
+
action: 'Get a single insurance contract',
|
223
|
+
requiresId: true,
|
224
|
+
},
|
225
|
+
],
|
226
|
+
},
|
227
|
+
internalTransfer: {
|
228
|
+
name: 'Internal Transfer',
|
229
|
+
value: 'internalTransfer',
|
230
|
+
endpoint: exports.API_ENDPOINTS.internalTransfers,
|
231
|
+
dataKey: 'internal_transfers',
|
232
|
+
operations: [
|
233
|
+
{
|
234
|
+
name: 'Get Many',
|
235
|
+
value: 'getMany',
|
236
|
+
description: 'Get many internal transfers',
|
237
|
+
action: 'Get many internal transfers',
|
238
|
+
},
|
239
|
+
{
|
240
|
+
name: 'Get One',
|
241
|
+
value: 'getOne',
|
242
|
+
description: 'Get a single internal transfer',
|
243
|
+
action: 'Get a single internal transfer',
|
244
|
+
requiresId: true,
|
245
|
+
},
|
246
|
+
],
|
247
|
+
},
|
248
|
+
label: {
|
249
|
+
name: 'Label',
|
250
|
+
value: 'label',
|
251
|
+
endpoint: exports.API_ENDPOINTS.labels,
|
252
|
+
dataKey: 'labels',
|
253
|
+
operations: [
|
254
|
+
{
|
255
|
+
name: 'Get Many',
|
256
|
+
value: 'getMany',
|
257
|
+
description: 'Get many labels',
|
258
|
+
action: 'Get many labels',
|
259
|
+
},
|
260
|
+
{
|
261
|
+
name: 'Get One',
|
262
|
+
value: 'getOne',
|
263
|
+
description: 'Get a single label',
|
264
|
+
action: 'Get a single label',
|
265
|
+
requiresId: true,
|
266
|
+
},
|
267
|
+
],
|
268
|
+
},
|
269
|
+
membership: {
|
270
|
+
name: 'Membership',
|
271
|
+
value: 'membership',
|
272
|
+
endpoint: exports.API_ENDPOINTS.memberships,
|
273
|
+
dataKey: 'memberships',
|
274
|
+
operations: [
|
275
|
+
{
|
276
|
+
name: 'Get Many',
|
277
|
+
value: 'getMany',
|
278
|
+
description: 'Get all memberships',
|
279
|
+
action: 'Get all memberships',
|
280
|
+
},
|
281
|
+
{
|
282
|
+
name: 'Get Current',
|
283
|
+
value: 'getCurrent',
|
284
|
+
description: 'Get current membership',
|
285
|
+
action: 'Get current membership',
|
286
|
+
endpoint: exports.API_ENDPOINTS.membership,
|
287
|
+
dataKey: 'membership',
|
288
|
+
},
|
289
|
+
],
|
290
|
+
},
|
291
|
+
organization: {
|
292
|
+
name: 'Organization',
|
293
|
+
value: 'organization',
|
294
|
+
endpoint: exports.API_ENDPOINTS.organization,
|
295
|
+
dataKey: 'organization',
|
296
|
+
operations: [
|
297
|
+
{
|
298
|
+
name: 'Get',
|
299
|
+
value: 'get',
|
300
|
+
description: 'Get organization details',
|
301
|
+
action: 'Get organization details',
|
302
|
+
},
|
303
|
+
],
|
304
|
+
},
|
305
|
+
quote: {
|
306
|
+
name: 'Quote',
|
307
|
+
value: 'quote',
|
308
|
+
endpoint: exports.API_ENDPOINTS.quotes,
|
309
|
+
dataKey: 'quotes',
|
310
|
+
operations: [
|
311
|
+
{
|
312
|
+
name: 'Get Many',
|
313
|
+
value: 'getMany',
|
314
|
+
description: 'Get many quotes',
|
315
|
+
action: 'Get many quotes',
|
316
|
+
},
|
317
|
+
{
|
318
|
+
name: 'Get One',
|
319
|
+
value: 'getOne',
|
320
|
+
description: 'Get a single quote',
|
321
|
+
action: 'Get a single quote',
|
322
|
+
requiresId: true,
|
323
|
+
},
|
324
|
+
],
|
325
|
+
},
|
326
|
+
request: {
|
327
|
+
name: 'Request',
|
328
|
+
value: 'request',
|
329
|
+
endpoint: exports.API_ENDPOINTS.requests,
|
330
|
+
dataKey: 'requests',
|
331
|
+
operations: [
|
332
|
+
{
|
333
|
+
name: 'Get Many',
|
334
|
+
value: 'getMany',
|
335
|
+
description: 'Get many requests',
|
336
|
+
action: 'Get many requests',
|
337
|
+
},
|
338
|
+
{
|
339
|
+
name: 'Get One',
|
340
|
+
value: 'getOne',
|
341
|
+
description: 'Get a single request',
|
342
|
+
action: 'Get a single request',
|
343
|
+
requiresId: true,
|
344
|
+
},
|
345
|
+
],
|
346
|
+
},
|
347
|
+
sepaTransfer: {
|
348
|
+
name: 'SEPA Transfer',
|
349
|
+
value: 'sepaTransfer',
|
350
|
+
endpoint: exports.API_ENDPOINTS.sepaTransfers,
|
351
|
+
dataKey: 'sepa_transfers',
|
352
|
+
operations: [
|
353
|
+
{
|
354
|
+
name: 'Get Many',
|
355
|
+
value: 'getMany',
|
356
|
+
description: 'Get many SEPA transfers',
|
357
|
+
action: 'Get many SEPA transfers',
|
358
|
+
},
|
359
|
+
{
|
360
|
+
name: 'Get One',
|
361
|
+
value: 'getOne',
|
362
|
+
description: 'Get a single SEPA transfer',
|
363
|
+
action: 'Get a single SEPA transfer',
|
364
|
+
requiresId: true,
|
365
|
+
},
|
366
|
+
{
|
367
|
+
name: 'Get Recurring Transfers',
|
368
|
+
value: 'getRecurring',
|
369
|
+
description: 'Get many SEPA recurring transfers',
|
370
|
+
action: 'Get many SEPA recurring transfers',
|
371
|
+
endpoint: exports.API_ENDPOINTS.sepaRecurringTransfers,
|
372
|
+
dataKey: 'sepa_recurring_transfers',
|
373
|
+
},
|
374
|
+
{
|
375
|
+
name: 'Get Single Recurring Transfer',
|
376
|
+
value: 'getRecurringOne',
|
377
|
+
description: 'Get a single SEPA recurring transfer',
|
378
|
+
action: 'Get a single SEPA recurring transfer',
|
379
|
+
endpoint: exports.API_ENDPOINTS.sepaRecurringTransfers,
|
380
|
+
dataKey: 'sepa_recurring_transfer',
|
381
|
+
requiresId: true,
|
382
|
+
},
|
383
|
+
{
|
384
|
+
name: 'Get Bulk Transfers',
|
385
|
+
value: 'getBulk',
|
386
|
+
description: 'Get many SEPA bulk transfers',
|
387
|
+
action: 'Get many SEPA bulk transfers',
|
388
|
+
endpoint: exports.API_ENDPOINTS.sepaBulkTransfers,
|
389
|
+
dataKey: 'sepa_bulk_transfers',
|
390
|
+
},
|
391
|
+
{
|
392
|
+
name: 'Get Single Bulk Transfer',
|
393
|
+
value: 'getBulkOne',
|
394
|
+
description: 'Get a single SEPA bulk transfer',
|
395
|
+
action: 'Get a single SEPA bulk transfer',
|
396
|
+
endpoint: exports.API_ENDPOINTS.sepaBulkTransfers,
|
397
|
+
dataKey: 'sepa_bulk_transfer',
|
398
|
+
requiresId: true,
|
399
|
+
},
|
400
|
+
{
|
401
|
+
name: 'Get SEPA Beneficiaries',
|
402
|
+
value: 'getBeneficiaries',
|
403
|
+
description: 'Get many SEPA beneficiaries',
|
404
|
+
action: 'Get many SEPA beneficiaries',
|
405
|
+
endpoint: exports.API_ENDPOINTS.beneficiaries,
|
406
|
+
dataKey: 'beneficiaries',
|
407
|
+
},
|
408
|
+
{
|
409
|
+
name: 'Get Single SEPA Beneficiary',
|
410
|
+
value: 'getBeneficiaryOne',
|
411
|
+
description: 'Get a single SEPA beneficiary',
|
412
|
+
action: 'Get a single SEPA beneficiary',
|
413
|
+
endpoint: exports.API_ENDPOINTS.beneficiaries,
|
414
|
+
dataKey: 'beneficiary',
|
415
|
+
requiresId: true,
|
416
|
+
},
|
417
|
+
],
|
418
|
+
},
|
419
|
+
statement: {
|
420
|
+
name: 'Statement',
|
421
|
+
value: 'statement',
|
422
|
+
endpoint: exports.API_ENDPOINTS.statements,
|
423
|
+
dataKey: 'statements',
|
424
|
+
operations: [
|
425
|
+
{
|
426
|
+
name: 'Get Many',
|
427
|
+
value: 'getMany',
|
428
|
+
description: 'Get many statements',
|
429
|
+
action: 'Get many statements',
|
430
|
+
},
|
431
|
+
{
|
432
|
+
name: 'Get One',
|
433
|
+
value: 'getOne',
|
434
|
+
description: 'Get a single statement',
|
435
|
+
action: 'Get a single statement',
|
436
|
+
requiresId: true,
|
437
|
+
},
|
438
|
+
],
|
439
|
+
},
|
440
|
+
supplierInvoice: {
|
441
|
+
name: 'Supplier Invoice',
|
442
|
+
value: 'supplierInvoice',
|
443
|
+
endpoint: exports.API_ENDPOINTS.supplierInvoices,
|
444
|
+
dataKey: 'supplier_invoices',
|
445
|
+
operations: [
|
446
|
+
{
|
447
|
+
name: 'Get Many',
|
448
|
+
value: 'getMany',
|
449
|
+
description: 'Get many supplier invoices',
|
450
|
+
action: 'Get many supplier invoices',
|
451
|
+
},
|
452
|
+
{
|
453
|
+
name: 'Get One',
|
454
|
+
value: 'getOne',
|
455
|
+
description: 'Get a single supplier invoice',
|
456
|
+
action: 'Get a single supplier invoice',
|
457
|
+
requiresId: true,
|
458
|
+
},
|
459
|
+
],
|
460
|
+
},
|
461
|
+
team: {
|
462
|
+
name: 'Team',
|
463
|
+
value: 'team',
|
464
|
+
endpoint: exports.API_ENDPOINTS.teams,
|
465
|
+
dataKey: 'teams',
|
466
|
+
operations: [
|
467
|
+
{
|
468
|
+
name: 'Get Many',
|
469
|
+
value: 'getMany',
|
470
|
+
description: 'Get many teams',
|
471
|
+
action: 'Get many teams',
|
472
|
+
},
|
473
|
+
{
|
474
|
+
name: 'Get One',
|
475
|
+
value: 'getOne',
|
476
|
+
description: 'Get a single team',
|
477
|
+
action: 'Get a single team',
|
478
|
+
requiresId: true,
|
479
|
+
},
|
480
|
+
],
|
481
|
+
},
|
482
|
+
transaction: {
|
483
|
+
name: 'Transaction',
|
484
|
+
value: 'transaction',
|
485
|
+
endpoint: exports.API_ENDPOINTS.transactions,
|
486
|
+
dataKey: 'transactions',
|
487
|
+
operations: [
|
488
|
+
{
|
489
|
+
name: 'Get Many',
|
490
|
+
value: 'getMany',
|
491
|
+
description: 'Get many transactions',
|
492
|
+
action: 'Get many transactions',
|
493
|
+
},
|
494
|
+
{
|
495
|
+
name: 'Get One',
|
496
|
+
value: 'getOne',
|
497
|
+
description: 'Get a single transaction',
|
498
|
+
action: 'Get a single transaction',
|
499
|
+
requiresId: true,
|
500
|
+
},
|
501
|
+
],
|
502
|
+
},
|
503
|
+
};
|
504
|
+
//# sourceMappingURL=constants.js.map
|