@commercetools-frontend/application-shell-connectors 21.6.0 → 21.9.0

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.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2020 commercetools GmbH
3
+ Copyright (c) commercetools GmbH
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -22,6 +22,7 @@ var _Object$entries = require('@babel/runtime-corejs3/core-js-stable/object/entr
22
22
  var _valuesInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/values');
23
23
  var _URL = require('@babel/runtime-corejs3/core-js-stable/url');
24
24
  var jsxRuntime = require('@emotion/react/jsx-runtime');
25
+ var warning = require('tiny-warning');
25
26
  var react$1 = require('@apollo/client/react');
26
27
  var constants = require('@commercetools-frontend/constants');
27
28
  var sentry = require('@commercetools-frontend/sentry');
@@ -43,9 +44,10 @@ var _concatInstanceProperty__default = /*#__PURE__*/_interopDefault(_concatInsta
43
44
  var _Object$entries__default = /*#__PURE__*/_interopDefault(_Object$entries);
44
45
  var _valuesInstanceProperty__default = /*#__PURE__*/_interopDefault(_valuesInstanceProperty);
45
46
  var _URL__default = /*#__PURE__*/_interopDefault(_URL);
47
+ var warning__default = /*#__PURE__*/_interopDefault(warning);
46
48
 
47
49
  // NOTE: This string will be replaced on build time with the package version.
48
- var version = "21.6.0";
50
+ var version = "21.9.0";
49
51
 
50
52
  // From https://github.com/acdlite/recompose/blob/master/src/packages/recompose/getDisplayName.js
51
53
  var getDisplayName = function getDisplayName(Component) {
@@ -369,10 +371,28 @@ function ownKeys(object, enumerableOnly) { var keys = _Object$keys__default["def
369
371
 
370
372
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](target, _Object$getOwnPropertyDescriptors__default["default"](source)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } return target; }
371
373
  var FetchProjectExtensionImageRegex = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchProjectExtensionImageRegex" }, variableDefinitions: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "projectExtension" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "imageRegex" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "thumb" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ImageRegex" }, directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "small" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ImageRegex" }, directives: [] }] } }] } }] } }] } }, { kind: "FragmentDefinition", name: { kind: "Name", value: "ImageRegex" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ImageRegexOptions" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "flag" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "search" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "replace" }, arguments: [], directives: [] }] } }], loc: { start: 0, end: 256, source: { body: "query FetchProjectExtensionImageRegex {\n projectExtension {\n id\n imageRegex {\n thumb {\n ...ImageRegex\n }\n small {\n ...ImageRegex\n }\n }\n }\n}\nfragment ImageRegex on ImageRegexOptions {\n flag\n search\n replace\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
374
+
375
+ var useWarning = function useWarning(condition, message) {
376
+ react.useEffect(function () {
377
+ process.env.NODE_ENV !== "production" ? warning__default["default"](condition, message) : void 0; // eslint-disable-next-line react-hooks/exhaustive-deps
378
+ }, []);
379
+ };
380
+
372
381
  var Context = /*#__PURE__*/react.createContext({
373
382
  isLoading: false
374
383
  });
375
384
 
385
+ var useProjectExtensionImageRegex = function useProjectExtensionImageRegex() {
386
+ var _useContext = react.useContext(Context),
387
+ isLoading = _useContext.isLoading,
388
+ imageRegex = _useContext.imageRegex;
389
+
390
+ return {
391
+ isLoading: isLoading,
392
+ imageRegex: imageRegex
393
+ };
394
+ };
395
+
376
396
  var ProjectExtensionProviderForImageRegex = function ProjectExtensionProviderForImageRegex(props) {
377
397
  var _useQuery = react$1.useQuery(FetchProjectExtensionImageRegex, {
378
398
  skip: props.skip,
@@ -400,6 +420,7 @@ ProjectExtensionProviderForImageRegex.propTypes = process.env.NODE_ENV !== "prod
400
420
  ProjectExtensionProviderForImageRegex.displayName = 'ProjectExtensionProviderForImageRegex';
401
421
 
402
422
  var GetProjectExtensionImageRegex = function GetProjectExtensionImageRegex(props) {
423
+ useWarning(false, "@commercetools-frontend/application-shell-connectors: It is not recommended to use the 'GetProjectExtensionImageRegex' anymore. Please use the 'useProjectExtensionImageRegex' hook instead.");
403
424
  return jsxRuntime.jsx(Context.Consumer, {
404
425
  children: function children(imageRegexContext) {
405
426
  return props.render(imageRegexContext);
@@ -416,9 +437,11 @@ function withProjectExtensionImageRegex() {
416
437
  var propKey = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'imageRegexData';
417
438
  return function (Component) {
418
439
  var WrappedComponent = function WrappedComponent(props) {
440
+ useWarning(false, "@commercetools-frontend/application-shell-connectors: It is not recommended to use the 'withProjectExtensionImageRegex' high order component anymore. Please use the 'useProjectExtensionImageRegex' hook instead.");
441
+ var imageregexContext = useProjectExtensionImageRegex();
419
442
  return jsxRuntime.jsx(GetProjectExtensionImageRegex, {
420
- render: function render(imageRegexData) {
421
- return jsxRuntime.jsx(Component, _objectSpread(_objectSpread({}, props), _defineProperty({}, propKey, imageRegexData)));
443
+ render: function render() {
444
+ return jsxRuntime.jsx(Component, _objectSpread(_objectSpread({}, props), _defineProperty({}, propKey, imageregexContext)));
422
445
  }
423
446
  });
424
447
  };
@@ -438,6 +461,7 @@ exports.normalizeAllAppliedDataFences = normalizeAllAppliedDataFences;
438
461
  exports.normalizeAllAppliedMenuVisibilities = normalizeAllAppliedMenuVisibilities;
439
462
  exports.normalizeAllAppliedPermissions = normalizeAllAppliedPermissions;
440
463
  exports.useApplicationContext = useApplicationContext;
464
+ exports.useProjectExtensionImageRegex = useProjectExtensionImageRegex;
441
465
  exports.version = version;
442
466
  exports.withApplicationContext = withApplicationContext;
443
467
  exports.withProjectExtensionImageRegex = withProjectExtensionImageRegex;
@@ -22,6 +22,7 @@ var _Object$entries = require('@babel/runtime-corejs3/core-js-stable/object/entr
22
22
  var _valuesInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/values');
23
23
  var _URL = require('@babel/runtime-corejs3/core-js-stable/url');
24
24
  var jsxRuntime = require('@emotion/react/jsx-runtime');
25
+ require('tiny-warning');
25
26
  var react$1 = require('@apollo/client/react');
26
27
  var constants = require('@commercetools-frontend/constants');
27
28
  var sentry = require('@commercetools-frontend/sentry');
@@ -44,7 +45,7 @@ var _valuesInstanceProperty__default = /*#__PURE__*/_interopDefault(_valuesInsta
44
45
  var _URL__default = /*#__PURE__*/_interopDefault(_URL);
45
46
 
46
47
  // NOTE: This string will be replaced on build time with the package version.
47
- var version = "21.6.0";
48
+ var version = "21.9.0";
48
49
 
49
50
  // From https://github.com/acdlite/recompose/blob/master/src/packages/recompose/getDisplayName.js
50
51
  var getDisplayName = function getDisplayName(Component) {
@@ -363,10 +364,27 @@ function ownKeys(object, enumerableOnly) { var keys = _Object$keys__default["def
363
364
 
364
365
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](target, _Object$getOwnPropertyDescriptors__default["default"](source)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } return target; }
365
366
  var FetchProjectExtensionImageRegex = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchProjectExtensionImageRegex" }, variableDefinitions: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "projectExtension" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "imageRegex" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "thumb" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ImageRegex" }, directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "small" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ImageRegex" }, directives: [] }] } }] } }] } }] } }, { kind: "FragmentDefinition", name: { kind: "Name", value: "ImageRegex" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ImageRegexOptions" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "flag" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "search" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "replace" }, arguments: [], directives: [] }] } }], loc: { start: 0, end: 256, source: { body: "query FetchProjectExtensionImageRegex {\n projectExtension {\n id\n imageRegex {\n thumb {\n ...ImageRegex\n }\n small {\n ...ImageRegex\n }\n }\n }\n}\nfragment ImageRegex on ImageRegexOptions {\n flag\n search\n replace\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
367
+
368
+ var useWarning = function useWarning(condition, message) {
369
+ react.useEffect(function () {
370
+ }, []);
371
+ };
372
+
366
373
  var Context = /*#__PURE__*/react.createContext({
367
374
  isLoading: false
368
375
  });
369
376
 
377
+ var useProjectExtensionImageRegex = function useProjectExtensionImageRegex() {
378
+ var _useContext = react.useContext(Context),
379
+ isLoading = _useContext.isLoading,
380
+ imageRegex = _useContext.imageRegex;
381
+
382
+ return {
383
+ isLoading: isLoading,
384
+ imageRegex: imageRegex
385
+ };
386
+ };
387
+
370
388
  var ProjectExtensionProviderForImageRegex = function ProjectExtensionProviderForImageRegex(props) {
371
389
  var _useQuery = react$1.useQuery(FetchProjectExtensionImageRegex, {
372
390
  skip: props.skip,
@@ -391,6 +409,7 @@ ProjectExtensionProviderForImageRegex.propTypes = {};
391
409
  ProjectExtensionProviderForImageRegex.displayName = 'ProjectExtensionProviderForImageRegex';
392
410
 
393
411
  var GetProjectExtensionImageRegex = function GetProjectExtensionImageRegex(props) {
412
+ useWarning();
394
413
  return jsxRuntime.jsx(Context.Consumer, {
395
414
  children: function children(imageRegexContext) {
396
415
  return props.render(imageRegexContext);
@@ -405,9 +424,11 @@ function withProjectExtensionImageRegex() {
405
424
  var propKey = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'imageRegexData';
406
425
  return function (Component) {
407
426
  var WrappedComponent = function WrappedComponent(props) {
427
+ useWarning();
428
+ var imageregexContext = useProjectExtensionImageRegex();
408
429
  return jsxRuntime.jsx(GetProjectExtensionImageRegex, {
409
- render: function render(imageRegexData) {
410
- return jsxRuntime.jsx(Component, _objectSpread(_objectSpread({}, props), _defineProperty({}, propKey, imageRegexData)));
430
+ render: function render() {
431
+ return jsxRuntime.jsx(Component, _objectSpread(_objectSpread({}, props), _defineProperty({}, propKey, imageregexContext)));
411
432
  }
412
433
  });
413
434
  };
@@ -427,6 +448,7 @@ exports.normalizeAllAppliedDataFences = normalizeAllAppliedDataFences;
427
448
  exports.normalizeAllAppliedMenuVisibilities = normalizeAllAppliedMenuVisibilities;
428
449
  exports.normalizeAllAppliedPermissions = normalizeAllAppliedPermissions;
429
450
  exports.useApplicationContext = useApplicationContext;
451
+ exports.useProjectExtensionImageRegex = useProjectExtensionImageRegex;
430
452
  exports.version = version;
431
453
  exports.withApplicationContext = withApplicationContext;
432
454
  exports.withProjectExtensionImageRegex = withProjectExtensionImageRegex;
@@ -8,7 +8,7 @@ import _Object$defineProperties from '@babel/runtime-corejs3/core-js-stable/obje
8
8
  import _Object$defineProperty from '@babel/runtime-corejs3/core-js-stable/object/define-property';
9
9
  import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
10
10
  import _pt from 'prop-types';
11
- import { createContext, useContext } from 'react';
11
+ import { createContext, useContext, useEffect } from 'react';
12
12
  import moment from 'moment-timezone';
13
13
  import _slicedToArray from '@babel/runtime-corejs3/helpers/esm/slicedToArray';
14
14
  import _toConsumableArray from '@babel/runtime-corejs3/helpers/esm/toConsumableArray';
@@ -18,12 +18,13 @@ import _Object$entries from '@babel/runtime-corejs3/core-js-stable/object/entrie
18
18
  import _valuesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/values';
19
19
  import _URL from '@babel/runtime-corejs3/core-js-stable/url';
20
20
  import { jsx } from '@emotion/react/jsx-runtime';
21
+ import warning from 'tiny-warning';
21
22
  import { useQuery } from '@apollo/client/react';
22
23
  import { GRAPHQL_TARGETS } from '@commercetools-frontend/constants';
23
24
  import { reportErrorToSentry } from '@commercetools-frontend/sentry';
24
25
 
25
26
  // NOTE: This string will be replaced on build time with the package version.
26
- var version = "21.6.0";
27
+ var version = "21.9.0";
27
28
 
28
29
  // From https://github.com/acdlite/recompose/blob/master/src/packages/recompose/getDisplayName.js
29
30
  var getDisplayName = function getDisplayName(Component) {
@@ -347,10 +348,28 @@ function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (
347
348
 
348
349
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
349
350
  var FetchProjectExtensionImageRegex = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchProjectExtensionImageRegex" }, variableDefinitions: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "projectExtension" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "imageRegex" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "thumb" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ImageRegex" }, directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "small" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "FragmentSpread", name: { kind: "Name", value: "ImageRegex" }, directives: [] }] } }] } }] } }] } }, { kind: "FragmentDefinition", name: { kind: "Name", value: "ImageRegex" }, typeCondition: { kind: "NamedType", name: { kind: "Name", value: "ImageRegexOptions" } }, directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "flag" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "search" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "replace" }, arguments: [], directives: [] }] } }], loc: { start: 0, end: 256, source: { body: "query FetchProjectExtensionImageRegex {\n projectExtension {\n id\n imageRegex {\n thumb {\n ...ImageRegex\n }\n small {\n ...ImageRegex\n }\n }\n }\n}\nfragment ImageRegex on ImageRegexOptions {\n flag\n search\n replace\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
351
+
352
+ var useWarning = function useWarning(condition, message) {
353
+ useEffect(function () {
354
+ process.env.NODE_ENV !== "production" ? warning(condition, message) : void 0; // eslint-disable-next-line react-hooks/exhaustive-deps
355
+ }, []);
356
+ };
357
+
350
358
  var Context = /*#__PURE__*/createContext({
351
359
  isLoading: false
352
360
  });
353
361
 
362
+ var useProjectExtensionImageRegex = function useProjectExtensionImageRegex() {
363
+ var _useContext = useContext(Context),
364
+ isLoading = _useContext.isLoading,
365
+ imageRegex = _useContext.imageRegex;
366
+
367
+ return {
368
+ isLoading: isLoading,
369
+ imageRegex: imageRegex
370
+ };
371
+ };
372
+
354
373
  var ProjectExtensionProviderForImageRegex = function ProjectExtensionProviderForImageRegex(props) {
355
374
  var _useQuery = useQuery(FetchProjectExtensionImageRegex, {
356
375
  skip: props.skip,
@@ -378,6 +397,7 @@ ProjectExtensionProviderForImageRegex.propTypes = process.env.NODE_ENV !== "prod
378
397
  ProjectExtensionProviderForImageRegex.displayName = 'ProjectExtensionProviderForImageRegex';
379
398
 
380
399
  var GetProjectExtensionImageRegex = function GetProjectExtensionImageRegex(props) {
400
+ useWarning(false, "@commercetools-frontend/application-shell-connectors: It is not recommended to use the 'GetProjectExtensionImageRegex' anymore. Please use the 'useProjectExtensionImageRegex' hook instead.");
381
401
  return jsx(Context.Consumer, {
382
402
  children: function children(imageRegexContext) {
383
403
  return props.render(imageRegexContext);
@@ -394,9 +414,11 @@ function withProjectExtensionImageRegex() {
394
414
  var propKey = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'imageRegexData';
395
415
  return function (Component) {
396
416
  var WrappedComponent = function WrappedComponent(props) {
417
+ useWarning(false, "@commercetools-frontend/application-shell-connectors: It is not recommended to use the 'withProjectExtensionImageRegex' high order component anymore. Please use the 'useProjectExtensionImageRegex' hook instead.");
418
+ var imageregexContext = useProjectExtensionImageRegex();
397
419
  return jsx(GetProjectExtensionImageRegex, {
398
- render: function render(imageRegexData) {
399
- return jsx(Component, _objectSpread(_objectSpread({}, props), _defineProperty({}, propKey, imageRegexData)));
420
+ render: function render() {
421
+ return jsx(Component, _objectSpread(_objectSpread({}, props), _defineProperty({}, propKey, imageregexContext)));
400
422
  }
401
423
  });
402
424
  };
@@ -406,4 +428,4 @@ function withProjectExtensionImageRegex() {
406
428
  };
407
429
  } // Exports
408
430
 
409
- export { ApplicationContext, ApplicationContextProvider, Context$1 as Context, GetProjectExtensionImageRegex, ProjectExtensionProviderForImageRegex, normalizeAllAppliedActionRights, normalizeAllAppliedDataFences, normalizeAllAppliedMenuVisibilities, normalizeAllAppliedPermissions, useApplicationContext, version, withApplicationContext, withProjectExtensionImageRegex };
431
+ export { ApplicationContext, ApplicationContextProvider, Context$1 as Context, GetProjectExtensionImageRegex, ProjectExtensionProviderForImageRegex, normalizeAllAppliedActionRights, normalizeAllAppliedDataFences, normalizeAllAppliedMenuVisibilities, normalizeAllAppliedPermissions, useApplicationContext, useProjectExtensionImageRegex, version, withApplicationContext, withProjectExtensionImageRegex };
@@ -24,7 +24,7 @@ export declare type TDataFenceStoresGroupByResourceType = {
24
24
  };
25
25
  export declare type TDataFenceType = 'store';
26
26
  export declare type TDataFences = Partial<Record<TDataFenceType, TDataFenceGroupedByResourceType>>;
27
- export declare const normalizeAllAppliedPermissions: (allAppliedPermissions?: TAppliedPermission[] | undefined) => TPermissions | null;
28
- export declare const normalizeAllAppliedMenuVisibilities: (allAppliedMenuVisibilities?: TAppliedMenuVisibilities[] | undefined) => TMenuVisibilities | null;
29
- export declare const normalizeAllAppliedActionRights: (allAppliedActionRights?: TAppliedActionRight[] | undefined) => TActionRights | null;
30
- export declare const normalizeAllAppliedDataFences: (allAppliedDataFences?: TStoreDataFence[] | undefined) => TDataFences | null;
27
+ export declare const normalizeAllAppliedPermissions: (allAppliedPermissions?: TAppliedPermission[]) => TPermissions | null;
28
+ export declare const normalizeAllAppliedMenuVisibilities: (allAppliedMenuVisibilities?: TAppliedMenuVisibilities[]) => TMenuVisibilities | null;
29
+ export declare const normalizeAllAppliedActionRights: (allAppliedActionRights?: TAppliedActionRight[]) => TActionRights | null;
30
+ export declare const normalizeAllAppliedDataFences: (allAppliedDataFences?: TStoreDataFence[]) => TDataFences | null;
@@ -1 +1,3 @@
1
- export { GetProjectExtensionImageRegex, ProjectExtensionProviderForImageRegex, withProjectExtensionImageRegex, } from './project-extension-image-regex';
1
+ import type { TImageRegexContext as ImageRegexContext } from './project-extension-image-regex';
2
+ export declare type TImageRegexContext = ImageRegexContext;
3
+ export { GetProjectExtensionImageRegex, ProjectExtensionProviderForImageRegex, withProjectExtensionImageRegex, useProjectExtensionImageRegex, } from './project-extension-image-regex';
@@ -1,5 +1,5 @@
1
1
  import type { TImageRegexOptions } from '../../types/generated/settings';
2
- import { ComponentType, ReactNode } from 'react';
2
+ import { type ComponentType, type ReactNode } from 'react';
3
3
  export declare type TImageRegexContext = {
4
4
  isLoading: boolean;
5
5
  imageRegex?: {
@@ -15,6 +15,13 @@ declare type ConsumerProps = {
15
15
  render: (imageRegex: TImageRegexContext) => ReactNode;
16
16
  children?: never;
17
17
  };
18
+ declare const useProjectExtensionImageRegex: () => {
19
+ isLoading: boolean;
20
+ imageRegex: {
21
+ small?: Pick<TImageRegexOptions, "replace" | "search" | "flag"> | null | undefined;
22
+ thumb?: Pick<TImageRegexOptions, "replace" | "search" | "flag"> | null | undefined;
23
+ } | null | undefined;
24
+ };
18
25
  declare const ProjectExtensionProviderForImageRegex: {
19
26
  (props: ProviderProps): import("@emotion/react/jsx-runtime").JSX.Element;
20
27
  displayName: string;
@@ -27,4 +34,4 @@ declare function withProjectExtensionImageRegex<Props extends {}>(propKey?: stri
27
34
  (props: Props): import("@emotion/react/jsx-runtime").JSX.Element;
28
35
  displayName: string;
29
36
  };
30
- export { GetProjectExtensionImageRegex, ProjectExtensionProviderForImageRegex, withProjectExtensionImageRegex, };
37
+ export { GetProjectExtensionImageRegex, ProjectExtensionProviderForImageRegex, withProjectExtensionImageRegex, useProjectExtensionImageRegex, };
@@ -1,7 +1,9 @@
1
1
  import type { TProviderProps as ProviderProps, TApplicationContext as ApplicationContext, TNormalizedMenuVisibilities as NormalizedMenuVisibilities, TNormalizedPermissions as NormalizedPermissions, TNormalizedActionRights as NormalizedActionRights, TNormalizedDataFences as NormalizedDataFences } from './components/application-context';
2
+ import type { TImageRegexContext as ImageRegexContext } from './components/project-extension-image-regex';
2
3
  export declare type TProviderProps<AdditionalEnvironmentProperties extends {}> = ProviderProps<AdditionalEnvironmentProperties>;
3
4
  export declare type TApplicationContext<AdditionalEnvironmentProperties extends {}> = ApplicationContext<AdditionalEnvironmentProperties>;
4
5
  export declare type TNormalizedMenuVisibilities = NormalizedMenuVisibilities;
5
6
  export declare type TNormalizedPermissions = NormalizedPermissions;
6
7
  export declare type TNormalizedActionRights = NormalizedActionRights;
7
8
  export declare type TNormalizedDataFences = NormalizedDataFences;
9
+ export declare type TImageRegexContext = ImageRegexContext;
@@ -1,4 +1,4 @@
1
1
  export { default as version } from './version';
2
2
  export * from './export-types';
3
3
  export { Context, ApplicationContext, ApplicationContextProvider, withApplicationContext, useApplicationContext, normalizeAllAppliedActionRights, normalizeAllAppliedDataFences, normalizeAllAppliedMenuVisibilities, normalizeAllAppliedPermissions, } from './components/application-context';
4
- export { GetProjectExtensionImageRegex, ProjectExtensionProviderForImageRegex, withProjectExtensionImageRegex, } from './components/project-extension-image-regex';
4
+ export { GetProjectExtensionImageRegex, ProjectExtensionProviderForImageRegex, withProjectExtensionImageRegex, useProjectExtensionImageRegex, } from './components/project-extension-image-regex';
@@ -8,13 +8,13 @@ export declare const createGraphqlResponseForProjectExtensionImageRegexQuery: (c
8
8
  __typename?: "ImageRegex" | undefined;
9
9
  thumb?: {
10
10
  __typename?: "ImageRegexOptions" | undefined;
11
- flag: string;
11
+ flag?: string | null | undefined;
12
12
  search: string;
13
13
  replace: string;
14
14
  } | null | undefined;
15
15
  small?: {
16
16
  __typename?: "ImageRegexOptions" | undefined;
17
- flag: string;
17
+ flag?: string | null | undefined;
18
18
  search: string;
19
19
  replace: string;
20
20
  } | null | undefined;
@@ -1,4 +1,5 @@
1
1
  export declare type Maybe<T> = T | null;
2
+ export declare type InputMaybe<T> = Maybe<T>;
2
3
  export declare type Exact<T extends {
3
4
  [key: string]: unknown;
4
5
  }> = {
@@ -51,7 +52,7 @@ export declare type TCartClassificationValue = {
51
52
  key: Scalars['String'];
52
53
  };
53
54
  export declare type TChangeUserBusinessRole = {
54
- businessRole?: Maybe<Scalars['String']>;
55
+ businessRole?: InputMaybe<Scalars['String']>;
55
56
  };
56
57
  export declare type TChangeUserLanguage = {
57
58
  language: Scalars['String'];
@@ -90,7 +91,7 @@ export declare type TInvitationInput = {
90
91
  };
91
92
  export declare type TInvitationOrganizationInput = {
92
93
  id: Scalars['ID'];
93
- name?: Maybe<Scalars['String']>;
94
+ name?: InputMaybe<Scalars['String']>;
94
95
  version: Scalars['Int'];
95
96
  };
96
97
  export declare type TInvitationQueryResult = {
@@ -158,14 +159,13 @@ export declare type TMutation_CreateOAuthClientArgs = {
158
159
  };
159
160
  export declare type TMutation_DeleteAccountArgs = {
160
161
  jwt: Scalars['String'];
161
- origin?: Maybe<Scalars['String']>;
162
162
  };
163
163
  export declare type TMutation_DeleteOAuthClientArgs = {
164
164
  id: Scalars['ID'];
165
165
  };
166
166
  export declare type TMutation_InviteArgs = {
167
167
  draft: TInvitationInput;
168
- origin?: Maybe<Scalars['String']>;
168
+ origin?: InputMaybe<Scalars['String']>;
169
169
  };
170
170
  export declare type TMutation_RandomArgs = {
171
171
  byteLength: Scalars['Int'];
@@ -173,20 +173,14 @@ export declare type TMutation_RandomArgs = {
173
173
  export declare type TMutation_ResetPasswordArgs = {
174
174
  draft: TResetPasswordDraft;
175
175
  jwt: Scalars['String'];
176
- origin?: Maybe<Scalars['String']>;
177
- };
178
- export declare type TMutation_SendLinkToDeleteAccountArgs = {
179
- origin?: Maybe<Scalars['String']>;
180
176
  };
181
177
  export declare type TMutation_SendLinkToResetPasswordArgs = {
182
178
  email: Scalars['String'];
183
- origin?: Maybe<Scalars['String']>;
184
179
  };
185
180
  export declare type TMutation_SendLinkToSignUpArgs = {
186
- additionalInfo?: Maybe<TAdditionalUserInfo>;
181
+ additionalInfo?: InputMaybe<TAdditionalUserInfo>;
187
182
  email: Scalars['String'];
188
- language?: Maybe<Scalars['String']>;
189
- origin?: Maybe<Scalars['String']>;
183
+ language?: InputMaybe<Scalars['String']>;
190
184
  };
191
185
  export declare type TMutation_SignUpArgs = {
192
186
  draft: TUserDraft;
@@ -252,7 +246,9 @@ export declare enum TPermissionScope {
252
246
  GetPermissionForAnyProject = "get_permission_for_any_project",
253
247
  IntrospectOauthTokens = "introspect_oauth_tokens",
254
248
  ManageApiClients = "manage_api_clients",
249
+ ManageAttributeGroups = "manage_attribute_groups",
255
250
  ManageAuditLog = "manage_audit_log",
251
+ ManageBusinessUnits = "manage_business_units",
256
252
  ManageCartDiscounts = "manage_cart_discounts",
257
253
  ManageCategories = "manage_categories",
258
254
  ManageChangeHistory = "manage_change_history",
@@ -264,25 +260,35 @@ export declare enum TPermissionScope {
264
260
  ManageImportContainers = "manage_import_containers",
265
261
  ManageImportSinks = "manage_import_sinks",
266
262
  ManageKeyValueDocuments = "manage_key_value_documents",
263
+ ManageMyBusinessUnits = "manage_my_business_units",
267
264
  ManageMyOrders = "manage_my_orders",
268
265
  ManageMyPayments = "manage_my_payments",
269
266
  ManageMyProfile = "manage_my_profile",
267
+ ManageMyQuoteRequests = "manage_my_quote_requests",
268
+ ManageMyQuotes = "manage_my_quotes",
270
269
  ManageMyShoppingLists = "manage_my_shopping_lists",
271
270
  ManageOrderEdits = "manage_order_edits",
272
271
  ManageOrders = "manage_orders",
273
272
  ManagePayments = "manage_payments",
273
+ ManageProductSelections = "manage_product_selections",
274
274
  ManageProducts = "manage_products",
275
275
  ManageProject = "manage_project",
276
276
  ManageProjectSettings = "manage_project_settings",
277
+ ManageQuoteRequests = "manage_quote_requests",
278
+ ManageQuotes = "manage_quotes",
277
279
  ManageShippingMethods = "manage_shipping_methods",
278
280
  ManageShoppingLists = "manage_shopping_lists",
281
+ ManageStagedQuotes = "manage_staged_quotes",
282
+ ManageStandalonePrices = "manage_standalone_prices",
279
283
  ManageStates = "manage_states",
280
284
  ManageStores = "manage_stores",
281
285
  ManageSubscriptions = "manage_subscriptions",
282
286
  ManageTaxCategories = "manage_tax_categories",
283
287
  ManageTypes = "manage_types",
284
288
  ViewApiClients = "view_api_clients",
289
+ ViewAttributeGroups = "view_attribute_groups",
285
290
  ViewAuditLog = "view_audit_log",
291
+ ViewBusinessUnits = "view_business_units",
286
292
  ViewCartDiscounts = "view_cart_discounts",
287
293
  ViewCategories = "view_categories",
288
294
  ViewChangeHistory = "view_change_history",
@@ -296,12 +302,17 @@ export declare enum TPermissionScope {
296
302
  ViewOrderEdits = "view_order_edits",
297
303
  ViewOrders = "view_orders",
298
304
  ViewPayments = "view_payments",
305
+ ViewProductSelections = "view_product_selections",
299
306
  ViewProducts = "view_products",
300
307
  ViewProjectSettings = "view_project_settings",
301
308
  ViewProjects = "view_projects",
302
309
  ViewPublishedProducts = "view_published_products",
310
+ ViewQuoteRequests = "view_quote_requests",
311
+ ViewQuotes = "view_quotes",
303
312
  ViewShippingMethods = "view_shipping_methods",
304
313
  ViewShoppingLists = "view_shopping_lists",
314
+ ViewStagedQuotes = "view_staged_quotes",
315
+ ViewStandalonePrices = "view_standalone_prices",
305
316
  ViewStates = "view_states",
306
317
  ViewStores = "view_stores",
307
318
  ViewTaxCategories = "view_tax_categories",
@@ -334,10 +345,10 @@ export declare type TProject = TMetaData & {
334
345
  export declare type TProjectDraftType = {
335
346
  countries: Array<Scalars['String']>;
336
347
  currencies: Array<Scalars['String']>;
337
- deleteDaysAfterCreation?: Maybe<Scalars['Int']>;
348
+ deleteDaysAfterCreation?: InputMaybe<Scalars['Int']>;
338
349
  key: Scalars['String'];
339
350
  languages: Array<Scalars['String']>;
340
- messagesEnabled?: Maybe<Scalars['Boolean']>;
351
+ messagesEnabled?: InputMaybe<Scalars['Boolean']>;
341
352
  name: Scalars['String'];
342
353
  ownerId: Scalars['String'];
343
354
  };
@@ -361,8 +372,8 @@ export declare type TProjectPermission = {
361
372
  };
362
373
  export declare type TProjectPermissionInput = {
363
374
  key: TPermissionScope;
364
- projectKey?: Maybe<Scalars['String']>;
365
- storeKey?: Maybe<Scalars['String']>;
375
+ projectKey?: InputMaybe<Scalars['String']>;
376
+ storeKey?: InputMaybe<Scalars['String']>;
366
377
  };
367
378
  export declare type TProjectQueryResult = TQueryResult & {
368
379
  __typename?: 'ProjectQueryResult';
@@ -403,26 +414,26 @@ export declare type TQuery = {
403
414
  storeOAuthScopes: Array<TPermissionScope>;
404
415
  };
405
416
  export declare type TQuery_AllImpliedOAuthScopesArgs = {
406
- onlyConfiguredOnTrustedClient?: Maybe<Scalars['Boolean']>;
417
+ onlyConfiguredOnTrustedClient?: InputMaybe<Scalars['Boolean']>;
407
418
  resourceAccessPermissions: Array<Scalars['String']>;
408
419
  };
409
420
  export declare type TQuery_InvitationArgs = {
410
- where?: Maybe<TInvitationWhereInput>;
421
+ where?: InputMaybe<TInvitationWhereInput>;
411
422
  };
412
423
  export declare type TQuery_OAuthClientArgs = {
413
424
  id: Scalars['String'];
414
425
  };
415
426
  export declare type TQuery_OAuthClientsArgs = {
416
- limit?: Maybe<Scalars['Int']>;
417
- offset?: Maybe<Scalars['Int']>;
418
- sort?: Maybe<Array<Scalars['String']>>;
427
+ limit?: InputMaybe<Scalars['Int']>;
428
+ offset?: InputMaybe<Scalars['Int']>;
429
+ sort?: InputMaybe<Array<Scalars['String']>>;
419
430
  };
420
431
  export declare type TQuery_ProjectArgs = {
421
- key?: Maybe<Scalars['String']>;
432
+ key?: InputMaybe<Scalars['String']>;
422
433
  };
423
434
  export declare type TQuery_ReleasesArgs = {
424
- limit?: Maybe<Scalars['Int']>;
425
- offset?: Maybe<Scalars['Int']>;
435
+ limit?: InputMaybe<Scalars['Int']>;
436
+ offset?: InputMaybe<Scalars['Int']>;
426
437
  origin: TReleaseOrigin;
427
438
  };
428
439
  export declare type TQueryResult = {
@@ -455,8 +466,8 @@ export declare type TReleaseHistory = {
455
466
  title: Scalars['String'];
456
467
  };
457
468
  export declare type TReleaseHistory_EntriesArgs = {
458
- limit?: Maybe<Scalars['Int']>;
459
- offset?: Maybe<Scalars['Int']>;
469
+ limit?: InputMaybe<Scalars['Int']>;
470
+ offset?: InputMaybe<Scalars['Int']>;
460
471
  };
461
472
  export declare enum TReleaseOrigin {
462
473
  Ctp = "ctp",
@@ -481,7 +492,7 @@ export declare type TResetUser = {
481
492
  id: Scalars['String'];
482
493
  };
483
494
  export declare type TSetUserTimeZone = {
484
- timeZone?: Maybe<Scalars['String']>;
495
+ timeZone?: InputMaybe<Scalars['String']>;
485
496
  };
486
497
  export declare type TShippingRateInputType = {
487
498
  __typename?: 'ShippingRateInputType';
@@ -554,18 +565,18 @@ export declare type TUser = TMetaData & {
554
565
  version?: Maybe<Scalars['Int']>;
555
566
  };
556
567
  export declare type TUserDraft = {
557
- businessRole?: Maybe<Scalars['String']>;
568
+ businessRole?: InputMaybe<Scalars['String']>;
558
569
  firstName: Scalars['String'];
559
570
  lastName: Scalars['String'];
560
571
  password: Scalars['String'];
561
572
  };
562
573
  export declare type TUserUpdateAction = {
563
- changeBusinessRole?: Maybe<TChangeUserBusinessRole>;
564
- changeLanguage?: Maybe<TChangeUserLanguage>;
565
- changeName?: Maybe<TChangeUserName>;
566
- changeNumberFormat?: Maybe<TChangeUserNumberFormat>;
567
- changePassword?: Maybe<TChangeUserPassword>;
568
- setTimeZone?: Maybe<TSetUserTimeZone>;
574
+ changeBusinessRole?: InputMaybe<TChangeUserBusinessRole>;
575
+ changeLanguage?: InputMaybe<TChangeUserLanguage>;
576
+ changeName?: InputMaybe<TChangeUserName>;
577
+ changeNumberFormat?: InputMaybe<TChangeUserNumberFormat>;
578
+ changePassword?: InputMaybe<TChangeUserPassword>;
579
+ setTimeZone?: InputMaybe<TSetUserTimeZone>;
569
580
  };
570
581
  export declare type TAmILoggedInQueryVariables = Exact<{
571
582
  [key: string]: never;
@@ -582,7 +593,7 @@ export declare type TFetchProjectQuery = {
582
593
  project?: {
583
594
  __typename?: 'Project';
584
595
  key: string;
585
- version?: number | null | undefined;
596
+ version?: number | null;
586
597
  name: string;
587
598
  countries: Array<string>;
588
599
  currencies: Array<string>;
@@ -591,12 +602,12 @@ export declare type TFetchProjectQuery = {
591
602
  expiry: {
592
603
  __typename?: 'ProjectExpiry';
593
604
  isActive: boolean;
594
- daysLeft?: number | null | undefined;
605
+ daysLeft?: number | null;
595
606
  };
596
607
  suspension: {
597
608
  __typename?: 'ProjectSuspension';
598
609
  isActive: boolean;
599
- reason?: TProjectSuspensionReason | null | undefined;
610
+ reason?: TProjectSuspensionReason | null;
600
611
  };
601
612
  allAppliedPermissions: Array<{
602
613
  __typename?: 'AppliedPermission';
@@ -647,7 +658,7 @@ export declare type TFetchProjectQuery = {
647
658
  id: string;
648
659
  name: string;
649
660
  };
650
- } | null | undefined;
661
+ } | null;
651
662
  };
652
663
  export declare type TFetchLoggedInUserQueryVariables = Exact<{
653
664
  [key: string]: never;
@@ -663,14 +674,14 @@ export declare type TFetchLoggedInUserQuery = {
663
674
  lastName: string;
664
675
  language: string;
665
676
  numberFormat: string;
666
- timeZone?: string | null | undefined;
677
+ timeZone?: string | null;
667
678
  launchdarklyTrackingId: string;
668
679
  launchdarklyTrackingGroup: string;
669
- launchdarklyTrackingSubgroup?: string | null | undefined;
670
- launchdarklyTrackingTeam?: Array<string> | null | undefined;
680
+ launchdarklyTrackingSubgroup?: string | null;
681
+ launchdarklyTrackingTeam?: Array<string> | null;
671
682
  launchdarklyTrackingTenant: string;
672
- defaultProjectKey?: string | null | undefined;
673
- businessRole?: string | null | undefined;
683
+ defaultProjectKey?: string | null;
684
+ businessRole?: string | null;
674
685
  projects: {
675
686
  __typename?: 'ProjectQueryResult';
676
687
  total: number;
@@ -688,7 +699,7 @@ export declare type TFetchLoggedInUserQuery = {
688
699
  };
689
700
  }>;
690
701
  };
691
- } | null | undefined;
702
+ } | null;
692
703
  };
693
704
  export declare type TFetchUserProjectsQueryVariables = Exact<{
694
705
  [key: string]: never;
@@ -714,7 +725,7 @@ export declare type TFetchUserProjectsQuery = {
714
725
  };
715
726
  }>;
716
727
  };
717
- } | null | undefined;
728
+ } | null;
718
729
  };
719
730
  export declare type TAllFeaturesQueryVariables = Exact<{
720
731
  [key: string]: never;
@@ -725,7 +736,7 @@ export declare type TAllFeaturesQuery = {
725
736
  __typename?: 'Feature';
726
737
  name: string;
727
738
  value: boolean;
728
- reason?: string | null | undefined;
739
+ reason?: string | null;
729
740
  }>;
730
741
  };
731
742
  export declare type TFetchUserIdQueryVariables = Exact<{
@@ -736,5 +747,5 @@ export declare type TFetchUserIdQuery = {
736
747
  user?: {
737
748
  __typename?: 'User';
738
749
  id: string;
739
- } | null | undefined;
750
+ } | null;
740
751
  };
@@ -41,6 +41,22 @@ export declare type TApplicationExtensionDataInput = {
41
41
  oAuthScopes?: InputMaybe<Array<Scalars['String']>>;
42
42
  url: Scalars['String'];
43
43
  };
44
+ export declare type TApplicationExtensionInfoForLegacyCustomApplicationsMigrationReport = {
45
+ __typename?: 'ApplicationExtensionInfoForLegacyCustomApplicationsMigrationReport';
46
+ entryPointUriPath: Scalars['String'];
47
+ id: Scalars['ID'];
48
+ isActive: Scalars['Boolean'];
49
+ migratedTo: Array<TApplicationExtensionMigrationMatchingScore>;
50
+ name: Scalars['String'];
51
+ url: Scalars['String'];
52
+ };
53
+ export declare type TApplicationExtensionMigrationMatchingScore = {
54
+ __typename?: 'ApplicationExtensionMigrationMatchingScore';
55
+ applicationId: Scalars['String'];
56
+ matchByEntryPointUriPath: TMigrationMatchingScore;
57
+ matchByName: TMigrationMatchingScore;
58
+ matchByUrl: TMigrationMatchingScore;
59
+ };
44
60
  export declare type TApplicationExtensionNavbarMenuDataInput = {
45
61
  featureToggle?: InputMaybe<Scalars['String']>;
46
62
  icon: Scalars['String'];
@@ -57,11 +73,20 @@ export declare type TApplicationExtensionNavbarSubmenuDataInput = {
57
73
  permissions: Array<TOAuthScope>;
58
74
  uriPath: Scalars['String'];
59
75
  };
76
+ export declare type TApplicationInfoForLegacyCustomApplicationsMigrationReport = {
77
+ __typename?: 'ApplicationInfoForLegacyCustomApplicationsMigrationReport';
78
+ entryPointUriPath: Scalars['String'];
79
+ id: Scalars['ID'];
80
+ name: Scalars['String'];
81
+ url: Scalars['String'];
82
+ };
60
83
  export declare enum TAuthPermission {
61
84
  AccessToProject = "accessToProject",
62
85
  LoggedInUser = "loggedInUser",
63
86
  ManageMyOrganizations = "manageMyOrganizations",
64
87
  ManageProjectSettings = "manageProjectSettings",
88
+ PerformDataCleanups = "performDataCleanups",
89
+ PerformMigrations = "performMigrations",
65
90
  ViewCartDiscounts = "viewCartDiscounts",
66
91
  ViewCustomers = "viewCustomers",
67
92
  ViewDiscountCodes = "viewDiscountCodes",
@@ -244,6 +269,13 @@ export declare type TCustomApplicationQueryInput = {
244
269
  limit?: InputMaybe<Scalars['Int']>;
245
270
  offset?: InputMaybe<Scalars['Int']>;
246
271
  sort?: InputMaybe<Scalars['String']>;
272
+ where?: InputMaybe<TCustomApplicationQueryWhereInput>;
273
+ };
274
+ export declare type TCustomApplicationQueryWhereInput = {
275
+ entryPointUriPath?: InputMaybe<Scalars['String']>;
276
+ id?: InputMaybe<Scalars['ID']>;
277
+ name?: InputMaybe<Scalars['String']>;
278
+ organizationId?: InputMaybe<Scalars['String']>;
247
279
  };
248
280
  export declare enum TCustomApplicationStatus {
249
281
  Draft = "DRAFT",
@@ -287,6 +319,7 @@ export declare type TCustomersListView = {
287
319
  filters?: Maybe<Array<TFilterValues>>;
288
320
  id: Scalars['ID'];
289
321
  isActive?: Maybe<Scalars['Boolean']>;
322
+ migratedById?: Maybe<Scalars['String']>;
290
323
  nameAllLocales?: Maybe<Array<TLocalizedField>>;
291
324
  projectKey: Scalars['String'];
292
325
  search?: Maybe<Scalars['String']>;
@@ -330,6 +363,7 @@ export declare type TDashboardView = {
330
363
  id: Scalars['ID'];
331
364
  isActive: Scalars['Boolean'];
332
365
  layout?: Maybe<Array<TLayoutCard>>;
366
+ migratedById?: Maybe<Scalars['String']>;
333
367
  nameAllLocales?: Maybe<Array<TLocalizedField>>;
334
368
  projectKey: Scalars['String'];
335
369
  timeZone?: Maybe<Scalars['String']>;
@@ -391,6 +425,7 @@ export declare type TDiscountsCustomView = {
391
425
  filters?: Maybe<Array<TFilterValues>>;
392
426
  id: Scalars['ID'];
393
427
  isActive?: Maybe<Scalars['Boolean']>;
428
+ migratedById?: Maybe<Scalars['String']>;
394
429
  nameAllLocales?: Maybe<Array<TLocalizedField>>;
395
430
  projectKey: Scalars['String'];
396
431
  search?: Maybe<Scalars['String']>;
@@ -536,15 +571,12 @@ export declare type TImageRegexDataInput = {
536
571
  };
537
572
  export declare type TImageRegexOptions = {
538
573
  __typename?: 'ImageRegexOptions';
539
- createdAt: Scalars['DateTime'];
540
- flag: Scalars['String'];
541
- id: Scalars['ID'];
574
+ flag?: Maybe<Scalars['String']>;
542
575
  replace: Scalars['String'];
543
576
  search: Scalars['String'];
544
- updatedAt: Scalars['DateTime'];
545
577
  };
546
578
  export declare type TImageRegexOptionsInput = {
547
- flag: Scalars['String'];
579
+ flag?: InputMaybe<Scalars['String']>;
548
580
  replace: Scalars['String'];
549
581
  search: Scalars['String'];
550
582
  };
@@ -757,6 +789,21 @@ export declare type TLegacyCustomApplicationQueryInput = {
757
789
  limit?: InputMaybe<Scalars['Int']>;
758
790
  offset?: InputMaybe<Scalars['Int']>;
759
791
  sort?: InputMaybe<Scalars['String']>;
792
+ where?: InputMaybe<TLegacyCustomApplicationQueryWhereInput>;
793
+ };
794
+ export declare type TLegacyCustomApplicationQueryWhereInput = {
795
+ id?: InputMaybe<Scalars['ID']>;
796
+ name?: InputMaybe<Scalars['String']>;
797
+ projectKey?: InputMaybe<Scalars['String']>;
798
+ uriPath?: InputMaybe<Scalars['String']>;
799
+ };
800
+ export declare type TLegacyCustomApplicationsMigrationReport = {
801
+ __typename?: 'LegacyCustomApplicationsMigrationReport';
802
+ applications: Array<TApplicationInfoForLegacyCustomApplicationsMigrationReport>;
803
+ organizationExtensionId?: Maybe<Scalars['ID']>;
804
+ organizationId: Scalars['String'];
805
+ organizationName?: Maybe<Scalars['String']>;
806
+ projects: Array<TProjectInfoForLegacyCustomApplicationsMigrationReport>;
760
807
  };
761
808
  export declare type TLegacyCustomApplicationsPagedQueryResult = {
762
809
  __typename?: 'LegacyCustomApplicationsPagedQueryResult';
@@ -864,6 +911,19 @@ export declare enum TMetricCardType {
864
911
  TotalOrders = "TOTAL_ORDERS",
865
912
  TotalSales = "TOTAL_SALES"
866
913
  }
914
+ export declare type TMigrationMatchingScore = {
915
+ __typename?: 'MigrationMatchingScore';
916
+ matchFrom: Scalars['String'];
917
+ matchTo: Scalars['String'];
918
+ score: Scalars['Float'];
919
+ };
920
+ export declare type TMigrationResult = {
921
+ __typename?: 'MigrationResult';
922
+ failed: Scalars['Int'];
923
+ failedIds?: Maybe<Array<Scalars['ID']>>;
924
+ skipped: Scalars['Int'];
925
+ succeeded: Scalars['Int'];
926
+ };
867
927
  export declare type TMutation = {
868
928
  __typename?: 'Mutation';
869
929
  activateCartDiscountsCustomView?: Maybe<TDiscountsCustomView>;
@@ -913,6 +973,11 @@ export declare type TMutation = {
913
973
  deleteProductTypeAttributesView?: Maybe<TProductTypeAttributesView>;
914
974
  deleteProjectExtensionApplication?: Maybe<TProjectExtension>;
915
975
  installCustomApplication?: Maybe<TRestrictedCustomApplicationInstallationForOrganization>;
976
+ migrateCustomersListViews?: Maybe<TMigrationResult>;
977
+ migrateOrdersListViews?: Maybe<TMigrationResult>;
978
+ migrateProjectExtensions: TMigrationResult;
979
+ revertCustomersListViewsMigration: TRevertionResult;
980
+ revertOrdersListViewsMigration: TRevertionResult;
916
981
  sendLinkToVerifyCustomApplicationsMaintainerContactEmail?: Maybe<TCustomApplicationsMaintainerContactEmailVerificationRequest>;
917
982
  setCustomApplicationsMaintainerContactInformation?: Maybe<TOrganizationExtension>;
918
983
  setOrganizationExtensionOidcSsoConfig?: Maybe<TOrganizationExtension>;
@@ -1081,6 +1146,21 @@ export declare type TMutation_InstallCustomApplicationArgs = {
1081
1146
  organizationId: Scalars['String'];
1082
1147
  projectKeys?: InputMaybe<Array<InputMaybe<Scalars['String']>>>;
1083
1148
  };
1149
+ export declare type TMutation_MigrateCustomersListViewsArgs = {
1150
+ projectKeys?: InputMaybe<Array<Scalars['String']>>;
1151
+ };
1152
+ export declare type TMutation_MigrateOrdersListViewsArgs = {
1153
+ projectKeys?: InputMaybe<Array<Scalars['String']>>;
1154
+ };
1155
+ export declare type TMutation_MigrateProjectExtensionsArgs = {
1156
+ projectKeys?: InputMaybe<Array<Scalars['String']>>;
1157
+ };
1158
+ export declare type TMutation_RevertCustomersListViewsMigrationArgs = {
1159
+ projectKeys?: InputMaybe<Array<Scalars['String']>>;
1160
+ };
1161
+ export declare type TMutation_RevertOrdersListViewsMigrationArgs = {
1162
+ projectKeys?: InputMaybe<Array<Scalars['String']>>;
1163
+ };
1084
1164
  export declare type TMutation_SendLinkToVerifyCustomApplicationsMaintainerContactEmailArgs = {
1085
1165
  organizationId: Scalars['String'];
1086
1166
  };
@@ -1174,6 +1254,29 @@ export declare type TMutation_UpdateVariantPricesListViewArgs = {
1174
1254
  export declare type TMutation_VerifyCustomApplicationsMaintainerContactEmailArgs = {
1175
1255
  token: Scalars['String'];
1176
1256
  };
1257
+ export declare type TMyCustomApplication = {
1258
+ __typename?: 'MyCustomApplication';
1259
+ createdAt: Scalars['DateTime'];
1260
+ description?: Maybe<Scalars['String']>;
1261
+ entryPointUriPath: Scalars['String'];
1262
+ icon: Scalars['String'];
1263
+ id: Scalars['ID'];
1264
+ mainMenuLink: TCustomApplicationMenuLink;
1265
+ name: Scalars['String'];
1266
+ organizationId: Scalars['String'];
1267
+ organizationName: Scalars['String'];
1268
+ permissions: Array<TCustomApplicationPermission>;
1269
+ status: TCustomApplicationStatus;
1270
+ submenuLinks: Array<TCustomApplicationSubmenuLink>;
1271
+ updatedAt: Scalars['DateTime'];
1272
+ url: Scalars['String'];
1273
+ };
1274
+ export declare type TMyCustomApplicationQueryInput = {
1275
+ where?: InputMaybe<TMyCustomApplicationQueryWhereInput>;
1276
+ };
1277
+ export declare type TMyCustomApplicationQueryWhereInput = {
1278
+ status?: InputMaybe<TCustomApplicationStatus>;
1279
+ };
1177
1280
  export declare type TNavbarMenu = {
1178
1281
  __typename?: 'NavbarMenu';
1179
1282
  createdAt: Scalars['DateTime'];
@@ -1461,6 +1564,7 @@ export declare type TOrdersListView = {
1461
1564
  filters?: Maybe<Array<TFilterValues>>;
1462
1565
  id: Scalars['ID'];
1463
1566
  isActive?: Maybe<Scalars['Boolean']>;
1567
+ migratedById?: Maybe<Scalars['String']>;
1464
1568
  nameAllLocales?: Maybe<Array<TLocalizedField>>;
1465
1569
  projectKey: Scalars['String'];
1466
1570
  search?: Maybe<Scalars['String']>;
@@ -1515,6 +1619,7 @@ export declare type TOrganizationExtensionForCustomApplication = {
1515
1619
  application: TRestrictedCustomApplicationForOrganization;
1516
1620
  id: Scalars['ID'];
1517
1621
  organizationId: Scalars['String'];
1622
+ organizationName?: Maybe<Scalars['String']>;
1518
1623
  };
1519
1624
  export declare type TPimSearchListView = {
1520
1625
  __typename?: 'PimSearchListView';
@@ -1522,6 +1627,7 @@ export declare type TPimSearchListView = {
1522
1627
  filters?: Maybe<Array<TFilterValues>>;
1523
1628
  id: Scalars['ID'];
1524
1629
  isActive?: Maybe<Scalars['Boolean']>;
1630
+ migratedById?: Maybe<Scalars['String']>;
1525
1631
  nameAllLocales?: Maybe<Array<TLocalizedField>>;
1526
1632
  projectKey: Scalars['String'];
1527
1633
  search?: Maybe<Scalars['String']>;
@@ -1577,6 +1683,7 @@ export declare type TProductTypeAttributesView = {
1577
1683
  id: Scalars['ID'];
1578
1684
  isActive: Scalars['Boolean'];
1579
1685
  isVariant?: Maybe<Scalars['Boolean']>;
1686
+ migratedById?: Maybe<Scalars['String']>;
1580
1687
  nameAllLocales?: Maybe<Array<TLocalizedField>>;
1581
1688
  pinnedAttributes: Array<Scalars['String']>;
1582
1689
  productTypeId: Scalars['String'];
@@ -1624,6 +1731,12 @@ export declare type TProjectExtension = {
1624
1731
  export declare type TProjectExtension_ApplicationsArgs = {
1625
1732
  where?: InputMaybe<TRestrictedApplicationExtensionWhereInput>;
1626
1733
  };
1734
+ export declare type TProjectInfoForLegacyCustomApplicationsMigrationReport = {
1735
+ __typename?: 'ProjectInfoForLegacyCustomApplicationsMigrationReport';
1736
+ applicationExtensions: Array<TApplicationExtensionInfoForLegacyCustomApplicationsMigrationReport>;
1737
+ projectExtensionId: Scalars['ID'];
1738
+ projectKey: Scalars['String'];
1739
+ };
1627
1740
  export declare type TQuery = {
1628
1741
  __typename?: 'Query';
1629
1742
  activeCartDiscountsCustomView?: Maybe<TDiscountsCustomView>;
@@ -1652,6 +1765,8 @@ export declare type TQuery = {
1652
1765
  discountCodesListView?: Maybe<TDiscountCodesListView>;
1653
1766
  globalOrganizationExtension?: Maybe<TOrganizationExtension>;
1654
1767
  legacyCustomApplication?: Maybe<TLegacyCustomApplication>;
1768
+ legacyCustomApplicationsMigrationReport: Array<TLegacyCustomApplicationsMigrationReport>;
1769
+ myCustomApplications: Array<TMyCustomApplication>;
1655
1770
  ordersListView?: Maybe<TOrdersListView>;
1656
1771
  ordersListViews: Array<Maybe<TOrdersListView>>;
1657
1772
  organizationExtension?: Maybe<TOrganizationExtension>;
@@ -1705,6 +1820,9 @@ export declare type TQuery_GlobalOrganizationExtensionArgs = {
1705
1820
  export declare type TQuery_LegacyCustomApplicationArgs = {
1706
1821
  applicationId: Scalars['ID'];
1707
1822
  };
1823
+ export declare type TQuery_MyCustomApplicationsArgs = {
1824
+ params?: InputMaybe<TMyCustomApplicationQueryInput>;
1825
+ };
1708
1826
  export declare type TQuery_OrdersListViewArgs = {
1709
1827
  id: Scalars['ID'];
1710
1828
  };
@@ -1836,6 +1954,10 @@ export declare type TRestrictedCustomApplicationInstallationForProject = {
1836
1954
  installInAllProjects: Scalars['Boolean'];
1837
1955
  updatedAt: Scalars['DateTime'];
1838
1956
  };
1957
+ export declare type TRevertionResult = {
1958
+ __typename?: 'RevertionResult';
1959
+ revertedIds?: Maybe<Array<Scalars['ID']>>;
1960
+ };
1839
1961
  export declare type TRuleBuilderQuickSelectCreatefunctionsInput = {
1840
1962
  set?: InputMaybe<Array<Scalars['String']>>;
1841
1963
  };
@@ -1852,6 +1974,7 @@ export declare type TRuleBuilderQuickSelectionValues = {
1852
1974
  createdAt: Scalars['DateTime'];
1853
1975
  functions: Array<Scalars['String']>;
1854
1976
  id: Scalars['ID'];
1977
+ migratedById?: Maybe<Scalars['String']>;
1855
1978
  predicates: Array<Scalars['String']>;
1856
1979
  projectKey: Scalars['String'];
1857
1980
  ruleBuilderType: TRuleBuilderType;
@@ -2161,6 +2284,7 @@ export declare type TVariantPricesListView = {
2161
2284
  __typename?: 'VariantPricesListView';
2162
2285
  createdAt: Scalars['DateTime'];
2163
2286
  id: Scalars['ID'];
2287
+ migratedById?: Maybe<Scalars['String']>;
2164
2288
  projectKey: Scalars['String'];
2165
2289
  updatedAt: Scalars['DateTime'];
2166
2290
  userId: Scalars['String'];
@@ -2181,13 +2305,13 @@ export declare type TFetchProjectExtensionImageRegexQuery = {
2181
2305
  __typename?: 'ImageRegex';
2182
2306
  thumb?: {
2183
2307
  __typename?: 'ImageRegexOptions';
2184
- flag: string;
2308
+ flag?: string | null;
2185
2309
  search: string;
2186
2310
  replace: string;
2187
2311
  } | null;
2188
2312
  small?: {
2189
2313
  __typename?: 'ImageRegexOptions';
2190
- flag: string;
2314
+ flag?: string | null;
2191
2315
  search: string;
2192
2316
  replace: string;
2193
2317
  } | null;
@@ -2196,7 +2320,7 @@ export declare type TFetchProjectExtensionImageRegexQuery = {
2196
2320
  };
2197
2321
  export declare type TImageRegexFragment = {
2198
2322
  __typename?: 'ImageRegexOptions';
2199
- flag: string;
2323
+ flag?: string | null;
2200
2324
  search: string;
2201
2325
  replace: string;
2202
2326
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercetools-frontend/application-shell-connectors",
3
- "version": "21.6.0",
3
+ "version": "21.9.0",
4
4
  "description": "Contains complementary tools for @commercetools-frontend/application-shell",
5
5
  "bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
6
6
  "repository": {
@@ -21,21 +21,22 @@
21
21
  "entrypoints": ["./index.ts", "./test-utils/index.ts"]
22
22
  },
23
23
  "dependencies": {
24
- "@babel/runtime": "^7.17.9",
25
- "@babel/runtime-corejs3": "^7.17.9",
26
- "@commercetools-frontend/constants": "21.3.4",
27
- "@commercetools-frontend/sentry": "21.6.0",
28
- "@emotion/react": "11.9.0",
29
- "@types/lodash": "^4.14.181",
24
+ "@babel/runtime": "^7.18.6",
25
+ "@babel/runtime-corejs3": "^7.18.6",
26
+ "@commercetools-frontend/constants": "21.9.0",
27
+ "@commercetools-frontend/sentry": "21.9.0",
28
+ "@emotion/react": "11.9.3",
29
+ "@types/lodash": "^4.14.182",
30
30
  "@types/prop-types": "^15.7.5",
31
- "@types/react": "^17.0.44",
32
- "graphql": "15.8.0",
31
+ "@types/react": "^17.0.47",
32
+ "graphql": "16.5.0",
33
33
  "lodash": "4.17.21",
34
34
  "moment-timezone": "^0.5.34",
35
- "prop-types": "15.8.1"
35
+ "prop-types": "15.8.1",
36
+ "tiny-warning": "1.0.3"
36
37
  },
37
38
  "devDependencies": {
38
- "@apollo/client": "3.6.2",
39
+ "@apollo/client": "3.6.9",
39
40
  "@testing-library/react": "12.1.5",
40
41
  "react": "17.0.2"
41
42
  },