@moneylion/react-native-offer-carousel 1.9.0 → 1.10.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 (169) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/lib/commonjs/apiEnvironment.js +1 -7
  3. package/lib/commonjs/apiEnvironment.js.map +1 -1
  4. package/lib/commonjs/capabilities/core/src/system/cnfContext/CnfContext.js +0 -12
  5. package/lib/commonjs/capabilities/core/src/system/cnfContext/CnfContext.js.map +1 -1
  6. package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/App.js +0 -16
  7. package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/App.js.map +1 -1
  8. package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/Brand.js +0 -120
  9. package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/Brand.js.map +1 -1
  10. package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/Configuration.js +0 -39
  11. package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/Configuration.js.map +1 -1
  12. package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/Request.js +0 -19
  13. package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/Request.js.map +1 -1
  14. package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/Session.js +0 -10
  15. package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/Session.js.map +1 -1
  16. package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/Signals.js +0 -39
  17. package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/Signals.js.map +1 -1
  18. package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/Subaccount.js +0 -24
  19. package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/Subaccount.js.map +1 -1
  20. package/lib/commonjs/capabilities/errors/types/index.js +22 -1
  21. package/lib/commonjs/capabilities/errors/types/index.js.map +1 -1
  22. package/lib/commonjs/capabilities/offer-catalog/src/api/offerCatalogApi.js +3 -3
  23. package/lib/commonjs/capabilities/offer-catalog/src/api/offerCatalogApi.js.map +1 -1
  24. package/lib/commonjs/components/MoneyLionOfferCarousel.js +16 -13
  25. package/lib/commonjs/components/MoneyLionOfferCarousel.js.map +1 -1
  26. package/lib/commonjs/components/utils/errorUtils.js +2 -2
  27. package/lib/commonjs/components/utils/errorUtils.js.map +1 -1
  28. package/lib/commonjs/index.js +11 -0
  29. package/lib/commonjs/index.js.map +1 -1
  30. package/lib/commonjs/pageData.js +1 -12
  31. package/lib/commonjs/pageData.js.map +1 -1
  32. package/lib/commonjs/services/getDynamicOffers.js +5 -4
  33. package/lib/commonjs/services/getDynamicOffers.js.map +1 -1
  34. package/lib/commonjs/services/getProductTypes.js +3 -22
  35. package/lib/commonjs/services/getProductTypes.js.map +1 -1
  36. package/lib/commonjs/utils/index.js +0 -11
  37. package/lib/commonjs/utils/index.js.map +1 -1
  38. package/lib/commonjs/utils/resolveProductTypes.js.map +1 -1
  39. package/lib/commonjs/version.js +1 -1
  40. package/lib/commonjs/version.js.map +1 -1
  41. package/lib/module/apiEnvironment.js +0 -5
  42. package/lib/module/apiEnvironment.js.map +1 -1
  43. package/lib/module/capabilities/core/src/system/cnfContext/CnfContext.js +1 -11
  44. package/lib/module/capabilities/core/src/system/cnfContext/CnfContext.js.map +1 -1
  45. package/lib/module/capabilities/core/src/system/cnfContext/schemas/App.js +1 -11
  46. package/lib/module/capabilities/core/src/system/cnfContext/schemas/App.js.map +1 -1
  47. package/lib/module/capabilities/core/src/system/cnfContext/schemas/Brand.js +1 -115
  48. package/lib/module/capabilities/core/src/system/cnfContext/schemas/Brand.js.map +1 -1
  49. package/lib/module/capabilities/core/src/system/cnfContext/schemas/Configuration.js +1 -34
  50. package/lib/module/capabilities/core/src/system/cnfContext/schemas/Configuration.js.map +1 -1
  51. package/lib/module/capabilities/core/src/system/cnfContext/schemas/Request.js +1 -14
  52. package/lib/module/capabilities/core/src/system/cnfContext/schemas/Request.js.map +1 -1
  53. package/lib/module/capabilities/core/src/system/cnfContext/schemas/Session.js +1 -5
  54. package/lib/module/capabilities/core/src/system/cnfContext/schemas/Session.js.map +1 -1
  55. package/lib/module/capabilities/core/src/system/cnfContext/schemas/Signals.js +1 -34
  56. package/lib/module/capabilities/core/src/system/cnfContext/schemas/Signals.js.map +1 -1
  57. package/lib/module/capabilities/core/src/system/cnfContext/schemas/Subaccount.js +1 -19
  58. package/lib/module/capabilities/core/src/system/cnfContext/schemas/Subaccount.js.map +1 -1
  59. package/lib/module/capabilities/errors/types/index.js +21 -0
  60. package/lib/module/capabilities/errors/types/index.js.map +1 -1
  61. package/lib/module/capabilities/offer-catalog/src/api/offerCatalogApi.js +4 -4
  62. package/lib/module/capabilities/offer-catalog/src/api/offerCatalogApi.js.map +1 -1
  63. package/lib/module/components/MoneyLionOfferCarousel.js +17 -14
  64. package/lib/module/components/MoneyLionOfferCarousel.js.map +1 -1
  65. package/lib/module/components/utils/errorUtils.js +3 -3
  66. package/lib/module/components/utils/errorUtils.js.map +1 -1
  67. package/lib/module/index.js +1 -0
  68. package/lib/module/index.js.map +1 -1
  69. package/lib/module/pageData.js +1 -11
  70. package/lib/module/pageData.js.map +1 -1
  71. package/lib/module/services/getDynamicOffers.js +6 -5
  72. package/lib/module/services/getDynamicOffers.js.map +1 -1
  73. package/lib/module/services/getProductTypes.js +3 -22
  74. package/lib/module/services/getProductTypes.js.map +1 -1
  75. package/lib/module/utils/index.js +0 -1
  76. package/lib/module/utils/index.js.map +1 -1
  77. package/lib/module/utils/resolveProductTypes.js.map +1 -1
  78. package/lib/module/version.js +1 -1
  79. package/lib/module/version.js.map +1 -1
  80. package/lib/typescript/src/apiEnvironment.d.ts +0 -4
  81. package/lib/typescript/src/apiEnvironment.d.ts.map +1 -1
  82. package/lib/typescript/src/capabilities/core/src/system/cnfContext/CnfContext.d.ts +15 -102
  83. package/lib/typescript/src/capabilities/core/src/system/cnfContext/CnfContext.d.ts.map +1 -1
  84. package/lib/typescript/src/capabilities/core/src/system/cnfContext/schemas/App.d.ts +10 -12
  85. package/lib/typescript/src/capabilities/core/src/system/cnfContext/schemas/App.d.ts.map +1 -1
  86. package/lib/typescript/src/capabilities/core/src/system/cnfContext/schemas/Brand.d.ts +101 -472
  87. package/lib/typescript/src/capabilities/core/src/system/cnfContext/schemas/Brand.d.ts.map +1 -1
  88. package/lib/typescript/src/capabilities/core/src/system/cnfContext/schemas/Configuration.d.ts +24 -58
  89. package/lib/typescript/src/capabilities/core/src/system/cnfContext/schemas/Configuration.d.ts.map +1 -1
  90. package/lib/typescript/src/capabilities/core/src/system/cnfContext/schemas/Request.d.ts +11 -15
  91. package/lib/typescript/src/capabilities/core/src/system/cnfContext/schemas/Request.d.ts.map +1 -1
  92. package/lib/typescript/src/capabilities/core/src/system/cnfContext/schemas/Session.d.ts +4 -7
  93. package/lib/typescript/src/capabilities/core/src/system/cnfContext/schemas/Session.d.ts.map +1 -1
  94. package/lib/typescript/src/capabilities/core/src/system/cnfContext/schemas/Signals.d.ts +30 -63
  95. package/lib/typescript/src/capabilities/core/src/system/cnfContext/schemas/Signals.d.ts.map +1 -1
  96. package/lib/typescript/src/capabilities/core/src/system/cnfContext/schemas/Subaccount.d.ts +17 -17
  97. package/lib/typescript/src/capabilities/core/src/system/cnfContext/schemas/Subaccount.d.ts.map +1 -1
  98. package/lib/typescript/src/capabilities/errors/types/index.d.ts +18 -2
  99. package/lib/typescript/src/capabilities/errors/types/index.d.ts.map +1 -1
  100. package/lib/typescript/src/capabilities/offer-catalog/src/utils/contextUtil.d.ts +1 -1
  101. package/lib/typescript/src/capabilities/offer-catalog/src/utils/contextUtil.d.ts.map +1 -1
  102. package/lib/typescript/src/capabilities/offers/pipeline/src/sources/ratetables/withDeviceSignals.d.ts +11 -11
  103. package/lib/typescript/src/components/MoneyLionOfferCarousel.d.ts +0 -2
  104. package/lib/typescript/src/components/MoneyLionOfferCarousel.d.ts.map +1 -1
  105. package/lib/typescript/src/index.d.ts +1 -0
  106. package/lib/typescript/src/index.d.ts.map +1 -1
  107. package/lib/typescript/src/pageData.d.ts +0 -2
  108. package/lib/typescript/src/pageData.d.ts.map +1 -1
  109. package/lib/typescript/src/services/getDynamicOffers.d.ts +3 -4
  110. package/lib/typescript/src/services/getDynamicOffers.d.ts.map +1 -1
  111. package/lib/typescript/src/services/getProductTypes.d.ts +2 -7
  112. package/lib/typescript/src/services/getProductTypes.d.ts.map +1 -1
  113. package/lib/typescript/src/utils/getOffersByProductTypes.d.ts +1 -1
  114. package/lib/typescript/src/utils/getProductTypesDefinition.d.ts +8 -8
  115. package/lib/typescript/src/utils/index.d.ts +0 -1
  116. package/lib/typescript/src/utils/index.d.ts.map +1 -1
  117. package/lib/typescript/src/utils/resolveProductTypes.d.ts +0 -5
  118. package/lib/typescript/src/utils/resolveProductTypes.d.ts.map +1 -1
  119. package/lib/typescript/src/version.d.ts +1 -1
  120. package/lib/typescript/src/version.d.ts.map +1 -1
  121. package/package.json +2 -12
  122. package/src/apiEnvironment.ts +0 -6
  123. package/src/capabilities/core/src/system/cnfContext/CnfContext.ts +15 -20
  124. package/src/capabilities/core/src/system/cnfContext/schemas/App.ts +10 -13
  125. package/src/capabilities/core/src/system/cnfContext/schemas/Brand.ts +108 -148
  126. package/src/capabilities/core/src/system/cnfContext/schemas/Configuration.ts +21 -46
  127. package/src/capabilities/core/src/system/cnfContext/schemas/Request.ts +11 -16
  128. package/src/capabilities/core/src/system/cnfContext/schemas/Session.ts +4 -8
  129. package/src/capabilities/core/src/system/cnfContext/schemas/Signals.ts +30 -41
  130. package/src/capabilities/core/src/system/cnfContext/schemas/Subaccount.ts +16 -24
  131. package/src/capabilities/errors/types/index.ts +30 -1
  132. package/src/capabilities/offer-catalog/src/api/offerCatalogApi.ts +4 -4
  133. package/src/components/MoneyLionOfferCarousel.tsx +16 -17
  134. package/src/components/utils/errorUtils.ts +3 -3
  135. package/src/index.tsx +4 -0
  136. package/src/pageData.ts +2 -20
  137. package/src/services/getDynamicOffers.ts +14 -28
  138. package/src/services/getProductTypes.ts +5 -28
  139. package/src/utils/index.ts +0 -1
  140. package/src/utils/resolveProductTypes.ts +0 -5
  141. package/src/version.ts +1 -1
  142. package/lib/commonjs/capabilities/core/src/domain/third-party-search/index.js +0 -17
  143. package/lib/commonjs/capabilities/core/src/domain/third-party-search/index.js.map +0 -1
  144. package/lib/commonjs/capabilities/core/src/domain/third-party-search/orderProductTypesByRankUtils.js +0 -33
  145. package/lib/commonjs/capabilities/core/src/domain/third-party-search/orderProductTypesByRankUtils.js.map +0 -1
  146. package/lib/commonjs/services/getProductTypesByQuery.js +0 -72
  147. package/lib/commonjs/services/getProductTypesByQuery.js.map +0 -1
  148. package/lib/commonjs/utils/selectDynamicOffers.js +0 -13
  149. package/lib/commonjs/utils/selectDynamicOffers.js.map +0 -1
  150. package/lib/module/capabilities/core/src/domain/third-party-search/index.js +0 -2
  151. package/lib/module/capabilities/core/src/domain/third-party-search/index.js.map +0 -1
  152. package/lib/module/capabilities/core/src/domain/third-party-search/orderProductTypesByRankUtils.js +0 -26
  153. package/lib/module/capabilities/core/src/domain/third-party-search/orderProductTypesByRankUtils.js.map +0 -1
  154. package/lib/module/services/getProductTypesByQuery.js +0 -65
  155. package/lib/module/services/getProductTypesByQuery.js.map +0 -1
  156. package/lib/module/utils/selectDynamicOffers.js +0 -6
  157. package/lib/module/utils/selectDynamicOffers.js.map +0 -1
  158. package/lib/typescript/src/capabilities/core/src/domain/third-party-search/index.d.ts +0 -2
  159. package/lib/typescript/src/capabilities/core/src/domain/third-party-search/index.d.ts.map +0 -1
  160. package/lib/typescript/src/capabilities/core/src/domain/third-party-search/orderProductTypesByRankUtils.d.ts +0 -19
  161. package/lib/typescript/src/capabilities/core/src/domain/third-party-search/orderProductTypesByRankUtils.d.ts.map +0 -1
  162. package/lib/typescript/src/services/getProductTypesByQuery.d.ts +0 -30
  163. package/lib/typescript/src/services/getProductTypesByQuery.d.ts.map +0 -1
  164. package/lib/typescript/src/utils/selectDynamicOffers.d.ts +0 -3
  165. package/lib/typescript/src/utils/selectDynamicOffers.d.ts.map +0 -1
  166. package/src/capabilities/core/src/domain/third-party-search/index.ts +0 -1
  167. package/src/capabilities/core/src/domain/third-party-search/orderProductTypesByRankUtils.ts +0 -33
  168. package/src/services/getProductTypesByQuery.ts +0 -76
  169. package/src/utils/selectDynamicOffers.ts +0 -17
