@synnaxlabs/client 0.17.0 → 0.17.2

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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @synnaxlabs/client@0.17.0 build /home/runner/work/synnax/synnax/client/ts
2
+ > @synnaxlabs/client@0.17.2 build /home/runner/work/synnax/synnax/client/ts
3
3
  > tsc --noEmit && vite build
4
4
 
5
5
  vite v5.1.2 building for production...
@@ -9,8 +9,8 @@ rendering chunks...
9
9
  
10
10
  [vite:dts] Start generate declaration files...
11
11
  computing gzip size...
12
- dist/client.js 531.40 kB │ gzip: 116.81 kB │ map: 1,194.37 kB
13
- [vite:dts] Declaration files built in 3700ms.
12
+ dist/client.js 531.80 kB │ gzip: 116.94 kB │ map: 1,195.62 kB
13
+ [vite:dts] Declaration files built in 3744ms.
14
14
  
15
- dist/client.cjs 350.50 kB │ gzip: 92.44 kB │ map: 1,139.49 kB
16
- ✓ built in 5.25s
15
+ dist/client.cjs 350.76 kB │ gzip: 92.53 kB │ map: 1,140.70 kB
16
+ ✓ built in 5.29s
@@ -4,6 +4,9 @@ import { type Creator } from './creator';
4
4
  import { type Key, type KeyOrName, type Params, type Payload, type NewPayload } from './payload';
5
5
  import { type Retriever } from './retriever';
6
6
  import { type framer } from '../framer';
7
+ interface CreateOptions {
8
+ retrieveIfNameExists?: boolean;
9
+ }
7
10
  /**
8
11
  * Represents a Channel in a Synnax database. Typically, channels should not be
9
12
  * instantiated directly, but instead created via the `.channels.create` or retrieved
@@ -125,7 +128,7 @@ export declare class Client implements AsyncTermSearcher<string, Key, Channel> {
125
128
  * });
126
129
  * ```
127
130
  */
128
- create(channel: NewPayload): Promise<Channel>;
131
+ create(channel: NewPayload, options?: CreateOptions): Promise<Channel>;
129
132
  /**
130
133
  * Creates multiple channels with the given properties. The order of the channels
131
134
  * returned is guaranteed to match the order of the channels passed in.
@@ -149,7 +152,7 @@ export declare class Client implements AsyncTermSearcher<string, Key, Channel> {
149
152
  *
150
153
  * @param channels
151
154
  */
152
- create(channels: NewPayload[]): Promise<Channel[]>;
155
+ create(channels: NewPayload[], options?: CreateOptions): Promise<Channel[]>;
153
156
  /**
154
157
  * Retrieves a channel from the database using the given key or name.
155
158
  *
@@ -192,3 +195,4 @@ export declare class Client implements AsyncTermSearcher<string, Key, Channel> {
192
195
  createDebouncedBatchRetriever(deb?: number): Retriever;
193
196
  private sugar;
194
197
  }
198
+ export {};