sms77-client
Advanced tools
Comparing version 1.4.0 to 1.4.1
@@ -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" | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
33149
19
615
1