@highlightxyz/cli 0.3.0 → 0.3.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.
Files changed (2) hide show
  1. package/lib/index.js +48 -10
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  // package.json
3
3
  var package_default = {
4
4
  name: "@highlightxyz/cli",
5
- version: "0.3.0",
5
+ version: "0.3.1",
6
6
  description: "Official command-line interface for the Highlight API",
7
7
  keywords: [
8
8
  "cli",
@@ -1176,6 +1176,24 @@ class Collection extends HeyApiClient {
1176
1176
  }
1177
1177
  });
1178
1178
  }
1179
+ discover(parameters, options) {
1180
+ const params = buildClientParams([parameters], [
1181
+ {
1182
+ args: [
1183
+ { in: "query", key: "type" },
1184
+ { in: "query", key: "chainId" },
1185
+ { in: "query", key: "sort" },
1186
+ { in: "query", key: "limit" },
1187
+ { in: "query", key: "offset" }
1188
+ ]
1189
+ }
1190
+ ]);
1191
+ return (options?.client ?? this.client).get({
1192
+ url: "/collection/discover",
1193
+ ...options,
1194
+ ...params
1195
+ });
1196
+ }
1179
1197
  trending(parameters, options) {
1180
1198
  const params = buildClientParams([parameters], [
1181
1199
  {
@@ -2231,6 +2249,31 @@ class Profile extends HeyApiClient {
2231
2249
  }
2232
2250
  });
2233
2251
  }
2252
+ artists(parameters, options) {
2253
+ const params = buildClientParams([parameters], [
2254
+ {
2255
+ args: [
2256
+ { in: "query", key: "search" },
2257
+ { in: "query", key: "sort" },
2258
+ { in: "query", key: "limit" },
2259
+ { in: "query", key: "offset" }
2260
+ ]
2261
+ }
2262
+ ]);
2263
+ return (options?.client ?? this.client).get({
2264
+ url: "/user/artists",
2265
+ ...options,
2266
+ ...params
2267
+ });
2268
+ }
2269
+ artistSpotlight(parameters, options) {
2270
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "surface" }] }]);
2271
+ return (options?.client ?? this.client).get({
2272
+ url: "/user/artists/spotlight",
2273
+ ...options,
2274
+ ...params
2275
+ });
2276
+ }
2234
2277
  public(parameters, options) {
2235
2278
  const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "walletAddress" }] }]);
2236
2279
  return (options?.client ?? this.client).get({
@@ -2310,6 +2353,9 @@ class HighlightClient extends HeyApiClient {
2310
2353
  super(args);
2311
2354
  HighlightClient.__registry.set(this, args?.key);
2312
2355
  }
2356
+ getIndexerStatus(options) {
2357
+ return (options?.client ?? this.client).get({ url: "/indexer/status", ...options });
2358
+ }
2313
2359
  postIndexerChainsByChainIdActivate(parameters, options) {
2314
2360
  const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "chainId" }] }]);
2315
2361
  return (options?.client ?? this.client).post({
@@ -2338,14 +2384,6 @@ class HighlightClient extends HeyApiClient {
2338
2384
  }
2339
2385
  });
2340
2386
  }
2341
- postIndexerChainsByChainIdPoll(parameters, options) {
2342
- const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "chainId" }] }]);
2343
- return (options?.client ?? this.client).post({
2344
- url: "/indexer/chains/{chainId}/poll",
2345
- ...options,
2346
- ...params
2347
- });
2348
- }
2349
2387
  _collection;
2350
2388
  get collection() {
2351
2389
  return this._collection ??= new Collection({ client: this.client });
@@ -3236,7 +3274,7 @@ var requiredInputPath = (inputPath) => {
3236
3274
  var isCollectionCreateInput = (value) => {
3237
3275
  if (!isRecord3(value))
3238
3276
  return false;
3239
- if (typeof value.name !== "string" || typeof value.description !== "string" || typeof value.logoMediaId !== "string" || !Object.values(CollectionType).includes(value.type) || !isOptionalString(value.contractId) || !isOptionalString(value.tokenManager)) {
3277
+ if (typeof value.name !== "string" || !isOptionalString(value.description) || !Object.values(CollectionType).includes(value.type) || !isOptionalString(value.contractId) || !isOptionalString(value.tokenManager)) {
3240
3278
  return false;
3241
3279
  }
3242
3280
  if (value.contract !== undefined) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@highlightxyz/cli",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Official command-line interface for the Highlight API",
5
5
  "keywords": [
6
6
  "cli",