zorihq 0.8.0 → 0.9.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.
Files changed (103) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/package.json +1 -1
  3. package/resources/v1/analytics/analytics.d.mts +1 -124
  4. package/resources/v1/analytics/analytics.d.mts.map +1 -1
  5. package/resources/v1/analytics/analytics.d.ts +1 -124
  6. package/resources/v1/analytics/analytics.d.ts.map +1 -1
  7. package/resources/v1/analytics/analytics.js +0 -4
  8. package/resources/v1/analytics/analytics.js.map +1 -1
  9. package/resources/v1/analytics/analytics.mjs +0 -4
  10. package/resources/v1/analytics/analytics.mjs.map +1 -1
  11. package/resources/v1/analytics/index.d.mts +1 -2
  12. package/resources/v1/analytics/index.d.mts.map +1 -1
  13. package/resources/v1/analytics/index.d.ts +1 -2
  14. package/resources/v1/analytics/index.d.ts.map +1 -1
  15. package/resources/v1/analytics/index.js +1 -3
  16. package/resources/v1/analytics/index.js.map +1 -1
  17. package/resources/v1/analytics/index.mjs +0 -1
  18. package/resources/v1/analytics/index.mjs.map +1 -1
  19. package/resources/v1/index.d.mts +2 -1
  20. package/resources/v1/index.d.mts.map +1 -1
  21. package/resources/v1/index.d.ts +2 -1
  22. package/resources/v1/index.d.ts.map +1 -1
  23. package/resources/v1/index.js +3 -1
  24. package/resources/v1/index.js.map +1 -1
  25. package/resources/v1/index.mjs +1 -0
  26. package/resources/v1/index.mjs.map +1 -1
  27. package/resources/v1/{analytics/revenue.d.mts → revenue/attribution.d.mts} +21 -19
  28. package/resources/v1/revenue/attribution.d.mts.map +1 -0
  29. package/resources/v1/{analytics/revenue.d.ts → revenue/attribution.d.ts} +21 -19
  30. package/resources/v1/revenue/attribution.d.ts.map +1 -0
  31. package/resources/v1/revenue/attribution.js +41 -0
  32. package/resources/v1/revenue/attribution.js.map +1 -0
  33. package/resources/v1/revenue/attribution.mjs +37 -0
  34. package/resources/v1/revenue/attribution.mjs.map +1 -0
  35. package/resources/v1/revenue/conversion.d.mts +34 -0
  36. package/resources/v1/revenue/conversion.d.mts.map +1 -0
  37. package/resources/v1/revenue/conversion.d.ts +34 -0
  38. package/resources/v1/revenue/conversion.d.ts.map +1 -0
  39. package/resources/v1/revenue/conversion.js +25 -0
  40. package/resources/v1/revenue/conversion.js.map +1 -0
  41. package/resources/v1/revenue/conversion.mjs +21 -0
  42. package/resources/v1/revenue/conversion.mjs.map +1 -0
  43. package/resources/v1/revenue/customers.d.mts +61 -0
  44. package/resources/v1/revenue/customers.d.mts.map +1 -0
  45. package/resources/v1/revenue/customers.d.ts +61 -0
  46. package/resources/v1/revenue/customers.d.ts.map +1 -0
  47. package/resources/v1/revenue/customers.js +40 -0
  48. package/resources/v1/revenue/customers.js.map +1 -0
  49. package/resources/v1/revenue/customers.mjs +36 -0
  50. package/resources/v1/revenue/customers.mjs.map +1 -0
  51. package/resources/v1/revenue/index.d.mts +5 -0
  52. package/resources/v1/revenue/index.d.mts.map +1 -0
  53. package/resources/v1/revenue/index.d.ts +5 -0
  54. package/resources/v1/revenue/index.d.ts.map +1 -0
  55. package/resources/v1/revenue/index.js +13 -0
  56. package/resources/v1/revenue/index.js.map +1 -0
  57. package/resources/v1/revenue/index.mjs +6 -0
  58. package/resources/v1/revenue/index.mjs.map +1 -0
  59. package/resources/v1/revenue/revenue.d.mts +255 -0
  60. package/resources/v1/revenue/revenue.d.mts.map +1 -0
  61. package/resources/v1/revenue/revenue.d.ts +255 -0
  62. package/resources/v1/revenue/revenue.d.ts.map +1 -0
  63. package/resources/v1/revenue/revenue.js +53 -0
  64. package/resources/v1/revenue/revenue.js.map +1 -0
  65. package/resources/v1/revenue/revenue.mjs +48 -0
  66. package/resources/v1/revenue/revenue.mjs.map +1 -0
  67. package/resources/v1/revenue.d.mts +2 -0
  68. package/resources/v1/revenue.d.mts.map +1 -0
  69. package/resources/v1/revenue.d.ts +2 -0
  70. package/resources/v1/revenue.d.ts.map +1 -0
  71. package/resources/v1/revenue.js +6 -0
  72. package/resources/v1/revenue.js.map +1 -0
  73. package/resources/v1/revenue.mjs +3 -0
  74. package/resources/v1/revenue.mjs.map +1 -0
  75. package/resources/v1/v1.d.mts +6 -2
  76. package/resources/v1/v1.d.mts.map +1 -1
  77. package/resources/v1/v1.d.ts +6 -2
  78. package/resources/v1/v1.d.ts.map +1 -1
  79. package/resources/v1/v1.js +4 -0
  80. package/resources/v1/v1.js.map +1 -1
  81. package/resources/v1/v1.mjs +4 -0
  82. package/resources/v1/v1.mjs.map +1 -1
  83. package/src/resources/v1/analytics/analytics.ts +0 -183
  84. package/src/resources/v1/analytics/index.ts +0 -6
  85. package/src/resources/v1/index.ts +18 -5
  86. package/src/resources/v1/{analytics/revenue.ts → revenue/attribution.ts} +29 -24
  87. package/src/resources/v1/revenue/conversion.ts +44 -0
  88. package/src/resources/v1/revenue/customers.ts +77 -0
  89. package/src/resources/v1/revenue/index.ts +23 -0
  90. package/src/resources/v1/revenue/revenue.ts +385 -0
  91. package/src/resources/v1/revenue.ts +3 -0
  92. package/src/resources/v1/v1.ts +40 -10
  93. package/src/version.ts +1 -1
  94. package/version.d.mts +1 -1
  95. package/version.d.ts +1 -1
  96. package/version.js +1 -1
  97. package/version.mjs +1 -1
  98. package/resources/v1/analytics/revenue.d.mts.map +0 -1
  99. package/resources/v1/analytics/revenue.d.ts.map +0 -1
  100. package/resources/v1/analytics/revenue.js +0 -39
  101. package/resources/v1/analytics/revenue.js.map +0 -1
  102. package/resources/v1/analytics/revenue.mjs +0 -35
  103. package/resources/v1/analytics/revenue.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/analytics/index.ts"],"names":[],"mappings":"OAEO,EACL,SAAS,EACT,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,UAAU,EACf,KAAK,gBAAgB,EACr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sB,EAC3B,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,UAAU,EACf,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,8BAA8B,EACnC,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,GAC9B;OACM,EAAE,MAAM,EAAE,KAAK,wBAAwB,EAAE,KAAK,iBAAiB,EAAE;OACjE,EACL,SAAS,EACT,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,GAC/B;OACM,EAAE,QAAQ,EAAE,KAAK,uBAAuB,EAAE,KAAK,oBAAoB,EAAE;OACrE,EAAE,KAAK,EAAE,KAAK,gBAAgB,EAAE;OAChC,EACL,QAAQ,EACR,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,GACtB"}
