@conduitplatform/grpc-sdk 0.16.25 → 0.16.28

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.
@@ -59,5 +59,6 @@ export declare class DatabaseProvider extends ConduitModule<typeof DatabaseProvi
59
59
  columnExistence(schemaName: string, columns: string[]): Promise<boolean>;
60
60
  migrate(schemaName: string): Promise<import("../../protoUtils/google/protobuf/empty.js").Empty>;
61
61
  getDatabaseType(): Promise<import("../../protoUtils/database.js").GetDatabaseTypeResponse>;
62
+ generateId(): Promise<string>;
62
63
  private constructSortObj;
63
64
  }
@@ -8,17 +8,15 @@ export declare class PushNotifications extends ConduitModule<typeof PushNotifica
8
8
  getNotificationTokens(userId: string): Promise<any[]>;
9
9
  sendNotification(sendTo: string, title: string, body?: string, data?: string, platform?: string, doNotStore?: boolean, isSilent?: boolean): Promise<SendNotificationResponse>;
10
10
  sendNotification(sendTo: string, title: string, options?: SendNotificationOptions): Promise<SendNotificationResponse>;
11
- sendManyNotifications(notifications: [
12
- {
13
- sendTo: string;
14
- title: string;
15
- body?: string;
16
- data?: string;
17
- platform?: string;
18
- doNotStore?: boolean;
19
- isSilent?: boolean;
20
- }
21
- ]): Promise<SendNotificationResponse>;
11
+ sendManyNotifications(notifications: {
12
+ sendTo: string;
13
+ title: string;
14
+ body?: string;
15
+ data?: string;
16
+ platform?: string;
17
+ doNotStore?: boolean;
18
+ isSilent?: boolean;
19
+ }[]): Promise<SendNotificationResponse>;
22
20
  sendNotificationToManyDevices(sendTo: string[], title: string, body?: string, data?: string, platform?: string, doNotStore?: boolean, isSilent?: boolean): Promise<SendNotificationResponse>;
23
21
  sendNotificationToManyDevices(sendTo: string[], title: string, options?: SendNotificationOptions): Promise<SendNotificationResponse>;
24
22
  }
@@ -10,6 +10,7 @@ export interface SendMessageRequest {
10
10
  roomId: string;
11
11
  messageType?: string | undefined;
12
12
  persist?: boolean | undefined;
13
+ files: string[];
13
14
  }
14
15
  export interface DeleteRoomRequest {
15
16
  _id: string;
@@ -502,6 +502,28 @@ export declare const DatabaseProviderDefinition: {
502
502
  readonly responseStream: false;
503
503
  readonly options: {};
504
504
  };
505
+ readonly generateId: {
506
+ readonly name: "GenerateId";
507
+ readonly requestType: {
508
+ encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
509
+ decode(input: _m0.Reader | Uint8Array, length?: number): Empty;
510
+ fromJSON(_: any): Empty;
511
+ toJSON(_: Empty): unknown;
512
+ create(base?: {}): Empty;
513
+ fromPartial(_: {}): Empty;
514
+ };
515
+ readonly requestStream: false;
516
+ readonly responseType: {
517
+ encode(message: GetDatabaseTypeResponse, writer?: _m0.Writer): _m0.Writer;
518
+ decode(input: _m0.Reader | Uint8Array, length?: number): GetDatabaseTypeResponse;
519
+ fromJSON(object: any): GetDatabaseTypeResponse;
520
+ toJSON(message: GetDatabaseTypeResponse): unknown;
521
+ create(base?: DeepPartial<GetDatabaseTypeResponse>): GetDatabaseTypeResponse;
522
+ fromPartial(object: DeepPartial<GetDatabaseTypeResponse>): GetDatabaseTypeResponse;
523
+ };
524
+ readonly responseStream: false;
525
+ readonly options: {};
526
+ };
505
527
  /** Database queries */
506
528
  readonly findOne: {
507
529
  readonly name: "findOne";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conduitplatform/grpc-sdk",
3
- "version": "0.16.25",
3
+ "version": "0.16.28",
4
4
  "main": "dist/index.cjs",
5
5
  "module": "dist/index.esm.js",
6
6
  "types": "dist/index.d.ts",