connectfy-shared 0.0.118 → 0.0.120

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.cjs CHANGED
@@ -9954,12 +9954,12 @@ var FriendshipRequestType = /* @__PURE__ */ ((FriendshipRequestType2) => {
9954
9954
  return FriendshipRequestType2;
9955
9955
  })(FriendshipRequestType || {});
9956
9956
  var NotificationType = /* @__PURE__ */ ((NotificationType2) => {
9957
- NotificationType2["FRIENDSHIP_REQUEST_SENT"] = "friendship.request.sent";
9958
- NotificationType2["FRIENDSHIP_REQUEST_ACCEPTED"] = "friendship.request.accepted";
9959
- NotificationType2["FRIENDSHIP_REQUEST_DECLINED"] = "friendship.request.declined";
9960
- NotificationType2["NEW_MESSAGE"] = "message.new";
9961
- NotificationType2["SYSTEM_ALERT"] = "system.alert";
9962
- NotificationType2["ACCOUNT_WARNING"] = "account.warning";
9957
+ NotificationType2["FRIENDSHIP_REQUEST_SENT"] = "friendship_request_sent";
9958
+ NotificationType2["FRIENDSHIP_REQUEST_ACCEPTED"] = "friendship_request_accepted";
9959
+ NotificationType2["FRIENDSHIP_REQUEST_DECLINED"] = "friendship_request_declined";
9960
+ NotificationType2["NEW_MESSAGE"] = "message_new";
9961
+ NotificationType2["SYSTEM_ALERT"] = "system_alert";
9962
+ NotificationType2["ACCOUNT_WARNING"] = "account_warning";
9963
9963
  return NotificationType2;
9964
9964
  })(NotificationType || {});
