@thomas-labs/scrape-service-lib 1.1.20 → 1.1.22

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/AppClient.js CHANGED
@@ -19,7 +19,7 @@ class AppClient {
19
19
  constructor(config, HttpRequest = FetchHttpRequest_1.FetchHttpRequest) {
20
20
  this.request = new HttpRequest({
21
21
  BASE: config?.BASE ?? '/api',
22
- VERSION: config?.VERSION ?? '1.0.21',
22
+ VERSION: config?.VERSION ?? '1.0.23',
23
23
  WITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false,
24
24
  CREDENTIALS: config?.CREDENTIALS ?? 'include',
25
25
  TOKEN: config?.TOKEN,
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.OpenAPI = void 0;
4
4
  exports.OpenAPI = {
5
5
  BASE: '/api',
6
- VERSION: '1.0.21',
6
+ VERSION: '1.0.23',
7
7
  WITH_CREDENTIALS: false,
8
8
  CREDENTIALS: 'include',
9
9
  TOKEN: undefined,
package/dist/index.d.ts CHANGED
@@ -43,12 +43,6 @@ export { TaskQueueStatusDto } from './models/TaskQueueStatusDto';
43
43
  export { TaskQueueTypeDto } from './models/TaskQueueTypeDto';
44
44
  export { TaskRequestStatusDto } from './models/TaskRequestStatusDto';
45
45
  export { TaskRequestTypeDto } from './models/TaskRequestTypeDto';
46
- export type { TelegramCallbackQuery } from './models/TelegramCallbackQuery';
47
- export { TelegramChat } from './models/TelegramChat';
48
- export type { TelegramMessage } from './models/TelegramMessage';
49
- export type { TelegramMessageEntity } from './models/TelegramMessageEntity';
50
- export type { TelegramUpdate } from './models/TelegramUpdate';
51
- export type { TelegramUser } from './models/TelegramUser';
52
46
  export type { UpdateAiKeyDto } from './models/UpdateAiKeyDto';
53
47
  export type { UpdateCollectionDto } from './models/UpdateCollectionDto';
54
48
  export type { UpdateReportStatusDto } from './models/UpdateReportStatusDto';
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UserService = exports.TermsService = exports.TelegramService = exports.TasksService = exports.TaskRequestsService = exports.StudyService = exports.StatsService = exports.ReportsService = exports.DefaultService = exports.CollectionsService = exports.ClientService = exports.AuthService = exports.AiService = exports.TelegramChat = exports.TaskRequestTypeDto = exports.TaskRequestStatusDto = exports.TaskQueueTypeDto = exports.TaskQueueStatusDto = exports.StudySourceDto = exports.StudyNextActionDto = exports.StudyModeDto = exports.StudyActionDto = exports.RequestTermsImportDto = exports.ReportStatusDto = exports.ProgressStageDto = exports.GradeTypeDto = exports.AiProviderDto = exports.OpenAPI = exports.CancelError = exports.CancelablePromise = exports.BaseHttpRequest = exports.ApiError = exports.AppClient = void 0;
3
+ exports.UserService = exports.TermsService = exports.TelegramService = exports.TasksService = exports.TaskRequestsService = exports.StudyService = exports.StatsService = exports.ReportsService = exports.DefaultService = exports.CollectionsService = exports.ClientService = exports.AuthService = exports.AiService = exports.TaskRequestTypeDto = exports.TaskRequestStatusDto = exports.TaskQueueTypeDto = exports.TaskQueueStatusDto = exports.StudySourceDto = exports.StudyNextActionDto = exports.StudyModeDto = exports.StudyActionDto = exports.RequestTermsImportDto = exports.ReportStatusDto = exports.ProgressStageDto = exports.GradeTypeDto = exports.AiProviderDto = exports.OpenAPI = exports.CancelError = exports.CancelablePromise = exports.BaseHttpRequest = exports.ApiError = exports.AppClient = void 0;
4
4
  /* generated using openapi-typescript-codegen -- do not edit */
5
5
  /* istanbul ignore file */
6
6
  /* tslint:disable */
@@ -42,8 +42,6 @@ var TaskRequestStatusDto_1 = require("./models/TaskRequestStatusDto");
42
42
  Object.defineProperty(exports, "TaskRequestStatusDto", { enumerable: true, get: function () { return TaskRequestStatusDto_1.TaskRequestStatusDto; } });
43
43
  var TaskRequestTypeDto_1 = require("./models/TaskRequestTypeDto");
44
44
  Object.defineProperty(exports, "TaskRequestTypeDto", { enumerable: true, get: function () { return TaskRequestTypeDto_1.TaskRequestTypeDto; } });
45
- var TelegramChat_1 = require("./models/TelegramChat");
46
- Object.defineProperty(exports, "TelegramChat", { enumerable: true, get: function () { return TelegramChat_1.TelegramChat; } });
47
45
  var AiService_1 = require("./services/AiService");
48
46
  Object.defineProperty(exports, "AiService", { enumerable: true, get: function () { return AiService_1.AiService; } });
49
47
  var AuthService_1 = require("./services/AuthService");
@@ -1,4 +1,4 @@
1
- import type { TelegramUpdate } from '../models/TelegramUpdate';
1
+ import type { Record_string_unknown_ } from '../models/Record_string_unknown_';
2
2
  import type { UpdateTelegramBotConfigDto } from '../models/UpdateTelegramBotConfigDto';
3
3
  import type { UpsertTelegramBotConfigDto } from '../models/UpsertTelegramBotConfigDto';
4
4
  import type { CancelablePromise } from '../core/CancelablePromise';
@@ -12,7 +12,7 @@ export declare class TelegramService {
12
12
  * @returns any Ok
13
13
  * @throws ApiError
14
14
  */
15
- webhook(requestBody: TelegramUpdate, xTelegramBotApiSecretToken?: string): CancelablePromise<{
15
+ webhook(requestBody: Record_string_unknown_, xTelegramBotApiSecretToken?: string): CancelablePromise<{
16
16
  ok: boolean;
17
17
  }>;
18
18
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thomas-labs/scrape-service-lib",
3
- "version": "1.1.20",
3
+ "version": "1.1.22",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,8 +0,0 @@
1
- import type { TelegramMessage } from './TelegramMessage';
2
- import type { TelegramUser } from './TelegramUser';
3
- export type TelegramCallbackQuery = {
4
- data?: string;
5
- message?: TelegramMessage;
6
- from: TelegramUser;
7
- id: string;
8
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,16 +0,0 @@
1
- export type TelegramChat = {
2
- last_name?: string;
3
- first_name?: string;
4
- username?: string;
5
- title?: string;
6
- type: TelegramChat.type;
7
- id: number;
8
- };
9
- export declare namespace TelegramChat {
10
- enum type {
11
- PRIVATE = "private",
12
- GROUP = "group",
13
- SUPERGROUP = "supergroup",
14
- CHANNEL = "channel"
15
- }
16
- }
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TelegramChat = void 0;
4
- var TelegramChat;
5
- (function (TelegramChat) {
6
- let type;
7
- (function (type) {
8
- type["PRIVATE"] = "private";
9
- type["GROUP"] = "group";
10
- type["SUPERGROUP"] = "supergroup";
11
- type["CHANNEL"] = "channel";
12
- })(type = TelegramChat.type || (TelegramChat.type = {}));
13
- })(TelegramChat || (exports.TelegramChat = TelegramChat = {}));
@@ -1,14 +0,0 @@
1
- import type { Record_string_unknown_ } from './Record_string_unknown_';
2
- import type { TelegramChat } from './TelegramChat';
3
- import type { TelegramMessageEntity } from './TelegramMessageEntity';
4
- import type { TelegramUser } from './TelegramUser';
5
- export type TelegramMessage = {
6
- sticker?: Record_string_unknown_;
7
- entities?: Array<TelegramMessageEntity>;
8
- edit_date?: number;
9
- date?: number;
10
- chat: TelegramChat;
11
- from?: TelegramUser;
12
- text?: string;
13
- message_id: number;
14
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
1
- import type { TelegramUser } from './TelegramUser';
2
- export type TelegramMessageEntity = {
3
- custom_emoji_id?: string;
4
- language?: string;
5
- user?: TelegramUser;
6
- url?: string;
7
- length: number;
8
- offset: number;
9
- type: string;
10
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +0,0 @@
1
- import type { TelegramCallbackQuery } from './TelegramCallbackQuery';
2
- import type { TelegramMessage } from './TelegramMessage';
3
- export type TelegramUpdate = {
4
- callback_query?: TelegramCallbackQuery;
5
- edited_message?: TelegramMessage;
6
- message?: TelegramMessage;
7
- update_id: number;
8
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +0,0 @@
1
- export type TelegramUser = {
2
- language_code?: string;
3
- username?: string;
4
- last_name?: string;
5
- first_name: string;
6
- is_bot?: boolean;
7
- id: number;
8
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });