Comparing version 0.1.0 to 1.0.0
@@ -0,1 +1,2 @@ | ||
import { Balance } from "./balance"; | ||
import { Message, PartialMessage } from "./message"; | ||
@@ -21,2 +22,8 @@ import { CancelMessageParams, ListMessageFilters, RequestIncludes, ShowMessageParams } from "./parameters"; | ||
} | ||
export interface GetBalanceSpec { | ||
(): Balance | Promise<Balance>; | ||
} | ||
export interface BalanceApiSpec { | ||
get: GetBalanceSpec; | ||
} | ||
export interface ListMessageResponse { | ||
@@ -23,0 +30,0 @@ total: number; |
import { SpryngRequest } from "./interfaces/http"; | ||
import { BalanceClient } from "./resources/balance-client"; | ||
import { MessageClient } from "./resources/message-client"; | ||
@@ -9,2 +10,3 @@ export declare class Spryng { | ||
message: MessageClient; | ||
balance: BalanceClient; | ||
constructor(apiKey: string); | ||
@@ -11,0 +13,0 @@ sendRequest(request: SpryngRequest): Promise<import("axios").AxiosResponse<any>>; |
@@ -18,2 +18,3 @@ "use strict"; | ||
const qs_1 = require("qs"); | ||
const balance_client_1 = require("./resources/balance-client"); | ||
const message_client_1 = require("./resources/message-client"); | ||
@@ -25,2 +26,3 @@ const API_BASE_URL = 'https://rest.spryngsms.com/v1'; | ||
this.message = new message_client_1.MessageClient(this); | ||
this.balance = new balance_client_1.BalanceClient(this); | ||
this.baseURL = API_BASE_URL; | ||
@@ -27,0 +29,0 @@ this.version = VERSION; |
{ | ||
"name": "spryng", | ||
"version": "0.1.0", | ||
"version": "1.0.0", | ||
"description": "NodeJS SDK for the Spryng SMS API", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -0,1 +1,2 @@ | ||
import { Balance } from "./balance"; | ||
import { Message, PartialMessage } from "./message"; | ||
@@ -27,2 +28,10 @@ import { CancelMessageParams, ListMessageFilters, RequestIncludes, ShowMessageParams } from "./parameters"; | ||
export interface GetBalanceSpec { | ||
(): Balance | Promise<Balance> | ||
} | ||
export interface BalanceApiSpec { | ||
get: GetBalanceSpec | ||
} | ||
export interface ListMessageResponse { | ||
@@ -29,0 +38,0 @@ total: number, |
import axios, { AxiosInstance } from "axios" | ||
import { stringify } from "qs" | ||
import { SpryngRequest } from "./interfaces/http" | ||
import { BalanceClient } from "./resources/balance-client" | ||
import { MessageClient } from "./resources/message-client" | ||
@@ -16,2 +17,3 @@ | ||
public message = new MessageClient(this) | ||
public balance = new BalanceClient(this) | ||
@@ -18,0 +20,0 @@ constructor(apiKey: string) { |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
19407
32
501
1