@nestbox-ai/doc-processing-api 1.0.69 → 1.0.71

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/esm/api.js CHANGED
@@ -1188,6 +1188,36 @@ export const ProfilesApiAxiosParamCreator = function (configuration) {
1188
1188
  options: localVarRequestOptions,
1189
1189
  };
1190
1190
  }),
1191
+ /**
1192
+ * Soft-deletes a profile by setting its deletedAt timestamp.
1193
+ * @summary Delete profile
1194
+ * @param {string} profileId Profile/config ID.
1195
+ * @param {*} [options] Override http request option.
1196
+ * @throws {RequiredError}
1197
+ */
1198
+ profilesControllerDeleteProfile: (profileId_1, ...args_1) => __awaiter(this, [profileId_1, ...args_1], void 0, function* (profileId, options = {}) {
1199
+ // verify required parameter 'profileId' is not null or undefined
1200
+ assertParamExists('profilesControllerDeleteProfile', 'profileId', profileId);
1201
+ const localVarPath = `/profiles/{profileId}`
1202
+ .replace(`{${"profileId"}}`, encodeURIComponent(String(profileId)));
1203
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1204
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1205
+ let baseOptions;
1206
+ if (configuration) {
1207
+ baseOptions = configuration.baseOptions;
1208
+ }
1209
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
1210
+ const localVarHeaderParameter = {};
1211
+ const localVarQueryParameter = {};
1212
+ localVarHeaderParameter['Accept'] = 'application/json';
1213
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1214
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1215
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1216
+ return {
1217
+ url: toPathString(localVarUrlObj),
1218
+ options: localVarRequestOptions,
1219
+ };
1220
+ }),
1191
1221
  /**
1192
1222
  *
1193
1223
  * @summary Read profile
@@ -1250,10 +1280,11 @@ export const ProfilesApiAxiosParamCreator = function (configuration) {
1250
1280
  * @param {number} [page] 1-based page number.
1251
1281
  * @param {number} [limit] Page size.
1252
1282
  * @param {Array<string>} [tags] Filter profiles by tags (any match). Pass multiple times or comma-separated.
1283
+ * @param {boolean} [includeDeleted] Include soft-deleted profiles in the results. Defaults to false.
1253
1284
  * @param {*} [options] Override http request option.
1254
1285
  * @throws {RequiredError}
1255
1286
  */
