@thomas-labs/scrape-service-lib 1.1.80 → 1.1.82

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
@@ -22,7 +22,7 @@ class AppClient {
22
22
  constructor(config, HttpRequest = FetchHttpRequest_1.FetchHttpRequest) {
23
23
  this.request = new HttpRequest({
24
24
  BASE: config?.BASE ?? '/api',
25
- VERSION: config?.VERSION ?? '1.0.90',
25
+ VERSION: config?.VERSION ?? '1.0.92',
26
26
  WITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false,
27
27
  CREDENTIALS: config?.CREDENTIALS ?? 'include',
28
28
  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.90',
6
+ VERSION: '1.0.92',
7
7
  WITH_CREDENTIALS: false,
8
8
  CREDENTIALS: 'include',
9
9
  TOKEN: undefined,
package/dist/index.d.ts CHANGED
@@ -6,10 +6,12 @@ export { OpenAPI } from './core/OpenAPI';
6
6
  export type { OpenAPIConfig } from './core/OpenAPI';
7
7
  export type { ActivateDto } from './models/ActivateDto';
8
8
  export { AiProviderDto } from './models/AiProviderDto';
9
+ export { CollectionTemplateQueueStatusDto } from './models/CollectionTemplateQueueStatusDto';
9
10
  export type { CreateAdminNotificationDto } from './models/CreateAdminNotificationDto';
10
11
  export type { CreateCollectionDto } from './models/CreateCollectionDto';
11
12
  export type { CreateCollectionJsonDto } from './models/CreateCollectionJsonDto';
12
13
  export type { CreateCollectionTemplateDto } from './models/CreateCollectionTemplateDto';
14
+ export type { CreateCollectionTemplateQueueJobDto } from './models/CreateCollectionTemplateQueueJobDto';
13
15
  export type { CreateLearningSessionDto } from './models/CreateLearningSessionDto';
14
16
  export type { CreateNotificationBroadcastJobDto } from './models/CreateNotificationBroadcastJobDto';
15
17
  export type { CreateReportDto } from './models/CreateReportDto';
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.NotificationsService = exports.LearningService = exports.DefaultService = exports.CollectionTemplatesService = 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.NotificationBroadcastJobStatusDto = exports.GradeTypeDto = exports.GenerateImportPromptDto = 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.NotificationsService = exports.LearningService = exports.DefaultService = exports.CollectionTemplatesService = 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.NotificationBroadcastJobStatusDto = exports.GradeTypeDto = exports.GenerateImportPromptDto = exports.CollectionTemplateQueueStatusDto = 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 */
@@ -18,6 +18,8 @@ var OpenAPI_1 = require("./core/OpenAPI");
18
18
  Object.defineProperty(exports, "OpenAPI", { enumerable: true, get: function () { return OpenAPI_1.OpenAPI; } });
19
19
  var AiProviderDto_1 = require("./models/AiProviderDto");
20
20
  Object.defineProperty(exports, "AiProviderDto", { enumerable: true, get: function () { return AiProviderDto_1.AiProviderDto; } });
21
+ var CollectionTemplateQueueStatusDto_1 = require("./models/CollectionTemplateQueueStatusDto");
22
+ Object.defineProperty(exports, "CollectionTemplateQueueStatusDto", { enumerable: true, get: function () { return CollectionTemplateQueueStatusDto_1.CollectionTemplateQueueStatusDto; } });
21
23
  var GenerateImportPromptDto_1 = require("./models/GenerateImportPromptDto");
22
24
  Object.defineProperty(exports, "GenerateImportPromptDto", { enumerable: true, get: function () { return GenerateImportPromptDto_1.GenerateImportPromptDto; } });
23
25
  var GradeTypeDto_1 = require("./models/GradeTypeDto");
@@ -0,0 +1,9 @@
1
+ export declare enum CollectionTemplateQueueStatusDto {
2
+ PENDING = "PENDING",
3
+ PROCESSING = "PROCESSING",
4
+ WAITING_ASSETS = "WAITING_ASSETS",
5
+ READY_FOR_REVIEW = "READY_FOR_REVIEW",
6
+ DONE = "DONE",
7
+ FAILED = "FAILED",
8
+ CANCELLED = "CANCELLED"
9
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CollectionTemplateQueueStatusDto = void 0;
4
+ /* generated using openapi-typescript-codegen -- do not edit */
5
+ /* istanbul ignore file */
6
+ /* tslint:disable */
7
+ /* eslint-disable */
8
+ var CollectionTemplateQueueStatusDto;
9
+ (function (CollectionTemplateQueueStatusDto) {
10
+ CollectionTemplateQueueStatusDto["PENDING"] = "PENDING";
11
+ CollectionTemplateQueueStatusDto["PROCESSING"] = "PROCESSING";
12
+ CollectionTemplateQueueStatusDto["WAITING_ASSETS"] = "WAITING_ASSETS";
13
+ CollectionTemplateQueueStatusDto["READY_FOR_REVIEW"] = "READY_FOR_REVIEW";
14
+ CollectionTemplateQueueStatusDto["DONE"] = "DONE";
15
+ CollectionTemplateQueueStatusDto["FAILED"] = "FAILED";
16
+ CollectionTemplateQueueStatusDto["CANCELLED"] = "CANCELLED";
17
+ })(CollectionTemplateQueueStatusDto || (exports.CollectionTemplateQueueStatusDto = CollectionTemplateQueueStatusDto = {}));
@@ -0,0 +1,3 @@
1
+ export type CreateCollectionTemplateQueueJobDto = {
2
+ topic: string;
3
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,6 @@
1
+ import type { CollectionTemplateQueueStatusDto } from '../models/CollectionTemplateQueueStatusDto';
1
2
  import type { CreateCollectionTemplateDto } from '../models/CreateCollectionTemplateDto';
3
+ import type { CreateCollectionTemplateQueueJobDto } from '../models/CreateCollectionTemplateQueueJobDto';
2
4
  import type { UpdateCollectionTemplateDto } from '../models/UpdateCollectionTemplateDto';
3
5
  import type { CancelablePromise } from '../core/CancelablePromise';
4
6
  import type { BaseHttpRequest } from '../core/BaseHttpRequest';
@@ -80,4 +82,45 @@ export declare class CollectionTemplatesService {
80
82
  templateId: string;
81
83
  ok: boolean;
82
84
  }>;
85
+ /**
86
+ * @param requestBody
87
+ * @returns any Ok
88
+ * @throws ApiError
89
+ */
90
+ adminCreateQueueJob(requestBody: CreateCollectionTemplateQueueJobDto): CancelablePromise<any>;
91
+ /**
92
+ * @param page
93
+ * @param limit
94
+ * @param search
95
+ * @param status
96
+ * @param cursorId
97
+ * @param take
98
+ * @returns any Ok
99
+ * @throws ApiError
100
+ */
101
+ adminListQueueJobs(page?: number, limit?: number, search?: string, status?: CollectionTemplateQueueStatusDto, cursorId?: string, take?: number): CancelablePromise<any>;
102
+ /**
103
+ * @param jobId
104
+ * @returns any Ok
105
+ * @throws ApiError
106
+ */
107
+ adminGetQueueJob(jobId: string): CancelablePromise<any>;
108
+ /**
109
+ * @param jobId
110
+ * @returns any Ok
111
+ * @throws ApiError
112
+ */
113
+ adminRetryQueueJob(jobId: string): CancelablePromise<any>;
114
+ /**
115
+ * @param jobId
116
+ * @returns any Ok
117
+ * @throws ApiError
118
+ */
119
+ adminCancelQueueJob(jobId: string): CancelablePromise<any>;
120
+ /**
121
+ * @param jobId
122
+ * @returns any Ok
123
+ * @throws ApiError
124
+ */
125
+ adminApproveQueueJob(jobId: string): CancelablePromise<any>;
83
126
  }
@@ -135,5 +135,98 @@ class CollectionTemplatesService {
135
135
  },
136
136
  });
137
137
  }
138
+ /**
139
+ * @param requestBody
140
+ * @returns any Ok
141
+ * @throws ApiError
142
+ */
143
+ adminCreateQueueJob(requestBody) {
144
+ return this.httpRequest.request({
145
+ method: 'POST',
146
+ url: '/collection-templates/admin/queue',
147
+ body: requestBody,
148
+ mediaType: 'application/json',
149
+ });
150
+ }
151
+ /**
152
+ * @param page
153
+ * @param limit
154
+ * @param search
155
+ * @param status
156
+ * @param cursorId
157
+ * @param take
158
+ * @returns any Ok
159
+ * @throws ApiError
160
+ */
161
+ adminListQueueJobs(page, limit, search, status, cursorId, take) {
162
+ return this.httpRequest.request({
163
+ method: 'GET',
164
+ url: '/collection-templates/admin/queue',
165
+ query: {
166
+ 'page': page,
167
+ 'limit': limit,
168
+ 'search': search,
169
+ 'status': status,
170
+ 'cursorId': cursorId,
171
+ 'take': take,
172
+ },
173
+ });
174
+ }
175
+ /**
176
+ * @param jobId
177
+ * @returns any Ok
178
+ * @throws ApiError
179
+ */
180
+ adminGetQueueJob(jobId) {
181
+ return this.httpRequest.request({
182
+ method: 'GET',
183
+ url: '/collection-templates/admin/queue/{jobId}',
184
+ path: {
185
+ 'jobId': jobId,
186
+ },
187
+ });
188
+ }
189
+ /**
190
+ * @param jobId
191
+ * @returns any Ok
192
+ * @throws ApiError
193
+ */
194
+ adminRetryQueueJob(jobId) {
195
+ return this.httpRequest.request({
196
+ method: 'POST',
197
+ url: '/collection-templates/admin/queue/{jobId}/retry',
198
+ path: {
199
+ 'jobId': jobId,
200
+ },
201
+ });
202
+ }
203
+ /**
204
+ * @param jobId
205
+ * @returns any Ok
206
+ * @throws ApiError
207
+ */
208
+ adminCancelQueueJob(jobId) {
209
+ return this.httpRequest.request({
210
+ method: 'POST',
211
+ url: '/collection-templates/admin/queue/{jobId}/cancel',
212
+ path: {
213
+ 'jobId': jobId,
214
+ },
215
+ });
216
+ }
217
+ /**
218
+ * @param jobId
219
+ * @returns any Ok
220
+ * @throws ApiError
221
+ */
222
+ adminApproveQueueJob(jobId) {
223
+ return this.httpRequest.request({
224
+ method: 'POST',
225
+ url: '/collection-templates/admin/queue/{jobId}/approve',
226
+ path: {
227
+ 'jobId': jobId,
228
+ },
229
+ });
230
+ }
138
231
  }
139
232
  exports.CollectionTemplatesService = CollectionTemplatesService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thomas-labs/scrape-service-lib",
3
- "version": "1.1.80",
3
+ "version": "1.1.82",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",