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

sms77-client

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sms77-client - npm Package Compare versions

Comparing version 1.4.0 to 1.4.1

dist/CONSTANTS.d.ts

4

dist/Sms77Client.d.ts

@@ -1,2 +0,2 @@

import { ContactsParams, ContactsResponse, LookupParams, LookupResponse, PricingParams, PricingResponse, SmsParams, StatusParams, StatusResponse, ValidateForVoiceParams, ValidateForVoiceResponse, VoiceParams, VoiceResponse } from './types';
import { ContactsParams, ContactsResponse, LookupParams, LookupResponse, PricingParams, PricingResponse, SmsParams, SmsResponse, StatusParams, StatusResponse, ValidateForVoiceParams, ValidateForVoiceResponse, VoiceParams, VoiceResponse } from './types';
export * from './types';

@@ -12,3 +12,3 @@ import BaseClient from "./BaseClient";

pricing(params: PricingParams): Promise<PricingResponse>;
sms(params: SmsParams): Promise<any>;
sms(params: SmsParams): Promise<SmsResponse>;
status(params: StatusParams): Promise<StatusResponse>;

@@ -15,0 +15,0 @@ validateForVoice(params: ValidateForVoiceParams): Promise<ValidateForVoiceResponse>;

import { GSM_CODES } from './constants/GSM_CODES';
import { NETWORK_TYPES } from "./constants/NETWORK_TYPES";
import { CONTACTS_ACTIONS } from "./constants/CONTACTS_ACTIONS";
import { LOOKUP_TYPES } from "./constants/LOOKUP_TYPES";
import { PROVIDER_NAMES } from "./constants/PROVIDER_NAMES";
import { STATUS_REPORT_CODES } from "./constants/STATUS_REPORT_CODES";
import { NETWORK_TYPES } from './constants/NETWORK_TYPES';
import { CONTACTS_ACTIONS } from './constants/CONTACTS_ACTIONS';
import { LOOKUP_TYPES } from './constants/LOOKUP_TYPES';
import { PROVIDER_NAMES } from './constants/PROVIDER_NAMES';
import { STATUS_REPORT_CODES } from './constants/STATUS_REPORT_CODES';
export declare type GsmCode = (typeof GSM_CODES)[number];

@@ -83,2 +83,3 @@ export declare type NetworkType = (typeof NETWORK_TYPES)[number];

};
export declare type SmsType = 'direct' | 'economy';
export declare type SmsParams = {

@@ -99,6 +100,26 @@ text: string;

ttl?: string;
type?: 'direct' | 'economy';
type?: SmsType;
performance_tracking?: boolean;
return_msg_id?: boolean;
};
export declare type SmsJsonResponse = {
debug: 'true' | 'false';
balance: number;
messages: [{
encoding: string;
error: string | null;
error_text: string | null;
id: string;
messages?: string[];
parts: number;
price: number;
recipient: string;
sender: string;
success: boolean;
text: string;
}];
sms_type: SmsType;
success: string;
total_price: number;
};
export declare type StatusParams = {

@@ -129,18 +150,20 @@ msg_id: string;

};
export declare type SmsResponse = string | SmsJsonResponse;
export declare type CountryNetwork = {
countryCode: string;
countryName: string;
countryPrefix: string;
networks: {
comment: string;
features: string[];
mcc: string;
mncs: string[];
networkName: string;
price: number;
};
};
export declare type PricingResponse = {
countCountries: number;
countNetworks: number;
countries: {
countryCode: string;
countryName: string;
countryPrefix: string;
networks: {
mcc: string;
mncs: string[];
networkName: string;
price: number;
features: string[];
comment: string;
}[];
}[];
countries: CountryNetwork[];
};

@@ -147,0 +170,0 @@ export declare type StatusResponse = {

@@ -7,3 +7,3 @@ {

"tsify": "^4.0.1",
"typescript": "^3.7.5"
"typescript": "^3.8.3"
},

@@ -25,3 +25,3 @@ "files": ["dist/Sms77Client.umd.js", "dist/constants/*.d.ts", "dist/*.d.ts"],

"types": "dist/Sms77Client.d.ts",
"version": "1.4.0"
"version": "1.4.1"
}
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