Updated types
This commit is contained in:
parent
55ec8d0db4
commit
ee8dec4596
@ -13,7 +13,9 @@ import { IGameModeResponse } from "@spt/models/eft/game/IGameModeResponse";
|
|||||||
import { IGameStartResponse } from "@spt/models/eft/game/IGameStartResponse";
|
import { IGameStartResponse } from "@spt/models/eft/game/IGameStartResponse";
|
||||||
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
||||||
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
||||||
|
import { ISendSurveyOpinionRequest } from "@spt/models/eft/game/ISendSurveyOpinionRequest";
|
||||||
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
||||||
|
import { ISurveyResponseData } from "@spt/models/eft/game/ISurveyResponseData";
|
||||||
import { IVersionValidateRequestData } from "@spt/models/eft/game/IVersionValidateRequestData";
|
import { IVersionValidateRequestData } from "@spt/models/eft/game/IVersionValidateRequestData";
|
||||||
import { IGetBodyResponseData } from "@spt/models/eft/httpResponse/IGetBodyResponseData";
|
import { IGetBodyResponseData } from "@spt/models/eft/httpResponse/IGetBodyResponseData";
|
||||||
import { INullResponseData } from "@spt/models/eft/httpResponse/INullResponseData";
|
import { INullResponseData } from "@spt/models/eft/httpResponse/INullResponseData";
|
||||||
@ -90,5 +92,15 @@ export declare class GameCallbacks implements OnLoad {
|
|||||||
* Handle /client/survey
|
* Handle /client/survey
|
||||||
* @returns INullResponseData
|
* @returns INullResponseData
|
||||||
*/
|
*/
|
||||||
getSurvey(url: string, request: IEmptyRequestData, sessionID: string): INullResponseData;
|
getSurvey(url: string, request: IEmptyRequestData, sessionId: string): INullResponseData | IGetBodyResponseData<ISurveyResponseData>;
|
||||||
|
/**
|
||||||
|
* Handle client/survey/view
|
||||||
|
* @returns INullResponseData
|
||||||
|
*/
|
||||||
|
getSurveyView(url: string, request: any, sessionId: string): INullResponseData;
|
||||||
|
/**
|
||||||
|
* Handle client/survey/opinion
|
||||||
|
* @returns INullResponseData
|
||||||
|
*/
|
||||||
|
sendSurveyOpinion(url: string, request: ISendSurveyOpinionRequest, sessionId: string): INullResponseData;
|
||||||
}
|
}
|
||||||
|
@ -14,6 +14,7 @@ import { IGameModeRequestData } from "@spt/models/eft/game/IGameModeRequestData"
|
|||||||
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
||||||
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
||||||
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
||||||
|
import { ISurveyResponseData } from "@spt/models/eft/game/ISurveyResponseData";
|
||||||
import { ISptProfile } from "@spt/models/eft/profile/ISptProfile";
|
import { ISptProfile } from "@spt/models/eft/profile/ISptProfile";
|
||||||
import { IBotConfig } from "@spt/models/spt/config/IBotConfig";
|
import { IBotConfig } from "@spt/models/spt/config/IBotConfig";
|
||||||
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
||||||
@ -132,4 +133,5 @@ export declare class GameController {
|
|||||||
*/
|
*/
|
||||||
protected checkForAndRemoveUndefinedDialogs(fullProfile: ISptProfile): void;
|
protected checkForAndRemoveUndefinedDialogs(fullProfile: ISptProfile): void;
|
||||||
protected logProfileDetails(fullProfile: ISptProfile): void;
|
protected logProfileDetails(fullProfile: ISptProfile): void;
|
||||||
|
getSurvey(sessionId: string): ISurveyResponseData;
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,7 @@ import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
|||||||
import { IWeatherConfig } from "@spt/models/spt/config/IWeatherConfig";
|
import { IWeatherConfig } from "@spt/models/spt/config/IWeatherConfig";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { GiftService } from "@spt/services/GiftService";
|
import { GiftService } from "@spt/services/GiftService";
|
||||||
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { MailSendService } from "@spt/services/MailSendService";
|
import { MailSendService } from "@spt/services/MailSendService";
|
||||||
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
@ -14,11 +15,12 @@ export declare class SptDialogueChatBot implements IDialogueChatBot {
|
|||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected mailSendService: MailSendService;
|
protected mailSendService: MailSendService;
|
||||||
protected seasonalEventService: SeasonalEventService;
|
protected seasonalEventService: SeasonalEventService;
|
||||||
|
protected localisationService: LocalisationService;
|
||||||
protected giftService: GiftService;
|
protected giftService: GiftService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected coreConfig: ICoreConfig;
|
protected coreConfig: ICoreConfig;
|
||||||
protected weatherConfig: IWeatherConfig;
|
protected weatherConfig: IWeatherConfig;
|
||||||
constructor(profileHelper: ProfileHelper, randomUtil: RandomUtil, mailSendService: MailSendService, seasonalEventService: SeasonalEventService, giftService: GiftService, configServer: ConfigServer);
|
constructor(profileHelper: ProfileHelper, randomUtil: RandomUtil, mailSendService: MailSendService, seasonalEventService: SeasonalEventService, localisationService: LocalisationService, giftService: GiftService, configServer: ConfigServer);
|
||||||
getChatBot(): IUserDialogInfo;
|
getChatBot(): IUserDialogInfo;
|
||||||
/**
|
/**
|
||||||
* Send responses back to player when they communicate with SPT friend on friends list
|
* Send responses back to player when they communicate with SPT friend on friends list
|
||||||
|
9
TypeScript/10ScopesAndTypes/types/models/eft/game/ISendSurveyOpinionRequest.d.ts
vendored
Normal file
9
TypeScript/10ScopesAndTypes/types/models/eft/game/ISendSurveyOpinionRequest.d.ts
vendored
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
export interface ISendSurveyOpinionRequest {
|
||||||
|
surveyId: number;
|
||||||
|
answers: ISurveyOpinionAnswer[];
|
||||||
|
}
|
||||||
|
export interface ISurveyOpinionAnswer {
|
||||||
|
questionId: number;
|
||||||
|
answerType: string;
|
||||||
|
answers: any;
|
||||||
|
}
|
35
TypeScript/10ScopesAndTypes/types/models/eft/game/ISurveyResponseData.d.ts
vendored
Normal file
35
TypeScript/10ScopesAndTypes/types/models/eft/game/ISurveyResponseData.d.ts
vendored
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
export interface ISurveyResponseData {
|
||||||
|
locale: Record<string, Record<string, string>>;
|
||||||
|
survey: ISurvey;
|
||||||
|
}
|
||||||
|
export interface ISurvey {
|
||||||
|
id: number;
|
||||||
|
welcomePageData: IWelcomePageData;
|
||||||
|
farewellPageData: IFarewellPageData;
|
||||||
|
pages: number[][];
|
||||||
|
questions: ISurveyQuestion[];
|
||||||
|
isNew: boolean;
|
||||||
|
}
|
||||||
|
export interface IWelcomePageData {
|
||||||
|
titleLocaleKey: string;
|
||||||
|
timeLocaleKey: string;
|
||||||
|
descriptionLocaleKey: string;
|
||||||
|
}
|
||||||
|
export interface IFarewellPageData {
|
||||||
|
textLocaleKey: string;
|
||||||
|
}
|
||||||
|
export interface ISurveyQuestion {
|
||||||
|
id: number;
|
||||||
|
sortIndex: number;
|
||||||
|
titleLocaleKey: string;
|
||||||
|
hintLocaleKey: string;
|
||||||
|
answerLimit: number;
|
||||||
|
answerType: string;
|
||||||
|
answers: ISurveyAnswer[];
|
||||||
|
}
|
||||||
|
export interface ISurveyAnswer {
|
||||||
|
id: number;
|
||||||
|
questionId: number;
|
||||||
|
sortIndex: number;
|
||||||
|
localeKey: string;
|
||||||
|
}
|
@ -1,3 +1,4 @@
|
|||||||
|
import { ISurveyResponseData } from "@spt/models/eft/game/ISurveyResponseData";
|
||||||
import { IBaseConfig } from "@spt/models/spt/config/IBaseConfig";
|
import { IBaseConfig } from "@spt/models/spt/config/IBaseConfig";
|
||||||
export interface ICoreConfig extends IBaseConfig {
|
export interface ICoreConfig extends IBaseConfig {
|
||||||
kind: "spt-core";
|
kind: "spt-core";
|
||||||
@ -11,6 +12,7 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
bsgLogging: IBsgLogging;
|
bsgLogging: IBsgLogging;
|
||||||
release: IRelease;
|
release: IRelease;
|
||||||
fixes: IGameFixes;
|
fixes: IGameFixes;
|
||||||
|
survey: ISurveyResponseData;
|
||||||
features: IServerFeatures;
|
features: IServerFeatures;
|
||||||
/** Commit hash build server was created from */
|
/** Commit hash build server was created from */
|
||||||
commit?: string;
|
commit?: string;
|
||||||
|
@ -13,7 +13,9 @@ import { IGameModeResponse } from "@spt/models/eft/game/IGameModeResponse";
|
|||||||
import { IGameStartResponse } from "@spt/models/eft/game/IGameStartResponse";
|
import { IGameStartResponse } from "@spt/models/eft/game/IGameStartResponse";
|
||||||
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
||||||
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
||||||
|
import { ISendSurveyOpinionRequest } from "@spt/models/eft/game/ISendSurveyOpinionRequest";
|
||||||
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
||||||
|
import { ISurveyResponseData } from "@spt/models/eft/game/ISurveyResponseData";
|
||||||
import { IVersionValidateRequestData } from "@spt/models/eft/game/IVersionValidateRequestData";
|
import { IVersionValidateRequestData } from "@spt/models/eft/game/IVersionValidateRequestData";
|
||||||
import { IGetBodyResponseData } from "@spt/models/eft/httpResponse/IGetBodyResponseData";
|
import { IGetBodyResponseData } from "@spt/models/eft/httpResponse/IGetBodyResponseData";
|
||||||
import { INullResponseData } from "@spt/models/eft/httpResponse/INullResponseData";
|
import { INullResponseData } from "@spt/models/eft/httpResponse/INullResponseData";
|
||||||
@ -90,5 +92,15 @@ export declare class GameCallbacks implements OnLoad {
|
|||||||
* Handle /client/survey
|
* Handle /client/survey
|
||||||
* @returns INullResponseData
|
* @returns INullResponseData
|
||||||
*/
|
*/
|
||||||
getSurvey(url: string, request: IEmptyRequestData, sessionID: string): INullResponseData;
|
getSurvey(url: string, request: IEmptyRequestData, sessionId: string): INullResponseData | IGetBodyResponseData<ISurveyResponseData>;
|
||||||
|
/**
|
||||||
|
* Handle client/survey/view
|
||||||
|
* @returns INullResponseData
|
||||||
|
*/
|
||||||
|
getSurveyView(url: string, request: any, sessionId: string): INullResponseData;
|
||||||
|
/**
|
||||||
|
* Handle client/survey/opinion
|
||||||
|
* @returns INullResponseData
|
||||||
|
*/
|
||||||
|
sendSurveyOpinion(url: string, request: ISendSurveyOpinionRequest, sessionId: string): INullResponseData;
|
||||||
}
|
}
|
||||||
|
@ -14,6 +14,7 @@ import { IGameModeRequestData } from "@spt/models/eft/game/IGameModeRequestData"
|
|||||||
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
||||||
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
||||||
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
||||||
|
import { ISurveyResponseData } from "@spt/models/eft/game/ISurveyResponseData";
|
||||||
import { ISptProfile } from "@spt/models/eft/profile/ISptProfile";
|
import { ISptProfile } from "@spt/models/eft/profile/ISptProfile";
|
||||||
import { IBotConfig } from "@spt/models/spt/config/IBotConfig";
|
import { IBotConfig } from "@spt/models/spt/config/IBotConfig";
|
||||||
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
||||||
@ -132,4 +133,5 @@ export declare class GameController {
|
|||||||
*/
|
*/
|
||||||
protected checkForAndRemoveUndefinedDialogs(fullProfile: ISptProfile): void;
|
protected checkForAndRemoveUndefinedDialogs(fullProfile: ISptProfile): void;
|
||||||
protected logProfileDetails(fullProfile: ISptProfile): void;
|
protected logProfileDetails(fullProfile: ISptProfile): void;
|
||||||
|
getSurvey(sessionId: string): ISurveyResponseData;
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,7 @@ import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
|||||||
import { IWeatherConfig } from "@spt/models/spt/config/IWeatherConfig";
|
import { IWeatherConfig } from "@spt/models/spt/config/IWeatherConfig";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { GiftService } from "@spt/services/GiftService";
|
import { GiftService } from "@spt/services/GiftService";
|
||||||
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { MailSendService } from "@spt/services/MailSendService";
|
import { MailSendService } from "@spt/services/MailSendService";
|
||||||
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
@ -14,11 +15,12 @@ export declare class SptDialogueChatBot implements IDialogueChatBot {
|
|||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected mailSendService: MailSendService;
|
protected mailSendService: MailSendService;
|
||||||
protected seasonalEventService: SeasonalEventService;
|
protected seasonalEventService: SeasonalEventService;
|
||||||
|
protected localisationService: LocalisationService;
|
||||||
protected giftService: GiftService;
|
protected giftService: GiftService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected coreConfig: ICoreConfig;
|
protected coreConfig: ICoreConfig;
|
||||||
protected weatherConfig: IWeatherConfig;
|
protected weatherConfig: IWeatherConfig;
|
||||||
constructor(profileHelper: ProfileHelper, randomUtil: RandomUtil, mailSendService: MailSendService, seasonalEventService: SeasonalEventService, giftService: GiftService, configServer: ConfigServer);
|
constructor(profileHelper: ProfileHelper, randomUtil: RandomUtil, mailSendService: MailSendService, seasonalEventService: SeasonalEventService, localisationService: LocalisationService, giftService: GiftService, configServer: ConfigServer);
|
||||||
getChatBot(): IUserDialogInfo;
|
getChatBot(): IUserDialogInfo;
|
||||||
/**
|
/**
|
||||||
* Send responses back to player when they communicate with SPT friend on friends list
|
* Send responses back to player when they communicate with SPT friend on friends list
|
||||||
|
9
TypeScript/11BundleLoadingSample/types/models/eft/game/ISendSurveyOpinionRequest.d.ts
vendored
Normal file
9
TypeScript/11BundleLoadingSample/types/models/eft/game/ISendSurveyOpinionRequest.d.ts
vendored
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
export interface ISendSurveyOpinionRequest {
|
||||||
|
surveyId: number;
|
||||||
|
answers: ISurveyOpinionAnswer[];
|
||||||
|
}
|
||||||
|
export interface ISurveyOpinionAnswer {
|
||||||
|
questionId: number;
|
||||||
|
answerType: string;
|
||||||
|
answers: any;
|
||||||
|
}
|
35
TypeScript/11BundleLoadingSample/types/models/eft/game/ISurveyResponseData.d.ts
vendored
Normal file
35
TypeScript/11BundleLoadingSample/types/models/eft/game/ISurveyResponseData.d.ts
vendored
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
export interface ISurveyResponseData {
|
||||||
|
locale: Record<string, Record<string, string>>;
|
||||||
|
survey: ISurvey;
|
||||||
|
}
|
||||||
|
export interface ISurvey {
|
||||||
|
id: number;
|
||||||
|
welcomePageData: IWelcomePageData;
|
||||||
|
farewellPageData: IFarewellPageData;
|
||||||
|
pages: number[][];
|
||||||
|
questions: ISurveyQuestion[];
|
||||||
|
isNew: boolean;
|
||||||
|
}
|
||||||
|
export interface IWelcomePageData {
|
||||||
|
titleLocaleKey: string;
|
||||||
|
timeLocaleKey: string;
|
||||||
|
descriptionLocaleKey: string;
|
||||||
|
}
|
||||||
|
export interface IFarewellPageData {
|
||||||
|
textLocaleKey: string;
|
||||||
|
}
|
||||||
|
export interface ISurveyQuestion {
|
||||||
|
id: number;
|
||||||
|
sortIndex: number;
|
||||||
|
titleLocaleKey: string;
|
||||||
|
hintLocaleKey: string;
|
||||||
|
answerLimit: number;
|
||||||
|
answerType: string;
|
||||||
|
answers: ISurveyAnswer[];
|
||||||
|
}
|
||||||
|
export interface ISurveyAnswer {
|
||||||
|
id: number;
|
||||||
|
questionId: number;
|
||||||
|
sortIndex: number;
|
||||||
|
localeKey: string;
|
||||||
|
}
|
@ -1,3 +1,4 @@
|
|||||||
|
import { ISurveyResponseData } from "@spt/models/eft/game/ISurveyResponseData";
|
||||||
import { IBaseConfig } from "@spt/models/spt/config/IBaseConfig";
|
import { IBaseConfig } from "@spt/models/spt/config/IBaseConfig";
|
||||||
export interface ICoreConfig extends IBaseConfig {
|
export interface ICoreConfig extends IBaseConfig {
|
||||||
kind: "spt-core";
|
kind: "spt-core";
|
||||||
@ -11,6 +12,7 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
bsgLogging: IBsgLogging;
|
bsgLogging: IBsgLogging;
|
||||||
release: IRelease;
|
release: IRelease;
|
||||||
fixes: IGameFixes;
|
fixes: IGameFixes;
|
||||||
|
survey: ISurveyResponseData;
|
||||||
features: IServerFeatures;
|
features: IServerFeatures;
|
||||||
/** Commit hash build server was created from */
|
/** Commit hash build server was created from */
|
||||||
commit?: string;
|
commit?: string;
|
||||||
|
@ -13,7 +13,9 @@ import { IGameModeResponse } from "@spt/models/eft/game/IGameModeResponse";
|
|||||||
import { IGameStartResponse } from "@spt/models/eft/game/IGameStartResponse";
|
import { IGameStartResponse } from "@spt/models/eft/game/IGameStartResponse";
|
||||||
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
||||||
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
||||||
|
import { ISendSurveyOpinionRequest } from "@spt/models/eft/game/ISendSurveyOpinionRequest";
|
||||||
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
||||||
|
import { ISurveyResponseData } from "@spt/models/eft/game/ISurveyResponseData";
|
||||||
import { IVersionValidateRequestData } from "@spt/models/eft/game/IVersionValidateRequestData";
|
import { IVersionValidateRequestData } from "@spt/models/eft/game/IVersionValidateRequestData";
|
||||||
import { IGetBodyResponseData } from "@spt/models/eft/httpResponse/IGetBodyResponseData";
|
import { IGetBodyResponseData } from "@spt/models/eft/httpResponse/IGetBodyResponseData";
|
||||||
import { INullResponseData } from "@spt/models/eft/httpResponse/INullResponseData";
|
import { INullResponseData } from "@spt/models/eft/httpResponse/INullResponseData";
|
||||||
@ -90,5 +92,15 @@ export declare class GameCallbacks implements OnLoad {
|
|||||||
* Handle /client/survey
|
* Handle /client/survey
|
||||||
* @returns INullResponseData
|
* @returns INullResponseData
|
||||||
*/
|
*/
|
||||||
getSurvey(url: string, request: IEmptyRequestData, sessionID: string): INullResponseData;
|
getSurvey(url: string, request: IEmptyRequestData, sessionId: string): INullResponseData | IGetBodyResponseData<ISurveyResponseData>;
|
||||||
|
/**
|
||||||
|
* Handle client/survey/view
|
||||||
|
* @returns INullResponseData
|
||||||
|
*/
|
||||||
|
getSurveyView(url: string, request: any, sessionId: string): INullResponseData;
|
||||||
|
/**
|
||||||
|
* Handle client/survey/opinion
|
||||||
|
* @returns INullResponseData
|
||||||
|
*/
|
||||||
|
sendSurveyOpinion(url: string, request: ISendSurveyOpinionRequest, sessionId: string): INullResponseData;
|
||||||
}
|
}
|
||||||
|
@ -14,6 +14,7 @@ import { IGameModeRequestData } from "@spt/models/eft/game/IGameModeRequestData"
|
|||||||
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
||||||
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
||||||
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
||||||
|
import { ISurveyResponseData } from "@spt/models/eft/game/ISurveyResponseData";
|
||||||
import { ISptProfile } from "@spt/models/eft/profile/ISptProfile";
|
import { ISptProfile } from "@spt/models/eft/profile/ISptProfile";
|
||||||
import { IBotConfig } from "@spt/models/spt/config/IBotConfig";
|
import { IBotConfig } from "@spt/models/spt/config/IBotConfig";
|
||||||
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
||||||
@ -132,4 +133,5 @@ export declare class GameController {
|
|||||||
*/
|
*/
|
||||||
protected checkForAndRemoveUndefinedDialogs(fullProfile: ISptProfile): void;
|
protected checkForAndRemoveUndefinedDialogs(fullProfile: ISptProfile): void;
|
||||||
protected logProfileDetails(fullProfile: ISptProfile): void;
|
protected logProfileDetails(fullProfile: ISptProfile): void;
|
||||||
|
getSurvey(sessionId: string): ISurveyResponseData;
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,7 @@ import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
|||||||
import { IWeatherConfig } from "@spt/models/spt/config/IWeatherConfig";
|
import { IWeatherConfig } from "@spt/models/spt/config/IWeatherConfig";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { GiftService } from "@spt/services/GiftService";
|
import { GiftService } from "@spt/services/GiftService";
|
||||||
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { MailSendService } from "@spt/services/MailSendService";
|
import { MailSendService } from "@spt/services/MailSendService";
|
||||||
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
@ -14,11 +15,12 @@ export declare class SptDialogueChatBot implements IDialogueChatBot {
|
|||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected mailSendService: MailSendService;
|
protected mailSendService: MailSendService;
|
||||||
protected seasonalEventService: SeasonalEventService;
|
protected seasonalEventService: SeasonalEventService;
|
||||||
|
protected localisationService: LocalisationService;
|
||||||
protected giftService: GiftService;
|
protected giftService: GiftService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected coreConfig: ICoreConfig;
|
protected coreConfig: ICoreConfig;
|
||||||
protected weatherConfig: IWeatherConfig;
|
protected weatherConfig: IWeatherConfig;
|
||||||
constructor(profileHelper: ProfileHelper, randomUtil: RandomUtil, mailSendService: MailSendService, seasonalEventService: SeasonalEventService, giftService: GiftService, configServer: ConfigServer);
|
constructor(profileHelper: ProfileHelper, randomUtil: RandomUtil, mailSendService: MailSendService, seasonalEventService: SeasonalEventService, localisationService: LocalisationService, giftService: GiftService, configServer: ConfigServer);
|
||||||
getChatBot(): IUserDialogInfo;
|
getChatBot(): IUserDialogInfo;
|
||||||
/**
|
/**
|
||||||
* Send responses back to player when they communicate with SPT friend on friends list
|
* Send responses back to player when they communicate with SPT friend on friends list
|
||||||
|
9
TypeScript/12ClassExtensionOverride/types/models/eft/game/ISendSurveyOpinionRequest.d.ts
vendored
Normal file
9
TypeScript/12ClassExtensionOverride/types/models/eft/game/ISendSurveyOpinionRequest.d.ts
vendored
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
export interface ISendSurveyOpinionRequest {
|
||||||
|
surveyId: number;
|
||||||
|
answers: ISurveyOpinionAnswer[];
|
||||||
|
}
|
||||||
|
export interface ISurveyOpinionAnswer {
|
||||||
|
questionId: number;
|
||||||
|
answerType: string;
|
||||||
|
answers: any;
|
||||||
|
}
|
35
TypeScript/12ClassExtensionOverride/types/models/eft/game/ISurveyResponseData.d.ts
vendored
Normal file
35
TypeScript/12ClassExtensionOverride/types/models/eft/game/ISurveyResponseData.d.ts
vendored
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
export interface ISurveyResponseData {
|
||||||
|
locale: Record<string, Record<string, string>>;
|
||||||
|
survey: ISurvey;
|
||||||
|
}
|
||||||
|
export interface ISurvey {
|
||||||
|
id: number;
|
||||||
|
welcomePageData: IWelcomePageData;
|
||||||
|
farewellPageData: IFarewellPageData;
|
||||||
|
pages: number[][];
|
||||||
|
questions: ISurveyQuestion[];
|
||||||
|
isNew: boolean;
|
||||||
|
}
|
||||||
|
export interface IWelcomePageData {
|
||||||
|
titleLocaleKey: string;
|
||||||
|
timeLocaleKey: string;
|
||||||
|
descriptionLocaleKey: string;
|
||||||
|
}
|
||||||
|
export interface IFarewellPageData {
|
||||||
|
textLocaleKey: string;
|
||||||
|
}
|
||||||
|
export interface ISurveyQuestion {
|
||||||
|
id: number;
|
||||||
|
sortIndex: number;
|
||||||
|
titleLocaleKey: string;
|
||||||
|
hintLocaleKey: string;
|
||||||
|
answerLimit: number;
|
||||||
|
answerType: string;
|
||||||
|
answers: ISurveyAnswer[];
|
||||||
|
}
|
||||||
|
export interface ISurveyAnswer {
|
||||||
|
id: number;
|
||||||
|
questionId: number;
|
||||||
|
sortIndex: number;
|
||||||
|
localeKey: string;
|
||||||
|
}
|
@ -1,3 +1,4 @@
|
|||||||
|
import { ISurveyResponseData } from "@spt/models/eft/game/ISurveyResponseData";
|
||||||
import { IBaseConfig } from "@spt/models/spt/config/IBaseConfig";
|
import { IBaseConfig } from "@spt/models/spt/config/IBaseConfig";
|
||||||
export interface ICoreConfig extends IBaseConfig {
|
export interface ICoreConfig extends IBaseConfig {
|
||||||
kind: "spt-core";
|
kind: "spt-core";
|
||||||
@ -11,6 +12,7 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
bsgLogging: IBsgLogging;
|
bsgLogging: IBsgLogging;
|
||||||
release: IRelease;
|
release: IRelease;
|
||||||
fixes: IGameFixes;
|
fixes: IGameFixes;
|
||||||
|
survey: ISurveyResponseData;
|
||||||
features: IServerFeatures;
|
features: IServerFeatures;
|
||||||
/** Commit hash build server was created from */
|
/** Commit hash build server was created from */
|
||||||
commit?: string;
|
commit?: string;
|
||||||
|
@ -13,7 +13,9 @@ import { IGameModeResponse } from "@spt/models/eft/game/IGameModeResponse";
|
|||||||
import { IGameStartResponse } from "@spt/models/eft/game/IGameStartResponse";
|
import { IGameStartResponse } from "@spt/models/eft/game/IGameStartResponse";
|
||||||
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
||||||
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
||||||
|
import { ISendSurveyOpinionRequest } from "@spt/models/eft/game/ISendSurveyOpinionRequest";
|
||||||
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
||||||
|
import { ISurveyResponseData } from "@spt/models/eft/game/ISurveyResponseData";
|
||||||
import { IVersionValidateRequestData } from "@spt/models/eft/game/IVersionValidateRequestData";
|
import { IVersionValidateRequestData } from "@spt/models/eft/game/IVersionValidateRequestData";
|
||||||
import { IGetBodyResponseData } from "@spt/models/eft/httpResponse/IGetBodyResponseData";
|
import { IGetBodyResponseData } from "@spt/models/eft/httpResponse/IGetBodyResponseData";
|
||||||
import { INullResponseData } from "@spt/models/eft/httpResponse/INullResponseData";
|
import { INullResponseData } from "@spt/models/eft/httpResponse/INullResponseData";
|
||||||
@ -90,5 +92,15 @@ export declare class GameCallbacks implements OnLoad {
|
|||||||
* Handle /client/survey
|
* Handle /client/survey
|
||||||
* @returns INullResponseData
|
* @returns INullResponseData
|
||||||
*/
|
*/
|
||||||
getSurvey(url: string, request: IEmptyRequestData, sessionID: string): INullResponseData;
|
getSurvey(url: string, request: IEmptyRequestData, sessionId: string): INullResponseData | IGetBodyResponseData<ISurveyResponseData>;
|
||||||
|
/**
|
||||||
|
* Handle client/survey/view
|
||||||
|
* @returns INullResponseData
|
||||||
|
*/
|
||||||
|
getSurveyView(url: string, request: any, sessionId: string): INullResponseData;
|
||||||
|
/**
|
||||||
|
* Handle client/survey/opinion
|
||||||
|
* @returns INullResponseData
|
||||||
|
*/
|
||||||
|
sendSurveyOpinion(url: string, request: ISendSurveyOpinionRequest, sessionId: string): INullResponseData;
|
||||||
}
|
}
|
||||||
|
@ -14,6 +14,7 @@ import { IGameModeRequestData } from "@spt/models/eft/game/IGameModeRequestData"
|
|||||||
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
||||||
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
||||||
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
||||||
|
import { ISurveyResponseData } from "@spt/models/eft/game/ISurveyResponseData";
|
||||||
import { ISptProfile } from "@spt/models/eft/profile/ISptProfile";
|
import { ISptProfile } from "@spt/models/eft/profile/ISptProfile";
|
||||||
import { IBotConfig } from "@spt/models/spt/config/IBotConfig";
|
import { IBotConfig } from "@spt/models/spt/config/IBotConfig";
|
||||||
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
||||||
@ -132,4 +133,5 @@ export declare class GameController {
|
|||||||
*/
|
*/
|
||||||
protected checkForAndRemoveUndefinedDialogs(fullProfile: ISptProfile): void;
|
protected checkForAndRemoveUndefinedDialogs(fullProfile: ISptProfile): void;
|
||||||
protected logProfileDetails(fullProfile: ISptProfile): void;
|
protected logProfileDetails(fullProfile: ISptProfile): void;
|
||||||
|
getSurvey(sessionId: string): ISurveyResponseData;
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,7 @@ import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
|||||||
import { IWeatherConfig } from "@spt/models/spt/config/IWeatherConfig";
|
import { IWeatherConfig } from "@spt/models/spt/config/IWeatherConfig";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { GiftService } from "@spt/services/GiftService";
|
import { GiftService } from "@spt/services/GiftService";
|
||||||
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { MailSendService } from "@spt/services/MailSendService";
|
import { MailSendService } from "@spt/services/MailSendService";
|
||||||
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
@ -14,11 +15,12 @@ export declare class SptDialogueChatBot implements IDialogueChatBot {
|
|||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected mailSendService: MailSendService;
|
protected mailSendService: MailSendService;
|
||||||
protected seasonalEventService: SeasonalEventService;
|
protected seasonalEventService: SeasonalEventService;
|
||||||
|
protected localisationService: LocalisationService;
|
||||||
protected giftService: GiftService;
|
protected giftService: GiftService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected coreConfig: ICoreConfig;
|
protected coreConfig: ICoreConfig;
|
||||||
protected weatherConfig: IWeatherConfig;
|
protected weatherConfig: IWeatherConfig;
|
||||||
constructor(profileHelper: ProfileHelper, randomUtil: RandomUtil, mailSendService: MailSendService, seasonalEventService: SeasonalEventService, giftService: GiftService, configServer: ConfigServer);
|
constructor(profileHelper: ProfileHelper, randomUtil: RandomUtil, mailSendService: MailSendService, seasonalEventService: SeasonalEventService, localisationService: LocalisationService, giftService: GiftService, configServer: ConfigServer);
|
||||||
getChatBot(): IUserDialogInfo;
|
getChatBot(): IUserDialogInfo;
|
||||||
/**
|
/**
|
||||||
* Send responses back to player when they communicate with SPT friend on friends list
|
* Send responses back to player when they communicate with SPT friend on friends list
|
||||||
|
9
TypeScript/13.1AddTraderWithAssortJSON/types/models/eft/game/ISendSurveyOpinionRequest.d.ts
vendored
Normal file
9
TypeScript/13.1AddTraderWithAssortJSON/types/models/eft/game/ISendSurveyOpinionRequest.d.ts
vendored
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
export interface ISendSurveyOpinionRequest {
|
||||||
|
surveyId: number;
|
||||||
|
answers: ISurveyOpinionAnswer[];
|
||||||
|
}
|
||||||
|
export interface ISurveyOpinionAnswer {
|
||||||
|
questionId: number;
|
||||||
|
answerType: string;
|
||||||
|
answers: any;
|
||||||
|
}
|
35
TypeScript/13.1AddTraderWithAssortJSON/types/models/eft/game/ISurveyResponseData.d.ts
vendored
Normal file
35
TypeScript/13.1AddTraderWithAssortJSON/types/models/eft/game/ISurveyResponseData.d.ts
vendored
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
export interface ISurveyResponseData {
|
||||||
|
locale: Record<string, Record<string, string>>;
|
||||||
|
survey: ISurvey;
|
||||||
|
}
|
||||||
|
export interface ISurvey {
|
||||||
|
id: number;
|
||||||
|
welcomePageData: IWelcomePageData;
|
||||||
|
farewellPageData: IFarewellPageData;
|
||||||
|
pages: number[][];
|
||||||
|
questions: ISurveyQuestion[];
|
||||||
|
isNew: boolean;
|
||||||
|
}
|
||||||
|
export interface IWelcomePageData {
|
||||||
|
titleLocaleKey: string;
|
||||||
|
timeLocaleKey: string;
|
||||||
|
descriptionLocaleKey: string;
|
||||||
|
}
|
||||||
|
export interface IFarewellPageData {
|
||||||
|
textLocaleKey: string;
|
||||||
|
}
|
||||||
|
export interface ISurveyQuestion {
|
||||||
|
id: number;
|
||||||
|
sortIndex: number;
|
||||||
|
titleLocaleKey: string;
|
||||||
|
hintLocaleKey: string;
|
||||||
|
answerLimit: number;
|
||||||
|
answerType: string;
|
||||||
|
answers: ISurveyAnswer[];
|
||||||
|
}
|
||||||
|
export interface ISurveyAnswer {
|
||||||
|
id: number;
|
||||||
|
questionId: number;
|
||||||
|
sortIndex: number;
|
||||||
|
localeKey: string;
|
||||||
|
}
|
@ -1,3 +1,4 @@
|
|||||||
|
import { ISurveyResponseData } from "@spt/models/eft/game/ISurveyResponseData";
|
||||||
import { IBaseConfig } from "@spt/models/spt/config/IBaseConfig";
|
import { IBaseConfig } from "@spt/models/spt/config/IBaseConfig";
|
||||||
export interface ICoreConfig extends IBaseConfig {
|
export interface ICoreConfig extends IBaseConfig {
|
||||||
kind: "spt-core";
|
kind: "spt-core";
|
||||||
@ -11,6 +12,7 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
bsgLogging: IBsgLogging;
|
bsgLogging: IBsgLogging;
|
||||||
release: IRelease;
|
release: IRelease;
|
||||||
fixes: IGameFixes;
|
fixes: IGameFixes;
|
||||||
|
survey: ISurveyResponseData;
|
||||||
features: IServerFeatures;
|
features: IServerFeatures;
|
||||||
/** Commit hash build server was created from */
|
/** Commit hash build server was created from */
|
||||||
commit?: string;
|
commit?: string;
|
||||||
|
@ -13,7 +13,9 @@ import { IGameModeResponse } from "@spt/models/eft/game/IGameModeResponse";
|
|||||||
import { IGameStartResponse } from "@spt/models/eft/game/IGameStartResponse";
|
import { IGameStartResponse } from "@spt/models/eft/game/IGameStartResponse";
|
||||||
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
||||||
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
||||||
|
import { ISendSurveyOpinionRequest } from "@spt/models/eft/game/ISendSurveyOpinionRequest";
|
||||||
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
||||||
|
import { ISurveyResponseData } from "@spt/models/eft/game/ISurveyResponseData";
|
||||||
import { IVersionValidateRequestData } from "@spt/models/eft/game/IVersionValidateRequestData";
|
import { IVersionValidateRequestData } from "@spt/models/eft/game/IVersionValidateRequestData";
|
||||||
import { IGetBodyResponseData } from "@spt/models/eft/httpResponse/IGetBodyResponseData";
|
import { IGetBodyResponseData } from "@spt/models/eft/httpResponse/IGetBodyResponseData";
|
||||||
import { INullResponseData } from "@spt/models/eft/httpResponse/INullResponseData";
|
import { INullResponseData } from "@spt/models/eft/httpResponse/INullResponseData";
|
||||||
@ -90,5 +92,15 @@ export declare class GameCallbacks implements OnLoad {
|
|||||||
* Handle /client/survey
|
* Handle /client/survey
|
||||||
* @returns INullResponseData
|
* @returns INullResponseData
|
||||||
*/
|
*/
|
||||||
getSurvey(url: string, request: IEmptyRequestData, sessionID: string): INullResponseData;
|
getSurvey(url: string, request: IEmptyRequestData, sessionId: string): INullResponseData | IGetBodyResponseData<ISurveyResponseData>;
|
||||||
|
/**
|
||||||
|
* Handle client/survey/view
|
||||||
|
* @returns INullResponseData
|
||||||
|
*/
|
||||||
|
getSurveyView(url: string, request: any, sessionId: string): INullResponseData;
|
||||||
|
/**
|
||||||
|
* Handle client/survey/opinion
|
||||||
|
* @returns INullResponseData
|
||||||
|
*/
|
||||||
|
sendSurveyOpinion(url: string, request: ISendSurveyOpinionRequest, sessionId: string): INullResponseData;
|
||||||
}
|
}
|
||||||
|
@ -14,6 +14,7 @@ import { IGameModeRequestData } from "@spt/models/eft/game/IGameModeRequestData"
|
|||||||
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
||||||
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
||||||
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
||||||
|
import { ISurveyResponseData } from "@spt/models/eft/game/ISurveyResponseData";
|
||||||
import { ISptProfile } from "@spt/models/eft/profile/ISptProfile";
|
import { ISptProfile } from "@spt/models/eft/profile/ISptProfile";
|
||||||
import { IBotConfig } from "@spt/models/spt/config/IBotConfig";
|
import { IBotConfig } from "@spt/models/spt/config/IBotConfig";
|
||||||
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
||||||
@ -132,4 +133,5 @@ export declare class GameController {
|
|||||||
*/
|
*/
|
||||||
protected checkForAndRemoveUndefinedDialogs(fullProfile: ISptProfile): void;
|
protected checkForAndRemoveUndefinedDialogs(fullProfile: ISptProfile): void;
|
||||||
protected logProfileDetails(fullProfile: ISptProfile): void;
|
protected logProfileDetails(fullProfile: ISptProfile): void;
|
||||||
|
getSurvey(sessionId: string): ISurveyResponseData;
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,7 @@ import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
|||||||
import { IWeatherConfig } from "@spt/models/spt/config/IWeatherConfig";
|
import { IWeatherConfig } from "@spt/models/spt/config/IWeatherConfig";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { GiftService } from "@spt/services/GiftService";
|
import { GiftService } from "@spt/services/GiftService";
|
||||||
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { MailSendService } from "@spt/services/MailSendService";
|
import { MailSendService } from "@spt/services/MailSendService";
|
||||||
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
@ -14,11 +15,12 @@ export declare class SptDialogueChatBot implements IDialogueChatBot {
|
|||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected mailSendService: MailSendService;
|
protected mailSendService: MailSendService;
|
||||||
protected seasonalEventService: SeasonalEventService;
|
protected seasonalEventService: SeasonalEventService;
|
||||||
|
protected localisationService: LocalisationService;
|
||||||
protected giftService: GiftService;
|
protected giftService: GiftService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected coreConfig: ICoreConfig;
|
protected coreConfig: ICoreConfig;
|
||||||
protected weatherConfig: IWeatherConfig;
|
protected weatherConfig: IWeatherConfig;
|
||||||
constructor(profileHelper: ProfileHelper, randomUtil: RandomUtil, mailSendService: MailSendService, seasonalEventService: SeasonalEventService, giftService: GiftService, configServer: ConfigServer);
|
constructor(profileHelper: ProfileHelper, randomUtil: RandomUtil, mailSendService: MailSendService, seasonalEventService: SeasonalEventService, localisationService: LocalisationService, giftService: GiftService, configServer: ConfigServer);
|
||||||
getChatBot(): IUserDialogInfo;
|
getChatBot(): IUserDialogInfo;
|
||||||
/**
|
/**
|
||||||
* Send responses back to player when they communicate with SPT friend on friends list
|
* Send responses back to player when they communicate with SPT friend on friends list
|
||||||
|
9
TypeScript/13AddTrader/types/models/eft/game/ISendSurveyOpinionRequest.d.ts
vendored
Normal file
9
TypeScript/13AddTrader/types/models/eft/game/ISendSurveyOpinionRequest.d.ts
vendored
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
export interface ISendSurveyOpinionRequest {
|
||||||
|
surveyId: number;
|
||||||
|
answers: ISurveyOpinionAnswer[];
|
||||||
|
}
|
||||||
|
export interface ISurveyOpinionAnswer {
|
||||||
|
questionId: number;
|
||||||
|
answerType: string;
|
||||||
|
answers: any;
|
||||||
|
}
|
35
TypeScript/13AddTrader/types/models/eft/game/ISurveyResponseData.d.ts
vendored
Normal file
35
TypeScript/13AddTrader/types/models/eft/game/ISurveyResponseData.d.ts
vendored
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
export interface ISurveyResponseData {
|
||||||
|
locale: Record<string, Record<string, string>>;
|
||||||
|
survey: ISurvey;
|
||||||
|
}
|
||||||
|
export interface ISurvey {
|
||||||
|
id: number;
|
||||||
|
welcomePageData: IWelcomePageData;
|
||||||
|
farewellPageData: IFarewellPageData;
|
||||||
|
pages: number[][];
|
||||||
|
questions: ISurveyQuestion[];
|
||||||
|
isNew: boolean;
|
||||||
|
}
|
||||||
|
export interface IWelcomePageData {
|
||||||
|
titleLocaleKey: string;
|
||||||
|
timeLocaleKey: string;
|
||||||
|
descriptionLocaleKey: string;
|
||||||
|
}
|
||||||
|
export interface IFarewellPageData {
|
||||||
|
textLocaleKey: string;
|
||||||
|
}
|
||||||
|
export interface ISurveyQuestion {
|
||||||
|
id: number;
|
||||||
|
sortIndex: number;
|
||||||
|
titleLocaleKey: string;
|
||||||
|
hintLocaleKey: string;
|
||||||
|
answerLimit: number;
|
||||||
|
answerType: string;
|
||||||
|
answers: ISurveyAnswer[];
|
||||||
|
}
|
||||||
|
export interface ISurveyAnswer {
|
||||||
|
id: number;
|
||||||
|
questionId: number;
|
||||||
|
sortIndex: number;
|
||||||
|
localeKey: string;
|
||||||
|
}
|
@ -1,3 +1,4 @@
|
|||||||
|
import { ISurveyResponseData } from "@spt/models/eft/game/ISurveyResponseData";
|
||||||
import { IBaseConfig } from "@spt/models/spt/config/IBaseConfig";
|
import { IBaseConfig } from "@spt/models/spt/config/IBaseConfig";
|
||||||
export interface ICoreConfig extends IBaseConfig {
|
export interface ICoreConfig extends IBaseConfig {
|
||||||
kind: "spt-core";
|
kind: "spt-core";
|
||||||
@ -11,6 +12,7 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
bsgLogging: IBsgLogging;
|
bsgLogging: IBsgLogging;
|
||||||
release: IRelease;
|
release: IRelease;
|
||||||
fixes: IGameFixes;
|
fixes: IGameFixes;
|
||||||
|
survey: ISurveyResponseData;
|
||||||
features: IServerFeatures;
|
features: IServerFeatures;
|
||||||
/** Commit hash build server was created from */
|
/** Commit hash build server was created from */
|
||||||
commit?: string;
|
commit?: string;
|
||||||
|
@ -13,7 +13,9 @@ import { IGameModeResponse } from "@spt/models/eft/game/IGameModeResponse";
|
|||||||
import { IGameStartResponse } from "@spt/models/eft/game/IGameStartResponse";
|
import { IGameStartResponse } from "@spt/models/eft/game/IGameStartResponse";
|
||||||
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
||||||
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
||||||
|
import { ISendSurveyOpinionRequest } from "@spt/models/eft/game/ISendSurveyOpinionRequest";
|
||||||
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
||||||
|
import { ISurveyResponseData } from "@spt/models/eft/game/ISurveyResponseData";
|
||||||
import { IVersionValidateRequestData } from "@spt/models/eft/game/IVersionValidateRequestData";
|
import { IVersionValidateRequestData } from "@spt/models/eft/game/IVersionValidateRequestData";
|
||||||
import { IGetBodyResponseData } from "@spt/models/eft/httpResponse/IGetBodyResponseData";
|
import { IGetBodyResponseData } from "@spt/models/eft/httpResponse/IGetBodyResponseData";
|
||||||
import { INullResponseData } from "@spt/models/eft/httpResponse/INullResponseData";
|
import { INullResponseData } from "@spt/models/eft/httpResponse/INullResponseData";
|
||||||
@ -90,5 +92,15 @@ export declare class GameCallbacks implements OnLoad {
|
|||||||
* Handle /client/survey
|
* Handle /client/survey
|
||||||
* @returns INullResponseData
|
* @returns INullResponseData
|
||||||
*/
|
*/
|
||||||
getSurvey(url: string, request: IEmptyRequestData, sessionID: string): INullResponseData;
|
getSurvey(url: string, request: IEmptyRequestData, sessionId: string): INullResponseData | IGetBodyResponseData<ISurveyResponseData>;
|
||||||
|
/**
|
||||||
|
* Handle client/survey/view
|
||||||
|
* @returns INullResponseData
|
||||||
|
*/
|
||||||
|
getSurveyView(url: string, request: any, sessionId: string): INullResponseData;
|
||||||
|
/**
|
||||||
|
* Handle client/survey/opinion
|
||||||
|
* @returns INullResponseData
|
||||||
|
*/
|
||||||
|
sendSurveyOpinion(url: string, request: ISendSurveyOpinionRequest, sessionId: string): INullResponseData;
|
||||||
}
|
}
|
||||||
|
@ -14,6 +14,7 @@ import { IGameModeRequestData } from "@spt/models/eft/game/IGameModeRequestData"
|
|||||||
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
||||||
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
||||||
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
||||||
|
import { ISurveyResponseData } from "@spt/models/eft/game/ISurveyResponseData";
|
||||||
import { ISptProfile } from "@spt/models/eft/profile/ISptProfile";
|
import { ISptProfile } from "@spt/models/eft/profile/ISptProfile";
|
||||||
import { IBotConfig } from "@spt/models/spt/config/IBotConfig";
|
import { IBotConfig } from "@spt/models/spt/config/IBotConfig";
|
||||||
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
||||||
@ -132,4 +133,5 @@ export declare class GameController {
|
|||||||
*/
|
*/
|
||||||
protected checkForAndRemoveUndefinedDialogs(fullProfile: ISptProfile): void;
|
protected checkForAndRemoveUndefinedDialogs(fullProfile: ISptProfile): void;
|
||||||
protected logProfileDetails(fullProfile: ISptProfile): void;
|
protected logProfileDetails(fullProfile: ISptProfile): void;
|
||||||
|
getSurvey(sessionId: string): ISurveyResponseData;
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,7 @@ import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
|||||||
import { IWeatherConfig } from "@spt/models/spt/config/IWeatherConfig";
|
import { IWeatherConfig } from "@spt/models/spt/config/IWeatherConfig";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { GiftService } from "@spt/services/GiftService";
|
import { GiftService } from "@spt/services/GiftService";
|
||||||
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { MailSendService } from "@spt/services/MailSendService";
|
import { MailSendService } from "@spt/services/MailSendService";
|
||||||
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
@ -14,11 +15,12 @@ export declare class SptDialogueChatBot implements IDialogueChatBot {
|
|||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected mailSendService: MailSendService;
|
protected mailSendService: MailSendService;
|
||||||
protected seasonalEventService: SeasonalEventService;
|
protected seasonalEventService: SeasonalEventService;
|
||||||
|
protected localisationService: LocalisationService;
|
||||||
protected giftService: GiftService;
|
protected giftService: GiftService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected coreConfig: ICoreConfig;
|
protected coreConfig: ICoreConfig;
|
||||||
protected weatherConfig: IWeatherConfig;
|
protected weatherConfig: IWeatherConfig;
|
||||||
constructor(profileHelper: ProfileHelper, randomUtil: RandomUtil, mailSendService: MailSendService, seasonalEventService: SeasonalEventService, giftService: GiftService, configServer: ConfigServer);
|
constructor(profileHelper: ProfileHelper, randomUtil: RandomUtil, mailSendService: MailSendService, seasonalEventService: SeasonalEventService, localisationService: LocalisationService, giftService: GiftService, configServer: ConfigServer);
|
||||||
getChatBot(): IUserDialogInfo;
|
getChatBot(): IUserDialogInfo;
|
||||||
/**
|
/**
|
||||||
* Send responses back to player when they communicate with SPT friend on friends list
|
* Send responses back to player when they communicate with SPT friend on friends list
|
||||||
|
9
TypeScript/14AfterDBLoadHook/types/models/eft/game/ISendSurveyOpinionRequest.d.ts
vendored
Normal file
9
TypeScript/14AfterDBLoadHook/types/models/eft/game/ISendSurveyOpinionRequest.d.ts
vendored
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
export interface ISendSurveyOpinionRequest {
|
||||||
|
surveyId: number;
|
||||||
|
answers: ISurveyOpinionAnswer[];
|
||||||
|
}
|
||||||
|
export interface ISurveyOpinionAnswer {
|
||||||
|
questionId: number;
|
||||||
|
answerType: string;
|
||||||
|
answers: any;
|
||||||
|
}
|
35
TypeScript/14AfterDBLoadHook/types/models/eft/game/ISurveyResponseData.d.ts
vendored
Normal file
35
TypeScript/14AfterDBLoadHook/types/models/eft/game/ISurveyResponseData.d.ts
vendored
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
export interface ISurveyResponseData {
|
||||||
|
locale: Record<string, Record<string, string>>;
|
||||||
|
survey: ISurvey;
|
||||||
|
}
|
||||||
|
export interface ISurvey {
|
||||||
|
id: number;
|
||||||
|
welcomePageData: IWelcomePageData;
|
||||||
|
farewellPageData: IFarewellPageData;
|
||||||
|
pages: number[][];
|
||||||
|
questions: ISurveyQuestion[];
|
||||||
|
isNew: boolean;
|
||||||
|
}
|
||||||
|
export interface IWelcomePageData {
|
||||||
|
titleLocaleKey: string;
|
||||||
|
timeLocaleKey: string;
|
||||||
|
descriptionLocaleKey: string;
|
||||||
|
}
|
||||||
|
export interface IFarewellPageData {
|
||||||
|
textLocaleKey: string;
|
||||||
|
}
|
||||||
|
export interface ISurveyQuestion {
|
||||||
|
id: number;
|
||||||
|
sortIndex: number;
|
||||||
|
titleLocaleKey: string;
|
||||||
|
hintLocaleKey: string;
|
||||||
|
answerLimit: number;
|
||||||
|
answerType: string;
|
||||||
|
answers: ISurveyAnswer[];
|
||||||
|
}
|
||||||
|
export interface ISurveyAnswer {
|
||||||
|
id: number;
|
||||||
|
questionId: number;
|
||||||
|
sortIndex: number;
|
||||||
|
localeKey: string;
|
||||||
|
}
|
@ -1,3 +1,4 @@
|
|||||||
|
import { ISurveyResponseData } from "@spt/models/eft/game/ISurveyResponseData";
|
||||||
import { IBaseConfig } from "@spt/models/spt/config/IBaseConfig";
|
import { IBaseConfig } from "@spt/models/spt/config/IBaseConfig";
|
||||||
export interface ICoreConfig extends IBaseConfig {
|
export interface ICoreConfig extends IBaseConfig {
|
||||||
kind: "spt-core";
|
kind: "spt-core";
|
||||||
@ -11,6 +12,7 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
bsgLogging: IBsgLogging;
|
bsgLogging: IBsgLogging;
|
||||||
release: IRelease;
|
release: IRelease;
|
||||||
fixes: IGameFixes;
|
fixes: IGameFixes;
|
||||||
|
survey: ISurveyResponseData;
|
||||||
features: IServerFeatures;
|
features: IServerFeatures;
|
||||||
/** Commit hash build server was created from */
|
/** Commit hash build server was created from */
|
||||||
commit?: string;
|
commit?: string;
|
||||||
|
@ -13,7 +13,9 @@ import { IGameModeResponse } from "@spt/models/eft/game/IGameModeResponse";
|
|||||||
import { IGameStartResponse } from "@spt/models/eft/game/IGameStartResponse";
|
import { IGameStartResponse } from "@spt/models/eft/game/IGameStartResponse";
|
||||||
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
||||||
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
||||||
|
import { ISendSurveyOpinionRequest } from "@spt/models/eft/game/ISendSurveyOpinionRequest";
|
||||||
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
||||||
|
import { ISurveyResponseData } from "@spt/models/eft/game/ISurveyResponseData";
|
||||||
import { IVersionValidateRequestData } from "@spt/models/eft/game/IVersionValidateRequestData";
|
import { IVersionValidateRequestData } from "@spt/models/eft/game/IVersionValidateRequestData";
|
||||||
import { IGetBodyResponseData } from "@spt/models/eft/httpResponse/IGetBodyResponseData";
|
import { IGetBodyResponseData } from "@spt/models/eft/httpResponse/IGetBodyResponseData";
|
||||||
import { INullResponseData } from "@spt/models/eft/httpResponse/INullResponseData";
|
import { INullResponseData } from "@spt/models/eft/httpResponse/INullResponseData";
|
||||||
@ -90,5 +92,15 @@ export declare class GameCallbacks implements OnLoad {
|
|||||||
* Handle /client/survey
|
* Handle /client/survey
|
||||||
* @returns INullResponseData
|
* @returns INullResponseData
|
||||||
*/
|
*/
|
||||||
getSurvey(url: string, request: IEmptyRequestData, sessionID: string): INullResponseData;
|
getSurvey(url: string, request: IEmptyRequestData, sessionId: string): INullResponseData | IGetBodyResponseData<ISurveyResponseData>;
|
||||||
|
/**
|
||||||
|
* Handle client/survey/view
|
||||||
|
* @returns INullResponseData
|
||||||
|
*/
|
||||||
|
getSurveyView(url: string, request: any, sessionId: string): INullResponseData;
|
||||||
|
/**
|
||||||
|
* Handle client/survey/opinion
|
||||||
|
* @returns INullResponseData
|
||||||
|
*/
|
||||||
|
sendSurveyOpinion(url: string, request: ISendSurveyOpinionRequest, sessionId: string): INullResponseData;
|
||||||
}
|
}
|
||||||
|
@ -14,6 +14,7 @@ import { IGameModeRequestData } from "@spt/models/eft/game/IGameModeRequestData"
|
|||||||
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
||||||
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
||||||
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
||||||
|
import { ISurveyResponseData } from "@spt/models/eft/game/ISurveyResponseData";
|
||||||
import { ISptProfile } from "@spt/models/eft/profile/ISptProfile";
|
import { ISptProfile } from "@spt/models/eft/profile/ISptProfile";
|
||||||
import { IBotConfig } from "@spt/models/spt/config/IBotConfig";
|
import { IBotConfig } from "@spt/models/spt/config/IBotConfig";
|
||||||
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
||||||
@ -132,4 +133,5 @@ export declare class GameController {
|
|||||||
*/
|
*/
|
||||||
protected checkForAndRemoveUndefinedDialogs(fullProfile: ISptProfile): void;
|
protected checkForAndRemoveUndefinedDialogs(fullProfile: ISptProfile): void;
|
||||||
protected logProfileDetails(fullProfile: ISptProfile): void;
|
protected logProfileDetails(fullProfile: ISptProfile): void;
|
||||||
|
getSurvey(sessionId: string): ISurveyResponseData;
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,7 @@ import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
|||||||
import { IWeatherConfig } from "@spt/models/spt/config/IWeatherConfig";
|
import { IWeatherConfig } from "@spt/models/spt/config/IWeatherConfig";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { GiftService } from "@spt/services/GiftService";
|
import { GiftService } from "@spt/services/GiftService";
|
||||||
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { MailSendService } from "@spt/services/MailSendService";
|
import { MailSendService } from "@spt/services/MailSendService";
|
||||||
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
@ -14,11 +15,12 @@ export declare class SptDialogueChatBot implements IDialogueChatBot {
|
|||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected mailSendService: MailSendService;
|
protected mailSendService: MailSendService;
|
||||||
protected seasonalEventService: SeasonalEventService;
|
protected seasonalEventService: SeasonalEventService;
|
||||||
|
protected localisationService: LocalisationService;
|
||||||
protected giftService: GiftService;
|
protected giftService: GiftService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected coreConfig: ICoreConfig;
|
protected coreConfig: ICoreConfig;
|
||||||
protected weatherConfig: IWeatherConfig;
|
protected weatherConfig: IWeatherConfig;
|
||||||
constructor(profileHelper: ProfileHelper, randomUtil: RandomUtil, mailSendService: MailSendService, seasonalEventService: SeasonalEventService, giftService: GiftService, configServer: ConfigServer);
|
constructor(profileHelper: ProfileHelper, randomUtil: RandomUtil, mailSendService: MailSendService, seasonalEventService: SeasonalEventService, localisationService: LocalisationService, giftService: GiftService, configServer: ConfigServer);
|
||||||
getChatBot(): IUserDialogInfo;
|
getChatBot(): IUserDialogInfo;
|
||||||
/**
|
/**
|
||||||
* Send responses back to player when they communicate with SPT friend on friends list
|
* Send responses back to player when they communicate with SPT friend on friends list
|
||||||
|
9
TypeScript/15HttpListenerExample/types/models/eft/game/ISendSurveyOpinionRequest.d.ts
vendored
Normal file
9
TypeScript/15HttpListenerExample/types/models/eft/game/ISendSurveyOpinionRequest.d.ts
vendored
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
export interface ISendSurveyOpinionRequest {
|
||||||
|
surveyId: number;
|
||||||
|
answers: ISurveyOpinionAnswer[];
|
||||||
|
}
|
||||||
|
export interface ISurveyOpinionAnswer {
|
||||||
|
questionId: number;
|
||||||
|
answerType: string;
|
||||||
|
answers: any;
|
||||||
|
}
|
35
TypeScript/15HttpListenerExample/types/models/eft/game/ISurveyResponseData.d.ts
vendored
Normal file
35
TypeScript/15HttpListenerExample/types/models/eft/game/ISurveyResponseData.d.ts
vendored
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
export interface ISurveyResponseData {
|
||||||
|
locale: Record<string, Record<string, string>>;
|
||||||
|
survey: ISurvey;
|
||||||
|
}
|
||||||
|
export interface ISurvey {
|
||||||
|
id: number;
|
||||||
|
welcomePageData: IWelcomePageData;
|
||||||
|
farewellPageData: IFarewellPageData;
|
||||||
|
pages: number[][];
|
||||||
|
questions: ISurveyQuestion[];
|
||||||
|
isNew: boolean;
|
||||||
|
}
|
||||||
|
export interface IWelcomePageData {
|
||||||
|
titleLocaleKey: string;
|
||||||
|
timeLocaleKey: string;
|
||||||
|
descriptionLocaleKey: string;
|
||||||
|
}
|
||||||
|
export interface IFarewellPageData {
|
||||||
|
textLocaleKey: string;
|
||||||
|
}
|
||||||
|
export interface ISurveyQuestion {
|
||||||
|
id: number;
|
||||||
|
sortIndex: number;
|
||||||
|
titleLocaleKey: string;
|
||||||
|
hintLocaleKey: string;
|
||||||
|
answerLimit: number;
|
||||||
|
answerType: string;
|
||||||
|
answers: ISurveyAnswer[];
|
||||||
|
}
|
||||||
|
export interface ISurveyAnswer {
|
||||||
|
id: number;
|
||||||
|
questionId: number;
|
||||||
|
sortIndex: number;
|
||||||
|
localeKey: string;
|
||||||
|
}
|
@ -1,3 +1,4 @@
|
|||||||
|
import { ISurveyResponseData } from "@spt/models/eft/game/ISurveyResponseData";
|
||||||
import { IBaseConfig } from "@spt/models/spt/config/IBaseConfig";
|
import { IBaseConfig } from "@spt/models/spt/config/IBaseConfig";
|
||||||
export interface ICoreConfig extends IBaseConfig {
|
export interface ICoreConfig extends IBaseConfig {
|
||||||
kind: "spt-core";
|
kind: "spt-core";
|
||||||
@ -11,6 +12,7 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
bsgLogging: IBsgLogging;
|
bsgLogging: IBsgLogging;
|
||||||
release: IRelease;
|
release: IRelease;
|
||||||
fixes: IGameFixes;
|
fixes: IGameFixes;
|
||||||
|
survey: ISurveyResponseData;
|
||||||
features: IServerFeatures;
|
features: IServerFeatures;
|
||||||
/** Commit hash build server was created from */
|
/** Commit hash build server was created from */
|
||||||
commit?: string;
|
commit?: string;
|
||||||
|
@ -13,7 +13,9 @@ import { IGameModeResponse } from "@spt/models/eft/game/IGameModeResponse";
|
|||||||
import { IGameStartResponse } from "@spt/models/eft/game/IGameStartResponse";
|
import { IGameStartResponse } from "@spt/models/eft/game/IGameStartResponse";
|
||||||
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
||||||
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
||||||
|
import { ISendSurveyOpinionRequest } from "@spt/models/eft/game/ISendSurveyOpinionRequest";
|
||||||
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
||||||
|
import { ISurveyResponseData } from "@spt/models/eft/game/ISurveyResponseData";
|
||||||
import { IVersionValidateRequestData } from "@spt/models/eft/game/IVersionValidateRequestData";
|
import { IVersionValidateRequestData } from "@spt/models/eft/game/IVersionValidateRequestData";
|
||||||
import { IGetBodyResponseData } from "@spt/models/eft/httpResponse/IGetBodyResponseData";
|
import { IGetBodyResponseData } from "@spt/models/eft/httpResponse/IGetBodyResponseData";
|
||||||
import { INullResponseData } from "@spt/models/eft/httpResponse/INullResponseData";
|
import { INullResponseData } from "@spt/models/eft/httpResponse/INullResponseData";
|
||||||
@ -90,5 +92,15 @@ export declare class GameCallbacks implements OnLoad {
|
|||||||
* Handle /client/survey
|
* Handle /client/survey
|
||||||
* @returns INullResponseData
|
* @returns INullResponseData
|
||||||
*/
|
*/
|
||||||
getSurvey(url: string, request: IEmptyRequestData, sessionID: string): INullResponseData;
|
getSurvey(url: string, request: IEmptyRequestData, sessionId: string): INullResponseData | IGetBodyResponseData<ISurveyResponseData>;
|
||||||
|
/**
|
||||||
|
* Handle client/survey/view
|
||||||
|
* @returns INullResponseData
|
||||||
|
*/
|
||||||
|
getSurveyView(url: string, request: any, sessionId: string): INullResponseData;
|
||||||
|
/**
|
||||||
|
* Handle client/survey/opinion
|
||||||
|
* @returns INullResponseData
|
||||||
|
*/
|
||||||
|
sendSurveyOpinion(url: string, request: ISendSurveyOpinionRequest, sessionId: string): INullResponseData;
|
||||||
}
|
}
|
||||||
|
@ -14,6 +14,7 @@ import { IGameModeRequestData } from "@spt/models/eft/game/IGameModeRequestData"
|
|||||||
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
||||||
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
||||||
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
||||||
|
import { ISurveyResponseData } from "@spt/models/eft/game/ISurveyResponseData";
|
||||||
import { ISptProfile } from "@spt/models/eft/profile/ISptProfile";
|
import { ISptProfile } from "@spt/models/eft/profile/ISptProfile";
|
||||||
import { IBotConfig } from "@spt/models/spt/config/IBotConfig";
|
import { IBotConfig } from "@spt/models/spt/config/IBotConfig";
|
||||||
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
||||||
@ -132,4 +133,5 @@ export declare class GameController {
|
|||||||
*/
|
*/
|
||||||
protected checkForAndRemoveUndefinedDialogs(fullProfile: ISptProfile): void;
|
protected checkForAndRemoveUndefinedDialogs(fullProfile: ISptProfile): void;
|
||||||
protected logProfileDetails(fullProfile: ISptProfile): void;
|
protected logProfileDetails(fullProfile: ISptProfile): void;
|
||||||
|
getSurvey(sessionId: string): ISurveyResponseData;
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,7 @@ import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
|||||||
import { IWeatherConfig } from "@spt/models/spt/config/IWeatherConfig";
|
import { IWeatherConfig } from "@spt/models/spt/config/IWeatherConfig";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { GiftService } from "@spt/services/GiftService";
|
import { GiftService } from "@spt/services/GiftService";
|
||||||
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { MailSendService } from "@spt/services/MailSendService";
|
import { MailSendService } from "@spt/services/MailSendService";
|
||||||
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
@ -14,11 +15,12 @@ export declare class SptDialogueChatBot implements IDialogueChatBot {
|
|||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected mailSendService: MailSendService;
|
protected mailSendService: MailSendService;
|
||||||
protected seasonalEventService: SeasonalEventService;
|
protected seasonalEventService: SeasonalEventService;
|
||||||
|
protected localisationService: LocalisationService;
|
||||||
protected giftService: GiftService;
|
protected giftService: GiftService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected coreConfig: ICoreConfig;
|
protected coreConfig: ICoreConfig;
|
||||||
protected weatherConfig: IWeatherConfig;
|
protected weatherConfig: IWeatherConfig;
|
||||||
constructor(profileHelper: ProfileHelper, randomUtil: RandomUtil, mailSendService: MailSendService, seasonalEventService: SeasonalEventService, giftService: GiftService, configServer: ConfigServer);
|
constructor(profileHelper: ProfileHelper, randomUtil: RandomUtil, mailSendService: MailSendService, seasonalEventService: SeasonalEventService, localisationService: LocalisationService, giftService: GiftService, configServer: ConfigServer);
|
||||||
getChatBot(): IUserDialogInfo;
|
getChatBot(): IUserDialogInfo;
|
||||||
/**
|
/**
|
||||||
* Send responses back to player when they communicate with SPT friend on friends list
|
* Send responses back to player when they communicate with SPT friend on friends list
|
||||||
|
9
TypeScript/16ImporterUtil/types/models/eft/game/ISendSurveyOpinionRequest.d.ts
vendored
Normal file
9
TypeScript/16ImporterUtil/types/models/eft/game/ISendSurveyOpinionRequest.d.ts
vendored
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
export interface ISendSurveyOpinionRequest {
|
||||||
|
surveyId: number;
|
||||||
|
answers: ISurveyOpinionAnswer[];
|
||||||
|
}
|
||||||
|
export interface ISurveyOpinionAnswer {
|
||||||
|
questionId: number;
|
||||||
|
answerType: string;
|
||||||
|
answers: any;
|
||||||
|
}
|
35
TypeScript/16ImporterUtil/types/models/eft/game/ISurveyResponseData.d.ts
vendored
Normal file
35
TypeScript/16ImporterUtil/types/models/eft/game/ISurveyResponseData.d.ts
vendored
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
export interface ISurveyResponseData {
|
||||||
|
locale: Record<string, Record<string, string>>;
|
||||||
|
survey: ISurvey;
|
||||||
|
}
|
||||||
|
export interface ISurvey {
|
||||||
|
id: number;
|
||||||
|
welcomePageData: IWelcomePageData;
|
||||||
|
farewellPageData: IFarewellPageData;
|
||||||
|
pages: number[][];
|
||||||
|
questions: ISurveyQuestion[];
|
||||||
|
isNew: boolean;
|
||||||
|
}
|
||||||
|
export interface IWelcomePageData {
|
||||||
|
titleLocaleKey: string;
|
||||||
|
timeLocaleKey: string;
|
||||||
|
descriptionLocaleKey: string;
|
||||||
|
}
|
||||||
|
export interface IFarewellPageData {
|
||||||
|
textLocaleKey: string;
|
||||||
|
}
|
||||||
|
export interface ISurveyQuestion {
|
||||||
|
id: number;
|
||||||
|
sortIndex: number;
|
||||||
|
titleLocaleKey: string;
|
||||||
|
hintLocaleKey: string;
|
||||||
|
answerLimit: number;
|
||||||
|
answerType: string;
|
||||||
|
answers: ISurveyAnswer[];
|
||||||
|
}
|
||||||
|
export interface ISurveyAnswer {
|
||||||
|
id: number;
|
||||||
|
questionId: number;
|
||||||
|
sortIndex: number;
|
||||||
|
localeKey: string;
|
||||||
|
}
|
@ -1,3 +1,4 @@
|
|||||||
|
import { ISurveyResponseData } from "@spt/models/eft/game/ISurveyResponseData";
|
||||||
import { IBaseConfig } from "@spt/models/spt/config/IBaseConfig";
|
import { IBaseConfig } from "@spt/models/spt/config/IBaseConfig";
|
||||||
export interface ICoreConfig extends IBaseConfig {
|
export interface ICoreConfig extends IBaseConfig {
|
||||||
kind: "spt-core";
|
kind: "spt-core";
|
||||||
@ -11,6 +12,7 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
bsgLogging: IBsgLogging;
|
bsgLogging: IBsgLogging;
|
||||||
release: IRelease;
|
release: IRelease;
|
||||||
fixes: IGameFixes;
|
fixes: IGameFixes;
|
||||||
|
survey: ISurveyResponseData;
|
||||||
features: IServerFeatures;
|
features: IServerFeatures;
|
||||||
/** Commit hash build server was created from */
|
/** Commit hash build server was created from */
|
||||||
commit?: string;
|
commit?: string;
|
||||||
|
@ -13,7 +13,9 @@ import { IGameModeResponse } from "@spt/models/eft/game/IGameModeResponse";
|
|||||||
import { IGameStartResponse } from "@spt/models/eft/game/IGameStartResponse";
|
import { IGameStartResponse } from "@spt/models/eft/game/IGameStartResponse";
|
||||||
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
||||||
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
||||||
|
import { ISendSurveyOpinionRequest } from "@spt/models/eft/game/ISendSurveyOpinionRequest";
|
||||||
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
||||||
|
import { ISurveyResponseData } from "@spt/models/eft/game/ISurveyResponseData";
|
||||||
import { IVersionValidateRequestData } from "@spt/models/eft/game/IVersionValidateRequestData";
|
import { IVersionValidateRequestData } from "@spt/models/eft/game/IVersionValidateRequestData";
|
||||||
import { IGetBodyResponseData } from "@spt/models/eft/httpResponse/IGetBodyResponseData";
|
import { IGetBodyResponseData } from "@spt/models/eft/httpResponse/IGetBodyResponseData";
|
||||||
import { INullResponseData } from "@spt/models/eft/httpResponse/INullResponseData";
|
import { INullResponseData } from "@spt/models/eft/httpResponse/INullResponseData";
|
||||||
@ -90,5 +92,15 @@ export declare class GameCallbacks implements OnLoad {
|
|||||||
* Handle /client/survey
|
* Handle /client/survey
|
||||||
* @returns INullResponseData
|
* @returns INullResponseData
|
||||||
*/
|
*/
|
||||||
getSurvey(url: string, request: IEmptyRequestData, sessionID: string): INullResponseData;
|
getSurvey(url: string, request: IEmptyRequestData, sessionId: string): INullResponseData | IGetBodyResponseData<ISurveyResponseData>;
|
||||||
|
/**
|
||||||
|
* Handle client/survey/view
|
||||||
|
* @returns INullResponseData
|
||||||
|
*/
|
||||||
|
getSurveyView(url: string, request: any, sessionId: string): INullResponseData;
|
||||||
|
/**
|
||||||
|
* Handle client/survey/opinion
|
||||||
|
* @returns INullResponseData
|
||||||
|
*/
|
||||||
|
sendSurveyOpinion(url: string, request: ISendSurveyOpinionRequest, sessionId: string): INullResponseData;
|
||||||
}
|
}
|
||||||
|
@ -14,6 +14,7 @@ import { IGameModeRequestData } from "@spt/models/eft/game/IGameModeRequestData"
|
|||||||
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
||||||
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
||||||
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
||||||
|
import { ISurveyResponseData } from "@spt/models/eft/game/ISurveyResponseData";
|
||||||
import { ISptProfile } from "@spt/models/eft/profile/ISptProfile";
|
import { ISptProfile } from "@spt/models/eft/profile/ISptProfile";
|
||||||
import { IBotConfig } from "@spt/models/spt/config/IBotConfig";
|
import { IBotConfig } from "@spt/models/spt/config/IBotConfig";
|
||||||
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
||||||
@ -132,4 +133,5 @@ export declare class GameController {
|
|||||||
*/
|
*/
|
||||||
protected checkForAndRemoveUndefinedDialogs(fullProfile: ISptProfile): void;
|
protected checkForAndRemoveUndefinedDialogs(fullProfile: ISptProfile): void;
|
||||||
protected logProfileDetails(fullProfile: ISptProfile): void;
|
protected logProfileDetails(fullProfile: ISptProfile): void;
|
||||||
|
getSurvey(sessionId: string): ISurveyResponseData;
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,7 @@ import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
|||||||
import { IWeatherConfig } from "@spt/models/spt/config/IWeatherConfig";
|
import { IWeatherConfig } from "@spt/models/spt/config/IWeatherConfig";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { GiftService } from "@spt/services/GiftService";
|
import { GiftService } from "@spt/services/GiftService";
|
||||||
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { MailSendService } from "@spt/services/MailSendService";
|
import { MailSendService } from "@spt/services/MailSendService";
|
||||||
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
@ -14,11 +15,12 @@ export declare class SptDialogueChatBot implements IDialogueChatBot {
|
|||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected mailSendService: MailSendService;
|
protected mailSendService: MailSendService;
|
||||||
protected seasonalEventService: SeasonalEventService;
|
protected seasonalEventService: SeasonalEventService;
|
||||||
|
protected localisationService: LocalisationService;
|
||||||
protected giftService: GiftService;
|
protected giftService: GiftService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected coreConfig: ICoreConfig;
|
protected coreConfig: ICoreConfig;
|
||||||
protected weatherConfig: IWeatherConfig;
|
protected weatherConfig: IWeatherConfig;
|
||||||
constructor(profileHelper: ProfileHelper, randomUtil: RandomUtil, mailSendService: MailSendService, seasonalEventService: SeasonalEventService, giftService: GiftService, configServer: ConfigServer);
|
constructor(profileHelper: ProfileHelper, randomUtil: RandomUtil, mailSendService: MailSendService, seasonalEventService: SeasonalEventService, localisationService: LocalisationService, giftService: GiftService, configServer: ConfigServer);
|
||||||
getChatBot(): IUserDialogInfo;
|
getChatBot(): IUserDialogInfo;
|
||||||
/**
|
/**
|
||||||
* Send responses back to player when they communicate with SPT friend on friends list
|
* Send responses back to player when they communicate with SPT friend on friends list
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
export interface ISendSurveyOpinionRequest {
|
||||||
|
surveyId: number;
|
||||||
|
answers: ISurveyOpinionAnswer[];
|
||||||
|
}
|
||||||
|
export interface ISurveyOpinionAnswer {
|
||||||
|
questionId: number;
|
||||||
|
answerType: string;
|
||||||
|
answers: any;
|
||||||
|
}
|
35
TypeScript/17AsyncImporterWithDependency1/types/models/eft/game/ISurveyResponseData.d.ts
vendored
Normal file
35
TypeScript/17AsyncImporterWithDependency1/types/models/eft/game/ISurveyResponseData.d.ts
vendored
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
export interface ISurveyResponseData {
|
||||||
|
locale: Record<string, Record<string, string>>;
|
||||||
|
survey: ISurvey;
|
||||||
|
}
|
||||||
|
export interface ISurvey {
|
||||||
|
id: number;
|
||||||
|
welcomePageData: IWelcomePageData;
|
||||||
|
farewellPageData: IFarewellPageData;
|
||||||
|
pages: number[][];
|
||||||
|
questions: ISurveyQuestion[];
|
||||||
|
isNew: boolean;
|
||||||
|
}
|
||||||
|
export interface IWelcomePageData {
|
||||||
|
titleLocaleKey: string;
|
||||||
|
timeLocaleKey: string;
|
||||||
|
descriptionLocaleKey: string;
|
||||||
|
}
|
||||||
|
export interface IFarewellPageData {
|
||||||
|
textLocaleKey: string;
|
||||||
|
}
|
||||||
|
export interface ISurveyQuestion {
|
||||||
|
id: number;
|
||||||
|
sortIndex: number;
|
||||||
|
titleLocaleKey: string;
|
||||||
|
hintLocaleKey: string;
|
||||||
|
answerLimit: number;
|
||||||
|
answerType: string;
|
||||||
|
answers: ISurveyAnswer[];
|
||||||
|
}
|
||||||
|
export interface ISurveyAnswer {
|
||||||
|
id: number;
|
||||||
|
questionId: number;
|
||||||
|
sortIndex: number;
|
||||||
|
localeKey: string;
|
||||||
|
}
|
@ -1,3 +1,4 @@
|
|||||||
|
import { ISurveyResponseData } from "@spt/models/eft/game/ISurveyResponseData";
|
||||||
import { IBaseConfig } from "@spt/models/spt/config/IBaseConfig";
|
import { IBaseConfig } from "@spt/models/spt/config/IBaseConfig";
|
||||||
export interface ICoreConfig extends IBaseConfig {
|
export interface ICoreConfig extends IBaseConfig {
|
||||||
kind: "spt-core";
|
kind: "spt-core";
|
||||||
@ -11,6 +12,7 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
bsgLogging: IBsgLogging;
|
bsgLogging: IBsgLogging;
|
||||||
release: IRelease;
|
release: IRelease;
|
||||||
fixes: IGameFixes;
|
fixes: IGameFixes;
|
||||||
|
survey: ISurveyResponseData;
|
||||||
features: IServerFeatures;
|
features: IServerFeatures;
|
||||||
/** Commit hash build server was created from */
|
/** Commit hash build server was created from */
|
||||||
commit?: string;
|
commit?: string;
|
||||||
|
@ -13,7 +13,9 @@ import { IGameModeResponse } from "@spt/models/eft/game/IGameModeResponse";
|
|||||||
import { IGameStartResponse } from "@spt/models/eft/game/IGameStartResponse";
|
import { IGameStartResponse } from "@spt/models/eft/game/IGameStartResponse";
|
||||||
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
||||||
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
||||||
|
import { ISendSurveyOpinionRequest } from "@spt/models/eft/game/ISendSurveyOpinionRequest";
|
||||||
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
||||||
|
import { ISurveyResponseData } from "@spt/models/eft/game/ISurveyResponseData";
|
||||||
import { IVersionValidateRequestData } from "@spt/models/eft/game/IVersionValidateRequestData";
|
import { IVersionValidateRequestData } from "@spt/models/eft/game/IVersionValidateRequestData";
|
||||||
import { IGetBodyResponseData } from "@spt/models/eft/httpResponse/IGetBodyResponseData";
|
import { IGetBodyResponseData } from "@spt/models/eft/httpResponse/IGetBodyResponseData";
|
||||||
import { INullResponseData } from "@spt/models/eft/httpResponse/INullResponseData";
|
import { INullResponseData } from "@spt/models/eft/httpResponse/INullResponseData";
|
||||||
@ -90,5 +92,15 @@ export declare class GameCallbacks implements OnLoad {
|
|||||||
* Handle /client/survey
|
* Handle /client/survey
|
||||||
* @returns INullResponseData
|
* @returns INullResponseData
|
||||||
*/
|
*/
|
||||||
getSurvey(url: string, request: IEmptyRequestData, sessionID: string): INullResponseData;
|
getSurvey(url: string, request: IEmptyRequestData, sessionId: string): INullResponseData | IGetBodyResponseData<ISurveyResponseData>;
|
||||||
|
/**
|
||||||
|
* Handle client/survey/view
|
||||||
|
* @returns INullResponseData
|
||||||
|
*/
|
||||||
|
getSurveyView(url: string, request: any, sessionId: string): INullResponseData;
|
||||||
|
/**
|
||||||
|
* Handle client/survey/opinion
|
||||||
|
* @returns INullResponseData
|
||||||
|
*/
|
||||||
|
sendSurveyOpinion(url: string, request: ISendSurveyOpinionRequest, sessionId: string): INullResponseData;
|
||||||
}
|
}
|
||||||
|
@ -14,6 +14,7 @@ import { IGameModeRequestData } from "@spt/models/eft/game/IGameModeRequestData"
|
|||||||
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
||||||
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
||||||
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
||||||
|
import { ISurveyResponseData } from "@spt/models/eft/game/ISurveyResponseData";
|
||||||
import { ISptProfile } from "@spt/models/eft/profile/ISptProfile";
|
import { ISptProfile } from "@spt/models/eft/profile/ISptProfile";
|
||||||
import { IBotConfig } from "@spt/models/spt/config/IBotConfig";
|
import { IBotConfig } from "@spt/models/spt/config/IBotConfig";
|
||||||
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
||||||
@ -132,4 +133,5 @@ export declare class GameController {
|
|||||||
*/
|
*/
|
||||||
protected checkForAndRemoveUndefinedDialogs(fullProfile: ISptProfile): void;
|
protected checkForAndRemoveUndefinedDialogs(fullProfile: ISptProfile): void;
|
||||||
protected logProfileDetails(fullProfile: ISptProfile): void;
|
protected logProfileDetails(fullProfile: ISptProfile): void;
|
||||||
|
getSurvey(sessionId: string): ISurveyResponseData;
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,7 @@ import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
|||||||
import { IWeatherConfig } from "@spt/models/spt/config/IWeatherConfig";
|
import { IWeatherConfig } from "@spt/models/spt/config/IWeatherConfig";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { GiftService } from "@spt/services/GiftService";
|
import { GiftService } from "@spt/services/GiftService";
|
||||||
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { MailSendService } from "@spt/services/MailSendService";
|
import { MailSendService } from "@spt/services/MailSendService";
|
||||||
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
@ -14,11 +15,12 @@ export declare class SptDialogueChatBot implements IDialogueChatBot {
|
|||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected mailSendService: MailSendService;
|
protected mailSendService: MailSendService;
|
||||||
protected seasonalEventService: SeasonalEventService;
|
protected seasonalEventService: SeasonalEventService;
|
||||||
|
protected localisationService: LocalisationService;
|
||||||
protected giftService: GiftService;
|
protected giftService: GiftService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected coreConfig: ICoreConfig;
|
protected coreConfig: ICoreConfig;
|
||||||
protected weatherConfig: IWeatherConfig;
|
protected weatherConfig: IWeatherConfig;
|
||||||
constructor(profileHelper: ProfileHelper, randomUtil: RandomUtil, mailSendService: MailSendService, seasonalEventService: SeasonalEventService, giftService: GiftService, configServer: ConfigServer);
|
constructor(profileHelper: ProfileHelper, randomUtil: RandomUtil, mailSendService: MailSendService, seasonalEventService: SeasonalEventService, localisationService: LocalisationService, giftService: GiftService, configServer: ConfigServer);
|
||||||
getChatBot(): IUserDialogInfo;
|
getChatBot(): IUserDialogInfo;
|
||||||
/**
|
/**
|
||||||
* Send responses back to player when they communicate with SPT friend on friends list
|
* Send responses back to player when they communicate with SPT friend on friends list
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
export interface ISendSurveyOpinionRequest {
|
||||||
|
surveyId: number;
|
||||||
|
answers: ISurveyOpinionAnswer[];
|
||||||
|
}
|
||||||
|
export interface ISurveyOpinionAnswer {
|
||||||
|
questionId: number;
|
||||||
|
answerType: string;
|
||||||
|
answers: any;
|
||||||
|
}
|
35
TypeScript/17AsyncImporterWithDependency2/types/models/eft/game/ISurveyResponseData.d.ts
vendored
Normal file
35
TypeScript/17AsyncImporterWithDependency2/types/models/eft/game/ISurveyResponseData.d.ts
vendored
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
export interface ISurveyResponseData {
|
||||||
|
locale: Record<string, Record<string, string>>;
|
||||||
|
survey: ISurvey;
|
||||||
|
}
|
||||||
|
export interface ISurvey {
|
||||||
|
id: number;
|
||||||
|
welcomePageData: IWelcomePageData;
|
||||||
|
farewellPageData: IFarewellPageData;
|
||||||
|
pages: number[][];
|
||||||
|
questions: ISurveyQuestion[];
|
||||||
|
isNew: boolean;
|
||||||
|
}
|
||||||
|
export interface IWelcomePageData {
|
||||||
|
titleLocaleKey: string;
|
||||||
|
timeLocaleKey: string;
|
||||||
|
descriptionLocaleKey: string;
|
||||||
|
}
|
||||||
|
export interface IFarewellPageData {
|
||||||
|
textLocaleKey: string;
|
||||||
|
}
|
||||||
|
export interface ISurveyQuestion {
|
||||||
|
id: number;
|
||||||
|
sortIndex: number;
|
||||||
|
titleLocaleKey: string;
|
||||||
|
hintLocaleKey: string;
|
||||||
|
answerLimit: number;
|
||||||
|
answerType: string;
|
||||||
|
answers: ISurveyAnswer[];
|
||||||
|
}
|
||||||
|
export interface ISurveyAnswer {
|
||||||
|
id: number;
|
||||||
|
questionId: number;
|
||||||
|
sortIndex: number;
|
||||||
|
localeKey: string;
|
||||||
|
}
|
@ -1,3 +1,4 @@
|
|||||||
|
import { ISurveyResponseData } from "@spt/models/eft/game/ISurveyResponseData";
|
||||||
import { IBaseConfig } from "@spt/models/spt/config/IBaseConfig";
|
import { IBaseConfig } from "@spt/models/spt/config/IBaseConfig";
|
||||||
export interface ICoreConfig extends IBaseConfig {
|
export interface ICoreConfig extends IBaseConfig {
|
||||||
kind: "spt-core";
|
kind: "spt-core";
|
||||||
@ -11,6 +12,7 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
bsgLogging: IBsgLogging;
|
bsgLogging: IBsgLogging;
|
||||||
release: IRelease;
|
release: IRelease;
|
||||||
fixes: IGameFixes;
|
fixes: IGameFixes;
|
||||||
|
survey: ISurveyResponseData;
|
||||||
features: IServerFeatures;
|
features: IServerFeatures;
|
||||||
/** Commit hash build server was created from */
|
/** Commit hash build server was created from */
|
||||||
commit?: string;
|
commit?: string;
|
||||||
|
@ -13,7 +13,9 @@ import { IGameModeResponse } from "@spt/models/eft/game/IGameModeResponse";
|
|||||||
import { IGameStartResponse } from "@spt/models/eft/game/IGameStartResponse";
|
import { IGameStartResponse } from "@spt/models/eft/game/IGameStartResponse";
|
||||||
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
||||||
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
||||||
|
import { ISendSurveyOpinionRequest } from "@spt/models/eft/game/ISendSurveyOpinionRequest";
|
||||||
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
||||||
|
import { ISurveyResponseData } from "@spt/models/eft/game/ISurveyResponseData";
|
||||||
import { IVersionValidateRequestData } from "@spt/models/eft/game/IVersionValidateRequestData";
|
import { IVersionValidateRequestData } from "@spt/models/eft/game/IVersionValidateRequestData";
|
||||||
import { IGetBodyResponseData } from "@spt/models/eft/httpResponse/IGetBodyResponseData";
|
import { IGetBodyResponseData } from "@spt/models/eft/httpResponse/IGetBodyResponseData";
|
||||||
import { INullResponseData } from "@spt/models/eft/httpResponse/INullResponseData";
|
import { INullResponseData } from "@spt/models/eft/httpResponse/INullResponseData";
|
||||||
@ -90,5 +92,15 @@ export declare class GameCallbacks implements OnLoad {
|
|||||||
* Handle /client/survey
|
* Handle /client/survey
|
||||||
* @returns INullResponseData
|
* @returns INullResponseData
|
||||||
*/
|
*/
|
||||||
getSurvey(url: string, request: IEmptyRequestData, sessionID: string): INullResponseData;
|
getSurvey(url: string, request: IEmptyRequestData, sessionId: string): INullResponseData | IGetBodyResponseData<ISurveyResponseData>;
|
||||||
|
/**
|
||||||
|
* Handle client/survey/view
|
||||||
|
* @returns INullResponseData
|
||||||
|
*/
|
||||||
|
getSurveyView(url: string, request: any, sessionId: string): INullResponseData;
|
||||||
|
/**
|
||||||
|
* Handle client/survey/opinion
|
||||||
|
* @returns INullResponseData
|
||||||
|
*/
|
||||||
|
sendSurveyOpinion(url: string, request: ISendSurveyOpinionRequest, sessionId: string): INullResponseData;
|
||||||
}
|
}
|
||||||
|
@ -14,6 +14,7 @@ import { IGameModeRequestData } from "@spt/models/eft/game/IGameModeRequestData"
|
|||||||
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
||||||
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
||||||
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
||||||
|
import { ISurveyResponseData } from "@spt/models/eft/game/ISurveyResponseData";
|
||||||
import { ISptProfile } from "@spt/models/eft/profile/ISptProfile";
|
import { ISptProfile } from "@spt/models/eft/profile/ISptProfile";
|
||||||
import { IBotConfig } from "@spt/models/spt/config/IBotConfig";
|
import { IBotConfig } from "@spt/models/spt/config/IBotConfig";
|
||||||
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
||||||
@ -132,4 +133,5 @@ export declare class GameController {
|
|||||||
*/
|
*/
|
||||||
protected checkForAndRemoveUndefinedDialogs(fullProfile: ISptProfile): void;
|
protected checkForAndRemoveUndefinedDialogs(fullProfile: ISptProfile): void;
|
||||||
protected logProfileDetails(fullProfile: ISptProfile): void;
|
protected logProfileDetails(fullProfile: ISptProfile): void;
|
||||||
|
getSurvey(sessionId: string): ISurveyResponseData;
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,7 @@ import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
|||||||
import { IWeatherConfig } from "@spt/models/spt/config/IWeatherConfig";
|
import { IWeatherConfig } from "@spt/models/spt/config/IWeatherConfig";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { GiftService } from "@spt/services/GiftService";
|
import { GiftService } from "@spt/services/GiftService";
|
||||||
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { MailSendService } from "@spt/services/MailSendService";
|
import { MailSendService } from "@spt/services/MailSendService";
|
||||||
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
@ -14,11 +15,12 @@ export declare class SptDialogueChatBot implements IDialogueChatBot {
|
|||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected mailSendService: MailSendService;
|
protected mailSendService: MailSendService;
|
||||||
protected seasonalEventService: SeasonalEventService;
|
protected seasonalEventService: SeasonalEventService;
|
||||||
|
protected localisationService: LocalisationService;
|
||||||
protected giftService: GiftService;
|
protected giftService: GiftService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected coreConfig: ICoreConfig;
|
protected coreConfig: ICoreConfig;
|
||||||
protected weatherConfig: IWeatherConfig;
|
protected weatherConfig: IWeatherConfig;
|
||||||
constructor(profileHelper: ProfileHelper, randomUtil: RandomUtil, mailSendService: MailSendService, seasonalEventService: SeasonalEventService, giftService: GiftService, configServer: ConfigServer);
|
constructor(profileHelper: ProfileHelper, randomUtil: RandomUtil, mailSendService: MailSendService, seasonalEventService: SeasonalEventService, localisationService: LocalisationService, giftService: GiftService, configServer: ConfigServer);
|
||||||
getChatBot(): IUserDialogInfo;
|
getChatBot(): IUserDialogInfo;
|
||||||
/**
|
/**
|
||||||
* Send responses back to player when they communicate with SPT friend on friends list
|
* Send responses back to player when they communicate with SPT friend on friends list
|
||||||
|
9
TypeScript/18.1CustomItemServiceLootBox/types/models/eft/game/ISendSurveyOpinionRequest.d.ts
vendored
Normal file
9
TypeScript/18.1CustomItemServiceLootBox/types/models/eft/game/ISendSurveyOpinionRequest.d.ts
vendored
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
export interface ISendSurveyOpinionRequest {
|
||||||
|
surveyId: number;
|
||||||
|
answers: ISurveyOpinionAnswer[];
|
||||||
|
}
|
||||||
|
export interface ISurveyOpinionAnswer {
|
||||||
|
questionId: number;
|
||||||
|
answerType: string;
|
||||||
|
answers: any;
|
||||||
|
}
|
35
TypeScript/18.1CustomItemServiceLootBox/types/models/eft/game/ISurveyResponseData.d.ts
vendored
Normal file
35
TypeScript/18.1CustomItemServiceLootBox/types/models/eft/game/ISurveyResponseData.d.ts
vendored
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
export interface ISurveyResponseData {
|
||||||
|
locale: Record<string, Record<string, string>>;
|
||||||
|
survey: ISurvey;
|
||||||
|
}
|
||||||
|
export interface ISurvey {
|
||||||
|
id: number;
|
||||||
|
welcomePageData: IWelcomePageData;
|
||||||
|
farewellPageData: IFarewellPageData;
|
||||||
|
pages: number[][];
|
||||||
|
questions: ISurveyQuestion[];
|
||||||
|
isNew: boolean;
|
||||||
|
}
|
||||||
|
export interface IWelcomePageData {
|
||||||
|
titleLocaleKey: string;
|
||||||
|
timeLocaleKey: string;
|
||||||
|
descriptionLocaleKey: string;
|
||||||
|
}
|
||||||
|
export interface IFarewellPageData {
|
||||||
|
textLocaleKey: string;
|
||||||
|
}
|
||||||
|
export interface ISurveyQuestion {
|
||||||
|
id: number;
|
||||||
|
sortIndex: number;
|
||||||
|
titleLocaleKey: string;
|
||||||
|
hintLocaleKey: string;
|
||||||
|
answerLimit: number;
|
||||||
|
answerType: string;
|
||||||
|
answers: ISurveyAnswer[];
|
||||||
|
}
|
||||||
|
export interface ISurveyAnswer {
|
||||||
|
id: number;
|
||||||
|
questionId: number;
|
||||||
|
sortIndex: number;
|
||||||
|
localeKey: string;
|
||||||
|
}
|
@ -1,3 +1,4 @@
|
|||||||
|
import { ISurveyResponseData } from "@spt/models/eft/game/ISurveyResponseData";
|
||||||
import { IBaseConfig } from "@spt/models/spt/config/IBaseConfig";
|
import { IBaseConfig } from "@spt/models/spt/config/IBaseConfig";
|
||||||
export interface ICoreConfig extends IBaseConfig {
|
export interface ICoreConfig extends IBaseConfig {
|
||||||
kind: "spt-core";
|
kind: "spt-core";
|
||||||
@ -11,6 +12,7 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
bsgLogging: IBsgLogging;
|
bsgLogging: IBsgLogging;
|
||||||
release: IRelease;
|
release: IRelease;
|
||||||
fixes: IGameFixes;
|
fixes: IGameFixes;
|
||||||
|
survey: ISurveyResponseData;
|
||||||
features: IServerFeatures;
|
features: IServerFeatures;
|
||||||
/** Commit hash build server was created from */
|
/** Commit hash build server was created from */
|
||||||
commit?: string;
|
commit?: string;
|
||||||
|
@ -13,7 +13,9 @@ import { IGameModeResponse } from "@spt/models/eft/game/IGameModeResponse";
|
|||||||
import { IGameStartResponse } from "@spt/models/eft/game/IGameStartResponse";
|
import { IGameStartResponse } from "@spt/models/eft/game/IGameStartResponse";
|
||||||
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
||||||
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
||||||
|
import { ISendSurveyOpinionRequest } from "@spt/models/eft/game/ISendSurveyOpinionRequest";
|
||||||
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
||||||
|
import { ISurveyResponseData } from "@spt/models/eft/game/ISurveyResponseData";
|
||||||
import { IVersionValidateRequestData } from "@spt/models/eft/game/IVersionValidateRequestData";
|
import { IVersionValidateRequestData } from "@spt/models/eft/game/IVersionValidateRequestData";
|
||||||
import { IGetBodyResponseData } from "@spt/models/eft/httpResponse/IGetBodyResponseData";
|
import { IGetBodyResponseData } from "@spt/models/eft/httpResponse/IGetBodyResponseData";
|
||||||
import { INullResponseData } from "@spt/models/eft/httpResponse/INullResponseData";
|
import { INullResponseData } from "@spt/models/eft/httpResponse/INullResponseData";
|
||||||
@ -90,5 +92,15 @@ export declare class GameCallbacks implements OnLoad {
|
|||||||
* Handle /client/survey
|
* Handle /client/survey
|
||||||
* @returns INullResponseData
|
* @returns INullResponseData
|
||||||
*/
|
*/
|
||||||
getSurvey(url: string, request: IEmptyRequestData, sessionID: string): INullResponseData;
|
getSurvey(url: string, request: IEmptyRequestData, sessionId: string): INullResponseData | IGetBodyResponseData<ISurveyResponseData>;
|
||||||
|
/**
|
||||||
|
* Handle client/survey/view
|
||||||
|
* @returns INullResponseData
|
||||||
|
*/
|
||||||
|
getSurveyView(url: string, request: any, sessionId: string): INullResponseData;
|
||||||
|
/**
|
||||||
|
* Handle client/survey/opinion
|
||||||
|
* @returns INullResponseData
|
||||||
|
*/
|
||||||
|
sendSurveyOpinion(url: string, request: ISendSurveyOpinionRequest, sessionId: string): INullResponseData;
|
||||||
}
|
}
|
||||||
|
@ -14,6 +14,7 @@ import { IGameModeRequestData } from "@spt/models/eft/game/IGameModeRequestData"
|
|||||||
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
||||||
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
||||||
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
||||||
|
import { ISurveyResponseData } from "@spt/models/eft/game/ISurveyResponseData";
|
||||||
import { ISptProfile } from "@spt/models/eft/profile/ISptProfile";
|
import { ISptProfile } from "@spt/models/eft/profile/ISptProfile";
|
||||||
import { IBotConfig } from "@spt/models/spt/config/IBotConfig";
|
import { IBotConfig } from "@spt/models/spt/config/IBotConfig";
|
||||||
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
||||||
@ -132,4 +133,5 @@ export declare class GameController {
|
|||||||
*/
|
*/
|
||||||
protected checkForAndRemoveUndefinedDialogs(fullProfile: ISptProfile): void;
|
protected checkForAndRemoveUndefinedDialogs(fullProfile: ISptProfile): void;
|
||||||
protected logProfileDetails(fullProfile: ISptProfile): void;
|
protected logProfileDetails(fullProfile: ISptProfile): void;
|
||||||
|
getSurvey(sessionId: string): ISurveyResponseData;
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,7 @@ import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
|||||||
import { IWeatherConfig } from "@spt/models/spt/config/IWeatherConfig";
|
import { IWeatherConfig } from "@spt/models/spt/config/IWeatherConfig";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { GiftService } from "@spt/services/GiftService";
|
import { GiftService } from "@spt/services/GiftService";
|
||||||
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { MailSendService } from "@spt/services/MailSendService";
|
import { MailSendService } from "@spt/services/MailSendService";
|
||||||
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
@ -14,11 +15,12 @@ export declare class SptDialogueChatBot implements IDialogueChatBot {
|
|||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected mailSendService: MailSendService;
|
protected mailSendService: MailSendService;
|
||||||
protected seasonalEventService: SeasonalEventService;
|
protected seasonalEventService: SeasonalEventService;
|
||||||
|
protected localisationService: LocalisationService;
|
||||||
protected giftService: GiftService;
|
protected giftService: GiftService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected coreConfig: ICoreConfig;
|
protected coreConfig: ICoreConfig;
|
||||||
protected weatherConfig: IWeatherConfig;
|
protected weatherConfig: IWeatherConfig;
|
||||||
constructor(profileHelper: ProfileHelper, randomUtil: RandomUtil, mailSendService: MailSendService, seasonalEventService: SeasonalEventService, giftService: GiftService, configServer: ConfigServer);
|
constructor(profileHelper: ProfileHelper, randomUtil: RandomUtil, mailSendService: MailSendService, seasonalEventService: SeasonalEventService, localisationService: LocalisationService, giftService: GiftService, configServer: ConfigServer);
|
||||||
getChatBot(): IUserDialogInfo;
|
getChatBot(): IUserDialogInfo;
|
||||||
/**
|
/**
|
||||||
* Send responses back to player when they communicate with SPT friend on friends list
|
* Send responses back to player when they communicate with SPT friend on friends list
|
||||||
|
9
TypeScript/18CustomItemService/types/models/eft/game/ISendSurveyOpinionRequest.d.ts
vendored
Normal file
9
TypeScript/18CustomItemService/types/models/eft/game/ISendSurveyOpinionRequest.d.ts
vendored
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
export interface ISendSurveyOpinionRequest {
|
||||||
|
surveyId: number;
|
||||||
|
answers: ISurveyOpinionAnswer[];
|
||||||
|
}
|
||||||
|
export interface ISurveyOpinionAnswer {
|
||||||
|
questionId: number;
|
||||||
|
answerType: string;
|
||||||
|
answers: any;
|
||||||
|
}
|
35
TypeScript/18CustomItemService/types/models/eft/game/ISurveyResponseData.d.ts
vendored
Normal file
35
TypeScript/18CustomItemService/types/models/eft/game/ISurveyResponseData.d.ts
vendored
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
export interface ISurveyResponseData {
|
||||||
|
locale: Record<string, Record<string, string>>;
|
||||||
|
survey: ISurvey;
|
||||||
|
}
|
||||||
|
export interface ISurvey {
|
||||||
|
id: number;
|
||||||
|
welcomePageData: IWelcomePageData;
|
||||||
|
farewellPageData: IFarewellPageData;
|
||||||
|
pages: number[][];
|
||||||
|
questions: ISurveyQuestion[];
|
||||||
|
isNew: boolean;
|
||||||
|
}
|
||||||
|
export interface IWelcomePageData {
|
||||||
|
titleLocaleKey: string;
|
||||||
|
timeLocaleKey: string;
|
||||||
|
descriptionLocaleKey: string;
|
||||||
|
}
|
||||||
|
export interface IFarewellPageData {
|
||||||
|
textLocaleKey: string;
|
||||||
|
}
|
||||||
|
export interface ISurveyQuestion {
|
||||||
|
id: number;
|
||||||
|
sortIndex: number;
|
||||||
|
titleLocaleKey: string;
|
||||||
|
hintLocaleKey: string;
|
||||||
|
answerLimit: number;
|
||||||
|
answerType: string;
|
||||||
|
answers: ISurveyAnswer[];
|
||||||
|
}
|
||||||
|
export interface ISurveyAnswer {
|
||||||
|
id: number;
|
||||||
|
questionId: number;
|
||||||
|
sortIndex: number;
|
||||||
|
localeKey: string;
|
||||||
|
}
|
@ -1,3 +1,4 @@
|
|||||||
|
import { ISurveyResponseData } from "@spt/models/eft/game/ISurveyResponseData";
|
||||||
import { IBaseConfig } from "@spt/models/spt/config/IBaseConfig";
|
import { IBaseConfig } from "@spt/models/spt/config/IBaseConfig";
|
||||||
export interface ICoreConfig extends IBaseConfig {
|
export interface ICoreConfig extends IBaseConfig {
|
||||||
kind: "spt-core";
|
kind: "spt-core";
|
||||||
@ -11,6 +12,7 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
bsgLogging: IBsgLogging;
|
bsgLogging: IBsgLogging;
|
||||||
release: IRelease;
|
release: IRelease;
|
||||||
fixes: IGameFixes;
|
fixes: IGameFixes;
|
||||||
|
survey: ISurveyResponseData;
|
||||||
features: IServerFeatures;
|
features: IServerFeatures;
|
||||||
/** Commit hash build server was created from */
|
/** Commit hash build server was created from */
|
||||||
commit?: string;
|
commit?: string;
|
||||||
|
@ -13,7 +13,9 @@ import { IGameModeResponse } from "@spt/models/eft/game/IGameModeResponse";
|
|||||||
import { IGameStartResponse } from "@spt/models/eft/game/IGameStartResponse";
|
import { IGameStartResponse } from "@spt/models/eft/game/IGameStartResponse";
|
||||||
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
||||||
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
||||||
|
import { ISendSurveyOpinionRequest } from "@spt/models/eft/game/ISendSurveyOpinionRequest";
|
||||||
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
||||||
|
import { ISurveyResponseData } from "@spt/models/eft/game/ISurveyResponseData";
|
||||||
import { IVersionValidateRequestData } from "@spt/models/eft/game/IVersionValidateRequestData";
|
import { IVersionValidateRequestData } from "@spt/models/eft/game/IVersionValidateRequestData";
|
||||||
import { IGetBodyResponseData } from "@spt/models/eft/httpResponse/IGetBodyResponseData";
|
import { IGetBodyResponseData } from "@spt/models/eft/httpResponse/IGetBodyResponseData";
|
||||||
import { INullResponseData } from "@spt/models/eft/httpResponse/INullResponseData";
|
import { INullResponseData } from "@spt/models/eft/httpResponse/INullResponseData";
|
||||||
@ -90,5 +92,15 @@ export declare class GameCallbacks implements OnLoad {
|
|||||||
* Handle /client/survey
|
* Handle /client/survey
|
||||||
* @returns INullResponseData
|
* @returns INullResponseData
|
||||||
*/
|
*/
|
||||||
getSurvey(url: string, request: IEmptyRequestData, sessionID: string): INullResponseData;
|
getSurvey(url: string, request: IEmptyRequestData, sessionId: string): INullResponseData | IGetBodyResponseData<ISurveyResponseData>;
|
||||||
|
/**
|
||||||
|
* Handle client/survey/view
|
||||||
|
* @returns INullResponseData
|
||||||
|
*/
|
||||||
|
getSurveyView(url: string, request: any, sessionId: string): INullResponseData;
|
||||||
|
/**
|
||||||
|
* Handle client/survey/opinion
|
||||||
|
* @returns INullResponseData
|
||||||
|
*/
|
||||||
|
sendSurveyOpinion(url: string, request: ISendSurveyOpinionRequest, sessionId: string): INullResponseData;
|
||||||
}
|
}
|
||||||
|
@ -14,6 +14,7 @@ import { IGameModeRequestData } from "@spt/models/eft/game/IGameModeRequestData"
|
|||||||
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
||||||
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
||||||
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
||||||
|
import { ISurveyResponseData } from "@spt/models/eft/game/ISurveyResponseData";
|
||||||
import { ISptProfile } from "@spt/models/eft/profile/ISptProfile";
|
import { ISptProfile } from "@spt/models/eft/profile/ISptProfile";
|
||||||
import { IBotConfig } from "@spt/models/spt/config/IBotConfig";
|
import { IBotConfig } from "@spt/models/spt/config/IBotConfig";
|
||||||
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
||||||
@ -132,4 +133,5 @@ export declare class GameController {
|
|||||||
*/
|
*/
|
||||||
protected checkForAndRemoveUndefinedDialogs(fullProfile: ISptProfile): void;
|
protected checkForAndRemoveUndefinedDialogs(fullProfile: ISptProfile): void;
|
||||||
protected logProfileDetails(fullProfile: ISptProfile): void;
|
protected logProfileDetails(fullProfile: ISptProfile): void;
|
||||||
|
getSurvey(sessionId: string): ISurveyResponseData;
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,7 @@ import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
|||||||
import { IWeatherConfig } from "@spt/models/spt/config/IWeatherConfig";
|
import { IWeatherConfig } from "@spt/models/spt/config/IWeatherConfig";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { GiftService } from "@spt/services/GiftService";
|
import { GiftService } from "@spt/services/GiftService";
|
||||||
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { MailSendService } from "@spt/services/MailSendService";
|
import { MailSendService } from "@spt/services/MailSendService";
|
||||||
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
@ -14,11 +15,12 @@ export declare class SptDialogueChatBot implements IDialogueChatBot {
|
|||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected mailSendService: MailSendService;
|
protected mailSendService: MailSendService;
|
||||||
protected seasonalEventService: SeasonalEventService;
|
protected seasonalEventService: SeasonalEventService;
|
||||||
|
protected localisationService: LocalisationService;
|
||||||
protected giftService: GiftService;
|
protected giftService: GiftService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected coreConfig: ICoreConfig;
|
protected coreConfig: ICoreConfig;
|
||||||
protected weatherConfig: IWeatherConfig;
|
protected weatherConfig: IWeatherConfig;
|
||||||
constructor(profileHelper: ProfileHelper, randomUtil: RandomUtil, mailSendService: MailSendService, seasonalEventService: SeasonalEventService, giftService: GiftService, configServer: ConfigServer);
|
constructor(profileHelper: ProfileHelper, randomUtil: RandomUtil, mailSendService: MailSendService, seasonalEventService: SeasonalEventService, localisationService: LocalisationService, giftService: GiftService, configServer: ConfigServer);
|
||||||
getChatBot(): IUserDialogInfo;
|
getChatBot(): IUserDialogInfo;
|
||||||
/**
|
/**
|
||||||
* Send responses back to player when they communicate with SPT friend on friends list
|
* Send responses back to player when they communicate with SPT friend on friends list
|
||||||
|
9
TypeScript/19UseExternalLibraries/types/models/eft/game/ISendSurveyOpinionRequest.d.ts
vendored
Normal file
9
TypeScript/19UseExternalLibraries/types/models/eft/game/ISendSurveyOpinionRequest.d.ts
vendored
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
export interface ISendSurveyOpinionRequest {
|
||||||
|
surveyId: number;
|
||||||
|
answers: ISurveyOpinionAnswer[];
|
||||||
|
}
|
||||||
|
export interface ISurveyOpinionAnswer {
|
||||||
|
questionId: number;
|
||||||
|
answerType: string;
|
||||||
|
answers: any;
|
||||||
|
}
|
35
TypeScript/19UseExternalLibraries/types/models/eft/game/ISurveyResponseData.d.ts
vendored
Normal file
35
TypeScript/19UseExternalLibraries/types/models/eft/game/ISurveyResponseData.d.ts
vendored
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
export interface ISurveyResponseData {
|
||||||
|
locale: Record<string, Record<string, string>>;
|
||||||
|
survey: ISurvey;
|
||||||
|
}
|
||||||
|
export interface ISurvey {
|
||||||
|
id: number;
|
||||||
|
welcomePageData: IWelcomePageData;
|
||||||
|
farewellPageData: IFarewellPageData;
|
||||||
|
pages: number[][];
|
||||||
|
questions: ISurveyQuestion[];
|
||||||
|
isNew: boolean;
|
||||||
|
}
|
||||||
|
export interface IWelcomePageData {
|
||||||
|
titleLocaleKey: string;
|
||||||
|
timeLocaleKey: string;
|
||||||
|
descriptionLocaleKey: string;
|
||||||
|
}
|
||||||
|
export interface IFarewellPageData {
|
||||||
|
textLocaleKey: string;
|
||||||
|
}
|
||||||
|
export interface ISurveyQuestion {
|
||||||
|
id: number;
|
||||||
|
sortIndex: number;
|
||||||
|
titleLocaleKey: string;
|
||||||
|
hintLocaleKey: string;
|
||||||
|
answerLimit: number;
|
||||||
|
answerType: string;
|
||||||
|
answers: ISurveyAnswer[];
|
||||||
|
}
|
||||||
|
export interface ISurveyAnswer {
|
||||||
|
id: number;
|
||||||
|
questionId: number;
|
||||||
|
sortIndex: number;
|
||||||
|
localeKey: string;
|
||||||
|
}
|
@ -1,3 +1,4 @@
|
|||||||
|
import { ISurveyResponseData } from "@spt/models/eft/game/ISurveyResponseData";
|
||||||
import { IBaseConfig } from "@spt/models/spt/config/IBaseConfig";
|
import { IBaseConfig } from "@spt/models/spt/config/IBaseConfig";
|
||||||
export interface ICoreConfig extends IBaseConfig {
|
export interface ICoreConfig extends IBaseConfig {
|
||||||
kind: "spt-core";
|
kind: "spt-core";
|
||||||
@ -11,6 +12,7 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
bsgLogging: IBsgLogging;
|
bsgLogging: IBsgLogging;
|
||||||
release: IRelease;
|
release: IRelease;
|
||||||
fixes: IGameFixes;
|
fixes: IGameFixes;
|
||||||
|
survey: ISurveyResponseData;
|
||||||
features: IServerFeatures;
|
features: IServerFeatures;
|
||||||
/** Commit hash build server was created from */
|
/** Commit hash build server was created from */
|
||||||
commit?: string;
|
commit?: string;
|
||||||
|
@ -13,7 +13,9 @@ import { IGameModeResponse } from "@spt/models/eft/game/IGameModeResponse";
|
|||||||
import { IGameStartResponse } from "@spt/models/eft/game/IGameStartResponse";
|
import { IGameStartResponse } from "@spt/models/eft/game/IGameStartResponse";
|
||||||
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
||||||
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
||||||
|
import { ISendSurveyOpinionRequest } from "@spt/models/eft/game/ISendSurveyOpinionRequest";
|
||||||
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
||||||
|
import { ISurveyResponseData } from "@spt/models/eft/game/ISurveyResponseData";
|
||||||
import { IVersionValidateRequestData } from "@spt/models/eft/game/IVersionValidateRequestData";
|
import { IVersionValidateRequestData } from "@spt/models/eft/game/IVersionValidateRequestData";
|
||||||
import { IGetBodyResponseData } from "@spt/models/eft/httpResponse/IGetBodyResponseData";
|
import { IGetBodyResponseData } from "@spt/models/eft/httpResponse/IGetBodyResponseData";
|
||||||
import { INullResponseData } from "@spt/models/eft/httpResponse/INullResponseData";
|
import { INullResponseData } from "@spt/models/eft/httpResponse/INullResponseData";
|
||||||
@ -90,5 +92,15 @@ export declare class GameCallbacks implements OnLoad {
|
|||||||
* Handle /client/survey
|
* Handle /client/survey
|
||||||
* @returns INullResponseData
|
* @returns INullResponseData
|
||||||
*/
|
*/
|
||||||
getSurvey(url: string, request: IEmptyRequestData, sessionID: string): INullResponseData;
|
getSurvey(url: string, request: IEmptyRequestData, sessionId: string): INullResponseData | IGetBodyResponseData<ISurveyResponseData>;
|
||||||
|
/**
|
||||||
|
* Handle client/survey/view
|
||||||
|
* @returns INullResponseData
|
||||||
|
*/
|
||||||
|
getSurveyView(url: string, request: any, sessionId: string): INullResponseData;
|
||||||
|
/**
|
||||||
|
* Handle client/survey/opinion
|
||||||
|
* @returns INullResponseData
|
||||||
|
*/
|
||||||
|
sendSurveyOpinion(url: string, request: ISendSurveyOpinionRequest, sessionId: string): INullResponseData;
|
||||||
}
|
}
|
||||||
|
@ -14,6 +14,7 @@ import { IGameModeRequestData } from "@spt/models/eft/game/IGameModeRequestData"
|
|||||||
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
||||||
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
||||||
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
||||||
|
import { ISurveyResponseData } from "@spt/models/eft/game/ISurveyResponseData";
|
||||||
import { ISptProfile } from "@spt/models/eft/profile/ISptProfile";
|
import { ISptProfile } from "@spt/models/eft/profile/ISptProfile";
|
||||||
import { IBotConfig } from "@spt/models/spt/config/IBotConfig";
|
import { IBotConfig } from "@spt/models/spt/config/IBotConfig";
|
||||||
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
||||||
@ -132,4 +133,5 @@ export declare class GameController {
|
|||||||
*/
|
*/
|
||||||
protected checkForAndRemoveUndefinedDialogs(fullProfile: ISptProfile): void;
|
protected checkForAndRemoveUndefinedDialogs(fullProfile: ISptProfile): void;
|
||||||
protected logProfileDetails(fullProfile: ISptProfile): void;
|
protected logProfileDetails(fullProfile: ISptProfile): void;
|
||||||
|
getSurvey(sessionId: string): ISurveyResponseData;
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,7 @@ import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
|||||||
import { IWeatherConfig } from "@spt/models/spt/config/IWeatherConfig";
|
import { IWeatherConfig } from "@spt/models/spt/config/IWeatherConfig";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { GiftService } from "@spt/services/GiftService";
|
import { GiftService } from "@spt/services/GiftService";
|
||||||
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { MailSendService } from "@spt/services/MailSendService";
|
import { MailSendService } from "@spt/services/MailSendService";
|
||||||
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
@ -14,11 +15,12 @@ export declare class SptDialogueChatBot implements IDialogueChatBot {
|
|||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected mailSendService: MailSendService;
|
protected mailSendService: MailSendService;
|
||||||
protected seasonalEventService: SeasonalEventService;
|
protected seasonalEventService: SeasonalEventService;
|
||||||
|
protected localisationService: LocalisationService;
|
||||||
protected giftService: GiftService;
|
protected giftService: GiftService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected coreConfig: ICoreConfig;
|
protected coreConfig: ICoreConfig;
|
||||||
protected weatherConfig: IWeatherConfig;
|
protected weatherConfig: IWeatherConfig;
|
||||||
constructor(profileHelper: ProfileHelper, randomUtil: RandomUtil, mailSendService: MailSendService, seasonalEventService: SeasonalEventService, giftService: GiftService, configServer: ConfigServer);
|
constructor(profileHelper: ProfileHelper, randomUtil: RandomUtil, mailSendService: MailSendService, seasonalEventService: SeasonalEventService, localisationService: LocalisationService, giftService: GiftService, configServer: ConfigServer);
|
||||||
getChatBot(): IUserDialogInfo;
|
getChatBot(): IUserDialogInfo;
|
||||||
/**
|
/**
|
||||||
* Send responses back to player when they communicate with SPT friend on friends list
|
* Send responses back to player when they communicate with SPT friend on friends list
|
||||||
|
9
TypeScript/1LogToConsole/types/models/eft/game/ISendSurveyOpinionRequest.d.ts
vendored
Normal file
9
TypeScript/1LogToConsole/types/models/eft/game/ISendSurveyOpinionRequest.d.ts
vendored
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
export interface ISendSurveyOpinionRequest {
|
||||||
|
surveyId: number;
|
||||||
|
answers: ISurveyOpinionAnswer[];
|
||||||
|
}
|
||||||
|
export interface ISurveyOpinionAnswer {
|
||||||
|
questionId: number;
|
||||||
|
answerType: string;
|
||||||
|
answers: any;
|
||||||
|
}
|
35
TypeScript/1LogToConsole/types/models/eft/game/ISurveyResponseData.d.ts
vendored
Normal file
35
TypeScript/1LogToConsole/types/models/eft/game/ISurveyResponseData.d.ts
vendored
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
export interface ISurveyResponseData {
|
||||||
|
locale: Record<string, Record<string, string>>;
|
||||||
|
survey: ISurvey;
|
||||||
|
}
|
||||||
|
export interface ISurvey {
|
||||||
|
id: number;
|
||||||
|
welcomePageData: IWelcomePageData;
|
||||||
|
farewellPageData: IFarewellPageData;
|
||||||
|
pages: number[][];
|
||||||
|
questions: ISurveyQuestion[];
|
||||||
|
isNew: boolean;
|
||||||
|
}
|
||||||
|
export interface IWelcomePageData {
|
||||||
|
titleLocaleKey: string;
|
||||||
|
timeLocaleKey: string;
|
||||||
|
descriptionLocaleKey: string;
|
||||||
|
}
|
||||||
|
export interface IFarewellPageData {
|
||||||
|
textLocaleKey: string;
|
||||||
|
}
|
||||||
|
export interface ISurveyQuestion {
|
||||||
|
id: number;
|
||||||
|
sortIndex: number;
|
||||||
|
titleLocaleKey: string;
|
||||||
|
hintLocaleKey: string;
|
||||||
|
answerLimit: number;
|
||||||
|
answerType: string;
|
||||||
|
answers: ISurveyAnswer[];
|
||||||
|
}
|
||||||
|
export interface ISurveyAnswer {
|
||||||
|
id: number;
|
||||||
|
questionId: number;
|
||||||
|
sortIndex: number;
|
||||||
|
localeKey: string;
|
||||||
|
}
|
@ -1,3 +1,4 @@
|
|||||||
|
import { ISurveyResponseData } from "@spt/models/eft/game/ISurveyResponseData";
|
||||||
import { IBaseConfig } from "@spt/models/spt/config/IBaseConfig";
|
import { IBaseConfig } from "@spt/models/spt/config/IBaseConfig";
|
||||||
export interface ICoreConfig extends IBaseConfig {
|
export interface ICoreConfig extends IBaseConfig {
|
||||||
kind: "spt-core";
|
kind: "spt-core";
|
||||||
@ -11,6 +12,7 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
bsgLogging: IBsgLogging;
|
bsgLogging: IBsgLogging;
|
||||||
release: IRelease;
|
release: IRelease;
|
||||||
fixes: IGameFixes;
|
fixes: IGameFixes;
|
||||||
|
survey: ISurveyResponseData;
|
||||||
features: IServerFeatures;
|
features: IServerFeatures;
|
||||||
/** Commit hash build server was created from */
|
/** Commit hash build server was created from */
|
||||||
commit?: string;
|
commit?: string;
|
||||||
|
@ -13,7 +13,9 @@ import { IGameModeResponse } from "@spt/models/eft/game/IGameModeResponse";
|
|||||||
import { IGameStartResponse } from "@spt/models/eft/game/IGameStartResponse";
|
import { IGameStartResponse } from "@spt/models/eft/game/IGameStartResponse";
|
||||||
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
||||||
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
||||||
|
import { ISendSurveyOpinionRequest } from "@spt/models/eft/game/ISendSurveyOpinionRequest";
|
||||||
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
||||||
|
import { ISurveyResponseData } from "@spt/models/eft/game/ISurveyResponseData";
|
||||||
import { IVersionValidateRequestData } from "@spt/models/eft/game/IVersionValidateRequestData";
|
import { IVersionValidateRequestData } from "@spt/models/eft/game/IVersionValidateRequestData";
|
||||||
import { IGetBodyResponseData } from "@spt/models/eft/httpResponse/IGetBodyResponseData";
|
import { IGetBodyResponseData } from "@spt/models/eft/httpResponse/IGetBodyResponseData";
|
||||||
import { INullResponseData } from "@spt/models/eft/httpResponse/INullResponseData";
|
import { INullResponseData } from "@spt/models/eft/httpResponse/INullResponseData";
|
||||||
@ -90,5 +92,15 @@ export declare class GameCallbacks implements OnLoad {
|
|||||||
* Handle /client/survey
|
* Handle /client/survey
|
||||||
* @returns INullResponseData
|
* @returns INullResponseData
|
||||||
*/
|
*/
|
||||||
getSurvey(url: string, request: IEmptyRequestData, sessionID: string): INullResponseData;
|
getSurvey(url: string, request: IEmptyRequestData, sessionId: string): INullResponseData | IGetBodyResponseData<ISurveyResponseData>;
|
||||||
|
/**
|
||||||
|
* Handle client/survey/view
|
||||||
|
* @returns INullResponseData
|
||||||
|
*/
|
||||||
|
getSurveyView(url: string, request: any, sessionId: string): INullResponseData;
|
||||||
|
/**
|
||||||
|
* Handle client/survey/opinion
|
||||||
|
* @returns INullResponseData
|
||||||
|
*/
|
||||||
|
sendSurveyOpinion(url: string, request: ISendSurveyOpinionRequest, sessionId: string): INullResponseData;
|
||||||
}
|
}
|
||||||
|
@ -14,6 +14,7 @@ import { IGameModeRequestData } from "@spt/models/eft/game/IGameModeRequestData"
|
|||||||
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
||||||
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
||||||
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
||||||
|
import { ISurveyResponseData } from "@spt/models/eft/game/ISurveyResponseData";
|
||||||
import { ISptProfile } from "@spt/models/eft/profile/ISptProfile";
|
import { ISptProfile } from "@spt/models/eft/profile/ISptProfile";
|
||||||
import { IBotConfig } from "@spt/models/spt/config/IBotConfig";
|
import { IBotConfig } from "@spt/models/spt/config/IBotConfig";
|
||||||
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
||||||
@ -132,4 +133,5 @@ export declare class GameController {
|
|||||||
*/
|
*/
|
||||||
protected checkForAndRemoveUndefinedDialogs(fullProfile: ISptProfile): void;
|
protected checkForAndRemoveUndefinedDialogs(fullProfile: ISptProfile): void;
|
||||||
protected logProfileDetails(fullProfile: ISptProfile): void;
|
protected logProfileDetails(fullProfile: ISptProfile): void;
|
||||||
|
getSurvey(sessionId: string): ISurveyResponseData;
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,7 @@ import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
|||||||
import { IWeatherConfig } from "@spt/models/spt/config/IWeatherConfig";
|
import { IWeatherConfig } from "@spt/models/spt/config/IWeatherConfig";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { GiftService } from "@spt/services/GiftService";
|
import { GiftService } from "@spt/services/GiftService";
|
||||||
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { MailSendService } from "@spt/services/MailSendService";
|
import { MailSendService } from "@spt/services/MailSendService";
|
||||||
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
@ -14,11 +15,12 @@ export declare class SptDialogueChatBot implements IDialogueChatBot {
|
|||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected mailSendService: MailSendService;
|
protected mailSendService: MailSendService;
|
||||||
protected seasonalEventService: SeasonalEventService;
|
protected seasonalEventService: SeasonalEventService;
|
||||||
|
protected localisationService: LocalisationService;
|
||||||
protected giftService: GiftService;
|
protected giftService: GiftService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected coreConfig: ICoreConfig;
|
protected coreConfig: ICoreConfig;
|
||||||
protected weatherConfig: IWeatherConfig;
|
protected weatherConfig: IWeatherConfig;
|
||||||
constructor(profileHelper: ProfileHelper, randomUtil: RandomUtil, mailSendService: MailSendService, seasonalEventService: SeasonalEventService, giftService: GiftService, configServer: ConfigServer);
|
constructor(profileHelper: ProfileHelper, randomUtil: RandomUtil, mailSendService: MailSendService, seasonalEventService: SeasonalEventService, localisationService: LocalisationService, giftService: GiftService, configServer: ConfigServer);
|
||||||
getChatBot(): IUserDialogInfo;
|
getChatBot(): IUserDialogInfo;
|
||||||
/**
|
/**
|
||||||
* Send responses back to player when they communicate with SPT friend on friends list
|
* Send responses back to player when they communicate with SPT friend on friends list
|
||||||
|
9
TypeScript/20CustomChatBot/types/models/eft/game/ISendSurveyOpinionRequest.d.ts
vendored
Normal file
9
TypeScript/20CustomChatBot/types/models/eft/game/ISendSurveyOpinionRequest.d.ts
vendored
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
export interface ISendSurveyOpinionRequest {
|
||||||
|
surveyId: number;
|
||||||
|
answers: ISurveyOpinionAnswer[];
|
||||||
|
}
|
||||||
|
export interface ISurveyOpinionAnswer {
|
||||||
|
questionId: number;
|
||||||
|
answerType: string;
|
||||||
|
answers: any;
|
||||||
|
}
|
35
TypeScript/20CustomChatBot/types/models/eft/game/ISurveyResponseData.d.ts
vendored
Normal file
35
TypeScript/20CustomChatBot/types/models/eft/game/ISurveyResponseData.d.ts
vendored
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
export interface ISurveyResponseData {
|
||||||
|
locale: Record<string, Record<string, string>>;
|
||||||
|
survey: ISurvey;
|
||||||
|
}
|
||||||
|
export interface ISurvey {
|
||||||
|
id: number;
|
||||||
|
welcomePageData: IWelcomePageData;
|
||||||
|
farewellPageData: IFarewellPageData;
|
||||||
|
pages: number[][];
|
||||||
|
questions: ISurveyQuestion[];
|
||||||
|
isNew: boolean;
|
||||||
|
}
|
||||||
|
export interface IWelcomePageData {
|
||||||
|
titleLocaleKey: string;
|
||||||
|
timeLocaleKey: string;
|
||||||
|
descriptionLocaleKey: string;
|
||||||
|
}
|
||||||
|
export interface IFarewellPageData {
|
||||||
|
textLocaleKey: string;
|
||||||
|
}
|
||||||
|
export interface ISurveyQuestion {
|
||||||
|
id: number;
|
||||||
|
sortIndex: number;
|
||||||
|
titleLocaleKey: string;
|
||||||
|
hintLocaleKey: string;
|
||||||
|
answerLimit: number;
|
||||||
|
answerType: string;
|
||||||
|
answers: ISurveyAnswer[];
|
||||||
|
}
|
||||||
|
export interface ISurveyAnswer {
|
||||||
|
id: number;
|
||||||
|
questionId: number;
|
||||||
|
sortIndex: number;
|
||||||
|
localeKey: string;
|
||||||
|
}
|
@ -1,3 +1,4 @@
|
|||||||
|
import { ISurveyResponseData } from "@spt/models/eft/game/ISurveyResponseData";
|
||||||
import { IBaseConfig } from "@spt/models/spt/config/IBaseConfig";
|
import { IBaseConfig } from "@spt/models/spt/config/IBaseConfig";
|
||||||
export interface ICoreConfig extends IBaseConfig {
|
export interface ICoreConfig extends IBaseConfig {
|
||||||
kind: "spt-core";
|
kind: "spt-core";
|
||||||
@ -11,6 +12,7 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
bsgLogging: IBsgLogging;
|
bsgLogging: IBsgLogging;
|
||||||
release: IRelease;
|
release: IRelease;
|
||||||
fixes: IGameFixes;
|
fixes: IGameFixes;
|
||||||
|
survey: ISurveyResponseData;
|
||||||
features: IServerFeatures;
|
features: IServerFeatures;
|
||||||
/** Commit hash build server was created from */
|
/** Commit hash build server was created from */
|
||||||
commit?: string;
|
commit?: string;
|
||||||
|
@ -13,7 +13,9 @@ import { IGameModeResponse } from "@spt/models/eft/game/IGameModeResponse";
|
|||||||
import { IGameStartResponse } from "@spt/models/eft/game/IGameStartResponse";
|
import { IGameStartResponse } from "@spt/models/eft/game/IGameStartResponse";
|
||||||
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
||||||
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
||||||
|
import { ISendSurveyOpinionRequest } from "@spt/models/eft/game/ISendSurveyOpinionRequest";
|
||||||
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
||||||
|
import { ISurveyResponseData } from "@spt/models/eft/game/ISurveyResponseData";
|
||||||
import { IVersionValidateRequestData } from "@spt/models/eft/game/IVersionValidateRequestData";
|
import { IVersionValidateRequestData } from "@spt/models/eft/game/IVersionValidateRequestData";
|
||||||
import { IGetBodyResponseData } from "@spt/models/eft/httpResponse/IGetBodyResponseData";
|
import { IGetBodyResponseData } from "@spt/models/eft/httpResponse/IGetBodyResponseData";
|
||||||
import { INullResponseData } from "@spt/models/eft/httpResponse/INullResponseData";
|
import { INullResponseData } from "@spt/models/eft/httpResponse/INullResponseData";
|
||||||
@ -90,5 +92,15 @@ export declare class GameCallbacks implements OnLoad {
|
|||||||
* Handle /client/survey
|
* Handle /client/survey
|
||||||
* @returns INullResponseData
|
* @returns INullResponseData
|
||||||
*/
|
*/
|
||||||
getSurvey(url: string, request: IEmptyRequestData, sessionID: string): INullResponseData;
|
getSurvey(url: string, request: IEmptyRequestData, sessionId: string): INullResponseData | IGetBodyResponseData<ISurveyResponseData>;
|
||||||
|
/**
|
||||||
|
* Handle client/survey/view
|
||||||
|
* @returns INullResponseData
|
||||||
|
*/
|
||||||
|
getSurveyView(url: string, request: any, sessionId: string): INullResponseData;
|
||||||
|
/**
|
||||||
|
* Handle client/survey/opinion
|
||||||
|
* @returns INullResponseData
|
||||||
|
*/
|
||||||
|
sendSurveyOpinion(url: string, request: ISendSurveyOpinionRequest, sessionId: string): INullResponseData;
|
||||||
}
|
}
|
||||||
|
@ -14,6 +14,7 @@ import { IGameModeRequestData } from "@spt/models/eft/game/IGameModeRequestData"
|
|||||||
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
||||||
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
||||||
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
||||||
|
import { ISurveyResponseData } from "@spt/models/eft/game/ISurveyResponseData";
|
||||||
import { ISptProfile } from "@spt/models/eft/profile/ISptProfile";
|
import { ISptProfile } from "@spt/models/eft/profile/ISptProfile";
|
||||||
import { IBotConfig } from "@spt/models/spt/config/IBotConfig";
|
import { IBotConfig } from "@spt/models/spt/config/IBotConfig";
|
||||||
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
||||||
@ -132,4 +133,5 @@ export declare class GameController {
|
|||||||
*/
|
*/
|
||||||
protected checkForAndRemoveUndefinedDialogs(fullProfile: ISptProfile): void;
|
protected checkForAndRemoveUndefinedDialogs(fullProfile: ISptProfile): void;
|
||||||
protected logProfileDetails(fullProfile: ISptProfile): void;
|
protected logProfileDetails(fullProfile: ISptProfile): void;
|
||||||
|
getSurvey(sessionId: string): ISurveyResponseData;
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,7 @@ import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
|||||||
import { IWeatherConfig } from "@spt/models/spt/config/IWeatherConfig";
|
import { IWeatherConfig } from "@spt/models/spt/config/IWeatherConfig";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { GiftService } from "@spt/services/GiftService";
|
import { GiftService } from "@spt/services/GiftService";
|
||||||
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { MailSendService } from "@spt/services/MailSendService";
|
import { MailSendService } from "@spt/services/MailSendService";
|
||||||
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
@ -14,11 +15,12 @@ export declare class SptDialogueChatBot implements IDialogueChatBot {
|
|||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected mailSendService: MailSendService;
|
protected mailSendService: MailSendService;
|
||||||
protected seasonalEventService: SeasonalEventService;
|
protected seasonalEventService: SeasonalEventService;
|
||||||
|
protected localisationService: LocalisationService;
|
||||||
protected giftService: GiftService;
|
protected giftService: GiftService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected coreConfig: ICoreConfig;
|
protected coreConfig: ICoreConfig;
|
||||||
protected weatherConfig: IWeatherConfig;
|
protected weatherConfig: IWeatherConfig;
|
||||||
constructor(profileHelper: ProfileHelper, randomUtil: RandomUtil, mailSendService: MailSendService, seasonalEventService: SeasonalEventService, giftService: GiftService, configServer: ConfigServer);
|
constructor(profileHelper: ProfileHelper, randomUtil: RandomUtil, mailSendService: MailSendService, seasonalEventService: SeasonalEventService, localisationService: LocalisationService, giftService: GiftService, configServer: ConfigServer);
|
||||||
getChatBot(): IUserDialogInfo;
|
getChatBot(): IUserDialogInfo;
|
||||||
/**
|
/**
|
||||||
* Send responses back to player when they communicate with SPT friend on friends list
|
* Send responses back to player when they communicate with SPT friend on friends list
|
||||||
|
9
TypeScript/21CustomCommandoCommand/types/models/eft/game/ISendSurveyOpinionRequest.d.ts
vendored
Normal file
9
TypeScript/21CustomCommandoCommand/types/models/eft/game/ISendSurveyOpinionRequest.d.ts
vendored
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
export interface ISendSurveyOpinionRequest {
|
||||||
|
surveyId: number;
|
||||||
|
answers: ISurveyOpinionAnswer[];
|
||||||
|
}
|
||||||
|
export interface ISurveyOpinionAnswer {
|
||||||
|
questionId: number;
|
||||||
|
answerType: string;
|
||||||
|
answers: any;
|
||||||
|
}
|
35
TypeScript/21CustomCommandoCommand/types/models/eft/game/ISurveyResponseData.d.ts
vendored
Normal file
35
TypeScript/21CustomCommandoCommand/types/models/eft/game/ISurveyResponseData.d.ts
vendored
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
export interface ISurveyResponseData {
|
||||||
|
locale: Record<string, Record<string, string>>;
|
||||||
|
survey: ISurvey;
|
||||||
|
}
|
||||||
|
export interface ISurvey {
|
||||||
|
id: number;
|
||||||
|
welcomePageData: IWelcomePageData;
|
||||||
|
farewellPageData: IFarewellPageData;
|
||||||
|
pages: number[][];
|
||||||
|
questions: ISurveyQuestion[];
|
||||||
|
isNew: boolean;
|
||||||
|
}
|
||||||
|
export interface IWelcomePageData {
|
||||||
|
titleLocaleKey: string;
|
||||||
|
timeLocaleKey: string;
|
||||||
|
descriptionLocaleKey: string;
|
||||||
|
}
|
||||||
|
export interface IFarewellPageData {
|
||||||
|
textLocaleKey: string;
|
||||||
|
}
|
||||||
|
export interface ISurveyQuestion {
|
||||||
|
id: number;
|
||||||
|
sortIndex: number;
|
||||||
|
titleLocaleKey: string;
|
||||||
|
hintLocaleKey: string;
|
||||||
|
answerLimit: number;
|
||||||
|
answerType: string;
|
||||||
|
answers: ISurveyAnswer[];
|
||||||
|
}
|
||||||
|
export interface ISurveyAnswer {
|
||||||
|
id: number;
|
||||||
|
questionId: number;
|
||||||
|
sortIndex: number;
|
||||||
|
localeKey: string;
|
||||||
|
}
|
@ -1,3 +1,4 @@
|
|||||||
|
import { ISurveyResponseData } from "@spt/models/eft/game/ISurveyResponseData";
|
||||||
import { IBaseConfig } from "@spt/models/spt/config/IBaseConfig";
|
import { IBaseConfig } from "@spt/models/spt/config/IBaseConfig";
|
||||||
export interface ICoreConfig extends IBaseConfig {
|
export interface ICoreConfig extends IBaseConfig {
|
||||||
kind: "spt-core";
|
kind: "spt-core";
|
||||||
@ -11,6 +12,7 @@ export interface ICoreConfig extends IBaseConfig {
|
|||||||
bsgLogging: IBsgLogging;
|
bsgLogging: IBsgLogging;
|
||||||
release: IRelease;
|
release: IRelease;
|
||||||
fixes: IGameFixes;
|
fixes: IGameFixes;
|
||||||
|
survey: ISurveyResponseData;
|
||||||
features: IServerFeatures;
|
features: IServerFeatures;
|
||||||
/** Commit hash build server was created from */
|
/** Commit hash build server was created from */
|
||||||
commit?: string;
|
commit?: string;
|
||||||
|
@ -13,7 +13,9 @@ import { IGameModeResponse } from "@spt/models/eft/game/IGameModeResponse";
|
|||||||
import { IGameStartResponse } from "@spt/models/eft/game/IGameStartResponse";
|
import { IGameStartResponse } from "@spt/models/eft/game/IGameStartResponse";
|
||||||
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
||||||
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
||||||
|
import { ISendSurveyOpinionRequest } from "@spt/models/eft/game/ISendSurveyOpinionRequest";
|
||||||
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
||||||
|
import { ISurveyResponseData } from "@spt/models/eft/game/ISurveyResponseData";
|
||||||
import { IVersionValidateRequestData } from "@spt/models/eft/game/IVersionValidateRequestData";
|
import { IVersionValidateRequestData } from "@spt/models/eft/game/IVersionValidateRequestData";
|
||||||
import { IGetBodyResponseData } from "@spt/models/eft/httpResponse/IGetBodyResponseData";
|
import { IGetBodyResponseData } from "@spt/models/eft/httpResponse/IGetBodyResponseData";
|
||||||
import { INullResponseData } from "@spt/models/eft/httpResponse/INullResponseData";
|
import { INullResponseData } from "@spt/models/eft/httpResponse/INullResponseData";
|
||||||
@ -90,5 +92,15 @@ export declare class GameCallbacks implements OnLoad {
|
|||||||
* Handle /client/survey
|
* Handle /client/survey
|
||||||
* @returns INullResponseData
|
* @returns INullResponseData
|
||||||
*/
|
*/
|
||||||
getSurvey(url: string, request: IEmptyRequestData, sessionID: string): INullResponseData;
|
getSurvey(url: string, request: IEmptyRequestData, sessionId: string): INullResponseData | IGetBodyResponseData<ISurveyResponseData>;
|
||||||
|
/**
|
||||||
|
* Handle client/survey/view
|
||||||
|
* @returns INullResponseData
|
||||||
|
*/
|
||||||
|
getSurveyView(url: string, request: any, sessionId: string): INullResponseData;
|
||||||
|
/**
|
||||||
|
* Handle client/survey/opinion
|
||||||
|
* @returns INullResponseData
|
||||||
|
*/
|
||||||
|
sendSurveyOpinion(url: string, request: ISendSurveyOpinionRequest, sessionId: string): INullResponseData;
|
||||||
}
|
}
|
||||||
|
@ -14,6 +14,7 @@ import { IGameModeRequestData } from "@spt/models/eft/game/IGameModeRequestData"
|
|||||||
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
import { IGetRaidTimeRequest } from "@spt/models/eft/game/IGetRaidTimeRequest";
|
||||||
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
import { IGetRaidTimeResponse } from "@spt/models/eft/game/IGetRaidTimeResponse";
|
||||||
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
import { IServerDetails } from "@spt/models/eft/game/IServerDetails";
|
||||||
|
import { ISurveyResponseData } from "@spt/models/eft/game/ISurveyResponseData";
|
||||||
import { ISptProfile } from "@spt/models/eft/profile/ISptProfile";
|
import { ISptProfile } from "@spt/models/eft/profile/ISptProfile";
|
||||||
import { IBotConfig } from "@spt/models/spt/config/IBotConfig";
|
import { IBotConfig } from "@spt/models/spt/config/IBotConfig";
|
||||||
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
||||||
@ -132,4 +133,5 @@ export declare class GameController {
|
|||||||
*/
|
*/
|
||||||
protected checkForAndRemoveUndefinedDialogs(fullProfile: ISptProfile): void;
|
protected checkForAndRemoveUndefinedDialogs(fullProfile: ISptProfile): void;
|
||||||
protected logProfileDetails(fullProfile: ISptProfile): void;
|
protected logProfileDetails(fullProfile: ISptProfile): void;
|
||||||
|
getSurvey(sessionId: string): ISurveyResponseData;
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,7 @@ import { ICoreConfig } from "@spt/models/spt/config/ICoreConfig";
|
|||||||
import { IWeatherConfig } from "@spt/models/spt/config/IWeatherConfig";
|
import { IWeatherConfig } from "@spt/models/spt/config/IWeatherConfig";
|
||||||
import { ConfigServer } from "@spt/servers/ConfigServer";
|
import { ConfigServer } from "@spt/servers/ConfigServer";
|
||||||
import { GiftService } from "@spt/services/GiftService";
|
import { GiftService } from "@spt/services/GiftService";
|
||||||
|
import { LocalisationService } from "@spt/services/LocalisationService";
|
||||||
import { MailSendService } from "@spt/services/MailSendService";
|
import { MailSendService } from "@spt/services/MailSendService";
|
||||||
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
import { SeasonalEventService } from "@spt/services/SeasonalEventService";
|
||||||
import { RandomUtil } from "@spt/utils/RandomUtil";
|
import { RandomUtil } from "@spt/utils/RandomUtil";
|
||||||
@ -14,11 +15,12 @@ export declare class SptDialogueChatBot implements IDialogueChatBot {
|
|||||||
protected randomUtil: RandomUtil;
|
protected randomUtil: RandomUtil;
|
||||||
protected mailSendService: MailSendService;
|
protected mailSendService: MailSendService;
|
||||||
protected seasonalEventService: SeasonalEventService;
|
protected seasonalEventService: SeasonalEventService;
|
||||||
|
protected localisationService: LocalisationService;
|
||||||
protected giftService: GiftService;
|
protected giftService: GiftService;
|
||||||
protected configServer: ConfigServer;
|
protected configServer: ConfigServer;
|
||||||
protected coreConfig: ICoreConfig;
|
protected coreConfig: ICoreConfig;
|
||||||
protected weatherConfig: IWeatherConfig;
|
protected weatherConfig: IWeatherConfig;
|
||||||
constructor(profileHelper: ProfileHelper, randomUtil: RandomUtil, mailSendService: MailSendService, seasonalEventService: SeasonalEventService, giftService: GiftService, configServer: ConfigServer);
|
constructor(profileHelper: ProfileHelper, randomUtil: RandomUtil, mailSendService: MailSendService, seasonalEventService: SeasonalEventService, localisationService: LocalisationService, giftService: GiftService, configServer: ConfigServer);
|
||||||
getChatBot(): IUserDialogInfo;
|
getChatBot(): IUserDialogInfo;
|
||||||
/**
|
/**
|
||||||
* Send responses back to player when they communicate with SPT friend on friends list
|
* Send responses back to player when they communicate with SPT friend on friends list
|
||||||
|
9
TypeScript/22CustomSptCommand/types/models/eft/game/ISendSurveyOpinionRequest.d.ts
vendored
Normal file
9
TypeScript/22CustomSptCommand/types/models/eft/game/ISendSurveyOpinionRequest.d.ts
vendored
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
export interface ISendSurveyOpinionRequest {
|
||||||
|
surveyId: number;
|
||||||
|
answers: ISurveyOpinionAnswer[];
|
||||||
|
}
|
||||||
|
export interface ISurveyOpinionAnswer {
|
||||||
|
questionId: number;
|
||||||
|
answerType: string;
|
||||||
|
answers: any;
|
||||||
|
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user