@commercetools-frontend/application-shell 27.10.0 → 27.11.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/{index-245e2980.cjs.prod.js → application-entry-point-516fd72c.cjs.prod.js} +70 -4
- package/dist/{index-86039df7.esm.js → application-entry-point-e20cafdb.esm.js} +81 -7
- package/dist/{index-614accc4.cjs.dev.js → application-entry-point-e5623556.cjs.dev.js} +80 -4
- package/dist/commercetools-frontend-application-shell.cjs.dev.js +15 -13
- package/dist/commercetools-frontend-application-shell.cjs.prod.js +15 -13
- package/dist/commercetools-frontend-application-shell.esm.js +12 -11
- package/dist/{custom-view-dev-host-8925c254.esm.js → custom-view-dev-host-0c1284af.esm.js} +6 -5
- package/dist/{custom-view-dev-host-c5cae7af.cjs.prod.js → custom-view-dev-host-e7afc6ce.cjs.prod.js} +6 -5
- package/dist/{custom-view-dev-host-16c18b8b.cjs.dev.js → custom-view-dev-host-fd473995.cjs.dev.js} +6 -5
- package/dist/declarations/src/index.d.ts +1 -0
- package/dist/declarations/src/types/generated/mc.d.ts +121 -0
- package/dist/declarations/src/utils/select-project-key-in-context/index.d.ts +1 -0
- package/dist/declarations/src/utils/select-project-key-in-context/select-project-key-in-context.d.ts +6 -0
- package/dist/declarations-connectors/src/components/application-context/application-context.d.ts +4 -0
- package/dist/declarations-connectors/src/types/generated/mc.d.ts +121 -0
- package/dist/{index-ce507805.cjs.prod.js → index-2ead4c51.cjs.prod.js} +139 -77
- package/dist/index-33df00ac.esm.js +2075 -0
- package/dist/index-582e2c31.cjs.dev.js +2137 -0
- package/dist/{navbar-59504b51.cjs.dev.js → navbar-1c7bea3d.cjs.dev.js} +56 -10
- package/dist/{navbar-9eb6c972.esm.js → navbar-f1a15d6d.esm.js} +57 -11
- package/dist/{navbar-f4b2552d.cjs.prod.js → navbar-f6d839cd.cjs.prod.js} +53 -10
- package/dist/{oidc-callback-1836d6f9.esm.js → oidc-callback-293b318e.esm.js} +7 -6
- package/dist/{oidc-callback-5b213b4f.cjs.prod.js → oidc-callback-55b9cdae.cjs.prod.js} +7 -6
- package/dist/{oidc-callback-ec951044.cjs.dev.js → oidc-callback-d2bde9ed.cjs.dev.js} +7 -6
- package/dist/{project-container-7f13b722.esm.js → project-container-1a5109fc.esm.js} +12 -13
- package/dist/{project-container-bd7b1263.cjs.dev.js → project-container-cf9513f2.cjs.dev.js} +12 -13
- package/dist/{project-container-d44394a1.cjs.prod.js → project-container-d10fd8fc.cjs.prod.js} +12 -13
- package/dist/{project-expired-fbd3b921.cjs.prod.js → project-expired-04d50538.cjs.prod.js} +8 -7
- package/dist/{project-expired-b0f48929.esm.js → project-expired-08c6c246.esm.js} +8 -7
- package/dist/{project-expired-200d21fc.cjs.dev.js → project-expired-50bc2113.cjs.dev.js} +8 -7
- package/dist/{project-not-found-6a2f3959.cjs.dev.js → project-not-found-6153dba4.cjs.dev.js} +8 -7
- package/dist/{project-not-found-2c4da477.cjs.prod.js → project-not-found-78dfadaa.cjs.prod.js} +8 -7
- package/dist/{project-not-found-2b48a462.esm.js → project-not-found-ee111ef0.esm.js} +8 -7
- package/dist/{project-not-initialized-d1532d05.cjs.prod.js → project-not-initialized-0e64926e.cjs.prod.js} +8 -7
- package/dist/{project-not-initialized-8324ddc0.esm.js → project-not-initialized-3e57d2cd.esm.js} +8 -7
- package/dist/{project-not-initialized-a4cdccae.cjs.dev.js → project-not-initialized-9d9df6a9.cjs.dev.js} +8 -7
- package/dist/{project-suspended-42ac696c.cjs.dev.js → project-suspended-12605956.cjs.dev.js} +8 -7
- package/dist/{project-suspended-ab7faf16.esm.js → project-suspended-a9d0c371.esm.js} +8 -7
- package/dist/{project-suspended-0450891d.cjs.prod.js → project-suspended-ede2efc6.cjs.prod.js} +8 -7
- package/dist/{redirect-to-login-6675c038.cjs.prod.js → redirect-to-login-18f6e1b8.cjs.prod.js} +1 -1
- package/dist/{redirect-to-login-8a61864c.cjs.dev.js → redirect-to-login-4dbf1c4e.cjs.dev.js} +1 -1
- package/dist/{redirect-to-login-b79d0910.esm.js → redirect-to-login-79be7369.esm.js} +2 -2
- package/dist/{redirect-to-logout-4de14b5d.esm.js → redirect-to-logout-d1b8a6bc.esm.js} +9 -8
- package/dist/{redirect-to-logout-71e8db26.cjs.prod.js → redirect-to-logout-da9da19a.cjs.prod.js} +8 -7
- package/dist/{redirect-to-logout-37258f53.cjs.dev.js → redirect-to-logout-f6457890.cjs.dev.js} +8 -7
- package/dist/{redirect-to-project-create-9249e554.esm.js → redirect-to-project-create-3a88851c.esm.js} +2 -1
- package/dist/{redirect-to-project-create-e4ff7797.cjs.prod.js → redirect-to-project-create-603634dd.cjs.prod.js} +2 -1
- package/dist/{redirect-to-project-create-f4f01842.cjs.dev.js → redirect-to-project-create-611ee583.cjs.dev.js} +2 -1
- package/dist/{requests-in-flight-loader-b33d695b.cjs.prod.js → requests-in-flight-loader-16c2fd17.cjs.prod.js} +8 -7
- package/dist/{requests-in-flight-loader-dd13291f.esm.js → requests-in-flight-loader-e59c5d2d.esm.js} +8 -7
- package/dist/{requests-in-flight-loader-60a2553f.cjs.dev.js → requests-in-flight-loader-ecfc1ba5.cjs.dev.js} +8 -7
- package/dist/{service-page-project-switcher-db1d0801.esm.js → service-page-project-switcher-10bbd35c.esm.js} +1 -1
- package/dist/{service-page-project-switcher-974235d0.cjs.dev.js → service-page-project-switcher-1339a2a5.cjs.dev.js} +1 -1
- package/dist/{service-page-project-switcher-70a8155d.cjs.prod.js → service-page-project-switcher-8b3a8c3d.cjs.prod.js} +1 -1
- package/dist/{use-applications-menu-8984efa1.cjs.prod.js → use-applications-menu-81fff376.cjs.dev.js} +4 -1
- package/dist/{use-applications-menu-bc2b9a66.esm.js → use-applications-menu-85ab6542.esm.js} +4 -1
- package/dist/{use-applications-menu-bd718ac8.cjs.dev.js → use-applications-menu-dab068b3.cjs.prod.js} +4 -1
- package/dist/{user-settings-menu-2235add2.cjs.prod.js → user-settings-menu-361180d0.cjs.prod.js} +3 -3
- package/dist/user-settings-menu-498c4581.esm.js +320 -0
- package/dist/user-settings-menu-79f09480.cjs.dev.js +345 -0
- package/package.json +17 -17
- package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.dev.js +6 -6
- package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.prod.js +6 -6
- package/test-utils/dist/commercetools-frontend-application-shell-test-utils.esm.js +4 -4
- package/dist/application-entry-point-10a5e1a5.esm.js +0 -82
- package/dist/application-entry-point-8c4b8e53.cjs.prod.js +0 -86
- package/dist/application-entry-point-c87294b0.cjs.dev.js +0 -96
- package/dist/index-ac7ed4f7.esm.js +0 -2014
- package/dist/index-c7140b1c.cjs.dev.js +0 -2075
- package/dist/user-settings-menu-a1d0ba8e.esm.js +0 -320
- package/dist/user-settings-menu-b8359b8b.cjs.dev.js +0 -345
|
@@ -8,9 +8,10 @@ import Constraints from '@commercetools-uikit/constraints';
|
|
|
8
8
|
import PrimaryButton from '@commercetools-uikit/primary-button';
|
|
9
9
|
import Spacings from '@commercetools-uikit/spacings';
|
|
10
10
|
import Text from '@commercetools-uikit/text';
|
|
11
|
-
import { A as ApplicationShell } from './index-
|
|
11
|
+
import { A as ApplicationShell } from './index-33df00ac.esm.js';
|
|
12
12
|
import { jsx, jsxs, Fragment } from '@emotion/react/jsx-runtime';
|
|
13
|
-
import '
|
|
13
|
+
import '@commercetools-frontend/constants';
|
|
14
|
+
import './application-entry-point-e20cafdb.esm.js';
|
|
14
15
|
import '@babel/runtime-corejs3/core-js-stable/object/keys';
|
|
15
16
|
import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
|
|
16
17
|
import '@babel/runtime-corejs3/core-js-stable/instance/filter';
|
|
@@ -30,7 +31,6 @@ import 'omit-empty-es';
|
|
|
30
31
|
import 'redux';
|
|
31
32
|
import 'redux-thunk';
|
|
32
33
|
import '@commercetools-frontend/application-shell-connectors';
|
|
33
|
-
import '@commercetools-frontend/constants';
|
|
34
34
|
import '@commercetools-frontend/notifications';
|
|
35
35
|
import '@commercetools-frontend/sdk';
|
|
36
36
|
import '@babel/runtime-corejs3/core-js-stable/instance/index-of';
|
|
@@ -40,6 +40,9 @@ import '@commercetools-frontend/sentry';
|
|
|
40
40
|
import '@commercetools-frontend/react-notifications';
|
|
41
41
|
import '@babel/runtime-corejs3/core-js-stable/instance/starts-with';
|
|
42
42
|
import 'redux-logger';
|
|
43
|
+
import 'tiny-invariant';
|
|
44
|
+
import '@commercetools-frontend/application-config/ssr';
|
|
45
|
+
import '@commercetools-frontend/permissions';
|
|
43
46
|
import '@emotion/styled/base';
|
|
44
47
|
import '@babel/runtime-corejs3/core-js-stable/instance/find';
|
|
45
48
|
import '@babel/runtime-corejs3/core-js-stable/array/is-array';
|
|
@@ -77,8 +80,6 @@ import '@babel/runtime-corejs3/helpers/possibleConstructorReturn';
|
|
|
77
80
|
import '@babel/runtime-corejs3/helpers/getPrototypeOf';
|
|
78
81
|
import '@babel/runtime-corejs3/helpers/inherits';
|
|
79
82
|
import '@commercetools-uikit/design-system/materials/resets.css';
|
|
80
|
-
import '@commercetools-frontend/application-config/ssr';
|
|
81
|
-
import '@commercetools-frontend/permissions';
|
|
82
83
|
import '@flopflip/memory-adapter';
|
|
83
84
|
import '@babel/runtime-corejs3/core-js-stable/json/stringify';
|
|
84
85
|
import '@babel/runtime-corejs3/core-js-stable/instance/some';
|
package/dist/{custom-view-dev-host-c5cae7af.cjs.prod.js → custom-view-dev-host-e7afc6ce.cjs.prod.js}
RENAMED
|
@@ -10,9 +10,10 @@ var Constraints = require('@commercetools-uikit/constraints');
|
|
|
10
10
|
var PrimaryButton = require('@commercetools-uikit/primary-button');
|
|
11
11
|
var Spacings = require('@commercetools-uikit/spacings');
|
|
12
12
|
var Text = require('@commercetools-uikit/text');
|
|
13
|
-
var dist_commercetoolsFrontendApplicationShell = require('./index-
|
|
13
|
+
var dist_commercetoolsFrontendApplicationShell = require('./index-2ead4c51.cjs.prod.js');
|
|
14
14
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
15
|
-
require('
|
|
15
|
+
require('@commercetools-frontend/constants');
|
|
16
|
+
require('./application-entry-point-516fd72c.cjs.prod.js');
|
|
16
17
|
require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
17
18
|
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
18
19
|
require('@babel/runtime-corejs3/core-js-stable/instance/filter');
|
|
@@ -32,7 +33,6 @@ require('omit-empty-es');
|
|
|
32
33
|
require('redux');
|
|
33
34
|
require('redux-thunk');
|
|
34
35
|
require('@commercetools-frontend/application-shell-connectors');
|
|
35
|
-
require('@commercetools-frontend/constants');
|
|
36
36
|
require('@commercetools-frontend/notifications');
|
|
37
37
|
require('@commercetools-frontend/sdk');
|
|
38
38
|
require('@babel/runtime-corejs3/core-js-stable/instance/index-of');
|
|
@@ -42,6 +42,9 @@ require('@commercetools-frontend/sentry');
|
|
|
42
42
|
require('@commercetools-frontend/react-notifications');
|
|
43
43
|
require('@babel/runtime-corejs3/core-js-stable/instance/starts-with');
|
|
44
44
|
require('redux-logger');
|
|
45
|
+
require('tiny-invariant');
|
|
46
|
+
require('@commercetools-frontend/application-config/ssr');
|
|
47
|
+
require('@commercetools-frontend/permissions');
|
|
45
48
|
require('@emotion/styled/base');
|
|
46
49
|
require('@babel/runtime-corejs3/core-js-stable/instance/find');
|
|
47
50
|
require('@babel/runtime-corejs3/core-js-stable/array/is-array');
|
|
@@ -79,8 +82,6 @@ require('@babel/runtime-corejs3/helpers/possibleConstructorReturn');
|
|
|
79
82
|
require('@babel/runtime-corejs3/helpers/getPrototypeOf');
|
|
80
83
|
require('@babel/runtime-corejs3/helpers/inherits');
|
|
81
84
|
require('@commercetools-uikit/design-system/materials/resets.css');
|
|
82
|
-
require('@commercetools-frontend/application-config/ssr');
|
|
83
|
-
require('@commercetools-frontend/permissions');
|
|
84
85
|
require('@flopflip/memory-adapter');
|
|
85
86
|
require('@babel/runtime-corejs3/core-js-stable/json/stringify');
|
|
86
87
|
require('@babel/runtime-corejs3/core-js-stable/instance/some');
|
package/dist/{custom-view-dev-host-16c18b8b.cjs.dev.js → custom-view-dev-host-fd473995.cjs.dev.js}
RENAMED
|
@@ -10,9 +10,10 @@ var Constraints = require('@commercetools-uikit/constraints');
|
|
|
10
10
|
var PrimaryButton = require('@commercetools-uikit/primary-button');
|
|
11
11
|
var Spacings = require('@commercetools-uikit/spacings');
|
|
12
12
|
var Text = require('@commercetools-uikit/text');
|
|
13
|
-
var dist_commercetoolsFrontendApplicationShell = require('./index-
|
|
13
|
+
var dist_commercetoolsFrontendApplicationShell = require('./index-582e2c31.cjs.dev.js');
|
|
14
14
|
var jsxRuntime = require('@emotion/react/jsx-runtime');
|
|
15
|
-
require('
|
|
15
|
+
require('@commercetools-frontend/constants');
|
|
16
|
+
require('./application-entry-point-e5623556.cjs.dev.js');
|
|
16
17
|
require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
17
18
|
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
18
19
|
require('@babel/runtime-corejs3/core-js-stable/instance/filter');
|
|
@@ -32,7 +33,6 @@ require('omit-empty-es');
|
|
|
32
33
|
require('redux');
|
|
33
34
|
require('redux-thunk');
|
|
34
35
|
require('@commercetools-frontend/application-shell-connectors');
|
|
35
|
-
require('@commercetools-frontend/constants');
|
|
36
36
|
require('@commercetools-frontend/notifications');
|
|
37
37
|
require('@commercetools-frontend/sdk');
|
|
38
38
|
require('@babel/runtime-corejs3/core-js-stable/instance/index-of');
|
|
@@ -42,6 +42,9 @@ require('@commercetools-frontend/sentry');
|
|
|
42
42
|
require('@commercetools-frontend/react-notifications');
|
|
43
43
|
require('@babel/runtime-corejs3/core-js-stable/instance/starts-with');
|
|
44
44
|
require('redux-logger');
|
|
45
|
+
require('tiny-invariant');
|
|
46
|
+
require('@commercetools-frontend/application-config/ssr');
|
|
47
|
+
require('@commercetools-frontend/permissions');
|
|
45
48
|
require('@emotion/styled/base');
|
|
46
49
|
require('@babel/runtime-corejs3/core-js-stable/instance/find');
|
|
47
50
|
require('@babel/runtime-corejs3/core-js-stable/array/is-array');
|
|
@@ -79,8 +82,6 @@ require('@babel/runtime-corejs3/helpers/possibleConstructorReturn');
|
|
|
79
82
|
require('@babel/runtime-corejs3/helpers/getPrototypeOf');
|
|
80
83
|
require('@babel/runtime-corejs3/helpers/inherits');
|
|
81
84
|
require('@commercetools-uikit/design-system/materials/resets.css');
|
|
82
|
-
require('@commercetools-frontend/application-config/ssr');
|
|
83
|
-
require('@commercetools-frontend/permissions');
|
|
84
85
|
require('@flopflip/memory-adapter');
|
|
85
86
|
require('@babel/runtime-corejs3/core-js-stable/json/stringify');
|
|
86
87
|
require('@babel/runtime-corejs3/core-js-stable/instance/some');
|
|
@@ -22,6 +22,7 @@ export { default as setupGlobalErrorListener } from "./utils/setup-global-error-
|
|
|
22
22
|
export { PERFORMANCE_MARKS } from "./utils/performance-marks/index.js";
|
|
23
23
|
export type { TPerformanceMark } from "./utils/performance-marks/index.js";
|
|
24
24
|
export { default as useRoutesCreator } from "./hooks/use-routes-creator/index.js";
|
|
25
|
+
export { default as selectProjectKeyInContext } from "./utils/select-project-key-in-context/index.js";
|
|
25
26
|
export { buildApiUrl, createApolloClient, createApolloContextForProxyForwardTo, createHttpClientOptions, executeHttpClientRequest, getMcApiUrl, selectUserId, selectProjectKeyFromUrl, useMcQuery, useMcLazyQuery, useMcMutation, } from "../../application-shell-connectors/dist/commercetools-frontend-application-shell-connectors.cjs.js";
|
|
26
27
|
export { entryPointUriPathToPermissionKeys, entryPointUriPathToResourceAccesses, } from '@commercetools-frontend/application-config/ssr';
|
|
27
28
|
/**
|
|
@@ -18,11 +18,99 @@ export type Scalars = {
|
|
|
18
18
|
Boolean: boolean;
|
|
19
19
|
Int: number;
|
|
20
20
|
Float: number;
|
|
21
|
+
DateTime: any;
|
|
22
|
+
};
|
|
23
|
+
export declare enum TAiUsageAnalyticsAggregation {
|
|
24
|
+
Count = "COUNT",
|
|
25
|
+
CountDistinct = "COUNT_DISTINCT",
|
|
26
|
+
Max = "MAX",
|
|
27
|
+
Min = "MIN",
|
|
28
|
+
Sum = "SUM"
|
|
29
|
+
}
|
|
30
|
+
export type TAiUsageAnalyticsCounterBreakdownItem = {
|
|
31
|
+
__typename?: 'AIUsageAnalyticsCounterBreakdownItem';
|
|
32
|
+
key: Scalars['ID'];
|
|
33
|
+
value: Scalars['Float'];
|
|
34
|
+
};
|
|
35
|
+
export type TAiUsageAnalyticsCounterInput = {
|
|
36
|
+
aggregation: TAiUsageAnalyticsAggregation;
|
|
37
|
+
groupBy?: InputMaybe<TAiUsageAnalyticsGroupDimension>;
|
|
38
|
+
key: Scalars['String'];
|
|
39
|
+
measure: TAiUsageAnalyticsMeasure;
|
|
40
|
+
};
|
|
41
|
+
export type TAiUsageAnalyticsCounterResult = {
|
|
42
|
+
__typename?: 'AIUsageAnalyticsCounterResult';
|
|
43
|
+
aggregation: TAiUsageAnalyticsAggregation;
|
|
44
|
+
breakdown?: Maybe<Array<TAiUsageAnalyticsCounterBreakdownItem>>;
|
|
45
|
+
groupBy?: Maybe<TAiUsageAnalyticsGroupDimension>;
|
|
46
|
+
key: Scalars['String'];
|
|
47
|
+
measure: TAiUsageAnalyticsMeasure;
|
|
48
|
+
value?: Maybe<Scalars['Float']>;
|
|
49
|
+
};
|
|
50
|
+
export declare enum TAiUsageAnalyticsGroupDimension {
|
|
51
|
+
Agent = "AGENT"
|
|
52
|
+
}
|
|
53
|
+
export declare enum TAiUsageAnalyticsMeasure {
|
|
54
|
+
Requests = "REQUESTS",
|
|
55
|
+
Tokens = "TOKENS",
|
|
56
|
+
TokensIn = "TOKENS_IN",
|
|
57
|
+
TokensOut = "TOKENS_OUT"
|
|
58
|
+
}
|
|
59
|
+
export type TAiUsageAnalyticsPeriodInput = {
|
|
60
|
+
from: Scalars['DateTime'];
|
|
61
|
+
to: Scalars['DateTime'];
|
|
62
|
+
};
|
|
63
|
+
export type TAiUsageAnalyticsResult = {
|
|
64
|
+
__typename?: 'AIUsageAnalyticsResult';
|
|
65
|
+
/**
|
|
66
|
+
* The counters data for the given project keys and organization id.
|
|
67
|
+
* The counters are used to aggregate the data by a specific dimension.
|
|
68
|
+
* For example, the total number of requests, the total number of tokens, the total number of tokens in, the total number of tokens out,
|
|
69
|
+
* the total number of latency, etc.
|
|
70
|
+
*/
|
|
71
|
+
counters: Array<TAiUsageAnalyticsCounterResult>;
|
|
72
|
+
/**
|
|
73
|
+
* The existence of the AI usage analytics feature. If there is no data for the given project keys and organization id,
|
|
74
|
+
* the existence will be `false`.
|
|
75
|
+
*/
|
|
76
|
+
exists: Scalars['Boolean'];
|
|
77
|
+
/** The time series data for the given project keys and organization id. */
|
|
78
|
+
timeSeries: Array<TAiUsageAnalyticsTimeSeriesGroup>;
|
|
79
|
+
};
|
|
80
|
+
export type TAiUsageAnalyticsResult_CountersArgs = {
|
|
81
|
+
counters: Array<TAiUsageAnalyticsCounterInput>;
|
|
82
|
+
period: TAiUsageAnalyticsPeriodInput;
|
|
83
|
+
};
|
|
84
|
+
export type TAiUsageAnalyticsResult_TimeSeriesArgs = {
|
|
85
|
+
groupBy?: InputMaybe<TAiUsageAnalyticsGroupDimension>;
|
|
86
|
+
interval?: InputMaybe<TAiUsageAnalyticsTimeInterval>;
|
|
87
|
+
measure: TAiUsageAnalyticsMeasure;
|
|
88
|
+
period: TAiUsageAnalyticsPeriodInput;
|
|
89
|
+
};
|
|
90
|
+
export declare enum TAiUsageAnalyticsTimeInterval {
|
|
91
|
+
Day = "DAY",
|
|
92
|
+
Month = "MONTH",
|
|
93
|
+
Week = "WEEK"
|
|
94
|
+
}
|
|
95
|
+
export type TAiUsageAnalyticsTimeSeriesGroup = {
|
|
96
|
+
__typename?: 'AIUsageAnalyticsTimeSeriesGroup';
|
|
97
|
+
key: Scalars['ID'];
|
|
98
|
+
points: Array<TAiUsageAnalyticsTimeSeriesPoint>;
|
|
99
|
+
};
|
|
100
|
+
export type TAiUsageAnalyticsTimeSeriesPoint = {
|
|
101
|
+
__typename?: 'AIUsageAnalyticsTimeSeriesPoint';
|
|
102
|
+
timestamp: Scalars['DateTime'];
|
|
103
|
+
value: Scalars['Float'];
|
|
21
104
|
};
|
|
22
105
|
export type TAdditionalUserInfo = {
|
|
23
106
|
firstName: Scalars['String'];
|
|
24
107
|
lastName: Scalars['String'];
|
|
25
108
|
};
|
|
109
|
+
export type TAgentCapability = {
|
|
110
|
+
__typename?: 'AgentCapability';
|
|
111
|
+
agentId: Scalars['String'];
|
|
112
|
+
requiredOAuthScopes: Array<Scalars['String']>;
|
|
113
|
+
};
|
|
26
114
|
export type TAllPermissionsForAllApplications = {
|
|
27
115
|
__typename?: 'AllPermissionsForAllApplications';
|
|
28
116
|
allAppliedActionRights: Array<TAppliedActionRight>;
|
|
@@ -80,6 +168,15 @@ export type TDeletedUser = {
|
|
|
80
168
|
__typename?: 'DeletedUser';
|
|
81
169
|
id: Scalars['String'];
|
|
82
170
|
};
|
|
171
|
+
export type TExportOrganizationMembersResult = {
|
|
172
|
+
__typename?: 'ExportOrganizationMembersResult';
|
|
173
|
+
/**
|
|
174
|
+
* The exported organization members as a CSV document. One row per user
|
|
175
|
+
* (deduplicated across teams), listing the user's email, the teams they belong
|
|
176
|
+
* to, and their last login timestamp in ISO 8601 UTC.
|
|
177
|
+
*/
|
|
178
|
+
result: Scalars['String'];
|
|
179
|
+
};
|
|
83
180
|
export type TFeature = {
|
|
84
181
|
__typename?: 'Feature';
|
|
85
182
|
name: Scalars['String'];
|
|
@@ -226,6 +323,7 @@ export type TOAuthClient = {
|
|
|
226
323
|
createdAt?: Maybe<Scalars['String']>;
|
|
227
324
|
id: Scalars['ID'];
|
|
228
325
|
lastUsedAt?: Maybe<Scalars['String']>;
|
|
326
|
+
mcpScopes: Array<Scalars['String']>;
|
|
229
327
|
name: Scalars['String'];
|
|
230
328
|
ownerId: Scalars['ID'];
|
|
231
329
|
permissions: Array<TProjectPermission>;
|
|
@@ -354,6 +452,12 @@ export declare enum TProjectSuspensionReason {
|
|
|
354
452
|
}
|
|
355
453
|
export type TQuery = {
|
|
356
454
|
__typename?: 'Query';
|
|
455
|
+
agentRequiredCapabilities: Array<TAgentCapability>;
|
|
456
|
+
/**
|
|
457
|
+
* Returns the AI usage analytics for the given project key and organization id.
|
|
458
|
+
* Only administrators of the organization may call this query.
|
|
459
|
+
*/
|
|
460
|
+
aiUsageAnalytics: TAiUsageAnalyticsResult;
|
|
357
461
|
allFeatures: Array<TFeature>;
|
|
358
462
|
allImpliedOAuthScopes: Array<Scalars['String']>;
|
|
359
463
|
allSupportedActionRights?: Maybe<Array<TSupportedActionRight>>;
|
|
@@ -363,6 +467,11 @@ export type TQuery = {
|
|
|
363
467
|
allSupportedResources?: Maybe<Array<TSupportedResource>>;
|
|
364
468
|
allSupportedStoreScopes?: Maybe<Array<TSupportedStoreScope>>;
|
|
365
469
|
amILoggedIn: Scalars['Boolean'];
|
|
470
|
+
/**
|
|
471
|
+
* Exports every member of every team in the given organization as a CSV
|
|
472
|
+
* document. Only administrators of the organization may call this query.
|
|
473
|
+
*/
|
|
474
|
+
exportOrganizationMembers: TExportOrganizationMembersResult;
|
|
366
475
|
invitation?: Maybe<TInvitationQueryResult>;
|
|
367
476
|
me?: Maybe<TUser>;
|
|
368
477
|
oAuthClient?: Maybe<TOAuthClient>;
|
|
@@ -374,10 +483,20 @@ export type TQuery = {
|
|
|
374
483
|
storeOAuthScopes: Array<Scalars['String']>;
|
|
375
484
|
systemStatus: TSystemStatus;
|
|
376
485
|
};
|
|
486
|
+
export type TQuery_AgentRequiredCapabilitiesArgs = {
|
|
487
|
+
projectKey: Scalars['String'];
|
|
488
|
+
};
|
|
489
|
+
export type TQuery_AiUsageAnalyticsArgs = {
|
|
490
|
+
organizationId: Scalars['ID'];
|
|
491
|
+
projectKey: Scalars['String'];
|
|
492
|
+
};
|
|
377
493
|
export type TQuery_AllImpliedOAuthScopesArgs = {
|
|
378
494
|
onlyConfiguredOnTrustedClient?: InputMaybe<Scalars['Boolean']>;
|
|
379
495
|
resourceAccessPermissions: Array<Scalars['String']>;
|
|
380
496
|
};
|
|
497
|
+
export type TQuery_ExportOrganizationMembersArgs = {
|
|
498
|
+
organizationId: Scalars['ID'];
|
|
499
|
+
};
|
|
381
500
|
export type TQuery_InvitationArgs = {
|
|
382
501
|
where?: InputMaybe<TInvitationWhereInput>;
|
|
383
502
|
};
|
|
@@ -527,6 +646,7 @@ export type TUser = TMetaData & {
|
|
|
527
646
|
gravatarHash: Scalars['String'];
|
|
528
647
|
id: Scalars['ID'];
|
|
529
648
|
idTokenUserInfo?: Maybe<TIdTokenUserInfo>;
|
|
649
|
+
isAdminOfAnyOrganization: Scalars['Boolean'];
|
|
530
650
|
language: Scalars['String'];
|
|
531
651
|
lastModifiedAt: Scalars['String'];
|
|
532
652
|
lastName: Scalars['String'];
|
|
@@ -675,6 +795,7 @@ export type TFetchLoggedInUserQuery = {
|
|
|
675
795
|
launchdarklyTrackingTeam?: Array<string> | null;
|
|
676
796
|
launchdarklyTrackingCloudEnvironment: string;
|
|
677
797
|
defaultProjectKey?: string | null;
|
|
798
|
+
isAdminOfAnyOrganization: boolean;
|
|
678
799
|
businessRole?: string | null;
|
|
679
800
|
projects: {
|
|
680
801
|
__typename?: 'ProjectQueryResult';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./select-project-key-in-context.js";
|
package/dist/declarations/src/utils/select-project-key-in-context/select-project-key-in-context.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type TSelectProjectKeyInContextOptions = {
|
|
2
|
+
pathname: string;
|
|
3
|
+
defaultProjectKeyOfUser?: string;
|
|
4
|
+
};
|
|
5
|
+
declare const selectProjectKeyInContext: ({ pathname, defaultProjectKeyOfUser, }: TSelectProjectKeyInContextOptions) => string | undefined;
|
|
6
|
+
export default selectProjectKeyInContext;
|
package/dist/declarations-connectors/src/components/application-context/application-context.d.ts
CHANGED
|
@@ -34,6 +34,10 @@ type TApplicationContextDataFenceType = 'store';
|
|
|
34
34
|
type TApplicationContextDataFences = Partial<Record<TApplicationContextDataFenceType, TApplicationContextGroupedByResourceType>>;
|
|
35
35
|
type TApplicationContextEnvironment = ApplicationWindow['app'];
|
|
36
36
|
type TApplicationContextUser = Pick<NonNullable<TFetchedUser>, 'id' | 'email' | 'createdAt' | 'firstName' | 'lastName' | 'businessRole' | 'projects'> & {
|
|
37
|
+
/**
|
|
38
|
+
* Indicates whether the user is an admin of at least one organization.
|
|
39
|
+
*/
|
|
40
|
+
isAdminOfAnyOrganization: boolean;
|
|
37
41
|
locale: string;
|
|
38
42
|
timeZone: string;
|
|
39
43
|
idTokenUserInfo?: Omit<TIdTokenUserInfo, 'additionalClaims'> & {
|
|
@@ -18,11 +18,99 @@ export type Scalars = {
|
|
|
18
18
|
Boolean: boolean;
|
|
19
19
|
Int: number;
|
|
20
20
|
Float: number;
|
|
21
|
+
DateTime: any;
|
|
22
|
+
};
|
|
23
|
+
export declare enum TAiUsageAnalyticsAggregation {
|
|
24
|
+
Count = "COUNT",
|
|
25
|
+
CountDistinct = "COUNT_DISTINCT",
|
|
26
|
+
Max = "MAX",
|
|
27
|
+
Min = "MIN",
|
|
28
|
+
Sum = "SUM"
|
|
29
|
+
}
|
|
30
|
+
export type TAiUsageAnalyticsCounterBreakdownItem = {
|
|
31
|
+
__typename?: 'AIUsageAnalyticsCounterBreakdownItem';
|
|
32
|
+
key: Scalars['ID'];
|
|
33
|
+
value: Scalars['Float'];
|
|
34
|
+
};
|
|
35
|
+
export type TAiUsageAnalyticsCounterInput = {
|
|
36
|
+
aggregation: TAiUsageAnalyticsAggregation;
|
|
37
|
+
groupBy?: InputMaybe<TAiUsageAnalyticsGroupDimension>;
|
|
38
|
+
key: Scalars['String'];
|
|
39
|
+
measure: TAiUsageAnalyticsMeasure;
|
|
40
|
+
};
|
|
41
|
+
export type TAiUsageAnalyticsCounterResult = {
|
|
42
|
+
__typename?: 'AIUsageAnalyticsCounterResult';
|
|
43
|
+
aggregation: TAiUsageAnalyticsAggregation;
|
|
44
|
+
breakdown?: Maybe<Array<TAiUsageAnalyticsCounterBreakdownItem>>;
|
|
45
|
+
groupBy?: Maybe<TAiUsageAnalyticsGroupDimension>;
|
|
46
|
+
key: Scalars['String'];
|
|
47
|
+
measure: TAiUsageAnalyticsMeasure;
|
|
48
|
+
value?: Maybe<Scalars['Float']>;
|
|
49
|
+
};
|
|
50
|
+
export declare enum TAiUsageAnalyticsGroupDimension {
|
|
51
|
+
Agent = "AGENT"
|
|
52
|
+
}
|
|
53
|
+
export declare enum TAiUsageAnalyticsMeasure {
|
|
54
|
+
Requests = "REQUESTS",
|
|
55
|
+
Tokens = "TOKENS",
|
|
56
|
+
TokensIn = "TOKENS_IN",
|
|
57
|
+
TokensOut = "TOKENS_OUT"
|
|
58
|
+
}
|
|
59
|
+
export type TAiUsageAnalyticsPeriodInput = {
|
|
60
|
+
from: Scalars['DateTime'];
|
|
61
|
+
to: Scalars['DateTime'];
|
|
62
|
+
};
|
|
63
|
+
export type TAiUsageAnalyticsResult = {
|
|
64
|
+
__typename?: 'AIUsageAnalyticsResult';
|
|
65
|
+
/**
|
|
66
|
+
* The counters data for the given project keys and organization id.
|
|
67
|
+
* The counters are used to aggregate the data by a specific dimension.
|
|
68
|
+
* For example, the total number of requests, the total number of tokens, the total number of tokens in, the total number of tokens out,
|
|
69
|
+
* the total number of latency, etc.
|
|
70
|
+
*/
|
|
71
|
+
counters: Array<TAiUsageAnalyticsCounterResult>;
|
|
72
|
+
/**
|
|
73
|
+
* The existence of the AI usage analytics feature. If there is no data for the given project keys and organization id,
|
|
74
|
+
* the existence will be `false`.
|
|
75
|
+
*/
|
|
76
|
+
exists: Scalars['Boolean'];
|
|
77
|
+
/** The time series data for the given project keys and organization id. */
|
|
78
|
+
timeSeries: Array<TAiUsageAnalyticsTimeSeriesGroup>;
|
|
79
|
+
};
|
|
80
|
+
export type TAiUsageAnalyticsResult_CountersArgs = {
|
|
81
|
+
counters: Array<TAiUsageAnalyticsCounterInput>;
|
|
82
|
+
period: TAiUsageAnalyticsPeriodInput;
|
|
83
|
+
};
|
|
84
|
+
export type TAiUsageAnalyticsResult_TimeSeriesArgs = {
|
|
85
|
+
groupBy?: InputMaybe<TAiUsageAnalyticsGroupDimension>;
|
|
86
|
+
interval?: InputMaybe<TAiUsageAnalyticsTimeInterval>;
|
|
87
|
+
measure: TAiUsageAnalyticsMeasure;
|
|
88
|
+
period: TAiUsageAnalyticsPeriodInput;
|
|
89
|
+
};
|
|
90
|
+
export declare enum TAiUsageAnalyticsTimeInterval {
|
|
91
|
+
Day = "DAY",
|
|
92
|
+
Month = "MONTH",
|
|
93
|
+
Week = "WEEK"
|
|
94
|
+
}
|
|
95
|
+
export type TAiUsageAnalyticsTimeSeriesGroup = {
|
|
96
|
+
__typename?: 'AIUsageAnalyticsTimeSeriesGroup';
|
|
97
|
+
key: Scalars['ID'];
|
|
98
|
+
points: Array<TAiUsageAnalyticsTimeSeriesPoint>;
|
|
99
|
+
};
|
|
100
|
+
export type TAiUsageAnalyticsTimeSeriesPoint = {
|
|
101
|
+
__typename?: 'AIUsageAnalyticsTimeSeriesPoint';
|
|
102
|
+
timestamp: Scalars['DateTime'];
|
|
103
|
+
value: Scalars['Float'];
|
|
21
104
|
};
|
|
22
105
|
export type TAdditionalUserInfo = {
|
|
23
106
|
firstName: Scalars['String'];
|
|
24
107
|
lastName: Scalars['String'];
|
|
25
108
|
};
|
|
109
|
+
export type TAgentCapability = {
|
|
110
|
+
__typename?: 'AgentCapability';
|
|
111
|
+
agentId: Scalars['String'];
|
|
112
|
+
requiredOAuthScopes: Array<Scalars['String']>;
|
|
113
|
+
};
|
|
26
114
|
export type TAllPermissionsForAllApplications = {
|
|
27
115
|
__typename?: 'AllPermissionsForAllApplications';
|
|
28
116
|
allAppliedActionRights: Array<TAppliedActionRight>;
|
|
@@ -80,6 +168,15 @@ export type TDeletedUser = {
|
|
|
80
168
|
__typename?: 'DeletedUser';
|
|
81
169
|
id: Scalars['String'];
|
|
82
170
|
};
|
|
171
|
+
export type TExportOrganizationMembersResult = {
|
|
172
|
+
__typename?: 'ExportOrganizationMembersResult';
|
|
173
|
+
/**
|
|
174
|
+
* The exported organization members as a CSV document. One row per user
|
|
175
|
+
* (deduplicated across teams), listing the user's email, the teams they belong
|
|
176
|
+
* to, and their last login timestamp in ISO 8601 UTC.
|
|
177
|
+
*/
|
|
178
|
+
result: Scalars['String'];
|
|
179
|
+
};
|
|
83
180
|
export type TFeature = {
|
|
84
181
|
__typename?: 'Feature';
|
|
85
182
|
name: Scalars['String'];
|
|
@@ -226,6 +323,7 @@ export type TOAuthClient = {
|
|
|
226
323
|
createdAt?: Maybe<Scalars['String']>;
|
|
227
324
|
id: Scalars['ID'];
|
|
228
325
|
lastUsedAt?: Maybe<Scalars['String']>;
|
|
326
|
+
mcpScopes: Array<Scalars['String']>;
|
|
229
327
|
name: Scalars['String'];
|
|
230
328
|
ownerId: Scalars['ID'];
|
|
231
329
|
permissions: Array<TProjectPermission>;
|
|
@@ -354,6 +452,12 @@ export declare enum TProjectSuspensionReason {
|
|
|
354
452
|
}
|
|
355
453
|
export type TQuery = {
|
|
356
454
|
__typename?: 'Query';
|
|
455
|
+
agentRequiredCapabilities: Array<TAgentCapability>;
|
|
456
|
+
/**
|
|
457
|
+
* Returns the AI usage analytics for the given project key and organization id.
|
|
458
|
+
* Only administrators of the organization may call this query.
|
|
459
|
+
*/
|
|
460
|
+
aiUsageAnalytics: TAiUsageAnalyticsResult;
|
|
357
461
|
allFeatures: Array<TFeature>;
|
|
358
462
|
allImpliedOAuthScopes: Array<Scalars['String']>;
|
|
359
463
|
allSupportedActionRights?: Maybe<Array<TSupportedActionRight>>;
|
|
@@ -363,6 +467,11 @@ export type TQuery = {
|
|
|
363
467
|
allSupportedResources?: Maybe<Array<TSupportedResource>>;
|
|
364
468
|
allSupportedStoreScopes?: Maybe<Array<TSupportedStoreScope>>;
|
|
365
469
|
amILoggedIn: Scalars['Boolean'];
|
|
470
|
+
/**
|
|
471
|
+
* Exports every member of every team in the given organization as a CSV
|
|
472
|
+
* document. Only administrators of the organization may call this query.
|
|
473
|
+
*/
|
|
474
|
+
exportOrganizationMembers: TExportOrganizationMembersResult;
|
|
366
475
|
invitation?: Maybe<TInvitationQueryResult>;
|
|
367
476
|
me?: Maybe<TUser>;
|
|
368
477
|
oAuthClient?: Maybe<TOAuthClient>;
|
|
@@ -374,10 +483,20 @@ export type TQuery = {
|
|
|
374
483
|
storeOAuthScopes: Array<Scalars['String']>;
|
|
375
484
|
systemStatus: TSystemStatus;
|
|
376
485
|
};
|
|
486
|
+
export type TQuery_AgentRequiredCapabilitiesArgs = {
|
|
487
|
+
projectKey: Scalars['String'];
|
|
488
|
+
};
|
|
489
|
+
export type TQuery_AiUsageAnalyticsArgs = {
|
|
490
|
+
organizationId: Scalars['ID'];
|
|
491
|
+
projectKey: Scalars['String'];
|
|
492
|
+
};
|
|
377
493
|
export type TQuery_AllImpliedOAuthScopesArgs = {
|
|
378
494
|
onlyConfiguredOnTrustedClient?: InputMaybe<Scalars['Boolean']>;
|
|
379
495
|
resourceAccessPermissions: Array<Scalars['String']>;
|
|
380
496
|
};
|
|
497
|
+
export type TQuery_ExportOrganizationMembersArgs = {
|
|
498
|
+
organizationId: Scalars['ID'];
|
|
499
|
+
};
|
|
381
500
|
export type TQuery_InvitationArgs = {
|
|
382
501
|
where?: InputMaybe<TInvitationWhereInput>;
|
|
383
502
|
};
|
|
@@ -527,6 +646,7 @@ export type TUser = TMetaData & {
|
|
|
527
646
|
gravatarHash: Scalars['String'];
|
|
528
647
|
id: Scalars['ID'];
|
|
529
648
|
idTokenUserInfo?: Maybe<TIdTokenUserInfo>;
|
|
649
|
+
isAdminOfAnyOrganization: Scalars['Boolean'];
|
|
530
650
|
language: Scalars['String'];
|
|
531
651
|
lastModifiedAt: Scalars['String'];
|
|
532
652
|
lastName: Scalars['String'];
|
|
@@ -675,6 +795,7 @@ export type TFetchLoggedInUserQuery = {
|
|
|
675
795
|
launchdarklyTrackingTeam?: Array<string> | null;
|
|
676
796
|
launchdarklyTrackingCloudEnvironment: string;
|
|
677
797
|
defaultProjectKey?: string | null;
|
|
798
|
+
isAdminOfAnyOrganization: boolean;
|
|
678
799
|
businessRole?: string | null;
|
|
679
800
|
projects: {
|
|
680
801
|
__typename?: 'ProjectQueryResult';
|