@carlonicora/nextjs-jsonapi 1.66.0 → 1.68.0
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/{BlockNoteEditor-KCJMA6LW.mjs → BlockNoteEditor-6FDECIS2.mjs} +4 -4
- package/dist/{BlockNoteEditor-GQM2TZG2.js → BlockNoteEditor-DXHROT4C.js} +14 -14
- package/dist/{BlockNoteEditor-GQM2TZG2.js.map → BlockNoteEditor-DXHROT4C.js.map} +1 -1
- package/dist/billing/index.js +346 -346
- package/dist/billing/index.mjs +3 -3
- package/dist/{chunk-NVXYOQFW.js → chunk-37KYO2UD.js} +20 -5
- package/dist/chunk-37KYO2UD.js.map +1 -0
- package/dist/{chunk-QIFM4G7T.js → chunk-ELTHSXBI.js} +1476 -1298
- package/dist/chunk-ELTHSXBI.js.map +1 -0
- package/dist/{chunk-4E74ZTRT.mjs → chunk-H4ZS3R76.mjs} +2606 -2428
- package/dist/chunk-H4ZS3R76.mjs.map +1 -0
- package/dist/{chunk-35GWVOYZ.mjs → chunk-IOMDNRX5.mjs} +20 -5
- package/dist/{chunk-35GWVOYZ.mjs.map → chunk-IOMDNRX5.mjs.map} +1 -1
- package/dist/{chunk-OQRBY22T.js → chunk-WOJIRXIP.js} +11 -11
- package/dist/{chunk-OQRBY22T.js.map → chunk-WOJIRXIP.js.map} +1 -1
- package/dist/{chunk-UXGPZZ6V.mjs → chunk-WVTBEVAL.mjs} +2 -2
- package/dist/client/index.js +4 -4
- package/dist/client/index.mjs +3 -3
- package/dist/components/index.d.mts +29 -7
- package/dist/components/index.d.ts +29 -7
- package/dist/components/index.js +8 -4
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +9 -5
- package/dist/contexts/index.d.mts +1 -1
- package/dist/contexts/index.d.ts +1 -1
- package/dist/contexts/index.js +4 -4
- package/dist/contexts/index.mjs +3 -3
- package/dist/core/index.d.mts +2 -2
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.js +2 -2
- package/dist/core/index.mjs +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/index.mjs +2 -2
- package/dist/{s3.service-XchHd3ii.d.mts → s3.service-CHOTwfWA.d.mts} +7 -0
- package/dist/{s3.service-DIR6Su9B.d.ts → s3.service-N1g0piXD.d.ts} +7 -0
- package/dist/server/index.d.mts +1 -1
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.js +3 -3
- package/dist/server/index.mjs +1 -1
- package/package.json +1 -1
- package/src/components/EditableAvatar.tsx +175 -0
- package/src/components/index.ts +1 -0
- package/src/features/company/components/forms/CompanyEditor.tsx +1 -3
- package/src/features/role/components/forms/FormRoles.tsx +5 -4
- package/src/features/user/components/containers/AllUsersListContainer.tsx +36 -0
- package/src/features/user/components/containers/UserContainer.tsx +10 -13
- package/src/features/user/components/containers/UsersListContainer.tsx +15 -24
- package/src/features/user/components/containers/index.ts +1 -0
- package/src/features/user/components/details/UserContent.tsx +92 -0
- package/src/features/user/components/details/index.ts +1 -1
- package/src/features/user/components/forms/UserEditor.tsx +233 -233
- package/src/features/user/components/lists/CompanyUsersList.tsx +3 -1
- package/src/features/user/contexts/UserContext.tsx +1 -6
- package/src/features/user/data/user.service.ts +18 -0
- package/src/features/user/data/user.ts +3 -4
- package/dist/chunk-4E74ZTRT.mjs.map +0 -1
- package/dist/chunk-NVXYOQFW.js.map +0 -1
- package/dist/chunk-QIFM4G7T.js.map +0 -1
- package/src/features/user/components/details/UserDetails.tsx +0 -74
- /package/dist/{BlockNoteEditor-KCJMA6LW.mjs.map → BlockNoteEditor-6FDECIS2.mjs.map} +0 -0
- /package/dist/{chunk-UXGPZZ6V.mjs.map → chunk-WVTBEVAL.mjs.map} +0 -0
|
@@ -5771,14 +5771,13 @@ var User = class extends AbstractApiData {
|
|
|
5771
5771
|
data: {
|
|
5772
5772
|
type: Modules.User.name,
|
|
5773
5773
|
id: data.id,
|
|
5774
|
-
attributes: {
|
|
5775
|
-
name: data.name
|
|
5776
|
-
},
|
|
5774
|
+
attributes: {},
|
|
5777
5775
|
meta: {},
|
|
5778
5776
|
relationships: {}
|
|
5779
5777
|
},
|
|
5780
5778
|
included: []
|
|
5781
5779
|
};
|
|
5780
|
+
if (data.name !== void 0) response.data.attributes.name = data.name;
|
|
5782
5781
|
if (data.email !== void 0) response.data.attributes.email = data.email;
|
|
5783
5782
|
if (data.title !== void 0) response.data.attributes.title = data.title;
|
|
5784
5783
|
if (data.bio !== void 0) response.data.attributes.bio = data.bio;
|
|
@@ -5786,7 +5785,7 @@ var User = class extends AbstractApiData {
|
|
|
5786
5785
|
if (data.password !== void 0) response.data.attributes.password = data.password;
|
|
5787
5786
|
if (data.sendInvitationEmail) response.data.attributes.sendInvitationEmail = true;
|
|
5788
5787
|
if (data.adminCreated) response.data.attributes.adminCreated = true;
|
|
5789
|
-
if (data.avatar) response.data.attributes.avatar = data.avatar;
|
|
5788
|
+
if (data.avatar !== void 0) response.data.attributes.avatar = data.avatar;
|
|
5790
5789
|
if (data.rate !== void 0) response.data.attributes.rate = data.rate;
|
|
5791
5790
|
if (data.roleIds) {
|
|
5792
5791
|
response.data.relationships.roles = {
|
|
@@ -5979,6 +5978,22 @@ var UserService = class extends AbstractService {
|
|
|
5979
5978
|
input: params
|
|
5980
5979
|
});
|
|
5981
5980
|
}
|
|
5981
|
+
static async patch(params) {
|
|
5982
|
+
return this.callApi({
|
|
5983
|
+
type: Modules.User,
|
|
5984
|
+
method: "PATCH" /* PATCH */,
|
|
5985
|
+
endpoint: new EndpointCreator({ endpoint: Modules.User, id: params.id }).generate(),
|
|
5986
|
+
input: params
|
|
5987
|
+
});
|
|
5988
|
+
}
|
|
5989
|
+
static async patchAvatar(params) {
|
|
5990
|
+
return this.callApi({
|
|
5991
|
+
type: Modules.User,
|
|
5992
|
+
method: "PATCH" /* PATCH */,
|
|
5993
|
+
endpoint: new EndpointCreator({ endpoint: Modules.User, id: params.id, childEndpoint: "avatar" }).generate(),
|
|
5994
|
+
input: params
|
|
5995
|
+
});
|
|
5996
|
+
}
|
|
5982
5997
|
static async patchRate(params) {
|
|
5983
5998
|
return this.callApi({
|
|
5984
5999
|
type: Modules.User,
|
|
@@ -6973,4 +6988,4 @@ export {
|
|
|
6973
6988
|
AuditLogService,
|
|
6974
6989
|
AuditLogModule
|
|
6975
6990
|
};
|
|
6976
|
-
//# sourceMappingURL=chunk-
|
|
6991
|
+
//# sourceMappingURL=chunk-IOMDNRX5.mjs.map
|