@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.
Files changed (50) hide show
  1. package/docs/sdks/customers/README.md +2 -0
  2. package/jsr.json +1 -1
  3. package/lib/config.d.ts +4 -4
  4. package/lib/config.js +4 -4
  5. package/lib/sdks.d.ts.map +1 -1
  6. package/lib/sdks.js +2 -8
  7. package/lib/sdks.js.map +1 -1
  8. package/models/components/balancesheetfilter.d.ts +2 -0
  9. package/models/components/balancesheetfilter.d.ts.map +1 -1
  10. package/models/components/balancesheetfilter.js.map +1 -1
  11. package/models/components/bill.d.ts +10 -0
  12. package/models/components/bill.d.ts.map +1 -1
  13. package/models/components/bill.js +8 -0
  14. package/models/components/bill.js.map +1 -1
  15. package/models/components/billpayment.d.ts +2 -2
  16. package/models/components/customersfilter.d.ts +5 -0
  17. package/models/components/customersfilter.d.ts.map +1 -1
  18. package/models/components/customersfilter.js +4 -0
  19. package/models/components/customersfilter.js.map +1 -1
  20. package/models/components/index.d.ts +2 -0
  21. package/models/components/index.d.ts.map +1 -1
  22. package/models/components/index.js +2 -0
  23. package/models/components/index.js.map +1 -1
  24. package/models/components/payment.d.ts +1 -1
  25. package/models/components/paymentinput.d.ts +1 -1
  26. package/models/components/profitandloss.d.ts +256 -56
  27. package/models/components/profitandloss.d.ts.map +1 -1
  28. package/models/components/profitandloss.js +158 -62
  29. package/models/components/profitandloss.js.map +1 -1
  30. package/models/components/profitandlossindicator.d.ts +32 -0
  31. package/models/components/profitandlossindicator.d.ts.map +1 -0
  32. package/models/components/profitandlossindicator.js +59 -0
  33. package/models/components/profitandlossindicator.js.map +1 -0
  34. package/models/components/profitandlosstype.d.ts +34 -0
  35. package/models/components/profitandlosstype.d.ts.map +1 -0
  36. package/models/components/profitandlosstype.js +53 -0
  37. package/models/components/profitandlosstype.js.map +1 -0
  38. package/package.json +1 -1
  39. package/src/lib/config.ts +4 -4
  40. package/src/lib/sdks.ts +2 -7
  41. package/src/models/components/balancesheetfilter.ts +2 -0
  42. package/src/models/components/bill.ts +18 -0
  43. package/src/models/components/billpayment.ts +2 -2
  44. package/src/models/components/customersfilter.ts +9 -0
  45. package/src/models/components/index.ts +2 -0
  46. package/src/models/components/payment.ts +1 -1
  47. package/src/models/components/paymentinput.ts +1 -1
  48. package/src/models/components/profitandloss.ts +407 -101
  49. package/src/models/components/profitandlossindicator.ts +69 -0
  50. 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
+ }