@amityco/ts-sdk 7.10.1-8b116307.0 → 7.10.1-9fe9d33d.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.
@@ -47,7 +47,7 @@ declare global {
47
47
  liveStream?: Amity.Stream;
48
48
  creator?: Amity.User;
49
49
  };
50
- type EventCreatePayload = Pick<Amity.Event, 'title' | 'description' | 'type' | 'isInviteOnly' | 'startTime' | 'endTime' | 'originType' | 'originId' | 'location' | 'externalUrl' | 'tags'> & {
50
+ type EventCreateOptions = Pick<Amity.Event, 'title' | 'description' | 'type' | 'isInviteOnly' | 'startTime' | 'endTime' | 'originType' | 'originId' | 'location' | 'externalUrl' | 'tags'> & {
51
51
  coverImageFileId?: string;
52
52
  };
53
53
  }
@@ -12,5 +12,5 @@
12
12
  * @category Event API
13
13
  * @async
14
14
  */
15
- export declare const createEvent: (bundle: Amity.EventCreatePayload) => Promise<Amity.Cached<Amity.Event>>;
15
+ export declare const createEvent: (bundle: Amity.EventCreateOptions) => Promise<Amity.Cached<Amity.Event>>;
16
16
  //# sourceMappingURL=createEvent.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amityco/ts-sdk",
3
- "version": "7.10.1-8b116307.0",
3
+ "version": "7.10.1-9fe9d33d.0",
4
4
  "license": "CC-BY-ND-4.0",
5
5
  "author": "amity.co <developers@amity.co> (https://amity.co)",
6
6
  "description": "Amity Social Cloud Typescript SDK",
@@ -61,7 +61,7 @@ declare global {
61
61
  creator?: Amity.User;
62
62
  };
63
63
 
64
- type EventCreatePayload = Pick<
64
+ type EventCreateOptions = Pick<
65
65
  Amity.Event,
66
66
  | 'title'
67
67
  | 'description'
@@ -22,7 +22,7 @@ import { eventLinkedObject } from '~/utils/linkedObject/eventLinkObject';
22
22
  * @async
23
23
  */
24
24
  export const createEvent = async (
25
- bundle: Amity.EventCreatePayload,
25
+ bundle: Amity.EventCreateOptions,
26
26
  ): Promise<Amity.Cached<Amity.Event>> => {
27
27
  const client = getActiveClient();
28
28
  client.log('event/createEvent', bundle);