Comparing version 0.2.3 to 0.2.4
@@ -47,2 +47,3 @@ import { AxiosResponse } from 'axios'; | ||
createInstance(instance: TYPE.NewInstance): Promise<AxiosResponse<void>>; | ||
getInstances(params?: Pagination): Promise<AxiosResponse<TYPE.UserShops[]>>; | ||
like(body: TYPE.LikeParams): Promise<AxiosResponse<void>>; | ||
@@ -49,0 +50,0 @@ comment(comment: TYPE.NewComment): Promise<AxiosResponse<string>>; |
@@ -188,2 +188,7 @@ "use strict"; | ||
} | ||
getInstances(params) { | ||
let query = `${resourceName}/instances`; | ||
query += (0, base_1.objectToQuery)(params); | ||
return this.get(query); | ||
} | ||
like(body) { | ||
@@ -190,0 +195,0 @@ const path = 'feed/like'; |
@@ -315,2 +315,12 @@ import { UserRegisterRequest } from '../dto/user/UserRegister.request'; | ||
export declare type EmitAnalytic = EmitAnalyticsRequest; | ||
declare class UserShop { | ||
id: number; | ||
name?: string; | ||
username?: string; | ||
accepted?: number; | ||
} | ||
export declare class UserShops { | ||
instances: UserShop[]; | ||
count: number; | ||
} | ||
export {}; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Saved = void 0; | ||
exports.UserShops = exports.Saved = void 0; | ||
class Saved { | ||
} | ||
exports.Saved = Saved; | ||
class UserShop { | ||
} | ||
class UserShops { | ||
} | ||
exports.UserShops = UserShops; | ||
//# sourceMappingURL=types.js.map |
{ | ||
"name": "tayeh.js", | ||
"version": "0.2.03", | ||
"version": "0.2.04", | ||
"description": "tayeh shop-api client", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
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
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
197110
3854