@chift/chift-nodejs 1.0.13 → 1.0.14
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 +59 -49
- package/dist/src/modules/api.d.ts +485 -395
- package/dist/src/modules/consumer.d.ts +97 -79
- package/dist/src/modules/consumer.js +8 -0
- package/dist/src/modules/consumers.d.ts +485 -395
- package/dist/src/modules/ecommerce.d.ts +11 -11
- package/dist/src/modules/internalApi.d.ts +2 -0
- package/dist/src/modules/internalApi.js +6 -0
- package/dist/src/modules/invoicing.d.ts +6 -4
- package/dist/src/modules/pos.d.ts +16 -16
- package/dist/src/modules/sync.d.ts +388 -316
- package/dist/src/types/api.d.ts +1 -0
- package/dist/src/types/public-api/schema.d.ts +1007 -1007
- package/package.json +1 -1
|
@@ -1,58 +1,68 @@
|
|
|
1
1
|
import { operations, components } from '../types/public-api/schema';
|
|
2
|
-
import { RequestData } from '../types/api';
|
|
3
|
-
type
|
|
4
|
-
type
|
|
5
|
-
type
|
|
6
|
-
type
|
|
7
|
-
type
|
|
8
|
-
type
|
|
9
|
-
type
|
|
2
|
+
import { AutoPaginatedParams, RequestData } from '../types/api';
|
|
3
|
+
type GetChartOfAccountsParams = AutoPaginatedParams<operations['accounting_get_chart_of_accounts']['parameters']['query']>;
|
|
4
|
+
type GetMiscOperationsParams = AutoPaginatedParams<operations['accounting_get_miscellaneous_operations']['parameters']['query']>;
|
|
5
|
+
type GetInvoicesByTypeWithMultiplePlansParams = AutoPaginatedParams<operations['accounting_get_invoices_by_type_multi_analytic_plans']['parameters']['query']>;
|
|
6
|
+
type GetInvoicesByTypeParams = AutoPaginatedParams<operations['accounting_get_invoices_by_type']['parameters']['query']>;
|
|
7
|
+
type GetOutstandingsParams = AutoPaginatedParams<operations['accounting_get_outstandings']['parameters']['query']>;
|
|
8
|
+
type GetAnalyticPlansParams = AutoPaginatedParams<operations['accounting_get_analytic_plans']['parameters']['query']>;
|
|
9
|
+
type GetVatCodesParams = AutoPaginatedParams<operations['accounting_get_vat_codes']['parameters']['query']>;
|
|
10
|
+
type GetJournalsParams = AutoPaginatedParams<operations['accounting_get_journals']['parameters']['query']>;
|
|
11
|
+
type GetJournalEntriesParams = AutoPaginatedParams<operations['accounting_get_journal_entries']['parameters']['query']>;
|
|
12
|
+
type GetJournalEntriesWithMultiplePlansParams = AutoPaginatedParams<operations['accounting_get_journal_entries_mutli_plan']['parameters']['query']>;
|
|
13
|
+
type GetEmployeesParams = AutoPaginatedParams<operations['accounting_get_employees']['parameters']['query']>;
|
|
14
|
+
type GetAttachmentsParams = AutoPaginatedParams<operations['accounting_get_attachments']['parameters']['query']>;
|
|
15
|
+
type GetBalanceOfAccountsParams = AutoPaginatedParams<operations['accounting_get_accounts_balances']['parameters']['query']>;
|
|
16
|
+
type GetClientsParams = AutoPaginatedParams<operations['accounting_get_clients']['parameters']['query']>;
|
|
17
|
+
type GetSuppliersParams = AutoPaginatedParams<operations['accounting_get_suppliers']['parameters']['query']>;
|
|
18
|
+
type GetAnalyticAccountsParams = AutoPaginatedParams<operations['accounting_get_analytic_accounts']['parameters']['query']>;
|
|
19
|
+
type GetAnalyticAccountsWithMultiplePlansParams = AutoPaginatedParams<operations['accounting_get_analytic_accounts_multi_plans']['parameters']['query']>;
|
|
10
20
|
declare const accountingFactory: {
|
|
11
|
-
getAnalyticPlans(params
|
|
12
|
-
getClients(params
|
|
13
|
-
createClient(client: components['schemas']['ClientItemIn'], params
|
|
14
|
-
getClient(clientId: string, params
|
|
15
|
-
updateClient(clientId: string, client: components['schemas']['ClientItemUpdate'], params
|
|
16
|
-
getSuppliers(params
|
|
17
|
-
createSupplier(supplier: components['schemas']['SupplierItemIn'], params
|
|
18
|
-
getSupplier(supplierId: string, params
|
|
19
|
-
updateSupplier(supplierId: string, supplier: components['schemas']['SupplierItemUpdate'], params
|
|
20
|
-
createInvoice(invoice: components['schemas']['InvoiceItemInMonoAnalyticPlan'], params
|
|
21
|
-
createInvoiceWithMultiplePlans(invoice: components['schemas']['InvoiceItemInMultiAnalyticPlans'], params
|
|
22
|
-
getInvoicesByType(invoice_type: components['schemas']['app__routers__accounting__InvoiceType'], params
|
|
23
|
-
getInvoice(invoiceId: string, params
|
|
24
|
-
getInvoiceWithMultiplePlans(invoiceId: string, params
|
|
25
|
-
getInvoicesByTypeWithMultiplePlans(invoice_type: components['schemas']['app__routers__accounting__InvoiceType'], params
|
|
26
|
-
createAnalyticAccount(analyticAccount: components['schemas']['AnalyticAccountItemIn'], params
|
|
27
|
-
getAnalyticAccounts(params
|
|
28
|
-
createAnalyticAccountWithMultiplePlans(analytic_plan: string, analyticAccount: components['schemas']['AnalyticAccountItemIn'], params
|
|
29
|
-
getAnalyticAccount(analytic_account_id: string, params
|
|
30
|
-
updateAnalyticAccount(analytic_account_id: string, analyticAccount: components['schemas']['AnalyticAccountItemUpdate'], params
|
|
31
|
-
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params
|
|
32
|
-
updateAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, analyticAccount: components['schemas']['AnalyticAccountItemUpdate'], params
|
|
33
|
-
getAnalyticAccountsWithMultiplePlans(params
|
|
34
|
-
getJournalEntries(params:
|
|
35
|
-
getJournalEntriesWithMultiplePlans(params:
|
|
36
|
-
getPaymentsByInvoiceId(invoice_id: string, params
|
|
37
|
-
getJournals(params
|
|
38
|
-
getVatCodes(params
|
|
39
|
-
getMiscOperations(params
|
|
40
|
-
createMiscOperation(operation: components['schemas']['MiscellaneousOperationIn'], params
|
|
41
|
-
getMiscOperation(operation_id: string, params
|
|
42
|
-
attachPDF(invoice_id: string, attachment: components['schemas']['AttachmentItem'], params
|
|
43
|
-
getAttachments(params:
|
|
44
|
-
getChartOfAccounts(params
|
|
45
|
-
getBalanceOfAccounts(filter: components['schemas']['AccountBalanceFilter'], params
|
|
46
|
-
getEmployees(params
|
|
47
|
-
getOutstandings(params:
|
|
21
|
+
getAnalyticPlans(params?: GetAnalyticPlansParams): RequestData<components['schemas']['AnalyticPlanItem'][]>;
|
|
22
|
+
getClients(params?: GetClientsParams): RequestData<components['schemas']['ClientItemOut'][]>;
|
|
23
|
+
createClient(client: components['schemas']['ClientItemIn'], params?: operations['accounting_create_client']['parameters']['query']): RequestData<components['schemas']['ClientItemOut']>;
|
|
24
|
+
getClient(clientId: string, params?: operations['accounting_get_client']['parameters']['query']): RequestData<components['schemas']['ClientItemOut']>;
|
|
25
|
+
updateClient(clientId: string, client: components['schemas']['ClientItemUpdate'], params?: operations['accounting_update_client']['parameters']['query']): RequestData<components['schemas']['ClientItemOut']>;
|
|
26
|
+
getSuppliers(params?: GetSuppliersParams): RequestData<components['schemas']['SupplierItemOut'][]>;
|
|
27
|
+
createSupplier(supplier: components['schemas']['SupplierItemIn'], params?: operations['accounting_create_supplier']['parameters']['query']): RequestData<components['schemas']['SupplierItemOut']>;
|
|
28
|
+
getSupplier(supplierId: string, params?: operations['accounting_get_supplier']['parameters']['query']): RequestData<components['schemas']['SupplierItemOut']>;
|
|
29
|
+
updateSupplier(supplierId: string, supplier: components['schemas']['SupplierItemUpdate'], params?: operations['accounting_update_supplier']['parameters']['query']): RequestData<components['schemas']['SupplierItemOut']>;
|
|
30
|
+
createInvoice(invoice: components['schemas']['InvoiceItemInMonoAnalyticPlan'], params?: operations['accounting_create_invoice']['parameters']['query']): RequestData<components['schemas']['InvoiceItemOutMonoAnalyticPlan']>;
|
|
31
|
+
createInvoiceWithMultiplePlans(invoice: components['schemas']['InvoiceItemInMultiAnalyticPlans'], params?: operations['accounting_create_invoice_multiple_plans']['parameters']['query']): RequestData<components['schemas']['InvoiceItemOutMultiAnalyticPlans']>;
|
|
32
|
+
getInvoicesByType(invoice_type: components['schemas']['app__routers__accounting__InvoiceType'], params?: GetInvoicesByTypeParams): RequestData<components['schemas']['InvoiceItemOutMonoAnalyticPlan'][]>;
|
|
33
|
+
getInvoice(invoiceId: string, params?: operations['accounting_get_invoice']['parameters']['query']): RequestData<components['schemas']['InvoiceItemOutMonoAnalyticPlan']>;
|
|
34
|
+
getInvoiceWithMultiplePlans(invoiceId: string, params?: operations['accounting_get_invoice_multi_analytic_plans']['parameters']['query']): RequestData<components['schemas']['InvoiceItemOutMultiAnalyticPlans']>;
|
|
35
|
+
getInvoicesByTypeWithMultiplePlans(invoice_type: components['schemas']['app__routers__accounting__InvoiceType'], params?: GetInvoicesByTypeWithMultiplePlansParams): RequestData<components['schemas']['InvoiceItemOutMultiAnalyticPlans'][]>;
|
|
36
|
+
createAnalyticAccount(analyticAccount: components['schemas']['AnalyticAccountItemIn'], params?: operations['accounting_create_analytic_account']['parameters']['query']): RequestData<components['schemas']['AnalyticAccountItemOut']>;
|
|
37
|
+
getAnalyticAccounts(params?: GetAnalyticAccountsParams): RequestData<components['schemas']['AnalyticAccountItemOut'][]>;
|
|
38
|
+
createAnalyticAccountWithMultiplePlans(analytic_plan: string, analyticAccount: components['schemas']['AnalyticAccountItemIn'], params?: operations['accounting_create_analytic_account_multi_plans']['parameters']['query']): RequestData<components['schemas']['AnalyticAccountItemOutMultiAnalyticPlans']>;
|
|
39
|
+
getAnalyticAccount(analytic_account_id: string, params?: operations['accounting_get_analytic_account']['parameters']['query']): RequestData<components['schemas']['AnalyticAccountItemOut']>;
|
|
40
|
+
updateAnalyticAccount(analytic_account_id: string, analyticAccount: components['schemas']['AnalyticAccountItemUpdate'], params?: operations['accounting_update_analytic_account']['parameters']['query']): RequestData<components['schemas']['AnalyticAccountItemOut']>;
|
|
41
|
+
getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params?: operations['accounting_get_analytic_account_multi_plans']['parameters']['query']): RequestData<components['schemas']['AnalyticAccountItemOutMultiAnalyticPlans']>;
|
|
42
|
+
updateAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, analyticAccount: components['schemas']['AnalyticAccountItemUpdate'], params?: operations['accounting_update_analytic_account_multi_plans']['parameters']['query']): RequestData<components['schemas']['AnalyticAccountItemOutMultiAnalyticPlans']>;
|
|
43
|
+
getAnalyticAccountsWithMultiplePlans(params?: GetAnalyticAccountsWithMultiplePlansParams): RequestData<components['schemas']['AnalyticAccountItemOutMultiAnalyticPlans'][]>;
|
|
44
|
+
getJournalEntries(params: GetJournalEntriesParams): RequestData<components['schemas']['JournalEntryMonoAnalyticPlan'][]>;
|
|
45
|
+
getJournalEntriesWithMultiplePlans(params: GetJournalEntriesWithMultiplePlansParams): RequestData<components['schemas']['JournalEntryMultiAnalyticPlan'][]>;
|
|
46
|
+
getPaymentsByInvoiceId(invoice_id: string, params?: operations['accounting_get_payments_by_invoice']['parameters']['query']): RequestData<components['schemas']['Payment'][]>;
|
|
47
|
+
getJournals(params?: GetJournalsParams): RequestData<components['schemas']['Journal'][]>;
|
|
48
|
+
getVatCodes(params?: GetVatCodesParams): RequestData<components['schemas']['app__routers__accounting__VatCode'][]>;
|
|
49
|
+
getMiscOperations(params?: GetMiscOperationsParams): RequestData<components['schemas']['MiscellaneousOperationOut'][]>;
|
|
50
|
+
createMiscOperation(operation: components['schemas']['MiscellaneousOperationIn'], params?: operations['accounting_create_miscellaneous_operation']['parameters']['query']): RequestData<components['schemas']['MiscellaneousOperationOut']>;
|
|
51
|
+
getMiscOperation(operation_id: string, params?: operations['accounting_get_miscellaneous_operation']['parameters']['query']): RequestData<components['schemas']['MiscellaneousOperationOut']>;
|
|
52
|
+
attachPDF(invoice_id: string, attachment: components['schemas']['AttachmentItem'], params?: operations['accounting_add_attachment']['parameters']['query']): RequestData<operations['accounting_add_attachment']['responses'][201]>;
|
|
53
|
+
getAttachments(params: GetAttachmentsParams): RequestData<components['schemas']['AttachmentItem'][]>;
|
|
54
|
+
getChartOfAccounts(params?: GetChartOfAccountsParams): RequestData<components['schemas']['AccountItem'][]>;
|
|
55
|
+
getBalanceOfAccounts(filter: components['schemas']['AccountBalanceFilter'], params?: GetBalanceOfAccountsParams): RequestData<components['schemas']['AccountBalance'][]>;
|
|
56
|
+
getEmployees(params?: GetEmployeesParams): RequestData<components['schemas']['EmployeeItem'][]>;
|
|
57
|
+
getOutstandings(params: GetOutstandingsParams): RequestData<components['schemas']['OutstandingItem'][]>;
|
|
48
58
|
/**
|
|
49
59
|
* @deprecated replaced by createFinancialEntry
|
|
50
60
|
*/
|
|
51
|
-
createFinancialEntryOld(financial_entry: components['schemas']['FinancialEntryItemInOld'], params
|
|
52
|
-
createFinancialEntry(financial_entry: components['schemas']['FinancialEntryItemIn'], params
|
|
61
|
+
createFinancialEntryOld(financial_entry: components['schemas']['FinancialEntryItemInOld'], params?: operations['accounting_create_financial_entry']['parameters']['query']): RequestData<components['schemas']['FinancialEntryItemOutOld']>;
|
|
62
|
+
createFinancialEntry(financial_entry: components['schemas']['FinancialEntryItemIn'], params?: operations['accounting_create_financial_entries']['parameters']['query']): RequestData<components['schemas']['FinancialEntryItemOut'][]>;
|
|
53
63
|
createJournalEntryOld(journal_entry: components['schemas']['JournalEntryIn']): RequestData<components['schemas']['JournalEntryMultiAnalyticPlan']>;
|
|
54
|
-
createJournalEntry(journal_entry: components['schemas']['GenericJournalEntry'], params
|
|
55
|
-
matchEntries(body: components['schemas']['MatchingIn'], params
|
|
64
|
+
createJournalEntry(journal_entry: components['schemas']['GenericJournalEntry'], params?: operations['accounting_create_generic_journal_entry']['parameters']['query']): RequestData<components['schemas']['JournalEntryMultiAnalyticPlan']>;
|
|
65
|
+
matchEntries(body: components['schemas']['MatchingIn'], params?: operations['accounting_match_entries']['parameters']['query']): RequestData<components['schemas']['MatchingOut']>;
|
|
56
66
|
getFolders(): RequestData<components['schemas']['FolderItem'][]>;
|
|
57
67
|
};
|
|
58
68
|
export { accountingFactory };
|