@modulbank/sendamo
Advanced tools
Comparing version 0.0.15 to 0.0.16
import { iParams } from './types'; | ||
export default function SandAmo(amoUrl: string): { | ||
takeParamsForSendAmo: (phoneNumber: string, name: string, actionType?: string, productCode?: string) => iParams; | ||
takeParamsForSendAmo: (phoneNumber: string, name: string, actionType?: string, productCode?: string, desc?: 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') { | ||
function takeParamsForSendAmo(phoneNumber, name, actionType = 'PosBuyOnCreditCashbox', productCode = 'modulkassa.ru', desc) { | ||
var _a, _b, _c, _d, _e, _f, _g; | ||
@@ -48,2 +48,3 @@ if (!regexp.test(phoneNumber)) { | ||
productCode, | ||
desc, | ||
}; | ||
@@ -50,0 +51,0 @@ if (params.utmSource === 'modulkassa.pro') |
@@ -19,2 +19,3 @@ declare type funnels = 'Agenti' | 'kassy_onlayn' | 'Predoplata' | 'Partners' | 'Corporate' | 'InternetEkvairing' | 'bank'; | ||
actionType?: string; | ||
desc?: string; | ||
product1?: string; | ||
@@ -21,0 +22,0 @@ product2?: string; |
export * from './dist'; |
@@ -0,0 +0,0 @@ "use strict"; |
import SendAmo from './dist'; | ||
export default SendAmo; |
{ | ||
"name": "@modulbank/sendamo", | ||
"version": "0.0.15", | ||
"version": "0.0.16", | ||
"description": "send to amocrm method", | ||
@@ -5,0 +5,0 @@ "homepage": "", |
@@ -0,0 +0,0 @@ # SendAmo method |
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
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
5847
122
2