Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
publics
service-sdk-releases
Commits
6525a250
Commit
6525a250
authored
Oct 17, 2016
by
Evgeniy Zaitsev
Browse files
v0.0.15
parent
301212f3
Changes
2
Hide whitespace changes
Inline
Side-by-side
app.js
View file @
6525a250
...
@@ -77,21 +77,27 @@ class SDK {
...
@@ -77,21 +77,27 @@ class SDK {
}
}
fetchPrivateLatestResultsByEventId
(
feedEndpoint
,
projectFeedUUID
,
eventId
)
{
fetchPrivateLatestResultsByEventId
(
feedEndpoint
,
projectFeedUUID
,
eventId
)
{
this
.
logger
.
log
(
__filename
,
'
fetch private latest result by event uuid
'
,
feedEndpoint
,
eventId
);
this
.
logger
.
log
(
__filename
,
'
fetch private latest result by event uuid
'
,
feedEndpoint
,
projectFeedUUID
,
eventId
);
return
this
.
_fetchPrivateListingsAndGetEventFeedUUID
(
feedEndpoint
,
projectFeedUUID
,
eventId
)
return
this
.
_fetchPrivateListingsAndGetEventFeedUUID
(
feedEndpoint
,
projectFeedUUID
,
eventId
)
.
then
(
eventFeedUUID
=>
this
.
fetchPrivateLatestResultsByEventFeedUUID
(
feedEndpoint
,
eventFeedUUID
));
.
then
(
eventFeedUUID
=>
this
.
fetchPrivateLatestResultsByEventFeedUUID
(
feedEndpoint
,
eventFeedUUID
));
}
}
fetchPrivateAllPublishedElementsByEventId
(
feedEndpoint
,
projectFeedUUID
,
eventId
)
{
fetchPrivateAllPublishedElementsByEventId
(
feedEndpoint
,
projectFeedUUID
,
eventId
)
{
this
.
logger
.
log
(
__filename
,
'
fetch private all publish elements by event uuid
'
,
feedEndpoint
,
eventId
);
this
.
logger
.
log
(
__filename
,
'
fetch private all publish elements by event uuid
'
,
feedEndpoint
,
projectFeedUUID
,
eventId
);
return
this
.
_fetchPrivateListingsAndGetEventFeedUUID
(
feedEndpoint
,
projectFeedUUID
,
eventId
)
return
this
.
_fetchPrivateListingsAndGetEventFeedUUID
(
feedEndpoint
,
projectFeedUUID
,
eventId
)
.
then
(
eventFeedUUID
=>
this
.
fetchPrivateAllPublishedElementsByEventFeedUUID
(
feedEndpoint
,
eventFeedUUID
));
.
then
(
eventFeedUUID
=>
this
.
fetchPrivateAllPublishedElementsByEventFeedUUID
(
feedEndpoint
,
eventFeedUUID
));
}
}
fetchPrivateAllElementsByEventId
(
feedEndpoint
,
projectFeedUUID
,
eventId
)
{
fetchPrivateAllElementsByEventId
(
feedEndpoint
,
projectFeedUUID
,
eventId
)
{
this
.
logger
.
log
(
__filename
,
'
fetch private all elements by event uuid
'
,
feedEndpoint
,
eventId
);
this
.
logger
.
log
(
__filename
,
'
fetch private all elements by event uuid
'
,
feedEndpoint
,
projectFeedUUID
,
eventId
);
return
this
.
_fetchPrivateListingsAndGetEventFeedUUID
(
feedEndpoint
,
projectFeedUUID
,
eventId
)
return
this
.
_fetchPrivateListingsAndGetEventFeedUUID
(
feedEndpoint
,
projectFeedUUID
,
eventId
)
.
then
(
eventFeedUUID
=>
this
.
fetchPrivateAllElementsByEventFeedUUID
(
feedEndpoint
,
eventFeedUUID
));
.
then
(
eventFeedUUID
=>
this
.
fetchPrivateAllElementsByEventFeedUUID
(
feedEndpoint
,
eventFeedUUID
));
...
@@ -146,7 +152,7 @@ class SDK {
...
@@ -146,7 +152,7 @@ class SDK {
throw
new
Error
(
'
event is no found in listings
'
);
throw
new
Error
(
'
event is no found in listings
'
);
}
}
return
event
.
id
;
return
event
.
feed_uu
id
;
}
}
}
}
...
...
package.json
View file @
6525a250
{
{
"name"
:
"service-sdk"
,
"name"
:
"service-sdk"
,
"version"
:
"0.0.1
4
"
,
"version"
:
"0.0.1
5
"
,
"private"
:
true
,
"private"
:
true
,
"description"
:
"Service SDK for LViS"
,
"description"
:
"Service SDK for LViS"
,
"keywords"
:
[],
"keywords"
:
[],
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment