@oursprivacy/platform-sdk 1.67.0 → 1.69.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/client.d.mts +8 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +8 -2
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/analytics.d.mts +10 -0
- package/resources/analytics.d.mts.map +1 -1
- package/resources/analytics.d.ts +10 -0
- package/resources/analytics.d.ts.map +1 -1
- package/resources/dashboards.d.mts +696 -34
- package/resources/dashboards.d.mts.map +1 -1
- package/resources/dashboards.d.ts +696 -34
- package/resources/dashboards.d.ts.map +1 -1
- package/resources/destinations.d.mts +7 -7
- package/resources/destinations.d.mts.map +1 -1
- package/resources/destinations.d.ts +7 -7
- package/resources/destinations.d.ts.map +1 -1
- package/resources/funnels.d.mts +255 -9
- package/resources/funnels.d.mts.map +1 -1
- package/resources/funnels.d.ts +255 -9
- package/resources/funnels.d.ts.map +1 -1
- package/resources/funnels.js +10 -7
- package/resources/funnels.js.map +1 -1
- package/resources/funnels.mjs +10 -7
- package/resources/funnels.mjs.map +1 -1
- package/resources/index.d.mts +3 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/insights.d.mts +178 -57
- package/resources/insights.d.mts.map +1 -1
- package/resources/insights.d.ts +178 -57
- package/resources/insights.d.ts.map +1 -1
- package/resources/insights.js +9 -7
- package/resources/insights.js.map +1 -1
- package/resources/insights.mjs +9 -7
- package/resources/insights.mjs.map +1 -1
- package/resources/journey-flows.d.mts +242 -18
- package/resources/journey-flows.d.mts.map +1 -1
- package/resources/journey-flows.d.ts +242 -18
- package/resources/journey-flows.d.ts.map +1 -1
- package/resources/journey-flows.js +18 -12
- package/resources/journey-flows.js.map +1 -1
- package/resources/journey-flows.mjs +18 -12
- package/resources/journey-flows.mjs.map +1 -1
- package/resources/query-events.d.mts +324 -0
- package/resources/query-events.d.mts.map +1 -0
- package/resources/query-events.d.ts +324 -0
- package/resources/query-events.d.ts.map +1 -0
- package/resources/query-events.js +64 -0
- package/resources/query-events.js.map +1 -0
- package/resources/query-events.mjs +60 -0
- package/resources/query-events.mjs.map +1 -0
- package/resources/query-visitors.d.mts +127 -0
- package/resources/query-visitors.d.mts.map +1 -0
- package/resources/query-visitors.d.ts +127 -0
- package/resources/query-visitors.d.ts.map +1 -0
- package/resources/query-visitors.js +35 -0
- package/resources/query-visitors.js.map +1 -0
- package/resources/query-visitors.mjs +31 -0
- package/resources/query-visitors.mjs.map +1 -0
- package/resources/report-branding.d.mts +112 -28
- package/resources/report-branding.d.mts.map +1 -1
- package/resources/report-branding.d.ts +112 -28
- package/resources/report-branding.d.ts.map +1 -1
- package/resources/report-branding.js +29 -15
- package/resources/report-branding.js.map +1 -1
- package/resources/report-branding.mjs +29 -15
- package/resources/report-branding.mjs.map +1 -1
- package/resources/sources.d.mts +6 -6
- package/resources/sources.d.mts.map +1 -1
- package/resources/sources.d.ts +6 -6
- package/resources/sources.d.ts.map +1 -1
- package/resources/test-events.d.mts +28 -0
- package/resources/test-events.d.mts.map +1 -1
- package/resources/test-events.d.ts +28 -0
- package/resources/test-events.d.ts.map +1 -1
- package/resources/web-analytics.d.mts +25 -1
- package/resources/web-analytics.d.mts.map +1 -1
- package/resources/web-analytics.d.ts +25 -1
- package/resources/web-analytics.d.ts.map +1 -1
- package/src/client.ts +54 -0
- package/src/resources/analytics.ts +12 -0
- package/src/resources/dashboards.ts +939 -47
- package/src/resources/destinations.ts +23 -2
- package/src/resources/funnels.ts +334 -9
- package/src/resources/index.ts +24 -0
- package/src/resources/insights.ts +224 -57
- package/src/resources/journey-flows.ts +300 -22
- package/src/resources/query-events.ts +459 -0
- package/src/resources/query-visitors.ts +190 -0
- package/src/resources/report-branding.ts +132 -27
- package/src/resources/sources.ts +12 -0
- package/src/resources/test-events.ts +33 -0
- package/src/resources/web-analytics.ts +41 -1
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
+
export declare class QueryVisitors extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* List visitors with matching events and their permitted current-profile fields.
|
|
7
|
+
* JSON-encode input in the query string; cursors stay bound to the account and
|
|
8
|
+
* filters, while page size may change. Requires API-key scope or current OAuth
|
|
9
|
+
* user permission: web-analytics:view, report:list-events
|
|
10
|
+
*/
|
|
11
|
+
list(query: QueryVisitorListParams, options?: RequestOptions): APIPromise<QueryVisitorListResponse>;
|
|
12
|
+
/**
|
|
13
|
+
* Return Query Visitors date, page, selection, and touch-filter capabilities.
|
|
14
|
+
* Requires API-key scope or current OAuth user permission: web-analytics:view,
|
|
15
|
+
* report:list-events
|
|
16
|
+
*/
|
|
17
|
+
capabilities(options?: RequestOptions): APIPromise<QueryVisitorCapabilitiesResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Search current visitor profiles for the Query Visitors typeahead. Pass returned
|
|
20
|
+
* visitorIds to the list input to filter the result. Requires API-key scope or
|
|
21
|
+
* current OAuth user permission: web-analytics:view, report:list-events,
|
|
22
|
+
* report:view-visitor
|
|
23
|
+
*/
|
|
24
|
+
profileSearch(query: QueryVisitorProfileSearchParams, options?: RequestOptions): APIPromise<QueryVisitorProfileSearchResponse>;
|
|
25
|
+
}
|
|
26
|
+
export interface QueryVisitorListResponse {
|
|
27
|
+
freshness: QueryVisitorListResponse.Freshness;
|
|
28
|
+
matchedCount: number | null;
|
|
29
|
+
pagination: QueryVisitorListResponse.Pagination;
|
|
30
|
+
rows: Array<QueryVisitorListResponse.Row>;
|
|
31
|
+
}
|
|
32
|
+
export declare namespace QueryVisitorListResponse {
|
|
33
|
+
interface Freshness {
|
|
34
|
+
coverageStatus: 'UNKNOWN';
|
|
35
|
+
coverageWatermark: string | null;
|
|
36
|
+
syncCompletedAt?: string | null;
|
|
37
|
+
syncCursor?: string | null;
|
|
38
|
+
}
|
|
39
|
+
interface Pagination {
|
|
40
|
+
hasMore: boolean;
|
|
41
|
+
nextCursor: string | null;
|
|
42
|
+
}
|
|
43
|
+
interface Row {
|
|
44
|
+
match: Row.Match;
|
|
45
|
+
profile: Row.Profile;
|
|
46
|
+
visitorId: string;
|
|
47
|
+
}
|
|
48
|
+
namespace Row {
|
|
49
|
+
interface Match {
|
|
50
|
+
eventCount: number;
|
|
51
|
+
firstEventAt: string;
|
|
52
|
+
lastEventAt: string;
|
|
53
|
+
}
|
|
54
|
+
interface Profile {
|
|
55
|
+
/**
|
|
56
|
+
* Current profile email, when available.
|
|
57
|
+
*/
|
|
58
|
+
email: string | null;
|
|
59
|
+
/**
|
|
60
|
+
* Current external ID, when available.
|
|
61
|
+
*/
|
|
62
|
+
externalId: string | null;
|
|
63
|
+
/**
|
|
64
|
+
* Current first name, when permitted and available.
|
|
65
|
+
*/
|
|
66
|
+
firstName: string | null;
|
|
67
|
+
/**
|
|
68
|
+
* First activity recorded on the current profile.
|
|
69
|
+
*/
|
|
70
|
+
firstSeenAt: string | null;
|
|
71
|
+
/**
|
|
72
|
+
* Current last name, when permitted and available.
|
|
73
|
+
*/
|
|
74
|
+
lastName: string | null;
|
|
75
|
+
/**
|
|
76
|
+
* Most recent activity recorded on the current profile.
|
|
77
|
+
*/
|
|
78
|
+
lastSeenAt: string | null;
|
|
79
|
+
/**
|
|
80
|
+
* Current profile lookup status.
|
|
81
|
+
*/
|
|
82
|
+
status: 'FOUND' | 'NOT_FOUND' | 'UNAVAILABLE';
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
export interface QueryVisitorCapabilitiesResponse {
|
|
87
|
+
defaultPageSize: 25;
|
|
88
|
+
defaultTouchLookbackDays: number;
|
|
89
|
+
maxDateRangeDays: 31;
|
|
90
|
+
maxPageSize: 100;
|
|
91
|
+
maxSelections: 10;
|
|
92
|
+
supportsVerifiedCoverageWatermark: boolean;
|
|
93
|
+
touchEnabled: boolean;
|
|
94
|
+
touchLookbackDays: Array<number>;
|
|
95
|
+
version: 1;
|
|
96
|
+
}
|
|
97
|
+
export interface QueryVisitorProfileSearchResponse {
|
|
98
|
+
matches: Array<QueryVisitorProfileSearchResponse.Match>;
|
|
99
|
+
truncated: boolean;
|
|
100
|
+
visitorIds: Array<string>;
|
|
101
|
+
}
|
|
102
|
+
export declare namespace QueryVisitorProfileSearchResponse {
|
|
103
|
+
interface Match {
|
|
104
|
+
email: string | null;
|
|
105
|
+
externalId: string | null;
|
|
106
|
+
firstName: string | null;
|
|
107
|
+
lastName: string | null;
|
|
108
|
+
lastSeenAt: string | null;
|
|
109
|
+
visitorId: string;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
export interface QueryVisitorListParams {
|
|
113
|
+
/**
|
|
114
|
+
* Query Visitors filters and page. JSON-encode input in the REST query string.
|
|
115
|
+
*/
|
|
116
|
+
input: string;
|
|
117
|
+
}
|
|
118
|
+
export interface QueryVisitorProfileSearchParams {
|
|
119
|
+
/**
|
|
120
|
+
* Current profile search filters. JSON-encode input in the REST query string.
|
|
121
|
+
*/
|
|
122
|
+
input: string;
|
|
123
|
+
}
|
|
124
|
+
export declare namespace QueryVisitors {
|
|
125
|
+
export { type QueryVisitorListResponse as QueryVisitorListResponse, type QueryVisitorCapabilitiesResponse as QueryVisitorCapabilitiesResponse, type QueryVisitorProfileSearchResponse as QueryVisitorProfileSearchResponse, type QueryVisitorListParams as QueryVisitorListParams, type QueryVisitorProfileSearchParams as QueryVisitorProfileSearchParams, };
|
|
126
|
+
}
|
|
127
|
+
//# sourceMappingURL=query-visitors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-visitors.d.ts","sourceRoot":"","sources":["../src/resources/query-visitors.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;OAKG;IACH,IAAI,CAAC,KAAK,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;IAInG;;;;OAIG;IACH,YAAY,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gCAAgC,CAAC;IAIpF;;;;;OAKG;IACH,aAAa,CACX,KAAK,EAAE,+BAA+B,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iCAAiC,CAAC;CAGjD;AAED,MAAM,WAAW,wBAAwB;IACvC,SAAS,EAAE,wBAAwB,CAAC,SAAS,CAAC;IAE9C,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B,UAAU,EAAE,wBAAwB,CAAC,UAAU,CAAC;IAEhD,IAAI,EAAE,KAAK,CAAC,wBAAwB,CAAC,GAAG,CAAC,CAAC;CAC3C;AAED,yBAAiB,wBAAwB,CAAC;IACxC,UAAiB,SAAS;QACxB,cAAc,EAAE,SAAS,CAAC;QAE1B,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;QAEjC,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAEhC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAC5B;IAED,UAAiB,UAAU;QACzB,OAAO,EAAE,OAAO,CAAC;QAEjB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;KAC3B;IAED,UAAiB,GAAG;Q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;IACjD,UAAiB,KAAK;QACpB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;QAErB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;QAE1B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;QAEzB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;QAExB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;QAE1B,SAAS,EAAE,MAAM,CAAC;KACnB;CACF;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,+BAA+B;IAC9C;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;CACH"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.QueryVisitors = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
class QueryVisitors extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* List visitors with matching events and their permitted current-profile fields.
|
|
9
|
+
* JSON-encode input in the query string; cursors stay bound to the account and
|
|
10
|
+
* filters, while page size may change. Requires API-key scope or current OAuth
|
|
11
|
+
* user permission: web-analytics:view, report:list-events
|
|
12
|
+
*/
|
|
13
|
+
list(query, options) {
|
|
14
|
+
return this._client.get('/rest/v1/query-visitors', { query, ...options });
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Return Query Visitors date, page, selection, and touch-filter capabilities.
|
|
18
|
+
* Requires API-key scope or current OAuth user permission: web-analytics:view,
|
|
19
|
+
* report:list-events
|
|
20
|
+
*/
|
|
21
|
+
capabilities(options) {
|
|
22
|
+
return this._client.get('/rest/v1/query-visitors/capabilities', options);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Search current visitor profiles for the Query Visitors typeahead. Pass returned
|
|
26
|
+
* visitorIds to the list input to filter the result. Requires API-key scope or
|
|
27
|
+
* current OAuth user permission: web-analytics:view, report:list-events,
|
|
28
|
+
* report:view-visitor
|
|
29
|
+
*/
|
|
30
|
+
profileSearch(query, options) {
|
|
31
|
+
return this._client.get('/rest/v1/query-visitors/profile-search', { query, ...options });
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.QueryVisitors = QueryVisitors;
|
|
35
|
+
//# sourceMappingURL=query-visitors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-visitors.js","sourceRoot":"","sources":["../src/resources/query-visitors.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;;;OAKG;IACH,IAAI,CAAC,KAA6B,EAAE,OAAwB;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED;;;;OAIG;IACH,YAAY,CAAC,OAAwB;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sCAAsC,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;IAED;;;;;OAKG;IACH,aAAa,CACX,KAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wCAAwC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;CACF;AAhCD,sCAgCC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
export class QueryVisitors extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* List visitors with matching events and their permitted current-profile fields.
|
|
6
|
+
* JSON-encode input in the query string; cursors stay bound to the account and
|
|
7
|
+
* filters, while page size may change. Requires API-key scope or current OAuth
|
|
8
|
+
* user permission: web-analytics:view, report:list-events
|
|
9
|
+
*/
|
|
10
|
+
list(query, options) {
|
|
11
|
+
return this._client.get('/rest/v1/query-visitors', { query, ...options });
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Return Query Visitors date, page, selection, and touch-filter capabilities.
|
|
15
|
+
* Requires API-key scope or current OAuth user permission: web-analytics:view,
|
|
16
|
+
* report:list-events
|
|
17
|
+
*/
|
|
18
|
+
capabilities(options) {
|
|
19
|
+
return this._client.get('/rest/v1/query-visitors/capabilities', options);
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Search current visitor profiles for the Query Visitors typeahead. Pass returned
|
|
23
|
+
* visitorIds to the list input to filter the result. Requires API-key scope or
|
|
24
|
+
* current OAuth user permission: web-analytics:view, report:list-events,
|
|
25
|
+
* report:view-visitor
|
|
26
|
+
*/
|
|
27
|
+
profileSearch(query, options) {
|
|
28
|
+
return this._client.get('/rest/v1/query-visitors/profile-search', { query, ...options });
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=query-visitors.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-visitors.mjs","sourceRoot":"","sources":["../src/resources/query-visitors.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;;;;OAKG;IACH,IAAI,CAAC,KAA6B,EAAE,OAAwB;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED;;;;OAIG;IACH,YAAY,CAAC,OAAwB;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sCAAsC,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;IAED;;;;;OAKG;IACH,aAAa,CACX,KAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wCAAwC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;CACF"}
|
|
@@ -3,41 +3,60 @@ import { APIPromise } from "../core/api-promise.mjs";
|
|
|
3
3
|
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
4
|
export declare class ReportBranding extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
* Get the organization logo shown on Dashboards
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
6
|
+
* Get the organization report branding: the logo shown on Dashboards,
|
|
7
|
+
* presentations, and PDF reports, and the brand color printed on PDF reports.
|
|
8
|
+
* Returns logo null when no logo is set and brandColor null when PDFs use the
|
|
9
|
+
* default navy. Pass includeDataUrl=false to omit the image data and read only its
|
|
10
|
+
* format, dimensions, size, and update time. Change the color with PATCH
|
|
11
|
+
* /rest/v1/report-branding/colors. Requires API-key scope or current OAuth user
|
|
12
|
+
* permission: web-analytics:view or organization:manage-report-branding
|
|
11
13
|
*/
|
|
12
14
|
retrieve(query?: ReportBrandingRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<ReportBrandingRetrieveResponse>;
|
|
13
15
|
/**
|
|
14
|
-
* Replace the organization logo used on Dashboards and
|
|
15
|
-
* contentType and base64 data for a PNG, JPEG, or WebP image of at
|
|
16
|
-
* bytes and 4096 pixels in each dimension. The bytes must match
|
|
17
|
-
* is not accepted, so rasterize vector logos first.
|
|
18
|
-
*
|
|
19
|
-
*
|
|
16
|
+
* Replace the organization logo used on Dashboards, presentations, and PDF
|
|
17
|
+
* reports. Send contentType and base64 data for a PNG, JPEG, or WebP image of at
|
|
18
|
+
* most 524288 bytes and 4096 pixels in each dimension. The bytes must match
|
|
19
|
+
* contentType; SVG is not accepted, so rasterize vector logos first. The brand
|
|
20
|
+
* color is unchanged. Requires API-key scope or current OAuth user permission:
|
|
21
|
+
* organization:manage-report-branding
|
|
20
22
|
*/
|
|
21
23
|
replace(body: ReportBrandingReplaceParams, options?: RequestOptions): APIPromise<ReportBrandingReplaceResponse>;
|
|
22
24
|
/**
|
|
23
|
-
* Remove the organization logo from Dashboards and
|
|
24
|
-
* no logo is set.
|
|
25
|
-
*
|
|
26
|
-
* user permission: organization:manage-report-branding
|
|
25
|
+
* Remove the organization logo from Dashboards, presentations, and PDF reports.
|
|
26
|
+
* Succeeds when no logo is set. The brand color is kept; clear it with PATCH
|
|
27
|
+
* /rest/v1/report-branding/colors and brandColor null. Requires API-key scope or
|
|
28
|
+
* current OAuth user permission: organization:manage-report-branding
|
|
27
29
|
*/
|
|
28
30
|
delete(options?: RequestOptions): APIPromise<ReportBrandingDeleteResponse>;
|
|
31
|
+
/**
|
|
32
|
+
* Set the brand color printed on PDF reports for the header rule, table headers,
|
|
33
|
+
* summary band, and (when dark enough for text) headings. Send brandColor as
|
|
34
|
+
* #RRGGBB in either case (it is stored and returned lowercase), or null to return
|
|
35
|
+
* to the Ours Privacy default navy; the logo is unchanged. New PDFs use the color
|
|
36
|
+
* right away. Read it back with GET /rest/v1/report-branding/logo. Requires
|
|
37
|
+
* API-key scope or current OAuth user permission:
|
|
38
|
+
* organization:manage-report-branding
|
|
39
|
+
*/
|
|
40
|
+
update(body: ReportBrandingUpdateParams, options?: RequestOptions): APIPromise<ReportBrandingUpdateResponse>;
|
|
29
41
|
}
|
|
30
42
|
export interface ReportBrandingRetrieveResponse {
|
|
31
43
|
/**
|
|
32
|
-
*
|
|
33
|
-
*
|
|
44
|
+
* Brand color as lowercase #rrggbb, printed on PDF reports for the header rule,
|
|
45
|
+
* table headers, summary band, and (when dark enough for text) headings, or null
|
|
46
|
+
* when PDFs use the Ours Privacy default navy. Independent of the logo: removing
|
|
47
|
+
* the logo keeps it.
|
|
48
|
+
*/
|
|
49
|
+
brandColor: string | null;
|
|
50
|
+
/**
|
|
51
|
+
* Organization logo shown on Dashboards, presentations, and PDF reports, or null
|
|
52
|
+
* when none is set.
|
|
34
53
|
*/
|
|
35
54
|
logo: ReportBrandingRetrieveResponse.Logo | null;
|
|
36
55
|
}
|
|
37
56
|
export declare namespace ReportBrandingRetrieveResponse {
|
|
38
57
|
/**
|
|
39
|
-
* Organization logo shown on Dashboards and
|
|
40
|
-
* set.
|
|
58
|
+
* Organization logo shown on Dashboards, presentations, and PDF reports, or null
|
|
59
|
+
* when none is set.
|
|
41
60
|
*/
|
|
42
61
|
interface Logo {
|
|
43
62
|
/**
|
|
@@ -64,15 +83,22 @@ export declare namespace ReportBrandingRetrieveResponse {
|
|
|
64
83
|
}
|
|
65
84
|
export interface ReportBrandingReplaceResponse {
|
|
66
85
|
/**
|
|
67
|
-
*
|
|
68
|
-
*
|
|
86
|
+
* Brand color as lowercase #rrggbb, printed on PDF reports for the header rule,
|
|
87
|
+
* table headers, summary band, and (when dark enough for text) headings, or null
|
|
88
|
+
* when PDFs use the Ours Privacy default navy. Independent of the logo: removing
|
|
89
|
+
* the logo keeps it.
|
|
90
|
+
*/
|
|
91
|
+
brandColor: string | null;
|
|
92
|
+
/**
|
|
93
|
+
* Organization logo shown on Dashboards, presentations, and PDF reports, or null
|
|
94
|
+
* when none is set.
|
|
69
95
|
*/
|
|
70
96
|
logo: ReportBrandingReplaceResponse.Logo | null;
|
|
71
97
|
}
|
|
72
98
|
export declare namespace ReportBrandingReplaceResponse {
|
|
73
99
|
/**
|
|
74
|
-
* Organization logo shown on Dashboards and
|
|
75
|
-
* set.
|
|
100
|
+
* Organization logo shown on Dashboards, presentations, and PDF reports, or null
|
|
101
|
+
* when none is set.
|
|
76
102
|
*/
|
|
77
103
|
interface Logo {
|
|
78
104
|
/**
|
|
@@ -99,15 +125,64 @@ export declare namespace ReportBrandingReplaceResponse {
|
|
|
99
125
|
}
|
|
100
126
|
export interface ReportBrandingDeleteResponse {
|
|
101
127
|
/**
|
|
102
|
-
*
|
|
103
|
-
*
|
|
128
|
+
* Brand color as lowercase #rrggbb, printed on PDF reports for the header rule,
|
|
129
|
+
* table headers, summary band, and (when dark enough for text) headings, or null
|
|
130
|
+
* when PDFs use the Ours Privacy default navy. Independent of the logo: removing
|
|
131
|
+
* the logo keeps it.
|
|
132
|
+
*/
|
|
133
|
+
brandColor: string | null;
|
|
134
|
+
/**
|
|
135
|
+
* Organization logo shown on Dashboards, presentations, and PDF reports, or null
|
|
136
|
+
* when none is set.
|
|
104
137
|
*/
|
|
105
138
|
logo: ReportBrandingDeleteResponse.Logo | null;
|
|
106
139
|
}
|
|
107
140
|
export declare namespace ReportBrandingDeleteResponse {
|
|
108
141
|
/**
|
|
109
|
-
* Organization logo shown on Dashboards and
|
|
110
|
-
* set.
|
|
142
|
+
* Organization logo shown on Dashboards, presentations, and PDF reports, or null
|
|
143
|
+
* when none is set.
|
|
144
|
+
*/
|
|
145
|
+
interface Logo {
|
|
146
|
+
/**
|
|
147
|
+
* Decoded image size in bytes.
|
|
148
|
+
*/
|
|
149
|
+
byteSize: number;
|
|
150
|
+
contentType: 'image/png' | 'image/jpeg' | 'image/webp';
|
|
151
|
+
/**
|
|
152
|
+
* Image height in pixels.
|
|
153
|
+
*/
|
|
154
|
+
height: number;
|
|
155
|
+
updatedAt: string;
|
|
156
|
+
updatedByUserId: string;
|
|
157
|
+
/**
|
|
158
|
+
* Image width in pixels.
|
|
159
|
+
*/
|
|
160
|
+
width: number;
|
|
161
|
+
/**
|
|
162
|
+
* data: URL containing the base64 image. Returned by GET unless includeDataUrl is
|
|
163
|
+
* false; omitted from write responses.
|
|
164
|
+
*/
|
|
165
|
+
dataUrl?: string;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
export interface ReportBrandingUpdateResponse {
|
|
169
|
+
/**
|
|
170
|
+
* Brand color as lowercase #rrggbb, printed on PDF reports for the header rule,
|
|
171
|
+
* table headers, summary band, and (when dark enough for text) headings, or null
|
|
172
|
+
* when PDFs use the Ours Privacy default navy. Independent of the logo: removing
|
|
173
|
+
* the logo keeps it.
|
|
174
|
+
*/
|
|
175
|
+
brandColor: string | null;
|
|
176
|
+
/**
|
|
177
|
+
* Organization logo shown on Dashboards, presentations, and PDF reports, or null
|
|
178
|
+
* when none is set.
|
|
179
|
+
*/
|
|
180
|
+
logo: ReportBrandingUpdateResponse.Logo | null;
|
|
181
|
+
}
|
|
182
|
+
export declare namespace ReportBrandingUpdateResponse {
|
|
183
|
+
/**
|
|
184
|
+
* Organization logo shown on Dashboards, presentations, and PDF reports, or null
|
|
185
|
+
* when none is set.
|
|
111
186
|
*/
|
|
112
187
|
interface Logo {
|
|
113
188
|
/**
|
|
@@ -151,7 +226,16 @@ export interface ReportBrandingReplaceParams {
|
|
|
151
226
|
*/
|
|
152
227
|
data: string;
|
|
153
228
|
}
|
|
229
|
+
export interface ReportBrandingUpdateParams {
|
|
230
|
+
/**
|
|
231
|
+
* Brand color as #RRGGBB in either case; it is stored and returned lowercase.
|
|
232
|
+
* Needs at least 3:1 contrast against white so it stays readable on the page;
|
|
233
|
+
* lighter colors are rejected. Send null to return to the Ours Privacy default
|
|
234
|
+
* navy; omit it to leave the color unchanged.
|
|
235
|
+
*/
|
|
236
|
+
brandColor?: string | null;
|
|
237
|
+
}
|
|
154
238
|
export declare namespace ReportBranding {
|
|
155
|
-
export { type ReportBrandingRetrieveResponse as ReportBrandingRetrieveResponse, type ReportBrandingReplaceResponse as ReportBrandingReplaceResponse, type ReportBrandingDeleteResponse as ReportBrandingDeleteResponse, type ReportBrandingRetrieveParams as ReportBrandingRetrieveParams, type ReportBrandingReplaceParams as ReportBrandingReplaceParams, };
|
|
239
|
+
export { type ReportBrandingRetrieveResponse as ReportBrandingRetrieveResponse, type ReportBrandingReplaceResponse as ReportBrandingReplaceResponse, type ReportBrandingDeleteResponse as ReportBrandingDeleteResponse, type ReportBrandingUpdateResponse as ReportBrandingUpdateResponse, type ReportBrandingRetrieveParams as ReportBrandingRetrieveParams, type ReportBrandingReplaceParams as ReportBrandingReplaceParams, type ReportBrandingUpdateParams as ReportBrandingUpdateParams, };
|
|
156
240
|
}
|
|
157
241
|
//# sourceMappingURL=report-branding.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report-branding.d.mts","sourceRoot":"","sources":["../src/resources/report-branding.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAE7D,qBAAa,cAAe,SAAQ,WAAW;IAC7C
|
|
1
|
+
{"version":3,"file":"report-branding.d.mts","sourceRoot":"","sources":["../src/resources/report-branding.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAE7D,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;OAQG;IACH,QAAQ,CACN,KAAK,GAAE,4BAA4B,GAAG,IAAI,GAAG,SAAc,EAC3D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,8BAA8B,CAAC;IAI7C;;;;;;;OAOG;IACH,OAAO,CACL,IAAI,EAAE,2BAA2B,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,6BAA6B,CAAC;IAI5C;;;;;OAKG;IACH,MAAM,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,4BAA4B,CAAC;IAI1E;;;;;;;;OAQ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A0B;IACzC;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -3,41 +3,60 @@ import { APIPromise } from "../core/api-promise.js";
|
|
|
3
3
|
import { RequestOptions } from "../internal/request-options.js";
|
|
4
4
|
export declare class ReportBranding extends APIResource {
|
|
5
5
|
/**
|
|
6
|
-
* Get the organization logo shown on Dashboards
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
6
|
+
* Get the organization report branding: the logo shown on Dashboards,
|
|
7
|
+
* presentations, and PDF reports, and the brand color printed on PDF reports.
|
|
8
|
+
* Returns logo null when no logo is set and brandColor null when PDFs use the
|
|
9
|
+
* default navy. Pass includeDataUrl=false to omit the image data and read only its
|
|
10
|
+
* format, dimensions, size, and update time. Change the color with PATCH
|
|
11
|
+
* /rest/v1/report-branding/colors. Requires API-key scope or current OAuth user
|
|
12
|
+
* permission: web-analytics:view or organization:manage-report-branding
|
|
11
13
|
*/
|
|
12
14
|
retrieve(query?: ReportBrandingRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<ReportBrandingRetrieveResponse>;
|
|
13
15
|
/**
|
|
14
|
-
* Replace the organization logo used on Dashboards and
|
|
15
|
-
* contentType and base64 data for a PNG, JPEG, or WebP image of at
|
|
16
|
-
* bytes and 4096 pixels in each dimension. The bytes must match
|
|
17
|
-
* is not accepted, so rasterize vector logos first.
|
|
18
|
-
*
|
|
19
|
-
*
|
|
16
|
+
* Replace the organization logo used on Dashboards, presentations, and PDF
|
|
17
|
+
* reports. Send contentType and base64 data for a PNG, JPEG, or WebP image of at
|
|
18
|
+
* most 524288 bytes and 4096 pixels in each dimension. The bytes must match
|
|
19
|
+
* contentType; SVG is not accepted, so rasterize vector logos first. The brand
|
|
20
|
+
* color is unchanged. Requires API-key scope or current OAuth user permission:
|
|
21
|
+
* organization:manage-report-branding
|
|
20
22
|
*/
|
|
21
23
|
replace(body: ReportBrandingReplaceParams, options?: RequestOptions): APIPromise<ReportBrandingReplaceResponse>;
|
|
22
24
|
/**
|
|
23
|
-
* Remove the organization logo from Dashboards and
|
|
24
|
-
* no logo is set.
|
|
25
|
-
*
|
|
26
|
-
* user permission: organization:manage-report-branding
|
|
25
|
+
* Remove the organization logo from Dashboards, presentations, and PDF reports.
|
|
26
|
+
* Succeeds when no logo is set. The brand color is kept; clear it with PATCH
|
|
27
|
+
* /rest/v1/report-branding/colors and brandColor null. Requires API-key scope or
|
|
28
|
+
* current OAuth user permission: organization:manage-report-branding
|
|
27
29
|
*/
|
|
28
30
|
delete(options?: RequestOptions): APIPromise<ReportBrandingDeleteResponse>;
|
|
31
|
+
/**
|
|
32
|
+
* Set the brand color printed on PDF reports for the header rule, table headers,
|
|
33
|
+
* summary band, and (when dark enough for text) headings. Send brandColor as
|
|
34
|
+
* #RRGGBB in either case (it is stored and returned lowercase), or null to return
|
|
35
|
+
* to the Ours Privacy default navy; the logo is unchanged. New PDFs use the color
|
|
36
|
+
* right away. Read it back with GET /rest/v1/report-branding/logo. Requires
|
|
37
|
+
* API-key scope or current OAuth user permission:
|
|
38
|
+
* organization:manage-report-branding
|
|
39
|
+
*/
|
|
40
|
+
update(body: ReportBrandingUpdateParams, options?: RequestOptions): APIPromise<ReportBrandingUpdateResponse>;
|
|
29
41
|
}
|
|
30
42
|
export interface ReportBrandingRetrieveResponse {
|
|
31
43
|
/**
|
|
32
|
-
*
|
|
33
|
-
*
|
|
44
|
+
* Brand color as lowercase #rrggbb, printed on PDF reports for the header rule,
|
|
45
|
+
* table headers, summary band, and (when dark enough for text) headings, or null
|
|
46
|
+
* when PDFs use the Ours Privacy default navy. Independent of the logo: removing
|
|
47
|
+
* the logo keeps it.
|
|
48
|
+
*/
|
|
49
|
+
brandColor: string | null;
|
|
50
|
+
/**
|
|
51
|
+
* Organization logo shown on Dashboards, presentations, and PDF reports, or null
|
|
52
|
+
* when none is set.
|
|
34
53
|
*/
|
|
35
54
|
logo: ReportBrandingRetrieveResponse.Logo | null;
|
|
36
55
|
}
|
|
37
56
|
export declare namespace ReportBrandingRetrieveResponse {
|
|
38
57
|
/**
|
|
39
|
-
* Organization logo shown on Dashboards and
|
|
40
|
-
* set.
|
|
58
|
+
* Organization logo shown on Dashboards, presentations, and PDF reports, or null
|
|
59
|
+
* when none is set.
|
|
41
60
|
*/
|
|
42
61
|
interface Logo {
|
|
43
62
|
/**
|
|
@@ -64,15 +83,22 @@ export declare namespace ReportBrandingRetrieveResponse {
|
|
|
64
83
|
}
|
|
65
84
|
export interface ReportBrandingReplaceResponse {
|
|
66
85
|
/**
|
|
67
|
-
*
|
|
68
|
-
*
|
|
86
|
+
* Brand color as lowercase #rrggbb, printed on PDF reports for the header rule,
|
|
87
|
+
* table headers, summary band, and (when dark enough for text) headings, or null
|
|
88
|
+
* when PDFs use the Ours Privacy default navy. Independent of the logo: removing
|
|
89
|
+
* the logo keeps it.
|
|
90
|
+
*/
|
|
91
|
+
brandColor: string | null;
|
|
92
|
+
/**
|
|
93
|
+
* Organization logo shown on Dashboards, presentations, and PDF reports, or null
|
|
94
|
+
* when none is set.
|
|
69
95
|
*/
|
|
70
96
|
logo: ReportBrandingReplaceResponse.Logo | null;
|
|
71
97
|
}
|
|
72
98
|
export declare namespace ReportBrandingReplaceResponse {
|
|
73
99
|
/**
|
|
74
|
-
* Organization logo shown on Dashboards and
|
|
75
|
-
* set.
|
|
100
|
+
* Organization logo shown on Dashboards, presentations, and PDF reports, or null
|
|
101
|
+
* when none is set.
|
|
76
102
|
*/
|
|
77
103
|
interface Logo {
|
|
78
104
|
/**
|
|
@@ -99,15 +125,64 @@ export declare namespace ReportBrandingReplaceResponse {
|
|
|
99
125
|
}
|
|
100
126
|
export interface ReportBrandingDeleteResponse {
|
|
101
127
|
/**
|
|
102
|
-
*
|
|
103
|
-
*
|
|
128
|
+
* Brand color as lowercase #rrggbb, printed on PDF reports for the header rule,
|
|
129
|
+
* table headers, summary band, and (when dark enough for text) headings, or null
|
|
130
|
+
* when PDFs use the Ours Privacy default navy. Independent of the logo: removing
|
|
131
|
+
* the logo keeps it.
|
|
132
|
+
*/
|
|
133
|
+
brandColor: string | null;
|
|
134
|
+
/**
|
|
135
|
+
* Organization logo shown on Dashboards, presentations, and PDF reports, or null
|
|
136
|
+
* when none is set.
|
|
104
137
|
*/
|
|
105
138
|
logo: ReportBrandingDeleteResponse.Logo | null;
|
|
106
139
|
}
|
|
107
140
|
export declare namespace ReportBrandingDeleteResponse {
|
|
108
141
|
/**
|
|
109
|
-
* Organization logo shown on Dashboards and
|
|
110
|
-
* set.
|
|
142
|
+
* Organization logo shown on Dashboards, presentations, and PDF reports, or null
|
|
143
|
+
* when none is set.
|
|
144
|
+
*/
|
|
145
|
+
interface Logo {
|
|
146
|
+
/**
|
|
147
|
+
* Decoded image size in bytes.
|
|
148
|
+
*/
|
|
149
|
+
byteSize: number;
|
|
150
|
+
contentType: 'image/png' | 'image/jpeg' | 'image/webp';
|
|
151
|
+
/**
|
|
152
|
+
* Image height in pixels.
|
|
153
|
+
*/
|
|
154
|
+
height: number;
|
|
155
|
+
updatedAt: string;
|
|
156
|
+
updatedByUserId: string;
|
|
157
|
+
/**
|
|
158
|
+
* Image width in pixels.
|
|
159
|
+
*/
|
|
160
|
+
width: number;
|
|
161
|
+
/**
|
|
162
|
+
* data: URL containing the base64 image. Returned by GET unless includeDataUrl is
|
|
163
|
+
* false; omitted from write responses.
|
|
164
|
+
*/
|
|
165
|
+
dataUrl?: string;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
export interface ReportBrandingUpdateResponse {
|
|
169
|
+
/**
|
|
170
|
+
* Brand color as lowercase #rrggbb, printed on PDF reports for the header rule,
|
|
171
|
+
* table headers, summary band, and (when dark enough for text) headings, or null
|
|
172
|
+
* when PDFs use the Ours Privacy default navy. Independent of the logo: removing
|
|
173
|
+
* the logo keeps it.
|
|
174
|
+
*/
|
|
175
|
+
brandColor: string | null;
|
|
176
|
+
/**
|
|
177
|
+
* Organization logo shown on Dashboards, presentations, and PDF reports, or null
|
|
178
|
+
* when none is set.
|
|
179
|
+
*/
|
|
180
|
+
logo: ReportBrandingUpdateResponse.Logo | null;
|
|
181
|
+
}
|
|
182
|
+
export declare namespace ReportBrandingUpdateResponse {
|
|
183
|
+
/**
|
|
184
|
+
* Organization logo shown on Dashboards, presentations, and PDF reports, or null
|
|
185
|
+
* when none is set.
|
|
111
186
|
*/
|
|
112
187
|
interface Logo {
|
|
113
188
|
/**
|
|
@@ -151,7 +226,16 @@ export interface ReportBrandingReplaceParams {
|
|
|
151
226
|
*/
|
|
152
227
|
data: string;
|
|
153
228
|
}
|
|
229
|
+
export interface ReportBrandingUpdateParams {
|
|
230
|
+
/**
|
|
231
|
+
* Brand color as #RRGGBB in either case; it is stored and returned lowercase.
|
|
232
|
+
* Needs at least 3:1 contrast against white so it stays readable on the page;
|
|
233
|
+
* lighter colors are rejected. Send null to return to the Ours Privacy default
|
|
234
|
+
* navy; omit it to leave the color unchanged.
|
|
235
|
+
*/
|
|
236
|
+
brandColor?: string | null;
|
|
237
|
+
}
|
|
154
238
|
export declare namespace ReportBranding {
|
|
155
|
-
export { type ReportBrandingRetrieveResponse as ReportBrandingRetrieveResponse, type ReportBrandingReplaceResponse as ReportBrandingReplaceResponse, type ReportBrandingDeleteResponse as ReportBrandingDeleteResponse, type ReportBrandingRetrieveParams as ReportBrandingRetrieveParams, type ReportBrandingReplaceParams as ReportBrandingReplaceParams, };
|
|
239
|
+
export { type ReportBrandingRetrieveResponse as ReportBrandingRetrieveResponse, type ReportBrandingReplaceResponse as ReportBrandingReplaceResponse, type ReportBrandingDeleteResponse as ReportBrandingDeleteResponse, type ReportBrandingUpdateResponse as ReportBrandingUpdateResponse, type ReportBrandingRetrieveParams as ReportBrandingRetrieveParams, type ReportBrandingReplaceParams as ReportBrandingReplaceParams, type ReportBrandingUpdateParams as ReportBrandingUpdateParams, };
|
|
156
240
|
}
|
|
157
241
|
//# sourceMappingURL=report-branding.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report-branding.d.ts","sourceRoot":"","sources":["../src/resources/report-branding.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D,qBAAa,cAAe,SAAQ,WAAW;IAC7C
|
|
1
|
+
{"version":3,"file":"report-branding.d.ts","sourceRoot":"","sources":["../src/resources/report-branding.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;OAQG;IACH,QAAQ,CACN,KAAK,GAAE,4BAA4B,GAAG,IAAI,GAAG,SAAc,EAC3D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,8BAA8B,CAAC;IAI7C;;;;;;;OAOG;IACH,OAAO,CACL,IAAI,EAAE,2BAA2B,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,6BAA6B,CAAC;IAI5C;;;;;OAKG;IACH,MAAM,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,4BAA4B,CAAC;IAI1E;;;;;;;;OAQG;IACH,MAAM,CACJ,IAAI,EAAE,0BAA0B,EAChC,OAAO,C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