1256
- profilesControllerListProfiles: (page_1, limit_1, tags_1, ...args_1) => __awaiter(this, [page_1, limit_1, tags_1, ...args_1], void 0, function* (page, limit, tags, options = {}) {
1287
+ profilesControllerListProfiles: (page_1, limit_1, tags_1, includeDeleted_1, ...args_1) => __awaiter(this, [page_1, limit_1, tags_1, includeDeleted_1, ...args_1], void 0, function* (page, limit, tags, includeDeleted, options = {}) {
1257
1288
  const localVarPath = `/profiles`;
1258
1289
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1259
1290
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -1273,6 +1304,9 @@ export const ProfilesApiAxiosParamCreator = function (configuration) {
1273
1304
  if (tags) {
1274
1305
  localVarQueryParameter['tags'] = tags;
1275
1306
  }
1307
+ if (includeDeleted !== undefined) {
1308
+ localVarQueryParameter['includeDeleted'] = includeDeleted;
1309
+ }
1276
1310
  localVarHeaderParameter['Accept'] = 'application/json';
1277
1311
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1278
1312
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -1308,6 +1342,22 @@ export const ProfilesApiFp = function (configuration) {
1308
1342
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1309
1343
  });
1310
1344
  },
1345
+ /**
1346
+ * Soft-deletes a profile by setting its deletedAt timestamp.
1347
+ * @summary Delete profile
1348
+ * @param {string} profileId Profile/config ID.
1349
+ * @param {*} [options] Override http request option.
1350
+ * @throws {RequiredError}
1351
+ */
1352
+ profilesControllerDeleteProfile(profileId, options) {
1353
+ return __awaiter(this, void 0, void 0, function* () {
1354
+ var _a, _b, _c;
1355
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.profilesControllerDeleteProfile(profileId, options);
1356
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1357
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProfilesApi.profilesControllerDeleteProfile']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1358
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1359
+ });
1360
+ },
1311
1361
  /**
1312
1362
  *
1313
1363
  * @summary Read profile
@@ -1345,13 +1395,14 @@ export const ProfilesApiFp = function (configuration) {
1345
1395
  * @param {number} [page] 1-based page number.
1346
1396
  * @param {number} [limit] Page size.
1347
1397
  * @param {Array<string>} [tags] Filter profiles by tags (any match). Pass multiple times or comma-separated.
1398
+ * @param {boolean} [includeDeleted] Include soft-deleted profiles in the results. Defaults to false.
1348
1399
  * @param {*} [options] Override http request option.
1349
1400
  * @throws {RequiredError}
1350
1401
  */
1351
- profilesControllerListProfiles(page, limit, tags, options) {
1402
+ profilesControllerListProfiles(page, limit, tags, includeDeleted, options) {
1352
1403
  return __awaiter(this, void 0, void 0, function* () {
1353
1404
  var _a, _b, _c;
1354
- const localVarAxiosArgs = yield localVarAxiosParamCreator.profilesControllerListProfiles(page, limit, tags, options);
1405
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.profilesControllerListProfiles(page, limit, tags, includeDeleted, options);
1355
1406
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1356
1407
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProfilesApi.profilesControllerListProfiles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1357
1408
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1377,6 +1428,16 @@ export const ProfilesApiFactory = function (configuration, basePath, axios) {
1377
1428
  profilesControllerCreateProfile(yaml, name, tags, options) {
1378
1429
  return localVarFp.profilesControllerCreateProfile(yaml, name, tags, options).then((request) => request(axios, basePath));
1379
1430
  },
1431
+ /**
1432
+ * Soft-deletes a profile by setting its deletedAt timestamp.
1433
+ * @summary Delete profile
1434
+ * @param {string} profileId Profile/config ID.
1435
+ * @param {*} [options] Override http request option.
1436
+ * @throws {RequiredError}
1437
+ */
1438
+ profilesControllerDeleteProfile(profileId, options) {
1439
+ return localVarFp.profilesControllerDeleteProfile(profileId, options).then((request) => request(axios, basePath));
1440
+ },
1380
1441
  /**
1381
1442
  *
1382
1443
  * @summary Read profile
@@ -1402,11 +1463,12 @@ export const ProfilesApiFactory = function (configuration, basePath, axios) {
1402
1463
  * @param {number} [page] 1-based page number.
1403
1464
  * @param {number} [limit] Page size.
1404
1465
  * @param {Array<string>} [tags] Filter profiles by tags (any match). Pass multiple times or comma-separated.
1466
+ * @param {boolean} [includeDeleted] Include soft-deleted profiles in the results. Defaults to false.
1405
1467
  * @param {*} [options] Override http request option.
1406
1468
  * @throws {RequiredError}
1407
1469
  */
1408
- profilesControllerListProfiles(page, limit, tags, options) {
1409
- return localVarFp.profilesControllerListProfiles(page, limit, tags, options).then((request) => request(axios, basePath));
1470
+ profilesControllerListProfiles(page, limit, tags, includeDeleted, options) {
1471
+ return localVarFp.profilesControllerListProfiles(page, limit, tags, includeDeleted, options).then((request) => request(axios, basePath));
1410
1472
  },
1411
1473
  };
1412
1474
  };
@@ -1426,6 +1488,16 @@ export class ProfilesApi extends BaseAPI {
1426
1488
  profilesControllerCreateProfile(yaml, name, tags, options) {
1427
1489
  return ProfilesApiFp(this.configuration).profilesControllerCreateProfile(yaml, name, tags, options).then((request) => request(this.axios, this.basePath));
1428
1490
  }
1491
+ /**
1492
+ * Soft-deletes a profile by setting its deletedAt timestamp.
1493
+ * @summary Delete profile
1494
+ * @param {string} profileId Profile/config ID.
1495
+ * @param {*} [options] Override http request option.
1496
+ * @throws {RequiredError}
1497
+ */
1498
+ profilesControllerDeleteProfile(profileId, options) {
1499
+ return ProfilesApiFp(this.configuration).profilesControllerDeleteProfile(profileId, options).then((request) => request(this.axios, this.basePath));
1500
+ }
1429
1501
  /**
1430
1502
  *
1431
1503
  * @summary Read profile
@@ -1451,11 +1523,12 @@ export class ProfilesApi extends BaseAPI {
1451
1523
  * @param {number} [page] 1-based page number.
1452
1524
  * @param {number} [limit] Page size.
1453
1525
  * @param {Array<string>} [tags] Filter profiles by tags (any match). Pass multiple times or comma-separated.
1526
+ * @param {boolean} [includeDeleted] Include soft-deleted profiles in the results. Defaults to false.
1454
1527
  * @param {*} [options] Override http request option.
1455
1528
  * @throws {RequiredError}
1456
1529
  */
1457
- profilesControllerListProfiles(page, limit, tags, options) {
1458
- return ProfilesApiFp(this.configuration).profilesControllerListProfiles(page, limit, tags, options).then((request) => request(this.axios, this.basePath));
1530
+ profilesControllerListProfiles(page, limit, tags, includeDeleted, options) {
1531
+ return ProfilesApiFp(this.configuration).profilesControllerListProfiles(page, limit, tags, includeDeleted, options).then((request) => request(this.axios, this.basePath));
1459
1532
  }
1460
1533
  }
1461
1534
  /**
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
10
10
  **description** | **string** | Profile description | [optional] [default to undefined]
11
11
  **createdAt** | **string** | Profile creation timestamp | [default to undefined]
12
12
  **updatedAt** | **string** | Profile last update timestamp | [optional] [default to undefined]
13
+ **deletedAt** | **string** | Profile soft-deletion timestamp | [optional] [default to undefined]
13
14
  **yamlFileName** | **string** | YAML file name | [optional] [default to undefined]
14
15
  **yamlSha256** | **string** | Optional checksum of the uploaded YAML file | [optional] [default to undefined]
15
16
  **yamlFileContent** | **string** | Content of the YAML file | [optional] [default to undefined]
@@ -26,6 +27,7 @@ const instance: ProfileDto = {
26
27
  description,
27
28
  createdAt,
28
29
  updatedAt,
30
+ deletedAt,
29
31
  yamlFileName,
30
32
  yamlSha256,
31
33
  yamlFileContent,
@@ -5,6 +5,7 @@ All URIs are relative to *http://localhost*
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
7
  |[**profilesControllerCreateProfile**](#profilescontrollercreateprofile) | **POST** /profiles | Create profile from YAML|
8
+ |[**profilesControllerDeleteProfile**](#profilescontrollerdeleteprofile) | **DELETE** /profiles/{profileId} | Delete profile|
8
9
  |[**profilesControllerGetProfile**](#profilescontrollergetprofile) | **GET** /profiles/{profileId} | Read profile|
9
10
  |[**profilesControllerGetProfileSchema**](#profilescontrollergetprofileschema) | **GET** /profiles/schema | Get profile schema|
10
11
  |[**profilesControllerListProfiles**](#profilescontrollerlistprofiles) | **GET** /profiles | List profiles|
@@ -69,6 +70,59 @@ No authorization required
69
70
 
70
71
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
71
72
 
73
+ # **profilesControllerDeleteProfile**
74
+ > ProfileDto profilesControllerDeleteProfile()
75
+
76
+ Soft-deletes a profile by setting its deletedAt timestamp.
77
+
78
+ ### Example
79
+
80
+ ```typescript
81
+ import {
82
+ ProfilesApi,
83
+ Configuration
84
+ } from '@nestbox-ai/doc-processing-api';
85
+
86
+ const configuration = new Configuration();
87
+ const apiInstance = new ProfilesApi(configuration);
88
+
89
+ let profileId: string; //Profile/config ID. (default to undefined)
90
+
91
+ const { status, data } = await apiInstance.profilesControllerDeleteProfile(
92
+ profileId
93
+ );
94
+ ```
95
+
96
+ ### Parameters
97
+
98
+ |Name | Type | Description | Notes|
99
+ |------------- | ------------- | ------------- | -------------|
100
+ | **profileId** | [**string**] | Profile/config ID. | defaults to undefined|
101
+
102
+
103
+ ### Return type
104
+
105
+ **ProfileDto**
106
+
107
+ ### Authorization
108
+
109
+ No authorization required
110
+
111
+ ### HTTP request headers
112
+
113
+ - **Content-Type**: Not defined
114
+ - **Accept**: application/json
115
+
116
+
117
+ ### HTTP response details
118
+ | Status code | Description | Response headers |
119
+ |-------------|-------------|------------------|
120
+ |**200** | Profile soft-deleted | - |
121
+ |**401** | Unauthorized | - |
122
+ |**404** | Not found | - |
123
+
124
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
125
+
72
126
  # **profilesControllerGetProfile**
73
127
  > ProfileDto profilesControllerGetProfile()
74
128
 
@@ -185,11 +239,13 @@ const apiInstance = new ProfilesApi(configuration);
185
239
  let page: number; //1-based page number. (optional) (default to 1)
186
240
  let limit: number; //Page size. (optional) (default to 10)
187
241
  let tags: Array<string>; //Filter profiles by tags (any match). Pass multiple times or comma-separated. (optional) (default to undefined)
242
+ let includeDeleted: boolean; //Include soft-deleted profiles in the results. Defaults to false. (optional) (default to false)
188
243
 
189
244
  const { status, data } = await apiInstance.profilesControllerListProfiles(
190
245
  page,
191
246
  limit,
192
- tags
247
+ tags,
248
+ includeDeleted
193
249
  );
194
250
  ```
195
251
 
@@ -200,6 +256,7 @@ const { status, data } = await apiInstance.profilesControllerListProfiles(
200
256
  | **page** | [**number**] | 1-based page number. | (optional) defaults to 1|
201
257
  | **limit** | [**number**] | Page size. | (optional) defaults to 10|
202
258
  | **tags** | **Array&lt;string&gt;** | Filter profiles by tags (any match). Pass multiple times or comma-separated. | (optional) defaults to undefined|
259
+ | **includeDeleted** | [**boolean**] | Include soft-deleted profiles in the results. Defaults to false. | (optional) defaults to false|
203
260
 
204
261
 
205
262
  ### Return type
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nestbox-ai/doc-processing-api",
3
- "version": "1.0.69",
3
+ "version": "1.0.71",
4
4
  "description": "OpenAPI client for @nestbox-ai/doc-processing-api",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {