@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,801 +0,0 @@
1
- export type VideoSource = {
2
- type: string;
3
- src: string;
4
- };
5
- export type S3Image = {
6
- uri: string;
7
- };
8
- /**
9
- * ES OBJECT INTERFACES
10
- **/
11
- export interface UserPayload {
12
- email: string;
13
- given_name: string;
14
- family_name: string;
15
- birthdate: string;
16
- picture: string;
17
- 'cognito:username': string;
18
- 'custom:termsAccepted': string;
19
- 'custom:subscriptionId': string;
20
- 'custom:contactPreferences': string;
21
- 'custom:customerId': string;
22
- }
23
- export interface ESPromo {
24
- _index: string;
25
- _id: string;
26
- _score: number;
27
- _source: {
28
- _language: string;
29
- align: string[];
30
- created: number[];
31
- auth_panel: boolean[];
32
- image_formatted: string[];
33
- background_image_formatted: string[];
34
- background_video: string[];
35
- background_image: string[];
36
- button_text: string[];
37
- updated: number[];
38
- title: string[];
39
- description: string[];
40
- image: string[];
41
- langcode: string[];
42
- link: string[];
43
- link_mobile: string[];
44
- section: number[];
45
- uuid: string[];
46
- video: string[];
47
- weight: number[];
48
- search_api_datasource?: string[];
49
- search_api_id?: string[];
50
- search_api_language?: string[];
51
- term?: string[];
52
- };
53
- sort: number[];
54
- }
55
- export interface ESWorkout {
56
- _index: string;
57
- _id: string;
58
- _score: number;
59
- _source: {
60
- changed: number[];
61
- created: number[];
62
- uuid: string[];
63
- description: string[];
64
- duration: string[];
65
- duration_filter: number[];
66
- image_16_9: string[];
67
- image: string[];
68
- level: string[];
69
- published: boolean[];
70
- targeted_section: string[];
71
- title: string[];
72
- uid: string[];
73
- video_url: string[];
74
- video_poster: string[];
75
- video_download: string[];
76
- workout_category: string[];
77
- workout_type: string[];
78
- livestream_section: string[];
79
- };
80
- sort: number[];
81
- }
82
- export interface ESShortform {
83
- _index: string;
84
- _id: string;
85
- _score: number;
86
- _source: {
87
- uuid?: string;
88
- nid?: string;
89
- title?: string;
90
- field_image_thumb?: string;
91
- field_image_poster?: string;
92
- field_short_synopsis?: string;
93
- field_body?: string;
94
- field_channel?: string;
95
- revision_timestamp?: string;
96
- langcode?: string;
97
- field_videomanifest?: string;
98
- field_duration?: string;
99
- field_category?: string;
100
- };
101
- sort: number[];
102
- }
103
- export interface ESLongForm {
104
- _index: string;
105
- _id: string;
106
- _score: number;
107
- _source: {
108
- uuid?: string[];
109
- nid?: string[];
110
- title?: string[];
111
- image?: string[];
112
- image_promo?: string[];
113
- image_promo_large?: string[];
114
- image_poster?: string[];
115
- summary?: string[];
116
- created?: number[];
117
- revision_timestamp?: string[];
118
- video_manifest?: string[];
119
- rating?: string[];
120
- released_date?: string[];
121
- source_id?: string[];
122
- director?: string[];
123
- duration?: string[];
124
- path?: string[];
125
- genres?: string[];
126
- actors?: string[];
127
- writers?: string[];
128
- };
129
- sort: number[];
130
- }
131
- export interface ESFaq {
132
- _index: string;
133
- _id: string;
134
- _score: number;
135
- _source: {
136
- uuid?: string[];
137
- title?: string[];
138
- answer?: string[];
139
- created?: number[];
140
- updated?: number[];
141
- };
142
- sort: number[];
143
- }
144
- export interface ESPage {
145
- _index: string;
146
- _id: string;
147
- _score: number;
148
- _source: {
149
- uuid?: string[];
150
- title?: string[];
151
- body?: string[];
152
- created?: number[];
153
- updated?: number[];
154
- langcode?: string;
155
- url?: string[];
156
- };
157
- sort: number[];
158
- }
159
- export interface ESSetting {
160
- _index: string;
161
- _id: string;
162
- _score: number;
163
- _source: {
164
- uuid?: string[];
165
- created?: number[];
166
- updated?: number[];
167
- status?: string[];
168
- type?: string[];
169
- video?: string[];
170
- number?: string[];
171
- pass?: string[];
172
- fieldset?: string[];
173
- };
174
- sort: number[];
175
- }
176
- export interface ESPress {
177
- _index: string;
178
- _id: string;
179
- _score: number;
180
- _source: {
181
- uuid?: string[];
182
- title?: string[];
183
- image?: string[];
184
- created?: number[];
185
- updated?: number[];
186
- };
187
- sort: number[];
188
- }
189
- export interface ESGuest {
190
- _index: string;
191
- _id: string;
192
- _score: number;
193
- _source: {
194
- uuid?: string[];
195
- id?: string[];
196
- title?: string[];
197
- description?: string[];
198
- image_16_9?: string[];
199
- display?: string[];
200
- updated?: number[];
201
- };
202
- sort: number[];
203
- }
204
- export interface ESVideo {
205
- _index: string;
206
- _id: string;
207
- _score: number;
208
- _source: {
209
- uuid: string[];
210
- title: string[];
211
- created: number[];
212
- updated: number[];
213
- description: string[];
214
- image: string[];
215
- duration: number[];
216
- section: string[];
217
- video_poster: string[];
218
- video_url: string[];
219
- video_download: string[];
220
- section_id: number[];
221
- };
222
- sort: number[];
223
- }
224
- export interface ESSection {
225
- _index: string;
226
- _id: string;
227
- _score: number;
228
- _source: {
229
- uuid?: string[];
230
- title?: string[];
231
- description?: string[];
232
- image?: string[];
233
- display?: string[];
234
- challenge?: string[];
235
- id?: string[];
236
- };
237
- sort: number[];
238
- }
239
- export interface ESSchedule {
240
- _index: string;
241
- _id: string;
242
- _score: number;
243
- _source: {
244
- uuid: string[];
245
- created: string[];
246
- langcode: string[];
247
- updated: string[];
248
- monday_title: string[];
249
- monday_start: string[];
250
- monday_end: string[];
251
- monday_video: string[];
252
- monday_live: string[];
253
- tuesday_title: string[];
254
- tuesday_start: string[];
255
- tuesday_end: string[];
256
- tuesday_video: string[];
257
- tuesday_live: string[];
258
- wednesday_title: string[];
259
- wednesday_start: string[];
260
- wednesday_end: string[];
261
- wednesday_video: string[];
262
- wednesday_live: string[];
263
- thursday_title: string[];
264
- thursday_start: string[];
265
- thursday_end: string[];
266
- thursday_video: string[];
267
- thursday_live: string[];
268
- friday_title: string[];
269
- friday_start: string[];
270
- friday_end: string[];
271
- friday_video: string[];
272
- friday_live: string[];
273
- saturday_title: string[];
274
- saturday_start: string[];
275
- saturday_end: string[];
276
- saturday_video: string[];
277
- saturday_live: string[];
278
- sunday_title: string[];
279
- sunday_start: string[];
280
- sunday_end: string[];
281
- sunday_video: string[];
282
- sunday_live: string[];
283
- };
284
- sort: number[];
285
- }
286
- export interface ESChallenge {
287
- _index: string;
288
- _id: string;
289
- _score: number;
290
- _source: {
291
- uuid?: string[];
292
- title?: string[];
293
- body?: string[];
294
- image?: string[];
295
- challenge_key?: string[];
296
- created?: number[];
297
- days?: string[];
298
- updated?: number[];
299
- purchase_button_label?: string[];
300
- price?: number[];
301
- };
302
- sort: number[];
303
- }
304
- export interface ESChallengeDay {
305
- _index: string;
306
- _id: string;
307
- _score: number;
308
- _source: {
309
- uuid?: string[];
310
- title?: string[];
311
- body?: string[];
312
- image?: string[];
313
- created?: number[];
314
- updated?: number[];
315
- video?: string[];
316
- workout?: string[];
317
- };
318
- sort: number[];
319
- }
320
- export interface ESConfig {
321
- _index: string;
322
- _id: string;
323
- _score: number;
324
- _source: {
325
- uuid?: string[];
326
- id?: string[];
327
- created?: number[];
328
- updated?: number[];
329
- type?: string[];
330
- cla?: string[];
331
- enabled?: boolean[];
332
- name?: string[];
333
- price?: number[];
334
- video?: string[];
335
- image_homepage?: string[];
336
- image_section_banner?: string[];
337
- search_api_id?: string[];
338
- search_api_datasource?: string[];
339
- search_api_language?: string[];
340
- };
341
- sort: number[];
342
- }
343
- export interface ESSectionPanel {
344
- _index: string;
345
- _id: string;
346
- _score: number;
347
- _source: {
348
- uuid?: string[];
349
- title?: string[];
350
- created?: number[];
351
- updated?: number[];
352
- weight?: number[];
353
- item_uuid?: string[];
354
- type?: string[];
355
- };
356
- sort: number[];
357
- }
358
- export interface ESSectionItem {
359
- _index: string;
360
- _id: string;
361
- _score: number;
362
- _source: {
363
- uuid?: string[];
364
- title?: string[];
365
- created?: number[];
366
- updated?: number[];
367
- type?: string[];
368
- term?: string[];
369
- custom_image_formatted?: string[];
370
- banner_image_formatted?: string;
371
- };
372
- sort: number[];
373
- }
374
- export interface ESTaxonomy {
375
- _index: string;
376
- _id: string;
377
- _score: number;
378
- _source: {
379
- uuid?: string[];
380
- updated?: number[];
381
- vocabulary?: string[];
382
- name?: string[];
383
- description?: string[];
384
- image?: string[];
385
- image_banner?: string[];
386
- image_banner_taxonomy?: string[];
387
- image_large_16_9?: string[];
388
- weight?: number[];
389
- parent_name?: string[];
390
- color?: string[];
391
- };
392
- sort: number[];
393
- }
394
- export interface ESSeries {
395
- _index: string;
396
- _id: string;
397
- _score: number;
398
- _source: {
399
- uuid?: string[];
400
- created?: number[];
401
- updated?: number[];
402
- display_title?: string[];
403
- synopsis?: string[];
404
- image_style_poster?: string[];
405
- image_style_thumb?: string[];
406
- category?: string[];
407
- category_id?: string[];
408
- seasons?: string[];
409
- };
410
- sort: number[];
411
- }
412
- export interface ESSeason {
413
- _index: string;
414
- _id: string;
415
- _score: number;
416
- _source: {
417
- uuid?: string[];
418
- created?: number[];
419
- updated?: number[];
420
- display_title?: string[];
421
- synopsis?: string[];
422
- image_style_poster?: string[];
423
- image_style_thumb?: string[];
424
- episodes?: string[];
425
- season_number?: string[];
426
- show?: string[];
427
- };
428
- sort: number[];
429
- }
430
- export interface ESLongform {
431
- _index: string;
432
- _id: string;
433
- _score: number;
434
- _source: {
435
- uuid?: string[];
436
- created?: number[];
437
- updated?: number[];
438
- display_title?: string[];
439
- synopsis?: string[];
440
- image_style_poster?: string[];
441
- image_style_thumb?: string[];
442
- duration?: string[];
443
- release_date?: string[];
444
- video?: string[];
445
- image_url?: string[];
446
- episode_number?: string[];
447
- };
448
- sort: number[];
449
- }
450
- export interface ESMediaItem {
451
- _index: string;
452
- _id: string;
453
- _score: number;
454
- _source: {
455
- changed?: number[];
456
- created?: number[];
457
- image?: string[];
458
- custom_thumbnail?: string[];
459
- price?: number[];
460
- price_2_year?: number[];
461
- revision_timestamp?: string[];
462
- sku?: string[];
463
- status?: string[];
464
- uuid?: string[];
465
- description?: string[];
466
- transcript?: string[];
467
- entities?: string[];
468
- phrases?: string[];
469
- video?: string[];
470
- title?: string[];
471
- generated_title?: string[];
472
- project_pricing?: string[];
473
- related_uuids?: string[];
474
- franchise_name?: string[];
475
- franchise_tid?: string[];
476
- original?: boolean[];
477
- script?: string[];
478
- hide_thumbnail_title?: string[];
479
- };
480
- sort: number[];
481
- }
482
- /**
483
- * QUERY RESPONSE INTERFACES
484
- **/
485
- export interface ESWorkoutResponse {
486
- took: number;
487
- timed_out: boolean;
488
- _shards: {
489
- total: number;
490
- successful: number;
491
- skipped: number;
492
- failed: number;
493
- };
494
- hits: {
495
- total: number;
496
- max_score: number;
497
- hits: ESWorkout[];
498
- };
499
- }
500
- export type ESDataTypes = ESWorkout[] | ESPromo[] | ESShortform[] | ESLongForm[] | ESFaq[] | ESPage[] | ESSetting[] | ESPress[] | ESGuest[] | ESVideo[] | ESSection[] | ESSchedule[] | ESChallenge[] | ESChallengeDay[] | ESConfig[];
501
- export interface ESDataResponse {
502
- took: number;
503
- timed_out: boolean;
504
- _shards: {
505
- total: number;
506
- successful: number;
507
- skipped: number;
508
- failed: number;
509
- };
510
- hits: {
511
- total: number;
512
- max_score: number;
513
- hits: ESDataTypes;
514
- };
515
- }
516
- /**
517
- * QUERY INTERFACES
518
- **/
519
- export interface IdArg {
520
- index: string;
521
- ids: string[];
522
- }
523
- export interface DataArgs {
524
- index: string;
525
- options?: {
526
- size?: number;
527
- sort?: {
528
- created: {
529
- order: string;
530
- };
531
- }[];
532
- query?: any;
533
- };
534
- }
535
- /**
536
- * FORMATTED INTERFACES
537
- **/
538
- export interface Page {
539
- uuid?: string;
540
- title?: string;
541
- body?: string;
542
- created?: number;
543
- updated?: number;
544
- langcode?: string;
545
- url?: string;
546
- }
547
- export interface Promo {
548
- uuid?: string;
549
- id?: string;
550
- title?: string;
551
- image?: string;
552
- imageFormatted?: string;
553
- description?: string;
554
- created?: number;
555
- updated?: number;
556
- weight?: number;
557
- buttonText?: string;
558
- link?: string;
559
- linkMobile?: string;
560
- }
561
- export interface Workout {
562
- created: number;
563
- changed: number;
564
- uuid: string;
565
- description: string;
566
- duration: number;
567
- imageStyled: string;
568
- image: string;
569
- level: string;
570
- published: boolean;
571
- targeted_section: string;
572
- title: string;
573
- uid: string;
574
- video: string;
575
- videoPoster: string;
576
- videoDownload: string;
577
- workoutCategory: string;
578
- workoutType: string;
579
- livestreamSection: string;
580
- }
581
- export interface Video {
582
- uuid?: string;
583
- title: string;
584
- created: number;
585
- updated: number;
586
- description: string;
587
- image: string;
588
- duration: number;
589
- section: string;
590
- videoPoster: string;
591
- video: string;
592
- videoDownload: string;
593
- sectionId: number;
594
- }
595
- export interface Section {
596
- uuid?: string;
597
- title?: string;
598
- description?: string;
599
- image?: string;
600
- display?: string;
601
- challenge?: string;
602
- id?: string;
603
- }
604
- export interface Schedule {
605
- uuid: string;
606
- created: string;
607
- langcode: string;
608
- updated: string;
609
- days: {
610
- monday?: {
611
- title: string;
612
- start: string;
613
- end: string;
614
- video: string;
615
- live: string;
616
- }[];
617
- tuesday?: {
618
- title: string;
619
- start: string;
620
- end: string;
621
- video: string;
622
- live: string;
623
- }[];
624
- wednesday?: {
625
- title: string;
626
- start: string;
627
- end: string;
628
- video: string;
629
- live: string;
630
- }[];
631
- thursday?: {
632
- title: string;
633
- start: string;
634
- end: string;
635
- video: string;
636
- live: string;
637
- }[];
638
- friday?: {
639
- title: string;
640
- start: string;
641
- end: string;
642
- video: string;
643
- live: string;
644
- }[];
645
- saturday?: {
646
- title: string;
647
- start: string;
648
- end: string;
649
- video: string;
650
- live: string;
651
- }[];
652
- sunday?: {
653
- title: string;
654
- start: string;
655
- end: string;
656
- video: string;
657
- live: string;
658
- }[];
659
- }[];
660
- }
661
- export interface Challenge {
662
- uuid?: string;
663
- title?: string;
664
- body?: string;
665
- image?: string;
666
- challengeKey?: string;
667
- created?: number;
668
- days?: string[];
669
- updated?: number;
670
- purchaseButtonLabel?: string;
671
- price?: number;
672
- }
673
- export interface ChallengeDay {
674
- uuid?: string;
675
- title?: string;
676
- body?: string;
677
- image?: string;
678
- created?: number;
679
- updated?: number;
680
- video?: string;
681
- workout?: string;
682
- }
683
- export interface Config {
684
- uuid?: string;
685
- id?: string;
686
- created?: number;
687
- updated?: number;
688
- type?: string;
689
- cla?: string;
690
- enabled?: boolean;
691
- name?: string;
692
- price?: number;
693
- video?: string;
694
- imageHomepage?: string;
695
- imageSectionBanner?: string;
696
- searchApiId?: string;
697
- searchApiDatasource?: string;
698
- searchApiLanguage?: string;
699
- }
700
- export interface SectionPanel {
701
- uuid?: string;
702
- title?: string;
703
- created?: number;
704
- updated?: number;
705
- weight?: number;
706
- items?: string[];
707
- type?: string;
708
- }
709
- export interface SectionItem {
710
- uuid?: string;
711
- title?: string;
712
- created?: number;
713
- updated?: number;
714
- type?: string;
715
- term?: string;
716
- image?: string;
717
- bannerImage?: string;
718
- }
719
- export interface Taxonomy {
720
- id?: string;
721
- uuid?: string;
722
- updated?: number;
723
- vocabulary?: string;
724
- name?: string;
725
- description?: string;
726
- image?: string;
727
- imageBanner?: string;
728
- imageBannerTaxonomy?: string;
729
- imageLarge?: string;
730
- weight?: number;
731
- parentName?: string;
732
- color?: string;
733
- }
734
- export interface Series {
735
- id?: string;
736
- title?: string;
737
- uuid?: string;
738
- created?: number;
739
- updated?: number;
740
- displayTitle?: string;
741
- synopsis?: string;
742
- imagePoster?: string;
743
- imageThumb?: string;
744
- category?: string;
745
- categoryId?: string;
746
- seasons?: string[];
747
- }
748
- export interface Season {
749
- id?: string;
750
- uuid?: string;
751
- created?: number;
752
- updated?: number;
753
- title?: string;
754
- synopsis?: string;
755
- imagePoster?: string;
756
- imageThumb?: string;
757
- episodes?: string[];
758
- seasonNumber?: string;
759
- showId?: string;
760
- }
761
- export interface LongForm {
762
- id?: string;
763
- uuid?: string;
764
- created?: number;
765
- updated?: number;
766
- title?: string;
767
- synopsis?: string;
768
- imagePoster?: string;
769
- imageThumb?: string;
770
- duration?: string;
771
- releaseDate?: string;
772
- video?: string;
773
- imageUrl?: string;
774
- episodeNumber?: string;
775
- }
776
- export interface MediaItem {
777
- changed?: number;
778
- created?: number;
779
- image?: string;
780
- customThumbnail?: string;
781
- price?: number;
782
- priceTwoYear?: number;
783
- revisionTimestamp?: string;
784
- sku?: string;
785
- status?: string;
786
- uuid?: string;
787
- description?: string;
788
- transcript?: string;
789
- entities?: string[];
790
- phrases?: string[];
791
- video?: string;
792
- title?: string;
793
- generatedTitle?: string;
794
- projectPricing?: string;
795
- relatedItems?: string[];
796
- franchises?: string[];
797
- franchisesIds?: string[];
798
- original?: boolean;
799
- script?: string;
800
- hideThumbnailTitle?: string;
801
- }