Skip to content

Commit d5c1316

Browse files
authored
Merge pull request #7 from julianduque/main
feat: support esm and csj
2 parents 4235430 + 1bd0c78 commit d5c1316

16 files changed

+1722
-14
lines changed

dist/auth.d.ts

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/**
2+
* @typedef {Object} ConnectionMetadata
3+
* @property {string} accessToken
4+
* @property {string} instanceUrl
5+
* @property {string} organizationId
6+
* @property {string} username
7+
*/
8+
export default class SalesforceAuth {
9+
/**
10+
* Authenticates with the auth mode specified in configuration
11+
* @returns {ConnectionMetadata}
12+
*/
13+
static authenticate(): ConnectionMetadata;
14+
/**
15+
* Authenticates with the username/password flow
16+
* @returns {ConnectionMetadata}
17+
*/
18+
static "__#2@#authWithUsernamePassword"(): ConnectionMetadata;
19+
/**
20+
* Authenticates with the OAuth 2.0 client credentials flow
21+
* @returns {ConnectionMetadata}
22+
*/
23+
static "__#2@#authWithOAuthClientCredentials"(): ConnectionMetadata;
24+
/**
25+
* Authenticates with the OAuth 2.0 JWT bearer flow
26+
* @returns {ConnectionMetadata}
27+
*/
28+
static "__#2@#authWithJwtBearer"(): ConnectionMetadata;
29+
/**
30+
* Generic OAuth 2.0 connect method
31+
* @param {string} body URL encoded body
32+
* @returns {ConnectionMetadata} connection metadata
33+
*/
34+
static "__#2@#authWithOAuth"(body: string): ConnectionMetadata;
35+
}
36+
export type ConnectionMetadata = {
37+
accessToken: string;
38+
instanceUrl: string;
39+
organizationId: string;
40+
username: string;
41+
};
42+
//# sourceMappingURL=auth.d.ts.map

dist/auth.d.ts.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)