@forgecart/sdk 1.202608221935.0 → 1.202608300703.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, 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
59
+ - `client.admin` — entry, fieldDefinition, publish, acfSchema, acf, administrator, agentRun, analyticsGateway, asset, audienceMembership, audienceSegment, auth, automation, settings, channel, chat, collection, country, address, group, customerAnalytics, customer, deployment, emailLayout, emailTemplate, 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, workspaceTemplate, zone
60
60
  - `client.shop` — acf, address, 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
@@ -29,6 +29,8 @@ export declare class ForgeCartAdminClient {
29
29
  clearCurrencyCode(): void;
30
30
  setLanguageCode(languageCode: string): void;
31
31
  clearLanguageCode(): void;
32
+ setVisitorId(visitorId: string): void;
33
+ clearVisitorId(): void;
32
34
  setTransactionToken(token: string): void;
33
35
  clearTransactionToken(): void;
34
36
  setErrorHandler(handler: ErrorHandler): void;
@@ -47,6 +49,7 @@ export declare class ForgeCartAdminClient {
47
49
  get acf(): Admin.AcfCategory;
48
50
  get acfSchema(): Admin.AcfSchemaCategory;
49
51
  get administrator(): Admin.AdministratorCategory;
52
+ get agentRun(): Admin.AgentRunCategory;
50
53
  get analyticsGateway(): Admin.AnalyticsGatewayCategory;
51
54
  get asset(): Admin.AssetCategory;
52
55
  get audienceMembership(): Admin.AudienceMembershipCategory;
@@ -60,7 +63,8 @@ export declare class ForgeCartAdminClient {
60
63
  get customer(): Admin.CustomerCategory;
61
64
  get customerAnalytics(): Admin.CustomerAnalyticsCategory;
62
65
  get deployment(): Admin.DeploymentCategory;
63
- get designerTask(): Admin.DesignerTaskCategory;
66
+ get emailLayout(): Admin.EmailLayoutCategory;
67
+ get emailTemplate(): Admin.EmailTemplateCategory;
64
68
  get experiment(): Admin.ExperimentCategory;
65
69
  get facet(): Admin.FacetCategory;
66
70
  get fulfillment(): Admin.FulfillmentCategory;
@@ -93,5 +97,6 @@ export declare class ForgeCartAdminClient {
93
97
  get subscriptionAnalytics(): Admin.SubscriptionAnalyticsCategory;
94
98
  get tax(): Admin.TaxCategory;
95
99
  get transaction(): Admin.TransactionCategory;
100
+ get workspaceTemplate(): Admin.WorkspaceTemplateCategory;
96
101
  get zone(): Admin.ZoneCategory;
97
102
  }
@@ -42,6 +42,7 @@ class ForgeCartAdminClient {
42
42
  wsEndpoint: config.wsEndpoint,
43
43
  currencyCode: config.currencyCode,
44
44
  languageCode: config.languageCode,
45
+ visitorId: config.visitorId,
45
46
  });
46
47
  this._namespace = new admin_generated_1.AdminNamespace(this.client);
47
48
  }
@@ -66,6 +67,12 @@ class ForgeCartAdminClient {
66
67
  clearLanguageCode() {
67
68
  this.client.clearLanguageCode();
68
69
  }
70
+ setVisitorId(visitorId) {
71
+ this.client.setVisitorId(visitorId);
72
+ }
73
+ clearVisitorId() {
74
+ this.client.clearVisitorId();
75
+ }
69
76
  setTransactionToken(token) {
70
77
  this.client.setTransactionToken(token);
71
78
  }
@@ -150,6 +157,9 @@ class ForgeCartAdminClient {
150
157
  get administrator() {
151
158
  return this._namespace.administrator;
152
159
  }
160
+ get agentRun() {
161
+ return this._namespace.agentRun;
162
+ }
153
163
  get analyticsGateway() {
154
164
  return this._namespace.analyticsGateway;
155
165
  }
@@ -189,8 +199,11 @@ class ForgeCartAdminClient {
189
199
  get deployment() {
190
200
  return this._namespace.deployment;
191
201
  }
192
- get designerTask() {
193
- return this._namespace.designerTask;
202
+ get emailLayout() {
203
+ return this._namespace.emailLayout;
204
+ }
205
+ get emailTemplate() {
206
+ return this._namespace.emailTemplate;
194
207
  }
195
208
  get experiment() {
196
209
  return this._namespace.experiment;
@@ -288,6 +301,9 @@ class ForgeCartAdminClient {
288
301
  get transaction() {
289
302
  return this._namespace.transaction;
290
303
  }
304
+ get workspaceTemplate() {
305
+ return this._namespace.workspaceTemplate;
306
+ }
291
307
  get zone() {
292
308
  return this._namespace.zone;
293
309
  }