wsp-contracts 1.0.0

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 ADDED
@@ -0,0 +1,29 @@
1
+ # README #
2
+
3
+ This README would normally document whatever steps are necessary to get your application up and running.
4
+
5
+ ### What is this repository for? ###
6
+
7
+ * Quick summary
8
+ * Version
9
+ * [Learn Markdown](https://bitbucket.org/tutorials/markdowndemo)
10
+
11
+ ### How do I get set up? ###
12
+
13
+ * Summary of set up
14
+ * Configuration
15
+ * Dependencies
16
+ * Database configuration
17
+ * How to run tests
18
+ * Deployment instructions
19
+
20
+ ### Contribution guidelines ###
21
+
22
+ * Writing tests
23
+ * Code review
24
+ * Other guidelines
25
+
26
+ ### Who do I talk to? ###
27
+
28
+ * Repo owner or admin
29
+ * Other community or team contact
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ export interface PurchaseDto {
2
+ uuid: string;
3
+ }
@@ -0,0 +1 @@
1
+ export * from './PurchaseDto';
@@ -0,0 +1,5 @@
1
+ export interface RatesDTO {
2
+ base: string;
3
+ rates: Record<string, number>;
4
+ date: string;
5
+ }
@@ -0,0 +1 @@
1
+ export * from './RatesDTO';
package/package.json ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "wsp-contracts",
3
+ "version": "1.0.0",
4
+ "description": "DTOs y event-schemas compartidos entre microservicios de WonaSports. Solo tipos (declarations).",
5
+ "license": "MIT",
6
+ "files": [
7
+ "dist"
8
+ ],
9
+ "types": "dist/index.d.ts",
10
+ "sideEffects": false,
11
+ "exports": {
12
+ ".": { "types": "./dist/index.d.ts" },
13
+ "./rates": { "types": "./dist/rates/index.d.ts" },
14
+ "./purchase": { "types": "./dist/purchase/index.d.ts" }
15
+ },
16
+ "scripts": {
17
+ "build": "tsc -p tsconfig.json",
18
+ "clean": "rimraf dist",
19
+ "prepublishOnly": "npm run clean && npm run build"
20
+ },
21
+ "devDependencies": {
22
+ "rimraf": "^5.0.0",
23
+ "typescript": "^5.5.0"
24
+ }
25
+ }
26
+