@@ -1,59 +1,25 @@
1
- import { Schema } from "effect";
2
- export declare const DynamicOffersConfigurationSchema: Schema.Struct<{
3
- hideFooter: Schema.optionalWith<typeof Schema.Boolean, {
4
- default: () => false;
5
- }>;
6
- enableUseCachedOffers: Schema.optionalWith<typeof Schema.Boolean, {
7
- default: () => false;
8
- }>;
9
- defaultProductTypeSlug: Schema.optionalWith<typeof Schema.String, {
10
- default: () => string;
11
- }>;
12
- productTypesDefinition: Schema.optionalWith<Schema.Array$<Schema.Struct<{
13
- id: typeof Schema.String;
14
- partnerPageUrl: typeof Schema.String;
15
- productTypeSlug: typeof Schema.String;
16
- }>>, {
17
- default: () => never[];
18
- }>;
19
- partnersOverrideDefinition: Schema.optionalWith<Schema.Array$<Schema.Struct<{
20
- id: typeof Schema.String;
21
- overrideUrl: typeof Schema.String;
22
- financialInstitutionUuid: typeof Schema.String;
23
- }>>, {
24
- default: () => never[];
25
- }>;
26
- }>;
27
- export type DynamicOffersConfigurationSchema = Schema.Schema.Type<typeof DynamicOffersConfigurationSchema>;
28
- export declare const Configuration: Schema.Struct<{
29
- app: Schema.Union<[typeof Schema.String, Schema.Struct<{
30
- name: typeof Schema.String;
31
- }>]>;
32
- configuration: Schema.Struct<{
33
- hideFooter: Schema.optionalWith<typeof Schema.Boolean, {
34
- default: () => false;
35
- }>;
36
- enableUseCachedOffers: Schema.optionalWith<typeof Schema.Boolean, {
37
- default: () => false;
38
- }>;
39
- defaultProductTypeSlug: Schema.optionalWith<typeof Schema.String, {
40
- default: () => string;
41
- }>;
42
- productTypesDefinition: Schema.optionalWith<Schema.Array$<Schema.Struct<{
43
- id: typeof Schema.String;
44
- partnerPageUrl: typeof Schema.String;
45
- productTypeSlug: typeof Schema.String;
46
- }>>, {
47
- default: () => never[];
48
- }>;
49
- partnersOverrideDefinition: Schema.optionalWith<Schema.Array$<Schema.Struct<{
50
- id: typeof Schema.String;
51
- overrideUrl: typeof Schema.String;
52
- financialInstitutionUuid: typeof Schema.String;
53
- }>>, {
54
- default: () => never[];
55
- }>;
56
- }>;
57
- }>;
58
- export type Configuration = Schema.Schema.Type<typeof Configuration>;
1
+ type ProductTypesDefinition = {
2
+ id: string;
3
+ partnerPageUrl: string;
4
+ productTypeSlug: string;
5
+ };
6
+ type PartnersOverrideDefinition = {
7
+ id: string;
8
+ overrideUrl: string;
9
+ financialInstitutionUuid: string;
10
+ };
11
+ export type DynamicOffersConfigurationSchema = {
12
+ hideFooter: boolean;
13
+ enableUseCachedOffers: boolean;
14
+ defaultProductTypeSlug: string;
15
+ productTypesDefinition: ProductTypesDefinition[];
16
+ partnersOverrideDefinition: PartnersOverrideDefinition[];
17
+ };
18
+ export type Configuration = {
19
+ app: string | {
20
+ name: string;
21
+ };
22
+ configuration: DynamicOffersConfigurationSchema;
23
+ };
24
+ export {};
59
25
  //# sourceMappingURL=Configuration.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Configuration.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/capabilities/core/src/system/cnfContext/schemas/Configuration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAchC,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;EAkB3C,CAAC;AAEH,MAAM,MAAM,gCAAgC,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAChE,OAAO,gCAAgC,CACvC,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQxB,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,aAAa,CAAC,CAAC"}
