mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 01:47:33 +00:00
fix: changes (#1482)
* fix: changes * change listquery to changequery * fix: changes in auth Co-authored-by: Max Peintner <max@caos.ch>
This commit is contained in:
@@ -69,6 +69,7 @@ import {
|
||||
VerifyMyPhoneRequest,
|
||||
VerifyMyPhoneResponse,
|
||||
} from '../proto/generated/zitadel/auth_pb';
|
||||
import { ChangeQuery } from '../proto/generated/zitadel/change_pb';
|
||||
import { ListQuery } from '../proto/generated/zitadel/object_pb';
|
||||
import { Org, OrgQuery } from '../proto/generated/zitadel/org_pb';
|
||||
import { Gender, User, WebAuthNVerification } from '../proto/generated/zitadel/user_pb';
|
||||
@@ -502,14 +503,15 @@ export class GrpcAuthService {
|
||||
return this.grpcService.auth.verifyMyPhone(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public listMyUserChanges(limit: number, offset: number): Promise<ListMyUserChangesResponse.AsObject> {
|
||||
public listMyUserChanges(limit: number, sequence: number): Promise<ListMyUserChangesResponse.AsObject> {
|
||||
const req = new ListMyUserChangesRequest();
|
||||
const query = new ListQuery();
|
||||
const query = new ChangeQuery();
|
||||
|
||||
if (limit) {
|
||||
query.setLimit(limit);
|
||||
}
|
||||
if (offset) {
|
||||
query.setOffset(offset);
|
||||
if (sequence) {
|
||||
query.setSequence(sequence);
|
||||
}
|
||||
req.setQuery(query);
|
||||
return this.grpcService.auth.listMyUserChanges(req, null).then(resp => resp.toObject());
|
||||
|
@@ -5,6 +5,7 @@ import { BehaviorSubject } from 'rxjs';
|
||||
|
||||
import { AppQuery } from '../proto/generated/zitadel/app_pb';
|
||||
import { KeyType } from '../proto/generated/zitadel/auth_n_key_pb';
|
||||
import { ChangeQuery } from '../proto/generated/zitadel/change_pb';
|
||||
import { IDPOwnerType } from '../proto/generated/zitadel/idp_pb';
|
||||
import {
|
||||
AddAPIAppRequest,
|
||||
@@ -1144,62 +1145,63 @@ export class ManagementService {
|
||||
return this.grpcService.mgmt.bulkRemoveUserGrant(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public listAppChanges(appId: string, projectId: string, limit: number, offset: number): Promise<ListAppChangesResponse.AsObject> {
|
||||
public listAppChanges(appId: string, projectId: string, limit: number, sequence: number): Promise<ListAppChangesResponse.AsObject> {
|
||||
const req = new ListAppChangesRequest();
|
||||
const query = new ListQuery();
|
||||
const query = new ChangeQuery();
|
||||
req.setAppId(appId);
|
||||
req.setProjectId(projectId);
|
||||
|
||||
if (limit) {
|
||||
query.setLimit(limit);
|
||||
}
|
||||
if (offset) {
|
||||
query.setOffset(offset);
|
||||
if (sequence) {
|
||||
query.setSequence(sequence);
|
||||
}
|
||||
req.setQuery(query);
|
||||
return this.grpcService.mgmt.listAppChanges(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public listOrgChanges(limit: number, offset: number): Promise<ListOrgChangesResponse.AsObject> {
|
||||
public listOrgChanges(limit: number, sequence: number): Promise<ListOrgChangesResponse.AsObject> {
|
||||
const req = new ListOrgChangesRequest();
|
||||
const query = new ListQuery();
|
||||
const query = new ChangeQuery();
|
||||
|
||||
if (limit) {
|
||||
query.setLimit(limit);
|
||||
}
|
||||
if (offset) {
|
||||
query.setOffset(offset);
|
||||
if (sequence) {
|
||||
query.setSequence(sequence);
|
||||
}
|
||||
|
||||
req.setQuery(query);
|
||||
return this.grpcService.mgmt.listOrgChanges(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public listProjectChanges(projectId: string, limit: number, offset: number): Promise<ListProjectChangesResponse.AsObject> {
|
||||
public listProjectChanges(projectId: string, limit: number, sequence: number): Promise<ListProjectChangesResponse.AsObject> {
|
||||
const req = new ListProjectChangesRequest();
|
||||
req.setProjectId(projectId);
|
||||
const query = new ListQuery();
|
||||
const query = new ChangeQuery();
|
||||
|
||||
if (limit) {
|
||||
query.setLimit(limit);
|
||||
}
|
||||
if (offset) {
|
||||
query.setOffset(offset);
|
||||
if (sequence) {
|
||||
query.setSequence(sequence);
|
||||
}
|
||||
|
||||
req.setQuery(query);
|
||||
return this.grpcService.mgmt.listProjectChanges(req, null).then(resp => resp.toObject());
|
||||
}
|
||||
|
||||
public listUserChanges(userId: string, limit: number, offset: number): Promise<ListUserChangesResponse.AsObject> {
|
||||
public listUserChanges(userId: string, limit: number, sequence: number): Promise<ListUserChangesResponse.AsObject> {
|
||||
const req = new ListUserChangesRequest();
|
||||
req.setUserId(userId);
|
||||
const query = new ListQuery();
|
||||
const query = new ChangeQuery();
|
||||
|
||||
if (limit) {
|
||||
query.setLimit(limit);
|
||||
}
|
||||
if (offset) {
|
||||
query.setOffset(offset);
|
||||
if (sequence) {
|
||||
query.setSequence(sequence);
|
||||
}
|
||||
|
||||
req.setQuery(query);
|
||||
|
Reference in New Issue
Block a user