@passly-nl/data 1.3.3 → 1.3.5

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 +50 -31
  2. package/dist/index.d.mts.map +1 -1
  3. package/dist/index.mjs +74 -45
  4. package/dist/index.mjs.map +1 -1
  5. package/package.json +6 -12
  6. package/src/adapter/OrderAdapter.ts +1 -0
  7. package/src/dto/aiUsage/AiUsagePeriodDto.ts +4 -4
  8. package/src/dto/order/OrderDto.ts +12 -2
  9. package/src/dto/statistics/InsightsResponseDto.ts +4 -4
  10. package/src/service/AdminMerchantsService.ts +5 -6
  11. package/src/service/MerchantBuyerService.ts +4 -5
  12. package/src/service/MerchantBuyersService.ts +5 -6
  13. package/src/service/MerchantContractService.ts +4 -5
  14. package/src/service/MerchantDiscountCodesService.ts +4 -12
  15. package/src/service/MerchantEmailTemplatesService.ts +5 -6
  16. package/src/service/MerchantEventAppTeamsService.ts +4 -5
  17. package/src/service/MerchantEventEmailTemplatesService.ts +5 -6
  18. package/src/service/MerchantEventProductsService.ts +4 -5
  19. package/src/service/MerchantEventShopsService.ts +4 -5
  20. package/src/service/MerchantEventStockPoolsService.ts +4 -5
  21. package/src/service/MerchantEventTicketTemplatesService.ts +4 -7
  22. package/src/service/MerchantEventTimeSlotsService.ts +14 -1
  23. package/src/service/MerchantEventsService.ts +17 -5
  24. package/src/service/MerchantFinanceInvoicesService.ts +5 -6
  25. package/src/service/MerchantOrdersService.ts +5 -15
  26. package/src/service/MerchantShopsService.ts +5 -6
  27. package/src/service/MerchantTicketsService.ts +5 -15
  28. package/src/service/MerchantUsersService.ts +4 -6
  29. package/src/service/PublicShopService.ts +1 -1
  30. package/src/types/index.ts +1 -0
  31. package/src/types/list.ts +12 -0
  32. package/src/types/order.ts +5 -0
  33. package/src/util/buildListQuery.ts +48 -0
  34. package/src/util/index.ts +1 -0
