@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,65 @@
|
|
|
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 __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
21
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
22
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
23
|
+
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;
|
|
24
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25
|
+
};
|
|
26
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
27
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
28
|
+
};
|
|
29
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
+
exports.CreateBankAccountTransaction = void 0;
|
|
31
|
+
var utils_1 = require("../../../internal/utils");
|
|
32
|
+
var class_transformer_1 = require("class-transformer");
|
|
33
|
+
var CreateBankAccountTransaction = /** @class */ (function (_super) {
|
|
34
|
+
__extends(CreateBankAccountTransaction, _super);
|
|
35
|
+
function CreateBankAccountTransaction() {
|
|
36
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
37
|
+
}
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
40
|
+
(0, class_transformer_1.Expose)({ name: "amount" }),
|
|
41
|
+
__metadata("design:type", Number)
|
|
42
|
+
], CreateBankAccountTransaction.prototype, "amount", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
45
|
+
(0, class_transformer_1.Expose)({ name: "balance" }),
|
|
46
|
+
__metadata("design:type", Number)
|
|
47
|
+
], CreateBankAccountTransaction.prototype, "balance", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
50
|
+
(0, class_transformer_1.Expose)({ name: "date" }),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], CreateBankAccountTransaction.prototype, "date", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
55
|
+
(0, class_transformer_1.Expose)({ name: "description" }),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], CreateBankAccountTransaction.prototype, "description", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
60
|
+
(0, class_transformer_1.Expose)({ name: "id" }),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], CreateBankAccountTransaction.prototype, "id", void 0);
|
|
63
|
+
return CreateBankAccountTransaction;
|
|
64
|
+
}(utils_1.SpeakeasyBase));
|
|
65
|
+
exports.CreateBankAccountTransaction = CreateBankAccountTransaction;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * from "./accountbalance";
|
|
2
2
|
export * from "./accountbalanceamounts";
|
|
3
|
+
export * from "./accountcategoriesupdatedwebhook";
|
|
4
|
+
export * from "./accountcategoriesupdatedwebhookdata";
|
|
3
5
|
export * from "./accountcategorylevel";
|
|
4
6
|
export * from "./accountidentifiers";
|
|
5
7
|
export * from "./accountidentifiertype";
|
|
@@ -7,6 +9,7 @@ export * from "./accountingaccount";
|
|
|
7
9
|
export * from "./accountingaccounts";
|
|
8
10
|
export * from "./accountingaccounttransaction";
|
|
9
11
|
export * from "./accountingaccounttransactions";
|
|
12
|
+
export * from "./accountingaddress";
|
|
10
13
|
export * from "./accountingaddresstype";
|
|
11
14
|
export * from "./accountingagedcreditorreport";
|
|
12
15
|
export * from "./accountingageddebtorreport";
|
|
@@ -25,6 +28,13 @@ export * from "./accountingbillpayments";
|
|
|
25
28
|
export * from "./accountingbills";
|
|
26
29
|
export * from "./accountingcashflowstatement";
|
|
27
30
|
export * from "./accountingcompanyinfo";
|
|
31
|
+
export * from "./accountingcreateaccountresponse";
|
|
32
|
+
export * from "./accountingcreatebankaccountresponse";
|
|
33
|
+
export * from "./accountingcreatebanktransactions";
|
|
34
|
+
export * from "./accountingcreatebanktransactionsresponse";
|
|
35
|
+
export * from "./accountingcreatedirectcostresponse";
|
|
36
|
+
export * from "./accountingcreatesupplierresponse";
|
|
37
|
+
export * from "./accountingcreatetransferresponse";
|
|
28
38
|
export * from "./accountingcreditnote";
|
|
29
39
|
export * from "./accountingcreditnotes";
|
|
30
40
|
export * from "./accountingcustomer";
|
|
@@ -56,7 +66,6 @@ export * from "./accountsreceivabletracking";
|
|
|
56
66
|
export * from "./accountstatus";
|
|
57
67
|
export * from "./accounttransactionline";
|
|
58
68
|
export * from "./accounttype";
|
|
59
|
-
export * from "./addressesitems";
|
|
60
69
|
export * from "./agedcreditor";
|
|
61
70
|
export * from "./agedcurrencyoutstanding";
|
|
62
71
|
export * from "./ageddebtor";
|
|
@@ -85,6 +94,10 @@ export * from "./billpaymentlinelink";
|
|
|
85
94
|
export * from "./billpaymentlinelinktype";
|
|
86
95
|
export * from "./billstatus";
|
|
87
96
|
export * from "./cashflowstatement";
|
|
97
|
+
export * from "./clientratelimitreachedwebhook";
|
|
98
|
+
export * from "./clientratelimitreachedwebhookdata";
|
|
99
|
+
export * from "./clientratelimitresetwebhook";
|
|
100
|
+
export * from "./clientratelimitresetwebhookdata";
|
|
88
101
|
export * from "./commerceaddress";
|
|
89
102
|
export * from "./commerceaddresstype";
|
|
90
103
|
export * from "./commercecompanyinfo";
|
|
@@ -120,6 +133,7 @@ export * from "./connection";
|
|
|
120
133
|
export * from "./connections";
|
|
121
134
|
export * from "./contact";
|
|
122
135
|
export * from "./contactref";
|
|
136
|
+
export * from "./createbankaccounttransaction";
|
|
123
137
|
export * from "./creditnotelineitem";
|
|
124
138
|
export * from "./creditnotestatus";
|
|
125
139
|
export * from "./customerstatus";
|
|
@@ -192,6 +206,7 @@ export * from "./paymentref";
|
|
|
192
206
|
export * from "./paymentstatus";
|
|
193
207
|
export * from "./paymenttype";
|
|
194
208
|
export * from "./periodunit";
|
|
209
|
+
export * from "./phonenumber";
|
|
195
210
|
export * from "./phonenumbertype";
|
|
196
211
|
export * from "./productinventory";
|
|
197
212
|
export * from "./productinventorylocation";
|
|
@@ -204,6 +219,18 @@ export * from "./profitandlossreport";
|
|
|
204
219
|
export * from "./projectref";
|
|
205
220
|
export * from "./pulloperation";
|
|
206
221
|
export * from "./pulloperations";
|
|
222
|
+
export * from "./pushchangetype";
|
|
223
|
+
export * from "./pushfieldvalidation";
|
|
224
|
+
export * from "./pushoperation";
|
|
225
|
+
export * from "./pushoperationchange";
|
|
226
|
+
export * from "./pushoperationref";
|
|
227
|
+
export * from "./pushoperations";
|
|
228
|
+
export * from "./pushoperationstatus";
|
|
229
|
+
export * from "./pushoption";
|
|
230
|
+
export * from "./pushoptionchoice";
|
|
231
|
+
export * from "./pushoptionproperty";
|
|
232
|
+
export * from "./pushoptiontype";
|
|
233
|
+
export * from "./pushvalidationinfo";
|
|
207
234
|
export * from "./recordref";
|
|
208
235
|
export * from "./reportbasis";
|
|
209
236
|
export * from "./reportcomponentmeasure";
|
|
@@ -231,5 +258,6 @@ export * from "./transactionsourceref";
|
|
|
231
258
|
export * from "./transactionsourcetype";
|
|
232
259
|
export * from "./transactiontype";
|
|
233
260
|
export * from "./transferaccount";
|
|
234
|
-
export * from "./
|
|
235
|
-
export * from "./
|
|
261
|
+
export * from "./validation";
|
|
262
|
+
export * from "./validationitem";
|
|
263
|
+
export * from "./weblink";
|
|
@@ -19,6 +19,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
20
|
__exportStar(require("./accountbalance"), exports);
|
|
21
21
|
__exportStar(require("./accountbalanceamounts"), exports);
|
|
22
|
+
__exportStar(require("./accountcategoriesupdatedwebhook"), exports);
|
|
23
|
+
__exportStar(require("./accountcategoriesupdatedwebhookdata"), exports);
|
|
22
24
|
__exportStar(require("./accountcategorylevel"), exports);
|
|
23
25
|
__exportStar(require("./accountidentifiers"), exports);
|
|
24
26
|
__exportStar(require("./accountidentifiertype"), exports);
|
|
@@ -26,6 +28,7 @@ __exportStar(require("./accountingaccount"), exports);
|
|
|
26
28
|
__exportStar(require("./accountingaccounts"), exports);
|
|
27
29
|
__exportStar(require("./accountingaccounttransaction"), exports);
|
|
28
30
|
__exportStar(require("./accountingaccounttransactions"), exports);
|
|
31
|
+
__exportStar(require("./accountingaddress"), exports);
|
|
29
32
|
__exportStar(require("./accountingaddresstype"), exports);
|
|
30
33
|
__exportStar(require("./accountingagedcreditorreport"), exports);
|
|
31
34
|
__exportStar(require("./accountingageddebtorreport"), exports);
|
|
@@ -44,6 +47,13 @@ __exportStar(require("./accountingbillpayments"), exports);
|
|
|
44
47
|
__exportStar(require("./accountingbills"), exports);
|
|
45
48
|
__exportStar(require("./accountingcashflowstatement"), exports);
|
|
46
49
|
__exportStar(require("./accountingcompanyinfo"), exports);
|
|
50
|
+
__exportStar(require("./accountingcreateaccountresponse"), exports);
|
|
51
|
+
__exportStar(require("./accountingcreatebankaccountresponse"), exports);
|
|
52
|
+
__exportStar(require("./accountingcreatebanktransactions"), exports);
|
|
53
|
+
__exportStar(require("./accountingcreatebanktransactionsresponse"), exports);
|
|
54
|
+
__exportStar(require("./accountingcreatedirectcostresponse"), exports);
|
|
55
|
+
__exportStar(require("./accountingcreatesupplierresponse"), exports);
|
|
56
|
+
__exportStar(require("./accountingcreatetransferresponse"), exports);
|
|
47
57
|
__exportStar(require("./accountingcreditnote"), exports);
|
|
48
58
|
__exportStar(require("./accountingcreditnotes"), exports);
|
|
49
59
|
__exportStar(require("./accountingcustomer"), exports);
|
|
@@ -75,7 +85,6 @@ __exportStar(require("./accountsreceivabletracking"), exports);
|
|
|
75
85
|
__exportStar(require("./accountstatus"), exports);
|
|
76
86
|
__exportStar(require("./accounttransactionline"), exports);
|
|
77
87
|
__exportStar(require("./accounttype"), exports);
|
|
78
|
-
__exportStar(require("./addressesitems"), exports);
|
|
79
88
|
__exportStar(require("./agedcreditor"), exports);
|
|
80
89
|
__exportStar(require("./agedcurrencyoutstanding"), exports);
|
|
81
90
|
__exportStar(require("./ageddebtor"), exports);
|
|
@@ -104,6 +113,10 @@ __exportStar(require("./billpaymentlinelink"), exports);
|
|
|
104
113
|
__exportStar(require("./billpaymentlinelinktype"), exports);
|
|
105
114
|
__exportStar(require("./billstatus"), exports);
|
|
106
115
|
__exportStar(require("./cashflowstatement"), exports);
|
|
116
|
+
__exportStar(require("./clientratelimitreachedwebhook"), exports);
|
|
117
|
+
__exportStar(require("./clientratelimitreachedwebhookdata"), exports);
|
|
118
|
+
__exportStar(require("./clientratelimitresetwebhook"), exports);
|
|
119
|
+
__exportStar(require("./clientratelimitresetwebhookdata"), exports);
|
|
107
120
|
__exportStar(require("./commerceaddress"), exports);
|
|
108
121
|
__exportStar(require("./commerceaddresstype"), exports);
|
|
109
122
|
__exportStar(require("./commercecompanyinfo"), exports);
|
|
@@ -139,6 +152,7 @@ __exportStar(require("./connection"), exports);
|
|
|
139
152
|
__exportStar(require("./connections"), exports);
|
|
140
153
|
__exportStar(require("./contact"), exports);
|
|
141
154
|
__exportStar(require("./contactref"), exports);
|
|
155
|
+
__exportStar(require("./createbankaccounttransaction"), exports);
|
|
142
156
|
__exportStar(require("./creditnotelineitem"), exports);
|
|
143
157
|
__exportStar(require("./creditnotestatus"), exports);
|
|
144
158
|
__exportStar(require("./customerstatus"), exports);
|
|
@@ -211,6 +225,7 @@ __exportStar(require("./paymentref"), exports);
|
|
|
211
225
|
__exportStar(require("./paymentstatus"), exports);
|
|
212
226
|
__exportStar(require("./paymenttype"), exports);
|
|
213
227
|
__exportStar(require("./periodunit"), exports);
|
|
228
|
+
__exportStar(require("./phonenumber"), exports);
|
|
214
229
|
__exportStar(require("./phonenumbertype"), exports);
|
|
215
230
|
__exportStar(require("./productinventory"), exports);
|
|
216
231
|
__exportStar(require("./productinventorylocation"), exports);
|
|
@@ -223,6 +238,18 @@ __exportStar(require("./profitandlossreport"), exports);
|
|
|
223
238
|
__exportStar(require("./projectref"), exports);
|
|
224
239
|
__exportStar(require("./pulloperation"), exports);
|
|
225
240
|
__exportStar(require("./pulloperations"), exports);
|
|
241
|
+
__exportStar(require("./pushchangetype"), exports);
|
|
242
|
+
__exportStar(require("./pushfieldvalidation"), exports);
|
|
243
|
+
__exportStar(require("./pushoperation"), exports);
|
|
244
|
+
__exportStar(require("./pushoperationchange"), exports);
|
|
245
|
+
__exportStar(require("./pushoperationref"), exports);
|
|
246
|
+
__exportStar(require("./pushoperations"), exports);
|
|
247
|
+
__exportStar(require("./pushoperationstatus"), exports);
|
|
248
|
+
__exportStar(require("./pushoption"), exports);
|
|
249
|
+
__exportStar(require("./pushoptionchoice"), exports);
|
|
250
|
+
__exportStar(require("./pushoptionproperty"), exports);
|
|
251
|
+
__exportStar(require("./pushoptiontype"), exports);
|
|
252
|
+
__exportStar(require("./pushvalidationinfo"), exports);
|
|
226
253
|
__exportStar(require("./recordref"), exports);
|
|
227
254
|
__exportStar(require("./reportbasis"), exports);
|
|
228
255
|
__exportStar(require("./reportcomponentmeasure"), exports);
|
|
@@ -250,5 +277,6 @@ __exportStar(require("./transactionsourceref"), exports);
|
|
|
250
277
|
__exportStar(require("./transactionsourcetype"), exports);
|
|
251
278
|
__exportStar(require("./transactiontype"), exports);
|
|
252
279
|
__exportStar(require("./transferaccount"), exports);
|
|
253
|
-
__exportStar(require("./
|
|
254
|
-
__exportStar(require("./
|
|
280
|
+
__exportStar(require("./validation"), exports);
|
|
281
|
+
__exportStar(require("./validationitem"), exports);
|
|
282
|
+
__exportStar(require("./weblink"), exports);
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
-
import { PhoneNumberType } from "./phonenumbertype";
|
|
3
2
|
export declare class Items extends SpeakeasyBase {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
*/
|
|
7
|
-
number: string;
|
|
8
|
-
/**
|
|
9
|
-
* The type of phone number
|
|
10
|
-
*/
|
|
11
|
-
type: PhoneNumberType;
|
|
3
|
+
amount: number;
|
|
4
|
+
name: string;
|
|
12
5
|
}
|
|
@@ -29,7 +29,6 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
30
|
exports.Items = void 0;
|
|
31
31
|
var utils_1 = require("../../../internal/utils");
|
|
32
|
-
var phonenumbertype_1 = require("./phonenumbertype");
|
|
33
32
|
var class_transformer_1 = require("class-transformer");
|
|
34
33
|
var Items = /** @class */ (function (_super) {
|
|
35
34
|
__extends(Items, _super);
|
|
@@ -38,14 +37,14 @@ var Items = /** @class */ (function (_super) {
|
|
|
38
37
|
}
|
|
39
38
|
__decorate([
|
|
40
39
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
41
|
-
(0, class_transformer_1.Expose)({ name: "
|
|
42
|
-
__metadata("design:type",
|
|
43
|
-
], Items.prototype, "
|
|
40
|
+
(0, class_transformer_1.Expose)({ name: "amount" }),
|
|
41
|
+
__metadata("design:type", Number)
|
|
42
|
+
], Items.prototype, "amount", void 0);
|
|
44
43
|
__decorate([
|
|
45
44
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
46
|
-
(0, class_transformer_1.Expose)({ name: "
|
|
45
|
+
(0, class_transformer_1.Expose)({ name: "name" }),
|
|
47
46
|
__metadata("design:type", String)
|
|
48
|
-
], Items.prototype, "
|
|
47
|
+
], Items.prototype, "name", void 0);
|
|
49
48
|
return Items;
|
|
50
49
|
}(utils_1.SpeakeasyBase));
|
|
51
50
|
exports.Items = Items;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
+
import { PhoneNumberType } from "./phonenumbertype";
|
|
3
|
+
export declare class PhoneNumber extends SpeakeasyBase {
|
|
4
|
+
/**
|
|
5
|
+
* A phone number.
|
|
6
|
+
*/
|
|
7
|
+
number: string;
|
|
8
|
+
/**
|
|
9
|
+
* The type of phone number
|
|
10
|
+
*/
|
|
11
|
+
type: PhoneNumberType;
|
|
12
|
+
}
|
|
@@ -27,24 +27,25 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
27
27
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
-
exports.
|
|
30
|
+
exports.PhoneNumber = void 0;
|
|
31
31
|
var utils_1 = require("../../../internal/utils");
|
|
32
|
+
var phonenumbertype_1 = require("./phonenumbertype");
|
|
32
33
|
var class_transformer_1 = require("class-transformer");
|
|
33
|
-
var
|
|
34
|
-
__extends(
|
|
35
|
-
function
|
|
34
|
+
var PhoneNumber = /** @class */ (function (_super) {
|
|
35
|
+
__extends(PhoneNumber, _super);
|
|
36
|
+
function PhoneNumber() {
|
|
36
37
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
37
38
|
}
|
|
38
39
|
__decorate([
|
|
39
40
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
40
|
-
(0, class_transformer_1.Expose)({ name: "
|
|
41
|
-
__metadata("design:type",
|
|
42
|
-
],
|
|
41
|
+
(0, class_transformer_1.Expose)({ name: "number" }),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], PhoneNumber.prototype, "number", void 0);
|
|
43
44
|
__decorate([
|
|
44
45
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
45
|
-
(0, class_transformer_1.Expose)({ name: "
|
|
46
|
+
(0, class_transformer_1.Expose)({ name: "type" }),
|
|
46
47
|
__metadata("design:type", String)
|
|
47
|
-
],
|
|
48
|
-
return
|
|
48
|
+
], PhoneNumber.prototype, "type", void 0);
|
|
49
|
+
return PhoneNumber;
|
|
49
50
|
}(utils_1.SpeakeasyBase));
|
|
50
|
-
exports.
|
|
51
|
+
exports.PhoneNumber = PhoneNumber;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.PushChangeType = void 0;
|
|
7
|
+
var PushChangeType;
|
|
8
|
+
(function (PushChangeType) {
|
|
9
|
+
PushChangeType["Unknown"] = "Unknown";
|
|
10
|
+
PushChangeType["Created"] = "Created";
|
|
11
|
+
PushChangeType["Modified"] = "Modified";
|
|
12
|
+
PushChangeType["Deleted"] = "Deleted";
|
|
13
|
+
PushChangeType["AttachmentUploaded"] = "AttachmentUploaded";
|
|
14
|
+
})(PushChangeType = exports.PushChangeType || (exports.PushChangeType = {}));
|
|
@@ -0,0 +1,55 @@
|
|
|
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 __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
21
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
22
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
23
|
+
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;
|
|
24
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25
|
+
};
|
|
26
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
27
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
28
|
+
};
|
|
29
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
+
exports.PushFieldValidation = void 0;
|
|
31
|
+
var utils_1 = require("../../../internal/utils");
|
|
32
|
+
var class_transformer_1 = require("class-transformer");
|
|
33
|
+
var PushFieldValidation = /** @class */ (function (_super) {
|
|
34
|
+
__extends(PushFieldValidation, _super);
|
|
35
|
+
function PushFieldValidation() {
|
|
36
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
37
|
+
}
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
40
|
+
(0, class_transformer_1.Expose)({ name: "details" }),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], PushFieldValidation.prototype, "details", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
45
|
+
(0, class_transformer_1.Expose)({ name: "field" }),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], PushFieldValidation.prototype, "field", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
50
|
+
(0, class_transformer_1.Expose)({ name: "ref" }),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], PushFieldValidation.prototype, "ref", void 0);
|
|
53
|
+
return PushFieldValidation;
|
|
54
|
+
}(utils_1.SpeakeasyBase));
|
|
55
|
+
exports.PushFieldValidation = PushFieldValidation;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
+
import { DataType } from "./datatype";
|
|
3
|
+
import { PushOperationChange } from "./pushoperationchange";
|
|
4
|
+
import { PushOperationStatus } from "./pushoperationstatus";
|
|
5
|
+
import { Validation } from "./validation";
|
|
6
|
+
export declare class PushOperation extends SpeakeasyBase {
|
|
7
|
+
/**
|
|
8
|
+
* Contains a single entry that communicates which record has changed and the manner in which it changed.
|
|
9
|
+
*/
|
|
10
|
+
changes?: PushOperationChange[];
|
|
11
|
+
/**
|
|
12
|
+
* Unique identifier for your SMB in Codat.
|
|
13
|
+
*/
|
|
14
|
+
companyId: string;
|
|
15
|
+
/**
|
|
16
|
+
* In Codat's data model, dates and times are represented using the <a class="external" href="https://en.wikipedia.org/wiki/ISO_8601" target="_blank">ISO 8601 standard</a>. Date and time fields are formatted as strings; for example:
|
|
17
|
+
*
|
|
18
|
+
* @remarks
|
|
19
|
+
*
|
|
20
|
+
* ```
|
|
21
|
+
* 2020-10-08T22:40:50Z
|
|
22
|
+
* 2021-01-01T00:00:00
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
*
|
|
26
|
+
*
|
|
27
|
+
* When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
|
|
28
|
+
*
|
|
29
|
+
* - Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
|
|
30
|
+
* - Unqualified local time: `2021-11-15T01:00:00`
|
|
31
|
+
* - UTC time offsets: `2021-11-15T01:00:00-05:00`
|
|
32
|
+
*
|
|
33
|
+
* > Time zones
|
|
34
|
+
* >
|
|
35
|
+
* > Not all dates from Codat will contain information about time zones.
|
|
36
|
+
* > Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced.
|
|
37
|
+
*/
|
|
38
|
+
completedOnUtc?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Unique identifier for a company's data connection.
|
|
41
|
+
*/
|
|
42
|
+
dataConnectionKey: string;
|
|
43
|
+
/**
|
|
44
|
+
* Available Data types
|
|
45
|
+
*/
|
|
46
|
+
dataType?: DataType;
|
|
47
|
+
errorMessage?: string;
|
|
48
|
+
/**
|
|
49
|
+
* A unique identifier generated by Codat to represent this single push operation. This identifier can be used to track the status of the push, and should be persisted.
|
|
50
|
+
*/
|
|
51
|
+
pushOperationKey: string;
|
|
52
|
+
/**
|
|
53
|
+
* In Codat's data model, dates and times are represented using the <a class="external" href="https://en.wikipedia.org/wiki/ISO_8601" target="_blank">ISO 8601 standard</a>. Date and time fields are formatted as strings; for example:
|
|
54
|
+
*
|
|
55
|
+
* @remarks
|
|
56
|
+
*
|
|
57
|
+
* ```
|
|
58
|
+
* 2020-10-08T22:40:50Z
|
|
59
|
+
* 2021-01-01T00:00:00
|
|
60
|
+
* ```
|
|
61
|
+
*
|
|
62
|
+
*
|
|
63
|
+
*
|
|
64
|
+
* When syncing data that contains `DateTime` fields from Codat, make sure you support the following cases when reading time information:
|
|
65
|
+
*
|
|
66
|
+
* - Coordinated Universal Time (UTC): `2021-11-15T06:00:00Z`
|
|
67
|
+
* - Unqualified local time: `2021-11-15T01:00:00`
|
|
68
|
+
* - UTC time offsets: `2021-11-15T01:00:00-05:00`
|
|
69
|
+
*
|
|
70
|
+
* > Time zones
|
|
71
|
+
* >
|
|
72
|
+
* > Not all dates from Codat will contain information about time zones.
|
|
73
|
+
* > Where it is not available from the underlying platform, Codat will return these as times local to the business whose data has been synced.
|
|
74
|
+
*/
|
|
75
|
+
requestedOnUtc: string;
|
|
76
|
+
/**
|
|
77
|
+
* The current status of the push operation.
|
|
78
|
+
*/
|
|
79
|
+
status: PushOperationStatus;
|
|
80
|
+
statusCode: number;
|
|
81
|
+
timeoutInMinutes?: number;
|
|
82
|
+
/**
|
|
83
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
84
|
+
*/
|
|
85
|
+
timeoutInSeconds?: number;
|
|
86
|
+
/**
|
|
87
|
+
* A human-readable object describing validation decisions Codat has made when pushing data into the platform. If a push has failed because of validation errors, they will be detailed here.
|
|
88
|
+
*/
|
|
89
|
+
validation?: Validation;
|
|
90
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
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 __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
21
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
22
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
23
|
+
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;
|
|
24
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25
|
+
};
|
|
26
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
27
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
28
|
+
};
|
|
29
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
+
exports.PushOperation = void 0;
|
|
31
|
+
var utils_1 = require("../../../internal/utils");
|
|
32
|
+
var datatype_1 = require("./datatype");
|
|
33
|
+
var pushoperationchange_1 = require("./pushoperationchange");
|
|
34
|
+
var pushoperationstatus_1 = require("./pushoperationstatus");
|
|
35
|
+
var validation_1 = require("./validation");
|
|
36
|
+
var class_transformer_1 = require("class-transformer");
|
|
37
|
+
var PushOperation = /** @class */ (function (_super) {
|
|
38
|
+
__extends(PushOperation, _super);
|
|
39
|
+
function PushOperation() {
|
|
40
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
41
|
+
}
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, utils_1.SpeakeasyMetadata)({ elemType: pushoperationchange_1.PushOperationChange }),
|
|
44
|
+
(0, class_transformer_1.Expose)({ name: "changes" }),
|
|
45
|
+
(0, class_transformer_1.Type)(function () { return pushoperationchange_1.PushOperationChange; }),
|
|
46
|
+
__metadata("design:type", Array)
|
|
47
|
+
], PushOperation.prototype, "changes", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
50
|
+
(0, class_transformer_1.Expose)({ name: "companyId" }),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], PushOperation.prototype, "companyId", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
55
|
+
(0, class_transformer_1.Expose)({ name: "completedOnUtc" }),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], PushOperation.prototype, "completedOnUtc", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
60
|
+
(0, class_transformer_1.Expose)({ name: "dataConnectionKey" }),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], PushOperation.prototype, "dataConnectionKey", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
65
|
+
(0, class_transformer_1.Expose)({ name: "dataType" }),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], PushOperation.prototype, "dataType", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
70
|
+
(0, class_transformer_1.Expose)({ name: "errorMessage" }),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], PushOperation.prototype, "errorMessage", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
75
|
+
(0, class_transformer_1.Expose)({ name: "pushOperationKey" }),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], PushOperation.prototype, "pushOperationKey", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
80
|
+
(0, class_transformer_1.Expose)({ name: "requestedOnUtc" }),
|
|
81
|
+
__metadata("design:type", String)
|
|
82
|
+
], PushOperation.prototype, "requestedOnUtc", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
85
|
+
(0, class_transformer_1.Expose)({ name: "status" }),
|
|
86
|
+
__metadata("design:type", String)
|
|
87
|
+
], PushOperation.prototype, "status", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
90
|
+
(0, class_transformer_1.Expose)({ name: "statusCode" }),
|
|
91
|
+
__metadata("design:type", Number)
|
|
92
|
+
], PushOperation.prototype, "statusCode", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
95
|
+
(0, class_transformer_1.Expose)({ name: "timeoutInMinutes" }),
|
|
96
|
+
__metadata("design:type", Number)
|
|
97
|
+
], PushOperation.prototype, "timeoutInMinutes", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
100
|
+
(0, class_transformer_1.Expose)({ name: "timeoutInSeconds" }),
|
|
101
|
+
__metadata("design:type", Number)
|
|
102
|
+
], PushOperation.prototype, "timeoutInSeconds", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
105
|
+
(0, class_transformer_1.Expose)({ name: "validation" }),
|
|
106
|
+
(0, class_transformer_1.Type)(function () { return validation_1.Validation; }),
|
|
107
|
+
__metadata("design:type", validation_1.Validation)
|
|
108
|
+
], PushOperation.prototype, "validation", void 0);
|
|
109
|
+
return PushOperation;
|
|
110
|
+
}(utils_1.SpeakeasyBase));
|
|
111
|
+
exports.PushOperation = PushOperation;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
+
import { PushChangeType } from "./pushchangetype";
|
|
3
|
+
import { PushOperationRef } from "./pushoperationref";
|
|
4
|
+
export declare class PushOperationChange extends SpeakeasyBase {
|
|
5
|
+
attachmentId?: string;
|
|
6
|
+
recordRef?: PushOperationRef;
|
|
7
|
+
type?: PushChangeType;
|
|
8
|
+
}
|