@amityco/ts-sdk 7.11.1-cc3ae7ed.0 → 7.11.1-ce7af0e2.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.
Files changed (87) hide show
  1. package/dist/@types/core/events.d.ts +4 -0
  2. package/dist/@types/core/events.d.ts.map +1 -1
  3. package/dist/@types/core/model.d.ts +4 -0
  4. package/dist/@types/core/model.d.ts.map +1 -1
  5. package/dist/@types/core/payload.d.ts +14 -0
  6. package/dist/@types/core/payload.d.ts.map +1 -1
  7. package/dist/@types/core/permissions.d.ts +5 -1
  8. package/dist/@types/core/permissions.d.ts.map +1 -1
  9. package/dist/@types/domains/community.d.ts +11 -1
  10. package/dist/@types/domains/community.d.ts.map +1 -1
  11. package/dist/@types/domains/event.d.ts +56 -9
  12. package/dist/@types/domains/event.d.ts.map +1 -1
  13. package/dist/@types/domains/notification.d.ts +3 -1
  14. package/dist/@types/domains/notification.d.ts.map +1 -1
  15. package/dist/@types/domains/partials.d.ts +2 -2
  16. package/dist/@types/domains/partials.d.ts.map +1 -1
  17. package/dist/core/events.d.ts +3 -3
  18. package/dist/core/events.d.ts.map +1 -1
  19. package/dist/core/model/idResolvers.d.ts.map +1 -1
  20. package/dist/core/model/index.d.ts.map +1 -1
  21. package/dist/eventRepository/events/enums.d.ts +8 -0
  22. package/dist/eventRepository/events/enums.d.ts.map +1 -0
  23. package/dist/eventRepository/events/index.d.ts +7 -0
  24. package/dist/eventRepository/events/index.d.ts.map +1 -1
  25. package/dist/eventRepository/events/onLocalEventCreated.d.ts +17 -0
  26. package/dist/eventRepository/events/onLocalEventCreated.d.ts.map +1 -0
  27. package/dist/eventRepository/events/onLocalEventDeleted.d.ts +17 -0
  28. package/dist/eventRepository/events/onLocalEventDeleted.d.ts.map +1 -0
  29. package/dist/eventRepository/events/onLocalEventUpdated.d.ts +17 -0
  30. package/dist/eventRepository/events/onLocalEventUpdated.d.ts.map +1 -0
  31. package/dist/eventRepository/events/onLocalRSVPCreated.d.ts +17 -0
  32. package/dist/eventRepository/events/onLocalRSVPCreated.d.ts.map +1 -0
  33. package/dist/eventRepository/events/onLocalRSVPUpdated.d.ts +17 -0
  34. package/dist/eventRepository/events/onLocalRSVPUpdated.d.ts.map +1 -0
  35. package/dist/eventRepository/events/onRSVPCreated.d.ts +17 -0
  36. package/dist/eventRepository/events/onRSVPCreated.d.ts.map +1 -0
  37. package/dist/eventRepository/events/onRSVPUpdated.d.ts +17 -0
  38. package/dist/eventRepository/events/onRSVPUpdated.d.ts.map +1 -0
  39. package/dist/eventRepository/internalApi/createRSVP.d.ts +16 -0
  40. package/dist/eventRepository/internalApi/createRSVP.d.ts.map +1 -0
  41. package/dist/eventRepository/internalApi/getMyRSVP.d.ts +32 -0
  42. package/dist/eventRepository/internalApi/getMyRSVP.d.ts.map +1 -0
  43. package/dist/eventRepository/internalApi/index.d.ts +3 -0
  44. package/dist/eventRepository/internalApi/index.d.ts.map +1 -1
  45. package/dist/eventRepository/internalApi/updateRSVP.d.ts +17 -0
  46. package/dist/eventRepository/internalApi/updateRSVP.d.ts.map +1 -0
  47. package/dist/eventRepository/observers/getEvent.d.ts.map +1 -1
  48. package/dist/eventRepository/observers/getEvents/LiveCollectionController.d.ts +13 -0
  49. package/dist/eventRepository/observers/getEvents/LiveCollectionController.d.ts.map +1 -0
  50. package/dist/eventRepository/observers/getEvents/PaginationController.d.ts +5 -0
  51. package/dist/eventRepository/observers/getEvents/PaginationController.d.ts.map +1 -0
  52. package/dist/eventRepository/observers/getEvents/QueryStreamController.d.ts +15 -0
  53. package/dist/eventRepository/observers/getEvents/QueryStreamController.d.ts.map +1 -0
  54. package/dist/eventRepository/observers/getEvents.d.ts +12 -0
  55. package/dist/eventRepository/observers/getEvents.d.ts.map +1 -0
  56. package/dist/eventRepository/observers/getMyEvents/LiveCollectionController.d.ts +13 -0
  57. package/dist/eventRepository/observers/getMyEvents/LiveCollectionController.d.ts.map +1 -0
  58. package/dist/eventRepository/observers/getMyEvents/PaginationController.d.ts +5 -0
  59. package/dist/eventRepository/observers/getMyEvents/PaginationController.d.ts.map +1 -0
  60. package/dist/eventRepository/observers/getMyEvents/QueryStreamController.d.ts +15 -0
  61. package/dist/eventRepository/observers/getMyEvents/QueryStreamController.d.ts.map +1 -0
  62. package/dist/eventRepository/observers/getMyEvents.d.ts +12 -0
  63. package/dist/eventRepository/observers/getMyEvents.d.ts.map +1 -0
  64. package/dist/eventRepository/observers/getRSVPs/LiveCollectionController.d.ts +13 -0
  65. package/dist/eventRepository/observers/getRSVPs/LiveCollectionController.d.ts.map +1 -0
  66. package/dist/eventRepository/observers/getRSVPs/PaginationController.d.ts +5 -0
  67. package/dist/eventRepository/observers/getRSVPs/PaginationController.d.ts.map +1 -0
  68. package/dist/eventRepository/observers/getRSVPs/QueryStreamController.d.ts +15 -0
  69. package/dist/eventRepository/observers/getRSVPs/QueryStreamController.d.ts.map +1 -0
  70. package/dist/eventRepository/observers/getRSVPs.d.ts +12 -0
  71. package/dist/eventRepository/observers/getRSVPs.d.ts.map +1 -0
  72. package/dist/eventRepository/observers/index.d.ts +3 -0
  73. package/dist/eventRepository/observers/index.d.ts.map +1 -1
  74. package/dist/eventRepository/utils/createEventEventSubscriber.d.ts +1 -1
  75. package/dist/eventRepository/utils/createEventEventSubscriber.d.ts.map +1 -1
  76. package/dist/eventRepository/utils/createEventResponseSubscriber.d.ts +2 -0
  77. package/dist/eventRepository/utils/createEventResponseSubscriber.d.ts.map +1 -0
  78. package/dist/eventRepository/utils/index.d.ts +2 -0
  79. package/dist/eventRepository/utils/index.d.ts.map +1 -1
  80. package/dist/eventRepository/utils/prepareEventResponsePayload.d.ts +2 -0
  81. package/dist/eventRepository/utils/prepareEventResponsePayload.d.ts.map +1 -0
  82. package/dist/index.cjs.js +837 -89
  83. package/dist/index.esm.js +833 -85
  84. package/dist/index.umd.js +3 -3
  85. package/dist/messagePreview/utils/getChannelMessagePreviewWithUser.d.ts +1 -1
  86. package/dist/utils/linkedObject/eventLinkObject.d.ts.map +1 -1
  87. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/model/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAEhC;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAqDtD,CAAC;AAEF,aAAa;AACb,eAAO,MAAM,UAAU,2DAA0D,OAOhF,CAAC;AAEF,aAAa;AACb,wBAAgB,aAAa,CAAC,IAAI,GAAE,MAAM,GAAG,SAAoC,GAAG,MAAM,CAEzF;AAED,aAAa;AACb,wBAAgB,WAAW,CAAC,IAAI,GAAE,MAAM,GAAG,SAAoC,GAAG,MAAM,CAEvF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/model/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAEhC;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAyDtD,CAAC;AAEF,aAAa;AACb,eAAO,MAAM,UAAU,2DAA0D,OAOhF,CAAC;AAEF,aAAa;AACb,wBAAgB,aAAa,CAAC,IAAI,GAAE,MAAM,GAAG,SAAoC,GAAG,MAAM,CAEzF;AAED,aAAa;AACb,wBAAgB,WAAW,CAAC,IAAI,GAAE,MAAM,GAAG,SAAoC,GAAG,MAAM,CAEvF"}
