@apideck/unify 0.19.0 → 0.20.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/docs/sdks/customers/README.md +2 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.js +4 -4
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +2 -8
- package/lib/sdks.js.map +1 -1
- package/models/components/balancesheetfilter.d.ts +2 -0
- package/models/components/balancesheetfilter.d.ts.map +1 -1
- package/models/components/balancesheetfilter.js.map +1 -1
- package/models/components/bill.d.ts +10 -0
- package/models/components/bill.d.ts.map +1 -1
- package/models/components/bill.js +8 -0
- package/models/components/bill.js.map +1 -1
- package/models/components/billpayment.d.ts +2 -2
- package/models/components/customersfilter.d.ts +5 -0
- package/models/components/customersfilter.d.ts.map +1 -1
- package/models/components/customersfilter.js +4 -0
- package/models/components/customersfilter.js.map +1 -1
- package/models/components/index.d.ts +2 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +2 -0
- package/models/components/index.js.map +1 -1
- package/models/components/payment.d.ts +1 -1
- package/models/components/paymentinput.d.ts +1 -1
- package/models/components/profitandloss.d.ts +256 -56
- package/models/components/profitandloss.d.ts.map +1 -1
- package/models/components/profitandloss.js +158 -62
- package/models/components/profitandloss.js.map +1 -1
- package/models/components/profitandlossindicator.d.ts +32 -0
- package/models/components/profitandlossindicator.d.ts.map +1 -0
- package/models/components/profitandlossindicator.js +59 -0
- package/models/components/profitandlossindicator.js.map +1 -0
- package/models/components/profitandlosstype.d.ts +34 -0
- package/models/components/profitandlosstype.d.ts.map +1 -0
- package/models/components/profitandlosstype.js +53 -0
- package/models/components/profitandlosstype.js.map +1 -0
- package/package.json +1 -1
- package/src/lib/config.ts +4 -4
- package/src/lib/sdks.ts +2 -7
- package/src/models/components/balancesheetfilter.ts +2 -0
- package/src/models/components/bill.ts +18 -0
- package/src/models/components/billpayment.ts +2 -2
- package/src/models/components/customersfilter.ts +9 -0
- package/src/models/components/index.ts +2 -0
- package/src/models/components/payment.ts +1 -1
- package/src/models/components/paymentinput.ts +1 -1
- package/src/models/components/profitandloss.ts +407 -101
- package/src/models/components/profitandlossindicator.ts +69 -0
- package/src/models/components/profitandlosstype.ts +39 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type ProfitAndLossIndicator = {
|
|
11
|
+
/**
|
|
12
|
+
* The total amount of the transaction or record
|
|
13
|
+
*/
|
|
14
|
+
total: number | null;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const ProfitAndLossIndicator$inboundSchema: z.ZodType<
|
|
19
|
+
ProfitAndLossIndicator,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
unknown
|
|
22
|
+
> = z.object({
|
|
23
|
+
total: z.nullable(z.number()),
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export type ProfitAndLossIndicator$Outbound = {
|
|
28
|
+
total: number | null;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const ProfitAndLossIndicator$outboundSchema: z.ZodType<
|
|
33
|
+
ProfitAndLossIndicator$Outbound,
|
|
34
|
+
z.ZodTypeDef,
|
|
35
|
+
ProfitAndLossIndicator
|
|
36
|
+
> = z.object({
|
|
37
|
+
total: z.nullable(z.number()),
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @internal
|
|
42
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
43
|
+
*/
|
|
44
|
+
export namespace ProfitAndLossIndicator$ {
|
|
45
|
+
/** @deprecated use `ProfitAndLossIndicator$inboundSchema` instead. */
|
|
46
|
+
export const inboundSchema = ProfitAndLossIndicator$inboundSchema;
|
|
47
|
+
/** @deprecated use `ProfitAndLossIndicator$outboundSchema` instead. */
|
|
48
|
+
export const outboundSchema = ProfitAndLossIndicator$outboundSchema;
|
|
49
|
+
/** @deprecated use `ProfitAndLossIndicator$Outbound` instead. */
|
|
50
|
+
export type Outbound = ProfitAndLossIndicator$Outbound;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function profitAndLossIndicatorToJSON(
|
|
54
|
+
profitAndLossIndicator: ProfitAndLossIndicator,
|
|
55
|
+
): string {
|
|
56
|
+
return JSON.stringify(
|
|
57
|
+
ProfitAndLossIndicator$outboundSchema.parse(profitAndLossIndicator),
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function profitAndLossIndicatorFromJSON(
|
|
62
|
+
jsonString: string,
|
|
63
|
+
): SafeParseResult<ProfitAndLossIndicator, SDKValidationError> {
|
|
64
|
+
return safeParse(
|
|
65
|
+
jsonString,
|
|
66
|
+
(x) => ProfitAndLossIndicator$inboundSchema.parse(JSON.parse(x)),
|
|
67
|
+
`Failed to parse 'ProfitAndLossIndicator' from JSON`,
|
|
68
|
+
);
|
|
69
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* The type of profit and loss
|
|
10
|
+
*/
|
|
11
|
+
export const ProfitAndLossType = {
|
|
12
|
+
Section: "Section",
|
|
13
|
+
Record: "Record",
|
|
14
|
+
} as const;
|
|
15
|
+
/**
|
|
16
|
+
* The type of profit and loss
|
|
17
|
+
*/
|
|
18
|
+
export type ProfitAndLossType = ClosedEnum<typeof ProfitAndLossType>;
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const ProfitAndLossType$inboundSchema: z.ZodNativeEnum<
|
|
22
|
+
typeof ProfitAndLossType
|
|
23
|
+
> = z.nativeEnum(ProfitAndLossType);
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const ProfitAndLossType$outboundSchema: z.ZodNativeEnum<
|
|
27
|
+
typeof ProfitAndLossType
|
|
28
|
+
> = ProfitAndLossType$inboundSchema;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @internal
|
|
32
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
33
|
+
*/
|
|
34
|
+
export namespace ProfitAndLossType$ {
|
|
35
|
+
/** @deprecated use `ProfitAndLossType$inboundSchema` instead. */
|
|
36
|
+
export const inboundSchema = ProfitAndLossType$inboundSchema;
|
|
37
|
+
/** @deprecated use `ProfitAndLossType$outboundSchema` instead. */
|
|
38
|
+
export const outboundSchema = ProfitAndLossType$outboundSchema;
|
|
39
|
+
}
|