@ikas/storefront 1.0.6 → 1.0.8

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.
Files changed (35) hide show
  1. package/build/__generated__/global-types.d.ts +3 -0
  2. package/build/api/blog/__generated__/getBlog.d.ts +25 -0
  3. package/build/api/blog/__generated__/listBlog.d.ts +25 -0
  4. package/build/api/blog/__generated__/listBlogCategory.d.ts +25 -0
  5. package/build/api/blog/__generated__/listBlogMetaData.d.ts +27 -1
  6. package/build/api/blog/index.d.ts +1 -1
  7. package/build/api/brand/__generated__/listProductBrand.d.ts +41 -0
  8. package/build/api/cart/__generated__/getCart.d.ts +92 -0
  9. package/build/api/cart/__generated__/saveItemToCart.d.ts +114 -1
  10. package/build/api/category/__generated__/listCategory.d.ts +47 -0
  11. package/build/api/category/__generated__/listCategoryPaths.d.ts +9 -0
  12. package/build/api/checkout/__generated__/getCheckoutById.d.ts +339 -1
  13. package/build/api/checkout/__generated__/getOrder.d.ts +406 -1
  14. package/build/api/city/__generated__/listCity.d.ts +6 -0
  15. package/build/api/country/__generated__/listCountry.d.ts +18 -0
  16. package/build/api/customer/__generated__/createOrderRefundRequest.d.ts +375 -0
  17. package/build/api/customer/__generated__/customerLogin.d.ts +85 -0
  18. package/build/api/customer/__generated__/getCustomerOrders.d.ts +406 -1
  19. package/build/api/customer/__generated__/getMyCustomer.d.ts +82 -0
  20. package/build/api/customer/__generated__/registerCustomer.d.ts +79 -0
  21. package/build/api/customer/__generated__/saveMyCustomer.d.ts +85 -0
  22. package/build/api/customer-review/__generated__/listCustomerReviews.d.ts +25 -0
  23. package/build/api/district/__generated__/listDistrict.d.ts +3 -0
  24. package/build/api/html-meta-data/__generated__/listHTMLMetaData.d.ts +11 -1
  25. package/build/api/html-meta-data/index.d.ts +1 -1
  26. package/build/api/product-attribute/__generated__/listProductAttribute.d.ts +33 -0
  27. package/build/api/product-search/__generated__/getProductFilterData.d.ts +9 -0
  28. package/build/api/state/__generated__/listState.d.ts +6 -0
  29. package/build/api/variant-type/__generated__/listVariantType.d.ts +37 -0
  30. package/build/index.es.js +551 -343
  31. package/build/index.js +551 -343
  32. package/build/models/ui/navigation-link/index.d.ts +1 -0
  33. package/build/providers/page-data-get.d.ts +4 -0
  34. package/build/providers/prop-value/link.d.ts +8 -1
  35. package/package.json +1 -1
@@ -1,65 +1,176 @@
1
1
  import { OrderRefundRequestInput, CancelledReasonEnum, AdjustmentEnum, AmountTypeEnum, OrderLineItemStatusEnum, OrderPackageFulfillStatusEnum, OrderPackageStatusEnum, OrderPaymentStatusEnum, ShippingMethodEnum, OrderStatusEnum } from "../../../__generated__/global-types";
2
2
  export interface createOrderRefundRequest_createOrderRefundRequest_billingAddress_city {
3
3
  __typename: "OrderAddressCity";
4
+ /**
5
+ * It is the code of the city of the address.
6
+ */
4
7
  code: string | null;
8
+ /**
9
+ * It is the id of the city of the address.
10
+ */
5
11
  id: string | null;
12
+ /**
13
+ * It is the name of the city of the address.
14
+ */
6
15
  name: string;
7
16
  }
8
17
  export interface createOrderRefundRequest_createOrderRefundRequest_billingAddress_country {
9
18
  __typename: "OrderAddressCountry";
19
+ /**
20
+ * It is the name of the country of the address.
21
+ */
10
22
  name: string;
23
+ /**
24
+ * It is the id of the country of the address.
25
+ */
11
26
  id: string | null;
27
+ /**
28
+ * It is the code of the country of the address.
29
+ */
12
30
  code: string | null;
13
31
  }
