@oursprivacy/platform-sdk 1.69.0 → 1.70.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 +7 -0
- package/client.d.mts +5 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +5 -2
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.mts +2 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/locations.d.mts +653 -13
- package/resources/locations.d.mts.map +1 -1
- package/resources/locations.d.ts +653 -13
- package/resources/locations.d.ts.map +1 -1
- package/resources/locations.js +10 -3
- package/resources/locations.js.map +1 -1
- package/resources/locations.mjs +10 -3
- package/resources/locations.mjs.map +1 -1
- package/resources/query-dispatches.d.mts +241 -0
- package/resources/query-dispatches.d.mts.map +1 -0
- package/resources/query-dispatches.d.ts +241 -0
- package/resources/query-dispatches.d.ts.map +1 -0
- package/resources/query-dispatches.js +56 -0
- package/resources/query-dispatches.js.map +1 -0
- package/resources/query-dispatches.mjs +52 -0
- package/resources/query-dispatches.mjs.map +1 -0
- package/src/client.ts +25 -0
- package/src/resources/index.ts +11 -0
- package/src/resources/locations.ts +690 -12
- package/src/resources/query-dispatches.ts +323 -0
- 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,56 @@
|
|
|
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.QueryDispatches = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
class QueryDispatches extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Return the Query Dispatches query version, date-range limits, and breakdown
|
|
9
|
+
* limits. Requires the API-key scope `report:view-dispatch`. Requires API-key
|
|
10
|
+
* scope or current OAuth user permission: report:view-dispatch
|
|
11
|
+
*/
|
|
12
|
+
capabilities(options) {
|
|
13
|
+
return this._client.get('/rest/v1/query-dispatches/capabilities', options);
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Count dispatches to destinations, grouped by up to two of destination,
|
|
17
|
+
* destination type, status, reason, event name, source, or identifier, optionally
|
|
18
|
+
* per hour or day. Use it for dispatch health over a window (filter
|
|
19
|
+
* `destinationIds`, group by `STATUS` and `REASON`), dispatches per event and day
|
|
20
|
+
* (filter `eventNames`, `timeGrain: DAY`), or identifier coverage per destination.
|
|
21
|
+
* To diagnose delivery problems, group by `STATUS` and `REASON` rather than
|
|
22
|
+
* filtering to `FAILED`, since `NOT_SENT` also covers destination settings to fix.
|
|
23
|
+
* JSON-encode `input` and `breakdown` in the query string. Returns counts only,
|
|
24
|
+
* never dispatch payloads or visitor identifiers. A destination or source ID this
|
|
25
|
+
* account does not own returns 404. Requires the API-key scope
|
|
26
|
+
* `report:view-dispatch`. Requires API-key scope or current OAuth user permission:
|
|
27
|
+
* report:view-dispatch
|
|
28
|
+
*/
|
|
29
|
+
breakdown(query, options) {
|
|
30
|
+
return this._client.get('/rest/v1/query-dispatches/breakdown', { query, ...options });
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* List the values seen for one dispatch dimension in a date range, with dispatch
|
|
34
|
+
* counts, such as the failure reasons or event names to filter a breakdown by.
|
|
35
|
+
* Counts include test events; set `includeTestEvents` on the breakdown to match
|
|
36
|
+
* them. JSON-encode `input` in the query string. A destination ID this account
|
|
37
|
+
* does not own returns 404. Requires the API-key scope `report:view-dispatch`.
|
|
38
|
+
* Requires API-key scope or current OAuth user permission: report:view-dispatch
|
|
39
|
+
*/
|
|
40
|
+
facetValues(query, options) {
|
|
41
|
+
return this._client.get('/rest/v1/query-dispatches/facet-values', { query, ...options });
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Suggest the payload field paths and value types sent to destinations, from a
|
|
45
|
+
* sample of recent dispatches, to check which mapped fields a destination
|
|
46
|
+
* receives. Returns paths and types only, never values. JSON-encode the optional
|
|
47
|
+
* `input` in the query string. A destination ID this account does not own
|
|
48
|
+
* returns 404. Requires the API-key scope `report:view-dispatch`. Requires API-key
|
|
49
|
+
* scope or current OAuth user permission: report:view-dispatch
|
|
50
|
+
*/
|
|
51
|
+
propertySuggestions(query = {}, options) {
|
|
52
|
+
return this._client.get('/rest/v1/query-dispatches/property-suggestions', { query, ...options });
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
exports.QueryDispatches = QueryDispatches;
|
|
56
|
+
//# sourceMappingURL=query-dispatches.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-dispatches.js","sourceRoot":"","sources":["../src/resources/query-dispatches.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,eAAgB,SAAQ,sBAAW;IAC9C;;;;OAIG;IACH,YAAY,CAAC,OAAwB;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wCAAwC,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,SAAS,CACP,KAAmC,EACnC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qCAAqC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;IAED;;;;;;;OAOG;IACH,WAAW,CACT,KAAqC,EACrC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wCAAwC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;IAED;;;;;;;OAOG;IACH,mBAAmB,CACjB,QAAmE,EAAE,EACrE,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gDAAgD,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnG,CAAC;CACF;AA5DD,0CA4DC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
export class QueryDispatches extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Return the Query Dispatches query version, date-range limits, and breakdown
|
|
6
|
+
* limits. Requires the API-key scope `report:view-dispatch`. Requires API-key
|
|
7
|
+
* scope or current OAuth user permission: report:view-dispatch
|
|
8
|
+
*/
|
|
9
|
+
capabilities(options) {
|
|
10
|
+
return this._client.get('/rest/v1/query-dispatches/capabilities', options);
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Count dispatches to destinations, grouped by up to two of destination,
|
|
14
|
+
* destination type, status, reason, event name, source, or identifier, optionally
|
|
15
|
+
* per hour or day. Use it for dispatch health over a window (filter
|
|
16
|
+
* `destinationIds`, group by `STATUS` and `REASON`), dispatches per event and day
|
|
17
|
+
* (filter `eventNames`, `timeGrain: DAY`), or identifier coverage per destination.
|
|
18
|
+
* To diagnose delivery problems, group by `STATUS` and `REASON` rather than
|
|
19
|
+
* filtering to `FAILED`, since `NOT_SENT` also covers destination settings to fix.
|
|
20
|
+
* JSON-encode `input` and `breakdown` in the query string. Returns counts only,
|
|
21
|
+
* never dispatch payloads or visitor identifiers. A destination or source ID this
|
|
22
|
+
* account does not own returns 404. Requires the API-key scope
|
|
23
|
+
* `report:view-dispatch`. Requires API-key scope or current OAuth user permission:
|
|
24
|
+
* report:view-dispatch
|
|
25
|
+
*/
|
|
26
|
+
breakdown(query, options) {
|
|
27
|
+
return this._client.get('/rest/v1/query-dispatches/breakdown', { query, ...options });
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* List the values seen for one dispatch dimension in a date range, with dispatch
|
|
31
|
+
* counts, such as the failure reasons or event names to filter a breakdown by.
|
|
32
|
+
* Counts include test events; set `includeTestEvents` on the breakdown to match
|
|
33
|
+
* them. JSON-encode `input` in the query string. A destination ID this account
|
|
34
|
+
* does not own returns 404. Requires the API-key scope `report:view-dispatch`.
|
|
35
|
+
* Requires API-key scope or current OAuth user permission: report:view-dispatch
|
|
36
|
+
*/
|
|
37
|
+
facetValues(query, options) {
|
|
38
|
+
return this._client.get('/rest/v1/query-dispatches/facet-values', { query, ...options });
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Suggest the payload field paths and value types sent to destinations, from a
|
|
42
|
+
* sample of recent dispatches, to check which mapped fields a destination
|
|
43
|
+
* receives. Returns paths and types only, never values. JSON-encode the optional
|
|
44
|
+
* `input` in the query string. A destination ID this account does not own
|
|
45
|
+
* returns 404. Requires the API-key scope `report:view-dispatch`. Requires API-key
|
|
46
|
+
* scope or current OAuth user permission: report:view-dispatch
|
|
47
|
+
*/
|
|
48
|
+
propertySuggestions(query = {}, options) {
|
|
49
|
+
return this._client.get('/rest/v1/query-dispatches/property-suggestions', { query, ...options });
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=query-dispatches.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-dispatches.mjs","sourceRoot":"","sources":["../src/resources/query-dispatches.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C,MAAM,OAAO,eAAgB,SAAQ,WAAW;IAC9C;;;;OAIG;IACH,YAAY,CAAC,OAAwB;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wCAAwC,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,SAAS,CACP,KAAmC,EACnC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qCAAqC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;IAED;;;;;;;OAOG;IACH,WAAW,CACT,KAAqC,EACrC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wCAAwC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;IAED;;;;;;;OAOG;IACH,mBAAmB,CACjB,QAAmE,EAAE,EACrE,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gDAAgD,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnG,CAAC;CACF"}
|
package/src/client.ts
CHANGED
|
@@ -307,6 +307,7 @@ import {
|
|
|
307
307
|
LocationEmbedCodeParams,
|
|
308
308
|
LocationEmbedCodeResponse,
|
|
309
309
|
LocationListResponse,
|
|
310
|
+
LocationRetrieveResponse,
|
|
310
311
|
LocationUpdateParams,
|
|
311
312
|
LocationUpdateResponse,
|
|
312
313
|
Locations,
|
|
@@ -347,6 +348,16 @@ import {
|
|
|
347
348
|
PersonalizationPropertyUpdateParams,
|
|
348
349
|
PersonalizationPropertyUpdateResponse,
|
|
349
350
|
} from './resources/personalization-properties';
|
|
351
|
+
import {
|
|
352
|
+
QueryDispatchBreakdownParams,
|
|
353
|
+
QueryDispatchBreakdownResponse,
|
|
354
|
+
QueryDispatchCapabilitiesResponse,
|
|
355
|
+
QueryDispatchFacetValuesParams,
|
|
356
|
+
QueryDispatchFacetValuesResponse,
|
|
357
|
+
QueryDispatchPropertySuggestionsParams,
|
|
358
|
+
QueryDispatchPropertySuggestionsResponse,
|
|
359
|
+
QueryDispatches,
|
|
360
|
+
} from './resources/query-dispatches';
|
|
350
361
|
import {
|
|
351
362
|
QueryEventCapabilitiesResponse,
|
|
352
363
|
QueryEventCatalogResponse,
|
|
@@ -1433,6 +1444,7 @@ export class OursPrivacyPlatform {
|
|
|
1433
1444
|
reportBranding: API.ReportBranding = new API.ReportBranding(this);
|
|
1434
1445
|
attributionReports: API.AttributionReports = new API.AttributionReports(this);
|
|
1435
1446
|
queryEvents: API.QueryEvents = new API.QueryEvents(this);
|
|
1447
|
+
queryDispatches: API.QueryDispatches = new API.QueryDispatches(this);
|
|
1436
1448
|
queryVisitors: API.QueryVisitors = new API.QueryVisitors(this);
|
|
1437
1449
|
insights: API.Insights = new API.Insights(this);
|
|
1438
1450
|
journeyFlows: API.JourneyFlows = new API.JourneyFlows(this);
|
|
@@ -1480,6 +1492,7 @@ OursPrivacyPlatform.Dashboards = Dashboards;
|
|
|
1480
1492
|
OursPrivacyPlatform.ReportBranding = ReportBranding;
|
|
1481
1493
|
OursPrivacyPlatform.AttributionReports = AttributionReports;
|
|
1482
1494
|
OursPrivacyPlatform.QueryEvents = QueryEvents;
|
|
1495
|
+
OursPrivacyPlatform.QueryDispatches = QueryDispatches;
|
|
1483
1496
|
OursPrivacyPlatform.QueryVisitors = QueryVisitors;
|
|
1484
1497
|
OursPrivacyPlatform.Insights = Insights;
|
|
1485
1498
|
OursPrivacyPlatform.JourneyFlows = JourneyFlows;
|
|
@@ -1694,6 +1707,7 @@ export declare namespace OursPrivacyPlatform {
|
|
|
1694
1707
|
Locations as Locations,
|
|
1695
1708
|
type LocationListResponse as LocationListResponse,
|
|
1696
1709
|
type LocationCreateResponse as LocationCreateResponse,
|
|
1710
|
+
type LocationRetrieveResponse as LocationRetrieveResponse,
|
|
1697
1711
|
type LocationUpdateResponse as LocationUpdateResponse,
|
|
1698
1712
|
type LocationEmbedCodeResponse as LocationEmbedCodeResponse,
|
|
1699
1713
|
type LocationCreateParams as LocationCreateParams,
|
|
@@ -2097,6 +2111,17 @@ export declare namespace OursPrivacyPlatform {
|
|
|
2097
2111
|
type QueryEventExportParams as QueryEventExportParams,
|
|
2098
2112
|
};
|
|
2099
2113
|
|
|
2114
|
+
export {
|
|
2115
|
+
QueryDispatches as QueryDispatches,
|
|
2116
|
+
type QueryDispatchCapabilitiesResponse as QueryDispatchCapabilitiesResponse,
|
|
2117
|
+
type QueryDispatchBreakdownResponse as QueryDispatchBreakdownResponse,
|
|
2118
|
+
type QueryDispatchFacetValuesResponse as QueryDispatchFacetValuesResponse,
|
|
2119
|
+
type QueryDispatchPropertySuggestionsResponse as QueryDispatchPropertySuggestionsResponse,
|
|
2120
|
+
type QueryDispatchBreakdownParams as QueryDispatchBreakdownParams,
|
|
2121
|
+
type QueryDispatchFacetValuesParams as QueryDispatchFacetValuesParams,
|
|
2122
|
+
type QueryDispatchPropertySuggestionsParams as QueryDispatchPropertySuggestionsParams,
|
|
2123
|
+
};
|
|
2124
|
+
|
|
2100
2125
|
export {
|
|
2101
2126
|
QueryVisitors as QueryVisitors,
|
|
2102
2127
|
type QueryVisitorListResponse as QueryVisitorListResponse,
|
package/src/resources/index.ts
CHANGED
|
@@ -286,6 +286,7 @@ export {
|
|
|
286
286
|
Locations,
|
|
287
287
|
type LocationListResponse,
|
|
288
288
|
type LocationCreateResponse,
|
|
289
|
+
type LocationRetrieveResponse,
|
|
289
290
|
type LocationUpdateResponse,
|
|
290
291
|
type LocationEmbedCodeResponse,
|
|
291
292
|
type LocationCreateParams,
|
|
@@ -328,6 +329,16 @@ export {
|
|
|
328
329
|
type PersonalizationPropertyUpdateParams,
|
|
329
330
|
type PersonalizationPropertyListResponsesCursor,
|
|
330
331
|
} from './personalization-properties';
|
|
332
|
+
export {
|
|
333
|
+
QueryDispatches,
|
|
334
|
+
type QueryDispatchCapabilitiesResponse,
|
|
335
|
+
type QueryDispatchBreakdownResponse,
|
|
336
|
+
type QueryDispatchFacetValuesResponse,
|
|
337
|
+
type QueryDispatchPropertySuggestionsResponse,
|
|
338
|
+
type QueryDispatchBreakdownParams,
|
|
339
|
+
type QueryDispatchFacetValuesParams,
|
|
340
|
+
type QueryDispatchPropertySuggestionsParams,
|
|
341
|
+
} from './query-dispatches';
|
|
331
342
|
export {
|
|
332
343
|
QueryEvents,
|
|
333
344
|
type QueryEventListResponse,
|