@zilliz/milvus2-sdk-node 2.2.9 → 2.2.11

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 (149) hide show
  1. package/README.md +76 -12
  2. package/dist/milvus/MilvusClient.d.ts +21 -2
  3. package/dist/milvus/MilvusClient.js +35 -29
  4. package/dist/milvus/MilvusClient.js.map +1 -1
  5. package/dist/milvus/OrmClient.d.ts +19 -0
  6. package/dist/milvus/OrmClient.js +77 -0
  7. package/dist/milvus/OrmClient.js.map +1 -0
  8. package/dist/milvus/const/ErrorReason.d.ts +36 -31
  9. package/dist/milvus/const/ErrorReason.js +39 -32
  10. package/dist/milvus/const/ErrorReason.js.map +1 -1
  11. package/dist/milvus/const/Milvus.d.ts +2 -9
  12. package/dist/milvus/const/Milvus.js +16 -33
  13. package/dist/milvus/const/Milvus.js.map +1 -1
  14. package/dist/milvus/const/client.d.ts +5 -0
  15. package/dist/milvus/const/client.js +10 -0
  16. package/dist/milvus/const/client.js.map +1 -0
  17. package/dist/milvus/const/defaults.d.ts +11 -0
  18. package/dist/milvus/const/defaults.js +16 -0
  19. package/dist/milvus/const/defaults.js.map +1 -0
  20. package/dist/milvus/const/highLevel.d.ts +23 -0
  21. package/dist/milvus/const/highLevel.js +26 -0
  22. package/dist/milvus/const/highLevel.js.map +1 -0
  23. package/dist/milvus/const/index.d.ts +5 -0
  24. package/dist/milvus/{types.js → const/index.js} +7 -10
  25. package/dist/milvus/const/index.js.map +1 -0
  26. package/dist/milvus/const/limits.d.ts +2 -0
  27. package/dist/milvus/const/limits.js +7 -0
  28. package/dist/milvus/const/limits.js.map +1 -0
  29. package/dist/milvus/{BaseClient.d.ts → grpc/BaseClient.d.ts} +20 -8
  30. package/dist/milvus/grpc/BaseClient.js +83 -0
  31. package/dist/milvus/grpc/BaseClient.js.map +1 -0
  32. package/dist/milvus/{Collection.d.ts → grpc/Collection.d.ts} +32 -3
  33. package/dist/milvus/grpc/Collection.js +786 -0
  34. package/dist/milvus/grpc/Collection.js.map +1 -0
  35. package/dist/milvus/{Data.d.ts → grpc/Data.d.ts} +68 -10
  36. package/dist/milvus/grpc/Data.js +880 -0
  37. package/dist/milvus/grpc/Data.js.map +1 -0
  38. package/dist/milvus/grpc/Database.d.ts +69 -0
  39. package/dist/milvus/grpc/Database.js +98 -0
  40. package/dist/milvus/grpc/Database.js.map +1 -0
  41. package/dist/milvus/grpc/GrpcClient.d.ts +46 -0
  42. package/dist/milvus/grpc/GrpcClient.js +150 -0
  43. package/dist/milvus/grpc/GrpcClient.js.map +1 -0
  44. package/dist/milvus/{MilvusIndex.d.ts → grpc/MilvusIndex.d.ts} +1 -1
  45. package/dist/milvus/grpc/MilvusIndex.js +203 -0
  46. package/dist/milvus/grpc/MilvusIndex.js.map +1 -0
  47. package/dist/milvus/{Partition.d.ts → grpc/Partition.d.ts} +1 -1
  48. package/dist/milvus/grpc/Partition.js +265 -0
  49. package/dist/milvus/grpc/Partition.js.map +1 -0
  50. package/dist/milvus/{Resource.d.ts → grpc/Resource.d.ts} +2 -2
  51. package/dist/milvus/grpc/Resource.js +250 -0
  52. package/dist/milvus/grpc/Resource.js.map +1 -0
  53. package/dist/milvus/{User.d.ts → grpc/User.d.ts} +1 -1
  54. package/dist/milvus/grpc/User.js +619 -0
  55. package/dist/milvus/grpc/User.js.map +1 -0
  56. package/dist/milvus/index.d.ts +4 -13
  57. package/dist/milvus/index.js +6 -14
  58. package/dist/milvus/index.js.map +1 -1
  59. package/dist/milvus/orm/Collection.d.ts +45 -0
  60. package/dist/milvus/orm/Collection.js +172 -0
  61. package/dist/milvus/orm/Collection.js.map +1 -0
  62. package/dist/milvus/orm/index.d.ts +2 -0
  63. package/dist/milvus/orm/index.js +19 -0
  64. package/dist/milvus/orm/index.js.map +1 -0
  65. package/dist/milvus/orm/utils.d.ts +27 -0
  66. package/dist/milvus/orm/utils.js +27 -0
  67. package/dist/milvus/orm/utils.js.map +1 -0
  68. package/dist/milvus/types/Client.d.ts +12 -1
  69. package/dist/milvus/types/Collection.d.ts +18 -4
  70. package/dist/milvus/types/Common.d.ts +1 -1
  71. package/dist/milvus/types/Data.d.ts +41 -5
  72. package/dist/milvus/types/Database.d.ts +12 -0
  73. package/dist/milvus/types/{Index.js → Database.js} +1 -1
  74. package/dist/milvus/types/Database.js.map +1 -0
  75. package/dist/milvus/types/HighLevel.d.ts +13 -0
  76. package/dist/milvus/types/HighLevel.js +3 -0
  77. package/dist/milvus/types/HighLevel.js.map +1 -0
  78. package/dist/milvus/types/{Index.d.ts → MilvusIndex.d.ts} +3 -2
  79. package/dist/milvus/types/MilvusIndex.js +3 -0
  80. package/dist/milvus/types/MilvusIndex.js.map +1 -0
  81. package/dist/milvus/types/Resource.d.ts +1 -1
  82. package/dist/milvus/types/User.d.ts +1 -1
  83. package/dist/milvus/types/index.d.ts +12 -0
  84. package/dist/milvus/types/index.js +30 -0
  85. package/dist/milvus/types/index.js.map +1 -0
  86. package/dist/{utils → milvus/utils}/Blob.js +4 -4
  87. package/dist/milvus/utils/Blob.js.map +1 -0
  88. package/dist/{utils → milvus/utils}/Format.d.ts +66 -2
  89. package/dist/milvus/utils/Format.js +416 -0
  90. package/dist/milvus/utils/Format.js.map +1 -0
  91. package/dist/{utils → milvus/utils}/Function.d.ts +1 -1
  92. package/dist/{utils → milvus/utils}/Function.js +7 -7
  93. package/dist/milvus/utils/Function.js.map +1 -0
  94. package/dist/{utils → milvus/utils}/Grpc.d.ts +9 -8
  95. package/dist/milvus/utils/Grpc.js +190 -0
  96. package/dist/milvus/utils/Grpc.js.map +1 -0
  97. package/dist/{utils → milvus/utils}/Validate.d.ts +7 -1
  98. package/dist/milvus/utils/Validate.js +140 -0
  99. package/dist/milvus/utils/Validate.js.map +1 -0
  100. package/dist/{utils → milvus/utils}/index.d.ts +2 -0
  101. package/dist/{utils → milvus/utils}/index.js +2 -0
  102. package/dist/milvus/utils/index.js.map +1 -0
  103. package/dist/milvus/utils/logger.d.ts +1 -0
  104. package/dist/milvus/utils/logger.js +18 -0
  105. package/dist/milvus/utils/logger.js.map +1 -0
  106. package/dist/proto/proto/common.proto +38 -14
  107. package/dist/proto/proto/google/protobuf/descriptor.proto +8 -4
  108. package/dist/proto/proto/milvus.proto +86 -83
  109. package/dist/proto/proto/schema.proto +5 -0
  110. package/dist/sdk.json +1 -1
  111. package/package.json +14 -11
  112. package/dist/milvus/BaseClient.js +0 -62
  113. package/dist/milvus/BaseClient.js.map +0 -1
  114. package/dist/milvus/Collection.js +0 -960
  115. package/dist/milvus/Collection.js.map +0 -1
  116. package/dist/milvus/Data.js +0 -909
  117. package/dist/milvus/Data.js.map +0 -1
  118. package/dist/milvus/GrpcClient.d.ts +0 -32
  119. package/dist/milvus/GrpcClient.js +0 -236
  120. package/dist/milvus/GrpcClient.js.map +0 -1
  121. package/dist/milvus/MilvusIndex.js +0 -299
  122. package/dist/milvus/MilvusIndex.js.map +0 -1
  123. package/dist/milvus/Partition.js +0 -369
  124. package/dist/milvus/Partition.js.map +0 -1
  125. package/dist/milvus/Resource.js +0 -356
  126. package/dist/milvus/Resource.js.map +0 -1
  127. package/dist/milvus/User.js +0 -806
  128. package/dist/milvus/User.js.map +0 -1
  129. package/dist/milvus/Utils.d.ts +0 -1
  130. package/dist/milvus/Utils.js +0 -8
  131. package/dist/milvus/Utils.js.map +0 -1
  132. package/dist/milvus/types/Index.js.map +0 -1
  133. package/dist/milvus/types.d.ts +0 -9
  134. package/dist/milvus/types.js.map +0 -1
  135. package/dist/proto/proto/feder.proto +0 -40
  136. package/dist/proto/proto/msg.proto +0 -107
  137. package/dist/utils/Blob.js.map +0 -1
  138. package/dist/utils/Format.js +0 -252
  139. package/dist/utils/Format.js.map +0 -1
  140. package/dist/utils/Function.js.map +0 -1
  141. package/dist/utils/Grpc.js +0 -170
  142. package/dist/utils/Grpc.js.map +0 -1
  143. package/dist/utils/Validate.js +0 -124
  144. package/dist/utils/Validate.js.map +0 -1
  145. package/dist/utils/index.js.map +0 -1
  146. package/dist/utils/test.d.ts +0 -15
  147. package/dist/utils/test.js +0 -98
  148. package/dist/utils/test.js.map +0 -1
  149. /package/dist/{utils → milvus/utils}/Blob.d.ts +0 -0