1
+ {"version":3,"file":"Configuration.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/capabilities/core/src/system/cnfContext/schemas/Configuration.ts"],"names":[],"mappings":"AAAA,KAAK,sBAAsB,GAAG;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,KAAK,0BAA0B,GAAG;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,wBAAwB,EAAE,MAAM,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAAG;IAC9C,UAAU,EAAE,OAAO,CAAC;IACpB,qBAAqB,EAAE,OAAO,CAAC;IAC/B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,sBAAsB,EAAE,sBAAsB,EAAE,CAAC;IACjD,0BAA0B,EAAE,0BAA0B,EAAE,CAAC;CACzD,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC3B,GAAG,EAAE,MAAM,GAAG;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IAC/B,aAAa,EAAE,gCAAgC,CAAC;CAChD,CAAC"}
@@ -1,16 +1,12 @@
1
- import { Schema } from "effect";
2
- export type CnfRequest = Schema.Schema.Type<typeof CnfRequest>;
3
- export declare const CnfRequest: Schema.Struct<{
4
- referer: Schema.optional<typeof Schema.String>;
5
- channel: Schema.optional<typeof Schema.String>;
6
- zone: Schema.optional<typeof Schema.String>;
7
- cnfAppBaseUrl: Schema.optionalWith<typeof Schema.String, {
8
- default: () => string;
9
- }>;
10
- path: Schema.optional<typeof Schema.String>;
11
- pathname: Schema.optional<typeof Schema.String>;
12
- query: Schema.optional<typeof Schema.String>;
13
- searchParams: Schema.Struct<{}>;
14
- host: Schema.optional<typeof Schema.String>;
15
- }>;
1
+ export type CnfRequest = {
2
+ referer?: string;
3
+ channel?: string;
4
+ zone?: string;
5
+ cnfAppBaseUrl?: string;
6
+ path?: string;
7
+ pathname?: string;
8
+ query?: string;
9
+ searchParams: Record<string, never>;
10
+ host?: string;
11
+ };
16
12
  //# sourceMappingURL=Request.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Request.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/capabilities/core/src/system/cnfContext/schemas/Request.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,UAAU,CAAC,CAAC;AAC/D,eAAO,MAAM,UAAU;;;;;;;;;;;;EAYrB,CAAC"}
1
+ {"version":3,"file":"Request.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/capabilities/core/src/system/cnfContext/schemas/Request.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IACpC,IAAI,CAAC,EAAE,MAAM,CAAC;CACd,CAAC"}
@@ -1,8 +1,5 @@
1
- import { Schema } from "effect";
2
- export type SessionId = Schema.Schema.Type<typeof SessionId>;
3
- export declare const SessionId: Schema.brand<typeof Schema.UUID, "SessionId">;
4
- export type Session = Schema.Schema.Type<typeof Session>;
5
- export declare const Session: Schema.Struct<{
6
- id: Schema.brand<typeof Schema.UUID, "SessionId">;
7
- }>;
1
+ export type SessionId = string;
2
+ export type Session = {
3
+ id: SessionId;
4
+ };
8
5
  //# sourceMappingURL=Session.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Session.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/capabilities/core/src/system/cnfContext/schemas/Session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,SAAS,CAAC,CAAC;AAC7D,eAAO,MAAM,SAAS,+CAA8C,CAAC;AAErE,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,OAAO,CAAC,CAAC;AACzD,eAAO,MAAM,OAAO;;EAElB,CAAC"}
