@emilgroup/changelog-sdk 1.0.1-beta.2 → 1.0.1-beta.4
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 +5 -0
- package/README.md +2 -2
- package/api/changelog-configurations-api.ts +188 -0
- package/api/changelog-events-api.ts +201 -0
- package/dist/api/changelog-configurations-api.d.ts +110 -0
- package/dist/api/changelog-configurations-api.js +129 -0
- package/dist/api/changelog-events-api.d.ts +119 -0
- package/dist/api/changelog-events-api.js +134 -0
- package/dist/models/changelog-config-field-class.d.ts +6 -0
- package/dist/models/changelog-configuration-class.d.ts +6 -0
- package/dist/models/create-changelog-configuration-dto.d.ts +6 -0
- package/dist/models/formatted-changelog-event.d.ts +67 -0
- package/dist/models/formatted-changelog-event.js +15 -0
- package/dist/models/formatted-field-entry.d.ts +48 -0
- package/dist/models/formatted-field-entry.js +15 -0
- package/dist/models/formatted-section.d.ts +43 -0
- package/dist/models/formatted-section.js +15 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/dist/models/list-changelog-configurations-response-class.d.ts +43 -0
- package/dist/models/list-changelog-configurations-response-class.js +15 -0
- package/dist/models/list-formatted-changelog-events-response-class.d.ts +43 -0
- package/dist/models/list-formatted-changelog-events-response-class.js +15 -0
- package/models/changelog-config-field-class.ts +6 -0
- package/models/changelog-configuration-class.ts +6 -0
- package/models/create-changelog-configuration-dto.ts +6 -0
- package/models/formatted-changelog-event.ts +73 -0
- package/models/formatted-field-entry.ts +54 -0
- package/models/formatted-section.ts +49 -0
- package/models/index.ts +5 -0
- package/models/list-changelog-configurations-response-class.ts +49 -0
- package/models/list-formatted-changelog-events-response-class.ts +49 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -17,12 +17,17 @@ models/changelog-configuration-class.ts
|
|
|
17
17
|
models/changelog-event-class-changes.ts
|
|
18
18
|
models/changelog-event-class.ts
|
|
19
19
|
models/create-changelog-configuration-dto.ts
|
|
20
|
+
models/formatted-changelog-event.ts
|
|
21
|
+
models/formatted-field-entry.ts
|
|
22
|
+
models/formatted-section.ts
|
|
20
23
|
models/get-changelog-configuration-response-class.ts
|
|
21
24
|
models/get-changelog-event-response-class.ts
|
|
22
25
|
models/index.ts
|
|
23
26
|
models/inline-response200.ts
|
|
24
27
|
models/inline-response503.ts
|
|
28
|
+
models/list-changelog-configurations-response-class.ts
|
|
25
29
|
models/list-changelog-events-response-class.ts
|
|
30
|
+
models/list-formatted-changelog-events-response-class.ts
|
|
26
31
|
models/update-changelog-configuration-dto.ts
|
|
27
32
|
package.json
|
|
28
33
|
tsconfig.json
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/changelog-sdk@1.0.1-beta.
|
|
20
|
+
npm install @emilgroup/changelog-sdk@1.0.1-beta.4 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/changelog-sdk@1.0.1-beta.
|
|
24
|
+
yarn add @emilgroup/changelog-sdk@1.0.1-beta.4
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import ``.
|
|
@@ -25,6 +25,8 @@ import { CreateChangelogConfigurationDto } from '../models';
|
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { GetChangelogConfigurationResponseClass } from '../models';
|
|
27
27
|
// @ts-ignore
|
|
28
|
+
import { ListChangelogConfigurationsResponseClass } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
28
30
|
import { UpdateChangelogConfigurationDto } from '../models';
|
|
29
31
|
/**
|
|
30
32
|
* ChangelogConfigurationsApi - axios parameter creator
|
|
@@ -115,6 +117,82 @@ export const ChangelogConfigurationsApiAxiosParamCreator = function (configurati
|
|
|
115
117
|
|
|
116
118
|
|
|
117
119
|
|
|
120
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
121
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
122
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
123
|
+
|
|
124
|
+
return {
|
|
125
|
+
url: toPathString(localVarUrlObj),
|
|
126
|
+
options: localVarRequestOptions,
|
|
127
|
+
};
|
|
128
|
+
},
|
|
129
|
+
/**
|
|
130
|
+
* Returns a list of changelog configurations you have previously created. The changelog configurations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** none
|
|
131
|
+
* @summary List changelog configurations
|
|
132
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
133
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
134
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
135
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, entityType, createdAt, updatedAt</i>
|
|
136
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, slug, entityType</i>
|
|
137
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, slug, entityType, createdAt, updatedAt</i>
|
|
138
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
139
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, entityType, createdAt, updatedAt</i>
|
|
140
|
+
* @param {*} [options] Override http request option.
|
|
141
|
+
* @throws {RequiredError}
|
|
142
|
+
*/
|
|
143
|
+
listChangelogConfigurations: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
144
|
+
const localVarPath = `/changelogservice/v1/changelog-configurations`;
|
|
145
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
146
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
147
|
+
let baseOptions;
|
|
148
|
+
let baseAccessToken;
|
|
149
|
+
if (configuration) {
|
|
150
|
+
baseOptions = configuration.baseOptions;
|
|
151
|
+
baseAccessToken = configuration.accessToken;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
155
|
+
const localVarHeaderParameter = {} as any;
|
|
156
|
+
const localVarQueryParameter = {} as any;
|
|
157
|
+
|
|
158
|
+
// authentication bearer required
|
|
159
|
+
// http bearer authentication required
|
|
160
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
161
|
+
|
|
162
|
+
if (pageSize !== undefined) {
|
|
163
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
if (pageToken !== undefined) {
|
|
167
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
if (filter !== undefined) {
|
|
171
|
+
localVarQueryParameter['filter'] = filter;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
if (search !== undefined) {
|
|
175
|
+
localVarQueryParameter['search'] = search;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
if (order !== undefined) {
|
|
179
|
+
localVarQueryParameter['order'] = order;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
if (expand !== undefined) {
|
|
183
|
+
localVarQueryParameter['expand'] = expand;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
if (filters !== undefined) {
|
|
187
|
+
localVarQueryParameter['filters'] = filters;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
191
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
118
196
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
119
197
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
120
198
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -209,6 +287,24 @@ export const ChangelogConfigurationsApiFp = function(configuration?: Configurati
|
|
|
209
287
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getChangelogConfiguration(code, authorization, options);
|
|
210
288
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
211
289
|
},
|
|
290
|
+
/**
|
|
291
|
+
* Returns a list of changelog configurations you have previously created. The changelog configurations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** none
|
|
292
|
+
* @summary List changelog configurations
|
|
293
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
294
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
295
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
296
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, entityType, createdAt, updatedAt</i>
|
|
297
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, slug, entityType</i>
|
|
298
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, slug, entityType, createdAt, updatedAt</i>
|
|
299
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
300
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, entityType, createdAt, updatedAt</i>
|
|
301
|
+
* @param {*} [options] Override http request option.
|
|
302
|
+
* @throws {RequiredError}
|
|
303
|
+
*/
|
|
304
|
+
async listChangelogConfigurations(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListChangelogConfigurationsResponseClass>> {
|
|
305
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listChangelogConfigurations(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
306
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
307
|
+
},
|
|
212
308
|
/**
|
|
213
309
|
* Updates an existing changelog configuration **Required Permissions** none
|
|
214
310
|
* @summary Update the changelog configuration
|
|
@@ -254,6 +350,23 @@ export const ChangelogConfigurationsApiFactory = function (configuration?: Confi
|
|
|
254
350
|
getChangelogConfiguration(code: string, authorization?: string, options?: any): AxiosPromise<GetChangelogConfigurationResponseClass> {
|
|
255
351
|
return localVarFp.getChangelogConfiguration(code, authorization, options).then((request) => request(axios, basePath));
|
|
256
352
|
},
|
|
353
|
+
/**
|
|
354
|
+
* Returns a list of changelog configurations you have previously created. The changelog configurations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** none
|
|
355
|
+
* @summary List changelog configurations
|
|
356
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
357
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
358
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
359
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, entityType, createdAt, updatedAt</i>
|
|
360
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, slug, entityType</i>
|
|
361
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, slug, entityType, createdAt, updatedAt</i>
|
|
362
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
363
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, entityType, createdAt, updatedAt</i>
|
|
364
|
+
* @param {*} [options] Override http request option.
|
|
365
|
+
* @throws {RequiredError}
|
|
366
|
+
*/
|
|
367
|
+
listChangelogConfigurations(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListChangelogConfigurationsResponseClass> {
|
|
368
|
+
return localVarFp.listChangelogConfigurations(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
369
|
+
},
|
|
257
370
|
/**
|
|
258
371
|
* Updates an existing changelog configuration **Required Permissions** none
|
|
259
372
|
* @summary Update the changelog configuration
|
|
@@ -311,6 +424,69 @@ export interface ChangelogConfigurationsApiGetChangelogConfigurationRequest {
|
|
|
311
424
|
readonly authorization?: string
|
|
312
425
|
}
|
|
313
426
|
|
|
427
|
+
/**
|
|
428
|
+
* Request parameters for listChangelogConfigurations operation in ChangelogConfigurationsApi.
|
|
429
|
+
* @export
|
|
430
|
+
* @interface ChangelogConfigurationsApiListChangelogConfigurationsRequest
|
|
431
|
+
*/
|
|
432
|
+
export interface ChangelogConfigurationsApiListChangelogConfigurationsRequest {
|
|
433
|
+
/**
|
|
434
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
435
|
+
* @type {string}
|
|
436
|
+
* @memberof ChangelogConfigurationsApiListChangelogConfigurations
|
|
437
|
+
*/
|
|
438
|
+
readonly authorization?: string
|
|
439
|
+
|
|
440
|
+
/**
|
|
441
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
442
|
+
* @type {number}
|
|
443
|
+
* @memberof ChangelogConfigurationsApiListChangelogConfigurations
|
|
444
|
+
*/
|
|
445
|
+
readonly pageSize?: number
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
449
|
+
* @type {string}
|
|
450
|
+
* @memberof ChangelogConfigurationsApiListChangelogConfigurations
|
|
451
|
+
*/
|
|
452
|
+
readonly pageToken?: string
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, entityType, createdAt, updatedAt</i>
|
|
456
|
+
* @type {string}
|
|
457
|
+
* @memberof ChangelogConfigurationsApiListChangelogConfigurations
|
|
458
|
+
*/
|
|
459
|
+
readonly filter?: string
|
|
460
|
+
|
|
461
|
+
/**
|
|
462
|
+
* Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, slug, entityType</i>
|
|
463
|
+
* @type {string}
|
|
464
|
+
* @memberof ChangelogConfigurationsApiListChangelogConfigurations
|
|
465
|
+
*/
|
|
466
|
+
readonly search?: string
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, slug, entityType, createdAt, updatedAt</i>
|
|
470
|
+
* @type {string}
|
|
471
|
+
* @memberof ChangelogConfigurationsApiListChangelogConfigurations
|
|
472
|
+
*/
|
|
473
|
+
readonly order?: string
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
477
|
+
* @type {string}
|
|
478
|
+
* @memberof ChangelogConfigurationsApiListChangelogConfigurations
|
|
479
|
+
*/
|
|
480
|
+
readonly expand?: string
|
|
481
|
+
|
|
482
|
+
/**
|
|
483
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, entityType, createdAt, updatedAt</i>
|
|
484
|
+
* @type {string}
|
|
485
|
+
* @memberof ChangelogConfigurationsApiListChangelogConfigurations
|
|
486
|
+
*/
|
|
487
|
+
readonly filters?: string
|
|
488
|
+
}
|
|
489
|
+
|
|
314
490
|
/**
|
|
315
491
|
* Request parameters for updateChangelogConfiguration operation in ChangelogConfigurationsApi.
|
|
316
492
|
* @export
|
|
@@ -370,6 +546,18 @@ export class ChangelogConfigurationsApi extends BaseAPI {
|
|
|
370
546
|
return ChangelogConfigurationsApiFp(this.configuration).getChangelogConfiguration(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
371
547
|
}
|
|
372
548
|
|
|
549
|
+
/**
|
|
550
|
+
* Returns a list of changelog configurations you have previously created. The changelog configurations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** none
|
|
551
|
+
* @summary List changelog configurations
|
|
552
|
+
* @param {ChangelogConfigurationsApiListChangelogConfigurationsRequest} requestParameters Request parameters.
|
|
553
|
+
* @param {*} [options] Override http request option.
|
|
554
|
+
* @throws {RequiredError}
|
|
555
|
+
* @memberof ChangelogConfigurationsApi
|
|
556
|
+
*/
|
|
557
|
+
public listChangelogConfigurations(requestParameters: ChangelogConfigurationsApiListChangelogConfigurationsRequest = {}, options?: AxiosRequestConfig) {
|
|
558
|
+
return ChangelogConfigurationsApiFp(this.configuration).listChangelogConfigurations(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
559
|
+
}
|
|
560
|
+
|
|
373
561
|
/**
|
|
374
562
|
* Updates an existing changelog configuration **Required Permissions** none
|
|
375
563
|
* @summary Update the changelog configuration
|
|
@@ -24,6 +24,8 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
|
|
|
24
24
|
import { GetChangelogEventResponseClass } from '../models';
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { ListChangelogEventsResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { ListFormattedChangelogEventsResponseClass } from '../models';
|
|
27
29
|
/**
|
|
28
30
|
* ChangelogEventsApi - axios parameter creator
|
|
29
31
|
* @export
|
|
@@ -142,6 +144,86 @@ export const ChangelogEventsApiAxiosParamCreator = function (configuration?: Con
|
|
|
142
144
|
|
|
143
145
|
|
|
144
146
|
|
|
147
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
148
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
149
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
150
|
+
|
|
151
|
+
return {
|
|
152
|
+
url: toPathString(localVarUrlObj),
|
|
153
|
+
options: localVarRequestOptions,
|
|
154
|
+
};
|
|
155
|
+
},
|
|
156
|
+
/**
|
|
157
|
+
* Returns a list of formatted changelog events you have previously created. The formatted changelog events are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** none
|
|
158
|
+
* @summary List formatted changelog events
|
|
159
|
+
* @param {string} configSlug Slug of the changelog configuration to apply
|
|
160
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
161
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
162
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
163
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, entityType, entityCode, action, actorSub, actorType, sourceService, accountCode, partnerCode, policyCode, claimCode, parentType, parentCode, occurredAt, createdAt</i>
|
|
164
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, entityCode, actorName, sourceService</i>
|
|
165
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, occurredAt, createdAt, entityType, action</i>
|
|
166
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
167
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, entityType, entityCode, action, actorSub, actorType, sourceService, accountCode, partnerCode, policyCode, claimCode, parentType, parentCode, occurredAt, createdAt</i>
|
|
168
|
+
* @param {*} [options] Override http request option.
|
|
169
|
+
* @throws {RequiredError}
|
|
170
|
+
*/
|
|
171
|
+
listFormattedChangelogEvents: async (configSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
172
|
+
// verify required parameter 'configSlug' is not null or undefined
|
|
173
|
+
assertParamExists('listFormattedChangelogEvents', 'configSlug', configSlug)
|
|
174
|
+
const localVarPath = `/changelogservice/v1/changelog-events/formatted/{configSlug}`
|
|
175
|
+
.replace(`{${"configSlug"}}`, encodeURIComponent(String(configSlug)));
|
|
176
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
177
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
178
|
+
let baseOptions;
|
|
179
|
+
let baseAccessToken;
|
|
180
|
+
if (configuration) {
|
|
181
|
+
baseOptions = configuration.baseOptions;
|
|
182
|
+
baseAccessToken = configuration.accessToken;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
186
|
+
const localVarHeaderParameter = {} as any;
|
|
187
|
+
const localVarQueryParameter = {} as any;
|
|
188
|
+
|
|
189
|
+
// authentication bearer required
|
|
190
|
+
// http bearer authentication required
|
|
191
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
192
|
+
|
|
193
|
+
if (pageSize !== undefined) {
|
|
194
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
if (pageToken !== undefined) {
|
|
198
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
if (filter !== undefined) {
|
|
202
|
+
localVarQueryParameter['filter'] = filter;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
if (search !== undefined) {
|
|
206
|
+
localVarQueryParameter['search'] = search;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
if (order !== undefined) {
|
|
210
|
+
localVarQueryParameter['order'] = order;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
if (expand !== undefined) {
|
|
214
|
+
localVarQueryParameter['expand'] = expand;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
if (filters !== undefined) {
|
|
218
|
+
localVarQueryParameter['filters'] = filters;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
222
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
|
|
145
227
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
146
228
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
147
229
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -191,6 +273,25 @@ export const ChangelogEventsApiFp = function(configuration?: Configuration) {
|
|
|
191
273
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listChangelogEvents(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
192
274
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
193
275
|
},
|
|
276
|
+
/**
|
|
277
|
+
* Returns a list of formatted changelog events you have previously created. The formatted changelog events are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** none
|
|
278
|
+
* @summary List formatted changelog events
|
|
279
|
+
* @param {string} configSlug Slug of the changelog configuration to apply
|
|
280
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
281
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
282
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
283
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, entityType, entityCode, action, actorSub, actorType, sourceService, accountCode, partnerCode, policyCode, claimCode, parentType, parentCode, occurredAt, createdAt</i>
|
|
284
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, entityCode, actorName, sourceService</i>
|
|
285
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, occurredAt, createdAt, entityType, action</i>
|
|
286
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
287
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, entityType, entityCode, action, actorSub, actorType, sourceService, accountCode, partnerCode, policyCode, claimCode, parentType, parentCode, occurredAt, createdAt</i>
|
|
288
|
+
* @param {*} [options] Override http request option.
|
|
289
|
+
* @throws {RequiredError}
|
|
290
|
+
*/
|
|
291
|
+
async listFormattedChangelogEvents(configSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListFormattedChangelogEventsResponseClass>> {
|
|
292
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listFormattedChangelogEvents(configSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
293
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
294
|
+
},
|
|
194
295
|
}
|
|
195
296
|
};
|
|
196
297
|
|
|
@@ -229,6 +330,24 @@ export const ChangelogEventsApiFactory = function (configuration?: Configuration
|
|
|
229
330
|
listChangelogEvents(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListChangelogEventsResponseClass> {
|
|
230
331
|
return localVarFp.listChangelogEvents(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
231
332
|
},
|
|
333
|
+
/**
|
|
334
|
+
* Returns a list of formatted changelog events you have previously created. The formatted changelog events are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** none
|
|
335
|
+
* @summary List formatted changelog events
|
|
336
|
+
* @param {string} configSlug Slug of the changelog configuration to apply
|
|
337
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
338
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
339
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
340
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, entityType, entityCode, action, actorSub, actorType, sourceService, accountCode, partnerCode, policyCode, claimCode, parentType, parentCode, occurredAt, createdAt</i>
|
|
341
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, entityCode, actorName, sourceService</i>
|
|
342
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, occurredAt, createdAt, entityType, action</i>
|
|
343
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
344
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, entityType, entityCode, action, actorSub, actorType, sourceService, accountCode, partnerCode, policyCode, claimCode, parentType, parentCode, occurredAt, createdAt</i>
|
|
345
|
+
* @param {*} [options] Override http request option.
|
|
346
|
+
* @throws {RequiredError}
|
|
347
|
+
*/
|
|
348
|
+
listFormattedChangelogEvents(configSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListFormattedChangelogEventsResponseClass> {
|
|
349
|
+
return localVarFp.listFormattedChangelogEvents(configSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
350
|
+
},
|
|
232
351
|
};
|
|
233
352
|
};
|
|
234
353
|
|
|
@@ -316,6 +435,76 @@ export interface ChangelogEventsApiListChangelogEventsRequest {
|
|
|
316
435
|
readonly filters?: string
|
|
317
436
|
}
|
|
318
437
|
|
|
438
|
+
/**
|
|
439
|
+
* Request parameters for listFormattedChangelogEvents operation in ChangelogEventsApi.
|
|
440
|
+
* @export
|
|
441
|
+
* @interface ChangelogEventsApiListFormattedChangelogEventsRequest
|
|
442
|
+
*/
|
|
443
|
+
export interface ChangelogEventsApiListFormattedChangelogEventsRequest {
|
|
444
|
+
/**
|
|
445
|
+
* Slug of the changelog configuration to apply
|
|
446
|
+
* @type {string}
|
|
447
|
+
* @memberof ChangelogEventsApiListFormattedChangelogEvents
|
|
448
|
+
*/
|
|
449
|
+
readonly configSlug: string
|
|
450
|
+
|
|
451
|
+
/**
|
|
452
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
453
|
+
* @type {string}
|
|
454
|
+
* @memberof ChangelogEventsApiListFormattedChangelogEvents
|
|
455
|
+
*/
|
|
456
|
+
readonly authorization?: string
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
460
|
+
* @type {number}
|
|
461
|
+
* @memberof ChangelogEventsApiListFormattedChangelogEvents
|
|
462
|
+
*/
|
|
463
|
+
readonly pageSize?: number
|
|
464
|
+
|
|
465
|
+
/**
|
|
466
|
+
* A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
467
|
+
* @type {string}
|
|
468
|
+
* @memberof ChangelogEventsApiListFormattedChangelogEvents
|
|
469
|
+
*/
|
|
470
|
+
readonly pageToken?: string
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, entityType, entityCode, action, actorSub, actorType, sourceService, accountCode, partnerCode, policyCode, claimCode, parentType, parentCode, occurredAt, createdAt</i>
|
|
474
|
+
* @type {string}
|
|
475
|
+
* @memberof ChangelogEventsApiListFormattedChangelogEvents
|
|
476
|
+
*/
|
|
477
|
+
readonly filter?: string
|
|
478
|
+
|
|
479
|
+
/**
|
|
480
|
+
* Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, entityCode, actorName, sourceService</i>
|
|
481
|
+
* @type {string}
|
|
482
|
+
* @memberof ChangelogEventsApiListFormattedChangelogEvents
|
|
483
|
+
*/
|
|
484
|
+
readonly search?: string
|
|
485
|
+
|
|
486
|
+
/**
|
|
487
|
+
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, occurredAt, createdAt, entityType, action</i>
|
|
488
|
+
* @type {string}
|
|
489
|
+
* @memberof ChangelogEventsApiListFormattedChangelogEvents
|
|
490
|
+
*/
|
|
491
|
+
readonly order?: string
|
|
492
|
+
|
|
493
|
+
/**
|
|
494
|
+
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
495
|
+
* @type {string}
|
|
496
|
+
* @memberof ChangelogEventsApiListFormattedChangelogEvents
|
|
497
|
+
*/
|
|
498
|
+
readonly expand?: string
|
|
499
|
+
|
|
500
|
+
/**
|
|
501
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, entityType, entityCode, action, actorSub, actorType, sourceService, accountCode, partnerCode, policyCode, claimCode, parentType, parentCode, occurredAt, createdAt</i>
|
|
502
|
+
* @type {string}
|
|
503
|
+
* @memberof ChangelogEventsApiListFormattedChangelogEvents
|
|
504
|
+
*/
|
|
505
|
+
readonly filters?: string
|
|
506
|
+
}
|
|
507
|
+
|
|
319
508
|
/**
|
|
320
509
|
* ChangelogEventsApi - object-oriented interface
|
|
321
510
|
* @export
|
|
@@ -346,4 +535,16 @@ export class ChangelogEventsApi extends BaseAPI {
|
|
|
346
535
|
public listChangelogEvents(requestParameters: ChangelogEventsApiListChangelogEventsRequest = {}, options?: AxiosRequestConfig) {
|
|
347
536
|
return ChangelogEventsApiFp(this.configuration).listChangelogEvents(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
348
537
|
}
|
|
538
|
+
|
|
539
|
+
/**
|
|
540
|
+
* Returns a list of formatted changelog events you have previously created. The formatted changelog events are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** none
|
|
541
|
+
* @summary List formatted changelog events
|
|
542
|
+
* @param {ChangelogEventsApiListFormattedChangelogEventsRequest} requestParameters Request parameters.
|
|
543
|
+
* @param {*} [options] Override http request option.
|
|
544
|
+
* @throws {RequiredError}
|
|
545
|
+
* @memberof ChangelogEventsApi
|
|
546
|
+
*/
|
|
547
|
+
public listFormattedChangelogEvents(requestParameters: ChangelogEventsApiListFormattedChangelogEventsRequest, options?: AxiosRequestConfig) {
|
|
548
|
+
return ChangelogEventsApiFp(this.configuration).listFormattedChangelogEvents(requestParameters.configSlug, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
549
|
+
}
|
|
349
550
|
}
|