@yuntijs/arcadia-bff-sdk 1.0.68 → 1.0.70

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.
@@ -0,0 +1,3 @@
1
+ import { GraphQLError } from "graphql-request/src/types";
2
+ export declare const errorsHandler: (errors: GraphQLError[]) => void;
3
+ export default errorsHandler;
@@ -0,0 +1 @@
1
+ export * from "./handler";
@@ -0,0 +1,3 @@
1
+ import { GraphQLError } from "graphql-request/src/types";
2
+ export declare const logout: () => void;
3
+ export declare const showInvalidTokenModal: (error: GraphQLError) => void;
@@ -0,0 +1,3 @@
1
+ import { GraphQLError } from "graphql-request/src/types";
2
+ export declare const showForbiddenNotification: (error: GraphQLError) => void;
3
+ export declare const showGlobalErrorNotification: (error: GraphQLError) => void;
@@ -1,3 +1,5 @@
1
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
2
+ // @ts-ignore
1
3
  import { notification } from "@tenx-ui/materials";
2
4
  var VERBS_MAP = {
3
5
  create: "创建",
@@ -13,7 +15,8 @@ export var showForbiddenNotification = function showForbiddenNotification(error)
13
15
  var _ref = ((_error$extensions = error.extensions) === null || _error$extensions === void 0 || (_error$extensions = _error$extensions.exception) === null || _error$extensions === void 0 ? void 0 : _error$extensions.details) || {},
14
16
  name = _ref.name,
15
17
  kind = _ref.kind,
16
- verb = _ref.verb;
18
+ _ref$verb = _ref.verb,
19
+ verb = _ref$verb === void 0 ? "" : _ref$verb;
17
20
  var description = "当前用户没有权限";
18
21
  description += "".concat(VERBS_MAP[verb] || "操作");
19
22
  if (kind) {