1
+ {"version":3,"file":"Session.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/capabilities/core/src/system/cnfContext/schemas/Session.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC;AAE/B,MAAM,MAAM,OAAO,GAAG;IACrB,EAAE,EAAE,SAAS,CAAC;CACd,CAAC"}
@@ -1,64 +1,31 @@
1
- import { Schema } from "effect";
2
- export type PartnerSignals = Schema.Schema.Type<typeof PartnerSignals>;
3
- export declare const PartnerSignals: Schema.Struct<{
4
- clientTags: Schema.TypeLiteral<{}, readonly [{
5
- readonly key: typeof Schema.String;
6
- readonly value: typeof Schema.String;
7
- }]>;
8
- }>;
9
- export type DeviceId = Schema.Schema.Type<typeof DeviceId>;
10
- export declare const DeviceId: typeof Schema.UUID;
11
- export type DeviceSignals = Schema.Schema.Type<typeof DeviceSignals>;
12
- declare const DeviceSignals: Schema.Struct<{
13
- id: typeof Schema.UUID;
14
- ipAddress: Schema.optional<typeof Schema.String>;
15
- os: Schema.optional<typeof Schema.String>;
16
- isMobile: Schema.optional<typeof Schema.Boolean>;
17
- country: Schema.optional<typeof Schema.String>;
18
- state: Schema.optional<Schema.Struct<{
19
- name: Schema.optional<typeof Schema.String>;
20
- code: Schema.optional<typeof Schema.String>;
21
- }>>;
22
- postalCode: typeof Schema.String;
23
- city: typeof Schema.String;
24
- fingerprintId: Schema.optional<typeof Schema.String>;
25
- userAgent: Schema.optional<typeof Schema.String>;
26
- }>;
27
- export type LeadUuid = Schema.Schema.Type<typeof LeadUuid>;
28
- export declare const LeadUuid: typeof Schema.UUID;
29
- export type LeadSignals = Schema.Schema.Type<typeof LeadSignals>;
30
- export declare const LeadSignals: Schema.Struct<{
31
- uuid: typeof Schema.UUID;
32
- }>;
33
- export type ReferralSignals = Schema.Schema.Type<typeof ReferralSignals>;
34
- export declare const ReferralSignals: Schema.Struct<{}>;
35
- export type Signals = Schema.Schema.Type<typeof Signals>;
36
- export declare const Signals: Schema.Struct<{
37
- partnerSignals: Schema.Struct<{
38
- clientTags: Schema.TypeLiteral<{}, readonly [{
39
- readonly key: typeof Schema.String;
40
- readonly value: typeof Schema.String;
41
- }]>;
42
- }>;
43
- deviceSignals: Schema.Struct<{
44
- id: typeof Schema.UUID;
45
- ipAddress: Schema.optional<typeof Schema.String>;
46
- os: Schema.optional<typeof Schema.String>;
47
- isMobile: Schema.optional<typeof Schema.Boolean>;
48
- country: Schema.optional<typeof Schema.String>;
49
- state: Schema.optional<Schema.Struct<{
50
- name: Schema.optional<typeof Schema.String>;
51
- code: Schema.optional<typeof Schema.String>;
52
- }>>;
53
- postalCode: typeof Schema.String;
54
- city: typeof Schema.String;
55
- fingerprintId: Schema.optional<typeof Schema.String>;
56
- userAgent: Schema.optional<typeof Schema.String>;
57
- }>;
58
- lead: Schema.Struct<{
59
- uuid: typeof Schema.UUID;
60
- }>;
61
- referral: Schema.Struct<{}>;
62
- }>;
63
- export {};
1
+ export type PartnerSignals = {
2
+ clientTags: Record<string, string>;
3
+ };
4
+ export type DeviceId = string;
5
+ export type DeviceSignals = {
6
+ id: DeviceId;
7
+ ipAddress?: string;
8
+ os?: string;
9
+ isMobile?: boolean;
10
+ country?: string;
11
+ state?: {
12
+ name?: string;
13
+ code?: string;
14
+ };
15
+ postalCode: string;
16
+ city: string;
17
+ fingerprintId?: string;
18
+ userAgent?: string;
19
+ };
20
+ export type LeadUuid = string;
21
+ export type LeadSignals = {
22
+ uuid: LeadUuid;
23
+ };
24
+ export type ReferralSignals = Record<string, never>;
25
+ export type Signals = {
26
+ partnerSignals: PartnerSignals;
27
+ deviceSignals: DeviceSignals;
28
+ lead: LeadSignals;
29
+ referral: ReferralSignals;
30
+ };
64
31
  //# sourceMappingURL=Signals.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Signals.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/capabilities/core/src/system/cnfContext/schemas/Signals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,cAAc,CAAC,CAAC;AACvE,eAAO,MAAM,cAAc;;;;;EAEzB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,QAAQ,CAAC,CAAC;AAC3D,eAAO,MAAM,QAAQ,oBAAc,CAAC;AAEpC,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,aAAa,CAAC,CAAC;AACrE,QAAA,MAAM,aAAa;;;;;;;;;;;;;;EAgBjB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,QAAQ,CAAC,CAAC;AAC3D,eAAO,MAAM,QAAQ,oBAAc,CAAC;AAEpC,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,WAAW,CAAC,CAAC;AACjE,eAAO,MAAM,WAAW;;EAEtB,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,eAAe,CAAC,CAAC;AACzE,eAAO,MAAM,eAAe,mBAAoB,CAAC;AAEjD,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,OAAO,CAAC,CAAC;AACzD,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;EAKlB,CAAC"}
1
+ {"version":3,"file":"Signals.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/capabilities/core/src/system/cnfContext/schemas/Signals.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG;IAC5B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC;AAE9B,MAAM,MAAM,aAAa,GAAG;IAC3B,EAAE,EAAE,QAAQ,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE;QACP,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,CAAC;KACd,CAAC;IACF,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC;AAE9B,MAAM,MAAM,WAAW,GAAG;IACzB,IAAI,EAAE,QAAQ,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAEpD,MAAM,MAAM,OAAO,GAAG;IACrB,cAAc,EAAE,cAAc,CAAC;IAC/B,aAAa,EAAE,aAAa,CAAC;IAC7B,IAAI,EAAE,WAAW,CAAC;IAClB,QAAQ,EAAE,eAAe,CAAC;CAC1B,CAAC"}
@@ -1,18 +1,18 @@
1
- import { Schema } from "effect";
2
- export declare const Subaccount: Schema.Struct<{
3
- id: typeof Schema.UUID;
4
- publicToken: typeof Schema.String;
5
- name: typeof Schema.String;
6
- companyUuid: typeof Schema.String;
7
- subaccount: Schema.NullOr<typeof Schema.Number>;
8
- supplySubaccountUuid: Schema.optional<Schema.Union<[typeof Schema.Null, Schema.Literal<[""]>, typeof Schema.UUID]>>;
9
- tags: Schema.Array$<Schema.Struct<{
10
- id: typeof Schema.String;
11
- key: typeof Schema.String;
12
- value: typeof Schema.String;
13
- }>>;
14
- createdAt: typeof Schema.String;
15
- updatedAt: typeof Schema.String;
16
- }>;
17
- export type Subaccount = Schema.Schema.Type<typeof Subaccount>;
1
+ type Tag = {
2
+ id: string;
3
+ key: string;
4
+ value: string;
5
+ };
6
+ export type Subaccount = {
7
+ id: string;
8
+ publicToken: string;
9
+ name: string;
10
+ companyUuid: string;
11
+ subaccount: number | null;
12
+ supplySubaccountUuid?: string;
13
+ tags: Tag[];
14
+ createdAt: string;
15
+ updatedAt: string;
16
+ };
17
+ export {};
18
18
  //# sourceMappingURL=Subaccount.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Subaccount.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/capabilities/core/src/system/cnfContext/schemas/Subaccount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAYhC,eAAO,MAAM,UAAU;;;;;;;;;;;;;;EAUrB,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,UAAU,CAAC,CAAC"}
1
+ {"version":3,"file":"Subaccount.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/capabilities/core/src/system/cnfContext/schemas/Subaccount.ts"],"names":[],"mappings":"AAAA,KAAK,GAAG,GAAG;IACV,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -1,13 +1,29 @@
1
+ /**
2
+ * @deprecated use ErrorCodeMap instead.
3
+ * TypeScript 5.8 introduced the --erasableSyntaxOnly flag, which treats enums as
4
+ * a compile error. this enum will be removed in a future version.
5
+ */
1
6
  export declare enum ErrorCodes {
2
7
  MISSING_CONFIG = "MISSING_CONFIG",
3
8
  UI_CRASH = "UI_CRASH",
4
9
  FLOW_ERROR = "FLOW_ERROR",
5
10
  NETWORK_REQUEST_ERROR = "NETWORK_REQUEST_ERROR",
6
11
  NETWORK_SERVER_ERROR = "NETWORK_SERVER_ERROR",
7
- NETWORK_OTHER_ERROR = "NETWORK_OTHER_ERROR"
12
+ NETWORK_OTHER_ERROR = "NETWORK_OTHER_ERROR",
13
+ NON_US = "NON_US"
8
14
  }