14
32
  export interface createOrderRefundRequest_createOrderRefundRequest_billingAddress_district {
15
33
  __typename: "OrderAddressDistrict";
34
+ /**
35
+ * It is the name of the district of the address.
36
+ */
16
37
  name: string | null;
38
+ /**
39
+ * It is the id of the district of the address.
40
+ */
17
41
  id: string | null;
42
+ /**
43
+ * It is the code of the district of the address.
44
+ */
18
45
  code: string | null;
19
46
  }
20
47
  export interface createOrderRefundRequest_createOrderRefundRequest_billingAddress_state {
21
48
  __typename: "OrderAddressState";
49
+ /**
50
+ * It is the name of the state of the address.
51
+ */
22
52
  name: string | null;
53
+ /**
54
+ * It is the id of the state of the address.
55
+ */
23
56
  id: string | null;
57
+ /**
58
+ * It is the code of the state of the address.
59
+ */
24
60
  code: string | null;
25
61
  }
26
62
  export interface createOrderRefundRequest_createOrderRefundRequest_billingAddress {
27
63
  __typename: "OrderAddress";
64
+ /**
65
+ * The street address of the address.
66
+ */
28
67
  addressLine1: string;
68
+ /**
69
+ * An optional additional field for the street address of the address.
70
+ */
29
71
  addressLine2: string | null;
72
+ /**
73
+ * The city information of the address.
74
+ */
30
75
  city: createOrderRefundRequest_createOrderRefundRequest_billingAddress_city;
76
+ /**
77
+ * The company of the person associated with the address.
78
+ */
31
79
  company: string | null;
80
+ /**
81
+ * The country information of the address.
82
+ */
32
83
  country: createOrderRefundRequest_createOrderRefundRequest_billingAddress_country;
84
+ /**
85
+ * The district information of the address.
86
+ */
33
87
  district: createOrderRefundRequest_createOrderRefundRequest_billingAddress_district | null;
88
+ /**
89
+ * The first name of the person associated with the address
90
+ */
34
91
  firstName: string;
92
+ /**
93
+ * The identity number of the person associated with the address.
94
+ */
35
95
  identityNumber: string | null;
96
+ /**
97
+ * The address"s id of the order address.
98
+ */
36
99
  isDefault: boolean;
100
+ /**
101
+ * The last name of the person associated with the address
102
+ */
37
103
  lastName: string;
104
+ /**
105
+ * The phone of the person associated with the address.
106
+ */
38
107
  phone: string | null;
108
+ /**
109
+ * The postal code of the address.
110
+ */
39
111
  postalCode: string | null;
112
+ /**
113
+ * The state information of the address.
114
+ */
40
115
  state: createOrderRefundRequest_createOrderRefundRequest_billingAddress_state | null;
116
+ /**
117
+ * The tax number of the person associated with the address.
118
+ */
41
119
  taxNumber: string | null;
120
+ /**
121
+ * The tax office of the person associated with the address.
122
+ */
42
123
  taxOffice: string | null;
43
124
  }
44
125
  export interface createOrderRefundRequest_createOrderRefundRequest_currencyRates {
45
126
  __typename: "OrderCurrencyRate";
127
+ /**
128
+ * It is the rate of the currency.
129
+ */
46
130
  rate: number;
131
+ /**
132
+ * It is the original rate of the currency.
133
+ */
47
134
  originalRate: number;
135
+ /**
136
+ * It is the code of the currency.
137
+ */
48
138
  code: string;
49
139
  }
