@techstuff-dev/foundation-api-utils 1.20.2 → 1.21.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.
@@ -16,8 +16,6 @@ export declare const authSlice: Slice<AuthState, {
16
16
  selectAccessToken: (state: AuthState) => string | undefined;
17
17
  selectRefreshToken: (state: AuthState) => string | undefined;
18
18
  selectCurrentUser: (state: AuthState) => UserDetails | undefined;
19
- selectUserCreating: (state: AuthState) => any;
20
- selectUserCreatingDetails: (state: AuthState) => string;
21
19
  isVerifying: (state: AuthState) => boolean;
22
20
  getUserSession: (state: AuthState) => string | boolean | undefined;
23
21
  selectCurrentUserSub: (state: AuthState) => string | undefined;
@@ -48,14 +46,6 @@ export declare const isAuthenticated: import("reselect").Selector<{
48
46
  "": AuthState;
49
47
  }, UserDetails | undefined, []> & {
50
48
  unwrapped: (state: AuthState) => UserDetails | undefined;
51
- }, selectUserCreating: import("reselect").Selector<{
52
- "": AuthState;
53
- }, any, []> & {
54
- unwrapped: (state: AuthState) => any;
55
- }, selectUserCreatingDetails: import("reselect").Selector<{
56
- "": AuthState;
57
- }, string, []> & {
58
- unwrapped: (state: AuthState) => string;
59
49
  }, isVerifying: import("reselect").Selector<{
60
50
  "": AuthState;
61
51
  }, boolean, []> & {
@@ -1,14 +1,14 @@
1
- type VideoSource = {
1
+ export type VideoSource = {
2
2
  type: string;
3
3
  src: string;
4
4
  };
5
- type S3Image = {
5
+ export type S3Image = {
6
6
  uri: string;
7
7
  };
8
8
  /**
9
9
  * ES OBJECT INTERFACES
10
10
  **/
11
- interface UserPayload {
11
+ export interface UserPayload {
12
12
  email: string;
13
13
  given_name: string;
14
14
  family_name: string;
@@ -20,7 +20,7 @@ interface UserPayload {
20
20
  'custom:contactPreferences': string;
21
21
  'custom:customerId': string;
22
22
  }
23
- interface ESPromo {
23
+ export interface ESPromo {
24
24
  _index: string;
25
25
  _id: string;
26
26
  _score: null;
@@ -47,7 +47,7 @@ interface ESPromo {
47
47
  };
48
48
  sort: number[];
49
49
  }
50
- interface ESWorkout {
50
+ export interface ESWorkout {
51
51
  _index: string;
52
52
  _id: string;
53
53
  _score: null;
@@ -73,7 +73,7 @@ interface ESWorkout {
73
73
  };
74
74
  sort: number[];
75
75
  }
76
- interface ESShortform {
76
+ export interface ESShortform {
77
77
  _index: string;
78
78
  _id: string;
79
79
  _score: null;
@@ -94,7 +94,7 @@ interface ESShortform {
94
94
  };
95
95
  sort: number[];
96
96
  }
97
- interface ESLongForm {
97
+ export interface ESLongForm {
98
98
  _index: string;
99
99
  _id: string;
100
100
  _score: null;
@@ -122,7 +122,7 @@ interface ESLongForm {
122
122
  };
123
123
  sort: number[];
124
124
  }
125
- interface ESFaq {
125
+ export interface ESFaq {
126
126
  _index: string;
127
127
  _id: string;
128
128
  _score: null;
@@ -135,7 +135,7 @@ interface ESFaq {
135
135
  };
136
136
  sort: number[];
137
137
  }
138
- interface ESPage {
138
+ export interface ESPage {
139
139
  _index: string;
140
140
  _id: string;
141
141
  _score: null;
@@ -150,7 +150,7 @@ interface ESPage {
150
150
  };
151
151
  sort: number[];
152
152
  }
153
- interface ESSetting {
153
+ export interface ESSetting {
154
154
  _index: string;
155
155
  _id: string;
156
156
  _score: null;
@@ -167,7 +167,7 @@ interface ESSetting {
167
167
  };
168
168
  sort: number[];
169
169
  }
170
- interface ESPress {
170
+ export interface ESPress {
171
171
  _index: string;
172
172
  _id: string;
173
173
  _score: null;
@@ -180,7 +180,7 @@ interface ESPress {
180
180
  };
181
181
  sort: number[];
182
182
  }
183
- interface ESGuest {
183
+ export interface ESGuest {
184
184
  _index: string;
185
185
  _id: string;
186
186
  _score: null;
@@ -195,7 +195,7 @@ interface ESGuest {
195
195
  };
196
196
  sort: number[];
197
197
  }
198
- interface ESVideo {
198
+ export interface ESVideo {
199
199
  _index: string;
200
200
  _id: string;
201
201
  _score: null;
@@ -215,7 +215,7 @@ interface ESVideo {
215
215
  };
216
216
  sort: number[];
217
217
  }
218
- interface ESSection {
218
+ export interface ESSection {
219
219
  _index: string;
220
220
  _id: string;
221
221
  _score: null;
@@ -230,7 +230,7 @@ interface ESSection {
230
230
  };
231
231
  sort: number[];
232
232
  }
233
- interface ESSchedule {
233
+ export interface ESSchedule {
234
234
  _index: string;
235
235
  _id: string;
236
236
  _score: null;
@@ -277,7 +277,7 @@ interface ESSchedule {
277
277
  };
278
278
  sort: number[];
279
279
  }
280
- interface ESChallenge {
280
+ export interface ESChallenge {
281
281
  _index: string;
282
282
  _id: string;
283
283
  _score: null;
@@ -295,7 +295,7 @@ interface ESChallenge {
295
295
  };
296
296
  sort: number[];
297
297
  }
298
- interface ESChallengeDay {
298
+ export interface ESChallengeDay {
299
299
  _index: string;
300
300
  _id: string;
301
301
  _score: null;
@@ -314,7 +314,7 @@ interface ESChallengeDay {
314
314
  /**
315
315
  * QUERY RESPONSE INTERFACES
316
316
  **/
317
- interface ESWorkoutResponse {
317
+ export interface ESWorkoutResponse {
318
318
  took: number;
319
319
  timed_out: boolean;
320
320
  _shards: {
@@ -329,8 +329,8 @@ interface ESWorkoutResponse {
329
329
  hits: ESWorkout[];
330
330
  };
331
331
  }
332
- type ESDataTypes = ESWorkout[] | ESPromo[] | ESShortform[] | ESLongForm[] | ESFaq[] | ESPage[] | ESSetting[] | ESPress[] | ESGuest[] | ESVideo[] | ESSection[] | ESSchedule[] | ESChallenge[] | ESChallengeDay[];
333
- interface ESDataResponse {
332
+ export type ESDataTypes = ESWorkout[] | ESPromo[] | ESShortform[] | ESLongForm[] | ESFaq[] | ESPage[] | ESSetting[] | ESPress[] | ESGuest[] | ESVideo[] | ESSection[] | ESSchedule[] | ESChallenge[] | ESChallengeDay[];
333
+ export interface ESDataResponse {
334
334
  took: number;
335
335
  timed_out: boolean;
336
336
  _shards: {
@@ -348,11 +348,11 @@ interface ESDataResponse {
348
348
  /**
349
349
  * QUERY INTERFACES
350
350
  **/
351
- interface IdArg {
351
+ export interface IdArg {
352
352
  index: string;
353
353
  ids: string[];
354
354
  }
355
- interface DataArgs {
355
+ export interface DataArgs {
356
356
  index: string;
357
357
  options?: {
358
358
  size?: number;
@@ -369,7 +369,7 @@ interface DataArgs {
369
369
  /**
370
370
  * FORMATTED INTERFACES
371
371
  **/
372
- interface Page {
372
+ export interface Page {
373
373
  uuid?: string;
374
374
  title?: string;
375
375
  body?: string;
@@ -378,7 +378,7 @@ interface Page {
378
378
  langcode?: string;
379
379
  url?: string;
380
380
  }
381
- interface Promo {
381
+ export interface Promo {
382
382
  uuid: string;
383
383
  id: string;
384
384
  title: string;
@@ -399,7 +399,7 @@ interface Promo {
399
399
  buttonText: string;
400
400
  link: string;
401
401
  }
402
- interface Workout {
402
+ export interface Workout {
403
403
  created: number;
404
404
  changed: number;
405
405
  uuid: string;
@@ -418,7 +418,7 @@ interface Workout {
418
418
  workoutType: string;
419
419
  livestreamSection: string;
420
420
  }
421
- interface Video {
421
+ export interface Video {
422
422
  uuid?: string;
423
423
  title: string;
424
424
  created: number;
@@ -432,7 +432,7 @@ interface Video {
432
432
  videoDownload: string;
433
433
  sectionId: number;
434
434
  }
435
- interface Series {
435
+ export interface Series {
436
436
  uuid: string;
437
437
  id: string;
438
438
  title: string;
@@ -449,7 +449,7 @@ interface Series {
449
449
  nid: string;
450
450
  season: string;
451
451
  }
452
- interface Section {
452
+ export interface Section {
453
453
  uuid?: string;
454
454
  title?: string;
455
455
  description?: string;
@@ -458,7 +458,7 @@ interface Section {
458
458
  challenge?: string;
459
459
  id?: string;
460
460
  }
461
- interface Schedule {
461
+ export interface Schedule {
462
462
  uuid: string;
463
463
  created: string;
464
464
  langcode: string;
@@ -515,7 +515,7 @@ interface Schedule {
515
515
  }[];
516
516
  }[];
517
517
  }
518
- interface Challenge {
518
+ export interface Challenge {
519
519
  uuid?: string;
520
520
  title?: string;
521
521
  body?: string;
@@ -527,7 +527,7 @@ interface Challenge {
527
527
  purchaseButtonLabel?: string;
528
528
  price?: number;
529
529
  }
530
- interface ChallengeDay {
530
+ export interface ChallengeDay {
531
531
  uuid?: string;
532
532
  title?: string;
533
533
  body?: string;
@@ -1,3 +1,4 @@
1
+ import { DataArgs, ESDataTypes, IdArg } from './content.interfaces';
1
2
  export declare const contentApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, {
2
3
  getData: import("@reduxjs/toolkit/query").QueryDefinition<DataArgs, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, "Data" | "Workout", ESDataTypes, "contentApi">;
3
4
  getDataById: import("@reduxjs/toolkit/query").QueryDefinition<IdArg, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@reduxjs/toolkit/query").FetchArgs, unknown, import("@reduxjs/toolkit/query").FetchBaseQueryError, {}, import("@reduxjs/toolkit/query").FetchBaseQueryMeta>, "Data" | "Workout", ESDataTypes, "contentApi">;