@wix/auto_sdk_data_indexes 1.0.7 → 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.
Files changed (130) hide show
  1. package/build/{es/src/data-v2-index-indexes.types.d.ts → data-v2-index-indexes.universal-BbNMyDRQ.d.mts} +26 -22
  2. package/build/{cjs/src/data-v2-index-indexes.types.d.ts → data-v2-index-indexes.universal-BbNMyDRQ.d.ts} +26 -22
  3. package/build/{es/src/data-v2-index-indexes.public.d.ts → index.d.mts} +13 -9
  4. package/build/{internal/cjs/src/data-v2-index-indexes.public.d.ts → index.d.ts} +13 -18
  5. package/build/index.js +629 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +598 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/internal/{cjs/src/data-v2-index-indexes.types.d.ts → data-v2-index-indexes.universal-DRs6_tQv.d.mts} +26 -22
  10. package/build/internal/{es/src/data-v2-index-indexes.types.d.ts → data-v2-index-indexes.universal-DRs6_tQv.d.ts} +26 -22
  11. package/build/{cjs/src/data-v2-index-indexes.public.d.ts → internal/index.d.mts} +24 -9
  12. package/build/internal/{es/src/data-v2-index-indexes.public.d.ts → index.d.ts} +16 -10
  13. package/build/internal/index.js +629 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +598 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/internal/meta.d.mts +215 -0
  18. package/build/internal/meta.d.ts +215 -0
  19. package/build/internal/meta.js +512 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +482 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/meta.d.mts +215 -0
  24. package/build/meta.d.ts +215 -0
  25. package/build/meta.js +512 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +482 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +13 -12
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/data-v2-index-indexes.context.d.ts +0 -7
  40. package/build/cjs/src/data-v2-index-indexes.context.js +0 -16
  41. package/build/cjs/src/data-v2-index-indexes.context.js.map +0 -1
  42. package/build/cjs/src/data-v2-index-indexes.http.d.ts +0 -30
  43. package/build/cjs/src/data-v2-index-indexes.http.js +0 -433
  44. package/build/cjs/src/data-v2-index-indexes.http.js.map +0 -1
  45. package/build/cjs/src/data-v2-index-indexes.meta.d.ts +0 -16
  46. package/build/cjs/src/data-v2-index-indexes.meta.js +0 -104
  47. package/build/cjs/src/data-v2-index-indexes.meta.js.map +0 -1
  48. package/build/cjs/src/data-v2-index-indexes.public.js +0 -36
  49. package/build/cjs/src/data-v2-index-indexes.public.js.map +0 -1
  50. package/build/cjs/src/data-v2-index-indexes.types.js +0 -52
  51. package/build/cjs/src/data-v2-index-indexes.types.js.map +0 -1
  52. package/build/cjs/src/data-v2-index-indexes.universal.d.ts +0 -285
  53. package/build/cjs/src/data-v2-index-indexes.universal.js +0 -261
  54. package/build/cjs/src/data-v2-index-indexes.universal.js.map +0 -1
  55. package/build/es/index.d.ts +0 -1
  56. package/build/es/index.js +0 -2
  57. package/build/es/index.js.map +0 -1
  58. package/build/es/index.typings.d.ts +0 -1
  59. package/build/es/index.typings.js +0 -2
  60. package/build/es/index.typings.js.map +0 -1
  61. package/build/es/meta.d.ts +0 -1
  62. package/build/es/meta.js +0 -2
  63. package/build/es/meta.js.map +0 -1
  64. package/build/es/package.json +0 -3
  65. package/build/es/src/data-v2-index-indexes.context.d.ts +0 -7
  66. package/build/es/src/data-v2-index-indexes.context.js +0 -9
  67. package/build/es/src/data-v2-index-indexes.context.js.map +0 -1
  68. package/build/es/src/data-v2-index-indexes.http.d.ts +0 -30
  69. package/build/es/src/data-v2-index-indexes.http.js +0 -426
  70. package/build/es/src/data-v2-index-indexes.http.js.map +0 -1
  71. package/build/es/src/data-v2-index-indexes.meta.d.ts +0 -16
  72. package/build/es/src/data-v2-index-indexes.meta.js +0 -74
  73. package/build/es/src/data-v2-index-indexes.meta.js.map +0 -1
  74. package/build/es/src/data-v2-index-indexes.public.js +0 -25
  75. package/build/es/src/data-v2-index-indexes.public.js.map +0 -1
  76. package/build/es/src/data-v2-index-indexes.types.js +0 -49
  77. package/build/es/src/data-v2-index-indexes.types.js.map +0 -1
  78. package/build/es/src/data-v2-index-indexes.universal.d.ts +0 -285
  79. package/build/es/src/data-v2-index-indexes.universal.js +0 -231
  80. package/build/es/src/data-v2-index-indexes.universal.js.map +0 -1
  81. package/build/internal/cjs/index.d.ts +0 -1
  82. package/build/internal/cjs/index.js +0 -18
  83. package/build/internal/cjs/index.js.map +0 -1
  84. package/build/internal/cjs/index.typings.d.ts +0 -1
  85. package/build/internal/cjs/index.typings.js +0 -18
  86. package/build/internal/cjs/index.typings.js.map +0 -1
  87. package/build/internal/cjs/meta.d.ts +0 -1
  88. package/build/internal/cjs/meta.js +0 -18
  89. package/build/internal/cjs/meta.js.map +0 -1
  90. package/build/internal/cjs/src/data-v2-index-indexes.context.d.ts +0 -9
  91. package/build/internal/cjs/src/data-v2-index-indexes.context.js +0 -16
  92. package/build/internal/cjs/src/data-v2-index-indexes.context.js.map +0 -1
  93. package/build/internal/cjs/src/data-v2-index-indexes.http.d.ts +0 -30
  94. package/build/internal/cjs/src/data-v2-index-indexes.http.js +0 -433
  95. package/build/internal/cjs/src/data-v2-index-indexes.http.js.map +0 -1
  96. package/build/internal/cjs/src/data-v2-index-indexes.meta.d.ts +0 -16
  97. package/build/internal/cjs/src/data-v2-index-indexes.meta.js +0 -104
  98. package/build/internal/cjs/src/data-v2-index-indexes.meta.js.map +0 -1
  99. package/build/internal/cjs/src/data-v2-index-indexes.public.js +0 -36
  100. package/build/internal/cjs/src/data-v2-index-indexes.public.js.map +0 -1
  101. package/build/internal/cjs/src/data-v2-index-indexes.types.js +0 -52
  102. package/build/internal/cjs/src/data-v2-index-indexes.types.js.map +0 -1
  103. package/build/internal/cjs/src/data-v2-index-indexes.universal.d.ts +0 -300
  104. package/build/internal/cjs/src/data-v2-index-indexes.universal.js +0 -261
  105. package/build/internal/cjs/src/data-v2-index-indexes.universal.js.map +0 -1
  106. package/build/internal/es/index.d.ts +0 -1
  107. package/build/internal/es/index.js +0 -2
  108. package/build/internal/es/index.js.map +0 -1
  109. package/build/internal/es/index.typings.d.ts +0 -1
  110. package/build/internal/es/index.typings.js +0 -2
  111. package/build/internal/es/index.typings.js.map +0 -1
  112. package/build/internal/es/meta.d.ts +0 -1
  113. package/build/internal/es/meta.js +0 -2
  114. package/build/internal/es/meta.js.map +0 -1
  115. package/build/internal/es/src/data-v2-index-indexes.context.d.ts +0 -9
  116. package/build/internal/es/src/data-v2-index-indexes.context.js +0 -9
  117. package/build/internal/es/src/data-v2-index-indexes.context.js.map +0 -1
  118. package/build/internal/es/src/data-v2-index-indexes.http.d.ts +0 -30
  119. package/build/internal/es/src/data-v2-index-indexes.http.js +0 -426
  120. package/build/internal/es/src/data-v2-index-indexes.http.js.map +0 -1
  121. package/build/internal/es/src/data-v2-index-indexes.meta.d.ts +0 -16
  122. package/build/internal/es/src/data-v2-index-indexes.meta.js +0 -74
  123. package/build/internal/es/src/data-v2-index-indexes.meta.js.map +0 -1
  124. package/build/internal/es/src/data-v2-index-indexes.public.js +0 -25
  125. package/build/internal/es/src/data-v2-index-indexes.public.js.map +0 -1
  126. package/build/internal/es/src/data-v2-index-indexes.types.js +0 -49
  127. package/build/internal/es/src/data-v2-index-indexes.types.js.map +0 -1
  128. package/build/internal/es/src/data-v2-index-indexes.universal.d.ts +0 -300
  129. package/build/internal/es/src/data-v2-index-indexes.universal.js +0 -231
  130. package/build/internal/es/src/data-v2-index-indexes.universal.js.map +0 -1
