addio-ecomm-sdk 1.3.74 → 1.3.76

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 (107) hide show
  1. package/.vscode/settings.json +34 -34
  2. package/README.md +79 -79
  3. package/dist/index.d.ts +203 -202
  4. package/dist/index.js +1818 -1818
  5. package/dist/index.js.map +1 -1
  6. package/dist/lib/constants/components/CreditCardInput.d.ts +11 -11
  7. package/dist/lib/constants/components/CreditCardInput.js +79 -79
  8. package/dist/lib/constants/components/Snackbar.d.ts +11 -11
  9. package/dist/lib/constants/components/Snackbar.js +39 -39
  10. package/dist/lib/constants/contexts/CartContext/CartContextProvider.d.ts +7 -7
  11. package/dist/lib/constants/contexts/CartContext/CartContextProvider.js +980 -980
  12. package/dist/lib/constants/contexts/CartContext/index.d.ts +79 -79
  13. package/dist/lib/constants/contexts/CartContext/index.js +127 -127
  14. package/dist/lib/constants/contexts/DataContext/DataContextProvider.d.ts +15 -15
  15. package/dist/lib/constants/contexts/DataContext/DataContextProvider.js +304 -304
  16. package/dist/lib/constants/contexts/DataContext/index.d.ts +47 -47
  17. package/dist/lib/constants/contexts/DataContext/index.js +67 -67
  18. package/dist/lib/constants/contexts/LogContext/LogContextProvider.d.ts +6 -6
  19. package/dist/lib/constants/contexts/LogContext/LogContextProvider.js +103 -103
  20. package/dist/lib/constants/contexts/LogContext/index.d.ts +7 -7
  21. package/dist/lib/constants/contexts/LogContext/index.js +45 -45
  22. package/dist/lib/constants/contexts/ModalContext/ModalContextProvider.d.ts +7 -7
  23. package/dist/lib/constants/contexts/ModalContext/ModalContextProvider.js +76 -76
  24. package/dist/lib/constants/contexts/ModalContext/index.d.ts +14 -14
  25. package/dist/lib/constants/contexts/ModalContext/index.js +18 -18
  26. package/dist/lib/constants/contexts/SDKContext/SDKProvider.d.ts +8 -8
  27. package/dist/lib/constants/contexts/SDKContext/SDKProvider.js +79 -79
  28. package/dist/lib/constants/contexts/SDKContext/index.d.ts +4 -4
  29. package/dist/lib/constants/contexts/SDKContext/index.js +4 -4
  30. package/dist/lib/constants/contexts/SnackbarContext/SnackbarContext.d.ts +4 -4
  31. package/dist/lib/constants/contexts/SnackbarContext/SnackbarContext.js +6 -6
  32. package/dist/lib/constants/contexts/SnackbarContext/SnackbarContextProvider.d.ts +12 -12
  33. package/dist/lib/constants/contexts/SnackbarContext/SnackbarContextProvider.js +52 -52
  34. package/dist/lib/constants/contexts/SnackbarContext/interfaces/ISnackbarContext.d.ts +17 -17
  35. package/dist/lib/constants/contexts/SnackbarContext/interfaces/ISnackbarContext.js +21 -21
  36. package/dist/lib/constants/contexts/StockNotifContext/StockNotifContextProvider.d.ts +7 -7
  37. package/dist/lib/constants/contexts/StockNotifContext/StockNotifContextProvider.js +179 -179
  38. package/dist/lib/constants/contexts/StockNotifContext/index.d.ts +10 -10
  39. package/dist/lib/constants/contexts/StockNotifContext/index.js +10 -10
  40. package/dist/lib/constants/contexts/UserContext/UserContextProvider.d.ts +5 -5
  41. package/dist/lib/constants/contexts/UserContext/UserContextProvider.js +470 -470
  42. package/dist/lib/constants/contexts/UserContext/index.d.ts +54 -54
  43. package/dist/lib/constants/contexts/UserContext/index.js +82 -82
  44. package/dist/lib/constants/contexts/WishlistContext/WishlistContextProvider.d.ts +6 -6
  45. package/dist/lib/constants/contexts/WishlistContext/WishlistContextProvider.js +327 -327
  46. package/dist/lib/constants/contexts/WishlistContext/index.d.ts +12 -12
  47. package/dist/lib/constants/contexts/WishlistContext/index.js +12 -12
  48. package/dist/lib/constants/hooks/useCart.d.ts +2 -2
  49. package/dist/lib/constants/hooks/useCart.js +11 -11
  50. package/dist/lib/constants/hooks/useData.d.ts +2 -2
  51. package/dist/lib/constants/hooks/useData.js +11 -11
  52. package/dist/lib/constants/hooks/useLogs.d.ts +2 -2
  53. package/dist/lib/constants/hooks/useLogs.js +11 -11
  54. package/dist/lib/constants/hooks/useModal.d.ts +2 -2
  55. package/dist/lib/constants/hooks/useModal.js +11 -11
  56. package/dist/lib/constants/hooks/useSDK.d.ts +2 -2
  57. package/dist/lib/constants/hooks/useSDK.js +11 -11
  58. package/dist/lib/constants/hooks/useSnackbar.d.ts +2 -2
  59. package/dist/lib/constants/hooks/useSnackbar.js +11 -11
  60. package/dist/lib/constants/hooks/useStockNotif.d.ts +2 -2
  61. package/dist/lib/constants/hooks/useStockNotif.js +11 -11
  62. package/dist/lib/constants/hooks/useUser.d.ts +2 -2
  63. package/dist/lib/constants/hooks/useUser.js +11 -11
  64. package/dist/lib/constants/hooks/useWishlist.d.ts +2 -2
  65. package/dist/lib/constants/hooks/useWishlist.js +11 -11
  66. package/dist/lib/models/image/index.d.ts +6 -6
  67. package/dist/lib/models/image/index.js +15 -15
  68. package/dist/lib/models/stockNotification/index.d.ts +13 -13
  69. package/dist/lib/models/stockNotification/index.js +130 -130
  70. package/dist/lib/models/wishlist/index.d.ts +14 -14
  71. package/dist/lib/models/wishlist/index.js +155 -155
  72. package/dist/utils/StripeErrors.d.ts +24 -24
  73. package/dist/utils/StripeErrors.js +55 -55
  74. package/dist/utils/algolia.d.ts +3 -3
  75. package/dist/utils/algolia.js +81 -81
  76. package/dist/utils/analytics.d.ts +71 -71
  77. package/dist/utils/analytics.js +257 -257
  78. package/dist/utils/cart.d.ts +3 -3
  79. package/dist/utils/cart.js +66 -66
  80. package/dist/utils/contentful.d.ts +10 -10
  81. package/dist/utils/contentful.js +136 -136
  82. package/dist/utils/functions.d.ts +21 -21
  83. package/dist/utils/functions.js +200 -200
  84. package/dist/utils/getSDK.d.ts +4 -4
  85. package/dist/utils/getSDK.js +77 -77
  86. package/dist/utils/initStoreData.d.ts +3 -3
  87. package/dist/utils/initStoreData.js +62 -62
  88. package/dist/utils/interfaces/IClientCMSData.d.ts +132 -132
  89. package/dist/utils/interfaces/IClientCMSData.js +2 -2
  90. package/dist/utils/interfaces/IEndpointResult.d.ts +10 -10
  91. package/dist/utils/interfaces/IEndpointResult.js +2 -2
  92. package/dist/utils/interfaces/IFacebookUserProfile.d.ts +10 -10
  93. package/dist/utils/interfaces/IFacebookUserProfile.js +2 -2
  94. package/dist/utils/interfaces/IFilter.d.ts +23 -23
  95. package/dist/utils/interfaces/IFilter.js +2 -2
  96. package/dist/utils/interfaces/IGoogleUserProfile.d.ts +7 -7
  97. package/dist/utils/interfaces/IGoogleUserProfile.js +2 -2
  98. package/dist/utils/interfaces/ISDKConfig.d.ts +7 -7
  99. package/dist/utils/interfaces/ISDKConfig.js +2 -2
  100. package/dist/utils/interfaces/ISpaceData.d.ts +18 -18
  101. package/dist/utils/interfaces/ISpaceData.js +2 -2
  102. package/dist/utils/larivieremeunier.d.ts +3 -3
  103. package/dist/utils/larivieremeunier.js +156 -156
  104. package/dist/utils/technosupply.d.ts +3 -3
  105. package/dist/utils/technosupply.js +155 -155
  106. package/package.json +61 -61
  107. package/publish.sh +132 -132
