@middlewr/contracts 0.0.25 → 0.0.26
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/cjs/index.d.ts +14 -2
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +2 -1
- package/dist/esm/index.d.ts +14 -2
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +2 -1
- package/package.json +1 -1
- package/src/index.ts +7 -2
package/dist/cjs/index.d.ts
CHANGED
|
@@ -702,10 +702,16 @@ export declare const linksContract: {
|
|
|
702
702
|
workspace_id: z.ZodString;
|
|
703
703
|
link_id: z.ZodString;
|
|
704
704
|
}, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
705
|
-
|
|
705
|
+
edgeSync: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
706
706
|
workspace_id: z.ZodString;
|
|
707
707
|
link_id: z.ZodString;
|
|
708
708
|
}, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
709
|
+
edgeStatus: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
710
|
+
workspace_id: z.ZodString;
|
|
711
|
+
link_id: z.ZodString;
|
|
712
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
713
|
+
synced: z.ZodBoolean;
|
|
714
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
709
715
|
};
|
|
710
716
|
export declare const tagsContract: {
|
|
711
717
|
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
@@ -1594,10 +1600,16 @@ export declare const contract: {
|
|
|
1594
1600
|
workspace_id: z.ZodString;
|
|
1595
1601
|
link_id: z.ZodString;
|
|
1596
1602
|
}, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
1597
|
-
|
|
1603
|
+
edgeSync: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1598
1604
|
workspace_id: z.ZodString;
|
|
1599
1605
|
link_id: z.ZodString;
|
|
1600
1606
|
}, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
1607
|
+
edgeStatus: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1608
|
+
workspace_id: z.ZodString;
|
|
1609
|
+
link_id: z.ZodString;
|
|
1610
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1611
|
+
synced: z.ZodBoolean;
|
|
1612
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1601
1613
|
};
|
|
1602
1614
|
tags: {
|
|
1603
1615
|
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
package/dist/cjs/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAgCxB,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAE9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AAGpC,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAU7B,CAAC;AAGF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAYzB,CAAC;AAGF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUpB,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG,OAAO,QAAQ,CAAC;AACvC,MAAM,MAAM,MAAM,GAAG,oBAAoB,CAAC,QAAQ,CAAC,CAAC"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -481,7 +481,8 @@ var linksContract = {
|
|
|
481
481
|
get: import_contract.oc.route({ method: "GET", path: "/api/workspaces/{workspace_id}/links/{link_id}" }).input(LinkIdParamSchema).output(LinkSchema),
|
|
482
482
|
update: import_contract.oc.route({ method: "PATCH", path: "/api/workspaces/{workspace_id}/links/{link_id}" }).input(LinkIdParamSchema.merge(UpdateLinkInputSchema)).output(LinkSchema),
|
|
483
483
|
delete: import_contract.oc.route({ method: "DELETE", path: "/api/workspaces/{workspace_id}/links/{link_id}" }).input(LinkIdParamSchema).output(import_zod10.z.void()),
|
|
484
|
-
|
|
484
|
+
edgeSync: import_contract.oc.route({ method: "POST", path: "/api/workspaces/{workspace_id}/links/{link_id}/edge/sync" }).input(LinkIdParamSchema).output(import_zod10.z.void()),
|
|
485
|
+
edgeStatus: import_contract.oc.route({ method: "GET", path: "/api/workspaces/{workspace_id}/links/{link_id}/edge/status" }).input(LinkIdParamSchema).output(import_zod10.z.object({ synced: import_zod10.z.boolean() }))
|
|
485
486
|
};
|
|
486
487
|
var tagsContract = {
|
|
487
488
|
create: import_contract.oc.route({ method: "POST", path: "/api/workspaces/{workspace_id}/tags" }).input(WorkspaceIdParamSchema.merge(CreateTagInputSchema)).output(TagSchema),
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -702,10 +702,16 @@ export declare const linksContract: {
|
|
|
702
702
|
workspace_id: z.ZodString;
|
|
703
703
|
link_id: z.ZodString;
|
|
704
704
|
}, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
705
|
-
|
|
705
|
+
edgeSync: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
706
706
|
workspace_id: z.ZodString;
|
|
707
707
|
link_id: z.ZodString;
|
|
708
708
|
}, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
709
|
+
edgeStatus: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
710
|
+
workspace_id: z.ZodString;
|
|
711
|
+
link_id: z.ZodString;
|
|
712
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
713
|
+
synced: z.ZodBoolean;
|
|
714
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
709
715
|
};
|
|
710
716
|
export declare const tagsContract: {
|
|
711
717
|
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
@@ -1594,10 +1600,16 @@ export declare const contract: {
|
|
|
1594
1600
|
workspace_id: z.ZodString;
|
|
1595
1601
|
link_id: z.ZodString;
|
|
1596
1602
|
}, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
1597
|
-
|
|
1603
|
+
edgeSync: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1598
1604
|
workspace_id: z.ZodString;
|
|
1599
1605
|
link_id: z.ZodString;
|
|
1600
1606
|
}, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
|
|
1607
|
+
edgeStatus: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1608
|
+
workspace_id: z.ZodString;
|
|
1609
|
+
link_id: z.ZodString;
|
|
1610
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1611
|
+
synced: z.ZodBoolean;
|
|
1612
|
+
}, z.core.$strip>, Record<never, never>, Record<never, never>>;
|
|
1601
1613
|
};
|
|
1602
1614
|
tags: {
|
|
1603
1615
|
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
package/dist/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAgCxB,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAE9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AAGpC,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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ParamSchema).output(LinkSchema),
|
|
401
401
|
update: oc.route({ method: "PATCH", path: "/api/workspaces/{workspace_id}/links/{link_id}" }).input(LinkIdParamSchema.merge(UpdateLinkInputSchema)).output(LinkSchema),
|
|
402
402
|
delete: oc.route({ method: "DELETE", path: "/api/workspaces/{workspace_id}/links/{link_id}" }).input(LinkIdParamSchema).output(z10.void()),
|
|
403
|
-
|
|
403
|
+
edgeSync: oc.route({ method: "POST", path: "/api/workspaces/{workspace_id}/links/{link_id}/edge/sync" }).input(LinkIdParamSchema).output(z10.void()),
|
|
404
|
+
edgeStatus: oc.route({ method: "GET", path: "/api/workspaces/{workspace_id}/links/{link_id}/edge/status" }).input(LinkIdParamSchema).output(z10.object({ synced: z10.boolean() }))
|
|
404
405
|
};
|
|
405
406
|
var tagsContract = {
|
|
406
407
|
create: oc.route({ method: "POST", path: "/api/workspaces/{workspace_id}/tags" }).input(WorkspaceIdParamSchema.merge(CreateTagInputSchema)).output(TagSchema),
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -170,10 +170,15 @@ export const linksContract = {
|
|
|
170
170
|
.input(LinkIdParamSchema)
|
|
171
171
|
.output(z.void()),
|
|
172
172
|
|
|
173
|
-
|
|
174
|
-
.route({ method: 'POST', path: '/api/workspaces/{workspace_id}/links/{link_id}/sync' })
|
|
173
|
+
edgeSync: oc
|
|
174
|
+
.route({ method: 'POST', path: '/api/workspaces/{workspace_id}/links/{link_id}/edge/sync' })
|
|
175
175
|
.input(LinkIdParamSchema)
|
|
176
176
|
.output(z.void()),
|
|
177
|
+
|
|
178
|
+
edgeStatus: oc
|
|
179
|
+
.route({ method: 'GET', path: '/api/workspaces/{workspace_id}/links/{link_id}/edge/status' })
|
|
180
|
+
.input(LinkIdParamSchema)
|
|
181
|
+
.output(z.object({ synced: z.boolean() })),
|
|
177
182
|
};
|
|
178
183
|
|
|
179
184
|
// Tags contract
|