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

@wix/crm_contacts

Package Overview
Dependencies
Maintainers
0
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wix/crm_contacts - npm Package Compare versions

Comparing version 1.0.34 to 1.0.35

197

build/cjs/src/contacts-v4-contact-contacts.context.js

@@ -5,2 +5,3 @@ "use strict";

const contacts_v4_contact_contacts_public_1 = require("./contacts-v4-contact-contacts.public");
const context_1 = require("@wix/sdk-runtime/context");
const contacts_v4_contact_contacts_public_2 = require("./contacts-v4-contact-contacts.public");

@@ -10,186 +11,14 @@ const contacts_v4_contact_contacts_public_3 = require("./contacts-v4-contact-contacts.public");

const contacts_v4_contact_contacts_public_5 = require("./contacts-v4-contact-contacts.public");
const createContact = (...args) => {
const context =
// @ts-expect-error
typeof $wixContext !== 'undefined'
? // @ts-expect-error
$wixContext
: // @ts-expect-error
globalThis.__wix_context__;
if (!context) {
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
}
return context
.initWixModules(contacts_v4_contact_contacts_public_1.createContact, args[1]?.supressAuth ? true : false)
.apply(undefined, args);
};
exports.createContact = createContact;
const updateContact = (...args) => {
const context =
// @ts-expect-error
typeof $wixContext !== 'undefined'
? // @ts-expect-error
$wixContext
: // @ts-expect-error
globalThis.__wix_context__;
if (!context) {
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
}
return context
.initWixModules(contacts_v4_contact_contacts_public_1.updateContact, args[1]?.supressAuth ? true : false)
.apply(undefined, args);
};
exports.updateContact = updateContact;
const mergeContacts = (...args) => {
const context =
// @ts-expect-error
typeof $wixContext !== 'undefined'
? // @ts-expect-error
$wixContext
: // @ts-expect-error
globalThis.__wix_context__;
if (!context) {
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
}
return context
.initWixModules(contacts_v4_contact_contacts_public_1.mergeContacts, args[1]?.supressAuth ? true : false)
.apply(undefined, args);
};
exports.mergeContacts = mergeContacts;
const deleteContact = (...args) => {
const context =
// @ts-expect-error
typeof $wixContext !== 'undefined'
? // @ts-expect-error
$wixContext
: // @ts-expect-error
globalThis.__wix_context__;
if (!context) {
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
}
return context
.initWixModules(contacts_v4_contact_contacts_public_1.deleteContact, args[1]?.supressAuth ? true : false)
.apply(undefined, args);
};
exports.deleteContact = deleteContact;
const labelContact = (...args) => {
const context =
// @ts-expect-error
typeof $wixContext !== 'undefined'
? // @ts-expect-error
$wixContext
: // @ts-expect-error
globalThis.__wix_context__;
if (!context) {
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
}
return context
.initWixModules(contacts_v4_contact_contacts_public_1.labelContact, args[1]?.supressAuth ? true : false)
.apply(undefined, args);
};
exports.labelContact = labelContact;
const unlabelContact = (...args) => {
const context =
// @ts-expect-error
typeof $wixContext !== 'undefined'
? // @ts-expect-error
$wixContext
: // @ts-expect-error
globalThis.__wix_context__;
if (!context) {
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
}
return context
.initWixModules(contacts_v4_contact_contacts_public_1.unlabelContact, args[1]?.supressAuth ? true : false)
.apply(undefined, args);
};
exports.unlabelContact = unlabelContact;
const queryContacts = (...args) => {
const context =
// @ts-expect-error
typeof $wixContext !== 'undefined'
? // @ts-expect-error
$wixContext
: // @ts-expect-error
globalThis.__wix_context__;
if (!context) {
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
}
return context
.initWixModules(contacts_v4_contact_contacts_public_1.queryContacts, args[1]?.supressAuth ? true : false)
.apply(undefined, args);
};
exports.queryContacts = queryContacts;
const getContact = (...args) => {
const context =
// @ts-expect-error
typeof $wixContext !== 'undefined'
? // @ts-expect-error
$wixContext
: // @ts-expect-error
globalThis.__wix_context__;
if (!context) {
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
}
return context
.initWixModules(contacts_v4_contact_contacts_public_1.getContact, args[1]?.supressAuth ? true : false)
.apply(undefined, args);
};
exports.getContact = getContact;
const onContactCreated = (...args) => {
const context =
// @ts-expect-error
typeof $wixContext !== 'undefined'
? // @ts-expect-error
$wixContext
: // @ts-expect-error
globalThis.__wix_context__;
if (!context) {
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
}
return context.initWixModules(contacts_v4_contact_contacts_public_2.onContactCreated).apply(undefined, args);
};
exports.onContactCreated = onContactCreated;
const onContactUpdated = (...args) => {
const context =
// @ts-expect-error
typeof $wixContext !== 'undefined'
? // @ts-expect-error
$wixContext
: // @ts-expect-error
globalThis.__wix_context__;
if (!context) {
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
}
return context.initWixModules(contacts_v4_contact_contacts_public_3.onContactUpdated).apply(undefined, args);
};
exports.onContactUpdated = onContactUpdated;
const onContactMerged = (...args) => {
const context =
// @ts-expect-error
typeof $wixContext !== 'undefined'
? // @ts-expect-error
$wixContext
: // @ts-expect-error
globalThis.__wix_context__;
if (!context) {
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
}
return context.initWixModules(contacts_v4_contact_contacts_public_4.onContactMerged).apply(undefined, args);
};
exports.onContactMerged = onContactMerged;
const onContactDeleted = (...args) => {
const context =
// @ts-expect-error
typeof $wixContext !== 'undefined'
? // @ts-expect-error
$wixContext
: // @ts-expect-error
globalThis.__wix_context__;
if (!context) {
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
}
return context.initWixModules(contacts_v4_contact_contacts_public_5.onContactDeleted).apply(undefined, args);
};
exports.onContactDeleted = onContactDeleted;
exports.createContact = (0, context_1.contextualizeRESTModule)(contacts_v4_contact_contacts_public_1.createContact, 1);
exports.updateContact = (0, context_1.contextualizeRESTModule)(contacts_v4_contact_contacts_public_1.updateContact, 1);
exports.mergeContacts = (0, context_1.contextualizeRESTModule)(contacts_v4_contact_contacts_public_1.mergeContacts, 1);
exports.deleteContact = (0, context_1.contextualizeRESTModule)(contacts_v4_contact_contacts_public_1.deleteContact, 1);
exports.labelContact = (0, context_1.contextualizeRESTModule)(contacts_v4_contact_contacts_public_1.labelContact, 1);
exports.unlabelContact = (0, context_1.contextualizeRESTModule)(contacts_v4_contact_contacts_public_1.unlabelContact, 1);
exports.queryContacts = (0, context_1.contextualizeRESTModule)(contacts_v4_contact_contacts_public_1.queryContacts, 1);
exports.getContact = (0, context_1.contextualizeRESTModule)(contacts_v4_contact_contacts_public_1.getContact, 1);
exports.onContactCreated = (0, context_1.contextualizeEventDefinitionModule)(contacts_v4_contact_contacts_public_2.onContactCreated);
exports.onContactUpdated = (0, context_1.contextualizeEventDefinitionModule)(contacts_v4_contact_contacts_public_3.onContactUpdated);
exports.onContactMerged = (0, context_1.contextualizeEventDefinitionModule)(contacts_v4_contact_contacts_public_4.onContactMerged);
exports.onContactDeleted = (0, context_1.contextualizeEventDefinitionModule)(contacts_v4_contact_contacts_public_5.onContactDeleted);
//# sourceMappingURL=contacts-v4-contact-contacts.context.js.map
import { createContact as publicCreateContact, updateContact as publicUpdateContact, mergeContacts as publicMergeContacts, deleteContact as publicDeleteContact, labelContact as publicLabelContact, unlabelContact as publicUnlabelContact, queryContacts as publicQueryContacts, getContact as publicGetContact, } from './contacts-v4-contact-contacts.public';
import { contextualizeRESTModule, contextualizeEventDefinitionModule, } from '@wix/sdk-runtime/context';
import { onContactCreated as publicOnContactCreated } from './contacts-v4-contact-contacts.public';

