@pandaenvia/nodejs-sdk
Advanced tools
Comparing version 1.2.4 to 1.3.0
export = Messengers; | ||
declare class Messengers extends AbstractResource { | ||
getAll(): Promise<any>; | ||
getByRadius({ latitude, longitude, radius }: { | ||
latitude: any; | ||
longitude: any; | ||
radius?: number | undefined; | ||
}): Promise<any>; | ||
} | ||
import AbstractResource = require("../src/AbstractResource"); |
@@ -24,4 +24,24 @@ "use strict"; | ||
} | ||
getByRadius({ latitude, longitude, radius = 5000 }) { | ||
const _super = Object.create(null, { | ||
describe: { get: () => super.describe } | ||
}); | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return _super.describe.call(this, { | ||
path: '/messengers/search/{radius}', | ||
method: 'POST', | ||
params: { | ||
radius, | ||
}, | ||
body: { | ||
center: { | ||
latitude, | ||
longitude, | ||
}, | ||
}, | ||
}); | ||
}); | ||
} | ||
} | ||
module.exports = Messengers; | ||
//# sourceMappingURL=Messengers.js.map |
@@ -49,4 +49,9 @@ declare class TokenProvider$1 { | ||
getAll(): Promise<any>; | ||
getByRadius({ latitude, longitude, radius }: { | ||
latitude: any; | ||
longitude: any; | ||
radius?: number | undefined; | ||
}): Promise<any>; | ||
} | ||
export { Messengers, Notification }; |
'use strict'; | ||
const Notification = require('../resources/Notification'); | ||
const Messengers = require('../resources/Messengers'); | ||
module.exports = { | ||
@@ -8,0 +6,0 @@ Notification, |
@@ -0,1 +1,7 @@ | ||
### 1.3.0 (2022-11-01) | ||
##### Other Changes | ||
* **messengers:** add to Messengers resource getByRadius method :D (395c8d43) | ||
### 1.2.0 (2022-09-21) | ||
@@ -2,0 +8,0 @@ |
{ | ||
"name": "@pandaenvia/nodejs-sdk", | ||
"version": "1.2.4", | ||
"version": "1.3.0", | ||
"description": "Pandaenvia API wrapper", | ||
@@ -5,0 +5,0 @@ "main": "build/compiled/src/lockstep-api.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
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
60045
800