addio-ecomm-sdk 1.3.62 → 1.3.64

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