@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.
Files changed (67) hide show
  1. package/README.md +1006 -66
  2. package/dist/commands/generated/generated-approved-metric-get.d.ts +28 -0
  3. package/dist/commands/generated/generated-approved-metric-get.js +74 -0
  4. package/dist/commands/generated/generated-approved-metrics-list.d.ts +12 -0
  5. package/dist/commands/generated/generated-approved-metrics-list.js +26 -0
  6. package/dist/commands/generated/generated-curation-set-coverage-get.d.ts +14 -0
  7. package/dist/commands/generated/generated-curation-set-coverage-get.js +32 -0
  8. package/dist/commands/generated/generated-curation-set-roads-get.d.ts +19 -0
  9. package/dist/commands/generated/generated-curation-set-roads-get.js +47 -0
  10. package/dist/commands/generated/generated-curation-set-viewsheds-get.d.ts +15 -0
  11. package/dist/commands/generated/generated-curation-set-viewsheds-get.js +35 -0
  12. package/dist/commands/generated/generated-curation-sets-list.d.ts +15 -0
  13. package/dist/commands/generated/generated-curation-sets-list.js +38 -0
  14. package/dist/commands/generated/generated-measured-board-audience-get.d.ts +16 -0
  15. package/dist/commands/generated/generated-measured-board-audience-get.js +38 -0
  16. package/dist/commands/generated/generated-measured-board-currency-get.d.ts +17 -0
  17. package/dist/commands/generated/generated-measured-board-currency-get.js +41 -0
  18. package/dist/commands/generated/generated-measured-board-occluders-get.d.ts +14 -0
  19. package/dist/commands/generated/generated-measured-board-occluders-get.js +32 -0
  20. package/dist/commands/generated/generated-measured-board-pass-replay-get.d.ts +16 -0
  21. package/dist/commands/generated/generated-measured-board-pass-replay-get.js +38 -0
  22. package/dist/commands/generated/generated-measured-board-tiles-get.d.ts +16 -0
  23. package/dist/commands/generated/generated-measured-board-tiles-get.js +38 -0
  24. package/dist/commands/generated/generated-measured-board-viewshed-get.d.ts +14 -0
  25. package/dist/commands/generated/generated-measured-board-viewshed-get.js +32 -0
  26. package/dist/commands/generated/generated-measured-boards-list.d.ts +16 -0
  27. package/dist/commands/generated/generated-measured-boards-list.js +41 -0
  28. package/dist/commands/generated/generated-measured-dma-format-index-get.d.ts +15 -0
  29. package/dist/commands/generated/generated-measured-dma-format-index-get.js +38 -0
  30. package/dist/commands/generated/generated-measured-geohash-tiles-list.d.ts +16 -0
  31. package/dist/commands/generated/generated-measured-geohash-tiles-list.js +41 -0
  32. package/dist/commands/generated/generated-measured-multiplier-feed-get.d.ts +17 -0
  33. package/dist/commands/generated/generated-measured-multiplier-feed-get.js +47 -0
  34. package/dist/commands/generated/generated-measured-roads-list.d.ts +18 -0
  35. package/dist/commands/generated/generated-measured-roads-list.js +47 -0
  36. package/dist/commands/generated/generated-measurement-calibration-get.d.ts +16 -0
  37. package/dist/commands/generated/generated-measurement-calibration-get.js +44 -0
  38. package/dist/commands/generated/generated-measurement-calibration-versions-list.d.ts +13 -0
  39. package/dist/commands/generated/generated-measurement-calibration-versions-list.js +32 -0
  40. package/dist/commands/generated/generated-measurement-releases-list.d.ts +13 -0
  41. package/dist/commands/generated/generated-measurement-releases-list.js +32 -0
  42. package/dist/commands/generated/generated-owner-board-audience-get.d.ts +16 -0
  43. package/dist/commands/generated/generated-owner-board-audience-get.js +38 -0
  44. package/dist/commands/generated/generated-owner-board-currency-get.d.ts +17 -0
  45. package/dist/commands/generated/generated-owner-board-currency-get.js +41 -0
  46. package/dist/commands/generated/generated-owner-board-tiles-get.d.ts +16 -0
  47. package/dist/commands/generated/generated-owner-board-tiles-get.js +38 -0
  48. package/dist/commands/generated/generated-owner-board-viewshed-get.d.ts +14 -0
  49. package/dist/commands/generated/generated-owner-board-viewshed-get.js +32 -0
  50. package/dist/commands/generated/generated-owner-delivery-report-get.d.ts +16 -0
  51. package/dist/commands/generated/generated-owner-delivery-report-get.js +41 -0
  52. package/dist/commands/generated/generated-owner-face-get.d.ts +15 -0
  53. package/dist/commands/generated/generated-owner-face-get.js +35 -0
  54. package/dist/commands/generated/generated-owner-faces-list.d.ts +13 -0
  55. package/dist/commands/generated/generated-owner-faces-list.js +35 -0
  56. package/dist/commands/generated/generated-owner-measurement-releases-list.d.ts +13 -0
  57. package/dist/commands/generated/generated-owner-measurement-releases-list.js +32 -0
  58. package/dist/commands/generated/generated-owner-multiplier-feed-get.d.ts +17 -0
  59. package/dist/commands/generated/generated-owner-multiplier-feed-get.js +47 -0
  60. package/dist/commands/generated/generated-owner-publisher-yield-by-query-get.d.ts +17 -0
  61. package/dist/commands/generated/generated-owner-publisher-yield-by-query-get.js +47 -0
  62. package/dist/commands/generated/generated-owner-publisher-yield-get.d.ts +18 -0
  63. package/dist/commands/generated/generated-owner-publisher-yield-get.js +47 -0
  64. package/dist/commands/generated/generated-sighted-brands-search.d.ts +14 -0
  65. package/dist/commands/generated/generated-sighted-brands-search.js +35 -0
  66. package/oclif.manifest.json +2870 -491
  67. package/package.json +1 -1
