@superclerk/sdk 0.0.0-stage → 0.1.0
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/CHANGELOG.md +10 -0
- package/LICENSE +21 -0
- package/README.md +264 -2
- package/api.md +310 -0
- package/core/api-promise.d.ts +27 -0
- package/core/api-promise.js +52 -0
- package/core/client.d.ts +72 -0
- package/core/client.js +226 -0
- package/core/errors.d.ts +62 -0
- package/core/errors.js +72 -0
- package/core/pagination.d.ts +29 -0
- package/core/pagination.js +50 -0
- package/core/timing.d.ts +20 -0
- package/core/timing.js +54 -0
- package/generated/client.d.ts +31 -0
- package/generated/client.js +34 -0
- package/generated/resources.d.ts +1321 -0
- package/generated/resources.js +1958 -0
- package/generated/tools.d.ts +23983 -0
- package/generated/tools.js +2 -0
- package/generated/types.d.ts +8877 -0
- package/generated/types.js +2 -0
- package/generated/version.d.ts +4 -0
- package/generated/version.js +5 -0
- package/generated/webhooks.d.ts +4 -0
- package/generated/webhooks.js +2 -0
- package/index.d.ts +14 -0
- package/index.js +5 -0
- package/lib/connect.d.ts +12 -0
- package/lib/connect.js +14 -0
- package/lib/connections.d.ts +17 -0
- package/lib/connections.js +28 -0
- package/lib/social.d.ts +32 -0
- package/lib/social.js +27 -0
- package/lib/tools.d.ts +33 -0
- package/lib/tools.js +31 -0
- package/lib/webhooks.d.ts +38 -0
- package/lib/webhooks.js +65 -0
- package/package.json +29 -4
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Core, type ClientOptions } from "../core/client.js";
|
|
2
|
+
import { Connect } from "../lib/connect.js";
|
|
3
|
+
import { Connections } from "../lib/connections.js";
|
|
4
|
+
import { Social } from "../lib/social.js";
|
|
5
|
+
import { Tools } from "../lib/tools.js";
|
|
6
|
+
import { Webhooks } from "../lib/webhooks.js";
|
|
7
|
+
import { Agents, Apps, Contacts, Conversations, CustomFields, Inbox, Members, Opportunities, Pipelines, Receptionists, Tags, Tasks, Workflows, Workspaces } from "./resources.js";
|
|
8
|
+
/** The Superclerk API. Every resource is a property; every method returns a promise of its answer. */
|
|
9
|
+
export declare class Superclerk extends Core {
|
|
10
|
+
readonly connect: Connect;
|
|
11
|
+
readonly webhooks: Webhooks;
|
|
12
|
+
readonly tools: Tools;
|
|
13
|
+
readonly workspaces: Workspaces;
|
|
14
|
+
readonly apps: Apps;
|
|
15
|
+
readonly connections: Connections;
|
|
16
|
+
readonly social: Social;
|
|
17
|
+
readonly conversations: Conversations;
|
|
18
|
+
readonly tags: Tags;
|
|
19
|
+
readonly contacts: Contacts;
|
|
20
|
+
readonly customFields: CustomFields;
|
|
21
|
+
readonly members: Members;
|
|
22
|
+
readonly pipelines: Pipelines;
|
|
23
|
+
readonly opportunities: Opportunities;
|
|
24
|
+
readonly tasks: Tasks;
|
|
25
|
+
readonly inbox: Inbox;
|
|
26
|
+
readonly workflows: Workflows;
|
|
27
|
+
readonly agents: Agents;
|
|
28
|
+
readonly receptionists: Receptionists;
|
|
29
|
+
/** A copy of this client with some options changed, such as the client workspace it acts in. */
|
|
30
|
+
withOptions(options: ClientOptions): Superclerk;
|
|
31
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// Generated by script/generate.ts from the public OpenAPI document. Do not edit.
|
|
2
|
+
import { Core } from "../core/client.js";
|
|
3
|
+
import { Connect } from "../lib/connect.js";
|
|
4
|
+
import { Connections } from "../lib/connections.js";
|
|
5
|
+
import { Social } from "../lib/social.js";
|
|
6
|
+
import { Tools } from "../lib/tools.js";
|
|
7
|
+
import { Webhooks } from "../lib/webhooks.js";
|
|
8
|
+
import { Agents, Apps, Contacts, Conversations, CustomFields, Inbox, Members, Opportunities, Pipelines, Receptionists, Tags, Tasks, Workflows, Workspaces, } from "./resources.js";
|
|
9
|
+
/** The Superclerk API. Every resource is a property; every method returns a promise of its answer. */
|
|
10
|
+
export class Superclerk extends Core {
|
|
11
|
+
connect = new Connect(this);
|
|
12
|
+
webhooks = new Webhooks(this);
|
|
13
|
+
tools = new Tools(this);
|
|
14
|
+
workspaces = new Workspaces(this);
|
|
15
|
+
apps = new Apps(this);
|
|
16
|
+
connections = new Connections(this);
|
|
17
|
+
social = new Social(this);
|
|
18
|
+
conversations = new Conversations(this);
|
|
19
|
+
tags = new Tags(this);
|
|
20
|
+
contacts = new Contacts(this);
|
|
21
|
+
customFields = new CustomFields(this);
|
|
22
|
+
members = new Members(this);
|
|
23
|
+
pipelines = new Pipelines(this);
|
|
24
|
+
opportunities = new Opportunities(this);
|
|
25
|
+
tasks = new Tasks(this);
|
|
26
|
+
inbox = new Inbox(this);
|
|
27
|
+
workflows = new Workflows(this);
|
|
28
|
+
agents = new Agents(this);
|
|
29
|
+
receptionists = new Receptionists(this);
|
|
30
|
+
/** A copy of this client with some options changed, such as the client workspace it acts in. */
|
|
31
|
+
withOptions(options) {
|
|
32
|
+
return new Superclerk({ ...this.clientOptions, ...options });
|
|
33
|
+
}
|
|
34
|
+
}
|