
Product
Introducing Data Exports
Export Socket alert data to your own cloud storage in JSON, CSV, or Parquet, with flexible snapshot or incremental delivery.
@solucx/survey-js-sdk
Advanced tools
npm install --save @solucx/survey-js-sdk
import { Survey } from "@solucx/survey-js-sdk";
const apiKey = "{CHAVE DA API}";
const surveyRequestData = {
storeId: "1234",
employeeId: "1234",
name: "Fulano da Silva",
email: "fulano@email.com",
amount: 1.99,
journey: "e-commerce",
};
// Creates a survey to be rated
const survey = await Survey.createSurvey(apiKey, surveyRequestData);
// Set User Response
survey.rating = 10;
survey.comment = "Somme Comment";
survey.anonymous = false;
// Set Items score and rating
survey.items[0].score = 1;
survey.items[0].rating = "negative";
survey.items[1].score = 2;
survey.items[1].rating = "positive";
survey.items[2].score = 1;
survey.items[2].rating = "neutral";
// Submit Rating
const result = await survey.submitRating();
transactionId : alphanumeric Field with a unique transaction id from the company itself to establish a direct link in the exports of the reports. - ex 564425232clientId : numeric Field with unique customer id from the company itself to establish a direct link in the exports of - ex reports 3445667storeId : alphanumeric Mandatory Field with unit id from the company itself to establish a direct link in the exports of the reports. Must be registered in the system - ex 12332employeeId : alphanumeric Mandatory Field with id of the employee participating in the sale from the company itself to establish a direct link in the exports of the reports, if not provided a generic will be assigned. - ex 3424342name : Mandatory text Customer Name - ex Mariaemail : Mandatory text Customer Email - ex maria@email.comphone : 10/11-digit Customer Telephone number - ex 11999990000phone2 : numeric Second Customer phone number with 10 or 11 digits - ex 11999991111cpf : Customer CPF number - ex 01234567890gender : "M", "F" or "-" Gender of Customer - ex FbirthDate : YYYY-mm-dd Customer Birth Date - ex 1980-12-31amount : positive decimal Mandatory Transaction amount - ex 87.20rating : numeric score that will be marked in the survey, value from 0 to 10. - ex 10journey : Journey of what the customer performed the transaction - ex: e-commercesource : Source that the survey is being collected - ex 'email'transactionIdattemptIdstoreIdemployeeIdratingcommentanonymousitemsparametersexport interface JourneyParameters {
sendButtonText?: string;
surveyTitle?: string;
name?: string;
logo?: string;
color?: string;
question?: string;
displayType?: DisplayType;
inputType?: InputType;
npsColor?: boolean;
classesLabel?: string;
commentLabel?: string;
commentNegativeLabel?: string;
classesNotRequired?: boolean;
showClasses?: boolean;
allowHtml?: boolean;
showComment?: boolean;
showAnonymous?: boolean;
showEmailEnrichment?: boolean;
showPhoneEnrichment?: boolean;
showMoreThan6Classes?: boolean;
showInHouseAds?: boolean;
customAcknowledgmentHTML?: string;
showDocumentEnrichment?: boolean;
showSendButton?: boolean;
saveInitialRating?: boolean;
successTitle?: string;
successMessage?: string;
thanksMessage?: string;
dateTimeMessage?: string;
template?: string;
customStyle?: string;
hideCredits?: boolean;
privacyLinks?: PrivacyLink[];
preEnrich?: boolean;
}
export interface ClassItem {
/** id da classe a ser avaliada */
classId: number;
/** texto da classe */
name: string;
/** Ordem q a classe vai aparecer */
order: number;
/** Tipo da classe */
type: ClassItemType;
/** Avaliação do item */
rating?: ClassRating;
/** Nota do item */
score?: number
FAQs
rm
We found that @solucx/survey-js-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Export Socket alert data to your own cloud storage in JSON, CSV, or Parquet, with flexible snapshot or incremental delivery.

Research
/Security News
Bitwarden CLI 2026.4.0 was compromised in the Checkmarx supply chain campaign after attackers abused a GitHub Action in Bitwarden’s CI/CD pipeline.

Research
/Security News
Docker and Socket have uncovered malicious Checkmarx KICS images and suspicious code extension releases in a broader supply chain compromise.