New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@types/mparticle__web-sdk

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/mparticle__web-sdk - npm Package Compare versions

Comparing version 2.15.0 to 2.15.1

81

mparticle__web-sdk/index.d.ts

@@ -45,8 +45,3 @@ // Type definitions for mParticle/web-sdk SDK 2.15

export interface SDKEventCustomFlags {
[key: string]:
| number
| string
| boolean
| unknown[]
| Record<string, unknown>;
[key: string]: number | string | boolean | unknown[] | Record<string, unknown>;
}

@@ -102,17 +97,7 @@

interface LogForm {
(
selector: string | HTMLElement,
eventName: string,
eventType?: EventType,
eventInfo?: SDKEventAttrs,
): void;
(selector: string | HTMLElement, eventName: string, eventType?: EventType, eventInfo?: SDKEventAttrs): void;
}
interface LogLink {
(
selector: string | HTMLElement,
eventName: string,
eventType?: EventType,
eventInfo?: SDKEventAttrs,
): void;
(selector: string | HTMLElement, eventName: string, eventType?: EventType, eventInfo?: SDKEventAttrs): void;
}

@@ -218,3 +203,3 @@

interface Logout {
(identityApiData: IdentityApiData, callback?: IdentityCallback): void;
(identityApiData?: IdentityApiData | {} | null, callback?: IdentityCallback): void;
}

@@ -242,8 +227,3 @@ interface Modify {

interface CreatePromotion {
(
id: string,
creative?: string,
name?: string,
position?: number,
): Promotion;
(id: string, creative?: string, name?: string, position?: number): Promotion;
}

@@ -261,8 +241,3 @@ interface CreateTransactionAttributes {

interface LogCheckout {
(
step: number,
options?: string,
attrs?: SDKEventAttrs,
customFlags?: SDKEventCustomFlags,
): void;
(step: number, options?: string, attrs?: SDKEventAttrs, customFlags?: SDKEventCustomFlags): void;
}

@@ -385,6 +360,3 @@ interface LogImpression {

setCCPAConsentState: (ccpaConsentState: CCPAConsentState) => ConsentState;
addGDPRConsentState: (
purpose: string,
gdprConsent: PrivacyConsentState,
) => ConsentState;
addGDPRConsentState: (purpose: string, gdprConsent: PrivacyConsentState) => ConsentState;
getGDPRConsentState: () => GDPRConsentState;

@@ -521,3 +493,3 @@ getCCPAConsentState: () => CCPAConsentState;

export interface User {
getUserIdentities: () => UserIdentities;
getUserIdentities: () => IdentityApiData;
getMPID: () => MPID;

@@ -545,6 +517,3 @@ setUserTag: (tag: string) => void;

export type UserAttributesValue = string | number | boolean | null;
export type AllUserAttributes = Record<
string,
UserAttributesValue | UserAttributesValue[]
>;
export type AllUserAttributes = Record<string, UserAttributesValue | UserAttributesValue[]>;
export interface UserIdentities {

@@ -593,12 +562,12 @@ customerid?: string | undefined;

export interface Product {
name: string;
sku: string;
price: number;
quantity?: number | undefined;
variant?: string | undefined;
category?: string | undefined;
brand?: string | undefined;
position?: number | undefined;
coupon?: string | undefined;
attributes?: Record<string, unknown> | undefined;
Name: string;
Sku: string;
Price: number;
Quantity?: number | undefined;
Variant?: string | undefined;
Category?: string | undefined;
Brand?: string | undefined;
Position?: number | undefined;
Coupon?: string | undefined;
Attributes?: Record<string, unknown> | undefined;
}

@@ -616,11 +585,11 @@

export interface Impression {
name: string;
product: Product;
Name: string;
Product: Product;
}
export interface Promotion {
id: string;
creative?: string | undefined;
name?: string | undefined;
position?: number | undefined;
Id: string;
Creative?: string | undefined;
Name?: string | undefined;
Position?: number | undefined;
}

@@ -627,0 +596,0 @@

{
"name": "@types/mparticle__web-sdk",
"version": "2.15.0",
"version": "2.15.1",
"description": "TypeScript definitions for mParticle/web-sdk SDK",

@@ -28,4 +28,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mparticle__web-sdk",

"dependencies": {},
"typesPublisherContentHash": "67174723e975ac8cab105ed0bf85255b8d2daf38f67c9f3cf30afd7ef53747b7",
"typesPublisherContentHash": "156d1aafb90f1c3e231768abb7d08b50f19f206051bf7e313f777d61dd2cfe9c",
"typeScriptVersion": "3.9"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Wed, 02 Mar 2022 20:31:44 GMT
* Last updated: Tue, 12 Apr 2022 16:31:18 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: `mParticle`

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