@openfilz-sdk/typescript-ee 1.9.1 → 1.9.3
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 +36 -0
- package/.openapi-generator/openfilz-api-generate-typescript-sdk.sha256 +1 -1
- package/README.md +24 -2
- package/api/feature-entitlements-api.ts +121 -0
- package/api/pdftools-api.ts +430 -0
- package/api.ts +2 -0
- package/dist/api/feature-entitlements-api.d.ts +63 -0
- package/dist/api/feature-entitlements-api.js +125 -0
- package/dist/api/pdftools-api.d.ts +200 -0
- package/dist/api/pdftools-api.js +412 -0
- package/dist/api.d.ts +2 -0
- package/dist/api.js +2 -0
- package/dist/esm/api/feature-entitlements-api.d.ts +63 -0
- package/dist/esm/api/feature-entitlements-api.js +118 -0
- package/dist/esm/api/pdftools-api.d.ts +200 -0
- package/dist/esm/api/pdftools-api.js +405 -0
- package/dist/esm/api.d.ts +2 -0
- package/dist/esm/api.js +2 -0
- package/dist/esm/models/enriched-audit-log-details.d.ts +3 -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/feature-entitlement.d.ts +16 -0
- package/dist/esm/models/feature-entitlement.js +14 -0
- package/dist/esm/models/index.d.ts +16 -0
- package/dist/esm/models/index.js +16 -0
- package/dist/esm/models/merge-request.d.ts +30 -0
- package/dist/esm/models/merge-request.js +14 -0
- package/dist/esm/models/merge-source.d.ts +24 -0
- package/dist/esm/models/merge-source.js +14 -0
- package/dist/esm/models/organize-request.d.ts +30 -0
- package/dist/esm/models/organize-request.js +14 -0
- package/dist/esm/models/output-target.d.ts +41 -0
- package/dist/esm/models/output-target.js +17 -0
- package/dist/esm/models/page-instruction.d.ts +28 -0
- package/dist/esm/models/page-instruction.js +14 -0
- package/dist/esm/models/pdf-info.d.ts +26 -0
- package/dist/esm/models/pdf-info.js +14 -0
- package/dist/esm/models/pdf-operation-response.d.ts +19 -0
- package/dist/esm/models/pdf-operation-response.js +14 -0
- package/dist/esm/models/pdf-outline-entry.d.ts +19 -0
- package/dist/esm/models/pdf-outline-entry.js +14 -0
- package/dist/esm/models/pdf-output-info.d.ts +21 -0
- package/dist/esm/models/pdf-output-info.js +14 -0
- package/dist/esm/models/pdf-page-info.d.ts +20 -0
- package/dist/esm/models/pdf-page-info.js +14 -0
- package/dist/esm/models/pdf-transform-audit.d.ts +17 -0
- package/dist/esm/models/pdf-transform-audit.js +14 -0
- package/dist/esm/models/response.d.ts +15 -0
- package/dist/esm/models/response.js +14 -0
- package/dist/esm/models/rotate-request.d.ts +33 -0
- package/dist/esm/models/rotate-request.js +14 -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/settings.d.ts +1 -0
- package/dist/esm/models/split-output.d.ts +32 -0
- package/dist/esm/models/split-output.js +14 -0
- package/dist/esm/models/split-request.d.ts +53 -0
- package/dist/esm/models/split-request.js +20 -0
- package/dist/models/enriched-audit-log-details.d.ts +3 -0
- package/dist/models/enriched-audit-log.d.ts +1 -0
- package/dist/models/enriched-audit-log.js +1 -0
- package/dist/models/feature-entitlement.d.ts +16 -0
- package/dist/models/feature-entitlement.js +15 -0
- package/dist/models/index.d.ts +16 -0
- package/dist/models/index.js +16 -0
- package/dist/models/merge-request.d.ts +30 -0
- package/dist/models/merge-request.js +15 -0
- package/dist/models/merge-source.d.ts +24 -0
- package/dist/models/merge-source.js +15 -0
- package/dist/models/organize-request.d.ts +30 -0
- package/dist/models/organize-request.js +15 -0
- package/dist/models/output-target.d.ts +41 -0
- package/dist/models/output-target.js +20 -0
- package/dist/models/page-instruction.d.ts +28 -0
- package/dist/models/page-instruction.js +15 -0
- package/dist/models/pdf-info.d.ts +26 -0
- package/dist/models/pdf-info.js +15 -0
- package/dist/models/pdf-operation-response.d.ts +19 -0
- package/dist/models/pdf-operation-response.js +15 -0
- package/dist/models/pdf-outline-entry.d.ts +19 -0
- package/dist/models/pdf-outline-entry.js +15 -0
- package/dist/models/pdf-output-info.d.ts +21 -0
- package/dist/models/pdf-output-info.js +15 -0
- package/dist/models/pdf-page-info.d.ts +20 -0
- package/dist/models/pdf-page-info.js +15 -0
- package/dist/models/pdf-transform-audit.d.ts +17 -0
- package/dist/models/pdf-transform-audit.js +15 -0
- package/dist/models/response.d.ts +15 -0
- package/dist/models/response.js +15 -0
- package/dist/models/rotate-request.d.ts +33 -0
- package/dist/models/rotate-request.js +15 -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/settings.d.ts +1 -0
- package/dist/models/split-output.d.ts +32 -0
- package/dist/models/split-output.js +15 -0
- package/dist/models/split-request.d.ts +53 -0
- package/dist/models/split-request.js +23 -0
- package/docs/EnrichedAuditLogDetails.md +8 -2
- package/docs/FeatureEntitlement.md +24 -0
- package/docs/FeatureEntitlementsApi.md +52 -0
- package/docs/MergeRequest.md +25 -0
- package/docs/MergeSource.md +23 -0
- package/docs/OrganizeRequest.md +25 -0
- package/docs/OutputTarget.md +29 -0
- package/docs/PDFToolsApi.md +271 -0
- package/docs/PageInstruction.md +25 -0
- package/docs/PdfInfo.md +35 -0
- package/docs/PdfOperationResponse.md +23 -0
- package/docs/PdfOutlineEntry.md +25 -0
- package/docs/PdfOutputInfo.md +29 -0
- package/docs/PdfPageInfo.md +27 -0
- package/docs/PdfTransformAudit.md +27 -0
- package/docs/Response.md +20 -0
- package/docs/RotateRequest.md +27 -0
- package/docs/Settings.md +2 -0
- package/docs/SplitOutput.md +27 -0
- package/docs/SplitRequest.md +33 -0
- package/models/enriched-audit-log-details.ts +4 -1
- package/models/enriched-audit-log.ts +1 -0
- package/models/feature-entitlement.ts +22 -0
- package/models/index.ts +16 -0
- package/models/merge-request.ts +40 -0
- package/models/merge-source.ts +30 -0
- package/models/organize-request.ts +40 -0
- package/models/output-target.ts +50 -0
- package/models/page-instruction.ts +34 -0
- package/models/pdf-info.ts +36 -0
- package/models/pdf-operation-response.ts +27 -0
- package/models/pdf-outline-entry.ts +25 -0
- package/models/pdf-output-info.ts +27 -0
- package/models/pdf-page-info.ts +26 -0
- package/models/pdf-transform-audit.ts +26 -0
- package/models/response.ts +23 -0
- package/models/rotate-request.ts +41 -0
- package/models/search-by-audit-log-request.ts +1 -0
- package/models/settings.ts +1 -0
- package/models/split-output.ts +38 -0
- package/models/split-request.ts +64 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -19,11 +19,13 @@ api/esign-enterprise-api.ts
|
|
|
19
19
|
api/esign-public-api.ts
|
|
20
20
|
api/esign-templates-api.ts
|
|
21
21
|
api/favorites-api.ts
|
|
22
|
+
api/feature-entitlements-api.ts
|
|
22
23
|
api/file-controller-api.ts
|
|
23
24
|
api/folder-controller-api.ts
|
|
24
25
|
api/mcp-discovery-controller-api.ts
|
|
25
26
|
api/mcp-token-admin-controller-api.ts
|
|
26
27
|
api/notifications-api.ts
|
|
28
|
+
api/pdftools-api.ts
|
|
27
29
|
api/scan-agent-api.ts
|
|
28
30
|
api/scanner-proxy-api.ts
|
|
29
31
|
api/search-administration-api.ts
|
|
@@ -95,6 +97,8 @@ docs/EmbedUrlResponse.md
|
|
|
95
97
|
docs/EnrichedAuditLog.md
|
|
96
98
|
docs/EnrichedAuditLogDetails.md
|
|
97
99
|
docs/FavoritesApi.md
|
|
100
|
+
docs/FeatureEntitlement.md
|
|
101
|
+
docs/FeatureEntitlementsApi.md
|
|
98
102
|
docs/FileControllerApi.md
|
|
99
103
|
docs/FileTypeStats.md
|
|
100
104
|
docs/FilterInput.md
|
|
@@ -109,19 +113,33 @@ docs/McpAgentTokenInfo.md
|
|
|
109
113
|
docs/McpAgentTokenResponse.md
|
|
110
114
|
docs/McpDiscoveryControllerApi.md
|
|
111
115
|
docs/McpTokenAdminControllerApi.md
|
|
116
|
+
docs/MergeRequest.md
|
|
117
|
+
docs/MergeSource.md
|
|
112
118
|
docs/MintMcpAgentTokenRequest.md
|
|
113
119
|
docs/MintUploadTokenRequest.md
|
|
114
120
|
docs/MoveAudit.md
|
|
115
121
|
docs/MoveRequest.md
|
|
116
122
|
docs/NotificationDTO.md
|
|
117
123
|
docs/NotificationsApi.md
|
|
124
|
+
docs/OrganizeRequest.md
|
|
125
|
+
docs/OutputTarget.md
|
|
126
|
+
docs/PDFToolsApi.md
|
|
127
|
+
docs/PageInstruction.md
|
|
128
|
+
docs/PdfInfo.md
|
|
129
|
+
docs/PdfOperationResponse.md
|
|
130
|
+
docs/PdfOutlineEntry.md
|
|
131
|
+
docs/PdfOutputInfo.md
|
|
132
|
+
docs/PdfPageInfo.md
|
|
133
|
+
docs/PdfTransformAudit.md
|
|
118
134
|
docs/PublicSignatureView.md
|
|
119
135
|
docs/RenameAudit.md
|
|
120
136
|
docs/RenameRequest.md
|
|
121
137
|
docs/ReplaceAudit.md
|
|
138
|
+
docs/Response.md
|
|
122
139
|
docs/RestoreVersionAudit.md
|
|
123
140
|
docs/RestoreVersionResponse.md
|
|
124
141
|
docs/RoleBinding.md
|
|
142
|
+
docs/RotateRequest.md
|
|
125
143
|
docs/SaveAiSettingsRequest.md
|
|
126
144
|
docs/ScanAgentApi.md
|
|
127
145
|
docs/ScanJobStatusDto.md
|
|
@@ -152,6 +170,8 @@ docs/SignatureTemplateField.md
|
|
|
152
170
|
docs/SignatureTemplateRequest.md
|
|
153
171
|
docs/SignatureTemplateRole.md
|
|
154
172
|
docs/SortInput.md
|
|
173
|
+
docs/SplitOutput.md
|
|
174
|
+
docs/SplitRequest.md
|
|
155
175
|
docs/StorageBreakdown.md
|
|
156
176
|
docs/Suggest.md
|
|
157
177
|
docs/TeamMemberInfo.md
|
|
@@ -221,6 +241,7 @@ models/element-info.ts
|
|
|
221
241
|
models/embed-url-response.ts
|
|
222
242
|
models/enriched-audit-log-details.ts
|
|
223
243
|
models/enriched-audit-log.ts
|
|
244
|
+
models/feature-entitlement.ts
|
|
224
245
|
models/file-type-stats.ts
|
|
225
246
|
models/filter-input.ts
|
|
226
247
|
models/folder-element-info.ts
|
|
@@ -232,18 +253,31 @@ models/license-info.ts
|
|
|
232
253
|
models/list-ai-models-request.ts
|
|
233
254
|
models/mcp-agent-token-info.ts
|
|
234
255
|
models/mcp-agent-token-response.ts
|
|
256
|
+
models/merge-request.ts
|
|
257
|
+
models/merge-source.ts
|
|
235
258
|
models/mint-mcp-agent-token-request.ts
|
|
236
259
|
models/mint-upload-token-request.ts
|
|
237
260
|
models/move-audit.ts
|
|
238
261
|
models/move-request.ts
|
|
239
262
|
models/notification-dto.ts
|
|
263
|
+
models/organize-request.ts
|
|
264
|
+
models/output-target.ts
|
|
265
|
+
models/page-instruction.ts
|
|
266
|
+
models/pdf-info.ts
|
|
267
|
+
models/pdf-operation-response.ts
|
|
268
|
+
models/pdf-outline-entry.ts
|
|
269
|
+
models/pdf-output-info.ts
|
|
270
|
+
models/pdf-page-info.ts
|
|
271
|
+
models/pdf-transform-audit.ts
|
|
240
272
|
models/public-signature-view.ts
|
|
241
273
|
models/rename-audit.ts
|
|
242
274
|
models/rename-request.ts
|
|
243
275
|
models/replace-audit.ts
|
|
276
|
+
models/response.ts
|
|
244
277
|
models/restore-version-audit.ts
|
|
245
278
|
models/restore-version-response.ts
|
|
246
279
|
models/role-binding.ts
|
|
280
|
+
models/rotate-request.ts
|
|
247
281
|
models/save-ai-settings-request.ts
|
|
248
282
|
models/scan-job-status-dto.ts
|
|
249
283
|
models/scan-request-dto.ts
|
|
@@ -270,6 +304,8 @@ models/signature-template-field.ts
|
|
|
270
304
|
models/signature-template-request.ts
|
|
271
305
|
models/signature-template-role.ts
|
|
272
306
|
models/sort-input.ts
|
|
307
|
+
models/split-output.ts
|
|
308
|
+
models/split-request.ts
|
|
273
309
|
models/storage-breakdown.ts
|
|
274
310
|
models/suggest.ts
|
|
275
311
|
models/team-member-info.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
b8414ee1d5623e54523f1ed576b51658466f23631c26b5d44447cff80b30144e
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @openfilz-sdk/typescript-ee@1.9.
|
|
1
|
+
## @openfilz-sdk/typescript-ee@1.9.3
|
|
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.9.
|
|
39
|
+
npm install @openfilz-sdk/typescript-ee@1.9.3 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -141,6 +141,7 @@ Class | Method | HTTP request | Description
|
|
|
141
141
|
*FavoritesApi* | [**isFavorite**](docs/FavoritesApi.md#isfavorite) | **GET** /api/v1/favorites/{documentId}/is-favorite | Check favorite status
|
|
142
142
|
*FavoritesApi* | [**removeFavorite**](docs/FavoritesApi.md#removefavorite) | **DELETE** /api/v1/favorites/{documentId} | Remove document from favorites
|
|
143
143
|
*FavoritesApi* | [**toggleFavorite**](docs/FavoritesApi.md#togglefavorite) | **PUT** /api/v1/favorites/{documentId}/toggle | Toggle favorite status
|
|
144
|
+
*FeatureEntitlementsApi* | [**getFeatureEntitlements**](docs/FeatureEntitlementsApi.md#getfeatureentitlements) | **GET** /api/v1/admin/features | Deployment + licence state per optional feature
|
|
144
145
|
*FileControllerApi* | [**copyFiles**](docs/FileControllerApi.md#copyfiles) | **POST** /api/v1/files/copy | Copy files
|
|
145
146
|
*FileControllerApi* | [**deleteFiles**](docs/FileControllerApi.md#deletefiles) | **DELETE** /api/v1/files | Delete files
|
|
146
147
|
*FileControllerApi* | [**moveFiles**](docs/FileControllerApi.md#movefiles) | **POST** /api/v1/files/move | Move files
|
|
@@ -162,6 +163,11 @@ Class | Method | HTTP request | Description
|
|
|
162
163
|
*NotificationsApi* | [**markAllAsRead**](docs/NotificationsApi.md#markallasread) | **PUT** /api/v1/notifications/read-all | Mark all notifications as read
|
|
163
164
|
*NotificationsApi* | [**markAsRead**](docs/NotificationsApi.md#markasread) | **PUT** /api/v1/notifications/{id}/read | Mark notification as read
|
|
164
165
|
*NotificationsApi* | [**streamNotifications**](docs/NotificationsApi.md#streamnotifications) | **GET** /api/v1/notifications/stream | Subscribe to notification stream
|
|
166
|
+
*PDFToolsApi* | [**info**](docs/PDFToolsApi.md#info) | **GET** /api/v1/pdf/{documentId}/info | Describe a stored PDF
|
|
167
|
+
*PDFToolsApi* | [**merge**](docs/PDFToolsApi.md#merge) | **POST** /api/v1/pdf/merge | Merge PDFs
|
|
168
|
+
*PDFToolsApi* | [**organize**](docs/PDFToolsApi.md#organize) | **POST** /api/v1/pdf/organize | Reorganise the pages of a PDF
|
|
169
|
+
*PDFToolsApi* | [**rotate**](docs/PDFToolsApi.md#rotate) | **POST** /api/v1/pdf/rotate | Rotate pages
|
|
170
|
+
*PDFToolsApi* | [**split**](docs/PDFToolsApi.md#split) | **POST** /api/v1/pdf/split | Split a PDF
|
|
165
171
|
*ScanAgentApi* | [**download**](docs/ScanAgentApi.md#download) | **GET** /api/v1/agent/download/{platform} | Download agent binary
|
|
166
172
|
*ScanAgentApi* | [**getVersion**](docs/ScanAgentApi.md#getversion) | **GET** /api/v1/agent/version | Get agent version
|
|
167
173
|
*ScannerProxyApi* | [**getIngestionStatus**](docs/ScannerProxyApi.md#getingestionstatus) | **GET** /api/v1/scan/status | Get ingestion status
|
|
@@ -244,6 +250,7 @@ Class | Method | HTTP request | Description
|
|
|
244
250
|
- [EmbedUrlResponse](docs/EmbedUrlResponse.md)
|
|
245
251
|
- [EnrichedAuditLog](docs/EnrichedAuditLog.md)
|
|
246
252
|
- [EnrichedAuditLogDetails](docs/EnrichedAuditLogDetails.md)
|
|
253
|
+
- [FeatureEntitlement](docs/FeatureEntitlement.md)
|
|
247
254
|
- [FileTypeStats](docs/FileTypeStats.md)
|
|
248
255
|
- [FilterInput](docs/FilterInput.md)
|
|
249
256
|
- [FolderElementInfo](docs/FolderElementInfo.md)
|
|
@@ -254,18 +261,31 @@ Class | Method | HTTP request | Description
|
|
|
254
261
|
- [ListAiModelsRequest](docs/ListAiModelsRequest.md)
|
|
255
262
|
- [McpAgentTokenInfo](docs/McpAgentTokenInfo.md)
|
|
256
263
|
- [McpAgentTokenResponse](docs/McpAgentTokenResponse.md)
|
|
264
|
+
- [MergeRequest](docs/MergeRequest.md)
|
|
265
|
+
- [MergeSource](docs/MergeSource.md)
|
|
257
266
|
- [MintMcpAgentTokenRequest](docs/MintMcpAgentTokenRequest.md)
|
|
258
267
|
- [MintUploadTokenRequest](docs/MintUploadTokenRequest.md)
|
|
259
268
|
- [MoveAudit](docs/MoveAudit.md)
|
|
260
269
|
- [MoveRequest](docs/MoveRequest.md)
|
|
261
270
|
- [NotificationDTO](docs/NotificationDTO.md)
|
|
271
|
+
- [OrganizeRequest](docs/OrganizeRequest.md)
|
|
272
|
+
- [OutputTarget](docs/OutputTarget.md)
|
|
273
|
+
- [PageInstruction](docs/PageInstruction.md)
|
|
274
|
+
- [PdfInfo](docs/PdfInfo.md)
|
|
275
|
+
- [PdfOperationResponse](docs/PdfOperationResponse.md)
|
|
276
|
+
- [PdfOutlineEntry](docs/PdfOutlineEntry.md)
|
|
277
|
+
- [PdfOutputInfo](docs/PdfOutputInfo.md)
|
|
278
|
+
- [PdfPageInfo](docs/PdfPageInfo.md)
|
|
279
|
+
- [PdfTransformAudit](docs/PdfTransformAudit.md)
|
|
262
280
|
- [PublicSignatureView](docs/PublicSignatureView.md)
|
|
263
281
|
- [RenameAudit](docs/RenameAudit.md)
|
|
264
282
|
- [RenameRequest](docs/RenameRequest.md)
|
|
265
283
|
- [ReplaceAudit](docs/ReplaceAudit.md)
|
|
284
|
+
- [Response](docs/Response.md)
|
|
266
285
|
- [RestoreVersionAudit](docs/RestoreVersionAudit.md)
|
|
267
286
|
- [RestoreVersionResponse](docs/RestoreVersionResponse.md)
|
|
268
287
|
- [RoleBinding](docs/RoleBinding.md)
|
|
288
|
+
- [RotateRequest](docs/RotateRequest.md)
|
|
269
289
|
- [SaveAiSettingsRequest](docs/SaveAiSettingsRequest.md)
|
|
270
290
|
- [ScanJobStatusDto](docs/ScanJobStatusDto.md)
|
|
271
291
|
- [ScanRequestDto](docs/ScanRequestDto.md)
|
|
@@ -292,6 +312,8 @@ Class | Method | HTTP request | Description
|
|
|
292
312
|
- [SignatureTemplateRequest](docs/SignatureTemplateRequest.md)
|
|
293
313
|
- [SignatureTemplateRole](docs/SignatureTemplateRole.md)
|
|
294
314
|
- [SortInput](docs/SortInput.md)
|
|
315
|
+
- [SplitOutput](docs/SplitOutput.md)
|
|
316
|
+
- [SplitRequest](docs/SplitRequest.md)
|
|
295
317
|
- [StorageBreakdown](docs/StorageBreakdown.md)
|
|
296
318
|
- [Suggest](docs/Suggest.md)
|
|
297
319
|
- [TeamMemberInfo](docs/TeamMemberInfo.md)
|
|
@@ -0,0 +1,121 @@
|
|
|
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 { Response } from '../models';
|
|
26
|
+
/**
|
|
27
|
+
* FeatureEntitlementsApi - axios parameter creator
|
|
28
|
+
*/
|
|
29
|
+
export const FeatureEntitlementsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
30
|
+
return {
|
|
31
|
+
/**
|
|
32
|
+
* Lets the admin UI distinguish \'service not deployed\' from \'licence does not entitle this feature\', so the latter can prompt a licence upgrade instead of failing on the first API call. Exposes feature names only — no licence internals.
|
|
33
|
+
* @summary Deployment + licence state per optional feature
|
|
34
|
+
* @param {*} [options] Override http request option.
|
|
35
|
+
* @throws {RequiredError}
|
|
36
|
+
*/
|
|
37
|
+
getFeatureEntitlements: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
38
|
+
const localVarPath = `/api/v1/admin/features`;
|
|
39
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
40
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
41
|
+
let baseOptions;
|
|
42
|
+
if (configuration) {
|
|
43
|
+
baseOptions = configuration.baseOptions;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
47
|
+
const localVarHeaderParameter = {} as any;
|
|
48
|
+
const localVarQueryParameter = {} as any;
|
|
49
|
+
|
|
50
|
+
// authentication keycloak_auth required
|
|
51
|
+
// http bearer authentication required
|
|
52
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
53
|
+
|
|
54
|
+
localVarHeaderParameter['Accept'] = '*/*';
|
|
55
|
+
|
|
56
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
57
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
58
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
url: toPathString(localVarUrlObj),
|
|
62
|
+
options: localVarRequestOptions,
|
|
63
|
+
};
|
|
64
|
+
},
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* FeatureEntitlementsApi - functional programming interface
|
|
70
|
+
*/
|
|
71
|
+
export const FeatureEntitlementsApiFp = function(configuration?: Configuration) {
|
|
72
|
+
const localVarAxiosParamCreator = FeatureEntitlementsApiAxiosParamCreator(configuration)
|
|
73
|
+
return {
|
|
74
|
+
/**
|
|
75
|
+
* Lets the admin UI distinguish \'service not deployed\' from \'licence does not entitle this feature\', so the latter can prompt a licence upgrade instead of failing on the first API call. Exposes feature names only — no licence internals.
|
|
76
|
+
* @summary Deployment + licence state per optional feature
|
|
77
|
+
* @param {*} [options] Override http request option.
|
|
78
|
+
* @throws {RequiredError}
|
|
79
|
+
*/
|
|
80
|
+
async getFeatureEntitlements(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Response>> {
|
|
81
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getFeatureEntitlements(options);
|
|
82
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
83
|
+
const localVarOperationServerBasePath = operationServerMap['FeatureEntitlementsApi.getFeatureEntitlements']?.[localVarOperationServerIndex]?.url;
|
|
84
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
85
|
+
},
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* FeatureEntitlementsApi - factory interface
|
|
91
|
+
*/
|
|
92
|
+
export const FeatureEntitlementsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
93
|
+
const localVarFp = FeatureEntitlementsApiFp(configuration)
|
|
94
|
+
return {
|
|
95
|
+
/**
|
|
96
|
+
* Lets the admin UI distinguish \'service not deployed\' from \'licence does not entitle this feature\', so the latter can prompt a licence upgrade instead of failing on the first API call. Exposes feature names only — no licence internals.
|
|
97
|
+
* @summary Deployment + licence state per optional feature
|
|
98
|
+
* @param {*} [options] Override http request option.
|
|
99
|
+
* @throws {RequiredError}
|
|
100
|
+
*/
|
|
101
|
+
getFeatureEntitlements(options?: RawAxiosRequestConfig): AxiosPromise<Response> {
|
|
102
|
+
return localVarFp.getFeatureEntitlements(options).then((request) => request(axios, basePath));
|
|
103
|
+
},
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* FeatureEntitlementsApi - object-oriented interface
|
|
109
|
+
*/
|
|
110
|
+
export class FeatureEntitlementsApi extends BaseAPI {
|
|
111
|
+
/**
|
|
112
|
+
* Lets the admin UI distinguish \'service not deployed\' from \'licence does not entitle this feature\', so the latter can prompt a licence upgrade instead of failing on the first API call. Exposes feature names only — no licence internals.
|
|
113
|
+
* @summary Deployment + licence state per optional feature
|
|
114
|
+
* @param {*} [options] Override http request option.
|
|
115
|
+
* @throws {RequiredError}
|
|
116
|
+
*/
|
|
117
|
+
public getFeatureEntitlements(options?: RawAxiosRequestConfig) {
|
|
118
|
+
return FeatureEntitlementsApiFp(this.configuration).getFeatureEntitlements(options).then((request) => request(this.axios, this.basePath));
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|