@bisondesk/commons-sdk 1.0.55 → 1.0.57

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bisondesk/commons-sdk",
3
- "version": "1.0.55",
3
+ "version": "1.0.57",
4
4
  "scripts": {
5
5
  "build": "npx tsc --build",
6
6
  "clean": "rm -rf lib *.tsbuildinfo",
@@ -786,7 +786,7 @@
786
786
  "signature": "3b02517f9be71f255eadab9892406055d069167891f1e1ea16c96c4ff1ddda01",
787
787
  "affectsGlobalScope": false
788
788
  },
789
- "../../node_modules/@types/express/index.d.ts": {
789
+ "../../node_modules/@types/cookies/node_modules/@types/express/index.d.ts": {
790
790
  "version": "3b05c396564e51753e921e1cc4aae1cf7cd9be53c891cf2e81fa29f11c0bd373",
791
791
  "signature": "3b05c396564e51753e921e1cc4aae1cf7cd9be53c891cf2e81fa29f11c0bd373",
792
792
  "affectsGlobalScope": false
@@ -796,6 +796,11 @@
796
796
  "signature": "00574a8bdd163e2888014e23e7b1c42a24cecdf11c0ca2181e2de0541a3b4514",
797
797
  "affectsGlobalScope": false
798
798
  },
799
+ "../../node_modules/@types/express/index.d.ts": {
800
+ "version": "15c88bfd1b8dc7231ff828ae8df5d955bae5ebca4cf2bcb417af5821e52299ae",
801
+ "signature": "15c88bfd1b8dc7231ff828ae8df5d955bae5ebca4cf2bcb417af5821e52299ae",
802
+ "affectsGlobalScope": false
803
+ },
799
804
  "../../node_modules/@types/graceful-fs/index.d.ts": {
800
805
  "version": "3ebae8c00411116a66fca65b08228ea0cf0b72724701f9b854442100aab55aba",
801
806
  "signature": "3ebae8c00411116a66fca65b08228ea0cf0b72724701f9b854442100aab55aba",
@@ -1328,11 +1333,17 @@
1328
1333
  ],
1329
1334
  "../../node_modules/@types/cookies/index.d.ts": [
1330
1335
  "../../node_modules/@types/connect/index.d.ts",
1331
- "../../node_modules/@types/express/index.d.ts",
1336
+ "../../node_modules/@types/cookies/node_modules/@types/express/index.d.ts",
1332
1337
  "../../node_modules/@types/keygrip/index.d.ts",
1333
1338
  "../../node_modules/@types/node/http.d.ts",
1334
1339
  "../../node_modules/@types/node/index.d.ts"
1335
1340
  ],
1341
+ "../../node_modules/@types/cookies/node_modules/@types/express/index.d.ts": [
1342
+ "../../node_modules/@types/body-parser/index.d.ts",
1343
+ "../../node_modules/@types/express-serve-static-core/index.d.ts",
1344
+ "../../node_modules/@types/qs/index.d.ts",
1345
+ "../../node_modules/@types/serve-static/index.d.ts"
1346
+ ],
1336
1347
  "../../node_modules/@types/express-serve-static-core/index.d.ts": [
1337
1348
  "../../node_modules/@types/node/events.d.ts",
1338
1349
  "../../node_modules/@types/node/http.d.ts",
@@ -2117,11 +2128,17 @@
2117
2128
  ],
2118
2129
  "../../node_modules/@types/cookies/index.d.ts": [
2119
2130
  "../../node_modules/@types/connect/index.d.ts",
2120
- "../../node_modules/@types/express/index.d.ts",
2131
+ "../../node_modules/@types/cookies/node_modules/@types/express/index.d.ts",
2121
2132
  "../../node_modules/@types/keygrip/index.d.ts",
2122
2133
  "../../node_modules/@types/node/http.d.ts",
2123
2134
  "../../node_modules/@types/node/index.d.ts"
2124
2135
  ],
2136
+ "../../node_modules/@types/cookies/node_modules/@types/express/index.d.ts": [
2137
+ "../../node_modules/@types/body-parser/index.d.ts",
2138
+ "../../node_modules/@types/express-serve-static-core/index.d.ts",
2139
+ "../../node_modules/@types/qs/index.d.ts",
2140
+ "../../node_modules/@types/serve-static/index.d.ts"
2141
+ ],
2125
2142
  "../../node_modules/@types/express-serve-static-core/index.d.ts": [
2126
2143
  "../../node_modules/@types/node/events.d.ts",
2127
2144
  "../../node_modules/@types/node/http.d.ts",
@@ -2744,6 +2761,7 @@
2744
2761
  "../../node_modules/@types/content-disposition/index.d.ts",
2745
2762
  "../../node_modules/@types/cookiejar/index.d.ts",
2746
2763
  "../../node_modules/@types/cookies/index.d.ts",
2764
+ "../../node_modules/@types/cookies/node_modules/@types/express/index.d.ts",
2747
2765
  "../../node_modules/@types/express-serve-static-core/index.d.ts",
2748
2766
  "../../node_modules/@types/express/index.d.ts",
2749
2767
  "../../node_modules/@types/graceful-fs/index.d.ts",
package/src/constants.js DELETED
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SUPPORTED_LANGUAGES = exports.AppRoles = void 0;
4
- //
5
- // STATIC ROLES
6
- //
7
- var AppRoles;
8
- (function (AppRoles) {
9
- AppRoles["Accountant"] = "accountant";
10
- AppRoles["Admin"] = "admins";
11
- AppRoles["Administrative"] = "administrative";
12
- AppRoles["Commercial"] = "commercial";
13
- AppRoles["Manager"] = "manager";
14
- })(AppRoles = exports.AppRoles || (exports.AppRoles = {}));
15
- //
16
- // I18N
17
- //
18
- exports.SUPPORTED_LANGUAGES = ['en', 'fr', 'nl'];
package/src/hyperdms.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
package/src/ids.js DELETED
@@ -1,35 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.generateId = exports.Alphabet = void 0;
4
- const nanoid_1 = require("nanoid");
5
- var Alphabet;
6
- (function (Alphabet) {
7
- Alphabet["Full"] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_";
8
- Alphabet["Alphanumeric"] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
9
- Alphabet["Lowercase"] = "abcdefghijklmnopqrstuvwxyz";
10
- Alphabet["LowerAlphanumeric"] = "0123456789abcdefghijklmnopqrstuvwxyz";
11
- })(Alphabet = exports.Alphabet || (exports.Alphabet = {}));
12
- // The ID can contain only alphabets and numbers and underscore.
13
- // The ID should start with an alphabet and should not have two consecutive underscores or end with an underscore.
14
- const generateId = (idLength = 15, alphabet = Alphabet.Full) => {
15
- const nanoid = nanoid_1.customAlphabet(alphabet, idLength);
16
- while (true) {
17
- const id = nanoid();
18
- if (isValid(id)) {
19
- return id;
20
- }
21
- }
22
- };
23
- exports.generateId = generateId;
24
- const isValid = (id) => {
25
- if (!Number.isNaN(Number.parseInt(id[0]))) {
26
- return false;
27
- }
28
- if (id.endsWith('_') || id.startsWith('_')) {
29
- return false;
30
- }
31
- if (id.includes('__')) {
32
- return false;
33
- }
34
- return true;
35
- };
package/src/types.js DELETED
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Region = void 0;
4
- var Region;
5
- (function (Region) {
6
- Region["euWest1"] = "eu-west-1";
7
- })(Region = exports.Region || (exports.Region = {}));