@wayke-se/ecom-web 0.0.3 → 0.0.7-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1221,7 +1221,7 @@ declare module '@wayke-se/ecom-web/src/Data/getInsurances' {
1221
1221
 
1222
1222
  }
1223
1223
  declare module '@wayke-se/ecom-web/src/Data/getOrder' {
1224
- export const getOrder: (id: string, dealer?: string | undefined) => Promise<import("@wayke-se/ecom/dist-types/orders/order-options-response").OrderOptionsResponse>;
1224
+ export const getOrder: (id: string, dealer?: string) => Promise<import("@wayke-se/ecom/dist-types/orders/order-options-response").OrderOptionsResponse>;
1225
1225
 
1226
1226
  }
1227
1227
  declare module '@wayke-se/ecom-web/src/Data/getPayment' {
@@ -1269,7 +1269,7 @@ declare module '@wayke-se/ecom-web/src/Redux/action' {
1269
1269
  order: OrderOptions;
1270
1270
  vehicle?: Vehicle;
1271
1271
  };
1272
- export const setOrder: (order: OrderOptions, vehicle?: Vehicle | undefined) => (dispatch: Dispatch) => {
1272
+ export const setOrder: (order: OrderOptions, vehicle?: Vehicle) => (dispatch: Dispatch) => {
1273
1273
  type: string;
1274
1274
  order: OrderOptions;
1275
1275
  vehicle: Vehicle | undefined;
@@ -1336,7 +1336,7 @@ declare module '@wayke-se/ecom-web/src/Redux/action' {
1336
1336
  tradeIn?: TradeInCarData;
1337
1337
  tradeInVehicle?: IVehicle;
1338
1338
  };
1339
- export const setTradeIn: (lastStage: boolean, tradeIn?: TradeInCarData | undefined, tradeInVehicle?: IVehicle | undefined) => (dispatch: Dispatch) => {
1339
+ export const setTradeIn: (lastStage: boolean, tradeIn?: TradeInCarData | undefined, tradeInVehicle?: IVehicle) => (dispatch: Dispatch) => {
1340
1340
  type: string;
1341
1341
  lastStage: boolean;
1342
1342
  tradeIn: TradeInCarData | undefined;
@@ -1380,7 +1380,7 @@ declare module '@wayke-se/ecom-web/src/Redux/action' {
1380
1380
  export type SET_OR_REMOVE_INSURANCE_TYPE = BaseAction<typeof SET_OR_REMOVE_INSURANCE> & {
1381
1381
  insurance?: IInsuranceOption;
1382
1382
  };
1383
- export const addOrRemoveInsurance: (insurance?: IInsuranceOption | undefined) => (dispatch: Dispatch) => {
1383
+ export const addOrRemoveInsurance: (insurance?: IInsuranceOption) => (dispatch: Dispatch) => {
1384
1384
  type: string;
1385
1385
  insurance: IInsuranceOption | undefined;
1386
1386
  };
@@ -1416,7 +1416,7 @@ declare module '@wayke-se/ecom-web/src/Redux/action' {
1416
1416
  index?: number;
1417
1417
  subStage?: number;
1418
1418
  };
1419
- export const goTo: (view: ViewTypes, index?: number | undefined, subStage?: number | undefined) => (dispatch: Dispatch) => {
1419
+ export const goTo: (view: ViewTypes, index?: number, subStage?: number) => (dispatch: Dispatch) => {
1420
1420
  type: string;
1421
1421
  view: ViewTypes;
1422
1422
  index: number | undefined;
@@ -1441,7 +1441,7 @@ declare module '@wayke-se/ecom-web/src/Redux/action' {
1441
1441
  export const setCreatedOrderId: (id: string, payment?: {
1442
1442
  type: string;
1443
1443
  url: string;
1444
- } | undefined) => (dispatch: Dispatch) => {
1444
+ }) => (dispatch: Dispatch) => {
1445
1445
  type: string;
1446
1446
  id: string;
1447
1447
  payment: {
@@ -1454,7 +1454,7 @@ declare module '@wayke-se/ecom-web/src/Redux/action' {
1454
1454
  caseId?: string;
1455
1455
  creditAssessmentResponse?: ICreditAssessmentStatus;
1456
1456
  };
1457
- export const setCreditAssessmentResponse: (caseId?: string | undefined, creditAssessmentResponse?: ICreditAssessmentStatus | undefined) => (dispatch: Dispatch) => {
1457
+ export const setCreditAssessmentResponse: (caseId?: string, creditAssessmentResponse?: ICreditAssessmentStatus) => (dispatch: Dispatch) => {
1458
1458
  type: string;
1459
1459
  caseId: string | undefined;
1460
1460
  creditAssessmentResponse: ICreditAssessmentStatus | undefined;
@@ -1529,7 +1529,7 @@ declare module '@wayke-se/ecom-web/src/Redux/watch' {
1529
1529
  import { WaykeStore } from '@wayke-se/ecom-web/src/Redux/store';
1530
1530
  export const unregisterAllSubscriptions: () => void;
1531
1531
  type FieldPath = string | number | Array<string | number>;
1532
- const watch: <T>(store: WaykeStore, path: FieldPath, callback: (newValue: T, oldValue: T, pathToField: FieldPath) => void, doNotRegister?: boolean | undefined) => (() => void) | undefined;
1532
+ const watch: <T>(store: WaykeStore, path: FieldPath, callback: (newValue: T, oldValue: T, pathToField: FieldPath) => void, doNotRegister?: boolean) => (() => void) | undefined;
1533
1533
  export default watch;
1534
1534
 
1535
1535
  }
@@ -1602,7 +1602,7 @@ declare module '@wayke-se/ecom-web/src/Templates/Loader' {
1602
1602
  interface LoaderProps {
1603
1603
  type?: LoaderType;
1604
1604
  }
1605
- const Loader: (props?: LoaderProps | undefined) => string;
1605
+ const Loader: (props?: LoaderProps) => string;
1606
1606
  export default Loader;
1607
1607
 
1608
1608
  }
@@ -1814,7 +1814,7 @@ declare module '@wayke-se/ecom-web/src/Utils/ecomEvent' {
1814
1814
  }
1815
1815
  export const eventHistory: EventHistory[];
1816
1816
  export const getLastHistory: () => EventHistory;
1817
- const ecomEvent: (view: EcomView, ecomEvent: EcomEvent, currentStep?: EcomStep | undefined) => void;
1817
+ const ecomEvent: (view: EcomView, ecomEvent: EcomEvent, currentStep?: EcomStep) => void;
1818
1818
  export default ecomEvent;
1819
1819
 
1820
1820
  }
@@ -1825,7 +1825,7 @@ declare module '@wayke-se/ecom-web/src/Utils/format' {
1825
1825
  prefix?: string | number;
1826
1826
  decimals?: number;
1827
1827
  }
1828
- export const prettyNumber: (value: number | undefined, settings?: PrettyNumberSettings | undefined) => string;
1828
+ export const prettyNumber: (value: number | undefined, settings?: PrettyNumberSettings) => string;
1829
1829
  export {};
1830
1830
 
1831
1831
  }
@@ -1837,6 +1837,10 @@ declare module '@wayke-se/ecom-web/src/Utils/mask' {
1837
1837
  export const maskText: (text: string) => string;
1838
1838
  export const maskSSn: (ssn: string) => string;
1839
1839
 
1840
+ }
1841
+ declare module '@wayke-se/ecom-web/src/Utils/parser' {
1842
+ export const asHtml: (s?: string) => string;
1843
+
1840
1844
  }
1841
1845
  declare module '@wayke-se/ecom-web/src/Utils/payment' {
1842
1846
  export const swedbankPayment: (url: string) => void;
@@ -1879,12 +1883,12 @@ declare module '@wayke-se/ecom-web/src/Utils/validationMethods' {
1879
1883
  requiredZip: (s: string) => boolean;
1880
1884
  requiredNumberOrStringNumberInRange: (s: string | number, from: number, to: number) => boolean;
1881
1885
  requiredNumber: (s: string | number) => boolean;
1882
- requiredRegistrationNumber: (s?: string | undefined) => boolean;
1883
- requiredMileage: (s?: string | undefined) => boolean;
1884
- optionalString: (s?: string | undefined) => boolean;
1885
- requiredCondition: (s?: string | undefined) => boolean;
1886
- requiredAssessmentMaritalStatus: (s?: string | undefined) => boolean;
1887
- requiredAssessmentEmplyment: (s?: string | undefined) => boolean;
1886
+ requiredRegistrationNumber: (s?: string) => boolean;
1887
+ requiredMileage: (s?: string) => boolean;
1888
+ optionalString: (s?: string) => boolean;
1889
+ requiredCondition: (s?: string) => boolean;
1890
+ requiredAssessmentMaritalStatus: (s?: string) => boolean;
1891
+ requiredAssessmentEmplyment: (s?: string) => boolean;
1888
1892
  };
1889
1893
 
1890
1894
  }