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

@formbricks/js

Package Overview
Dependencies
Maintainers
1
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@formbricks/js - npm Package Compare versions

Comparing version 0.1.20 to 0.1.21

dist/types/v1/apiKeys.d.ts

7

dist/js/src/lib/response.d.ts

@@ -1,4 +0,5 @@

import type { JsConfig, Response, ResponseCreateRequest, ResponseUpdateRequest } from "../../../types/js";
import type { JsConfig } from "../../../types/js";
import type { TResponse, TResponseInput } from "../../../types/v1/responses";
import { NetworkError, Result } from "./errors";
export declare const createResponse: (responseRequest: ResponseCreateRequest, config: any) => Promise<Result<Response, NetworkError>>;
export declare const updateResponse: (responseRequest: ResponseUpdateRequest, responseId: string, config: JsConfig) => Promise<Result<Response, NetworkError>>;
export declare const createResponse: (responseInput: TResponseInput, config: any) => Promise<Result<TResponse, NetworkError>>;
export declare const updateResponse: (responseInput: TResponseInput, responseId: string, config: JsConfig) => Promise<Result<TResponse, NetworkError>>;

@@ -1,3 +0,3 @@

import { TResponseInput, TResponse } from "@formbricks/types/v1/responses";
import { TResponse, TResponseInput, TResponseUpdateInput } from "@formbricks/types/v1/responses";
export declare const createResponse: (responseInput: TResponseInput, apiHost: string) => Promise<TResponse>;
export declare const updateResponse: (responseInput: TResponseInput, responseId: string, apiHost: string) => Promise<TResponse>;
export declare const updateResponse: (responseInput: TResponseUpdateInput, responseId: string, apiHost: string) => Promise<TResponse>;

@@ -57,4 +57,4 @@ import { z } from "zod";

name: z.ZodString;
description: z.ZodString;
noCodeConfig: z.ZodObject<{
description: z.ZodUnion<[z.ZodString, z.ZodNull]>;
noCodeConfig: z.ZodUnion<[z.ZodObject<{
type: z.ZodUnion<[z.ZodLiteral<"innerHtml">, z.ZodLiteral<"pageUrl">, z.ZodLiteral<"cssSelector">]>;

@@ -109,3 +109,3 @@ pageUrl: z.ZodOptional<z.ZodObject<{

};
}>;
}>, z.ZodNull]>;
type: z.ZodEnum<["code", "noCode", "automatic"]>;

@@ -112,0 +112,0 @@ }, "strip", z.ZodTypeAny, {

import { z } from "zod";
export declare const ZResponseData: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
export declare const ZResponseData: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodArray<z.ZodString, "many">]>>;
export type TResponseData = z.infer<typeof ZResponseData>;
declare const ZResponse: z.ZodObject<{
id: z.ZodString;
createdAt: z.ZodString;
updatedAt: z.ZodString;
createdAt: z.ZodDate;
updatedAt: z.ZodDate;
surveyId: z.ZodString;

@@ -20,7 +20,7 @@ person: z.ZodNullable<z.ZodObject<{

finished: z.ZodBoolean;
data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodArray<z.ZodString, "many">]>>;
}, "strip", z.ZodTypeAny, {
id?: string;
createdAt?: string;
updatedAt?: string;
createdAt?: Date;
updatedAt?: Date;
surveyId?: string;

@@ -32,7 +32,7 @@ person?: {

finished?: boolean;
data?: Record<string, string | number>;
data?: Record<string, string | number | string[]>;
}, {
id?: string;
createdAt?: string;
updatedAt?: string;
createdAt?: Date;
updatedAt?: Date;
surveyId?: string;

@@ -44,3 +44,3 @@ person?: {

finished?: boolean;
data?: Record<string, string | number>;
data?: Record<string, string | number | string[]>;
}>;

@@ -52,3 +52,3 @@ export type TResponse = z.infer<typeof ZResponse>;

finished: z.ZodBoolean;
data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodArray<z.ZodString, "many">]>>;
}, "strip", z.ZodTypeAny, {

@@ -58,3 +58,3 @@ surveyId?: string;

finished?: boolean;
data?: Record<string, string | number>;
data?: Record<string, string | number | string[]>;
}, {

@@ -64,5 +64,16 @@ surveyId?: string;

finished?: boolean;
data?: Record<string, string | number>;
data?: Record<string, string | number | string[]>;
}>;
export type TResponseInput = z.infer<typeof ZResponseInput>;
export declare const ZResponseUpdateInput: z.ZodObject<{
finished: z.ZodBoolean;
data: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodArray<z.ZodString, "many">]>>;
}, "strip", z.ZodTypeAny, {
finished?: boolean;
data?: Record<string, string | number | string[]>;
}, {
finished?: boolean;
data?: Record<string, string | number | string[]>;
}>;
export type TResponseUpdateInput = z.infer<typeof ZResponseUpdateInput>;
export {};
{
"name": "@formbricks/js",
"license": "MIT",
"version": "0.1.20",
"version": "0.1.21",
"description": "Formbricks-js allows you to connect your app to Formbricks, display surveys and trigger events.",

@@ -60,5 +60,5 @@ "keywords": [

"typescript": "^5.1.3",
"@formbricks/types": "0.0.0",
"@formbricks/api": "0.1.0",
"eslint-config-formbricks": "1.0.0",
"@formbricks/types": "0.0.0"
"eslint-config-formbricks": "1.0.0"
},

@@ -65,0 +65,0 @@ "jest": {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc