@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,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 Getownerboardcurrency extends BaseCommand {
|
|
8
|
+
static description = "The currency of an owned face, with the owner comparison, yield and money.";
|
|
9
|
+
static examples = [`$ trillboards generated owner-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(Getownerboardcurrency);
|
|
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/owner/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,16 @@
|
|
|
1
|
+
import { BaseCommand } from '../../base-command.js';
|
|
2
|
+
export default class Getownerboardtiles 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
|
+
}
|
|
@@ -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 Getownerboardtiles extends BaseCommand {
|
|
8
|
+
static description = "The week x daypart tiles of an owned face.";
|
|
9
|
+
static examples = [`$ trillboards generated owner-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(Getownerboardtiles);
|
|
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}/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 Getownerboardviewshed 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 Getownerboardviewshed extends BaseCommand {
|
|
8
|
+
static description = "The viewshed of an owned face.";
|
|
9
|
+
static examples = [`$ trillboards generated owner-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(Getownerboardviewshed);
|
|
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/owner/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 Getownerdeliveryreport 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
|
+
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,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 Getownerdeliveryreport extends BaseCommand {
|
|
8
|
+
static description = "The DOOH delivery report: what one face aired over a flight and the measured impressions it delivered.";
|
|
9
|
+
static examples = [`$ trillboards generated owner-delivery-report 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 flight day.' }),
|
|
16
|
+
'to': Flags.string({ description: 'Last flight day.' }),
|
|
17
|
+
'format': Flags.string({ description: 'json or csv.' }),
|
|
18
|
+
};
|
|
19
|
+
async run() {
|
|
20
|
+
const { args, flags } = await this.parse(Getownerdeliveryreport);
|
|
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/owner/measurement/boards/{boardId}/delivery-report';
|
|
26
|
+
urlPath = urlPath.replace('{boardId}', args['boardId']);
|
|
27
|
+
const params = {};
|
|
28
|
+
if (flags['from'])
|
|
29
|
+
params['from'] = flags['from'];
|
|
30
|
+
if (flags['to'])
|
|
31
|
+
params['to'] = flags['to'];
|
|
32
|
+
if (flags['format'])
|
|
33
|
+
params['format'] = flags['format'];
|
|
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 Getownerface 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
|
+
'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 Getownerface extends BaseCommand {
|
|
8
|
+
static description = "One owned face in full: currency, audience, spec, SSP venue ids, benchmark and release cells.";
|
|
9
|
+
static examples = [`$ trillboards generated owner-face 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
|
+
};
|
|
17
|
+
async run() {
|
|
18
|
+
const { args, flags } = await this.parse(Getownerface);
|
|
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/owner/measurement/faces/{boardId}';
|
|
24
|
+
urlPath = urlPath.replace('{boardId}', args['boardId']);
|
|
25
|
+
const params = {};
|
|
26
|
+
if (flags['window_end'])
|
|
27
|
+
params['window_end'] = flags['window_end'];
|
|
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,13 @@
|
|
|
1
|
+
import { BaseCommand } from '../../base-command.js';
|
|
2
|
+
export default class Listownerfaces extends BaseCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static examples: string[];
|
|
5
|
+
static args: {};
|
|
6
|
+
static flags: {
|
|
7
|
+
format: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
|
+
window_end: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
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
|
+
};
|
|
12
|
+
run(): Promise<void>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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 Listownerfaces extends BaseCommand {
|
|
8
|
+
static description = "Every face the media owner holds, measured: impressions per spot beside its own figure, yield, money, facing and rank.";
|
|
9
|
+
static examples = [`$ trillboards generated owner-faces list`];
|
|
10
|
+
static args = {};
|
|
11
|
+
static flags = {
|
|
12
|
+
...BaseCommand.baseFlags,
|
|
13
|
+
'format': Flags.string({ description: 'json (default) or csv.' }),
|
|
14
|
+
'window_end': Flags.string({ description: 'Window end. Absent: the newest.' }),
|
|
15
|
+
};
|
|
16
|
+
async run() {
|
|
17
|
+
const { args, flags } = await this.parse(Listownerfaces);
|
|
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/owner/measurement/faces';
|
|
23
|
+
const params = {};
|
|
24
|
+
if (flags['format'])
|
|
25
|
+
params['format'] = flags['format'];
|
|
26
|
+
if (flags['window_end'])
|
|
27
|
+
params['window_end'] = flags['window_end'];
|
|
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,13 @@
|
|
|
1
|
+
import { BaseCommand } from '../../base-command.js';
|
|
2
|
+
export default class Listownermeasurementreleases 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 Listownermeasurementreleases extends BaseCommand {
|
|
8
|
+
static description = "The release registry, on the owner mount.";
|
|
9
|
+
static examples = [`$ trillboards generated owner-measurement-releases list`];
|
|
10
|
+
static args = {};
|
|
11
|
+
static flags = {
|
|
12
|
+
...BaseCommand.baseFlags,
|
|
13
|
+
'limit': Flags.string({ description: 'Releases to return.' }),
|
|
14
|
+
};
|
|
15
|
+
async run() {
|
|
16
|
+
const { args, flags } = await this.parse(Listownermeasurementreleases);
|
|
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/owner/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,17 @@
|
|
|
1
|
+
import { BaseCommand } from '../../base-command.js';
|
|
2
|
+
export default class Getownermultiplierfeed 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 Getownermultiplierfeed extends BaseCommand {
|
|
8
|
+
static description = "The measured multiplier file for the owner's faces.";
|
|
9
|
+
static examples = [`$ trillboards generated owner-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(Getownermultiplierfeed);
|
|
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/owner/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,17 @@
|
|
|
1
|
+
import { BaseCommand } from '../../base-command.js';
|
|
2
|
+
export default class Getownerpublisheryieldbyquery extends BaseCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static examples: string[];
|
|
5
|
+
static args: {};
|
|
6
|
+
static flags: {
|
|
7
|
+
format: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
|
+
dma: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
|
+
venue_type: 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
|
+
window_end: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
|
+
publisher: 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 Getownerpublisheryieldbyquery extends BaseCommand {
|
|
8
|
+
static description = "The publisher yield report, the publisher named in the query string.";
|
|
9
|
+
static examples = [`$ trillboards generated owner-publisher-yield-by-query get`];
|
|
10
|
+
static args = {};
|
|
11
|
+
static flags = {
|
|
12
|
+
...BaseCommand.baseFlags,
|
|
13
|
+
'format': Flags.string({ description: 'json (default) or csv.' }),
|
|
14
|
+
'dma': Flags.string({ description: 'One DMA.' }),
|
|
15
|
+
'venue_type': Flags.string({ description: 'OpenOOH venue type id.' }),
|
|
16
|
+
'daypart': Flags.string({ description: 'One daypart (early_morning, morning, midday, afternoon, evening, night, late_night) or `__all__`. Absent: every daypart.' }),
|
|
17
|
+
'window_end': Flags.string({ description: 'Window end.' }),
|
|
18
|
+
'publisher': Flags.string({ description: 'Publisher name.' }),
|
|
19
|
+
};
|
|
20
|
+
async run() {
|
|
21
|
+
const { args, flags } = await this.parse(Getownerpublisheryieldbyquery);
|
|
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/owner/measurement/publishers/yield';
|
|
27
|
+
const params = {};
|
|
28
|
+
if (flags['format'])
|
|
29
|
+
params['format'] = flags['format'];
|
|
30
|
+
if (flags['dma'])
|
|
31
|
+
params['dma'] = flags['dma'];
|
|
32
|
+
if (flags['venue_type'])
|
|
33
|
+
params['venue_type'] = flags['venue_type'];
|
|
34
|
+
if (flags['daypart'])
|
|
35
|
+
params['daypart'] = flags['daypart'];
|
|
36
|
+
if (flags['window_end'])
|
|
37
|
+
params['window_end'] = flags['window_end'];
|
|
38
|
+
if (flags['publisher'])
|
|
39
|
+
params['publisher'] = flags['publisher'];
|
|
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 Getownerpublisheryield extends BaseCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static examples: string[];
|
|
5
|
+
static args: {
|
|
6
|
+
publisher: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
7
|
+
};
|
|
8
|
+
static flags: {
|
|
9
|
+
format: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
dma: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
|
+
venue_type: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
|
+
daypart: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
|
+
window_end: 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
|
+
};
|
|
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 { 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 Getownerpublisheryield extends BaseCommand {
|
|
8
|
+
static description = "The publisher yield report: every face measured against the owner's own figure.";
|
|
9
|
+
static examples = [`$ trillboards generated owner-publisher-yield get`];
|
|
10
|
+
static args = {
|
|
11
|
+
publisher: Args.string({ description: 'Publisher name.', required: true }),
|
|
12
|
+
};
|
|
13
|
+
static flags = {
|
|
14
|
+
...BaseCommand.baseFlags,
|
|
15
|
+
'format': Flags.string({ description: 'json (default) or csv.' }),
|
|
16
|
+
'dma': Flags.string({ description: 'One DMA.' }),
|
|
17
|
+
'venue_type': Flags.string({ description: 'OpenOOH venue type id.' }),
|
|
18
|
+
'daypart': Flags.string({ description: 'One daypart (early_morning, morning, midday, afternoon, evening, night, late_night) or `__all__`. Absent: every daypart.' }),
|
|
19
|
+
'window_end': Flags.string({ description: 'Window end.' }),
|
|
20
|
+
};
|
|
21
|
+
async run() {
|
|
22
|
+
const { args, flags } = await this.parse(Getownerpublisheryield);
|
|
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/owner/measurement/publishers/{publisher}/yield';
|
|
28
|
+
urlPath = urlPath.replace('{publisher}', args['publisher']);
|
|
29
|
+
const params = {};
|
|
30
|
+
if (flags['format'])
|
|
31
|
+
params['format'] = flags['format'];
|
|
32
|
+
if (flags['dma'])
|
|
33
|
+
params['dma'] = flags['dma'];
|
|
34
|
+
if (flags['venue_type'])
|
|
35
|
+
params['venue_type'] = flags['venue_type'];
|
|
36
|
+
if (flags['daypart'])
|
|
37
|
+
params['daypart'] = flags['daypart'];
|
|
38
|
+
if (flags['window_end'])
|
|
39
|
+
params['window_end'] = flags['window_end'];
|
|
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,14 @@
|
|
|
1
|
+
import { BaseCommand } from '../../base-command.js';
|
|
2
|
+
export default class Searchsightedbrands 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
|
+
'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,35 @@
|
|
|
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 Searchsightedbrands extends BaseCommand {
|
|
8
|
+
static description = "Brand typeahead over the outdoor ads our cab cameras read, with each brand's reads and metros.";
|
|
9
|
+
static examples = [`$ trillboards generated sighted-brands search`];
|
|
10
|
+
static args = {};
|
|
11
|
+
static flags = {
|
|
12
|
+
...BaseCommand.baseFlags,
|
|
13
|
+
'q': Flags.string({ description: 'Brand name as typed. Empty: the most-read brands.' }),
|
|
14
|
+
'limit': Flags.string({ description: 'Brands to return.' }),
|
|
15
|
+
};
|
|
16
|
+
async run() {
|
|
17
|
+
const { args, flags } = await this.parse(Searchsightedbrands);
|
|
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/brands';
|
|
23
|
+
const params = {};
|
|
24
|
+
if (flags['q'])
|
|
25
|
+
params['q'] = flags['q'];
|
|
26
|
+
if (flags['limit'])
|
|
27
|
+
params['limit'] = flags['limit'];
|
|
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
|
+
}
|