@squidcloud/client 1.0.318 → 1.0.319

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.
@@ -3,13 +3,19 @@ export interface MmCreateMatchMakerRequest {
3
3
  matchMaker: MmMatchMaker;
4
4
  }
5
5
  export interface MmDeleteEntityRequest {
6
+ matchMakerId: string;
6
7
  entityId: string;
7
8
  }
8
9
  export interface MmInsertEntityRequest {
9
10
  matchMakerId: string;
10
11
  entity: MmEntity;
11
12
  }
13
+ export interface MmInsertEntitiesRequest {
14
+ matchMakerId: string;
15
+ entities: Array<MmEntity>;
16
+ }
12
17
  export interface MmFindMatchesRequest {
18
+ matchMakerId: string;
13
19
  entityId: string;
14
20
  options: MmFindMatchesOptions;
15
21
  }
@@ -24,6 +24,11 @@ export declare class MatchMaker {
24
24
  private readonly rpcManager;
25
25
  /** Adds a new entity to the matchmaker - replaces existing entity with the same ID if exists. */
26
26
  insertEntity(entity: MmEntity): Promise<void>;
27
+ /**
28
+ * Adds a new entities to the matchmaker - replaces existing entities with the same ID if exists.
29
+ * This method is more efficient than calling insertEntity multiple times.
30
+ */
31
+ insertManyEntities(entities: Array<MmEntity>): Promise<void>;
27
32
  delete(): Promise<void>;
28
33
  deleteEntity(entityId: string): Promise<void>;
29
34
  /** Finds matches for the given entity id. */
@@ -1 +1 @@
1
- export declare const SQUIDCLOUD_CLIENT_PACKAGE_VERSION = "1.0.318";
1
+ export declare const SQUIDCLOUD_CLIENT_PACKAGE_VERSION = "1.0.319";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squidcloud/client",
3
- "version": "1.0.318",
3
+ "version": "1.0.319",
4
4
  "description": "A typescript implementation of the Squid client",
5
5
  "main": "dist/cjs/index.js",
6
6
  "types": "dist/typescript-client/src/index.d.ts",