@ptkl/sdk 0.10.1 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) hide show
  1. package/dist/{index.iife.js → index.0.10.js} +1206 -238
  2. package/dist/index.0.9.js +2849 -0
  3. package/dist/package.json +12 -7
  4. package/dist/v0.10/api/component.d.ts +128 -0
  5. package/dist/v0.10/api/componentUtils.d.ts +7 -0
  6. package/dist/v0.10/api/index.d.ts +22 -0
  7. package/dist/v0.10/api/integrations/dms.d.ts +469 -0
  8. package/dist/v0.10/api/integrations/minimax.d.ts +289 -0
  9. package/dist/v0.10/api/integrations/payments.d.ts +40 -0
  10. package/dist/{types → v0.10}/api/integrations.d.ts +2 -0
  11. package/dist/{types → v0.10}/api/integrationsBaseClient.d.ts +3 -0
  12. package/dist/{types → v0.10}/api/platform.d.ts +2 -2
  13. package/dist/v0.10/apiUser.d.ts +9 -0
  14. package/dist/v0.10/apps.d.ts +8 -0
  15. package/dist/v0.10/baseClient.d.ts +6 -0
  16. package/dist/{types/api → v0.10}/component.d.ts +39 -4
  17. package/dist/v0.10/componentUtils.d.ts +7 -0
  18. package/dist/v0.10/config.d.ts +14 -0
  19. package/dist/v0.10/forge.d.ts +7 -0
  20. package/dist/v0.10/functions.d.ts +23 -0
  21. package/dist/{index.cjs.js → v0.10/index.cjs.js} +1206 -238
  22. package/dist/v0.10/index.d.ts +21 -0
  23. package/dist/{index.esm.js → v0.10/index.esm.js} +1205 -235
  24. package/dist/{types/api → v0.10}/integrations/dms.d.ts +11 -1
  25. package/dist/v0.10/integrations/invoicing.d.ts +6 -0
  26. package/dist/v0.10/integrations/minimax.d.ts +289 -0
  27. package/dist/v0.10/integrations/payments.d.ts +40 -0
  28. package/dist/v0.10/integrations/serbiaUtil.d.ts +10 -0
  29. package/dist/v0.10/integrations/vpfr.d.ts +4 -0
  30. package/dist/v0.10/integrations.d.ts +22 -0
  31. package/dist/v0.10/integrationsBaseClient.d.ts +11 -0
  32. package/dist/v0.10/platform.d.ts +34 -0
  33. package/dist/v0.10/platformBaseClient.d.ts +27 -0
  34. package/dist/v0.10/project.d.ts +146 -0
  35. package/dist/v0.10/ratchet.d.ts +196 -0
  36. package/dist/v0.10/sandbox.d.ts +14 -0
  37. package/dist/v0.10/system.d.ts +4 -0
  38. package/dist/v0.10/thunder.d.ts +13 -0
  39. package/dist/v0.10/types/component.d.ts +110 -0
  40. package/dist/{types → v0.10}/types/integrations.d.ts +114 -1
  41. package/dist/v0.10/users.d.ts +69 -0
  42. package/dist/v0.10/workflow.d.ts +5 -0
  43. package/dist/v0.9/api/apiUser.d.ts +9 -0
  44. package/dist/v0.9/api/apps.d.ts +8 -0
  45. package/dist/v0.9/api/baseClient.d.ts +6 -0
  46. package/dist/v0.9/api/component.d.ts +136 -0
  47. package/dist/v0.9/api/componentUtils.d.ts +7 -0
  48. package/dist/v0.9/api/config.d.ts +14 -0
  49. package/dist/v0.9/api/forge.d.ts +7 -0
  50. package/dist/v0.9/api/functions.d.ts +23 -0
  51. package/dist/v0.9/api/index.d.ts +24 -0
  52. package/dist/v0.9/api/integrations/dms.d.ts +419 -0
  53. package/dist/v0.9/api/integrations/invoicing.d.ts +6 -0
  54. package/dist/v0.9/api/integrations/minimax.d.ts +289 -0
  55. package/dist/v0.9/api/integrations/payments.d.ts +40 -0
  56. package/dist/v0.9/api/integrations/serbiaUtil.d.ts +10 -0
  57. package/dist/v0.9/api/integrations/vpfr.d.ts +4 -0
  58. package/dist/v0.9/api/integrations.d.ts +22 -0
  59. package/dist/v0.9/api/integrationsBaseClient.d.ts +11 -0
  60. package/dist/v0.9/api/platform.d.ts +34 -0
  61. package/dist/v0.9/api/platformBaseClient.d.ts +27 -0
  62. package/dist/v0.9/api/project.d.ts +146 -0
  63. package/dist/v0.9/api/ratchet.d.ts +196 -0
  64. package/dist/v0.9/api/sandbox.d.ts +14 -0
  65. package/dist/v0.9/api/system.d.ts +4 -0
  66. package/dist/v0.9/api/thunder.d.ts +13 -0
  67. package/dist/v0.9/api/users.d.ts +69 -0
  68. package/dist/v0.9/api/workflow.d.ts +5 -0
  69. package/dist/v0.9/apiUser.d.ts +9 -0
  70. package/dist/v0.9/apps.d.ts +8 -0
  71. package/dist/v0.9/baseClient.d.ts +6 -0
  72. package/dist/v0.9/component.d.ts +128 -0
  73. package/dist/v0.9/componentUtils.d.ts +7 -0
  74. package/dist/v0.9/config.d.ts +14 -0
  75. package/dist/v0.9/forge.d.ts +7 -0
  76. package/dist/v0.9/functions.d.ts +23 -0
  77. package/dist/v0.9/index.cjs.js +21811 -0
  78. package/dist/v0.9/index.d.ts +21 -0
  79. package/dist/v0.9/index.esm.js +2820 -0
  80. package/dist/v0.9/integrations/dms.d.ts +469 -0
  81. package/dist/v0.9/integrations/invoicing.d.ts +6 -0
  82. package/dist/v0.9/integrations/minimax.d.ts +289 -0
  83. package/dist/v0.9/integrations/payments.d.ts +40 -0
  84. package/dist/v0.9/integrations/serbiaUtil.d.ts +10 -0
  85. package/dist/v0.9/integrations/vpfr.d.ts +4 -0
  86. package/dist/v0.9/integrations.d.ts +22 -0
  87. package/dist/v0.9/integrationsBaseClient.d.ts +11 -0
  88. package/dist/v0.9/platform.d.ts +34 -0
  89. package/dist/v0.9/platformBaseClient.d.ts +27 -0
  90. package/dist/v0.9/project.d.ts +146 -0
  91. package/dist/v0.9/ratchet.d.ts +196 -0
  92. package/dist/v0.9/sandbox.d.ts +14 -0
  93. package/dist/v0.9/system.d.ts +4 -0
  94. package/dist/v0.9/thunder.d.ts +13 -0
  95. package/dist/v0.9/types/component.d.ts +116 -0
  96. package/dist/v0.9/types/config.d.ts +11 -0
  97. package/dist/v0.9/types/integrations.d.ts +321 -0
  98. package/dist/v0.9/types/project.d.ts +64 -0
  99. package/dist/v0.9/types/ratchet.d.ts +38 -0
  100. package/dist/v0.9/types/users.d.ts +66 -0
  101. package/dist/v0.9/users.d.ts +69 -0
  102. package/dist/v0.9/util/detectEnv.d.ts +4 -0
  103. package/dist/v0.9/workflow.d.ts +5 -0
  104. package/package.json +12 -7
  105. package/dist/monaco.d.ts +0 -887
  106. package/dist/types/api/componentUtils.d.ts +0 -5
  107. package/dist/types/api/index.d.ts +0 -13
  108. package/dist/types/api/integrations/media.d.ts +0 -17
  109. package/dist/types/api/integrations/payments.d.ts +0 -7
  110. package/dist/types/api/roles.d.ts +0 -9
  111. package/dist/types/index.d.ts +0 -29
  112. package/dist/types/types/component.d.ts +0 -50
  113. package/dist/types/types/media.d.ts +0 -103
  114. /package/dist/{types → v0.10}/api/apiUser.d.ts +0 -0
  115. /package/dist/{types → v0.10}/api/apps.d.ts +0 -0
  116. /package/dist/{types → v0.10}/api/baseClient.d.ts +0 -0
  117. /package/dist/{types → v0.10}/api/config.d.ts +0 -0
  118. /package/dist/{types → v0.10}/api/forge.d.ts +0 -0
  119. /package/dist/{types → v0.10}/api/functions.d.ts +0 -0
  120. /package/dist/{types → v0.10}/api/integrations/invoicing.d.ts +0 -0
  121. /package/dist/{types → v0.10}/api/integrations/serbiaUtil.d.ts +0 -0
  122. /package/dist/{types → v0.10}/api/integrations/vpfr.d.ts +0 -0
  123. /package/dist/{types → v0.10}/api/platformBaseClient.d.ts +0 -0
  124. /package/dist/{types → v0.10}/api/project.d.ts +0 -0
  125. /package/dist/{types → v0.10}/api/ratchet.d.ts +0 -0
  126. /package/dist/{types → v0.10}/api/sandbox.d.ts +0 -0
  127. /package/dist/{types → v0.10}/api/system.d.ts +0 -0
  128. /package/dist/{types → v0.10}/api/thunder.d.ts +0 -0
  129. /package/dist/{types → v0.10}/api/users.d.ts +0 -0
  130. /package/dist/{types → v0.10}/api/workflow.d.ts +0 -0
  131. /package/dist/{types → v0.10}/types/config.d.ts +0 -0
  132. /package/dist/{types → v0.10}/types/project.d.ts +0 -0
  133. /package/dist/{types → v0.10}/types/ratchet.d.ts +0 -0
  134. /package/dist/{types → v0.10}/types/users.d.ts +0 -0
  135. /package/dist/{types → v0.10}/util/detectEnv.d.ts +0 -0
