@unified-api/typescript-sdk 2.73.3 → 2.73.5
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/bin/mcp-server.js +171 -24
- package/bin/mcp-server.js.map +18 -15
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/cli/start/command.d.ts.map +1 -1
- package/mcp-server/cli/start/command.js +0 -12
- package/mcp-server/cli/start/command.js.map +1 -1
- package/mcp-server/cli/start/impl.d.ts +0 -2
- package/mcp-server/cli/start/impl.d.ts.map +1 -1
- package/mcp-server/cli/start/impl.js +0 -2
- package/mcp-server/cli/start/impl.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/package.json +3 -3
- package/sdk/models/errors/sdkerror.d.ts.map +1 -1
- package/sdk/models/errors/sdkerror.js +8 -2
- package/sdk/models/errors/sdkerror.js.map +1 -1
- package/sdk/models/shared/accountingprofitandlossaccount.d.ts +35 -0
- package/sdk/models/shared/accountingprofitandlossaccount.d.ts.map +1 -0
- package/sdk/models/shared/accountingprofitandlossaccount.js +80 -0
- package/sdk/models/shared/accountingprofitandlossaccount.js.map +1 -0
- package/sdk/models/shared/accountingprofitandlosscategory.d.ts +3 -0
- package/sdk/models/shared/accountingprofitandlosscategory.d.ts.map +1 -1
- package/sdk/models/shared/accountingprofitandlosscategory.js.map +1 -1
- package/sdk/models/shared/accountingprofitandlosssection.d.ts +36 -0
- package/sdk/models/shared/accountingprofitandlosssection.d.ts.map +1 -0
- package/sdk/models/shared/accountingprofitandlosssection.js +79 -0
- package/sdk/models/shared/accountingprofitandlosssection.js.map +1 -0
- package/sdk/models/shared/accountingprofitandlosssubcategory.d.ts +3 -0
- package/sdk/models/shared/accountingprofitandlosssubcategory.d.ts.map +1 -1
- package/sdk/models/shared/accountingprofitandlosssubcategory.js.map +1 -1
- package/sdk/models/shared/index.d.ts +4 -0
- package/sdk/models/shared/index.d.ts.map +1 -1
- package/sdk/models/shared/index.js +4 -0
- package/sdk/models/shared/index.js.map +1 -1
- package/sdk/models/shared/messagingmessage.d.ts +3 -0
- package/sdk/models/shared/messagingmessage.d.ts.map +1 -1
- package/sdk/models/shared/messagingmessage.js +3 -0
- package/sdk/models/shared/messagingmessage.js.map +1 -1
- package/sdk/models/shared/messagingreaction.d.ts +32 -0
- package/sdk/models/shared/messagingreaction.d.ts.map +1 -0
- package/sdk/models/shared/messagingreaction.js +62 -0
- package/sdk/models/shared/messagingreaction.js.map +1 -0
- package/sdk/models/shared/propertyaccountingreportprofitandloss.d.ts +24 -0
- package/sdk/models/shared/propertyaccountingreportprofitandloss.d.ts.map +1 -1
- package/sdk/models/shared/propertyaccountingreportprofitandloss.js +33 -0
- package/sdk/models/shared/propertyaccountingreportprofitandloss.js.map +1 -1
- package/sdk/models/shared/propertymessagingreactionmember.d.ts +33 -0
- package/sdk/models/shared/propertymessagingreactionmember.d.ts.map +1 -0
- package/sdk/models/shared/propertymessagingreactionmember.js +72 -0
- package/sdk/models/shared/propertymessagingreactionmember.js.map +1 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/cli/start/command.ts +0 -13
- package/src/mcp-server/cli/start/impl.ts +0 -4
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/sdk/models/errors/sdkerror.ts +8 -2
- package/src/sdk/models/shared/accountingprofitandlossaccount.ts +95 -0
- package/src/sdk/models/shared/accountingprofitandlosscategory.ts +3 -0
- package/src/sdk/models/shared/accountingprofitandlosssection.ts +99 -0
- package/src/sdk/models/shared/accountingprofitandlosssubcategory.ts +3 -0
- package/src/sdk/models/shared/index.ts +4 -0
- package/src/sdk/models/shared/messagingmessage.ts +10 -0
- package/src/sdk/models/shared/messagingreaction.ts +76 -0
- package/src/sdk/models/shared/propertyaccountingreportprofitandloss.ts +69 -0
- package/src/sdk/models/shared/propertymessagingreactionmember.ts +85 -0
|
@@ -0,0 +1,95 @@
|
|
|
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
|
+
|
|
11
|
+
export type AccountingProfitAndLossAccount = {
|
|
12
|
+
accountId?: string | undefined;
|
|
13
|
+
accountName?: string | undefined;
|
|
14
|
+
totalAmount?: number | undefined;
|
|
15
|
+
transactionIds?: Array<string> | undefined;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const AccountingProfitAndLossAccount$inboundSchema: z.ZodType<
|
|
20
|
+
AccountingProfitAndLossAccount,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
account_id: z.string().optional(),
|
|
25
|
+
account_name: z.string().optional(),
|
|
26
|
+
total_amount: z.number().optional(),
|
|
27
|
+
transaction_ids: z.array(z.string()).optional(),
|
|
28
|
+
}).transform((v) => {
|
|
29
|
+
return remap$(v, {
|
|
30
|
+
"account_id": "accountId",
|
|
31
|
+
"account_name": "accountName",
|
|
32
|
+
"total_amount": "totalAmount",
|
|
33
|
+
"transaction_ids": "transactionIds",
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export type AccountingProfitAndLossAccount$Outbound = {
|
|
39
|
+
account_id?: string | undefined;
|
|
40
|
+
account_name?: string | undefined;
|
|
41
|
+
total_amount?: number | undefined;
|
|
42
|
+
transaction_ids?: Array<string> | undefined;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const AccountingProfitAndLossAccount$outboundSchema: z.ZodType<
|
|
47
|
+
AccountingProfitAndLossAccount$Outbound,
|
|
48
|
+
z.ZodTypeDef,
|
|
49
|
+
AccountingProfitAndLossAccount
|
|
50
|
+
> = z.object({
|
|
51
|
+
accountId: z.string().optional(),
|
|
52
|
+
accountName: z.string().optional(),
|
|
53
|
+
totalAmount: z.number().optional(),
|
|
54
|
+
transactionIds: z.array(z.string()).optional(),
|
|
55
|
+
}).transform((v) => {
|
|
56
|
+
return remap$(v, {
|
|
57
|
+
accountId: "account_id",
|
|
58
|
+
accountName: "account_name",
|
|
59
|
+
totalAmount: "total_amount",
|
|
60
|
+
transactionIds: "transaction_ids",
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* @internal
|
|
66
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
67
|
+
*/
|
|
68
|
+
export namespace AccountingProfitAndLossAccount$ {
|
|
69
|
+
/** @deprecated use `AccountingProfitAndLossAccount$inboundSchema` instead. */
|
|
70
|
+
export const inboundSchema = AccountingProfitAndLossAccount$inboundSchema;
|
|
71
|
+
/** @deprecated use `AccountingProfitAndLossAccount$outboundSchema` instead. */
|
|
72
|
+
export const outboundSchema = AccountingProfitAndLossAccount$outboundSchema;
|
|
73
|
+
/** @deprecated use `AccountingProfitAndLossAccount$Outbound` instead. */
|
|
74
|
+
export type Outbound = AccountingProfitAndLossAccount$Outbound;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function accountingProfitAndLossAccountToJSON(
|
|
78
|
+
accountingProfitAndLossAccount: AccountingProfitAndLossAccount,
|
|
79
|
+
): string {
|
|
80
|
+
return JSON.stringify(
|
|
81
|
+
AccountingProfitAndLossAccount$outboundSchema.parse(
|
|
82
|
+
accountingProfitAndLossAccount,
|
|
83
|
+
),
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function accountingProfitAndLossAccountFromJSON(
|
|
88
|
+
jsonString: string,
|
|
89
|
+
): SafeParseResult<AccountingProfitAndLossAccount, SDKValidationError> {
|
|
90
|
+
return safeParse(
|
|
91
|
+
jsonString,
|
|
92
|
+
(x) => AccountingProfitAndLossAccount$inboundSchema.parse(JSON.parse(x)),
|
|
93
|
+
`Failed to parse 'AccountingProfitAndLossAccount' from JSON`,
|
|
94
|
+
);
|
|
95
|
+
}
|
|
@@ -14,6 +14,9 @@ import {
|
|
|
14
14
|
AccountingProfitAndLossSubcategory$outboundSchema,
|
|
15
15
|
} from "./accountingprofitandlosssubcategory.js";
|
|
16
16
|
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated
|
|
19
|
+
*/
|
|
17
20
|
export type AccountingProfitAndLossCategory = {
|
|
18
21
|
amount?: number | undefined;
|
|
19
22
|
name?: string | undefined;
|
|
@@ -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
|
+
AccountingProfitAndLossAccount,
|
|
12
|
+
AccountingProfitAndLossAccount$inboundSchema,
|
|
13
|
+
AccountingProfitAndLossAccount$Outbound,
|
|
14
|
+
AccountingProfitAndLossAccount$outboundSchema,
|
|
15
|
+
} from "./accountingprofitandlossaccount.js";
|
|
16
|
+
|
|
17
|
+
export type AccountingProfitAndLossSection = {
|
|
18
|
+
accounts?: Array<AccountingProfitAndLossAccount> | undefined;
|
|
19
|
+
sectionName?: string | undefined;
|
|
20
|
+
sectionType?: string | undefined;
|
|
21
|
+
totalAmount?: number | undefined;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const AccountingProfitAndLossSection$inboundSchema: z.ZodType<
|
|
26
|
+
AccountingProfitAndLossSection,
|
|
27
|
+
z.ZodTypeDef,
|
|
28
|
+
unknown
|
|
29
|
+
> = z.object({
|
|
30
|
+
accounts: z.array(AccountingProfitAndLossAccount$inboundSchema).optional(),
|
|
31
|
+
section_name: z.string().optional(),
|
|
32
|
+
section_type: z.string().optional(),
|
|
33
|
+
total_amount: z.number().optional(),
|
|
34
|
+
}).transform((v) => {
|
|
35
|
+
return remap$(v, {
|
|
36
|
+
"section_name": "sectionName",
|
|
37
|
+
"section_type": "sectionType",
|
|
38
|
+
"total_amount": "totalAmount",
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export type AccountingProfitAndLossSection$Outbound = {
|
|
44
|
+
accounts?: Array<AccountingProfitAndLossAccount$Outbound> | undefined;
|
|
45
|
+
section_name?: string | undefined;
|
|
46
|
+
section_type?: string | undefined;
|
|
47
|
+
total_amount?: number | undefined;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
/** @internal */
|
|
51
|
+
export const AccountingProfitAndLossSection$outboundSchema: z.ZodType<
|
|
52
|
+
AccountingProfitAndLossSection$Outbound,
|
|
53
|
+
z.ZodTypeDef,
|
|
54
|
+
AccountingProfitAndLossSection
|
|
55
|
+
> = z.object({
|
|
56
|
+
accounts: z.array(AccountingProfitAndLossAccount$outboundSchema).optional(),
|
|
57
|
+
sectionName: z.string().optional(),
|
|
58
|
+
sectionType: z.string().optional(),
|
|
59
|
+
totalAmount: z.number().optional(),
|
|
60
|
+
}).transform((v) => {
|
|
61
|
+
return remap$(v, {
|
|
62
|
+
sectionName: "section_name",
|
|
63
|
+
sectionType: "section_type",
|
|
64
|
+
totalAmount: "total_amount",
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* @internal
|
|
70
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
71
|
+
*/
|
|
72
|
+
export namespace AccountingProfitAndLossSection$ {
|
|
73
|
+
/** @deprecated use `AccountingProfitAndLossSection$inboundSchema` instead. */
|
|
74
|
+
export const inboundSchema = AccountingProfitAndLossSection$inboundSchema;
|
|
75
|
+
/** @deprecated use `AccountingProfitAndLossSection$outboundSchema` instead. */
|
|
76
|
+
export const outboundSchema = AccountingProfitAndLossSection$outboundSchema;
|
|
77
|
+
/** @deprecated use `AccountingProfitAndLossSection$Outbound` instead. */
|
|
78
|
+
export type Outbound = AccountingProfitAndLossSection$Outbound;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function accountingProfitAndLossSectionToJSON(
|
|
82
|
+
accountingProfitAndLossSection: AccountingProfitAndLossSection,
|
|
83
|
+
): string {
|
|
84
|
+
return JSON.stringify(
|
|
85
|
+
AccountingProfitAndLossSection$outboundSchema.parse(
|
|
86
|
+
accountingProfitAndLossSection,
|
|
87
|
+
),
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function accountingProfitAndLossSectionFromJSON(
|
|
92
|
+
jsonString: string,
|
|
93
|
+
): SafeParseResult<AccountingProfitAndLossSection, SDKValidationError> {
|
|
94
|
+
return safeParse(
|
|
95
|
+
jsonString,
|
|
96
|
+
(x) => AccountingProfitAndLossSection$inboundSchema.parse(JSON.parse(x)),
|
|
97
|
+
`Failed to parse 'AccountingProfitAndLossSection' from JSON`,
|
|
98
|
+
);
|
|
99
|
+
}
|
|
@@ -8,6 +8,9 @@ import { safeParse } from "../../../lib/schemas.js";
|
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated
|
|
13
|
+
*/
|
|
11
14
|
export type AccountingProfitAndLossSubcategory = {
|
|
12
15
|
amount?: number | undefined;
|
|
13
16
|
name?: string | undefined;
|
|
@@ -15,7 +15,9 @@ export * from "./accountingjournallineitem.js";
|
|
|
15
15
|
export * from "./accountinglineitem.js";
|
|
16
16
|
export * from "./accountingorder.js";
|
|
17
17
|
export * from "./accountingorganization.js";
|
|
18
|
+
export * from "./accountingprofitandlossaccount.js";
|
|
18
19
|
export * from "./accountingprofitandlosscategory.js";
|
|
20
|
+
export * from "./accountingprofitandlosssection.js";
|
|
19
21
|
export * from "./accountingprofitandlosssubcategory.js";
|
|
20
22
|
export * from "./accountingreport.js";
|
|
21
23
|
export * from "./accountingtaxrate.js";
|
|
@@ -124,6 +126,7 @@ export * from "./messagingattachment.js";
|
|
|
124
126
|
export * from "./messagingchannel.js";
|
|
125
127
|
export * from "./messagingmember.js";
|
|
126
128
|
export * from "./messagingmessage.js";
|
|
129
|
+
export * from "./messagingreaction.js";
|
|
127
130
|
export * from "./metadatametadata.js";
|
|
128
131
|
export * from "./paymentlineitem.js";
|
|
129
132
|
export * from "./paymentlink.js";
|
|
@@ -171,6 +174,7 @@ export * from "./propertyhrislocationaddress.js";
|
|
|
171
174
|
export * from "./propertyintegrationcategories.js";
|
|
172
175
|
export * from "./propertylmsstudentaddress.js";
|
|
173
176
|
export * from "./propertymessagingmessageauthormember.js";
|
|
177
|
+
export * from "./propertymessagingreactionmember.js";
|
|
174
178
|
export * from "./propertyscimgroupmeta.js";
|
|
175
179
|
export * from "./propertyscimgroupschemas.js";
|
|
176
180
|
export * from "./propertyscimusermeta.js";
|
|
@@ -19,6 +19,12 @@ import {
|
|
|
19
19
|
MessagingMember$Outbound,
|
|
20
20
|
MessagingMember$outboundSchema,
|
|
21
21
|
} from "./messagingmember.js";
|
|
22
|
+
import {
|
|
23
|
+
MessagingReaction,
|
|
24
|
+
MessagingReaction$inboundSchema,
|
|
25
|
+
MessagingReaction$Outbound,
|
|
26
|
+
MessagingReaction$outboundSchema,
|
|
27
|
+
} from "./messagingreaction.js";
|
|
22
28
|
import {
|
|
23
29
|
PropertyMessagingMessageAuthorMember,
|
|
24
30
|
PropertyMessagingMessageAuthorMember$inboundSchema,
|
|
@@ -45,6 +51,7 @@ export type MessagingMessage = {
|
|
|
45
51
|
messageMarkdown?: string | undefined;
|
|
46
52
|
parentMessageId?: string | undefined;
|
|
47
53
|
raw?: { [k: string]: any } | undefined;
|
|
54
|
+
reactions?: Array<MessagingReaction> | undefined;
|
|
48
55
|
reference?: string | undefined;
|
|
49
56
|
rootMessageId?: string | undefined;
|
|
50
57
|
subject?: string | undefined;
|
|
@@ -74,6 +81,7 @@ export const MessagingMessage$inboundSchema: z.ZodType<
|
|
|
74
81
|
message_markdown: z.string().optional(),
|
|
75
82
|
parent_message_id: z.string().optional(),
|
|
76
83
|
raw: z.record(z.any()).optional(),
|
|
84
|
+
reactions: z.array(MessagingReaction$inboundSchema).optional(),
|
|
77
85
|
reference: z.string().optional(),
|
|
78
86
|
root_message_id: z.string().optional(),
|
|
79
87
|
subject: z.string().optional(),
|
|
@@ -116,6 +124,7 @@ export type MessagingMessage$Outbound = {
|
|
|
116
124
|
message_markdown?: string | undefined;
|
|
117
125
|
parent_message_id?: string | undefined;
|
|
118
126
|
raw?: { [k: string]: any } | undefined;
|
|
127
|
+
reactions?: Array<MessagingReaction$Outbound> | undefined;
|
|
119
128
|
reference?: string | undefined;
|
|
120
129
|
root_message_id?: string | undefined;
|
|
121
130
|
subject?: string | undefined;
|
|
@@ -144,6 +153,7 @@ export const MessagingMessage$outboundSchema: z.ZodType<
|
|
|
144
153
|
messageMarkdown: z.string().optional(),
|
|
145
154
|
parentMessageId: z.string().optional(),
|
|
146
155
|
raw: z.record(z.any()).optional(),
|
|
156
|
+
reactions: z.array(MessagingReaction$outboundSchema).optional(),
|
|
147
157
|
reference: z.string().optional(),
|
|
148
158
|
rootMessageId: z.string().optional(),
|
|
149
159
|
subject: z.string().optional(),
|
|
@@ -0,0 +1,76 @@
|
|
|
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
|
+
import {
|
|
10
|
+
PropertyMessagingReactionMember,
|
|
11
|
+
PropertyMessagingReactionMember$inboundSchema,
|
|
12
|
+
PropertyMessagingReactionMember$Outbound,
|
|
13
|
+
PropertyMessagingReactionMember$outboundSchema,
|
|
14
|
+
} from "./propertymessagingreactionmember.js";
|
|
15
|
+
|
|
16
|
+
export type MessagingReaction = {
|
|
17
|
+
member: PropertyMessagingReactionMember;
|
|
18
|
+
reaction: string;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const MessagingReaction$inboundSchema: z.ZodType<
|
|
23
|
+
MessagingReaction,
|
|
24
|
+
z.ZodTypeDef,
|
|
25
|
+
unknown
|
|
26
|
+
> = z.object({
|
|
27
|
+
member: PropertyMessagingReactionMember$inboundSchema,
|
|
28
|
+
reaction: z.string(),
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export type MessagingReaction$Outbound = {
|
|
33
|
+
member: PropertyMessagingReactionMember$Outbound;
|
|
34
|
+
reaction: string;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const MessagingReaction$outboundSchema: z.ZodType<
|
|
39
|
+
MessagingReaction$Outbound,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
MessagingReaction
|
|
42
|
+
> = z.object({
|
|
43
|
+
member: PropertyMessagingReactionMember$outboundSchema,
|
|
44
|
+
reaction: z.string(),
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* @internal
|
|
49
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
50
|
+
*/
|
|
51
|
+
export namespace MessagingReaction$ {
|
|
52
|
+
/** @deprecated use `MessagingReaction$inboundSchema` instead. */
|
|
53
|
+
export const inboundSchema = MessagingReaction$inboundSchema;
|
|
54
|
+
/** @deprecated use `MessagingReaction$outboundSchema` instead. */
|
|
55
|
+
export const outboundSchema = MessagingReaction$outboundSchema;
|
|
56
|
+
/** @deprecated use `MessagingReaction$Outbound` instead. */
|
|
57
|
+
export type Outbound = MessagingReaction$Outbound;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function messagingReactionToJSON(
|
|
61
|
+
messagingReaction: MessagingReaction,
|
|
62
|
+
): string {
|
|
63
|
+
return JSON.stringify(
|
|
64
|
+
MessagingReaction$outboundSchema.parse(messagingReaction),
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function messagingReactionFromJSON(
|
|
69
|
+
jsonString: string,
|
|
70
|
+
): SafeParseResult<MessagingReaction, SDKValidationError> {
|
|
71
|
+
return safeParse(
|
|
72
|
+
jsonString,
|
|
73
|
+
(x) => MessagingReaction$inboundSchema.parse(JSON.parse(x)),
|
|
74
|
+
`Failed to parse 'MessagingReaction' from JSON`,
|
|
75
|
+
);
|
|
76
|
+
}
|
|
@@ -13,12 +13,34 @@ import {
|
|
|
13
13
|
AccountingProfitAndLossCategory$Outbound,
|
|
14
14
|
AccountingProfitAndLossCategory$outboundSchema,
|
|
15
15
|
} from "./accountingprofitandlosscategory.js";
|
|
16
|
+
import {
|
|
17
|
+
AccountingProfitAndLossSection,
|
|
18
|
+
AccountingProfitAndLossSection$inboundSchema,
|
|
19
|
+
AccountingProfitAndLossSection$Outbound,
|
|
20
|
+
AccountingProfitAndLossSection$outboundSchema,
|
|
21
|
+
} from "./accountingprofitandlosssection.js";
|
|
16
22
|
|
|
17
23
|
export type PropertyAccountingReportProfitAndLoss = {
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated
|
|
26
|
+
*/
|
|
18
27
|
costOfGoodsSold?: Array<AccountingProfitAndLossCategory> | undefined;
|
|
28
|
+
costOfGoodsSoldSections?: Array<AccountingProfitAndLossSection> | undefined;
|
|
29
|
+
costOfGoodsSoldTotalAmount?: number | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* @deprecated
|
|
32
|
+
*/
|
|
19
33
|
expenses?: Array<AccountingProfitAndLossCategory> | undefined;
|
|
34
|
+
expensesSections?: Array<AccountingProfitAndLossSection> | undefined;
|
|
35
|
+
expensesTotalAmount?: number | undefined;
|
|
20
36
|
grossProfitAmount?: number | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* @deprecated
|
|
39
|
+
*/
|
|
21
40
|
income?: Array<AccountingProfitAndLossCategory> | undefined;
|
|
41
|
+
incomeSections?: Array<AccountingProfitAndLossSection> | undefined;
|
|
42
|
+
incomeTotalAmount?: number | undefined;
|
|
43
|
+
netIncomeAmount?: number | undefined;
|
|
22
44
|
netProfitAmount?: number | undefined;
|
|
23
45
|
};
|
|
24
46
|
|
|
@@ -30,14 +52,32 @@ export const PropertyAccountingReportProfitAndLoss$inboundSchema: z.ZodType<
|
|
|
30
52
|
> = z.object({
|
|
31
53
|
cost_of_goods_sold: z.array(AccountingProfitAndLossCategory$inboundSchema)
|
|
32
54
|
.optional(),
|
|
55
|
+
cost_of_goods_sold_sections: z.array(
|
|
56
|
+
AccountingProfitAndLossSection$inboundSchema,
|
|
57
|
+
).optional(),
|
|
58
|
+
cost_of_goods_sold_total_amount: z.number().optional(),
|
|
33
59
|
expenses: z.array(AccountingProfitAndLossCategory$inboundSchema).optional(),
|
|
60
|
+
expenses_sections: z.array(AccountingProfitAndLossSection$inboundSchema)
|
|
61
|
+
.optional(),
|
|
62
|
+
expenses_total_amount: z.number().optional(),
|
|
34
63
|
gross_profit_amount: z.number().optional(),
|
|
35
64
|
income: z.array(AccountingProfitAndLossCategory$inboundSchema).optional(),
|
|
65
|
+
income_sections: z.array(AccountingProfitAndLossSection$inboundSchema)
|
|
66
|
+
.optional(),
|
|
67
|
+
income_total_amount: z.number().optional(),
|
|
68
|
+
net_income_amount: z.number().optional(),
|
|
36
69
|
net_profit_amount: z.number().optional(),
|
|
37
70
|
}).transform((v) => {
|
|
38
71
|
return remap$(v, {
|
|
39
72
|
"cost_of_goods_sold": "costOfGoodsSold",
|
|
73
|
+
"cost_of_goods_sold_sections": "costOfGoodsSoldSections",
|
|
74
|
+
"cost_of_goods_sold_total_amount": "costOfGoodsSoldTotalAmount",
|
|
75
|
+
"expenses_sections": "expensesSections",
|
|
76
|
+
"expenses_total_amount": "expensesTotalAmount",
|
|
40
77
|
"gross_profit_amount": "grossProfitAmount",
|
|
78
|
+
"income_sections": "incomeSections",
|
|
79
|
+
"income_total_amount": "incomeTotalAmount",
|
|
80
|
+
"net_income_amount": "netIncomeAmount",
|
|
41
81
|
"net_profit_amount": "netProfitAmount",
|
|
42
82
|
});
|
|
43
83
|
});
|
|
@@ -47,9 +87,20 @@ export type PropertyAccountingReportProfitAndLoss$Outbound = {
|
|
|
47
87
|
cost_of_goods_sold?:
|
|
48
88
|
| Array<AccountingProfitAndLossCategory$Outbound>
|
|
49
89
|
| undefined;
|
|
90
|
+
cost_of_goods_sold_sections?:
|
|
91
|
+
| Array<AccountingProfitAndLossSection$Outbound>
|
|
92
|
+
| undefined;
|
|
93
|
+
cost_of_goods_sold_total_amount?: number | undefined;
|
|
50
94
|
expenses?: Array<AccountingProfitAndLossCategory$Outbound> | undefined;
|
|
95
|
+
expenses_sections?:
|
|
96
|
+
| Array<AccountingProfitAndLossSection$Outbound>
|
|
97
|
+
| undefined;
|
|
98
|
+
expenses_total_amount?: number | undefined;
|
|
51
99
|
gross_profit_amount?: number | undefined;
|
|
52
100
|
income?: Array<AccountingProfitAndLossCategory$Outbound> | undefined;
|
|
101
|
+
income_sections?: Array<AccountingProfitAndLossSection$Outbound> | undefined;
|
|
102
|
+
income_total_amount?: number | undefined;
|
|
103
|
+
net_income_amount?: number | undefined;
|
|
53
104
|
net_profit_amount?: number | undefined;
|
|
54
105
|
};
|
|
55
106
|
|
|
@@ -61,14 +112,32 @@ export const PropertyAccountingReportProfitAndLoss$outboundSchema: z.ZodType<
|
|
|
61
112
|
> = z.object({
|
|
62
113
|
costOfGoodsSold: z.array(AccountingProfitAndLossCategory$outboundSchema)
|
|
63
114
|
.optional(),
|
|
115
|
+
costOfGoodsSoldSections: z.array(
|
|
116
|
+
AccountingProfitAndLossSection$outboundSchema,
|
|
117
|
+
).optional(),
|
|
118
|
+
costOfGoodsSoldTotalAmount: z.number().optional(),
|
|
64
119
|
expenses: z.array(AccountingProfitAndLossCategory$outboundSchema).optional(),
|
|
120
|
+
expensesSections: z.array(AccountingProfitAndLossSection$outboundSchema)
|
|
121
|
+
.optional(),
|
|
122
|
+
expensesTotalAmount: z.number().optional(),
|
|
65
123
|
grossProfitAmount: z.number().optional(),
|
|
66
124
|
income: z.array(AccountingProfitAndLossCategory$outboundSchema).optional(),
|
|
125
|
+
incomeSections: z.array(AccountingProfitAndLossSection$outboundSchema)
|
|
126
|
+
.optional(),
|
|
127
|
+
incomeTotalAmount: z.number().optional(),
|
|
128
|
+
netIncomeAmount: z.number().optional(),
|
|
67
129
|
netProfitAmount: z.number().optional(),
|
|
68
130
|
}).transform((v) => {
|
|
69
131
|
return remap$(v, {
|
|
70
132
|
costOfGoodsSold: "cost_of_goods_sold",
|
|
133
|
+
costOfGoodsSoldSections: "cost_of_goods_sold_sections",
|
|
134
|
+
costOfGoodsSoldTotalAmount: "cost_of_goods_sold_total_amount",
|
|
135
|
+
expensesSections: "expenses_sections",
|
|
136
|
+
expensesTotalAmount: "expenses_total_amount",
|
|
71
137
|
grossProfitAmount: "gross_profit_amount",
|
|
138
|
+
incomeSections: "income_sections",
|
|
139
|
+
incomeTotalAmount: "income_total_amount",
|
|
140
|
+
netIncomeAmount: "net_income_amount",
|
|
72
141
|
netProfitAmount: "net_profit_amount",
|
|
73
142
|
});
|
|
74
143
|
});
|
|
@@ -0,0 +1,85 @@
|
|
|
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
|
+
|
|
11
|
+
export type PropertyMessagingReactionMember = {
|
|
12
|
+
email?: string | undefined;
|
|
13
|
+
name?: string | undefined;
|
|
14
|
+
userId?: string | undefined;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const PropertyMessagingReactionMember$inboundSchema: z.ZodType<
|
|
19
|
+
PropertyMessagingReactionMember,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
unknown
|
|
22
|
+
> = z.object({
|
|
23
|
+
email: z.string().optional(),
|
|
24
|
+
name: z.string().optional(),
|
|
25
|
+
user_id: z.string().optional(),
|
|
26
|
+
}).transform((v) => {
|
|
27
|
+
return remap$(v, {
|
|
28
|
+
"user_id": "userId",
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
/** @internal */
|
|
33
|
+
export type PropertyMessagingReactionMember$Outbound = {
|
|
34
|
+
email?: string | undefined;
|
|
35
|
+
name?: string | undefined;
|
|
36
|
+
user_id?: string | undefined;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const PropertyMessagingReactionMember$outboundSchema: z.ZodType<
|
|
41
|
+
PropertyMessagingReactionMember$Outbound,
|
|
42
|
+
z.ZodTypeDef,
|
|
43
|
+
PropertyMessagingReactionMember
|
|
44
|
+
> = z.object({
|
|
45
|
+
email: z.string().optional(),
|
|
46
|
+
name: z.string().optional(),
|
|
47
|
+
userId: z.string().optional(),
|
|
48
|
+
}).transform((v) => {
|
|
49
|
+
return remap$(v, {
|
|
50
|
+
userId: "user_id",
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* @internal
|
|
56
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
57
|
+
*/
|
|
58
|
+
export namespace PropertyMessagingReactionMember$ {
|
|
59
|
+
/** @deprecated use `PropertyMessagingReactionMember$inboundSchema` instead. */
|
|
60
|
+
export const inboundSchema = PropertyMessagingReactionMember$inboundSchema;
|
|
61
|
+
/** @deprecated use `PropertyMessagingReactionMember$outboundSchema` instead. */
|
|
62
|
+
export const outboundSchema = PropertyMessagingReactionMember$outboundSchema;
|
|
63
|
+
/** @deprecated use `PropertyMessagingReactionMember$Outbound` instead. */
|
|
64
|
+
export type Outbound = PropertyMessagingReactionMember$Outbound;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function propertyMessagingReactionMemberToJSON(
|
|
68
|
+
propertyMessagingReactionMember: PropertyMessagingReactionMember,
|
|
69
|
+
): string {
|
|
70
|
+
return JSON.stringify(
|
|
71
|
+
PropertyMessagingReactionMember$outboundSchema.parse(
|
|
72
|
+
propertyMessagingReactionMember,
|
|
73
|
+
),
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function propertyMessagingReactionMemberFromJSON(
|
|
78
|
+
jsonString: string,
|
|
79
|
+
): SafeParseResult<PropertyMessagingReactionMember, SDKValidationError> {
|
|
80
|
+
return safeParse(
|
|
81
|
+
jsonString,
|
|
82
|
+
(x) => PropertyMessagingReactionMember$inboundSchema.parse(JSON.parse(x)),
|
|
83
|
+
`Failed to parse 'PropertyMessagingReactionMember' from JSON`,
|
|
84
|
+
);
|
|
85
|
+
}
|