@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.
- package/README.md +0 -13
- package/docs/sdks/pipelines/README.md +0 -542
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/bill.d.ts +5 -0
- package/models/components/bill.d.ts.map +1 -1
- package/models/components/bill.js +9 -0
- package/models/components/bill.js.map +1 -1
- package/models/components/index.d.ts +0 -8
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +0 -8
- package/models/components/index.js.map +1 -1
- package/models/components/ledgeraccount.d.ts +5 -0
- package/models/components/ledgeraccount.d.ts.map +1 -1
- package/models/components/ledgeraccount.js +9 -0
- package/models/components/ledgeraccount.js.map +1 -1
- package/models/components/supplier.d.ts +5 -0
- package/models/components/supplier.d.ts.map +1 -1
- package/models/components/supplier.js +9 -0
- package/models/components/supplier.js.map +1 -1
- package/models/operations/index.d.ts +0 -5
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +0 -5
- package/models/operations/index.js.map +1 -1
- package/package.json +1 -1
- package/sdk/accounting.d.ts +0 -3
- package/sdk/accounting.d.ts.map +1 -1
- package/sdk/accounting.js +0 -4
- package/sdk/accounting.js.map +1 -1
- package/sdk/pipelines.d.ts +0 -28
- package/sdk/pipelines.d.ts.map +1 -1
- package/sdk/pipelines.js +0 -41
- package/sdk/pipelines.js.map +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/bill.ts +18 -0
- package/src/models/components/index.ts +0 -8
- package/src/models/components/ledgeraccount.ts +18 -0
- package/src/models/components/supplier.ts +18 -0
- package/src/models/operations/index.ts +0 -5
- package/src/sdk/accounting.ts +0 -6
- package/src/sdk/pipelines.ts +0 -73
- package/docs/sdks/agedcreditors/README.md +0 -115
- package/funcs/accountingAgedCreditorsGet.d.ts +0 -16
- package/funcs/accountingAgedCreditorsGet.d.ts.map +0 -1
- package/funcs/accountingAgedCreditorsGet.js +0 -122
- package/funcs/accountingAgedCreditorsGet.js.map +0 -1
- package/funcs/crmPipelinesCreate.d.ts +0 -16
- package/funcs/crmPipelinesCreate.d.ts.map +0 -1
- package/funcs/crmPipelinesCreate.js +0 -121
- package/funcs/crmPipelinesCreate.js.map +0 -1
- package/funcs/crmPipelinesDelete.d.ts +0 -16
- package/funcs/crmPipelinesDelete.d.ts.map +0 -1
- package/funcs/crmPipelinesDelete.js +0 -126
- package/funcs/crmPipelinesDelete.js.map +0 -1
- package/funcs/crmPipelinesGet.d.ts +0 -16
- package/funcs/crmPipelinesGet.d.ts.map +0 -1
- package/funcs/crmPipelinesGet.js +0 -127
- package/funcs/crmPipelinesGet.js.map +0 -1
- package/funcs/crmPipelinesUpdate.d.ts +0 -16
- package/funcs/crmPipelinesUpdate.d.ts.map +0 -1
- package/funcs/crmPipelinesUpdate.js +0 -127
- package/funcs/crmPipelinesUpdate.js.map +0 -1
- package/models/components/agedcreditors.d.ts +0 -51
- package/models/components/agedcreditors.d.ts.map +0 -1
- package/models/components/agedcreditors.js +0 -88
- package/models/components/agedcreditors.js.map +0 -1
- package/models/components/createpipelineresponse.d.ts +0 -58
- package/models/components/createpipelineresponse.d.ts.map +0 -1
- package/models/components/createpipelineresponse.js +0 -79
- package/models/components/createpipelineresponse.js.map +0 -1
- package/models/components/deletepipelineresponse.d.ts +0 -58
- package/models/components/deletepipelineresponse.d.ts.map +0 -1
- package/models/components/deletepipelineresponse.js +0 -79
- package/models/components/deletepipelineresponse.js.map +0 -1
- package/models/components/getagedcreditorsresponse.d.ts +0 -58
- package/models/components/getagedcreditorsresponse.d.ts.map +0 -1
- package/models/components/getagedcreditorsresponse.js +0 -79
- package/models/components/getagedcreditorsresponse.js.map +0 -1
- package/models/components/getpipelineresponse.d.ts +0 -58
- package/models/components/getpipelineresponse.d.ts.map +0 -1
- package/models/components/getpipelineresponse.js +0 -79
- package/models/components/getpipelineresponse.js.map +0 -1
- package/models/components/outstandingbalancebysupplier.d.ts +0 -40
- package/models/components/outstandingbalancebysupplier.d.ts.map +0 -1
- package/models/components/outstandingbalancebysupplier.js +0 -77
- package/models/components/outstandingbalancebysupplier.js.map +0 -1
- package/models/components/pipelineinput.d.ts +0 -117
- package/models/components/pipelineinput.d.ts.map +0 -1
- package/models/components/pipelineinput.js +0 -133
- package/models/components/pipelineinput.js.map +0 -1
- package/models/components/updatepipelineresponse.d.ts +0 -58
- package/models/components/updatepipelineresponse.d.ts.map +0 -1
- package/models/components/updatepipelineresponse.js +0 -79
- package/models/components/updatepipelineresponse.js.map +0 -1
- package/models/operations/accountingagedcreditorsone.d.ts +0 -125
- package/models/operations/accountingagedcreditorsone.d.ts.map +0 -1
- package/models/operations/accountingagedcreditorsone.js +0 -153
- package/models/operations/accountingagedcreditorsone.js.map +0 -1
- package/models/operations/crmpipelinesadd.d.ts +0 -108
- package/models/operations/crmpipelinesadd.d.ts.map +0 -1
- package/models/operations/crmpipelinesadd.js +0 -149
- package/models/operations/crmpipelinesadd.js.map +0 -1
- package/models/operations/crmpipelinesdelete.d.ts +0 -111
- package/models/operations/crmpipelinesdelete.d.ts.map +0 -1
- package/models/operations/crmpipelinesdelete.js +0 -141
- package/models/operations/crmpipelinesdelete.js.map +0 -1
- package/models/operations/crmpipelinesone.d.ts +0 -116
- package/models/operations/crmpipelinesone.d.ts.map +0 -1
- package/models/operations/crmpipelinesone.js +0 -141
- package/models/operations/crmpipelinesone.js.map +0 -1
- package/models/operations/crmpipelinesupdate.d.ts +0 -113
- package/models/operations/crmpipelinesupdate.d.ts.map +0 -1
- package/models/operations/crmpipelinesupdate.js +0 -151
- package/models/operations/crmpipelinesupdate.js.map +0 -1
- package/sdk/agedcreditors.d.ts +0 -12
- package/sdk/agedcreditors.d.ts.map +0 -1
- package/sdk/agedcreditors.js +0 -22
- package/sdk/agedcreditors.js.map +0 -1
- package/src/funcs/accountingAgedCreditorsGet.ts +0 -193
- package/src/funcs/crmPipelinesCreate.ts +0 -179
- package/src/funcs/crmPipelinesDelete.ts +0 -185
- package/src/funcs/crmPipelinesGet.ts +0 -186
- package/src/funcs/crmPipelinesUpdate.ts +0 -186
- package/src/models/components/agedcreditors.ts +0 -120
- package/src/models/components/createpipelineresponse.ts +0 -119
- package/src/models/components/deletepipelineresponse.ts +0 -119
- package/src/models/components/getagedcreditorsresponse.ts +0 -119
- package/src/models/components/getpipelineresponse.ts +0 -119
- package/src/models/components/outstandingbalancebysupplier.ts +0 -109
- package/src/models/components/pipelineinput.ts +0 -233
- package/src/models/components/updatepipelineresponse.ts +0 -119
- package/src/models/operations/accountingagedcreditorsone.ts +0 -277
- package/src/models/operations/crmpipelinesadd.ts +0 -250
- package/src/models/operations/crmpipelinesdelete.ts +0 -245
- package/src/models/operations/crmpipelinesone.ts +0 -248
- package/src/models/operations/crmpipelinesupdate.ts +0 -257
- package/src/sdk/agedcreditors.ts +0 -27
|
@@ -1,245 +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 CrmPipelinesDeleteGlobals = {
|
|
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 CrmPipelinesDeleteRequest = {
|
|
24
|
-
/**
|
|
25
|
-
* ID of the record you are acting upon.
|
|
26
|
-
*/
|
|
27
|
-
id: string;
|
|
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
|
-
* Include raw response. Mostly used for debugging purposes
|
|
34
|
-
*/
|
|
35
|
-
raw?: boolean | undefined;
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
export type CrmPipelinesDeleteResponse = {
|
|
39
|
-
httpMeta: components.HTTPMetadata;
|
|
40
|
-
/**
|
|
41
|
-
* Pipeline deleted
|
|
42
|
-
*/
|
|
43
|
-
deletePipelineResponse?: components.DeletePipelineResponse | undefined;
|
|
44
|
-
/**
|
|
45
|
-
* Unexpected error
|
|
46
|
-
*/
|
|
47
|
-
unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined;
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
/** @internal */
|
|
51
|
-
export const CrmPipelinesDeleteGlobals$inboundSchema: z.ZodType<
|
|
52
|
-
CrmPipelinesDeleteGlobals,
|
|
53
|
-
z.ZodTypeDef,
|
|
54
|
-
unknown
|
|
55
|
-
> = z.object({
|
|
56
|
-
consumerId: z.string().optional(),
|
|
57
|
-
appId: z.string().optional(),
|
|
58
|
-
});
|
|
59
|
-
|
|
60
|
-
/** @internal */
|
|
61
|
-
export type CrmPipelinesDeleteGlobals$Outbound = {
|
|
62
|
-
consumerId?: string | undefined;
|
|
63
|
-
appId?: string | undefined;
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
/** @internal */
|
|
67
|
-
export const CrmPipelinesDeleteGlobals$outboundSchema: z.ZodType<
|
|
68
|
-
CrmPipelinesDeleteGlobals$Outbound,
|
|
69
|
-
z.ZodTypeDef,
|
|
70
|
-
CrmPipelinesDeleteGlobals
|
|
71
|
-
> = z.object({
|
|
72
|
-
consumerId: z.string().optional(),
|
|
73
|
-
appId: z.string().optional(),
|
|
74
|
-
});
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* @internal
|
|
78
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
79
|
-
*/
|
|
80
|
-
export namespace CrmPipelinesDeleteGlobals$ {
|
|
81
|
-
/** @deprecated use `CrmPipelinesDeleteGlobals$inboundSchema` instead. */
|
|
82
|
-
export const inboundSchema = CrmPipelinesDeleteGlobals$inboundSchema;
|
|
83
|
-
/** @deprecated use `CrmPipelinesDeleteGlobals$outboundSchema` instead. */
|
|
84
|
-
export const outboundSchema = CrmPipelinesDeleteGlobals$outboundSchema;
|
|
85
|
-
/** @deprecated use `CrmPipelinesDeleteGlobals$Outbound` instead. */
|
|
86
|
-
export type Outbound = CrmPipelinesDeleteGlobals$Outbound;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export function crmPipelinesDeleteGlobalsToJSON(
|
|
90
|
-
crmPipelinesDeleteGlobals: CrmPipelinesDeleteGlobals,
|
|
91
|
-
): string {
|
|
92
|
-
return JSON.stringify(
|
|
93
|
-
CrmPipelinesDeleteGlobals$outboundSchema.parse(crmPipelinesDeleteGlobals),
|
|
94
|
-
);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
export function crmPipelinesDeleteGlobalsFromJSON(
|
|
98
|
-
jsonString: string,
|
|
99
|
-
): SafeParseResult<CrmPipelinesDeleteGlobals, SDKValidationError> {
|
|
100
|
-
return safeParse(
|
|
101
|
-
jsonString,
|
|
102
|
-
(x) => CrmPipelinesDeleteGlobals$inboundSchema.parse(JSON.parse(x)),
|
|
103
|
-
`Failed to parse 'CrmPipelinesDeleteGlobals' from JSON`,
|
|
104
|
-
);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
/** @internal */
|
|
108
|
-
export const CrmPipelinesDeleteRequest$inboundSchema: z.ZodType<
|
|
109
|
-
CrmPipelinesDeleteRequest,
|
|
110
|
-
z.ZodTypeDef,
|
|
111
|
-
unknown
|
|
112
|
-
> = z.object({
|
|
113
|
-
id: z.string(),
|
|
114
|
-
serviceId: z.string().optional(),
|
|
115
|
-
raw: z.boolean().default(false),
|
|
116
|
-
});
|
|
117
|
-
|
|
118
|
-
/** @internal */
|
|
119
|
-
export type CrmPipelinesDeleteRequest$Outbound = {
|
|
120
|
-
id: string;
|
|
121
|
-
serviceId?: string | undefined;
|
|
122
|
-
raw: boolean;
|
|
123
|
-
};
|
|
124
|
-
|
|
125
|
-
/** @internal */
|
|
126
|
-
export const CrmPipelinesDeleteRequest$outboundSchema: z.ZodType<
|
|
127
|
-
CrmPipelinesDeleteRequest$Outbound,
|
|
128
|
-
z.ZodTypeDef,
|
|
129
|
-
CrmPipelinesDeleteRequest
|
|
130
|
-
> = z.object({
|
|
131
|
-
id: z.string(),
|
|
132
|
-
serviceId: z.string().optional(),
|
|
133
|
-
raw: z.boolean().default(false),
|
|
134
|
-
});
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* @internal
|
|
138
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
139
|
-
*/
|
|
140
|
-
export namespace CrmPipelinesDeleteRequest$ {
|
|
141
|
-
/** @deprecated use `CrmPipelinesDeleteRequest$inboundSchema` instead. */
|
|
142
|
-
export const inboundSchema = CrmPipelinesDeleteRequest$inboundSchema;
|
|
143
|
-
/** @deprecated use `CrmPipelinesDeleteRequest$outboundSchema` instead. */
|
|
144
|
-
export const outboundSchema = CrmPipelinesDeleteRequest$outboundSchema;
|
|
145
|
-
/** @deprecated use `CrmPipelinesDeleteRequest$Outbound` instead. */
|
|
146
|
-
export type Outbound = CrmPipelinesDeleteRequest$Outbound;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
export function crmPipelinesDeleteRequestToJSON(
|
|
150
|
-
crmPipelinesDeleteRequest: CrmPipelinesDeleteRequest,
|
|
151
|
-
): string {
|
|
152
|
-
return JSON.stringify(
|
|
153
|
-
CrmPipelinesDeleteRequest$outboundSchema.parse(crmPipelinesDeleteRequest),
|
|
154
|
-
);
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
export function crmPipelinesDeleteRequestFromJSON(
|
|
158
|
-
jsonString: string,
|
|
159
|
-
): SafeParseResult<CrmPipelinesDeleteRequest, SDKValidationError> {
|
|
160
|
-
return safeParse(
|
|
161
|
-
jsonString,
|
|
162
|
-
(x) => CrmPipelinesDeleteRequest$inboundSchema.parse(JSON.parse(x)),
|
|
163
|
-
`Failed to parse 'CrmPipelinesDeleteRequest' from JSON`,
|
|
164
|
-
);
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
/** @internal */
|
|
168
|
-
export const CrmPipelinesDeleteResponse$inboundSchema: z.ZodType<
|
|
169
|
-
CrmPipelinesDeleteResponse,
|
|
170
|
-
z.ZodTypeDef,
|
|
171
|
-
unknown
|
|
172
|
-
> = z.object({
|
|
173
|
-
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
174
|
-
DeletePipelineResponse: components.DeletePipelineResponse$inboundSchema
|
|
175
|
-
.optional(),
|
|
176
|
-
UnexpectedErrorResponse: components.UnexpectedErrorResponse$inboundSchema
|
|
177
|
-
.optional(),
|
|
178
|
-
}).transform((v) => {
|
|
179
|
-
return remap$(v, {
|
|
180
|
-
"HttpMeta": "httpMeta",
|
|
181
|
-
"DeletePipelineResponse": "deletePipelineResponse",
|
|
182
|
-
"UnexpectedErrorResponse": "unexpectedErrorResponse",
|
|
183
|
-
});
|
|
184
|
-
});
|
|
185
|
-
|
|
186
|
-
/** @internal */
|
|
187
|
-
export type CrmPipelinesDeleteResponse$Outbound = {
|
|
188
|
-
HttpMeta: components.HTTPMetadata$Outbound;
|
|
189
|
-
DeletePipelineResponse?:
|
|
190
|
-
| components.DeletePipelineResponse$Outbound
|
|
191
|
-
| undefined;
|
|
192
|
-
UnexpectedErrorResponse?:
|
|
193
|
-
| components.UnexpectedErrorResponse$Outbound
|
|
194
|
-
| undefined;
|
|
195
|
-
};
|
|
196
|
-
|
|
197
|
-
/** @internal */
|
|
198
|
-
export const CrmPipelinesDeleteResponse$outboundSchema: z.ZodType<
|
|
199
|
-
CrmPipelinesDeleteResponse$Outbound,
|
|
200
|
-
z.ZodTypeDef,
|
|
201
|
-
CrmPipelinesDeleteResponse
|
|
202
|
-
> = z.object({
|
|
203
|
-
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
204
|
-
deletePipelineResponse: components.DeletePipelineResponse$outboundSchema
|
|
205
|
-
.optional(),
|
|
206
|
-
unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema
|
|
207
|
-
.optional(),
|
|
208
|
-
}).transform((v) => {
|
|
209
|
-
return remap$(v, {
|
|
210
|
-
httpMeta: "HttpMeta",
|
|
211
|
-
deletePipelineResponse: "DeletePipelineResponse",
|
|
212
|
-
unexpectedErrorResponse: "UnexpectedErrorResponse",
|
|
213
|
-
});
|
|
214
|
-
});
|
|
215
|
-
|
|
216
|
-
/**
|
|
217
|
-
* @internal
|
|
218
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
219
|
-
*/
|
|
220
|
-
export namespace CrmPipelinesDeleteResponse$ {
|
|
221
|
-
/** @deprecated use `CrmPipelinesDeleteResponse$inboundSchema` instead. */
|
|
222
|
-
export const inboundSchema = CrmPipelinesDeleteResponse$inboundSchema;
|
|
223
|
-
/** @deprecated use `CrmPipelinesDeleteResponse$outboundSchema` instead. */
|
|
224
|
-
export const outboundSchema = CrmPipelinesDeleteResponse$outboundSchema;
|
|
225
|
-
/** @deprecated use `CrmPipelinesDeleteResponse$Outbound` instead. */
|
|
226
|
-
export type Outbound = CrmPipelinesDeleteResponse$Outbound;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
export function crmPipelinesDeleteResponseToJSON(
|
|
230
|
-
crmPipelinesDeleteResponse: CrmPipelinesDeleteResponse,
|
|
231
|
-
): string {
|
|
232
|
-
return JSON.stringify(
|
|
233
|
-
CrmPipelinesDeleteResponse$outboundSchema.parse(crmPipelinesDeleteResponse),
|
|
234
|
-
);
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
export function crmPipelinesDeleteResponseFromJSON(
|
|
238
|
-
jsonString: string,
|
|
239
|
-
): SafeParseResult<CrmPipelinesDeleteResponse, SDKValidationError> {
|
|
240
|
-
return safeParse(
|
|
241
|
-
jsonString,
|
|
242
|
-
(x) => CrmPipelinesDeleteResponse$inboundSchema.parse(JSON.parse(x)),
|
|
243
|
-
`Failed to parse 'CrmPipelinesDeleteResponse' from JSON`,
|
|
244
|
-
);
|
|
245
|
-
}
|
|
@@ -1,248 +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 CrmPipelinesOneGlobals = {
|
|
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 CrmPipelinesOneRequest = {
|
|
24
|
-
/**
|
|
25
|
-
* ID of the record you are acting upon.
|
|
26
|
-
*/
|
|
27
|
-
id: string;
|
|
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
|
-
* Include raw response. Mostly used for debugging purposes
|
|
34
|
-
*/
|
|
35
|
-
raw?: boolean | undefined;
|
|
36
|
-
/**
|
|
37
|
-
* 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.
|
|
38
|
-
*/
|
|
39
|
-
fields?: string | null | undefined;
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
export type CrmPipelinesOneResponse = {
|
|
43
|
-
httpMeta: components.HTTPMetadata;
|
|
44
|
-
/**
|
|
45
|
-
* Pipeline
|
|
46
|
-
*/
|
|
47
|
-
getPipelineResponse?: components.GetPipelineResponse | undefined;
|
|
48
|
-
/**
|
|
49
|
-
* Unexpected error
|
|
50
|
-
*/
|
|
51
|
-
unexpectedErrorResponse?: components.UnexpectedErrorResponse | undefined;
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
/** @internal */
|
|
55
|
-
export const CrmPipelinesOneGlobals$inboundSchema: z.ZodType<
|
|
56
|
-
CrmPipelinesOneGlobals,
|
|
57
|
-
z.ZodTypeDef,
|
|
58
|
-
unknown
|
|
59
|
-
> = z.object({
|
|
60
|
-
consumerId: z.string().optional(),
|
|
61
|
-
appId: z.string().optional(),
|
|
62
|
-
});
|
|
63
|
-
|
|
64
|
-
/** @internal */
|
|
65
|
-
export type CrmPipelinesOneGlobals$Outbound = {
|
|
66
|
-
consumerId?: string | undefined;
|
|
67
|
-
appId?: string | undefined;
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
/** @internal */
|
|
71
|
-
export const CrmPipelinesOneGlobals$outboundSchema: z.ZodType<
|
|
72
|
-
CrmPipelinesOneGlobals$Outbound,
|
|
73
|
-
z.ZodTypeDef,
|
|
74
|
-
CrmPipelinesOneGlobals
|
|
75
|
-
> = z.object({
|
|
76
|
-
consumerId: z.string().optional(),
|
|
77
|
-
appId: z.string().optional(),
|
|
78
|
-
});
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* @internal
|
|
82
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
83
|
-
*/
|
|
84
|
-
export namespace CrmPipelinesOneGlobals$ {
|
|
85
|
-
/** @deprecated use `CrmPipelinesOneGlobals$inboundSchema` instead. */
|
|
86
|
-
export const inboundSchema = CrmPipelinesOneGlobals$inboundSchema;
|
|
87
|
-
/** @deprecated use `CrmPipelinesOneGlobals$outboundSchema` instead. */
|
|
88
|
-
export const outboundSchema = CrmPipelinesOneGlobals$outboundSchema;
|
|
89
|
-
/** @deprecated use `CrmPipelinesOneGlobals$Outbound` instead. */
|
|
90
|
-
export type Outbound = CrmPipelinesOneGlobals$Outbound;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
export function crmPipelinesOneGlobalsToJSON(
|
|
94
|
-
crmPipelinesOneGlobals: CrmPipelinesOneGlobals,
|
|
95
|
-
): string {
|
|
96
|
-
return JSON.stringify(
|
|
97
|
-
CrmPipelinesOneGlobals$outboundSchema.parse(crmPipelinesOneGlobals),
|
|
98
|
-
);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
export function crmPipelinesOneGlobalsFromJSON(
|
|
102
|
-
jsonString: string,
|
|
103
|
-
): SafeParseResult<CrmPipelinesOneGlobals, SDKValidationError> {
|
|
104
|
-
return safeParse(
|
|
105
|
-
jsonString,
|
|
106
|
-
(x) => CrmPipelinesOneGlobals$inboundSchema.parse(JSON.parse(x)),
|
|
107
|
-
`Failed to parse 'CrmPipelinesOneGlobals' from JSON`,
|
|
108
|
-
);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
/** @internal */
|
|
112
|
-
export const CrmPipelinesOneRequest$inboundSchema: z.ZodType<
|
|
113
|
-
CrmPipelinesOneRequest,
|
|
114
|
-
z.ZodTypeDef,
|
|
115
|
-
unknown
|
|
116
|
-
> = z.object({
|
|
117
|
-
id: z.string(),
|
|
118
|
-
serviceId: z.string().optional(),
|
|
119
|
-
raw: z.boolean().default(false),
|
|
120
|
-
fields: z.nullable(z.string()).optional(),
|
|
121
|
-
});
|
|
122
|
-
|
|
123
|
-
/** @internal */
|
|
124
|
-
export type CrmPipelinesOneRequest$Outbound = {
|
|
125
|
-
id: string;
|
|
126
|
-
serviceId?: string | undefined;
|
|
127
|
-
raw: boolean;
|
|
128
|
-
fields?: string | null | undefined;
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
/** @internal */
|
|
132
|
-
export const CrmPipelinesOneRequest$outboundSchema: z.ZodType<
|
|
133
|
-
CrmPipelinesOneRequest$Outbound,
|
|
134
|
-
z.ZodTypeDef,
|
|
135
|
-
CrmPipelinesOneRequest
|
|
136
|
-
> = z.object({
|
|
137
|
-
id: z.string(),
|
|
138
|
-
serviceId: z.string().optional(),
|
|
139
|
-
raw: z.boolean().default(false),
|
|
140
|
-
fields: z.nullable(z.string()).optional(),
|
|
141
|
-
});
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* @internal
|
|
145
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
146
|
-
*/
|
|
147
|
-
export namespace CrmPipelinesOneRequest$ {
|
|
148
|
-
/** @deprecated use `CrmPipelinesOneRequest$inboundSchema` instead. */
|
|
149
|
-
export const inboundSchema = CrmPipelinesOneRequest$inboundSchema;
|
|
150
|
-
/** @deprecated use `CrmPipelinesOneRequest$outboundSchema` instead. */
|
|
151
|
-
export const outboundSchema = CrmPipelinesOneRequest$outboundSchema;
|
|
152
|
-
/** @deprecated use `CrmPipelinesOneRequest$Outbound` instead. */
|
|
153
|
-
export type Outbound = CrmPipelinesOneRequest$Outbound;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
export function crmPipelinesOneRequestToJSON(
|
|
157
|
-
crmPipelinesOneRequest: CrmPipelinesOneRequest,
|
|
158
|
-
): string {
|
|
159
|
-
return JSON.stringify(
|
|
160
|
-
CrmPipelinesOneRequest$outboundSchema.parse(crmPipelinesOneRequest),
|
|
161
|
-
);
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
export function crmPipelinesOneRequestFromJSON(
|
|
165
|
-
jsonString: string,
|
|
166
|
-
): SafeParseResult<CrmPipelinesOneRequest, SDKValidationError> {
|
|
167
|
-
return safeParse(
|
|
168
|
-
jsonString,
|
|
169
|
-
(x) => CrmPipelinesOneRequest$inboundSchema.parse(JSON.parse(x)),
|
|
170
|
-
`Failed to parse 'CrmPipelinesOneRequest' from JSON`,
|
|
171
|
-
);
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
/** @internal */
|
|
175
|
-
export const CrmPipelinesOneResponse$inboundSchema: z.ZodType<
|
|
176
|
-
CrmPipelinesOneResponse,
|
|
177
|
-
z.ZodTypeDef,
|
|
178
|
-
unknown
|
|
179
|
-
> = z.object({
|
|
180
|
-
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
181
|
-
GetPipelineResponse: components.GetPipelineResponse$inboundSchema.optional(),
|
|
182
|
-
UnexpectedErrorResponse: components.UnexpectedErrorResponse$inboundSchema
|
|
183
|
-
.optional(),
|
|
184
|
-
}).transform((v) => {
|
|
185
|
-
return remap$(v, {
|
|
186
|
-
"HttpMeta": "httpMeta",
|
|
187
|
-
"GetPipelineResponse": "getPipelineResponse",
|
|
188
|
-
"UnexpectedErrorResponse": "unexpectedErrorResponse",
|
|
189
|
-
});
|
|
190
|
-
});
|
|
191
|
-
|
|
192
|
-
/** @internal */
|
|
193
|
-
export type CrmPipelinesOneResponse$Outbound = {
|
|
194
|
-
HttpMeta: components.HTTPMetadata$Outbound;
|
|
195
|
-
GetPipelineResponse?: components.GetPipelineResponse$Outbound | undefined;
|
|
196
|
-
UnexpectedErrorResponse?:
|
|
197
|
-
| components.UnexpectedErrorResponse$Outbound
|
|
198
|
-
| undefined;
|
|
199
|
-
};
|
|
200
|
-
|
|
201
|
-
/** @internal */
|
|
202
|
-
export const CrmPipelinesOneResponse$outboundSchema: z.ZodType<
|
|
203
|
-
CrmPipelinesOneResponse$Outbound,
|
|
204
|
-
z.ZodTypeDef,
|
|
205
|
-
CrmPipelinesOneResponse
|
|
206
|
-
> = z.object({
|
|
207
|
-
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
208
|
-
getPipelineResponse: components.GetPipelineResponse$outboundSchema.optional(),
|
|
209
|
-
unexpectedErrorResponse: components.UnexpectedErrorResponse$outboundSchema
|
|
210
|
-
.optional(),
|
|
211
|
-
}).transform((v) => {
|
|
212
|
-
return remap$(v, {
|
|
213
|
-
httpMeta: "HttpMeta",
|
|
214
|
-
getPipelineResponse: "GetPipelineResponse",
|
|
215
|
-
unexpectedErrorResponse: "UnexpectedErrorResponse",
|
|
216
|
-
});
|
|
217
|
-
});
|
|
218
|
-
|
|
219
|
-
/**
|
|
220
|
-
* @internal
|
|
221
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
222
|
-
*/
|
|
223
|
-
export namespace CrmPipelinesOneResponse$ {
|
|
224
|
-
/** @deprecated use `CrmPipelinesOneResponse$inboundSchema` instead. */
|
|
225
|
-
export const inboundSchema = CrmPipelinesOneResponse$inboundSchema;
|
|
226
|
-
/** @deprecated use `CrmPipelinesOneResponse$outboundSchema` instead. */
|
|
227
|
-
export const outboundSchema = CrmPipelinesOneResponse$outboundSchema;
|
|
228
|
-
/** @deprecated use `CrmPipelinesOneResponse$Outbound` instead. */
|
|
229
|
-
export type Outbound = CrmPipelinesOneResponse$Outbound;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
export function crmPipelinesOneResponseToJSON(
|
|
233
|
-
crmPipelinesOneResponse: CrmPipelinesOneResponse,
|
|
234
|
-
): string {
|
|
235
|
-
return JSON.stringify(
|
|
236
|
-
CrmPipelinesOneResponse$outboundSchema.parse(crmPipelinesOneResponse),
|
|
237
|
-
);
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
export function crmPipelinesOneResponseFromJSON(
|
|
241
|
-
jsonString: string,
|
|
242
|
-
): SafeParseResult<CrmPipelinesOneResponse, SDKValidationError> {
|
|
243
|
-
return safeParse(
|
|
244
|
-
jsonString,
|
|
245
|
-
(x) => CrmPipelinesOneResponse$inboundSchema.parse(JSON.parse(x)),
|
|
246
|
-
`Failed to parse 'CrmPipelinesOneResponse' from JSON`,
|
|
247
|
-
);
|
|
248
|
-
}
|