50
140
  export interface createOrderRefundRequest_createOrderRefundRequest_customer {
51
141
  __typename: "OrderCustomer";
142
+ /**
143
+ * It is the last name of the customer who created the order.
144
+ */
52
145
  lastName: string | null;
146
+ /**
147
+ * It is the first name of the customer who created the order.
148
+ */
53
149
  firstName: string | null;
150
+ /**
151
+ * It is the email of the customer who created the order.
152
+ */
54
153
  email: string | null;
154
+ /**
155
+ * It is the id of the customer who created the order.
156
+ */
55
157
  id: string | null;
56
158
  }
57
159
  export interface createOrderRefundRequest_createOrderRefundRequest_orderAdjustments {
58
160
  __typename: "OrderAdjustment";
59
161
  type: AdjustmentEnum;
162
+ /**
163
+ * It is the order of the adjustment. Adjustments are applied in this order.
164
+ */
60
165
  order: number;
166
+ /**
167
+ * It is the name of the adjustment.
168
+ */
61
169
  name: string;
62
170
  amountType: AmountTypeEnum;
171
+ /**
172
+ * It is the adjustment amount in the order. This amount can be positive or negative.
173
+ */
63
174
  amount: number;
64
175
  }
65
176
  export interface createOrderRefundRequest_createOrderRefundRequest_orderLineItems_discount {
@@ -70,55 +181,154 @@ export interface createOrderRefundRequest_createOrderRefundRequest_orderLineItem
70
181
  }
71
182
  export interface createOrderRefundRequest_createOrderRefundRequest_orderLineItems_variant_variantValues {
72
183
  __typename: "OrderLineVariantVariantValues";
184
+ /**
185
+ * It is the order of variant value. The variant value order starts from 0.
186
+ */
73
187
  variantValueName: string | null;
188
+ /**
189
+ * It is the order of variant value. The variant value order starts from 0.
190
+ */
74
191
  variantValueId: string;
192
+ /**
193
+ * It is the order of variant value. The variant value order starts from 0.
194
+ */
75
195
  variantTypeName: string | null;
196
+ /**
197
+ * It is the order of variant value. The variant value order starts from 0.
198
+ */
76
199
  variantTypeId: string;
200
+ /**
201
+ * It is the order of variant value. The variant value order starts from 0.
202
+ */
77
203
  order: number;
78
204
  }
79
205
  export interface createOrderRefundRequest_createOrderRefundRequest_orderLineItems_variant {
80
206
  __typename: "OrderLineVariant";
207
+ /**
208
+ * It is the barcode list of the variant.
209
+ */
81
210
  barcodeList: string[] | null;
211
+ /**
212
+ * It is the id of the variant.
213
+ */
82
214
  id: string | null;
215
+ /**
216
+ * It is the main image id of the variant.
217
+ */
83
218
  mainImageId: string | null;
219
+ /**
220
+ * It is the name of the variant.
221
+ */
84
222
  name: string;
223
+ /**
224
+ * It is the product id of the variant.
225
+ */
85
226
  productId: string | null;
227
+ /**
228
+ * It is the sku of the variant.
229
+ */
86
230
  sku: string | null;
231
+ /**
232
+ * It is the variant values of the variant.
233
+ */
87
234
  variantValues: createOrderRefundRequest_createOrderRefundRequest_orderLineItems_variant_variantValues[] | null;
88
235
  }
