@getsoren/shared-module 2.47.0 → 2.47.2
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 +5 -5
- package/dist/main.js +3 -3
- package/dist/orval/orvalNode.d.ts +2 -2
- package/dist/orval.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -170,8 +170,8 @@ export default defineConfig(config);
|
|
|
170
170
|
When `input` is an object, the OpenAPI schema target is resolved with the following priorities:
|
|
171
171
|
|
|
172
172
|
1. **Local file** (`./openapi.<name>.json`) — pulled schema snapshot
|
|
173
|
-
2. **Local service** (`https://<subdomain>.api.
|
|
174
|
-
3. **Upstream deployed service** (`https://<subdomain>.api.dev.
|
|
173
|
+
2. **Local service** (`https://<subdomain>.api.soren.test/openapi.json`) — docker compose back environment, probed via cURL
|
|
174
|
+
3. **Upstream deployed service** (`https://<subdomain>.api.dev.getsoren.ai/openapi.json`) — dev cluster, fallback
|
|
175
175
|
|
|
176
176
|
### Host
|
|
177
177
|
|
|
@@ -181,15 +181,15 @@ When `input` is an object, the OpenAPI schema target is resolved with the follow
|
|
|
181
181
|
|-------------------|----------------------------------------------------------|
|
|
182
182
|
| `overrideApiName` | `<host>` → generated folders `src/api/<host>/` |
|
|
183
183
|
| `localFile` | `./openapi.<host>.json` |
|
|
184
|
-
| `localUrl` | `https://<subdomain>.api.
|
|
185
|
-
| `upstreamUrl` | `https://<subdomain>.api.dev.
|
|
184
|
+
| `localUrl` | `https://<subdomain>.api.soren.test/openapi.json` |
|
|
185
|
+
| `upstreamUrl` | `https://<subdomain>.api.dev.getsoren.ai/openapi.json` |
|
|
186
186
|
|
|
187
187
|
The subdomain matches the host, except `saas` which is served on the `app` subdomain.
|
|
188
188
|
Every derived value can be overridden individually:
|
|
189
189
|
|
|
190
190
|
```typescript
|
|
191
191
|
// Target a specific environment
|
|
192
|
-
input: { host: "saas", upstreamUrl: "https://app.api.
|
|
192
|
+
input: { host: "saas", upstreamUrl: "https://app.api.stg.getsoren.ai/openapi.json" }
|
|
193
193
|
|
|
194
194
|
// Fully custom, without host
|
|
195
195
|
input: {
|
package/dist/main.js
CHANGED
|
@@ -339,10 +339,10 @@ var d = 3e4, f = 1e3, p = 1e4, m = (e) => Array.isArray(e) ? e.map(m) : typeof e
|
|
|
339
339
|
useNavigationType: b
|
|
340
340
|
}), ...t || []],
|
|
341
341
|
release: d,
|
|
342
|
-
replaysOnErrorSampleRate: i
|
|
343
|
-
replaysSessionSampleRate: r
|
|
342
|
+
replaysOnErrorSampleRate: i ?? 1,
|
|
343
|
+
replaysSessionSampleRate: r ?? .1,
|
|
344
344
|
tracePropagationTargets: s,
|
|
345
|
-
tracesSampleRate: n
|
|
345
|
+
tracesSampleRate: n ?? 1
|
|
346
346
|
}), null;
|
|
347
347
|
}, V = /* @__PURE__ */ new WeakMap(), oe = "user", se = ({ Fallback: e, isLogged: n, loginPath: r = "/login", redirect401Path: i = "/login", ...s }) => {
|
|
348
348
|
let { libraries: c, localStorageKeys: d } = a(v), f = s?.reactRouter || c?.reactRouter, p = s?.axios || c?.axios, m = s?.localStorageKey || d?.user || oe;
|
|
@@ -8,8 +8,8 @@ export interface ResolveOrvalHostInputOptions extends Partial<ResolveOrvalInputO
|
|
|
8
8
|
/**
|
|
9
9
|
* API name, also used as default "overrideApiName" and to derive:
|
|
10
10
|
* - localFile: ./openapi.<host>.json
|
|
11
|
-
* - localUrl: https://<subdomain>.api.
|
|
12
|
-
* - upstreamUrl: https://<subdomain>.api.dev.
|
|
11
|
+
* - localUrl: https://<subdomain>.api.soren.test/openapi.json
|
|
12
|
+
* - upstreamUrl: https://<subdomain>.api.dev.getsoren.ai/openapi.json
|
|
13
13
|
* Each value can still be overridden individually.
|
|
14
14
|
*/
|
|
15
15
|
host: OrvalApiHost;
|
package/dist/orval.js
CHANGED
|
@@ -11,7 +11,7 @@ var r = (e, n = 1500) => {
|
|
|
11
11
|
} catch {
|
|
12
12
|
return !1;
|
|
13
13
|
}
|
|
14
|
-
}, i = ({ localFile: e, localUrl: t, upstreamUrl: i }) => e && n(e) ? (console.log(`Hint: remove ${e} to change target by upstream (http) instead.`), e) : t && r(t) ? t : i, a = "api.
|
|
14
|
+
}, i = ({ localFile: e, localUrl: t, upstreamUrl: i }) => e && n(e) ? (console.log(`Hint: remove ${e} to change target by upstream (http) instead.`), e) : t && r(t) ? t : i, a = "api.soren.test", o = "api.dev.getsoren.ai", s = {
|
|
15
15
|
auth: "auth",
|
|
16
16
|
saas: "app",
|
|
17
17
|
supplier: "supplier"
|