@@ -0,0 +1,8 @@
1
+ export declare enum EventActionsEnum {
2
+ OnEventCreated = "onEventCreated",
3
+ OnEventUpdated = "onEventUpdated",
4
+ OnEventDeleted = "onEventDeleted",
5
+ OnRSVPCreated = "onRSVPCreated",
6
+ OnRSVPUpdated = "onRSVPUpdated"
7
+ }
8
+ //# sourceMappingURL=enums.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../src/eventRepository/events/enums.ts"],"names":[],"mappings":"AAAA,oBAAY,gBAAgB;IAC1B,cAAc,mBAAmB;IACjC,cAAc,mBAAmB;IACjC,cAAc,mBAAmB;IACjC,aAAa,kBAAkB;IAC/B,aAAa,kBAAkB;CAChC"}
@@ -1,4 +1,11 @@
1
1
  export * from './onEventCreated';
2
2
  export * from './onEventUpdated';
3
3
  export * from './onEventDeleted';
4
+ export * from './onLocalEventCreated';
5
+ export * from './onLocalEventUpdated';
6
+ export * from './onLocalEventDeleted';
7
+ export * from './onRSVPCreated';
8
+ export * from './onRSVPUpdated';
9
+ export * from './onLocalRSVPCreated';
10
+ export * from './onLocalRSVPUpdated';
4
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/eventRepository/events/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/eventRepository/events/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * ```js
3
+ * import { EventRepository } from '@amityco/ts-sdk'
4
+ * const dispose = EventRepository.onLocalEventCreated(event => {
5
+ * // ...
6
+ * })
7
+ * ```
8
+ *
9
+ * Fired when a {@link Amity.Event} has been created
10
+ *
11
+ * @param callback The function to call when the event was fired
12
+ * @returns an {@link Amity.Unsubscriber} function to stop listening
13
+ *
14
+ * @category Event Events
15
+ */
16
+ export declare const onLocalEventCreated: (callback: Amity.Listener<Amity.InternalEvent>) => Amity.Unsubscriber;
17
+ //# sourceMappingURL=onLocalEventCreated.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"onLocalEventCreated.d.ts","sourceRoot":"","sources":["../../../src/eventRepository/events/onLocalEventCreated.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,mBAAmB,aAAc,MAAM,QAAQ,CAAC,MAAM,aAAa,CAAC,uBACpB,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * ```js
3
+ * import { EventRepository } from '@amityco/ts-sdk'
4
+ * const dispose = EventRepository.onLocalEventDeleted(event => {
5
+ * // ...
6
+ * })
7
+ * ```
8
+ *
9
+ * Fired when a {@link Amity.Event} has been deleted
10
+ *
11
+ * @param callback The function to call when the event was fired
12
+ * @returns an {@link Amity.Unsubscriber} function to stop listening
13
+ *
14
+ * @category Event Events
15
+ */
16
+ export declare const onLocalEventDeleted: (callback: Amity.Listener<Amity.InternalEvent>) => Amity.Unsubscriber;
17
+ //# sourceMappingURL=onLocalEventDeleted.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"onLocalEventDeleted.d.ts","sourceRoot":"","sources":["../../../src/eventRepository/events/onLocalEventDeleted.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,mBAAmB,aAAc,MAAM,QAAQ,CAAC,MAAM,aAAa,CAAC,uBACpB,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * ```js
3
+ * import { EventRepository } from '@amityco/ts-sdk'
4
+ * const dispose = EventRepository.onLocalEventUpdated(event => {
5
+ * // ...
6
+ * })
7
+ * ```
8
+ *
9
+ * Fired when a {@link Amity.Event} has been updated
10
+ *
11
+ * @param callback The function to call when the event was fired
12
+ * @returns an {@link Amity.Unsubscriber} function to stop listening
13
+ *
14
+ * @category Event Events
15
+ */
16
+ export declare const onLocalEventUpdated: (callback: Amity.Listener<Amity.InternalEvent>) => Amity.Unsubscriber;
17
+ //# sourceMappingURL=onLocalEventUpdated.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"onLocalEventUpdated.d.ts","sourceRoot":"","sources":["../../../src/eventRepository/events/onLocalEventUpdated.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,mBAAmB,aAAc,MAAM,QAAQ,CAAC,MAAM,aAAa,CAAC,uBACpB,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * ```js
3
+ * import { EventRepository } from '@amityco/ts-sdk'
4
+ * const dispose = EventRepository.onLocalRSVPCreated(event => {
5
+ * // ...
6
+ * })
7
+ * ```
8
+ *
9
+ * Fired when a {@link Amity.Event} has been created
10
+ *
11
+ * @param callback The function to call when the event was fired
12
+ * @returns an {@link Amity.Unsubscriber} function to stop listening
13
+ *
14
+ * @category Event Events
15
+ */
16
+ export declare const onLocalRSVPCreated: (callback: Amity.Listener<Amity.InternalEventResponse>) => Amity.Unsubscriber;
17
+ //# sourceMappingURL=onLocalRSVPCreated.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"onLocalRSVPCreated.d.ts","sourceRoot":"","sources":["../../../src/eventRepository/events/onLocalRSVPCreated.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,kBAAkB,aAAc,MAAM,QAAQ,CAAC,MAAM,qBAAqB,CAAC,uBACzB,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * ```js
3
+ * import { EventRepository } from '@amityco/ts-sdk'
4
+ * const dispose = EventRepository.onLocalEventUpdated(event => {
5
+ * // ...
6
+ * })
7
+ * ```
8
+ *
9
+ * Fired when a {@link Amity.Event} has been updated
10
+ *
11
+ * @param callback The function to call when the event was fired
12
+ * @returns an {@link Amity.Unsubscriber} function to stop listening
13
+ *
14
+ * @category Event Events
15
+ */
16
+ export declare const onLocalRSVPUpdated: (callback: Amity.Listener<Amity.InternalEventResponse>) => Amity.Unsubscriber;
17
+ //# sourceMappingURL=onLocalRSVPUpdated.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"onLocalRSVPUpdated.d.ts","sourceRoot":"","sources":["../../../src/eventRepository/events/onLocalRSVPUpdated.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,kBAAkB,aAAc,MAAM,QAAQ,CAAC,MAAM,qBAAqB,CAAC,uBACzB,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * ```js
3
+ * import { EventRepository } from '@amityco/ts-sdk'
4
+ * const dispose = EventRepository.onRSVPCreated(event => {
5
+ * // ...
6
+ * })
7
+ * ```
8
+ *
9
+ * Fired when a {@link Amity.Event} has been created
10
+ *
11
+ * @param callback The function to call when the event was fired
12
+ * @returns an {@link Amity.Unsubscriber} function to stop listening
13
+ *
14
+ * @category Event Events
15
+ */
16
+ export declare const onRSVPCreated: (callback: Amity.Listener<Amity.InternalEventResponse>) => Amity.Unsubscriber;
17
+ //# sourceMappingURL=onRSVPCreated.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"onRSVPCreated.d.ts","sourceRoot":"","sources":["../../../src/eventRepository/events/onRSVPCreated.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,aAAa,aAAc,MAAM,QAAQ,CAAC,MAAM,qBAAqB,CAAC,uBACpB,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * ```js
3
+ * import { EventRepository } from '@amityco/ts-sdk'
4
+ * const dispose = EventRepository.onRSVPUpdated(event => {
5
+ * // ...
6
+ * })
7
+ * ```
8
+ *
9
+ * Fired when a {@link Amity.InternalEventResponse} has been updated
10
+ *
11
+ * @param callback The function to call when the event was fired
12
+ * @returns an {@link Amity.Unsubscriber} function to stop listening
13
+ *
14
+ * @category Event Events
15
+ */
16
+ export declare const onRSVPUpdated: (callback: Amity.Listener<Amity.InternalEventResponse>) => Amity.Unsubscriber;
17
+ //# sourceMappingURL=onRSVPUpdated.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"onRSVPUpdated.d.ts","sourceRoot":"","sources":["../../../src/eventRepository/events/onRSVPUpdated.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,aAAa,aAAc,MAAM,QAAQ,CAAC,MAAM,qBAAqB,CAAC,uBACpB,CAAC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * ```js
3
+ * import { event } from '@amityco/ts-sdk'
4
+ * const response = await event.createRSVP(eventId, status)
5
+ * ```
6
+ *
7
+ * Creates an {@link Amity.InternalEvent}
8
+ *
9
+ * @param bundle The data necessary to create a new {@link Amity.InternalEvent}
10
+ * @returns The newly created {@link Amity.InternalEvent}
11
+ *
12
+ * @category Event API
13
+ * @async
14
+ */
15
+ export declare const createRSVP: (eventId: string, status: Amity.EventResponseStatus) => Promise<Amity.Cached<Amity.EventResponse>>;
16
+ //# sourceMappingURL=createRSVP.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createRSVP.d.ts","sourceRoot":"","sources":["../../../src/eventRepository/internalApi/createRSVP.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,UAAU,YACZ,MAAM,UACP,MAAM,mBAAmB,KAChC,QAAQ,MAAM,MAAM,CAAC,MAAM,aAAa,CAAC,CAqB3C,CAAC"}
@@ -0,0 +1,32 @@
1
+ /**
2
+ * ```js
3
+ * import { event } from '@amityco/ts-sdk'
4
+ * const myRSVP = await event.getMyRSVP()
5
+ * ```
6
+ *
7
+ * Joins a {@link Amity.EventResponse} object
8
+ *
9
+ * @param eventId the {@link Amity.EventResponse} to get RSVP for
10
+ * @returns A success boolean if the {@link Amity.EventResponse} RSVP was retrieved
11
+ *
12
+ * @category Event API
13
+ * @async
14
+ */
15
+ export declare const getMyRSVP: {
16
+ (eventId: Amity.InternalEvent['eventId']): Promise<Amity.Cached<Amity.EventResponse | undefined>>;
17
+ /**
18
+ * ```js
19
+ * import { event } from '@amityco/ts-sdk'
20
+ * const event = event.getMyRSVP.locally(eventId)
21
+ * ```
22
+ *
23
+ * Fetches a {@link Amity.EventResponse} object in cache
24
+ *
25
+ * @param eventId the ID of the {@link Amity.EventResponse} to fetch
26
+ * @returns the associated {@link Amity.EventResponse} object
27
+ *
28
+ * @category Event API
29
+ */
30
+ locally(eventId: Amity.InternalEvent['eventId']): Amity.Cached<Amity.EventResponse> | undefined;
31
+ };
32
+ //# sourceMappingURL=getMyRSVP.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getMyRSVP.d.ts","sourceRoot":"","sources":["../../../src/eventRepository/internalApi/getMyRSVP.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,SAAS;cACX,MAAM,aAAa,CAAC,SAAS,CAAC,GACtC,QAAQ,MAAM,MAAM,CAAC,MAAM,aAAa,GAAG,SAAS,CAAC,CAAC;IAqBzD;;;;;;;;;;;;OAYG;qBAEQ,MAAM,aAAa,CAAC,SAAS,CAAC,GACtC,MAAM,MAAM,CAAC,MAAM,aAAa,CAAC,GAAG,SAAS;CAlB/C,CAAC"}
@@ -1,2 +1,5 @@
1
1
  export * from './getEvent';
2
+ export * from './createRSVP';
3
+ export * from './updateRSVP';
4
+ export * from './getMyRSVP';
2
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/eventRepository/internalApi/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/eventRepository/internalApi/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * ```js
3
+ * import { event } from '@amityco/ts-sdk'
4
+ * const response = await event.updateRSVP(eventId, status)
5
+ * ```
6
+ *
7
+ * Updates an {@link Amity.EventResponse}
8
+ *
9
+ * @param eventId The ID of the {@link Amity.EventResponse} to edit
10
+ * @param bundle The data necessary to update an existing {@link Amity.EventResponse}
11
+ * @returns the updated {@link Amity.EventResponse}
12
+ *
13
+ * @category Event API
14
+ * @async
15
+ */
16
+ export declare const updateRSVP: (eventId: string, status: Amity.EventResponseStatus) => Promise<Amity.Cached<Amity.EventResponse>>;
17
+ //# sourceMappingURL=updateRSVP.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updateRSVP.d.ts","sourceRoot":"","sources":["../../../src/eventRepository/internalApi/updateRSVP.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,UAAU,YACZ,MAAM,UACP,MAAM,mBAAmB,KAChC,QAAQ,MAAM,MAAM,CAAC,MAAM,aAAa,CAAC,CAqB3C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"getEvent.d.ts","sourceRoot":"","sources":["../../../src/eventRepository/observers/getEvent.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,QAAQ,YACV,WAAW,CAAC,SAAS,CAAC,YACrB,MAAM,kBAAkB,CAAC,WAAW,CAAC,KAC9C,MAAM,YAWR,CAAC"}
1
+ {"version":3,"file":"getEvent.d.ts","sourceRoot":"","sources":["../../../src/eventRepository/observers/getEvent.ts"],"names":[],"mappings":"AAaA;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,QAAQ,YACV,WAAW,CAAC,SAAS,CAAC,YACrB,MAAM,kBAAkB,CAAC,WAAW,CAAC,KAC9C,MAAM,YAWR,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { EventPaginationController } from './PaginationController';
2
+ import { LiveCollectionController } from '~/core/liveCollection/LiveCollectionController';
3
+ export declare class EventLiveCollectionController extends LiveCollectionController<'event', Amity.EventLiveCollection, Amity.Event, EventPaginationController> {
4
+ private queryStreamController;
5
+ private query;
6
+ constructor(query: Amity.EventLiveCollection, 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/getEvents/LiveCollectionController.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAEnE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAU1F,qBAAa,6BAA8B,SAAQ,wBAAwB,CACzE,OAAO,EACP,KAAK,CAAC,mBAAmB,EACzB,KAAK,CAAC,KAAK,EACX,yBAAyB,CAC1B;IACC,OAAO,CAAC,qBAAqB,CAA6B;IAE1D,OAAO,CAAC,KAAK,CAA4B;gBAGvC,KAAK,EAAE,KAAK,CAAC,mBAAmB,EAChC,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;IAWjB,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 EventPaginationController extends PaginationController<'event', Amity.EventLiveCollection> {
3
+ getRequest(queryParams: Amity.EventLiveCollection, 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/getEvents/PaginationController.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAElF,qBAAa,yBAA0B,SAAQ,oBAAoB,CACjE,OAAO,EACP,KAAK,CAAC,mBAAmB,CAC1B;IACO,UAAU,CAAC,WAAW,EAAE,KAAK,CAAC,mBAAmB,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS;CAWnF"}
@@ -0,0 +1,15 @@
1
+ import { EventActionsEnum } from '~/eventRepository/events/enums';
2
+ import { QueryStreamController } from '~/core/liveCollection/QueryStreamController';
3
+ export declare class EventQueryStreamController extends QueryStreamController<Amity.EventPayload, Amity.EventLiveCollection> {
4
+ private notifyChange;
5
+ private preparePayload;
6
+ constructor(query: Amity.EventLiveCollection, 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/getEvents/QueryStreamController.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AAEpF,qBAAa,0BAA2B,SAAQ,qBAAqB,CACnE,KAAK,CAAC,YAAY,EAClB,KAAK,CAAC,mBAAmB,CAC1B;IACC,OAAO,CAAC,YAAY,CAAqD;IAEzE,OAAO,CAAC,cAAc,CAAgE;gBAGpF,KAAK,EAAE,KAAK,CAAC,mBAAmB,EAChC,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;IAkBpC,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 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 getEvents: (params: Amity.EventLiveCollection, callback: Amity.LiveCollectionCallback<Amity.Event>, config?: Amity.LiveCollectionConfig) => () => void;
12
+ //# sourceMappingURL=getEvents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getEvents.d.ts","sourceRoot":"","sources":["../../../src/eventRepository/observers/getEvents.ts"],"names":[],"mappings":"AAKA;;;;;;;;;GASG;AACH,eAAO,MAAM,SAAS,WACZ,MAAM,mBAAmB,YACvB,MAAM,sBAAsB,CAAC,WAAW,CAAC,WAC1C,MAAM,oBAAoB,eAqBpC,CAAC"}
@@ -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;AAU1F,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;IAWjB,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;IAsBpC,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"}
@@ -0,0 +1,13 @@
1
+ import { RSVPPaginationController } from './PaginationController';
2
+ import { LiveCollectionController } from '~/core/liveCollection/LiveCollectionController';
3
+ export declare class RSVPLiveCollectionController extends LiveCollectionController<'eventResponse', Amity.RSVPLiveCollection, Amity.EventResponse, RSVPPaginationController> {
4
+ private queryStreamController;
5
+ private query;
6
+ constructor(query: Amity.RSVPLiveCollection, callback: Amity.LiveCollectionCallback<Amity.EventResponse>);
7
+ protected setup(): void;
8
+ protected persistModel(queryPayload: Amity.EventResponsePayload & Amity.Pagination): Promise<void>;
9
+ protected persistQueryStream({ response, direction, refresh, }: Amity.LiveCollectionPersistQueryStreamParams<'eventResponse'>): 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/getRSVPs/LiveCollectionController.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAElE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAQ1F,qBAAa,4BAA6B,SAAQ,wBAAwB,CACxE,eAAe,EACf,KAAK,CAAC,kBAAkB,EACxB,KAAK,CAAC,aAAa,EACnB,wBAAwB,CACzB;IACC,OAAO,CAAC,qBAAqB,CAA4B;IAEzD,OAAO,CAAC,KAAK,CAA2B;gBAGtC,KAAK,EAAE,KAAK,CAAC,kBAAkB,EAC/B,QAAQ,EAAE,KAAK,CAAC,sBAAsB,CAAC,KAAK,CAAC,aAAa,CAAC;IAoB7D,SAAS,CAAC,KAAK;cAKC,YAAY,CAAC,YAAY,EAAE,KAAK,CAAC,oBAAoB,GAAG,KAAK,CAAC,UAAU;IAIxF,SAAS,CAAC,kBAAkB,CAAC,EAC3B,QAAQ,EACR,SAAS,EACT,OAAO,GACR,EAAE,KAAK,CAAC,sCAAsC,CAAC,eAAe,CAAC;IAIhE,iBAAiB;IASjB,YAAY,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,CAAC,0BAA0B;CAoB1E"}
@@ -0,0 +1,5 @@
1
+ import { PaginationController } from '~/core/liveCollection/PaginationController';
2
+ export declare class RSVPPaginationController extends PaginationController<'eventResponse', Amity.RSVPLiveCollection> {
3
+ getRequest(queryParams: Amity.RSVPLiveCollection, token: string | undefined): Promise<Amity.EventResponsePayload & Amity.Pagination>;
4
+ }
5
+ //# sourceMappingURL=PaginationController.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PaginationController.d.ts","sourceRoot":"","sources":["../../../../src/eventRepository/observers/getRSVPs/PaginationController.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAElF,qBAAa,wBAAyB,SAAQ,oBAAoB,CAChE,eAAe,EACf,KAAK,CAAC,kBAAkB,CACzB;IACO,UAAU,CAAC,WAAW,EAAE,KAAK,CAAC,kBAAkB,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS;CAWlF"}
@@ -0,0 +1,15 @@
1
+ import { EventActionsEnum } from '~/eventRepository/events/enums';
2
+ import { QueryStreamController } from '~/core/liveCollection/QueryStreamController';
3
+ export declare class RSVPQueryStreamController extends QueryStreamController<Amity.EventResponsePayload, Amity.RSVPLiveCollection> {
4
+ private notifyChange;
5
+ private preparePayload;
6
+ constructor(query: Amity.RSVPLiveCollection, cacheKey: string[], notifyChange: (params: Amity.LiveCollectionNotifyParams) => void, preparePayload: (response: Amity.EventResponsePayload) => Amity.ProcessedEventResponsePayload);
7
+ saveToMainDB(response: Amity.EventResponsePayload): Promise<void>;
8
+ appendToQueryStream(response: Amity.EventResponsePayload & Partial<Amity.Pagination>, direction: Amity.LiveCollectionPageDirection, refresh?: boolean): void;
9
+ reactor(action: EventActionsEnum): (event: Amity.InternalEventResponse) => void;
10
+ subscribeRTE(createSubscriber: {
11
+ fn: (reactor: (event: Amity.InternalEventResponse) => 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/getRSVPs/QueryStreamController.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AAEpF,qBAAa,yBAA0B,SAAQ,qBAAqB,CAClE,KAAK,CAAC,oBAAoB,EAC1B,KAAK,CAAC,kBAAkB,CACzB;IACC,OAAO,CAAC,YAAY,CAAqD;IAEzE,OAAO,CAAC,cAAc,CAEmB;gBAGvC,KAAK,EAAE,KAAK,CAAC,kBAAkB,EAC/B,QAAQ,EAAE,MAAM,EAAE,EAClB,YAAY,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC,0BAA0B,KAAK,IAAI,EAChE,cAAc,EAAE,CAAC,QAAQ,EAAE,KAAK,CAAC,oBAAoB,KAAK,KAAK,CAAC,6BAA6B;IAOzF,YAAY,CAAC,QAAQ,EAAE,KAAK,CAAC,oBAAoB;IASvD,mBAAmB,CACjB,QAAQ,EAAE,KAAK,CAAC,oBAAoB,GAAG,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,EAChE,SAAS,EAAE,KAAK,CAAC,2BAA2B,EAC5C,OAAO,UAAQ;IAoBjB,OAAO,CAAC,MAAM,EAAE,gBAAgB,WACf,MAAM,qBAAqB;IAsB5C,YAAY,CACV,gBAAgB,EAAE;QAChB,EAAE,EAAE,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,qBAAqB,KAAK,IAAI,KAAK,KAAK,CAAC,YAAY,CAAC;QAClF,MAAM,EAAE,gBAAgB,CAAC;KAC1B,EAAE;CAIN"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Get 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 RSVP Live Collection
9
+ *
10
+ */
11
+ export declare const getRSVPs: (params: Amity.QueryRSVPs, callback: Amity.LiveCollectionCallback<Amity.EventResponse>, config?: Amity.LiveCollectionConfig) => () => void;
12
+ //# sourceMappingURL=getRSVPs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getRSVPs.d.ts","sourceRoot":"","sources":["../../../src/eventRepository/observers/getRSVPs.ts"],"names":[],"mappings":"AAKA;;;;;;;;;GASG;AACH,eAAO,MAAM,QAAQ,WACX,MAAM,UAAU,YACd,MAAM,sBAAsB,CAAC,MAAM,aAAa,CAAC,WAClD,MAAM,oBAAoB,eAqBpC,CAAC"}
@@ -1,2 +1,5 @@
1
1
  export * from './getEvent';
2
+ export * from './getEvents';
3
+ export * from './getMyEvents';
4
+ export * from './getRSVPs';
2
5
  //# 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"}
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;AAC9B,cAAc,YAAY,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare const createEventEventSubscriber: (event: keyof Amity.MqttEventEvents, callback: Amity.Listener<Amity.InternalEvent>) => Amity.Unsubscriber;
1
+ export declare const createEventEventSubscriber: (event: keyof Amity.MqttEventEvents | keyof Amity.LocalEventEvents, callback: Amity.Listener<Amity.InternalEvent>) => Amity.Unsubscriber;
2
2
  //# sourceMappingURL=createEventEventSubscriber.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createEventEventSubscriber.d.ts","sourceRoot":"","sources":["../../../src/eventRepository/utils/createEventEventSubscriber.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,0BAA0B,UAC9B,MAAM,MAAM,eAAe,YACxB,MAAM,QAAQ,CAAC,MAAM,aAAa,CAAC,uBAqB9C,CAAC"}
1
+ {"version":3,"file":"createEventEventSubscriber.d.ts","sourceRoot":"","sources":["../../../src/eventRepository/utils/createEventEventSubscriber.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,0BAA0B,UAC9B,MAAM,MAAM,eAAe,GAAG,MAAM,MAAM,gBAAgB,YACvD,MAAM,QAAQ,CAAC,MAAM,aAAa,CAAC,uBAqB9C,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const createEventResponseSubscriber: (event: keyof Amity.MqttEventRSVPEvents | keyof Amity.LocalEventRSVPEvents, callback: Amity.Listener<Amity.EventResponse>) => Amity.Unsubscriber;
2
+ //# sourceMappingURL=createEventResponseSubscriber.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createEventResponseSubscriber.d.ts","sourceRoot":"","sources":["../../../src/eventRepository/utils/createEventResponseSubscriber.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,6BAA6B,UACjC,MAAM,MAAM,mBAAmB,GAAG,MAAM,MAAM,oBAAoB,YAC/D,MAAM,QAAQ,CAAC,MAAM,aAAa,CAAC,uBAqB9C,CAAC"}
@@ -1,3 +1,5 @@
1
1
  export * from './prepareEventPayload';
2
2
  export * from './createEventEventSubscriber';
3
+ export * from './prepareEventResponsePayload';
4
+ export * from './createEventResponseSubscriber';
3
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/eventRepository/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/eventRepository/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const prepareEventResponsePayload: (rawPayload: Amity.EventResponsePayload) => Amity.ProcessedEventResponsePayload;
2
+ //# sourceMappingURL=prepareEventResponsePayload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prepareEventResponsePayload.d.ts","sourceRoot":"","sources":["../../../src/eventRepository/utils/prepareEventResponsePayload.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,2BAA2B,eAC1B,MAAM,oBAAoB,KACrC,MAAM,6BAQR,CAAC"}