@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,61 +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 { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import {
|
|
8
|
-
IntegrationEntityType,
|
|
9
|
-
IntegrationEntityType$outboundSchema,
|
|
10
|
-
} from "./integration-entity-type.js";
|
|
11
|
-
|
|
12
|
-
export type DtoCreateEntityIntegrationMappingRequest = {
|
|
13
|
-
entityId: string;
|
|
14
|
-
entityType: IntegrationEntityType;
|
|
15
|
-
metadata?: { [k: string]: any } | undefined;
|
|
16
|
-
providerEntityId: string;
|
|
17
|
-
providerType: string;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
/** @internal */
|
|
21
|
-
export type DtoCreateEntityIntegrationMappingRequest$Outbound = {
|
|
22
|
-
entity_id: string;
|
|
23
|
-
entity_type: string;
|
|
24
|
-
metadata?: { [k: string]: any } | undefined;
|
|
25
|
-
provider_entity_id: string;
|
|
26
|
-
provider_type: string;
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
/** @internal */
|
|
30
|
-
export const DtoCreateEntityIntegrationMappingRequest$outboundSchema:
|
|
31
|
-
z.ZodMiniType<
|
|
32
|
-
DtoCreateEntityIntegrationMappingRequest$Outbound,
|
|
33
|
-
DtoCreateEntityIntegrationMappingRequest
|
|
34
|
-
> = z.pipe(
|
|
35
|
-
z.object({
|
|
36
|
-
entityId: z.string(),
|
|
37
|
-
entityType: IntegrationEntityType$outboundSchema,
|
|
38
|
-
metadata: z.optional(z.record(z.string(), z.any())),
|
|
39
|
-
providerEntityId: z.string(),
|
|
40
|
-
providerType: z.string(),
|
|
41
|
-
}),
|
|
42
|
-
z.transform((v) => {
|
|
43
|
-
return remap$(v, {
|
|
44
|
-
entityId: "entity_id",
|
|
45
|
-
entityType: "entity_type",
|
|
46
|
-
providerEntityId: "provider_entity_id",
|
|
47
|
-
providerType: "provider_type",
|
|
48
|
-
});
|
|
49
|
-
}),
|
|
50
|
-
);
|
|
51
|
-
|
|
52
|
-
export function dtoCreateEntityIntegrationMappingRequestToJSON(
|
|
53
|
-
dtoCreateEntityIntegrationMappingRequest:
|
|
54
|
-
DtoCreateEntityIntegrationMappingRequest,
|
|
55
|
-
): string {
|
|
56
|
-
return JSON.stringify(
|
|
57
|
-
DtoCreateEntityIntegrationMappingRequest$outboundSchema.parse(
|
|
58
|
-
dtoCreateEntityIntegrationMappingRequest,
|
|
59
|
-
),
|
|
60
|
-
);
|
|
61
|
-
}
|
|
@@ -1,42 +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
|
-
SecretProvider,
|
|
8
|
-
SecretProvider$outboundSchema,
|
|
9
|
-
} from "./secret-provider.js";
|
|
10
|
-
|
|
11
|
-
export type DtoCreateIntegrationRequest = {
|
|
12
|
-
credentials: { [k: string]: string };
|
|
13
|
-
name: string;
|
|
14
|
-
provider: SecretProvider;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
/** @internal */
|
|
18
|
-
export type DtoCreateIntegrationRequest$Outbound = {
|
|
19
|
-
credentials: { [k: string]: string };
|
|
20
|
-
name: string;
|
|
21
|
-
provider: string;
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
/** @internal */
|
|
25
|
-
export const DtoCreateIntegrationRequest$outboundSchema: z.ZodMiniType<
|
|
26
|
-
DtoCreateIntegrationRequest$Outbound,
|
|
27
|
-
DtoCreateIntegrationRequest
|
|
28
|
-
> = z.object({
|
|
29
|
-
credentials: z.record(z.string(), z.string()),
|
|
30
|
-
name: z.string(),
|
|
31
|
-
provider: SecretProvider$outboundSchema,
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
export function dtoCreateIntegrationRequestToJSON(
|
|
35
|
-
dtoCreateIntegrationRequest: DtoCreateIntegrationRequest,
|
|
36
|
-
): string {
|
|
37
|
-
return JSON.stringify(
|
|
38
|
-
DtoCreateIntegrationRequest$outboundSchema.parse(
|
|
39
|
-
dtoCreateIntegrationRequest,
|
|
40
|
-
),
|
|
41
|
-
);
|
|
42
|
-
}
|
|
@@ -1,63 +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 { ClosedEnum } from "../../types/enums.js";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* provider is the integration provider name (e.g., "stripe", "razorpay")
|
|
10
|
-
*/
|
|
11
|
-
export const Provider = {
|
|
12
|
-
Stripe: "stripe",
|
|
13
|
-
Razorpay: "razorpay",
|
|
14
|
-
Paypal: "paypal",
|
|
15
|
-
} as const;
|
|
16
|
-
/**
|
|
17
|
-
* provider is the integration provider name (e.g., "stripe", "razorpay")
|
|
18
|
-
*/
|
|
19
|
-
export type Provider = ClosedEnum<typeof Provider>;
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Integration entity mapping for external provider systems
|
|
23
|
-
*/
|
|
24
|
-
export type DtoIntegrationEntityMapping = {
|
|
25
|
-
/**
|
|
26
|
-
* id is the external entity ID from the provider
|
|
27
|
-
*/
|
|
28
|
-
id: string;
|
|
29
|
-
/**
|
|
30
|
-
* provider is the integration provider name (e.g., "stripe", "razorpay")
|
|
31
|
-
*/
|
|
32
|
-
provider: Provider;
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
/** @internal */
|
|
36
|
-
export const Provider$outboundSchema: z.ZodMiniEnum<typeof Provider> = z.enum(
|
|
37
|
-
Provider,
|
|
38
|
-
);
|
|
39
|
-
|
|
40
|
-
/** @internal */
|
|
41
|
-
export type DtoIntegrationEntityMapping$Outbound = {
|
|
42
|
-
id: string;
|
|
43
|
-
provider: string;
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
/** @internal */
|
|
47
|
-
export const DtoIntegrationEntityMapping$outboundSchema: z.ZodMiniType<
|
|
48
|
-
DtoIntegrationEntityMapping$Outbound,
|
|
49
|
-
DtoIntegrationEntityMapping
|
|
50
|
-
> = z.object({
|
|
51
|
-
id: z.string(),
|
|
52
|
-
provider: Provider$outboundSchema,
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
export function dtoIntegrationEntityMappingToJSON(
|
|
56
|
-
dtoIntegrationEntityMapping: DtoIntegrationEntityMapping,
|
|
57
|
-
): string {
|
|
58
|
-
return JSON.stringify(
|
|
59
|
-
DtoIntegrationEntityMapping$outboundSchema.parse(
|
|
60
|
-
dtoIntegrationEntityMapping,
|
|
61
|
-
),
|
|
62
|
-
);
|
|
63
|
-
}
|
|
@@ -1,31 +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 { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
-
import * as types from "../../types/primitives.js";
|
|
9
|
-
import { SDKValidationError } from "./sdk-validation-error.js";
|
|
10
|
-
|
|
11
|
-
export type DtoLinkedIntegrationsResponse = {
|
|
12
|
-
providers?: Array<string> | undefined;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
/** @internal */
|
|
16
|
-
export const DtoLinkedIntegrationsResponse$inboundSchema: z.ZodMiniType<
|
|
17
|
-
DtoLinkedIntegrationsResponse,
|
|
18
|
-
unknown
|
|
19
|
-
> = z.object({
|
|
20
|
-
providers: types.optional(z.array(types.string())),
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
export function dtoLinkedIntegrationsResponseFromJSON(
|
|
24
|
-
jsonString: string,
|
|
25
|
-
): SafeParseResult<DtoLinkedIntegrationsResponse, SDKValidationError> {
|
|
26
|
-
return safeParse(
|
|
27
|
-
jsonString,
|
|
28
|
-
(x) => DtoLinkedIntegrationsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
29
|
-
`Failed to parse 'DtoLinkedIntegrationsResponse' from JSON`,
|
|
30
|
-
);
|
|
31
|
-
}
|
|
@@ -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 GetIntegrationRequest = {
|
|
8
|
-
/**
|
|
9
|
-
* Integration provider
|
|
10
|
-
*/
|
|
11
|
-
provider: string;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
/** @internal */
|
|
15
|
-
export type GetIntegrationRequest$Outbound = {
|
|
16
|
-
provider: string;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
/** @internal */
|
|
20
|
-
export const GetIntegrationRequest$outboundSchema: z.ZodMiniType<
|
|
21
|
-
GetIntegrationRequest$Outbound,
|
|
22
|
-
GetIntegrationRequest
|
|
23
|
-
> = z.object({
|
|
24
|
-
provider: z.string(),
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
export function getIntegrationRequestToJSON(
|
|
28
|
-
getIntegrationRequest: GetIntegrationRequest,
|
|
29
|
-
): string {
|
|
30
|
-
return JSON.stringify(
|
|
31
|
-
GetIntegrationRequest$outboundSchema.parse(getIntegrationRequest),
|
|
32
|
-
);
|
|
33
|
-
}
|