vineanova-redux-artifacts 1.119.24 → 1.119.26
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/CHANGELOG.md +1 -1
- package/package.json +23 -4
- package/readme.md +19 -19
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vineanova-redux-artifacts",
|
|
3
|
-
"version": "1.119.
|
|
3
|
+
"version": "1.119.26",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"browser": "lib/index.js",
|
|
@@ -15,9 +15,28 @@
|
|
|
15
15
|
"build-module": "cross-env BABEL_ENV=module babel ./src --out-dir ./module --source-maps --copy-files",
|
|
16
16
|
"build-node": "babel ./src --out-dir ./dist"
|
|
17
17
|
},
|
|
18
|
-
"keywords": [
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
"keywords": [
|
|
19
|
+
"redux",
|
|
20
|
+
"sagas",
|
|
21
|
+
"autogenerated",
|
|
22
|
+
"templated",
|
|
23
|
+
"selectors",
|
|
24
|
+
"reducers",
|
|
25
|
+
"APIclients",
|
|
26
|
+
"NewZealand",
|
|
27
|
+
"vineyard",
|
|
28
|
+
"livestock",
|
|
29
|
+
"Swagger",
|
|
30
|
+
"boilerplate",
|
|
31
|
+
"codegeneration",
|
|
32
|
+
"npm",
|
|
33
|
+
"streamlined",
|
|
34
|
+
"efficiency",
|
|
35
|
+
"integration",
|
|
36
|
+
"development"
|
|
37
|
+
],
|
|
38
|
+
"author": "irfan@infopower.co.nz",
|
|
39
|
+
"license": "MIT",
|
|
21
40
|
"dependencies": {
|
|
22
41
|
"@babel/cli": "^7.14.3",
|
|
23
42
|
"@babel/core": "^7.14.3",
|
package/readme.md
CHANGED
|
@@ -6,6 +6,23 @@ VineaOpenApiReduxArtifacts is a powerful npm library designed to simplify the in
|
|
|
6
6
|
|
|
7
7
|
## Example Usage
|
|
8
8
|
|
|
9
|
+
```javascript
|
|
10
|
+
import {
|
|
11
|
+
VineaNovaActions,
|
|
12
|
+
VineaNovaSelectors,
|
|
13
|
+
} from 'vineanova-redux-artifacts';
|
|
14
|
+
|
|
15
|
+
dispatchAPI(
|
|
16
|
+
VineaNovaActions.api.v1.cropBlockVintage.get.request({
|
|
17
|
+
queryParams: {
|
|
18
|
+
VineyardBlockID: 11111,
|
|
19
|
+
VintageID: 1111,
|
|
20
|
+
},
|
|
21
|
+
}),
|
|
22
|
+
);
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
|
|
9
26
|
### Generated Ducks Actions
|
|
10
27
|
|
|
11
28
|
```javascript
|
|
@@ -73,25 +90,9 @@ export function* getCropBlockVintageSagas(action) {
|
|
|
73
90
|
}
|
|
74
91
|
```
|
|
75
92
|
|
|
76
|
-
### Usage in Application
|
|
77
93
|
|
|
78
|
-
```javascript
|
|
79
|
-
import {
|
|
80
|
-
VineaNovaActions,
|
|
81
|
-
VineaNovaSelectors,
|
|
82
|
-
} from 'vineanova-redux-artifacts';
|
|
83
|
-
|
|
84
|
-
dispatchAPI(
|
|
85
|
-
VineaNovaActions.api.v1.cropBlockVintage.get.request({
|
|
86
|
-
queryParams: {
|
|
87
|
-
VineyardBlockID: cbvData.vineyardBlockId,
|
|
88
|
-
VintageID: cbvData.vintageId,
|
|
89
|
-
},
|
|
90
|
-
}),
|
|
91
|
-
);
|
|
92
|
-
```
|
|
93
94
|
|
|
94
|
-
### Example Selector
|
|
95
|
+
### Example Usage Selector
|
|
95
96
|
|
|
96
97
|
```javascript
|
|
97
98
|
import {
|
|
@@ -104,7 +105,7 @@ const cropBlockVintageEntityData = useSelector(
|
|
|
104
105
|
);
|
|
105
106
|
```
|
|
106
107
|
|
|
107
|
-
###
|
|
108
|
+
### Generated API Client Used by Sagas
|
|
108
109
|
|
|
109
110
|
```javascript
|
|
110
111
|
export const getCropBlockVintage = async (payload) => {
|
|
@@ -137,7 +138,6 @@ Ensure the following environment variables are set for proper library functional
|
|
|
137
138
|
- `SWAGGER_URL`: The base URL for the Swagger API.
|
|
138
139
|
- `CODE`: A code parameter for authenticating the Swagger API.
|
|
139
140
|
|
|
140
|
-
|
|
141
141
|
## Installation
|
|
142
142
|
|
|
143
143
|
To install VineaOpenApiReduxArtifacts, simply run:
|