@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.
Files changed (92) hide show
  1. package/.openapi-generator/FILES +11 -3
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +97 -142
  4. package/api/aIOperations.agravity.ts +878 -0
  5. package/api/api.ts +9 -3
  6. package/api/assetIconRuleManagement.agravity.ts +59 -190
  7. package/api/assetManagement.agravity.ts +118 -355
  8. package/api/assetOperations.agravity.ts +290 -917
  9. package/api/assetPublishing.agravity.ts +107 -288
  10. package/api/assetRelationManagement.agravity.ts +61 -196
  11. package/api/assetRelationTypeManagement.agravity.ts +70 -215
  12. package/api/assetVersioning.agravity.ts +105 -300
  13. package/api/authenticationManagement.agravity.ts +137 -392
  14. package/api/collectionManagement.agravity.ts +217 -376
  15. package/api/collectionShareManagement.agravity.ts +59 -190
  16. package/api/collectionTypeItemBlueprintManagement.agravity.ts +47 -162
  17. package/api/collectionTypeManagement.agravity.ts +91 -270
  18. package/api/commentsManagement.agravity.ts +48 -157
  19. package/api/configurationManagement.agravity.ts +53 -180
  20. package/api/dashboardWidgetManagement.agravity.ts +56 -181
  21. package/api/dataImportExportManagement.agravity.ts +58 -203
  22. package/api/downloadFormatManagement.agravity.ts +70 -215
  23. package/api/downloadZip.agravity.ts +37 -132
  24. package/api/generalManagement.agravity.ts +64 -229
  25. package/api/helperTools.agravity.ts +214 -404
  26. package/api/historyEntryManagement.agravity.ts +16 -85
  27. package/api/iccProfileManagement.agravity.ts +11 -78
  28. package/api/listBlobs.agravity.ts +18 -99
  29. package/api/listQueues.agravity.ts +11 -78
  30. package/api/listTables.agravity.ts +11 -78
  31. package/api/notificationManagement.agravity.ts +267 -0
  32. package/api/permissionsManagement.agravity.ts +44 -153
  33. package/api/portalManagement.agravity.ts +88 -253
  34. package/api/portalsUsersManagement.agravity.ts +55 -178
  35. package/api/publishing.agravity.ts +13 -84
  36. package/api/quickshareManagement.agravity.ts +67 -214
  37. package/api/savedSearchManagement.agravity.ts +37 -140
  38. package/api/searchManagement.agravity.ts +102 -327
  39. package/api/searchSettingsOperations.agravity.ts +187 -0
  40. package/api/secureUpload.agravity.ts +68 -209
  41. package/api/signalRConnectionManagement.agravity.ts +26 -109
  42. package/api/staticDefinedListManagement.agravity.ts +60 -193
  43. package/api/stockImport.agravity.ts +31 -122
  44. package/api/structureImport.agravity.ts +11 -78
  45. package/api/translationManagement.agravity.ts +86 -229
  46. package/api/webAppData.agravity.ts +48 -157
  47. package/api/widgetLayoutManagement.agravity.ts +22 -103
  48. package/api/wordpressManagement.agravity.ts +34 -131
  49. package/api/workspaceManagement.agravity.ts +77 -236
  50. package/api.base.service.ts +78 -0
  51. package/configuration.ts +33 -17
  52. package/index.ts +1 -0
  53. package/model/{aiGroupEntity.agravity.ts → aiAsset.agravity.ts} +2 -3
  54. package/model/aiFieldGeneration.agravity.ts +1 -5
  55. package/model/{aiGroup.agravity.ts → aiModelDeployment.agravity.ts} +6 -5
  56. package/model/aiSettings.agravity.ts +4 -3
  57. package/model/aiTypeSettings.agravity.ts +17 -0
  58. package/model/asset.agravity.ts +6 -6
  59. package/model/assetBlob.agravity.ts +15 -15
  60. package/model/assetIconRule.agravity.ts +1 -1
  61. package/model/assetRelationType.agravity.ts +1 -1
  62. package/model/azureIdentity.agravity.ts +7 -7
  63. package/model/collTypeItem.agravity.ts +1 -1
  64. package/model/collTypeItemBlueprint.agravity.ts +1 -1
  65. package/model/collection.agravity.ts +6 -6
  66. package/model/collectionType.agravity.ts +6 -6
  67. package/model/collectionUDL.agravity.ts +1 -1
  68. package/model/dashboardWidget.agravity.ts +1 -1
  69. package/model/downloadFormat.agravity.ts +1 -1
  70. package/model/downloadZipRequest.agravity.ts +6 -6
  71. package/model/downloadZipStatus.agravity.ts +6 -6
  72. package/model/entityIdName.agravity.ts +1 -1
  73. package/model/entityTranslations.agravity.ts +1 -1
  74. package/model/groupAllAppData.agravity.ts +1 -1
  75. package/model/historyEntry.agravity.ts +16 -30
  76. package/model/models.ts +5 -2
  77. package/model/notificationSettingDto.agravity.ts +18 -0
  78. package/model/permissionChange.agravity.ts +7 -7
  79. package/model/permissionEntity.agravity.ts +5 -5
  80. package/model/portalAuthentication.agravity.ts +7 -7
  81. package/model/portalTheme.agravity.ts +1 -1
  82. package/model/publishedAsset.agravity.ts +1 -1
  83. package/model/savedSearch.agravity.ts +1 -1
  84. package/model/searchSettings.agravity.ts +26 -0
  85. package/model/staticDefinedList.agravity.ts +1 -1
  86. package/model/uiTutorials.agravity.ts +4 -4
  87. package/model/whereParam.agravity.ts +17 -17
  88. package/model/workspace.agravity.ts +1 -1
  89. package/package.json +5 -4
  90. package/provide-api.ts +15 -0
  91. package/tsconfig.json +2 -0
  92. 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: AgravityConfiguration
