@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
@@ -1,5 +1,5 @@
1
1
  /** An index is a map of a collection's data, organized according to specific fields to increase query speed. */
2
- export interface Index {
2
+ interface Index {
3
3
  /**
4
4
  * Name of the index.
5
5
  * @minLength 1
@@ -44,13 +44,13 @@ export interface Index {
44
44
  * Order determines how values are ordered in the index. This is important when
45
45
  * ordering and/or range querying by indexed fields.
46
46
  */
47
- export declare enum Order {
47
+ declare enum Order {
48
48
  ASC = "ASC",
49
49
  DESC = "DESC"
50
50
  }
51
51
  /** @enumType */
52
- export type OrderWithLiterals = Order | 'ASC' | 'DESC';
53
- export interface Field {
52
+ type OrderWithLiterals = Order | 'ASC' | 'DESC';
53
+ interface Field {
54
54
  /**
55
55
  * Path of the field to index. For example: `title` or `options.price`.
56
56
  * @minLength 1
@@ -64,7 +64,7 @@ export interface Field {
64
64
  */
65
65
  order?: OrderWithLiterals;
66
66
  }
67
- export declare enum Status {
67
+ declare enum Status {
68
68
  /** Place holder. Never returned by the service. */
69
69
  UNKNOWN = "UNKNOWN",
70
70
  /** Index creation is in progress. */
@@ -81,8 +81,8 @@ export declare enum Status {
81
81
  INVALID = "INVALID"
82
82
  }
83
83
  /** @enumType */
84
- export type StatusWithLiterals = Status | 'UNKNOWN' | 'BUILDING' | 'ACTIVE' | 'DROPPING' | 'DROPPED' | 'FAILED' | 'INVALID';
85
- export interface Failure {
84
+ type StatusWithLiterals = Status | 'UNKNOWN' | 'BUILDING' | 'ACTIVE' | 'DROPPING' | 'DROPPED' | 'FAILED' | 'INVALID';
85
+ interface Failure {
86
86
  /**
87
87
  * Error code.
88
88
  * - `WDE0112`: Unknown error while building collection index.
@@ -103,7 +103,7 @@ export interface Failure {
103
103
  */
104
104
  itemId?: string | null;
105
105
  }
106
- export declare enum IndexSource {
106
+ declare enum IndexSource {
107
107
  /** Place holder. Never returned by the service. */
108
108
  UNKNOWN_INDEX_SOURCE = "UNKNOWN_INDEX_SOURCE",
109
109
  /** Index is created by the system, present for all collections. */
@@ -114,8 +114,8 @@ export declare enum IndexSource {
114
114
  AUTO = "AUTO"
115
115
  }
116
116
  /** @enumType */
117
- export type IndexSourceWithLiterals = IndexSource | 'UNKNOWN_INDEX_SOURCE' | 'SYSTEM' | 'USER' | 'AUTO';
118
- export interface CreateIndexRequest {
117
+ type IndexSourceWithLiterals = IndexSource | 'UNKNOWN_INDEX_SOURCE' | 'SYSTEM' | 'USER' | 'AUTO';
118
+ interface CreateIndexRequest {
119
119
  /** Details of the index to be created. */
120
120
  index: Index;
121
121
  /**
@@ -124,7 +124,7 @@ export interface CreateIndexRequest {
124
124
  */
125
125
  dataCollectionId: string;
126
126
  }
127
- export declare enum Environment {
127
+ declare enum Environment {
128
128
  /** Place holder. Never returned by the service. */
129
129
  UNKNOWN_ENVIRONMENT = "UNKNOWN_ENVIRONMENT",
130
130
  /** Collection [sandbox environment](https://support.wix.com/en/article/cms-about-sandbox-and-live-collections-and-syncing#sandbox-collections). */
@@ -134,13 +134,11 @@ export declare enum Environment {
134
134
  /** Collection [live environment](https://support.wix.com/en/article/cms-about-sandbox-and-live-collections-and-syncing#live-collections). */
135
135
  LIVE = "LIVE"
136
136
  }
137
- /** @enumType */
138
- export type EnvironmentWithLiterals = Environment | 'UNKNOWN_ENVIRONMENT' | 'SANDBOX' | 'SANDBOX_PREFERRED' | 'LIVE';
139
- export interface CreateIndexResponse {
137
+ interface CreateIndexResponse {
140
138
  /** Details of the index being generated. */
141
139
  index?: Index;
142
140
  }
143
- export interface DropIndexRequest {
141
+ interface DropIndexRequest {
144
142
  /**
145
143
  * Name of the index to drop.
146
144
  * @minLength 1
@@ -153,9 +151,9 @@ export interface DropIndexRequest {
153
151
  */
154
152
  dataCollectionId: string;
155
153
  }
156
- export interface DropIndexResponse {
154
+ interface DropIndexResponse {
157
155
  }
158
- export interface ListIndexesRequest {
156
+ interface ListIndexesRequest {
159
157
  /**
160
158
  * ID of the data collection for which to list indexes.
161
159
  * @maxLength 1024
@@ -164,19 +162,19 @@ export interface ListIndexesRequest {
164
162
  /** Paging options to limit and skip the number of items. */
165
163
  paging?: Paging;
166
164
  }
167
- export interface Paging {
165
+ interface Paging {
168
166
  /** Number of items to load. */
169
167
  limit?: number | null;
170
168
  /** Number of items to skip in the current sort order. */
171
169
  offset?: number | null;
172
170
  }
173
- export interface ListIndexesResponse {
171
+ interface ListIndexesResponse {
174
172
  /** List of all indexes for the requested data collection. */
175
173
  indexes?: Index[];
176
174
  /** Paging metadata. */
177
175
  pagingMetadata?: PagingMetadata;
178
176
  }
179
- export interface PagingMetadata {
177
+ interface PagingMetadata {
180
178
  /** Number of items returned in the response. */
181
179
  count?: number | null;
182
180
  /** Offset that was requested. */
@@ -186,14 +184,14 @@ export interface PagingMetadata {
186
184
  /** Flag that indicates the server failed to calculate the `total` field. */
187
185
  tooManyToCount?: boolean | null;
188
186
  }
189
- export interface ListAvailableIndexesRequest {
187
+ interface ListAvailableIndexesRequest {
190
188
  /**
191
189
  * Data collection to show available indexes for
192
190
  * @maxLength 256
193
191
  */
194
192
  dataCollectionId: string;
195
193
  }
196
- export interface ListAvailableIndexesResponse {
194
+ interface ListAvailableIndexesResponse {
197
195
  /**
198
196
  * limit of regular single-field indexes, even if 0 1-field indices may be created using
199
197
  * 3-field quota (if available)
@@ -206,3 +204,9 @@ export interface ListAvailableIndexesResponse {
206
204
  /** Overall index limit, missing value means there's no overall limit */
207
205
  total?: number | null;
208
206
  }
207
+ interface ListIndexesOptions {
208
+ /** Paging options to limit and skip the number of items. */
209
+ paging?: Paging;
210
+ }
211
+
212
+ export { type CreateIndexRequest as C, type DropIndexRequest as D, Environment as E, type Field as F, type Index as I, type ListIndexesOptions as L, Order as O, type Paging as P, Status as S, type ListIndexesResponse as a, IndexSource as b, type Failure as c, type CreateIndexResponse as d, type DropIndexResponse as e, type ListIndexesRequest as f, type PagingMetadata as g, type ListAvailableIndexesRequest as h, type ListAvailableIndexesResponse as i };
@@ -1,5 +1,5 @@
1
1
  /** An index is a map of a collection's data, organized according to specific fields to increase query speed. */
2
- export interface Index {
2
+ interface Index {
3
3
  /**
4
4
  * Name of the index.
5
5
  * @minLength 1
@@ -44,13 +44,13 @@ export interface Index {
44
44
  * Order determines how values are ordered in the index. This is important when
45
45
  * ordering and/or range querying by indexed fields.
46
46
  */
47
- export declare enum Order {
47
+ declare enum Order {
48
48
  ASC = "ASC",
49
49
  DESC = "DESC"
50
50
  }
51
51
  /** @enumType */
52
- export type OrderWithLiterals = Order | 'ASC' | 'DESC';
53
- export interface Field {
52
+ type OrderWithLiterals = Order | 'ASC' | 'DESC';
53
+ interface Field {
54
54
  /**
55
55
  * Path of the field to index. For example: `title` or `options.price`.
56
56
  * @minLength 1
@@ -64,7 +64,7 @@ export interface Field {
64
64
  */
65
65
  order?: OrderWithLiterals;
66
66
  }
67
- export declare enum Status {
67
+ declare enum Status {
68
68
  /** Place holder. Never returned by the service. */
69
69
  UNKNOWN = "UNKNOWN",
70
70
  /** Index creation is in progress. */
@@ -81,8 +81,8 @@ export declare enum Status {
81
81
  INVALID = "INVALID"
82
82
  }
83
83
  /** @enumType */
84
- export type StatusWithLiterals = Status | 'UNKNOWN' | 'BUILDING' | 'ACTIVE' | 'DROPPING' | 'DROPPED' | 'FAILED' | 'INVALID';
85
- export interface Failure {
84
+ type StatusWithLiterals = Status | 'UNKNOWN' | 'BUILDING' | 'ACTIVE' | 'DROPPING' | 'DROPPED' | 'FAILED' | 'INVALID';
85
+ interface Failure {
86
86
  /**
87
87
  * Error code.
88
88
  * - `WDE0112`: Unknown error while building collection index.
@@ -103,7 +103,7 @@ export interface Failure {
103
103
  */
104
104
  itemId?: string | null;
105
105
  }
106
- export declare enum IndexSource {
106
+ declare enum IndexSource {
107
107
  /** Place holder. Never returned by the service. */
108
108
  UNKNOWN_INDEX_SOURCE = "UNKNOWN_INDEX_SOURCE",
109
109
  /** Index is created by the system, present for all collections. */
@@ -114,8 +114,8 @@ export declare enum IndexSource {
114
114
  AUTO = "AUTO"
115
115
  }
116
116
  /** @enumType */
117
- export type IndexSourceWithLiterals = IndexSource | 'UNKNOWN_INDEX_SOURCE' | 'SYSTEM' | 'USER' | 'AUTO';
118
- export interface CreateIndexRequest {
117
+ type IndexSourceWithLiterals = IndexSource | 'UNKNOWN_INDEX_SOURCE' | 'SYSTEM' | 'USER' | 'AUTO';
118
+ interface CreateIndexRequest {
119
119
  /** Details of the index to be created. */
120
120
  index: Index;
121
121
  /**
@@ -124,7 +124,7 @@ export interface CreateIndexRequest {
124
124
  */
125
125
  dataCollectionId: string;
126
126
  }
127
- export declare enum Environment {
127
+ declare enum Environment {
128
128
  /** Place holder. Never returned by the service. */
129
129
  UNKNOWN_ENVIRONMENT = "UNKNOWN_ENVIRONMENT",
130
130
  /** Collection [sandbox environment](https://support.wix.com/en/article/cms-about-sandbox-and-live-collections-and-syncing#sandbox-collections). */
@@ -134,13 +134,11 @@ export declare enum Environment {
134
134
  /** Collection [live environment](https://support.wix.com/en/article/cms-about-sandbox-and-live-collections-and-syncing#live-collections). */
135
135
  LIVE = "LIVE"
136
136
  }
137
- /** @enumType */
138
- export type EnvironmentWithLiterals = Environment | 'UNKNOWN_ENVIRONMENT' | 'SANDBOX' | 'SANDBOX_PREFERRED' | 'LIVE';
139
- export interface CreateIndexResponse {
137
+ interface CreateIndexResponse {
140
138
  /** Details of the index being generated. */
141
139
  index?: Index;
142
140
  }
143
- export interface DropIndexRequest {
141
+ interface DropIndexRequest {
144
142
  /**
145
143
  * Name of the index to drop.
146
144
  * @minLength 1
@@ -153,9 +151,9 @@ export interface DropIndexRequest {
153
151
  */
154
152
  dataCollectionId: string;
155
153
  }
156
- export interface DropIndexResponse {
154
+ interface DropIndexResponse {
157
155
  }
158
- export interface ListIndexesRequest {
156
+ interface ListIndexesRequest {
159
157
  /**
160
158
  * ID of the data collection for which to list indexes.
161
159
  * @maxLength 1024
@@ -164,19 +162,19 @@ export interface ListIndexesRequest {
164
162
  /** Paging options to limit and skip the number of items. */
165
163
  paging?: Paging;
166
164
  }
167
- export interface Paging {
165
+ interface Paging {
168
166
  /** Number of items to load. */
169
167
  limit?: number | null;
170
168
  /** Number of items to skip in the current sort order. */
171
169
  offset?: number | null;
172
170
  }
173
- export interface ListIndexesResponse {
171
+ interface ListIndexesResponse {
174
172
  /** List of all indexes for the requested data collection. */
175
173
  indexes?: Index[];
176
174
  /** Paging metadata. */
177
175
  pagingMetadata?: PagingMetadata;
178
176
  }
179
- export interface PagingMetadata {
177
+ interface PagingMetadata {
180
178
  /** Number of items returned in the response. */
181
179
  count?: number | null;
182
180
  /** Offset that was requested. */
@@ -186,14 +184,14 @@ export interface PagingMetadata {
186
184
  /** Flag that indicates the server failed to calculate the `total` field. */
187
185
  tooManyToCount?: boolean | null;
188
186
  }
189
- export interface ListAvailableIndexesRequest {
187
+ interface ListAvailableIndexesRequest {
190
188
  /**
191
189
  * Data collection to show available indexes for
192
190
  * @maxLength 256
193
191
  */
194
192
  dataCollectionId: string;
195
193
  }
196
- export interface ListAvailableIndexesResponse {
194
+ interface ListAvailableIndexesResponse {
197
195
  /**
198
196
  * limit of regular single-field indexes, even if 0 1-field indices may be created using
199
197
  * 3-field quota (if available)
@@ -206,3 +204,9 @@ export interface ListAvailableIndexesResponse {
206
204
  /** Overall index limit, missing value means there's no overall limit */
207
205
  total?: number | null;
208
206
  }
207
+ interface ListIndexesOptions {
208
+ /** Paging options to limit and skip the number of items. */
209
+ paging?: Paging;
210
+ }
211
+
212
+ export { type CreateIndexRequest as C, type DropIndexRequest as D, Environment as E, type Field as F, type Index as I, type ListIndexesOptions as L, Order as O, type Paging as P, Status as S, type ListIndexesResponse as a, IndexSource as b, type Failure as c, type CreateIndexResponse as d, type DropIndexResponse as e, type ListIndexesRequest as f, type PagingMetadata as g, type ListAvailableIndexesRequest as h, type ListAvailableIndexesResponse as i };
@@ -1,9 +1,8 @@
1
- import { HttpClient } from '@wix/sdk-types';
2
- import { Index, ListIndexesOptions, ListIndexesResponse } from './data-v2-index-indexes.universal.js';
3
- export declare const __metadata: {
4
- PACKAGE_NAME: string;
5
- };
6
- export declare function createIndex(httpClient: HttpClient): CreateIndexSignature;
1
+ import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
2
+ import { I as Index, L as ListIndexesOptions, a as ListIndexesResponse } from './data-v2-index-indexes.universal-BbNMyDRQ.mjs';
3
+ export { C as CreateIndexRequest, d as CreateIndexResponse, D as DropIndexRequest, e as DropIndexResponse, E as Environment, c as Failure, F as Field, b as IndexSource, h as ListAvailableIndexesRequest, i as ListAvailableIndexesResponse, f as ListIndexesRequest, O as Order, P as Paging, g as PagingMetadata, S as Status } from './data-v2-index-indexes.universal-BbNMyDRQ.mjs';
4
+
5
+ declare function createIndex$1(httpClient: HttpClient): CreateIndexSignature;
7
6
  interface CreateIndexSignature {
8
7
  /**
9
8
  * Creates an index for a data collection.
@@ -20,7 +19,7 @@ interface CreateIndexSignature {
20
19
  */
21
20
  (dataCollectionId: string, index: Index): Promise<Index>;
22
21
  }
23
- export declare function dropIndex(httpClient: HttpClient): DropIndexSignature;
22
+ declare function dropIndex$1(httpClient: HttpClient): DropIndexSignature;
24
23
  interface DropIndexSignature {
25
24
  /**
26
25
  * Removes an index from a data collection.
@@ -33,7 +32,7 @@ interface DropIndexSignature {
33
32
  */
34
33
  (dataCollectionId: string, indexName: string): Promise<void>;
35
34
  }
36
- export declare function listIndexes(httpClient: HttpClient): ListIndexesSignature;
35
+ declare function listIndexes$1(httpClient: HttpClient): ListIndexesSignature;
37
36
  interface ListIndexesSignature {
38
37
  /**
39
38
  * Lists all indexes defined for a data collection.
@@ -48,4 +47,9 @@ interface ListIndexesSignature {
48
47
  */
49
48
  (dataCollectionId: string, options?: ListIndexesOptions | undefined): Promise<ListIndexesResponse>;
50
49
  }
51
- export { CreateIndexRequest, CreateIndexResponse, DropIndexRequest, DropIndexResponse, Environment, Failure, Field, Index, IndexSource, ListAvailableIndexesRequest, ListAvailableIndexesResponse, ListIndexesOptions, ListIndexesRequest, ListIndexesResponse, Order, Paging, PagingMetadata, Status, } from './data-v2-index-indexes.universal.js';
50
+
51
+ declare const createIndex: MaybeContext<BuildRESTFunction<typeof createIndex$1> & typeof createIndex$1>;
52
+ declare const dropIndex: MaybeContext<BuildRESTFunction<typeof dropIndex$1> & typeof dropIndex$1>;
53
+ declare const listIndexes: MaybeContext<BuildRESTFunction<typeof listIndexes$1> & typeof listIndexes$1>;
54
+
55
+ export { Index, ListIndexesOptions, ListIndexesResponse, createIndex, dropIndex, listIndexes };
@@ -1,9 +1,8 @@
1
- import { HttpClient } from '@wix/sdk-types';
2
- import { Index, ListAvailableIndexesResponse, ListIndexesOptions, ListIndexesResponse } from './data-v2-index-indexes.universal.js';
3
- export declare const __metadata: {
4
- PACKAGE_NAME: string;
5
- };
6
- export declare function createIndex(httpClient: HttpClient): CreateIndexSignature;
1
+ import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
2
+ import { I as Index, L as ListIndexesOptions, a as ListIndexesResponse } from './data-v2-index-indexes.universal-BbNMyDRQ.js';
3
+ export { C as CreateIndexRequest, d as CreateIndexResponse, D as DropIndexRequest, e as DropIndexResponse, E as Environment, c as Failure, F as Field, b as IndexSource, h as ListAvailableIndexesRequest, i as ListAvailableIndexesResponse, f as ListIndexesRequest, O as Order, P as Paging, g as PagingMetadata, S as Status } from './data-v2-index-indexes.universal-BbNMyDRQ.js';
4
+
5
+ declare function createIndex$1(httpClient: HttpClient): CreateIndexSignature;
7
6
  interface CreateIndexSignature {
8
7
  /**
9
8
  * Creates an index for a data collection.
@@ -20,7 +19,7 @@ interface CreateIndexSignature {
20
19
  */
21
20
  (dataCollectionId: string, index: Index): Promise<Index>;
22
21
  }
23
- export declare function dropIndex(httpClient: HttpClient): DropIndexSignature;
22
+ declare function dropIndex$1(httpClient: HttpClient): DropIndexSignature;
24
23
  interface DropIndexSignature {
25
24
  /**
26
25
  * Removes an index from a data collection.
@@ -33,7 +32,7 @@ interface DropIndexSignature {
33
32
  */
34
33
  (dataCollectionId: string, indexName: string): Promise<void>;
35
34
  }
36
- export declare function listIndexes(httpClient: HttpClient): ListIndexesSignature;
35
+ declare function listIndexes$1(httpClient: HttpClient): ListIndexesSignature;
37
36
  interface ListIndexesSignature {
38
37
  /**
39
38
  * Lists all indexes defined for a data collection.
@@ -48,13 +47,9 @@ interface ListIndexesSignature {
48
47
  */
49
48
  (dataCollectionId: string, options?: ListIndexesOptions | undefined): Promise<ListIndexesResponse>;
50
49
  }
51
- /** @internal */
52
- export declare function listAvailableIndexes(httpClient: HttpClient): ListAvailableIndexesSignature;
53
- interface ListAvailableIndexesSignature {
54
- /**
55
- * Lists available indexes limits
56
- * @param - Data collection to show available indexes for
57
- */
58
- (dataCollectionId: string): Promise<ListAvailableIndexesResponse>;
59
- }
60
- export { CreateIndexRequest, CreateIndexResponse, DropIndexRequest, DropIndexResponse, Environment, Failure, Field, Index, IndexSource, ListAvailableIndexesRequest, ListAvailableIndexesResponse, ListIndexesOptions, ListIndexesRequest, ListIndexesResponse, Order, Paging, PagingMetadata, Status, } from './data-v2-index-indexes.universal.js';
50
+
51
+ declare const createIndex: MaybeContext<BuildRESTFunction<typeof createIndex$1> & typeof createIndex$1>;
52
+ declare const dropIndex: MaybeContext<BuildRESTFunction<typeof dropIndex$1> & typeof dropIndex$1>;
53
+ declare const listIndexes: MaybeContext<BuildRESTFunction<typeof listIndexes$1> & typeof listIndexes$1>;
54
+
55
+ export { Index, ListIndexesOptions, ListIndexesResponse, createIndex, dropIndex, listIndexes };