plugnmeet-sdk-js 1.2.1 → 1.2.3

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 (98) hide show
  1. package/README.md +1 -1
  2. package/dist/PlugNmeet.js +184 -137
  3. package/dist/PlugNmeet.js.map +1 -1
  4. package/dist/index.d.ts +280 -11
  5. package/dist/index.d.ts.map +1 -0
  6. package/dist/main.js +248 -0
  7. package/dist/main.js.map +1 -0
  8. package/dist/module.js +241 -0
  9. package/dist/module.js.map +1 -0
  10. package/package.json +28 -21
  11. package/dist/PlugNmeet.d.ts +0 -76
  12. package/dist/api.d.ts +0 -6
  13. package/dist/api.js +0 -67
  14. package/dist/api.js.map +0 -1
  15. package/dist/cjs/PlugNmeet.d.ts +0 -76
  16. package/dist/cjs/PlugNmeet.js +0 -231
  17. package/dist/cjs/PlugNmeet.js.map +0 -1
  18. package/dist/cjs/api.d.ts +0 -6
  19. package/dist/cjs/api.js +0 -85
  20. package/dist/cjs/api.js.map +0 -1
  21. package/dist/cjs/index.d.ts +0 -11
  22. package/dist/cjs/index.js +0 -6
  23. package/dist/cjs/index.js.map +0 -1
  24. package/dist/cjs/types/RecordingDownloadToken.d.ts +0 -8
  25. package/dist/cjs/types/RecordingDownloadToken.js +0 -3
  26. package/dist/cjs/types/RecordingDownloadToken.js.map +0 -1
  27. package/dist/cjs/types/activeRoomInfo.d.ts +0 -34
  28. package/dist/cjs/types/activeRoomInfo.js +0 -3
  29. package/dist/cjs/types/activeRoomInfo.js.map +0 -1
  30. package/dist/cjs/types/activeRoomsInfo.d.ts +0 -6
  31. package/dist/cjs/types/activeRoomsInfo.js +0 -3
  32. package/dist/cjs/types/activeRoomsInfo.js.map +0 -1
  33. package/dist/cjs/types/clientFiles.d.ts +0 -6
  34. package/dist/cjs/types/clientFiles.js +0 -3
  35. package/dist/cjs/types/clientFiles.js.map +0 -1
  36. package/dist/cjs/types/createRoom.d.ts +0 -82
  37. package/dist/cjs/types/createRoom.js +0 -3
  38. package/dist/cjs/types/createRoom.js.map +0 -1
  39. package/dist/cjs/types/deleteRecordings.d.ts +0 -7
  40. package/dist/cjs/types/deleteRecordings.js +0 -3
  41. package/dist/cjs/types/deleteRecordings.js.map +0 -1
  42. package/dist/cjs/types/endRoom.d.ts +0 -7
  43. package/dist/cjs/types/endRoom.js +0 -3
  44. package/dist/cjs/types/endRoom.js.map +0 -1
  45. package/dist/cjs/types/fetchRecordings.d.ts +0 -27
  46. package/dist/cjs/types/fetchRecordings.js +0 -3
  47. package/dist/cjs/types/fetchRecordings.js.map +0 -1
  48. package/dist/cjs/types/isRoomActive.d.ts +0 -7
  49. package/dist/cjs/types/isRoomActive.js +0 -3
  50. package/dist/cjs/types/isRoomActive.js.map +0 -1
  51. package/dist/cjs/types/joinToken.d.ts +0 -21
  52. package/dist/cjs/types/joinToken.js +0 -3
  53. package/dist/cjs/types/joinToken.js.map +0 -1
  54. package/dist/index.js +0 -2
  55. package/dist/index.js.map +0 -1
  56. package/dist/types/RecordingDownloadToken.d.ts +0 -8
  57. package/dist/types/RecordingDownloadToken.js +0 -2
  58. package/dist/types/RecordingDownloadToken.js.map +0 -1
  59. package/dist/types/activeRoomInfo.d.ts +0 -34
  60. package/dist/types/activeRoomInfo.js +0 -2
  61. package/dist/types/activeRoomInfo.js.map +0 -1
  62. package/dist/types/activeRoomsInfo.d.ts +0 -6
  63. package/dist/types/activeRoomsInfo.js +0 -2
  64. package/dist/types/activeRoomsInfo.js.map +0 -1
  65. package/dist/types/clientFiles.d.ts +0 -6
  66. package/dist/types/clientFiles.js +0 -2
  67. package/dist/types/clientFiles.js.map +0 -1
  68. package/dist/types/createRoom.d.ts +0 -82
  69. package/dist/types/createRoom.js +0 -2
  70. package/dist/types/createRoom.js.map +0 -1
  71. package/dist/types/deleteRecordings.d.ts +0 -7
  72. package/dist/types/deleteRecordings.js +0 -2
  73. package/dist/types/deleteRecordings.js.map +0 -1
  74. package/dist/types/endRoom.d.ts +0 -7
  75. package/dist/types/endRoom.js +0 -2
  76. package/dist/types/endRoom.js.map +0 -1
  77. package/dist/types/fetchRecordings.d.ts +0 -27
  78. package/dist/types/fetchRecordings.js +0 -2
  79. package/dist/types/fetchRecordings.js.map +0 -1
  80. package/dist/types/isRoomActive.d.ts +0 -7
  81. package/dist/types/isRoomActive.js +0 -2
  82. package/dist/types/isRoomActive.js.map +0 -1
  83. package/dist/types/joinToken.d.ts +0 -21
  84. package/dist/types/joinToken.js +0 -2
  85. package/dist/types/joinToken.js.map +0 -1
  86. package/src/PlugNmeet.ts +0 -255
  87. package/src/api.ts +0 -92
  88. package/src/index.ts +0 -48
  89. package/src/types/RecordingDownloadToken.ts +0 -9
  90. package/src/types/activeRoomInfo.ts +0 -38
  91. package/src/types/activeRoomsInfo.ts +0 -7
  92. package/src/types/clientFiles.ts +0 -6
  93. package/src/types/createRoom.ts +0 -94
  94. package/src/types/deleteRecordings.ts +0 -8
  95. package/src/types/endRoom.ts +0 -8
  96. package/src/types/fetchRecordings.ts +0 -30
  97. package/src/types/isRoomActive.ts +0 -8
  98. package/src/types/joinToken.ts +0 -25
