useresponse 0.0.1 → 0.0.2

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.
Files changed (42) hide show
  1. package/README.md +9 -4
  2. package/dist/Endpoints.d.ts +74 -0
  3. package/dist/Endpoints.js +173 -0
  4. package/dist/UseResponse.d.ts +11 -0
  5. package/dist/UseResponse.js +38 -0
  6. package/dist/api/AdditionalAPI.d.ts +8 -0
  7. package/dist/api/AdditionalAPI.js +33 -0
  8. package/dist/api/AuthAPI.d.ts +7 -0
  9. package/dist/api/AuthAPI.js +26 -0
  10. package/dist/api/CategoriesAPI.d.ts +13 -0
  11. package/dist/api/CategoriesAPI.js +33 -0
  12. package/dist/api/ChangelogAPI.d.ts +8 -0
  13. package/dist/api/ChangelogAPI.js +33 -0
  14. package/dist/api/ChatsAPI.d.ts +13 -0
  15. package/dist/api/ChatsAPI.js +40 -0
  16. package/dist/api/CommentsAPI.d.ts +14 -0
  17. package/dist/api/CommentsAPI.js +75 -0
  18. package/dist/api/CustomFieldsAPI.d.ts +8 -0
  19. package/dist/api/CustomFieldsAPI.js +33 -0
  20. package/dist/api/ModerationAPI.d.ts +10 -0
  21. package/dist/api/ModerationAPI.js +47 -0
  22. package/dist/api/ObjectsAPI.d.ts +19 -0
  23. package/dist/api/ObjectsAPI.js +110 -0
  24. package/dist/api/ReportsAPI.d.ts +8 -0
  25. package/dist/api/ReportsAPI.js +33 -0
  26. package/dist/api/UserNotesAPI.d.ts +10 -0
  27. package/dist/api/UserNotesAPI.js +47 -0
  28. package/dist/api/UsersAPI.d.ts +16 -0
  29. package/dist/api/UsersAPI.js +89 -0
  30. package/dist/api/index.d.ts +12 -0
  31. package/dist/api/index.js +28 -0
  32. package/dist/index.d.ts +2 -0
  33. package/dist/index.js +18 -0
  34. package/dist/interfaces/API.d.ts +15 -0
  35. package/dist/interfaces/API.js +2 -0
  36. package/dist/interfaces/ClientOptions.d.ts +4 -0
  37. package/dist/interfaces/ClientOptions.js +2 -0
  38. package/dist/interfaces/UseResponseInterfaces.d.ts +723 -0
  39. package/dist/interfaces/UseResponseInterfaces.js +2 -0
  40. package/dist/interfaces/index.d.ts +3 -0
  41. package/dist/interfaces/index.js +19 -0
  42. package/package.json +16 -9
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.CustomFieldsAPI = void 0;
13
+ const Endpoints_1 = require("../Endpoints");
14
+ class CustomFieldsAPI {
15
+ constructor(apiClient) {
16
+ this.apiClient = apiClient;
17
+ }
18
+ getObjectCustomFields() {
19
+ return __awaiter(this, void 0, void 0, function* () {
20
+ const endpoint = Endpoints_1.Endpoint.CustomFields.objectCustomFields();
21
+ const { data } = yield this.apiClient.get(endpoint);
22
+ return data;
23
+ });
24
+ }
25
+ getUserCustomFields() {
26
+ return __awaiter(this, void 0, void 0, function* () {
27
+ const endpoint = Endpoints_1.Endpoint.CustomFields.userCustomFields();
28
+ const { data } = yield this.apiClient.get(endpoint);
29
+ return data;
30
+ });
31
+ }
32
+ }
33
+ exports.CustomFieldsAPI = CustomFieldsAPI;
@@ -0,0 +1,10 @@
1
+ import type { APIClient } from '@ffflorian/api-client';
2
+ import type { CommentModerateResponse, DeclineParams, TopicModerateResponse } from '../interfaces';
3
+ export declare class ModerationAPI {
4
+ private readonly apiClient;
5
+ constructor(apiClient: APIClient);
6
+ approveComment(commentId: string): Promise<CommentModerateResponse>;
7
+ approveTopic(topicId: string): Promise<TopicModerateResponse>;
8
+ declineComment(commentId: string, params?: DeclineParams): Promise<CommentModerateResponse>;
9
+ declineTopic(topicId: string, params?: DeclineParams): Promise<TopicModerateResponse>;
10
+ }
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.ModerationAPI = void 0;
13
+ const Endpoints_1 = require("../Endpoints");
14
+ class ModerationAPI {
15
+ constructor(apiClient) {
16
+ this.apiClient = apiClient;
17
+ }
18
+ approveComment(commentId) {
19
+ return __awaiter(this, void 0, void 0, function* () {
20
+ const endpoint = Endpoints_1.Endpoint.Moderation.approveComment(commentId);
21
+ const { data } = yield this.apiClient.post(endpoint);
22
+ return data;
23
+ });
24
+ }
25
+ approveTopic(topicId) {
26
+ return __awaiter(this, void 0, void 0, function* () {
27
+ const endpoint = Endpoints_1.Endpoint.Moderation.approveTopic(topicId);
28
+ const { data } = yield this.apiClient.post(endpoint);
29
+ return data;
30
+ });
31
+ }
32
+ declineComment(commentId, params) {
33
+ return __awaiter(this, void 0, void 0, function* () {
34
+ const endpoint = Endpoints_1.Endpoint.Moderation.declineComment(commentId);
35
+ const { data } = yield this.apiClient.post(endpoint, params);
36
+ return data;
37
+ });
38
+ }
39
+ declineTopic(topicId, params) {
40
+ return __awaiter(this, void 0, void 0, function* () {
41
+ const endpoint = Endpoints_1.Endpoint.Moderation.declineTopic(topicId);
42
+ const { data } = yield this.apiClient.post(endpoint, params);
43
+ return data;
44
+ });
45
+ }
46
+ }
47
+ exports.ModerationAPI = ModerationAPI;
@@ -0,0 +1,19 @@
1
+ import type { APIClient } from '@ffflorian/api-client';
2
+ import type { CreateObjectResponse, EditObjectResponse, ObjectAddParams, ObjectEditParams, Paginator, SearchResponse, Object as UseResponseObject } from '../interfaces';
3
+ export declare class ObjectsAPI {
4
+ private readonly apiClient;
5
+ constructor(apiClient: APIClient);
6
+ addObject(object: ObjectAddParams): Promise<CreateObjectResponse>;
7
+ archiveObject(objectId: string): Promise<EditObjectResponse>;
8
+ attachFile(objectId: string, file: NonNullable<ObjectAddParams['attachments']>[number]): Promise<EditObjectResponse>;
9
+ deleteObject(objectId: string): Promise<EditObjectResponse>;
10
+ editObject(objectId: string, object: ObjectEditParams): Promise<EditObjectResponse>;
11
+ getObject(objectId: string): Promise<UseResponseObject>;
12
+ getTickets(options?: Record<string, unknown>): Promise<Paginator>;
13
+ search(options?: Record<string, unknown>): Promise<SearchResponse>;
14
+ subscribe(objectId: string): Promise<EditObjectResponse>;
15
+ toggleComments(objectId: string): Promise<EditObjectResponse>;
16
+ toggleVote(objectId: string): Promise<EditObjectResponse>;
17
+ trashObject(objectId: string): Promise<EditObjectResponse>;
18
+ unsubscribe(objectId: string): Promise<EditObjectResponse>;
19
+ }
@@ -0,0 +1,110 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.ObjectsAPI = void 0;
13
+ const Endpoints_1 = require("../Endpoints");
14
+ class ObjectsAPI {
15
+ constructor(apiClient) {
16
+ this.apiClient = apiClient;
17
+ }
18
+ addObject(object) {
19
+ return __awaiter(this, void 0, void 0, function* () {
20
+ const endpoint = Endpoints_1.Endpoint.Objects.objects();
21
+ const { data } = yield this.apiClient.post(endpoint, object);
22
+ return data;
23
+ });
24
+ }
25
+ archiveObject(objectId) {
26
+ return __awaiter(this, void 0, void 0, function* () {
27
+ const endpoint = Endpoints_1.Endpoint.Objects.archive(objectId);
28
+ const { data } = yield this.apiClient.get(endpoint);
29
+ return data;
30
+ });
31
+ }
32
+ attachFile(objectId, file) {
33
+ return __awaiter(this, void 0, void 0, function* () {
34
+ const endpoint = Endpoints_1.Endpoint.Objects.attachFile(objectId);
35
+ const { data } = yield this.apiClient.post(endpoint, file);
36
+ return data;
37
+ });
38
+ }
39
+ deleteObject(objectId) {
40
+ return __awaiter(this, void 0, void 0, function* () {
41
+ const endpoint = Endpoints_1.Endpoint.Objects.object(objectId);
42
+ const { data } = yield this.apiClient.delete(endpoint);
43
+ return data;
44
+ });
45
+ }
46
+ editObject(objectId, object) {
47
+ return __awaiter(this, void 0, void 0, function* () {
48
+ const endpoint = Endpoints_1.Endpoint.Objects.object(objectId);
49
+ const { data } = yield this.apiClient.put(endpoint, object);
50
+ return data;
51
+ });
52
+ }
53
+ getObject(objectId) {
54
+ return __awaiter(this, void 0, void 0, function* () {
55
+ const endpoint = Endpoints_1.Endpoint.Objects.object(objectId);
56
+ const { data } = yield this.apiClient.get(endpoint);
57
+ return data;
58
+ });
59
+ }
60
+ getTickets(options) {
61
+ return __awaiter(this, void 0, void 0, function* () {
62
+ const endpoint = Endpoints_1.Endpoint.Objects.tickets();
63
+ const { data } = yield this.apiClient.get(endpoint, { params: options });
64
+ return data;
65
+ });
66
+ }
67
+ search(options) {
68
+ return __awaiter(this, void 0, void 0, function* () {
69
+ const endpoint = Endpoints_1.Endpoint.Objects.search();
70
+ const { data } = yield this.apiClient.get(endpoint, { params: options });
71
+ return data;
72
+ });
73
+ }
74
+ subscribe(objectId) {
75
+ return __awaiter(this, void 0, void 0, function* () {
76
+ const endpoint = Endpoints_1.Endpoint.Objects.subscribe(objectId);
77
+ const { data } = yield this.apiClient.post(endpoint);
78
+ return data;
79
+ });
80
+ }
81
+ toggleComments(objectId) {
82
+ return __awaiter(this, void 0, void 0, function* () {
83
+ const endpoint = Endpoints_1.Endpoint.Objects.commentsToggle(objectId);
84
+ const { data } = yield this.apiClient.post(endpoint);
85
+ return data;
86
+ });
87
+ }
88
+ toggleVote(objectId) {
89
+ return __awaiter(this, void 0, void 0, function* () {
90
+ const endpoint = Endpoints_1.Endpoint.Objects.toggleVote(objectId);
91
+ const { data } = yield this.apiClient.post(endpoint);
92
+ return data;
93
+ });
94
+ }
95
+ trashObject(objectId) {
96
+ return __awaiter(this, void 0, void 0, function* () {
97
+ const endpoint = Endpoints_1.Endpoint.Objects.trash(objectId);
98
+ const { data } = yield this.apiClient.get(endpoint);
99
+ return data;
100
+ });
101
+ }
102
+ unsubscribe(objectId) {
103
+ return __awaiter(this, void 0, void 0, function* () {
104
+ const endpoint = Endpoints_1.Endpoint.Objects.unsubscribe(objectId);
105
+ const { data } = yield this.apiClient.post(endpoint);
106
+ return data;
107
+ });
108
+ }
109
+ }
110
+ exports.ObjectsAPI = ObjectsAPI;
@@ -0,0 +1,8 @@
1
+ import type { APIClient } from '@ffflorian/api-client';
2
+ import type { Report, ReportPaginator } from '../interfaces';
3
+ export declare class ReportsAPI {
4
+ private readonly apiClient;
5
+ constructor(apiClient: APIClient);
6
+ getReportObjects(reportId: string, options?: Record<string, unknown>): Promise<ReportPaginator>;
7
+ getReportsList(): Promise<Report[]>;
8
+ }
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.ReportsAPI = void 0;
13
+ const Endpoints_1 = require("../Endpoints");
14
+ class ReportsAPI {
15
+ constructor(apiClient) {
16
+ this.apiClient = apiClient;
17
+ }
18
+ getReportObjects(reportId, options) {
19
+ return __awaiter(this, void 0, void 0, function* () {
20
+ const endpoint = Endpoints_1.Endpoint.Reports.reportObjects(reportId);
21
+ const { data } = yield this.apiClient.get(endpoint, { params: options });
22
+ return data;
23
+ });
24
+ }
25
+ getReportsList() {
26
+ return __awaiter(this, void 0, void 0, function* () {
27
+ const endpoint = Endpoints_1.Endpoint.Reports.reportsList();
28
+ const { data } = yield this.apiClient.get(endpoint);
29
+ return data;
30
+ });
31
+ }
32
+ }
33
+ exports.ReportsAPI = ReportsAPI;
@@ -0,0 +1,10 @@
1
+ import type { APIClient } from '@ffflorian/api-client';
2
+ import type { ManageUserNoteParams, UserNotesResponse } from '../interfaces';
3
+ export declare class UserNotesAPI {
4
+ private readonly apiClient;
5
+ constructor(apiClient: APIClient);
6
+ add(userId: string, note: ManageUserNoteParams): Promise<UserNotesResponse>;
7
+ delete(noteId: string): Promise<UserNotesResponse>;
8
+ edit(noteId: string, note: ManageUserNoteParams): Promise<UserNotesResponse>;
9
+ getNotes(userId: string): Promise<UserNotesResponse>;
10
+ }
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.UserNotesAPI = void 0;
13
+ const Endpoints_1 = require("../Endpoints");
14
+ class UserNotesAPI {
15
+ constructor(apiClient) {
16
+ this.apiClient = apiClient;
17
+ }
18
+ add(userId, note) {
19
+ return __awaiter(this, void 0, void 0, function* () {
20
+ const endpoint = Endpoints_1.Endpoint.UserNotes.add(userId);
21
+ const { data } = yield this.apiClient.post(endpoint, note);
22
+ return data;
23
+ });
24
+ }
25
+ delete(noteId) {
26
+ return __awaiter(this, void 0, void 0, function* () {
27
+ const endpoint = Endpoints_1.Endpoint.UserNotes.delete(noteId);
28
+ const { data } = yield this.apiClient.post(endpoint);
29
+ return data;
30
+ });
31
+ }
32
+ edit(noteId, note) {
33
+ return __awaiter(this, void 0, void 0, function* () {
34
+ const endpoint = Endpoints_1.Endpoint.UserNotes.edit(noteId);
35
+ const { data } = yield this.apiClient.post(endpoint, note);
36
+ return data;
37
+ });
38
+ }
39
+ getNotes(userId) {
40
+ return __awaiter(this, void 0, void 0, function* () {
41
+ const endpoint = Endpoints_1.Endpoint.UserNotes.notes(userId);
42
+ const { data } = yield this.apiClient.get(endpoint);
43
+ return data;
44
+ });
45
+ }
46
+ }
47
+ exports.UserNotesAPI = UserNotesAPI;
@@ -0,0 +1,16 @@
1
+ import type { APIClient } from '@ffflorian/api-client';
2
+ import type { BanUserParams, BanUserResponse, ChangePasswordParams, CreateUserParams, EditUserParams, User, UserActionResponse, UsersActivityResponse, UsersSearchResponse } from '../interfaces';
3
+ export declare class UsersAPI {
4
+ private readonly apiClient;
5
+ constructor(apiClient: APIClient);
6
+ banUser(userId: string, params: BanUserParams): Promise<BanUserResponse>;
7
+ changePassword(userId: string, params: ChangePasswordParams): Promise<UserActionResponse>;
8
+ createUser(user: CreateUserParams): Promise<UserActionResponse>;
9
+ deleteUser(userId: string): Promise<UserActionResponse>;
10
+ editUser(userId: string, user: EditUserParams): Promise<UserActionResponse>;
11
+ getActivity(userId: string, options?: Record<string, unknown>): Promise<UsersActivityResponse>;
12
+ getMe(): Promise<User>;
13
+ getUser(userId: string): Promise<User>;
14
+ searchUsers(options?: Record<string, unknown>): Promise<UsersSearchResponse>;
15
+ updateProfile(user: EditUserParams): Promise<UserActionResponse>;
16
+ }
@@ -0,0 +1,89 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.UsersAPI = void 0;
13
+ const Endpoints_1 = require("../Endpoints");
14
+ class UsersAPI {
15
+ constructor(apiClient) {
16
+ this.apiClient = apiClient;
17
+ }
18
+ banUser(userId, params) {
19
+ return __awaiter(this, void 0, void 0, function* () {
20
+ const endpoint = Endpoints_1.Endpoint.Users.banUser(userId);
21
+ const { data } = yield this.apiClient.post(endpoint, params);
22
+ return data;
23
+ });
24
+ }
25
+ changePassword(userId, params) {
26
+ return __awaiter(this, void 0, void 0, function* () {
27
+ const endpoint = Endpoints_1.Endpoint.Users.changePassword(userId);
28
+ const { data } = yield this.apiClient.post(endpoint, params);
29
+ return data;
30
+ });
31
+ }
32
+ createUser(user) {
33
+ return __awaiter(this, void 0, void 0, function* () {
34
+ const endpoint = Endpoints_1.Endpoint.Users.users();
35
+ const { data } = yield this.apiClient.post(endpoint, user);
36
+ return data;
37
+ });
38
+ }
39
+ deleteUser(userId) {
40
+ return __awaiter(this, void 0, void 0, function* () {
41
+ const endpoint = Endpoints_1.Endpoint.Users.user(userId);
42
+ const { data } = yield this.apiClient.delete(endpoint);
43
+ return data;
44
+ });
45
+ }
46
+ editUser(userId, user) {
47
+ return __awaiter(this, void 0, void 0, function* () {
48
+ const endpoint = Endpoints_1.Endpoint.Users.user(userId);
49
+ const { data } = yield this.apiClient.post(endpoint, user);
50
+ return data;
51
+ });
52
+ }
53
+ getActivity(userId, options) {
54
+ return __awaiter(this, void 0, void 0, function* () {
55
+ const endpoint = Endpoints_1.Endpoint.Users.activity(userId);
56
+ const { data } = yield this.apiClient.get(endpoint, { params: options });
57
+ return data;
58
+ });
59
+ }
60
+ getMe() {
61
+ return __awaiter(this, void 0, void 0, function* () {
62
+ const endpoint = Endpoints_1.Endpoint.Users.me();
63
+ const { data } = yield this.apiClient.get(endpoint);
64
+ return data;
65
+ });
66
+ }
67
+ getUser(userId) {
68
+ return __awaiter(this, void 0, void 0, function* () {
69
+ const endpoint = Endpoints_1.Endpoint.Users.user(userId);
70
+ const { data } = yield this.apiClient.get(endpoint);
71
+ return data;
72
+ });
73
+ }
74
+ searchUsers(options) {
75
+ return __awaiter(this, void 0, void 0, function* () {
76
+ const endpoint = Endpoints_1.Endpoint.Users.searchUsers();
77
+ const { data } = yield this.apiClient.get(endpoint, { params: options });
78
+ return data;
79
+ });
80
+ }
81
+ updateProfile(user) {
82
+ return __awaiter(this, void 0, void 0, function* () {
83
+ const endpoint = Endpoints_1.Endpoint.Users.updateProfile();
84
+ const { data } = yield this.apiClient.post(endpoint, user);
85
+ return data;
86
+ });
87
+ }
88
+ }
89
+ exports.UsersAPI = UsersAPI;
@@ -0,0 +1,12 @@
1
+ export * from './AdditionalAPI';
2
+ export * from './AuthAPI';
3
+ export * from './CategoriesAPI';
4
+ export * from './ChangelogAPI';
5
+ export * from './ChatsAPI';
6
+ export * from './CommentsAPI';
7
+ export * from './CustomFieldsAPI';
8
+ export * from './ModerationAPI';
9
+ export * from './ObjectsAPI';
10
+ export * from './ReportsAPI';
11
+ export * from './UserNotesAPI';
12
+ export * from './UsersAPI';
@@ -0,0 +1,28 @@
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
+ __exportStar(require("./AdditionalAPI"), exports);
18
+ __exportStar(require("./AuthAPI"), exports);
19
+ __exportStar(require("./CategoriesAPI"), exports);
20
+ __exportStar(require("./ChangelogAPI"), exports);
21
+ __exportStar(require("./ChatsAPI"), exports);
22
+ __exportStar(require("./CommentsAPI"), exports);
23
+ __exportStar(require("./CustomFieldsAPI"), exports);
24
+ __exportStar(require("./ModerationAPI"), exports);
25
+ __exportStar(require("./ObjectsAPI"), exports);
26
+ __exportStar(require("./ReportsAPI"), exports);
27
+ __exportStar(require("./UserNotesAPI"), exports);
28
+ __exportStar(require("./UsersAPI"), exports);
@@ -0,0 +1,2 @@
1
+ export * from './interfaces/';
2
+ export * from './UseResponse';
package/dist/index.js ADDED
@@ -0,0 +1,18 @@
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
+ __exportStar(require("./interfaces/"), exports);
18
+ __exportStar(require("./UseResponse"), exports);
@@ -0,0 +1,15 @@
1
+ import { AdditionalAPI, AuthAPI, CategoriesAPI, ChangelogAPI, ChatsAPI, CommentsAPI, CustomFieldsAPI, ModerationAPI, ObjectsAPI, ReportsAPI, UserNotesAPI, UsersAPI } from '../api/';
2
+ export interface API {
3
+ additional: AdditionalAPI;
4
+ auth: AuthAPI;
5
+ categories: CategoriesAPI;
6
+ changelog: ChangelogAPI;
7
+ chats: ChatsAPI;
8
+ comments: CommentsAPI;
9
+ customFields: CustomFieldsAPI;
10
+ moderation: ModerationAPI;
11
+ objects: ObjectsAPI;
12
+ reports: ReportsAPI;
13
+ userNotes: UserNotesAPI;
14
+ users: UsersAPI;
15
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export interface ClientOptions {
2
+ apiKey?: string;
3
+ apiUrl?: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });