@mestra-dev/contract 0.0.293 → 0.0.294

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +131 -6
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1947,6 +1947,131 @@ declare const routes: import("hono/hono-base").HonoBase<{
1947
1947
  status: 200;
1948
1948
  };
1949
1949
  };
1950
+ } & {
1951
+ "/member/feedback/:workspace": {
1952
+ $get: {
1953
+ input: {
1954
+ query: {
1955
+ collaboratorId: string;
1956
+ };
1957
+ } & {
1958
+ param: {
1959
+ workspace: string;
1960
+ };
1961
+ };
1962
+ output: {
1963
+ success: true;
1964
+ feedback: {
1965
+ id: string;
1966
+ collaboratorId: string;
1967
+ rating: number;
1968
+ reason: string;
1969
+ comment: string;
1970
+ date: string;
1971
+ customerId: string | null;
1972
+ authorName: string;
1973
+ customerContact: string | null;
1974
+ recordedBy: string | null;
1975
+ recordedByName: string | null;
1976
+ createdAt: string;
1977
+ }[];
1978
+ };
1979
+ outputFormat: "json";
1980
+ status: 200;
1981
+ };
1982
+ };
1983
+ } & {
1984
+ "/member/feedback": {
1985
+ $post: {
1986
+ input: {
1987
+ json: {
1988
+ workspace: string;
1989
+ collaboratorId: string;
1990
+ customer: {
1991
+ source: "existing";
1992
+ customerId: string;
1993
+ } | {
1994
+ source: "manual";
1995
+ name: string;
1996
+ contact?: string | null | undefined;
1997
+ };
1998
+ rating: number;
1999
+ reason: string;
2000
+ comment: string;
2001
+ date: string;
2002
+ };
2003
+ };
2004
+ output: {
2005
+ success: false;
2006
+ error: string;
2007
+ };
2008
+ outputFormat: "json";
2009
+ status: 400;
2010
+ } | {
2011
+ input: {
2012
+ json: {
2013
+ workspace: string;
2014
+ collaboratorId: string;
2015
+ customer: {
2016
+ source: "existing";
2017
+ customerId: string;
2018
+ } | {
2019
+ source: "manual";
2020
+ name: string;
2021
+ contact?: string | null | undefined;
2022
+ };
2023
+ rating: number;
2024
+ reason: string;
2025
+ comment: string;
2026
+ date: string;
2027
+ };
2028
+ };
2029
+ output: {
2030
+ success: false;
2031
+ error: string;
2032
+ };
2033
+ outputFormat: "json";
2034
+ status: 404;
2035
+ } | {
2036
+ input: {
2037
+ json: {
2038
+ workspace: string;
2039
+ collaboratorId: string;
2040
+ customer: {
2041
+ source: "existing";
2042
+ customerId: string;
2043
+ } | {
2044
+ source: "manual";
2045
+ name: string;
2046
+ contact?: string | null | undefined;
2047
+ };
2048
+ rating: number;
2049
+ reason: string;
2050
+ comment: string;
2051
+ date: string;
2052
+ };
2053
+ };
2054
+ output: {
2055
+ success: true;
2056
+ feedback: {
2057
+ id: string;
2058
+ collaboratorId: string;
2059
+ rating: number;
2060
+ reason: string;
2061
+ comment: string;
2062
+ date: string;
2063
+ customerId: string | null;
2064
+ authorName: string;
2065
+ customerContact: string | null;
2066
+ recordedBy: string | null;
2067
+ recordedByName: string | null;
2068
+ createdAt: string;
2069
+ };
2070
+ };
2071
+ outputFormat: "json";
2072
+ status: 201;
2073
+ };
2074
+ };
1950
2075
  } & {
1951
2076
  "/settings": {
1952
2077
  $post: {
@@ -2408,11 +2533,11 @@ declare const routes: import("hono/hono-base").HonoBase<{
2408
2533
  deleted_at: string | null;
2409
2534
  verified_at: string | null;
2410
2535
  suspended_at: string | null;
2536
+ customerId: string | null;
2411
2537
  subject: string;
2412
2538
  created_by: string;
2413
2539
  phaseId: string | null;
2414
2540
  priority: string | null;
2415
- customerId: string | null;
2416
2541
  visibility: string | null;
2417
2542
  };
2418
2543
  };
@@ -4560,8 +4685,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
4560
4685
  invoiceId: string;
4561
4686
  status: string;
4562
4687
  date: string;
4563
- created_by: string;
4564
4688
  customerId: string;
4689
+ created_by: string;
4565
4690
  fullPayment: boolean | null;
4566
4691
  installment: boolean | null;
4567
4692
  notes: string | null;
@@ -4695,8 +4820,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
4695
4820
  invoiceId: string;
4696
4821
  status: string;
4697
4822
  date: string;
4698
- created_by: string;
4699
4823
  customerId: string;
4824
+ created_by: string;
4700
4825
  fullPayment: boolean | null;
4701
4826
  installment: boolean | null;
4702
4827
  notes: string | null;
@@ -4884,8 +5009,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
4884
5009
  invoiceId: string;
4885
5010
  status: string;
4886
5011
  date: string;
4887
- created_by: string;
4888
5012
  customerId: string;
5013
+ created_by: string;
4889
5014
  fullPayment: boolean | null;
4890
5015
  installment: boolean | null;
4891
5016
  notes: string | null;
@@ -5027,8 +5152,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
5027
5152
  verified_at: string | null;
5028
5153
  suspended_at: string | null;
5029
5154
  date: string;
5030
- created_by: string;
5031
5155
  customerId: string;
5156
+ created_by: string;
5032
5157
  notes: string | null;
5033
5158
  serviceId: string;
5034
5159
  }[];
@@ -10917,13 +11042,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
10917
11042
  createdAt: string;
10918
11043
  date: string;
10919
11044
  reason: string;
11045
+ comment: string | null;
10920
11046
  productName: string;
10921
11047
  variant: string | null;
10922
11048
  sku: string;
10923
11049
  quantity: number;
10924
11050
  fromWarehouseId: string;
10925
11051
  toWarehouseId: string;
10926
- comment: string | null;
10927
11052
  userName: string | null;
10928
11053
  };
10929
11054
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mestra-dev/contract",
3
- "version": "0.0.293",
3
+ "version": "0.0.294",
4
4
  "description": "Types-only Hono AppType contract for the Mestra auth API",
5
5
  "type": "module",
6
6
  "sideEffects": false,