@forgecart/sdk 1.202606151453.0 → 1.202607061936.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.
@@ -1129,6 +1129,20 @@ export type DeleteAssetsInput = {
1129
1129
  force?: InputMaybe<Scalars['Boolean']['input']>;
1130
1130
  ids: Array<Scalars['ID']['input']>;
1131
1131
  };
1132
+ export type DeleteChannelInput = {
1133
+ collections?: InputMaybe<Scalars['Boolean']['input']>;
1134
+ customers?: InputMaybe<Scalars['Boolean']['input']>;
1135
+ facets?: InputMaybe<Scalars['Boolean']['input']>;
1136
+ id: Scalars['ID']['input'];
1137
+ orders?: InputMaybe<Scalars['Boolean']['input']>;
1138
+ products?: InputMaybe<Scalars['Boolean']['input']>;
1139
+ promotions?: InputMaybe<Scalars['Boolean']['input']>;
1140
+ sellers?: InputMaybe<Scalars['Boolean']['input']>;
1141
+ stockLocations?: InputMaybe<Scalars['Boolean']['input']>;
1142
+ subscriptions?: InputMaybe<Scalars['Boolean']['input']>;
1143
+ taxRates?: InputMaybe<Scalars['Boolean']['input']>;
1144
+ usageMetrics?: InputMaybe<Scalars['Boolean']['input']>;
1145
+ };
1132
1146
  export type DeleteFacetInput = {
1133
1147
  force?: InputMaybe<Scalars['Boolean']['input']>;
1134
1148
  id: Scalars['ID']['input'];
@@ -1817,7 +1831,7 @@ export type Mutation = {
1817
1831
  deleteAssets: DeletionResponse;
1818
1832
  deleteAudienceSegment: AudienceSegment;
1819
1833
  deleteCarrier: Scalars['Boolean']['output'];
1820
- deleteChannel?: Maybe<Scalars['Boolean']['output']>;
1834
+ deleteChannel: Channel;
1821
1835
  deleteChannelPlugin?: Maybe<Scalars['Boolean']['output']>;
1822
1836
  deleteCollection: DeletionResponse;
1823
1837
  deleteCountry: DeletionResponse;
@@ -2199,7 +2213,7 @@ export type MutationdeleteCarrierArgs = {
2199
2213
  id: Scalars['ID']['input'];
2200
2214
  };
2201
2215
  export type MutationdeleteChannelArgs = {
2202
- id: Scalars['ID']['input'];
2216
+ input: DeleteChannelInput;
2203
2217
  };
2204
2218
  export type MutationdeleteChannelPluginArgs = {
2205
2219
  id: Scalars['ID']['input'];
@@ -3015,6 +3029,7 @@ export type ProvisionChannelInput = {
3015
3029
  defaultCurrencyCode?: InputMaybe<Scalars['String']['input']>;
3016
3030
  defaultLanguageCode?: InputMaybe<Scalars['String']['input']>;
3017
3031
  description?: InputMaybe<Scalars['String']['input']>;
3032
+ provisionWorkspace?: InputMaybe<Scalars['Boolean']['input']>;
3018
3033
  userId: Scalars['ID']['input'];
3019
3034
  };
3020
3035
  export type ProvisionChannelResult = {
@@ -5490,9 +5505,11 @@ export type UpdateChannelMutation = {
5490
5505
  updateChannel: Pick<Channel, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'token' | 'secret' | 'previewUrl' | 'defaultLanguageCode' | 'defaultCurrencyCode' | 'availableLanguageCodes' | 'availableCurrencyCodes' | 'description' | 'pricesIncludeTax' | 'taxProviderCode' | 'trackInventory' | 'outOfStockThreshold' | 'sellerId' | 'defaultTaxZoneId'>;
5491
5506
  };
5492
5507
  export type DeleteChannelMutationVariables = Exact<{
5493
- id: Scalars['ID']['input'];
5508
+ input: DeleteChannelInput;
5494
5509
  }>;
5495
- export type DeleteChannelMutation = Pick<Mutation, 'deleteChannel'>;
5510
+ export type DeleteChannelMutation = {
5511
+ deleteChannel: Pick<Channel, 'id' | 'createdAt' | 'updatedAt' | 'code' | 'token' | 'secret' | 'previewUrl' | 'defaultLanguageCode' | 'defaultCurrencyCode' | 'availableLanguageCodes' | 'availableCurrencyCodes' | 'description' | 'pricesIncludeTax' | 'taxProviderCode' | 'trackInventory' | 'outOfStockThreshold' | 'sellerId' | 'defaultTaxZoneId'>;
5512
+ };
5496
5513
  export type UpdateChannelSettingsMutationVariables = Exact<{
5497
5514
  input: UpdateChannelSettingsInput;
5498
5515
  }>;
@@ -13,6 +13,7 @@ import { ShopNamespace } from './shop.generated';
13
13
  import type * as Shop from './shop.generated';
14
14
  export interface ForgeCartAdminClientConfig {
15
15
  endpoint: string;
16
+ wsEndpoint?: string;
16
17
  channelToken: string;
17
18
  adminSecret?: string;
18
19
  uploadEndpoint?: string;
@@ -22,6 +23,7 @@ export interface ForgeCartAdminClientConfig {
22
23
  }
23
24
  export interface ForgeCartShopClientConfig {
24
25
  endpoint: string;
26
+ wsEndpoint?: string;
25
27
  channelToken: string;
26
28
  uploadEndpoint?: string;
27
29
  headers?: Record<string, string>;
@@ -30,6 +32,7 @@ export interface ForgeCartShopClientConfig {
30
32
  }
31
33
  export interface ForgeCartClientConfig {
32
34
  endpoint: string;
35
+ wsEndpoint?: string;
33
36
  channelToken: string;
34
37
  adminSecret?: string;
35
38
  uploadEndpoint?: string;
@@ -103,6 +106,7 @@ export declare class BaseGraphQLClient {
103
106
  persistSession?: boolean;
104
107
  currencyCode?: string;
105
108
  languageCode?: string;
109
+ wsEndpoint?: string;
106
110
  });
107
111
  private getWsClient;
108
112
  private getHeaders;
@@ -68,7 +68,7 @@ class BaseGraphQLClient {
68
68
  constructor(endpoint, baseHeaders, uploadEndpoint, options) {
69
69
  this.baseHeaders = baseHeaders;
70
70
  this.uploadEndpoint = uploadEndpoint;
71
- this.endpoint = endpoint.replace(/^http:/, "ws:").replace(/^https:/, "wss:");
71
+ this.endpoint = (options?.wsEndpoint ?? endpoint).replace(/^http:/, "ws:").replace(/^https:/, "wss:");
72
72
  // Cross-tab session continuity: each new tab or reload builds a fresh
73
73
  // client instance, so without a shared store every one would mint a new
74
74
  // anonymous session server-side — and be counted as a new active user.
@@ -385,6 +385,7 @@ class ForgeCartAdminClient {
385
385
  headers['forgecart-secret'] = config.adminSecret;
386
386
  }
387
387
  this.client = new BaseGraphQLClient(config.endpoint, headers, config.uploadEndpoint, {
388
+ wsEndpoint: config.wsEndpoint,
388
389
  currencyCode: config.currencyCode,
389
390
  languageCode: config.languageCode,
390
391
  });
@@ -665,6 +666,7 @@ class ForgeCartShopClient {
665
666
  constructor(config) {
666
667
  const headers = { 'forgecart-token': config.channelToken, ...config.headers };
667
668
  this.client = new BaseGraphQLClient(config.endpoint, headers, config.uploadEndpoint, {
669
+ wsEndpoint: config.wsEndpoint,
668
670
  currencyCode: config.currencyCode,
669
671
  languageCode: config.languageCode,
670
672
  });
@@ -70,7 +70,7 @@ export declare const adminChannelDocument = "query Channel($id: ID!) {\n channe
70
70
  export declare const adminChannelsDocument = "query Channels($options: ListQueryOptions) {\n channels(options: $options) {\n items {\n ...ChannelField\n }\n totalItems\n }\n}\n\nfragment ChannelField on Channel {\n id\n createdAt\n updatedAt\n code\n token\n secret\n previewUrl\n defaultLanguageCode\n defaultCurrencyCode\n availableLanguageCodes\n availableCurrencyCodes\n description\n pricesIncludeTax\n taxProviderCode\n trackInventory\n outOfStockThreshold\n sellerId\n defaultTaxZoneId\n}";
71
71
  export declare const adminCreateChannelDocument = "mutation CreateChannel($input: CreateChannelInput!) {\n createChannel(input: $input) {\n ...ChannelField\n }\n}\n\nfragment ChannelField on Channel {\n id\n createdAt\n updatedAt\n code\n token\n secret\n previewUrl\n defaultLanguageCode\n defaultCurrencyCode\n availableLanguageCodes\n availableCurrencyCodes\n description\n pricesIncludeTax\n taxProviderCode\n trackInventory\n outOfStockThreshold\n sellerId\n defaultTaxZoneId\n}";
72
72
  export declare const adminUpdateChannelDocument = "mutation UpdateChannel($input: UpdateChannelInput!) {\n updateChannel(input: $input) {\n ...ChannelField\n }\n}\n\nfragment ChannelField on Channel {\n id\n createdAt\n updatedAt\n code\n token\n secret\n previewUrl\n defaultLanguageCode\n defaultCurrencyCode\n availableLanguageCodes\n availableCurrencyCodes\n description\n pricesIncludeTax\n taxProviderCode\n trackInventory\n outOfStockThreshold\n sellerId\n defaultTaxZoneId\n}";
73
- export declare const adminDeleteChannelDocument = "mutation DeleteChannel($id: ID!) {\n deleteChannel(id: $id)\n}";
73
+ export declare const adminDeleteChannelDocument = "mutation DeleteChannel($input: DeleteChannelInput!) {\n deleteChannel(input: $input) {\n ...ChannelField\n }\n}\n\nfragment ChannelField on Channel {\n id\n createdAt\n updatedAt\n code\n token\n secret\n previewUrl\n defaultLanguageCode\n defaultCurrencyCode\n availableLanguageCodes\n availableCurrencyCodes\n description\n pricesIncludeTax\n taxProviderCode\n trackInventory\n outOfStockThreshold\n sellerId\n defaultTaxZoneId\n}";
74
74
  export declare const adminUpdateChannelSettingsDocument = "mutation UpdateChannelSettings($input: UpdateChannelSettingsInput!) {\n updateChannelSettings(input: $input) {\n ...ChannelSettingsField\n }\n}\n\nfragment ChannelSettingsField on ChannelSettings {\n id\n channelId\n shopName\n requiresShippingAddressValidation\n requireCustomerForCheckout\n defaultFulfillmentHandlerCode\n defaultPaymentProviderCode\n defaultWeightUnit\n defaultDimensionUnit\n autoCurrencyExchange\n fxRoundingRule\n fxMarkupPercent\n}";
75
75
  export declare const adminProvisionChannelDocument = "mutation ProvisionChannel($input: ProvisionChannelInput!) {\n provisionChannel(input: $input) {\n channel {\n ...ChannelField\n }\n channelSettings {\n ...ChannelSettingsField\n }\n role {\n id\n name\n code\n description\n permissions\n }\n }\n}\n\nfragment ChannelField on Channel {\n id\n createdAt\n updatedAt\n code\n token\n secret\n previewUrl\n defaultLanguageCode\n defaultCurrencyCode\n availableLanguageCodes\n availableCurrencyCodes\n description\n pricesIncludeTax\n taxProviderCode\n trackInventory\n outOfStockThreshold\n sellerId\n defaultTaxZoneId\n}\n\nfragment ChannelSettingsField on ChannelSettings {\n id\n channelId\n shopName\n requiresShippingAddressValidation\n requireCustomerForCheckout\n defaultFulfillmentHandlerCode\n defaultPaymentProviderCode\n defaultWeightUnit\n defaultDimensionUnit\n autoCurrencyExchange\n fxRoundingRule\n fxMarkupPercent\n}";
76
76
  export declare const adminStartChatSessionDocument = "mutation StartChatSession($input: StartChatSessionInput) {\n startChatSession(input: $input) {\n ...ChatSessionField\n }\n}\n\nfragment ChatSessionField on ChatSession {\n sessionId\n channelToken\n userId\n createdAt\n lastActivity\n messageCount\n status\n}";
@@ -1689,8 +1689,31 @@ fragment ChannelField on Channel {
1689
1689
  sellerId
1690
1690
  defaultTaxZoneId
1691
1691
  }`;
1692
- exports.adminDeleteChannelDocument = `mutation DeleteChannel($id: ID!) {
1693
- deleteChannel(id: $id)
1692
+ exports.adminDeleteChannelDocument = `mutation DeleteChannel($input: DeleteChannelInput!) {
1693
+ deleteChannel(input: $input) {
1694
+ ...ChannelField
1695
+ }
1696
+ }
1697
+
1698
+ fragment ChannelField on Channel {
1699
+ id
1700
+ createdAt
1701
+ updatedAt
1702
+ code
1703
+ token
1704
+ secret
1705
+ previewUrl
1706
+ defaultLanguageCode
1707
+ defaultCurrencyCode
1708
+ availableLanguageCodes
1709
+ availableCurrencyCodes
1710
+ description
1711
+ pricesIncludeTax
1712
+ taxProviderCode
1713
+ trackInventory
1714
+ outOfStockThreshold
1715
+ sellerId
1716
+ defaultTaxZoneId
1694
1717
  }`;
1695
1718
  exports.adminUpdateChannelSettingsDocument = `mutation UpdateChannelSettings($input: UpdateChannelSettingsInput!) {
1696
1719
  updateChannelSettings(input: $input) {
@@ -1077,6 +1077,20 @@ export type DeleteAssetsInput = {
1077
1077
  force?: InputMaybe<Scalars['Boolean']['input']>;
1078
1078
  ids: Array<Scalars['ID']['input']>;
1079
1079
  };
1080
+ export type DeleteChannelInput = {
1081
+ collections?: InputMaybe<Scalars['Boolean']['input']>;
1082
+ customers?: InputMaybe<Scalars['Boolean']['input']>;
1083
+ facets?: InputMaybe<Scalars['Boolean']['input']>;
1084
+ id: Scalars['ID']['input'];
1085
+ orders?: InputMaybe<Scalars['Boolean']['input']>;
1086
+ products?: InputMaybe<Scalars['Boolean']['input']>;
1087
+ promotions?: InputMaybe<Scalars['Boolean']['input']>;
1088
+ sellers?: InputMaybe<Scalars['Boolean']['input']>;
1089
+ stockLocations?: InputMaybe<Scalars['Boolean']['input']>;
1090
+ subscriptions?: InputMaybe<Scalars['Boolean']['input']>;
1091
+ taxRates?: InputMaybe<Scalars['Boolean']['input']>;
1092
+ usageMetrics?: InputMaybe<Scalars['Boolean']['input']>;
1093
+ };
1080
1094
  export type DeleteFacetInput = {
1081
1095
  force?: InputMaybe<Scalars['Boolean']['input']>;
1082
1096
  id: Scalars['ID']['input'];
@@ -2259,6 +2273,7 @@ export type ProvisionChannelInput = {
2259
2273
  defaultCurrencyCode?: InputMaybe<Scalars['String']['input']>;
2260
2274
  defaultLanguageCode?: InputMaybe<Scalars['String']['input']>;
2261
2275
  description?: InputMaybe<Scalars['String']['input']>;
2276
+ provisionWorkspace?: InputMaybe<Scalars['Boolean']['input']>;
2262
2277
  userId: Scalars['ID']['input'];
2263
2278
  };
2264
2279
  export type ProvisionChannelResult = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forgecart/sdk",
3
- "version": "1.202606151453.0",
3
+ "version": "1.202607061936.0",
4
4
  "description": "ForgeCart Client SDK",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -1283,6 +1283,21 @@ export type DeleteAssetsInput = {
1283
1283
  ids: Array<Scalars['ID']['input']>;
1284
1284
  };
1285
1285
 
1286
+ export type DeleteChannelInput = {
1287
+ collections?: InputMaybe<Scalars['Boolean']['input']>;
1288
+ customers?: InputMaybe<Scalars['Boolean']['input']>;
1289
+ facets?: InputMaybe<Scalars['Boolean']['input']>;
1290
+ id: Scalars['ID']['input'];
1291
+ orders?: InputMaybe<Scalars['Boolean']['input']>;
1292
+ products?: InputMaybe<Scalars['Boolean']['input']>;
1293
+ promotions?: InputMaybe<Scalars['Boolean']['input']>;
1294
+ sellers?: InputMaybe<Scalars['Boolean']['input']>;
1295
+ stockLocations?: InputMaybe<Scalars['Boolean']['input']>;
1296
+ subscriptions?: InputMaybe<Scalars['Boolean']['input']>;
1297
+ taxRates?: InputMaybe<Scalars['Boolean']['input']>;
1298
+ usageMetrics?: InputMaybe<Scalars['Boolean']['input']>;
1299
+ };
1300
+
1286
1301
  export type DeleteFacetInput = {
1287
1302
  force?: InputMaybe<Scalars['Boolean']['input']>;
1288
1303
  id: Scalars['ID']['input'];
@@ -2099,7 +2114,7 @@ export type Mutation = {
2099
2114
  deleteAssets: DeletionResponse;
2100
2115
  deleteAudienceSegment: AudienceSegment;
2101
2116
  deleteCarrier: Scalars['Boolean']['output'];
2102
- deleteChannel?: Maybe<Scalars['Boolean']['output']>;
2117
+ deleteChannel: Channel;
2103
2118
  deleteChannelPlugin?: Maybe<Scalars['Boolean']['output']>;
2104
2119
  deleteCollection: DeletionResponse;
2105
2120
  deleteCountry: DeletionResponse;
@@ -2637,7 +2652,7 @@ export type MutationdeleteCarrierArgs = {
2637
2652
 
2638
2653
 
2639
2654
  export type MutationdeleteChannelArgs = {
2640
- id: Scalars['ID']['input'];
2655
+ input: DeleteChannelInput;
2641
2656
  };
2642
2657
 
2643
2658
 
@@ -3796,6 +3811,7 @@ export type ProvisionChannelInput = {
3796
3811
  defaultCurrencyCode?: InputMaybe<Scalars['String']['input']>;
3797
3812
  defaultLanguageCode?: InputMaybe<Scalars['String']['input']>;
3798
3813
  description?: InputMaybe<Scalars['String']['input']>;
3814
+ provisionWorkspace?: InputMaybe<Scalars['Boolean']['input']>;
3799
3815
  userId: Scalars['ID']['input'];
3800
3816
  };
3801
3817
 
@@ -8197,11 +8213,31 @@ export type UpdateChannelMutation = { updateChannel: Pick<
8197
8213
  > };
8198
8214
 
8199
8215
  export type DeleteChannelMutationVariables = Exact<{
8200
- id: Scalars['ID']['input'];
8216
+ input: DeleteChannelInput;
8201
8217
  }>;
8202
8218
 
8203
8219
 
8204
- export type DeleteChannelMutation = Pick<Mutation, 'deleteChannel'>;
8220
+ export type DeleteChannelMutation = { deleteChannel: Pick<
8221
+ Channel,
8222
+ | 'id'
8223
+ | 'createdAt'
8224
+ | 'updatedAt'
8225
+ | 'code'
8226
+ | 'token'
8227
+ | 'secret'
8228
+ | 'previewUrl'
8229
+ | 'defaultLanguageCode'
8230
+ | 'defaultCurrencyCode'
8231
+ | 'availableLanguageCodes'
8232
+ | 'availableCurrencyCodes'
8233
+ | 'description'
8234
+ | 'pricesIncludeTax'
8235
+ | 'taxProviderCode'
8236
+ | 'trackInventory'
8237
+ | 'outOfStockThreshold'
8238
+ | 'sellerId'
8239
+ | 'defaultTaxZoneId'
8240
+ > };
8205
8241
 
8206
8242
  export type UpdateChannelSettingsMutationVariables = Exact<{
8207
8243
  input: UpdateChannelSettingsInput;
@@ -20,6 +20,10 @@ import type * as Shop from './shop.generated';
20
20
 
21
21
  export interface ForgeCartAdminClientConfig {
22
22
  endpoint: string;
23
+ // Optional dedicated WebSocket endpoint. Defaults to `endpoint` with the
24
+ // scheme swapped to ws(s). Set when WS must bypass an HTTP-only proxy
25
+ // hop (e.g. the Angular dev-server) and connect to the API directly.
26
+ wsEndpoint?: string;
23
27
  channelToken: string;
24
28
  adminSecret?: string;
25
29
  uploadEndpoint?: string;
@@ -33,6 +37,10 @@ export interface ForgeCartAdminClientConfig {
33
37
 
34
38
  export interface ForgeCartShopClientConfig {
35
39
  endpoint: string;
40
+ // Optional dedicated WebSocket endpoint. Defaults to `endpoint` with the
41
+ // scheme swapped to ws(s). Set when WS must bypass an HTTP-only proxy
42
+ // hop (e.g. the Angular dev-server) and connect to the API directly.
43
+ wsEndpoint?: string;
36
44
  channelToken: string;
37
45
  uploadEndpoint?: string;
38
46
  headers?: Record<string, string>;
@@ -45,6 +53,7 @@ export interface ForgeCartShopClientConfig {
45
53
 
46
54
  export interface ForgeCartClientConfig {
47
55
  endpoint: string;
56
+ wsEndpoint?: string;
48
57
  channelToken: string;
49
58
  adminSecret?: string;
50
59
  uploadEndpoint?: string;
@@ -145,9 +154,9 @@ export class BaseGraphQLClient {
145
154
  endpoint: string,
146
155
  private readonly baseHeaders: Record<string, string>,
147
156
  private readonly uploadEndpoint?: string,
148
- options?: { persistSession?: boolean; currencyCode?: string; languageCode?: string },
157
+ options?: { persistSession?: boolean; currencyCode?: string; languageCode?: string; wsEndpoint?: string },
149
158
  ) {
150
- this.endpoint = endpoint.replace(/^http:/, "ws:").replace(/^https:/, "wss:");
159
+ this.endpoint = (options?.wsEndpoint ?? endpoint).replace(/^http:/, "ws:").replace(/^https:/, "wss:");
151
160
  // Cross-tab session continuity: each new tab or reload builds a fresh
152
161
  // client instance, so without a shared store every one would mint a new
153
162
  // anonymous session server-side — and be counted as a new active user.
@@ -481,6 +490,7 @@ export class ForgeCartAdminClient {
481
490
  headers['forgecart-secret'] = config.adminSecret;
482
491
  }
483
492
  this.client = new BaseGraphQLClient(config.endpoint, headers, config.uploadEndpoint, {
493
+ wsEndpoint: config.wsEndpoint,
484
494
  currencyCode: config.currencyCode,
485
495
  languageCode: config.languageCode,
486
496
  });
@@ -797,6 +807,7 @@ export class ForgeCartShopClient {
797
807
  constructor(config: ForgeCartShopClientConfig) {
798
808
  const headers: Record<string, string> = { 'forgecart-token': config.channelToken, ...config.headers };
799
809
  this.client = new BaseGraphQLClient(config.endpoint, headers, config.uploadEndpoint, {
810
+ wsEndpoint: config.wsEndpoint,
800
811
  currencyCode: config.currencyCode,
801
812
  languageCode: config.languageCode,
802
813
  });
@@ -1744,8 +1744,31 @@ fragment ChannelField on Channel {
1744
1744
  defaultTaxZoneId
1745
1745
  }`;
1746
1746
 
1747
- export const adminDeleteChannelDocument = `mutation DeleteChannel($id: ID!) {
1748
- deleteChannel(id: $id)
1747
+ export const adminDeleteChannelDocument = `mutation DeleteChannel($input: DeleteChannelInput!) {
1748
+ deleteChannel(input: $input) {
1749
+ ...ChannelField
1750
+ }
1751
+ }
1752
+
1753
+ fragment ChannelField on Channel {
1754
+ id
1755
+ createdAt
1756
+ updatedAt
1757
+ code
1758
+ token
1759
+ secret
1760
+ previewUrl
1761
+ defaultLanguageCode
1762
+ defaultCurrencyCode
1763
+ availableLanguageCodes
1764
+ availableCurrencyCodes
1765
+ description
1766
+ pricesIncludeTax
1767
+ taxProviderCode
1768
+ trackInventory
1769
+ outOfStockThreshold
1770
+ sellerId
1771
+ defaultTaxZoneId
1749
1772
  }`;
1750
1773
 
1751
1774
  export const adminUpdateChannelSettingsDocument = `mutation UpdateChannelSettings($input: UpdateChannelSettingsInput!) {
@@ -1218,6 +1218,21 @@ export type DeleteAssetsInput = {
1218
1218
  ids: Array<Scalars['ID']['input']>;
1219
1219
  };
1220
1220
 
1221
+ export type DeleteChannelInput = {
1222
+ collections?: InputMaybe<Scalars['Boolean']['input']>;
1223
+ customers?: InputMaybe<Scalars['Boolean']['input']>;
1224
+ facets?: InputMaybe<Scalars['Boolean']['input']>;
1225
+ id: Scalars['ID']['input'];
1226
+ orders?: InputMaybe<Scalars['Boolean']['input']>;
1227
+ products?: InputMaybe<Scalars['Boolean']['input']>;
1228
+ promotions?: InputMaybe<Scalars['Boolean']['input']>;
1229
+ sellers?: InputMaybe<Scalars['Boolean']['input']>;
1230
+ stockLocations?: InputMaybe<Scalars['Boolean']['input']>;
1231
+ subscriptions?: InputMaybe<Scalars['Boolean']['input']>;
1232
+ taxRates?: InputMaybe<Scalars['Boolean']['input']>;
1233
+ usageMetrics?: InputMaybe<Scalars['Boolean']['input']>;
1234
+ };
1235
+
1221
1236
  export type DeleteFacetInput = {
1222
1237
  force?: InputMaybe<Scalars['Boolean']['input']>;
1223
1238
  id: Scalars['ID']['input'];
@@ -2677,6 +2692,7 @@ export type ProvisionChannelInput = {
2677
2692
  defaultCurrencyCode?: InputMaybe<Scalars['String']['input']>;
2678
2693
  defaultLanguageCode?: InputMaybe<Scalars['String']['input']>;
2679
2694
  description?: InputMaybe<Scalars['String']['input']>;
2695
+ provisionWorkspace?: InputMaybe<Scalars['Boolean']['input']>;
2680
2696
  userId: Scalars['ID']['input'];
2681
2697
  };
2682
2698