oneentry 1.0.141 → 1.0.142
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/configure.js +107 -15
- package/package.json +81 -3
- package/dist/admins/adminsApi.d.ts +0 -50
- package/dist/admins/adminsApi.js +0 -65
- package/dist/admins/adminsInterfaces.d.ts +0 -99
- package/dist/admins/adminsInterfaces.js +0 -2
- package/dist/admins/adminsSchemas.d.ts +0 -30
- package/dist/admins/adminsSchemas.js +0 -27
- package/dist/attribute-sets/attributeSetsApi.d.ts +0 -63
- package/dist/attribute-sets/attributeSetsApi.js +0 -98
- package/dist/attribute-sets/attributeSetsInterfaces.d.ts +0 -187
- package/dist/attribute-sets/attributeSetsInterfaces.js +0 -2
- package/dist/attribute-sets/attributeSetsSchemas.d.ts +0 -90
- package/dist/attribute-sets/attributeSetsSchemas.js +0 -74
- package/dist/auth-provider/authProviderApi.d.ts +0 -249
- package/dist/auth-provider/authProviderApi.js +0 -351
- package/dist/auth-provider/authProviderSchemas.d.ts +0 -131
- package/dist/auth-provider/authProviderSchemas.js +0 -82
- package/dist/auth-provider/authProvidersInterfaces.d.ts +0 -425
- package/dist/auth-provider/authProvidersInterfaces.js +0 -2
- package/dist/base/asyncModules.d.ts +0 -80
- package/dist/base/asyncModules.js +0 -440
- package/dist/base/result.d.ts +0 -39
- package/dist/base/result.js +0 -154
- package/dist/base/stateModule.d.ts +0 -41
- package/dist/base/stateModule.js +0 -128
- package/dist/base/syncModules.d.ts +0 -149
- package/dist/base/syncModules.js +0 -549
- package/dist/base/utils.d.ts +0 -197
- package/dist/base/utils.js +0 -2
- package/dist/base/validation.d.ts +0 -118
- package/dist/base/validation.js +0 -132
- package/dist/blocks/blocksApi.d.ts +0 -76
- package/dist/blocks/blocksApi.js +0 -188
- package/dist/blocks/blocksInterfaces.d.ts +0 -173
- package/dist/blocks/blocksInterfaces.js +0 -2
- package/dist/blocks/blocksSchemas.d.ts +0 -187
- package/dist/blocks/blocksSchemas.js +0 -43
- package/dist/discounts/discountsApi.d.ts +0 -56
- package/dist/discounts/discountsApi.js +0 -82
- package/dist/discounts/discountsInterfaces.d.ts +0 -145
- package/dist/discounts/discountsInterfaces.js +0 -2
- package/dist/events/eventsApi.d.ts +0 -60
- package/dist/events/eventsApi.js +0 -97
- package/dist/events/eventsInterfaces.d.ts +0 -87
- package/dist/events/eventsInterfaces.js +0 -2
- package/dist/file-uploading/fileUploadingApi.d.ts +0 -88
- package/dist/file-uploading/fileUploadingApi.js +0 -132
- package/dist/file-uploading/fileUploadingInterfaces.d.ts +0 -117
- package/dist/file-uploading/fileUploadingInterfaces.js +0 -2
- package/dist/file-uploading/fileUploadingSchemas.d.ts +0 -22
- package/dist/file-uploading/fileUploadingSchemas.js +0 -21
- package/dist/forms/formsApi.d.ts +0 -42
- package/dist/forms/formsApi.js +0 -57
- package/dist/forms/formsInterfaces.d.ts +0 -132
- package/dist/forms/formsInterfaces.js +0 -2
- package/dist/forms/formsSchemas.d.ts +0 -50
- package/dist/forms/formsSchemas.js +0 -31
- package/dist/forms-data/formsDataApi.d.ts +0 -106
- package/dist/forms-data/formsDataApi.js +0 -189
- package/dist/forms-data/formsDataInterfaces.d.ts +0 -525
- package/dist/forms-data/formsDataInterfaces.js +0 -2
- package/dist/forms-data/formsDataSchemas.d.ts +0 -115
- package/dist/forms-data/formsDataSchemas.js +0 -86
- package/dist/general-types/generalTypesApi.d.ts +0 -28
- package/dist/general-types/generalTypesApi.js +0 -38
- package/dist/general-types/generalTypesInterfaces.d.ts +0 -30
- package/dist/general-types/generalTypesInterfaces.js +0 -2
- package/dist/general-types/generalTypesSchemas.d.ts +0 -50
- package/dist/general-types/generalTypesSchemas.js +0 -35
- package/dist/index.d.ts +0 -100
- package/dist/index.js +0 -103
- package/dist/integration-collections/integrationCollectionsApi.d.ts +0 -173
- package/dist/integration-collections/integrationCollectionsApi.js +0 -220
- package/dist/integration-collections/integrationCollectionsInterfaces.d.ts +0 -313
- package/dist/integration-collections/integrationCollectionsInterfaces.js +0 -2
- package/dist/integration-collections/integrationCollectionsSchemas.d.ts +0 -80
- package/dist/integration-collections/integrationCollectionsSchemas.js +0 -61
- package/dist/locales/localesApi.d.ts +0 -27
- package/dist/locales/localesApi.js +0 -37
- package/dist/locales/localesInterfaces.d.ts +0 -41
- package/dist/locales/localesInterfaces.js +0 -2
- package/dist/locales/localesSchemas.d.ts +0 -32
- package/dist/locales/localesSchemas.js +0 -26
- package/dist/menus/menusApi.d.ts +0 -29
- package/dist/menus/menusApi.js +0 -39
- package/dist/menus/menusInterfaces.d.ts +0 -88
- package/dist/menus/menusInterfaces.js +0 -4
- package/dist/menus/menusSchemas.d.ts +0 -16
- package/dist/menus/menusSchemas.js +0 -28
- package/dist/orders/ordersApi.d.ts +0 -149
- package/dist/orders/ordersApi.js +0 -203
- package/dist/orders/ordersInterfaces.d.ts +0 -527
- package/dist/orders/ordersInterfaces.js +0 -2
- package/dist/orders/ordersSchemas.d.ts +0 -120
- package/dist/orders/ordersSchemas.js +0 -101
- package/dist/pages/pagesApi.d.ts +0 -151
- package/dist/pages/pagesApi.js +0 -390
- package/dist/pages/pagesInterfaces.d.ts +0 -292
- package/dist/pages/pagesInterfaces.js +0 -2
- package/dist/pages/pagesSchemas.d.ts +0 -85
- package/dist/pages/pagesSchemas.js +0 -46
- package/dist/payments/paymentsApi.d.ts +0 -82
- package/dist/payments/paymentsApi.js +0 -121
- package/dist/payments/paymentsInterfaces.d.ts +0 -206
- package/dist/payments/paymentsInterfaces.js +0 -2
- package/dist/payments/paymentsSchemas.d.ts +0 -100
- package/dist/payments/paymentsSchemas.js +0 -65
- package/dist/product-statuses/productStatusesApi.d.ts +0 -47
- package/dist/product-statuses/productStatusesApi.js +0 -70
- package/dist/product-statuses/productStatusesInterfaces.d.ts +0 -66
- package/dist/product-statuses/productStatusesInterfaces.js +0 -2
- package/dist/product-statuses/productStatusesSchemas.d.ts +0 -34
- package/dist/product-statuses/productStatusesSchemas.js +0 -30
- package/dist/products/productsApi.d.ts +0 -365
- package/dist/products/productsApi.js +0 -459
- package/dist/products/productsInterfaces.d.ts +0 -586
- package/dist/products/productsInterfaces.js +0 -2
- package/dist/products/productsSchemas.d.ts +0 -192
- package/dist/products/productsSchemas.js +0 -96
- package/dist/sitemap/sitemapApi.d.ts +0 -35
- package/dist/sitemap/sitemapApi.js +0 -45
- package/dist/sitemap/sitemapInterfaces.d.ts +0 -40
- package/dist/sitemap/sitemapInterfaces.js +0 -2
- package/dist/system/systemApi.d.ts +0 -43
- package/dist/system/systemApi.js +0 -58
- package/dist/system/systemInterfaces.d.ts +0 -31
- package/dist/system/systemInterfaces.js +0 -5
- package/dist/templates/templatesApi.d.ts +0 -49
- package/dist/templates/templatesApi.js +0 -75
- package/dist/templates/templatesInterfaces.d.ts +0 -70
- package/dist/templates/templatesInterfaces.js +0 -2
- package/dist/templates/templatesSchemas.d.ts +0 -48
- package/dist/templates/templatesSchemas.js +0 -31
- package/dist/templates-preview/templatesPreviewApi.d.ts +0 -38
- package/dist/templates-preview/templatesPreviewApi.js +0 -53
- package/dist/templates-preview/templatesPreviewInterfaces.d.ts +0 -121
- package/dist/templates-preview/templatesPreviewInterfaces.js +0 -2
- package/dist/templates-preview/templatesPreviewSchemas.d.ts +0 -83
- package/dist/templates-preview/templatesPreviewSchemas.js +0 -48
- package/dist/users/usersApi.d.ts +0 -143
- package/dist/users/usersApi.js +0 -173
- package/dist/users/usersInterfaces.d.ts +0 -235
- package/dist/users/usersInterfaces.js +0 -2
- package/dist/users/usersSchemas.d.ts +0 -38
- package/dist/users/usersSchemas.js +0 -28
- package/dist/web-socket/wsApi.d.ts +0 -25
- package/dist/web-socket/wsApi.js +0 -45
- package/dist/web-socket/wsInterfaces.d.ts +0 -17
- package/dist/web-socket/wsInterfaces.js +0 -2
package/dist/web-socket/wsApi.js
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const socket_io_client_1 = require("socket.io-client");
|
|
7
|
-
const asyncModules_1 = __importDefault(require("../base/asyncModules"));
|
|
8
|
-
/**
|
|
9
|
-
* Controllers for working with users
|
|
10
|
-
* @handle /api/content/ws
|
|
11
|
-
*/
|
|
12
|
-
class WsApi extends asyncModules_1.default {
|
|
13
|
-
/**
|
|
14
|
-
* Constructor
|
|
15
|
-
* @param {StateModule} state - StateModule
|
|
16
|
-
*/
|
|
17
|
-
constructor(state) {
|
|
18
|
-
super(state);
|
|
19
|
-
this._url = state.url + '/api/content/ws';
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Creates an instance of an object Socket.io with a connection.
|
|
23
|
-
* @handleName connect
|
|
24
|
-
* @returns {Socket} Returns a Socket instance.
|
|
25
|
-
* @description Creates an instance of an object Socket.io with a connection. This method requires user authorization.
|
|
26
|
-
* @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}.
|
|
27
|
-
*/
|
|
28
|
-
connect() {
|
|
29
|
-
if (!this.state.accessToken) {
|
|
30
|
-
// eslint-disable-next-line no-undef, no-console
|
|
31
|
-
console.error('User is unauthorized');
|
|
32
|
-
}
|
|
33
|
-
const socket = (0, socket_io_client_1.io)(this.state.url, {
|
|
34
|
-
autoConnect: true,
|
|
35
|
-
path: '/api/content/ws',
|
|
36
|
-
transports: ['websocket'],
|
|
37
|
-
extraHeaders: {
|
|
38
|
-
Authorization: 'Bearer ' + this.state.accessToken,
|
|
39
|
-
'x-app-token': this.state.token,
|
|
40
|
-
},
|
|
41
|
-
});
|
|
42
|
-
return socket;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
exports.default = WsApi;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { Socket } from 'socket.io-client';
|
|
2
|
-
/**
|
|
3
|
-
* @interface IWS
|
|
4
|
-
* @property {Function} connect - WebSocket Connection.
|
|
5
|
-
* @description This interface defines a method for establishing a WebSocket connection.
|
|
6
|
-
*/
|
|
7
|
-
interface IWS {
|
|
8
|
-
/**
|
|
9
|
-
* Creates an instance of an object Socket.io with a connection.
|
|
10
|
-
* @handleName connect
|
|
11
|
-
* @returns {Socket} Returns a Socket instance.
|
|
12
|
-
* @description Creates an instance of an object Socket.io with a connection. This method requires user authorization.
|
|
13
|
-
* @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}.
|
|
14
|
-
*/
|
|
15
|
-
connect(): Socket;
|
|
16
|
-
}
|
|
17
|
-
export type { IWS };
|