@unified-api/typescript-sdk 2.83.15 → 2.83.16

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 (107) hide show
  1. package/dist/commonjs/funcs/accountingListAccountingTransactions.js +2 -0
  2. package/dist/commonjs/funcs/accountingListAccountingTransactions.js.map +1 -1
  3. package/dist/commonjs/funcs/paymentListPaymentPayments.js +2 -0
  4. package/dist/commonjs/funcs/paymentListPaymentPayments.js.map +1 -1
  5. package/dist/commonjs/lib/config.d.ts +3 -3
  6. package/dist/commonjs/lib/config.js +3 -3
  7. package/dist/commonjs/sdk/models/operations/createmartechlist.d.ts +6 -0
  8. package/dist/commonjs/sdk/models/operations/createmartechlist.d.ts.map +1 -1
  9. package/dist/commonjs/sdk/models/operations/createmartechlist.js +6 -0
  10. package/dist/commonjs/sdk/models/operations/createmartechlist.js.map +1 -1
  11. package/dist/commonjs/sdk/models/operations/getmartechlist.d.ts +6 -0
  12. package/dist/commonjs/sdk/models/operations/getmartechlist.d.ts.map +1 -1
  13. package/dist/commonjs/sdk/models/operations/getmartechlist.js +6 -0
  14. package/dist/commonjs/sdk/models/operations/getmartechlist.js.map +1 -1
  15. package/dist/commonjs/sdk/models/operations/listaccountingtransactions.d.ts +10 -0
  16. package/dist/commonjs/sdk/models/operations/listaccountingtransactions.d.ts.map +1 -1
  17. package/dist/commonjs/sdk/models/operations/listaccountingtransactions.js +4 -0
  18. package/dist/commonjs/sdk/models/operations/listaccountingtransactions.js.map +1 -1
  19. package/dist/commonjs/sdk/models/operations/listmartechlists.d.ts +6 -0
  20. package/dist/commonjs/sdk/models/operations/listmartechlists.d.ts.map +1 -1
  21. package/dist/commonjs/sdk/models/operations/listmartechlists.js +6 -0
  22. package/dist/commonjs/sdk/models/operations/listmartechlists.js.map +1 -1
  23. package/dist/commonjs/sdk/models/operations/listpaymentpayments.d.ts +10 -0
  24. package/dist/commonjs/sdk/models/operations/listpaymentpayments.d.ts.map +1 -1
  25. package/dist/commonjs/sdk/models/operations/listpaymentpayments.js +4 -0
  26. package/dist/commonjs/sdk/models/operations/listpaymentpayments.js.map +1 -1
  27. package/dist/commonjs/sdk/models/operations/patchmartechlist.d.ts +6 -0
  28. package/dist/commonjs/sdk/models/operations/patchmartechlist.d.ts.map +1 -1
  29. package/dist/commonjs/sdk/models/operations/patchmartechlist.js +6 -0
  30. package/dist/commonjs/sdk/models/operations/patchmartechlist.js.map +1 -1
  31. package/dist/commonjs/sdk/models/operations/updatemartechlist.d.ts +6 -0
  32. package/dist/commonjs/sdk/models/operations/updatemartechlist.d.ts.map +1 -1
  33. package/dist/commonjs/sdk/models/operations/updatemartechlist.js +6 -0
  34. package/dist/commonjs/sdk/models/operations/updatemartechlist.js.map +1 -1
  35. package/dist/commonjs/sdk/models/shared/index.d.ts +1 -0
  36. package/dist/commonjs/sdk/models/shared/index.d.ts.map +1 -1
  37. package/dist/commonjs/sdk/models/shared/index.js +1 -0
  38. package/dist/commonjs/sdk/models/shared/index.js.map +1 -1
  39. package/dist/commonjs/sdk/models/shared/marketinglist.d.ts +13 -0
  40. package/dist/commonjs/sdk/models/shared/marketinglist.d.ts.map +1 -1
  41. package/dist/commonjs/sdk/models/shared/marketinglist.js +17 -0
  42. package/dist/commonjs/sdk/models/shared/marketinglist.js.map +1 -1
  43. package/dist/commonjs/sdk/models/shared/propertymarketinglistaddress.d.ts +39 -0
  44. package/dist/commonjs/sdk/models/shared/propertymarketinglistaddress.d.ts.map +1 -0
  45. package/dist/commonjs/sdk/models/shared/propertymarketinglistaddress.js +91 -0
  46. package/dist/commonjs/sdk/models/shared/propertymarketinglistaddress.js.map +1 -0
  47. package/dist/esm/funcs/accountingListAccountingTransactions.js +2 -0
  48. package/dist/esm/funcs/accountingListAccountingTransactions.js.map +1 -1
  49. package/dist/esm/funcs/paymentListPaymentPayments.js +2 -0
  50. package/dist/esm/funcs/paymentListPaymentPayments.js.map +1 -1
  51. package/dist/esm/lib/config.d.ts +3 -3
  52. package/dist/esm/lib/config.js +3 -3
  53. package/dist/esm/sdk/models/operations/createmartechlist.d.ts +6 -0
  54. package/dist/esm/sdk/models/operations/createmartechlist.d.ts.map +1 -1
  55. package/dist/esm/sdk/models/operations/createmartechlist.js +6 -0
  56. package/dist/esm/sdk/models/operations/createmartechlist.js.map +1 -1
  57. package/dist/esm/sdk/models/operations/getmartechlist.d.ts +6 -0
  58. package/dist/esm/sdk/models/operations/getmartechlist.d.ts.map +1 -1
  59. package/dist/esm/sdk/models/operations/getmartechlist.js +6 -0
  60. package/dist/esm/sdk/models/operations/getmartechlist.js.map +1 -1
  61. package/dist/esm/sdk/models/operations/listaccountingtransactions.d.ts +10 -0
  62. package/dist/esm/sdk/models/operations/listaccountingtransactions.d.ts.map +1 -1
  63. package/dist/esm/sdk/models/operations/listaccountingtransactions.js +4 -0
  64. package/dist/esm/sdk/models/operations/listaccountingtransactions.js.map +1 -1
  65. package/dist/esm/sdk/models/operations/listmartechlists.d.ts +6 -0
  66. package/dist/esm/sdk/models/operations/listmartechlists.d.ts.map +1 -1
  67. package/dist/esm/sdk/models/operations/listmartechlists.js +6 -0
  68. package/dist/esm/sdk/models/operations/listmartechlists.js.map +1 -1
  69. package/dist/esm/sdk/models/operations/listpaymentpayments.d.ts +10 -0
  70. package/dist/esm/sdk/models/operations/listpaymentpayments.d.ts.map +1 -1
  71. package/dist/esm/sdk/models/operations/listpaymentpayments.js +4 -0
  72. package/dist/esm/sdk/models/operations/listpaymentpayments.js.map +1 -1
  73. package/dist/esm/sdk/models/operations/patchmartechlist.d.ts +6 -0
  74. package/dist/esm/sdk/models/operations/patchmartechlist.d.ts.map +1 -1
  75. package/dist/esm/sdk/models/operations/patchmartechlist.js +6 -0
  76. package/dist/esm/sdk/models/operations/patchmartechlist.js.map +1 -1
  77. package/dist/esm/sdk/models/operations/updatemartechlist.d.ts +6 -0
  78. package/dist/esm/sdk/models/operations/updatemartechlist.d.ts.map +1 -1
  79. package/dist/esm/sdk/models/operations/updatemartechlist.js +6 -0
  80. package/dist/esm/sdk/models/operations/updatemartechlist.js.map +1 -1
  81. package/dist/esm/sdk/models/shared/index.d.ts +1 -0
  82. package/dist/esm/sdk/models/shared/index.d.ts.map +1 -1
  83. package/dist/esm/sdk/models/shared/index.js +1 -0
  84. package/dist/esm/sdk/models/shared/index.js.map +1 -1
  85. package/dist/esm/sdk/models/shared/marketinglist.d.ts +13 -0
  86. package/dist/esm/sdk/models/shared/marketinglist.d.ts.map +1 -1
  87. package/dist/esm/sdk/models/shared/marketinglist.js +17 -0
  88. package/dist/esm/sdk/models/shared/marketinglist.js.map +1 -1
  89. package/dist/esm/sdk/models/shared/propertymarketinglistaddress.d.ts +39 -0
  90. package/dist/esm/sdk/models/shared/propertymarketinglistaddress.d.ts.map +1 -0
  91. package/dist/esm/sdk/models/shared/propertymarketinglistaddress.js +53 -0
  92. package/dist/esm/sdk/models/shared/propertymarketinglistaddress.js.map +1 -0
  93. package/jsr.json +1 -1
  94. package/package.json +1 -1
  95. package/src/funcs/accountingListAccountingTransactions.ts +2 -0
  96. package/src/funcs/paymentListPaymentPayments.ts +2 -0
  97. package/src/lib/config.ts +3 -3
  98. package/src/sdk/models/operations/createmartechlist.ts +6 -0
  99. package/src/sdk/models/operations/getmartechlist.ts +6 -0
  100. package/src/sdk/models/operations/listaccountingtransactions.ts +14 -0
  101. package/src/sdk/models/operations/listmartechlists.ts +6 -0
  102. package/src/sdk/models/operations/listpaymentpayments.ts +14 -0
  103. package/src/sdk/models/operations/patchmartechlist.ts +6 -0
  104. package/src/sdk/models/operations/updatemartechlist.ts +6 -0
  105. package/src/sdk/models/shared/index.ts +1 -0
  106. package/src/sdk/models/shared/marketinglist.ts +34 -0
  107. package/src/sdk/models/shared/propertymarketinglistaddress.ts +108 -0