@@ -1,7 +1,6 @@
1
- export { Analytics, type ActiveUsersResponse, type BounceRateByPageMetric, type BounceRateResponse, type ChurnRateResponse, type CohortAnalysisResponse, type CohortData, type CountryDataPoint, type DashboardMetricsResponse, type EventFilterOptionsResponse, type EventsOverTimeDataPoint, type ManualIdentifyRequest, type ManualIdentifyResponse, type OriginDataPoint, type RecentEvent, type RecentEventsResponse, type ReturnRateResponse, type RevenueByUtmResponse, type RevenueTimelineDataPoint, type RevenueTimelineResponse, type SessionMetricsResponse, type TopVisitor, type TopVisitorsResponse, type UniqueVisitorsDataPoint, type UniqueVisitorsTimelineResponse, type UtmRevenueDataPoint, type VisitorDataPoint, type VisitorEvent, type VisitorPayment, type VisitorProfileResponse, type VisitorsByCountryResponse, type VisitorsByDeviceResponse, type VisitorsByOriginResponse, type AnalyticsDashboardParams, } from "./analytics.js";
1
+ export { Analytics, type ActiveUsersResponse, type BounceRateByPageMetric, type BounceRateResponse, type ChurnRateResponse, type CohortAnalysisResponse, type CohortData, type CountryDataPoint, type DashboardMetricsResponse, type EventFilterOptionsResponse, type EventsOverTimeDataPoint, type ManualIdentifyRequest, type ManualIdentifyResponse, type OriginDataPoint, type RecentEvent, type RecentEventsResponse, type ReturnRateResponse, type SessionMetricsResponse, type TopVisitor, type TopVisitorsResponse, type UniqueVisitorsDataPoint, type UniqueVisitorsTimelineResponse, type VisitorDataPoint, type VisitorEvent, type VisitorProfileResponse, type VisitorsByCountryResponse, type VisitorsByDeviceResponse, type VisitorsByOriginResponse, type AnalyticsDashboardParams, } from "./analytics.js";
2
2
  export { Events, type EventFilterOptionsParams, type EventRecentParams } from "./events.js";
3
3
  export { Retention, type RetentionChurnRateParams, type RetentionCohortsParams, type RetentionReturnRateParams, } from "./retention.js";
4
- export { Revenue, type RevenueByUtmParams, type RevenueTimelineParams } from "./revenue.js";
5
4
  export { Sessions, type SessionBounceRateParams, type SessionMetricsParams } from "./sessions.js";
6
5
  export { Users, type UserActiveParams } from "./users.js";
7
6
  export { Visitors, type VisitorByCountryParams, type VisitorByDeviceParams, type VisitorByOriginParams, type VisitorIdentifyParams, type VisitorProfileParams, type VisitorTimelineParams, type VisitorTopParams, } from "./visitors.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/analytics/index.ts"],"names":[],"mappings":"OAEO,EACL,SAAS,EACT,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAA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,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,UAAU,EACf,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,8BAA8B,EACnC,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,GAC9B;OACM,EAAE,MAAM,EAAE,KAAK,wBAAwB,EAAE,KAAK,iBAAiB,EAAE;OACjE,EACL,SAAS,EACT,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,GAC/B;OACM,EAAE,QAAQ,EAAE,KAAK,uBAAuB,EAAE,KAAK,oBAAoB,EAAE;OACrE,EAAE,KAAK,EAAE,KAAK,gBAAgB,EAAE;OAChC,EACL,QAAQ,EACR,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,GACtB"}
@@ -1,15 +1,13 @@
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.Visitors = exports.Users = exports.Sessions = exports.Revenue = exports.Retention = exports.Events = exports.Analytics = void 0;
4
+ exports.Visitors = exports.Users = exports.Sessions = exports.Retention = exports.Events = exports.Analytics = void 0;
5
5
  var analytics_1 = require("./analytics.js");