package/dist/index.mjs CHANGED
@@ -3438,6 +3438,12 @@ let OrderDto = class OrderDto {
3438
3438
  set refundedTotal(value) {
3439
3439
  this.#refundedTotal = value;
3440
3440
  }
3441
+ get refundStatus() {
3442
+ return this.#refundStatus;
3443
+ }
3444
+ set refundStatus(value) {
3445
+ this.#refundStatus = value;
3446
+ }
3441
3447
  get subTotal() {
3442
3448
  return this.#subTotal;
3443
3449
  }
@@ -3502,6 +3508,7 @@ let OrderDto = class OrderDto {
3502
3508
  #paymentProvider;
3503
3509
  #platformCost;
3504
3510
  #refundedTotal;
3511
+ #refundStatus;
3505
3512
  #subTotal;
3506
3513
  #total;
3507
3514
  #url;
@@ -3511,7 +3518,7 @@ let OrderDto = class OrderDto {
3511
3518
  #shop;
3512
3519
  #transaction;
3513
3520
  #attribution;
3514
- constructor(id, code, origin, type, createdOn, discountAmount, discountCodeApplied, paymentProvider, platformCost, refundedTotal, subTotal, total, url, buyer, event, lines, shop, transaction, attribution) {
3521
+ constructor(id, code, origin, type, createdOn, discountAmount, discountCodeApplied, paymentProvider, platformCost, refundedTotal, refundStatus, subTotal, total, url, buyer, event, lines, shop, transaction, attribution) {
3515
3522
  this.#id = id;
3516
3523
  this.#code = code;
3517
3524
  this.#origin = origin;
@@ -3522,6 +3529,7 @@ let OrderDto = class OrderDto {
3522
3529
  this.#paymentProvider = paymentProvider;
3523
3530
  this.#platformCost = platformCost;
3524
3531
  this.#refundedTotal = refundedTotal;
3532
+ this.#refundStatus = refundStatus;
3525
3533
  this.#subTotal = subTotal;
3526
3534
  this.#total = total;
3527
3535
  this.#url = url;
@@ -7942,6 +7950,27 @@ let AddressAdapter = class AddressAdapter {
7942
7950
  };
7943
7951
  AddressAdapter = __decorate([adapter], AddressAdapter);
7944
7952
 
7953
+ //#endregion
7954
+ //#region src/util/buildListQuery.ts
7955
+ function buildListQuery_default(params, language = "nl") {
7956
+ const query = QueryString.builder().append("language", language).append("offset", params.offset).append("limit", params.limit);
7957
+ if (params.search) query.append("search", params.search);
7958
+ if (params.filters) {
7959
+ for (const [key, value] of Object.entries(params.filters)) if (Array.isArray(value)) query.appendArray(`${key}[]`, value.map(serialize));
7960
+ else if (value !== null && value !== void 0) {
7961
+ const serialized = serialize(value);
7962
+ if (serialized !== null) query.append(key, serialized);
7963
+ }
7964
+ }
7965
+ return query;
7966
+ }
7967
+ function serialize(value) {
7968
+ if (DateTime.isDateTime(value)) return value.toISO();
7969
+ if (value === null || value === void 0) return null;
7970
+ if (typeof value === "string" || typeof value === "number" || typeof value === "boolean") return value;
7971
+ return String(value);
7972
+ }
7973
+
7945
7974
  //#endregion
7946
7975
  //#region src/util/emptyNull.ts
7947
7976
  function emptyNull_default(value) {
@@ -8301,7 +8330,7 @@ MerchantDashboardAdapter = __decorate([adapter], MerchantDashboardAdapter);
8301
8330
  var _OrderAdapter;
8302
8331
  let OrderAdapter = _OrderAdapter = class OrderAdapter {
8303
8332
  static parseOrder(data) {
8304
- return new OrderDto(data.id, data.code, data.origin, data.type, DateTimeAdapter.parseDateTime(data.created_on), optional_default(data.discount_amount, PaymentAdapter.parseCost), data.discount_code_applied ?? null, optional_default(data.payment_provider, _OrderAdapter.parseOrderPaymentProvider), optional_default(data.platform_cost, PaymentAdapter.parseCost), optional_default(data.refunded_total, PaymentAdapter.parseCost), optional_default(data.sub_total, PaymentAdapter.parseCost), optional_default(data.total, PaymentAdapter.parseCost), data.url, optional_default(data.buyer, BuyerAdapter.parseBuyer), optional_default(data.event, EventAdapter.parseEvent), optionalArray_default(data.lines, _OrderAdapter.parseOrderLine), optional_default(data.shop, PublicShopAdapter.parsePublicShop), optional_default(data.transaction, PaymentAdapter.parseTransaction), optional_default(data.attribution, MarketingAttributionAdapter.parseMarketingAttribution));
8333
+ return new OrderDto(data.id, data.code, data.origin, data.type, DateTimeAdapter.parseDateTime(data.created_on), optional_default(data.discount_amount, PaymentAdapter.parseCost), data.discount_code_applied ?? null, optional_default(data.payment_provider, _OrderAdapter.parseOrderPaymentProvider), optional_default(data.platform_cost, PaymentAdapter.parseCost), optional_default(data.refunded_total, PaymentAdapter.parseCost), data.refund_status, optional_default(data.sub_total, PaymentAdapter.parseCost), optional_default(data.total, PaymentAdapter.parseCost), data.url, optional_default(data.buyer, BuyerAdapter.parseBuyer), optional_default(data.event, EventAdapter.parseEvent), optionalArray_default(data.lines, _OrderAdapter.parseOrderLine), optional_default(data.shop, PublicShopAdapter.parsePublicShop), optional_default(data.transaction, PaymentAdapter.parseTransaction), optional_default(data.attribution, MarketingAttributionAdapter.parseMarketingAttribution));
8305
8334
  }
8306
8335
  static parseOrderLine(data) {
8307
8336
  return new OrderLineDto(data.id, PaymentAdapter.parseCost(data.price), data.quantity, _OrderAdapter.parseOrderProduct(data.product), PaymentAdapter.parseCost(data.sub_total), DateTimeAdapter.parseDateTime(data.created_on), DateTimeAdapter.parseDateTime(data.updated_on));
@@ -8782,8 +8811,8 @@ var AdminMerchantSubscriptionService = class extends BaseService {
8782
8811
  //#endregion
8783
8812
  //#region src/service/AdminMerchantsService.ts
8784
8813
  var AdminMerchantsService = class extends BaseService {
8785
- async get(offset, limit) {
8786
- return await this.request("/admin/merchants").method("get").queryString(QueryString.builder().append("language", "nl").append("offset", offset).append("limit", limit)).bearerToken().runPaginatedAdapter(MerchantAdapter.parseMerchant);
8814
+ async get(params) {
8815
+ return await this.request("/admin/merchants").method("get").queryString(buildListQuery_default(params)).bearerToken().runPaginatedAdapter(MerchantAdapter.parseMerchant);
8787
8816
  }
8788
8817
  };
8789
8818
 
@@ -8892,8 +8921,8 @@ var MerchantsService = class extends BaseService {
8892
8921
  //#endregion
8893
8922
  //#region src/service/MerchantContractService.ts
8894
8923
  var MerchantContractService = class extends BaseService {
8895
- async get(merchantId, offset, limit) {
8896
- return await this.request(`/merchants/${merchantId}/contracts`).method("get").bearerToken().queryString(QueryString.builder().append("language", "nl").append("offset", offset).append("limit", limit)).runPaginatedAdapter(MerchantAdapter.parseContract);
8924
+ async get(merchantId, params) {
8925
+ return await this.request(`/merchants/${merchantId}/contracts`).method("get").bearerToken().queryString(buildListQuery_default(params)).runPaginatedAdapter(MerchantAdapter.parseContract);
8897
8926
  }
8898
8927
  async getSingle(merchantId, contractId) {
8899
8928
  return await this.request(`/merchants/${merchantId}/contracts/${contractId}`).method("get").bearerToken().queryString(QueryString.builder().append("language", "nl")).runAdapter(MerchantAdapter.parseContract);
@@ -8925,16 +8954,16 @@ var MerchantBuyerService = class extends BaseService {
8925
8954
  async getOrder(merchantId, buyerId, orderId) {
8926
8955
  return await this.request(`/merchants/${merchantId}/buyers/${buyerId}/orders/${orderId}`).method("get").bearerToken().queryString(QueryString.builder().append("language", "nl")).runAdapter(OrderAdapter.parseOrder);
8927
8956
  }
8928
- async getOrders(merchantId, buyerId, offset, limit) {
8929
- return await this.request(`/merchants/${merchantId}/buyers/${buyerId}/orders`).method("get").bearerToken().queryString(QueryString.builder().append("language", "nl").append("offset", offset).append("limit", limit)).runPaginatedAdapter(OrderAdapter.parseOrder);
8957
+ async getOrders(merchantId, buyerId, params) {
8958
+ return await this.request(`/merchants/${merchantId}/buyers/${buyerId}/orders`).method("get").bearerToken().queryString(buildListQuery_default(params)).runPaginatedAdapter(OrderAdapter.parseOrder);
8930
8959
  }
8931
8960
  };
8932
8961
 
8933
8962
  //#endregion
8934
8963
  //#region src/service/MerchantBuyersService.ts
8935
8964
  var MerchantBuyersService = class extends BaseService {
8936
- async get(merchantId, offset, limit) {
8937
- return await this.request(`/merchants/${merchantId}/buyers`).method("get").queryString(QueryString.builder().append("language", "nl").append("offset", offset).append("limit", limit)).bearerToken().runPaginatedAdapter(BuyerAdapter.parseBuyer);
8965
+ async get(merchantId, params) {
8966
+ return await this.request(`/merchants/${merchantId}/buyers`).method("get").queryString(buildListQuery_default(params)).bearerToken().runPaginatedAdapter(BuyerAdapter.parseBuyer);
8938
8967
  }
8939
8968
  };
8940
8969
 
@@ -8971,10 +9000,8 @@ var MerchantDiscountCodeService = class extends BaseService {
8971
9000
  //#endregion
8972
9001
  //#region src/service/MerchantDiscountCodesService.ts
8973
9002
  var MerchantDiscountCodesService = class extends BaseService {
8974
- async get(merchantId, offset, limit, eventId = null) {
8975
- const qs = QueryString.builder().append("language", "nl").append("offset", offset).append("limit", limit);
8976
- if (eventId !== null) qs.append("event_id", eventId);
8977
- return await this.request(`/merchants/${merchantId}/discount-codes`).method("get").bearerToken().queryString(qs).runPaginatedAdapter(DiscountCodeAdapter.parseDiscountCode);
9003
+ async get(merchantId, params) {
9004
+ return await this.request(`/merchants/${merchantId}/discount-codes`).method("get").bearerToken().queryString(buildListQuery_default(params)).runPaginatedAdapter(DiscountCodeAdapter.parseDiscountCode);
8978
9005
  }
8979
9006
  async post(merchantId, code, type, validFrom, validUntil, percentage, amountCents, maxUses, eventId) {
8980
9007
  return await this.request(`/merchants/${merchantId}/discount-codes`).method("post").bearerToken().queryString(QueryString.builder().append("language", "nl")).body({
@@ -9007,8 +9034,8 @@ var MerchantEventAppTeamService = class extends BaseService {
9007
9034
  //#endregion
9008
9035
  //#region src/service/MerchantEventAppTeamsService.ts
9009
9036
  var MerchantEventAppTeamsService = class extends BaseService {
9010
- async get(merchantId, eventId, offset, limit) {
9011
- return await this.request(`/merchants/${merchantId}/events/${eventId}/app-teams`).method("get").bearerToken().queryString(QueryString.builder().append("language", "nl").append("offset", offset).append("limit", limit)).runPaginatedAdapter(EventAdapter.parseAppTeam);
9037
+ async get(merchantId, eventId, params) {
9038
+ return await this.request(`/merchants/${merchantId}/events/${eventId}/app-teams`).method("get").bearerToken().queryString(buildListQuery_default(params)).runPaginatedAdapter(EventAdapter.parseAppTeam);
9012
9039
  }
9013
9040
  async post(merchantId, eventId, name) {
9014
9041
  return await this.request(`/merchants/${merchantId}/events/${eventId}/app-teams`).method("post").bearerToken().queryString(QueryString.builder().append("language", "nl")).body({ name }).runAdapter(EventAdapter.parseAppTeam);
@@ -9057,8 +9084,8 @@ var MerchantEventProductService = class extends BaseService {
9057
9084
  //#endregion
9058
9085
  //#region src/service/MerchantEventProductsService.ts
9059
9086
  var MerchantEventProductsService = class extends BaseService {
9060
- async get(merchantId, eventId, offset, limit) {
9061
- return await this.request(`/merchants/${merchantId}/events/${eventId}/products`).method("get").bearerToken().queryString(QueryString.builder().append("language", "nl").append("offset", offset).append("limit", limit)).runPaginatedAdapter(ProductAdapter.parseProduct);
9087
+ async get(merchantId, eventId, params) {
9088
+ return await this.request(`/merchants/${merchantId}/events/${eventId}/products`).method("get").bearerToken().queryString(buildListQuery_default(params)).runPaginatedAdapter(ProductAdapter.parseProduct);
9062
9089
  }
9063
9090
  async getSelectOptions(merchantId, eventId, searchQuery = null, ids = null) {
9064
9091
  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);
@@ -9238,6 +9265,9 @@ var MerchantEventTimeSlotsService = class extends BaseService {
9238
9265
  async list(merchantId, eventId, offset, limit) {
9239
9266
  return await this.request(`/merchants/${merchantId}/events/${eventId}/time-slots`).method("get").queryString(QueryString.builder().append("language", "nl").append("offset", offset).append("limit", limit)).bearerToken().runPaginatedAdapter(EventAdapter.parseTimeSlot);
9240
9267
  }
9268
+ async getSelectOptions(merchantId, eventId, searchQuery = null, ids = null) {
9269
+ return await this.request(`/merchants/${merchantId}/events/${eventId}/time-slots/select-options`).method("get").queryString(QueryString.builder().append("language", "nl").appendArray("ids[]", ids).append("searchQuery", searchQuery)).bearerToken().runArrayAdapter(FluxAdapter.parseFluxFormSelectEntry);
9270
+ }
9241
9271
  async create(merchantId, eventId, fromTime, toTime, label = null) {
9242
9272
  return await this.request(`/merchants/${merchantId}/events/${eventId}/time-slots`).method("post").bearerToken().queryString(QueryString.builder().append("language", "nl")).body({
9243
9273
  from_time: fromTime.toISO(),
@@ -9295,8 +9325,8 @@ var MerchantEventShopService = class extends BaseService {
9295
9325
  //#endregion
9296
9326
  //#region src/service/MerchantEventShopsService.ts
9297
9327
  var MerchantEventShopsService = class extends BaseService {
9298
- async get(merchantId, eventId, offset, limit) {
9299
- return await this.request(`/merchants/${merchantId}/events/${eventId}/shops`).method("get").queryString(QueryString.builder().append("language", "nl").append("offset", offset).append("limit", limit)).bearerToken().runPaginatedAdapter(EventAdapter.parseShop);
9328
+ async get(merchantId, eventId, params) {
9329
+ return await this.request(`/merchants/${merchantId}/events/${eventId}/shops`).method("get").queryString(buildListQuery_default(params)).bearerToken().runPaginatedAdapter(EventAdapter.parseShop);
9300
9330
  }
9301
9331
  async post(merchantId, eventId, name, startsOn, endsOn) {
9302
9332
  return await this.request(`/merchants/${merchantId}/events/${eventId}/shops`).method("post").bearerToken().queryString(QueryString.builder().append("language", "nl")).body({
@@ -9313,8 +9343,8 @@ var MerchantEventShopsService = class extends BaseService {
9313
9343
  //#endregion
9314
9344
  //#region src/service/MerchantEventStockPoolsService.ts
9315
9345
  var MerchantEventStockPoolsService = class extends BaseService {
9316
- async get(merchantId, eventId, offset, limit) {
9317
- return await this.request(`/merchants/${merchantId}/events/${eventId}/stock-pools`).method("get").queryString(QueryString.builder().append("language", "nl").append("offset", offset).append("limit", limit)).bearerToken().runPaginatedAdapter(EventAdapter.parseStockPool);
9346
+ async get(merchantId, eventId, params) {
9347
+ return await this.request(`/merchants/${merchantId}/events/${eventId}/stock-pools`).method("get").queryString(buildListQuery_default(params)).bearerToken().runPaginatedAdapter(EventAdapter.parseStockPool);
9318
9348
  }
9319
9349
  async getOverview(merchantId, eventId) {
9320
9350
  return await this.request(`/merchants/${merchantId}/events/${eventId}/stock-pools/overview`).method("get").queryString(QueryString.builder().append("language", "nl")).bearerToken().runAdapter(EventAdapter.parseStockOverview);
@@ -9362,8 +9392,8 @@ var MerchantEventTicketTemplateService = class extends BaseService {
9362
9392
  //#endregion
9363
9393
  //#region src/service/MerchantEventTicketTemplatesService.ts
9364
9394
  var MerchantEventTicketTemplatesService = class extends BaseService {
9365
- async get(merchantId, eventId, offset, limit) {
9366
- return await this.request(`/merchants/${merchantId}/events/${eventId}/ticket-templates`).method("get").queryString(QueryString.builder().append("language", "nl").append("offset", offset).append("limit", limit)).bearerToken().runPaginatedAdapter(EventAdapter.parseTicketTemplate);
9395
+ async get(merchantId, eventId, params) {
9396
+ return await this.request(`/merchants/${merchantId}/events/${eventId}/ticket-templates`).method("get").queryString(buildListQuery_default(params)).bearerToken().runPaginatedAdapter(EventAdapter.parseTicketTemplate);
9367
9397
  }
9368
9398
  async getSelectOptions(merchantId, eventId, searchQuery = null, ids = null) {
9369
9399
  return await this.request(`/merchants/${merchantId}/events/${eventId}/ticket-templates/select-options`).method("get").queryString(QueryString.builder().append("language", "nl").appendArray("ids[]", ids).append("searchQuery", searchQuery)).bearerToken().runArrayAdapter(FluxAdapter.parseFluxFormSelectEntry);
@@ -9404,8 +9434,8 @@ var MerchantEmailTemplateService = class extends BaseService {
9404
9434
  //#endregion
9405
9435
  //#region src/service/MerchantEmailTemplatesService.ts
9406
9436
  var MerchantEmailTemplatesService = class extends BaseService {
9407
- async get(merchantId, offset, limit) {
9408
- return await this.request(`/merchants/${merchantId}/email-templates`).method("get").bearerToken().queryString(QueryString.builder().append("offset", offset).append("limit", limit)).runPaginatedAdapter(EmailTemplateAdapter.parseEmailTemplate);
9437
+ async get(merchantId, params) {
9438
+ return await this.request(`/merchants/${merchantId}/email-templates`).method("get").bearerToken().queryString(buildListQuery_default(params)).runPaginatedAdapter(EmailTemplateAdapter.parseEmailTemplate);
9409
9439
  }
9410
9440
  async post(merchantId, type, subject, content, language = null) {
9411
9441
  return await this.request(`/merchants/${merchantId}/email-templates`).method("post").bearerToken().body({
@@ -9441,8 +9471,8 @@ var MerchantEventEmailTemplateService = class extends BaseService {
9441
9471
  //#endregion
9442
9472
  //#region src/service/MerchantEventEmailTemplatesService.ts
9443
9473
  var MerchantEventEmailTemplatesService = class extends BaseService {
9444
- async get(merchantId, eventId, offset, limit) {
9445
- return await this.request(`/merchants/${merchantId}/events/${eventId}/email-templates`).method("get").bearerToken().queryString(QueryString.builder().append("offset", offset).append("limit", limit)).runPaginatedAdapter(EmailTemplateAdapter.parseEmailTemplate);
9474
+ async get(merchantId, eventId, params) {
9475
+ return await this.request(`/merchants/${merchantId}/events/${eventId}/email-templates`).method("get").bearerToken().queryString(buildListQuery_default(params)).runPaginatedAdapter(EmailTemplateAdapter.parseEmailTemplate);
9446
9476
  }
9447
9477
  async post(merchantId, eventId, type, subject, content, language = null) {
9448
9478
  return await this.request(`/merchants/${merchantId}/events/${eventId}/email-templates`).method("post").bearerToken().body({
@@ -9457,8 +9487,11 @@ var MerchantEventEmailTemplatesService = class extends BaseService {
9457
9487
  //#endregion
9458
9488
  //#region src/service/MerchantEventsService.ts
9459
9489
  var MerchantEventsService = class extends BaseService {
9460
- async get(merchantId, offset, limit) {
9461
- return await this.request(`/merchants/${merchantId}/events`).method("get").bearerToken().queryString(QueryString.builder().append("language", "nl").append("offset", offset).append("limit", limit)).runPaginatedAdapter(EventAdapter.parseEvent);
9490
+ async get(merchantId, params) {
9491
+ return await this.request(`/merchants/${merchantId}/events`).method("get").bearerToken().queryString(buildListQuery_default(params)).runPaginatedAdapter(EventAdapter.parseEvent);
9492
+ }
9493
+ async getSelectOptions(merchantId, searchQuery = null, ids = null) {
9494
+ return await this.request(`/merchants/${merchantId}/events/select-options`).method("get").queryString(QueryString.builder().append("language", "nl").appendArray("ids[]", ids).append("searchQuery", searchQuery)).bearerToken().runArrayAdapter(FluxAdapter.parseFluxFormSelectEntry);
9462
9495
  }
9463
9496
  async post(merchantId, name, description, startsOn, endsOn, minimumAge) {
9464
9497
  return await this.request(`/merchants/${merchantId}/events`).method("post").bearerToken().queryString(QueryString.builder().append("language", "nl")).body({
@@ -9485,8 +9518,8 @@ var MerchantFinanceInvoiceService = class extends BaseService {
9485
9518
  //#endregion
9486
9519
  //#region src/service/MerchantFinanceInvoicesService.ts
9487
9520
  var MerchantFinanceInvoicesService = class extends BaseService {
9488
- async get(merchantId, offset, limit) {
9489
- return await this.request(`/merchants/${merchantId}/finance/invoices`).method("get").bearerToken().queryString(QueryString.builder().append("language", "nl").append("offset", offset).append("limit", limit)).runPaginatedAdapter(FinanceAdapter.parseInvoice);
9521
+ async get(merchantId, params) {
9522
+ return await this.request(`/merchants/${merchantId}/finance/invoices`).method("get").bearerToken().queryString(buildListQuery_default(params)).runPaginatedAdapter(FinanceAdapter.parseInvoice);
9490
9523
  }
9491
9524
  };
9492
9525
 
@@ -9540,10 +9573,8 @@ var MerchantOrderService = class extends BaseService {
9540
9573
  //#endregion
9541
9574
  //#region src/service/MerchantOrdersService.ts
9542
9575
  var MerchantOrdersService = class extends BaseService {
9543
- async get(merchantId, offset, limit, filter) {
9544
- const query = QueryString.builder().append("language", "nl").append("offset", offset).append("limit", limit);
9545
- if (filter) Object.entries(filter).forEach(([key, value]) => query.append(key, value));
9546
- return await this.request(`/merchants/${merchantId}/orders`).method("get").queryString(query).bearerToken().runPaginatedAdapter(OrderAdapter.parseOrder);
9576
+ async get(merchantId, params) {
9577
+ return await this.request(`/merchants/${merchantId}/orders`).method("get").queryString(buildListQuery_default(params)).bearerToken().runPaginatedAdapter(OrderAdapter.parseOrder);
9547
9578
  }
9548
9579
  };
9549
9580
 
@@ -9564,8 +9595,8 @@ var MerchantShopService = class extends BaseService {
9564
9595
  //#endregion
9565
9596
  //#region src/service/MerchantShopsService.ts
9566
9597
  var MerchantShopsService = class extends BaseService {
9567
- async get(merchantId, offset, limit) {
9568
- return await this.request(`/merchants/${merchantId}/shops`).method("get").queryString(QueryString.builder().append("language", "nl").append("offset", offset).append("limit", limit)).bearerToken().runPaginatedAdapter(EventAdapter.parseShop);
9598
+ async get(merchantId, params) {
9599
+ return await this.request(`/merchants/${merchantId}/shops`).method("get").queryString(buildListQuery_default(params)).bearerToken().runPaginatedAdapter(EventAdapter.parseShop);
9569
9600
  }
9570
9601
  };
9571
9602
 
@@ -9962,10 +9993,8 @@ var MerchantTicketService = class extends BaseService {
9962
9993
  //#endregion
9963
9994
  //#region src/service/MerchantTicketsService.ts
9964
9995
  var MerchantTicketsService = class extends BaseService {
9965
- async get(merchantId, offset, limit, filter) {
9966
- const query = QueryString.builder().append("language", "nl").append("offset", offset).append("limit", limit);
9967
- if (filter) Object.entries(filter).forEach(([key, value]) => query.append(key, value));
9968
- return await this.request(`/merchants/${merchantId}/tickets`).method("get").queryString(query).bearerToken().runPaginatedAdapter(TicketAdapter.parseTicket);
9996
+ async get(merchantId, params) {
9997
+ return await this.request(`/merchants/${merchantId}/tickets`).method("get").queryString(buildListQuery_default(params)).bearerToken().runPaginatedAdapter(TicketAdapter.parseTicket);
9969
9998
  }
9970
9999
  };
9971
10000
 
@@ -9989,8 +10018,8 @@ var MerchantUserService = class extends BaseService {
9989
10018
  //#endregion
9990
10019
  //#region src/service/MerchantUsersService.ts
9991
10020
  var MerchantUsersService = class extends BaseService {
9992
- async get(merchantId, offset, limit) {
9993
- return await this.request(`/merchants/${merchantId}/users`).method("get").queryString(QueryString.builder().append("language", "nl").append("offset", offset).append("limit", limit)).bearerToken().runPaginatedAdapter(MerchantAdapter.parseMerchantUser);
10021
+ async get(merchantId, params) {
10022
+ return await this.request(`/merchants/${merchantId}/users`).method("get").queryString(buildListQuery_default(params)).bearerToken().runPaginatedAdapter(MerchantAdapter.parseMerchantUser);
9994
10023
  }
9995
10024
  async postInvite(merchantId, firstName, lastName, email, claims) {
9996
10025
  return await this.request(`/merchants/${merchantId}/users/invite`).method("post").queryString(QueryString.builder().append("language", "nl")).bearerToken().body({
@@ -10513,5 +10542,5 @@ var UiSelectOptionsService = class extends BaseService {
10513
10542
  };
10514
10543
 
10515
10544
  //#endregion
10516
- export { AddressAdapter, AddressDto, AdminMerchantService, AdminMerchantSubscriptionService, AdminMerchantsService, AdminService, AiChatAdapter, AiChatConversationDto, AiChatMessageDto, AiChatToolCallDto, AiUsageAdapter, AiUsageDto, AiUsageFeatureStatusDto, AiUsagePeriodDto, AppTeamDto, AuthAdapter, AuthService, BuyerAdapter, BuyerDto, CashFlowAdapter, CashFlowDiscountDto, CashFlowDto, CashFlowPaymentDto, CashFlowPlatformCostDto, CashFlowRefundDto, CashFlowTimelineEventDto, CommonAdapter, ContentCalendarAdapter, ContentCalendarItemCreatorDto, ContentCalendarItemDto, ContractDto, CostDto, DateTimeAdapter, DiscountCodeAdapter, DiscountCodeDto, EMAIL_TEMPLATE_EDITOR_CONTEXTS, EmailTemplateAdapter, EmailTemplateDto, EventAdapter, EventAvailabilityDto, EventCountersDto, EventDto, EventStatisticsAppTeamDto, EventStatisticsAttendanceDto, EventStatisticsBuyersAdapter, EventStatisticsBuyersOverviewDto, EventStatisticsFinancialDto, EventStatisticsKpisDto, EventStatisticsOperationsAdapter, EventStatisticsOperationsOverviewDto, EventStatisticsOverviewAdapter, EventStatisticsStatusDto, EventStatisticsSwapsDto, FileSystemAdapter, FinanceAdapter, FinanceOverviewDto, FluxAdapter, InsightDto, InsightSignalDto, InsightsResponseDto, InvitationDto, InvitationService, InvoiceDto, InvoiceLineDto, MarketingAttributionAdapter, MarketingAttributionDto, MeService, MerchantAdapter, MerchantAiChatService, MerchantAiSettingsService, MerchantAiUsageService, MerchantBuyerService, MerchantBuyersService, MerchantContractService, MerchantDashboardAdapter, MerchantDashboardKeyMetricsDto, MerchantDashboardService, MerchantDashboardUpcomingEventDto, MerchantDiscountCodeService, MerchantDiscountCodesService, MerchantDto, MerchantEmailTemplateService, MerchantEmailTemplatesService, MerchantEventAppTeamService, MerchantEventAppTeamsService, MerchantEventContentCalendarService, MerchantEventEmailTemplateService, MerchantEventEmailTemplatesService, MerchantEventProductService, MerchantEventProductsService, MerchantEventService, MerchantEventShopService, MerchantEventShopsService, MerchantEventStatisticsBuyersService, MerchantEventStatisticsOperationsService, MerchantEventStatisticsOverviewService, MerchantEventStatisticsSalesService, MerchantEventStockPoolsService, MerchantEventTicketTemplateService, MerchantEventTicketTemplatesService, MerchantEventTimeSlotService, MerchantEventTimeSlotsService, MerchantEventsService, MerchantFinanceInvoiceService, MerchantFinanceInvoicesService, MerchantFinanceService, MerchantOrderService, MerchantOrdersService, MerchantService, MerchantShopService, MerchantShopsService, MerchantStatisticsBuyersService, MerchantStatisticsEventsService, MerchantStatisticsGrowthService, MerchantStatisticsInsightsService, MerchantStatisticsMarketingService, MerchantStatisticsOperationsService, MerchantStatisticsOverviewService, MerchantStatisticsRefundsService, MerchantStatisticsSalesService, MerchantStatisticsService, MerchantSubscriptionDto, MerchantTicketService, MerchantTicketsService, MerchantUserDto, MerchantUserService, MerchantUsersService, MerchantsService, MilestoneDto, OrderAdapter, OrderDto, OrderLineDto, OrderPaymentProviderDto, OrderProductDto, PaymentAdapter, PaymentMethodDto, PaymentProviderDto, PictureDto, ProductAdapter, ProductDto, PublicOrderService, PublicPayAdapter, PublicPaymentMethodDto, PublicShopAdapter, PublicShopCartProductDto, PublicShopDesignDto, PublicShopDto, PublicShopElementButtonDto, PublicShopElementDividerDto, PublicShopElementDto, PublicShopElementHeadingDto, PublicShopElementInformationDto, PublicShopElementNoticeDto, PublicShopElementProductDto, PublicShopElementTextDto, PublicShopEventDto, PublicShopMerchantDto, PublicShopProductDto, PublicShopReservationDto, PublicShopReservationProductDetailsDto, PublicShopReservationProductDto, PublicShopService, PublicShopTimeSlotDto, RefundAdapter, RefundDto, RefundInitiatorDto, RefundTicketRefDto, RefundabilityDto, RenderedMailDto, ReservationAdapter, ReservationDto, ReservationItemDto, ReservationProductDto, ReservationService, ServiceAdapter, ServiceInfoDto, ServicesService, ShopDesignDto, ShopDto, ShopElementButtonDto, ShopElementDividerDto, ShopElementDto, ShopElementHeadingDto, ShopElementInformationDto, ShopElementNoticeDto, ShopElementProductDto, ShopElementTextDto, ShortlinkAdapter, ShortlinkDto, StatisticsAdapter, StatisticsBuyersAcquisitionSourceDto, StatisticsBuyersAdapter, StatisticsBuyersAgeGenderMatrixDto, StatisticsBuyersCohortRetentionDto, StatisticsBuyersDeviceConversionDto, StatisticsBuyersGeographicDistributionDto, StatisticsBuyersOverviewDto, StatisticsBuyersRankedDto, StatisticsBuyersSpendBucketsDto, StatisticsChartAdapter, StatisticsChartDto, StatisticsEventsAdapter, StatisticsEventsOverviewDto, StatisticsEventsSalesCurveDto, StatisticsEventsSalesCurveEventDto, StatisticsEventsSellOutTimingDto, StatisticsEventsSellOutTimingEventDto, StatisticsEventsTimeToEventDto, StatisticsGrowthAdapter, StatisticsGrowthCmgrDto, StatisticsGrowthOverviewDto, StatisticsInsightsAdapter, StatisticsMarketingAdapter, StatisticsMarketingCampaignDto, StatisticsMarketingOverviewDto, StatisticsMarketingReferrerDto, StatisticsMarketingShortlinkRoiDto, StatisticsMarketingSourceBreakdownDto, StatisticsMarketingSourceFunnelDto, StatisticsMarketingSourceMediumMatrixDto, StatisticsOperationsAdapter, StatisticsOperationsAppTeamDto, StatisticsOperationsNoShowRateDto, StatisticsOperationsNoShowRateEventDto, StatisticsOperationsOverviewDto, StatisticsOperationsScanTimeDistributionDto, StatisticsOperationsStewardDto, StatisticsOperationsStockUtilizationDto, StatisticsOverviewAdapter, StatisticsOverviewBestRevenueMonthDto, StatisticsOverviewCancellationFunnelDto, StatisticsOverviewEventPerformanceDto, StatisticsOverviewEventPerformanceEventDto, StatisticsOverviewEventPerformanceSummaryDto, StatisticsOverviewKPIsDto, StatisticsOverviewKPIsTotalEventsHostedDto, StatisticsOverviewKPIsTotalRevenueDto, StatisticsOverviewKPIsTotalTicketsSoldDto, StatisticsOverviewReservationConversionRateDto, StatisticsOverviewTopShopDto, StatisticsPieChartDto, StatisticsRefundsAdapter, StatisticsRefundsAmountDistributionDto, StatisticsRefundsOverviewDto, StatisticsRefundsTopEventDto, StatisticsRefundsVelocityDto, StatisticsSalesAdapter, StatisticsSalesDiscountEfficacyDto, StatisticsSalesFailedTransactionReasonDto, StatisticsSalesLifetimeTotalsDto, StatisticsSalesOrderValueDistributionDto, StatisticsSalesPurchaseBehaviorDto, StatisticsSalesRepeatPurchaseVelocityDto, StatisticsSalesTransactionSuccessRateDto, StatisticsTrendDto, StatusResponseDto, StockOverviewDto, StockOverviewItemDto, StockPoolDto, SubscriptionAdapter, SubscriptionPlanDto, TicketAdapter, TicketDto, TicketTemplateDto, TimeSlotDto, TotpStateDto, TransactionDto, UiSelectOptionsService, UserDto, UserTokenDto, VatNumberDto, emptyNull_default as emptyNull, jsonBlob_default as jsonBlob, optional_default as optional, optionalArray_default as optionalArray, parseEmailTemplate, serializeBlocks };
10545
+ export { AddressAdapter, AddressDto, AdminMerchantService, AdminMerchantSubscriptionService, AdminMerchantsService, AdminService, AiChatAdapter, AiChatConversationDto, AiChatMessageDto, AiChatToolCallDto, AiUsageAdapter, AiUsageDto, AiUsageFeatureStatusDto, AiUsagePeriodDto, AppTeamDto, AuthAdapter, AuthService, BuyerAdapter, BuyerDto, CashFlowAdapter, CashFlowDiscountDto, CashFlowDto, CashFlowPaymentDto, CashFlowPlatformCostDto, CashFlowRefundDto, CashFlowTimelineEventDto, CommonAdapter, ContentCalendarAdapter, ContentCalendarItemCreatorDto, ContentCalendarItemDto, ContractDto, CostDto, DateTimeAdapter, DiscountCodeAdapter, DiscountCodeDto, EMAIL_TEMPLATE_EDITOR_CONTEXTS, EmailTemplateAdapter, EmailTemplateDto, EventAdapter, EventAvailabilityDto, EventCountersDto, EventDto, EventStatisticsAppTeamDto, EventStatisticsAttendanceDto, EventStatisticsBuyersAdapter, EventStatisticsBuyersOverviewDto, EventStatisticsFinancialDto, EventStatisticsKpisDto, EventStatisticsOperationsAdapter, EventStatisticsOperationsOverviewDto, EventStatisticsOverviewAdapter, EventStatisticsStatusDto, EventStatisticsSwapsDto, FileSystemAdapter, FinanceAdapter, FinanceOverviewDto, FluxAdapter, InsightDto, InsightSignalDto, InsightsResponseDto, InvitationDto, InvitationService, InvoiceDto, InvoiceLineDto, MarketingAttributionAdapter, MarketingAttributionDto, MeService, MerchantAdapter, MerchantAiChatService, MerchantAiSettingsService, MerchantAiUsageService, MerchantBuyerService, MerchantBuyersService, MerchantContractService, MerchantDashboardAdapter, MerchantDashboardKeyMetricsDto, MerchantDashboardService, MerchantDashboardUpcomingEventDto, MerchantDiscountCodeService, MerchantDiscountCodesService, MerchantDto, MerchantEmailTemplateService, MerchantEmailTemplatesService, MerchantEventAppTeamService, MerchantEventAppTeamsService, MerchantEventContentCalendarService, MerchantEventEmailTemplateService, MerchantEventEmailTemplatesService, MerchantEventProductService, MerchantEventProductsService, MerchantEventService, MerchantEventShopService, MerchantEventShopsService, MerchantEventStatisticsBuyersService, MerchantEventStatisticsOperationsService, MerchantEventStatisticsOverviewService, MerchantEventStatisticsSalesService, MerchantEventStockPoolsService, MerchantEventTicketTemplateService, MerchantEventTicketTemplatesService, MerchantEventTimeSlotService, MerchantEventTimeSlotsService, MerchantEventsService, MerchantFinanceInvoiceService, MerchantFinanceInvoicesService, MerchantFinanceService, MerchantOrderService, MerchantOrdersService, MerchantService, MerchantShopService, MerchantShopsService, MerchantStatisticsBuyersService, MerchantStatisticsEventsService, MerchantStatisticsGrowthService, MerchantStatisticsInsightsService, MerchantStatisticsMarketingService, MerchantStatisticsOperationsService, MerchantStatisticsOverviewService, MerchantStatisticsRefundsService, MerchantStatisticsSalesService, MerchantStatisticsService, MerchantSubscriptionDto, MerchantTicketService, MerchantTicketsService, MerchantUserDto, MerchantUserService, MerchantUsersService, MerchantsService, MilestoneDto, OrderAdapter, OrderDto, OrderLineDto, OrderPaymentProviderDto, OrderProductDto, PaymentAdapter, PaymentMethodDto, PaymentProviderDto, PictureDto, ProductAdapter, ProductDto, PublicOrderService, PublicPayAdapter, PublicPaymentMethodDto, PublicShopAdapter, PublicShopCartProductDto, PublicShopDesignDto, PublicShopDto, PublicShopElementButtonDto, PublicShopElementDividerDto, PublicShopElementDto, PublicShopElementHeadingDto, PublicShopElementInformationDto, PublicShopElementNoticeDto, PublicShopElementProductDto, PublicShopElementTextDto, PublicShopEventDto, PublicShopMerchantDto, PublicShopProductDto, PublicShopReservationDto, PublicShopReservationProductDetailsDto, PublicShopReservationProductDto, PublicShopService, PublicShopTimeSlotDto, RefundAdapter, RefundDto, RefundInitiatorDto, RefundTicketRefDto, RefundabilityDto, RenderedMailDto, ReservationAdapter, ReservationDto, ReservationItemDto, ReservationProductDto, ReservationService, ServiceAdapter, ServiceInfoDto, ServicesService, ShopDesignDto, ShopDto, ShopElementButtonDto, ShopElementDividerDto, ShopElementDto, ShopElementHeadingDto, ShopElementInformationDto, ShopElementNoticeDto, ShopElementProductDto, ShopElementTextDto, ShortlinkAdapter, ShortlinkDto, StatisticsAdapter, StatisticsBuyersAcquisitionSourceDto, StatisticsBuyersAdapter, StatisticsBuyersAgeGenderMatrixDto, StatisticsBuyersCohortRetentionDto, StatisticsBuyersDeviceConversionDto, StatisticsBuyersGeographicDistributionDto, StatisticsBuyersOverviewDto, StatisticsBuyersRankedDto, StatisticsBuyersSpendBucketsDto, StatisticsChartAdapter, StatisticsChartDto, StatisticsEventsAdapter, StatisticsEventsOverviewDto, StatisticsEventsSalesCurveDto, StatisticsEventsSalesCurveEventDto, StatisticsEventsSellOutTimingDto, StatisticsEventsSellOutTimingEventDto, StatisticsEventsTimeToEventDto, StatisticsGrowthAdapter, StatisticsGrowthCmgrDto, StatisticsGrowthOverviewDto, StatisticsInsightsAdapter, StatisticsMarketingAdapter, StatisticsMarketingCampaignDto, StatisticsMarketingOverviewDto, StatisticsMarketingReferrerDto, StatisticsMarketingShortlinkRoiDto, StatisticsMarketingSourceBreakdownDto, StatisticsMarketingSourceFunnelDto, StatisticsMarketingSourceMediumMatrixDto, StatisticsOperationsAdapter, StatisticsOperationsAppTeamDto, StatisticsOperationsNoShowRateDto, StatisticsOperationsNoShowRateEventDto, StatisticsOperationsOverviewDto, StatisticsOperationsScanTimeDistributionDto, StatisticsOperationsStewardDto, StatisticsOperationsStockUtilizationDto, StatisticsOverviewAdapter, StatisticsOverviewBestRevenueMonthDto, StatisticsOverviewCancellationFunnelDto, StatisticsOverviewEventPerformanceDto, StatisticsOverviewEventPerformanceEventDto, StatisticsOverviewEventPerformanceSummaryDto, StatisticsOverviewKPIsDto, StatisticsOverviewKPIsTotalEventsHostedDto, StatisticsOverviewKPIsTotalRevenueDto, StatisticsOverviewKPIsTotalTicketsSoldDto, StatisticsOverviewReservationConversionRateDto, StatisticsOverviewTopShopDto, StatisticsPieChartDto, StatisticsRefundsAdapter, StatisticsRefundsAmountDistributionDto, StatisticsRefundsOverviewDto, StatisticsRefundsTopEventDto, StatisticsRefundsVelocityDto, StatisticsSalesAdapter, StatisticsSalesDiscountEfficacyDto, StatisticsSalesFailedTransactionReasonDto, StatisticsSalesLifetimeTotalsDto, StatisticsSalesOrderValueDistributionDto, StatisticsSalesPurchaseBehaviorDto, StatisticsSalesRepeatPurchaseVelocityDto, StatisticsSalesTransactionSuccessRateDto, StatisticsTrendDto, StatusResponseDto, StockOverviewDto, StockOverviewItemDto, StockPoolDto, SubscriptionAdapter, SubscriptionPlanDto, TicketAdapter, TicketDto, TicketTemplateDto, TimeSlotDto, TotpStateDto, TransactionDto, UiSelectOptionsService, UserDto, UserTokenDto, VatNumberDto, buildListQuery_default as buildListQuery, emptyNull_default as emptyNull, jsonBlob_default as jsonBlob, optional_default as optional, optionalArray_default as optionalArray, parseEmailTemplate, serializeBlocks };
10517
10546
  //# sourceMappingURL=index.mjs.map