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