@@ -6,174 +7,14 @@ import { onContactUpdated as publicOnContactUpdated } from './contacts-v4-contact-contacts.public';

import { onContactDeleted as publicOnContactDeleted } from './contacts-v4-contact-contacts.public';
export const createContact = (...args) => {
const context =
// @ts-expect-error
typeof $wixContext !== 'undefined'
? // @ts-expect-error
$wixContext
: // @ts-expect-error
globalThis.__wix_context__;
if (!context) {
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
}
return context
.initWixModules(publicCreateContact, args[1]?.supressAuth ? true : false)
.apply(undefined, args);
};
export const updateContact = (...args) => {
const context =
// @ts-expect-error
typeof $wixContext !== 'undefined'
? // @ts-expect-error
$wixContext
: // @ts-expect-error
globalThis.__wix_context__;
if (!context) {
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
}
return context
.initWixModules(publicUpdateContact, args[1]?.supressAuth ? true : false)
.apply(undefined, args);
};
export const mergeContacts = (...args) => {
const context =
// @ts-expect-error
typeof $wixContext !== 'undefined'
? // @ts-expect-error
$wixContext
: // @ts-expect-error
globalThis.__wix_context__;
if (!context) {
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
}
return context
.initWixModules(publicMergeContacts, args[1]?.supressAuth ? true : false)
.apply(undefined, args);
};
export const deleteContact = (...args) => {
const context =
// @ts-expect-error
typeof $wixContext !== 'undefined'
? // @ts-expect-error
$wixContext
: // @ts-expect-error
globalThis.__wix_context__;
if (!context) {
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
}
return context
.initWixModules(publicDeleteContact, args[1]?.supressAuth ? true : false)
.apply(undefined, args);
};
export const labelContact = (...args) => {
const context =
// @ts-expect-error
typeof $wixContext !== 'undefined'
? // @ts-expect-error
$wixContext
: // @ts-expect-error
globalThis.__wix_context__;
if (!context) {
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
}
return context
.initWixModules(publicLabelContact, args[1]?.supressAuth ? true : false)
.apply(undefined, args);
};
export const unlabelContact = (...args) => {
const context =
// @ts-expect-error
typeof $wixContext !== 'undefined'
? // @ts-expect-error
$wixContext
: // @ts-expect-error
globalThis.__wix_context__;
if (!context) {
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
}
return context
.initWixModules(publicUnlabelContact, args[1]?.supressAuth ? true : false)
.apply(undefined, args);
};
export const queryContacts = (...args) => {
const context =
// @ts-expect-error
typeof $wixContext !== 'undefined'
? // @ts-expect-error
$wixContext
: // @ts-expect-error
globalThis.__wix_context__;
if (!context) {
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
}
return context
.initWixModules(publicQueryContacts, args[1]?.supressAuth ? true : false)
.apply(undefined, args);
};
export const getContact = (...args) => {
const context =
// @ts-expect-error
typeof $wixContext !== 'undefined'
? // @ts-expect-error
$wixContext
: // @ts-expect-error
globalThis.__wix_context__;
if (!context) {
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
}
return context
.initWixModules(publicGetContact, args[1]?.supressAuth ? true : false)
.apply(undefined, args);
};
export const onContactCreated = (...args) => {
const context =
// @ts-expect-error
typeof $wixContext !== 'undefined'
? // @ts-expect-error
$wixContext
: // @ts-expect-error
globalThis.__wix_context__;
if (!context) {
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
}
return context.initWixModules(publicOnContactCreated).apply(undefined, args);
};
export const onContactUpdated = (...args) => {
const context =
// @ts-expect-error
typeof $wixContext !== 'undefined'
? // @ts-expect-error
$wixContext
: // @ts-expect-error
globalThis.__wix_context__;
if (!context) {
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
}
return context.initWixModules(publicOnContactUpdated).apply(undefined, args);
};
export const onContactMerged = (...args) => {
const context =
// @ts-expect-error
typeof $wixContext !== 'undefined'
? // @ts-expect-error
$wixContext
: // @ts-expect-error
globalThis.__wix_context__;
if (!context) {
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
}
return context.initWixModules(publicOnContactMerged).apply(undefined, args);
};
export const onContactDeleted = (...args) => {
const context =
// @ts-expect-error
typeof $wixContext !== 'undefined'
? // @ts-expect-error
$wixContext
: // @ts-expect-error
globalThis.__wix_context__;
if (!context) {
throw new Error('Wix context is not available. Make sure to initialize the Wix context before using SDK modules');
}
return context.initWixModules(publicOnContactDeleted).apply(undefined, args);
};
export const createContact = contextualizeRESTModule(publicCreateContact, 1);
export const updateContact = contextualizeRESTModule(publicUpdateContact, 1);
export const mergeContacts = contextualizeRESTModule(publicMergeContacts, 1);
export const deleteContact = contextualizeRESTModule(publicDeleteContact, 1);
export const labelContact = contextualizeRESTModule(publicLabelContact, 1);
export const unlabelContact = contextualizeRESTModule(publicUnlabelContact, 1);
export const queryContacts = contextualizeRESTModule(publicQueryContacts, 1);
export const getContact = contextualizeRESTModule(publicGetContact, 1);
export const onContactCreated = contextualizeEventDefinitionModule(publicOnContactCreated);
export const onContactUpdated = contextualizeEventDefinitionModule(publicOnContactUpdated);
export const onContactMerged = contextualizeEventDefinitionModule(publicOnContactMerged);
export const onContactDeleted = contextualizeEventDefinitionModule(publicOnContactDeleted);
//# sourceMappingURL=contacts-v4-contact-contacts.context.js.map

