@middlewr/contracts 0.0.23 → 0.0.25

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.
@@ -14,6 +14,10 @@ export declare const CreateCheckoutInputSchema: z.ZodObject<{
14
14
  pro: "pro";
15
15
  business: "business";
16
16
  }>;
17
+ interval: z.ZodDefault<z.ZodEnum<{
18
+ monthly: "monthly";
19
+ yearly: "yearly";
20
+ }>>;
17
21
  success_url: z.ZodOptional<z.ZodString>;
18
22
  cancel_url: z.ZodOptional<z.ZodString>;
19
23
  billing_email: z.ZodOptional<z.ZodString>;
@@ -1 +1 @@
1
- {"version":3,"file":"billing.schema.d.ts","sourceRoot":"","sources":["../../src/billing.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mBAAmB;;;;;;;;iBAQ9B,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;iBAKpC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;iBAEhC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;iBAE/B,CAAC"}
1
+ {"version":3,"file":"billing.schema.d.ts","sourceRoot":"","sources":["../../src/billing.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mBAAmB;;;;;;;;iBAQ9B,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;iBAMpC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;iBAEhC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;iBAE/B,CAAC"}
@@ -702,6 +702,10 @@ 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
+ sync: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
706
+ workspace_id: z.ZodString;
707
+ link_id: z.ZodString;
708
+ }, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
705
709
  };
706
710
  export declare const tagsContract: {
707
711
  create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
@@ -880,6 +884,10 @@ export declare const billingContract: {
880
884
  pro: "pro";
881
885
  business: "business";
882
886
  }>;
887
+ interval: z.ZodDefault<z.ZodEnum<{
888
+ monthly: "monthly";
889
+ yearly: "yearly";
890
+ }>>;
883
891
  success_url: z.ZodOptional<z.ZodString>;
884
892
  cancel_url: z.ZodOptional<z.ZodString>;
885
893
  billing_email: z.ZodOptional<z.ZodString>;
@@ -1586,6 +1594,10 @@ export declare const contract: {
1586
1594
  workspace_id: z.ZodString;
1587
1595
  link_id: z.ZodString;
1588
1596
  }, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
1597
+ sync: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1598
+ workspace_id: z.ZodString;
1599
+ link_id: z.ZodString;
1600
+ }, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
1589
1601
  };
