@unified-api/typescript-sdk 2.54.0 → 2.56.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/funcs/accountingListAccountingReports.js +2 -0
- package/funcs/accountingListAccountingReports.js.map +1 -1
- package/funcs/reportListAccountingReports.js +2 -0
- package/funcs/reportListAccountingReports.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/package.json +1 -1
- package/sdk/models/operations/listaccountingreports.d.ts +4 -0
- package/sdk/models/operations/listaccountingreports.d.ts.map +1 -1
- package/sdk/models/operations/listaccountingreports.js +8 -0
- package/sdk/models/operations/listaccountingreports.js.map +1 -1
- package/sdk/models/shared/accountingbalancesheetitem.d.ts +36 -0
- package/sdk/models/shared/accountingbalancesheetitem.d.ts.map +1 -0
- package/sdk/models/shared/accountingbalancesheetitem.js +79 -0
- package/sdk/models/shared/accountingbalancesheetitem.js.map +1 -0
- package/sdk/models/shared/accountingprofitandlosscategory.d.ts +34 -0
- package/sdk/models/shared/accountingprofitandlosscategory.d.ts.map +1 -0
- package/sdk/models/shared/accountingprofitandlosscategory.js +75 -0
- package/sdk/models/shared/accountingprofitandlosscategory.js.map +1 -0
- package/sdk/models/shared/accountingprofitandlosssubcategory.d.ts +33 -0
- package/sdk/models/shared/accountingprofitandlosssubcategory.d.ts.map +1 -0
- package/sdk/models/shared/accountingprofitandlosssubcategory.js +72 -0
- package/sdk/models/shared/accountingprofitandlosssubcategory.js.map +1 -0
- package/sdk/models/shared/accountingreport.d.ts +17 -10
- package/sdk/models/shared/accountingreport.d.ts.map +1 -1
- package/sdk/models/shared/accountingreport.js +31 -14
- package/sdk/models/shared/accountingreport.js.map +1 -1
- package/sdk/models/shared/accountingtrialbalancesubitem.d.ts +33 -0
- package/sdk/models/shared/accountingtrialbalancesubitem.d.ts.map +1 -0
- package/sdk/models/shared/accountingtrialbalancesubitem.js +74 -0
- package/sdk/models/shared/accountingtrialbalancesubitem.js.map +1 -0
- package/sdk/models/shared/index.d.ts +8 -0
- package/sdk/models/shared/index.d.ts.map +1 -1
- package/sdk/models/shared/index.js +8 -0
- package/sdk/models/shared/index.js.map +1 -1
- package/sdk/models/shared/propertyaccountingbalancesheetitemsubitems.d.ts +25 -0
- package/sdk/models/shared/propertyaccountingbalancesheetitemsubitems.d.ts.map +1 -0
- package/sdk/models/shared/propertyaccountingbalancesheetitemsubitems.js +55 -0
- package/sdk/models/shared/propertyaccountingbalancesheetitemsubitems.js.map +1 -0
- package/sdk/models/shared/propertyaccountingreportbalancesheet.d.ts +36 -0
- package/sdk/models/shared/propertyaccountingreportbalancesheet.d.ts.map +1 -0
- package/sdk/models/shared/propertyaccountingreportbalancesheet.js +75 -0
- package/sdk/models/shared/propertyaccountingreportbalancesheet.js.map +1 -0
- package/sdk/models/shared/propertyaccountingreportprofitandloss.d.ts +38 -0
- package/sdk/models/shared/propertyaccountingreportprofitandloss.d.ts.map +1 -0
- package/sdk/models/shared/propertyaccountingreportprofitandloss.js +83 -0
- package/sdk/models/shared/propertyaccountingreportprofitandloss.js.map +1 -0
- package/sdk/models/shared/propertyaccountingreporttrialbalance.d.ts +34 -0
- package/sdk/models/shared/propertyaccountingreporttrialbalance.d.ts.map +1 -0
- package/sdk/models/shared/propertyaccountingreporttrialbalance.js +77 -0
- package/sdk/models/shared/propertyaccountingreporttrialbalance.js.map +1 -0
- package/src/funcs/accountingListAccountingReports.ts +2 -0
- package/src/funcs/reportListAccountingReports.ts +2 -0
- package/src/lib/config.ts +2 -2
- package/src/sdk/models/operations/listaccountingreports.ts +12 -0
- package/src/sdk/models/shared/accountingbalancesheetitem.ts +99 -0
- package/src/sdk/models/shared/accountingprofitandlosscategory.ts +93 -0
- package/src/sdk/models/shared/accountingprofitandlosssubcategory.ts +87 -0
- package/src/sdk/models/shared/accountingreport.ts +60 -24
- package/src/sdk/models/shared/accountingtrialbalancesubitem.ts +87 -0
- package/src/sdk/models/shared/index.ts +8 -0
- package/src/sdk/models/shared/propertyaccountingbalancesheetitemsubitems.ts +68 -0
- package/src/sdk/models/shared/propertyaccountingreportbalancesheet.ts +98 -0
- package/src/sdk/models/shared/propertyaccountingreportprofitandloss.ts +110 -0
- package/src/sdk/models/shared/propertyaccountingreporttrialbalance.ts +98 -0
|
@@ -0,0 +1,75 @@
|
|
|
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.PropertyAccountingReportBalanceSheet$ = exports.PropertyAccountingReportBalanceSheet$outboundSchema = exports.PropertyAccountingReportBalanceSheet$inboundSchema = void 0;
|
|
30
|
+
exports.propertyAccountingReportBalanceSheetToJSON = propertyAccountingReportBalanceSheetToJSON;
|
|
31
|
+
exports.propertyAccountingReportBalanceSheetFromJSON = propertyAccountingReportBalanceSheetFromJSON;
|
|
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 accountingbalancesheetitem_js_1 = require("./accountingbalancesheetitem.js");
|
|
36
|
+
/** @internal */
|
|
37
|
+
exports.PropertyAccountingReportBalanceSheet$inboundSchema = z.object({
|
|
38
|
+
assets: z.array(accountingbalancesheetitem_js_1.AccountingBalanceSheetItem$inboundSchema).optional(),
|
|
39
|
+
equity: z.array(accountingbalancesheetitem_js_1.AccountingBalanceSheetItem$inboundSchema).optional(),
|
|
40
|
+
liabilities: z.array(accountingbalancesheetitem_js_1.AccountingBalanceSheetItem$inboundSchema).optional(),
|
|
41
|
+
net_assets_amount: z.number().optional(),
|
|
42
|
+
}).transform((v) => {
|
|
43
|
+
return (0, primitives_js_1.remap)(v, {
|
|
44
|
+
"net_assets_amount": "netAssetsAmount",
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
/** @internal */
|
|
48
|
+
exports.PropertyAccountingReportBalanceSheet$outboundSchema = z.object({
|
|
49
|
+
assets: z.array(accountingbalancesheetitem_js_1.AccountingBalanceSheetItem$outboundSchema).optional(),
|
|
50
|
+
equity: z.array(accountingbalancesheetitem_js_1.AccountingBalanceSheetItem$outboundSchema).optional(),
|
|
51
|
+
liabilities: z.array(accountingbalancesheetitem_js_1.AccountingBalanceSheetItem$outboundSchema).optional(),
|
|
52
|
+
netAssetsAmount: z.number().optional(),
|
|
53
|
+
}).transform((v) => {
|
|
54
|
+
return (0, primitives_js_1.remap)(v, {
|
|
55
|
+
netAssetsAmount: "net_assets_amount",
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
/**
|
|
59
|
+
* @internal
|
|
60
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
61
|
+
*/
|
|
62
|
+
var PropertyAccountingReportBalanceSheet$;
|
|
63
|
+
(function (PropertyAccountingReportBalanceSheet$) {
|
|
64
|
+
/** @deprecated use `PropertyAccountingReportBalanceSheet$inboundSchema` instead. */
|
|
65
|
+
PropertyAccountingReportBalanceSheet$.inboundSchema = exports.PropertyAccountingReportBalanceSheet$inboundSchema;
|
|
66
|
+
/** @deprecated use `PropertyAccountingReportBalanceSheet$outboundSchema` instead. */
|
|
67
|
+
PropertyAccountingReportBalanceSheet$.outboundSchema = exports.PropertyAccountingReportBalanceSheet$outboundSchema;
|
|
68
|
+
})(PropertyAccountingReportBalanceSheet$ || (exports.PropertyAccountingReportBalanceSheet$ = PropertyAccountingReportBalanceSheet$ = {}));
|
|
69
|
+
function propertyAccountingReportBalanceSheetToJSON(propertyAccountingReportBalanceSheet) {
|
|
70
|
+
return JSON.stringify(exports.PropertyAccountingReportBalanceSheet$outboundSchema.parse(propertyAccountingReportBalanceSheet));
|
|
71
|
+
}
|
|
72
|
+
function propertyAccountingReportBalanceSheetFromJSON(jsonString) {
|
|
73
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PropertyAccountingReportBalanceSheet$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PropertyAccountingReportBalanceSheet' from JSON`);
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=propertyaccountingreportbalancesheet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"propertyaccountingreportbalancesheet.js","sourceRoot":"","sources":["../../../src/sdk/models/shared/propertyaccountingreportbalancesheet.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AA4EH,gGAQC;AAED,oGASC;AA7FD,uCAAyB;AACzB,8DAA6D;AAC7D,wDAAoD;AAGpD,mF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AArC,qCAAqC,QASrD;AAED,SAAgB,0CAA0C,CACxD,oCAA0E;IAE1E,OAAO,IAAI,CAAC,SAAS,CACnB,2DAAmD,CAAC,KAAK,CACvD,oCAAoC,CACrC,CACF,CAAC;AACJ,CAAC;AAED,SAAgB,4CAA4C,CAC1D,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,0DAAkD,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzE,kEAAkE,CACnE,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { AccountingProfitAndLossCategory, AccountingProfitAndLossCategory$Outbound } from "./accountingprofitandlosscategory.js";
|
|
5
|
+
export type PropertyAccountingReportProfitAndLoss = {
|
|
6
|
+
costOfGoodsSold?: Array<AccountingProfitAndLossCategory> | undefined;
|
|
7
|
+
expenses?: Array<AccountingProfitAndLossCategory> | undefined;
|
|
8
|
+
grossProfitAmount?: number | undefined;
|
|
9
|
+
income?: Array<AccountingProfitAndLossCategory> | undefined;
|
|
10
|
+
netProfitAmount?: number | undefined;
|
|
11
|
+
};
|
|
12
|
+
/** @internal */
|
|
13
|
+
export declare const PropertyAccountingReportProfitAndLoss$inboundSchema: z.ZodType<PropertyAccountingReportProfitAndLoss, z.ZodTypeDef, unknown>;
|
|
14
|
+
/** @internal */
|
|
15
|
+
export type PropertyAccountingReportProfitAndLoss$Outbound = {
|
|
16
|
+
cost_of_goods_sold?: Array<AccountingProfitAndLossCategory$Outbound> | undefined;
|
|
17
|
+
expenses?: Array<AccountingProfitAndLossCategory$Outbound> | undefined;
|
|
18
|
+
gross_profit_amount?: number | undefined;
|
|
19
|
+
income?: Array<AccountingProfitAndLossCategory$Outbound> | undefined;
|
|
20
|
+
net_profit_amount?: number | undefined;
|
|
21
|
+
};
|
|
22
|
+
/** @internal */
|
|
23
|
+
export declare const PropertyAccountingReportProfitAndLoss$outboundSchema: z.ZodType<PropertyAccountingReportProfitAndLoss$Outbound, z.ZodTypeDef, PropertyAccountingReportProfitAndLoss>;
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
27
|
+
*/
|
|
28
|
+
export declare namespace PropertyAccountingReportProfitAndLoss$ {
|
|
29
|
+
/** @deprecated use `PropertyAccountingReportProfitAndLoss$inboundSchema` instead. */
|
|
30
|
+
const inboundSchema: z.ZodType<PropertyAccountingReportProfitAndLoss, z.ZodTypeDef, unknown>;
|
|
31
|
+
/** @deprecated use `PropertyAccountingReportProfitAndLoss$outboundSchema` instead. */
|
|
32
|
+
const outboundSchema: z.ZodType<PropertyAccountingReportProfitAndLoss$Outbound, z.ZodTypeDef, PropertyAccountingReportProfitAndLoss>;
|
|
33
|
+
/** @deprecated use `PropertyAccountingReportProfitAndLoss$Outbound` instead. */
|
|
34
|
+
type Outbound = PropertyAccountingReportProfitAndLoss$Outbound;
|
|
35
|
+
}
|
|
36
|
+
export declare function propertyAccountingReportProfitAndLossToJSON(propertyAccountingReportProfitAndLoss: PropertyAccountingReportProfitAndLoss): string;
|
|
37
|
+
export declare function propertyAccountingReportProfitAndLossFromJSON(jsonString: string): SafeParseResult<PropertyAccountingReportProfitAndLoss, SDKValidationError>;
|
|
38
|
+
//# sourceMappingURL=propertyaccountingreportprofitandloss.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"propertyaccountingreportprofitandloss.d.ts","sourceRoot":"","sources":["../../../src/sdk/models/shared/propertyaccountingreportprofitandloss.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM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E,MAAM,cAAc,gHAC2B,CAAC;IACvD,gFAAgF;IAChF,KAAY,QAAQ,GAAG,8CAA8C,CAAC;CACvE;AAED,wBAAgB,2CAA2C,CACzD,qCAAqC,EAAE,qCAAqC,GAC3E,MAAM,CAMR;AAED,wBAAgB,6CAA6C,CAC3D,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,qCAAqC,EAAE,kBAAkB,CAAC,CAO5E"}
|
|
@@ -0,0 +1,83 @@
|
|
|
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.PropertyAccountingReportProfitAndLoss$ = exports.PropertyAccountingReportProfitAndLoss$outboundSchema = exports.PropertyAccountingReportProfitAndLoss$inboundSchema = void 0;
|
|
30
|
+
exports.propertyAccountingReportProfitAndLossToJSON = propertyAccountingReportProfitAndLossToJSON;
|
|
31
|
+
exports.propertyAccountingReportProfitAndLossFromJSON = propertyAccountingReportProfitAndLossFromJSON;
|
|
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 accountingprofitandlosscategory_js_1 = require("./accountingprofitandlosscategory.js");
|
|
36
|
+
/** @internal */
|
|
37
|
+
exports.PropertyAccountingReportProfitAndLoss$inboundSchema = z.object({
|
|
38
|
+
cost_of_goods_sold: z.array(accountingprofitandlosscategory_js_1.AccountingProfitAndLossCategory$inboundSchema)
|
|
39
|
+
.optional(),
|
|
40
|
+
expenses: z.array(accountingprofitandlosscategory_js_1.AccountingProfitAndLossCategory$inboundSchema).optional(),
|
|
41
|
+
gross_profit_amount: z.number().optional(),
|
|
42
|
+
income: z.array(accountingprofitandlosscategory_js_1.AccountingProfitAndLossCategory$inboundSchema).optional(),
|
|
43
|
+
net_profit_amount: z.number().optional(),
|
|
44
|
+
}).transform((v) => {
|
|
45
|
+
return (0, primitives_js_1.remap)(v, {
|
|
46
|
+
"cost_of_goods_sold": "costOfGoodsSold",
|
|
47
|
+
"gross_profit_amount": "grossProfitAmount",
|
|
48
|
+
"net_profit_amount": "netProfitAmount",
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
/** @internal */
|
|
52
|
+
exports.PropertyAccountingReportProfitAndLoss$outboundSchema = z.object({
|
|
53
|
+
costOfGoodsSold: z.array(accountingprofitandlosscategory_js_1.AccountingProfitAndLossCategory$outboundSchema)
|
|
54
|
+
.optional(),
|
|
55
|
+
expenses: z.array(accountingprofitandlosscategory_js_1.AccountingProfitAndLossCategory$outboundSchema).optional(),
|
|
56
|
+
grossProfitAmount: z.number().optional(),
|
|
57
|
+
income: z.array(accountingprofitandlosscategory_js_1.AccountingProfitAndLossCategory$outboundSchema).optional(),
|
|
58
|
+
netProfitAmount: z.number().optional(),
|
|
59
|
+
}).transform((v) => {
|
|
60
|
+
return (0, primitives_js_1.remap)(v, {
|
|
61
|
+
costOfGoodsSold: "cost_of_goods_sold",
|
|
62
|
+
grossProfitAmount: "gross_profit_amount",
|
|
63
|
+
netProfitAmount: "net_profit_amount",
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
/**
|
|
67
|
+
* @internal
|
|
68
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
69
|
+
*/
|
|
70
|
+
var PropertyAccountingReportProfitAndLoss$;
|
|
71
|
+
(function (PropertyAccountingReportProfitAndLoss$) {
|
|
72
|
+
/** @deprecated use `PropertyAccountingReportProfitAndLoss$inboundSchema` instead. */
|
|
73
|
+
PropertyAccountingReportProfitAndLoss$.inboundSchema = exports.PropertyAccountingReportProfitAndLoss$inboundSchema;
|
|
74
|
+
/** @deprecated use `PropertyAccountingReportProfitAndLoss$outboundSchema` instead. */
|
|
75
|
+
PropertyAccountingReportProfitAndLoss$.outboundSchema = exports.PropertyAccountingReportProfitAndLoss$outboundSchema;
|
|
76
|
+
})(PropertyAccountingReportProfitAndLoss$ || (exports.PropertyAccountingReportProfitAndLoss$ = PropertyAccountingReportProfitAndLoss$ = {}));
|
|
77
|
+
function propertyAccountingReportProfitAndLossToJSON(propertyAccountingReportProfitAndLoss) {
|
|
78
|
+
return JSON.stringify(exports.PropertyAccountingReportProfitAndLoss$outboundSchema.parse(propertyAccountingReportProfitAndLoss));
|
|
79
|
+
}
|
|
80
|
+
function propertyAccountingReportProfitAndLossFromJSON(jsonString) {
|
|
81
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PropertyAccountingReportProfitAndLoss$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PropertyAccountingReportProfitAndLoss' from JSON`);
|
|
82
|
+
}
|
|
83
|
+
//# sourceMappingURL=propertyaccountingreportprofitandloss.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"propertyaccountingreportprofitandloss.js","sourceRoot":"","sources":["../../../src/sdk/models/shared/propertyaccountingreportprofitandloss.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAwFH,kGAQC;AAED,sGASC;AAzGD,uCAAyB;AACzB,8DAA6D;AAC7D,wDAAoD;AAGpD,6FAK8C;AAU9C,gBAAgB;AACH,QAAA,mDAAmD,GAI5D,CAAC,CAAC,MAAM,CAAC;IACX,kBAAkB,EAAE,CAAC,CAAC,KAAK,CAAC,kFAA6C,CAAC;SACvE,QAAQ,EAAE;IACb,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,kFAA6C,CAAC,CAAC,QAAQ,EAAE;IAC3E,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1C,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,kFAA6C,CAAC,CAAC,QAAQ,EAAE;IACzE,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACzC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,oBAAoB,EAAE,iBAAiB;QACvC,qBAAqB,EAAE,mBAAmB;QAC1C,mBAAmB,EAAE,iBAAiB;KACvC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAaH,gBAAgB;AACH,QAAA,oDAAoD,GAI7D,CAAC,CAAC,MAAM,CAAC;IACX,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,mFAA8C,CAAC;SACrE,QAAQ,EAAE;IACb,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,mFAA8C,CAAC,CAAC,QAAQ,EAAE;IAC5E,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACxC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,mFAA8C,CAAC,CAAC,QAAQ,EAAE;IAC1E,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,eAAe,EAAE,oBAAoB;QACrC,iBAAiB,EAAE,qBAAqB;QACxC,eAAe,EAAE,mBAAmB;KACrC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,sCAAsC,CAStD;AATD,WAAiB,sCAAsC;IACrD,qFAAqF;IACxE,oDAAa,GACxB,2DAAmD,CAAC;IACtD,sFAAsF;IACzE,qDAAc,GACzB,4DAAoD,CAAC;AAGzD,CAAC,EATgB,sCAAsC,sDAAtC,sCAAsC,QAStD;AAED,SAAgB,2CAA2C,CACzD,qCAA4E;IAE5E,OAAO,IAAI,CAAC,SAAS,CACnB,4DAAoD,CAAC,KAAK,CACxD,qCAAqC,CACtC,CACF,CAAC;AACJ,CAAC;AAED,SAAgB,6CAA6C,CAC3D,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,2DAAmD,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1E,mEAAmE,CACpE,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { AccountingTrialBalanceSubItem, AccountingTrialBalanceSubItem$Outbound } from "./accountingtrialbalancesubitem.js";
|
|
5
|
+
export type PropertyAccountingReportTrialBalance = {
|
|
6
|
+
subItems?: Array<AccountingTrialBalanceSubItem> | undefined;
|
|
7
|
+
totalCreditAmount?: number | undefined;
|
|
8
|
+
totalDebitAmount?: number | undefined;
|
|
9
|
+
};
|
|
10
|
+
/** @internal */
|
|
11
|
+
export declare const PropertyAccountingReportTrialBalance$inboundSchema: z.ZodType<PropertyAccountingReportTrialBalance, z.ZodTypeDef, unknown>;
|
|
12
|
+
/** @internal */
|
|
13
|
+
export type PropertyAccountingReportTrialBalance$Outbound = {
|
|
14
|
+
sub_items?: Array<AccountingTrialBalanceSubItem$Outbound> | undefined;
|
|
15
|
+
total_credit_amount?: number | undefined;
|
|
16
|
+
total_debit_amount?: number | undefined;
|
|
17
|
+
};
|
|
18
|
+
/** @internal */
|
|
19
|
+
export declare const PropertyAccountingReportTrialBalance$outboundSchema: z.ZodType<PropertyAccountingReportTrialBalance$Outbound, z.ZodTypeDef, PropertyAccountingReportTrialBalance>;
|
|
20
|
+
/**
|
|
21
|
+
* @internal
|
|
22
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
23
|
+
*/
|
|
24
|
+
export declare namespace PropertyAccountingReportTrialBalance$ {
|
|
25
|
+
/** @deprecated use `PropertyAccountingReportTrialBalance$inboundSchema` instead. */
|
|
26
|
+
const inboundSchema: z.ZodType<PropertyAccountingReportTrialBalance, z.ZodTypeDef, unknown>;
|
|
27
|
+
/** @deprecated use `PropertyAccountingReportTrialBalance$outboundSchema` instead. */
|
|
28
|
+
const outboundSchema: z.ZodType<PropertyAccountingReportTrialBalance$Outbound, z.ZodTypeDef, PropertyAccountingReportTrialBalance>;
|
|
29
|
+
/** @deprecated use `PropertyAccountingReportTrialBalance$Outbound` instead. */
|
|
30
|
+
type Outbound = PropertyAccountingReportTrialBalance$Outbound;
|
|
31
|
+
}
|
|
32
|
+
export declare function propertyAccountingReportTrialBalanceToJSON(propertyAccountingReportTrialBalance: PropertyAccountingReportTrialBalance): string;
|
|
33
|
+
export declare function propertyAccountingReportTrialBalanceFromJSON(jsonString: string): SafeParseResult<PropertyAccountingReportTrialBalance, SDKValidationError>;
|
|
34
|
+
//# sourceMappingURL=propertyaccountingreporttrialbalance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"propertyaccountingreporttrialbalance.d.ts","sourceRoot":"","sources":["../../../src/sdk/models/shared/propertyaccountingreporttrialbalance.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,EACL,6BAA6B,EAE7B,sCAAsC,EAEvC,MAAM,oCAAoC,CAAC;AAE5C,MAAM,MAAM,oCAAoC,GAAG;IACjD,QAAQ,CAAC,EAAE,KAAK,CAAC,6BAA6B,CAAC,GAAG,SAAS,CAAC;IAC5D,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACvC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kDAAkD,EAAE,CAAC,CAAC,OAAO,CACxE,oCAAoC,EACpC,CAAC,CAAC,UAAU,EACZ,OAAO,CAWP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,6CAA6C,GAAG;IAC1D,SAAS,CAAC,EAAE,KAAK,CAAC,sCAAsC,CAAC,GAAG,SAAS,CAAC;IACtE,mBAAmB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACzC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mDAAmD,EAAE,CAAC,CAAC,OAAO,CACzE,6CAA6C,EAC7C,CAAC,CAAC,UAAU,EACZ,oCAAoC,CAWpC,CAAC;AAEH;;;GAGG;AACH,yBAAiB,qCAAqC,CAAC;IACrD,oFAAoF;IAC7E,MAAM,aAAa,wEAC0B,CAAC;IACrD,qFAAqF;IAC9E,MAAM,cAAc,8GAC0B,CAAC;IACtD,+EAA+E;IAC/E,KAAY,QAAQ,GAAG,6CAA6C,CAAC;CACtE;AAED,wBAAgB,0CAA0C,CACxD,oCAAoC,EAAE,oCAAoC,GACzE,MAAM,CAMR;AAED,wBAAgB,4CAA4C,CAC1D,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,oCAAoC,EAAE,kBAAkB,CAAC,CAO3E"}
|
|
@@ -0,0 +1,77 @@
|
|
|
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.PropertyAccountingReportTrialBalance$ = exports.PropertyAccountingReportTrialBalance$outboundSchema = exports.PropertyAccountingReportTrialBalance$inboundSchema = void 0;
|
|
30
|
+
exports.propertyAccountingReportTrialBalanceToJSON = propertyAccountingReportTrialBalanceToJSON;
|
|
31
|
+
exports.propertyAccountingReportTrialBalanceFromJSON = propertyAccountingReportTrialBalanceFromJSON;
|
|
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 accountingtrialbalancesubitem_js_1 = require("./accountingtrialbalancesubitem.js");
|
|
36
|
+
/** @internal */
|
|
37
|
+
exports.PropertyAccountingReportTrialBalance$inboundSchema = z.object({
|
|
38
|
+
sub_items: z.array(accountingtrialbalancesubitem_js_1.AccountingTrialBalanceSubItem$inboundSchema).optional(),
|
|
39
|
+
total_credit_amount: z.number().optional(),
|
|
40
|
+
total_debit_amount: z.number().optional(),
|
|
41
|
+
}).transform((v) => {
|
|
42
|
+
return (0, primitives_js_1.remap)(v, {
|
|
43
|
+
"sub_items": "subItems",
|
|
44
|
+
"total_credit_amount": "totalCreditAmount",
|
|
45
|
+
"total_debit_amount": "totalDebitAmount",
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
/** @internal */
|
|
49
|
+
exports.PropertyAccountingReportTrialBalance$outboundSchema = z.object({
|
|
50
|
+
subItems: z.array(accountingtrialbalancesubitem_js_1.AccountingTrialBalanceSubItem$outboundSchema).optional(),
|
|
51
|
+
totalCreditAmount: z.number().optional(),
|
|
52
|
+
totalDebitAmount: z.number().optional(),
|
|
53
|
+
}).transform((v) => {
|
|
54
|
+
return (0, primitives_js_1.remap)(v, {
|
|
55
|
+
subItems: "sub_items",
|
|
56
|
+
totalCreditAmount: "total_credit_amount",
|
|
57
|
+
totalDebitAmount: "total_debit_amount",
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
/**
|
|
61
|
+
* @internal
|
|
62
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
63
|
+
*/
|
|
64
|
+
var PropertyAccountingReportTrialBalance$;
|
|
65
|
+
(function (PropertyAccountingReportTrialBalance$) {
|
|
66
|
+
/** @deprecated use `PropertyAccountingReportTrialBalance$inboundSchema` instead. */
|
|
67
|
+
PropertyAccountingReportTrialBalance$.inboundSchema = exports.PropertyAccountingReportTrialBalance$inboundSchema;
|
|
68
|
+
/** @deprecated use `PropertyAccountingReportTrialBalance$outboundSchema` instead. */
|
|
69
|
+
PropertyAccountingReportTrialBalance$.outboundSchema = exports.PropertyAccountingReportTrialBalance$outboundSchema;
|
|
70
|
+
})(PropertyAccountingReportTrialBalance$ || (exports.PropertyAccountingReportTrialBalance$ = PropertyAccountingReportTrialBalance$ = {}));
|
|
71
|
+
function propertyAccountingReportTrialBalanceToJSON(propertyAccountingReportTrialBalance) {
|
|
72
|
+
return JSON.stringify(exports.PropertyAccountingReportTrialBalance$outboundSchema.parse(propertyAccountingReportTrialBalance));
|
|
73
|
+
}
|
|
74
|
+
function propertyAccountingReportTrialBalanceFromJSON(jsonString) {
|
|
75
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PropertyAccountingReportTrialBalance$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PropertyAccountingReportTrialBalance' from JSON`);
|
|
76
|
+
}
|
|
77
|
+
//# sourceMappingURL=propertyaccountingreporttrialbalance.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"propertyaccountingreporttrialbalance.js","sourceRoot":"","sources":["../../../src/sdk/models/shared/propertyaccountingreporttrialbalance.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AA4EH,gGAQC;A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AAqC,qDAArC,qCAAqC,QASrD;AAED,SAAgB,0CAA0C,CACxD,oCAA0E;IAE1E,OAAO,IAAI,CAAC,SAAS,CACnB,2DAAmD,CAAC,KAAK,CACvD,oCAAoC,CACrC,CACF,CAAC;AACJ,CAAC;AAED,SAAgB,4CAA4C,CAC1D,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,0DAAkD,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzE,kEAAkE,CACnE,CAAC;AACJ,CAAC"}
|
|
@@ -92,12 +92,14 @@ async function $do(
|
|
|
92
92
|
const path = pathToFunc("/accounting/{connection_id}/report")(pathParams);
|
|
93
93
|
|
|
94
94
|
const query = encodeFormQuery({
|
|
95
|
+
"end_le": payload.end_le,
|
|
95
96
|
"fields": payload.fields,
|
|
96
97
|
"limit": payload.limit,
|
|
97
98
|
"offset": payload.offset,
|
|
98
99
|
"order": payload.order,
|
|
99
100
|
"query": payload.query,
|
|
100
101
|
"sort": payload.sort,
|
|
102
|
+
"start_gte": payload.start_gte,
|
|
101
103
|
"type": payload.type,
|
|
102
104
|
"updated_gte": payload.updated_gte,
|
|
103
105
|
});
|
|
@@ -92,12 +92,14 @@ async function $do(
|
|
|
92
92
|
const path = pathToFunc("/accounting/{connection_id}/report")(pathParams);
|
|
93
93
|
|
|
94
94
|
const query = encodeFormQuery({
|
|
95
|
+
"end_le": payload.end_le,
|
|
95
96
|
"fields": payload.fields,
|
|
96
97
|
"limit": payload.limit,
|
|
97
98
|
"offset": payload.offset,
|
|
98
99
|
"order": payload.order,
|
|
99
100
|
"query": payload.query,
|
|
100
101
|
"sort": payload.sort,
|
|
102
|
+
"start_gte": payload.start_gte,
|
|
101
103
|
"type": payload.type,
|
|
102
104
|
"updated_gte": payload.updated_gte,
|
|
103
105
|
});
|
package/src/lib/config.ts
CHANGED
|
@@ -69,8 +69,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
69
69
|
export const SDK_METADATA = {
|
|
70
70
|
language: "typescript",
|
|
71
71
|
openapiDocVersion: "1.0",
|
|
72
|
-
sdkVersion: "2.
|
|
72
|
+
sdkVersion: "2.56.0",
|
|
73
73
|
genVersion: "2.522.1",
|
|
74
74
|
userAgent:
|
|
75
|
-
"speakeasy-sdk/typescript 2.
|
|
75
|
+
"speakeasy-sdk/typescript 2.56.0 2.522.1 1.0 @unified-api/typescript-sdk",
|
|
76
76
|
} as const;
|
|
@@ -13,6 +13,7 @@ export type ListAccountingReportsRequest = {
|
|
|
13
13
|
* ID of the connection
|
|
14
14
|
*/
|
|
15
15
|
connectionId: string;
|
|
16
|
+
endLe?: string | undefined;
|
|
16
17
|
/**
|
|
17
18
|
* Comma-delimited fields to return
|
|
18
19
|
*/
|
|
@@ -25,6 +26,7 @@ export type ListAccountingReportsRequest = {
|
|
|
25
26
|
*/
|
|
26
27
|
query?: string | undefined;
|
|
27
28
|
sort?: string | undefined;
|
|
29
|
+
startGte?: string | undefined;
|
|
28
30
|
type?: string | undefined;
|
|
29
31
|
/**
|
|
30
32
|
* Return only results whose updated date is equal or greater to this value
|
|
@@ -39,18 +41,22 @@ export const ListAccountingReportsRequest$inboundSchema: z.ZodType<
|
|
|
39
41
|
unknown
|
|
40
42
|
> = z.object({
|
|
41
43
|
connection_id: z.string(),
|
|
44
|
+
end_le: z.string().optional(),
|
|
42
45
|
fields: z.array(z.string()).optional(),
|
|
43
46
|
limit: z.number().optional(),
|
|
44
47
|
offset: z.number().optional(),
|
|
45
48
|
order: z.string().optional(),
|
|
46
49
|
query: z.string().optional(),
|
|
47
50
|
sort: z.string().optional(),
|
|
51
|
+
start_gte: z.string().optional(),
|
|
48
52
|
type: z.string().optional(),
|
|
49
53
|
updated_gte: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
50
54
|
.optional(),
|
|
51
55
|
}).transform((v) => {
|
|
52
56
|
return remap$(v, {
|
|
53
57
|
"connection_id": "connectionId",
|
|
58
|
+
"end_le": "endLe",
|
|
59
|
+
"start_gte": "startGte",
|
|
54
60
|
"updated_gte": "updatedGte",
|
|
55
61
|
});
|
|
56
62
|
});
|
|
@@ -58,12 +64,14 @@ export const ListAccountingReportsRequest$inboundSchema: z.ZodType<
|
|
|
58
64
|
/** @internal */
|
|
59
65
|
export type ListAccountingReportsRequest$Outbound = {
|
|
60
66
|
connection_id: string;
|
|
67
|
+
end_le?: string | undefined;
|
|
61
68
|
fields?: Array<string> | undefined;
|
|
62
69
|
limit?: number | undefined;
|
|
63
70
|
offset?: number | undefined;
|
|
64
71
|
order?: string | undefined;
|
|
65
72
|
query?: string | undefined;
|
|
66
73
|
sort?: string | undefined;
|
|
74
|
+
start_gte?: string | undefined;
|
|
67
75
|
type?: string | undefined;
|
|
68
76
|
updated_gte?: string | undefined;
|
|
69
77
|
};
|
|
@@ -75,17 +83,21 @@ export const ListAccountingReportsRequest$outboundSchema: z.ZodType<
|
|
|
75
83
|
ListAccountingReportsRequest
|
|
76
84
|
> = z.object({
|
|
77
85
|
connectionId: z.string(),
|
|
86
|
+
endLe: z.string().optional(),
|
|
78
87
|
fields: z.array(z.string()).optional(),
|
|
79
88
|
limit: z.number().optional(),
|
|
80
89
|
offset: z.number().optional(),
|
|
81
90
|
order: z.string().optional(),
|
|
82
91
|
query: z.string().optional(),
|
|
83
92
|
sort: z.string().optional(),
|
|
93
|
+
startGte: z.string().optional(),
|
|
84
94
|
type: z.string().optional(),
|
|
85
95
|
updatedGte: z.date().transform(v => v.toISOString()).optional(),
|
|
86
96
|
}).transform((v) => {
|
|
87
97
|
return remap$(v, {
|
|
88
98
|
connectionId: "connection_id",
|
|
99
|
+
endLe: "end_le",
|
|
100
|
+
startGte: "start_gte",
|
|
89
101
|
updatedGte: "updated_gte",
|
|
90
102
|
});
|
|
91
103
|
});
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
PropertyAccountingBalanceSheetItemSubItems,
|
|
12
|
+
PropertyAccountingBalanceSheetItemSubItems$inboundSchema,
|
|
13
|
+
PropertyAccountingBalanceSheetItemSubItems$Outbound,
|
|
14
|
+
PropertyAccountingBalanceSheetItemSubItems$outboundSchema,
|
|
15
|
+
} from "./propertyaccountingbalancesheetitemsubitems.js";
|
|
16
|
+
|
|
17
|
+
export type AccountingBalanceSheetItem = {
|
|
18
|
+
accountId?: string | undefined;
|
|
19
|
+
amount?: number | undefined;
|
|
20
|
+
name?: string | undefined;
|
|
21
|
+
subItems?: Array<PropertyAccountingBalanceSheetItemSubItems> | undefined;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const AccountingBalanceSheetItem$inboundSchema: z.ZodType<
|
|
26
|
+
AccountingBalanceSheetItem,
|
|
27
|
+
z.ZodTypeDef,
|
|
28
|
+
unknown
|
|
29
|
+
> = z.object({
|
|
30
|
+
account_id: z.string().optional(),
|
|
31
|
+
amount: z.number().optional(),
|
|
32
|
+
name: z.string().optional(),
|
|
33
|
+
sub_items: z.array(PropertyAccountingBalanceSheetItemSubItems$inboundSchema)
|
|
34
|
+
.optional(),
|
|
35
|
+
}).transform((v) => {
|
|
36
|
+
return remap$(v, {
|
|
37
|
+
"account_id": "accountId",
|
|
38
|
+
"sub_items": "subItems",
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export type AccountingBalanceSheetItem$Outbound = {
|
|
44
|
+
account_id?: string | undefined;
|
|
45
|
+
amount?: number | undefined;
|
|
46
|
+
name?: string | undefined;
|
|
47
|
+
sub_items?:
|
|
48
|
+
| Array<PropertyAccountingBalanceSheetItemSubItems$Outbound>
|
|
49
|
+
| undefined;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
/** @internal */
|
|
53
|
+
export const AccountingBalanceSheetItem$outboundSchema: z.ZodType<
|
|
54
|
+
AccountingBalanceSheetItem$Outbound,
|
|
55
|
+
z.ZodTypeDef,
|
|
56
|
+
AccountingBalanceSheetItem
|
|
57
|
+
> = z.object({
|
|
58
|
+
accountId: z.string().optional(),
|
|
59
|
+
amount: z.number().optional(),
|
|
60
|
+
name: z.string().optional(),
|
|
61
|
+
subItems: z.array(PropertyAccountingBalanceSheetItemSubItems$outboundSchema)
|
|
62
|
+
.optional(),
|
|
63
|
+
}).transform((v) => {
|
|
64
|
+
return remap$(v, {
|
|
65
|
+
accountId: "account_id",
|
|
66
|
+
subItems: "sub_items",
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @internal
|
|
72
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
73
|
+
*/
|
|
74
|
+
export namespace AccountingBalanceSheetItem$ {
|
|
75
|
+
/** @deprecated use `AccountingBalanceSheetItem$inboundSchema` instead. */
|
|
76
|
+
export const inboundSchema = AccountingBalanceSheetItem$inboundSchema;
|
|
77
|
+
/** @deprecated use `AccountingBalanceSheetItem$outboundSchema` instead. */
|
|
78
|
+
export const outboundSchema = AccountingBalanceSheetItem$outboundSchema;
|
|
79
|
+
/** @deprecated use `AccountingBalanceSheetItem$Outbound` instead. */
|
|
80
|
+
export type Outbound = AccountingBalanceSheetItem$Outbound;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function accountingBalanceSheetItemToJSON(
|
|
84
|
+
accountingBalanceSheetItem: AccountingBalanceSheetItem,
|
|
85
|
+
): string {
|
|
86
|
+
return JSON.stringify(
|
|
87
|
+
AccountingBalanceSheetItem$outboundSchema.parse(accountingBalanceSheetItem),
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function accountingBalanceSheetItemFromJSON(
|
|
92
|
+
jsonString: string,
|
|
93
|
+
): SafeParseResult<AccountingBalanceSheetItem, SDKValidationError> {
|
|
94
|
+
return safeParse(
|
|
95
|
+
jsonString,
|
|
96
|
+
(x) => AccountingBalanceSheetItem$inboundSchema.parse(JSON.parse(x)),
|
|
97
|
+
`Failed to parse 'AccountingBalanceSheetItem' from JSON`,
|
|
98
|
+
);
|
|
99
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
AccountingProfitAndLossSubcategory,
|
|
12
|
+
AccountingProfitAndLossSubcategory$inboundSchema,
|
|
13
|
+
AccountingProfitAndLossSubcategory$Outbound,
|
|
14
|
+
AccountingProfitAndLossSubcategory$outboundSchema,
|
|
15
|
+
} from "./accountingprofitandlosssubcategory.js";
|
|
16
|
+
|
|
17
|
+
export type AccountingProfitAndLossCategory = {
|
|
18
|
+
amount?: number | undefined;
|
|
19
|
+
name?: string | undefined;
|
|
20
|
+
subItems?: Array<AccountingProfitAndLossSubcategory> | undefined;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const AccountingProfitAndLossCategory$inboundSchema: z.ZodType<
|
|
25
|
+
AccountingProfitAndLossCategory,
|
|
26
|
+
z.ZodTypeDef,
|
|
27
|
+
unknown
|
|
28
|
+
> = z.object({
|
|
29
|
+
amount: z.number().optional(),
|
|
30
|
+
name: z.string().optional(),
|
|
31
|
+
sub_items: z.array(AccountingProfitAndLossSubcategory$inboundSchema)
|
|
32
|
+
.optional(),
|
|
33
|
+
}).transform((v) => {
|
|
34
|
+
return remap$(v, {
|
|
35
|
+
"sub_items": "subItems",
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export type AccountingProfitAndLossCategory$Outbound = {
|
|
41
|
+
amount?: number | undefined;
|
|
42
|
+
name?: string | undefined;
|
|
43
|
+
sub_items?: Array<AccountingProfitAndLossSubcategory$Outbound> | undefined;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const AccountingProfitAndLossCategory$outboundSchema: z.ZodType<
|
|
48
|
+
AccountingProfitAndLossCategory$Outbound,
|
|
49
|
+
z.ZodTypeDef,
|
|
50
|
+
AccountingProfitAndLossCategory
|
|
51
|
+
> = z.object({
|
|
52
|
+
amount: z.number().optional(),
|
|
53
|
+
name: z.string().optional(),
|
|
54
|
+
subItems: z.array(AccountingProfitAndLossSubcategory$outboundSchema)
|
|
55
|
+
.optional(),
|
|
56
|
+
}).transform((v) => {
|
|
57
|
+
return remap$(v, {
|
|
58
|
+
subItems: "sub_items",
|
|
59
|
+
});
|
|
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
|
+
export namespace AccountingProfitAndLossCategory$ {
|
|
67
|
+
/** @deprecated use `AccountingProfitAndLossCategory$inboundSchema` instead. */
|
|
68
|
+
export const inboundSchema = AccountingProfitAndLossCategory$inboundSchema;
|
|
69
|
+
/** @deprecated use `AccountingProfitAndLossCategory$outboundSchema` instead. */
|
|
70
|
+
export const outboundSchema = AccountingProfitAndLossCategory$outboundSchema;
|
|
71
|
+
/** @deprecated use `AccountingProfitAndLossCategory$Outbound` instead. */
|
|
72
|
+
export type Outbound = AccountingProfitAndLossCategory$Outbound;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function accountingProfitAndLossCategoryToJSON(
|
|
76
|
+
accountingProfitAndLossCategory: AccountingProfitAndLossCategory,
|
|
77
|
+
): string {
|
|
78
|
+
return JSON.stringify(
|
|
79
|
+
AccountingProfitAndLossCategory$outboundSchema.parse(
|
|
80
|
+
accountingProfitAndLossCategory,
|
|
81
|
+
),
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function accountingProfitAndLossCategoryFromJSON(
|
|
86
|
+
jsonString: string,
|
|
87
|
+
): SafeParseResult<AccountingProfitAndLossCategory, SDKValidationError> {
|
|
88
|
+
return safeParse(
|
|
89
|
+
jsonString,
|
|
90
|
+
(x) => AccountingProfitAndLossCategory$inboundSchema.parse(JSON.parse(x)),
|
|
91
|
+
`Failed to parse 'AccountingProfitAndLossCategory' from JSON`,
|
|
92
|
+
);
|
|
93
|
+
}
|