@forgecart/sdk 1.202607240817.0 → 1.202608041455.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.
package/README.md CHANGED
@@ -56,7 +56,7 @@ const order = await client.shop.cart.addItemToOrder({ variantId, quantity: 1 });
56
56
 
57
57
  ## Namespaces
58
58
 
59
- - `client.admin` — entry, fieldDefinition, publish, acfSchema, acf, administrator, analyticsGateway, asset, audienceMembership, audienceSegment, auth, automation, settings, channel, chat, collection, country, address, group, customerAnalytics, customer, deployment, experiment, facet, fulfillmentRequest, fulfillment, hookDispatch, hook, market, marketingAttribution, marketingEvent, marketingIdentity, mission, onboarding, coupon, draft, modification, note, orderAnalytics, order, payment, manageable, plugin, optionGroup, option, productVariant, product, promotion, role, scheduledJob, search, seller, sellingPlan, shipping, stockAnalytics, stock, storefrontRouteTree, subscriptionAnalytics, subscription, tax, transaction, zone
59
+ - `client.admin` — entry, fieldDefinition, publish, acfSchema, acf, administrator, analyticsGateway, asset, audienceMembership, audienceSegment, auth, automation, settings, channel, chat, collection, country, address, group, customerAnalytics, customer, deployment, designerTask, experiment, facet, fulfillmentRequest, fulfillment, hookDispatch, hook, market, marketingAttribution, marketingEvent, marketingIdentity, mission, onboarding, coupon, draft, modification, note, orderAnalytics, order, payment, manageable, plugin, optionGroup, option, productVariant, product, promotion, role, scheduledJob, search, seller, sellingPlan, shipping, stockAnalytics, stock, storefrontRouteTree, subscriptionAnalytics, subscription, tax, transaction, zone
60
60
  - `client.shop` — acf, auth, cart, channel, checkout, collection, country, customer, experiment, facet, hookDispatch, hook, marketingEvent, marketingIdentity, order, payment, product, search, sellingPlan, shipping, subscription
61
61
 
62
62
  ## NestJS Integration
@@ -1209,6 +1209,15 @@ export type CreateStockLocationInput = {
1209
1209
  locationType?: InputMaybe<Scalars['String']['input']>;
1210
1210
  name: Scalars['String']['input'];
1211
1211
  };
