@totoday/quinn-sdk 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/dist/http.d.ts +6 -0
- package/dist/http.js +16 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.js +49 -0
- package/dist/services/competencies.d.ts +11 -0
- package/dist/services/competencies.js +28 -0
- package/dist/services/endorsements.d.ts +10 -0
- package/dist/services/endorsements.js +24 -0
- package/dist/services/levels.d.ts +10 -0
- package/dist/services/levels.js +26 -0
- package/dist/services/members.d.ts +15 -0
- package/dist/services/members.js +40 -0
- package/dist/services/organizations.d.ts +9 -0
- package/dist/services/organizations.js +20 -0
- package/dist/services/roles.d.ts +10 -0
- package/dist/services/roles.js +24 -0
- package/dist/types.d.ts +107 -0
- package/dist/types.js +2 -0
- package/package.json +19 -0
package/dist/http.d.ts
ADDED
package/dist/http.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.createQuinnHttpClient = createQuinnHttpClient;
|
|
7
|
+
const axios_1 = __importDefault(require("axios"));
|
|
8
|
+
function createQuinnHttpClient(config) {
|
|
9
|
+
return axios_1.default.create({
|
|
10
|
+
baseURL: config.apiUrl,
|
|
11
|
+
headers: {
|
|
12
|
+
Authorization: `Bearer ${config.token}`,
|
|
13
|
+
'Content-Type': 'application/json',
|
|
14
|
+
},
|
|
15
|
+
});
|
|
16
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
2
|
+
import { CompetenciesService } from './services/competencies';
|
|
3
|
+
import { EndorsementsService } from './services/endorsements';
|
|
4
|
+
import { LevelsService } from './services/levels';
|
|
5
|
+
import { MembersService } from './services/members';
|
|
6
|
+
import { OrganizationsService } from './services/organizations';
|
|
7
|
+
import { RolesService } from './services/roles';
|
|
8
|
+
export * from './types';
|
|
9
|
+
export interface QuinnClientConfig {
|
|
10
|
+
apiUrl: string;
|
|
11
|
+
token: string;
|
|
12
|
+
orgId: string;
|
|
13
|
+
httpClient?: AxiosInstance;
|
|
14
|
+
}
|
|
15
|
+
export declare class Quinn {
|
|
16
|
+
private readonly config;
|
|
17
|
+
private readonly http;
|
|
18
|
+
readonly organizations: OrganizationsService;
|
|
19
|
+
readonly members: MembersService;
|
|
20
|
+
readonly roles: RolesService;
|
|
21
|
+
readonly levels: LevelsService;
|
|
22
|
+
readonly competencies: CompetenciesService;
|
|
23
|
+
readonly endorsements: EndorsementsService;
|
|
24
|
+
constructor(config: QuinnClientConfig);
|
|
25
|
+
private orgPath;
|
|
26
|
+
}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.Quinn = void 0;
|
|
18
|
+
const http_1 = require("./http");
|
|
19
|
+
const competencies_1 = require("./services/competencies");
|
|
20
|
+
const endorsements_1 = require("./services/endorsements");
|
|
21
|
+
const levels_1 = require("./services/levels");
|
|
22
|
+
const members_1 = require("./services/members");
|
|
23
|
+
const organizations_1 = require("./services/organizations");
|
|
24
|
+
const roles_1 = require("./services/roles");
|
|
25
|
+
__exportStar(require("./types"), exports);
|
|
26
|
+
class Quinn {
|
|
27
|
+
config;
|
|
28
|
+
http;
|
|
29
|
+
organizations;
|
|
30
|
+
members;
|
|
31
|
+
roles;
|
|
32
|
+
levels;
|
|
33
|
+
competencies;
|
|
34
|
+
endorsements;
|
|
35
|
+
constructor(config) {
|
|
36
|
+
this.config = config;
|
|
37
|
+
this.http =
|
|
38
|
+
config.httpClient ??
|
|
39
|
+
(0, http_1.createQuinnHttpClient)({ apiUrl: config.apiUrl, token: config.token });
|
|
40
|
+
this.organizations = new organizations_1.OrganizationsService(this.http, this.orgPath);
|
|
41
|
+
this.members = new members_1.MembersService(this.http, this.orgPath);
|
|
42
|
+
this.roles = new roles_1.RolesService(this.http, this.orgPath);
|
|
43
|
+
this.levels = new levels_1.LevelsService(this.http, this.orgPath);
|
|
44
|
+
this.competencies = new competencies_1.CompetenciesService(this.http, this.orgPath);
|
|
45
|
+
this.endorsements = new endorsements_1.EndorsementsService(this.http, this.orgPath);
|
|
46
|
+
}
|
|
47
|
+
orgPath = () => `/platform/v1/orgs/${this.config.orgId}`;
|
|
48
|
+
}
|
|
49
|
+
exports.Quinn = Quinn;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
2
|
+
import { CompetenciesListQuery, Competency, Course, PagedResult } from '../types';
|
|
3
|
+
export declare class CompetenciesService {
|
|
4
|
+
private readonly http;
|
|
5
|
+
private readonly orgPath;
|
|
6
|
+
constructor(http: AxiosInstance, orgPath: () => string);
|
|
7
|
+
list(query: CompetenciesListQuery): Promise<PagedResult<Competency>>;
|
|
8
|
+
get(id: string): Promise<Competency | null>;
|
|
9
|
+
batchGet(ids: string[]): Promise<Competency[]>;
|
|
10
|
+
listCourses(id: string): Promise<Course[]>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CompetenciesService = void 0;
|
|
4
|
+
class CompetenciesService {
|
|
5
|
+
http;
|
|
6
|
+
orgPath;
|
|
7
|
+
constructor(http, orgPath) {
|
|
8
|
+
this.http = http;
|
|
9
|
+
this.orgPath = orgPath;
|
|
10
|
+
}
|
|
11
|
+
async list(query) {
|
|
12
|
+
const resp = await this.http.get(`${this.orgPath()}/competencies`, { params: query });
|
|
13
|
+
return resp.data;
|
|
14
|
+
}
|
|
15
|
+
async get(id) {
|
|
16
|
+
const resp = await this.http.get(`${this.orgPath()}/competencies/${id}`);
|
|
17
|
+
return resp.data.item;
|
|
18
|
+
}
|
|
19
|
+
async batchGet(ids) {
|
|
20
|
+
const resp = await this.http.post(`${this.orgPath()}/competencies/batch`, { ids });
|
|
21
|
+
return resp.data.items;
|
|
22
|
+
}
|
|
23
|
+
async listCourses(id) {
|
|
24
|
+
const resp = await this.http.get(`${this.orgPath()}/competencies/${id}/courses`);
|
|
25
|
+
return resp.data.items;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.CompetenciesService = CompetenciesService;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
2
|
+
import { Endorsement, ListEndorsementsInput } from '../types';
|
|
3
|
+
export declare class EndorsementsService {
|
|
4
|
+
private readonly http;
|
|
5
|
+
private readonly orgPath;
|
|
6
|
+
constructor(http: AxiosInstance, orgPath: () => string);
|
|
7
|
+
get(id: string): Promise<Endorsement | null>;
|
|
8
|
+
find(uid: string, competencyId: string): Promise<Endorsement | null>;
|
|
9
|
+
list(input: ListEndorsementsInput): Promise<Endorsement[]>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EndorsementsService = void 0;
|
|
4
|
+
class EndorsementsService {
|
|
5
|
+
http;
|
|
6
|
+
orgPath;
|
|
7
|
+
constructor(http, orgPath) {
|
|
8
|
+
this.http = http;
|
|
9
|
+
this.orgPath = orgPath;
|
|
10
|
+
}
|
|
11
|
+
async get(id) {
|
|
12
|
+
const resp = await this.http.get(`${this.orgPath()}/endorsements/${id}`);
|
|
13
|
+
return resp.data.item;
|
|
14
|
+
}
|
|
15
|
+
async find(uid, competencyId) {
|
|
16
|
+
const resp = await this.http.get(`${this.orgPath()}/endorsements/find`, { params: { uid, competencyId } });
|
|
17
|
+
return resp.data.item;
|
|
18
|
+
}
|
|
19
|
+
async list(input) {
|
|
20
|
+
const resp = await this.http.post(`${this.orgPath()}/endorsements/list`, input);
|
|
21
|
+
return resp.data.items;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.EndorsementsService = EndorsementsService;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
2
|
+
import { Level, LevelsListQuery, PagedResult } from '../types';
|
|
3
|
+
export declare class LevelsService {
|
|
4
|
+
private readonly http;
|
|
5
|
+
private readonly orgPath;
|
|
6
|
+
constructor(http: AxiosInstance, orgPath: () => string);
|
|
7
|
+
list(query: LevelsListQuery): Promise<PagedResult<Level>>;
|
|
8
|
+
get(id: string): Promise<Level | null>;
|
|
9
|
+
batchGet(ids: string[]): Promise<Level[]>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LevelsService = void 0;
|
|
4
|
+
class LevelsService {
|
|
5
|
+
http;
|
|
6
|
+
orgPath;
|
|
7
|
+
constructor(http, orgPath) {
|
|
8
|
+
this.http = http;
|
|
9
|
+
this.orgPath = orgPath;
|
|
10
|
+
}
|
|
11
|
+
async list(query) {
|
|
12
|
+
const resp = await this.http.get(`${this.orgPath()}/levels`, {
|
|
13
|
+
params: query,
|
|
14
|
+
});
|
|
15
|
+
return resp.data;
|
|
16
|
+
}
|
|
17
|
+
async get(id) {
|
|
18
|
+
const resp = await this.http.get(`${this.orgPath()}/levels/${id}`);
|
|
19
|
+
return resp.data.item;
|
|
20
|
+
}
|
|
21
|
+
async batchGet(ids) {
|
|
22
|
+
const resp = await this.http.post(`${this.orgPath()}/levels/batch`, { ids });
|
|
23
|
+
return resp.data.items;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.LevelsService = LevelsService;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
2
|
+
import { Member, MembersBatchGetInput, MembersListQuery, PagedResult } from '../types';
|
|
3
|
+
export declare class MembersService {
|
|
4
|
+
private readonly http;
|
|
5
|
+
private readonly orgPath;
|
|
6
|
+
constructor(http: AxiosInstance, orgPath: () => string);
|
|
7
|
+
list(query?: MembersListQuery): Promise<PagedResult<Member>>;
|
|
8
|
+
listManagers(query?: {
|
|
9
|
+
limit?: number;
|
|
10
|
+
token?: string;
|
|
11
|
+
search?: string;
|
|
12
|
+
}): Promise<PagedResult<Member>>;
|
|
13
|
+
get(id: string): Promise<Member | null>;
|
|
14
|
+
batchGet(input: string[] | MembersBatchGetInput): Promise<Member[]>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MembersService = void 0;
|
|
4
|
+
class MembersService {
|
|
5
|
+
http;
|
|
6
|
+
orgPath;
|
|
7
|
+
constructor(http, orgPath) {
|
|
8
|
+
this.http = http;
|
|
9
|
+
this.orgPath = orgPath;
|
|
10
|
+
}
|
|
11
|
+
async list(query = {}) {
|
|
12
|
+
const params = {
|
|
13
|
+
limit: query.limit,
|
|
14
|
+
token: query.token,
|
|
15
|
+
search: query.search,
|
|
16
|
+
managerUid: query.managerUid,
|
|
17
|
+
privilege: Array.isArray(query.privilege)
|
|
18
|
+
? query.privilege.join(',')
|
|
19
|
+
: query.privilege,
|
|
20
|
+
};
|
|
21
|
+
const resp = await this.http.get(`${this.orgPath()}/members`, { params });
|
|
22
|
+
return resp.data;
|
|
23
|
+
}
|
|
24
|
+
async listManagers(query = {}) {
|
|
25
|
+
const resp = await this.http.get(`${this.orgPath()}/members/managers`, { params: query });
|
|
26
|
+
return resp.data;
|
|
27
|
+
}
|
|
28
|
+
async get(id) {
|
|
29
|
+
const resp = await this.http.get(`${this.orgPath()}/members/${id}`);
|
|
30
|
+
return resp.data.item;
|
|
31
|
+
}
|
|
32
|
+
async batchGet(input) {
|
|
33
|
+
const body = Array.isArray(input)
|
|
34
|
+
? { ids: input }
|
|
35
|
+
: input;
|
|
36
|
+
const resp = await this.http.post(`${this.orgPath()}/members/batch`, body);
|
|
37
|
+
return resp.data.items;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.MembersService = MembersService;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
2
|
+
import { Organization, OrganizationDetails } from '../types';
|
|
3
|
+
export declare class OrganizationsService {
|
|
4
|
+
private readonly http;
|
|
5
|
+
private readonly orgPath;
|
|
6
|
+
constructor(http: AxiosInstance, orgPath: () => string);
|
|
7
|
+
get(): Promise<Organization | null>;
|
|
8
|
+
getDetails(): Promise<OrganizationDetails>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OrganizationsService = void 0;
|
|
4
|
+
class OrganizationsService {
|
|
5
|
+
http;
|
|
6
|
+
orgPath;
|
|
7
|
+
constructor(http, orgPath) {
|
|
8
|
+
this.http = http;
|
|
9
|
+
this.orgPath = orgPath;
|
|
10
|
+
}
|
|
11
|
+
async get() {
|
|
12
|
+
const resp = await this.http.get(this.orgPath());
|
|
13
|
+
return resp.data.item;
|
|
14
|
+
}
|
|
15
|
+
async getDetails() {
|
|
16
|
+
const resp = await this.http.get(`${this.orgPath()}/details`);
|
|
17
|
+
return resp.data.item;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.OrganizationsService = OrganizationsService;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
2
|
+
import { Role } from '../types';
|
|
3
|
+
export declare class RolesService {
|
|
4
|
+
private readonly http;
|
|
5
|
+
private readonly orgPath;
|
|
6
|
+
constructor(http: AxiosInstance, orgPath: () => string);
|
|
7
|
+
list(): Promise<Role[]>;
|
|
8
|
+
get(id: string): Promise<Role | null>;
|
|
9
|
+
batchGet(ids: string[]): Promise<Role[]>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RolesService = void 0;
|
|
4
|
+
class RolesService {
|
|
5
|
+
http;
|
|
6
|
+
orgPath;
|
|
7
|
+
constructor(http, orgPath) {
|
|
8
|
+
this.http = http;
|
|
9
|
+
this.orgPath = orgPath;
|
|
10
|
+
}
|
|
11
|
+
async list() {
|
|
12
|
+
const resp = await this.http.get(`${this.orgPath()}/roles`);
|
|
13
|
+
return resp.data.items;
|
|
14
|
+
}
|
|
15
|
+
async get(id) {
|
|
16
|
+
const resp = await this.http.get(`${this.orgPath()}/roles/${id}`);
|
|
17
|
+
return resp.data.item;
|
|
18
|
+
}
|
|
19
|
+
async batchGet(ids) {
|
|
20
|
+
const resp = await this.http.post(`${this.orgPath()}/roles/batch`, { ids });
|
|
21
|
+
return resp.data.items;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.RolesService = RolesService;
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
export type Privilege = 'owner' | 'admin' | 'member';
|
|
2
|
+
export interface PaginationQuery {
|
|
3
|
+
limit?: number;
|
|
4
|
+
token?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface PagedResult<T> {
|
|
7
|
+
items: T[];
|
|
8
|
+
nextToken: string;
|
|
9
|
+
}
|
|
10
|
+
export interface Organization {
|
|
11
|
+
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
}
|
|
14
|
+
export interface OrganizationDetails {
|
|
15
|
+
organization: Organization | null;
|
|
16
|
+
stats: {
|
|
17
|
+
members: number;
|
|
18
|
+
managers: number;
|
|
19
|
+
roles: number;
|
|
20
|
+
levels: number;
|
|
21
|
+
competencies: number;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export interface Member {
|
|
25
|
+
userId: string;
|
|
26
|
+
email: string;
|
|
27
|
+
firstName: string;
|
|
28
|
+
lastName: string;
|
|
29
|
+
privilege: Privilege;
|
|
30
|
+
managerUid: string | null;
|
|
31
|
+
roleIds: string[];
|
|
32
|
+
createdAt: string;
|
|
33
|
+
activatedAt: string | null;
|
|
34
|
+
phoneNumber: string | null;
|
|
35
|
+
}
|
|
36
|
+
export interface MembersListQuery extends PaginationQuery {
|
|
37
|
+
search?: string;
|
|
38
|
+
privilege?: Privilege | Privilege[];
|
|
39
|
+
managerUid?: string;
|
|
40
|
+
}
|
|
41
|
+
export interface MembersBatchGetInput {
|
|
42
|
+
ids?: string[];
|
|
43
|
+
emails?: string[];
|
|
44
|
+
}
|
|
45
|
+
export interface Role {
|
|
46
|
+
id: string;
|
|
47
|
+
label: string;
|
|
48
|
+
levelIds: string[];
|
|
49
|
+
createdAt: string;
|
|
50
|
+
updatedAt: string;
|
|
51
|
+
}
|
|
52
|
+
export interface Level {
|
|
53
|
+
id: string;
|
|
54
|
+
roleId: string;
|
|
55
|
+
name: string;
|
|
56
|
+
color: string;
|
|
57
|
+
value: number;
|
|
58
|
+
completeThreshold: number;
|
|
59
|
+
revenueCapacity: number | null;
|
|
60
|
+
compensation: string | null;
|
|
61
|
+
competencyIds: string[];
|
|
62
|
+
createdAt: string;
|
|
63
|
+
updatedAt: string;
|
|
64
|
+
}
|
|
65
|
+
export interface LevelsListQuery extends PaginationQuery {
|
|
66
|
+
roleId: string;
|
|
67
|
+
}
|
|
68
|
+
export interface Competency {
|
|
69
|
+
id: string;
|
|
70
|
+
name: string;
|
|
71
|
+
creatorUid: string;
|
|
72
|
+
createdAt: string;
|
|
73
|
+
settings?: {
|
|
74
|
+
managerOnlyEndorsement: boolean;
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
export interface CompetenciesListQuery extends PaginationQuery {
|
|
78
|
+
roleId: string;
|
|
79
|
+
levelId: string;
|
|
80
|
+
search?: string;
|
|
81
|
+
}
|
|
82
|
+
export interface Course {
|
|
83
|
+
id: string;
|
|
84
|
+
name: string;
|
|
85
|
+
creatorUid: string;
|
|
86
|
+
createdAt: string;
|
|
87
|
+
}
|
|
88
|
+
export interface Endorsement {
|
|
89
|
+
id: string;
|
|
90
|
+
uid: string;
|
|
91
|
+
competencyId: string;
|
|
92
|
+
roleId: string | null;
|
|
93
|
+
selfAssessment: string | null;
|
|
94
|
+
selfAssessedAt: string | null;
|
|
95
|
+
endorsedAt: string | null;
|
|
96
|
+
endorsedByUid: string | null;
|
|
97
|
+
endorsementSource: string | null;
|
|
98
|
+
resetAt: string | null;
|
|
99
|
+
resetByUid: string | null;
|
|
100
|
+
resetReason: string | null;
|
|
101
|
+
createdAt: string;
|
|
102
|
+
updatedAt: string;
|
|
103
|
+
}
|
|
104
|
+
export interface ListEndorsementsInput {
|
|
105
|
+
uids: string[];
|
|
106
|
+
competencyIds: string[];
|
|
107
|
+
}
|
package/dist/types.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@totoday/quinn-sdk",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"main": "dist/index.js",
|
|
5
|
+
"types": "dist/index.d.ts",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"axios": "^1.8.4"
|
|
11
|
+
},
|
|
12
|
+
"devDependencies": {
|
|
13
|
+
"typescript": "^5.8.2"
|
|
14
|
+
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"build": "tsc -p tsconfig.json",
|
|
17
|
+
"clean": "rm -rf dist"
|
|
18
|
+
}
|
|
19
|
+
}
|