@modulbank/sendamo
Advanced tools
Comparing version 0.0.16 to 0.0.17
import { iParams } from './types'; | ||
export default function SandAmo(amoUrl: string): { | ||
takeParamsForSendAmo: (phoneNumber: string, name: string, actionType?: string, productCode?: string, desc?: string) => iParams; | ||
takeParamsForSendAmo: (phoneNumber: string, name: string, actionType?: string, productCode?: string, comment?: string) => iParams; | ||
sendAmo: (params: iParams) => Promise<{}>; | ||
}; |
@@ -13,3 +13,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
const regexp = /^\+(\s)?\d{1,2}\s?(\()?\d{3,5}(\))?\s?\d{1,3}[-\s]?\d{2}[-\s]?\d{2}$/; | ||
function takeParamsForSendAmo(phoneNumber, name, actionType = 'PosBuyOnCreditCashbox', productCode = 'modulkassa.ru', desc) { | ||
function takeParamsForSendAmo(phoneNumber, name, actionType = 'PosBuyOnCreditCashbox', productCode = 'modulkassa.ru', comment) { | ||
var _a, _b, _c, _d, _e, _f, _g; | ||
@@ -48,3 +48,3 @@ if (!regexp.test(phoneNumber)) { | ||
productCode, | ||
desc, | ||
comment, | ||
}; | ||
@@ -51,0 +51,0 @@ if (params.utmSource === 'modulkassa.pro') |
@@ -19,3 +19,3 @@ declare type funnels = 'Agenti' | 'kassy_onlayn' | 'Predoplata' | 'Partners' | 'Corporate' | 'InternetEkvairing' | 'bank'; | ||
actionType?: string; | ||
desc?: string; | ||
comment?: string; | ||
product1?: string; | ||
@@ -22,0 +22,0 @@ product2?: string; |
{ | ||
"name": "@modulbank/sendamo", | ||
"version": "0.0.16", | ||
"version": "0.0.17", | ||
"description": "send to amocrm method", | ||
@@ -5,0 +5,0 @@ "homepage": "", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
5859
1