@@ -0,0 +1,289 @@
1
+ import IntegrationsBaseClient from "../integrationsBaseClient";
2
+ import { MinimaxAccount, MinimaxAddress, MinimaxAnalytic, MinimaxBankAccount, MinimaxContact, MinimaxCountry, MinimaxCurrency, MinimaxCustomer, MinimaxDashboardData, MinimaxDocument, MinimaxDocumentAttachment, MinimaxDocumentNumbering, MinimaxEFaktura, MinimaxEmployee, MinimaxExchangeRate, MinimaxInbox, MinimaxInboxAttachment, MinimaxIssuedInvoice, MinimaxIssuedInvoicePosting, MinimaxItem, MinimaxJournal, MinimaxJournalEntry, MinimaxJournalType, MinimaxJournalVatEntry, MinimaxLeanCustomer, MinimaxLeanDocument, MinimaxLeanEmployee, MinimaxLeanIssuedInvoice, MinimaxLeanIssuedInvoicePosting, MinimaxLeanItem, MinimaxLeanJournal, MinimaxLeanOrder, MinimaxLeanReceivedInvoice, MinimaxLeanStockEntry, MinimaxOrder, MinimaxOrganisation, MinimaxOutbox, MinimaxPaymentMethod, MinimaxPayrollSettings, MinimaxPostalCode, MinimaxProductGroup, MinimaxPurposeCode, MinimaxReceivedInvoice, MinimaxReceivedInvoiceAttachment, MinimaxReference, MinimaxReportTemplate, MinimaxSearchParams, MinimaxSearchResult, MinimaxStock, MinimaxStockEntry, MinimaxSyncReference, MinimaxSyncSearchParams, MinimaxUser, MinimaxVatAccountingType, MinimaxVatRate, MinimaxWarehouse } from "../../types/integrations/minimax";
3
+ export default class Minimax extends IntegrationsBaseClient {
4
+ settings(): Promise<import("axios").AxiosResponse<any, any>>;
5
+ getAccounts(userId: string, organisationId: number, params?: MinimaxSearchParams<MinimaxAccount>): Promise<MinimaxSearchResult<MinimaxAccount>>;
6
+ getAccount(userId: string, organisationId: number, accountId: number): Promise<MinimaxAccount>;
7
+ getAccountByCode(userId: string, organisationId: number, code: string): Promise<MinimaxAccount>;
8
+ getAccountByContent(userId: string, organisationId: number, content: string): Promise<MinimaxAccount>;
9
+ getAccountsForSync(userId: string, organisationId: number, params?: MinimaxSyncSearchParams<MinimaxAccount>): Promise<MinimaxSearchResult<MinimaxSyncReference>>;
10
+ /** ADDRESSES */
11
+ getAddresses(userId: string, organisationId: number, customerId: number, params?: MinimaxSearchParams<MinimaxAddress>): Promise<MinimaxSearchResult<MinimaxAddress>>;
12
+ newAddress(userId: string, organisationId: number, customerId: number, address: MinimaxAddress): Promise<{}>;
13
+ deleteAddress(userId: string, organisationId: number, customerId: number, addressId: number): Promise<{}>;
14
+ getAddress(userId: string, organisationId: number, customerId: number, addressId: number): Promise<MinimaxAddress>;
15
+ updateAddress(userId: string, organisationId: number, customerId: number, address: MinimaxAddress): Promise<{}>;
16
+ getAddressesForSync(userId: string, organisationId: number, customerId: number, params?: MinimaxSyncSearchParams<MinimaxAddress>): Promise<MinimaxSearchResult<MinimaxSyncReference>>;
17
+ /** ANALYTICS */
18
+ getAnalytics(userId: string, organisationId: number, params?: MinimaxSearchParams<MinimaxAnalytic>): Promise<MinimaxSearchResult<MinimaxAnalytic>>;
19
+ newAnalytic(userId: string, organisationId: number, analytic: MinimaxAnalytic): Promise<{}>;
20
+ deleteAnalytic(userId: string, organisationId: number, analyticId: number): Promise<{}>;
21
+ getAnalytic(userId: string, organisationId: number, analyticId: number): Promise<MinimaxAnalytic>;
22
+ updateAnalytic(userId: string, organisationId: number, analytic: MinimaxAnalytic): Promise<{}>;
23
+ getAnalyticsForSync(userId: string, organisationId: number, params?: MinimaxSyncSearchParams<MinimaxAnalytic>): Promise<MinimaxSearchResult<MinimaxSyncReference>>;
24
+ /** BANK ACCOUNTS */
25
+ getBankAccounts(userId: string, organisationId: number, customerId: number, params?: MinimaxSearchParams<MinimaxBankAccount>): Promise<MinimaxSearchResult<MinimaxBankAccount>>;
26
+ newBankAccount(userId: string, organisationId: number, customerId: number, bankAccount: MinimaxBankAccount): Promise<{}>;
27
+ deleteBankAccount(userId: string, organisationId: number, customerId: number, bankAccountId: number): Promise<{}>;
28
+ getBankAccount(userId: string, organisationId: number, customerId: number, bankAccountId: number): Promise<MinimaxBankAccount>;
29
+ updateBankAccount(userId: string, organisationId: number, customerId: number, bankAccount: MinimaxBankAccount): Promise<{}>;
30
+ getBankAccountsForSync(userId: string, organisationId: number, customerId: number, params?: MinimaxSyncSearchParams<MinimaxBankAccount>): Promise<MinimaxSearchResult<MinimaxSyncReference>>;
31
+ /** CONTACTS */
32
+ getCustomerContacts(userId: string, organisationId: number, customerId: number, params?: MinimaxSearchParams<MinimaxContact>): Promise<MinimaxSearchResult<MinimaxContact>>;
33
+ newContact(userId: string, organisationId: number, customerId: number, contact: MinimaxContact): Promise<{}>;
34
+ deleteContact(userId: string, organisationId: number, customerId: number, contactId: number): Promise<{}>;
35
+ getContact(userId: string, organisationId: number, customerId: number, contactId: number): Promise<MinimaxContact>;
36
+ updateContact(userId: string, organisationId: number, customerId: number, contact: MinimaxContact): Promise<{}>;
37
+ getContacts(userId: string, organisationId: number, params?: Omit<MinimaxSearchParams<MinimaxContact>, "SearchString"> & {
38
+ Email?: string;
39
+ }): Promise<MinimaxSearchResult<MinimaxContact>>;
40
+ getContactForSync(userId: string, organisationId: number, customerId: number, params?: MinimaxSyncSearchParams<MinimaxContact>): Promise<MinimaxSearchResult<MinimaxSyncReference>>;
41
+ /** COUNTRIES */
42
+ getCountries(userId: string, organisationId: number, params?: MinimaxSearchParams<MinimaxCountry>): Promise<MinimaxSearchResult<MinimaxCountry>>;
43
+ getCountry(userId: string, organisationId: number, countryId: number): Promise<MinimaxCountry>;
44
+ getCountryByCode(userId: string, organisationId: number, code: string): Promise<MinimaxCountry>;
45
+ getCountriesForSync(userId: string, organisationId: number, params?: MinimaxSyncSearchParams<MinimaxCountry>): Promise<MinimaxSearchResult<MinimaxSyncReference>>;
46
+ /** CURRENCIES */
47
+ getCurrencies(userId: string, organisationId: number, params?: MinimaxSearchParams<MinimaxCurrency>): Promise<MinimaxSearchResult<MinimaxCurrency>>;
48
+ getCurrency(userId: string, organisationId: number, currencyId: number): Promise<MinimaxCurrency>;
49
+ getCurrencyByDate(userId: string, organisationId: number, date: Date): Promise<MinimaxCurrency>;
50
+ getCurrencyByCode(userId: string, organisationId: number, code: string): Promise<MinimaxCurrency>;
51
+ getCurrenciesForSync(userId: string, organisationId: number, params?: MinimaxSyncSearchParams<MinimaxCurrency>): Promise<MinimaxSearchResult<MinimaxSyncReference>>;
52
+ /** CUSTOMERS */
53
+ getCustomers(userId: string, organisationId: number, params?: MinimaxSearchParams<MinimaxLeanCustomer>): Promise<MinimaxSearchResult<MinimaxLeanCustomer>>;
54
+ newCustomer(userId: string, organisationId: number, customer: MinimaxCustomer): Promise<{}>;
55
+ deleteCusomter(userId: string, organisationId: number, customerId: number): Promise<{}>;
56
+ getCustomer(userId: string, organisationId: number, customerId: number): Promise<MinimaxCustomer>;
57
+ updateCustomer(userId: string, organisationId: number, customer: MinimaxCustomer): Promise<{}>;
58
+ getCustomerByCode(userId: string, organisationId: number, code: string): Promise<MinimaxCustomer>;
59
+ newCustomerByTaxNumber(userId: string, organisationId: number, taxNumber: string): Promise<{}>;
60
+ getCustomersForSync(userId: string, organisationId: number, params?: MinimaxSyncSearchParams<MinimaxCustomer>): Promise<MinimaxSearchResult<MinimaxSyncReference>>;
61
+ /** DASHBOARDS */
62
+ getDashboardsData(userId: string, organisationId: number): Promise<MinimaxDashboardData>;
63
+ /** DOCUMENTS */
64
+ getDocuments(userId: string, organisationId: number, params?: MinimaxSearchParams<MinimaxLeanDocument>): Promise<MinimaxSearchResult<MinimaxLeanDocument>>;
65
+ newDocument(userId: string, organisationId: number, document: MinimaxDocument): Promise<{}>;
66
+ deleteDocument(userId: string, organisationId: number, documentId: number): Promise<{}>;
67
+ getDocument(userId: string, organisationId: number, documentId: number): Promise<MinimaxDocument>;
68
+ updateDocument(userId: string, organisationId: number, document: MinimaxDocument): Promise<{}>;
69
+ deleteDocumentAttachment(userId: string, organisationId: number, documentId: number, documentAttachmentId: number): Promise<{}>;
70
+ getDocumentAttachment(userId: string, organisationId: number, documentId: number, documentAttachmentId: number): Promise<MinimaxDocumentAttachment>;
71
+ updateDocumentAttachment(userId: string, organisationId: number, documentId: number, documentAttachment: MinimaxDocumentAttachment): Promise<{}>;
72
+ newDocumentAttachment(userId: string, organisationId: number, documentId: number, documentAttachment: MinimaxDocumentAttachment): Promise<{}>;
73
+ getDocumentsForSync(userId: string, organisationId: number, params?: MinimaxSyncSearchParams<MinimaxDocument>): Promise<MinimaxSearchResult<MinimaxSyncReference>>;
74
+ /** DOCUMENT NUMBERINGS */
75
+ getDocumentNumberings(userId: string, organisationId: number, params?: MinimaxSearchParams<MinimaxDocumentNumbering>): Promise<MinimaxSearchResult<MinimaxDocumentNumbering>>;
76
+ getDocumentNumbering(userId: string, organisationId: number, documentNumberingId: number): Promise<MinimaxDocumentNumbering>;
77
+ /** EFAKTURA */
78
+ getEFakturaList(userId: string, params?: Omit<MinimaxSearchParams<MinimaxEFaktura>, "SearchString"> & {
79
+ RegistrationNumber: string;
80
+ BudgetUserNumber: string;
81
+ VatIdentificationNumber: string;
82
+ Name: string;
83
+ }): Promise<MinimaxSearchResult<MinimaxEFaktura>>;
84
+ /** EMPLOYEES */
85
+ getEmployees(userId: string, organisationId: number, params?: MinimaxSearchParams<MinimaxLeanEmployee>): Promise<MinimaxSearchResult<MinimaxLeanEmployee>>;
86
+ newEmployee(userId: string, organisationId: number, employee: MinimaxEmployee): Promise<{}>;
87
+ deleteEmployee(userId: string, organisationId: number, employeeId: number): Promise<{}>;
88
+ getEmployee(userId: string, organisationId: number, employeeId: number): Promise<MinimaxEmployee>;
89
+ updateEmployee(userId: string, organisationId: number, employee: MinimaxEmployee): Promise<{}>;
90
+ getEmployeesForSync(userId: string, organisationId: number, params?: MinimaxSyncSearchParams<MinimaxEmployee>): Promise<MinimaxSearchResult<MinimaxSyncReference>>;
91
+ /** EXCHANGE RATES */
92
+ getExchangeRate(userId: string, organisationId: number, currencyId: number): Promise<MinimaxExchangeRate>;
93
+ getExchangeRateByCode(userId: string, organisationId: number, currencyCode: string): Promise<MinimaxExchangeRate>;
94
+ /** INBOX */
95
+ getInboxes(userId: string, organisationId: number, params?: MinimaxSearchParams<MinimaxInbox>): Promise<MinimaxSearchResult<MinimaxInbox>>;
96
+ newInbox(userId: string, organisationId: number, inbox: MinimaxInbox): Promise<{}>;
97
+ deleteInbox(userId: string, organisationId: number, inboxId: number): Promise<{}>;
98
+ getInbox(userId: string, organisationId: number, inboxId: number): Promise<MinimaxInbox>;
99
+ newInboxAttachment(userId: string, organisationId: number, inboxId: number, inboxAttachment: MinimaxInboxAttachment): Promise<{}>;
100
+ deleteInboxAttachment(userId: string, organisationId: number, inboxId: number, inboxAttachmentId: number): Promise<{}>;
101
+ actionOnInbox(userId: string, organisationId: number, inboxId: number, action: "approve" | "reject"): Promise<{}>;
102
+ /** ISSUED INVOICE */
103
+ getIssuedInvoices(userId: string, organisationId: number, params?: MinimaxSearchParams<MinimaxLeanIssuedInvoice>): Promise<MinimaxSearchResult<MinimaxLeanIssuedInvoice>>;
104
+ newIssuedInvoice(userId: string, organisationId: number, issuedInvoice: MinimaxIssuedInvoice): Promise<{}>;
105
+ deleteIssuedInvoice(userId: string, organisationId: number, issuedInvoiceId: number): Promise<{}>;
106
+ getIssuedInvoice(userId: string, organisationId: number, issuedInvoiceId: number): Promise<MinimaxIssuedInvoice>;
107
+ updateIssuedInvoice(userId: string, organisationId: number, issuedInvoice: MinimaxIssuedInvoice): Promise<{}>;
108
+ actionOnIssuedInvoice(userId: string, organisationId: number, issuedInvoiceId: number, action: "issue" | "issueCancellation" | "generatepdf" | "copytocreditnote" | "copyToReverse" | "issueAndGeneratepdf" | "sendEInvoice"): Promise<{}>;
109
+ getIssuedInvoicesForSync(userId: string, organisationId: number, params?: MinimaxSyncSearchParams<MinimaxLeanIssuedInvoice>): Promise<MinimaxSearchResult<MinimaxSyncReference>>;
110
+ getPaymentMethodsOnIssuedInvoices(userId: string, organisationId: number, params?: MinimaxSyncSearchParams<MinimaxPaymentMethod>): Promise<MinimaxSearchResult<MinimaxSyncReference>>;
111
+ /** ISSUED INVOICE POSTING */
112
+ getIssuedInvoicePostings(userId: string, organisationId: number, params?: MinimaxSearchParams<MinimaxLeanIssuedInvoicePosting>): Promise<MinimaxSearchResult<MinimaxLeanIssuedInvoicePosting>>;
113
+ newIssuedInvoicePosting(userId: string, organisationId: number, issuedInvoicePosting: MinimaxIssuedInvoicePosting): Promise<{}>;
114
+ deleteIssuedInvoicePosting(userId: string, organisationId: number, issuedInvoicePostingId: number): Promise<{}>;
115
+ getIssuedInvoicePosting(userId: string, organisationId: number, issuedInvoicePostingId: number): Promise<MinimaxIssuedInvoicePosting>;
116
+ getPaymentMethodsOnIssuedInvoicePostings(userId: string, organisationId: number, params?: MinimaxSyncSearchParams<MinimaxPaymentMethod>): Promise<MinimaxSearchResult<MinimaxSyncReference>>;
117
+ actionOnIssuedInvoicePosting(userId: string, organisationId: number, issuedInvoicePostingId: number, action: "issue" | "issueCancellation"): Promise<{}>;
118
+ /** ITEMS */
119
+ getItems(userId: string, organisationId: number, params?: MinimaxSearchParams<MinimaxLeanItem>): Promise<MinimaxSearchResult<MinimaxLeanItem>>;
120
+ newItem(userId: string, organisationId: number, item: MinimaxItem): Promise<{}>;
121
+ deleteItem(userId: string, organisationId: number, itemId: number): Promise<{}>;
122
+ getItem(userId: string, organisationId: number, itemId: number): Promise<MinimaxItem>;
123
+ updateItem(userId: string, organisationId: number, item: MinimaxItem): Promise<{}>;
124
+ getItemByCode(userId: string, organisationId: number, code: string): Promise<MinimaxItem>;
125
+ getItemSettings(userId: string, organisationId: number, code: string): Promise<{
126
+ PricesIncludeVAT: string;
127
+ }>;
128
+ getItemData(userId: string, organisationId: number, params: {
129
+ WarehouseId: number;
130
+ CustomerId: number;
131
+ ItemId: number;
132
+ }): Promise<{
133
+ Rows: (Pick<MinimaxItem, "Title" | "Code" | "Price" | "UnitOfMeasurement"> & {
134
+ Item: MinimaxReference;
135
+ Warehouse: MinimaxReference;
136
+ Customer: MinimaxReference;
137
+ })[];
138
+ ValidationMessages: {
139
+ Message: string;
140
+ PropertyName: string;
141
+ }[];
142
+ }>;
143
+ getItemPricelist(userId: string, organisationId: number, params: {
144
+ WarehouseId: number;
145
+ CustomerId: number;
146
+ ItemId: number;
147
+ }): Promise<{
148
+ Rows: (Pick<MinimaxItem, "Title" | "Code" | "UnitOfMeasurement"> & {
149
+ PriceWithoutVAT: number;
150
+ PriceWithVAT: number;
151
+ Item: MinimaxReference;
152
+ Warehouse: MinimaxReference;
153
+ Customer: MinimaxReference;
154
+ })[];
155
+ ValidationMessages: {
156
+ Message: string;
157
+ PropertyName: string;
158
+ }[];
159
+ }>;
160
+ getItemsForSync(userId: string, organisationId: number, params?: MinimaxSyncSearchParams<MinimaxLeanItem>): Promise<MinimaxSearchResult<MinimaxSyncReference>>;
161
+ /** JOURNALS */
162
+ getJournals(userId: string, organisationId: number, params?: MinimaxSearchParams<MinimaxLeanJournal>): Promise<MinimaxSearchResult<MinimaxLeanJournal>>;
163
+ newJournal(userId: string, organisationId: number, journal: MinimaxJournal): Promise<{}>;
164
+ deleteJournal(userId: string, organisationId: number, journalId: number): Promise<{}>;
165
+ getJournal(userId: string, organisationId: number, journalId: number): Promise<MinimaxJournal>;
166
+ updateJournal(userId: string, organisationId: number, journal: MinimaxJournal): Promise<{}>;
167
+ deleteJournalVatEntry(userId: string, organisationId: number, journalId: number, vatId: number): Promise<{}>;
168
+ getJournalVatEntry(userId: string, organisationId: number, journalId: number, vatId: number): Promise<MinimaxJournalVatEntry>;
169
+ updateJournalVatEntry(userId: string, organisationId: number, journalId: number, vatEntry: MinimaxJournalVatEntry): Promise<{}>;
170
+ newJournalVatEntry(userId: string, organisationId: number, journalId: number, vatEntry: MinimaxJournalVatEntry): Promise<{}>;
171
+ getJournalsForSync(userId: string, organisationId: number, params?: MinimaxSyncSearchParams<MinimaxLeanJournal>): Promise<MinimaxSearchResult<MinimaxSyncReference>>;
172
+ getJournalsInVODStandard(userId: string, organisationId: number, params?: MinimaxSyncSearchParams<MinimaxLeanJournal> & {
173
+ DateTo?: string;
174
+ DateFrom?: string;
175
+ JournalId?: number;
176
+ FromJournalId?: number;
177
+ }): Promise<{
178
+ Version: string;
179
+ Content: string;
180
+ StatusCode: string;
181
+ ReasonPhrase: string;
182
+ Headers: string;
183
+ RequestMessage: string;
184
+ IsSuccessStatusCode: string;
185
+ }>;
186
+ getJournalEntries(userId: string, organisationId: number, params?: MinimaxSearchParams<MinimaxJournalEntry>): Promise<MinimaxSearchResult<MinimaxJournalEntry>>;
187
+ /** JOURNAL TYPES */
188
+ getJournalTypes(userId: string, organisationId: number, params?: MinimaxSearchParams<MinimaxJournalType>): Promise<MinimaxSearchResult<MinimaxJournalType>>;
189
+ getJournalType(userId: string, organisationId: number, journalTypeId: number): Promise<MinimaxJournalType>;
190
+ getJournalTypeByCode(userId: string, organisationId: number, code: string): Promise<MinimaxJournalType>;
191
+ getJournalTypesForSync(userId: string, organisationId: number, params?: MinimaxSyncSearchParams<MinimaxJournalType>): Promise<MinimaxSearchResult<MinimaxSyncReference>>;
192
+ /** ORDERS */
193
+ getOrders(userId: string, organisationId: number, params?: MinimaxSearchParams<MinimaxLeanOrder>): Promise<MinimaxSearchResult<MinimaxLeanOrder>>;
194
+ newOrder(userId: string, organisationId: number, order: MinimaxOrder): Promise<{}>;
195
+ deleteOrder(userId: string, organisationId: number, orderId: number): Promise<{}>;
196
+ getOrder(userId: string, organisationId: number, orderId: number): Promise<MinimaxOrder>;
197
+ updateOrder(userId: string, organisationId: number, order: MinimaxOrder): Promise<{}>;
198
+ actionGetOnOrder(userId: string, organisationId: number, orderId: number, action: "getorderpdf", params?: {
199
+ rowVersion?: string;
200
+ }): Promise<{}>;
201
+ actionPutOnOrder(userId: string, organisationId: number, orderId: number, action: "confirm" | "cancelConfirmation" | "complete" | "cancelCompletion" | "invalidate" | "cancelInvalidation" | "createissuedinvoice" | "generatepdf", params?: {
202
+ rowVersion?: string;
203
+ }): Promise<{}>;
204
+ getOrdersForSync(userId: string, organisationId: number, params?: MinimaxSyncSearchParams<MinimaxLeanOrder>): Promise<MinimaxSearchResult<MinimaxSyncReference>>;
205
+ /** ORGANISATIONS */
206
+ getOrganisation(userId: string, organisationId: number): Promise<MinimaxOrganisation>;
207
+ getAllOrganisations(userId: string, params: {
208
+ startRowIndex: number;
209
+ endRowIndex: number;
210
+ searchString: string;
211
+ }): Promise<MinimaxSearchResult<MinimaxOrganisation>>;
212
+ /** OUTBOX */
213
+ getAllOuboxes(userId: string, organisationId: number, params: MinimaxSearchParams<MinimaxOutbox> & {
214
+ OutboxType?: string;
215
+ OutboxImportStatus?: string;
216
+ OutboxDateFrom?: string;
217
+ OutboxDateTo?: string;
218
+ }): Promise<MinimaxSearchResult<MinimaxOutbox>>;
219
+ getOutbox(userId: string, organisationId: number, outboxId: number): Promise<MinimaxOutbox>;
220
+ /** PAYMENT METHODS */
221
+ getPaymentMethods(userId: string, organisationId: number, params?: MinimaxSyncSearchParams<MinimaxPaymentMethod>): Promise<MinimaxSearchResult<MinimaxSyncReference>>;
222
+ /** PAYROLL SETTINGS */
223
+ getPayrollSettingsByCode(userId: string, code: string): Promise<MinimaxPayrollSettings>;
224
+ /** POSTAL CODE */
225
+ getPostalCodesByCountry(userId: string, organisationId: number, countryId: number, params?: MinimaxSearchParams<MinimaxPostalCode>): Promise<MinimaxSearchResult<MinimaxPostalCode>>;
226
+ getPostalCode(userId: string, organisationId: number, postalCodeId: number): Promise<MinimaxPostalCode>;
227
+ getPostalCodesForSync(userId: string, organisationId: number, params?: MinimaxSyncSearchParams<MinimaxPostalCode>): Promise<MinimaxSearchResult<MinimaxSyncReference>>;
228
+ /** PRODUCT GROUPS */
229
+ getProductGroups(userId: string, organisationId: number, params?: MinimaxSearchParams<MinimaxProductGroup>): Promise<MinimaxSearchResult<MinimaxProductGroup>>;
230
+ newProductGroup(userId: string, organisationId: number, productGroup: MinimaxProductGroup): Promise<{}>;
231
+ deleteProductGroup(userId: string, organisationId: number, productGroupId: number): Promise<{}>;
232
+ getProductGroup(userId: string, organisationId: number, productGroupId: number): Promise<MinimaxProductGroup>;
233
+ updateProductGroup(userId: string, organisationId: number, productGroup: MinimaxProductGroup): Promise<{}>;
234
+ getProductGroupsForSync(userId: string, organisationId: number, params?: MinimaxSyncSearchParams<MinimaxProductGroup>): Promise<MinimaxSearchResult<MinimaxSyncReference>>;
235
+ /** PURPOSE CODE */
236
+ getPurposeCodes(userId: string, organisationId: number, params?: MinimaxSearchParams<MinimaxPurposeCode>): Promise<MinimaxSearchResult<MinimaxPurposeCode>>;
237
+ getPurposeCode(userId: string, organisationId: number, purposeCodeId: number): Promise<MinimaxPurposeCode>;
238
+ getPurposeCodeByCode(userId: string, organisationId: number, code: string): Promise<MinimaxPurposeCode>;
239
+ getPurposeCodesForSync(userId: string, organisationId: number, params?: MinimaxSyncSearchParams<MinimaxPurposeCode>): Promise<MinimaxSearchResult<MinimaxSyncReference>>;
240
+ /** RECEIVED INVOICES */
241
+ deleteReceivedInvoice(userId: string, organisationId: number, receivedInvoiceId: number): Promise<{}>;
242
+ getReceivedInvoice(userId: string, organisationId: number, receivedInvoiceId: number): Promise<MinimaxReceivedInvoice>;
243
+ updateReceivedInvoice(userId: string, organisationId: number, receivedInvoice: MinimaxReceivedInvoice): Promise<{}>;
244
+ getReceivedInvoices(userId: string, organisationId: number, params?: MinimaxSearchParams<MinimaxLeanReceivedInvoice>): Promise<MinimaxSearchResult<MinimaxLeanReceivedInvoice>>;
245
+ newReceivedInvoice(userId: string, organisationId: number, receivedInvoice: MinimaxReceivedInvoice): Promise<{}>;
246
+ getReceivedInvoicesAttachments(userId: string, organisationId: number, receivedInvoiceId: number, params?: MinimaxSearchParams<MinimaxReceivedInvoiceAttachment>): Promise<MinimaxSearchResult<MinimaxReceivedInvoiceAttachment>>;
247
+ newReceivedInvoiceAttachment(userId: string, organisationId: number, receivedInvoiceId: number, attachment: MinimaxReceivedInvoiceAttachment): Promise<{}>;
248
+ /** REPORT TEMPLATES */
249
+ getReportTemplates(userId: string, organisationId: number, params?: MinimaxSearchParams<MinimaxReportTemplate>): Promise<MinimaxSearchResult<MinimaxReportTemplate>>;
250
+ getReportTemplate(userId: string, organisationId: number, reportTemplateId: number): Promise<MinimaxReportTemplate>;
251
+ getReportTemplatesForSync(userId: string, organisationId: number, params?: MinimaxSyncSearchParams<MinimaxReportTemplate>): Promise<MinimaxSearchResult<MinimaxSyncReference>>;
252
+ /** STOCK */
253
+ getStock(userId: string, organisationId: number, params?: MinimaxSearchParams<MinimaxStock>): Promise<MinimaxSearchResult<MinimaxStock>>;
254
+ getStockForItem(userId: string, organisationId: number, itemId: number): Promise<MinimaxStock>;
255
+ /** STOCK ENTRIES */
256
+ getStockEntries(userId: string, organisationId: number, params?: MinimaxSearchParams<MinimaxLeanStockEntry>): Promise<MinimaxSearchResult<MinimaxLeanStockEntry>>;
257
+ newStockEntry(userId: string, organisationId: number, stockEntry: MinimaxStockEntry): Promise<{}>;
258
+ deleteStockEntry(userId: string, organisationId: number, stockEntryId: number): Promise<{}>;
259
+ getStockEntry(userId: string, organisationId: number, stockEntryId: number): Promise<MinimaxStockEntry>;
260
+ updateStockEntry(userId: string, organisationId: number, stockEntry: MinimaxStockEntry): Promise<{}>;
261
+ actionGetOnStockEntry(userId: string, organisationId: number, stockEntryId: number, action: "getDeliveryNotepdf", params?: {
262
+ rowVersion?: string;
263
+ }): Promise<{}>;
264
+ actionPutOnStockEntry(userId: string, organisationId: number, stockEntryId: number, action: "confirm" | "cancelConfirmation", params?: {
265
+ rowVersion?: string;
266
+ }): Promise<{}>;
267
+ /** USERS */
268
+ getCurrentUser(userId: string): Promise<MinimaxUser>;
269
+ getCurrentUserOrgs(userId: string): Promise<MinimaxSearchResult<{
270
+ Organisation: MinimaxReference;
271
+ APIAccess: string;
272
+ MobileAccess: string;
273
+ }>>;
274
+ /** VAT ACCOUNTING TYPES */
275
+ getVatAccountingTypes(userId: string, organisationId: number, params?: MinimaxSearchParams<MinimaxVatAccountingType>): Promise<MinimaxSearchResult<MinimaxVatAccountingType>>;
276
+ getVatAccountingTypesForSync(userId: string, organisationId: number, params?: MinimaxSyncSearchParams<MinimaxVatAccountingType>): Promise<MinimaxSearchResult<MinimaxSyncReference>>;
277
+ /** VAT RATES */
278
+ getVatRates(userId: string, organisationId: number, params?: MinimaxSearchParams<MinimaxVatRate>): Promise<MinimaxSearchResult<MinimaxVatRate>>;
279
+ getVatRate(userId: string, organisationId: number, vatRateId: number): Promise<MinimaxVatRate>;
280
+ getVatRateByCode(userId: string, organisationId: number, code: string): Promise<MinimaxVatRate>;
281
+ getVatRatesForSync(userId: string, organisationId: number, params?: MinimaxSyncSearchParams<MinimaxVatRate>): Promise<MinimaxSearchResult<MinimaxSyncReference>>;
282
+ /** WAREHOUSES */
283
+ getWarehouses(userId: string, organisationId: number, params?: MinimaxSearchParams<MinimaxWarehouse>): Promise<MinimaxSearchResult<MinimaxWarehouse>>;
284
+ newWarehouse(userId: string, organisationId: number, warehouse: MinimaxWarehouse): Promise<{}>;
285
+ deleteWarehouse(userId: string, organisationId: number, warehouseId: number): Promise<{}>;
286
+ getWarehouse(userId: string, organisationId: number, warehouseId: number): Promise<MinimaxWarehouse>;
287
+ updateWarehouse(userId: string, organisationId: number, warehouse: MinimaxWarehouse): Promise<{}>;
288
+ getWarehousesForSync(userId: string, organisationId: number, params?: MinimaxSyncSearchParams<MinimaxWarehouse>): Promise<MinimaxSearchResult<MinimaxSyncReference>>;
289
+ }
@@ -0,0 +1,40 @@
1
+ import IntegrationsBaseClient from "../integrationsBaseClient";
2
+ import { PaymentProvider, Transaction, PaymentAmount } from "../../types/integrations/payments";
3
+ export default class Payments extends IntegrationsBaseClient {
4
+ getTransactions(userId: string, params?: {
5
+ status: string;
6
+ sortBy: string;
7
+ sortDirection: string;
8
+ limit: number;
9
+ page: number;
10
+ }): Promise<{
11
+ transactions: Transaction[];
12
+ totalCount: number;
13
+ currentPage: number;
14
+ pageSize: number;
15
+ }>;
16
+ getTransaction(provider: PaymentProvider, userId: string, transactionId: string): Promise<Transaction>;
17
+ settings(provider: PaymentProvider): Promise<{
18
+ merchant_key: string;
19
+ authenticity_token: string;
20
+ }>;
21
+ deactivatePaymentLink(provider: PaymentProvider, user: string, transactionId: string): Promise<import("axios").AxiosResponse<any, any>>;
22
+ voidTransaction(provider: PaymentProvider, user: string, transactionId: string): Promise<import("axios").AxiosResponse<any, any>>;
23
+ refund(provider: PaymentProvider, user: string, transactionId: string): Promise<import("axios").AxiosResponse<any, any>>;
24
+ getPaymentLink(provider: PaymentProvider, user: string, options: PaymentAmount & {
25
+ description: string;
26
+ token?: string;
27
+ isTokenRequest?: boolean;
28
+ redirectUrl?: string;
29
+ lang?: "en" | "es" | "ba" | "hr";
30
+ }): Promise<import("axios").AxiosResponse<any, any>>;
31
+ getTokenRequestLink(provider: PaymentProvider, user: string, options: {
32
+ description: string;
33
+ redirectUrl?: string;
34
+ lang?: "en" | "es" | "ba" | "hr";
35
+ }): Promise<import("axios").AxiosResponse<any, any>>;
36
+ directPayUsingToken(provider: PaymentProvider, user: string, options: PaymentAmount & {
37
+ description: string;
38
+ token: string;
39
+ }): Promise<import("axios").AxiosResponse<any, any>>;
40
+ }
@@ -3,6 +3,7 @@ import DMS from "./integrations/dms";
3
3
  import VPFR from "./integrations/vpfr";