6
6
  Object.defineProperty(exports, "Analytics", { enumerable: true, get: function () { return analytics_1.Analytics; } });
7
7
  var events_1 = require("./events.js");
8
8
  Object.defineProperty(exports, "Events", { enumerable: true, get: function () { return events_1.Events; } });
9
9
  var retention_1 = require("./retention.js");
10
10
  Object.defineProperty(exports, "Retention", { enumerable: true, get: function () { return retention_1.Retention; } });
11
- var revenue_1 = require("./revenue.js");
12
- Object.defineProperty(exports, "Revenue", { enumerable: true, get: function () { return revenue_1.Revenue; } });
13
11
  var sessions_1 = require("./sessions.js");
14
12
  Object.defineProperty(exports, "Sessions", { enumerable: true, get: function () { return sessions_1.Sessions; } });
15
13
  var users_1 = require("./users.js");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/analytics/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4CAmCqB;AAlCnB,sGAAA,SAAS,OAAA;AAmCX,sCAAyF;AAAhF,gGAAA,MAAM,OAAA;AACf,4CAKqB;AAJnB,sGAAA,SAAS,OAAA;AAKX,wCAAyF;AAAhF,kGAAA,OAAO,OAAA;AAChB,0CAA+F;AAAtF,oGAAA,QAAQ,OAAA;AACjB,oCAAuD;AAA9C,8FAAA,KAAK,OAAA;AACd,0CASoB;AARlB,oGAAA,QAAQ,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/analytics/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4CA8BqB;AA7BnB,sGAAA,SAAS,OAAA;AA8BX,sCAAyF;AAAhF,gGAAA,MAAM,OAAA;AACf,4CAKqB;AAJnB,sGAAA,SAAS,OAAA;AAKX,0CAA+F;AAAtF,oGAAA,QAAQ,OAAA;AACjB,oCAAuD;AAA9C,8FAAA,KAAK,OAAA;AACd,0CASoB;AARlB,oGAAA,QAAQ,OAAA"}
@@ -2,7 +2,6 @@
2
2
  export { Analytics, } from "./analytics.mjs";
3
3
  export { Events } from "./events.mjs";
4
4
  export { Retention, } from "./retention.mjs";
5
- export { Revenue } from "./revenue.mjs";
6
5
  export { Sessions } from "./sessions.mjs";
7
6
  export { Users } from "./users.mjs";
8
7
  export { Visitors, } from "./visitors.mjs";
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/analytics/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,SAAS,GAkCV;OACM,EAAE,MAAM,EAAyD;OACjE,EACL,SAAS,GAIV;OACM,EAAE,OAAO,EAAuD;OAChE,EAAE,QAAQ,EAA2D;OACrE,EAAE,KAAK,EAAyB;OAChC,EACL,QAAQ,GAQT"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/analytics/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,SAAS,GA6BV;OACM,EAAE,MAAM,EAAyD;OACjE,EACL,SAAS,GAIV;OACM,EAAE,QAAQ,EAA2D;OACrE,EAAE,KAAK,EAAyB;OAChC,EACL,QAAQ,GAQT"}
@@ -1,6 +1,7 @@
1
- export { Analytics, type ActiveUsersResponse, type BounceRateByPageMetric, type BounceRateResponse, type ChurnRateResponse, type CohortAnalysisResponse, type CohortData, type CountryDataPoint, type DashboardMetricsResponse, type EventFilterOptionsResponse, type EventsOverTimeDataPoint, type ManualIdentifyRequest, type ManualIdentifyResponse, type OriginDataPoint, type RecentEvent, type RecentEventsResponse, type ReturnRateResponse, type RevenueByUtmResponse, type RevenueTimelineDataPoint, type RevenueTimelineResponse, type SessionMetricsResponse, type TopVisitor, type TopVisitorsResponse, type UniqueVisitorsDataPoint, type UniqueVisitorsTimelineResponse, type UtmRevenueDataPoint, type VisitorDataPoint, type VisitorEvent, type VisitorPayment, type VisitorProfileResponse, type VisitorsByCountryResponse, type VisitorsByDeviceResponse, type VisitorsByOriginResponse, type AnalyticsDashboardParams, } from "./analytics/index.mjs";
1
+ export { Analytics, type ActiveUsersResponse, type BounceRateByPageMetric, type BounceRateResponse, type ChurnRateResponse, type CohortAnalysisResponse, type CohortData, type CountryDataPoint, type DashboardMetricsResponse, type EventFilterOptionsResponse, type EventsOverTimeDataPoint, type ManualIdentifyRequest, type ManualIdentifyResponse, type OriginDataPoint, type RecentEvent, type RecentEventsResponse, type ReturnRateResponse, type SessionMetricsResponse, type TopVisitor, type TopVisitorsResponse, type UniqueVisitorsDataPoint, type UniqueVisitorsTimelineResponse, type VisitorDataPoint, type VisitorEvent, type VisitorProfileResponse, type VisitorsByCountryResponse, type VisitorsByDeviceResponse, type VisitorsByOriginResponse, type AnalyticsDashboardParams, } from "./analytics/index.mjs";
2
2
  export { Auth, type Account, type AuthResponse, type MessageResponse, type Organization, type AuthConfirmPasswordRecoveryParams, type AuthLoginParams, type AuthLogoutParams, type AuthRefreshAccessTokenParams, type AuthRegisterAccountParams, type AuthRequestPasswordRecoveryParams, } from "./auth.mjs";
