@keystrokehq/docusign 0.0.15 → 0.0.16-integration-id-canonicalization.1
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 +3 -2
- package/dist/credential-sets/index.d.mts +2 -0
- package/dist/credential-sets/index.mjs +4 -0
- package/dist/docusign-jwt.credential-set-B0sXS-5i.mjs +39 -0
- package/dist/docusign-jwt.credential-set-BrMnF4Ok.d.mts +63 -0
- package/dist/docusign.credential-set-BloJ2PrK.mjs +51 -0
- package/dist/index.d.mts +4 -1
- package/dist/index.mjs +6 -1
- package/dist/operations/index.d.mts +2 -0
- package/dist/operations/index.mjs +3 -0
- package/dist/void-envelope.operation-B0nzxjWT.d.mts +8752 -0
- package/dist/void-envelope.operation-CfaS-zI7.mjs +8192 -0
- package/package.json +11 -227
- package/dist/_official/index.d.mts +0 -75
- package/dist/_official/index.mjs +0 -3
- package/dist/_runtime/index.d.mts +0 -1
- package/dist/_runtime/index.mjs +0 -1
- package/dist/account-custom-fields.d.mts +0 -48
- package/dist/account-custom-fields.mjs +0 -63
- package/dist/account-stamps.d.mts +0 -119
- package/dist/account-stamps.mjs +0 -144
- package/dist/account-tabs.d.mts +0 -65
- package/dist/account-tabs.mjs +0 -80
- package/dist/account.d.mts +0 -160
- package/dist/account.mjs +0 -207
- package/dist/admin.d.mts +0 -13
- package/dist/admin.mjs +0 -20
- package/dist/auth.d.mts +0 -28
- package/dist/auth.mjs +0 -64
- package/dist/bcc-archive.d.mts +0 -47
- package/dist/bcc-archive.mjs +0 -70
- package/dist/billing.d.mts +0 -152
- package/dist/billing.mjs +0 -208
- package/dist/brands.d.mts +0 -147
- package/dist/brands.mjs +0 -157
- package/dist/bulk-send.d.mts +0 -104
- package/dist/bulk-send.mjs +0 -115
- package/dist/chunked-uploads.d.mts +0 -57
- package/dist/chunked-uploads.mjs +0 -74
- package/dist/click.d.mts +0 -13
- package/dist/click.mjs +0 -20
- package/dist/client.d.mts +0 -47
- package/dist/client.mjs +0 -286
- package/dist/clm.d.mts +0 -13
- package/dist/clm.mjs +0 -20
- package/dist/cloud-storage.d.mts +0 -93
- package/dist/cloud-storage.mjs +0 -115
- package/dist/connect.d.mts +0 -183
- package/dist/connect.mjs +0 -217
- package/dist/connection.d.mts +0 -2
- package/dist/connection.mjs +0 -3
- package/dist/contacts.d.mts +0 -59
- package/dist/contacts.mjs +0 -79
- package/dist/enote.d.mts +0 -31
- package/dist/enote.mjs +0 -45
- package/dist/envelope-attachments.d.mts +0 -65
- package/dist/envelope-attachments.mjs +0 -76
- package/dist/envelope-custom-fields.d.mts +0 -137
- package/dist/envelope-custom-fields.mjs +0 -92
- package/dist/envelope-documents.d.mts +0 -206
- package/dist/envelope-documents.mjs +0 -219
- package/dist/envelope-email.d.mts +0 -48
- package/dist/envelope-email.mjs +0 -60
- package/dist/envelope-lock.d.mts +0 -48
- package/dist/envelope-lock.mjs +0 -60
- package/dist/envelope-logs.d.mts +0 -89
- package/dist/envelope-logs.mjs +0 -126
- package/dist/envelope-notifications.d.mts +0 -34
- package/dist/envelope-notifications.mjs +0 -44
- package/dist/envelope-recipients.d.mts +0 -126
- package/dist/envelope-recipients.mjs +0 -136
- package/dist/envelope-tabs.d.mts +0 -39
- package/dist/envelope-tabs.mjs +0 -49
- package/dist/envelope-views.d.mts +0 -74
- package/dist/envelope-views.mjs +0 -88
- package/dist/envelope-workflow.d.mts +0 -151
- package/dist/envelope-workflow.mjs +0 -176
- package/dist/envelopes.d.mts +0 -377
- package/dist/envelopes.mjs +0 -190
- package/dist/errors.d.mts +0 -48
- package/dist/errors.mjs +0 -76
- package/dist/events.d.mts +0 -192
- package/dist/events.mjs +0 -146
- package/dist/factory-5kY-Jnda.mjs +0 -8
- package/dist/groups.d.mts +0 -150
- package/dist/groups.mjs +0 -146
- package/dist/integration-H05G5JY8.mjs +0 -112
- package/dist/integration-Mk1ScWT6.d.mts +0 -30
- package/dist/messaging.d.mts +0 -1
- package/dist/messaging.mjs +0 -1
- package/dist/monitor.d.mts +0 -13
- package/dist/monitor.mjs +0 -20
- package/dist/notary.d.mts +0 -92
- package/dist/notary.mjs +0 -122
- package/dist/operation-helpers-D25WHTo1.mjs +0 -102
- package/dist/permission-profiles.d.mts +0 -57
- package/dist/permission-profiles.mjs +0 -70
- package/dist/power-forms.d.mts +0 -38
- package/dist/power-forms.mjs +0 -62
- package/dist/rooms.d.mts +0 -13
- package/dist/rooms.mjs +0 -28
- package/dist/shared-DTUCJayR.mjs +0 -27
- package/dist/signing-groups.d.mts +0 -102
- package/dist/signing-groups.mjs +0 -117
- package/dist/template-custom-fields.d.mts +0 -166
- package/dist/template-custom-fields.mjs +0 -107
- package/dist/template-documents.d.mts +0 -99
- package/dist/template-documents.mjs +0 -109
- package/dist/template-lock.d.mts +0 -48
- package/dist/template-lock.mjs +0 -60
- package/dist/template-sharing.d.mts +0 -96
- package/dist/template-sharing.mjs +0 -108
- package/dist/template-workflow.d.mts +0 -135
- package/dist/template-workflow.mjs +0 -152
- package/dist/templates.d.mts +0 -129
- package/dist/templates.mjs +0 -110
- package/dist/user-authorizations.d.mts +0 -96
- package/dist/user-authorizations.mjs +0 -133
- package/dist/user-custom-settings.d.mts +0 -60
- package/dist/user-custom-settings.mjs +0 -69
- package/dist/user-profile.d.mts +0 -80
- package/dist/user-profile.mjs +0 -106
- package/dist/user-signatures.d.mts +0 -155
- package/dist/user-signatures.mjs +0 -180
- package/dist/users.d.mts +0 -103
- package/dist/users.mjs +0 -98
- package/dist/verification.d.mts +0 -19
- package/dist/verification.mjs +0 -59
- package/dist/workspaces.d.mts +0 -128
- package/dist/workspaces.mjs +0 -143
package/dist/admin.mjs
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { docusignGenericObjectSchema } from "./schemas/index.mjs";
|
|
2
|
-
import { n as definePlanGatedOperation } from "./operation-helpers-D25WHTo1.mjs";
|
|
3
|
-
import { z } from "zod";
|
|
4
|
-
|
|
5
|
-
//#region src/admin.ts
|
|
6
|
-
/**
|
|
7
|
-
* DocuSign Admin API — plan-gated in v1.
|
|
8
|
-
*/
|
|
9
|
-
const adminNotImplemented = definePlanGatedOperation({
|
|
10
|
-
id: "docusign.admin-not-implemented",
|
|
11
|
-
slug: "DOCUSIGN_ADMIN_NOT_IMPLEMENTED",
|
|
12
|
-
name: "DocuSign Admin (not implemented)",
|
|
13
|
-
description: "Placeholder for DocuSign Admin API (cross-account SSO, domains, permissions).",
|
|
14
|
-
input: z.object({}).catchall(z.unknown()),
|
|
15
|
-
output: docusignGenericObjectSchema,
|
|
16
|
-
reason: "DocuSign Admin API requires `organization_read`, `permission_read`, etc. scopes that are not enabled on this connection."
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
//#endregion
|
|
20
|
-
export { adminNotImplemented };
|
package/dist/auth.d.mts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
3
|
-
|
|
4
|
-
//#region src/auth.d.ts
|
|
5
|
-
declare const retrieveDocusignUserinfo: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
|
|
6
|
-
sub: z.ZodOptional<z.ZodString>;
|
|
7
|
-
email: z.ZodOptional<z.ZodString>;
|
|
8
|
-
accounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9
|
-
account_id: z.ZodOptional<z.ZodString>;
|
|
10
|
-
account_name: z.ZodOptional<z.ZodString>;
|
|
11
|
-
base_uri: z.ZodOptional<z.ZodString>;
|
|
12
|
-
is_default: z.ZodOptional<z.ZodBoolean>;
|
|
13
|
-
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
14
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
15
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
16
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
17
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
18
|
-
}, z.core.$strip>>], undefined>;
|
|
19
|
-
declare const resolveCurrentAccount: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
|
|
20
|
-
accountId: z.ZodString;
|
|
21
|
-
baseUri: z.ZodString;
|
|
22
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
23
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
24
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
25
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
26
|
-
}, z.core.$strip>>], undefined>;
|
|
27
|
-
//#endregion
|
|
28
|
-
export { resolveCurrentAccount, retrieveDocusignUserinfo };
|
package/dist/auth.mjs
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { createDocusignClient } from "./client.mjs";
|
|
2
|
-
import { docusignLooseObjectSchema } from "./schemas/index.mjs";
|
|
3
|
-
import { t as docusignOperation } from "./factory-5kY-Jnda.mjs";
|
|
4
|
-
import { z } from "zod";
|
|
5
|
-
|
|
6
|
-
//#region src/userinfo.ts
|
|
7
|
-
const DOCUSIGN_OAUTH_HOST = "account.docusign.com";
|
|
8
|
-
const DOCUSIGN_USERINFO_URL = `https://${DOCUSIGN_OAUTH_HOST}/oauth/userinfo`;
|
|
9
|
-
async function fetchDocusignUserinfo(accessToken) {
|
|
10
|
-
const response = await fetch(DOCUSIGN_USERINFO_URL, { headers: {
|
|
11
|
-
Accept: "application/json",
|
|
12
|
-
Authorization: `Bearer ${accessToken}`
|
|
13
|
-
} });
|
|
14
|
-
if (!response.ok) throw new Error(`DocuSign userinfo lookup failed with status ${response.status} while resolving base URI.`);
|
|
15
|
-
return await response.json();
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
//#endregion
|
|
19
|
-
//#region src/auth.ts
|
|
20
|
-
/**
|
|
21
|
-
* Auth helpers — exposed as operations so users can call DocuSign userinfo /
|
|
22
|
-
* account resolution directly from the workflow surface if needed.
|
|
23
|
-
*
|
|
24
|
-
* These back the `auth` subpath for workflow-driven userinfo / account resolution.
|
|
25
|
-
*/
|
|
26
|
-
const retrieveDocusignUserinfo = docusignOperation({
|
|
27
|
-
id: "docusign.retrieve-docusign-userinfo",
|
|
28
|
-
name: "Retrieve DocuSign Userinfo",
|
|
29
|
-
description: `Call ${DOCUSIGN_USERINFO_URL} with the stored access token to re-resolve the connected user's accounts, names, and base URIs.`,
|
|
30
|
-
input: z.object({}),
|
|
31
|
-
output: docusignLooseObjectSchema({
|
|
32
|
-
sub: z.string().optional(),
|
|
33
|
-
email: z.string().optional(),
|
|
34
|
-
accounts: z.array(docusignLooseObjectSchema({
|
|
35
|
-
account_id: z.string().optional(),
|
|
36
|
-
account_name: z.string().optional(),
|
|
37
|
-
base_uri: z.string().optional(),
|
|
38
|
-
is_default: z.boolean().optional()
|
|
39
|
-
})).optional()
|
|
40
|
-
}),
|
|
41
|
-
run: async (_input, credentials) => {
|
|
42
|
-
return { ...await fetchDocusignUserinfo(credentials.DOCUSIGN_ACCESS_TOKEN) };
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
const resolveCurrentAccount = docusignOperation({
|
|
46
|
-
id: "docusign.resolve-current-account",
|
|
47
|
-
name: "Resolve Current Account",
|
|
48
|
-
description: "Return the active `accountId` + `baseUri` pair stored on the connection. Useful for downstream operations that need to construct account-scoped URLs themselves.",
|
|
49
|
-
input: z.object({}),
|
|
50
|
-
output: docusignLooseObjectSchema({
|
|
51
|
-
accountId: z.string(),
|
|
52
|
-
baseUri: z.string()
|
|
53
|
-
}),
|
|
54
|
-
run: async (_input, credentials) => {
|
|
55
|
-
const client = createDocusignClient(credentials);
|
|
56
|
-
return {
|
|
57
|
-
accountId: client.accountId,
|
|
58
|
-
baseUri: client.baseUri
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
|
|
63
|
-
//#endregion
|
|
64
|
-
export { resolveCurrentAccount, retrieveDocusignUserinfo };
|
package/dist/bcc-archive.d.mts
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
3
|
-
|
|
4
|
-
//#region src/bcc-archive.d.ts
|
|
5
|
-
declare const createBccEmailArchiveConfiguration: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
6
|
-
bccEmailArchive: z.ZodObject<{
|
|
7
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
8
|
-
}, z.core.$catchall<z.ZodUnknown>>;
|
|
9
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
10
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
11
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
12
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
13
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
14
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
15
|
-
}, z.core.$strip>>], undefined>;
|
|
16
|
-
declare const getBccEmailArchiveConfigurations: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
17
|
-
startPosition: z.ZodOptional<z.ZodNumber>;
|
|
18
|
-
count: z.ZodOptional<z.ZodNumber>;
|
|
19
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
20
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
21
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
22
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
23
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
24
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
25
|
-
}, z.core.$strip>>], undefined>;
|
|
26
|
-
declare const getBccEmailArchiveHistory: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
27
|
-
bccEmailArchiveId: z.ZodString;
|
|
28
|
-
startPosition: z.ZodOptional<z.ZodNumber>;
|
|
29
|
-
count: z.ZodOptional<z.ZodNumber>;
|
|
30
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
32
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
33
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
34
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
35
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
36
|
-
}, z.core.$strip>>], undefined>;
|
|
37
|
-
declare const deleteBccEmailArchiveConfiguration: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
38
|
-
bccEmailArchiveId: z.ZodString;
|
|
39
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
40
|
-
success: z.ZodBoolean;
|
|
41
|
-
}, z.core.$strip>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
42
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
43
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
44
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
45
|
-
}, z.core.$strip>>], undefined>;
|
|
46
|
-
//#endregion
|
|
47
|
-
export { createBccEmailArchiveConfiguration, deleteBccEmailArchiveConfiguration, getBccEmailArchiveConfigurations, getBccEmailArchiveHistory };
|
package/dist/bcc-archive.mjs
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { docusignGenericObjectSchema, docusignLooseObjectSchema, docusignSuccessSchema } from "./schemas/index.mjs";
|
|
2
|
-
import { r as defineRestOperation } from "./operation-helpers-D25WHTo1.mjs";
|
|
3
|
-
import { z } from "zod";
|
|
4
|
-
|
|
5
|
-
//#region src/bcc-archive.ts
|
|
6
|
-
/**
|
|
7
|
-
* BCC email archive. Covers PLAN.md § 6.40.
|
|
8
|
-
*/
|
|
9
|
-
const bccId = z.object({ bccEmailArchiveId: z.string().min(1) });
|
|
10
|
-
const createBccEmailArchiveConfiguration = defineRestOperation({
|
|
11
|
-
id: "docusign.create-bcc-email-archive-configuration",
|
|
12
|
-
slug: "DOCUSIGN_CREATE_BCC_EMAIL_ARCHIVE_CONFIGURATION",
|
|
13
|
-
name: "Create BCC Email Archive Configuration",
|
|
14
|
-
description: "Configure a BCC email archive address for the account.",
|
|
15
|
-
needsApproval: true,
|
|
16
|
-
method: "POST",
|
|
17
|
-
path: "/settings/bcc_email_archives",
|
|
18
|
-
input: z.object({ bccEmailArchive: docusignLooseObjectSchema() }),
|
|
19
|
-
output: docusignGenericObjectSchema,
|
|
20
|
-
body: (input) => input.bccEmailArchive
|
|
21
|
-
});
|
|
22
|
-
const getBccEmailArchiveConfigurations = defineRestOperation({
|
|
23
|
-
id: "docusign.get-bcc-email-archive-configurations",
|
|
24
|
-
slug: "DOCUSIGN_GET_BCC_EMAIL_ARCHIVE_CONFIGURATIONS",
|
|
25
|
-
name: "Get BCC Email Archive Configurations",
|
|
26
|
-
description: "List BCC email archive configurations.",
|
|
27
|
-
method: "GET",
|
|
28
|
-
path: "/settings/bcc_email_archives",
|
|
29
|
-
input: z.object({
|
|
30
|
-
startPosition: z.number().int().nonnegative().optional(),
|
|
31
|
-
count: z.number().int().positive().optional()
|
|
32
|
-
}),
|
|
33
|
-
output: docusignGenericObjectSchema,
|
|
34
|
-
query: (input) => ({
|
|
35
|
-
start_position: input.startPosition,
|
|
36
|
-
count: input.count
|
|
37
|
-
})
|
|
38
|
-
});
|
|
39
|
-
const getBccEmailArchiveHistory = defineRestOperation({
|
|
40
|
-
id: "docusign.get-bcc-email-archive-history",
|
|
41
|
-
slug: "DOCUSIGN_GET_BCCEMAIL_ARCHIVE_HISTORY",
|
|
42
|
-
name: "Get BCC Email Archive History",
|
|
43
|
-
description: "Retrieve history for a BCC email archive configuration.",
|
|
44
|
-
method: "GET",
|
|
45
|
-
path: (ctx) => `/settings/bcc_email_archives/${ctx.encode(String(ctx.input.bccEmailArchiveId))}`,
|
|
46
|
-
input: bccId.extend({
|
|
47
|
-
startPosition: z.number().int().nonnegative().optional(),
|
|
48
|
-
count: z.number().int().positive().optional()
|
|
49
|
-
}),
|
|
50
|
-
output: docusignGenericObjectSchema,
|
|
51
|
-
query: (input) => ({
|
|
52
|
-
start_position: input.startPosition,
|
|
53
|
-
count: input.count
|
|
54
|
-
})
|
|
55
|
-
});
|
|
56
|
-
const deleteBccEmailArchiveConfiguration = defineRestOperation({
|
|
57
|
-
id: "docusign.delete-bcc-email-archive-configuration",
|
|
58
|
-
slug: "DOCUSIGN_DELETE_BCC_EMAIL_ARCHIVE_CONFIGURATION",
|
|
59
|
-
name: "Delete BCC Email Archive Configuration",
|
|
60
|
-
description: "Delete a BCC email archive configuration.",
|
|
61
|
-
needsApproval: true,
|
|
62
|
-
method: "DELETE",
|
|
63
|
-
path: (ctx) => `/settings/bcc_email_archives/${ctx.encode(String(ctx.input.bccEmailArchiveId))}`,
|
|
64
|
-
input: bccId,
|
|
65
|
-
output: docusignSuccessSchema,
|
|
66
|
-
transformResponse: () => ({ success: true })
|
|
67
|
-
});
|
|
68
|
-
|
|
69
|
-
//#endregion
|
|
70
|
-
export { createBccEmailArchiveConfiguration, deleteBccEmailArchiveConfiguration, getBccEmailArchiveConfigurations, getBccEmailArchiveHistory };
|
package/dist/billing.d.mts
DELETED
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import * as _keystrokehq_core0 from "@keystrokehq/core";
|
|
3
|
-
|
|
4
|
-
//#region src/billing.d.ts
|
|
5
|
-
declare const retrieveAccountBillingPlan: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
6
|
-
includeCreditCardInformation: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
-
includeMetadata: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
-
includeSuccessorPlans: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
10
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
11
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
12
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
13
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
14
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
15
|
-
}, z.core.$strip>>], undefined>;
|
|
16
|
-
declare const retrieveBillingPlanDetails: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
17
|
-
planId: z.ZodString;
|
|
18
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
19
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
20
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
21
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
22
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
23
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
24
|
-
}, z.core.$strip>>], undefined>;
|
|
25
|
-
declare const retrieveListOfBillingPlans: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
|
|
26
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
27
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
28
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
29
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
30
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
31
|
-
}, z.core.$strip>>], undefined>;
|
|
32
|
-
declare const updateBillingPlanForAccount: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
33
|
-
plan: z.ZodObject<{
|
|
34
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
35
|
-
}, z.core.$catchall<z.ZodUnknown>>;
|
|
36
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
37
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
38
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
39
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
40
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
41
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
42
|
-
}, z.core.$strip>>], undefined>;
|
|
43
|
-
declare const getDowngradePlanInfoForAccount: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
|
|
44
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
45
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
46
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
47
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
48
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
49
|
-
}, z.core.$strip>>], undefined>;
|
|
50
|
-
declare const queueDowngradeBillingPlanRequest: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
51
|
-
request: z.ZodObject<{
|
|
52
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
53
|
-
}, z.core.$catchall<z.ZodUnknown>>;
|
|
54
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
55
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
56
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
57
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
58
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
59
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
60
|
-
}, z.core.$strip>>], undefined>;
|
|
61
|
-
declare const purchaseAdditionalEnvelopes: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
62
|
-
request: z.ZodObject<{
|
|
63
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
64
|
-
}, z.core.$catchall<z.ZodUnknown>>;
|
|
65
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
66
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
67
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
68
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
69
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
70
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
71
|
-
}, z.core.$strip>>], undefined>;
|
|
72
|
-
declare const getAccountBillingChargesList: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
73
|
-
includeCharges: z.ZodOptional<z.ZodString>;
|
|
74
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
75
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
76
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
77
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
78
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
79
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
80
|
-
}, z.core.$strip>>], undefined>;
|
|
81
|
-
declare const listBillingInvoices: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
82
|
-
fromDate: z.ZodOptional<z.ZodString>;
|
|
83
|
-
toDate: z.ZodOptional<z.ZodString>;
|
|
84
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
85
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
86
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
87
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
88
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
89
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
90
|
-
}, z.core.$strip>>], undefined>;
|
|
91
|
-
declare const listPastDueInvoices: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
|
|
92
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
93
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
94
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
95
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
96
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
97
|
-
}, z.core.$strip>>], undefined>;
|
|
98
|
-
declare const retrieveBillingInvoice: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
99
|
-
invoiceId: z.ZodString;
|
|
100
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
101
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
102
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
103
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
104
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
105
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
106
|
-
}, z.core.$strip>>], undefined>;
|
|
107
|
-
declare const retrieveBillingPaymentInfo: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
108
|
-
paymentId: z.ZodString;
|
|
109
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
110
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
111
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
112
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
113
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
114
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
115
|
-
}, z.core.$strip>>], undefined>;
|
|
116
|
-
declare const retrievePaymentInformationList: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
117
|
-
fromDate: z.ZodOptional<z.ZodString>;
|
|
118
|
-
toDate: z.ZodOptional<z.ZodString>;
|
|
119
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
120
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
121
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
122
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
123
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
124
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
125
|
-
}, z.core.$strip>>], undefined>;
|
|
126
|
-
declare const postPaymentToInvoice: _keystrokehq_core0.Operation<z.ZodObject<{
|
|
127
|
-
payment: z.ZodObject<{
|
|
128
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
129
|
-
}, z.core.$catchall<z.ZodUnknown>>;
|
|
130
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
131
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
132
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
133
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
134
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
135
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
136
|
-
}, z.core.$strip>>], undefined>;
|
|
137
|
-
declare const retrieveCreditCardInfo: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
|
|
138
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
139
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
140
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
141
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
142
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
143
|
-
}, z.core.$strip>>], undefined>;
|
|
144
|
-
declare const listPaymentGatewayAccountsInfo: _keystrokehq_core0.Operation<z.ZodObject<{}, z.core.$strip>, z.ZodObject<{
|
|
145
|
-
[x: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
146
|
-
}, z.core.$catchall<z.ZodUnknown>>, readonly [_keystrokehq_core0.CredentialSet<"keystroke:docusign", z.ZodObject<{
|
|
147
|
-
DOCUSIGN_ACCESS_TOKEN: z.ZodString;
|
|
148
|
-
DOCUSIGN_ACCOUNT_ID: z.ZodString;
|
|
149
|
-
DOCUSIGN_BASE_URI: z.ZodURL;
|
|
150
|
-
}, z.core.$strip>>], undefined>;
|
|
151
|
-
//#endregion
|
|
152
|
-
export { getAccountBillingChargesList, getDowngradePlanInfoForAccount, listBillingInvoices, listPastDueInvoices, listPaymentGatewayAccountsInfo, postPaymentToInvoice, purchaseAdditionalEnvelopes, queueDowngradeBillingPlanRequest, retrieveAccountBillingPlan, retrieveBillingInvoice, retrieveBillingPaymentInfo, retrieveBillingPlanDetails, retrieveCreditCardInfo, retrieveListOfBillingPlans, retrievePaymentInformationList, updateBillingPlanForAccount };
|
package/dist/billing.mjs
DELETED
|
@@ -1,208 +0,0 @@
|
|
|
1
|
-
import { docusignGenericObjectSchema, docusignLooseObjectSchema } from "./schemas/index.mjs";
|
|
2
|
-
import { r as defineRestOperation } from "./operation-helpers-D25WHTo1.mjs";
|
|
3
|
-
import { z } from "zod";
|
|
4
|
-
|
|
5
|
-
//#region src/billing.ts
|
|
6
|
-
/**
|
|
7
|
-
* Billing + invoices + payments + plans. Covers PLAN.md § 6.35.
|
|
8
|
-
*/
|
|
9
|
-
const invoiceId = z.object({ invoiceId: z.string().min(1) });
|
|
10
|
-
const planId = z.object({ planId: z.string().min(1) });
|
|
11
|
-
const paymentId = z.object({ paymentId: z.string().min(1) });
|
|
12
|
-
const retrieveAccountBillingPlan = defineRestOperation({
|
|
13
|
-
id: "docusign.retrieve-account-billing-plan",
|
|
14
|
-
slug: "DOCUSIGN_RETRIEVE_ACCOUNT_BILLING_PLAN",
|
|
15
|
-
name: "Retrieve Account Billing Plan",
|
|
16
|
-
description: "Retrieve the current billing plan on the account.",
|
|
17
|
-
method: "GET",
|
|
18
|
-
path: "/billing_plan",
|
|
19
|
-
input: z.object({
|
|
20
|
-
includeCreditCardInformation: z.boolean().optional(),
|
|
21
|
-
includeMetadata: z.boolean().optional(),
|
|
22
|
-
includeSuccessorPlans: z.boolean().optional()
|
|
23
|
-
}),
|
|
24
|
-
output: docusignGenericObjectSchema,
|
|
25
|
-
query: (input) => ({
|
|
26
|
-
include_credit_card_information: input.includeCreditCardInformation,
|
|
27
|
-
include_metadata: input.includeMetadata,
|
|
28
|
-
include_successor_plans: input.includeSuccessorPlans
|
|
29
|
-
})
|
|
30
|
-
});
|
|
31
|
-
const retrieveBillingPlanDetails = defineRestOperation({
|
|
32
|
-
id: "docusign.retrieve-billing-plan-details",
|
|
33
|
-
slug: "DOCUSIGN_RETRIEVE_BILLING_PLAN_DETAILS",
|
|
34
|
-
name: "Retrieve Billing Plan Details",
|
|
35
|
-
description: "Retrieve details of a specific billing plan.",
|
|
36
|
-
method: "GET",
|
|
37
|
-
path: (ctx) => `/billing_plans/${ctx.encode(String(ctx.input.planId))}`,
|
|
38
|
-
input: planId,
|
|
39
|
-
output: docusignGenericObjectSchema,
|
|
40
|
-
accountScoped: false
|
|
41
|
-
});
|
|
42
|
-
const retrieveListOfBillingPlans = defineRestOperation({
|
|
43
|
-
id: "docusign.retrieve-list-of-billing-plans",
|
|
44
|
-
slug: "DOCUSIGN_RETRIEVE_LIST_OF_BILLING_PLANS",
|
|
45
|
-
name: "Retrieve List Of Billing Plans",
|
|
46
|
-
description: "Retrieve the list of billing plans available for the account.",
|
|
47
|
-
method: "GET",
|
|
48
|
-
path: "/billing_plans",
|
|
49
|
-
input: z.object({}),
|
|
50
|
-
output: docusignGenericObjectSchema,
|
|
51
|
-
accountScoped: false
|
|
52
|
-
});
|
|
53
|
-
const updateBillingPlanForAccount = defineRestOperation({
|
|
54
|
-
id: "docusign.update-billing-plan-for-account",
|
|
55
|
-
slug: "DOCUSIGN_UPDATE_BILLING_PLAN_FOR_ACCOUNT",
|
|
56
|
-
name: "Update Billing Plan",
|
|
57
|
-
description: "Update the billing plan attached to the account.",
|
|
58
|
-
needsApproval: true,
|
|
59
|
-
method: "PUT",
|
|
60
|
-
path: "/billing_plan",
|
|
61
|
-
input: z.object({ plan: docusignLooseObjectSchema() }),
|
|
62
|
-
output: docusignGenericObjectSchema,
|
|
63
|
-
body: (input) => input.plan
|
|
64
|
-
});
|
|
65
|
-
const getDowngradePlanInfoForAccount = defineRestOperation({
|
|
66
|
-
id: "docusign.get-downgrade-plan-info-for-account",
|
|
67
|
-
slug: "DOCUSIGN_GET_DOWNGRADE_PLAN_INFO_FOR_ACCOUNT",
|
|
68
|
-
name: "Get Downgrade Plan Info",
|
|
69
|
-
description: "Retrieve downgrade-plan information for the account.",
|
|
70
|
-
method: "GET",
|
|
71
|
-
path: "/billing_plan/downgrade",
|
|
72
|
-
input: z.object({}),
|
|
73
|
-
output: docusignGenericObjectSchema
|
|
74
|
-
});
|
|
75
|
-
const queueDowngradeBillingPlanRequest = defineRestOperation({
|
|
76
|
-
id: "docusign.queue-downgrade-billing-plan-request",
|
|
77
|
-
slug: "DOCUSIGN_QUEUE_DOWNGRADE_BILLING_PLAN_REQUEST",
|
|
78
|
-
name: "Queue Downgrade Billing Plan",
|
|
79
|
-
description: "Queue a downgrade-plan request for the account.",
|
|
80
|
-
needsApproval: true,
|
|
81
|
-
method: "PUT",
|
|
82
|
-
path: "/billing_plan/downgrade",
|
|
83
|
-
input: z.object({ request: docusignLooseObjectSchema() }),
|
|
84
|
-
output: docusignGenericObjectSchema,
|
|
85
|
-
body: (input) => input.request
|
|
86
|
-
});
|
|
87
|
-
const purchaseAdditionalEnvelopes = defineRestOperation({
|
|
88
|
-
id: "docusign.purchase-additional-envelopes",
|
|
89
|
-
slug: "DOCUSIGN_PURCHASE_ADDITIONAL_ENVELOPES",
|
|
90
|
-
name: "Purchase Additional Envelopes",
|
|
91
|
-
description: "Purchase additional envelopes for the account.",
|
|
92
|
-
needsApproval: true,
|
|
93
|
-
method: "PUT",
|
|
94
|
-
path: "/billing_plan/purchased_envelopes",
|
|
95
|
-
input: z.object({ request: docusignLooseObjectSchema() }),
|
|
96
|
-
output: docusignGenericObjectSchema,
|
|
97
|
-
body: (input) => input.request
|
|
98
|
-
});
|
|
99
|
-
const getAccountBillingChargesList = defineRestOperation({
|
|
100
|
-
id: "docusign.get-account-billing-charges-list",
|
|
101
|
-
slug: "DOCUSIGN_GET_ACCOUNT_BILLING_CHARGES_LIST",
|
|
102
|
-
name: "Get Account Billing Charges",
|
|
103
|
-
description: "List billing charges.",
|
|
104
|
-
method: "GET",
|
|
105
|
-
path: "/billing_charges",
|
|
106
|
-
input: z.object({ includeCharges: z.string().optional() }),
|
|
107
|
-
output: docusignGenericObjectSchema,
|
|
108
|
-
query: (input) => ({ include_charges: input.includeCharges })
|
|
109
|
-
});
|
|
110
|
-
const listBillingInvoices = defineRestOperation({
|
|
111
|
-
id: "docusign.list-billing-invoices",
|
|
112
|
-
slug: "DOCUSIGN_LIST_BILLING_INVOICES",
|
|
113
|
-
name: "List Billing Invoices",
|
|
114
|
-
description: "List billing invoices.",
|
|
115
|
-
method: "GET",
|
|
116
|
-
path: "/billing_invoices",
|
|
117
|
-
input: z.object({
|
|
118
|
-
fromDate: z.string().optional(),
|
|
119
|
-
toDate: z.string().optional()
|
|
120
|
-
}),
|
|
121
|
-
output: docusignGenericObjectSchema,
|
|
122
|
-
query: (input) => ({
|
|
123
|
-
from_date: input.fromDate,
|
|
124
|
-
to_date: input.toDate
|
|
125
|
-
})
|
|
126
|
-
});
|
|
127
|
-
const listPastDueInvoices = defineRestOperation({
|
|
128
|
-
id: "docusign.list-past-due-invoices",
|
|
129
|
-
slug: "DOCUSIGN_LIST_PAST_DUE_INVOICES",
|
|
130
|
-
name: "List Past Due Invoices",
|
|
131
|
-
description: "List past-due billing invoices.",
|
|
132
|
-
method: "GET",
|
|
133
|
-
path: "/billing_invoices_past_due",
|
|
134
|
-
input: z.object({}),
|
|
135
|
-
output: docusignGenericObjectSchema
|
|
136
|
-
});
|
|
137
|
-
const retrieveBillingInvoice = defineRestOperation({
|
|
138
|
-
id: "docusign.retrieve-billing-invoice",
|
|
139
|
-
slug: "DOCUSIGN_RETRIEVE_BILLING_INVOICE",
|
|
140
|
-
name: "Retrieve Billing Invoice",
|
|
141
|
-
description: "Retrieve a specific billing invoice.",
|
|
142
|
-
method: "GET",
|
|
143
|
-
path: (ctx) => `/billing_invoices/${ctx.encode(String(ctx.input.invoiceId))}`,
|
|
144
|
-
input: invoiceId,
|
|
145
|
-
output: docusignGenericObjectSchema
|
|
146
|
-
});
|
|
147
|
-
const retrieveBillingPaymentInfo = defineRestOperation({
|
|
148
|
-
id: "docusign.retrieve-billing-payment-info",
|
|
149
|
-
slug: "DOCUSIGN_RETRIEVE_BILLING_PAYMENT_INFO",
|
|
150
|
-
name: "Retrieve Billing Payment Info",
|
|
151
|
-
description: "Retrieve billing payment information for a specific payment.",
|
|
152
|
-
method: "GET",
|
|
153
|
-
path: (ctx) => `/billing_payments/${ctx.encode(String(ctx.input.paymentId))}`,
|
|
154
|
-
input: paymentId,
|
|
155
|
-
output: docusignGenericObjectSchema
|
|
156
|
-
});
|
|
157
|
-
const retrievePaymentInformationList = defineRestOperation({
|
|
158
|
-
id: "docusign.retrieve-payment-information-list",
|
|
159
|
-
slug: "DOCUSIGN_RETRIEVE_PAYMENT_INFORMATION_LIST",
|
|
160
|
-
name: "Retrieve Payment Information List",
|
|
161
|
-
description: "List billing payment history.",
|
|
162
|
-
method: "GET",
|
|
163
|
-
path: "/billing_payments",
|
|
164
|
-
input: z.object({
|
|
165
|
-
fromDate: z.string().optional(),
|
|
166
|
-
toDate: z.string().optional()
|
|
167
|
-
}),
|
|
168
|
-
output: docusignGenericObjectSchema,
|
|
169
|
-
query: (input) => ({
|
|
170
|
-
from_date: input.fromDate,
|
|
171
|
-
to_date: input.toDate
|
|
172
|
-
})
|
|
173
|
-
});
|
|
174
|
-
const postPaymentToInvoice = defineRestOperation({
|
|
175
|
-
id: "docusign.post-payment-to-invoice",
|
|
176
|
-
slug: "DOCUSIGN_POST_PAYMENT_TO_INVOICE",
|
|
177
|
-
name: "Post Payment To Invoice",
|
|
178
|
-
description: "Post a payment against a billing invoice.",
|
|
179
|
-
needsApproval: true,
|
|
180
|
-
method: "POST",
|
|
181
|
-
path: "/billing_payments",
|
|
182
|
-
input: z.object({ payment: docusignLooseObjectSchema() }),
|
|
183
|
-
output: docusignGenericObjectSchema,
|
|
184
|
-
body: (input) => input.payment
|
|
185
|
-
});
|
|
186
|
-
const retrieveCreditCardInfo = defineRestOperation({
|
|
187
|
-
id: "docusign.retrieve-credit-card-info",
|
|
188
|
-
slug: "DOCUSIGN_RETRIEVE_CREDIT_CARD_INFO",
|
|
189
|
-
name: "Retrieve Credit Card Info",
|
|
190
|
-
description: "Retrieve the credit-card-on-file for the account.",
|
|
191
|
-
method: "GET",
|
|
192
|
-
path: "/billing_plan/credit_card",
|
|
193
|
-
input: z.object({}),
|
|
194
|
-
output: docusignGenericObjectSchema
|
|
195
|
-
});
|
|
196
|
-
const listPaymentGatewayAccountsInfo = defineRestOperation({
|
|
197
|
-
id: "docusign.list-payment-gateway-accounts-info",
|
|
198
|
-
slug: "DOCUSIGN_LIST_PAYMENT_GATEWAY_ACCOUNTS_INFO",
|
|
199
|
-
name: "List Payment Gateway Accounts",
|
|
200
|
-
description: "List payment gateway accounts available to the account.",
|
|
201
|
-
method: "GET",
|
|
202
|
-
path: "/payment_gateway_accounts",
|
|
203
|
-
input: z.object({}),
|
|
204
|
-
output: docusignGenericObjectSchema
|
|
205
|
-
});
|
|
206
|
-
|
|
207
|
-
//#endregion
|
|
208
|
-
export { getAccountBillingChargesList, getDowngradePlanInfoForAccount, listBillingInvoices, listPastDueInvoices, listPaymentGatewayAccountsInfo, postPaymentToInvoice, purchaseAdditionalEnvelopes, queueDowngradeBillingPlanRequest, retrieveAccountBillingPlan, retrieveBillingInvoice, retrieveBillingPaymentInfo, retrieveBillingPlanDetails, retrieveCreditCardInfo, retrieveListOfBillingPlans, retrievePaymentInformationList, updateBillingPlanForAccount };
|