@commercetools-frontend/application-shell 21.8.1 → 21.11.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.
Files changed (55) hide show
  1. package/dist/{application-entry-point-223805b2.cjs.prod.js → application-entry-point-06ad02d5.cjs.prod.js} +252 -61
  2. package/dist/{application-entry-point-c27f68f3.esm.js → application-entry-point-28843eb4.esm.js} +248 -62
  3. package/dist/{application-entry-point-c0bfdb99.cjs.dev.js → application-entry-point-6189b3a3.cjs.dev.js} +252 -61
  4. package/dist/commercetools-frontend-application-shell.cjs.dev.js +18 -13
  5. package/dist/commercetools-frontend-application-shell.cjs.prod.js +18 -13
  6. package/dist/commercetools-frontend-application-shell.esm.js +15 -13
  7. package/dist/{constants-3cf6ed64.esm.js → constants-a3c850be.esm.js} +4 -1
  8. package/dist/{constants-bf2e1d68.cjs.dev.js → constants-c2c238ff.cjs.prod.js} +4 -1
  9. package/dist/{constants-f34da47c.cjs.prod.js → constants-d9a5241e.cjs.dev.js} +4 -1
  10. package/dist/declarations/src/components/requests-in-flight-loader/reducer.d.ts +1 -1
  11. package/dist/declarations/src/configure-apollo.d.ts +2 -2
  12. package/dist/declarations/src/constants.d.ts +3 -0
  13. package/dist/declarations/src/export-types.d.ts +9 -0
  14. package/dist/declarations/src/index.d.ts +2 -0
  15. package/dist/declarations/src/test-utils/test-utils.d.ts +3 -3
  16. package/dist/declarations/src/types/generated/ctp.d.ts +603 -4
  17. package/dist/declarations/src/types/generated/mc.d.ts +11 -0
  18. package/dist/declarations/src/types/generated/settings.d.ts +104 -8
  19. package/dist/declarations/src/utils/apollo-client-runtime-cache.d.ts +1 -2
  20. package/dist/declarations/src/utils/apollo-context.d.ts +3 -14
  21. package/dist/declarations/src/utils/get-previous-project-key/get-previous-project-key.d.ts +1 -1
  22. package/dist/declarations/src/utils/gtm.d.ts +3 -3
  23. package/dist/declarations/src/utils/http-client.d.ts +29 -0
  24. package/dist/declarations/src/utils/oidc-storage.d.ts +2 -2
  25. package/dist/{index-6021fecc.cjs.prod.js → index-4ebc615c.cjs.prod.js} +9 -14
  26. package/dist/{index-7ef7e644.esm.js → index-5fcda492.esm.js} +9 -14
  27. package/dist/{index-82b11dc7.cjs.dev.js → index-bcff2029.cjs.dev.js} +9 -14
  28. package/dist/{oidc-82e151f9.cjs.prod.js → oidc-5b507512.cjs.prod.js} +1 -1
  29. package/dist/{oidc-8af521ca.esm.js → oidc-5cae2dba.esm.js} +1 -1
  30. package/dist/{oidc-ff089e6f.cjs.dev.js → oidc-9134face.cjs.dev.js} +1 -1
  31. package/dist/{project-expired-a02e25e1.esm.js → project-expired-53f0f1ff.esm.js} +16 -14
  32. package/dist/{project-expired-061c2603.cjs.dev.js → project-expired-96b88908.cjs.dev.js} +16 -14
  33. package/dist/{project-expired-c3d4e453.cjs.prod.js → project-expired-9fb2e01b.cjs.prod.js} +16 -14
  34. package/dist/{project-not-found-ff0b8045.cjs.prod.js → project-not-found-17e74630.cjs.prod.js} +16 -14
  35. package/dist/{project-not-found-761c55ff.cjs.dev.js → project-not-found-30c140be.cjs.dev.js} +16 -14
  36. package/dist/{project-not-found-355fee41.esm.js → project-not-found-e8ca2011.esm.js} +16 -14
  37. package/dist/{project-not-initialized-054b47ae.cjs.prod.js → project-not-initialized-8bec4622.cjs.dev.js} +16 -14
  38. package/dist/{project-not-initialized-ca16754f.cjs.dev.js → project-not-initialized-c5116ce2.cjs.prod.js} +16 -14
  39. package/dist/{project-not-initialized-75ac9791.esm.js → project-not-initialized-c83c731d.esm.js} +16 -14
  40. package/dist/{project-suspended-7498203c.esm.js → project-suspended-14419c20.esm.js} +16 -14
  41. package/dist/{project-suspended-14651874.cjs.dev.js → project-suspended-748201e1.cjs.dev.js} +16 -14
  42. package/dist/{project-suspended-3d9de033.cjs.prod.js → project-suspended-892ad1b9.cjs.prod.js} +16 -14
  43. package/dist/{quick-access-0f57e72d.cjs.prod.js → quick-access-a451f632.cjs.prod.js} +13 -11
  44. package/dist/{quick-access-dd177f35.esm.js → quick-access-b0132ced.esm.js} +13 -11
  45. package/dist/{quick-access-8e05592d.cjs.dev.js → quick-access-c08139f1.cjs.dev.js} +13 -11
  46. package/dist/{service-page-project-switcher-0b4618a2.cjs.prod.js → service-page-project-switcher-4b7ab3ee.cjs.prod.js} +1 -1
  47. package/dist/{service-page-project-switcher-a3b28af7.esm.js → service-page-project-switcher-53ffca17.esm.js} +1 -1
  48. package/dist/{service-page-project-switcher-2965e268.cjs.dev.js → service-page-project-switcher-c99348cd.cjs.dev.js} +1 -1
  49. package/package.json +41 -41
  50. package/ssr/dist/commercetools-frontend-application-shell-ssr.cjs.dev.js +2 -2
  51. package/ssr/dist/commercetools-frontend-application-shell-ssr.cjs.prod.js +2 -2
  52. package/ssr/dist/commercetools-frontend-application-shell-ssr.esm.js +2 -2
  53. package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.dev.js +13 -3
  54. package/test-utils/dist/commercetools-frontend-application-shell-test-utils.cjs.prod.js +13 -3
  55. package/test-utils/dist/commercetools-frontend-application-shell-test-utils.esm.js +13 -3
