addio-ecomm-sdk 1.3.36 → 1.3.37

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 +1813 -1808
  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 +973 -973
  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 +299 -299
  16. package/dist/lib/constants/contexts/DataContext/index.d.ts +40 -40
  17. package/dist/lib/constants/contexts/DataContext/index.js +66 -66
  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 +195 -195
  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 +14 -14
  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 +125 -125
package/dist/index.d.ts CHANGED
@@ -1,202 +1,203 @@
1
- import Wishlist from './lib/models/wishlist';
2
- import StockNotification from './lib/models/stockNotification';
3
- import { SearchResponse } from '@algolia/client-search';
4
- import IEndpointResult from './utils/interfaces/IEndpointResult';
5
- import IOrder from 'addio-admin-sdk/dist/Interfaces/Order';
6
- import ICustomer from 'addio-admin-sdk/dist/Interfaces/Customer';
7
- import ISpaceData from './utils/interfaces/ISpaceData';
8
- import IWishlist from 'addio-admin-sdk/dist/Interfaces/Wishlist';
9
- import IStockNotification from 'addio-admin-sdk/dist/Interfaces/StockNotification';
10
- import { IIndexedProductAlgolia } from 'addio-admin-sdk/dist/Interfaces/Algolia';
11
- import IIndexedLastSavedProduct from 'addio-admin-sdk/dist/Interfaces/Indexed/Product/IIndexedLastSavedProduct';
12
- import IIndexedProduct from 'addio-admin-sdk/dist/Interfaces/Indexed/Product';
13
- import ICart, { IProductUpsell } from 'addio-admin-sdk/dist/Interfaces/Cart';
14
- import ISDKConfig from './utils/interfaces/ISDKConfig';
15
- import ICategory from 'addio-admin-sdk/dist/Interfaces/Category';
16
- import IInventoryItem from 'addio-admin-sdk/dist/Interfaces/Product/IInventoryItem';
17
- import IBrand from 'addio-admin-sdk/dist/Interfaces/Brand';
18
- import IPreMeetingFormEmail from 'addio-admin-sdk/dist/Interfaces/Email/CustomGR/IPreMeetingFormEmail';
19
- import IWishlistEmail from 'addio-admin-sdk/dist/Interfaces/Email/CustomGR/IWishlistEmail';
20
- import ISponsorRequestEmail from 'addio-admin-sdk/dist/Interfaces/Email/CustomGR/ISponsorRequestEmail';
21
- import { ICustomPriceItem } from 'addio-admin-sdk/dist/Interfaces/G2';
22
- import { IFixedPromoBanner } from 'addio-admin-sdk/dist/Interfaces/Space';
23
- import IAddress from 'addio-admin-sdk/dist/Interfaces/Address';
24
- import { ICustomerGroup } from 'addio-admin-sdk/dist/Interfaces/Space';
25
- export default class SDK {
26
- private _api;
27
- private _imgPath;
28
- private _token;
29
- private _url;
30
- private _org;
31
- private _userToken;
32
- private _storeData;
33
- private _wishlist;
34
- private _stockNotif;
35
- constructor();
36
- init: (sdk_config: ISDKConfig) => Promise<void>;
37
- getAPIInfos: () => {
38
- api: string;
39
- token: string;
40
- userToken: string;
41
- org: string;
42
- };
43
- getSDKOrgInitials: () => string;
44
- initWishlist: (wishlist: IWishlist) => Promise<Wishlist | undefined>;
45
- initStockNotif: (stockNotif: IStockNotification) => Promise<StockNotification | undefined>;
46
- initStoreData: (defaultData?: ISpaceData) => Promise<ISpaceData | undefined>;
47
- shouldShowFixedPromoBanner: (fixedPromoBannerData: IFixedPromoBanner) => boolean;
48
- private getInventoryItem;
49
- private getFullInventory;
50
- inventory: {
51
- getFullInventory: (locale: string) => Promise<IInventoryItem[] | undefined>;
52
- getInventoryItem: (sku: string, locale: string) => Promise<IInventoryItem | undefined>;
53
- };
54
- setUserToken: (token: string) => void;
55
- private loginUserWithFacebook;
56
- private anonymousResetPassword;
57
- private loginUser;
58
- private loginUserWithID;
59
- private checkG2ForCustomer;
60
- private createProCustomer;
61
- private fetchCustomPriceList;
62
- private validateAccount;
63
- private logout;
64
- private registerUser;
65
- private getUser;
66
- private saveUser;
67
- private deleteUser;
68
- private getOrders;
69
- private killRepCart;
70
- private getOrder;
71
- private changeProfilePicture;
72
- private changePassword;
73
- private sendResetPasswordEmail;
74
- sendApplicationEmail: (locale: string, form: any) => Promise<any>;
75
- sendContactEmail: (locale: string, form: any) => Promise<any>;
76
- sendGenericOtherEmail: (locale: string, form: any, templateId: string, to: string, replyTo?: string) => Promise<any>;
77
- sendServicePageEmail: (locale: string, form: any, type: string, testEmail?: string) => Promise<string | true | import("addio-admin-sdk/dist/utils/string").default | {
78
- status: number;
79
- error: {
80
- fr: string;
81
- en: string;
82
- };
83
- } | undefined>;
84
- sendSponsorRequestEmail: (locale: string, form: ISponsorRequestEmail, template_name: string) => Promise<string | true | import("addio-admin-sdk/dist/utils/string").default | undefined>;
85
- sendPreMeetingFormEmail: (locale: string, form: IPreMeetingFormEmail, proId?: string) => Promise<string | true | import("addio-admin-sdk/dist/utils/string").default | undefined>;
86
- sendWishlistByEmail: (locale: string, contenu: IWishlistEmail, template_name: string) => Promise<string | true | import("addio-admin-sdk/dist/utils/string").default | undefined>;
87
- private resetPassword;
88
- user: {
89
- getUser: (keepTempHash?: boolean) => Promise<ICustomer>;
90
- saveUser: (userData: ICustomer) => Promise<boolean>;
91
- deleteUser: () => Promise<boolean>;
92
- loginUser: (locale: string, email: string, password: string, keepCart?: boolean, isClerk?: boolean) => Promise<{
93
- cart: ICart | null;
94
- userData: ICustomer;
95
- } | string>;
96
- loginUserWithID: (locale: string, id: string, password: string, keepCart?: boolean, isClerk?: boolean) => Promise<{
97
- cart: ICart;
98
- userData: ICustomer;
99
- } | string>;
100
- loginUserWithFacebook: (fb: any) => Promise<{
101
- cart: ICart | null;
102
- userData: ICustomer;
103
- } | string>;
104
- logout: () => void;
105
- registerUser: (locale: string, userData: ICustomer, password: string) => Promise<IEndpointResult>;
106
- killRepCart: (hashed_cart_id: string) => Promise<boolean | "">;
107
- getOrder: (orderID: string, token?: string) => Promise<string | IOrder>;
108
- getOrders: (lastID?: string, iteration?: number) => Promise<ICart[] | string>;
109
- changePassword: (currentPassword: string, newPassword: string) => Promise<any>;
110
- changeProfilePicture: (file?: string) => Promise<any>;
111
- validateAccount: (code: string) => Promise<ICustomer>;
112
- sendResetPasswordEmail: (locale: string, userEmail: string, forPro?: boolean, withEmail?: boolean, isTest?: boolean) => Promise<any>;
113
- resetPassword: (token: string, newPassword: string, withEmail?: boolean) => Promise<any>;
114
- sendApplicationEmail: (locale: string, form: any) => Promise<any>;
115
- sendContactEmail: (locale: string, form: any) => Promise<any>;
116
- sendServiceEmail: (locale: string, form: any, type: string, testEmail?: string) => Promise<string | true | import("addio-admin-sdk/dist/utils/string").default | {
117
- status: number;
118
- error: {
119
- fr: string;
120
- en: string;
121
- };
122
- } | undefined>;
123
- anonymousResetPassword: (locale: string, id: string, oldPassword: string, newPassword: string, confirmPassword: string) => Promise<IEndpointResult>;
124
- checkG2: (id: string, currentCustomer?: ICustomer, customerGroups?: ICustomerGroup[]) => Promise<ICustomer | undefined>;
125
- createPro: (customer: ICustomer) => Promise<any>;
126
- fetchCustomPriceList: (customerID: string, isPA?: boolean) => Promise<any>;
127
- };
128
- getImage: (imgName: string, formatQuery?: string, addImgPath?: boolean) => string;
129
- private getProducts;
130
- private getProduct;
131
- private getUpsellOfProducts;
132
- private getAttributes;
133
- private getCategories;
134
- private getBrands;
135
- private getInventoryItems;
136
- private getOneInventoryItem;
137
- getLatestProducts: () => Promise<IIndexedLastSavedProduct[] | undefined>;
138
- private _getFees;
139
- products: {
140
- getProducts: (page?: number, hpp?: number, query?: string, filters?: string, indice?: string, f?: string, useProspr?: boolean) => Promise<SearchResponse<IIndexedProductAlgolia>>;
141
- getProduct: (parent_slug: string, locale: string, useProdArray?: IIndexedProduct[], noDrafts?: boolean) => Promise<IIndexedProduct | undefined>;
142
- getUpsellOfProducts: (slugs: string[], customPriceList?: ICustomPriceItem[]) => Promise<{
143
- upsell: IProductUpsell;
144
- prod: IIndexedProduct;
145
- }[]>;
146
- getAttributes: () => Promise<{
147
- slug: string;
148
- id?: string | undefined;
149
- name: import("addio-admin-sdk/dist/Interfaces/Translation").default[];
150
- values: import("addio-admin-sdk/dist/Interfaces/Attribute").IAttributeValue[];
151
- description: string;
152
- type?: import("addio-admin-sdk/dist/Interfaces/Attribute").AttributeTypeEnum | undefined;
153
- is_facet: boolean;
154
- is_searchable: boolean;
155
- is_multiple: boolean;
156
- is_service_related?: boolean | undefined;
157
- has_price_rules?: boolean | undefined;
158
- draft?: boolean | undefined;
159
- prefix?: string | undefined;
160
- suffix?: string | undefined;
161
- show_in_cart?: boolean | undefined;
162
- service_related_name?: string | undefined;
163
- service_links_to_attribute?: {
164
- readonly value_slugs: {
165
- readonly slug: string;
166
- readonly percent_variation?: number | undefined;
167
- }[];
168
- readonly service_field: string;
169
- }[] | undefined;
170
- }[] | undefined>;
171
- getCategories: () => Promise<ICategory[] | undefined>;
172
- getBrands: () => Promise<IBrand[] | undefined>;
173
- getInventoryItems: (parentSlug: string) => Promise<IInventoryItem[] | undefined>;
174
- getOneInventoryItem: (sku: string) => Promise<IInventoryItem | undefined>;
175
- getLatestProducts: () => Promise<IIndexedLastSavedProduct[] | undefined>;
176
- getFees: () => Promise<IIndexedProduct[] | undefined>;
177
- };
178
- getIfAddressIsInsideZones: (address: IAddress | string) => Promise<string[]>;
179
- private _pricingByQuery;
180
- private _buyFromForm;
181
- private _getSearchServices;
182
- services: {
183
- pricingByQuery: (query: string) => Promise<any>;
184
- buy: {
185
- fromForm: (form: any) => Promise<boolean>;
186
- };
187
- searchServices: () => Promise<any>;
188
- };
189
- private _getAllCatalogues;
190
- private _getCatalogueBySlug;
191
- catalogues: {
192
- getAll: (locale: string) => Promise<any>;
193
- getOne: (slug: string, locale: string) => Promise<any>;
194
- };
195
- saveCustomerToMailchimpList: (customerEmail: string, listID: string, mergeFields?: {
196
- [key: string]: any;
197
- } | undefined, tags?: {
198
- name: string;
199
- status: string;
200
- }[]) => Promise<boolean>;
201
- getProductListForSitemap: () => Promise<any>;
202
- }
1
+ import Wishlist from './lib/models/wishlist';
2
+ import StockNotification from './lib/models/stockNotification';
3
+ import { SearchResponse } from '@algolia/client-search';
4
+ import IEndpointResult from './utils/interfaces/IEndpointResult';
5
+ import IOrder from 'addio-admin-sdk/dist/Interfaces/Order';
6
+ import ICustomer from 'addio-admin-sdk/dist/Interfaces/Customer';
7
+ import ISpaceData from './utils/interfaces/ISpaceData';
8
+ import IWishlist from 'addio-admin-sdk/dist/Interfaces/Wishlist';
9
+ import IStockNotification from 'addio-admin-sdk/dist/Interfaces/StockNotification';
10
+ import { IIndexedProductAlgolia } from 'addio-admin-sdk/dist/Interfaces/Algolia';
11
+ import IIndexedLastSavedProduct from 'addio-admin-sdk/dist/Interfaces/Indexed/Product/IIndexedLastSavedProduct';
12
+ import IIndexedProduct from 'addio-admin-sdk/dist/Interfaces/Indexed/Product';
13
+ import ICart, { IProductUpsell } from 'addio-admin-sdk/dist/Interfaces/Cart';
14
+ import ISDKConfig from './utils/interfaces/ISDKConfig';
15
+ import ICategory from 'addio-admin-sdk/dist/Interfaces/Category';
16
+ import IInventoryItem from 'addio-admin-sdk/dist/Interfaces/Product/IInventoryItem';
17
+ import IBrand from 'addio-admin-sdk/dist/Interfaces/Brand';
18
+ import IPreMeetingFormEmail from 'addio-admin-sdk/dist/Interfaces/Email/CustomGR/IPreMeetingFormEmail';
19
+ import IWishlistEmail from 'addio-admin-sdk/dist/Interfaces/Email/CustomGR/IWishlistEmail';
20
+ import ISponsorRequestEmail from 'addio-admin-sdk/dist/Interfaces/Email/CustomGR/ISponsorRequestEmail';
21
+ import { ICustomPriceItem } from 'addio-admin-sdk/dist/Interfaces/G2';
22
+ import { IFixedPromoBanner } from 'addio-admin-sdk/dist/Interfaces/Space';
23
+ import IAddress from 'addio-admin-sdk/dist/Interfaces/Address';
24
+ import { ICustomerGroup } from 'addio-admin-sdk/dist/Interfaces/Space';
25
+ import { LogType } from 'addio-admin-sdk/dist/services/logs';
26
+ export default class SDK {
27
+ private _api;
28
+ private _imgPath;
29
+ private _token;
30
+ private _url;
31
+ private _org;
32
+ private _userToken;
33
+ private _storeData;
34
+ private _wishlist;
35
+ private _stockNotif;
36
+ constructor();
37
+ init: (sdk_config: ISDKConfig) => Promise<void>;
38
+ getAPIInfos: () => {
39
+ api: string;
40
+ token: string;
41
+ userToken: string;
42
+ org: string;
43
+ };
44
+ getSDKOrgInitials: () => string;
45
+ initWishlist: (wishlist: IWishlist) => Promise<Wishlist | undefined>;
46
+ initStockNotif: (stockNotif: IStockNotification) => Promise<StockNotification | undefined>;
47
+ initStoreData: (defaultData?: ISpaceData) => Promise<ISpaceData | undefined>;
48
+ shouldShowFixedPromoBanner: (fixedPromoBannerData: IFixedPromoBanner) => boolean;
49
+ private getInventoryItem;
50
+ private getFullInventory;
51
+ inventory: {
52
+ getFullInventory: (locale: string) => Promise<IInventoryItem[] | undefined>;
53
+ getInventoryItem: (sku: string, locale: string) => Promise<IInventoryItem | undefined>;
54
+ };
55
+ setUserToken: (token: string) => void;
56
+ private loginUserWithFacebook;
57
+ private anonymousResetPassword;
58
+ private loginUser;
59
+ private loginUserWithID;
60
+ private checkG2ForCustomer;
61
+ private createProCustomer;
62
+ private fetchCustomPriceList;
63
+ private validateAccount;
64
+ private logout;
65
+ private registerUser;
66
+ private getUser;
67
+ private saveUser;
68
+ private deleteUser;
69
+ private getOrders;
70
+ private killRepCart;
71
+ private getOrder;
72
+ private changeProfilePicture;
73
+ private changePassword;
74
+ private sendResetPasswordEmail;
75
+ sendApplicationEmail: (locale: string, form: any) => Promise<any>;
76
+ sendContactEmail: (locale: string, form: any) => Promise<any>;
77
+ sendGenericOtherEmail: (locale: string, form: any, templateId: string, to: string, replyTo?: string) => Promise<any>;
78
+ sendServicePageEmail: (locale: string, form: any, type: string, testEmail?: string) => Promise<string | true | import("addio-admin-sdk/dist/utils/string").default | {
79
+ status: number;
80
+ error: {
81
+ fr: string;
82
+ en: string;
83
+ };
84
+ } | undefined>;
85
+ sendSponsorRequestEmail: (locale: string, form: ISponsorRequestEmail, template_name: string) => Promise<string | true | import("addio-admin-sdk/dist/utils/string").default | undefined>;
86
+ sendPreMeetingFormEmail: (locale: string, form: IPreMeetingFormEmail, proId?: string) => Promise<string | true | import("addio-admin-sdk/dist/utils/string").default | undefined>;
87
+ sendWishlistByEmail: (locale: string, contenu: IWishlistEmail, template_name: string) => Promise<string | true | import("addio-admin-sdk/dist/utils/string").default | undefined>;
88
+ private resetPassword;
89
+ user: {
90
+ getUser: (keepTempHash?: boolean) => Promise<ICustomer>;
91
+ saveUser: (userData: ICustomer) => Promise<boolean>;
92
+ deleteUser: () => Promise<boolean>;
93
+ loginUser: (locale: string, email: string, password: string, keepCart?: boolean, isClerk?: boolean) => Promise<{
94
+ cart: ICart | null;
95
+ userData: ICustomer;
96
+ } | string>;
97
+ loginUserWithID: (locale: string, id: string, password: string, keepCart?: boolean, isClerk?: boolean) => Promise<{
98
+ cart: ICart;
99
+ userData: ICustomer;
100
+ } | string>;
101
+ loginUserWithFacebook: (fb: any) => Promise<{
102
+ cart: ICart | null;
103
+ userData: ICustomer;
104
+ } | string>;
105
+ logout: () => void;
106
+ registerUser: (locale: string, userData: ICustomer, password: string) => Promise<IEndpointResult>;
107
+ killRepCart: (hashed_cart_id: string) => Promise<boolean | "">;
108
+ getOrder: (orderID: string, token?: string) => Promise<string | IOrder>;
109
+ getOrders: (lastID?: string, iteration?: number) => Promise<ICart[] | string>;
110
+ changePassword: (currentPassword: string, newPassword: string) => Promise<any>;
111
+ changeProfilePicture: (file?: string) => Promise<any>;
112
+ validateAccount: (code: string) => Promise<ICustomer>;
113
+ sendResetPasswordEmail: (locale: string, userEmail: string, forPro?: boolean, withEmail?: boolean, isTest?: boolean) => Promise<any>;
114
+ resetPassword: (token: string, newPassword: string, withEmail?: boolean) => Promise<any>;
115
+ sendApplicationEmail: (locale: string, form: any) => Promise<any>;
116
+ sendContactEmail: (locale: string, form: any) => Promise<any>;
117
+ sendServiceEmail: (locale: string, form: any, type: string, testEmail?: string) => Promise<string | true | import("addio-admin-sdk/dist/utils/string").default | {
118
+ status: number;
119
+ error: {
120
+ fr: string;
121
+ en: string;
122
+ };
123
+ } | undefined>;
124
+ anonymousResetPassword: (locale: string, id: string, oldPassword: string, newPassword: string, confirmPassword: string) => Promise<IEndpointResult>;
125
+ checkG2: (id: string, currentCustomer?: ICustomer, customerGroups?: ICustomerGroup[]) => Promise<ICustomer | undefined>;
126
+ createPro: (customer: ICustomer) => Promise<any>;
127
+ fetchCustomPriceList: (customerID: string, isPA?: boolean) => Promise<any>;
128
+ };
129
+ getImage: (imgName: string, formatQuery?: string, addImgPath?: boolean) => string;
130
+ private getProducts;
131
+ private getProduct;
132
+ private getUpsellOfProducts;
133
+ private getAttributes;
134
+ private getCategories;
135
+ private getBrands;
136
+ private getInventoryItems;
137
+ private getOneInventoryItem;
138
+ getLatestProducts: () => Promise<IIndexedLastSavedProduct[] | undefined>;
139
+ private _getFees;
140
+ products: {
141
+ getProducts: (page?: number, hpp?: number, query?: string, filters?: string, indice?: string, f?: string, useProspr?: boolean) => Promise<SearchResponse<IIndexedProductAlgolia>>;
142
+ getProduct: (parent_slug: string, locale: string, useProdArray?: IIndexedProduct[], noDrafts?: boolean) => Promise<IIndexedProduct | undefined>;
143
+ getUpsellOfProducts: (slugs: string[], customPriceList?: ICustomPriceItem[]) => Promise<{
144
+ upsell: IProductUpsell;
145
+ prod: IIndexedProduct;
146
+ }[]>;
147
+ getAttributes: () => Promise<{
148
+ slug: string;
149
+ id?: string | undefined;
150
+ name: import("addio-admin-sdk/dist/Interfaces/Translation").default[];
151
+ values: import("addio-admin-sdk/dist/Interfaces/Attribute").IAttributeValue[];
152
+ description: string;
153
+ type?: import("addio-admin-sdk/dist/Interfaces/Attribute").AttributeTypeEnum | undefined;
154
+ is_facet: boolean;
155
+ is_searchable: boolean;
156
+ is_multiple: boolean;
157
+ is_service_related?: boolean | undefined;
158
+ has_price_rules?: boolean | undefined;
159
+ draft?: boolean | undefined;
160
+ prefix?: string | undefined;
161
+ suffix?: string | undefined;
162
+ show_in_cart?: boolean | undefined;
163
+ service_related_name?: string | undefined;
164
+ service_links_to_attribute?: {
165
+ readonly value_slugs: {
166
+ readonly slug: string;
167
+ readonly percent_variation?: number | undefined;
168
+ }[];
169
+ readonly service_field: string;
170
+ }[] | undefined;
171
+ }[] | undefined>;
172
+ getCategories: () => Promise<ICategory[] | undefined>;
173
+ getBrands: () => Promise<IBrand[] | undefined>;
174
+ getInventoryItems: (parentSlug: string) => Promise<IInventoryItem[] | undefined>;
175
+ getOneInventoryItem: (sku: string) => Promise<IInventoryItem | undefined>;
176
+ getLatestProducts: () => Promise<IIndexedLastSavedProduct[] | undefined>;
177
+ getFees: () => Promise<IIndexedProduct[] | undefined>;
178
+ };
179
+ getIfAddressIsInsideZones: (address: IAddress | string, customLogCallback?: ((message: string, type?: LogType, logLocalToo?: boolean) => Promise<void>) | undefined) => Promise<string[]>;
180
+ private _pricingByQuery;
181
+ private _buyFromForm;
182
+ private _getSearchServices;
183
+ services: {
184
+ pricingByQuery: (query: string) => Promise<any>;
185
+ buy: {
186
+ fromForm: (form: any) => Promise<boolean>;
187
+ };
188
+ searchServices: () => Promise<any>;
189
+ };
190
+ private _getAllCatalogues;
191
+ private _getCatalogueBySlug;
192
+ catalogues: {
193
+ getAll: (locale: string) => Promise<any>;
194
+ getOne: (slug: string, locale: string) => Promise<any>;
195
+ };
196
+ saveCustomerToMailchimpList: (customerEmail: string, listID: string, mergeFields?: {
197
+ [key: string]: any;
198
+ } | undefined, tags?: {
199
+ name: string;
200
+ status: string;
201
+ }[]) => Promise<boolean>;
202
+ getProductListForSitemap: () => Promise<any>;
203
+ }