@vrplatform/api 1.3.0 → 1.3.1-1345

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.
Files changed (52) hide show
  1. package/build/main/client.js +6 -0
  2. package/build/main/client.js.map +1 -1
  3. package/build/main/generated/v1.d.ts +3840 -2763
  4. package/build/main/generated/v1.js.map +1 -1
  5. package/build/main/index.d.ts +0 -3
  6. package/build/main/index.js +0 -1
  7. package/build/main/index.js.map +1 -1
  8. package/build/main/tsconfig.main.tsbuildinfo +1 -1
  9. package/build/module/client.js +6 -0
  10. package/build/module/client.js.map +1 -1
  11. package/build/module/generated/v1.d.ts +3840 -2763
  12. package/build/module/generated/v1.js.map +1 -1
  13. package/build/module/index.d.ts +0 -3
  14. package/build/module/index.js +0 -1
  15. package/build/module/index.js.map +1 -1
  16. package/build/module/tsconfig.esm.tsbuildinfo +1 -1
  17. package/package.json +23 -19
  18. package/src/client.ts +7 -1
  19. package/src/generated/v1.ts +3840 -2763
  20. package/src/index.ts +0 -3
  21. package/build/main/ingest/index.d.ts +0 -21
  22. package/build/main/ingest/index.js +0 -189
  23. package/build/main/ingest/index.js.map +0 -1
  24. package/build/main/ingest/types.d.ts +0 -48
  25. package/build/main/ingest/types.js +0 -3
  26. package/build/main/ingest/types.js.map +0 -1
  27. package/build/main/ingest-compat/index.d.ts +0 -13
  28. package/build/main/ingest-compat/index.js +0 -92
  29. package/build/main/ingest-compat/index.js.map +0 -1
  30. package/build/main/ingest-compat/map.d.ts +0 -6
  31. package/build/main/ingest-compat/map.js +0 -67
  32. package/build/main/ingest-compat/map.js.map +0 -1
  33. package/build/main/ingest-compat/types.d.ts +0 -7
  34. package/build/main/ingest-compat/types.js +0 -3
  35. package/build/main/ingest-compat/types.js.map +0 -1
  36. package/build/module/ingest/index.d.ts +0 -21
  37. package/build/module/ingest/index.js +0 -171
  38. package/build/module/ingest/index.js.map +0 -1
  39. package/build/module/ingest/types.d.ts +0 -48
  40. package/build/module/ingest/types.js +0 -2
  41. package/build/module/ingest/types.js.map +0 -1
  42. package/build/module/ingest-compat/index.d.ts +0 -13
  43. package/build/module/ingest-compat/index.js +0 -75
  44. package/build/module/ingest-compat/index.js.map +0 -1
  45. package/build/module/ingest-compat/map.d.ts +0 -6
  46. package/build/module/ingest-compat/map.js +0 -64
  47. package/build/module/ingest-compat/map.js.map +0 -1
  48. package/build/module/ingest-compat/types.d.ts +0 -7
  49. package/build/module/ingest-compat/types.js +0 -2
  50. package/build/module/ingest-compat/types.js.map +0 -1
  51. package/src/ingest/index.ts +0 -227
  52. package/src/ingest/types.ts +0 -91
@@ -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;
@@ -1,6 +1,5 @@
1
1
  export * from './client';
2
2
  export * from './error';
3
3
  export * from './generated/v1';
4
- export * from './ingest';
5
4
  export * from './types';
6
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"src/","sources":["index.ts"],"names":[],"mappings":"AAGA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC","sourcesContent":["import type { useIngest } from './ingest';\nimport type { ApiClient } from './types';\n\nexport * from './client';\nexport * from './error';\nexport * from './generated/v1';\nexport * from './ingest';\nexport * from './types';\n\nexport type ApiIngest = ReturnType<typeof useIngest>;\nexport type VRPlatformApi = ApiClient;\n"]}
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","../../src/ingest/index.ts","../../src/ingest/types.ts"],"version":"5.9.3"}
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.0",
9
+ "version": "1.3.1-1345",
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": "^4.9.45",
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: Request = req.clone() as any;
65
+ let clone: any = req.clone() as any;
60
66
  if (testing?.overwriteUri)
61
67
  clone = new Request(testing.overwriteUri, clone);
62
68