@openfilz-sdk/typescript 1.2.6 → 1.2.8

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.
@@ -1 +1 @@
1
- 3f92c0b5decd809e5c3256741a27a41ebfcdb811e66b7d4aa5fc185f44df2f2b
1
+ 6e692948fb850d9ec0c7c3707982d9332d231b970a4086ec6c2b30044ac10c26
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @openfilz-sdk/typescript@1.2.6
1
+ ## @openfilz-sdk/typescript@1.2.8
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@1.2.6 --save
39
+ npm install @openfilz-sdk/typescript@1.2.8 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -170,10 +170,11 @@ export const DocumentControllerApiAxiosParamCreator = function (configuration?:
170
170
  * @summary Download document for OnlyOffice
171
171
  * @param {string} documentId
172
172
  * @param {string} token
173
+ * @param {string} [versionId]
173
174
  * @param {*} [options] Override http request option.
174
175
  * @throws {RequiredError}
175
176
  */
176
- downloadForOnlyOffice: async (documentId: string, token: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
177
+ downloadForOnlyOffice: async (documentId: string, token: string, versionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
177
178
  // verify required parameter 'documentId' is not null or undefined
178
179
  assertParamExists('downloadForOnlyOffice', 'documentId', documentId)
179
180
  // verify required parameter 'token' is not null or undefined
@@ -199,6 +200,10 @@ export const DocumentControllerApiAxiosParamCreator = function (configuration?:
199
200
  localVarQueryParameter['token'] = token;
200
201
  }
201
202
 
203
+ if (versionId !== undefined) {
204
+ localVarQueryParameter['versionId'] = versionId;
205
+ }
206
+
202
207
  localVarHeaderParameter['Accept'] = '*/*';
203
208
 
204
209
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -761,11 +766,12 @@ export const DocumentControllerApiFp = function(configuration?: Configuration) {
761
766
  * @summary Download document for OnlyOffice
762
767
  * @param {string} documentId
763
768
  * @param {string} token
769
+ * @param {string} [versionId]
764
770
  * @param {*} [options] Override http request option.
765
771
  * @throws {RequiredError}
766
772
  */
767
- async downloadForOnlyOffice(documentId: string, token: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
768
- const localVarAxiosArgs = await localVarAxiosParamCreator.downloadForOnlyOffice(documentId, token, options);
773
+ async downloadForOnlyOffice(documentId: string, token: string, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
774
+ const localVarAxiosArgs = await localVarAxiosParamCreator.downloadForOnlyOffice(documentId, token, versionId, options);
769
775
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
770
776
  const localVarOperationServerBasePath = operationServerMap['DocumentControllerApi.downloadForOnlyOffice']?.[localVarOperationServerIndex]?.url;
771
777
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -970,11 +976,12 @@ export const DocumentControllerApiFactory = function (configuration?: Configurat
970
976
  * @summary Download document for OnlyOffice
971
977
  * @param {string} documentId
972
978
  * @param {string} token
979
+ * @param {string} [versionId]
973
980
  * @param {*} [options] Override http request option.
974
981
  * @throws {RequiredError}
975
982
  */
976
- downloadForOnlyOffice(documentId: string, token: string, options?: RawAxiosRequestConfig): AxiosPromise<File> {
977
- return localVarFp.downloadForOnlyOffice(documentId, token, options).then((request) => request(axios, basePath));
983
+ downloadForOnlyOffice(documentId: string, token: string, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<File> {
984
+ return localVarFp.downloadForOnlyOffice(documentId, token, versionId, options).then((request) => request(axios, basePath));
978
985
  },
979
986
  /**
980
987
  * Downloads multiple documents as a single ZIP file.
@@ -1144,11 +1151,12 @@ export class DocumentControllerApi extends BaseAPI {
1144
1151
  * @summary Download document for OnlyOffice
1145
1152
  * @param {string} documentId
1146
1153
  * @param {string} token
1154
+ * @param {string} [versionId]
1147
1155
  * @param {*} [options] Override http request option.
1148
1156
  * @throws {RequiredError}
1149
1157
  */
1150
- public downloadForOnlyOffice(documentId: string, token: string, options?: RawAxiosRequestConfig) {
1151
- return DocumentControllerApiFp(this.configuration).downloadForOnlyOffice(documentId, token, options).then((request) => request(this.axios, this.basePath));
1158
+ public downloadForOnlyOffice(documentId: string, token: string, versionId?: string, options?: RawAxiosRequestConfig) {
1159
+ return DocumentControllerApiFp(this.configuration).downloadForOnlyOffice(documentId, token, versionId, options).then((request) => request(this.axios, this.basePath));
1152
1160
  }
1153
1161
 
1154
1162
  /**
@@ -56,10 +56,11 @@ export declare const DocumentControllerApiAxiosParamCreator: (configuration?: Co
56
56
  * @summary Download document for OnlyOffice
57
57
  * @param {string} documentId
58
58
  * @param {string} token
59
+ * @param {string} [versionId]
59
60
  * @param {*} [options] Override http request option.
60
61
  * @throws {RequiredError}
61
62
  */
62
- downloadForOnlyOffice: (documentId: string, token: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
63
+ downloadForOnlyOffice: (documentId: string, token: string, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
63
64
  /**
64
65
  * Downloads multiple documents as a single ZIP file.
65
66
  * @summary Download multiple documents as ZIP
@@ -197,10 +198,11 @@ export declare const DocumentControllerApiFp: (configuration?: Configuration) =>
197
198
  * @summary Download document for OnlyOffice
198
199
  * @param {string} documentId
199
200
  * @param {string} token
201
+ * @param {string} [versionId]
200
202
  * @param {*} [options] Override http request option.
201
203
  * @throws {RequiredError}
202
204
  */
203
- downloadForOnlyOffice(documentId: string, token: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
205
+ downloadForOnlyOffice(documentId: string, token: string, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
204
206
  /**
205
207
  * Downloads multiple documents as a single ZIP file.
206
208
  * @summary Download multiple documents as ZIP
@@ -340,10 +342,11 @@ export declare const DocumentControllerApiFactory: (configuration?: Configuratio
340
342
  * @summary Download document for OnlyOffice
341
343
  * @param {string} documentId
342
344
  * @param {string} token
345
+ * @param {string} [versionId]
343
346
  * @param {*} [options] Override http request option.
344
347
  * @throws {RequiredError}
345
348
  */
346
- downloadForOnlyOffice(documentId: string, token: string, options?: RawAxiosRequestConfig): AxiosPromise<File>;
349
+ downloadForOnlyOffice(documentId: string, token: string, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<File>;
347
350
  /**
348
351
  * Downloads multiple documents as a single ZIP file.
349
352
  * @summary Download multiple documents as ZIP
@@ -483,10 +486,11 @@ export declare class DocumentControllerApi extends BaseAPI {
483
486
  * @summary Download document for OnlyOffice
484
487
  * @param {string} documentId
485
488
  * @param {string} token
489
+ * @param {string} [versionId]
486
490
  * @param {*} [options] Override http request option.
487
491
  * @throws {RequiredError}
488
492
  */
489
- downloadForOnlyOffice(documentId: string, token: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any, {}>>;
493
+ downloadForOnlyOffice(documentId: string, token: string, versionId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any, {}>>;
490
494
  /**
491
495
  * Downloads multiple documents as a single ZIP file.
492
496
  * @summary Download multiple documents as ZIP
@@ -143,10 +143,11 @@ const DocumentControllerApiAxiosParamCreator = function (configuration) {
143
143
  * @summary Download document for OnlyOffice
144
144
  * @param {string} documentId
145
145
  * @param {string} token
146
+ * @param {string} [versionId]
146
147
  * @param {*} [options] Override http request option.
147
148
  * @throws {RequiredError}
148
149
  */
149
- downloadForOnlyOffice: (documentId_1, token_1, ...args_1) => __awaiter(this, [documentId_1, token_1, ...args_1], void 0, function* (documentId, token, options = {}) {
150
+ downloadForOnlyOffice: (documentId_1, token_1, versionId_1, ...args_1) => __awaiter(this, [documentId_1, token_1, versionId_1, ...args_1], void 0, function* (documentId, token, versionId, options = {}) {
150
151
  // verify required parameter 'documentId' is not null or undefined
151
152
  (0, common_1.assertParamExists)('downloadForOnlyOffice', 'documentId', documentId);
152
153
  // verify required parameter 'token' is not null or undefined
@@ -168,6 +169,9 @@ const DocumentControllerApiAxiosParamCreator = function (configuration) {
168
169
  if (token !== undefined) {
169
170
  localVarQueryParameter['token'] = token;
170
171
  }
172
+ if (versionId !== undefined) {
173
+ localVarQueryParameter['versionId'] = versionId;
174
+ }
171
175
  localVarHeaderParameter['Accept'] = '*/*';
172
176
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
173
177
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -671,13 +675,14 @@ const DocumentControllerApiFp = function (configuration) {
671
675
  * @summary Download document for OnlyOffice
672
676
  * @param {string} documentId
673
677
  * @param {string} token
678
+ * @param {string} [versionId]
674
679
  * @param {*} [options] Override http request option.
675
680
  * @throws {RequiredError}
676
681
  */
677
- downloadForOnlyOffice(documentId, token, options) {
682
+ downloadForOnlyOffice(documentId, token, versionId, options) {
678
683
  return __awaiter(this, void 0, void 0, function* () {
679
684
  var _a, _b, _c;
680
- const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadForOnlyOffice(documentId, token, options);
685
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadForOnlyOffice(documentId, token, versionId, options);
681
686
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
682
687
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DocumentControllerApi.downloadForOnlyOffice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
683
688
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -916,11 +921,12 @@ const DocumentControllerApiFactory = function (configuration, basePath, axios) {
916
921
  * @summary Download document for OnlyOffice
917
922
  * @param {string} documentId
918
923
  * @param {string} token
924
+ * @param {string} [versionId]
919
925
  * @param {*} [options] Override http request option.
920
926
  * @throws {RequiredError}
921
927
  */
922
- downloadForOnlyOffice(documentId, token, options) {
923
- return localVarFp.downloadForOnlyOffice(documentId, token, options).then((request) => request(axios, basePath));
928
+ downloadForOnlyOffice(documentId, token, versionId, options) {
929
+ return localVarFp.downloadForOnlyOffice(documentId, token, versionId, options).then((request) => request(axios, basePath));
924
930
  },
925
931
  /**
926
932
  * Downloads multiple documents as a single ZIP file.
@@ -1087,11 +1093,12 @@ class DocumentControllerApi extends base_1.BaseAPI {
1087
1093
  * @summary Download document for OnlyOffice
1088
1094
  * @param {string} documentId
1089
1095
  * @param {string} token
1096
+ * @param {string} [versionId]
1090
1097
  * @param {*} [options] Override http request option.
1091
1098
  * @throws {RequiredError}
1092
1099
  */
1093
- downloadForOnlyOffice(documentId, token, options) {
1094
- return (0, exports.DocumentControllerApiFp)(this.configuration).downloadForOnlyOffice(documentId, token, options).then((request) => request(this.axios, this.basePath));
1100
+ downloadForOnlyOffice(documentId, token, versionId, options) {
1101
+ return (0, exports.DocumentControllerApiFp)(this.configuration).downloadForOnlyOffice(documentId, token, versionId, options).then((request) => request(this.axios, this.basePath));
1095
1102
  }
1096
1103
  /**
1097
1104
  * Downloads multiple documents as a single ZIP file.
@@ -56,10 +56,11 @@ export declare const DocumentControllerApiAxiosParamCreator: (configuration?: Co
56
56
  * @summary Download document for OnlyOffice
57
57
  * @param {string} documentId
58
58
  * @param {string} token
59
+ * @param {string} [versionId]
59
60
  * @param {*} [options] Override http request option.
60
61
  * @throws {RequiredError}
61
62
  */
62
- downloadForOnlyOffice: (documentId: string, token: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
63
+ downloadForOnlyOffice: (documentId: string, token: string, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
63
64
  /**
64
65
  * Downloads multiple documents as a single ZIP file.
65
66
  * @summary Download multiple documents as ZIP
@@ -197,10 +198,11 @@ export declare const DocumentControllerApiFp: (configuration?: Configuration) =>
197
198
  * @summary Download document for OnlyOffice
198
199
  * @param {string} documentId
199
200
  * @param {string} token
201
+ * @param {string} [versionId]
200
202
  * @param {*} [options] Override http request option.
201
203
  * @throws {RequiredError}
202
204
  */
203
- downloadForOnlyOffice(documentId: string, token: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
205
+ downloadForOnlyOffice(documentId: string, token: string, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
204
206
  /**
205
207
  * Downloads multiple documents as a single ZIP file.
206
208
  * @summary Download multiple documents as ZIP
@@ -340,10 +342,11 @@ export declare const DocumentControllerApiFactory: (configuration?: Configuratio
340
342
  * @summary Download document for OnlyOffice
341
343
  * @param {string} documentId
342
344
  * @param {string} token
345
+ * @param {string} [versionId]
343
346
  * @param {*} [options] Override http request option.
344
347
  * @throws {RequiredError}
345
348
  */
346
- downloadForOnlyOffice(documentId: string, token: string, options?: RawAxiosRequestConfig): AxiosPromise<File>;
349
+ downloadForOnlyOffice(documentId: string, token: string, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<File>;
347
350
  /**
348
351
  * Downloads multiple documents as a single ZIP file.
349
352
  * @summary Download multiple documents as ZIP
@@ -483,10 +486,11 @@ export declare class DocumentControllerApi extends BaseAPI {
483
486
  * @summary Download document for OnlyOffice
484
487
  * @param {string} documentId
485
488
  * @param {string} token
489
+ * @param {string} [versionId]
486
490
  * @param {*} [options] Override http request option.
487
491
  * @throws {RequiredError}
488
492
  */
489
- downloadForOnlyOffice(documentId: string, token: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any, {}>>;
493
+ downloadForOnlyOffice(documentId: string, token: string, versionId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any, {}>>;
490
494
  /**
491
495
  * Downloads multiple documents as a single ZIP file.
492
496
  * @summary Download multiple documents as ZIP
@@ -140,10 +140,11 @@ export const DocumentControllerApiAxiosParamCreator = function (configuration) {
140
140
  * @summary Download document for OnlyOffice
141
141
  * @param {string} documentId
142
142
  * @param {string} token
143
+ * @param {string} [versionId]
143
144
  * @param {*} [options] Override http request option.
144
145
  * @throws {RequiredError}
145
146
  */
146
- downloadForOnlyOffice: (documentId_1, token_1, ...args_1) => __awaiter(this, [documentId_1, token_1, ...args_1], void 0, function* (documentId, token, options = {}) {
147
+ downloadForOnlyOffice: (documentId_1, token_1, versionId_1, ...args_1) => __awaiter(this, [documentId_1, token_1, versionId_1, ...args_1], void 0, function* (documentId, token, versionId, options = {}) {
147
148
  // verify required parameter 'documentId' is not null or undefined
148
149
  assertParamExists('downloadForOnlyOffice', 'documentId', documentId);
149
150
  // verify required parameter 'token' is not null or undefined
@@ -165,6 +166,9 @@ export const DocumentControllerApiAxiosParamCreator = function (configuration) {
165
166
  if (token !== undefined) {
166
167
  localVarQueryParameter['token'] = token;
167
168
  }
169
+ if (versionId !== undefined) {
170
+ localVarQueryParameter['versionId'] = versionId;
171
+ }
168
172
  localVarHeaderParameter['Accept'] = '*/*';
169
173
  setSearchParams(localVarUrlObj, localVarQueryParameter);
170
174
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -667,13 +671,14 @@ export const DocumentControllerApiFp = function (configuration) {
667
671
  * @summary Download document for OnlyOffice
668
672
  * @param {string} documentId
669
673
  * @param {string} token
674
+ * @param {string} [versionId]
670
675
  * @param {*} [options] Override http request option.
671
676
  * @throws {RequiredError}
672
677
  */
673
- downloadForOnlyOffice(documentId, token, options) {
678
+ downloadForOnlyOffice(documentId, token, versionId, options) {
674
679
  return __awaiter(this, void 0, void 0, function* () {
675
680
  var _a, _b, _c;
676
- const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadForOnlyOffice(documentId, token, options);
681
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadForOnlyOffice(documentId, token, versionId, options);
677
682
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
678
683
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DocumentControllerApi.downloadForOnlyOffice']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
679
684
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -911,11 +916,12 @@ export const DocumentControllerApiFactory = function (configuration, basePath, a
911
916
  * @summary Download document for OnlyOffice
912
917
  * @param {string} documentId
913
918
  * @param {string} token
919
+ * @param {string} [versionId]
914
920
  * @param {*} [options] Override http request option.
915
921
  * @throws {RequiredError}
916
922
  */
917
- downloadForOnlyOffice(documentId, token, options) {
918
- return localVarFp.downloadForOnlyOffice(documentId, token, options).then((request) => request(axios, basePath));
923
+ downloadForOnlyOffice(documentId, token, versionId, options) {
924
+ return localVarFp.downloadForOnlyOffice(documentId, token, versionId, options).then((request) => request(axios, basePath));
919
925
  },
920
926
  /**
921
927
  * Downloads multiple documents as a single ZIP file.
@@ -1081,11 +1087,12 @@ export class DocumentControllerApi extends BaseAPI {
1081
1087
  * @summary Download document for OnlyOffice
1082
1088
  * @param {string} documentId
1083
1089
  * @param {string} token
1090
+ * @param {string} [versionId]
1084
1091
  * @param {*} [options] Override http request option.
1085
1092
  * @throws {RequiredError}
1086
1093
  */
1087
- downloadForOnlyOffice(documentId, token, options) {
1088
- return DocumentControllerApiFp(this.configuration).downloadForOnlyOffice(documentId, token, options).then((request) => request(this.axios, this.basePath));
1094
+ downloadForOnlyOffice(documentId, token, versionId, options) {
1095
+ return DocumentControllerApiFp(this.configuration).downloadForOnlyOffice(documentId, token, versionId, options).then((request) => request(this.axios, this.basePath));
1089
1096
  }
1090
1097
  /**
1091
1098
  * Downloads multiple documents as a single ZIP file.
@@ -196,10 +196,12 @@ const apiInstance = new DocumentControllerApi(configuration);
196
196
 
197
197
  let documentId: string; // (default to undefined)
198
198
  let token: string; // (default to undefined)
199
+ let versionId: string; // (optional) (default to undefined)
199
200
 
200
201
  const { status, data } = await apiInstance.downloadForOnlyOffice(
201
202
  documentId,
202
- token
203
+ token,
204
+ versionId
203
205
  );
204
206
  ```
205
207
 
@@ -209,6 +211,7 @@ const { status, data } = await apiInstance.downloadForOnlyOffice(
209
211
  |------------- | ------------- | ------------- | -------------|
210
212
  | **documentId** | [**string**] | | defaults to undefined|
211
213
  | **token** | [**string**] | | defaults to undefined|
214
+ | **versionId** | [**string**] | | (optional) defaults to undefined|
212
215
 
213
216
 
214
217
  ### Return type
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfilz-sdk/typescript",
3
- "version": "1.2.6",
3
+ "version": "1.2.8",
4
4
  "description": "OpenAPI client for @openfilz-sdk/typescript",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {