@techstuff-dev/foundation-api-utils 1.47.0 → 1.48.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.
Files changed (50) hide show
  1. package/dist/cjs/chunks/index-CfrYa4U_.js +9 -0
  2. package/dist/cjs/chunks/index-CfrYa4U_.js.map +1 -0
  3. package/dist/cjs/chunks/shared-DeNXjWb4.js +18 -0
  4. package/dist/cjs/chunks/shared-DeNXjWb4.js.map +1 -0
  5. package/dist/{index.js → cjs/chunks/slice-CAWa47E3.js} +662 -800
  6. package/dist/cjs/chunks/slice-CAWa47E3.js.map +1 -0
  7. package/dist/cjs/index.js +97 -0
  8. package/dist/cjs/index.js.map +1 -0
  9. package/dist/cjs/store/index.native.js +413 -0
  10. package/dist/cjs/store/index.native.js.map +1 -0
  11. package/dist/cjs/store/index.web.js +186 -0
  12. package/dist/cjs/store/index.web.js.map +1 -0
  13. package/dist/esm/chunks/index-KjhWa1AL.js +6 -0
  14. package/dist/esm/chunks/index-KjhWa1AL.js.map +1 -0
  15. package/dist/esm/chunks/shared-CmoKpoEq.js +15 -0
  16. package/dist/esm/chunks/shared-CmoKpoEq.js.map +1 -0
  17. package/dist/{index.esm.js → esm/chunks/slice-CRuD2Hce.js} +663 -797
  18. package/dist/esm/chunks/slice-CRuD2Hce.js.map +1 -0
  19. package/dist/esm/index.js +15 -0
  20. package/dist/esm/index.js.map +1 -0
  21. package/dist/esm/store/index.native.js +411 -0
  22. package/dist/esm/store/index.native.js.map +1 -0
  23. package/dist/esm/store/index.web.js +184 -0
  24. package/dist/esm/store/index.web.js.map +1 -0
  25. package/dist/types/index-DQ61f1lz.d.ts +1295 -0
  26. package/dist/{index.d.ts → types/index.d.ts} +63 -1299
  27. package/dist/types/store/index.d.ts +3 -0
  28. package/package.json +23 -9
  29. package/dist/index.esm.js.map +0 -1
  30. package/dist/index.js.map +0 -1
  31. package/dist/lib/api/index.d.ts +0 -21
  32. package/dist/lib/hooks/index.d.ts +0 -4
  33. package/dist/lib/hooks/useAuth.d.ts +0 -1
  34. package/dist/lib/index.d.ts +0 -6
  35. package/dist/lib/services/auth/index.d.ts +0 -2027
  36. package/dist/lib/services/auth/slice.d.ts +0 -91
  37. package/dist/lib/services/cart/slice.d.ts +0 -155
  38. package/dist/lib/services/content/content.interfaces.d.ts +0 -801
  39. package/dist/lib/services/content/index.d.ts +0 -532
  40. package/dist/lib/services/index.d.ts +0 -7
  41. package/dist/lib/services/orders/index.d.ts +0 -271
  42. package/dist/lib/services/payment/index.d.ts +0 -1063
  43. package/dist/lib/store/index.d.ts +0 -2
  44. package/dist/lib/store/index.native.d.ts +0 -68
  45. package/dist/lib/store/index.web.d.ts +0 -68
  46. package/dist/lib/store/storage.d.ts +0 -2
  47. package/dist/lib/types/index.interfaces.d.ts +0 -428
  48. package/dist/lib/utils/dataFormat/index.d.ts +0 -86
  49. package/dist/lib/utils/helpers/index.d.ts +0 -14
  50. package/dist/node_modules/@reduxjs/toolkit/dist/uncheckedindexed.d.ts +0 -5
