@passly-nl/data 1.4.3 → 1.5.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.
Files changed (34) hide show
  1. package/dist/index.d.mts +37 -23
  2. package/dist/index.d.mts.map +1 -1
  3. package/dist/index.mjs +109 -55
  4. package/dist/index.mjs.map +1 -1
  5. package/package.json +1 -1
  6. package/src/adapter/EventAdapter.ts +9 -1
  7. package/src/adapter/OrderAdapter.ts +3 -2
  8. package/src/adapter/ProductAdapter.ts +2 -1
  9. package/src/adapter/PublicShopAdapter.ts +8 -1
  10. package/src/adapter/ReservationAdapter.ts +4 -2
  11. package/src/dto/event/ShopElementButtonDto.ts +3 -2
  12. package/src/dto/event/ShopElementDividerDto.ts +3 -2
  13. package/src/dto/event/ShopElementDto.ts +12 -2
  14. package/src/dto/event/ShopElementHeadingDto.ts +3 -3
  15. package/src/dto/event/ShopElementInformationDto.ts +3 -2
  16. package/src/dto/event/ShopElementNoticeDto.ts +3 -3
  17. package/src/dto/event/ShopElementProductDto.ts +3 -2
  18. package/src/dto/event/ShopElementTextDto.ts +3 -2
  19. package/src/dto/order/OrderProductDto.ts +12 -1
  20. package/src/dto/product/ProductDto.ts +11 -1
  21. package/src/dto/publicShop/PublicShopElementButtonDto.ts +3 -2
  22. package/src/dto/publicShop/PublicShopElementDividerDto.ts +3 -2
  23. package/src/dto/publicShop/PublicShopElementDto.ts +12 -2
  24. package/src/dto/publicShop/PublicShopElementHeadingDto.ts +3 -3
  25. package/src/dto/publicShop/PublicShopElementInformationDto.ts +3 -2
  26. package/src/dto/publicShop/PublicShopElementNoticeDto.ts +3 -3
  27. package/src/dto/publicShop/PublicShopElementProductDto.ts +3 -2
  28. package/src/dto/publicShop/PublicShopElementTextDto.ts +3 -2
  29. package/src/dto/reservation/ReservationProductDto.ts +23 -2
  30. package/src/service/MerchantEventProductService.ts +3 -2
  31. package/src/service/MerchantEventProductsService.ts +5 -2
  32. package/src/service/PublicShopService.ts +17 -2
  33. package/src/types/event.ts +4 -0
  34. package/src/types/product.ts +2 -1
