@kl1/contracts 1.0.62 → 1.0.63
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.js +22 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +22 -2
- package/dist/index.mjs.map +1 -1
- package/dist/src/contract.d.ts +157 -3
- package/dist/src/contract.d.ts.map +1 -1
- package/dist/src/extension/index.d.ts +157 -3
- package/dist/src/extension/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -3396,6 +3396,8 @@ var extensionContract = initContract14().router(
|
|
3396
3396
|
message: z50.string()
|
3397
3397
|
}),
|
3398
3398
|
401: DefaultUnauthorizedSchema,
|
3399
|
+
404: DefaultNotFoundSchema,
|
3400
|
+
422: DefaultUnprocessibleSchema,
|
3399
3401
|
500: DefaultErrorResponseSchema
|
3400
3402
|
},
|
3401
3403
|
summary: "Create a extension."
|
@@ -3432,6 +3434,8 @@ var extensionContract = initContract14().router(
|
|
3432
3434
|
message: z50.string()
|
3433
3435
|
}),
|
3434
3436
|
401: DefaultUnauthorizedSchema,
|
3437
|
+
404: DefaultNotFoundSchema,
|
3438
|
+
422: DefaultUnprocessibleSchema,
|
3435
3439
|
500: DefaultErrorResponseSchema
|
3436
3440
|
},
|
3437
3441
|
summary: "Get all extensions"
|
@@ -3447,6 +3451,8 @@ var extensionContract = initContract14().router(
|
|
3447
3451
|
message: z50.string()
|
3448
3452
|
}),
|
3449
3453
|
401: DefaultUnauthorizedSchema,
|
3454
|
+
404: DefaultNotFoundSchema,
|
3455
|
+
422: DefaultUnprocessibleSchema,
|
3450
3456
|
500: DefaultErrorResponseSchema
|
3451
3457
|
},
|
3452
3458
|
summary: "Get extension by user id"
|
@@ -3462,11 +3468,13 @@ var extensionContract = initContract14().router(
|
|
3462
3468
|
headers: DefaultHeaderSchema,
|
3463
3469
|
responses: {
|
3464
3470
|
200: WithPagination(ExtensionSchema),
|
3465
|
-
500: DefaultErrorResponseSchema,
|
3466
3471
|
400: z50.object({
|
3467
3472
|
message: z50.string()
|
3468
3473
|
}),
|
3469
|
-
401: DefaultUnauthorizedSchema
|
3474
|
+
401: DefaultUnauthorizedSchema,
|
3475
|
+
404: DefaultNotFoundSchema,
|
3476
|
+
422: DefaultUnprocessibleSchema,
|
3477
|
+
500: DefaultErrorResponseSchema
|
3470
3478
|
},
|
3471
3479
|
summary: "Get by dialpad"
|
3472
3480
|
},
|
@@ -3480,6 +3488,12 @@ var extensionContract = initContract14().router(
|
|
3480
3488
|
200: DefaultSuccessResponseSchema.extend({
|
3481
3489
|
extension: ExtensionSchema
|
3482
3490
|
}),
|
3491
|
+
400: z50.object({
|
3492
|
+
message: z50.string()
|
3493
|
+
}),
|
3494
|
+
401: DefaultUnauthorizedSchema,
|
3495
|
+
404: DefaultNotFoundSchema,
|
3496
|
+
422: DefaultUnprocessibleSchema,
|
3483
3497
|
500: DefaultErrorResponseSchema
|
3484
3498
|
},
|
3485
3499
|
summary: "Update a extension."
|
@@ -3492,6 +3506,12 @@ var extensionContract = initContract14().router(
|
|
3492
3506
|
body: null,
|
3493
3507
|
responses: {
|
3494
3508
|
200: DefaultSuccessResponseSchema.extend({ message: z50.string() }),
|
3509
|
+
400: z50.object({
|
3510
|
+
message: z50.string()
|
3511
|
+
}),
|
3512
|
+
401: DefaultUnauthorizedSchema,
|
3513
|
+
404: DefaultNotFoundSchema,
|
3514
|
+
422: DefaultUnprocessibleSchema,
|
3495
3515
|
500: DefaultErrorResponseSchema
|
3496
3516
|
},
|
3497
3517
|
summary: "Delete a extension."
|