9

package.json
{
"name": "@wix/crm_contacts",
"version": "1.0.34",
"version": "1.0.35",
"publishConfig": {

@@ -23,7 +23,6 @@ "registry": "https://registry.npmjs.org/",

"@wix/motion-edm-autogen-query-wrapper": "^1.0.37",
"@wix/sdk-runtime": "^0.2.12",
"@wix/sdk-types": "^1.7.1"
"@wix/sdk-runtime": "^0.3.2",
"@wix/sdk-types": "^1.9.0"
},
"devDependencies": {
"@wix/sdk": "https://cdn.dev.wixpress.com/@wix/sdk/02e8069ab2fd783e0e6a080fc7d590e76cb26ab93c8389574286305b.tar.gz",
"glob": "^10.4.1",

@@ -49,3 +48,3 @@ "rollup": "^4.18.0",

},
"falconPackageHash": "1254ecbb4712c3840d7ec74c7a5dc3a85f41373a76d504ec15589851"
"falconPackageHash": "b78dc727b30e59fb0f431e36911960cffa32f7f65d7d05ae013e152a"
}

@@ -873,2 +873,3 @@ interface Contact {

request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
}

@@ -899,9 +900,16 @@ type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;

isDomainEvent?: boolean;
transformations?: unknown;
transformations?: (envelope: unknown) => Payload;
__payload: Payload;
};
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, _transformations?: unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
declare global {
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
interface SymbolConstructor {
readonly observable: symbol;
}
}
declare function createContact$1(httpClient: HttpClient): (info: ContactInfo, options?: CreateContactOptions) => Promise<CreateContactResponse & CreateContactResponseNonNullableFields>;

@@ -908,0 +916,0 @@ declare function updateContact$1(httpClient: HttpClient): (contactId: string, info: ContactInfo, revision: number | null, options?: UpdateContactOptions) => Promise<UpdateContactResponse & UpdateContactResponseNonNullableFields>;

Sorry, the diff of this file is not supported yet

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