@mestra-dev/contract 0.0.293 → 0.0.295

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 +564 -6
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1947,6 +1947,372 @@ 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
+ };
2075
+ } & {
2076
+ "/member/documents/:workspace": {
2077
+ $get: {
2078
+ input: {
2079
+ query: {
2080
+ collaboratorId: string;
2081
+ };
2082
+ } & {
2083
+ param: {
2084
+ workspace: string;
2085
+ };
2086
+ };
2087
+ output: {
2088
+ success: true;
2089
+ documents: {
2090
+ id: string;
2091
+ collaboratorId: string;
2092
+ name: string;
2093
+ number: string | null;
2094
+ issuer: string;
2095
+ issuedAt: string;
2096
+ expiresAt: string | null;
2097
+ file: {
2098
+ name: string;
2099
+ size: number;
2100
+ downloadUrl: string;
2101
+ } | null;
2102
+ createdAt: string;
2103
+ updatedAt: string;
2104
+ }[];
2105
+ };
2106
+ outputFormat: "json";
2107
+ status: 200;
2108
+ };
2109
+ };
2110
+ } & {
2111
+ "/member/documents": {
2112
+ $post: {
2113
+ input: {
2114
+ json: {
2115
+ name: string;
2116
+ number?: string | null | undefined;
2117
+ issuer: string;
2118
+ issuedAt: string;
2119
+ expiresAt: string | null;
2120
+ workspace: string;
2121
+ collaboratorId: string;
2122
+ };
2123
+ };
2124
+ output: {
2125
+ success: false;
2126
+ error: string;
2127
+ };
2128
+ outputFormat: "json";
2129
+ status: 403;
2130
+ } | {
2131
+ input: {
2132
+ json: {
2133
+ name: string;
2134
+ number?: string | null | undefined;
2135
+ issuer: string;
2136
+ issuedAt: string;
2137
+ expiresAt: string | null;
2138
+ workspace: string;
2139
+ collaboratorId: string;
2140
+ };
2141
+ };
2142
+ output: {
2143
+ success: false;
2144
+ error: string;
2145
+ };
2146
+ outputFormat: "json";
2147
+ status: 400;
2148
+ } | {
2149
+ input: {
2150
+ json: {
2151
+ name: string;
2152
+ number?: string | null | undefined;
2153
+ issuer: string;
2154
+ issuedAt: string;
2155
+ expiresAt: string | null;
2156
+ workspace: string;
2157
+ collaboratorId: string;
2158
+ };
2159
+ };
2160
+ output: {
2161
+ success: false;
2162
+ error: string;
2163
+ };
2164
+ outputFormat: "json";
2165
+ status: 404;
2166
+ } | {
2167
+ input: {
2168
+ json: {
2169
+ name: string;
2170
+ number?: string | null | undefined;
2171
+ issuer: string;
2172
+ issuedAt: string;
2173
+ expiresAt: string | null;
2174
+ workspace: string;
2175
+ collaboratorId: string;
2176
+ };
2177
+ };
2178
+ output: {
2179
+ success: true;
2180
+ document: {
2181
+ id: string;
2182
+ collaboratorId: string;
2183
+ name: string;
2184
+ number: string | null;
2185
+ issuer: string;
2186
+ issuedAt: string;
2187
+ expiresAt: string | null;
2188
+ file: {
2189
+ name: string;
2190
+ size: number;
2191
+ downloadUrl: string;
2192
+ } | null;
2193
+ createdAt: string;
2194
+ updatedAt: string;
2195
+ };
2196
+ };
2197
+ outputFormat: "json";
2198
+ status: 201;
2199
+ };
2200
+ };
2201
+ } & {
2202
+ "/member/documents/update": {
2203
+ $post: {
2204
+ input: {
2205
+ json: {
2206
+ name: string;
2207
+ number?: string | null | undefined;
2208
+ issuer: string;
2209
+ issuedAt: string;
2210
+ expiresAt: string | null;
2211
+ workspace: string;
2212
+ documentId: string;
2213
+ };
2214
+ };
2215
+ output: {
2216
+ success: false;
2217
+ error: string;
2218
+ };
2219
+ outputFormat: "json";
2220
+ status: 403;
2221
+ } | {
2222
+ input: {
2223
+ json: {
2224
+ name: string;
2225
+ number?: string | null | undefined;
2226
+ issuer: string;
2227
+ issuedAt: string;
2228
+ expiresAt: string | null;
2229
+ workspace: string;
2230
+ documentId: string;
2231
+ };
2232
+ };
2233
+ output: {
2234
+ success: false;
2235
+ error: string;
2236
+ };
2237
+ outputFormat: "json";
2238
+ status: 404;
2239
+ } | {
2240
+ input: {
2241
+ json: {
2242
+ name: string;
2243
+ number?: string | null | undefined;
2244
+ issuer: string;
2245
+ issuedAt: string;
2246
+ expiresAt: string | null;
2247
+ workspace: string;
2248
+ documentId: string;
2249
+ };
2250
+ };
2251
+ output: {
2252
+ success: true;
2253
+ document: {
2254
+ id: string;
2255
+ collaboratorId: string;
2256
+ name: string;
2257
+ number: string | null;
2258
+ issuer: string;
2259
+ issuedAt: string;
2260
+ expiresAt: string | null;
2261
+ file: {
2262
+ name: string;
2263
+ size: number;
2264
+ downloadUrl: string;
2265
+ } | null;
2266
+ createdAt: string;
2267
+ updatedAt: string;
2268
+ };
2269
+ };
2270
+ outputFormat: "json";
2271
+ status: 200;
2272
+ };
2273
+ };
2274
+ } & {
2275
+ "/member/documents/delete": {
2276
+ $post: {
2277
+ input: {
2278
+ json: {
2279
+ workspace: string;
2280
+ documentId: string;
2281
+ };
2282
+ };
2283
+ output: {
2284
+ success: false;
2285
+ error: string;
2286
+ };
2287
+ outputFormat: "json";
2288
+ status: 403;
2289
+ } | {
2290
+ input: {
2291
+ json: {
2292
+ workspace: string;
2293
+ documentId: string;
2294
+ };
2295
+ };
2296
+ output: {
2297
+ success: false;
2298
+ error: string;
2299
+ };
2300
+ outputFormat: "json";
2301
+ status: 404;
2302
+ } | {
2303
+ input: {
2304
+ json: {
2305
+ workspace: string;
2306
+ documentId: string;
2307
+ };
2308
+ };
2309
+ output: {
2310
+ success: true;
2311
+ };
2312
+ outputFormat: "json";
2313
+ status: 200;
2314
+ };
2315
+ };
1950
2316
  } & {
1951
2317
  "/settings": {
1952
2318
  $post: {
@@ -2408,11 +2774,11 @@ declare const routes: import("hono/hono-base").HonoBase<{
2408
2774
  deleted_at: string | null;
2409
2775
  verified_at: string | null;
2410
2776
  suspended_at: string | null;
2777
+ customerId: string | null;
2411
2778
  subject: string;
2412
2779
  created_by: string;
2413
2780
  phaseId: string | null;
2414
2781
  priority: string | null;
2415
- customerId: string | null;
2416
2782
  visibility: string | null;
2417
2783
  };
2418
2784
  };
@@ -4560,8 +4926,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
4560
4926
  invoiceId: string;
4561
4927
  status: string;
4562
4928
  date: string;
4563
- created_by: string;
4564
4929
  customerId: string;
4930
+ created_by: string;
4565
4931
  fullPayment: boolean | null;
4566
4932
  installment: boolean | null;
4567
4933
  notes: string | null;
@@ -4695,8 +5061,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
4695
5061
  invoiceId: string;
4696
5062
  status: string;
4697
5063
  date: string;
4698
- created_by: string;
4699
5064
  customerId: string;
5065
+ created_by: string;
4700
5066
  fullPayment: boolean | null;
4701
5067
  installment: boolean | null;
4702
5068
  notes: string | null;
@@ -4884,8 +5250,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
4884
5250
  invoiceId: string;
4885
5251
  status: string;
4886
5252
  date: string;
4887
- created_by: string;
4888
5253
  customerId: string;
5254
+ created_by: string;
4889
5255
  fullPayment: boolean | null;
4890
5256
  installment: boolean | null;
4891
5257
  notes: string | null;
@@ -5027,8 +5393,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
5027
5393
  verified_at: string | null;
5028
5394
  suspended_at: string | null;
5029
5395
  date: string;
5030
- created_by: string;
5031
5396
  customerId: string;
5397
+ created_by: string;
5032
5398
  notes: string | null;
5033
5399
  serviceId: string;
5034
5400
  }[];
@@ -7223,6 +7589,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
7223
7589
  customerBytes: number;
7224
7590
  servicesBytes: number;
7225
7591
  financeBytes: number;
7592
+ membersBytes: number;
7226
7593
  limitBytes: number | null;
7227
7594
  };
