@burdenoff/microfe-billing 2026.913.1 → 2026.914.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/billing/BillingAdminRoutes.js +84 -71
- package/dist/billing/BillingAdminRoutes.js.map +1 -1
- package/dist/billing/modules/billing/hooks/useRefunds.js.map +1 -1
- package/dist/billing/modules/billing/pages/PaymentMethodsPage.js +90 -87
- package/dist/billing/modules/billing/pages/PaymentMethodsPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/RefundIssueLogsPage.js +97 -58
- package/dist/billing/modules/billing/pages/RefundIssueLogsPage.js.map +1 -1
- package/dist/billing/modules/checkout/components/OrderSummary.js +22 -19
- package/dist/billing/modules/checkout/components/OrderSummary.js.map +1 -1
- package/dist/billing/modules/checkout/components/RazorpayPaymentButton.js.map +1 -1
- package/dist/billing/modules/checkout/hooks/useCheckout.js +174 -157
- package/dist/billing/modules/checkout/hooks/useCheckout.js.map +1 -1
- package/dist/billing/modules/checkout/pages/CheckoutPage.js +189 -182
- package/dist/billing/modules/checkout/pages/CheckoutPage.js.map +1 -1
- package/dist/billing/modules/credits/pages/CreditWithdrawalPage.js +293 -274
- package/dist/billing/modules/credits/pages/CreditWithdrawalPage.js.map +1 -1
- package/dist/billing/modules/dashboard/components/AddPaymentMethodModal.js +140 -250
- package/dist/billing/modules/dashboard/components/AddPaymentMethodModal.js.map +1 -1
- package/dist/billing/modules/earnings/api.js +79 -42
- package/dist/billing/modules/earnings/api.js.map +1 -1
- package/dist/billing/modules/earnings/index.js +4 -3
- package/dist/billing/modules/earnings/pages/DeveloperRevenueAdminPage.js +103 -310
- package/dist/billing/modules/earnings/pages/DeveloperRevenueAdminPage.js.map +1 -1
- package/dist/billing/modules/earnings/pages/DeveloperRevenueOrgDetailPage.js +545 -0
- package/dist/billing/modules/earnings/pages/DeveloperRevenueOrgDetailPage.js.map +1 -0
- package/dist/billing/modules/earnings/pages/PayoutAdminPage.js +246 -196
- package/dist/billing/modules/earnings/pages/PayoutAdminPage.js.map +1 -1
- package/dist/billing/modules/subscriptions/hooks/useSubscriptions.js +44 -28
- package/dist/billing/modules/subscriptions/hooks/useSubscriptions.js.map +1 -1
- package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.js +317 -270
- package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.js.map +1 -1
- package/dist/billing/modules/subscriptions/pages/SubscriptionsListPage.js +153 -150
- package/dist/billing/modules/subscriptions/pages/SubscriptionsListPage.js.map +1 -1
- package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.js +1 -1
- package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.js.map +1 -1
- package/dist/billing/modules/usage/hooks/useUsage.js +74 -48
- package/dist/billing/modules/usage/hooks/useUsage.js.map +1 -1
- package/dist/generated/global-operations.js +220 -183
- package/dist/generated/global-operations.js.map +1 -1
- package/dist/generated/global-types.js.map +1 -1
- package/dist/node_modules/sonner/dist/index.js +163 -0
- package/dist/node_modules/sonner/dist/index.js.map +1 -0
- package/package.json +1 -1
|
@@ -8,20 +8,20 @@ import { FeatureGate as s } from "@burdenoff/fe-libs/shared/feature-flags";
|
|
|
8
8
|
import { Navigate as c, Route as l, Routes as u, useNavigate as d } from "react-router";
|
|
9
9
|
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
10
10
|
//#region src/billing/BillingAdminRoutes.tsx
|
|
11
|
-
var m = a(() => import("./modules/plans/index.js").then((e) => ({ default: e.PlansListPage }))), h = a(() => import("./modules/plans/index.js").then((e) => ({ default: e.PlanDetailPage }))), g = a(() => import("./modules/plans/index.js").then((e) => ({ default: e.PlanEditPage }))), _ = a(() => import("./modules/plans/index.js").then((e) => ({ default: e.PlanCreatePage }))), v = a(() => import("./modules/plans/index.js").then((e) => ({ default: e.PlanAssignFreePage }))), y = a(() => import("./modules/addons/index.js").then((e) => ({ default: e.AddonsListPage }))), b = a(() => import("./modules/addons/index.js").then((e) => ({ default: e.AddonDetailPage }))), x = a(() => import("./modules/addons/index.js").then((e) => ({ default: e.AddonEditPage }))), S = a(() => import("./modules/addons/index.js").then((e) => ({ default: e.AddonCreatePage }))), C = a(() => import("./modules/quota/index.js").then((e) => ({ default: e.QuotaTemplatesListPage }))), w = a(() => import("./modules/quota/index.js").then((e) => ({ default: e.QuotaTemplateDetailPage }))), T = a(() => import("./modules/quota/index.js").then((e) => ({ default: e.QuotaTemplateCreatePage }))), E = a(() => import("./modules/quota/index.js").then((e) => ({ default: e.QuotaTemplateEditPage }))), D = a(() => import("./modules/quota/index.js").then((e) => ({ default: e.QuotaAssignFreePage }))), O = a(() => import("./modules/coupons/index.js").then((e) => ({ default: e.CouponsListPage }))), k = a(() => import("./modules/coupons/index.js").then((e) => ({ default: e.CreateCouponPage }))), A = a(() => import("./modules/coupons/index.js").then((e) => ({ default: e.EditCouponPage }))), j = a(() => import("./modules/coupons/index.js").then((e) => ({ default: e.CouponDetailPage }))), M = a(() => import("./modules/promotions/index.js").then((e) => ({ default: e.PromotionsListPage }))), N = a(() => import("./modules/promotions/index.js").then((e) => ({ default: e.CreatePromotionPage }))), P = a(() => import("./modules/discounts/index.js").then((e) => ({ default: e.DiscountsListPage }))), F = a(() => import("./modules/billing/index.js").then((e) => ({ default: e.RefundsPage }))), I = a(() => import("./modules/billing/index.js").then((e) => ({ default: e.RefundIssueLogsPage }))), L = a(() => import("./modules/billing/index.js").then((e) => ({ default: e.BillingWebhookLogsPage }))), R = a(() => import("./modules/billing/index.js").then((e) => ({ default: e.OrderCallbackLogsPage }))), z = a(() => import("./modules/credits/index.js").then((e) => ({ default: e.AdminCreditsPage }))), B = a(() => import("./modules/analytics/index.js").then((e) => ({ default: e.AnalyticsPage }))), V = a(() => import("./modules/earnings/index.js").then((e) => ({ default: e.DeveloperRevenueAdminPage }))), H = a(() => import("./modules/earnings/index.js").then((e) => ({ default: e.PayoutAdminPage })));
|
|
12
|
-
function
|
|
11
|
+
var m = a(() => import("./modules/plans/index.js").then((e) => ({ default: e.PlansListPage }))), h = a(() => import("./modules/plans/index.js").then((e) => ({ default: e.PlanDetailPage }))), g = a(() => import("./modules/plans/index.js").then((e) => ({ default: e.PlanEditPage }))), _ = a(() => import("./modules/plans/index.js").then((e) => ({ default: e.PlanCreatePage }))), v = a(() => import("./modules/plans/index.js").then((e) => ({ default: e.PlanAssignFreePage }))), y = a(() => import("./modules/addons/index.js").then((e) => ({ default: e.AddonsListPage }))), b = a(() => import("./modules/addons/index.js").then((e) => ({ default: e.AddonDetailPage }))), x = a(() => import("./modules/addons/index.js").then((e) => ({ default: e.AddonEditPage }))), S = a(() => import("./modules/addons/index.js").then((e) => ({ default: e.AddonCreatePage }))), C = a(() => import("./modules/quota/index.js").then((e) => ({ default: e.QuotaTemplatesListPage }))), w = a(() => import("./modules/quota/index.js").then((e) => ({ default: e.QuotaTemplateDetailPage }))), T = a(() => import("./modules/quota/index.js").then((e) => ({ default: e.QuotaTemplateCreatePage }))), E = a(() => import("./modules/quota/index.js").then((e) => ({ default: e.QuotaTemplateEditPage }))), D = a(() => import("./modules/quota/index.js").then((e) => ({ default: e.QuotaAssignFreePage }))), O = a(() => import("./modules/coupons/index.js").then((e) => ({ default: e.CouponsListPage }))), k = a(() => import("./modules/coupons/index.js").then((e) => ({ default: e.CreateCouponPage }))), A = a(() => import("./modules/coupons/index.js").then((e) => ({ default: e.EditCouponPage }))), j = a(() => import("./modules/coupons/index.js").then((e) => ({ default: e.CouponDetailPage }))), M = a(() => import("./modules/promotions/index.js").then((e) => ({ default: e.PromotionsListPage }))), N = a(() => import("./modules/promotions/index.js").then((e) => ({ default: e.CreatePromotionPage }))), P = a(() => import("./modules/discounts/index.js").then((e) => ({ default: e.DiscountsListPage }))), F = a(() => import("./modules/billing/index.js").then((e) => ({ default: e.RefundsPage }))), I = a(() => import("./modules/billing/index.js").then((e) => ({ default: e.RefundIssueLogsPage }))), L = a(() => import("./modules/billing/index.js").then((e) => ({ default: e.BillingWebhookLogsPage }))), R = a(() => import("./modules/billing/index.js").then((e) => ({ default: e.OrderCallbackLogsPage }))), z = a(() => import("./modules/credits/index.js").then((e) => ({ default: e.AdminCreditsPage }))), B = a(() => import("./modules/analytics/index.js").then((e) => ({ default: e.AnalyticsPage }))), V = a(() => import("./modules/earnings/index.js").then((e) => ({ default: e.DeveloperRevenueAdminPage }))), H = a(() => import("./modules/earnings/index.js").then((e) => ({ default: e.DeveloperRevenueOrgDetailPage }))), U = a(() => import("./modules/earnings/index.js").then((e) => ({ default: e.PayoutAdminPage })));
|
|
12
|
+
function W() {
|
|
13
13
|
let { basePath: t } = e(), n = d(), r = t && t !== "/" ? t.replace(/\/$/, "") : "";
|
|
14
14
|
return o(() => {
|
|
15
15
|
n(`${r}/plans`, { replace: !0 });
|
|
16
16
|
}, [r, n]), null;
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function G() {
|
|
19
19
|
return /* @__PURE__ */ f("div", {
|
|
20
20
|
className: "flex min-h-[400px] items-center justify-center",
|
|
21
21
|
children: /* @__PURE__ */ f("div", { className: "size-8 animate-spin rounded-full border-4 border-action-primary-bg border-t-transparent" })
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function K({ title: e, featureFlag: t }) {
|
|
25
25
|
return /* @__PURE__ */ f("div", {
|
|
26
26
|
className: "flex min-h-[400px] items-center justify-center p-6",
|
|
27
27
|
children: /* @__PURE__ */ p("div", {
|
|
@@ -45,7 +45,7 @@ function G({ title: e, featureFlag: t }) {
|
|
|
45
45
|
})
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function q({ title: e, featureFlag: i, permission: a, eventName: c, children: l }) {
|
|
49
49
|
let u = r(), { emit: d } = n(), p = !!u[a];
|
|
50
50
|
return o(() => {
|
|
51
51
|
p && d(c, { source: "BillingAdminRoutes" });
|
|
@@ -53,20 +53,20 @@ function K({ title: e, featureFlag: i, permission: a, eventName: c, children: l
|
|
|
53
53
|
d,
|
|
54
54
|
c,
|
|
55
55
|
p
|
|
56
|
-
]), u.isLoading ? /* @__PURE__ */ f(
|
|
56
|
+
]), u.isLoading ? /* @__PURE__ */ f(G, {}) : /* @__PURE__ */ f(s, {
|
|
57
57
|
flag: i,
|
|
58
58
|
defaultValue: !0,
|
|
59
|
-
fallback: /* @__PURE__ */ f(
|
|
59
|
+
fallback: /* @__PURE__ */ f(K, {
|
|
60
60
|
title: e,
|
|
61
61
|
featureFlag: i
|
|
62
62
|
}),
|
|
63
63
|
children: p ? l : /* @__PURE__ */ f(t, { message: `You don't have permission to access ${e}.` })
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
|
-
function
|
|
67
|
-
return /* @__PURE__ */ f(
|
|
66
|
+
function J(e) {
|
|
67
|
+
return /* @__PURE__ */ f(q, { ...e });
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function Y() {
|
|
70
70
|
return /* @__PURE__ */ p(u, { children: [
|
|
71
71
|
/* @__PURE__ */ f(l, {
|
|
72
72
|
index: !0,
|
|
@@ -77,388 +77,401 @@ function J() {
|
|
|
77
77
|
}),
|
|
78
78
|
/* @__PURE__ */ f(l, {
|
|
79
79
|
path: "plans",
|
|
80
|
-
element:
|
|
80
|
+
element: J({
|
|
81
81
|
title: "Plans",
|
|
82
82
|
featureFlag: "billing.plans",
|
|
83
83
|
permission: "canViewPlans",
|
|
84
84
|
eventName: "billing.plan.viewed",
|
|
85
85
|
children: /* @__PURE__ */ f(i, {
|
|
86
|
-
fallback: /* @__PURE__ */ f(
|
|
86
|
+
fallback: /* @__PURE__ */ f(G, {}),
|
|
87
87
|
children: /* @__PURE__ */ f(m, {})
|
|
88
88
|
})
|
|
89
89
|
})
|
|
90
90
|
}),
|
|
91
91
|
/* @__PURE__ */ f(l, {
|
|
92
92
|
path: "plans/new",
|
|
93
|
-
element:
|
|
93
|
+
element: J({
|
|
94
94
|
title: "Create plan",
|
|
95
95
|
featureFlag: "billing.plans.manage",
|
|
96
96
|
permission: "canManagePlans",
|
|
97
97
|
eventName: "billing.plan.viewed",
|
|
98
98
|
children: /* @__PURE__ */ f(i, {
|
|
99
|
-
fallback: /* @__PURE__ */ f(
|
|
99
|
+
fallback: /* @__PURE__ */ f(G, {}),
|
|
100
100
|
children: /* @__PURE__ */ f(_, {})
|
|
101
101
|
})
|
|
102
102
|
})
|
|
103
103
|
}),
|
|
104
104
|
/* @__PURE__ */ f(l, {
|
|
105
105
|
path: "plans/assign-free",
|
|
106
|
-
element:
|
|
106
|
+
element: J({
|
|
107
107
|
title: "Assign plan for free",
|
|
108
108
|
featureFlag: "billing.plans.manage",
|
|
109
109
|
permission: "canManagePlans",
|
|
110
110
|
eventName: "billing.plan.viewed",
|
|
111
111
|
children: /* @__PURE__ */ f(i, {
|
|
112
|
-
fallback: /* @__PURE__ */ f(
|
|
112
|
+
fallback: /* @__PURE__ */ f(G, {}),
|
|
113
113
|
children: /* @__PURE__ */ f(v, {})
|
|
114
114
|
})
|
|
115
115
|
})
|
|
116
116
|
}),
|
|
117
117
|
/* @__PURE__ */ f(l, {
|
|
118
118
|
path: "plans/:planId",
|
|
119
|
-
element:
|
|
119
|
+
element: J({
|
|
120
120
|
title: "Plan details",
|
|
121
121
|
featureFlag: "billing.plans",
|
|
122
122
|
permission: "canViewPlans",
|
|
123
123
|
eventName: "billing.plan.viewed",
|
|
124
124
|
children: /* @__PURE__ */ f(i, {
|
|
125
|
-
fallback: /* @__PURE__ */ f(
|
|
125
|
+
fallback: /* @__PURE__ */ f(G, {}),
|
|
126
126
|
children: /* @__PURE__ */ f(h, {})
|
|
127
127
|
})
|
|
128
128
|
})
|
|
129
129
|
}),
|
|
130
130
|
/* @__PURE__ */ f(l, {
|
|
131
131
|
path: "plans/:planId/edit",
|
|
132
|
-
element:
|
|
132
|
+
element: J({
|
|
133
133
|
title: "Edit plan",
|
|
134
134
|
featureFlag: "billing.plans.manage",
|
|
135
135
|
permission: "canManagePlans",
|
|
136
136
|
eventName: "billing.plan.viewed",
|
|
137
137
|
children: /* @__PURE__ */ f(i, {
|
|
138
|
-
fallback: /* @__PURE__ */ f(
|
|
138
|
+
fallback: /* @__PURE__ */ f(G, {}),
|
|
139
139
|
children: /* @__PURE__ */ f(g, {})
|
|
140
140
|
})
|
|
141
141
|
})
|
|
142
142
|
}),
|
|
143
143
|
/* @__PURE__ */ f(l, {
|
|
144
144
|
path: "addons",
|
|
145
|
-
element:
|
|
145
|
+
element: J({
|
|
146
146
|
title: "Addons",
|
|
147
147
|
featureFlag: "billing.addons",
|
|
148
148
|
permission: "canViewAddons",
|
|
149
149
|
eventName: "billing.addon.viewed",
|
|
150
150
|
children: /* @__PURE__ */ f(i, {
|
|
151
|
-
fallback: /* @__PURE__ */ f(
|
|
151
|
+
fallback: /* @__PURE__ */ f(G, {}),
|
|
152
152
|
children: /* @__PURE__ */ f(y, {})
|
|
153
153
|
})
|
|
154
154
|
})
|
|
155
155
|
}),
|
|
156
156
|
/* @__PURE__ */ f(l, {
|
|
157
157
|
path: "addons/new",
|
|
158
|
-
element:
|
|
158
|
+
element: J({
|
|
159
159
|
title: "Create addon",
|
|
160
160
|
featureFlag: "billing.addons.manage",
|
|
161
161
|
permission: "canManageAddons",
|
|
162
162
|
eventName: "billing.addon.viewed",
|
|
163
163
|
children: /* @__PURE__ */ f(i, {
|
|
164
|
-
fallback: /* @__PURE__ */ f(
|
|
164
|
+
fallback: /* @__PURE__ */ f(G, {}),
|
|
165
165
|
children: /* @__PURE__ */ f(S, {})
|
|
166
166
|
})
|
|
167
167
|
})
|
|
168
168
|
}),
|
|
169
169
|
/* @__PURE__ */ f(l, {
|
|
170
170
|
path: "addons/:addonId",
|
|
171
|
-
element:
|
|
171
|
+
element: J({
|
|
172
172
|
title: "Addon details",
|
|
173
173
|
featureFlag: "billing.addons",
|
|
174
174
|
permission: "canViewAddons",
|
|
175
175
|
eventName: "billing.addon.viewed",
|
|
176
176
|
children: /* @__PURE__ */ f(i, {
|
|
177
|
-
fallback: /* @__PURE__ */ f(
|
|
177
|
+
fallback: /* @__PURE__ */ f(G, {}),
|
|
178
178
|
children: /* @__PURE__ */ f(b, {})
|
|
179
179
|
})
|
|
180
180
|
})
|
|
181
181
|
}),
|
|
182
182
|
/* @__PURE__ */ f(l, {
|
|
183
183
|
path: "addons/:addonId/edit",
|
|
184
|
-
element:
|
|
184
|
+
element: J({
|
|
185
185
|
title: "Edit addon",
|
|
186
186
|
featureFlag: "billing.addons.manage",
|
|
187
187
|
permission: "canManageAddons",
|
|
188
188
|
eventName: "billing.addon.viewed",
|
|
189
189
|
children: /* @__PURE__ */ f(i, {
|
|
190
|
-
fallback: /* @__PURE__ */ f(
|
|
190
|
+
fallback: /* @__PURE__ */ f(G, {}),
|
|
191
191
|
children: /* @__PURE__ */ f(x, {})
|
|
192
192
|
})
|
|
193
193
|
})
|
|
194
194
|
}),
|
|
195
195
|
/* @__PURE__ */ f(l, {
|
|
196
196
|
path: "quotas",
|
|
197
|
-
element:
|
|
197
|
+
element: J({
|
|
198
198
|
title: "Quota templates",
|
|
199
199
|
featureFlag: "billing.quotas",
|
|
200
200
|
permission: "canViewQuotas",
|
|
201
201
|
eventName: "billing.quota.viewed",
|
|
202
202
|
children: /* @__PURE__ */ f(i, {
|
|
203
|
-
fallback: /* @__PURE__ */ f(
|
|
203
|
+
fallback: /* @__PURE__ */ f(G, {}),
|
|
204
204
|
children: /* @__PURE__ */ f(C, {})
|
|
205
205
|
})
|
|
206
206
|
})
|
|
207
207
|
}),
|
|
208
208
|
/* @__PURE__ */ f(l, {
|
|
209
209
|
path: "quotas/new",
|
|
210
|
-
element:
|
|
210
|
+
element: J({
|
|
211
211
|
title: "Create quota template",
|
|
212
212
|
featureFlag: "billing.quotas.manage",
|
|
213
213
|
permission: "canManageQuotas",
|
|
214
214
|
eventName: "billing.quota.viewed",
|
|
215
215
|
children: /* @__PURE__ */ f(i, {
|
|
216
|
-
fallback: /* @__PURE__ */ f(
|
|
216
|
+
fallback: /* @__PURE__ */ f(G, {}),
|
|
217
217
|
children: /* @__PURE__ */ f(T, {})
|
|
218
218
|
})
|
|
219
219
|
})
|
|
220
220
|
}),
|
|
221
221
|
/* @__PURE__ */ f(l, {
|
|
222
222
|
path: "quotas/:quotaId",
|
|
223
|
-
element:
|
|
223
|
+
element: J({
|
|
224
224
|
title: "Quota template details",
|
|
225
225
|
featureFlag: "billing.quotas",
|
|
226
226
|
permission: "canViewQuotas",
|
|
227
227
|
eventName: "billing.quota.viewed",
|
|
228
228
|
children: /* @__PURE__ */ f(i, {
|
|
229
|
-
fallback: /* @__PURE__ */ f(
|
|
229
|
+
fallback: /* @__PURE__ */ f(G, {}),
|
|
230
230
|
children: /* @__PURE__ */ f(w, {})
|
|
231
231
|
})
|
|
232
232
|
})
|
|
233
233
|
}),
|
|
234
234
|
/* @__PURE__ */ f(l, {
|
|
235
235
|
path: "quotas/:quotaId/edit",
|
|
236
|
-
element:
|
|
236
|
+
element: J({
|
|
237
237
|
title: "Edit quota template",
|
|
238
238
|
featureFlag: "billing.quotas.manage",
|
|
239
239
|
permission: "canManageQuotas",
|
|
240
240
|
eventName: "billing.quota.viewed",
|
|
241
241
|
children: /* @__PURE__ */ f(i, {
|
|
242
|
-
fallback: /* @__PURE__ */ f(
|
|
242
|
+
fallback: /* @__PURE__ */ f(G, {}),
|
|
243
243
|
children: /* @__PURE__ */ f(E, {})
|
|
244
244
|
})
|
|
245
245
|
})
|
|
246
246
|
}),
|
|
247
247
|
/* @__PURE__ */ f(l, {
|
|
248
248
|
path: "quotas/assign-free",
|
|
249
|
-
element:
|
|
249
|
+
element: J({
|
|
250
250
|
title: "Assign quota for free",
|
|
251
251
|
featureFlag: "billing.quotas.manage",
|
|
252
252
|
permission: "canManageQuotas",
|
|
253
253
|
eventName: "billing.quota.viewed",
|
|
254
254
|
children: /* @__PURE__ */ f(i, {
|
|
255
|
-
fallback: /* @__PURE__ */ f(
|
|
255
|
+
fallback: /* @__PURE__ */ f(G, {}),
|
|
256
256
|
children: /* @__PURE__ */ f(D, {})
|
|
257
257
|
})
|
|
258
258
|
})
|
|
259
259
|
}),
|
|
260
260
|
/* @__PURE__ */ f(l, {
|
|
261
261
|
path: "coupons",
|
|
262
|
-
element:
|
|
262
|
+
element: J({
|
|
263
263
|
title: "Coupons",
|
|
264
264
|
featureFlag: "billing.discounts",
|
|
265
265
|
permission: "canManageDiscounts",
|
|
266
266
|
eventName: "billing.transaction.viewed",
|
|
267
267
|
children: /* @__PURE__ */ f(i, {
|
|
268
|
-
fallback: /* @__PURE__ */ f(
|
|
268
|
+
fallback: /* @__PURE__ */ f(G, {}),
|
|
269
269
|
children: /* @__PURE__ */ f(O, {})
|
|
270
270
|
})
|
|
271
271
|
})
|
|
272
272
|
}),
|
|
273
273
|
/* @__PURE__ */ f(l, {
|
|
274
274
|
path: "coupons/create",
|
|
275
|
-
element:
|
|
275
|
+
element: J({
|
|
276
276
|
title: "Create coupon",
|
|
277
277
|
featureFlag: "billing.discounts",
|
|
278
278
|
permission: "canManageDiscounts",
|
|
279
279
|
eventName: "billing.transaction.viewed",
|
|
280
280
|
children: /* @__PURE__ */ f(i, {
|
|
281
|
-
fallback: /* @__PURE__ */ f(
|
|
281
|
+
fallback: /* @__PURE__ */ f(G, {}),
|
|
282
282
|
children: /* @__PURE__ */ f(k, {})
|
|
283
283
|
})
|
|
284
284
|
})
|
|
285
285
|
}),
|
|
286
286
|
/* @__PURE__ */ f(l, {
|
|
287
287
|
path: "coupons/:id",
|
|
288
|
-
element:
|
|
288
|
+
element: J({
|
|
289
289
|
title: "Coupon details",
|
|
290
290
|
featureFlag: "billing.discounts",
|
|
291
291
|
permission: "canManageDiscounts",
|
|
292
292
|
eventName: "billing.transaction.viewed",
|
|
293
293
|
children: /* @__PURE__ */ f(i, {
|
|
294
|
-
fallback: /* @__PURE__ */ f(
|
|
294
|
+
fallback: /* @__PURE__ */ f(G, {}),
|
|
295
295
|
children: /* @__PURE__ */ f(j, {})
|
|
296
296
|
})
|
|
297
297
|
})
|
|
298
298
|
}),
|
|
299
299
|
/* @__PURE__ */ f(l, {
|
|
300
300
|
path: "coupons/:id/edit",
|
|
301
|
-
element:
|
|
301
|
+
element: J({
|
|
302
302
|
title: "Edit coupon",
|
|
303
303
|
featureFlag: "billing.discounts",
|
|
304
304
|
permission: "canManageDiscounts",
|
|
305
305
|
eventName: "billing.transaction.viewed",
|
|
306
306
|
children: /* @__PURE__ */ f(i, {
|
|
307
|
-
fallback: /* @__PURE__ */ f(
|
|
307
|
+
fallback: /* @__PURE__ */ f(G, {}),
|
|
308
308
|
children: /* @__PURE__ */ f(A, {})
|
|
309
309
|
})
|
|
310
310
|
})
|
|
311
311
|
}),
|
|
312
312
|
/* @__PURE__ */ f(l, {
|
|
313
313
|
path: "promotions",
|
|
314
|
-
element:
|
|
314
|
+
element: J({
|
|
315
315
|
title: "Promotions",
|
|
316
316
|
featureFlag: "billing.plans.manage",
|
|
317
317
|
permission: "canManagePlans",
|
|
318
318
|
eventName: "billing.plan.viewed",
|
|
319
319
|
children: /* @__PURE__ */ f(i, {
|
|
320
|
-
fallback: /* @__PURE__ */ f(
|
|
320
|
+
fallback: /* @__PURE__ */ f(G, {}),
|
|
321
321
|
children: /* @__PURE__ */ f(M, {})
|
|
322
322
|
})
|
|
323
323
|
})
|
|
324
324
|
}),
|
|
325
325
|
/* @__PURE__ */ f(l, {
|
|
326
326
|
path: "promotions/create",
|
|
327
|
-
element:
|
|
327
|
+
element: J({
|
|
328
328
|
title: "Create Promotion",
|
|
329
329
|
featureFlag: "billing.plans.manage",
|
|
330
330
|
permission: "canManagePlans",
|
|
331
331
|
eventName: "billing.plan.viewed",
|
|
332
332
|
children: /* @__PURE__ */ f(i, {
|
|
333
|
-
fallback: /* @__PURE__ */ f(
|
|
333
|
+
fallback: /* @__PURE__ */ f(G, {}),
|
|
334
334
|
children: /* @__PURE__ */ f(N, {})
|
|
335
335
|
})
|
|
336
336
|
})
|
|
337
337
|
}),
|
|
338
338
|
/* @__PURE__ */ f(l, {
|
|
339
339
|
path: "discounts",
|
|
340
|
-
element:
|
|
340
|
+
element: J({
|
|
341
341
|
title: "Discounts",
|
|
342
342
|
featureFlag: "billing.discounts",
|
|
343
343
|
permission: "canManageDiscounts",
|
|
344
344
|
eventName: "billing.transaction.viewed",
|
|
345
345
|
children: /* @__PURE__ */ f(i, {
|
|
346
|
-
fallback: /* @__PURE__ */ f(
|
|
346
|
+
fallback: /* @__PURE__ */ f(G, {}),
|
|
347
347
|
children: /* @__PURE__ */ f(P, {})
|
|
348
348
|
})
|
|
349
349
|
})
|
|
350
350
|
}),
|
|
351
351
|
/* @__PURE__ */ f(l, {
|
|
352
352
|
path: "credits",
|
|
353
|
-
element:
|
|
353
|
+
element: J({
|
|
354
354
|
title: "Credit grants",
|
|
355
355
|
featureFlag: "billing.credits.grants",
|
|
356
356
|
permission: "canGrantCredits",
|
|
357
357
|
eventName: "billing.credit.viewed",
|
|
358
358
|
children: /* @__PURE__ */ f(i, {
|
|
359
|
-
fallback: /* @__PURE__ */ f(
|
|
359
|
+
fallback: /* @__PURE__ */ f(G, {}),
|
|
360
360
|
children: /* @__PURE__ */ f(z, {})
|
|
361
361
|
})
|
|
362
362
|
})
|
|
363
363
|
}),
|
|
364
364
|
/* @__PURE__ */ f(l, {
|
|
365
365
|
path: "refunds",
|
|
366
|
-
element:
|
|
366
|
+
element: J({
|
|
367
367
|
title: "Refunds",
|
|
368
368
|
featureFlag: "billing.refunds",
|
|
369
369
|
permission: "canProcessRefund",
|
|
370
370
|
eventName: "billing.transaction.viewed",
|
|
371
371
|
children: /* @__PURE__ */ f(i, {
|
|
372
|
-
fallback: /* @__PURE__ */ f(
|
|
372
|
+
fallback: /* @__PURE__ */ f(G, {}),
|
|
373
373
|
children: /* @__PURE__ */ f(F, {})
|
|
374
374
|
})
|
|
375
375
|
})
|
|
376
376
|
}),
|
|
377
377
|
/* @__PURE__ */ f(l, {
|
|
378
378
|
path: "refunds/logs",
|
|
379
|
-
element:
|
|
379
|
+
element: J({
|
|
380
380
|
title: "Refund Issue Log",
|
|
381
381
|
featureFlag: "billing.refunds",
|
|
382
382
|
permission: "canProcessRefund",
|
|
383
383
|
eventName: "billing.transaction.viewed",
|
|
384
384
|
children: /* @__PURE__ */ f(i, {
|
|
385
|
-
fallback: /* @__PURE__ */ f(
|
|
385
|
+
fallback: /* @__PURE__ */ f(G, {}),
|
|
386
386
|
children: /* @__PURE__ */ f(I, {})
|
|
387
387
|
})
|
|
388
388
|
})
|
|
389
389
|
}),
|
|
390
390
|
/* @__PURE__ */ f(l, {
|
|
391
391
|
path: "webhook-logs",
|
|
392
|
-
element:
|
|
392
|
+
element: J({
|
|
393
393
|
title: "Billing webhook logs",
|
|
394
394
|
featureFlag: "billing.webhook-logs",
|
|
395
395
|
permission: "isBillingAdmin",
|
|
396
396
|
eventName: "billing.transaction.viewed",
|
|
397
397
|
children: /* @__PURE__ */ f(i, {
|
|
398
|
-
fallback: /* @__PURE__ */ f(
|
|
398
|
+
fallback: /* @__PURE__ */ f(G, {}),
|
|
399
399
|
children: /* @__PURE__ */ f(L, {})
|
|
400
400
|
})
|
|
401
401
|
})
|
|
402
402
|
}),
|
|
403
403
|
/* @__PURE__ */ f(l, {
|
|
404
404
|
path: "order-callback-logs",
|
|
405
|
-
element:
|
|
405
|
+
element: J({
|
|
406
406
|
title: "Order callback logs",
|
|
407
407
|
featureFlag: "billing.order-callback-logs",
|
|
408
408
|
permission: "isBillingAdmin",
|
|
409
409
|
eventName: "billing.transaction.viewed",
|
|
410
410
|
children: /* @__PURE__ */ f(i, {
|
|
411
|
-
fallback: /* @__PURE__ */ f(
|
|
411
|
+
fallback: /* @__PURE__ */ f(G, {}),
|
|
412
412
|
children: /* @__PURE__ */ f(R, {})
|
|
413
413
|
})
|
|
414
414
|
})
|
|
415
415
|
}),
|
|
416
416
|
/* @__PURE__ */ f(l, {
|
|
417
417
|
path: "analytics",
|
|
418
|
-
element:
|
|
418
|
+
element: J({
|
|
419
419
|
title: "Billing analytics",
|
|
420
420
|
featureFlag: "billing.analytics",
|
|
421
421
|
permission: "canViewAnalytics",
|
|
422
422
|
eventName: "billing.usage.viewed",
|
|
423
423
|
children: /* @__PURE__ */ f(i, {
|
|
424
|
-
fallback: /* @__PURE__ */ f(
|
|
424
|
+
fallback: /* @__PURE__ */ f(G, {}),
|
|
425
425
|
children: /* @__PURE__ */ f(B, {})
|
|
426
426
|
})
|
|
427
427
|
})
|
|
428
428
|
}),
|
|
429
429
|
/* @__PURE__ */ f(l, {
|
|
430
430
|
path: "developer-revenue",
|
|
431
|
-
element:
|
|
431
|
+
element: J({
|
|
432
432
|
title: "Developer revenue",
|
|
433
433
|
featureFlag: "billing.payouts.admin",
|
|
434
434
|
permission: "isBillingAdmin",
|
|
435
435
|
eventName: "billing.payout.viewed",
|
|
436
436
|
children: /* @__PURE__ */ f(i, {
|
|
437
|
-
fallback: /* @__PURE__ */ f(
|
|
437
|
+
fallback: /* @__PURE__ */ f(G, {}),
|
|
438
438
|
children: /* @__PURE__ */ f(V, {})
|
|
439
439
|
})
|
|
440
440
|
})
|
|
441
441
|
}),
|
|
442
|
+
/* @__PURE__ */ f(l, {
|
|
443
|
+
path: "developer-revenue/:organizationId",
|
|
444
|
+
element: J({
|
|
445
|
+
title: "Developer revenue detail",
|
|
446
|
+
featureFlag: "billing.payouts.admin",
|
|
447
|
+
permission: "isBillingAdmin",
|
|
448
|
+
eventName: "billing.payout.viewed",
|
|
449
|
+
children: /* @__PURE__ */ f(i, {
|
|
450
|
+
fallback: /* @__PURE__ */ f(G, {}),
|
|
451
|
+
children: /* @__PURE__ */ f(H, {})
|
|
452
|
+
})
|
|
453
|
+
})
|
|
454
|
+
}),
|
|
442
455
|
/* @__PURE__ */ f(l, {
|
|
443
456
|
path: "payouts",
|
|
444
|
-
element:
|
|
457
|
+
element: J({
|
|
445
458
|
title: "Payout administration",
|
|
446
459
|
featureFlag: "billing.payouts.admin",
|
|
447
460
|
permission: "isBillingAdmin",
|
|
448
461
|
eventName: "billing.payout.viewed",
|
|
449
462
|
children: /* @__PURE__ */ f(i, {
|
|
450
|
-
fallback: /* @__PURE__ */ f(
|
|
451
|
-
children: /* @__PURE__ */ f(
|
|
463
|
+
fallback: /* @__PURE__ */ f(G, {}),
|
|
464
|
+
children: /* @__PURE__ */ f(U, {})
|
|
452
465
|
})
|
|
453
466
|
})
|
|
454
467
|
}),
|
|
455
468
|
/* @__PURE__ */ f(l, {
|
|
456
469
|
path: "*",
|
|
457
|
-
element: /* @__PURE__ */ f(
|
|
470
|
+
element: /* @__PURE__ */ f(W, {})
|
|
458
471
|
})
|
|
459
472
|
] });
|
|
460
473
|
}
|
|
461
474
|
//#endregion
|
|
462
|
-
export {
|
|
475
|
+
export { Y as BillingAdminRoutes };
|
|
463
476
|
|
|
464
477
|
//# sourceMappingURL=BillingAdminRoutes.js.map
|