package/dist/index.mjs CHANGED
@@ -1722,6 +1722,12 @@ var ShopElementDto = class {
1722
1722
  set id(value) {
1723
1723
  this.#id = value;
1724
1724
  }
1725
+ get page() {
1726
+ return this.#page;
1727
+ }
1728
+ set page(value) {
1729
+ this.#page = value;
1730
+ }
1725
1731
  get type() {
1726
1732
  return this.#type;
1727
1733
  }
@@ -1729,9 +1735,11 @@ var ShopElementDto = class {
1729
1735
  this.#type = value;
1730
1736
  }
1731
1737
  #id;
1738
+ #page;
1732
1739
  #type;
1733
- constructor(id, type) {
1740
+ constructor(id, type, page) {
1734
1741
  this.#id = id;
1742
+ this.#page = page;
1735
1743
  this.#type = type;
1736
1744
  }
1737
1745
  };
@@ -1760,8 +1768,8 @@ let ShopElementButtonDto = class ShopElementButtonDto extends ShopElementDto {
1760
1768
  #icon;
1761
1769
  #text;
1762
1770
  #url;
1763
- constructor(id, icon, text, url) {
1764
- super(id, "button");
1771
+ constructor(id, page, icon, text, url) {
1772
+ super(id, "button", page);
1765
1773
  this.#icon = icon;
1766
1774
  this.#text = text;
1767
1775
  this.#url = url;
@@ -1786,8 +1794,8 @@ let ShopElementDividerDto = class ShopElementDividerDto extends ShopElementDto {
1786
1794
  }
1787
1795
  #icon;
1788
1796
  #text;
1789
- constructor(id, icon, text) {
1790
- super(id, "divider");
1797
+ constructor(id, page, icon, text) {
1798
+ super(id, "divider", page);
1791
1799
  this.#icon = icon;
1792
1800
  this.#text = text;
1793
1801
  }
@@ -1811,8 +1819,8 @@ let ShopElementHeadingDto = class ShopElementHeadingDto extends ShopElementDto {
1811
1819
  }
1812
1820
  #headingLevel;
1813
1821
  #title;
1814
- constructor(id, headingLevel, title) {
1815
- super(id, "heading");
1822
+ constructor(id, page, headingLevel, title) {
1823
+ super(id, "heading", page);
1816
1824
  this.#headingLevel = headingLevel;
1817
1825
  this.#title = title;
1818
1826
  }
@@ -1822,8 +1830,8 @@ ShopElementHeadingDto = __decorate([dto], ShopElementHeadingDto);
1822
1830
  //#endregion
1823
1831
  //#region src/dto/event/ShopElementInformationDto.ts
1824
1832
  let ShopElementInformationDto = class ShopElementInformationDto extends ShopElementDto {
1825
- constructor(id) {
1826
- super(id, "information");
1833
+ constructor(id, page) {
1834
+ super(id, "information", page);
1827
1835
  }
1828
1836
  };
1829
1837
  ShopElementInformationDto = __decorate([dto], ShopElementInformationDto);
@@ -1859,8 +1867,8 @@ let ShopElementNoticeDto = class ShopElementNoticeDto extends ShopElementDto {
1859
1867
  #noticeType;
1860
1868
  #title;
1861
1869
  #text;
1862
- constructor(id, icon, noticeType, title, text) {
1863
- super(id, "notice");
1870
+ constructor(id, page, icon, noticeType, title, text) {
1871
+ super(id, "notice", page);
1864
1872
  this.#icon = icon;
1865
1873
  this.#noticeType = noticeType;
1866
1874
  this.#title = title;
@@ -1879,8 +1887,8 @@ let ShopElementProductDto = class ShopElementProductDto extends ShopElementDto {
1879
1887
  this.#product = value;
1880
1888
  }
1881
1889
  #product;
1882
- constructor(id, product) {
1883
- super(id, "product");
1890
+ constructor(id, page, product) {
1891
+ super(id, "product", page);
1884
1892
  this.#product = product;
1885
1893
  }
1886
1894
  };
@@ -1896,8 +1904,8 @@ let ShopElementTextDto = class ShopElementTextDto extends ShopElementDto {
1896
1904
  this.#text = value;
1897
1905
  }
1898
1906
  #text;
1899
- constructor(id, text) {
1900
- super(id, "text");
1907
+ constructor(id, page, text) {
1908
+ super(id, "text", page);
1901
1909
  this.#text = text;
1902
1910
  }
1903
1911
  };
@@ -3682,15 +3690,23 @@ let OrderProductDto = class OrderProductDto {
3682
3690
  set image(value) {
3683
3691
  this.#image = value;
3684
3692
  }
3693
+ get type() {
3694
+ return this.#type;
3695
+ }
3696
+ set type(value) {
3697
+ this.#type = value;
3698
+ }
3685
3699
  #id;
3686
3700
  #name;
3687
3701
  #description;
3688
3702
  #image;
3689
- constructor(id, name, description, image) {
3703
+ #type;
3704
+ constructor(id, name, description, image, type) {
3690
3705
  this.#id = id;
3691
3706
  this.#name = name;
3692
3707
  this.#description = description;
3693
3708
  this.#image = image;
3709
+ this.#type = type;
3694
3710
  }
3695
3711
  };
3696
3712
  OrderProductDto = __decorate([dto], OrderProductDto);
@@ -3946,6 +3962,12 @@ let ProductDto = class ProductDto {
3946
3962
  set isPersonalizationRequired(value) {
3947
3963
  this.#isPersonalizationRequired = value;
3948
3964
  }
3965
+ get isScannable() {
3966
+ return this.#isScannable;
3967
+ }
3968
+ set isScannable(value) {
3969
+ this.#isScannable = value;
3970
+ }
3949
3971
  get isSwappable() {
3950
3972
  return this.#isSwappable;
3951
3973
  }
@@ -4052,7 +4074,8 @@ let ProductDto = class ProductDto {
4052
4074
  #saleEndsOn;
4053
4075
  #availability;
4054
4076
  #sold;
4055
- constructor(id, type, name, description, price, maxQuantity, isActive, isPersonalizationRequired, isSwappable, isTimeslotted, timeSlots, remainingStock, stock, hasSales, image, images, ticketsReleasedOn, showWhenUnavailable, saleStartsOn, saleEndsOn, availability, sold) {
4077
+ #isScannable;
4078
+ constructor(id, type, name, description, price, maxQuantity, isActive, isPersonalizationRequired, isSwappable, isTimeslotted, timeSlots, remainingStock, stock, hasSales, image, images, ticketsReleasedOn, showWhenUnavailable, saleStartsOn, saleEndsOn, availability, sold, isScannable = true) {
4056
4079
  this.#id = id;
4057
4080
  this.#type = type;
4058
4081
  this.#name = name;
@@ -4075,6 +4098,7 @@ let ProductDto = class ProductDto {
4075
4098
  this.#saleEndsOn = saleEndsOn;
4076
4099
  this.#availability = availability;
4077
4100
  this.#sold = sold;
4101
+ this.#isScannable = isScannable;
4078
4102
  }
4079
4103
  };
4080
4104
  ProductDto = __decorate([dto], ProductDto);
@@ -4304,6 +4328,12 @@ var PublicShopElementDto = class {
4304
4328
  set id(value) {
4305
4329
  this.#id = value;
4306
4330
  }
4331
+ get page() {
4332
+ return this.#page;
4333
+ }
4334
+ set page(value) {
4335
+ this.#page = value;
4336
+ }
4307
4337
  get type() {
4308
4338
  return this.#type;
4309
4339
  }
@@ -4311,9 +4341,11 @@ var PublicShopElementDto = class {
4311
4341
  this.#type = value;
4312
4342
  }
4313
4343
  #id;
4344
+ #page;
4314
4345
  #type;
4315
- constructor(id, type) {
4346
+ constructor(id, type, page) {
4316
4347
  this.#id = id;
4348
+ this.#page = page;
4317
4349
  this.#type = type;
4318
4350
  }
4319
4351
  };
@@ -4342,8 +4374,8 @@ let PublicShopElementButtonDto = class PublicShopElementButtonDto extends Public
4342
4374
  #icon;
4343
4375
  #text;
4344
4376
  #url;
4345
- constructor(id, icon, text, url) {
4346
- super(id, "button");
4377
+ constructor(id, page, icon, text, url) {
4378
+ super(id, "button", page);
4347
4379
  this.#icon = icon;
4348
4380
  this.#text = text;
4349
4381
  this.#url = url;
@@ -4368,8 +4400,8 @@ let PublicShopElementDividerDto = class PublicShopElementDividerDto extends Publ
4368
4400
  }
4369
4401
  #icon;
4370
4402
  #text;
4371
- constructor(id, icon, text) {
4372
- super(id, "divider");
4403
+ constructor(id, page, icon, text) {
4404
+ super(id, "divider", page);
4373
4405
  this.#icon = icon;
4374
4406
  this.#text = text;
4375
4407
  }
@@ -4393,8 +4425,8 @@ let PublicShopElementHeadingDto = class PublicShopElementHeadingDto extends Publ
4393
4425
  }
4394
4426
  #headingLevel;
4395
4427
  #title;
4396
- constructor(id, headingLevel, title) {
4397
- super(id, "heading");
4428
+ constructor(id, page, headingLevel, title) {
4429
+ super(id, "heading", page);
4398
4430
  this.#headingLevel = headingLevel;
4399
4431
  this.#title = title;
4400
4432
  }
@@ -4404,8 +4436,8 @@ PublicShopElementHeadingDto = __decorate([dto], PublicShopElementHeadingDto);
4404
4436
  //#endregion
4405
4437
  //#region src/dto/publicShop/PublicShopElementInformationDto.ts
4406
4438
  let PublicShopElementInformationDto = class PublicShopElementInformationDto extends PublicShopElementDto {
4407
- constructor(id) {
4408
- super(id, "information");
4439
+ constructor(id, page) {
4440
+ super(id, "information", page);
4409
4441
  }
4410
4442
  };
4411
4443
  PublicShopElementInformationDto = __decorate([dto], PublicShopElementInformationDto);
@@ -4441,8 +4473,8 @@ let PublicShopElementNoticeDto = class PublicShopElementNoticeDto extends Public
4441
4473
  #noticeType;
4442
4474
  #title;
4443
4475
  #text;
4444
- constructor(id, icon, noticeType, title, text) {
4445
- super(id, "notice");
4476
+ constructor(id, page, icon, noticeType, title, text) {
4477
+ super(id, "notice", page);
4446
4478
  this.#icon = icon;
4447
4479
  this.#noticeType = noticeType;
4448
4480
  this.#title = title;
@@ -4461,8 +4493,8 @@ let PublicShopElementProductDto = class PublicShopElementProductDto extends Publ
4461
4493
  this.#product = value;
4462
4494
  }
4463
4495
  #product;
4464
- constructor(id, product) {
4465
- super(id, "product");
4496
+ constructor(id, page, product) {
4497
+ super(id, "product", page);
4466
4498
  this.#product = product;
4467
4499
  }
4468
4500
  };
@@ -4478,8 +4510,8 @@ let PublicShopElementTextDto = class PublicShopElementTextDto extends PublicShop
4478
4510
  this.#text = value;
4479
4511
  }
4480
4512
  #text;
4481
- constructor(id, text) {
4482
- super(id, "text");
4513
+ constructor(id, page, text) {
4514
+ super(id, "text", page);
4483
4515
  this.#text = text;
4484
4516
  }
4485
4517
  };
@@ -5104,15 +5136,31 @@ let ReservationProductDto = class ReservationProductDto {
5104
5136
  set image(value) {
5105
5137
  this.#image = value;
5106
5138
  }
5139
+ get price() {
5140
+ return this.#price;
5141
+ }
5142
+ set price(value) {
5143
+ this.#price = value;
5144
+ }
5145
+ get type() {
5146
+ return this.#type;
5147
+ }
5148
+ set type(value) {
5149
+ this.#type = value;
5150
+ }
5107
5151
  #id;
5108
5152
  #name;
5109
5153
  #description;
5110
5154
  #image;
5111
- constructor(id, name, description, image) {
5155
+ #price;
5156
+ #type;
5157
+ constructor(id, name, description, image, price, type) {
5112
5158
  this.#id = id;
5113
5159
  this.#name = name;
5114
5160
  this.#description = description;
5115
5161
  this.#image = image;
5162
+ this.#price = price;
5163
+ this.#type = type;
5116
5164
  }
5117
5165
  };
5118
5166
  ReservationProductDto = __decorate([dto], ReservationProductDto);
@@ -8271,15 +8319,15 @@ let EventAdapter = _EventAdapter = class EventAdapter {
8271
8319
  }
8272
8320
  static parseShopElement(data) {
8273
8321
  switch (data.type) {
8274
- case "button": return new ShopElementButtonDto(data.id, data.icon, data.text, data.url);
8275
- case "divider": return new ShopElementDividerDto(data.id, data.icon, data.text);
8276
- case "heading": return new ShopElementHeadingDto(data.id, data.heading_level, data.title);
8277
- case "information": return new ShopElementInformationDto(data.id);
8278
- case "notice": return new ShopElementNoticeDto(data.id, data.icon, data.notice_type, data.title, data.text);
8279
- case "product": return new ShopElementProductDto(data.id, ProductAdapter.parseProduct(data.product));
8280
- case "text": return new ShopElementTextDto(data.id, data.text);
8322
+ case "button": return new ShopElementButtonDto(data.id, data.page, data.icon, data.text, data.url);
8323
+ case "divider": return new ShopElementDividerDto(data.id, data.page, data.icon, data.text);
8324
+ case "heading": return new ShopElementHeadingDto(data.id, data.page, data.heading_level, data.title);
8325
+ case "information": return new ShopElementInformationDto(data.id, data.page);
8326
+ case "notice": return new ShopElementNoticeDto(data.id, data.page, data.icon, data.notice_type, data.title, data.text);
8327
+ case "product": return new ShopElementProductDto(data.id, data.page, ProductAdapter.parseProduct(data.product));
8328
+ case "text": return new ShopElementTextDto(data.id, data.page, data.text);
8281
8329
  }
8282
- return new ShopElementTextDto("unknown", "Unknown element type.");
8330
+ return new ShopElementTextDto("unknown", data.page, "Unknown element type.");
8283
8331
  }
8284
8332
  static parseStockOverview(data) {
8285
8333
  return new StockOverviewDto(data.total, data.sold, data.remaining, data.items.map(_EventAdapter.parseStockOverviewItem));
@@ -8443,7 +8491,7 @@ let OrderAdapter = _OrderAdapter = class OrderAdapter {
8443
8491
  return new OrderPaymentProviderDto(data.name, data.url);
8444
8492
  }
8445
8493
  static parseOrderProduct(data) {
8446
- return new OrderProductDto(data.id, data.name, data.description, data.image);
8494
+ return new OrderProductDto(data.id, data.name, data.description, optional_default(data.image, FileSystemAdapter.parsePicture), data.type ?? "ticket");
8447
8495
  }
8448
8496
  };
8449
8497
  OrderAdapter = _OrderAdapter = __decorate([adapter], OrderAdapter);
@@ -8471,7 +8519,7 @@ PaymentAdapter = _PaymentAdapter = __decorate([adapter], PaymentAdapter);
8471
8519
  //#region src/adapter/ProductAdapter.ts
8472
8520
  let ProductAdapter = class ProductAdapter {
8473
8521
  static parseProduct(data) {
8474
- return new ProductDto(data.id, data.type, data.name, data.description, optional_default(data.price, PaymentAdapter.parseCost), data.max_quantity, data.is_active, data.is_personalization_required, data.is_swappable, data.is_timeslotted, optionalArray_default(data.time_slots, EventAdapter.parseTimeSlot) ?? [], data.remaining_stock, optional_default(data.stock_pool, EventAdapter.parseStockPool), data.has_sales, optional_default(data.image, FileSystemAdapter.parsePicture), optionalArray_default(data.images, FileSystemAdapter.parsePicture), optional_default(data.tickets_released_on, DateTimeAdapter.parseDateTime), data.show_when_unavailable, optional_default(data.sale_starts_on, DateTimeAdapter.parseDateTime), optional_default(data.sale_ends_on, DateTimeAdapter.parseDateTime), data.availability, data.sold);
8522
+ return new ProductDto(data.id, data.type, data.name, data.description, optional_default(data.price, PaymentAdapter.parseCost), data.max_quantity, data.is_active, data.is_personalization_required, data.is_swappable, data.is_timeslotted, optionalArray_default(data.time_slots, EventAdapter.parseTimeSlot) ?? [], data.remaining_stock, optional_default(data.stock_pool, EventAdapter.parseStockPool), data.has_sales, optional_default(data.image, FileSystemAdapter.parsePicture), optionalArray_default(data.images, FileSystemAdapter.parsePicture), optional_default(data.tickets_released_on, DateTimeAdapter.parseDateTime), data.show_when_unavailable, optional_default(data.sale_starts_on, DateTimeAdapter.parseDateTime), optional_default(data.sale_ends_on, DateTimeAdapter.parseDateTime), data.availability, data.sold, data.is_scannable ?? true);
8475
8523
  }
8476
8524
  };
8477
8525
  ProductAdapter = __decorate([adapter], ProductAdapter);
@@ -8497,13 +8545,13 @@ let PublicShopAdapter = _PublicShopAdapter = class PublicShopAdapter {
8497
8545
  }
8498
8546
  static parsePublicShopElement(data) {
8499
8547
  switch (data.type) {
8500
- case "button": return new PublicShopElementButtonDto(data.id, data.icon, data.text, data.url);
8501
- case "divider": return new PublicShopElementDividerDto(data.id, data.icon, data.text);
8502
- case "heading": return new PublicShopElementHeadingDto(data.id, data.heading_level, data.title);
8503
- case "information": return new PublicShopElementInformationDto(data.id);
8504
- case "notice": return new PublicShopElementNoticeDto(data.id, data.icon, data.notice_type, data.title, data.text);
8505
- case "product": return new PublicShopElementProductDto(data.id, _PublicShopAdapter.parsePublicShopProduct(data.product));
8506
- case "text": return new PublicShopElementTextDto(data.id, data.text);
8548
+ case "button": return new PublicShopElementButtonDto(data.id, data.page, data.icon, data.text, data.url);
8549
+ case "divider": return new PublicShopElementDividerDto(data.id, data.page, data.icon, data.text);
8550
+ case "heading": return new PublicShopElementHeadingDto(data.id, data.page, data.heading_level, data.title);
8551
+ case "information": return new PublicShopElementInformationDto(data.id, data.page);
8552
+ case "notice": return new PublicShopElementNoticeDto(data.id, data.page, data.icon, data.notice_type, data.title, data.text);
8553
+ case "product": return new PublicShopElementProductDto(data.id, data.page, _PublicShopAdapter.parsePublicShopProduct(data.product));
8554
+ case "text": return new PublicShopElementTextDto(data.id, data.page, data.text);
8507
8555
  }
8508
8556
  throw new Error("Unknown shop element.");
8509
8557
  }
@@ -8560,7 +8608,7 @@ let ReservationAdapter = _ReservationAdapter = class ReservationAdapter {
8560
8608
  return new ReservationItemDto(data.quantity, _ReservationAdapter.parseReservationProduct(data.product));
8561
8609
  }
8562
8610
  static parseReservationProduct(data) {
8563
- return new ReservationProductDto(data.id, data.name, data.description, optional_default(data.image, FileSystemAdapter.parsePicture));
8611
+ return new ReservationProductDto(data.id, data.name, data.description, optional_default(data.image, FileSystemAdapter.parsePicture), PaymentAdapter.parseCost(data.price), data.type ?? "ticket");
8564
8612
  }
8565
8613
  };
8566
8614
  ReservationAdapter = _ReservationAdapter = __decorate([adapter], ReservationAdapter);
@@ -9169,7 +9217,7 @@ var MerchantEventProductService = class extends BaseService {
9169
9217
  description
9170
9218
  }).runAdapter(ProductAdapter.parseProduct);
9171
9219
  }
9172
- async patchSales(merchantId, eventId, productId, price, maxQuantity, isSwappable, ticketsReleasedOn, showWhenUnavailable, saleStartsOn, saleEndsOn) {
9220
+ async patchSales(merchantId, eventId, productId, price, maxQuantity, isSwappable, ticketsReleasedOn, showWhenUnavailable, saleStartsOn, saleEndsOn, isScannable = null) {
9173
9221
  return await this.request(`/merchants/${merchantId}/events/${eventId}/products/${productId}/sales`).method("patch").bearerToken().queryString(QueryString.builder().append("language", "nl")).body({
9174
9222
  price,
9175
9223
  max_quantity: maxQuantity,
@@ -9177,7 +9225,8 @@ var MerchantEventProductService = class extends BaseService {
9177
9225
  tickets_released_on: ticketsReleasedOn?.toISO() ?? null,
9178
9226
  show_when_unavailable: showWhenUnavailable,
9179
9227
  sale_starts_on: saleStartsOn?.toISO() ?? null,
9180
- sale_ends_on: saleEndsOn?.toISO() ?? null
9228
+ sale_ends_on: saleEndsOn?.toISO() ?? null,
9229
+ is_scannable: isScannable
9181
9230
  }).runAdapter(ProductAdapter.parseProduct);
9182
9231
  }
9183
9232
  async patchValidity(merchantId, eventId, productId, timeSlotIds) {
@@ -9203,7 +9252,7 @@ var MerchantEventProductsService = class extends BaseService {
9203
9252
  async getSelectOptions(merchantId, eventId, searchQuery = null, ids = null) {
9204
9253
  return await this.request(`/merchants/${merchantId}/events/${eventId}/products/select-options`).method("get").bearerToken().queryString(QueryString.builder().append("language", "nl").appendArray("ids[]", ids).append("searchQuery", searchQuery)).runArrayAdapter(FluxAdapter.parseFluxFormSelectEntry);
9205
9254
  }
9206
- async post(merchantId, eventId, name, description, price, maxQuantity, stock, stockPoolId, ticketsReleasedOn = null, timeSlotIds = null) {
9255
+ async post(merchantId, eventId, name, description, price, maxQuantity, stock, stockPoolId, ticketsReleasedOn = null, timeSlotIds = null, type = "ticket", isScannable = null) {
9207
9256
  return await this.request(`/merchants/${merchantId}/events/${eventId}/products`).method("post").bearerToken().queryString(QueryString.builder().append("language", "nl")).body({
9208
9257
  name,
9209
9258
  description,
@@ -9212,7 +9261,9 @@ var MerchantEventProductsService = class extends BaseService {
9212
9261
  max_quantity: maxQuantity,
9213
9262
  stock_pool_id: stockPoolId,
9214
9263
  tickets_released_on: ticketsReleasedOn?.toISO() ?? null,
9215
- time_slot_ids: timeSlotIds
9264
+ time_slot_ids: timeSlotIds,
9265
+ type,
9266
+ is_scannable: isScannable
9216
9267
  }).runAdapter(ProductAdapter.parseProduct);
9217
9268
  }
9218
9269
  };
@@ -10271,6 +10322,9 @@ var PublicShopService = class extends BaseService {
10271
10322
  ...attributionBody(attribution)
10272
10323
  }).runAdapter(OrderAdapter.parseOrder);
10273
10324
  }
10325
+ async putReservationProducts(shopId, reservationId, products) {
10326
+ return await this.request(`/shops/${shopId}/reservations/${reservationId}/products`).method("put").queryString(QueryString.builder().append("language", "nl")).body({ products: products.map((product) => [product.productId, product.quantity]) }).runAdapter(ReservationAdapter.parseReservation);
10327
+ }
10274
10328
  async reserve(shopId, products, attribution = null) {
10275
10329
  return await this.request(`/shops/${shopId}/reserve`).method("post").queryString(QueryString.builder().append("language", "nl")).body({
10276
10330
  products: products.map((p) => [p.productId, p.quantity]),