@techstuff-dev/foundation-api-utils 1.12.0 → 1.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/lib/hooks/index.d.ts +60 -60
- package/dist/@types/lib/services/auth/index.d.ts +15 -15
- package/dist/@types/lib/services/auth/slice.d.ts +45 -196
- package/dist/@types/lib/services/content/content.interfaces.d.ts +60 -20
- package/dist/@types/lib/services/content/index.d.ts +2 -2
- package/dist/@types/lib/services/index.d.ts +1 -0
- package/dist/@types/lib/store/index.d.ts +150 -150
- package/dist/@types/lib/types/index.interfaces.d.ts +69 -116
- package/dist/@types/lib/utils/dataFormat/index.d.ts +13 -49
- package/dist/index.esm.js +71 -80
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +91 -79
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -101,6 +101,7 @@ var initialState = {
|
|
|
101
101
|
accessTokenExpiry: null,
|
|
102
102
|
refreshToken: '',
|
|
103
103
|
email: '',
|
|
104
|
+
sub: '',
|
|
104
105
|
},
|
|
105
106
|
creating: {
|
|
106
107
|
details: '',
|
|
@@ -137,7 +138,7 @@ var authSlice = toolkit.createSlice({
|
|
|
137
138
|
selectUserCreatingDetails: function (auth) { return auth.creating.details; },
|
|
138
139
|
isVerifying: function (auth) { return auth.verifying; },
|
|
139
140
|
getUserSession: function (auth) { return (auth.authenticated ? auth.session : false); },
|
|
140
|
-
selectCurrentUserSub: function (auth) { return auth.user.
|
|
141
|
+
selectCurrentUserSub: function (auth) { return auth.user.sub; },
|
|
141
142
|
selectCurrentUserRefreshToken: function (auth) { return auth.user.refreshToken; },
|
|
142
143
|
selectUserTokens: function (auth) {
|
|
143
144
|
return {
|
|
@@ -147,15 +148,16 @@ var authSlice = toolkit.createSlice({
|
|
|
147
148
|
};
|
|
148
149
|
},
|
|
149
150
|
selectUserSubscriptionStatus: function (auth) {
|
|
150
|
-
var _a;
|
|
151
|
-
return (_a = auth.user.details.subscriptionDetails) === null ||
|
|
151
|
+
var _a, _b, _c;
|
|
152
|
+
return (_c = (_b = (_a = auth === null || auth === void 0 ? void 0 : auth.user) === null || _a === void 0 ? void 0 : _a.details) === null || _b === void 0 ? void 0 : _b.subscriptionDetails) === null || _c === void 0 ? void 0 : _c.status;
|
|
152
153
|
},
|
|
153
154
|
selectSubscription: function (auth) {
|
|
154
|
-
|
|
155
|
+
var _a, _b;
|
|
156
|
+
return (_b = (_a = auth === null || auth === void 0 ? void 0 : auth.user) === null || _a === void 0 ? void 0 : _a.details) === null || _b === void 0 ? void 0 : _b.subscriptionDetails;
|
|
155
157
|
},
|
|
156
158
|
selectSubscriptionPrice: function (auth) {
|
|
157
|
-
var _a;
|
|
158
|
-
return (_a = auth.user.details.subscriptionDetails) === null ||
|
|
159
|
+
var _a, _b, _c;
|
|
160
|
+
return (_c = (_b = (_a = auth === null || auth === void 0 ? void 0 : auth.user) === null || _a === void 0 ? void 0 : _a.details) === null || _b === void 0 ? void 0 : _b.subscriptionDetails) === null || _c === void 0 ? void 0 : _c.amount;
|
|
159
161
|
},
|
|
160
162
|
},
|
|
161
163
|
});
|
|
@@ -167,6 +169,7 @@ authSlice.reducer;
|
|
|
167
169
|
|
|
168
170
|
// TODO: typing.
|
|
169
171
|
var formatUserPayload = function (payload) {
|
|
172
|
+
console.log('formatUserPayload', payload);
|
|
170
173
|
var userEmail = payload.email, firstName = payload.given_name, lastName = payload.family_name, dateOfBirth = payload.birthdate, uuid = payload["cognito:username"], termsAccepted = payload["custom:termsAccepted"], subscriptionId = payload["custom:subscriptionId"], contactPreference = payload["custom:contactPreferences"], customerId = payload["custom:customerId"];
|
|
171
174
|
var parsedTermsAccepted = termsAccepted ? JSON.parse(termsAccepted) : null;
|
|
172
175
|
var parsedContactPreference = contactPreference
|
|
@@ -184,6 +187,7 @@ var formatUserPayload = function (payload) {
|
|
|
184
187
|
subscription: subscriptionId || null,
|
|
185
188
|
customerId: customerId,
|
|
186
189
|
};
|
|
190
|
+
console.log('formatUserPayload', data);
|
|
187
191
|
return data;
|
|
188
192
|
};
|
|
189
193
|
function formatPromos(data) {
|
|
@@ -214,30 +218,29 @@ function formatPromos(data) {
|
|
|
214
218
|
});
|
|
215
219
|
}
|
|
216
220
|
function formatWorkout(data) {
|
|
217
|
-
|
|
218
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9
|
|
221
|
+
return data.map(function (item) {
|
|
222
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9;
|
|
219
223
|
return {
|
|
220
224
|
changed: (_b = (_a = item === null || item === void 0 ? void 0 : item._source) === null || _a === void 0 ? void 0 : _a.changed) === null || _b === void 0 ? void 0 : _b[0],
|
|
221
225
|
created: (_d = (_c = item === null || item === void 0 ? void 0 : item._source) === null || _c === void 0 ? void 0 : _c.created) === null || _d === void 0 ? void 0 : _d[0],
|
|
222
226
|
uuid: (_f = (_e = item === null || item === void 0 ? void 0 : item._source) === null || _e === void 0 ? void 0 : _e.uuid) === null || _f === void 0 ? void 0 : _f[0],
|
|
223
227
|
description: (_h = (_g = item === null || item === void 0 ? void 0 : item._source) === null || _g === void 0 ? void 0 : _g.description) === null || _h === void 0 ? void 0 : _h[0],
|
|
224
|
-
duration: (_k = (_j = item === null || item === void 0 ? void 0 : item._source) === null || _j === void 0 ? void 0 : _j.
|
|
225
|
-
duration_filter:
|
|
226
|
-
level: (
|
|
227
|
-
published: (
|
|
228
|
-
targeted_section: (
|
|
229
|
-
uid: (
|
|
230
|
-
image: (
|
|
231
|
-
title: (
|
|
232
|
-
video: (
|
|
233
|
-
videoDownload: (
|
|
234
|
-
videoPoster: (
|
|
235
|
-
workoutCategory: (
|
|
236
|
-
workoutType: (
|
|
237
|
-
|
|
228
|
+
duration: (_k = (_j = item === null || item === void 0 ? void 0 : item._source) === null || _j === void 0 ? void 0 : _j.duration_filter) === null || _k === void 0 ? void 0 : _k[0],
|
|
229
|
+
// duration_filter: item?._source?.duration_filter?.[0],
|
|
230
|
+
level: (_m = (_l = item === null || item === void 0 ? void 0 : item._source) === null || _l === void 0 ? void 0 : _l.level) === null || _m === void 0 ? void 0 : _m[0],
|
|
231
|
+
published: (_p = (_o = item === null || item === void 0 ? void 0 : item._source) === null || _o === void 0 ? void 0 : _o.published) === null || _p === void 0 ? void 0 : _p[0],
|
|
232
|
+
targeted_section: (_r = (_q = item === null || item === void 0 ? void 0 : item._source) === null || _q === void 0 ? void 0 : _q.targeted_section) === null || _r === void 0 ? void 0 : _r[0],
|
|
233
|
+
uid: (_t = (_s = item === null || item === void 0 ? void 0 : item._source) === null || _s === void 0 ? void 0 : _s.uid) === null || _t === void 0 ? void 0 : _t[0],
|
|
234
|
+
image: (_v = (_u = item === null || item === void 0 ? void 0 : item._source) === null || _u === void 0 ? void 0 : _u.image) === null || _v === void 0 ? void 0 : _v[0],
|
|
235
|
+
title: (_x = (_w = item === null || item === void 0 ? void 0 : item._source) === null || _w === void 0 ? void 0 : _w.title) === null || _x === void 0 ? void 0 : _x[0],
|
|
236
|
+
video: (_z = (_y = item === null || item === void 0 ? void 0 : item._source) === null || _y === void 0 ? void 0 : _y.video_url) === null || _z === void 0 ? void 0 : _z[0],
|
|
237
|
+
videoDownload: (_1 = (_0 = item === null || item === void 0 ? void 0 : item._source) === null || _0 === void 0 ? void 0 : _0.video_download) === null || _1 === void 0 ? void 0 : _1[0],
|
|
238
|
+
videoPoster: (_3 = (_2 = item === null || item === void 0 ? void 0 : item._source) === null || _2 === void 0 ? void 0 : _2.video_poster) === null || _3 === void 0 ? void 0 : _3[0],
|
|
239
|
+
workoutCategory: (_5 = (_4 = item === null || item === void 0 ? void 0 : item._source) === null || _4 === void 0 ? void 0 : _4.workout_category) === null || _5 === void 0 ? void 0 : _5[0],
|
|
240
|
+
workoutType: (_7 = (_6 = item === null || item === void 0 ? void 0 : item._source) === null || _6 === void 0 ? void 0 : _6.workout_type) === null || _7 === void 0 ? void 0 : _7[0],
|
|
241
|
+
livestreamSection: (_9 = (_8 = item === null || item === void 0 ? void 0 : item._source) === null || _8 === void 0 ? void 0 : _8.livestream_section) === null || _9 === void 0 ? void 0 : _9[0],
|
|
238
242
|
};
|
|
239
243
|
});
|
|
240
|
-
return response;
|
|
241
244
|
}
|
|
242
245
|
function formatSeries(data, channel) {
|
|
243
246
|
var formattedSeriesSelection = data.map(function (series) {
|
|
@@ -378,7 +381,7 @@ function formatGuests(data) {
|
|
|
378
381
|
});
|
|
379
382
|
}
|
|
380
383
|
function formatVideos(data) {
|
|
381
|
-
|
|
384
|
+
return data.map(function (item) {
|
|
382
385
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
|
|
383
386
|
return {
|
|
384
387
|
uuid: (_b = (_a = item === null || item === void 0 ? void 0 : item._source) === null || _a === void 0 ? void 0 : _a.uuid) === null || _b === void 0 ? void 0 : _b[0],
|
|
@@ -390,12 +393,11 @@ function formatVideos(data) {
|
|
|
390
393
|
duration: (_p = (_o = item === null || item === void 0 ? void 0 : item._source) === null || _o === void 0 ? void 0 : _o.duration) === null || _p === void 0 ? void 0 : _p[0],
|
|
391
394
|
section: (_r = (_q = item === null || item === void 0 ? void 0 : item._source) === null || _q === void 0 ? void 0 : _q.section) === null || _r === void 0 ? void 0 : _r[0],
|
|
392
395
|
videoPoster: (_t = (_s = item === null || item === void 0 ? void 0 : item._source) === null || _s === void 0 ? void 0 : _s.video_poster) === null || _t === void 0 ? void 0 : _t[0],
|
|
393
|
-
|
|
396
|
+
video: (_v = (_u = item === null || item === void 0 ? void 0 : item._source) === null || _u === void 0 ? void 0 : _u.video_url) === null || _v === void 0 ? void 0 : _v[0],
|
|
394
397
|
videoDownload: (_x = (_w = item === null || item === void 0 ? void 0 : item._source) === null || _w === void 0 ? void 0 : _w.video_download) === null || _x === void 0 ? void 0 : _x[0],
|
|
395
398
|
sectionId: (_z = (_y = item === null || item === void 0 ? void 0 : item._source) === null || _y === void 0 ? void 0 : _y.section_id) === null || _z === void 0 ? void 0 : _z[0],
|
|
396
399
|
};
|
|
397
400
|
});
|
|
398
|
-
return response;
|
|
399
401
|
}
|
|
400
402
|
function formatSections(data) {
|
|
401
403
|
return data.map(function (item) {
|
|
@@ -510,9 +512,10 @@ function formatSchedule(data) {
|
|
|
510
512
|
}
|
|
511
513
|
function formatChallenges(data) {
|
|
512
514
|
return data.map(function (item) {
|
|
515
|
+
var _a;
|
|
513
516
|
var _source = item._source;
|
|
514
517
|
return {
|
|
515
|
-
uuid: _source
|
|
518
|
+
uuid: (_a = _source === null || _source === void 0 ? void 0 : _source.uuid) === null || _a === void 0 ? void 0 : _a[0],
|
|
516
519
|
title: _source.title && _source.title[0],
|
|
517
520
|
body: _source.body && _source.body[0],
|
|
518
521
|
image: _source.image && _source.image[0],
|
|
@@ -540,6 +543,26 @@ function formatChallengeDays(data) {
|
|
|
540
543
|
};
|
|
541
544
|
});
|
|
542
545
|
}
|
|
546
|
+
function formatSecondsToISO8601Duration(seconds) {
|
|
547
|
+
if (!seconds)
|
|
548
|
+
return '';
|
|
549
|
+
// Calculate hours, minutes, and remaining seconds
|
|
550
|
+
var hours = Math.floor(seconds / 3600);
|
|
551
|
+
var minutes = Math.floor((seconds % 3600) / 60);
|
|
552
|
+
var remainingSeconds = seconds % 60;
|
|
553
|
+
// Build the ISO 8601 duration string
|
|
554
|
+
var duration = 'PT';
|
|
555
|
+
if (hours > 0) {
|
|
556
|
+
duration += "".concat(hours, "H");
|
|
557
|
+
}
|
|
558
|
+
if (minutes > 0) {
|
|
559
|
+
duration += "".concat(minutes, "M");
|
|
560
|
+
}
|
|
561
|
+
if (remainingSeconds > 0 || duration === 'PT') {
|
|
562
|
+
duration += "".concat(remainingSeconds, "S");
|
|
563
|
+
}
|
|
564
|
+
return duration;
|
|
565
|
+
}
|
|
543
566
|
|
|
544
567
|
// console.log('process.env', process.env);
|
|
545
568
|
// console.log('process.env?.WEB_APP', process.env?.WEB_APP);
|
|
@@ -587,17 +610,17 @@ var authApi = react.createApi({
|
|
|
587
610
|
// add accessToken to headers from slice using selectAccessToken selector
|
|
588
611
|
var tokens = selectUserTokens(state);
|
|
589
612
|
console.log('tokens: ', tokens);
|
|
590
|
-
if (tokens) {
|
|
613
|
+
if (tokens.accessToken && tokens.idToken) {
|
|
591
614
|
headers.set('accesstoken', tokens.accessToken);
|
|
592
615
|
headers.set('idtoken', tokens.idToken);
|
|
593
|
-
headers.set('refreshtoken', tokens.refreshToken);
|
|
616
|
+
// headers.set('refreshtoken', tokens.refreshToken);
|
|
594
617
|
}
|
|
595
618
|
return headers;
|
|
596
619
|
},
|
|
597
620
|
credentials: 'include',
|
|
598
621
|
}),
|
|
599
|
-
tagTypes: ['UserToken'],
|
|
600
|
-
keepUnusedDataFor: 300,
|
|
622
|
+
tagTypes: ['UserToken', 'UserData'],
|
|
623
|
+
// keepUnusedDataFor: 300,
|
|
601
624
|
endpoints: function (builder) { return ({
|
|
602
625
|
/**
|
|
603
626
|
* USER API.
|
|
@@ -847,6 +870,7 @@ var authApi = react.createApi({
|
|
|
847
870
|
url: "/data/user/".concat(uuid),
|
|
848
871
|
method: 'GET',
|
|
849
872
|
}); },
|
|
873
|
+
providesTags: ['UserData'],
|
|
850
874
|
}),
|
|
851
875
|
updateUserInfo: builder.mutation({
|
|
852
876
|
query: function (expressions) { return ({
|
|
@@ -854,6 +878,7 @@ var authApi = react.createApi({
|
|
|
854
878
|
method: 'PATCH',
|
|
855
879
|
body: expressions,
|
|
856
880
|
}); },
|
|
881
|
+
invalidatesTags: ['UserData'],
|
|
857
882
|
}),
|
|
858
883
|
updateUser: builder.mutation({
|
|
859
884
|
query: function (data) { return ({
|
|
@@ -861,14 +886,13 @@ var authApi = react.createApi({
|
|
|
861
886
|
method: 'PATCH',
|
|
862
887
|
body: data,
|
|
863
888
|
}); },
|
|
889
|
+
invalidatesTags: ['UserData'],
|
|
864
890
|
}),
|
|
865
891
|
}); },
|
|
866
892
|
});
|
|
867
893
|
// Export hooks for usage in functional components.
|
|
868
|
-
authApi.useLoginQuery
|
|
894
|
+
var useLoginQuery = authApi.useLoginQuery, useLazyLoginQuery = authApi.useLazyLoginQuery, useResetPasswordMutation = authApi.useResetPasswordMutation, useResetPasswordAuthMutation = authApi.useResetPasswordAuthMutation, useRefreshTokenQuery = authApi.useRefreshTokenQuery, useLazyRefreshTokenQuery = authApi.useLazyRefreshTokenQuery, useLogoutQuery = authApi.useLogoutQuery, useLazyLogoutQuery = authApi.useLazyLogoutQuery, useRegisterMutation = authApi.useRegisterMutation, useVerifyUserQuery = authApi.useVerifyUserQuery, useLazyVerifyUserQuery = authApi.useLazyVerifyUserQuery, useGetUserInfoQuery = authApi.useGetUserInfoQuery, useLazyGetUserInfoQuery = authApi.useLazyGetUserInfoQuery, useUpdateUserInfoMutation = authApi.useUpdateUserInfoMutation, useForgottenPasswordMutation = authApi.useForgottenPasswordMutation, useVerifyUserAttributesQuery = authApi.useVerifyUserAttributesQuery, useLazyVerifyUserAttributesQuery = authApi.useLazyVerifyUserAttributesQuery, useVerifyUserResendQuery = authApi.useVerifyUserResendQuery, useLazyVerifyUserResendQuery = authApi.useLazyVerifyUserResendQuery, useUpdateUserMutation = authApi.useUpdateUserMutation;
|
|
869
895
|
|
|
870
|
-
// console.log('APP_ES_INSTANCE', APP_ES_INSTANCE);
|
|
871
|
-
// console.log('APP_ES_AUTH', APP_ES_AUTH);
|
|
872
896
|
var contentApi = react.createApi({
|
|
873
897
|
reducerPath: 'contentApi',
|
|
874
898
|
baseQuery: react.fetchBaseQuery({
|
|
@@ -900,41 +924,7 @@ var contentApi = react.createApi({
|
|
|
900
924
|
transformResponse: function (response) { var _a; return (_a = response === null || response === void 0 ? void 0 : response.hits) === null || _a === void 0 ? void 0 : _a.hits; },
|
|
901
925
|
providesTags: ['Data'],
|
|
902
926
|
}),
|
|
903
|
-
|
|
904
|
-
// query: (index) => ({
|
|
905
|
-
// url: `${index}/_search`,
|
|
906
|
-
// method: 'POST',
|
|
907
|
-
// body: {
|
|
908
|
-
// from: 0,
|
|
909
|
-
// size: 100,
|
|
910
|
-
// sort: [{ created: { order: 'desc' } }],
|
|
911
|
-
// query: {
|
|
912
|
-
// match_all: {},
|
|
913
|
-
// },
|
|
914
|
-
// },
|
|
915
|
-
// }),
|
|
916
|
-
// transformResponse: (response: ESPromoResponse) =>
|
|
917
|
-
// formatPromos(response?.hits?.hits),
|
|
918
|
-
// providesTags: ['Promos'],
|
|
919
|
-
// }),
|
|
920
|
-
// getWorkouts: builder.query<Workout[], string | undefined>({
|
|
921
|
-
// query: (index) => ({
|
|
922
|
-
// url: `${index}/_search`,
|
|
923
|
-
// method: 'POST',
|
|
924
|
-
// body: {
|
|
925
|
-
// from: 0,
|
|
926
|
-
// size: 100,
|
|
927
|
-
// sort: [{ created: { order: 'desc' } }],
|
|
928
|
-
// query: {
|
|
929
|
-
// match_all: {},
|
|
930
|
-
// },
|
|
931
|
-
// },
|
|
932
|
-
// }),
|
|
933
|
-
// transformResponse: (response: ESWorkoutResponse) =>
|
|
934
|
-
// formatESWorkoutItems(response?.hits?.hits),
|
|
935
|
-
// providesTags: ['Workouts'],
|
|
936
|
-
// }),
|
|
937
|
-
getWorkoutById: builder.query({
|
|
927
|
+
getDataById: builder.query({
|
|
938
928
|
query: function (_a) {
|
|
939
929
|
var index = _a.index, id = _a.id;
|
|
940
930
|
return ({
|
|
@@ -942,25 +932,20 @@ var contentApi = react.createApi({
|
|
|
942
932
|
method: 'POST',
|
|
943
933
|
body: {
|
|
944
934
|
query: {
|
|
945
|
-
|
|
935
|
+
match: {
|
|
946
936
|
uuid: id,
|
|
947
937
|
},
|
|
948
938
|
},
|
|
949
939
|
},
|
|
950
940
|
});
|
|
951
941
|
},
|
|
942
|
+
transformResponse: function (response) { var _a; return (_a = response === null || response === void 0 ? void 0 : response.hits) === null || _a === void 0 ? void 0 : _a.hits; },
|
|
952
943
|
providesTags: ['Workout'],
|
|
953
944
|
}),
|
|
954
945
|
}); },
|
|
955
946
|
});
|
|
956
|
-
contentApi.useGetDataQuery; contentApi.useLazyGetDataQuery;
|
|
957
|
-
// useGetPromosQuery,
|
|
958
|
-
// useLazyGetPromosQuery,
|
|
959
|
-
// useGetWorkoutsQuery,
|
|
960
|
-
// useLazyGetWorkoutsQuery,
|
|
961
|
-
contentApi.useGetWorkoutByIdQuery; contentApi.useLazyGetWorkoutByIdQuery;
|
|
947
|
+
contentApi.useGetDataQuery; contentApi.useLazyGetDataQuery; contentApi.useGetDataByIdQuery; contentApi.useLazyGetDataByIdQuery;
|
|
962
948
|
|
|
963
|
-
console.log('API_PAYMENTS_PREFIX: ', API_PAYMENTS_PREFIX);
|
|
964
949
|
var paymentApi = react.createApi({
|
|
965
950
|
reducerPath: 'paymentApi',
|
|
966
951
|
baseQuery: react.fetchBaseQuery({
|
|
@@ -972,10 +957,10 @@ var paymentApi = react.createApi({
|
|
|
972
957
|
// add accessToken to headers from slice using selectAccessToken selector
|
|
973
958
|
var tokens = selectUserTokens(state);
|
|
974
959
|
console.log('tokens: ', tokens);
|
|
975
|
-
if (tokens) {
|
|
960
|
+
if (tokens.accessToken && tokens.idToken) {
|
|
976
961
|
headers.set('accesstoken', tokens.accessToken);
|
|
977
962
|
headers.set('idtoken', tokens.idToken);
|
|
978
|
-
headers.set('refreshtoken', tokens.refreshToken);
|
|
963
|
+
// headers.set('refreshtoken', tokens.refreshToken);
|
|
979
964
|
}
|
|
980
965
|
return headers;
|
|
981
966
|
},
|
|
@@ -1054,6 +1039,12 @@ function createPersistStorage() {
|
|
|
1054
1039
|
|
|
1055
1040
|
// Infer the `RootState` type from the root reducer
|
|
1056
1041
|
var rootReducer = toolkit.combineSlices(authSlice, authApi, contentApi, paymentApi);
|
|
1042
|
+
// export interface RootState {
|
|
1043
|
+
// [authSlice.name]: ReturnType<typeof authSlice.reducer>;
|
|
1044
|
+
// [authApi.reducerPath]: ReturnType<typeof authApi.reducer>;
|
|
1045
|
+
// [contentApi.reducerPath]: ReturnType<typeof contentApi.reducer>;
|
|
1046
|
+
// [paymentApi.reducerPath]: ReturnType<typeof paymentApi.reducer>;
|
|
1047
|
+
// }
|
|
1057
1048
|
// eg. ['auth', 'creating'], or an empty array if you don't want to whitelist any.
|
|
1058
1049
|
// const storageWhiteList: string[] = [];
|
|
1059
1050
|
// `makeStore` encapsulates the store configuration to allow
|
|
@@ -1155,6 +1146,7 @@ exports.formatPages = formatPages;
|
|
|
1155
1146
|
exports.formatPress = formatPress;
|
|
1156
1147
|
exports.formatPromos = formatPromos;
|
|
1157
1148
|
exports.formatSchedule = formatSchedule;
|
|
1149
|
+
exports.formatSecondsToISO8601Duration = formatSecondsToISO8601Duration;
|
|
1158
1150
|
exports.formatSections = formatSections;
|
|
1159
1151
|
exports.formatSeries = formatSeries;
|
|
1160
1152
|
exports.formatSettings = formatSettings;
|
|
@@ -1185,6 +1177,26 @@ exports.updateSubscription = updateSubscription;
|
|
|
1185
1177
|
exports.useAppDispatch = useAppDispatch;
|
|
1186
1178
|
exports.useAppSelector = useAppSelector;
|
|
1187
1179
|
exports.useAppStore = useAppStore;
|
|
1180
|
+
exports.useForgottenPasswordMutation = useForgottenPasswordMutation;
|
|
1181
|
+
exports.useGetUserInfoQuery = useGetUserInfoQuery;
|
|
1182
|
+
exports.useLazyGetUserInfoQuery = useLazyGetUserInfoQuery;
|
|
1183
|
+
exports.useLazyLoginQuery = useLazyLoginQuery;
|
|
1184
|
+
exports.useLazyLogoutQuery = useLazyLogoutQuery;
|
|
1185
|
+
exports.useLazyRefreshTokenQuery = useLazyRefreshTokenQuery;
|
|
1186
|
+
exports.useLazyVerifyUserAttributesQuery = useLazyVerifyUserAttributesQuery;
|
|
1187
|
+
exports.useLazyVerifyUserQuery = useLazyVerifyUserQuery;
|
|
1188
|
+
exports.useLazyVerifyUserResendQuery = useLazyVerifyUserResendQuery;
|
|
1188
1189
|
exports.useLoggedIn = useLoggedIn;
|
|
1190
|
+
exports.useLoginQuery = useLoginQuery;
|
|
1191
|
+
exports.useLogoutQuery = useLogoutQuery;
|
|
1192
|
+
exports.useRefreshTokenQuery = useRefreshTokenQuery;
|
|
1193
|
+
exports.useRegisterMutation = useRegisterMutation;
|
|
1194
|
+
exports.useResetPasswordAuthMutation = useResetPasswordAuthMutation;
|
|
1195
|
+
exports.useResetPasswordMutation = useResetPasswordMutation;
|
|
1196
|
+
exports.useUpdateUserInfoMutation = useUpdateUserInfoMutation;
|
|
1197
|
+
exports.useUpdateUserMutation = useUpdateUserMutation;
|
|
1198
|
+
exports.useVerifyUserAttributesQuery = useVerifyUserAttributesQuery;
|
|
1199
|
+
exports.useVerifyUserQuery = useVerifyUserQuery;
|
|
1200
|
+
exports.useVerifyUserResendQuery = useVerifyUserResendQuery;
|
|
1189
1201
|
exports.webStore = webStore;
|
|
1190
1202
|
//# sourceMappingURL=index.js.map
|