3
3
  export { PaymentProviders, type CreatePaymentProviderRequest, type ListPaymentProvidersResponse, type PaymentProviderResponse, type UpdatePaymentProviderRequest, type PaymentProviderDeleteResponse, type PaymentProviderCreateParams, type PaymentProviderUpdateParams, type PaymentProviderListParams, } from "./payment-providers.mjs";
4
4
  export { Projects, type CreateProjectRequest, type ListProjectsResponse, type Project, type ProjectResponse, type UpdateProjectRequest, type ProjectDeleteResponse, type ProjectCreateParams, type ProjectUpdateParams, } from "./projects.mjs";
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/index.mjs";
5
6
  export { V1 } from "./v1.mjs";
6
7
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../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,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB;OACM,EAAE,EAAE,EAAE"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"OAEO,EACL,SAAS,EACT,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,UAAU,EACf,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,8BAA8B,EACnC,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,GAC9B;OACM,EACL,IAAI,EACJ,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,iCAAiC,EACtC,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,EAC9B,KAAK,iCAAiC,GACvC;OACM,EACL,gBAAgB,EAChB,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EACjC,KAAK,uBAAuB,EAC5B,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,GAC/B;OACM,EACL,QAAQ,EACR,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,OAAO,EACZ,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB;OACM,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;OACM,EAAE,EAAE,EAAE"}
@@ -1,6 +1,7 @@
1
- export { Analytics, type ActiveUsersResponse, type BounceRateByPageMetric, type BounceRateResponse, type ChurnRateResponse, type CohortAnalysisResponse, type CohortData, type CountryDataPoint, type DashboardMetricsResponse, type EventFilterOptionsResponse, type EventsOverTimeDataPoint, type ManualIdentifyRequest, type ManualIdentifyResponse, type OriginDataPoint, type RecentEvent, type RecentEventsResponse, type ReturnRateResponse, type RevenueByUtmResponse, type RevenueTimelineDataPoint, type RevenueTimelineResponse, type SessionMetricsResponse, type TopVisitor, type TopVisitorsResponse, type UniqueVisitorsDataPoint, type UniqueVisitorsTimelineResponse, type UtmRevenueDataPoint, type VisitorDataPoint, type VisitorEvent, type VisitorPayment, type VisitorProfileResponse, type VisitorsByCountryResponse, type VisitorsByDeviceResponse, type VisitorsByOriginResponse, type AnalyticsDashboardParams, } from "./analytics/index.js";
1
+ export { Analytics, type ActiveUsersResponse, type BounceRateByPageMetric, type BounceRateResponse, type ChurnRateResponse, type CohortAnalysisResponse, type CohortData, type CountryDataPoint, type DashboardMetricsResponse, type EventFilterOptionsResponse, type EventsOverTimeDataPoint, type ManualIdentifyRequest, type ManualIdentifyResponse, type OriginDataPoint, type RecentEvent, type RecentEventsResponse, type ReturnRateResponse, type SessionMetricsResponse, type TopVisitor, type TopVisitorsResponse, type UniqueVisitorsDataPoint, type UniqueVisitorsTimelineResponse, type VisitorDataPoint, type VisitorEvent, type VisitorProfileResponse, type VisitorsByCountryResponse, type VisitorsByDeviceResponse, type VisitorsByOriginResponse, type AnalyticsDashboardParams, } from "./analytics/index.js";
2
2
  export { Auth, type Account, type AuthResponse, type MessageResponse, type Organization, type AuthConfirmPasswordRecoveryParams, type AuthLoginParams, type AuthLogoutParams, type AuthRefreshAccessTokenParams, type AuthRegisterAccountParams, type AuthRequestPasswordRecoveryParams, } from "./auth.js";
3
3
  export { PaymentProviders, type CreatePaymentProviderRequest, type ListPaymentProvidersResponse, type PaymentProviderResponse, type UpdatePaymentProviderRequest, type PaymentProviderDeleteResponse, type PaymentProviderCreateParams, type PaymentProviderUpdateParams, type PaymentProviderListParams, } from "./payment-providers.js";
4
4
  export { Projects, type CreateProjectRequest, type ListProjectsResponse, type Project, type ProjectResponse, type UpdateProjectRequest, type ProjectDeleteResponse, type ProjectCreateParams, type ProjectUpdateParams, } from "./projects.js";
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/index.js";
5
6
  export { V1 } from "./v1.js";
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"OAEO,EACL,SAAS,EACT,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAA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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;OACM,EAAE,EAAE,EAAE"}
@@ -1,7 +1,7 @@
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.V1 = exports.Projects = exports.PaymentProviders = exports.Auth = exports.Analytics = void 0;
4
+ exports.V1 = exports.Revenue = exports.Projects = exports.PaymentProviders = exports.Auth = exports.Analytics = void 0;
5
5
  var index_1 = require("./analytics/index.js");
6
6
  Object.defineProperty(exports, "Analytics", { enumerable: true, get: function () { return index_1.Analytics; } });
7
7
  var auth_1 = require("./auth.js");
@@ -10,6 +10,8 @@ var payment_providers_1 = require("./payment-providers.js");
10
10
  Object.defineProperty(exports, "PaymentProviders", { enumerable: true, get: function () { return payment_providers_1.PaymentProviders; } });
11
11
  var projects_1 = require("./projects.js");
12
12
  Object.defineProperty(exports, "Projects", { enumerable: true, get: function () { return projects_1.Projects; } });
13
+ var index_2 = require("./revenue/index.js");
14
+ Object.defineProperty(exports, "Revenue", { enumerable: true, get: function () { return index_2.Revenue; } });
13
15
  var v1_1 = require("./v1.js");
14
16
  Object.defineProperty(exports, "V1", { enumerable: true, get: function () { return v1_1.V1; } });
