@mestra-dev/contract 0.0.180 → 0.0.181
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 +564 -30
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1270,14 +1270,21 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
1270
1270
|
readonly type: "string";
|
|
1271
1271
|
readonly nullable: true;
|
|
1272
1272
|
};
|
|
1273
|
-
readonly
|
|
1273
|
+
readonly phaseId: {
|
|
1274
|
+
readonly type: "string";
|
|
1275
|
+
readonly nullable: true;
|
|
1276
|
+
readonly format: "uuid";
|
|
1277
|
+
readonly description: "Identifier of this task's workspace phase.";
|
|
1278
|
+
};
|
|
1279
|
+
readonly phaseName: {
|
|
1274
1280
|
readonly type: "string";
|
|
1275
|
-
readonly enum: readonly [
|
|
1276
|
-
"pending",
|
|
1277
|
-
"in_progress",
|
|
1278
|
-
"completed"
|
|
1279
|
-
];
|
|
1280
1281
|
readonly nullable: true;
|
|
1282
|
+
readonly description: "Current phase name.";
|
|
1283
|
+
};
|
|
1284
|
+
readonly phaseSortOrder: {
|
|
1285
|
+
readonly type: "integer";
|
|
1286
|
+
readonly nullable: true;
|
|
1287
|
+
readonly description: "Current phase order within the workspace.";
|
|
1281
1288
|
};
|
|
1282
1289
|
readonly dueDate: {
|
|
1283
1290
|
readonly type: "string";
|
|
@@ -1354,6 +1361,43 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
1354
1361
|
};
|
|
1355
1362
|
};
|
|
1356
1363
|
};
|
|
1364
|
+
readonly TaskPhase: {
|
|
1365
|
+
readonly type: "object";
|
|
1366
|
+
readonly required: readonly [
|
|
1367
|
+
"id",
|
|
1368
|
+
"workspaceId",
|
|
1369
|
+
"name",
|
|
1370
|
+
"sortOrder"
|
|
1371
|
+
];
|
|
1372
|
+
readonly properties: {
|
|
1373
|
+
readonly id: {
|
|
1374
|
+
readonly type: "string";
|
|
1375
|
+
readonly format: "uuid";
|
|
1376
|
+
};
|
|
1377
|
+
readonly workspaceId: {
|
|
1378
|
+
readonly type: "string";
|
|
1379
|
+
readonly format: "uuid";
|
|
1380
|
+
};
|
|
1381
|
+
readonly name: {
|
|
1382
|
+
readonly type: "string";
|
|
1383
|
+
readonly maxLength: 64;
|
|
1384
|
+
};
|
|
1385
|
+
readonly sortOrder: {
|
|
1386
|
+
readonly type: "integer";
|
|
1387
|
+
readonly minimum: 0;
|
|
1388
|
+
};
|
|
1389
|
+
readonly created_at: {
|
|
1390
|
+
readonly type: "string";
|
|
1391
|
+
readonly format: "date-time";
|
|
1392
|
+
readonly nullable: true;
|
|
1393
|
+
};
|
|
1394
|
+
readonly updated_at: {
|
|
1395
|
+
readonly type: "string";
|
|
1396
|
+
readonly format: "date-time";
|
|
1397
|
+
readonly nullable: true;
|
|
1398
|
+
};
|
|
1399
|
+
};
|
|
1400
|
+
};
|
|
1357
1401
|
readonly CreateTaskSuccess: {
|
|
1358
1402
|
readonly type: "object";
|
|
1359
1403
|
readonly required: readonly [
|
|
@@ -9035,6 +9079,323 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
9035
9079
|
};
|
|
9036
9080
|
};
|
|
9037
9081
|
};
|
|
9082
|
+
readonly "/task-phases/list/{workspace}": {
|
|
9083
|
+
readonly get: {
|
|
9084
|
+
readonly tags: readonly [
|
|
9085
|
+
"Tasks"
|
|
9086
|
+
];
|
|
9087
|
+
readonly summary: "List workspace task phases";
|
|
9088
|
+
readonly description: "Returns the ordered task phases configured for a workspace. Requires workspace access and crm::tasks read access.";
|
|
9089
|
+
readonly security: readonly [
|
|
9090
|
+
never
|
|
9091
|
+
];
|
|
9092
|
+
readonly parameters: readonly [
|
|
9093
|
+
{
|
|
9094
|
+
readonly name: "workspace";
|
|
9095
|
+
readonly in: "path";
|
|
9096
|
+
readonly required: true;
|
|
9097
|
+
readonly schema: {
|
|
9098
|
+
readonly type: "string";
|
|
9099
|
+
readonly format: "uuid";
|
|
9100
|
+
};
|
|
9101
|
+
}
|
|
9102
|
+
];
|
|
9103
|
+
readonly responses: {
|
|
9104
|
+
readonly 200: {
|
|
9105
|
+
readonly description: "Task phases fetched.";
|
|
9106
|
+
readonly content: {
|
|
9107
|
+
readonly "application/json": {
|
|
9108
|
+
readonly schema: {
|
|
9109
|
+
readonly type: "object";
|
|
9110
|
+
readonly required: readonly [
|
|
9111
|
+
"success",
|
|
9112
|
+
"phases"
|
|
9113
|
+
];
|
|
9114
|
+
readonly properties: {
|
|
9115
|
+
readonly success: {
|
|
9116
|
+
readonly type: "boolean";
|
|
9117
|
+
readonly const: true;
|
|
9118
|
+
};
|
|
9119
|
+
readonly phases: {
|
|
9120
|
+
readonly type: "array";
|
|
9121
|
+
readonly items: any;
|
|
9122
|
+
};
|
|
9123
|
+
};
|
|
9124
|
+
};
|
|
9125
|
+
};
|
|
9126
|
+
};
|
|
9127
|
+
};
|
|
9128
|
+
readonly 401: {
|
|
9129
|
+
readonly description: "Unauthorized.";
|
|
9130
|
+
readonly content: {
|
|
9131
|
+
readonly "application/json": {
|
|
9132
|
+
readonly schema: {
|
|
9133
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
9134
|
+
};
|
|
9135
|
+
};
|
|
9136
|
+
};
|
|
9137
|
+
};
|
|
9138
|
+
readonly 403: {
|
|
9139
|
+
readonly description: "Forbidden.";
|
|
9140
|
+
readonly content: {
|
|
9141
|
+
readonly "application/json": {
|
|
9142
|
+
readonly schema: {
|
|
9143
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
9144
|
+
};
|
|
9145
|
+
};
|
|
9146
|
+
};
|
|
9147
|
+
};
|
|
9148
|
+
};
|
|
9149
|
+
};
|
|
9150
|
+
};
|
|
9151
|
+
readonly "/task-phases/create": {
|
|
9152
|
+
readonly post: {
|
|
9153
|
+
readonly tags: readonly [
|
|
9154
|
+
"Tasks"
|
|
9155
|
+
];
|
|
9156
|
+
readonly summary: "Create a workspace task phase";
|
|
9157
|
+
readonly description: "Adds a phase at the end of the workspace workflow. Requires crm::tasks write access.";
|
|
9158
|
+
readonly security: readonly [
|
|
9159
|
+
never
|
|
9160
|
+
];
|
|
9161
|
+
readonly requestBody: {
|
|
9162
|
+
readonly required: true;
|
|
9163
|
+
readonly content: {
|
|
9164
|
+
readonly "application/json": {
|
|
9165
|
+
readonly schema: {
|
|
9166
|
+
readonly type: "object";
|
|
9167
|
+
readonly required: readonly [
|
|
9168
|
+
"workspace",
|
|
9169
|
+
"name"
|
|
9170
|
+
];
|
|
9171
|
+
readonly properties: {
|
|
9172
|
+
readonly workspace: {
|
|
9173
|
+
readonly type: "string";
|
|
9174
|
+
readonly format: "uuid";
|
|
9175
|
+
};
|
|
9176
|
+
readonly name: {
|
|
9177
|
+
readonly type: "string";
|
|
9178
|
+
readonly maxLength: 64;
|
|
9179
|
+
};
|
|
9180
|
+
};
|
|
9181
|
+
};
|
|
9182
|
+
};
|
|
9183
|
+
};
|
|
9184
|
+
};
|
|
9185
|
+
readonly responses: {
|
|
9186
|
+
readonly 201: {
|
|
9187
|
+
readonly description: "Task phase created.";
|
|
9188
|
+
readonly content: {
|
|
9189
|
+
readonly "application/json": {
|
|
9190
|
+
readonly schema: {
|
|
9191
|
+
readonly type: "object";
|
|
9192
|
+
readonly properties: {
|
|
9193
|
+
readonly success: {
|
|
9194
|
+
readonly type: "boolean";
|
|
9195
|
+
readonly const: true;
|
|
9196
|
+
};
|
|
9197
|
+
readonly phase: {
|
|
9198
|
+
readonly $ref: "#/components/schemas/TaskPhase";
|
|
9199
|
+
};
|
|
9200
|
+
};
|
|
9201
|
+
};
|
|
9202
|
+
};
|
|
9203
|
+
};
|
|
9204
|
+
};
|
|
9205
|
+
readonly 400: {
|
|
9206
|
+
readonly description: "Invalid request.";
|
|
9207
|
+
readonly content: {
|
|
9208
|
+
readonly "application/json": {
|
|
9209
|
+
readonly schema: {
|
|
9210
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
9211
|
+
};
|
|
9212
|
+
};
|
|
9213
|
+
};
|
|
9214
|
+
};
|
|
9215
|
+
readonly 403: {
|
|
9216
|
+
readonly description: "Forbidden.";
|
|
9217
|
+
readonly content: {
|
|
9218
|
+
readonly "application/json": {
|
|
9219
|
+
readonly schema: {
|
|
9220
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
9221
|
+
};
|
|
9222
|
+
};
|
|
9223
|
+
};
|
|
9224
|
+
};
|
|
9225
|
+
readonly 409: {
|
|
9226
|
+
readonly description: "A phase with this name exists.";
|
|
9227
|
+
readonly content: {
|
|
9228
|
+
readonly "application/json": {
|
|
9229
|
+
readonly schema: {
|
|
9230
|
+
readonly $ref: "#/components/schemas/ErrorResponse";
|
|
9231
|
+
};
|
|
9232
|
+
};
|
|
9233
|
+
};
|
|
9234
|
+
};
|
|
9235
|
+
};
|
|
9236
|
+
};
|
|
9237
|
+
};
|
|
9238
|
+
readonly "/task-phases/update": {
|
|
9239
|
+
readonly post: {
|
|
9240
|
+
readonly tags: readonly [
|
|
9241
|
+
"Tasks"
|
|
9242
|
+
];
|
|
9243
|
+
readonly summary: "Rename a workspace task phase";
|
|
9244
|
+
readonly description: "Requires crm::tasks write access.";
|
|
9245
|
+
readonly security: readonly [
|
|
9246
|
+
never
|
|
9247
|
+
];
|
|
9248
|
+
readonly requestBody: {
|
|
9249
|
+
readonly required: true;
|
|
9250
|
+
readonly content: {
|
|
9251
|
+
readonly "application/json": {
|
|
9252
|
+
readonly schema: {
|
|
9253
|
+
readonly type: "object";
|
|
9254
|
+
readonly required: readonly [
|
|
9255
|
+
"workspace",
|
|
9256
|
+
"phaseId",
|
|
9257
|
+
"name"
|
|
9258
|
+
];
|
|
9259
|
+
readonly properties: {
|
|
9260
|
+
readonly workspace: {
|
|
9261
|
+
readonly type: "string";
|
|
9262
|
+
readonly format: "uuid";
|
|
9263
|
+
};
|
|
9264
|
+
readonly phaseId: {
|
|
9265
|
+
readonly type: "string";
|
|
9266
|
+
readonly format: "uuid";
|
|
9267
|
+
};
|
|
9268
|
+
readonly name: {
|
|
9269
|
+
readonly type: "string";
|
|
9270
|
+
readonly maxLength: 64;
|
|
9271
|
+
};
|
|
9272
|
+
};
|
|
9273
|
+
};
|
|
9274
|
+
};
|
|
9275
|
+
};
|
|
9276
|
+
};
|
|
9277
|
+
readonly responses: {
|
|
9278
|
+
readonly 200: {
|
|
9279
|
+
readonly description: "Task phase renamed.";
|
|
9280
|
+
};
|
|
9281
|
+
readonly 400: {
|
|
9282
|
+
readonly description: "Invalid request.";
|
|
9283
|
+
};
|
|
9284
|
+
readonly 403: {
|
|
9285
|
+
readonly description: "Forbidden.";
|
|
9286
|
+
};
|
|
9287
|
+
readonly 404: {
|
|
9288
|
+
readonly description: "Task phase not found.";
|
|
9289
|
+
};
|
|
9290
|
+
readonly 409: {
|
|
9291
|
+
readonly description: "A phase with this name exists.";
|
|
9292
|
+
};
|
|
9293
|
+
};
|
|
9294
|
+
};
|
|
9295
|
+
};
|
|
9296
|
+
readonly "/task-phases/reorder": {
|
|
9297
|
+
readonly post: {
|
|
9298
|
+
readonly tags: readonly [
|
|
9299
|
+
"Tasks"
|
|
9300
|
+
];
|
|
9301
|
+
readonly summary: "Reorder workspace task phases";
|
|
9302
|
+
readonly description: "phaseIds must contain every phase in the workspace exactly once. Requires crm::tasks write access.";
|
|
9303
|
+
readonly security: readonly [
|
|
9304
|
+
never
|
|
9305
|
+
];
|
|
9306
|
+
readonly requestBody: {
|
|
9307
|
+
readonly required: true;
|
|
9308
|
+
readonly content: {
|
|
9309
|
+
readonly "application/json": {
|
|
9310
|
+
readonly schema: {
|
|
9311
|
+
readonly type: "object";
|
|
9312
|
+
readonly required: readonly [
|
|
9313
|
+
"workspace",
|
|
9314
|
+
"phaseIds"
|
|
9315
|
+
];
|
|
9316
|
+
readonly properties: {
|
|
9317
|
+
readonly workspace: {
|
|
9318
|
+
readonly type: "string";
|
|
9319
|
+
readonly format: "uuid";
|
|
9320
|
+
};
|
|
9321
|
+
readonly phaseIds: {
|
|
9322
|
+
readonly type: "array";
|
|
9323
|
+
readonly items: {
|
|
9324
|
+
readonly type: "string";
|
|
9325
|
+
readonly format: "uuid";
|
|
9326
|
+
};
|
|
9327
|
+
};
|
|
9328
|
+
};
|
|
9329
|
+
};
|
|
9330
|
+
};
|
|
9331
|
+
};
|
|
9332
|
+
};
|
|
9333
|
+
readonly responses: {
|
|
9334
|
+
readonly 200: {
|
|
9335
|
+
readonly description: "Task phases reordered.";
|
|
9336
|
+
};
|
|
9337
|
+
readonly 400: {
|
|
9338
|
+
readonly description: "Invalid phase order.";
|
|
9339
|
+
};
|
|
9340
|
+
readonly 403: {
|
|
9341
|
+
readonly description: "Forbidden.";
|
|
9342
|
+
};
|
|
9343
|
+
};
|
|
9344
|
+
};
|
|
9345
|
+
};
|
|
9346
|
+
readonly "/task-phases/delete": {
|
|
9347
|
+
readonly post: {
|
|
9348
|
+
readonly tags: readonly [
|
|
9349
|
+
"Tasks"
|
|
9350
|
+
];
|
|
9351
|
+
readonly summary: "Delete a workspace task phase";
|
|
9352
|
+
readonly description: "A phase cannot be deleted while tasks use it, and each workspace must retain at least one phase. Requires crm::tasks write access.";
|
|
9353
|
+
readonly security: readonly [
|
|
9354
|
+
never
|
|
9355
|
+
];
|
|
9356
|
+
readonly requestBody: {
|
|
9357
|
+
readonly required: true;
|
|
9358
|
+
readonly content: {
|
|
9359
|
+
readonly "application/json": {
|
|
9360
|
+
readonly schema: {
|
|
9361
|
+
readonly type: "object";
|
|
9362
|
+
readonly required: readonly [
|
|
9363
|
+
"workspace",
|
|
9364
|
+
"phaseId"
|
|
9365
|
+
];
|
|
9366
|
+
readonly properties: {
|
|
9367
|
+
readonly workspace: {
|
|
9368
|
+
readonly type: "string";
|
|
9369
|
+
readonly format: "uuid";
|
|
9370
|
+
};
|
|
9371
|
+
readonly phaseId: {
|
|
9372
|
+
readonly type: "string";
|
|
9373
|
+
readonly format: "uuid";
|
|
9374
|
+
};
|
|
9375
|
+
};
|
|
9376
|
+
};
|
|
9377
|
+
};
|
|
9378
|
+
};
|
|
9379
|
+
};
|
|
9380
|
+
readonly responses: {
|
|
9381
|
+
readonly 200: {
|
|
9382
|
+
readonly description: "Task phase deleted.";
|
|
9383
|
+
};
|
|
9384
|
+
readonly 400: {
|
|
9385
|
+
readonly description: "Invalid request.";
|
|
9386
|
+
};
|
|
9387
|
+
readonly 403: {
|
|
9388
|
+
readonly description: "Forbidden.";
|
|
9389
|
+
};
|
|
9390
|
+
readonly 404: {
|
|
9391
|
+
readonly description: "Task phase not found.";
|
|
9392
|
+
};
|
|
9393
|
+
readonly 409: {
|
|
9394
|
+
readonly description: "Task phase is in use.";
|
|
9395
|
+
};
|
|
9396
|
+
};
|
|
9397
|
+
};
|
|
9398
|
+
};
|
|
9038
9399
|
readonly "/tasks/create": {
|
|
9039
9400
|
readonly post: {
|
|
9040
9401
|
readonly tags: readonly [
|
|
@@ -9076,15 +9437,11 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
9076
9437
|
readonly nullable: true;
|
|
9077
9438
|
readonly description: "Task description.";
|
|
9078
9439
|
};
|
|
9079
|
-
readonly
|
|
9440
|
+
readonly phaseId: {
|
|
9080
9441
|
readonly type: "string";
|
|
9081
|
-
readonly
|
|
9082
|
-
"pending",
|
|
9083
|
-
"in_progress",
|
|
9084
|
-
"completed"
|
|
9085
|
-
];
|
|
9442
|
+
readonly format: "uuid";
|
|
9086
9443
|
readonly nullable: true;
|
|
9087
|
-
readonly description: "
|
|
9444
|
+
readonly description: "Workspace phase for the task. Defaults to the workspace's first phase.";
|
|
9088
9445
|
};
|
|
9089
9446
|
readonly priority: {
|
|
9090
9447
|
readonly type: "string";
|
|
@@ -9372,15 +9729,11 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
9372
9729
|
readonly nullable: true;
|
|
9373
9730
|
readonly description: "Task description.";
|
|
9374
9731
|
};
|
|
9375
|
-
readonly
|
|
9732
|
+
readonly phaseId: {
|
|
9376
9733
|
readonly type: "string";
|
|
9377
|
-
readonly
|
|
9378
|
-
"pending",
|
|
9379
|
-
"in_progress",
|
|
9380
|
-
"completed"
|
|
9381
|
-
];
|
|
9734
|
+
readonly format: "uuid";
|
|
9382
9735
|
readonly nullable: true;
|
|
9383
|
-
readonly description: "
|
|
9736
|
+
readonly description: "Workspace phase for the task.";
|
|
9384
9737
|
};
|
|
9385
9738
|
readonly priority: {
|
|
9386
9739
|
readonly type: "string";
|
|
@@ -17996,8 +18349,8 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
17996
18349
|
name: string;
|
|
17997
18350
|
active: boolean;
|
|
17998
18351
|
code: string;
|
|
17999
|
-
kind: string;
|
|
18000
18352
|
sortOrder: number;
|
|
18353
|
+
kind: string;
|
|
18001
18354
|
publiclyVisible: boolean;
|
|
18002
18355
|
updated_at: string | null;
|
|
18003
18356
|
deleted_at: string | null;
|
|
@@ -18931,7 +19284,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
18931
19284
|
input: {};
|
|
18932
19285
|
output: {
|
|
18933
19286
|
success: false;
|
|
18934
|
-
error:
|
|
19287
|
+
error: string;
|
|
18935
19288
|
};
|
|
18936
19289
|
outputFormat: "json";
|
|
18937
19290
|
status: 400;
|
|
@@ -18942,12 +19295,12 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
18942
19295
|
task: {
|
|
18943
19296
|
id: string;
|
|
18944
19297
|
created_at: string;
|
|
18945
|
-
status: string | null;
|
|
18946
19298
|
workspaceId: string;
|
|
18947
19299
|
description: string | null;
|
|
18948
19300
|
subject: string;
|
|
18949
19301
|
created_by: string;
|
|
18950
19302
|
customerId: string | null;
|
|
19303
|
+
phaseId: string | null;
|
|
18951
19304
|
updated_at: string | null;
|
|
18952
19305
|
deleted_at: string | null;
|
|
18953
19306
|
verified_at: string | null;
|
|
@@ -18975,7 +19328,9 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
18975
19328
|
subject: string;
|
|
18976
19329
|
description: string | null;
|
|
18977
19330
|
visibility: string | null;
|
|
18978
|
-
|
|
19331
|
+
phaseId: string | null;
|
|
19332
|
+
phaseName: string | null;
|
|
19333
|
+
phaseSortOrder: number | null;
|
|
18979
19334
|
priority: string | null;
|
|
18980
19335
|
created_at: string;
|
|
18981
19336
|
workspaceId: string;
|
|
@@ -19043,7 +19398,9 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
19043
19398
|
subject: string;
|
|
19044
19399
|
description: string | null;
|
|
19045
19400
|
visibility: string | null;
|
|
19046
|
-
|
|
19401
|
+
phaseId: string | null;
|
|
19402
|
+
phaseName: string | null;
|
|
19403
|
+
phaseSortOrder: number | null;
|
|
19047
19404
|
priority: string | null;
|
|
19048
19405
|
workspaceId: string;
|
|
19049
19406
|
created_by: string;
|
|
@@ -19115,10 +19472,10 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
19115
19472
|
input: {};
|
|
19116
19473
|
output: {
|
|
19117
19474
|
success: false;
|
|
19118
|
-
error:
|
|
19475
|
+
error: string;
|
|
19119
19476
|
};
|
|
19120
19477
|
outputFormat: "json";
|
|
19121
|
-
status:
|
|
19478
|
+
status: 404;
|
|
19122
19479
|
} | {
|
|
19123
19480
|
input: {};
|
|
19124
19481
|
output: {
|
|
@@ -19126,7 +19483,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
19126
19483
|
error: string;
|
|
19127
19484
|
};
|
|
19128
19485
|
outputFormat: "json";
|
|
19129
|
-
status:
|
|
19486
|
+
status: 403;
|
|
19130
19487
|
} | {
|
|
19131
19488
|
input: {};
|
|
19132
19489
|
output: {
|
|
@@ -19134,7 +19491,7 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
19134
19491
|
error: string;
|
|
19135
19492
|
};
|
|
19136
19493
|
outputFormat: "json";
|
|
19137
|
-
status:
|
|
19494
|
+
status: 400;
|
|
19138
19495
|
} | {
|
|
19139
19496
|
input: {};
|
|
19140
19497
|
output: {
|
|
@@ -19207,6 +19564,181 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
19207
19564
|
};
|
|
19208
19565
|
};
|
|
19209
19566
|
}, "/tasks"> | import("hono/types").MergeSchemaPath<{
|
|
19567
|
+
"/list/:workspace": {
|
|
19568
|
+
$get: {
|
|
19569
|
+
input: {
|
|
19570
|
+
param: {
|
|
19571
|
+
workspace: string;
|
|
19572
|
+
};
|
|
19573
|
+
};
|
|
19574
|
+
output: {
|
|
19575
|
+
success: true;
|
|
19576
|
+
phases: {
|
|
19577
|
+
updated_at: string | null;
|
|
19578
|
+
deleted_at: string | null;
|
|
19579
|
+
verified_at: string | null;
|
|
19580
|
+
suspended_at: string | null;
|
|
19581
|
+
created_at: string;
|
|
19582
|
+
id: string;
|
|
19583
|
+
workspaceId: string;
|
|
19584
|
+
name: string;
|
|
19585
|
+
sortOrder: number;
|
|
19586
|
+
}[];
|
|
19587
|
+
};
|
|
19588
|
+
outputFormat: "json";
|
|
19589
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
19590
|
+
};
|
|
19591
|
+
};
|
|
19592
|
+
} & {
|
|
19593
|
+
"/create": {
|
|
19594
|
+
$post: {
|
|
19595
|
+
input: {};
|
|
19596
|
+
output: {
|
|
19597
|
+
success: false;
|
|
19598
|
+
error: never;
|
|
19599
|
+
};
|
|
19600
|
+
outputFormat: "json";
|
|
19601
|
+
status: 400;
|
|
19602
|
+
} | {
|
|
19603
|
+
input: {};
|
|
19604
|
+
output: {
|
|
19605
|
+
success: false;
|
|
19606
|
+
error: string;
|
|
19607
|
+
};
|
|
19608
|
+
outputFormat: "json";
|
|
19609
|
+
status: 409;
|
|
19610
|
+
} | {
|
|
19611
|
+
input: {};
|
|
19612
|
+
output: {
|
|
19613
|
+
success: true;
|
|
19614
|
+
phase: {
|
|
19615
|
+
id: string;
|
|
19616
|
+
created_at: string;
|
|
19617
|
+
name: string;
|
|
19618
|
+
workspaceId: string;
|
|
19619
|
+
sortOrder: number;
|
|
19620
|
+
updated_at: string | null;
|
|
19621
|
+
deleted_at: string | null;
|
|
19622
|
+
verified_at: string | null;
|
|
19623
|
+
suspended_at: string | null;
|
|
19624
|
+
};
|
|
19625
|
+
};
|
|
19626
|
+
outputFormat: "json";
|
|
19627
|
+
status: 201;
|
|
19628
|
+
};
|
|
19629
|
+
};
|
|
19630
|
+
} & {
|
|
19631
|
+
"/update": {
|
|
19632
|
+
$post: {
|
|
19633
|
+
input: {};
|
|
19634
|
+
output: {
|
|
19635
|
+
success: false;
|
|
19636
|
+
error: never;
|
|
19637
|
+
};
|
|
19638
|
+
outputFormat: "json";
|
|
19639
|
+
status: 400;
|
|
19640
|
+
} | {
|
|
19641
|
+
input: {};
|
|
19642
|
+
output: {
|
|
19643
|
+
success: false;
|
|
19644
|
+
error: string;
|
|
19645
|
+
};
|
|
19646
|
+
outputFormat: "json";
|
|
19647
|
+
status: 409;
|
|
19648
|
+
} | {
|
|
19649
|
+
input: {};
|
|
19650
|
+
output: {
|
|
19651
|
+
success: false;
|
|
19652
|
+
error: string;
|
|
19653
|
+
};
|
|
19654
|
+
outputFormat: "json";
|
|
19655
|
+
status: 404;
|
|
19656
|
+
} | {
|
|
19657
|
+
input: {};
|
|
19658
|
+
output: {
|
|
19659
|
+
success: true;
|
|
19660
|
+
phase: {
|
|
19661
|
+
updated_at: string | null;
|
|
19662
|
+
deleted_at: string | null;
|
|
19663
|
+
verified_at: string | null;
|
|
19664
|
+
suspended_at: string | null;
|
|
19665
|
+
created_at: string;
|
|
19666
|
+
id: string;
|
|
19667
|
+
workspaceId: string;
|
|
19668
|
+
name: string;
|
|
19669
|
+
sortOrder: number;
|
|
19670
|
+
};
|
|
19671
|
+
};
|
|
19672
|
+
outputFormat: "json";
|
|
19673
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
19674
|
+
};
|
|
19675
|
+
};
|
|
19676
|
+
} & {
|
|
19677
|
+
"/reorder": {
|
|
19678
|
+
$post: {
|
|
19679
|
+
input: {};
|
|
19680
|
+
output: {
|
|
19681
|
+
success: false;
|
|
19682
|
+
error: string;
|
|
19683
|
+
};
|
|
19684
|
+
outputFormat: "json";
|
|
19685
|
+
status: 400;
|
|
19686
|
+
} | {
|
|
19687
|
+
input: {};
|
|
19688
|
+
output: {
|
|
19689
|
+
success: true;
|
|
19690
|
+
phases: {
|
|
19691
|
+
updated_at: string | null;
|
|
19692
|
+
deleted_at: string | null;
|
|
19693
|
+
verified_at: string | null;
|
|
19694
|
+
suspended_at: string | null;
|
|
19695
|
+
created_at: string;
|
|
19696
|
+
id: string;
|
|
19697
|
+
workspaceId: string;
|
|
19698
|
+
name: string;
|
|
19699
|
+
sortOrder: number;
|
|
19700
|
+
}[];
|
|
19701
|
+
};
|
|
19702
|
+
outputFormat: "json";
|
|
19703
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
19704
|
+
};
|
|
19705
|
+
};
|
|
19706
|
+
} & {
|
|
19707
|
+
"/delete": {
|
|
19708
|
+
$post: {
|
|
19709
|
+
input: {};
|
|
19710
|
+
output: {
|
|
19711
|
+
success: false;
|
|
19712
|
+
error: never;
|
|
19713
|
+
};
|
|
19714
|
+
outputFormat: "json";
|
|
19715
|
+
status: 400;
|
|
19716
|
+
} | {
|
|
19717
|
+
input: {};
|
|
19718
|
+
output: {
|
|
19719
|
+
success: false;
|
|
19720
|
+
error: string;
|
|
19721
|
+
};
|
|
19722
|
+
outputFormat: "json";
|
|
19723
|
+
status: 404;
|
|
19724
|
+
} | {
|
|
19725
|
+
input: {};
|
|
19726
|
+
output: {
|
|
19727
|
+
success: false;
|
|
19728
|
+
error: string;
|
|
19729
|
+
};
|
|
19730
|
+
outputFormat: "json";
|
|
19731
|
+
status: 409;
|
|
19732
|
+
} | {
|
|
19733
|
+
input: {};
|
|
19734
|
+
output: {
|
|
19735
|
+
success: true;
|
|
19736
|
+
};
|
|
19737
|
+
outputFormat: "json";
|
|
19738
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
19739
|
+
};
|
|
19740
|
+
};
|
|
19741
|
+
}, "/task-phases"> | import("hono/types").MergeSchemaPath<{
|
|
19210
19742
|
"/list/:workspace": {
|
|
19211
19743
|
$get: {
|
|
19212
19744
|
input: {
|
|
@@ -20086,7 +20618,9 @@ declare const routes: import("hono/hono-base").HonoBase<{
|
|
|
20086
20618
|
subject: string;
|
|
20087
20619
|
description: string | null;
|
|
20088
20620
|
visibility: string | null;
|
|
20089
|
-
|
|
20621
|
+
phaseId: string | null;
|
|
20622
|
+
phaseName: string | null;
|
|
20623
|
+
phaseSortOrder: number | null;
|
|
20090
20624
|
priority: string | null;
|
|
20091
20625
|
created_at: string;
|
|
20092
20626
|
workspaceId: string;
|