lz-api-client
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -68,2 +68,5 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
if (!response.status) { | ||
throw new Error('Server did not respond'); | ||
} | ||
const txt = yield response.text(); | ||
@@ -70,0 +73,0 @@ return txt ? JSON.parse(txt) : {}; |
@@ -15,4 +15,2 @@ "use strict"; | ||
// TODO method delete campaigns | ||
// TODO add fields to campaign target, collaborators, updatedBy, createdBy, | ||
// createdAt, updatedAt, status. | ||
getJourneys({ campaignId }) { | ||
@@ -19,0 +17,0 @@ return this.client.get(`/campaigns/${campaignId}/journeys`, {}); |
{ | ||
"name": "lz-api-client", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "client sdk for layerZ api", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
23404
354