89
236
  export interface createOrderRefundRequest_createOrderRefundRequest_orderLineItems {
90
237
  __typename: "OrderLineItem";
91
238
  createdAt: any | null;
239
+ /**
240
+ * It is the currency code of the order line item.
241
+ */
92
242
  currencyCode: string | null;
93
243
  deleted: boolean | null;
244
+ /**
245
+ * Information about the discount. Shows the details of the discount applied to the order line item.
246
+ */
94
247
  discount: createOrderRefundRequest_createOrderRefundRequest_orderLineItems_discount | null;
248
+ /**
249
+ * It is the discount price of the order line item.
250
+ */
95
251
  discountPrice: number | null;
252
+ /**
253
+ * It is the final price of the order line item. If the discount price is less
254
+ * than the sell price, the final price is equal to the discount price.
255
+ */
96
256
  finalPrice: number | null;
97
257
  id: string;
258
+ /**
259
+ * It is the original order line item id of the line item. If the line item is
260
+ * derived from another line item, this field is filled.
261
+ */
98
262
  originalOrderLineItemId: string | null;
263
+ /**
264
+ * It is the selling price of the order line item.
265
+ */
99
266
  price: number;
267
+ /**
268
+ * It is the quantity of variant in the order line item.
269
+ */
100
270
  quantity: number;
271
+ /**
272
+ * It is the status enum of the order line item
273
+ */
101
274
  status: OrderLineItemStatusEnum;
275
+ /**
276
+ * It is the date when the last status of the order line item was updated.
277
+ */
102
278
  statusUpdatedAt: any | null;
279
+ /**
280
+ * It is the stock location id of the variant value in the order line item.
281
+ */
103
282
  stockLocationId: string | null;
283
+ /**
284
+ * It is the tax value of the order line item.
285
+ */
104
286
  taxValue: number | null;
105
287
  updatedAt: any | null;
288
+ /**
289
+ * Information about the variant of the order line item.
290
+ */
106
291
  variant: createOrderRefundRequest_createOrderRefundRequest_orderLineItems_variant;
107
292
  }
108
293
  export interface createOrderRefundRequest_createOrderRefundRequest_orderPackages_trackingInfo {
109
294
  __typename: "TrackingInfo";
295
+ /**
296
+ * It is the tracking number of the order package.
297
+ */
110
298
  trackingNumber: string | null;
299
+ /**
300
+ * It is the tracking link of the order package.
301
+ */
111
302
  trackingLink: string | null;
303
+ /**
304
+ * Indicates whether the notification is sent to the customer after the cargo is
305
+ * delivered. ***isSendNotification*** returns true if the notification is sent.
306
+ */
112
307
  isSendNotification: boolean | null;
308
+ /**
309
+ * It is the name of the cargo company.
310
+ */
113
311
  cargoCompany: string | null;
114
312
  }
115
313
  export interface createOrderRefundRequest_createOrderRefundRequest_orderPackages {
116
314
  __typename: "OrderPackage";
117
315
  updatedAt: any | null;
316
+ /**
317
+ * It is the stock location id information where the package will be shipped.
318
+ */
118
319
  trackingInfo: createOrderRefundRequest_createOrderRefundRequest_orderPackages_trackingInfo | null;
119
320
  stockLocationId: string;
321
+ /**
322
+ * It is the number of order package. Order package number is created with the order number - order package sequence format.
323
+ */
120
324
  orderPackageNumber: string;
325
+ /**
326
+ * It is the fulfill status of the package
327
+ */
121
328
  orderPackageFulfillStatus: OrderPackageFulfillStatusEnum;
329
+ /**
330
+ * It is the id list of the order line items in the package.
331
+ */
122
332
  orderLineItemIds: string[];
123
333
  id: string;
124
334
  deleted: boolean | null;
@@ -126,84 +336,249 @@ export interface createOrderRefundRequest_createOrderRefundRequest_orderPackages
126
336
  }
127
337
  export interface createOrderRefundRequest_createOrderRefundRequest_shippingAddress_state {
128
338
  __typename: "OrderAddressState";
339
+ /**
340
+ * It is the name of the state of the address.
341
+ */
129
342
  name: string | null;
343
+ /**
344
+ * It is the id of the state of the address.
345
+ */
130
346
  id: string | null;
347
+ /**
348
+ * It is the code of the state of the address.
349
+ */
131
350
  code: string | null;
132
351
  }
133
352
  export interface createOrderRefundRequest_createOrderRefundRequest_shippingAddress_district {
134
353
  __typename: "OrderAddressDistrict";
354
+ /**
355
+ * It is the name of the district of the address.
356
+ */
135
357
  name: string | null;
358
+ /**
359
+ * It is the id of the district of the address.
360
+ */
136
361
  id: string | null;
362
+ /**
363
+ * It is the code of the district of the address.
364
+ */
137
365
  code: string | null;
138
366
  }