15
17
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8CAmC2B;AAlCzB,kGAAA,SAAS,OAAA;AAmCX,kCAYgB;AAXd,4FAAA,IAAI,OAAA;AAYN,4DAU6B;AAT3B,qHAAA,gBAAgB,OAAA;AAUlB,0CAUoB;AATlB,oGAAA,QAAQ,OAAA;AAUV,8BAA0B;AAAjB,wFAAA,EAAE,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8CA8B2B;AA7BzB,kGAAA,SAAS,OAAA;AA8BX,kCAYgB;AAXd,4FAAA,IAAI,OAAA;AAYN,4DAU6B;AAT3B,qHAAA,gBAAgB,OAAA;AAUlB,0CAUoB;AATlB,oGAAA,QAAQ,OAAA;AAUV,4CAiByB;AAhBvB,gGAAA,OAAO,OAAA;AAiBT,8BAA0B;AAAjB,wFAAA,EAAE,OAAA"}
@@ -3,5 +3,6 @@ export { Analytics, } from "./analytics/index.mjs";
3
3
  export { Auth, } from "./auth.mjs";
4
4
  export { PaymentProviders, } from "./payment-providers.mjs";
5
5
  export { Projects, } from "./projects.mjs";
6
+ export { Revenue, } from "./revenue/index.mjs";
6
7
  export { V1 } from "./v1.mjs";
7
8
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,SAAS,GAkCV;OACM,EACL,IAAI,GAWL;OACM,EACL,gBAAgB,GASjB;OACM,EACL,QAAQ,GAST;OACM,EAAE,EAAE,EAAE"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,SAAS,GA6BV;OACM,EACL,IAAI,GAWL;OACM,EACL,gBAAgB,GASjB;OACM,EACL,QAAQ,GAST;OACM,EACL,OAAO,GAgBR;OACM,EAAE,EAAE,EAAE"}
@@ -1,36 +1,38 @@
1
1
  import { APIResource } from "../../../core/resource.mjs";
2
- import * as AnalyticsAPI from "./analytics.mjs";
2
+ import * as RevenueAPI from "./revenue.mjs";
3
3
  import { APIPromise } from "../../../core/api-promise.mjs";
4
4
  import { RequestOptions } from "../../../internal/request-options.mjs";
