oneentry 1.0.45 → 1.0.46
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/dist/base/oneEntry.js +6 -1
- package/dist/file-uploding/fileUploadingApi.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/README.md +0 -3643
package/dist/base/oneEntry.js
CHANGED
|
@@ -6,7 +6,12 @@ class OneEntry {
|
|
|
6
6
|
this._token = config.token;
|
|
7
7
|
this._defaultLangCode = config.langCode ? config.langCode : 'en_US';
|
|
8
8
|
this._NO_FETCH = !!(typeof process === 'object' && process.versions);
|
|
9
|
-
|
|
9
|
+
try {
|
|
10
|
+
this._https = this._NO_FETCH ? require('https') : null;
|
|
11
|
+
}
|
|
12
|
+
catch (e) {
|
|
13
|
+
this._https = null;
|
|
14
|
+
}
|
|
10
15
|
}
|
|
11
16
|
_getFullPath(path) {
|
|
12
17
|
return (this._url + path);
|
|
@@ -22,7 +22,7 @@ export default class FileUploadingApi extends OneEntry implements IFileUploading
|
|
|
22
22
|
*
|
|
23
23
|
* @returns Uploads a file to an Amazon S3-compatible cloud file storage
|
|
24
24
|
*/
|
|
25
|
-
upload(data: File |
|
|
25
|
+
upload(data: File | Blob, fileQuery?: IUploadingQuery): Promise<IUploadingReturns>;
|
|
26
26
|
/**
|
|
27
27
|
* Deletes a file from the cloud file storage.
|
|
28
28
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import ProductStatusesApi from "./product-statuses/productStatusesApi";
|
|
|
4
4
|
import TemplatesApi from "./templates/templatesApi";
|
|
5
5
|
import TemplatePreviewsApi from "./templates-preview/templatesPreviewApi";
|
|
6
6
|
import AdminsApi from "./admins/adminsApi";
|
|
7
|
-
import GeneralTypesApi from "./general-types/
|
|
7
|
+
import GeneralTypesApi from "./general-types/generalTypesApi";
|
|
8
8
|
import LocalesApi from "./locales/localesApi";
|
|
9
9
|
import MenusApi from "./menus/menusApi";
|
|
10
10
|
import FormsApi from "./forms/formsApi";
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ const productStatusesApi_1 = require("./product-statuses/productStatusesApi");
|
|
|
7
7
|
const templatesApi_1 = require("./templates/templatesApi");
|
|
8
8
|
const templatesPreviewApi_1 = require("./templates-preview/templatesPreviewApi");
|
|
9
9
|
const adminsApi_1 = require("./admins/adminsApi");
|
|
10
|
-
const
|
|
10
|
+
const generalTypesApi_1 = require("./general-types/generalTypesApi");
|
|
11
11
|
const localesApi_1 = require("./locales/localesApi");
|
|
12
12
|
const menusApi_1 = require("./menus/menusApi");
|
|
13
13
|
const formsApi_1 = require("./forms/formsApi");
|
|
@@ -32,7 +32,7 @@ function defineOneEntry(url, config) {
|
|
|
32
32
|
const FileUploading = new fileUploadingApi_1.default(url, config);
|
|
33
33
|
const Forms = new formsApi_1.default(url, config);
|
|
34
34
|
const FormData = new formsDataApi_1.default(url, config);
|
|
35
|
-
const GeneralTypes = new
|
|
35
|
+
const GeneralTypes = new generalTypesApi_1.default(url, config);
|
|
36
36
|
const Locales = new localesApi_1.default(url, config);
|
|
37
37
|
const Markers = new markersApi_1.default(url, config);
|
|
38
38
|
const Menus = new menusApi_1.default(url, config);
|