@standards/client 1.0.0-alpha.415 → 1.0.0-alpha.416
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/dist/app.d.mts +3 -3
- package/dist/app.d.ts +3 -3
- package/dist/app.js +1 -1
- package/dist/app.mjs +1 -1
- package/package.json +2 -2
package/dist/app.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import { _ as StandardsRequestError, a as OperationStreamOptions, c as UploadProgress, d as readRefusal, f as refusalOf, h as StandardsAuthError, i as OperationCallOptions, l as createHttpTransport, n as HttpTransportConfig, t as HttpTransport } from "./http-transport-C1u5UGkC.mjs";
|
|
3
3
|
import { DraftConflictChange } from "@standards/schema";
|
|
4
|
-
import { Operation, OperationInput, OperationResult,
|
|
4
|
+
import { Operation, OperationInput, OperationResult, appOperationGroups } from "@standards/schema/api";
|
|
5
5
|
//#region src/app-errors.d.ts
|
|
6
6
|
/** The server's `SchemaErrorCode` on a failed call, when it sent one. */
|
|
7
7
|
export declare function schemaApiErrorCode(error: unknown): string | undefined;
|
|
@@ -57,8 +57,8 @@ export declare function isViewNotFound(error: unknown): boolean;
|
|
|
57
57
|
export declare function parseContentDispositionFilename(header: string | null | undefined): string | undefined;
|
|
58
58
|
//#endregion
|
|
59
59
|
//#region src/app.d.ts
|
|
60
|
-
type
|
|
61
|
-
type AppOperation =
|
|
60
|
+
type AppOperationGroups = typeof appOperationGroups;
|
|
61
|
+
type AppOperation = { [K in keyof AppOperationGroups]: AppOperationGroups[K][keyof AppOperationGroups[K]]; }[keyof AppOperationGroups];
|
|
62
62
|
type NamespaceOf<N> = N extends `${infer G}.${string}` ? G : never;
|
|
63
63
|
type VerbOf<N> = N extends `${string}.${infer V}` ? V : never;
|
|
64
64
|
/** An `"events"` operation opens a stream (`transport.stream`); any other is one call. */
|
package/dist/app.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { _ as StandardsRequestError, a as OperationStreamOptions, c as UploadProgress, d as readRefusal, f as refusalOf, h as StandardsAuthError, i as OperationCallOptions, l as createHttpTransport, n as HttpTransportConfig, t as HttpTransport } from "./http-transport-C1u5UGkC.js";
|
|
3
|
-
import { Operation, OperationInput, OperationResult,
|
|
3
|
+
import { Operation, OperationInput, OperationResult, appOperationGroups } from "@standards/schema/api";
|
|
4
4
|
import { DraftConflictChange } from "@standards/schema";
|
|
5
5
|
//#region src/app-errors.d.ts
|
|
6
6
|
/** The server's `SchemaErrorCode` on a failed call, when it sent one. */
|
|
@@ -57,8 +57,8 @@ export declare function isViewNotFound(error: unknown): boolean;
|
|
|
57
57
|
export declare function parseContentDispositionFilename(header: string | null | undefined): string | undefined;
|
|
58
58
|
//#endregion
|
|
59
59
|
//#region src/app.d.ts
|
|
60
|
-
type
|
|
61
|
-
type AppOperation =
|
|
60
|
+
type AppOperationGroups = typeof appOperationGroups;
|
|
61
|
+
type AppOperation = { [K in keyof AppOperationGroups]: AppOperationGroups[K][keyof AppOperationGroups[K]]; }[keyof AppOperationGroups];
|
|
62
62
|
type NamespaceOf<N> = N extends `${infer G}.${string}` ? G : never;
|
|
63
63
|
type VerbOf<N> = N extends `${string}.${infer V}` ? V : never;
|
|
64
64
|
/** An `"events"` operation opens a stream (`transport.stream`); any other is one call. */
|
package/dist/app.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
|
|
2
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./http-transport-CAPVZuiv.js");let t=require("@standards/schema/api");
|
|
2
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./http-transport-CAPVZuiv.js");let t=require("@standards/schema/api");function createAppClient(e){let n={},r=Object.values(t.appOperationGroups);for(let i of r.flatMap(e=>Object.values(e))){let r=(0,t.operationGroup)(i),a=i.name.slice(r.length+1);n[r]??={},n[r][a]=(t,n)=>i.response===`events`?e.stream(i,t,n):e.call(i,t,n)}return n}exports.StandardsAuthError=e.h,exports.StandardsRequestError=e._,exports.createAppClient=createAppClient,exports.createHttpTransport=e.t,exports.draftConflictChanges=e.s,exports.isDraftRevisionConflict=e.c,exports.isObjectNotFound=e.l,exports.isPermanentRefusal=e.u,exports.isViewNotFound=e.d,exports.parseContentDispositionFilename=e.o,exports.readRefusal=e.r,exports.refusalOf=e.i,exports.schemaApiErrorCode=e.f;
|
package/dist/app.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! © 2025-2026 AND YOU CREATE SAS (RCS Paris 940 190 614). Proprietary — see LICENSE (Standards SDK License 1.0). */
|
|
2
|
-
import{_ as e,c as t,d as n,f as r,h as i,i as
|
|
2
|
+
import{_ as e,c as t,d as n,f as r,h as i,i as a,l as o,o as s,r as c,s as l,t as u,u as d}from"./http-transport-BxgXm4Oi.mjs";import{appOperationGroups as f,operationGroup as p}from"@standards/schema/api";function createAppClient(e){let t={},n=Object.values(f);for(let r of n.flatMap(e=>Object.values(e))){let n=p(r),i=r.name.slice(n.length+1);t[n]??={},t[n][i]=(t,n)=>r.response===`events`?e.stream(r,t,n):e.call(r,t,n)}return t}export{i as StandardsAuthError,e as StandardsRequestError,createAppClient,u as createHttpTransport,l as draftConflictChanges,t as isDraftRevisionConflict,o as isObjectNotFound,d as isPermanentRefusal,n as isViewNotFound,s as parseContentDispositionFilename,c as readRefusal,a as refusalOf,r as schemaApiErrorCode};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@standards/client",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.416",
|
|
4
4
|
"description": "Public TypeScript client for Standards: declare schema sources with the fluent builders, sync them to a hosted tenant, and operate typed records over the REST API.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"node": ">=22"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@standards/schema": "1.0.0-alpha.
|
|
50
|
+
"@standards/schema": "1.0.0-alpha.416"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@types/node": "^25.6.0",
|