@commercetools-frontend/application-shell 22.7.1 → 22.8.1
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/dist/{application-entry-point-2bbea741.cjs.prod.js → application-entry-point-626484de.cjs.prod.js} +3 -3
- package/dist/{application-entry-point-6853f92e.cjs.dev.js → application-entry-point-a569b241.cjs.dev.js} +3 -3
- package/dist/{application-entry-point-97efa554.esm.js → application-entry-point-ef415ee0.esm.js} +3 -3
- package/dist/{box-e17daf6c.cjs.prod.js → box-09bf50e1.cjs.prod.js} +2 -2
- package/dist/{box-686bc950.cjs.dev.js → box-4857aa65.cjs.dev.js} +2 -2
- package/dist/{box-6ce924c9.esm.js → box-9cf180c1.esm.js} +2 -2
- package/dist/{cart-f2fc1baf.cjs.prod.js → cart-645074db.cjs.prod.js} +2 -2
- package/dist/{cart-796beed7.cjs.dev.js → cart-b0044279.cjs.dev.js} +2 -2
- package/dist/{cart-3b156a46.esm.js → cart-bb491ca1.esm.js} +2 -2
- package/dist/commercetools-frontend-application-shell.cjs.dev.js +7 -7
- package/dist/commercetools-frontend-application-shell.cjs.prod.js +7 -7
- package/dist/commercetools-frontend-application-shell.esm.js +5 -4
- package/dist/{configure-apollo-2077e9e6.cjs.prod.js → configure-apollo-1d9542ce.cjs.prod.js} +20 -19
- package/dist/{configure-apollo-8bcf9317.esm.js → configure-apollo-4ea93a0d.esm.js} +20 -19
- package/dist/{configure-apollo-99b8a3fe.cjs.dev.js → configure-apollo-bb20a723.cjs.dev.js} +20 -19
- package/dist/{connected-square-960e046b.cjs.prod.js → connected-square-2d046cb8.cjs.prod.js} +2 -2
- package/dist/{connected-square-961eb5b6.cjs.dev.js → connected-square-a2fea344.cjs.dev.js} +2 -2
- package/dist/{connected-square-f34a98ff.esm.js → connected-square-fe6a790f.esm.js} +2 -2
- package/dist/{constants-a09fbec1.esm.js → constants-0b9c2426.esm.js} +10 -2
- package/dist/{constants-a1140922.cjs.dev.js → constants-0da1db32.cjs.prod.js} +10 -1
- package/dist/{constants-ed10e935.cjs.prod.js → constants-bef5a843.cjs.dev.js} +10 -1
- package/dist/custom-view-dev-host-465bc1bd.esm.js +202 -0
- package/dist/custom-view-dev-host-e545cc88.cjs.dev.js +215 -0
- package/dist/declarations/src/components/app-bar/app-bar.d.ts +1 -0
- package/dist/declarations/src/components/custom-view-dev-host/custom-view-dev-host.d.ts +11 -0
- package/dist/declarations/src/components/custom-view-dev-host/index.d.ts +6 -0
- package/dist/declarations/src/components/custom-view-loader/custom-view-loader.d.ts +8 -0
- package/dist/declarations/src/components/custom-view-loader/index.d.ts +1 -0
- package/dist/declarations/src/components/custom-view-loader/messages.d.ts +7 -0
- package/dist/declarations/src/components/custom-view-shell/custom-view-shell.d.ts +4 -4
- package/dist/declarations/src/components/custom-view-shell-authenticated/custom-view-shell-authenticated.d.ts +2 -1
- package/dist/declarations/src/components/navbar/index.d.ts +2 -98
- package/dist/declarations/src/components/navbar/navbar-new/compiled/navbar.css.json.d.ts +3 -0
- package/dist/declarations/src/components/navbar/navbar-new/menu-items.d.ts +102 -0
- package/dist/declarations/src/components/navbar/navbar-new/navbar.d.ts +48 -0
- package/dist/declarations/src/components/navbar/navbar-old/compiled/navbar.css.json.d.ts +3 -0
- package/dist/declarations/src/components/navbar/{menu-items.d.ts → navbar-old/menu-items.d.ts} +6 -6
- package/dist/declarations/src/components/navbar/navbar-old/navbar.d.ts +48 -0
- package/dist/declarations/src/components/navbar/navbar-old/navbar.styles.d.ts +7 -0
- package/dist/declarations/src/components/navbar/navbar.d.ts +4 -16
- package/dist/declarations/src/components/navbar/use-navbar-state-manager.d.ts +1 -0
- package/dist/declarations/src/components/project-container/index.d.ts +1 -19
- package/dist/declarations/src/constants.d.ts +8 -0
- package/dist/declarations/src/index.d.ts +1 -1
- package/dist/declarations/src/test-utils/custom-views-utils.d.ts +12 -0
- package/dist/declarations/src/test-utils/index.d.ts +1 -0
- package/dist/declarations/src/types/generated/ctp.d.ts +304 -3
- package/dist/declarations/src/types/generated/settings.d.ts +78 -2
- package/dist/{error-apologizer-e5c28e4c.esm.js → error-apologizer-76f087f4.esm.js} +2 -2
- package/dist/{error-apologizer-b3872f4d.cjs.prod.js → error-apologizer-84dc825c.cjs.prod.js} +2 -2
- package/dist/{error-apologizer-c3210e30.cjs.dev.js → error-apologizer-f6793491.cjs.dev.js} +2 -2
- package/dist/{gear-9b394c43.cjs.prod.js → gear-4f7cde98.cjs.prod.js} +2 -2
- package/dist/{gear-1f381738.esm.js → gear-ee90ba83.esm.js} +2 -2
- package/dist/{gear-ab1f6210.cjs.dev.js → gear-f2668579.cjs.dev.js} +2 -2
- package/dist/{heart-a6e7ccf9.cjs.dev.js → heart-01f01038.cjs.prod.js} +2 -2
- package/dist/{heart-be7c779b.esm.js → heart-86f780f3.esm.js} +2 -2
- package/dist/{heart-ebfab4cd.cjs.prod.js → heart-e49dd92a.cjs.dev.js} +2 -2
- package/dist/{index-975c5225.esm.js → index-0f6e5659.esm.js} +284 -157
- package/dist/{index-f85c276c.cjs.prod.js → index-9005b218.cjs.prod.js} +221 -127
- package/dist/{index-6c0bc333.cjs.dev.js → index-a98d4c9b.cjs.dev.js} +282 -156
- package/dist/{list-with-search-b5e9ae1b.cjs.dev.js → list-with-search-027ab8eb.cjs.dev.js} +2 -2
- package/dist/{list-with-search-e3ccba98.cjs.prod.js → list-with-search-6462447e.cjs.prod.js} +2 -2
- package/dist/{list-with-search-3341bbf7.esm.js → list-with-search-d2901e34.esm.js} +2 -2
- package/dist/navbar-06983ead.cjs.dev.js +2021 -0
- package/dist/navbar-12df9203.cjs.prod.js +1834 -0
- package/dist/navbar-6c7387f4.esm.js +1991 -0
- package/dist/{oidc-244125d3.cjs.dev.js → oidc-97f361cb.cjs.dev.js} +1 -1
- package/dist/{oidc-a780f067.cjs.prod.js → oidc-a55e3dd9.cjs.prod.js} +1 -1
- package/dist/{oidc-callback-80416189.cjs.dev.js → oidc-callback-ca83d92e.cjs.dev.js} +6 -5
- package/dist/{oidc-callback-7221e7d2.esm.js → oidc-callback-dbb7281d.esm.js} +6 -5
- package/dist/{oidc-callback-7c234583.cjs.prod.js → oidc-callback-ec82f402.cjs.prod.js} +6 -5
- package/dist/{oidc-c4e99cfc.esm.js → oidc-db881d40.esm.js} +1 -1
- package/dist/{paperclip-6f0b6ae5.cjs.prod.js → paperclip-005ec544.cjs.dev.js} +2 -2
- package/dist/{paperclip-c76aec52.esm.js → paperclip-a820ee87.esm.js} +2 -2
- package/dist/{paperclip-ec55e4a0.cjs.dev.js → paperclip-fe72a70d.cjs.prod.js} +2 -2
- package/dist/{plugin-16c01245.cjs.dev.js → plugin-81ae1044.cjs.prod.js} +2 -2
- package/dist/{plugin-279f88cd.esm.js → plugin-c7bf9e53.esm.js} +2 -2
- package/dist/{plugin-f199ed20.cjs.prod.js → plugin-feb22442.cjs.dev.js} +2 -2
- package/dist/{project-container-84c7881c.esm.js → project-container-95afa04d.esm.js} +11 -11
- package/dist/{project-container-c36e4793.cjs.dev.js → project-container-aa93d158.cjs.dev.js} +11 -11
- package/dist/{project-container-20379b3d.cjs.prod.js → project-container-b3e7cea1.cjs.prod.js} +11 -11
- package/dist/{project-expired-84871cc1.cjs.prod.js → project-expired-53e65d52.cjs.prod.js} +8 -7
- package/dist/{project-expired-6f9e5ff9.esm.js → project-expired-8ab9bf04.esm.js} +8 -7
- package/dist/{project-expired-fea5a2c6.cjs.dev.js → project-expired-bc80fb1d.cjs.dev.js} +8 -7
- package/dist/{project-not-found-763dcf53.esm.js → project-not-found-234f4ef8.esm.js} +8 -7
- package/dist/{project-not-found-e55553d5.cjs.prod.js → project-not-found-84b8e7ae.cjs.prod.js} +8 -7
- package/dist/{project-not-found-382b664d.cjs.dev.js → project-not-found-f38066da.cjs.dev.js} +8 -7
- package/dist/{project-not-initialized-aee7541a.cjs.dev.js → project-not-initialized-2c63ce3f.cjs.dev.js} +8 -7
- package/dist/{project-not-initialized-be040234.cjs.prod.js → project-not-initialized-5b34bfa0.cjs.prod.js} +8 -7
- package/dist/{project-not-initialized-8b3d52be.esm.js → project-not-initialized-e001de0a.esm.js} +8 -7
- package/dist/{project-suspended-02eb3c52.esm.js → project-suspended-5ab4e8a3.esm.js} +8 -7
- package/dist/{project-suspended-506c7b5f.cjs.dev.js → project-suspended-c9d40d91.cjs.dev.js} +8 -7
- package/dist/{project-suspended-2df71dad.cjs.prod.js → project-suspended-dfc1f03f.cjs.prod.js} +8 -7
- package/dist/{quick-access-bd5cc59f.cjs.prod.js → quick-access-16a5f759.cjs.prod.js} +7 -8
- package/dist/{quick-access-e474562c.esm.js → quick-access-5b7b7c66.esm.js} +7 -8
- package/dist/{quick-access-98ac50ec.cjs.dev.js → quick-access-82a8aac8.cjs.dev.js} +7 -8
- package/dist/{redirect-to-login-1e136a4f.cjs.dev.js → redirect-to-login-bd78dcb1.cjs.dev.js} +12 -12
- package/dist/{redirect-to-login-2b6962dd.esm.js → redirect-to-login-c6823c6b.esm.js} +12 -12
- package/dist/{redirect-to-login-cc23cd31.cjs.prod.js → redirect-to-login-f90fca22.cjs.prod.js} +12 -12
- package/dist/{redirect-to-logout-dd88770a.cjs.prod.js → redirect-to-logout-0e422d32.cjs.prod.js} +10 -9
- package/dist/{redirect-to-logout-47a5daea.esm.js → redirect-to-logout-a3c2ffce.esm.js} +10 -9
- package/dist/{redirect-to-logout-d6dce2e6.cjs.dev.js → redirect-to-logout-b8bad889.cjs.dev.js} +10 -9
- package/dist/{redirector-f71198cc.cjs.dev.js → redirector-5daa8baa.cjs.dev.js} +2 -2
- package/dist/{redirector-ec9fa17f.cjs.prod.js → redirector-752b4efc.cjs.prod.js} +2 -2
- package/dist/{redirector-368eeb0f.esm.js → redirector-db8b5cd2.esm.js} +2 -2
- package/dist/{requests-in-flight-loader-2b781c0e.esm.js → requests-in-flight-loader-58c3d23a.esm.js} +7 -6
- package/dist/{requests-in-flight-loader-84434d03.cjs.prod.js → requests-in-flight-loader-646bb870.cjs.prod.js} +7 -6
- package/dist/{requests-in-flight-loader-d908a6df.cjs.dev.js → requests-in-flight-loader-ac6ebc49.cjs.dev.js} +7 -6
- package/dist/{rocket-c6d44215.cjs.dev.js → rocket-3372731a.cjs.dev.js} +2 -2
- package/dist/{rocket-067c2f8c.esm.js → rocket-bacf24be.esm.js} +2 -2
- package/dist/{rocket-f0bfae34.cjs.prod.js → rocket-cb99be06.cjs.prod.js} +2 -2
- package/dist/{service-page-project-switcher-0546e7be.cjs.prod.js → service-page-project-switcher-1b91dcee.cjs.prod.js} +1 -1
- package/dist/{service-page-project-switcher-da4d68ce.esm.js → service-page-project-switcher-55aea85f.esm.js} +1 -1
- package/dist/{service-page-project-switcher-51ec5202.cjs.dev.js → service-page-project-switcher-b9825165.cjs.dev.js} +1 -1
- package/dist/{speedometer-0de260cf.cjs.prod.js → speedometer-26f52e73.cjs.prod.js} +2 -2
- package/dist/{speedometer-baa6ae82.esm.js → speedometer-4c8e0b9c.esm.js} +2 -2
- package/dist/{speedometer-aedd9660.cjs.dev.js → speedometer-c1ec5a1d.cjs.dev.js} +2 -2
- package/dist/{star-49745c72.cjs.dev.js → star-6b9a91d2.cjs.dev.js} +2 -2
- package/dist/{star-bd723a9c.esm.js → star-af90a9c6.esm.js} +2 -2
- package/dist/{star-c11b0683.cjs.prod.js → star-e4902bbb.cjs.prod.js} +2 -2
- package/dist/{tag-multi-2e7a68ec.cjs.dev.js → tag-multi-1c065f61.cjs.prod.js} +2 -2
- package/dist/{tag-multi-1dee8212.esm.js → tag-multi-4c2742de.esm.js} +2 -2
- package/dist/{tag-multi-f8d9c9e6.cjs.prod.js → tag-multi-abef3e15.cjs.dev.js} +2 -2
- package/dist/{tree-structure-690366f9.cjs.prod.js → tree-structure-3ec98cce.cjs.prod.js} +2 -2
- package/dist/{tree-structure-8c974c7a.cjs.dev.js → tree-structure-96ab0b7e.cjs.dev.js} +2 -2
- package/dist/{tree-structure-0a1dc6bf.esm.js → tree-structure-ca0498a0.esm.js} +2 -2
- package/dist/{use-applications-menu-1143a5ca.esm.js → use-applications-menu-26181355.esm.js} +3 -3
- package/dist/{use-applications-menu-5873c7ab.cjs.dev.js → use-applications-menu-901c46c2.cjs.dev.js} +3 -3
- package/dist/{use-applications-menu-08236536.cjs.prod.js → use-applications-menu-eb9a87c3.cjs.prod.js} +3 -3
- package/dist/{user-filled-58af1ae4.cjs.prod.js → user-filled-26f333b2.cjs.prod.js} +2 -2
- package/dist/{user-filled-5dd7a51a.cjs.dev.js → user-filled-34aeebcc.cjs.dev.js} +2 -2
- package/dist/{user-filled-d40a7e17.esm.js → user-filled-61d8a81b.esm.js} +2 -2
- package/dist/{user-settings-menu-986485b8.esm.js → user-settings-menu-25bb824e.esm.js} +9 -8
- package/dist/{user-settings-menu-6a7ff392.cjs.dev.js → user-settings-menu-5c43bde2.cjs.dev.js} +9 -8
- package/dist/{user-settings-menu-a724a9b9.cjs.prod.js → user-settings-menu-e342dd57.cjs.prod.js} +9 -8
- package/dist/{version-tracker-cba298d4.esm.js → version-tracker-1ae50f15.esm.js} +2 -2
- package/dist/{version-tracker-90a08689.cjs.dev.js → version-tracker-4ebb2a8d.cjs.dev.js} +2 -2
- package/dist/{version-tracker-3d9b5cf0.cjs.prod.js → version-tracker-5e0a77d0.cjs.prod.js} +2 -2
- package/dist/{world-bfd04f52.cjs.dev.js → world-22189397.cjs.prod.js} +2 -2
- package/dist/{world-f921d80c.cjs.prod.js → world-500baeb2.cjs.dev.js} +2 -2
- package/dist/{world-1b0e72fc.esm.js → world-523efd61.esm.js} +2 -2
- package/package.json +40 -39
- package/ssr/dist/commercetools-frontend-application-shell-ssr.cjs.dev.js +2 -2
- package/ssr/dist/commercetools-frontend-application-shell-ssr.cjs.prod.js +2 -2
- package/ssr/dist/commercetools-frontend-application-shell-ssr.esm.js +2 -2
- package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.dev.js +52 -17
- package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.prod.js +52 -17
- package/test-utils/dist/commercetools-frontend-application-shell-test-utils.esm.js +53 -19
- package/dist/declarations/src/components/custom-view-context/custom-view-context.d.ts +0 -12
- package/dist/declarations/src/components/custom-view-context/index.d.ts +0 -1
- package/dist/declarations/src/components/navbar/compiled/navbar.css.json.d.ts +0 -3
- package/dist/navbar-0cdfe0f7.cjs.prod.js +0 -1173
- package/dist/navbar-383d5297.cjs.dev.js +0 -1269
- package/dist/navbar-cd29b896.esm.js +0 -1239
- /package/dist/declarations/src/components/navbar/{navbar-skeleton.d.ts → navbar-new/navbar-skeleton.d.ts} +0 -0
- /package/dist/declarations/src/components/navbar/{navbar-skeleton.styles.d.ts → navbar-new/navbar-skeleton.styles.d.ts} +0 -0
- /package/dist/declarations/src/components/navbar/{navbar.styles.d.ts → navbar-new/navbar.styles.d.ts} +0 -0
- /package/dist/declarations/src/components/navbar/{loading-navbar.d.ts → navbar-old/loading-navbar.d.ts} +0 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { type MouseEventHandler } from 'react';
|
|
2
|
+
import type { RouteComponentProps } from 'react-router-dom';
|
|
3
|
+
import type { TApplicationContext, TNormalizedMenuVisibilities, TNormalizedPermissions, TNormalizedActionRights, TNormalizedDataFences } from '@commercetools-frontend/application-shell-connectors';
|
|
4
|
+
import type { TFetchProjectQuery } from '../../../types/generated/mc';
|
|
5
|
+
import type { TNavbarMenu } from '../../../types/generated/proxy';
|
|
6
|
+
import { type MenuItemLinkProps } from './menu-items';
|
|
7
|
+
type TProjectPermissions = {
|
|
8
|
+
permissions: TNormalizedPermissions | null;
|
|
9
|
+
actionRights: TNormalizedActionRights | null;
|
|
10
|
+
dataFences: TNormalizedDataFences | null;
|
|
11
|
+
};
|
|
12
|
+
type TMenuWithDefaultLabel = TNavbarMenu & {
|
|
13
|
+
defaultLabel?: string;
|
|
14
|
+
};
|
|
15
|
+
type ApplicationMenuProps = {
|
|
16
|
+
location: RouteComponentProps['location'];
|
|
17
|
+
menu: TMenuWithDefaultLabel;
|
|
18
|
+
isActive: boolean;
|
|
19
|
+
isMenuOpen: boolean;
|
|
20
|
+
shouldCloseMenuFly: MouseEventHandler<HTMLElement>;
|
|
21
|
+
projectPermissions: TProjectPermissions;
|
|
22
|
+
menuVisibilities: TNormalizedMenuVisibilities | null;
|
|
23
|
+
handleToggleItem: () => void;
|
|
24
|
+
applicationLocale: string;
|
|
25
|
+
projectKey: string;
|
|
26
|
+
useFullRedirectsForLinks: boolean;
|
|
27
|
+
onMenuItemClick?: MenuItemLinkProps['onClick'];
|
|
28
|
+
};
|
|
29
|
+
export declare const ApplicationMenu: {
|
|
30
|
+
(props: ApplicationMenuProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
31
|
+
displayName: string;
|
|
32
|
+
};
|
|
33
|
+
export type TNavbarProps = {
|
|
34
|
+
applicationLocale?: string;
|
|
35
|
+
projectKey: string;
|
|
36
|
+
environment: TApplicationContext<{
|
|
37
|
+
useFullRedirectsForLinks?: boolean;
|
|
38
|
+
}>['environment'];
|
|
39
|
+
project: TFetchProjectQuery['project'];
|
|
40
|
+
onMenuItemClick?: MenuItemLinkProps['onClick'];
|
|
41
|
+
isLoading: boolean;
|
|
42
|
+
isNewNavigationEnabledEvaluationReady: boolean;
|
|
43
|
+
};
|
|
44
|
+
declare const NavBar: {
|
|
45
|
+
(props: TNavbarProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element | null;
|
|
46
|
+
displayName: string;
|
|
47
|
+
};
|
|
48
|
+
export default NavBar;
|
|
@@ -1,20 +1,8 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type { TFetchProjectQuery } from '../../types/generated/mc';
|
|
3
|
-
import { type MenuItemLinkProps } from './menu-items';
|
|
4
|
-
type TNavbarProps = {
|
|
5
|
-
applicationLocale?: string;
|
|
6
|
-
projectKey: string;
|
|
7
|
-
environment: TApplicationContext<{
|
|
8
|
-
useFullRedirectsForLinks?: boolean;
|
|
9
|
-
}>['environment'];
|
|
10
|
-
project: TFetchProjectQuery['project'];
|
|
11
|
-
onMenuItemClick?: MenuItemLinkProps['onClick'];
|
|
12
|
-
isLoading: boolean;
|
|
13
|
-
isNewNavigationEnabled: boolean;
|
|
14
|
-
isNewNavigationEnabledEvaluationReady: boolean;
|
|
15
|
-
};
|
|
1
|
+
import { type TNavbarProps } from './navbar-new/navbar';
|
|
16
2
|
declare const NavBar: {
|
|
17
|
-
(props: TNavbarProps
|
|
3
|
+
(props: TNavbarProps & {
|
|
4
|
+
isNewNavigationEnabled: boolean;
|
|
5
|
+
}): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
18
6
|
displayName: string;
|
|
19
7
|
};
|
|
20
8
|
export default NavBar;
|
|
@@ -3,6 +3,7 @@ import type { TApplicationContext } from '@commercetools-frontend/application-sh
|
|
|
3
3
|
import type { TNavbarMenu } from '../../types/generated/proxy';
|
|
4
4
|
type HookProps = {
|
|
5
5
|
environment: TApplicationContext<{}>['environment'];
|
|
6
|
+
newNavigation?: boolean;
|
|
6
7
|
};
|
|
7
8
|
declare const useNavbarStateManager: (props: HookProps) => {
|
|
8
9
|
navBarNode: import("react").RefObject<HTMLElement>;
|
|
@@ -50,25 +50,7 @@ declare const ProjectContainer: import("react").LazyExoticComponent<{
|
|
|
50
50
|
} | null | undefined;
|
|
51
51
|
environment: {
|
|
52
52
|
enableSignUp?: boolean | undefined;
|
|
53
|
-
} &
|
|
54
|
-
applicationId: string;
|
|
55
|
-
customViewId?: string | undefined;
|
|
56
|
-
applicationName: string;
|
|
57
|
-
entryPointUriPath: string;
|
|
58
|
-
revision: string;
|
|
59
|
-
env: string;
|
|
60
|
-
location: string;
|
|
61
|
-
cdnUrl: string;
|
|
62
|
-
mcApiUrl: string;
|
|
63
|
-
frontendHost: string;
|
|
64
|
-
servedByProxy: boolean;
|
|
65
|
-
ldClientSideId?: string | undefined;
|
|
66
|
-
trackingSentry?: string | undefined;
|
|
67
|
-
__DEVELOPMENT__?: {
|
|
68
|
-
oidc?: import("@commercetools-frontend/constants").ApplicationOidcForDevelopmentConfig | undefined;
|
|
69
|
-
menuLinks?: import("@commercetools-frontend/constants").ApplicationMenuLinksForDevelopmentConfig | undefined;
|
|
70
|
-
} | undefined;
|
|
71
|
-
};
|
|
53
|
+
} & import("@commercetools-frontend/constants").ApplicationRuntimeEnvironment;
|
|
72
54
|
disableRoutePermissionCheck?: boolean | undefined;
|
|
73
55
|
render?: (() => JSX.Element) | undefined;
|
|
74
56
|
children?: import("react").ReactNode;
|
|
@@ -3,6 +3,14 @@ export declare const DIMENSIONS: {
|
|
|
3
3
|
readonly headerItemDivider: "24px";
|
|
4
4
|
readonly navMenu: "64px";
|
|
5
5
|
readonly navMenuExpanded: "245px";
|
|
6
|
+
readonly navMenuItemHeight: "48px";
|
|
7
|
+
readonly newNavMenu: "80px";
|
|
8
|
+
readonly newNavMenuExpanded: "256px";
|
|
9
|
+
};
|
|
10
|
+
export declare const WINDOW_SIZES: {
|
|
11
|
+
readonly NARROW: 918;
|
|
12
|
+
readonly STANDARD: 1024;
|
|
13
|
+
readonly WIDE: 1200;
|
|
6
14
|
};
|
|
7
15
|
export declare const SUPPORTED_HEADERS: {
|
|
8
16
|
readonly ACCEPT: "Accept";
|
|
@@ -3,8 +3,8 @@ export { default as version } from './version';
|
|
|
3
3
|
export { default as ApplicationShell } from './components/application-shell';
|
|
4
4
|
export { default as ApplicationShellProvider } from './components/application-shell-provider';
|
|
5
5
|
export { default as ApplicationPageTitle } from './components/application-page-title';
|
|
6
|
+
export { default as CustomViewLoader } from './components/custom-view-loader';
|
|
6
7
|
export { default as CustomViewShell } from './components/custom-view-shell';
|
|
7
|
-
export * from './components/custom-view-context';
|
|
8
8
|
export { default as createApolloClient } from './configure-apollo';
|
|
9
9
|
export { applyDefaultMiddlewares } from './configure-store';
|
|
10
10
|
export { default as InjectReducers } from './components/inject-reducers';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { RenderResult } from '@testing-library/react';
|
|
3
|
+
import type { CustomViewData } from '@commercetools-frontend/constants';
|
|
4
|
+
type TRenderCustomViewParams = {
|
|
5
|
+
locale: string;
|
|
6
|
+
projectKey?: string;
|
|
7
|
+
customViewHostUrl?: string;
|
|
8
|
+
customViewConfig?: Partial<CustomViewData>;
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
};
|
|
11
|
+
export declare const renderCustomView: (props: TRenderCustomViewParams) => RenderResult;
|
|
12
|
+
export {};
|
|
@@ -157,6 +157,7 @@ export type TAddCartLineItem = {
|
|
|
157
157
|
externalTotalPrice?: InputMaybe<TExternalLineItemTotalPriceDraft>;
|
|
158
158
|
inventoryMode?: InputMaybe<TInventoryMode>;
|
|
159
159
|
key?: InputMaybe<Scalars['String']>;
|
|
160
|
+
perMethodExternalTaxRate?: InputMaybe<Array<TMethodExternalTaxRateDraft>>;
|
|
160
161
|
productId?: InputMaybe<Scalars['String']>;
|
|
161
162
|
quantity?: InputMaybe<Scalars['Long']>;
|
|
162
163
|
shippingDetails?: InputMaybe<TItemShippingDetailsDraft>;
|
|
@@ -394,6 +395,7 @@ export type TAddStagedOrderLineItem = {
|
|
|
394
395
|
externalTotalPrice?: InputMaybe<TExternalLineItemTotalPriceDraft>;
|
|
395
396
|
inventoryMode?: InputMaybe<TInventoryMode>;
|
|
396
397
|
key?: InputMaybe<Scalars['String']>;
|
|
398
|
+
perMethodExternalTaxRate?: InputMaybe<Array<TMethodExternalTaxRateDraft>>;
|
|
397
399
|
productId?: InputMaybe<Scalars['String']>;
|
|
398
400
|
quantity?: InputMaybe<Scalars['Long']>;
|
|
399
401
|
shippingDetails?: InputMaybe<TItemShippingDetailsDraftType>;
|
|
@@ -608,11 +610,14 @@ export type TApprovalFlow = TVersioned & {
|
|
|
608
610
|
businessUnitRef: TKeyReference;
|
|
609
611
|
createdAt: Scalars['DateTime'];
|
|
610
612
|
createdBy?: Maybe<TInitiator>;
|
|
613
|
+
currentTierPendingApprovers: Array<TRuleApprover>;
|
|
614
|
+
eligibleApprovers: Array<TRuleApprover>;
|
|
611
615
|
id: Scalars['String'];
|
|
612
616
|
lastModifiedAt: Scalars['DateTime'];
|
|
613
617
|
lastModifiedBy?: Maybe<TInitiator>;
|
|
614
618
|
order?: Maybe<TOrder>;
|
|
615
619
|
orderRef: TReference;
|
|
620
|
+
pendingApprovers: Array<TRuleApprover>;
|
|
616
621
|
rejection?: Maybe<TApprovalFlowRejection>;
|
|
617
622
|
rules: Array<TApprovalRule>;
|
|
618
623
|
status: Scalars['String'];
|
|
@@ -688,6 +693,23 @@ export type TApprovalRule = TVersioned & {
|
|
|
688
693
|
status: TApprovalRuleStatus;
|
|
689
694
|
version: Scalars['Long'];
|
|
690
695
|
};
|
|
696
|
+
export type TApprovalRuleApproversSet = TMessagePayload & {
|
|
697
|
+
__typename?: 'ApprovalRuleApproversSet';
|
|
698
|
+
approvers: TApproverHierarchy;
|
|
699
|
+
oldApprovers: TApproverHierarchy;
|
|
700
|
+
type: Scalars['String'];
|
|
701
|
+
};
|
|
702
|
+
export type TApprovalRuleCreated = TMessagePayload & {
|
|
703
|
+
__typename?: 'ApprovalRuleCreated';
|
|
704
|
+
approvalRule: TApprovalRule;
|
|
705
|
+
type: Scalars['String'];
|
|
706
|
+
};
|
|
707
|
+
export type TApprovalRuleDescriptionSet = TMessagePayload & {
|
|
708
|
+
__typename?: 'ApprovalRuleDescriptionSet';
|
|
709
|
+
description?: Maybe<Scalars['String']>;
|
|
710
|
+
oldDescription?: Maybe<Scalars['String']>;
|
|
711
|
+
type: Scalars['String'];
|
|
712
|
+
};
|
|
691
713
|
export type TApprovalRuleDraft = {
|
|
692
714
|
approvers: TApproverHierarchyDraft;
|
|
693
715
|
description?: InputMaybe<Scalars['String']>;
|
|
@@ -697,6 +719,24 @@ export type TApprovalRuleDraft = {
|
|
|
697
719
|
requesters: Array<TRuleRequesterDraft>;
|
|
698
720
|
status: TApprovalRuleStatus;
|
|
699
721
|
};
|
|
722
|
+
export type TApprovalRuleKeySet = TMessagePayload & {
|
|
723
|
+
__typename?: 'ApprovalRuleKeySet';
|
|
724
|
+
key?: Maybe<Scalars['String']>;
|
|
725
|
+
oldKey?: Maybe<Scalars['String']>;
|
|
726
|
+
type: Scalars['String'];
|
|
727
|
+
};
|
|
728
|
+
export type TApprovalRuleNameSet = TMessagePayload & {
|
|
729
|
+
__typename?: 'ApprovalRuleNameSet';
|
|
730
|
+
name: Scalars['String'];
|
|
731
|
+
oldName: Scalars['String'];
|
|
732
|
+
type: Scalars['String'];
|
|
733
|
+
};
|
|
734
|
+
export type TApprovalRulePredicateSet = TMessagePayload & {
|
|
735
|
+
__typename?: 'ApprovalRulePredicateSet';
|
|
736
|
+
oldPredicate: Scalars['String'];
|
|
737
|
+
predicate: Scalars['String'];
|
|
738
|
+
type: Scalars['String'];
|
|
739
|
+
};
|
|
700
740
|
export type TApprovalRuleQueryResult = {
|
|
701
741
|
__typename?: 'ApprovalRuleQueryResult';
|
|
702
742
|
count: Scalars['Int'];
|
|
@@ -705,10 +745,22 @@ export type TApprovalRuleQueryResult = {
|
|
|
705
745
|
results: Array<TApprovalRule>;
|
|
706
746
|
total: Scalars['Long'];
|
|
707
747
|
};
|
|
748
|
+
export type TApprovalRuleRequestersSet = TMessagePayload & {
|
|
749
|
+
__typename?: 'ApprovalRuleRequestersSet';
|
|
750
|
+
oldRequesters: Array<TRuleRequester>;
|
|
751
|
+
requesters: Array<TRuleRequester>;
|
|
752
|
+
type: Scalars['String'];
|
|
753
|
+
};
|
|
708
754
|
export declare enum TApprovalRuleStatus {
|
|
709
755
|
Active = "Active",
|
|
710
756
|
Inactive = "Inactive"
|
|
711
757
|
}
|
|
758
|
+
export type TApprovalRuleStatusSet = TMessagePayload & {
|
|
759
|
+
__typename?: 'ApprovalRuleStatusSet';
|
|
760
|
+
oldStatus: TApprovalRuleStatus;
|
|
761
|
+
status: TApprovalRuleStatus;
|
|
762
|
+
type: Scalars['String'];
|
|
763
|
+
};
|
|
712
764
|
export type TApprovalRuleUpdateAction = {
|
|
713
765
|
setApprovers?: InputMaybe<TSetApprovalRuleApprovers>;
|
|
714
766
|
setDescription?: InputMaybe<TSetApprovalRuleDescription>;
|
|
@@ -1229,6 +1281,35 @@ export type TBusinessUnitAddressChanged = TMessagePayload & {
|
|
|
1229
1281
|
address: TAddress;
|
|
1230
1282
|
type: Scalars['String'];
|
|
1231
1283
|
};
|
|
1284
|
+
export type TBusinessUnitAddressCustomFieldAdded = TMessagePayload & {
|
|
1285
|
+
__typename?: 'BusinessUnitAddressCustomFieldAdded';
|
|
1286
|
+
name: Scalars['String'];
|
|
1287
|
+
type: Scalars['String'];
|
|
1288
|
+
value: Scalars['Json'];
|
|
1289
|
+
};
|
|
1290
|
+
export type TBusinessUnitAddressCustomFieldChanged = TMessagePayload & {
|
|
1291
|
+
__typename?: 'BusinessUnitAddressCustomFieldChanged';
|
|
1292
|
+
name: Scalars['String'];
|
|
1293
|
+
oldValue?: Maybe<Scalars['Json']>;
|
|
1294
|
+
type: Scalars['String'];
|
|
1295
|
+
value: Scalars['Json'];
|
|
1296
|
+
};
|
|
1297
|
+
export type TBusinessUnitAddressCustomFieldRemoved = TMessagePayload & {
|
|
1298
|
+
__typename?: 'BusinessUnitAddressCustomFieldRemoved';
|
|
1299
|
+
name: Scalars['String'];
|
|
1300
|
+
type: Scalars['String'];
|
|
1301
|
+
};
|
|
1302
|
+
export type TBusinessUnitAddressCustomTypeRemoved = TMessagePayload & {
|
|
1303
|
+
__typename?: 'BusinessUnitAddressCustomTypeRemoved';
|
|
1304
|
+
oldTypeId?: Maybe<Scalars['String']>;
|
|
1305
|
+
type: Scalars['String'];
|
|
1306
|
+
};
|
|
1307
|
+
export type TBusinessUnitAddressCustomTypeSet = TMessagePayload & {
|
|
1308
|
+
__typename?: 'BusinessUnitAddressCustomTypeSet';
|
|
1309
|
+
customFields: TCustomFieldsType;
|
|
1310
|
+
oldTypeId?: Maybe<Scalars['String']>;
|
|
1311
|
+
type: Scalars['String'];
|
|
1312
|
+
};
|
|
1232
1313
|
export type TBusinessUnitAddressRemoved = TMessagePayload & {
|
|
1233
1314
|
__typename?: 'BusinessUnitAddressRemoved';
|
|
1234
1315
|
address: TAddress;
|
|
@@ -1294,6 +1375,35 @@ export type TBusinessUnitCreated = TMessagePayload & {
|
|
|
1294
1375
|
businessUnit: TBusinessUnit;
|
|
1295
1376
|
type: Scalars['String'];
|
|
1296
1377
|
};
|
|
1378
|
+
export type TBusinessUnitCustomFieldAdded = TMessagePayload & {
|
|
1379
|
+
__typename?: 'BusinessUnitCustomFieldAdded';
|
|
1380
|
+
name: Scalars['String'];
|
|
1381
|
+
type: Scalars['String'];
|
|
1382
|
+
value: Scalars['Json'];
|
|
1383
|
+
};
|
|
1384
|
+
export type TBusinessUnitCustomFieldChanged = TMessagePayload & {
|
|
1385
|
+
__typename?: 'BusinessUnitCustomFieldChanged';
|
|
1386
|
+
name: Scalars['String'];
|
|
1387
|
+
oldValue?: Maybe<Scalars['Json']>;
|
|
1388
|
+
type: Scalars['String'];
|
|
1389
|
+
value: Scalars['Json'];
|
|
1390
|
+
};
|
|
1391
|
+
export type TBusinessUnitCustomFieldRemoved = TMessagePayload & {
|
|
1392
|
+
__typename?: 'BusinessUnitCustomFieldRemoved';
|
|
1393
|
+
name: Scalars['String'];
|
|
1394
|
+
type: Scalars['String'];
|
|
1395
|
+
};
|
|
1396
|
+
export type TBusinessUnitCustomTypeRemoved = TMessagePayload & {
|
|
1397
|
+
__typename?: 'BusinessUnitCustomTypeRemoved';
|
|
1398
|
+
oldTypeId?: Maybe<Scalars['String']>;
|
|
1399
|
+
type: Scalars['String'];
|
|
1400
|
+
};
|
|
1401
|
+
export type TBusinessUnitCustomTypeSet = TMessagePayload & {
|
|
1402
|
+
__typename?: 'BusinessUnitCustomTypeSet';
|
|
1403
|
+
customFields: TCustomFieldsType;
|
|
1404
|
+
oldTypeId?: Maybe<Scalars['String']>;
|
|
1405
|
+
type: Scalars['String'];
|
|
1406
|
+
};
|
|
1297
1407
|
export type TBusinessUnitDefaultBillingAddressSet = TMessagePayload & {
|
|
1298
1408
|
__typename?: 'BusinessUnitDefaultBillingAddressSet';
|
|
1299
1409
|
address?: Maybe<TAddress>;
|
|
@@ -1448,6 +1558,7 @@ export type TCart = TReferenceExpandable & TVersioned & {
|
|
|
1448
1558
|
deleteDaysAfterLastModification?: Maybe<Scalars['Int']>;
|
|
1449
1559
|
directDiscounts: Array<TDirectDiscount>;
|
|
1450
1560
|
discountCodes: Array<TDiscountCodeInfo>;
|
|
1561
|
+
discountOnTotalPrice?: Maybe<TDiscountOnTotalPrice>;
|
|
1451
1562
|
id: Scalars['String'];
|
|
1452
1563
|
inventoryMode: TInventoryMode;
|
|
1453
1564
|
itemShippingAddresses: Array<TAddress>;
|
|
@@ -1587,6 +1698,14 @@ export type TCartDiscountTargetInput = {
|
|
|
1587
1698
|
multiBuyCustomLineItems?: InputMaybe<TMultiBuyCustomLineItemsTargetInput>;
|
|
1588
1699
|
multiBuyLineItems?: InputMaybe<TMultiBuyLineItemsTargetInput>;
|
|
1589
1700
|
shipping?: InputMaybe<TShippingTargetInput>;
|
|
1701
|
+
totalPrice?: InputMaybe<TCartDiscountTotalPriceTargetInput>;
|
|
1702
|
+
};
|
|
1703
|
+
export type TCartDiscountTotalPriceTarget = TCartDiscountTarget & {
|
|
1704
|
+
__typename?: 'CartDiscountTotalPriceTarget';
|
|
1705
|
+
type: Scalars['String'];
|
|
1706
|
+
};
|
|
1707
|
+
export type TCartDiscountTotalPriceTargetInput = {
|
|
1708
|
+
dummy?: InputMaybe<Scalars['String']>;
|
|
1590
1709
|
};
|
|
1591
1710
|
export type TCartDiscountUpdateAction = {
|
|
1592
1711
|
addStore?: InputMaybe<TAddCartDiscountStore>;
|
|
@@ -2897,6 +3016,35 @@ export type TCustomerAddressChanged = TMessagePayload & {
|
|
|
2897
3016
|
address: TAddress;
|
|
2898
3017
|
type: Scalars['String'];
|
|
2899
3018
|
};
|
|
3019
|
+
export type TCustomerAddressCustomFieldAdded = TMessagePayload & {
|
|
3020
|
+
__typename?: 'CustomerAddressCustomFieldAdded';
|
|
3021
|
+
name: Scalars['String'];
|
|
3022
|
+
type: Scalars['String'];
|
|
3023
|
+
value: Scalars['Json'];
|
|
3024
|
+
};
|
|
3025
|
+
export type TCustomerAddressCustomFieldChanged = TMessagePayload & {
|
|
3026
|
+
__typename?: 'CustomerAddressCustomFieldChanged';
|
|
3027
|
+
name: Scalars['String'];
|
|
3028
|
+
previousValue?: Maybe<Scalars['Json']>;
|
|
3029
|
+
type: Scalars['String'];
|
|
3030
|
+
value: Scalars['Json'];
|
|
3031
|
+
};
|
|
3032
|
+
export type TCustomerAddressCustomFieldRemoved = TMessagePayload & {
|
|
3033
|
+
__typename?: 'CustomerAddressCustomFieldRemoved';
|
|
3034
|
+
name: Scalars['String'];
|
|
3035
|
+
type: Scalars['String'];
|
|
3036
|
+
};
|
|
3037
|
+
export type TCustomerAddressCustomTypeRemoved = TMessagePayload & {
|
|
3038
|
+
__typename?: 'CustomerAddressCustomTypeRemoved';
|
|
3039
|
+
previousTypeId?: Maybe<Scalars['String']>;
|
|
3040
|
+
type: Scalars['String'];
|
|
3041
|
+
};
|
|
3042
|
+
export type TCustomerAddressCustomTypeSet = TMessagePayload & {
|
|
3043
|
+
__typename?: 'CustomerAddressCustomTypeSet';
|
|
3044
|
+
customFields: TCustomFieldsType;
|
|
3045
|
+
previousTypeId?: Maybe<Scalars['String']>;
|
|
3046
|
+
type: Scalars['String'];
|
|
3047
|
+
};
|
|
2900
3048
|
export type TCustomerAddressRemoved = TMessagePayload & {
|
|
2901
3049
|
__typename?: 'CustomerAddressRemoved';
|
|
2902
3050
|
address: TAddress;
|
|
@@ -2912,6 +3060,35 @@ export type TCustomerCreated = TMessagePayload & {
|
|
|
2912
3060
|
customer: TCustomer;
|
|
2913
3061
|
type: Scalars['String'];
|
|
2914
3062
|
};
|
|
3063
|
+
export type TCustomerCustomFieldAdded = TMessagePayload & {
|
|
3064
|
+
__typename?: 'CustomerCustomFieldAdded';
|
|
3065
|
+
name: Scalars['String'];
|
|
3066
|
+
type: Scalars['String'];
|
|
3067
|
+
value: Scalars['Json'];
|
|
3068
|
+
};
|
|
3069
|
+
export type TCustomerCustomFieldChanged = TMessagePayload & {
|
|
3070
|
+
__typename?: 'CustomerCustomFieldChanged';
|
|
3071
|
+
name: Scalars['String'];
|
|
3072
|
+
previousValue?: Maybe<Scalars['Json']>;
|
|
3073
|
+
type: Scalars['String'];
|
|
3074
|
+
value: Scalars['Json'];
|
|
3075
|
+
};
|
|
3076
|
+
export type TCustomerCustomFieldRemoved = TMessagePayload & {
|
|
3077
|
+
__typename?: 'CustomerCustomFieldRemoved';
|
|
3078
|
+
name: Scalars['String'];
|
|
3079
|
+
type: Scalars['String'];
|
|
3080
|
+
};
|
|
3081
|
+
export type TCustomerCustomTypeRemoved = TMessagePayload & {
|
|
3082
|
+
__typename?: 'CustomerCustomTypeRemoved';
|
|
3083
|
+
previousTypeId?: Maybe<Scalars['String']>;
|
|
3084
|
+
type: Scalars['String'];
|
|
3085
|
+
};
|
|
3086
|
+
export type TCustomerCustomTypeSet = TMessagePayload & {
|
|
3087
|
+
__typename?: 'CustomerCustomTypeSet';
|
|
3088
|
+
customFields: TCustomFieldsType;
|
|
3089
|
+
previousTypeId?: Maybe<Scalars['String']>;
|
|
3090
|
+
type: Scalars['String'];
|
|
3091
|
+
};
|
|
2915
3092
|
export type TCustomerDateOfBirthSet = TMessagePayload & {
|
|
2916
3093
|
__typename?: 'CustomerDateOfBirthSet';
|
|
2917
3094
|
dateOfBirth?: Maybe<Scalars['Date']>;
|
|
@@ -2965,6 +3142,35 @@ export type TCustomerGroup = TReferenceExpandable & TVersioned & {
|
|
|
2965
3142
|
name: Scalars['String'];
|
|
2966
3143
|
version: Scalars['Long'];
|
|
2967
3144
|
};
|
|
3145
|
+
export type TCustomerGroupCustomFieldAdded = TMessagePayload & {
|
|
3146
|
+
__typename?: 'CustomerGroupCustomFieldAdded';
|
|
3147
|
+
name: Scalars['String'];
|
|
3148
|
+
type: Scalars['String'];
|
|
3149
|
+
value: Scalars['Json'];
|
|
3150
|
+
};
|
|
3151
|
+
export type TCustomerGroupCustomFieldChanged = TMessagePayload & {
|
|
3152
|
+
__typename?: 'CustomerGroupCustomFieldChanged';
|
|
3153
|
+
name: Scalars['String'];
|
|
3154
|
+
oldValue?: Maybe<Scalars['Json']>;
|
|
3155
|
+
type: Scalars['String'];
|
|
3156
|
+
value: Scalars['Json'];
|
|
3157
|
+
};
|
|
3158
|
+
export type TCustomerGroupCustomFieldRemoved = TMessagePayload & {
|
|
3159
|
+
__typename?: 'CustomerGroupCustomFieldRemoved';
|
|
3160
|
+
name: Scalars['String'];
|
|
3161
|
+
type: Scalars['String'];
|
|
3162
|
+
};
|
|
3163
|
+
export type TCustomerGroupCustomTypeRemoved = TMessagePayload & {
|
|
3164
|
+
__typename?: 'CustomerGroupCustomTypeRemoved';
|
|
3165
|
+
oldTypeId?: Maybe<Scalars['String']>;
|
|
3166
|
+
type: Scalars['String'];
|
|
3167
|
+
};
|
|
3168
|
+
export type TCustomerGroupCustomTypeSet = TMessagePayload & {
|
|
3169
|
+
__typename?: 'CustomerGroupCustomTypeSet';
|
|
3170
|
+
customFields: TCustomFieldsType;
|
|
3171
|
+
oldTypeId?: Maybe<Scalars['String']>;
|
|
3172
|
+
type: Scalars['String'];
|
|
3173
|
+
};
|
|
2968
3174
|
export type TCustomerGroupDraft = {
|
|
2969
3175
|
custom?: InputMaybe<TCustomFieldsDraft>;
|
|
2970
3176
|
groupName: Scalars['String'];
|
|
@@ -3401,6 +3607,13 @@ export type TDiscountCodeUpdateAction = {
|
|
|
3401
3607
|
setValidFromAndUntil?: InputMaybe<TSetDiscountCodeValidFromAndUntil>;
|
|
3402
3608
|
setValidUntil?: InputMaybe<TSetDiscountCodeValidUntil>;
|
|
3403
3609
|
};
|
|
3610
|
+
export type TDiscountOnTotalPrice = {
|
|
3611
|
+
__typename?: 'DiscountOnTotalPrice';
|
|
3612
|
+
discountedAmount: TBaseMoney;
|
|
3613
|
+
discountedGrossAmount?: Maybe<TBaseMoney>;
|
|
3614
|
+
discountedNetAmount?: Maybe<TBaseMoney>;
|
|
3615
|
+
includedDiscounts: Array<TDiscountedTotalPricePortion>;
|
|
3616
|
+
};
|
|
3404
3617
|
export type TDiscountedLineItemPortion = {
|
|
3405
3618
|
__typename?: 'DiscountedLineItemPortion';
|
|
3406
3619
|
discount?: Maybe<TCartDiscount>;
|
|
@@ -3441,6 +3654,12 @@ export type TDiscountedProductSearchPriceValue = {
|
|
|
3441
3654
|
discountRef: TReference;
|
|
3442
3655
|
value: TBaseMoney;
|
|
3443
3656
|
};
|
|
3657
|
+
export type TDiscountedTotalPricePortion = {
|
|
3658
|
+
__typename?: 'DiscountedTotalPricePortion';
|
|
3659
|
+
discount?: Maybe<TCartDiscount>;
|
|
3660
|
+
discountRef: TReference;
|
|
3661
|
+
discountedAmount: TBaseMoney;
|
|
3662
|
+
};
|
|
3444
3663
|
export type TEnumAttribute = TAttribute & {
|
|
3445
3664
|
__typename?: 'EnumAttribute';
|
|
3446
3665
|
key: Scalars['String'];
|
|
@@ -4193,6 +4412,7 @@ export type TLineItemDraftOutput = {
|
|
|
4193
4412
|
externalTotalPrice?: Maybe<TExternalLineItemTotalPrice>;
|
|
4194
4413
|
inventoryMode?: Maybe<TInventoryMode>;
|
|
4195
4414
|
key?: Maybe<Scalars['String']>;
|
|
4415
|
+
perMethodExternalTaxRate: Array<TMethodExternalTaxRateDraftOutput>;
|
|
4196
4416
|
productId?: Maybe<Scalars['String']>;
|
|
4197
4417
|
quantity?: Maybe<Scalars['Long']>;
|
|
4198
4418
|
shippingDetails?: Maybe<TItemShippingDetailsDraftOutput>;
|
|
@@ -4544,6 +4764,15 @@ export type TMessagesConfigurationDraft = {
|
|
|
4544
4764
|
deleteDaysAfterCreation: Scalars['Int'];
|
|
4545
4765
|
enabled: Scalars['Boolean'];
|
|
4546
4766
|
};
|
|
4767
|
+
export type TMethodExternalTaxRateDraft = {
|
|
4768
|
+
shippingMethodKey: Scalars['String'];
|
|
4769
|
+
taxRate?: InputMaybe<TExternalTaxRateDraft>;
|
|
4770
|
+
};
|
|
4771
|
+
export type TMethodExternalTaxRateDraftOutput = {
|
|
4772
|
+
__typename?: 'MethodExternalTaxRateDraftOutput';
|
|
4773
|
+
shippingMethodKey: Scalars['String'];
|
|
4774
|
+
taxRate?: Maybe<TExternalTaxRateDraftOutput>;
|
|
4775
|
+
};
|
|
4547
4776
|
export type TMethodTaxRate = {
|
|
4548
4777
|
__typename?: 'MethodTaxRate';
|
|
4549
4778
|
shippingMethodKey: Scalars['String'];
|
|
@@ -5627,8 +5856,7 @@ export type TMyQuoteRequestUpdateAction = {
|
|
|
5627
5856
|
};
|
|
5628
5857
|
export declare enum TMyQuoteState {
|
|
5629
5858
|
Accepted = "Accepted",
|
|
5630
|
-
Declined = "Declined"
|
|
5631
|
-
Failed = "Failed"
|
|
5859
|
+
Declined = "Declined"
|
|
5632
5860
|
}
|
|
5633
5861
|
export type TMyQuoteUpdateAction = {
|
|
5634
5862
|
changeMyQuoteState?: InputMaybe<TChangeMyQuoteMyQuoteState>;
|
|
@@ -5724,6 +5952,7 @@ export type TOrder = TReferenceExpandable & TVersioned & {
|
|
|
5724
5952
|
customerId?: Maybe<Scalars['String']>;
|
|
5725
5953
|
directDiscounts: Array<TDirectDiscount>;
|
|
5726
5954
|
discountCodes: Array<TDiscountCodeInfo>;
|
|
5955
|
+
discountOnTotalPrice?: Maybe<TDiscountOnTotalPrice>;
|
|
5727
5956
|
id: Scalars['String'];
|
|
5728
5957
|
inventoryMode: TInventoryMode;
|
|
5729
5958
|
itemShippingAddresses: Array<TAddress>;
|
|
@@ -8148,6 +8377,23 @@ export type TQuote = TVersioned & {
|
|
|
8148
8377
|
export type TQuote_LineItemsArgs = {
|
|
8149
8378
|
id?: InputMaybe<Scalars['String']>;
|
|
8150
8379
|
};
|
|
8380
|
+
export type TQuoteCreated = TMessagePayload & {
|
|
8381
|
+
__typename?: 'QuoteCreated';
|
|
8382
|
+
quote: TQuote;
|
|
8383
|
+
type: Scalars['String'];
|
|
8384
|
+
};
|
|
8385
|
+
export type TQuoteCustomerChanged = TMessagePayload & {
|
|
8386
|
+
__typename?: 'QuoteCustomerChanged';
|
|
8387
|
+
customer?: Maybe<TCustomer>;
|
|
8388
|
+
customerRef: TReference;
|
|
8389
|
+
previousCustomer?: Maybe<TCustomer>;
|
|
8390
|
+
previousCustomerRef: TReference;
|
|
8391
|
+
type: Scalars['String'];
|
|
8392
|
+
};
|
|
8393
|
+
export type TQuoteDeleted = TMessagePayload & {
|
|
8394
|
+
__typename?: 'QuoteDeleted';
|
|
8395
|
+
type: Scalars['String'];
|
|
8396
|
+
};
|
|
8151
8397
|
export type TQuoteDraft = {
|
|
8152
8398
|
custom?: InputMaybe<TCustomFieldsDraft>;
|
|
8153
8399
|
key?: InputMaybe<Scalars['String']>;
|
|
@@ -8178,11 +8424,17 @@ export type TQuoteQueryResult = {
|
|
|
8178
8424
|
results: Array<TQuote>;
|
|
8179
8425
|
total: Scalars['Long'];
|
|
8180
8426
|
};
|
|
8427
|
+
export type TQuoteRenegotiationRequested = TMessagePayload & {
|
|
8428
|
+
__typename?: 'QuoteRenegotiationRequested';
|
|
8429
|
+
buyerComment?: Maybe<Scalars['String']>;
|
|
8430
|
+
type: Scalars['String'];
|
|
8431
|
+
};
|
|
8181
8432
|
export type TQuoteRequest = TVersioned & {
|
|
8182
8433
|
__typename?: 'QuoteRequest';
|
|
8183
8434
|
billingAddress?: Maybe<TAddress>;
|
|
8184
8435
|
businessUnit?: Maybe<TBusinessUnit>;
|
|
8185
8436
|
businessUnitRef?: Maybe<TKeyReference>;
|
|
8437
|
+
cartRef?: Maybe<TReference>;
|
|
8186
8438
|
comment?: Maybe<Scalars['String']>;
|
|
8187
8439
|
country?: Maybe<Scalars['Country']>;
|
|
8188
8440
|
createdAt: Scalars['DateTime'];
|
|
@@ -8303,11 +8555,25 @@ export declare enum TQuoteState {
|
|
|
8303
8555
|
Accepted = "Accepted",
|
|
8304
8556
|
Declined = "Declined",
|
|
8305
8557
|
DeclinedForRenegotiation = "DeclinedForRenegotiation",
|
|
8306
|
-
Failed = "Failed",
|
|
8307
8558
|
Pending = "Pending",
|
|
8308
8559
|
RenegotiationAddressed = "RenegotiationAddressed",
|
|
8309
8560
|
Withdrawn = "Withdrawn"
|
|
8310
8561
|
}
|
|
8562
|
+
export type TQuoteStateChanged = TMessagePayload & {
|
|
8563
|
+
__typename?: 'QuoteStateChanged';
|
|
8564
|
+
oldQuoteState: TQuoteState;
|
|
8565
|
+
quoteState: TQuoteState;
|
|
8566
|
+
type: Scalars['String'];
|
|
8567
|
+
};
|
|
8568
|
+
export type TQuoteStateTransition = TMessagePayload & {
|
|
8569
|
+
__typename?: 'QuoteStateTransition';
|
|
8570
|
+
force: Scalars['Boolean'];
|
|
8571
|
+
oldState?: Maybe<TState>;
|
|
8572
|
+
oldStateRef?: Maybe<TReference>;
|
|
8573
|
+
state?: Maybe<TState>;
|
|
8574
|
+
stateRef: TReference;
|
|
8575
|
+
type: Scalars['String'];
|
|
8576
|
+
};
|
|
8311
8577
|
export type TQuoteUpdateAction = {
|
|
8312
8578
|
changeCustomer?: InputMaybe<TChangeQuoteCustomer>;
|
|
8313
8579
|
changeQuoteState?: InputMaybe<TChangeQuoteState>;
|
|
@@ -11627,6 +11893,15 @@ export type TStagedQuote = TVersioned & {
|
|
|
11627
11893
|
validTo?: Maybe<Scalars['DateTime']>;
|
|
11628
11894
|
version: Scalars['Long'];
|
|
11629
11895
|
};
|
|
11896
|
+
export type TStagedQuoteCreated = TMessagePayload & {
|
|
11897
|
+
__typename?: 'StagedQuoteCreated';
|
|
11898
|
+
stagedQuote: TStagedQuote;
|
|
11899
|
+
type: Scalars['String'];
|
|
11900
|
+
};
|
|
11901
|
+
export type TStagedQuoteDeleted = TMessagePayload & {
|
|
11902
|
+
__typename?: 'StagedQuoteDeleted';
|
|
11903
|
+
type: Scalars['String'];
|
|
11904
|
+
};
|
|
11630
11905
|
export type TStagedQuoteDraft = {
|
|
11631
11906
|
custom?: InputMaybe<TCustomFieldsDraft>;
|
|
11632
11907
|
key?: InputMaybe<Scalars['String']>;
|
|
@@ -11643,11 +11918,31 @@ export type TStagedQuoteQueryResult = {
|
|
|
11643
11918
|
results: Array<TStagedQuote>;
|
|
11644
11919
|
total: Scalars['Long'];
|
|
11645
11920
|
};
|
|
11921
|
+
export type TStagedQuoteSellerCommentSet = TMessagePayload & {
|
|
11922
|
+
__typename?: 'StagedQuoteSellerCommentSet';
|
|
11923
|
+
sellerComment?: Maybe<Scalars['String']>;
|
|
11924
|
+
type: Scalars['String'];
|
|
11925
|
+
};
|
|
11646
11926
|
export declare enum TStagedQuoteState {
|
|
11647
11927
|
Closed = "Closed",
|
|
11648
11928
|
InProgress = "InProgress",
|
|
11649
11929
|
Sent = "Sent"
|
|
11650
11930
|
}
|
|
11931
|
+
export type TStagedQuoteStateChanged = TMessagePayload & {
|
|
11932
|
+
__typename?: 'StagedQuoteStateChanged';
|
|
11933
|
+
oldStagedQuoteState: TStagedQuoteState;
|
|
11934
|
+
stagedQuoteState: TStagedQuoteState;
|
|
11935
|
+
type: Scalars['String'];
|
|
11936
|
+
};
|
|
11937
|
+
export type TStagedQuoteStateTransition = TMessagePayload & {
|
|
11938
|
+
__typename?: 'StagedQuoteStateTransition';
|
|
11939
|
+
force: Scalars['Boolean'];
|
|
11940
|
+
oldState?: Maybe<TState>;
|
|
11941
|
+
oldStateRef?: Maybe<TReference>;
|
|
11942
|
+
state?: Maybe<TState>;
|
|
11943
|
+
stateRef: TReference;
|
|
11944
|
+
type: Scalars['String'];
|
|
11945
|
+
};
|
|
11651
11946
|
export type TStagedQuoteUpdateAction = {
|
|
11652
11947
|
changeStagedQuoteState?: InputMaybe<TChangeStagedQuoteState>;
|
|
11653
11948
|
setCustomField?: InputMaybe<TSetStagedQuoteCustomField>;
|
|
@@ -11656,6 +11951,11 @@ export type TStagedQuoteUpdateAction = {
|
|
|
11656
11951
|
setValidTo?: InputMaybe<TSetStagedQuoteValidTo>;
|
|
11657
11952
|
transitionState?: InputMaybe<TTransitionStagedQuoteState>;
|
|
11658
11953
|
};
|
|
11954
|
+
export type TStagedQuoteValidToSet = TMessagePayload & {
|
|
11955
|
+
__typename?: 'StagedQuoteValidToSet';
|
|
11956
|
+
type: Scalars['String'];
|
|
11957
|
+
validTo?: Maybe<Scalars['DateTime']>;
|
|
11958
|
+
};
|
|
11659
11959
|
export type TStagedStandalonePrice = {
|
|
11660
11960
|
__typename?: 'StagedStandalonePrice';
|
|
11661
11961
|
discounted?: Maybe<TDiscountedProductPriceValue>;
|
|
@@ -11738,6 +12038,7 @@ export type TStandalonePriceStagedChangesApplied = TMessagePayload & {
|
|
|
11738
12038
|
};
|
|
11739
12039
|
export type TStandalonePriceStagedChangesRemoved = TMessagePayload & {
|
|
11740
12040
|
__typename?: 'StandalonePriceStagedChangesRemoved';
|
|
12041
|
+
stagedChanges?: Maybe<TStagedStandalonePrice>;
|
|
11741
12042
|
type: Scalars['String'];
|
|
11742
12043
|
};
|
|
11743
12044
|
export type TStandalonePriceTierAdded = TMessagePayload & {
|