mailchimp-api-v3
Advanced tools
Comparing version 1.9.0 to 1.10.0
120
index.d.ts
@@ -0,1 +1,83 @@ | ||
// export as namespace mailchimpApiV3; | ||
export = Mailchimp; | ||
declare class Mailchimp { | ||
constructor(api:string) | ||
get( | ||
pathOrOptions: PathOrOptions, | ||
query?: Query, | ||
): Promise<any>; | ||
get( | ||
pathOrOptions: PathOrOptions, | ||
query?: Query, | ||
callback?: Callback, | ||
): void; | ||
get( | ||
pathOrOptions: PathOrOptions, | ||
callback?: Callback, | ||
): void; | ||
post( | ||
pathOrOptions: PathOrOptions, | ||
body?: Body, | ||
): Promise<any>; | ||
post( | ||
pathOrOptions: PathOrOptions, | ||
body?: Body, | ||
callback?: Callback, | ||
): void; | ||
post( | ||
pathOrOptions: PathOrOptions, | ||
callback?: Callback, | ||
): void; | ||
patch( | ||
pathOrOptions: PathOrOptions, | ||
body?: Body, | ||
): Promise<any>; | ||
patch( | ||
pathOrOptions: PathOrOptions, | ||
body?: Body, | ||
callback?: Callback, | ||
): void; | ||
patch( | ||
pathOrOptions: PathOrOptions, | ||
callback?: Callback, | ||
): void; | ||
put( | ||
pathOrOptions: PathOrOptions, | ||
body?: Body, | ||
): Promise<any>; | ||
put( | ||
pathOrOptions: PathOrOptions, | ||
body?: Body, | ||
callback?: Callback, | ||
): void; | ||
put( | ||
pathOrOptions: PathOrOptions, | ||
callback?: Callback, | ||
): void; | ||
delete( | ||
pathOrOptions: PathOrOptions, | ||
): Promise<any>; | ||
delete( | ||
pathOrOptions: PathOrOptions, | ||
callback?: Callback, | ||
): void; | ||
request( | ||
options: Options, | ||
): Promise<any>; | ||
request( | ||
options: Options, | ||
callback?: Callback, | ||
): void; | ||
batch:any | ||
} | ||
type Path = string; | ||
@@ -13,39 +95,1 @@ type Options = {}; | ||
type BodyOrCallback = Body | Callback; | ||
declare module "mailchimp-api-v3" { | ||
export interface IMailchimp { | ||
get( | ||
pathOrOptions: PathOrOptions, | ||
queryOrCallback?: QueryOrCallback, | ||
callback?: Callback, | ||
): Promise<any>; | ||
post( | ||
pathOrOptions: PathOrOptions, | ||
bodyOrCallback?: BodyOrCallback, | ||
callback?: Callback, | ||
): Promise<any>; | ||
patch( | ||
pathOrOptions: PathOrOptions, | ||
bodyOrCallback?: BodyOrCallback, | ||
callback?: Callback, | ||
): Promise<any>; | ||
put( | ||
pathOrOptions: PathOrOptions, | ||
bodyOrCallback?: BodyOrCallback, | ||
callback?: Callback, | ||
): Promise<any>; | ||
delete( | ||
pathOrOptions: PathOrOptions, | ||
callback?: Callback, | ||
): Promise<any>; | ||
request( | ||
options: Options, | ||
callback?: Callback, | ||
): Promise<any>; | ||
} | ||
} |
{ | ||
"name": "mailchimp-api-v3", | ||
"version": "1.9.0", | ||
"version": "1.10.0", | ||
"description": "Mailchimp wrapper for v3 of the mailchimp api, with transparant handling of batch operations", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
29775
8
903