@meltwater/conversations-api-services 1.0.32 → 1.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5,13 +5,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.getURL = getURL;
|
|
7
7
|
var _loggerHelpers = require("../../lib/logger.helpers.js");
|
|
8
|
+
var _superagent = _interopRequireDefault(require("superagent"));
|
|
8
9
|
var _configuration = _interopRequireDefault(require("../../lib/configuration.js"));
|
|
9
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
-
const superagent = require('superagent');
|
|
11
11
|
const gatewayURL = _configuration.default.get('ASSETMANAGER_GATEWAY_URL');
|
|
12
12
|
async function getURL(jwt, assetId, logger) {
|
|
13
13
|
try {
|
|
14
|
-
const response = await
|
|
14
|
+
const response = await _superagent.default.post(`${gatewayURL}`).set('apollographql-client-name', 'phoenix-conversations').set('Authorization', jwt).send({
|
|
15
15
|
query: `
|
|
16
16
|
query getAssetUrlForPublishing(
|
|
17
17
|
$filter: AssetFilterInput
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { loggerError } from '../../lib/logger.helpers.js';
|
|
2
|
-
|
|
2
|
+
import superagent from 'superagent';
|
|
3
3
|
import configuration from '../../lib/configuration.js';
|
|
4
4
|
const gatewayURL = configuration.get('ASSETMANAGER_GATEWAY_URL');
|
|
5
5
|
export async function getURL(jwt, assetId, logger) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meltwater/conversations-api-services",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.33",
|
|
4
4
|
"description": "Repository to contain all conversations api services shared across our services",
|
|
5
5
|
"main": "dist/cjs/data-access/index.js",
|
|
6
6
|
"module": "dist/esm/data-access/index.js",
|