4
4
  import IntegrationsBaseClient from "./integrationsBaseClient";
5
5
  import Payments from "./integrations/payments";
6
+ import Minimax from "./integrations/minimax";
6
7
  export default class Integrations extends IntegrationsBaseClient {
7
8
  private integrations;
8
9
  constructor(options?: {
@@ -15,6 +16,7 @@ export default class Integrations extends IntegrationsBaseClient {
15
16
  getVPFR(): VPFR;
16
17
  getInvoicing(): Invoicing;
17
18
  getPayments(): Payments;
19
+ getMinimax(): Minimax;
18
20
  isInstalled(id: string): Promise<boolean>;
19
21
  getInterfaceOf(id: string): any;
20
22
  }
@@ -1,5 +1,8 @@
1
1
  import BaseClient from "./baseClient";
2
2
  export default class IntegrationsBaseClient extends BaseClient {
3
+ protected env: string | null;
4
+ protected token: string | null;
5
+ protected host: string | null;
3
6
  constructor(options?: {
4
7
  env?: string;
5
8
  token?: string;
@@ -3,7 +3,7 @@ import Functions from "./functions";
3
3
  import APIUser from "./apiUser";
4
4
  import Users from "./users";
5
5
  import Apps from "./apps";
6
- import Component from "./component";
6
+ import Component, { ComponentOptions } from "./component";
7
7
  import ComponentUtils from "./componentUtils";
8
8
  import Thunder from "./thunder";
9
9
  import Ratchet from "./ratchet";
@@ -22,7 +22,7 @@ export default class Platform extends PlatformBaseClient {
22
22
  user(): Users;
23
23
  app(appType: string): Apps;
24
24
  forge(): Forge;
25
- component(ref: string): Component;
25
+ component(ref: string, options?: ComponentOptions): Component;
26
26
  componentUtils(): ComponentUtils;
27
27
  ratchet(): Ratchet;
28
28
  sandbox(): Sandbox;
@@ -0,0 +1,9 @@
1
+ import PlatformBaseClient from "./platformBaseClient";
2
+ export default class APIUser extends PlatformBaseClient {
3
+ auth(username: string, password: string, project: string): Promise<import("axios").AxiosResponse<any, any>>;
4
+ newSecret(uuid: string): Promise<import("axios").AxiosResponse<any, any>>;
5
+ revokeSecret(uuid: string): Promise<import("axios").AxiosResponse<any, any>>;
6
+ edit(uuid: string, roles: string[]): Promise<import("axios").AxiosResponse<any, any>>;
7
+ list(): Promise<any>;
8
+ get(uuid: string): Promise<import("axios").AxiosResponse<any, any>>;
9
+ }
@@ -0,0 +1,8 @@
1
+ import PlatformBaseClient from "./platformBaseClient";
2
+ export default class Apps extends PlatformBaseClient {
3
+ private appType;
4
+ constructor(appType?: string);
5
+ updateSettings(updateValues: any, ref: string): Promise<any>;
6
+ download(ref: string, version: string): Promise<any>;
7
+ upload(formData: FormData): Promise<any>;
8
+ }
@@ -0,0 +1,6 @@
1
+ import { AxiosInstance } from "axios";
2
+ export default class BaseClient {
3
+ client: AxiosInstance;
4
+ constructor(client: AxiosInstance);
5
+ setClient(client: AxiosInstance): this;
6
+ }
@@ -1,9 +1,15 @@
1
- import { FindParams, FindOptions, FindResponse, FindAdvancedParams, FindAggregateParams, Model, UpdateOptions, ModifyOptions } from "src/types/component";
1
+ import { FindParams, FindOptions, FindResponse, FindAdvancedParams, FindAggregateParams, Model, UpdateOptions, ModifyOptions, StreamHandler, AggregateChainable, ComponentOptions } from "./types/component";
2
2
  import PlatformBaseClient from "./platformBaseClient";
3
3
  import { AxiosResponse } from "axios";
4
4
  export default class Component extends PlatformBaseClient {
5
5
  private ref;
6
- constructor(ref?: string | null);
6
+ private version;
7
+ constructor(ref?: string | null, options?: ComponentOptions);
8
+ /**
9
+ * Get the base path for component API calls
10
+ * @private
11
+ */
12
+ private getComponentPath;
7
13
  /**
8
14
  * Find method to search for models
9
15
  *
@@ -82,12 +88,41 @@ export default class Component extends PlatformBaseClient {
82
88
  concurrentUpdate(uuid: string, version: number, data: Record<string, any>, options: UpdateOptions): Promise<AxiosResponse<any, any>>;
83
89
  create(model: Record<string, any>): Promise<AxiosResponse<any, any>>;
84
90
  delete(uuid: string): Promise<AxiosResponse<any, any>>;
85
- aggregate(pipeline: FindAggregateParams): Promise<AxiosResponse<any, any>>;
91
+ /**
92
+ * Execute aggregate pipeline with optional streaming support
93
+ *
94
+ * Returns a chainable object that allows both buffered and streaming modes.
95
+ * Call .onData() to enable streaming mode, or await directly for buffered mode.
96
+ *
97
+ * @param {FindAggregateParams} pipeline - MongoDB aggregation pipeline
98
+ *
99
+ * @returns {AggregateChainable} Chainable object with streaming methods and Promise interface
100
+ *
101
+ * @example
102
+ * ```typescript
103
+ * // Buffered response (default, up to 5K documents)
104
+ * const result = await component.aggregate([{ $match: { status: 'active' } }]);
105
+ * console.log(result.data); // All results at once
106
+ *
107
+ * // Streaming response (up to 25K documents)
108
+ * await component.aggregate([{ $match: { status: 'active' } }])
109
+ * .onData((doc) => console.log('Received:', doc))
110
+ * .onError((err) => console.error('Error:', err))
111
+ * .onEnd(() => console.log('Stream complete'));
112
+ * ```
113
+ */
114
+ aggregate(pipeline: FindAggregateParams): AggregateChainable;
86
115
  settings(): Promise<AxiosResponse<any, any>>;
87
116
  saveSettings(settings: any, version: string): Promise<AxiosResponse<any, any>>;
88
117
  saveTemplatesDist(version: string, sdkVersion: string, engine: string, dist: Record<string, string>): Promise<any>;
89
118
  workflow(event: string, input: any): Promise<AxiosResponse<any, any>>;
90
119
  function(name: string, input: any): Promise<AxiosResponse<any, any>>;
91
120
  revisions(uuid: string): Promise<AxiosResponse<any, any>>;
121
+ /**
122
+ * Internal method to handle NDJSON streaming responses
123
+ *
124
+ * @private
125
+ */
126
+ private _streamNDJSON;
92
127
  }
93
- export { FindParams, FindOptions, FindResponse, FindAdvancedParams, FindAggregateParams, Model, UpdateOptions, };
128
+ export { FindParams, FindOptions, FindResponse, FindAdvancedParams, FindAggregateParams, Model, UpdateOptions, StreamHandler, AggregateChainable, ComponentOptions, };
@@ -0,0 +1,7 @@
1
+ import { AxiosResponse } from "axios";
2
+ import { ComponentListResponse } from "./types/component";
3
+ import PlatformBaseClient from "./platformBaseClient";
4
+ export default class ComponentUtils extends PlatformBaseClient {
5
+ list(): Promise<AxiosResponse<ComponentListResponse>>;
6
+ create(data: any): Promise<AxiosResponse<any, any>>;
7
+ }
@@ -0,0 +1,14 @@
1
+ import PlatformBaseClient from "./platformBaseClient";
2
+ import { AxiosResponse } from "axios";
3
+ import { ConfigUpdateRequest, UserConfig } from './types/config';
4
+ export default class Config extends PlatformBaseClient {
5
+ /**
6
+ * Get user configuration
7
+ */
8
+ getUserConfig(): Promise<AxiosResponse<UserConfig>>;
9
+ /**
10
+ * Update user configuration
11
+ * @param config Configuration data
12
+ */
13
+ updateUserConfig(config: ConfigUpdateRequest): Promise<AxiosResponse<any>>;
14
+ }
@@ -0,0 +1,7 @@
1
+ import PlatformBaseClient from "./platformBaseClient";
2
+ export default class Forge extends PlatformBaseClient {
3
+ bundleUpload(buffer: Buffer): Promise<any>;
4
+ getWorkspaceApps(): Promise<any>;
5
+ removeVersion(ref: string, version: string): Promise<any>;
6
+ list(): Promise<any>;
7
+ }
@@ -0,0 +1,23 @@
1
+ import PlatformBaseClient from "./platformBaseClient";
2
+ export default class Functions extends PlatformBaseClient {
3
+ list(): Promise<any>;
4
+ get(ref: string): Promise<any>;
5
+ update(uuid: string, update: any): Promise<any>;
6
+ /**
7
+ * Run platform function
8
+ *
9
+ * @param id - Function ID
10
+ * @param input - Input data
11
+ * @param query - Query parameters
12
+ * @returns - Function result
13
+ *
14
+ * @example
15
+ * const result = await platform.function().run("myFunction", {input: { foo: "bar" }})
16
+ */
17
+ run(id: string, d: {
18
+ input?: Record<string, any>;
19
+ query?: Record<string, string>;
20
+ headers?: Record<string, string>;
21
+ }): Promise<any>;
22
+ generateSignature(ref: string, env: string): Promise<import("axios").AxiosResponse<any, any>>;
23
+ }