@iblai/data-layer 1.2.5 → 1.2.7
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/index.d.ts +5283 -3
- package/dist/index.esm.js +361 -11
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +396 -10
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/src/features/monetization/constants.d.ts +76 -0
- package/dist/src/features/monetization/custom-api-slice.d.ts +5017 -0
- package/dist/src/features/monetization/types.d.ts +224 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/utils/index.d.ts +5 -1
- package/dist/tests/features/monetization/constants.test.d.ts +1 -0
- package/dist/tests/features/monetization/custom-api-slice.test.d.ts +1 -0
- package/dist/tests/features/monetization/types.test.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -39183,12 +39183,12 @@ const buildEndpointFromService = (service, serviceFn) => {
|
|
|
39183
39183
|
}
|
|
39184
39184
|
catch (err) {
|
|
39185
39185
|
if (Object.prototype.hasOwnProperty.call(Config.httpErrorHandlers, err === null || err === void 0 ? void 0 : err.status)) {
|
|
39186
|
-
Config.httpErrorHandlers[err === null || err === void 0 ? void 0 : err.status]();
|
|
39186
|
+
Config.httpErrorHandlers[err === null || err === void 0 ? void 0 : err.status]({ ...((err === null || err === void 0 ? void 0 : err.data) || {}) });
|
|
39187
39187
|
}
|
|
39188
39188
|
return {
|
|
39189
39189
|
error: {
|
|
39190
39190
|
status: (err === null || err === void 0 ? void 0 : err.status) || 500,
|
|
39191
|
-
data: (err === null || err === void 0 ? void 0 : err.body) || (err === null || err === void 0 ? void 0 : err.message) || 'Unknown error',
|
|
39191
|
+
data: (err === null || err === void 0 ? void 0 : err.body) || (err === null || err === void 0 ? void 0 : err.data) || (err === null || err === void 0 ? void 0 : err.message) || 'Unknown error',
|
|
39192
39192
|
},
|
|
39193
39193
|
};
|
|
39194
39194
|
}
|
|
@@ -39242,24 +39242,40 @@ const baseQuery = (service, jsonContentType = true, contentType, skipAuth = fals
|
|
|
39242
39242
|
/**
|
|
39243
39243
|
* Helper to invoke registered HTTP error handlers (e.g., logout on 401).
|
|
39244
39244
|
*/
|
|
39245
|
-
const invokeHttpErrorHandler = (status) => {
|
|
39245
|
+
const invokeHttpErrorHandler = (status, error) => {
|
|
39246
39246
|
const numericStatus = typeof status === 'number' ? status : parseInt(String(status), 10);
|
|
39247
|
+
console.log('[MONETIZATION error] ', { error });
|
|
39247
39248
|
if (!isNaN(numericStatus) &&
|
|
39248
39249
|
Object.prototype.hasOwnProperty.call(Config.httpErrorHandlers, numericStatus)) {
|
|
39249
|
-
|
|
39250
|
+
const err = error;
|
|
39251
|
+
Config.httpErrorHandlers[numericStatus]({ ...(err || {}) });
|
|
39250
39252
|
}
|
|
39251
39253
|
};
|
|
39254
|
+
/** HTTP status codes that should not be retried (e.g., 402 Payment Required). */
|
|
39255
|
+
const NON_RETRYABLE_STATUS_CODES = [402];
|
|
39256
|
+
/**
|
|
39257
|
+
* Wraps a base query to skip retries for non-retryable HTTP status codes.
|
|
39258
|
+
* Uses `retry.fail()` to immediately bail out of the retry loop.
|
|
39259
|
+
*/
|
|
39260
|
+
const withNonRetryableErrors = (query$1) => async (args, api, extraOptions) => {
|
|
39261
|
+
const result = await query$1(args, api, extraOptions);
|
|
39262
|
+
if (result.error && NON_RETRYABLE_STATUS_CODES.includes(result.error.status)) {
|
|
39263
|
+
query.retry.fail(result.error);
|
|
39264
|
+
}
|
|
39265
|
+
return result;
|
|
39266
|
+
};
|
|
39252
39267
|
const iblFetchBaseQuery = async (args, api, extraOptions) => {
|
|
39253
|
-
var _a, _b;
|
|
39268
|
+
var _a, _b, _c;
|
|
39254
39269
|
try {
|
|
39255
39270
|
// Executing base query
|
|
39256
|
-
const result = await query.retry(baseQuery(args.service, (_a = args === null || args === void 0 ? void 0 : args.isJson) !== null && _a !== void 0 ? _a : true, args === null || args === void 0 ? void 0 : args.contentType, args === null || args === void 0 ? void 0 : args.skipAuth), {
|
|
39271
|
+
const result = await query.retry(withNonRetryableErrors(baseQuery(args.service, (_a = args === null || args === void 0 ? void 0 : args.isJson) !== null && _a !== void 0 ? _a : true, args === null || args === void 0 ? void 0 : args.contentType, args === null || args === void 0 ? void 0 : args.skipAuth)), {
|
|
39257
39272
|
maxRetries: 3,
|
|
39258
39273
|
})(args, api, extraOptions);
|
|
39259
39274
|
// Query completed
|
|
39260
39275
|
if (result.error) {
|
|
39276
|
+
console.log('[MONETIZATION ERROR HANDLER]: ', { result });
|
|
39261
39277
|
// Invoke registered HTTP error handlers (e.g., logout on 401)
|
|
39262
|
-
invokeHttpErrorHandler(result.error.status);
|
|
39278
|
+
invokeHttpErrorHandler(result.error.status, (_b = result.error) === null || _b === void 0 ? void 0 : _b.data);
|
|
39263
39279
|
// For profile image upload errors, preserve the original error structure
|
|
39264
39280
|
if (args.url && args.url.includes('/profile_images/')) {
|
|
39265
39281
|
throw result.error;
|
|
@@ -39277,7 +39293,7 @@ const iblFetchBaseQuery = async (args, api, extraOptions) => {
|
|
|
39277
39293
|
// Ensure we throw a plain FetchBaseQueryError shape with enumerable fields
|
|
39278
39294
|
throw {
|
|
39279
39295
|
status: result.error.status,
|
|
39280
|
-
data: (
|
|
39296
|
+
data: (_c = result.error.data) !== null && _c !== void 0 ? _c : errorMessage,
|
|
39281
39297
|
};
|
|
39282
39298
|
}
|
|
39283
39299
|
return { data: result === null || result === void 0 ? void 0 : result.data };
|
|
@@ -39291,10 +39307,12 @@ const iblFetchBaseQuery = async (args, api, extraOptions) => {
|
|
|
39291
39307
|
error: e,
|
|
39292
39308
|
}));
|
|
39293
39309
|
// Extract status from error and invoke HTTP error handlers
|
|
39310
|
+
console.log('[MONETIZATION e]', { e });
|
|
39311
|
+
const err = e;
|
|
39294
39312
|
const errorStatus = typeof e === 'object' && e !== null && 'status' in e
|
|
39295
39313
|
? e.status
|
|
39296
39314
|
: undefined;
|
|
39297
|
-
invokeHttpErrorHandler(errorStatus);
|
|
39315
|
+
invokeHttpErrorHandler(errorStatus, err === null || err === void 0 ? void 0 : err.data);
|
|
39298
39316
|
// Preserve original RTK error object for profile image uploads
|
|
39299
39317
|
if (args.url &&
|
|
39300
39318
|
args.url.includes('/profile_images/') &&
|
|
@@ -39331,7 +39349,11 @@ const buildEndpointFromServiceLegacy = (service, serviceFn) => {
|
|
|
39331
39349
|
}
|
|
39332
39350
|
catch (err) {
|
|
39333
39351
|
if (Object.prototype.hasOwnProperty.call(Config.httpErrorHandlers, err === null || err === void 0 ? void 0 : err.status)) {
|
|
39334
|
-
Config.httpErrorHandlers[err === null || err === void 0 ? void 0 : err.status](
|
|
39352
|
+
Config.httpErrorHandlers[err === null || err === void 0 ? void 0 : err.status]({
|
|
39353
|
+
status: err === null || err === void 0 ? void 0 : err.status,
|
|
39354
|
+
body: err === null || err === void 0 ? void 0 : err.body,
|
|
39355
|
+
message: err === null || err === void 0 ? void 0 : err.message,
|
|
39356
|
+
});
|
|
39335
39357
|
}
|
|
39336
39358
|
return {
|
|
39337
39359
|
error: {
|
|
@@ -40800,6 +40822,328 @@ const billingCustomSlice = react.createApi({
|
|
|
40800
40822
|
});
|
|
40801
40823
|
const { useUpdateAutoRechargeInfoMutation, useGetAccountBillingInfoQuery, useLazyGetAccountBillingInfoQuery, useTriggerAutoRechargeMutation, } = billingCustomSlice;
|
|
40802
40824
|
|
|
40825
|
+
const MONETIZATION_REDUCER_PATH = 'monetizationApiSlice';
|
|
40826
|
+
const SERVICE_BASE = '/api/service/platforms';
|
|
40827
|
+
const BILLING_BASE = '/api/billing/platforms';
|
|
40828
|
+
const MONETIZATION_ENDPOINTS = {
|
|
40829
|
+
// Flow 1 — Stripe Connect Onboarding (Admin)
|
|
40830
|
+
STRIPE_CONNECT_STATUS: {
|
|
40831
|
+
path: (key) => `${SERVICE_BASE}/${key}/stripe/connect/status/`,
|
|
40832
|
+
service: exports.SERVICES.DM,
|
|
40833
|
+
},
|
|
40834
|
+
STRIPE_CONNECT_ONBOARD: {
|
|
40835
|
+
path: (key) => `${SERVICE_BASE}/${key}/stripe/connect/onboard/`,
|
|
40836
|
+
service: exports.SERVICES.DM,
|
|
40837
|
+
},
|
|
40838
|
+
STRIPE_CONNECT_DASHBOARD: {
|
|
40839
|
+
path: (key) => `${SERVICE_BASE}/${key}/stripe/connect/dashboard/`,
|
|
40840
|
+
service: exports.SERVICES.DM,
|
|
40841
|
+
},
|
|
40842
|
+
// Flow 2 — Configure Paywall (Admin)
|
|
40843
|
+
PAYWALL_CONFIG: {
|
|
40844
|
+
path: (key, type, id) => `${BILLING_BASE}/${key}/items/${type}/${id}/paywall/`,
|
|
40845
|
+
service: exports.SERVICES.DM,
|
|
40846
|
+
},
|
|
40847
|
+
// Flow 3 — Manage Prices (Admin)
|
|
40848
|
+
PAYWALL_PRICES: {
|
|
40849
|
+
path: (key, type, id) => `${BILLING_BASE}/${key}/items/${type}/${id}/paywall/prices/`,
|
|
40850
|
+
service: exports.SERVICES.DM,
|
|
40851
|
+
},
|
|
40852
|
+
PAYWALL_PRICE_DETAIL: {
|
|
40853
|
+
path: (key, type, id, priceId) => `${BILLING_BASE}/${key}/items/${type}/${id}/paywall/prices/${priceId}/`,
|
|
40854
|
+
service: exports.SERVICES.DM,
|
|
40855
|
+
},
|
|
40856
|
+
// Flow 4 — Public Pricing (No Auth)
|
|
40857
|
+
PUBLIC_PRICING: {
|
|
40858
|
+
path: (key, type, id) => `${BILLING_BASE}/${key}/items/${type}/${id}/pricing/`,
|
|
40859
|
+
service: exports.SERVICES.DM,
|
|
40860
|
+
},
|
|
40861
|
+
// Flow 5 — Access Check
|
|
40862
|
+
ACCESS_CHECK: {
|
|
40863
|
+
path: (key, type, id) => `${BILLING_BASE}/${key}/items/${type}/${id}/access-check/`,
|
|
40864
|
+
service: exports.SERVICES.DM,
|
|
40865
|
+
},
|
|
40866
|
+
ACCESS_CHECK_UNSCOPED: {
|
|
40867
|
+
path: (type, id) => `/api/billing/access-check/${type}/${id}/`,
|
|
40868
|
+
service: exports.SERVICES.DM,
|
|
40869
|
+
},
|
|
40870
|
+
// Flow 6 — Checkout
|
|
40871
|
+
CHECKOUT: {
|
|
40872
|
+
path: (key, type, id) => `${BILLING_BASE}/${key}/items/${type}/${id}/checkout/`,
|
|
40873
|
+
service: exports.SERVICES.DM,
|
|
40874
|
+
},
|
|
40875
|
+
CHECKOUT_GUEST: {
|
|
40876
|
+
path: (key, type, id) => `${BILLING_BASE}/${key}/items/${type}/${id}/checkout-guest/`,
|
|
40877
|
+
service: exports.SERVICES.DM,
|
|
40878
|
+
},
|
|
40879
|
+
// Flow 7 — Cancel Subscription
|
|
40880
|
+
CANCEL_SUBSCRIPTION: {
|
|
40881
|
+
path: (key, type, id) => `${BILLING_BASE}/${key}/items/${type}/${id}/subscription/cancel/`,
|
|
40882
|
+
service: exports.SERVICES.DM,
|
|
40883
|
+
},
|
|
40884
|
+
// Flow 8 — User Subscriptions
|
|
40885
|
+
MY_SUBSCRIPTIONS: {
|
|
40886
|
+
path: (key) => `${BILLING_BASE}/${key}/my-subscriptions/`,
|
|
40887
|
+
service: exports.SERVICES.DM,
|
|
40888
|
+
},
|
|
40889
|
+
ITEM_SUBSCRIPTION: {
|
|
40890
|
+
path: (key, type, id) => `${BILLING_BASE}/${key}/items/${type}/${id}/subscription/`,
|
|
40891
|
+
service: exports.SERVICES.DM,
|
|
40892
|
+
},
|
|
40893
|
+
// Flow 9 — Platform Analytics (Admin)
|
|
40894
|
+
LIST_PAYWALLS: {
|
|
40895
|
+
path: (key) => `${BILLING_BASE}/${key}/paywalls/`,
|
|
40896
|
+
service: exports.SERVICES.DM,
|
|
40897
|
+
},
|
|
40898
|
+
LIST_SUBSCRIBERS: {
|
|
40899
|
+
path: (key) => `${BILLING_BASE}/${key}/subscribers/`,
|
|
40900
|
+
service: exports.SERVICES.DM,
|
|
40901
|
+
},
|
|
40902
|
+
ITEM_SUBSCRIBERS: {
|
|
40903
|
+
path: (key, type, id) => `${BILLING_BASE}/${key}/items/${type}/${id}/subscribers/`,
|
|
40904
|
+
service: exports.SERVICES.DM,
|
|
40905
|
+
},
|
|
40906
|
+
REVENUE: {
|
|
40907
|
+
path: (key) => `${BILLING_BASE}/${key}/revenue/`,
|
|
40908
|
+
service: exports.SERVICES.DM,
|
|
40909
|
+
},
|
|
40910
|
+
};
|
|
40911
|
+
|
|
40912
|
+
const monetizationApiSlice = react.createApi({
|
|
40913
|
+
reducerPath: MONETIZATION_REDUCER_PATH,
|
|
40914
|
+
baseQuery: iblFetchBaseQuery,
|
|
40915
|
+
tagTypes: [
|
|
40916
|
+
'stripeConnectStatus',
|
|
40917
|
+
'paywallConfig',
|
|
40918
|
+
'paywallPrices',
|
|
40919
|
+
'publicPricing',
|
|
40920
|
+
'accessCheck',
|
|
40921
|
+
'mySubscriptions',
|
|
40922
|
+
'itemSubscription',
|
|
40923
|
+
'paywalls',
|
|
40924
|
+
'subscribers',
|
|
40925
|
+
'revenue',
|
|
40926
|
+
],
|
|
40927
|
+
endpoints: (builder) => ({
|
|
40928
|
+
// ── Flow 1: Stripe Connect ──
|
|
40929
|
+
getStripeConnectStatus: builder.query({
|
|
40930
|
+
query: ({ platform_key }) => ({
|
|
40931
|
+
url: MONETIZATION_ENDPOINTS.STRIPE_CONNECT_STATUS.path(platform_key),
|
|
40932
|
+
service: MONETIZATION_ENDPOINTS.STRIPE_CONNECT_STATUS.service,
|
|
40933
|
+
method: 'GET',
|
|
40934
|
+
}),
|
|
40935
|
+
providesTags: ['stripeConnectStatus'],
|
|
40936
|
+
}),
|
|
40937
|
+
startStripeConnectOnboarding: builder.mutation({
|
|
40938
|
+
query: ({ platform_key, ...body }) => ({
|
|
40939
|
+
url: MONETIZATION_ENDPOINTS.STRIPE_CONNECT_ONBOARD.path(platform_key),
|
|
40940
|
+
service: MONETIZATION_ENDPOINTS.STRIPE_CONNECT_ONBOARD.service,
|
|
40941
|
+
method: 'POST',
|
|
40942
|
+
body: JSON.stringify(body),
|
|
40943
|
+
}),
|
|
40944
|
+
invalidatesTags: ['stripeConnectStatus'],
|
|
40945
|
+
}),
|
|
40946
|
+
getStripeConnectDashboard: builder.query({
|
|
40947
|
+
query: ({ platform_key }) => ({
|
|
40948
|
+
url: MONETIZATION_ENDPOINTS.STRIPE_CONNECT_DASHBOARD.path(platform_key),
|
|
40949
|
+
service: MONETIZATION_ENDPOINTS.STRIPE_CONNECT_DASHBOARD.service,
|
|
40950
|
+
method: 'GET',
|
|
40951
|
+
}),
|
|
40952
|
+
}),
|
|
40953
|
+
// ── Flow 2: Paywall Config ──
|
|
40954
|
+
getPaywallConfig: builder.query({
|
|
40955
|
+
query: ({ platform_key, item_type, item_id }) => ({
|
|
40956
|
+
url: MONETIZATION_ENDPOINTS.PAYWALL_CONFIG.path(platform_key, item_type, item_id),
|
|
40957
|
+
service: MONETIZATION_ENDPOINTS.PAYWALL_CONFIG.service,
|
|
40958
|
+
method: 'GET',
|
|
40959
|
+
}),
|
|
40960
|
+
providesTags: ['paywallConfig'],
|
|
40961
|
+
}),
|
|
40962
|
+
enablePaywall: builder.mutation({
|
|
40963
|
+
query: ({ platform_key, item_type, item_id, ...body }) => ({
|
|
40964
|
+
url: MONETIZATION_ENDPOINTS.PAYWALL_CONFIG.path(platform_key, item_type, item_id),
|
|
40965
|
+
service: MONETIZATION_ENDPOINTS.PAYWALL_CONFIG.service,
|
|
40966
|
+
method: 'POST',
|
|
40967
|
+
body: JSON.stringify(body),
|
|
40968
|
+
}),
|
|
40969
|
+
invalidatesTags: ['paywallConfig', 'paywalls'],
|
|
40970
|
+
}),
|
|
40971
|
+
disablePaywall: builder.mutation({
|
|
40972
|
+
query: ({ platform_key, item_type, item_id }) => ({
|
|
40973
|
+
url: MONETIZATION_ENDPOINTS.PAYWALL_CONFIG.path(platform_key, item_type, item_id),
|
|
40974
|
+
service: MONETIZATION_ENDPOINTS.PAYWALL_CONFIG.service,
|
|
40975
|
+
method: 'DELETE',
|
|
40976
|
+
}),
|
|
40977
|
+
invalidatesTags: ['paywallConfig', 'paywalls'],
|
|
40978
|
+
}),
|
|
40979
|
+
// ── Flow 3: Manage Prices ──
|
|
40980
|
+
listPrices: builder.query({
|
|
40981
|
+
query: ({ platform_key, item_type, item_id }) => ({
|
|
40982
|
+
url: MONETIZATION_ENDPOINTS.PAYWALL_PRICES.path(platform_key, item_type, item_id),
|
|
40983
|
+
service: MONETIZATION_ENDPOINTS.PAYWALL_PRICES.service,
|
|
40984
|
+
method: 'GET',
|
|
40985
|
+
}),
|
|
40986
|
+
providesTags: ['paywallPrices'],
|
|
40987
|
+
}),
|
|
40988
|
+
createPrice: builder.mutation({
|
|
40989
|
+
query: ({ platform_key, item_type, item_id, ...body }) => ({
|
|
40990
|
+
url: MONETIZATION_ENDPOINTS.PAYWALL_PRICES.path(platform_key, item_type, item_id),
|
|
40991
|
+
service: MONETIZATION_ENDPOINTS.PAYWALL_PRICES.service,
|
|
40992
|
+
method: 'POST',
|
|
40993
|
+
body: JSON.stringify(body),
|
|
40994
|
+
}),
|
|
40995
|
+
invalidatesTags: ['paywallPrices', 'paywallConfig'],
|
|
40996
|
+
}),
|
|
40997
|
+
updatePrice: builder.mutation({
|
|
40998
|
+
query: ({ platform_key, item_type, item_id, price_unique_id, ...body }) => ({
|
|
40999
|
+
url: MONETIZATION_ENDPOINTS.PAYWALL_PRICE_DETAIL.path(platform_key, item_type, item_id, price_unique_id),
|
|
41000
|
+
service: MONETIZATION_ENDPOINTS.PAYWALL_PRICE_DETAIL.service,
|
|
41001
|
+
method: 'PUT',
|
|
41002
|
+
body: JSON.stringify(body),
|
|
41003
|
+
}),
|
|
41004
|
+
invalidatesTags: ['paywallPrices', 'paywallConfig'],
|
|
41005
|
+
}),
|
|
41006
|
+
deletePrice: builder.mutation({
|
|
41007
|
+
query: ({ platform_key, item_type, item_id, price_unique_id }) => ({
|
|
41008
|
+
url: MONETIZATION_ENDPOINTS.PAYWALL_PRICE_DETAIL.path(platform_key, item_type, item_id, price_unique_id),
|
|
41009
|
+
service: MONETIZATION_ENDPOINTS.PAYWALL_PRICE_DETAIL.service,
|
|
41010
|
+
method: 'DELETE',
|
|
41011
|
+
}),
|
|
41012
|
+
invalidatesTags: ['paywallPrices', 'paywallConfig'],
|
|
41013
|
+
}),
|
|
41014
|
+
// ── Flow 4: Public Pricing (No Auth) ──
|
|
41015
|
+
getPublicPricing: builder.query({
|
|
41016
|
+
query: ({ platform_key, item_type, item_id }) => ({
|
|
41017
|
+
url: MONETIZATION_ENDPOINTS.PUBLIC_PRICING.path(platform_key, item_type, item_id),
|
|
41018
|
+
service: MONETIZATION_ENDPOINTS.PUBLIC_PRICING.service,
|
|
41019
|
+
method: 'GET',
|
|
41020
|
+
skipAuth: true,
|
|
41021
|
+
}),
|
|
41022
|
+
providesTags: ['publicPricing'],
|
|
41023
|
+
}),
|
|
41024
|
+
// ── Flow 5: Access Check ──
|
|
41025
|
+
checkAccess: builder.query({
|
|
41026
|
+
query: ({ platform_key, item_type, item_id }) => ({
|
|
41027
|
+
url: MONETIZATION_ENDPOINTS.ACCESS_CHECK.path(platform_key, item_type, item_id),
|
|
41028
|
+
service: MONETIZATION_ENDPOINTS.ACCESS_CHECK.service,
|
|
41029
|
+
method: 'GET',
|
|
41030
|
+
}),
|
|
41031
|
+
providesTags: ['accessCheck'],
|
|
41032
|
+
}),
|
|
41033
|
+
checkAccessUnscoped: builder.query({
|
|
41034
|
+
query: ({ item_type, item_id, platform_key }) => ({
|
|
41035
|
+
url: MONETIZATION_ENDPOINTS.ACCESS_CHECK_UNSCOPED.path(item_type, item_id),
|
|
41036
|
+
service: MONETIZATION_ENDPOINTS.ACCESS_CHECK_UNSCOPED.service,
|
|
41037
|
+
method: 'GET',
|
|
41038
|
+
params: { platform_key },
|
|
41039
|
+
}),
|
|
41040
|
+
providesTags: ['accessCheck'],
|
|
41041
|
+
}),
|
|
41042
|
+
// ── Flow 6A/6B: Checkout (Subscription & One-Time) ──
|
|
41043
|
+
createCheckout: builder.mutation({
|
|
41044
|
+
query: ({ platform_key, item_type, item_id, ...body }) => ({
|
|
41045
|
+
url: MONETIZATION_ENDPOINTS.CHECKOUT.path(platform_key, item_type, item_id),
|
|
41046
|
+
service: MONETIZATION_ENDPOINTS.CHECKOUT.service,
|
|
41047
|
+
method: 'POST',
|
|
41048
|
+
body: JSON.stringify(body),
|
|
41049
|
+
}),
|
|
41050
|
+
}),
|
|
41051
|
+
// ── Flow 6C: Guest Checkout (No Auth) ──
|
|
41052
|
+
createGuestCheckout: builder.mutation({
|
|
41053
|
+
query: ({ platform_key, item_type, item_id, ...body }) => ({
|
|
41054
|
+
url: MONETIZATION_ENDPOINTS.CHECKOUT_GUEST.path(platform_key, item_type, item_id),
|
|
41055
|
+
service: MONETIZATION_ENDPOINTS.CHECKOUT_GUEST.service,
|
|
41056
|
+
method: 'POST',
|
|
41057
|
+
body: JSON.stringify(body),
|
|
41058
|
+
skipAuth: true,
|
|
41059
|
+
}),
|
|
41060
|
+
}),
|
|
41061
|
+
// ── Flow 7: Cancel Subscription ──
|
|
41062
|
+
cancelSubscription: builder.mutation({
|
|
41063
|
+
query: ({ platform_key, item_type, item_id, ...body }) => ({
|
|
41064
|
+
url: MONETIZATION_ENDPOINTS.CANCEL_SUBSCRIPTION.path(platform_key, item_type, item_id),
|
|
41065
|
+
service: MONETIZATION_ENDPOINTS.CANCEL_SUBSCRIPTION.service,
|
|
41066
|
+
method: 'POST',
|
|
41067
|
+
body: JSON.stringify(body),
|
|
41068
|
+
}),
|
|
41069
|
+
invalidatesTags: ['mySubscriptions', 'itemSubscription', 'accessCheck', 'subscribers'],
|
|
41070
|
+
}),
|
|
41071
|
+
// ── Flow 8: User Subscriptions ──
|
|
41072
|
+
getMySubscriptions: builder.query({
|
|
41073
|
+
query: ({ platform_key, ...params }) => ({
|
|
41074
|
+
url: MONETIZATION_ENDPOINTS.MY_SUBSCRIPTIONS.path(platform_key),
|
|
41075
|
+
service: MONETIZATION_ENDPOINTS.MY_SUBSCRIPTIONS.service,
|
|
41076
|
+
method: 'GET',
|
|
41077
|
+
params,
|
|
41078
|
+
}),
|
|
41079
|
+
providesTags: ['mySubscriptions'],
|
|
41080
|
+
}),
|
|
41081
|
+
getItemSubscription: builder.query({
|
|
41082
|
+
query: ({ platform_key, item_type, item_id }) => ({
|
|
41083
|
+
url: MONETIZATION_ENDPOINTS.ITEM_SUBSCRIPTION.path(platform_key, item_type, item_id),
|
|
41084
|
+
service: MONETIZATION_ENDPOINTS.ITEM_SUBSCRIPTION.service,
|
|
41085
|
+
method: 'GET',
|
|
41086
|
+
}),
|
|
41087
|
+
providesTags: ['itemSubscription'],
|
|
41088
|
+
}),
|
|
41089
|
+
// ── Flow 9: Platform Analytics (Admin) ──
|
|
41090
|
+
listPaywalls: builder.query({
|
|
41091
|
+
query: ({ platform_key, ...params }) => ({
|
|
41092
|
+
url: MONETIZATION_ENDPOINTS.LIST_PAYWALLS.path(platform_key),
|
|
41093
|
+
service: MONETIZATION_ENDPOINTS.LIST_PAYWALLS.service,
|
|
41094
|
+
method: 'GET',
|
|
41095
|
+
params,
|
|
41096
|
+
}),
|
|
41097
|
+
providesTags: ['paywalls'],
|
|
41098
|
+
}),
|
|
41099
|
+
listSubscribers: builder.query({
|
|
41100
|
+
query: ({ platform_key, ...params }) => ({
|
|
41101
|
+
url: MONETIZATION_ENDPOINTS.LIST_SUBSCRIBERS.path(platform_key),
|
|
41102
|
+
service: MONETIZATION_ENDPOINTS.LIST_SUBSCRIBERS.service,
|
|
41103
|
+
method: 'GET',
|
|
41104
|
+
params,
|
|
41105
|
+
}),
|
|
41106
|
+
providesTags: ['subscribers'],
|
|
41107
|
+
}),
|
|
41108
|
+
listItemSubscribers: builder.query({
|
|
41109
|
+
query: ({ platform_key, item_type, item_id, ...params }) => ({
|
|
41110
|
+
url: MONETIZATION_ENDPOINTS.ITEM_SUBSCRIBERS.path(platform_key, item_type, item_id),
|
|
41111
|
+
service: MONETIZATION_ENDPOINTS.ITEM_SUBSCRIBERS.service,
|
|
41112
|
+
method: 'GET',
|
|
41113
|
+
params,
|
|
41114
|
+
}),
|
|
41115
|
+
providesTags: ['subscribers'],
|
|
41116
|
+
}),
|
|
41117
|
+
getRevenue: builder.query({
|
|
41118
|
+
query: ({ platform_key }) => ({
|
|
41119
|
+
url: MONETIZATION_ENDPOINTS.REVENUE.path(platform_key),
|
|
41120
|
+
service: MONETIZATION_ENDPOINTS.REVENUE.service,
|
|
41121
|
+
method: 'GET',
|
|
41122
|
+
}),
|
|
41123
|
+
providesTags: ['revenue'],
|
|
41124
|
+
}),
|
|
41125
|
+
}),
|
|
41126
|
+
});
|
|
41127
|
+
const {
|
|
41128
|
+
// Flow 1: Stripe Connect
|
|
41129
|
+
useGetStripeConnectStatusQuery, useLazyGetStripeConnectStatusQuery, useStartStripeConnectOnboardingMutation, useGetStripeConnectDashboardQuery, useLazyGetStripeConnectDashboardQuery,
|
|
41130
|
+
// Flow 2: Paywall Config
|
|
41131
|
+
useGetPaywallConfigQuery, useLazyGetPaywallConfigQuery, useEnablePaywallMutation, useDisablePaywallMutation,
|
|
41132
|
+
// Flow 3: Prices
|
|
41133
|
+
useListPricesQuery, useLazyListPricesQuery, useCreatePriceMutation, useUpdatePriceMutation, useDeletePriceMutation,
|
|
41134
|
+
// Flow 4: Public Pricing
|
|
41135
|
+
useGetPublicPricingQuery, useLazyGetPublicPricingQuery,
|
|
41136
|
+
// Flow 5: Access Check
|
|
41137
|
+
useCheckAccessQuery, useLazyCheckAccessQuery, useCheckAccessUnscopedQuery, useLazyCheckAccessUnscopedQuery,
|
|
41138
|
+
// Flow 6: Checkout
|
|
41139
|
+
useCreateCheckoutMutation, useCreateGuestCheckoutMutation,
|
|
41140
|
+
// Flow 7: Cancel Subscription
|
|
41141
|
+
useCancelSubscriptionMutation,
|
|
41142
|
+
// Flow 8: User Subscriptions
|
|
41143
|
+
useGetMySubscriptionsQuery, useLazyGetMySubscriptionsQuery, useGetItemSubscriptionQuery, useLazyGetItemSubscriptionQuery,
|
|
41144
|
+
// Flow 9: Platform Analytics
|
|
41145
|
+
useListPaywallsQuery, useLazyListPaywallsQuery, useListSubscribersQuery, useLazyListSubscribersQuery, useListItemSubscribersQuery, useLazyListItemSubscribersQuery, useGetRevenueQuery, useLazyGetRevenueQuery, } = monetizationApiSlice;
|
|
41146
|
+
|
|
40803
41147
|
const STRIPE_ENDPOINTS = {
|
|
40804
41148
|
GET_STRIPE_CONTEXT: {
|
|
40805
41149
|
service: exports.SERVICES.DM,
|
|
@@ -43468,6 +43812,7 @@ const mentorReducer = {
|
|
|
43468
43812
|
[billingCustomSlice.reducerPath]: billingCustomSlice.reducer,
|
|
43469
43813
|
[analyticsCustomSlice.reducerPath]: analyticsCustomSlice.reducer,
|
|
43470
43814
|
[retirementApiSlice.reducerPath]: retirementApiSlice.reducer,
|
|
43815
|
+
[monetizationApiSlice.reducerPath]: monetizationApiSlice.reducer,
|
|
43471
43816
|
};
|
|
43472
43817
|
const mentorMiddleware = [
|
|
43473
43818
|
mentorApiSlice.middleware,
|
|
@@ -43513,6 +43858,7 @@ const mentorMiddleware = [
|
|
|
43513
43858
|
billingCustomSlice.middleware,
|
|
43514
43859
|
analyticsCustomSlice.middleware,
|
|
43515
43860
|
retirementApiSlice.middleware,
|
|
43861
|
+
monetizationApiSlice.middleware,
|
|
43516
43862
|
];
|
|
43517
43863
|
|
|
43518
43864
|
const skillsReducer = {
|
|
@@ -43548,6 +43894,8 @@ const skillsReducer = {
|
|
|
43548
43894
|
[billingCustomSlice.reducerPath]: billingCustomSlice.reducer,
|
|
43549
43895
|
[analyticsCustomSlice.reducerPath]: analyticsCustomSlice.reducer,
|
|
43550
43896
|
[retirementApiSlice.reducerPath]: retirementApiSlice.reducer,
|
|
43897
|
+
[monetizationApiSlice.reducerPath]: monetizationApiSlice.reducer,
|
|
43898
|
+
[memoryApiSlice.reducerPath]: memoryApiSlice.reducer,
|
|
43551
43899
|
};
|
|
43552
43900
|
const skillsMiddleware = [
|
|
43553
43901
|
perLearnerApiSlice.middleware,
|
|
@@ -43582,6 +43930,8 @@ const skillsMiddleware = [
|
|
|
43582
43930
|
billingCustomSlice.middleware,
|
|
43583
43931
|
analyticsCustomSlice.middleware,
|
|
43584
43932
|
retirementApiSlice.middleware,
|
|
43933
|
+
monetizationApiSlice.middleware,
|
|
43934
|
+
memoryApiSlice.middleware,
|
|
43585
43935
|
];
|
|
43586
43936
|
|
|
43587
43937
|
const initializeDataLayer = (dmUrl, lmsUrl, legacyLmsUrl, storageService, httpErrorHandler = {}) => {
|
|
@@ -43684,6 +44034,7 @@ exports.mentorMiddleware = mentorMiddleware;
|
|
|
43684
44034
|
exports.mentorReducer = mentorReducer;
|
|
43685
44035
|
exports.moderationLogsApiReducer = moderationLogsApiReducer;
|
|
43686
44036
|
exports.moderationLogsApiSlice = moderationLogsApiSlice;
|
|
44037
|
+
exports.monetizationApiSlice = monetizationApiSlice;
|
|
43687
44038
|
exports.notificationsApiSlice = notificationsApiSlice;
|
|
43688
44039
|
exports.notificationsCustomApiSlice = notificationsCustomApiSlice;
|
|
43689
44040
|
exports.perLearnerApiSlice = perLearnerApiSlice;
|
|
@@ -43710,7 +44061,10 @@ exports.useAddPinnedMessageMutation = useAddPinnedMessageMutation;
|
|
|
43710
44061
|
exports.useAddTrainingDocumentMutation = useAddTrainingDocumentMutation;
|
|
43711
44062
|
exports.useAgreeToDisclaimerMutation = useAgreeToDisclaimerMutation;
|
|
43712
44063
|
exports.useAudioToTextMutation = useAudioToTextMutation;
|
|
44064
|
+
exports.useCancelSubscriptionMutation = useCancelSubscriptionMutation;
|
|
43713
44065
|
exports.useChatWithWorkflowMutation = useChatWithWorkflowMutation;
|
|
44066
|
+
exports.useCheckAccessQuery = useCheckAccessQuery;
|
|
44067
|
+
exports.useCheckAccessUnscopedQuery = useCheckAccessUnscopedQuery;
|
|
43714
44068
|
exports.useConnectedServicesCallbackQuery = useConnectedServicesCallbackQuery;
|
|
43715
44069
|
exports.useCreateAdminProjectMutation = useCreateAdminProjectMutation;
|
|
43716
44070
|
exports.useCreateApiKeyMutation = useCreateApiKeyMutation;
|
|
@@ -43726,12 +44080,14 @@ exports.useCreateCatalogPathwaySelfEnrollmentMutation = useCreateCatalogPathwayS
|
|
|
43726
44080
|
exports.useCreateCatalogProgramMutation = useCreateCatalogProgramMutation;
|
|
43727
44081
|
exports.useCreateCatalogProgramSelfEnrollmentMutation = useCreateCatalogProgramSelfEnrollmentMutation;
|
|
43728
44082
|
exports.useCreateCatalogRoleMutation = useCreateCatalogRoleMutation;
|
|
44083
|
+
exports.useCreateCheckoutMutation = useCreateCheckoutMutation;
|
|
43729
44084
|
exports.useCreateCredentialAssertionMutation = useCreateCredentialAssertionMutation;
|
|
43730
44085
|
exports.useCreateCredentialMutation = useCreateCredentialMutation;
|
|
43731
44086
|
exports.useCreateCustomDomainMutation = useCreateCustomDomainMutation;
|
|
43732
44087
|
exports.useCreateDisclaimerMutation = useCreateDisclaimerMutation;
|
|
43733
44088
|
exports.useCreateExternalMappingMutation = useCreateExternalMappingMutation;
|
|
43734
44089
|
exports.useCreateGlobalMemoryMutation = useCreateGlobalMemoryMutation;
|
|
44090
|
+
exports.useCreateGuestCheckoutMutation = useCreateGuestCheckoutMutation;
|
|
43735
44091
|
exports.useCreateIntegrationCredentialMutation = useCreateIntegrationCredentialMutation;
|
|
43736
44092
|
exports.useCreateLLMCredentialMutation = useCreateLLMCredentialMutation;
|
|
43737
44093
|
exports.useCreateMCPServerConnectionMutation = useCreateMCPServerConnectionMutation;
|
|
@@ -43744,6 +44100,7 @@ exports.useCreateOrUpdateUserDesiredSkillMutation = useCreateOrUpdateUserDesired
|
|
|
43744
44100
|
exports.useCreateOrUpdateUserReportedSkillMutation = useCreateOrUpdateUserReportedSkillMutation;
|
|
43745
44101
|
exports.useCreatePlatformImageAssetMutation = useCreatePlatformImageAssetMutation;
|
|
43746
44102
|
exports.useCreatePlatformUserGroupMutation = useCreatePlatformUserGroupMutation;
|
|
44103
|
+
exports.useCreatePriceMutation = useCreatePriceMutation;
|
|
43747
44104
|
exports.useCreatePromptMutation = useCreatePromptMutation;
|
|
43748
44105
|
exports.useCreateProviderConfigMutation = useCreateProviderConfigMutation;
|
|
43749
44106
|
exports.useCreateRbacGroupMutation = useCreateRbacGroupMutation;
|
|
@@ -43785,6 +44142,7 @@ exports.useDeleteModerationLogMutation = useDeleteModerationLogMutation;
|
|
|
43785
44142
|
exports.useDeletePlatformConfigurationMutation = useDeletePlatformConfigurationMutation;
|
|
43786
44143
|
exports.useDeletePlatformImageAssetMutation = useDeletePlatformImageAssetMutation;
|
|
43787
44144
|
exports.useDeletePlatformUserGroupMutation = useDeletePlatformUserGroupMutation;
|
|
44145
|
+
exports.useDeletePriceMutation = useDeletePriceMutation;
|
|
43788
44146
|
exports.useDeletePromptMutation = useDeletePromptMutation;
|
|
43789
44147
|
exports.useDeleteProviderConfigMutation = useDeleteProviderConfigMutation;
|
|
43790
44148
|
exports.useDeleteRbacGroupMutation = useDeleteRbacGroupMutation;
|
|
@@ -43796,12 +44154,14 @@ exports.useDeleteUserEducationMutation = useDeleteUserEducationMutation;
|
|
|
43796
44154
|
exports.useDeleteUserExperienceMutation = useDeleteUserExperienceMutation;
|
|
43797
44155
|
exports.useDeleteUserProjectMutation = useDeleteUserProjectMutation;
|
|
43798
44156
|
exports.useDeleteWorkflowMutation = useDeleteWorkflowMutation;
|
|
44157
|
+
exports.useDisablePaywallMutation = useDisablePaywallMutation;
|
|
43799
44158
|
exports.useDisconnectServiceMutation = useDisconnectServiceMutation;
|
|
43800
44159
|
exports.useEditMentorAndRefreshListMutation = useEditMentorAndRefreshListMutation;
|
|
43801
44160
|
exports.useEditMentorJsonMutation = useEditMentorJsonMutation;
|
|
43802
44161
|
exports.useEditMentorMutation = useEditMentorMutation;
|
|
43803
44162
|
exports.useEditSessionMutation = useEditSessionMutation;
|
|
43804
44163
|
exports.useEditTrainingDocumentMutation = useEditTrainingDocumentMutation;
|
|
44164
|
+
exports.useEnablePaywallMutation = useEnablePaywallMutation;
|
|
43805
44165
|
exports.useExchangeAppleTokenMutation = useExchangeAppleTokenMutation;
|
|
43806
44166
|
exports.useExportChatHistoryMutation = useExportChatHistoryMutation;
|
|
43807
44167
|
exports.useForkMentorMutation = useForkMentorMutation;
|
|
@@ -43850,6 +44210,7 @@ exports.useGetGuidedPromptsQuery = useGetGuidedPromptsQuery;
|
|
|
43850
44210
|
exports.useGetIntegrationCredentialsQuery = useGetIntegrationCredentialsQuery;
|
|
43851
44211
|
exports.useGetIntegrationCredentialsSchemaQuery = useGetIntegrationCredentialsSchemaQuery;
|
|
43852
44212
|
exports.useGetIssuersQuery = useGetIssuersQuery;
|
|
44213
|
+
exports.useGetItemSubscriptionQuery = useGetItemSubscriptionQuery;
|
|
43853
44214
|
exports.useGetLLMCredentialsQuery = useGetLLMCredentialsQuery;
|
|
43854
44215
|
exports.useGetLlmsQuery = useGetLlmsQuery;
|
|
43855
44216
|
exports.useGetMCPServerConnectionsQuery = useGetMCPServerConnectionsQuery;
|
|
@@ -43870,6 +44231,7 @@ exports.useGetMentorsQuery = useGetMentorsQuery;
|
|
|
43870
44231
|
exports.useGetMfeContextQuery = useGetMfeContextQuery;
|
|
43871
44232
|
exports.useGetModerationLogsQuery = useGetModerationLogsQuery;
|
|
43872
44233
|
exports.useGetMostDiscussedTopicsQuery = useGetMostDiscussedTopicsQuery;
|
|
44234
|
+
exports.useGetMySubscriptionsQuery = useGetMySubscriptionsQuery;
|
|
43873
44235
|
exports.useGetNodeTypesQuery = useGetNodeTypesQuery;
|
|
43874
44236
|
exports.useGetNotificationContextQuery = useGetNotificationContextQuery;
|
|
43875
44237
|
exports.useGetNotificationsCountQuery = useGetNotificationsCountQuery;
|
|
@@ -43879,6 +44241,7 @@ exports.useGetOverTimeActivityQuery = useGetOverTimeActivityQuery;
|
|
|
43879
44241
|
exports.useGetOverviewSummaryQuery = useGetOverviewSummaryQuery;
|
|
43880
44242
|
exports.useGetPathwayCompletionQuery = useGetPathwayCompletionQuery;
|
|
43881
44243
|
exports.useGetPathwayListQuery = useGetPathwayListQuery;
|
|
44244
|
+
exports.useGetPaywallConfigQuery = useGetPaywallConfigQuery;
|
|
43882
44245
|
exports.useGetPerLearnerActivityQuery = useGetPerLearnerActivityQuery;
|
|
43883
44246
|
exports.useGetPerLearnerInfoQuery = useGetPerLearnerInfoQuery;
|
|
43884
44247
|
exports.useGetPersonnalizedMentorsQuery = useGetPersonnalizedMentorsQuery;
|
|
@@ -43898,6 +44261,7 @@ exports.useGetPromptsSearchQuery = useGetPromptsSearchQuery;
|
|
|
43898
44261
|
exports.useGetProviderConfigQuery = useGetProviderConfigQuery;
|
|
43899
44262
|
exports.useGetPublicMentorsQuery = useGetPublicMentorsQuery;
|
|
43900
44263
|
exports.useGetPublicPlatformImageAssetFileUrlQuery = useGetPublicPlatformImageAssetFileUrlQuery;
|
|
44264
|
+
exports.useGetPublicPricingQuery = useGetPublicPricingQuery;
|
|
43901
44265
|
exports.useGetRbacGroupDetailsQuery = useGetRbacGroupDetailsQuery;
|
|
43902
44266
|
exports.useGetRbacGroupsQuery = useGetRbacGroupsQuery;
|
|
43903
44267
|
exports.useGetRbacMentorAccessListQuery = useGetRbacMentorAccessListQuery;
|
|
@@ -43916,12 +44280,15 @@ exports.useGetReportDetailQuery = useGetReportDetailQuery;
|
|
|
43916
44280
|
exports.useGetReportedSkillsQuery = useGetReportedSkillsQuery;
|
|
43917
44281
|
exports.useGetReportsQuery = useGetReportsQuery;
|
|
43918
44282
|
exports.useGetResourceSearchQuery = useGetResourceSearchQuery;
|
|
44283
|
+
exports.useGetRevenueQuery = useGetRevenueQuery;
|
|
43919
44284
|
exports.useGetSessionIdQuery = useGetSessionIdQuery;
|
|
43920
44285
|
exports.useGetSessionStatsQuery = useGetSessionStatsQuery;
|
|
43921
44286
|
exports.useGetShareableLinkPublicQuery = useGetShareableLinkPublicQuery;
|
|
43922
44287
|
exports.useGetShareableLinkQuery = useGetShareableLinkQuery;
|
|
43923
44288
|
exports.useGetSharedSessionIdQuery = useGetSharedSessionIdQuery;
|
|
43924
44289
|
exports.useGetSkillsPointsPercentileQuery = useGetSkillsPointsPercentileQuery;
|
|
44290
|
+
exports.useGetStripeConnectDashboardQuery = useGetStripeConnectDashboardQuery;
|
|
44291
|
+
exports.useGetStripeConnectStatusQuery = useGetStripeConnectStatusQuery;
|
|
43925
44292
|
exports.useGetStripeContextQuery = useGetStripeContextQuery;
|
|
43926
44293
|
exports.useGetStripePricingPageSessionQuery = useGetStripePricingPageSessionQuery;
|
|
43927
44294
|
exports.useGetStudentMentorCreationStatusQuery = useGetStudentMentorCreationStatusQuery;
|
|
@@ -43972,6 +44339,8 @@ exports.useGetWorkflowQuery = useGetWorkflowQuery;
|
|
|
43972
44339
|
exports.useGetWorkflowsQuery = useGetWorkflowsQuery;
|
|
43973
44340
|
exports.useInviteUserMutation = useInviteUserMutation;
|
|
43974
44341
|
exports.useJoinTenantMutation = useJoinTenantMutation;
|
|
44342
|
+
exports.useLazyCheckAccessQuery = useLazyCheckAccessQuery;
|
|
44343
|
+
exports.useLazyCheckAccessUnscopedQuery = useLazyCheckAccessUnscopedQuery;
|
|
43975
44344
|
exports.useLazyConnectedServicesCallbackQuery = useLazyConnectedServicesCallbackQuery;
|
|
43976
44345
|
exports.useLazyGetAccountBillingInfoQuery = useLazyGetAccountBillingInfoQuery;
|
|
43977
44346
|
exports.useLazyGetAdminProjectDetailsQuery = useLazyGetAdminProjectDetailsQuery;
|
|
@@ -44007,6 +44376,7 @@ exports.useLazyGetGuidedPromptsQuery = useLazyGetGuidedPromptsQuery;
|
|
|
44007
44376
|
exports.useLazyGetIntegrationCredentialsQuery = useLazyGetIntegrationCredentialsQuery;
|
|
44008
44377
|
exports.useLazyGetIntegrationCredentialsSchemaQuery = useLazyGetIntegrationCredentialsSchemaQuery;
|
|
44009
44378
|
exports.useLazyGetIssuersQuery = useLazyGetIssuersQuery;
|
|
44379
|
+
exports.useLazyGetItemSubscriptionQuery = useLazyGetItemSubscriptionQuery;
|
|
44010
44380
|
exports.useLazyGetLLMCredentialsQuery = useLazyGetLLMCredentialsQuery;
|
|
44011
44381
|
exports.useLazyGetLlmsQuery = useLazyGetLlmsQuery;
|
|
44012
44382
|
exports.useLazyGetMCPServerQuery = useLazyGetMCPServerQuery;
|
|
@@ -44022,6 +44392,7 @@ exports.useLazyGetMentorSettingsQuery = useLazyGetMentorSettingsQuery;
|
|
|
44022
44392
|
exports.useLazyGetMentorSummariesQuery = useLazyGetMentorSummariesQuery;
|
|
44023
44393
|
exports.useLazyGetMentorsQuery = useLazyGetMentorsQuery;
|
|
44024
44394
|
exports.useLazyGetModerationLogsQuery = useLazyGetModerationLogsQuery;
|
|
44395
|
+
exports.useLazyGetMySubscriptionsQuery = useLazyGetMySubscriptionsQuery;
|
|
44025
44396
|
exports.useLazyGetNodeTypesQuery = useLazyGetNodeTypesQuery;
|
|
44026
44397
|
exports.useLazyGetNotificationContextQuery = useLazyGetNotificationContextQuery;
|
|
44027
44398
|
exports.useLazyGetNotificationsCountQuery = useLazyGetNotificationsCountQuery;
|
|
@@ -44030,6 +44401,7 @@ exports.useLazyGetOAuthServicesQuery = useLazyGetOAuthServicesQuery;
|
|
|
44030
44401
|
exports.useLazyGetOverTimeActivityQuery = useLazyGetOverTimeActivityQuery;
|
|
44031
44402
|
exports.useLazyGetPathwayCompletionQuery = useLazyGetPathwayCompletionQuery;
|
|
44032
44403
|
exports.useLazyGetPathwayListQuery = useLazyGetPathwayListQuery;
|
|
44404
|
+
exports.useLazyGetPaywallConfigQuery = useLazyGetPaywallConfigQuery;
|
|
44033
44405
|
exports.useLazyGetPerLearnerActivityQuery = useLazyGetPerLearnerActivityQuery;
|
|
44034
44406
|
exports.useLazyGetPerLearnerInfoQuery = useLazyGetPerLearnerInfoQuery;
|
|
44035
44407
|
exports.useLazyGetPersonnalizedMentorsQuery = useLazyGetPersonnalizedMentorsQuery;
|
|
@@ -44045,6 +44417,7 @@ exports.useLazyGetPromptsSearchQuery = useLazyGetPromptsSearchQuery;
|
|
|
44045
44417
|
exports.useLazyGetProviderConfigQuery = useLazyGetProviderConfigQuery;
|
|
44046
44418
|
exports.useLazyGetPublicMentorsQuery = useLazyGetPublicMentorsQuery;
|
|
44047
44419
|
exports.useLazyGetPublicPlatformImageAssetFileUrlQuery = useLazyGetPublicPlatformImageAssetFileUrlQuery;
|
|
44420
|
+
exports.useLazyGetPublicPricingQuery = useLazyGetPublicPricingQuery;
|
|
44048
44421
|
exports.useLazyGetRbacRolesQuery = useLazyGetRbacRolesQuery;
|
|
44049
44422
|
exports.useLazyGetRbacTeamsAccessListQuery = useLazyGetRbacTeamsAccessListQuery;
|
|
44050
44423
|
exports.useLazyGetRecentMessageQuery = useLazyGetRecentMessageQuery;
|
|
@@ -44055,11 +44428,14 @@ exports.useLazyGetReportDetailQuery = useLazyGetReportDetailQuery;
|
|
|
44055
44428
|
exports.useLazyGetReportedSkillsQuery = useLazyGetReportedSkillsQuery;
|
|
44056
44429
|
exports.useLazyGetReportsQuery = useLazyGetReportsQuery;
|
|
44057
44430
|
exports.useLazyGetResourceSearchQuery = useLazyGetResourceSearchQuery;
|
|
44431
|
+
exports.useLazyGetRevenueQuery = useLazyGetRevenueQuery;
|
|
44058
44432
|
exports.useLazyGetSessionIdQuery = useLazyGetSessionIdQuery;
|
|
44059
44433
|
exports.useLazyGetShareableLinkPublicQuery = useLazyGetShareableLinkPublicQuery;
|
|
44060
44434
|
exports.useLazyGetShareableLinkQuery = useLazyGetShareableLinkQuery;
|
|
44061
44435
|
exports.useLazyGetSharedSessionIdQuery = useLazyGetSharedSessionIdQuery;
|
|
44062
44436
|
exports.useLazyGetSkillsPointsPercentileQuery = useLazyGetSkillsPointsPercentileQuery;
|
|
44437
|
+
exports.useLazyGetStripeConnectDashboardQuery = useLazyGetStripeConnectDashboardQuery;
|
|
44438
|
+
exports.useLazyGetStripeConnectStatusQuery = useLazyGetStripeConnectStatusQuery;
|
|
44063
44439
|
exports.useLazyGetStripeContextQuery = useLazyGetStripeContextQuery;
|
|
44064
44440
|
exports.useLazyGetStripePricingPageSessionQuery = useLazyGetStripePricingPageSessionQuery;
|
|
44065
44441
|
exports.useLazyGetTemplateDetailsQuery = useLazyGetTemplateDetailsQuery;
|
|
@@ -44095,6 +44471,10 @@ exports.useLazyGetWorkflowQuery = useLazyGetWorkflowQuery;
|
|
|
44095
44471
|
exports.useLazyGetWorkflowsQuery = useLazyGetWorkflowsQuery;
|
|
44096
44472
|
exports.useLazyListArtifactVersionsQuery = useLazyListArtifactVersionsQuery;
|
|
44097
44473
|
exports.useLazyListArtifactsQuery = useLazyListArtifactsQuery;
|
|
44474
|
+
exports.useLazyListItemSubscribersQuery = useLazyListItemSubscribersQuery;
|
|
44475
|
+
exports.useLazyListPaywallsQuery = useLazyListPaywallsQuery;
|
|
44476
|
+
exports.useLazyListPricesQuery = useLazyListPricesQuery;
|
|
44477
|
+
exports.useLazyListSubscribersQuery = useLazyListSubscribersQuery;
|
|
44098
44478
|
exports.useLazyPlatformUserGroupsQuery = useLazyPlatformUserGroupsQuery;
|
|
44099
44479
|
exports.useLazyPlatformUsersQuery = useLazyPlatformUsersQuery;
|
|
44100
44480
|
exports.useLazyRefreshJwtTokenQuery = useLazyRefreshJwtTokenQuery;
|
|
@@ -44103,6 +44483,10 @@ exports.useLazyStarredMentorsQuery = useLazyStarredMentorsQuery;
|
|
|
44103
44483
|
exports.useLazyStartOAuthFlowQuery = useLazyStartOAuthFlowQuery;
|
|
44104
44484
|
exports.useListArtifactVersionsQuery = useListArtifactVersionsQuery;
|
|
44105
44485
|
exports.useListArtifactsQuery = useListArtifactsQuery;
|
|
44486
|
+
exports.useListItemSubscribersQuery = useListItemSubscribersQuery;
|
|
44487
|
+
exports.useListPaywallsQuery = useListPaywallsQuery;
|
|
44488
|
+
exports.useListPricesQuery = useListPricesQuery;
|
|
44489
|
+
exports.useListSubscribersQuery = useListSubscribersQuery;
|
|
44106
44490
|
exports.useMarkAllAsReadMutation = useMarkAllAsReadMutation;
|
|
44107
44491
|
exports.useOauthFindMutation = useOauthFindMutation;
|
|
44108
44492
|
exports.usePartialUpdateMCPServerMutation = usePartialUpdateMCPServerMutation;
|
|
@@ -44126,6 +44510,7 @@ exports.useSetStudentMentorCreationStatusMutation = useSetStudentMentorCreationS
|
|
|
44126
44510
|
exports.useStarMentorMutation = useStarMentorMutation;
|
|
44127
44511
|
exports.useStarredMentorsQuery = useStarredMentorsQuery;
|
|
44128
44512
|
exports.useStartExamMutation = useStartExamMutation;
|
|
44513
|
+
exports.useStartStripeConnectOnboardingMutation = useStartStripeConnectOnboardingMutation;
|
|
44129
44514
|
exports.useTimeTrackingMutation = useTimeTrackingMutation;
|
|
44130
44515
|
exports.useToggleTemplateMutation = useToggleTemplateMutation;
|
|
44131
44516
|
exports.useTriggerAutoRechargeMutation = useTriggerAutoRechargeMutation;
|
|
@@ -44151,6 +44536,7 @@ exports.useUpdatePlatformInfoMutation = useUpdatePlatformInfoMutation;
|
|
|
44151
44536
|
exports.useUpdatePlatformMembershipMutation = useUpdatePlatformMembershipMutation;
|
|
44152
44537
|
exports.useUpdatePlatformUserGroupMutation = useUpdatePlatformUserGroupMutation;
|
|
44153
44538
|
exports.useUpdatePlatformUserRoleWithPoliciesMutation = useUpdatePlatformUserRoleWithPoliciesMutation;
|
|
44539
|
+
exports.useUpdatePriceMutation = useUpdatePriceMutation;
|
|
44154
44540
|
exports.useUpdatePromptMutation = useUpdatePromptMutation;
|
|
44155
44541
|
exports.useUpdateRbacGroupMutation = useUpdateRbacGroupMutation;
|
|
44156
44542
|
exports.useUpdateRbacMentorAccessMutation = useUpdateRbacMentorAccessMutation;
|