Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@surfskip/api-types

Package Overview
Dependencies
Maintainers
2
Versions
102
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@surfskip/api-types - npm Package Compare versions

Comparing version 0.44.0 to 0.45.0

70

dist/database/User.d.ts

@@ -1,2 +0,2 @@

import mongoose from "mongoose";
import mongoose, { Types } from "mongoose";
import { UserAvatar } from "..";

@@ -17,3 +17,3 @@ declare const schema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, {

password?: string | undefined;
avatar?: mongoose.Types.ObjectId | undefined;
avatar?: Types.ObjectId | undefined;
firstName?: string | undefined;

@@ -41,3 +41,3 @@ lastName?: string | undefined;

password?: string | undefined;
avatar?: mongoose.Types.ObjectId | undefined;
avatar?: Types.ObjectId | undefined;
firstName?: string | undefined;

@@ -65,3 +65,3 @@ lastName?: string | undefined;

password?: string | undefined;
avatar?: mongoose.Types.ObjectId | undefined;
avatar?: Types.ObjectId | undefined;
firstName?: string | undefined;

@@ -78,9 +78,11 @@ lastName?: string | undefined;

}> & {
_id: mongoose.Types.ObjectId;
_id: Types.ObjectId;
}>;
export type User = mongoose.InferSchemaType<typeof schema>;
export type User = mongoose.InferSchemaType<typeof schema> & {
_id: Types.ObjectId;
};
export type UserWithAvatar = Omit<User, "avatar"> & {
avatar: UserAvatar;
};
declare const UserModel: mongoose.Model<{
declare const UserModel: mongoose.Model<User, {}, {}, {}, mongoose.Document<unknown, {}, User> & {
createdAt: NativeDate;

@@ -97,3 +99,3 @@ updatedAt: NativeDate;

password?: string | undefined;
avatar?: mongoose.Types.ObjectId | undefined;
avatar?: Types.ObjectId | undefined;
firstName?: string | undefined;

@@ -109,51 +111,7 @@ lastName?: string | undefined;

lemonSqueezyCustomerId?: string | undefined;
}, {}, {}, {}, mongoose.Document<unknown, {}, {
createdAt: NativeDate;
updatedAt: NativeDate;
} & {
id: string;
email: string;
displayName: string;
username: string;
color: string;
tutorialIndex: number;
sideNavMenuOption: number;
password?: string | undefined;
avatar?: mongoose.Types.ObjectId | undefined;
firstName?: string | undefined;
lastName?: string | undefined;
mobileNumber?: string | undefined;
city?: string | undefined;
address?: string | undefined;
gender?: string | undefined;
country?: string | undefined;
theme?: string | undefined;
resetEmailId?: string | undefined;
lemonSqueezyCustomerId?: string | undefined;
}> & {
createdAt: NativeDate;
updatedAt: NativeDate;
} & {
id: string;
email: string;
displayName: string;
username: string;
color: string;
tutorialIndex: number;
sideNavMenuOption: number;
password?: string | undefined;
avatar?: mongoose.Types.ObjectId | undefined;
firstName?: string | undefined;
lastName?: string | undefined;
mobileNumber?: string | undefined;
city?: string | undefined;
address?: string | undefined;
gender?: string | undefined;
country?: string | undefined;
theme?: string | undefined;
resetEmailId?: string | undefined;
lemonSqueezyCustomerId?: string | undefined;
} & {
_id: mongoose.Types.ObjectId;
}, any>;
_id: Types.ObjectId;
} & Required<{
_id: Types.ObjectId;
}>, any>;
export default UserModel;

@@ -302,2 +302,3 @@ /// <reference types="mongoose/types/aggregate" />

lemonSqueezyCustomerId?: string | undefined;
_id: import("mongoose").Types.ObjectId;
};

@@ -391,2 +392,3 @@ readonly message?: undefined;

id: string;
_id: import("mongoose").Types.ObjectId;
email: string;

@@ -810,4 +812,53 @@ displayName: string;

} | {
readonly success: true;
readonly result: import("mongoose").FlattenMaps<ChatGroupWithRecipientsAndLatestMessage>;
}>;
};
};
};
"/chats/:id/add": {
post: {
body: {
recipientId: string;
};
params: {
id: string;
};
query: unknown;
headers: unknown;
response: {
200: Promise<{
readonly success: false;
readonly message: "You are not logged in.";
readonly user?: undefined;
readonly plans?: undefined;
} | {
readonly success: false;
readonly message: "Invalid token.";
readonly user?: undefined;
readonly plans?: undefined;
} | {
readonly success: false;
readonly message: "This user does not exist.";
result?: undefined;
} | {
readonly success: false;
readonly message: "This chat group does not exist.";
result?: undefined;
} | {
readonly success: false;
readonly message: "This chat group is not a group.";
result?: undefined;
} | {
readonly success: false;
readonly message: "You are not in this chat group.";
result?: undefined;
} | {
readonly success: false;
readonly message: "This user is already in this chat group.";
result?: undefined;
} | {
success: boolean;
result: import("mongoose").FlattenMaps<ChatGroupWithRecipientsAndLatestMessage>;
readonly message?: undefined;
}>;

@@ -814,0 +865,0 @@ };

2

package.json
{
"name": "@surfskip/api-types",
"version": "0.44.0",
"version": "0.45.0",
"description": "Gives up-to-date typings for our SurfSkip API to use with @elysiajs/eden to provide a full client with type safety.",

@@ -5,0 +5,0 @@ "types": "./dist/index.d.ts",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc