Comparing version 0.2.0 to 0.2.1
@@ -8,2 +8,3 @@ import { Pagination } from '../dto'; | ||
constructor(API_ACCESS: string, INSTANCE_ID: number); | ||
login(instance_id: string): Promise<AxiosResponse<TYPE.VerifiedResponse>>; | ||
getInvoices(params?: TYPE.InvoicesParams): Promise<AxiosResponse<TYPE.InvoiceList>>; | ||
@@ -10,0 +11,0 @@ getInvoice(invoice_id: string): Promise<AxiosResponse<TYPE.Invoice>>; |
@@ -11,2 +11,6 @@ "use strict"; | ||
} | ||
login(instance_id) { | ||
const query = `${resourceName}/${this.INSTANCE_ID}/login`; | ||
return this.post(query, { instance_id }); | ||
} | ||
getInvoices(params) { | ||
@@ -13,0 +17,0 @@ let query = `${resourceName}/${this.INSTANCE_ID}/invoices`; |
@@ -323,2 +323,5 @@ import { Image } from '../dto'; | ||
}; | ||
export declare type VerifiedResponse = { | ||
access_token: string; | ||
}; | ||
export {}; |
{ | ||
"name": "tayeh.js", | ||
"version": "0.2.0", | ||
"version": "0.2.01", | ||
"description": "tayeh shop-api client", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
196608
3834
1