@dvina/sdk 5.0.70 → 5.0.76

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/package.json CHANGED
@@ -23,6 +23,10 @@
23
23
  "./ai": {
24
24
  "types": "./ai/index.d.ts",
25
25
  "default": "./ai/index.js"
26
+ },
27
+ "./formats": {
28
+ "types": "./formats/index.d.ts",
29
+ "default": "./formats/index.js"
26
30
  }
27
31
  },
28
32
  "dependencies": {
@@ -1,9 +1,9 @@
1
- import { C as Connection } from '../connection-DTiW92Zh.js';
2
- export { A as AbstractConnection, P as PageInfo, r as defaultConnection } from '../connection-DTiW92Zh.js';
1
+ import { C as Connection } from '../connection-DsemtinG.js';
2
+ export { A as AbstractConnection, P as PageInfo, r as defaultConnection } from '../connection-DsemtinG.js';
3
3
  import '../types-DlNXHZQK.js';
4
4
  import 'graphql';
5
5
  import 'dexie';
6
- import '../error-B-z8CPkV.js';
6
+ import '../error-CuX-RKTE.js';
7
7
 
8
8
  /**
9
9
  * Extract all nodes from a connection.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dvina/sdk",
3
- "version": "5.0.70",
3
+ "version": "5.0.76",
4
4
  "description": "Type-safe SDK for the Dvina GraphQL API",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",
@@ -24,6 +24,10 @@
24
24
  "./ai": {
25
25
  "types": "./dist/ai/index.d.ts",
26
26
  "default": "./dist/ai/index.js"
27
+ },
28
+ "./formats": {
29
+ "types": "./dist/formats/index.d.ts",
30
+ "default": "./dist/formats/index.js"
27
31
  }
28
32
  },
29
33
  "files": [
@@ -41,8 +45,9 @@
41
45
  "generate:sdk:standalone": "tsx codegen/codegen-sdk/src/generate.ts",
42
46
  "generate:billing": "graphql-codegen --config codegen.billing.yml",
43
47
  "generate:messages": "node scripts/generate-messages.mjs",
48
+ "generate:formats": "node scripts/generate-formats.mjs",
44
49
  "generate:test": "graphql-codegen --config codegen.test.yml",
45
- "generate": "pnpm run generate:doc && pnpm run generate:sdk && pnpm run generate:billing && pnpm run generate:messages && pnpm run generate:test",
50
+ "generate": "pnpm run generate:doc && pnpm run generate:sdk && pnpm run generate:billing && pnpm run generate:messages && pnpm run generate:formats && pnpm run generate:test",
46
51
  "generate:workspace": "pnpm run build:codegen && pnpm run generate",
47
52
  "test": "vitest run",
48
53
  "lint": "eslint src",
@@ -1 +0,0 @@
1
- var o=class extends Error{cause;operation;watched;constructor(n,r){super(n),this.name="DvinaError",this.cause=r;}},s=class extends o{errors;query;variables;constructor(n,r,t){let E=n.map(a=>a.message).join("; ")||"Unknown GraphQL error";super(E),this.name="DvinaGraphQLError",this.errors=n,this.query=r,this.variables=t;}},p=class extends o{status;constructor(n,r,t){super(n,t),this.name="DvinaNetworkError",this.status=r;}},l=class extends o{failedToken;constructor(n="Authentication failed",r,t){super(n,typeof r=="string"?t:r),this.name="DvinaAuthenticationError",this.failedToken=typeof r=="string"?r:void 0;}},_=class extends o{status=403;constructor(n="Forbidden",r){super(n,r),this.name="DvinaForbiddenError";}},y=class extends o{constructor(r,t,E,a){super(`Sync change ${r==="stalled"?"not yet written":"not written"} (${t.join(", ")})`,a);this.stage=r;this.tables=t;this.visibility=E;this.name="DvinaSyncApplyError";}},i={SESSION_TOKEN_LIMIT_REACHED:"SESSION_TOKEN_LIMIT_REACHED",STORAGE_LIMIT_REACHED:"STORAGE_LIMIT_REACHED",DEEP_ANALYSIS_LIMIT_EXCEEDED:"DEEP_ANALYSIS_LIMIT_EXCEEDED",PLAN_DETAIL_RESTRICTION:"PLAN_DETAIL_RESTRICTION",RESOURCE_NOT_FOUND:"RESOURCE_NOT_FOUND"},I=new Set([i.PLAN_DETAIL_RESTRICTION,i.STORAGE_LIMIT_REACHED,i.DEEP_ANALYSIS_LIMIT_EXCEEDED]),c=class extends s{restrictionCode;constructor(n,r,t,E){super(n,t,E),this.name="DvinaPlanRestrictionError",this.restrictionCode=r;}},u=class extends s{constructor(n,r,t){super(n,r,t),this.name="DvinaTokenLimitError";}},d=class extends s{constructor(n,r,t){super(n,r,t),this.name="DvinaNotFoundError";}};function R(e){for(let n of e){let r=n.extensions?.code;if(r!=null)return String(r).toUpperCase()}}function g(e,n,r){let t=R(e);return t===i.SESSION_TOKEN_LIMIT_REACHED?new u(e,n,r):t===i.RESOURCE_NOT_FOUND?new d(e,n,r):t&&I.has(t)?new c(e,t,n,r):new s(e,n,r)}export{o as a,s as b,p as c,l as d,_ as e,y as f,i as g,c as h,u as i,d as j,R as k,g as l};