Skip to content

Commit 7a00a0e

Browse files
committed
chore: build
1 parent 457565b commit 7a00a0e

152 files changed

Lines changed: 4798 additions & 1138 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

dist/typesense.js

Lines changed: 2719 additions & 1077 deletions
Large diffs are not rendered by default.

dist/typesense.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/typesense.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/typesense.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/Typesense/Alias.d.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,23 @@ export default class Alias {
44
private name;
55
private apiCall;
66
constructor(name: string, apiCall: ApiCall);
7+
/**
8+
* Find out which collection an alias points to by fetching it
9+
*
10+
* @example
11+
* await client.aliases("my-alias").retrieve()
12+
*
13+
* @see https://typesense.org/docs/latest/api/collection-alias.html#retrieve-an-alias
14+
*/
715
retrieve(): Promise<CollectionAliasSchema>;
16+
/**
17+
* Delete an alias
18+
*
19+
* @example
20+
* await client.aliases("my-alias").delete()
21+
*
22+
* @see https://typesense.org/docs/latest/api/collection-alias.html#delete-an-alias
23+
*/
824
delete(): Promise<CollectionAliasSchema>;
925
private endpointPath;
1026
}

lib/Typesense/Alias.js

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/Typesense/Alias.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/Typesense/Aliases.d.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,23 @@ export interface CollectionAliasesResponseSchema {
1111
export default class Aliases {
1212
private apiCall;
1313
constructor(apiCall: ApiCall);
14+
/**
15+
* Create or update a collection alias.
16+
*
17+
* @example
18+
* await client.aliases().upsert("my-alias", { collection_name: "products" })
19+
*
20+
* @see https://typesense.org/docs/latest/api/collection-alias.html#create-or-update-an-alias
21+
*/
1422
upsert(name: string, mapping: CollectionAliasCreateSchema): Promise<CollectionAliasSchema>;
23+
/**
24+
* List all aliases and the corresponding collections that they map to.
25+
*
26+
* @example
27+
* await client.aliases().retrieve()
28+
*
29+
* @see https://typesense.org/docs/latest/api/collection-alias.html#list-all-aliases
30+
*/
1531
retrieve(): Promise<CollectionAliasesResponseSchema>;
1632
private endpointPath;
1733
static get RESOURCEPATH(): string;

lib/Typesense/Aliases.js

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/Typesense/Aliases.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)