@viu/emporix-sdk 3.2.0 → 3.3.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 (43) hide show
  1. package/CHANGELOG.md +58 -0
  2. package/README.md +1 -1
  3. package/dist/availability.d.cts +1 -1
  4. package/dist/availability.d.ts +1 -1
  5. package/dist/cart.d.cts +1 -1
  6. package/dist/cart.d.ts +1 -1
  7. package/dist/category.d.cts +1 -1
  8. package/dist/category.d.ts +1 -1
  9. package/dist/checkout.d.cts +1 -1
  10. package/dist/checkout.d.ts +1 -1
  11. package/dist/companies.d.cts +1 -1
  12. package/dist/companies.d.ts +1 -1
  13. package/dist/contacts.d.cts +1 -1
  14. package/dist/contacts.d.ts +1 -1
  15. package/dist/{context-CcU93eAL.d.cts → context-CZdtWgQO.d.cts} +1 -1
  16. package/dist/{context-CcU93eAL.d.ts → context-CZdtWgQO.d.ts} +1 -1
  17. package/dist/{customer-groups-wmO0f-vj.d.ts → customer-groups-DhrOoC8M.d.ts} +1 -1
  18. package/dist/{customer-groups-Tt9VIA-m.d.cts → customer-groups-OEnqHFsX.d.cts} +1 -1
  19. package/dist/customer-groups.d.cts +2 -2
  20. package/dist/customer-groups.d.ts +2 -2
  21. package/dist/customer.d.cts +1 -1
  22. package/dist/customer.d.ts +1 -1
  23. package/dist/index.cjs +141 -72
  24. package/dist/index.cjs.map +1 -1
  25. package/dist/index.d.cts +281 -4
  26. package/dist/index.d.ts +281 -4
  27. package/dist/index.js +141 -73
  28. package/dist/index.js.map +1 -1
  29. package/dist/locations.d.cts +1 -1
  30. package/dist/locations.d.ts +1 -1
  31. package/dist/media.d.cts +1 -1
  32. package/dist/media.d.ts +1 -1
  33. package/dist/orders.d.cts +1 -1
  34. package/dist/orders.d.ts +1 -1
  35. package/dist/payment.d.cts +1 -1
  36. package/dist/payment.d.ts +1 -1
  37. package/dist/price.d.cts +1 -1
  38. package/dist/price.d.ts +1 -1
  39. package/dist/product.d.cts +1 -1
  40. package/dist/product.d.ts +1 -1
  41. package/dist/segment.d.cts +1 -1
  42. package/dist/segment.d.ts +1 -1
  43. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -1242,7 +1242,7 @@ var HttpClient = class {
1242
1242
  };
1243
1243
 
1244
1244
  // package.json
1245
- var version = "3.2.0";
1245
+ var version = "3.3.0";
1246
1246
 
1247
1247
  // src/version.ts
1248
1248
  var SDK_VERSION = version;
@@ -8354,8 +8354,74 @@ var ImportService = class {
8354
8354
  }
8355
8355
  };
8356
8356
 
8357
- // src/services/unit-handling.ts
8357
+ // src/services/audit-log.ts
8358
8358
  var SERVICE30 = { kind: "service" };
