Skip to content

Commit ddb033f

Browse files
committed
v1.7.0
1 parent 8c7321e commit ddb033f

File tree

4 files changed

+174
-18
lines changed

4 files changed

+174
-18
lines changed

src/apis/notifications-api.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export const NotificationsApiAxiosParamCreator = function (configuration?: Confi
9898
* @param {number} [limit] Pagination limit
9999
* @param {number} [offset] Pagination offset
100100
* @param {boolean} [isRead] Whether the notification is read or not
101-
* @param {Set<NotificationTypeEnum>} [type] Filter by type **Note:** Please prefer multiple parameter instances over comma-separated values. Example: &#x60;?type&#x3D;project.extension&amp;type&#x3D;styleguide.extension&#x60;
101+
* @param {Set<NotificationTypeEnum>} [type] Filter by type Example: &#x60;?type&#x3D;project.extension&amp;type&#x3D;styleguide.extension&#x60;
102102
* @param {*} [options] Override http request option.
103103
* @throws {RequiredError}
104104
*/
@@ -202,8 +202,8 @@ export const NotificationsApiAxiosParamCreator = function (configuration?: Confi
202202
* Updates all user notifications unless `type` or `id` parameter is given. If `type` parameter is provided, updates notifications with matching type. Similarly, updates notifications with matching identifiers if `id` parameter is provided. ☝️ `type` and `id` should not be used in conjunction.
203203
* @summary Bulk update user notifications
204204
* @param {NotificationUpdateBody} notificationUpdateBody
205-
* @param {Set<NotificationTypeEnum>} [type] Filter by type **Note:** Please prefer multiple parameter instances over comma-separated values. Example: &#x60;?type&#x3D;project.extension&amp;type&#x3D;styleguide.extension&#x60;
206-
* @param {Array<string>} [id] Filter by id **Note:** Please prefer multiple parameter instances over comma-separated values. Example: &#x60;?id&#x3D;5fbe387f8c72ef23659fb500&amp;id&#x3D;602281f4783f72fccc045484&#x60;
205+
* @param {Set<NotificationTypeEnum>} [type] Filter by type Example: &#x60;?type&#x3D;project.extension&amp;type&#x3D;styleguide.extension&#x60;
206+
* @param {Array<string>} [id] Filter by id Example: &#x60;?id&#x3D;5fbe387f8c72ef23659fb500&amp;id&#x3D;602281f4783f72fccc045484&#x60;
207207
* @param {*} [options] Override http request option.
208208
* @throws {RequiredError}
209209
*/
@@ -279,7 +279,7 @@ export const NotificationsApiFp = function(configuration?: Configuration) {
279279
* @param {number} [limit] Pagination limit
280280
* @param {number} [offset] Pagination offset
281281
* @param {boolean} [isRead] Whether the notification is read or not
282-
* @param {Set<NotificationTypeEnum>} [type] Filter by type **Note:** Please prefer multiple parameter instances over comma-separated values. Example: &#x60;?type&#x3D;project.extension&amp;type&#x3D;styleguide.extension&#x60;
282+
* @param {Set<NotificationTypeEnum>} [type] Filter by type Example: &#x60;?type&#x3D;project.extension&amp;type&#x3D;styleguide.extension&#x60;
283283
* @param {*} [options] Override http request option.
284284
* @throws {RequiredError}
285285
*/
@@ -303,8 +303,8 @@ export const NotificationsApiFp = function(configuration?: Configuration) {
303303
* Updates all user notifications unless `type` or `id` parameter is given. If `type` parameter is provided, updates notifications with matching type. Similarly, updates notifications with matching identifiers if `id` parameter is provided. ☝️ `type` and `id` should not be used in conjunction.
304304
* @summary Bulk update user notifications
305305
* @param {NotificationUpdateBody} notificationUpdateBody
306-
* @param {Set<NotificationTypeEnum>} [type] Filter by type **Note:** Please prefer multiple parameter instances over comma-separated values. Example: &#x60;?type&#x3D;project.extension&amp;type&#x3D;styleguide.extension&#x60;
307-
* @param {Array<string>} [id] Filter by id **Note:** Please prefer multiple parameter instances over comma-separated values. Example: &#x60;?id&#x3D;5fbe387f8c72ef23659fb500&amp;id&#x3D;602281f4783f72fccc045484&#x60;
306+
* @param {Set<NotificationTypeEnum>} [type] Filter by type Example: &#x60;?type&#x3D;project.extension&amp;type&#x3D;styleguide.extension&#x60;
307+
* @param {Array<string>} [id] Filter by id Example: &#x60;?id&#x3D;5fbe387f8c72ef23659fb500&amp;id&#x3D;602281f4783f72fccc045484&#x60;
308308
* @param {*} [options] Override http request option.
309309
* @throws {RequiredError}
310310
*/
@@ -345,7 +345,7 @@ export interface NotificationsApiGetUserNotificationsSearchParams {
345345
readonly isRead?: boolean;
346346

347347
/**
348-
* Filter by type **Note:** Please prefer multiple parameter instances over comma-separated values. Example: &#x60;?type&#x3D;project.extension&amp;type&#x3D;styleguide.extension&#x60;
348+
* Filter by type Example: &#x60;?type&#x3D;project.extension&amp;type&#x3D;styleguide.extension&#x60;
349349
* @type {Set<NotificationTypeEnum>}
350350
* @memberof NotificationsApiGetUserNotificationsSearchParams
351351
*/
@@ -360,14 +360,14 @@ export interface NotificationsApiGetUserNotificationsSearchParams {
360360
*/
361361
export interface NotificationsApiUpdateUserNotificationsSearchParams {
362362
/**
363-
* Filter by type **Note:** Please prefer multiple parameter instances over comma-separated values. Example: &#x60;?type&#x3D;project.extension&amp;type&#x3D;styleguide.extension&#x60;
363+
* Filter by type Example: &#x60;?type&#x3D;project.extension&amp;type&#x3D;styleguide.extension&#x60;
364364
* @type {Set<NotificationTypeEnum>}
365365
* @memberof NotificationsApiUpdateUserNotificationsSearchParams
366366
*/
367367
readonly type?: Set<NotificationTypeEnum>;
368368

369369
/**
370-
* Filter by id **Note:** Please prefer multiple parameter instances over comma-separated values. Example: &#x60;?id&#x3D;5fbe387f8c72ef23659fb500&amp;id&#x3D;602281f4783f72fccc045484&#x60;
370+
* Filter by id Example: &#x60;?id&#x3D;5fbe387f8c72ef23659fb500&amp;id&#x3D;602281f4783f72fccc045484&#x60;
371371
* @type {Array<string>}
372372
* @memberof NotificationsApiUpdateUserNotificationsSearchParams
373373
*/

src/apis/organizations-api.ts

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -336,10 +336,11 @@ export const OrganizationsApiAxiosParamCreator = function (configuration?: Confi
336336
* @param {string} organizationId Organization id
337337
* @param {number} [limit] Pagination limit
338338
* @param {number} [offset] Pagination offset
339+
* @param {Set<string>} [handle] Filter organization members by email, username or unique identifier of the user ☝️Note that only organization admins (or higher) can filter members using email addresses. Example: &#x60;?handle&#x3D;zozo&amp;handle&#x3D;5d9caaecb4a3fa9bc9718686&amp;handle&#x3D;zozo%40zeplin.io&#x60;
339340
* @param {*} [options] Override http request option.
340341
* @throws {RequiredError}
341342
*/
342-
getOrganizationMembers: async (organizationId: string, limit?: number, offset?: number, options: any = {}): Promise<RequestArgs> => {
343+
getOrganizationMembers: async (organizationId: string, limit?: number, offset?: number, handle?: Set<string>, options: any = {}): Promise<RequestArgs> => {
343344
// verify required parameter 'organizationId' is not null or undefined
344345
assertParamExists('getOrganizationMembers', 'organizationId', organizationId)
345346
const localVarPath = `/v1/organizations/{organization_id}/members`
@@ -371,6 +372,10 @@ export const OrganizationsApiAxiosParamCreator = function (configuration?: Confi
371372
localVarQueryParameter['offset'] = offset;
372373
}
373374

375+
if (handle) {
376+
localVarQueryParameter['handle'] = Array.from(handle);
377+
}
378+
374379

375380

376381
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
@@ -531,7 +536,7 @@ export const OrganizationsApiAxiosParamCreator = function (configuration?: Confi
531536
/**
532537
* List all organizations that user is a member of
533538
* @summary Get organizations
534-
* @param {Set<'owner' | 'admin' | 'editor' | 'member' | 'alien'>} [role] Filter by role ☝️Note that the Developer role maps to &#x60;member&#x60; and the Reviewer role maps to &#x60;alien&#x60; in the API. **Note:** Please prefer multiple parameter instances over comma-separated values. Example: &#x60;?role&#x3D;owner&amp;role&#x3D;admin&#x60;
539+
* @param {Set<'owner' | 'admin' | 'editor' | 'member' | 'alien'>} [role] Filter by role ☝️Note that the Developer role maps to &#x60;member&#x60; and the Reviewer role maps to &#x60;alien&#x60; in the API. Example: &#x60;?role&#x3D;owner&amp;role&#x3D;admin&#x60;
535540
* @param {*} [options] Override http request option.
536541
* @throws {RequiredError}
537542
*/
@@ -786,11 +791,12 @@ export const OrganizationsApiFp = function(configuration?: Configuration) {
786791
* @param {string} organizationId Organization id
787792
* @param {number} [limit] Pagination limit
788793
* @param {number} [offset] Pagination offset
794+
* @param {Set<string>} [handle] Filter organization members by email, username or unique identifier of the user ☝️Note that only organization admins (or higher) can filter members using email addresses. Example: &#x60;?handle&#x3D;zozo&amp;handle&#x3D;5d9caaecb4a3fa9bc9718686&amp;handle&#x3D;zozo%40zeplin.io&#x60;
789795
* @param {*} [options] Override http request option.
790796
* @throws {RequiredError}
791797
*/
792-
async getOrganizationMembers(organizationId: string, limit?: number, offset?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
793-
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationMembers(organizationId, limit, offset, options);
798+
async getOrganizationMembers(organizationId: string, limit?: number, offset?: number, handle?: Set<string>, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
799+
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationMembers(organizationId, limit, offset, handle, options);
794800
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
795801
},
796802
/**
@@ -833,7 +839,7 @@ export const OrganizationsApiFp = function(configuration?: Configuration) {
833839
/**
834840
* List all organizations that user is a member of
835841
* @summary Get organizations
836-
* @param {Set<'owner' | 'admin' | 'editor' | 'member' | 'alien'>} [role] Filter by role ☝️Note that the Developer role maps to &#x60;member&#x60; and the Reviewer role maps to &#x60;alien&#x60; in the API. **Note:** Please prefer multiple parameter instances over comma-separated values. Example: &#x60;?role&#x3D;owner&amp;role&#x3D;admin&#x60;
842+
* @param {Set<'owner' | 'admin' | 'editor' | 'member' | 'alien'>} [role] Filter by role ☝️Note that the Developer role maps to &#x60;member&#x60; and the Reviewer role maps to &#x60;alien&#x60; in the API. Example: &#x60;?role&#x3D;owner&amp;role&#x3D;admin&#x60;
837843
* @param {*} [options] Override http request option.
838844
* @throws {RequiredError}
839845
*/
@@ -946,6 +952,13 @@ export interface OrganizationsApiGetOrganizationMembersSearchParams {
946952
* @memberof OrganizationsApiGetOrganizationMembersSearchParams
947953
*/
948954
readonly offset?: number;
955+
956+
/**
957+
* Filter organization members by email, username or unique identifier of the user ☝️Note that only organization admins (or higher) can filter members using email addresses. Example: &#x60;?handle&#x3D;zozo&amp;handle&#x3D;5d9caaecb4a3fa9bc9718686&amp;handle&#x3D;zozo%40zeplin.io&#x60;
958+
* @type {Set<string>}
959+
* @memberof OrganizationsApiGetOrganizationMembersSearchParams
960+
*/
961+
readonly handle?: Set<string>;
949962
}
950963

951964
/**
@@ -998,7 +1011,7 @@ export interface OrganizationsApiGetOrganizationStyleguidesSearchParams {
9981011
*/
9991012
export interface OrganizationsApiGetOrganizationsSearchParams {
10001013
/**
1001-
* Filter by role ☝️Note that the Developer role maps to &#x60;member&#x60; and the Reviewer role maps to &#x60;alien&#x60; in the API. **Note:** Please prefer multiple parameter instances over comma-separated values. Example: &#x60;?role&#x3D;owner&amp;role&#x3D;admin&#x60;
1014+
* Filter by role ☝️Note that the Developer role maps to &#x60;member&#x60; and the Reviewer role maps to &#x60;alien&#x60; in the API. Example: &#x60;?role&#x3D;owner&amp;role&#x3D;admin&#x60;
10021015
* @type {Set<'owner' | 'admin' | 'editor' | 'member' | 'alien'>}
10031016
* @memberof OrganizationsApiGetOrganizationsSearchParams
10041017
*/
@@ -1121,7 +1134,7 @@ export class OrganizationsApi extends BaseAPI {
11211134
*/
11221135
public async getOrganizationMembers(organizationId: string, searchParams: OrganizationsApiGetOrganizationMembersSearchParams = {}, options?: any) : Promise<AxiosResponse<Array<OrganizationMember>>> {
11231136
const organizationsApiFp = OrganizationsApiFp(this.configuration);
1124-
const request = await organizationsApiFp.getOrganizationMembers(organizationId, searchParams.limit, searchParams.offset, options);
1137+
const request = await organizationsApiFp.getOrganizationMembers(organizationId, searchParams.limit, searchParams.offset, searchParams.handle, options);
11251138
const response = await request(this.axios, this.basePath);
11261139
return {
11271140
...response,

0 commit comments

Comments
 (0)