15
+ export declare const ErrorCodeMap: {
16
+ readonly MISSING_CONFIG: "MISSING_CONFIG";
17
+ readonly UI_CRASH: "UI_CRASH";
18
+ readonly FLOW_ERROR: "FLOW_ERROR";
19
+ readonly NETWORK_REQUEST_ERROR: "NETWORK_REQUEST_ERROR";
20
+ readonly NETWORK_SERVER_ERROR: "NETWORK_SERVER_ERROR";
21
+ readonly NETWORK_OTHER_ERROR: "NETWORK_OTHER_ERROR";
22
+ readonly NON_US: "NON_US";
23
+ };
24
+ export type ErrorCodeValues = (typeof ErrorCodeMap)[keyof typeof ErrorCodeMap];
9
25
  export interface MoneyLionOfferCarouselError {
10
- code: ErrorCodes;
26
+ code: ErrorCodeValues;
11
27
  severity: "warning" | "error";
12
28
  message: string;
13
29
  timestamp: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/capabilities/errors/types/index.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU;IAErB,cAAc,mBAAmB;IAGjC,QAAQ,aAAa;IAGrB,UAAU,eAAe;IAGzB,qBAAqB,0BAA0B;IAC/C,oBAAoB,yBAAyB;IAC7C,mBAAmB,wBAAwB;CAC3C;AAED,MAAM,WAAW,2BAA2B;IAC3C,IAAI,EAAE,UAAU,CAAC;IACjB,QAAQ,EAAE,SAAS,GAAG,OAAO,CAAC;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACzC;AAED,MAAM,WAAW,mCAAoC,SAAQ,IAAI,CAChE,2BAA2B,EAC3B,WAAW,GAAG,YAAY,CAC1B;CAAG;AAEJ,MAAM,MAAM,eAAe,GAAG,CAAC,KAAK,EAAE,2BAA2B,KAAK,IAAI,CAAC;AAE3E,MAAM,MAAM,uBAAuB,GAAG,CACrC,KAAK,EAAE,mCAAmC,KACtC,IAAI,CAAC;AAEV,MAAM,WAAW,QAAS,SAAQ,KAAK;IACtC,IAAI,CAAC,EAAE,MAAM,CAAC;CACd"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/capabilities/errors/types/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,oBAAY,UAAU;IAErB,cAAc,mBAAmB;IAGjC,QAAQ,aAAa;IAGrB,UAAU,eAAe;IAGzB,qBAAqB,0BAA0B;IAC/C,oBAAoB,yBAAyB;IAC7C,mBAAmB,wBAAwB;IAG3C,MAAM,WAAW;CACjB;AAED,eAAO,MAAM,YAAY;;;;;;;;CAiBf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC;AAE/E,MAAM,WAAW,2BAA2B;IAC3C,IAAI,EAAE,eAAe,CAAC;IACtB,QAAQ,EAAE,SAAS,GAAG,OAAO,CAAC;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACzC;AAED,MAAM,WAAW,mCAAoC,SAAQ,IAAI,CAChE,2BAA2B,EAC3B,WAAW,GAAG,YAAY,CAC1B;CAAG;AAEJ,MAAM,MAAM,eAAe,GAAG,CAAC,KAAK,EAAE,2BAA2B,KAAK,IAAI,CAAC;AAE3E,MAAM,MAAM,uBAAuB,GAAG,CACrC,KAAK,EAAE,mCAAmC,KACtC,IAAI,CAAC;AAEV,MAAM,WAAW,QAAS,SAAQ,KAAK;IACtC,IAAI,CAAC,EAAE,MAAM,CAAC;CACd"}
@@ -2,7 +2,7 @@ import type { CnfContext } from "../../../core/src/system/cnfContext/CnfContext"
2
2
  export declare const getStateCode: (cnfContext: CnfContext) => string;
3
3
  export declare const getSubaccountToken: (cnfContext: CnfContext) => string;
4
4
  export declare const parseClientTags: (tags?: string) => Record<string, string[]>;
5
- export declare const getSubAccountUUID: (cnfContext: CnfContext) => string | null | undefined;
5
+ export declare const getSubAccountUUID: (cnfContext: CnfContext) => string | undefined;
6
6
  export declare const getLeadUUID: (cnfContext: CnfContext) => string;
7
7
  export declare const getIsDevEnvironment: (cnfContext: CnfContext) => boolean;
8
8
  //# sourceMappingURL=contextUtil.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"contextUtil.d.ts","sourceRoot":"","sources":["../../../../../../../src/capabilities/offer-catalog/src/utils/contextUtil.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gDAAgD,CAAC;AAIjF,eAAO,MAAM,YAAY,GAAI,YAAY,UAAU,WAQlD,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,YAAY,UAAU,WACvB,CAAC;AAEnC,eAAO,MAAM,eAAe,GAAI,OAAO,MAAM,6BAwC5C,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,YAAY,UAAU,8BAQvD,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,YAAY,UAAU,WACrB,CAAC;AAE9B,eAAO,MAAM,mBAAmB,GAAI,YAAY,UAAU,YAAqB,CAAC"}
1
+ {"version":3,"file":"contextUtil.d.ts","sourceRoot":"","sources":["../../../../../../../src/capabilities/offer-catalog/src/utils/contextUtil.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gDAAgD,CAAC;AAIjF,eAAO,MAAM,YAAY,GAAI,YAAY,UAAU,WAQlD,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,YAAY,UAAU,WACvB,CAAC;AAEnC,eAAO,MAAM,eAAe,GAAI,OAAO,MAAM,6BAwC5C,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,YAAY,UAAU,uBAQvD,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,YAAY,UAAU,WACrB,CAAC;AAE9B,eAAO,MAAM,mBAAmB,GAAI,YAAY,UAAU,YAAqB,CAAC"}
@@ -19,8 +19,8 @@ export declare function withDeviceSignals<TData extends LeadCreateData | LeadReq
19
19
  ipAddress: undefined;
20
20
  userAgent: undefined;
21
21
  };