71
+ @Optional() configuration?: AgravityConfiguration
76
72
  ) {
77
- if (configuration) {
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?: HttpSharedCollectionsCreateRequestParams,
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?: HttpSharedCollectionsCreateRequestParams,
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?: HttpSharedCollectionsCreateRequestParams,
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?: HttpSharedCollectionsCreateRequestParams,
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
- localVarCredential = this.configuration.lookupCredential('msal_auth');
169
- if (localVarCredential) {
170
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
171
- }
114
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
172
115
 
173
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
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
- let localVarHttpContext: HttpContext | undefined = options && options.context;
184
- if (localVarHttpContext === undefined) {
185
- localVarHttpContext = new HttpContext();
186
- }
121
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
187
122
 
188
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
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
- return this.httpClient.request<SharedCollection>('post', `${this.configuration.basePath}${localVarPath}`, {
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: this.configuration.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?: HttpSharedCollectionsDeleteByIdRequestParams,
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?: HttpSharedCollectionsDeleteByIdRequestParams,
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?: HttpSharedCollectionsDeleteByIdRequestParams,
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?: HttpSharedCollectionsDeleteByIdRequestParams,
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
- localVarCredential = this.configuration.lookupCredential('msal_auth');
264
- if (localVarCredential) {
265
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
266
- }
195
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
267
196
 
268
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
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
- let localVarHttpContext: HttpContext | undefined = options && options.context;
279
- if (localVarHttpContext === undefined) {
280
- localVarHttpContext = new HttpContext();
281
- }
202
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
282
203
 
283
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
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
- return this.httpClient.request<any>('delete', `${this.configuration.basePath}${localVarPath}`, {
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: this.configuration.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
- if (collectionid !== undefined && collectionid !== null) {
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
- localVarCredential = this.configuration.lookupCredential('msal_auth');
353
- if (localVarCredential) {
354
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
355
- }
268
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
356
269
 
357
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
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
- let localVarHttpContext: HttpContext | undefined = options && options.context;
368
- if (localVarHttpContext === undefined) {
369
- localVarHttpContext = new HttpContext();
370
- }
275
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
371
276
 
372
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
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
- return this.httpClient.request<Array<SharedCollection>>('get', `${this.configuration.basePath}${localVarPath}`, {
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: this.configuration.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?: HttpSharedCollectionsGetByIdRequestParams,
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?: HttpSharedCollectionsGetByIdRequestParams,
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?: HttpSharedCollectionsGetByIdRequestParams,
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?: HttpSharedCollectionsGetByIdRequestParams,
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
- if (continuationToken !== undefined && continuationToken !== null) {
442
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, <any>continuationToken, 'continuation_token');
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
- localVarCredential = this.configuration.lookupCredential('msal_auth');
459
- if (localVarCredential) {
460
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
461
- }
354
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
462
355
 
463
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
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
- let localVarHttpContext: HttpContext | undefined = options && options.context;
474
- if (localVarHttpContext === undefined) {
475
- localVarHttpContext = new HttpContext();
476
- }
361
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
477
362
 
478
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
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
- return this.httpClient.request<SharedCollectionFull>('get', `${this.configuration.basePath}${localVarPath}`, {
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: this.configuration.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?: HttpSharedCollectionsUpdateByIdRequestParams,
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?: HttpSharedCollectionsUpdateByIdRequestParams,
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?: HttpSharedCollectionsUpdateByIdRequestParams,
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?: HttpSharedCollectionsUpdateByIdRequestParams,
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
- localVarCredential = this.configuration.lookupCredential('msal_auth');
551
- if (localVarCredential) {
552
- localVarHeaders = localVarHeaders.set('Authorization', 'Bearer ' + localVarCredential);
553
- }
432
+ localVarHeaders = this.configuration.addCredentialToHeaders('msal_auth', 'Authorization', localVarHeaders, 'Bearer ');
554
433
 
555
- let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
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
- let localVarHttpContext: HttpContext | undefined = options && options.context;
566
- if (localVarHttpContext === undefined) {
567
- localVarHttpContext = new HttpContext();
568
- }
439
+ const localVarHttpContext: HttpContext = options?.context ?? new HttpContext();
569
440
 
570
- let localVarTransferCache: boolean | undefined = options && options.transferCache;
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
- return this.httpClient.request<SharedCollection>('post', `${this.configuration.basePath}${localVarPath}`, {
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: this.configuration.withCredentials,
467
+ ...(withCredentials ? { withCredentials } : {}),
599
468
  headers: localVarHeaders,
600
469
  observe: observe,
601
470
  transferCache: localVarTransferCache,