@apideck/unify 0.13.2 → 0.13.4

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 (137) hide show
  1. package/README.md +0 -13
  2. package/docs/sdks/pipelines/README.md +0 -542
  3. package/lib/config.d.ts +3 -3
  4. package/lib/config.js +3 -3
  5. package/models/components/bill.d.ts +5 -0
  6. package/models/components/bill.d.ts.map +1 -1
  7. package/models/components/bill.js +9 -0
  8. package/models/components/bill.js.map +1 -1
  9. package/models/components/index.d.ts +0 -8
  10. package/models/components/index.d.ts.map +1 -1
  11. package/models/components/index.js +0 -8
  12. package/models/components/index.js.map +1 -1
  13. package/models/components/ledgeraccount.d.ts +5 -0
  14. package/models/components/ledgeraccount.d.ts.map +1 -1
  15. package/models/components/ledgeraccount.js +9 -0
  16. package/models/components/ledgeraccount.js.map +1 -1
  17. package/models/components/supplier.d.ts +5 -0
  18. package/models/components/supplier.d.ts.map +1 -1
  19. package/models/components/supplier.js +9 -0
  20. package/models/components/supplier.js.map +1 -1
  21. package/models/operations/index.d.ts +0 -5
  22. package/models/operations/index.d.ts.map +1 -1
  23. package/models/operations/index.js +0 -5
  24. package/models/operations/index.js.map +1 -1
  25. package/package.json +1 -1
  26. package/sdk/accounting.d.ts +0 -3
  27. package/sdk/accounting.d.ts.map +1 -1
  28. package/sdk/accounting.js +0 -4
  29. package/sdk/accounting.js.map +1 -1
  30. package/sdk/pipelines.d.ts +0 -28
  31. package/sdk/pipelines.d.ts.map +1 -1
  32. package/sdk/pipelines.js +0 -41
  33. package/sdk/pipelines.js.map +1 -1
  34. package/src/lib/config.ts +3 -3
  35. package/src/models/components/bill.ts +18 -0
  36. package/src/models/components/index.ts +0 -8
  37. package/src/models/components/ledgeraccount.ts +18 -0
  38. package/src/models/components/supplier.ts +18 -0
  39. package/src/models/operations/index.ts +0 -5
  40. package/src/sdk/accounting.ts +0 -6
  41. package/src/sdk/pipelines.ts +0 -73
  42. package/docs/sdks/agedcreditors/README.md +0 -115
  43. package/funcs/accountingAgedCreditorsGet.d.ts +0 -16
  44. package/funcs/accountingAgedCreditorsGet.d.ts.map +0 -1
  45. package/funcs/accountingAgedCreditorsGet.js +0 -122
  46. package/funcs/accountingAgedCreditorsGet.js.map +0 -1
  47. package/funcs/crmPipelinesCreate.d.ts +0 -16
  48. package/funcs/crmPipelinesCreate.d.ts.map +0 -1
  49. package/funcs/crmPipelinesCreate.js +0 -121
  50. package/funcs/crmPipelinesCreate.js.map +0 -1
  51. package/funcs/crmPipelinesDelete.d.ts +0 -16
  52. package/funcs/crmPipelinesDelete.d.ts.map +0 -1
  53. package/funcs/crmPipelinesDelete.js +0 -126
  54. package/funcs/crmPipelinesDelete.js.map +0 -1
  55. package/funcs/crmPipelinesGet.d.ts +0 -16
  56. package/funcs/crmPipelinesGet.d.ts.map +0 -1
  57. package/funcs/crmPipelinesGet.js +0 -127
  58. package/funcs/crmPipelinesGet.js.map +0 -1
  59. package/funcs/crmPipelinesUpdate.d.ts +0 -16
  60. package/funcs/crmPipelinesUpdate.d.ts.map +0 -1
  61. package/funcs/crmPipelinesUpdate.js +0 -127
  62. package/funcs/crmPipelinesUpdate.js.map +0 -1
  63. package/models/components/agedcreditors.d.ts +0 -51
  64. package/models/components/agedcreditors.d.ts.map +0 -1
  65. package/models/components/agedcreditors.js +0 -88
  66. package/models/components/agedcreditors.js.map +0 -1
  67. package/models/components/createpipelineresponse.d.ts +0 -58
  68. package/models/components/createpipelineresponse.d.ts.map +0 -1
  69. package/models/components/createpipelineresponse.js +0 -79
  70. package/models/components/createpipelineresponse.js.map +0 -1
  71. package/models/components/deletepipelineresponse.d.ts +0 -58
  72. package/models/components/deletepipelineresponse.d.ts.map +0 -1
  73. package/models/components/deletepipelineresponse.js +0 -79
  74. package/models/components/deletepipelineresponse.js.map +0 -1
  75. package/models/components/getagedcreditorsresponse.d.ts +0 -58
  76. package/models/components/getagedcreditorsresponse.d.ts.map +0 -1
  77. package/models/components/getagedcreditorsresponse.js +0 -79
  78. package/models/components/getagedcreditorsresponse.js.map +0 -1
  79. package/models/components/getpipelineresponse.d.ts +0 -58
  80. package/models/components/getpipelineresponse.d.ts.map +0 -1
  81. package/models/components/getpipelineresponse.js +0 -79
  82. package/models/components/getpipelineresponse.js.map +0 -1
  83. package/models/components/outstandingbalancebysupplier.d.ts +0 -40
  84. package/models/components/outstandingbalancebysupplier.d.ts.map +0 -1
  85. package/models/components/outstandingbalancebysupplier.js +0 -77
  86. package/models/components/outstandingbalancebysupplier.js.map +0 -1
  87. package/models/components/pipelineinput.d.ts +0 -117
  88. package/models/components/pipelineinput.d.ts.map +0 -1
  89. package/models/components/pipelineinput.js +0 -133
  90. package/models/components/pipelineinput.js.map +0 -1
  91. package/models/components/updatepipelineresponse.d.ts +0 -58
  92. package/models/components/updatepipelineresponse.d.ts.map +0 -1
  93. package/models/components/updatepipelineresponse.js +0 -79
  94. package/models/components/updatepipelineresponse.js.map +0 -1
  95. package/models/operations/accountingagedcreditorsone.d.ts +0 -125
  96. package/models/operations/accountingagedcreditorsone.d.ts.map +0 -1
  97. package/models/operations/accountingagedcreditorsone.js +0 -153
  98. package/models/operations/accountingagedcreditorsone.js.map +0 -1
  99. package/models/operations/crmpipelinesadd.d.ts +0 -108
  100. package/models/operations/crmpipelinesadd.d.ts.map +0 -1
  101. package/models/operations/crmpipelinesadd.js +0 -149
  102. package/models/operations/crmpipelinesadd.js.map +0 -1
  103. package/models/operations/crmpipelinesdelete.d.ts +0 -111
  104. package/models/operations/crmpipelinesdelete.d.ts.map +0 -1
  105. package/models/operations/crmpipelinesdelete.js +0 -141
  106. package/models/operations/crmpipelinesdelete.js.map +0 -1
  107. package/models/operations/crmpipelinesone.d.ts +0 -116
  108. package/models/operations/crmpipelinesone.d.ts.map +0 -1
  109. package/models/operations/crmpipelinesone.js +0 -141
  110. package/models/operations/crmpipelinesone.js.map +0 -1
  111. package/models/operations/crmpipelinesupdate.d.ts +0 -113
  112. package/models/operations/crmpipelinesupdate.d.ts.map +0 -1
  113. package/models/operations/crmpipelinesupdate.js +0 -151
  114. package/models/operations/crmpipelinesupdate.js.map +0 -1
  115. package/sdk/agedcreditors.d.ts +0 -12
  116. package/sdk/agedcreditors.d.ts.map +0 -1
  117. package/sdk/agedcreditors.js +0 -22
  118. package/sdk/agedcreditors.js.map +0 -1
  119. package/src/funcs/accountingAgedCreditorsGet.ts +0 -193
  120. package/src/funcs/crmPipelinesCreate.ts +0 -179
  121. package/src/funcs/crmPipelinesDelete.ts +0 -185
  122. package/src/funcs/crmPipelinesGet.ts +0 -186
  123. package/src/funcs/crmPipelinesUpdate.ts +0 -186
  124. package/src/models/components/agedcreditors.ts +0 -120
  125. package/src/models/components/createpipelineresponse.ts +0 -119
  126. package/src/models/components/deletepipelineresponse.ts +0 -119
  127. package/src/models/components/getagedcreditorsresponse.ts +0 -119
  128. package/src/models/components/getpipelineresponse.ts +0 -119
  129. package/src/models/components/outstandingbalancebysupplier.ts +0 -109
  130. package/src/models/components/pipelineinput.ts +0 -233
  131. package/src/models/components/updatepipelineresponse.ts +0 -119
  132. package/src/models/operations/accountingagedcreditorsone.ts +0 -277
  133. package/src/models/operations/crmpipelinesadd.ts +0 -250
  134. package/src/models/operations/crmpipelinesdelete.ts +0 -245
  135. package/src/models/operations/crmpipelinesone.ts +0 -248
  136. package/src/models/operations/crmpipelinesupdate.ts +0 -257
  137. package/src/sdk/agedcreditors.ts +0 -27