@@ -1,54 +1,54 @@
1
- /// <reference types="react" />
2
- import ICustomer from 'addio-admin-sdk/dist/Interfaces/Customer';
3
- import { ICustomPriceItem } from 'addio-admin-sdk/dist/Interfaces/G2';
4
- import IOrder from 'addio-admin-sdk/dist/Interfaces/Order';
5
- import IIndexedBankUsed, { IRemainingBankAmount, QueryDateRangeEnum } from 'addio-admin-sdk/dist/Interfaces/PromiseToPurchase/IIndexedBankUsed';
6
- export interface IUserContext {
7
- readonly isUserLoggedIn: boolean;
8
- readonly userData: ICustomer | null;
9
- readonly isPro: boolean;
10
- readonly loaded: boolean;
11
- readonly customPriceList?: ICustomPriceItem[];
12
- readonly fetchCustomPrices: boolean;
13
- readonly setLoaded: (value: boolean) => void;
14
- readonly setUserLoggedIn: (userData: ICustomer) => void;
15
- readonly setUserLoggedOut: (keepRepCart?: boolean) => Promise<void>;
16
- readonly saveUser: (customer: ICustomer) => Promise<boolean>;
17
- readonly deleteUser: () => Promise<boolean>;
18
- readonly getOrder: (order_id: string, token?: string) => Promise<IOrder | string>;
19
- readonly changePassword: (currentPassword: string, newPassword: string) => Promise<string>;
20
- readonly changeProfilePicture: (base64?: string) => Promise<string>;
21
- readonly setUserPreferedStore: (storeId: string) => Promise<void>;
22
- readonly setCustomPriceList: (list: ICustomPriceItem[]) => void;
23
- readonly getPromiseToPurchaseHistory: (userId?: string, filters?: {
24
- bankTypeId?: string;
25
- unixDateRange?: QueryDateRangeEnum;
26
- }) => Promise<IIndexedBankUsed[] | undefined>;
27
- readonly getPromiseToPurchaseRemainingAmounts: (userId?: string) => Promise<{
28
- [bankID: string]: IRemainingBankAmount[];
29
- } | undefined>;
30
- }
31
- export declare const getDefaultUserContext: () => {
32
- isUserLoggedIn: boolean;
33
- userData: null;
34
- isPro: boolean;
35
- loaded: boolean;
36
- fetchCustomPrices: boolean;
37
- setLoaded: (_value: boolean) => void;
38
- setUserLoggedIn: (_userData: ICustomer) => void;
39
- setUserLoggedOut: (_keepRepCart?: boolean) => Promise<void>;
40
- saveUser: (_customer: ICustomer) => Promise<boolean>;
41
- deleteUser: () => Promise<boolean>;
42
- getOrder: (_order_id: string) => Promise<string>;
43
- changePassword: (_pass: string) => Promise<string>;
44
- changeProfilePicture: (_base64?: string) => Promise<string>;
45
- setUserPreferedStore: (_storeId: string) => Promise<void>;
46
- setCustomPriceList: (_list: ICustomPriceItem[]) => void;
47
- getPromiseToPurchaseHistory: (_userId?: string, _filters?: {
48
- bankTypeId?: string;
49
- unixDateRange?: QueryDateRangeEnum;
50
- }) => Promise<undefined>;
51
- getPromiseToPurchaseRemainingAmounts: (_userId?: string) => Promise<undefined>;
52
- };
53
- declare const UserContext: import("react").Context<IUserContext>;
54
- export default UserContext;
1
+ /// <reference types="react" />
2
+ import ICustomer from 'addio-admin-sdk/dist/Interfaces/Customer';
3
+ import { ICustomPriceItem } from 'addio-admin-sdk/dist/Interfaces/G2';
4
+ import IOrder from 'addio-admin-sdk/dist/Interfaces/Order';
5
+ import IIndexedBankUsed, { IRemainingBankAmount, QueryDateRangeEnum } from 'addio-admin-sdk/dist/Interfaces/PromiseToPurchase/IIndexedBankUsed';
6
+ export interface IUserContext {
7
+ readonly isUserLoggedIn: boolean;
8
+ readonly userData: ICustomer | null;
9
+ readonly isPro: boolean;
10
+ readonly loaded: boolean;
11
+ readonly customPriceList?: ICustomPriceItem[];
12
+ readonly fetchCustomPrices: boolean;
13
+ readonly setLoaded: (value: boolean) => void;
14
+ readonly setUserLoggedIn: (userData: ICustomer) => void;
15
+ readonly setUserLoggedOut: (keepRepCart?: boolean) => Promise<void>;
16
+ readonly saveUser: (customer: ICustomer) => Promise<boolean>;
17
+ readonly deleteUser: () => Promise<boolean>;
18
+ readonly getOrder: (order_id: string, token?: string) => Promise<IOrder | string>;
19
+ readonly changePassword: (currentPassword: string, newPassword: string) => Promise<string>;
20
+ readonly changeProfilePicture: (base64?: string) => Promise<string>;
21
+ readonly setUserPreferedStore: (storeId: string) => Promise<void>;
22
+ readonly setCustomPriceList: (list: ICustomPriceItem[]) => void;
23
+ readonly getPromiseToPurchaseHistory: (userId?: string, filters?: {
24
+ bankTypeId?: string;
25
+ unixDateRange?: QueryDateRangeEnum;
26
+ }) => Promise<IIndexedBankUsed[] | undefined>;
27
+ readonly getPromiseToPurchaseRemainingAmounts: (userId?: string) => Promise<{
28
+ [bankID: string]: IRemainingBankAmount[];
29
+ } | undefined>;
30
+ }
31
+ export declare const getDefaultUserContext: () => {
32
+ isUserLoggedIn: boolean;
33
+ userData: null;
34
+ isPro: boolean;
35
+ loaded: boolean;
36
+ fetchCustomPrices: boolean;
37
+ setLoaded: (_value: boolean) => void;
38
+ setUserLoggedIn: (_userData: ICustomer) => void;
39
+ setUserLoggedOut: (_keepRepCart?: boolean) => Promise<void>;
40
+ saveUser: (_customer: ICustomer) => Promise<boolean>;
41
+ deleteUser: () => Promise<boolean>;
42
+ getOrder: (_order_id: string) => Promise<string>;
43
+ changePassword: (_pass: string) => Promise<string>;
44
+ changeProfilePicture: (_base64?: string) => Promise<string>;
45
+ setUserPreferedStore: (_storeId: string) => Promise<void>;
46
+ setCustomPriceList: (_list: ICustomPriceItem[]) => void;
47
+ getPromiseToPurchaseHistory: (_userId?: string, _filters?: {
48
+ bankTypeId?: string;
49
+ unixDateRange?: QueryDateRangeEnum;
50
+ }) => Promise<undefined>;
51
+ getPromiseToPurchaseRemainingAmounts: (_userId?: string) => Promise<undefined>;
52
+ };
53
+ declare const UserContext: import("react").Context<IUserContext>;
54
+ export default UserContext;
@@ -1,83 +1,83 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
- function verb(n) { return function (v) { return step([n, v]); }; }
15
- function step(op) {
16
- if (f) throw new TypeError("Generator is already executing.");
17
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
- if (y = 0, t) op = [op[0] & 2, t.value];
20
- switch (op[0]) {
21
- case 0: case 1: t = op; break;
22
- case 4: _.label++; return { value: op[1], done: false };
23
- case 5: _.label++; y = op[1]; op = [0]; continue;
24
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
- default:
26
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
- if (t[2]) _.ops.pop();
31
- _.trys.pop(); continue;
32
- }
33
- op = body.call(thisArg, _);
34
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
- }
37
- };
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.getDefaultUserContext = void 0;
40
- var react_1 = require("react");
41
- var getDefaultUserContext = function () {
42
- return {
43
- isUserLoggedIn: false,
44
- userData: null,
45
- isPro: false,
46
- loaded: false,
47
- fetchCustomPrices: false,
48
- setLoaded: function (_value) { },
49
- setUserLoggedIn: function (_userData) { },
50
- setUserLoggedOut: function (_keepRepCart) { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
51
- return [2];
52
- }); }); },
53
- saveUser: function (_customer) { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
54
- return [2, true];
55
- }); }); },
56
- deleteUser: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
57
- return [2, false];
58
- }); }); },
59
- getOrder: function (_order_id) { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
60
- return [2, ''];
61
- }); }); },
62
- changePassword: function (_pass) { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
63
- return [2, ''];
64
- }); }); },
65
- changeProfilePicture: function (_base64) { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
66
- return [2, ''];
67
- }); }); },
68
- setUserPreferedStore: function (_storeId) { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
69
- return [2];
70
- }); }); },
71
- setCustomPriceList: function (_list) { },
72
- getPromiseToPurchaseHistory: function (_userId, _filters) { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
73
- return [2, undefined];
74
- }); }); },
75
- getPromiseToPurchaseRemainingAmounts: function (_userId) { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
76
- return [2, undefined];
77
- }); }); }
78
- };
79
- };
80
- exports.getDefaultUserContext = getDefaultUserContext;
81
- var UserContext = (0, react_1.createContext)((0, exports.getDefaultUserContext)());
82
- exports.default = UserContext;
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __generator = (this && this.__generator) || function (thisArg, body) {
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
+ function verb(n) { return function (v) { return step([n, v]); }; }
15
+ function step(op) {
16
+ if (f) throw new TypeError("Generator is already executing.");
17
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
+ if (y = 0, t) op = [op[0] & 2, t.value];
20
+ switch (op[0]) {
21
+ case 0: case 1: t = op; break;
22
+ case 4: _.label++; return { value: op[1], done: false };
23
+ case 5: _.label++; y = op[1]; op = [0]; continue;
24
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
+ default:
26
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
+ if (t[2]) _.ops.pop();
31
+ _.trys.pop(); continue;
32
+ }
33
+ op = body.call(thisArg, _);
34
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
+ }
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.getDefaultUserContext = void 0;
40
+ var react_1 = require("react");
41
+ var getDefaultUserContext = function () {
42
+ return {
43
+ isUserLoggedIn: false,
44
+ userData: null,
45
+ isPro: false,
46
+ loaded: false,
47
+ fetchCustomPrices: false,
48
+ setLoaded: function (_value) { },
49
+ setUserLoggedIn: function (_userData) { },
50
+ setUserLoggedOut: function (_keepRepCart) { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
51
+ return [2];
52
+ }); }); },
53
+ saveUser: function (_customer) { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
54
+ return [2, true];
55
+ }); }); },
56
+ deleteUser: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
57
+ return [2, false];
58
+ }); }); },
59
+ getOrder: function (_order_id) { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
60
+ return [2, ''];
61
+ }); }); },
62
+ changePassword: function (_pass) { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
63
+ return [2, ''];
64
+ }); }); },
65
+ changeProfilePicture: function (_base64) { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
66
+ return [2, ''];
67
+ }); }); },
68
+ setUserPreferedStore: function (_storeId) { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
69
+ return [2];
70
+ }); }); },
71
+ setCustomPriceList: function (_list) { },
72
+ getPromiseToPurchaseHistory: function (_userId, _filters) { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
73
+ return [2, undefined];
74
+ }); }); },
75
+ getPromiseToPurchaseRemainingAmounts: function (_userId) { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
76
+ return [2, undefined];
77
+ }); }); }
78
+ };
79
+ };
80
+ exports.getDefaultUserContext = getDefaultUserContext;
81
+ var UserContext = (0, react_1.createContext)((0, exports.getDefaultUserContext)());
82
+ exports.default = UserContext;
83
83
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
2
- interface IProps {
3
- readonly children: JSX.Element;
4
- }
5
- export default function WishlistContextProvider({ children }: IProps): JSX.Element;
6
- export {};
1
+ /// <reference types="react" />
2
+ interface IProps {
3
+ readonly children: JSX.Element;
4
+ }
5
+ export default function WishlistContextProvider({ children }: IProps): JSX.Element;
6
+ export {};