8359
+ function toPage2(wire) {
8360
+ const pageNumber = wire.page ?? 1;
8361
+ const totalPages = wire.totalPages ?? 0;
8362
+ return {
8363
+ items: wire.items ?? [],
8364
+ pageNumber,
8365
+ pageSize: wire.size ?? 0,
8366
+ hasNextPage: pageNumber < totalPages,
8367
+ totalElements: wire.totalElements ?? 0,
8368
+ totalPages
8369
+ };
8370
+ }
8371
+ var AuditLogService = class {
8372
+ constructor(ctx) {
8373
+ this.ctx = ctx;
8374
+ }
8375
+ ctx;
8376
+ static channel = "audit-log";
8377
+ base() {
8378
+ return `/changelog/${this.ctx.tenant}`;
8379
+ }
8380
+ /**
8381
+ * List changes across the tenant, newest occurrence first.
8382
+ *
8383
+ * **The window defaults to the last 30 days.** When `q` carries no
8384
+ * conjunctive `occurredAt` lower bound, the service silently applies a
8385
+ * trailing 30-day window — an unfiltered call is *not* «everything ever». Pass
8386
+ * an explicit top-level or `AND`-ed `occurredAt` range to widen it; an
8387
+ * `occurredAt` that appears only inside an `OR` arm does not lift the default.
8388
+ *
8389
+ * **`entityId` needs `entity`.** Filtering by id alone is a `400`, not an
8390
+ * empty page. There is no path-based history endpoint either — scoping to one
8391
+ * document means naming both in `q`:
8392
+ *
8393
+ * @example
8394
+ * ```ts
8395
+ * // The history of one order.
8396
+ * const page = await client.auditLogs.list({
8397
+ * q: `entity:order entityId:${orderId}`,
8398
+ * });
8399
+ * for (const entry of page.items) {
8400
+ * console.log(entry.at, entry.actor, entry.paths);
8401
+ * }
8402
+ *
8403
+ * // Everything a given person changed in June, across all entities.
8404
+ * await client.auditLogs.list({
8405
+ * q: 'actor:"Jane Doe" occurredAt:(>"2026-06-01T00:00:00.000Z" AND <"2026-07-01T00:00:00.000Z")',
8406
+ * pageSize: 100,
8407
+ * });
8408
+ * ```
8409
+ */
8410
+ async list(opts = {}, auth2 = SERVICE30) {
8411
+ const wire = await this.ctx.http.request({
8412
+ method: "GET",
8413
+ path: `${this.base()}/changelogs`,
8414
+ // Absent options are left off the wire entirely; the service applies its
8415
+ // own defaults (page 1, size 20) and sends back what it used.
8416
+ query: { q: opts.q, page: opts.pageNumber, size: opts.pageSize },
8417
+ auth: auth2
8418
+ });
8419
+ return toPage2(wire);
8420
+ }
8421
+ };
8422
+
8423
+ // src/services/unit-handling.ts
8424
+ var SERVICE31 = { kind: "service" };
8359
8425
  var UnitHandlingService = class {
8360
8426
  constructor(ctx) {
8361
8427
  this.ctx = ctx;
@@ -8366,7 +8432,7 @@ var UnitHandlingService = class {
8366
8432
  return `/unit-handling/${this.ctx.tenant}`;
8367
8433
  }
8368
8434
  /** Find units (filter/sort/page). */
8369
- async listUnits(query = {}, auth2 = SERVICE30) {
8435
+ async listUnits(query = {}, auth2 = SERVICE31) {
8370
8436
  return this.ctx.http.request({
8371
8437
  method: "GET",
8372
8438
  path: `${this.base()}/units`,
@@ -8375,7 +8441,7 @@ var UnitHandlingService = class {
8375
8441
  });
8376
8442
  }
8377
8443
  /** Retrieve a unit by code. */
8378
- async getUnit(unitCode, auth2 = SERVICE30) {
8444
+ async getUnit(unitCode, auth2 = SERVICE31) {
8379
8445
  return this.ctx.http.request({
8380
8446
  method: "GET",
8381
8447
  path: `${this.base()}/units/${encodeURIComponent(unitCode)}`,
@@ -8383,11 +8449,11 @@ var UnitHandlingService = class {
8383
8449
  });
8384
8450
  }
8385
8451
  /** Add a new unit. */
8386
- async createUnit(input, auth2 = SERVICE30) {
8452
+ async createUnit(input, auth2 = SERVICE31) {
8387
8453
  return this.ctx.http.request({ method: "POST", path: `${this.base()}/units`, auth: auth2, body: input });
8388
8454
  }
8389
8455
  /** Update a unit by code. */
8390
- async updateUnit(unitCode, input, auth2 = SERVICE30) {
8456
+ async updateUnit(unitCode, input, auth2 = SERVICE31) {
8391
8457
  await this.ctx.http.request({
8392
8458
  method: "PUT",
8393
8459
  path: `${this.base()}/units/${encodeURIComponent(unitCode)}`,
@@ -8396,7 +8462,7 @@ var UnitHandlingService = class {
8396
8462
  });
8397
8463
  }
8398
8464
  /** Delete a unit by code. */
8399
- async deleteUnit(unitCode, auth2 = SERVICE30) {
8465
+ async deleteUnit(unitCode, auth2 = SERVICE31) {
8400
8466
  await this.ctx.http.request({
8401
8467
  method: "DELETE",
8402
8468
  path: `${this.base()}/units/${encodeURIComponent(unitCode)}`,
@@ -8404,7 +8470,7 @@ var UnitHandlingService = class {
8404
8470
  });
8405
8471
  }
8406
8472
  /** Delete multiple units by code (bulk). The codes are sent as the request body. */
8407
- async deleteUnits(codes, auth2 = SERVICE30) {
8473
+ async deleteUnits(codes, auth2 = SERVICE31) {
8408
8474
  await this.ctx.http.request({
8409
8475
  method: "DELETE",
8410
8476
  path: `${this.base()}/units`,
@@ -8413,7 +8479,7 @@ var UnitHandlingService = class {
8413
8479
  });
8414
8480
  }
8415
8481
  /** Fetch a conversion factor (`PUT /units/conversion-factor-commands`). */
8416
- async getConversionFactor(input, auth2 = SERVICE30) {
8482
+ async getConversionFactor(input, auth2 = SERVICE31) {
8417
8483
  return this.ctx.http.request({
8418
8484
  method: "PUT",
8419
8485
  path: `${this.base()}/units/conversion-factor-commands`,
@@ -8422,7 +8488,7 @@ var UnitHandlingService = class {
8422
8488
  });
8423
8489
  }
8424
8490
  /** Convert a value between units (`PUT /units/convert-unit-commands`). */
8425
- async convertUnit(input, auth2 = SERVICE30) {
8491
+ async convertUnit(input, auth2 = SERVICE31) {
8426
8492
  return this.ctx.http.request({
8427
8493
  method: "PUT",
8428
8494
  path: `${this.base()}/units/convert-unit-commands`,
@@ -8431,13 +8497,13 @@ var UnitHandlingService = class {
8431
8497
  });
8432
8498
  }
8433
8499
  /** List all unit types. */
8434
- async listUnitTypes(auth2 = SERVICE30) {
8500
+ async listUnitTypes(auth2 = SERVICE31) {
8435
8501
  return this.ctx.http.request({ method: "GET", path: `${this.base()}/types`, auth: auth2 });
8436
8502
  }
8437
8503
  };
8438
8504
 
8439
8505
  // src/services/catalog.ts
8440
- var SERVICE31 = { kind: "service" };
8506
+ var SERVICE32 = { kind: "service" };
8441
8507
  var CatalogService = class {
8442
8508
  constructor(ctx) {
8443
8509
  this.ctx = ctx;
@@ -8448,7 +8514,7 @@ var CatalogService = class {
8448
8514
  return `/catalog/${this.ctx.tenant}/catalogs`;
8449
8515
  }
8450
8516
  /** List catalogs (filtered/sorted). */
8451
- async listCatalogs(query = {}, auth2 = SERVICE31) {
8517
+ async listCatalogs(query = {}, auth2 = SERVICE32) {
8452
8518
  return this.ctx.http.request({
8453
8519
  method: "GET",
8454
8520
  path: this.base(),
@@ -8457,7 +8523,7 @@ var CatalogService = class {
8457
8523
  });
8458
8524
  }
8459
8525
  /** Retrieve a catalog by id. */
8460
- async getCatalog(catalogId, auth2 = SERVICE31) {
8526
+ async getCatalog(catalogId, auth2 = SERVICE32) {
8461
8527
  return this.ctx.http.request({
8462
8528
  method: "GET",
8463
8529
  path: `${this.base()}/${encodeURIComponent(catalogId)}`,
@@ -8465,7 +8531,7 @@ var CatalogService = class {
8465
8531
  });
8466
8532
  }
8467
8533
  /** Retrieve all catalogs that contain a category. */
8468
- async getCatalogsForCategory(categoryId, auth2 = SERVICE31) {
8534
+ async getCatalogsForCategory(categoryId, auth2 = SERVICE32) {
8469
8535
  return this.ctx.http.request({
8470
8536
  method: "GET",
8471
8537
  path: `${this.base()}/categories/${encodeURIComponent(categoryId)}`,
@@ -8473,11 +8539,11 @@ var CatalogService = class {
8473
8539
  });
8474
8540
  }
8475
8541
  /** Create a catalog. */
8476
- async createCatalog(input, auth2 = SERVICE31) {
8542
+ async createCatalog(input, auth2 = SERVICE32) {
8477
8543
  return this.ctx.http.request({ method: "POST", path: this.base(), auth: auth2, body: input });
8478
8544
  }
8479
8545
  /** Upsert a catalog by id (`PUT`). */
8480
- async updateCatalog(catalogId, input, auth2 = SERVICE31) {
8546
+ async updateCatalog(catalogId, input, auth2 = SERVICE32) {
8481
8547
  return this.ctx.http.request({
8482
8548
  method: "PUT",
8483
8549
  path: `${this.base()}/${encodeURIComponent(catalogId)}`,
@@ -8486,7 +8552,7 @@ var CatalogService = class {
8486
8552
  });
8487
8553
  }
8488
8554
  /** Partially update a catalog by id (`PATCH`). */
8489
- async patchCatalog(catalogId, patch, auth2 = SERVICE31) {
8555
+ async patchCatalog(catalogId, patch, auth2 = SERVICE32) {
8490
8556
  await this.ctx.http.request({
8491
8557
  method: "PATCH",
8492
8558
  path: `${this.base()}/${encodeURIComponent(catalogId)}`,
@@ -8495,7 +8561,7 @@ var CatalogService = class {
8495
8561
  });
8496
8562
  }
8497
8563
  /** Remove a catalog by id. */
8498
- async deleteCatalog(catalogId, auth2 = SERVICE31) {
8564
+ async deleteCatalog(catalogId, auth2 = SERVICE32) {
8499
8565
  await this.ctx.http.request({
8500
8566
  method: "DELETE",
8501
8567
  path: `${this.base()}/${encodeURIComponent(catalogId)}`,
@@ -8505,7 +8571,7 @@ var CatalogService = class {
8505
8571
  };
8506
8572
 
8507
8573
  // src/services/vendor.ts
8508
- var SERVICE32 = { kind: "service" };
8574
+ var SERVICE33 = { kind: "service" };
8509
8575
  var VendorService = class {
8510
8576
  constructor(ctx) {
8511
8577
  this.ctx = ctx;
@@ -8517,7 +8583,7 @@ var VendorService = class {
8517
8583
  }
8518
8584
  // --- Vendors ---
8519
8585
  /** List all vendors. */
8520
- async listVendors(query = {}, auth2 = SERVICE32) {
8586
+ async listVendors(query = {}, auth2 = SERVICE33) {
8521
8587
  return this.ctx.http.request({
8522
8588
  method: "GET",
8523
8589
  path: `${this.base()}/vendors`,
@@ -8526,7 +8592,7 @@ var VendorService = class {
8526
8592
  });
8527
8593
  }
8528
8594
  /** Retrieve a vendor by id. */
8529
- async getVendor(vendorId, auth2 = SERVICE32) {
8595
+ async getVendor(vendorId, auth2 = SERVICE33) {
8530
8596
  return this.ctx.http.request({
8531
8597
  method: "GET",
8532
8598
  path: `${this.base()}/vendors/${encodeURIComponent(vendorId)}`,
@@ -8534,7 +8600,7 @@ var VendorService = class {
8534
8600
  });
8535
8601
  }
8536
8602
  /** Search vendors (`POST /vendors/search`). A built filter in `q` is resolved to a string. */
8537
- async searchVendors(query, auth2 = SERVICE32) {
8603
+ async searchVendors(query, auth2 = SERVICE33) {
8538
8604
  const body = query.q !== void 0 ? { ...query, q: resolveQuery(query.q, { compoundLogicalQuery: false }) } : query;
8539
8605
  return this.ctx.http.request({
8540
8606
  method: "POST",
@@ -8544,11 +8610,11 @@ var VendorService = class {
8544
8610
  });
8545
8611
  }
8546
8612
  /** Create a vendor. */
8547
- async createVendor(input, auth2 = SERVICE32) {
8613
+ async createVendor(input, auth2 = SERVICE33) {
8548
8614
  return this.ctx.http.request({ method: "POST", path: `${this.base()}/vendors`, auth: auth2, body: input });
8549
8615
  }
8550
8616
  /** Upsert a vendor by id (`PUT`). */
8551
- async updateVendor(vendorId, input, auth2 = SERVICE32) {
8617
+ async updateVendor(vendorId, input, auth2 = SERVICE33) {
8552
8618
  await this.ctx.http.request({
8553
8619
  method: "PUT",
8554
8620
  path: `${this.base()}/vendors/${encodeURIComponent(vendorId)}`,
@@ -8557,7 +8623,7 @@ var VendorService = class {
8557
8623
  });
8558
8624
  }
8559
8625
  /** Delete a vendor by id. */
8560
- async deleteVendor(vendorId, auth2 = SERVICE32) {
8626
+ async deleteVendor(vendorId, auth2 = SERVICE33) {
8561
8627
  await this.ctx.http.request({
8562
8628
  method: "DELETE",
8563
8629
  path: `${this.base()}/vendors/${encodeURIComponent(vendorId)}`,
@@ -8566,7 +8632,7 @@ var VendorService = class {
8566
8632
  }
8567
8633
  // --- Vendor locations ---
8568
8634
  /** List all vendor locations. */
8569
- async listVendorLocations(query = {}, auth2 = SERVICE32) {
8635
+ async listVendorLocations(query = {}, auth2 = SERVICE33) {
8570
8636
  return this.ctx.http.request({
8571
8637
  method: "GET",
8572
8638
  path: `${this.base()}/locations`,
@@ -8575,7 +8641,7 @@ var VendorService = class {
8575
8641
  });
8576
8642
  }
8577
8643
  /** Retrieve a vendor location by id. */
8578
- async getVendorLocation(locationId, auth2 = SERVICE32) {
8644
+ async getVendorLocation(locationId, auth2 = SERVICE33) {
8579
8645
  return this.ctx.http.request({
8580
8646
  method: "GET",
8581
8647
  path: `${this.base()}/locations/${encodeURIComponent(locationId)}`,
@@ -8583,11 +8649,11 @@ var VendorService = class {
8583
8649
  });
8584
8650
  }
8585
8651
  /** Create a vendor location. */
8586
- async createVendorLocation(input, auth2 = SERVICE32) {
8652
+ async createVendorLocation(input, auth2 = SERVICE33) {
8587
8653
  return this.ctx.http.request({ method: "POST", path: `${this.base()}/locations`, auth: auth2, body: input });
8588
8654
  }
8589
8655
  /** Upsert a vendor location by id (`PUT`). */
8590
- async updateVendorLocation(locationId, input, auth2 = SERVICE32) {
8656
+ async updateVendorLocation(locationId, input, auth2 = SERVICE33) {
8591
8657
  await this.ctx.http.request({
8592
8658
  method: "PUT",
8593
8659
  path: `${this.base()}/locations/${encodeURIComponent(locationId)}`,
@@ -8596,7 +8662,7 @@ var VendorService = class {
8596
8662
  });
8597
8663
  }
8598
8664
  /** Delete a vendor location by id. */
8599
- async deleteVendorLocation(locationId, auth2 = SERVICE32) {
8665
+ async deleteVendorLocation(locationId, auth2 = SERVICE33) {
8600
8666
  await this.ctx.http.request({
8601
8667
  method: "DELETE",
8602
8668
  path: `${this.base()}/locations/${encodeURIComponent(locationId)}`,
@@ -8606,7 +8672,7 @@ var VendorService = class {
8606
8672
  };
8607
8673
 
8608
8674
  // src/services/pick-pack.ts
8609
- var SERVICE33 = { kind: "service" };
8675
+ var SERVICE34 = { kind: "service" };
8610
8676
  var PickPackService = class {
8611
8677
  constructor(ctx) {
8612
8678
  this.ctx = ctx;
@@ -8620,7 +8686,7 @@ var PickPackService = class {
8620
8686
  return `${this.base()}/orders/${encodeURIComponent(orderId)}`;
8621
8687
  }
8622
8688
  /** List packlist orders. */
8623
- async listOrders(query = {}, auth2 = SERVICE33) {
8689
+ async listOrders(query = {}, auth2 = SERVICE34) {
8624
8690
  return this.ctx.http.request({
8625
8691
  method: "GET",
8626
8692
  path: `${this.base()}/orders`,
@@ -8629,19 +8695,19 @@ var PickPackService = class {
8629
8695
  });
8630
8696
  }
8631
8697
  /** Retrieve a packlist order by id. */
8632
- async getOrder(orderId, auth2 = SERVICE33) {
8698
+ async getOrder(orderId, auth2 = SERVICE34) {
8633
8699
  return this.ctx.http.request({ method: "GET", path: this.orderPath(orderId), auth: auth2 });
8634
8700
  }
8635
8701
  /** Update an order's status (`PATCH`). Returns an acknowledgement. */
8636
- async updateOrder(orderId, change, auth2 = SERVICE33) {
8702
+ async updateOrder(orderId, change, auth2 = SERVICE34) {
8637
8703
  return this.ctx.http.request({ method: "PATCH", path: this.orderPath(orderId), auth: auth2, body: change });
8638
8704
  }
8639
8705
  /** Finish an order. Returns an acknowledgement. */
8640
- async finishOrder(orderId, auth2 = SERVICE33) {
8706
+ async finishOrder(orderId, auth2 = SERVICE34) {
8641
8707
  return this.ctx.http.request({ method: "POST", path: `${this.orderPath(orderId)}/finish`, auth: auth2 });
8642
8708
  }
8643
8709
  /** List order cycles (ids). */
8644
- async listOrderCycles(query = {}, auth2 = SERVICE33) {
8710
+ async listOrderCycles(query = {}, auth2 = SERVICE34) {
8645
8711
  return this.ctx.http.request({
8646
8712
  method: "GET",
8647
8713
  path: `${this.base()}/orderCycles`,
@@ -8650,11 +8716,11 @@ var PickPackService = class {
8650
8716
  });
8651
8717
  }
8652
8718
  /** Add an assignee to an order. Returns an acknowledgement. */
8653
- async addAssignee(orderId, assignee, auth2 = SERVICE33) {
8719
+ async addAssignee(orderId, assignee, auth2 = SERVICE34) {
8654
8720
  return this.ctx.http.request({ method: "POST", path: `${this.orderPath(orderId)}/assignees`, auth: auth2, body: assignee });
8655
8721
  }
8656
8722
  /** Remove an assignee from an order. */
8657
- async removeAssignee(orderId, assigneeId, auth2 = SERVICE33) {
8723
+ async removeAssignee(orderId, assigneeId, auth2 = SERVICE34) {
8658
8724
  await this.ctx.http.request({
8659
8725
  method: "DELETE",
8660
8726
  path: `${this.orderPath(orderId)}/assignees/${encodeURIComponent(assigneeId)}`,
@@ -8662,15 +8728,15 @@ var PickPackService = class {
8662
8728
  });
8663
8729
  }
8664
8730
  /** Update packaging products for an order (`PUT`). Returns an acknowledgement. */
8665
- async updatePackaging(orderId, change, auth2 = SERVICE33) {
8731
+ async updatePackaging(orderId, change, auth2 = SERVICE34) {
8666
8732
  return this.ctx.http.request({ method: "PUT", path: `${this.orderPath(orderId)}/packaging`, auth: auth2, body: change });
8667
8733
  }
8668
8734
  /** Create a packing event. Returns an acknowledgement. */
8669
- async createEvent(event, auth2 = SERVICE33) {
8735
+ async createEvent(event, auth2 = SERVICE34) {
8670
8736
  return this.ctx.http.request({ method: "POST", path: `${this.base()}/events`, auth: auth2, body: event });
8671
8737
  }
8672
8738
  /** List packing events. */
8673
- async listEvents(query = {}, auth2 = SERVICE33) {
8739
+ async listEvents(query = {}, auth2 = SERVICE34) {
8674
8740
  return this.ctx.http.request({
8675
8741
  method: "GET",
8676
8742
  path: `${this.base()}/events`,
@@ -8679,7 +8745,7 @@ var PickPackService = class {
8679
8745
  });
8680
8746
  }
8681
8747
  /** Trigger an order recalculation. Returns the created job's id. */
8682
- async triggerRecalculation(input, auth2 = SERVICE33) {
8748
+ async triggerRecalculation(input, auth2 = SERVICE34) {
8683
8749
  return this.ctx.http.request({
8684
8750
  method: "POST",
8685
8751
  path: `${this.base()}/jobs/recalculations`,
@@ -8688,7 +8754,7 @@ var PickPackService = class {
8688
8754
  });
8689
8755
  }
8690
8756
  /** Retrieve a recalculation job by id. */
8691
- async getRecalculationJob(jobId, auth2 = SERVICE33) {
8757
+ async getRecalculationJob(jobId, auth2 = SERVICE34) {
8692
8758
  return this.ctx.http.request({
8693
8759
  method: "GET",
8694
8760
  path: `${this.base()}/jobs/recalculations/${encodeURIComponent(jobId)}`,
@@ -8698,7 +8764,7 @@ var PickPackService = class {
8698
8764
  };
8699
8765
 
8700
8766
  // src/services/customer-admin.ts
8701
- var SERVICE34 = { kind: "service" };
8767
+ var SERVICE35 = { kind: "service" };
8702
8768
  var CustomerAdminService = class {
8703
8769
  constructor(ctx) {
8704
8770
  this.ctx = ctx;
@@ -8719,7 +8785,7 @@ var CustomerAdminService = class {
8719
8785
  }
8720
8786
  // --- Customers ---
8721
8787
  /** List customers. */
8722
- async listCustomers(query = {}, auth2 = SERVICE34) {
8788
+ async listCustomers(query = {}, auth2 = SERVICE35) {
8723
8789
  return this.ctx.http.request({
8724
8790
  method: "GET",
8725
8791
  path: this.base(),
@@ -8728,33 +8794,33 @@ var CustomerAdminService = class {
8728
8794
  });
8729
8795
  }
8730
8796
  /** Search customers (`POST /customers/search`). A built filter in `q` is resolved to a string. */
8731
- async searchCustomers(query, auth2 = SERVICE34) {
8797
+ async searchCustomers(query, auth2 = SERVICE35) {
8732
8798
  const body = query.q !== void 0 ? { ...query, q: resolveQuery(query.q, { compoundLogicalQuery: false }) } : query;
8733
8799
  return this.ctx.http.request({ method: "POST", path: `${this.base()}/search`, auth: auth2, body });
8734
8800
  }
8735
8801
  /** Retrieve a customer profile by number. */
8736
- async getCustomer(customerNumber, auth2 = SERVICE34) {
8802
+ async getCustomer(customerNumber, auth2 = SERVICE35) {
8737
8803
  return this.ctx.http.request({ method: "GET", path: this.customerPath(customerNumber), auth: auth2 });
8738
8804
  }
8739
8805
  /** Create a customer. */
8740
- async createCustomer(input, auth2 = SERVICE34) {
8806
+ async createCustomer(input, auth2 = SERVICE35) {
8741
8807
  return this.ctx.http.request({ method: "POST", path: this.base(), auth: auth2, body: input });
8742
8808
  }
8743
8809
  /** Upsert a customer profile by number (`PUT`). */
8744
- async upsertCustomer(customerNumber, input, auth2 = SERVICE34) {
8810
+ async upsertCustomer(customerNumber, input, auth2 = SERVICE35) {
8745
8811
  return this.ctx.http.request({ method: "PUT", path: this.customerPath(customerNumber), auth: auth2, body: input });
8746
8812
  }
8747
8813
  /** Partially update a customer profile (`PATCH`). */
8748
- async patchCustomer(customerNumber, patch, auth2 = SERVICE34) {
8814
+ async patchCustomer(customerNumber, patch, auth2 = SERVICE35) {
8749
8815
  await this.ctx.http.request({ method: "PATCH", path: this.customerPath(customerNumber), auth: auth2, body: patch });
8750
8816
  }
8751
8817
  /** Delete a customer profile. */
8752
- async deleteCustomer(customerNumber, auth2 = SERVICE34) {
8818
+ async deleteCustomer(customerNumber, auth2 = SERVICE35) {
8753
8819
  await this.ctx.http.request({ method: "DELETE", path: this.customerPath(customerNumber), auth: auth2 });
8754
8820
  }
8755
8821
  // --- Addresses ---
8756
8822
  /** List a customer's addresses. */
8757
- async listAddresses(customerNumber, auth2 = SERVICE34) {
8823
+ async listAddresses(customerNumber, auth2 = SERVICE35) {
8758
8824
  return this.ctx.http.request({
8759
8825
  method: "GET",
8760
8826
  path: `${this.customerPath(customerNumber)}/addresses`,
@@ -8762,11 +8828,11 @@ var CustomerAdminService = class {
8762
8828
  });
8763
8829
  }
8764
8830
  /** Retrieve one address. */
8765
- async getAddress(customerNumber, addressId, auth2 = SERVICE34) {
8831
+ async getAddress(customerNumber, addressId, auth2 = SERVICE35) {
8766
8832
  return this.ctx.http.request({ method: "GET", path: this.addressPath(customerNumber, addressId), auth: auth2 });
8767
8833
  }
8768
8834
  /** Add an address. */
8769
- async addAddress(customerNumber, input, auth2 = SERVICE34) {
8835
+ async addAddress(customerNumber, input, auth2 = SERVICE35) {
8770
8836
  return this.ctx.http.request({
8771
8837
  method: "POST",
8772
8838
  path: `${this.customerPath(customerNumber)}/addresses`,
@@ -8775,19 +8841,19 @@ var CustomerAdminService = class {
8775
8841
  });
8776
8842
  }
8777
8843
  /** Upsert an address by id (`PUT`). */
8778
- async upsertAddress(customerNumber, addressId, input, auth2 = SERVICE34) {
8844
+ async upsertAddress(customerNumber, addressId, input, auth2 = SERVICE35) {
8779
8845
  return this.ctx.http.request({ method: "PUT", path: this.addressPath(customerNumber, addressId), auth: auth2, body: input });
8780
8846
  }
8781
8847
  /** Partially update an address by id (`PATCH`). */
8782
- async patchAddress(customerNumber, addressId, patch, auth2 = SERVICE34) {
8848
+ async patchAddress(customerNumber, addressId, patch, auth2 = SERVICE35) {
8783
8849
  await this.ctx.http.request({ method: "PATCH", path: this.addressPath(customerNumber, addressId), auth: auth2, body: patch });
8784
8850
  }
8785
8851
  /** Delete an address by id. */
8786
- async deleteAddress(customerNumber, addressId, auth2 = SERVICE34) {
8852
+ async deleteAddress(customerNumber, addressId, auth2 = SERVICE35) {
8787
8853
  await this.ctx.http.request({ method: "DELETE", path: this.addressPath(customerNumber, addressId), auth: auth2 });
8788
8854
  }
8789
8855
  /** Add tags to an address (`?tags=` query). */
8790
- async addAddressTags(customerNumber, addressId, tags, auth2 = SERVICE34) {
8856
+ async addAddressTags(customerNumber, addressId, tags, auth2 = SERVICE35) {
8791
8857
  await this.ctx.http.request({
8792
8858
  method: "POST",
8793
8859
  path: `${this.addressPath(customerNumber, addressId)}/tags`,
@@ -8796,7 +8862,7 @@ var CustomerAdminService = class {
8796
8862
  });
8797
8863
  }
8798
8864
  /** Remove tags from an address (`?tags=` query). */
8799
- async removeAddressTags(customerNumber, addressId, tags, auth2 = SERVICE34) {
8865
+ async removeAddressTags(customerNumber, addressId, tags, auth2 = SERVICE35) {
8800
8866
  await this.ctx.http.request({
8801
8867
  method: "DELETE",
8802
8868
  path: `${this.addressPath(customerNumber, addressId)}/tags`,
@@ -8810,7 +8876,7 @@ var CustomerAdminService = class {
8810
8876
  * `customer.import_read` scope. An unconfigured tenant answers with an empty
8811
8877
  * object rather than a 404.
8812
8878
  */
8813
- async getPasswordMigrationRetention(auth2 = SERVICE34) {
8879
+ async getPasswordMigrationRetention(auth2 = SERVICE35) {
8814
8880
  return this.ctx.http.request({
8815
8881
  method: "GET",
8816
8882
  path: this.configPath(),
@@ -8823,7 +8889,7 @@ var CustomerAdminService = class {
8823
8889
  * `legacyAuth`** — that import is rejected without an active config. Re-POST with
8824
8890
  * an earlier `retentionEndDate` to shorten a running window.
8825
8891
  */
8826
- async configurePasswordMigrationRetention(input, auth2 = SERVICE34) {
8892
+ async configurePasswordMigrationRetention(input, auth2 = SERVICE35) {
8827
8893
  return this.ctx.http.request({
8828
8894
  method: "POST",
8829
8895
  path: this.configPath(),
@@ -8836,7 +8902,7 @@ var CustomerAdminService = class {
8836
8902
  * Intended for after the migration window: when the window ends, unmigrated
8837
8903
  * accounts need a password reset and their legacy credentials are cleared.
8838
8904
  */
8839
- async deletePasswordMigrationRetention(auth2 = SERVICE34) {
8905
+ async deletePasswordMigrationRetention(auth2 = SERVICE35) {
8840
8906
  await this.ctx.http.request({ method: "DELETE", path: this.configPath(), auth: auth2 });
8841
8907
  }
8842
8908
  // --- Bulk import ---
@@ -8849,7 +8915,7 @@ var CustomerAdminService = class {
8849
8915
  * `account.legacyAuth`, and importing `legacyAuth` requires an active retention
8850
8916
  * config (see `configurePasswordMigrationRetention`).
8851
8917
  */
8852
- async importCustomers(input, auth2 = SERVICE34) {
8918
+ async importCustomers(input, auth2 = SERVICE35) {
8853
8919
  return this.ctx.http.request({
8854
8920
  method: "POST",
8855
8921
  path: `${this.base()}/import`,
@@ -8860,7 +8926,7 @@ var CustomerAdminService = class {
8860
8926
  };
8861
8927
 
8862
8928
  // src/services/approval.ts
8863
- var SERVICE35 = { kind: "service" };
8929
+ var SERVICE36 = { kind: "service" };
8864
8930
  var ApprovalService = class {
8865
8931
  constructor(ctx) {
8866
8932
  this.ctx = ctx;
@@ -8871,7 +8937,7 @@ var ApprovalService = class {
8871
8937
  return `/approval/${this.ctx.tenant}`;
8872
8938
  }
8873
8939
  /** List approvals (paged via `pageNumber`/`pageSize`/`sort`/`q`). Returns an array. */
8874
- async listApprovals(query = {}, auth2 = SERVICE35) {
8940
+ async listApprovals(query = {}, auth2 = SERVICE36) {
8875
8941
  return this.ctx.http.request({
8876
8942
  method: "GET",
8877
8943
  path: `${this.base()}/approvals`,
@@ -8880,7 +8946,7 @@ var ApprovalService = class {
8880
8946
  });
8881
8947
  }
8882
8948
  /** Retrieve a single approval by id. */
8883
- async getApproval(approvalId, auth2 = SERVICE35) {
8949
+ async getApproval(approvalId, auth2 = SERVICE36) {
8884
8950
  return this.ctx.http.request({
8885
8951
  method: "GET",
8886
8952
  path: `${this.base()}/approvals/${encodeURIComponent(approvalId)}`,
@@ -8888,7 +8954,7 @@ var ApprovalService = class {
8888
8954
  });
8889
8955
  }
8890
8956
  /** Create an approval request (cart or quote). Returns the created `{ id }`. */
8891
- async createApproval(input, auth2 = SERVICE35) {
8957
+ async createApproval(input, auth2 = SERVICE36) {
8892
8958
  return this.ctx.http.request({
8893
8959
  method: "POST",
8894
8960
  path: `${this.base()}/approvals`,
@@ -8897,7 +8963,7 @@ var ApprovalService = class {
8897
8963
  });
8898
8964
  }
8899
8965
  /** Approve/reject/amend an approval via a JSON-Patch op-array (`PATCH`). */
8900
- async updateApproval(approvalId, ops, auth2 = SERVICE35) {
8966
+ async updateApproval(approvalId, ops, auth2 = SERVICE36) {
8901
8967
  await this.ctx.http.request({
8902
8968
  method: "PATCH",
8903
8969
  path: `${this.base()}/approvals/${encodeURIComponent(approvalId)}`,
@@ -8906,7 +8972,7 @@ var ApprovalService = class {
8906
8972
  });
8907
8973
  }
8908
8974
  /** Delete an approval by id. */
8909
- async deleteApproval(approvalId, auth2 = SERVICE35) {
8975
+ async deleteApproval(approvalId, auth2 = SERVICE36) {
8910
8976
  await this.ctx.http.request({
8911
8977
  method: "DELETE",
8912
8978
  path: `${this.base()}/approvals/${encodeURIComponent(approvalId)}`,
@@ -8914,7 +8980,7 @@ var ApprovalService = class {
8914
8980
  });
8915
8981
  }
8916
8982
  /** Check whether an operation on a resource is permitted / needs approval. */
8917
- async checkPermitted(input, auth2 = SERVICE35) {
8983
+ async checkPermitted(input, auth2 = SERVICE36) {
8918
8984
  return this.ctx.http.request({
8919
8985
  method: "POST",
8920
8986
  path: `${this.base()}/approval/permitted`,
@@ -8923,7 +8989,7 @@ var ApprovalService = class {
8923
8989
  });
8924
8990
  }
8925
8991
  /** Search for users eligible to approve a resource. Returns an array. */
8926
- async searchApprovers(input, auth2 = SERVICE35) {
8992
+ async searchApprovers(input, auth2 = SERVICE36) {
8927
8993
  return this.ctx.http.request({
8928
8994
  method: "POST",
8929
8995
  path: `${this.base()}/search/users`,
@@ -8986,6 +9052,7 @@ var EmporixClient = class {
8986
9052
  returns;
8987
9053
  indexing;
8988
9054
  imports;
9055
+ auditLogs;
8989
9056
  units;
8990
9057
  catalogs;
8991
9058
  vendors;
@@ -9060,6 +9127,7 @@ var EmporixClient = class {
9060
9127
  this.returns = new ReturnsService(mk(ReturnsService.channel));
9061
9128
  this.indexing = new IndexingService(mk(IndexingService.channel));
9062
9129
  this.imports = new ImportService(mk(ImportService.channel));
9130
+ this.auditLogs = new AuditLogService(mk(AuditLogService.channel));
9063
9131
  this.units = new UnitHandlingService(mk(UnitHandlingService.channel));
9064
9132
  this.catalogs = new CatalogService(mk(CatalogService.channel));
9065
9133
  this.vendors = new VendorService(mk(VendorService.channel));
@@ -9135,6 +9203,7 @@ function productYrn(tenant, productId) {
9135
9203
 
9136
9204
  exports.AiService = AiService;
9137
9205
  exports.ApprovalService = ApprovalService;
9206
+ exports.AuditLogService = AuditLogService;
9138
9207
  exports.AvailabilityService = AvailabilityService;
9139
9208
  exports.BrandService = BrandService;
9140
9209
  exports.CartService = CartService;