1212
+ export type CreateStorefrontPageInput = {
1213
+ routePattern: Scalars['String']['input'];
1214
+ };
1215
+ export type CreateStorefrontPageResult = {
1216
+ routePattern: Scalars['String']['output'];
1217
+ status: CreateStorefrontPageStatus;
1218
+ taskId?: Maybe<Scalars['ID']['output']>;
1219
+ };
1220
+ export type CreateStorefrontPageStatus = 'ALREADY_EXISTS' | 'SCHEDULED';
1212
1221
  export type CreateSubscriptionInput = {
1213
1222
  currencyCode: Scalars['String']['input'];
1214
1223
  customerId: Scalars['ID']['input'];
@@ -1342,6 +1351,15 @@ export type DeleteRoleInput = {
1342
1351
  force?: InputMaybe<Scalars['Boolean']['input']>;
1343
1352
  id: Scalars['ID']['input'];
1344
1353
  };
1354
+ export type DeleteStorefrontPageInput = {
1355
+ routePattern: Scalars['String']['input'];
1356
+ };
1357
+ export type DeleteStorefrontPageResult = {
1358
+ routePattern: Scalars['String']['output'];
1359
+ status: DeleteStorefrontPageStatus;
1360
+ taskId?: Maybe<Scalars['ID']['output']>;
1361
+ };
1362
+ export type DeleteStorefrontPageStatus = 'ALREADY_DELETED' | 'DELETED' | 'SCHEDULED';
1345
1363
  export type DeletionResponse = {
1346
1364
  message?: Maybe<Scalars['String']['output']>;
1347
1365
  result: DeletionResult;
@@ -1382,6 +1400,28 @@ export type DeploymentSummary = {
1382
1400
  url?: Maybe<Scalars['String']['output']>;
1383
1401
  };
1384
1402
  export type DeploymentType = 'application' | 'plugin' | 'storefront';
1403
+ export type DesignerTask = {
1404
+ agentSessionId: Scalars['String']['output'];
1405
+ attempts: Scalars['Int']['output'];
1406
+ createdAt: Scalars['DateTime']['output'];
1407
+ currentTurnId?: Maybe<Scalars['String']['output']>;
1408
+ dispatchedAt?: Maybe<Scalars['DateTime']['output']>;
1409
+ id: Scalars['ID']['output'];
1410
+ kind: DesignerTaskKind;
1411
+ lastAttemptAt?: Maybe<Scalars['DateTime']['output']>;
1412
+ lastError?: Maybe<Scalars['String']['output']>;
1413
+ settledAt?: Maybe<Scalars['DateTime']['output']>;
1414
+ state: DesignerTaskState;
1415
+ subject: Scalars['String']['output'];
1416
+ updatedAt: Scalars['DateTime']['output'];
1417
+ workspaceId: Scalars['ID']['output'];
1418
+ };
1419
+ export type DesignerTaskFeedFrame = {
1420
+ snapshot: Scalars['Boolean']['output'];
1421
+ tasks: Array<DesignerTask>;
1422
+ };
1423
+ export type DesignerTaskKind = 'PAGE_CLEANUP' | 'PAGE_CREATE';
1424
+ export type DesignerTaskState = 'DISMISSED' | 'DISPATCHED' | 'ESCALATED' | 'FAILED' | 'PENDING' | 'RETRYING' | 'RUNNING' | 'SUCCEEDED';
1385
1425
  export type DeviceCodeInfo = {
1386
1426
  apiUrl: Scalars['String']['output'];
1387
1427
  expiresAt: Scalars['DateTime']['output'];
@@ -2197,6 +2237,7 @@ export type Mutation = {
2197
2237
  createShippingLabel: ShippingGatewayLabel;
2198
2238
  createShippingPackagePreset: ShippingPackagePreset;
2199
2239
  createStockLocation: StockLocation;
2240
+ createStorefrontPage: CreateStorefrontPageResult;
2200
2241
  createSubscription: BillingSubscription;
2201
2242
  createSubscriptionVariantConfig: SubscriptionVariantConfig;
2202
2243
  createTaxRate: TaxRate;
@@ -2238,6 +2279,7 @@ export type Mutation = {
2238
2279
  deleteShippingGatewayRoutingRule: Scalars['Boolean']['output'];
2239
2280
  deleteShippingPackagePreset: Scalars['Boolean']['output'];
2240
2281
  deleteStockLocation: DeletionResponse;
2282
+ deleteStorefrontPage: DeleteStorefrontPageResult;
2241
2283
  deleteSubscriptionVariantConfig: SubscriptionVariantConfig;
2242
2284
  deleteTaxRate: DeletionResponse;
2243
2285
  deleteToken: Scalars['Boolean']['output'];
@@ -2246,6 +2288,7 @@ export type Mutation = {
2246
2288
  disableAutomation: Automation;
2247
2289
  disablePlugin: ChannelPlugin;
2248
2290
  disableScheduledJob: ScheduledJob;
2291
+ dismissDesignerTask: DesignerTask;
2249
2292
  emit: Scalars['Boolean']['output'];
2250
2293
  enableAutomation: Automation;
2251
2294
  enablePlugin: ChannelPlugin;
@@ -2306,6 +2349,7 @@ export type Mutation = {
2306
2349
  respondToHookDispatch: Scalars['Boolean']['output'];
2307
2350
  resumeExperiment: Experiment;
2308
2351
  resumeSubscription: BillingSubscription;
2352
+ retryDesignerTask: DesignerTask;
2309
2353
  revertOrderModification: Order;
2310
2354
  rollbackTransaction: DeletionResponse;
2311
2355
  saveToken: PaymentGatewayToken;
@@ -2619,6 +2663,9 @@ export type MutationcreateShippingPackagePresetArgs = {
2619
2663
  export type MutationcreateStockLocationArgs = {
2620
2664
  input: CreateStockLocationInput;
2621
2665
  };
2666
+ export type MutationcreateStorefrontPageArgs = {
2667
+ input: CreateStorefrontPageInput;
2668
+ };
2622
2669
  export type MutationcreateSubscriptionArgs = {
2623
2670
  input: CreateSubscriptionInput;
2624
2671
  };
@@ -2743,6 +2790,9 @@ export type MutationdeleteShippingPackagePresetArgs = {
2743
2790
  export type MutationdeleteStockLocationArgs = {
2744
2791
  id: Scalars['ID']['input'];
2745
2792
  };
2793
+ export type MutationdeleteStorefrontPageArgs = {
2794
+ input: DeleteStorefrontPageInput;
2795
+ };
2746
2796
  export type MutationdeleteSubscriptionVariantConfigArgs = {
2747
2797
  id: Scalars['ID']['input'];
2748
2798
  };
@@ -2767,6 +2817,9 @@ export type MutationdisablePluginArgs = {
2767
2817
  export type MutationdisableScheduledJobArgs = {
2768
2818
  id: Scalars['ID']['input'];
2769
2819
  };
2820
+ export type MutationdismissDesignerTaskArgs = {
2821
+ id: Scalars['ID']['input'];
2822
+ };
2770
2823
  export type MutationemitArgs = {
2771
2824
  input: EmitCustomEventInput;
2772
2825
  };
@@ -2941,6 +2994,9 @@ export type MutationresumeExperimentArgs = {
2941
2994
  export type MutationresumeSubscriptionArgs = {
2942
2995
  id: Scalars['ID']['input'];
2943
2996
  };
2997
+ export type MutationretryDesignerTaskArgs = {
2998
+ id: Scalars['ID']['input'];
2999
+ };
2944
3000
  export type MutationrevertOrderModificationArgs = {
2945
3001
  input: RevertOrderModificationInput;
2946
3002
  };
@@ -3683,6 +3739,7 @@ export type Query = {
3683
3739
  deployment?: Maybe<Deployment>;
3684
3740
  deploymentEnv: Array<EnvVar>;
3685
3741
  deployments: Array<Deployment>;
3742
+ designerTasks: Array<DesignerTask>;
3686
3743
  deviceCodeInfo?: Maybe<DeviceCodeInfo>;
3687
3744
  dunningAttempts: Array<DunningAttempt>;
3688
3745
  dunningSchedule?: Maybe<DunningSchedule>;
@@ -4934,9 +4991,11 @@ export type Subscription = {
4934
4991
  chatMessageStream: ChatMessage;
4935
4992
  deploymentLogs: DeploymentLogEntry;
4936
4993
  deploymentStatusChanged: Deployment;
4994
+ designerTaskChanged: DesignerTaskFeedFrame;
4937
4995
  fulfillmentStateChanged: FulfillmentStateTransition;
4938
4996
  hookDispatched: HookDispatchEvent;
4939
4997
  resumeChatSession: ChatMessage;
4998
+ storefrontRouteTreeChanged: StorefrontRouteTree;
4940
4999
  workspaceReadiness: WorkspaceReadiness;
4941
5000
  };
4942
5001
  export type SubscriptionchatMessageStreamArgs = {
@@ -5650,9 +5709,11 @@ export type WorkspaceReadiness = {
5650
5709
  chatBindingState: WorkspaceBindingStatus;
5651
5710
  endpoint?: Maybe<Scalars['String']['output']>;
5652
5711
  podState?: Maybe<WorkspacePodState>;
5712
+ serverCondition?: Maybe<WorkspaceServerCondition>;
5653
5713
  serverState?: Maybe<WorkspaceServerState>;
5654
5714
  workspaceId?: Maybe<Scalars['ID']['output']>;
5655
5715
  };
5716
+ export type WorkspaceServerCondition = 'DEGRADED' | 'OK';
5656
5717
  export type WorkspaceServerState = 'SERVING' | 'STARTING' | 'UNRESPONSIVE';
5657
5718
  export type WriteOffDamagedStockInput = {
5658
5719
  note?: InputMaybe<Scalars['String']['input']>;
@@ -6655,7 +6716,7 @@ export type ChatMessageFieldFragment = (Pick<ChatMessage, 'type' | 'content' | '
6655
6716
  });
6656
6717
  export type ChatHistoryMessageFieldFragment = Pick<ChatHistoryMessage, 'id' | 'role' | 'content' | 'toolUse' | 'toolResult' | 'seq' | 'eventId' | 'timestamp'>;
6657
6718
  export type ChatSessionSummaryFieldFragment = Pick<ChatSessionSummary, 'id' | 'agentSessionId' | 'title' | 'status' | 'origin' | 'lastBackend' | 'messageCount' | 'lastActivityAt' | 'createdAt' | 'workspaceId'>;
6658
- export type WorkspaceReadinessFieldFragment = Pick<WorkspaceReadiness, 'workspaceId' | 'podState' | 'serverState' | 'chatBindingState' | 'endpoint'>;
6719
+ export type WorkspaceReadinessFieldFragment = Pick<WorkspaceReadiness, 'workspaceId' | 'podState' | 'serverState' | 'serverCondition' | 'chatBindingState' | 'endpoint'>;
6659
6720
  export type StartChatSessionMutationVariables = Exact<{
6660
6721
  input?: InputMaybe<StartChatSessionInput>;
6661
6722
  }>;
@@ -6729,7 +6790,7 @@ export type WorkspaceReadinessSubscriptionVariables = Exact<{
6729
6790
  [key: string]: never;
6730
6791
  }>;
6731
6792
  export type WorkspaceReadinessSubscription = {
6732
- workspaceReadiness: Pick<WorkspaceReadiness, 'workspaceId' | 'podState' | 'serverState' | 'chatBindingState' | 'endpoint'>;
6793
+ workspaceReadiness: Pick<WorkspaceReadiness, 'workspaceId' | 'podState' | 'serverState' | 'serverCondition' | 'chatBindingState' | 'endpoint'>;
6733
6794
  };
6734
6795
  export type CollectionTranslationFieldFragment = Pick<CollectionTranslation, 'id' | 'languageCode' | 'name' | 'slug' | 'description'>;
6735
6796
  export type CollectionFieldFragment = (Pick<Collection, 'id' | 'createdAt' | 'updatedAt' | 'name' | 'slug' | 'description' | 'isPrivate' | 'isRoot' | 'inheritFilters' | 'position' | 'filters' | 'parentId'> & {
@@ -7097,6 +7158,32 @@ export type AdminDeploymentStatusChangedSubscriptionVariables = Exact<{
7097
7158
  export type AdminDeploymentStatusChangedSubscription = {
7098
7159
  deploymentStatusChanged: Pick<Deployment, 'id' | 'type' | 'status' | 'url' | 'errorMessage' | 'instances' | 'lastDeployedAt'>;
7099
7160
  };
7161
+ export type AdminDesignerTasksQueryVariables = Exact<{
7162
+ [key: string]: never;
7163
+ }>;
7164
+ export type AdminDesignerTasksQuery = {
7165
+ designerTasks: Array<Pick<DesignerTask, 'id' | 'workspaceId' | 'kind' | 'subject' | 'state' | 'agentSessionId' | 'currentTurnId' | 'attempts' | 'lastAttemptAt' | 'lastError' | 'dispatchedAt' | 'settledAt' | 'createdAt' | 'updatedAt'>>;
7166
+ };
7167
+ export type AdminRetryDesignerTaskMutationVariables = Exact<{
7168
+ id: Scalars['ID']['input'];
7169
+ }>;
7170
+ export type AdminRetryDesignerTaskMutation = {
7171
+ retryDesignerTask: Pick<DesignerTask, 'id' | 'workspaceId' | 'kind' | 'subject' | 'state' | 'agentSessionId' | 'currentTurnId' | 'attempts' | 'lastAttemptAt' | 'lastError' | 'dispatchedAt' | 'settledAt' | 'createdAt' | 'updatedAt'>;
7172
+ };
7173
+ export type AdminDismissDesignerTaskMutationVariables = Exact<{
7174
+ id: Scalars['ID']['input'];
7175
+ }>;
7176
+ export type AdminDismissDesignerTaskMutation = {
7177
+ dismissDesignerTask: Pick<DesignerTask, 'id' | 'workspaceId' | 'kind' | 'subject' | 'state' | 'agentSessionId' | 'currentTurnId' | 'attempts' | 'lastAttemptAt' | 'lastError' | 'dispatchedAt' | 'settledAt' | 'createdAt' | 'updatedAt'>;
7178
+ };
7179
+ export type AdminDesignerTaskChangedSubscriptionVariables = Exact<{
7180
+ [key: string]: never;
7181
+ }>;
7182
+ export type AdminDesignerTaskChangedSubscription = {
7183
+ designerTaskChanged: (Pick<DesignerTaskFeedFrame, 'snapshot'> & {
7184
+ tasks: Array<Pick<DesignerTask, 'id' | 'workspaceId' | 'kind' | 'subject' | 'state' | 'agentSessionId' | 'currentTurnId' | 'attempts' | 'lastAttemptAt' | 'lastError' | 'dispatchedAt' | 'settledAt' | 'createdAt' | 'updatedAt'>>;
7185
+ });
7186
+ };
7100
7187
  export type AdminExperimentVariantFieldsFragment = Pick<ExperimentVariant, 'id' | 'key' | 'name' | 'weight' | 'position' | 'payload'>;
7101
7188
  export type AdminExperimentPauseIntervalFieldsFragment = Pick<ExperimentPauseInterval, 'id' | 'pausedAt' | 'resumedAt'>;
7102
7189
  export type AdminExperimentFieldsFragment = (Pick<Experiment, 'id' | 'code' | 'name' | 'lifecycle' | 'salt' | 'trafficBps' | 'allowForcedEntry' | 'subjectType' | 'version' | 'goalEventTypes' | 'primaryGoalRevenueWeighted' | 'winnerVariantKey' | 'startedAt' | 'completedAt' | 'createdAt' | 'updatedAt' | 'deletedAt'> & {
@@ -11798,6 +11885,26 @@ export type AdminStorefrontRouteTreeQuery = {
11798
11885
  nodes: Array<Pick<StorefrontRouteNode, 'routePattern' | 'filePath' | 'depth' | 'isDynamic' | 'matchRegex' | 'groups' | 'hasExperimentUsage' | 'experimentKeys'>>;
11799
11886
  });
11800
11887
  };
11888
+ export type AdminDeleteStorefrontPageMutationVariables = Exact<{
11889
+ input: DeleteStorefrontPageInput;
11890
+ }>;
11891
+ export type AdminDeleteStorefrontPageMutation = {
11892
+ deleteStorefrontPage: Pick<DeleteStorefrontPageResult, 'status' | 'taskId' | 'routePattern'>;
11893
+ };
11894
+ export type AdminCreateStorefrontPageMutationVariables = Exact<{
11895
+ input: CreateStorefrontPageInput;
11896
+ }>;
11897
+ export type AdminCreateStorefrontPageMutation = {
11898
+ createStorefrontPage: Pick<CreateStorefrontPageResult, 'status' | 'taskId' | 'routePattern'>;
11899
+ };
11900
+ export type AdminStorefrontRouteTreeChangedSubscriptionVariables = Exact<{
11901
+ [key: string]: never;
11902
+ }>;
11903
+ export type AdminStorefrontRouteTreeChangedSubscription = {
11904
+ storefrontRouteTreeChanged: (Pick<StorefrontRouteTree, 'unattributedExperimentUsages' | 'truncated' | 'extractedAt'> & {
11905
+ nodes: Array<Pick<StorefrontRouteNode, 'routePattern' | 'filePath' | 'depth' | 'isDynamic' | 'matchRegex' | 'groups' | 'hasExperimentUsage' | 'experimentKeys'>>;
11906
+ });
11907
+ };
11801
11908
  export type SubscriptionAnalyticsFieldFragment = (Pick<SubscriptionAnalytics, 'mrr' | 'arpu' | 'churnRate' | 'pastDueAmountAtRisk' | 'pastDueCount' | 'trialsEndingSoonCount'> & {
11802
11909
  statusCounts: Pick<SubscriptionStatusCounts, 'active' | 'trialing' | 'pastDue' | 'paused' | 'cancelled'>;
11803
11910
  revenueByDay: Array<Pick<SubscriptionRevenuePoint, 'date' | 'amount' | 'orderCount'>>;
package/dist/admin.d.ts CHANGED
@@ -21,6 +21,7 @@ export { CustomerAddressCategory } from './admin.generated';
21
21
  export { CustomerGroupCategory } from './admin.generated';
22
22
  export { CustomerAnalyticsCategory } from './admin.generated';
23
23
  export { DeploymentCategory } from './admin.generated';
24
+ export { DesignerTaskCategory } from './admin.generated';
24
25
  export { ExperimentCategory } from './admin.generated';
25
26
  export { FacetCategory } from './admin.generated';
26
27
  export { FulfillmentCategory } from './admin.generated';
@@ -250,6 +250,14 @@ export declare class DeploymentCategory {
250
250
  adminDeploymentLogs(variables: Types.AdminDeploymentLogsSubscriptionVariables): Observable<Types.AdminDeploymentLogsSubscription>;
251
251
  adminDeploymentStatusChanged(variables: Types.AdminDeploymentStatusChangedSubscriptionVariables): Observable<Types.AdminDeploymentStatusChangedSubscription>;
252
252
  }
253
+ export declare class DesignerTaskCategory {
254
+ private readonly client;
255
+ constructor(client: BaseGraphQLClient);
256
+ adminDesignerTasks(): QueryObservable<Types.AdminDesignerTasksQuery>;
257
+ adminRetryDesignerTask(variables: Types.AdminRetryDesignerTaskMutationVariables): QueryObservable<Types.AdminRetryDesignerTaskMutation>;
258
+ adminDismissDesignerTask(variables: Types.AdminDismissDesignerTaskMutationVariables): QueryObservable<Types.AdminDismissDesignerTaskMutation>;
259
+ adminDesignerTaskChanged(): Observable<Types.AdminDesignerTaskChangedSubscription>;
260
+ }
253
261
  export declare class ExperimentCategory {
254
262
  private readonly client;
255
263
  constructor(client: BaseGraphQLClient);
@@ -677,6 +685,9 @@ export declare class StorefrontRouteTreeCategory {
677
685
  private readonly client;
678
686
  constructor(client: BaseGraphQLClient);
679
687
  adminStorefrontRouteTree(): QueryObservable<Types.AdminStorefrontRouteTreeQuery>;
688
+ adminDeleteStorefrontPage(variables: Types.AdminDeleteStorefrontPageMutationVariables): QueryObservable<Types.AdminDeleteStorefrontPageMutation>;
689
+ adminCreateStorefrontPage(variables: Types.AdminCreateStorefrontPageMutationVariables): QueryObservable<Types.AdminCreateStorefrontPageMutation>;
690
+ adminStorefrontRouteTreeChanged(): Observable<Types.AdminStorefrontRouteTreeChangedSubscription>;
680
691
  }
681
692
  export declare class SubscriptionCategory {
682
693
  private readonly client;
@@ -755,6 +766,7 @@ export declare class AdminNamespace {
755
766
  private readonly _customer;
756
767
  private readonly _customerAnalytics;
757
768
  private readonly _deployment;
769
+ private readonly _designerTask;
758
770
  private readonly _experiment;
759
771
  private readonly _facet;
760
772
  private readonly _fulfillment;
@@ -805,6 +817,7 @@ export declare class AdminNamespace {
805
817
  get customer(): CustomerCategory;
806
818
  get customerAnalytics(): CustomerAnalyticsCategory;
807
819
  get deployment(): DeploymentCategory;
820
+ get designerTask(): DesignerTaskCategory;
808
821
  get experiment(): ExperimentCategory;
809
822
  get facet(): FacetCategory;
810
823
  get fulfillment(): FulfillmentCategory;
@@ -7,8 +7,8 @@
7
7
  * Any manual changes will be overwritten on the next generation run.
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.ScheduledJobCategory = exports.RoleCategory = exports.PromotionCategory = exports.ProductVariantCategory = exports.ProductOptionGroupCategory = exports.ProductOptionCategory = exports.ProductCategory = exports.PluginManageableCategory = exports.PluginCategory = exports.PaymentCategory = exports.OrderAnalyticsCategory = exports.OrderNoteCategory = exports.OrderModificationCategory = exports.OrderDraftCategory = exports.OrderCouponCategory = exports.OrderCategory = exports.OnboardingCategory = exports.MissionCategory = exports.MarketingIdentityCategory = exports.MarketingEventCategory = exports.MarketingAttributionCategory = exports.MarketCategory = exports.HookDispatchCategory = exports.HookCategory = exports.FulfillmentRequestCategory = exports.FulfillmentCategory = exports.FacetCategory = exports.ExperimentCategory = exports.DeploymentCategory = exports.CustomerAnalyticsCategory = exports.CustomerGroupCategory = exports.CustomerAddressCategory = exports.CustomerCategory = exports.CountryCategory = exports.CollectionCategory = exports.ChatCategory = exports.ChannelSettingsCategory = exports.ChannelCategory = exports.AutomationCategory = exports.AuthCategory = exports.AudienceSegmentCategory = exports.AudienceMembershipCategory = exports.AssetCategory = exports.AnalyticsGatewayCategory = exports.AdministratorCategory = exports.AcfSchemaCategory = exports.AcfPublishCategory = exports.AcfFieldDefinitionCategory = exports.AcfEntryCategory = exports.AcfCategory = void 0;
11
- exports.AdminNamespace = exports.ZoneCategory = exports.TransactionCategory = exports.TaxCategory = exports.SubscriptionAnalyticsCategory = exports.SubscriptionCategory = exports.StorefrontRouteTreeCategory = exports.StockAnalyticsCategory = exports.StockCategory = exports.ShippingCategory = exports.SellingPlanCategory = exports.SellerCategory = exports.SearchCategory = void 0;
10
+ exports.RoleCategory = exports.PromotionCategory = exports.ProductVariantCategory = exports.ProductOptionGroupCategory = exports.ProductOptionCategory = exports.ProductCategory = exports.PluginManageableCategory = exports.PluginCategory = exports.PaymentCategory = exports.OrderAnalyticsCategory = exports.OrderNoteCategory = exports.OrderModificationCategory = exports.OrderDraftCategory = exports.OrderCouponCategory = exports.OrderCategory = exports.OnboardingCategory = exports.MissionCategory = exports.MarketingIdentityCategory = exports.MarketingEventCategory = exports.MarketingAttributionCategory = exports.MarketCategory = exports.HookDispatchCategory = exports.HookCategory = exports.FulfillmentRequestCategory = exports.FulfillmentCategory = exports.FacetCategory = exports.ExperimentCategory = exports.DesignerTaskCategory = exports.DeploymentCategory = exports.CustomerAnalyticsCategory = exports.CustomerGroupCategory = exports.CustomerAddressCategory = exports.CustomerCategory = exports.CountryCategory = exports.CollectionCategory = exports.ChatCategory = exports.ChannelSettingsCategory = exports.ChannelCategory = exports.AutomationCategory = exports.AuthCategory = exports.AudienceSegmentCategory = exports.AudienceMembershipCategory = exports.AssetCategory = exports.AnalyticsGatewayCategory = exports.AdministratorCategory = exports.AcfSchemaCategory = exports.AcfPublishCategory = exports.AcfFieldDefinitionCategory = exports.AcfEntryCategory = exports.AcfCategory = void 0;
11
+ exports.AdminNamespace = exports.ZoneCategory = exports.TransactionCategory = exports.TaxCategory = exports.SubscriptionAnalyticsCategory = exports.SubscriptionCategory = exports.StorefrontRouteTreeCategory = exports.StockAnalyticsCategory = exports.StockCategory = exports.ShippingCategory = exports.SellingPlanCategory = exports.SellerCategory = exports.SearchCategory = exports.ScheduledJobCategory = void 0;
12
12
  const documents_generated_1 = require("./documents.generated");
13
13
  class AcfCategory {
14
14
  client;
@@ -620,6 +620,25 @@ class DeploymentCategory {
620
620
  }
621
621
  }
622
622
  exports.DeploymentCategory = DeploymentCategory;
623
+ class DesignerTaskCategory {
624
+ client;
625
+ constructor(client) {
626
+ this.client = client;
627
+ }
628
+ adminDesignerTasks() {
629
+ return this.client.query(documents_generated_1.adminAdminDesignerTasksDocument);
630
+ }
631
+ adminRetryDesignerTask(variables) {
632
+ return this.client.mutate(documents_generated_1.adminAdminRetryDesignerTaskDocument, variables);
633
+ }
634
+ adminDismissDesignerTask(variables) {
635
+ return this.client.mutate(documents_generated_1.adminAdminDismissDesignerTaskDocument, variables);
636
+ }
637
+ adminDesignerTaskChanged() {
638
+ return this.client.subscribe(documents_generated_1.adminAdminDesignerTaskChangedDocument);
639
+ }
640
+ }
641
+ exports.DesignerTaskCategory = DesignerTaskCategory;
623
642
  class ExperimentCategory {
624
643
  client;
625
644
  constructor(client) {
@@ -1720,6 +1739,15 @@ class StorefrontRouteTreeCategory {
1720
1739
  adminStorefrontRouteTree() {
1721
1740
  return this.client.query(documents_generated_1.adminAdminStorefrontRouteTreeDocument);
1722
1741
  }
1742
+ adminDeleteStorefrontPage(variables) {
1743
+ return this.client.mutate(documents_generated_1.adminAdminDeleteStorefrontPageDocument, variables);
1744
+ }
1745
+ adminCreateStorefrontPage(variables) {
1746
+ return this.client.mutate(documents_generated_1.adminAdminCreateStorefrontPageDocument, variables);
1747
+ }
1748
+ adminStorefrontRouteTreeChanged() {
1749
+ return this.client.subscribe(documents_generated_1.adminAdminStorefrontRouteTreeChangedDocument);
1750
+ }
1723
1751
  }
1724
1752
  exports.StorefrontRouteTreeCategory = StorefrontRouteTreeCategory;
1725
1753
  class SubscriptionCategory {
@@ -1892,6 +1920,7 @@ class AdminNamespace {
1892
1920
  _customer;
1893
1921
  _customerAnalytics;
1894
1922
  _deployment;
1923
+ _designerTask;
1895
1924
  _experiment;
1896
1925
  _facet;
1897
1926
  _fulfillment;
@@ -1943,6 +1972,7 @@ class AdminNamespace {
1943
1972
  this._customer = new CustomerCategory(client);
1944
1973
  this._customerAnalytics = new CustomerAnalyticsCategory(client);
1945
1974
  this._deployment = new DeploymentCategory(client);
1975
+ this._designerTask = new DesignerTaskCategory(client);
1946
1976
  this._experiment = new ExperimentCategory(client);
1947
1977
  this._facet = new FacetCategory(client);
1948
1978
  this._fulfillment = new FulfillmentCategory(client);
@@ -2025,6 +2055,9 @@ class AdminNamespace {
2025
2055
  get deployment() {
2026
2056
  return this._deployment;
2027
2057
  }
2058
+ get designerTask() {
2059
+ return this._designerTask;
2060
+ }
2028
2061
  get experiment() {
2029
2062
  return this._experiment;
2030
2063
  }
package/dist/admin.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RoleCategory = exports.PromotionCategory = exports.ProductVariantCategory = exports.ProductOptionGroupCategory = exports.ProductOptionCategory = exports.ProductCategory = exports.PluginManageableCategory = exports.PluginCategory = exports.PaymentCategory = exports.OrderAnalyticsCategory = exports.OrderNoteCategory = exports.OrderModificationCategory = exports.OrderDraftCategory = exports.OrderCouponCategory = exports.OrderCategory = exports.OnboardingCategory = exports.MissionCategory = exports.MarketingIdentityCategory = exports.MarketingEventCategory = exports.MarketingAttributionCategory = exports.MarketCategory = exports.HookDispatchCategory = exports.HookCategory = exports.FulfillmentRequestCategory = exports.FulfillmentCategory = exports.FacetCategory = exports.ExperimentCategory = exports.DeploymentCategory = exports.CustomerAnalyticsCategory = exports.CustomerGroupCategory = exports.CustomerAddressCategory = exports.CustomerCategory = exports.CountryCategory = exports.CollectionCategory = exports.ChatCategory = exports.ChannelSettingsCategory = exports.ChannelCategory = exports.AutomationCategory = exports.AuthCategory = exports.AudienceSegmentCategory = exports.AudienceMembershipCategory = exports.AssetCategory = exports.AnalyticsGatewayCategory = exports.AdministratorCategory = exports.AcfSchemaCategory = exports.AcfPublishCategory = exports.AcfFieldDefinitionCategory = exports.AcfEntryCategory = exports.AcfCategory = exports.AdminNamespace = void 0;
4
- exports.ZoneCategory = exports.TransactionCategory = exports.TaxCategory = exports.SubscriptionAnalyticsCategory = exports.SubscriptionCategory = exports.StorefrontRouteTreeCategory = exports.StockAnalyticsCategory = exports.StockCategory = exports.ShippingCategory = exports.SellingPlanCategory = exports.SellerCategory = exports.SearchCategory = exports.ScheduledJobCategory = void 0;
3
+ exports.PromotionCategory = exports.ProductVariantCategory = exports.ProductOptionGroupCategory = exports.ProductOptionCategory = exports.ProductCategory = exports.PluginManageableCategory = exports.PluginCategory = exports.PaymentCategory = exports.OrderAnalyticsCategory = exports.OrderNoteCategory = exports.OrderModificationCategory = exports.OrderDraftCategory = exports.OrderCouponCategory = exports.OrderCategory = exports.OnboardingCategory = exports.MissionCategory = exports.MarketingIdentityCategory = exports.MarketingEventCategory = exports.MarketingAttributionCategory = exports.MarketCategory = exports.HookDispatchCategory = exports.HookCategory = exports.FulfillmentRequestCategory = exports.FulfillmentCategory = exports.FacetCategory = exports.ExperimentCategory = exports.DesignerTaskCategory = exports.DeploymentCategory = exports.CustomerAnalyticsCategory = exports.CustomerGroupCategory = exports.CustomerAddressCategory = exports.CustomerCategory = exports.CountryCategory = exports.CollectionCategory = exports.ChatCategory = exports.ChannelSettingsCategory = exports.ChannelCategory = exports.AutomationCategory = exports.AuthCategory = exports.AudienceSegmentCategory = exports.AudienceMembershipCategory = exports.AssetCategory = exports.AnalyticsGatewayCategory = exports.AdministratorCategory = exports.AcfSchemaCategory = exports.AcfPublishCategory = exports.AcfFieldDefinitionCategory = exports.AcfEntryCategory = exports.AcfCategory = exports.AdminNamespace = void 0;
4
+ exports.ZoneCategory = exports.TransactionCategory = exports.TaxCategory = exports.SubscriptionAnalyticsCategory = exports.SubscriptionCategory = exports.StorefrontRouteTreeCategory = exports.StockAnalyticsCategory = exports.StockCategory = exports.ShippingCategory = exports.SellingPlanCategory = exports.SellerCategory = exports.SearchCategory = exports.ScheduledJobCategory = exports.RoleCategory = void 0;
5
5
  var admin_generated_1 = require("./admin.generated");
6
6
  Object.defineProperty(exports, "AdminNamespace", { enumerable: true, get: function () { return admin_generated_1.AdminNamespace; } });
7
7
  var admin_generated_2 = require("./admin.generated");
@@ -49,82 +49,84 @@ Object.defineProperty(exports, "CustomerAnalyticsCategory", { enumerable: true,
49
49
  var admin_generated_23 = require("./admin.generated");
50
50
  Object.defineProperty(exports, "DeploymentCategory", { enumerable: true, get: function () { return admin_generated_23.DeploymentCategory; } });
51
51
  var admin_generated_24 = require("./admin.generated");
52
- Object.defineProperty(exports, "ExperimentCategory", { enumerable: true, get: function () { return admin_generated_24.ExperimentCategory; } });
52
+ Object.defineProperty(exports, "DesignerTaskCategory", { enumerable: true, get: function () { return admin_generated_24.DesignerTaskCategory; } });
53
53
  var admin_generated_25 = require("./admin.generated");
54
- Object.defineProperty(exports, "FacetCategory", { enumerable: true, get: function () { return admin_generated_25.FacetCategory; } });
54
+ Object.defineProperty(exports, "ExperimentCategory", { enumerable: true, get: function () { return admin_generated_25.ExperimentCategory; } });
55
55
  var admin_generated_26 = require("./admin.generated");
56
- Object.defineProperty(exports, "FulfillmentCategory", { enumerable: true, get: function () { return admin_generated_26.FulfillmentCategory; } });
56
+ Object.defineProperty(exports, "FacetCategory", { enumerable: true, get: function () { return admin_generated_26.FacetCategory; } });
57
57
  var admin_generated_27 = require("./admin.generated");
58
- Object.defineProperty(exports, "FulfillmentRequestCategory", { enumerable: true, get: function () { return admin_generated_27.FulfillmentRequestCategory; } });
58
+ Object.defineProperty(exports, "FulfillmentCategory", { enumerable: true, get: function () { return admin_generated_27.FulfillmentCategory; } });
59
59
  var admin_generated_28 = require("./admin.generated");
60
- Object.defineProperty(exports, "HookCategory", { enumerable: true, get: function () { return admin_generated_28.HookCategory; } });
60
+ Object.defineProperty(exports, "FulfillmentRequestCategory", { enumerable: true, get: function () { return admin_generated_28.FulfillmentRequestCategory; } });
61
61
  var admin_generated_29 = require("./admin.generated");
62
- Object.defineProperty(exports, "HookDispatchCategory", { enumerable: true, get: function () { return admin_generated_29.HookDispatchCategory; } });
62
+ Object.defineProperty(exports, "HookCategory", { enumerable: true, get: function () { return admin_generated_29.HookCategory; } });
63
63
  var admin_generated_30 = require("./admin.generated");
64
- Object.defineProperty(exports, "MarketCategory", { enumerable: true, get: function () { return admin_generated_30.MarketCategory; } });
64
+ Object.defineProperty(exports, "HookDispatchCategory", { enumerable: true, get: function () { return admin_generated_30.HookDispatchCategory; } });
65
65
  var admin_generated_31 = require("./admin.generated");
66
- Object.defineProperty(exports, "MarketingAttributionCategory", { enumerable: true, get: function () { return admin_generated_31.MarketingAttributionCategory; } });
66
+ Object.defineProperty(exports, "MarketCategory", { enumerable: true, get: function () { return admin_generated_31.MarketCategory; } });
67
67
  var admin_generated_32 = require("./admin.generated");
68
- Object.defineProperty(exports, "MarketingEventCategory", { enumerable: true, get: function () { return admin_generated_32.MarketingEventCategory; } });
68
+ Object.defineProperty(exports, "MarketingAttributionCategory", { enumerable: true, get: function () { return admin_generated_32.MarketingAttributionCategory; } });
69
69
  var admin_generated_33 = require("./admin.generated");
70
- Object.defineProperty(exports, "MarketingIdentityCategory", { enumerable: true, get: function () { return admin_generated_33.MarketingIdentityCategory; } });
70
+ Object.defineProperty(exports, "MarketingEventCategory", { enumerable: true, get: function () { return admin_generated_33.MarketingEventCategory; } });
71
71
  var admin_generated_34 = require("./admin.generated");
72
- Object.defineProperty(exports, "MissionCategory", { enumerable: true, get: function () { return admin_generated_34.MissionCategory; } });
72
+ Object.defineProperty(exports, "MarketingIdentityCategory", { enumerable: true, get: function () { return admin_generated_34.MarketingIdentityCategory; } });
73
73
  var admin_generated_35 = require("./admin.generated");
74
- Object.defineProperty(exports, "OnboardingCategory", { enumerable: true, get: function () { return admin_generated_35.OnboardingCategory; } });
74
+ Object.defineProperty(exports, "MissionCategory", { enumerable: true, get: function () { return admin_generated_35.MissionCategory; } });
75
75
  var admin_generated_36 = require("./admin.generated");
76
- Object.defineProperty(exports, "OrderCategory", { enumerable: true, get: function () { return admin_generated_36.OrderCategory; } });
76
+ Object.defineProperty(exports, "OnboardingCategory", { enumerable: true, get: function () { return admin_generated_36.OnboardingCategory; } });
77
77
  var admin_generated_37 = require("./admin.generated");
78
- Object.defineProperty(exports, "OrderCouponCategory", { enumerable: true, get: function () { return admin_generated_37.OrderCouponCategory; } });
78
+ Object.defineProperty(exports, "OrderCategory", { enumerable: true, get: function () { return admin_generated_37.OrderCategory; } });
79
79
  var admin_generated_38 = require("./admin.generated");
80
- Object.defineProperty(exports, "OrderDraftCategory", { enumerable: true, get: function () { return admin_generated_38.OrderDraftCategory; } });
80
+ Object.defineProperty(exports, "OrderCouponCategory", { enumerable: true, get: function () { return admin_generated_38.OrderCouponCategory; } });
81
81
  var admin_generated_39 = require("./admin.generated");
82
- Object.defineProperty(exports, "OrderModificationCategory", { enumerable: true, get: function () { return admin_generated_39.OrderModificationCategory; } });
82
+ Object.defineProperty(exports, "OrderDraftCategory", { enumerable: true, get: function () { return admin_generated_39.OrderDraftCategory; } });
83
83
  var admin_generated_40 = require("./admin.generated");
84
- Object.defineProperty(exports, "OrderNoteCategory", { enumerable: true, get: function () { return admin_generated_40.OrderNoteCategory; } });
84
+ Object.defineProperty(exports, "OrderModificationCategory", { enumerable: true, get: function () { return admin_generated_40.OrderModificationCategory; } });
85
85
  var admin_generated_41 = require("./admin.generated");
86
- Object.defineProperty(exports, "OrderAnalyticsCategory", { enumerable: true, get: function () { return admin_generated_41.OrderAnalyticsCategory; } });
86
+ Object.defineProperty(exports, "OrderNoteCategory", { enumerable: true, get: function () { return admin_generated_41.OrderNoteCategory; } });
87
87
  var admin_generated_42 = require("./admin.generated");
88
- Object.defineProperty(exports, "PaymentCategory", { enumerable: true, get: function () { return admin_generated_42.PaymentCategory; } });
88
+ Object.defineProperty(exports, "OrderAnalyticsCategory", { enumerable: true, get: function () { return admin_generated_42.OrderAnalyticsCategory; } });
89
89
  var admin_generated_43 = require("./admin.generated");
90
- Object.defineProperty(exports, "PluginCategory", { enumerable: true, get: function () { return admin_generated_43.PluginCategory; } });
90
+ Object.defineProperty(exports, "PaymentCategory", { enumerable: true, get: function () { return admin_generated_43.PaymentCategory; } });
91
91
  var admin_generated_44 = require("./admin.generated");
92
- Object.defineProperty(exports, "PluginManageableCategory", { enumerable: true, get: function () { return admin_generated_44.PluginManageableCategory; } });
92
+ Object.defineProperty(exports, "PluginCategory", { enumerable: true, get: function () { return admin_generated_44.PluginCategory; } });
93
93
  var admin_generated_45 = require("./admin.generated");
94
- Object.defineProperty(exports, "ProductCategory", { enumerable: true, get: function () { return admin_generated_45.ProductCategory; } });
94
+ Object.defineProperty(exports, "PluginManageableCategory", { enumerable: true, get: function () { return admin_generated_45.PluginManageableCategory; } });
95
95
  var admin_generated_46 = require("./admin.generated");
96
- Object.defineProperty(exports, "ProductOptionCategory", { enumerable: true, get: function () { return admin_generated_46.ProductOptionCategory; } });
96
+ Object.defineProperty(exports, "ProductCategory", { enumerable: true, get: function () { return admin_generated_46.ProductCategory; } });
97
97
  var admin_generated_47 = require("./admin.generated");
98
- Object.defineProperty(exports, "ProductOptionGroupCategory", { enumerable: true, get: function () { return admin_generated_47.ProductOptionGroupCategory; } });
98
+ Object.defineProperty(exports, "ProductOptionCategory", { enumerable: true, get: function () { return admin_generated_47.ProductOptionCategory; } });
99
99
  var admin_generated_48 = require("./admin.generated");
100
- Object.defineProperty(exports, "ProductVariantCategory", { enumerable: true, get: function () { return admin_generated_48.ProductVariantCategory; } });
100
+ Object.defineProperty(exports, "ProductOptionGroupCategory", { enumerable: true, get: function () { return admin_generated_48.ProductOptionGroupCategory; } });
101
101
  var admin_generated_49 = require("./admin.generated");
102
- Object.defineProperty(exports, "PromotionCategory", { enumerable: true, get: function () { return admin_generated_49.PromotionCategory; } });
102
+ Object.defineProperty(exports, "ProductVariantCategory", { enumerable: true, get: function () { return admin_generated_49.ProductVariantCategory; } });
103
103
  var admin_generated_50 = require("./admin.generated");
104
- Object.defineProperty(exports, "RoleCategory", { enumerable: true, get: function () { return admin_generated_50.RoleCategory; } });
104
+ Object.defineProperty(exports, "PromotionCategory", { enumerable: true, get: function () { return admin_generated_50.PromotionCategory; } });
105
105
  var admin_generated_51 = require("./admin.generated");
106
- Object.defineProperty(exports, "ScheduledJobCategory", { enumerable: true, get: function () { return admin_generated_51.ScheduledJobCategory; } });
106
+ Object.defineProperty(exports, "RoleCategory", { enumerable: true, get: function () { return admin_generated_51.RoleCategory; } });
107
107
  var admin_generated_52 = require("./admin.generated");
108
- Object.defineProperty(exports, "SearchCategory", { enumerable: true, get: function () { return admin_generated_52.SearchCategory; } });
108
+ Object.defineProperty(exports, "ScheduledJobCategory", { enumerable: true, get: function () { return admin_generated_52.ScheduledJobCategory; } });
109
109
  var admin_generated_53 = require("./admin.generated");
110
- Object.defineProperty(exports, "SellerCategory", { enumerable: true, get: function () { return admin_generated_53.SellerCategory; } });
110
+ Object.defineProperty(exports, "SearchCategory", { enumerable: true, get: function () { return admin_generated_53.SearchCategory; } });
111
111
  var admin_generated_54 = require("./admin.generated");
112
- Object.defineProperty(exports, "SellingPlanCategory", { enumerable: true, get: function () { return admin_generated_54.SellingPlanCategory; } });
112
+ Object.defineProperty(exports, "SellerCategory", { enumerable: true, get: function () { return admin_generated_54.SellerCategory; } });
113
113
  var admin_generated_55 = require("./admin.generated");
114
- Object.defineProperty(exports, "ShippingCategory", { enumerable: true, get: function () { return admin_generated_55.ShippingCategory; } });
114
+ Object.defineProperty(exports, "SellingPlanCategory", { enumerable: true, get: function () { return admin_generated_55.SellingPlanCategory; } });
115
115
  var admin_generated_56 = require("./admin.generated");
116
- Object.defineProperty(exports, "StockCategory", { enumerable: true, get: function () { return admin_generated_56.StockCategory; } });
116
+ Object.defineProperty(exports, "ShippingCategory", { enumerable: true, get: function () { return admin_generated_56.ShippingCategory; } });
117
117
  var admin_generated_57 = require("./admin.generated");
118
- Object.defineProperty(exports, "StockAnalyticsCategory", { enumerable: true, get: function () { return admin_generated_57.StockAnalyticsCategory; } });
118
+ Object.defineProperty(exports, "StockCategory", { enumerable: true, get: function () { return admin_generated_57.StockCategory; } });
119
119
  var admin_generated_58 = require("./admin.generated");
120
- Object.defineProperty(exports, "StorefrontRouteTreeCategory", { enumerable: true, get: function () { return admin_generated_58.StorefrontRouteTreeCategory; } });
120
+ Object.defineProperty(exports, "StockAnalyticsCategory", { enumerable: true, get: function () { return admin_generated_58.StockAnalyticsCategory; } });
121
121
  var admin_generated_59 = require("./admin.generated");
122
- Object.defineProperty(exports, "SubscriptionCategory", { enumerable: true, get: function () { return admin_generated_59.SubscriptionCategory; } });
122
+ Object.defineProperty(exports, "StorefrontRouteTreeCategory", { enumerable: true, get: function () { return admin_generated_59.StorefrontRouteTreeCategory; } });
123
123
  var admin_generated_60 = require("./admin.generated");
124
- Object.defineProperty(exports, "SubscriptionAnalyticsCategory", { enumerable: true, get: function () { return admin_generated_60.SubscriptionAnalyticsCategory; } });
124
+ Object.defineProperty(exports, "SubscriptionCategory", { enumerable: true, get: function () { return admin_generated_60.SubscriptionCategory; } });
125
125
  var admin_generated_61 = require("./admin.generated");
126
- Object.defineProperty(exports, "TaxCategory", { enumerable: true, get: function () { return admin_generated_61.TaxCategory; } });
126
+ Object.defineProperty(exports, "SubscriptionAnalyticsCategory", { enumerable: true, get: function () { return admin_generated_61.SubscriptionAnalyticsCategory; } });
127
127
  var admin_generated_62 = require("./admin.generated");
128
- Object.defineProperty(exports, "TransactionCategory", { enumerable: true, get: function () { return admin_generated_62.TransactionCategory; } });
128
+ Object.defineProperty(exports, "TaxCategory", { enumerable: true, get: function () { return admin_generated_62.TaxCategory; } });
129
129
  var admin_generated_63 = require("./admin.generated");
130
- Object.defineProperty(exports, "ZoneCategory", { enumerable: true, get: function () { return admin_generated_63.ZoneCategory; } });
130
+ Object.defineProperty(exports, "TransactionCategory", { enumerable: true, get: function () { return admin_generated_63.TransactionCategory; } });
131
+ var admin_generated_64 = require("./admin.generated");
132
+ Object.defineProperty(exports, "ZoneCategory", { enumerable: true, get: function () { return admin_generated_64.ZoneCategory; } });
@@ -216,6 +216,7 @@ export declare class ForgeCartAdminClient {
216
216
  get customer(): Admin.CustomerCategory;
217
217
  get customerAnalytics(): Admin.CustomerAnalyticsCategory;
218
218
  get deployment(): Admin.DeploymentCategory;
219
+ get designerTask(): Admin.DesignerTaskCategory;
219
220
  get experiment(): Admin.ExperimentCategory;
220
221
  get facet(): Admin.FacetCategory;
221
222
  get fulfillment(): Admin.FulfillmentCategory;
@@ -230,6 +230,16 @@ class BaseGraphQLClient {
230
230
  return new QueryObservable((subscriber) => {
231
231
  const client = this.getWsClient();
232
232
  let disposed = false;
233
+ // Delivery latch: once ANY sink callback has fired, the wire has
234
+ // spoken and a socket close can no longer mean "delivery unknown".
235
+ // Without it, a close event dispatched inside the delivery window
236
+ // (observed: between the error-result notify and the subscriber
237
+ // settling — CD runs 30845909288/30852033370/30855605921, where the
238
+ // server's NOT_VERIFIED answer was on the wire yet the consumer
239
+ // received WS_MUTATION_DELIVERY_INTERRUPTED, 3/3 deterministic)
240
+ // retro-fails an ALREADY-ANSWERED mutation. `settled` flips before
241
+ // any handler logic so every interleave is covered.
242
+ let settled = false;
233
243
  const offConnectionEvents = [];
234
244
  const cleanup = client.subscribe({
235
245
  query: document,
@@ -237,6 +247,7 @@ class BaseGraphQLClient {
237
247
  extensions: this.getPerOperationExtensions(),
238
248
  }, {
239
249
  next: (result) => {
250
+ settled = true;
240
251
  if (disposed)
241
252
  return;
242
253
  if (result.errors && result.errors.length > 0) {
@@ -247,8 +258,12 @@ class BaseGraphQLClient {
247
258
  })),
248
259
  };
249
260
  const error = new ClientError(response, result.errors[0].message);
250
- this.notifyErrorHandler(error);
261
+ // Terminal delivery FIRST, side-channel notification after:
262
+ // the notify hook runs arbitrary app code (toasts, logging,
263
+ // change detection), and anything it lets re-enter must find
264
+ // this operation already settled, never still interruptible.
251
265
  subscriber.error(error);
266
+ this.notifyErrorHandler(error);
252
267
  return;
253
268
  }
254
269
  if (result.data) {
@@ -257,11 +272,13 @@ class BaseGraphQLClient {
257
272
  }
258
273
  },
259
274
  error: (err) => {
275
+ settled = true;
260
276
  if (disposed)
261
277
  return;
262
278
  subscriber.error(this.toStreamError(err));
263
279
  },
264
280
  complete: () => {
281
+ settled = true;
265
282
  if (disposed)
266
283
  return;
267
284
  subscriber.complete();
@@ -271,7 +288,7 @@ class BaseGraphQLClient {
271
288
  let armed = WS_CONNECTION_STATE.get(client)?.connected ?? false;
272
289
  offConnectionEvents.push(client.on("connected", () => { armed = true; }));
273
290
  offConnectionEvents.push(client.on("closed", () => {
274
- if (disposed || !armed)
291
+ if (disposed || settled || !armed)
275
292
  return;
276
293
  const message = "WS_MUTATION_DELIVERY_INTERRUPTED";
277
294
  // subscriber.error tears the subscription down synchronously,
@@ -613,6 +630,9 @@ class ForgeCartAdminClient {
613
630
  get deployment() {
614
631
  return this._namespace.deployment;
615
632
  }
633
+ get designerTask() {
634
+ return this._namespace.designerTask;
635
+ }
616
636
  get experiment() {
617
637
  return this._namespace.experiment;
618
638
  }