@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,186 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { ApideckCore } from "../core.js";
|
|
6
|
-
import { encodeFormQuery, encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
|
-
import * as M from "../lib/matchers.js";
|
|
8
|
-
import { safeParse } from "../lib/schemas.js";
|
|
9
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
10
|
-
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
11
|
-
import { pathToFunc } from "../lib/url.js";
|
|
12
|
-
import { APIError } from "../models/errors/apierror.js";
|
|
13
|
-
import {
|
|
14
|
-
ConnectionError,
|
|
15
|
-
InvalidRequestError,
|
|
16
|
-
RequestAbortedError,
|
|
17
|
-
RequestTimeoutError,
|
|
18
|
-
UnexpectedClientError,
|
|
19
|
-
} from "../models/errors/httpclienterrors.js";
|
|
20
|
-
import * as errors from "../models/errors/index.js";
|
|
21
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
22
|
-
import * as operations from "../models/operations/index.js";
|
|
23
|
-
import { Result } from "../types/fp.js";
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Update pipeline
|
|
27
|
-
*
|
|
28
|
-
* @remarks
|
|
29
|
-
* Update pipeline
|
|
30
|
-
*/
|
|
31
|
-
export async function crmPipelinesUpdate(
|
|
32
|
-
client: ApideckCore,
|
|
33
|
-
request: operations.CrmPipelinesUpdateRequest,
|
|
34
|
-
options?: RequestOptions,
|
|
35
|
-
): Promise<
|
|
36
|
-
Result<
|
|
37
|
-
operations.CrmPipelinesUpdateResponse,
|
|
38
|
-
| errors.BadRequestResponse
|
|
39
|
-
| errors.UnauthorizedResponse
|
|
40
|
-
| errors.PaymentRequiredResponse
|
|
41
|
-
| errors.NotFoundResponse
|
|
42
|
-
| errors.UnprocessableResponse
|
|
43
|
-
| APIError
|
|
44
|
-
| SDKValidationError
|
|
45
|
-
| UnexpectedClientError
|
|
46
|
-
| InvalidRequestError
|
|
47
|
-
| RequestAbortedError
|
|
48
|
-
| RequestTimeoutError
|
|
49
|
-
| ConnectionError
|
|
50
|
-
>
|
|
51
|
-
> {
|
|
52
|
-
const parsed = safeParse(
|
|
53
|
-
request,
|
|
54
|
-
(value) => operations.CrmPipelinesUpdateRequest$outboundSchema.parse(value),
|
|
55
|
-
"Input validation failed",
|
|
56
|
-
);
|
|
57
|
-
if (!parsed.ok) {
|
|
58
|
-
return parsed;
|
|
59
|
-
}
|
|
60
|
-
const payload = parsed.value;
|
|
61
|
-
const body = encodeJSON("body", payload.Pipeline, { explode: true });
|
|
62
|
-
|
|
63
|
-
const pathParams = {
|
|
64
|
-
id: encodeSimple("id", payload.id, {
|
|
65
|
-
explode: false,
|
|
66
|
-
charEncoding: "percent",
|
|
67
|
-
}),
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
const path = pathToFunc("/crm/pipelines/{id}")(pathParams);
|
|
71
|
-
|
|
72
|
-
const query = encodeFormQuery({
|
|
73
|
-
"raw": payload.raw,
|
|
74
|
-
});
|
|
75
|
-
|
|
76
|
-
const headers = new Headers({
|
|
77
|
-
"Content-Type": "application/json",
|
|
78
|
-
Accept: "application/json",
|
|
79
|
-
"x-apideck-service-id": encodeSimple(
|
|
80
|
-
"x-apideck-service-id",
|
|
81
|
-
payload.serviceId,
|
|
82
|
-
{ explode: false, charEncoding: "none" },
|
|
83
|
-
),
|
|
84
|
-
"x-apideck-app-id": encodeSimple(
|
|
85
|
-
"x-apideck-app-id",
|
|
86
|
-
client._options.appId,
|
|
87
|
-
{ explode: false, charEncoding: "none" },
|
|
88
|
-
),
|
|
89
|
-
"x-apideck-consumer-id": encodeSimple(
|
|
90
|
-
"x-apideck-consumer-id",
|
|
91
|
-
client._options.consumerId,
|
|
92
|
-
{ explode: false, charEncoding: "none" },
|
|
93
|
-
),
|
|
94
|
-
});
|
|
95
|
-
|
|
96
|
-
const secConfig = await extractSecurity(client._options.apiKey);
|
|
97
|
-
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
98
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
99
|
-
|
|
100
|
-
const context = {
|
|
101
|
-
operationID: "crm.pipelinesUpdate",
|
|
102
|
-
oAuth2Scopes: [],
|
|
103
|
-
|
|
104
|
-
resolvedSecurity: requestSecurity,
|
|
105
|
-
|
|
106
|
-
securitySource: client._options.apiKey,
|
|
107
|
-
retryConfig: options?.retries
|
|
108
|
-
|| client._options.retryConfig
|
|
109
|
-
|| {
|
|
110
|
-
strategy: "backoff",
|
|
111
|
-
backoff: {
|
|
112
|
-
initialInterval: 500,
|
|
113
|
-
maxInterval: 60000,
|
|
114
|
-
exponent: 1.5,
|
|
115
|
-
maxElapsedTime: 3600000,
|
|
116
|
-
},
|
|
117
|
-
retryConnectionErrors: true,
|
|
118
|
-
}
|
|
119
|
-
|| { strategy: "none" },
|
|
120
|
-
retryCodes: options?.retryCodes || ["5XX"],
|
|
121
|
-
};
|
|
122
|
-
|
|
123
|
-
const requestRes = client._createRequest(context, {
|
|
124
|
-
security: requestSecurity,
|
|
125
|
-
method: "PATCH",
|
|
126
|
-
baseURL: options?.serverURL,
|
|
127
|
-
path: path,
|
|
128
|
-
headers: headers,
|
|
129
|
-
query: query,
|
|
130
|
-
body: body,
|
|
131
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
132
|
-
}, options);
|
|
133
|
-
if (!requestRes.ok) {
|
|
134
|
-
return requestRes;
|
|
135
|
-
}
|
|
136
|
-
const req = requestRes.value;
|
|
137
|
-
|
|
138
|
-
const doResult = await client._do(req, {
|
|
139
|
-
context,
|
|
140
|
-
errorCodes: ["400", "401", "402", "404", "422", "4XX", "5XX"],
|
|
141
|
-
retryConfig: context.retryConfig,
|
|
142
|
-
retryCodes: context.retryCodes,
|
|
143
|
-
});
|
|
144
|
-
if (!doResult.ok) {
|
|
145
|
-
return doResult;
|
|
146
|
-
}
|
|
147
|
-
const response = doResult.value;
|
|
148
|
-
|
|
149
|
-
const responseFields = {
|
|
150
|
-
HttpMeta: { Response: response, Request: req },
|
|
151
|
-
};
|
|
152
|
-
|
|
153
|
-
const [result] = await M.match<
|
|
154
|
-
operations.CrmPipelinesUpdateResponse,
|
|
155
|
-
| errors.BadRequestResponse
|
|
156
|
-
| errors.UnauthorizedResponse
|
|
157
|
-
| errors.PaymentRequiredResponse
|
|
158
|
-
| errors.NotFoundResponse
|
|
159
|
-
| errors.UnprocessableResponse
|
|
160
|
-
| APIError
|
|
161
|
-
| SDKValidationError
|
|
162
|
-
| UnexpectedClientError
|
|
163
|
-
| InvalidRequestError
|
|
164
|
-
| RequestAbortedError
|
|
165
|
-
| RequestTimeoutError
|
|
166
|
-
| ConnectionError
|
|
167
|
-
>(
|
|
168
|
-
M.json(200, operations.CrmPipelinesUpdateResponse$inboundSchema, {
|
|
169
|
-
key: "UpdatePipelineResponse",
|
|
170
|
-
}),
|
|
171
|
-
M.jsonErr(400, errors.BadRequestResponse$inboundSchema),
|
|
172
|
-
M.jsonErr(401, errors.UnauthorizedResponse$inboundSchema),
|
|
173
|
-
M.jsonErr(402, errors.PaymentRequiredResponse$inboundSchema),
|
|
174
|
-
M.jsonErr(404, errors.NotFoundResponse$inboundSchema),
|
|
175
|
-
M.jsonErr(422, errors.UnprocessableResponse$inboundSchema),
|
|
176
|
-
M.fail(["4XX", "5XX"]),
|
|
177
|
-
M.json("default", operations.CrmPipelinesUpdateResponse$inboundSchema, {
|
|
178
|
-
key: "UnexpectedErrorResponse",
|
|
179
|
-
}),
|
|
180
|
-
)(response, req, { extraFields: responseFields });
|
|
181
|
-
if (!result.ok) {
|
|
182
|
-
return result;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
return result;
|
|
186
|
-
}
|
|
@@ -1,120 +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 { RFCDate } from "../../types/rfcdate.js";
|
|
10
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
import {
|
|
12
|
-
OutstandingBalanceBySupplier,
|
|
13
|
-
OutstandingBalanceBySupplier$inboundSchema,
|
|
14
|
-
OutstandingBalanceBySupplier$Outbound,
|
|
15
|
-
OutstandingBalanceBySupplier$outboundSchema,
|
|
16
|
-
} from "./outstandingbalancebysupplier.js";
|
|
17
|
-
|
|
18
|
-
export type AgedCreditors = {
|
|
19
|
-
/**
|
|
20
|
-
* The exact date and time the report was generated.
|
|
21
|
-
*/
|
|
22
|
-
reportGeneratedAt?: Date | undefined;
|
|
23
|
-
/**
|
|
24
|
-
* The cutoff date for transactions included in the report.
|
|
25
|
-
*/
|
|
26
|
-
reportAsOfDate?: RFCDate | undefined;
|
|
27
|
-
/**
|
|
28
|
-
* Number of aging periods shown in the report.
|
|
29
|
-
*/
|
|
30
|
-
periodCount?: number | undefined;
|
|
31
|
-
/**
|
|
32
|
-
* Length of each aging period in days.
|
|
33
|
-
*/
|
|
34
|
-
periodLength?: number | undefined;
|
|
35
|
-
outstandingBalances?: Array<OutstandingBalanceBySupplier> | undefined;
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
/** @internal */
|
|
39
|
-
export const AgedCreditors$inboundSchema: z.ZodType<
|
|
40
|
-
AgedCreditors,
|
|
41
|
-
z.ZodTypeDef,
|
|
42
|
-
unknown
|
|
43
|
-
> = z.object({
|
|
44
|
-
report_generated_at: z.string().datetime({ offset: true }).transform(v =>
|
|
45
|
-
new Date(v)
|
|
46
|
-
).optional(),
|
|
47
|
-
report_as_of_date: z.string().transform(v => new RFCDate(v)).optional(),
|
|
48
|
-
period_count: z.number().int().default(4),
|
|
49
|
-
period_length: z.number().int().default(30),
|
|
50
|
-
outstanding_balances: z.array(OutstandingBalanceBySupplier$inboundSchema)
|
|
51
|
-
.optional(),
|
|
52
|
-
}).transform((v) => {
|
|
53
|
-
return remap$(v, {
|
|
54
|
-
"report_generated_at": "reportGeneratedAt",
|
|
55
|
-
"report_as_of_date": "reportAsOfDate",
|
|
56
|
-
"period_count": "periodCount",
|
|
57
|
-
"period_length": "periodLength",
|
|
58
|
-
"outstanding_balances": "outstandingBalances",
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
/** @internal */
|
|
63
|
-
export type AgedCreditors$Outbound = {
|
|
64
|
-
report_generated_at?: string | undefined;
|
|
65
|
-
report_as_of_date?: string | undefined;
|
|
66
|
-
period_count: number;
|
|
67
|
-
period_length: number;
|
|
68
|
-
outstanding_balances?:
|
|
69
|
-
| Array<OutstandingBalanceBySupplier$Outbound>
|
|
70
|
-
| undefined;
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
/** @internal */
|
|
74
|
-
export const AgedCreditors$outboundSchema: z.ZodType<
|
|
75
|
-
AgedCreditors$Outbound,
|
|
76
|
-
z.ZodTypeDef,
|
|
77
|
-
AgedCreditors
|
|
78
|
-
> = z.object({
|
|
79
|
-
reportGeneratedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
80
|
-
reportAsOfDate: z.instanceof(RFCDate).transform(v => v.toString()).optional(),
|
|
81
|
-
periodCount: z.number().int().default(4),
|
|
82
|
-
periodLength: z.number().int().default(30),
|
|
83
|
-
outstandingBalances: z.array(OutstandingBalanceBySupplier$outboundSchema)
|
|
84
|
-
.optional(),
|
|
85
|
-
}).transform((v) => {
|
|
86
|
-
return remap$(v, {
|
|
87
|
-
reportGeneratedAt: "report_generated_at",
|
|
88
|
-
reportAsOfDate: "report_as_of_date",
|
|
89
|
-
periodCount: "period_count",
|
|
90
|
-
periodLength: "period_length",
|
|
91
|
-
outstandingBalances: "outstanding_balances",
|
|
92
|
-
});
|
|
93
|
-
});
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* @internal
|
|
97
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
98
|
-
*/
|
|
99
|
-
export namespace AgedCreditors$ {
|
|
100
|
-
/** @deprecated use `AgedCreditors$inboundSchema` instead. */
|
|
101
|
-
export const inboundSchema = AgedCreditors$inboundSchema;
|
|
102
|
-
/** @deprecated use `AgedCreditors$outboundSchema` instead. */
|
|
103
|
-
export const outboundSchema = AgedCreditors$outboundSchema;
|
|
104
|
-
/** @deprecated use `AgedCreditors$Outbound` instead. */
|
|
105
|
-
export type Outbound = AgedCreditors$Outbound;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
export function agedCreditorsToJSON(agedCreditors: AgedCreditors): string {
|
|
109
|
-
return JSON.stringify(AgedCreditors$outboundSchema.parse(agedCreditors));
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
export function agedCreditorsFromJSON(
|
|
113
|
-
jsonString: string,
|
|
114
|
-
): SafeParseResult<AgedCreditors, SDKValidationError> {
|
|
115
|
-
return safeParse(
|
|
116
|
-
jsonString,
|
|
117
|
-
(x) => AgedCreditors$inboundSchema.parse(JSON.parse(x)),
|
|
118
|
-
`Failed to parse 'AgedCreditors' from JSON`,
|
|
119
|
-
);
|
|
120
|
-
}
|
|
@@ -1,119 +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 { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
import {
|
|
11
|
-
UnifiedId,
|
|
12
|
-
UnifiedId$inboundSchema,
|
|
13
|
-
UnifiedId$Outbound,
|
|
14
|
-
UnifiedId$outboundSchema,
|
|
15
|
-
} from "./unifiedid.js";
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Pipeline created
|
|
19
|
-
*/
|
|
20
|
-
export type CreatePipelineResponse = {
|
|
21
|
-
/**
|
|
22
|
-
* HTTP Response Status Code
|
|
23
|
-
*/
|
|
24
|
-
statusCode: number;
|
|
25
|
-
/**
|
|
26
|
-
* HTTP Response Status
|
|
27
|
-
*/
|
|
28
|
-
status: string;
|
|
29
|
-
/**
|
|
30
|
-
* Apideck ID of service provider
|
|
31
|
-
*/
|
|
32
|
-
service: string;
|
|
33
|
-
/**
|
|
34
|
-
* Unified API resource name
|
|
35
|
-
*/
|
|
36
|
-
resource: string;
|
|
37
|
-
/**
|
|
38
|
-
* Operation performed
|
|
39
|
-
*/
|
|
40
|
-
operation: string;
|
|
41
|
-
data: UnifiedId;
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
/** @internal */
|
|
45
|
-
export const CreatePipelineResponse$inboundSchema: z.ZodType<
|
|
46
|
-
CreatePipelineResponse,
|
|
47
|
-
z.ZodTypeDef,
|
|
48
|
-
unknown
|
|
49
|
-
> = z.object({
|
|
50
|
-
status_code: z.number().int(),
|
|
51
|
-
status: z.string(),
|
|
52
|
-
service: z.string(),
|
|
53
|
-
resource: z.string(),
|
|
54
|
-
operation: z.string(),
|
|
55
|
-
data: UnifiedId$inboundSchema,
|
|
56
|
-
}).transform((v) => {
|
|
57
|
-
return remap$(v, {
|
|
58
|
-
"status_code": "statusCode",
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
/** @internal */
|
|
63
|
-
export type CreatePipelineResponse$Outbound = {
|
|
64
|
-
status_code: number;
|
|
65
|
-
status: string;
|
|
66
|
-
service: string;
|
|
67
|
-
resource: string;
|
|
68
|
-
operation: string;
|
|
69
|
-
data: UnifiedId$Outbound;
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
/** @internal */
|
|
73
|
-
export const CreatePipelineResponse$outboundSchema: z.ZodType<
|
|
74
|
-
CreatePipelineResponse$Outbound,
|
|
75
|
-
z.ZodTypeDef,
|
|
76
|
-
CreatePipelineResponse
|
|
77
|
-
> = z.object({
|
|
78
|
-
statusCode: z.number().int(),
|
|
79
|
-
status: z.string(),
|
|
80
|
-
service: z.string(),
|
|
81
|
-
resource: z.string(),
|
|
82
|
-
operation: z.string(),
|
|
83
|
-
data: UnifiedId$outboundSchema,
|
|
84
|
-
}).transform((v) => {
|
|
85
|
-
return remap$(v, {
|
|
86
|
-
statusCode: "status_code",
|
|
87
|
-
});
|
|
88
|
-
});
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* @internal
|
|
92
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
93
|
-
*/
|
|
94
|
-
export namespace CreatePipelineResponse$ {
|
|
95
|
-
/** @deprecated use `CreatePipelineResponse$inboundSchema` instead. */
|
|
96
|
-
export const inboundSchema = CreatePipelineResponse$inboundSchema;
|
|
97
|
-
/** @deprecated use `CreatePipelineResponse$outboundSchema` instead. */
|
|
98
|
-
export const outboundSchema = CreatePipelineResponse$outboundSchema;
|
|
99
|
-
/** @deprecated use `CreatePipelineResponse$Outbound` instead. */
|
|
100
|
-
export type Outbound = CreatePipelineResponse$Outbound;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export function createPipelineResponseToJSON(
|
|
104
|
-
createPipelineResponse: CreatePipelineResponse,
|
|
105
|
-
): string {
|
|
106
|
-
return JSON.stringify(
|
|
107
|
-
CreatePipelineResponse$outboundSchema.parse(createPipelineResponse),
|
|
108
|
-
);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
export function createPipelineResponseFromJSON(
|
|
112
|
-
jsonString: string,
|
|
113
|
-
): SafeParseResult<CreatePipelineResponse, SDKValidationError> {
|
|
114
|
-
return safeParse(
|
|
115
|
-
jsonString,
|
|
116
|
-
(x) => CreatePipelineResponse$inboundSchema.parse(JSON.parse(x)),
|
|
117
|
-
`Failed to parse 'CreatePipelineResponse' from JSON`,
|
|
118
|
-
);
|
|
119
|
-
}
|
|
@@ -1,119 +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 { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
import {
|
|
11
|
-
UnifiedId,
|
|
12
|
-
UnifiedId$inboundSchema,
|
|
13
|
-
UnifiedId$Outbound,
|
|
14
|
-
UnifiedId$outboundSchema,
|
|
15
|
-
} from "./unifiedid.js";
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Pipeline deleted
|
|
19
|
-
*/
|
|
20
|
-
export type DeletePipelineResponse = {
|
|
21
|
-
/**
|
|
22
|
-
* HTTP Response Status Code
|
|
23
|
-
*/
|
|
24
|
-
statusCode: number;
|
|
25
|
-
/**
|
|
26
|
-
* HTTP Response Status
|
|
27
|
-
*/
|
|
28
|
-
status: string;
|
|
29
|
-
/**
|
|
30
|
-
* Apideck ID of service provider
|
|
31
|
-
*/
|
|
32
|
-
service: string;
|
|
33
|
-
/**
|
|
34
|
-
* Unified API resource name
|
|
35
|
-
*/
|
|
36
|
-
resource: string;
|
|
37
|
-
/**
|
|
38
|
-
* Operation performed
|
|
39
|
-
*/
|
|
40
|
-
operation: string;
|
|
41
|
-
data: UnifiedId;
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
/** @internal */
|
|
45
|
-
export const DeletePipelineResponse$inboundSchema: z.ZodType<
|
|
46
|
-
DeletePipelineResponse,
|
|
47
|
-
z.ZodTypeDef,
|
|
48
|
-
unknown
|
|
49
|
-
> = z.object({
|
|
50
|
-
status_code: z.number().int(),
|
|
51
|
-
status: z.string(),
|
|
52
|
-
service: z.string(),
|
|
53
|
-
resource: z.string(),
|
|
54
|
-
operation: z.string(),
|
|
55
|
-
data: UnifiedId$inboundSchema,
|
|
56
|
-
}).transform((v) => {
|
|
57
|
-
return remap$(v, {
|
|
58
|
-
"status_code": "statusCode",
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
/** @internal */
|
|
63
|
-
export type DeletePipelineResponse$Outbound = {
|
|
64
|
-
status_code: number;
|
|
65
|
-
status: string;
|
|
66
|
-
service: string;
|
|
67
|
-
resource: string;
|
|
68
|
-
operation: string;
|
|
69
|
-
data: UnifiedId$Outbound;
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
/** @internal */
|
|
73
|
-
export const DeletePipelineResponse$outboundSchema: z.ZodType<
|
|
74
|
-
DeletePipelineResponse$Outbound,
|
|
75
|
-
z.ZodTypeDef,
|
|
76
|
-
DeletePipelineResponse
|
|
77
|
-
> = z.object({
|
|
78
|
-
statusCode: z.number().int(),
|
|
79
|
-
status: z.string(),
|
|
80
|
-
service: z.string(),
|
|
81
|
-
resource: z.string(),
|
|
82
|
-
operation: z.string(),
|
|
83
|
-
data: UnifiedId$outboundSchema,
|
|
84
|
-
}).transform((v) => {
|
|
85
|
-
return remap$(v, {
|
|
86
|
-
statusCode: "status_code",
|
|
87
|
-
});
|
|
88
|
-
});
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* @internal
|
|
92
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
93
|
-
*/
|
|
94
|
-
export namespace DeletePipelineResponse$ {
|
|
95
|
-
/** @deprecated use `DeletePipelineResponse$inboundSchema` instead. */
|
|
96
|
-
export const inboundSchema = DeletePipelineResponse$inboundSchema;
|
|
97
|
-
/** @deprecated use `DeletePipelineResponse$outboundSchema` instead. */
|
|
98
|
-
export const outboundSchema = DeletePipelineResponse$outboundSchema;
|
|
99
|
-
/** @deprecated use `DeletePipelineResponse$Outbound` instead. */
|
|
100
|
-
export type Outbound = DeletePipelineResponse$Outbound;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export function deletePipelineResponseToJSON(
|
|
104
|
-
deletePipelineResponse: DeletePipelineResponse,
|
|
105
|
-
): string {
|
|
106
|
-
return JSON.stringify(
|
|
107
|
-
DeletePipelineResponse$outboundSchema.parse(deletePipelineResponse),
|
|
108
|
-
);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
export function deletePipelineResponseFromJSON(
|
|
112
|
-
jsonString: string,
|
|
113
|
-
): SafeParseResult<DeletePipelineResponse, SDKValidationError> {
|
|
114
|
-
return safeParse(
|
|
115
|
-
jsonString,
|
|
116
|
-
(x) => DeletePipelineResponse$inboundSchema.parse(JSON.parse(x)),
|
|
117
|
-
`Failed to parse 'DeletePipelineResponse' from JSON`,
|
|
118
|
-
);
|
|
119
|
-
}
|
|
@@ -1,119 +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 { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
import {
|
|
11
|
-
AgedCreditors,
|
|
12
|
-
AgedCreditors$inboundSchema,
|
|
13
|
-
AgedCreditors$Outbound,
|
|
14
|
-
AgedCreditors$outboundSchema,
|
|
15
|
-
} from "./agedcreditors.js";
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Aged Creditors
|
|
19
|
-
*/
|
|
20
|
-
export type GetAgedCreditorsResponse = {
|
|
21
|
-
/**
|
|
22
|
-
* HTTP Response Status Code
|
|
23
|
-
*/
|
|
24
|
-
statusCode: number;
|
|
25
|
-
/**
|
|
26
|
-
* HTTP Response Status
|
|
27
|
-
*/
|
|
28
|
-
status: string;
|
|
29
|
-
/**
|
|
30
|
-
* Apideck ID of service provider
|
|
31
|
-
*/
|
|
32
|
-
service: string;
|
|
33
|
-
/**
|
|
34
|
-
* Unified API resource name
|
|
35
|
-
*/
|
|
36
|
-
resource: string;
|
|
37
|
-
/**
|
|
38
|
-
* Operation performed
|
|
39
|
-
*/
|
|
40
|
-
operation: string;
|
|
41
|
-
data: AgedCreditors;
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
/** @internal */
|
|
45
|
-
export const GetAgedCreditorsResponse$inboundSchema: z.ZodType<
|
|
46
|
-
GetAgedCreditorsResponse,
|
|
47
|
-
z.ZodTypeDef,
|
|
48
|
-
unknown
|
|
49
|
-
> = z.object({
|
|
50
|
-
status_code: z.number().int(),
|
|
51
|
-
status: z.string(),
|
|
52
|
-
service: z.string(),
|
|
53
|
-
resource: z.string(),
|
|
54
|
-
operation: z.string(),
|
|
55
|
-
data: AgedCreditors$inboundSchema,
|
|
56
|
-
}).transform((v) => {
|
|
57
|
-
return remap$(v, {
|
|
58
|
-
"status_code": "statusCode",
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
/** @internal */
|
|
63
|
-
export type GetAgedCreditorsResponse$Outbound = {
|
|
64
|
-
status_code: number;
|
|
65
|
-
status: string;
|
|
66
|
-
service: string;
|
|
67
|
-
resource: string;
|
|
68
|
-
operation: string;
|
|
69
|
-
data: AgedCreditors$Outbound;
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
/** @internal */
|
|
73
|
-
export const GetAgedCreditorsResponse$outboundSchema: z.ZodType<
|
|
74
|
-
GetAgedCreditorsResponse$Outbound,
|
|
75
|
-
z.ZodTypeDef,
|
|
76
|
-
GetAgedCreditorsResponse
|
|
77
|
-
> = z.object({
|
|
78
|
-
statusCode: z.number().int(),
|
|
79
|
-
status: z.string(),
|
|
80
|
-
service: z.string(),
|
|
81
|
-
resource: z.string(),
|
|
82
|
-
operation: z.string(),
|
|
83
|
-
data: AgedCreditors$outboundSchema,
|
|
84
|
-
}).transform((v) => {
|
|
85
|
-
return remap$(v, {
|
|
86
|
-
statusCode: "status_code",
|
|
87
|
-
});
|
|
88
|
-
});
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* @internal
|
|
92
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
93
|
-
*/
|
|
94
|
-
export namespace GetAgedCreditorsResponse$ {
|
|
95
|
-
/** @deprecated use `GetAgedCreditorsResponse$inboundSchema` instead. */
|
|
96
|
-
export const inboundSchema = GetAgedCreditorsResponse$inboundSchema;
|
|
97
|
-
/** @deprecated use `GetAgedCreditorsResponse$outboundSchema` instead. */
|
|
98
|
-
export const outboundSchema = GetAgedCreditorsResponse$outboundSchema;
|
|
99
|
-
/** @deprecated use `GetAgedCreditorsResponse$Outbound` instead. */
|
|
100
|
-
export type Outbound = GetAgedCreditorsResponse$Outbound;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export function getAgedCreditorsResponseToJSON(
|
|
104
|
-
getAgedCreditorsResponse: GetAgedCreditorsResponse,
|
|
105
|
-
): string {
|
|
106
|
-
return JSON.stringify(
|
|
107
|
-
GetAgedCreditorsResponse$outboundSchema.parse(getAgedCreditorsResponse),
|
|
108
|
-
);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
export function getAgedCreditorsResponseFromJSON(
|
|
112
|
-
jsonString: string,
|
|
113
|
-
): SafeParseResult<GetAgedCreditorsResponse, SDKValidationError> {
|
|
114
|
-
return safeParse(
|
|
115
|
-
jsonString,
|
|
116
|
-
(x) => GetAgedCreditorsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
117
|
-
`Failed to parse 'GetAgedCreditorsResponse' from JSON`,
|
|
118
|
-
);
|
|
119
|
-
}
|