1590
1602
  tags: {
1591
1603
  create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
@@ -1764,6 +1776,10 @@ export declare const contract: {
1764
1776
  pro: "pro";
1765
1777
  business: "business";
1766
1778
  }>;
1779
+ interval: z.ZodDefault<z.ZodEnum<{
1780
+ monthly: "monthly";
1781
+ yearly: "yearly";
1782
+ }>>;
1767
1783
  success_url: z.ZodOptional<z.ZodString>;
1768
1784
  cancel_url: z.ZodOptional<z.ZodString>;
1769
1785
  billing_email: z.ZodOptional<z.ZodString>;
@@ -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;AAgC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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
@@ -147,6 +147,7 @@ var BillingStatusSchema = import_zod3.z.object({
147
147
  });
148
148
  var CreateCheckoutInputSchema = import_zod3.z.object({
149
149
  plan: import_zod3.z.enum(["developer", "pro", "business"]),
150
+ interval: import_zod3.z.enum(["monthly", "yearly"]).default("monthly"),
150
151
  success_url: import_zod3.z.string().url().optional(),
151
152
  cancel_url: import_zod3.z.string().url().optional(),
152
153
  billing_email: import_zod3.z.string().email().optional()
@@ -479,7 +480,8 @@ var linksContract = {
479
480
  list: import_contract.oc.route({ method: "GET", path: "/api/workspaces/{workspace_id}/links" }).input(WorkspaceIdParamSchema.merge(LinkFiltersSchema)).output(PaginatedLinksSchema),
480
481
  get: import_contract.oc.route({ method: "GET", path: "/api/workspaces/{workspace_id}/links/{link_id}" }).input(LinkIdParamSchema).output(LinkSchema),
481
482
  update: import_contract.oc.route({ method: "PATCH", path: "/api/workspaces/{workspace_id}/links/{link_id}" }).input(LinkIdParamSchema.merge(UpdateLinkInputSchema)).output(LinkSchema),
482
- delete: import_contract.oc.route({ method: "DELETE", path: "/api/workspaces/{workspace_id}/links/{link_id}" }).input(LinkIdParamSchema).output(import_zod10.z.void())
483
+ delete: import_contract.oc.route({ method: "DELETE", path: "/api/workspaces/{workspace_id}/links/{link_id}" }).input(LinkIdParamSchema).output(import_zod10.z.void()),
484
+ sync: import_contract.oc.route({ method: "POST", path: "/api/workspaces/{workspace_id}/links/{link_id}/sync" }).input(LinkIdParamSchema).output(import_zod10.z.void())
483
485
  };
484
486
  var tagsContract = {
485
487
  create: import_contract.oc.route({ method: "POST", path: "/api/workspaces/{workspace_id}/tags" }).input(WorkspaceIdParamSchema.merge(CreateTagInputSchema)).output(TagSchema),
@@ -14,6 +14,10 @@ export declare const CreateCheckoutInputSchema: z.ZodObject<{
14
14
  pro: "pro";
15
15
  business: "business";
16
16
  }>;
17
+ interval: z.ZodDefault<z.ZodEnum<{
18
+ monthly: "monthly";
19
+ yearly: "yearly";
20
+ }>>;
17
21
  success_url: z.ZodOptional<z.ZodString>;
18
22
  cancel_url: z.ZodOptional<z.ZodString>;
19
23
  billing_email: z.ZodOptional<z.ZodString>;
@@ -1 +1 @@
1
- {"version":3,"file":"billing.schema.d.ts","sourceRoot":"","sources":["../../src/billing.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mBAAmB;;;;;;;;iBAQ9B,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;iBAKpC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;iBAEhC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;iBAE/B,CAAC"}
1
+ {"version":3,"file":"billing.schema.d.ts","sourceRoot":"","sources":["../../src/billing.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mBAAmB;;;;;;;;iBAQ9B,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;iBAMpC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;iBAEhC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;iBAE/B,CAAC"}
@@ -702,6 +702,10 @@ 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
+ sync: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
706
+ workspace_id: z.ZodString;
707
+ link_id: z.ZodString;
708
+ }, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
705
709
  };
706
710
  export declare const tagsContract: {
707
711
  create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
@@ -880,6 +884,10 @@ export declare const billingContract: {
880
884
  pro: "pro";
881
885
  business: "business";
882
886
  }>;
887
+ interval: z.ZodDefault<z.ZodEnum<{
888
+ monthly: "monthly";
889
+ yearly: "yearly";
890
+ }>>;
883
891
  success_url: z.ZodOptional<z.ZodString>;
884
892
  cancel_url: z.ZodOptional<z.ZodString>;
885
893
  billing_email: z.ZodOptional<z.ZodString>;
@@ -1586,6 +1594,10 @@ export declare const contract: {
1586
1594
  workspace_id: z.ZodString;
1587
1595
  link_id: z.ZodString;
1588
1596
  }, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
1597
+ sync: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1598
+ workspace_id: z.ZodString;
1599
+ link_id: z.ZodString;
1600
+ }, z.core.$strip>, z.ZodVoid, Record<never, never>, Record<never, never>>;
1589
1601
  };
1590
1602
  tags: {
1591
1603
  create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
@@ -1764,6 +1776,10 @@ export declare const contract: {
1764
1776
  pro: "pro";
1765
1777
  business: "business";
1766
1778
  }>;
1779
+ interval: z.ZodDefault<z.ZodEnum<{
1780
+ monthly: "monthly";
1781
+ yearly: "yearly";
1782
+ }>>;
1767
1783
  success_url: z.ZodOptional<z.ZodString>;
1768
1784
  cancel_url: z.ZodOptional<z.ZodString>;
1769
1785
  billing_email: z.ZodOptional<z.ZodString>;
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;CAM3B,CAAC;AAGF,eAAO,MAAM,k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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/esm/index.js CHANGED
@@ -66,6 +66,7 @@ var BillingStatusSchema = z3.object({
66
66
  });
67
67
  var CreateCheckoutInputSchema = z3.object({
68
68
  plan: z3.enum(["developer", "pro", "business"]),
69
+ interval: z3.enum(["monthly", "yearly"]).default("monthly"),
69
70
  success_url: z3.string().url().optional(),
70
71
  cancel_url: z3.string().url().optional(),
71
72
  billing_email: z3.string().email().optional()
@@ -398,7 +399,8 @@ var linksContract = {
398
399
  list: oc.route({ method: "GET", path: "/api/workspaces/{workspace_id}/links" }).input(WorkspaceIdParamSchema.merge(LinkFiltersSchema)).output(PaginatedLinksSchema),
399
400
  get: oc.route({ method: "GET", path: "/api/workspaces/{workspace_id}/links/{link_id}" }).input(LinkIdParamSchema).output(LinkSchema),
400
401
  update: oc.route({ method: "PATCH", path: "/api/workspaces/{workspace_id}/links/{link_id}" }).input(LinkIdParamSchema.merge(UpdateLinkInputSchema)).output(LinkSchema),
401
- delete: oc.route({ method: "DELETE", path: "/api/workspaces/{workspace_id}/links/{link_id}" }).input(LinkIdParamSchema).output(z10.void())
402
+ delete: oc.route({ method: "DELETE", path: "/api/workspaces/{workspace_id}/links/{link_id}" }).input(LinkIdParamSchema).output(z10.void()),
403
+ sync: oc.route({ method: "POST", path: "/api/workspaces/{workspace_id}/links/{link_id}/sync" }).input(LinkIdParamSchema).output(z10.void())
402
404
  };
403
405
  var tagsContract = {
404
406
  create: oc.route({ method: "POST", path: "/api/workspaces/{workspace_id}/tags" }).input(WorkspaceIdParamSchema.merge(CreateTagInputSchema)).output(TagSchema),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@middlewr/contracts",
3
- "version": "0.0.23",
3
+ "version": "0.0.25",
4
4
  "type": "module",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -12,6 +12,7 @@ export const BillingStatusSchema = z.object({
12
12
 
13
13
  export const CreateCheckoutInputSchema = z.object({
14
14
  plan: z.enum(['developer', 'pro', 'business']),
15
+ interval: z.enum(['monthly', 'yearly']).default('monthly'),
15
16
  success_url: z.string().url().optional(),
16
17
  cancel_url: z.string().url().optional(),
17
18
  billing_email: z.string().email().optional(),
package/src/index.ts CHANGED
@@ -169,6 +169,11 @@ export const linksContract = {
169
169
  .route({ method: 'DELETE', path: '/api/workspaces/{workspace_id}/links/{link_id}' })
170
170
  .input(LinkIdParamSchema)
171
171
  .output(z.void()),
172
+
173
+ sync: oc
174
+ .route({ method: 'POST', path: '/api/workspaces/{workspace_id}/links/{link_id}/sync' })
175
+ .input(LinkIdParamSchema)
176
+ .output(z.void()),
172
177
  };
173
178
 
174
179
  // Tags contract