139
367
  export interface createOrderRefundRequest_createOrderRefundRequest_shippingAddress_country {
140
368
  __typename: "OrderAddressCountry";
369
+ /**
370
+ * It is the name of the country of the address.
371
+ */
141
372
  name: string;
373
+ /**
374
+ * It is the id of the country of the address.
375
+ */
142
376
  id: string | null;
377
+ /**
378
+ * It is the code of the country of the address.
379
+ */
143
380
  code: string | null;
144
381
  }
145
382
  export interface createOrderRefundRequest_createOrderRefundRequest_shippingAddress_city {
146
383
  __typename: "OrderAddressCity";
384
+ /**
385
+ * It is the id of the city of the address.
386
+ */
147
387
  id: string | null;
388
+ /**
389
+ * It is the code of the city of the address.
390
+ */
148
391
  code: string | null;
392
+ /**
393
+ * It is the name of the city of the address.
394
+ */
149
395
  name: string;
150
396
  }
151
397
  export interface createOrderRefundRequest_createOrderRefundRequest_shippingAddress {
152
398
  __typename: "OrderAddress";
399
+ /**
400
+ * The tax office of the person associated with the address.
401
+ */
153
402
  taxOffice: string | null;
403
+ /**
404
+ * The tax number of the person associated with the address.
405
+ */
154
406
  taxNumber: string | null;
407
+ /**
408
+ * The state information of the address.
409
+ */
155
410
  state: createOrderRefundRequest_createOrderRefundRequest_shippingAddress_state | null;
411
+ /**
412
+ * The postal code of the address.
413
+ */
156
414
  postalCode: string | null;
415
+ /**
416
+ * The phone of the person associated with the address.
417
+ */
157
418
  phone: string | null;
419
+ /**
420
+ * The last name of the person associated with the address
421
+ */
158
422
  lastName: string;
423
+ /**
424
+ * The address"s id of the order address.
425
+ */
159
426
  isDefault: boolean;
427
+ /**
428
+ * The identity number of the person associated with the address.
429
+ */
160
430
  identityNumber: string | null;
431
+ /**
432
+ * The first name of the person associated with the address
433
+ */
161
434
  firstName: string;
435
+ /**
436
+ * The district information of the address.
437
+ */
162
438
  district: createOrderRefundRequest_createOrderRefundRequest_shippingAddress_district | null;
439
+ /**
440
+ * The country information of the address.
441
+ */
163
442
  country: createOrderRefundRequest_createOrderRefundRequest_shippingAddress_country;
443
+ /**
444
+ * The company of the person associated with the address.
445
+ */
164
446
  company: string | null;
447
+ /**
448
+ * The city information of the address.
449
+ */
165
450
  city: createOrderRefundRequest_createOrderRefundRequest_shippingAddress_city;
451
+ /**
452
+ * An optional additional field for the street address of the address.
453
+ */
166
454
  addressLine2: string | null;
455
+ /**
456
+ * The street address of the address.
457
+ */
167
458
  addressLine1: string;
168
459
  }
169
460
  export interface createOrderRefundRequest_createOrderRefundRequest_shippingLines {
170
461
  __typename: "OrderShippingLine";
462
+ /**
463
+ * It is the title of the order shipping line.
464
+ */
171
465
  title: string;
466
+ /**
467
+ * It is the tax value of the order shipping line price.
468
+ */
172
469
  taxValue: number | null;
470
+ /**
471
+ * It is the price of the order shipping line.
472
+ */
173
473
  price: number;
174
474
  }
175
475
  export interface createOrderRefundRequest_createOrderRefundRequest_taxLines {
176
476
  __typename: "OrderTaxLine";
477
+ /**
478
+ * It is the percentage of the slice to which the calculated tax amount belongs.
479
+ */
177
480
  rate: number;
481
+ /**
482
+ * It is the price of the order tax.
483
+ */
178
484
  price: number;
179
485
  }
