@unified-api/typescript-sdk 2.6.4 → 2.7.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 +12 -0
- package/funcs/accountingCreateAccountingOrder.d.ts +13 -0
- package/funcs/accountingCreateAccountingOrder.d.ts.map +1 -0
- package/funcs/accountingCreateAccountingOrder.js +98 -0
- package/funcs/accountingCreateAccountingOrder.js.map +1 -0
- package/funcs/accountingGetAccountingOrder.d.ts +13 -0
- package/funcs/accountingGetAccountingOrder.d.ts.map +1 -0
- package/funcs/accountingGetAccountingOrder.js +101 -0
- package/funcs/accountingGetAccountingOrder.js.map +1 -0
- package/funcs/accountingListAccountingOrders.d.ts +13 -0
- package/funcs/accountingListAccountingOrders.d.ts.map +1 -0
- package/funcs/accountingListAccountingOrders.js +105 -0
- package/funcs/accountingListAccountingOrders.js.map +1 -0
- package/funcs/accountingPatchAccountingOrder.d.ts +13 -0
- package/funcs/accountingPatchAccountingOrder.d.ts.map +1 -0
- package/funcs/accountingPatchAccountingOrder.js +102 -0
- package/funcs/accountingPatchAccountingOrder.js.map +1 -0
- package/funcs/accountingRemoveAccountingOrder.d.ts +12 -0
- package/funcs/accountingRemoveAccountingOrder.d.ts.map +1 -0
- package/funcs/accountingRemoveAccountingOrder.js +97 -0
- package/funcs/accountingRemoveAccountingOrder.js.map +1 -0
- package/funcs/accountingUpdateAccountingOrder.d.ts +13 -0
- package/funcs/accountingUpdateAccountingOrder.d.ts.map +1 -0
- package/funcs/accountingUpdateAccountingOrder.js +102 -0
- package/funcs/accountingUpdateAccountingOrder.js.map +1 -0
- package/funcs/orderCreateAccountingOrder.d.ts +13 -0
- package/funcs/orderCreateAccountingOrder.d.ts.map +1 -0
- package/funcs/orderCreateAccountingOrder.js +98 -0
- package/funcs/orderCreateAccountingOrder.js.map +1 -0
- package/funcs/orderGetAccountingOrder.d.ts +13 -0
- package/funcs/orderGetAccountingOrder.d.ts.map +1 -0
- package/funcs/orderGetAccountingOrder.js +101 -0
- package/funcs/orderGetAccountingOrder.js.map +1 -0
- package/funcs/orderListAccountingOrders.d.ts +13 -0
- package/funcs/orderListAccountingOrders.d.ts.map +1 -0
- package/funcs/orderListAccountingOrders.js +105 -0
- package/funcs/orderListAccountingOrders.js.map +1 -0
- package/funcs/orderPatchAccountingOrder.d.ts +13 -0
- package/funcs/orderPatchAccountingOrder.d.ts.map +1 -0
- package/funcs/orderPatchAccountingOrder.js +102 -0
- package/funcs/orderPatchAccountingOrder.js.map +1 -0
- package/funcs/orderRemoveAccountingOrder.d.ts +12 -0
- package/funcs/orderRemoveAccountingOrder.d.ts.map +1 -0
- package/funcs/orderRemoveAccountingOrder.js +97 -0
- package/funcs/orderRemoveAccountingOrder.js.map +1 -0
- package/funcs/orderUpdateAccountingOrder.d.ts +13 -0
- package/funcs/orderUpdateAccountingOrder.d.ts.map +1 -0
- package/funcs/orderUpdateAccountingOrder.js +102 -0
- package/funcs/orderUpdateAccountingOrder.js.map +1 -0
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/package.json +1 -1
- package/sdk/accounting.d.ts +24 -0
- package/sdk/accounting.d.ts.map +1 -1
- package/sdk/accounting.js +42 -0
- package/sdk/accounting.js.map +1 -1
- package/sdk/models/operations/createaccountingorder.d.ts +36 -0
- package/sdk/models/operations/createaccountingorder.d.ts.map +1 -0
- package/sdk/models/operations/createaccountingorder.js +66 -0
- package/sdk/models/operations/createaccountingorder.js.map +1 -0
- package/sdk/models/operations/getaccountingorder.d.ts +38 -0
- package/sdk/models/operations/getaccountingorder.d.ts.map +1 -0
- package/sdk/models/operations/getaccountingorder.js +63 -0
- package/sdk/models/operations/getaccountingorder.js.map +1 -0
- package/sdk/models/operations/getunifiedintegrationauth.d.ts +6 -0
- package/sdk/models/operations/getunifiedintegrationauth.d.ts.map +1 -1
- package/sdk/models/operations/getunifiedintegrationauth.js +2 -0
- package/sdk/models/operations/getunifiedintegrationauth.js.map +1 -1
- package/sdk/models/operations/index.d.ts +6 -0
- package/sdk/models/operations/index.d.ts.map +1 -1
- package/sdk/models/operations/index.js +6 -0
- package/sdk/models/operations/index.js.map +1 -1
- package/sdk/models/operations/listaccountingorders.d.ts +53 -0
- package/sdk/models/operations/listaccountingorders.d.ts.map +1 -0
- package/sdk/models/operations/listaccountingorders.js +78 -0
- package/sdk/models/operations/listaccountingorders.js.map +1 -0
- package/sdk/models/operations/patchaccountingorder.d.ts +41 -0
- package/sdk/models/operations/patchaccountingorder.d.ts.map +1 -0
- package/sdk/models/operations/patchaccountingorder.js +68 -0
- package/sdk/models/operations/patchaccountingorder.js.map +1 -0
- package/sdk/models/operations/removeaccountingorder.d.ts +33 -0
- package/sdk/models/operations/removeaccountingorder.d.ts.map +1 -0
- package/sdk/models/operations/removeaccountingorder.js +61 -0
- package/sdk/models/operations/removeaccountingorder.js.map +1 -0
- package/sdk/models/operations/updateaccountingorder.d.ts +41 -0
- package/sdk/models/operations/updateaccountingorder.d.ts.map +1 -0
- package/sdk/models/operations/updateaccountingorder.js +68 -0
- package/sdk/models/operations/updateaccountingorder.js.map +1 -0
- package/sdk/models/shared/accountinginvoice.d.ts +29 -0
- package/sdk/models/shared/accountinginvoice.d.ts.map +1 -1
- package/sdk/models/shared/accountinginvoice.js +27 -1
- package/sdk/models/shared/accountinginvoice.js.map +1 -1
- package/sdk/models/shared/accountingorder.d.ts +122 -0
- package/sdk/models/shared/accountingorder.d.ts.map +1 -0
- package/sdk/models/shared/accountingorder.js +147 -0
- package/sdk/models/shared/accountingorder.js.map +1 -0
- package/sdk/models/shared/index.d.ts +3 -0
- package/sdk/models/shared/index.d.ts.map +1 -1
- package/sdk/models/shared/index.js +3 -0
- package/sdk/models/shared/index.js.map +1 -1
- package/sdk/models/shared/propertyaccountingorderbillingaddress.d.ts +39 -0
- package/sdk/models/shared/propertyaccountingorderbillingaddress.d.ts.map +1 -0
- package/sdk/models/shared/propertyaccountingorderbillingaddress.js +77 -0
- package/sdk/models/shared/propertyaccountingorderbillingaddress.js.map +1 -0
- package/sdk/models/shared/propertyaccountingordershippingaddress.d.ts +39 -0
- package/sdk/models/shared/propertyaccountingordershippingaddress.d.ts.map +1 -0
- package/sdk/models/shared/propertyaccountingordershippingaddress.js +77 -0
- package/sdk/models/shared/propertyaccountingordershippingaddress.js.map +1 -0
- package/sdk/models/shared/propertyconnectionpermissions.d.ts +6 -0
- package/sdk/models/shared/propertyconnectionpermissions.d.ts.map +1 -1
- package/sdk/models/shared/propertyconnectionpermissions.js +2 -0
- package/sdk/models/shared/propertyconnectionpermissions.js.map +1 -1
- package/sdk/models/shared/webhook.d.ts +3 -0
- package/sdk/models/shared/webhook.d.ts.map +1 -1
- package/sdk/models/shared/webhook.js +1 -0
- package/sdk/models/shared/webhook.js.map +1 -1
- package/sdk/order.d.ts +30 -0
- package/sdk/order.d.ts.map +1 -0
- package/sdk/order.js +54 -0
- package/sdk/order.js.map +1 -0
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +5 -0
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/accountingCreateAccountingOrder.ts +126 -0
- package/src/funcs/accountingGetAccountingOrder.ts +128 -0
- package/src/funcs/accountingListAccountingOrders.ts +133 -0
- package/src/funcs/accountingPatchAccountingOrder.ts +130 -0
- package/src/funcs/accountingRemoveAccountingOrder.ts +124 -0
- package/src/funcs/accountingUpdateAccountingOrder.ts +130 -0
- package/src/funcs/orderCreateAccountingOrder.ts +126 -0
- package/src/funcs/orderGetAccountingOrder.ts +128 -0
- package/src/funcs/orderListAccountingOrders.ts +133 -0
- package/src/funcs/orderPatchAccountingOrder.ts +130 -0
- package/src/funcs/orderRemoveAccountingOrder.ts +124 -0
- package/src/funcs/orderUpdateAccountingOrder.ts +130 -0
- package/src/lib/config.ts +3 -3
- package/src/sdk/accounting.ts +90 -0
- package/src/sdk/models/operations/createaccountingorder.ts +71 -0
- package/src/sdk/models/operations/getaccountingorder.ts +71 -0
- package/src/sdk/models/operations/getunifiedintegrationauth.ts +2 -0
- package/src/sdk/models/operations/index.ts +6 -0
- package/src/sdk/models/operations/listaccountingorders.ts +101 -0
- package/src/sdk/models/operations/patchaccountingorder.ts +78 -0
- package/src/sdk/models/operations/removeaccountingorder.ts +64 -0
- package/src/sdk/models/operations/updateaccountingorder.ts +78 -0
- package/src/sdk/models/shared/accountinginvoice.ts +38 -0
- package/src/sdk/models/shared/accountingorder.ts +200 -0
- package/src/sdk/models/shared/index.ts +3 -0
- package/src/sdk/models/shared/propertyaccountingorderbillingaddress.ts +88 -0
- package/src/sdk/models/shared/propertyaccountingordershippingaddress.ts +88 -0
- package/src/sdk/models/shared/propertyconnectionpermissions.ts +2 -0
- package/src/sdk/models/shared/webhook.ts +1 -0
- package/src/sdk/order.ts +100 -0
- package/src/sdk/sdk.ts +6 -0
package/README.md
CHANGED
|
@@ -422,12 +422,14 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
422
422
|
- [`accountingCreateAccountingContact`](docs/sdks/accounting/README.md#createaccountingcontact) - Create a contact
|
|
423
423
|
- [`accountingCreateAccountingInvoice`](docs/sdks/accounting/README.md#createaccountinginvoice) - Create an invoice
|
|
424
424
|
- [`accountingCreateAccountingJournal`](docs/sdks/accounting/README.md#createaccountingjournal) - Create a journal
|
|
425
|
+
- [`accountingCreateAccountingOrder`](docs/sdks/accounting/README.md#createaccountingorder) - Create an order
|
|
425
426
|
- [`accountingCreateAccountingTaxrate`](docs/sdks/accounting/README.md#createaccountingtaxrate) - Create a taxrate
|
|
426
427
|
- [`accountingCreateAccountingTransaction`](docs/sdks/accounting/README.md#createaccountingtransaction) - Create a transaction
|
|
427
428
|
- [`accountingGetAccountingAccount`](docs/sdks/accounting/README.md#getaccountingaccount) - Retrieve an account
|
|
428
429
|
- [`accountingGetAccountingContact`](docs/sdks/accounting/README.md#getaccountingcontact) - Retrieve a contact
|
|
429
430
|
- [`accountingGetAccountingInvoice`](docs/sdks/accounting/README.md#getaccountinginvoice) - Retrieve an invoice
|
|
430
431
|
- [`accountingGetAccountingJournal`](docs/sdks/accounting/README.md#getaccountingjournal) - Retrieve a journal
|
|
432
|
+
- [`accountingGetAccountingOrder`](docs/sdks/accounting/README.md#getaccountingorder) - Retrieve an order
|
|
431
433
|
- [`accountingGetAccountingOrganization`](docs/sdks/accounting/README.md#getaccountingorganization) - Retrieve an organization
|
|
432
434
|
- [`accountingGetAccountingTaxrate`](docs/sdks/accounting/README.md#getaccountingtaxrate) - Retrieve a taxrate
|
|
433
435
|
- [`accountingGetAccountingTransaction`](docs/sdks/accounting/README.md#getaccountingtransaction) - Retrieve a transaction
|
|
@@ -435,6 +437,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
435
437
|
- [`accountingListAccountingContacts`](docs/sdks/accounting/README.md#listaccountingcontacts) - List all contacts
|
|
436
438
|
- [`accountingListAccountingInvoices`](docs/sdks/accounting/README.md#listaccountinginvoices) - List all invoices
|
|
437
439
|
- [`accountingListAccountingJournals`](docs/sdks/accounting/README.md#listaccountingjournals) - List all journals
|
|
440
|
+
- [`accountingListAccountingOrders`](docs/sdks/accounting/README.md#listaccountingorders) - List all orders
|
|
438
441
|
- [`accountingListAccountingOrganizations`](docs/sdks/accounting/README.md#listaccountingorganizations) - List all organizations
|
|
439
442
|
- [`accountingListAccountingTaxrates`](docs/sdks/accounting/README.md#listaccountingtaxrates) - List all taxrates
|
|
440
443
|
- [`accountingListAccountingTransactions`](docs/sdks/accounting/README.md#listaccountingtransactions) - List all transactions
|
|
@@ -442,18 +445,21 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
442
445
|
- [`accountingPatchAccountingContact`](docs/sdks/accounting/README.md#patchaccountingcontact) - Update a contact
|
|
443
446
|
- [`accountingPatchAccountingInvoice`](docs/sdks/accounting/README.md#patchaccountinginvoice) - Update an invoice
|
|
444
447
|
- [`accountingPatchAccountingJournal`](docs/sdks/accounting/README.md#patchaccountingjournal) - Update a journal
|
|
448
|
+
- [`accountingPatchAccountingOrder`](docs/sdks/accounting/README.md#patchaccountingorder) - Update an order
|
|
445
449
|
- [`accountingPatchAccountingTaxrate`](docs/sdks/accounting/README.md#patchaccountingtaxrate) - Update a taxrate
|
|
446
450
|
- [`accountingPatchAccountingTransaction`](docs/sdks/accounting/README.md#patchaccountingtransaction) - Update a transaction
|
|
447
451
|
- [`accountingRemoveAccountingAccount`](docs/sdks/accounting/README.md#removeaccountingaccount) - Remove an account
|
|
448
452
|
- [`accountingRemoveAccountingContact`](docs/sdks/accounting/README.md#removeaccountingcontact) - Remove a contact
|
|
449
453
|
- [`accountingRemoveAccountingInvoice`](docs/sdks/accounting/README.md#removeaccountinginvoice) - Remove an invoice
|
|
450
454
|
- [`accountingRemoveAccountingJournal`](docs/sdks/accounting/README.md#removeaccountingjournal) - Remove a journal
|
|
455
|
+
- [`accountingRemoveAccountingOrder`](docs/sdks/accounting/README.md#removeaccountingorder) - Remove an order
|
|
451
456
|
- [`accountingRemoveAccountingTaxrate`](docs/sdks/accounting/README.md#removeaccountingtaxrate) - Remove a taxrate
|
|
452
457
|
- [`accountingRemoveAccountingTransaction`](docs/sdks/accounting/README.md#removeaccountingtransaction) - Remove a transaction
|
|
453
458
|
- [`accountingUpdateAccountingAccount`](docs/sdks/accounting/README.md#updateaccountingaccount) - Update an account
|
|
454
459
|
- [`accountingUpdateAccountingContact`](docs/sdks/accounting/README.md#updateaccountingcontact) - Update a contact
|
|
455
460
|
- [`accountingUpdateAccountingInvoice`](docs/sdks/accounting/README.md#updateaccountinginvoice) - Update an invoice
|
|
456
461
|
- [`accountingUpdateAccountingJournal`](docs/sdks/accounting/README.md#updateaccountingjournal) - Update a journal
|
|
462
|
+
- [`accountingUpdateAccountingOrder`](docs/sdks/accounting/README.md#updateaccountingorder) - Update an order
|
|
457
463
|
- [`accountingUpdateAccountingTaxrate`](docs/sdks/accounting/README.md#updateaccountingtaxrate) - Update a taxrate
|
|
458
464
|
- [`accountingUpdateAccountingTransaction`](docs/sdks/accounting/README.md#updateaccountingtransaction) - Update a transaction
|
|
459
465
|
- [`accountListAccountingAccounts`](docs/sdks/account/README.md#listaccountingaccounts) - List all accounts
|
|
@@ -837,6 +843,12 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
837
843
|
- [`notePatchTicketingNote`](docs/sdks/note/README.md#patchticketingnote) - Update a note
|
|
838
844
|
- [`noteRemoveTicketingNote`](docs/sdks/note/README.md#removeticketingnote) - Remove a note
|
|
839
845
|
- [`noteUpdateTicketingNote`](docs/sdks/note/README.md#updateticketingnote) - Update a note
|
|
846
|
+
- [`orderCreateAccountingOrder`](docs/sdks/order/README.md#createaccountingorder) - Create an order
|
|
847
|
+
- [`orderGetAccountingOrder`](docs/sdks/order/README.md#getaccountingorder) - Retrieve an order
|
|
848
|
+
- [`orderListAccountingOrders`](docs/sdks/order/README.md#listaccountingorders) - List all orders
|
|
849
|
+
- [`orderPatchAccountingOrder`](docs/sdks/order/README.md#patchaccountingorder) - Update an order
|
|
850
|
+
- [`orderRemoveAccountingOrder`](docs/sdks/order/README.md#removeaccountingorder) - Remove an order
|
|
851
|
+
- [`orderUpdateAccountingOrder`](docs/sdks/order/README.md#updateaccountingorder) - Update an order
|
|
840
852
|
- [`organizationGetAccountingOrganization`](docs/sdks/organization/README.md#getaccountingorganization) - Retrieve an organization
|
|
841
853
|
- [`organizationListAccountingOrganizations`](docs/sdks/organization/README.md#listaccountingorganizations) - List all organizations
|
|
842
854
|
- [`pageCreateKmsPage`](docs/sdks/page/README.md#createkmspage) - Create a page
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { UnifiedToCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../sdk/models/errors/httpclienterrors.js";
|
|
4
|
+
import { SDKError } from "../sdk/models/errors/sdkerror.js";
|
|
5
|
+
import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
|
|
6
|
+
import * as operations from "../sdk/models/operations/index.js";
|
|
7
|
+
import * as shared from "../sdk/models/shared/index.js";
|
|
8
|
+
import { Result } from "../sdk/types/fp.js";
|
|
9
|
+
/**
|
|
10
|
+
* Create an order
|
|
11
|
+
*/
|
|
12
|
+
export declare function accountingCreateAccountingOrder(client: UnifiedToCore, request: operations.CreateAccountingOrderRequest, options?: RequestOptions): Promise<Result<shared.AccountingOrder, SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
13
|
+
//# sourceMappingURL=accountingCreateAccountingOrder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accountingCreateAccountingOrder.d.ts","sourceRoot":"","sources":["../src/funcs/accountingCreateAccountingOrder.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAI3C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAChF,OAAO,KAAK,UAAU,MAAM,mCAAmC,CAAC;AAChE,OAAO,KAAK,MAAM,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5C;;GAEG;AACH,wBAAsB,+BAA+B,CACnD,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,UAAU,CAAC,4BAA4B,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,MAAM,CAAC,eAAe,EACpB,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAmFA"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.accountingCreateAccountingOrder = accountingCreateAccountingOrder;
|
|
30
|
+
const encodings_js_1 = require("../lib/encodings.js");
|
|
31
|
+
const M = __importStar(require("../lib/matchers.js"));
|
|
32
|
+
const schemas_js_1 = require("../lib/schemas.js");
|
|
33
|
+
const security_js_1 = require("../lib/security.js");
|
|
34
|
+
const url_js_1 = require("../lib/url.js");
|
|
35
|
+
const operations = __importStar(require("../sdk/models/operations/index.js"));
|
|
36
|
+
const shared = __importStar(require("../sdk/models/shared/index.js"));
|
|
37
|
+
/**
|
|
38
|
+
* Create an order
|
|
39
|
+
*/
|
|
40
|
+
async function accountingCreateAccountingOrder(client, request, options) {
|
|
41
|
+
const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.CreateAccountingOrderRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42
|
+
if (!parsed.ok) {
|
|
43
|
+
return parsed;
|
|
44
|
+
}
|
|
45
|
+
const payload = parsed.value;
|
|
46
|
+
const body = (0, encodings_js_1.encodeJSON)("body", payload.AccountingOrder, { explode: true });
|
|
47
|
+
const pathParams = {
|
|
48
|
+
connection_id: (0, encodings_js_1.encodeSimple)("connection_id", payload.connection_id, {
|
|
49
|
+
explode: false,
|
|
50
|
+
charEncoding: "percent",
|
|
51
|
+
}),
|
|
52
|
+
};
|
|
53
|
+
const path = (0, url_js_1.pathToFunc)("/accounting/{connection_id}/order")(pathParams);
|
|
54
|
+
const query = (0, encodings_js_1.encodeFormQuery)({
|
|
55
|
+
"fields": payload.fields,
|
|
56
|
+
});
|
|
57
|
+
const headers = new Headers({
|
|
58
|
+
"Content-Type": "application/json",
|
|
59
|
+
Accept: "application/json",
|
|
60
|
+
});
|
|
61
|
+
const securityInput = await (0, security_js_1.extractSecurity)(client._options.security);
|
|
62
|
+
const context = {
|
|
63
|
+
operationID: "createAccountingOrder",
|
|
64
|
+
oAuth2Scopes: [],
|
|
65
|
+
securitySource: client._options.security,
|
|
66
|
+
};
|
|
67
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
68
|
+
const requestRes = client._createRequest(context, {
|
|
69
|
+
security: requestSecurity,
|
|
70
|
+
method: "POST",
|
|
71
|
+
path: path,
|
|
72
|
+
headers: headers,
|
|
73
|
+
query: query,
|
|
74
|
+
body: body,
|
|
75
|
+
timeoutMs: (options === null || options === void 0 ? void 0 : options.timeoutMs) || client._options.timeoutMs || -1,
|
|
76
|
+
}, options);
|
|
77
|
+
if (!requestRes.ok) {
|
|
78
|
+
return requestRes;
|
|
79
|
+
}
|
|
80
|
+
const req = requestRes.value;
|
|
81
|
+
const doResult = await client._do(req, {
|
|
82
|
+
context,
|
|
83
|
+
errorCodes: ["4XX", "5XX"],
|
|
84
|
+
retryConfig: (options === null || options === void 0 ? void 0 : options.retries)
|
|
85
|
+
|| client._options.retryConfig,
|
|
86
|
+
retryCodes: (options === null || options === void 0 ? void 0 : options.retryCodes) || ["429", "500", "502", "503", "504"],
|
|
87
|
+
});
|
|
88
|
+
if (!doResult.ok) {
|
|
89
|
+
return doResult;
|
|
90
|
+
}
|
|
91
|
+
const response = doResult.value;
|
|
92
|
+
const [result] = await M.match(M.json(200, shared.AccountingOrder$inboundSchema), M.fail(["4XX", "5XX"]))(response);
|
|
93
|
+
if (!result.ok) {
|
|
94
|
+
return result;
|
|
95
|
+
}
|
|
96
|
+
return result;
|
|
97
|
+
}
|
|
98
|
+
//# sourceMappingURL=accountingCreateAccountingOrder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accountingCreateAccountingOrder.js","sourceRoot":"","sources":["../src/funcs/accountingCreateAccountingOrder.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;AAyBH,0EAkGC;AAxHD,sDAAgF;AAChF,sDAAwC;AACxC,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAU3C,8EAAgE;AAChE,sEAAwD;AAGxD;;GAEG;AACI,KAAK,UAAU,+BAA+B,CACnD,MAAqB,EACrB,OAAgD,EAChD,OAAwB;IAaxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CACR,UAAU,CAAC,2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
|
1
|
+
import { UnifiedToCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../sdk/models/errors/httpclienterrors.js";
|
|
4
|
+
import { SDKError } from "../sdk/models/errors/sdkerror.js";
|
|
5
|
+
import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
|
|
6
|
+
import * as operations from "../sdk/models/operations/index.js";
|
|
7
|
+
import * as shared from "../sdk/models/shared/index.js";
|
|
8
|
+
import { Result } from "../sdk/types/fp.js";
|
|
9
|
+
/**
|
|
10
|
+
* Retrieve an order
|
|
11
|
+
*/
|
|
12
|
+
export declare function accountingGetAccountingOrder(client: UnifiedToCore, request: operations.GetAccountingOrderRequest, options?: RequestOptions): Promise<Result<shared.AccountingOrder, SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
13
|
+
//# sourceMappingURL=accountingGetAccountingOrder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accountingGetAccountingOrder.d.ts","sourceRoot":"","sources":["../src/funcs/accountingGetAccountingOrder.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAI3C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAChF,OAAO,KAAK,UAAU,MAAM,mCAAmC,CAAC;AAChE,OAAO,KAAK,MAAM,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5C;;GAEG;AACH,wBAAsB,4BAA4B,CAChD,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,UAAU,CAAC,yBAAyB,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,MAAM,CAAC,eAAe,EACpB,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAqFA"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.accountingGetAccountingOrder = accountingGetAccountingOrder;
|
|
30
|
+
const encodings_js_1 = require("../lib/encodings.js");
|
|
31
|
+
const M = __importStar(require("../lib/matchers.js"));
|
|
32
|
+
const schemas_js_1 = require("../lib/schemas.js");
|
|
33
|
+
const security_js_1 = require("../lib/security.js");
|
|
34
|
+
const url_js_1 = require("../lib/url.js");
|
|
35
|
+
const operations = __importStar(require("../sdk/models/operations/index.js"));
|
|
36
|
+
const shared = __importStar(require("../sdk/models/shared/index.js"));
|
|
37
|
+
/**
|
|
38
|
+
* Retrieve an order
|
|
39
|
+
*/
|
|
40
|
+
async function accountingGetAccountingOrder(client, request, options) {
|
|
41
|
+
const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.GetAccountingOrderRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42
|
+
if (!parsed.ok) {
|
|
43
|
+
return parsed;
|
|
44
|
+
}
|
|
45
|
+
const payload = parsed.value;
|
|
46
|
+
const body = null;
|
|
47
|
+
const pathParams = {
|
|
48
|
+
connection_id: (0, encodings_js_1.encodeSimple)("connection_id", payload.connection_id, {
|
|
49
|
+
explode: false,
|
|
50
|
+
charEncoding: "percent",
|
|
51
|
+
}),
|
|
52
|
+
id: (0, encodings_js_1.encodeSimple)("id", payload.id, {
|
|
53
|
+
explode: false,
|
|
54
|
+
charEncoding: "percent",
|
|
55
|
+
}),
|
|
56
|
+
};
|
|
57
|
+
const path = (0, url_js_1.pathToFunc)("/accounting/{connection_id}/order/{id}")(pathParams);
|
|
58
|
+
const query = (0, encodings_js_1.encodeFormQuery)({
|
|
59
|
+
"fields": payload.fields,
|
|
60
|
+
});
|
|
61
|
+
const headers = new Headers({
|
|
62
|
+
Accept: "application/json",
|
|
63
|
+
});
|
|
64
|
+
const securityInput = await (0, security_js_1.extractSecurity)(client._options.security);
|
|
65
|
+
const context = {
|
|
66
|
+
operationID: "getAccountingOrder",
|
|
67
|
+
oAuth2Scopes: [],
|
|
68
|
+
securitySource: client._options.security,
|
|
69
|
+
};
|
|
70
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
71
|
+
const requestRes = client._createRequest(context, {
|
|
72
|
+
security: requestSecurity,
|
|
73
|
+
method: "GET",
|
|
74
|
+
path: path,
|
|
75
|
+
headers: headers,
|
|
76
|
+
query: query,
|
|
77
|
+
body: body,
|
|
78
|
+
timeoutMs: (options === null || options === void 0 ? void 0 : options.timeoutMs) || client._options.timeoutMs || -1,
|
|
79
|
+
}, options);
|
|
80
|
+
if (!requestRes.ok) {
|
|
81
|
+
return requestRes;
|
|
82
|
+
}
|
|
83
|
+
const req = requestRes.value;
|
|
84
|
+
const doResult = await client._do(req, {
|
|
85
|
+
context,
|
|
86
|
+
errorCodes: ["4XX", "5XX"],
|
|
87
|
+
retryConfig: (options === null || options === void 0 ? void 0 : options.retries)
|
|
88
|
+
|| client._options.retryConfig,
|
|
89
|
+
retryCodes: (options === null || options === void 0 ? void 0 : options.retryCodes) || ["429", "500", "502", "503", "504"],
|
|
90
|
+
});
|
|
91
|
+
if (!doResult.ok) {
|
|
92
|
+
return doResult;
|
|
93
|
+
}
|
|
94
|
+
const response = doResult.value;
|
|
95
|
+
const [result] = await M.match(M.json(200, shared.AccountingOrder$inboundSchema), M.fail(["4XX", "5XX"]))(response);
|
|
96
|
+
if (!result.ok) {
|
|
97
|
+
return result;
|
|
98
|
+
}
|
|
99
|
+
return result;
|
|
100
|
+
}
|
|
101
|
+
//# sourceMappingURL=accountingGetAccountingOrder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accountingGetAccountingOrder.js","sourceRoot":"","sources":["../src/funcs/accountingGetAccountingOrder.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;AAyBH,oEAoGC;AA1HD,sDAAoE;AACpE,sDAAwC;AACxC,kDAA8C;AAE9C,oDAA4E;AAC5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CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CACvB,CAAC,QAAQ,CAAC,CAAC;IACZ,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { UnifiedToCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../sdk/models/errors/httpclienterrors.js";
|
|
4
|
+
import { SDKError } from "../sdk/models/errors/sdkerror.js";
|
|
5
|
+
import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
|
|
6
|
+
import * as operations from "../sdk/models/operations/index.js";
|
|
7
|
+
import * as shared from "../sdk/models/shared/index.js";
|
|
8
|
+
import { Result } from "../sdk/types/fp.js";
|
|
9
|
+
/**
|
|
10
|
+
* List all orders
|
|
11
|
+
*/
|
|
12
|
+
export declare function accountingListAccountingOrders(client: UnifiedToCore, request: operations.ListAccountingOrdersRequest, options?: RequestOptions): Promise<Result<Array<shared.AccountingOrder>, SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
13
|
+
//# sourceMappingURL=accountingListAccountingOrders.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accountingListAccountingOrders.d.ts","sourceRoot":"","sources":["../src/funcs/accountingListAccountingOrders.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAI3C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAChF,OAAO,KAAK,UAAU,MAAM,mCAAmC,CAAC;AAChE,OAAO,KAAK,MAAM,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5C;;GAEG;AACH,wBAAsB,8BAA8B,CAClD,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,UAAU,CAAC,2BAA2B,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,KAAK,CAAC,MAAM,CAAC,eAAe,CAAC,EAC3B,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAyFA"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.accountingListAccountingOrders = accountingListAccountingOrders;
|
|
30
|
+
const z = __importStar(require("zod"));
|
|
31
|
+
const encodings_js_1 = require("../lib/encodings.js");
|
|
32
|
+
const M = __importStar(require("../lib/matchers.js"));
|
|
33
|
+
const schemas_js_1 = require("../lib/schemas.js");
|
|
34
|
+
const security_js_1 = require("../lib/security.js");
|
|
35
|
+
const url_js_1 = require("../lib/url.js");
|
|
36
|
+
const operations = __importStar(require("../sdk/models/operations/index.js"));
|
|
37
|
+
const shared = __importStar(require("../sdk/models/shared/index.js"));
|
|
38
|
+
/**
|
|
39
|
+
* List all orders
|
|
40
|
+
*/
|
|
41
|
+
async function accountingListAccountingOrders(client, request, options) {
|
|
42
|
+
const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.ListAccountingOrdersRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43
|
+
if (!parsed.ok) {
|
|
44
|
+
return parsed;
|
|
45
|
+
}
|
|
46
|
+
const payload = parsed.value;
|
|
47
|
+
const body = null;
|
|
48
|
+
const pathParams = {
|
|
49
|
+
connection_id: (0, encodings_js_1.encodeSimple)("connection_id", payload.connection_id, {
|
|
50
|
+
explode: false,
|
|
51
|
+
charEncoding: "percent",
|
|
52
|
+
}),
|
|
53
|
+
};
|
|
54
|
+
const path = (0, url_js_1.pathToFunc)("/accounting/{connection_id}/order")(pathParams);
|
|
55
|
+
const query = (0, encodings_js_1.encodeFormQuery)({
|
|
56
|
+
"fields": payload.fields,
|
|
57
|
+
"limit": payload.limit,
|
|
58
|
+
"offset": payload.offset,
|
|
59
|
+
"order": payload.order,
|
|
60
|
+
"query": payload.query,
|
|
61
|
+
"sort": payload.sort,
|
|
62
|
+
"type": payload.type,
|
|
63
|
+
"updated_gte": payload.updated_gte,
|
|
64
|
+
});
|
|
65
|
+
const headers = new Headers({
|
|
66
|
+
Accept: "application/json",
|
|
67
|
+
});
|
|
68
|
+
const securityInput = await (0, security_js_1.extractSecurity)(client._options.security);
|
|
69
|
+
const context = {
|
|
70
|
+
operationID: "listAccountingOrders",
|
|
71
|
+
oAuth2Scopes: [],
|
|
72
|
+
securitySource: client._options.security,
|
|
73
|
+
};
|
|
74
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
75
|
+
const requestRes = client._createRequest(context, {
|
|
76
|
+
security: requestSecurity,
|
|
77
|
+
method: "GET",
|
|
78
|
+
path: path,
|
|
79
|
+
headers: headers,
|
|
80
|
+
query: query,
|
|
81
|
+
body: body,
|
|
82
|
+
timeoutMs: (options === null || options === void 0 ? void 0 : options.timeoutMs) || client._options.timeoutMs || -1,
|
|
83
|
+
}, options);
|
|
84
|
+
if (!requestRes.ok) {
|
|
85
|
+
return requestRes;
|
|
86
|
+
}
|
|
87
|
+
const req = requestRes.value;
|
|
88
|
+
const doResult = await client._do(req, {
|
|
89
|
+
context,
|
|
90
|
+
errorCodes: ["4XX", "5XX"],
|
|
91
|
+
retryConfig: (options === null || options === void 0 ? void 0 : options.retries)
|
|
92
|
+
|| client._options.retryConfig,
|
|
93
|
+
retryCodes: (options === null || options === void 0 ? void 0 : options.retryCodes) || ["429", "500", "502", "503", "504"],
|
|
94
|
+
});
|
|
95
|
+
if (!doResult.ok) {
|
|
96
|
+
return doResult;
|
|
97
|
+
}
|
|
98
|
+
const response = doResult.value;
|
|
99
|
+
const [result] = await M.match(M.json(200, z.array(shared.AccountingOrder$inboundSchema)), M.fail(["4XX", "5XX"]))(response);
|
|
100
|
+
if (!result.ok) {
|
|
101
|
+
return result;
|
|
102
|
+
}
|
|
103
|
+
return result;
|
|
104
|
+
}
|
|
105
|
+
//# sourceMappingURL=accountingListAccountingOrders.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accountingListAccountingOrders.js","sourceRoot":"","sources":["../src/funcs/accountingListAccountingOrders.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;AA0BH,wEAwGC;AAhID,uCAAyB;AAEzB,sDAAoE;AACpE,sDAAwC;AACxC,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAU3C,8EAAgE;AAChE,sEAAwD;AAGxD;;GAEG;AACI,KAAK,UAAU,8BAA8B,CAClD,MAAqB,EACrB,OAA+C,EAC/C,OAAwB;IAaxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CACR,UAAU,CAAC,0CAA0C,CAAC,KAAK,CAAC,KAAK,CAAC,EACpE,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC;IAC7B,MAAM,IAAI,GAAG,IAAI,CAAC;IAElB,MAAM,UAAU,GAAG;QACjB,aAAa,EAAE,IAAA,2BAAY,EAAC,eAAe,EAAE,OAAO,CAAC,aAAa,EAAE;YAClE,OAAO,EAAE,KAAK;YACd,YAAY,EAAE,SAAS;SACxB,CAAC;KACH,CAAC;IAEF,MAAM,IAAI,GAAG,IAAA,mBAAU,EAAC,mCAAmC,CAAC,CAAC,UAAU,CAAC,CAAC;IAEzE,MAAM,KAAK,GAAG,IAAA,8BAAe,EAAC;QAC5B,QAAQ,EAAE,OAAO,CAAC,MAAM;QACxB,OAAO,EAAE,OAAO,CAAC,KAAK;QACtB,QAAQ,EAAE,OAAO,CAAC,MAAM;QACxB,OAAO,EAA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O,CAAE,OAAO;eACxB,MAAM,CAAC,QAAQ,CAAC,WAAW;QAChC,UAAU,EAAE,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,KAAI,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC;KACvE,CAAC,CAAC;IACH,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;QACjB,OAAO,QAAQ,CAAC;IAClB,CAAC;IACD,MAAM,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC;IAEhC,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAU5B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,6BAA6B,CAAC,CAAC,EAC1D,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CACvB,CAAC,QAAQ,CAAC,CAAC;IACZ,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { UnifiedToCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../sdk/models/errors/httpclienterrors.js";
|
|
4
|
+
import { SDKError } from "../sdk/models/errors/sdkerror.js";
|
|
5
|
+
import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
|
|
6
|
+
import * as operations from "../sdk/models/operations/index.js";
|
|
7
|
+
import * as shared from "../sdk/models/shared/index.js";
|
|
8
|
+
import { Result } from "../sdk/types/fp.js";
|
|
9
|
+
/**
|
|
10
|
+
* Update an order
|
|
11
|
+
*/
|
|
12
|
+
export declare function accountingPatchAccountingOrder(client: UnifiedToCore, request: operations.PatchAccountingOrderRequest, options?: RequestOptions): Promise<Result<shared.AccountingOrder, SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
13
|
+
//# sourceMappingURL=accountingPatchAccountingOrder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accountingPatchAccountingOrder.d.ts","sourceRoot":"","sources":["../src/funcs/accountingPatchAccountingOrder.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAI3C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAChF,OAAO,KAAK,UAAU,MAAM,mCAAmC,CAAC;AAChE,OAAO,KAAK,MAAM,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5C;;GAEG;AACH,wBAAsB,8BAA8B,CAClD,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,UAAU,CAAC,2BAA2B,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,MAAM,CAAC,eAAe,EACpB,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAuFA"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.accountingPatchAccountingOrder = accountingPatchAccountingOrder;
|
|
30
|
+
const encodings_js_1 = require("../lib/encodings.js");
|
|
31
|
+
const M = __importStar(require("../lib/matchers.js"));
|
|
32
|
+
const schemas_js_1 = require("../lib/schemas.js");
|
|
33
|
+
const security_js_1 = require("../lib/security.js");
|
|
34
|
+
const url_js_1 = require("../lib/url.js");
|
|
35
|
+
const operations = __importStar(require("../sdk/models/operations/index.js"));
|
|
36
|
+
const shared = __importStar(require("../sdk/models/shared/index.js"));
|
|
37
|
+
/**
|
|
38
|
+
* Update an order
|
|
39
|
+
*/
|
|
40
|
+
async function accountingPatchAccountingOrder(client, request, options) {
|
|
41
|
+
const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.PatchAccountingOrderRequest$outboundSchema.parse(value), "Input validation failed");
|
|
42
|
+
if (!parsed.ok) {
|
|
43
|
+
return parsed;
|
|
44
|
+
}
|
|
45
|
+
const payload = parsed.value;
|
|
46
|
+
const body = (0, encodings_js_1.encodeJSON)("body", payload.AccountingOrder, { explode: true });
|
|
47
|
+
const pathParams = {
|
|
48
|
+
connection_id: (0, encodings_js_1.encodeSimple)("connection_id", payload.connection_id, {
|
|
49
|
+
explode: false,
|
|
50
|
+
charEncoding: "percent",
|
|
51
|
+
}),
|
|
52
|
+
id: (0, encodings_js_1.encodeSimple)("id", payload.id, {
|
|
53
|
+
explode: false,
|
|
54
|
+
charEncoding: "percent",
|
|
55
|
+
}),
|
|
56
|
+
};
|
|
57
|
+
const path = (0, url_js_1.pathToFunc)("/accounting/{connection_id}/order/{id}")(pathParams);
|
|
58
|
+
const query = (0, encodings_js_1.encodeFormQuery)({
|
|
59
|
+
"fields": payload.fields,
|
|
60
|
+
});
|
|
61
|
+
const headers = new Headers({
|
|
62
|
+
"Content-Type": "application/json",
|
|
63
|
+
Accept: "application/json",
|
|
64
|
+
});
|
|
65
|
+
const securityInput = await (0, security_js_1.extractSecurity)(client._options.security);
|
|
66
|
+
const context = {
|
|
67
|
+
operationID: "patchAccountingOrder",
|
|
68
|
+
oAuth2Scopes: [],
|
|
69
|
+
securitySource: client._options.security,
|
|
70
|
+
};
|
|
71
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
72
|
+
const requestRes = client._createRequest(context, {
|
|
73
|
+
security: requestSecurity,
|
|
74
|
+
method: "PATCH",
|
|
75
|
+
path: path,
|
|
76
|
+
headers: headers,
|
|
77
|
+
query: query,
|
|
78
|
+
body: body,
|
|
79
|
+
timeoutMs: (options === null || options === void 0 ? void 0 : options.timeoutMs) || client._options.timeoutMs || -1,
|
|
80
|
+
}, options);
|
|
81
|
+
if (!requestRes.ok) {
|
|
82
|
+
return requestRes;
|
|
83
|
+
}
|
|
84
|
+
const req = requestRes.value;
|
|
85
|
+
const doResult = await client._do(req, {
|
|
86
|
+
context,
|
|
87
|
+
errorCodes: ["4XX", "5XX"],
|
|
88
|
+
retryConfig: (options === null || options === void 0 ? void 0 : options.retries)
|
|
89
|
+
|| client._options.retryConfig,
|
|
90
|
+
retryCodes: (options === null || options === void 0 ? void 0 : options.retryCodes) || ["429", "500", "502", "503", "504"],
|
|
91
|
+
});
|
|
92
|
+
if (!doResult.ok) {
|
|
93
|
+
return doResult;
|
|
94
|
+
}
|
|
95
|
+
const response = doResult.value;
|
|
96
|
+
const [result] = await M.match(M.json(200, shared.AccountingOrder$inboundSchema), M.fail(["4XX", "5XX"]))(response);
|
|
97
|
+
if (!result.ok) {
|
|
98
|
+
return result;
|
|
99
|
+
}
|
|
100
|
+
return result;
|
|
101
|
+
}
|
|
102
|
+
//# sourceMappingURL=accountingPatchAccountingOrder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accountingPatchAccountingOrder.js","sourceRoot":"","sources":["../src/funcs/accountingPatchAccountingOrder.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;AAyBH,wEAsGC;AA5HD,sDAAgF;AAChF,sDAAwC;AACxC,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAU3C,8EAAgE;AAChE,sEAAwD;AAGxD;;GAEG;AACI,KAAK,UAAU,8BAA8B,CAClD,MAAqB,EACrB,OAA+C,EAC/C,OAAwB;IAaxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CACR,UAAU,CAAC,0CAA0C,CAAC,KAAK,CAAC,KAAK,CAAC,EACpE,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,CAA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RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../sdk/models/errors/httpclienterrors.js";
|
|
4
|
+
import { SDKError } from "../sdk/models/errors/sdkerror.js";
|
|
5
|
+
import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
|
|
6
|
+
import * as operations from "../sdk/models/operations/index.js";
|
|
7
|
+
import { Result } from "../sdk/types/fp.js";
|
|
8
|
+
/**
|
|
9
|
+
* Remove an order
|
|
10
|
+
*/
|
|
11
|
+
export declare function accountingRemoveAccountingOrder(client: UnifiedToCore, request: operations.RemoveAccountingOrderRequest, options?: RequestOptions): Promise<Result<void, SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
12
|
+
//# sourceMappingURL=accountingRemoveAccountingOrder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accountingRemoveAccountingOrder.d.ts","sourceRoot":"","sources":["../src/funcs/accountingRemoveAccountingOrder.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAI3C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAChF,OAAO,KAAK,UAAU,MAAM,mCAAmC,CAAC;AAChE,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5C;;GAEG;AACH,wBAAsB,+BAA+B,CACnD,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,UAAU,CAAC,4BAA4B,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,IAAI,EACF,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAiFA"}
|