@@ -1,86 +0,0 @@
1
- import { FederatedSession, SocialTokens, User } from '../../types/index.interfaces';
2
- import { ESPromo, Promo, UserPayload, ESWorkout, Workout, ESShortform, ESFaq, ESPage, Page, ESSetting, ESPress, ESGuest, ESVideo, Video, ESSection, Section, ESSchedule, Schedule, ESChallenge, Challenge, ESChallengeDay, ChallengeDay, ESConfig, Config, ESSectionPanel, SectionPanel, ESSectionItem, SectionItem, ESTaxonomy, Taxonomy, ESSeries, Series, ESSeason, Season, ESLongform, LongForm, ESMediaItem, MediaItem } from '../../services/content/content.interfaces';
3
- export declare const formatUserPayload: (payload: UserPayload) => {
4
- userEmail: string;
5
- lastName: string;
6
- firstName: string;
7
- dateOfBirth: string;
8
- /** Handles the auth micro service/Cognito serving boolean options as a string. */
9
- termsAccepted: any;
10
- contactPreference: any;
11
- uuid: string;
12
- subscription: string | null;
13
- customerId: string;
14
- picture: string;
15
- };
16
- export declare function formatPromos(data: ESPromo[]): Promo[];
17
- export declare function formatWorkout(data: ESWorkout[]): Workout[];
18
- export declare function formatShortform(data: ESShortform[]): {
19
- uuid: string | undefined;
20
- id: string | undefined;
21
- nid: string | undefined;
22
- title: string | undefined;
23
- thumb: string | undefined;
24
- mainImage: string | undefined;
25
- description: string | undefined;
26
- body: string | undefined;
27
- channel: string | undefined;
28
- updated: string | undefined;
29
- langcode: string | undefined;
30
- video: string | undefined;
31
- duration: string | undefined;
32
- category: string | undefined;
33
- }[];
34
- export declare function formatFaqs(data: ESFaq[]): {
35
- uuid: string | undefined;
36
- id: string | undefined;
37
- title: string | undefined;
38
- answer: string | undefined;
39
- created: number | undefined;
40
- updated: number | undefined;
41
- }[];
42
- export declare function formatPages(data: ESPage[]): Page[];
43
- export declare function formatSettings(data: ESSetting[]): {
44
- uuid: string | undefined;
45
- created: number | undefined;
46
- updated: number | undefined;
47
- status: string | undefined;
48
- type: string | undefined;
49
- video: string | undefined;
50
- number: string | undefined;
51
- pass: string | undefined;
52
- fieldset: string | undefined;
53
- }[];
54
- export declare function formatPress(data: ESPress[]): {
55
- uuid: string | undefined;
56
- created: number | undefined;
57
- updated: number | undefined;
58
- image: string | undefined;
59
- title: string | undefined;
60
- }[];
61
- export declare function formatGuests(data: ESGuest[]): {
62
- uuid: string | undefined;
63
- id: string | undefined;
64
- title: string | undefined;
65
- updated: number | undefined;
66
- description: string | undefined;
67
- image: string | undefined;
68
- display: string | undefined;
69
- }[];
70
- export declare function formatVideos(data: ESVideo[]): Video[];
71
- export declare function formatSections(data: ESSection[]): Section[];
72
- export declare function formatSchedule(data: ESSchedule[]): Schedule[];
73
- export declare function formatChallenges(data: ESChallenge[]): Challenge[];
74
- export declare function formatChallengeDays(data: ESChallengeDay[]): ChallengeDay[];
75
- export declare function formatSecondsToISO8601Duration(seconds?: number): string;
76
- export declare function formatAuthSession(session: any): User;
77
- export declare function formatFedaratedSession(session: FederatedSession): User;
78
- export declare function formatSocialAuthSession(tokens: SocialTokens): User;
79
- export declare function formatConfig(data: ESConfig[]): Config[];
80
- export declare function formatSectionPanels(data: ESSectionPanel[]): SectionPanel[];
81
- export declare function formatSectionItems(data: ESSectionItem[]): SectionItem[];
82
- export declare const formatTaxonomies: (data: ESTaxonomy[]) => Taxonomy[];
83
- export declare const formatSeries: (data: ESSeries[]) => Series[];
84
- export declare const formatSeasons: (data: ESSeason[]) => Season[];
85
- export declare const formatLongform: (data: ESLongform[]) => LongForm[];
86
- export declare const formatMediaItem: (data: ESMediaItem[]) => MediaItem[];
@@ -1,14 +0,0 @@
1
- export declare function onlyUnique(value: any, index: number, self: any): boolean;
2
- export declare function applyCoupon(coupon: {
3
- discount: string;
4
- code: string;
5
- }, netTotal: number): {
6
- discountedTotal: number;
7
- discountedAmount: number;
8
- discount: string;
9
- code: string;
10
- };
11
- export declare function applyTax(taxRate: {
12
- percentage: number;
13
- }, netTotal: number): number;
14
- export declare function toCamelCaseObject(obj: any): any;
@@ -1,5 +0,0 @@
1
- type IfMaybeUndefined<T, True, False> = [undefined] extends [T] ? True : False;
2
- declare const testAccess: 0;
3
- export type IfUncheckedIndexedAccess<True, False> = IfMaybeUndefined<typeof testAccess, True, False>;
4
- export type UncheckedIndexedAccess<T> = IfUncheckedIndexedAccess<T | undefined, T>;
5
- export {};