@unified-api/typescript-sdk 2.73.10 → 2.73.12
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/bin/mcp-server.js +4421 -3450
- package/bin/mcp-server.js.map +32 -13
- package/docs/sdks/account/README.md +6 -0
- package/docs/sdks/accounting/README.md +558 -0
- package/docs/sdks/activity/README.md +6 -0
- package/docs/sdks/apicall/README.md +2 -0
- package/docs/sdks/application/README.md +6 -0
- package/docs/sdks/applicationstatus/README.md +1 -0
- package/docs/sdks/ats/README.md +49 -0
- package/docs/sdks/auth/README.md +2 -0
- package/docs/sdks/balancesheet/README.md +2 -0
- package/docs/sdks/bill/README.md +6 -0
- package/docs/sdks/branch/README.md +6 -0
- package/docs/sdks/busy/README.md +1 -0
- package/docs/sdks/calendar/README.md +21 -0
- package/docs/sdks/call/README.md +1 -0
- package/docs/sdks/candidate/README.md +6 -0
- package/docs/sdks/category/README.md +489 -0
- package/docs/sdks/channel/README.md +2 -0
- package/docs/sdks/class/README.md +6 -0
- package/docs/sdks/collection/README.md +6 -0
- package/docs/sdks/comment/README.md +18 -0
- package/docs/sdks/commerce/README.md +30 -0
- package/docs/sdks/commit/README.md +6 -0
- package/docs/sdks/company/README.md +19 -0
- package/docs/sdks/connection/README.md +6 -0
- package/docs/sdks/contact/README.md +18 -0
- package/docs/sdks/course/README.md +6 -0
- package/docs/sdks/creditmemo/README.md +6 -0
- package/docs/sdks/crm/README.md +36 -0
- package/docs/sdks/customer/README.md +6 -0
- package/docs/sdks/deal/README.md +6 -0
- package/docs/sdks/device/README.md +6 -0
- package/docs/sdks/document/README.md +6 -0
- package/docs/sdks/employee/README.md +6 -0
- package/docs/sdks/enrich/README.md +2 -0
- package/docs/sdks/event/README.md +12 -0
- package/docs/sdks/file/README.md +6 -0
- package/docs/sdks/genai/README.md +2 -0
- package/docs/sdks/group/README.md +12 -0
- package/docs/sdks/hris/README.md +40 -0
- package/docs/sdks/instructor/README.md +6 -0
- package/docs/sdks/integration/README.md +3 -0
- package/docs/sdks/interview/README.md +6 -0
- package/docs/sdks/inventory/README.md +6 -0
- package/docs/sdks/invoice/README.md +6 -0
- package/docs/sdks/issue/README.md +1 -0
- package/docs/sdks/item/README.md +6 -0
- package/docs/sdks/job/README.md +6 -0
- package/docs/sdks/journal/README.md +6 -0
- package/docs/sdks/kms/README.md +18 -0
- package/docs/sdks/lead/README.md +6 -0
- package/docs/sdks/link/README.md +12 -0
- package/docs/sdks/list/README.md +6 -0
- package/docs/sdks/lms/README.md +24 -0
- package/docs/sdks/location/README.md +12 -0
- package/docs/sdks/login/README.md +1 -0
- package/docs/sdks/martech/README.md +12 -0
- package/docs/sdks/member/README.md +6 -0
- package/docs/sdks/message/README.md +6 -0
- package/docs/sdks/messaging/README.md +8 -0
- package/docs/sdks/metadata/README.md +6 -0
- package/docs/sdks/model/README.md +1 -0
- package/docs/sdks/note/README.md +6 -0
- package/docs/sdks/order/README.md +6 -0
- package/docs/sdks/organization/README.md +8 -0
- package/docs/sdks/page/README.md +6 -0
- package/docs/sdks/passthrough/README.md +8 -0
- package/docs/sdks/payment/README.md +22 -0
- package/docs/sdks/payout/README.md +2 -0
- package/docs/sdks/payslip/README.md +2 -0
- package/docs/sdks/person/README.md +1 -0
- package/docs/sdks/pipeline/README.md +6 -0
- package/docs/sdks/profitloss/README.md +2 -0
- package/docs/sdks/project/README.md +6 -0
- package/docs/sdks/prompt/README.md +1 -0
- package/docs/sdks/pullrequest/README.md +6 -0
- package/docs/sdks/purchaseorder/README.md +6 -0
- package/docs/sdks/recording/README.md +8 -0
- package/docs/sdks/refund/README.md +2 -0
- package/docs/sdks/repo/README.md +30 -0
- package/docs/sdks/report/README.md +2 -0
- package/docs/sdks/repository/README.md +6 -0
- package/docs/sdks/review/README.md +6 -0
- package/docs/sdks/salesorder/README.md +6 -0
- package/docs/sdks/scim/README.md +12 -0
- package/docs/sdks/scorecard/README.md +6 -0
- package/docs/sdks/space/README.md +6 -0
- package/docs/sdks/storage/README.md +6 -0
- package/docs/sdks/student/README.md +6 -0
- package/docs/sdks/subscription/README.md +6 -0
- package/docs/sdks/task/README.md +18 -0
- package/docs/sdks/taxrate/README.md +6 -0
- package/docs/sdks/ticket/README.md +6 -0
- package/docs/sdks/ticketing/README.md +18 -0
- package/docs/sdks/timeoff/README.md +2 -0
- package/docs/sdks/timeshift/README.md +6 -0
- package/docs/sdks/transaction/README.md +6 -0
- package/docs/sdks/trialbalance/README.md +2 -0
- package/docs/sdks/uc/README.md +19 -0
- package/docs/sdks/unified/README.md +20 -0
- package/docs/sdks/user/README.md +6 -0
- package/docs/sdks/webhook/README.md +8 -0
- package/examples/README.md +5 -0
- package/examples/accountingCreateAccountingAccount.example.ts +2 -0
- package/examples/package-lock.json +6 -5
- package/funcs/accountingCreateAccountingCategory.d.ts +15 -0
- package/funcs/accountingCreateAccountingCategory.d.ts.map +1 -0
- package/funcs/accountingCreateAccountingCategory.js +114 -0
- package/funcs/accountingCreateAccountingCategory.js.map +1 -0
- package/funcs/accountingGetAccountingCategory.d.ts +15 -0
- package/funcs/accountingGetAccountingCategory.d.ts.map +1 -0
- package/funcs/accountingGetAccountingCategory.js +115 -0
- package/funcs/accountingGetAccountingCategory.js.map +1 -0
- package/funcs/accountingListAccountingCategories.d.ts +15 -0
- package/funcs/accountingListAccountingCategories.d.ts.map +1 -0
- package/funcs/accountingListAccountingCategories.js +119 -0
- package/funcs/accountingListAccountingCategories.js.map +1 -0
- package/funcs/accountingPatchAccountingCategory.d.ts +15 -0
- package/funcs/accountingPatchAccountingCategory.d.ts.map +1 -0
- package/funcs/accountingPatchAccountingCategory.js +118 -0
- package/funcs/accountingPatchAccountingCategory.js.map +1 -0
- package/funcs/accountingRemoveAccountingCategory.d.ts +14 -0
- package/funcs/accountingRemoveAccountingCategory.d.ts.map +1 -0
- package/funcs/accountingRemoveAccountingCategory.js +112 -0
- package/funcs/accountingRemoveAccountingCategory.js.map +1 -0
- package/funcs/accountingUpdateAccountingCategory.d.ts +15 -0
- package/funcs/accountingUpdateAccountingCategory.d.ts.map +1 -0
- package/funcs/accountingUpdateAccountingCategory.js +118 -0
- package/funcs/accountingUpdateAccountingCategory.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +13 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/accountingCreateAccountingCategory.d.ts +8 -0
- package/mcp-server/tools/accountingCreateAccountingCategory.d.ts.map +1 -0
- package/mcp-server/tools/accountingCreateAccountingCategory.js +52 -0
- package/mcp-server/tools/accountingCreateAccountingCategory.js.map +1 -0
- package/mcp-server/tools/accountingGetAccountingCategory.d.ts +8 -0
- package/mcp-server/tools/accountingGetAccountingCategory.d.ts.map +1 -0
- package/mcp-server/tools/accountingGetAccountingCategory.js +52 -0
- package/mcp-server/tools/accountingGetAccountingCategory.js.map +1 -0
- package/mcp-server/tools/accountingListAccountingCategories.d.ts +8 -0
- package/mcp-server/tools/accountingListAccountingCategories.d.ts.map +1 -0
- package/mcp-server/tools/accountingListAccountingCategories.js +52 -0
- package/mcp-server/tools/accountingListAccountingCategories.js.map +1 -0
- package/mcp-server/tools/accountingPatchAccountingCategory.d.ts +8 -0
- package/mcp-server/tools/accountingPatchAccountingCategory.d.ts.map +1 -0
- package/mcp-server/tools/accountingPatchAccountingCategory.js +52 -0
- package/mcp-server/tools/accountingPatchAccountingCategory.js.map +1 -0
- package/mcp-server/tools/accountingRemoveAccountingCategory.d.ts +8 -0
- package/mcp-server/tools/accountingRemoveAccountingCategory.d.ts.map +1 -0
- package/mcp-server/tools/accountingRemoveAccountingCategory.js +51 -0
- package/mcp-server/tools/accountingRemoveAccountingCategory.js.map +1 -0
- package/mcp-server/tools/accountingUpdateAccountingCategory.d.ts +8 -0
- package/mcp-server/tools/accountingUpdateAccountingCategory.d.ts.map +1 -0
- package/mcp-server/tools/accountingUpdateAccountingCategory.js +52 -0
- package/mcp-server/tools/accountingUpdateAccountingCategory.js.map +1 -0
- package/package.json +4 -6
- 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/category.d.ts +30 -0
- package/sdk/category.d.ts.map +1 -0
- package/sdk/category.js +54 -0
- package/sdk/category.js.map +1 -0
- package/sdk/models/operations/createaccountingcategory.d.ts +45 -0
- package/sdk/models/operations/createaccountingcategory.d.ts.map +1 -0
- package/sdk/models/operations/createaccountingcategory.js +77 -0
- package/sdk/models/operations/createaccountingcategory.js.map +1 -0
- package/sdk/models/operations/getaccountingcategory.d.ts +47 -0
- package/sdk/models/operations/getaccountingcategory.d.ts.map +1 -0
- package/sdk/models/operations/getaccountingcategory.js +74 -0
- package/sdk/models/operations/getaccountingcategory.js.map +1 -0
- 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/listaccountingcategories.d.ts +65 -0
- package/sdk/models/operations/listaccountingcategories.d.ts.map +1 -0
- package/sdk/models/operations/listaccountingcategories.js +90 -0
- package/sdk/models/operations/listaccountingcategories.js.map +1 -0
- package/sdk/models/operations/patchaccountingcategory.d.ts +50 -0
- package/sdk/models/operations/patchaccountingcategory.d.ts.map +1 -0
- package/sdk/models/operations/patchaccountingcategory.js +79 -0
- package/sdk/models/operations/patchaccountingcategory.js.map +1 -0
- package/sdk/models/operations/removeaccountingcategory.d.ts +66 -0
- package/sdk/models/operations/removeaccountingcategory.d.ts.map +1 -0
- package/sdk/models/operations/removeaccountingcategory.js +105 -0
- package/sdk/models/operations/removeaccountingcategory.js.map +1 -0
- package/sdk/models/operations/updateaccountingcategory.d.ts +50 -0
- package/sdk/models/operations/updateaccountingcategory.d.ts.map +1 -0
- package/sdk/models/operations/updateaccountingcategory.js +79 -0
- package/sdk/models/operations/updateaccountingcategory.js.map +1 -0
- package/sdk/models/shared/accountingcategory.d.ts +47 -0
- package/sdk/models/shared/accountingcategory.d.ts.map +1 -0
- package/sdk/models/shared/accountingcategory.js +90 -0
- package/sdk/models/shared/accountingcategory.js.map +1 -0
- package/sdk/models/shared/accountinglineitem.d.ts +2 -0
- package/sdk/models/shared/accountinglineitem.d.ts.map +1 -1
- package/sdk/models/shared/accountinglineitem.js +4 -0
- package/sdk/models/shared/accountinglineitem.js.map +1 -1
- package/sdk/models/shared/accountingprofitloss.d.ts +3 -3
- package/sdk/models/shared/index.d.ts +1 -0
- package/sdk/models/shared/index.d.ts.map +1 -1
- package/sdk/models/shared/index.js +1 -0
- package/sdk/models/shared/index.js.map +1 -1
- package/sdk/models/shared/propertyaccountingreportprofitandloss.d.ts +3 -3
- package/sdk/models/shared/propertyconnectionpermissions.d.ts +2 -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 +1 -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/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/accountingCreateAccountingCategory.ts +173 -0
- package/src/funcs/accountingGetAccountingCategory.ts +176 -0
- package/src/funcs/accountingListAccountingCategories.ts +178 -0
- package/src/funcs/accountingPatchAccountingCategory.ts +179 -0
- package/src/funcs/accountingRemoveAccountingCategory.ts +181 -0
- package/src/funcs/accountingUpdateAccountingCategory.ts +179 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +13 -1
- package/src/mcp-server/tools/accountingCreateAccountingCategory.ts +37 -0
- package/src/mcp-server/tools/accountingGetAccountingCategory.ts +36 -0
- package/src/mcp-server/tools/accountingListAccountingCategories.ts +37 -0
- package/src/mcp-server/tools/accountingPatchAccountingCategory.ts +37 -0
- package/src/mcp-server/tools/accountingRemoveAccountingCategory.ts +35 -0
- package/src/mcp-server/tools/accountingUpdateAccountingCategory.ts +37 -0
- package/src/sdk/accounting.ts +90 -0
- package/src/sdk/category.ts +100 -0
- package/src/sdk/models/operations/createaccountingcategory.ts +101 -0
- package/src/sdk/models/operations/getaccountingcategory.ts +101 -0
- package/src/sdk/models/operations/index.ts +6 -0
- package/src/sdk/models/operations/listaccountingcategories.ts +135 -0
- package/src/sdk/models/operations/patchaccountingcategory.ts +108 -0
- package/src/sdk/models/operations/removeaccountingcategory.ts +155 -0
- package/src/sdk/models/operations/updateaccountingcategory.ts +108 -0
- package/src/sdk/models/shared/accountingcategory.ts +111 -0
- package/src/sdk/models/shared/accountinglineitem.ts +6 -0
- package/src/sdk/models/shared/accountingprofitloss.ts +3 -3
- package/src/sdk/models/shared/index.ts +1 -0
- package/src/sdk/models/shared/propertyaccountingreportprofitandloss.ts +3 -3
- package/src/sdk/models/shared/propertyconnectionpermissions.ts +2 -0
- package/src/sdk/models/shared/webhook.ts +1 -0
- package/src/sdk/sdk.ts +6 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import * as shared from "../shared/index.js";
|
|
5
|
+
export type PatchAccountingCategoryRequest = {
|
|
6
|
+
accountingCategory: shared.AccountingCategory;
|
|
7
|
+
/**
|
|
8
|
+
* ID of the connection
|
|
9
|
+
*/
|
|
10
|
+
connectionId: string;
|
|
11
|
+
/**
|
|
12
|
+
* Comma-delimited fields to return
|
|
13
|
+
*/
|
|
14
|
+
fields?: Array<string> | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* ID of the Category
|
|
17
|
+
*/
|
|
18
|
+
id: string;
|
|
19
|
+
/**
|
|
20
|
+
* Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
|
|
21
|
+
*/
|
|
22
|
+
raw?: string | undefined;
|
|
23
|
+
};
|
|
24
|
+
/** @internal */
|
|
25
|
+
export declare const PatchAccountingCategoryRequest$inboundSchema: z.ZodType<PatchAccountingCategoryRequest, z.ZodTypeDef, unknown>;
|
|
26
|
+
/** @internal */
|
|
27
|
+
export type PatchAccountingCategoryRequest$Outbound = {
|
|
28
|
+
AccountingCategory: shared.AccountingCategory$Outbound;
|
|
29
|
+
connection_id: string;
|
|
30
|
+
fields?: Array<string> | undefined;
|
|
31
|
+
id: string;
|
|
32
|
+
raw?: string | undefined;
|
|
33
|
+
};
|
|
34
|
+
/** @internal */
|
|
35
|
+
export declare const PatchAccountingCategoryRequest$outboundSchema: z.ZodType<PatchAccountingCategoryRequest$Outbound, z.ZodTypeDef, PatchAccountingCategoryRequest>;
|
|
36
|
+
/**
|
|
37
|
+
* @internal
|
|
38
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
39
|
+
*/
|
|
40
|
+
export declare namespace PatchAccountingCategoryRequest$ {
|
|
41
|
+
/** @deprecated use `PatchAccountingCategoryRequest$inboundSchema` instead. */
|
|
42
|
+
const inboundSchema: z.ZodType<PatchAccountingCategoryRequest, z.ZodTypeDef, unknown>;
|
|
43
|
+
/** @deprecated use `PatchAccountingCategoryRequest$outboundSchema` instead. */
|
|
44
|
+
const outboundSchema: z.ZodType<PatchAccountingCategoryRequest$Outbound, z.ZodTypeDef, PatchAccountingCategoryRequest>;
|
|
45
|
+
/** @deprecated use `PatchAccountingCategoryRequest$Outbound` instead. */
|
|
46
|
+
type Outbound = PatchAccountingCategoryRequest$Outbound;
|
|
47
|
+
}
|
|
48
|
+
export declare function patchAccountingCategoryRequestToJSON(patchAccountingCategoryRequest: PatchAccountingCategoryRequest): string;
|
|
49
|
+
export declare function patchAccountingCategoryRequestFromJSON(jsonString: string): SafeParseResult<PatchAccountingCategoryRequest, SDKValidationError>;
|
|
50
|
+
//# sourceMappingURL=patchaccountingcategory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patchaccountingcategory.d.ts","sourceRoot":"","sources":["../../../src/sdk/models/operations/patchaccountingcategory.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAE7C,MAAM,MAAM,8BAA8B,GAAG;IAC3C,kBAAkB,EAAE,MAAM,CAAC,kBAAkB,CAAC;IAC9C;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACnC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,4CAA4C,EAAE,CAAC,CAAC,OAAO,CAClE,8BAA8B,EAC9B,CAAC,CAAC,UAAU,EACZ,OAAO,CAYP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,uCAAuC,GAAG;IACpD,kBAAkB,EAAE,MAAM,CAAC,2BAA2B,CAAC;IACvD,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6CAA6C,EAAE,CAAC,CAAC,OAAO,CACnE,uCAAuC,EACvC,CAAC,CAAC,UAAU,EACZ,8BAA8B,CAY9B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,+BAA+B,CAAC;IAC/C,8EAA8E;IACvE,MAAM,aAAa,kEAA+C,CAAC;IAC1E,+EAA+E;IACxE,MAAM,cAAc,kGAAgD,CAAC;IAC5E,yEAAyE;IACzE,KAAY,QAAQ,GAAG,uCAAuC,CAAC;CAChE;AAED,wBAAgB,oCAAoC,CAClD,8BAA8B,EAAE,8BAA8B,GAC7D,MAAM,CAMR;AAED,wBAAgB,sCAAsC,CACpD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,8BAA8B,EAAE,kBAAkB,CAAC,CAMrE"}
|
|
@@ -0,0 +1,79 @@
|
|
|
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.PatchAccountingCategoryRequest$ = exports.PatchAccountingCategoryRequest$outboundSchema = exports.PatchAccountingCategoryRequest$inboundSchema = void 0;
|
|
30
|
+
exports.patchAccountingCategoryRequestToJSON = patchAccountingCategoryRequestToJSON;
|
|
31
|
+
exports.patchAccountingCategoryRequestFromJSON = patchAccountingCategoryRequestFromJSON;
|
|
32
|
+
const z = __importStar(require("zod"));
|
|
33
|
+
const primitives_js_1 = require("../../../lib/primitives.js");
|
|
34
|
+
const schemas_js_1 = require("../../../lib/schemas.js");
|
|
35
|
+
const shared = __importStar(require("../shared/index.js"));
|
|
36
|
+
/** @internal */
|
|
37
|
+
exports.PatchAccountingCategoryRequest$inboundSchema = z.object({
|
|
38
|
+
AccountingCategory: shared.AccountingCategory$inboundSchema,
|
|
39
|
+
connection_id: z.string(),
|
|
40
|
+
fields: z.array(z.string()).optional(),
|
|
41
|
+
id: z.string(),
|
|
42
|
+
raw: z.string().optional(),
|
|
43
|
+
}).transform((v) => {
|
|
44
|
+
return (0, primitives_js_1.remap)(v, {
|
|
45
|
+
"AccountingCategory": "accountingCategory",
|
|
46
|
+
"connection_id": "connectionId",
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
/** @internal */
|
|
50
|
+
exports.PatchAccountingCategoryRequest$outboundSchema = z.object({
|
|
51
|
+
accountingCategory: shared.AccountingCategory$outboundSchema,
|
|
52
|
+
connectionId: z.string(),
|
|
53
|
+
fields: z.array(z.string()).optional(),
|
|
54
|
+
id: z.string(),
|
|
55
|
+
raw: z.string().optional(),
|
|
56
|
+
}).transform((v) => {
|
|
57
|
+
return (0, primitives_js_1.remap)(v, {
|
|
58
|
+
accountingCategory: "AccountingCategory",
|
|
59
|
+
connectionId: "connection_id",
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
/**
|
|
63
|
+
* @internal
|
|
64
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
65
|
+
*/
|
|
66
|
+
var PatchAccountingCategoryRequest$;
|
|
67
|
+
(function (PatchAccountingCategoryRequest$) {
|
|
68
|
+
/** @deprecated use `PatchAccountingCategoryRequest$inboundSchema` instead. */
|
|
69
|
+
PatchAccountingCategoryRequest$.inboundSchema = exports.PatchAccountingCategoryRequest$inboundSchema;
|
|
70
|
+
/** @deprecated use `PatchAccountingCategoryRequest$outboundSchema` instead. */
|
|
71
|
+
PatchAccountingCategoryRequest$.outboundSchema = exports.PatchAccountingCategoryRequest$outboundSchema;
|
|
72
|
+
})(PatchAccountingCategoryRequest$ || (exports.PatchAccountingCategoryRequest$ = PatchAccountingCategoryRequest$ = {}));
|
|
73
|
+
function patchAccountingCategoryRequestToJSON(patchAccountingCategoryRequest) {
|
|
74
|
+
return JSON.stringify(exports.PatchAccountingCategoryRequest$outboundSchema.parse(patchAccountingCategoryRequest));
|
|
75
|
+
}
|
|
76
|
+
function patchAccountingCategoryRequestFromJSON(jsonString) {
|
|
77
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PatchAccountingCategoryRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchAccountingCategoryRequest' from JSON`);
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=patchaccountingcategory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patchaccountingcategory.js","sourceRoot":"","sources":["../../../src/sdk/models/operations/patchaccountingcategory.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAuFH,oFAQC;AAED,wFAQ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oDAA4C,CAAC;IAC1E,+EAA+E;IAClE,8CAAc,GAAG,qDAA6C,CAAC;AAG9E,CAAC,EAPgB,+BAA+B,+CAA/B,+BAA+B,QAO/C;AAED,SAAgB,oCAAoC,CAClD,8BAA8D;IAE9D,OAAO,IAAI,CAAC,SAAS,CACnB,qDAA6C,CAAC,KAAK,CACjD,8BAA8B,CAC/B,CACF,CAAC;AACJ,CAAC;AAED,SAAgB,sCAAsC,CACpD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,oDAA4C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACxE,4DAA4D,CAC7D,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
export type RemoveAccountingCategoryRequest = {
|
|
5
|
+
/**
|
|
6
|
+
* ID of the connection
|
|
7
|
+
*/
|
|
8
|
+
connectionId: string;
|
|
9
|
+
/**
|
|
10
|
+
* ID of the Category
|
|
11
|
+
*/
|
|
12
|
+
id: string;
|
|
13
|
+
};
|
|
14
|
+
export type RemoveAccountingCategoryResponse = {
|
|
15
|
+
headers: {
|
|
16
|
+
[k: string]: Array<string>;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
/** @internal */
|
|
20
|
+
export declare const RemoveAccountingCategoryRequest$inboundSchema: z.ZodType<RemoveAccountingCategoryRequest, z.ZodTypeDef, unknown>;
|
|
21
|
+
/** @internal */
|
|
22
|
+
export type RemoveAccountingCategoryRequest$Outbound = {
|
|
23
|
+
connection_id: string;
|
|
24
|
+
id: string;
|
|
25
|
+
};
|
|
26
|
+
/** @internal */
|
|
27
|
+
export declare const RemoveAccountingCategoryRequest$outboundSchema: z.ZodType<RemoveAccountingCategoryRequest$Outbound, z.ZodTypeDef, RemoveAccountingCategoryRequest>;
|
|
28
|
+
/**
|
|
29
|
+
* @internal
|
|
30
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
31
|
+
*/
|
|
32
|
+
export declare namespace RemoveAccountingCategoryRequest$ {
|
|
33
|
+
/** @deprecated use `RemoveAccountingCategoryRequest$inboundSchema` instead. */
|
|
34
|
+
const inboundSchema: z.ZodType<RemoveAccountingCategoryRequest, z.ZodTypeDef, unknown>;
|
|
35
|
+
/** @deprecated use `RemoveAccountingCategoryRequest$outboundSchema` instead. */
|
|
36
|
+
const outboundSchema: z.ZodType<RemoveAccountingCategoryRequest$Outbound, z.ZodTypeDef, RemoveAccountingCategoryRequest>;
|
|
37
|
+
/** @deprecated use `RemoveAccountingCategoryRequest$Outbound` instead. */
|
|
38
|
+
type Outbound = RemoveAccountingCategoryRequest$Outbound;
|
|
39
|
+
}
|
|
40
|
+
export declare function removeAccountingCategoryRequestToJSON(removeAccountingCategoryRequest: RemoveAccountingCategoryRequest): string;
|
|
41
|
+
export declare function removeAccountingCategoryRequestFromJSON(jsonString: string): SafeParseResult<RemoveAccountingCategoryRequest, SDKValidationError>;
|
|
42
|
+
/** @internal */
|
|
43
|
+
export declare const RemoveAccountingCategoryResponse$inboundSchema: z.ZodType<RemoveAccountingCategoryResponse, z.ZodTypeDef, unknown>;
|
|
44
|
+
/** @internal */
|
|
45
|
+
export type RemoveAccountingCategoryResponse$Outbound = {
|
|
46
|
+
Headers: {
|
|
47
|
+
[k: string]: Array<string>;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
/** @internal */
|
|
51
|
+
export declare const RemoveAccountingCategoryResponse$outboundSchema: z.ZodType<RemoveAccountingCategoryResponse$Outbound, z.ZodTypeDef, RemoveAccountingCategoryResponse>;
|
|
52
|
+
/**
|
|
53
|
+
* @internal
|
|
54
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
55
|
+
*/
|
|
56
|
+
export declare namespace RemoveAccountingCategoryResponse$ {
|
|
57
|
+
/** @deprecated use `RemoveAccountingCategoryResponse$inboundSchema` instead. */
|
|
58
|
+
const inboundSchema: z.ZodType<RemoveAccountingCategoryResponse, z.ZodTypeDef, unknown>;
|
|
59
|
+
/** @deprecated use `RemoveAccountingCategoryResponse$outboundSchema` instead. */
|
|
60
|
+
const outboundSchema: z.ZodType<RemoveAccountingCategoryResponse$Outbound, z.ZodTypeDef, RemoveAccountingCategoryResponse>;
|
|
61
|
+
/** @deprecated use `RemoveAccountingCategoryResponse$Outbound` instead. */
|
|
62
|
+
type Outbound = RemoveAccountingCategoryResponse$Outbound;
|
|
63
|
+
}
|
|
64
|
+
export declare function removeAccountingCategoryResponseToJSON(removeAccountingCategoryResponse: RemoveAccountingCategoryResponse): string;
|
|
65
|
+
export declare function removeAccountingCategoryResponseFromJSON(jsonString: string): SafeParseResult<RemoveAccountingCategoryResponse, SDKValidationError>;
|
|
66
|
+
//# sourceMappingURL=removeaccountingcategory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"removeaccountingcategory.d.ts","sourceRoot":"","sources":["../../../src/sdk/models/operations/removeaccountingcategory.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,+BAA+B,GAAG;IAC5C;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAAG;IAC7C,OAAO,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAA;KAAE,CAAC;CACzC,CAAC;AAEF,gBAAgB;AAChB,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AC5E,iFAAiF;IAC1E,MAAM,cAAc,sGAAkD,CAAC;IAC9E,2EAA2E;IAC3E,KAAY,QAAQ,GAAG,yCAAyC,CAAC;CAClE;AAED,wBAAgB,sCAAsC,CACpD,gCAAgC,EAAE,gCAAgC,GACjE,MAAM,CAMR;AAED,wBAAgB,wCAAwC,CACtD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,gCAAgC,EAAE,kBAAkB,CAAC,CAMvE"}
|
|
@@ -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.RemoveAccountingCategoryResponse$ = exports.RemoveAccountingCategoryResponse$outboundSchema = exports.RemoveAccountingCategoryResponse$inboundSchema = exports.RemoveAccountingCategoryRequest$ = exports.RemoveAccountingCategoryRequest$outboundSchema = exports.RemoveAccountingCategoryRequest$inboundSchema = void 0;
|
|
30
|
+
exports.removeAccountingCategoryRequestToJSON = removeAccountingCategoryRequestToJSON;
|
|
31
|
+
exports.removeAccountingCategoryRequestFromJSON = removeAccountingCategoryRequestFromJSON;
|
|
32
|
+
exports.removeAccountingCategoryResponseToJSON = removeAccountingCategoryResponseToJSON;
|
|
33
|
+
exports.removeAccountingCategoryResponseFromJSON = removeAccountingCategoryResponseFromJSON;
|
|
34
|
+
const z = __importStar(require("zod"));
|
|
35
|
+
const primitives_js_1 = require("../../../lib/primitives.js");
|
|
36
|
+
const schemas_js_1 = require("../../../lib/schemas.js");
|
|
37
|
+
/** @internal */
|
|
38
|
+
exports.RemoveAccountingCategoryRequest$inboundSchema = z.object({
|
|
39
|
+
connection_id: z.string(),
|
|
40
|
+
id: z.string(),
|
|
41
|
+
}).transform((v) => {
|
|
42
|
+
return (0, primitives_js_1.remap)(v, {
|
|
43
|
+
"connection_id": "connectionId",
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
/** @internal */
|
|
47
|
+
exports.RemoveAccountingCategoryRequest$outboundSchema = z.object({
|
|
48
|
+
connectionId: z.string(),
|
|
49
|
+
id: z.string(),
|
|
50
|
+
}).transform((v) => {
|
|
51
|
+
return (0, primitives_js_1.remap)(v, {
|
|
52
|
+
connectionId: "connection_id",
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
/**
|
|
56
|
+
* @internal
|
|
57
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
58
|
+
*/
|
|
59
|
+
var RemoveAccountingCategoryRequest$;
|
|
60
|
+
(function (RemoveAccountingCategoryRequest$) {
|
|
61
|
+
/** @deprecated use `RemoveAccountingCategoryRequest$inboundSchema` instead. */
|
|
62
|
+
RemoveAccountingCategoryRequest$.inboundSchema = exports.RemoveAccountingCategoryRequest$inboundSchema;
|
|
63
|
+
/** @deprecated use `RemoveAccountingCategoryRequest$outboundSchema` instead. */
|
|
64
|
+
RemoveAccountingCategoryRequest$.outboundSchema = exports.RemoveAccountingCategoryRequest$outboundSchema;
|
|
65
|
+
})(RemoveAccountingCategoryRequest$ || (exports.RemoveAccountingCategoryRequest$ = RemoveAccountingCategoryRequest$ = {}));
|
|
66
|
+
function removeAccountingCategoryRequestToJSON(removeAccountingCategoryRequest) {
|
|
67
|
+
return JSON.stringify(exports.RemoveAccountingCategoryRequest$outboundSchema.parse(removeAccountingCategoryRequest));
|
|
68
|
+
}
|
|
69
|
+
function removeAccountingCategoryRequestFromJSON(jsonString) {
|
|
70
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RemoveAccountingCategoryRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RemoveAccountingCategoryRequest' from JSON`);
|
|
71
|
+
}
|
|
72
|
+
/** @internal */
|
|
73
|
+
exports.RemoveAccountingCategoryResponse$inboundSchema = z.object({
|
|
74
|
+
Headers: z.record(z.array(z.string())),
|
|
75
|
+
}).transform((v) => {
|
|
76
|
+
return (0, primitives_js_1.remap)(v, {
|
|
77
|
+
"Headers": "headers",
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
/** @internal */
|
|
81
|
+
exports.RemoveAccountingCategoryResponse$outboundSchema = z.object({
|
|
82
|
+
headers: z.record(z.array(z.string())),
|
|
83
|
+
}).transform((v) => {
|
|
84
|
+
return (0, primitives_js_1.remap)(v, {
|
|
85
|
+
headers: "Headers",
|
|
86
|
+
});
|
|
87
|
+
});
|
|
88
|
+
/**
|
|
89
|
+
* @internal
|
|
90
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
91
|
+
*/
|
|
92
|
+
var RemoveAccountingCategoryResponse$;
|
|
93
|
+
(function (RemoveAccountingCategoryResponse$) {
|
|
94
|
+
/** @deprecated use `RemoveAccountingCategoryResponse$inboundSchema` instead. */
|
|
95
|
+
RemoveAccountingCategoryResponse$.inboundSchema = exports.RemoveAccountingCategoryResponse$inboundSchema;
|
|
96
|
+
/** @deprecated use `RemoveAccountingCategoryResponse$outboundSchema` instead. */
|
|
97
|
+
RemoveAccountingCategoryResponse$.outboundSchema = exports.RemoveAccountingCategoryResponse$outboundSchema;
|
|
98
|
+
})(RemoveAccountingCategoryResponse$ || (exports.RemoveAccountingCategoryResponse$ = RemoveAccountingCategoryResponse$ = {}));
|
|
99
|
+
function removeAccountingCategoryResponseToJSON(removeAccountingCategoryResponse) {
|
|
100
|
+
return JSON.stringify(exports.RemoveAccountingCategoryResponse$outboundSchema.parse(removeAccountingCategoryResponse));
|
|
101
|
+
}
|
|
102
|
+
function removeAccountingCategoryResponseFromJSON(jsonString) {
|
|
103
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RemoveAccountingCategoryResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RemoveAccountingCategoryResponse' from JSON`);
|
|
104
|
+
}
|
|
105
|
+
//# sourceMappingURL=removeaccountingcategory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"removeaccountingcategory.js","sourceRoot":"","sources":["../../../src/sdk/models/operations/removeaccountingcategory.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAsEH,sFAQC;AAED,0FAQC;AA8CD,wFAQC;AAED,4FAQC;AAtJD,uCAAyB;AACzB,8DAA6D;AAC7D,wDAAoD;AAmBpD,gBAAgB;AACH,QAAA,6CAA6C,GAItD,CAAC,CAAC,MAAM,CAAC;IACX,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;CACf,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EA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M,EAAC,CAAC,EAAE;QACf,SAAS,EAAE,SAAS;KACrB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,+CAA+C,GAIxD,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;CACvC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,OAAO,EAAE,SAAS;KACnB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,iCAAiC,CAOjD;AAPD,WAAiB,iCAAiC;IAChD,gFAAgF;IACnE,+CAAa,GAAG,sDAA8C,CAAC;IAC5E,iFAAiF;IACpE,gDAAc,GAAG,uDAA+C,CAAC;AAGhF,CAAC,EAPgB,iCAAiC,iDAAjC,iCAAiC,QAOjD;AAED,SAAgB,sCAAsC,CACpD,gCAAkE;IAElE,OAAO,IAAI,CAAC,SAAS,CACnB,uDAA+C,CAAC,KAAK,CACnD,gCAAgC,CACjC,CACF,CAAC;AACJ,CAAC;AAED,SAAgB,wCAAwC,CACtD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,sDAA8C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1E,8DAA8D,CAC/D,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import * as shared from "../shared/index.js";
|
|
5
|
+
export type UpdateAccountingCategoryRequest = {
|
|
6
|
+
accountingCategory: shared.AccountingCategory;
|
|
7
|
+
/**
|
|
8
|
+
* ID of the connection
|
|
9
|
+
*/
|
|
10
|
+
connectionId: string;
|
|
11
|
+
/**
|
|
12
|
+
* Comma-delimited fields to return
|
|
13
|
+
*/
|
|
14
|
+
fields?: Array<string> | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* ID of the Category
|
|
17
|
+
*/
|
|
18
|
+
id: string;
|
|
19
|
+
/**
|
|
20
|
+
* Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
|
|
21
|
+
*/
|
|
22
|
+
raw?: string | undefined;
|
|
23
|
+
};
|
|
24
|
+
/** @internal */
|
|
25
|
+
export declare const UpdateAccountingCategoryRequest$inboundSchema: z.ZodType<UpdateAccountingCategoryRequest, z.ZodTypeDef, unknown>;
|
|
26
|
+
/** @internal */
|
|
27
|
+
export type UpdateAccountingCategoryRequest$Outbound = {
|
|
28
|
+
AccountingCategory: shared.AccountingCategory$Outbound;
|
|
29
|
+
connection_id: string;
|
|
30
|
+
fields?: Array<string> | undefined;
|
|
31
|
+
id: string;
|
|
32
|
+
raw?: string | undefined;
|
|
33
|
+
};
|
|
34
|
+
/** @internal */
|
|
35
|
+
export declare const UpdateAccountingCategoryRequest$outboundSchema: z.ZodType<UpdateAccountingCategoryRequest$Outbound, z.ZodTypeDef, UpdateAccountingCategoryRequest>;
|
|
36
|
+
/**
|
|
37
|
+
* @internal
|
|
38
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
39
|
+
*/
|
|
40
|
+
export declare namespace UpdateAccountingCategoryRequest$ {
|
|
41
|
+
/** @deprecated use `UpdateAccountingCategoryRequest$inboundSchema` instead. */
|
|
42
|
+
const inboundSchema: z.ZodType<UpdateAccountingCategoryRequest, z.ZodTypeDef, unknown>;
|
|
43
|
+
/** @deprecated use `UpdateAccountingCategoryRequest$outboundSchema` instead. */
|
|
44
|
+
const outboundSchema: z.ZodType<UpdateAccountingCategoryRequest$Outbound, z.ZodTypeDef, UpdateAccountingCategoryRequest>;
|
|
45
|
+
/** @deprecated use `UpdateAccountingCategoryRequest$Outbound` instead. */
|
|
46
|
+
type Outbound = UpdateAccountingCategoryRequest$Outbound;
|
|
47
|
+
}
|
|
48
|
+
export declare function updateAccountingCategoryRequestToJSON(updateAccountingCategoryRequest: UpdateAccountingCategoryRequest): string;
|
|
49
|
+
export declare function updateAccountingCategoryRequestFromJSON(jsonString: string): SafeParseResult<UpdateAccountingCategoryRequest, SDKValidationError>;
|
|
50
|
+
//# sourceMappingURL=updateaccountingcategory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateaccountingcategory.d.ts","sourceRoot":"","sources":["../../../src/sdk/models/operations/updateaccountingcategory.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAE7C,MAAM,MAAM,+BAA+B,GAAG;IAC5C,kBAAkB,EAAE,MAAM,CAAC,kBAAkB,CAAC;IAC9C;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACnC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6CAA6C,EAAE,CAAC,CAAC,OAAO,CACnE,+BAA+B,EAC/B,CAAC,CAAC,UAAU,EACZ,OAAO,CAYP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,wCAAwC,GAAG;IACrD,kBAAkB,EAAE,MAAM,CAAC,2BAA2B,CAAC;IACvD,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8CAA8C,EAAE,CAAC,CAAC,OAAO,CACpE,wCAAwC,EACxC,CAAC,CAAC,UAAU,EACZ,+BAA+B,CAY/B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,gCAAgC,CAAC;IAChD,+EAA+E;IACxE,MAAM,aAAa,mEAAgD,CAAC;IAC3E,gFAAgF;IACzE,MAAM,cAAc,oGAAiD,CAAC;IAC7E,0EAA0E;IAC1E,KAAY,QAAQ,GAAG,wCAAwC,CAAC;CACjE;AAED,wBAAgB,qCAAqC,CACnD,+BAA+B,EAAE,+BAA+B,GAC/D,MAAM,CAMR;AAED,wBAAgB,uCAAuC,CACrD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,+BAA+B,EAAE,kBAAkB,CAAC,CAMtE"}
|
|
@@ -0,0 +1,79 @@
|
|
|
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.UpdateAccountingCategoryRequest$ = exports.UpdateAccountingCategoryRequest$outboundSchema = exports.UpdateAccountingCategoryRequest$inboundSchema = void 0;
|
|
30
|
+
exports.updateAccountingCategoryRequestToJSON = updateAccountingCategoryRequestToJSON;
|
|
31
|
+
exports.updateAccountingCategoryRequestFromJSON = updateAccountingCategoryRequestFromJSON;
|
|
32
|
+
const z = __importStar(require("zod"));
|
|
33
|
+
const primitives_js_1 = require("../../../lib/primitives.js");
|
|
34
|
+
const schemas_js_1 = require("../../../lib/schemas.js");
|
|
35
|
+
const shared = __importStar(require("../shared/index.js"));
|
|
36
|
+
/** @internal */
|
|
37
|
+
exports.UpdateAccountingCategoryRequest$inboundSchema = z.object({
|
|
38
|
+
AccountingCategory: shared.AccountingCategory$inboundSchema,
|
|
39
|
+
connection_id: z.string(),
|
|
40
|
+
fields: z.array(z.string()).optional(),
|
|
41
|
+
id: z.string(),
|
|
42
|
+
raw: z.string().optional(),
|
|
43
|
+
}).transform((v) => {
|
|
44
|
+
return (0, primitives_js_1.remap)(v, {
|
|
45
|
+
"AccountingCategory": "accountingCategory",
|
|
46
|
+
"connection_id": "connectionId",
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
/** @internal */
|
|
50
|
+
exports.UpdateAccountingCategoryRequest$outboundSchema = z.object({
|
|
51
|
+
accountingCategory: shared.AccountingCategory$outboundSchema,
|
|
52
|
+
connectionId: z.string(),
|
|
53
|
+
fields: z.array(z.string()).optional(),
|
|
54
|
+
id: z.string(),
|
|
55
|
+
raw: z.string().optional(),
|
|
56
|
+
}).transform((v) => {
|
|
57
|
+
return (0, primitives_js_1.remap)(v, {
|
|
58
|
+
accountingCategory: "AccountingCategory",
|
|
59
|
+
connectionId: "connection_id",
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
/**
|
|
63
|
+
* @internal
|
|
64
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
65
|
+
*/
|
|
66
|
+
var UpdateAccountingCategoryRequest$;
|
|
67
|
+
(function (UpdateAccountingCategoryRequest$) {
|
|
68
|
+
/** @deprecated use `UpdateAccountingCategoryRequest$inboundSchema` instead. */
|
|
69
|
+
UpdateAccountingCategoryRequest$.inboundSchema = exports.UpdateAccountingCategoryRequest$inboundSchema;
|
|
70
|
+
/** @deprecated use `UpdateAccountingCategoryRequest$outboundSchema` instead. */
|
|
71
|
+
UpdateAccountingCategoryRequest$.outboundSchema = exports.UpdateAccountingCategoryRequest$outboundSchema;
|
|
72
|
+
})(UpdateAccountingCategoryRequest$ || (exports.UpdateAccountingCategoryRequest$ = UpdateAccountingCategoryRequest$ = {}));
|
|
73
|
+
function updateAccountingCategoryRequestToJSON(updateAccountingCategoryRequest) {
|
|
74
|
+
return JSON.stringify(exports.UpdateAccountingCategoryRequest$outboundSchema.parse(updateAccountingCategoryRequest));
|
|
75
|
+
}
|
|
76
|
+
function updateAccountingCategoryRequestFromJSON(jsonString) {
|
|
77
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateAccountingCategoryRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateAccountingCategoryRequest' from JSON`);
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=updateaccountingcategory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateaccountingcategory.js","sourceRoot":"","sources":["../../../src/sdk/models/operations/updateaccountingcategory.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAuFH,sFAQC;AAED,0FAQC;AAvGD,uCAAyB;AACzB,8DAA6D;AAC7D,wDAAoD;AAGpD,2DAA6C;AAsB7C,gBAAgB;AACH,QAAA,6CAA6C,GAItD,CAAC,CAAC,MAAM,CAAC;IACX,kBAAkB,EAAE,MAAM,CAAC,gCAAgC;IAC3D,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACtC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC3B,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,oBAAoB,EAAE,oBAAoB;QAC1C,eAAe,EAAE,cAAc;KAChC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAWH,gBAAgB;AACH,QAAA,8CAA8C,GAIvD,CAAC,CAAC,MAAM,CAAC;IACX,kBAAkB,EAAE,MAAM,CAAC,iCAAiC;IAC5D,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACtC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC3B,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,kBAAkB,EAAE,oBAAoB;QACxC,YAAY,EAAE,eAAe;KAC9B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,gCAAgC,CAOhD;AAPD,WAAiB,gCAAgC;IAC/C,+EAA+E;IAClE,8CAAa,GAAG,qDAA6C,CAAC;IAC3E,gFAAgF;IACnE,+CAAc,GAAG,sDAA8C,CAAC;AAG/E,CAAC,EAPgB,gCAAgC,gDAAhC,gCAAgC,QAOhD;AAED,SAAgB,qCAAqC,CACnD,+BAAgE;IAEhE,OAAO,IAAI,CAAC,SAAS,CACnB,sDAA8C,CAAC,KAAK,CAClD,+BAA+B,CAChC,CACF,CAAC;AACJ,CAAC;AAED,SAAgB,uCAAuC,CACrD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,qDAA6C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzE,6DAA6D,CAC9D,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
export type AccountingCategory = {
|
|
5
|
+
createdAt?: Date | undefined;
|
|
6
|
+
description?: string | undefined;
|
|
7
|
+
id?: string | undefined;
|
|
8
|
+
isActive?: boolean | undefined;
|
|
9
|
+
name?: string | undefined;
|
|
10
|
+
parentId?: string | undefined;
|
|
11
|
+
raw?: {
|
|
12
|
+
[k: string]: any;
|
|
13
|
+
} | undefined;
|
|
14
|
+
updatedAt?: Date | undefined;
|
|
15
|
+
};
|
|
16
|
+
/** @internal */
|
|
17
|
+
export declare const AccountingCategory$inboundSchema: z.ZodType<AccountingCategory, z.ZodTypeDef, unknown>;
|
|
18
|
+
/** @internal */
|
|
19
|
+
export type AccountingCategory$Outbound = {
|
|
20
|
+
created_at?: string | undefined;
|
|
21
|
+
description?: string | undefined;
|
|
22
|
+
id?: string | undefined;
|
|
23
|
+
is_active?: boolean | undefined;
|
|
24
|
+
name?: string | undefined;
|
|
25
|
+
parent_id?: string | undefined;
|
|
26
|
+
raw?: {
|
|
27
|
+
[k: string]: any;
|
|
28
|
+
} | undefined;
|
|
29
|
+
updated_at?: string | undefined;
|
|
30
|
+
};
|
|
31
|
+
/** @internal */
|
|
32
|
+
export declare const AccountingCategory$outboundSchema: z.ZodType<AccountingCategory$Outbound, z.ZodTypeDef, AccountingCategory>;
|
|
33
|
+
/**
|
|
34
|
+
* @internal
|
|
35
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
36
|
+
*/
|
|
37
|
+
export declare namespace AccountingCategory$ {
|
|
38
|
+
/** @deprecated use `AccountingCategory$inboundSchema` instead. */
|
|
39
|
+
const inboundSchema: z.ZodType<AccountingCategory, z.ZodTypeDef, unknown>;
|
|
40
|
+
/** @deprecated use `AccountingCategory$outboundSchema` instead. */
|
|
41
|
+
const outboundSchema: z.ZodType<AccountingCategory$Outbound, z.ZodTypeDef, AccountingCategory>;
|
|
42
|
+
/** @deprecated use `AccountingCategory$Outbound` instead. */
|
|
43
|
+
type Outbound = AccountingCategory$Outbound;
|
|
44
|
+
}
|
|
45
|
+
export declare function accountingCategoryToJSON(accountingCategory: AccountingCategory): string;
|
|
46
|
+
export declare function accountingCategoryFromJSON(jsonString: string): SafeParseResult<AccountingCategory, SDKValidationError>;
|
|
47
|
+
//# sourceMappingURL=accountingcategory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accountingcategory.d.ts","sourceRoot":"","sources":["../../../src/sdk/models/shared/accountingcategory.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OA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B,EAC3B,CAAC,CAAC,UAAU,EACZ,kBAAkB,CAiBlB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,mBAAmB,CAAC;IACnC,kEAAkE;IAC3D,MAAM,aAAa,sDAAmC,CAAC;IAC9D,mEAAmE;IAC5D,MAAM,cAAc,0EAAoC,CAAC;IAChE,6DAA6D;IAC7D,KAAY,QAAQ,GAAG,2BAA2B,CAAC;CACpD;AAED,wBAAgB,wBAAwB,CACtC,kBAAkB,EAAE,kBAAkB,GACrC,MAAM,CAIR;AAED,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAMzD"}
|
|
@@ -0,0 +1,90 @@
|
|
|
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.AccountingCategory$ = exports.AccountingCategory$outboundSchema = exports.AccountingCategory$inboundSchema = void 0;
|
|
30
|
+
exports.accountingCategoryToJSON = accountingCategoryToJSON;
|
|
31
|
+
exports.accountingCategoryFromJSON = accountingCategoryFromJSON;
|
|
32
|
+
const z = __importStar(require("zod"));
|
|
33
|
+
const primitives_js_1 = require("../../../lib/primitives.js");
|
|
34
|
+
const schemas_js_1 = require("../../../lib/schemas.js");
|
|
35
|
+
/** @internal */
|
|
36
|
+
exports.AccountingCategory$inboundSchema = z.object({
|
|
37
|
+
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
38
|
+
.optional(),
|
|
39
|
+
description: z.string().optional(),
|
|
40
|
+
id: z.string().optional(),
|
|
41
|
+
is_active: z.boolean().optional(),
|
|
42
|
+
name: z.string().optional(),
|
|
43
|
+
parent_id: z.string().optional(),
|
|
44
|
+
raw: z.record(z.any()).optional(),
|
|
45
|
+
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
46
|
+
.optional(),
|
|
47
|
+
}).transform((v) => {
|
|
48
|
+
return (0, primitives_js_1.remap)(v, {
|
|
49
|
+
"created_at": "createdAt",
|
|
50
|
+
"is_active": "isActive",
|
|
51
|
+
"parent_id": "parentId",
|
|
52
|
+
"updated_at": "updatedAt",
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
/** @internal */
|
|
56
|
+
exports.AccountingCategory$outboundSchema = z.object({
|
|
57
|
+
createdAt: z.date().transform(v => v.toISOString()).optional(),
|
|
58
|
+
description: z.string().optional(),
|
|
59
|
+
id: z.string().optional(),
|
|
60
|
+
isActive: z.boolean().optional(),
|
|
61
|
+
name: z.string().optional(),
|
|
62
|
+
parentId: z.string().optional(),
|
|
63
|
+
raw: z.record(z.any()).optional(),
|
|
64
|
+
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
65
|
+
}).transform((v) => {
|
|
66
|
+
return (0, primitives_js_1.remap)(v, {
|
|
67
|
+
createdAt: "created_at",
|
|
68
|
+
isActive: "is_active",
|
|
69
|
+
parentId: "parent_id",
|
|
70
|
+
updatedAt: "updated_at",
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
/**
|
|
74
|
+
* @internal
|
|
75
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
76
|
+
*/
|
|
77
|
+
var AccountingCategory$;
|
|
78
|
+
(function (AccountingCategory$) {
|
|
79
|
+
/** @deprecated use `AccountingCategory$inboundSchema` instead. */
|
|
80
|
+
AccountingCategory$.inboundSchema = exports.AccountingCategory$inboundSchema;
|
|
81
|
+
/** @deprecated use `AccountingCategory$outboundSchema` instead. */
|
|
82
|
+
AccountingCategory$.outboundSchema = exports.AccountingCategory$outboundSchema;
|
|
83
|
+
})(AccountingCategory$ || (exports.AccountingCategory$ = AccountingCategory$ = {}));
|
|
84
|
+
function accountingCategoryToJSON(accountingCategory) {
|
|
85
|
+
return JSON.stringify(exports.AccountingCategory$outboundSchema.parse(accountingCategory));
|
|
86
|
+
}
|
|
87
|
+
function accountingCategoryFromJSON(jsonString) {
|
|
88
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AccountingCategory$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AccountingCategory' from JSON`);
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=accountingcategory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accountingcategory.js","sourceRoot":"","sources":["../../../src/sdk/models/shared/accountingcategory.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AA4FH,4DAMC;AAED,gEAQC;AA1GD,uCAAyB;AACz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,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,wCAAgC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC5D,gDAAgD,CACjD,CAAC;AACJ,CAAC"}
|
|
@@ -3,6 +3,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
4
|
export type AccountingLineitem = {
|
|
5
5
|
accountId?: string | undefined;
|
|
6
|
+
categoryIds?: Array<string> | undefined;
|
|
6
7
|
createdAt?: Date | undefined;
|
|
7
8
|
discountAmount?: number | undefined;
|
|
8
9
|
id?: string | undefined;
|
|
@@ -25,6 +26,7 @@ export declare const AccountingLineitem$inboundSchema: z.ZodType<AccountingLinei
|
|
|
25
26
|
/** @internal */
|
|
26
27
|
export type AccountingLineitem$Outbound = {
|
|
27
28
|
account_id?: string | undefined;
|
|
29
|
+
category_ids?: Array<string> | undefined;
|
|
28
30
|
created_at?: string | undefined;
|
|
29
31
|
discount_amount?: number | undefined;
|
|
30
32
|
id?: string | undefined;
|