oneentry 1.0.152 → 1.0.153
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/changelog.md +12 -0
- package/dist/admins/adminsApi.d.ts +2 -1
- package/dist/admins/adminsApi.js +2 -1
- package/dist/admins/adminsInterfaces.d.ts +1 -1
- package/dist/attribute-sets/attributeSetsApi.d.ts +4 -0
- package/dist/attribute-sets/attributeSetsApi.js +4 -0
- package/dist/auth-provider/authProviderApi.d.ts +14 -1
- package/dist/auth-provider/authProviderApi.js +14 -1
- package/dist/base/asyncModules.d.ts +11 -0
- package/dist/base/asyncModules.js +19 -0
- package/dist/blocks/blocksApi.d.ts +34 -1
- package/dist/blocks/blocksApi.js +69 -62
- package/dist/discounts/discountsApi.d.ts +5 -0
- package/dist/discounts/discountsApi.js +5 -0
- package/dist/events/eventsApi.d.ts +7 -0
- package/dist/events/eventsApi.js +11 -28
- package/dist/file-uploading/fileUploadingApi.d.ts +4 -1
- package/dist/file-uploading/fileUploadingApi.js +4 -1
- package/dist/file-uploading/fileUploadingInterfaces.d.ts +1 -1
- package/dist/filters/filtersApi.d.ts +1 -0
- package/dist/filters/filtersApi.js +1 -0
- package/dist/forms/formsApi.d.ts +2 -0
- package/dist/forms/formsApi.js +2 -0
- package/dist/forms-data/formsDataApi.d.ts +5 -0
- package/dist/forms-data/formsDataApi.js +5 -0
- package/dist/general-types/generalTypesApi.d.ts +1 -0
- package/dist/general-types/generalTypesApi.js +1 -0
- package/dist/integration-collections/integrationCollectionsApi.d.ts +10 -1
- package/dist/integration-collections/integrationCollectionsApi.js +10 -1
- package/dist/integration-collections/integrationCollectionsInterfaces.d.ts +1 -1
- package/dist/locales/localesApi.d.ts +1 -0
- package/dist/locales/localesApi.js +1 -0
- package/dist/menus/menusApi.d.ts +1 -0
- package/dist/menus/menusApi.js +1 -0
- package/dist/orders/ordersApi.d.ts +25 -1
- package/dist/orders/ordersApi.js +36 -12
- package/dist/orders/ordersInterfaces.d.ts +4 -2
- package/dist/pages/pagesApi.d.ts +9 -0
- package/dist/pages/pagesApi.js +33 -38
- package/dist/pages/pagesInterfaces.d.ts +5 -0
- package/dist/payments/paymentsApi.d.ts +6 -0
- package/dist/payments/paymentsApi.js +6 -0
- package/dist/product-statuses/productStatusesApi.d.ts +3 -0
- package/dist/product-statuses/productStatusesApi.js +3 -0
- package/dist/products/productsApi.d.ts +14 -0
- package/dist/products/productsApi.js +14 -0
- package/dist/products/productsInterfaces.d.ts +2 -2
- package/dist/sitemap/sitemapApi.d.ts +2 -0
- package/dist/sitemap/sitemapApi.js +2 -0
- package/dist/subscriptions/subscriptionsApi.d.ts +5 -0
- package/dist/subscriptions/subscriptionsApi.js +7 -14
- package/dist/system/systemApi.d.ts +3 -0
- package/dist/system/systemApi.js +3 -0
- package/dist/templates/templatesApi.d.ts +3 -0
- package/dist/templates/templatesApi.js +3 -0
- package/dist/templates-preview/templatesPreviewApi.d.ts +2 -0
- package/dist/templates-preview/templatesPreviewApi.js +2 -0
- package/dist/user-activity/userActivityApi.d.ts +1 -0
- package/dist/user-activity/userActivityApi.js +1 -0
- package/dist/users/usersApi.d.ts +14 -0
- package/dist/users/usersApi.js +14 -0
- package/dist/web-socket/wsApi.d.ts +1 -1
- package/dist/web-socket/wsApi.js +1 -1
- package/package.json +1 -1
package/dist/users/usersApi.js
CHANGED
|
@@ -28,6 +28,7 @@ class UsersApi extends asyncModules_1.default {
|
|
|
28
28
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
29
29
|
* @description This method requires user authorization.
|
|
30
30
|
* @see For more information about configuring the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider authorization module}, see the documentation in the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider configuration settings section of the SDK}.
|
|
31
|
+
* @see {@link https://js-sdk.oneentry.cloud/docs/users/getUser getUser} documentation.
|
|
31
32
|
*/
|
|
32
33
|
async getUser(langCode = this.state.lang) {
|
|
33
34
|
const result = await this._fetchGet(`/me?langCode=${langCode}`);
|
|
@@ -109,6 +110,7 @@ class UsersApi extends asyncModules_1.default {
|
|
|
109
110
|
* @description This method updates the user's data. This method requires user authorization.
|
|
110
111
|
* @see For more information about configuring the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider authorization module}, see the documentation in the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider configuration settings section of the SDK}.
|
|
111
112
|
* @see For more information about {@link https://doc.oneentry.cloud/docs/forms/create-form registration forms}, see the documentation in the {@link https://doc.oneentry.cloud/docs/forms/create-form forms configuration section}.
|
|
113
|
+
* @see {@link https://js-sdk.oneentry.cloud/docs/users/updateUser updateUser} documentation.
|
|
112
114
|
*/
|
|
113
115
|
async updateUser(body, langCode = this.state.lang) {
|
|
114
116
|
if (!('langCode' in body))
|
|
@@ -124,6 +126,7 @@ class UsersApi extends asyncModules_1.default {
|
|
|
124
126
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
125
127
|
* @description This method archives a user object (marks it for deletion). This method requires user authorization.
|
|
126
128
|
* @see For more information about configuring the {@link https://js-sdk.oneentry.cloud/docs/auth-provider/authprovider authorization module}, see the documentation in the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider configuration settings section of the SDK}.
|
|
129
|
+
* @see {@link https://js-sdk.oneentry.cloud/docs/users/archiveUser archiveUser} documentation.
|
|
127
130
|
*/
|
|
128
131
|
async archiveUser() {
|
|
129
132
|
const result = await this._fetchDelete('/me');
|
|
@@ -136,6 +139,7 @@ class UsersApi extends asyncModules_1.default {
|
|
|
136
139
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
137
140
|
* @description This method deletes the user from the system. This method requires user authorization.
|
|
138
141
|
* @see For more information about configuring the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider authorization module}, see the documentation in the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider configuration settings section of the SDK}.
|
|
142
|
+
* @see {@link https://js-sdk.oneentry.cloud/docs/users/deleteUser deleteUser} documentation.
|
|
139
143
|
*/
|
|
140
144
|
async deleteUser() {
|
|
141
145
|
const result = await this._fetchDelete('/me/account');
|
|
@@ -149,6 +153,7 @@ class UsersApi extends asyncModules_1.default {
|
|
|
149
153
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
150
154
|
* @description This method adds an FCM token for sending push notifications. This method requires user authorization.
|
|
151
155
|
* @see For more information about configuring the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider authorization module}, see the documentation in the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider configuration settings section of the SDK}.
|
|
156
|
+
* @see {@link https://js-sdk.oneentry.cloud/docs/users/addFCMToken addFCMToken} documentation.
|
|
152
157
|
*/
|
|
153
158
|
async addFCMToken(token) {
|
|
154
159
|
const result = await this._fetchPost(`/me/fcm-token/${token}`);
|
|
@@ -162,6 +167,7 @@ class UsersApi extends asyncModules_1.default {
|
|
|
162
167
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
163
168
|
* @description This method deletes an existing FCM token. This method requires user authorization.
|
|
164
169
|
* @see For more information about configuring the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider authorization module}, see the documentation in the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider configuration settings section of the SDK}.
|
|
170
|
+
* @see {@link https://js-sdk.oneentry.cloud/docs/users/deleteFCMToken deleteFCMToken} documentation.
|
|
165
171
|
*/
|
|
166
172
|
async deleteFCMToken(token) {
|
|
167
173
|
const result = await this._fetchDelete(`/me/fcm-token/${token}`);
|
|
@@ -174,6 +180,7 @@ class UsersApi extends asyncModules_1.default {
|
|
|
174
180
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
175
181
|
* @description This method requires user authorization (or a guest context).
|
|
176
182
|
* @see For more information about configuring the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider authorization module}, see the documentation in the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider configuration settings section of the SDK}.
|
|
183
|
+
* @see {@link https://js-sdk.oneentry.cloud/docs/users/getCart getCart} documentation.
|
|
177
184
|
*/
|
|
178
185
|
async getCart() {
|
|
179
186
|
const result = await this._fetchGet('/me/cart');
|
|
@@ -188,6 +195,7 @@ class UsersApi extends asyncModules_1.default {
|
|
|
188
195
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
189
196
|
* @description This method requires user authorization (or a guest context).
|
|
190
197
|
* @see For more information about configuring the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider authorization module}, see the documentation in the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider configuration settings section of the SDK}.
|
|
198
|
+
* @see {@link https://js-sdk.oneentry.cloud/docs/users/setCart setCart} documentation.
|
|
191
199
|
*/
|
|
192
200
|
async setCart(body) {
|
|
193
201
|
const result = await this._fetchPut('/me/cart', body);
|
|
@@ -202,6 +210,7 @@ class UsersApi extends asyncModules_1.default {
|
|
|
202
210
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
203
211
|
* @description This method requires user authorization (or a guest context).
|
|
204
212
|
* @see For more information about configuring the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider authorization module}, see the documentation in the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider configuration settings section of the SDK}.
|
|
213
|
+
* @see {@link https://js-sdk.oneentry.cloud/docs/users/addCartItem addCartItem} documentation.
|
|
205
214
|
*/
|
|
206
215
|
async addCartItem(body) {
|
|
207
216
|
const result = await this._fetchPost('/me/cart/items', body);
|
|
@@ -216,6 +225,7 @@ class UsersApi extends asyncModules_1.default {
|
|
|
216
225
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
217
226
|
* @description This method requires user authorization (or a guest context).
|
|
218
227
|
* @see For more information about configuring the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider authorization module}, see the documentation in the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider configuration settings section of the SDK}.
|
|
228
|
+
* @see {@link https://js-sdk.oneentry.cloud/docs/users/removeCartItem removeCartItem} documentation.
|
|
219
229
|
*/
|
|
220
230
|
async removeCartItem(productId) {
|
|
221
231
|
const result = await this._fetchDelete(`/me/cart/items/${productId}`);
|
|
@@ -229,6 +239,7 @@ class UsersApi extends asyncModules_1.default {
|
|
|
229
239
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
230
240
|
* @description This method requires user authorization (or a guest context).
|
|
231
241
|
* @see For more information about configuring the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider authorization module}, see the documentation in the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider configuration settings section of the SDK}.
|
|
242
|
+
* @see {@link https://js-sdk.oneentry.cloud/docs/users/getWishlist getWishlist} documentation.
|
|
232
243
|
*/
|
|
233
244
|
async getWishlist() {
|
|
234
245
|
const result = await this._fetchGet('/me/wishlist');
|
|
@@ -243,6 +254,7 @@ class UsersApi extends asyncModules_1.default {
|
|
|
243
254
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
244
255
|
* @description This method requires user authorization (or a guest context).
|
|
245
256
|
* @see For more information about configuring the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider authorization module}, see the documentation in the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider configuration settings section of the SDK}.
|
|
257
|
+
* @see {@link https://js-sdk.oneentry.cloud/docs/users/setWishlist setWishlist} documentation.
|
|
246
258
|
*/
|
|
247
259
|
async setWishlist(body) {
|
|
248
260
|
const result = await this._fetchPut('/me/wishlist', body);
|
|
@@ -257,6 +269,7 @@ class UsersApi extends asyncModules_1.default {
|
|
|
257
269
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
258
270
|
* @description This method requires user authorization (or a guest context).
|
|
259
271
|
* @see For more information about configuring the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider authorization module}, see the documentation in the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider configuration settings section of the SDK}.
|
|
272
|
+
* @see {@link https://js-sdk.oneentry.cloud/docs/users/addWishlistItem addWishlistItem} documentation.
|
|
260
273
|
*/
|
|
261
274
|
async addWishlistItem(body) {
|
|
262
275
|
const result = await this._fetchPost('/me/wishlist/items', body);
|
|
@@ -271,6 +284,7 @@ class UsersApi extends asyncModules_1.default {
|
|
|
271
284
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
272
285
|
* @description This method requires user authorization (or a guest context).
|
|
273
286
|
* @see For more information about configuring the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider authorization module}, see the documentation in the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider configuration settings section of the SDK}.
|
|
287
|
+
* @see {@link https://js-sdk.oneentry.cloud/docs/users/removeWishlistItem removeWishlistItem} documentation.
|
|
274
288
|
*/
|
|
275
289
|
async removeWishlistItem(productId) {
|
|
276
290
|
const result = await this._fetchDelete(`/me/wishlist/items/${productId}`);
|
|
@@ -19,7 +19,7 @@ export default class WsApi extends AsyncModules implements IWS {
|
|
|
19
19
|
* @handleName connect
|
|
20
20
|
* @returns {Socket} Returns a Socket instance.
|
|
21
21
|
* @description Creates an instance of an object Socket.io with a connection. This method requires user authorization.
|
|
22
|
-
* @see
|
|
22
|
+
* @see {@link https://js-sdk.oneentry.cloud/docs/web-socket/connect connect} documentation.
|
|
23
23
|
*/
|
|
24
24
|
connect(): Socket;
|
|
25
25
|
}
|
package/dist/web-socket/wsApi.js
CHANGED
|
@@ -23,7 +23,7 @@ class WsApi extends asyncModules_1.default {
|
|
|
23
23
|
* @handleName connect
|
|
24
24
|
* @returns {Socket} Returns a Socket instance.
|
|
25
25
|
* @description Creates an instance of an object Socket.io with a connection. This method requires user authorization.
|
|
26
|
-
* @see
|
|
26
|
+
* @see {@link https://js-sdk.oneentry.cloud/docs/web-socket/connect connect} documentation.
|
|
27
27
|
*/
|
|
28
28
|
connect() {
|
|
29
29
|
if (!this.state.accessToken) {
|