Comparing version 2.0.0 to 2.1.0
import { Data, Locate, Coordinate, ContactsInfo, Features, Result } from "./models/Apartment"; | ||
import { Feed, FeedPayload, FeedResponseOnCreate, Filter, OtherFilter } from "./models/Feed"; | ||
import { Feed, FeedPayload, FeedResponseOnCreate, Filter, OtherFilter, QueryFilter } from "./models/Feed"; | ||
import { Type } from "./models/Types"; | ||
declare const _default: (token: string) => { | ||
getFeed: (id: number) => Promise<Data>; | ||
getFeed: (id: number, params?: Partial<QueryFilter>) => Promise<Data>; | ||
deleteFeed: (id: number) => Promise<{ | ||
@@ -15,2 +15,2 @@ success: boolean; | ||
export default _default; | ||
export { Feed, FeedPayload, FeedResponseOnCreate, Filter, OtherFilter, Data, Type, Locate, Coordinate, ContactsInfo, Features, Result, }; | ||
export { Feed, FeedPayload, FeedResponseOnCreate, Filter, OtherFilter, QueryFilter, Data, Type, Locate, Coordinate, ContactsInfo, Features, Result, }; |
"use strict"; | ||
var __assign = (this && this.__assign) || function () { | ||
__assign = Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
@@ -77,8 +88,7 @@ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
}); }; | ||
var getFeed = function (id) { return __awaiter(void 0, void 0, void 0, function () { | ||
var getFeed = function (id, params) { return __awaiter(void 0, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, axios_1.default.get("".concat(baseUrl, "/listing-alerts/feeds/").concat(id), config)]; | ||
case 1: return [2 /*return*/, (_a.sent()) | ||
.data]; | ||
case 0: return [4 /*yield*/, axios_1.default.get("".concat(baseUrl, "/listing-alerts/feeds/").concat(id), __assign(__assign({}, config), { params: params }))]; | ||
case 1: return [2 /*return*/, (_a.sent()).data]; | ||
} | ||
@@ -85,0 +95,0 @@ }); |
@@ -51,1 +51,9 @@ import { Coordinate } from "./Apartment"; | ||
}; | ||
export type QueryFilter = { | ||
limit: number; | ||
offset: number; | ||
order_by: "alert_id" | " created_at" | "updated_at"; | ||
alert_date_from: "string"; | ||
alert_date_to: "string"; | ||
alert_subtype: "new" | "price_up" | "price_down" | "reserved" | "delisted" | "sold"; | ||
}; |
{ | ||
"name": "casafari", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "Casafari api legacy", | ||
@@ -5,0 +5,0 @@ "main": "dist/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
11830
269