tonightpass 0.0.157 → 0.0.158

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.d.mts CHANGED
@@ -44,7 +44,7 @@ type UserNotificationBase = Base & {
44
44
  };
45
45
  type UserNotificationFollow = UserNotificationBase & {
46
46
  type: UserNotificationType.Follow;
47
- follower: User;
47
+ follower: UserProfile;
48
48
  };
49
49
  type UserNotification = UserNotificationFollow;
50
50
  type UserNotificationEndpoints = Endpoint<"GET", "/users/@me/notifications", ArrayResult<UserNotification>, ArrayOptions<UserNotification>> | Endpoint<"GET", "/users/@me/notifications/count", number, {
@@ -565,7 +565,7 @@ type OrganizationEvent = Base & {
565
565
  title: string;
566
566
  description: string;
567
567
  slug: string;
568
- organization: Organization;
568
+ organization: OrganizationProfile;
569
569
  type: OrganizationEventType;
570
570
  visibility: OrganizationEventVisibilityType;
571
571
  flyers: string[];
@@ -625,10 +625,10 @@ declare class UpdateOrganizationMemberDto {
625
625
  }
626
626
 
627
627
  type OrganizationMember = Base & {
628
- organization: Organization;
628
+ organization: OrganizationProfile;
629
629
  role: OrganizationMemberRole;
630
630
  status: OrganizationMemberStatus;
631
- user?: User;
631
+ user?: UserProfile;
632
632
  token?: UserToken;
633
633
  };
634
634
  declare enum OrganizationMemberStatus {
@@ -719,7 +719,7 @@ type OrganizationProfileMetadata = BaseProfileMetadata & {
719
719
  membersCount: number;
720
720
  };
721
721
  type ProfileMetadata = UserProfileMetadata | OrganizationProfileMetadata;
722
- type ProfileEndpoints = Endpoint<"GET", "/profiles/:username", Profile> | Endpoint<"GET", "/profiles/@me/relationships/suggestions", ArrayResult<Profile>, ArrayOptions<Organization | User>> | Endpoint<"GET", "/profiles/:username/relationships/followers", ArrayResult<UserProfile>, ArrayOptions<User>> | Endpoint<"POST", "/profiles/:username/relationships/follow", boolean, null> | Endpoint<"POST", "/profiles/:username/relationships/unfollow", boolean, null>;
722
+ type ProfileEndpoints = Endpoint<"GET", "/profiles/:username", Profile> | Endpoint<"GET", "/profiles/@me/relationships/suggestions", ArrayResult<Profile>, ArrayOptions<OrganizationProfile | UserProfile>> | Endpoint<"GET", "/profiles/:username/relationships/followers", ArrayResult<UserProfile>, ArrayOptions<UserProfile>> | Endpoint<"POST", "/profiles/:username/relationships/follow", boolean, null> | Endpoint<"POST", "/profiles/:username/relationships/unfollow", boolean, null>;
723
723
 
724
724
  type WebhookEndpoints = Endpoint<"POST", "/webhooks/stripe", boolean, Stripe__default.Event>;
725
725
 
package/dist/index.d.ts CHANGED
@@ -44,7 +44,7 @@ type UserNotificationBase = Base & {
44
44
  };
45
45
  type UserNotificationFollow = UserNotificationBase & {
46
46
  type: UserNotificationType.Follow;
47
- follower: User;
47
+ follower: UserProfile;
48
48
  };
49
49
  type UserNotification = UserNotificationFollow;
50
50
  type UserNotificationEndpoints = Endpoint<"GET", "/users/@me/notifications", ArrayResult<UserNotification>, ArrayOptions<UserNotification>> | Endpoint<"GET", "/users/@me/notifications/count", number, {
@@ -565,7 +565,7 @@ type OrganizationEvent = Base & {
565
565
  title: string;
566
566
  description: string;
567
567
  slug: string;
568
- organization: Organization;
568
+ organization: OrganizationProfile;
569
569
  type: OrganizationEventType;
570
570
  visibility: OrganizationEventVisibilityType;
571
571
  flyers: string[];
@@ -625,10 +625,10 @@ declare class UpdateOrganizationMemberDto {
625
625
  }
626
626
 
627
627
  type OrganizationMember = Base & {
628
- organization: Organization;
628
+ organization: OrganizationProfile;
629
629
  role: OrganizationMemberRole;
630
630
  status: OrganizationMemberStatus;
631
- user?: User;
631
+ user?: UserProfile;
632
632
  token?: UserToken;
633
633
  };
634
634
  declare enum OrganizationMemberStatus {
@@ -719,7 +719,7 @@ type OrganizationProfileMetadata = BaseProfileMetadata & {
719
719
  membersCount: number;
720
720
  };
721
721
  type ProfileMetadata = UserProfileMetadata | OrganizationProfileMetadata;
722
- type ProfileEndpoints = Endpoint<"GET", "/profiles/:username", Profile> | Endpoint<"GET", "/profiles/@me/relationships/suggestions", ArrayResult<Profile>, ArrayOptions<Organization | User>> | Endpoint<"GET", "/profiles/:username/relationships/followers", ArrayResult<UserProfile>, ArrayOptions<User>> | Endpoint<"POST", "/profiles/:username/relationships/follow", boolean, null> | Endpoint<"POST", "/profiles/:username/relationships/unfollow", boolean, null>;
722
+ type ProfileEndpoints = Endpoint<"GET", "/profiles/:username", Profile> | Endpoint<"GET", "/profiles/@me/relationships/suggestions", ArrayResult<Profile>, ArrayOptions<OrganizationProfile | UserProfile>> | Endpoint<"GET", "/profiles/:username/relationships/followers", ArrayResult<UserProfile>, ArrayOptions<UserProfile>> | Endpoint<"POST", "/profiles/:username/relationships/follow", boolean, null> | Endpoint<"POST", "/profiles/:username/relationships/unfollow", boolean, null>;
723
723
 
724
724
  type WebhookEndpoints = Endpoint<"POST", "/webhooks/stripe", boolean, Stripe__default.Event>;
725
725