@chift/chift-nodejs 1.0.26 → 1.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/modules/accounting.d.ts +8 -0
- package/dist/src/modules/accounting.js +41 -0
- package/dist/src/modules/api.d.ts +2238 -83
- package/dist/src/modules/api.js +2 -0
- package/dist/src/modules/banking.d.ts +3 -1
- package/dist/src/modules/banking.js +10 -2
- package/dist/src/modules/consumer.d.ts +426 -15
- package/dist/src/modules/consumer.js +5 -0
- package/dist/src/modules/consumers.d.ts +2154 -84
- package/dist/src/modules/integrations.d.ts +5 -0
- package/dist/src/modules/internalApi.d.ts +4 -4
- package/dist/src/modules/issues.d.ts +68 -0
- package/dist/src/modules/issues.js +33 -0
- package/dist/src/modules/pms.d.ts +3 -0
- package/dist/src/modules/pms.js +15 -0
- package/dist/src/modules/sync.d.ts +1723 -67
- package/dist/src/modules/syncs.d.ts +0 -1
- package/dist/src/modules/syncs.js +0 -5
- package/dist/src/types/public-api/mappings.d.ts +21 -3
- package/dist/src/types/public-api/schema.d.ts +2441 -762
- package/dist/test/modules/banking.test.js +3 -1
- package/dist/test/modules/consumer.test.js +1 -1
- package/dist/test/modules/raw-data.test.js +6 -4
- package/package.json +1 -1
- package/src/types/public-api/schema.d.ts +2441 -762
|
@@ -5,7 +5,6 @@ export type SyncsAPI = {
|
|
|
5
5
|
createSync: (body?: components['schemas']['CreateSyncItem']) => Promise<ReturnType<typeof Sync>>;
|
|
6
6
|
getSyncs: () => Promise<ReturnType<typeof Sync>[]>;
|
|
7
7
|
getSyncById: (syncid: string) => Promise<ReturnType<typeof Sync>>;
|
|
8
|
-
updateSync: (body?: components['schemas']['CreateSyncItem']) => Promise<ReturnType<typeof Sync>>;
|
|
9
8
|
sendCustomEvent: (syncid: string, flowid: string, body: components['schemas']['PostSyncFlowEvent']) => Promise<components['schemas']['TriggerResponse']>;
|
|
10
9
|
getConsumerExecutions: (consumerid: string, syncid: string, flowid: string) => Promise<components['schemas']['ChainExecutionItem'][]>;
|
|
11
10
|
getExecution: (syncid: string, flowid: string, executionid: string) => Promise<components['schemas']['ChainExecutionItem']>;
|
|
@@ -25,10 +25,6 @@ const Syncs = (internalApi) => {
|
|
|
25
25
|
const { data, } = yield _internalApi.post('/syncs', body);
|
|
26
26
|
return (0, sync_1.Sync)(_internalApi, data);
|
|
27
27
|
});
|
|
28
|
-
const updateSync = (body) => __awaiter(void 0, void 0, void 0, function* () {
|
|
29
|
-
const { data, } = yield _internalApi.patch('/syncs', body);
|
|
30
|
-
return (0, sync_1.Sync)(_internalApi, data);
|
|
31
|
-
});
|
|
32
28
|
const sendCustomEvent = (syncid, flowid, body) => __awaiter(void 0, void 0, void 0, function* () {
|
|
33
29
|
const { data } = yield _internalApi.post(`/syncs/${syncid}/flows/${flowid}/event`, body);
|
|
34
30
|
return data;
|
|
@@ -45,7 +41,6 @@ const Syncs = (internalApi) => {
|
|
|
45
41
|
createSync,
|
|
46
42
|
getSyncs,
|
|
47
43
|
getSyncById,
|
|
48
|
-
updateSync,
|
|
49
44
|
sendCustomEvent,
|
|
50
45
|
getConsumerExecutions,
|
|
51
46
|
getExecution,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export type chiftOperations = {
|
|
2
2
|
generateAccessToken: 'generate_access_token_token_post';
|
|
3
|
+
generateMcpToken: 'generate_mcp_token_mcp_token_post';
|
|
3
4
|
getConsumers: 'consumers_get_consumers';
|
|
4
5
|
createConsumer: 'consumers_create_consumer';
|
|
5
6
|
getConsumerById: 'consumers_get_consumer';
|
|
@@ -9,6 +10,7 @@ export type chiftOperations = {
|
|
|
9
10
|
createConnection: 'connections_create_connection';
|
|
10
11
|
deleteConnectionById: 'connections_delete_connection';
|
|
11
12
|
updateConnection: 'connections_update_connection';
|
|
13
|
+
getTransactionByClientRequestId: 'get_transaction_by_client_request_id_consumers__consumer_id__connections__connection_id__transactions_get';
|
|
12
14
|
getIntegrations: 'integrations_get_integrations';
|
|
13
15
|
getIntegrationLogo: 'integrations_get_integration_logo_json';
|
|
14
16
|
getWebhookTypes: 'webhooks_get_webhook_types';
|
|
@@ -20,7 +22,6 @@ export type chiftOperations = {
|
|
|
20
22
|
getWebhookLogsByWebhookId: 'webhooks_get_webhook_logs';
|
|
21
23
|
getSyncs: 'syncs_get_syncs';
|
|
22
24
|
createSync: 'syncs_post_sync';
|
|
23
|
-
updateSync: 'syncs_update_sync';
|
|
24
25
|
getSync: 'syncs_get_sync';
|
|
25
26
|
sendCustomEvent: 'syncs_send_custom_event';
|
|
26
27
|
getConsumerExecutions: 'syncs_get_consumer_executions';
|
|
@@ -35,6 +36,9 @@ export type chiftOperations = {
|
|
|
35
36
|
createConsumerDatastoreData: 'datastores_create_consumer_datastoredata';
|
|
36
37
|
deleteConsumerDatastoreData: 'datastores_delete_consumer_datastoredata';
|
|
37
38
|
updateConsumerDatastoreData: 'datastores_update_consumer_datastoredata';
|
|
39
|
+
getIssues: 'issues_get_issues';
|
|
40
|
+
getIssuesByConsumerId: 'issues_get_issues_by_consumer_id';
|
|
41
|
+
getIssue: 'issues_get_issue';
|
|
38
42
|
getFolders: 'accounting_get_folders';
|
|
39
43
|
getBookyears: 'accounting_get_bookyears';
|
|
40
44
|
getAnalyticPlans: 'accounting_get_analytic_plans';
|
|
@@ -53,7 +57,9 @@ export type chiftOperations = {
|
|
|
53
57
|
getInvoice: 'accounting_get_invoice';
|
|
54
58
|
getInvoiceMultiPlans: 'accounting_get_invoice_multi_analytic_plans';
|
|
55
59
|
createLedgerAccount: 'accounting_create_ledger_account';
|
|
60
|
+
getBankAccounts: 'accounting_get_bank_accounts';
|
|
56
61
|
createBankAccount: 'accounting_create_bank_account';
|
|
62
|
+
createBankTransactions: 'accounting_create_bank_transactions';
|
|
57
63
|
getAnalyticAccounts: 'accounting_get_analytic_accounts';
|
|
58
64
|
createAnalyticAccount: 'accounting_create_analytic_account';
|
|
59
65
|
createAnalyticAccountMultiPlans: 'accounting_create_analytic_account_multi_plans';
|
|
@@ -63,7 +69,7 @@ export type chiftOperations = {
|
|
|
63
69
|
updateAnalyticAccountMultiPlans: 'accounting_update_analytic_account_multi_plans';
|
|
64
70
|
getAnalyticAccountsMultiPlans: 'accounting_get_analytic_accounts_multi_plans';
|
|
65
71
|
getJournalEntries: 'accounting_get_journal_entries';
|
|
66
|
-
createJournalEntry: '
|
|
72
|
+
createJournalEntry: 'accounting_create_generic_journal_entry';
|
|
67
73
|
getJournalEntriesMultiPlan: 'accounting_get_journal_entries_multi_plan';
|
|
68
74
|
getJournalEntry: 'accounting_get_journal_entry';
|
|
69
75
|
createGenericJournalEntry: 'accounting_create_generic_journal_entry';
|
|
@@ -71,9 +77,14 @@ export type chiftOperations = {
|
|
|
71
77
|
getJournals: 'accounting_get_journals';
|
|
72
78
|
createJournal: 'accounting_create_journal';
|
|
73
79
|
getVatCodes: 'accounting_get_vat_codes';
|
|
80
|
+
getAccountingPaymentMethods: 'accounting_get_payment_methods';
|
|
81
|
+
getPaymentTerms: 'accounting_get_payment_terms';
|
|
82
|
+
getSchemes: 'accounting_get_schemes';
|
|
83
|
+
exportFec: 'accounting_export_fec';
|
|
74
84
|
getMiscellaneousOperations: 'accounting_get_miscellaneous_operations';
|
|
75
85
|
createMiscellaneousOperation: 'accounting_create_miscellaneous_operation';
|
|
76
86
|
getMiscellaneousOperation: 'accounting_get_miscellaneous_operation';
|
|
87
|
+
createExpense: 'accounting_create_expense';
|
|
77
88
|
matchEntries: 'accounting_match_entries';
|
|
78
89
|
matchEntriesMultiple: 'accounting_match_entries_multiple';
|
|
79
90
|
addAttachment: 'accounting_add_attachment';
|
|
@@ -81,9 +92,10 @@ export type chiftOperations = {
|
|
|
81
92
|
getChartOfAccounts: 'accounting_get_chart_of_accounts';
|
|
82
93
|
getAccountsBalances: 'accounting_get_accounts_balances';
|
|
83
94
|
getEmployees: 'accounting_get_employees';
|
|
84
|
-
createFinancialEntry: '
|
|
95
|
+
createFinancialEntry: 'accounting_create_financial_entries';
|
|
85
96
|
createFinancialEntries: 'accounting_create_financial_entries';
|
|
86
97
|
getOutstandings: 'accounting_get_outstandings';
|
|
98
|
+
createInvoicePayment: 'accounting_create_invoice_payment';
|
|
87
99
|
getOrders: 'pos_get_orders';
|
|
88
100
|
getOrder: 'pos_get_order';
|
|
89
101
|
updateOrder: 'pos_update_pos_customer';
|
|
@@ -98,6 +110,7 @@ export type chiftOperations = {
|
|
|
98
110
|
getProducts: 'pos_get_products';
|
|
99
111
|
getAccountingCategories: 'pos_get_accounting_categories';
|
|
100
112
|
getClosure: 'pos_get_closure';
|
|
113
|
+
getObjectives: 'pos_get_objectives';
|
|
101
114
|
getCommerceCustomers: 'ecommerce_get_customers';
|
|
102
115
|
getCommerceCustomer: 'ecommerce_get_customer';
|
|
103
116
|
getCommerceProducts: 'ecommerce_get_products';
|
|
@@ -127,10 +140,14 @@ export type chiftOperations = {
|
|
|
127
140
|
getContact: 'invoicing_get_contact';
|
|
128
141
|
getInvoicingPayments: 'invoicing_get_payments';
|
|
129
142
|
getInvoicingPaymentMethods: 'invoicing_get_payments_methods';
|
|
143
|
+
getInvoicingBankAccounts: 'invoicing_get_bank_accounts';
|
|
144
|
+
getInvoicingBankTransactions: 'invoicing_get_bank_transactions';
|
|
145
|
+
uploadInvoicingDocument: 'invoicing_upload_document';
|
|
130
146
|
getFinancialInstitutions: 'banking_get_financial_institutions';
|
|
131
147
|
getBankingAccounts: 'banking_get_accounts';
|
|
132
148
|
getAccountTransactions: 'banking_get_account_transactions';
|
|
133
149
|
getAccountCounterparts: 'banking_get_account_counterparts';
|
|
150
|
+
getBankingAttachments: 'banking_get_attachments';
|
|
134
151
|
getBalances: 'payment_get_balances';
|
|
135
152
|
getTransactions: 'payment_get_transaction';
|
|
136
153
|
getPaymentPayments: 'payment_get_payments';
|
|
@@ -145,4 +162,5 @@ export type chiftOperations = {
|
|
|
145
162
|
getPMSPaymentMethods: 'pms_get_payments_methods';
|
|
146
163
|
getPMSAccountingCategories: 'pms_get_accounting_categories';
|
|
147
164
|
getPMSClosure: 'pms_get_closure';
|
|
165
|
+
getPMSTaxes: 'pms_get_taxes';
|
|
148
166
|
};
|