@mestra-dev/contract 0.0.294 → 0.0.296
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/index.d.ts +1212 -25
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -700,6 +700,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
700
700
|
createdBy: string;
|
|
701
701
|
sourceInvoiceId: string | null;
|
|
702
702
|
notifiedAt: string | null;
|
|
703
|
+
partnerId: string | null;
|
|
704
|
+
partnerRole: string | null;
|
|
703
705
|
};
|
|
704
706
|
};
|
|
705
707
|
outputFormat: "json";
|
|
@@ -780,6 +782,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
780
782
|
restrictedToUserId: string | null;
|
|
781
783
|
sourceInvoiceId: string | null;
|
|
782
784
|
notifiedAt: string | null;
|
|
785
|
+
partnerId: string | null;
|
|
786
|
+
partnerRole: string | null;
|
|
783
787
|
};
|
|
784
788
|
};
|
|
785
789
|
outputFormat: "json";
|
|
@@ -2072,6 +2076,247 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
2072
2076
|
status: 201;
|
|
2073
2077
|
};
|
|
2074
2078
|
};
|
|
2079
|
+
} & {
|
|
2080
|
+
"/member/documents/:workspace": {
|
|
2081
|
+
$get: {
|
|
2082
|
+
input: {
|
|
2083
|
+
query: {
|
|
2084
|
+
collaboratorId: string;
|
|
2085
|
+
};
|
|
2086
|
+
} & {
|
|
2087
|
+
param: {
|
|
2088
|
+
workspace: string;
|
|
2089
|
+
};
|
|
2090
|
+
};
|
|
2091
|
+
output: {
|
|
2092
|
+
success: true;
|
|
2093
|
+
documents: {
|
|
2094
|
+
id: string;
|
|
2095
|
+
collaboratorId: string;
|
|
2096
|
+
name: string;
|
|
2097
|
+
number: string | null;
|
|
2098
|
+
issuer: string;
|
|
2099
|
+
issuedAt: string;
|
|
2100
|
+
expiresAt: string | null;
|
|
2101
|
+
file: {
|
|
2102
|
+
name: string;
|
|
2103
|
+
size: number;
|
|
2104
|
+
downloadUrl: string;
|
|
2105
|
+
} | null;
|
|
2106
|
+
createdAt: string;
|
|
2107
|
+
updatedAt: string;
|
|
2108
|
+
}[];
|
|
2109
|
+
};
|
|
2110
|
+
outputFormat: "json";
|
|
2111
|
+
status: 200;
|
|
2112
|
+
};
|
|
2113
|
+
};
|
|
2114
|
+
} & {
|
|
2115
|
+
"/member/documents": {
|
|
2116
|
+
$post: {
|
|
2117
|
+
input: {
|
|
2118
|
+
json: {
|
|
2119
|
+
name: string;
|
|
2120
|
+
number?: string | null | undefined;
|
|
2121
|
+
issuer: string;
|
|
2122
|
+
issuedAt: string;
|
|
2123
|
+
expiresAt: string | null;
|
|
2124
|
+
workspace: string;
|
|
2125
|
+
collaboratorId: string;
|
|
2126
|
+
};
|
|
2127
|
+
};
|
|
2128
|
+
output: {
|
|
2129
|
+
success: false;
|
|
2130
|
+
error: string;
|
|
2131
|
+
};
|
|
2132
|
+
outputFormat: "json";
|
|
2133
|
+
status: 403;
|
|
2134
|
+
} | {
|
|
2135
|
+
input: {
|
|
2136
|
+
json: {
|
|
2137
|
+
name: string;
|
|
2138
|
+
number?: string | null | undefined;
|
|
2139
|
+
issuer: string;
|
|
2140
|
+
issuedAt: string;
|
|
2141
|
+
expiresAt: string | null;
|
|
2142
|
+
workspace: string;
|
|
2143
|
+
collaboratorId: string;
|
|
2144
|
+
};
|
|
2145
|
+
};
|
|
2146
|
+
output: {
|
|
2147
|
+
success: false;
|
|
2148
|
+
error: string;
|
|
2149
|
+
};
|
|
2150
|
+
outputFormat: "json";
|
|
2151
|
+
status: 400;
|
|
2152
|
+
} | {
|
|
2153
|
+
input: {
|
|
2154
|
+
json: {
|
|
2155
|
+
name: string;
|
|
2156
|
+
number?: string | null | undefined;
|
|
2157
|
+
issuer: string;
|
|
2158
|
+
issuedAt: string;
|
|
2159
|
+
expiresAt: string | null;
|
|
2160
|
+
workspace: string;
|
|
2161
|
+
collaboratorId: string;
|
|
2162
|
+
};
|
|
2163
|
+
};
|
|
2164
|
+
output: {
|
|
2165
|
+
success: false;
|
|
2166
|
+
error: string;
|
|
2167
|
+
};
|
|
2168
|
+
outputFormat: "json";
|
|
2169
|
+
status: 404;
|
|
2170
|
+
} | {
|
|
2171
|
+
input: {
|
|
2172
|
+
json: {
|
|
2173
|
+
name: string;
|
|
2174
|
+
number?: string | null | undefined;
|
|
2175
|
+
issuer: string;
|
|
2176
|
+
issuedAt: string;
|
|
2177
|
+
expiresAt: string | null;
|
|
2178
|
+
workspace: string;
|
|
2179
|
+
collaboratorId: string;
|
|
2180
|
+
};
|
|
2181
|
+
};
|
|
2182
|
+
output: {
|
|
2183
|
+
success: true;
|
|
2184
|
+
document: {
|
|
2185
|
+
id: string;
|
|
2186
|
+
collaboratorId: string;
|
|
2187
|
+
name: string;
|
|
2188
|
+
number: string | null;
|
|
2189
|
+
issuer: string;
|
|
2190
|
+
issuedAt: string;
|
|
2191
|
+
expiresAt: string | null;
|
|
2192
|
+
file: {
|
|
2193
|
+
name: string;
|
|
2194
|
+
size: number;
|
|
2195
|
+
downloadUrl: string;
|
|
2196
|
+
} | null;
|
|
2197
|
+
createdAt: string;
|
|
2198
|
+
updatedAt: string;
|
|
2199
|
+
};
|
|
2200
|
+
};
|
|
2201
|
+
outputFormat: "json";
|
|
2202
|
+
status: 201;
|
|
2203
|
+
};
|
|
2204
|
+
};
|
|
2205
|
+
} & {
|
|
2206
|
+
"/member/documents/update": {
|
|
2207
|
+
$post: {
|
|
2208
|
+
input: {
|
|
2209
|
+
json: {
|
|
2210
|
+
name: string;
|
|
2211
|
+
number?: string | null | undefined;
|
|
2212
|
+
issuer: string;
|
|
2213
|
+
issuedAt: string;
|
|
2214
|
+
expiresAt: string | null;
|
|
2215
|
+
workspace: string;
|
|
2216
|
+
documentId: string;
|
|
2217
|
+
};
|
|
2218
|
+
};
|
|
2219
|
+
output: {
|
|
2220
|
+
success: false;
|
|
2221
|
+
error: string;
|
|
2222
|
+
};
|
|
2223
|
+
outputFormat: "json";
|
|
2224
|
+
status: 403;
|
|
2225
|
+
} | {
|
|
2226
|
+
input: {
|
|
2227
|
+
json: {
|
|
2228
|
+
name: string;
|
|
2229
|
+
number?: string | null | undefined;
|
|
2230
|
+
issuer: string;
|
|
2231
|
+
issuedAt: string;
|
|
2232
|
+
expiresAt: string | null;
|
|
2233
|
+
workspace: string;
|
|
2234
|
+
documentId: string;
|
|
2235
|
+
};
|
|
2236
|
+
};
|
|
2237
|
+
output: {
|
|
2238
|
+
success: false;
|
|
2239
|
+
error: string;
|
|
2240
|
+
};
|
|
2241
|
+
outputFormat: "json";
|
|
2242
|
+
status: 404;
|
|
2243
|
+
} | {
|
|
2244
|
+
input: {
|
|
2245
|
+
json: {
|
|
2246
|
+
name: string;
|
|
2247
|
+
number?: string | null | undefined;
|
|
2248
|
+
issuer: string;
|
|
2249
|
+
issuedAt: string;
|
|
2250
|
+
expiresAt: string | null;
|
|
2251
|
+
workspace: string;
|
|
2252
|
+
documentId: string;
|
|
2253
|
+
};
|
|
2254
|
+
};
|
|
2255
|
+
output: {
|
|
2256
|
+
success: true;
|
|
2257
|
+
document: {
|
|
2258
|
+
id: string;
|
|
2259
|
+
collaboratorId: string;
|
|
2260
|
+
name: string;
|
|
2261
|
+
number: string | null;
|
|
2262
|
+
issuer: string;
|
|
2263
|
+
issuedAt: string;
|
|
2264
|
+
expiresAt: string | null;
|
|
2265
|
+
file: {
|
|
2266
|
+
name: string;
|
|
2267
|
+
size: number;
|
|
2268
|
+
downloadUrl: string;
|
|
2269
|
+
} | null;
|
|
2270
|
+
createdAt: string;
|
|
2271
|
+
updatedAt: string;
|
|
2272
|
+
};
|
|
2273
|
+
};
|
|
2274
|
+
outputFormat: "json";
|
|
2275
|
+
status: 200;
|
|
2276
|
+
};
|
|
2277
|
+
};
|
|
2278
|
+
} & {
|
|
2279
|
+
"/member/documents/delete": {
|
|
2280
|
+
$post: {
|
|
2281
|
+
input: {
|
|
2282
|
+
json: {
|
|
2283
|
+
workspace: string;
|
|
2284
|
+
documentId: string;
|
|
2285
|
+
};
|
|
2286
|
+
};
|
|
2287
|
+
output: {
|
|
2288
|
+
success: false;
|
|
2289
|
+
error: string;
|
|
2290
|
+
};
|
|
2291
|
+
outputFormat: "json";
|
|
2292
|
+
status: 403;
|
|
2293
|
+
} | {
|
|
2294
|
+
input: {
|
|
2295
|
+
json: {
|
|
2296
|
+
workspace: string;
|
|
2297
|
+
documentId: string;
|
|
2298
|
+
};
|
|
2299
|
+
};
|
|
2300
|
+
output: {
|
|
2301
|
+
success: false;
|
|
2302
|
+
error: string;
|
|
2303
|
+
};
|
|
2304
|
+
outputFormat: "json";
|
|
2305
|
+
status: 404;
|
|
2306
|
+
} | {
|
|
2307
|
+
input: {
|
|
2308
|
+
json: {
|
|
2309
|
+
workspace: string;
|
|
2310
|
+
documentId: string;
|
|
2311
|
+
};
|
|
2312
|
+
};
|
|
2313
|
+
output: {
|
|
2314
|
+
success: true;
|
|
2315
|
+
};
|
|
2316
|
+
outputFormat: "json";
|
|
2317
|
+
status: 200;
|
|
2318
|
+
};
|
|
2319
|
+
};
|
|
2075
2320
|
} & {
|
|
2076
2321
|
"/settings": {
|
|
2077
2322
|
$post: {
|
|
@@ -6315,6 +6560,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
6315
6560
|
method: "email" | "popup";
|
|
6316
6561
|
minutes: number;
|
|
6317
6562
|
}[] | undefined;
|
|
6563
|
+
recurrence?: string[] | undefined;
|
|
6318
6564
|
};
|
|
6319
6565
|
};
|
|
6320
6566
|
output: {
|
|
@@ -6722,6 +6968,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
6722
6968
|
method: "email" | "popup";
|
|
6723
6969
|
minutes: number;
|
|
6724
6970
|
}[] | undefined;
|
|
6971
|
+
recurrence?: string[] | undefined;
|
|
6725
6972
|
startDate?: string | number | undefined;
|
|
6726
6973
|
endDate?: string | number | undefined;
|
|
6727
6974
|
timeZone?: string | undefined;
|
|
@@ -6750,6 +6997,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
6750
6997
|
method: "email" | "popup";
|
|
6751
6998
|
minutes: number;
|
|
6752
6999
|
}[] | undefined;
|
|
7000
|
+
recurrence?: string[] | undefined;
|
|
6753
7001
|
startDate?: string | number | undefined;
|
|
6754
7002
|
endDate?: string | number | undefined;
|
|
6755
7003
|
timeZone?: string | undefined;
|
|
@@ -7348,6 +7596,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
7348
7596
|
customerBytes: number;
|
|
7349
7597
|
servicesBytes: number;
|
|
7350
7598
|
financeBytes: number;
|
|
7599
|
+
membersBytes: number;
|
|
7351
7600
|
limitBytes: number | null;
|
|
7352
7601
|
};
|
|
7353
7602
|
outputFormat: "json";
|
|
@@ -8160,7 +8409,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
8160
8409
|
};
|
|
8161
8410
|
};
|
|
8162
8411
|
} & {
|
|
8163
|
-
"/upload-to-
|
|
8412
|
+
"/upload-to-member-document": {
|
|
8164
8413
|
$post: {
|
|
8165
8414
|
input: {
|
|
8166
8415
|
json: {
|
|
@@ -8168,7 +8417,23 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
8168
8417
|
contentType: string;
|
|
8169
8418
|
contentLength: number;
|
|
8170
8419
|
workspace: string;
|
|
8171
|
-
|
|
8420
|
+
documentId: string;
|
|
8421
|
+
};
|
|
8422
|
+
};
|
|
8423
|
+
output: {
|
|
8424
|
+
success: false;
|
|
8425
|
+
error: string;
|
|
8426
|
+
};
|
|
8427
|
+
outputFormat: "json";
|
|
8428
|
+
status: 403;
|
|
8429
|
+
} | {
|
|
8430
|
+
input: {
|
|
8431
|
+
json: {
|
|
8432
|
+
filename: string;
|
|
8433
|
+
contentType: string;
|
|
8434
|
+
contentLength: number;
|
|
8435
|
+
workspace: string;
|
|
8436
|
+
documentId: string;
|
|
8172
8437
|
};
|
|
8173
8438
|
};
|
|
8174
8439
|
output: {
|
|
@@ -8184,7 +8449,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
8184
8449
|
contentType: string;
|
|
8185
8450
|
contentLength: number;
|
|
8186
8451
|
workspace: string;
|
|
8187
|
-
|
|
8452
|
+
documentId: string;
|
|
8188
8453
|
};
|
|
8189
8454
|
};
|
|
8190
8455
|
output: {
|
|
@@ -8201,13 +8466,27 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
8201
8466
|
};
|
|
8202
8467
|
};
|
|
8203
8468
|
} & {
|
|
8204
|
-
"/confirm-
|
|
8469
|
+
"/confirm-member-document-file": {
|
|
8205
8470
|
$post: {
|
|
8206
8471
|
input: {
|
|
8207
8472
|
json: {
|
|
8208
8473
|
filename: string;
|
|
8209
8474
|
workspace: string;
|
|
8210
|
-
|
|
8475
|
+
documentId: string;
|
|
8476
|
+
};
|
|
8477
|
+
};
|
|
8478
|
+
output: {
|
|
8479
|
+
success: false;
|
|
8480
|
+
error: string;
|
|
8481
|
+
};
|
|
8482
|
+
outputFormat: "json";
|
|
8483
|
+
status: 403;
|
|
8484
|
+
} | {
|
|
8485
|
+
input: {
|
|
8486
|
+
json: {
|
|
8487
|
+
filename: string;
|
|
8488
|
+
workspace: string;
|
|
8489
|
+
documentId: string;
|
|
8211
8490
|
};
|
|
8212
8491
|
};
|
|
8213
8492
|
output: {
|
|
@@ -8221,12 +8500,28 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
8221
8500
|
json: {
|
|
8222
8501
|
filename: string;
|
|
8223
8502
|
workspace: string;
|
|
8224
|
-
|
|
8503
|
+
documentId: string;
|
|
8225
8504
|
};
|
|
8226
8505
|
};
|
|
8227
8506
|
output: {
|
|
8228
8507
|
success: true;
|
|
8229
8508
|
key: string;
|
|
8509
|
+
document: {
|
|
8510
|
+
id: string;
|
|
8511
|
+
collaboratorId: string;
|
|
8512
|
+
name: string;
|
|
8513
|
+
number: string | null;
|
|
8514
|
+
issuer: string;
|
|
8515
|
+
issuedAt: string;
|
|
8516
|
+
expiresAt: string | null;
|
|
8517
|
+
file: {
|
|
8518
|
+
name: string;
|
|
8519
|
+
size: number;
|
|
8520
|
+
downloadUrl: string;
|
|
8521
|
+
} | null;
|
|
8522
|
+
createdAt: string;
|
|
8523
|
+
updatedAt: string;
|
|
8524
|
+
};
|
|
8230
8525
|
};
|
|
8231
8526
|
outputFormat: "json";
|
|
8232
8527
|
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
@@ -8235,7 +8530,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
8235
8530
|
json: {
|
|
8236
8531
|
filename: string;
|
|
8237
8532
|
workspace: string;
|
|
8238
|
-
|
|
8533
|
+
documentId: string;
|
|
8239
8534
|
};
|
|
8240
8535
|
};
|
|
8241
8536
|
output: {
|
|
@@ -8247,13 +8542,12 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
8247
8542
|
};
|
|
8248
8543
|
};
|
|
8249
8544
|
} & {
|
|
8250
|
-
"/
|
|
8251
|
-
$
|
|
8545
|
+
"/delete-member-document-file": {
|
|
8546
|
+
$post: {
|
|
8252
8547
|
input: {
|
|
8253
|
-
|
|
8548
|
+
json: {
|
|
8254
8549
|
workspace: string;
|
|
8255
|
-
|
|
8256
|
-
transactionId: string;
|
|
8550
|
+
documentId: string;
|
|
8257
8551
|
};
|
|
8258
8552
|
};
|
|
8259
8553
|
output: {
|
|
@@ -8261,24 +8555,170 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
8261
8555
|
error: string;
|
|
8262
8556
|
};
|
|
8263
8557
|
outputFormat: "json";
|
|
8264
|
-
status:
|
|
8558
|
+
status: 403;
|
|
8265
8559
|
} | {
|
|
8266
8560
|
input: {
|
|
8267
|
-
|
|
8561
|
+
json: {
|
|
8268
8562
|
workspace: string;
|
|
8269
|
-
|
|
8270
|
-
transactionId: string;
|
|
8563
|
+
documentId: string;
|
|
8271
8564
|
};
|
|
8272
8565
|
};
|
|
8273
8566
|
output: {
|
|
8274
|
-
success:
|
|
8275
|
-
|
|
8276
|
-
|
|
8277
|
-
|
|
8278
|
-
|
|
8279
|
-
|
|
8280
|
-
|
|
8281
|
-
|
|
8567
|
+
success: false;
|
|
8568
|
+
error: string;
|
|
8569
|
+
};
|
|
8570
|
+
outputFormat: "json";
|
|
8571
|
+
status: 404;
|
|
8572
|
+
} | {
|
|
8573
|
+
input: {
|
|
8574
|
+
json: {
|
|
8575
|
+
workspace: string;
|
|
8576
|
+
documentId: string;
|
|
8577
|
+
};
|
|
8578
|
+
};
|
|
8579
|
+
output: {
|
|
8580
|
+
success: true;
|
|
8581
|
+
document: {
|
|
8582
|
+
id: string;
|
|
8583
|
+
collaboratorId: string;
|
|
8584
|
+
name: string;
|
|
8585
|
+
number: string | null;
|
|
8586
|
+
issuer: string;
|
|
8587
|
+
issuedAt: string;
|
|
8588
|
+
expiresAt: string | null;
|
|
8589
|
+
file: {
|
|
8590
|
+
name: string;
|
|
8591
|
+
size: number;
|
|
8592
|
+
downloadUrl: string;
|
|
8593
|
+
} | null;
|
|
8594
|
+
createdAt: string;
|
|
8595
|
+
updatedAt: string;
|
|
8596
|
+
};
|
|
8597
|
+
};
|
|
8598
|
+
outputFormat: "json";
|
|
8599
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
8600
|
+
};
|
|
8601
|
+
};
|
|
8602
|
+
} & {
|
|
8603
|
+
"/upload-to-finance": {
|
|
8604
|
+
$post: {
|
|
8605
|
+
input: {
|
|
8606
|
+
json: {
|
|
8607
|
+
filename: string;
|
|
8608
|
+
contentType: string;
|
|
8609
|
+
contentLength: number;
|
|
8610
|
+
workspace: string;
|
|
8611
|
+
transactionId: string;
|
|
8612
|
+
};
|
|
8613
|
+
};
|
|
8614
|
+
output: {
|
|
8615
|
+
success: false;
|
|
8616
|
+
error: string;
|
|
8617
|
+
};
|
|
8618
|
+
outputFormat: "json";
|
|
8619
|
+
status: 404;
|
|
8620
|
+
} | {
|
|
8621
|
+
input: {
|
|
8622
|
+
json: {
|
|
8623
|
+
filename: string;
|
|
8624
|
+
contentType: string;
|
|
8625
|
+
contentLength: number;
|
|
8626
|
+
workspace: string;
|
|
8627
|
+
transactionId: string;
|
|
8628
|
+
};
|
|
8629
|
+
};
|
|
8630
|
+
output: {
|
|
8631
|
+
success: true;
|
|
8632
|
+
url: string;
|
|
8633
|
+
fields: {
|
|
8634
|
+
[x: string]: string;
|
|
8635
|
+
};
|
|
8636
|
+
key: string;
|
|
8637
|
+
maxSize: number;
|
|
8638
|
+
};
|
|
8639
|
+
outputFormat: "json";
|
|
8640
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
8641
|
+
};
|
|
8642
|
+
};
|
|
8643
|
+
} & {
|
|
8644
|
+
"/confirm-finance-file": {
|
|
8645
|
+
$post: {
|
|
8646
|
+
input: {
|
|
8647
|
+
json: {
|
|
8648
|
+
filename: string;
|
|
8649
|
+
workspace: string;
|
|
8650
|
+
transactionId: string;
|
|
8651
|
+
};
|
|
8652
|
+
};
|
|
8653
|
+
output: {
|
|
8654
|
+
success: false;
|
|
8655
|
+
error: string;
|
|
8656
|
+
};
|
|
8657
|
+
outputFormat: "json";
|
|
8658
|
+
status: 404;
|
|
8659
|
+
} | {
|
|
8660
|
+
input: {
|
|
8661
|
+
json: {
|
|
8662
|
+
filename: string;
|
|
8663
|
+
workspace: string;
|
|
8664
|
+
transactionId: string;
|
|
8665
|
+
};
|
|
8666
|
+
};
|
|
8667
|
+
output: {
|
|
8668
|
+
success: true;
|
|
8669
|
+
key: string;
|
|
8670
|
+
};
|
|
8671
|
+
outputFormat: "json";
|
|
8672
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
8673
|
+
} | {
|
|
8674
|
+
input: {
|
|
8675
|
+
json: {
|
|
8676
|
+
filename: string;
|
|
8677
|
+
workspace: string;
|
|
8678
|
+
transactionId: string;
|
|
8679
|
+
};
|
|
8680
|
+
};
|
|
8681
|
+
output: {
|
|
8682
|
+
success: false;
|
|
8683
|
+
error: string;
|
|
8684
|
+
};
|
|
8685
|
+
outputFormat: "json";
|
|
8686
|
+
status: 400;
|
|
8687
|
+
};
|
|
8688
|
+
};
|
|
8689
|
+
} & {
|
|
8690
|
+
"/download-from-finance/:workspace/:transactionId": {
|
|
8691
|
+
$get: {
|
|
8692
|
+
input: {
|
|
8693
|
+
param: {
|
|
8694
|
+
workspace: string;
|
|
8695
|
+
} & {
|
|
8696
|
+
transactionId: string;
|
|
8697
|
+
};
|
|
8698
|
+
};
|
|
8699
|
+
output: {
|
|
8700
|
+
success: false;
|
|
8701
|
+
error: string;
|
|
8702
|
+
};
|
|
8703
|
+
outputFormat: "json";
|
|
8704
|
+
status: 404;
|
|
8705
|
+
} | {
|
|
8706
|
+
input: {
|
|
8707
|
+
param: {
|
|
8708
|
+
workspace: string;
|
|
8709
|
+
} & {
|
|
8710
|
+
transactionId: string;
|
|
8711
|
+
};
|
|
8712
|
+
};
|
|
8713
|
+
output: {
|
|
8714
|
+
success: true;
|
|
8715
|
+
files: {
|
|
8716
|
+
key: string;
|
|
8717
|
+
filename: string;
|
|
8718
|
+
size: number;
|
|
8719
|
+
lastModified: string | null;
|
|
8720
|
+
downloadUrl: string;
|
|
8721
|
+
}[];
|
|
8282
8722
|
};
|
|
8283
8723
|
outputFormat: "json";
|
|
8284
8724
|
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
@@ -11056,7 +11496,754 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
11056
11496
|
status: 201;
|
|
11057
11497
|
};
|
|
11058
11498
|
};
|
|
11059
|
-
}, "/resources"
|
|
11499
|
+
}, "/resources"> | import("hono/types").MergeSchemaPath<{
|
|
11500
|
+
"/me": {
|
|
11501
|
+
$get: {
|
|
11502
|
+
input: {};
|
|
11503
|
+
output: {
|
|
11504
|
+
success: true;
|
|
11505
|
+
partner: {
|
|
11506
|
+
status: "none";
|
|
11507
|
+
suspensionReason: null;
|
|
11508
|
+
promoCode: null;
|
|
11509
|
+
referralUrl: null;
|
|
11510
|
+
teamPromoCode: null;
|
|
11511
|
+
clientDiscountPercent: number;
|
|
11512
|
+
teamDiscountPercent: number;
|
|
11513
|
+
} | {
|
|
11514
|
+
status: "pending" | "active" | "suspended";
|
|
11515
|
+
suspensionReason: string | null;
|
|
11516
|
+
promoCode: string | null;
|
|
11517
|
+
referralUrl: string | null;
|
|
11518
|
+
teamPromoCode: string | null;
|
|
11519
|
+
clientDiscountPercent: number;
|
|
11520
|
+
teamDiscountPercent: number;
|
|
11521
|
+
};
|
|
11522
|
+
};
|
|
11523
|
+
outputFormat: "json";
|
|
11524
|
+
status: 200;
|
|
11525
|
+
};
|
|
11526
|
+
};
|
|
11527
|
+
} & {
|
|
11528
|
+
"/apply": {
|
|
11529
|
+
$post: {
|
|
11530
|
+
input: {
|
|
11531
|
+
json: {
|
|
11532
|
+
name: string;
|
|
11533
|
+
company: string;
|
|
11534
|
+
email: string;
|
|
11535
|
+
phone: string;
|
|
11536
|
+
};
|
|
11537
|
+
};
|
|
11538
|
+
output: {
|
|
11539
|
+
success: true;
|
|
11540
|
+
partner: {
|
|
11541
|
+
status: "none";
|
|
11542
|
+
suspensionReason: null;
|
|
11543
|
+
promoCode: null;
|
|
11544
|
+
referralUrl: null;
|
|
11545
|
+
teamPromoCode: null;
|
|
11546
|
+
clientDiscountPercent: number;
|
|
11547
|
+
teamDiscountPercent: number;
|
|
11548
|
+
} | {
|
|
11549
|
+
status: "pending" | "active" | "suspended";
|
|
11550
|
+
suspensionReason: string | null;
|
|
11551
|
+
promoCode: string | null;
|
|
11552
|
+
referralUrl: string | null;
|
|
11553
|
+
teamPromoCode: string | null;
|
|
11554
|
+
clientDiscountPercent: number;
|
|
11555
|
+
teamDiscountPercent: number;
|
|
11556
|
+
};
|
|
11557
|
+
};
|
|
11558
|
+
outputFormat: "json";
|
|
11559
|
+
status: 200;
|
|
11560
|
+
};
|
|
11561
|
+
};
|
|
11562
|
+
} & {
|
|
11563
|
+
"/overview": {
|
|
11564
|
+
$get: {
|
|
11565
|
+
input: {};
|
|
11566
|
+
output: {
|
|
11567
|
+
success: true;
|
|
11568
|
+
overview: {
|
|
11569
|
+
tier: {
|
|
11570
|
+
readonly id: "bronze";
|
|
11571
|
+
readonly percent: 20;
|
|
11572
|
+
readonly minClients: 1;
|
|
11573
|
+
} | {
|
|
11574
|
+
readonly id: "silver";
|
|
11575
|
+
readonly percent: 30;
|
|
11576
|
+
readonly minClients: 5;
|
|
11577
|
+
} | {
|
|
11578
|
+
readonly id: "gold";
|
|
11579
|
+
readonly percent: 40;
|
|
11580
|
+
readonly minClients: 15;
|
|
11581
|
+
};
|
|
11582
|
+
nextTier: {
|
|
11583
|
+
readonly id: "bronze";
|
|
11584
|
+
readonly percent: 20;
|
|
11585
|
+
readonly minClients: 1;
|
|
11586
|
+
} | {
|
|
11587
|
+
readonly id: "silver";
|
|
11588
|
+
readonly percent: 30;
|
|
11589
|
+
readonly minClients: 5;
|
|
11590
|
+
} | {
|
|
11591
|
+
readonly id: "gold";
|
|
11592
|
+
readonly percent: 40;
|
|
11593
|
+
readonly minClients: 15;
|
|
11594
|
+
} | null;
|
|
11595
|
+
paidClients: number;
|
|
11596
|
+
signedUpClients: number;
|
|
11597
|
+
nextPayout: {
|
|
11598
|
+
paidAt: string | null;
|
|
11599
|
+
lines: {
|
|
11600
|
+
id: string;
|
|
11601
|
+
kind: "refund" | "commission";
|
|
11602
|
+
workspaceName: string;
|
|
11603
|
+
interval: "monthly" | "yearly";
|
|
11604
|
+
commissionPercent: number;
|
|
11605
|
+
amountKopecks: number;
|
|
11606
|
+
}[];
|
|
11607
|
+
act: {
|
|
11608
|
+
status: "signed" | "unsigned";
|
|
11609
|
+
signedAt: string | null;
|
|
11610
|
+
} | null;
|
|
11611
|
+
payoutFrom: string;
|
|
11612
|
+
payoutTo: string;
|
|
11613
|
+
id: string;
|
|
11614
|
+
period: string;
|
|
11615
|
+
clients: number;
|
|
11616
|
+
amountKopecks: number;
|
|
11617
|
+
status: "paid" | "accruing" | "scheduled";
|
|
11618
|
+
} | null;
|
|
11619
|
+
awaitingClients: {
|
|
11620
|
+
id: string;
|
|
11621
|
+
workspaceName: string;
|
|
11622
|
+
promoCode: string;
|
|
11623
|
+
signedUpAt: string;
|
|
11624
|
+
status: "registered";
|
|
11625
|
+
planName: string;
|
|
11626
|
+
seats: number;
|
|
11627
|
+
interval: "monthly" | "yearly";
|
|
11628
|
+
paidAt: string | null;
|
|
11629
|
+
paymentKopecks: number | null;
|
|
11630
|
+
commissionPercent: number | null;
|
|
11631
|
+
commissionKopecks: number | null;
|
|
11632
|
+
potentialCommissionKopecks: number | null;
|
|
11633
|
+
trialEndsAt: string | null;
|
|
11634
|
+
}[];
|
|
11635
|
+
months: {
|
|
11636
|
+
month: string;
|
|
11637
|
+
commissionKopecks: number;
|
|
11638
|
+
signedUp: number;
|
|
11639
|
+
paid: number;
|
|
11640
|
+
}[];
|
|
11641
|
+
tasks: ({
|
|
11642
|
+
id: string;
|
|
11643
|
+
kind: "payoutDetails";
|
|
11644
|
+
payoutFrom: string;
|
|
11645
|
+
} | {
|
|
11646
|
+
id: string;
|
|
11647
|
+
kind: "signAct";
|
|
11648
|
+
period: string;
|
|
11649
|
+
amountKopecks: number;
|
|
11650
|
+
} | {
|
|
11651
|
+
id: string;
|
|
11652
|
+
kind: "reversed";
|
|
11653
|
+
workspaceName: string;
|
|
11654
|
+
amountKopecks: number;
|
|
11655
|
+
})[];
|
|
11656
|
+
};
|
|
11657
|
+
};
|
|
11658
|
+
outputFormat: "json";
|
|
11659
|
+
status: 200;
|
|
11660
|
+
};
|
|
11661
|
+
};
|
|
11662
|
+
} & {
|
|
11663
|
+
"/clients": {
|
|
11664
|
+
$get: {
|
|
11665
|
+
input: {};
|
|
11666
|
+
output: {
|
|
11667
|
+
success: true;
|
|
11668
|
+
clients: ({
|
|
11669
|
+
id: string;
|
|
11670
|
+
workspaceName: string;
|
|
11671
|
+
promoCode: string;
|
|
11672
|
+
signedUpAt: string;
|
|
11673
|
+
status: "registered";
|
|
11674
|
+
planName: string;
|
|
11675
|
+
seats: number;
|
|
11676
|
+
interval: "monthly" | "yearly";
|
|
11677
|
+
paidAt: string | null;
|
|
11678
|
+
paymentKopecks: number | null;
|
|
11679
|
+
commissionPercent: number | null;
|
|
11680
|
+
commissionKopecks: number | null;
|
|
11681
|
+
potentialCommissionKopecks: number | null;
|
|
11682
|
+
trialEndsAt: string | null;
|
|
11683
|
+
} | {
|
|
11684
|
+
id: string;
|
|
11685
|
+
workspaceName: string;
|
|
11686
|
+
promoCode: string;
|
|
11687
|
+
signedUpAt: string;
|
|
11688
|
+
status: "paid" | "refunded";
|
|
11689
|
+
planName: string;
|
|
11690
|
+
seats: number;
|
|
11691
|
+
interval: "monthly" | "yearly";
|
|
11692
|
+
paidAt: string;
|
|
11693
|
+
paymentKopecks: number;
|
|
11694
|
+
commissionPercent: number;
|
|
11695
|
+
commissionKopecks: number;
|
|
11696
|
+
potentialCommissionKopecks: number | null;
|
|
11697
|
+
trialEndsAt: string | null;
|
|
11698
|
+
})[];
|
|
11699
|
+
};
|
|
11700
|
+
outputFormat: "json";
|
|
11701
|
+
status: 200;
|
|
11702
|
+
};
|
|
11703
|
+
};
|
|
11704
|
+
} & {
|
|
11705
|
+
"/payouts": {
|
|
11706
|
+
$get: {
|
|
11707
|
+
input: {};
|
|
11708
|
+
output: {
|
|
11709
|
+
success: true;
|
|
11710
|
+
payouts: {
|
|
11711
|
+
paidAt: string | null;
|
|
11712
|
+
lines: {
|
|
11713
|
+
id: string;
|
|
11714
|
+
kind: "refund" | "commission";
|
|
11715
|
+
workspaceName: string;
|
|
11716
|
+
interval: "monthly" | "yearly";
|
|
11717
|
+
commissionPercent: number;
|
|
11718
|
+
amountKopecks: number;
|
|
11719
|
+
}[];
|
|
11720
|
+
act: {
|
|
11721
|
+
status: "signed" | "unsigned";
|
|
11722
|
+
signedAt: string | null;
|
|
11723
|
+
} | null;
|
|
11724
|
+
payoutFrom: string;
|
|
11725
|
+
payoutTo: string;
|
|
11726
|
+
id: string;
|
|
11727
|
+
period: string;
|
|
11728
|
+
clients: number;
|
|
11729
|
+
amountKopecks: number;
|
|
11730
|
+
status: "paid" | "accruing" | "scheduled";
|
|
11731
|
+
}[];
|
|
11732
|
+
};
|
|
11733
|
+
outputFormat: "json";
|
|
11734
|
+
status: 200;
|
|
11735
|
+
};
|
|
11736
|
+
};
|
|
11737
|
+
} & {
|
|
11738
|
+
"/payout-details": {
|
|
11739
|
+
$get: {
|
|
11740
|
+
input: {};
|
|
11741
|
+
output: {
|
|
11742
|
+
success: true;
|
|
11743
|
+
details: {
|
|
11744
|
+
legalForm: "ip" | "ooo";
|
|
11745
|
+
name: string;
|
|
11746
|
+
inn: string;
|
|
11747
|
+
bik: string;
|
|
11748
|
+
bankName: string;
|
|
11749
|
+
accountNumber: string;
|
|
11750
|
+
} | null;
|
|
11751
|
+
};
|
|
11752
|
+
outputFormat: "json";
|
|
11753
|
+
status: 200;
|
|
11754
|
+
};
|
|
11755
|
+
};
|
|
11756
|
+
} & {
|
|
11757
|
+
"/payout-details": {
|
|
11758
|
+
$put: {
|
|
11759
|
+
input: {
|
|
11760
|
+
json: {
|
|
11761
|
+
legalForm: "ip" | "ooo";
|
|
11762
|
+
name: string;
|
|
11763
|
+
inn: string;
|
|
11764
|
+
bik: string;
|
|
11765
|
+
accountNumber: string;
|
|
11766
|
+
};
|
|
11767
|
+
};
|
|
11768
|
+
output: {
|
|
11769
|
+
success: true;
|
|
11770
|
+
details: {
|
|
11771
|
+
legalForm: "ip" | "ooo";
|
|
11772
|
+
name: string;
|
|
11773
|
+
inn: string;
|
|
11774
|
+
bik: string;
|
|
11775
|
+
bankName: string;
|
|
11776
|
+
accountNumber: string;
|
|
11777
|
+
} | null;
|
|
11778
|
+
};
|
|
11779
|
+
outputFormat: "json";
|
|
11780
|
+
status: 200;
|
|
11781
|
+
};
|
|
11782
|
+
};
|
|
11783
|
+
} & {
|
|
11784
|
+
"/promo-codes": {
|
|
11785
|
+
$get: {
|
|
11786
|
+
input: {};
|
|
11787
|
+
output: {
|
|
11788
|
+
codes: {
|
|
11789
|
+
id: string;
|
|
11790
|
+
code: string;
|
|
11791
|
+
kind: "main" | "custom" | "team";
|
|
11792
|
+
discountPercent: number;
|
|
11793
|
+
isActive: boolean;
|
|
11794
|
+
clients: number;
|
|
11795
|
+
}[];
|
|
11796
|
+
requests: {
|
|
11797
|
+
id: string;
|
|
11798
|
+
code: string;
|
|
11799
|
+
discountPercent: number;
|
|
11800
|
+
note: string | null;
|
|
11801
|
+
status: "pending" | "approved" | "rejected";
|
|
11802
|
+
reviewNote: string | null;
|
|
11803
|
+
createdAt: string;
|
|
11804
|
+
}[];
|
|
11805
|
+
success: true;
|
|
11806
|
+
};
|
|
11807
|
+
outputFormat: "json";
|
|
11808
|
+
status: 200;
|
|
11809
|
+
};
|
|
11810
|
+
};
|
|
11811
|
+
} & {
|
|
11812
|
+
"/promo-codes": {
|
|
11813
|
+
$post: {
|
|
11814
|
+
input: {
|
|
11815
|
+
json: {
|
|
11816
|
+
code: string;
|
|
11817
|
+
percent: number;
|
|
11818
|
+
note?: string | undefined;
|
|
11819
|
+
};
|
|
11820
|
+
};
|
|
11821
|
+
output: {
|
|
11822
|
+
success: true;
|
|
11823
|
+
request: {
|
|
11824
|
+
id: string;
|
|
11825
|
+
code: string;
|
|
11826
|
+
discountPercent: number;
|
|
11827
|
+
note: string | null;
|
|
11828
|
+
status: "pending";
|
|
11829
|
+
reviewNote: null;
|
|
11830
|
+
createdAt: string;
|
|
11831
|
+
};
|
|
11832
|
+
};
|
|
11833
|
+
outputFormat: "json";
|
|
11834
|
+
status: 201;
|
|
11835
|
+
};
|
|
11836
|
+
};
|
|
11837
|
+
} & {
|
|
11838
|
+
"/acts/:period/code": {
|
|
11839
|
+
$post: {
|
|
11840
|
+
input: {
|
|
11841
|
+
param: {
|
|
11842
|
+
period: string;
|
|
11843
|
+
};
|
|
11844
|
+
};
|
|
11845
|
+
output: {
|
|
11846
|
+
phone: string;
|
|
11847
|
+
success: true;
|
|
11848
|
+
};
|
|
11849
|
+
outputFormat: "json";
|
|
11850
|
+
status: 200;
|
|
11851
|
+
};
|
|
11852
|
+
};
|
|
11853
|
+
} & {
|
|
11854
|
+
"/acts/:period/sign": {
|
|
11855
|
+
$post: {
|
|
11856
|
+
input: {
|
|
11857
|
+
json: {
|
|
11858
|
+
code: string;
|
|
11859
|
+
};
|
|
11860
|
+
} & {
|
|
11861
|
+
param: {
|
|
11862
|
+
period: string;
|
|
11863
|
+
};
|
|
11864
|
+
};
|
|
11865
|
+
output: {
|
|
11866
|
+
success: true;
|
|
11867
|
+
};
|
|
11868
|
+
outputFormat: "json";
|
|
11869
|
+
status: 200;
|
|
11870
|
+
};
|
|
11871
|
+
};
|
|
11872
|
+
} & {
|
|
11873
|
+
"/admin/promo-requests": {
|
|
11874
|
+
$get: {
|
|
11875
|
+
input: {};
|
|
11876
|
+
output: {
|
|
11877
|
+
success: false;
|
|
11878
|
+
error: string;
|
|
11879
|
+
};
|
|
11880
|
+
outputFormat: "json";
|
|
11881
|
+
status: 401;
|
|
11882
|
+
} | {
|
|
11883
|
+
input: {};
|
|
11884
|
+
output: {
|
|
11885
|
+
success: true;
|
|
11886
|
+
requests: {
|
|
11887
|
+
id: string;
|
|
11888
|
+
partnerId: string;
|
|
11889
|
+
partnerName: string;
|
|
11890
|
+
company: string;
|
|
11891
|
+
code: string;
|
|
11892
|
+
percent: number;
|
|
11893
|
+
note: string | null;
|
|
11894
|
+
createdAt: string;
|
|
11895
|
+
}[];
|
|
11896
|
+
};
|
|
11897
|
+
outputFormat: "json";
|
|
11898
|
+
status: 200;
|
|
11899
|
+
};
|
|
11900
|
+
};
|
|
11901
|
+
} & {
|
|
11902
|
+
"/admin/promo-requests/:requestId/approve": {
|
|
11903
|
+
$post: {
|
|
11904
|
+
input: {
|
|
11905
|
+
json: {
|
|
11906
|
+
percent?: number | undefined;
|
|
11907
|
+
};
|
|
11908
|
+
} & {
|
|
11909
|
+
param: {
|
|
11910
|
+
requestId: string;
|
|
11911
|
+
};
|
|
11912
|
+
};
|
|
11913
|
+
output: {
|
|
11914
|
+
success: false;
|
|
11915
|
+
error: string;
|
|
11916
|
+
};
|
|
11917
|
+
outputFormat: "json";
|
|
11918
|
+
status: 401;
|
|
11919
|
+
} | {
|
|
11920
|
+
input: {
|
|
11921
|
+
json: {
|
|
11922
|
+
percent?: number | undefined;
|
|
11923
|
+
};
|
|
11924
|
+
} & {
|
|
11925
|
+
param: {
|
|
11926
|
+
requestId: string;
|
|
11927
|
+
};
|
|
11928
|
+
};
|
|
11929
|
+
output: {
|
|
11930
|
+
success: true;
|
|
11931
|
+
};
|
|
11932
|
+
outputFormat: "json";
|
|
11933
|
+
status: 200;
|
|
11934
|
+
};
|
|
11935
|
+
};
|
|
11936
|
+
} & {
|
|
11937
|
+
"/admin/promo-requests/:requestId/reject": {
|
|
11938
|
+
$post: {
|
|
11939
|
+
input: {
|
|
11940
|
+
json: {
|
|
11941
|
+
reason: string;
|
|
11942
|
+
};
|
|
11943
|
+
} & {
|
|
11944
|
+
param: {
|
|
11945
|
+
requestId: string;
|
|
11946
|
+
};
|
|
11947
|
+
};
|
|
11948
|
+
output: {
|
|
11949
|
+
success: false;
|
|
11950
|
+
error: string;
|
|
11951
|
+
};
|
|
11952
|
+
outputFormat: "json";
|
|
11953
|
+
status: 401;
|
|
11954
|
+
} | {
|
|
11955
|
+
input: {
|
|
11956
|
+
json: {
|
|
11957
|
+
reason: string;
|
|
11958
|
+
};
|
|
11959
|
+
} & {
|
|
11960
|
+
param: {
|
|
11961
|
+
requestId: string;
|
|
11962
|
+
};
|
|
11963
|
+
};
|
|
11964
|
+
output: {
|
|
11965
|
+
success: true;
|
|
11966
|
+
};
|
|
11967
|
+
outputFormat: "json";
|
|
11968
|
+
status: 200;
|
|
11969
|
+
};
|
|
11970
|
+
};
|
|
11971
|
+
} & {
|
|
11972
|
+
"/admin/payouts": {
|
|
11973
|
+
$get: {
|
|
11974
|
+
input: {};
|
|
11975
|
+
output: {
|
|
11976
|
+
success: false;
|
|
11977
|
+
error: string;
|
|
11978
|
+
};
|
|
11979
|
+
outputFormat: "json";
|
|
11980
|
+
status: 401;
|
|
11981
|
+
} | {
|
|
11982
|
+
input: {};
|
|
11983
|
+
output: {
|
|
11984
|
+
success: true;
|
|
11985
|
+
payouts: {
|
|
11986
|
+
amountKopecks: number;
|
|
11987
|
+
clients: number;
|
|
11988
|
+
payoutDetails: {
|
|
11989
|
+
legalForm: "ip" | "ooo";
|
|
11990
|
+
name: string;
|
|
11991
|
+
inn: string;
|
|
11992
|
+
bik: string;
|
|
11993
|
+
bankName: string;
|
|
11994
|
+
accountNumber: string;
|
|
11995
|
+
} | null;
|
|
11996
|
+
payoutFrom: string;
|
|
11997
|
+
payoutTo: string;
|
|
11998
|
+
partnerId: string;
|
|
11999
|
+
partnerName: string;
|
|
12000
|
+
company: string;
|
|
12001
|
+
period: string;
|
|
12002
|
+
}[];
|
|
12003
|
+
};
|
|
12004
|
+
outputFormat: "json";
|
|
12005
|
+
status: 200;
|
|
12006
|
+
};
|
|
12007
|
+
};
|
|
12008
|
+
} & {
|
|
12009
|
+
"/admin/commissions/:entryId/reverse": {
|
|
12010
|
+
$post: {
|
|
12011
|
+
input: {
|
|
12012
|
+
param: {
|
|
12013
|
+
entryId: string;
|
|
12014
|
+
};
|
|
12015
|
+
};
|
|
12016
|
+
output: {
|
|
12017
|
+
success: false;
|
|
12018
|
+
error: string;
|
|
12019
|
+
};
|
|
12020
|
+
outputFormat: "json";
|
|
12021
|
+
status: 401;
|
|
12022
|
+
} | {
|
|
12023
|
+
input: {
|
|
12024
|
+
param: {
|
|
12025
|
+
entryId: string;
|
|
12026
|
+
};
|
|
12027
|
+
};
|
|
12028
|
+
output: {
|
|
12029
|
+
success: true;
|
|
12030
|
+
refund: {
|
|
12031
|
+
id: string;
|
|
12032
|
+
amountKopecks: number;
|
|
12033
|
+
};
|
|
12034
|
+
};
|
|
12035
|
+
outputFormat: "json";
|
|
12036
|
+
status: 200;
|
|
12037
|
+
};
|
|
12038
|
+
};
|
|
12039
|
+
} & {
|
|
12040
|
+
"/admin": {
|
|
12041
|
+
$get: {
|
|
12042
|
+
input: {
|
|
12043
|
+
query: {
|
|
12044
|
+
status?: "pending" | "active" | "suspended" | undefined;
|
|
12045
|
+
};
|
|
12046
|
+
};
|
|
12047
|
+
output: {
|
|
12048
|
+
success: false;
|
|
12049
|
+
error: string;
|
|
12050
|
+
};
|
|
12051
|
+
outputFormat: "json";
|
|
12052
|
+
status: 401;
|
|
12053
|
+
} | {
|
|
12054
|
+
input: {
|
|
12055
|
+
query: {
|
|
12056
|
+
status?: "pending" | "active" | "suspended" | undefined;
|
|
12057
|
+
};
|
|
12058
|
+
};
|
|
12059
|
+
output: {
|
|
12060
|
+
success: true;
|
|
12061
|
+
partners: {
|
|
12062
|
+
id: string;
|
|
12063
|
+
userId: string;
|
|
12064
|
+
status: string;
|
|
12065
|
+
name: string;
|
|
12066
|
+
company: string;
|
|
12067
|
+
email: string;
|
|
12068
|
+
phone: string;
|
|
12069
|
+
suspensionReason: string | null;
|
|
12070
|
+
appliedAt: string;
|
|
12071
|
+
activatedAt: string | null;
|
|
12072
|
+
payoutDetails: {
|
|
12073
|
+
legalForm: "ip" | "ooo";
|
|
12074
|
+
name: string;
|
|
12075
|
+
inn: string;
|
|
12076
|
+
bik: string;
|
|
12077
|
+
bankName: string;
|
|
12078
|
+
accountNumber: string;
|
|
12079
|
+
} | null;
|
|
12080
|
+
}[];
|
|
12081
|
+
};
|
|
12082
|
+
outputFormat: "json";
|
|
12083
|
+
status: 200;
|
|
12084
|
+
};
|
|
12085
|
+
};
|
|
12086
|
+
} & {
|
|
12087
|
+
"/admin/:partnerId/activate": {
|
|
12088
|
+
$post: {
|
|
12089
|
+
input: {
|
|
12090
|
+
json: {
|
|
12091
|
+
promoCode: string;
|
|
12092
|
+
};
|
|
12093
|
+
} & {
|
|
12094
|
+
param: {
|
|
12095
|
+
partnerId: string;
|
|
12096
|
+
};
|
|
12097
|
+
};
|
|
12098
|
+
output: {
|
|
12099
|
+
success: false;
|
|
12100
|
+
error: string;
|
|
12101
|
+
};
|
|
12102
|
+
outputFormat: "json";
|
|
12103
|
+
status: 401;
|
|
12104
|
+
} | {
|
|
12105
|
+
input: {
|
|
12106
|
+
json: {
|
|
12107
|
+
promoCode: string;
|
|
12108
|
+
};
|
|
12109
|
+
} & {
|
|
12110
|
+
param: {
|
|
12111
|
+
partnerId: string;
|
|
12112
|
+
};
|
|
12113
|
+
};
|
|
12114
|
+
output: {
|
|
12115
|
+
success: true;
|
|
12116
|
+
};
|
|
12117
|
+
outputFormat: "json";
|
|
12118
|
+
status: 200;
|
|
12119
|
+
};
|
|
12120
|
+
};
|
|
12121
|
+
} & {
|
|
12122
|
+
"/admin/:partnerId/reject": {
|
|
12123
|
+
$post: {
|
|
12124
|
+
input: {
|
|
12125
|
+
param: {
|
|
12126
|
+
partnerId: string;
|
|
12127
|
+
};
|
|
12128
|
+
};
|
|
12129
|
+
output: {
|
|
12130
|
+
success: false;
|
|
12131
|
+
error: string;
|
|
12132
|
+
};
|
|
12133
|
+
outputFormat: "json";
|
|
12134
|
+
status: 401;
|
|
12135
|
+
} | {
|
|
12136
|
+
input: {
|
|
12137
|
+
param: {
|
|
12138
|
+
partnerId: string;
|
|
12139
|
+
};
|
|
12140
|
+
};
|
|
12141
|
+
output: {
|
|
12142
|
+
success: true;
|
|
12143
|
+
};
|
|
12144
|
+
outputFormat: "json";
|
|
12145
|
+
status: 200;
|
|
12146
|
+
};
|
|
12147
|
+
};
|
|
12148
|
+
} & {
|
|
12149
|
+
"/admin/:partnerId/suspend": {
|
|
12150
|
+
$post: {
|
|
12151
|
+
input: {
|
|
12152
|
+
json: {
|
|
12153
|
+
reason: string;
|
|
12154
|
+
};
|
|
12155
|
+
} & {
|
|
12156
|
+
param: {
|
|
12157
|
+
partnerId: string;
|
|
12158
|
+
};
|
|
12159
|
+
};
|
|
12160
|
+
output: {
|
|
12161
|
+
success: false;
|
|
12162
|
+
error: string;
|
|
12163
|
+
};
|
|
12164
|
+
outputFormat: "json";
|
|
12165
|
+
status: 401;
|
|
12166
|
+
} | {
|
|
12167
|
+
input: {
|
|
12168
|
+
json: {
|
|
12169
|
+
reason: string;
|
|
12170
|
+
};
|
|
12171
|
+
} & {
|
|
12172
|
+
param: {
|
|
12173
|
+
partnerId: string;
|
|
12174
|
+
};
|
|
12175
|
+
};
|
|
12176
|
+
output: {
|
|
12177
|
+
success: true;
|
|
12178
|
+
};
|
|
12179
|
+
outputFormat: "json";
|
|
12180
|
+
status: 200;
|
|
12181
|
+
};
|
|
12182
|
+
};
|
|
12183
|
+
} & {
|
|
12184
|
+
"/admin/:partnerId/reactivate": {
|
|
12185
|
+
$post: {
|
|
12186
|
+
input: {
|
|
12187
|
+
param: {
|
|
12188
|
+
partnerId: string;
|
|
12189
|
+
};
|
|
12190
|
+
};
|
|
12191
|
+
output: {
|
|
12192
|
+
success: false;
|
|
12193
|
+
error: string;
|
|
12194
|
+
};
|
|
12195
|
+
outputFormat: "json";
|
|
12196
|
+
status: 401;
|
|
12197
|
+
} | {
|
|
12198
|
+
input: {
|
|
12199
|
+
param: {
|
|
12200
|
+
partnerId: string;
|
|
12201
|
+
};
|
|
12202
|
+
};
|
|
12203
|
+
output: {
|
|
12204
|
+
success: true;
|
|
12205
|
+
};
|
|
12206
|
+
outputFormat: "json";
|
|
12207
|
+
status: 200;
|
|
12208
|
+
};
|
|
12209
|
+
};
|
|
12210
|
+
} & {
|
|
12211
|
+
"/admin/:partnerId/payouts/:period/paid": {
|
|
12212
|
+
$post: {
|
|
12213
|
+
input: {
|
|
12214
|
+
param: {
|
|
12215
|
+
period: string;
|
|
12216
|
+
} & {
|
|
12217
|
+
partnerId: string;
|
|
12218
|
+
};
|
|
12219
|
+
};
|
|
12220
|
+
output: {
|
|
12221
|
+
success: false;
|
|
12222
|
+
error: string;
|
|
12223
|
+
};
|
|
12224
|
+
outputFormat: "json";
|
|
12225
|
+
status: 401;
|
|
12226
|
+
} | {
|
|
12227
|
+
input: {
|
|
12228
|
+
param: {
|
|
12229
|
+
period: string;
|
|
12230
|
+
} & {
|
|
12231
|
+
partnerId: string;
|
|
12232
|
+
};
|
|
12233
|
+
};
|
|
12234
|
+
output: {
|
|
12235
|
+
success: true;
|
|
12236
|
+
payout: {
|
|
12237
|
+
period: string;
|
|
12238
|
+
amountKopecks: number;
|
|
12239
|
+
paidAt: string;
|
|
12240
|
+
};
|
|
12241
|
+
};
|
|
12242
|
+
outputFormat: "json";
|
|
12243
|
+
status: 200;
|
|
12244
|
+
};
|
|
12245
|
+
};
|
|
12246
|
+
}, "/partners">, "/", "/">;
|
|
11060
12247
|
type GlobalErrorResponses = {
|
|
11061
12248
|
400: {
|
|
11062
12249
|
json: ApiError;
|