@@ -16,6 +16,12 @@ export const GetMartechListQueryParamFields = {
16
16
  EndAt: "end_at",
17
17
  UserId: "user_id",
18
18
  IsActive: "is_active",
19
+ State: "state",
20
+ FromName: "from_name",
21
+ FromEmail: "from_email",
22
+ Subject: "subject",
23
+ Language: "language",
24
+ Address: "address",
19
25
  Raw: "raw",
20
26
  } as const;
21
27
  export type GetMartechListQueryParamFields = ClosedEnum<
@@ -39,6 +39,10 @@ export type ListAccountingTransactionsRequest = {
39
39
  * The contact ID to filter by (reference to AccountingContact)
40
40
  */
41
41
  contactId?: string | undefined;
42
+ /**
43
+ * The end date to filter by (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
44
+ */
45
+ endLt?: string | undefined;
42
46
  /**
43
47
  * Fields to return
44
48
  */
@@ -55,6 +59,10 @@ export type ListAccountingTransactionsRequest = {
55
59
  */
56
60
  raw?: string | undefined;
57
61
  sort?: string | undefined;
62
+ /**
63
+ * The start date to filter by (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
64
+ */
65
+ startGte?: string | undefined;
58
66
  /**
59
67
  * Return only results whose updated date is equal or greater to this value (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
60
68
  */
@@ -70,6 +78,7 @@ export const ListAccountingTransactionsQueryParamFields$outboundSchema:
70
78
  export type ListAccountingTransactionsRequest$Outbound = {
71
79
  connection_id: string;
72
80
  contact_id?: string | undefined;
81
+ end_lt?: string | undefined;
73
82
  fields?: Array<string> | undefined;
74
83
  limit?: number | undefined;
75
84
  offset?: number | undefined;
@@ -77,6 +86,7 @@ export type ListAccountingTransactionsRequest$Outbound = {
77
86
  query?: string | undefined;
78
87
  raw?: string | undefined;
79
88
  sort?: string | undefined;
89
+ start_gte?: string | undefined;
80
90
  updated_gte?: string | undefined;
81
91
  };
82
92
 
@@ -88,6 +98,7 @@ export const ListAccountingTransactionsRequest$outboundSchema: z.ZodType<
88
98
  > = z.object({
89
99
  connectionId: z.string(),
90
100
  contactId: z.string().optional(),
101
+ endLt: z.string().optional(),
91
102
  fields: z.array(ListAccountingTransactionsQueryParamFields$outboundSchema)
92
103
  .optional(),
93
104
  limit: z.number().optional(),
@@ -96,11 +107,14 @@ export const ListAccountingTransactionsRequest$outboundSchema: z.ZodType<
96
107
  query: z.string().optional(),
97
108
  raw: z.string().optional(),
98
109
  sort: z.string().optional(),
110
+ startGte: z.string().optional(),
99
111
  updatedGte: z.string().optional(),
100
112
  }).transform((v) => {
101
113
  return remap$(v, {
102
114
  connectionId: "connection_id",
103
115
  contactId: "contact_id",
116
+ endLt: "end_lt",
117
+ startGte: "start_gte",
104
118
  updatedGte: "updated_gte",
105
119
  });
106
120
  });
@@ -16,6 +16,12 @@ export const ListMartechListsQueryParamFields = {
16
16
  EndAt: "end_at",
17
17
  UserId: "user_id",
18
18
  IsActive: "is_active",
19
+ State: "state",
20
+ FromName: "from_name",
21
+ FromEmail: "from_email",
22
+ Subject: "subject",
23
+ Language: "language",
24
+ Address: "address",
19
25
  Raw: "raw",
20
26
  } as const;
21
27
  export type ListMartechListsQueryParamFields = ClosedEnum<
@@ -39,6 +39,10 @@ export type ListPaymentPaymentsRequest = {
39
39
  * The contact ID to filter by (reference to AccountingContact)
40
40
  */
41
41
  contactId?: string | undefined;
42
+ /**
43
+ * The end date to filter by (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
44
+ */
45
+ endLt?: string | undefined;
42
46
  /**
43
47
  * Fields to return
44
48
  */
@@ -63,6 +67,10 @@ export type ListPaymentPaymentsRequest = {
63
67
  */
64
68
  raw?: string | undefined;
65
69
  sort?: string | undefined;
70
+ /**
71
+ * The start date to filter by (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
72
+ */
73
+ startGte?: string | undefined;
66
74
  /**
67
75
  * The type to filter by
68
76
  */
@@ -84,6 +92,7 @@ export type ListPaymentPaymentsRequest$Outbound = {
84
92
  bill_id?: string | undefined;
85
93
  connection_id: string;
86
94
  contact_id?: string | undefined;
95
+ end_lt?: string | undefined;
87
96
  fields?: Array<string> | undefined;
88
97
  invoice_id?: string | undefined;
89
98
  limit?: number | undefined;
@@ -93,6 +102,7 @@ export type ListPaymentPaymentsRequest$Outbound = {
93
102
  query?: string | undefined;
94
103
  raw?: string | undefined;
95
104
  sort?: string | undefined;
105
+ start_gte?: string | undefined;
96
106
  type?: string | undefined;
97
107
  updated_gte?: string | undefined;
98
108
  };
@@ -106,6 +116,7 @@ export const ListPaymentPaymentsRequest$outboundSchema: z.ZodType<
106
116
  billId: z.string().optional(),
107
117
  connectionId: z.string(),
108
118
  contactId: z.string().optional(),
119
+ endLt: z.string().optional(),
109
120
  fields: z.array(ListPaymentPaymentsQueryParamFields$outboundSchema)
110
121
  .optional(),
111
122
  invoiceId: z.string().optional(),
@@ -116,6 +127,7 @@ export const ListPaymentPaymentsRequest$outboundSchema: z.ZodType<
116
127
  query: z.string().optional(),
117
128
  raw: z.string().optional(),
118
129
  sort: z.string().optional(),
130
+ startGte: z.string().optional(),
119
131
  type: z.string().optional(),
120
132
  updatedGte: z.string().optional(),
121
133
  }).transform((v) => {
@@ -123,8 +135,10 @@ export const ListPaymentPaymentsRequest$outboundSchema: z.ZodType<
123
135
  billId: "bill_id",
124
136
  connectionId: "connection_id",
125
137
  contactId: "contact_id",
138
+ endLt: "end_lt",
126
139
  invoiceId: "invoice_id",
127
140
  linkId: "link_id",
141
+ startGte: "start_gte",
128
142
  updatedGte: "updated_gte",
129
143
  });
130
144
  });
@@ -17,6 +17,12 @@ export const PatchMartechListQueryParamFields = {
17
17
  EndAt: "end_at",
18
18
  UserId: "user_id",
19
19
  IsActive: "is_active",
20
+ State: "state",
21
+ FromName: "from_name",
22
+ FromEmail: "from_email",
23
+ Subject: "subject",
24
+ Language: "language",
25
+ Address: "address",
20
26
  Raw: "raw",
21
27
  } as const;
22
28
  export type PatchMartechListQueryParamFields = ClosedEnum<
@@ -17,6 +17,12 @@ export const UpdateMartechListQueryParamFields = {
17
17
  EndAt: "end_at",
18
18
  UserId: "user_id",
19
19
  IsActive: "is_active",
20
+ State: "state",
21
+ FromName: "from_name",
22
+ FromEmail: "from_email",
23
+ Subject: "subject",
24
+ Language: "language",
25
+ Address: "address",
20
26
  Raw: "raw",
21
27
  } as const;
22
28
  export type UpdateMartechListQueryParamFields = ClosedEnum<
@@ -266,6 +266,7 @@ export * from "./propertyintegrationsupportwebhookeventscreated.js";
266
266
  export * from "./propertyintegrationsupportwebhookeventsdeleted.js";
267
267
  export * from "./propertyintegrationsupportwebhookeventsupdated.js";
268
268
  export * from "./propertylmsstudentaddress.js";
269
+ export * from "./propertymarketinglistaddress.js";
269
270
  export * from "./propertymessagingeventbutton.js";
270
271
  export * from "./propertymessagingeventchannel.js";
271
272
  export * from "./propertymessagingeventmessage.js";
@@ -7,19 +7,31 @@ import { remap as remap$ } from "../../../lib/primitives.js";
7
7
  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
+ import {
11
+ PropertyMarketingListAddress,
12
+ PropertyMarketingListAddress$inboundSchema,
13
+ PropertyMarketingListAddress$Outbound,
14
+ PropertyMarketingListAddress$outboundSchema,
15
+ } from "./propertymarketinglistaddress.js";
10
16
 
11
17
  /**
12
18
  * Mailing List
13
19
  */
14
20
  export type MarketingList = {
21
+ address?: PropertyMarketingListAddress | undefined;
15
22
  createdAt?: Date | undefined;
16
23
  description?: string | undefined;
17
24
  endAt?: Date | undefined;
25
+ fromEmail?: string | undefined;
26
+ fromName?: string | undefined;
18
27
  id?: string | undefined;
19
28
  isActive?: boolean | undefined;
29
+ language?: string | undefined;
20
30
  name?: string | undefined;
21
31
  raw?: { [k: string]: any } | undefined;
22
32
  startAt?: Date | undefined;
33
+ state?: string | undefined;
34
+ subject?: string | undefined;
23
35
  updatedAt?: Date | undefined;
24
36
  userId?: string | undefined;
25
37
  };
@@ -30,17 +42,23 @@ export const MarketingList$inboundSchema: z.ZodType<
30
42
  z.ZodTypeDef,
31
43
  unknown
32
44
  > = z.object({
45
+ address: PropertyMarketingListAddress$inboundSchema.optional(),
33
46
  created_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
34
47
  .optional(),
35
48
  description: z.string().optional(),
36
49
  end_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
37
50
  .optional(),
51
+ from_email: z.string().optional(),
52
+ from_name: z.string().optional(),
38
53
  id: z.string().optional(),
39
54
  is_active: z.boolean().optional(),
55
+ language: z.string().optional(),
40
56
  name: z.string().optional(),
41
57
  raw: z.record(z.any()).optional(),
42
58
  start_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
43
59
  .optional(),
60
+ state: z.string().optional(),
61
+ subject: z.string().optional(),
44
62
  updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
45
63
  .optional(),
46
64
  user_id: z.string().optional(),
@@ -48,6 +66,8 @@ export const MarketingList$inboundSchema: z.ZodType<
48
66
  return remap$(v, {
49
67
  "created_at": "createdAt",
50
68
  "end_at": "endAt",
69
+ "from_email": "fromEmail",
70
+ "from_name": "fromName",
51
71
  "is_active": "isActive",
52
72
  "start_at": "startAt",
53
73
  "updated_at": "updatedAt",
@@ -56,14 +76,20 @@ export const MarketingList$inboundSchema: z.ZodType<
56
76
  });
57
77
  /** @internal */
58
78
  export type MarketingList$Outbound = {
79
+ address?: PropertyMarketingListAddress$Outbound | undefined;
59
80
  created_at?: string | undefined;
60
81
  description?: string | undefined;
61
82
  end_at?: string | undefined;
83
+ from_email?: string | undefined;
84
+ from_name?: string | undefined;
62
85
  id?: string | undefined;
63
86
  is_active?: boolean | undefined;
87
+ language?: string | undefined;
64
88
  name?: string | undefined;
65
89
  raw?: { [k: string]: any } | undefined;
66
90
  start_at?: string | undefined;
91
+ state?: string | undefined;
92
+ subject?: string | undefined;
67
93
  updated_at?: string | undefined;
68
94
  user_id?: string | undefined;
69
95
  };
@@ -74,20 +100,28 @@ export const MarketingList$outboundSchema: z.ZodType<
74
100
  z.ZodTypeDef,
75
101
  MarketingList
76
102
  > = z.object({
103
+ address: PropertyMarketingListAddress$outboundSchema.optional(),
77
104
  createdAt: z.date().transform(v => v.toISOString()).optional(),
78
105
  description: z.string().optional(),
79
106
  endAt: z.date().transform(v => v.toISOString()).optional(),
107
+ fromEmail: z.string().optional(),
108
+ fromName: z.string().optional(),
80
109
  id: z.string().optional(),
81
110
  isActive: z.boolean().optional(),
111
+ language: z.string().optional(),
82
112
  name: z.string().optional(),
83
113
  raw: z.record(z.any()).optional(),
84
114
  startAt: z.date().transform(v => v.toISOString()).optional(),
115
+ state: z.string().optional(),
116
+ subject: z.string().optional(),
85
117
  updatedAt: z.date().transform(v => v.toISOString()).optional(),
86
118
  userId: z.string().optional(),
87
119
  }).transform((v) => {
88
120
  return remap$(v, {
89
121
  createdAt: "created_at",
90
122
  endAt: "end_at",
123
+ fromEmail: "from_email",
124
+ fromName: "from_name",
91
125
  isActive: "is_active",
92
126
  startAt: "start_at",
93
127
  updatedAt: "updated_at",
@@ -0,0 +1,108 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
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 PropertyMarketingListAddress = {
12
+ address1?: string | undefined;
13
+ address2?: string | undefined;
14
+ city?: string | undefined;
15
+ company?: string | undefined;
16
+ country?: string | undefined;
17
+ fromEmail?: string | undefined;
18
+ fromName?: string | undefined;
19
+ language?: string | undefined;
20
+ phone?: string | undefined;
21
+ state?: string | undefined;
22
+ subject?: string | undefined;
23
+ zip?: string | undefined;
24
+ };
25
+
26
+ /** @internal */
27
+ export const PropertyMarketingListAddress$inboundSchema: z.ZodType<
28
+ PropertyMarketingListAddress,
29
+ z.ZodTypeDef,
30
+ unknown
31
+ > = z.object({
32
+ address1: z.string().optional(),
33
+ address2: z.string().optional(),
34
+ city: z.string().optional(),
35
+ company: z.string().optional(),
36
+ country: z.string().optional(),
37
+ from_email: z.string().optional(),
38
+ from_name: z.string().optional(),
39
+ language: z.string().optional(),
40
+ phone: z.string().optional(),
41
+ state: z.string().optional(),
42
+ subject: z.string().optional(),
43
+ zip: z.string().optional(),
44
+ }).transform((v) => {
45
+ return remap$(v, {
46
+ "from_email": "fromEmail",
47
+ "from_name": "fromName",
48
+ });
49
+ });
50
+ /** @internal */
51
+ export type PropertyMarketingListAddress$Outbound = {
52
+ address1?: string | undefined;
53
+ address2?: string | undefined;
54
+ city?: string | undefined;
55
+ company?: string | undefined;
56
+ country?: string | undefined;
57
+ from_email?: string | undefined;
58
+ from_name?: string | undefined;
59
+ language?: string | undefined;
60
+ phone?: string | undefined;
61
+ state?: string | undefined;
62
+ subject?: string | undefined;
63
+ zip?: string | undefined;
64
+ };
65
+
66
+ /** @internal */
67
+ export const PropertyMarketingListAddress$outboundSchema: z.ZodType<
68
+ PropertyMarketingListAddress$Outbound,
69
+ z.ZodTypeDef,
70
+ PropertyMarketingListAddress
71
+ > = z.object({
72
+ address1: z.string().optional(),
73
+ address2: z.string().optional(),
74
+ city: z.string().optional(),
75
+ company: z.string().optional(),
76
+ country: z.string().optional(),
77
+ fromEmail: z.string().optional(),
78
+ fromName: z.string().optional(),
79
+ language: z.string().optional(),
80
+ phone: z.string().optional(),
81
+ state: z.string().optional(),
82
+ subject: z.string().optional(),
83
+ zip: z.string().optional(),
84
+ }).transform((v) => {
85
+ return remap$(v, {
86
+ fromEmail: "from_email",
87
+ fromName: "from_name",
88
+ });
89
+ });
90
+
91
+ export function propertyMarketingListAddressToJSON(
92
+ propertyMarketingListAddress: PropertyMarketingListAddress,
93
+ ): string {
94
+ return JSON.stringify(
95
+ PropertyMarketingListAddress$outboundSchema.parse(
96
+ propertyMarketingListAddress,
97
+ ),
98
+ );
99
+ }
100
+ export function propertyMarketingListAddressFromJSON(
101
+ jsonString: string,
102
+ ): SafeParseResult<PropertyMarketingListAddress, SDKValidationError> {
103
+ return safeParse(
104
+ jsonString,
105
+ (x) => PropertyMarketingListAddress$inboundSchema.parse(JSON.parse(x)),
106
+ `Failed to parse 'PropertyMarketingListAddress' from JSON`,
107
+ );
108
+ }