@@ -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 Getmeasuredboardtiles extends BaseCommand {
8
+ static description = "Passes, legible seconds and facing seconds per week and daypart for one board.";
9
+ static examples = [`$ trillboards generated measured-board-tiles 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
+ 'from': Flags.string({ description: 'First week (snaps to its Monday).' }),
16
+ 'to': Flags.string({ description: 'Last week (snaps to its Monday).' }),
17
+ };
18
+ async run() {
19
+ const { args, flags } = await this.parse(Getmeasuredboardtiles);
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}/tiles';
25
+ urlPath = urlPath.replace('{boardId}', args['boardId']);
26
+ const params = {};
27
+ if (flags['from'])
28
+ params['from'] = flags['from'];
29
+ if (flags['to'])
30
+ params['to'] = flags['to'];
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,14 @@
1
+ import { BaseCommand } from '../../base-command.js';
2
+ export default class Getmeasuredboardviewshed 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 Getmeasuredboardviewshed extends BaseCommand {
8
+ static description = "The legible and visible viewshed of each face of a board, with its measured figures.";
9
+ static examples = [`$ trillboards generated measured-board-viewshed 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(Getmeasuredboardviewshed);
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}/viewshed.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 Listmeasuredboards extends BaseCommand {
3
+ static description: string;
4
+ static examples: string[];
5
+ static args: {};
6
+ static flags: {
7
+ bbox: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
8
+ set: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
9
+ layers: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
10
+ brand: 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,41 @@
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 Listmeasuredboards extends BaseCommand {
8
+ static description = "Every measured board in a bbox as a map point, with the ads our cab cameras read on it.";
9
+ static examples = [`$ trillboards generated measured-boards list`];
10
+ static args = {};
11
+ static flags = {
12
+ ...BaseCommand.baseFlags,
13
+ '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.' }),
14
+ 'set': Flags.string({ description: 'A curated set key: draw only its members.' }),
15
+ 'layers': Flags.string({ description: 'Extra layers: `sightings`.' }),
16
+ 'brand': Flags.string({ description: 'A brand to count per board and to narrow the sighting layer to.' }),
17
+ };
18
+ async run() {
19
+ const { args, flags } = await this.parse(Listmeasuredboards);
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.geojson';
25
+ const params = {};
26
+ if (flags['bbox'])
27
+ params['bbox'] = flags['bbox'];
28
+ if (flags['set'])
29
+ params['set'] = flags['set'];
30
+ if (flags['layers'])
31
+ params['layers'] = flags['layers'];
32
+ if (flags['brand'])
33
+ params['brand'] = flags['brand'];
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,15 @@
1
+ import { BaseCommand } from '../../base-command.js';
2
+ export default class Getmeasureddmaformatindex extends BaseCommand {
3
+ static description: string;
4
+ static examples: string[];
5
+ static args: {};
6
+ static flags: {
7
+ from: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
8
+ to: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
9
+ dma: 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 Getmeasureddmaformatindex extends BaseCommand {
8
+ static description = "The DMA x format index: passes per board-week, legible seconds per pass and facing share against the US base.";
9
+ static examples = [`$ trillboards generated measured-dma-format-index get`];
10
+ static args = {};
11
+ static flags = {
12
+ ...BaseCommand.baseFlags,
13
+ 'from': Flags.string({ description: 'First week.' }),
14
+ 'to': Flags.string({ description: 'Last week.' }),
15
+ 'dma': Flags.string({ description: 'One DMA.' }),
16
+ };
17
+ async run() {
18
+ const { args, flags } = await this.parse(Getmeasureddmaformatindex);
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/index';
24
+ const params = {};
25
+ if (flags['from'])
26
+ params['from'] = flags['from'];
27
+ if (flags['to'])
28
+ params['to'] = flags['to'];
29
+ if (flags['dma'])
30
+ params['dma'] = flags['dma'];
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 Listmeasuredgeohashtiles extends BaseCommand {
3
+ static description: string;
4
+ static examples: string[];
5
+ static args: {};
6
+ static flags: {
7
+ bbox: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
8
+ precision: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
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
+ }
@@ -0,0 +1,41 @@
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 Listmeasuredgeohashtiles extends BaseCommand {
8
+ static description = "Passes, legible and facing seconds summed per geohash cell over the entitled boards in a bbox.";
9
+ static examples = [`$ trillboards generated measured-geohash-tiles list`];
10
+ static args = {};
11
+ static flags = {
12
+ ...BaseCommand.baseFlags,
13
+ '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.' }),
14
+ 'precision': Flags.string({ description: 'Geohash precision: 5 (default), 6 or 7.' }),
15
+ 'from': Flags.string({ description: 'First week.' }),
16
+ 'to': Flags.string({ description: 'Last week.' }),
17
+ };
18
+ async run() {
19
+ const { args, flags } = await this.parse(Listmeasuredgeohashtiles);
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/tiles.geojson';
25
+ const params = {};
26
+ if (flags['bbox'])
27
+ params['bbox'] = flags['bbox'];
28
+ if (flags['precision'])
29
+ params['precision'] = flags['precision'];
30
+ if (flags['from'])
31
+ params['from'] = flags['from'];
32
+ if (flags['to'])
33
+ params['to'] = flags['to'];
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,17 @@
1
+ import { BaseCommand } from '../../base-command.js';
2
+ export default class Getmeasuredmultiplierfeed extends BaseCommand {
3
+ static description: string;
4
+ static examples: string[];
5
+ static args: {};
6
+ static flags: {
7
+ ssp: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
8
+ feed_date: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
9
+ dataset: 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
+ dma: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
12
+ format: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
13
+ 'api-key': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
14
+ 'base-url': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
15
+ };
16
+ run(): Promise<void>;
17
+ }
@@ -0,0 +1,47 @@
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 Getmeasuredmultiplierfeed extends BaseCommand {
8
+ static description = "The measured multiplier file for an SSP: per-face impression multipliers, or per-face demographics.";
9
+ static examples = [`$ trillboards generated measured-multiplier-feed get`];
10
+ static args = {};
11
+ static flags = {
12
+ ...BaseCommand.baseFlags,
13
+ 'ssp': Flags.string({ description: 'SSP whose venue ids key the file: vistar (default), place_exchange, broadsign, hivestack, viooh, magnite, lmx.' }),
14
+ 'feed_date': Flags.string({ description: 'Feed date. Absent: the newest.' }),
15
+ 'dataset': Flags.string({ description: 'multipliers (default), faces or demographics.' }),
16
+ 'daypart': Flags.string({ description: 'One daypart (early_morning, morning, midday, afternoon, evening, night, late_night) or `__all__`. Absent: every daypart.' }),
17
+ 'dma': Flags.string({ description: 'Three-digit DMA code.' }),
18
+ 'format': Flags.string({ description: 'json (default) or csv (text/csv attachment).' }),
19
+ };
20
+ async run() {
21
+ const { args, flags } = await this.parse(Getmeasuredmultiplierfeed);
22
+ this.setParsedFlags(flags);
23
+ const apiKey = this.getApiKey();
24
+ if (!apiKey)
25
+ this.error('Not logged in. Run: trillboards login');
26
+ let urlPath = '/v1/advertiser/measurement/feeds/multipliers';
27
+ const params = {};
28
+ if (flags['ssp'])
29
+ params['ssp'] = flags['ssp'];
30
+ if (flags['feed_date'])
31
+ params['feed_date'] = flags['feed_date'];
32
+ if (flags['dataset'])
33
+ params['dataset'] = flags['dataset'];
34
+ if (flags['daypart'])
35
+ params['daypart'] = flags['daypart'];
36
+ if (flags['dma'])
37
+ params['dma'] = flags['dma'];
38
+ if (flags['format'])
39
+ params['format'] = flags['format'];
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,18 @@
1
+ import { BaseCommand } from '../../base-command.js';
2
+ export default class Listmeasuredroads extends BaseCommand {
3
+ static description: string;
4
+ static examples: string[];
5
+ static args: {};
6
+ static flags: {
7
+ bbox: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
8
+ dow_type: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
9
+ hour: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
10
+ metric: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
11
+ road_class: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
12
+ set: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
13
+ 'api-key': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
14
+ 'base-url': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
15
+ format: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
16
+ };
17
+ run(): Promise<void>;
18
+ }
@@ -0,0 +1,47 @@
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 Listmeasuredroads extends BaseCommand {
8
+ static description = "The roads our fleet drove in a bbox, with the traffic index and speeds.";
9
+ static examples = [`$ trillboards generated measured-roads list`];
10
+ static args = {};
11
+ static flags = {
12
+ ...BaseCommand.baseFlags,
13
+ '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.' }),
14
+ 'dow_type': Flags.string({ description: 'Day-of-week type (default weekday).' }),
15
+ 'hour': Flags.string({ description: 'Local hour 0-23. Absent: every hour.' }),
16
+ 'metric': Flags.string({ description: 'traversal_index (default), speed or speed_ratio.' }),
17
+ '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.' }),
18
+ 'set': Flags.string({ description: 'A curated set key.' }),
19
+ };
20
+ async run() {
21
+ const { args, flags } = await this.parse(Listmeasuredroads);
22
+ this.setParsedFlags(flags);
23
+ const apiKey = this.getApiKey();
24
+ if (!apiKey)
25
+ this.error('Not logged in. Run: trillboards login');
26
+ let urlPath = '/v1/advertiser/measurement/roads.geojson';
27
+ const params = {};
28
+ if (flags['bbox'])
29
+ params['bbox'] = flags['bbox'];
30
+ if (flags['dow_type'])
31
+ params['dow_type'] = flags['dow_type'];
32
+ if (flags['hour'])
33
+ params['hour'] = flags['hour'];
34
+ if (flags['metric'])
35
+ params['metric'] = flags['metric'];
36
+ if (flags['road_class'])
37
+ params['road_class'] = flags['road_class'];
38
+ if (flags['set'])
39
+ params['set'] = flags['set'];
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,16 @@
1
+ import { BaseCommand } from '../../base-command.js';
2
+ export default class Getmeasurementcalibration extends BaseCommand {
3
+ static description: string;
4
+ static examples: string[];
5
+ static args: {};
6
+ static flags: {
7
+ calibration_id: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
8
+ calibration: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
9
+ unit: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
10
+ instrument: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
11
+ format: 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
+ };
15
+ run(): Promise<void>;
16
+ }
@@ -0,0 +1,44 @@
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 Getmeasurementcalibration extends BaseCommand {
8
+ static description = "The calibration panel: P(readable) and P(facing) per format, road class, speed, daypart and bearing.";
9
+ static examples = [`$ trillboards generated measurement-calibration get`];
10
+ static args = {};
11
+ static flags = {
12
+ ...BaseCommand.baseFlags,
13
+ 'calibration_id': Flags.string({ description: 'A version id (mcal-2026-09-26-cv3-pa6-b1). Absent: the newest.' }),
14
+ 'calibration': Flags.string({ description: 'One calibration.' }),
15
+ 'unit': Flags.string({ description: 'One unit.' }),
16
+ 'instrument': Flags.string({ description: 'One instrument.' }),
17
+ 'format': Flags.string({ description: 'json (default) or csv.' }),
18
+ };
19
+ async run() {
20
+ const { args, flags } = await this.parse(Getmeasurementcalibration);
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/calibration';
26
+ const params = {};
27
+ if (flags['calibration_id'])
28
+ params['calibration_id'] = flags['calibration_id'];
29
+ if (flags['calibration'])
30
+ params['calibration'] = flags['calibration'];
31
+ if (flags['unit'])
32
+ params['unit'] = flags['unit'];
33
+ if (flags['instrument'])
34
+ params['instrument'] = flags['instrument'];
35
+ if (flags['format'])
36
+ params['format'] = flags['format'];
37
+ const result = await apiRequest('GET', urlPath, {
38
+ apiKey,
39
+ baseUrl: flags['base-url'] ?? 'https://api.trillboards.com',
40
+ params: Object.keys(params).length > 0 ? params : undefined,
41
+ });
42
+ this.log(formatOutput(result, this.getFormat()));
43
+ }
44
+ }
@@ -0,0 +1,13 @@
1
+ import { BaseCommand } from '../../base-command.js';
2
+ export default class Listmeasurementcalibrationversions extends BaseCommand {
3
+ static description: string;
4
+ static examples: string[];
5
+ static args: {};
6
+ static flags: {
7
+ limit: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
8
+ 'api-key': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
9
+ 'base-url': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
10
+ format: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
11
+ };
12
+ run(): Promise<void>;
13
+ }
@@ -0,0 +1,32 @@
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 Listmeasurementcalibrationversions extends BaseCommand {
8
+ static description = "Every verified calibration version, to pin a calibration_id from.";
9
+ static examples = [`$ trillboards generated measurement-calibration-versions list`];
10
+ static args = {};
11
+ static flags = {
12
+ ...BaseCommand.baseFlags,
13
+ 'limit': Flags.string({ description: 'Versions to return (default 52).' }),
14
+ };
15
+ async run() {
16
+ const { args, flags } = await this.parse(Listmeasurementcalibrationversions);
17
+ this.setParsedFlags(flags);
18
+ const apiKey = this.getApiKey();
19
+ if (!apiKey)
20
+ this.error('Not logged in. Run: trillboards login');
21
+ let urlPath = '/v1/advertiser/measurement/calibration/versions';
22
+ const params = {};
23
+ if (flags['limit'])
24
+ params['limit'] = flags['limit'];
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,13 @@
1
+ import { BaseCommand } from '../../base-command.js';
2
+ export default class Listmeasurementreleases extends BaseCommand {
3
+ static description: string;
4
+ static examples: string[];
5
+ static args: {};
6
+ static flags: {
7
+ limit: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
8
+ 'api-key': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
9
+ 'base-url': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
10
+ format: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
11
+ };
12
+ run(): Promise<void>;
13
+ }
@@ -0,0 +1,32 @@
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 Listmeasurementreleases extends BaseCommand {
8
+ static description = "The release registry: every monthly release of measured multipliers and every feed published from it.";
9
+ static examples = [`$ trillboards generated measurement-releases list`];
10
+ static args = {};
11
+ static flags = {
12
+ ...BaseCommand.baseFlags,
13
+ 'limit': Flags.string({ description: 'Releases to return (default 24).' }),
14
+ };
15
+ async run() {
16
+ const { args, flags } = await this.parse(Listmeasurementreleases);
17
+ this.setParsedFlags(flags);
18
+ const apiKey = this.getApiKey();
19
+ if (!apiKey)
20
+ this.error('Not logged in. Run: trillboards login');
21
+ let urlPath = '/v1/advertiser/measurement/releases';
22
+ const params = {};
23
+ if (flags['limit'])
24
+ params['limit'] = flags['limit'];
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 Getownerboardaudience 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 Getownerboardaudience extends BaseCommand {
8
+ static description = "The pass audience of an owned face.";
9
+ static examples = [`$ trillboards generated owner-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.' }),
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(Getownerboardaudience);
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/owner/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 Getownerboardcurrency 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
+ }