@pandaenvia/nodejs-sdk
Advanced tools
Comparing version 1.2.3 to 1.2.4
@@ -8,4 +8,4 @@ export = Notification; | ||
emitToIds?: any[] | undefined; | ||
}): void; | ||
}): Promise<any>; | ||
} | ||
import AbstractResource = require("../src/AbstractResource"); |
"use strict"; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
}; | ||
const AbstractResource = require('../src/AbstractResource'); | ||
class Notification extends AbstractResource { | ||
create({ uid, origin = {}, radius = 5, emitToIds = [] }) { | ||
super.describe({ | ||
path: '/notification/{uid}', | ||
params: { | ||
uid, | ||
}, | ||
method: 'POST', | ||
body: { | ||
event: { | ||
name: 'looking_for_a_partner', | ||
origin, | ||
radius, | ||
emitToIds, | ||
const _super = Object.create(null, { | ||
describe: { get: () => super.describe } | ||
}); | ||
return __awaiter(this, void 0, void 0, function* () { | ||
console.log('from sdk------', emitToIds); | ||
return _super.describe.call(this, { | ||
path: '/notification/{uid}', | ||
params: { | ||
uid, | ||
}, | ||
}, | ||
method: 'POST', | ||
body: { | ||
event: { | ||
name: 'looking_for_a_partner', | ||
origin, | ||
radius, | ||
emitToIds, | ||
}, | ||
}, | ||
}); | ||
}); | ||
@@ -20,0 +35,0 @@ } |
@@ -44,3 +44,3 @@ declare class TokenProvider$1 { | ||
emitToIds?: any[] | undefined; | ||
}): void; | ||
}): Promise<any>; | ||
} | ||
@@ -47,0 +47,0 @@ |
{ | ||
"name": "@pandaenvia/nodejs-sdk", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"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
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
58716
770