@codat/lending 2.1.0 → 3.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 +70 -34
- package/dist/sdk/companies.js +2 -2
- package/dist/sdk/connections.js +2 -2
- package/dist/sdk/fileupload.js +1 -1
- package/dist/sdk/loanwriteback.d.ts +19 -0
- package/dist/sdk/loanwriteback.js +27 -0
- package/dist/sdk/loanwritebackaccounts.d.ts +40 -0
- package/dist/sdk/loanwritebackaccounts.js +294 -0
- package/dist/sdk/loanwritebackbankaccounts.d.ts +39 -0
- package/dist/sdk/loanwritebackbankaccounts.js +293 -0
- package/dist/sdk/loanwritebackbanktransactions.d.ts +40 -0
- package/dist/sdk/loanwritebackbanktransactions.js +294 -0
- package/dist/sdk/loanwritebackcreateoperations.d.ts +22 -0
- package/dist/sdk/loanwritebackcreateoperations.js +250 -0
- package/dist/sdk/loanwritebackdirectcosts.d.ts +40 -0
- package/dist/sdk/loanwritebackdirectcosts.js +294 -0
- package/dist/sdk/loanwritebacksuppliers.d.ts +40 -0
- package/dist/sdk/loanwritebacksuppliers.js +294 -0
- package/dist/sdk/loanwritebacktransfers.d.ts +40 -0
- package/dist/sdk/loanwritebacktransfers.js +294 -0
- package/dist/sdk/models/operations/createaccount.d.ts +27 -0
- package/dist/sdk/models/operations/createaccount.js +115 -0
- package/dist/sdk/models/operations/createbankaccount.d.ts +27 -0
- package/dist/sdk/models/operations/createbankaccount.js +115 -0
- package/dist/sdk/models/operations/createbanktransactions.d.ts +31 -0
- package/dist/sdk/models/operations/createbanktransactions.js +119 -0
- package/dist/sdk/models/operations/createdirectcost.d.ts +27 -0
- package/dist/sdk/models/operations/createdirectcost.js +115 -0
- package/dist/sdk/models/operations/createsupplier.d.ts +27 -0
- package/dist/sdk/models/operations/createsupplier.js +115 -0
- package/dist/sdk/models/operations/createtransfer.d.ts +27 -0
- package/dist/sdk/models/operations/createtransfer.js +115 -0
- package/dist/sdk/models/operations/getcreatebanktransactionsmodel.d.ts +24 -0
- package/dist/sdk/models/operations/getcreatebanktransactionsmodel.js +103 -0
- package/dist/sdk/models/operations/getcreatechartofaccountsmodel.d.ts +20 -0
- package/dist/sdk/models/operations/getcreatechartofaccountsmodel.js +99 -0
- package/dist/sdk/models/operations/getcreatedirectcostsmodel.d.ts +20 -0
- package/dist/sdk/models/operations/getcreatedirectcostsmodel.js +99 -0
- package/dist/sdk/models/operations/getcreateoperation.d.ts +23 -0
- package/dist/sdk/models/operations/getcreateoperation.js +99 -0
- package/dist/sdk/models/operations/getcreatetransfersmodel.d.ts +20 -0
- package/dist/sdk/models/operations/getcreatetransfersmodel.js +99 -0
- package/dist/sdk/models/operations/getcreateupdatebankaccountsmodel.d.ts +20 -0
- package/dist/sdk/models/operations/getcreateupdatebankaccountsmodel.js +99 -0
- package/dist/sdk/models/operations/getcreateupdatesuppliersmodel.d.ts +20 -0
- package/dist/sdk/models/operations/getcreateupdatesuppliersmodel.js +99 -0
- package/dist/sdk/models/operations/index.d.ts +14 -0
- package/dist/sdk/models/operations/index.js +14 -0
- package/dist/sdk/models/operations/listcreateoperations.d.ts +35 -0
- package/dist/sdk/models/operations/listcreateoperations.js +111 -0
- package/dist/sdk/models/shared/accountcategoriesupdatedwebhook.d.ts +40 -0
- package/dist/sdk/models/shared/accountcategoriesupdatedwebhook.js +90 -0
- package/dist/sdk/models/shared/accountcategoriesupdatedwebhookdata.d.ts +7 -0
- package/dist/sdk/models/shared/accountcategoriesupdatedwebhookdata.js +45 -0
- package/dist/sdk/models/shared/{addressesitems.d.ts → accountingaddress.d.ts} +1 -1
- package/dist/sdk/models/shared/{addressesitems.js → accountingaddress.js} +13 -13
- package/dist/sdk/models/shared/accountingbillcreditnote.d.ts +2 -2
- package/dist/sdk/models/shared/accountingbillcreditnote.js +3 -3
- package/dist/sdk/models/shared/accountingcompanyinfo.d.ts +6 -66
- package/dist/sdk/models/shared/accountingcompanyinfo.js +10 -100
- package/dist/sdk/models/shared/accountingcreateaccountresponse.d.ts +124 -0
- package/dist/sdk/models/shared/accountingcreateaccountresponse.js +118 -0
- package/dist/sdk/models/shared/accountingcreatebankaccountresponse.d.ts +112 -0
- package/dist/sdk/models/shared/accountingcreatebankaccountresponse.js +118 -0
- package/dist/sdk/models/shared/accountingcreatebanktransactions.d.ts +6 -0
- package/dist/sdk/models/shared/accountingcreatebanktransactions.js +52 -0
- package/dist/sdk/models/shared/accountingcreatebanktransactionsresponse.d.ts +92 -0
- package/dist/sdk/models/shared/accountingcreatebanktransactionsresponse.js +118 -0
- package/dist/sdk/models/shared/accountingcreatedirectcostresponse.d.ts +111 -0
- package/dist/sdk/models/shared/accountingcreatedirectcostresponse.js +118 -0
- package/dist/sdk/models/shared/accountingcreatesupplierresponse.d.ts +101 -0
- package/dist/sdk/models/shared/accountingcreatesupplierresponse.js +118 -0
- package/dist/sdk/models/shared/accountingcreatetransferresponse.d.ts +99 -0
- package/dist/sdk/models/shared/accountingcreatetransferresponse.js +118 -0
- package/dist/sdk/models/shared/accountingcreditnote.d.ts +2 -2
- package/dist/sdk/models/shared/accountingcreditnote.js +3 -3
- package/dist/sdk/models/shared/accountingcustomer.d.ts +2 -2
- package/dist/sdk/models/shared/accountingcustomer.js +3 -3
- package/dist/sdk/models/shared/accountinginvoice.d.ts +2 -2
- package/dist/sdk/models/shared/accountinginvoice.js +3 -3
- package/dist/sdk/models/shared/accountingsupplier.d.ts +2 -2
- package/dist/sdk/models/shared/accountingsupplier.js +3 -3
- package/dist/sdk/models/shared/clientratelimitreachedwebhook.d.ts +32 -0
- package/dist/sdk/models/shared/clientratelimitreachedwebhook.js +80 -0
- package/dist/sdk/models/shared/clientratelimitreachedwebhookdata.d.ts +31 -0
- package/dist/sdk/models/shared/clientratelimitreachedwebhookdata.js +50 -0
- package/dist/sdk/models/shared/clientratelimitresetwebhook.d.ts +32 -0
- package/dist/sdk/models/shared/clientratelimitresetwebhook.js +80 -0
- package/dist/sdk/models/shared/clientratelimitresetwebhookdata.d.ts +39 -0
- package/dist/sdk/models/shared/clientratelimitresetwebhookdata.js +60 -0
- package/dist/sdk/models/shared/commercecompanyinfo.d.ts +4 -4
- package/dist/sdk/models/shared/commercecompanyinfo.js +6 -6
- package/dist/sdk/models/shared/contact.d.ts +4 -4
- package/dist/sdk/models/shared/contact.js +6 -6
- package/dist/sdk/models/shared/createbankaccounttransaction.d.ts +31 -0
- package/dist/sdk/models/shared/createbankaccounttransaction.js +65 -0
- package/dist/sdk/models/shared/index.d.ts +31 -3
- package/dist/sdk/models/shared/index.js +31 -3
- package/dist/sdk/models/shared/items.d.ts +2 -9
- package/dist/sdk/models/shared/items.js +5 -6
- package/dist/sdk/models/shared/phonenumber.d.ts +12 -0
- package/dist/sdk/models/shared/{withholdingtaxitems.js → phonenumber.js} +12 -11
- package/dist/sdk/models/shared/pushchangetype.d.ts +7 -0
- package/dist/sdk/models/shared/pushchangetype.js +14 -0
- package/dist/sdk/models/shared/pushfieldvalidation.d.ts +6 -0
- package/dist/sdk/models/shared/pushfieldvalidation.js +55 -0
- package/dist/sdk/models/shared/pushoperation.d.ts +90 -0
- package/dist/sdk/models/shared/pushoperation.js +111 -0
- package/dist/sdk/models/shared/pushoperationchange.d.ts +8 -0
- package/dist/sdk/models/shared/pushoperationchange.js +58 -0
- package/dist/sdk/models/shared/pushoperationref.d.ts +9 -0
- package/dist/sdk/models/shared/pushoperationref.js +51 -0
- package/dist/sdk/models/shared/pushoperations.d.ts +10 -0
- package/dist/sdk/models/shared/pushoperations.js +69 -0
- package/dist/sdk/models/shared/pushoperationstatus.d.ts +9 -0
- package/dist/sdk/models/shared/pushoperationstatus.js +16 -0
- package/dist/sdk/models/shared/pushoption.d.ts +14 -0
- package/dist/sdk/models/shared/pushoption.js +89 -0
- package/dist/sdk/models/shared/pushoptionchoice.d.ts +12 -0
- package/dist/sdk/models/shared/pushoptionchoice.js +66 -0
- package/dist/sdk/models/shared/pushoptionproperty.d.ts +13 -0
- package/dist/sdk/models/shared/pushoptionproperty.js +88 -0
- package/dist/sdk/models/shared/pushoptiontype.d.ts +10 -0
- package/dist/sdk/models/shared/pushoptiontype.js +17 -0
- package/dist/sdk/models/shared/pushvalidationinfo.d.ts +6 -0
- package/dist/sdk/models/shared/pushvalidationinfo.js +53 -0
- package/dist/sdk/models/shared/validation.d.ts +9 -0
- package/dist/sdk/models/shared/validation.js +56 -0
- package/dist/sdk/models/shared/validationitem.d.ts +6 -0
- package/dist/sdk/models/shared/validationitem.js +55 -0
- package/dist/sdk/models/shared/{weblinksitems.d.ts → weblink.d.ts} +3 -3
- package/dist/sdk/models/shared/{weblinksitems.js → weblink.js} +14 -14
- package/dist/sdk/models/webhooks/accountcategoriesupdated.d.ts +7 -0
- package/dist/sdk/models/webhooks/accountcategoriesupdated.js +51 -0
- package/dist/sdk/models/webhooks/clientratelimitreached.d.ts +7 -0
- package/dist/sdk/models/webhooks/clientratelimitreached.js +51 -0
- package/dist/sdk/models/webhooks/clientratelimitreset.d.ts +7 -0
- package/dist/sdk/models/webhooks/clientratelimitreset.js +51 -0
- package/dist/sdk/models/webhooks/index.d.ts +3 -0
- package/dist/sdk/models/webhooks/index.js +22 -0
- package/dist/sdk/sdk.d.ts +2 -0
- package/dist/sdk/sdk.js +4 -2
- package/docs/models/operations/createaccountrequest.md +13 -0
- package/docs/models/operations/createaccountresponse.md +12 -0
- package/docs/models/operations/createbankaccountrequest.md +13 -0
- package/docs/models/operations/createbankaccountresponse.md +12 -0
- package/docs/models/operations/createbanktransactionsrequest.md +14 -0
- package/docs/models/operations/createbanktransactionsresponse.md +12 -0
- package/docs/models/operations/createdirectcostrequest.md +13 -0
- package/docs/models/operations/createdirectcostresponse.md +12 -0
- package/docs/models/operations/createsupplierrequest.md +13 -0
- package/docs/models/operations/createsupplierresponse.md +12 -0
- package/docs/models/operations/createtransferrequest.md +13 -0
- package/docs/models/operations/createtransferresponse.md +12 -0
- package/docs/models/operations/getcreatebanktransactionsmodelrequest.md +10 -0
- package/docs/models/operations/getcreatebanktransactionsmodelresponse.md +12 -0
- package/docs/models/operations/getcreatechartofaccountsmodelrequest.md +9 -0
- package/docs/models/operations/getcreatechartofaccountsmodelresponse.md +12 -0
- package/docs/models/operations/getcreatedirectcostsmodelrequest.md +9 -0
- package/docs/models/operations/getcreatedirectcostsmodelresponse.md +12 -0
- package/docs/models/operations/getcreateoperationrequest.md +9 -0
- package/docs/models/operations/getcreateoperationresponse.md +12 -0
- package/docs/models/operations/getcreatetransfersmodelrequest.md +9 -0
- package/docs/models/operations/getcreatetransfersmodelresponse.md +12 -0
- package/docs/models/operations/getcreateupdatebankaccountsmodelrequest.md +9 -0
- package/docs/models/operations/getcreateupdatebankaccountsmodelresponse.md +12 -0
- package/docs/models/operations/getcreateupdatesuppliersmodelrequest.md +9 -0
- package/docs/models/operations/getcreateupdatesuppliersmodelresponse.md +12 -0
- package/docs/models/operations/listcreateoperationsrequest.md +12 -0
- package/docs/models/operations/listcreateoperationsresponse.md +12 -0
- package/docs/models/shared/accountcategoriesupdatedwebhook.md +18 -0
- package/docs/models/shared/accountcategoriesupdatedwebhookdata.md +8 -0
- package/docs/models/shared/{addressesitems.md → accountingaddress.md} +1 -1
- package/docs/models/shared/accountingbillcreditnote.md +1 -1
- package/docs/models/shared/accountingcompanyinfo.md +3 -3
- package/docs/models/shared/accountingcreateaccountresponse.md +21 -0
- package/docs/models/shared/accountingcreatebankaccountresponse.md +21 -0
- package/docs/models/shared/accountingcreatebanktransactions.md +9 -0
- package/docs/models/shared/accountingcreatebanktransactionsresponse.md +21 -0
- package/docs/models/shared/accountingcreatedirectcostresponse.md +21 -0
- package/docs/models/shared/accountingcreatesupplierresponse.md +21 -0
- package/docs/models/shared/accountingcreatetransferresponse.md +21 -0
- package/docs/models/shared/accountingcreditnote.md +1 -1
- package/docs/models/shared/accountingcustomer.md +1 -1
- package/docs/models/shared/accountinginvoice.md +1 -1
- package/docs/models/shared/accountingsupplier.md +1 -1
- package/docs/models/shared/clientratelimitreachedwebhook.md +16 -0
- package/docs/models/shared/clientratelimitreachedwebhookdata.md +9 -0
- package/docs/models/shared/clientratelimitresetwebhook.md +16 -0
- package/docs/models/shared/clientratelimitresetwebhookdata.md +11 -0
- package/docs/models/shared/commercecompanyinfo.md +2 -2
- package/docs/models/shared/contact.md +2 -2
- package/docs/models/shared/createbankaccounttransaction.md +12 -0
- package/docs/models/shared/items.md +4 -4
- package/docs/models/shared/{accountingcompanyinfophone.md → phonenumber.md} +1 -1
- package/docs/models/shared/pushchangetype.md +12 -0
- package/docs/models/shared/pushfieldvalidation.md +10 -0
- package/docs/models/shared/pushoperation.md +20 -0
- package/docs/models/shared/pushoperationchange.md +10 -0
- package/docs/models/shared/pushoperationref.md +9 -0
- package/docs/models/shared/pushoperations.md +12 -0
- package/docs/models/shared/pushoperationstatus.md +13 -0
- package/docs/models/shared/pushoption.md +14 -0
- package/docs/models/shared/pushoptionchoice.md +12 -0
- package/docs/models/shared/pushoptionproperty.md +14 -0
- package/docs/models/shared/pushoptiontype.md +15 -0
- package/docs/models/shared/pushvalidationinfo.md +9 -0
- package/docs/models/shared/validation.md +11 -0
- package/docs/models/shared/validationitem.md +10 -0
- package/docs/models/shared/weblink.md +11 -0
- package/docs/models/shared/{itemstype.md → weblinktype.md} +1 -1
- package/docs/models/webhooks/accountcategoriesupdatedresponse.md +10 -0
- package/docs/models/webhooks/clientratelimitreachedresponse.md +10 -0
- package/docs/models/webhooks/clientratelimitresetresponse.md +10 -0
- package/docs/sdks/accountingbankdata/README.md +1 -1
- package/docs/sdks/accountingbankdataaccounts/README.md +3 -3
- package/docs/sdks/accountspayable/README.md +1 -1
- package/docs/sdks/accountspayablebillcreditnotes/README.md +3 -3
- package/docs/sdks/accountspayablebillpayments/README.md +3 -3
- package/docs/sdks/accountspayablebills/README.md +6 -6
- package/docs/sdks/accountspayablesuppliers/README.md +6 -6
- package/docs/sdks/accountsreceivable/README.md +1 -1
- package/docs/sdks/accountsreceivablecreditnotes/README.md +3 -3
- package/docs/sdks/accountsreceivablecustomers/README.md +6 -6
- package/docs/sdks/accountsreceivabledirectincomes/README.md +6 -6
- package/docs/sdks/accountsreceivableinvoices/README.md +8 -8
- package/docs/sdks/accountsreceivablepayments/README.md +3 -3
- package/docs/sdks/accountsreceivablereports/README.md +5 -5
- package/docs/sdks/banking/README.md +1 -1
- package/docs/sdks/bankingaccountbalances/README.md +2 -2
- package/docs/sdks/bankingcategorizedstatement/README.md +2 -2
- package/docs/sdks/bankingtransactioncategories/README.md +3 -3
- package/docs/sdks/companies/README.md +1 -1
- package/docs/sdks/companyinfo/README.md +1 -1
- package/docs/sdks/connections/README.md +1 -1
- package/docs/sdks/dataintegrity/README.md +1 -1
- package/docs/sdks/excelreports/README.md +1 -1
- package/docs/sdks/fileupload/README.md +1 -1
- package/docs/sdks/financialstatements/README.md +1 -1
- package/docs/sdks/financialstatementsaccounts/README.md +3 -3
- package/docs/sdks/financialstatementsbalancesheet/README.md +3 -3
- package/docs/sdks/financialstatementscashflow/README.md +2 -2
- package/docs/sdks/financialstatementsprofitandloss/README.md +3 -3
- package/docs/sdks/liabilities/README.md +1 -1
- package/docs/sdks/loanwriteback/README.md +4 -0
- package/docs/sdks/loanwritebackaccounts/README.md +134 -0
- package/docs/sdks/loanwritebackbankaccounts/README.md +126 -0
- package/docs/sdks/loanwritebackbanktransactions/README.md +121 -0
- package/docs/sdks/loanwritebackcreateoperations/README.md +89 -0
- package/docs/sdks/loanwritebackdirectcosts/README.md +200 -0
- package/docs/sdks/loanwritebacksuppliers/README.md +142 -0
- package/docs/sdks/loanwritebacktransfers/README.md +156 -0
- package/docs/sdks/managedata/README.md +1 -1
- package/docs/sdks/managedatapulloperations/README.md +4 -4
- package/docs/sdks/managedatarefresh/README.md +4 -4
- package/docs/sdks/sales/README.md +1 -1
- package/docs/sdks/salescustomers/README.md +2 -2
- package/docs/sdks/salesdisputes/README.md +2 -2
- package/docs/sdks/saleslocations/README.md +1 -1
- package/docs/sdks/salesmetrics/README.md +9 -9
- package/docs/sdks/salesorders/README.md +2 -2
- package/docs/sdks/salespaymentmethods/README.md +5 -5
- package/docs/sdks/salespayments/README.md +2 -2
- package/docs/sdks/salesproductcategories/README.md +5 -5
- package/docs/sdks/salesproducts/README.md +2 -2
- package/docs/sdks/salesreports/README.md +5 -5
- package/docs/sdks/salestransactions/README.md +2 -2
- package/docs/sdks/transactions/README.md +1 -1
- package/docs/sdks/transactionsaccounttransactions/README.md +5 -5
- package/docs/sdks/transactionsdirectcosts/README.md +11 -11
- package/docs/sdks/transactionsjournalentries/README.md +5 -5
- package/docs/sdks/transactionsjournals/README.md +2 -2
- package/docs/sdks/transactionstransfers/README.md +2 -2
- package/package.json +1 -1
- package/dist/sdk/models/shared/withholdingtaxitems.d.ts +0 -5
- package/docs/models/shared/accountingcompanyinfoaccountingaddress.md +0 -14
- package/docs/models/shared/accountingcompanyinfoweblink.md +0 -11
- package/docs/models/shared/accountingcompanyinfoweblinktype.md +0 -12
- package/docs/models/shared/weblinksitems.md +0 -11
- package/docs/models/shared/withholdingtaxitems.md +0 -9
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __extends = (this && this.__extends) || (function () {
|
|
6
|
+
var extendStatics = function (d, b) {
|
|
7
|
+
extendStatics = Object.setPrototypeOf ||
|
|
8
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
9
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
10
|
+
return extendStatics(d, b);
|
|
11
|
+
};
|
|
12
|
+
return function (d, b) {
|
|
13
|
+
if (typeof b !== "function" && b !== null)
|
|
14
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
15
|
+
extendStatics(d, b);
|
|
16
|
+
function __() { this.constructor = d; }
|
|
17
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
18
|
+
};
|
|
19
|
+
})();
|
|
20
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
23
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
24
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
25
|
+
}
|
|
26
|
+
Object.defineProperty(o, k2, desc);
|
|
27
|
+
}) : (function(o, m, k, k2) {
|
|
28
|
+
if (k2 === undefined) k2 = k;
|
|
29
|
+
o[k2] = m[k];
|
|
30
|
+
}));
|
|
31
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
32
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
33
|
+
}) : function(o, v) {
|
|
34
|
+
o["default"] = v;
|
|
35
|
+
});
|
|
36
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
37
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
38
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
39
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
40
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
41
|
+
};
|
|
42
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
43
|
+
if (mod && mod.__esModule) return mod;
|
|
44
|
+
var result = {};
|
|
45
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
46
|
+
__setModuleDefault(result, mod);
|
|
47
|
+
return result;
|
|
48
|
+
};
|
|
49
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
50
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
51
|
+
};
|
|
52
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53
|
+
exports.CreateBankTransactionsResponse = exports.CreateBankTransactionsRequest = void 0;
|
|
54
|
+
var utils_1 = require("../../../internal/utils");
|
|
55
|
+
var shared = __importStar(require("../shared"));
|
|
56
|
+
var CreateBankTransactionsRequest = /** @class */ (function (_super) {
|
|
57
|
+
__extends(CreateBankTransactionsRequest, _super);
|
|
58
|
+
function CreateBankTransactionsRequest() {
|
|
59
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
60
|
+
}
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "request, media_type=application/json" }),
|
|
63
|
+
__metadata("design:type", shared.AccountingCreateBankTransactions)
|
|
64
|
+
], CreateBankTransactionsRequest.prototype, "accountingCreateBankTransactions", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "pathParam, style=simple;explode=false;name=accountId" }),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], CreateBankTransactionsRequest.prototype, "accountId", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "queryParam, style=form;explode=true;name=allowSyncOnPushComplete" }),
|
|
71
|
+
__metadata("design:type", Boolean)
|
|
72
|
+
], CreateBankTransactionsRequest.prototype, "allowSyncOnPushComplete", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "pathParam, style=simple;explode=false;name=companyId" }),
|
|
75
|
+
__metadata("design:type", String)
|
|
76
|
+
], CreateBankTransactionsRequest.prototype, "companyId", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "pathParam, style=simple;explode=false;name=connectionId" }),
|
|
79
|
+
__metadata("design:type", String)
|
|
80
|
+
], CreateBankTransactionsRequest.prototype, "connectionId", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "queryParam, style=form;explode=true;name=forceUpdate" }),
|
|
83
|
+
__metadata("design:type", Boolean)
|
|
84
|
+
], CreateBankTransactionsRequest.prototype, "forceUpdate", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "queryParam, style=form;explode=true;name=timeoutInMinutes" }),
|
|
87
|
+
__metadata("design:type", Number)
|
|
88
|
+
], CreateBankTransactionsRequest.prototype, "timeoutInMinutes", void 0);
|
|
89
|
+
return CreateBankTransactionsRequest;
|
|
90
|
+
}(utils_1.SpeakeasyBase));
|
|
91
|
+
exports.CreateBankTransactionsRequest = CreateBankTransactionsRequest;
|
|
92
|
+
var CreateBankTransactionsResponse = /** @class */ (function (_super) {
|
|
93
|
+
__extends(CreateBankTransactionsResponse, _super);
|
|
94
|
+
function CreateBankTransactionsResponse() {
|
|
95
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
96
|
+
}
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
99
|
+
__metadata("design:type", shared.AccountingCreateBankTransactionsResponse)
|
|
100
|
+
], CreateBankTransactionsResponse.prototype, "accountingCreateBankTransactionsResponse", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
103
|
+
__metadata("design:type", String)
|
|
104
|
+
], CreateBankTransactionsResponse.prototype, "contentType", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
107
|
+
__metadata("design:type", shared.ErrorMessage)
|
|
108
|
+
], CreateBankTransactionsResponse.prototype, "errorMessage", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
111
|
+
__metadata("design:type", Number)
|
|
112
|
+
], CreateBankTransactionsResponse.prototype, "statusCode", void 0);
|
|
113
|
+
__decorate([
|
|
114
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
115
|
+
__metadata("design:type", Object)
|
|
116
|
+
], CreateBankTransactionsResponse.prototype, "rawResponse", void 0);
|
|
117
|
+
return CreateBankTransactionsResponse;
|
|
118
|
+
}(utils_1.SpeakeasyBase));
|
|
119
|
+
exports.CreateBankTransactionsResponse = CreateBankTransactionsResponse;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
+
import * as shared from "../shared";
|
|
3
|
+
import { AxiosResponse } from "axios";
|
|
4
|
+
export declare class CreateDirectCostRequest extends SpeakeasyBase {
|
|
5
|
+
accountingDirectCost?: shared.AccountingDirectCost;
|
|
6
|
+
allowSyncOnPushComplete?: boolean;
|
|
7
|
+
companyId: string;
|
|
8
|
+
connectionId: string;
|
|
9
|
+
/**
|
|
10
|
+
* When updating data in the destination platform Codat checks the `sourceModifiedDate` against the `lastupdated` date from the accounting platform, if they're different Codat will return an error suggesting you should initiate another pull of the data. If this is set to `true` then the update will override this check.
|
|
11
|
+
*/
|
|
12
|
+
forceUpdate?: boolean;
|
|
13
|
+
timeoutInMinutes?: number;
|
|
14
|
+
}
|
|
15
|
+
export declare class CreateDirectCostResponse extends SpeakeasyBase {
|
|
16
|
+
/**
|
|
17
|
+
* Success
|
|
18
|
+
*/
|
|
19
|
+
accountingCreateDirectCostResponse?: shared.AccountingCreateDirectCostResponse;
|
|
20
|
+
contentType: string;
|
|
21
|
+
/**
|
|
22
|
+
* The request made is not valid.
|
|
23
|
+
*/
|
|
24
|
+
errorMessage?: shared.ErrorMessage;
|
|
25
|
+
statusCode: number;
|
|
26
|
+
rawResponse?: AxiosResponse;
|
|
27
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __extends = (this && this.__extends) || (function () {
|
|
6
|
+
var extendStatics = function (d, b) {
|
|
7
|
+
extendStatics = Object.setPrototypeOf ||
|
|
8
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
9
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
10
|
+
return extendStatics(d, b);
|
|
11
|
+
};
|
|
12
|
+
return function (d, b) {
|
|
13
|
+
if (typeof b !== "function" && b !== null)
|
|
14
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
15
|
+
extendStatics(d, b);
|
|
16
|
+
function __() { this.constructor = d; }
|
|
17
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
18
|
+
};
|
|
19
|
+
})();
|
|
20
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
23
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
24
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
25
|
+
}
|
|
26
|
+
Object.defineProperty(o, k2, desc);
|
|
27
|
+
}) : (function(o, m, k, k2) {
|
|
28
|
+
if (k2 === undefined) k2 = k;
|
|
29
|
+
o[k2] = m[k];
|
|
30
|
+
}));
|
|
31
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
32
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
33
|
+
}) : function(o, v) {
|
|
34
|
+
o["default"] = v;
|
|
35
|
+
});
|
|
36
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
37
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
38
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
39
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
40
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
41
|
+
};
|
|
42
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
43
|
+
if (mod && mod.__esModule) return mod;
|
|
44
|
+
var result = {};
|
|
45
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
46
|
+
__setModuleDefault(result, mod);
|
|
47
|
+
return result;
|
|
48
|
+
};
|
|
49
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
50
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
51
|
+
};
|
|
52
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53
|
+
exports.CreateDirectCostResponse = exports.CreateDirectCostRequest = void 0;
|
|
54
|
+
var utils_1 = require("../../../internal/utils");
|
|
55
|
+
var shared = __importStar(require("../shared"));
|
|
56
|
+
var CreateDirectCostRequest = /** @class */ (function (_super) {
|
|
57
|
+
__extends(CreateDirectCostRequest, _super);
|
|
58
|
+
function CreateDirectCostRequest() {
|
|
59
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
60
|
+
}
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "request, media_type=application/json" }),
|
|
63
|
+
__metadata("design:type", shared.AccountingDirectCost)
|
|
64
|
+
], CreateDirectCostRequest.prototype, "accountingDirectCost", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "queryParam, style=form;explode=true;name=allowSyncOnPushComplete" }),
|
|
67
|
+
__metadata("design:type", Boolean)
|
|
68
|
+
], CreateDirectCostRequest.prototype, "allowSyncOnPushComplete", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "pathParam, style=simple;explode=false;name=companyId" }),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], CreateDirectCostRequest.prototype, "companyId", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "pathParam, style=simple;explode=false;name=connectionId" }),
|
|
75
|
+
__metadata("design:type", String)
|
|
76
|
+
], CreateDirectCostRequest.prototype, "connectionId", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "queryParam, style=form;explode=true;name=forceUpdate" }),
|
|
79
|
+
__metadata("design:type", Boolean)
|
|
80
|
+
], CreateDirectCostRequest.prototype, "forceUpdate", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "queryParam, style=form;explode=true;name=timeoutInMinutes" }),
|
|
83
|
+
__metadata("design:type", Number)
|
|
84
|
+
], CreateDirectCostRequest.prototype, "timeoutInMinutes", void 0);
|
|
85
|
+
return CreateDirectCostRequest;
|
|
86
|
+
}(utils_1.SpeakeasyBase));
|
|
87
|
+
exports.CreateDirectCostRequest = CreateDirectCostRequest;
|
|
88
|
+
var CreateDirectCostResponse = /** @class */ (function (_super) {
|
|
89
|
+
__extends(CreateDirectCostResponse, _super);
|
|
90
|
+
function CreateDirectCostResponse() {
|
|
91
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
92
|
+
}
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
95
|
+
__metadata("design:type", shared.AccountingCreateDirectCostResponse)
|
|
96
|
+
], CreateDirectCostResponse.prototype, "accountingCreateDirectCostResponse", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
99
|
+
__metadata("design:type", String)
|
|
100
|
+
], CreateDirectCostResponse.prototype, "contentType", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
103
|
+
__metadata("design:type", shared.ErrorMessage)
|
|
104
|
+
], CreateDirectCostResponse.prototype, "errorMessage", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
107
|
+
__metadata("design:type", Number)
|
|
108
|
+
], CreateDirectCostResponse.prototype, "statusCode", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
111
|
+
__metadata("design:type", Object)
|
|
112
|
+
], CreateDirectCostResponse.prototype, "rawResponse", void 0);
|
|
113
|
+
return CreateDirectCostResponse;
|
|
114
|
+
}(utils_1.SpeakeasyBase));
|
|
115
|
+
exports.CreateDirectCostResponse = CreateDirectCostResponse;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
+
import * as shared from "../shared";
|
|
3
|
+
import { AxiosResponse } from "axios";
|
|
4
|
+
export declare class CreateSupplierRequest extends SpeakeasyBase {
|
|
5
|
+
accountingSupplier?: shared.AccountingSupplier;
|
|
6
|
+
allowSyncOnPushComplete?: boolean;
|
|
7
|
+
companyId: string;
|
|
8
|
+
connectionId: string;
|
|
9
|
+
/**
|
|
10
|
+
* When updating data in the destination platform Codat checks the `sourceModifiedDate` against the `lastupdated` date from the accounting platform, if they're different Codat will return an error suggesting you should initiate another pull of the data. If this is set to `true` then the update will override this check.
|
|
11
|
+
*/
|
|
12
|
+
forceUpdate?: boolean;
|
|
13
|
+
timeoutInMinutes?: number;
|
|
14
|
+
}
|
|
15
|
+
export declare class CreateSupplierResponse extends SpeakeasyBase {
|
|
16
|
+
/**
|
|
17
|
+
* Success
|
|
18
|
+
*/
|
|
19
|
+
accountingCreateSupplierResponse?: shared.AccountingCreateSupplierResponse;
|
|
20
|
+
contentType: string;
|
|
21
|
+
/**
|
|
22
|
+
* The request made is not valid.
|
|
23
|
+
*/
|
|
24
|
+
errorMessage?: shared.ErrorMessage;
|
|
25
|
+
statusCode: number;
|
|
26
|
+
rawResponse?: AxiosResponse;
|
|
27
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __extends = (this && this.__extends) || (function () {
|
|
6
|
+
var extendStatics = function (d, b) {
|
|
7
|
+
extendStatics = Object.setPrototypeOf ||
|
|
8
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
9
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
10
|
+
return extendStatics(d, b);
|
|
11
|
+
};
|
|
12
|
+
return function (d, b) {
|
|
13
|
+
if (typeof b !== "function" && b !== null)
|
|
14
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
15
|
+
extendStatics(d, b);
|
|
16
|
+
function __() { this.constructor = d; }
|
|
17
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
18
|
+
};
|
|
19
|
+
})();
|
|
20
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
23
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
24
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
25
|
+
}
|
|
26
|
+
Object.defineProperty(o, k2, desc);
|
|
27
|
+
}) : (function(o, m, k, k2) {
|
|
28
|
+
if (k2 === undefined) k2 = k;
|
|
29
|
+
o[k2] = m[k];
|
|
30
|
+
}));
|
|
31
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
32
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
33
|
+
}) : function(o, v) {
|
|
34
|
+
o["default"] = v;
|
|
35
|
+
});
|
|
36
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
37
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
38
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
39
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
40
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
41
|
+
};
|
|
42
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
43
|
+
if (mod && mod.__esModule) return mod;
|
|
44
|
+
var result = {};
|
|
45
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
46
|
+
__setModuleDefault(result, mod);
|
|
47
|
+
return result;
|
|
48
|
+
};
|
|
49
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
50
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
51
|
+
};
|
|
52
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53
|
+
exports.CreateSupplierResponse = exports.CreateSupplierRequest = void 0;
|
|
54
|
+
var utils_1 = require("../../../internal/utils");
|
|
55
|
+
var shared = __importStar(require("../shared"));
|
|
56
|
+
var CreateSupplierRequest = /** @class */ (function (_super) {
|
|
57
|
+
__extends(CreateSupplierRequest, _super);
|
|
58
|
+
function CreateSupplierRequest() {
|
|
59
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
60
|
+
}
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "request, media_type=application/json" }),
|
|
63
|
+
__metadata("design:type", shared.AccountingSupplier)
|
|
64
|
+
], CreateSupplierRequest.prototype, "accountingSupplier", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "queryParam, style=form;explode=true;name=allowSyncOnPushComplete" }),
|
|
67
|
+
__metadata("design:type", Boolean)
|
|
68
|
+
], CreateSupplierRequest.prototype, "allowSyncOnPushComplete", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "pathParam, style=simple;explode=false;name=companyId" }),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], CreateSupplierRequest.prototype, "companyId", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "pathParam, style=simple;explode=false;name=connectionId" }),
|
|
75
|
+
__metadata("design:type", String)
|
|
76
|
+
], CreateSupplierRequest.prototype, "connectionId", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "queryParam, style=form;explode=true;name=forceUpdate" }),
|
|
79
|
+
__metadata("design:type", Boolean)
|
|
80
|
+
], CreateSupplierRequest.prototype, "forceUpdate", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "queryParam, style=form;explode=true;name=timeoutInMinutes" }),
|
|
83
|
+
__metadata("design:type", Number)
|
|
84
|
+
], CreateSupplierRequest.prototype, "timeoutInMinutes", void 0);
|
|
85
|
+
return CreateSupplierRequest;
|
|
86
|
+
}(utils_1.SpeakeasyBase));
|
|
87
|
+
exports.CreateSupplierRequest = CreateSupplierRequest;
|
|
88
|
+
var CreateSupplierResponse = /** @class */ (function (_super) {
|
|
89
|
+
__extends(CreateSupplierResponse, _super);
|
|
90
|
+
function CreateSupplierResponse() {
|
|
91
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
92
|
+
}
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
95
|
+
__metadata("design:type", shared.AccountingCreateSupplierResponse)
|
|
96
|
+
], CreateSupplierResponse.prototype, "accountingCreateSupplierResponse", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
99
|
+
__metadata("design:type", String)
|
|
100
|
+
], CreateSupplierResponse.prototype, "contentType", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
103
|
+
__metadata("design:type", shared.ErrorMessage)
|
|
104
|
+
], CreateSupplierResponse.prototype, "errorMessage", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
107
|
+
__metadata("design:type", Number)
|
|
108
|
+
], CreateSupplierResponse.prototype, "statusCode", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
111
|
+
__metadata("design:type", Object)
|
|
112
|
+
], CreateSupplierResponse.prototype, "rawResponse", void 0);
|
|
113
|
+
return CreateSupplierResponse;
|
|
114
|
+
}(utils_1.SpeakeasyBase));
|
|
115
|
+
exports.CreateSupplierResponse = CreateSupplierResponse;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
+
import * as shared from "../shared";
|
|
3
|
+
import { AxiosResponse } from "axios";
|
|
4
|
+
export declare class CreateTransferRequest extends SpeakeasyBase {
|
|
5
|
+
accountingTransfer?: shared.AccountingTransfer;
|
|
6
|
+
allowSyncOnPushComplete?: boolean;
|
|
7
|
+
companyId: string;
|
|
8
|
+
connectionId: string;
|
|
9
|
+
/**
|
|
10
|
+
* When updating data in the destination platform Codat checks the `sourceModifiedDate` against the `lastupdated` date from the accounting platform, if they're different Codat will return an error suggesting you should initiate another pull of the data. If this is set to `true` then the update will override this check.
|
|
11
|
+
*/
|
|
12
|
+
forceUpdate?: boolean;
|
|
13
|
+
timeoutInMinutes?: number;
|
|
14
|
+
}
|
|
15
|
+
export declare class CreateTransferResponse extends SpeakeasyBase {
|
|
16
|
+
/**
|
|
17
|
+
* Success
|
|
18
|
+
*/
|
|
19
|
+
accountingCreateTransferResponse?: shared.AccountingCreateTransferResponse;
|
|
20
|
+
contentType: string;
|
|
21
|
+
/**
|
|
22
|
+
* The request made is not valid.
|
|
23
|
+
*/
|
|
24
|
+
errorMessage?: shared.ErrorMessage;
|
|
25
|
+
statusCode: number;
|
|
26
|
+
rawResponse?: AxiosResponse;
|
|
27
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __extends = (this && this.__extends) || (function () {
|
|
6
|
+
var extendStatics = function (d, b) {
|
|
7
|
+
extendStatics = Object.setPrototypeOf ||
|
|
8
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
9
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
10
|
+
return extendStatics(d, b);
|
|
11
|
+
};
|
|
12
|
+
return function (d, b) {
|
|
13
|
+
if (typeof b !== "function" && b !== null)
|
|
14
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
15
|
+
extendStatics(d, b);
|
|
16
|
+
function __() { this.constructor = d; }
|
|
17
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
18
|
+
};
|
|
19
|
+
})();
|
|
20
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
23
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
24
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
25
|
+
}
|
|
26
|
+
Object.defineProperty(o, k2, desc);
|
|
27
|
+
}) : (function(o, m, k, k2) {
|
|
28
|
+
if (k2 === undefined) k2 = k;
|
|
29
|
+
o[k2] = m[k];
|
|
30
|
+
}));
|
|
31
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
32
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
33
|
+
}) : function(o, v) {
|
|
34
|
+
o["default"] = v;
|
|
35
|
+
});
|
|
36
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
37
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
38
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
39
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
40
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
41
|
+
};
|
|
42
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
43
|
+
if (mod && mod.__esModule) return mod;
|
|
44
|
+
var result = {};
|
|
45
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
46
|
+
__setModuleDefault(result, mod);
|
|
47
|
+
return result;
|
|
48
|
+
};
|
|
49
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
50
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
51
|
+
};
|
|
52
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53
|
+
exports.CreateTransferResponse = exports.CreateTransferRequest = void 0;
|
|
54
|
+
var utils_1 = require("../../../internal/utils");
|
|
55
|
+
var shared = __importStar(require("../shared"));
|
|
56
|
+
var CreateTransferRequest = /** @class */ (function (_super) {
|
|
57
|
+
__extends(CreateTransferRequest, _super);
|
|
58
|
+
function CreateTransferRequest() {
|
|
59
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
60
|
+
}
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "request, media_type=application/json" }),
|
|
63
|
+
__metadata("design:type", shared.AccountingTransfer)
|
|
64
|
+
], CreateTransferRequest.prototype, "accountingTransfer", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "queryParam, style=form;explode=true;name=allowSyncOnPushComplete" }),
|
|
67
|
+
__metadata("design:type", Boolean)
|
|
68
|
+
], CreateTransferRequest.prototype, "allowSyncOnPushComplete", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "pathParam, style=simple;explode=false;name=companyId" }),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], CreateTransferRequest.prototype, "companyId", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "pathParam, style=simple;explode=false;name=connectionId" }),
|
|
75
|
+
__metadata("design:type", String)
|
|
76
|
+
], CreateTransferRequest.prototype, "connectionId", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "queryParam, style=form;explode=true;name=forceUpdate" }),
|
|
79
|
+
__metadata("design:type", Boolean)
|
|
80
|
+
], CreateTransferRequest.prototype, "forceUpdate", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "queryParam, style=form;explode=true;name=timeoutInMinutes" }),
|
|
83
|
+
__metadata("design:type", Number)
|
|
84
|
+
], CreateTransferRequest.prototype, "timeoutInMinutes", void 0);
|
|
85
|
+
return CreateTransferRequest;
|
|
86
|
+
}(utils_1.SpeakeasyBase));
|
|
87
|
+
exports.CreateTransferRequest = CreateTransferRequest;
|
|
88
|
+
var CreateTransferResponse = /** @class */ (function (_super) {
|
|
89
|
+
__extends(CreateTransferResponse, _super);
|
|
90
|
+
function CreateTransferResponse() {
|
|
91
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
92
|
+
}
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
95
|
+
__metadata("design:type", shared.AccountingCreateTransferResponse)
|
|
96
|
+
], CreateTransferResponse.prototype, "accountingCreateTransferResponse", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
99
|
+
__metadata("design:type", String)
|
|
100
|
+
], CreateTransferResponse.prototype, "contentType", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
103
|
+
__metadata("design:type", shared.ErrorMessage)
|
|
104
|
+
], CreateTransferResponse.prototype, "errorMessage", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
107
|
+
__metadata("design:type", Number)
|
|
108
|
+
], CreateTransferResponse.prototype, "statusCode", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
111
|
+
__metadata("design:type", Object)
|
|
112
|
+
], CreateTransferResponse.prototype, "rawResponse", void 0);
|
|
113
|
+
return CreateTransferResponse;
|
|
114
|
+
}(utils_1.SpeakeasyBase));
|
|
115
|
+
exports.CreateTransferResponse = CreateTransferResponse;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
+
import * as shared from "../shared";
|
|
3
|
+
import { AxiosResponse } from "axios";
|
|
4
|
+
export declare class GetCreateBankTransactionsModelRequest extends SpeakeasyBase {
|
|
5
|
+
/**
|
|
6
|
+
* Unique identifier for an account
|
|
7
|
+
*/
|
|
8
|
+
accountId: string;
|
|
9
|
+
companyId: string;
|
|
10
|
+
connectionId: string;
|
|
11
|
+
}
|
|
12
|
+
export declare class GetCreateBankTransactionsModelResponse extends SpeakeasyBase {
|
|
13
|
+
contentType: string;
|
|
14
|
+
/**
|
|
15
|
+
* Your API request was not properly authorized.
|
|
16
|
+
*/
|
|
17
|
+
errorMessage?: shared.ErrorMessage;
|
|
18
|
+
/**
|
|
19
|
+
* Success
|
|
20
|
+
*/
|
|
21
|
+
pushOption?: shared.PushOption;
|
|
22
|
+
statusCode: number;
|
|
23
|
+
rawResponse?: AxiosResponse;
|
|
24
|
+
}
|