@0xobelisk/sui-client 1.1.11 → 1.2.0-pre.1

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/dist/dubhe.d.ts CHANGED
@@ -8,7 +8,7 @@ import { SuiContractFactory } from './libs/suiContractFactory';
8
8
  import { SuiMoveMoudleFuncType } from './libs/suiContractFactory/types';
9
9
  import { NetworkConfig } from './libs/suiInteractor';
10
10
  import { DerivePathParams, FaucetNetworkType, MapMoudleFuncQuery, MapMoudleFuncTx, DubheParams, SuiTxArg, SuiObjectArg, SuiVecTxArg, SubscribableType, IndexerTransactionResult } from './types';
11
- import { ConnectionResponse, IndexerTransaction, IndexerEvent, IndexerSchema, SuiIndexerClient, StorageResponse, StorageItemResponse } from './libs/suiIndexerClient';
11
+ import { ConnectionResponse, IndexerTransaction, IndexerEvent, IndexerSchema, SuiIndexerClient, StorageResponse, StorageItemResponse, JsonPathOrder } from './libs/suiIndexerClient';
12
12
  import { Http } from './libs/http';
13
13
  export declare function isUndefined(value?: unknown): value is undefined;
14
14
  export declare function withMeta<T extends {
@@ -88,7 +88,7 @@ export declare class Dubhe {
88
88
  checkpoint?: string;
89
89
  orderBy?: string[];
90
90
  }): Promise<ConnectionResponse<IndexerEvent>>;
91
- getSchemas({ name, key1, key2, is_removed, last_update_checkpoint, last_update_digest, value, first, after, orderBy, }: {
91
+ getSchemas({ name, key1, key2, is_removed, last_update_checkpoint, last_update_digest, value, first, after, orderBy, jsonOrderBy, }: {
92
92
  name?: string;
93
93
  key1?: any;
94
94
  key2?: any;
@@ -99,8 +99,9 @@ export declare class Dubhe {
99
99
  first?: number;
100
100
  after?: string;
101
101
  orderBy?: string[];
102
+ jsonOrderBy?: JsonPathOrder[];
102
103
  }): Promise<ConnectionResponse<IndexerSchema>>;
103
- getStorage({ name, key1, key2, is_removed, last_update_checkpoint, last_update_digest, value, first, after, orderBy, }: {
104
+ getStorage({ name, key1, key2, is_removed, last_update_checkpoint, last_update_digest, value, first, after, orderBy, jsonOrderBy, }: {
104
105
  name?: string;
105
106
  key1?: any;
106
107
  key2?: any;
@@ -111,6 +112,7 @@ export declare class Dubhe {
111
112
  first?: number;
112
113
  after?: string;
113
114
  orderBy?: string[];
115
+ jsonOrderBy?: JsonPathOrder[];
114
116
  }): Promise<StorageResponse<IndexerSchema>>;
115
117
  getStorageItem({ name, key1, key2, is_removed, last_update_checkpoint, last_update_digest, value, }: {
116
118
  name: string;
package/dist/index.d.ts CHANGED
@@ -14,4 +14,4 @@ export { SuiContractFactory } from './libs/suiContractFactory';
14
14
  export { SubscriptionKind } from './libs/suiIndexerClient';
15
15
  export { loadMetadata } from './metadata';
16
16
  export type * from './types';
17
- export type { IndexerEvent, IndexerSchema, IndexerTransaction, ConnectionResponse, StorageResponse, StorageItemResponse, PageInfo, } from './libs/suiIndexerClient';
17
+ export type { IndexerEvent, IndexerSchema, IndexerTransaction, ConnectionResponse, StorageResponse, StorageItemResponse, PageInfo, JsonPathOrder, JsonValueType, } from './libs/suiIndexerClient';
package/dist/index.js CHANGED
@@ -1172,7 +1172,8 @@ var SuiIndexerClient = class {
1172
1172
  $last_update_checkpoint: String,
1173
1173
  $last_update_digest: String,
1174
1174
  $value: JSON,
1175
- $orderBy: [SchemaOrderField!]
1175
+ $orderBy: [SchemaOrderField!],
1176
+ $jsonOrderBy: [JsonPathOrder!]
1176
1177
  ) {
1177
1178
  schemas(
1178
1179
  first: $first,
@@ -1184,7 +1185,8 @@ var SuiIndexerClient = class {
1184
1185
  last_update_checkpoint: $last_update_checkpoint,
1185
1186
  last_update_digest: $last_update_digest,
1186
1187
  value: $value,
1187
- orderBy: $orderBy
1188
+ orderBy: $orderBy,
1189
+ jsonOrderBy: $jsonOrderBy
1188
1190
  ) {
1189
1191
  edges {
1190
1192
  cursor
@@ -1249,7 +1251,8 @@ var SuiIndexerClient = class {
1249
1251
  value,
1250
1252
  first,
1251
1253
  after,
1252
- orderBy
1254
+ orderBy,
1255
+ jsonOrderBy
1253
1256
  }) {
1254
1257
  const schemas = await this.getSchemas({
1255
1258
  name,
@@ -1261,7 +1264,8 @@ var SuiIndexerClient = class {
1261
1264
  value,
1262
1265
  first,
1263
1266
  after,
1264
- orderBy
1267
+ orderBy,
1268
+ jsonOrderBy
1265
1269
  });
1266
1270
  const data = schemas.edges.map((edge) => edge.node);
1267
1271
  const result = data.map((item) => parseValue(item.value));
@@ -2414,7 +2418,8 @@ var Dubhe = class {
2414
2418
  value,
2415
2419
  first,
2416
2420
  after,
2417
- orderBy
2421
+ orderBy,
2422
+ jsonOrderBy
2418
2423
  }) {
2419
2424
  return await this.suiIndexerClient.getSchemas({
2420
2425
  name,
@@ -2426,7 +2431,8 @@ var Dubhe = class {
2426
2431
  value,
2427
2432
  first,
2428
2433
  after,
2429
- orderBy
2434
+ orderBy,
2435
+ jsonOrderBy
2430
2436
  });
2431
2437
  }
2432
2438
  async getStorage({
@@ -2439,7 +2445,8 @@ var Dubhe = class {
2439
2445
  value,
2440
2446
  first,
2441
2447
  after,
2442
- orderBy
2448
+ orderBy,
2449
+ jsonOrderBy
2443
2450
  }) {
2444
2451
  return await this.suiIndexerClient.getStorage({
2445
2452
  name,
@@ -2451,7 +2458,8 @@ var Dubhe = class {
2451
2458
  value,
2452
2459
  first,
2453
2460
  after,
2454
- orderBy
2461
+ orderBy,
2462
+ jsonOrderBy
2455
2463
  });
2456
2464
  }
2457
2465
  async getStorageItem({