@nomalism-com/api 0.8.158 → 0.8.160
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/modules/documentManagement/index.js +6 -5
- package/dist/modules/integration/index.js +6 -5
- package/dist/modules/print/index.js +6 -5
- package/dist/modules/stock/index.js +6 -5
- package/dist/modules/tickets/index.js +6 -5
- package/dist/modules/user/index.js +6 -5
- package/dist/modules/view/index.js +5 -4
- package/dist/shared/client.d.ts +2 -0
- package/dist/shared/client.js +9 -1
- package/package.json +9 -9
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.servicePublicPath = exports.serviceAuthPath = exports.serviceHostname = void 0;
|
|
4
|
-
|
|
4
|
+
var client_1 = require("../../shared/client");
|
|
5
|
+
exports.serviceHostname = client_1.processEnvironment === 'development'
|
|
5
6
|
? process.env.REACT_APP_DOCUMENT_MANAGEMENT_URL
|
|
6
|
-
:
|
|
7
|
-
var serviceJwtPath =
|
|
8
|
-
var serviceApiKeyPath =
|
|
7
|
+
: client_1.REACT_APP_API_GATEWAY_URL;
|
|
8
|
+
var serviceJwtPath = client_1.processEnvironment === 'development' ? '/' : 'documents/auth/';
|
|
9
|
+
var serviceApiKeyPath = client_1.processEnvironment === 'development' ? '/' : 'documents/apikey/';
|
|
9
10
|
exports.serviceAuthPath = process.env.REACT_APP_API_KEY
|
|
10
11
|
? serviceApiKeyPath
|
|
11
12
|
: serviceJwtPath;
|
|
12
|
-
exports.servicePublicPath =
|
|
13
|
+
exports.servicePublicPath = client_1.processEnvironment === 'development' ? '/' : 'documents/public/';
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.servicePublicPath = exports.serviceAuthPath = exports.serviceHostname = void 0;
|
|
4
|
-
|
|
4
|
+
var client_1 = require("../../shared/client");
|
|
5
|
+
exports.serviceHostname = client_1.processEnvironment === 'development'
|
|
5
6
|
? process.env.REACT_APP_INTEGRATION_URL
|
|
6
|
-
:
|
|
7
|
-
var serviceJwtPath =
|
|
8
|
-
var serviceApiKeyPath =
|
|
7
|
+
: client_1.REACT_APP_API_GATEWAY_URL;
|
|
8
|
+
var serviceJwtPath = client_1.processEnvironment === 'development' ? '/' : 'integration/auth/';
|
|
9
|
+
var serviceApiKeyPath = client_1.processEnvironment === 'development' ? '/' : 'integration/apikey/';
|
|
9
10
|
exports.serviceAuthPath = process.env.REACT_APP_API_KEY
|
|
10
11
|
? serviceApiKeyPath
|
|
11
12
|
: serviceJwtPath;
|
|
12
|
-
exports.servicePublicPath =
|
|
13
|
+
exports.servicePublicPath = client_1.processEnvironment === 'development' ? '/' : 'integration/public/';
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.serviceApiKeyPath = exports.servicePublicPath = exports.serviceAuthPath = exports.serviceHostname = void 0;
|
|
4
|
-
|
|
4
|
+
var client_1 = require("../../shared/client");
|
|
5
|
+
exports.serviceHostname = client_1.processEnvironment === 'development'
|
|
5
6
|
? process.env.REACT_APP_PRINT_URL
|
|
6
|
-
:
|
|
7
|
-
exports.serviceAuthPath =
|
|
8
|
-
exports.servicePublicPath =
|
|
9
|
-
exports.serviceApiKeyPath =
|
|
7
|
+
: client_1.REACT_APP_API_GATEWAY_URL;
|
|
8
|
+
exports.serviceAuthPath = client_1.processEnvironment === 'development' ? '/' : 'print/auth/';
|
|
9
|
+
exports.servicePublicPath = client_1.processEnvironment === 'development' ? '/' : 'print/public/';
|
|
10
|
+
exports.serviceApiKeyPath = client_1.processEnvironment === 'development' ? '/' : 'print/apikey/';
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.servicePublicPath = exports.serviceAuthPath = exports.serviceHostname = void 0;
|
|
4
|
-
|
|
4
|
+
var client_1 = require("../../shared/client");
|
|
5
|
+
exports.serviceHostname = client_1.processEnvironment === 'development'
|
|
5
6
|
? process.env.REACT_APP_STOCK_URL
|
|
6
|
-
:
|
|
7
|
-
var serviceJwtPath =
|
|
8
|
-
var serviceApiKeyPath =
|
|
7
|
+
: client_1.REACT_APP_API_GATEWAY_URL;
|
|
8
|
+
var serviceJwtPath = client_1.processEnvironment === 'development' ? '/' : 'stock/auth/';
|
|
9
|
+
var serviceApiKeyPath = client_1.processEnvironment === 'development' ? '/' : 'stock/apikey/';
|
|
9
10
|
exports.serviceAuthPath = process.env.REACT_APP_API_KEY
|
|
10
11
|
? serviceApiKeyPath
|
|
11
12
|
: serviceJwtPath;
|
|
12
|
-
exports.servicePublicPath =
|
|
13
|
+
exports.servicePublicPath = client_1.processEnvironment === 'development' ? '/' : 'stock/public/';
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.servicePublicPath = exports.serviceAuthPath = exports.serviceHostname = void 0;
|
|
4
|
-
|
|
4
|
+
var client_1 = require("../../shared/client");
|
|
5
|
+
exports.serviceHostname = client_1.processEnvironment === 'development'
|
|
5
6
|
? process.env.REACT_APP_TICKETS_URL
|
|
6
|
-
:
|
|
7
|
-
var serviceJwtPath =
|
|
8
|
-
var serviceApiKeyPath =
|
|
7
|
+
: client_1.REACT_APP_API_GATEWAY_URL;
|
|
8
|
+
var serviceJwtPath = client_1.processEnvironment === 'development' ? '/' : 'tickets/auth/';
|
|
9
|
+
var serviceApiKeyPath = client_1.processEnvironment === 'development' ? '/' : 'tickets/apikey/';
|
|
9
10
|
exports.serviceAuthPath = process.env.REACT_APP_API_KEY
|
|
10
11
|
? serviceApiKeyPath
|
|
11
12
|
: serviceJwtPath;
|
|
12
|
-
exports.servicePublicPath =
|
|
13
|
+
exports.servicePublicPath = client_1.processEnvironment === 'development' ? '/' : 'tickets/public/';
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.servicePublicPath = exports.serviceAuthPath = exports.serviceHostname = void 0;
|
|
4
|
-
|
|
4
|
+
var client_1 = require("../../shared/client");
|
|
5
|
+
exports.serviceHostname = client_1.processEnvironment === 'development'
|
|
5
6
|
? process.env.REACT_APP_USER_URL
|
|
6
|
-
:
|
|
7
|
-
var serviceJwtPath =
|
|
8
|
-
var serviceApiKeyPath =
|
|
7
|
+
: client_1.REACT_APP_API_GATEWAY_URL;
|
|
8
|
+
var serviceJwtPath = client_1.processEnvironment === 'development' ? '/' : 'users/auth/';
|
|
9
|
+
var serviceApiKeyPath = client_1.processEnvironment === 'development' ? '/' : 'users/apikey/';
|
|
9
10
|
exports.serviceAuthPath = process.env.REACT_APP_API_KEY
|
|
10
11
|
? serviceApiKeyPath
|
|
11
12
|
: serviceJwtPath;
|
|
12
|
-
exports.servicePublicPath =
|
|
13
|
+
exports.servicePublicPath = client_1.processEnvironment === 'development' ? '/' : 'users/public/';
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.serviceAuthPath = exports.serviceHostname = void 0;
|
|
4
|
-
|
|
4
|
+
var client_1 = require("../../shared/client");
|
|
5
|
+
exports.serviceHostname = client_1.processEnvironment === 'development'
|
|
5
6
|
? process.env.REACT_APP_VIEW_URL
|
|
6
|
-
:
|
|
7
|
-
var serviceJwtPath =
|
|
8
|
-
var serviceApiKeyPath =
|
|
7
|
+
: client_1.REACT_APP_API_GATEWAY_URL;
|
|
8
|
+
var serviceJwtPath = client_1.processEnvironment === 'development' ? '/' : 'view/auth/';
|
|
9
|
+
var serviceApiKeyPath = client_1.processEnvironment === 'development' ? '/' : 'view/apikey/';
|
|
9
10
|
exports.serviceAuthPath = process.env.REACT_APP_API_KEY
|
|
10
11
|
? serviceApiKeyPath
|
|
11
12
|
: serviceJwtPath;
|
package/dist/shared/client.d.ts
CHANGED
package/dist/shared/client.js
CHANGED
|
@@ -14,8 +14,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.REACT_APP_API_GATEWAY_URL = exports.processEnvironment = void 0;
|
|
17
18
|
var axios_1 = __importDefault(require("axios"));
|
|
18
|
-
exports.
|
|
19
|
+
exports.processEnvironment = process.env.REACT_APP_ENV || process.env.NODE_ENV || 'development';
|
|
20
|
+
var PROCESS_REACT_APP_API_GATEWAY_URL = {
|
|
21
|
+
production: process.env.REACT_APP_API_GATEWAY_URL_PROD,
|
|
22
|
+
uat: process.env.REACT_APP_API_GATEWAY_URL_UAT,
|
|
23
|
+
development: process.env.REACT_APP_API_GATEWAY_URL_DEV,
|
|
24
|
+
};
|
|
25
|
+
exports.REACT_APP_API_GATEWAY_URL = PROCESS_REACT_APP_API_GATEWAY_URL[exports.processEnvironment];
|
|
26
|
+
exports.default = axios_1.default.create(__assign({ baseURL: exports.REACT_APP_API_GATEWAY_URL }, (process.env.REACT_APP_API_KEY
|
|
19
27
|
? {
|
|
20
28
|
headers: {
|
|
21
29
|
apikey: process.env.REACT_APP_API_KEY,
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"typescript",
|
|
10
10
|
"helper"
|
|
11
11
|
],
|
|
12
|
-
"version": "0.8.
|
|
12
|
+
"version": "0.8.160",
|
|
13
13
|
"main": "dist/index.js",
|
|
14
14
|
"types": "./dist/index.d.ts",
|
|
15
15
|
"files": [
|
|
@@ -32,23 +32,23 @@
|
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/convert-units": "^2.3.5",
|
|
35
|
-
"@types/node": "^18.15.
|
|
36
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
37
|
-
"@typescript-eslint/parser": "^5.
|
|
35
|
+
"@types/node": "^18.15.5",
|
|
36
|
+
"@typescript-eslint/eslint-plugin": "^5.56.0",
|
|
37
|
+
"@typescript-eslint/parser": "^5.56.0",
|
|
38
38
|
"concurrently": "^7.6.0",
|
|
39
39
|
"eslint": "^8.36.0",
|
|
40
40
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
41
|
-
"eslint-config-prettier": "^8.
|
|
41
|
+
"eslint-config-prettier": "^8.8.0",
|
|
42
42
|
"eslint-import-resolver-typescript": "^3.5.3",
|
|
43
43
|
"eslint-plugin-import": "^2.27.5",
|
|
44
44
|
"eslint-plugin-prettier": "^4.2.1",
|
|
45
|
-
"prettier": "^2.8.
|
|
46
|
-
"tsx": "^3.12.
|
|
45
|
+
"prettier": "^2.8.6",
|
|
46
|
+
"tsx": "^3.12.6",
|
|
47
47
|
"typescript": "^5.0.2"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@nomalism-com/api": "^0.8.
|
|
51
|
-
"@nomalism-com/types": "^0.9.
|
|
50
|
+
"@nomalism-com/api": "^0.8.159",
|
|
51
|
+
"@nomalism-com/types": "^0.9.190",
|
|
52
52
|
"axios": "^0.27.2"
|
|
53
53
|
}
|
|
54
54
|
}
|