@wix/auto_sdk_data_indexes 1.0.8 → 1.0.9
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.
- package/build/{es/src/data-v2-index-indexes.types.d.ts → data-v2-index-indexes.universal-BbNMyDRQ.d.mts} +26 -22
- package/build/{cjs/src/data-v2-index-indexes.types.d.ts → data-v2-index-indexes.universal-BbNMyDRQ.d.ts} +26 -22
- package/build/{es/src/data-v2-index-indexes.public.d.ts → index.d.mts} +13 -9
- package/build/{internal/cjs/src/data-v2-index-indexes.public.d.ts → index.d.ts} +13 -18
- package/build/index.js +629 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +598 -0
- package/build/index.mjs.map +1 -0
- package/build/internal/{cjs/src/data-v2-index-indexes.types.d.ts → data-v2-index-indexes.universal-DRs6_tQv.d.mts} +26 -22
- package/build/internal/{es/src/data-v2-index-indexes.types.d.ts → data-v2-index-indexes.universal-DRs6_tQv.d.ts} +26 -22
- package/build/{cjs/src/data-v2-index-indexes.public.d.ts → internal/index.d.mts} +24 -9
- package/build/internal/{es/src/data-v2-index-indexes.public.d.ts → index.d.ts} +16 -10
- package/build/internal/index.js +629 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +598 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +215 -0
- package/build/internal/meta.d.ts +215 -0
- package/build/internal/meta.js +512 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +482 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/meta.d.mts +215 -0
- package/build/meta.d.ts +215 -0
- package/build/meta.js +512 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +482 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +12 -11
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/data-v2-index-indexes.context.d.ts +0 -7
- package/build/cjs/src/data-v2-index-indexes.context.js +0 -16
- package/build/cjs/src/data-v2-index-indexes.context.js.map +0 -1
- package/build/cjs/src/data-v2-index-indexes.http.d.ts +0 -30
- package/build/cjs/src/data-v2-index-indexes.http.js +0 -433
- package/build/cjs/src/data-v2-index-indexes.http.js.map +0 -1
- package/build/cjs/src/data-v2-index-indexes.meta.d.ts +0 -16
- package/build/cjs/src/data-v2-index-indexes.meta.js +0 -104
- package/build/cjs/src/data-v2-index-indexes.meta.js.map +0 -1
- package/build/cjs/src/data-v2-index-indexes.public.js +0 -36
- package/build/cjs/src/data-v2-index-indexes.public.js.map +0 -1
- package/build/cjs/src/data-v2-index-indexes.types.js +0 -52
- package/build/cjs/src/data-v2-index-indexes.types.js.map +0 -1
- package/build/cjs/src/data-v2-index-indexes.universal.d.ts +0 -285
- package/build/cjs/src/data-v2-index-indexes.universal.js +0 -261
- package/build/cjs/src/data-v2-index-indexes.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/data-v2-index-indexes.context.d.ts +0 -7
- package/build/es/src/data-v2-index-indexes.context.js +0 -9
- package/build/es/src/data-v2-index-indexes.context.js.map +0 -1
- package/build/es/src/data-v2-index-indexes.http.d.ts +0 -30
- package/build/es/src/data-v2-index-indexes.http.js +0 -426
- package/build/es/src/data-v2-index-indexes.http.js.map +0 -1
- package/build/es/src/data-v2-index-indexes.meta.d.ts +0 -16
- package/build/es/src/data-v2-index-indexes.meta.js +0 -74
- package/build/es/src/data-v2-index-indexes.meta.js.map +0 -1
- package/build/es/src/data-v2-index-indexes.public.js +0 -25
- package/build/es/src/data-v2-index-indexes.public.js.map +0 -1
- package/build/es/src/data-v2-index-indexes.types.js +0 -49
- package/build/es/src/data-v2-index-indexes.types.js.map +0 -1
- package/build/es/src/data-v2-index-indexes.universal.d.ts +0 -285
- package/build/es/src/data-v2-index-indexes.universal.js +0 -231
- package/build/es/src/data-v2-index-indexes.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/data-v2-index-indexes.context.d.ts +0 -9
- package/build/internal/cjs/src/data-v2-index-indexes.context.js +0 -16
- package/build/internal/cjs/src/data-v2-index-indexes.context.js.map +0 -1
- package/build/internal/cjs/src/data-v2-index-indexes.http.d.ts +0 -30
- package/build/internal/cjs/src/data-v2-index-indexes.http.js +0 -433
- package/build/internal/cjs/src/data-v2-index-indexes.http.js.map +0 -1
- package/build/internal/cjs/src/data-v2-index-indexes.meta.d.ts +0 -16
- package/build/internal/cjs/src/data-v2-index-indexes.meta.js +0 -104
- package/build/internal/cjs/src/data-v2-index-indexes.meta.js.map +0 -1
- package/build/internal/cjs/src/data-v2-index-indexes.public.js +0 -36
- package/build/internal/cjs/src/data-v2-index-indexes.public.js.map +0 -1
- package/build/internal/cjs/src/data-v2-index-indexes.types.js +0 -52
- package/build/internal/cjs/src/data-v2-index-indexes.types.js.map +0 -1
- package/build/internal/cjs/src/data-v2-index-indexes.universal.d.ts +0 -300
- package/build/internal/cjs/src/data-v2-index-indexes.universal.js +0 -261
- package/build/internal/cjs/src/data-v2-index-indexes.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/data-v2-index-indexes.context.d.ts +0 -9
- package/build/internal/es/src/data-v2-index-indexes.context.js +0 -9
- package/build/internal/es/src/data-v2-index-indexes.context.js.map +0 -1
- package/build/internal/es/src/data-v2-index-indexes.http.d.ts +0 -30
- package/build/internal/es/src/data-v2-index-indexes.http.js +0 -426
- package/build/internal/es/src/data-v2-index-indexes.http.js.map +0 -1
- package/build/internal/es/src/data-v2-index-indexes.meta.d.ts +0 -16
- package/build/internal/es/src/data-v2-index-indexes.meta.js +0 -74
- package/build/internal/es/src/data-v2-index-indexes.meta.js.map +0 -1
- package/build/internal/es/src/data-v2-index-indexes.public.js +0 -25
- package/build/internal/es/src/data-v2-index-indexes.public.js.map +0 -1
- package/build/internal/es/src/data-v2-index-indexes.types.js +0 -49
- package/build/internal/es/src/data-v2-index-indexes.types.js.map +0 -1
- package/build/internal/es/src/data-v2-index-indexes.universal.d.ts +0 -300
- package/build/internal/es/src/data-v2-index-indexes.universal.js +0 -231
- package/build/internal/es/src/data-v2-index-indexes.universal.js.map +0 -1
|
@@ -1,300 +0,0 @@
|
|
|
1
|
-
import { NonNullablePaths } from '@wix/sdk-types';
|
|
2
|
-
/** An index is a map of a collection's data, organized according to specific fields to increase query speed. */
|
|
3
|
-
export interface Index {
|
|
4
|
-
/**
|
|
5
|
-
* Name of the index.
|
|
6
|
-
* @minLength 1
|
|
7
|
-
* @maxLength 128
|
|
8
|
-
*/
|
|
9
|
-
name?: string;
|
|
10
|
-
/**
|
|
11
|
-
* Fields for which the index is defined.
|
|
12
|
-
*
|
|
13
|
-
* Max: 3 fields (for a unique index: 1 field)
|
|
14
|
-
* @minSize 1
|
|
15
|
-
* @maxSize 3
|
|
16
|
-
*/
|
|
17
|
-
fields?: Field[];
|
|
18
|
-
/**
|
|
19
|
-
* Current status of the index.
|
|
20
|
-
* @readonly
|
|
21
|
-
*/
|
|
22
|
-
status?: StatusWithLiterals;
|
|
23
|
-
/**
|
|
24
|
-
* Contains details about the reasons for failure when `status` is `FAILED`.
|
|
25
|
-
* @readonly
|
|
26
|
-
*/
|
|
27
|
-
failure?: Failure;
|
|
28
|
-
/**
|
|
29
|
-
* Whether the index enforces uniqueness of values in the field for which it is defined.
|
|
30
|
-
* If `true`, the index can have only one field.
|
|
31
|
-
*
|
|
32
|
-
* Default: `false`
|
|
33
|
-
*/
|
|
34
|
-
unique?: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* Whether the index ignores case.
|
|
37
|
-
*
|
|
38
|
-
* Default: `false`
|
|
39
|
-
*/
|
|
40
|
-
caseInsensitive?: boolean;
|
|
41
|
-
/** Specifies the origin of the index definition. */
|
|
42
|
-
source?: IndexSourceWithLiterals;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Order determines how values are ordered in the index. This is important when
|
|
46
|
-
* ordering and/or range querying by indexed fields.
|
|
47
|
-
*/
|
|
48
|
-
export declare enum Order {
|
|
49
|
-
ASC = "ASC",
|
|
50
|
-
DESC = "DESC"
|
|
51
|
-
}
|
|
52
|
-
/** @enumType */
|
|
53
|
-
export type OrderWithLiterals = Order | 'ASC' | 'DESC';
|
|
54
|
-
export interface Field {
|
|
55
|
-
/**
|
|
56
|
-
* Path of the field to index. For example: `title` or `options.price`.
|
|
57
|
-
* @minLength 1
|
|
58
|
-
* @maxLength 128
|
|
59
|
-
*/
|
|
60
|
-
path?: string;
|
|
61
|
-
/**
|
|
62
|
-
* Sort order for the index. Base on how the data is regularly queried.
|
|
63
|
-
*
|
|
64
|
-
* Default: `ASC`
|
|
65
|
-
*/
|
|
66
|
-
order?: OrderWithLiterals;
|
|
67
|
-
}
|
|
68
|
-
export declare enum Status {
|
|
69
|
-
/** Place holder. Never returned by the service. */
|
|
70
|
-
UNKNOWN = "UNKNOWN",
|
|
71
|
-
/** Index creation is in progress. */
|
|
72
|
-
BUILDING = "BUILDING",
|
|
73
|
-
/** Index has been successfully created and can be used in queries. */
|
|
74
|
-
ACTIVE = "ACTIVE",
|
|
75
|
-
/** Index is in the process of being dropped. */
|
|
76
|
-
DROPPING = "DROPPING",
|
|
77
|
-
/** Index has been dropped successfully. */
|
|
78
|
-
DROPPED = "DROPPED",
|
|
79
|
-
/** Index creation has failed. */
|
|
80
|
-
FAILED = "FAILED",
|
|
81
|
-
/** Index contains incorrectly indexed data. */
|
|
82
|
-
INVALID = "INVALID"
|
|
83
|
-
}
|
|
84
|
-
/** @enumType */
|
|
85
|
-
export type StatusWithLiterals = Status | 'UNKNOWN' | 'BUILDING' | 'ACTIVE' | 'DROPPING' | 'DROPPED' | 'FAILED' | 'INVALID';
|
|
86
|
-
export interface Failure {
|
|
87
|
-
/**
|
|
88
|
-
* Error code.
|
|
89
|
-
* - `WDE0112`: Unknown error while building collection index.
|
|
90
|
-
* - `WDE0113`: Duplicate key error while building collection index.
|
|
91
|
-
* - `WDE0114`: Document too large while building collection index.
|
|
92
|
-
* @maxLength 7
|
|
93
|
-
*/
|
|
94
|
-
code?: string;
|
|
95
|
-
/**
|
|
96
|
-
* Description of the failure.
|
|
97
|
-
* @maxLength 1024
|
|
98
|
-
*/
|
|
99
|
-
description?: string;
|
|
100
|
-
/**
|
|
101
|
-
* ID of the data item that caused the failure.
|
|
102
|
-
* For example, if `unique` is `true`, the ID of an item containing a duplicate value.
|
|
103
|
-
* @maxLength 16000
|
|
104
|
-
*/
|
|
105
|
-
itemId?: string | null;
|
|
106
|
-
}
|
|
107
|
-
export declare enum IndexSource {
|
|
108
|
-
/** Place holder. Never returned by the service. */
|
|
109
|
-
UNKNOWN_INDEX_SOURCE = "UNKNOWN_INDEX_SOURCE",
|
|
110
|
-
/** Index is created by the system, present for all collections. */
|
|
111
|
-
SYSTEM = "SYSTEM",
|
|
112
|
-
/** Index was created by a user via API or UI. */
|
|
113
|
-
USER = "USER",
|
|
114
|
-
/** Index is created automatically by the system based on user queries. */
|
|
115
|
-
AUTO = "AUTO"
|
|
116
|
-
}
|
|
117
|
-
/** @enumType */
|
|
118
|
-
export type IndexSourceWithLiterals = IndexSource | 'UNKNOWN_INDEX_SOURCE' | 'SYSTEM' | 'USER' | 'AUTO';
|
|
119
|
-
export interface CreateIndexRequest {
|
|
120
|
-
/** Details of the index to be created. */
|
|
121
|
-
index: Index;
|
|
122
|
-
/**
|
|
123
|
-
* ID of the data collection for which to generate the index.
|
|
124
|
-
* @maxLength 256
|
|
125
|
-
*/
|
|
126
|
-
dataCollectionId: string;
|
|
127
|
-
}
|
|
128
|
-
export declare enum Environment {
|
|
129
|
-
/** Place holder. Never returned by the service. */
|
|
130
|
-
UNKNOWN_ENVIRONMENT = "UNKNOWN_ENVIRONMENT",
|
|
131
|
-
/** Collection [sandbox environment](https://support.wix.com/en/article/cms-about-sandbox-and-live-collections-and-syncing#sandbox-collections). */
|
|
132
|
-
SANDBOX = "SANDBOX",
|
|
133
|
-
/** If the [collection's sandbox environment is enabled](https://support.wix.com/en/article/cms-accessing-and-syncing-your-sandbox-and-live-collections#enabling-sandbox-collections), run the task in the collection's sandbox environment. If not, run the task in the collection's live environment. */
|
|
134
|
-
SANDBOX_PREFERRED = "SANDBOX_PREFERRED",
|
|
135
|
-
/** Collection [live environment](https://support.wix.com/en/article/cms-about-sandbox-and-live-collections-and-syncing#live-collections). */
|
|
136
|
-
LIVE = "LIVE"
|
|
137
|
-
}
|
|
138
|
-
/** @enumType */
|
|
139
|
-
export type EnvironmentWithLiterals = Environment | 'UNKNOWN_ENVIRONMENT' | 'SANDBOX' | 'SANDBOX_PREFERRED' | 'LIVE';
|
|
140
|
-
export interface CreateIndexResponse {
|
|
141
|
-
/** Details of the index being generated. */
|
|
142
|
-
index?: Index;
|
|
143
|
-
}
|
|
144
|
-
export interface DropIndexRequest {
|
|
145
|
-
/**
|
|
146
|
-
* Name of the index to drop.
|
|
147
|
-
* @minLength 1
|
|
148
|
-
* @maxLength 128
|
|
149
|
-
*/
|
|
150
|
-
indexName: string;
|
|
151
|
-
/**
|
|
152
|
-
* ID of the data collection for which the index to be dropped is defined.
|
|
153
|
-
* @maxLength 1024
|
|
154
|
-
*/
|
|
155
|
-
dataCollectionId: string;
|
|
156
|
-
}
|
|
157
|
-
export interface DropIndexResponse {
|
|
158
|
-
}
|
|
159
|
-
export interface ListIndexesRequest {
|
|
160
|
-
/**
|
|
161
|
-
* ID of the data collection for which to list indexes.
|
|
162
|
-
* @maxLength 1024
|
|
163
|
-
*/
|
|
164
|
-
dataCollectionId: string;
|
|
165
|
-
/** Paging options to limit and skip the number of items. */
|
|
166
|
-
paging?: Paging;
|
|
167
|
-
}
|
|
168
|
-
export interface Paging {
|
|
169
|
-
/** Number of items to load. */
|
|
170
|
-
limit?: number | null;
|
|
171
|
-
/** Number of items to skip in the current sort order. */
|
|
172
|
-
offset?: number | null;
|
|
173
|
-
}
|
|
174
|
-
export interface ListIndexesResponse {
|
|
175
|
-
/** List of all indexes for the requested data collection. */
|
|
176
|
-
indexes?: Index[];
|
|
177
|
-
/** Paging metadata. */
|
|
178
|
-
pagingMetadata?: PagingMetadata;
|
|
179
|
-
}
|
|
180
|
-
export interface PagingMetadata {
|
|
181
|
-
/** Number of items returned in the response. */
|
|
182
|
-
count?: number | null;
|
|
183
|
-
/** Offset that was requested. */
|
|
184
|
-
offset?: number | null;
|
|
185
|
-
/** Total number of items that match the query. */
|
|
186
|
-
total?: number | null;
|
|
187
|
-
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
188
|
-
tooManyToCount?: boolean | null;
|
|
189
|
-
}
|
|
190
|
-
export interface ListAvailableIndexesRequest {
|
|
191
|
-
/**
|
|
192
|
-
* Data collection to show available indexes for
|
|
193
|
-
* @maxLength 256
|
|
194
|
-
*/
|
|
195
|
-
dataCollectionId: string;
|
|
196
|
-
}
|
|
197
|
-
export interface ListAvailableIndexesResponse {
|
|
198
|
-
/**
|
|
199
|
-
* limit of regular single-field indexes, even if 0 1-field indices may be created using
|
|
200
|
-
* 3-field quota (if available)
|
|
201
|
-
*/
|
|
202
|
-
regular1Field?: number;
|
|
203
|
-
/** limit of regular indexes up to 3-fields (in addition to 1-field indexes quota) */
|
|
204
|
-
regular3Field?: number;
|
|
205
|
-
/** limit of unique indexes */
|
|
206
|
-
unique1Field?: number;
|
|
207
|
-
/** Overall index limit, missing value means there's no overall limit */
|
|
208
|
-
total?: number | null;
|
|
209
|
-
}
|
|
210
|
-
type IndexNonNullablePaths = `name` | `fields` | `fields.${number}.path` | `fields.${number}.order` | `status` | `failure.code` | `failure.description` | `unique` | `caseInsensitive` | `source`;
|
|
211
|
-
/**
|
|
212
|
-
* Creates an index for a data collection.
|
|
213
|
-
*
|
|
214
|
-
* The index can't be used immediately, as the process of generating the index takes time.
|
|
215
|
-
* You can check whether an index is ready by calling List Indexes.
|
|
216
|
-
*
|
|
217
|
-
* Note that when an index fails to create, the failed index still occupies a slot.
|
|
218
|
-
* To remove the failed index and free up the slot for a new index, call Drop Index.
|
|
219
|
-
* @param dataCollectionId - ID of the data collection for which to generate the index.
|
|
220
|
-
* @param index - Details of the index to be created.
|
|
221
|
-
* @public
|
|
222
|
-
* @requiredField dataCollectionId
|
|
223
|
-
* @requiredField index
|
|
224
|
-
* @requiredField index.fields
|
|
225
|
-
* @requiredField index.fields.path
|
|
226
|
-
* @requiredField index.name
|
|
227
|
-
* @param options - Options for creating an index.
|
|
228
|
-
* @permissionId WIX_DATA.CREATE_INDEX
|
|
229
|
-
* @permissionScope Manage Data Indexes
|
|
230
|
-
* @permissionScopeId SCOPE.DC-DATA.INDEXES-MANAGE
|
|
231
|
-
* @permissionScope Manage All Data Resources
|
|
232
|
-
* @permissionScopeId SCOPE.DC-DATA.MANAGE-ALL
|
|
233
|
-
* @applicableIdentity APP
|
|
234
|
-
* @returns Details of the index being generated.
|
|
235
|
-
* @fqn com.wixpress.cloud.data.api.index.IndexService.CreateIndex
|
|
236
|
-
*/
|
|
237
|
-
export declare function createIndex(dataCollectionId: string, index: NonNullablePaths<Index, `fields` | `fields.${number}.path` | `name`>): Promise<NonNullablePaths<Index, IndexNonNullablePaths>>;
|
|
238
|
-
/**
|
|
239
|
-
* Removes an index from a data collection.
|
|
240
|
-
*
|
|
241
|
-
* The process of dropping an index from a collection takes time.
|
|
242
|
-
* You can check whether an index has been dropped by calling List Indexes.
|
|
243
|
-
* @param dataCollectionId - ID of the data collection for which the index to be dropped is defined.
|
|
244
|
-
* @param indexName - Name of the index to drop.
|
|
245
|
-
* @public
|
|
246
|
-
* @requiredField dataCollectionId
|
|
247
|
-
* @requiredField indexName
|
|
248
|
-
* @param options - Options for dropping an index.
|
|
249
|
-
* @permissionId WIX_DATA.DROP_INDEX
|
|
250
|
-
* @permissionScope Manage Data Indexes
|
|
251
|
-
* @permissionScopeId SCOPE.DC-DATA.INDEXES-MANAGE
|
|
252
|
-
* @permissionScope Manage All Data Resources
|
|
253
|
-
* @permissionScopeId SCOPE.DC-DATA.MANAGE-ALL
|
|
254
|
-
* @applicableIdentity APP
|
|
255
|
-
* @fqn com.wixpress.cloud.data.api.index.IndexService.DropIndex
|
|
256
|
-
*/
|
|
257
|
-
export declare function dropIndex(dataCollectionId: string, indexName: string): Promise<void>;
|
|
258
|
-
/**
|
|
259
|
-
* Lists all indexes defined for a data collection.
|
|
260
|
-
*
|
|
261
|
-
* When an index's status is `ACTIVE`, it is ready to use.
|
|
262
|
-
* While it is still being created, its status is `BUILDING`.
|
|
263
|
-
*
|
|
264
|
-
* When an index's status is `DROPPED`, it has been dropped successfully.
|
|
265
|
-
* While it is still in the process of being removed, its status is `DROPPING`.
|
|
266
|
-
* @param dataCollectionId - ID of the data collection for which to list indexes.
|
|
267
|
-
* @public
|
|
268
|
-
* @requiredField dataCollectionId
|
|
269
|
-
* @param options - Options for retrieving a list of indexes.
|
|
270
|
-
* @permissionId WIX_DATA.LIST_INDEXES
|
|
271
|
-
* @permissionScope Manage Data Indexes
|
|
272
|
-
* @permissionScopeId SCOPE.DC-DATA.INDEXES-MANAGE
|
|
273
|
-
* @permissionScope Manage All Data Resources
|
|
274
|
-
* @permissionScopeId SCOPE.DC-DATA.MANAGE-ALL
|
|
275
|
-
* @applicableIdentity APP
|
|
276
|
-
* @fqn com.wixpress.cloud.data.api.index.IndexService.ListIndexes
|
|
277
|
-
*/
|
|
278
|
-
export declare function listIndexes(dataCollectionId: string, options?: ListIndexesOptions): Promise<NonNullablePaths<ListIndexesResponse, {
|
|
279
|
-
[P in IndexNonNullablePaths]: `indexes.${number}.${P}`;
|
|
280
|
-
}[IndexNonNullablePaths]>>;
|
|
281
|
-
export interface ListIndexesOptions {
|
|
282
|
-
/** Paging options to limit and skip the number of items. */
|
|
283
|
-
paging?: Paging;
|
|
284
|
-
}
|
|
285
|
-
/**
|
|
286
|
-
* Lists available indexes limits
|
|
287
|
-
* @param dataCollectionId - Data collection to show available indexes for
|
|
288
|
-
* @internal
|
|
289
|
-
* @documentationMaturity preview
|
|
290
|
-
* @requiredField dataCollectionId
|
|
291
|
-
* @permissionId WIX_DATA.LIST_INDEXES
|
|
292
|
-
* @permissionScope Manage Data Indexes
|
|
293
|
-
* @permissionScopeId SCOPE.DC-DATA.INDEXES-MANAGE
|
|
294
|
-
* @permissionScope Manage All Data Resources
|
|
295
|
-
* @permissionScopeId SCOPE.DC-DATA.MANAGE-ALL
|
|
296
|
-
* @applicableIdentity APP
|
|
297
|
-
* @fqn com.wixpress.cloud.data.api.index.IndexService.ListAvailableIndexes
|
|
298
|
-
*/
|
|
299
|
-
export declare function listAvailableIndexes(dataCollectionId: string): Promise<NonNullablePaths<ListAvailableIndexesResponse, `regular1Field` | `regular3Field` | `unique1Field`>>;
|
|
300
|
-
export {};
|
|
@@ -1,261 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.listAvailableIndexes = exports.listIndexes = exports.dropIndex = exports.createIndex = exports.Environment = exports.IndexSource = exports.Status = exports.Order = void 0;
|
|
27
|
-
const transform_error_1 = require("@wix/sdk-runtime/transform-error");
|
|
28
|
-
const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
29
|
-
const ambassadorWixDataV2Index = __importStar(require("./data-v2-index-indexes.http.js"));
|
|
30
|
-
/**
|
|
31
|
-
* Order determines how values are ordered in the index. This is important when
|
|
32
|
-
* ordering and/or range querying by indexed fields.
|
|
33
|
-
*/
|
|
34
|
-
var Order;
|
|
35
|
-
(function (Order) {
|
|
36
|
-
Order["ASC"] = "ASC";
|
|
37
|
-
Order["DESC"] = "DESC";
|
|
38
|
-
})(Order || (exports.Order = Order = {}));
|
|
39
|
-
var Status;
|
|
40
|
-
(function (Status) {
|
|
41
|
-
/** Place holder. Never returned by the service. */
|
|
42
|
-
Status["UNKNOWN"] = "UNKNOWN";
|
|
43
|
-
/** Index creation is in progress. */
|
|
44
|
-
Status["BUILDING"] = "BUILDING";
|
|
45
|
-
/** Index has been successfully created and can be used in queries. */
|
|
46
|
-
Status["ACTIVE"] = "ACTIVE";
|
|
47
|
-
/** Index is in the process of being dropped. */
|
|
48
|
-
Status["DROPPING"] = "DROPPING";
|
|
49
|
-
/** Index has been dropped successfully. */
|
|
50
|
-
Status["DROPPED"] = "DROPPED";
|
|
51
|
-
/** Index creation has failed. */
|
|
52
|
-
Status["FAILED"] = "FAILED";
|
|
53
|
-
/** Index contains incorrectly indexed data. */
|
|
54
|
-
Status["INVALID"] = "INVALID";
|
|
55
|
-
})(Status || (exports.Status = Status = {}));
|
|
56
|
-
var IndexSource;
|
|
57
|
-
(function (IndexSource) {
|
|
58
|
-
/** Place holder. Never returned by the service. */
|
|
59
|
-
IndexSource["UNKNOWN_INDEX_SOURCE"] = "UNKNOWN_INDEX_SOURCE";
|
|
60
|
-
/** Index is created by the system, present for all collections. */
|
|
61
|
-
IndexSource["SYSTEM"] = "SYSTEM";
|
|
62
|
-
/** Index was created by a user via API or UI. */
|
|
63
|
-
IndexSource["USER"] = "USER";
|
|
64
|
-
/** Index is created automatically by the system based on user queries. */
|
|
65
|
-
IndexSource["AUTO"] = "AUTO";
|
|
66
|
-
})(IndexSource || (exports.IndexSource = IndexSource = {}));
|
|
67
|
-
var Environment;
|
|
68
|
-
(function (Environment) {
|
|
69
|
-
/** Place holder. Never returned by the service. */
|
|
70
|
-
Environment["UNKNOWN_ENVIRONMENT"] = "UNKNOWN_ENVIRONMENT";
|
|
71
|
-
/** Collection [sandbox environment](https://support.wix.com/en/article/cms-about-sandbox-and-live-collections-and-syncing#sandbox-collections). */
|
|
72
|
-
Environment["SANDBOX"] = "SANDBOX";
|
|
73
|
-
/** If the [collection's sandbox environment is enabled](https://support.wix.com/en/article/cms-accessing-and-syncing-your-sandbox-and-live-collections#enabling-sandbox-collections), run the task in the collection's sandbox environment. If not, run the task in the collection's live environment. */
|
|
74
|
-
Environment["SANDBOX_PREFERRED"] = "SANDBOX_PREFERRED";
|
|
75
|
-
/** Collection [live environment](https://support.wix.com/en/article/cms-about-sandbox-and-live-collections-and-syncing#live-collections). */
|
|
76
|
-
Environment["LIVE"] = "LIVE";
|
|
77
|
-
})(Environment || (exports.Environment = Environment = {}));
|
|
78
|
-
/**
|
|
79
|
-
* Creates an index for a data collection.
|
|
80
|
-
*
|
|
81
|
-
* The index can't be used immediately, as the process of generating the index takes time.
|
|
82
|
-
* You can check whether an index is ready by calling List Indexes.
|
|
83
|
-
*
|
|
84
|
-
* Note that when an index fails to create, the failed index still occupies a slot.
|
|
85
|
-
* To remove the failed index and free up the slot for a new index, call Drop Index.
|
|
86
|
-
* @param dataCollectionId - ID of the data collection for which to generate the index.
|
|
87
|
-
* @param index - Details of the index to be created.
|
|
88
|
-
* @public
|
|
89
|
-
* @requiredField dataCollectionId
|
|
90
|
-
* @requiredField index
|
|
91
|
-
* @requiredField index.fields
|
|
92
|
-
* @requiredField index.fields.path
|
|
93
|
-
* @requiredField index.name
|
|
94
|
-
* @param options - Options for creating an index.
|
|
95
|
-
* @permissionId WIX_DATA.CREATE_INDEX
|
|
96
|
-
* @permissionScope Manage Data Indexes
|
|
97
|
-
* @permissionScopeId SCOPE.DC-DATA.INDEXES-MANAGE
|
|
98
|
-
* @permissionScope Manage All Data Resources
|
|
99
|
-
* @permissionScopeId SCOPE.DC-DATA.MANAGE-ALL
|
|
100
|
-
* @applicableIdentity APP
|
|
101
|
-
* @returns Details of the index being generated.
|
|
102
|
-
* @fqn com.wixpress.cloud.data.api.index.IndexService.CreateIndex
|
|
103
|
-
*/
|
|
104
|
-
async function createIndex(dataCollectionId, index) {
|
|
105
|
-
// @ts-ignore
|
|
106
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
107
|
-
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
108
|
-
dataCollectionId: dataCollectionId,
|
|
109
|
-
index: index,
|
|
110
|
-
});
|
|
111
|
-
const reqOpts = ambassadorWixDataV2Index.createIndex(payload);
|
|
112
|
-
sideEffects?.onSiteCall?.();
|
|
113
|
-
try {
|
|
114
|
-
const result = await httpClient.request(reqOpts);
|
|
115
|
-
sideEffects?.onSuccess?.(result);
|
|
116
|
-
return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data)?.index;
|
|
117
|
-
}
|
|
118
|
-
catch (err) {
|
|
119
|
-
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
120
|
-
spreadPathsToArguments: {},
|
|
121
|
-
explicitPathsToArguments: { dataCollectionId: '$[0]', index: '$[1]' },
|
|
122
|
-
singleArgumentUnchanged: false,
|
|
123
|
-
}, ['dataCollectionId', 'index']);
|
|
124
|
-
sideEffects?.onError?.(err);
|
|
125
|
-
throw transformedError;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
exports.createIndex = createIndex;
|
|
129
|
-
/**
|
|
130
|
-
* Removes an index from a data collection.
|
|
131
|
-
*
|
|
132
|
-
* The process of dropping an index from a collection takes time.
|
|
133
|
-
* You can check whether an index has been dropped by calling List Indexes.
|
|
134
|
-
* @param dataCollectionId - ID of the data collection for which the index to be dropped is defined.
|
|
135
|
-
* @param indexName - Name of the index to drop.
|
|
136
|
-
* @public
|
|
137
|
-
* @requiredField dataCollectionId
|
|
138
|
-
* @requiredField indexName
|
|
139
|
-
* @param options - Options for dropping an index.
|
|
140
|
-
* @permissionId WIX_DATA.DROP_INDEX
|
|
141
|
-
* @permissionScope Manage Data Indexes
|
|
142
|
-
* @permissionScopeId SCOPE.DC-DATA.INDEXES-MANAGE
|
|
143
|
-
* @permissionScope Manage All Data Resources
|
|
144
|
-
* @permissionScopeId SCOPE.DC-DATA.MANAGE-ALL
|
|
145
|
-
* @applicableIdentity APP
|
|
146
|
-
* @fqn com.wixpress.cloud.data.api.index.IndexService.DropIndex
|
|
147
|
-
*/
|
|
148
|
-
async function dropIndex(dataCollectionId, indexName) {
|
|
149
|
-
// @ts-ignore
|
|
150
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
151
|
-
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
152
|
-
dataCollectionId: dataCollectionId,
|
|
153
|
-
indexName: indexName,
|
|
154
|
-
});
|
|
155
|
-
const reqOpts = ambassadorWixDataV2Index.dropIndex(payload);
|
|
156
|
-
sideEffects?.onSiteCall?.();
|
|
157
|
-
try {
|
|
158
|
-
const result = await httpClient.request(reqOpts);
|
|
159
|
-
sideEffects?.onSuccess?.(result);
|
|
160
|
-
}
|
|
161
|
-
catch (err) {
|
|
162
|
-
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
163
|
-
spreadPathsToArguments: {},
|
|
164
|
-
explicitPathsToArguments: {
|
|
165
|
-
dataCollectionId: '$[0]',
|
|
166
|
-
indexName: '$[1]',
|
|
167
|
-
},
|
|
168
|
-
singleArgumentUnchanged: false,
|
|
169
|
-
}, ['dataCollectionId', 'indexName']);
|
|
170
|
-
sideEffects?.onError?.(err);
|
|
171
|
-
throw transformedError;
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
exports.dropIndex = dropIndex;
|
|
175
|
-
/**
|
|
176
|
-
* Lists all indexes defined for a data collection.
|
|
177
|
-
*
|
|
178
|
-
* When an index's status is `ACTIVE`, it is ready to use.
|
|
179
|
-
* While it is still being created, its status is `BUILDING`.
|
|
180
|
-
*
|
|
181
|
-
* When an index's status is `DROPPED`, it has been dropped successfully.
|
|
182
|
-
* While it is still in the process of being removed, its status is `DROPPING`.
|
|
183
|
-
* @param dataCollectionId - ID of the data collection for which to list indexes.
|
|
184
|
-
* @public
|
|
185
|
-
* @requiredField dataCollectionId
|
|
186
|
-
* @param options - Options for retrieving a list of indexes.
|
|
187
|
-
* @permissionId WIX_DATA.LIST_INDEXES
|
|
188
|
-
* @permissionScope Manage Data Indexes
|
|
189
|
-
* @permissionScopeId SCOPE.DC-DATA.INDEXES-MANAGE
|
|
190
|
-
* @permissionScope Manage All Data Resources
|
|
191
|
-
* @permissionScopeId SCOPE.DC-DATA.MANAGE-ALL
|
|
192
|
-
* @applicableIdentity APP
|
|
193
|
-
* @fqn com.wixpress.cloud.data.api.index.IndexService.ListIndexes
|
|
194
|
-
*/
|
|
195
|
-
async function listIndexes(dataCollectionId, options) {
|
|
196
|
-
// @ts-ignore
|
|
197
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
198
|
-
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
199
|
-
dataCollectionId: dataCollectionId,
|
|
200
|
-
paging: options?.paging,
|
|
201
|
-
});
|
|
202
|
-
const reqOpts = ambassadorWixDataV2Index.listIndexes(payload);
|
|
203
|
-
sideEffects?.onSiteCall?.();
|
|
204
|
-
try {
|
|
205
|
-
const result = await httpClient.request(reqOpts);
|
|
206
|
-
sideEffects?.onSuccess?.(result);
|
|
207
|
-
return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
208
|
-
}
|
|
209
|
-
catch (err) {
|
|
210
|
-
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
211
|
-
spreadPathsToArguments: {},
|
|
212
|
-
explicitPathsToArguments: {
|
|
213
|
-
dataCollectionId: '$[0]',
|
|
214
|
-
paging: '$[1].paging',
|
|
215
|
-
},
|
|
216
|
-
singleArgumentUnchanged: false,
|
|
217
|
-
}, ['dataCollectionId', 'options']);
|
|
218
|
-
sideEffects?.onError?.(err);
|
|
219
|
-
throw transformedError;
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
exports.listIndexes = listIndexes;
|
|
223
|
-
/**
|
|
224
|
-
* Lists available indexes limits
|
|
225
|
-
* @param dataCollectionId - Data collection to show available indexes for
|
|
226
|
-
* @internal
|
|
227
|
-
* @documentationMaturity preview
|
|
228
|
-
* @requiredField dataCollectionId
|
|
229
|
-
* @permissionId WIX_DATA.LIST_INDEXES
|
|
230
|
-
* @permissionScope Manage Data Indexes
|
|
231
|
-
* @permissionScopeId SCOPE.DC-DATA.INDEXES-MANAGE
|
|
232
|
-
* @permissionScope Manage All Data Resources
|
|
233
|
-
* @permissionScopeId SCOPE.DC-DATA.MANAGE-ALL
|
|
234
|
-
* @applicableIdentity APP
|
|
235
|
-
* @fqn com.wixpress.cloud.data.api.index.IndexService.ListAvailableIndexes
|
|
236
|
-
*/
|
|
237
|
-
async function listAvailableIndexes(dataCollectionId) {
|
|
238
|
-
// @ts-ignore
|
|
239
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
240
|
-
const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
|
|
241
|
-
dataCollectionId: dataCollectionId,
|
|
242
|
-
});
|
|
243
|
-
const reqOpts = ambassadorWixDataV2Index.listAvailableIndexes(payload);
|
|
244
|
-
sideEffects?.onSiteCall?.();
|
|
245
|
-
try {
|
|
246
|
-
const result = await httpClient.request(reqOpts);
|
|
247
|
-
sideEffects?.onSuccess?.(result);
|
|
248
|
-
return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
249
|
-
}
|
|
250
|
-
catch (err) {
|
|
251
|
-
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
252
|
-
spreadPathsToArguments: {},
|
|
253
|
-
explicitPathsToArguments: { dataCollectionId: '$[0]' },
|
|
254
|
-
singleArgumentUnchanged: false,
|
|
255
|
-
}, ['dataCollectionId']);
|
|
256
|
-
sideEffects?.onError?.(err);
|
|
257
|
-
throw transformedError;
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
exports.listAvailableIndexes = listAvailableIndexes;
|
|
261
|
-
//# sourceMappingURL=data-v2-index-indexes.universal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"data-v2-index-indexes.universal.js","sourceRoot":"","sources":["../../../../src/data-v2-index-indexes.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,oFAGiD;AAEjD,0FAA4E;AA6C5E;;;GAGG;AACH,IAAY,KAGX;AAHD,WAAY,KAAK;IACf,oBAAW,CAAA;IACX,sBAAa,CAAA;AACf,CAAC,EAHW,KAAK,qBAAL,KAAK,QAGhB;AAoBD,IAAY,MAeX;AAfD,WAAY,MAAM;IAChB,mDAAmD;IACnD,6BAAmB,CAAA;IACnB,qCAAqC;IACrC,+BAAqB,CAAA;IACrB,sEAAsE;IACtE,2BAAiB,CAAA;IACjB,gDAAgD;IAChD,+BAAqB,CAAA;IACrB,2CAA2C;IAC3C,6BAAmB,CAAA;IACnB,iCAAiC;IACjC,2BAAiB,CAAA;IACjB,+CAA+C;IAC/C,6BAAmB,CAAA;AACrB,CAAC,EAfW,MAAM,sBAAN,MAAM,QAejB;AAmCD,IAAY,WASX;AATD,WAAY,WAAW;IACrB,mDAAmD;IACnD,4DAA6C,CAAA;IAC7C,mEAAmE;IACnE,gCAAiB,CAAA;IACjB,iDAAiD;IACjD,4BAAa,CAAA;IACb,0EAA0E;IAC1E,4BAAa,CAAA;AACf,CAAC,EATW,WAAW,2BAAX,WAAW,QAStB;AAoBD,IAAY,WASX;AATD,WAAY,WAAW;IACrB,mDAAmD;IACnD,0DAA2C,CAAA;IAC3C,mJAAmJ;IACnJ,kCAAmB,CAAA;IACnB,0SAA0S;IAC1S,sDAAuC,CAAA;IACvC,6IAA6I;IAC7I,4BAAa,CAAA;AACf,CAAC,EATW,WAAW,2BAAX,WAAW,QAStB;AAoGD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACI,KAAK,U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AE,gBAAgB,EAAE,MAAM,EAAE;YACtD,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,kBAAkB,CAAC,CACrB,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC;AAxCD,oDAwCC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './src/data-v2-index-indexes.context.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../index.ts"],"names":[],"mappings":"AAAA,cAAc,wCAAwC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './src/data-v2-index-indexes.universal.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../../index.typings.ts"],"names":[],"mappings":"AAAA,cAAc,0CAA0C,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './src/data-v2-index-indexes.meta.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../meta.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { createIndex as publicCreateIndex, dropIndex as publicDropIndex, listIndexes as publicListIndexes, listAvailableIndexes as publicListAvailableIndexes } from './data-v2-index-indexes.public.js';
|
|
2
|
-
import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
|
|
3
|
-
export declare const createIndex: MaybeContext<BuildRESTFunction<typeof publicCreateIndex> & typeof publicCreateIndex>;
|
|
4
|
-
export declare const dropIndex: MaybeContext<BuildRESTFunction<typeof publicDropIndex> & typeof publicDropIndex>;
|
|
5
|
-
export declare const listIndexes: MaybeContext<BuildRESTFunction<typeof publicListIndexes> & typeof publicListIndexes>;
|
|
6
|
-
/** @internal */
|
|
7
|
-
export declare const listAvailableIndexes: MaybeContext<BuildRESTFunction<typeof publicListAvailableIndexes> & typeof publicListAvailableIndexes>;
|
|
8
|
-
export { Order, Status, IndexSource, Environment, } from './data-v2-index-indexes.universal.js';
|
|
9
|
-
export { Index, Field, Failure, CreateIndexRequest, CreateIndexResponse, DropIndexRequest, DropIndexResponse, ListIndexesRequest, Paging, ListIndexesResponse, PagingMetadata, ListAvailableIndexesRequest, ListAvailableIndexesResponse, ListIndexesOptions, } from './data-v2-index-indexes.universal.js';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { createIndex as publicCreateIndex, dropIndex as publicDropIndex, listIndexes as publicListIndexes, listAvailableIndexes as publicListAvailableIndexes, } from './data-v2-index-indexes.public.js';
|
|
2
|
-
import { createRESTModule } from '@wix/sdk-runtime/rest-modules';
|
|
3
|
-
export const createIndex = /*#__PURE__*/ createRESTModule(publicCreateIndex);
|
|
4
|
-
export const dropIndex = /*#__PURE__*/ createRESTModule(publicDropIndex);
|
|
5
|
-
export const listIndexes = /*#__PURE__*/ createRESTModule(publicListIndexes);
|
|
6
|
-
/** @internal */
|
|
7
|
-
export const listAvailableIndexes = /*#__PURE__*/ createRESTModule(publicListAvailableIndexes);
|
|
8
|
-
export { Order, Status, IndexSource, Environment, } from './data-v2-index-indexes.universal.js';
|
|
9
|
-
//# sourceMappingURL=data-v2-index-indexes.context.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"data-v2-index-indexes.context.js","sourceRoot":"","sources":["../../../../src/data-v2-index-indexes.context.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,IAAI,iBAAiB,EAChC,SAAS,IAAI,eAAe,EAC5B,WAAW,IAAI,iBAAiB,EAChC,oBAAoB,IAAI,0BAA0B,GACnD,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAGjE,MAAM,CAAC,MAAM,WAAW,GAEpB,aAAa,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,CAAC;AACtD,MAAM,CAAC,MAAM,SAAS,GAElB,aAAa,CAAC,gBAAgB,CAAC,eAAe,CAAC,CAAC;AACpD,MAAM,CAAC,MAAM,WAAW,GAEpB,aAAa,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,CAAC;AACtD,gBAAgB;AAChB,MAAM,CAAC,MAAM,oBAAoB,GAG7B,aAAa,CAAC,gBAAgB,CAAC,0BAA0B,CAAC,CAAC;AAE/D,OAAO,EACL,KAAK,EACL,MAAM,EACN,WAAW,EACX,WAAW,GACZ,MAAM,sCAAsC,CAAC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
|
-
/**
|
|
3
|
-
* Creates an index for a data collection.
|
|
4
|
-
*
|
|
5
|
-
* The index can't be used immediately, as the process of generating the index takes time.
|
|
6
|
-
* You can check whether an index is ready by calling List Indexes.
|
|
7
|
-
*
|
|
8
|
-
* Note that when an index fails to create, the failed index still occupies a slot.
|
|
9
|
-
* To remove the failed index and free up the slot for a new index, call Drop Index.
|
|
10
|
-
*/
|
|
11
|
-
export declare function createIndex(payload: object): RequestOptionsFactory<any>;
|
|
12
|
-
/**
|
|
13
|
-
* Removes an index from a data collection.
|
|
14
|
-
*
|
|
15
|
-
* The process of dropping an index from a collection takes time.
|
|
16
|
-
* You can check whether an index has been dropped by calling List Indexes.
|
|
17
|
-
*/
|
|
18
|
-
export declare function dropIndex(payload: object): RequestOptionsFactory<any>;
|
|
19
|
-
/**
|
|
20
|
-
* Lists all indexes defined for a data collection.
|
|
21
|
-
*
|
|
22
|
-
* When an index's status is `ACTIVE`, it is ready to use.
|
|
23
|
-
* While it is still being created, its status is `BUILDING`.
|
|
24
|
-
*
|
|
25
|
-
* When an index's status is `DROPPED`, it has been dropped successfully.
|
|
26
|
-
* While it is still in the process of being removed, its status is `DROPPING`.
|
|
27
|
-
*/
|
|
28
|
-
export declare function listIndexes(payload: object): RequestOptionsFactory<any>;
|
|
29
|
-
/** Lists available indexes limits */
|
|
30
|
-
export declare function listAvailableIndexes(payload: object): RequestOptionsFactory<any>;
|