@amityco/ts-sdk 7.4.1-b9f48528.0 → 7.4.1-d23fab2f.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/@types/core/events.d.ts +3 -0
- package/dist/@types/core/events.d.ts.map +1 -1
- package/dist/@types/core/model.d.ts +3 -1
- package/dist/@types/core/model.d.ts.map +1 -1
- package/dist/@types/core/payload.d.ts +8 -4
- package/dist/@types/core/payload.d.ts.map +1 -1
- package/dist/@types/domains/community.d.ts +5 -1
- package/dist/@types/domains/community.d.ts.map +1 -1
- package/dist/@types/domains/invitation.d.ts +43 -0
- package/dist/@types/domains/invitation.d.ts.map +1 -0
- package/dist/@types/index.d.ts +1 -0
- package/dist/@types/index.d.ts.map +1 -1
- package/dist/communityRepository/api/createCommunity.d.ts.map +1 -1
- package/dist/communityRepository/api/getCommunities.d.ts.map +1 -1
- package/dist/communityRepository/api/getCommunity.d.ts.map +1 -1
- package/dist/communityRepository/api/getRecommendedCommunities.d.ts.map +1 -1
- package/dist/communityRepository/api/getTrendingCommunities.d.ts.map +1 -1
- package/dist/communityRepository/api/queryCommunities.d.ts.map +1 -1
- package/dist/communityRepository/api/updateCommunity.d.ts.map +1 -1
- package/dist/communityRepository/communityMembership/events/onCommunityJoined.d.ts +1 -1
- package/dist/communityRepository/communityMembership/events/onCommunityJoined.d.ts.map +1 -1
- package/dist/communityRepository/communityMembership/events/onCommunityLeft.d.ts +1 -1
- package/dist/communityRepository/communityMembership/events/onCommunityLeft.d.ts.map +1 -1
- package/dist/communityRepository/communityMembership/events/onCommunityUserAdded.d.ts +1 -1
- package/dist/communityRepository/communityMembership/events/onCommunityUserAdded.d.ts.map +1 -1
- package/dist/communityRepository/communityMembership/events/onCommunityUserBanned.d.ts +1 -1
- package/dist/communityRepository/communityMembership/events/onCommunityUserBanned.d.ts.map +1 -1
- package/dist/communityRepository/communityMembership/events/onCommunityUserChanged.d.ts +1 -1
- package/dist/communityRepository/communityMembership/events/onCommunityUserChanged.d.ts.map +1 -1
- package/dist/communityRepository/communityMembership/events/onCommunityUserRemoved.d.ts +1 -1
- package/dist/communityRepository/communityMembership/events/onCommunityUserRemoved.d.ts.map +1 -1
- package/dist/communityRepository/communityMembership/events/onCommunityUserRoleAdded.d.ts +1 -1
- package/dist/communityRepository/communityMembership/events/onCommunityUserRoleAdded.d.ts.map +1 -1
- package/dist/communityRepository/communityMembership/events/onCommunityUserRoleRemoved.d.ts +1 -1
- package/dist/communityRepository/communityMembership/events/onCommunityUserRoleRemoved.d.ts.map +1 -1
- package/dist/communityRepository/communityMembership/events/onCommunityUserUnbanned.d.ts +1 -1
- package/dist/communityRepository/communityMembership/events/onCommunityUserUnbanned.d.ts.map +1 -1
- package/dist/communityRepository/communityMembership/events/onLocalCommunityJoined.d.ts +1 -1
- package/dist/communityRepository/communityMembership/events/onLocalCommunityJoined.d.ts.map +1 -1
- package/dist/communityRepository/communityMembership/events/onLocalCommunityLeft.d.ts +1 -1
- package/dist/communityRepository/communityMembership/events/onLocalCommunityLeft.d.ts.map +1 -1
- package/dist/communityRepository/communityMembership/events/onLocalCommunityUserAdded.d.ts +1 -1
- package/dist/communityRepository/communityMembership/events/onLocalCommunityUserAdded.d.ts.map +1 -1
- package/dist/communityRepository/communityMembership/events/onLocalCommunityUserRemoved.d.ts +1 -1
- package/dist/communityRepository/communityMembership/events/onLocalCommunityUserRemoved.d.ts.map +1 -1
- package/dist/communityRepository/communityMembership/events/onUserDeleted.d.ts +1 -1
- package/dist/communityRepository/communityMembership/events/onUserDeleted.d.ts.map +1 -1
- package/dist/communityRepository/communityMembership/events/utils.d.ts +2 -2
- package/dist/communityRepository/communityMembership/events/utils.d.ts.map +1 -1
- package/dist/communityRepository/communityMembership/observers/getMembers/CommunityMembersQueryStreamController.d.ts +2 -2
- package/dist/communityRepository/communityMembership/observers/getMembers/CommunityMembersQueryStreamController.d.ts.map +1 -1
- package/dist/communityRepository/communityMembership/observers/searchMembers/SearchCommunityMembersQueryStreamController.d.ts +2 -2
- package/dist/communityRepository/communityMembership/observers/searchMembers/SearchCommunityMembersQueryStreamController.d.ts.map +1 -1
- package/dist/communityRepository/communityModeration/events/onLocalCommunityRoleAdded.d.ts +1 -1
- package/dist/communityRepository/communityModeration/events/onLocalCommunityRoleAdded.d.ts.map +1 -1
- package/dist/communityRepository/communityModeration/events/onLocalCommunityRoleRemoved.d.ts +1 -1
- package/dist/communityRepository/communityModeration/events/onLocalCommunityRoleRemoved.d.ts.map +1 -1
- package/dist/communityRepository/events/onCommunityCreated.d.ts +1 -1
- package/dist/communityRepository/events/onCommunityCreated.d.ts.map +1 -1
- package/dist/communityRepository/events/onCommunityDeleted.d.ts +1 -1
- package/dist/communityRepository/events/onCommunityDeleted.d.ts.map +1 -1
- package/dist/communityRepository/events/onCommunityUpdated.d.ts +1 -1
- package/dist/communityRepository/events/onCommunityUpdated.d.ts.map +1 -1
- package/dist/communityRepository/events/utils.d.ts +1 -1
- package/dist/communityRepository/events/utils.d.ts.map +1 -1
- package/dist/communityRepository/observers/getCommunities/CommunitiesQueryStreamController.d.ts +2 -2
- package/dist/communityRepository/observers/getCommunities/CommunitiesQueryStreamController.d.ts.map +1 -1
- package/dist/communityRepository/observers/getRecommendedCommunities/RecommendedCommunitiesQueryStreamController.d.ts +2 -2
- package/dist/communityRepository/observers/getRecommendedCommunities/RecommendedCommunitiesQueryStreamController.d.ts.map +1 -1
- package/dist/communityRepository/observers/getTrendingCommunities/TrendingCommunitiesQueryStreamController.d.ts +2 -2
- package/dist/communityRepository/observers/getTrendingCommunities/TrendingCommunitiesQueryStreamController.d.ts.map +1 -1
- package/dist/communityRepository/observers/searchCommunities/SearchCommunitiesQueryStreamController.d.ts +2 -2
- package/dist/communityRepository/observers/searchCommunities/SearchCommunitiesQueryStreamController.d.ts.map +1 -1
- package/dist/communityRepository/observers/semanticSearch/SemanticSearchCommunityQueryStreamController.d.ts +2 -2
- package/dist/communityRepository/observers/semanticSearch/SemanticSearchCommunityQueryStreamController.d.ts.map +1 -1
- package/dist/communityRepository/utils/communityWithMembership.d.ts +1 -1
- package/dist/communityRepository/utils/communityWithMembership.d.ts.map +1 -1
- package/dist/communityRepository/utils/payload.d.ts +1 -1
- package/dist/communityRepository/utils/payload.d.ts.map +1 -1
- package/dist/core/events.d.ts +3 -3
- package/dist/core/events.d.ts.map +1 -1
- package/dist/core/model/idResolvers.d.ts.map +1 -1
- package/dist/core/model/index.d.ts.map +1 -1
- package/dist/index.cjs.js +266 -51
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +248 -34
- package/dist/index.umd.js +4 -4
- package/dist/invitationRepository/events/index.d.ts +2 -0
- package/dist/invitationRepository/events/index.d.ts.map +1 -0
- package/dist/invitationRepository/events/onLocalInvitationCreated.d.ts +17 -0
- package/dist/invitationRepository/events/onLocalInvitationCreated.d.ts.map +1 -0
- package/dist/invitationRepository/events/onLocalInvitationDeleted.d.ts +17 -0
- package/dist/invitationRepository/events/onLocalInvitationDeleted.d.ts.map +1 -0
- package/dist/invitationRepository/events/onLocalInvitationUpdated.d.ts +17 -0
- package/dist/invitationRepository/events/onLocalInvitationUpdated.d.ts.map +1 -0
- package/dist/invitationRepository/index.d.ts +2 -0
- package/dist/invitationRepository/index.d.ts.map +1 -0
- package/dist/invitationRepository/internalApi/acceptInvitation.d.ts +16 -0
- package/dist/invitationRepository/internalApi/acceptInvitation.d.ts.map +1 -0
- package/dist/invitationRepository/internalApi/cancelInvitation.d.ts +16 -0
- package/dist/invitationRepository/internalApi/cancelInvitation.d.ts.map +1 -0
- package/dist/invitationRepository/internalApi/createInvitations.d.ts +21 -0
- package/dist/invitationRepository/internalApi/createInvitations.d.ts.map +1 -0
- package/dist/invitationRepository/internalApi/index.d.ts +5 -0
- package/dist/invitationRepository/internalApi/index.d.ts.map +1 -0
- package/dist/invitationRepository/internalApi/rejectInvitation.d.ts +16 -0
- package/dist/invitationRepository/internalApi/rejectInvitation.d.ts.map +1 -0
- package/dist/utils/linkedObject/communityLinkedObject.d.ts +2 -0
- package/dist/utils/linkedObject/communityLinkedObject.d.ts.map +1 -0
- package/dist/utils/linkedObject/index.d.ts +2 -0
- package/dist/utils/linkedObject/index.d.ts.map +1 -1
- package/dist/utils/linkedObject/invitationLinkedObject.d.ts +2 -0
- package/dist/utils/linkedObject/invitationLinkedObject.d.ts.map +1 -0
- package/dist/utils/tests/dummy/post.d.ts +3 -3
- package/package.json +1 -1
- package/src/@types/core/events.ts +4 -0
- package/src/@types/core/model.ts +5 -1
- package/src/@types/core/payload.ts +9 -4
- package/src/@types/domains/community.ts +10 -1
- package/src/@types/domains/invitation.ts +52 -0
- package/src/@types/index.ts +1 -0
- package/src/communityRepository/api/createCommunity.ts +2 -1
- package/src/communityRepository/api/getCommunities.ts +2 -1
- package/src/communityRepository/api/getCommunity.ts +4 -1
- package/src/communityRepository/api/getRecommendedCommunities.ts +2 -1
- package/src/communityRepository/api/getTrendingCommunities.ts +2 -1
- package/src/communityRepository/api/queryCommunities.ts +6 -1
- package/src/communityRepository/api/updateCommunity.ts +4 -1
- package/src/communityRepository/communityMembership/events/onCommunityJoined.ts +1 -1
- package/src/communityRepository/communityMembership/events/onCommunityLeft.ts +1 -1
- package/src/communityRepository/communityMembership/events/onCommunityUserAdded.ts +1 -1
- package/src/communityRepository/communityMembership/events/onCommunityUserBanned.ts +1 -1
- package/src/communityRepository/communityMembership/events/onCommunityUserChanged.ts +1 -1
- package/src/communityRepository/communityMembership/events/onCommunityUserRemoved.ts +1 -1
- package/src/communityRepository/communityMembership/events/onCommunityUserRoleAdded.ts +1 -1
- package/src/communityRepository/communityMembership/events/onCommunityUserRoleRemoved.ts +1 -1
- package/src/communityRepository/communityMembership/events/onCommunityUserUnbanned.ts +1 -1
- package/src/communityRepository/communityMembership/events/onLocalCommunityJoined.ts +1 -1
- package/src/communityRepository/communityMembership/events/onLocalCommunityLeft.ts +1 -1
- package/src/communityRepository/communityMembership/events/onLocalCommunityUserAdded.ts +1 -1
- package/src/communityRepository/communityMembership/events/onLocalCommunityUserRemoved.ts +1 -1
- package/src/communityRepository/communityMembership/events/onUserDeleted.ts +3 -1
- package/src/communityRepository/communityMembership/events/utils.ts +2 -2
- package/src/communityRepository/communityMembership/observers/getMembers/CommunityMembersQueryStreamController.ts +8 -2
- package/src/communityRepository/communityMembership/observers/searchMembers/SearchCommunityMembersQueryStreamController.ts +8 -2
- package/src/communityRepository/communityModeration/events/onLocalCommunityRoleAdded.ts +1 -1
- package/src/communityRepository/communityModeration/events/onLocalCommunityRoleRemoved.ts +1 -1
- package/src/communityRepository/events/onCommunityCreated.ts +1 -1
- package/src/communityRepository/events/onCommunityDeleted.ts +1 -1
- package/src/communityRepository/events/onCommunityUpdated.ts +1 -1
- package/src/communityRepository/events/utils.ts +1 -1
- package/src/communityRepository/observers/getCommunities/CommunitiesQueryStreamController.ts +2 -2
- package/src/communityRepository/observers/getRecommendedCommunities/RecommendedCommunitiesQueryStreamController.ts +2 -2
- package/src/communityRepository/observers/getTrendingCommunities/TrendingCommunitiesQueryStreamController.ts +2 -2
- package/src/communityRepository/observers/searchCommunities/SearchCommunitiesQueryStreamController.ts +2 -2
- package/src/communityRepository/observers/semanticSearch/SemanticSearchCommunityQueryStreamController.ts +2 -2
- package/src/communityRepository/utils/communityWithMembership.ts +8 -4
- package/src/communityRepository/utils/payload.ts +1 -1
- package/src/core/model/idResolvers.ts +2 -0
- package/src/core/model/index.ts +2 -0
- package/src/index.ts +2 -0
- package/src/invitationRepository/events/index.ts +1 -0
- package/src/invitationRepository/events/onLocalInvitationCreated.ts +33 -0
- package/src/invitationRepository/events/onLocalInvitationDeleted.ts +33 -0
- package/src/invitationRepository/events/onLocalInvitationUpdated.ts +33 -0
- package/src/invitationRepository/index.ts +1 -0
- package/src/invitationRepository/internalApi/acceptInvitation.ts +45 -0
- package/src/invitationRepository/internalApi/cancelInvitation.ts +44 -0
- package/src/invitationRepository/internalApi/createInvitations.ts +46 -0
- package/src/invitationRepository/internalApi/index.ts +4 -0
- package/src/invitationRepository/internalApi/rejectInvitation.ts +45 -0
- package/src/utils/linkedObject/communityLinkedObject.ts +16 -0
- package/src/utils/linkedObject/index.ts +4 -0
- package/src/utils/linkedObject/invitationLinkedObject.ts +20 -0
package/dist/index.cjs.js
CHANGED
|
@@ -118,6 +118,19 @@ const PostContentType = Object.freeze({
|
|
|
118
118
|
POLL: 'poll',
|
|
119
119
|
});
|
|
120
120
|
|
|
121
|
+
exports.InvitationTypeEnum = void 0;
|
|
122
|
+
(function (InvitationTypeEnum) {
|
|
123
|
+
InvitationTypeEnum["CommunityMemberInvite"] = "communityMemberInvite";
|
|
124
|
+
InvitationTypeEnum["LivestreamInvite"] = "livestreamInvite";
|
|
125
|
+
})(exports.InvitationTypeEnum || (exports.InvitationTypeEnum = {}));
|
|
126
|
+
exports.InvitationStatusEnum = void 0;
|
|
127
|
+
(function (InvitationStatusEnum) {
|
|
128
|
+
InvitationStatusEnum["Pending"] = "pending";
|
|
129
|
+
InvitationStatusEnum["Approved"] = "approved";
|
|
130
|
+
InvitationStatusEnum["Rejected"] = "rejected";
|
|
131
|
+
InvitationStatusEnum["Cancelled"] = "cancelled";
|
|
132
|
+
})(exports.InvitationStatusEnum || (exports.InvitationStatusEnum = {}));
|
|
133
|
+
|
|
121
134
|
function getVersion() {
|
|
122
135
|
try {
|
|
123
136
|
// the string ''v7.4.0-cjs'' should be replaced by actual value by @rollup/plugin-replace
|
|
@@ -564,6 +577,7 @@ const idResolvers = {
|
|
|
564
577
|
pinTarget: ({ targetId }) => targetId,
|
|
565
578
|
notificationTrayItem: ({ _id }) => _id,
|
|
566
579
|
notificationTraySeen: ({ userId }) => userId,
|
|
580
|
+
invitation: ({ _id }) => _id,
|
|
567
581
|
};
|
|
568
582
|
/**
|
|
569
583
|
* Retrieve the id resolver matching a domain name
|
|
@@ -616,6 +630,7 @@ const PAYLOAD2MODEL = {
|
|
|
616
630
|
pinTargets: 'pinTarget',
|
|
617
631
|
pins: 'pin',
|
|
618
632
|
notificationTrayItems: 'notificationTrayItem',
|
|
633
|
+
invitations: 'invitation',
|
|
619
634
|
};
|
|
620
635
|
/** hidden */
|
|
621
636
|
const isOutdated = (prevData, nextData) => {
|
|
@@ -6295,6 +6310,169 @@ const notificationTrayLinkedObject = (noti) => {
|
|
|
6295
6310
|
.map(user => userLinkedObject(user)) });
|
|
6296
6311
|
};
|
|
6297
6312
|
|
|
6313
|
+
/* begin_public_function
|
|
6314
|
+
id: invitation.createInvitations
|
|
6315
|
+
*/
|
|
6316
|
+
/**
|
|
6317
|
+
* ```js
|
|
6318
|
+
* import { createInvitations } from '@amityco/ts-sdk'
|
|
6319
|
+
* const created = await createInvitations({
|
|
6320
|
+
* type: string,
|
|
6321
|
+
* targetType: string,
|
|
6322
|
+
* targetId: string,
|
|
6323
|
+
* userIds: string[]
|
|
6324
|
+
* }))
|
|
6325
|
+
* ```
|
|
6326
|
+
*
|
|
6327
|
+
* Creates an {@link Amity.Invitation}
|
|
6328
|
+
*
|
|
6329
|
+
* @param bundle The data necessary to create a new {@link Amity.Invitation}
|
|
6330
|
+
* @returns The newly created {@link Amity.Invitation}
|
|
6331
|
+
*
|
|
6332
|
+
* @category Invitation API
|
|
6333
|
+
* @async
|
|
6334
|
+
*/
|
|
6335
|
+
const createInvitations = async (bundle) => {
|
|
6336
|
+
const client = getActiveClient();
|
|
6337
|
+
client.log('invitation/createInvitations', bundle);
|
|
6338
|
+
const { data } = await client.http.post('/api/v1/invitations', bundle);
|
|
6339
|
+
const cachedAt = client.cache && Date.now();
|
|
6340
|
+
if (client.cache)
|
|
6341
|
+
ingestInCache(data, { cachedAt });
|
|
6342
|
+
fireEvent('local.invitation.created', data);
|
|
6343
|
+
return {
|
|
6344
|
+
data: data.invitations,
|
|
6345
|
+
cachedAt,
|
|
6346
|
+
};
|
|
6347
|
+
};
|
|
6348
|
+
/* end_public_function */
|
|
6349
|
+
|
|
6350
|
+
/* begin_public_function
|
|
6351
|
+
id: invitation.accept
|
|
6352
|
+
*/
|
|
6353
|
+
/**
|
|
6354
|
+
* ```js
|
|
6355
|
+
* import { acceptInvitation } from '@amityco/ts-sdk'
|
|
6356
|
+
* const isAccepted = await acceptInvitation(invitationId)
|
|
6357
|
+
* ```
|
|
6358
|
+
*
|
|
6359
|
+
* Accepts a {@link Amity.Invitation} object
|
|
6360
|
+
*
|
|
6361
|
+
* @param invitationId the {@link Amity.Invitation} to accept
|
|
6362
|
+
* @returns A success boolean if the {@link Amity.Invitation} was accepted
|
|
6363
|
+
*
|
|
6364
|
+
* @category Invitation API
|
|
6365
|
+
* @async
|
|
6366
|
+
*/
|
|
6367
|
+
const acceptInvitation = async (invitationId) => {
|
|
6368
|
+
var _a;
|
|
6369
|
+
const client = getActiveClient();
|
|
6370
|
+
client.log('invitation/acceptInvitation', invitationId);
|
|
6371
|
+
const { data } = await client.http.post(`/api/v1/invitations/${invitationId}/accept`);
|
|
6372
|
+
const invitation = (_a = pullFromCache([
|
|
6373
|
+
'invitation',
|
|
6374
|
+
'get',
|
|
6375
|
+
invitationId,
|
|
6376
|
+
])) === null || _a === void 0 ? void 0 : _a.data;
|
|
6377
|
+
if (invitation) {
|
|
6378
|
+
upsertInCache(['invitation', 'get', invitationId], { status: "approved" /* InvitationStatusEnum.Approved */ });
|
|
6379
|
+
fireEvent('local.invitation.updated', { invitations: [invitation] });
|
|
6380
|
+
}
|
|
6381
|
+
return data.success;
|
|
6382
|
+
};
|
|
6383
|
+
/* end_public_function */
|
|
6384
|
+
|
|
6385
|
+
/* begin_public_function
|
|
6386
|
+
id: invitation.reject
|
|
6387
|
+
*/
|
|
6388
|
+
/**
|
|
6389
|
+
* ```js
|
|
6390
|
+
* import { rejectInvitation } from '@amityco/ts-sdk'
|
|
6391
|
+
* const isRejected = await rejectInvitation(invitationId)
|
|
6392
|
+
* ```
|
|
6393
|
+
*
|
|
6394
|
+
* Rejects a {@link Amity.Invitation} object
|
|
6395
|
+
*
|
|
6396
|
+
* @param invitationId the {@link Amity.Invitation} to reject
|
|
6397
|
+
* @returns A success boolean if the {@link Amity.Invitation} was rejected
|
|
6398
|
+
*
|
|
6399
|
+
* @category Invitation API
|
|
6400
|
+
* @async
|
|
6401
|
+
*/
|
|
6402
|
+
const rejectInvitation = async (invitationId) => {
|
|
6403
|
+
var _a;
|
|
6404
|
+
const client = getActiveClient();
|
|
6405
|
+
client.log('invitation/rejectInvitation', invitationId);
|
|
6406
|
+
const { data } = await client.http.post(`/api/v1/invitations/${invitationId}/reject`);
|
|
6407
|
+
const invitation = (_a = pullFromCache([
|
|
6408
|
+
'invitation',
|
|
6409
|
+
'get',
|
|
6410
|
+
invitationId,
|
|
6411
|
+
])) === null || _a === void 0 ? void 0 : _a.data;
|
|
6412
|
+
if (invitation) {
|
|
6413
|
+
upsertInCache(['invitation', 'get', invitationId], { status: "rejected" /* InvitationStatusEnum.Rejected */ });
|
|
6414
|
+
fireEvent('local.invitation.updated', { invitations: [invitation] });
|
|
6415
|
+
}
|
|
6416
|
+
return data.success;
|
|
6417
|
+
};
|
|
6418
|
+
/* end_public_function */
|
|
6419
|
+
|
|
6420
|
+
/* begin_public_function
|
|
6421
|
+
id: invitation.cancel
|
|
6422
|
+
*/
|
|
6423
|
+
/**
|
|
6424
|
+
* ```js
|
|
6425
|
+
* import { cancelInvitation } from '@amityco/ts-sdk'
|
|
6426
|
+
* const isCanceled = await cancelInvitation(invitationId)
|
|
6427
|
+
* ```
|
|
6428
|
+
*
|
|
6429
|
+
* Cancels a {@link Amity.Invitation} object
|
|
6430
|
+
*
|
|
6431
|
+
* @param invitationId the {@link Amity.Invitation} to cancel
|
|
6432
|
+
* @returns A success boolean if the {@link Amity.Invitation} was canceled
|
|
6433
|
+
*
|
|
6434
|
+
* @category Invitation API
|
|
6435
|
+
* @async
|
|
6436
|
+
*/
|
|
6437
|
+
const cancelInvitation = async (invitationId) => {
|
|
6438
|
+
var _a;
|
|
6439
|
+
const client = getActiveClient();
|
|
6440
|
+
client.log('invitation/cancelInvitation', invitationId);
|
|
6441
|
+
const { data } = await client.http.delete(`/api/v1/invitations/${invitationId}`);
|
|
6442
|
+
const invitation = (_a = pullFromCache([
|
|
6443
|
+
'invitation',
|
|
6444
|
+
'get',
|
|
6445
|
+
invitationId,
|
|
6446
|
+
])) === null || _a === void 0 ? void 0 : _a.data;
|
|
6447
|
+
if (invitation) {
|
|
6448
|
+
dropFromCache(['invitation', 'get', invitationId]);
|
|
6449
|
+
fireEvent('local.invitation.deleted', { invitations: [invitation] });
|
|
6450
|
+
}
|
|
6451
|
+
return data.success;
|
|
6452
|
+
};
|
|
6453
|
+
/* end_public_function */
|
|
6454
|
+
|
|
6455
|
+
const communityLinkedObject = (community) => {
|
|
6456
|
+
return Object.assign(Object.assign({}, community), { createInvitations: async (userIds) => {
|
|
6457
|
+
await createInvitations({
|
|
6458
|
+
type: "communityMemberInvite" /* InvitationTypeEnum.CommunityMemberInvite */,
|
|
6459
|
+
targetType: 'community',
|
|
6460
|
+
targetId: community.communityId,
|
|
6461
|
+
userIds,
|
|
6462
|
+
});
|
|
6463
|
+
} });
|
|
6464
|
+
};
|
|
6465
|
+
|
|
6466
|
+
const invitationLinkedObject = (invitation) => {
|
|
6467
|
+
return Object.assign(Object.assign({}, invitation), { accept: async () => {
|
|
6468
|
+
await acceptInvitation(invitation._id);
|
|
6469
|
+
}, reject: async () => {
|
|
6470
|
+
await rejectInvitation(invitation._id);
|
|
6471
|
+
}, cancel: async () => {
|
|
6472
|
+
await cancelInvitation(invitation._id);
|
|
6473
|
+
} });
|
|
6474
|
+
};
|
|
6475
|
+
|
|
6298
6476
|
const LinkedObject = {
|
|
6299
6477
|
ad: adLinkedObject,
|
|
6300
6478
|
comment: commentLinkedObject,
|
|
@@ -6309,6 +6487,8 @@ const LinkedObject = {
|
|
|
6309
6487
|
channel: channelLinkedObject,
|
|
6310
6488
|
pinnedPost: pinnedPostLinkedObject,
|
|
6311
6489
|
notificationTray: notificationTrayLinkedObject,
|
|
6490
|
+
community: communityLinkedObject,
|
|
6491
|
+
invitation: invitationLinkedObject,
|
|
6312
6492
|
};
|
|
6313
6493
|
|
|
6314
6494
|
const getChannelMessagePreviewWithUser = (channel) => {
|
|
@@ -10210,7 +10390,7 @@ const getUserUnread = (callback) => {
|
|
|
10210
10390
|
};
|
|
10211
10391
|
};
|
|
10212
10392
|
|
|
10213
|
-
var index$
|
|
10393
|
+
var index$n = /*#__PURE__*/Object.freeze({
|
|
10214
10394
|
__proto__: null,
|
|
10215
10395
|
getActiveClient: getActiveClient,
|
|
10216
10396
|
getActiveUser: getActiveUser,
|
|
@@ -11417,7 +11597,7 @@ const getMyFollowInfo = (callback) => {
|
|
|
11417
11597
|
};
|
|
11418
11598
|
/* end_public_function */
|
|
11419
11599
|
|
|
11420
|
-
var index$
|
|
11600
|
+
var index$m = /*#__PURE__*/Object.freeze({
|
|
11421
11601
|
__proto__: null,
|
|
11422
11602
|
blockUser: blockUser,
|
|
11423
11603
|
unBlockUser: unBlockUser,
|
|
@@ -12432,9 +12612,9 @@ var AmityUserSearchMatchType;
|
|
|
12432
12612
|
AmityUserSearchMatchType["PARTIAL"] = "partial";
|
|
12433
12613
|
})(AmityUserSearchMatchType || (AmityUserSearchMatchType = {}));
|
|
12434
12614
|
|
|
12435
|
-
var index$
|
|
12615
|
+
var index$l = /*#__PURE__*/Object.freeze({
|
|
12436
12616
|
__proto__: null,
|
|
12437
|
-
Relationship: index$
|
|
12617
|
+
Relationship: index$m,
|
|
12438
12618
|
getUserByIds: getUserByIds,
|
|
12439
12619
|
updateUser: updateUser,
|
|
12440
12620
|
flagUser: flagUser,
|
|
@@ -12742,7 +12922,7 @@ const updateAltText = async (fileId, altText) => {
|
|
|
12742
12922
|
};
|
|
12743
12923
|
/* end_public_function */
|
|
12744
12924
|
|
|
12745
|
-
var index$
|
|
12925
|
+
var index$k = /*#__PURE__*/Object.freeze({
|
|
12746
12926
|
__proto__: null,
|
|
12747
12927
|
getFile: getFile,
|
|
12748
12928
|
uploadFile: uploadFile,
|
|
@@ -13113,7 +13293,11 @@ function isCurrentUserPartOfCommunity(c, m) {
|
|
|
13113
13293
|
*/
|
|
13114
13294
|
function updateMembershipStatus(communities, communityUsers) {
|
|
13115
13295
|
return communities.map(c => {
|
|
13116
|
-
const cachedCommunity = pullFromCache([
|
|
13296
|
+
const cachedCommunity = pullFromCache([
|
|
13297
|
+
'community',
|
|
13298
|
+
'get',
|
|
13299
|
+
c.communityId,
|
|
13300
|
+
]);
|
|
13117
13301
|
if ((cachedCommunity === null || cachedCommunity === void 0 ? void 0 : cachedCommunity.data) && (cachedCommunity === null || cachedCommunity === void 0 ? void 0 : cachedCommunity.data.hasOwnProperty('isJoined'))) {
|
|
13118
13302
|
return Object.assign(Object.assign({}, cachedCommunity.data), c);
|
|
13119
13303
|
}
|
|
@@ -14610,7 +14794,7 @@ const getReactions = (params, callback, config) => {
|
|
|
14610
14794
|
};
|
|
14611
14795
|
/* end_public_function */
|
|
14612
14796
|
|
|
14613
|
-
var index$
|
|
14797
|
+
var index$j = /*#__PURE__*/Object.freeze({
|
|
14614
14798
|
__proto__: null,
|
|
14615
14799
|
addReaction: addReaction,
|
|
14616
14800
|
removeReaction: removeReaction,
|
|
@@ -16433,7 +16617,7 @@ const getMessages = (params, callback, config) => {
|
|
|
16433
16617
|
};
|
|
16434
16618
|
/* end_public_function */
|
|
16435
16619
|
|
|
16436
|
-
var index$
|
|
16620
|
+
var index$i = /*#__PURE__*/Object.freeze({
|
|
16437
16621
|
__proto__: null,
|
|
16438
16622
|
createMessage: createMessage,
|
|
16439
16623
|
updateMessage: updateMessage,
|
|
@@ -16959,7 +17143,7 @@ const stopMessageReceiptSync = (subChannelId) => {
|
|
|
16959
17143
|
};
|
|
16960
17144
|
/* end_public_function */
|
|
16961
17145
|
|
|
16962
|
-
var index$
|
|
17146
|
+
var index$h = /*#__PURE__*/Object.freeze({
|
|
16963
17147
|
__proto__: null,
|
|
16964
17148
|
getSubChannelByIds: getSubChannels$1,
|
|
16965
17149
|
createSubChannel: createSubChannel,
|
|
@@ -18273,7 +18457,7 @@ const searchMembers$1 = (params, callback, config) => {
|
|
|
18273
18457
|
};
|
|
18274
18458
|
/* end_public_function */
|
|
18275
18459
|
|
|
18276
|
-
var index$
|
|
18460
|
+
var index$g = /*#__PURE__*/Object.freeze({
|
|
18277
18461
|
__proto__: null,
|
|
18278
18462
|
addMembers: addMembers$1,
|
|
18279
18463
|
removeMembers: removeMembers$1,
|
|
@@ -18476,7 +18660,7 @@ const unmuteMembers = async (channelId, userIds) => {
|
|
|
18476
18660
|
};
|
|
18477
18661
|
/* end_public_function */
|
|
18478
18662
|
|
|
18479
|
-
var index$
|
|
18663
|
+
var index$f = /*#__PURE__*/Object.freeze({
|
|
18480
18664
|
__proto__: null,
|
|
18481
18665
|
addRole: addRole,
|
|
18482
18666
|
removeRole: removeRole,
|
|
@@ -18486,10 +18670,10 @@ var index$e = /*#__PURE__*/Object.freeze({
|
|
|
18486
18670
|
unmuteMembers: unmuteMembers
|
|
18487
18671
|
});
|
|
18488
18672
|
|
|
18489
|
-
var index$
|
|
18673
|
+
var index$e = /*#__PURE__*/Object.freeze({
|
|
18490
18674
|
__proto__: null,
|
|
18491
|
-
Membership: index$
|
|
18492
|
-
Moderation: index$
|
|
18675
|
+
Membership: index$g,
|
|
18676
|
+
Moderation: index$f,
|
|
18493
18677
|
getChannelByIds: getChannelByIds$1,
|
|
18494
18678
|
createChannel: createChannel,
|
|
18495
18679
|
updateChannel: updateChannel,
|
|
@@ -18557,7 +18741,7 @@ const getCommunities$1 = async (communityIds) => {
|
|
|
18557
18741
|
saveCommunityUsers(data.communities, data.communityUsers);
|
|
18558
18742
|
}
|
|
18559
18743
|
return {
|
|
18560
|
-
data: data.communities,
|
|
18744
|
+
data: data.communities.map(community => LinkedObject.community(community)),
|
|
18561
18745
|
cachedAt,
|
|
18562
18746
|
};
|
|
18563
18747
|
};
|
|
@@ -18623,7 +18807,7 @@ const createCommunity = async (bundle) => {
|
|
|
18623
18807
|
}
|
|
18624
18808
|
const { communities } = data;
|
|
18625
18809
|
return {
|
|
18626
|
-
data: communities[0],
|
|
18810
|
+
data: LinkedObject.community(communities[0]),
|
|
18627
18811
|
cachedAt,
|
|
18628
18812
|
};
|
|
18629
18813
|
};
|
|
@@ -18660,7 +18844,7 @@ const updateCommunity = async (communityId, patch) => {
|
|
|
18660
18844
|
}
|
|
18661
18845
|
const { communities } = data;
|
|
18662
18846
|
return {
|
|
18663
|
-
data: communities.find(community => community.communityId === communityId),
|
|
18847
|
+
data: LinkedObject.community(communities.find(community => community.communityId === communityId)),
|
|
18664
18848
|
cachedAt,
|
|
18665
18849
|
};
|
|
18666
18850
|
};
|
|
@@ -18693,7 +18877,7 @@ const getCommunity$1 = async (communityId) => {
|
|
|
18693
18877
|
}
|
|
18694
18878
|
const { communities } = data;
|
|
18695
18879
|
return {
|
|
18696
|
-
data: communities.find(community => community.communityId === communityId),
|
|
18880
|
+
data: LinkedObject.community(communities.find(community => community.communityId === communityId)),
|
|
18697
18881
|
cachedAt,
|
|
18698
18882
|
};
|
|
18699
18883
|
};
|
|
@@ -19869,7 +20053,7 @@ const searchMembers = (params, callback, config) => {
|
|
|
19869
20053
|
};
|
|
19870
20054
|
/* end_public_function */
|
|
19871
20055
|
|
|
19872
|
-
var index$
|
|
20056
|
+
var index$d = /*#__PURE__*/Object.freeze({
|
|
19873
20057
|
__proto__: null,
|
|
19874
20058
|
addMembers: addMembers,
|
|
19875
20059
|
removeMembers: removeMembers,
|
|
@@ -20894,7 +21078,7 @@ const unbanMembers = async (communityId, userIds) => {
|
|
|
20894
21078
|
};
|
|
20895
21079
|
/* end_public_function */
|
|
20896
21080
|
|
|
20897
|
-
var index$
|
|
21081
|
+
var index$c = /*#__PURE__*/Object.freeze({
|
|
20898
21082
|
__proto__: null,
|
|
20899
21083
|
addRoles: addRoles,
|
|
20900
21084
|
removeRoles: removeRoles,
|
|
@@ -20902,10 +21086,10 @@ var index$b = /*#__PURE__*/Object.freeze({
|
|
|
20902
21086
|
unbanMembers: unbanMembers
|
|
20903
21087
|
});
|
|
20904
21088
|
|
|
20905
|
-
var index$
|
|
21089
|
+
var index$b = /*#__PURE__*/Object.freeze({
|
|
20906
21090
|
__proto__: null,
|
|
20907
|
-
Moderation: index$
|
|
20908
|
-
Membership: index$
|
|
21091
|
+
Moderation: index$c,
|
|
21092
|
+
Membership: index$d,
|
|
20909
21093
|
getCommunityByIds: getCommunities$1,
|
|
20910
21094
|
createCommunity: createCommunity,
|
|
20911
21095
|
updateCommunity: updateCommunity,
|
|
@@ -21138,7 +21322,7 @@ const getCategories = (params, callback, config) => {
|
|
|
21138
21322
|
};
|
|
21139
21323
|
/* end_public_function */
|
|
21140
21324
|
|
|
21141
|
-
var index$
|
|
21325
|
+
var index$a = /*#__PURE__*/Object.freeze({
|
|
21142
21326
|
__proto__: null,
|
|
21143
21327
|
getCategory: getCategory,
|
|
21144
21328
|
getCategories: getCategories
|
|
@@ -21306,7 +21490,7 @@ getCustomRankingGlobalFeed.locally = (query) => {
|
|
|
21306
21490
|
: undefined;
|
|
21307
21491
|
};
|
|
21308
21492
|
|
|
21309
|
-
var index$
|
|
21493
|
+
var index$9 = /*#__PURE__*/Object.freeze({
|
|
21310
21494
|
__proto__: null,
|
|
21311
21495
|
queryGlobalFeed: queryGlobalFeed,
|
|
21312
21496
|
getCustomRankingGlobalFeed: getCustomRankingGlobalFeed
|
|
@@ -22635,7 +22819,7 @@ const getComments = (params, callback, config) => {
|
|
|
22635
22819
|
};
|
|
22636
22820
|
/* end_public_function */
|
|
22637
22821
|
|
|
22638
|
-
var index$
|
|
22822
|
+
var index$8 = /*#__PURE__*/Object.freeze({
|
|
22639
22823
|
__proto__: null,
|
|
22640
22824
|
getCommentByIds: getCommentByIds,
|
|
22641
22825
|
createComment: createComment,
|
|
@@ -23642,7 +23826,7 @@ const semanticSearchPosts = (params, callback, config) => {
|
|
|
23642
23826
|
};
|
|
23643
23827
|
};
|
|
23644
23828
|
|
|
23645
|
-
var index$
|
|
23829
|
+
var index$7 = /*#__PURE__*/Object.freeze({
|
|
23646
23830
|
__proto__: null,
|
|
23647
23831
|
getPostByIds: getPostByIds,
|
|
23648
23832
|
createPost: createPost,
|
|
@@ -24176,7 +24360,7 @@ const getStreams = (params, callback, config) => {
|
|
|
24176
24360
|
};
|
|
24177
24361
|
};
|
|
24178
24362
|
|
|
24179
|
-
var index$
|
|
24363
|
+
var index$6 = /*#__PURE__*/Object.freeze({
|
|
24180
24364
|
__proto__: null,
|
|
24181
24365
|
createStream: createStream,
|
|
24182
24366
|
updateStream: updateStream,
|
|
@@ -24463,7 +24647,7 @@ const getPoll = (pollId, callback) => {
|
|
|
24463
24647
|
};
|
|
24464
24648
|
/* end_public_function */
|
|
24465
24649
|
|
|
24466
|
-
var index$
|
|
24650
|
+
var index$5 = /*#__PURE__*/Object.freeze({
|
|
24467
24651
|
__proto__: null,
|
|
24468
24652
|
createPoll: createPoll,
|
|
24469
24653
|
closePoll: closePoll,
|
|
@@ -24834,7 +25018,7 @@ const getPlayer = async (parameters) => {
|
|
|
24834
25018
|
return video;
|
|
24835
25019
|
};
|
|
24836
25020
|
|
|
24837
|
-
var index$
|
|
25021
|
+
var index$4 = /*#__PURE__*/Object.freeze({
|
|
24838
25022
|
__proto__: null,
|
|
24839
25023
|
getPlayer: getPlayer
|
|
24840
25024
|
});
|
|
@@ -26007,7 +26191,7 @@ const getGlobalStoryTargets = (params, callback, config) => {
|
|
|
26007
26191
|
};
|
|
26008
26192
|
};
|
|
26009
26193
|
|
|
26010
|
-
var index$
|
|
26194
|
+
var index$3 = /*#__PURE__*/Object.freeze({
|
|
26011
26195
|
__proto__: null,
|
|
26012
26196
|
createImageStory: createImageStory,
|
|
26013
26197
|
createVideoStory: createVideoStory,
|
|
@@ -26044,7 +26228,7 @@ const getNetworkAds = async () => {
|
|
|
26044
26228
|
};
|
|
26045
26229
|
};
|
|
26046
26230
|
|
|
26047
|
-
var index$
|
|
26231
|
+
var index$2 = /*#__PURE__*/Object.freeze({
|
|
26048
26232
|
__proto__: null,
|
|
26049
26233
|
getNetworkAds: getNetworkAds
|
|
26050
26234
|
});
|
|
@@ -26435,7 +26619,7 @@ const markTraySeen = async (lastSeenAt) => {
|
|
|
26435
26619
|
};
|
|
26436
26620
|
/* end_public_function */
|
|
26437
26621
|
|
|
26438
|
-
var index = /*#__PURE__*/Object.freeze({
|
|
26622
|
+
var index$1 = /*#__PURE__*/Object.freeze({
|
|
26439
26623
|
__proto__: null,
|
|
26440
26624
|
getNotificationTraySeen: getNotificationTraySeen,
|
|
26441
26625
|
getNotificationTrayItems: getNotificationTrayItems,
|
|
@@ -26444,31 +26628,62 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
26444
26628
|
onNotificationTraySeenUpdated: onNotificationTraySeenUpdated
|
|
26445
26629
|
});
|
|
26446
26630
|
|
|
26631
|
+
/**
|
|
26632
|
+
* ```js
|
|
26633
|
+
* import { onLocalInvitationCreated } from '@amityco/ts-sdk'
|
|
26634
|
+
* const dispose = onLocalInvitationCreated(data => {
|
|
26635
|
+
* // ...
|
|
26636
|
+
* })
|
|
26637
|
+
* ```
|
|
26638
|
+
*
|
|
26639
|
+
* Fired when an {@link Amity.InvitationPayload} has been created
|
|
26640
|
+
*
|
|
26641
|
+
* @param callback The function to call when the event was fired
|
|
26642
|
+
* @returns an {@link Amity.Unsubscriber} function to stop listening
|
|
26643
|
+
*
|
|
26644
|
+
* @category Invitation Events
|
|
26645
|
+
*/
|
|
26646
|
+
const onLocalInvitationCreated = (callback) => {
|
|
26647
|
+
const client = getActiveClient();
|
|
26648
|
+
const disposers = [
|
|
26649
|
+
createEventSubscriber(client, 'onLocalInvitationCreated', 'local.invitation.created', payload => callback(payload)),
|
|
26650
|
+
];
|
|
26651
|
+
return () => {
|
|
26652
|
+
disposers.forEach(fn => fn());
|
|
26653
|
+
};
|
|
26654
|
+
};
|
|
26655
|
+
|
|
26656
|
+
var index = /*#__PURE__*/Object.freeze({
|
|
26657
|
+
__proto__: null,
|
|
26658
|
+
onLocalInvitationCreated: onLocalInvitationCreated
|
|
26659
|
+
});
|
|
26660
|
+
|
|
26447
26661
|
exports.API_REGIONS = API_REGIONS;
|
|
26448
|
-
exports.AdRepository = index$
|
|
26449
|
-
exports.CategoryRepository = index$
|
|
26450
|
-
exports.ChannelRepository = index$
|
|
26451
|
-
exports.Client = index$
|
|
26452
|
-
exports.CommentRepository = index$
|
|
26662
|
+
exports.AdRepository = index$2;
|
|
26663
|
+
exports.CategoryRepository = index$a;
|
|
26664
|
+
exports.ChannelRepository = index$e;
|
|
26665
|
+
exports.Client = index$n;
|
|
26666
|
+
exports.CommentRepository = index$8;
|
|
26453
26667
|
exports.CommunityPostSettingMaps = CommunityPostSettingMaps;
|
|
26454
26668
|
exports.CommunityPostSettings = CommunityPostSettings;
|
|
26455
|
-
exports.CommunityRepository = index$
|
|
26669
|
+
exports.CommunityRepository = index$b;
|
|
26456
26670
|
exports.ContentFeedType = ContentFeedType;
|
|
26457
26671
|
exports.DefaultCommunityPostSetting = DefaultCommunityPostSetting;
|
|
26458
|
-
exports.FeedRepository = index$
|
|
26459
|
-
exports.FileRepository = index$
|
|
26672
|
+
exports.FeedRepository = index$9;
|
|
26673
|
+
exports.FileRepository = index$k;
|
|
26460
26674
|
exports.FileType = FileType;
|
|
26461
|
-
exports.
|
|
26675
|
+
exports.InvitationRepository = index;
|
|
26676
|
+
exports.LiveStreamPlayer = index$4;
|
|
26462
26677
|
exports.MessageContentType = MessageContentType;
|
|
26463
|
-
exports.MessageRepository = index$
|
|
26464
|
-
exports.PollRepository = index$
|
|
26678
|
+
exports.MessageRepository = index$i;
|
|
26679
|
+
exports.PollRepository = index$5;
|
|
26465
26680
|
exports.PostContentType = PostContentType;
|
|
26466
|
-
exports.PostRepository = index$
|
|
26467
|
-
exports.ReactionRepository = index$
|
|
26468
|
-
exports.StoryRepository = index$
|
|
26469
|
-
exports.StreamRepository = index$
|
|
26470
|
-
exports.SubChannelRepository = index$
|
|
26471
|
-
exports.UserRepository = index$
|
|
26681
|
+
exports.PostRepository = index$7;
|
|
26682
|
+
exports.ReactionRepository = index$j;
|
|
26683
|
+
exports.StoryRepository = index$3;
|
|
26684
|
+
exports.StreamRepository = index$6;
|
|
26685
|
+
exports.SubChannelRepository = index$h;
|
|
26686
|
+
exports.UserRepository = index$l;
|
|
26472
26687
|
exports.VERSION = VERSION;
|
|
26473
26688
|
exports.VideoResolution = VideoResolution;
|
|
26474
26689
|
exports.VideoSize = VideoSize;
|
|
@@ -26521,7 +26736,7 @@ exports.isPaged = isPaged;
|
|
|
26521
26736
|
exports.isReportedByMe = isReportedByMe;
|
|
26522
26737
|
exports.isSkip = isSkip;
|
|
26523
26738
|
exports.mergeInCache = mergeInCache;
|
|
26524
|
-
exports.notificationTray = index;
|
|
26739
|
+
exports.notificationTray = index$1;
|
|
26525
26740
|
exports.onChannelMarkerFetched = onChannelMarkerFetched;
|
|
26526
26741
|
exports.onFeedMarkerFetched = onFeedMarkerFetched;
|
|
26527
26742
|
exports.onFeedMarkerUpdated = onFeedMarkerUpdated;
|
package/dist/index.d.ts
CHANGED
|
@@ -26,4 +26,5 @@ export * as StoryRepository from './storyRepository';
|
|
|
26
26
|
export * as AdRepository from './adRepository';
|
|
27
27
|
export * from './external/api';
|
|
28
28
|
export * as notificationTray from './notificationTray';
|
|
29
|
+
export * as InvitationRepository from './invitationRepository';
|
|
29
30
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,UAAU,CAAC;AAEzB,cAAc,WAAW,CAAC;AAG1B,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAE5B,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAGvD,OAAO,KAAK,cAAc,MAAM,kBAAkB,CAAC;AAEnD,OAAO,KAAK,cAAc,MAAM,kBAAkB,CAAC;AAEnD,cAAc,YAAY,CAAC;AAG3B,OAAO,KAAK,kBAAkB,MAAM,sBAAsB,CAAC;AAE3D,cAAc,cAAc,CAAC;AAG7B,OAAO,KAAK,iBAAiB,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,iBAAiB,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,oBAAoB,MAAM,wBAAwB,CAAC;AAE/D,cAAc,iBAAiB,CAAC;AAGhC,OAAO,KAAK,mBAAmB,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,kBAAkB,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,cAAc,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,cAAc,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,iBAAiB,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,gBAAgB,MAAM,oBAAoB,CAAC;AAEvD,OAAO,KAAK,cAAc,MAAM,kBAAkB,CAAC;AAEnD,OAAO,KAAK,gBAAgB,MAAM,oBAAoB,CAAC;AAEvD,OAAO,KAAK,eAAe,MAAM,mBAAmB,CAAC;AAGrD,OAAO,KAAK,YAAY,MAAM,gBAAgB,CAAC;AAG/C,cAAc,gBAAgB,CAAC;AAE/B,OAAO,KAAK,gBAAgB,MAAM,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,UAAU,CAAC;AAEzB,cAAc,WAAW,CAAC;AAG1B,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAE5B,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAGvD,OAAO,KAAK,cAAc,MAAM,kBAAkB,CAAC;AAEnD,OAAO,KAAK,cAAc,MAAM,kBAAkB,CAAC;AAEnD,cAAc,YAAY,CAAC;AAG3B,OAAO,KAAK,kBAAkB,MAAM,sBAAsB,CAAC;AAE3D,cAAc,cAAc,CAAC;AAG7B,OAAO,KAAK,iBAAiB,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,iBAAiB,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,oBAAoB,MAAM,wBAAwB,CAAC;AAE/D,cAAc,iBAAiB,CAAC;AAGhC,OAAO,KAAK,mBAAmB,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,kBAAkB,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,cAAc,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,cAAc,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,iBAAiB,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,gBAAgB,MAAM,oBAAoB,CAAC;AAEvD,OAAO,KAAK,cAAc,MAAM,kBAAkB,CAAC;AAEnD,OAAO,KAAK,gBAAgB,MAAM,oBAAoB,CAAC;AAEvD,OAAO,KAAK,eAAe,MAAM,mBAAmB,CAAC;AAGrD,OAAO,KAAK,YAAY,MAAM,gBAAgB,CAAC;AAG/C,cAAc,gBAAgB,CAAC;AAE/B,OAAO,KAAK,gBAAgB,MAAM,oBAAoB,CAAC;AAEvD,OAAO,KAAK,oBAAoB,MAAM,wBAAwB,CAAC"}
|