@rivascva/dt-idl 1.1.29 → 1.1.31
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/Makefile +1 -2
- package/README.md +63 -0
- package/dist/index.d.ts +4 -0
- package/mise.toml +3 -0
- package/package.json +1 -1
- package/services/dt-trade-service.yaml +7 -0
- package/ts/services/dt-trade-service.ts +4 -0
package/Makefile
CHANGED
package/README.md
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# Dream Trade Interface Description Language (IDL)
|
|
2
|
+
|
|
3
|
+
The API language for all Dream Trade microservices.
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/@rivascva/dt-idl)
|
|
6
|
+
|
|
7
|
+
## Setup
|
|
8
|
+
|
|
9
|
+
### 1. Install `mise`
|
|
10
|
+
|
|
11
|
+
- Install the `mise` CLI
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
brew install mise
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
- Add the `mise` activation command to your `.zshrc`
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
echo 'eval "$(mise activate zsh)"' >> ~/.zshrc
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
- Reload your `.zshrc` config (or restart your shell)
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
source ~/.zshrc
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
> Note: You can follow the official installation [docs](https://mise.jdx.dev/getting-started.html) for other options
|
|
30
|
+
|
|
31
|
+
### 2. Install project dependencies
|
|
32
|
+
|
|
33
|
+
- Use `mise` to install project dependencies
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
mise install
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### 3. Install `pre-commit` hooks
|
|
40
|
+
|
|
41
|
+
- Use the makefile `pre-commit-install` command
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
make pre-commit-install
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### 4. Install `node` modules
|
|
48
|
+
|
|
49
|
+
- Install all `node` modules
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
npm install
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### Common Scripts
|
|
56
|
+
|
|
57
|
+
- `npm run lint` - Lints all typescript files
|
|
58
|
+
- `npm run check` - Checks the syntax of all typescript files
|
|
59
|
+
- `npm run gen` - Generates typescript service clients
|
|
60
|
+
|
|
61
|
+
### Deployments
|
|
62
|
+
|
|
63
|
+
Any merge to `main` with changes to the `ts/*` directory will trigger an automatic deployment to `npm`
|
package/dist/index.d.ts
CHANGED
|
@@ -697,6 +697,10 @@ interface components {
|
|
|
697
697
|
email: string;
|
|
698
698
|
/** @example Sam Smith */
|
|
699
699
|
name: string;
|
|
700
|
+
/** @example USA */
|
|
701
|
+
country: string;
|
|
702
|
+
/** @example https://www.assets.com/image.png */
|
|
703
|
+
imageUrl?: string;
|
|
700
704
|
};
|
|
701
705
|
/** @description Payload to update an existing user */
|
|
702
706
|
UpdateUserPayload: components["schemas"]["AddUserPayload"];
|
package/mise.toml
ADDED
package/package.json
CHANGED
|
@@ -199,9 +199,16 @@ components:
|
|
|
199
199
|
name:
|
|
200
200
|
type: string
|
|
201
201
|
example: Sam Smith
|
|
202
|
+
country:
|
|
203
|
+
type: string
|
|
204
|
+
example: USA
|
|
205
|
+
imageUrl:
|
|
206
|
+
type: string
|
|
207
|
+
example: https://www.assets.com/image.png
|
|
202
208
|
required:
|
|
203
209
|
- email
|
|
204
210
|
- name
|
|
211
|
+
- country
|
|
205
212
|
|
|
206
213
|
UpdateUserPayload:
|
|
207
214
|
description: Payload to update an existing user
|
|
@@ -85,6 +85,10 @@ export interface components {
|
|
|
85
85
|
email: string;
|
|
86
86
|
/** @example Sam Smith */
|
|
87
87
|
name: string;
|
|
88
|
+
/** @example USA */
|
|
89
|
+
country: string;
|
|
90
|
+
/** @example https://www.assets.com/image.png */
|
|
91
|
+
imageUrl?: string;
|
|
88
92
|
};
|
|
89
93
|
/** @description Payload to update an existing user */
|
|
90
94
|
UpdateUserPayload: components["schemas"]["AddUserPayload"];
|