@commercetools-frontend/application-shell-connectors 22.15.1 → 22.16.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.
@@ -81,7 +81,7 @@ var _Reflect$construct__default = /*#__PURE__*/_interopDefault(_Reflect$construc
81
81
  var _JSON$stringify__default = /*#__PURE__*/_interopDefault(_JSON$stringify);
82
82
 
83
83
  // NOTE: This string will be replaced on build time with the package version.
84
- var version = "22.15.1";
84
+ var version = "22.16.0";
85
85
 
86
86
  // From https://github.com/acdlite/recompose/blob/master/src/packages/recompose/getDisplayName.js
87
87
  const getDisplayName = Component => {
@@ -1011,7 +1011,21 @@ const createApolloClient = function () {
1011
1011
  typePolicies: _objectSpread({
1012
1012
  // CTP types with `key` as identifier
1013
1013
  Project: {
1014
- keyFields: ['key']
1014
+ keyFields: ['key'],
1015
+ fields: {
1016
+ expiry: {
1017
+ merge: (existing, incoming, _ref2) => {
1018
+ let mergeObjects = _ref2.mergeObjects;
1019
+ return mergeObjects(existing, incoming);
1020
+ }
1021
+ },
1022
+ suspension: {
1023
+ merge: (existing, incoming, _ref3) => {
1024
+ let mergeObjects = _ref3.mergeObjects;
1025
+ return mergeObjects(existing, incoming);
1026
+ }
1027
+ }
1028
+ }
1015
1029
  },
1016
1030
  Store: {
1017
1031
  keyFields: ['key']
@@ -79,7 +79,7 @@ var _Reflect$construct__default = /*#__PURE__*/_interopDefault(_Reflect$construc
79
79
  var _JSON$stringify__default = /*#__PURE__*/_interopDefault(_JSON$stringify);
80
80
 
81
81
  // NOTE: This string will be replaced on build time with the package version.
82
- var version = "22.15.1";
82
+ var version = "22.16.0";
83
83
 
84
84
  // From https://github.com/acdlite/recompose/blob/master/src/packages/recompose/getDisplayName.js
85
85
  const getDisplayName = Component => {
@@ -988,7 +988,21 @@ const createApolloClient = function () {
988
988
  typePolicies: _objectSpread({
989
989
  // CTP types with `key` as identifier
990
990
  Project: {
991
- keyFields: ['key']
991
+ keyFields: ['key'],
992
+ fields: {
993
+ expiry: {
994
+ merge: (existing, incoming, _ref2) => {
995
+ let mergeObjects = _ref2.mergeObjects;
996
+ return mergeObjects(existing, incoming);
997
+ }
998
+ },
999
+ suspension: {
1000
+ merge: (existing, incoming, _ref3) => {
1001
+ let mergeObjects = _ref3.mergeObjects;
1002
+ return mergeObjects(existing, incoming);
1003
+ }
1004
+ }
1005
+ }
992
1006
  },
993
1007
  Store: {
994
1008
  keyFields: ['key']
@@ -46,7 +46,7 @@ import _JSON$stringify from '@babel/runtime-corejs3/core-js-stable/json/stringif
46
46
  import { RetryLink } from '@apollo/client/link/retry';
47
47
 
48
48
  // NOTE: This string will be replaced on build time with the package version.
49
- var version = "22.15.1";
49
+ var version = "22.16.0";
50
50
 
51
51
  // From https://github.com/acdlite/recompose/blob/master/src/packages/recompose/getDisplayName.js
52
52
  const getDisplayName = Component => {
@@ -976,7 +976,21 @@ const createApolloClient = function () {
976
976
  typePolicies: _objectSpread({
977
977
  // CTP types with `key` as identifier
978
978
  Project: {
979
- keyFields: ['key']
979
+ keyFields: ['key'],
980
+ fields: {
981
+ expiry: {
982
+ merge: (existing, incoming, _ref2) => {
983
+ let mergeObjects = _ref2.mergeObjects;
984
+ return mergeObjects(existing, incoming);
985
+ }
986
+ },
987
+ suspension: {
988
+ merge: (existing, incoming, _ref3) => {
989
+ let mergeObjects = _ref3.mergeObjects;
990
+ return mergeObjects(existing, incoming);
991
+ }
992
+ }
993
+ }
980
994
  },
981
995
  Store: {
982
996
  keyFields: ['key']
@@ -500,6 +500,7 @@ export type TUser = TMetaData & {
500
500
  language: Scalars['String'];
501
501
  lastModifiedAt: Scalars['String'];
502
502
  lastName: Scalars['String'];
503
+ launchdarklyTrackingCloudEnvironment: Scalars['String'];
503
504
  launchdarklyTrackingGroup: Scalars['String'];
504
505
  launchdarklyTrackingId: Scalars['String'];
505
506
  launchdarklyTrackingSubgroup?: Maybe<Scalars['String']>;
@@ -529,6 +530,16 @@ export declare enum TVerificationStatus {
529
530
  Unverified = "Unverified",
530
531
  Verified = "Verified"
531
532
  }
533
+ export type TFetchUserIdQueryVariables = Exact<{
534
+ [key: string]: never;
535
+ }>;
536
+ export type TFetchUserIdQuery = {
537
+ __typename?: 'Query';
538
+ user?: {
539
+ __typename?: 'User';
540
+ id: string;
541
+ } | null;
542
+ };
532
543
  export type TAmILoggedInQueryVariables = Exact<{
533
544
  [key: string]: never;
534
545
  }>;
@@ -550,6 +561,7 @@ export type TFetchProjectQuery = {
550
561
  currencies: Array<string>;
551
562
  languages: Array<string>;
552
563
  initialized: boolean;
564
+ isProductionProject: boolean;
553
565
  sampleDataImportDataset?: string | null;
554
566
  expiry: {
555
567
  __typename?: 'ProjectExpiry';
@@ -633,6 +645,7 @@ export type TFetchLoggedInUserQuery = {
633
645
  launchdarklyTrackingSubgroup?: string | null;
634
646
  launchdarklyTrackingTeam?: Array<string> | null;
635
647
  launchdarklyTrackingTenant: string;
648
+ launchdarklyTrackingCloudEnvironment: string;
636
649
  defaultProjectKey?: string | null;
637
650
  businessRole?: string | null;
638
651
  projects: {
@@ -675,10 +688,12 @@ export type TFetchUserProjectsQuery = {
675
688
  id: string;
676
689
  projects: {
677
690
  __typename?: 'ProjectQueryResult';
691
+ total: number;
678
692
  results: Array<{
679
693
  __typename?: 'Project';
680
694
  name: string;
681
695
  key: string;
696
+ isProductionProject: boolean;
682
697
  suspension: {
683
698
  __typename?: 'ProjectSuspension';
684
699
  isActive: boolean;
@@ -703,13 +718,3 @@ export type TAllFeaturesQuery = {
703
718
  reason?: string | null;
704
719
  }>;
705
720
  };
706
- export type TFetchUserIdQueryVariables = Exact<{
707
- [key: string]: never;
708
- }>;
709
- export type TFetchUserIdQuery = {
710
- __typename?: 'Query';
711
- user?: {
712
- __typename?: 'User';
713
- id: string;
714
- } | null;
715
- };
@@ -333,6 +333,19 @@ export type TCustomViewPermissionDataInput = {
333
333
  name: Scalars['String'];
334
334
  oAuthScopes: Array<Scalars['String']>;
335
335
  };
336
+ export type TCustomViewQueryInput = {
337
+ limit?: InputMaybe<Scalars['Int']>;
338
+ offset?: InputMaybe<Scalars['Int']>;
339
+ sort?: InputMaybe<Scalars['String']>;
340
+ where?: InputMaybe<TCustomViewQueryWhereInput>;
341
+ };
342
+ export type TCustomViewQueryWhereInput = {
343
+ defaultLabel?: InputMaybe<Scalars['String']>;
344
+ id?: InputMaybe<Scalars['ID']>;
345
+ locators?: InputMaybe<Array<Scalars['String']>>;
346
+ organizationId?: InputMaybe<Scalars['String']>;
347
+ type?: InputMaybe<TCustomViewType>;
348
+ };
336
349
  export declare enum TCustomViewSize {
337
350
  Large = "LARGE",
338
351
  Small = "SMALL"
@@ -351,6 +364,14 @@ export type TCustomViewTypeSettings = {
351
364
  export type TCustomViewTypeSettingsInput = {
352
365
  size?: InputMaybe<TCustomViewSize>;
353
366
  };
367
+ export type TCustomViewsPagedQueryResult = {
368
+ __typename?: 'CustomViewsPagedQueryResult';
369
+ count: Scalars['Int'];
370
+ limit: Scalars['Int'];
371
+ offset: Scalars['Int'];
372
+ results: Array<TCustomView>;
373
+ total: Scalars['Int'];
374
+ };
354
375
  export type TCustomersListView = {
355
376
  __typename?: 'CustomersListView';
356
377
  createdAt: Scalars['DateTime'];
@@ -1030,6 +1051,29 @@ export type TMyCustomApplicationQueryInput = {
1030
1051
  export type TMyCustomApplicationQueryWhereInput = {
1031
1052
  status?: InputMaybe<TCustomApplicationStatus>;
1032
1053
  };
1054
+ export type TMyCustomView = {
1055
+ __typename?: 'MyCustomView';
1056
+ createdAt: Scalars['DateTime'];
1057
+ defaultLabel: Scalars['String'];
1058
+ description?: Maybe<Scalars['String']>;
1059
+ id: Scalars['ID'];
1060
+ labelAllLocales: Array<TLocalizedField>;
1061
+ locators: Array<Scalars['String']>;
1062
+ organizationId: Scalars['String'];
1063
+ organizationName: Scalars['String'];
1064
+ permissions: Array<TCustomViewPermission>;
1065
+ status: TCustomViewStatus;
1066
+ type: TCustomViewType;
1067
+ typeSettings?: Maybe<TCustomViewTypeSettings>;
1068
+ updatedAt: Scalars['DateTime'];
1069
+ url: Scalars['String'];
1070
+ };
1071
+ export type TMyCustomViewsQueryInput = {
1072
+ where?: InputMaybe<TMyCustomViewsQueryWhereInput>;
1073
+ };
1074
+ export type TMyCustomViewsQueryWhereInput = {
1075
+ status?: InputMaybe<TCustomViewStatus>;
1076
+ };
1033
1077
  export type TNavbarMenu = {
1034
1078
  __typename?: 'NavbarMenu';
1035
1079
  createdAt: Scalars['DateTime'];
@@ -1199,6 +1243,7 @@ export type TOrganizationExtensionForCustomView = {
1199
1243
  export type TPimSearchListView = {
1200
1244
  __typename?: 'PimSearchListView';
1201
1245
  createdAt: Scalars['DateTime'];
1246
+ expandedRows: Array<Scalars['String']>;
1202
1247
  filters?: Maybe<Array<TFilterValues>>;
1203
1248
  id: Scalars['ID'];
1204
1249
  isActive?: Maybe<Scalars['Boolean']>;
@@ -1211,6 +1256,7 @@ export type TPimSearchListView = {
1211
1256
  userId: Scalars['String'];
1212
1257
  };
1213
1258
  export type TPimSearchListViewInput = {
1259
+ expandedRows?: InputMaybe<Array<Scalars['String']>>;
1214
1260
  filters: Array<TFilterValuesCreateInput>;
1215
1261
  nameAllLocales: Array<TLocalizedFieldCreateInput>;
1216
1262
  search?: InputMaybe<Scalars['String']>;
@@ -1326,6 +1372,7 @@ export type TQuery = {
1326
1372
  allAppliedCustomApplicationPermissions: Array<TCustomApplicationInstallationPermission>;
1327
1373
  allAppliedCustomViewPermissions: Array<TCustomViewInstallationPermission>;
1328
1374
  allCustomApplications: TCustomApplicationsPagedQueryResult;
1375
+ allCustomViews: TCustomViewsPagedQueryResult;
1329
1376
  allCustomViewsInstallationsByLocator: Array<TRestrictedCustomViewInstallationForProject>;
1330
1377
  allCustomViewsLocatorGroups: Array<TCustomViewLocatorGroup>;
1331
1378
  allFeatures: Array<TFeature>;
@@ -1348,6 +1395,7 @@ export type TQuery = {
1348
1395
  discountCodesCustomViews: Array<Maybe<TDiscountsCustomView>>;
1349
1396
  globalOrganizationExtension?: Maybe<TOrganizationExtension>;
1350
1397
  myCustomApplications: Array<TMyCustomApplication>;
1398
+ myCustomViews: Array<TMyCustomView>;
1351
1399
  orderDetailView?: Maybe<TOrderDetailView>;
1352
1400
  orderDetailViews: Array<Maybe<TOrderDetailView>>;
1353
1401
  ordersListView?: Maybe<TOrdersListView>;
@@ -1382,6 +1430,9 @@ export type TQuery_AllAppliedCustomViewPermissionsArgs = {
1382
1430
  export type TQuery_AllCustomApplicationsArgs = {
1383
1431
  params?: InputMaybe<TCustomApplicationQueryInput>;
1384
1432
  };
1433
+ export type TQuery_AllCustomViewsArgs = {
1434
+ params?: InputMaybe<TCustomViewQueryInput>;
1435
+ };
1385
1436
  export type TQuery_AllCustomViewsInstallationsByLocatorArgs = {
1386
1437
  locator: Scalars['String'];
1387
1438
  };
@@ -1424,6 +1475,9 @@ export type TQuery_GlobalOrganizationExtensionArgs = {
1424
1475
  export type TQuery_MyCustomApplicationsArgs = {
1425
1476
  params?: InputMaybe<TMyCustomApplicationQueryInput>;
1426
1477
  };
1478
+ export type TQuery_MyCustomViewsArgs = {
1479
+ params?: InputMaybe<TMyCustomViewsQueryInput>;
1480
+ };
1427
1481
  export type TQuery_OrderDetailViewArgs = {
1428
1482
  id: Scalars['ID'];
1429
1483
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercetools-frontend/application-shell-connectors",
3
- "version": "22.15.1",
3
+ "version": "22.16.0",
4
4
  "description": "Contains complementary tools for @commercetools-frontend/application-shell",
5
5
  "bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
6
6
  "repository": {
@@ -37,10 +37,10 @@
37
37
  "dependencies": {
38
38
  "@babel/runtime": "^7.22.15",
39
39
  "@babel/runtime-corejs3": "^7.22.15",
40
- "@commercetools-frontend/application-config": "22.15.1",
41
- "@commercetools-frontend/browser-history": "22.15.1",
42
- "@commercetools-frontend/constants": "22.15.1",
43
- "@commercetools-frontend/sentry": "22.15.1",
40
+ "@commercetools-frontend/application-config": "22.16.0",
41
+ "@commercetools-frontend/browser-history": "22.16.0",
42
+ "@commercetools-frontend/constants": "22.16.0",
43
+ "@commercetools-frontend/sentry": "22.16.0",
44
44
  "@commercetools/http-user-agent": "3.0.0",
45
45
  "@emotion/react": "^11.11.1",
46
46
  "@types/lodash": "^4.14.198",