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

@surfskip/api-types

Package Overview
Dependencies
Maintainers
3
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.51.1 to 0.52.0

31

dist/database/UserPlan.d.ts

@@ -7,4 +7,5 @@ import mongoose, { Types } from "mongoose";

startDate: Date;
endDate: Date;
user?: Types.ObjectId | undefined;
status?: string | undefined;
remainingDays?: number | undefined;
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{

@@ -14,4 +15,5 @@ id: string;

startDate: Date;
endDate: Date;
user?: Types.ObjectId | undefined;
status?: string | undefined;
remainingDays?: number | undefined;
}>> & mongoose.FlatRecord<{

@@ -21,4 +23,5 @@ id: string;

startDate: Date;
endDate: Date;
user?: Types.ObjectId | undefined;
status?: string | undefined;
remainingDays?: number | undefined;
}> & {

@@ -32,4 +35,5 @@ _id: Types.ObjectId;

startDate: Date;
endDate: Date;
user?: Types.ObjectId | undefined;
status?: string | undefined;
remainingDays?: number | undefined;
}, {}, {}, {}, mongoose.Document<unknown, {}, {

@@ -39,4 +43,5 @@ id: string;

startDate: Date;
endDate: Date;
user?: Types.ObjectId | undefined;
status?: string | undefined;
remainingDays?: number | undefined;
}> & {

@@ -46,4 +51,5 @@ id: string;

startDate: Date;
endDate: Date;
user?: Types.ObjectId | undefined;
status?: string | undefined;
remainingDays?: number | undefined;
} & {

@@ -57,5 +63,8 @@ _id: Types.ObjectId;

startDate: Date;
endDate: Date;
user?: Types.ObjectId | undefined;
status?: string | undefined;
remainingDays?: number | undefined;
}>[]>;
export declare const PlanOrder: readonly ["FAMILY", "ULTRA", "PREMIUM", "FREE"];
export type TPlanType = typeof PlanOrder[number];
export declare const getSortedPlans: (userId: Types.ObjectId) => Promise<mongoose.FlattenMaps<{

@@ -65,4 +74,5 @@ id: string;

startDate: Date;
endDate: Date;
user?: Types.ObjectId | undefined;
status?: string | undefined;
remainingDays?: number | undefined;
}>[]>;

@@ -73,6 +83,7 @@ export declare const getActivePlan: (userId: Types.ObjectId) => Promise<mongoose.FlattenMaps<{

startDate: Date;
endDate: Date;
user?: Types.ObjectId | undefined;
status?: string | undefined;
remainingDays?: number | undefined;
}> | undefined>;
export declare const upsertFreePlan: (userId: Types.ObjectId) => Promise<void>;
export declare const upsertPlan: (customerId: string, plan: (typeof PlanDetails)[keyof typeof PlanDetails], status: string) => Promise<void>;
export declare const upsertPlan: (customerId: string, plan: (typeof PlanDetails)[keyof typeof PlanDetails]) => Promise<void>;

@@ -465,5 +465,7 @@ /// <reference types="mongoose/types/aggregate" />

startDate: Date;
endDate: Date;
user?: import("mongoose").Types.ObjectId | undefined;
status?: string | undefined;
remainingDays?: number | undefined;
}>[];
readonly tier: "FAMILY" | "ULTRA" | "PREMIUM" | "FREE";
};

@@ -470,0 +472,0 @@ }>;

import { LemonSqueezy } from "@lemonsqueezy/lemonsqueezy.js";
export declare const PlanDetails: {
readonly FAMILY_TWO_YEARS: {
readonly id: 160843;
readonly id: 161593;
readonly name: "FAMILY";

@@ -11,3 +11,3 @@ readonly days: number;

readonly FAMILY_ONE_YEAR: {
readonly id: 160846;
readonly id: 161594;
readonly name: "FAMILY";

@@ -19,3 +19,3 @@ readonly days: number;

readonly FAMILY_ONE_MONTH: {
readonly id: 160847;
readonly id: 161595;
readonly name: "FAMILY";

@@ -27,3 +27,3 @@ readonly days: 30;

readonly ULTRA_TWO_YEARS: {
readonly id: 160850;
readonly id: 161601;
readonly name: "ULTRA";

@@ -35,3 +35,3 @@ readonly days: number;

readonly ULTRA_ONE_YEAR: {
readonly id: 160851;
readonly id: 161602;
readonly name: "ULTRA";

@@ -43,3 +43,3 @@ readonly days: number;

readonly ULTRA_ONE_MONTH: {
readonly id: 160852;
readonly id: 161603;
readonly name: "ULTRA";

@@ -51,3 +51,3 @@ readonly days: 30;

readonly PREMIUM_TWO_YEARS: {
readonly id: 160854;
readonly id: 161597;
readonly name: "PREMIUM";

@@ -59,3 +59,3 @@ readonly days: number;

readonly PREMIUM_ONE_YEAR: {
readonly id: 160855;
readonly id: 161598;
readonly name: "PREMIUM";

@@ -67,3 +67,3 @@ readonly days: number;

readonly PREMIUM_ONE_MONTH: {
readonly id: 160856;
readonly id: 161599;
readonly name: "PREMIUM";

@@ -76,3 +76,3 @@ readonly days: 30;

export declare const getPlanByPriceId: (priceId: number) => {
readonly id: 160843;
readonly id: 161593;
readonly name: "FAMILY";

@@ -83,3 +83,3 @@ readonly days: number;

} | {
readonly id: 160846;
readonly id: 161594;
readonly name: "FAMILY";

@@ -90,3 +90,3 @@ readonly days: number;

} | {
readonly id: 160847;
readonly id: 161595;
readonly name: "FAMILY";

@@ -97,3 +97,3 @@ readonly days: 30;

} | {
readonly id: 160850;
readonly id: 161601;
readonly name: "ULTRA";

@@ -104,3 +104,3 @@ readonly days: number;

} | {
readonly id: 160851;
readonly id: 161602;
readonly name: "ULTRA";

@@ -111,3 +111,3 @@ readonly days: number;

} | {
readonly id: 160852;
readonly id: 161603;
readonly name: "ULTRA";

@@ -118,3 +118,3 @@ readonly days: 30;

} | {
readonly id: 160854;
readonly id: 161597;
readonly name: "PREMIUM";

@@ -125,3 +125,3 @@ readonly days: number;

} | {
readonly id: 160855;
readonly id: 161598;
readonly name: "PREMIUM";

@@ -132,3 +132,3 @@ readonly days: number;

} | {
readonly id: 160856;
readonly id: 161599;
readonly name: "PREMIUM";

@@ -135,0 +135,0 @@ readonly days: 30;

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

@@ -32,3 +32,3 @@ "types": "./dist/index.d.ts",

"release-it": "^16.1.3",
"rimraf": "^5.0.1",
"rimraf": "5.0.5",
"typescript": "^5.0.0"

@@ -35,0 +35,0 @@ },

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