@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,58 @@
|
|
|
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.PushOperationChange = void 0;
|
|
31
|
+
var utils_1 = require("../../../internal/utils");
|
|
32
|
+
var pushchangetype_1 = require("./pushchangetype");
|
|
33
|
+
var pushoperationref_1 = require("./pushoperationref");
|
|
34
|
+
var class_transformer_1 = require("class-transformer");
|
|
35
|
+
var PushOperationChange = /** @class */ (function (_super) {
|
|
36
|
+
__extends(PushOperationChange, _super);
|
|
37
|
+
function PushOperationChange() {
|
|
38
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
39
|
+
}
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
42
|
+
(0, class_transformer_1.Expose)({ name: "attachmentId" }),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], PushOperationChange.prototype, "attachmentId", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
47
|
+
(0, class_transformer_1.Expose)({ name: "recordRef" }),
|
|
48
|
+
(0, class_transformer_1.Type)(function () { return pushoperationref_1.PushOperationRef; }),
|
|
49
|
+
__metadata("design:type", pushoperationref_1.PushOperationRef)
|
|
50
|
+
], PushOperationChange.prototype, "recordRef", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
53
|
+
(0, class_transformer_1.Expose)({ name: "type" }),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], PushOperationChange.prototype, "type", void 0);
|
|
56
|
+
return PushOperationChange;
|
|
57
|
+
}(utils_1.SpeakeasyBase));
|
|
58
|
+
exports.PushOperationChange = PushOperationChange;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.PushOperationRef = void 0;
|
|
31
|
+
var utils_1 = require("../../../internal/utils");
|
|
32
|
+
var datatype_1 = require("./datatype");
|
|
33
|
+
var class_transformer_1 = require("class-transformer");
|
|
34
|
+
var PushOperationRef = /** @class */ (function (_super) {
|
|
35
|
+
__extends(PushOperationRef, _super);
|
|
36
|
+
function PushOperationRef() {
|
|
37
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
38
|
+
}
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
41
|
+
(0, class_transformer_1.Expose)({ name: "dataType" }),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], PushOperationRef.prototype, "dataType", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
46
|
+
(0, class_transformer_1.Expose)({ name: "id" }),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], PushOperationRef.prototype, "id", void 0);
|
|
49
|
+
return PushOperationRef;
|
|
50
|
+
}(utils_1.SpeakeasyBase));
|
|
51
|
+
exports.PushOperationRef = PushOperationRef;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
+
import { Links } from "./links";
|
|
3
|
+
import { PushOperation } from "./pushoperation";
|
|
4
|
+
export declare class PushOperations extends SpeakeasyBase {
|
|
5
|
+
links: Links;
|
|
6
|
+
pageNumber: number;
|
|
7
|
+
pageSize: number;
|
|
8
|
+
results?: PushOperation[];
|
|
9
|
+
totalResults: number;
|
|
10
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
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.PushOperations = void 0;
|
|
31
|
+
var utils_1 = require("../../../internal/utils");
|
|
32
|
+
var links_1 = require("./links");
|
|
33
|
+
var pushoperation_1 = require("./pushoperation");
|
|
34
|
+
var class_transformer_1 = require("class-transformer");
|
|
35
|
+
var PushOperations = /** @class */ (function (_super) {
|
|
36
|
+
__extends(PushOperations, _super);
|
|
37
|
+
function PushOperations() {
|
|
38
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
39
|
+
}
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
42
|
+
(0, class_transformer_1.Expose)({ name: "_links" }),
|
|
43
|
+
(0, class_transformer_1.Type)(function () { return links_1.Links; }),
|
|
44
|
+
__metadata("design:type", links_1.Links)
|
|
45
|
+
], PushOperations.prototype, "links", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
48
|
+
(0, class_transformer_1.Expose)({ name: "pageNumber" }),
|
|
49
|
+
__metadata("design:type", Number)
|
|
50
|
+
], PushOperations.prototype, "pageNumber", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
53
|
+
(0, class_transformer_1.Expose)({ name: "pageSize" }),
|
|
54
|
+
__metadata("design:type", Number)
|
|
55
|
+
], PushOperations.prototype, "pageSize", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, utils_1.SpeakeasyMetadata)({ elemType: pushoperation_1.PushOperation }),
|
|
58
|
+
(0, class_transformer_1.Expose)({ name: "results" }),
|
|
59
|
+
(0, class_transformer_1.Type)(function () { return pushoperation_1.PushOperation; }),
|
|
60
|
+
__metadata("design:type", Array)
|
|
61
|
+
], PushOperations.prototype, "results", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
64
|
+
(0, class_transformer_1.Expose)({ name: "totalResults" }),
|
|
65
|
+
__metadata("design:type", Number)
|
|
66
|
+
], PushOperations.prototype, "totalResults", void 0);
|
|
67
|
+
return PushOperations;
|
|
68
|
+
}(utils_1.SpeakeasyBase));
|
|
69
|
+
exports.PushOperations = PushOperations;
|
|
@@ -0,0 +1,16 @@
|
|
|
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.PushOperationStatus = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* The current status of the push operation.
|
|
9
|
+
*/
|
|
10
|
+
var PushOperationStatus;
|
|
11
|
+
(function (PushOperationStatus) {
|
|
12
|
+
PushOperationStatus["Pending"] = "Pending";
|
|
13
|
+
PushOperationStatus["Failed"] = "Failed";
|
|
14
|
+
PushOperationStatus["Success"] = "Success";
|
|
15
|
+
PushOperationStatus["TimedOut"] = "TimedOut";
|
|
16
|
+
})(PushOperationStatus = exports.PushOperationStatus || (exports.PushOperationStatus = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
+
import { PushOptionChoice } from "./pushoptionchoice";
|
|
3
|
+
import { PushOptionProperty } from "./pushoptionproperty";
|
|
4
|
+
import { PushOptionType } from "./pushoptiontype";
|
|
5
|
+
import { PushValidationInfo } from "./pushvalidationinfo";
|
|
6
|
+
export declare class PushOption extends SpeakeasyBase {
|
|
7
|
+
description?: string;
|
|
8
|
+
displayName: string;
|
|
9
|
+
options?: PushOptionChoice[];
|
|
10
|
+
properties?: Record<string, PushOptionProperty>;
|
|
11
|
+
required: boolean;
|
|
12
|
+
type: PushOptionType;
|
|
13
|
+
validation?: PushValidationInfo;
|
|
14
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
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.PushOption = void 0;
|
|
31
|
+
var utils_1 = require("../../../internal/utils");
|
|
32
|
+
var pushoptionchoice_1 = require("./pushoptionchoice");
|
|
33
|
+
var pushoptionproperty_1 = require("./pushoptionproperty");
|
|
34
|
+
var pushoptiontype_1 = require("./pushoptiontype");
|
|
35
|
+
var pushvalidationinfo_1 = require("./pushvalidationinfo");
|
|
36
|
+
var class_transformer_1 = require("class-transformer");
|
|
37
|
+
var PushOption = /** @class */ (function (_super) {
|
|
38
|
+
__extends(PushOption, _super);
|
|
39
|
+
function PushOption() {
|
|
40
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
41
|
+
}
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
44
|
+
(0, class_transformer_1.Expose)({ name: "description" }),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], PushOption.prototype, "description", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
49
|
+
(0, class_transformer_1.Expose)({ name: "displayName" }),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], PushOption.prototype, "displayName", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, utils_1.SpeakeasyMetadata)({ elemType: pushoptionchoice_1.PushOptionChoice }),
|
|
54
|
+
(0, class_transformer_1.Expose)({ name: "options" }),
|
|
55
|
+
(0, class_transformer_1.Type)(function () { return pushoptionchoice_1.PushOptionChoice; }),
|
|
56
|
+
__metadata("design:type", Array)
|
|
57
|
+
], PushOption.prototype, "options", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, utils_1.SpeakeasyMetadata)({ elemType: pushoptionproperty_1.PushOptionProperty }),
|
|
60
|
+
(0, class_transformer_1.Expose)({ name: "properties" }),
|
|
61
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
|
62
|
+
var value = _a.value;
|
|
63
|
+
var obj = {};
|
|
64
|
+
for (var key in value) {
|
|
65
|
+
obj[key] = (0, utils_1.objectToClass)(value[key], pushoptionproperty_1.PushOptionProperty);
|
|
66
|
+
}
|
|
67
|
+
return obj;
|
|
68
|
+
}, { toClassOnly: true }),
|
|
69
|
+
__metadata("design:type", Object)
|
|
70
|
+
], PushOption.prototype, "properties", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
73
|
+
(0, class_transformer_1.Expose)({ name: "required" }),
|
|
74
|
+
__metadata("design:type", Boolean)
|
|
75
|
+
], PushOption.prototype, "required", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
78
|
+
(0, class_transformer_1.Expose)({ name: "type" }),
|
|
79
|
+
__metadata("design:type", String)
|
|
80
|
+
], PushOption.prototype, "type", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
83
|
+
(0, class_transformer_1.Expose)({ name: "validation" }),
|
|
84
|
+
(0, class_transformer_1.Type)(function () { return pushvalidationinfo_1.PushValidationInfo; }),
|
|
85
|
+
__metadata("design:type", pushvalidationinfo_1.PushValidationInfo)
|
|
86
|
+
], PushOption.prototype, "validation", void 0);
|
|
87
|
+
return PushOption;
|
|
88
|
+
}(utils_1.SpeakeasyBase));
|
|
89
|
+
exports.PushOption = PushOption;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
+
import { PushOptionType } from "./pushoptiontype";
|
|
3
|
+
export declare class PushOptionChoice extends SpeakeasyBase {
|
|
4
|
+
description?: string;
|
|
5
|
+
displayName?: string;
|
|
6
|
+
required?: boolean;
|
|
7
|
+
type?: PushOptionType;
|
|
8
|
+
/**
|
|
9
|
+
* Allowed value for field.
|
|
10
|
+
*/
|
|
11
|
+
value?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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.PushOptionChoice = void 0;
|
|
31
|
+
var utils_1 = require("../../../internal/utils");
|
|
32
|
+
var pushoptiontype_1 = require("./pushoptiontype");
|
|
33
|
+
var class_transformer_1 = require("class-transformer");
|
|
34
|
+
var PushOptionChoice = /** @class */ (function (_super) {
|
|
35
|
+
__extends(PushOptionChoice, _super);
|
|
36
|
+
function PushOptionChoice() {
|
|
37
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
38
|
+
}
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
41
|
+
(0, class_transformer_1.Expose)({ name: "description" }),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], PushOptionChoice.prototype, "description", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
46
|
+
(0, class_transformer_1.Expose)({ name: "displayName" }),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], PushOptionChoice.prototype, "displayName", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
51
|
+
(0, class_transformer_1.Expose)({ name: "required" }),
|
|
52
|
+
__metadata("design:type", Boolean)
|
|
53
|
+
], PushOptionChoice.prototype, "required", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
56
|
+
(0, class_transformer_1.Expose)({ name: "type" }),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], PushOptionChoice.prototype, "type", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
61
|
+
(0, class_transformer_1.Expose)({ name: "value" }),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], PushOptionChoice.prototype, "value", void 0);
|
|
64
|
+
return PushOptionChoice;
|
|
65
|
+
}(utils_1.SpeakeasyBase));
|
|
66
|
+
exports.PushOptionChoice = PushOptionChoice;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
+
import { PushOptionChoice } from "./pushoptionchoice";
|
|
3
|
+
import { PushOptionType } from "./pushoptiontype";
|
|
4
|
+
import { PushValidationInfo } from "./pushvalidationinfo";
|
|
5
|
+
export declare class PushOptionProperty extends SpeakeasyBase {
|
|
6
|
+
description: string;
|
|
7
|
+
displayName: string;
|
|
8
|
+
options?: PushOptionChoice[];
|
|
9
|
+
properties?: Record<string, PushOptionProperty>;
|
|
10
|
+
required: boolean;
|
|
11
|
+
type: PushOptionType;
|
|
12
|
+
validation?: PushValidationInfo;
|
|
13
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
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.PushOptionProperty = void 0;
|
|
31
|
+
var utils_1 = require("../../../internal/utils");
|
|
32
|
+
var pushoptionchoice_1 = require("./pushoptionchoice");
|
|
33
|
+
var pushoptiontype_1 = require("./pushoptiontype");
|
|
34
|
+
var pushvalidationinfo_1 = require("./pushvalidationinfo");
|
|
35
|
+
var class_transformer_1 = require("class-transformer");
|
|
36
|
+
var PushOptionProperty = /** @class */ (function (_super) {
|
|
37
|
+
__extends(PushOptionProperty, _super);
|
|
38
|
+
function PushOptionProperty() {
|
|
39
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
40
|
+
}
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
43
|
+
(0, class_transformer_1.Expose)({ name: "description" }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], PushOptionProperty.prototype, "description", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
48
|
+
(0, class_transformer_1.Expose)({ name: "displayName" }),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], PushOptionProperty.prototype, "displayName", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, utils_1.SpeakeasyMetadata)({ elemType: pushoptionchoice_1.PushOptionChoice }),
|
|
53
|
+
(0, class_transformer_1.Expose)({ name: "options" }),
|
|
54
|
+
(0, class_transformer_1.Type)(function () { return pushoptionchoice_1.PushOptionChoice; }),
|
|
55
|
+
__metadata("design:type", Array)
|
|
56
|
+
], PushOptionProperty.prototype, "options", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, utils_1.SpeakeasyMetadata)({ elemType: PushOptionProperty }),
|
|
59
|
+
(0, class_transformer_1.Expose)({ name: "properties" }),
|
|
60
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
|
61
|
+
var value = _a.value;
|
|
62
|
+
var obj = {};
|
|
63
|
+
for (var key in value) {
|
|
64
|
+
obj[key] = (0, utils_1.objectToClass)(value[key], PushOptionProperty);
|
|
65
|
+
}
|
|
66
|
+
return obj;
|
|
67
|
+
}, { toClassOnly: true }),
|
|
68
|
+
__metadata("design:type", Object)
|
|
69
|
+
], PushOptionProperty.prototype, "properties", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
72
|
+
(0, class_transformer_1.Expose)({ name: "required" }),
|
|
73
|
+
__metadata("design:type", Boolean)
|
|
74
|
+
], PushOptionProperty.prototype, "required", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
77
|
+
(0, class_transformer_1.Expose)({ name: "type" }),
|
|
78
|
+
__metadata("design:type", String)
|
|
79
|
+
], PushOptionProperty.prototype, "type", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
82
|
+
(0, class_transformer_1.Expose)({ name: "validation" }),
|
|
83
|
+
(0, class_transformer_1.Type)(function () { return pushvalidationinfo_1.PushValidationInfo; }),
|
|
84
|
+
__metadata("design:type", pushvalidationinfo_1.PushValidationInfo)
|
|
85
|
+
], PushOptionProperty.prototype, "validation", void 0);
|
|
86
|
+
return PushOptionProperty;
|
|
87
|
+
}(utils_1.SpeakeasyBase));
|
|
88
|
+
exports.PushOptionProperty = PushOptionProperty;
|
|
@@ -0,0 +1,17 @@
|
|
|
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.PushOptionType = void 0;
|
|
7
|
+
var PushOptionType;
|
|
8
|
+
(function (PushOptionType) {
|
|
9
|
+
PushOptionType["Array"] = "Array";
|
|
10
|
+
PushOptionType["Object"] = "Object";
|
|
11
|
+
PushOptionType["String"] = "String";
|
|
12
|
+
PushOptionType["Number"] = "Number";
|
|
13
|
+
PushOptionType["Boolean"] = "Boolean";
|
|
14
|
+
PushOptionType["DateTime"] = "DateTime";
|
|
15
|
+
PushOptionType["File"] = "File";
|
|
16
|
+
PushOptionType["MultiPart"] = "MultiPart";
|
|
17
|
+
})(PushOptionType = exports.PushOptionType || (exports.PushOptionType = {}));
|
|
@@ -0,0 +1,53 @@
|
|
|
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.PushValidationInfo = void 0;
|
|
31
|
+
var utils_1 = require("../../../internal/utils");
|
|
32
|
+
var pushfieldvalidation_1 = require("./pushfieldvalidation");
|
|
33
|
+
var class_transformer_1 = require("class-transformer");
|
|
34
|
+
var PushValidationInfo = /** @class */ (function (_super) {
|
|
35
|
+
__extends(PushValidationInfo, _super);
|
|
36
|
+
function PushValidationInfo() {
|
|
37
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
38
|
+
}
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, utils_1.SpeakeasyMetadata)({ elemType: pushfieldvalidation_1.PushFieldValidation }),
|
|
41
|
+
(0, class_transformer_1.Expose)({ name: "information" }),
|
|
42
|
+
(0, class_transformer_1.Type)(function () { return pushfieldvalidation_1.PushFieldValidation; }),
|
|
43
|
+
__metadata("design:type", Array)
|
|
44
|
+
], PushValidationInfo.prototype, "information", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, utils_1.SpeakeasyMetadata)({ elemType: pushfieldvalidation_1.PushFieldValidation }),
|
|
47
|
+
(0, class_transformer_1.Expose)({ name: "warnings" }),
|
|
48
|
+
(0, class_transformer_1.Type)(function () { return pushfieldvalidation_1.PushFieldValidation; }),
|
|
49
|
+
__metadata("design:type", Array)
|
|
50
|
+
], PushValidationInfo.prototype, "warnings", void 0);
|
|
51
|
+
return PushValidationInfo;
|
|
52
|
+
}(utils_1.SpeakeasyBase));
|
|
53
|
+
exports.PushValidationInfo = PushValidationInfo;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
+
import { ValidationItem } from "./validationitem";
|
|
3
|
+
/**
|
|
4
|
+
* 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.
|
|
5
|
+
*/
|
|
6
|
+
export declare class Validation extends SpeakeasyBase {
|
|
7
|
+
errors?: ValidationItem[];
|
|
8
|
+
warnings?: ValidationItem[];
|
|
9
|
+
}
|