@formo/cli 1.1.0 → 1.2.0
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/README.md +92 -31
- package/dist/commands/alerts.d.ts +14 -22
- package/dist/commands/alerts.js +48 -49
- package/dist/commands/analytics.d.ts +1 -1
- package/dist/commands/analytics.js +51 -11
- package/dist/commands/boards.d.ts +7 -9
- package/dist/commands/boards.js +4 -14
- package/dist/commands/charts.d.ts +11 -13
- package/dist/commands/charts.js +12 -16
- package/dist/commands/contracts.d.ts +9 -11
- package/dist/commands/contracts.js +7 -17
- package/dist/commands/events.d.ts +1 -1
- package/dist/commands/events.js +6 -5
- package/dist/commands/import.d.ts +1 -1
- package/dist/commands/import.js +3 -0
- package/dist/commands/profiles.d.ts +13 -13
- package/dist/commands/profiles.js +189 -49
- package/dist/commands/query.d.ts +1 -1
- package/dist/commands/segments.d.ts +7 -9
- package/dist/commands/segments.js +45 -25
- package/dist/index.js +39 -26
- package/dist/lib/client.d.ts +18 -3
- package/dist/lib/client.js +11 -2
- package/dist/lib/config.d.ts +1 -0
- package/dist/lib/config.js +32 -18
- package/dist/lib/filters.d.ts +6 -0
- package/dist/lib/filters.js +45 -0
- package/dist/lib/pagination.d.ts +14 -0
- package/dist/lib/pagination.js +31 -0
- package/dist/lib/ui.d.ts +6 -5
- package/dist/lib/ui.js +10 -12
- package/package.json +8 -12
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { Cli } from 'incur';
|
|
2
|
+
import { type PaginationOptions } from '../lib/pagination';
|
|
3
|
+
export type { PaginationOptions };
|
|
2
4
|
export declare const charts: Cli.Cli<{}, undefined, undefined>;
|
|
3
|
-
export interface PaginationOptions {
|
|
4
|
-
page?: number;
|
|
5
|
-
size?: number;
|
|
6
|
-
}
|
|
7
5
|
export interface ChartBodyOptions {
|
|
8
6
|
body?: string;
|
|
9
7
|
query?: string;
|
|
@@ -17,18 +15,18 @@ export interface ChartBodyOptions {
|
|
|
17
15
|
settings?: string;
|
|
18
16
|
}
|
|
19
17
|
export declare function buildChartBody(options: ChartBodyOptions): Record<string, unknown>;
|
|
20
|
-
export declare function listChartsRun(boardId: string, options?: PaginationOptions): Promise<
|
|
21
|
-
export declare function listChartSummariesRun(boardId: string, options?: PaginationOptions): Promise<
|
|
22
|
-
export declare function getChartRun(boardId: string, chartId: string): Promise<
|
|
18
|
+
export declare function listChartsRun(boardId: string, options?: PaginationOptions): Promise<unknown>;
|
|
19
|
+
export declare function listChartSummariesRun(boardId: string, options?: PaginationOptions): Promise<unknown>;
|
|
20
|
+
export declare function getChartRun(boardId: string, chartId: string): Promise<unknown>;
|
|
23
21
|
export interface QueryChartOptions {
|
|
24
22
|
dateFrom: string;
|
|
25
23
|
dateTo: string;
|
|
26
24
|
}
|
|
27
|
-
export declare function queryChartRun(boardId: string, chartId: string, options: QueryChartOptions): Promise<
|
|
28
|
-
export declare function createChartRun(boardId: string, input: string | ChartBodyOptions): Promise<
|
|
29
|
-
export declare function updateChartRun(boardId: string, chartId: string, input: string | ChartBodyOptions): Promise<
|
|
30
|
-
export declare function moveChartRun(boardId: string, chartId: string, targetBoardId: string): Promise<
|
|
25
|
+
export declare function queryChartRun(boardId: string, chartId: string, options: QueryChartOptions): Promise<unknown>;
|
|
26
|
+
export declare function createChartRun(boardId: string, input: string | ChartBodyOptions): Promise<unknown>;
|
|
27
|
+
export declare function updateChartRun(boardId: string, chartId: string, input: string | ChartBodyOptions): Promise<unknown>;
|
|
28
|
+
export declare function moveChartRun(boardId: string, chartId: string, targetBoardId: string): Promise<unknown>;
|
|
31
29
|
export declare function normalizeDuplicateChartResponse(result: unknown): unknown;
|
|
32
30
|
export declare function duplicateChartRun(boardId: string, chartId: string): Promise<unknown>;
|
|
33
|
-
export declare function reorderChartsRun(boardId: string, chartIds: string): Promise<
|
|
34
|
-
export declare function deleteChartRun(boardId: string, chartId: string): Promise<
|
|
31
|
+
export declare function reorderChartsRun(boardId: string, chartIds: string): Promise<unknown>;
|
|
32
|
+
export declare function deleteChartRun(boardId: string, chartId: string): Promise<unknown>;
|
package/dist/commands/charts.js
CHANGED
|
@@ -17,6 +17,7 @@ const incur_1 = require("incur");
|
|
|
17
17
|
const client_1 = require("../lib/client");
|
|
18
18
|
const json_1 = require("../lib/json");
|
|
19
19
|
const sql_1 = require("../lib/sql");
|
|
20
|
+
const pagination_1 = require("../lib/pagination");
|
|
20
21
|
exports.charts = incur_1.Cli.create('charts', {
|
|
21
22
|
description: 'Chart commands — create, list, query, move, duplicate, reorder, update, and delete charts within boards',
|
|
22
23
|
});
|
|
@@ -32,14 +33,6 @@ const chartTypeSchema = incur_1.z.enum([
|
|
|
32
33
|
'user_paths',
|
|
33
34
|
'retention',
|
|
34
35
|
]);
|
|
35
|
-
function buildPaginationParams(options = {}) {
|
|
36
|
-
const params = {};
|
|
37
|
-
if (options.page !== undefined)
|
|
38
|
-
params.page = options.page;
|
|
39
|
-
if (options.size !== undefined)
|
|
40
|
-
params.size = options.size;
|
|
41
|
-
return params;
|
|
42
|
-
}
|
|
43
36
|
function hasTypedChartFields(options) {
|
|
44
37
|
return [
|
|
45
38
|
options.query,
|
|
@@ -109,26 +102,25 @@ const chartBodyOptions = incur_1.z.object({
|
|
|
109
102
|
steps: incur_1.z
|
|
110
103
|
.string()
|
|
111
104
|
.optional()
|
|
112
|
-
.describe('JSON array of funnel
|
|
105
|
+
.describe('JSON array of funnel step objects'),
|
|
113
106
|
settings: incur_1.z
|
|
114
107
|
.string()
|
|
115
108
|
.optional()
|
|
116
|
-
.describe('JSON object of type-specific chart settings'),
|
|
109
|
+
.describe('JSON object of type-specific chart settings (for example, user_paths anchors/maxSteps/nodesPerStep or retention entryFilter/retentionFilter)'),
|
|
117
110
|
});
|
|
118
111
|
// ── List charts for a board ──
|
|
119
112
|
function listChartsRun(boardId, options = {}) {
|
|
120
113
|
(0, client_1.requireApiKey)();
|
|
121
114
|
const client = (0, client_1.createClient)();
|
|
122
115
|
return client.get(`/v0/boards/${encodeURIComponent(boardId)}/charts/`, {
|
|
123
|
-
params: buildPaginationParams(options),
|
|
116
|
+
params: (0, pagination_1.buildPaginationParams)(options),
|
|
124
117
|
});
|
|
125
118
|
}
|
|
126
119
|
exports.charts.command('list', {
|
|
127
120
|
description: 'List all charts for a board, including executed results',
|
|
128
121
|
options: incur_1.z.object({
|
|
129
122
|
boardId: incur_1.z.string().describe('Board ID to list charts from'),
|
|
130
|
-
|
|
131
|
-
size: incur_1.z.coerce.number().optional().describe('Page size (default 100, max 200)'),
|
|
123
|
+
...pagination_1.paginationOptionsSchema,
|
|
132
124
|
}),
|
|
133
125
|
examples: [
|
|
134
126
|
{
|
|
@@ -146,15 +138,14 @@ function listChartSummariesRun(boardId, options = {}) {
|
|
|
146
138
|
(0, client_1.requireApiKey)();
|
|
147
139
|
const client = (0, client_1.createClient)();
|
|
148
140
|
return client.get(`/v0/boards/${encodeURIComponent(boardId)}/charts/meta`, {
|
|
149
|
-
params: buildPaginationParams(options),
|
|
141
|
+
params: (0, pagination_1.buildPaginationParams)(options),
|
|
150
142
|
});
|
|
151
143
|
}
|
|
152
144
|
exports.charts.command('meta', {
|
|
153
145
|
description: 'List lightweight chart metadata for a board without query results',
|
|
154
146
|
options: incur_1.z.object({
|
|
155
147
|
boardId: incur_1.z.string().describe('Board ID to list chart metadata from'),
|
|
156
|
-
|
|
157
|
-
size: incur_1.z.coerce.number().optional().describe('Page size (default 100, max 200)'),
|
|
148
|
+
...pagination_1.paginationOptionsSchema,
|
|
158
149
|
}),
|
|
159
150
|
examples: [
|
|
160
151
|
{
|
|
@@ -265,6 +256,11 @@ function updateChartRun(boardId, chartId, input) {
|
|
|
265
256
|
(0, client_1.requireApiKey)();
|
|
266
257
|
const client = (0, client_1.createClient)();
|
|
267
258
|
const updates = coerceChartBody(input);
|
|
259
|
+
// The charts endpoint only supports full-body PUT, so emulate a partial
|
|
260
|
+
// update by fetching the current chart and merging flags over it. Two
|
|
261
|
+
// consequences: a concurrent edit between the GET and PUT is overwritten,
|
|
262
|
+
// and fields can't be cleared via typed flags (nulls are normalized to
|
|
263
|
+
// undefined below) — use --body with explicit nulls to clear.
|
|
268
264
|
return client
|
|
269
265
|
.get(`/v0/boards/${encodeURIComponent(boardId)}/charts/${encodeURIComponent(chartId)}`)
|
|
270
266
|
.then((current) => {
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { Cli } from 'incur';
|
|
2
|
+
import { type PaginationOptions } from '../lib/pagination';
|
|
3
|
+
export type { PaginationOptions };
|
|
2
4
|
export declare const contracts: Cli.Cli<{}, undefined, undefined>;
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
export declare function listContractsRun(options?: PaginationOptions): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
8
|
-
export declare function getContractRun(chain: string, address: string): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
9
|
-
export declare function getContractRecommendationsRun(): Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
5
|
+
export declare function listContractsRun(options?: PaginationOptions): Promise<unknown>;
|
|
6
|
+
export declare function getContractRun(chain: string, address: string): Promise<unknown>;
|
|
7
|
+
export declare function getContractRecommendationsRun(): Promise<unknown>;
|
|
10
8
|
export interface CreateContractOptions {
|
|
11
9
|
address: string;
|
|
12
10
|
chain: number;
|
|
@@ -17,7 +15,7 @@ export interface CreateContractOptions {
|
|
|
17
15
|
includeInPipeline?: boolean;
|
|
18
16
|
}
|
|
19
17
|
export declare function buildCreateContractBody(options: CreateContractOptions): Record<string, unknown>;
|
|
20
|
-
export declare function createContractRun(options: CreateContractOptions): Promise<
|
|
18
|
+
export declare function createContractRun(options: CreateContractOptions): Promise<unknown>;
|
|
21
19
|
export interface UpdateContractOptions {
|
|
22
20
|
name: string;
|
|
23
21
|
abi: string;
|
|
@@ -26,9 +24,9 @@ export interface UpdateContractOptions {
|
|
|
26
24
|
includeInPipeline?: boolean;
|
|
27
25
|
}
|
|
28
26
|
export declare function buildUpdateContractBody(chain: string | number, address: string, options: UpdateContractOptions): Record<string, unknown>;
|
|
29
|
-
export declare function updateContractRun(chain: string, address: string, options: UpdateContractOptions): Promise<
|
|
30
|
-
export declare function updateContractPipelineRun(chain: string, address: string, includeInPipeline: boolean): Promise<
|
|
27
|
+
export declare function updateContractRun(chain: string, address: string, options: UpdateContractOptions): Promise<unknown>;
|
|
28
|
+
export declare function updateContractPipelineRun(chain: string, address: string, includeInPipeline: boolean): Promise<unknown>;
|
|
31
29
|
export declare function buildUpdateContractPipelineBody(includeInPipeline: boolean): {
|
|
32
30
|
include_in_pipeline: boolean;
|
|
33
31
|
};
|
|
34
|
-
export declare function deleteContractRun(chain: string, address: string): Promise<
|
|
32
|
+
export declare function deleteContractRun(chain: string, address: string): Promise<unknown>;
|
|
@@ -14,17 +14,10 @@ exports.deleteContractRun = deleteContractRun;
|
|
|
14
14
|
const incur_1 = require("incur");
|
|
15
15
|
const client_1 = require("../lib/client");
|
|
16
16
|
const json_1 = require("../lib/json");
|
|
17
|
+
const pagination_1 = require("../lib/pagination");
|
|
17
18
|
exports.contracts = incur_1.Cli.create('contracts', {
|
|
18
19
|
description: 'Smart contract commands — register, list, recommend, update, toggle pipeline inclusion, and remove tracked contracts',
|
|
19
20
|
});
|
|
20
|
-
function buildPaginationParams(options = {}) {
|
|
21
|
-
const params = {};
|
|
22
|
-
if (options.page !== undefined)
|
|
23
|
-
params.page = options.page;
|
|
24
|
-
if (options.size !== undefined)
|
|
25
|
-
params.size = options.size;
|
|
26
|
-
return params;
|
|
27
|
-
}
|
|
28
21
|
function parseChain(chain) {
|
|
29
22
|
const value = typeof chain === 'number' ? chain : Number(chain);
|
|
30
23
|
if (!Number.isInteger(value) || value < 1) {
|
|
@@ -37,15 +30,12 @@ function listContractsRun(options = {}) {
|
|
|
37
30
|
(0, client_1.requireApiKey)();
|
|
38
31
|
const client = (0, client_1.createClient)();
|
|
39
32
|
return client.get('/v0/contracts/', {
|
|
40
|
-
params: buildPaginationParams(options),
|
|
33
|
+
params: (0, pagination_1.buildPaginationParams)(options),
|
|
41
34
|
});
|
|
42
35
|
}
|
|
43
36
|
exports.contracts.command('list', {
|
|
44
37
|
description: 'List all tracked contracts for the project',
|
|
45
|
-
options: incur_1.z.object(
|
|
46
|
-
page: incur_1.z.coerce.number().optional().describe('Page number (1-indexed, default 1)'),
|
|
47
|
-
size: incur_1.z.coerce.number().optional().describe('Page size (default 100, max 200)'),
|
|
48
|
-
}),
|
|
38
|
+
options: incur_1.z.object(pagination_1.paginationOptionsSchema),
|
|
49
39
|
examples: [{ description: 'List all project contracts' }],
|
|
50
40
|
hint: 'Requires contracts:read scope on your API key.',
|
|
51
41
|
run({ options }) {
|
|
@@ -56,7 +46,7 @@ exports.contracts.command('list', {
|
|
|
56
46
|
function getContractRun(chain, address) {
|
|
57
47
|
(0, client_1.requireApiKey)();
|
|
58
48
|
const client = (0, client_1.createClient)();
|
|
59
|
-
return client.get(`/v0/contracts/${
|
|
49
|
+
return client.get(`/v0/contracts/${parseChain(chain)}/${encodeURIComponent(address)}`);
|
|
60
50
|
}
|
|
61
51
|
// ── Recommended contracts ──
|
|
62
52
|
function getContractRecommendationsRun() {
|
|
@@ -170,7 +160,7 @@ function buildUpdateContractBody(chain, address, options) {
|
|
|
170
160
|
function updateContractRun(chain, address, options) {
|
|
171
161
|
(0, client_1.requireApiKey)();
|
|
172
162
|
const client = (0, client_1.createClient)();
|
|
173
|
-
return client.put(`/v0/contracts/${
|
|
163
|
+
return client.put(`/v0/contracts/${parseChain(chain)}/${encodeURIComponent(address)}`, buildUpdateContractBody(chain, address, options));
|
|
174
164
|
}
|
|
175
165
|
exports.contracts.command('update', {
|
|
176
166
|
description: 'Update a tracked contract',
|
|
@@ -211,7 +201,7 @@ exports.contracts.command('update', {
|
|
|
211
201
|
function updateContractPipelineRun(chain, address, includeInPipeline) {
|
|
212
202
|
(0, client_1.requireApiKey)();
|
|
213
203
|
const client = (0, client_1.createClient)();
|
|
214
|
-
return client.patch(`/v0/contracts/${
|
|
204
|
+
return client.patch(`/v0/contracts/${parseChain(chain)}/${encodeURIComponent(address)}/pipeline`, buildUpdateContractPipelineBody(includeInPipeline));
|
|
215
205
|
}
|
|
216
206
|
function buildUpdateContractPipelineBody(includeInPipeline) {
|
|
217
207
|
return { include_in_pipeline: includeInPipeline };
|
|
@@ -246,7 +236,7 @@ exports.contracts.command('pipeline', {
|
|
|
246
236
|
function deleteContractRun(chain, address) {
|
|
247
237
|
(0, client_1.requireApiKey)();
|
|
248
238
|
const client = (0, client_1.createClient)();
|
|
249
|
-
return client.delete(`/v0/contracts/${
|
|
239
|
+
return client.delete(`/v0/contracts/${parseChain(chain)}/${encodeURIComponent(address)}`);
|
|
250
240
|
}
|
|
251
241
|
exports.contracts.command('delete', {
|
|
252
242
|
description: 'Remove a tracked contract',
|
|
@@ -6,4 +6,4 @@ export interface IngestEventsOptions {
|
|
|
6
6
|
writeKey?: string;
|
|
7
7
|
}
|
|
8
8
|
export declare function buildIngestEventsBody(options: IngestEventsOptions): Record<string, unknown>[];
|
|
9
|
-
export declare function ingestEventsRun(options: IngestEventsOptions): Promise<
|
|
9
|
+
export declare function ingestEventsRun(options: IngestEventsOptions): Promise<unknown>;
|
package/dist/commands/events.js
CHANGED
|
@@ -13,6 +13,9 @@ function getWriteKey(options) {
|
|
|
13
13
|
return options.writeKey ?? process.env.FORMO_WRITE_KEY;
|
|
14
14
|
}
|
|
15
15
|
function buildIngestEventsBody(options) {
|
|
16
|
+
if (options.events && options.event) {
|
|
17
|
+
throw new Error('Provide only one of --event or --events');
|
|
18
|
+
}
|
|
16
19
|
if (options.events) {
|
|
17
20
|
const events = (0, json_1.parseJsonArrayOfObjects)(options.events, '--events');
|
|
18
21
|
if (events.length === 0) {
|
|
@@ -26,11 +29,9 @@ function buildIngestEventsBody(options) {
|
|
|
26
29
|
throw new Error('Provide --event or --events');
|
|
27
30
|
}
|
|
28
31
|
function ingestEventsRun(options) {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
const client = (0, client_1.createEventsClient)(writeKey);
|
|
32
|
+
// createEventsClient throws the "No event write key configured" error for
|
|
33
|
+
// a missing key — no need to duplicate the guard here.
|
|
34
|
+
const client = (0, client_1.createEventsClient)(getWriteKey(options) ?? '');
|
|
34
35
|
return client.post('/v0/raw_events', buildIngestEventsBody(options));
|
|
35
36
|
}
|
|
36
37
|
exports.events.command('ingest', {
|
|
@@ -12,4 +12,4 @@ export declare function buildImportBody(options: ImportWalletsOptions): {
|
|
|
12
12
|
addresses: unknown[];
|
|
13
13
|
rows?: undefined;
|
|
14
14
|
};
|
|
15
|
-
export declare function importWalletsRun(options: ImportWalletsOptions): Promise<
|
|
15
|
+
export declare function importWalletsRun(options: ImportWalletsOptions): Promise<unknown>;
|
package/dist/commands/import.js
CHANGED
|
@@ -10,6 +10,9 @@ exports.importCmd = incur_1.Cli.create('import', {
|
|
|
10
10
|
description: 'Import commands — bulk import wallet addresses into your project',
|
|
11
11
|
});
|
|
12
12
|
function buildImportBody(options) {
|
|
13
|
+
if (options.rows && options.addresses) {
|
|
14
|
+
throw new Error('Provide only one of --addresses or --rows');
|
|
15
|
+
}
|
|
13
16
|
if (options.rows) {
|
|
14
17
|
const rows = (0, json_1.parseJsonArrayOfObjects)(options.rows, '--rows');
|
|
15
18
|
const addresses = rows.map((row) => row.address);
|
|
@@ -12,7 +12,7 @@ export interface LifecycleThresholdOptions {
|
|
|
12
12
|
export interface GetProfileOptions extends LifecycleThresholdOptions {
|
|
13
13
|
expand?: string;
|
|
14
14
|
}
|
|
15
|
-
export declare function getProfileRun(address: string, optionsOrExpand?: GetProfileOptions | string): Promise<
|
|
15
|
+
export declare function getProfileRun(address: string, optionsOrExpand?: GetProfileOptions | string): Promise<unknown>;
|
|
16
16
|
export interface SearchProfilesOptions extends LifecycleThresholdOptions {
|
|
17
17
|
address?: string;
|
|
18
18
|
search?: string;
|
|
@@ -21,27 +21,27 @@ export interface SearchProfilesOptions extends LifecycleThresholdOptions {
|
|
|
21
21
|
orderBy?: string;
|
|
22
22
|
orderDir?: string;
|
|
23
23
|
expand?: string;
|
|
24
|
-
|
|
24
|
+
filters?: string;
|
|
25
25
|
logic?: 'and' | 'or';
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
|
-
* Parse and validate the --
|
|
29
|
-
* `{ field, op, value }` objects
|
|
30
|
-
* `users.
|
|
31
|
-
*
|
|
28
|
+
* Parse and validate the --filters JSON. Ensures it is an array of
|
|
29
|
+
* `{ field, op, value }` objects carrying a canonical `field` — either
|
|
30
|
+
* `users.{attribute}` or one of the four stable resource paths, with resource
|
|
31
|
+
* identity in named qualifier properties. Exported for unit testing.
|
|
32
32
|
*/
|
|
33
|
-
export declare function
|
|
34
|
-
export declare function searchProfilesRun(options: SearchProfilesOptions): Promise<
|
|
33
|
+
export declare function parseSearchFilters(raw: string): unknown[];
|
|
34
|
+
export declare function searchProfilesRun(options: SearchProfilesOptions): Promise<unknown>;
|
|
35
35
|
export interface UpdateProfileOptions {
|
|
36
36
|
properties: string;
|
|
37
37
|
}
|
|
38
38
|
export declare function buildUpdateProfileBody(options: UpdateProfileOptions): Record<string, unknown>;
|
|
39
|
-
export declare function updateProfileRun(address: string, options: UpdateProfileOptions): Promise<
|
|
39
|
+
export declare function updateProfileRun(address: string, options: UpdateProfileOptions): Promise<unknown>;
|
|
40
40
|
export interface BatchUpdateProfilesOptions {
|
|
41
41
|
rows: string;
|
|
42
42
|
}
|
|
43
43
|
export declare function buildBatchUpdateProfilesBody(options: BatchUpdateProfilesOptions): Record<string, unknown>[];
|
|
44
|
-
export declare function batchUpdateProfilesRun(options: BatchUpdateProfilesOptions): Promise<
|
|
44
|
+
export declare function batchUpdateProfilesRun(options: BatchUpdateProfilesOptions): Promise<unknown>;
|
|
45
45
|
export declare const profilesProperties: Cli.Cli<{}, undefined, undefined>;
|
|
46
46
|
export declare const profilesLabels: Cli.Cli<{}, undefined, undefined>;
|
|
47
47
|
export interface CreateProfileLabelOptions {
|
|
@@ -53,15 +53,15 @@ export interface CreateProfileLabelOptions {
|
|
|
53
53
|
labels?: string;
|
|
54
54
|
}
|
|
55
55
|
export declare function buildCreateLabelBody(options: CreateProfileLabelOptions): unknown;
|
|
56
|
-
export declare function createProfileLabelRun(address: string, options: CreateProfileLabelOptions): Promise<
|
|
56
|
+
export declare function createProfileLabelRun(address: string, options: CreateProfileLabelOptions): Promise<unknown>;
|
|
57
57
|
export interface BatchCreateProfileLabelsOptions {
|
|
58
58
|
labels: string;
|
|
59
59
|
}
|
|
60
60
|
export declare function buildBatchCreateLabelsBody(options: BatchCreateProfileLabelsOptions): Record<string, unknown>[];
|
|
61
|
-
export declare function batchCreateProfileLabelsRun(options: BatchCreateProfileLabelsOptions): Promise<
|
|
61
|
+
export declare function batchCreateProfileLabelsRun(options: BatchCreateProfileLabelsOptions): Promise<unknown>;
|
|
62
62
|
export interface DeleteProfileLabelOptions {
|
|
63
63
|
tagId: string;
|
|
64
64
|
chainId?: string;
|
|
65
65
|
}
|
|
66
66
|
export declare function buildDeleteLabelBody(options: DeleteProfileLabelOptions): Record<string, string>;
|
|
67
|
-
export declare function deleteProfileLabelRun(address: string, options: DeleteProfileLabelOptions): Promise<
|
|
67
|
+
export declare function deleteProfileLabelRun(address: string, options: DeleteProfileLabelOptions): Promise<unknown>;
|