@burdenoff/microfe-billing 2026.912.5 → 2026.913.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 +87 -74
- package/dist/billing/BillingAdminRoutes.js.map +1 -1
- package/dist/billing/modules/billing/hooks/useRefunds.js.map +1 -1
- package/dist/billing/modules/billing/index.js +5 -4
- package/dist/billing/modules/billing/pages/RefundIssueLogsPage.js +201 -0
- package/dist/billing/modules/billing/pages/RefundIssueLogsPage.js.map +1 -0
- package/dist/billing/modules/billing/pages/RefundsPage.js +116 -108
- package/dist/billing/modules/billing/pages/RefundsPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/index.js +1 -0
- package/dist/generated/global-operations.js +4 -2
- package/dist/generated/global-operations.js.map +1 -1
- package/dist/generated/global-types.js.map +1 -1
- 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.
|
|
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.PayoutAdminPage })));
|
|
12
|
+
function U() {
|
|
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 W() {
|
|
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 G({ 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 W({ title: e, featureFlag: t }) {
|
|
|
45
45
|
})
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function K({ 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 G({ 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(W, {}) : /* @__PURE__ */ f(s, {
|
|
57
57
|
flag: i,
|
|
58
58
|
defaultValue: !0,
|
|
59
|
-
fallback: /* @__PURE__ */ f(
|
|
59
|
+
fallback: /* @__PURE__ */ f(G, {
|
|
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 q(e) {
|
|
67
|
+
return /* @__PURE__ */ f(K, { ...e });
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function J() {
|
|
70
70
|
return /* @__PURE__ */ p(u, { children: [
|
|
71
71
|
/* @__PURE__ */ f(l, {
|
|
72
72
|
index: !0,
|
|
@@ -77,375 +77,388 @@ function q() {
|
|
|
77
77
|
}),
|
|
78
78
|
/* @__PURE__ */ f(l, {
|
|
79
79
|
path: "plans",
|
|
80
|
-
element:
|
|
80
|
+
element: q({
|
|
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(W, {}),
|
|
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: q({
|
|
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(W, {}),
|
|
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: q({
|
|
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(W, {}),
|
|
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: q({
|
|
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(W, {}),
|
|
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: q({
|
|
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(W, {}),
|
|
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: q({
|
|
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(W, {}),
|
|
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: q({
|
|
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(W, {}),
|
|
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: q({
|
|
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(W, {}),
|
|
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: q({
|
|
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(W, {}),
|
|
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: q({
|
|
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(W, {}),
|
|
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: q({
|
|
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(W, {}),
|
|
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: q({
|
|
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(W, {}),
|
|
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: q({
|
|
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(W, {}),
|
|
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: q({
|
|
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(W, {}),
|
|
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: q({
|
|
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(W, {}),
|
|
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: q({
|
|
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(W, {}),
|
|
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: q({
|
|
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(W, {}),
|
|
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: q({
|
|
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(W, {}),
|
|
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: q({
|
|
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(W, {}),
|
|
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: q({
|
|
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(W, {}),
|
|
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: q({
|
|
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(W, {}),
|
|
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: q({
|
|
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(
|
|
360
|
-
children: /* @__PURE__ */ f(
|
|
359
|
+
fallback: /* @__PURE__ */ f(W, {}),
|
|
360
|
+
children: /* @__PURE__ */ f(z, {})
|
|
361
361
|
})
|
|
362
362
|
})
|
|
363
363
|
}),
|
|
364
364
|
/* @__PURE__ */ f(l, {
|
|
365
365
|
path: "refunds",
|
|
366
|
-
element:
|
|
366
|
+
element: q({
|
|
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(W, {}),
|
|
373
373
|
children: /* @__PURE__ */ f(F, {})
|
|
374
374
|
})
|
|
375
375
|
})
|
|
376
376
|
}),
|
|
377
|
+
/* @__PURE__ */ f(l, {
|
|
378
|
+
path: "refunds/logs",
|
|
379
|
+
element: q({
|
|
380
|
+
title: "Refund Issue Log",
|
|
381
|
+
featureFlag: "billing.refunds",
|
|
382
|
+
permission: "canProcessRefund",
|
|
383
|
+
eventName: "billing.transaction.viewed",
|
|
384
|
+
children: /* @__PURE__ */ f(i, {
|
|
385
|
+
fallback: /* @__PURE__ */ f(W, {}),
|
|
386
|
+
children: /* @__PURE__ */ f(I, {})
|
|
387
|
+
})
|
|
388
|
+
})
|
|
389
|
+
}),
|
|
377
390
|
/* @__PURE__ */ f(l, {
|
|
378
391
|
path: "webhook-logs",
|
|
379
|
-
element:
|
|
392
|
+
element: q({
|
|
380
393
|
title: "Billing webhook logs",
|
|
381
394
|
featureFlag: "billing.webhook-logs",
|
|
382
395
|
permission: "isBillingAdmin",
|
|
383
396
|
eventName: "billing.transaction.viewed",
|
|
384
397
|
children: /* @__PURE__ */ f(i, {
|
|
385
|
-
fallback: /* @__PURE__ */ f(
|
|
386
|
-
children: /* @__PURE__ */ f(
|
|
398
|
+
fallback: /* @__PURE__ */ f(W, {}),
|
|
399
|
+
children: /* @__PURE__ */ f(L, {})
|
|
387
400
|
})
|
|
388
401
|
})
|
|
389
402
|
}),
|
|
390
403
|
/* @__PURE__ */ f(l, {
|
|
391
404
|
path: "order-callback-logs",
|
|
392
|
-
element:
|
|
405
|
+
element: q({
|
|
393
406
|
title: "Order callback logs",
|
|
394
407
|
featureFlag: "billing.order-callback-logs",
|
|
395
408
|
permission: "isBillingAdmin",
|
|
396
409
|
eventName: "billing.transaction.viewed",
|
|
397
410
|
children: /* @__PURE__ */ f(i, {
|
|
398
|
-
fallback: /* @__PURE__ */ f(
|
|
399
|
-
children: /* @__PURE__ */ f(
|
|
411
|
+
fallback: /* @__PURE__ */ f(W, {}),
|
|
412
|
+
children: /* @__PURE__ */ f(R, {})
|
|
400
413
|
})
|
|
401
414
|
})
|
|
402
415
|
}),
|
|
403
416
|
/* @__PURE__ */ f(l, {
|
|
404
417
|
path: "analytics",
|
|
405
|
-
element:
|
|
418
|
+
element: q({
|
|
406
419
|
title: "Billing analytics",
|
|
407
420
|
featureFlag: "billing.analytics",
|
|
408
421
|
permission: "canViewAnalytics",
|
|
409
422
|
eventName: "billing.usage.viewed",
|
|
410
423
|
children: /* @__PURE__ */ f(i, {
|
|
411
|
-
fallback: /* @__PURE__ */ f(
|
|
412
|
-
children: /* @__PURE__ */ f(
|
|
424
|
+
fallback: /* @__PURE__ */ f(W, {}),
|
|
425
|
+
children: /* @__PURE__ */ f(B, {})
|
|
413
426
|
})
|
|
414
427
|
})
|
|
415
428
|
}),
|
|
416
429
|
/* @__PURE__ */ f(l, {
|
|
417
430
|
path: "developer-revenue",
|
|
418
|
-
element:
|
|
431
|
+
element: q({
|
|
419
432
|
title: "Developer revenue",
|
|
420
433
|
featureFlag: "billing.payouts.admin",
|
|
421
434
|
permission: "isBillingAdmin",
|
|
422
435
|
eventName: "billing.payout.viewed",
|
|
423
436
|
children: /* @__PURE__ */ f(i, {
|
|
424
|
-
fallback: /* @__PURE__ */ f(
|
|
425
|
-
children: /* @__PURE__ */ f(
|
|
437
|
+
fallback: /* @__PURE__ */ f(W, {}),
|
|
438
|
+
children: /* @__PURE__ */ f(V, {})
|
|
426
439
|
})
|
|
427
440
|
})
|
|
428
441
|
}),
|
|
429
442
|
/* @__PURE__ */ f(l, {
|
|
430
443
|
path: "payouts",
|
|
431
|
-
element:
|
|
444
|
+
element: q({
|
|
432
445
|
title: "Payout administration",
|
|
433
446
|
featureFlag: "billing.payouts.admin",
|
|
434
447
|
permission: "isBillingAdmin",
|
|
435
448
|
eventName: "billing.payout.viewed",
|
|
436
449
|
children: /* @__PURE__ */ f(i, {
|
|
437
|
-
fallback: /* @__PURE__ */ f(
|
|
438
|
-
children: /* @__PURE__ */ f(
|
|
450
|
+
fallback: /* @__PURE__ */ f(W, {}),
|
|
451
|
+
children: /* @__PURE__ */ f(H, {})
|
|
439
452
|
})
|
|
440
453
|
})
|
|
441
454
|
}),
|
|
442
455
|
/* @__PURE__ */ f(l, {
|
|
443
456
|
path: "*",
|
|
444
|
-
element: /* @__PURE__ */ f(
|
|
457
|
+
element: /* @__PURE__ */ f(U, {})
|
|
445
458
|
})
|
|
446
459
|
] });
|
|
447
460
|
}
|
|
448
461
|
//#endregion
|
|
449
|
-
export {
|
|
462
|
+
export { J as BillingAdminRoutes };
|
|
450
463
|
|
|
451
464
|
//# sourceMappingURL=BillingAdminRoutes.js.map
|