@forgecart/sdk 1.0.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.
@@ -0,0 +1,686 @@
1
+ /**
2
+ * @forgecart/sdk - Auto-generated TypeScript SDK
3
+ *
4
+ * This file was automatically generated and should not be manually edited.
5
+ * To regenerate, run: npm run codegen:ts
6
+ *
7
+ * Generated at: 2025-12-12T11:13:16.603Z
8
+ * Generator version: 1.0.0
9
+ *
10
+ * 🤖 Generated with ForgeCart SDK Generator
11
+ */
12
+ import * as Types from './shop-types.js';
13
+ import { RequestDocument, Variables } from 'graphql-request';
14
+ /**
15
+ * SDK Configuration
16
+ */
17
+ export interface SDKConfig {
18
+ /** GraphQL HTTP endpoint */
19
+ endpoint?: string;
20
+ /** WebSocket endpoint for subscriptions */
21
+ wsEndpoint?: string;
22
+ /** Custom HTTP headers */
23
+ headers?: Record<string, string>;
24
+ /** Custom WebSocket implementation (optional, auto-detected if not provided) */
25
+ webSocketImpl?: unknown;
26
+ }
27
+ export type AssetQueryVariables = Types.AssetQueryVariables;
28
+ export type AssetQuery = Types.AssetQuery;
29
+ export type AssetQueryResult = Types.AssetQuery;
30
+ export type AssetsQueryVariables = Types.AssetsQueryVariables;
31
+ export type AssetsQuery = Types.AssetsQuery;
32
+ export type AssetsQueryResult = Types.AssetsQuery;
33
+ export type MeQueryVariables = Types.MeQueryVariables;
34
+ export type MeQuery = Types.MeQuery;
35
+ export type MeQueryResult = Types.MeQuery;
36
+ export type AuthenticateMutationVariables = Types.AuthenticateMutationVariables;
37
+ export type AuthenticateMutation = Types.AuthenticateMutation;
38
+ export type AuthenticateMutationResult = Types.AuthenticateMutation;
39
+ export type GenerateOtpMutationVariables = Types.GenerateOtpMutationVariables;
40
+ export type GenerateOtpMutation = Types.GenerateOtpMutation;
41
+ export type GenerateOtpMutationResult = Types.GenerateOtpMutation;
42
+ export type VerifyOtpMutationVariables = Types.VerifyOtpMutationVariables;
43
+ export type VerifyOtpMutation = Types.VerifyOtpMutation;
44
+ export type VerifyOtpMutationResult = Types.VerifyOtpMutation;
45
+ export type RegisterCustomerAccountMutationVariables = Types.RegisterCustomerAccountMutationVariables;
46
+ export type RegisterCustomerAccountMutation = Types.RegisterCustomerAccountMutation;
47
+ export type RegisterCustomerAccountMutationResult = Types.RegisterCustomerAccountMutation;
48
+ export type VerifyCustomerAccountMutationVariables = Types.VerifyCustomerAccountMutationVariables;
49
+ export type VerifyCustomerAccountMutation = Types.VerifyCustomerAccountMutation;
50
+ export type VerifyCustomerAccountMutationResult = Types.VerifyCustomerAccountMutation;
51
+ export type RefreshCustomerVerificationMutationVariables = Types.RefreshCustomerVerificationMutationVariables;
52
+ export type RefreshCustomerVerificationMutation = Types.RefreshCustomerVerificationMutation;
53
+ export type RefreshCustomerVerificationMutationResult = Types.RefreshCustomerVerificationMutation;
54
+ export type UpdateCustomerMutationVariables = Types.UpdateCustomerMutationVariables;
55
+ export type UpdateCustomerMutation = Types.UpdateCustomerMutation;
56
+ export type UpdateCustomerMutationResult = Types.UpdateCustomerMutation;
57
+ export type UpdateCustomerPasswordMutationVariables = Types.UpdateCustomerPasswordMutationVariables;
58
+ export type UpdateCustomerPasswordMutation = Types.UpdateCustomerPasswordMutation;
59
+ export type UpdateCustomerPasswordMutationResult = Types.UpdateCustomerPasswordMutation;
60
+ export type UpdateCustomerEmailAddressMutationVariables = Types.UpdateCustomerEmailAddressMutationVariables;
61
+ export type UpdateCustomerEmailAddressMutation = Types.UpdateCustomerEmailAddressMutation;
62
+ export type UpdateCustomerEmailAddressMutationResult = Types.UpdateCustomerEmailAddressMutation;
63
+ export type RequestUpdateCustomerEmailAddressMutationVariables = Types.RequestUpdateCustomerEmailAddressMutationVariables;
64
+ export type RequestUpdateCustomerEmailAddressMutation = Types.RequestUpdateCustomerEmailAddressMutation;
65
+ export type RequestUpdateCustomerEmailAddressMutationResult = Types.RequestUpdateCustomerEmailAddressMutation;
66
+ export type RequestPasswordResetMutationVariables = Types.RequestPasswordResetMutationVariables;
67
+ export type RequestPasswordResetMutation = Types.RequestPasswordResetMutation;
68
+ export type RequestPasswordResetMutationResult = Types.RequestPasswordResetMutation;
69
+ export type BlogPostQueryVariables = Types.BlogPostQueryVariables;
70
+ export type BlogPostQuery = Types.BlogPostQuery;
71
+ export type BlogPostQueryResult = Types.BlogPostQuery;
72
+ export type BlogPostsQueryVariables = Types.BlogPostsQueryVariables;
73
+ export type BlogPostsQuery = Types.BlogPostsQuery;
74
+ export type BlogPostsQueryResult = Types.BlogPostsQuery;
75
+ export type BlogPostsByFacetsQueryVariables = Types.BlogPostsByFacetsQueryVariables;
76
+ export type BlogPostsByFacetsQuery = Types.BlogPostsByFacetsQuery;
77
+ export type BlogPostsByFacetsQueryResult = Types.BlogPostsByFacetsQuery;
78
+ export type ActiveChannelQueryVariables = Types.ActiveChannelQueryVariables;
79
+ export type ActiveChannelQuery = Types.ActiveChannelQuery;
80
+ export type ActiveChannelQueryResult = Types.ActiveChannelQuery;
81
+ export type CollectionQueryVariables = Types.CollectionQueryVariables;
82
+ export type CollectionQuery = Types.CollectionQuery;
83
+ export type CollectionQueryResult = Types.CollectionQuery;
84
+ export type CollectionsQueryVariables = Types.CollectionsQueryVariables;
85
+ export type CollectionsQuery = Types.CollectionsQuery;
86
+ export type CollectionsQueryResult = Types.CollectionsQuery;
87
+ export type AvailableCountriesQueryVariables = Types.AvailableCountriesQueryVariables;
88
+ export type AvailableCountriesQuery = Types.AvailableCountriesQuery;
89
+ export type AvailableCountriesQueryResult = Types.AvailableCountriesQuery;
90
+ export type GetAllFieldsQueryVariables = Types.GetAllFieldsQueryVariables;
91
+ export type GetAllFieldsQuery = Types.GetAllFieldsQuery;
92
+ export type GetAllFieldsQueryResult = Types.GetAllFieldsQuery;
93
+ export type GetAllValuesQueryVariables = Types.GetAllValuesQueryVariables;
94
+ export type GetAllValuesQuery = Types.GetAllValuesQuery;
95
+ export type GetAllValuesQueryResult = Types.GetAllValuesQuery;
96
+ export type GetBooleanValueQueryVariables = Types.GetBooleanValueQueryVariables;
97
+ export type GetBooleanValueQuery = Types.GetBooleanValueQuery;
98
+ export type GetBooleanValueQueryResult = Types.GetBooleanValueQuery;
99
+ export type GetDateValueQueryVariables = Types.GetDateValueQueryVariables;
100
+ export type GetDateValueQuery = Types.GetDateValueQuery;
101
+ export type GetDateValueQueryResult = Types.GetDateValueQuery;
102
+ export type GetFloatValueQueryVariables = Types.GetFloatValueQueryVariables;
103
+ export type GetFloatValueQuery = Types.GetFloatValueQuery;
104
+ export type GetFloatValueQueryResult = Types.GetFloatValueQuery;
105
+ export type GetGroupFieldDefinitionByIdQueryVariables = Types.GetGroupFieldDefinitionByIdQueryVariables;
106
+ export type GetGroupFieldDefinitionByIdQuery = Types.GetGroupFieldDefinitionByIdQuery;
107
+ export type GetGroupFieldDefinitionByIdQueryResult = Types.GetGroupFieldDefinitionByIdQuery;
108
+ export type GetGroupValueQueryVariables = Types.GetGroupValueQueryVariables;
109
+ export type GetGroupValueQuery = Types.GetGroupValueQuery;
110
+ export type GetGroupValueQueryResult = Types.GetGroupValueQuery;
111
+ export type GetIntegerValueQueryVariables = Types.GetIntegerValueQueryVariables;
112
+ export type GetIntegerValueQuery = Types.GetIntegerValueQuery;
113
+ export type GetIntegerValueQueryResult = Types.GetIntegerValueQuery;
114
+ export type GetRelationValueQueryVariables = Types.GetRelationValueQueryVariables;
115
+ export type GetRelationValueQuery = Types.GetRelationValueQuery;
116
+ export type GetRelationValueQueryResult = Types.GetRelationValueQuery;
117
+ export type GetRichTextValueQueryVariables = Types.GetRichTextValueQueryVariables;
118
+ export type GetRichTextValueQuery = Types.GetRichTextValueQuery;
119
+ export type GetRichTextValueQueryResult = Types.GetRichTextValueQuery;
120
+ export type GetStringValueQueryVariables = Types.GetStringValueQueryVariables;
121
+ export type GetStringValueQuery = Types.GetStringValueQuery;
122
+ export type GetStringValueQueryResult = Types.GetStringValueQuery;
123
+ export type GetTemplatesByEntityIdQueryVariables = Types.GetTemplatesByEntityIdQueryVariables;
124
+ export type GetTemplatesByEntityIdQuery = Types.GetTemplatesByEntityIdQuery;
125
+ export type GetTemplatesByEntityIdQueryResult = Types.GetTemplatesByEntityIdQuery;
126
+ export type GetUniqueTemplatesQueryVariables = Types.GetUniqueTemplatesQueryVariables;
127
+ export type GetUniqueTemplatesQuery = Types.GetUniqueTemplatesQuery;
128
+ export type GetUniqueTemplatesQueryResult = Types.GetUniqueTemplatesQuery;
129
+ export type CreateCustomerAddressMutationVariables = Types.CreateCustomerAddressMutationVariables;
130
+ export type CreateCustomerAddressMutation = Types.CreateCustomerAddressMutation;
131
+ export type CreateCustomerAddressMutationResult = Types.CreateCustomerAddressMutation;
132
+ export type UpdateCustomerAddressMutationVariables = Types.UpdateCustomerAddressMutationVariables;
133
+ export type UpdateCustomerAddressMutation = Types.UpdateCustomerAddressMutation;
134
+ export type UpdateCustomerAddressMutationResult = Types.UpdateCustomerAddressMutation;
135
+ export type DeleteCustomerAddressMutationVariables = Types.DeleteCustomerAddressMutationVariables;
136
+ export type DeleteCustomerAddressMutation = Types.DeleteCustomerAddressMutation;
137
+ export type DeleteCustomerAddressMutationResult = Types.DeleteCustomerAddressMutation;
138
+ export type FacetQueryVariables = Types.FacetQueryVariables;
139
+ export type FacetQuery = Types.FacetQuery;
140
+ export type FacetQueryResult = Types.FacetQuery;
141
+ export type FacetsQueryVariables = Types.FacetsQueryVariables;
142
+ export type FacetsQuery = Types.FacetsQuery;
143
+ export type FacetsQueryResult = Types.FacetsQuery;
144
+ export type GetOnboardingQueryVariables = Types.GetOnboardingQueryVariables;
145
+ export type GetOnboardingQuery = Types.GetOnboardingQuery;
146
+ export type GetOnboardingQueryResult = Types.GetOnboardingQuery;
147
+ export type CreateOnboardingMutationVariables = Types.CreateOnboardingMutationVariables;
148
+ export type CreateOnboardingMutation = Types.CreateOnboardingMutation;
149
+ export type CreateOnboardingMutationResult = Types.CreateOnboardingMutation;
150
+ export type UpdateOnboardingMutationVariables = Types.UpdateOnboardingMutationVariables;
151
+ export type UpdateOnboardingMutation = Types.UpdateOnboardingMutation;
152
+ export type UpdateOnboardingMutationResult = Types.UpdateOnboardingMutation;
153
+ export type ActiveOrderQueryVariables = Types.ActiveOrderQueryVariables;
154
+ export type ActiveOrderQuery = Types.ActiveOrderQuery;
155
+ export type ActiveOrderQueryResult = Types.ActiveOrderQuery;
156
+ export type OrderQueryVariables = Types.OrderQueryVariables;
157
+ export type OrderQuery = Types.OrderQuery;
158
+ export type OrderQueryResult = Types.OrderQuery;
159
+ export type OrderByCodeQueryVariables = Types.OrderByCodeQueryVariables;
160
+ export type OrderByCodeQuery = Types.OrderByCodeQuery;
161
+ export type OrderByCodeQueryResult = Types.OrderByCodeQuery;
162
+ export type NextOrderStatesQueryVariables = Types.NextOrderStatesQueryVariables;
163
+ export type NextOrderStatesQuery = Types.NextOrderStatesQuery;
164
+ export type NextOrderStatesQueryResult = Types.NextOrderStatesQuery;
165
+ export type AddItemToOrderMutationVariables = Types.AddItemToOrderMutationVariables;
166
+ export type AddItemToOrderMutation = Types.AddItemToOrderMutation;
167
+ export type AddItemToOrderMutationResult = Types.AddItemToOrderMutation;
168
+ export type AdjustOrderLineMutationVariables = Types.AdjustOrderLineMutationVariables;
169
+ export type AdjustOrderLineMutation = Types.AdjustOrderLineMutation;
170
+ export type AdjustOrderLineMutationResult = Types.AdjustOrderLineMutation;
171
+ export type RemoveOrderLineMutationVariables = Types.RemoveOrderLineMutationVariables;
172
+ export type RemoveOrderLineMutation = Types.RemoveOrderLineMutation;
173
+ export type RemoveOrderLineMutationResult = Types.RemoveOrderLineMutation;
174
+ export type RemoveAllOrderLinesMutationVariables = Types.RemoveAllOrderLinesMutationVariables;
175
+ export type RemoveAllOrderLinesMutation = Types.RemoveAllOrderLinesMutation;
176
+ export type RemoveAllOrderLinesMutationResult = Types.RemoveAllOrderLinesMutation;
177
+ export type ApplyCouponCodeMutationVariables = Types.ApplyCouponCodeMutationVariables;
178
+ export type ApplyCouponCodeMutation = Types.ApplyCouponCodeMutation;
179
+ export type ApplyCouponCodeMutationResult = Types.ApplyCouponCodeMutation;
180
+ export type RemoveCouponCodeMutationVariables = Types.RemoveCouponCodeMutationVariables;
181
+ export type RemoveCouponCodeMutation = Types.RemoveCouponCodeMutation;
182
+ export type RemoveCouponCodeMutationResult = Types.RemoveCouponCodeMutation;
183
+ export type SetOrderShippingAddressMutationVariables = Types.SetOrderShippingAddressMutationVariables;
184
+ export type SetOrderShippingAddressMutation = Types.SetOrderShippingAddressMutation;
185
+ export type SetOrderShippingAddressMutationResult = Types.SetOrderShippingAddressMutation;
186
+ export type UnsetOrderShippingAddressMutationVariables = Types.UnsetOrderShippingAddressMutationVariables;
187
+ export type UnsetOrderShippingAddressMutation = Types.UnsetOrderShippingAddressMutation;
188
+ export type UnsetOrderShippingAddressMutationResult = Types.UnsetOrderShippingAddressMutation;
189
+ export type SetOrderBillingAddressMutationVariables = Types.SetOrderBillingAddressMutationVariables;
190
+ export type SetOrderBillingAddressMutation = Types.SetOrderBillingAddressMutation;
191
+ export type SetOrderBillingAddressMutationResult = Types.SetOrderBillingAddressMutation;
192
+ export type UnsetOrderBillingAddressMutationVariables = Types.UnsetOrderBillingAddressMutationVariables;
193
+ export type UnsetOrderBillingAddressMutation = Types.UnsetOrderBillingAddressMutation;
194
+ export type UnsetOrderBillingAddressMutationResult = Types.UnsetOrderBillingAddressMutation;
195
+ export type EligibleShippingMethodsQueryVariables = Types.EligibleShippingMethodsQueryVariables;
196
+ export type EligibleShippingMethodsQuery = Types.EligibleShippingMethodsQuery;
197
+ export type EligibleShippingMethodsQueryResult = Types.EligibleShippingMethodsQuery;
198
+ export type ActiveShippingMethodsQueryVariables = Types.ActiveShippingMethodsQueryVariables;
199
+ export type ActiveShippingMethodsQuery = Types.ActiveShippingMethodsQuery;
200
+ export type ActiveShippingMethodsQueryResult = Types.ActiveShippingMethodsQuery;
201
+ export type SetOrderShippingMethodMutationVariables = Types.SetOrderShippingMethodMutationVariables;
202
+ export type SetOrderShippingMethodMutation = Types.SetOrderShippingMethodMutation;
203
+ export type SetOrderShippingMethodMutationResult = Types.SetOrderShippingMethodMutation;
204
+ export type EligiblePaymentMethodsQueryVariables = Types.EligiblePaymentMethodsQueryVariables;
205
+ export type EligiblePaymentMethodsQuery = Types.EligiblePaymentMethodsQuery;
206
+ export type EligiblePaymentMethodsQueryResult = Types.EligiblePaymentMethodsQuery;
207
+ export type ActivePaymentMethodsQueryVariables = Types.ActivePaymentMethodsQueryVariables;
208
+ export type ActivePaymentMethodsQuery = Types.ActivePaymentMethodsQuery;
209
+ export type ActivePaymentMethodsQueryResult = Types.ActivePaymentMethodsQuery;
210
+ export type AddPaymentToOrderMutationVariables = Types.AddPaymentToOrderMutationVariables;
211
+ export type AddPaymentToOrderMutation = Types.AddPaymentToOrderMutation;
212
+ export type AddPaymentToOrderMutationResult = Types.AddPaymentToOrderMutation;
213
+ export type TransitionOrderToStateMutationVariables = Types.TransitionOrderToStateMutationVariables;
214
+ export type TransitionOrderToStateMutation = Types.TransitionOrderToStateMutation;
215
+ export type TransitionOrderToStateMutationResult = Types.TransitionOrderToStateMutation;
216
+ export type SetCustomerForOrderMutationVariables = Types.SetCustomerForOrderMutationVariables;
217
+ export type SetCustomerForOrderMutation = Types.SetCustomerForOrderMutation;
218
+ export type SetCustomerForOrderMutationResult = Types.SetCustomerForOrderMutation;
219
+ export type SetOrderCustomFieldsMutationVariables = Types.SetOrderCustomFieldsMutationVariables;
220
+ export type SetOrderCustomFieldsMutation = Types.SetOrderCustomFieldsMutation;
221
+ export type SetOrderCustomFieldsMutationResult = Types.SetOrderCustomFieldsMutation;
222
+ export type ProductsQueryVariables = Types.ProductsQueryVariables;
223
+ export type ProductsQuery = Types.ProductsQuery;
224
+ export type ProductsQueryResult = Types.ProductsQuery;
225
+ export type ProductQueryVariables = Types.ProductQueryVariables;
226
+ export type ProductQuery = Types.ProductQuery;
227
+ export type ProductQueryResult = Types.ProductQuery;
228
+ export type SearchQueryVariables = Types.SearchQueryVariables;
229
+ export type SearchQuery = Types.SearchQuery;
230
+ export type SearchQueryResult = Types.SearchQuery;
231
+ /**
232
+ * Base GraphQL Client
233
+ * Uses WebSocket as primary layer with HTTP fallback
234
+ * Handles queries, mutations, and subscriptions over WebSocket when available
235
+ */
236
+ declare class BaseGraphQLClient {
237
+ private httpClient;
238
+ private wsClient;
239
+ private wsConnected;
240
+ private wsInitializing;
241
+ private isDisposing;
242
+ private authToken;
243
+ private endpoint;
244
+ private wsEndpoint;
245
+ private config;
246
+ constructor(config: SDKConfig);
247
+ /**
248
+ * Execute a GraphQL query or mutation
249
+ * Uses WebSocket if available, falls back to HTTP
250
+ */
251
+ request<T = unknown, V extends Variables = Variables>(document: RequestDocument, variables?: V): Promise<T>;
252
+ /**
253
+ * Execute request via WebSocket
254
+ * @private
255
+ */
256
+ private requestViaWebSocket;
257
+ /**
258
+ * Handle GraphQL errors
259
+ */
260
+ private handleError;
261
+ /**
262
+ * Get WebSocket implementation for current environment
263
+ */
264
+ private getWebSocketImpl;
265
+ /**
266
+ * Initialize WebSocket client
267
+ * Connects immediately and tracks connection state
268
+ */
269
+ private initializeWebSocket;
270
+ /**
271
+ * Subscribe to a GraphQL subscription
272
+ */
273
+ subscribe<T = unknown>(document: RequestDocument, variables?: Variables): AsyncIterableIterator<T>;
274
+ /**
275
+ * Set authentication token
276
+ * Updates both HTTP and WebSocket connections
277
+ */
278
+ setAuthToken(token: string): void;
279
+ /**
280
+ * Clear authentication token
281
+ * Updates both HTTP and WebSocket connections
282
+ */
283
+ clearAuthToken(): void;
284
+ /**
285
+ * Dispose of the client and close all connections
286
+ */
287
+ dispose(): void;
288
+ }
289
+ /**
290
+ * Asset operations
291
+ */
292
+ declare class AssetOperations {
293
+ private client;
294
+ constructor(client: BaseGraphQLClient);
295
+ /**
296
+ * asset query
297
+ */
298
+ asset(variables: Types.AssetQueryVariables): Promise<Types.AssetQuery>;
299
+ /**
300
+ * assets query
301
+ */
302
+ assets(variables: Types.AssetsQueryVariables): Promise<Types.AssetsQuery>;
303
+ }
304
+ /**
305
+ * Auth operations
306
+ */
307
+ declare class AuthOperations {
308
+ private client;
309
+ constructor(client: BaseGraphQLClient);
310
+ /**
311
+ * me query
312
+ */
313
+ me(): Promise<Types.MeQuery>;
314
+ /**
315
+ * authenticate mutation
316
+ */
317
+ authenticate(variables: Types.AuthenticateMutationVariables): Promise<Types.AuthenticateMutation>;
318
+ /**
319
+ * generateOtp mutation
320
+ */
321
+ generateOtp(variables: Types.GenerateOtpMutationVariables): Promise<Types.GenerateOtpMutation>;
322
+ /**
323
+ * verifyOtp mutation
324
+ */
325
+ verifyOtp(variables: Types.VerifyOtpMutationVariables): Promise<Types.VerifyOtpMutation>;
326
+ /**
327
+ * registerCustomerAccount mutation
328
+ */
329
+ registerCustomerAccount(variables: Types.RegisterCustomerAccountMutationVariables): Promise<Types.RegisterCustomerAccountMutation>;
330
+ /**
331
+ * verifyCustomerAccount mutation
332
+ */
333
+ verifyCustomerAccount(variables: Types.VerifyCustomerAccountMutationVariables): Promise<Types.VerifyCustomerAccountMutation>;
334
+ /**
335
+ * refreshCustomerVerification mutation
336
+ */
337
+ refreshCustomerVerification(variables: Types.RefreshCustomerVerificationMutationVariables): Promise<Types.RefreshCustomerVerificationMutation>;
338
+ /**
339
+ * updateCustomer mutation
340
+ */
341
+ updateCustomer(variables: Types.UpdateCustomerMutationVariables): Promise<Types.UpdateCustomerMutation>;
342
+ /**
343
+ * updateCustomerPassword mutation
344
+ */
345
+ updateCustomerPassword(variables: Types.UpdateCustomerPasswordMutationVariables): Promise<Types.UpdateCustomerPasswordMutation>;
346
+ /**
347
+ * updateCustomerEmailAddress mutation
348
+ */
349
+ updateCustomerEmailAddress(variables: Types.UpdateCustomerEmailAddressMutationVariables): Promise<Types.UpdateCustomerEmailAddressMutation>;
350
+ /**
351
+ * requestUpdateCustomerEmailAddress mutation
352
+ */
353
+ requestUpdateCustomerEmailAddress(variables: Types.RequestUpdateCustomerEmailAddressMutationVariables): Promise<Types.RequestUpdateCustomerEmailAddressMutation>;
354
+ /**
355
+ * requestPasswordReset mutation
356
+ */
357
+ requestPasswordReset(variables: Types.RequestPasswordResetMutationVariables): Promise<Types.RequestPasswordResetMutation>;
358
+ }
359
+ /**
360
+ * Blog operations
361
+ */
362
+ declare class BlogOperations {
363
+ private client;
364
+ constructor(client: BaseGraphQLClient);
365
+ /**
366
+ * blogPost query
367
+ */
368
+ blogPost(variables: Types.BlogPostQueryVariables): Promise<Types.BlogPostQuery>;
369
+ /**
370
+ * blogPosts query
371
+ */
372
+ blogPosts(variables: Types.BlogPostsQueryVariables): Promise<Types.BlogPostsQuery>;
373
+ /**
374
+ * blogPostsByFacets query
375
+ */
376
+ blogPostsByFacets(variables: Types.BlogPostsByFacetsQueryVariables): Promise<Types.BlogPostsByFacetsQuery>;
377
+ }
378
+ /**
379
+ * Channel operations
380
+ */
381
+ declare class ChannelOperations {
382
+ private client;
383
+ constructor(client: BaseGraphQLClient);
384
+ /**
385
+ * activeChannel query
386
+ */
387
+ activeChannel(): Promise<Types.ActiveChannelQuery>;
388
+ }
389
+ /**
390
+ * Collection operations
391
+ */
392
+ declare class CollectionOperations {
393
+ private client;
394
+ constructor(client: BaseGraphQLClient);
395
+ /**
396
+ * collection query
397
+ */
398
+ collection(variables: Types.CollectionQueryVariables): Promise<Types.CollectionQuery>;
399
+ /**
400
+ * collections query
401
+ */
402
+ collections(variables: Types.CollectionsQueryVariables): Promise<Types.CollectionsQuery>;
403
+ }
404
+ /**
405
+ * Country operations
406
+ */
407
+ declare class CountryOperations {
408
+ private client;
409
+ constructor(client: BaseGraphQLClient);
410
+ /**
411
+ * availableCountries query
412
+ */
413
+ availableCountries(): Promise<Types.AvailableCountriesQuery>;
414
+ }
415
+ /**
416
+ * CustomFields operations
417
+ */
418
+ declare class CustomFieldsOperations {
419
+ private client;
420
+ constructor(client: BaseGraphQLClient);
421
+ /**
422
+ * getAllFields query
423
+ */
424
+ getAllFields(variables: Types.GetAllFieldsQueryVariables): Promise<Types.GetAllFieldsQuery>;
425
+ /**
426
+ * getAllValues query
427
+ */
428
+ getAllValues(variables: Types.GetAllValuesQueryVariables): Promise<Types.GetAllValuesQuery>;
429
+ /**
430
+ * getBooleanValue query
431
+ */
432
+ getBooleanValue(variables: Types.GetBooleanValueQueryVariables): Promise<Types.GetBooleanValueQuery>;
433
+ /**
434
+ * getDateValue query
435
+ */
436
+ getDateValue(variables: Types.GetDateValueQueryVariables): Promise<Types.GetDateValueQuery>;
437
+ /**
438
+ * getFloatValue query
439
+ */
440
+ getFloatValue(variables: Types.GetFloatValueQueryVariables): Promise<Types.GetFloatValueQuery>;
441
+ /**
442
+ * getGroupFieldDefinitionById query
443
+ */
444
+ getGroupFieldDefinitionById(variables: Types.GetGroupFieldDefinitionByIdQueryVariables): Promise<Types.GetGroupFieldDefinitionByIdQuery>;
445
+ /**
446
+ * getGroupValue query
447
+ */
448
+ getGroupValue(variables: Types.GetGroupValueQueryVariables): Promise<Types.GetGroupValueQuery>;
449
+ /**
450
+ * getIntegerValue query
451
+ */
452
+ getIntegerValue(variables: Types.GetIntegerValueQueryVariables): Promise<Types.GetIntegerValueQuery>;
453
+ /**
454
+ * getRelationValue query
455
+ */
456
+ getRelationValue(variables: Types.GetRelationValueQueryVariables): Promise<Types.GetRelationValueQuery>;
457
+ /**
458
+ * getRichTextValue query
459
+ */
460
+ getRichTextValue(variables: Types.GetRichTextValueQueryVariables): Promise<Types.GetRichTextValueQuery>;
461
+ /**
462
+ * getStringValue query
463
+ */
464
+ getStringValue(variables: Types.GetStringValueQueryVariables): Promise<Types.GetStringValueQuery>;
465
+ /**
466
+ * getTemplatesByEntityId query
467
+ */
468
+ getTemplatesByEntityId(variables: Types.GetTemplatesByEntityIdQueryVariables): Promise<Types.GetTemplatesByEntityIdQuery>;
469
+ /**
470
+ * getUniqueTemplates query
471
+ */
472
+ getUniqueTemplates(variables: Types.GetUniqueTemplatesQueryVariables): Promise<Types.GetUniqueTemplatesQuery>;
473
+ }
474
+ /**
475
+ * Customer operations
476
+ */
477
+ declare class CustomerOperations {
478
+ private client;
479
+ constructor(client: BaseGraphQLClient);
480
+ /**
481
+ * createCustomerAddress mutation
482
+ */
483
+ createCustomerAddress(variables: Types.CreateCustomerAddressMutationVariables): Promise<Types.CreateCustomerAddressMutation>;
484
+ /**
485
+ * updateCustomerAddress mutation
486
+ */
487
+ updateCustomerAddress(variables: Types.UpdateCustomerAddressMutationVariables): Promise<Types.UpdateCustomerAddressMutation>;
488
+ /**
489
+ * deleteCustomerAddress mutation
490
+ */
491
+ deleteCustomerAddress(variables: Types.DeleteCustomerAddressMutationVariables): Promise<Types.DeleteCustomerAddressMutation>;
492
+ }
493
+ /**
494
+ * Facet operations
495
+ */
496
+ declare class FacetOperations {
497
+ private client;
498
+ constructor(client: BaseGraphQLClient);
499
+ /**
500
+ * facet query
501
+ */
502
+ facet(variables: Types.FacetQueryVariables): Promise<Types.FacetQuery>;
503
+ /**
504
+ * facets query
505
+ */
506
+ facets(variables: Types.FacetsQueryVariables): Promise<Types.FacetsQuery>;
507
+ }
508
+ /**
509
+ * Onboarding operations
510
+ */
511
+ declare class OnboardingOperations {
512
+ private client;
513
+ constructor(client: BaseGraphQLClient);
514
+ /**
515
+ * getOnboarding query
516
+ */
517
+ getOnboarding(variables: Types.GetOnboardingQueryVariables): Promise<Types.GetOnboardingQuery>;
518
+ /**
519
+ * createOnboarding mutation
520
+ */
521
+ createOnboarding(variables: Types.CreateOnboardingMutationVariables): Promise<Types.CreateOnboardingMutation>;
522
+ /**
523
+ * updateOnboarding mutation
524
+ */
525
+ updateOnboarding(variables: Types.UpdateOnboardingMutationVariables): Promise<Types.UpdateOnboardingMutation>;
526
+ }
527
+ /**
528
+ * Order operations
529
+ */
530
+ declare class OrderOperations {
531
+ private client;
532
+ constructor(client: BaseGraphQLClient);
533
+ /**
534
+ * activeOrder query
535
+ */
536
+ activeOrder(): Promise<Types.ActiveOrderQuery>;
537
+ /**
538
+ * order query
539
+ */
540
+ order(variables: Types.OrderQueryVariables): Promise<Types.OrderQuery>;
541
+ /**
542
+ * orderByCode query
543
+ */
544
+ orderByCode(variables: Types.OrderByCodeQueryVariables): Promise<Types.OrderByCodeQuery>;
545
+ /**
546
+ * nextOrderStates query
547
+ */
548
+ nextOrderStates(): Promise<Types.NextOrderStatesQuery>;
549
+ /**
550
+ * addItemToOrder mutation
551
+ */
552
+ addItemToOrder(variables: Types.AddItemToOrderMutationVariables): Promise<Types.AddItemToOrderMutation>;
553
+ /**
554
+ * adjustOrderLine mutation
555
+ */
556
+ adjustOrderLine(variables: Types.AdjustOrderLineMutationVariables): Promise<Types.AdjustOrderLineMutation>;
557
+ /**
558
+ * removeOrderLine mutation
559
+ */
560
+ removeOrderLine(variables: Types.RemoveOrderLineMutationVariables): Promise<Types.RemoveOrderLineMutation>;
561
+ /**
562
+ * removeAllOrderLines mutation
563
+ */
564
+ removeAllOrderLines(): Promise<Types.RemoveAllOrderLinesMutation>;
565
+ /**
566
+ * applyCouponCode mutation
567
+ */
568
+ applyCouponCode(variables: Types.ApplyCouponCodeMutationVariables): Promise<Types.ApplyCouponCodeMutation>;
569
+ /**
570
+ * removeCouponCode mutation
571
+ */
572
+ removeCouponCode(variables: Types.RemoveCouponCodeMutationVariables): Promise<Types.RemoveCouponCodeMutation>;
573
+ /**
574
+ * setOrderShippingAddress mutation
575
+ */
576
+ setOrderShippingAddress(variables: Types.SetOrderShippingAddressMutationVariables): Promise<Types.SetOrderShippingAddressMutation>;
577
+ /**
578
+ * unsetOrderShippingAddress mutation
579
+ */
580
+ unsetOrderShippingAddress(): Promise<Types.UnsetOrderShippingAddressMutation>;
581
+ /**
582
+ * setOrderBillingAddress mutation
583
+ */
584
+ setOrderBillingAddress(variables: Types.SetOrderBillingAddressMutationVariables): Promise<Types.SetOrderBillingAddressMutation>;
585
+ /**
586
+ * unsetOrderBillingAddress mutation
587
+ */
588
+ unsetOrderBillingAddress(): Promise<Types.UnsetOrderBillingAddressMutation>;
589
+ /**
590
+ * eligibleShippingMethods query
591
+ */
592
+ eligibleShippingMethods(): Promise<Types.EligibleShippingMethodsQuery>;
593
+ /**
594
+ * activeShippingMethods query
595
+ */
596
+ activeShippingMethods(): Promise<Types.ActiveShippingMethodsQuery>;
597
+ /**
598
+ * setOrderShippingMethod mutation
599
+ */
600
+ setOrderShippingMethod(variables: Types.SetOrderShippingMethodMutationVariables): Promise<Types.SetOrderShippingMethodMutation>;
601
+ /**
602
+ * eligiblePaymentMethods query
603
+ */
604
+ eligiblePaymentMethods(): Promise<Types.EligiblePaymentMethodsQuery>;
605
+ /**
606
+ * activePaymentMethods query
607
+ */
608
+ activePaymentMethods(): Promise<Types.ActivePaymentMethodsQuery>;
609
+ /**
610
+ * addPaymentToOrder mutation
611
+ */
612
+ addPaymentToOrder(variables: Types.AddPaymentToOrderMutationVariables): Promise<Types.AddPaymentToOrderMutation>;
613
+ /**
614
+ * transitionOrderToState mutation
615
+ */
616
+ transitionOrderToState(variables: Types.TransitionOrderToStateMutationVariables): Promise<Types.TransitionOrderToStateMutation>;
617
+ /**
618
+ * setCustomerForOrder mutation
619
+ */
620
+ setCustomerForOrder(variables: Types.SetCustomerForOrderMutationVariables): Promise<Types.SetCustomerForOrderMutation>;
621
+ /**
622
+ * setOrderCustomFields mutation
623
+ */
624
+ setOrderCustomFields(variables: Types.SetOrderCustomFieldsMutationVariables): Promise<Types.SetOrderCustomFieldsMutation>;
625
+ }
626
+ /**
627
+ * Products operations
628
+ */
629
+ declare class ProductsOperations {
630
+ private client;
631
+ constructor(client: BaseGraphQLClient);
632
+ /**
633
+ * products query
634
+ */
635
+ products(variables: Types.ProductsQueryVariables): Promise<Types.ProductsQuery>;
636
+ /**
637
+ * product query
638
+ */
639
+ product(variables: Types.ProductQueryVariables): Promise<Types.ProductQuery>;
640
+ }
641
+ /**
642
+ * Search operations
643
+ */
644
+ declare class SearchOperations {
645
+ private client;
646
+ constructor(client: BaseGraphQLClient);
647
+ /**
648
+ * search query
649
+ */
650
+ search(variables: Types.SearchQueryVariables): Promise<Types.SearchQuery>;
651
+ }
652
+ /**
653
+ * Shop namespace
654
+ * Contains categorized operations for shop API
655
+ */
656
+ export declare class ShopNamespace {
657
+ private client;
658
+ readonly asset: AssetOperations;
659
+ readonly auth: AuthOperations;
660
+ readonly blog: BlogOperations;
661
+ readonly channel: ChannelOperations;
662
+ readonly collection: CollectionOperations;
663
+ readonly country: CountryOperations;
664
+ readonly customFields: CustomFieldsOperations;
665
+ readonly customer: CustomerOperations;
666
+ readonly facet: FacetOperations;
667
+ readonly onboarding: OnboardingOperations;
668
+ readonly order: OrderOperations;
669
+ readonly products: ProductsOperations;
670
+ readonly search: SearchOperations;
671
+ constructor(config: SDKConfig);
672
+ /**
673
+ * Set authentication token
674
+ * Updates the client with the new token
675
+ */
676
+ setAuthToken(token: string): void;
677
+ /**
678
+ * Clear authentication token
679
+ */
680
+ clearAuthToken(): void;
681
+ /**
682
+ * Dispose of the namespace and close all connections
683
+ */
684
+ dispose(): void;
685
+ }
686
+ export {};