@trillboards/cli 0.1.7 → 0.1.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.
- package/README.md +1006 -66
- package/dist/commands/generated/generated-approved-metric-get.d.ts +28 -0
- package/dist/commands/generated/generated-approved-metric-get.js +74 -0
- package/dist/commands/generated/generated-approved-metrics-list.d.ts +12 -0
- package/dist/commands/generated/generated-approved-metrics-list.js +26 -0
- package/dist/commands/generated/generated-curation-set-coverage-get.d.ts +14 -0
- package/dist/commands/generated/generated-curation-set-coverage-get.js +32 -0
- package/dist/commands/generated/generated-curation-set-roads-get.d.ts +19 -0
- package/dist/commands/generated/generated-curation-set-roads-get.js +47 -0
- package/dist/commands/generated/generated-curation-set-viewsheds-get.d.ts +15 -0
- package/dist/commands/generated/generated-curation-set-viewsheds-get.js +35 -0
- package/dist/commands/generated/generated-curation-sets-list.d.ts +15 -0
- package/dist/commands/generated/generated-curation-sets-list.js +38 -0
- package/dist/commands/generated/generated-measured-board-audience-get.d.ts +16 -0
- package/dist/commands/generated/generated-measured-board-audience-get.js +38 -0
- package/dist/commands/generated/generated-measured-board-currency-get.d.ts +17 -0
- package/dist/commands/generated/generated-measured-board-currency-get.js +41 -0
- package/dist/commands/generated/generated-measured-board-occluders-get.d.ts +14 -0
- package/dist/commands/generated/generated-measured-board-occluders-get.js +32 -0
- package/dist/commands/generated/generated-measured-board-pass-replay-get.d.ts +16 -0
- package/dist/commands/generated/generated-measured-board-pass-replay-get.js +38 -0
- package/dist/commands/generated/generated-measured-board-tiles-get.d.ts +16 -0
- package/dist/commands/generated/generated-measured-board-tiles-get.js +38 -0
- package/dist/commands/generated/generated-measured-board-viewshed-get.d.ts +14 -0
- package/dist/commands/generated/generated-measured-board-viewshed-get.js +32 -0
- package/dist/commands/generated/generated-measured-boards-list.d.ts +16 -0
- package/dist/commands/generated/generated-measured-boards-list.js +41 -0
- package/dist/commands/generated/generated-measured-dma-format-index-get.d.ts +15 -0
- package/dist/commands/generated/generated-measured-dma-format-index-get.js +38 -0
- package/dist/commands/generated/generated-measured-geohash-tiles-list.d.ts +16 -0
- package/dist/commands/generated/generated-measured-geohash-tiles-list.js +41 -0
- package/dist/commands/generated/generated-measured-multiplier-feed-get.d.ts +17 -0
- package/dist/commands/generated/generated-measured-multiplier-feed-get.js +47 -0
- package/dist/commands/generated/generated-measured-roads-list.d.ts +18 -0
- package/dist/commands/generated/generated-measured-roads-list.js +47 -0
- package/dist/commands/generated/generated-measurement-calibration-get.d.ts +16 -0
- package/dist/commands/generated/generated-measurement-calibration-get.js +44 -0
- package/dist/commands/generated/generated-measurement-calibration-versions-list.d.ts +13 -0
- package/dist/commands/generated/generated-measurement-calibration-versions-list.js +32 -0
- package/dist/commands/generated/generated-measurement-releases-list.d.ts +13 -0
- package/dist/commands/generated/generated-measurement-releases-list.js +32 -0
- package/dist/commands/generated/generated-owner-board-audience-get.d.ts +16 -0
- package/dist/commands/generated/generated-owner-board-audience-get.js +38 -0
- package/dist/commands/generated/generated-owner-board-currency-get.d.ts +17 -0
- package/dist/commands/generated/generated-owner-board-currency-get.js +41 -0
- package/dist/commands/generated/generated-owner-board-tiles-get.d.ts +16 -0
- package/dist/commands/generated/generated-owner-board-tiles-get.js +38 -0
- package/dist/commands/generated/generated-owner-board-viewshed-get.d.ts +14 -0
- package/dist/commands/generated/generated-owner-board-viewshed-get.js +32 -0
- package/dist/commands/generated/generated-owner-delivery-report-get.d.ts +16 -0
- package/dist/commands/generated/generated-owner-delivery-report-get.js +41 -0
- package/dist/commands/generated/generated-owner-face-get.d.ts +15 -0
- package/dist/commands/generated/generated-owner-face-get.js +35 -0
- package/dist/commands/generated/generated-owner-faces-list.d.ts +13 -0
- package/dist/commands/generated/generated-owner-faces-list.js +35 -0
- package/dist/commands/generated/generated-owner-measurement-releases-list.d.ts +13 -0
- package/dist/commands/generated/generated-owner-measurement-releases-list.js +32 -0
- package/dist/commands/generated/generated-owner-multiplier-feed-get.d.ts +17 -0
- package/dist/commands/generated/generated-owner-multiplier-feed-get.js +47 -0
- package/dist/commands/generated/generated-owner-publisher-yield-by-query-get.d.ts +17 -0
- package/dist/commands/generated/generated-owner-publisher-yield-by-query-get.js +47 -0
- package/dist/commands/generated/generated-owner-publisher-yield-get.d.ts +18 -0
- package/dist/commands/generated/generated-owner-publisher-yield-get.js +47 -0
- package/dist/commands/generated/generated-sighted-brands-search.d.ts +14 -0
- package/dist/commands/generated/generated-sighted-brands-search.js +35 -0
- package/oclif.manifest.json +2870 -491
- package/package.json +1 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { BaseCommand } from '../../base-command.js';
|
|
2
|
+
export default class Getapprovedmetric extends BaseCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static examples: string[];
|
|
5
|
+
static args: {
|
|
6
|
+
metric: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
7
|
+
};
|
|
8
|
+
static flags: {
|
|
9
|
+
board_id: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
brands: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
|
+
by: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
|
+
day: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
|
+
daypart: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
14
|
+
dimensions: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
15
|
+
grade: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
16
|
+
grain: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
17
|
+
markets: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
18
|
+
population: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
19
|
+
screens: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
20
|
+
stats: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
21
|
+
window: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
22
|
+
window_end: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
23
|
+
'api-key': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
24
|
+
'base-url': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
25
|
+
format: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
26
|
+
};
|
|
27
|
+
run(): Promise<void>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
// AUTO-GENERATED from OpenAPI spec (data-api) -- do not edit manually
|
|
2
|
+
// Regenerate with: npm run generate
|
|
3
|
+
import { Args, Flags } from '@oclif/core';
|
|
4
|
+
import { BaseCommand } from '../../base-command.js';
|
|
5
|
+
import { apiRequest } from '../../http.js';
|
|
6
|
+
import { formatOutput } from '../../output.js';
|
|
7
|
+
export default class Getapprovedmetric extends BaseCommand {
|
|
8
|
+
static description = "One approved metric answered for a day or window, at its grain.";
|
|
9
|
+
static examples = [`$ trillboards generated approved-metric get`];
|
|
10
|
+
static args = {
|
|
11
|
+
metric: Args.string({ description: 'An approved metric name.', required: true }),
|
|
12
|
+
};
|
|
13
|
+
static flags = {
|
|
14
|
+
...BaseCommand.baseFlags,
|
|
15
|
+
'board_id': Flags.string({ description: 'Board face id (board metrics). Taken by: board_measured_impressions_per_spot, board_pass_audience.' }),
|
|
16
|
+
'brands': Flags.string({ description: 'Comma-separated resolved brand ids. Taken by: creative_brand_history.' }),
|
|
17
|
+
'by': Flags.string({ description: 'Condition scope (board metrics): daypart, light, weather or speed. Taken by: board_measured_impressions_per_spot.' }),
|
|
18
|
+
'day': Flags.string({ description: 'One day (YYYY-MM-DD). Give day or window; neither is the last settled day. Taken by: camera_people_per_screen_hour, camera_dwell_capped_ms, camera_head_pose_index, camera_gaze_pct, demographic_share, sensing_census, same_panel_index, radio_identifiers_per_person, creative_sightings, creative_share_of_voice, creative_street_presence, creative_vacancy_rate, creative_brand_history, seatbelt_compliance, seatbelt_unbuckled_ride_rate.' }),
|
|
19
|
+
'daypart': Flags.string({ description: 'Daypart filter (board metrics). Taken by: board_measured_impressions_per_spot, board_pass_audience.' }),
|
|
20
|
+
'dimensions': Flags.string({ description: 'Comma-separated audience dimensions (dimension= is the one-value spelling). Taken by: demographic_share.' }),
|
|
21
|
+
'grade': Flags.string({ description: 'Camera evidence grade: face_backed or person_backed. Taken by: camera_people_per_screen_hour, camera_dwell_capped_ms, camera_head_pose_index, camera_gaze_pct.' }),
|
|
22
|
+
'grain': Flags.string({ description: 'The answer grain (screen_hour, screen_day, fleet_day, market_day, market_month, ...): one of the metric\'s grains. Taken by: camera_people_per_screen_hour, camera_dwell_capped_ms, camera_head_pose_index, camera_gaze_pct, demographic_share, sensing_census, same_panel_index, radio_identifiers_per_person, creative_sightings, creative_share_of_voice, creative_street_presence, creative_vacancy_rate, creative_brand_history, seatbelt_compliance, seatbelt_unbuckled_ride_rate.' }),
|
|
23
|
+
'markets': Flags.string({ description: 'Comma-separated markets as COUNTRY:CODE (US DMA, CA CMA). Taken by: creative_sightings, creative_share_of_voice, creative_street_presence, creative_vacancy_rate, creative_brand_history, seatbelt_compliance, seatbelt_unbuckled_ride_rate.' }),
|
|
24
|
+
'population': Flags.string({ description: 'The population the shares are over. Taken by: sensing_census, same_panel_index.' }),
|
|
25
|
+
'screens': Flags.string({ description: 'Comma-separated 24-hex screen ids, up to the metric\'s max_screens. Taken by: camera_people_per_screen_hour, camera_dwell_capped_ms, camera_head_pose_index, camera_gaze_pct, demographic_share, seatbelt_compliance, seatbelt_unbuckled_ride_rate.' }),
|
|
26
|
+
'stats': Flags.string({ description: 'Comma-separated statistics (mean, p50, ...), from the metric\'s allowed stats. Taken by: camera_people_per_screen_hour, camera_head_pose_index.' }),
|
|
27
|
+
'window': Flags.string({ description: 'An inclusive span, YYYY-MM-DD..YYYY-MM-DD, up to the metric\'s max_window_days. Taken by: camera_people_per_screen_hour, camera_dwell_capped_ms, camera_head_pose_index, camera_gaze_pct, demographic_share, same_panel_index, radio_identifiers_per_person, creative_sightings, creative_share_of_voice, creative_street_presence, creative_vacancy_rate, creative_brand_history, seatbelt_compliance, seatbelt_unbuckled_ride_rate.' }),
|
|
28
|
+
'window_end': Flags.string({ description: 'Currency window end (board metrics). Taken by: board_measured_impressions_per_spot, board_pass_audience.' }),
|
|
29
|
+
};
|
|
30
|
+
async run() {
|
|
31
|
+
const { args, flags } = await this.parse(Getapprovedmetric);
|
|
32
|
+
this.setParsedFlags(flags);
|
|
33
|
+
const apiKey = this.getApiKey();
|
|
34
|
+
if (!apiKey)
|
|
35
|
+
this.error('Not logged in. Run: trillboards login');
|
|
36
|
+
let urlPath = '/v1/advertiser/measurement/metrics/{metric}';
|
|
37
|
+
urlPath = urlPath.replace('{metric}', args['metric']);
|
|
38
|
+
const params = {};
|
|
39
|
+
if (flags['board_id'])
|
|
40
|
+
params['board_id'] = flags['board_id'];
|
|
41
|
+
if (flags['brands'])
|
|
42
|
+
params['brands'] = flags['brands'];
|
|
43
|
+
if (flags['by'])
|
|
44
|
+
params['by'] = flags['by'];
|
|
45
|
+
if (flags['day'])
|
|
46
|
+
params['day'] = flags['day'];
|
|
47
|
+
if (flags['daypart'])
|
|
48
|
+
params['daypart'] = flags['daypart'];
|
|
49
|
+
if (flags['dimensions'])
|
|
50
|
+
params['dimensions'] = flags['dimensions'];
|
|
51
|
+
if (flags['grade'])
|
|
52
|
+
params['grade'] = flags['grade'];
|
|
53
|
+
if (flags['grain'])
|
|
54
|
+
params['grain'] = flags['grain'];
|
|
55
|
+
if (flags['markets'])
|
|
56
|
+
params['markets'] = flags['markets'];
|
|
57
|
+
if (flags['population'])
|
|
58
|
+
params['population'] = flags['population'];
|
|
59
|
+
if (flags['screens'])
|
|
60
|
+
params['screens'] = flags['screens'];
|
|
61
|
+
if (flags['stats'])
|
|
62
|
+
params['stats'] = flags['stats'];
|
|
63
|
+
if (flags['window'])
|
|
64
|
+
params['window'] = flags['window'];
|
|
65
|
+
if (flags['window_end'])
|
|
66
|
+
params['window_end'] = flags['window_end'];
|
|
67
|
+
const result = await apiRequest('GET', urlPath, {
|
|
68
|
+
apiKey,
|
|
69
|
+
baseUrl: flags['base-url'] ?? 'https://api.trillboards.com',
|
|
70
|
+
params: Object.keys(params).length > 0 ? params : undefined,
|
|
71
|
+
});
|
|
72
|
+
this.log(formatOutput(result, this.getFormat()));
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseCommand } from '../../base-command.js';
|
|
2
|
+
export default class Listapprovedmetrics extends BaseCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static examples: string[];
|
|
5
|
+
static args: {};
|
|
6
|
+
static flags: {
|
|
7
|
+
'api-key': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
|
+
'base-url': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
|
+
format: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
};
|
|
11
|
+
run(): Promise<void>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { BaseCommand } from '../../base-command.js';
|
|
2
|
+
import { apiRequest } from '../../http.js';
|
|
3
|
+
import { formatOutput } from '../../output.js';
|
|
4
|
+
export default class Listapprovedmetrics extends BaseCommand {
|
|
5
|
+
static description = "The approved metrics: every governed audience, camera, creative, seatbelt, board and panel answer you can buy.";
|
|
6
|
+
static examples = [`$ trillboards generated approved-metrics list`];
|
|
7
|
+
static args = {};
|
|
8
|
+
static flags = {
|
|
9
|
+
...BaseCommand.baseFlags,
|
|
10
|
+
};
|
|
11
|
+
async run() {
|
|
12
|
+
const { args, flags } = await this.parse(Listapprovedmetrics);
|
|
13
|
+
this.setParsedFlags(flags);
|
|
14
|
+
const apiKey = this.getApiKey();
|
|
15
|
+
if (!apiKey)
|
|
16
|
+
this.error('Not logged in. Run: trillboards login');
|
|
17
|
+
let urlPath = '/v1/advertiser/measurement/metrics';
|
|
18
|
+
const params = {};
|
|
19
|
+
const result = await apiRequest('GET', urlPath, {
|
|
20
|
+
apiKey,
|
|
21
|
+
baseUrl: flags['base-url'] ?? 'https://api.trillboards.com',
|
|
22
|
+
params: Object.keys(params).length > 0 ? params : undefined,
|
|
23
|
+
});
|
|
24
|
+
this.log(formatOutput(result, this.getFormat()));
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BaseCommand } from '../../base-command.js';
|
|
2
|
+
export default class Getcurationsetcoverage extends BaseCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static examples: string[];
|
|
5
|
+
static args: {
|
|
6
|
+
setKey: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
7
|
+
};
|
|
8
|
+
static flags: {
|
|
9
|
+
'api-key': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
'base-url': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
|
+
format: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
|
+
};
|
|
13
|
+
run(): Promise<void>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// AUTO-GENERATED from OpenAPI spec (data-api) -- do not edit manually
|
|
2
|
+
// Regenerate with: npm run generate
|
|
3
|
+
import { Args } from '@oclif/core';
|
|
4
|
+
import { BaseCommand } from '../../base-command.js';
|
|
5
|
+
import { apiRequest } from '../../http.js';
|
|
6
|
+
import { formatOutput } from '../../output.js';
|
|
7
|
+
export default class Getcurationsetcoverage extends BaseCommand {
|
|
8
|
+
static description = "The measured coverage of one curated set.";
|
|
9
|
+
static examples = [`$ trillboards generated curation-set-coverage get`];
|
|
10
|
+
static args = {
|
|
11
|
+
setKey: Args.string({ description: 'A curated set key, as listed by /curation-sets.', required: true }),
|
|
12
|
+
};
|
|
13
|
+
static flags = {
|
|
14
|
+
...BaseCommand.baseFlags,
|
|
15
|
+
};
|
|
16
|
+
async run() {
|
|
17
|
+
const { args, flags } = await this.parse(Getcurationsetcoverage);
|
|
18
|
+
this.setParsedFlags(flags);
|
|
19
|
+
const apiKey = this.getApiKey();
|
|
20
|
+
if (!apiKey)
|
|
21
|
+
this.error('Not logged in. Run: trillboards login');
|
|
22
|
+
let urlPath = '/v1/advertiser/measurement/curation-sets/{setKey}/coverage';
|
|
23
|
+
urlPath = urlPath.replace('{setKey}', args['setKey']);
|
|
24
|
+
const params = {};
|
|
25
|
+
const result = await apiRequest('GET', urlPath, {
|
|
26
|
+
apiKey,
|
|
27
|
+
baseUrl: flags['base-url'] ?? 'https://api.trillboards.com',
|
|
28
|
+
params: Object.keys(params).length > 0 ? params : undefined,
|
|
29
|
+
});
|
|
30
|
+
this.log(formatOutput(result, this.getFormat()));
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BaseCommand } from '../../base-command.js';
|
|
2
|
+
export default class Getcurationsetroads extends BaseCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static examples: string[];
|
|
5
|
+
static args: {
|
|
6
|
+
setKey: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
7
|
+
};
|
|
8
|
+
static flags: {
|
|
9
|
+
bbox: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
dow_type: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
|
+
hour: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
|
+
metric: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
|
+
road_class: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
14
|
+
'api-key': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
15
|
+
'base-url': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
16
|
+
format: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
17
|
+
};
|
|
18
|
+
run(): Promise<void>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// AUTO-GENERATED from OpenAPI spec (data-api) -- do not edit manually
|
|
2
|
+
// Regenerate with: npm run generate
|
|
3
|
+
import { Args, Flags } from '@oclif/core';
|
|
4
|
+
import { BaseCommand } from '../../base-command.js';
|
|
5
|
+
import { apiRequest } from '../../http.js';
|
|
6
|
+
import { formatOutput } from '../../output.js';
|
|
7
|
+
export default class Getcurationsetroads extends BaseCommand {
|
|
8
|
+
static description = "The roads that serve a curated set, with the traffic index and speeds.";
|
|
9
|
+
static examples = [`$ trillboards generated curation-set-roads get`];
|
|
10
|
+
static args = {
|
|
11
|
+
setKey: Args.string({ description: 'A curated set key, as listed by /curation-sets.', required: true }),
|
|
12
|
+
};
|
|
13
|
+
static flags = {
|
|
14
|
+
...BaseCommand.baseFlags,
|
|
15
|
+
'bbox': Flags.string({ description: 'minLon,minLat,maxLon,maxLat (RFC 7946 order). The span is capped (`max_bbox_deg` on /curation-sets); a wider box answers 413 bbox_too_large.' }),
|
|
16
|
+
'dow_type': Flags.string({ description: 'Day-of-week type (default weekday).' }),
|
|
17
|
+
'hour': Flags.string({ description: 'Local hour 0-23. Absent: every hour.' }),
|
|
18
|
+
'metric': Flags.string({ description: 'traversal_index (default), speed or speed_ratio.' }),
|
|
19
|
+
'road_class': Flags.string({ description: 'Comma-separated OSM classes: motorway, motorway_link, trunk, trunk_link, primary, primary_link, secondary, secondary_link, tertiary, tertiary_link, unclassified, residential, living_street, service.' }),
|
|
20
|
+
};
|
|
21
|
+
async run() {
|
|
22
|
+
const { args, flags } = await this.parse(Getcurationsetroads);
|
|
23
|
+
this.setParsedFlags(flags);
|
|
24
|
+
const apiKey = this.getApiKey();
|
|
25
|
+
if (!apiKey)
|
|
26
|
+
this.error('Not logged in. Run: trillboards login');
|
|
27
|
+
let urlPath = '/v1/advertiser/measurement/curation-sets/{setKey}/roads.geojson';
|
|
28
|
+
urlPath = urlPath.replace('{setKey}', args['setKey']);
|
|
29
|
+
const params = {};
|
|
30
|
+
if (flags['bbox'])
|
|
31
|
+
params['bbox'] = flags['bbox'];
|
|
32
|
+
if (flags['dow_type'])
|
|
33
|
+
params['dow_type'] = flags['dow_type'];
|
|
34
|
+
if (flags['hour'])
|
|
35
|
+
params['hour'] = flags['hour'];
|
|
36
|
+
if (flags['metric'])
|
|
37
|
+
params['metric'] = flags['metric'];
|
|
38
|
+
if (flags['road_class'])
|
|
39
|
+
params['road_class'] = flags['road_class'];
|
|
40
|
+
const result = await apiRequest('GET', urlPath, {
|
|
41
|
+
apiKey,
|
|
42
|
+
baseUrl: flags['base-url'] ?? 'https://api.trillboards.com',
|
|
43
|
+
params: Object.keys(params).length > 0 ? params : undefined,
|
|
44
|
+
});
|
|
45
|
+
this.log(formatOutput(result, this.getFormat()));
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BaseCommand } from '../../base-command.js';
|
|
2
|
+
export default class Getcurationsetviewsheds extends BaseCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static examples: string[];
|
|
5
|
+
static args: {
|
|
6
|
+
setKey: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
7
|
+
};
|
|
8
|
+
static flags: {
|
|
9
|
+
bbox: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
'api-key': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
|
+
'base-url': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
|
+
format: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
|
+
};
|
|
14
|
+
run(): Promise<void>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// AUTO-GENERATED from OpenAPI spec (data-api) -- do not edit manually
|
|
2
|
+
// Regenerate with: npm run generate
|
|
3
|
+
import { Args, Flags } from '@oclif/core';
|
|
4
|
+
import { BaseCommand } from '../../base-command.js';
|
|
5
|
+
import { apiRequest } from '../../http.js';
|
|
6
|
+
import { formatOutput } from '../../output.js';
|
|
7
|
+
export default class Getcurationsetviewsheds extends BaseCommand {
|
|
8
|
+
static description = "The viewsheds and face points of every member of a curated set.";
|
|
9
|
+
static examples = [`$ trillboards generated curation-set-viewsheds get`];
|
|
10
|
+
static args = {
|
|
11
|
+
setKey: Args.string({ description: 'A curated set key, as listed by /curation-sets.', required: true }),
|
|
12
|
+
};
|
|
13
|
+
static flags = {
|
|
14
|
+
...BaseCommand.baseFlags,
|
|
15
|
+
'bbox': Flags.string({ description: 'minLon,minLat,maxLon,maxLat (RFC 7946 order). The span is capped (`max_bbox_deg` on /curation-sets); a wider box answers 413 bbox_too_large.' }),
|
|
16
|
+
};
|
|
17
|
+
async run() {
|
|
18
|
+
const { args, flags } = await this.parse(Getcurationsetviewsheds);
|
|
19
|
+
this.setParsedFlags(flags);
|
|
20
|
+
const apiKey = this.getApiKey();
|
|
21
|
+
if (!apiKey)
|
|
22
|
+
this.error('Not logged in. Run: trillboards login');
|
|
23
|
+
let urlPath = '/v1/advertiser/measurement/curation-sets/{setKey}/viewsheds.geojson';
|
|
24
|
+
urlPath = urlPath.replace('{setKey}', args['setKey']);
|
|
25
|
+
const params = {};
|
|
26
|
+
if (flags['bbox'])
|
|
27
|
+
params['bbox'] = flags['bbox'];
|
|
28
|
+
const result = await apiRequest('GET', urlPath, {
|
|
29
|
+
apiKey,
|
|
30
|
+
baseUrl: flags['base-url'] ?? 'https://api.trillboards.com',
|
|
31
|
+
params: Object.keys(params).length > 0 ? params : undefined,
|
|
32
|
+
});
|
|
33
|
+
this.log(formatOutput(result, this.getFormat()));
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BaseCommand } from '../../base-command.js';
|
|
2
|
+
export default class Listcurationsets extends BaseCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static examples: string[];
|
|
5
|
+
static args: {};
|
|
6
|
+
static flags: {
|
|
7
|
+
q: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
|
+
limit: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
|
+
offset: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
'api-key': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
|
+
'base-url': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
|
+
format: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
|
+
};
|
|
14
|
+
run(): Promise<void>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// AUTO-GENERATED from OpenAPI spec (data-api) -- do not edit manually
|
|
2
|
+
// Regenerate with: npm run generate
|
|
3
|
+
import { Flags } from '@oclif/core';
|
|
4
|
+
import { BaseCommand } from '../../base-command.js';
|
|
5
|
+
import { apiRequest } from '../../http.js';
|
|
6
|
+
import { formatOutput } from '../../output.js';
|
|
7
|
+
export default class Listcurationsets extends BaseCommand {
|
|
8
|
+
static description = "The curated board sets (approved packages) with their measured coverage.";
|
|
9
|
+
static examples = [`$ trillboards generated curation-sets list`];
|
|
10
|
+
static args = {};
|
|
11
|
+
static flags = {
|
|
12
|
+
...BaseCommand.baseFlags,
|
|
13
|
+
'q': Flags.string({ description: 'Search the set names.' }),
|
|
14
|
+
'limit': Flags.string({ description: 'Page size (default 200).' }),
|
|
15
|
+
'offset': Flags.string({ description: 'Page offset.' }),
|
|
16
|
+
};
|
|
17
|
+
async run() {
|
|
18
|
+
const { args, flags } = await this.parse(Listcurationsets);
|
|
19
|
+
this.setParsedFlags(flags);
|
|
20
|
+
const apiKey = this.getApiKey();
|
|
21
|
+
if (!apiKey)
|
|
22
|
+
this.error('Not logged in. Run: trillboards login');
|
|
23
|
+
let urlPath = '/v1/advertiser/measurement/curation-sets';
|
|
24
|
+
const params = {};
|
|
25
|
+
if (flags['q'])
|
|
26
|
+
params['q'] = flags['q'];
|
|
27
|
+
if (flags['limit'])
|
|
28
|
+
params['limit'] = flags['limit'];
|
|
29
|
+
if (flags['offset'])
|
|
30
|
+
params['offset'] = flags['offset'];
|
|
31
|
+
const result = await apiRequest('GET', urlPath, {
|
|
32
|
+
apiKey,
|
|
33
|
+
baseUrl: flags['base-url'] ?? 'https://api.trillboards.com',
|
|
34
|
+
params: Object.keys(params).length > 0 ? params : undefined,
|
|
35
|
+
});
|
|
36
|
+
this.log(formatOutput(result, this.getFormat()));
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BaseCommand } from '../../base-command.js';
|
|
2
|
+
export default class Getmeasuredboardaudience extends BaseCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static examples: string[];
|
|
5
|
+
static args: {
|
|
6
|
+
boardId: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
7
|
+
};
|
|
8
|
+
static flags: {
|
|
9
|
+
window_end: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
daypart: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
|
+
'api-key': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
|
+
'base-url': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
|
+
format: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
14
|
+
};
|
|
15
|
+
run(): Promise<void>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// AUTO-GENERATED from OpenAPI spec (data-api) -- do not edit manually
|
|
2
|
+
// Regenerate with: npm run generate
|
|
3
|
+
import { Args, Flags } from '@oclif/core';
|
|
4
|
+
import { BaseCommand } from '../../base-command.js';
|
|
5
|
+
import { apiRequest } from '../../http.js';
|
|
6
|
+
import { formatOutput } from '../../output.js';
|
|
7
|
+
export default class Getmeasuredboardaudience extends BaseCommand {
|
|
8
|
+
static description = "Who passes a board: occupancy, age, gender, activity and mood shares by daypart.";
|
|
9
|
+
static examples = [`$ trillboards generated measured-board-audience get`];
|
|
10
|
+
static args = {
|
|
11
|
+
boardId: Args.string({ description: 'The board face id (board_dim.board_id), printable, as listed by /boards.geojson.', required: true }),
|
|
12
|
+
};
|
|
13
|
+
static flags = {
|
|
14
|
+
...BaseCommand.baseFlags,
|
|
15
|
+
'window_end': Flags.string({ description: 'Window end. Absent: the newest.' }),
|
|
16
|
+
'daypart': Flags.string({ description: 'One daypart (early_morning, morning, midday, afternoon, evening, night, late_night) or `__all__`. Absent: every daypart.' }),
|
|
17
|
+
};
|
|
18
|
+
async run() {
|
|
19
|
+
const { args, flags } = await this.parse(Getmeasuredboardaudience);
|
|
20
|
+
this.setParsedFlags(flags);
|
|
21
|
+
const apiKey = this.getApiKey();
|
|
22
|
+
if (!apiKey)
|
|
23
|
+
this.error('Not logged in. Run: trillboards login');
|
|
24
|
+
let urlPath = '/v1/advertiser/measurement/boards/{boardId}/audience';
|
|
25
|
+
urlPath = urlPath.replace('{boardId}', args['boardId']);
|
|
26
|
+
const params = {};
|
|
27
|
+
if (flags['window_end'])
|
|
28
|
+
params['window_end'] = flags['window_end'];
|
|
29
|
+
if (flags['daypart'])
|
|
30
|
+
params['daypart'] = flags['daypart'];
|
|
31
|
+
const result = await apiRequest('GET', urlPath, {
|
|
32
|
+
apiKey,
|
|
33
|
+
baseUrl: flags['base-url'] ?? 'https://api.trillboards.com',
|
|
34
|
+
params: Object.keys(params).length > 0 ? params : undefined,
|
|
35
|
+
});
|
|
36
|
+
this.log(formatOutput(result, this.getFormat()));
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseCommand } from '../../base-command.js';
|
|
2
|
+
export default class Getmeasuredboardcurrency extends BaseCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static examples: string[];
|
|
5
|
+
static args: {
|
|
6
|
+
boardId: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
7
|
+
};
|
|
8
|
+
static flags: {
|
|
9
|
+
window_end: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
by: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
|
+
daypart: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
|
+
'api-key': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
|
+
'base-url': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
14
|
+
format: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
15
|
+
};
|
|
16
|
+
run(): Promise<void>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// AUTO-GENERATED from OpenAPI spec (data-api) -- do not edit manually
|
|
2
|
+
// Regenerate with: npm run generate
|
|
3
|
+
import { Args, Flags } from '@oclif/core';
|
|
4
|
+
import { BaseCommand } from '../../base-command.js';
|
|
5
|
+
import { apiRequest } from '../../http.js';
|
|
6
|
+
import { formatOutput } from '../../output.js';
|
|
7
|
+
export default class Getmeasuredboardcurrency extends BaseCommand {
|
|
8
|
+
static description = "Measured impressions per spot for one board face, by daypart, light, weather or speed.";
|
|
9
|
+
static examples = [`$ trillboards generated measured-board-currency get`];
|
|
10
|
+
static args = {
|
|
11
|
+
boardId: Args.string({ description: 'The board face id (board_dim.board_id), printable, as listed by /boards.geojson.', required: true }),
|
|
12
|
+
};
|
|
13
|
+
static flags = {
|
|
14
|
+
...BaseCommand.baseFlags,
|
|
15
|
+
'window_end': Flags.string({ description: 'Measurement window end (YYYY-MM-DD). Absent: the newest published window.' }),
|
|
16
|
+
'by': Flags.string({ description: 'Split the cells by daypart (default), light, weather or speed.' }),
|
|
17
|
+
'daypart': Flags.string({ description: 'One daypart (early_morning, morning, midday, afternoon, evening, night, late_night) or `__all__`. Absent: every daypart.' }),
|
|
18
|
+
};
|
|
19
|
+
async run() {
|
|
20
|
+
const { args, flags } = await this.parse(Getmeasuredboardcurrency);
|
|
21
|
+
this.setParsedFlags(flags);
|
|
22
|
+
const apiKey = this.getApiKey();
|
|
23
|
+
if (!apiKey)
|
|
24
|
+
this.error('Not logged in. Run: trillboards login');
|
|
25
|
+
let urlPath = '/v1/advertiser/measurement/boards/{boardId}/currency';
|
|
26
|
+
urlPath = urlPath.replace('{boardId}', args['boardId']);
|
|
27
|
+
const params = {};
|
|
28
|
+
if (flags['window_end'])
|
|
29
|
+
params['window_end'] = flags['window_end'];
|
|
30
|
+
if (flags['by'])
|
|
31
|
+
params['by'] = flags['by'];
|
|
32
|
+
if (flags['daypart'])
|
|
33
|
+
params['daypart'] = flags['daypart'];
|
|
34
|
+
const result = await apiRequest('GET', urlPath, {
|
|
35
|
+
apiKey,
|
|
36
|
+
baseUrl: flags['base-url'] ?? 'https://api.trillboards.com',
|
|
37
|
+
params: Object.keys(params).length > 0 ? params : undefined,
|
|
38
|
+
});
|
|
39
|
+
this.log(formatOutput(result, this.getFormat()));
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BaseCommand } from '../../base-command.js';
|
|
2
|
+
export default class Getmeasuredboardoccluders extends BaseCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static examples: string[];
|
|
5
|
+
static args: {
|
|
6
|
+
boardId: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
7
|
+
};
|
|
8
|
+
static flags: {
|
|
9
|
+
'api-key': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
'base-url': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
|
+
format: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
|
+
};
|
|
13
|
+
run(): Promise<void>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// AUTO-GENERATED from OpenAPI spec (data-api) -- do not edit manually
|
|
2
|
+
// Regenerate with: npm run generate
|
|
3
|
+
import { Args } from '@oclif/core';
|
|
4
|
+
import { BaseCommand } from '../../base-command.js';
|
|
5
|
+
import { apiRequest } from '../../http.js';
|
|
6
|
+
import { formatOutput } from '../../output.js';
|
|
7
|
+
export default class Getmeasuredboardoccluders extends BaseCommand {
|
|
8
|
+
static description = "The buildings around a board that shape its viewshed.";
|
|
9
|
+
static examples = [`$ trillboards generated measured-board-occluders get`];
|
|
10
|
+
static args = {
|
|
11
|
+
boardId: Args.string({ description: 'The board face id (board_dim.board_id), printable, as listed by /boards.geojson.', required: true }),
|
|
12
|
+
};
|
|
13
|
+
static flags = {
|
|
14
|
+
...BaseCommand.baseFlags,
|
|
15
|
+
};
|
|
16
|
+
async run() {
|
|
17
|
+
const { args, flags } = await this.parse(Getmeasuredboardoccluders);
|
|
18
|
+
this.setParsedFlags(flags);
|
|
19
|
+
const apiKey = this.getApiKey();
|
|
20
|
+
if (!apiKey)
|
|
21
|
+
this.error('Not logged in. Run: trillboards login');
|
|
22
|
+
let urlPath = '/v1/advertiser/measurement/boards/{boardId}/occluders.geojson';
|
|
23
|
+
urlPath = urlPath.replace('{boardId}', args['boardId']);
|
|
24
|
+
const params = {};
|
|
25
|
+
const result = await apiRequest('GET', urlPath, {
|
|
26
|
+
apiKey,
|
|
27
|
+
baseUrl: flags['base-url'] ?? 'https://api.trillboards.com',
|
|
28
|
+
params: Object.keys(params).length > 0 ? params : undefined,
|
|
29
|
+
});
|
|
30
|
+
this.log(formatOutput(result, this.getFormat()));
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BaseCommand } from '../../base-command.js';
|
|
2
|
+
export default class Getmeasuredboardpassreplay extends BaseCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static examples: string[];
|
|
5
|
+
static args: {
|
|
6
|
+
boardId: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
7
|
+
};
|
|
8
|
+
static flags: {
|
|
9
|
+
date: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
offset: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
|
+
'api-key': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
|
+
'base-url': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
|
+
format: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
14
|
+
};
|
|
15
|
+
run(): Promise<void>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// AUTO-GENERATED from OpenAPI spec (data-api) -- do not edit manually
|
|
2
|
+
// Regenerate with: npm run generate
|
|
3
|
+
import { Args, Flags } from '@oclif/core';
|
|
4
|
+
import { BaseCommand } from '../../base-command.js';
|
|
5
|
+
import { apiRequest } from '../../http.js';
|
|
6
|
+
import { formatOutput } from '../../output.js';
|
|
7
|
+
export default class Getmeasuredboardpassreplay extends BaseCommand {
|
|
8
|
+
static description = "Every pass our fleet made of a board on one day, second by second.";
|
|
9
|
+
static examples = [`$ trillboards generated measured-board-pass-replay get`];
|
|
10
|
+
static args = {
|
|
11
|
+
boardId: Args.string({ description: 'The board face id (board_dim.board_id), printable, as listed by /boards.geojson.', required: true }),
|
|
12
|
+
};
|
|
13
|
+
static flags = {
|
|
14
|
+
...BaseCommand.baseFlags,
|
|
15
|
+
'date': Flags.string({ description: 'Local day to replay.' }),
|
|
16
|
+
'offset': Flags.string({ description: 'Page offset.' }),
|
|
17
|
+
};
|
|
18
|
+
async run() {
|
|
19
|
+
const { args, flags } = await this.parse(Getmeasuredboardpassreplay);
|
|
20
|
+
this.setParsedFlags(flags);
|
|
21
|
+
const apiKey = this.getApiKey();
|
|
22
|
+
if (!apiKey)
|
|
23
|
+
this.error('Not logged in. Run: trillboards login');
|
|
24
|
+
let urlPath = '/v1/advertiser/measurement/boards/{boardId}/passes/replay';
|
|
25
|
+
urlPath = urlPath.replace('{boardId}', args['boardId']);
|
|
26
|
+
const params = {};
|
|
27
|
+
if (flags['date'])
|
|
28
|
+
params['date'] = flags['date'];
|
|
29
|
+
if (flags['offset'])
|
|
30
|
+
params['offset'] = flags['offset'];
|
|
31
|
+
const result = await apiRequest('GET', urlPath, {
|
|
32
|
+
apiKey,
|
|
33
|
+
baseUrl: flags['base-url'] ?? 'https://api.trillboards.com',
|
|
34
|
+
params: Object.keys(params).length > 0 ? params : undefined,
|
|
35
|
+
});
|
|
36
|
+
this.log(formatOutput(result, this.getFormat()));
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BaseCommand } from '../../base-command.js';
|
|
2
|
+
export default class Getmeasuredboardtiles extends BaseCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static examples: string[];
|
|
5
|
+
static args: {
|
|
6
|
+
boardId: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
7
|
+
};
|
|
8
|
+
static flags: {
|
|
9
|
+
from: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
to: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
|
+
'api-key': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
|
+
'base-url': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
|
+
format: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
14
|
+
};
|
|
15
|
+
run(): Promise<void>;
|
|
16
|
+
}
|