@@ -1,369 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
18
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
19
- return new (P || (P = Promise))(function (resolve, reject) {
20
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
21
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
22
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
23
- step((generator = generator.apply(thisArg, _arguments || [])).next());
24
- });
25
- };
26
- var __generator = (this && this.__generator) || function (thisArg, body) {
27
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
28
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
29
- function verb(n) { return function (v) { return step([n, v]); }; }
30
- function step(op) {
31
- if (f) throw new TypeError("Generator is already executing.");
32
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
33
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
34
- if (y = 0, t) op = [op[0] & 2, t.value];
35
- switch (op[0]) {
36
- case 0: case 1: t = op; break;
37
- case 4: _.label++; return { value: op[1], done: false };
38
- case 5: _.label++; y = op[1]; op = [0]; continue;
39
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
40
- default:
41
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
42
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
43
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
44
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
45
- if (t[2]) _.ops.pop();
46
- _.trys.pop(); continue;
47
- }
48
- op = body.call(thisArg, _);
49
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
50
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
51
- }
52
- };
53
- Object.defineProperty(exports, "__esModule", { value: true });
54
- exports.Partition = void 0;
55
- var MilvusIndex_1 = require("./MilvusIndex");
56
- var utils_1 = require("../utils");
57
- var _1 = require(".");
58
- var Partition = /** @class */ (function (_super) {
59
- __extends(Partition, _super);
60
- function Partition() {
61
- return _super !== null && _super.apply(this, arguments) || this;
62
- }
63
- /**
64
- * Create a partition in a collection.
65
- *
66
- * @param data
67
- * | Property | Type | Description |
68
- * | :-- | :-- | :-- |
69
- * | collection_name | String | Collection name |
70
- * | partition_name | String | Partition name |
71
- * | timeout? | number | An optional duration of time in millisecond to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or error occurs. Default is undefined |
72
-
73
- *
74
- * @returns
75
- * | Property | Description |
76
- * | :-- | :-- |
77
- * | error_code | Error code number |
78
- * | reason | Error cause |
79
- *
80
- * #### Example
81
- *
82
- * ```
83
- * new milvusClient(MILUVS_ADDRESS).createPartition({
84
- * collection_name: 'my_collection',
85
- * partition_name: 'my_partition',
86
- * });
87
- * ```
88
- */
89
- Partition.prototype.createPartition = function (data) {
90
- return __awaiter(this, void 0, void 0, function () {
91
- var promise;
92
- return __generator(this, function (_a) {
93
- switch (_a.label) {
94
- case 0:
95
- (0, utils_1.checkCollectionAndPartitionName)(data);
96
- return [4 /*yield*/, (0, utils_1.promisify)(this.client, 'CreatePartition', data, data.timeout || this.timeout)];
97
- case 1:
98
- promise = _a.sent();
99
- return [2 /*return*/, promise];
100
- }
101
- });
102
- });
103
- };
104
- /**
105
- * Check if a partition exists in a collection.
106
- *
107
- * @param data
108
- * | Property | Type | Description |
109
- * | :-- | :-- | :-- |
110
- * | collection_name | string | Collection name |
111
- * | partition_name | string | Parititon name |
112
- * | timeout? | number | An optional duration of time in millisecond to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or error occurs. Default is undefined |
113
-
114
- *
115
- * @returns
116
- * | Property | Description |
117
- * | :-- | :-- |
118
- * | status | { error_code: number,reason:string } |
119
- * | value | `true` or `false` |
120
- *
121
- * #### Example
122
- *
123
- * ```
124
- * new milvusClient(MILUVS_ADDRESS).hasPartition({
125
- * collection_name: 'my_collection',
126
- * partition_name: 'my_partition',
127
- * });
128
- * ```
129
- */
130
- Partition.prototype.hasPartition = function (data) {
131
- return __awaiter(this, void 0, void 0, function () {
132
- var promise;
133
- return __generator(this, function (_a) {
134
- switch (_a.label) {
135
- case 0:
136
- (0, utils_1.checkCollectionAndPartitionName)(data);
137
- return [4 /*yield*/, (0, utils_1.promisify)(this.client, 'HasPartition', data, data.timeout || this.timeout)];
138
- case 1:
139
- promise = _a.sent();
140
- return [2 /*return*/, promise];
141
- }
142
- });
143
- });
144
- };
145
- /**
146
- * Show all partitions in a collection.
147
- *
148
- * @param data
149
- * | Property | Type | Description |
150
- * | :-- | :-- | :-- |
151
- * | collection_name | String | Collection name |
152
- * | timeout? | number | An optional duration of time in millisecond to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or error occurs. Default is undefined |
153
-
154
- *
155
- * @returns
156
- * | Property | Description |
157
- * | :-- | :-- |
158
- * | status | { error_code: number, reason: string } |
159
- * | partition_names | Array of partition names |
160
- * | partitionIDs | Array of partition IDs |
161
- *
162
- *
163
- * #### Example
164
- *
165
- * ```
166
- * new milvusClient(MILUVS_ADDRESS).showPartitions({
167
- * collection_name: 'my_collection',
168
- * });
169
- * ```
170
- */
171
- Partition.prototype.showPartitions = function (data) {
172
- return __awaiter(this, void 0, void 0, function () {
173
- var promise;
174
- return __generator(this, function (_a) {
175
- switch (_a.label) {
176
- case 0:
177
- (0, utils_1.checkCollectionName)(data);
178
- return [4 /*yield*/, (0, utils_1.promisify)(this.client, 'ShowPartitions', data, data.timeout || this.timeout)];
179
- case 1:
180
- promise = _a.sent();
181
- return [2 /*return*/, promise];
182
- }
183
- });
184
- });
185
- };
186
- /**
187
- * Show the statistics information of a partition.
188
- *
189
- * @param data
190
- * | Property | Type | Description |
191
- * | :-- | :-- | :-- |
192
- * | collection_name | String | Collection name |
193
- * | partition_name | String | Partition name |
194
- * | timeout? | number | An optional duration of time in millisecond to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or error occurs. Default is undefined |
195
-
196
- *
197
- * @returns
198
- * | Property | Description |
199
- * | :-- | :-- |
200
- * | status | { error_code: number, reason: string } |
201
- * | stats | [{key: string, value: string}] |
202
- * | data | { row_count: 0 } transformed from **stats** |
203
- *
204
- *
205
- * #### Example
206
- *
207
- * ```
208
- * new milvusClient(MILUVS_ADDRESS).getPartitionStatistics({
209
- * collection_name: 'my_collection',
210
- * partition_name: "_default",
211
- * });
212
- * ```
213
- */
214
- Partition.prototype.getPartitionStatistics = function (data) {
215
- return __awaiter(this, void 0, void 0, function () {
216
- var promise;
217
- return __generator(this, function (_a) {
218
- switch (_a.label) {
219
- case 0:
220
- (0, utils_1.checkCollectionAndPartitionName)(data);
221
- return [4 /*yield*/, (0, utils_1.promisify)(this.client, 'GetPartitionStatistics', data, data.timeout || this.timeout)];
222
- case 1:
223
- promise = _a.sent();
224
- promise.data = (0, utils_1.formatKeyValueData)(promise.stats, ['row_count']);
225
- return [2 /*return*/, promise];
226
- }
227
- });
228
- });
229
- };
230
- /**
231
- * Load multiple partitions into query nodes.
232
- *
233
- * @param data
234
- * | Property | Type | Description |
235
- * | :--- | :-- | :-- |
236
- * | collection_name | String | Collection name |
237
- * | partition_names | String[] | Array of partition names |
238
- * | replica_number? | number | replica number |
239
- * | resource_groups | String[] | resource group names |
240
- * | timeout? | number | An optional duration of time in millisecond to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or error occurs. Default is undefined |
241
- *
242
- * @returns
243
- * | Property | Description |
244
- * | :-- | :-- |
245
- * | error_code | Error code number |
246
- * | reason | Error cause |
247
- *
248
- * #### Example
249
- *
250
- * ```
251
- * new milvusClient(MILUVS_ADDRESS).loadPartitions({
252
- * collection_name: 'my_collection',
253
- * partition_names: ['my_partition'],
254
- * });
255
- * ```
256
- */
257
- Partition.prototype.loadPartitions = function (data) {
258
- return __awaiter(this, void 0, void 0, function () {
259
- var promise;
260
- return __generator(this, function (_a) {
261
- switch (_a.label) {
262
- case 0:
263
- (0, utils_1.checkCollectionName)(data);
264
- if (!Array.isArray(data.partition_names) || !data.partition_names.length) {
265
- throw new Error(_1.ERROR_REASONS.PARTITION_NAMES_IS_REQUIRED);
266
- }
267
- return [4 /*yield*/, (0, utils_1.promisify)(this.client, 'LoadPartitions', data, data.timeout || this.timeout)];
268
- case 1:
269
- promise = _a.sent();
270
- return [2 /*return*/, promise];
271
- }
272
- });
273
- });
274
- };
275
- /**
276
- * Release a partition from cache.
277
- *
278
- * @param data
279
- * | Property | Type | Description |
280
- * | :-- | :-- | :-- |
281
- * | collection_name | String | Collection name |
282
- * | partition_names | String[] | Array of partition names |
283
- * | timeout? | number | An optional duration of time in millisecond to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or error occurs. Default is undefined |
284
-
285
- *
286
- * @returns
287
- * | Property | Description |
288
- * | :-- | :-- |
289
- * | error_code | Error code number |
290
- * | reason | Error cause |
291
- *
292
- * #### Example
293
- *
294
- * ```
295
- * new milvusClient(MILUVS_ADDRESS).releasePartitions({
296
- * collection_name: 'my_collection',
297
- * partition_names: ['my_partition'],
298
- * });
299
- * ```
300
- */
301
- Partition.prototype.releasePartitions = function (data) {
302
- return __awaiter(this, void 0, void 0, function () {
303
- var promise;
304
- return __generator(this, function (_a) {
305
- switch (_a.label) {
306
- case 0:
307
- (0, utils_1.checkCollectionName)(data);
308
- if (!Array.isArray(data.partition_names) || !data.partition_names.length) {
309
- throw new Error(_1.ERROR_REASONS.PARTITION_NAMES_IS_REQUIRED);
310
- }
311
- return [4 /*yield*/, (0, utils_1.promisify)(this.client, 'ReleasePartitions', data, data.timeout || this.timeout)];
312
- case 1:
313
- promise = _a.sent();
314
- return [2 /*return*/, promise];
315
- }
316
- });
317
- });
318
- };
319
- /**
320
- * Drop a partition. Note that it will drop all data in the partition.
321
- * Default partition cannot be droped.
322
- * @param data
323
- * @returns
324
- */
325
- /**
326
- * To drop a partition will drop all data in this partition and the `_default` partition cannot be dropped.
327
- *
328
- * @param data
329
- * | Property | Type | Description |
330
- * | :-- | :-- | :-- |
331
- * | collection_name | String | Collection name |
332
- * | partition_name | String | Partition name |
333
- * | timeout? | number | An optional duration of time in millisecond to allow for the RPC. If it is set to undefined, the client keeps waiting until the server responds or error occurs. Default is undefined |
334
-
335
- *
336
- * @returns
337
- * | Property | Description |
338
- * | :-- | :-- |
339
- * | error_code | Error code number |
340
- * | reason | Error cause |
341
- *
342
- * #### Example
343
- *
344
- * ```
345
- * new milvusClient(MILUVS_ADDRESS).dropPartition({
346
- * collection_name: 'my_collection',
347
- * partition_name: 'my_partition',
348
- * });
349
- * ```
350
- */
351
- Partition.prototype.dropPartition = function (data) {
352
- return __awaiter(this, void 0, void 0, function () {
353
- var promise;
354
- return __generator(this, function (_a) {
355
- switch (_a.label) {
356
- case 0:
357
- (0, utils_1.checkCollectionAndPartitionName)(data);
358
- return [4 /*yield*/, (0, utils_1.promisify)(this.client, 'DropPartition', data, data.timeout || this.timeout)];
359
- case 1:
360
- promise = _a.sent();
361
- return [2 /*return*/, promise];
362
- }
363
- });
364
- });
365
- };
366
- return Partition;
367
- }(MilvusIndex_1.Index));
368
- exports.Partition = Partition;
369
- //# sourceMappingURL=Partition.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Partition.js","sourceRoot":"","sources":["../../milvus/Partition.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAsC;AACtC,kCAKkB;AAClB,sBAaW;AAEX;IAA+B,6BAAK;IAApC;;IAuRA,CAAC;IAtRC;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACG,mCAAe,GAArB,UAAsB,IAAwB;;;;;;wBAC5C,IAAA,uCAA+B,EAAC,IAAI,CAAC,CAAC;wBACtB,qBAAM,IAAA,iBAAS,EAC7B,IAAI,CAAC,MAAM,EACX,iBAAiB,EACjB,IAAI,EACJ,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,OAAO,CAC7B,EAAA;;wBALK,OAAO,GAAG,SAKf;wBACD,sBAAO,OAAO,EAAC;;;;KAChB;IAED;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACG,gCAAY,GAAlB,UAAmB,IAAqB;;;;;;wBACtC,IAAA,uCAA+B,EAAC,IAAI,CAAC,CAAC;wBACtB,qBAAM,IAAA,iBAAS,EAC7B,IAAI,CAAC,MAAM,EACX,cAAc,EACd,IAAI,EACJ,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,OAAO,CAC7B,EAAA;;wBALK,OAAO,GAAG,SAKf;wBACD,sBAAO,OAAO,EAAC;;;;KAChB;IAED;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACG,kCAAc,GAApB,UACE,IAAuB;;;;;;wBAEvB,IAAA,2BAAmB,EAAC,IAAI,CAAC,CAAC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