@kl1/contracts 1.1.1-uat → 1.1.2-uat
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 +23 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +23 -0
- package/dist/index.mjs.map +1 -1
- package/dist/src/contract.d.ts +383 -0
- package/dist/src/contract.d.ts.map +1 -1
- package/dist/src/user/index.d.ts +385 -1
- package/dist/src/user/index.d.ts.map +1 -1
- package/dist/src/user/validation.d.ts +7 -0
- package/dist/src/user/validation.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -5998,6 +5998,9 @@ var CreateUserSchema = import_zod81.z.object({
|
|
5998
5998
|
var UpdateUserSchema = CreateUserSchema.extend({
|
5999
5999
|
newPassword: import_zod81.z.string()
|
6000
6000
|
});
|
6001
|
+
var UpdateUserProfileSchema = import_zod81.z.object({
|
6002
|
+
password: import_zod81.z.string()
|
6003
|
+
});
|
6001
6004
|
|
6002
6005
|
// src/user/index.ts
|
6003
6006
|
var userContract = (0, import_core31.initContract)().router(
|
@@ -6075,6 +6078,26 @@ var userContract = (0, import_core31.initContract)().router(
|
|
6075
6078
|
},
|
6076
6079
|
summary: "Update a user."
|
6077
6080
|
},
|
6081
|
+
updateUserProfile: {
|
6082
|
+
method: "PATCH",
|
6083
|
+
path: "/profile/:id",
|
6084
|
+
pathParams: import_zod82.default.object({ id: import_zod82.default.string() }),
|
6085
|
+
headers: DefaultHeaderSchema,
|
6086
|
+
body: UpdateUserProfileSchema,
|
6087
|
+
responses: {
|
6088
|
+
201: DefaultSuccessResponseSchema.extend({
|
6089
|
+
user: UserSchema
|
6090
|
+
}),
|
6091
|
+
400: import_zod82.default.object({
|
6092
|
+
message: import_zod82.default.string()
|
6093
|
+
}),
|
6094
|
+
401: DefaultUnauthorizedSchema,
|
6095
|
+
404: DefaultNotFoundSchema,
|
6096
|
+
422: DefaultUnprocessibleSchema,
|
6097
|
+
500: DefaultErrorResponseSchema
|
6098
|
+
},
|
6099
|
+
summary: "Update a user profile."
|
6100
|
+
},
|
6078
6101
|
deleteUser: {
|
6079
6102
|
method: "DELETE",
|
6080
6103
|
path: "/:id",
|