@yuno-payments/dashboard-api-mfe 0.34.5 → 0.34.19
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/README.md +9 -17
- package/build/cjs/index.js +7 -7
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/types/api/api.d.ts +5 -0
- package/build/cjs/types/msw/mocks/insights/overview/overview-metrics.mock.d.ts +9 -0
- package/build/cjs/types/msw/mocks/insights/overview/overview.mock.d.ts +139 -0
- package/build/cjs/types/queries/feature-flags/index.d.ts +2 -0
- package/build/cjs/types/types/feature-flags/intex.d.ts +5 -0
- package/build/cjs/types/types/reconciliation/reconciliation-fees.d.ts +3 -3
- package/build/cjs/types/utils/test-utils.d.ts +2 -1
- package/build/esm/index.js +7 -7
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/api/api.d.ts +5 -0
- package/build/esm/types/msw/mocks/insights/overview/overview-metrics.mock.d.ts +9 -0
- package/build/esm/types/msw/mocks/insights/overview/overview.mock.d.ts +139 -0
- package/build/esm/types/queries/feature-flags/index.d.ts +2 -0
- package/build/esm/types/types/feature-flags/intex.d.ts +5 -0
- package/build/esm/types/types/reconciliation/reconciliation-fees.d.ts +3 -3
- package/build/esm/types/utils/test-utils.d.ts +2 -1
- package/build/index.d.ts +635 -624
- package/package.json +6 -2
package/README.md
CHANGED
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
### Deploy to dev
|
|
2
|
-
|
|
3
|
-
```bash
|
|
4
|
-
> curl -X 'POST' \
|
|
5
|
-
'https://internal-infra.y.uno/kingdom/v1/frontend-deployment/create' \
|
|
6
|
-
-H 'accept: application/json' \
|
|
7
|
-
-H 'Content-Type: application/json' \
|
|
8
|
-
-d '{
|
|
9
|
-
"fe_id": "1f71578b-c400-4f90-b799-e80db27e1443",
|
|
10
|
-
"fe_env_id": "63f2038c-7190-4eda-921e-81c11fb467cf",
|
|
11
|
-
"version": "master"
|
|
12
|
-
}'
|
|
13
|
-
```
|
|
14
|
-
|
|
15
1
|
### How to build to publish at NPM
|
|
16
2
|
|
|
17
3
|
Update the package.json version
|
|
@@ -21,15 +7,15 @@ npm run build-publish
|
|
|
21
7
|
```
|
|
22
8
|
|
|
23
9
|
```bash
|
|
24
|
-
npm publish
|
|
10
|
+
npm publish --access public
|
|
25
11
|
```
|
|
26
12
|
|
|
27
|
-
### How to install yuno/dashboard-api-mfe as dependency
|
|
13
|
+
### How to install yuno-payments/dashboard-api-mfe as dependency
|
|
28
14
|
|
|
29
15
|
In your mfe you have to install as normal package of npm
|
|
30
16
|
|
|
31
17
|
```bsah
|
|
32
|
-
npm i @yuno/dashboard-api-mfe
|
|
18
|
+
npm i @yuno-payments/dashboard-api-mfe
|
|
33
19
|
```
|
|
34
20
|
|
|
35
21
|
Make sure to remove module declaration in src/declarations.d.ts
|
|
@@ -39,3 +25,9 @@ Make sure to remove module declaration in src/declarations.d.ts
|
|
|
39
25
|
## src/constants
|
|
40
26
|
|
|
41
27
|
Place to put all constants that belong to the API MFE, such as API errors (e.g., Axios errors) and settings like the timeout constant in milliseconds. Do not place here any constants related to your MFE's business logic or anything else.
|
|
28
|
+
|
|
29
|
+
## To publish
|
|
30
|
+
|
|
31
|
+
```bsah
|
|
32
|
+
npm publish --access public
|
|
33
|
+
```
|