-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
17 changed files
with
408 additions
and
9 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
clients/algoliasearch-client-javascript/client-search/model/deleteIndexResponse.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
export type DeleteIndexResponse = { | ||
/** | ||
* TaskID of the indexing task to wait for. | ||
*/ | ||
taskID?: number; | ||
/** | ||
* Date of deletion (ISO-8601 format). | ||
*/ | ||
deleteAt?: Date; | ||
}; |
46 changes: 46 additions & 0 deletions
46
clients/algoliasearch-client-javascript/client-search/model/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
export type Index = { | ||
/** | ||
* Index name. | ||
*/ | ||
name: string; | ||
/** | ||
* Index creation date. An empty string means that the index has no records. | ||
*/ | ||
createdAt: Date; | ||
/** | ||
* Date of last update (ISO-8601 format). | ||
*/ | ||
updatedAt: Date; | ||
/** | ||
* Number of records contained in the index. | ||
*/ | ||
entries: number; | ||
/** | ||
* Number of bytes of the index in minified format. | ||
*/ | ||
dataSize: number; | ||
/** | ||
* Number of bytes of the index binary file. | ||
*/ | ||
fileSize: number; | ||
/** | ||
* Last build time. | ||
*/ | ||
lastBuildTimeS: number; | ||
/** | ||
* Number of pending indexing operations. This value is deprecated and should not be used. | ||
*/ | ||
numberOfPendingTask?: number; | ||
/** | ||
* A boolean which says whether the index has pending tasks. This value is deprecated and should not be used. | ||
*/ | ||
pendingTask: boolean; | ||
/** | ||
* Only present if the index is a replica. Contains the name of the related primary index. | ||
*/ | ||
primary?: string; | ||
/** | ||
* Only present if the index is a primary index with replicas. Contains the names of all linked replicas. | ||
*/ | ||
replicas?: string[]; | ||
}; |
6 changes: 6 additions & 0 deletions
6
clients/algoliasearch-client-javascript/client-search/model/listIndicesObject.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export type ListIndicesObject = { | ||
/** | ||
* Requested page (zero-based). When specified, will retrieve a specific page; the page size is implicitly set to 100. When null, will retrieve all indices (no pagination). | ||
*/ | ||
page?: number | null; | ||
}; |
12 changes: 12 additions & 0 deletions
12
clients/algoliasearch-client-javascript/client-search/model/listIndicesResponse.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import type { Index } from './index'; | ||
|
||
export type ListIndicesResponse = { | ||
/** | ||
* List of the fetched indices. | ||
*/ | ||
items?: Index[]; | ||
/** | ||
* Number of pages. | ||
*/ | ||
nbPages?: number; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
clients/algoliasearch-client-javascript/client-search/model/operationIndexObject.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
export type OperationIndexObject = { | ||
/** | ||
* Type of operation to perform (move or copy). | ||
*/ | ||
operation: OperationIndexObject.OperationEnum; | ||
/** | ||
* The Algolia index name. | ||
*/ | ||
destination: string; | ||
/** | ||
* Scope of the data to copy. When absent, a full copy is performed. When present, only the selected scopes are copied. | ||
*/ | ||
scope?: OperationIndexObject.ScopeEnum[]; | ||
}; | ||
|
||
export namespace OperationIndexObject { | ||
export enum OperationEnum { | ||
Move = 'move', | ||
Copy = 'copy', | ||
} | ||
export enum ScopeEnum { | ||
Settings = 'settings', | ||
Synonyms = 'synonyms', | ||
Rules = 'rules', | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
clients/algoliasearch-client-javascript/client-search/model/operationIndexResponse.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
export type OperationIndexResponse = { | ||
/** | ||
* TaskID of the indexing task to wait for. | ||
*/ | ||
taskID?: number; | ||
/** | ||
* Date of last update (ISO-8601 format). | ||
*/ | ||
updatedAt?: Date; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
listIndicesResponse: | ||
type: object | ||
additionalProperties: false | ||
properties: | ||
items: | ||
type: array | ||
description: List of the fetched indices. | ||
items: | ||
$ref: '#/index' | ||
nbPages: | ||
type: integer | ||
description: Number of pages. | ||
example: 100 | ||
|
||
index: | ||
type: object | ||
additionalProperties: false | ||
properties: | ||
name: | ||
type: string | ||
description: Index name. | ||
createdAt: | ||
type: string | ||
format: date-time | ||
description: Index creation date. An empty string means that the index has no records. | ||
updatedAt: | ||
$ref: '../../../common/parameters.yml#/updatedAt' | ||
entries: | ||
type: integer | ||
description: Number of records contained in the index. | ||
dataSize: | ||
type: integer | ||
description: Number of bytes of the index in minified format. | ||
fileSize: | ||
type: integer | ||
description: Number of bytes of the index binary file. | ||
lastBuildTimeS: | ||
type: integer | ||
description: Last build time | ||
numberOfPendingTask: | ||
type: integer | ||
description: Number of pending indexing operations. This value is deprecated and should not be used. | ||
pendingTask: | ||
type: boolean | ||
description: A boolean which says whether the index has pending tasks. This value is deprecated and should not be used. | ||
primary: | ||
type: string | ||
description: Only present if the index is a replica. Contains the name of the related primary index. | ||
replicas: | ||
type: array | ||
items: | ||
type: string | ||
description: Only present if the index is a primary index with replicas. Contains the names of all linked replicas. | ||
required: | ||
- name | ||
- createdAt | ||
- updatedAt | ||
- entries | ||
- dataSize | ||
- fileSize | ||
- lastBuildTimeS | ||
- pendingTask |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,23 @@ | ||
get: | ||
tags: | ||
- search | ||
operationId: listIndices | ||
summary: List existing indexes. | ||
description: List existing indexes from an application. | ||
parameters: | ||
- $ref: '../../../common/parameters.yml#/Page' | ||
responses: | ||
'200': | ||
description: OK | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../../common/schemas/listIndicesResponse.yml#/listIndicesResponse' | ||
'400': | ||
$ref: '../../../common/responses/BadRequest.yml' | ||
'402': | ||
$ref: '../../../common/responses/FeatureNotEnabled.yml' | ||
'403': | ||
$ref: '../../../common/responses/MethodNotAllowed.yml' | ||
'404': | ||
$ref: '../../../common/responses/IndexNotFound.yml' |
Oops, something went wrong.