zorihq 0.10.1 → 0.11.1
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 +12 -0
- package/README.md +13 -20
- package/package.json +1 -1
- package/resources/v1/auth.d.mts +33 -0
- package/resources/v1/auth.d.mts.map +1 -0
- package/resources/v1/auth.d.ts +33 -0
- package/resources/v1/auth.d.ts.map +1 -0
- package/resources/v1/auth.js +23 -0
- package/resources/v1/auth.js.map +1 -0
- package/resources/v1/auth.mjs +19 -0
- package/resources/v1/auth.mjs.map +1 -0
- package/resources/v1/index.d.mts +2 -1
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +2 -1
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js +7 -5
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs +2 -1
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/payment-providers/index.d.mts +3 -0
- package/resources/v1/payment-providers/index.d.mts.map +1 -0
- package/resources/v1/payment-providers/index.d.ts +3 -0
- package/resources/v1/payment-providers/index.d.ts.map +1 -0
- package/resources/v1/payment-providers/index.js +9 -0
- package/resources/v1/payment-providers/index.js.map +1 -0
- package/resources/v1/payment-providers/index.mjs +4 -0
- package/resources/v1/payment-providers/index.mjs.map +1 -0
- package/resources/v1/payment-providers/payment-providers.d.mts +154 -0
- package/resources/v1/payment-providers/payment-providers.d.mts.map +1 -0
- package/resources/v1/payment-providers/payment-providers.d.ts +154 -0
- package/resources/v1/payment-providers/payment-providers.d.ts.map +1 -0
- package/resources/v1/payment-providers/payment-providers.js +98 -0
- package/resources/v1/payment-providers/payment-providers.js.map +1 -0
- package/resources/v1/payment-providers/payment-providers.mjs +93 -0
- package/resources/v1/payment-providers/payment-providers.mjs.map +1 -0
- package/resources/v1/payment-providers/stripe/app.d.mts +39 -0
- package/resources/v1/payment-providers/stripe/app.d.mts.map +1 -0
- package/resources/v1/payment-providers/stripe/app.d.ts +39 -0
- package/resources/v1/payment-providers/stripe/app.d.ts.map +1 -0
- package/resources/v1/payment-providers/stripe/app.js +24 -0
- package/resources/v1/payment-providers/stripe/app.js.map +1 -0
- package/resources/v1/payment-providers/stripe/app.mjs +20 -0
- package/resources/v1/payment-providers/stripe/app.mjs.map +1 -0
- package/resources/v1/payment-providers/stripe/index.d.mts +3 -0
- package/resources/v1/payment-providers/stripe/index.d.mts.map +1 -0
- package/resources/v1/payment-providers/stripe/index.d.ts +3 -0
- package/resources/v1/payment-providers/stripe/index.d.ts.map +1 -0
- package/resources/v1/payment-providers/stripe/index.js +9 -0
- package/resources/v1/payment-providers/stripe/index.js.map +1 -0
- package/resources/v1/payment-providers/stripe/index.mjs +4 -0
- package/resources/v1/payment-providers/stripe/index.mjs.map +1 -0
- package/resources/v1/payment-providers/stripe/stripe.d.mts +10 -0
- package/resources/v1/payment-providers/stripe/stripe.d.mts.map +1 -0
- package/resources/v1/payment-providers/stripe/stripe.d.ts +10 -0
- package/resources/v1/payment-providers/stripe/stripe.d.ts.map +1 -0
- package/resources/v1/payment-providers/stripe/stripe.js +17 -0
- package/resources/v1/payment-providers/stripe/stripe.js.map +1 -0
- package/resources/v1/payment-providers/stripe/stripe.mjs +12 -0
- package/resources/v1/payment-providers/stripe/stripe.mjs.map +1 -0
- package/resources/v1/payment-providers/stripe.d.mts +2 -0
- package/resources/v1/payment-providers/stripe.d.mts.map +1 -0
- package/resources/v1/payment-providers/stripe.d.ts +2 -0
- package/resources/v1/payment-providers/stripe.d.ts.map +1 -0
- package/resources/v1/payment-providers/stripe.js +6 -0
- package/resources/v1/payment-providers/stripe.js.map +1 -0
- package/resources/v1/payment-providers/stripe.mjs +3 -0
- package/resources/v1/payment-providers/stripe.mjs.map +1 -0
- package/resources/v1/payment-providers.d.mts +1 -149
- package/resources/v1/payment-providers.d.mts.map +1 -1
- package/resources/v1/payment-providers.d.ts +1 -149
- package/resources/v1/payment-providers.d.ts.map +1 -1
- package/resources/v1/payment-providers.js +2 -86
- package/resources/v1/payment-providers.js.map +1 -1
- package/resources/v1/payment-providers.mjs +1 -84
- package/resources/v1/payment-providers.mjs.map +1 -1
- package/resources/v1/revenue/cohort.d.mts +84 -0
- package/resources/v1/revenue/cohort.d.mts.map +1 -0
- package/resources/v1/revenue/cohort.d.ts +84 -0
- package/resources/v1/revenue/cohort.d.ts.map +1 -0
- package/resources/v1/revenue/cohort.js +24 -0
- package/resources/v1/revenue/cohort.js.map +1 -0
- package/resources/v1/revenue/cohort.mjs +20 -0
- package/resources/v1/revenue/cohort.mjs.map +1 -0
- package/resources/v1/revenue/index.d.mts +1 -0
- package/resources/v1/revenue/index.d.mts.map +1 -1
- package/resources/v1/revenue/index.d.ts +1 -0
- package/resources/v1/revenue/index.d.ts.map +1 -1
- package/resources/v1/revenue/index.js +3 -1
- package/resources/v1/revenue/index.js.map +1 -1
- package/resources/v1/revenue/index.mjs +1 -0
- package/resources/v1/revenue/index.mjs.map +1 -1
- package/resources/v1/revenue/revenue.d.mts +15 -0
- package/resources/v1/revenue/revenue.d.mts.map +1 -1
- package/resources/v1/revenue/revenue.d.ts +15 -0
- package/resources/v1/revenue/revenue.d.ts.map +1 -1
- package/resources/v1/revenue/revenue.js +4 -0
- package/resources/v1/revenue/revenue.js.map +1 -1
- package/resources/v1/revenue/revenue.mjs +4 -0
- package/resources/v1/revenue/revenue.mjs.map +1 -1
- package/resources/v1/v1.d.mts +6 -2
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +6 -2
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js +6 -2
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs +6 -2
- package/resources/v1/v1.mjs.map +1 -1
- package/src/resources/v1/auth.ts +48 -0
- package/src/resources/v1/index.ts +2 -1
- package/src/resources/v1/payment-providers/index.ts +17 -0
- package/src/resources/v1/payment-providers/payment-providers.ts +238 -0
- package/src/resources/v1/payment-providers/stripe/app.ts +56 -0
- package/src/resources/v1/payment-providers/stripe/index.ts +4 -0
- package/src/resources/v1/payment-providers/stripe/stripe.ts +19 -0
- package/src/resources/v1/payment-providers/stripe.ts +3 -0
- package/src/resources/v1/payment-providers.ts +1 -228
- package/src/resources/v1/revenue/cohort.ts +111 -0
- package/src/resources/v1/revenue/index.ts +1 -0
- package/src/resources/v1/revenue/revenue.ts +23 -0
- package/src/resources/v1/v1.ts +26 -15
- 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,84 @@
|
|
|
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 Cohort extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Analyze revenue metrics for a specific cohort of visitors, including total
|
|
7
|
+
* revenue, conversion rates, and time to first purchase
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const response = await client.v1.revenue.cohort.getMetrics({
|
|
12
|
+
* project_id: 'project_id',
|
|
13
|
+
* visitor_ids: ['string'],
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
getMetrics(body: CohortGetMetricsParams, options?: RequestOptions): APIPromise<CohortGetMetricsResponse>;
|
|
18
|
+
}
|
|
19
|
+
export interface CohortGetMetricsResponse {
|
|
20
|
+
/**
|
|
21
|
+
* Customers with only visitor_id
|
|
22
|
+
*/
|
|
23
|
+
anonymous_customers?: number;
|
|
24
|
+
avg_order_value?: number;
|
|
25
|
+
avg_payments_per_customer?: number;
|
|
26
|
+
avg_revenue_per_customer?: number;
|
|
27
|
+
avg_revenue_per_visitor?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Time metrics
|
|
30
|
+
*/
|
|
31
|
+
avg_time_to_first_purchase_hours?: number;
|
|
32
|
+
/**
|
|
33
|
+
* paying_customers / total_customers \* 100
|
|
34
|
+
*/
|
|
35
|
+
conversion_rate?: number;
|
|
36
|
+
currency?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Customer identity mapping
|
|
39
|
+
*/
|
|
40
|
+
identified_customers?: number;
|
|
41
|
+
/**
|
|
42
|
+
* Median time to first payment
|
|
43
|
+
*/
|
|
44
|
+
median_time_to_first_purchase_hours?: number;
|
|
45
|
+
/**
|
|
46
|
+
* Unique customer identities who made payments
|
|
47
|
+
*/
|
|
48
|
+
paying_customers?: number;
|
|
49
|
+
/**
|
|
50
|
+
* Total unique customer identities in cohort
|
|
51
|
+
*/
|
|
52
|
+
total_customers?: number;
|
|
53
|
+
/**
|
|
54
|
+
* Payment metrics
|
|
55
|
+
*/
|
|
56
|
+
total_payments?: number;
|
|
57
|
+
/**
|
|
58
|
+
* Revenue metrics
|
|
59
|
+
*/
|
|
60
|
+
total_revenue?: number;
|
|
61
|
+
/**
|
|
62
|
+
* Cohort size
|
|
63
|
+
*/
|
|
64
|
+
total_visitors?: number;
|
|
65
|
+
/**
|
|
66
|
+
* paying_customers / total_visitors \* 100
|
|
67
|
+
*/
|
|
68
|
+
visitor_conversion_rate?: number;
|
|
69
|
+
}
|
|
70
|
+
export interface CohortGetMetricsParams {
|
|
71
|
+
project_id: string;
|
|
72
|
+
/**
|
|
73
|
+
* List of visitor IDs to analyze
|
|
74
|
+
*/
|
|
75
|
+
visitor_ids: Array<string>;
|
|
76
|
+
/**
|
|
77
|
+
* Optional: filter by payment date
|
|
78
|
+
*/
|
|
79
|
+
time_range?: 'last_hour' | 'today' | 'last_7_days' | 'last_30_days' | 'last_90_days';
|
|
80
|
+
}
|
|
81
|
+
export declare namespace Cohort {
|
|
82
|
+
export { type CohortGetMetricsResponse as CohortGetMetricsResponse, type CohortGetMetricsParams as CohortGetMetricsParams, };
|
|
83
|
+
}
|
|
84
|
+
//# sourceMappingURL=cohort.d.ts.map
|
|
@@ -0,0 +1 @@
|
|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;IACH,UAAU,CAAC,EAAE,WAAW,GAAG,OAAO,GAAG,aAAa,GAAG,cAAc,GAAG,cAAc,CAAC;CACtF;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -0,0 +1,24 @@
|
|
|
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.Cohort = void 0;
|
|
5
|
+
const resource_1 = require("../../../core/resource.js");
|
|
6
|
+
class Cohort extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Analyze revenue metrics for a specific cohort of visitors, including total
|
|
9
|
+
* revenue, conversion rates, and time to first purchase
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const response = await client.v1.revenue.cohort.getMetrics({
|
|
14
|
+
* project_id: 'project_id',
|
|
15
|
+
* visitor_ids: ['string'],
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
getMetrics(body, options) {
|
|
20
|
+
return this._client.post('/api/v1/revenue/cohort/metrics', { body, ...options });
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.Cohort = Cohort;
|
|
24
|
+
//# sourceMappingURL=cohort.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cohort.js","sourceRoot":"","sources":["../../../src/resources/v1/revenue/cohort.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAIrD,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;;;;;OAWG;IACH,UAAU,CAAC,IAA4B,EAAE,OAAwB;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gCAAgC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnF,CAAC;CACF;AAhBD,wBAgBC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
export class Cohort extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Analyze revenue metrics for a specific cohort of visitors, including total
|
|
6
|
+
* revenue, conversion rates, and time to first purchase
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const response = await client.v1.revenue.cohort.getMetrics({
|
|
11
|
+
* project_id: 'project_id',
|
|
12
|
+
* visitor_ids: ['string'],
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
getMetrics(body, options) {
|
|
17
|
+
return this._client.post('/api/v1/revenue/cohort/metrics', { body, ...options });
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=cohort.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cohort.mjs","sourceRoot":"","sources":["../../../src/resources/v1/revenue/cohort.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;OAWG;IACH,UAAU,CAAC,IAA4B,EAAE,OAAwB;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gCAAgC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnF,CAAC;CACF"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { Attribution, type AttributionByOriginParams, type AttributionByUtmParams } from "./attribution.mjs";
|
|
2
|
+
export { Cohort, type CohortGetMetricsResponse, type CohortGetMetricsParams } from "./cohort.mjs";
|
|
2
3
|
export { Conversion, type ConversionMetricsParams } from "./conversion.mjs";
|
|
3
4
|
export { Customers, type CustomerProfileParams, type CustomerTopParams } from "./customers.mjs";
|
|
4
5
|
export { Revenue, type AttributionByOriginResponse, type AttributionByUtmResponse, type ConversionMetricsResponse, type CustomerProfileResponse, type DashboardResponse, type OriginAttributionDataPoint, type Payment, type RevenueOverTimeDataPoint, type TimelineDataPoint, type TimelineResponse, type TopCustomer, type TopCustomersResponse, type UtmAttributionDataPoint, type RevenueDashboardParams, type RevenueTimelineParams, } from "./revenue.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/revenue/index.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE,KAAK,yBAAyB,EAAE,KAAK,sBAAsB,EAAE;OAC5E,EAAE,UAAU,EAAE,KAAK,uBAAuB,EAAE;OAC5C,EAAE,SAAS,EAAE,KAAK,qBAAqB,EAAE,KAAK,iBAAiB,EAAE;OACjE,EACL,OAAO,EACP,KAAK,2BAA2B,EAChC,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACtB,KAAK,0BAA0B,EAC/B,KAAK,OAAO,EACZ,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,GAC3B"}
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/revenue/index.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE,KAAK,yBAAyB,EAAE,KAAK,sBAAsB,EAAE;OAC5E,EAAE,MAAM,EAAE,KAAK,wBAAwB,EAAE,KAAK,sBAAsB,EAAE;OACtE,EAAE,UAAU,EAAE,KAAK,uBAAuB,EAAE;OAC5C,EAAE,SAAS,EAAE,KAAK,qBAAqB,EAAE,KAAK,iBAAiB,EAAE;OACjE,EACL,OAAO,EACP,KAAK,2BAA2B,EAChC,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACtB,KAAK,0BAA0B,EAC/B,KAAK,OAAO,EACZ,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,GAC3B"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { Attribution, type AttributionByOriginParams, type AttributionByUtmParams } from "./attribution.js";
|
|
2
|
+
export { Cohort, type CohortGetMetricsResponse, type CohortGetMetricsParams } from "./cohort.js";
|
|
2
3
|
export { Conversion, type ConversionMetricsParams } from "./conversion.js";
|
|
3
4
|
export { Customers, type CustomerProfileParams, type CustomerTopParams } from "./customers.js";
|
|
4
5
|
export { Revenue, type AttributionByOriginResponse, type AttributionByUtmResponse, type ConversionMetricsResponse, type CustomerProfileResponse, type DashboardResponse, type OriginAttributionDataPoint, type Payment, type RevenueOverTimeDataPoint, type TimelineDataPoint, type TimelineResponse, type TopCustomer, type TopCustomersResponse, type UtmAttributionDataPoint, type RevenueDashboardParams, type RevenueTimelineParams, } from "./revenue.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/revenue/index.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE,KAAK,yBAAyB,EAAE,KAAK,sBAAsB,EAAE;OAC5E,EAAE,UAAU,EAAE,KAAK,uBAAuB,EAAE;OAC5C,EAAE,SAAS,EAAE,KAAK,qBAAqB,EAAE,KAAK,iBAAiB,EAAE;OACjE,EACL,OAAO,EACP,KAAK,2BAA2B,EAChC,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACtB,KAAK,0BAA0B,EAC/B,KAAK,OAAO,EACZ,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,GAC3B"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/revenue/index.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE,KAAK,yBAAyB,EAAE,KAAK,sBAAsB,EAAE;OAC5E,EAAE,MAAM,EAAE,KAAK,wBAAwB,EAAE,KAAK,sBAAsB,EAAE;OACtE,EAAE,UAAU,EAAE,KAAK,uBAAuB,EAAE;OAC5C,EAAE,SAAS,EAAE,KAAK,qBAAqB,EAAE,KAAK,iBAAiB,EAAE;OACjE,EACL,OAAO,EACP,KAAK,2BAA2B,EAChC,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACtB,KAAK,0BAA0B,EAC/B,KAAK,OAAO,EACZ,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,GAC3B"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Revenue = exports.Customers = exports.Conversion = exports.Attribution = void 0;
|
|
4
|
+
exports.Revenue = exports.Customers = exports.Conversion = exports.Cohort = exports.Attribution = void 0;
|
|
5
5
|
var attribution_1 = require("./attribution.js");
|
|
6
6
|
Object.defineProperty(exports, "Attribution", { enumerable: true, get: function () { return attribution_1.Attribution; } });
|
|
7
|
+
var cohort_1 = require("./cohort.js");
|
|
8
|
+
Object.defineProperty(exports, "Cohort", { enumerable: true, get: function () { return cohort_1.Cohort; } });
|
|
7
9
|
var conversion_1 = require("./conversion.js");
|
|
8
10
|
Object.defineProperty(exports, "Conversion", { enumerable: true, get: function () { return conversion_1.Conversion; } });
|
|
9
11
|
var customers_1 = require("./customers.js");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/revenue/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAAyG;AAAhG,0GAAA,WAAW,OAAA;AACpB,8CAAwE;AAA/D,wGAAA,UAAU,OAAA;AACnB,4CAA4F;AAAnF,sGAAA,SAAS,OAAA;AAClB,wCAiBmB;AAhBjB,kGAAA,OAAO,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/revenue/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAAyG;AAAhG,0GAAA,WAAW,OAAA;AACpB,sCAA8F;AAArF,gGAAA,MAAM,OAAA;AACf,8CAAwE;AAA/D,wGAAA,UAAU,OAAA;AACnB,4CAA4F;AAAnF,sGAAA,SAAS,OAAA;AAClB,wCAiBmB;AAhBjB,kGAAA,OAAO,OAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
export { Attribution } from "./attribution.mjs";
|
|
3
|
+
export { Cohort } from "./cohort.mjs";
|
|
3
4
|
export { Conversion } from "./conversion.mjs";
|
|
4
5
|
export { Customers } from "./customers.mjs";
|
|
5
6
|
export { Revenue, } from "./revenue.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/revenue/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAA+D;OAC5E,EAAE,UAAU,EAAgC;OAC5C,EAAE,SAAS,EAAsD;OACjE,EACL,OAAO,GAgBR"}
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/revenue/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAA+D;OAC5E,EAAE,MAAM,EAA8D;OACtE,EAAE,UAAU,EAAgC;OAC5C,EAAE,SAAS,EAAsD;OACjE,EACL,OAAO,GAgBR"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.mjs";
|
|
2
2
|
import * as AttributionAPI from "./attribution.mjs";
|
|
3
3
|
import { Attribution, AttributionByOriginParams, AttributionByUtmParams } from "./attribution.mjs";
|
|
4
|
+
import * as CohortAPI from "./cohort.mjs";
|
|
5
|
+
import { Cohort, CohortGetMetricsParams, CohortGetMetricsResponse } from "./cohort.mjs";
|
|
4
6
|
import * as ConversionAPI from "./conversion.mjs";
|
|
5
7
|
import { Conversion, ConversionMetricsParams } from "./conversion.mjs";
|
|
6
8
|
import * as CustomersAPI from "./customers.mjs";
|
|
@@ -11,6 +13,7 @@ export declare class Revenue extends APIResource {
|
|
|
11
13
|
attribution: AttributionAPI.Attribution;
|
|
12
14
|
customers: CustomersAPI.Customers;
|
|
13
15
|
conversion: ConversionAPI.Conversion;
|
|
16
|
+
cohort: CohortAPI.Cohort;
|
|
14
17
|
/**
|
|
15
18
|
* Get key revenue metrics including total revenue, conversion rate, and average
|
|
16
19
|
* order value
|
|
@@ -184,6 +187,10 @@ export interface TimelineResponse {
|
|
|
184
187
|
export interface TopCustomer {
|
|
185
188
|
avg_order_value?: number;
|
|
186
189
|
currency?: string;
|
|
190
|
+
/**
|
|
191
|
+
* Resolved customer identity (user_id > external_id > visitor_id)
|
|
192
|
+
*/
|
|
193
|
+
customer_id?: string;
|
|
187
194
|
email?: string;
|
|
188
195
|
external_id?: string;
|
|
189
196
|
first_payment_date?: string;
|
|
@@ -197,7 +204,14 @@ export interface TopCustomer {
|
|
|
197
204
|
*/
|
|
198
205
|
total_revenue?: number;
|
|
199
206
|
user_id?: string;
|
|
207
|
+
/**
|
|
208
|
+
* Representative visitor_id for this customer
|
|
209
|
+
*/
|
|
200
210
|
visitor_id?: string;
|
|
211
|
+
/**
|
|
212
|
+
* All visitor_ids for this customer
|
|
213
|
+
*/
|
|
214
|
+
visitor_ids?: Array<string>;
|
|
201
215
|
}
|
|
202
216
|
export interface TopCustomersResponse {
|
|
203
217
|
customers?: Array<TopCustomer>;
|
|
@@ -248,5 +262,6 @@ export declare namespace Revenue {
|
|
|
248
262
|
export { Attribution as Attribution, type AttributionByOriginParams as AttributionByOriginParams, type AttributionByUtmParams as AttributionByUtmParams, };
|
|
249
263
|
export { Customers as Customers, type CustomerProfileParams as CustomerProfileParams, type CustomerTopParams as CustomerTopParams, };
|
|
250
264
|
export { Conversion as Conversion, type ConversionMetricsParams as ConversionMetricsParams };
|
|
265
|
+
export { Cohort as Cohort, type CohortGetMetricsResponse as CohortGetMetricsResponse, type CohortGetMetricsParams as CohortGetMetricsParams, };
|
|
251
266
|
}
|
|
252
267
|
//# sourceMappingURL=revenue.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"revenue.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/revenue/revenue.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EAAE,WAAW,EAAE,yBAAyB,EAAE,sBAAsB,EAAE;OAClE,KAAK,aAAa;OAClB,EAAE,UAAU,EAAE,uBAAuB,EAAE;OACvC,KAAK,YAAY;OACjB,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,SAAS,EAAE;OACvD,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC,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ACL,WAAW,IAAI,WAAW,EAC1B,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;IAEF,OAAO,EACL,SAAS,IAAI,SAAS,EACtB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;IAEF,OAAO,EAAE,UAAU,IAAI,UAAU,EAAE,KAAK,uBAAuB,IAAI,uBAAuB,EAAE,CAAC;IAE7F,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.js";
|
|
2
2
|
import * as AttributionAPI from "./attribution.js";
|
|
3
3
|
import { Attribution, AttributionByOriginParams, AttributionByUtmParams } from "./attribution.js";
|
|
4
|
+
import * as CohortAPI from "./cohort.js";
|
|
5
|
+
import { Cohort, CohortGetMetricsParams, CohortGetMetricsResponse } from "./cohort.js";
|
|
4
6
|
import * as ConversionAPI from "./conversion.js";
|
|
5
7
|
import { Conversion, ConversionMetricsParams } from "./conversion.js";
|
|
6
8
|
import * as CustomersAPI from "./customers.js";
|
|
@@ -11,6 +13,7 @@ export declare class Revenue extends APIResource {
|
|
|
11
13
|
attribution: AttributionAPI.Attribution;
|
|
12
14
|
customers: CustomersAPI.Customers;
|
|
13
15
|
conversion: ConversionAPI.Conversion;
|
|
16
|
+
cohort: CohortAPI.Cohort;
|
|
14
17
|
/**
|
|
15
18
|
* Get key revenue metrics including total revenue, conversion rate, and average
|
|
16
19
|
* order value
|
|
@@ -184,6 +187,10 @@ export interface TimelineResponse {
|
|
|
184
187
|
export interface TopCustomer {
|
|
185
188
|
avg_order_value?: number;
|
|
186
189
|
currency?: string;
|
|
190
|
+
/**
|
|
191
|
+
* Resolved customer identity (user_id > external_id > visitor_id)
|
|
192
|
+
*/
|
|
193
|
+
customer_id?: string;
|
|
187
194
|
email?: string;
|
|
188
195
|
external_id?: string;
|
|
189
196
|
first_payment_date?: string;
|
|
@@ -197,7 +204,14 @@ export interface TopCustomer {
|
|
|
197
204
|
*/
|
|
198
205
|
total_revenue?: number;
|
|
199
206
|
user_id?: string;
|
|
207
|
+
/**
|
|
208
|
+
* Representative visitor_id for this customer
|
|
209
|
+
*/
|
|
200
210
|
visitor_id?: string;
|
|
211
|
+
/**
|
|
212
|
+
* All visitor_ids for this customer
|
|
213
|
+
*/
|
|
214
|
+
visitor_ids?: Array<string>;
|
|
201
215
|
}
|
|
202
216
|
export interface TopCustomersResponse {
|
|
203
217
|
customers?: Array<TopCustomer>;
|
|
@@ -248,5 +262,6 @@ export declare namespace Revenue {
|
|
|
248
262
|
export { Attribution as Attribution, type AttributionByOriginParams as AttributionByOriginParams, type AttributionByUtmParams as AttributionByUtmParams, };
|
|
249
263
|
export { Customers as Customers, type CustomerProfileParams as CustomerProfileParams, type CustomerTopParams as CustomerTopParams, };
|
|
250
264
|
export { Conversion as Conversion, type ConversionMetricsParams as ConversionMetricsParams };
|
|
265
|
+
export { Cohort as Cohort, type CohortGetMetricsResponse as CohortGetMetricsResponse, type CohortGetMetricsParams as CohortGetMetricsParams, };
|
|
251
266
|
}
|
|
252
267
|
//# sourceMappingURL=revenue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"revenue.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/revenue/revenue.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EAAE,WAAW,EAAE,yBAAyB,EAAE,sBAAsB,EAAE;OAClE,KAAK,aAAa;OAClB,EAAE,UAAU,EAAE,uBAAuB,EAAE;OACvC,KAAK,YAAY;OACjB,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,SAAS,EAAE;OACvD,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEz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I,qBAAqB,GACpD,CAAC;IAEF,OAAO,EACL,WAAW,IAAI,WAAW,EAC1B,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;IAEF,OAAO,EACL,SAAS,IAAI,SAAS,EACtB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;IAEF,OAAO,EAAE,UAAU,IAAI,UAAU,EAAE,KAAK,uBAAuB,IAAI,uBAAuB,EAAE,CAAC;IAE7F,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -6,6 +6,8 @@ const tslib_1 = require("../../../internal/tslib.js");
|
|
|
6
6
|
const resource_1 = require("../../../core/resource.js");
|
|
7
7
|
const AttributionAPI = tslib_1.__importStar(require("./attribution.js"));
|
|
8
8
|
const attribution_1 = require("./attribution.js");
|
|
9
|
+
const CohortAPI = tslib_1.__importStar(require("./cohort.js"));
|
|
10
|
+
const cohort_1 = require("./cohort.js");
|
|
9
11
|
const ConversionAPI = tslib_1.__importStar(require("./conversion.js"));
|
|
10
12
|
const conversion_1 = require("./conversion.js");
|
|
11
13
|
const CustomersAPI = tslib_1.__importStar(require("./customers.js"));
|
|
@@ -16,6 +18,7 @@ class Revenue extends resource_1.APIResource {
|
|
|
16
18
|
this.attribution = new AttributionAPI.Attribution(this._client);
|
|
17
19
|
this.customers = new CustomersAPI.Customers(this._client);
|
|
18
20
|
this.conversion = new ConversionAPI.Conversion(this._client);
|
|
21
|
+
this.cohort = new CohortAPI.Cohort(this._client);
|
|
19
22
|
}
|
|
20
23
|
/**
|
|
21
24
|
* Get key revenue metrics including total revenue, conversion rate, and average
|
|
@@ -50,4 +53,5 @@ exports.Revenue = Revenue;
|
|
|
50
53
|
Revenue.Attribution = attribution_1.Attribution;
|
|
51
54
|
Revenue.Customers = customers_1.Customers;
|
|
52
55
|
Revenue.Conversion = conversion_1.Conversion;
|
|
56
|
+
Revenue.Cohort = cohort_1.Cohort;
|
|
53
57
|
//# sourceMappingURL=revenue.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"revenue.js","sourceRoot":"","sources":["../../../src/resources/v1/revenue/revenue.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,yEAAgD;AAChD,kDAA+F;AAC/F,uEAA8C;AAC9C,gDAAmE;AACnE,qEAA4C;AAC5C,8CAAkF;AAIlF,MAAa,OAAQ,SAAQ,sBAAW;IAAxC;;QACE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvF,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA+
|
|
1
|
+
{"version":3,"file":"revenue.js","sourceRoot":"","sources":["../../../src/resources/v1/revenue/revenue.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,yEAAgD;AAChD,kDAA+F;AAC/F,+DAAsC;AACtC,wCAAoF;AACpF,uEAA8C;AAC9C,gDAAmE;AACnE,qEAA4C;AAC5C,8CAAkF;AAIlF,MAAa,OAAQ,SAAQ,sBAAW;IAAxC;;QACE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvF,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClF,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA+BhE,CAAC;IA7BC;;;;;;;;;;OAUG;IACH,SAAS,CAAC,KAA6B,EAAE,OAAwB;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,2BAA2B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,KAA4B,EAAE,OAAwB;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,0BAA0B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;CACF;AAnCD,0BAmCC;AAwTD,OAAO,CAAC,WAAW,GAAG,yBAAW,CAAC;AAClC,OAAO,CAAC,SAAS,GAAG,qBAAS,CAAC;AAC9B,OAAO,CAAC,UAAU,GAAG,uBAAU,CAAC;AAChC,OAAO,CAAC,MAAM,GAAG,eAAM,CAAC"}
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
import { APIResource } from "../../../core/resource.mjs";
|
|
3
3
|
import * as AttributionAPI from "./attribution.mjs";
|
|
4
4
|
import { Attribution } from "./attribution.mjs";
|
|
5
|
+
import * as CohortAPI from "./cohort.mjs";
|
|
6
|
+
import { Cohort } from "./cohort.mjs";
|
|
5
7
|
import * as ConversionAPI from "./conversion.mjs";
|
|
6
8
|
import { Conversion } from "./conversion.mjs";
|
|
7
9
|
import * as CustomersAPI from "./customers.mjs";
|
|
@@ -12,6 +14,7 @@ export class Revenue extends APIResource {
|
|
|
12
14
|
this.attribution = new AttributionAPI.Attribution(this._client);
|
|
13
15
|
this.customers = new CustomersAPI.Customers(this._client);
|
|
14
16
|
this.conversion = new ConversionAPI.Conversion(this._client);
|
|
17
|
+
this.cohort = new CohortAPI.Cohort(this._client);
|
|
15
18
|
}
|
|
16
19
|
/**
|
|
17
20
|
* Get key revenue metrics including total revenue, conversion rate, and average
|
|
@@ -45,4 +48,5 @@ export class Revenue extends APIResource {
|
|
|
45
48
|
Revenue.Attribution = Attribution;
|
|
46
49
|
Revenue.Customers = Customers;
|
|
47
50
|
Revenue.Conversion = Conversion;
|
|
51
|
+
Revenue.Cohort = Cohort;
|
|
48
52
|
//# sourceMappingURL=revenue.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"revenue.mjs","sourceRoot":"","sources":["../../../src/resources/v1/revenue/revenue.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EAAE,WAAW,EAAqD;OAClE,KAAK,aAAa;OAClB,EAAE,UAAU,EAA2B;OACvC,KAAK,YAAY;OACjB,EAA4C,SAAS,EAAE;AAI9D,MAAM,OAAO,OAAQ,SAAQ,WAAW;IAAxC;;QACE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvF,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA+
|
|
1
|
+
{"version":3,"file":"revenue.mjs","sourceRoot":"","sources":["../../../src/resources/v1/revenue/revenue.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EAAE,WAAW,EAAqD;OAClE,KAAK,SAAS;OACd,EAAE,MAAM,EAAoD;OAC5D,KAAK,aAAa;OAClB,EAAE,UAAU,EAA2B;OACvC,KAAK,YAAY;OACjB,EAA4C,SAAS,EAAE;AAI9D,MAAM,OAAO,OAAQ,SAAQ,WAAW;IAAxC;;QACE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvF,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClF,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA+BhE,CAAC;IA7BC;;;;;;;;;;OAUG;IACH,SAAS,CAAC,KAA6B,EAAE,OAAwB;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,2BAA2B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,KAA4B,EAAE,OAAwB;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,0BAA0B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;CACF;AAwTD,OAAO,CAAC,WAAW,GAAG,WAAW,CAAC;AAClC,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC;AAC9B,OAAO,CAAC,UAAU,GAAG,UAAU,CAAC;AAChC,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC"}
|
package/resources/v1/v1.d.mts
CHANGED
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
-
import * as
|
|
3
|
-
import {
|
|
2
|
+
import * as AuthAPI from "./auth.mjs";
|
|
3
|
+
import { Auth, AuthLoginParams, LoginRequest, LoginResponse } from "./auth.mjs";
|
|
4
4
|
import * as ProjectsAPI from "./projects.mjs";
|
|
5
5
|
import { CreateProjectRequest, ListProjectsResponse, Project, ProjectCreateParams, ProjectDeleteResponse, ProjectResponse, ProjectUpdateParams, Projects, UpdateProjectRequest } from "./projects.mjs";
|
|
6
6
|
import * as AnalyticsAPI from "./analytics/analytics.mjs";
|
|
7
7
|
import { ActiveUsersResponse, Analytics, AnalyticsDashboardParams, BounceRateByPageMetric, BounceRateResponse, ChurnRateResponse, CohortAnalysisResponse, CohortData, CountryDataPoint, DashboardMetricsResponse, EventFilterOptionsResponse, EventsOverTimeDataPoint, ManualIdentifyRequest, ManualIdentifyResponse, OriginDataPoint, RecentEvent, RecentEventsResponse, ReturnRateResponse, SessionMetricsResponse, TopVisitor, TopVisitorsResponse, UniqueVisitorsDataPoint, UniqueVisitorsTimelineResponse, VisitorDataPoint, VisitorEvent, VisitorProfileResponse, VisitorsByCountryResponse, VisitorsByDeviceResponse, VisitorsByOriginResponse } from "./analytics/analytics.mjs";
|
|
8
|
+
import * as PaymentProvidersAPI from "./payment-providers/payment-providers.mjs";
|
|
9
|
+
import { CreatePaymentProviderRequest, ListPaymentProvidersResponse, PaymentProviderCreateParams, PaymentProviderDeleteResponse, PaymentProviderInstructionsParams, PaymentProviderListParams, PaymentProviderResponse, PaymentProviderUpdateParams, PaymentProviders, ProviderField, ProviderInstructionsResponse, UpdatePaymentProviderRequest } from "./payment-providers/payment-providers.mjs";
|
|
8
10
|
import * as RevenueAPI from "./revenue/revenue.mjs";
|
|
9
11
|
import { AttributionByOriginResponse, AttributionByUtmResponse, ConversionMetricsResponse, CustomerProfileResponse, DashboardResponse, OriginAttributionDataPoint, Payment, Revenue, RevenueDashboardParams, RevenueOverTimeDataPoint, RevenueTimelineParams, TimelineDataPoint, TimelineResponse, TopCustomer, TopCustomersResponse, UtmAttributionDataPoint } from "./revenue/revenue.mjs";
|
|
10
12
|
export declare class V1 extends APIResource {
|
|
13
|
+
auth: AuthAPI.Auth;
|
|
11
14
|
analytics: AnalyticsAPI.Analytics;
|
|
12
15
|
revenue: RevenueAPI.Revenue;
|
|
13
16
|
projects: ProjectsAPI.Projects;
|
|
14
17
|
paymentProviders: PaymentProvidersAPI.PaymentProviders;
|
|
15
18
|
}
|
|
16
19
|
export declare namespace V1 {
|
|
20
|
+
export { Auth as Auth, type LoginRequest as LoginRequest, type LoginResponse as LoginResponse, type AuthLoginParams as AuthLoginParams, };
|
|
17
21
|
export { Analytics as Analytics, type ActiveUsersResponse as ActiveUsersResponse, type BounceRateByPageMetric as BounceRateByPageMetric, type BounceRateResponse as BounceRateResponse, type ChurnRateResponse as ChurnRateResponse, type CohortAnalysisResponse as CohortAnalysisResponse, type CohortData as CohortData, type CountryDataPoint as CountryDataPoint, type DashboardMetricsResponse as DashboardMetricsResponse, type EventFilterOptionsResponse as EventFilterOptionsResponse, type EventsOverTimeDataPoint as EventsOverTimeDataPoint, type ManualIdentifyRequest as ManualIdentifyRequest, type ManualIdentifyResponse as ManualIdentifyResponse, type OriginDataPoint as OriginDataPoint, type RecentEvent as RecentEvent, type RecentEventsResponse as RecentEventsResponse, type ReturnRateResponse as ReturnRateResponse, type SessionMetricsResponse as SessionMetricsResponse, type TopVisitor as TopVisitor, type TopVisitorsResponse as TopVisitorsResponse, type UniqueVisitorsDataPoint as UniqueVisitorsDataPoint, type UniqueVisitorsTimelineResponse as UniqueVisitorsTimelineResponse, type VisitorDataPoint as VisitorDataPoint, type VisitorEvent as VisitorEvent, type VisitorProfileResponse as VisitorProfileResponse, type VisitorsByCountryResponse as VisitorsByCountryResponse, type VisitorsByDeviceResponse as VisitorsByDeviceResponse, type VisitorsByOriginResponse as VisitorsByOriginResponse, type AnalyticsDashboardParams as AnalyticsDashboardParams, };
|
|
18
22
|
export { Revenue as Revenue, type AttributionByOriginResponse as AttributionByOriginResponse, type AttributionByUtmResponse as AttributionByUtmResponse, type ConversionMetricsResponse as ConversionMetricsResponse, type CustomerProfileResponse as CustomerProfileResponse, type DashboardResponse as DashboardResponse, type OriginAttributionDataPoint as OriginAttributionDataPoint, type Payment as Payment, type RevenueOverTimeDataPoint as RevenueOverTimeDataPoint, type TimelineDataPoint as TimelineDataPoint, type TimelineResponse as TimelineResponse, type TopCustomer as TopCustomer, type TopCustomersResponse as TopCustomersResponse, type UtmAttributionDataPoint as UtmAttributionDataPoint, type RevenueDashboardParams as RevenueDashboardParams, type RevenueTimelineParams as RevenueTimelineParams, };
|
|
19
23
|
export { Projects as Projects, type CreateProjectRequest as CreateProjectRequest, type ListProjectsResponse as ListProjectsResponse, type Project as Project, type ProjectResponse as ProjectResponse, type UpdateProjectRequest as UpdateProjectRequest, type ProjectDeleteResponse as ProjectDeleteResponse, type ProjectCreateParams as ProjectCreateParams, type ProjectUpdateParams as ProjectUpdateParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1.d.mts","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,
|
|
1
|
+
{"version":3,"file":"v1.d.mts","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAE,IAAI,EAAE,eAAe,EAAE,YAAY,EAAE,aAAa,EAAE;OACtD,KAAK,WAAW;OAChB,EACL,oBAAoB,EACpB,oBAAoB,EACpB,OAAO,EACP,mBAAmB,EACnB,qBAAqB,EACrB,eAAe,EACf,mBAAmB,EACnB,QAAQ,EACR,oBAAoB,EACrB;OACM,KAAK,YAAY;OACjB,EACL,mBAAmB,EACnB,SAAS,EACT,wBAAwB,EACxB,sBAAsB,EACtB,kBAAkB,EAClB,iBAAiB,EACjB,sBAAsB,EACtB,UAAU,EACV,gBAAgB,EAChB,wBAAwB,EACxB,0BAA0B,EAC1B,uBAAuB,EACvB,qBAAqB,EACrB,sBAAsB,EACtB,eAAe,EACf,WAAW,EACX,oBAAoB,EACpB,kBAAkB,EAClB,sBAAsB,EACtB,UAAU,EACV,mBAAmB,EACnB,uBAAuB,EACvB,8BAA8B,EAC9B,gBAAgB,EAChB,YAAY,EACZ,sBAAsB,EACtB,yBAAyB,EACzB,wBAAwB,EACxB,wBAAwB,EACzB;OACM,KAAK,mBAAmB;OACxB,EACL,4BAA4B,EAC5B,4BAA4B,EAC5B,2BAA2B,EAC3B,6BAA6B,EAC7B,iCAAiC,EAC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BAAoB,IAAI,oBAAoB,EACjD,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;IAEF,OAAO,EACL,gBAAgB,IAAI,gBAAgB,EACpC,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,iCAAiC,IAAI,iCAAiC,GAC5E,CAAC;CACH"}
|
package/resources/v1/v1.d.ts
CHANGED
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
|
-
import * as
|
|
3
|
-
import {
|
|
2
|
+
import * as AuthAPI from "./auth.js";
|
|
3
|
+
import { Auth, AuthLoginParams, LoginRequest, LoginResponse } from "./auth.js";
|
|
4
4
|
import * as ProjectsAPI from "./projects.js";
|
|
5
5
|
import { CreateProjectRequest, ListProjectsResponse, Project, ProjectCreateParams, ProjectDeleteResponse, ProjectResponse, ProjectUpdateParams, Projects, UpdateProjectRequest } from "./projects.js";
|
|
6
6
|
import * as AnalyticsAPI from "./analytics/analytics.js";
|
|
7
7
|
import { ActiveUsersResponse, Analytics, AnalyticsDashboardParams, BounceRateByPageMetric, BounceRateResponse, ChurnRateResponse, CohortAnalysisResponse, CohortData, CountryDataPoint, DashboardMetricsResponse, EventFilterOptionsResponse, EventsOverTimeDataPoint, ManualIdentifyRequest, ManualIdentifyResponse, OriginDataPoint, RecentEvent, RecentEventsResponse, ReturnRateResponse, SessionMetricsResponse, TopVisitor, TopVisitorsResponse, UniqueVisitorsDataPoint, UniqueVisitorsTimelineResponse, VisitorDataPoint, VisitorEvent, VisitorProfileResponse, VisitorsByCountryResponse, VisitorsByDeviceResponse, VisitorsByOriginResponse } from "./analytics/analytics.js";
|
|
8
|
+
import * as PaymentProvidersAPI from "./payment-providers/payment-providers.js";
|
|
9
|
+
import { CreatePaymentProviderRequest, ListPaymentProvidersResponse, PaymentProviderCreateParams, PaymentProviderDeleteResponse, PaymentProviderInstructionsParams, PaymentProviderListParams, PaymentProviderResponse, PaymentProviderUpdateParams, PaymentProviders, ProviderField, ProviderInstructionsResponse, UpdatePaymentProviderRequest } from "./payment-providers/payment-providers.js";
|
|
8
10
|
import * as RevenueAPI from "./revenue/revenue.js";
|
|
9
11
|
import { AttributionByOriginResponse, AttributionByUtmResponse, ConversionMetricsResponse, CustomerProfileResponse, DashboardResponse, OriginAttributionDataPoint, Payment, Revenue, RevenueDashboardParams, RevenueOverTimeDataPoint, RevenueTimelineParams, TimelineDataPoint, TimelineResponse, TopCustomer, TopCustomersResponse, UtmAttributionDataPoint } from "./revenue/revenue.js";
|
|
10
12
|
export declare class V1 extends APIResource {
|
|
13
|
+
auth: AuthAPI.Auth;
|
|
11
14
|
analytics: AnalyticsAPI.Analytics;
|
|
12
15
|
revenue: RevenueAPI.Revenue;
|
|
13
16
|
projects: ProjectsAPI.Projects;
|
|
14
17
|
paymentProviders: PaymentProvidersAPI.PaymentProviders;
|
|
15
18
|
}
|
|
16
19
|
export declare namespace V1 {
|
|
20
|
+
export { Auth as Auth, type LoginRequest as LoginRequest, type LoginResponse as LoginResponse, type AuthLoginParams as AuthLoginParams, };
|
|
17
21
|
export { Analytics as Analytics, type ActiveUsersResponse as ActiveUsersResponse, type BounceRateByPageMetric as BounceRateByPageMetric, type BounceRateResponse as BounceRateResponse, type ChurnRateResponse as ChurnRateResponse, type CohortAnalysisResponse as CohortAnalysisResponse, type CohortData as CohortData, type CountryDataPoint as CountryDataPoint, type DashboardMetricsResponse as DashboardMetricsResponse, type EventFilterOptionsResponse as EventFilterOptionsResponse, type EventsOverTimeDataPoint as EventsOverTimeDataPoint, type ManualIdentifyRequest as ManualIdentifyRequest, type ManualIdentifyResponse as ManualIdentifyResponse, type OriginDataPoint as OriginDataPoint, type RecentEvent as RecentEvent, type RecentEventsResponse as RecentEventsResponse, type ReturnRateResponse as ReturnRateResponse, type SessionMetricsResponse as SessionMetricsResponse, type TopVisitor as TopVisitor, type TopVisitorsResponse as TopVisitorsResponse, type UniqueVisitorsDataPoint as UniqueVisitorsDataPoint, type UniqueVisitorsTimelineResponse as UniqueVisitorsTimelineResponse, type VisitorDataPoint as VisitorDataPoint, type VisitorEvent as VisitorEvent, type VisitorProfileResponse as VisitorProfileResponse, type VisitorsByCountryResponse as VisitorsByCountryResponse, type VisitorsByDeviceResponse as VisitorsByDeviceResponse, type VisitorsByOriginResponse as VisitorsByOriginResponse, type AnalyticsDashboardParams as AnalyticsDashboardParams, };
|
|
18
22
|
export { Revenue as Revenue, type AttributionByOriginResponse as AttributionByOriginResponse, type AttributionByUtmResponse as AttributionByUtmResponse, type ConversionMetricsResponse as ConversionMetricsResponse, type CustomerProfileResponse as CustomerProfileResponse, type DashboardResponse as DashboardResponse, type OriginAttributionDataPoint as OriginAttributionDataPoint, type Payment as Payment, type RevenueOverTimeDataPoint as RevenueOverTimeDataPoint, type TimelineDataPoint as TimelineDataPoint, type TimelineResponse as TimelineResponse, type TopCustomer as TopCustomer, type TopCustomersResponse as TopCustomersResponse, type UtmAttributionDataPoint as UtmAttributionDataPoint, type RevenueDashboardParams as RevenueDashboardParams, type RevenueTimelineParams as RevenueTimelineParams, };
|
|
19
23
|
export { Projects as Projects, type CreateProjectRequest as CreateProjectRequest, type ListProjectsResponse as ListProjectsResponse, type Project as Project, type ProjectResponse as ProjectResponse, type UpdateProjectRequest as UpdateProjectRequest, type ProjectDeleteResponse as ProjectDeleteResponse, type ProjectCreateParams as ProjectCreateParams, type ProjectUpdateParams as ProjectUpdateParams, };
|
package/resources/v1/v1.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,
|
|
1
|
+
{"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAE,IAAI,EAAE,eAAe,EAAE,YAAY,EAAE,aAAa,EAAE;OACtD,KAAK,WAAW;OAChB,EACL,oBAAoB,EACpB,oBAAoB,EACpB,OAAO,EACP,mBAAmB,EACnB,qBAAqB,EACrB,eAAe,EACf,mBAAmB,EACnB,QAAQ,EACR,oBAAoB,EACrB;OACM,KAAK,YAAY;OACjB,EACL,mBAAmB,EACnB,SAAS,EACT,wBAAwB,EACxB,sBAAsB,EACtB,kBAAkB,EAClB,iBAAiB,EACjB,sBAAsB,EACtB,UAAU,EACV,gBAAgB,EAChB,wBAAwB,EACxB,0BAA0B,EAC1B,uBAAuB,EACvB,qBAAqB,EACrB,sBAAsB,EACtB,eAAe,EACf,WAAW,EACX,oBAAoB,EACpB,kBAAkB,EAClB,sBAAsB,EACtB,UAAU,EACV,mBAAmB,EACnB,uBAAuB,EACvB,8BAA8B,EAC9B,gBAAgB,EAChB,YAAY,EACZ,sBAAsB,EACtB,yBAAyB,EACzB,wBAAwB,EACxB,wBAAwB,EACzB;OACM,KAAK,mBAAmB;OACxB,EACL,4BAA4B,EAC5B,4BAA4B,EAC5B,2BAA2B,EAC3B,6BAA6B,EAC7B,iCAAiC,EACjC,yBAAyB,EACzB,uBAAuB,EACvB,2BAA2B,EAC3B,gBAAgB,EAChB,aAAa,EACb,4BAA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Ae,EACvC,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;IAEF,OAAO,EACL,gBAAgB,IAAI,gBAAgB,EACpC,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,iCAAiC,IAAI,iCAAiC,GAC5E,CAAC;CACH"}
|
package/resources/v1/v1.js
CHANGED
|
@@ -4,17 +4,20 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.V1 = void 0;
|
|
5
5
|
const tslib_1 = require("../../internal/tslib.js");
|
|
6
6
|
const resource_1 = require("../../core/resource.js");
|
|
7
|
-
const
|
|
8
|
-
const
|
|
7
|
+
const AuthAPI = tslib_1.__importStar(require("./auth.js"));
|
|
8
|
+
const auth_1 = require("./auth.js");
|
|
9
9
|
const ProjectsAPI = tslib_1.__importStar(require("./projects.js"));
|
|
10
10
|
const projects_1 = require("./projects.js");
|
|
11
11
|
const AnalyticsAPI = tslib_1.__importStar(require("./analytics/analytics.js"));
|
|
12
12
|
const analytics_1 = require("./analytics/analytics.js");
|
|
13
|
+
const PaymentProvidersAPI = tslib_1.__importStar(require("./payment-providers/payment-providers.js"));
|
|
14
|
+
const payment_providers_1 = require("./payment-providers/payment-providers.js");
|
|
13
15
|
const RevenueAPI = tslib_1.__importStar(require("./revenue/revenue.js"));
|
|
14
16
|
const revenue_1 = require("./revenue/revenue.js");
|
|
15
17
|
class V1 extends resource_1.APIResource {
|
|
16
18
|
constructor() {
|
|
17
19
|
super(...arguments);
|
|
20
|
+
this.auth = new AuthAPI.Auth(this._client);
|
|
18
21
|
this.analytics = new AnalyticsAPI.Analytics(this._client);
|
|
19
22
|
this.revenue = new RevenueAPI.Revenue(this._client);
|
|
20
23
|
this.projects = new ProjectsAPI.Projects(this._client);
|
|
@@ -22,6 +25,7 @@ class V1 extends resource_1.APIResource {
|
|
|
22
25
|
}
|
|
23
26
|
}
|
|
24
27
|
exports.V1 = V1;
|
|
28
|
+
V1.Auth = auth_1.Auth;
|
|
25
29
|
V1.Analytics = analytics_1.Analytics;
|
|
26
30
|
V1.Revenue = revenue_1.Revenue;
|
|
27
31
|
V1.Projects = projects_1.Projects;
|
package/resources/v1/v1.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1.js","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,
|
|
1
|
+
{"version":3,"file":"v1.js","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,2DAAkC;AAClC,oCAA4E;AAC5E,mEAA0C;AAC1C,4CAUoB;AACpB,+EAAsD;AACtD,wDA8B+B;AAC/B,sGAA6E;AAC7E,gFAa+C;AAC/C,yEAAgD;AAChD,kDAiB2B;AAE3B,MAAa,EAAG,SAAQ,sBAAW;IAAnC;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpD,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,qBAAgB,GAAyC,IAAI,mBAAmB,CAAC,gBAAgB,CAC/F,IAAI,CAAC,OAAO,CACb,CAAC;IACJ,CAAC;CAAA;AARD,gBAQC;AAED,EAAE,CAAC,IAAI,GAAG,WAAI,CAAC;AACf,EAAE,CAAC,SAAS,GAAG,qBAAS,CAAC;AACzB,EAAE,CAAC,OAAO,GAAG,iBAAO,CAAC;AACrB,EAAE,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AACvB,EAAE,CAAC,gBAAgB,GAAG,oCAAgB,CAAC"}
|
package/resources/v1/v1.mjs
CHANGED
|
@@ -1,22 +1,26 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
-
import * as
|
|
4
|
-
import {
|
|
3
|
+
import * as AuthAPI from "./auth.mjs";
|
|
4
|
+
import { Auth } from "./auth.mjs";
|
|
5
5
|
import * as ProjectsAPI from "./projects.mjs";
|
|
6
6
|
import { Projects, } from "./projects.mjs";
|
|
7
7
|
import * as AnalyticsAPI from "./analytics/analytics.mjs";
|
|
8
8
|
import { Analytics, } from "./analytics/analytics.mjs";
|
|
9
|
+
import * as PaymentProvidersAPI from "./payment-providers/payment-providers.mjs";
|
|
10
|
+
import { PaymentProviders, } from "./payment-providers/payment-providers.mjs";
|
|
9
11
|
import * as RevenueAPI from "./revenue/revenue.mjs";
|
|
10
12
|
import { Revenue, } from "./revenue/revenue.mjs";
|
|
11
13
|
export class V1 extends APIResource {
|
|
12
14
|
constructor() {
|
|
13
15
|
super(...arguments);
|
|
16
|
+
this.auth = new AuthAPI.Auth(this._client);
|
|
14
17
|
this.analytics = new AnalyticsAPI.Analytics(this._client);
|
|
15
18
|
this.revenue = new RevenueAPI.Revenue(this._client);
|
|
16
19
|
this.projects = new ProjectsAPI.Projects(this._client);
|
|
17
20
|
this.paymentProviders = new PaymentProvidersAPI.PaymentProviders(this._client);
|
|
18
21
|
}
|
|
19
22
|
}
|
|
23
|
+
V1.Auth = Auth;
|
|
20
24
|
V1.Analytics = Analytics;
|
|
21
25
|
V1.Revenue = Revenue;
|
|
22
26
|
V1.Projects = Projects;
|
package/resources/v1/v1.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1.mjs","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,
|
|
1
|
+
{"version":3,"file":"v1.mjs","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAE,IAAI,EAAgD;OACtD,KAAK,WAAW;OAChB,EAQL,QAAQ,GAET;OACM,KAAK,YAAY;OACjB,EAEL,SAAS,GA4BV;OACM,KAAK,mBAAmB;OACxB,EASL,gBAAgB,GAIjB;OACM,KAAK,UAAU;OACf,EAQL,OAAO,GASR;AAED,MAAM,OAAO,EAAG,SAAQ,WAAW;IAAnC;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpD,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,qBAAgB,GAAyC,IAAI,mBAAmB,CAAC,gBAAgB,CAC/F,IAAI,CAAC,OAAO,CACb,CAAC;IACJ,CAAC;CAAA;AAED,EAAE,CAAC,IAAI,GAAG,IAAI,CAAC;AACf,EAAE,CAAC,SAAS,GAAG,SAAS,CAAC;AACzB,EAAE,CAAC,OAAO,GAAG,OAAO,CAAC;AACrB,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC;AACvB,EAAE,CAAC,gBAAgB,GAAG,gBAAgB,CAAC"}
|