5
- export declare class Revenue extends APIResource {
5
+ export declare class Attribution extends APIResource {
6
6
  /**
7
- * Get revenue metrics grouped by UTM source, medium, or campaign
7
+ * Get revenue metrics grouped by traffic origin (referrer domain) using
8
+ * first-touch attribution
8
9
  *
9
10
  * @example
10
11
  * ```ts
11
- * const revenueByUtmResponse =
12
- * await client.v1.analytics.revenue.byUtm({
12
+ * const attributionByOriginResponse =
13
+ * await client.v1.revenue.attribution.byOrigin({
13
14
  * project_id: 'project_id',
14
15
  * time_range: 'last_hour',
15
16
  * });
16
17
  * ```
17
18
  */
18
- byUtm(query: RevenueByUtmParams, options?: RequestOptions): APIPromise<AnalyticsAPI.RevenueByUtmResponse>;
19
+ byOrigin(query: AttributionByOriginParams, options?: RequestOptions): APIPromise<RevenueAPI.AttributionByOriginResponse>;
19
20
  /**
20
- * Get revenue metrics over time for chart visualization
21
+ * Get revenue metrics grouped by UTM source, medium, or campaign using first-touch
22
+ * attribution
21
23
  *
22
24
  * @example
23
25
  * ```ts
24
- * const revenueTimelineResponse =
25
- * await client.v1.analytics.revenue.timeline({
26
+ * const attributionByUtmResponse =
27
+ * await client.v1.revenue.attribution.byUtm({
26
28
  * project_id: 'project_id',
27
29
  * time_range: 'last_hour',
28
30
  * });
29
31
  * ```
30
32
  */
31
- timeline(query: RevenueTimelineParams, options?: RequestOptions): APIPromise<AnalyticsAPI.RevenueTimelineResponse>;
33
+ byUtm(query: AttributionByUtmParams, options?: RequestOptions): APIPromise<RevenueAPI.AttributionByUtmResponse>;
32
34
  }
33
- export interface RevenueByUtmParams {
35
+ export interface AttributionByOriginParams {
34
36
  /**
35
37
  * Project ID
36
38
  */
@@ -39,12 +41,8 @@ export interface RevenueByUtmParams {
39
41
  * Time range
40
42
  */
41
43
  time_range: 'last_hour' | 'today' | 'last_7_days' | 'last_30_days' | 'last_90_days';
42
- /**
43
- * UTM type: source, medium, or campaign (default: source)
44
- */
45
- utm_type?: string;
46
44
  }
47
- export interface RevenueTimelineParams {
45
+ export interface AttributionByUtmParams {
48
46
  /**
49
47
  * Project ID
50
48
  */
@@ -53,8 +51,12 @@ export interface RevenueTimelineParams {
53
51
  * Time range
54
52
  */
55
53
  time_range: 'last_hour' | 'today' | 'last_7_days' | 'last_30_days' | 'last_90_days';
54
+ /**
55
+ * UTM type: source, medium, or campaign (default: source)
56
+ */
57
+ utm_type?: string;
56
58
  }
57
- export declare namespace Revenue {
58
- export { type RevenueByUtmParams as RevenueByUtmParams, type RevenueTimelineParams as RevenueTimelineParams, };
59
+ export declare namespace Attribution {
60
+ export { type AttributionByOriginParams as AttributionByOriginParams, type AttributionByUtmParams as AttributionByUtmParams, };
59
61
  }
60
- //# sourceMappingURL=revenue.d.mts.map
62
+ //# sourceMappingURL=attribution.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attribution.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/revenue/attribution.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;OAYG;IACH,QAAQ,CACN,KAAK,EAAE,yBAAyB,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,UAAU,CAAC,2BAA2B,CAAC;IAIrD;;;;;;;;;;;;OAYG;IACH,KAAK,CACH,KAAK,EAAE,sBAAsB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,UAAU,CAAC,wBAAwB,CAAC;CAGnD;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,EAAE,WAAW,GAAG,OAAO,GAAG,aAAa,GAAG,cAAc,GAAG,cAAc,CAAC;CACrF;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,EAAE,WAAW,GAAG,OAAO,GAAG,aAAa,GAAG,cAAc,GAAG,cAAc,CAAC;IAEpF;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
@@ -1,36 +1,38 @@
1
1
  import { APIResource } from "../../../core/resource.js";
2
- import * as AnalyticsAPI from "./analytics.js";
2
+ import * as RevenueAPI from "./revenue.js";
3
3
  import { APIPromise } from "../../../core/api-promise.js";
4
4
  import { RequestOptions } from "../../../internal/request-options.js";
5
- export declare class Revenue extends APIResource {
5
+ export declare class Attribution extends APIResource {
6
6
  /**
7
- * Get revenue metrics grouped by UTM source, medium, or campaign
7
+ * Get revenue metrics grouped by traffic origin (referrer domain) using
8
+ * first-touch attribution
8
9
  *
9
10
  * @example
10
11
  * ```ts
11
- * const revenueByUtmResponse =
12
- * await client.v1.analytics.revenue.byUtm({
12
+ * const attributionByOriginResponse =
13
+ * await client.v1.revenue.attribution.byOrigin({
13
14
  * project_id: 'project_id',
14
15
  * time_range: 'last_hour',
15
16
  * });
16
17
  * ```
17
18
  */
18
- byUtm(query: RevenueByUtmParams, options?: RequestOptions): APIPromise<AnalyticsAPI.RevenueByUtmResponse>;
19
+ byOrigin(query: AttributionByOriginParams, options?: RequestOptions): APIPromise<RevenueAPI.AttributionByOriginResponse>;
19
20
  /**
20
- * Get revenue metrics over time for chart visualization
21
+ * Get revenue metrics grouped by UTM source, medium, or campaign using first-touch
22
+ * attribution
21
23
  *
22
24
  * @example
23
25
  * ```ts
24
- * const revenueTimelineResponse =
25
- * await client.v1.analytics.revenue.timeline({
26
+ * const attributionByUtmResponse =
27
+ * await client.v1.revenue.attribution.byUtm({
26
28
  * project_id: 'project_id',
27
29
  * time_range: 'last_hour',
28
30
  * });
29
31
  * ```
30
32
  */
31
- timeline(query: RevenueTimelineParams, options?: RequestOptions): APIPromise<AnalyticsAPI.RevenueTimelineResponse>;
33
+ byUtm(query: AttributionByUtmParams, options?: RequestOptions): APIPromise<RevenueAPI.AttributionByUtmResponse>;
32
34
  }
33
- export interface RevenueByUtmParams {
35
+ export interface AttributionByOriginParams {
34
36
  /**
35
37
  * Project ID
36
38
  */
@@ -39,12 +41,8 @@ export interface RevenueByUtmParams {
39
41
  * Time range
40
42
  */
41
43
  time_range: 'last_hour' | 'today' | 'last_7_days' | 'last_30_days' | 'last_90_days';
42
- /**
43
- * UTM type: source, medium, or campaign (default: source)
44
- */
45
- utm_type?: string;
46
44
  }
47
- export interface RevenueTimelineParams {
45
+ export interface AttributionByUtmParams {
48
46
  /**
49
47
  * Project ID
50
48
  */
@@ -53,8 +51,12 @@ export interface RevenueTimelineParams {
53
51
  * Time range
54
52
  */
55
53
  time_range: 'last_hour' | 'today' | 'last_7_days' | 'last_30_days' | 'last_90_days';
54
+ /**
55
+ * UTM type: source, medium, or campaign (default: source)
56
+ */
57
+ utm_type?: string;
56
58
  }
57
- export declare namespace Revenue {
58
- export { type RevenueByUtmParams as RevenueByUtmParams, type RevenueTimelineParams as RevenueTimelineParams, };
59
+ export declare namespace Attribution {
60
+ export { type AttributionByOriginParams as AttributionByOriginParams, type AttributionByUtmParams as AttributionByUtmParams, };
59
61
  }
60
- //# sourceMappingURL=revenue.d.ts.map
62
+ //# sourceMappingURL=attribution.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attribution.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/revenue/attribution.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;OAYG;IACH,QAAQ,CACN,KAAK,EAAE,yBAAyB,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,UAAU,CAAC,2BAA2B,CAAC;IAIrD;;;;;;;;;;;;OAYG;IACH,KAAK,CACH,KAAK,EAAE,sBAAsB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,UAAU,CAAC,wBAAwB,CAAC;CAGnD;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,EAAE,WAAW,GAAG,OAAO,GAAG,aAAa,GAAG,cAAc,GAAG,cAAc,CAAC;CACrF;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,EAAE,WAAW,GAAG,OAAO,GAAG,aAAa,GAAG,cAAc,GAAG,cAAc,CAAC;IAEpF;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
@@ -0,0 +1,41 @@
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.Attribution = void 0;
5
+ const resource_1 = require("../../../core/resource.js");
6
+ class Attribution extends resource_1.APIResource {
7
+ /**
8
+ * Get revenue metrics grouped by traffic origin (referrer domain) using
9
+ * first-touch attribution
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * const attributionByOriginResponse =
14
+ * await client.v1.revenue.attribution.byOrigin({
15
+ * project_id: 'project_id',
16
+ * time_range: 'last_hour',
17
+ * });
18
+ * ```
19
+ */
20
+ byOrigin(query, options) {
21
+ return this._client.get('/api/v1/revenue/attribution/origin', { query, ...options });
22
+ }
23
+ /**
24
+ * Get revenue metrics grouped by UTM source, medium, or campaign using first-touch
25
+ * attribution
26
+ *
27
+ * @example
28
+ * ```ts
29
+ * const attributionByUtmResponse =
30
+ * await client.v1.revenue.attribution.byUtm({
31
+ * project_id: 'project_id',
32
+ * time_range: 'last_hour',
33
+ * });
34
+ * ```
35
+ */
36
+ byUtm(query, options) {
37
+ return this._client.get('/api/v1/revenue/attribution/utm', { query, ...options });
38
+ }
39
+ }
40
+ exports.Attribution = Attribution;
41
+ //# sourceMappingURL=attribution.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attribution.js","sourceRoot":"","sources":["../../../src/resources/v1/revenue/attribution.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAKrD,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;;;;;;;;;;;OAYG;IACH,QAAQ,CACN,KAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oCAAoC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,KAAK,CACH,KAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iCAAiC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;CACF;AAxCD,kCAwCC"}
@@ -0,0 +1,37 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../../core/resource.mjs";
3
+ export class Attribution extends APIResource {
4
+ /**
5
+ * Get revenue metrics grouped by traffic origin (referrer domain) using
6
+ * first-touch attribution
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * const attributionByOriginResponse =
11
+ * await client.v1.revenue.attribution.byOrigin({
12
+ * project_id: 'project_id',
13
+ * time_range: 'last_hour',
14
+ * });
15
+ * ```
16
+ */
17
+ byOrigin(query, options) {
18
+ return this._client.get('/api/v1/revenue/attribution/origin', { query, ...options });
19
+ }
20
+ /**
21
+ * Get revenue metrics grouped by UTM source, medium, or campaign using first-touch
22
+ * attribution
23
+ *
24
+ * @example
25
+ * ```ts
26
+ * const attributionByUtmResponse =
27
+ * await client.v1.revenue.attribution.byUtm({
28
+ * project_id: 'project_id',
29
+ * time_range: 'last_hour',
30
+ * });
31
+ * ```
32
+ */
33
+ byUtm(query, options) {
34
+ return this._client.get('/api/v1/revenue/attribution/utm', { query, ...options });
35
+ }
36
+ }
37
+ //# sourceMappingURL=attribution.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attribution.mjs","sourceRoot":"","sources":["../../../src/resources/v1/revenue/attribution.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAKtB,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;OAYG;IACH,QAAQ,CACN,KAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oCAAoC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,KAAK,CACH,KAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iCAAiC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;CACF"}
@@ -0,0 +1,34 @@
1
+ import { APIResource } from "../../../core/resource.mjs";
2
+ import * as RevenueAPI from "./revenue.mjs";
3
+ import { APIPromise } from "../../../core/api-promise.mjs";
4
+ import { RequestOptions } from "../../../internal/request-options.mjs";
5
+ export declare class Conversion extends APIResource {
6
+ /**
7
+ * Get conversion funnel metrics including conversion rate, time to purchase, and
8
+ * customer lifetime value
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * const conversionMetricsResponse =
13
+ * await client.v1.revenue.conversion.metrics({
14
+ * project_id: 'project_id',
15
+ * time_range: 'last_hour',
16
+ * });
17
+ * ```
18
+ */
19
+ metrics(query: ConversionMetricsParams, options?: RequestOptions): APIPromise<RevenueAPI.ConversionMetricsResponse>;
20
+ }
21
+ export interface ConversionMetricsParams {
22
+ /**
23
+ * Project ID
24
+ */
25
+ project_id: string;
26
+ /**
27
+ * Time range
28
+ */
29
+ time_range: 'last_hour' | 'today' | 'last_7_days' | 'last_30_days' | 'last_90_days';
30
+ }
31
+ export declare namespace Conversion {
32
+ export { type ConversionMetricsParams as ConversionMetricsParams };
33
+ }
34
+ //# sourceMappingURL=conversion.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversion.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/revenue/conversion.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;OAYG;IACH,OAAO,CACL,KAAK,EAAE,uBAAuB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,UAAU,CAAC,yBAAyB,CAAC;CAGpD;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,EAAE,WAAW,GAAG,OAAO,GAAG,aAAa,GAAG,cAAc,GAAG,cAAc,CAAC;CACrF;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EAAE,KAAK,uBAAuB,IAAI,uBAAuB,EAAE,CAAC;CACpE"}
@@ -0,0 +1,34 @@
1
+ import { APIResource } from "../../../core/resource.js";
2
+ import * as RevenueAPI from "./revenue.js";
3
+ import { APIPromise } from "../../../core/api-promise.js";
4
+ import { RequestOptions } from "../../../internal/request-options.js";
5
+ export declare class Conversion extends APIResource {
6
+ /**
7
+ * Get conversion funnel metrics including conversion rate, time to purchase, and
8
+ * customer lifetime value
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * const conversionMetricsResponse =
13
+ * await client.v1.revenue.conversion.metrics({
14
+ * project_id: 'project_id',
15
+ * time_range: 'last_hour',
16
+ * });
17
+ * ```
18
+ */
19
+ metrics(query: ConversionMetricsParams, options?: RequestOptions): APIPromise<RevenueAPI.ConversionMetricsResponse>;
20
+ }
21
+ export interface ConversionMetricsParams {
22
+ /**
23
+ * Project ID
24
+ */
25
+ project_id: string;
26
+ /**
27
+ * Time range
28
+ */
29
+ time_range: 'last_hour' | 'today' | 'last_7_days' | 'last_30_days' | 'last_90_days';
30
+ }
31
+ export declare namespace Conversion {
32
+ export { type ConversionMetricsParams as ConversionMetricsParams };
33
+ }
34
+ //# sourceMappingURL=conversion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversion.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/revenue/conversion.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;OAYG;IACH,OAAO,CACL,KAAK,EAAE,uBAAuB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,UAAU,CAAC,yBAAyB,CAAC;CAGpD;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,EAAE,WAAW,GAAG,OAAO,GAAG,aAAa,GAAG,cAAc,GAAG,cAAc,CAAC;CACrF;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EAAE,KAAK,uBAAuB,IAAI,uBAAuB,EAAE,CAAC;CACpE"}
@@ -0,0 +1,25 @@
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.Conversion = void 0;
5
+ const resource_1 = require("../../../core/resource.js");
6
+ class Conversion extends resource_1.APIResource {
7
+ /**
8
+ * Get conversion funnel metrics including conversion rate, time to purchase, and
9
+ * customer lifetime value
10
+ *
11
+ * @example
12
+ * ```ts
13
+ * const conversionMetricsResponse =
14
+ * await client.v1.revenue.conversion.metrics({
15
+ * project_id: 'project_id',
16
+ * time_range: 'last_hour',
17
+ * });
18
+ * ```
19
+ */
20
+ metrics(query, options) {
21
+ return this._client.get('/api/v1/revenue/conversion/metrics', { query, ...options });
22
+ }
23
+ }
24
+ exports.Conversion = Conversion;
25
+ //# sourceMappingURL=conversion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversion.js","sourceRoot":"","sources":["../../../src/resources/v1/revenue/conversion.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAKrD,MAAa,UAAW,SAAQ,sBAAW;IACzC;;;;;;;;;;;;OAYG;IACH,OAAO,CACL,KAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oCAAoC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;CACF;AApBD,gCAoBC"}
@@ -0,0 +1,21 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../../core/resource.mjs";
3
+ export class Conversion extends APIResource {
4
+ /**
5
+ * Get conversion funnel metrics including conversion rate, time to purchase, and
6
+ * customer lifetime value
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * const conversionMetricsResponse =
11
+ * await client.v1.revenue.conversion.metrics({
12
+ * project_id: 'project_id',
13
+ * time_range: 'last_hour',
14
+ * });
15
+ * ```
16
+ */
17
+ metrics(query, options) {
18
+ return this._client.get('/api/v1/revenue/conversion/metrics', { query, ...options });
19
+ }
20
+ }
21
+ //# sourceMappingURL=conversion.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversion.mjs","sourceRoot":"","sources":["../../../src/resources/v1/revenue/conversion.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAKtB,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;OAYG;IACH,OAAO,CACL,KAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oCAAoC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;CACF"}
@@ -0,0 +1,61 @@
1
+ import { APIResource } from "../../../core/resource.mjs";
2
+ import * as RevenueAPI from "./revenue.mjs";
3
+ import { APIPromise } from "../../../core/api-promise.mjs";
4
+ import { RequestOptions } from "../../../internal/request-options.mjs";
5
+ export declare class Customers extends APIResource {
6
+ /**
7
+ * Get detailed revenue information for a specific customer including payment
8
+ * history and attribution
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * const customerProfileResponse =
13
+ * await client.v1.revenue.customers.profile({
14
+ * project_id: 'project_id',
15
+ * visitor_id: 'visitor_id',
16
+ * });
17
+ * ```
18
+ */
19
+ profile(query: CustomerProfileParams, options?: RequestOptions): APIPromise<RevenueAPI.CustomerProfileResponse>;
20
+ /**
21
+ * Get a list of customers ranked by total revenue
22
+ *
23
+ * @example
24
+ * ```ts
25
+ * const topCustomersResponse =
26
+ * await client.v1.revenue.customers.top({
27
+ * project_id: 'project_id',
28
+ * time_range: 'last_hour',
29
+ * });
30
+ * ```
31
+ */
32
+ top(query: CustomerTopParams, options?: RequestOptions): APIPromise<RevenueAPI.TopCustomersResponse>;
33
+ }
34
+ export interface CustomerProfileParams {
35
+ /**
36
+ * Project ID
37
+ */
38
+ project_id: string;
39
+ /**
40
+ * Visitor ID
41
+ */
42
+ visitor_id: string;
43
+ }
44
+ export interface CustomerTopParams {
45
+ /**
46
+ * Project ID
47
+ */
48
+ project_id: string;
49
+ /**
50
+ * Time range
51
+ */
52
+ time_range: 'last_hour' | 'today' | 'last_7_days' | 'last_30_days' | 'last_90_days';
53
+ /**
54
+ * Maximum number of customers to return (default: 50)
55
+ */
56
+ limit?: number;
57
+ }
58
+ export declare namespace Customers {
59
+ export { type CustomerProfileParams as CustomerProfileParams, type CustomerTopParams as CustomerTopParams };
60
+ }
61
+ //# sourceMappingURL=customers.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customers.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/revenue/customers.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,UAAU;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;;;;;;OAYG;IACH,OAAO,CACL,KAAK,EAAE,qBAAqB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,UAAU,CAAC,uBAAuB,CAAC;IAIjD;;;;;;;;;;;OAWG;IACH,GAAG,CAAC,KAAK,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC,oBAAoB,CAAC;CAGrG;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,EAAE,WAAW,GAAG,OAAO,GAAG,aAAa,GAAG,cAAc,GAAG,cAAc,CAAC;IAEpF;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EAAE,KAAK,qBAAqB,IAAI,qBAAqB,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CAC7G"}