@vrplatform/api 1.3.1-stage.41443023672 → 1.3.1-stage.41459581390
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/error.d.ts +1 -0
- package/build/main/error.js +1 -0
- package/build/main/error.js.map +1 -1
- package/build/main/generated/v1.d.ts +2 -2
- package/build/main/generated/v1.js.map +2 -2
- package/build/module/error.d.ts +1 -0
- package/build/module/error.js +2 -0
- package/build/module/error.js.map +1 -1
- package/build/module/generated/v1.d.ts +2 -2
- package/build/module/generated/v1.js.map +2 -2
- package/package.json +1 -1
- package/src/error.ts +2 -0
- package/src/generated/v1.ts +2 -2
package/build/main/error.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export declare class ApiClientError extends Error {
|
|
|
15
15
|
code: ErrorEnvelope['code'];
|
|
16
16
|
issues: PublicError['issues'];
|
|
17
17
|
context: PublicError['context'];
|
|
18
|
+
reason: PublicError['reason'];
|
|
18
19
|
links: PublicError['links'];
|
|
19
20
|
retryable: PublicError['retryable'];
|
|
20
21
|
constructor(error: ErrorEnvelope);
|
package/build/main/error.js
CHANGED
package/build/main/error.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error.js","sourceRoot":"src/","sources":["error.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"error.js","sourceRoot":"src/","sources":["error.ts"],"names":[],"mappings":";;;AA4DA,oCA2DC;AArGD,MAAa,cAAe,SAAQ,KAAK;IAQvC,YAAmB,KAAoB;QACrC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QADJ,UAAK,GAAL,KAAK,CAAe;QAErC,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC;QACvB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,IAAI,EAAE,CAAC;QACjC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;QAC7B,IAAI,CAAC,M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,EACrD,QAAQ,CAAC,QAAQ,CAAC,MAAM,EACxB;YACE,WAAW,EAAE,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC;YAC1D,SAAS,EAAE,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC;YACxD,KAAK,EAAE,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC;SAC/C,CACF,CAAC;IAEJ,MAAM,IAAI,cAAc,CAAC,KAAsB,CAAC,CAAC;AACnD,CAAC","sourcesContent":["import type { paths } from './generated/v1';\n\n// The shared default envelope is emitted on every route. Preserve unfamiliar\n// server codes so an older client can still expose a newer API failure.\ntype PublicError =\n paths['/account-connections']['get']['responses'][400]['content']['application/json'];\ntype ErrorEnvelope = Omit<PublicError, 'code' | 'issues'> & {\n code: string;\n issues?: PublicError['issues'];\n stack?: string;\n};\n\ntype ApiResponse<T> = {\n response: Response;\n data?: T;\n error?: unknown;\n};\n\nexport class ApiClientError extends Error {\n code: ErrorEnvelope['code'];\n issues: PublicError['issues'];\n context: PublicError['context'];\n reason: PublicError['reason'];\n links: PublicError['links'];\n retryable: PublicError['retryable'];\n\n constructor(public error: ErrorEnvelope) {\n super(error.message);\n this.code = error.code;\n this.issues = error.issues ?? [];\n this.context = error.context;\n this.reason = error.reason;\n this.links = error.links;\n this.retryable = error.retryable;\n if (error.stack) this.stack = error.stack;\n }\n}\n\nexport class ApiClientResponseError extends Error {\n constructor(\n message: string,\n public status: number,\n public readonly details: {\n contentType: string | null;\n requestId: string | null;\n cfRay: string | null;\n } = { contentType: null, requestId: null, cfRay: null }\n ) {\n super(message);\n this.name = 'ApiClientResponseError';\n }\n}\n\nexport function throwIfError<\n T extends ApiResponse<unknown> | Promise<ApiResponse<unknown>>,\n>(\n response: T\n): T extends Promise<ApiResponse<unknown>>\n ? Promise<NonNullable<Awaited<T>['data']>>\n : NonNullable<Awaited<T>['data']>;\nexport function throwIfError(\n response: Promise<ApiResponse<unknown>> | ApiResponse<unknown>\n): unknown {\n if (response instanceof Promise)\n return response.then((value) => throwIfError(value));\n if (response.response.ok && response.error === undefined) {\n return response.data;\n }\n\n const error = response.error;\n if (\n typeof error !== 'object' ||\n error === null ||\n !('code' in error) ||\n typeof error.code !== 'string' ||\n !('message' in error) ||\n typeof error.message !== 'string' ||\n !('issues' in error) ||\n !Array.isArray(error.issues) ||\n !error.issues.every(\n (issue: unknown) =>\n typeof issue === 'object' &&\n issue !== null &&\n 'message' in issue &&\n typeof issue.message === 'string' &&\n (!('path' in issue) ||\n issue.path === undefined ||\n (Array.isArray(issue.path) &&\n issue.path.every(\n (part: unknown) =>\n typeof part === 'string' || typeof part === 'number'\n ))) &&\n (!('schema' in issue) ||\n issue.schema === undefined ||\n typeof issue.schema === 'string')\n ) ||\n ('retryable' in error &&\n error.retryable !== undefined &&\n typeof error.retryable !== 'boolean') ||\n ('links' in error &&\n error.links !== undefined &&\n (typeof error.links !== 'object' ||\n error.links === null ||\n !('docs' in error.links) ||\n typeof error.links.docs !== 'string' ||\n !('schema' in error.links) ||\n typeof error.links.schema !== 'string'))\n )\n throw new ApiClientResponseError(\n 'API response did not contain a valid error envelope',\n response.response.status,\n {\n contentType: response.response.headers.get('content-type'),\n requestId: response.response.headers.get('x-request-id'),\n cfRay: response.response.headers.get('cf-ray'),\n }\n );\n\n throw new ApiClientError(error as ErrorEnvelope);\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
[diffend] Oversized file quarantined before diffing.
|
|
2
2
|
name: package/build/main/generated/v1.d.ts
|
|
3
|
-
size:
|
|
4
|
-
sha256:
|
|
3
|
+
size: 49021774 bytes
|
|
4
|
+
sha256: 330d7f080184e86260e650fad2690917da2a57fc5eba9f703620b662b0235f30
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
[diffend] Oversized file quarantined before diffing.
|
|
2
2
|
name: package/build/main/generated/v1.js.map
|
|
3
|
-
size:
|
|
4
|
-
sha256:
|
|
3
|
+
size: 52048659 bytes
|
|
4
|
+
sha256: 63c4dd43ab14b162c9a641fc273cc2e700e1058c90ff87ac7023e48d431b9f62
|
package/build/module/error.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export declare class ApiClientError extends Error {
|
|
|
15
15
|
code: ErrorEnvelope['code'];
|
|
16
16
|
issues: PublicError['issues'];
|
|
17
17
|
context: PublicError['context'];
|
|
18
|
+
reason: PublicError['reason'];
|
|
18
19
|
links: PublicError['links'];
|
|
19
20
|
retryable: PublicError['retryable'];
|
|
20
21
|
constructor(error: ErrorEnvelope);
|
package/build/module/error.js
CHANGED
|
@@ -3,6 +3,7 @@ export class ApiClientError extends Error {
|
|
|
3
3
|
code;
|
|
4
4
|
issues;
|
|
5
5
|
context;
|
|
6
|
+
reason;
|
|
6
7
|
links;
|
|
7
8
|
retryable;
|
|
8
9
|
constructor(error) {
|
|
@@ -11,6 +12,7 @@ export class ApiClientError extends Error {
|
|
|
11
12
|
this.code = error.code;
|
|
12
13
|
this.issues = error.issues ?? [];
|
|
13
14
|
this.context = error.context;
|
|
15
|
+
this.reason = error.reason;
|
|
14
16
|
this.links = error.links;
|
|
15
17
|
this.retryable = error.retryable;
|
|
16
18
|
if (error.stack)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error.js","sourceRoot":"src/","sources":["error.ts"],"names":[],"mappings":"AAkBA,MAAM,OAAO,cAAe,SAAQ,KAAK;
|
|
1
|
+
{"version":3,"file":"error.js","sourceRoot":"src/","sources":["error.ts"],"names":[],"mappings":"AAkBA,MAAM,OAAO,cAAe,SAAQ,KAAK;IAQpB;IAPnB,IAAI,CAAwB;IAC5B,MAAM,CAAwB;IAC9B,OAAO,CAAyB;IAChC,MAAM,CAAwB;IAC9B,KAAK,CAAuB;IAC5B,SAAS,CAA2B;IAEpC,YAAmB,KAAoB;QACrC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QADJ,UAAK,G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CAAC,KAAK,CAAC,IAAI,KAAK,QAAQ;gBACpC,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,KAAK,CAAC;gBAC1B,OAAO,KAAK,CAAC,KAAK,CAAC,MAAM,KAAK,QAAQ,CAAC,CAAC;QAE5C,MAAM,IAAI,sBAAsB,CAC9B,qDAAqD,EACrD,QAAQ,CAAC,QAAQ,CAAC,MAAM,EACxB;YACE,WAAW,EAAE,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC;YAC1D,SAAS,EAAE,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC;YACxD,KAAK,EAAE,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC;SAC/C,CACF,CAAC;IAEJ,MAAM,IAAI,cAAc,CAAC,KAAsB,CAAC,CAAC;AACnD,CAAC","sourcesContent":["import type { paths } from './generated/v1';\n\n// The shared default envelope is emitted on every route. Preserve unfamiliar\n// server codes so an older client can still expose a newer API failure.\ntype PublicError =\n paths['/account-connections']['get']['responses'][400]['content']['application/json'];\ntype ErrorEnvelope = Omit<PublicError, 'code' | 'issues'> & {\n code: string;\n issues?: PublicError['issues'];\n stack?: string;\n};\n\ntype ApiResponse<T> = {\n response: Response;\n data?: T;\n error?: unknown;\n};\n\nexport class ApiClientError extends Error {\n code: ErrorEnvelope['code'];\n issues: PublicError['issues'];\n context: PublicError['context'];\n reason: PublicError['reason'];\n links: PublicError['links'];\n retryable: PublicError['retryable'];\n\n constructor(public error: ErrorEnvelope) {\n super(error.message);\n this.code = error.code;\n this.issues = error.issues ?? [];\n this.context = error.context;\n this.reason = error.reason;\n this.links = error.links;\n this.retryable = error.retryable;\n if (error.stack) this.stack = error.stack;\n }\n}\n\nexport class ApiClientResponseError extends Error {\n constructor(\n message: string,\n public status: number,\n public readonly details: {\n contentType: string | null;\n requestId: string | null;\n cfRay: string | null;\n } = { contentType: null, requestId: null, cfRay: null }\n ) {\n super(message);\n this.name = 'ApiClientResponseError';\n }\n}\n\nexport function throwIfError<\n T extends ApiResponse<unknown> | Promise<ApiResponse<unknown>>,\n>(\n response: T\n): T extends Promise<ApiResponse<unknown>>\n ? Promise<NonNullable<Awaited<T>['data']>>\n : NonNullable<Awaited<T>['data']>;\nexport function throwIfError(\n response: Promise<ApiResponse<unknown>> | ApiResponse<unknown>\n): unknown {\n if (response instanceof Promise)\n return response.then((value) => throwIfError(value));\n if (response.response.ok && response.error === undefined) {\n return response.data;\n }\n\n const error = response.error;\n if (\n typeof error !== 'object' ||\n error === null ||\n !('code' in error) ||\n typeof error.code !== 'string' ||\n !('message' in error) ||\n typeof error.message !== 'string' ||\n !('issues' in error) ||\n !Array.isArray(error.issues) ||\n !error.issues.every(\n (issue: unknown) =>\n typeof issue === 'object' &&\n issue !== null &&\n 'message' in issue &&\n typeof issue.message === 'string' &&\n (!('path' in issue) ||\n issue.path === undefined ||\n (Array.isArray(issue.path) &&\n issue.path.every(\n (part: unknown) =>\n typeof part === 'string' || typeof part === 'number'\n ))) &&\n (!('schema' in issue) ||\n issue.schema === undefined ||\n typeof issue.schema === 'string')\n ) ||\n ('retryable' in error &&\n error.retryable !== undefined &&\n typeof error.retryable !== 'boolean') ||\n ('links' in error &&\n error.links !== undefined &&\n (typeof error.links !== 'object' ||\n error.links === null ||\n !('docs' in error.links) ||\n typeof error.links.docs !== 'string' ||\n !('schema' in error.links) ||\n typeof error.links.schema !== 'string'))\n )\n throw new ApiClientResponseError(\n 'API response did not contain a valid error envelope',\n response.response.status,\n {\n contentType: response.response.headers.get('content-type'),\n requestId: response.response.headers.get('x-request-id'),\n cfRay: response.response.headers.get('cf-ray'),\n }\n );\n\n throw new ApiClientError(error as ErrorEnvelope);\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
[diffend] Oversized file quarantined before diffing.
|
|
2
2
|
name: package/build/module/generated/v1.d.ts
|
|
3
|
-
size:
|
|
4
|
-
sha256:
|
|
3
|
+
size: 49021774 bytes
|
|
4
|
+
sha256: 330d7f080184e86260e650fad2690917da2a57fc5eba9f703620b662b0235f30
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
[diffend] Oversized file quarantined before diffing.
|
|
2
2
|
name: package/build/module/generated/v1.js.map
|
|
3
|
-
size:
|
|
4
|
-
sha256:
|
|
3
|
+
size: 52048658 bytes
|
|
4
|
+
sha256: 12bf3e6ac422f62deac0272922756d2e40f957fa286386e7af7402137e6aa3c7
|
package/package.json
CHANGED
package/src/error.ts
CHANGED
|
@@ -20,6 +20,7 @@ export class ApiClientError extends Error {
|
|
|
20
20
|
code: ErrorEnvelope['code'];
|
|
21
21
|
issues: PublicError['issues'];
|
|
22
22
|
context: PublicError['context'];
|
|
23
|
+
reason: PublicError['reason'];
|
|
23
24
|
links: PublicError['links'];
|
|
24
25
|
retryable: PublicError['retryable'];
|
|
25
26
|
|
|
@@ -28,6 +29,7 @@ export class ApiClientError extends Error {
|
|
|
28
29
|
this.code = error.code;
|
|
29
30
|
this.issues = error.issues ?? [];
|
|
30
31
|
this.context = error.context;
|
|
32
|
+
this.reason = error.reason;
|
|
31
33
|
this.links = error.links;
|
|
32
34
|
this.retryable = error.retryable;
|
|
33
35
|
if (error.stack) this.stack = error.stack;
|
package/src/generated/v1.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
[diffend] Oversized file quarantined before diffing.
|
|
2
2
|
name: package/src/generated/v1.ts
|
|
3
|
-
size:
|
|
4
|
-
sha256:
|
|
3
|
+
size: 49021775 bytes
|
|
4
|
+
sha256: 04b5def4f2213aaa61d975d56b4267cf117ac41acf9d580e3deb2f49f72eed49
|