180
486
  export interface createOrderRefundRequest_createOrderRefundRequest {
181
487
  __typename: "Order";
488
+ /**
489
+ * It is the billing address of the order.
490
+ */
182
491
  billingAddress: createOrderRefundRequest_createOrderRefundRequest_billingAddress | null;
492
+ /**
493
+ * If the order has been cancelled, it indicates the cancellation date of the order.
494
+ */
183
495
  cancelledAt: any | null;
496
+ /**
497
+ * It is the cancel reason of the order. If the order has been cancelled, it indicates the cancellation reason of the order.
498
+ */
184
499
  cancelReason: CancelledReasonEnum | null;
185
500
  createdAt: any | null;
501
+ /**
502
+ * It is the currency value of the order.
503
+ */
186
504
  currencyCode: string;
505
+ /**
506
+ * A list of currency rate objects.
507
+ */
187
508
  currencyRates: createOrderRefundRequest_createOrderRefundRequest_currencyRates[];
509
+ /**
510
+ * Information about the customer. The order does not have to be a customer
511
+ * information. If the order was created by ikasPOS, the customer information may be null.
512
+ */
188
513
  customer: createOrderRefundRequest_createOrderRefundRequest_customer | null;
189
514
  deleted: boolean | null;
190
515
  id: string;
191
516
  merchantId: string;
517
+ /**
518
+ * An optional note, can attach to the order.
519
+ */
192
520
  note: string | null;
521
+ /**
522
+ * The date the order was ordered.
523
+ */
193
524
  orderedAt: any | null;
525
+ /**
526
+ * A list of adjustment objects, each containing information about a adjustment in the order.
527
+ */
194
528
  orderAdjustments: createOrderRefundRequest_createOrderRefundRequest_orderAdjustments[] | null;
529
+ /**
530
+ * A list of line item objects, each containing information about an item in the order.
531
+ */
195
532
  orderLineItems: createOrderRefundRequest_createOrderRefundRequest_orderLineItems[];
533
+ /**
534
+ * The position of the order in the store's order count starting from 1001. Order numbers are sequential and start from 1001.
535
+ */
196
536
  orderNumber: string | null;
537
+ /**
538
+ * A list of order package objects.
539
+ */
197
540
  orderPackages: createOrderRefundRequest_createOrderRefundRequest_orderPackages[] | null;
541
+ /**
542
+ * It is the package status enum of the order
543
+ */
198
544
  orderPackageStatus: OrderPackageStatusEnum | null;
545
+ /**
546
+ * It is the payment status enum of the order
547
+ */
199
548
  orderPaymentStatus: OrderPaymentStatusEnum | null;
549
+ /**
550
+ * It is the tag id list in the order.
551
+ */
200
552
  orderTagIds: string[] | null;
553
+ /**
554
+ * It is the shipping address of the order.
555
+ */
201
556
  shippingAddress: createOrderRefundRequest_createOrderRefundRequest_shippingAddress | null;
557
+ /**
558
+ * A list of shipping line objects, each containing information about a shipping in the order.
559
+ */
202
560
  shippingLines: createOrderRefundRequest_createOrderRefundRequest_shippingLines[] | null;
561
+ /**
562
+ * It is the shipping method enum of the order
563
+ */
203
564
  shippingMethod: ShippingMethodEnum;
565
+ /**
566
+ * It is the status enum of the order
567
+ */
204
568
  status: OrderStatusEnum;
569
+ /**
570
+ * A list of tax line objects, tax line objects contain the taxes of the shippingLines, orderLineItems, and giftPackageLines.
571
+ */
205
572
  taxLines: createOrderRefundRequest_createOrderRefundRequest_taxLines[] | null;
573
+ /**
574
+ * The total final price of the order resulting from the apply of
575
+ * ``orderAdjustments`` , ```shippingLines```, and ```giftPackageLines```
576
+ * pricing to the order total price.
577
+ */
206
578
  totalFinalPrice: number;
579
+ /**
580
+ * It is the sum of the net prices of the line items in the order.
581
+ */
207
582
  totalPrice: number;
208
583
  updatedAt: any | null;
209
584
  }