@openfilz-sdk/typescript-ee 1.14.8 → 1.14.10
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/.openapi-generator/FILES +6 -0
- package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
- package/README.md +5 -2
- package/api/import-api.ts +138 -0
- package/api.ts +1 -0
- package/dist/api/import-api.d.ts +72 -0
- package/dist/api/import-api.js +140 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/esm/api/import-api.d.ts +72 -0
- package/dist/esm/api/import-api.js +133 -0
- package/dist/esm/api.d.ts +1 -0
- package/dist/esm/api.js +1 -0
- package/dist/esm/models/enriched-audit-log.d.ts +1 -0
- package/dist/esm/models/enriched-audit-log.js +1 -0
- package/dist/esm/models/import-dates-request.d.ts +15 -0
- package/dist/esm/models/import-dates-request.js +14 -0
- package/dist/esm/models/import-dates.d.ts +16 -0
- package/dist/esm/models/import-dates.js +14 -0
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/esm/models/search-by-audit-log-request.d.ts +1 -0
- package/dist/esm/models/search-by-audit-log-request.js +1 -0
- package/dist/esm/models/search-by-metadata-request.d.ts +1 -1
- package/dist/models/enriched-audit-log.d.ts +1 -0
- package/dist/models/enriched-audit-log.js +1 -0
- package/dist/models/import-dates-request.d.ts +15 -0
- package/dist/models/import-dates-request.js +15 -0
- package/dist/models/import-dates.d.ts +16 -0
- package/dist/models/import-dates.js +15 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/models/search-by-audit-log-request.d.ts +1 -0
- package/dist/models/search-by-audit-log-request.js +1 -0
- package/dist/models/search-by-metadata-request.d.ts +1 -1
- package/docs/ImportApi.md +63 -0
- package/docs/ImportDates.md +24 -0
- package/docs/ImportDatesRequest.md +22 -0
- package/docs/SearchByMetadataRequest.md +1 -1
- package/graphql/document.graphqls +2 -2
- package/models/enriched-audit-log.ts +1 -0
- package/models/import-dates-request.ts +21 -0
- package/models/import-dates.ts +22 -0
- package/models/index.ts +2 -0
- package/models/search-by-audit-log-request.ts +1 -0
- package/models/search-by-metadata-request.ts +1 -1
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -38,6 +38,7 @@ api/favorites-api.ts
|
|
|
38
38
|
api/feature-entitlements-api.ts
|
|
39
39
|
api/file-controller-api.ts
|
|
40
40
|
api/folder-controller-api.ts
|
|
41
|
+
api/import-api.ts
|
|
41
42
|
api/mcp-discovery-controller-api.ts
|
|
42
43
|
api/mcp-token-admin-controller-api.ts
|
|
43
44
|
api/metadata-key-controller-api.ts
|
|
@@ -196,6 +197,9 @@ docs/FolderSelectionByKindRequest.md
|
|
|
196
197
|
docs/FolderSelectionByKindResponse.md
|
|
197
198
|
docs/ForeignItem.md
|
|
198
199
|
docs/GlobalPolicy.md
|
|
200
|
+
docs/ImportApi.md
|
|
201
|
+
docs/ImportDates.md
|
|
202
|
+
docs/ImportDatesRequest.md
|
|
199
203
|
docs/IngestionStatusDto.md
|
|
200
204
|
docs/InsightBackfillRequest.md
|
|
201
205
|
docs/InsightBackfillStatus.md
|
|
@@ -490,6 +494,8 @@ models/folder-selection-by-kind-request.ts
|
|
|
490
494
|
models/folder-selection-by-kind-response.ts
|
|
491
495
|
models/foreign-item.ts
|
|
492
496
|
models/global-policy.ts
|
|
497
|
+
models/import-dates-request.ts
|
|
498
|
+
models/import-dates.ts
|
|
493
499
|
models/index.ts
|
|
494
500
|
models/ingestion-status-dto.ts
|
|
495
501
|
models/insight-backfill-request.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
6e437278c938b092947822db3ff35f78fc6d90e1b1410df2d0b9d9cbdcf7ed11
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @openfilz-sdk/typescript-ee@1.14.
|
|
1
|
+
## @openfilz-sdk/typescript-ee@1.14.10
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @openfilz-sdk/typescript-ee@1.14.
|
|
39
|
+
npm install @openfilz-sdk/typescript-ee@1.14.10 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -222,6 +222,7 @@ Class | Method | HTTP request | Description
|
|
|
222
222
|
*FolderControllerApi* | [**listFolder**](docs/FolderControllerApi.md#listfolder) | **GET** /api/v1/folders/list | List files and subfolders contained in a given folder
|
|
223
223
|
*FolderControllerApi* | [**moveFolders**](docs/FolderControllerApi.md#movefolders) | **POST** /api/v1/folders/move | Move folders
|
|
224
224
|
*FolderControllerApi* | [**renameFolder**](docs/FolderControllerApi.md#renamefolder) | **PUT** /api/v1/folders/{folderId}/rename | Rename a folder
|
|
225
|
+
*ImportApi* | [**setImportedDocumentDates**](docs/ImportApi.md#setimporteddocumentdates) | **PUT** /api/v1/import/documents/{id}/dates | Set an imported document\'s creation and modification dates
|
|
225
226
|
*McpDiscoveryControllerApi* | [**authorizationServerMetadata**](docs/McpDiscoveryControllerApi.md#authorizationservermetadata) | **GET** /.well-known/oauth-authorization-server |
|
|
226
227
|
*McpDiscoveryControllerApi* | [**protectedResourceMetadata**](docs/McpDiscoveryControllerApi.md#protectedresourcemetadata) | **GET** /.well-known/oauth-protected-resource |
|
|
227
228
|
*McpTokenAdminControllerApi* | [**config**](docs/McpTokenAdminControllerApi.md#config) | **GET** /api/v1/admin/mcp/tokens/config | Whether agent tokens can be minted here, and the TTL bounds (no secrets)
|
|
@@ -469,6 +470,8 @@ Class | Method | HTTP request | Description
|
|
|
469
470
|
- [FolderSelectionByKindResponse](docs/FolderSelectionByKindResponse.md)
|
|
470
471
|
- [ForeignItem](docs/ForeignItem.md)
|
|
471
472
|
- [GlobalPolicy](docs/GlobalPolicy.md)
|
|
473
|
+
- [ImportDates](docs/ImportDates.md)
|
|
474
|
+
- [ImportDatesRequest](docs/ImportDatesRequest.md)
|
|
472
475
|
- [IngestionStatusDto](docs/IngestionStatusDto.md)
|
|
473
476
|
- [InsightBackfillRequest](docs/InsightBackfillRequest.md)
|
|
474
477
|
- [InsightBackfillStatus](docs/InsightBackfillStatus.md)
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* openfilz-api
|
|
5
|
+
* API for Document Management System
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import type { Configuration } from '../configuration';
|
|
17
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
18
|
+
import globalAxios from 'axios';
|
|
19
|
+
// Some imports not used depending on template conditions
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from '../common';
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
import type { ImportDates } from '../models';
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import type { ImportDatesRequest } from '../models';
|
|
28
|
+
/**
|
|
29
|
+
* ImportApi - axios parameter creator
|
|
30
|
+
*/
|
|
31
|
+
export const ImportApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
32
|
+
return {
|
|
33
|
+
/**
|
|
34
|
+
* Sets the document\'s createdAt / updatedAt to the dates its source system reported. Both optional, at least one; none in the future; updatedAt not before createdAt. Without createdAt, a stored creation date later than updatedAt takes updatedAt. Requires the IMPORTER role; any active document of the caller\'s organisation, whoever owns it (404 otherwise). Audited DOCUMENT_DATES_IMPORTED.
|
|
35
|
+
* @summary Set an imported document\'s creation and modification dates
|
|
36
|
+
* @param {string} id
|
|
37
|
+
* @param {ImportDatesRequest} importDatesRequest
|
|
38
|
+
* @param {*} [options] Override http request option.
|
|
39
|
+
* @throws {RequiredError}
|
|
40
|
+
*/
|
|
41
|
+
setImportedDocumentDates: async (id: string, importDatesRequest: ImportDatesRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
42
|
+
// verify required parameter 'id' is not null or undefined
|
|
43
|
+
assertParamExists('setImportedDocumentDates', 'id', id)
|
|
44
|
+
// verify required parameter 'importDatesRequest' is not null or undefined
|
|
45
|
+
assertParamExists('setImportedDocumentDates', 'importDatesRequest', importDatesRequest)
|
|
46
|
+
const localVarPath = `/api/v1/import/documents/{id}/dates`
|
|
47
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
48
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
49
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
50
|
+
let baseOptions;
|
|
51
|
+
if (configuration) {
|
|
52
|
+
baseOptions = configuration.baseOptions;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
56
|
+
const localVarHeaderParameter = {} as any;
|
|
57
|
+
const localVarQueryParameter = {} as any;
|
|
58
|
+
|
|
59
|
+
// authentication keycloak_auth required
|
|
60
|
+
// http bearer authentication required
|
|
61
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
62
|
+
|
|
63
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
64
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
65
|
+
|
|
66
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
67
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
68
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
69
|
+
localVarRequestOptions.data = serializeDataIfNeeded(importDatesRequest, localVarRequestOptions, configuration)
|
|
70
|
+
|
|
71
|
+
return {
|
|
72
|
+
url: toPathString(localVarUrlObj),
|
|
73
|
+
options: localVarRequestOptions,
|
|
74
|
+
};
|
|
75
|
+
},
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* ImportApi - functional programming interface
|
|
81
|
+
*/
|
|
82
|
+
export const ImportApiFp = function(configuration?: Configuration) {
|
|
83
|
+
const localVarAxiosParamCreator = ImportApiAxiosParamCreator(configuration)
|
|
84
|
+
return {
|
|
85
|
+
/**
|
|
86
|
+
* Sets the document\'s createdAt / updatedAt to the dates its source system reported. Both optional, at least one; none in the future; updatedAt not before createdAt. Without createdAt, a stored creation date later than updatedAt takes updatedAt. Requires the IMPORTER role; any active document of the caller\'s organisation, whoever owns it (404 otherwise). Audited DOCUMENT_DATES_IMPORTED.
|
|
87
|
+
* @summary Set an imported document\'s creation and modification dates
|
|
88
|
+
* @param {string} id
|
|
89
|
+
* @param {ImportDatesRequest} importDatesRequest
|
|
90
|
+
* @param {*} [options] Override http request option.
|
|
91
|
+
* @throws {RequiredError}
|
|
92
|
+
*/
|
|
93
|
+
async setImportedDocumentDates(id: string, importDatesRequest: ImportDatesRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImportDates>> {
|
|
94
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.setImportedDocumentDates(id, importDatesRequest, options);
|
|
95
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
96
|
+
const localVarOperationServerBasePath = operationServerMap['ImportApi.setImportedDocumentDates']?.[localVarOperationServerIndex]?.url;
|
|
97
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
98
|
+
},
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* ImportApi - factory interface
|
|
104
|
+
*/
|
|
105
|
+
export const ImportApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
106
|
+
const localVarFp = ImportApiFp(configuration)
|
|
107
|
+
return {
|
|
108
|
+
/**
|
|
109
|
+
* Sets the document\'s createdAt / updatedAt to the dates its source system reported. Both optional, at least one; none in the future; updatedAt not before createdAt. Without createdAt, a stored creation date later than updatedAt takes updatedAt. Requires the IMPORTER role; any active document of the caller\'s organisation, whoever owns it (404 otherwise). Audited DOCUMENT_DATES_IMPORTED.
|
|
110
|
+
* @summary Set an imported document\'s creation and modification dates
|
|
111
|
+
* @param {string} id
|
|
112
|
+
* @param {ImportDatesRequest} importDatesRequest
|
|
113
|
+
* @param {*} [options] Override http request option.
|
|
114
|
+
* @throws {RequiredError}
|
|
115
|
+
*/
|
|
116
|
+
setImportedDocumentDates(id: string, importDatesRequest: ImportDatesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ImportDates> {
|
|
117
|
+
return localVarFp.setImportedDocumentDates(id, importDatesRequest, options).then((request) => request(axios, basePath));
|
|
118
|
+
},
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* ImportApi - object-oriented interface
|
|
124
|
+
*/
|
|
125
|
+
export class ImportApi extends BaseAPI {
|
|
126
|
+
/**
|
|
127
|
+
* Sets the document\'s createdAt / updatedAt to the dates its source system reported. Both optional, at least one; none in the future; updatedAt not before createdAt. Without createdAt, a stored creation date later than updatedAt takes updatedAt. Requires the IMPORTER role; any active document of the caller\'s organisation, whoever owns it (404 otherwise). Audited DOCUMENT_DATES_IMPORTED.
|
|
128
|
+
* @summary Set an imported document\'s creation and modification dates
|
|
129
|
+
* @param {string} id
|
|
130
|
+
* @param {ImportDatesRequest} importDatesRequest
|
|
131
|
+
* @param {*} [options] Override http request option.
|
|
132
|
+
* @throws {RequiredError}
|
|
133
|
+
*/
|
|
134
|
+
public setImportedDocumentDates(id: string, importDatesRequest: ImportDatesRequest, options?: RawAxiosRequestConfig) {
|
|
135
|
+
return ImportApiFp(this.configuration).setImportedDocumentDates(id, importDatesRequest, options).then((request) => request(this.axios, this.basePath));
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
package/api.ts
CHANGED
|
@@ -49,6 +49,7 @@ export * from './api/favorites-api';
|
|
|
49
49
|
export * from './api/feature-entitlements-api';
|
|
50
50
|
export * from './api/file-controller-api';
|
|
51
51
|
export * from './api/folder-controller-api';
|
|
52
|
+
export * from './api/import-api';
|
|
52
53
|
export * from './api/mcp-discovery-controller-api';
|
|
53
54
|
export * from './api/mcp-token-admin-controller-api';
|
|
54
55
|
export * from './api/metadata-key-controller-api';
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* openfilz-api
|
|
3
|
+
* API for Document Management System
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from '../configuration';
|
|
13
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
+
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import type { ImportDates } from '../models';
|
|
16
|
+
import type { ImportDatesRequest } from '../models';
|
|
17
|
+
/**
|
|
18
|
+
* ImportApi - axios parameter creator
|
|
19
|
+
*/
|
|
20
|
+
export declare const ImportApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
21
|
+
/**
|
|
22
|
+
* Sets the document\'s createdAt / updatedAt to the dates its source system reported. Both optional, at least one; none in the future; updatedAt not before createdAt. Without createdAt, a stored creation date later than updatedAt takes updatedAt. Requires the IMPORTER role; any active document of the caller\'s organisation, whoever owns it (404 otherwise). Audited DOCUMENT_DATES_IMPORTED.
|
|
23
|
+
* @summary Set an imported document\'s creation and modification dates
|
|
24
|
+
* @param {string} id
|
|
25
|
+
* @param {ImportDatesRequest} importDatesRequest
|
|
26
|
+
* @param {*} [options] Override http request option.
|
|
27
|
+
* @throws {RequiredError}
|
|
28
|
+
*/
|
|
29
|
+
setImportedDocumentDates: (id: string, importDatesRequest: ImportDatesRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* ImportApi - functional programming interface
|
|
33
|
+
*/
|
|
34
|
+
export declare const ImportApiFp: (configuration?: Configuration) => {
|
|
35
|
+
/**
|
|
36
|
+
* Sets the document\'s createdAt / updatedAt to the dates its source system reported. Both optional, at least one; none in the future; updatedAt not before createdAt. Without createdAt, a stored creation date later than updatedAt takes updatedAt. Requires the IMPORTER role; any active document of the caller\'s organisation, whoever owns it (404 otherwise). Audited DOCUMENT_DATES_IMPORTED.
|
|
37
|
+
* @summary Set an imported document\'s creation and modification dates
|
|
38
|
+
* @param {string} id
|
|
39
|
+
* @param {ImportDatesRequest} importDatesRequest
|
|
40
|
+
* @param {*} [options] Override http request option.
|
|
41
|
+
* @throws {RequiredError}
|
|
42
|
+
*/
|
|
43
|
+
setImportedDocumentDates(id: string, importDatesRequest: ImportDatesRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImportDates>>;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* ImportApi - factory interface
|
|
47
|
+
*/
|
|
48
|
+
export declare const ImportApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
49
|
+
/**
|
|
50
|
+
* Sets the document\'s createdAt / updatedAt to the dates its source system reported. Both optional, at least one; none in the future; updatedAt not before createdAt. Without createdAt, a stored creation date later than updatedAt takes updatedAt. Requires the IMPORTER role; any active document of the caller\'s organisation, whoever owns it (404 otherwise). Audited DOCUMENT_DATES_IMPORTED.
|
|
51
|
+
* @summary Set an imported document\'s creation and modification dates
|
|
52
|
+
* @param {string} id
|
|
53
|
+
* @param {ImportDatesRequest} importDatesRequest
|
|
54
|
+
* @param {*} [options] Override http request option.
|
|
55
|
+
* @throws {RequiredError}
|
|
56
|
+
*/
|
|
57
|
+
setImportedDocumentDates(id: string, importDatesRequest: ImportDatesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ImportDates>;
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* ImportApi - object-oriented interface
|
|
61
|
+
*/
|
|
62
|
+
export declare class ImportApi extends BaseAPI {
|
|
63
|
+
/**
|
|
64
|
+
* Sets the document\'s createdAt / updatedAt to the dates its source system reported. Both optional, at least one; none in the future; updatedAt not before createdAt. Without createdAt, a stored creation date later than updatedAt takes updatedAt. Requires the IMPORTER role; any active document of the caller\'s organisation, whoever owns it (404 otherwise). Audited DOCUMENT_DATES_IMPORTED.
|
|
65
|
+
* @summary Set an imported document\'s creation and modification dates
|
|
66
|
+
* @param {string} id
|
|
67
|
+
* @param {ImportDatesRequest} importDatesRequest
|
|
68
|
+
* @param {*} [options] Override http request option.
|
|
69
|
+
* @throws {RequiredError}
|
|
70
|
+
*/
|
|
71
|
+
setImportedDocumentDates(id: string, importDatesRequest: ImportDatesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ImportDates, any, {}, any>>;
|
|
72
|
+
}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* openfilz-api
|
|
6
|
+
* API for Document Management System
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.ImportApi = exports.ImportApiFactory = exports.ImportApiFp = exports.ImportApiAxiosParamCreator = void 0;
|
|
26
|
+
const axios_1 = require("axios");
|
|
27
|
+
// Some imports not used depending on template conditions
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
const common_1 = require("../common");
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
const base_1 = require("../base");
|
|
32
|
+
/**
|
|
33
|
+
* ImportApi - axios parameter creator
|
|
34
|
+
*/
|
|
35
|
+
const ImportApiAxiosParamCreator = function (configuration) {
|
|
36
|
+
return {
|
|
37
|
+
/**
|
|
38
|
+
* Sets the document\'s createdAt / updatedAt to the dates its source system reported. Both optional, at least one; none in the future; updatedAt not before createdAt. Without createdAt, a stored creation date later than updatedAt takes updatedAt. Requires the IMPORTER role; any active document of the caller\'s organisation, whoever owns it (404 otherwise). Audited DOCUMENT_DATES_IMPORTED.
|
|
39
|
+
* @summary Set an imported document\'s creation and modification dates
|
|
40
|
+
* @param {string} id
|
|
41
|
+
* @param {ImportDatesRequest} importDatesRequest
|
|
42
|
+
* @param {*} [options] Override http request option.
|
|
43
|
+
* @throws {RequiredError}
|
|
44
|
+
*/
|
|
45
|
+
setImportedDocumentDates: (id_1, importDatesRequest_1, ...args_1) => __awaiter(this, [id_1, importDatesRequest_1, ...args_1], void 0, function* (id, importDatesRequest, options = {}) {
|
|
46
|
+
// verify required parameter 'id' is not null or undefined
|
|
47
|
+
(0, common_1.assertParamExists)('setImportedDocumentDates', 'id', id);
|
|
48
|
+
// verify required parameter 'importDatesRequest' is not null or undefined
|
|
49
|
+
(0, common_1.assertParamExists)('setImportedDocumentDates', 'importDatesRequest', importDatesRequest);
|
|
50
|
+
const localVarPath = `/api/v1/import/documents/{id}/dates`
|
|
51
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
52
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
53
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
54
|
+
let baseOptions;
|
|
55
|
+
if (configuration) {
|
|
56
|
+
baseOptions = configuration.baseOptions;
|
|
57
|
+
}
|
|
58
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
59
|
+
const localVarHeaderParameter = {};
|
|
60
|
+
const localVarQueryParameter = {};
|
|
61
|
+
// authentication keycloak_auth required
|
|
62
|
+
// http bearer authentication required
|
|
63
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
64
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
65
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
66
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
67
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
68
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
69
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(importDatesRequest, localVarRequestOptions, configuration);
|
|
70
|
+
return {
|
|
71
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
72
|
+
options: localVarRequestOptions,
|
|
73
|
+
};
|
|
74
|
+
}),
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
exports.ImportApiAxiosParamCreator = ImportApiAxiosParamCreator;
|
|
78
|
+
/**
|
|
79
|
+
* ImportApi - functional programming interface
|
|
80
|
+
*/
|
|
81
|
+
const ImportApiFp = function (configuration) {
|
|
82
|
+
const localVarAxiosParamCreator = (0, exports.ImportApiAxiosParamCreator)(configuration);
|
|
83
|
+
return {
|
|
84
|
+
/**
|
|
85
|
+
* Sets the document\'s createdAt / updatedAt to the dates its source system reported. Both optional, at least one; none in the future; updatedAt not before createdAt. Without createdAt, a stored creation date later than updatedAt takes updatedAt. Requires the IMPORTER role; any active document of the caller\'s organisation, whoever owns it (404 otherwise). Audited DOCUMENT_DATES_IMPORTED.
|
|
86
|
+
* @summary Set an imported document\'s creation and modification dates
|
|
87
|
+
* @param {string} id
|
|
88
|
+
* @param {ImportDatesRequest} importDatesRequest
|
|
89
|
+
* @param {*} [options] Override http request option.
|
|
90
|
+
* @throws {RequiredError}
|
|
91
|
+
*/
|
|
92
|
+
setImportedDocumentDates(id, importDatesRequest, options) {
|
|
93
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
94
|
+
var _a, _b, _c;
|
|
95
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.setImportedDocumentDates(id, importDatesRequest, options);
|
|
96
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
97
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ImportApi.setImportedDocumentDates']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
98
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
99
|
+
});
|
|
100
|
+
},
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
exports.ImportApiFp = ImportApiFp;
|
|
104
|
+
/**
|
|
105
|
+
* ImportApi - factory interface
|
|
106
|
+
*/
|
|
107
|
+
const ImportApiFactory = function (configuration, basePath, axios) {
|
|
108
|
+
const localVarFp = (0, exports.ImportApiFp)(configuration);
|
|
109
|
+
return {
|
|
110
|
+
/**
|
|
111
|
+
* Sets the document\'s createdAt / updatedAt to the dates its source system reported. Both optional, at least one; none in the future; updatedAt not before createdAt. Without createdAt, a stored creation date later than updatedAt takes updatedAt. Requires the IMPORTER role; any active document of the caller\'s organisation, whoever owns it (404 otherwise). Audited DOCUMENT_DATES_IMPORTED.
|
|
112
|
+
* @summary Set an imported document\'s creation and modification dates
|
|
113
|
+
* @param {string} id
|
|
114
|
+
* @param {ImportDatesRequest} importDatesRequest
|
|
115
|
+
* @param {*} [options] Override http request option.
|
|
116
|
+
* @throws {RequiredError}
|
|
117
|
+
*/
|
|
118
|
+
setImportedDocumentDates(id, importDatesRequest, options) {
|
|
119
|
+
return localVarFp.setImportedDocumentDates(id, importDatesRequest, options).then((request) => request(axios, basePath));
|
|
120
|
+
},
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
exports.ImportApiFactory = ImportApiFactory;
|
|
124
|
+
/**
|
|
125
|
+
* ImportApi - object-oriented interface
|
|
126
|
+
*/
|
|
127
|
+
class ImportApi extends base_1.BaseAPI {
|
|
128
|
+
/**
|
|
129
|
+
* Sets the document\'s createdAt / updatedAt to the dates its source system reported. Both optional, at least one; none in the future; updatedAt not before createdAt. Without createdAt, a stored creation date later than updatedAt takes updatedAt. Requires the IMPORTER role; any active document of the caller\'s organisation, whoever owns it (404 otherwise). Audited DOCUMENT_DATES_IMPORTED.
|
|
130
|
+
* @summary Set an imported document\'s creation and modification dates
|
|
131
|
+
* @param {string} id
|
|
132
|
+
* @param {ImportDatesRequest} importDatesRequest
|
|
133
|
+
* @param {*} [options] Override http request option.
|
|
134
|
+
* @throws {RequiredError}
|
|
135
|
+
*/
|
|
136
|
+
setImportedDocumentDates(id, importDatesRequest, options) {
|
|
137
|
+
return (0, exports.ImportApiFp)(this.configuration).setImportedDocumentDates(id, importDatesRequest, options).then((request) => request(this.axios, this.basePath));
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
exports.ImportApi = ImportApi;
|
package/dist/api.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ export * from './api/favorites-api';
|
|
|
44
44
|
export * from './api/feature-entitlements-api';
|
|
45
45
|
export * from './api/file-controller-api';
|
|
46
46
|
export * from './api/folder-controller-api';
|
|
47
|
+
export * from './api/import-api';
|
|
47
48
|
export * from './api/mcp-discovery-controller-api';
|
|
48
49
|
export * from './api/mcp-token-admin-controller-api';
|
|
49
50
|
export * from './api/metadata-key-controller-api';
|
package/dist/api.js
CHANGED
|
@@ -62,6 +62,7 @@ __exportStar(require("./api/favorites-api"), exports);
|
|
|
62
62
|
__exportStar(require("./api/feature-entitlements-api"), exports);
|
|
63
63
|
__exportStar(require("./api/file-controller-api"), exports);
|
|
64
64
|
__exportStar(require("./api/folder-controller-api"), exports);
|
|
65
|
+
__exportStar(require("./api/import-api"), exports);
|
|
65
66
|
__exportStar(require("./api/mcp-discovery-controller-api"), exports);
|
|
66
67
|
__exportStar(require("./api/mcp-token-admin-controller-api"), exports);
|
|
67
68
|
__exportStar(require("./api/metadata-key-controller-api"), exports);
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* openfilz-api
|
|
3
|
+
* API for Document Management System
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from '../configuration';
|
|
13
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
+
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import type { ImportDates } from '../models';
|
|
16
|
+
import type { ImportDatesRequest } from '../models';
|
|
17
|
+
/**
|
|
18
|
+
* ImportApi - axios parameter creator
|
|
19
|
+
*/
|
|
20
|
+
export declare const ImportApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
21
|
+
/**
|
|
22
|
+
* Sets the document\'s createdAt / updatedAt to the dates its source system reported. Both optional, at least one; none in the future; updatedAt not before createdAt. Without createdAt, a stored creation date later than updatedAt takes updatedAt. Requires the IMPORTER role; any active document of the caller\'s organisation, whoever owns it (404 otherwise). Audited DOCUMENT_DATES_IMPORTED.
|
|
23
|
+
* @summary Set an imported document\'s creation and modification dates
|
|
24
|
+
* @param {string} id
|
|
25
|
+
* @param {ImportDatesRequest} importDatesRequest
|
|
26
|
+
* @param {*} [options] Override http request option.
|
|
27
|
+
* @throws {RequiredError}
|
|
28
|
+
*/
|
|
29
|
+
setImportedDocumentDates: (id: string, importDatesRequest: ImportDatesRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* ImportApi - functional programming interface
|
|
33
|
+
*/
|
|
34
|
+
export declare const ImportApiFp: (configuration?: Configuration) => {
|
|
35
|
+
/**
|
|
36
|
+
* Sets the document\'s createdAt / updatedAt to the dates its source system reported. Both optional, at least one; none in the future; updatedAt not before createdAt. Without createdAt, a stored creation date later than updatedAt takes updatedAt. Requires the IMPORTER role; any active document of the caller\'s organisation, whoever owns it (404 otherwise). Audited DOCUMENT_DATES_IMPORTED.
|
|
37
|
+
* @summary Set an imported document\'s creation and modification dates
|
|
38
|
+
* @param {string} id
|
|
39
|
+
* @param {ImportDatesRequest} importDatesRequest
|
|
40
|
+
* @param {*} [options] Override http request option.
|
|
41
|
+
* @throws {RequiredError}
|
|
42
|
+
*/
|
|
43
|
+
setImportedDocumentDates(id: string, importDatesRequest: ImportDatesRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImportDates>>;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* ImportApi - factory interface
|
|
47
|
+
*/
|
|
48
|
+
export declare const ImportApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
49
|
+
/**
|
|
50
|
+
* Sets the document\'s createdAt / updatedAt to the dates its source system reported. Both optional, at least one; none in the future; updatedAt not before createdAt. Without createdAt, a stored creation date later than updatedAt takes updatedAt. Requires the IMPORTER role; any active document of the caller\'s organisation, whoever owns it (404 otherwise). Audited DOCUMENT_DATES_IMPORTED.
|
|
51
|
+
* @summary Set an imported document\'s creation and modification dates
|
|
52
|
+
* @param {string} id
|
|
53
|
+
* @param {ImportDatesRequest} importDatesRequest
|
|
54
|
+
* @param {*} [options] Override http request option.
|
|
55
|
+
* @throws {RequiredError}
|
|
56
|
+
*/
|
|
57
|
+
setImportedDocumentDates(id: string, importDatesRequest: ImportDatesRequest, options?: RawAxiosRequestConfig): AxiosPromise<ImportDates>;
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* ImportApi - object-oriented interface
|
|
61
|
+
*/
|
|
62
|
+
export declare class ImportApi extends BaseAPI {
|
|
63
|
+
/**
|
|
64
|
+
* Sets the document\'s createdAt / updatedAt to the dates its source system reported. Both optional, at least one; none in the future; updatedAt not before createdAt. Without createdAt, a stored creation date later than updatedAt takes updatedAt. Requires the IMPORTER role; any active document of the caller\'s organisation, whoever owns it (404 otherwise). Audited DOCUMENT_DATES_IMPORTED.
|
|
65
|
+
* @summary Set an imported document\'s creation and modification dates
|
|
66
|
+
* @param {string} id
|
|
67
|
+
* @param {ImportDatesRequest} importDatesRequest
|
|
68
|
+
* @param {*} [options] Override http request option.
|
|
69
|
+
* @throws {RequiredError}
|
|
70
|
+
*/
|
|
71
|
+
setImportedDocumentDates(id: string, importDatesRequest: ImportDatesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ImportDates, any, {}, any>>;
|
|
72
|
+
}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* openfilz-api
|
|
5
|
+
* API for Document Management System
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import globalAxios from 'axios';
|
|
24
|
+
// Some imports not used depending on template conditions
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
|
|
29
|
+
/**
|
|
30
|
+
* ImportApi - axios parameter creator
|
|
31
|
+
*/
|
|
32
|
+
export const ImportApiAxiosParamCreator = function (configuration) {
|
|
33
|
+
return {
|
|
34
|
+
/**
|
|
35
|
+
* Sets the document\'s createdAt / updatedAt to the dates its source system reported. Both optional, at least one; none in the future; updatedAt not before createdAt. Without createdAt, a stored creation date later than updatedAt takes updatedAt. Requires the IMPORTER role; any active document of the caller\'s organisation, whoever owns it (404 otherwise). Audited DOCUMENT_DATES_IMPORTED.
|
|
36
|
+
* @summary Set an imported document\'s creation and modification dates
|
|
37
|
+
* @param {string} id
|
|
38
|
+
* @param {ImportDatesRequest} importDatesRequest
|
|
39
|
+
* @param {*} [options] Override http request option.
|
|
40
|
+
* @throws {RequiredError}
|
|
41
|
+
*/
|
|
42
|
+
setImportedDocumentDates: (id_1, importDatesRequest_1, ...args_1) => __awaiter(this, [id_1, importDatesRequest_1, ...args_1], void 0, function* (id, importDatesRequest, options = {}) {
|
|
43
|
+
// verify required parameter 'id' is not null or undefined
|
|
44
|
+
assertParamExists('setImportedDocumentDates', 'id', id);
|
|
45
|
+
// verify required parameter 'importDatesRequest' is not null or undefined
|
|
46
|
+
assertParamExists('setImportedDocumentDates', 'importDatesRequest', importDatesRequest);
|
|
47
|
+
const localVarPath = `/api/v1/import/documents/{id}/dates`
|
|
48
|
+
.replace('{id}', encodeURIComponent(String(id)));
|
|
49
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
50
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
51
|
+
let baseOptions;
|
|
52
|
+
if (configuration) {
|
|
53
|
+
baseOptions = configuration.baseOptions;
|
|
54
|
+
}
|
|
55
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
56
|
+
const localVarHeaderParameter = {};
|
|
57
|
+
const localVarQueryParameter = {};
|
|
58
|
+
// authentication keycloak_auth required
|
|
59
|
+
// http bearer authentication required
|
|
60
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
61
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
62
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
63
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
64
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
65
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
66
|
+
localVarRequestOptions.data = serializeDataIfNeeded(importDatesRequest, localVarRequestOptions, configuration);
|
|
67
|
+
return {
|
|
68
|
+
url: toPathString(localVarUrlObj),
|
|
69
|
+
options: localVarRequestOptions,
|
|
70
|
+
};
|
|
71
|
+
}),
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* ImportApi - functional programming interface
|
|
76
|
+
*/
|
|
77
|
+
export const ImportApiFp = function (configuration) {
|
|
78
|
+
const localVarAxiosParamCreator = ImportApiAxiosParamCreator(configuration);
|
|
79
|
+
return {
|
|
80
|
+
/**
|
|
81
|
+
* Sets the document\'s createdAt / updatedAt to the dates its source system reported. Both optional, at least one; none in the future; updatedAt not before createdAt. Without createdAt, a stored creation date later than updatedAt takes updatedAt. Requires the IMPORTER role; any active document of the caller\'s organisation, whoever owns it (404 otherwise). Audited DOCUMENT_DATES_IMPORTED.
|
|
82
|
+
* @summary Set an imported document\'s creation and modification dates
|
|
83
|
+
* @param {string} id
|
|
84
|
+
* @param {ImportDatesRequest} importDatesRequest
|
|
85
|
+
* @param {*} [options] Override http request option.
|
|
86
|
+
* @throws {RequiredError}
|
|
87
|
+
*/
|
|
88
|
+
setImportedDocumentDates(id, importDatesRequest, options) {
|
|
89
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
90
|
+
var _a, _b, _c;
|
|
91
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.setImportedDocumentDates(id, importDatesRequest, options);
|
|
92
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
93
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ImportApi.setImportedDocumentDates']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
94
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
95
|
+
});
|
|
96
|
+
},
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* ImportApi - factory interface
|
|
101
|
+
*/
|
|
102
|
+
export const ImportApiFactory = function (configuration, basePath, axios) {
|
|
103
|
+
const localVarFp = ImportApiFp(configuration);
|
|
104
|
+
return {
|
|
105
|
+
/**
|
|
106
|
+
* Sets the document\'s createdAt / updatedAt to the dates its source system reported. Both optional, at least one; none in the future; updatedAt not before createdAt. Without createdAt, a stored creation date later than updatedAt takes updatedAt. Requires the IMPORTER role; any active document of the caller\'s organisation, whoever owns it (404 otherwise). Audited DOCUMENT_DATES_IMPORTED.
|
|
107
|
+
* @summary Set an imported document\'s creation and modification dates
|
|
108
|
+
* @param {string} id
|
|
109
|
+
* @param {ImportDatesRequest} importDatesRequest
|
|
110
|
+
* @param {*} [options] Override http request option.
|
|
111
|
+
* @throws {RequiredError}
|
|
112
|
+
*/
|
|
113
|
+
setImportedDocumentDates(id, importDatesRequest, options) {
|
|
114
|
+
return localVarFp.setImportedDocumentDates(id, importDatesRequest, options).then((request) => request(axios, basePath));
|
|
115
|
+
},
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
/**
|
|
119
|
+
* ImportApi - object-oriented interface
|
|
120
|
+
*/
|
|
121
|
+
export class ImportApi extends BaseAPI {
|
|
122
|
+
/**
|
|
123
|
+
* Sets the document\'s createdAt / updatedAt to the dates its source system reported. Both optional, at least one; none in the future; updatedAt not before createdAt. Without createdAt, a stored creation date later than updatedAt takes updatedAt. Requires the IMPORTER role; any active document of the caller\'s organisation, whoever owns it (404 otherwise). Audited DOCUMENT_DATES_IMPORTED.
|
|
124
|
+
* @summary Set an imported document\'s creation and modification dates
|
|
125
|
+
* @param {string} id
|
|
126
|
+
* @param {ImportDatesRequest} importDatesRequest
|
|
127
|
+
* @param {*} [options] Override http request option.
|
|
128
|
+
* @throws {RequiredError}
|
|
129
|
+
*/
|
|
130
|
+
setImportedDocumentDates(id, importDatesRequest, options) {
|
|
131
|
+
return ImportApiFp(this.configuration).setImportedDocumentDates(id, importDatesRequest, options).then((request) => request(this.axios, this.basePath));
|
|
132
|
+
}
|
|
133
|
+
}
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ export * from './api/favorites-api';
|
|
|
44
44
|
export * from './api/feature-entitlements-api';
|
|
45
45
|
export * from './api/file-controller-api';
|
|
46
46
|
export * from './api/folder-controller-api';
|
|
47
|
+
export * from './api/import-api';
|
|
47
48
|
export * from './api/mcp-discovery-controller-api';
|
|
48
49
|
export * from './api/mcp-token-admin-controller-api';
|
|
49
50
|
export * from './api/metadata-key-controller-api';
|
package/dist/esm/api.js
CHANGED
|
@@ -46,6 +46,7 @@ export * from './api/favorites-api';
|
|
|
46
46
|
export * from './api/feature-entitlements-api';
|
|
47
47
|
export * from './api/file-controller-api';
|
|
48
48
|
export * from './api/folder-controller-api';
|
|
49
|
+
export * from './api/import-api';
|
|
49
50
|
export * from './api/mcp-discovery-controller-api';
|
|
50
51
|
export * from './api/mcp-token-admin-controller-api';
|
|
51
52
|
export * from './api/metadata-key-controller-api';
|
|
@@ -71,6 +71,7 @@ export declare const EnrichedAuditLogActionEnum: {
|
|
|
71
71
|
readonly ShareDocumentDelete: "SHARE_DOCUMENT_DELETE";
|
|
72
72
|
readonly ShareDocumentExpire: "SHARE_DOCUMENT_EXPIRE";
|
|
73
73
|
readonly ShareInheritanceChanged: "SHARE_INHERITANCE_CHANGED";
|
|
74
|
+
readonly DocumentDatesImported: "DOCUMENT_DATES_IMPORTED";
|
|
74
75
|
readonly TeamCreated: "TEAM_CREATED";
|
|
75
76
|
readonly TeamUpdated: "TEAM_UPDATED";
|
|
76
77
|
readonly TeamDeleted: "TEAM_DELETED";
|
|
@@ -57,6 +57,7 @@ export const EnrichedAuditLogActionEnum = {
|
|
|
57
57
|
ShareDocumentDelete: 'SHARE_DOCUMENT_DELETE',
|
|
58
58
|
ShareDocumentExpire: 'SHARE_DOCUMENT_EXPIRE',
|
|
59
59
|
ShareInheritanceChanged: 'SHARE_INHERITANCE_CHANGED',
|
|
60
|
+
DocumentDatesImported: 'DOCUMENT_DATES_IMPORTED',
|
|
60
61
|
TeamCreated: 'TEAM_CREATED',
|
|
61
62
|
TeamUpdated: 'TEAM_UPDATED',
|
|
62
63
|
TeamDeleted: 'TEAM_DELETED',
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* openfilz-api
|
|
3
|
+
* API for Document Management System
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export interface ImportDatesRequest {
|
|
13
|
+
'createdAt'?: string;
|
|
14
|
+
'updatedAt'?: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* openfilz-api
|
|
5
|
+
* API for Document Management System
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* openfilz-api
|
|
3
|
+
* API for Document Management System
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export interface ImportDates {
|
|
13
|
+
'documentId'?: string;
|
|
14
|
+
'createdAt'?: string;
|
|
15
|
+
'updatedAt'?: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* openfilz-api
|
|
5
|
+
* API for Document Management System
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export {};
|
|
@@ -94,6 +94,8 @@ export * from './folder-selection-by-kind-request';
|
|
|
94
94
|
export * from './folder-selection-by-kind-response';
|
|
95
95
|
export * from './foreign-item';
|
|
96
96
|
export * from './global-policy';
|
|
97
|
+
export * from './import-dates';
|
|
98
|
+
export * from './import-dates-request';
|
|
97
99
|
export * from './ingestion-status-dto';
|
|
98
100
|
export * from './insight-backfill-request';
|
|
99
101
|
export * from './insight-backfill-status';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -94,6 +94,8 @@ export * from './folder-selection-by-kind-request';
|
|
|
94
94
|
export * from './folder-selection-by-kind-response';
|
|
95
95
|
export * from './foreign-item';
|
|
96
96
|
export * from './global-policy';
|
|
97
|
+
export * from './import-dates';
|
|
98
|
+
export * from './import-dates-request';
|
|
97
99
|
export * from './ingestion-status-dto';
|
|
98
100
|
export * from './insight-backfill-request';
|
|
99
101
|
export * from './insight-backfill-status';
|
|
@@ -87,6 +87,7 @@ export declare const SearchByAuditLogRequestActionEnum: {
|
|
|
87
87
|
readonly ShareDocumentDelete: "SHARE_DOCUMENT_DELETE";
|
|
88
88
|
readonly ShareDocumentExpire: "SHARE_DOCUMENT_EXPIRE";
|
|
89
89
|
readonly ShareInheritanceChanged: "SHARE_INHERITANCE_CHANGED";
|
|
90
|
+
readonly DocumentDatesImported: "DOCUMENT_DATES_IMPORTED";
|
|
90
91
|
readonly TeamCreated: "TEAM_CREATED";
|
|
91
92
|
readonly TeamUpdated: "TEAM_UPDATED";
|
|
92
93
|
readonly TeamDeleted: "TEAM_DELETED";
|
|
@@ -61,6 +61,7 @@ export const SearchByAuditLogRequestActionEnum = {
|
|
|
61
61
|
ShareDocumentDelete: 'SHARE_DOCUMENT_DELETE',
|
|
62
62
|
ShareDocumentExpire: 'SHARE_DOCUMENT_EXPIRE',
|
|
63
63
|
ShareInheritanceChanged: 'SHARE_INHERITANCE_CHANGED',
|
|
64
|
+
DocumentDatesImported: 'DOCUMENT_DATES_IMPORTED',
|
|
64
65
|
TeamCreated: 'TEAM_CREATED',
|
|
65
66
|
TeamUpdated: 'TEAM_UPDATED',
|
|
66
67
|
TeamDeleted: 'TEAM_DELETED',
|
|
@@ -30,7 +30,7 @@ export interface SearchByMetadataRequest {
|
|
|
30
30
|
*/
|
|
31
31
|
'rootOnly'?: boolean;
|
|
32
32
|
/**
|
|
33
|
-
* Metadata key-value pairs to search for. A string value containing % or * is a case-insensitive pattern: % or * = any characters, ? = exactly one character, _ and \\ are literal, a bare % = the key is set whatever its value (e.g. {\"project\": \"beta%\"}). Any other
|
|
33
|
+
* Metadata key-value pairs to search for. A string value containing % or * is a case-insensitive pattern: % or * = any characters, ? = exactly one character, _ and \\ are literal, a bare % = the key is set whatever its value (e.g. {\"project\": \"beta%\"}). Any other string is matched exactly (case-insensitive) and also matches the boolean or number it spells (\"true\", \"42\") and a list containing it; a boolean, number or object value is matched as sent. At most 10 criteria, keys up to 100 characters, patterns up to 200.
|
|
34
34
|
*/
|
|
35
35
|
'metadataCriteria'?: {
|
|
36
36
|
[key: string]: any;
|
|
@@ -71,6 +71,7 @@ export declare const EnrichedAuditLogActionEnum: {
|
|
|
71
71
|
readonly ShareDocumentDelete: "SHARE_DOCUMENT_DELETE";
|
|
72
72
|
readonly ShareDocumentExpire: "SHARE_DOCUMENT_EXPIRE";
|
|
73
73
|
readonly ShareInheritanceChanged: "SHARE_INHERITANCE_CHANGED";
|
|
74
|
+
readonly DocumentDatesImported: "DOCUMENT_DATES_IMPORTED";
|
|
74
75
|
readonly TeamCreated: "TEAM_CREATED";
|
|
75
76
|
readonly TeamUpdated: "TEAM_UPDATED";
|
|
76
77
|
readonly TeamDeleted: "TEAM_DELETED";
|
|
@@ -60,6 +60,7 @@ exports.EnrichedAuditLogActionEnum = {
|
|
|
60
60
|
ShareDocumentDelete: 'SHARE_DOCUMENT_DELETE',
|
|
61
61
|
ShareDocumentExpire: 'SHARE_DOCUMENT_EXPIRE',
|
|
62
62
|
ShareInheritanceChanged: 'SHARE_INHERITANCE_CHANGED',
|
|
63
|
+
DocumentDatesImported: 'DOCUMENT_DATES_IMPORTED',
|
|
63
64
|
TeamCreated: 'TEAM_CREATED',
|
|
64
65
|
TeamUpdated: 'TEAM_UPDATED',
|
|
65
66
|
TeamDeleted: 'TEAM_DELETED',
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* openfilz-api
|
|
3
|
+
* API for Document Management System
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export interface ImportDatesRequest {
|
|
13
|
+
'createdAt'?: string;
|
|
14
|
+
'updatedAt'?: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* openfilz-api
|
|
6
|
+
* API for Document Management System
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* openfilz-api
|
|
3
|
+
* API for Document Management System
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export interface ImportDates {
|
|
13
|
+
'documentId'?: string;
|
|
14
|
+
'createdAt'?: string;
|
|
15
|
+
'updatedAt'?: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* openfilz-api
|
|
6
|
+
* API for Document Management System
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/models/index.d.ts
CHANGED
|
@@ -94,6 +94,8 @@ export * from './folder-selection-by-kind-request';
|
|
|
94
94
|
export * from './folder-selection-by-kind-response';
|
|
95
95
|
export * from './foreign-item';
|
|
96
96
|
export * from './global-policy';
|
|
97
|
+
export * from './import-dates';
|
|
98
|
+
export * from './import-dates-request';
|
|
97
99
|
export * from './ingestion-status-dto';
|
|
98
100
|
export * from './insight-backfill-request';
|
|
99
101
|
export * from './insight-backfill-status';
|
package/dist/models/index.js
CHANGED
|
@@ -110,6 +110,8 @@ __exportStar(require("./folder-selection-by-kind-request"), exports);
|
|
|
110
110
|
__exportStar(require("./folder-selection-by-kind-response"), exports);
|
|
111
111
|
__exportStar(require("./foreign-item"), exports);
|
|
112
112
|
__exportStar(require("./global-policy"), exports);
|
|
113
|
+
__exportStar(require("./import-dates"), exports);
|
|
114
|
+
__exportStar(require("./import-dates-request"), exports);
|
|
113
115
|
__exportStar(require("./ingestion-status-dto"), exports);
|
|
114
116
|
__exportStar(require("./insight-backfill-request"), exports);
|
|
115
117
|
__exportStar(require("./insight-backfill-status"), exports);
|
|
@@ -87,6 +87,7 @@ export declare const SearchByAuditLogRequestActionEnum: {
|
|
|
87
87
|
readonly ShareDocumentDelete: "SHARE_DOCUMENT_DELETE";
|
|
88
88
|
readonly ShareDocumentExpire: "SHARE_DOCUMENT_EXPIRE";
|
|
89
89
|
readonly ShareInheritanceChanged: "SHARE_INHERITANCE_CHANGED";
|
|
90
|
+
readonly DocumentDatesImported: "DOCUMENT_DATES_IMPORTED";
|
|
90
91
|
readonly TeamCreated: "TEAM_CREATED";
|
|
91
92
|
readonly TeamUpdated: "TEAM_UPDATED";
|
|
92
93
|
readonly TeamDeleted: "TEAM_DELETED";
|
|
@@ -64,6 +64,7 @@ exports.SearchByAuditLogRequestActionEnum = {
|
|
|
64
64
|
ShareDocumentDelete: 'SHARE_DOCUMENT_DELETE',
|
|
65
65
|
ShareDocumentExpire: 'SHARE_DOCUMENT_EXPIRE',
|
|
66
66
|
ShareInheritanceChanged: 'SHARE_INHERITANCE_CHANGED',
|
|
67
|
+
DocumentDatesImported: 'DOCUMENT_DATES_IMPORTED',
|
|
67
68
|
TeamCreated: 'TEAM_CREATED',
|
|
68
69
|
TeamUpdated: 'TEAM_UPDATED',
|
|
69
70
|
TeamDeleted: 'TEAM_DELETED',
|
|
@@ -30,7 +30,7 @@ export interface SearchByMetadataRequest {
|
|
|
30
30
|
*/
|
|
31
31
|
'rootOnly'?: boolean;
|
|
32
32
|
/**
|
|
33
|
-
* Metadata key-value pairs to search for. A string value containing % or * is a case-insensitive pattern: % or * = any characters, ? = exactly one character, _ and \\ are literal, a bare % = the key is set whatever its value (e.g. {\"project\": \"beta%\"}). Any other
|
|
33
|
+
* Metadata key-value pairs to search for. A string value containing % or * is a case-insensitive pattern: % or * = any characters, ? = exactly one character, _ and \\ are literal, a bare % = the key is set whatever its value (e.g. {\"project\": \"beta%\"}). Any other string is matched exactly (case-insensitive) and also matches the boolean or number it spells (\"true\", \"42\") and a list containing it; a boolean, number or object value is matched as sent. At most 10 criteria, keys up to 100 characters, patterns up to 200.
|
|
34
34
|
*/
|
|
35
35
|
'metadataCriteria'?: {
|
|
36
36
|
[key: string]: any;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# ImportApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost:8081*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**setImportedDocumentDates**](#setimporteddocumentdates) | **PUT** /api/v1/import/documents/{id}/dates | Set an imported document\'s creation and modification dates|
|
|
8
|
+
|
|
9
|
+
# **setImportedDocumentDates**
|
|
10
|
+
> ImportDates setImportedDocumentDates(importDatesRequest)
|
|
11
|
+
|
|
12
|
+
Sets the document\'s createdAt / updatedAt to the dates its source system reported. Both optional, at least one; none in the future; updatedAt not before createdAt. Without createdAt, a stored creation date later than updatedAt takes updatedAt. Requires the IMPORTER role; any active document of the caller\'s organisation, whoever owns it (404 otherwise). Audited DOCUMENT_DATES_IMPORTED.
|
|
13
|
+
|
|
14
|
+
### Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import {
|
|
18
|
+
ImportApi,
|
|
19
|
+
Configuration,
|
|
20
|
+
ImportDatesRequest
|
|
21
|
+
} from '@openfilz-sdk/typescript-ee';
|
|
22
|
+
|
|
23
|
+
const configuration = new Configuration();
|
|
24
|
+
const apiInstance = new ImportApi(configuration);
|
|
25
|
+
|
|
26
|
+
let id: string; // (default to undefined)
|
|
27
|
+
let importDatesRequest: ImportDatesRequest; //
|
|
28
|
+
|
|
29
|
+
const { status, data } = await apiInstance.setImportedDocumentDates(
|
|
30
|
+
id,
|
|
31
|
+
importDatesRequest
|
|
32
|
+
);
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Parameters
|
|
36
|
+
|
|
37
|
+
|Name | Type | Description | Notes|
|
|
38
|
+
|------------- | ------------- | ------------- | -------------|
|
|
39
|
+
| **importDatesRequest** | **ImportDatesRequest**| | |
|
|
40
|
+
| **id** | [**string**] | | defaults to undefined|
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### Return type
|
|
44
|
+
|
|
45
|
+
**ImportDates**
|
|
46
|
+
|
|
47
|
+
### Authorization
|
|
48
|
+
|
|
49
|
+
[keycloak_auth](../README.md#keycloak_auth)
|
|
50
|
+
|
|
51
|
+
### HTTP request headers
|
|
52
|
+
|
|
53
|
+
- **Content-Type**: application/json
|
|
54
|
+
- **Accept**: */*
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
### HTTP response details
|
|
58
|
+
| Status code | Description | Response headers |
|
|
59
|
+
|-------------|-------------|------------------|
|
|
60
|
+
|**200** | OK | - |
|
|
61
|
+
|
|
62
|
+
[[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)
|
|
63
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# ImportDates
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**documentId** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**createdAt** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**updatedAt** | **string** | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { ImportDates } from '@openfilz-sdk/typescript-ee';
|
|
16
|
+
|
|
17
|
+
const instance: ImportDates = {
|
|
18
|
+
documentId,
|
|
19
|
+
createdAt,
|
|
20
|
+
updatedAt,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# ImportDatesRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**createdAt** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**updatedAt** | **string** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { ImportDatesRequest } from '@openfilz-sdk/typescript-ee';
|
|
15
|
+
|
|
16
|
+
const instance: ImportDatesRequest = {
|
|
17
|
+
createdAt,
|
|
18
|
+
updatedAt,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
|
|
|
10
10
|
**type** | **string** | Optional : Type of the document to search - if not provided or null : search all types | [optional] [default to undefined]
|
|
11
11
|
**parentFolderId** | **string** | Optional : UUID of the parent folder to search - if not provided or null : search in all folders | [optional] [default to undefined]
|
|
12
12
|
**rootOnly** | **boolean** | Optional : if true : search only at the root level - if not provided or null : search in all folders | [optional] [default to undefined]
|
|
13
|
-
**metadataCriteria** | **{ [key: string]: any; }** | Metadata key-value pairs to search for. A string value containing % or * is a case-insensitive pattern: % or * = any characters, ? = exactly one character, _ and \\ are literal, a bare % = the key is set whatever its value (e.g. {\"project\": \"beta%\"}). Any other
|
|
13
|
+
**metadataCriteria** | **{ [key: string]: any; }** | Metadata key-value pairs to search for. A string value containing % or * is a case-insensitive pattern: % or * = any characters, ? = exactly one character, _ and \\ are literal, a bare % = the key is set whatever its value (e.g. {\"project\": \"beta%\"}). Any other string is matched exactly (case-insensitive) and also matches the boolean or number it spells (\"true\", \"42\") and a list containing it; a boolean, number or object value is matched as sent. At most 10 criteria, keys up to 100 characters, patterns up to 200. | [optional] [default to undefined]
|
|
14
14
|
|
|
15
15
|
## Example
|
|
16
16
|
|
|
@@ -69,7 +69,7 @@ input ListFolderRequest {
|
|
|
69
69
|
name : String
|
|
70
70
|
"name of the elements to filter (like clause)"
|
|
71
71
|
nameLike : String
|
|
72
|
-
"metadata of the elements to filter: exact values (contains clause), or case-insensitive patterns for string values containing % or * (any characters), ? = one character, _ and backslash are literal; a bare % means the key exists. At most 10 criteria."
|
|
72
|
+
"metadata of the elements to filter: exact values (contains clause; a string also matches the boolean or number it spells, e.g. \"true\" or \"42\", and a list containing it), or case-insensitive patterns for string values containing % or * (any characters), ? = one character, _ and backslash are literal; a bare % means the key exists. At most 10 criteria."
|
|
73
73
|
metadata : JSON
|
|
74
74
|
size : Long
|
|
75
75
|
createdAtAfter : DateTime
|
|
@@ -100,7 +100,7 @@ input FavoriteRequest {
|
|
|
100
100
|
name : String
|
|
101
101
|
"name of the elements to filter (like clause)"
|
|
102
102
|
nameLike : String
|
|
103
|
-
"metadata of the elements to filter: exact values (contains clause), or case-insensitive patterns for string values containing % or * (any characters), ? = one character, _ and backslash are literal; a bare % means the key exists. At most 10 criteria."
|
|
103
|
+
"metadata of the elements to filter: exact values (contains clause; a string also matches the boolean or number it spells, e.g. \"true\" or \"42\", and a list containing it), or case-insensitive patterns for string values containing % or * (any characters), ? = one character, _ and backslash are literal; a bare % means the key exists. At most 10 criteria."
|
|
104
104
|
metadata : JSON
|
|
105
105
|
size : Long
|
|
106
106
|
createdAtAfter : DateTime
|
|
@@ -79,6 +79,7 @@ export const EnrichedAuditLogActionEnum = {
|
|
|
79
79
|
ShareDocumentDelete: 'SHARE_DOCUMENT_DELETE',
|
|
80
80
|
ShareDocumentExpire: 'SHARE_DOCUMENT_EXPIRE',
|
|
81
81
|
ShareInheritanceChanged: 'SHARE_INHERITANCE_CHANGED',
|
|
82
|
+
DocumentDatesImported: 'DOCUMENT_DATES_IMPORTED',
|
|
82
83
|
TeamCreated: 'TEAM_CREATED',
|
|
83
84
|
TeamUpdated: 'TEAM_UPDATED',
|
|
84
85
|
TeamDeleted: 'TEAM_DELETED',
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* openfilz-api
|
|
5
|
+
* API for Document Management System
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
export interface ImportDatesRequest {
|
|
18
|
+
'createdAt'?: string;
|
|
19
|
+
'updatedAt'?: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* openfilz-api
|
|
5
|
+
* API for Document Management System
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
export interface ImportDates {
|
|
18
|
+
'documentId'?: string;
|
|
19
|
+
'createdAt'?: string;
|
|
20
|
+
'updatedAt'?: string;
|
|
21
|
+
}
|
|
22
|
+
|
package/models/index.ts
CHANGED
|
@@ -94,6 +94,8 @@ export * from './folder-selection-by-kind-request';
|
|
|
94
94
|
export * from './folder-selection-by-kind-response';
|
|
95
95
|
export * from './foreign-item';
|
|
96
96
|
export * from './global-policy';
|
|
97
|
+
export * from './import-dates';
|
|
98
|
+
export * from './import-dates-request';
|
|
97
99
|
export * from './ingestion-status-dto';
|
|
98
100
|
export * from './insight-backfill-request';
|
|
99
101
|
export * from './insight-backfill-status';
|
|
@@ -92,6 +92,7 @@ export const SearchByAuditLogRequestActionEnum = {
|
|
|
92
92
|
ShareDocumentDelete: 'SHARE_DOCUMENT_DELETE',
|
|
93
93
|
ShareDocumentExpire: 'SHARE_DOCUMENT_EXPIRE',
|
|
94
94
|
ShareInheritanceChanged: 'SHARE_INHERITANCE_CHANGED',
|
|
95
|
+
DocumentDatesImported: 'DOCUMENT_DATES_IMPORTED',
|
|
95
96
|
TeamCreated: 'TEAM_CREATED',
|
|
96
97
|
TeamUpdated: 'TEAM_UPDATED',
|
|
97
98
|
TeamDeleted: 'TEAM_DELETED',
|
|
@@ -35,7 +35,7 @@ export interface SearchByMetadataRequest {
|
|
|
35
35
|
*/
|
|
36
36
|
'rootOnly'?: boolean;
|
|
37
37
|
/**
|
|
38
|
-
* Metadata key-value pairs to search for. A string value containing % or * is a case-insensitive pattern: % or * = any characters, ? = exactly one character, _ and \\ are literal, a bare % = the key is set whatever its value (e.g. {\"project\": \"beta%\"}). Any other
|
|
38
|
+
* Metadata key-value pairs to search for. A string value containing % or * is a case-insensitive pattern: % or * = any characters, ? = exactly one character, _ and \\ are literal, a bare % = the key is set whatever its value (e.g. {\"project\": \"beta%\"}). Any other string is matched exactly (case-insensitive) and also matches the boolean or number it spells (\"true\", \"42\") and a list containing it; a boolean, number or object value is matched as sent. At most 10 criteria, keys up to 100 characters, patterns up to 200.
|
|
39
39
|
*/
|
|
40
40
|
'metadataCriteria'?: { [key: string]: any; };
|
|
41
41
|
}
|