zorihq 0.15.0 → 0.18.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 +24 -0
- package/client.d.mts +4 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +4 -4
- package/client.d.ts.map +1 -1
- package/client.js +15 -9
- package/client.js.map +1 -1
- package/client.mjs +15 -9
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/v1/analytics/analytics.d.mts +128 -27
- package/resources/v1/analytics/analytics.d.mts.map +1 -1
- package/resources/v1/analytics/analytics.d.ts +128 -27
- package/resources/v1/analytics/analytics.d.ts.map +1 -1
- package/resources/v1/analytics/analytics.js +8 -14
- package/resources/v1/analytics/analytics.js.map +1 -1
- package/resources/v1/analytics/analytics.mjs +8 -14
- package/resources/v1/analytics/analytics.mjs.map +1 -1
- package/resources/v1/analytics/index.d.mts +2 -4
- package/resources/v1/analytics/index.d.mts.map +1 -1
- package/resources/v1/analytics/index.d.ts +2 -4
- package/resources/v1/analytics/index.d.ts.map +1 -1
- package/resources/v1/analytics/index.js +1 -5
- package/resources/v1/analytics/index.js.map +1 -1
- package/resources/v1/analytics/index.mjs +0 -2
- package/resources/v1/analytics/index.mjs.map +1 -1
- package/resources/v1/analytics/tiles.d.mts +148 -127
- package/resources/v1/analytics/tiles.d.mts.map +1 -1
- package/resources/v1/analytics/tiles.d.ts +148 -127
- package/resources/v1/analytics/tiles.d.ts.map +1 -1
- package/resources/v1/analytics/tiles.js +102 -42
- package/resources/v1/analytics/tiles.js.map +1 -1
- package/resources/v1/analytics/tiles.mjs +102 -42
- package/resources/v1/analytics/tiles.mjs.map +1 -1
- package/resources/v1/index.d.mts +1 -1
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +1 -1
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/v1.d.mts +2 -2
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +2 -2
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs.map +1 -1
- package/src/client.ts +20 -14
- package/src/resources/v1/analytics/analytics.ts +246 -92
- package/src/resources/v1/analytics/index.ts +42 -30
- package/src/resources/v1/analytics/tiles.ts +207 -182
- package/src/resources/v1/index.ts +25 -2
- package/src/resources/v1/v1.ts +50 -4
- 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
- package/resources/v1/analytics/sessions.d.mts +0 -4
- package/resources/v1/analytics/sessions.d.mts.map +0 -1
- package/resources/v1/analytics/sessions.d.ts +0 -4
- package/resources/v1/analytics/sessions.d.ts.map +0 -1
- package/resources/v1/analytics/sessions.js +0 -9
- package/resources/v1/analytics/sessions.js.map +0 -1
- package/resources/v1/analytics/sessions.mjs +0 -5
- package/resources/v1/analytics/sessions.mjs.map +0 -1
- package/resources/v1/analytics/users.d.mts +0 -4
- package/resources/v1/analytics/users.d.mts.map +0 -1
- package/resources/v1/analytics/users.d.ts +0 -4
- package/resources/v1/analytics/users.d.ts.map +0 -1
- package/resources/v1/analytics/users.js +0 -9
- package/resources/v1/analytics/users.js.map +0 -1
- package/resources/v1/analytics/users.mjs +0 -5
- package/resources/v1/analytics/users.mjs.map +0 -1
- package/src/resources/v1/analytics/sessions.ts +0 -5
- package/src/resources/v1/analytics/users.ts +0 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8CA0C2B;AAzCzB,kGAAA,SAAS,OAAA;AA0CX,kCAA2F;AAAlF,4FAAA,IAAI,OAAA;AACb,sDAamC;AAZjC,yGAAA,gBAAgB,OAAA;AAalB,0CAUoB;AATlB,oGAAA,QAAQ,OAAA;AAUV,4CAiByB;AAhBvB,gGAAA,OAAO,OAAA;AAiBT,8BAA0B;AAAjB,wFAAA,EAAE,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,SAAS,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,SAAS,GAyCV;OACM,EAAE,IAAI,EAA+D;OACrE,EACL,gBAAgB,GAYjB;OACM,EACL,QAAQ,GAST;OACM,EACL,OAAO,GAgBR;OACM,EAAE,EAAE,EAAE"}
|
package/resources/v1/v1.d.mts
CHANGED
|
@@ -4,7 +4,7 @@ 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
|
-
import { Analytics,
|
|
7
|
+
import { Analytics, AnalyticsTimelineParams, BounceRateResponse, CardPrecision, ChurnRateResponse, CohortAnalysisResponse, CohortData, CountryTrafficSourceData, CountryTrafficSourceResponse, DauResponse, EntryPagesData, EntryPagesResponse, EventFilterOptionsResponse, EventsOverTimeDataPoint, ExitPagesData, ExitPagesResponse, ManualIdentifyRequest, ManualIdentifyResponse, MauResponse, PagesPerSessionResponse, RecentEvent, RecentEventsResponse, RefererTrafficSourceData, RefererTrafficSourceResponse, ReturnRateResponse, SessionDurationResponse, TimeBetweenVisitsResponse, TimelineTileData, TimelineTileResponse, TopVisitor, TopVisitorsResponse, UniqueSessionsResponse, UniqueVisitorsResponse, UtmTrafficSourceResponse, VisitorDataPoint, VisitorEvent, VisitorProfileResponse, VisitorsByBrowserResponse, VisitorsByDeviceResponse, VisitorsByOsResponse, WauResponse } from "./analytics/analytics.mjs";
|
|
8
8
|
import * as PaymentProvidersAPI from "./payment-providers/payment-providers.mjs";
|
|
9
9
|
import { CreatePaymentProviderRequest, ListPaymentProvidersResponse, PaymentProviderCreateParams, PaymentProviderDeleteResponse, PaymentProviderInstructionsParams, PaymentProviderListParams, PaymentProviderResponse, PaymentProviderUpdateParams, PaymentProviders, ProviderField, ProviderInstructionsResponse, UpdatePaymentProviderRequest } from "./payment-providers/payment-providers.mjs";
|
|
10
10
|
import * as RevenueAPI from "./revenue/revenue.mjs";
|
|
@@ -18,7 +18,7 @@ export declare class V1 extends APIResource {
|
|
|
18
18
|
}
|
|
19
19
|
export declare namespace V1 {
|
|
20
20
|
export { Auth as Auth, type LoginRequest as LoginRequest, type LoginResponse as LoginResponse, type AuthLoginParams as AuthLoginParams, };
|
|
21
|
-
export { Analytics as Analytics, type ChurnRateResponse as ChurnRateResponse, type CohortAnalysisResponse as CohortAnalysisResponse, type CohortData as CohortData, type EventFilterOptionsResponse as EventFilterOptionsResponse, type EventsOverTimeDataPoint as EventsOverTimeDataPoint, type ManualIdentifyRequest as ManualIdentifyRequest, type ManualIdentifyResponse as ManualIdentifyResponse, type RecentEvent as RecentEvent, type RecentEventsResponse as RecentEventsResponse, type TopVisitor as TopVisitor, type TopVisitorsResponse as TopVisitorsResponse, type VisitorDataPoint as VisitorDataPoint, type VisitorEvent as VisitorEvent, type VisitorProfileResponse as VisitorProfileResponse, type VisitorsByDeviceResponse as VisitorsByDeviceResponse, type
|
|
21
|
+
export { Analytics as Analytics, type BounceRateResponse as BounceRateResponse, type CardPrecision as CardPrecision, type ChurnRateResponse as ChurnRateResponse, type CohortAnalysisResponse as CohortAnalysisResponse, type CohortData as CohortData, type CountryTrafficSourceData as CountryTrafficSourceData, type CountryTrafficSourceResponse as CountryTrafficSourceResponse, type DauResponse as DauResponse, type EntryPagesData as EntryPagesData, type EntryPagesResponse as EntryPagesResponse, type EventFilterOptionsResponse as EventFilterOptionsResponse, type EventsOverTimeDataPoint as EventsOverTimeDataPoint, type ExitPagesData as ExitPagesData, type ExitPagesResponse as ExitPagesResponse, type ManualIdentifyRequest as ManualIdentifyRequest, type ManualIdentifyResponse as ManualIdentifyResponse, type MauResponse as MauResponse, type PagesPerSessionResponse as PagesPerSessionResponse, type RecentEvent as RecentEvent, type RecentEventsResponse as RecentEventsResponse, type RefererTrafficSourceData as RefererTrafficSourceData, type RefererTrafficSourceResponse as RefererTrafficSourceResponse, type ReturnRateResponse as ReturnRateResponse, type SessionDurationResponse as SessionDurationResponse, type TimeBetweenVisitsResponse as TimeBetweenVisitsResponse, type TimelineTileData as TimelineTileData, type TimelineTileResponse as TimelineTileResponse, type TopVisitor as TopVisitor, type TopVisitorsResponse as TopVisitorsResponse, type UniqueSessionsResponse as UniqueSessionsResponse, type UniqueVisitorsResponse as UniqueVisitorsResponse, type UtmTrafficSourceResponse as UtmTrafficSourceResponse, type VisitorDataPoint as VisitorDataPoint, type VisitorEvent as VisitorEvent, type VisitorProfileResponse as VisitorProfileResponse, type VisitorsByBrowserResponse as VisitorsByBrowserResponse, type VisitorsByDeviceResponse as VisitorsByDeviceResponse, type VisitorsByOsResponse as VisitorsByOsResponse, type WauResponse as WauResponse, type AnalyticsTimelineParams as AnalyticsTimelineParams, };
|
|
22
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, };
|
|
23
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, };
|
|
24
24
|
export { PaymentProviders as PaymentProviders, type CreatePaymentProviderRequest as CreatePaymentProviderRequest, type ListPaymentProvidersResponse as ListPaymentProvidersResponse, type PaymentProviderResponse as PaymentProviderResponse, type ProviderField as ProviderField, type ProviderInstructionsResponse as ProviderInstructionsResponse, type UpdatePaymentProviderRequest as UpdatePaymentProviderRequest, type PaymentProviderDeleteResponse as PaymentProviderDeleteResponse, type PaymentProviderCreateParams as PaymentProviderCreateParams, type PaymentProviderUpdateParams as PaymentProviderUpdateParams, type PaymentProviderListParams as PaymentProviderListParams, type PaymentProviderInstructionsParams as PaymentProviderInstructionsParams, };
|
|
@@ -1 +1 @@
|
|
|
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,SAAS,EACT
|
|
1
|
+
{"version":3,"file":"v1.d.mts","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names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AAqB,IAAI,qBAAqB,GACpD,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,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
|
@@ -4,7 +4,7 @@ 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
|
-
import { Analytics,
|
|
7
|
+
import { Analytics, AnalyticsTimelineParams, BounceRateResponse, CardPrecision, ChurnRateResponse, CohortAnalysisResponse, CohortData, CountryTrafficSourceData, CountryTrafficSourceResponse, DauResponse, EntryPagesData, EntryPagesResponse, EventFilterOptionsResponse, EventsOverTimeDataPoint, ExitPagesData, ExitPagesResponse, ManualIdentifyRequest, ManualIdentifyResponse, MauResponse, PagesPerSessionResponse, RecentEvent, RecentEventsResponse, RefererTrafficSourceData, RefererTrafficSourceResponse, ReturnRateResponse, SessionDurationResponse, TimeBetweenVisitsResponse, TimelineTileData, TimelineTileResponse, TopVisitor, TopVisitorsResponse, UniqueSessionsResponse, UniqueVisitorsResponse, UtmTrafficSourceResponse, VisitorDataPoint, VisitorEvent, VisitorProfileResponse, VisitorsByBrowserResponse, VisitorsByDeviceResponse, VisitorsByOsResponse, WauResponse } from "./analytics/analytics.js";
|
|
8
8
|
import * as PaymentProvidersAPI from "./payment-providers/payment-providers.js";
|
|
9
9
|
import { CreatePaymentProviderRequest, ListPaymentProvidersResponse, PaymentProviderCreateParams, PaymentProviderDeleteResponse, PaymentProviderInstructionsParams, PaymentProviderListParams, PaymentProviderResponse, PaymentProviderUpdateParams, PaymentProviders, ProviderField, ProviderInstructionsResponse, UpdatePaymentProviderRequest } from "./payment-providers/payment-providers.js";
|
|
10
10
|
import * as RevenueAPI from "./revenue/revenue.js";
|
|
@@ -18,7 +18,7 @@ export declare class V1 extends APIResource {
|
|
|
18
18
|
}
|
|
19
19
|
export declare namespace V1 {
|
|
20
20
|
export { Auth as Auth, type LoginRequest as LoginRequest, type LoginResponse as LoginResponse, type AuthLoginParams as AuthLoginParams, };
|
|
21
|
-
export { Analytics as Analytics, type ChurnRateResponse as ChurnRateResponse, type CohortAnalysisResponse as CohortAnalysisResponse, type CohortData as CohortData, type EventFilterOptionsResponse as EventFilterOptionsResponse, type EventsOverTimeDataPoint as EventsOverTimeDataPoint, type ManualIdentifyRequest as ManualIdentifyRequest, type ManualIdentifyResponse as ManualIdentifyResponse, type RecentEvent as RecentEvent, type RecentEventsResponse as RecentEventsResponse, type TopVisitor as TopVisitor, type TopVisitorsResponse as TopVisitorsResponse, type VisitorDataPoint as VisitorDataPoint, type VisitorEvent as VisitorEvent, type VisitorProfileResponse as VisitorProfileResponse, type VisitorsByDeviceResponse as VisitorsByDeviceResponse, type
|
|
21
|
+
export { Analytics as Analytics, type BounceRateResponse as BounceRateResponse, type CardPrecision as CardPrecision, type ChurnRateResponse as ChurnRateResponse, type CohortAnalysisResponse as CohortAnalysisResponse, type CohortData as CohortData, type CountryTrafficSourceData as CountryTrafficSourceData, type CountryTrafficSourceResponse as CountryTrafficSourceResponse, type DauResponse as DauResponse, type EntryPagesData as EntryPagesData, type EntryPagesResponse as EntryPagesResponse, type EventFilterOptionsResponse as EventFilterOptionsResponse, type EventsOverTimeDataPoint as EventsOverTimeDataPoint, type ExitPagesData as ExitPagesData, type ExitPagesResponse as ExitPagesResponse, type ManualIdentifyRequest as ManualIdentifyRequest, type ManualIdentifyResponse as ManualIdentifyResponse, type MauResponse as MauResponse, type PagesPerSessionResponse as PagesPerSessionResponse, type RecentEvent as RecentEvent, type RecentEventsResponse as RecentEventsResponse, type RefererTrafficSourceData as RefererTrafficSourceData, type RefererTrafficSourceResponse as RefererTrafficSourceResponse, type ReturnRateResponse as ReturnRateResponse, type SessionDurationResponse as SessionDurationResponse, type TimeBetweenVisitsResponse as TimeBetweenVisitsResponse, type TimelineTileData as TimelineTileData, type TimelineTileResponse as TimelineTileResponse, type TopVisitor as TopVisitor, type TopVisitorsResponse as TopVisitorsResponse, type UniqueSessionsResponse as UniqueSessionsResponse, type UniqueVisitorsResponse as UniqueVisitorsResponse, type UtmTrafficSourceResponse as UtmTrafficSourceResponse, type VisitorDataPoint as VisitorDataPoint, type VisitorEvent as VisitorEvent, type VisitorProfileResponse as VisitorProfileResponse, type VisitorsByBrowserResponse as VisitorsByBrowserResponse, type VisitorsByDeviceResponse as VisitorsByDeviceResponse, type VisitorsByOsResponse as VisitorsByOsResponse, type WauResponse as WauResponse, type AnalyticsTimelineParams as AnalyticsTimelineParams, };
|
|
22
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, };
|
|
23
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, };
|
|
24
24
|
export { PaymentProviders as PaymentProviders, type CreatePaymentProviderRequest as CreatePaymentProviderRequest, type ListPaymentProvidersResponse as ListPaymentProvidersResponse, type PaymentProviderResponse as PaymentProviderResponse, type ProviderField as ProviderField, type ProviderInstructionsResponse as ProviderInstructionsResponse, type UpdatePaymentProviderRequest as UpdatePaymentProviderRequest, type PaymentProviderDeleteResponse as PaymentProviderDeleteResponse, type PaymentProviderCreateParams as PaymentProviderCreateParams, type PaymentProviderUpdateParams as PaymentProviderUpdateParams, type PaymentProviderListParams as PaymentProviderListParams, type PaymentProviderInstructionsParams as PaymentProviderInstructionsParams, };
|
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,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,SAAS,EACT
|
|
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,SAAS,EACT,uBAAuB,EACvB,kBAAkB,EAClB,aAAa,EACb,iBAAiB,EACjB,sBAAsB,EACtB,UAAU,EACV,wBAAwB,EACxB,4BAA4B,EAC5B,WAAW,EACX,cAAc,EACd,kBAAkB,EAClB,0BAA0B,EAC1B,uBAAuB,EACvB,aAAa,EACb,iBAAiB,EACjB,qBAAqB,EACrB,sBAAsB,EACtB,WAAW,EACX,uBAAuB,EACvB,WAAW,EACX,oBAAoB,EACpB,wBAAwB,EACxB,4BAA4B,EAC5B,kBAAkB,EAClB,uBAAuB,EACvB,yBAAyB,EACzB,gBAAgB,EAChB,oBAAoB,EACpB,UAAU,EACV,mBAAmB,EACnB,sBAAsB,EACtB,sBAAsB,EACtB,wBAAwB,EACxB,gBAAgB,EAChB,YAAY,EACZ,sBAAsB,EACtB,yBAAyB,EACzB,wBAAwB,EACxB,oBAAoB,EACpB,WAAW,EACZ;OACM,KAAK,mBAAmB;OACxB,EACL,4BAA4B,EAC5B,4BAA4B,EAC5B,2BAA2B,EAC3B,6BAA6B,EAC7B,iCAAiC,EACjC,yBAAyB,EACzB,uBAAuB,EACvB,2BAA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5E,mEAA0C;AAC1C,4CAUoB;AACpB,+EAAsD;AACtD,
|
|
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,wDA0C+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.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,OAAO;OACZ,EAAE,IAAI,EAAgD;OACtD,KAAK,WAAW;OAChB,EAQL,QAAQ,GAET;OACM,KAAK,YAAY;OACjB,EACL,SAAS,
|
|
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,EACL,SAAS,GAyCV;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"}
|
package/src/client.ts
CHANGED
|
@@ -34,7 +34,7 @@ export interface ClientOptions {
|
|
|
34
34
|
/**
|
|
35
35
|
* Defaults to process.env['ZORIAPI_API_KEY'].
|
|
36
36
|
*/
|
|
37
|
-
apiKey?: string | undefined;
|
|
37
|
+
apiKey?: string | null | undefined;
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
40
|
* Override the default base URL for the API, e.g., "https://api.example.com/v2/"
|
|
@@ -109,7 +109,7 @@ export interface ClientOptions {
|
|
|
109
109
|
* API Client for interfacing with the Zoriapi API.
|
|
110
110
|
*/
|
|
111
111
|
export class Zoriapi {
|
|
112
|
-
apiKey: string;
|
|
112
|
+
apiKey: string | null;
|
|
113
113
|
|
|
114
114
|
baseURL: string;
|
|
115
115
|
maxRetries: number;
|
|
@@ -126,8 +126,8 @@ export class Zoriapi {
|
|
|
126
126
|
/**
|
|
127
127
|
* API Client for interfacing with the Zoriapi API.
|
|
128
128
|
*
|
|
129
|
-
* @param {string | undefined} [opts.apiKey=process.env['ZORIAPI_API_KEY'] ??
|
|
130
|
-
* @param {string} [opts.baseURL=process.env['ZORIAPI_BASE_URL'] ?? /api/v1] - Override the default base URL for the API.
|
|
129
|
+
* @param {string | null | undefined} [opts.apiKey=process.env['ZORIAPI_API_KEY'] ?? null]
|
|
130
|
+
* @param {string} [opts.baseURL=process.env['ZORIAPI_BASE_URL'] ?? https://api.zorihq.com/api/v1] - Override the default base URL for the API.
|
|
131
131
|
* @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
|
|
132
132
|
* @param {MergedRequestInit} [opts.fetchOptions] - Additional `RequestInit` options to be passed to `fetch` calls.
|
|
133
133
|
* @param {Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
|
|
@@ -137,19 +137,13 @@ export class Zoriapi {
|
|
|
137
137
|
*/
|
|
138
138
|
constructor({
|
|
139
139
|
baseURL = readEnv('ZORIAPI_BASE_URL'),
|
|
140
|
-
apiKey = readEnv('ZORIAPI_API_KEY'),
|
|
140
|
+
apiKey = readEnv('ZORIAPI_API_KEY') ?? null,
|
|
141
141
|
...opts
|
|
142
142
|
}: ClientOptions = {}) {
|
|
143
|
-
if (apiKey === undefined) {
|
|
144
|
-
throw new Errors.ZoriapiError(
|
|
145
|
-
"The ZORIAPI_API_KEY environment variable is missing or empty; either provide it, or instantiate the Zoriapi client with an apiKey option, like new Zoriapi({ apiKey: 'My API Key' }).",
|
|
146
|
-
);
|
|
147
|
-
}
|
|
148
|
-
|
|
149
143
|
const options: ClientOptions = {
|
|
150
144
|
apiKey,
|
|
151
145
|
...opts,
|
|
152
|
-
baseURL: baseURL ||
|
|
146
|
+
baseURL: baseURL || `https://api.zorihq.com/api/v1`,
|
|
153
147
|
};
|
|
154
148
|
|
|
155
149
|
this.baseURL = options.baseURL!;
|
|
@@ -195,7 +189,7 @@ export class Zoriapi {
|
|
|
195
189
|
* Check whether the base URL is set to its default.
|
|
196
190
|
*/
|
|
197
191
|
#baseURLOverridden(): boolean {
|
|
198
|
-
return this.baseURL !== '/api/v1';
|
|
192
|
+
return this.baseURL !== 'https://api.zorihq.com/api/v1';
|
|
199
193
|
}
|
|
200
194
|
|
|
201
195
|
protected defaultQuery(): Record<string, string | undefined> | undefined {
|
|
@@ -203,10 +197,22 @@ export class Zoriapi {
|
|
|
203
197
|
}
|
|
204
198
|
|
|
205
199
|
protected validateHeaders({ values, nulls }: NullableHeaders) {
|
|
206
|
-
|
|
200
|
+
if (this.apiKey && values.get('authorization')) {
|
|
201
|
+
return;
|
|
202
|
+
}
|
|
203
|
+
if (nulls.has('authorization')) {
|
|
204
|
+
return;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
throw new Error(
|
|
208
|
+
'Could not resolve authentication method. Expected the apiKey to be set. Or for the "Authorization" headers to be explicitly omitted',
|
|
209
|
+
);
|
|
207
210
|
}
|
|
208
211
|
|
|
209
212
|
protected async authHeaders(opts: FinalRequestOptions): Promise<NullableHeaders | undefined> {
|
|
213
|
+
if (this.apiKey == null) {
|
|
214
|
+
return undefined;
|
|
215
|
+
}
|
|
210
216
|
return buildHeaders([{ Authorization: this.apiKey }]);
|
|
211
217
|
}
|
|
212
218
|
|
|
@@ -5,40 +5,27 @@ import * as EventsAPI from './events';
|
|
|
5
5
|
import { EventFilterOptionsParams, EventRecentParams, Events } from './events';
|
|
6
6
|
import * as RetentionAPI from './retention';
|
|
7
7
|
import { Retention, RetentionChurnRateParams, RetentionCohortsParams } from './retention';
|
|
8
|
-
import * as SessionsAPI from './sessions';
|
|
9
|
-
import { Sessions } from './sessions';
|
|
10
8
|
import * as TilesAPI from './tiles';
|
|
11
9
|
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
TileGetTrafficByRefererResponse,
|
|
30
|
-
TileGetTrafficByUtmParams,
|
|
31
|
-
TileGetTrafficByUtmResponse,
|
|
32
|
-
TileGetUniqueSessionsParams,
|
|
33
|
-
TileGetUniqueSessionsResponse,
|
|
34
|
-
TileGetUniqueVisitorsParams,
|
|
35
|
-
TileGetUniqueVisitorsResponse,
|
|
36
|
-
TileGetWeeklyActiveUsersParams,
|
|
37
|
-
TileGetWeeklyActiveUsersResponse,
|
|
10
|
+
TileBounceRateParams,
|
|
11
|
+
TileDauParams,
|
|
12
|
+
TileEntryPagesParams,
|
|
13
|
+
TileExitPagesParams,
|
|
14
|
+
TileMauParams,
|
|
15
|
+
TilePagesPerSessionParams,
|
|
16
|
+
TileReturnRateParams,
|
|
17
|
+
TileSessionDurationParams,
|
|
18
|
+
TileTimeBetweenVisitsParams,
|
|
19
|
+
TileTrafficByCountryParams,
|
|
20
|
+
TileTrafficByRefererParams,
|
|
21
|
+
TileTrafficByUtmParams,
|
|
22
|
+
TileUniqueSessionsParams,
|
|
23
|
+
TileUniqueVisitorsParams,
|
|
24
|
+
TileVisitorsByBrowserParams,
|
|
25
|
+
TileVisitorsByOsParams,
|
|
26
|
+
TileWauParams,
|
|
38
27
|
Tiles,
|
|
39
28
|
} from './tiles';
|
|
40
|
-
import * as UsersAPI from './users';
|
|
41
|
-
import { Users } from './users';
|
|
42
29
|
import * as VisitorsAPI from './visitors';
|
|
43
30
|
import {
|
|
44
31
|
VisitorByDeviceParams,
|
|
@@ -53,10 +40,8 @@ import { RequestOptions } from '../../../internal/request-options';
|
|
|
53
40
|
export class Analytics extends APIResource {
|
|
54
41
|
visitors: VisitorsAPI.Visitors = new VisitorsAPI.Visitors(this._client);
|
|
55
42
|
events: EventsAPI.Events = new EventsAPI.Events(this._client);
|
|
56
|
-
sessions: SessionsAPI.Sessions = new SessionsAPI.Sessions(this._client);
|
|
57
|
-
users: UsersAPI.Users = new UsersAPI.Users(this._client);
|
|
58
|
-
retention: RetentionAPI.Retention = new RetentionAPI.Retention(this._client);
|
|
59
43
|
tiles: TilesAPI.Tiles = new TilesAPI.Tiles(this._client);
|
|
44
|
+
retention: RetentionAPI.Retention = new RetentionAPI.Retention(this._client);
|
|
60
45
|
|
|
61
46
|
/**
|
|
62
47
|
* Get unique visitor counts over time, split by mobile and desktop devices for
|
|
@@ -64,19 +49,26 @@ export class Analytics extends APIResource {
|
|
|
64
49
|
*
|
|
65
50
|
* @example
|
|
66
51
|
* ```ts
|
|
67
|
-
* const
|
|
68
|
-
* {
|
|
69
|
-
*
|
|
52
|
+
* const timelineTileResponse =
|
|
53
|
+
* await client.v1.analytics.timeline({
|
|
54
|
+
* project_id: 'project_id',
|
|
55
|
+
* time_range: 'last_hour',
|
|
56
|
+
* });
|
|
70
57
|
* ```
|
|
71
58
|
*/
|
|
72
|
-
|
|
73
|
-
query: AnalyticsRetrieveTimelineParams,
|
|
74
|
-
options?: RequestOptions,
|
|
75
|
-
): APIPromise<AnalyticsRetrieveTimelineResponse> {
|
|
59
|
+
timeline(query: AnalyticsTimelineParams, options?: RequestOptions): APIPromise<TimelineTileResponse> {
|
|
76
60
|
return this._client.get('/api/v1/analytics/timeline', { query, ...options });
|
|
77
61
|
}
|
|
78
62
|
}
|
|
79
63
|
|
|
64
|
+
export interface BounceRateResponse {
|
|
65
|
+
previous_rate?: number;
|
|
66
|
+
|
|
67
|
+
rate?: number;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export type CardPrecision = 'minutes' | 'hourly' | 'daily' | 'weekly' | 'monthly';
|
|
71
|
+
|
|
80
72
|
export interface ChurnRateResponse {
|
|
81
73
|
churn_rate_percent?: number;
|
|
82
74
|
|
|
@@ -109,6 +101,36 @@ export interface CohortData {
|
|
|
109
101
|
week_4_retention?: number;
|
|
110
102
|
}
|
|
111
103
|
|
|
104
|
+
export interface CountryTrafficSourceData {
|
|
105
|
+
count?: number;
|
|
106
|
+
|
|
107
|
+
country?: string;
|
|
108
|
+
|
|
109
|
+
previous_count?: number;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export interface CountryTrafficSourceResponse {
|
|
113
|
+
data?: Array<CountryTrafficSourceData>;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export interface DauResponse {
|
|
117
|
+
count?: number;
|
|
118
|
+
|
|
119
|
+
previous_count?: number;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export interface EntryPagesData {
|
|
123
|
+
count?: number;
|
|
124
|
+
|
|
125
|
+
page?: string;
|
|
126
|
+
|
|
127
|
+
previous_count?: number;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export interface EntryPagesResponse {
|
|
131
|
+
data?: Array<EntryPagesData>;
|
|
132
|
+
}
|
|
133
|
+
|
|
112
134
|
export interface EventFilterOptionsResponse {
|
|
113
135
|
event_names?: Array<string>;
|
|
114
136
|
|
|
@@ -123,6 +145,18 @@ export interface EventsOverTimeDataPoint {
|
|
|
123
145
|
timestamp?: string;
|
|
124
146
|
}
|
|
125
147
|
|
|
148
|
+
export interface ExitPagesData {
|
|
149
|
+
count?: number;
|
|
150
|
+
|
|
151
|
+
page?: string;
|
|
152
|
+
|
|
153
|
+
previous_count?: number;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export interface ExitPagesResponse {
|
|
157
|
+
data?: Array<ExitPagesData>;
|
|
158
|
+
}
|
|
159
|
+
|
|
126
160
|
export interface ManualIdentifyRequest {
|
|
127
161
|
project_id: string;
|
|
128
162
|
|
|
@@ -149,6 +183,18 @@ export interface ManualIdentifyResponse {
|
|
|
149
183
|
visitor_id?: string;
|
|
150
184
|
}
|
|
151
185
|
|
|
186
|
+
export interface MauResponse {
|
|
187
|
+
count?: number;
|
|
188
|
+
|
|
189
|
+
previous_count?: number;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export interface PagesPerSessionResponse {
|
|
193
|
+
avg_pages?: number;
|
|
194
|
+
|
|
195
|
+
previous_avg_pages?: number;
|
|
196
|
+
}
|
|
197
|
+
|
|
152
198
|
export interface RecentEvent {
|
|
153
199
|
browser_name?: string;
|
|
154
200
|
|
|
@@ -217,6 +263,60 @@ export interface RecentEventsResponse {
|
|
|
217
263
|
total?: number;
|
|
218
264
|
}
|
|
219
265
|
|
|
266
|
+
export interface RefererTrafficSourceData {
|
|
267
|
+
count?: number;
|
|
268
|
+
|
|
269
|
+
previous_count?: number;
|
|
270
|
+
|
|
271
|
+
previous_revenue?: number;
|
|
272
|
+
|
|
273
|
+
referer_url?: string;
|
|
274
|
+
|
|
275
|
+
revenue?: number;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
export interface RefererTrafficSourceResponse {
|
|
279
|
+
data?: Array<RefererTrafficSourceData>;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
export interface ReturnRateResponse {
|
|
283
|
+
previous_rate?: number;
|
|
284
|
+
|
|
285
|
+
rate?: number;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
export interface SessionDurationResponse {
|
|
289
|
+
avg_duration?: number;
|
|
290
|
+
|
|
291
|
+
previous_avg_duration?: number;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
export interface TimeBetweenVisitsResponse {
|
|
295
|
+
avg_hours?: number;
|
|
296
|
+
|
|
297
|
+
previous_avg_hours?: number;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
export interface TimelineTileData {
|
|
301
|
+
num_desktop_visits?: number;
|
|
302
|
+
|
|
303
|
+
num_mobile_visits?: number;
|
|
304
|
+
|
|
305
|
+
num_revenue?: number;
|
|
306
|
+
|
|
307
|
+
num_unknown_visits?: number;
|
|
308
|
+
|
|
309
|
+
time_bucket?: string;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
export interface TimelineTileResponse {
|
|
313
|
+
data?: Array<TimelineTileData>;
|
|
314
|
+
|
|
315
|
+
precision?: CardPrecision;
|
|
316
|
+
|
|
317
|
+
total_visits?: number;
|
|
318
|
+
}
|
|
319
|
+
|
|
220
320
|
export interface TopVisitor {
|
|
221
321
|
browser_name?: string;
|
|
222
322
|
|
|
@@ -261,6 +361,40 @@ export interface TopVisitorsResponse {
|
|
|
261
361
|
visitors?: Array<TopVisitor>;
|
|
262
362
|
}
|
|
263
363
|
|
|
364
|
+
export interface UniqueSessionsResponse {
|
|
365
|
+
count?: number;
|
|
366
|
+
|
|
367
|
+
previous_count?: number;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
export interface UniqueVisitorsResponse {
|
|
371
|
+
count?: number;
|
|
372
|
+
|
|
373
|
+
previous_count?: number;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
export interface UtmTrafficSourceResponse {
|
|
377
|
+
data?: Array<UtmTrafficSourceResponse.Data>;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
export namespace UtmTrafficSourceResponse {
|
|
381
|
+
export interface Data {
|
|
382
|
+
count?: number;
|
|
383
|
+
|
|
384
|
+
previous_count?: number;
|
|
385
|
+
|
|
386
|
+
previous_revenue?: number;
|
|
387
|
+
|
|
388
|
+
revenue?: number;
|
|
389
|
+
|
|
390
|
+
utm_campaign?: string;
|
|
391
|
+
|
|
392
|
+
utm_medium?: string;
|
|
393
|
+
|
|
394
|
+
utm_source?: string;
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
|
|
264
398
|
export interface VisitorDataPoint {
|
|
265
399
|
desktop?: number;
|
|
266
400
|
|
|
@@ -353,33 +487,45 @@ export interface VisitorProfileResponse {
|
|
|
353
487
|
visitor_id?: string;
|
|
354
488
|
}
|
|
355
489
|
|
|
356
|
-
export interface
|
|
357
|
-
data?: Array<
|
|
490
|
+
export interface VisitorsByBrowserResponse {
|
|
491
|
+
data?: Array<VisitorsByBrowserResponse.Data>;
|
|
358
492
|
}
|
|
359
493
|
|
|
360
|
-
export
|
|
361
|
-
|
|
494
|
+
export namespace VisitorsByBrowserResponse {
|
|
495
|
+
export interface Data {
|
|
496
|
+
browser_name?: string;
|
|
362
497
|
|
|
363
|
-
|
|
498
|
+
count?: number;
|
|
364
499
|
|
|
365
|
-
|
|
500
|
+
previous_count?: number;
|
|
501
|
+
}
|
|
366
502
|
}
|
|
367
503
|
|
|
368
|
-
export
|
|
369
|
-
|
|
370
|
-
|
|
504
|
+
export interface VisitorsByDeviceResponse {
|
|
505
|
+
data?: Array<VisitorDataPoint>;
|
|
506
|
+
}
|
|
371
507
|
|
|
372
|
-
|
|
508
|
+
export interface VisitorsByOsResponse {
|
|
509
|
+
data?: Array<VisitorsByOsResponse.Data>;
|
|
510
|
+
}
|
|
373
511
|
|
|
374
|
-
|
|
512
|
+
export namespace VisitorsByOsResponse {
|
|
513
|
+
export interface Data {
|
|
514
|
+
count?: number;
|
|
375
515
|
|
|
376
|
-
|
|
516
|
+
os_name?: string;
|
|
377
517
|
|
|
378
|
-
|
|
518
|
+
previous_count?: number;
|
|
379
519
|
}
|
|
380
520
|
}
|
|
381
521
|
|
|
382
|
-
export interface
|
|
522
|
+
export interface WauResponse {
|
|
523
|
+
count?: number;
|
|
524
|
+
|
|
525
|
+
previous_count?: number;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
export interface AnalyticsTimelineParams {
|
|
383
529
|
project_id: string;
|
|
384
530
|
|
|
385
531
|
time_range: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
|
|
@@ -401,30 +547,51 @@ export interface AnalyticsRetrieveTimelineParams {
|
|
|
401
547
|
|
|
402
548
|
Analytics.Visitors = Visitors;
|
|
403
549
|
Analytics.Events = Events;
|
|
404
|
-
Analytics.Sessions = Sessions;
|
|
405
|
-
Analytics.Users = Users;
|
|
406
|
-
Analytics.Retention = Retention;
|
|
407
550
|
Analytics.Tiles = Tiles;
|
|
551
|
+
Analytics.Retention = Retention;
|
|
408
552
|
|
|
409
553
|
export declare namespace Analytics {
|
|
410
554
|
export {
|
|
555
|
+
type BounceRateResponse as BounceRateResponse,
|
|
556
|
+
type CardPrecision as CardPrecision,
|
|
411
557
|
type ChurnRateResponse as ChurnRateResponse,
|
|
412
558
|
type CohortAnalysisResponse as CohortAnalysisResponse,
|
|
413
559
|
type CohortData as CohortData,
|
|
560
|
+
type CountryTrafficSourceData as CountryTrafficSourceData,
|
|
561
|
+
type CountryTrafficSourceResponse as CountryTrafficSourceResponse,
|
|
562
|
+
type DauResponse as DauResponse,
|
|
563
|
+
type EntryPagesData as EntryPagesData,
|
|
564
|
+
type EntryPagesResponse as EntryPagesResponse,
|
|
414
565
|
type EventFilterOptionsResponse as EventFilterOptionsResponse,
|
|
415
566
|
type EventsOverTimeDataPoint as EventsOverTimeDataPoint,
|
|
567
|
+
type ExitPagesData as ExitPagesData,
|
|
568
|
+
type ExitPagesResponse as ExitPagesResponse,
|
|
416
569
|
type ManualIdentifyRequest as ManualIdentifyRequest,
|
|
417
570
|
type ManualIdentifyResponse as ManualIdentifyResponse,
|
|
571
|
+
type MauResponse as MauResponse,
|
|
572
|
+
type PagesPerSessionResponse as PagesPerSessionResponse,
|
|
418
573
|
type RecentEvent as RecentEvent,
|
|
419
574
|
type RecentEventsResponse as RecentEventsResponse,
|
|
575
|
+
type RefererTrafficSourceData as RefererTrafficSourceData,
|
|
576
|
+
type RefererTrafficSourceResponse as RefererTrafficSourceResponse,
|
|
577
|
+
type ReturnRateResponse as ReturnRateResponse,
|
|
578
|
+
type SessionDurationResponse as SessionDurationResponse,
|
|
579
|
+
type TimeBetweenVisitsResponse as TimeBetweenVisitsResponse,
|
|
580
|
+
type TimelineTileData as TimelineTileData,
|
|
581
|
+
type TimelineTileResponse as TimelineTileResponse,
|
|
420
582
|
type TopVisitor as TopVisitor,
|
|
421
583
|
type TopVisitorsResponse as TopVisitorsResponse,
|
|
584
|
+
type UniqueSessionsResponse as UniqueSessionsResponse,
|
|
585
|
+
type UniqueVisitorsResponse as UniqueVisitorsResponse,
|
|
586
|
+
type UtmTrafficSourceResponse as UtmTrafficSourceResponse,
|
|
422
587
|
type VisitorDataPoint as VisitorDataPoint,
|
|
423
588
|
type VisitorEvent as VisitorEvent,
|
|
424
589
|
type VisitorProfileResponse as VisitorProfileResponse,
|
|
590
|
+
type VisitorsByBrowserResponse as VisitorsByBrowserResponse,
|
|
425
591
|
type VisitorsByDeviceResponse as VisitorsByDeviceResponse,
|
|
426
|
-
type
|
|
427
|
-
type
|
|
592
|
+
type VisitorsByOsResponse as VisitorsByOsResponse,
|
|
593
|
+
type WauResponse as WauResponse,
|
|
594
|
+
type AnalyticsTimelineParams as AnalyticsTimelineParams,
|
|
428
595
|
};
|
|
429
596
|
|
|
430
597
|
export {
|
|
@@ -441,43 +608,30 @@ export declare namespace Analytics {
|
|
|
441
608
|
type EventRecentParams as EventRecentParams,
|
|
442
609
|
};
|
|
443
610
|
|
|
444
|
-
export {
|
|
445
|
-
|
|
446
|
-
|
|
611
|
+
export {
|
|
612
|
+
Tiles as Tiles,
|
|
613
|
+
type TileBounceRateParams as TileBounceRateParams,
|
|
614
|
+
type TileDauParams as TileDauParams,
|
|
615
|
+
type TileEntryPagesParams as TileEntryPagesParams,
|
|
616
|
+
type TileExitPagesParams as TileExitPagesParams,
|
|
617
|
+
type TileMauParams as TileMauParams,
|
|
618
|
+
type TilePagesPerSessionParams as TilePagesPerSessionParams,
|
|
619
|
+
type TileReturnRateParams as TileReturnRateParams,
|
|
620
|
+
type TileSessionDurationParams as TileSessionDurationParams,
|
|
621
|
+
type TileTimeBetweenVisitsParams as TileTimeBetweenVisitsParams,
|
|
622
|
+
type TileTrafficByCountryParams as TileTrafficByCountryParams,
|
|
623
|
+
type TileTrafficByRefererParams as TileTrafficByRefererParams,
|
|
624
|
+
type TileTrafficByUtmParams as TileTrafficByUtmParams,
|
|
625
|
+
type TileUniqueSessionsParams as TileUniqueSessionsParams,
|
|
626
|
+
type TileUniqueVisitorsParams as TileUniqueVisitorsParams,
|
|
627
|
+
type TileVisitorsByBrowserParams as TileVisitorsByBrowserParams,
|
|
628
|
+
type TileVisitorsByOsParams as TileVisitorsByOsParams,
|
|
629
|
+
type TileWauParams as TileWauParams,
|
|
630
|
+
};
|
|
447
631
|
|
|
448
632
|
export {
|
|
449
633
|
Retention as Retention,
|
|
450
634
|
type RetentionChurnRateParams as RetentionChurnRateParams,
|
|
451
635
|
type RetentionCohortsParams as RetentionCohortsParams,
|
|
452
636
|
};
|
|
453
|
-
|
|
454
|
-
export {
|
|
455
|
-
Tiles as Tiles,
|
|
456
|
-
type TileGetBounceRateResponse as TileGetBounceRateResponse,
|
|
457
|
-
type TileGetDailyActiveUsersResponse as TileGetDailyActiveUsersResponse,
|
|
458
|
-
type TileGetMonthlyActiveUsersResponse as TileGetMonthlyActiveUsersResponse,
|
|
459
|
-
type TileGetPagesPerSessionResponse as TileGetPagesPerSessionResponse,
|
|
460
|
-
type TileGetReturnRateResponse as TileGetReturnRateResponse,
|
|
461
|
-
type TileGetSessionDurationResponse as TileGetSessionDurationResponse,
|
|
462
|
-
type TileGetTimeBetweenVisitsResponse as TileGetTimeBetweenVisitsResponse,
|
|
463
|
-
type TileGetTrafficByCountryResponse as TileGetTrafficByCountryResponse,
|
|
464
|
-
type TileGetTrafficByRefererResponse as TileGetTrafficByRefererResponse,
|
|
465
|
-
type TileGetTrafficByUtmResponse as TileGetTrafficByUtmResponse,
|
|
466
|
-
type TileGetUniqueSessionsResponse as TileGetUniqueSessionsResponse,
|
|
467
|
-
type TileGetUniqueVisitorsResponse as TileGetUniqueVisitorsResponse,
|
|
468
|
-
type TileGetWeeklyActiveUsersResponse as TileGetWeeklyActiveUsersResponse,
|
|
469
|
-
type TileGetBounceRateParams as TileGetBounceRateParams,
|
|
470
|
-
type TileGetDailyActiveUsersParams as TileGetDailyActiveUsersParams,
|
|
471
|
-
type TileGetMonthlyActiveUsersParams as TileGetMonthlyActiveUsersParams,
|
|
472
|
-
type TileGetPagesPerSessionParams as TileGetPagesPerSessionParams,
|
|
473
|
-
type TileGetReturnRateParams as TileGetReturnRateParams,
|
|
474
|
-
type TileGetSessionDurationParams as TileGetSessionDurationParams,
|
|
475
|
-
type TileGetTimeBetweenVisitsParams as TileGetTimeBetweenVisitsParams,
|
|
476
|
-
type TileGetTrafficByCountryParams as TileGetTrafficByCountryParams,
|
|
477
|
-
type TileGetTrafficByRefererParams as TileGetTrafficByRefererParams,
|
|
478
|
-
type TileGetTrafficByUtmParams as TileGetTrafficByUtmParams,
|
|
479
|
-
type TileGetUniqueSessionsParams as TileGetUniqueSessionsParams,
|
|
480
|
-
type TileGetUniqueVisitorsParams as TileGetUniqueVisitorsParams,
|
|
481
|
-
type TileGetWeeklyActiveUsersParams as TileGetWeeklyActiveUsersParams,
|
|
482
|
-
};
|
|
483
637
|
}
|