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.
- package/.vscode/settings.json +34 -34
- package/README.md +79 -79
- package/dist/index.d.ts +202 -201
- package/dist/index.js +1818 -1795
- package/dist/index.js.map +1 -1
- package/dist/lib/constants/components/CreditCardInput.d.ts +11 -11
- package/dist/lib/constants/components/CreditCardInput.js +79 -79
- package/dist/lib/constants/components/Snackbar.d.ts +11 -11
- package/dist/lib/constants/components/Snackbar.js +39 -39
- package/dist/lib/constants/components/Snackbar.js.map +1 -1
- package/dist/lib/constants/contexts/CartContext/CartContextProvider.d.ts +7 -7
- package/dist/lib/constants/contexts/CartContext/CartContextProvider.js +977 -973
- package/dist/lib/constants/contexts/CartContext/CartContextProvider.js.map +1 -1
- package/dist/lib/constants/contexts/CartContext/index.d.ts +79 -79
- package/dist/lib/constants/contexts/CartContext/index.js +127 -127
- package/dist/lib/constants/contexts/CartContext/index.js.map +1 -1
- package/dist/lib/constants/contexts/DataContext/DataContextProvider.d.ts +15 -15
- package/dist/lib/constants/contexts/DataContext/DataContextProvider.js +299 -299
- package/dist/lib/constants/contexts/DataContext/index.d.ts +42 -40
- package/dist/lib/constants/contexts/DataContext/index.js +66 -66
- package/dist/lib/constants/contexts/DataContext/index.js.map +1 -1
- package/dist/lib/constants/contexts/LogContext/LogContextProvider.d.ts +6 -0
- package/dist/lib/constants/contexts/LogContext/LogContextProvider.js +104 -0
- package/dist/lib/constants/contexts/LogContext/LogContextProvider.js.map +1 -0
- package/dist/lib/constants/contexts/LogContext/index.d.ts +7 -0
- package/dist/lib/constants/contexts/LogContext/index.js +46 -0
- package/dist/lib/constants/contexts/LogContext/index.js.map +1 -0
- package/dist/lib/constants/contexts/ModalContext/ModalContextProvider.d.ts +7 -7
- package/dist/lib/constants/contexts/ModalContext/ModalContextProvider.js +76 -76
- package/dist/lib/constants/contexts/ModalContext/index.d.ts +14 -14
- package/dist/lib/constants/contexts/ModalContext/index.js +18 -18
- package/dist/lib/constants/contexts/SDKContext/SDKProvider.d.ts +8 -8
- package/dist/lib/constants/contexts/SDKContext/SDKProvider.js +79 -79
- package/dist/lib/constants/contexts/SDKContext/index.d.ts +4 -4
- package/dist/lib/constants/contexts/SDKContext/index.js +4 -4
- package/dist/lib/constants/contexts/SnackbarContext/SnackbarContext.d.ts +4 -4
- package/dist/lib/constants/contexts/SnackbarContext/SnackbarContext.js +6 -6
- package/dist/lib/constants/contexts/SnackbarContext/SnackbarContextProvider.d.ts +12 -12
- package/dist/lib/constants/contexts/SnackbarContext/SnackbarContextProvider.js +49 -52
- package/dist/lib/constants/contexts/SnackbarContext/SnackbarContextProvider.js.map +1 -1
- package/dist/lib/constants/contexts/SnackbarContext/interfaces/ISnackbarContext.d.ts +17 -17
- package/dist/lib/constants/contexts/SnackbarContext/interfaces/ISnackbarContext.js +21 -21
- package/dist/lib/constants/contexts/SnackbarContext/interfaces/ISnackbarContext.js.map +1 -1
- package/dist/lib/constants/contexts/StockNotifContext/StockNotifContextProvider.d.ts +7 -7
- package/dist/lib/constants/contexts/StockNotifContext/StockNotifContextProvider.js +179 -179
- package/dist/lib/constants/contexts/StockNotifContext/index.d.ts +10 -10
- package/dist/lib/constants/contexts/StockNotifContext/index.js +10 -10
- package/dist/lib/constants/contexts/UserContext/UserContextProvider.d.ts +5 -5
- package/dist/lib/constants/contexts/UserContext/UserContextProvider.js +470 -470
- package/dist/lib/constants/contexts/UserContext/index.d.ts +54 -54
- package/dist/lib/constants/contexts/UserContext/index.js +82 -82
- package/dist/lib/constants/contexts/WishlistContext/WishlistContextProvider.d.ts +6 -6
- package/dist/lib/constants/contexts/WishlistContext/WishlistContextProvider.js +327 -327
- package/dist/lib/constants/contexts/WishlistContext/index.d.ts +12 -12
- package/dist/lib/constants/contexts/WishlistContext/index.js +12 -12
- package/dist/lib/constants/hooks/useCart.d.ts +2 -2
- package/dist/lib/constants/hooks/useCart.js +11 -11
- package/dist/lib/constants/hooks/useData.d.ts +2 -2
- package/dist/lib/constants/hooks/useData.js +11 -11
- package/dist/lib/constants/hooks/useLogs.d.ts +2 -0
- package/dist/lib/constants/hooks/useLogs.js +12 -0
- package/dist/lib/constants/hooks/useLogs.js.map +1 -0
- package/dist/lib/constants/hooks/useModal.d.ts +2 -2
- package/dist/lib/constants/hooks/useModal.js +11 -11
- package/dist/lib/constants/hooks/useSDK.d.ts +2 -2
- package/dist/lib/constants/hooks/useSDK.js +11 -11
- package/dist/lib/constants/hooks/useSnackbar.d.ts +2 -2
- package/dist/lib/constants/hooks/useSnackbar.js +11 -11
- package/dist/lib/constants/hooks/useStockNotif.d.ts +2 -2
- package/dist/lib/constants/hooks/useStockNotif.js +11 -11
- package/dist/lib/constants/hooks/useUser.d.ts +2 -2
- package/dist/lib/constants/hooks/useUser.js +11 -11
- package/dist/lib/constants/hooks/useWishlist.d.ts +2 -2
- package/dist/lib/constants/hooks/useWishlist.js +11 -11
- package/dist/lib/models/image/index.d.ts +6 -6
- package/dist/lib/models/image/index.js +15 -15
- package/dist/lib/models/stockNotification/index.d.ts +13 -13
- package/dist/lib/models/stockNotification/index.js +130 -130
- package/dist/lib/models/wishlist/index.d.ts +14 -14
- package/dist/lib/models/wishlist/index.js +155 -155
- package/dist/utils/StripeErrors.d.ts +24 -24
- package/dist/utils/StripeErrors.js +55 -55
- package/dist/utils/algolia.d.ts +3 -3
- package/dist/utils/algolia.js +81 -81
- package/dist/utils/analytics.d.ts +71 -71
- package/dist/utils/analytics.js +257 -257
- package/dist/utils/cart.d.ts +3 -3
- package/dist/utils/cart.js +66 -66
- package/dist/utils/contentful.d.ts +10 -10
- package/dist/utils/contentful.js +136 -136
- package/dist/utils/functions.d.ts +21 -21
- package/dist/utils/functions.js +195 -195
- package/dist/utils/getSDK.d.ts +4 -4
- package/dist/utils/getSDK.js +77 -77
- package/dist/utils/initStoreData.d.ts +3 -3
- package/dist/utils/initStoreData.js +62 -62
- package/dist/utils/interfaces/IClientCMSData.d.ts +132 -132
- package/dist/utils/interfaces/IClientCMSData.js +2 -2
- package/dist/utils/interfaces/IEndpointResult.d.ts +10 -10
- package/dist/utils/interfaces/IEndpointResult.js +2 -2
- package/dist/utils/interfaces/IFacebookUserProfile.d.ts +10 -10
- package/dist/utils/interfaces/IFacebookUserProfile.js +2 -2
- package/dist/utils/interfaces/IFilter.d.ts +23 -23
- package/dist/utils/interfaces/IFilter.js +2 -2
- package/dist/utils/interfaces/IGoogleUserProfile.d.ts +7 -7
- package/dist/utils/interfaces/IGoogleUserProfile.js +2 -2
- package/dist/utils/interfaces/ISDKConfig.d.ts +7 -7
- package/dist/utils/interfaces/ISDKConfig.js +2 -2
- package/dist/utils/interfaces/ISpaceData.d.ts +14 -14
- package/dist/utils/interfaces/ISpaceData.js +2 -2
- package/dist/utils/larivieremeunier.d.ts +3 -3
- package/dist/utils/larivieremeunier.js +156 -156
- package/dist/utils/technosupply.d.ts +3 -3
- package/dist/utils/technosupply.js +155 -155
- package/package.json +60 -60
- 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
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
private
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
private
|
|
56
|
-
private
|
|
57
|
-
private
|
|
58
|
-
private
|
|
59
|
-
private
|
|
60
|
-
private
|
|
61
|
-
private
|
|
62
|
-
private
|
|
63
|
-
private
|
|
64
|
-
private
|
|
65
|
-
private
|
|
66
|
-
private
|
|
67
|
-
private
|
|
68
|
-
private
|
|
69
|
-
private
|
|
70
|
-
private
|
|
71
|
-
private
|
|
72
|
-
private
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
private
|
|
130
|
-
private
|
|
131
|
-
private
|
|
132
|
-
private
|
|
133
|
-
private
|
|
134
|
-
private
|
|
135
|
-
private
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
readonly
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
private
|
|
180
|
-
private
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
private
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
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
|
+
}
|