@ecomiq/core 0.1.1 → 0.1.2

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/dist/index.d.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  import { Api } from './api.js';
2
2
  export { ApiError, CreateApiOptions, DEFAULT_API_BASE_URL, DEFAULT_API_VERSION, createApi, resolveApiBaseUrl } from './api.js';
3
3
  export { CreateClientOptions, StorefrontClient, createClient, createStorefrontClient } from './client.js';
4
- export { CmsBlockDto, CmsBlockDtoSchema, CmsBrandingSettingsDtoSchema, CmsContactSettingsDtoSchema, CmsContentChannelSchema, CmsCustomScriptsDtoSchema, CmsMenuDto, CmsMenuDtoSchema, CmsMenuItem, CmsMenuItemSchema, CmsPageDetailsDto, CmsPageDetailsDtoSchema, CmsPageStatusSchema, CmsSectionDto, CmsSectionDtoSchema, CmsSeoSettingsDtoSchema, CmsSiteSettingsDtoSchema, CmsSnapshotDto, CmsSnapshotDtoSchema, CmsSocialLinksDtoSchema, CmsTrackingSettingsDtoSchema, JsonElement, JsonElementSchema, StoreCheckoutCartPageSettingsSchema, StoreCheckoutGeneralSettingsSchema, StoreCheckoutOrderBumpSettingsSchema, StoreCheckoutOrdersAndPaymentsSettingsSchema, StoreCheckoutSettingsSchema, StoreCheckoutShippingSettingsSchema, StoreFeatureFlagsSchema, StoreModel, StoreModelSchema, StoreSettingsSnapshotDto, StoreSettingsSnapshotDtoSchema, StoreThemeSettingsSchema, StoreTypeSchema, StoreVisibilitySchema, StorefrontCheckoutSettingsSchema, StorefrontCmsBrandingSchema, StorefrontCmsContactSchema, StorefrontCmsCustomScriptsSchema, StorefrontCmsPageSchema, StorefrontCmsSeoSchema, StorefrontCmsSettingsSchema, StorefrontCmsSocialLinksSchema, StorefrontCmsTrackingSchema, StorefrontFeaturesEnabledSchema, StorefrontMenu, StorefrontMenuItem, StorefrontMenuItemSchema, StorefrontMenuSchema, StorefrontSettings, StorefrontSettingsSchema, StorefrontStoreSchema, StorefrontStoreTypeSchema, StorefrontThemeConfigSchema, getMenuItems } from './models/settings.js';
4
+ import { CmsPageDetailsDto } from './models/settings.js';
5
+ export { CmsBlockDto, CmsBlockDtoSchema, CmsBrandingSettingsDtoSchema, CmsContactSettingsDtoSchema, CmsContentChannelSchema, CmsCustomScriptsDtoSchema, CmsMenuDto, CmsMenuDtoSchema, CmsMenuItem, CmsMenuItemSchema, CmsPageDetailsDtoSchema, CmsPageStatusSchema, CmsSectionDto, CmsSectionDtoSchema, CmsSeoSettingsDtoSchema, CmsSiteSettingsDtoSchema, CmsSnapshotDto, CmsSnapshotDtoSchema, CmsSocialLinksDtoSchema, CmsTrackingSettingsDtoSchema, JsonElement, JsonElementSchema, StoreCheckoutCartPageSettingsSchema, StoreCheckoutGeneralSettingsSchema, StoreCheckoutOrderBumpSettingsSchema, StoreCheckoutOrdersAndPaymentsSettingsSchema, StoreCheckoutSettingsSchema, StoreCheckoutShippingSettingsSchema, StoreFeatureFlagsSchema, StoreModel, StoreModelSchema, StoreSettingsSnapshotDto, StoreSettingsSnapshotDtoSchema, StoreThemeSettingsSchema, StoreTypeSchema, StoreVisibilitySchema, StorefrontCheckoutSettingsSchema, StorefrontCmsBrandingSchema, StorefrontCmsContactSchema, StorefrontCmsCustomScriptsSchema, StorefrontCmsPageSchema, StorefrontCmsSeoSchema, StorefrontCmsSettingsSchema, StorefrontCmsSocialLinksSchema, StorefrontCmsTrackingSchema, StorefrontFeaturesEnabledSchema, StorefrontMenu, StorefrontMenuItem, StorefrontMenuItemSchema, StorefrontMenuSchema, StorefrontSettings, StorefrontSettingsSchema, StorefrontStoreSchema, StorefrontStoreTypeSchema, StorefrontThemeConfigSchema, getMenuItems } from './models/settings.js';
5
6
  export { Collection, CollectionSchema, Collections, CollectionsSchema } from './models/collections.js';
6
7
  import { ProductDetailParams, ProductsParamsInput, RelatedProductsParams } from './models/products.js';
7
8
  export { BundleItem, BundleItemSchema, Facet, FacetItem, FacetItemSchema, FacetSchema, PriceTier, PriceTierSchema, Product, ProductDetail, ProductDetailParamsSchema, ProductDetailSchema, ProductImage, ProductImageSchema, ProductPriceTier, ProductPriceTierSchema, ProductPublicIdSchema, ProductSchema, ProductSort, ProductSortSchema, ProductSummariesSchema, ProductSummary, ProductSummarySchema, ProductsParams, ProductsParamsSchema, ProductsResponse, ProductsResponseSchema, RelatedProductsParamsSchema, SearchFilter, SearchFilterSchema, SizeGuide, SizeGuideMeasurement, SizeGuideMeasurementSchema, SizeGuideRow, SizeGuideRowSchema, SizeGuideSchema, SpecItem, SpecItemSchema, Variant, VariantItem, VariantItemSchema, VariantOption, VariantOptionSchema, VariantSchema } from './models/products.js';