@@ -0,0 +1,215 @@
1
+ import { C as CreateIndexRequest$1, d as CreateIndexResponse$1, D as DropIndexRequest$1, e as DropIndexResponse$1, f as ListIndexesRequest$1, a as ListIndexesResponse$1, h as ListAvailableIndexesRequest$1, i as ListAvailableIndexesResponse$1 } from './data-v2-index-indexes.universal-BbNMyDRQ.mjs';
2
+
3
+ /** An index is a map of a collection's data, organized according to specific fields to increase query speed. */
4
+ interface Index {
5
+ /**
6
+ * Name of the index.
7
+ * @minLength 1
8
+ * @maxLength 128
9
+ */
10
+ name?: string;
11
+ /**
12
+ * Fields for which the index is defined.
13
+ *
14
+ * Max: 3 fields (for a unique index: 1 field)
15
+ * @minSize 1
16
+ * @maxSize 3
17
+ */
18
+ fields?: Field[];
19
+ /**
20
+ * Current status of the index.
21
+ * @readonly
22
+ */
23
+ status?: StatusWithLiterals;
24
+ /**
25
+ * Contains details about the reasons for failure when `status` is `FAILED`.
26
+ * @readonly
27
+ */
28
+ failure?: Failure;
29
+ /**
30
+ * Whether the index enforces uniqueness of values in the field for which it is defined.
31
+ * If `true`, the index can have only one field.
32
+ *
33
+ * Default: `false`
34
+ */
35
+ unique?: boolean;
36
+ /**
37
+ * Whether the index ignores case.
38
+ *
39
+ * Default: `false`
40
+ */
41
+ caseInsensitive?: boolean;
42
+ /** Specifies the origin of the index definition. */
43
+ source?: IndexSourceWithLiterals;
44
+ }
45
+ /**
46
+ * Order determines how values are ordered in the index. This is important when
47
+ * ordering and/or range querying by indexed fields.
48
+ */
49
+ declare enum Order {
50
+ ASC = "ASC",
51
+ DESC = "DESC"
52
+ }
53
+ /** @enumType */
54
+ type OrderWithLiterals = Order | 'ASC' | 'DESC';
55
+ interface Field {
56
+ /**
57
+ * Path of the field to index. For example: `title` or `options.price`.
58
+ * @minLength 1
59
+ * @maxLength 128
60
+ */
61
+ path?: string;
62
+ /**
63
+ * Sort order for the index. Base on how the data is regularly queried.
64
+ *
65
+ * Default: `ASC`
66
+ */
67
+ order?: OrderWithLiterals;
68
+ }
69
+ declare enum Status {
70
+ /** Place holder. Never returned by the service. */
71
+ UNKNOWN = "UNKNOWN",
72
+ /** Index creation is in progress. */
73
+ BUILDING = "BUILDING",
74
+ /** Index has been successfully created and can be used in queries. */
75
+ ACTIVE = "ACTIVE",
76
+ /** Index is in the process of being dropped. */
77
+ DROPPING = "DROPPING",
78
+ /** Index has been dropped successfully. */
79
+ DROPPED = "DROPPED",
80
+ /** Index creation has failed. */
81
+ FAILED = "FAILED",
82
+ /** Index contains incorrectly indexed data. */
83
+ INVALID = "INVALID"
84
+ }
85
+ /** @enumType */
86
+ type StatusWithLiterals = Status | 'UNKNOWN' | 'BUILDING' | 'ACTIVE' | 'DROPPING' | 'DROPPED' | 'FAILED' | 'INVALID';
87
+ interface Failure {
88
+ /**
89
+ * Error code.
90
+ * - `WDE0112`: Unknown error while building collection index.
91
+ * - `WDE0113`: Duplicate key error while building collection index.
92
+ * - `WDE0114`: Document too large while building collection index.
93
+ * @maxLength 7
94
+ */
95
+ code?: string;
96
+ /**
97
+ * Description of the failure.
98
+ * @maxLength 1024
99
+ */
100
+ description?: string;
101
+ /**
102
+ * ID of the data item that caused the failure.
103
+ * For example, if `unique` is `true`, the ID of an item containing a duplicate value.
104
+ * @maxLength 16000
105
+ */
106
+ itemId?: string | null;
107
+ }
108
+ declare enum IndexSource {
109
+ /** Place holder. Never returned by the service. */
110
+ UNKNOWN_INDEX_SOURCE = "UNKNOWN_INDEX_SOURCE",
111
+ /** Index is created by the system, present for all collections. */
112
+ SYSTEM = "SYSTEM",
113
+ /** Index was created by a user via API or UI. */
114
+ USER = "USER",
115
+ /** Index is created automatically by the system based on user queries. */
116
+ AUTO = "AUTO"
117
+ }
118
+ /** @enumType */
119
+ type IndexSourceWithLiterals = IndexSource | 'UNKNOWN_INDEX_SOURCE' | 'SYSTEM' | 'USER' | 'AUTO';
120
+ interface CreateIndexRequest {
121
+ /** Details of the index to be created. */
122
+ index: Index;
123
+ /**
124
+ * ID of the data collection for which to generate the index.
125
+ * @maxLength 256
126
+ */
127
+ dataCollectionId: string;
128
+ }
129
+ interface CreateIndexResponse {
130
+ /** Details of the index being generated. */
131
+ index?: Index;
132
+ }
133
+ interface DropIndexRequest {
134
+ /**
135
+ * Name of the index to drop.
136
+ * @minLength 1
137
+ * @maxLength 128
138
+ */
139
+ indexName: string;
140
+ /**
141
+ * ID of the data collection for which the index to be dropped is defined.
142
+ * @maxLength 1024
143
+ */
144
+ dataCollectionId: string;
145
+ }
146
+ interface DropIndexResponse {
147
+ }
148
+ interface ListIndexesRequest {
149
+ /**
150
+ * ID of the data collection for which to list indexes.
151
+ * @maxLength 1024
152
+ */
153
+ dataCollectionId: string;
154
+ /** Paging options to limit and skip the number of items. */
155
+ paging?: Paging;
156
+ }
157
+ interface Paging {
158
+ /** Number of items to load. */
159
+ limit?: number | null;
160
+ /** Number of items to skip in the current sort order. */
161
+ offset?: number | null;
162
+ }
163
+ interface ListIndexesResponse {
164
+ /** List of all indexes for the requested data collection. */
165
+ indexes?: Index[];
166
+ /** Paging metadata. */
167
+ pagingMetadata?: PagingMetadata;
168
+ }
169
+ interface PagingMetadata {
170
+ /** Number of items returned in the response. */
171
+ count?: number | null;
172
+ /** Offset that was requested. */
173
+ offset?: number | null;
174
+ /** Total number of items that match the query. */
175
+ total?: number | null;
176
+ /** Flag that indicates the server failed to calculate the `total` field. */
177
+ tooManyToCount?: boolean | null;
178
+ }
179
+ interface ListAvailableIndexesRequest {
180
+ /**
181
+ * Data collection to show available indexes for
182
+ * @maxLength 256
183
+ */
184
+ dataCollectionId: string;
185
+ }
186
+ interface ListAvailableIndexesResponse {
187
+ /**
188
+ * limit of regular single-field indexes, even if 0 1-field indices may be created using
189
+ * 3-field quota (if available)
190
+ */
191
+ regular1Field?: number;
192
+ /** limit of regular indexes up to 3-fields (in addition to 1-field indexes quota) */
193
+ regular3Field?: number;
194
+ /** limit of unique indexes */
195
+ unique1Field?: number;
196
+ /** Overall index limit, missing value means there's no overall limit */
197
+ total?: number | null;
198
+ }
199
+
200
+ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
201
+ getUrl: (context: any) => string;
202
+ httpMethod: K;
203
+ path: string;
204
+ pathParams: M;
205
+ __requestType: T;
206
+ __originalRequestType: S;
207
+ __responseType: Q;
208
+ __originalResponseType: R;
209
+ };
210
+ declare function createIndex(): __PublicMethodMetaInfo<'POST', {}, CreateIndexRequest$1, CreateIndexRequest, CreateIndexResponse$1, CreateIndexResponse>;
211
+ declare function dropIndex(): __PublicMethodMetaInfo<'DELETE', {}, DropIndexRequest$1, DropIndexRequest, DropIndexResponse$1, DropIndexResponse>;
212
+ declare function listIndexes(): __PublicMethodMetaInfo<'GET', {}, ListIndexesRequest$1, ListIndexesRequest, ListIndexesResponse$1, ListIndexesResponse>;
213
+ declare function listAvailableIndexes(): __PublicMethodMetaInfo<'GET', {}, ListAvailableIndexesRequest$1, ListAvailableIndexesRequest, ListAvailableIndexesResponse$1, ListAvailableIndexesResponse>;
214
+
215
+ export { type __PublicMethodMetaInfo, createIndex, dropIndex, listAvailableIndexes, listIndexes };
@@ -0,0 +1,215 @@
1
+ import { C as CreateIndexRequest$1, d as CreateIndexResponse$1, D as DropIndexRequest$1, e as DropIndexResponse$1, f as ListIndexesRequest$1, a as ListIndexesResponse$1, h as ListAvailableIndexesRequest$1, i as ListAvailableIndexesResponse$1 } from './data-v2-index-indexes.universal-BbNMyDRQ.js';
2
+
3
+ /** An index is a map of a collection's data, organized according to specific fields to increase query speed. */
4
+ interface Index {
5
+ /**
6
+ * Name of the index.
7
+ * @minLength 1
8
+ * @maxLength 128
9
+ */
10
+ name?: string;
11
+ /**
12
+ * Fields for which the index is defined.
13
+ *
14
+ * Max: 3 fields (for a unique index: 1 field)
15
+ * @minSize 1
16
+ * @maxSize 3
17
+ */
18
+ fields?: Field[];
19
+ /**
20
+ * Current status of the index.
21
+ * @readonly
22
+ */
23
+ status?: StatusWithLiterals;
24
+ /**
25
+ * Contains details about the reasons for failure when `status` is `FAILED`.
26
+ * @readonly
27
+ */
28
+ failure?: Failure;
29
+ /**
30
+ * Whether the index enforces uniqueness of values in the field for which it is defined.
31
+ * If `true`, the index can have only one field.
32
+ *
33
+ * Default: `false`
34
+ */
35
+ unique?: boolean;
36
+ /**
37
+ * Whether the index ignores case.
38
+ *
39
+ * Default: `false`
40
+ */
41
+ caseInsensitive?: boolean;
42
+ /** Specifies the origin of the index definition. */
43
+ source?: IndexSourceWithLiterals;
44
+ }
45
+ /**
46
+ * Order determines how values are ordered in the index. This is important when
47
+ * ordering and/or range querying by indexed fields.
48
+ */
49
+ declare enum Order {
50
+ ASC = "ASC",
51
+ DESC = "DESC"
52
+ }
53
+ /** @enumType */
54
+ type OrderWithLiterals = Order | 'ASC' | 'DESC';
55
+ interface Field {
56
+ /**
57
+ * Path of the field to index. For example: `title` or `options.price`.
58
+ * @minLength 1
59
+ * @maxLength 128
60
+ */
61
+ path?: string;
62
+ /**
63
+ * Sort order for the index. Base on how the data is regularly queried.
64
+ *
65
+ * Default: `ASC`
66
+ */
67
+ order?: OrderWithLiterals;
68
+ }
69
+ declare enum Status {
70
+ /** Place holder. Never returned by the service. */
71
+ UNKNOWN = "UNKNOWN",
72
+ /** Index creation is in progress. */
73
+ BUILDING = "BUILDING",
74
+ /** Index has been successfully created and can be used in queries. */
75
+ ACTIVE = "ACTIVE",
76
+ /** Index is in the process of being dropped. */
77
+ DROPPING = "DROPPING",
78
+ /** Index has been dropped successfully. */
79
+ DROPPED = "DROPPED",
80
+ /** Index creation has failed. */
81
+ FAILED = "FAILED",
82
+ /** Index contains incorrectly indexed data. */
83
+ INVALID = "INVALID"
84
+ }
85
+ /** @enumType */
86
+ type StatusWithLiterals = Status | 'UNKNOWN' | 'BUILDING' | 'ACTIVE' | 'DROPPING' | 'DROPPED' | 'FAILED' | 'INVALID';
87
+ interface Failure {
88
+ /**
89
+ * Error code.
90
+ * - `WDE0112`: Unknown error while building collection index.
91
+ * - `WDE0113`: Duplicate key error while building collection index.
92
+ * - `WDE0114`: Document too large while building collection index.
93
+ * @maxLength 7
94
+ */
95
+ code?: string;
96
+ /**
97
+ * Description of the failure.
98
+ * @maxLength 1024
99
+ */
100
+ description?: string;
101
+ /**
102
+ * ID of the data item that caused the failure.
103
+ * For example, if `unique` is `true`, the ID of an item containing a duplicate value.
104
+ * @maxLength 16000
105
+ */
106
+ itemId?: string | null;
107
+ }
108
+ declare enum IndexSource {
109
+ /** Place holder. Never returned by the service. */
110
+ UNKNOWN_INDEX_SOURCE = "UNKNOWN_INDEX_SOURCE",
111
+ /** Index is created by the system, present for all collections. */
112
+ SYSTEM = "SYSTEM",
113
+ /** Index was created by a user via API or UI. */
114
+ USER = "USER",
115
+ /** Index is created automatically by the system based on user queries. */
116
+ AUTO = "AUTO"
117
+ }
118
+ /** @enumType */
119
+ type IndexSourceWithLiterals = IndexSource | 'UNKNOWN_INDEX_SOURCE' | 'SYSTEM' | 'USER' | 'AUTO';
120
+ interface CreateIndexRequest {
121
+ /** Details of the index to be created. */
122
+ index: Index;
123
+ /**
124
+ * ID of the data collection for which to generate the index.
125
+ * @maxLength 256
126
+ */
127
+ dataCollectionId: string;
128
+ }
129
+ interface CreateIndexResponse {
130
+ /** Details of the index being generated. */
131
+ index?: Index;
132
+ }
133
+ interface DropIndexRequest {
134
+ /**
135
+ * Name of the index to drop.
136
+ * @minLength 1
137
+ * @maxLength 128
138
+ */
139
+ indexName: string;
140
+ /**
141
+ * ID of the data collection for which the index to be dropped is defined.
142
+ * @maxLength 1024
143
+ */
144
+ dataCollectionId: string;
145
+ }
146
+ interface DropIndexResponse {
147
+ }
148
+ interface ListIndexesRequest {
149
+ /**
150
+ * ID of the data collection for which to list indexes.
151
+ * @maxLength 1024
152
+ */
153
+ dataCollectionId: string;
154
+ /** Paging options to limit and skip the number of items. */
155
+ paging?: Paging;
156
+ }
157
+ interface Paging {
158
+ /** Number of items to load. */
159
+ limit?: number | null;
160
+ /** Number of items to skip in the current sort order. */
161
+ offset?: number | null;
162
+ }
163
+ interface ListIndexesResponse {
164
+ /** List of all indexes for the requested data collection. */
165
+ indexes?: Index[];
166
+ /** Paging metadata. */
167
+ pagingMetadata?: PagingMetadata;
168
+ }
169
+ interface PagingMetadata {
170
+ /** Number of items returned in the response. */
171
+ count?: number | null;
172
+ /** Offset that was requested. */
173
+ offset?: number | null;
174
+ /** Total number of items that match the query. */
175
+ total?: number | null;
176
+ /** Flag that indicates the server failed to calculate the `total` field. */
177
+ tooManyToCount?: boolean | null;
178
+ }
179
+ interface ListAvailableIndexesRequest {
180
+ /**
181
+ * Data collection to show available indexes for
182
+ * @maxLength 256
183
+ */
184
+ dataCollectionId: string;
185
+ }
186
+ interface ListAvailableIndexesResponse {
187
+ /**
188
+ * limit of regular single-field indexes, even if 0 1-field indices may be created using
189
+ * 3-field quota (if available)
190
+ */
191
+ regular1Field?: number;
192
+ /** limit of regular indexes up to 3-fields (in addition to 1-field indexes quota) */
193
+ regular3Field?: number;
194
+ /** limit of unique indexes */
195
+ unique1Field?: number;
196
+ /** Overall index limit, missing value means there's no overall limit */
197
+ total?: number | null;
198
+ }
199
+
200
+ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
201
+ getUrl: (context: any) => string;
202
+ httpMethod: K;
203
+ path: string;
204
+ pathParams: M;
205
+ __requestType: T;
206
+ __originalRequestType: S;
207
+ __responseType: Q;
208
+ __originalResponseType: R;
209
+ };
210
+ declare function createIndex(): __PublicMethodMetaInfo<'POST', {}, CreateIndexRequest$1, CreateIndexRequest, CreateIndexResponse$1, CreateIndexResponse>;
211
+ declare function dropIndex(): __PublicMethodMetaInfo<'DELETE', {}, DropIndexRequest$1, DropIndexRequest, DropIndexResponse$1, DropIndexResponse>;
212
+ declare function listIndexes(): __PublicMethodMetaInfo<'GET', {}, ListIndexesRequest$1, ListIndexesRequest, ListIndexesResponse$1, ListIndexesResponse>;
213
+ declare function listAvailableIndexes(): __PublicMethodMetaInfo<'GET', {}, ListAvailableIndexesRequest$1, ListAvailableIndexesRequest, ListAvailableIndexesResponse$1, ListAvailableIndexesResponse>;
214
+
215
+ export { type __PublicMethodMetaInfo, createIndex, dropIndex, listAvailableIndexes, listIndexes };