22
- clientTags: Record<"app" | "os" | "isMobile" | "system" | "evReferrer" | "consumerBrand" | "cnfEnvironment", string[]>;
23
- } ? TData : Omit<TData, keyof TData & ("clientTags" | "deviceId" | "sessionInformation")> & Omit<{
22
+ clientTags: Record<"system" | "app" | "os" | "isMobile" | "evReferrer" | "consumerBrand" | "cnfEnvironment", string[]>;
23
+ } ? TData : Omit<TData, keyof TData & ("deviceId" | "sessionInformation" | "clientTags")> & Omit<{
24
24
  /**
25
25
  * The leads API required device ID's be in the UUID format. If the string
26
26
  * we receive here is not in the expected format, we will create an error
@@ -31,8 +31,8 @@ export declare function withDeviceSignals<TData extends LeadCreateData | LeadReq
31
31
  ipAddress: undefined;
32
32
  userAgent: undefined;
33
33
  };
34
- clientTags: Record<"app" | "os" | "isMobile" | "system" | "evReferrer" | "consumerBrand" | "cnfEnvironment", string[]>;
35
- }, keyof TData & ("clientTags" | "deviceId" | "sessionInformation")> & { -readonly [Key in keyof TData & ("clientTags" | "deviceId" | "sessionInformation")]: TData[Key] extends void | null | undefined ? {
34
+ clientTags: Record<"system" | "app" | "os" | "isMobile" | "evReferrer" | "consumerBrand" | "cnfEnvironment", string[]>;
35
+ }, keyof TData & ("deviceId" | "sessionInformation" | "clientTags")> & { -readonly [Key in keyof TData & ("deviceId" | "sessionInformation" | "clientTags")]: TData[Key] extends void | null | undefined ? {
36
36
  /**
37
37
  * The leads API required device ID's be in the UUID format. If the string
38
38
  * we receive here is not in the expected format, we will create an error
@@ -43,7 +43,7 @@ export declare function withDeviceSignals<TData extends LeadCreateData | LeadReq
43
43
  ipAddress: undefined;
44
44
  userAgent: undefined;
45
45
  };
46
- clientTags: Record<"app" | "os" | "isMobile" | "system" | "evReferrer" | "consumerBrand" | "cnfEnvironment", string[]>;
46
+ clientTags: Record<"system" | "app" | "os" | "isMobile" | "evReferrer" | "consumerBrand" | "cnfEnvironment", string[]>;
47
47
  }[Key] extends void | null | undefined ? void | null | undefined : {
48
48
  /**
49
49
  * The leads API required device ID's be in the UUID format. If the string
@@ -55,7 +55,7 @@ export declare function withDeviceSignals<TData extends LeadCreateData | LeadReq
55
55
  ipAddress: undefined;
56
56
  userAgent: undefined;
57
57
  };
58
- clientTags: Record<"app" | "os" | "isMobile" | "system" | "evReferrer" | "consumerBrand" | "cnfEnvironment", string[]>;
58
+ clientTags: Record<"system" | "app" | "os" | "isMobile" | "evReferrer" | "consumerBrand" | "cnfEnvironment", string[]>;
59
59
  }[Key] : {
60
60
  /**
61
61
  * The leads API required device ID's be in the UUID format. If the string
@@ -67,7 +67,7 @@ export declare function withDeviceSignals<TData extends LeadCreateData | LeadReq
67
67
  ipAddress: undefined;
68
68
  userAgent: undefined;
69
69
  };
70
- clientTags: Record<"app" | "os" | "isMobile" | "system" | "evReferrer" | "consumerBrand" | "cnfEnvironment", string[]>;
70
+ clientTags: Record<"system" | "app" | "os" | "isMobile" | "evReferrer" | "consumerBrand" | "cnfEnvironment", string[]>;
71
71
  }[Key] extends void | null | undefined ? TData[Key] : TData[Key] extends infer T ? T extends TData[Key] ? T extends void | null | undefined ? {
72
72
  /**
73
73
  * The leads API required device ID's be in the UUID format. If the string
@@ -79,7 +79,7 @@ export declare function withDeviceSignals<TData extends LeadCreateData | LeadReq
79
79
  ipAddress: undefined;
80
80
  userAgent: undefined;
81
81
  };
82
- clientTags: Record<"app" | "os" | "isMobile" | "system" | "evReferrer" | "consumerBrand" | "cnfEnvironment", string[]>;
82
+ clientTags: Record<"system" | "app" | "os" | "isMobile" | "evReferrer" | "consumerBrand" | "cnfEnvironment", string[]>;
83
83
  }[Key] extends infer T_1 ? T_1 extends {
84
84
  /**
85
85
  * The leads API required device ID's be in the UUID format. If the string
@@ -91,7 +91,7 @@ export declare function withDeviceSignals<TData extends LeadCreateData | LeadReq
91
91
  ipAddress: undefined;
92
92
  userAgent: undefined;
93
93
  };
94
- clientTags: Record<"app" | "os" | "isMobile" | "system" | "evReferrer" | "consumerBrand" | "cnfEnvironment", string[]>;
94
+ clientTags: Record<"system" | "app" | "os" | "isMobile" | "evReferrer" | "consumerBrand" | "cnfEnvironment", string[]>;
95
95
  }[Key] ? T_1 extends void | null | undefined ? void | null | undefined : T_1 : never : never : {
96
96
  /**
97
97
  * The leads API required device ID's be in the UUID format. If the string
@@ -103,7 +103,7 @@ export declare function withDeviceSignals<TData extends LeadCreateData | LeadReq
103
103
  ipAddress: undefined;
104
104
  userAgent: undefined;
105
105
  };
106
- clientTags: Record<"app" | "os" | "isMobile" | "system" | "evReferrer" | "consumerBrand" | "cnfEnvironment", string[]>;
106
+ clientTags: Record<"system" | "app" | "os" | "isMobile" | "evReferrer" | "consumerBrand" | "cnfEnvironment", string[]>;
107
107
  }[Key] extends infer T_2 ? T_2 extends {
108
108
  /**
109
109
  * The leads API required device ID's be in the UUID format. If the string
@@ -115,7 +115,7 @@ export declare function withDeviceSignals<TData extends LeadCreateData | LeadReq
115
115
  ipAddress: undefined;
116
116
  userAgent: undefined;
117
117
  };
118
- clientTags: Record<"app" | "os" | "isMobile" | "system" | "evReferrer" | "consumerBrand" | "cnfEnvironment", string[]>;
118
+ clientTags: Record<"system" | "app" | "os" | "isMobile" | "evReferrer" | "consumerBrand" | "cnfEnvironment", string[]>;
119
119
  }[Key] ? T_2 extends void | null | undefined ? T : T extends any[] ? T_2 extends any[] ? T extends infer T_3 ? T_3 extends T ? T_3 extends (infer DestinationType)[] ? T_2 extends infer T_4 ? T_4 extends T_2 ? T_4 extends (infer SourceType)[] ? (DestinationType | SourceType)[] : DestinationType[] | T_4 : never : never : T_2 | T_3 : never : never : T_2 | T : T extends Function ? T_2 | T : T extends RegExp ? T_2 | T : T extends Promise<any> ? T_2 | T : T_2 extends Function ? T | T_2 : T_2 extends RegExp ? T | T_2 : T_2 extends Promise<any> ? T | T_2 : T extends {
120
120
  [x: string]: any;
121
121
  [x: number]: any;
@@ -13,9 +13,7 @@ export type MoneyLionOfferCarouselProps = {
13
13
  channel: string;
14
14
  zone: string;
15
15
  subAccountToken: string;
16
- searchAPIToken: string;
17
16
  productType?: string;
18
- query?: string;
19
17
  tags?: string;
20
18
  staticProductTypes?: string;
21
19
  fontFamily?: Partial<FontFamily>;
@@ -1 +1 @@
1
- {"version":3,"file":"MoneyLionOfferCarousel.d.ts","sourceRoot":"","sources":["../../../../src/components/MoneyLionOfferCarousel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAKb,KAAK,QAAQ,EACb,KAAK,cAAc,EACnB,MAAM,OAAO,CAAC;AASf,OAAO,EAAiB,KAAK,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,EAEN,KAAK,uBAAuB,EAC5B,MAAM,iCAAiC,CAAC;AAGzC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uDAAuD,CAAC;AAExF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kDAAkD,CAAC;AAIjF,OAAO,KAAK,EAGX,uBAAuB,EACvB,eAAe,EACf,MAAM,8BAA8B,CAAC;AAItC,MAAM,MAAM,WAAW,GAAG;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACzC,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,UAAU,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC;IACjC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,KAAK,EAAE,OAAO,CAAC;IACf,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B,MAAM,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACpB,GAAG,IAAI,CAAC,uBAAuB,EAAE,eAAe,GAAG,UAAU,CAAC,CAAC;AAEhE,MAAM,WAAW,mCAAoC,SAAQ,IAAI,CAChE,2BAA2B,EAC3B,YAAY,CACZ;IACA,OAAO,EAAE,UAAU,GAAG,IAAI,CAAC;IAC3B,QAAQ,EAAE,GAAG,CAAC;IACd,UAAU,EAAE,QAAQ,CAAC,cAAc,CAAC,UAAU,GAAG,IAAI,CAAC,CAAC,CAAC;IACxD,WAAW,EAAE,QAAQ,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3C,OAAO,CAAC,EAAE,uBAAuB,CAAC;CAClC;AAiWD,eAAO,MAAM,sBAAsB,GAClC,OAAO,2BAA2B,GACjC,IAAI,CAAC,uBAAuB,EAAE,eAAe,GAAG,UAAU,CAAC,sBA6C5D,CAAC"}
1
+ {"version":3,"file":"MoneyLionOfferCarousel.d.ts","sourceRoot":"","sources":["../../../../src/components/MoneyLionOfferCarousel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAKb,KAAK,QAAQ,EACb,KAAK,cAAc,EACnB,MAAM,OAAO,CAAC;AASf,OAAO,EAAiB,KAAK,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,EAEN,KAAK,uBAAuB,EAC5B,MAAM,iCAAiC,CAAC;AAGzC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uDAAuD,CAAC;AAExF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kDAAkD,CAAC;AAIjF,OAAO,KAAK,EAGX,uBAAuB,EACvB,eAAe,EACf,MAAM,8BAA8B,CAAC;AAItC,MAAM,MAAM,WAAW,GAAG;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACzC,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,UAAU,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC;IACjC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,KAAK,EAAE,OAAO,CAAC;IACf,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B,MAAM,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACpB,GAAG,IAAI,CAAC,uBAAuB,EAAE,eAAe,GAAG,UAAU,CAAC,CAAC;AAEhE,MAAM,WAAW,mCAAoC,SAAQ,IAAI,CAChE,2BAA2B,EAC3B,YAAY,CACZ;IACA,OAAO,EAAE,UAAU,GAAG,IAAI,CAAC;IAC3B,QAAQ,EAAE,GAAG,CAAC;IACd,UAAU,EAAE,QAAQ,CAAC,cAAc,CAAC,UAAU,GAAG,IAAI,CAAC,CAAC,CAAC;IACxD,WAAW,EAAE,QAAQ,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3C,OAAO,CAAC,EAAE,uBAAuB,CAAC;CAClC;AAkWD,eAAO,MAAM,sBAAsB,GAClC,OAAO,2BAA2B,GACjC,IAAI,CAAC,uBAAuB,EAAE,eAAe,GAAG,UAAU,CAAC,sBA6C5D,CAAC"}
@@ -2,4 +2,5 @@ export * from "./components/MoneyLionOfferCarousel";
2
2
  export type { UserData } from "./capabilities/configuration/src/userData/types";
3
3
  export type { onInitializeProps, onRateTableSubmitProps, onRateTableResponseProps, onOfferDisplayInViewportProps, onOfferClickProps, onOfferDetailsPageOpenProps, onOfferDetailsPageCloseProps, } from "./context/EventHandlerProvider";
4
4
  export type { ErrorCodes, MoneyLionOfferCarouselError, } from "./capabilities/errors/types";
5
+ export { ErrorCodeMap, type ErrorCodeValues, } from "./capabilities/errors/types";
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAC;AAEpD,YAAY,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAChF,YAAY,EACX,iBAAiB,EACjB,sBAAsB,EACtB,wBAAwB,EACxB,6BAA6B,EAC7B,iBAAiB,EACjB,2BAA2B,EAC3B,4BAA4B,GAC5B,MAAM,gCAAgC,CAAC;AACxC,YAAY,EACX,UAAU,EACV,2BAA2B,GAC3B,MAAM,6BAA6B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAC;AAEpD,YAAY,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAChF,YAAY,EACX,iBAAiB,EACjB,sBAAsB,EACtB,wBAAwB,EACxB,6BAA6B,EAC7B,iBAAiB,EACjB,2BAA2B,EAC3B,4BAA4B,GAC5B,MAAM,gCAAgC,CAAC;AACxC,YAAY,EACX,UAAU,EACV,2BAA2B,GAC3B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACN,YAAY,EACZ,KAAK,eAAe,GACpB,MAAM,6BAA6B,CAAC"}
@@ -4,9 +4,7 @@ import type { InternalOnErrorCallback } from "./capabilities/errors/types";
4
4
  import type { onRateTableSubmitProps } from "./context/EventHandlerProvider";
5
5
  export type GetPageDataParams = {
6
6
  productType?: string;
7
- query?: string;
8
7
  tags?: string;
9
- searchAPIToken: string;
10
8
  showProductTypeLabel?: boolean;
11
9
  showCardBorder?: boolean;
12
10
  userData?: UserData;
@@ -1 +1 @@
1
- {"version":3,"file":"pageData.d.ts","sourceRoot":"","sources":["../../../src/pageData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAChF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sDAAsD,CAAC;AACvF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAG3E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAU7E,MAAM,MAAM,iBAAiB,GAAG;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACpB,CAAC;AAEF,KAAK,gBAAgB,GAAG;IACvB,OAAO,EAAE,UAAU,CAAC;IACpB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,sBAAsB,KAAK,IAAI,CAAC;IAC5D,OAAO,CAAC,EAAE,uBAAuB,CAAC;CAClC,CAAC;AAEF,wBAAsB,WAAW,CAAC,EACjC,OAAO,EACP,MAAM,EACN,iBAAiB,EACjB,OAAO,GACP,EAAE,gBAAgB;;;;;;;;;GA2ElB"}
1
+ {"version":3,"file":"pageData.d.ts","sourceRoot":"","sources":["../../../src/pageData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iDAAiD,CAAC;AAChF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sDAAsD,CAAC;AACvF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAE3E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAS7E,MAAM,MAAM,iBAAiB,GAAG;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACpB,CAAC;AAEF,KAAK,gBAAgB,GAAG;IACvB,OAAO,EAAE,UAAU,CAAC;IACpB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,sBAAsB,KAAK,IAAI,CAAC;IAC5D,OAAO,CAAC,EAAE,uBAAuB,CAAC;CAClC,CAAC;AAEF,wBAAsB,WAAW,CAAC,EACjC,OAAO,EACP,MAAM,EACN,iBAAiB,EACjB,OAAO,GACP,EAAE,gBAAgB;;;;;;;;;GA6DlB"}
@@ -1,4 +1,4 @@
1
- import type { GetProductTypesProps, ProductTypesResult } from "./getProductTypes";
1
+ import type { GetProductTypesProps } from "./getProductTypes";
2
2
  import type { PartnerOverride, ProductTypeDefinition } from "../capabilities/offer-catalog/src";
3
3
  import type { UserData } from "../capabilities/configuration/src/userData/types";
4
4
  import type { CnfContext } from "../capabilities/core/src/system/cnfContext/CnfContext";
@@ -6,21 +6,20 @@ import type { InternalOnErrorCallback } from "../capabilities/errors/types";
6
6
  export type GetDynamicOffersProps = {
7
7
  tags: string;
8
8
  productTypes: string[];
9
- resultType: ProductTypesResult["resultType"];
10
9
  isCachedOffersRequest: boolean;
11
10
  productTypesDefinition: ProductTypeDefinition[];
12
11
  partnersOverrideDefinition: PartnerOverride[];
13
12
  context: CnfContext;
14
13
  userData?: UserData;
15
14
  onError?: InternalOnErrorCallback;
16
- } & Omit<GetProductTypesProps, "context" | "productTypeOrUrl" | "query" | "isDevMode" | "referrer" | "searchAPIToken">;
15
+ } & Omit<GetProductTypesProps, "context" | "productTypeOrUrl" | "isDevMode" | "referrer">;
17
16
  /**
18
17
  * Retrieves dynamic offers based on the provided parameters.
19
18
  *
20
19
  * @param {GetDynamicOffersProps} params - The parameters for retrieving dynamic offers.
21
20
  * @returns {Promise<{ productTypeDisplayName: string; offers: typeof offers }>} An object containing the product type display name and the offers.
22
21
  */
23
- export declare const getDynamicOffers: ({ tags, defaultProductType, productTypes, resultType, isCachedOffersRequest, productTypesDefinition, partnersOverrideDefinition, context, userData, onError, }: Omit<GetDynamicOffersProps, "isDev">) => Promise<{
22
+ export declare const getDynamicOffers: ({ tags, defaultProductType, productTypes, isCachedOffersRequest, productTypesDefinition, partnersOverrideDefinition, context, userData, onError, }: Omit<GetDynamicOffersProps, "isDev">) => Promise<{
24
23
  offers: import("../capabilities/offer-catalog/src").BaseOffer[];
25
24
  isError: boolean | undefined;
26
25
  errorCode: number | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"getDynamicOffers.d.ts","sourceRoot":"","sources":["../../../../src/services/getDynamicOffers.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACX,oBAAoB,EACpB,kBAAkB,EAClB,MAAM,mBAAmB,CAAC;AAI3B,OAAO,KAAK,EACX,eAAe,EACf,qBAAqB,EACrB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kDAAkD,CAAC;AACjF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uDAAuD,CAAC;AACxF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAE5E,MAAM,MAAM,qBAAqB,GAAG;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,UAAU,EAAE,kBAAkB,CAAC,YAAY,CAAC,CAAC;IAC7C,qBAAqB,EAAE,OAAO,CAAC;IAC/B,sBAAsB,EAAE,qBAAqB,EAAE,CAAC;IAChD,0BAA0B,EAAE,eAAe,EAAE,CAAC;IAC9C,OAAO,EAAE,UAAU,CAAC;IACpB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,OAAO,CAAC,EAAE,uBAAuB,CAAC;CAClC,GAAG,IAAI,CACP,oBAAoB,EAClB,SAAS,GACT,kBAAkB,GAClB,OAAO,GACP,WAAW,GACX,UAAU,GACV,gBAAgB,CAClB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,GAAU,gKAWpC,IAAI,CAAC,qBAAqB,EAAE,OAAO,CAAC;;;;;;EAkDtC,CAAC"}
1
+ {"version":3,"file":"getDynamicOffers.d.ts","sourceRoot":"","sources":["../../../../src/services/getDynamicOffers.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAG9D,OAAO,KAAK,EACX,eAAe,EACf,qBAAqB,EACrB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kDAAkD,CAAC;AACjF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uDAAuD,CAAC;AACxF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAE5E,MAAM,MAAM,qBAAqB,GAAG;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,qBAAqB,EAAE,OAAO,CAAC;IAC/B,sBAAsB,EAAE,qBAAqB,EAAE,CAAC;IAChD,0BAA0B,EAAE,eAAe,EAAE,CAAC;IAC9C,OAAO,EAAE,UAAU,CAAC;IACpB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,OAAO,CAAC,EAAE,uBAAuB,CAAC;CAClC,GAAG,IAAI,CACP,oBAAoB,EACpB,SAAS,GAAG,kBAAkB,GAAG,WAAW,GAAG,UAAU,CACzD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,GAAU,oJAUpC,IAAI,CAAC,qBAAqB,EAAE,OAAO,CAAC;;;;;;EAmDtC,CAAC"}
@@ -1,13 +1,8 @@
1
- import type { InternalOnErrorCallback } from "../capabilities/errors/types";
2
1
  export type GetProductTypesProps = {
3
2
  productType?: string;
4
- query?: string;
5
3
  defaultProductType: string;
6
- searchAPIToken: string;
7
- isDev: boolean;
8
- onError?: InternalOnErrorCallback;
9
4
  };
10
- export type ResultType = "STATIC" | "QUERY" | "PRODUCT_TYPE" | "DEFAULT";
5
+ export type ResultType = "STATIC" | "PRODUCT_TYPE" | "DEFAULT";
11
6
  export type ProductTypesResult = {
12
7
  productTypes: string[];
13
8
  resultType: ResultType;
@@ -17,5 +12,5 @@ export type ProductTypesResult = {
17
12
  * @param props - The properties to get the product types
18
13
  * @returns The product types
19
14
  */
20
- export declare const getProductTypes: ({ productType, defaultProductType, query, searchAPIToken, isDev, onError, }: GetProductTypesProps) => Promise<ProductTypesResult>;
15
+ export declare const getProductTypes: ({ productType, defaultProductType, }: GetProductTypesProps) => Promise<ProductTypesResult>;
21
16
  //# sourceMappingURL=getProductTypes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getProductTypes.d.ts","sourceRoot":"","sources":["../../../../src/services/getProductTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAG5E,MAAM,MAAM,oBAAoB,GAAG;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kBAAkB,EAAE,MAAM,CAAC;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,uBAAuB,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,OAAO,GAAG,cAAc,GAAG,SAAS,CAAC;AAEzE,MAAM,MAAM,kBAAkB,GAAG;IAChC,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,UAAU,EAAE,UAAU,CAAC;CACvB,CAAC;AAQF;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAAU,6EAOnC,oBAAoB,KAAG,OAAO,CAAC,kBAAkB,CAmBnD,CAAC"}
1
+ {"version":3,"file":"getProductTypes.d.ts","sourceRoot":"","sources":["../../../../src/services/getProductTypes.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,oBAAoB,GAAG;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,cAAc,GAAG,SAAS,CAAC;AAE/D,MAAM,MAAM,kBAAkB,GAAG;IAChC,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,UAAU,EAAE,UAAU,CAAC;CACvB,CAAC;AAQF;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAAU,sCAGnC,oBAAoB,KAAG,OAAO,CAAC,kBAAkB,CAOnD,CAAC"}
@@ -20,7 +20,7 @@ export declare const getOffersByProductTypes: ({ isCachedOffersRequest, productT
20
20
  enablePolling?: boolean;
21
21
  onError?: InternalOnErrorCallback;
22
22
  }) => Promise<{
23
- offers: never[] | import("../capabilities/offer-catalog/src").BaseOffer[];
23
+ offers: import("../capabilities/offer-catalog/src").BaseOffer[] | never[];
24
24
  rateTableUuid: string;
25
25
  isError: boolean | undefined;
26
26
  leadUuid: string;
@@ -1,14 +1,14 @@
1
1
  import type { CnfContext } from "../capabilities/core/src/system/cnfContext/CnfContext";
2
2
  export declare const getProductTypesDefinition: (context: CnfContext) => {
3
- productTypesDefinition: readonly {
4
- readonly id: string;
5
- readonly partnerPageUrl: string;
6
- readonly productTypeSlug: string;
3
+ productTypesDefinition: {
4
+ id: string;
5
+ partnerPageUrl: string;
6
+ productTypeSlug: string;
7
7
  }[];
8
- partnersOverrideDefinition: readonly {
9
- readonly id: string;
10
- readonly overrideUrl: string;
11
- readonly financialInstitutionUuid: string;
8
+ partnersOverrideDefinition: {
9
+ id: string;
10
+ overrideUrl: string;
11
+ financialInstitutionUuid: string;
12
12
  }[];
13
13
  };
14
14
  //# sourceMappingURL=getProductTypesDefinition.d.ts.map
@@ -3,7 +3,6 @@ export * from "./getDefaultProductType";
3
3
  export * from "./getOffersByProductTypes";
4
4
  export * from "./getProductTypesDefinition";
5
5
  export * from "./resolveProductTypes";
6
- export * from "./selectDynamicOffers";
7
6
  export * from "./sortOffersByRecommendationScore";
8
7
  export * from "./parseStringProductTypes";
9
8
  export * from "./getEnableUseCachedOffers";