@conduitplatform/grpc-sdk 0.16.23 → 0.16.25

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.
@@ -23,7 +23,13 @@ export declare class Email extends ConduitModule<typeof EmailDefinition> {
23
23
  sender?: string;
24
24
  replyTo?: string;
25
25
  cc?: string[];
26
- attachments?: string[];
26
+ attachments?: {
27
+ filename: string;
28
+ contentType?: string;
29
+ content?: Buffer;
30
+ href?: string;
31
+ httpHeaders?: Record<string, string>;
32
+ }[];
27
33
  }): Promise<string>;
28
34
  resendEmail(emailRecordId: string): Promise<string>;
29
35
  getEmailStatus(messageId: string): Promise<any>;
@@ -9,6 +9,7 @@ export interface SendMessageRequest {
9
9
  userId: string;
10
10
  roomId: string;
11
11
  messageType?: string | undefined;
12
+ persist?: boolean | undefined;
12
13
  }
13
14
  export interface DeleteRoomRequest {
14
15
  _id: string;
@@ -18,6 +18,13 @@ export interface UpdateTemplateRequest {
18
18
  export interface RegisterTemplateResponse {
19
19
  template: string;
20
20
  }
21
+ export interface Attachment {
22
+ filename: string;
23
+ contentType?: string | undefined;
24
+ content?: Uint8Array | undefined;
25
+ href?: string | undefined;
26
+ httpHeaders?: string | undefined;
27
+ }
21
28
  export interface SendEmailRequest {
22
29
  templateName: string;
23
30
  params: SendEmailRequest_SendEmailParams | undefined;
@@ -30,7 +37,7 @@ export interface SendEmailRequest_SendEmailParams {
30
37
  sender?: string | undefined;
31
38
  cc: string[];
32
39
  replyTo?: string | undefined;
33
- attachments: string[];
40
+ attachments: Attachment[];
34
41
  }
35
42
  export interface SendEmailResponse {
36
43
  sentMessageInfo: string;
@@ -71,6 +78,14 @@ export declare const RegisterTemplateResponse: {
71
78
  create(base?: DeepPartial<RegisterTemplateResponse>): RegisterTemplateResponse;
72
79
  fromPartial(object: DeepPartial<RegisterTemplateResponse>): RegisterTemplateResponse;
73
80
  };
81
+ export declare const Attachment: {
82
+ encode(message: Attachment, writer?: _m0.Writer): _m0.Writer;
83
+ decode(input: _m0.Reader | Uint8Array, length?: number): Attachment;
84
+ fromJSON(object: any): Attachment;
85
+ toJSON(message: Attachment): unknown;
86
+ create(base?: DeepPartial<Attachment>): Attachment;
87
+ fromPartial(object: DeepPartial<Attachment>): Attachment;
88
+ };
74
89
  export declare const SendEmailRequest: {
75
90
  encode(message: SendEmailRequest, writer?: _m0.Writer): _m0.Writer;
76
91
  decode(input: _m0.Reader | Uint8Array, length?: number): SendEmailRequest;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conduitplatform/grpc-sdk",
3
- "version": "0.16.23",
3
+ "version": "0.16.25",
4
4
  "main": "dist/index.cjs",
5
5
  "module": "dist/index.esm.js",
6
6
  "types": "dist/index.d.ts",