@@ -24,9 +25,9 @@ declare function getProducts(api: Api, params?: ProductsParamsInput): Promise<{
24
25
  totalPages: number;
25
26
  products: {
26
27
  status: string;
27
- name: string;
28
28
  id: string;
29
29
  slug: string;
30
+ name: string;
30
31
  imageUrl: string;
31
32
  productType: string;
32
33
  price: number;
@@ -41,27 +42,27 @@ declare function getProducts(api: Api, params?: ProductsParamsInput): Promise<{
41
42
  tags: string[];
42
43
  }[];
43
44
  filters: {
45
+ type: "list" | "price_range";
44
46
  values: {
45
47
  value: string;
46
- label: string | null;
47
48
  count: number;
49
+ label: string | null;
48
50
  selected: boolean;
49
51
  }[];
50
- type: "list" | "price_range";
51
- min: number | null;
52
- max: number | null;
53
52
  id: string;
54
53
  label: string;
54
+ min: number | null;
55
+ max: number | null;
55
56
  selectedMin: number | null;
56
57
  selectedMax: number | null;
57
58
  }[];
58
59
  }>;
59
60
  declare function getProductBySlug(api: Api, slug: string, params?: ProductDetailParams): Promise<{
60
61
  status: string;
61
- name: string;
62
62
  id: string;
63
- description: string;
64
63
  slug: string;
64
+ name: string;
65
+ description: string;
65
66
  imageUrl: string;
66
67
  productType: string;
67
68
  price: number;
@@ -78,17 +79,17 @@ declare function getProductBySlug(api: Api, slug: string, params?: ProductDetail
78
79
  }[];
79
80
  categoryId: string | null;
80
81
  specifications: {
82
+ key: string;
81
83
  value: string;
82
84
  name: string;
83
- key: string;
84
85
  }[];
85
86
  variants: {
86
- status: string;
87
87
  options: {
88
+ key: string;
88
89
  value: string;
89
90
  name: string;
90
- key: string;
91
91
  }[];
92
+ status: string;
92
93
  id: string | null;
93
94
  price: number;
94
95
  compareAtPrice: number | null;
@@ -114,10 +115,10 @@ declare function getProductBySlug(api: Api, slug: string, params?: ProductDetail
114
115
  requiresShipping: boolean;
115
116
  }[];
116
117
  sizeGuide: {
117
- name: string;
118
118
  id: string;
119
- description: string | null;
120
119
  slug: string;
120
+ name: string;
121
+ description: string | null;
121
122
  imageUrl: string | null;
122
123
  gender: string;
123
124
  measurementType: string;
@@ -128,12 +129,12 @@ declare function getProductBySlug(api: Api, slug: string, params?: ProductDetail
128
129
  order: number;
129
130
  sizeKey: string;
130
131
  measurements: {
132
+ key: string;
131
133
  value: number | null;
132
134
  name: string;
135
+ description: string | null;
133
136
  min: number | null;
134
137
  max: number | null;
135
- description: string | null;
136
- key: string;
137
138
  }[];
138
139
  }[];
139
140
  } | null;
@@ -148,9 +149,9 @@ declare function getProductBySlug(api: Api, slug: string, params?: ProductDetail
148
149
  }>;
149
150
  declare function getRelatedProducts(api: Api, params: RelatedProductsParams): Promise<{
150
151
  status: string;
151
- name: string;
152
152
  id: string;
153
153
  slug: string;
154
+ name: string;
154
155
  imageUrl: string;
155
156
  productType: string;
156
157
  price: number;
@@ -166,9 +167,9 @@ declare function getRelatedProducts(api: Api, params: RelatedProductsParams): Pr
166
167
  }[]>;
167
168
 
168
169
  declare function autocompleteProducts(api: Api, params: ProductAutocompleteParams): Promise<{
169
- name: string;
170
170
  id: string;
171
171
  slug: string;
172
+ name: string;
172
173
  imageUrl: string;
173
174
  }[]>;
174
175
 
@@ -176,95 +177,95 @@ declare function listProductReviews(api: Api, params: ListProductReviewsParams):
176
177
  totalCount: number | null;
177
178
  data: {
178
179
  id: string;
179
- createdOn: string;
180
180
  productId: string;
181
181
  isVerifiedPurchase: boolean;
182
182
  rating: number;
183
183
  title: string | null;
184
184
  content: string;
185
185
  reviewerName: string | null;
186
+ createdOn: string;
186
187
  }[];
187
188
  hasNextPage: boolean;
188
189
  nextCursor: string | null;
189
190
  }>;
190
191
  declare function createProductReview(api: Api, params: CreateProductReviewParams): Promise<{
191
192
  id: string;
192
- createdOn: string;
193
193
  productId: string;
194
194
  isVerifiedPurchase: boolean;
195
195
  rating: number;
196
196
  title: string | null;
197
197
  content: string;
198
198
  reviewerName: string | null;
199
+ createdOn: string;
199
200
  }>;
200
201
 
201
202
  declare function createCart(api: Api, params: CreateCartParams): Promise<{
202
203
  status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
203
- email: string | null;
204
204
  id: string;
205
205
  phone: string | null;
206
- items: {
207
- id: string;
208
- productId: number;
209
- quantity: number;
210
- variantId: number;
211
- unitPrice: number;
212
- bundleItems: {
213
- imageUrl: string | null;
214
- brand: string | null;
215
- productId: number;
216
- sku: string | null;
217
- quantity: number;
218
- variantId: number;
219
- productName: string;
220
- variantName: string | null;
221
- }[];
222
- title: string;
223
- variantLabel: string | null;
224
- productHandle: string | null;
225
- thumbnail: string | null;
226
- variantSku: string | null;
227
- compareAtUnitPrice: number | null;
228
- }[];
229
206
  cartNumber: string;
207
+ email: string | null;
230
208
  firstName: string | null;
231
209
  lastName: string | null;
232
210
  currencyCode: string;
233
211
  completedAt: string | null;
234
212
  shippingAddress: {
235
213
  name: string | null;
236
- company: string | null;
237
- phone: string | null;
238
214
  address1: string;
239
215
  city: string;
240
216
  countryCode: string;
217
+ company: string | null;
241
218
  address2: string | null;
242
219
  province: string | null;
243
220
  postalCode: string | null;
244
221
  district: string | null;
222
+ phone: string | null;
245
223
  latitude: number | null;
246
224
  longitude: number | null;
247
225
  } | null;
248
226
  billingAddress: {
249
227
  name: string | null;
250
- company: string | null;
251
- phone: string | null;
252
228
  address1: string;
253
229
  city: string;
254
230
  countryCode: string;
231
+ company: string | null;
255
232
  address2: string | null;
256
233
  province: string | null;
257
234
  postalCode: string | null;
258
235
  district: string | null;
236
+ phone: string | null;
259
237
  latitude: number | null;
260
238
  longitude: number | null;
261
239
  } | null;
262
240
  promotionCodes: string[];
241
+ items: {
242
+ id: string;
243
+ productId: number;
244
+ quantity: number;
245
+ variantId: number;
246
+ unitPrice: number;
247
+ bundleItems: {
248
+ imageUrl: string | null;
249
+ brand: string | null;
250
+ productId: number;
251
+ sku: string | null;
252
+ quantity: number;
253
+ variantId: number;
254
+ productName: string;
255
+ variantName: string | null;
256
+ }[];
257
+ title: string;
258
+ variantLabel: string | null;
259
+ productHandle: string | null;
260
+ thumbnail: string | null;
261
+ variantSku: string | null;
262
+ compareAtUnitPrice: number | null;
263
+ }[];
263
264
  shippingMethods: {
264
- name: string;
265
265
  id: string;
266
- sellerId: string | null;
266
+ name: string;
267
267
  description: string | null;
268
+ sellerId: string | null;
268
269
  locationId: string | null;
269
270
  shippingMethodId: string | null;
270
271
  rateId: string | null;
@@ -288,71 +289,71 @@ declare function createCart(api: Api, params: CreateCartParams): Promise<{
288
289
  }>;
289
290
  declare function getCart(api: Api, params: GetCartParams): Promise<{
290
291
  status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
291
- email: string | null;
292
292
  id: string;
293
293
  phone: string | null;
294
- items: {
295
- id: string;
296
- productId: number;
297
- quantity: number;
298
- variantId: number;
299
- unitPrice: number;
300
- bundleItems: {
301
- imageUrl: string | null;
302
- brand: string | null;
303
- productId: number;
304
- sku: string | null;
305
- quantity: number;
306
- variantId: number;
307
- productName: string;
308
- variantName: string | null;
309
- }[];
310
- title: string;
311
- variantLabel: string | null;
312
- productHandle: string | null;
313
- thumbnail: string | null;
314
- variantSku: string | null;
315
- compareAtUnitPrice: number | null;
316
- }[];
317
294
  cartNumber: string;
295
+ email: string | null;
318
296
  firstName: string | null;
319
297
  lastName: string | null;
320
298
  currencyCode: string;
321
299
  completedAt: string | null;
322
300
  shippingAddress: {
323
301
  name: string | null;
324
- company: string | null;
325
- phone: string | null;
326
302
  address1: string;
327
303
  city: string;
328
304
  countryCode: string;
305
+ company: string | null;
329
306
  address2: string | null;
330
307
  province: string | null;
331
308
  postalCode: string | null;
332
309
  district: string | null;
310
+ phone: string | null;
333
311
  latitude: number | null;
334
312
  longitude: number | null;
335
313
  } | null;
336
314
  billingAddress: {
337
315
  name: string | null;
338
- company: string | null;
339
- phone: string | null;
340
316
  address1: string;
341
317
  city: string;
342
318
  countryCode: string;
319
+ company: string | null;
343
320
  address2: string | null;
344
321
  province: string | null;
345
322
  postalCode: string | null;
346
323
  district: string | null;
324
+ phone: string | null;
347
325
  latitude: number | null;
348
326
  longitude: number | null;
349
327
  } | null;
350
328
  promotionCodes: string[];
329
+ items: {
330
+ id: string;
331
+ productId: number;
332
+ quantity: number;
333
+ variantId: number;
334
+ unitPrice: number;
335
+ bundleItems: {
336
+ imageUrl: string | null;
337
+ brand: string | null;
338
+ productId: number;
339
+ sku: string | null;
340
+ quantity: number;
341
+ variantId: number;
342
+ productName: string;
343
+ variantName: string | null;
344
+ }[];
345
+ title: string;
346
+ variantLabel: string | null;
347
+ productHandle: string | null;
348
+ thumbnail: string | null;
349
+ variantSku: string | null;
350
+ compareAtUnitPrice: number | null;
351
+ }[];
351
352
  shippingMethods: {
352
- name: string;
353
353
  id: string;
354
- sellerId: string | null;
354
+ name: string;
355
355
  description: string | null;
356
+ sellerId: string | null;
356
357
  locationId: string | null;
357
358
  shippingMethodId: string | null;
358
359
  rateId: string | null;
@@ -376,71 +377,71 @@ declare function getCart(api: Api, params: GetCartParams): Promise<{
376
377
  }>;
377
378
  declare function addCartItem(api: Api, params: AddCartItemParams): Promise<{
378
379
  status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
379
- email: string | null;
380
380
  id: string;
381
381
  phone: string | null;
382
- items: {
383
- id: string;
384
- productId: number;
385
- quantity: number;
386
- variantId: number;
387
- unitPrice: number;
388
- bundleItems: {
389
- imageUrl: string | null;
390
- brand: string | null;
391
- productId: number;
392
- sku: string | null;
393
- quantity: number;
394
- variantId: number;
395
- productName: string;
396
- variantName: string | null;
397
- }[];
398
- title: string;
399
- variantLabel: string | null;
400
- productHandle: string | null;
401
- thumbnail: string | null;
402
- variantSku: string | null;
403
- compareAtUnitPrice: number | null;
404
- }[];
405
382
  cartNumber: string;
383
+ email: string | null;
406
384
  firstName: string | null;
407
385
  lastName: string | null;
408
386
  currencyCode: string;
409
387
  completedAt: string | null;
410
388
  shippingAddress: {
411
389
  name: string | null;
412
- company: string | null;
413
- phone: string | null;
414
390
  address1: string;
415
391
  city: string;
416
392
  countryCode: string;
393
+ company: string | null;
417
394
  address2: string | null;
418
395
  province: string | null;
419
396
  postalCode: string | null;
420
397
  district: string | null;
398
+ phone: string | null;
421
399
  latitude: number | null;
422
400
  longitude: number | null;
423
401
  } | null;
424
402
  billingAddress: {
425
403
  name: string | null;
426
- company: string | null;
427
- phone: string | null;
428
404
  address1: string;
429
405
  city: string;
430
406
  countryCode: string;
407
+ company: string | null;
431
408
  address2: string | null;
432
409
  province: string | null;
433
410
  postalCode: string | null;
434
411
  district: string | null;
412
+ phone: string | null;
435
413
  latitude: number | null;
436
414
  longitude: number | null;
437
415
  } | null;
438
416
  promotionCodes: string[];
417
+ items: {
418
+ id: string;
419
+ productId: number;
420
+ quantity: number;
421
+ variantId: number;
422
+ unitPrice: number;
423
+ bundleItems: {
424
+ imageUrl: string | null;
425
+ brand: string | null;
426
+ productId: number;
427
+ sku: string | null;
428
+ quantity: number;
429
+ variantId: number;
430
+ productName: string;
431
+ variantName: string | null;
432
+ }[];
433
+ title: string;
434
+ variantLabel: string | null;
435
+ productHandle: string | null;
436
+ thumbnail: string | null;
437
+ variantSku: string | null;
438
+ compareAtUnitPrice: number | null;
439
+ }[];
439
440
  shippingMethods: {
440
- name: string;
441
441
  id: string;
442
- sellerId: string | null;
442
+ name: string;
443
443
  description: string | null;
444
+ sellerId: string | null;
444
445
  locationId: string | null;
445
446
  shippingMethodId: string | null;
446
447
  rateId: string | null;
@@ -464,73 +465,73 @@ declare function addCartItem(api: Api, params: AddCartItemParams): Promise<{
464
465
  }>;
465
466
  declare function updateCartItemQuantity(api: Api, params: UpdateCartItemQuantityParams): Promise<{
466
467
  status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
467
- email: string | null;
468
468
  id: string;
469
469
  phone: string | null;
470
- items: {
471
- id: string;
472
- productId: number;
473
- quantity: number;
474
- variantId: number;
475
- unitPrice: number;
476
- bundleItems: {
477
- imageUrl: string | null;
478
- brand: string | null;
479
- productId: number;
480
- sku: string | null;
481
- quantity: number;
482
- variantId: number;
483
- productName: string;
484
- variantName: string | null;
485
- }[];
486
- title: string;
487
- variantLabel: string | null;
488
- productHandle: string | null;
489
- thumbnail: string | null;
490
- variantSku: string | null;
491
- compareAtUnitPrice: number | null;
492
- }[];
493
470
  cartNumber: string;
471
+ email: string | null;
494
472
  firstName: string | null;
495
473
  lastName: string | null;
496
474
  currencyCode: string;
497
475
  completedAt: string | null;
498
476
  shippingAddress: {
499
477
  name: string | null;
500
- company: string | null;
501
- phone: string | null;
502
478
  address1: string;
503
479
  city: string;
504
480
  countryCode: string;
481
+ company: string | null;
505
482
  address2: string | null;
506
483
  province: string | null;
507
484
  postalCode: string | null;
508
485
  district: string | null;
486
+ phone: string | null;
509
487
  latitude: number | null;
510
488
  longitude: number | null;
511
489
  } | null;
512
490
  billingAddress: {
513
491
  name: string | null;
514
- company: string | null;
515
- phone: string | null;
516
492
  address1: string;
517
493
  city: string;
518
494
  countryCode: string;
495
+ company: string | null;
519
496
  address2: string | null;
520
497
  province: string | null;
521
498
  postalCode: string | null;
522
499
  district: string | null;
500
+ phone: string | null;
523
501
  latitude: number | null;
524
502
  longitude: number | null;
525
503
  } | null;
526
504
  promotionCodes: string[];
527
- shippingMethods: {
528
- name: string;
505
+ items: {
529
506
  id: string;
530
- sellerId: string | null;
531
- description: string | null;
532
- locationId: string | null;
533
- shippingMethodId: string | null;
507
+ productId: number;
508
+ quantity: number;
509
+ variantId: number;
510
+ unitPrice: number;
511
+ bundleItems: {
512
+ imageUrl: string | null;
513
+ brand: string | null;
514
+ productId: number;
515
+ sku: string | null;
516
+ quantity: number;
517
+ variantId: number;
518
+ productName: string;
519
+ variantName: string | null;
520
+ }[];
521
+ title: string;
522
+ variantLabel: string | null;
523
+ productHandle: string | null;
524
+ thumbnail: string | null;
525
+ variantSku: string | null;
526
+ compareAtUnitPrice: number | null;
527
+ }[];
528
+ shippingMethods: {
529
+ id: string;
530
+ name: string;
531
+ description: string | null;
532
+ sellerId: string | null;
533
+ locationId: string | null;
534
+ shippingMethodId: string | null;
534
535
  rateId: string | null;
535
536
  total: number;
536
537
  estimatedDays: number | null;
@@ -552,71 +553,71 @@ declare function updateCartItemQuantity(api: Api, params: UpdateCartItemQuantity
552
553
  }>;
553
554
  declare function removeCartItem(api: Api, params: RemoveCartItemParams): Promise<{
554
555
  status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
555
- email: string | null;
556
556
  id: string;
557
557
  phone: string | null;
558
- items: {
559
- id: string;
560
- productId: number;
561
- quantity: number;
562
- variantId: number;
563
- unitPrice: number;
564
- bundleItems: {
565
- imageUrl: string | null;
566
- brand: string | null;
567
- productId: number;
568
- sku: string | null;
569
- quantity: number;
570
- variantId: number;
571
- productName: string;
572
- variantName: string | null;
573
- }[];
574
- title: string;
575
- variantLabel: string | null;
576
- productHandle: string | null;
577
- thumbnail: string | null;
578
- variantSku: string | null;
579
- compareAtUnitPrice: number | null;
580
- }[];
581
558
  cartNumber: string;
559
+ email: string | null;
582
560
  firstName: string | null;
583
561
  lastName: string | null;
584
562
  currencyCode: string;
585
563
  completedAt: string | null;
586
564
  shippingAddress: {
587
565
  name: string | null;
588
- company: string | null;
589
- phone: string | null;
590
566
  address1: string;
591
567
  city: string;
592
568
  countryCode: string;
569
+ company: string | null;
593
570
  address2: string | null;
594
571
  province: string | null;
595
572
  postalCode: string | null;
596
573
  district: string | null;
574
+ phone: string | null;
597
575
  latitude: number | null;
598
576
  longitude: number | null;
599
577
  } | null;
600
578
  billingAddress: {
601
579
  name: string | null;
602
- company: string | null;
603
- phone: string | null;
604
580
  address1: string;
605
581
  city: string;
606
582
  countryCode: string;
583
+ company: string | null;
607
584
  address2: string | null;
608
585
  province: string | null;
609
586
  postalCode: string | null;
610
587
  district: string | null;
588
+ phone: string | null;
611
589
  latitude: number | null;
612
590
  longitude: number | null;
613
591
  } | null;
614
592
  promotionCodes: string[];
593
+ items: {
594
+ id: string;
595
+ productId: number;
596
+ quantity: number;
597
+ variantId: number;
598
+ unitPrice: number;
599
+ bundleItems: {
600
+ imageUrl: string | null;
601
+ brand: string | null;
602
+ productId: number;
603
+ sku: string | null;
604
+ quantity: number;
605
+ variantId: number;
606
+ productName: string;
607
+ variantName: string | null;
608
+ }[];
609
+ title: string;
610
+ variantLabel: string | null;
611
+ productHandle: string | null;
612
+ thumbnail: string | null;
613
+ variantSku: string | null;
614
+ compareAtUnitPrice: number | null;
615
+ }[];
615
616
  shippingMethods: {
616
- name: string;
617
617
  id: string;
618
- sellerId: string | null;
618
+ name: string;
619
619
  description: string | null;
620
+ sellerId: string | null;
620
621
  locationId: string | null;
621
622
  shippingMethodId: string | null;
622
623
  rateId: string | null;
@@ -646,71 +647,71 @@ declare function getShippingOptions(api: Api, params: GetShippingOptionsParams):
646
647
  /** PUT /v1/carts/{id}/shipping-method */
647
648
  declare function putCartShippingMethod(api: Api, params: PutShippingMethodParams): Promise<{
648
649
  status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
649
- email: string | null;
650
650
  id: string;
651
651
  phone: string | null;
652
- items: {
653
- id: string;
654
- productId: number;
655
- quantity: number;
656
- variantId: number;
657
- unitPrice: number;
658
- bundleItems: {
659
- imageUrl: string | null;
660
- brand: string | null;
661
- productId: number;
662
- sku: string | null;
663
- quantity: number;
664
- variantId: number;
665
- productName: string;
666
- variantName: string | null;
667
- }[];
668
- title: string;
669
- variantLabel: string | null;
670
- productHandle: string | null;
671
- thumbnail: string | null;
672
- variantSku: string | null;
673
- compareAtUnitPrice: number | null;
674
- }[];
675
652
  cartNumber: string;
653
+ email: string | null;
676
654
  firstName: string | null;
677
655
  lastName: string | null;
678
656
  currencyCode: string;
679
657
  completedAt: string | null;
680
658
  shippingAddress: {
681
659
  name: string | null;
682
- company: string | null;
683
- phone: string | null;
684
660
  address1: string;
685
661
  city: string;
686
662
  countryCode: string;
663
+ company: string | null;
687
664
  address2: string | null;
688
665
  province: string | null;
689
666
  postalCode: string | null;
690
667
  district: string | null;
668
+ phone: string | null;
691
669
  latitude: number | null;
692
670
  longitude: number | null;
693
671
  } | null;
694
672
  billingAddress: {
695
673
  name: string | null;
696
- company: string | null;
697
- phone: string | null;
698
674
  address1: string;
699
675
  city: string;
700
676
  countryCode: string;
677
+ company: string | null;
701
678
  address2: string | null;
702
679
  province: string | null;
703
680
  postalCode: string | null;
704
681
  district: string | null;
682
+ phone: string | null;
705
683
  latitude: number | null;
706
684
  longitude: number | null;
707
685
  } | null;
708
686
  promotionCodes: string[];
687
+ items: {
688
+ id: string;
689
+ productId: number;
690
+ quantity: number;
691
+ variantId: number;
692
+ unitPrice: number;
693
+ bundleItems: {
694
+ imageUrl: string | null;
695
+ brand: string | null;
696
+ productId: number;
697
+ sku: string | null;
698
+ quantity: number;
699
+ variantId: number;
700
+ productName: string;
701
+ variantName: string | null;
702
+ }[];
703
+ title: string;
704
+ variantLabel: string | null;
705
+ productHandle: string | null;
706
+ thumbnail: string | null;
707
+ variantSku: string | null;
708
+ compareAtUnitPrice: number | null;
709
+ }[];
709
710
  shippingMethods: {
710
- name: string;
711
711
  id: string;
712
- sellerId: string | null;
712
+ name: string;
713
713
  description: string | null;
714
+ sellerId: string | null;
714
715
  locationId: string | null;
715
716
  shippingMethodId: string | null;
716
717
  rateId: string | null;
@@ -735,71 +736,71 @@ declare function putCartShippingMethod(api: Api, params: PutShippingMethodParams
735
736
  /** PATCH /v1/carts/{id}/buyer */
736
737
  declare function patchCartBuyer(api: Api, params: CartBuyerParams): Promise<{
737
738
  status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
738
- email: string | null;
739
739
  id: string;
740
740
  phone: string | null;
741
- items: {
742
- id: string;
743
- productId: number;
744
- quantity: number;
745
- variantId: number;
746
- unitPrice: number;
747
- bundleItems: {
748
- imageUrl: string | null;
749
- brand: string | null;
750
- productId: number;
751
- sku: string | null;
752
- quantity: number;
753
- variantId: number;
754
- productName: string;
755
- variantName: string | null;
756
- }[];
757
- title: string;
758
- variantLabel: string | null;
759
- productHandle: string | null;
760
- thumbnail: string | null;
761
- variantSku: string | null;
762
- compareAtUnitPrice: number | null;
763
- }[];
764
741
  cartNumber: string;
742
+ email: string | null;
765
743
  firstName: string | null;
766
744
  lastName: string | null;
767
745
  currencyCode: string;
768
746
  completedAt: string | null;
769
747
  shippingAddress: {
770
748
  name: string | null;
771
- company: string | null;
772
- phone: string | null;
773
749
  address1: string;
774
750
  city: string;
775
751
  countryCode: string;
752
+ company: string | null;
776
753
  address2: string | null;
777
754
  province: string | null;
778
755
  postalCode: string | null;
779
756
  district: string | null;
757
+ phone: string | null;
780
758
  latitude: number | null;
781
759
  longitude: number | null;
782
760
  } | null;
783
761
  billingAddress: {
784
762
  name: string | null;
785
- company: string | null;
786
- phone: string | null;
787
763
  address1: string;
788
764
  city: string;
789
765
  countryCode: string;
766
+ company: string | null;
790
767
  address2: string | null;
791
768
  province: string | null;
792
769
  postalCode: string | null;
793
770
  district: string | null;
771
+ phone: string | null;
794
772
  latitude: number | null;
795
773
  longitude: number | null;
796
774
  } | null;
797
775
  promotionCodes: string[];
776
+ items: {
777
+ id: string;
778
+ productId: number;
779
+ quantity: number;
780
+ variantId: number;
781
+ unitPrice: number;
782
+ bundleItems: {
783
+ imageUrl: string | null;
784
+ brand: string | null;
785
+ productId: number;
786
+ sku: string | null;
787
+ quantity: number;
788
+ variantId: number;
789
+ productName: string;
790
+ variantName: string | null;
791
+ }[];
792
+ title: string;
793
+ variantLabel: string | null;
794
+ productHandle: string | null;
795
+ thumbnail: string | null;
796
+ variantSku: string | null;
797
+ compareAtUnitPrice: number | null;
798
+ }[];
798
799
  shippingMethods: {
799
- name: string;
800
800
  id: string;
801
- sellerId: string | null;
801
+ name: string;
802
802
  description: string | null;
803
+ sellerId: string | null;
803
804
  locationId: string | null;
804
805
  shippingMethodId: string | null;
805
806
  rateId: string | null;
@@ -824,71 +825,71 @@ declare function patchCartBuyer(api: Api, params: CartBuyerParams): Promise<{
824
825
  /** PATCH /v1/carts/{id}/addresses */
825
826
  declare function patchCartAddresses(api: Api, params: CartAddressesParams): Promise<{
826
827
  status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
827
- email: string | null;
828
828
  id: string;
829
829
  phone: string | null;
830
- items: {
831
- id: string;
832
- productId: number;
833
- quantity: number;
834
- variantId: number;
835
- unitPrice: number;
836
- bundleItems: {
837
- imageUrl: string | null;
838
- brand: string | null;
839
- productId: number;
840
- sku: string | null;
841
- quantity: number;
842
- variantId: number;
843
- productName: string;
844
- variantName: string | null;
845
- }[];
846
- title: string;
847
- variantLabel: string | null;
848
- productHandle: string | null;
849
- thumbnail: string | null;
850
- variantSku: string | null;
851
- compareAtUnitPrice: number | null;
852
- }[];
853
830
  cartNumber: string;
831
+ email: string | null;
854
832
  firstName: string | null;
855
833
  lastName: string | null;
856
834
  currencyCode: string;
857
835
  completedAt: string | null;
858
836
  shippingAddress: {
859
837
  name: string | null;
860
- company: string | null;
861
- phone: string | null;
862
838
  address1: string;
863
839
  city: string;
864
840
  countryCode: string;
841
+ company: string | null;
865
842
  address2: string | null;
866
843
  province: string | null;
867
844
  postalCode: string | null;
868
845
  district: string | null;
846
+ phone: string | null;
869
847
  latitude: number | null;
870
848
  longitude: number | null;
871
849
  } | null;
872
850
  billingAddress: {
873
851
  name: string | null;
874
- company: string | null;
875
- phone: string | null;
876
852
  address1: string;
877
853
  city: string;
878
854
  countryCode: string;
855
+ company: string | null;
879
856
  address2: string | null;
880
857
  province: string | null;
881
858
  postalCode: string | null;
882
859
  district: string | null;
860
+ phone: string | null;
883
861
  latitude: number | null;
884
862
  longitude: number | null;
885
863
  } | null;
886
864
  promotionCodes: string[];
865
+ items: {
866
+ id: string;
867
+ productId: number;
868
+ quantity: number;
869
+ variantId: number;
870
+ unitPrice: number;
871
+ bundleItems: {
872
+ imageUrl: string | null;
873
+ brand: string | null;
874
+ productId: number;
875
+ sku: string | null;
876
+ quantity: number;
877
+ variantId: number;
878
+ productName: string;
879
+ variantName: string | null;
880
+ }[];
881
+ title: string;
882
+ variantLabel: string | null;
883
+ productHandle: string | null;
884
+ thumbnail: string | null;
885
+ variantSku: string | null;
886
+ compareAtUnitPrice: number | null;
887
+ }[];
887
888
  shippingMethods: {
888
- name: string;
889
889
  id: string;
890
- sellerId: string | null;
890
+ name: string;
891
891
  description: string | null;
892
+ sellerId: string | null;
892
893
  locationId: string | null;
893
894
  shippingMethodId: string | null;
894
895
  rateId: string | null;
@@ -917,71 +918,71 @@ declare function uploadPaymentReceipt(api: Api, params: UploadPaymentReceiptPara
917
918
  /** POST /v1/carts/{id}/promotion-codes */
918
919
  declare function addCartPromotionCode(api: Api, params: CartPromotionCodeParams): Promise<{
919
920
  status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
920
- email: string | null;
921
921
  id: string;
922
922
  phone: string | null;
923
- items: {
924
- id: string;
925
- productId: number;
926
- quantity: number;
927
- variantId: number;
928
- unitPrice: number;
929
- bundleItems: {
930
- imageUrl: string | null;
931
- brand: string | null;
932
- productId: number;
933
- sku: string | null;
934
- quantity: number;
935
- variantId: number;
936
- productName: string;
937
- variantName: string | null;
938
- }[];
939
- title: string;
940
- variantLabel: string | null;
941
- productHandle: string | null;
942
- thumbnail: string | null;
943
- variantSku: string | null;
944
- compareAtUnitPrice: number | null;
945
- }[];
946
923
  cartNumber: string;
924
+ email: string | null;
947
925
  firstName: string | null;
948
926
  lastName: string | null;
949
927
  currencyCode: string;
950
928
  completedAt: string | null;
951
929
  shippingAddress: {
952
930
  name: string | null;
953
- company: string | null;
954
- phone: string | null;
955
931
  address1: string;
956
932
  city: string;
957
933
  countryCode: string;
934
+ company: string | null;
958
935
  address2: string | null;
959
936
  province: string | null;
960
937
  postalCode: string | null;
961
938
  district: string | null;
939
+ phone: string | null;
962
940
  latitude: number | null;
963
941
  longitude: number | null;
964
942
  } | null;
965
943
  billingAddress: {
966
944
  name: string | null;
967
- company: string | null;
968
- phone: string | null;
969
945
  address1: string;
970
946
  city: string;
971
947
  countryCode: string;
948
+ company: string | null;
972
949
  address2: string | null;
973
950
  province: string | null;
974
951
  postalCode: string | null;
975
952
  district: string | null;
953
+ phone: string | null;
976
954
  latitude: number | null;
977
955
  longitude: number | null;
978
956
  } | null;
979
957
  promotionCodes: string[];
958
+ items: {
959
+ id: string;
960
+ productId: number;
961
+ quantity: number;
962
+ variantId: number;
963
+ unitPrice: number;
964
+ bundleItems: {
965
+ imageUrl: string | null;
966
+ brand: string | null;
967
+ productId: number;
968
+ sku: string | null;
969
+ quantity: number;
970
+ variantId: number;
971
+ productName: string;
972
+ variantName: string | null;
973
+ }[];
974
+ title: string;
975
+ variantLabel: string | null;
976
+ productHandle: string | null;
977
+ thumbnail: string | null;
978
+ variantSku: string | null;
979
+ compareAtUnitPrice: number | null;
980
+ }[];
980
981
  shippingMethods: {
981
- name: string;
982
982
  id: string;
983
- sellerId: string | null;
983
+ name: string;
984
984
  description: string | null;
985
+ sellerId: string | null;
985
986
  locationId: string | null;
986
987
  shippingMethodId: string | null;
987
988
  rateId: string | null;
@@ -1006,71 +1007,71 @@ declare function addCartPromotionCode(api: Api, params: CartPromotionCodeParams)
1006
1007
  /** DELETE /v1/carts/{id}/promotion-codes/{code} */
1007
1008
  declare function removeCartPromotionCode(api: Api, params: CartPromotionCodeParams): Promise<{
1008
1009
  status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
1009
- email: string | null;
1010
1010
  id: string;
1011
1011
  phone: string | null;
1012
- items: {
1013
- id: string;
1014
- productId: number;
1015
- quantity: number;
1016
- variantId: number;
1017
- unitPrice: number;
1018
- bundleItems: {
1019
- imageUrl: string | null;
1020
- brand: string | null;
1021
- productId: number;
1022
- sku: string | null;
1023
- quantity: number;
1024
- variantId: number;
1025
- productName: string;
1026
- variantName: string | null;
1027
- }[];
1028
- title: string;
1029
- variantLabel: string | null;
1030
- productHandle: string | null;
1031
- thumbnail: string | null;
1032
- variantSku: string | null;
1033
- compareAtUnitPrice: number | null;
1034
- }[];
1035
1012
  cartNumber: string;
1013
+ email: string | null;
1036
1014
  firstName: string | null;
1037
1015
  lastName: string | null;
1038
1016
  currencyCode: string;
1039
1017
  completedAt: string | null;
1040
1018
  shippingAddress: {
1041
1019
  name: string | null;
1042
- company: string | null;
1043
- phone: string | null;
1044
1020
  address1: string;
1045
1021
  city: string;
1046
1022
  countryCode: string;
1023
+ company: string | null;
1047
1024
  address2: string | null;
1048
1025
  province: string | null;
1049
1026
  postalCode: string | null;
1050
1027
  district: string | null;
1028
+ phone: string | null;
1051
1029
  latitude: number | null;
1052
1030
  longitude: number | null;
1053
1031
  } | null;
1054
1032
  billingAddress: {
1055
1033
  name: string | null;
1056
- company: string | null;
1057
- phone: string | null;
1058
1034
  address1: string;
1059
1035
  city: string;
1060
1036
  countryCode: string;
1037
+ company: string | null;
1061
1038
  address2: string | null;
1062
1039
  province: string | null;
1063
1040
  postalCode: string | null;
1064
1041
  district: string | null;
1042
+ phone: string | null;
1065
1043
  latitude: number | null;
1066
1044
  longitude: number | null;
1067
1045
  } | null;
1068
1046
  promotionCodes: string[];
1047
+ items: {
1048
+ id: string;
1049
+ productId: number;
1050
+ quantity: number;
1051
+ variantId: number;
1052
+ unitPrice: number;
1053
+ bundleItems: {
1054
+ imageUrl: string | null;
1055
+ brand: string | null;
1056
+ productId: number;
1057
+ sku: string | null;
1058
+ quantity: number;
1059
+ variantId: number;
1060
+ productName: string;
1061
+ variantName: string | null;
1062
+ }[];
1063
+ title: string;
1064
+ variantLabel: string | null;
1065
+ productHandle: string | null;
1066
+ thumbnail: string | null;
1067
+ variantSku: string | null;
1068
+ compareAtUnitPrice: number | null;
1069
+ }[];
1069
1070
  shippingMethods: {
1070
- name: string;
1071
1071
  id: string;
1072
- sellerId: string | null;
1072
+ name: string;
1073
1073
  description: string | null;
1074
+ sellerId: string | null;
1074
1075
  locationId: string | null;
1075
1076
  shippingMethodId: string | null;
1076
1077
  rateId: string | null;
@@ -1102,8 +1103,11 @@ declare function getProvinces(api: Api, params: GetProvincesParams): Promise<Pro
1102
1103
  /** GET /v1/geo/districts?countryCode=&provinceCode=&source=&search=&limit= */
1103
1104
  declare function getDistricts(api: Api, params: GetDistrictsParams): Promise<Districts>;
1104
1105
 
1106
+ /** GET /v1/pages/{slug} */
1107
+ declare function getPageBySlug(api: Api, pageSlug: string): Promise<CmsPageDetailsDto>;
1108
+
1105
1109
  declare function sanitizeHtml(html: string): string;
1106
1110
  /** Convierte HTML en texto plano (metadata, JSON-LD). */
1107
1111
  declare function stripHtml(html: string): string;
1108
1112
 
1109
- export { AddCartItemParams, Api, CartAddressesParams, CartBuyerParams, CartCheckoutParams, CartCheckoutReadParams, CartCheckoutReadResponse, CartCheckoutResponse, CartPaymentReceiptResponse, CartPromotionCodeParams, Countries, CreateCartParams, CreateProductReviewParams, Departments, Districts, GetCartParams, GetDepartmentsParams, GetDistrictsParams, GetProvincesParams, GetShippingOptionsParams, ListProductReviewsParams, ProductAutocompleteParams, ProductDetailParams, ProductsParamsInput, Provinces, PutShippingMethodParams, RelatedProductsParams, RemoveCartItemParams, ShippingOptionsResponse, UpdateCartItemQuantityParams, UploadPaymentReceiptParams, addCartItem, addCartPromotionCode, autocompleteProducts, checkoutCart, createCart, createProductReview, getCart, getCartCheckout, getCountries, getDepartments, getDistricts, getProductBySlug, getProducts, getProvinces, getRelatedProducts, getShippingOptions, listProductReviews, patchCartAddresses, patchCartBuyer, putCartShippingMethod, removeCartItem, removeCartPromotionCode, sanitizeHtml, stripHtml, updateCartItemQuantity, uploadPaymentReceipt };
1113
+ export { AddCartItemParams, Api, CartAddressesParams, CartBuyerParams, CartCheckoutParams, CartCheckoutReadParams, CartCheckoutReadResponse, CartCheckoutResponse, CartPaymentReceiptResponse, CartPromotionCodeParams, CmsPageDetailsDto, Countries, CreateCartParams, CreateProductReviewParams, Departments, Districts, GetCartParams, GetDepartmentsParams, GetDistrictsParams, GetProvincesParams, GetShippingOptionsParams, ListProductReviewsParams, ProductAutocompleteParams, ProductDetailParams, ProductsParamsInput, Provinces, PutShippingMethodParams, RelatedProductsParams, RemoveCartItemParams, ShippingOptionsResponse, UpdateCartItemQuantityParams, UploadPaymentReceiptParams, addCartItem, addCartPromotionCode, autocompleteProducts, checkoutCart, createCart, createProductReview, getCart, getCartCheckout, getCountries, getDepartments, getDistricts, getPageBySlug, getProductBySlug, getProducts, getProvinces, getRelatedProducts, getShippingOptions, listProductReviews, patchCartAddresses, patchCartBuyer, putCartShippingMethod, removeCartItem, removeCartPromotionCode, sanitizeHtml, stripHtml, updateCartItemQuantity, uploadPaymentReceipt };