recal-sdk 0.1.1 → 0.2.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 +488 -199
- package/dist/entities/organization.d.ts +2 -2
- package/dist/entities/organization.d.ts.map +1 -1
- package/dist/entities/organization.js +32 -0
- package/dist/entities/organization.js.map +1 -0
- package/dist/entities/user.d.ts +2 -2
- package/dist/entities/user.d.ts.map +1 -1
- package/dist/entities/user.js +45 -0
- package/dist/entities/user.js.map +1 -0
- package/dist/errors.js +36 -0
- package/dist/errors.js.map +1 -0
- package/dist/index.d.ts +7 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +52 -7046
- package/dist/index.js.map +1 -1
- package/dist/services/calendar.service.d.ts +82 -35
- package/dist/services/calendar.service.d.ts.map +1 -1
- package/dist/services/calendar.service.js +292 -0
- package/dist/services/calendar.service.js.map +1 -0
- package/dist/services/oauth.service.d.ts +2 -1
- package/dist/services/oauth.service.d.ts.map +1 -1
- package/dist/services/oauth.service.js +168 -0
- package/dist/services/oauth.service.js.map +1 -0
- package/dist/services/organizations.service.d.ts +1 -1
- package/dist/services/organizations.service.d.ts.map +1 -1
- package/dist/services/organizations.service.js +132 -0
- package/dist/services/organizations.service.js.map +1 -0
- package/dist/services/scheduling.service.d.ts +32 -29
- package/dist/services/scheduling.service.d.ts.map +1 -1
- package/dist/services/scheduling.service.js +122 -0
- package/dist/services/scheduling.service.js.map +1 -0
- package/dist/services/users.service.js +93 -0
- package/dist/services/users.service.js.map +1 -0
- package/dist/typebox/calendar.tb.d.ts +7 -6
- package/dist/typebox/calendar.tb.d.ts.map +1 -1
- package/dist/typebox/calendar.tb.js +92 -0
- package/dist/typebox/calendar.tb.js.map +1 -0
- package/dist/typebox/oauth.tb.d.ts +2 -2
- package/dist/typebox/oauth.tb.js +16 -0
- package/dist/typebox/oauth.tb.js.map +1 -0
- package/dist/typebox/organization.stripped.tb.js +7 -0
- package/dist/typebox/organization.stripped.tb.js.map +1 -0
- package/dist/typebox/organization.tb.js +8 -0
- package/dist/typebox/organization.tb.js.map +1 -0
- package/dist/typebox/scheduling.tb.js +118 -0
- package/dist/typebox/scheduling.tb.js.map +1 -0
- package/dist/typebox/timeString.tb.js +7 -0
- package/dist/typebox/timeString.tb.js.map +1 -0
- package/dist/typebox/user.stripped.tb.js +6 -0
- package/dist/typebox/user.stripped.tb.js.map +1 -0
- package/dist/typebox/user.tb.d.ts +1 -1
- package/dist/typebox/user.tb.js +10 -0
- package/dist/typebox/user.tb.js.map +1 -0
- package/dist/types/calendar.types.d.ts +5 -7
- package/dist/types/calendar.types.d.ts.map +1 -1
- package/dist/types/calendar.types.js +27 -56
- package/dist/types/calendar.types.js.map +1 -1
- package/dist/types/internal.types.js +2 -0
- package/dist/types/internal.types.js.map +1 -0
- package/dist/types/oauth.types.d.ts +1 -1
- package/dist/types/oauth.types.d.ts.map +1 -1
- package/dist/types/oauth.types.js +2 -0
- package/dist/types/oauth.types.js.map +1 -0
- package/dist/types/scheduling.types.js +2 -0
- package/dist/types/scheduling.types.js.map +1 -0
- package/dist/utils/fetch.helper.d.ts +1 -1
- package/dist/utils/fetch.helper.d.ts.map +1 -1
- package/dist/utils/fetch.helper.js +93 -0
- package/dist/utils/fetch.helper.js.map +1 -0
- package/dist/utils/fetchErrorHandler.js +32 -0
- package/dist/utils/fetchErrorHandler.js.map +1 -0
- package/dist/utils/functionize.js +6 -0
- package/dist/utils/functionize.js.map +1 -0
- package/dist/utils/includes.helper.js +10 -0
- package/dist/utils/includes.helper.js.map +1 -0
- package/dist/utils/omit.js +4 -0
- package/dist/utils/omit.js.map +1 -0
- package/package.json +7 -5
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Static } from '@sinclair/typebox';
|
|
2
|
-
import type { organizationSchema } from '
|
|
2
|
+
import type { organizationSchema } from '../typebox/organization.tb';
|
|
3
3
|
import type { FetchHelper } from '../utils/fetch.helper';
|
|
4
4
|
import { User } from './user';
|
|
5
5
|
export declare class Organization {
|
|
6
|
-
private fetchHelper;
|
|
6
|
+
private readonly fetchHelper;
|
|
7
7
|
slug: string;
|
|
8
8
|
name: string | null;
|
|
9
9
|
createdAt: Date;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization.d.ts","sourceRoot":"","sources":["../../src/entities/organization.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAE/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"organization.d.ts","sourceRoot":"","sources":["../../src/entities/organization.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAE/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AACnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAE7B,qBAAa,YAAY;IACrB,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAa;IAClC,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,SAAS,EAAE,IAAI,CAAA;IACf,OAAO,CAAC,EAAE,IAAI,EAAE,CAAA;gBAEX,EACR,IAAI,EACJ,IAAI,EACJ,SAAS,EACT,OAAO,EACP,WAAW,GACd,EAAE;QACC,IAAI,EAAE,MAAM,CAAA;QACZ,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;QACnB,SAAS,EAAE,IAAI,CAAA;QACf,OAAO,CAAC,EAAE,IAAI,EAAE,CAAA;QAChB,WAAW,EAAE,WAAW,CAAA;KAC3B;IAQD,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,OAAO,kBAAkB,CAAC,EAAE,WAAW,EAAE,WAAW,GAAG,YAAY;IAQnF,UAAU,CAAC,OAAO,UAAQ,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;CAQ5D"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { OrganizationsService } from '../services/organizations.service.js';
|
|
2
|
+
import { User } from './user.js';
|
|
3
|
+
export class Organization {
|
|
4
|
+
fetchHelper;
|
|
5
|
+
slug;
|
|
6
|
+
name;
|
|
7
|
+
createdAt;
|
|
8
|
+
members;
|
|
9
|
+
constructor({ slug, name, createdAt, members, fetchHelper, }) {
|
|
10
|
+
this.slug = slug;
|
|
11
|
+
this.name = name;
|
|
12
|
+
this.createdAt = createdAt;
|
|
13
|
+
this.members = members;
|
|
14
|
+
this.fetchHelper = fetchHelper;
|
|
15
|
+
}
|
|
16
|
+
static fromJson(json, fetchHelper) {
|
|
17
|
+
return new Organization({
|
|
18
|
+
...json,
|
|
19
|
+
members: json.members?.map((member) => User.fromJson(member, fetchHelper)),
|
|
20
|
+
fetchHelper,
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
async getMembers(refetch = false) {
|
|
24
|
+
if (refetch) {
|
|
25
|
+
const organizationsService = new OrganizationsService(this.fetchHelper);
|
|
26
|
+
const newData = await organizationsService.getMembers(this.slug);
|
|
27
|
+
this.members = newData;
|
|
28
|
+
}
|
|
29
|
+
return this.members ?? [];
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=organization.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organization.js","sourceRoot":"","sources":["../../src/entities/organization.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAA;AAGvE,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAE7B,MAAM,OAAO,YAAY;IACJ,WAAW,CAAa;IAClC,IAAI,CAAQ;IACZ,IAAI,CAAe;IACnB,SAAS,CAAM;IACf,OAAO,CAAS;IAEvB,YAAY,EACR,IAAI,EACJ,IAAI,EACJ,SAAS,EACT,OAAO,EACP,WAAW,GAOd;QACG,IAAI,CAAC,IAAI,GAAG,IAAI,CAAA;QAChB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAA;QAChB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAA;QAC1B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAA;IAClC,CAAC;IAED,MAAM,CAAC,QAAQ,CAAC,IAAuC,EAAE,WAAwB;QAC7E,OAAO,IAAI,YAAY,CAAC;YACpB,GAAG,IAAI;YACP,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;YAC1E,WAAW;SACd,CAAC,CAAA;IACN,CAAC;IAEM,KAAK,CAAC,UAAU,CAAC,OAAO,GAAG,KAAK;QACnC,IAAI,OAAO,EAAE,CAAC;YACV,MAAM,oBAAoB,GAAG,IAAI,oBAAoB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;YACvE,MAAM,OAAO,GAAG,MAAM,oBAAoB,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;YAChE,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QAC1B,CAAC;QACD,OAAO,IAAI,CAAC,OAAO,IAAI,EAAE,CAAA;IAC7B,CAAC;CACJ"}
|
package/dist/entities/user.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { Static } from '@sinclair/typebox';
|
|
2
|
-
import type { userSchema } from '
|
|
2
|
+
import type { userSchema } from '../typebox/user.tb';
|
|
3
3
|
import type { OAuthConnection } from '../types/oauth.types';
|
|
4
4
|
import type { FetchHelper } from '../utils/fetch.helper';
|
|
5
5
|
import { Organization } from './organization';
|
|
6
6
|
export declare class User {
|
|
7
|
-
private fetchHelper;
|
|
7
|
+
private readonly fetchHelper;
|
|
8
8
|
id: string;
|
|
9
9
|
createdAt: Date;
|
|
10
10
|
organizations?: Organization[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/entities/user.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAI/C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/entities/user.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAI/C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE7C,qBAAa,IAAI;IACb,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAa;IAClC,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,IAAI,CAAA;IACf,aAAa,CAAC,EAAE,YAAY,EAAE,CAAA;IAC9B,gBAAgB,CAAC,EAAE,eAAe,EAAE,CAAA;gBAE/B,EACR,EAAE,EACF,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,WAAW,GACd,EAAE;QACC,EAAE,EAAE,MAAM,CAAA;QACV,SAAS,EAAE,IAAI,CAAA;QACf,aAAa,CAAC,EAAE,YAAY,EAAE,CAAA;QAC9B,gBAAgB,CAAC,EAAE,eAAe,EAAE,CAAA;QACpC,WAAW,EAAE,WAAW,CAAA;KAC3B;IAQD,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,OAAO,UAAU,CAAC,EAAE,WAAW,EAAE,WAAW,GAAG,IAAI;IASnE,gBAAgB,CAAC,OAAO,UAAQ,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC;IAU1D,mBAAmB,CAAC,OAAO,UAAQ,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;CAQhF"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { UserNotFoundError } from '../errors.js';
|
|
2
|
+
import { OAuthService } from '../services/oauth.service.js';
|
|
3
|
+
import { OrganizationsService } from '../services/organizations.service.js';
|
|
4
|
+
import { Organization } from './organization.js';
|
|
5
|
+
export class User {
|
|
6
|
+
fetchHelper;
|
|
7
|
+
id;
|
|
8
|
+
createdAt;
|
|
9
|
+
organizations;
|
|
10
|
+
oauthConnections;
|
|
11
|
+
constructor({ id, createdAt, organizations, oauthConnections, fetchHelper, }) {
|
|
12
|
+
this.id = id;
|
|
13
|
+
this.createdAt = createdAt;
|
|
14
|
+
this.organizations = organizations;
|
|
15
|
+
this.oauthConnections = oauthConnections;
|
|
16
|
+
this.fetchHelper = fetchHelper;
|
|
17
|
+
}
|
|
18
|
+
static fromJson(json, fetchHelper) {
|
|
19
|
+
return new User({
|
|
20
|
+
...json,
|
|
21
|
+
organizations: json.organizations?.map((org) => Organization.fromJson(org, fetchHelper)),
|
|
22
|
+
oauthConnections: json.oauthConnections,
|
|
23
|
+
fetchHelper,
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
async getOrganizations(refetch = false) {
|
|
27
|
+
if (this.organizations === undefined || refetch) {
|
|
28
|
+
const organizationsService = new OrganizationsService(this.fetchHelper);
|
|
29
|
+
const orgs = await organizationsService.listAllFromUser(this.id);
|
|
30
|
+
if (!orgs)
|
|
31
|
+
throw new UserNotFoundError(this.id);
|
|
32
|
+
this.organizations = orgs;
|
|
33
|
+
}
|
|
34
|
+
return this.organizations ?? [];
|
|
35
|
+
}
|
|
36
|
+
async getOAuthConnections(refetch = false) {
|
|
37
|
+
if (this.oauthConnections === undefined || refetch) {
|
|
38
|
+
const oauthService = new OAuthService(this.fetchHelper);
|
|
39
|
+
const connections = await oauthService.getAllConnections(this.id);
|
|
40
|
+
this.oauthConnections = connections;
|
|
41
|
+
}
|
|
42
|
+
return this.oauthConnections ?? [];
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=user.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../src/entities/user.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AACvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAA;AAIvE,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE7C,MAAM,OAAO,IAAI;IACI,WAAW,CAAa;IAClC,EAAE,CAAQ;IACV,SAAS,CAAM;IACf,aAAa,CAAiB;IAC9B,gBAAgB,CAAoB;IAE3C,YAAY,EACR,EAAE,EACF,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,WAAW,GAOd;QACG,IAAI,CAAC,EAAE,GAAG,EAAE,CAAA;QACZ,IAAI,CAAC,SAAS,GAAG,SAAS,CAAA;QAC1B,IAAI,CAAC,aAAa,GAAG,aAAa,CAAA;QAClC,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAA;QACxC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAA;IAClC,CAAC;IAED,MAAM,CAAC,QAAQ,CAAC,IAA+B,EAAE,WAAwB;QACrE,OAAO,IAAI,IAAI,CAAC;YACZ,GAAG,IAAI;YACP,aAAa,EAAE,IAAI,CAAC,aAAa,EAAE,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,GAAG,EAAE,WAAW,CAAC,CAAC;YACxF,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;YACvC,WAAW;SACd,CAAC,CAAA;IACN,CAAC;IAEM,KAAK,CAAC,gBAAgB,CAAC,OAAO,GAAG,KAAK;QACzC,IAAI,IAAI,CAAC,aAAa,KAAK,SAAS,IAAI,OAAO,EAAE,CAAC;YAC9C,MAAM,oBAAoB,GAAG,IAAI,oBAAoB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;YACvE,MAAM,IAAI,GAAG,MAAM,oBAAoB,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;YAChE,IAAI,CAAC,IAAI;gBAAE,MAAM,IAAI,iBAAiB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;YAC/C,IAAI,CAAC,aAAa,GAAG,IAAI,CAAA;QAC7B,CAAC;QACD,OAAO,IAAI,CAAC,aAAa,IAAI,EAAE,CAAA;IACnC,CAAC;IAEM,KAAK,CAAC,mBAAmB,CAAC,OAAO,GAAG,KAAK;QAC5C,IAAI,IAAI,CAAC,gBAAgB,KAAK,SAAS,IAAI,OAAO,EAAE,CAAC;YACjD,MAAM,YAAY,GAAG,IAAI,YAAY,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;YACvD,MAAM,WAAW,GAAG,MAAM,YAAY,CAAC,iBAAiB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;YACjE,IAAI,CAAC,gBAAgB,GAAG,WAAW,CAAA;QACvC,CAAC;QACD,OAAO,IAAI,CAAC,gBAAgB,IAAI,EAAE,CAAA;IACtC,CAAC;CACJ"}
|
package/dist/errors.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export class OrganizationNotFoundError extends Error {
|
|
2
|
+
constructor(slug) {
|
|
3
|
+
super(`[Recal] Organization ${slug} not found`);
|
|
4
|
+
}
|
|
5
|
+
}
|
|
6
|
+
export class OrganizationAlreadyExistsError extends Error {
|
|
7
|
+
constructor(slug) {
|
|
8
|
+
super(`[Recal] Organization ${slug} already exists`);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export class UserAlreadyExistsError extends Error {
|
|
12
|
+
constructor(userId) {
|
|
13
|
+
super(`[Recal] User ${userId} already exists`);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export class UserNotFoundError extends Error {
|
|
17
|
+
constructor(userId) {
|
|
18
|
+
super(`[Recal] User ${userId} not found`);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
export class ProviderCredentialsNotSetError extends Error {
|
|
22
|
+
constructor(provider) {
|
|
23
|
+
super(`[Recal] Provider ${provider} credentials not set`);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export class OAuthConnectionNotFoundError extends Error {
|
|
27
|
+
constructor(userId, provider) {
|
|
28
|
+
super(`[Recal] OAuth connection not found for user ${userId} and provider ${provider}`);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
export class EventNotFoundError extends Error {
|
|
32
|
+
constructor(eventId) {
|
|
33
|
+
super(`[Recal] Event ${eventId} not found`);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,yBAA0B,SAAQ,KAAK;IAChD,YAAmB,IAAY;QAC3B,KAAK,CAAC,wBAAwB,IAAI,YAAY,CAAC,CAAA;IACnD,CAAC;CACJ;AAED,MAAM,OAAO,8BAA+B,SAAQ,KAAK;IACrD,YAAmB,IAAY;QAC3B,KAAK,CAAC,wBAAwB,IAAI,iBAAiB,CAAC,CAAA;IACxD,CAAC;CACJ;AAED,MAAM,OAAO,sBAAuB,SAAQ,KAAK;IAC7C,YAAmB,MAAc;QAC7B,KAAK,CAAC,gBAAgB,MAAM,iBAAiB,CAAC,CAAA;IAClD,CAAC;CACJ;AAED,MAAM,OAAO,iBAAkB,SAAQ,KAAK;IACxC,YAAmB,MAAc;QAC7B,KAAK,CAAC,gBAAgB,MAAM,YAAY,CAAC,CAAA;IAC7C,CAAC;CACJ;AAED,MAAM,OAAO,8BAA+B,SAAQ,KAAK;IACrD,YAAmB,QAAgB;QAC/B,KAAK,CAAC,oBAAoB,QAAQ,sBAAsB,CAAC,CAAA;IAC7D,CAAC;CACJ;AAED,MAAM,OAAO,4BAA6B,SAAQ,KAAK;IACnD,YAAmB,MAAc,EAAE,QAAgB;QAC/C,KAAK,CAAC,+CAA+C,MAAM,iBAAiB,QAAQ,EAAE,CAAC,CAAA;IAC3F,CAAC;CACJ;AAED,MAAM,OAAO,kBAAmB,SAAQ,KAAK;IACzC,YAAmB,OAAe;QAC9B,KAAK,CAAC,iBAAiB,OAAO,YAAY,CAAC,CAAA;IAC/C,CAAC;CACJ"}
|
package/dist/index.d.ts
CHANGED
|
@@ -6,8 +6,8 @@ import { UsersService } from './services/users.service';
|
|
|
6
6
|
import type { RecalOptions } from './types/internal.types';
|
|
7
7
|
/**
|
|
8
8
|
* Recal SDK
|
|
9
|
-
* @description Recal SDK for
|
|
10
|
-
* @version 0.
|
|
9
|
+
* @description Recal SDK for JavaScript/TypeScript
|
|
10
|
+
* @version 0.2.0
|
|
11
11
|
* @author Recal <team@recal.dev>
|
|
12
12
|
* @license MIT
|
|
13
13
|
*/
|
|
@@ -20,9 +20,13 @@ export declare class RecalClient {
|
|
|
20
20
|
users: UsersService;
|
|
21
21
|
calendar: CalendarService;
|
|
22
22
|
scheduling: SchedulingService;
|
|
23
|
-
constructor(options
|
|
23
|
+
constructor(options?: RecalOptions);
|
|
24
24
|
}
|
|
25
25
|
export * from './entities/organization';
|
|
26
26
|
export * from './entities/user';
|
|
27
27
|
export * from './errors';
|
|
28
|
+
export * from './types/calendar.types';
|
|
29
|
+
export type { RecalOptions, RecalOptions as RecalClientOptions } from './types/internal.types';
|
|
30
|
+
export * from './types/oauth.types';
|
|
31
|
+
export * from './types/scheduling.types';
|
|
28
32
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"m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