@agravity/private 9.3.0 → 10.0.0
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 +11 -3
- package/.openapi-generator/VERSION +1 -1
- package/README.md +97 -142
- package/api/aIOperations.agravity.ts +878 -0
- package/api/api.ts +9 -3
- package/api/assetIconRuleManagement.agravity.ts +59 -190
- package/api/assetManagement.agravity.ts +118 -355
- package/api/assetOperations.agravity.ts +290 -917
- package/api/assetPublishing.agravity.ts +107 -288
- package/api/assetRelationManagement.agravity.ts +61 -196
- package/api/assetRelationTypeManagement.agravity.ts +70 -215
- package/api/assetVersioning.agravity.ts +105 -300
- package/api/authenticationManagement.agravity.ts +137 -392
- package/api/collectionManagement.agravity.ts +217 -376
- package/api/collectionShareManagement.agravity.ts +59 -190
- package/api/collectionTypeItemBlueprintManagement.agravity.ts +47 -162
- package/api/collectionTypeManagement.agravity.ts +91 -270
- package/api/commentsManagement.agravity.ts +48 -157
- package/api/configurationManagement.agravity.ts +53 -180
- package/api/dashboardWidgetManagement.agravity.ts +56 -181
- package/api/dataImportExportManagement.agravity.ts +58 -203
- package/api/downloadFormatManagement.agravity.ts +70 -215
- package/api/downloadZip.agravity.ts +37 -132
- package/api/generalManagement.agravity.ts +64 -229
- package/api/helperTools.agravity.ts +214 -404
- package/api/historyEntryManagement.agravity.ts +16 -85
- package/api/iccProfileManagement.agravity.ts +11 -78
- package/api/listBlobs.agravity.ts +18 -99
- package/api/listQueues.agravity.ts +11 -78
- package/api/listTables.agravity.ts +11 -78
- package/api/notificationManagement.agravity.ts +267 -0
- package/api/permissionsManagement.agravity.ts +44 -153
- package/api/portalManagement.agravity.ts +88 -253
- package/api/portalsUsersManagement.agravity.ts +55 -178
- package/api/publishing.agravity.ts +13 -84
- package/api/quickshareManagement.agravity.ts +67 -214
- package/api/savedSearchManagement.agravity.ts +37 -140
- package/api/searchManagement.agravity.ts +102 -327
- package/api/searchSettingsOperations.agravity.ts +187 -0
- package/api/secureUpload.agravity.ts +68 -209
- package/api/signalRConnectionManagement.agravity.ts +26 -109
- package/api/staticDefinedListManagement.agravity.ts +60 -193
- package/api/stockImport.agravity.ts +31 -122
- package/api/structureImport.agravity.ts +11 -78
- package/api/translationManagement.agravity.ts +86 -229
- package/api/webAppData.agravity.ts +48 -157
- package/api/widgetLayoutManagement.agravity.ts +22 -103
- package/api/wordpressManagement.agravity.ts +34 -131
- package/api/workspaceManagement.agravity.ts +77 -236
- package/api.base.service.ts +78 -0
- package/configuration.ts +33 -17
- package/index.ts +1 -0
- package/model/{aiGroupEntity.agravity.ts → aiAsset.agravity.ts} +2 -3
- package/model/aiFieldGeneration.agravity.ts +1 -5
- package/model/{aiGroup.agravity.ts → aiModelDeployment.agravity.ts} +6 -5
- package/model/aiSettings.agravity.ts +4 -3
- package/model/aiTypeSettings.agravity.ts +17 -0
- package/model/asset.agravity.ts +6 -6
- package/model/assetBlob.agravity.ts +15 -15
- package/model/assetIconRule.agravity.ts +1 -1
- package/model/assetRelationType.agravity.ts +1 -1
- package/model/azureIdentity.agravity.ts +7 -7
- package/model/collTypeItem.agravity.ts +1 -1
- package/model/collTypeItemBlueprint.agravity.ts +1 -1
- package/model/collection.agravity.ts +6 -6
- package/model/collectionType.agravity.ts +6 -6
- package/model/collectionUDL.agravity.ts +1 -1
- package/model/comment.agravity.ts +1 -0
- package/model/dashboardWidget.agravity.ts +1 -1
- package/model/downloadFormat.agravity.ts +1 -1
- package/model/downloadZipRequest.agravity.ts +6 -6
- package/model/downloadZipStatus.agravity.ts +6 -6
- package/model/entityIdName.agravity.ts +1 -1
- package/model/entityTranslations.agravity.ts +1 -1
- package/model/groupAllAppData.agravity.ts +1 -1
- package/model/historyEntry.agravity.ts +16 -30
- package/model/models.ts +5 -2
- package/model/notificationSettingDto.agravity.ts +18 -0
- package/model/permissionChange.agravity.ts +7 -7
- package/model/permissionEntity.agravity.ts +5 -5
- package/model/portalAuthentication.agravity.ts +7 -7
- package/model/portalTheme.agravity.ts +1 -1
- package/model/publishedAsset.agravity.ts +1 -1
- package/model/savedSearch.agravity.ts +1 -1
- package/model/searchSettings.agravity.ts +26 -0
- package/model/staticDefinedList.agravity.ts +1 -1
- package/model/uiTutorials.agravity.ts +4 -4
- package/model/whereParam.agravity.ts +17 -17
- package/model/workspace.agravity.ts +1 -1
- package/package.json +5 -4
- package/provide-api.ts +15 -0
- package/tsconfig.json +2 -0
- package/api/aISettingsManagement.agravity.ts +0 -264
|
@@ -24,6 +24,7 @@ import { QuickShareFull } from '../model/quickShareFull.agravity';
|
|
|
24
24
|
// @ts-ignore
|
|
25
25
|
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
26
26
|
import { AgravityConfiguration } from '../configuration';
|
|
27
|
+
import { BaseService } from '../api.base.service';
|
|
27
28
|
|
|
28
29
|
export interface HttpQuickShareGetByIdRequestParams {
|
|
29
30
|
/** The ID of the quick share. */
|
|
@@ -66,67 +67,13 @@ export interface HttpQuickSharesUpdateByIdRequestParams {
|
|
|
66
67
|
@Injectable({
|
|
67
68
|
providedIn: 'root'
|
|
68
69
|
})
|
|
69
|
-
export class QuickshareManagementService {
|
|
70
|
-
protected basePath = 'http://localhost:7071/api';
|
|
71
|
-
public defaultHeaders = new HttpHeaders();
|
|
72
|
-
public configuration = new AgravityConfiguration();
|
|
73
|
-
public encoder: HttpParameterCodec;
|
|
74
|
-
|
|
70
|
+
export class QuickshareManagementService extends BaseService {
|
|
75
71
|
constructor(
|
|
76
72
|
protected httpClient: HttpClient,
|
|
77
73
|
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
|
78
|
-
@Optional() configuration
|
|
74
|
+
@Optional() configuration?: AgravityConfiguration
|
|
79
75
|
) {
|
|
80
|
-
|
|
81
|
-
this.configuration = configuration;
|
|
82
|
-
}
|
|
83
|
-
if (typeof this.configuration.basePath !== 'string') {
|
|
84
|
-
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
85
|
-
if (firstBasePath != undefined) {
|
|
86
|
-
basePath = firstBasePath;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
if (typeof basePath !== 'string') {
|
|
90
|
-
basePath = this.basePath;
|
|
91
|
-
}
|
|
92
|
-
this.configuration.basePath = basePath;
|
|
93
|
-
}
|
|
94
|
-
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
// @ts-ignore
|
|
98
|
-
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
99
|
-
if (typeof value === 'object' && value instanceof Date === false) {
|
|
100
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
101
|
-
} else {
|
|
102
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
103
|
-
}
|
|
104
|
-
return httpParams;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
|
|
108
|
-
if (value == null) {
|
|
109
|
-
return httpParams;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
if (typeof value === 'object') {
|
|
113
|
-
if (Array.isArray(value)) {
|
|
114
|
-
(value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
|
|
115
|
-
} else if (value instanceof Date) {
|
|
116
|
-
if (key != null) {
|
|
117
|
-
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
|
|
118
|
-
} else {
|
|
119
|
-
throw Error('key may not be null if value is Date');
|
|
120
|
-
}
|
|
121
|
-
} else {
|
|
122
|
-
Object.keys(value).forEach((k) => (httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k)));
|
|
123
|
-
}
|
|
124
|
-
} else if (key != null) {
|
|
125
|
-
httpParams = httpParams.append(key, value);
|
|
126
|
-
} else {
|
|
127
|
-
throw Error('key may not be null if value is not object or array');
|
|
128
|
-
}
|
|
129
|
-
return httpParams;
|
|
76
|
+
super(basePath, configuration);
|
|
130
77
|
}
|
|
131
78
|
|
|
132
79
|
/**
|
|
@@ -136,25 +83,25 @@ export class QuickshareManagementService {
|
|
|
136
83
|
* @param reportProgress flag to report request and response progress.
|
|
137
84
|
*/
|
|
138
85
|
public httpQuickShareGetById(
|
|
139
|
-
requestParameters
|
|
86
|
+
requestParameters: HttpQuickShareGetByIdRequestParams,
|
|
140
87
|
observe?: 'body',
|
|
141
88
|
reportProgress?: boolean,
|
|
142
89
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
143
90
|
): Observable<QuickShareFull>;
|
|
144
91
|
public httpQuickShareGetById(
|
|
145
|
-
requestParameters
|
|
92
|
+
requestParameters: HttpQuickShareGetByIdRequestParams,
|
|
146
93
|
observe?: 'response',
|
|
147
94
|
reportProgress?: boolean,
|
|
148
95
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
149
96
|
): Observable<HttpResponse<QuickShareFull>>;
|
|
150
97
|
public httpQuickShareGetById(
|
|
151
|
-
requestParameters
|
|
98
|
+
requestParameters: HttpQuickShareGetByIdRequestParams,
|
|
152
99
|
observe?: 'events',
|
|
153
100
|
reportProgress?: boolean,
|
|
154
101
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
155
102
|
): Observable<HttpEvent<QuickShareFull>>;
|
|
156
103
|
public httpQuickShareGetById(
|
|
157
|
-
requestParameters
|
|
104
|
+
requestParameters: HttpQuickShareGetByIdRequestParams,
|
|
158
105
|
observe: any = 'body',
|
|
159
106
|
reportProgress: boolean = false,
|
|
160
107
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -168,44 +115,23 @@ export class QuickshareManagementService {
|
|
|
168
115
|
const orderby = requestParameters?.orderby;
|
|
169
116
|
|
|
170
117
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
if (limit !== undefined && limit !== null) {
|
|
175
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>limit, 'limit');
|
|
176
|
-
}
|
|
177
|
-
if (orderby !== undefined && orderby !== null) {
|
|
178
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>orderby, 'orderby');
|
|
179
|
-
}
|
|
118
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>continuationToken, 'continuation_token');
|
|
119
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>limit, 'limit');
|
|
120
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>orderby, 'orderby');
|
|
180
121
|
|
|
181
122
|
let localVarHeaders = this.defaultHeaders;
|
|
182
123
|
|
|
183
|
-
let localVarCredential: string | undefined;
|
|
184
124
|
// authentication (msal_auth) required
|
|
185
|
-
|
|
186
|
-
if (localVarCredential) {
|
|
187
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
188
|
-
}
|
|
125
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
189
126
|
|
|
190
|
-
|
|
191
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
192
|
-
// to determine the Accept header
|
|
193
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
194
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
195
|
-
}
|
|
127
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
196
128
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
197
129
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
198
130
|
}
|
|
199
131
|
|
|
200
|
-
|
|
201
|
-
if (localVarHttpContext === undefined) {
|
|
202
|
-
localVarHttpContext = new HttpContext();
|
|
203
|
-
}
|
|
132
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
204
133
|
|
|
205
|
-
|
|
206
|
-
if (localVarTransferCache === undefined) {
|
|
207
|
-
localVarTransferCache = true;
|
|
208
|
-
}
|
|
134
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
209
135
|
|
|
210
136
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
211
137
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -219,11 +145,12 @@ export class QuickshareManagementService {
|
|
|
219
145
|
}
|
|
220
146
|
|
|
221
147
|
let localVarPath = `/quickshares/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
222
|
-
|
|
148
|
+
const { basePath, withCredentials } = this.configuration;
|
|
149
|
+
return this.httpClient.request<QuickShareFull>('get', `${basePath}${localVarPath}`, {
|
|
223
150
|
context: localVarHttpContext,
|
|
224
151
|
params: localVarQueryParameters,
|
|
225
152
|
responseType: <any>responseType_,
|
|
226
|
-
withCredentials:
|
|
153
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
227
154
|
headers: localVarHeaders,
|
|
228
155
|
observe: observe,
|
|
229
156
|
transferCache: localVarTransferCache,
|
|
@@ -238,25 +165,25 @@ export class QuickshareManagementService {
|
|
|
238
165
|
* @param reportProgress flag to report request and response progress.
|
|
239
166
|
*/
|
|
240
167
|
public httpQuickSharesCreate(
|
|
241
|
-
requestParameters
|
|
168
|
+
requestParameters: HttpQuickSharesCreateRequestParams,
|
|
242
169
|
observe?: 'body',
|
|
243
170
|
reportProgress?: boolean,
|
|
244
171
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
245
172
|
): Observable<QuickShare>;
|
|
246
173
|
public httpQuickSharesCreate(
|
|
247
|
-
requestParameters
|
|
174
|
+
requestParameters: HttpQuickSharesCreateRequestParams,
|
|
248
175
|
observe?: 'response',
|
|
249
176
|
reportProgress?: boolean,
|
|
250
177
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
251
178
|
): Observable<HttpResponse<QuickShare>>;
|
|
252
179
|
public httpQuickSharesCreate(
|
|
253
|
-
requestParameters
|
|
180
|
+
requestParameters: HttpQuickSharesCreateRequestParams,
|
|
254
181
|
observe?: 'events',
|
|
255
182
|
reportProgress?: boolean,
|
|
256
183
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
257
184
|
): Observable<HttpEvent<QuickShare>>;
|
|
258
185
|
public httpQuickSharesCreate(
|
|
259
|
-
requestParameters
|
|
186
|
+
requestParameters: HttpQuickSharesCreateRequestParams,
|
|
260
187
|
observe: any = 'body',
|
|
261
188
|
reportProgress: boolean = false,
|
|
262
189
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -268,32 +195,17 @@ export class QuickshareManagementService {
|
|
|
268
195
|
|
|
269
196
|
let localVarHeaders = this.defaultHeaders;
|
|
270
197
|
|
|
271
|
-
let localVarCredential: string | undefined;
|
|
272
198
|
// authentication (msal_auth) required
|
|
273
|
-
|
|
274
|
-
if (localVarCredential) {
|
|
275
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
276
|
-
}
|
|
199
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
277
200
|
|
|
278
|
-
|
|
279
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
280
|
-
// to determine the Accept header
|
|
281
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
282
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
283
|
-
}
|
|
201
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
284
202
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
285
203
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
286
204
|
}
|
|
287
205
|
|
|
288
|
-
|
|
289
|
-
if (localVarHttpContext === undefined) {
|
|
290
|
-
localVarHttpContext = new HttpContext();
|
|
291
|
-
}
|
|
206
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
292
207
|
|
|
293
|
-
|
|
294
|
-
if (localVarTransferCache === undefined) {
|
|
295
|
-
localVarTransferCache = true;
|
|
296
|
-
}
|
|
208
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
297
209
|
|
|
298
210
|
// to determine the Content-Type header
|
|
299
211
|
const consumes: string[] = ['application/json'];
|
|
@@ -314,11 +226,12 @@ export class QuickshareManagementService {
|
|
|
314
226
|
}
|
|
315
227
|
|
|
316
228
|
let localVarPath = `/quickshares`;
|
|
317
|
-
|
|
229
|
+
const { basePath, withCredentials } = this.configuration;
|
|
230
|
+
return this.httpClient.request<QuickShare>('post', `${basePath}${localVarPath}`, {
|
|
318
231
|
context: localVarHttpContext,
|
|
319
232
|
body: quickShare,
|
|
320
233
|
responseType: <any>responseType_,
|
|
321
|
-
withCredentials:
|
|
234
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
322
235
|
headers: localVarHeaders,
|
|
323
236
|
observe: observe,
|
|
324
237
|
transferCache: localVarTransferCache,
|
|
@@ -359,38 +272,21 @@ export class QuickshareManagementService {
|
|
|
359
272
|
const userid = requestParameters?.userid;
|
|
360
273
|
|
|
361
274
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
362
|
-
|
|
363
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>userid, 'userid');
|
|
364
|
-
}
|
|
275
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>userid, 'userid');
|
|
365
276
|
|
|
366
277
|
let localVarHeaders = this.defaultHeaders;
|
|
367
278
|
|
|
368
|
-
let localVarCredential: string | undefined;
|
|
369
279
|
// authentication (msal_auth) required
|
|
370
|
-
|
|
371
|
-
if (localVarCredential) {
|
|
372
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
373
|
-
}
|
|
280
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
374
281
|
|
|
375
|
-
|
|
376
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
377
|
-
// to determine the Accept header
|
|
378
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
379
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
380
|
-
}
|
|
282
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
381
283
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
382
284
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
383
285
|
}
|
|
384
286
|
|
|
385
|
-
|
|
386
|
-
if (localVarHttpContext === undefined) {
|
|
387
|
-
localVarHttpContext = new HttpContext();
|
|
388
|
-
}
|
|
287
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
389
288
|
|
|
390
|
-
|
|
391
|
-
if (localVarTransferCache === undefined) {
|
|
392
|
-
localVarTransferCache = true;
|
|
393
|
-
}
|
|
289
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
394
290
|
|
|
395
291
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
396
292
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -404,11 +300,12 @@ export class QuickshareManagementService {
|
|
|
404
300
|
}
|
|
405
301
|
|
|
406
302
|
let localVarPath = `/quickshares`;
|
|
407
|
-
|
|
303
|
+
const { basePath, withCredentials } = this.configuration;
|
|
304
|
+
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`, {
|
|
408
305
|
context: localVarHttpContext,
|
|
409
306
|
params: localVarQueryParameters,
|
|
410
307
|
responseType: <any>responseType_,
|
|
411
|
-
withCredentials:
|
|
308
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
412
309
|
headers: localVarHeaders,
|
|
413
310
|
observe: observe,
|
|
414
311
|
transferCache: localVarTransferCache,
|
|
@@ -423,25 +320,25 @@ export class QuickshareManagementService {
|
|
|
423
320
|
* @param reportProgress flag to report request and response progress.
|
|
424
321
|
*/
|
|
425
322
|
public httpQuickSharesDeleteById(
|
|
426
|
-
requestParameters
|
|
323
|
+
requestParameters: HttpQuickSharesDeleteByIdRequestParams,
|
|
427
324
|
observe?: 'body',
|
|
428
325
|
reportProgress?: boolean,
|
|
429
326
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
430
327
|
): Observable<any>;
|
|
431
328
|
public httpQuickSharesDeleteById(
|
|
432
|
-
requestParameters
|
|
329
|
+
requestParameters: HttpQuickSharesDeleteByIdRequestParams,
|
|
433
330
|
observe?: 'response',
|
|
434
331
|
reportProgress?: boolean,
|
|
435
332
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
436
333
|
): Observable<HttpResponse<any>>;
|
|
437
334
|
public httpQuickSharesDeleteById(
|
|
438
|
-
requestParameters
|
|
335
|
+
requestParameters: HttpQuickSharesDeleteByIdRequestParams,
|
|
439
336
|
observe?: 'events',
|
|
440
337
|
reportProgress?: boolean,
|
|
441
338
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
442
339
|
): Observable<HttpEvent<any>>;
|
|
443
340
|
public httpQuickSharesDeleteById(
|
|
444
|
-
requestParameters
|
|
341
|
+
requestParameters: HttpQuickSharesDeleteByIdRequestParams,
|
|
445
342
|
observe: any = 'body',
|
|
446
343
|
reportProgress: boolean = false,
|
|
447
344
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -453,32 +350,17 @@ export class QuickshareManagementService {
|
|
|
453
350
|
|
|
454
351
|
let localVarHeaders = this.defaultHeaders;
|
|
455
352
|
|
|
456
|
-
let localVarCredential: string | undefined;
|
|
457
353
|
// authentication (msal_auth) required
|
|
458
|
-
|
|
459
|
-
if (localVarCredential) {
|
|
460
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
461
|
-
}
|
|
354
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
462
355
|
|
|
463
|
-
|
|
464
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
465
|
-
// to determine the Accept header
|
|
466
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
467
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
468
|
-
}
|
|
356
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
469
357
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
470
358
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
471
359
|
}
|
|
472
360
|
|
|
473
|
-
|
|
474
|
-
if (localVarHttpContext === undefined) {
|
|
475
|
-
localVarHttpContext = new HttpContext();
|
|
476
|
-
}
|
|
361
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
477
362
|
|
|
478
|
-
|
|
479
|
-
if (localVarTransferCache === undefined) {
|
|
480
|
-
localVarTransferCache = true;
|
|
481
|
-
}
|
|
363
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
482
364
|
|
|
483
365
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
484
366
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -492,10 +374,11 @@ export class QuickshareManagementService {
|
|
|
492
374
|
}
|
|
493
375
|
|
|
494
376
|
let localVarPath = `/quickshares/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
495
|
-
|
|
377
|
+
const { basePath, withCredentials } = this.configuration;
|
|
378
|
+
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`, {
|
|
496
379
|
context: localVarHttpContext,
|
|
497
380
|
responseType: <any>responseType_,
|
|
498
|
-
withCredentials:
|
|
381
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
499
382
|
headers: localVarHeaders,
|
|
500
383
|
observe: observe,
|
|
501
384
|
transferCache: localVarTransferCache,
|
|
@@ -536,38 +419,21 @@ export class QuickshareManagementService {
|
|
|
536
419
|
const userid = requestParameters?.userid;
|
|
537
420
|
|
|
538
421
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
539
|
-
|
|
540
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>userid, 'userid');
|
|
541
|
-
}
|
|
422
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>userid, 'userid');
|
|
542
423
|
|
|
543
424
|
let localVarHeaders = this.defaultHeaders;
|
|
544
425
|
|
|
545
|
-
let localVarCredential: string | undefined;
|
|
546
426
|
// authentication (msal_auth) required
|
|
547
|
-
|
|
548
|
-
if (localVarCredential) {
|
|
549
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
550
|
-
}
|
|
427
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
551
428
|
|
|
552
|
-
|
|
553
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
554
|
-
// to determine the Accept header
|
|
555
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
556
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
557
|
-
}
|
|
429
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
558
430
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
559
431
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
560
432
|
}
|
|
561
433
|
|
|
562
|
-
|
|
563
|
-
if (localVarHttpContext === undefined) {
|
|
564
|
-
localVarHttpContext = new HttpContext();
|
|
565
|
-
}
|
|
434
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
566
435
|
|
|
567
|
-
|
|
568
|
-
if (localVarTransferCache === undefined) {
|
|
569
|
-
localVarTransferCache = true;
|
|
570
|
-
}
|
|
436
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
571
437
|
|
|
572
438
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
573
439
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -581,11 +447,12 @@ export class QuickshareManagementService {
|
|
|
581
447
|
}
|
|
582
448
|
|
|
583
449
|
let localVarPath = `/quickshares`;
|
|
584
|
-
|
|
450
|
+
const { basePath, withCredentials } = this.configuration;
|
|
451
|
+
return this.httpClient.request<Array<QuickShare>>('get', `${basePath}${localVarPath}`, {
|
|
585
452
|
context: localVarHttpContext,
|
|
586
453
|
params: localVarQueryParameters,
|
|
587
454
|
responseType: <any>responseType_,
|
|
588
|
-
withCredentials:
|
|
455
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
589
456
|
headers: localVarHeaders,
|
|
590
457
|
observe: observe,
|
|
591
458
|
transferCache: localVarTransferCache,
|
|
@@ -600,25 +467,25 @@ export class QuickshareManagementService {
|
|
|
600
467
|
* @param reportProgress flag to report request and response progress.
|
|
601
468
|
*/
|
|
602
469
|
public httpQuickSharesUpdateById(
|
|
603
|
-
requestParameters
|
|
470
|
+
requestParameters: HttpQuickSharesUpdateByIdRequestParams,
|
|
604
471
|
observe?: 'body',
|
|
605
472
|
reportProgress?: boolean,
|
|
606
473
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
607
474
|
): Observable<QuickShare>;
|
|
608
475
|
public httpQuickSharesUpdateById(
|
|
609
|
-
requestParameters
|
|
476
|
+
requestParameters: HttpQuickSharesUpdateByIdRequestParams,
|
|
610
477
|
observe?: 'response',
|
|
611
478
|
reportProgress?: boolean,
|
|
612
479
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
613
480
|
): Observable<HttpResponse<QuickShare>>;
|
|
614
481
|
public httpQuickSharesUpdateById(
|
|
615
|
-
requestParameters
|
|
482
|
+
requestParameters: HttpQuickSharesUpdateByIdRequestParams,
|
|
616
483
|
observe?: 'events',
|
|
617
484
|
reportProgress?: boolean,
|
|
618
485
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
619
486
|
): Observable<HttpEvent<QuickShare>>;
|
|
620
487
|
public httpQuickSharesUpdateById(
|
|
621
|
-
requestParameters
|
|
488
|
+
requestParameters: HttpQuickSharesUpdateByIdRequestParams,
|
|
622
489
|
observe: any = 'body',
|
|
623
490
|
reportProgress: boolean = false,
|
|
624
491
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -634,32 +501,17 @@ export class QuickshareManagementService {
|
|
|
634
501
|
|
|
635
502
|
let localVarHeaders = this.defaultHeaders;
|
|
636
503
|
|
|
637
|
-
let localVarCredential: string | undefined;
|
|
638
504
|
// authentication (msal_auth) required
|
|
639
|
-
|
|
640
|
-
if (localVarCredential) {
|
|
641
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
642
|
-
}
|
|
505
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
643
506
|
|
|
644
|
-
|
|
645
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
646
|
-
// to determine the Accept header
|
|
647
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
648
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
649
|
-
}
|
|
507
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
650
508
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
651
509
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
652
510
|
}
|
|
653
511
|
|
|
654
|
-
|
|
655
|
-
if (localVarHttpContext === undefined) {
|
|
656
|
-
localVarHttpContext = new HttpContext();
|
|
657
|
-
}
|
|
512
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
658
513
|
|
|
659
|
-
|
|
660
|
-
if (localVarTransferCache === undefined) {
|
|
661
|
-
localVarTransferCache = true;
|
|
662
|
-
}
|
|
514
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
663
515
|
|
|
664
516
|
// to determine the Content-Type header
|
|
665
517
|
const consumes: string[] = ['application/json'];
|
|
@@ -680,11 +532,12 @@ export class QuickshareManagementService {
|
|
|
680
532
|
}
|
|
681
533
|
|
|
682
534
|
let localVarPath = `/quickshares/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
683
|
-
|
|
535
|
+
const { basePath, withCredentials } = this.configuration;
|
|
536
|
+
return this.httpClient.request<QuickShare>('post', `${basePath}${localVarPath}`, {
|
|
684
537
|
context: localVarHttpContext,
|
|
685
538
|
body: quickShare,
|
|
686
539
|
responseType: <any>responseType_,
|
|
687
|
-
withCredentials:
|
|
540
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
688
541
|
headers: localVarHeaders,
|
|
689
542
|
observe: observe,
|
|
690
543
|
transferCache: localVarTransferCache,
|