9965
9965
  var NotificationStatus = /* @__PURE__ */ ((NotificationStatus2) => {
package/dist/index.d.cts CHANGED
@@ -385,12 +385,12 @@ declare enum FriendshipRequestType {
385
385
  Sent = "Sent"
386
386
  }
387
387
  declare enum NotificationType {
388
- FRIENDSHIP_REQUEST_SENT = "friendship.request.sent",
389
- FRIENDSHIP_REQUEST_ACCEPTED = "friendship.request.accepted",
390
- FRIENDSHIP_REQUEST_DECLINED = "friendship.request.declined",
391
- NEW_MESSAGE = "message.new",
392
- SYSTEM_ALERT = "system.alert",
393
- ACCOUNT_WARNING = "account.warning"
388
+ FRIENDSHIP_REQUEST_SENT = "friendship_request_sent",
389
+ FRIENDSHIP_REQUEST_ACCEPTED = "friendship_request_accepted",
390
+ FRIENDSHIP_REQUEST_DECLINED = "friendship_request_declined",
391
+ NEW_MESSAGE = "message_new",
392
+ SYSTEM_ALERT = "system_alert",
393
+ ACCOUNT_WARNING = "account_warning"
394
394
  }
395
395
  declare enum NotificationStatus {
396
396
  Unread = "unread",
@@ -826,7 +826,7 @@ interface IBooleanFieldOptions extends IBaseFieldOptions {
826
826
  }
827
827
  type FieldValidatorOptions = IStringFieldOptions | INumberFieldOptions | IEnumFieldOptions | IDateFieldOptions | IArrayFieldOptions | IObjectFieldOptions | IBooleanFieldOptions;
828
828
 
829
- declare abstract class BaseRepository<TDocument extends Document, TInterface extends IBaseRepositoryInterface, CreateDto = Partial<TDocument>, UpdateDto = any> {
829
+ declare abstract class BaseRepository<TDocument extends Document<any, any, any>, TInterface extends IBaseRepositoryInterface, CreateDto = Partial<TDocument>, UpdateDto = any> {
830
830
  protected readonly model: Model<TDocument>;
831
831
  protected constructor(model: Model<TDocument>);
832
832
  create(data: CreateDto, opts?: IBaseRepositoryOptions): Promise<TInterface>;
package/dist/index.d.ts CHANGED
@@ -385,12 +385,12 @@ declare enum FriendshipRequestType {
385
385
  Sent = "Sent"
386
386
  }
387
387
  declare enum NotificationType {
388
- FRIENDSHIP_REQUEST_SENT = "friendship.request.sent",
389
- FRIENDSHIP_REQUEST_ACCEPTED = "friendship.request.accepted",
390
- FRIENDSHIP_REQUEST_DECLINED = "friendship.request.declined",
391
- NEW_MESSAGE = "message.new",
392
- SYSTEM_ALERT = "system.alert",
393
- ACCOUNT_WARNING = "account.warning"
388
+ FRIENDSHIP_REQUEST_SENT = "friendship_request_sent",
389
+ FRIENDSHIP_REQUEST_ACCEPTED = "friendship_request_accepted",
390
+ FRIENDSHIP_REQUEST_DECLINED = "friendship_request_declined",
391
+ NEW_MESSAGE = "message_new",
392
+ SYSTEM_ALERT = "system_alert",
393
+ ACCOUNT_WARNING = "account_warning"
394
394
  }
395
395
  declare enum NotificationStatus {
396
396
  Unread = "unread",
@@ -826,7 +826,7 @@ interface IBooleanFieldOptions extends IBaseFieldOptions {
826
826
  }
827
827
  type FieldValidatorOptions = IStringFieldOptions | INumberFieldOptions | IEnumFieldOptions | IDateFieldOptions | IArrayFieldOptions | IObjectFieldOptions | IBooleanFieldOptions;
828
828
 
829
- declare abstract class BaseRepository<TDocument extends Document, TInterface extends IBaseRepositoryInterface, CreateDto = Partial<TDocument>, UpdateDto = any> {
829
+ declare abstract class BaseRepository<TDocument extends Document<any, any, any>, TInterface extends IBaseRepositoryInterface, CreateDto = Partial<TDocument>, UpdateDto = any> {
830
830
  protected readonly model: Model<TDocument>;
831
831
  protected constructor(model: Model<TDocument>);
832
832
  create(data: CreateDto, opts?: IBaseRepositoryOptions): Promise<TInterface>;
package/dist/index.mjs CHANGED
@@ -9854,12 +9854,12 @@ var FriendshipRequestType = /* @__PURE__ */ ((FriendshipRequestType2) => {
9854
9854
  return FriendshipRequestType2;
9855
9855
  })(FriendshipRequestType || {});
9856
9856
  var NotificationType = /* @__PURE__ */ ((NotificationType2) => {
9857
- NotificationType2["FRIENDSHIP_REQUEST_SENT"] = "friendship.request.sent";
9858
- NotificationType2["FRIENDSHIP_REQUEST_ACCEPTED"] = "friendship.request.accepted";
9859
- NotificationType2["FRIENDSHIP_REQUEST_DECLINED"] = "friendship.request.declined";
9860
- NotificationType2["NEW_MESSAGE"] = "message.new";
9861
- NotificationType2["SYSTEM_ALERT"] = "system.alert";
9862
- NotificationType2["ACCOUNT_WARNING"] = "account.warning";
9857
+ NotificationType2["FRIENDSHIP_REQUEST_SENT"] = "friendship_request_sent";
9858
+ NotificationType2["FRIENDSHIP_REQUEST_ACCEPTED"] = "friendship_request_accepted";
9859
+ NotificationType2["FRIENDSHIP_REQUEST_DECLINED"] = "friendship_request_declined";
9860
+ NotificationType2["NEW_MESSAGE"] = "message_new";
9861
+ NotificationType2["SYSTEM_ALERT"] = "system_alert";
9862
+ NotificationType2["ACCOUNT_WARNING"] = "account_warning";
9863
9863
  return NotificationType2;
9864
9864
  })(NotificationType || {});
9865
9865
  var NotificationStatus = /* @__PURE__ */ ((NotificationStatus2) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "connectfy-shared",
3
- "version": "0.0.118",
3
+ "version": "0.0.120",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "exports": {