7228
7595
  outputFormat: "json";
@@ -8034,6 +8401,197 @@ declare const routes: import("hono/hono-base").HonoBase<{
8034
8401
  status: import("hono/utils/http-status").ContentfulStatusCode;
8035
8402
  };
8036
8403
  };
8404
+ } & {
8405
+ "/upload-to-member-document": {
8406
+ $post: {
8407
+ input: {
8408
+ json: {
8409
+ filename: string;
8410
+ contentType: string;
8411
+ contentLength: number;
8412
+ workspace: string;
8413
+ documentId: string;
8414
+ };
8415
+ };
8416
+ output: {
8417
+ success: false;
8418
+ error: string;
8419
+ };
8420
+ outputFormat: "json";
8421
+ status: 403;
8422
+ } | {
8423
+ input: {
8424
+ json: {
8425
+ filename: string;
8426
+ contentType: string;
8427
+ contentLength: number;
8428
+ workspace: string;
8429
+ documentId: string;
8430
+ };
8431
+ };
8432
+ output: {
8433
+ success: false;
8434
+ error: string;
8435
+ };
8436
+ outputFormat: "json";
8437
+ status: 404;
8438
+ } | {
8439
+ input: {
8440
+ json: {
8441
+ filename: string;
8442
+ contentType: string;
8443
+ contentLength: number;
8444
+ workspace: string;
8445
+ documentId: string;
8446
+ };
8447
+ };
8448
+ output: {
8449
+ success: true;
8450
+ url: string;
8451
+ fields: {
8452
+ [x: string]: string;
8453
+ };
8454
+ key: string;
8455
+ maxSize: number;
8456
+ };
8457
+ outputFormat: "json";
8458
+ status: import("hono/utils/http-status").ContentfulStatusCode;
8459
+ };
8460
+ };
8461
+ } & {
8462
+ "/confirm-member-document-file": {
8463
+ $post: {
8464
+ input: {
8465
+ json: {
8466
+ filename: string;
8467
+ workspace: string;
8468
+ documentId: string;
8469
+ };
8470
+ };
8471
+ output: {
8472
+ success: false;
8473
+ error: string;
8474
+ };
8475
+ outputFormat: "json";
8476
+ status: 403;
8477
+ } | {
8478
+ input: {
8479
+ json: {
8480
+ filename: string;
8481
+ workspace: string;
8482
+ documentId: string;
8483
+ };
8484
+ };
8485
+ output: {
8486
+ success: false;
8487
+ error: string;
8488
+ };
8489
+ outputFormat: "json";
8490
+ status: 404;
8491
+ } | {
8492
+ input: {
8493
+ json: {
8494
+ filename: string;
8495
+ workspace: string;
8496
+ documentId: string;
8497
+ };
8498
+ };
8499
+ output: {
8500
+ success: true;
8501
+ key: string;
8502
+ document: {
8503
+ id: string;
8504
+ collaboratorId: string;
8505
+ name: string;
8506
+ number: string | null;
8507
+ issuer: string;
8508
+ issuedAt: string;
8509
+ expiresAt: string | null;
8510
+ file: {
8511
+ name: string;
8512
+ size: number;
8513
+ downloadUrl: string;
8514
+ } | null;
8515
+ createdAt: string;
8516
+ updatedAt: string;
8517
+ };
8518
+ };
8519
+ outputFormat: "json";
8520
+ status: import("hono/utils/http-status").ContentfulStatusCode;
8521
+ } | {
8522
+ input: {
8523
+ json: {
8524
+ filename: string;
8525
+ workspace: string;
8526
+ documentId: string;
8527
+ };
8528
+ };
8529
+ output: {
8530
+ success: false;
8531
+ error: string;
8532
+ };
8533
+ outputFormat: "json";
8534
+ status: 400;
8535
+ };
8536
+ };
8537
+ } & {
8538
+ "/delete-member-document-file": {
8539
+ $post: {
8540
+ input: {
8541
+ json: {
8542
+ workspace: string;
8543
+ documentId: string;
8544
+ };
8545
+ };
8546
+ output: {
8547
+ success: false;
8548
+ error: string;
8549
+ };
8550
+ outputFormat: "json";
8551
+ status: 403;
8552
+ } | {
8553
+ input: {
8554
+ json: {
8555
+ workspace: string;
8556
+ documentId: string;
8557
+ };
8558
+ };
8559
+ output: {
8560
+ success: false;
8561
+ error: string;
8562
+ };
8563
+ outputFormat: "json";
8564
+ status: 404;
8565
+ } | {
8566
+ input: {
8567
+ json: {
8568
+ workspace: string;
8569
+ documentId: string;
8570
+ };
8571
+ };
8572
+ output: {
8573
+ success: true;
8574
+ document: {
8575
+ id: string;
8576
+ collaboratorId: string;
8577
+ name: string;
8578
+ number: string | null;
8579
+ issuer: string;
8580
+ issuedAt: string;
8581
+ expiresAt: string | null;
8582
+ file: {
8583
+ name: string;
8584
+ size: number;
8585
+ downloadUrl: string;
8586
+ } | null;
8587
+ createdAt: string;
8588
+ updatedAt: string;
8589
+ };
8590
+ };
8591
+ outputFormat: "json";
8592
+ status: import("hono/utils/http-status").ContentfulStatusCode;
8593
+ };
8594
+ };
8037
8595
  } & {
8038
8596
  "/upload-to-finance": {
8039
8597
  $post: {
@@ -10917,13 +11475,13 @@ declare const routes: import("hono/hono-base").HonoBase<{
10917
11475
  createdAt: string;
10918
11476
  date: string;
10919
11477
  reason: string;
11478
+ comment: string | null;
10920
11479
  productName: string;
10921
11480
  variant: string | null;
10922
11481
  sku: string;
10923
11482
  quantity: number;
10924
11483
  fromWarehouseId: string;
10925
11484
  toWarehouseId: string;
10926
- comment: string | null;
10927
11485
  userName: string | null;
10928
11486
  };
10929
11487
  };
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.295",
4
4
  "description": "Types-only Hono AppType contract for the Mestra auth API",
5
5
  "type": "module",
6
6
  "sideEffects": false,