@@ -248,6 +248,7 @@ export declare enum TPermissionScope {
248
248
  ManageApiClients = "manage_api_clients",
249
249
  ManageAttributeGroups = "manage_attribute_groups",
250
250
  ManageAuditLog = "manage_audit_log",
251
+ ManageBusinessUnits = "manage_business_units",
251
252
  ManageCartDiscounts = "manage_cart_discounts",
252
253
  ManageCategories = "manage_categories",
253
254
  ManageChangeHistory = "manage_change_history",
@@ -259,9 +260,12 @@ export declare enum TPermissionScope {
259
260
  ManageImportContainers = "manage_import_containers",
260
261
  ManageImportSinks = "manage_import_sinks",
261
262
  ManageKeyValueDocuments = "manage_key_value_documents",
263
+ ManageMyBusinessUnits = "manage_my_business_units",
262
264
  ManageMyOrders = "manage_my_orders",
263
265
  ManageMyPayments = "manage_my_payments",
264
266
  ManageMyProfile = "manage_my_profile",
267
+ ManageMyQuoteRequests = "manage_my_quote_requests",
268
+ ManageMyQuotes = "manage_my_quotes",
265
269
  ManageMyShoppingLists = "manage_my_shopping_lists",
266
270
  ManageOrderEdits = "manage_order_edits",
267
271
  ManageOrders = "manage_orders",
@@ -270,8 +274,11 @@ export declare enum TPermissionScope {
270
274
  ManageProducts = "manage_products",
271
275
  ManageProject = "manage_project",
272
276
  ManageProjectSettings = "manage_project_settings",
277
+ ManageQuoteRequests = "manage_quote_requests",
278
+ ManageQuotes = "manage_quotes",
273
279
  ManageShippingMethods = "manage_shipping_methods",
274
280
  ManageShoppingLists = "manage_shopping_lists",
281
+ ManageStagedQuotes = "manage_staged_quotes",
275
282
  ManageStandalonePrices = "manage_standalone_prices",
276
283
  ManageStates = "manage_states",
277
284
  ManageStores = "manage_stores",
@@ -281,6 +288,7 @@ export declare enum TPermissionScope {
281
288
  ViewApiClients = "view_api_clients",
282
289
  ViewAttributeGroups = "view_attribute_groups",
283
290
  ViewAuditLog = "view_audit_log",
291
+ ViewBusinessUnits = "view_business_units",
284
292
  ViewCartDiscounts = "view_cart_discounts",
285
293
  ViewCategories = "view_categories",
286
294
  ViewChangeHistory = "view_change_history",
@@ -299,8 +307,11 @@ export declare enum TPermissionScope {
299
307
  ViewProjectSettings = "view_project_settings",
300
308
  ViewProjects = "view_projects",
301
309
  ViewPublishedProducts = "view_published_products",
310
+ ViewQuoteRequests = "view_quote_requests",
311
+ ViewQuotes = "view_quotes",
302
312
  ViewShippingMethods = "view_shipping_methods",
303
313
  ViewShoppingLists = "view_shopping_lists",
314
+ ViewStagedQuotes = "view_staged_quotes",
304
315
  ViewStandalonePrices = "view_standalone_prices",
305
316
  ViewStates = "view_states",
306
317
  ViewStores = "view_stores",
@@ -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
  };
@@ -1484,6 +1564,7 @@ export declare type TOrdersListView = {
1484
1564
  filters?: Maybe<Array<TFilterValues>>;
1485
1565
  id: Scalars['ID'];
1486
1566
  isActive?: Maybe<Scalars['Boolean']>;
1567
+ migratedById?: Maybe<Scalars['String']>;
1487
1568
  nameAllLocales?: Maybe<Array<TLocalizedField>>;
1488
1569
  projectKey: Scalars['String'];
1489
1570
  search?: Maybe<Scalars['String']>;
@@ -1546,6 +1627,7 @@ export declare type TPimSearchListView = {
1546
1627
  filters?: Maybe<Array<TFilterValues>>;
1547
1628
  id: Scalars['ID'];
1548
1629
  isActive?: Maybe<Scalars['Boolean']>;
1630
+ migratedById?: Maybe<Scalars['String']>;
1549
1631
  nameAllLocales?: Maybe<Array<TLocalizedField>>;
1550
1632
  projectKey: Scalars['String'];
1551
1633
  search?: Maybe<Scalars['String']>;
@@ -1601,6 +1683,7 @@ export declare type TProductTypeAttributesView = {
1601
1683
  id: Scalars['ID'];
1602
1684
  isActive: Scalars['Boolean'];
1603
1685
  isVariant?: Maybe<Scalars['Boolean']>;
1686
+ migratedById?: Maybe<Scalars['String']>;
1604
1687
  nameAllLocales?: Maybe<Array<TLocalizedField>>;
1605
1688
  pinnedAttributes: Array<Scalars['String']>;
1606
1689
  productTypeId: Scalars['String'];
@@ -1648,6 +1731,12 @@ export declare type TProjectExtension = {
1648
1731
  export declare type TProjectExtension_ApplicationsArgs = {
1649
1732
  where?: InputMaybe<TRestrictedApplicationExtensionWhereInput>;
1650
1733
  };
1734
+ export declare type TProjectInfoForLegacyCustomApplicationsMigrationReport = {
1735
+ __typename?: 'ProjectInfoForLegacyCustomApplicationsMigrationReport';
1736
+ applicationExtensions: Array<TApplicationExtensionInfoForLegacyCustomApplicationsMigrationReport>;
1737
+ projectExtensionId: Scalars['ID'];
1738
+ projectKey: Scalars['String'];
1739
+ };
1651
1740
  export declare type TQuery = {
1652
1741
  __typename?: 'Query';
1653
1742
  activeCartDiscountsCustomView?: Maybe<TDiscountsCustomView>;
@@ -1676,6 +1765,7 @@ export declare type TQuery = {
1676
1765
  discountCodesListView?: Maybe<TDiscountCodesListView>;
1677
1766
  globalOrganizationExtension?: Maybe<TOrganizationExtension>;
1678
1767
  legacyCustomApplication?: Maybe<TLegacyCustomApplication>;
1768
+ legacyCustomApplicationsMigrationReport: Array<TLegacyCustomApplicationsMigrationReport>;
1679
1769
  myCustomApplications: Array<TMyCustomApplication>;
1680
1770
  ordersListView?: Maybe<TOrdersListView>;
1681
1771
  ordersListViews: Array<Maybe<TOrdersListView>>;
@@ -1864,6 +1954,10 @@ export declare type TRestrictedCustomApplicationInstallationForProject = {
1864
1954
  installInAllProjects: Scalars['Boolean'];
1865
1955
  updatedAt: Scalars['DateTime'];
1866
1956
  };
1957
+ export declare type TRevertionResult = {
1958
+ __typename?: 'RevertionResult';
1959
+ revertedIds?: Maybe<Array<Scalars['ID']>>;
1960
+ };
1867
1961
  export declare type TRuleBuilderQuickSelectCreatefunctionsInput = {
1868
1962
  set?: InputMaybe<Array<Scalars['String']>>;
1869
1963
  };
@@ -1880,6 +1974,7 @@ export declare type TRuleBuilderQuickSelectionValues = {
1880
1974
  createdAt: Scalars['DateTime'];
1881
1975
  functions: Array<Scalars['String']>;
1882
1976
  id: Scalars['ID'];
1977
+ migratedById?: Maybe<Scalars['String']>;
1883
1978
  predicates: Array<Scalars['String']>;
1884
1979
  projectKey: Scalars['String'];
1885
1980
  ruleBuilderType: TRuleBuilderType;
@@ -2189,6 +2284,7 @@ export declare type TVariantPricesListView = {
2189
2284
  __typename?: 'VariantPricesListView';
2190
2285
  createdAt: Scalars['DateTime'];
2191
2286
  id: Scalars['ID'];
2287
+ migratedById?: Maybe<Scalars['String']>;
2192
2288
  projectKey: Scalars['String'];
2193
2289
  updatedAt: Scalars['DateTime'];
2194
2290
  userId: Scalars['String'];
@@ -2209,13 +2305,13 @@ export declare type TFetchProjectExtensionImageRegexQuery = {
2209
2305
  __typename?: 'ImageRegex';
2210
2306
  thumb?: {
2211
2307
  __typename?: 'ImageRegexOptions';
2212
- flag: string;
2308
+ flag?: string | null;
2213
2309
  search: string;
2214
2310
  replace: string;
2215
2311
  } | null;
2216
2312
  small?: {
2217
2313
  __typename?: 'ImageRegexOptions';
2218
- flag: string;
2314
+ flag?: string | null;
2219
2315
  search: string;
2220
2316
  replace: string;
2221
2317
  } | null;
@@ -2224,7 +2320,7 @@ export declare type TFetchProjectExtensionImageRegexQuery = {
2224
2320
  };
2225
2321
  export declare type TImageRegexFragment = {
2226
2322
  __typename?: 'ImageRegexOptions';
2227
- flag: string;
2323
+ flag?: string | null;
2228
2324
  search: string;
2229
2325
  replace: string;
2230
2326
  };
@@ -1,5 +1,4 @@
1
- import type { NormalizedCacheObject } from '@apollo/client';
2
- import { ApolloClient } from '@apollo/client';
1
+ import { type NormalizedCacheObject, ApolloClient } from '@apollo/client';
3
2
  declare const setCachedApolloClient: (apolloClient: ApolloClient<NormalizedCacheObject>) => void;
4
3
  declare const getCachedApolloClient: () => ApolloClient<NormalizedCacheObject> | undefined;
5
4
  export { setCachedApolloClient, getCachedApolloClient };
@@ -1,15 +1,9 @@
1
1
  import type { TGraphQLTargets } from '@commercetools-frontend/constants';
2
- export declare type THeaders = Record<string, string>;
3
- export declare type TForwardToAudiencePolicy = 'forward-url-full-path' | 'forward-url-origin';
2
+ import type { THeaders, TForwardToConfig } from './http-client';
4
3
  export declare type TApolloContext = {
5
4
  uri?: string;
6
5
  headers?: THeaders;
7
- forwardToConfig?: {
8
- version: string;
9
- uri: string;
10
- headers?: THeaders;
11
- audiencePolicy: TForwardToAudiencePolicy;
12
- };
6
+ forwardToConfig?: TForwardToConfig;
13
7
  skipGraphQlTargetCheck?: boolean;
14
8
  skipTokenRetry?: boolean;
15
9
  target?: TGraphQLTargets;
@@ -17,10 +11,5 @@ export declare type TApolloContext = {
17
11
  teamId?: string;
18
12
  featureFlag?: string;
19
13
  };
20
- declare type TApolloContextProxyForwardTo = {
21
- uri: string;
22
- headers?: THeaders;
23
- audiencePolicy?: TForwardToAudiencePolicy;
24
- };
25
- declare const createApolloContextForProxyForwardTo: (proxyForwardTocontext: TApolloContextProxyForwardTo) => TApolloContext;
14
+ declare const createApolloContextForProxyForwardTo: (proxyForwardTocontext: TForwardToConfig) => TApolloContext;
26
15
  export { createApolloContextForProxyForwardTo };
@@ -1,2 +1,2 @@
1
- declare const getPreviousProjectKey: (defaultProjectKeyOfUser?: string | undefined) => string | undefined;
1
+ declare const getPreviousProjectKey: (defaultProjectKeyOfUser?: string) => string | undefined;
2
2
  export default getPreviousProjectKey;
@@ -10,7 +10,7 @@ export declare const defaultEventList: {
10
10
  ProjectSwitch: string;
11
11
  ForgotPassword: string;
12
12
  };
13
- export declare const track: (action: string, category: string, label?: string | undefined) => void;
13
+ export declare const track: (action: string, category: string, label?: string) => void;
14
14
  export declare const trackTiming: ({ category, variable, value, label, }: {
15
15
  category: string;
16
16
  variable: string;
@@ -18,8 +18,8 @@ export declare const trackTiming: ({ category, variable, value, label, }: {
18
18
  label?: string | undefined;
19
19
  }) => void;
20
20
  export declare const trackApplicationName: (applicationName: string) => void;
21
- export declare const trackProjectKey: (projectKey?: string | undefined) => void;
22
- export declare const trackUserBusinessRole: (userBusinessRole?: string | undefined) => void;
21
+ export declare const trackProjectKey: (projectKey?: string) => void;
22
+ export declare const trackUserBusinessRole: (userBusinessRole?: string) => void;
23
23
  export declare const getHierarchy: (node: Node | null) => string;
24
24
  export declare const boot: (trackingEventList: TrackingList) => void;
25
25
  export declare const updateUser: (userId: string) => void;
@@ -0,0 +1,29 @@
1
+ export declare type THeaders = Record<string, string>;
2
+ export declare type TForwardToAudiencePolicy = 'forward-url-full-path' | 'forward-url-origin';
3
+ export declare type TForwardToConfigVersion = 'v1' | 'v2';
4
+ export declare type TForwardToConfig = {
5
+ uri: string;
6
+ headers?: THeaders;
7
+ audiencePolicy?: TForwardToAudiencePolicy;
8
+ version?: TForwardToConfigVersion;
9
+ };
10
+ export declare type TConfig = {
11
+ userAgent?: string;
12
+ headers?: THeaders;
13
+ forwardToConfig?: TForwardToConfig;
14
+ projectKey?: string;
15
+ };
16
+ export declare type TOptions = {
17
+ credentials: 'include';
18
+ headers: THeaders;
19
+ };
20
+ export declare type TFetcherResponse<Data> = {
21
+ data: Data;
22
+ statusCode: number;
23
+ getHeader: (headerName: string) => string | null;
24
+ };
25
+ export declare type TFetcher<Data> = (options: TOptions) => Promise<TFetcherResponse<Data>>;
26
+ declare function buildApiUrl(endpoint: string): string;
27
+ declare function createHttpClientOptions(config?: TConfig): TOptions;
28
+ declare function executeHttpClientRequest<Data>(fetcher: TFetcher<Data>, config?: TConfig): Promise<Data>;
29
+ export { buildApiUrl, createHttpClientOptions, executeHttpClientRequest };
@@ -1,11 +1,11 @@
1
1
  declare const getSessionToken: () => string | null;
2
- declare const setActiveSession: (sessionToken?: string | undefined) => void;
2
+ declare const setActiveSession: (sessionToken?: string) => void;
3
3
  declare const clearSession: () => void;
4
4
  declare const getActiveProjectKey: () => string | null;
5
5
  declare const removeActiveProjectKey: () => void;
6
6
  declare const setActiveProjectKey: (projectKey: string) => void;
7
7
  declare const getSessionScope: () => string | null;
8
8
  declare const setSessionScope: (scope: string) => void;
9
- declare const getSessionState: <State extends {}>(stateId?: string | undefined) => State | null;
9
+ declare const getSessionState: <State extends {}>(stateId?: string) => State | null;
10
10
  declare const setSessionState: <State extends {}>(stateId: string, state: State) => void;
11
11
  export { getSessionToken, setActiveSession, clearSession, getSessionState, setSessionState, getActiveProjectKey, setActiveProjectKey, removeActiveProjectKey, getSessionScope, setSessionScope, };
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var applicationEntryPoint = require('./application-entry-point-223805b2.cjs.prod.js');
3
+ var applicationEntryPoint = require('./application-entry-point-06ad02d5.cjs.prod.js');
4
4
  var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
5
5
  var _styled = require('@emotion/styled/base');
6
6
  var _pt = require('prop-types');
@@ -24,7 +24,7 @@ var applicationShellConnectors = require('@commercetools-frontend/application-sh
24
24
  var applicationComponents = require('@commercetools-frontend/application-components');
25
25
  var reactNotifications = require('@commercetools-frontend/react-notifications');
26
26
  var i18n = require('@commercetools-frontend/i18n');
27
- var constants = require('./constants-f34da47c.cjs.prod.js');
27
+ var constants = require('./constants-c2c238ff.cjs.prod.js');
28
28
  var uuid = require('uuid');
29
29
  var _URL = require('@babel/runtime-corejs3/core-js-stable/url');
30
30
  var _concatInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/concat');
@@ -38,7 +38,7 @@ var reactRedux = require('react-redux');
38
38
  var history = require('@commercetools-frontend/browser-history');
39
39
  var reactIntl = require('react-intl');
40
40
  var _startsWithInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/starts-with');
41
- var oidc = require('./oidc-82e151f9.cjs.prod.js');
41
+ var oidc = require('./oidc-5b507512.cjs.prod.js');
42
42
  var qss = require('qss');
43
43
  var jwtDecode = require('jwt-decode');
44
44
  var FailedAuthenticationSVG = require('@commercetools-frontend/assets/images/locked-diamond.svg');
@@ -172,12 +172,7 @@ var createApolloContextForProxyForwardTo = function createApolloContextForProxyF
172
172
  // Send the request to the forward-to endpoint.
173
173
  uri: "".concat(applicationEntryPoint.getMcApiUrl(), "/proxy/forward-to"),
174
174
  // Custom properties to be used by the "header-link".
175
- forwardToConfig: {
176
- version: 'v2',
177
- uri: proxyForwardTocontext.uri,
178
- headers: proxyForwardTocontext.headers,
179
- audiencePolicy: proxyForwardTocontext.audiencePolicy || 'forward-url-full-path'
180
- },
175
+ forwardToConfig: proxyForwardTocontext,
181
176
  skipGraphQlTargetCheck: true
182
177
  };
183
178
  };
@@ -2359,19 +2354,19 @@ var LocaleSwitcher = function LocaleSwitcher(props) {
2359
2354
  LocaleSwitcher.propTypes = {};
2360
2355
 
2361
2356
  var ProjectNotFound = /*#__PURE__*/react.lazy(function () {
2362
- return Promise.resolve().then(function () { return require('./project-not-found-ff0b8045.cjs.prod.js'
2357
+ return Promise.resolve().then(function () { return require('./project-not-found-17e74630.cjs.prod.js'
2363
2358
  /* webpackChunkName: "project-not-found" */
2364
2359
  ); });
2365
2360
  });
2366
2361
 
2367
2362
  var ProjectExpired = /*#__PURE__*/react.lazy(function () {
2368
- return Promise.resolve().then(function () { return require('./project-expired-c3d4e453.cjs.prod.js'
2363
+ return Promise.resolve().then(function () { return require('./project-expired-9fb2e01b.cjs.prod.js'
2369
2364
  /* webpackChunkName: "project-expired" */
2370
2365
  ); });
2371
2366
  });
2372
2367
 
2373
2368
  var ProjectNotInitialized = /*#__PURE__*/react.lazy(function () {
2374
- return Promise.resolve().then(function () { return require('./project-not-initialized-054b47ae.cjs.prod.js'
2369
+ return Promise.resolve().then(function () { return require('./project-not-initialized-c5116ce2.cjs.prod.js'
2375
2370
  /* webpackChunkName: "project-not-initialized" */
2376
2371
  ); });
2377
2372
  });
@@ -2418,7 +2413,7 @@ var RedirectToProjectCreate = function RedirectToProjectCreate() {
2418
2413
  RedirectToProjectCreate.displayName = 'RedirectToProjectCreate';
2419
2414
 
2420
2415
  var ProjectSuspended = /*#__PURE__*/react.lazy(function () {
2421
- return Promise.resolve().then(function () { return require('./project-suspended-3d9de033.cjs.prod.js'
2416
+ return Promise.resolve().then(function () { return require('./project-suspended-892ad1b9.cjs.prod.js'
2422
2417
  /* webpackChunkName: "project-suspended" */
2423
2418
  ); });
2424
2419
  });
@@ -3664,7 +3659,7 @@ var pimIndexerStates = {
3664
3659
  };
3665
3660
 
3666
3661
  var QuickAccess = /*#__PURE__*/react.lazy(function () {
3667
- return Promise.resolve().then(function () { return require('./quick-access-0f57e72d.cjs.prod.js'
3662
+ return Promise.resolve().then(function () { return require('./quick-access-a451f632.cjs.prod.js'
3668
3663
  /* webpackChunkName: "quick-access" */
3669
3664
  ); });
3670
3665
  });
@@ -1,4 +1,4 @@
1
- import { g as getMcApiUrl, l as logger, a as getActiveProjectKey, r as removeActiveProjectKey, s as setActiveProjectKey, b as getSessionScope, c as location, d as getSessionState, e as setActiveSession, f as createApolloClient, i as internalReduxStore, h as setCachedApolloClient, v as version, R as REQUESTS_IN_FLIGHT_LOADER_DOM_ID, u as useIsServedByProxy, A as ApplicationEntryPoint, j as setSessionScope, k as setSessionState, m as clearSession, n as selectProjectKeyFromUrl, o as RequestsInFlightLoader, p as RouteCatchAll } from './application-entry-point-c27f68f3.esm.js';
1
+ import { g as getMcApiUrl, l as logger, a as getActiveProjectKey, r as removeActiveProjectKey, s as setActiveProjectKey, b as getSessionScope, c as location, d as getSessionState, e as setActiveSession, f as createApolloClient, i as internalReduxStore, h as setCachedApolloClient, v as version, R as REQUESTS_IN_FLIGHT_LOADER_DOM_ID, u as useIsServedByProxy, A as ApplicationEntryPoint, j as setSessionScope, k as setSessionState, m as clearSession, n as selectProjectKeyFromUrl, o as RequestsInFlightLoader, p as RouteCatchAll } from './application-entry-point-28843eb4.esm.js';
2
2
  import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
3
3
  import _styled from '@emotion/styled/base';
4
4
  import _pt from 'prop-types';
@@ -22,7 +22,7 @@ import { ApplicationContextProvider, useApplicationContext, normalizeAllAppliedP
22
22
  import { PublicPageLayout, MaintenancePageLayout, PortalsContainer } from '@commercetools-frontend/application-components';
23
23
  import { Notifier, NotificationsList } from '@commercetools-frontend/react-notifications';
24
24
  import { AsyncLocaleData } from '@commercetools-frontend/i18n';
25
- import { S as STORAGE_KEYS, O as OIDC_CLAIMS, D as DIMENSIONS, C as CONTAINERS, a as SUSPENSION_REASONS, b as OIDC_RESPONSE_TYPES } from './constants-3cf6ed64.esm.js';
25
+ import { S as STORAGE_KEYS, O as OIDC_CLAIMS, D as DIMENSIONS, C as CONTAINERS, a as SUSPENSION_REASONS, b as OIDC_RESPONSE_TYPES } from './constants-a3c850be.esm.js';
26
26
  import { v4 } from 'uuid';
27
27
  import _URL from '@babel/runtime-corejs3/core-js-stable/url';
28
28
  import _concatInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/concat';
@@ -36,7 +36,7 @@ import { Provider, useStore } from 'react-redux';
36
36
  import history from '@commercetools-frontend/browser-history';
37
37
  import { IntlProvider, defineMessages, useIntl, FormattedMessage } from 'react-intl';
38
38
  import _startsWithInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/starts-with';
39
- import { b as buildOidcScope } from './oidc-8af521ca.esm.js';
39
+ import { b as buildOidcScope } from './oidc-5cae2dba.esm.js';
40
40
  import { encode, decode } from 'qss';
41
41
  import jwtDecode from 'jwt-decode';
42
42
  import FailedAuthenticationSVG from '@commercetools-frontend/assets/images/locked-diamond.svg';
@@ -112,12 +112,7 @@ var createApolloContextForProxyForwardTo = function createApolloContextForProxyF
112
112
  // Send the request to the forward-to endpoint.
113
113
  uri: "".concat(getMcApiUrl(), "/proxy/forward-to"),
114
114
  // Custom properties to be used by the "header-link".
115
- forwardToConfig: {
116
- version: 'v2',
117
- uri: proxyForwardTocontext.uri,
118
- headers: proxyForwardTocontext.headers,
119
- audiencePolicy: proxyForwardTocontext.audiencePolicy || 'forward-url-full-path'
120
- },
115
+ forwardToConfig: proxyForwardTocontext,
121
116
  skipGraphQlTargetCheck: true
122
117
  };
123
118
  };
@@ -2393,19 +2388,19 @@ LocaleSwitcher.propTypes = process.env.NODE_ENV !== "production" ? {
2393
2388
  } : {};
2394
2389
 
2395
2390
  var ProjectNotFound = /*#__PURE__*/lazy(function () {
2396
- return import('./project-not-found-355fee41.esm.js'
2391
+ return import('./project-not-found-e8ca2011.esm.js'
2397
2392
  /* webpackChunkName: "project-not-found" */
2398
2393
  );
2399
2394
  });
2400
2395
 
2401
2396
  var ProjectExpired = /*#__PURE__*/lazy(function () {
2402
- return import('./project-expired-a02e25e1.esm.js'
2397
+ return import('./project-expired-53f0f1ff.esm.js'
2403
2398
  /* webpackChunkName: "project-expired" */
2404
2399
  );
2405
2400
  });
2406
2401
 
2407
2402
  var ProjectNotInitialized = /*#__PURE__*/lazy(function () {
2408
- return import('./project-not-initialized-75ac9791.esm.js'
2403
+ return import('./project-not-initialized-c83c731d.esm.js'
2409
2404
  /* webpackChunkName: "project-not-initialized" */
2410
2405
  );
2411
2406
  });
@@ -2452,7 +2447,7 @@ var RedirectToProjectCreate = function RedirectToProjectCreate() {
2452
2447
  RedirectToProjectCreate.displayName = 'RedirectToProjectCreate';
2453
2448
 
2454
2449
  var ProjectSuspended = /*#__PURE__*/lazy(function () {
2455
- return import('./project-suspended-7498203c.esm.js'
2450
+ return import('./project-suspended-14419c20.esm.js'
2456
2451
  /* webpackChunkName: "project-suspended" */
2457
2452
  );
2458
2453
  });
@@ -3799,7 +3794,7 @@ var pimIndexerStates = {
3799
3794
  };
3800
3795
 
3801
3796
  var QuickAccess = /*#__PURE__*/lazy(function () {
3802
- return import('./quick-access-dd177f35.esm.js'
3797
+ return import('./quick-access-b0132ced.esm.js'
3803
3798
  /* webpackChunkName: "quick-access" */
3804
3799
  );
3805
3800
  });