zorihq 0.8.0 → 0.10.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 +17 -0
- package/README.md +18 -16
- package/package.json +1 -1
- package/resources/v1/analytics/analytics.d.mts +39 -124
- package/resources/v1/analytics/analytics.d.mts.map +1 -1
- package/resources/v1/analytics/analytics.d.ts +39 -124
- package/resources/v1/analytics/analytics.d.ts.map +1 -1
- package/resources/v1/analytics/analytics.js +0 -4
- package/resources/v1/analytics/analytics.js.map +1 -1
- package/resources/v1/analytics/analytics.mjs +0 -4
- package/resources/v1/analytics/analytics.mjs.map +1 -1
- package/resources/v1/analytics/index.d.mts +1 -2
- package/resources/v1/analytics/index.d.mts.map +1 -1
- package/resources/v1/analytics/index.d.ts +1 -2
- package/resources/v1/analytics/index.d.ts.map +1 -1
- package/resources/v1/analytics/index.js +1 -3
- package/resources/v1/analytics/index.js.map +1 -1
- package/resources/v1/analytics/index.mjs +0 -1
- package/resources/v1/analytics/index.mjs.map +1 -1
- package/resources/v1/index.d.mts +3 -3
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +3 -3
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js +3 -3
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs +1 -1
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/payment-providers.d.mts +38 -1
- package/resources/v1/payment-providers.d.mts.map +1 -1
- package/resources/v1/payment-providers.d.ts +38 -1
- package/resources/v1/payment-providers.d.ts.map +1 -1
- package/resources/v1/payment-providers.js +15 -0
- package/resources/v1/payment-providers.js.map +1 -1
- package/resources/v1/payment-providers.mjs +15 -0
- package/resources/v1/payment-providers.mjs.map +1 -1
- package/resources/v1/projects.d.mts +0 -3
- package/resources/v1/projects.d.mts.map +1 -1
- package/resources/v1/projects.d.ts +0 -3
- package/resources/v1/projects.d.ts.map +1 -1
- package/resources/v1/projects.js.map +1 -1
- package/resources/v1/projects.mjs.map +1 -1
- package/resources/v1/{analytics/revenue.d.mts → revenue/attribution.d.mts} +21 -19
- package/resources/v1/revenue/attribution.d.mts.map +1 -0
- package/resources/v1/{analytics/revenue.d.ts → revenue/attribution.d.ts} +21 -19
- package/resources/v1/revenue/attribution.d.ts.map +1 -0
- package/resources/v1/revenue/attribution.js +41 -0
- package/resources/v1/revenue/attribution.js.map +1 -0
- package/resources/v1/revenue/attribution.mjs +37 -0
- package/resources/v1/revenue/attribution.mjs.map +1 -0
- package/resources/v1/revenue/conversion.d.mts +34 -0
- package/resources/v1/revenue/conversion.d.mts.map +1 -0
- package/resources/v1/revenue/conversion.d.ts +34 -0
- package/resources/v1/revenue/conversion.d.ts.map +1 -0
- package/resources/v1/revenue/conversion.js +25 -0
- package/resources/v1/revenue/conversion.js.map +1 -0
- package/resources/v1/revenue/conversion.mjs +21 -0
- package/resources/v1/revenue/conversion.mjs.map +1 -0
- package/resources/v1/revenue/customers.d.mts +61 -0
- package/resources/v1/revenue/customers.d.mts.map +1 -0
- package/resources/v1/revenue/customers.d.ts +61 -0
- package/resources/v1/revenue/customers.d.ts.map +1 -0
- package/resources/v1/revenue/customers.js +40 -0
- package/resources/v1/revenue/customers.js.map +1 -0
- package/resources/v1/revenue/customers.mjs +36 -0
- package/resources/v1/revenue/customers.mjs.map +1 -0
- package/resources/v1/revenue/index.d.mts +5 -0
- package/resources/v1/revenue/index.d.mts.map +1 -0
- package/resources/v1/revenue/index.d.ts +5 -0
- package/resources/v1/revenue/index.d.ts.map +1 -0
- package/resources/v1/revenue/index.js +13 -0
- package/resources/v1/revenue/index.js.map +1 -0
- package/resources/v1/revenue/index.mjs +6 -0
- package/resources/v1/revenue/index.mjs.map +1 -0
- package/resources/v1/revenue/revenue.d.mts +252 -0
- package/resources/v1/revenue/revenue.d.mts.map +1 -0
- package/resources/v1/revenue/revenue.d.ts +252 -0
- package/resources/v1/revenue/revenue.d.ts.map +1 -0
- package/resources/v1/revenue/revenue.js +53 -0
- package/resources/v1/revenue/revenue.js.map +1 -0
- package/resources/v1/revenue/revenue.mjs +48 -0
- package/resources/v1/revenue/revenue.mjs.map +1 -0
- package/resources/v1/revenue.d.mts +2 -0
- package/resources/v1/revenue.d.mts.map +1 -0
- package/resources/v1/revenue.d.ts +2 -0
- package/resources/v1/revenue.d.ts.map +1 -0
- package/resources/v1/revenue.js +6 -0
- package/resources/v1/revenue.js.map +1 -0
- package/resources/v1/revenue.mjs +3 -0
- package/resources/v1/revenue.mjs.map +1 -0
- package/resources/v1/v1.d.mts +8 -8
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +8 -8
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js +4 -4
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs +4 -4
- package/resources/v1/v1.mjs.map +1 -1
- package/src/resources/v1/analytics/analytics.ts +56 -175
- package/src/resources/v1/analytics/index.ts +0 -6
- package/src/resources/v1/index.ts +21 -18
- package/src/resources/v1/payment-providers.ts +58 -0
- package/src/resources/v1/projects.ts +0 -5
- package/src/resources/v1/{analytics/revenue.ts → revenue/attribution.ts} +29 -24
- package/src/resources/v1/revenue/conversion.ts +44 -0
- package/src/resources/v1/revenue/customers.ts +77 -0
- package/src/resources/v1/revenue/index.ts +23 -0
- package/src/resources/v1/revenue/revenue.ts +382 -0
- package/src/resources/v1/revenue.ts +3 -0
- package/src/resources/v1/v1.ts +46 -40
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
- package/resources/v1/analytics/revenue.d.mts.map +0 -1
- package/resources/v1/analytics/revenue.d.ts.map +0 -1
- package/resources/v1/analytics/revenue.js +0 -39
- package/resources/v1/analytics/revenue.js.map +0 -1
- package/resources/v1/analytics/revenue.mjs +0 -35
- package/resources/v1/analytics/revenue.mjs.map +0 -1
- package/resources/v1/auth.d.mts +0 -141
- package/resources/v1/auth.d.mts.map +0 -1
- package/resources/v1/auth.d.ts +0 -141
- package/resources/v1/auth.d.ts.map +0 -1
- package/resources/v1/auth.js +0 -95
- package/resources/v1/auth.js.map +0 -1
- package/resources/v1/auth.mjs +0 -91
- package/resources/v1/auth.mjs.map +0 -1
- package/src/resources/v1/auth.ts +0 -210
package/src/resources/v1/v1.ts
CHANGED
|
@@ -1,30 +1,19 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
|
-
import * as AuthAPI from './auth';
|
|
5
|
-
import {
|
|
6
|
-
Account,
|
|
7
|
-
Auth,
|
|
8
|
-
AuthConfirmPasswordRecoveryParams,
|
|
9
|
-
AuthLoginParams,
|
|
10
|
-
AuthLogoutParams,
|
|
11
|
-
AuthRefreshAccessTokenParams,
|
|
12
|
-
AuthRegisterAccountParams,
|
|
13
|
-
AuthRequestPasswordRecoveryParams,
|
|
14
|
-
AuthResponse,
|
|
15
|
-
MessageResponse,
|
|
16
|
-
Organization,
|
|
17
|
-
} from './auth';
|
|
18
4
|
import * as PaymentProvidersAPI from './payment-providers';
|
|
19
5
|
import {
|
|
20
6
|
CreatePaymentProviderRequest,
|
|
21
7
|
ListPaymentProvidersResponse,
|
|
22
8
|
PaymentProviderCreateParams,
|
|
23
9
|
PaymentProviderDeleteResponse,
|
|
10
|
+
PaymentProviderInstructionsParams,
|
|
24
11
|
PaymentProviderListParams,
|
|
25
12
|
PaymentProviderResponse,
|
|
26
13
|
PaymentProviderUpdateParams,
|
|
27
14
|
PaymentProviders,
|
|
15
|
+
ProviderField,
|
|
16
|
+
ProviderInstructionsResponse,
|
|
28
17
|
UpdatePaymentProviderRequest,
|
|
29
18
|
} from './payment-providers';
|
|
30
19
|
import * as ProjectsAPI from './projects';
|
|
@@ -59,36 +48,50 @@ import {
|
|
|
59
48
|
RecentEvent,
|
|
60
49
|
RecentEventsResponse,
|
|
61
50
|
ReturnRateResponse,
|
|
62
|
-
RevenueByUtmResponse,
|
|
63
|
-
RevenueTimelineDataPoint,
|
|
64
|
-
RevenueTimelineResponse,
|
|
65
51
|
SessionMetricsResponse,
|
|
66
52
|
TopVisitor,
|
|
67
53
|
TopVisitorsResponse,
|
|
68
54
|
UniqueVisitorsDataPoint,
|
|
69
55
|
UniqueVisitorsTimelineResponse,
|
|
70
|
-
UtmRevenueDataPoint,
|
|
71
56
|
VisitorDataPoint,
|
|
72
57
|
VisitorEvent,
|
|
73
|
-
VisitorPayment,
|
|
74
58
|
VisitorProfileResponse,
|
|
75
59
|
VisitorsByCountryResponse,
|
|
76
60
|
VisitorsByDeviceResponse,
|
|
77
61
|
VisitorsByOriginResponse,
|
|
78
62
|
} from './analytics/analytics';
|
|
63
|
+
import * as RevenueAPI from './revenue/revenue';
|
|
64
|
+
import {
|
|
65
|
+
AttributionByOriginResponse,
|
|
66
|
+
AttributionByUtmResponse,
|
|
67
|
+
ConversionMetricsResponse,
|
|
68
|
+
CustomerProfileResponse,
|
|
69
|
+
DashboardResponse,
|
|
70
|
+
OriginAttributionDataPoint,
|
|
71
|
+
Payment,
|
|
72
|
+
Revenue,
|
|
73
|
+
RevenueDashboardParams,
|
|
74
|
+
RevenueOverTimeDataPoint,
|
|
75
|
+
RevenueTimelineParams,
|
|
76
|
+
TimelineDataPoint,
|
|
77
|
+
TimelineResponse,
|
|
78
|
+
TopCustomer,
|
|
79
|
+
TopCustomersResponse,
|
|
80
|
+
UtmAttributionDataPoint,
|
|
81
|
+
} from './revenue/revenue';
|
|
79
82
|
|
|
80
83
|
export class V1 extends APIResource {
|
|
81
84
|
analytics: AnalyticsAPI.Analytics = new AnalyticsAPI.Analytics(this._client);
|
|
85
|
+
revenue: RevenueAPI.Revenue = new RevenueAPI.Revenue(this._client);
|
|
82
86
|
projects: ProjectsAPI.Projects = new ProjectsAPI.Projects(this._client);
|
|
83
|
-
auth: AuthAPI.Auth = new AuthAPI.Auth(this._client);
|
|
84
87
|
paymentProviders: PaymentProvidersAPI.PaymentProviders = new PaymentProvidersAPI.PaymentProviders(
|
|
85
88
|
this._client,
|
|
86
89
|
);
|
|
87
90
|
}
|
|
88
91
|
|
|
89
92
|
V1.Analytics = Analytics;
|
|
93
|
+
V1.Revenue = Revenue;
|
|
90
94
|
V1.Projects = Projects;
|
|
91
|
-
V1.Auth = Auth;
|
|
92
95
|
V1.PaymentProviders = PaymentProviders;
|
|
93
96
|
|
|
94
97
|
export declare namespace V1 {
|
|
@@ -110,18 +113,13 @@ export declare namespace V1 {
|
|
|
110
113
|
type RecentEvent as RecentEvent,
|
|
111
114
|
type RecentEventsResponse as RecentEventsResponse,
|
|
112
115
|
type ReturnRateResponse as ReturnRateResponse,
|
|
113
|
-
type RevenueByUtmResponse as RevenueByUtmResponse,
|
|
114
|
-
type RevenueTimelineDataPoint as RevenueTimelineDataPoint,
|
|
115
|
-
type RevenueTimelineResponse as RevenueTimelineResponse,
|
|
116
116
|
type SessionMetricsResponse as SessionMetricsResponse,
|
|
117
117
|
type TopVisitor as TopVisitor,
|
|
118
118
|
type TopVisitorsResponse as TopVisitorsResponse,
|
|
119
119
|
type UniqueVisitorsDataPoint as UniqueVisitorsDataPoint,
|
|
120
120
|
type UniqueVisitorsTimelineResponse as UniqueVisitorsTimelineResponse,
|
|
121
|
-
type UtmRevenueDataPoint as UtmRevenueDataPoint,
|
|
122
121
|
type VisitorDataPoint as VisitorDataPoint,
|
|
123
122
|
type VisitorEvent as VisitorEvent,
|
|
124
|
-
type VisitorPayment as VisitorPayment,
|
|
125
123
|
type VisitorProfileResponse as VisitorProfileResponse,
|
|
126
124
|
type VisitorsByCountryResponse as VisitorsByCountryResponse,
|
|
127
125
|
type VisitorsByDeviceResponse as VisitorsByDeviceResponse,
|
|
@@ -129,6 +127,25 @@ export declare namespace V1 {
|
|
|
129
127
|
type AnalyticsDashboardParams as AnalyticsDashboardParams,
|
|
130
128
|
};
|
|
131
129
|
|
|
130
|
+
export {
|
|
131
|
+
Revenue as Revenue,
|
|
132
|
+
type AttributionByOriginResponse as AttributionByOriginResponse,
|
|
133
|
+
type AttributionByUtmResponse as AttributionByUtmResponse,
|
|
134
|
+
type ConversionMetricsResponse as ConversionMetricsResponse,
|
|
135
|
+
type CustomerProfileResponse as CustomerProfileResponse,
|
|
136
|
+
type DashboardResponse as DashboardResponse,
|
|
137
|
+
type OriginAttributionDataPoint as OriginAttributionDataPoint,
|
|
138
|
+
type Payment as Payment,
|
|
139
|
+
type RevenueOverTimeDataPoint as RevenueOverTimeDataPoint,
|
|
140
|
+
type TimelineDataPoint as TimelineDataPoint,
|
|
141
|
+
type TimelineResponse as TimelineResponse,
|
|
142
|
+
type TopCustomer as TopCustomer,
|
|
143
|
+
type TopCustomersResponse as TopCustomersResponse,
|
|
144
|
+
type UtmAttributionDataPoint as UtmAttributionDataPoint,
|
|
145
|
+
type RevenueDashboardParams as RevenueDashboardParams,
|
|
146
|
+
type RevenueTimelineParams as RevenueTimelineParams,
|
|
147
|
+
};
|
|
148
|
+
|
|
132
149
|
export {
|
|
133
150
|
Projects as Projects,
|
|
134
151
|
type CreateProjectRequest as CreateProjectRequest,
|
|
@@ -141,29 +158,18 @@ export declare namespace V1 {
|
|
|
141
158
|
type ProjectUpdateParams as ProjectUpdateParams,
|
|
142
159
|
};
|
|
143
160
|
|
|
144
|
-
export {
|
|
145
|
-
Auth as Auth,
|
|
146
|
-
type Account as Account,
|
|
147
|
-
type AuthResponse as AuthResponse,
|
|
148
|
-
type MessageResponse as MessageResponse,
|
|
149
|
-
type Organization as Organization,
|
|
150
|
-
type AuthConfirmPasswordRecoveryParams as AuthConfirmPasswordRecoveryParams,
|
|
151
|
-
type AuthLoginParams as AuthLoginParams,
|
|
152
|
-
type AuthLogoutParams as AuthLogoutParams,
|
|
153
|
-
type AuthRefreshAccessTokenParams as AuthRefreshAccessTokenParams,
|
|
154
|
-
type AuthRegisterAccountParams as AuthRegisterAccountParams,
|
|
155
|
-
type AuthRequestPasswordRecoveryParams as AuthRequestPasswordRecoveryParams,
|
|
156
|
-
};
|
|
157
|
-
|
|
158
161
|
export {
|
|
159
162
|
PaymentProviders as PaymentProviders,
|
|
160
163
|
type CreatePaymentProviderRequest as CreatePaymentProviderRequest,
|
|
161
164
|
type ListPaymentProvidersResponse as ListPaymentProvidersResponse,
|
|
162
165
|
type PaymentProviderResponse as PaymentProviderResponse,
|
|
166
|
+
type ProviderField as ProviderField,
|
|
167
|
+
type ProviderInstructionsResponse as ProviderInstructionsResponse,
|
|
163
168
|
type UpdatePaymentProviderRequest as UpdatePaymentProviderRequest,
|
|
164
169
|
type PaymentProviderDeleteResponse as PaymentProviderDeleteResponse,
|
|
165
170
|
type PaymentProviderCreateParams as PaymentProviderCreateParams,
|
|
166
171
|
type PaymentProviderUpdateParams as PaymentProviderUpdateParams,
|
|
167
172
|
type PaymentProviderListParams as PaymentProviderListParams,
|
|
173
|
+
type PaymentProviderInstructionsParams as PaymentProviderInstructionsParams,
|
|
168
174
|
};
|
|
169
175
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.10.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.10.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAC"}
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.10.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAC"}
|
package/version.js
CHANGED
package/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,QAAQ,CAAC,CAAC,2BAA2B"}
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.10.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
package/version.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,2BAA2B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"revenue.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/analytics/revenue.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EAAE,UAAU,EA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B,CAAC;IAIzG;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,KAAK,EAAE,qBAAqB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,YAAY,CAAC,uBAAuB,CAAC;CAGpD;AAED,MAAM,WAAW,kBAAkB;IACjC;;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,WAAW,qBAAqB;IACpC;;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,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
|
|
@@ -1,39 +0,0 @@
|
|
|
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.Revenue = void 0;
|
|
5
|
-
const resource_1 = require("../../../core/resource.js");
|
|
6
|
-
class Revenue extends resource_1.APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* Get revenue metrics grouped by UTM source, medium, or campaign
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```ts
|
|
12
|
-
* const revenueByUtmResponse =
|
|
13
|
-
* await client.v1.analytics.revenue.byUtm({
|
|
14
|
-
* project_id: 'project_id',
|
|
15
|
-
* time_range: 'last_hour',
|
|
16
|
-
* });
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
byUtm(query, options) {
|
|
20
|
-
return this._client.get('/api/v1/analytics/revenue/by-utm', { query, ...options });
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Get revenue metrics over time for chart visualization
|
|
24
|
-
*
|
|
25
|
-
* @example
|
|
26
|
-
* ```ts
|
|
27
|
-
* const revenueTimelineResponse =
|
|
28
|
-
* await client.v1.analytics.revenue.timeline({
|
|
29
|
-
* project_id: 'project_id',
|
|
30
|
-
* time_range: 'last_hour',
|
|
31
|
-
* });
|
|
32
|
-
* ```
|
|
33
|
-
*/
|
|
34
|
-
timeline(query, options) {
|
|
35
|
-
return this._client.get('/api/v1/analytics/revenue/timeline', { query, ...options });
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
exports.Revenue = Revenue;
|
|
39
|
-
//# sourceMappingURL=revenue.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"revenue.js","sourceRoot":"","sources":["../../../src/resources/v1/analytics/revenue.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAKrD,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,KAAyB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kCAAkC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,KAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oCAAoC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;CACF;AAnCD,0BAmCC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
-
export class Revenue extends APIResource {
|
|
4
|
-
/**
|
|
5
|
-
* Get revenue metrics grouped by UTM source, medium, or campaign
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* ```ts
|
|
9
|
-
* const revenueByUtmResponse =
|
|
10
|
-
* await client.v1.analytics.revenue.byUtm({
|
|
11
|
-
* project_id: 'project_id',
|
|
12
|
-
* time_range: 'last_hour',
|
|
13
|
-
* });
|
|
14
|
-
* ```
|
|
15
|
-
*/
|
|
16
|
-
byUtm(query, options) {
|
|
17
|
-
return this._client.get('/api/v1/analytics/revenue/by-utm', { query, ...options });
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Get revenue metrics over time for chart visualization
|
|
21
|
-
*
|
|
22
|
-
* @example
|
|
23
|
-
* ```ts
|
|
24
|
-
* const revenueTimelineResponse =
|
|
25
|
-
* await client.v1.analytics.revenue.timeline({
|
|
26
|
-
* project_id: 'project_id',
|
|
27
|
-
* time_range: 'last_hour',
|
|
28
|
-
* });
|
|
29
|
-
* ```
|
|
30
|
-
*/
|
|
31
|
-
timeline(query, options) {
|
|
32
|
-
return this._client.get('/api/v1/analytics/revenue/timeline', { query, ...options });
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
//# sourceMappingURL=revenue.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"revenue.mjs","sourceRoot":"","sources":["../../../src/resources/v1/analytics/revenue.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAKtB,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,KAAyB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kCAAkC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,KAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oCAAoC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;CACF"}
|
package/resources/v1/auth.d.mts
DELETED
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
-
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
-
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
|
-
export declare class Auth extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Reset password using recovery token received via email
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* ```ts
|
|
10
|
-
* const messageResponse =
|
|
11
|
-
* await client.v1.auth.confirmPasswordRecovery({
|
|
12
|
-
* token: 'recovery-token-from-email',
|
|
13
|
-
* password: 'NewSecurePassword123!',
|
|
14
|
-
* });
|
|
15
|
-
* ```
|
|
16
|
-
*/
|
|
17
|
-
confirmPasswordRecovery(body: AuthConfirmPasswordRecoveryParams, options?: RequestOptions): APIPromise<MessageResponse>;
|
|
18
|
-
/**
|
|
19
|
-
* Authenticate a user with email and password
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* ```ts
|
|
23
|
-
* const authResponse = await client.v1.auth.login({
|
|
24
|
-
* email: 'user@example.com',
|
|
25
|
-
* password: 'SecurePassword123!',
|
|
26
|
-
* });
|
|
27
|
-
* ```
|
|
28
|
-
*/
|
|
29
|
-
login(body: AuthLoginParams, options?: RequestOptions): APIPromise<AuthResponse>;
|
|
30
|
-
/**
|
|
31
|
-
* Invalidate the current session and refresh token
|
|
32
|
-
*
|
|
33
|
-
* @example
|
|
34
|
-
* ```ts
|
|
35
|
-
* const messageResponse = await client.v1.auth.logout({
|
|
36
|
-
* refresh_token: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...',
|
|
37
|
-
* });
|
|
38
|
-
* ```
|
|
39
|
-
*/
|
|
40
|
-
logout(body: AuthLogoutParams, options?: RequestOptions): APIPromise<MessageResponse>;
|
|
41
|
-
/**
|
|
42
|
-
* Exchange a valid refresh token for new access and refresh tokens
|
|
43
|
-
*
|
|
44
|
-
* @example
|
|
45
|
-
* ```ts
|
|
46
|
-
* const authResponse =
|
|
47
|
-
* await client.v1.auth.refreshAccessToken({
|
|
48
|
-
* refresh_token:
|
|
49
|
-
* 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...',
|
|
50
|
-
* });
|
|
51
|
-
* ```
|
|
52
|
-
*/
|
|
53
|
-
refreshAccessToken(body: AuthRefreshAccessTokenParams, options?: RequestOptions): APIPromise<AuthResponse>;
|
|
54
|
-
/**
|
|
55
|
-
* Create a new user account with an organization
|
|
56
|
-
*
|
|
57
|
-
* @example
|
|
58
|
-
* ```ts
|
|
59
|
-
* const authResponse = await client.v1.auth.registerAccount({
|
|
60
|
-
* email: 'user@example.com',
|
|
61
|
-
* organization_name: 'Acme Corporation',
|
|
62
|
-
* password: 'SecurePassword123!',
|
|
63
|
-
* });
|
|
64
|
-
* ```
|
|
65
|
-
*/
|
|
66
|
-
registerAccount(body: AuthRegisterAccountParams, options?: RequestOptions): APIPromise<AuthResponse>;
|
|
67
|
-
/**
|
|
68
|
-
* Send a password recovery email to the registered email address
|
|
69
|
-
*
|
|
70
|
-
* @example
|
|
71
|
-
* ```ts
|
|
72
|
-
* const messageResponse =
|
|
73
|
-
* await client.v1.auth.requestPasswordRecovery({
|
|
74
|
-
* email: 'user@example.com',
|
|
75
|
-
* });
|
|
76
|
-
* ```
|
|
77
|
-
*/
|
|
78
|
-
requestPasswordRecovery(body: AuthRequestPasswordRecoveryParams, options?: RequestOptions): APIPromise<MessageResponse>;
|
|
79
|
-
}
|
|
80
|
-
export interface Account {
|
|
81
|
-
email: string;
|
|
82
|
-
id?: string;
|
|
83
|
-
created_at?: string;
|
|
84
|
-
email_verified?: boolean;
|
|
85
|
-
first_name?: string;
|
|
86
|
-
last_name?: string;
|
|
87
|
-
/**
|
|
88
|
-
* Relations
|
|
89
|
-
*/
|
|
90
|
-
organizations?: Array<Organization>;
|
|
91
|
-
updated_at?: string;
|
|
92
|
-
}
|
|
93
|
-
export interface AuthResponse {
|
|
94
|
-
access_token?: string;
|
|
95
|
-
account?: Account;
|
|
96
|
-
expires_in?: number;
|
|
97
|
-
organization?: Organization;
|
|
98
|
-
refresh_token?: string;
|
|
99
|
-
}
|
|
100
|
-
export interface MessageResponse {
|
|
101
|
-
message?: string;
|
|
102
|
-
}
|
|
103
|
-
export interface Organization {
|
|
104
|
-
name: string;
|
|
105
|
-
slug: string;
|
|
106
|
-
id?: string;
|
|
107
|
-
created_at?: string;
|
|
108
|
-
/**
|
|
109
|
-
* Relations
|
|
110
|
-
*/
|
|
111
|
-
members?: Array<Account>;
|
|
112
|
-
updated_at?: string;
|
|
113
|
-
}
|
|
114
|
-
export interface AuthConfirmPasswordRecoveryParams {
|
|
115
|
-
token: string;
|
|
116
|
-
password: string;
|
|
117
|
-
}
|
|
118
|
-
export interface AuthLoginParams {
|
|
119
|
-
email: string;
|
|
120
|
-
password: string;
|
|
121
|
-
}
|
|
122
|
-
export interface AuthLogoutParams {
|
|
123
|
-
refresh_token: string;
|
|
124
|
-
}
|
|
125
|
-
export interface AuthRefreshAccessTokenParams {
|
|
126
|
-
refresh_token: string;
|
|
127
|
-
}
|
|
128
|
-
export interface AuthRegisterAccountParams {
|
|
129
|
-
email: string;
|
|
130
|
-
organization_name: string;
|
|
131
|
-
password: string;
|
|
132
|
-
first_name?: string;
|
|
133
|
-
last_name?: string;
|
|
134
|
-
}
|
|
135
|
-
export interface AuthRequestPasswordRecoveryParams {
|
|
136
|
-
email: string;
|
|
137
|
-
}
|
|
138
|
-
export declare namespace Auth {
|
|
139
|
-
export { type Account as Account, type AuthResponse as AuthResponse, type MessageResponse as MessageResponse, type Organization as Organization, type AuthConfirmPasswordRecoveryParams as AuthConfirmPasswordRecoveryParams, type AuthLoginParams as AuthLoginParams, type AuthLogoutParams as AuthLogoutParams, type AuthRefreshAccessTokenParams as AuthRefreshAccessTokenParams, type AuthRegisterAccountParams as AuthRegisterAccountParams, type AuthRequestPasswordRecoveryParams as AuthRequestPasswordRecoveryParams, };
|
|
140
|
-
}
|
|
141
|
-
//# sourceMappingURL=auth.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.mts","sourceRoot":"","sources":["../../src/resources/v1/auth.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;;OAWG;IACH,uBAAuB,CACrB,IAAI,EAAE,iCAAiC,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,eAAe,CAAC;IAI9B;;;;;;;;;;OAUG;IACH,KAAK,CAAC,IAAI,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC;IAIhF;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;IAIrF;;;;;;;;;;;OAWG;IACH,kBAAkB,CAAC,IAAI,EAAE,4BAA4B,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC;IAI1G;;;;;;;;;;;OAWG;IACH,eAAe,CAAC,IAAI,EAAE,yBAAyB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC;IAIpG;;;;;;;;;;OAUG;IACH,uBAAuB,CACrB,IAAI,EAAE,iCAAiC,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,eAAe,CAAC;CAG/B;AAED,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,MAAM,CAAC;IAEd,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,UAAU,CAAC,EAAE,MAAM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,MAAM,CAAC;IAEpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,iCAAiC;IAChD,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,iCAAiC,IAAI,iCAAiC,GAC5E,CAAC;CACH"}
|
package/resources/v1/auth.d.ts
DELETED
|
@@ -1,141 +0,0 @@
|
|
|
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 Auth extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Reset password using recovery token received via email
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* ```ts
|
|
10
|
-
* const messageResponse =
|
|
11
|
-
* await client.v1.auth.confirmPasswordRecovery({
|
|
12
|
-
* token: 'recovery-token-from-email',
|
|
13
|
-
* password: 'NewSecurePassword123!',
|
|
14
|
-
* });
|
|
15
|
-
* ```
|
|
16
|
-
*/
|
|
17
|
-
confirmPasswordRecovery(body: AuthConfirmPasswordRecoveryParams, options?: RequestOptions): APIPromise<MessageResponse>;
|
|
18
|
-
/**
|
|
19
|
-
* Authenticate a user with email and password
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* ```ts
|
|
23
|
-
* const authResponse = await client.v1.auth.login({
|
|
24
|
-
* email: 'user@example.com',
|
|
25
|
-
* password: 'SecurePassword123!',
|
|
26
|
-
* });
|
|
27
|
-
* ```
|
|
28
|
-
*/
|
|
29
|
-
login(body: AuthLoginParams, options?: RequestOptions): APIPromise<AuthResponse>;
|
|
30
|
-
/**
|
|
31
|
-
* Invalidate the current session and refresh token
|
|
32
|
-
*
|
|
33
|
-
* @example
|
|
34
|
-
* ```ts
|
|
35
|
-
* const messageResponse = await client.v1.auth.logout({
|
|
36
|
-
* refresh_token: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...',
|
|
37
|
-
* });
|
|
38
|
-
* ```
|
|
39
|
-
*/
|
|
40
|
-
logout(body: AuthLogoutParams, options?: RequestOptions): APIPromise<MessageResponse>;
|
|
41
|
-
/**
|
|
42
|
-
* Exchange a valid refresh token for new access and refresh tokens
|
|
43
|
-
*
|
|
44
|
-
* @example
|
|
45
|
-
* ```ts
|
|
46
|
-
* const authResponse =
|
|
47
|
-
* await client.v1.auth.refreshAccessToken({
|
|
48
|
-
* refresh_token:
|
|
49
|
-
* 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...',
|
|
50
|
-
* });
|
|
51
|
-
* ```
|
|
52
|
-
*/
|
|
53
|
-
refreshAccessToken(body: AuthRefreshAccessTokenParams, options?: RequestOptions): APIPromise<AuthResponse>;
|
|
54
|
-
/**
|
|
55
|
-
* Create a new user account with an organization
|
|
56
|
-
*
|
|
57
|
-
* @example
|
|
58
|
-
* ```ts
|
|
59
|
-
* const authResponse = await client.v1.auth.registerAccount({
|
|
60
|
-
* email: 'user@example.com',
|
|
61
|
-
* organization_name: 'Acme Corporation',
|
|
62
|
-
* password: 'SecurePassword123!',
|
|
63
|
-
* });
|
|
64
|
-
* ```
|
|
65
|
-
*/
|
|
66
|
-
registerAccount(body: AuthRegisterAccountParams, options?: RequestOptions): APIPromise<AuthResponse>;
|
|
67
|
-
/**
|
|
68
|
-
* Send a password recovery email to the registered email address
|
|
69
|
-
*
|
|
70
|
-
* @example
|
|
71
|
-
* ```ts
|
|
72
|
-
* const messageResponse =
|
|
73
|
-
* await client.v1.auth.requestPasswordRecovery({
|
|
74
|
-
* email: 'user@example.com',
|
|
75
|
-
* });
|
|
76
|
-
* ```
|
|
77
|
-
*/
|
|
78
|
-
requestPasswordRecovery(body: AuthRequestPasswordRecoveryParams, options?: RequestOptions): APIPromise<MessageResponse>;
|
|
79
|
-
}
|
|
80
|
-
export interface Account {
|
|
81
|
-
email: string;
|
|
82
|
-
id?: string;
|
|
83
|
-
created_at?: string;
|
|
84
|
-
email_verified?: boolean;
|
|
85
|
-
first_name?: string;
|
|
86
|
-
last_name?: string;
|
|
87
|
-
/**
|
|
88
|
-
* Relations
|
|
89
|
-
*/
|
|
90
|
-
organizations?: Array<Organization>;
|
|
91
|
-
updated_at?: string;
|
|
92
|
-
}
|
|
93
|
-
export interface AuthResponse {
|
|
94
|
-
access_token?: string;
|
|
95
|
-
account?: Account;
|
|
96
|
-
expires_in?: number;
|
|
97
|
-
organization?: Organization;
|
|
98
|
-
refresh_token?: string;
|
|
99
|
-
}
|
|
100
|
-
export interface MessageResponse {
|
|
101
|
-
message?: string;
|
|
102
|
-
}
|
|
103
|
-
export interface Organization {
|
|
104
|
-
name: string;
|
|
105
|
-
slug: string;
|
|
106
|
-
id?: string;
|
|
107
|
-
created_at?: string;
|
|
108
|
-
/**
|
|
109
|
-
* Relations
|
|
110
|
-
*/
|
|
111
|
-
members?: Array<Account>;
|
|
112
|
-
updated_at?: string;
|
|
113
|
-
}
|
|
114
|
-
export interface AuthConfirmPasswordRecoveryParams {
|
|
115
|
-
token: string;
|
|
116
|
-
password: string;
|
|
117
|
-
}
|
|
118
|
-
export interface AuthLoginParams {
|
|
119
|
-
email: string;
|
|
120
|
-
password: string;
|
|
121
|
-
}
|
|
122
|
-
export interface AuthLogoutParams {
|
|
123
|
-
refresh_token: string;
|
|
124
|
-
}
|
|
125
|
-
export interface AuthRefreshAccessTokenParams {
|
|
126
|
-
refresh_token: string;
|
|
127
|
-
}
|
|
128
|
-
export interface AuthRegisterAccountParams {
|
|
129
|
-
email: string;
|
|
130
|
-
organization_name: string;
|
|
131
|
-
password: string;
|
|
132
|
-
first_name?: string;
|
|
133
|
-
last_name?: string;
|
|
134
|
-
}
|
|
135
|
-
export interface AuthRequestPasswordRecoveryParams {
|
|
136
|
-
email: string;
|
|
137
|
-
}
|
|
138
|
-
export declare namespace Auth {
|
|
139
|
-
export { type Account as Account, type AuthResponse as AuthResponse, type MessageResponse as MessageResponse, type Organization as Organization, type AuthConfirmPasswordRecoveryParams as AuthConfirmPasswordRecoveryParams, type AuthLoginParams as AuthLoginParams, type AuthLogoutParams as AuthLogoutParams, type AuthRefreshAccessTokenParams as AuthRefreshAccessTokenParams, type AuthRegisterAccountParams as AuthRegisterAccountParams, type AuthRequestPasswordRecoveryParams as AuthRequestPasswordRecoveryParams, };
|
|
140
|
-
}
|
|
141
|
-
//# sourceMappingURL=auth.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/resources/v1/auth.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;;OAWG;IACH,uBAAuB,CACrB,IAAI,EAAE,iCAAiC,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,eAAe,CAAC;IAI9B;;;;;;;;;;OAUG;IACH,KAAK,CAAC,IAAI,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC;IAIhF;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;IAIrF;;;;;;;;;;;OAWG;IACH,kBAAkB,CAAC,IAAI,EAAE,4BAA4B,EAAE,OAAO,CAAC,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