package/src/index.ts DELETED
@@ -1,48 +0,0 @@
1
- export {
2
- RooMetadata,
3
- CreateRoomParams,
4
- CreateRoomResponse,
5
- CreateRoomResponseRoomInfo,
6
- LockSettingsParams,
7
- RoomFeaturesParams,
8
- RecordingFeaturesParams,
9
- ChatFeaturesParams,
10
- SharedNotePadFeaturesParams,
11
- WhiteboardFeaturesParams,
12
- ExternalMediaPlayerFeatures,
13
- WaitingRoomFeatures,
14
- BreakoutRoomFeatures,
15
- } from './types/createRoom';
16
- export {
17
- JoinTokenParams,
18
- JoinTokenResponse,
19
- JoinTokenUserMetadata,
20
- JoinTokenUserInfo,
21
- } from './types/joinToken';
22
- export { IsRoomActiveParams, IsRoomActiveResponse } from './types/isRoomActive';
23
- export {
24
- Room,
25
- ActiveRoomInfoParams,
26
- ActiveRoomInfoResponse,
27
- ParticipantInfo,
28
- ActiveRoomInfo,
29
- } from './types/activeRoomInfo';
30
- export { ActiveRoomsInfoResponse } from './types/activeRoomsInfo';
31
- export { EndRoomParams, EndRoomResponse } from './types/endRoom';
32
- export {
33
- FetchRecordingsParams,
34
- FetchRecordingsResponse,
35
- FetchRecordingsResult,
36
- RecordingInfo,
37
- } from './types/fetchRecordings';
38
- export {
39
- DeleteRecordingsParams,
40
- DeleteRecordingsResponse,
41
- } from './types/deleteRecordings';
42
- export {
43
- RecordingDownloadTokenParams,
44
- RecordingDownloadTokenResponse,
45
- } from './types/RecordingDownloadToken';
46
- export { ClientFilesResponse } from './types/clientFiles';
47
-
48
- export { PlugNmeet } from './PlugNmeet';
@@ -1,9 +0,0 @@
1
- export type RecordingDownloadTokenParams = {
2
- record_id: string;
3
- };
4
-
5
- export type RecordingDownloadTokenResponse = {
6
- status: boolean;
7
- msg: string;
8
- token?: string;
9
- };
@@ -1,38 +0,0 @@
1
- export type ActiveRoomInfoParams = {
2
- room_id: string;
3
- };
4
-
5
- export type ActiveRoomInfoResponse = {
6
- status: boolean;
7
- msg: string;
8
- room?: Room;
9
- };
10
-
11
- export type Room = {
12
- room_info: ActiveRoomInfo;
13
- participants_info: Array<ParticipantInfo>;
14
- };
15
-
16
- export type ActiveRoomInfo = {
17
- room_title: string;
18
- room_id: string;
19
- sid: string;
20
- joined_participants: number;
21
- is_running: boolean;
22
- is_recording: boolean;
23
- is_active_rtmp: boolean;
24
- webhook_url: string;
25
- creation_time: number;
26
- metadata: string;
27
- };
28
-
29
- export type ParticipantInfo = {
30
- sid: string;
31
- identity: string;
32
- state: string;
33
- metadata: string;
34
- joined_at: number;
35
- name: string;
36
- version: number;
37
- permission: any;
38
- };
@@ -1,7 +0,0 @@
1
- import { Room } from './activeRoomInfo';
2
-
3
- export type ActiveRoomsInfoResponse = {
4
- status: boolean;
5
- msg: string;
6
- rooms?: Array<Room>;
7
- };
@@ -1,6 +0,0 @@
1
- export type ClientFilesResponse = {
2
- status: boolean;
3
- msg: string;
4
- css?: Array<string>;
5
- js?: Array<string>;
6
- };
@@ -1,94 +0,0 @@
1
- export type CreateRoomParams = {
2
- room_id: string;
3
- max_participants?: number;
4
- empty_timeout?: number;
5
- metadata: RooMetadata;
6
- };
7
-
8
- export type RooMetadata = {
9
- room_title: string;
10
- welcome_message?: string;
11
- webhook_url?: string;
12
- room_features: RoomFeaturesParams;
13
- default_lock_settings?: LockSettingsParams;
14
- };
15
-
16
- export type RoomFeaturesParams = {
17
- allow_webcams: boolean;
18
- mute_on_start: boolean;
19
- allow_screen_share: boolean;
20
- allow_rtmp: boolean;
21
- admin_only_webcams: boolean;
22
- allow_view_other_webcams: boolean;
23
- allow_view_other_users_list: boolean;
24
- recording_features: RecordingFeaturesParams;
25
- chat_features: ChatFeaturesParams;
26
- shared_note_pad_features?: SharedNotePadFeaturesParams;
27
- whiteboard_features?: WhiteboardFeaturesParams;
28
- external_media_player_features?: ExternalMediaPlayerFeatures;
29
- waiting_room_features?: WaitingRoomFeatures;
30
- breakout_room_features?: BreakoutRoomFeatures;
31
- };
32
-
33
- export type RecordingFeaturesParams = {
34
- is_allow: boolean;
35
- is_allow_cloud: boolean;
36
- is_allow_local: boolean;
37
- enable_auto_cloud_recording: boolean;
38
- };
39
-
40
- export type ChatFeaturesParams = {
41
- allow_chat: boolean;
42
- allow_file_upload: boolean;
43
- allowed_file_types: Array<string>;
44
- max_file_size: number;
45
- };
46
-
47
- export type SharedNotePadFeaturesParams = {
48
- allowed_shared_note_pad: boolean;
49
- };
50
-
51
- export type WhiteboardFeaturesParams = {
52
- allowed_whiteboard: boolean;
53
- };
54
-
55
- export type ExternalMediaPlayerFeatures = {
56
- allowed_external_media_player: boolean;
57
- };
58
-
59
- export type WaitingRoomFeatures = {
60
- is_active: boolean;
61
- waiting_room_msg?: string;
62
- };
63
-
64
- export type BreakoutRoomFeatures = {
65
- is_allow: boolean;
66
- };
67
-
68
- export type LockSettingsParams = {
69
- lock_microphone?: boolean;
70
- lock_webcam?: boolean;
71
- lock_screen_sharing?: boolean;
72
- lock_whiteboard?: boolean;
73
- lock_shared_notepad?: boolean;
74
- lock_chat?: boolean;
75
- lock_chat_send_message?: boolean;
76
- lock_chat_file_share?: boolean;
77
- };
78
-
79
- export type CreateRoomResponse = {
80
- status: boolean;
81
- msg: string;
82
- roomInfo?: CreateRoomResponseRoomInfo;
83
- };
84
-
85
- export type CreateRoomResponseRoomInfo = {
86
- sid: string;
87
- name: string;
88
- max_participants: number;
89
- empty_timeout: number;
90
- creation_time: number;
91
- turn_password: string;
92
- enabled_codecs: Array<any>;
93
- metadata: string;
94
- };
@@ -1,8 +0,0 @@
1
- export type DeleteRecordingsParams = {
2
- record_id: string;
3
- };
4
-
5
- export type DeleteRecordingsResponse = {
6
- status: boolean;
7
- msg: string;
8
- };
@@ -1,8 +0,0 @@
1
- export type EndRoomParams = {
2
- room_id: string;
3
- };
4
-
5
- export type EndRoomResponse = {
6
- status: boolean;
7
- msg: string;
8
- };
@@ -1,30 +0,0 @@
1
- export type FetchRecordingsParams = {
2
- room_ids: Array<string>;
3
- from?: number;
4
- limit?: number;
5
- order_by?: 'ASC' | 'DESC';
6
- };
7
-
8
- export type FetchRecordingsResponse = {
9
- status: boolean;
10
- msg: string;
11
- result?: FetchRecordingsResult;
12
- };
13
-
14
- export type FetchRecordingsResult = {
15
- total_recordings: number;
16
- from: number;
17
- limit: number;
18
- order_by: string;
19
- recordings_list: Array<RecordingInfo>;
20
- };
21
-
22
- export type RecordingInfo = {
23
- record_id: string;
24
- room_id: string;
25
- room_sid: string;
26
- file_path: string;
27
- file_size: number;
28
- creation_time: number;
29
- room_creation_time: number;
30
- };
@@ -1,8 +0,0 @@
1
- export type IsRoomActiveParams = {
2
- room_id: string;
3
- };
4
-
5
- export type IsRoomActiveResponse = {
6
- status: boolean;
7
- msg: string;
8
- };
@@ -1,25 +0,0 @@
1
- import { LockSettingsParams } from './createRoom';
2
-
3
- export type JoinTokenParams = {
4
- room_id: string;
5
- user_info: JoinTokenUserInfo;
6
- };
7
-
8
- export type JoinTokenUserInfo = {
9
- name: string;
10
- user_id: string;
11
- is_admin: boolean;
12
- is_hidden: boolean;
13
- user_metadata?: JoinTokenUserMetadata;
14
- };
15
-
16
- export type JoinTokenUserMetadata = {
17
- profile_pic?: string;
18
- lock_settings?: LockSettingsParams;
19
- };
20
-
21
- export type JoinTokenResponse = {
22
- status: boolean;
23
- msg: string;
24
- token?: string;
25
- };