@agravity/private 9.4.0 → 10.0.1
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/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 { SharedCollectionFull } from '../model/sharedCollectionFull.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 HttpSharedCollectionsCreateRequestParams {
|
|
29
30
|
/** This creates / adds an unique shared collection ID and adds the information to the collection (in DB). */
|
|
@@ -63,67 +64,13 @@ export interface HttpSharedCollectionsUpdateByIdRequestParams {
|
|
|
63
64
|
@Injectable({
|
|
64
65
|
providedIn: 'root'
|
|
65
66
|
})
|
|
66
|
-
export class CollectionShareManagementService {
|
|
67
|
-
protected basePath = 'http://localhost:7071/api';
|
|
68
|
-
public defaultHeaders = new HttpHeaders();
|
|
69
|
-
public configuration = new AgravityConfiguration();
|
|
70
|
-
public encoder: HttpParameterCodec;
|
|
71
|
-
|
|
67
|
+
export class CollectionShareManagementService extends BaseService {
|
|
72
68
|
constructor(
|
|
73
69
|
protected httpClient: HttpClient,
|
|
74
70
|
@Optional() @Inject(BASE_PATH) basePath: string | string[],
|
|
75
|
-
@Optional() configuration
|
|
71
|
+
@Optional() configuration?: AgravityConfiguration
|
|
76
72
|
) {
|
|
77
|
-
|
|
78
|
-
this.configuration = configuration;
|
|
79
|
-
}
|
|
80
|
-
if (typeof this.configuration.basePath !== 'string') {
|
|
81
|
-
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
82
|
-
if (firstBasePath != undefined) {
|
|
83
|
-
basePath = firstBasePath;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
if (typeof basePath !== 'string') {
|
|
87
|
-
basePath = this.basePath;
|
|
88
|
-
}
|
|
89
|
-
this.configuration.basePath = basePath;
|
|
90
|
-
}
|
|
91
|
-
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// @ts-ignore
|
|
95
|
-
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
|
|
96
|
-
if (typeof value === 'object' && value instanceof Date === false) {
|
|
97
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
98
|
-
} else {
|
|
99
|
-
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
100
|
-
}
|
|
101
|
-
return httpParams;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
private addToHttpParamsRecursive(httpParams: HttpParams, value?: any, key?: string): HttpParams {
|
|
105
|
-
if (value == null) {
|
|
106
|
-
return httpParams;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
if (typeof value === 'object') {
|
|
110
|
-
if (Array.isArray(value)) {
|
|
111
|
-
(value as any[]).forEach((elem) => (httpParams = this.addToHttpParamsRecursive(httpParams, elem, key)));
|
|
112
|
-
} else if (value instanceof Date) {
|
|
113
|
-
if (key != null) {
|
|
114
|
-
httpParams = httpParams.append(key, (value as Date).toISOString().substring(0, 10));
|
|
115
|
-
} else {
|
|
116
|
-
throw Error('key may not be null if value is Date');
|
|
117
|
-
}
|
|
118
|
-
} else {
|
|
119
|
-
Object.keys(value).forEach((k) => (httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k)));
|
|
120
|
-
}
|
|
121
|
-
} else if (key != null) {
|
|
122
|
-
httpParams = httpParams.append(key, value);
|
|
123
|
-
} else {
|
|
124
|
-
throw Error('key may not be null if value is not object or array');
|
|
125
|
-
}
|
|
126
|
-
return httpParams;
|
|
73
|
+
super(basePath, configuration);
|
|
127
74
|
}
|
|
128
75
|
|
|
129
76
|
/**
|
|
@@ -133,25 +80,25 @@ export class CollectionShareManagementService {
|
|
|
133
80
|
* @param reportProgress flag to report request and response progress.
|
|
134
81
|
*/
|
|
135
82
|
public httpSharedCollectionsCreate(
|
|
136
|
-
requestParameters
|
|
83
|
+
requestParameters: HttpSharedCollectionsCreateRequestParams,
|
|
137
84
|
observe?: 'body',
|
|
138
85
|
reportProgress?: boolean,
|
|
139
86
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
140
87
|
): Observable<SharedCollection>;
|
|
141
88
|
public httpSharedCollectionsCreate(
|
|
142
|
-
requestParameters
|
|
89
|
+
requestParameters: HttpSharedCollectionsCreateRequestParams,
|
|
143
90
|
observe?: 'response',
|
|
144
91
|
reportProgress?: boolean,
|
|
145
92
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
146
93
|
): Observable<HttpResponse<SharedCollection>>;
|
|
147
94
|
public httpSharedCollectionsCreate(
|
|
148
|
-
requestParameters
|
|
95
|
+
requestParameters: HttpSharedCollectionsCreateRequestParams,
|
|
149
96
|
observe?: 'events',
|
|
150
97
|
reportProgress?: boolean,
|
|
151
98
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
152
99
|
): Observable<HttpEvent<SharedCollection>>;
|
|
153
100
|
public httpSharedCollectionsCreate(
|
|
154
|
-
requestParameters
|
|
101
|
+
requestParameters: HttpSharedCollectionsCreateRequestParams,
|
|
155
102
|
observe: any = 'body',
|
|
156
103
|
reportProgress: boolean = false,
|
|
157
104
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -163,32 +110,17 @@ export class CollectionShareManagementService {
|
|
|
163
110
|
|
|
164
111
|
let localVarHeaders = this.defaultHeaders;
|
|
165
112
|
|
|
166
|
-
let localVarCredential: string | undefined;
|
|
167
113
|
// authentication (msal_auth) required
|
|
168
|
-
|
|
169
|
-
if (localVarCredential) {
|
|
170
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
171
|
-
}
|
|
114
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
172
115
|
|
|
173
|
-
|
|
174
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
175
|
-
// to determine the Accept header
|
|
176
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
177
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
178
|
-
}
|
|
116
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
179
117
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
180
118
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
181
119
|
}
|
|
182
120
|
|
|
183
|
-
|
|
184
|
-
if (localVarHttpContext === undefined) {
|
|
185
|
-
localVarHttpContext = new HttpContext();
|
|
186
|
-
}
|
|
121
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
187
122
|
|
|
188
|
-
|
|
189
|
-
if (localVarTransferCache === undefined) {
|
|
190
|
-
localVarTransferCache = true;
|
|
191
|
-
}
|
|
123
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
192
124
|
|
|
193
125
|
// to determine the Content-Type header
|
|
194
126
|
const consumes: string[] = ['application/json'];
|
|
@@ -209,11 +141,12 @@ export class CollectionShareManagementService {
|
|
|
209
141
|
}
|
|
210
142
|
|
|
211
143
|
let localVarPath = `/shared`;
|
|
212
|
-
|
|
144
|
+
const { basePath, withCredentials } = this.configuration;
|
|
145
|
+
return this.httpClient.request<SharedCollection>('post', `${basePath}${localVarPath}`, {
|
|
213
146
|
context: localVarHttpContext,
|
|
214
147
|
body: sharedCollection,
|
|
215
148
|
responseType: <any>responseType_,
|
|
216
|
-
withCredentials:
|
|
149
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
217
150
|
headers: localVarHeaders,
|
|
218
151
|
observe: observe,
|
|
219
152
|
transferCache: localVarTransferCache,
|
|
@@ -228,25 +161,25 @@ export class CollectionShareManagementService {
|
|
|
228
161
|
* @param reportProgress flag to report request and response progress.
|
|
229
162
|
*/
|
|
230
163
|
public httpSharedCollectionsDeleteById(
|
|
231
|
-
requestParameters
|
|
164
|
+
requestParameters: HttpSharedCollectionsDeleteByIdRequestParams,
|
|
232
165
|
observe?: 'body',
|
|
233
166
|
reportProgress?: boolean,
|
|
234
167
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
235
168
|
): Observable<any>;
|
|
236
169
|
public httpSharedCollectionsDeleteById(
|
|
237
|
-
requestParameters
|
|
170
|
+
requestParameters: HttpSharedCollectionsDeleteByIdRequestParams,
|
|
238
171
|
observe?: 'response',
|
|
239
172
|
reportProgress?: boolean,
|
|
240
173
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
241
174
|
): Observable<HttpResponse<any>>;
|
|
242
175
|
public httpSharedCollectionsDeleteById(
|
|
243
|
-
requestParameters
|
|
176
|
+
requestParameters: HttpSharedCollectionsDeleteByIdRequestParams,
|
|
244
177
|
observe?: 'events',
|
|
245
178
|
reportProgress?: boolean,
|
|
246
179
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
247
180
|
): Observable<HttpEvent<any>>;
|
|
248
181
|
public httpSharedCollectionsDeleteById(
|
|
249
|
-
requestParameters
|
|
182
|
+
requestParameters: HttpSharedCollectionsDeleteByIdRequestParams,
|
|
250
183
|
observe: any = 'body',
|
|
251
184
|
reportProgress: boolean = false,
|
|
252
185
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -258,32 +191,17 @@ export class CollectionShareManagementService {
|
|
|
258
191
|
|
|
259
192
|
let localVarHeaders = this.defaultHeaders;
|
|
260
193
|
|
|
261
|
-
let localVarCredential: string | undefined;
|
|
262
194
|
// authentication (msal_auth) required
|
|
263
|
-
|
|
264
|
-
if (localVarCredential) {
|
|
265
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
266
|
-
}
|
|
195
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
267
196
|
|
|
268
|
-
|
|
269
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
270
|
-
// to determine the Accept header
|
|
271
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
272
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
273
|
-
}
|
|
197
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
274
198
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
275
199
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
276
200
|
}
|
|
277
201
|
|
|
278
|
-
|
|
279
|
-
if (localVarHttpContext === undefined) {
|
|
280
|
-
localVarHttpContext = new HttpContext();
|
|
281
|
-
}
|
|
202
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
282
203
|
|
|
283
|
-
|
|
284
|
-
if (localVarTransferCache === undefined) {
|
|
285
|
-
localVarTransferCache = true;
|
|
286
|
-
}
|
|
204
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
287
205
|
|
|
288
206
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
289
207
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -297,10 +215,11 @@ export class CollectionShareManagementService {
|
|
|
297
215
|
}
|
|
298
216
|
|
|
299
217
|
let localVarPath = `/shared/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
300
|
-
|
|
218
|
+
const { basePath, withCredentials } = this.configuration;
|
|
219
|
+
return this.httpClient.request<any>('delete', `${basePath}${localVarPath}`, {
|
|
301
220
|
context: localVarHttpContext,
|
|
302
221
|
responseType: <any>responseType_,
|
|
303
|
-
withCredentials:
|
|
222
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
304
223
|
headers: localVarHeaders,
|
|
305
224
|
observe: observe,
|
|
306
225
|
transferCache: localVarTransferCache,
|
|
@@ -341,38 +260,21 @@ export class CollectionShareManagementService {
|
|
|
341
260
|
const collectionid = requestParameters?.collectionid;
|
|
342
261
|
|
|
343
262
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
344
|
-
|
|
345
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>collectionid, 'collectionid');
|
|
346
|
-
}
|
|
263
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>collectionid, 'collectionid');
|
|
347
264
|
|
|
348
265
|
let localVarHeaders = this.defaultHeaders;
|
|
349
266
|
|
|
350
|
-
let localVarCredential: string | undefined;
|
|
351
267
|
// authentication (msal_auth) required
|
|
352
|
-
|
|
353
|
-
if (localVarCredential) {
|
|
354
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
355
|
-
}
|
|
268
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
356
269
|
|
|
357
|
-
|
|
358
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
359
|
-
// to determine the Accept header
|
|
360
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
361
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
362
|
-
}
|
|
270
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
363
271
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
364
272
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
365
273
|
}
|
|
366
274
|
|
|
367
|
-
|
|
368
|
-
if (localVarHttpContext === undefined) {
|
|
369
|
-
localVarHttpContext = new HttpContext();
|
|
370
|
-
}
|
|
275
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
371
276
|
|
|
372
|
-
|
|
373
|
-
if (localVarTransferCache === undefined) {
|
|
374
|
-
localVarTransferCache = true;
|
|
375
|
-
}
|
|
277
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
376
278
|
|
|
377
279
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
378
280
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -386,11 +288,12 @@ export class CollectionShareManagementService {
|
|
|
386
288
|
}
|
|
387
289
|
|
|
388
290
|
let localVarPath = `/shared`;
|
|
389
|
-
|
|
291
|
+
const { basePath, withCredentials } = this.configuration;
|
|
292
|
+
return this.httpClient.request<Array<SharedCollection>>('get', `${basePath}${localVarPath}`, {
|
|
390
293
|
context: localVarHttpContext,
|
|
391
294
|
params: localVarQueryParameters,
|
|
392
295
|
responseType: <any>responseType_,
|
|
393
|
-
withCredentials:
|
|
296
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
394
297
|
headers: localVarHeaders,
|
|
395
298
|
observe: observe,
|
|
396
299
|
transferCache: localVarTransferCache,
|
|
@@ -405,25 +308,25 @@ export class CollectionShareManagementService {
|
|
|
405
308
|
* @param reportProgress flag to report request and response progress.
|
|
406
309
|
*/
|
|
407
310
|
public httpSharedCollectionsGetById(
|
|
408
|
-
requestParameters
|
|
311
|
+
requestParameters: HttpSharedCollectionsGetByIdRequestParams,
|
|
409
312
|
observe?: 'body',
|
|
410
313
|
reportProgress?: boolean,
|
|
411
314
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
412
315
|
): Observable<SharedCollectionFull>;
|
|
413
316
|
public httpSharedCollectionsGetById(
|
|
414
|
-
requestParameters
|
|
317
|
+
requestParameters: HttpSharedCollectionsGetByIdRequestParams,
|
|
415
318
|
observe?: 'response',
|
|
416
319
|
reportProgress?: boolean,
|
|
417
320
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
418
321
|
): Observable<HttpResponse<SharedCollectionFull>>;
|
|
419
322
|
public httpSharedCollectionsGetById(
|
|
420
|
-
requestParameters
|
|
323
|
+
requestParameters: HttpSharedCollectionsGetByIdRequestParams,
|
|
421
324
|
observe?: 'events',
|
|
422
325
|
reportProgress?: boolean,
|
|
423
326
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
424
327
|
): Observable<HttpEvent<SharedCollectionFull>>;
|
|
425
328
|
public httpSharedCollectionsGetById(
|
|
426
|
-
requestParameters
|
|
329
|
+
requestParameters: HttpSharedCollectionsGetByIdRequestParams,
|
|
427
330
|
observe: any = 'body',
|
|
428
331
|
reportProgress: boolean = false,
|
|
429
332
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -438,47 +341,26 @@ export class CollectionShareManagementService {
|
|
|
438
341
|
const acceptLanguage = requestParameters?.acceptLanguage;
|
|
439
342
|
|
|
440
343
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
if (limit !== undefined && limit !== null) {
|
|
445
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>limit, 'limit');
|
|
446
|
-
}
|
|
447
|
-
if (orderby !== undefined && orderby !== null) {
|
|
448
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>orderby, 'orderby');
|
|
449
|
-
}
|
|
344
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>continuationToken, 'continuation_token');
|
|
345
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>limit, 'limit');
|
|
346
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>orderby, 'orderby');
|
|
450
347
|
|
|
451
348
|
let localVarHeaders = this.defaultHeaders;
|
|
452
349
|
if (acceptLanguage !== undefined && acceptLanguage !== null) {
|
|
453
350
|
localVarHeaders = localVarHeaders.set('Accept-Language', String(acceptLanguage));
|
|
454
351
|
}
|
|
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,11 +374,12 @@ export class CollectionShareManagementService {
|
|
|
492
374
|
}
|
|
493
375
|
|
|
494
376
|
let localVarPath = `/shared/${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<SharedCollectionFull>('get', `${basePath}${localVarPath}`, {
|
|
496
379
|
context: localVarHttpContext,
|
|
497
380
|
params: localVarQueryParameters,
|
|
498
381
|
responseType: <any>responseType_,
|
|
499
|
-
withCredentials:
|
|
382
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
500
383
|
headers: localVarHeaders,
|
|
501
384
|
observe: observe,
|
|
502
385
|
transferCache: localVarTransferCache,
|
|
@@ -511,25 +394,25 @@ export class CollectionShareManagementService {
|
|
|
511
394
|
* @param reportProgress flag to report request and response progress.
|
|
512
395
|
*/
|
|
513
396
|
public httpSharedCollectionsUpdateById(
|
|
514
|
-
requestParameters
|
|
397
|
+
requestParameters: HttpSharedCollectionsUpdateByIdRequestParams,
|
|
515
398
|
observe?: 'body',
|
|
516
399
|
reportProgress?: boolean,
|
|
517
400
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
518
401
|
): Observable<SharedCollection>;
|
|
519
402
|
public httpSharedCollectionsUpdateById(
|
|
520
|
-
requestParameters
|
|
403
|
+
requestParameters: HttpSharedCollectionsUpdateByIdRequestParams,
|
|
521
404
|
observe?: 'response',
|
|
522
405
|
reportProgress?: boolean,
|
|
523
406
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
524
407
|
): Observable<HttpResponse<SharedCollection>>;
|
|
525
408
|
public httpSharedCollectionsUpdateById(
|
|
526
|
-
requestParameters
|
|
409
|
+
requestParameters: HttpSharedCollectionsUpdateByIdRequestParams,
|
|
527
410
|
observe?: 'events',
|
|
528
411
|
reportProgress?: boolean,
|
|
529
412
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
530
413
|
): Observable<HttpEvent<SharedCollection>>;
|
|
531
414
|
public httpSharedCollectionsUpdateById(
|
|
532
|
-
requestParameters
|
|
415
|
+
requestParameters: HttpSharedCollectionsUpdateByIdRequestParams,
|
|
533
416
|
observe: any = 'body',
|
|
534
417
|
reportProgress: boolean = false,
|
|
535
418
|
options?: { httpHeaderAccept?: 'application/json'; context?: HttpContext; transferCache?: boolean }
|
|
@@ -545,32 +428,17 @@ export class CollectionShareManagementService {
|
|
|
545
428
|
|
|
546
429
|
let localVarHeaders = this.defaultHeaders;
|
|
547
430
|
|
|
548
|
-
let localVarCredential: string | undefined;
|
|
549
431
|
// authentication (msal_auth) required
|
|
550
|
-
|
|
551
|
-
if (localVarCredential) {
|
|
552
|
-
localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
|
|
553
|
-
}
|
|
432
|
+
localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
|
|
554
433
|
|
|
555
|
-
|
|
556
|
-
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
557
|
-
// to determine the Accept header
|
|
558
|
-
const httpHeaderAccepts: string[] = ['application/json'];
|
|
559
|
-
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
560
|
-
}
|
|
434
|
+
const localVarHttpHeaderAcceptSelected: string | undefined = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept(['application/json']);
|
|
561
435
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
562
436
|
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
563
437
|
}
|
|
564
438
|
|
|
565
|
-
|
|
566
|
-
if (localVarHttpContext === undefined) {
|
|
567
|
-
localVarHttpContext = new HttpContext();
|
|
568
|
-
}
|
|
439
|
+
const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
|
|
569
440
|
|
|
570
|
-
|
|
571
|
-
if (localVarTransferCache === undefined) {
|
|
572
|
-
localVarTransferCache = true;
|
|
573
|
-
}
|
|
441
|
+
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
574
442
|
|
|
575
443
|
// to determine the Content-Type header
|
|
576
444
|
const consumes: string[] = ['application/json'];
|
|
@@ -591,11 +459,12 @@ export class CollectionShareManagementService {
|
|
|
591
459
|
}
|
|
592
460
|
|
|
593
461
|
let localVarPath = `/shared/${this.configuration.encodeParam({ name: 'id', value: id, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: undefined })}`;
|
|
594
|
-
|
|
462
|
+
const { basePath, withCredentials } = this.configuration;
|
|
463
|
+
return this.httpClient.request<SharedCollection>('post', `${basePath}${localVarPath}`, {
|
|
595
464
|
context: localVarHttpContext,
|
|
596
465
|
body: sharedCollection,
|
|
597
466
|
responseType: <any>responseType_,
|
|
598
|
-
withCredentials:
|
|
467
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
599
468
|
headers: localVarHeaders,
|
|
600
469
|
observe: observe,
|
|
601
470
|
transferCache: localVarTransferCache,
|