@budibase/server 2.6.26 → 2.6.27

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.
package/dist/index.js CHANGED
@@ -121,6 +121,7 @@ var init_event = __esm({
121
121
  Event6["USER_PASSWORD_UPDATED"] = "user:password:updated";
122
122
  Event6["USER_PASSWORD_RESET_REQUESTED"] = "user:password:reset:requested";
123
123
  Event6["USER_PASSWORD_RESET"] = "user:password:reset";
124
+ Event6["USER_DATA_COLLABORATION"] = "user:data:collaboration";
124
125
  Event6["EMAIL_SMTP_CREATED"] = "email:smtp:created";
125
126
  Event6["EMAIL_SMTP_UPDATED"] = "email:smtp:updated";
126
127
  Event6["AUTH_SSO_CREATED"] = "auth:sso:created";
@@ -271,6 +272,7 @@ var init_event = __esm({
271
272
  ["user:password:force:reset" /* USER_PASSWORD_FORCE_RESET */]: void 0,
272
273
  ["user_group:onboarding_added" /* USER_GROUP_ONBOARDING */]: void 0,
273
274
  ["user:onboarding:complete" /* USER_ONBOARDING_COMPLETE */]: void 0,
275
+ ["user:data:collaboration" /* USER_DATA_COLLABORATION */]: void 0,
274
276
  // EMAIL
275
277
  ["email:smtp:created" /* EMAIL_SMTP_CREATED */]: `Email configuration created`,
276
278
  ["email:smtp:updated" /* EMAIL_SMTP_UPDATED */]: `Email configuration updated`,
@@ -8144,6 +8146,12 @@ async function passwordReset(user2) {
8144
8146
  };
8145
8147
  await publishEvent("user:password:reset" /* USER_PASSWORD_RESET */, properties);
8146
8148
  }
8149
+ async function dataCollaboration(users2) {
8150
+ const properties = {
8151
+ users: users2
8152
+ };
8153
+ await publishEvent("user:data:collaboration" /* USER_DATA_COLLABORATION */, properties);
8154
+ }
8147
8155
  var user_default;
8148
8156
  var init_user9 = __esm({
8149
8157
  "../backend-core/src/events/publishers/user.ts"() {
@@ -8164,7 +8172,8 @@ var init_user9 = __esm({
8164
8172
  passwordForceReset,
8165
8173
  passwordUpdated,
8166
8174
  passwordResetRequested,
8167
- passwordReset
8175
+ passwordReset,
8176
+ dataCollaboration
8168
8177
  };
8169
8178
  }
8170
8179
  });
@@ -31747,6 +31756,7 @@ var init_builder2 = __esm({
31747
31756
  await this.joinRoom(socket, appId);
31748
31757
  const sessions = await this.getRoomSessions(appId);
31749
31758
  callback({ users: sessions });
31759
+ await events_exports.user.dataCollaboration(sessions.length);
31750
31760
  });
31751
31761
  }
31752
31762
  async onDisconnect(socket) {