@amityco/ts-sdk 7.11.1-1768ac5d.0 → 7.11.1-302f84d7.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.
@@ -38,7 +38,11 @@ declare global {
38
38
  EditCommunityCategoryPermission = "EDIT_COMMUNITY_CATEGORY",
39
39
  DeleteCommunityCategoryPermission = "DELETE_COMMUNITY_CATEGORY",
40
40
  ManageStoryPermission = "MANAGE_COMMUNITY_STORY",
41
- CreatePrivillegedPostPermission = "CREATE_PRIVILEGED_POST"
41
+ CreatePrivillegedPostPermission = "CREATE_PRIVILEGED_POST",
42
+ CreateEventPermission = "CREATE_EVENT",
43
+ DeleteEventPermission = "DELETE_EVENT",
44
+ CreateEventWithLivestreamPermission = "CREATE_EVENT_WITH_LIVESTREAM",
45
+ ManageCommunityEventsPermission = "MANAGE_COMMUNITY_EVENTS"
42
46
  }
43
47
  const enum PermissionLegacy {
44
48
  ModeratorRoleLegacy = "moderator",
@@ -1 +1 @@
1
- {"version":3,"file":"permissions.d.ts","sourceRoot":"","sources":["../../../src/@types/core/permissions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC;AAEV,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK,CAAC;QACd,WAAW,UAAU;YACnB,kBAAkB,cAAc;YAChC,iBAAiB,aAAa;YAC9B,oBAAoB,gBAAgB;YACpC,kBAAkB,cAAc;YAChC,oBAAoB,gBAAgB;YACpC,oBAAoB,qBAAqB;YACzC,qBAAqB,iBAAiB;YACtC,8BAA8B,2BAA2B;YACzD,qBAAqB,iBAAiB;YACtC,sBAAsB,kBAAkB;YACxC,wBAAwB,qBAAqB;YAC7C,yBAAyB,sBAAsB;YAC/C,2BAA2B,wBAAwB;YACnD,yBAAyB,sBAAsB;YAC/C,wBAAwB,qBAAqB;YAC7C,qBAAqB,iBAAiB;YACtC,uBAAuB,mBAAmB;YAC1C,uBAAuB,mBAAmB;YAC1C,yBAAyB,qBA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AAiB;YACtC,mCAAmC,iCAAiC;YACpE,+BAA+B,4BAA4B;SAC5D;QAED,WAAW,gBAAgB;YACzB,mBAAmB,cAAc;YACjC,wBAAwB,oBAAoB;YAC5C,qBAAqB,iBAAiB;YACtC,uBAAuB,oBAAoB;YAC3C,wBAAwB,qBAAqB;YAC7C,2BAA2B,wBAAwB;YACnD,6BAA6B,0BAA0B;YACvD,gCAAgC,6BAA6B;YAC7D,8BAA8B,2BAA2B;YACzD,2BAA2B,wBAAwB;YACnD,4BAA4B,yBAAyB;YACrD,iCAAiC,2BAA2B;YAC5D,oCAAoC,8BAA8B;YAClE,8BAA8B,wBAAwB;YACtD,6BAA6B,sBAAsB;YACnD,mCAAmC,4BAA4B;YAC/D,mCAAmC,4BAA4B;YAC/D,yCAAyC,kCAAkC;YAC3E,2BAA2B,qBAAqB;YAChD,8BAA8B,wBAAwB;YACtD,iCAAiC,gCAAgC;SAClE;QAED,KAAK,IAAI,GAAG;YACV,MAAM,EAAE,MAAM,CAAC;YACf,WAAW,EAAE,MAAM,CAAC;YACpB,WAAW,EAAE,UAAU,EAAE,CAAC;SAC3B,GAAG,KAAK,CAAC,UAAU,GAClB,KAAK,CAAC,UAAU,CAAC;QAEnB,KAAK,iBAAiB,GAAG;YACvB,SAAS,EAAE,CAAC,WAAW,EAAE,KAAK,CAAC,SAAS,CAAC,aAAa,CAAC,KAAK,OAAO,CAAC;YACpE,OAAO,EAAE,CAAC,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK,OAAO,CAAC;YAC5D,WAAW,EAAE,MAAM,OAAO,CAAC;SAC5B,CAAC;KACH;CACF"}
@@ -13,11 +13,17 @@ export declare enum AmityEventStatus {
13
13
  Ended = "ended",
14
14
  Cancelled = "cancelled"
15
15
  }
16
+ export declare enum AmityEventResponseStatus {
17
+ Going = "going",
18
+ Interested = "interested",
19
+ NotGoing = "not_going"
20
+ }
16
21
  declare global {
17
22
  namespace Amity {
18
23
  type EventType = AmityEventType;
19
24
  type EventOriginType = AmityEventOriginType;
20
25
  type EventStatus = AmityEventStatus;
26
+ type EventResponseStatus = AmityEventResponseStatus;
21
27
  type RawEvent = {
22
28
  eventId: string;
23
29
  userId: string;
@@ -59,6 +65,11 @@ declare global {
59
65
  };
60
66
  type EventLiveCollection = Amity.LiveCollectionParams<Amity.QueryEvents>;
61
67
  type EventLiveCollectionCache = Amity.LiveCollectionCache<Amity.InternalEvent['eventId'], Amity.QueryEvents>;
68
+ type QueryMyEvents = {
69
+ status: Amity.EventResponseStatus;
70
+ };
71
+ type MyEventLiveCollection = Amity.LiveCollectionParams<Amity.QueryMyEvents>;
72
+ type MyEventLiveCollectionCache = Amity.LiveCollectionCache<Amity.InternalEvent['eventId'], Amity.QueryMyEvents>;
62
73
  type EventCreateOptions = Pick<Amity.Event, 'coverImageFileId' | 'title' | 'description' | 'type' | 'startTime' | 'endTime' | 'originType' | 'originId' | 'location' | 'externalUrl' | 'tags' | 'metadata'>;
63
74
  type EventUpdateOptions = Pick<Amity.Event, 'coverImageFileId' | 'title' | 'description' | 'type' | 'startTime' | 'endTime' | 'location' | 'externalUrl' | 'tags' | 'metadata'>;
64
75
  }
@@ -1 +1 @@
1
- {"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../../src/@types/domains/event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC;AAEV,oBAAY,cAAc;IACxB,OAAO,YAAY;IACnB,QAAQ,cAAc;CACvB;AAED,oBAAY,oBAAoB;IAC9B,SAAS,cAAc;IACvB,IAAI,SAAS;CACd;AAED,oBAAY,gBAAgB;IAC1B,SAAS,cAAc;IACvB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,SAAS,cAAc;CACxB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK,CAAC;QACd,KAAK,SAAS,GAAG,cAAc,CAAC;QAEhC,KAAK,eAAe,GAAG,oBAAoB,CAAC;QAE5C,KAAK,WAAW,GAAG,gBAAgB,CAAC;QAE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jB,MAAM,CAAC,EAAE,MAAM,CAAC;YAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;YAClB,YAAY,CAAC,EAAE,OAAO,CAAC;YACvB,MAAM,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;YAC3B,UAAU,CAAC,EAAE,KAAK,CAAC,eAAe,CAAC;SACpC,CAAC;QAEF,KAAK,mBAAmB,GAAG,KAAK,CAAC,oBAAoB,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QAEzE,KAAK,wBAAwB,GAAG,KAAK,CAAC,mBAAmB,CACvD,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC,EAC9B,KAAK,CAAC,WAAW,CAClB,CAAC;QAEF,KAAK,kBAAkB,GAAG,IAAI,CAC5B,KAAK,CAAC,KAAK,EACT,kBAAkB,GAClB,OAAO,GACP,aAAa,GACb,MAAM,GACN,WAAW,GACX,SAAS,GACT,YAAY,GACZ,UAAU,GACV,UAAU,GACV,aAAa,GACb,MAAM,GACN,UAAU,CACb,CAAC;QAEF,KAAK,kBAAkB,GAAG,IAAI,CAC5B,KAAK,CAAC,KAAK,EACT,kBAAkB,GAClB,OAAO,GACP,aAAa,GACb,MAAM,GACN,WAAW,GACX,SAAS,GACT,UAAU,GACV,aAAa,GACb,MAAM,GACN,UAAU,CACb,CAAC;KACH;CACF"}
1
+ {"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../../src/@types/domains/event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC;AAEV,oBAAY,cAAc;IACxB,OAAO,YAAY;IACnB,QAAQ,cAAc;CACvB;AAED,oBAAY,oBAAoB;IAC9B,SAAS,cAAc;IACvB,IAAI,SAAS;CACd;AAED,oBAAY,gBAAgB;IAC1B,SAAS,cAAc;IACvB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,SAAS,cAAc;CACxB;AAED,oBAAY,wBAAwB;IAClC,KAAK,UAAU;IACf,UAAU,eAAe;IACzB,QAAQ,cAAc;CACvB;AAED,OA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ACN,WAAW,GACX,SAAS,GACT,UAAU,GACV,aAAa,GACb,MAAM,GACN,UAAU,CACb,CAAC;KACH;CACF"}
@@ -0,0 +1,13 @@
1
+ import { MyEventPaginationController } from './PaginationController';
2
+ import { LiveCollectionController } from '~/core/liveCollection/LiveCollectionController';
3
+ export declare class MyEventLiveCollectionController extends LiveCollectionController<'event', Amity.MyEventLiveCollection, Amity.Event, MyEventPaginationController> {
4
+ private queryStreamController;
5
+ private query;
6
+ constructor(query: Amity.MyEventLiveCollection, callback: Amity.LiveCollectionCallback<Amity.Event>);
7
+ protected setup(): void;
8
+ protected persistModel(queryPayload: Amity.EventPayload & Amity.Pagination): Promise<void>;
9
+ protected persistQueryStream({ response, direction, refresh, }: Amity.LiveCollectionPersistQueryStreamParams<'event'>): void;
10
+ startSubscription(): Amity.Unsubscriber[];
11
+ notifyChange({ origin, loading, error }: Amity.LiveCollectionNotifyParams): void;
12
+ }
13
+ //# sourceMappingURL=LiveCollectionController.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LiveCollectionController.d.ts","sourceRoot":"","sources":["../../../../src/eventRepository/observers/getMyEvents/LiveCollectionController.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AAErE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAG1F,qBAAa,+BAAgC,SAAQ,wBAAwB,CAC3E,OAAO,EACP,KAAK,CAAC,qBAAqB,EAC3B,KAAK,CAAC,KAAK,EACX,2BAA2B,CAC5B;IACC,OAAO,CAAC,qBAAqB,CAA+B;IAE5D,OAAO,CAAC,KAAK,CAA8B;gBAGzC,KAAK,EAAE,KAAK,CAAC,qBAAqB,EAClC,QAAQ,EAAE,KAAK,CAAC,sBAAsB,CAAC,KAAK,CAAC,KAAK,CAAC;IAoBrD,SAAS,CAAC,KAAK;cAKC,YAAY,CAAC,YAAY,EAAE,KAAK,CAAC,YAAY,GAAG,KAAK,CAAC,UAAU;IAIhF,SAAS,CAAC,kBAAkB,CAAC,EAC3B,QAAQ,EACR,SAAS,EACT,OAAO,GACR,EAAE,KAAK,CAAC,sCAAsC,CAAC,OAAO,CAAC;IAIxD,iBAAiB;IAQjB,YAAY,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,CAAC,0BAA0B;CAqB1E"}
@@ -0,0 +1,5 @@
1
+ import { PaginationController } from '~/core/liveCollection/PaginationController';
2
+ export declare class MyEventPaginationController extends PaginationController<'event', Amity.MyEventLiveCollection> {
3
+ getRequest(queryParams: Amity.MyEventLiveCollection, token: string | undefined): Promise<Amity.EventPayload & Amity.Pagination>;
4
+ }
5
+ //# sourceMappingURL=PaginationController.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PaginationController.d.ts","sourceRoot":"","sources":["../../../../src/eventRepository/observers/getMyEvents/PaginationController.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAElF,qBAAa,2BAA4B,SAAQ,oBAAoB,CACnE,OAAO,EACP,KAAK,CAAC,qBAAqB,CAC5B;IACO,UAAU,CAAC,WAAW,EAAE,KAAK,CAAC,qBAAqB,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS;CAWrF"}
@@ -0,0 +1,15 @@
1
+ import { EventActionsEnum } from '~/eventRepository/events/enums';
2
+ import { QueryStreamController } from '~/core/liveCollection/QueryStreamController';
3
+ export declare class MyEventQueryStreamController extends QueryStreamController<Amity.EventPayload, Amity.MyEventLiveCollection> {
4
+ private notifyChange;
5
+ private preparePayload;
6
+ constructor(query: Amity.MyEventLiveCollection, cacheKey: string[], notifyChange: (params: Amity.LiveCollectionNotifyParams) => void, preparePayload: (response: Amity.EventPayload) => Amity.ProcessedEventPayload);
7
+ saveToMainDB(response: Amity.EventPayload): Promise<void>;
8
+ appendToQueryStream(response: Amity.EventPayload & Partial<Amity.Pagination>, direction: Amity.LiveCollectionPageDirection, refresh?: boolean): void;
9
+ reactor(action: EventActionsEnum): (event: Amity.InternalEvent) => void;
10
+ subscribeRTE(createSubscriber: {
11
+ fn: (reactor: (event: Amity.InternalEvent) => void) => Amity.Unsubscriber;
12
+ action: EventActionsEnum;
13
+ }[]): Amity.Unsubscriber[];
14
+ }
15
+ //# sourceMappingURL=QueryStreamController.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QueryStreamController.d.ts","sourceRoot":"","sources":["../../../../src/eventRepository/observers/getMyEvents/QueryStreamController.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AAEpF,qBAAa,4BAA6B,SAAQ,qBAAqB,CACrE,KAAK,CAAC,YAAY,EAClB,KAAK,CAAC,qBAAqB,CAC5B;IACC,OAAO,CAAC,YAAY,CAAqD;IAEzE,OAAO,CAAC,cAAc,CAAgE;gBAGpF,KAAK,EAAE,KAAK,CAAC,qBAAqB,EAClC,QAAQ,EAAE,MAAM,EAAE,EAClB,YAAY,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC,0BAA0B,KAAK,IAAI,EAChE,cAAc,EAAE,CAAC,QAAQ,EAAE,KAAK,CAAC,YAAY,KAAK,KAAK,CAAC,qBAAqB;IAOzE,YAAY,CAAC,QAAQ,EAAE,KAAK,CAAC,YAAY;IAS/C,mBAAmB,CACjB,QAAQ,EAAE,KAAK,CAAC,YAAY,GAAG,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,EACxD,SAAS,EAAE,KAAK,CAAC,2BAA2B,EAC5C,OAAO,UAAQ;IAgBjB,OAAO,CAAC,MAAM,EAAE,gBAAgB,WACf,MAAM,aAAa;IAcpC,YAAY,CACV,gBAAgB,EAAE;QAChB,EAAE,EAAE,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,aAAa,KAAK,IAAI,KAAK,KAAK,CAAC,YAAY,CAAC;QAC1E,MAAM,EAAE,gBAAgB,CAAC;KAC1B,EAAE;CAIN"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Get my events
3
+ *
4
+ * @param params the query parameters
5
+ * @param callback the callback to be called when the events are updated
6
+ * @returns events
7
+ *
8
+ * @category Event Live Collection
9
+ *
10
+ */
11
+ export declare const getMyEvents: (params: Amity.MyEventLiveCollection, callback: Amity.LiveCollectionCallback<Amity.Event>, config?: Amity.LiveCollectionConfig) => () => void;
12
+ //# sourceMappingURL=getMyEvents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getMyEvents.d.ts","sourceRoot":"","sources":["../../../src/eventRepository/observers/getMyEvents.ts"],"names":[],"mappings":"AAKA;;;;;;;;;GASG;AACH,eAAO,MAAM,WAAW,WACd,MAAM,qBAAqB,YACzB,MAAM,sBAAsB,CAAC,WAAW,CAAC,WAC1C,MAAM,oBAAoB,eAqBpC,CAAC"}
@@ -1,3 +1,4 @@
1
1
  export * from './getEvent';
2
2
  export * from './getEvents';
3
+ export * from './getMyEvents';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/eventRepository/observers/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/eventRepository/observers/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC"}
package/dist/index.cjs.js CHANGED
@@ -209,6 +209,12 @@ exports.AmityEventStatus = void 0;
209
209
  AmityEventStatus["Ended"] = "ended";
210
210
  AmityEventStatus["Cancelled"] = "cancelled";
211
211
  })(exports.AmityEventStatus || (exports.AmityEventStatus = {}));
212
+ exports.AmityEventResponseStatus = void 0;
213
+ (function (AmityEventResponseStatus) {
214
+ AmityEventResponseStatus["Going"] = "going";
215
+ AmityEventResponseStatus["Interested"] = "interested";
216
+ AmityEventResponseStatus["NotGoing"] = "not_going";
217
+ })(exports.AmityEventResponseStatus || (exports.AmityEventResponseStatus = {}));
212
218
 
213
219
  function getVersion() {
214
220
  try {
@@ -30745,6 +30751,134 @@ const getEvents = (params, callback, config) => {
30745
30751
  };
30746
30752
  };
30747
30753
 
30754
+ class MyEventPaginationController extends PaginationController {
30755
+ async getRequest(queryParams, token) {
30756
+ const { limit = COLLECTION_DEFAULT_PAGINATION_LIMIT } = queryParams, params = __rest(queryParams, ["limit"]);
30757
+ const options = token ? { token } : { limit };
30758
+ const { data: response } = await this.http.get(`/api/v1/events/me/rsvps`, { params: Object.assign(Object.assign({}, params), { options }) });
30759
+ return response;
30760
+ }
30761
+ }
30762
+
30763
+ class MyEventQueryStreamController extends QueryStreamController {
30764
+ constructor(query, cacheKey, notifyChange, preparePayload) {
30765
+ super(query, cacheKey);
30766
+ this.notifyChange = notifyChange;
30767
+ this.preparePayload = preparePayload;
30768
+ }
30769
+ async saveToMainDB(response) {
30770
+ const processedPayload = this.preparePayload(response);
30771
+ const client = getActiveClient();
30772
+ const cachedAt = client.cache && Date.now();
30773
+ if (client.cache)
30774
+ ingestInCache(processedPayload, { cachedAt });
30775
+ }
30776
+ appendToQueryStream(response, direction, refresh = false) {
30777
+ var _a, _b;
30778
+ if (refresh) {
30779
+ pushToCache(this.cacheKey, { data: response.events.map(getResolver('event')) });
30780
+ }
30781
+ else {
30782
+ const collection = (_a = pullFromCache(this.cacheKey)) === null || _a === void 0 ? void 0 : _a.data;
30783
+ const events = (_b = collection === null || collection === void 0 ? void 0 : collection.data) !== null && _b !== void 0 ? _b : [];
30784
+ pushToCache(this.cacheKey, Object.assign(Object.assign({}, collection), { data: [...new Set([...events, ...response.events.map(getResolver('event'))])] }));
30785
+ }
30786
+ }
30787
+ reactor(action) {
30788
+ return (event) => {
30789
+ var _a;
30790
+ const collection = (_a = pullFromCache(this.cacheKey)) === null || _a === void 0 ? void 0 : _a.data;
30791
+ if (!collection)
30792
+ return;
30793
+ if (action === EventActionsEnum.OnEventDeleted) {
30794
+ collection.data = collection.data.filter(eventId => eventId !== event.eventId);
30795
+ }
30796
+ pushToCache(this.cacheKey, collection);
30797
+ this.notifyChange({ origin: "event" /* Amity.LiveDataOrigin.EVENT */, loading: false });
30798
+ };
30799
+ }
30800
+ subscribeRTE(createSubscriber) {
30801
+ return createSubscriber.map(subscriber => subscriber.fn(this.reactor(subscriber.action)));
30802
+ }
30803
+ }
30804
+
30805
+ class MyEventLiveCollectionController extends LiveCollectionController {
30806
+ constructor(query, callback) {
30807
+ const queryStreamId = hash__default["default"](query);
30808
+ const cacheKey = ['event', 'collection', queryStreamId];
30809
+ const paginationController = new MyEventPaginationController(query);
30810
+ super(paginationController, queryStreamId, cacheKey, callback);
30811
+ this.query = query;
30812
+ this.queryStreamController = new MyEventQueryStreamController(this.query, this.cacheKey, this.notifyChange.bind(this), prepareEventPayload);
30813
+ this.callback = callback.bind(this);
30814
+ this.loadPage({ initial: true });
30815
+ }
30816
+ setup() {
30817
+ var _a;
30818
+ const collection = (_a = pullFromCache(this.cacheKey)) === null || _a === void 0 ? void 0 : _a.data;
30819
+ if (!collection)
30820
+ pushToCache(this.cacheKey, { data: [], params: {} });
30821
+ }
30822
+ async persistModel(queryPayload) {
30823
+ await this.queryStreamController.saveToMainDB(queryPayload);
30824
+ }
30825
+ persistQueryStream({ response, direction, refresh, }) {
30826
+ this.queryStreamController.appendToQueryStream(response, direction, refresh);
30827
+ }
30828
+ startSubscription() {
30829
+ return this.queryStreamController.subscribeRTE([
30830
+ { fn: onEventCreated, action: EventActionsEnum.OnEventCreated },
30831
+ { fn: onEventUpdated, action: EventActionsEnum.OnEventUpdated },
30832
+ { fn: onEventDeleted, action: EventActionsEnum.OnEventDeleted },
30833
+ ]);
30834
+ }
30835
+ notifyChange({ origin, loading, error }) {
30836
+ var _a, _b;
30837
+ const collection = (_a = pullFromCache(this.cacheKey)) === null || _a === void 0 ? void 0 : _a.data;
30838
+ if (!collection)
30839
+ return;
30840
+ const data = ((_b = collection.data
30841
+ .map(eventId => pullFromCache(['event', 'get', eventId]))
30842
+ .filter(isNonNullable)
30843
+ .map(({ data }) => data)) !== null && _b !== void 0 ? _b : []).map(LinkedObject.event);
30844
+ if (!this.shouldNotify(data) && origin === 'event')
30845
+ return;
30846
+ this.callback({
30847
+ data,
30848
+ error,
30849
+ loading,
30850
+ hasNextPage: !!this.paginationController.getNextToken(),
30851
+ onNextPage: () => this.loadPage({ direction: "next" /* Amity.LiveCollectionPageDirection.NEXT */ }),
30852
+ });
30853
+ }
30854
+ }
30855
+
30856
+ /**
30857
+ * Get my events
30858
+ *
30859
+ * @param params the query parameters
30860
+ * @param callback the callback to be called when the events are updated
30861
+ * @returns events
30862
+ *
30863
+ * @category Event Live Collection
30864
+ *
30865
+ */
30866
+ const getMyEvents = (params, callback, config) => {
30867
+ const { log, cache } = getActiveClient();
30868
+ if (!cache)
30869
+ console.log(ENABLE_CACHE_MESSAGE);
30870
+ const timestamp = Date.now();
30871
+ log(`getMyEvents: (tmpid: ${timestamp}) > listen`);
30872
+ const myEventLiveCollection = new MyEventLiveCollectionController(params, callback);
30873
+ const disposers = myEventLiveCollection.startSubscription();
30874
+ const cacheKey = myEventLiveCollection.getCacheKey();
30875
+ disposers.push(() => dropFromCache(cacheKey));
30876
+ return () => {
30877
+ log(`getMyEvents (tmpid: ${timestamp}) > dispose`);
30878
+ disposers.forEach(fn => fn());
30879
+ };
30880
+ };
30881
+
30748
30882
  var index = /*#__PURE__*/Object.freeze({
30749
30883
  __proto__: null,
30750
30884
  createEvent: createEvent,
@@ -30754,7 +30888,8 @@ var index = /*#__PURE__*/Object.freeze({
30754
30888
  onEventUpdated: onEventUpdated,
30755
30889
  onEventDeleted: onEventDeleted,
30756
30890
  getEvent: getEvent,
30757
- getEvents: getEvents
30891
+ getEvents: getEvents,
30892
+ getMyEvents: getMyEvents
30758
30893
  });
30759
30894
 
30760
30895
  exports.API_REGIONS = API_REGIONS;
package/dist/index.esm.js CHANGED
@@ -194,6 +194,12 @@ var AmityEventStatus;
194
194
  AmityEventStatus["Ended"] = "ended";
195
195
  AmityEventStatus["Cancelled"] = "cancelled";
196
196
  })(AmityEventStatus || (AmityEventStatus = {}));
197
+ var AmityEventResponseStatus;
198
+ (function (AmityEventResponseStatus) {
199
+ AmityEventResponseStatus["Going"] = "going";
200
+ AmityEventResponseStatus["Interested"] = "interested";
201
+ AmityEventResponseStatus["NotGoing"] = "not_going";
202
+ })(AmityEventResponseStatus || (AmityEventResponseStatus = {}));
197
203
 
198
204
  function getVersion() {
199
205
  try {
@@ -46837,6 +46843,134 @@ const getEvents = (params, callback, config) => {
46837
46843
  };
46838
46844
  };
46839
46845
 
46846
+ class MyEventPaginationController extends PaginationController {
46847
+ async getRequest(queryParams, token) {
46848
+ const { limit = COLLECTION_DEFAULT_PAGINATION_LIMIT } = queryParams, params = __rest(queryParams, ["limit"]);
46849
+ const options = token ? { token } : { limit };
46850
+ const { data: response } = await this.http.get(`/api/v1/events/me/rsvps`, { params: Object.assign(Object.assign({}, params), { options }) });
46851
+ return response;
46852
+ }
46853
+ }
46854
+
46855
+ class MyEventQueryStreamController extends QueryStreamController {
46856
+ constructor(query, cacheKey, notifyChange, preparePayload) {
46857
+ super(query, cacheKey);
46858
+ this.notifyChange = notifyChange;
46859
+ this.preparePayload = preparePayload;
46860
+ }
46861
+ async saveToMainDB(response) {
46862
+ const processedPayload = this.preparePayload(response);
46863
+ const client = getActiveClient();
46864
+ const cachedAt = client.cache && Date.now();
46865
+ if (client.cache)
46866
+ ingestInCache(processedPayload, { cachedAt });
46867
+ }
46868
+ appendToQueryStream(response, direction, refresh = false) {
46869
+ var _a, _b;
46870
+ if (refresh) {
46871
+ pushToCache(this.cacheKey, { data: response.events.map(getResolver('event')) });
46872
+ }
46873
+ else {
46874
+ const collection = (_a = pullFromCache(this.cacheKey)) === null || _a === void 0 ? void 0 : _a.data;
46875
+ const events = (_b = collection === null || collection === void 0 ? void 0 : collection.data) !== null && _b !== void 0 ? _b : [];
46876
+ pushToCache(this.cacheKey, Object.assign(Object.assign({}, collection), { data: [...new Set([...events, ...response.events.map(getResolver('event'))])] }));
46877
+ }
46878
+ }
46879
+ reactor(action) {
46880
+ return (event) => {
46881
+ var _a;
46882
+ const collection = (_a = pullFromCache(this.cacheKey)) === null || _a === void 0 ? void 0 : _a.data;
46883
+ if (!collection)
46884
+ return;
46885
+ if (action === EventActionsEnum.OnEventDeleted) {
46886
+ collection.data = collection.data.filter(eventId => eventId !== event.eventId);
46887
+ }
46888
+ pushToCache(this.cacheKey, collection);
46889
+ this.notifyChange({ origin: "event" /* Amity.LiveDataOrigin.EVENT */, loading: false });
46890
+ };
46891
+ }
46892
+ subscribeRTE(createSubscriber) {
46893
+ return createSubscriber.map(subscriber => subscriber.fn(this.reactor(subscriber.action)));
46894
+ }
46895
+ }
46896
+
46897
+ class MyEventLiveCollectionController extends LiveCollectionController {
46898
+ constructor(query, callback) {
46899
+ const queryStreamId = hash(query);
46900
+ const cacheKey = ['event', 'collection', queryStreamId];
46901
+ const paginationController = new MyEventPaginationController(query);
46902
+ super(paginationController, queryStreamId, cacheKey, callback);
46903
+ this.query = query;
46904
+ this.queryStreamController = new MyEventQueryStreamController(this.query, this.cacheKey, this.notifyChange.bind(this), prepareEventPayload);
46905
+ this.callback = callback.bind(this);
46906
+ this.loadPage({ initial: true });
46907
+ }
46908
+ setup() {
46909
+ var _a;
46910
+ const collection = (_a = pullFromCache(this.cacheKey)) === null || _a === void 0 ? void 0 : _a.data;
46911
+ if (!collection)
46912
+ pushToCache(this.cacheKey, { data: [], params: {} });
46913
+ }
46914
+ async persistModel(queryPayload) {
46915
+ await this.queryStreamController.saveToMainDB(queryPayload);
46916
+ }
46917
+ persistQueryStream({ response, direction, refresh, }) {
46918
+ this.queryStreamController.appendToQueryStream(response, direction, refresh);
46919
+ }
46920
+ startSubscription() {
46921
+ return this.queryStreamController.subscribeRTE([
46922
+ { fn: onEventCreated, action: EventActionsEnum.OnEventCreated },
46923
+ { fn: onEventUpdated, action: EventActionsEnum.OnEventUpdated },
46924
+ { fn: onEventDeleted, action: EventActionsEnum.OnEventDeleted },
46925
+ ]);
46926
+ }
46927
+ notifyChange({ origin, loading, error }) {
46928
+ var _a, _b;
46929
+ const collection = (_a = pullFromCache(this.cacheKey)) === null || _a === void 0 ? void 0 : _a.data;
46930
+ if (!collection)
46931
+ return;
46932
+ const data = ((_b = collection.data
46933
+ .map(eventId => pullFromCache(['event', 'get', eventId]))
46934
+ .filter(isNonNullable)
46935
+ .map(({ data }) => data)) !== null && _b !== void 0 ? _b : []).map(LinkedObject.event);
46936
+ if (!this.shouldNotify(data) && origin === 'event')
46937
+ return;
46938
+ this.callback({
46939
+ data,
46940
+ error,
46941
+ loading,
46942
+ hasNextPage: !!this.paginationController.getNextToken(),
46943
+ onNextPage: () => this.loadPage({ direction: "next" /* Amity.LiveCollectionPageDirection.NEXT */ }),
46944
+ });
46945
+ }
46946
+ }
46947
+
46948
+ /**
46949
+ * Get my events
46950
+ *
46951
+ * @param params the query parameters
46952
+ * @param callback the callback to be called when the events are updated
46953
+ * @returns events
46954
+ *
46955
+ * @category Event Live Collection
46956
+ *
46957
+ */
46958
+ const getMyEvents = (params, callback, config) => {
46959
+ const { log, cache } = getActiveClient();
46960
+ if (!cache)
46961
+ console.log(ENABLE_CACHE_MESSAGE);
46962
+ const timestamp = Date.now();
46963
+ log(`getMyEvents: (tmpid: ${timestamp}) > listen`);
46964
+ const myEventLiveCollection = new MyEventLiveCollectionController(params, callback);
46965
+ const disposers = myEventLiveCollection.startSubscription();
46966
+ const cacheKey = myEventLiveCollection.getCacheKey();
46967
+ disposers.push(() => dropFromCache(cacheKey));
46968
+ return () => {
46969
+ log(`getMyEvents (tmpid: ${timestamp}) > dispose`);
46970
+ disposers.forEach(fn => fn());
46971
+ };
46972
+ };
46973
+
46840
46974
  var index = /*#__PURE__*/Object.freeze({
46841
46975
  __proto__: null,
46842
46976
  createEvent: createEvent,
@@ -46846,7 +46980,8 @@ var index = /*#__PURE__*/Object.freeze({
46846
46980
  onEventUpdated: onEventUpdated,
46847
46981
  onEventDeleted: onEventDeleted,
46848
46982
  getEvent: getEvent,
46849
- getEvents: getEvents
46983
+ getEvents: getEvents,
46984
+ getMyEvents: getMyEvents
46850
46985
  });
46851
46986
 
46852
- export { API_REGIONS, index$4 as AdRepository, AmityEventOriginType, AmityEventStatus, AmityEventType, index$c as CategoryRepository, index$g as ChannelRepository, index$p as Client, index$b as CommentRepository, CommunityPostSettingMaps, CommunityPostSettings, index$d as CommunityRepository, ContentFeedType, ContentFlagReasonEnum, DefaultCommunityPostSetting, index as EventRepository, FeedDataTypeEnum, index$a as FeedRepository, FeedSortByEnum, FeedSourceEnum, FileAccessTypeEnum, index$m as FileRepository, FileType, GET_WATCHER_URLS, index$2 as InvitationRepository, InvitationSortByEnum, InvitationStatusEnum, InvitationTypeEnum, JoinRequestStatusEnum, JoinResultStatusEnum, index$1 as LiveReactionRepository, index$6 as LiveStreamPlayer, MembershipAcceptanceTypeEnum, MessageContentType, index$k as MessageRepository, index$7 as PollRepository, PostContentType, index$9 as PostRepository, PostStructureType, index$l as ReactionRepository, index$5 as StoryRepository, index$8 as StreamRepository, index$j as SubChannelRepository, SubscriptionLevels, index$n as UserRepository, UserTypeEnum, VERSION, VideoResolution, VideoSize, VideoTranscodingStatus, backupCache, createQuery, createReport, createUserToken, deleteReport, disableCache, dropFromCache, enableCache, filterByChannelMembership, filterByCommunityMembership, filterByFeedType, filterByPostDataTypes, filterByPropEquality, filterByPropInclusion, filterByPropIntersection, filterBySearchTerm, filterByStringComparePartially, getChannelTopic, getCommentTopic, getCommunityStoriesTopic, getCommunityTopic, getLiveReactionTopic, getLiveStreamTopic, getMarkedMessageTopic, getMarkerUserFeedTopic, getMessageTopic, getMyFollowersTopic, getMyFollowingsTopic, getNetworkTopic, getPostTopic, getRole, getSmartFeedChannelTopic, getSmartFeedMessageTopic, getSmartFeedSubChannelTopic, getStoryTopic, getSubChannelTopic, getUserTopic, isAfterBefore, isAfterBeforeRaw, isCachable, isFetcher, isFresh, isLocal, isMutator, isOffline, isPaged, isReportedByMe, isSkip, mergeInCache, index$3 as notificationTray, onChannelMarkerFetched, onFeedMarkerFetched, onFeedMarkerUpdated, onMessageMarked, onMessageMarkerFetched, onSubChannelMarkerFetched, onSubChannelMarkerUpdated, onUserMarkerFetched, onUserMarkerFetchedLegacy, pullFromCache, pushToCache, queryCache, queryOptions, queryRoles, restoreCache, runQuery, sortByChannelSegment, sortByDisplayName, sortByFirstCreated, sortByFirstUpdated, sortByLastActivity, sortByLastCreated, sortByLastUpdated, sortByLocalSortingDate, sortByName, sortBySegmentNumber, subscribeTopic, toPage, toPageRaw, toToken, upsertInCache, wipeCache };
46987
+ export { API_REGIONS, index$4 as AdRepository, AmityEventOriginType, AmityEventResponseStatus, AmityEventStatus, AmityEventType, index$c as CategoryRepository, index$g as ChannelRepository, index$p as Client, index$b as CommentRepository, CommunityPostSettingMaps, CommunityPostSettings, index$d as CommunityRepository, ContentFeedType, ContentFlagReasonEnum, DefaultCommunityPostSetting, index as EventRepository, FeedDataTypeEnum, index$a as FeedRepository, FeedSortByEnum, FeedSourceEnum, FileAccessTypeEnum, index$m as FileRepository, FileType, GET_WATCHER_URLS, index$2 as InvitationRepository, InvitationSortByEnum, InvitationStatusEnum, InvitationTypeEnum, JoinRequestStatusEnum, JoinResultStatusEnum, index$1 as LiveReactionRepository, index$6 as LiveStreamPlayer, MembershipAcceptanceTypeEnum, MessageContentType, index$k as MessageRepository, index$7 as PollRepository, PostContentType, index$9 as PostRepository, PostStructureType, index$l as ReactionRepository, index$5 as StoryRepository, index$8 as StreamRepository, index$j as SubChannelRepository, SubscriptionLevels, index$n as UserRepository, UserTypeEnum, VERSION, VideoResolution, VideoSize, VideoTranscodingStatus, backupCache, createQuery, createReport, createUserToken, deleteReport, disableCache, dropFromCache, enableCache, filterByChannelMembership, filterByCommunityMembership, filterByFeedType, filterByPostDataTypes, filterByPropEquality, filterByPropInclusion, filterByPropIntersection, filterBySearchTerm, filterByStringComparePartially, getChannelTopic, getCommentTopic, getCommunityStoriesTopic, getCommunityTopic, getLiveReactionTopic, getLiveStreamTopic, getMarkedMessageTopic, getMarkerUserFeedTopic, getMessageTopic, getMyFollowersTopic, getMyFollowingsTopic, getNetworkTopic, getPostTopic, getRole, getSmartFeedChannelTopic, getSmartFeedMessageTopic, getSmartFeedSubChannelTopic, getStoryTopic, getSubChannelTopic, getUserTopic, isAfterBefore, isAfterBeforeRaw, isCachable, isFetcher, isFresh, isLocal, isMutator, isOffline, isPaged, isReportedByMe, isSkip, mergeInCache, index$3 as notificationTray, onChannelMarkerFetched, onFeedMarkerFetched, onFeedMarkerUpdated, onMessageMarked, onMessageMarkerFetched, onSubChannelMarkerFetched, onSubChannelMarkerUpdated, onUserMarkerFetched, onUserMarkerFetchedLegacy, pullFromCache, pushToCache, queryCache, queryOptions, queryRoles, restoreCache, runQuery, sortByChannelSegment, sortByDisplayName, sortByFirstCreated, sortByFirstUpdated, sortByLastActivity, sortByLastCreated, sortByLastUpdated, sortByLocalSortingDate, sortByName, sortBySegmentNumber, subscribeTopic, toPage, toPageRaw, toToken, upsertInCache, wipeCache };