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

we.sdk

Package Overview
Dependencies
Maintainers
0
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

we.sdk - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

4

lib/types/configCashed.types.js

@@ -15,3 +15,3 @@ /**

/**
* @typedef {Object} Customer
* @typedef {Object} CustomerConfig
* @property {string} number

@@ -23,3 +23,3 @@ * @property {string} password

* @typedef {Object} Config
* @property {Customer} customer
* @property {CustomerConfig} customer
* @property {TTLInMs} ttlInMs

@@ -26,0 +26,0 @@ * @property {CacheProviderInFile | CacheProviderInMemory | CacheProviderInterface} CacheProvider

{
"name": "we.sdk",
"version": "0.1.4",
"version": "0.1.5",
"description": "providing node js interface for controlling, fetching, and modifying your account and quota on the We Telecom Egypt website \n I am shooting to make a complete \"We SDK\" for node js ",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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

declare class WeApi {
export class WeApi {
/**

@@ -43,3 +43,3 @@ * Authenticate user with WE API.

declare class WeCachedApi {
export class WeCachedApi {
constructor(config: Config);

@@ -64,3 +64,3 @@ /**

*/
declare interface CacheProviderInterface {
export interface CacheProviderInterface {
set(key: string, value: any): any;

@@ -73,3 +73,3 @@ get(key: string): any;

declare interface CacheProviderInFile extends CacheProviderInterface {
export interface CacheProviderInFile extends CacheProviderInterface {
}

@@ -80,3 +80,3 @@

*/
declare class CacheProviderInFile implements CacheProviderInterface {
export class CacheProviderInFile implements CacheProviderInterface {
constructor(ttl: TTLInMs, path: string);

@@ -90,6 +90,6 @@ set(key: string, value: any): any;

declare interface CacheProviderInMemory extends CacheProviderInterface {
export interface CacheProviderInMemory extends CacheProviderInterface {
}
declare class CacheProviderInMemory implements CacheProviderInterface {
export class CacheProviderInMemory implements CacheProviderInterface {
constructor(ttl: TTLInMs);

@@ -110,3 +110,3 @@ set(key: string, value: any): any;

*/
declare type IndividualInfo = {
export type IndividualInfo = {
firstName: string;

@@ -132,3 +132,3 @@ lastName: string;

*/
declare type Customer = {
export type Customer = {
custId: string;

@@ -152,3 +152,3 @@ custName: string;

*/
declare type Account = {
export type Account = {
acctId: string;

@@ -178,3 +178,3 @@ acctCode: string;

*/
declare type Subscriber = {
export type Subscriber = {
subscriberId: string;

@@ -211,3 +211,3 @@ custId: string;

*/
declare type UserResponse = {
export type UserResponse = {
utoken: string;

@@ -232,3 +232,3 @@ loginId: string;

*/
declare type BalanceDetail = {
export type BalanceDetail = {
balanceInstanceId: string;

@@ -250,3 +250,3 @@ amount: string;

*/
declare type BalanceInfo = {
export type BalanceInfo = {
balanceType: string;

@@ -267,3 +267,3 @@ balanceTypeName: string;

*/
declare type CreditInfo = {
export type CreditInfo = {
totalCreditAmount: string;

@@ -281,3 +281,3 @@ totalUsageAmount: string;

*/
declare type UserBalanceInfo = {
export type UserBalanceInfo = {
acctId: string;

@@ -289,3 +289,3 @@ balanceInfo: BalanceInfo[];

declare type Hooks = {
export type Hooks = {
beforeRequest: (...params: any[]) => any;

@@ -295,3 +295,3 @@ afterRequest: (...params: any[]) => any;

declare type TTLInMs = {
export type TTLInMs = {
session: number;

@@ -302,31 +302,9 @@ balance: number;

/**
* @property custId - The customer ID.
* @property custName - The customer name.
* @property custGender - The customer gender.
* @property custCode - The customer code.
* @property custType - The customer type.
* @property custClass - The customer class.
* @property individualInfo - The individual's information.
* @property contactPersonList - The list of contact persons.
* @property addressInfoList - The list of addresses.
* @property serviceManagerInfo - The service manager information.
* @property bankCards - The list of bank cards.
*/
declare type Customer = {
custId: string;
custName: string;
custGender: string;
custCode: string;
custType: string;
custClass: string;
individualInfo: IndividualInfo;
contactPersonList: any[];
addressInfoList: any[];
serviceManagerInfo: any[];
bankCards: any[];
export type CustomerConfig = {
number: string;
password: string;
};
declare type Config = {
customer: Customer;
export type Config = {
customer: CustomerConfig;
ttlInMs: TTLInMs;

@@ -352,3 +330,3 @@ CacheProvider: CacheProviderInFile | CacheProviderInMemory | CacheProviderInterface;

*/
declare type FreeUnitBeanDetail = {
export type FreeUnitBeanDetail = {
initialAmount: number;

@@ -387,3 +365,3 @@ currentAmount: number;

*/
declare type FreeUnit = {
export type FreeUnit = {
tabId: string;

@@ -390,0 +368,0 @@ freeUnitType: string;

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