@conduitplatform/grpc-sdk 0.16.18 → 0.16.20

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.
@@ -12,7 +12,7 @@ export type RawMongoQuery = {
12
12
  find?: object;
13
13
  insertOne?: object;
14
14
  insertMany?: object | object[];
15
- updateOne?: object;
15
+ updateOne?: object | object[];
16
16
  updateMany?: object | object[];
17
17
  options?: object;
18
18
  };
@@ -19,4 +19,5 @@ export declare class Authentication extends ConduitModule<typeof AuthenticationD
19
19
  userModifyStatus(userId: string, active: boolean): Promise<UserModifyStatusResponse>;
20
20
  invitationDelete(teamId: string, email: string): Promise<InvitationDeleteResponse>;
21
21
  inviteUserToTeam(teamId: string, email: string, role: string, inviterUserId: string, redirectUri?: string, userData?: Indexable): Promise<InviteUserToTeamResponse>;
22
+ updateTeam(teamId: string, name?: string, newParentTeamId?: string): Promise<Team>;
22
23
  }
@@ -102,6 +102,11 @@ export interface InviteUserToTeamRequest {
102
102
  export interface InviteUserToTeamResponse {
103
103
  invitationToken: string;
104
104
  }
105
+ export interface UpdateTeamRequest {
106
+ teamId: string;
107
+ name?: string | undefined;
108
+ newParentTeamId?: string | undefined;
109
+ }
105
110
  export declare const UserLoginRequest: {
106
111
  encode(message: UserLoginRequest, writer?: _m0.Writer): _m0.Writer;
107
112
  decode(input: _m0.Reader | Uint8Array, length?: number): UserLoginRequest;
@@ -286,6 +291,14 @@ export declare const InviteUserToTeamResponse: {
286
291
  create(base?: DeepPartial<InviteUserToTeamResponse>): InviteUserToTeamResponse;
287
292
  fromPartial(object: DeepPartial<InviteUserToTeamResponse>): InviteUserToTeamResponse;
288
293
  };
294
+ export declare const UpdateTeamRequest: {
295
+ encode(message: UpdateTeamRequest, writer?: _m0.Writer): _m0.Writer;
296
+ decode(input: _m0.Reader | Uint8Array, length?: number): UpdateTeamRequest;
297
+ fromJSON(object: any): UpdateTeamRequest;
298
+ toJSON(message: UpdateTeamRequest): unknown;
299
+ create(base?: DeepPartial<UpdateTeamRequest>): UpdateTeamRequest;
300
+ fromPartial(object: DeepPartial<UpdateTeamRequest>): UpdateTeamRequest;
301
+ };
289
302
  export type AuthenticationDefinition = typeof AuthenticationDefinition;
290
303
  export declare const AuthenticationDefinition: {
291
304
  readonly name: "Authentication";
@@ -621,6 +634,28 @@ export declare const AuthenticationDefinition: {
621
634
  readonly responseStream: false;
622
635
  readonly options: {};
623
636
  };
637
+ readonly updateTeam: {
638
+ readonly name: "UpdateTeam";
639
+ readonly requestType: {
640
+ encode(message: UpdateTeamRequest, writer?: _m0.Writer): _m0.Writer;
641
+ decode(input: _m0.Reader | Uint8Array, length?: number): UpdateTeamRequest;
642
+ fromJSON(object: any): UpdateTeamRequest;
643
+ toJSON(message: UpdateTeamRequest): unknown;
644
+ create(base?: DeepPartial<UpdateTeamRequest>): UpdateTeamRequest;
645
+ fromPartial(object: DeepPartial<UpdateTeamRequest>): UpdateTeamRequest;
646
+ };
647
+ readonly requestStream: false;
648
+ readonly responseType: {
649
+ encode(message: Team, writer?: _m0.Writer): _m0.Writer;
650
+ decode(input: _m0.Reader | Uint8Array, length?: number): Team;
651
+ fromJSON(object: any): Team;
652
+ toJSON(message: Team): unknown;
653
+ create(base?: DeepPartial<Team>): Team;
654
+ fromPartial(object: DeepPartial<Team>): Team;
655
+ };
656
+ readonly responseStream: false;
657
+ readonly options: {};
658
+ };
624
659
  };
625
660
  };
626
661
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
@@ -8,6 +8,7 @@ export interface SendMessageRequest {
8
8
  message: string;
9
9
  userId: string;
10
10
  roomId: string;
11
+ messageType?: string | undefined;
11
12
  }
12
13
  export interface DeleteRoomRequest {
13
14
  _id: string;
@@ -24,7 +24,9 @@ export interface SendEmailRequest {
24
24
  }
25
25
  export interface SendEmailRequest_SendEmailParams {
26
26
  email: string;
27
+ subject: string;
27
28
  variables: string;
29
+ body: string;
28
30
  sender?: string | undefined;
29
31
  cc: string[];
30
32
  replyTo?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conduitplatform/grpc-sdk",
3
- "version": "0.16.18",
3
+ "version": "0.16.20",
4
4
  "main": "dist/index.cjs",
5
5
  "module": "dist/index.esm.js",
6
6
  "types": "dist/index.d.ts",