@matech/thebigpos-sdk 2.34.1 → 2.35.0-rc1

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 CHANGED
@@ -40,5 +40,34 @@ apiClient.api.getSiteConfiguration().then((response) => {
40
40
  });
41
41
  ```
42
42
 
43
+ ## Generate SDK from Swagger
44
+
45
+ To regenerate the SDK from a specific API version, run:
46
+
47
+ ```bash
48
+ npx swagger-typescript-api generate -p https://api.thebigpos.dev/swagger/{version}/swagger.json -o ./src -n index.ts -r true --axios --enum-names-as-values --generate-union-enums
49
+ ```
50
+
51
+ Replace `{version}` with the target API version (e.g. `v2.34.0`):
52
+
53
+ ```bash
54
+ npx swagger-typescript-api generate -p https://api.thebigpos.dev/swagger/v2.34.0/swagger.json -o ./src -n index.ts -r true --axios --enum-names-as-values --generate-union-enums
55
+ ```
56
+
57
+ ## Publishing
58
+
59
+ 1. Update the `version` field in `package.json` before publishing.
60
+ 2. Build the project:
61
+
62
+ ```bash
63
+ yarn build
64
+ ```
65
+
66
+ 3. Publish to npm:
67
+
68
+ ```bash
69
+ yarn publish
70
+ ```
71
+
43
72
  ____
44
73
  © 2024 Mortgage Automation Technologies. All rights reserved