@@ -1,277 +0,0 @@
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 * as components from "../components/index.js";
10
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
-
12
- export type AccountingAgedCreditorsOneGlobals = {
13
- /**
14
- * ID of the consumer which you want to get or push data from
15
- */
16
- consumerId?: string | undefined;
17
- /**
18
- * The ID of your Unify application
19
- */
20
- appId?: string | undefined;
21
- };
22
-
23
- export type AccountingAgedCreditorsOneRequest = {
24
- /**
25
- * Include raw response. Mostly used for debugging purposes
26
- */
27
- raw?: boolean | undefined;
28
- /**
29
- * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API.
30
- */
31
- serviceId?: string | undefined;
32
- /**
33
- * Apply filters
34
- */
35
- filter?: components.AgedReportFilter | undefined;
36
- /**
37
- * Optional unmapped key/values that will be passed through to downstream as query parameters. Ie: ?pass_through[search]=leads becomes ?search=leads
38
- */
39
- passThrough?: { [k: string]: any } | undefined;
40
- /**
41
- * The 'fields' parameter allows API users to specify the fields they want to include in the API response. If this parameter is not present, the API will return all available fields. If this parameter is present, only the fields specified in the comma-separated string will be included in the response. Nested properties can also be requested by using a dot notation. <br /><br />Example: `fields=name,email,addresses.city`<br /><br />In the example above, the response will only include the fields "name", "email" and "addresses.city". If any other fields are available, they will be excluded.
42
- */
43
- fields?: string | null | undefined;
44
- };
45
-
46
- export type AccountingAgedCreditorsOneResponse = {
47
- httpMeta: components.HTTPMetadata;
48
- /**
49
- * Aged Creditors
50
- */
51
- getAgedCreditorsResponse?: components.GetAgedCreditorsResponse | undefined;
52
- /**
53
- * Unexpected error
54
- */
55
- unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined;
56
- };
57
-
58
- /** @internal */
59
- export const AccountingAgedCreditorsOneGlobals$inboundSchema: z.ZodType<
60
- AccountingAgedCreditorsOneGlobals,
61
- z.ZodTypeDef,
62
- unknown
63
- > = z.object({
64
- consumerId: z.string().optional(),
65
- appId: z.string().optional(),
66
- });
67
-
68
- /** @internal */
69
- export type AccountingAgedCreditorsOneGlobals$Outbound = {
70
- consumerId?: string | undefined;
71
- appId?: string | undefined;
72
- };
73
-
74
- /** @internal */
75
- export const AccountingAgedCreditorsOneGlobals$outboundSchema: z.ZodType<
76
- AccountingAgedCreditorsOneGlobals$Outbound,
77
- z.ZodTypeDef,
78
- AccountingAgedCreditorsOneGlobals
79
- > = z.object({
80
- consumerId: z.string().optional(),
81
- appId: z.string().optional(),
82
- });
83
-
84
- /**
85
- * @internal
86
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
87
- */
88
- export namespace AccountingAgedCreditorsOneGlobals$ {
89
- /** @deprecated use `AccountingAgedCreditorsOneGlobals$inboundSchema` instead. */
90
- export const inboundSchema = AccountingAgedCreditorsOneGlobals$inboundSchema;
91
- /** @deprecated use `AccountingAgedCreditorsOneGlobals$outboundSchema` instead. */
92
- export const outboundSchema =
93
- AccountingAgedCreditorsOneGlobals$outboundSchema;
94
- /** @deprecated use `AccountingAgedCreditorsOneGlobals$Outbound` instead. */
95
- export type Outbound = AccountingAgedCreditorsOneGlobals$Outbound;
96
- }
97
-
98
- export function accountingAgedCreditorsOneGlobalsToJSON(
99
- accountingAgedCreditorsOneGlobals: AccountingAgedCreditorsOneGlobals,
100
- ): string {
101
- return JSON.stringify(
102
- AccountingAgedCreditorsOneGlobals$outboundSchema.parse(
103
- accountingAgedCreditorsOneGlobals,
104
- ),
105
- );
106
- }
107
-
108
- export function accountingAgedCreditorsOneGlobalsFromJSON(
109
- jsonString: string,
110
- ): SafeParseResult<AccountingAgedCreditorsOneGlobals, SDKValidationError> {
111
- return safeParse(
112
- jsonString,
113
- (x) => AccountingAgedCreditorsOneGlobals$inboundSchema.parse(JSON.parse(x)),
114
- `Failed to parse 'AccountingAgedCreditorsOneGlobals' from JSON`,
115
- );
116
- }
117
-
118
- /** @internal */
119
- export const AccountingAgedCreditorsOneRequest$inboundSchema: z.ZodType<
120
- AccountingAgedCreditorsOneRequest,
121
- z.ZodTypeDef,
122
- unknown
123
- > = z.object({
124
- raw: z.boolean().default(false),
125
- serviceId: z.string().optional(),
126
- filter: components.AgedReportFilter$inboundSchema.optional(),
127
- pass_through: z.record(z.any()).optional(),
128
- fields: z.nullable(z.string()).optional(),
129
- }).transform((v) => {
130
- return remap$(v, {
131
- "pass_through": "passThrough",
132
- });
133
- });
134
-
135
- /** @internal */
136
- export type AccountingAgedCreditorsOneRequest$Outbound = {
137
- raw: boolean;
138
- serviceId?: string | undefined;
139
- filter?: components.AgedReportFilter$Outbound | undefined;
140
- pass_through?: { [k: string]: any } | undefined;
141
- fields?: string | null | undefined;
142
- };
143
-
144
- /** @internal */
145
- export const AccountingAgedCreditorsOneRequest$outboundSchema: z.ZodType<
146
- AccountingAgedCreditorsOneRequest$Outbound,
147
- z.ZodTypeDef,
148
- AccountingAgedCreditorsOneRequest
149
- > = z.object({
150
- raw: z.boolean().default(false),
151
- serviceId: z.string().optional(),
152
- filter: components.AgedReportFilter$outboundSchema.optional(),
153
- passThrough: z.record(z.any()).optional(),
154
- fields: z.nullable(z.string()).optional(),
155
- }).transform((v) => {
156
- return remap$(v, {
157
- passThrough: "pass_through",
158
- });
159
- });
160
-
161
- /**
162
- * @internal
163
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
164
- */
165
- export namespace AccountingAgedCreditorsOneRequest$ {
166
- /** @deprecated use `AccountingAgedCreditorsOneRequest$inboundSchema` instead. */
167
- export const inboundSchema = AccountingAgedCreditorsOneRequest$inboundSchema;
168
- /** @deprecated use `AccountingAgedCreditorsOneRequest$outboundSchema` instead. */
169
- export const outboundSchema =
170
- AccountingAgedCreditorsOneRequest$outboundSchema;
171
- /** @deprecated use `AccountingAgedCreditorsOneRequest$Outbound` instead. */
172
- export type Outbound = AccountingAgedCreditorsOneRequest$Outbound;
173
- }
174
-
175
- export function accountingAgedCreditorsOneRequestToJSON(
176
- accountingAgedCreditorsOneRequest: AccountingAgedCreditorsOneRequest,
177
- ): string {
178
- return JSON.stringify(
179
- AccountingAgedCreditorsOneRequest$outboundSchema.parse(
180
- accountingAgedCreditorsOneRequest,
181
- ),
182
- );
183
- }
184
-
185
- export function accountingAgedCreditorsOneRequestFromJSON(
186
- jsonString: string,
187
- ): SafeParseResult<AccountingAgedCreditorsOneRequest, SDKValidationError> {
188
- return safeParse(
189
- jsonString,
190
- (x) => AccountingAgedCreditorsOneRequest$inboundSchema.parse(JSON.parse(x)),
191
- `Failed to parse 'AccountingAgedCreditorsOneRequest' from JSON`,
192
- );
193
- }
194
-
195
- /** @internal */
196
- export const AccountingAgedCreditorsOneResponse$inboundSchema: z.ZodType<
197
- AccountingAgedCreditorsOneResponse,
198
- z.ZodTypeDef,
199
- unknown
200
- > = z.object({
201
- HttpMeta: components.HTTPMetadata$inboundSchema,
202
- GetAgedCreditorsResponse: components.GetAgedCreditorsResponse$inboundSchema
203
- .optional(),
204
- UnexpectedErrorResponse: components.UnexpectedErrorResponse$inboundSchema
205
- .optional(),
206
- }).transform((v) => {
207
- return remap$(v, {
208
- "HttpMeta": "httpMeta",
209
- "GetAgedCreditorsResponse": "getAgedCreditorsResponse",
210
- "UnexpectedErrorResponse": "unexpectedErrorResponse",
211
- });
212
- });
213
-
214
- /** @internal */
215
- export type AccountingAgedCreditorsOneResponse$Outbound = {
216
- HttpMeta: components.HTTPMetadata$Outbound;
217
- GetAgedCreditorsResponse?:
218
- | components.GetAgedCreditorsResponse$Outbound
219
- | undefined;
220
- UnexpectedErrorResponse?:
221
- | components.UnexpectedErrorResponse$Outbound
222
- | undefined;
223
- };
224
-
225
- /** @internal */
226
- export const AccountingAgedCreditorsOneResponse$outboundSchema: z.ZodType<
227
- AccountingAgedCreditorsOneResponse$Outbound,
228
- z.ZodTypeDef,
229
- AccountingAgedCreditorsOneResponse
230
- > = z.object({
231
- httpMeta: components.HTTPMetadata$outboundSchema,
232
- getAgedCreditorsResponse: components.GetAgedCreditorsResponse$outboundSchema
233
- .optional(),
234
- unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema
235
- .optional(),
236
- }).transform((v) => {
237
- return remap$(v, {
238
- httpMeta: "HttpMeta",
239
- getAgedCreditorsResponse: "GetAgedCreditorsResponse",
240
- unexpectedErrorResponse: "UnexpectedErrorResponse",
241
- });
242
- });
243
-
244
- /**
245
- * @internal
246
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
247
- */
248
- export namespace AccountingAgedCreditorsOneResponse$ {
249
- /** @deprecated use `AccountingAgedCreditorsOneResponse$inboundSchema` instead. */
250
- export const inboundSchema = AccountingAgedCreditorsOneResponse$inboundSchema;
251
- /** @deprecated use `AccountingAgedCreditorsOneResponse$outboundSchema` instead. */
252
- export const outboundSchema =
253
- AccountingAgedCreditorsOneResponse$outboundSchema;
254
- /** @deprecated use `AccountingAgedCreditorsOneResponse$Outbound` instead. */
255
- export type Outbound = AccountingAgedCreditorsOneResponse$Outbound;
256
- }
257
-
258
- export function accountingAgedCreditorsOneResponseToJSON(
259
- accountingAgedCreditorsOneResponse: AccountingAgedCreditorsOneResponse,
260
- ): string {
261
- return JSON.stringify(
262
- AccountingAgedCreditorsOneResponse$outboundSchema.parse(
263
- accountingAgedCreditorsOneResponse,
264
- ),
265
- );
266
- }
267
-
268
- export function accountingAgedCreditorsOneResponseFromJSON(
269
- jsonString: string,
270
- ): SafeParseResult<AccountingAgedCreditorsOneResponse, SDKValidationError> {
271
- return safeParse(
272
- jsonString,
273
- (x) =>
274
- AccountingAgedCreditorsOneResponse$inboundSchema.parse(JSON.parse(x)),
275
- `Failed to parse 'AccountingAgedCreditorsOneResponse' from JSON`,
276
- );
277
- }
@@ -1,250 +0,0 @@
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 * as components from "../components/index.js";
10
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
-
12
- export type CrmPipelinesAddGlobals = {
13
- /**
14
- * ID of the consumer which you want to get or push data from
15
- */
16
- consumerId?: string | undefined;
17
- /**
18
- * The ID of your Unify application
19
- */
20
- appId?: string | undefined;
21
- };
22
-
23
- export type CrmPipelinesAddRequest = {
24
- /**
25
- * Include raw response. Mostly used for debugging purposes
26
- */
27
- raw?: boolean | undefined;
28
- /**
29
- * Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API.
30
- */
31
- serviceId?: string | undefined;
32
- pipeline: components.PipelineInput;
33
- };
34
-
35
- export type CrmPipelinesAddResponse = {
36
- httpMeta: components.HTTPMetadata;
37
- /**
38
- * Pipeline created
39
- */
40
- createPipelineResponse?: components.CreatePipelineResponse | undefined;
41
- /**
42
- * Unexpected error
43
- */
44
- unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined;
45
- };
46
-
47
- /** @internal */
48
- export const CrmPipelinesAddGlobals$inboundSchema: z.ZodType<
49
- CrmPipelinesAddGlobals,
50
- z.ZodTypeDef,
51
- unknown
52
- > = z.object({
53
- consumerId: z.string().optional(),
54
- appId: z.string().optional(),
55
- });
56
-
57
- /** @internal */
58
- export type CrmPipelinesAddGlobals$Outbound = {
59
- consumerId?: string | undefined;
60
- appId?: string | undefined;
61
- };
62
-
63
- /** @internal */
64
- export const CrmPipelinesAddGlobals$outboundSchema: z.ZodType<
65
- CrmPipelinesAddGlobals$Outbound,
66
- z.ZodTypeDef,
67
- CrmPipelinesAddGlobals
68
- > = z.object({
69
- consumerId: z.string().optional(),
70
- appId: z.string().optional(),
71
- });
72
-
73
- /**
74
- * @internal
75
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
76
- */
77
- export namespace CrmPipelinesAddGlobals$ {
78
- /** @deprecated use `CrmPipelinesAddGlobals$inboundSchema` instead. */
79
- export const inboundSchema = CrmPipelinesAddGlobals$inboundSchema;
80
- /** @deprecated use `CrmPipelinesAddGlobals$outboundSchema` instead. */
81
- export const outboundSchema = CrmPipelinesAddGlobals$outboundSchema;
82
- /** @deprecated use `CrmPipelinesAddGlobals$Outbound` instead. */
83
- export type Outbound = CrmPipelinesAddGlobals$Outbound;
84
- }
85
-
86
- export function crmPipelinesAddGlobalsToJSON(
87
- crmPipelinesAddGlobals: CrmPipelinesAddGlobals,
88
- ): string {
89
- return JSON.stringify(
90
- CrmPipelinesAddGlobals$outboundSchema.parse(crmPipelinesAddGlobals),
91
- );
92
- }
93
-
94
- export function crmPipelinesAddGlobalsFromJSON(
95
- jsonString: string,
96
- ): SafeParseResult<CrmPipelinesAddGlobals, SDKValidationError> {
97
- return safeParse(
98
- jsonString,
99
- (x) => CrmPipelinesAddGlobals$inboundSchema.parse(JSON.parse(x)),
100
- `Failed to parse 'CrmPipelinesAddGlobals' from JSON`,
101
- );
102
- }
103
-
104
- /** @internal */
105
- export const CrmPipelinesAddRequest$inboundSchema: z.ZodType<
106
- CrmPipelinesAddRequest,
107
- z.ZodTypeDef,
108
- unknown
109
- > = z.object({
110
- raw: z.boolean().default(false),
111
- serviceId: z.string().optional(),
112
- Pipeline: components.PipelineInput$inboundSchema,
113
- }).transform((v) => {
114
- return remap$(v, {
115
- "Pipeline": "pipeline",
116
- });
117
- });
118
-
119
- /** @internal */
120
- export type CrmPipelinesAddRequest$Outbound = {
121
- raw: boolean;
122
- serviceId?: string | undefined;
123
- Pipeline: components.PipelineInput$Outbound;
124
- };
125
-
126
- /** @internal */
127
- export const CrmPipelinesAddRequest$outboundSchema: z.ZodType<
128
- CrmPipelinesAddRequest$Outbound,
129
- z.ZodTypeDef,
130
- CrmPipelinesAddRequest
131
- > = z.object({
132
- raw: z.boolean().default(false),
133
- serviceId: z.string().optional(),
134
- pipeline: components.PipelineInput$outboundSchema,
135
- }).transform((v) => {
136
- return remap$(v, {
137
- pipeline: "Pipeline",
138
- });
139
- });
140
-
141
- /**
142
- * @internal
143
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
144
- */
145
- export namespace CrmPipelinesAddRequest$ {
146
- /** @deprecated use `CrmPipelinesAddRequest$inboundSchema` instead. */
147
- export const inboundSchema = CrmPipelinesAddRequest$inboundSchema;
148
- /** @deprecated use `CrmPipelinesAddRequest$outboundSchema` instead. */
149
- export const outboundSchema = CrmPipelinesAddRequest$outboundSchema;
150
- /** @deprecated use `CrmPipelinesAddRequest$Outbound` instead. */
151
- export type Outbound = CrmPipelinesAddRequest$Outbound;
152
- }
153
-
154
- export function crmPipelinesAddRequestToJSON(
155
- crmPipelinesAddRequest: CrmPipelinesAddRequest,
156
- ): string {
157
- return JSON.stringify(
158
- CrmPipelinesAddRequest$outboundSchema.parse(crmPipelinesAddRequest),
159
- );
160
- }
161
-
162
- export function crmPipelinesAddRequestFromJSON(
163
- jsonString: string,
164
- ): SafeParseResult<CrmPipelinesAddRequest, SDKValidationError> {
165
- return safeParse(
166
- jsonString,
167
- (x) => CrmPipelinesAddRequest$inboundSchema.parse(JSON.parse(x)),
168
- `Failed to parse 'CrmPipelinesAddRequest' from JSON`,
169
- );
170
- }
171
-
172
- /** @internal */
173
- export const CrmPipelinesAddResponse$inboundSchema: z.ZodType<
174
- CrmPipelinesAddResponse,
175
- z.ZodTypeDef,
176
- unknown
177
- > = z.object({
178
- HttpMeta: components.HTTPMetadata$inboundSchema,
179
- CreatePipelineResponse: components.CreatePipelineResponse$inboundSchema
180
- .optional(),
181
- UnexpectedErrorResponse: components.UnexpectedErrorResponse$inboundSchema
182
- .optional(),
183
- }).transform((v) => {
184
- return remap$(v, {
185
- "HttpMeta": "httpMeta",
186
- "CreatePipelineResponse": "createPipelineResponse",
187
- "UnexpectedErrorResponse": "unexpectedErrorResponse",
188
- });
189
- });
190
-
191
- /** @internal */
192
- export type CrmPipelinesAddResponse$Outbound = {
193
- HttpMeta: components.HTTPMetadata$Outbound;
194
- CreatePipelineResponse?:
195
- | components.CreatePipelineResponse$Outbound
196
- | undefined;
197
- UnexpectedErrorResponse?:
198
- | components.UnexpectedErrorResponse$Outbound
199
- | undefined;
200
- };
201
-
202
- /** @internal */
203
- export const CrmPipelinesAddResponse$outboundSchema: z.ZodType<
204
- CrmPipelinesAddResponse$Outbound,
205
- z.ZodTypeDef,
206
- CrmPipelinesAddResponse
207
- > = z.object({
208
- httpMeta: components.HTTPMetadata$outboundSchema,
209
- createPipelineResponse: components.CreatePipelineResponse$outboundSchema
210
- .optional(),
211
- unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema
212
- .optional(),
213
- }).transform((v) => {
214
- return remap$(v, {
215
- httpMeta: "HttpMeta",
216
- createPipelineResponse: "CreatePipelineResponse",
217
- unexpectedErrorResponse: "UnexpectedErrorResponse",
218
- });
219
- });
220
-
221
- /**
222
- * @internal
223
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
224
- */
225
- export namespace CrmPipelinesAddResponse$ {
226
- /** @deprecated use `CrmPipelinesAddResponse$inboundSchema` instead. */
227
- export const inboundSchema = CrmPipelinesAddResponse$inboundSchema;
228
- /** @deprecated use `CrmPipelinesAddResponse$outboundSchema` instead. */
229
- export const outboundSchema = CrmPipelinesAddResponse$outboundSchema;
230
- /** @deprecated use `CrmPipelinesAddResponse$Outbound` instead. */
231
- export type Outbound = CrmPipelinesAddResponse$Outbound;
232
- }
233
-
234
- export function crmPipelinesAddResponseToJSON(
235
- crmPipelinesAddResponse: CrmPipelinesAddResponse,
236
- ): string {
237
- return JSON.stringify(
238
- CrmPipelinesAddResponse$outboundSchema.parse(crmPipelinesAddResponse),
239
- );
240
- }
241
-
242
- export function crmPipelinesAddResponseFromJSON(
243
- jsonString: string,
244
- ): SafeParseResult<CrmPipelinesAddResponse, SDKValidationError> {
245
- return safeParse(
246
- jsonString,
247
- (x) => CrmPipelinesAddResponse$inboundSchema.parse(JSON.parse(x)),
248
- `Failed to parse 'CrmPipelinesAddResponse' from JSON`,
249
- );
250
- }