@jibb-open/jssdk 3.18.5 → 3.18.6

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 (2) hide show
  1. package/package.json +1 -1
  2. package/types/types.js +24 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jibb-open/jssdk",
3
- "version": "3.18.5",
3
+ "version": "3.18.6",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
package/types/types.js CHANGED
@@ -1,3 +1,4 @@
1
+ import "core-js/modules/es.object.from-entries.js";
1
2
  import "core-js/modules/es.weak-map.js";
2
3
  import "core-js/modules/web.dom-collections.iterator.js";
3
4
  function _classPrivateMethodInitSpec(obj, privateSet) { _checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); }
@@ -164,4 +165,27 @@ export class UserClaims extends StandardClaims {
164
165
  getUserId() {
165
166
  return this.userId;
166
167
  }
168
+ }
169
+ export const ShareMeetingStatus = Object.freeze({
170
+ UNKNOWN_SHARE_MEETING_STATUS: 0,
171
+ SENT: 1,
172
+ PENDING_BOT: 2,
173
+ CURRENT_MEETING_NOT_FOUND: 3,
174
+ MICROSOFT_TEAM_NOT_CONNECTED: 4
175
+ });
176
+ export const ShareMeetingStatusName = Object.freeze(Object.fromEntries(Object.entries(ShareMeetingStatus).map(_ref => {
177
+ let [k, v] = _ref;
178
+ return [v, k];
179
+ })));
180
+ export const ShareMeetingStatusCode = ShareMeetingStatus;
181
+ export function normalizeShareMeetingStatus(input) {
182
+ if (typeof input === "number" && Number.isFinite(input)) return input;
183
+ if (typeof input === "string") {
184
+ const code = ShareMeetingStatus[input];
185
+ if (typeof code === "number") return code;
186
+ const upper = input.toUpperCase();
187
+ const code2 = ShareMeetingStatus[upper];
188
+ if (typeof code2 === "number") return code2;
189
+ }
190
+ return ShareMeetingStatus.UNKNOWN_SHARE_MEETING_STATUS;
167
191
  }