@timardex/cluemart-shared 1.1.3 → 1.1.6
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/graphql/index.cjs +10 -2
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +1 -1
- package/dist/graphql/index.d.ts +1 -1
- package/dist/graphql/index.mjs +10 -2
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/index.cjs +10 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.mjs +10 -2
- package/dist/index.mjs.map +1 -1
- package/dist/{notification-BBO1auKM.d.mts → notification-BH5_z_Wh.d.mts} +4 -2
- package/dist/{notification-CAZUXK48.d.ts → notification-CqoTwwqU.d.ts} +4 -2
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -462,16 +462,18 @@ interface CreateValidateVerificationTokenFormData {
|
|
|
462
462
|
watch: UseFormWatch<ValidateVerificationTokenFormData>;
|
|
463
463
|
}
|
|
464
464
|
|
|
465
|
-
type ParticipantType = Omit<OwnerType, "licences"
|
|
465
|
+
type ParticipantType = Omit<OwnerType, "licences"> & {
|
|
466
|
+
active: boolean;
|
|
467
|
+
};
|
|
466
468
|
interface ChatMessageInput {
|
|
467
469
|
content: string;
|
|
468
470
|
senderId: string;
|
|
469
|
-
senderName: string;
|
|
470
471
|
}
|
|
471
472
|
interface ChatMessageType {
|
|
472
473
|
_id?: string;
|
|
473
474
|
content: string;
|
|
474
475
|
createdAt?: string;
|
|
476
|
+
senderAvatar: string | null;
|
|
475
477
|
senderId: string;
|
|
476
478
|
senderName: string;
|
|
477
479
|
updatedAt?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -462,16 +462,18 @@ interface CreateValidateVerificationTokenFormData {
|
|
|
462
462
|
watch: UseFormWatch<ValidateVerificationTokenFormData>;
|
|
463
463
|
}
|
|
464
464
|
|
|
465
|
-
type ParticipantType = Omit<OwnerType, "licences"
|
|
465
|
+
type ParticipantType = Omit<OwnerType, "licences"> & {
|
|
466
|
+
active: boolean;
|
|
467
|
+
};
|
|
466
468
|
interface ChatMessageInput {
|
|
467
469
|
content: string;
|
|
468
470
|
senderId: string;
|
|
469
|
-
senderName: string;
|
|
470
471
|
}
|
|
471
472
|
interface ChatMessageType {
|
|
472
473
|
_id?: string;
|
|
473
474
|
content: string;
|
|
474
475
|
createdAt?: string;
|
|
476
|
+
senderAvatar: string | null;
|
|
475
477
|
senderId: string;
|
|
476
478
|
senderName: string;
|
|
477
479
|
updatedAt?: string;
|
package/dist/index.mjs
CHANGED
|
@@ -2314,6 +2314,7 @@ var CHAT_MESSAGE_FIELDS_FRAGMENT = gql6`
|
|
|
2314
2314
|
_id
|
|
2315
2315
|
content
|
|
2316
2316
|
createdAt
|
|
2317
|
+
senderAvatar
|
|
2317
2318
|
senderId
|
|
2318
2319
|
senderName
|
|
2319
2320
|
updatedAt
|
|
@@ -2329,6 +2330,7 @@ var CHAT_FIELDS_FRAGMENT = gql6`
|
|
|
2329
2330
|
...ChatMessageFields
|
|
2330
2331
|
}
|
|
2331
2332
|
participants {
|
|
2333
|
+
active
|
|
2332
2334
|
email
|
|
2333
2335
|
userId
|
|
2334
2336
|
}
|
|
@@ -2377,7 +2379,7 @@ var DELETE_CHAT_MUTATION = gql7`
|
|
|
2377
2379
|
`;
|
|
2378
2380
|
var ADD_PARTICIPANT_TO_CHAT_MUTATION = gql7`
|
|
2379
2381
|
mutation addParticipantToChat($chatId: ID!, $userId: ID!) {
|
|
2380
|
-
addParticipantToChat(
|
|
2382
|
+
addParticipantToChat(chatId: $chatId, userId: $userId) {
|
|
2381
2383
|
...ChatFields
|
|
2382
2384
|
}
|
|
2383
2385
|
}
|
|
@@ -2385,7 +2387,7 @@ var ADD_PARTICIPANT_TO_CHAT_MUTATION = gql7`
|
|
|
2385
2387
|
`;
|
|
2386
2388
|
var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = gql7`
|
|
2387
2389
|
mutation removeParticipantFromChat($chatId: ID!, $userId: ID!) {
|
|
2388
|
-
removeParticipantFromChat(
|
|
2390
|
+
removeParticipantFromChat(chatId: $chatId, userId: $userId) {
|
|
2389
2391
|
...ChatFields
|
|
2390
2392
|
}
|
|
2391
2393
|
}
|
|
@@ -2429,6 +2431,9 @@ var useAddParticipantToChat = () => {
|
|
|
2429
2431
|
{
|
|
2430
2432
|
query: CHAT,
|
|
2431
2433
|
variables: { _id: chatId }
|
|
2434
|
+
},
|
|
2435
|
+
{
|
|
2436
|
+
query: USER_CHATS
|
|
2432
2437
|
}
|
|
2433
2438
|
];
|
|
2434
2439
|
}
|
|
@@ -2447,6 +2452,9 @@ var useRemoveParticipantFromChat = () => {
|
|
|
2447
2452
|
{
|
|
2448
2453
|
query: CHAT,
|
|
2449
2454
|
variables: { _id: chatId }
|
|
2455
|
+
},
|
|
2456
|
+
{
|
|
2457
|
+
query: USER_CHATS
|
|
2450
2458
|
}
|
|
2451
2459
|
];
|
|
2452
2460
|
}
|