@vrplatform/api 1.3.0 → 1.3.1-1348
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/build/main/client.js +6 -0
- package/build/main/client.js.map +1 -1
- package/build/main/generated/v1.d.ts +3840 -2763
- package/build/main/generated/v1.js.map +1 -1
- package/build/main/index.d.ts +0 -3
- package/build/main/index.js +0 -1
- package/build/main/index.js.map +1 -1
- package/build/main/tsconfig.main.tsbuildinfo +1 -1
- package/build/module/client.js +6 -0
- package/build/module/client.js.map +1 -1
- package/build/module/generated/v1.d.ts +3840 -2763
- package/build/module/generated/v1.js.map +1 -1
- package/build/module/index.d.ts +0 -3
- package/build/module/index.js +0 -1
- package/build/module/index.js.map +1 -1
- package/build/module/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +23 -19
- package/src/client.ts +7 -1
- package/src/generated/v1.ts +3840 -2763
- package/src/index.ts +0 -3
- package/build/main/ingest/index.d.ts +0 -21
- package/build/main/ingest/index.js +0 -189
- package/build/main/ingest/index.js.map +0 -1
- package/build/main/ingest/types.d.ts +0 -48
- package/build/main/ingest/types.js +0 -3
- package/build/main/ingest/types.js.map +0 -1
- package/build/main/ingest-compat/index.d.ts +0 -13
- package/build/main/ingest-compat/index.js +0 -92
- package/build/main/ingest-compat/index.js.map +0 -1
- package/build/main/ingest-compat/map.d.ts +0 -6
- package/build/main/ingest-compat/map.js +0 -67
- package/build/main/ingest-compat/map.js.map +0 -1
- package/build/main/ingest-compat/types.d.ts +0 -7
- package/build/main/ingest-compat/types.js +0 -3
- package/build/main/ingest-compat/types.js.map +0 -1
- package/build/module/ingest/index.d.ts +0 -21
- package/build/module/ingest/index.js +0 -171
- package/build/module/ingest/index.js.map +0 -1
- package/build/module/ingest/types.d.ts +0 -48
- package/build/module/ingest/types.js +0 -2
- package/build/module/ingest/types.js.map +0 -1
- package/build/module/ingest-compat/index.d.ts +0 -13
- package/build/module/ingest-compat/index.js +0 -75
- package/build/module/ingest-compat/index.js.map +0 -1
- package/build/module/ingest-compat/map.d.ts +0 -6
- package/build/module/ingest-compat/map.js +0 -64
- package/build/module/ingest-compat/map.js.map +0 -1
- package/build/module/ingest-compat/types.d.ts +0 -7
- package/build/module/ingest-compat/types.js +0 -2
- package/build/module/ingest-compat/types.js.map +0 -1
- package/src/ingest/index.ts +0 -227
- package/src/ingest/types.ts +0 -91
package/build/module/index.d.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import type { useIngest } from './ingest';
|
|
2
1
|
import type { ApiClient } from './types';
|
|
3
2
|
export * from './client';
|
|
4
3
|
export * from './error';
|
|
5
4
|
export * from './generated/v1';
|
|
6
|
-
export * from './ingest';
|
|
7
5
|
export * from './types';
|
|
8
|
-
export type ApiIngest = ReturnType<typeof useIngest>;
|
|
9
6
|
export type VRPlatformApi = ApiClient;
|
package/build/module/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"src/","sources":["index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"src/","sources":["index.ts"],"names":[],"mappings":"AAEA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC","sourcesContent":["import type { ApiClient } from './types';\n\nexport * from './client';\nexport * from './error';\nexport * from './generated/v1';\nexport * from './types';\n\nexport type VRPlatformApi = ApiClient;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"root":["../../src/cache.ts","../../src/client.ts","../../src/error.ts","../../src/index.ts","../../src/sec.ts","../../src/types.ts","../../src/generated/openapi-fetch.ts","../../src/generated/v1.ts"
|
|
1
|
+
{"root":["../../src/cache.ts","../../src/client.ts","../../src/error.ts","../../src/index.ts","../../src/sec.ts","../../src/types.ts","../../src/generated/openapi-fetch.ts","../../src/generated/v1.ts"],"version":"5.9.3"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vrplatform/api",
|
|
3
3
|
"publishConfig": {
|
|
4
|
-
"access": "public"
|
|
4
|
+
"access": "public",
|
|
5
|
+
"main": "build/main/index.js",
|
|
6
|
+
"typings": "build/main/index.d.ts",
|
|
7
|
+
"module": "build/module/index.js"
|
|
5
8
|
},
|
|
6
|
-
"version": "1.3.
|
|
9
|
+
"version": "1.3.1-1348",
|
|
7
10
|
"description": "",
|
|
8
11
|
"main": "build/main/index.js",
|
|
9
12
|
"module": "build/module/index.js",
|
|
13
|
+
"scripts": {
|
|
14
|
+
"pub": "bun pm version patch --no-git-tag-version && bun run npmpub",
|
|
15
|
+
"npmpub": "bun run build && bunx vrp-deploy --prefix npmpub",
|
|
16
|
+
"npmpub:main": "vrp-publish --tag staging",
|
|
17
|
+
"npmpub:release": "vrp-publish",
|
|
18
|
+
"build": "bun run generate && bun build:main && bun build:module",
|
|
19
|
+
"build:main": "tsc -b tsconfig.main.json",
|
|
20
|
+
"build:module": "tsc -b tsconfig.esm.json",
|
|
21
|
+
"dev": "NODE_ENV=generator bun --watch ./generate.ts",
|
|
22
|
+
"generate": "bun generate:schema && bun generate:client",
|
|
23
|
+
"generate:schema": "bun run --cwd ../../api generate",
|
|
24
|
+
"generate:client": "bunx --bun openapi-typescript ../../api/openapi.json -o ./src/generated/v1.ts",
|
|
25
|
+
"typecheck": "tsc --noEmit",
|
|
26
|
+
"tsgo": "tsgo --noEmit"
|
|
27
|
+
},
|
|
10
28
|
"author": "",
|
|
11
29
|
"license": "ISC",
|
|
12
30
|
"dependencies": {
|
|
@@ -15,13 +33,14 @@
|
|
|
15
33
|
"openapi-typescript-helpers": "^0.0.15"
|
|
16
34
|
},
|
|
17
35
|
"peerDependencies": {
|
|
18
|
-
"@vrplatform/utils": "
|
|
36
|
+
"@vrplatform/utils": "*",
|
|
19
37
|
"@sentry/core": "*"
|
|
20
38
|
},
|
|
21
39
|
"devDependencies": {
|
|
22
40
|
"@vrplatform/kysely": "*",
|
|
23
41
|
"@vrplatform/repository": "*",
|
|
24
|
-
"@vrplatform/common": "*"
|
|
42
|
+
"@vrplatform/common": "*",
|
|
43
|
+
"@vrplatform/bin": "*"
|
|
25
44
|
},
|
|
26
45
|
"files": [
|
|
27
46
|
"build/main",
|
|
@@ -30,20 +49,5 @@
|
|
|
30
49
|
"!**/*.spec.*",
|
|
31
50
|
"LICENSE"
|
|
32
51
|
],
|
|
33
|
-
"scripts": {
|
|
34
|
-
"pub": "bunx bumpp --no-commit --no-git-check --no-verify --ignore-scripts --no-tag -p=false && bun run npmpub",
|
|
35
|
-
"npmpub": "bun run build && bunx vrp-deploy --prefix npmpub",
|
|
36
|
-
"npmpub:main": "pnpm publish --no-git-checks --tag staging",
|
|
37
|
-
"npmpub:release": "pnpm publish --no-git-checks",
|
|
38
|
-
"build": "bun run generate && bun build:main && bun build:module",
|
|
39
|
-
"build:main": "tsc -b tsconfig.main.json",
|
|
40
|
-
"build:module": "tsc -b tsconfig.esm.json",
|
|
41
|
-
"dev": "NODE_ENV=generator bun --watch ./generate.ts",
|
|
42
|
-
"generate": "bun generate:schema && bun generate:client",
|
|
43
|
-
"generate:schema": "bun run --cwd ../../api generate",
|
|
44
|
-
"generate:client": "bunx --bun openapi-typescript ../../api/openapi.json -o ./src/generated/v1.ts",
|
|
45
|
-
"typecheck": "tsc --noEmit",
|
|
46
|
-
"tsgo": "tsgo --noEmit"
|
|
47
|
-
},
|
|
48
52
|
"typings": "build/main/index.d.ts"
|
|
49
53
|
}
|
package/src/client.ts
CHANGED
|
@@ -54,9 +54,15 @@ export function useApiClient({
|
|
|
54
54
|
const trace = Sentry.getTraceData();
|
|
55
55
|
const client = createClient<paths>({
|
|
56
56
|
baseUrl,
|
|
57
|
+
querySerializer: {
|
|
58
|
+
array: {
|
|
59
|
+
explode: false,
|
|
60
|
+
style: 'form',
|
|
61
|
+
},
|
|
62
|
+
},
|
|
57
63
|
fetch(req) {
|
|
58
64
|
return retryableFetch(async () => {
|
|
59
|
-
let clone:
|
|
65
|
+
let clone: any = req.clone() as any;
|
|
60
66
|
if (testing?.overwriteUri)
|
|
61
67
|
clone = new Request(testing.overwriteUri, clone);
|
|
62
68
|
|