@supertokens-plugins/progressive-profiling-nodejs
Classes
Implementation
Defined in: supertokens-plugins/packages/progressive-profiling-nodejs/src/implementation.ts:10
Constructors
Constructor
new Implementation(): Implementation;
Defined in: supertokens-plugins/packages/progressive-profiling-nodejs/src/implementation.ts:40
Returns
Properties
Methods
getInstanceOrThrow()
static getInstanceOrThrow(): Implementation;
Defined in: supertokens-plugins/packages/progressive-profiling-nodejs/src/implementation.ts:28
Returns
init()
static init(): Implementation;
Defined in: supertokens-plugins/packages/progressive-profiling-nodejs/src/implementation.ts:19
Returns
reset()
static reset(): void;
Defined in: supertokens-plugins/packages/progressive-profiling-nodejs/src/implementation.ts:36
Returns
void
Type Aliases
FormSection
type FormSection = Omit<BaseFormSection, "completed">;
Defined in: supertokens-plugins/packages/progressive-profiling-nodejs/src/types.ts:14
RegisterSections()
type RegisterSections = (payload: {
get: (session: SessionContainerInterface, userContext?: Record<string, any>) => Promise<BaseFormSection>;
sections: FormSection[];
set: (data: BaseFormSection, session: SessionContainerInterface, userContext?: Record<string, any>) => Promise<void>;
storageHandlerId: string;
}) => void;
Defined in: supertokens-plugins/packages/progressive-profiling-nodejs/src/types.ts:16
Parameters
Returns
void
SuperTokensPluginProfileProgressiveProfilingConfig
type SuperTokensPluginProfileProgressiveProfilingConfig = {
sections?: FormSection[];
};
Defined in: supertokens-plugins/packages/progressive-profiling-nodejs/src/types.ts:4
Properties
SuperTokensPluginProfileProgressiveProfilingNormalisedConfig
type SuperTokensPluginProfileProgressiveProfilingNormalisedConfig = Required<SuperTokensPluginProfileProgressiveProfilingConfig>;
Defined in: supertokens-plugins/packages/progressive-profiling-nodejs/src/types.ts:7
UserMetadataConfig
type UserMetadataConfig = {
sectionsCompleted: Record<string, boolean>;
};
Defined in: supertokens-plugins/packages/progressive-profiling-nodejs/src/types.ts:10
Properties
Variables
default
default: {
getAllSections: (input: {
session: SessionContainerInterface;
userContext?: Record<string, any>;
}) => FormSection & {
storageHandlerId: string;
}[];
getSectionValues: (input: {
session: SessionContainerInterface;
userContext?: Record<string, any>;
}) => Promise<{
data: ProfileFormData;
status: string;
}>;
init: any;
PLUGIN_ID: string;
PLUGIN_VERSION: string;
registerSections: (payload: {
get: (session: SessionContainerInterface, userContext?: Record<string, any>) => Promise<ProfileFormData>;
sections: FormSection[];
set: (data: ProfileFormData, session: SessionContainerInterface, userContext?: Record<string, any>) => Promise<void>;
storageHandlerId: string;
}) => void;
setSectionValues: (input: {
data: ProfileFormData;
session: SessionContainerInterface;
userContext?: Record<string, any>;
}) => Promise<
| {
errors: any;
status: string;
}
| {
errors?: undefined;
status: string;
}>;
};
Defined in: supertokens-plugins/packages/progressive-profiling-nodejs/src/index.ts:31
Type Declaration
DEFAULT_SECTIONS
const DEFAULT_SECTIONS: FormSection[] = [];
Defined in: supertokens-plugins/packages/progressive-profiling-nodejs/src/constants.ts:12
enableDebugLogs
enableDebugLogs: any;
Defined in: supertokens-plugins/packages/progressive-profiling-nodejs/src/logger.ts:4
HANDLE_BASE_PATH
const HANDLE_BASE_PATH: "/plugin/supertokens-plugin-progressive-profiling";
Defined in: supertokens-plugins/packages/progressive-profiling-nodejs/src/constants.ts:10
init
const init: any;
Defined in: supertokens-plugins/packages/progressive-profiling-nodejs/src/plugin.ts:16
logDebugMessage
logDebugMessage: any;
Defined in: supertokens-plugins/packages/progressive-profiling-nodejs/src/logger.ts:4
METADATA_KEY
const METADATA_KEY: "supertokens-plugin-progressive-profiling";
Defined in: supertokens-plugins/packages/progressive-profiling-nodejs/src/constants.ts:7
METADATA_PROFILE_KEY
const METADATA_PROFILE_KEY: "st-profile" = "st-profile";
Defined in: supertokens-plugins/packages/progressive-profiling-nodejs/src/constants.ts:8
PLUGIN_ID
const PLUGIN_ID: "supertokens-plugin-progressive-profiling" = "supertokens-plugin-progressive-profiling";
Defined in: supertokens-plugins/packages/progressive-profiling-nodejs/src/constants.ts:3
PLUGIN_SDK_VERSION
const PLUGIN_SDK_VERSION: string[];
Defined in: supertokens-plugins/packages/progressive-profiling-nodejs/src/constants.ts:5
PLUGIN_VERSION
const PLUGIN_VERSION: "0.0.1" = "0.0.1";
Defined in: supertokens-plugins/packages/progressive-profiling-nodejs/src/constants.ts:4
Functions
getAllSections()
function getAllSections(input: {
session: SessionContainerInterface;
userContext?: Record<string, any>;
}): FormSection & {
storageHandlerId: string;
}[];
Defined in: supertokens-plugins/packages/progressive-profiling-nodejs/src/index.ts:26
Parameters
Returns
FormSection & { storageHandlerId: string; }[]
getSectionValues()
function getSectionValues(input: {
session: SessionContainerInterface;
userContext?: Record<string, any>;
}): Promise<{
data: ProfileFormData;
status: string;
}>;
Defined in: supertokens-plugins/packages/progressive-profiling-nodejs/src/index.ts:10
Parameters
Returns
Promise<{ data: ProfileFormData; status: string; }>
registerSections()
function registerSections(payload: {
get: (session: SessionContainerInterface, userContext?: Record<string, any>) => Promise<ProfileFormData>;
sections: FormSection[];
set: (data: ProfileFormData, session: SessionContainerInterface, userContext?: Record<string, any>) => Promise<void>;
storageHandlerId: string;
}): void;
Defined in: supertokens-plugins/packages/progressive-profiling-nodejs/src/index.ts:22
Parameters
Returns
void
setSectionValues()
function setSectionValues(input: {
data: ProfileFormData;
session: SessionContainerInterface;
userContext?: Record<string, any>;
}): Promise<
| {
errors: any;
status: string;
}
| {
errors?: undefined;
status: string;
}>;
Defined in: supertokens-plugins/packages/progressive-profiling-nodejs/src/index.ts:14
Parameters
Returns
Promise< | { errors: any; status: string; } | { errors?: undefined; status: string; }>