@flexprice/sdk 2.0.12 → 2.0.13
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 +78 -0
- package/docs/sdk/models/dto-create-customer-request.md +0 -1
- package/docs/sdk/models/dto-customer-response.md +1 -0
- package/docs/sdk/models/dto-invoice-response.md +1 -0
- package/docs/sdk/models/{dto-create-entity-integration-mapping-request.md → dto-link-integration-mapping-request.md} +4 -4
- package/docs/sdk/models/dto-link-integration-mapping-response.md +15 -0
- package/docs/sdk/models/dto-update-customer-request.md +0 -1
- package/docs/sdk/models/invoice-status.md +1 -1
- package/docs/sdk/models/schedule-draft-finalization-response.md +16 -0
- package/docs/sdk/models/scheduled-task-interval.md +1 -1
- package/docs/sdks/integrations/README.md +18 -235
- package/docs/sdks/scheduledtasks/README.md +73 -2
- package/esm/funcs/coupons-create-coupon.d.ts +2 -0
- package/esm/funcs/coupons-create-coupon.d.ts.map +1 -1
- package/esm/funcs/coupons-create-coupon.js +3 -1
- package/esm/funcs/coupons-create-coupon.js.map +1 -1
- package/esm/funcs/coupons-delete-coupon.d.ts +2 -0
- package/esm/funcs/coupons-delete-coupon.d.ts.map +1 -1
- package/esm/funcs/coupons-delete-coupon.js +3 -1
- package/esm/funcs/coupons-delete-coupon.js.map +1 -1
- package/esm/funcs/coupons-update-coupon.d.ts +2 -0
- package/esm/funcs/coupons-update-coupon.d.ts.map +1 -1
- package/esm/funcs/coupons-update-coupon.js +3 -1
- package/esm/funcs/coupons-update-coupon.js.map +1 -1
- package/esm/funcs/credit-notes-create-credit-note.d.ts +2 -0
- package/esm/funcs/credit-notes-create-credit-note.d.ts.map +1 -1
- package/esm/funcs/credit-notes-create-credit-note.js +3 -1
- package/esm/funcs/credit-notes-create-credit-note.js.map +1 -1
- package/esm/funcs/credit-notes-process-credit-note.d.ts +2 -0
- package/esm/funcs/credit-notes-process-credit-note.d.ts.map +1 -1
- package/esm/funcs/credit-notes-process-credit-note.js +3 -1
- package/esm/funcs/credit-notes-process-credit-note.js.map +1 -1
- package/esm/funcs/credit-notes-void-credit-note.d.ts +2 -0
- package/esm/funcs/credit-notes-void-credit-note.d.ts.map +1 -1
- package/esm/funcs/credit-notes-void-credit-note.js +3 -1
- package/esm/funcs/credit-notes-void-credit-note.js.map +1 -1
- package/esm/funcs/{integrations-get-integration.d.ts → integrations-link-integration-mapping.d.ts} +4 -4
- package/esm/funcs/integrations-link-integration-mapping.d.ts.map +1 -0
- package/esm/funcs/{entity-integration-mappings-create-entity-integration-mapping.js → integrations-link-integration-mapping.js} +9 -9
- package/esm/funcs/integrations-link-integration-mapping.js.map +1 -0
- package/esm/funcs/scheduled-tasks-schedule-draft-finalization.d.ts +17 -0
- package/esm/funcs/scheduled-tasks-schedule-draft-finalization.d.ts.map +1 -0
- package/esm/funcs/{integrations-list-linked-integrations.js → scheduled-tasks-schedule-draft-finalization.js} +9 -9
- package/esm/funcs/scheduled-tasks-schedule-draft-finalization.js.map +1 -0
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/config.js.map +1 -1
- package/esm/lib/security.d.ts +1 -1
- package/esm/lib/security.d.ts.map +1 -1
- package/esm/lib/security.js +19 -8
- package/esm/lib/security.js.map +1 -1
- package/esm/sdk/integrations.d.ts +3 -24
- package/esm/sdk/integrations.d.ts.map +1 -1
- package/esm/sdk/integrations.js +5 -35
- package/esm/sdk/integrations.js.map +1 -1
- package/esm/sdk/models/dto-create-customer-request.d.ts +0 -6
- package/esm/sdk/models/dto-create-customer-request.d.ts.map +1 -1
- package/esm/sdk/models/dto-create-customer-request.js +0 -3
- package/esm/sdk/models/dto-create-customer-request.js.map +1 -1
- package/esm/sdk/models/dto-customer-response.d.ts +2 -0
- package/esm/sdk/models/dto-customer-response.d.ts.map +1 -1
- package/esm/sdk/models/dto-customer-response.js +2 -0
- package/esm/sdk/models/dto-customer-response.js.map +1 -1
- package/esm/sdk/models/dto-invoice-response.d.ts +4 -0
- package/esm/sdk/models/dto-invoice-response.d.ts.map +1 -1
- package/esm/sdk/models/dto-invoice-response.js +2 -0
- package/esm/sdk/models/dto-invoice-response.js.map +1 -1
- package/esm/sdk/models/dto-link-integration-mapping-request.d.ts +25 -0
- package/esm/sdk/models/dto-link-integration-mapping-request.d.ts.map +1 -0
- package/esm/sdk/models/{dto-create-entity-integration-mapping-request.js → dto-link-integration-mapping-request.js} +4 -4
- package/esm/sdk/models/dto-link-integration-mapping-request.js.map +1 -0
- package/esm/sdk/models/dto-link-integration-mapping-response.d.ts +11 -0
- package/esm/sdk/models/dto-link-integration-mapping-response.d.ts.map +1 -0
- package/esm/sdk/models/dto-link-integration-mapping-response.js +15 -0
- package/esm/sdk/models/dto-link-integration-mapping-response.js.map +1 -0
- package/esm/sdk/models/dto-update-customer-request.d.ts +0 -6
- package/esm/sdk/models/dto-update-customer-request.d.ts.map +1 -1
- package/esm/sdk/models/dto-update-customer-request.js +0 -3
- package/esm/sdk/models/dto-update-customer-request.js.map +1 -1
- package/esm/sdk/models/index.d.ts +3 -8
- package/esm/sdk/models/index.d.ts.map +1 -1
- package/esm/sdk/models/index.js +3 -8
- package/esm/sdk/models/index.js.map +1 -1
- package/esm/sdk/models/invoice-status.d.ts +1 -0
- package/esm/sdk/models/invoice-status.d.ts.map +1 -1
- package/esm/sdk/models/invoice-status.js +1 -0
- package/esm/sdk/models/invoice-status.js.map +1 -1
- package/esm/sdk/models/schedule-draft-finalization-op.d.ts +11 -0
- package/esm/sdk/models/schedule-draft-finalization-op.d.ts.map +1 -0
- package/esm/sdk/models/schedule-draft-finalization-op.js +11 -0
- package/esm/sdk/models/schedule-draft-finalization-op.js.map +1 -0
- package/esm/sdk/models/scheduled-task-interval.d.ts +1 -0
- package/esm/sdk/models/scheduled-task-interval.d.ts.map +1 -1
- package/esm/sdk/models/scheduled-task-interval.js +1 -0
- package/esm/sdk/models/scheduled-task-interval.js.map +1 -1
- package/esm/sdk/models/secret-provider.d.ts +0 -2
- package/esm/sdk/models/secret-provider.d.ts.map +1 -1
- package/esm/sdk/models/secret-provider.js +0 -2
- package/esm/sdk/models/secret-provider.js.map +1 -1
- package/esm/sdk/scheduled-tasks.d.ts +7 -0
- package/esm/sdk/scheduled-tasks.d.ts.map +1 -1
- package/esm/sdk/scheduled-tasks.js +10 -0
- package/esm/sdk/scheduled-tasks.js.map +1 -1
- package/esm/sdk/sdk.d.ts +2 -5
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +4 -9
- package/esm/sdk/sdk.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/coupons-create-coupon.ts +3 -1
- package/src/funcs/coupons-delete-coupon.ts +3 -1
- package/src/funcs/coupons-update-coupon.ts +3 -1
- package/src/funcs/credit-notes-create-credit-note.ts +3 -1
- package/src/funcs/credit-notes-process-credit-note.ts +3 -1
- package/src/funcs/credit-notes-void-credit-note.ts +3 -1
- package/src/funcs/{entity-integration-mappings-create-entity-integration-mapping.ts → integrations-link-integration-mapping.ts} +14 -17
- package/src/funcs/{integrations-list-linked-integrations.ts → scheduled-tasks-schedule-draft-finalization.ts} +12 -11
- package/src/lib/config.ts +3 -3
- package/src/lib/security.ts +14 -2
- package/src/sdk/integrations.ts +8 -62
- package/src/sdk/models/dto-create-customer-request.ts +0 -16
- package/src/sdk/models/dto-customer-response.ts +8 -0
- package/src/sdk/models/dto-invoice-response.ts +6 -0
- package/src/sdk/models/dto-link-integration-mapping-request.ts +59 -0
- package/src/sdk/models/dto-link-integration-mapping-response.ts +35 -0
- package/src/sdk/models/dto-update-customer-request.ts +0 -16
- package/src/sdk/models/index.ts +3 -8
- package/src/sdk/models/invoice-status.ts +1 -0
- package/src/sdk/models/schedule-draft-finalization-op.ts +29 -0
- package/src/sdk/models/scheduled-task-interval.ts +1 -0
- package/src/sdk/models/secret-provider.ts +0 -5
- package/src/sdk/scheduled-tasks.ts +16 -0
- package/src/sdk/sdk.ts +5 -13
- package/docs/sdk/models/create-or-update-integration-request.md +0 -26
- package/docs/sdk/models/delete-entity-integration-mapping-request.md +0 -17
- package/docs/sdk/models/delete-integration-request.md +0 -17
- package/docs/sdk/models/dto-create-integration-request.md +0 -21
- package/docs/sdk/models/dto-integration-entity-mapping.md +0 -21
- package/docs/sdk/models/dto-linked-integrations-response.md +0 -15
- package/docs/sdk/models/get-integration-request.md +0 -17
- package/docs/sdk/models/provider.md +0 -17
- package/docs/sdks/entityintegrationmappings/README.md +0 -160
- package/esm/funcs/entity-integration-mappings-create-entity-integration-mapping.d.ts +0 -17
- package/esm/funcs/entity-integration-mappings-create-entity-integration-mapping.d.ts.map +0 -1
- package/esm/funcs/entity-integration-mappings-create-entity-integration-mapping.js.map +0 -1
- package/esm/funcs/entity-integration-mappings-delete-entity-integration-mapping.d.ts +0 -17
- package/esm/funcs/entity-integration-mappings-delete-entity-integration-mapping.d.ts.map +0 -1
- package/esm/funcs/entity-integration-mappings-delete-entity-integration-mapping.js +0 -90
- package/esm/funcs/entity-integration-mappings-delete-entity-integration-mapping.js.map +0 -1
- package/esm/funcs/integrations-create-or-update-integration.d.ts +0 -17
- package/esm/funcs/integrations-create-or-update-integration.d.ts.map +0 -1
- package/esm/funcs/integrations-create-or-update-integration.js +0 -92
- package/esm/funcs/integrations-create-or-update-integration.js.map +0 -1
- package/esm/funcs/integrations-delete-integration.d.ts +0 -17
- package/esm/funcs/integrations-delete-integration.d.ts.map +0 -1
- package/esm/funcs/integrations-delete-integration.js +0 -90
- package/esm/funcs/integrations-delete-integration.js.map +0 -1
- package/esm/funcs/integrations-get-integration.d.ts.map +0 -1
- package/esm/funcs/integrations-get-integration.js +0 -90
- package/esm/funcs/integrations-get-integration.js.map +0 -1
- package/esm/funcs/integrations-list-linked-integrations.d.ts +0 -17
- package/esm/funcs/integrations-list-linked-integrations.d.ts.map +0 -1
- package/esm/funcs/integrations-list-linked-integrations.js.map +0 -1
- package/esm/sdk/entity-integration-mappings.d.ts +0 -19
- package/esm/sdk/entity-integration-mappings.d.ts.map +0 -1
- package/esm/sdk/entity-integration-mappings.js +0 -28
- package/esm/sdk/entity-integration-mappings.js.map +0 -1
- package/esm/sdk/models/create-or-update-integration-op.d.ts +0 -21
- package/esm/sdk/models/create-or-update-integration-op.d.ts.map +0 -1
- package/esm/sdk/models/create-or-update-integration-op.js +0 -14
- package/esm/sdk/models/create-or-update-integration-op.js.map +0 -1
- package/esm/sdk/models/delete-entity-integration-mapping-op.d.ts +0 -15
- package/esm/sdk/models/delete-entity-integration-mapping-op.d.ts.map +0 -1
- package/esm/sdk/models/delete-entity-integration-mapping-op.js +0 -12
- package/esm/sdk/models/delete-entity-integration-mapping-op.js.map +0 -1
- package/esm/sdk/models/delete-integration-op.d.ts +0 -15
- package/esm/sdk/models/delete-integration-op.d.ts.map +0 -1
- package/esm/sdk/models/delete-integration-op.js +0 -12
- package/esm/sdk/models/delete-integration-op.js.map +0 -1
- package/esm/sdk/models/dto-create-entity-integration-mapping-request.d.ts +0 -25
- package/esm/sdk/models/dto-create-entity-integration-mapping-request.d.ts.map +0 -1
- package/esm/sdk/models/dto-create-entity-integration-mapping-request.js.map +0 -1
- package/esm/sdk/models/dto-create-integration-request.d.ts +0 -21
- package/esm/sdk/models/dto-create-integration-request.d.ts.map +0 -1
- package/esm/sdk/models/dto-create-integration-request.js +0 -15
- package/esm/sdk/models/dto-create-integration-request.js.map +0 -1
- package/esm/sdk/models/dto-integration-entity-mapping.d.ts +0 -38
- package/esm/sdk/models/dto-integration-entity-mapping.d.ts.map +0 -1
- package/esm/sdk/models/dto-integration-entity-mapping.js +0 -23
- package/esm/sdk/models/dto-integration-entity-mapping.js.map +0 -1
- package/esm/sdk/models/dto-linked-integrations-response.d.ts +0 -10
- package/esm/sdk/models/dto-linked-integrations-response.d.ts.map +0 -1
- package/esm/sdk/models/dto-linked-integrations-response.js +0 -14
- package/esm/sdk/models/dto-linked-integrations-response.js.map +0 -1
- package/esm/sdk/models/get-integration-op.d.ts +0 -15
- package/esm/sdk/models/get-integration-op.d.ts.map +0 -1
- package/esm/sdk/models/get-integration-op.js +0 -12
- package/esm/sdk/models/get-integration-op.js.map +0 -1
- package/src/funcs/entity-integration-mappings-delete-entity-integration-mapping.ts +0 -183
- package/src/funcs/integrations-create-or-update-integration.ts +0 -187
- package/src/funcs/integrations-delete-integration.ts +0 -179
- package/src/funcs/integrations-get-integration.ts +0 -181
- package/src/sdk/entity-integration-mappings.ts +0 -45
- package/src/sdk/models/create-or-update-integration-op.ts +0 -46
- package/src/sdk/models/delete-entity-integration-mapping-op.ts +0 -36
- package/src/sdk/models/delete-integration-op.ts +0 -33
- package/src/sdk/models/dto-create-entity-integration-mapping-request.ts +0 -61
- package/src/sdk/models/dto-create-integration-request.ts +0 -42
- package/src/sdk/models/dto-integration-entity-mapping.ts +0 -63
- package/src/sdk/models/dto-linked-integrations-response.ts +0 -31
- package/src/sdk/models/get-integration-op.ts +0 -33
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v4-mini";
|
|
6
|
-
import { FlexpriceCore } from "../core.js";
|
|
7
|
-
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
8
|
-
import * as M from "../lib/matchers.js";
|
|
9
|
-
import { compactMap } from "../lib/primitives.js";
|
|
10
|
-
import { safeParse } from "../lib/schemas.js";
|
|
11
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
-
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
-
import { pathToFunc } from "../lib/url.js";
|
|
14
|
-
import { FlexPriceError } from "../sdk/models/flex-price-error.js";
|
|
15
|
-
import {
|
|
16
|
-
ConnectionError,
|
|
17
|
-
InvalidRequestError,
|
|
18
|
-
RequestAbortedError,
|
|
19
|
-
RequestTimeoutError,
|
|
20
|
-
UnexpectedClientError,
|
|
21
|
-
} from "../sdk/models/http-client-errors.js";
|
|
22
|
-
import * as models from "../sdk/models/index.js";
|
|
23
|
-
import { ResponseValidationError } from "../sdk/models/response-validation-error.js";
|
|
24
|
-
import { SDKValidationError } from "../sdk/models/sdk-validation-error.js";
|
|
25
|
-
import { APICall, APIPromise } from "../types/async.js";
|
|
26
|
-
import { Result } from "../types/fp.js";
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Create or update an integration
|
|
30
|
-
*
|
|
31
|
-
* @remarks
|
|
32
|
-
* Use when storing or updating credentials for an external integration (e.g. Stripe, HubSpot). Secrets are encrypted at rest.
|
|
33
|
-
*/
|
|
34
|
-
export function integrationsCreateOrUpdateIntegration(
|
|
35
|
-
client: FlexpriceCore,
|
|
36
|
-
provider: string,
|
|
37
|
-
body: models.DtoCreateIntegrationRequest,
|
|
38
|
-
options?: RequestOptions,
|
|
39
|
-
): APIPromise<
|
|
40
|
-
Result<
|
|
41
|
-
models.DtoSecretResponse,
|
|
42
|
-
| models.ErrorsErrorsErrorResponse
|
|
43
|
-
| FlexPriceError
|
|
44
|
-
| ResponseValidationError
|
|
45
|
-
| ConnectionError
|
|
46
|
-
| RequestAbortedError
|
|
47
|
-
| RequestTimeoutError
|
|
48
|
-
| InvalidRequestError
|
|
49
|
-
| UnexpectedClientError
|
|
50
|
-
| SDKValidationError
|
|
51
|
-
>
|
|
52
|
-
> {
|
|
53
|
-
return new APIPromise($do(
|
|
54
|
-
client,
|
|
55
|
-
provider,
|
|
56
|
-
body,
|
|
57
|
-
options,
|
|
58
|
-
));
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
async function $do(
|
|
62
|
-
client: FlexpriceCore,
|
|
63
|
-
provider: string,
|
|
64
|
-
body: models.DtoCreateIntegrationRequest,
|
|
65
|
-
options?: RequestOptions,
|
|
66
|
-
): Promise<
|
|
67
|
-
[
|
|
68
|
-
Result<
|
|
69
|
-
models.DtoSecretResponse,
|
|
70
|
-
| models.ErrorsErrorsErrorResponse
|
|
71
|
-
| FlexPriceError
|
|
72
|
-
| ResponseValidationError
|
|
73
|
-
| ConnectionError
|
|
74
|
-
| RequestAbortedError
|
|
75
|
-
| RequestTimeoutError
|
|
76
|
-
| InvalidRequestError
|
|
77
|
-
| UnexpectedClientError
|
|
78
|
-
| SDKValidationError
|
|
79
|
-
>,
|
|
80
|
-
APICall,
|
|
81
|
-
]
|
|
82
|
-
> {
|
|
83
|
-
const input: models.CreateOrUpdateIntegrationRequest = {
|
|
84
|
-
provider: provider,
|
|
85
|
-
body: body,
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
const parsed = safeParse(
|
|
89
|
-
input,
|
|
90
|
-
(value) =>
|
|
91
|
-
z.parse(models.CreateOrUpdateIntegrationRequest$outboundSchema, value),
|
|
92
|
-
"Input validation failed",
|
|
93
|
-
);
|
|
94
|
-
if (!parsed.ok) {
|
|
95
|
-
return [parsed, { status: "invalid" }];
|
|
96
|
-
}
|
|
97
|
-
const payload = parsed.value;
|
|
98
|
-
const body$ = encodeJSON("body", payload.body, { explode: true });
|
|
99
|
-
|
|
100
|
-
const pathParams = {
|
|
101
|
-
provider: encodeSimple("provider", payload.provider, {
|
|
102
|
-
explode: false,
|
|
103
|
-
charEncoding: "percent",
|
|
104
|
-
}),
|
|
105
|
-
};
|
|
106
|
-
const path = pathToFunc("/secrets/integrations/create/{provider}")(
|
|
107
|
-
pathParams,
|
|
108
|
-
);
|
|
109
|
-
|
|
110
|
-
const headers = new Headers(compactMap({
|
|
111
|
-
"Content-Type": "application/json",
|
|
112
|
-
Accept: "application/json",
|
|
113
|
-
}));
|
|
114
|
-
|
|
115
|
-
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
116
|
-
const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
|
|
117
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
118
|
-
|
|
119
|
-
const context = {
|
|
120
|
-
options: client._options,
|
|
121
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
122
|
-
operationID: "createOrUpdateIntegration",
|
|
123
|
-
oAuth2Scopes: null,
|
|
124
|
-
|
|
125
|
-
resolvedSecurity: requestSecurity,
|
|
126
|
-
|
|
127
|
-
securitySource: client._options.apiKeyAuth,
|
|
128
|
-
retryConfig: options?.retries
|
|
129
|
-
|| client._options.retryConfig
|
|
130
|
-
|| { strategy: "none" },
|
|
131
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
132
|
-
};
|
|
133
|
-
|
|
134
|
-
const requestRes = client._createRequest(context, {
|
|
135
|
-
security: requestSecurity,
|
|
136
|
-
method: "POST",
|
|
137
|
-
baseURL: options?.serverURL,
|
|
138
|
-
path: path,
|
|
139
|
-
headers: headers,
|
|
140
|
-
body: body$,
|
|
141
|
-
userAgent: client._options.userAgent,
|
|
142
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
143
|
-
}, options);
|
|
144
|
-
if (!requestRes.ok) {
|
|
145
|
-
return [requestRes, { status: "invalid" }];
|
|
146
|
-
}
|
|
147
|
-
const req = requestRes.value;
|
|
148
|
-
|
|
149
|
-
const doResult = await client._do(req, {
|
|
150
|
-
context,
|
|
151
|
-
errorCodes: ["400", "4XX", "500", "5XX"],
|
|
152
|
-
retryConfig: context.retryConfig,
|
|
153
|
-
retryCodes: context.retryCodes,
|
|
154
|
-
});
|
|
155
|
-
if (!doResult.ok) {
|
|
156
|
-
return [doResult, { status: "request-error", request: req }];
|
|
157
|
-
}
|
|
158
|
-
const response = doResult.value;
|
|
159
|
-
|
|
160
|
-
const responseFields = {
|
|
161
|
-
HttpMeta: { Response: response, Request: req },
|
|
162
|
-
};
|
|
163
|
-
|
|
164
|
-
const [result] = await M.match<
|
|
165
|
-
models.DtoSecretResponse,
|
|
166
|
-
| models.ErrorsErrorsErrorResponse
|
|
167
|
-
| FlexPriceError
|
|
168
|
-
| ResponseValidationError
|
|
169
|
-
| ConnectionError
|
|
170
|
-
| RequestAbortedError
|
|
171
|
-
| RequestTimeoutError
|
|
172
|
-
| InvalidRequestError
|
|
173
|
-
| UnexpectedClientError
|
|
174
|
-
| SDKValidationError
|
|
175
|
-
>(
|
|
176
|
-
M.json(201, models.DtoSecretResponse$inboundSchema),
|
|
177
|
-
M.jsonErr(400, models.ErrorsErrorsErrorResponse$inboundSchema),
|
|
178
|
-
M.jsonErr(500, models.ErrorsErrorsErrorResponse$inboundSchema),
|
|
179
|
-
M.fail("4XX"),
|
|
180
|
-
M.fail("5XX"),
|
|
181
|
-
)(response, req, { extraFields: responseFields });
|
|
182
|
-
if (!result.ok) {
|
|
183
|
-
return [result, { status: "complete", request: req, response }];
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
return [result, { status: "complete", request: req, response }];
|
|
187
|
-
}
|
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v4-mini";
|
|
6
|
-
import { FlexpriceCore } from "../core.js";
|
|
7
|
-
import { encodeSimple } from "../lib/encodings.js";
|
|
8
|
-
import * as M from "../lib/matchers.js";
|
|
9
|
-
import { compactMap } from "../lib/primitives.js";
|
|
10
|
-
import { safeParse } from "../lib/schemas.js";
|
|
11
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
-
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
-
import { pathToFunc } from "../lib/url.js";
|
|
14
|
-
import { FlexPriceError } from "../sdk/models/flex-price-error.js";
|
|
15
|
-
import {
|
|
16
|
-
ConnectionError,
|
|
17
|
-
InvalidRequestError,
|
|
18
|
-
RequestAbortedError,
|
|
19
|
-
RequestTimeoutError,
|
|
20
|
-
UnexpectedClientError,
|
|
21
|
-
} from "../sdk/models/http-client-errors.js";
|
|
22
|
-
import * as models from "../sdk/models/index.js";
|
|
23
|
-
import { ResponseValidationError } from "../sdk/models/response-validation-error.js";
|
|
24
|
-
import { SDKValidationError } from "../sdk/models/sdk-validation-error.js";
|
|
25
|
-
import { APICall, APIPromise } from "../types/async.js";
|
|
26
|
-
import { Result } from "../types/fp.js";
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Delete an integration
|
|
30
|
-
*
|
|
31
|
-
* @remarks
|
|
32
|
-
* Use when disconnecting an integration (e.g. switching provider or removing OAuth). Deletes stored credentials.
|
|
33
|
-
*/
|
|
34
|
-
export function integrationsDeleteIntegration(
|
|
35
|
-
client: FlexpriceCore,
|
|
36
|
-
id: string,
|
|
37
|
-
options?: RequestOptions,
|
|
38
|
-
): APIPromise<
|
|
39
|
-
Result<
|
|
40
|
-
void,
|
|
41
|
-
| models.ErrorsErrorsErrorResponse
|
|
42
|
-
| FlexPriceError
|
|
43
|
-
| ResponseValidationError
|
|
44
|
-
| ConnectionError
|
|
45
|
-
| RequestAbortedError
|
|
46
|
-
| RequestTimeoutError
|
|
47
|
-
| InvalidRequestError
|
|
48
|
-
| UnexpectedClientError
|
|
49
|
-
| SDKValidationError
|
|
50
|
-
>
|
|
51
|
-
> {
|
|
52
|
-
return new APIPromise($do(
|
|
53
|
-
client,
|
|
54
|
-
id,
|
|
55
|
-
options,
|
|
56
|
-
));
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
async function $do(
|
|
60
|
-
client: FlexpriceCore,
|
|
61
|
-
id: string,
|
|
62
|
-
options?: RequestOptions,
|
|
63
|
-
): Promise<
|
|
64
|
-
[
|
|
65
|
-
Result<
|
|
66
|
-
void,
|
|
67
|
-
| models.ErrorsErrorsErrorResponse
|
|
68
|
-
| FlexPriceError
|
|
69
|
-
| ResponseValidationError
|
|
70
|
-
| ConnectionError
|
|
71
|
-
| RequestAbortedError
|
|
72
|
-
| RequestTimeoutError
|
|
73
|
-
| InvalidRequestError
|
|
74
|
-
| UnexpectedClientError
|
|
75
|
-
| SDKValidationError
|
|
76
|
-
>,
|
|
77
|
-
APICall,
|
|
78
|
-
]
|
|
79
|
-
> {
|
|
80
|
-
const input: models.DeleteIntegrationRequest = {
|
|
81
|
-
id: id,
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
const parsed = safeParse(
|
|
85
|
-
input,
|
|
86
|
-
(value) => z.parse(models.DeleteIntegrationRequest$outboundSchema, value),
|
|
87
|
-
"Input validation failed",
|
|
88
|
-
);
|
|
89
|
-
if (!parsed.ok) {
|
|
90
|
-
return [parsed, { status: "invalid" }];
|
|
91
|
-
}
|
|
92
|
-
const payload = parsed.value;
|
|
93
|
-
const body = null;
|
|
94
|
-
|
|
95
|
-
const pathParams = {
|
|
96
|
-
id: encodeSimple("id", payload.id, {
|
|
97
|
-
explode: false,
|
|
98
|
-
charEncoding: "percent",
|
|
99
|
-
}),
|
|
100
|
-
};
|
|
101
|
-
const path = pathToFunc("/secrets/integrations/{id}")(pathParams);
|
|
102
|
-
|
|
103
|
-
const headers = new Headers(compactMap({
|
|
104
|
-
Accept: "application/json",
|
|
105
|
-
}));
|
|
106
|
-
|
|
107
|
-
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
108
|
-
const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
|
|
109
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
110
|
-
|
|
111
|
-
const context = {
|
|
112
|
-
options: client._options,
|
|
113
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
114
|
-
operationID: "deleteIntegration",
|
|
115
|
-
oAuth2Scopes: null,
|
|
116
|
-
|
|
117
|
-
resolvedSecurity: requestSecurity,
|
|
118
|
-
|
|
119
|
-
securitySource: client._options.apiKeyAuth,
|
|
120
|
-
retryConfig: options?.retries
|
|
121
|
-
|| client._options.retryConfig
|
|
122
|
-
|| { strategy: "none" },
|
|
123
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
124
|
-
};
|
|
125
|
-
|
|
126
|
-
const requestRes = client._createRequest(context, {
|
|
127
|
-
security: requestSecurity,
|
|
128
|
-
method: "DELETE",
|
|
129
|
-
baseURL: options?.serverURL,
|
|
130
|
-
path: path,
|
|
131
|
-
headers: headers,
|
|
132
|
-
body: body,
|
|
133
|
-
userAgent: client._options.userAgent,
|
|
134
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
135
|
-
}, options);
|
|
136
|
-
if (!requestRes.ok) {
|
|
137
|
-
return [requestRes, { status: "invalid" }];
|
|
138
|
-
}
|
|
139
|
-
const req = requestRes.value;
|
|
140
|
-
|
|
141
|
-
const doResult = await client._do(req, {
|
|
142
|
-
context,
|
|
143
|
-
errorCodes: ["404", "4XX", "500", "5XX"],
|
|
144
|
-
retryConfig: context.retryConfig,
|
|
145
|
-
retryCodes: context.retryCodes,
|
|
146
|
-
});
|
|
147
|
-
if (!doResult.ok) {
|
|
148
|
-
return [doResult, { status: "request-error", request: req }];
|
|
149
|
-
}
|
|
150
|
-
const response = doResult.value;
|
|
151
|
-
|
|
152
|
-
const responseFields = {
|
|
153
|
-
HttpMeta: { Response: response, Request: req },
|
|
154
|
-
};
|
|
155
|
-
|
|
156
|
-
const [result] = await M.match<
|
|
157
|
-
void,
|
|
158
|
-
| models.ErrorsErrorsErrorResponse
|
|
159
|
-
| FlexPriceError
|
|
160
|
-
| ResponseValidationError
|
|
161
|
-
| ConnectionError
|
|
162
|
-
| RequestAbortedError
|
|
163
|
-
| RequestTimeoutError
|
|
164
|
-
| InvalidRequestError
|
|
165
|
-
| UnexpectedClientError
|
|
166
|
-
| SDKValidationError
|
|
167
|
-
>(
|
|
168
|
-
M.nil(204, z.void()),
|
|
169
|
-
M.jsonErr(404, models.ErrorsErrorsErrorResponse$inboundSchema),
|
|
170
|
-
M.jsonErr(500, models.ErrorsErrorsErrorResponse$inboundSchema),
|
|
171
|
-
M.fail("4XX"),
|
|
172
|
-
M.fail("5XX"),
|
|
173
|
-
)(response, req, { extraFields: responseFields });
|
|
174
|
-
if (!result.ok) {
|
|
175
|
-
return [result, { status: "complete", request: req, response }];
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
return [result, { status: "complete", request: req, response }];
|
|
179
|
-
}
|
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v4-mini";
|
|
6
|
-
import { FlexpriceCore } from "../core.js";
|
|
7
|
-
import { encodeSimple } from "../lib/encodings.js";
|
|
8
|
-
import * as M from "../lib/matchers.js";
|
|
9
|
-
import { compactMap } from "../lib/primitives.js";
|
|
10
|
-
import { safeParse } from "../lib/schemas.js";
|
|
11
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
-
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
-
import { pathToFunc } from "../lib/url.js";
|
|
14
|
-
import { FlexPriceError } from "../sdk/models/flex-price-error.js";
|
|
15
|
-
import {
|
|
16
|
-
ConnectionError,
|
|
17
|
-
InvalidRequestError,
|
|
18
|
-
RequestAbortedError,
|
|
19
|
-
RequestTimeoutError,
|
|
20
|
-
UnexpectedClientError,
|
|
21
|
-
} from "../sdk/models/http-client-errors.js";
|
|
22
|
-
import * as models from "../sdk/models/index.js";
|
|
23
|
-
import { ResponseValidationError } from "../sdk/models/response-validation-error.js";
|
|
24
|
-
import { SDKValidationError } from "../sdk/models/sdk-validation-error.js";
|
|
25
|
-
import { APICall, APIPromise } from "../types/async.js";
|
|
26
|
-
import { Result } from "../types/fp.js";
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Get integration details
|
|
30
|
-
*
|
|
31
|
-
* @remarks
|
|
32
|
-
* Use when you need to check or display integration config (e.g. which provider is linked). Sensitive values may be redacted.
|
|
33
|
-
*/
|
|
34
|
-
export function integrationsGetIntegration(
|
|
35
|
-
client: FlexpriceCore,
|
|
36
|
-
provider: string,
|
|
37
|
-
options?: RequestOptions,
|
|
38
|
-
): APIPromise<
|
|
39
|
-
Result<
|
|
40
|
-
models.DtoSecretResponse,
|
|
41
|
-
| models.ErrorsErrorsErrorResponse
|
|
42
|
-
| FlexPriceError
|
|
43
|
-
| ResponseValidationError
|
|
44
|
-
| ConnectionError
|
|
45
|
-
| RequestAbortedError
|
|
46
|
-
| RequestTimeoutError
|
|
47
|
-
| InvalidRequestError
|
|
48
|
-
| UnexpectedClientError
|
|
49
|
-
| SDKValidationError
|
|
50
|
-
>
|
|
51
|
-
> {
|
|
52
|
-
return new APIPromise($do(
|
|
53
|
-
client,
|
|
54
|
-
provider,
|
|
55
|
-
options,
|
|
56
|
-
));
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
async function $do(
|
|
60
|
-
client: FlexpriceCore,
|
|
61
|
-
provider: string,
|
|
62
|
-
options?: RequestOptions,
|
|
63
|
-
): Promise<
|
|
64
|
-
[
|
|
65
|
-
Result<
|
|
66
|
-
models.DtoSecretResponse,
|
|
67
|
-
| models.ErrorsErrorsErrorResponse
|
|
68
|
-
| FlexPriceError
|
|
69
|
-
| ResponseValidationError
|
|
70
|
-
| ConnectionError
|
|
71
|
-
| RequestAbortedError
|
|
72
|
-
| RequestTimeoutError
|
|
73
|
-
| InvalidRequestError
|
|
74
|
-
| UnexpectedClientError
|
|
75
|
-
| SDKValidationError
|
|
76
|
-
>,
|
|
77
|
-
APICall,
|
|
78
|
-
]
|
|
79
|
-
> {
|
|
80
|
-
const input: models.GetIntegrationRequest = {
|
|
81
|
-
provider: provider,
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
const parsed = safeParse(
|
|
85
|
-
input,
|
|
86
|
-
(value) => z.parse(models.GetIntegrationRequest$outboundSchema, value),
|
|
87
|
-
"Input validation failed",
|
|
88
|
-
);
|
|
89
|
-
if (!parsed.ok) {
|
|
90
|
-
return [parsed, { status: "invalid" }];
|
|
91
|
-
}
|
|
92
|
-
const payload = parsed.value;
|
|
93
|
-
const body = null;
|
|
94
|
-
|
|
95
|
-
const pathParams = {
|
|
96
|
-
provider: encodeSimple("provider", payload.provider, {
|
|
97
|
-
explode: false,
|
|
98
|
-
charEncoding: "percent",
|
|
99
|
-
}),
|
|
100
|
-
};
|
|
101
|
-
const path = pathToFunc("/secrets/integrations/by-provider/{provider}")(
|
|
102
|
-
pathParams,
|
|
103
|
-
);
|
|
104
|
-
|
|
105
|
-
const headers = new Headers(compactMap({
|
|
106
|
-
Accept: "application/json",
|
|
107
|
-
}));
|
|
108
|
-
|
|
109
|
-
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
110
|
-
const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
|
|
111
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
112
|
-
|
|
113
|
-
const context = {
|
|
114
|
-
options: client._options,
|
|
115
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
116
|
-
operationID: "getIntegration",
|
|
117
|
-
oAuth2Scopes: null,
|
|
118
|
-
|
|
119
|
-
resolvedSecurity: requestSecurity,
|
|
120
|
-
|
|
121
|
-
securitySource: client._options.apiKeyAuth,
|
|
122
|
-
retryConfig: options?.retries
|
|
123
|
-
|| client._options.retryConfig
|
|
124
|
-
|| { strategy: "none" },
|
|
125
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
126
|
-
};
|
|
127
|
-
|
|
128
|
-
const requestRes = client._createRequest(context, {
|
|
129
|
-
security: requestSecurity,
|
|
130
|
-
method: "GET",
|
|
131
|
-
baseURL: options?.serverURL,
|
|
132
|
-
path: path,
|
|
133
|
-
headers: headers,
|
|
134
|
-
body: body,
|
|
135
|
-
userAgent: client._options.userAgent,
|
|
136
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
137
|
-
}, options);
|
|
138
|
-
if (!requestRes.ok) {
|
|
139
|
-
return [requestRes, { status: "invalid" }];
|
|
140
|
-
}
|
|
141
|
-
const req = requestRes.value;
|
|
142
|
-
|
|
143
|
-
const doResult = await client._do(req, {
|
|
144
|
-
context,
|
|
145
|
-
errorCodes: ["404", "4XX", "500", "5XX"],
|
|
146
|
-
retryConfig: context.retryConfig,
|
|
147
|
-
retryCodes: context.retryCodes,
|
|
148
|
-
});
|
|
149
|
-
if (!doResult.ok) {
|
|
150
|
-
return [doResult, { status: "request-error", request: req }];
|
|
151
|
-
}
|
|
152
|
-
const response = doResult.value;
|
|
153
|
-
|
|
154
|
-
const responseFields = {
|
|
155
|
-
HttpMeta: { Response: response, Request: req },
|
|
156
|
-
};
|
|
157
|
-
|
|
158
|
-
const [result] = await M.match<
|
|
159
|
-
models.DtoSecretResponse,
|
|
160
|
-
| models.ErrorsErrorsErrorResponse
|
|
161
|
-
| FlexPriceError
|
|
162
|
-
| ResponseValidationError
|
|
163
|
-
| ConnectionError
|
|
164
|
-
| RequestAbortedError
|
|
165
|
-
| RequestTimeoutError
|
|
166
|
-
| InvalidRequestError
|
|
167
|
-
| UnexpectedClientError
|
|
168
|
-
| SDKValidationError
|
|
169
|
-
>(
|
|
170
|
-
M.json(200, models.DtoSecretResponse$inboundSchema),
|
|
171
|
-
M.jsonErr(404, models.ErrorsErrorsErrorResponse$inboundSchema),
|
|
172
|
-
M.jsonErr(500, models.ErrorsErrorsErrorResponse$inboundSchema),
|
|
173
|
-
M.fail("4XX"),
|
|
174
|
-
M.fail("5XX"),
|
|
175
|
-
)(response, req, { extraFields: responseFields });
|
|
176
|
-
if (!result.ok) {
|
|
177
|
-
return [result, { status: "complete", request: req, response }];
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
return [result, { status: "complete", request: req, response }];
|
|
181
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { entityIntegrationMappingsCreateEntityIntegrationMapping } from "../funcs/entity-integration-mappings-create-entity-integration-mapping.js";
|
|
6
|
-
import { entityIntegrationMappingsDeleteEntityIntegrationMapping } from "../funcs/entity-integration-mappings-delete-entity-integration-mapping.js";
|
|
7
|
-
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
8
|
-
import { unwrapAsync } from "../types/fp.js";
|
|
9
|
-
import * as models from "./models/index.js";
|
|
10
|
-
|
|
11
|
-
export class EntityIntegrationMappings extends ClientSDK {
|
|
12
|
-
/**
|
|
13
|
-
* Create entity integration mapping
|
|
14
|
-
*
|
|
15
|
-
* @remarks
|
|
16
|
-
* Use when linking a FlexPrice entity to an external system (e.g. CRM or payment provider) so you can sync or reconcile by external ID.
|
|
17
|
-
*/
|
|
18
|
-
async createEntityIntegrationMapping(
|
|
19
|
-
request: models.DtoCreateEntityIntegrationMappingRequest,
|
|
20
|
-
options?: RequestOptions,
|
|
21
|
-
): Promise<models.DtoEntityIntegrationMappingResponse> {
|
|
22
|
-
return unwrapAsync(entityIntegrationMappingsCreateEntityIntegrationMapping(
|
|
23
|
-
this,
|
|
24
|
-
request,
|
|
25
|
-
options,
|
|
26
|
-
));
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Delete entity integration mapping
|
|
31
|
-
*
|
|
32
|
-
* @remarks
|
|
33
|
-
* Use when unlinking a FlexPrice entity from an external system or cleaning up stale integration mappings.
|
|
34
|
-
*/
|
|
35
|
-
async deleteEntityIntegrationMapping(
|
|
36
|
-
id: string,
|
|
37
|
-
options?: RequestOptions,
|
|
38
|
-
): Promise<void> {
|
|
39
|
-
return unwrapAsync(entityIntegrationMappingsDeleteEntityIntegrationMapping(
|
|
40
|
-
this,
|
|
41
|
-
id,
|
|
42
|
-
options,
|
|
43
|
-
));
|
|
44
|
-
}
|
|
45
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v4-mini";
|
|
6
|
-
import {
|
|
7
|
-
DtoCreateIntegrationRequest,
|
|
8
|
-
DtoCreateIntegrationRequest$Outbound,
|
|
9
|
-
DtoCreateIntegrationRequest$outboundSchema,
|
|
10
|
-
} from "./dto-create-integration-request.js";
|
|
11
|
-
|
|
12
|
-
export type CreateOrUpdateIntegrationRequest = {
|
|
13
|
-
/**
|
|
14
|
-
* Integration provider
|
|
15
|
-
*/
|
|
16
|
-
provider: string;
|
|
17
|
-
/**
|
|
18
|
-
* Integration creation request
|
|
19
|
-
*/
|
|
20
|
-
body: DtoCreateIntegrationRequest;
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
/** @internal */
|
|
24
|
-
export type CreateOrUpdateIntegrationRequest$Outbound = {
|
|
25
|
-
provider: string;
|
|
26
|
-
body: DtoCreateIntegrationRequest$Outbound;
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
/** @internal */
|
|
30
|
-
export const CreateOrUpdateIntegrationRequest$outboundSchema: z.ZodMiniType<
|
|
31
|
-
CreateOrUpdateIntegrationRequest$Outbound,
|
|
32
|
-
CreateOrUpdateIntegrationRequest
|
|
33
|
-
> = z.object({
|
|
34
|
-
provider: z.string(),
|
|
35
|
-
body: DtoCreateIntegrationRequest$outboundSchema,
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
export function createOrUpdateIntegrationRequestToJSON(
|
|
39
|
-
createOrUpdateIntegrationRequest: CreateOrUpdateIntegrationRequest,
|
|
40
|
-
): string {
|
|
41
|
-
return JSON.stringify(
|
|
42
|
-
CreateOrUpdateIntegrationRequest$outboundSchema.parse(
|
|
43
|
-
createOrUpdateIntegrationRequest,
|
|
44
|
-
),
|
|
45
|
-
);
|
|
46
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v4-mini";
|
|
6
|
-
|
|
7
|
-
export type DeleteEntityIntegrationMappingRequest = {
|
|
8
|
-
/**
|
|
9
|
-
* Entity integration mapping ID
|
|
10
|
-
*/
|
|
11
|
-
id: string;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
/** @internal */
|
|
15
|
-
export type DeleteEntityIntegrationMappingRequest$Outbound = {
|
|
16
|
-
id: string;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
/** @internal */
|
|
20
|
-
export const DeleteEntityIntegrationMappingRequest$outboundSchema:
|
|
21
|
-
z.ZodMiniType<
|
|
22
|
-
DeleteEntityIntegrationMappingRequest$Outbound,
|
|
23
|
-
DeleteEntityIntegrationMappingRequest
|
|
24
|
-
> = z.object({
|
|
25
|
-
id: z.string(),
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
export function deleteEntityIntegrationMappingRequestToJSON(
|
|
29
|
-
deleteEntityIntegrationMappingRequest: DeleteEntityIntegrationMappingRequest,
|
|
30
|
-
): string {
|
|
31
|
-
return JSON.stringify(
|
|
32
|
-
DeleteEntityIntegrationMappingRequest$outboundSchema.parse(
|
|
33
|
-
deleteEntityIntegrationMappingRequest,
|
|
34
|
-
),
|
|
35
|
-
);
|
|
36
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v4-mini";
|
|
6
|
-
|
|
7
|
-
export type DeleteIntegrationRequest = {
|
|
8
|
-
/**
|
|
9
|
-
* Integration ID
|
|
10
|
-
*/
|
|
11
|
-
id: string;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
/** @internal */
|
|
15
|
-
export type DeleteIntegrationRequest$Outbound = {
|
|
16
|
-
id: string;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
/** @internal */
|
|
20
|
-
export const DeleteIntegrationRequest$outboundSchema: z.ZodMiniType<
|
|
21
|
-
DeleteIntegrationRequest$Outbound,
|
|
22
|
-
DeleteIntegrationRequest
|
|
23
|
-
> = z.object({
|
|
24
|
-
id: z.string(),
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
export function deleteIntegrationRequestToJSON(
|
|
28
|
-
deleteIntegrationRequest: DeleteIntegrationRequest,
|
|
29
|
-
): string {
|
|
30
|
-
return JSON.stringify(
|
|
31
|
-
DeleteIntegrationRequest$outboundSchema.parse(deleteIntegrationRequest),
|
|
32
|
-
);
|
|
33
|
-
}
|