@mestra-dev/contract 0.0.311 → 0.0.313

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 +181 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -5287,6 +5287,10 @@ declare const routes: import("hono/hono-base").HonoBase<{
5287
5287
  companyKpp: string | null;
5288
5288
  companyOgrn: string | null;
5289
5289
  legalAddress: string | null;
5290
+ directorName: string | null;
5291
+ chiefAccountantName: string | null;
5292
+ hasSignatureImage: boolean;
5293
+ hasStampImage: boolean;
5290
5294
  bankName: string | null;
5291
5295
  bankBik: string | null;
5292
5296
  bankKc: string | null;
@@ -10092,6 +10096,155 @@ declare const routes: import("hono/hono-base").HonoBase<{
10092
10096
  status: import("hono/utils/http-status").ContentfulStatusCode;
10093
10097
  };
10094
10098
  };
10099
+ } & {
10100
+ "/upload-finance-account-image": {
10101
+ $post: {
10102
+ input: {
10103
+ json: {
10104
+ workspace: string;
10105
+ accountId: string;
10106
+ kind: "signature" | "stamp";
10107
+ contentType: "image/jpeg" | "image/png" | "image/webp";
10108
+ };
10109
+ };
10110
+ output: {
10111
+ success: false;
10112
+ error: string;
10113
+ };
10114
+ outputFormat: "json";
10115
+ status: 404;
10116
+ } | {
10117
+ input: {
10118
+ json: {
10119
+ workspace: string;
10120
+ accountId: string;
10121
+ kind: "signature" | "stamp";
10122
+ contentType: "image/jpeg" | "image/png" | "image/webp";
10123
+ };
10124
+ };
10125
+ output: {
10126
+ success: true;
10127
+ url: string;
10128
+ fields: {
10129
+ [x: string]: string;
10130
+ };
10131
+ key: string;
10132
+ maxSize: number;
10133
+ };
10134
+ outputFormat: "json";
10135
+ status: import("hono/utils/http-status").ContentfulStatusCode;
10136
+ };
10137
+ };
10138
+ } & {
10139
+ "/confirm-finance-account-image": {
10140
+ $post: {
10141
+ input: {
10142
+ json: {
10143
+ workspace: string;
10144
+ accountId: string;
10145
+ kind: "signature" | "stamp";
10146
+ };
10147
+ };
10148
+ output: {
10149
+ success: false;
10150
+ error: string;
10151
+ };
10152
+ outputFormat: "json";
10153
+ status: 404;
10154
+ } | {
10155
+ input: {
10156
+ json: {
10157
+ workspace: string;
10158
+ accountId: string;
10159
+ kind: "signature" | "stamp";
10160
+ };
10161
+ };
10162
+ output: {
10163
+ success: true;
10164
+ image: string;
10165
+ };
10166
+ outputFormat: "json";
10167
+ status: import("hono/utils/http-status").ContentfulStatusCode;
10168
+ } | {
10169
+ input: {
10170
+ json: {
10171
+ workspace: string;
10172
+ accountId: string;
10173
+ kind: "signature" | "stamp";
10174
+ };
10175
+ };
10176
+ output: {
10177
+ success: false;
10178
+ error: string;
10179
+ };
10180
+ outputFormat: "json";
10181
+ status: 400;
10182
+ };
10183
+ };
10184
+ } & {
10185
+ "/finance-account-images/:workspace/:accountId": {
10186
+ $get: {
10187
+ input: {
10188
+ param: {
10189
+ workspace: string;
10190
+ } & {
10191
+ accountId: string;
10192
+ };
10193
+ };
10194
+ output: {
10195
+ success: false;
10196
+ error: string;
10197
+ };
10198
+ outputFormat: "json";
10199
+ status: 404;
10200
+ } | {
10201
+ input: {
10202
+ param: {
10203
+ workspace: string;
10204
+ } & {
10205
+ accountId: string;
10206
+ };
10207
+ };
10208
+ output: {
10209
+ success: true;
10210
+ signature: string | null;
10211
+ stamp: string | null;
10212
+ };
10213
+ outputFormat: "json";
10214
+ status: import("hono/utils/http-status").ContentfulStatusCode;
10215
+ };
10216
+ };
10217
+ } & {
10218
+ "/delete-finance-account-image": {
10219
+ $post: {
10220
+ input: {
10221
+ json: {
10222
+ workspace: string;
10223
+ accountId: string;
10224
+ kind: "signature" | "stamp";
10225
+ };
10226
+ };
10227
+ output: {
10228
+ success: false;
10229
+ error: string;
10230
+ };
10231
+ outputFormat: "json";
10232
+ status: 404;
10233
+ } | {
10234
+ input: {
10235
+ json: {
10236
+ workspace: string;
10237
+ accountId: string;
10238
+ kind: "signature" | "stamp";
10239
+ };
10240
+ };
10241
+ output: {
10242
+ success: true;
10243
+ };
10244
+ outputFormat: "json";
10245
+ status: import("hono/utils/http-status").ContentfulStatusCode;
10246
+ };
10247
+ };
10095
10248
  } & {
10096
10249
  "/upload-to-cinvoice-payment": {
10097
10250
  $post: {
@@ -11991,6 +12144,10 @@ declare const routes: import("hono/hono-base").HonoBase<{
11991
12144
  companyKpp: string | null;
11992
12145
  companyOgrn: string | null;
11993
12146
  legalAddress: string | null;
12147
+ directorName: string | null;
12148
+ chiefAccountantName: string | null;
12149
+ hasSignatureImage: boolean;
12150
+ hasStampImage: boolean;
11994
12151
  bankName: string | null;
11995
12152
  bankBik: string | null;
11996
12153
  bankKc: string | null;
@@ -12049,6 +12206,10 @@ declare const routes: import("hono/hono-base").HonoBase<{
12049
12206
  companyKpp: string | null;
12050
12207
  companyOgrn: string | null;
12051
12208
  legalAddress: string | null;
12209
+ directorName: string | null;
12210
+ chiefAccountantName: string | null;
12211
+ hasSignatureImage: boolean;
12212
+ hasStampImage: boolean;
12052
12213
  bankName: string | null;
12053
12214
  bankBik: string | null;
12054
12215
  bankKc: string | null;
@@ -12079,6 +12240,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
12079
12240
  companyKpp?: string | undefined;
12080
12241
  companyOgrn?: string | undefined;
12081
12242
  legalAddress?: string | undefined;
12243
+ directorName?: string | undefined;
12244
+ chiefAccountantName?: string | undefined;
12082
12245
  bankName?: string | undefined;
12083
12246
  bankBik?: string | undefined;
12084
12247
  bankKc?: string | undefined;
@@ -12111,6 +12274,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
12111
12274
  companyKpp?: string | undefined;
12112
12275
  companyOgrn?: string | undefined;
12113
12276
  legalAddress?: string | undefined;
12277
+ directorName?: string | undefined;
12278
+ chiefAccountantName?: string | undefined;
12114
12279
  bankName?: string | undefined;
12115
12280
  bankBik?: string | undefined;
12116
12281
  bankKc?: string | undefined;
@@ -12143,6 +12308,10 @@ declare const routes: import("hono/hono-base").HonoBase<{
12143
12308
  companyKpp: string | null;
12144
12309
  companyOgrn: string | null;
12145
12310
  legalAddress: string | null;
12311
+ directorName: string | null;
12312
+ chiefAccountantName: string | null;
12313
+ hasSignatureImage: boolean;
12314
+ hasStampImage: boolean;
12146
12315
  bankName: string | null;
12147
12316
  bankBik: string | null;
12148
12317
  bankKc: string | null;
@@ -12172,6 +12341,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
12172
12341
  companyKpp?: string | undefined;
12173
12342
  companyOgrn?: string | undefined;
12174
12343
  legalAddress?: string | undefined;
12344
+ directorName?: string | undefined;
12345
+ chiefAccountantName?: string | undefined;
12175
12346
  bankName?: string | undefined;
12176
12347
  bankBik?: string | undefined;
12177
12348
  bankKc?: string | undefined;
@@ -12205,6 +12376,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
12205
12376
  companyKpp?: string | undefined;
12206
12377
  companyOgrn?: string | undefined;
12207
12378
  legalAddress?: string | undefined;
12379
+ directorName?: string | undefined;
12380
+ chiefAccountantName?: string | undefined;
12208
12381
  bankName?: string | undefined;
12209
12382
  bankBik?: string | undefined;
12210
12383
  bankKc?: string | undefined;
@@ -12239,6 +12412,10 @@ declare const routes: import("hono/hono-base").HonoBase<{
12239
12412
  companyKpp: string | null;
12240
12413
  companyOgrn: string | null;
12241
12414
  legalAddress: string | null;
12415
+ directorName: string | null;
12416
+ chiefAccountantName: string | null;
12417
+ hasSignatureImage: boolean;
12418
+ hasStampImage: boolean;
12242
12419
  bankName: string | null;
12243
12420
  bankBik: string | null;
12244
12421
  bankKc: string | null;
@@ -12295,6 +12472,10 @@ declare const routes: import("hono/hono-base").HonoBase<{
12295
12472
  companyKpp: string | null;
12296
12473
  companyOgrn: string | null;
12297
12474
  legalAddress: string | null;
12475
+ directorName: string | null;
12476
+ chiefAccountantName: string | null;
12477
+ hasSignatureImage: boolean;
12478
+ hasStampImage: boolean;
12298
12479
  bankName: string | null;
12299
12480
  bankBik: string | null;
12300
12481
  bankKc: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mestra-dev/contract",
3
- "version": "0.0.311",
3
+ "version": "0.0.313",
4
4
  "description": "Types-only Hono AppType contract for the Mestra auth API",
5
5
  "type": "module",
6
6
  "sideEffects": false,