@atlaskit/activity-provider
Advanced tools
Comparing version 2.1.1 to 2.2.0
# @atlaskit/activity-provider | ||
## 2.2.0 | ||
### Minor Changes | ||
- [`d1c666bb6d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d1c666bb6d) - Adds activity analytic events | ||
## 2.1.1 | ||
@@ -4,0 +10,0 @@ |
@@ -6,2 +6,3 @@ "use strict"; | ||
var util_service_support_1 = require("@atlaskit/util-service-support"); | ||
var error_1 = require("./error"); | ||
exports.makeGetRecentItemBody = function (cloudId) { return ({ | ||
@@ -30,3 +31,3 @@ query: "\n query editor_recentActivities($filter: [ActivitiesFilter!], $first: Int) {\n activities {\n myActivities {\n viewed(filters: $filter, first: $first) {\n nodes {\n timestamp,\n object {\n id,\n name,\n type,\n url,\n iconUrl,\n containers {\n name,\n }\n }\n }\n }\n }\n }\n }\n ", | ||
return tslib_1.__awaiter(this, void 0, void 0, function () { | ||
var options, response, e_1; | ||
var options, response, err_1; | ||
var _this = this; | ||
@@ -57,5 +58,4 @@ return tslib_1.__generator(this, function (_a) { | ||
case 3: | ||
e_1 = _a.sent(); | ||
// We will add instrumentations in the next PR | ||
return [2 /*return*/, []]; | ||
err_1 = _a.sent(); | ||
throw new error_1.ActivityError(err_1.reason, err_1.code); | ||
case 4: return [2 /*return*/]; | ||
@@ -62,0 +62,0 @@ } |
import ActivityResource from './api/ActivityResource'; | ||
import { ActivityProvider, ActivityItem } from './types'; | ||
export { ActivityResource, ActivityProvider, ActivityItem }; | ||
import { ActivityError } from './api/error'; | ||
export { ActivityResource, ActivityProvider, ActivityItem, ActivityError }; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ActivityResource = void 0; | ||
exports.ActivityError = exports.ActivityResource = void 0; | ||
var tslib_1 = require("tslib"); | ||
var ActivityResource_1 = tslib_1.__importDefault(require("./api/ActivityResource")); | ||
exports.ActivityResource = ActivityResource_1.default; | ||
var error_1 = require("./api/error"); | ||
Object.defineProperty(exports, "ActivityError", { enumerable: true, get: function () { return error_1.ActivityError; } }); | ||
//# sourceMappingURL=index.js.map |
import { utils } from '@atlaskit/util-service-support'; | ||
import { ActivityError } from './error'; | ||
export const makeGetRecentItemBody = (cloudId) => ({ | ||
@@ -72,5 +73,4 @@ query: ` | ||
} | ||
catch (e) { | ||
// We will add instrumentations in the next PR | ||
return []; | ||
catch (err) { | ||
throw new ActivityError(err.reason, err.code); | ||
} | ||
@@ -77,0 +77,0 @@ } |
import ActivityResource from './api/ActivityResource'; | ||
import { ActivityProvider, ActivityItem } from './types'; | ||
export { ActivityResource, ActivityProvider, ActivityItem }; | ||
import { ActivityError } from './api/error'; | ||
export { ActivityResource, ActivityProvider, ActivityItem, ActivityError }; |
import ActivityResource from './api/ActivityResource'; | ||
export { ActivityResource }; | ||
import { ActivityError } from './api/error'; | ||
export { ActivityResource, ActivityError }; | ||
//# sourceMappingURL=index.js.map |
import { __assign, __awaiter, __generator } from "tslib"; | ||
import { utils } from '@atlaskit/util-service-support'; | ||
import { ActivityError } from './error'; | ||
export var makeGetRecentItemBody = function (cloudId) { return ({ | ||
@@ -26,3 +27,3 @@ query: "\n query editor_recentActivities($filter: [ActivitiesFilter!], $first: Int) {\n activities {\n myActivities {\n viewed(filters: $filter, first: $first) {\n nodes {\n timestamp,\n object {\n id,\n name,\n type,\n url,\n iconUrl,\n containers {\n name,\n }\n }\n }\n }\n }\n }\n }\n ", | ||
return __awaiter(this, void 0, void 0, function () { | ||
var options, response, e_1; | ||
var options, response, err_1; | ||
var _this = this; | ||
@@ -53,5 +54,4 @@ return __generator(this, function (_a) { | ||
case 3: | ||
e_1 = _a.sent(); | ||
// We will add instrumentations in the next PR | ||
return [2 /*return*/, []]; | ||
err_1 = _a.sent(); | ||
throw new ActivityError(err_1.reason, err_1.code); | ||
case 4: return [2 /*return*/]; | ||
@@ -58,0 +58,0 @@ } |
import ActivityResource from './api/ActivityResource'; | ||
import { ActivityProvider, ActivityItem } from './types'; | ||
export { ActivityResource, ActivityProvider, ActivityItem }; | ||
import { ActivityError } from './api/error'; | ||
export { ActivityResource, ActivityProvider, ActivityItem, ActivityError }; |
import ActivityResource from './api/ActivityResource'; | ||
export { ActivityResource }; | ||
import { ActivityError } from './api/error'; | ||
export { ActivityResource, ActivityError }; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@atlaskit/activity-provider", | ||
"version": "2.1.1", | ||
"version": "2.2.0", | ||
"description": "A provider to support recent activities in editor", | ||
@@ -5,0 +5,0 @@ "publishConfig": { |
@@ -8,2 +8,3 @@ import { utils } from '@atlaskit/util-service-support'; | ||
} from '../types'; | ||
import { ActivityError } from './error'; | ||
@@ -91,5 +92,4 @@ export const makeGetRecentItemBody = (cloudId: string) => ({ | ||
})); | ||
} catch (e) { | ||
// We will add instrumentations in the next PR | ||
return []; | ||
} catch (err) { | ||
throw new ActivityError(err.reason, err.code); | ||
} | ||
@@ -96,0 +96,0 @@ } |
import ActivityResource from './api/ActivityResource'; | ||
import { ActivityProvider, ActivityItem } from './types'; | ||
import { ActivityError } from './api/error'; | ||
export { ActivityResource, ActivityProvider, ActivityItem }; | ||
export { ActivityResource, ActivityProvider, ActivityItem, ActivityError }; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
56490
53
1023