@viu/emporix-sdk 4.4.0 → 4.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 (43) hide show
  1. package/CHANGELOG.md +8 -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-C-A10NL3.d.cts → context-BJeomwxV.d.cts} +1 -1
  16. package/dist/{context-C-A10NL3.d.ts → context-BJeomwxV.d.ts} +1 -1
  17. package/dist/{customer-groups-C6jPLdvd.d.cts → customer-groups-ByNcTPoL.d.cts} +1 -1
  18. package/dist/{customer-groups-E1fY1FR2.d.ts → customer-groups-D7a8BvT2.d.ts} +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 +267 -86
  24. package/dist/index.cjs.map +1 -1
  25. package/dist/index.d.cts +497 -4
  26. package/dist/index.d.ts +497 -4
  27. package/dist/index.js +267 -87
  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.js CHANGED
@@ -948,7 +948,7 @@ var HttpClient = class {
948
948
  };
949
949
 
950
950
  // package.json
951
- var version = "4.4.0";
951
+ var version = "4.5.0";
952
952
 
953
953
  // src/version.ts
954
954
  var SDK_VERSION = version;
@@ -4324,8 +4324,186 @@ var IndexingService = class {
4324
4324
  }
4325
4325
  };
4326
4326
 
4327
- // src/services/imports.ts
4327
+ // src/services/search.ts
4328
4328
  var SERVICE22 = { kind: "service" };
4329
+ function pageQuery(opts) {
4330
+ const pageNumber = opts.pageNumber ?? 1;
4331
+ const pageSize = opts.pageSize ?? 60;
4332
+ const query = { pageNumber, pageSize };
4333
+ if (opts.sort !== void 0) query.sort = opts.sort;
4334
+ if (opts.q !== void 0) query.q = opts.q;
4335
+ if (opts.fields !== void 0) query.fields = opts.fields;
4336
+ const page = {
4337
+ pageNumber,
4338
+ pageSize,
4339
+ ...opts.totalCount === void 0 ? {} : { totalCount: opts.totalCount }
4340
+ };
4341
+ return { query, page };
4342
+ }
4343
+ var SearchService = class {
4344
+ constructor(ctx) {
4345
+ this.ctx = ctx;
4346
+ }
4347
+ ctx;
4348
+ static channel = "search";
4349
+ base() {
4350
+ return `/search/${this.ctx.tenant}`;
4351
+ }
4352
+ /**
4353
+ * Search the documents of one custom schema type. Paging, `sort` and
4354
+ * `fields` travel as query parameters, not in the body.
4355
+ *
4356
+ * Filter and sort fields must be indexed on the index the search uses, or the
4357
+ * call answers `400`. A saved-search call (`{ searchQueryId, query }`) answers
4358
+ * `404` when no saved search has that id for `type`, and `502` means the
4359
+ * Schema Service could not confirm that `type` is a custom entity.
4360
+ *
4361
+ * @example
4362
+ * const hits = await client.search.search("vehicle", {
4363
+ * index: "vehicles",
4364
+ * queries: [{ type: "TEXT", query: "diesel", field: "name.en" }],
4365
+ * filters: { field: "status", operator: "EQ", value: "ACTIVE" },
4366
+ * });
4367
+ */
4368
+ async search(type, input, opts = {}, auth2 = SERVICE22) {
4369
+ const { query, page } = pageQuery(opts);
4370
+ return requestPage(
4371
+ this.ctx.http,
4372
+ {
4373
+ method: "POST",
4374
+ path: `${this.base()}/search/${encodeURIComponent(type)}`,
4375
+ auth: auth2,
4376
+ query,
4377
+ body: input,
4378
+ idempotent: true
4379
+ // pure read over POST — safe to replay on 5xx/429
4380
+ },
4381
+ page
4382
+ );
4383
+ }
4384
+ /** List saved searches of one custom schema type (`opts.type`), or of every type. */
4385
+ async listSavedSearches(opts = {}, auth2 = SERVICE22) {
4386
+ const { query, page } = pageQuery(opts);
4387
+ const t = opts.type;
4388
+ return requestPage(
4389
+ this.ctx.http,
4390
+ {
4391
+ method: "GET",
4392
+ path: t === void 0 ? `${this.base()}/search/queries` : `${this.base()}/search/${encodeURIComponent(t)}/queries`,
4393
+ auth: auth2,
4394
+ query
4395
+ },
4396
+ page
4397
+ );
4398
+ }
4399
+ /** Fetch one saved search. */
4400
+ async getSavedSearch(type, id, opts = {}, auth2 = SERVICE22) {
4401
+ return this.ctx.http.request({
4402
+ method: "GET",
4403
+ path: `${this.base()}/search/${encodeURIComponent(type)}/queries/${encodeURIComponent(id)}`,
4404
+ auth: auth2,
4405
+ ...opts.fields === void 0 ? {} : { query: { fields: opts.fields } }
4406
+ });
4407
+ }
4408
+ /**
4409
+ * Create or replace a saved search. Resolves to `{ id }` when it was created
4410
+ * (`201`) and to `undefined` when it replaced an existing one (`204`).
4411
+ *
4412
+ * A replace needs the stored `metadata.version` — `400` without it, `409`
4413
+ * when it is stale. `index` must already exist for `type` (`404`
4414
+ * otherwise). Saving does not start an index build.
4415
+ */
4416
+ async upsertSavedSearch(type, id, input, auth2 = SERVICE22) {
4417
+ return this.ctx.http.request({
4418
+ method: "PUT",
4419
+ path: `${this.base()}/search/${encodeURIComponent(type)}/queries/${encodeURIComponent(id)}`,
4420
+ auth: auth2,
4421
+ body: input
4422
+ });
4423
+ }
4424
+ /** Delete a saved search. Does not start an index build. */
4425
+ async deleteSavedSearch(type, id, auth2 = SERVICE22) {
4426
+ await this.ctx.http.request({
4427
+ method: "DELETE",
4428
+ path: `${this.base()}/search/${encodeURIComponent(type)}/queries/${encodeURIComponent(id)}`,
4429
+ auth: auth2
4430
+ });
4431
+ }
4432
+ /** List search indexes of one custom schema type (`opts.type`), or of every type. */
4433
+ async listIndexes(opts = {}, auth2 = SERVICE22) {
4434
+ const { query, page } = pageQuery(opts);
4435
+ const t = opts.type;
4436
+ return requestPage(
4437
+ this.ctx.http,
4438
+ {
4439
+ method: "GET",
4440
+ path: t === void 0 ? `${this.base()}/search/indexes` : `${this.base()}/search/${encodeURIComponent(t)}/indexes`,
4441
+ auth: auth2,
4442
+ query
4443
+ },
4444
+ page
4445
+ );
4446
+ }
4447
+ /** Fetch one search index. */
4448
+ async getIndex(type, id, opts = {}, auth2 = SERVICE22) {
4449
+ return this.ctx.http.request({
4450
+ method: "GET",
4451
+ path: `${this.base()}/search/${encodeURIComponent(type)}/indexes/${encodeURIComponent(id)}`,
4452
+ auth: auth2,
4453
+ ...opts.fields === void 0 ? {} : { query: { fields: opts.fields } }
4454
+ });
4455
+ }
4456
+ /**
4457
+ * Create or update a search index. Resolves to the id of the job that builds
4458
+ * it (`202`) — for a new index, a changed field list, or an index whose
4459
+ * status is `building` or `failed` — and to `undefined` (`204`) when the
4460
+ * index is `ready` and its fields are unchanged; `name` and `description`
4461
+ * still change then. Track the job with {@link getJob}.
4462
+ *
4463
+ * An update needs the stored `metadata.version` (`400` without it). `409`
4464
+ * means a job for this index is already running, or the version is stale.
4465
+ */
4466
+ async upsertIndex(type, id, input, auth2 = SERVICE22) {
4467
+ return this.ctx.http.request({
4468
+ method: "PUT",
4469
+ path: `${this.base()}/search/${encodeURIComponent(type)}/indexes/${encodeURIComponent(id)}`,
4470
+ auth: auth2,
4471
+ body: input
4472
+ });
4473
+ }
4474
+ /**
4475
+ * Start deleting a search index. Resolves to the id of the job that removes
4476
+ * it (`202`); `409` means a job for this index is already running.
4477
+ */
4478
+ async deleteIndex(type, id, auth2 = SERVICE22) {
4479
+ return this.ctx.http.request({
4480
+ method: "DELETE",
4481
+ path: `${this.base()}/search/${encodeURIComponent(type)}/indexes/${encodeURIComponent(id)}`,
4482
+ auth: auth2
4483
+ });
4484
+ }
4485
+ /** List index jobs of the tenant. */
4486
+ async listJobs(opts = {}, auth2 = SERVICE22) {
4487
+ const { query, page } = pageQuery(opts);
4488
+ return requestPage(
4489
+ this.ctx.http,
4490
+ { method: "GET", path: `${this.base()}/jobs`, auth: auth2, query },
4491
+ page
4492
+ );
4493
+ }
4494
+ /** Fetch one index job. */
4495
+ async getJob(id, opts = {}, auth2 = SERVICE22) {
4496
+ return this.ctx.http.request({
4497
+ method: "GET",
4498
+ path: `${this.base()}/jobs/${encodeURIComponent(id)}`,
4499
+ auth: auth2,
4500
+ ...opts.fields === void 0 ? {} : { query: { fields: opts.fields } }
4501
+ });
4502
+ }
4503
+ };
4504
+
4505
+ // src/services/imports.ts
4506
+ var SERVICE23 = { kind: "service" };
4329
4507
  var DEFAULT_PAGE_SIZE = 50;
4330
4508
  function pageArgs(opts) {
4331
4509
  return { pageNumber: opts.pageNumber ?? 1, pageSize: opts.pageSize ?? DEFAULT_PAGE_SIZE };
@@ -4375,7 +4553,7 @@ var ImportService = class {
4375
4553
  return `/importtool/${this.ctx.tenant}`;
4376
4554
  }
4377
4555
  /** List every import configuration of the tenant. */
4378
- async listConfigs(auth2 = SERVICE22) {
4556
+ async listConfigs(auth2 = SERVICE23) {
4379
4557
  return this.ctx.http.request({
4380
4558
  method: "GET",
4381
4559
  path: `${this.base()}/configs`,
@@ -4383,7 +4561,7 @@ var ImportService = class {
4383
4561
  });
4384
4562
  }
4385
4563
  /** Fetch one configuration by id. */
4386
- async getConfig(id, auth2 = SERVICE22) {
4564
+ async getConfig(id, auth2 = SERVICE23) {
4387
4565
  return this.ctx.http.request({
4388
4566
  method: "GET",
4389
4567
  path: `${this.base()}/configs/${encodeURIComponent(id)}`,
@@ -4391,7 +4569,7 @@ var ImportService = class {
4391
4569
  });
4392
4570
  }
4393
4571
  /** List the streams of one configuration. */
4394
- async listStreams(configId, auth2 = SERVICE22) {
4572
+ async listStreams(configId, auth2 = SERVICE23) {
4395
4573
  return this.ctx.http.request({
4396
4574
  method: "GET",
4397
4575
  path: `${this.base()}/configs/${encodeURIComponent(configId)}/streams`,
@@ -4399,7 +4577,7 @@ var ImportService = class {
4399
4577
  });
4400
4578
  }
4401
4579
  /** Fetch one stream by id. */
4402
- async getStream(id, auth2 = SERVICE22) {
4580
+ async getStream(id, auth2 = SERVICE23) {
4403
4581
  return this.ctx.http.request({
4404
4582
  method: "GET",
4405
4583
  path: `${this.base()}/streams/${encodeURIComponent(id)}`,
@@ -4416,7 +4594,7 @@ var ImportService = class {
4416
4594
  * takes stream **ids** — map through {@link listStreams} before passing a
4417
4595
  * subset back.
4418
4596
  */
4419
- async getStreamOrder(configId, auth2 = SERVICE22) {
4597
+ async getStreamOrder(configId, auth2 = SERVICE23) {
4420
4598
  return this.ctx.http.request({
4421
4599
  method: "GET",
4422
4600
  path: `${this.base()}/configs/${encodeURIComponent(configId)}/stream-order`,
@@ -4428,7 +4606,7 @@ var ImportService = class {
4428
4606
  * configured — the service answers `204`, not `404`, so an absent schedule is
4429
4607
  * a normal result rather than an error.
4430
4608
  */
4431
- async getSchedule(configId, auth2 = SERVICE22) {
4609
+ async getSchedule(configId, auth2 = SERVICE23) {
4432
4610
  const res = await this.ctx.http.request({
4433
4611
  method: "GET",
4434
4612
  path: `${this.base()}/configs/${encodeURIComponent(configId)}/schedule`,
@@ -4449,7 +4627,7 @@ var ImportService = class {
4449
4627
  * schedule. Use {@link deleteSchedule} to clear a schedule that outlived its
4450
4628
  * configuration.
4451
4629
  */
4452
- async setSchedule(configId, input, auth2 = SERVICE22) {
4630
+ async setSchedule(configId, input, auth2 = SERVICE23) {
4453
4631
  return this.ctx.http.request({
4454
4632
  method: "PUT",
4455
4633
  path: `${this.base()}/configs/${encodeURIComponent(configId)}/schedule`,
@@ -4469,7 +4647,7 @@ var ImportService = class {
4469
4647
  * The service answers `204`, so this resolves to `void` rather than to the
4470
4648
  * removed schedule.
4471
4649
  */
4472
- async deleteSchedule(configId, auth2 = SERVICE22) {
4650
+ async deleteSchedule(configId, auth2 = SERVICE23) {
4473
4651
  await this.ctx.http.request({
4474
4652
  method: "DELETE",
4475
4653
  path: `${this.base()}/configs/${encodeURIComponent(configId)}/schedule`,
@@ -4518,7 +4696,7 @@ var ImportService = class {
4518
4696
  * }
4519
4697
  * ```
4520
4698
  */
4521
- async triggerRun(configId, input = {}, auth2 = SERVICE22) {
4699
+ async triggerRun(configId, input = {}, auth2 = SERVICE23) {
4522
4700
  return this.ctx.http.request({
4523
4701
  method: "POST",
4524
4702
  path: `${this.base()}/configs/${encodeURIComponent(configId)}/runs`,
@@ -4527,7 +4705,7 @@ var ImportService = class {
4527
4705
  });
4528
4706
  }
4529
4707
  /** List a configuration's runs, newest first. */
4530
- async listRuns(configId, opts = {}, auth2 = SERVICE22) {
4708
+ async listRuns(configId, opts = {}, auth2 = SERVICE23) {
4531
4709
  const args = pageArgs(opts);
4532
4710
  const wire = await this.ctx.http.request({
4533
4711
  method: "GET",
@@ -4538,7 +4716,7 @@ var ImportService = class {
4538
4716
  return toPage(wire, args);
4539
4717
  }
4540
4718
  /** Fetch one run with its per-stream progress. */
4541
- async getRun(runId, auth2 = SERVICE22) {
4719
+ async getRun(runId, auth2 = SERVICE23) {
4542
4720
  return this.ctx.http.request({
4543
4721
  method: "GET",
4544
4722
  path: `${this.base()}/runs/${encodeURIComponent(runId)}`,
@@ -4558,7 +4736,7 @@ var ImportService = class {
4558
4736
  * arrive as `{ type: "unknown" }` rather than throwing — see
4559
4737
  * {@link ImportRunEvent}.
4560
4738
  */
4561
- async *streamRun(runId, auth2 = SERVICE22) {
4739
+ async *streamRun(runId, auth2 = SERVICE23) {
4562
4740
  const frames = this.ctx.http.requestStream({
4563
4741
  method: "GET",
4564
4742
  path: `${this.base()}/runs/${encodeURIComponent(runId)}/events`,
@@ -4573,7 +4751,7 @@ var ImportService = class {
4573
4751
  * a result, not an error. A state conflict may instead come back as a `409`,
4574
4752
  * which does throw.
4575
4753
  */
4576
- async cancelRun(runId, opts = {}, auth2 = SERVICE22) {
4754
+ async cancelRun(runId, opts = {}, auth2 = SERVICE23) {
4577
4755
  const query = {};
4578
4756
  if (opts.force) query.force = "true";
4579
4757
  return this.ctx.http.request({
@@ -4584,7 +4762,7 @@ var ImportService = class {
4584
4762
  });
4585
4763
  }
4586
4764
  /** List the errors recorded during a run. */
4587
- async listRunErrors(runId, opts = {}, auth2 = SERVICE22) {
4765
+ async listRunErrors(runId, opts = {}, auth2 = SERVICE23) {
4588
4766
  const args = pageArgs(opts);
4589
4767
  const wire = await this.ctx.http.request({
4590
4768
  method: "GET",
@@ -4605,7 +4783,7 @@ var ImportService = class {
4605
4783
  * `rows.length` as the size of the problem. `limit` defaults to 500 here
4606
4784
  * (1–50 000); {@link downloadRunDiagnosticsCsv} defaults to 50 000.
4607
4785
  */
4608
- async listRunDiagnostics(runId, query = {}, auth2 = SERVICE22) {
4786
+ async listRunDiagnostics(runId, query = {}, auth2 = SERVICE23) {
4609
4787
  return this.ctx.http.request({
4610
4788
  method: "GET",
4611
4789
  path: `${this.base()}/runs/${encodeURIComponent(runId)}/diagnostics`,
@@ -4623,7 +4801,7 @@ var ImportService = class {
4623
4801
  * prefixed with an apostrophe so spreadsheet software does not evaluate source
4624
4802
  * data as a formula. Strip it if you parse the file instead of opening it.
4625
4803
  */
4626
- async downloadRunDiagnosticsCsv(runId, query = {}, auth2 = SERVICE22) {
4804
+ async downloadRunDiagnosticsCsv(runId, query = {}, auth2 = SERVICE23) {
4627
4805
  return this.ctx.http.request({
4628
4806
  method: "GET",
4629
4807
  path: `${this.base()}/runs/${encodeURIComponent(runId)}/diagnostics/csv`,
@@ -4632,7 +4810,7 @@ var ImportService = class {
4632
4810
  });
4633
4811
  }
4634
4812
  /** List the target types that hold imported records — the valid `type` values for {@link searchRecords}. */
4635
- async listDataTypes(auth2 = SERVICE22) {
4813
+ async listDataTypes(auth2 = SERVICE23) {
4636
4814
  return this.ctx.http.request({
4637
4815
  method: "GET",
4638
4816
  path: `${this.base()}/data/types`,
@@ -4640,7 +4818,7 @@ var ImportService = class {
4640
4818
  });
4641
4819
  }
4642
4820
  /** Search imported records of one target type. */
4643
- async searchRecords(opts, auth2 = SERVICE22) {
4821
+ async searchRecords(opts, auth2 = SERVICE23) {
4644
4822
  const args = pageArgs(opts);
4645
4823
  const query = {
4646
4824
  type: opts.type,
@@ -4658,7 +4836,7 @@ var ImportService = class {
4658
4836
  return toPage(wire, args);
4659
4837
  }
4660
4838
  /** Search the imported records produced by one stream. */
4661
- async searchStreamRecords(streamId, opts = {}, auth2 = SERVICE22) {
4839
+ async searchStreamRecords(streamId, opts = {}, auth2 = SERVICE23) {
4662
4840
  const args = pageArgs(opts);
4663
4841
  const query = {
4664
4842
  page: args.pageNumber - 1,
@@ -4687,7 +4865,7 @@ var ImportService = class {
4687
4865
  *
4688
4866
  * **Preview upstream**: the contract may change without a major bump.
4689
4867
  */
4690
- async stats(query = {}, auth2 = SERVICE22) {
4868
+ async stats(query = {}, auth2 = SERVICE23) {
4691
4869
  return this.ctx.http.request({
4692
4870
  method: "GET",
4693
4871
  path: `${this.base()}/stats`,
@@ -4705,7 +4883,7 @@ var ImportService = class {
4705
4883
  *
4706
4884
  * **Preview upstream**: the contract may change without a major bump.
4707
4885
  */
4708
- async listJobGroups(auth2 = SERVICE22) {
4886
+ async listJobGroups(auth2 = SERVICE23) {
4709
4887
  return this.ctx.http.request({
4710
4888
  method: "GET",
4711
4889
  path: `${this.base()}/dashboard/job-groups`,
@@ -4721,7 +4899,7 @@ var ImportService = class {
4721
4899
  *
4722
4900
  * **Preview upstream**: the contract may change without a major bump.
4723
4901
  */
4724
- async getHealthThresholds(auth2 = SERVICE22) {
4902
+ async getHealthThresholds(auth2 = SERVICE23) {
4725
4903
  return this.ctx.http.request({
4726
4904
  method: "GET",
4727
4905
  path: `${this.base()}/settings/health-thresholds`,
@@ -4733,7 +4911,7 @@ var ImportService = class {
4733
4911
  *
4734
4912
  * **Preview upstream**: the contract may change without a major bump.
4735
4913
  */
4736
- async getLicense(auth2 = SERVICE22) {
4914
+ async getLicense(auth2 = SERVICE23) {
4737
4915
  return this.ctx.http.request({
4738
4916
  method: "GET",
4739
4917
  path: `${this.base()}/license`,
@@ -4753,7 +4931,7 @@ var ImportService = class {
4753
4931
  *
4754
4932
  * **Preview upstream**: the contract may change without a major bump.
4755
4933
  */
4756
- async retryRun(runId, auth2 = SERVICE22) {
4934
+ async retryRun(runId, auth2 = SERVICE23) {
4757
4935
  return this.ctx.http.request({
4758
4936
  method: "POST",
4759
4937
  path: `${this.base()}/runs/${encodeURIComponent(runId)}/retry`,
@@ -4763,7 +4941,7 @@ var ImportService = class {
4763
4941
  };
4764
4942
 
4765
4943
  // src/services/audit-log.ts
4766
- var SERVICE23 = { kind: "service" };
4944
+ var SERVICE24 = { kind: "service" };
4767
4945
  function toPage2(wire) {
4768
4946
  const pageNumber = wire.page ?? 1;
4769
4947
  const totalPages = wire.totalPages ?? 0;
@@ -4815,7 +4993,7 @@ var AuditLogService = class {
4815
4993
  * });
4816
4994
  * ```
4817
4995
  */
4818
- async list(opts = {}, auth2 = SERVICE23) {
4996
+ async list(opts = {}, auth2 = SERVICE24) {
4819
4997
  const wire = await this.ctx.http.request({
4820
4998
  method: "GET",
4821
4999
  path: `${this.base()}/changelogs`,
@@ -4829,7 +5007,7 @@ var AuditLogService = class {
4829
5007
  };
4830
5008
 
4831
5009
  // src/services/unit-handling.ts
4832
- var SERVICE24 = { kind: "service" };
5010
+ var SERVICE25 = { kind: "service" };
4833
5011
  var UnitHandlingService = class {
4834
5012
  constructor(ctx) {
4835
5013
  this.ctx = ctx;
@@ -4840,7 +5018,7 @@ var UnitHandlingService = class {
4840
5018
  return `/unit-handling/${this.ctx.tenant}`;
4841
5019
  }
4842
5020
  /** Find units (filter/sort/page). */
4843
- async listUnits(query = {}, auth2 = SERVICE24) {
5021
+ async listUnits(query = {}, auth2 = SERVICE25) {
4844
5022
  return this.ctx.http.request({
4845
5023
  method: "GET",
4846
5024
  path: `${this.base()}/units`,
@@ -4849,7 +5027,7 @@ var UnitHandlingService = class {
4849
5027
  });
4850
5028
  }
4851
5029
  /** Retrieve a unit by code. */
4852
- async getUnit(unitCode, auth2 = SERVICE24) {
5030
+ async getUnit(unitCode, auth2 = SERVICE25) {
4853
5031
  return this.ctx.http.request({
4854
5032
  method: "GET",
4855
5033
  path: `${this.base()}/units/${encodeURIComponent(unitCode)}`,
@@ -4857,11 +5035,11 @@ var UnitHandlingService = class {
4857
5035
  });
4858
5036
  }
4859
5037
  /** Add a new unit. */
4860
- async createUnit(input, auth2 = SERVICE24) {
5038
+ async createUnit(input, auth2 = SERVICE25) {
4861
5039
  return this.ctx.http.request({ method: "POST", path: `${this.base()}/units`, auth: auth2, body: input });
4862
5040
  }
4863
5041
  /** Update a unit by code. */
4864
- async updateUnit(unitCode, input, auth2 = SERVICE24) {
5042
+ async updateUnit(unitCode, input, auth2 = SERVICE25) {
4865
5043
  await this.ctx.http.request({
4866
5044
  method: "PUT",
4867
5045
  path: `${this.base()}/units/${encodeURIComponent(unitCode)}`,
@@ -4870,7 +5048,7 @@ var UnitHandlingService = class {
4870
5048
  });
4871
5049
  }
4872
5050
  /** Delete a unit by code. */
4873
- async deleteUnit(unitCode, auth2 = SERVICE24) {
5051
+ async deleteUnit(unitCode, auth2 = SERVICE25) {
4874
5052
  await this.ctx.http.request({
4875
5053
  method: "DELETE",
4876
5054
  path: `${this.base()}/units/${encodeURIComponent(unitCode)}`,
@@ -4878,7 +5056,7 @@ var UnitHandlingService = class {
4878
5056
  });
4879
5057
  }
4880
5058
  /** Delete multiple units by code (bulk). The codes are sent as the request body. */
4881
- async deleteUnits(codes, auth2 = SERVICE24) {
5059
+ async deleteUnits(codes, auth2 = SERVICE25) {
4882
5060
  await this.ctx.http.request({
4883
5061
  method: "DELETE",
4884
5062
  path: `${this.base()}/units`,
@@ -4887,7 +5065,7 @@ var UnitHandlingService = class {
4887
5065
  });
4888
5066
  }
4889
5067
  /** Fetch a conversion factor (`PUT /units/conversion-factor-commands`). */
4890
- async getConversionFactor(input, auth2 = SERVICE24) {
5068
+ async getConversionFactor(input, auth2 = SERVICE25) {
4891
5069
  return this.ctx.http.request({
4892
5070
  method: "PUT",
4893
5071
  path: `${this.base()}/units/conversion-factor-commands`,
@@ -4896,7 +5074,7 @@ var UnitHandlingService = class {
4896
5074
  });
4897
5075
  }
4898
5076
  /** Convert a value between units (`PUT /units/convert-unit-commands`). */
4899
- async convertUnit(input, auth2 = SERVICE24) {
5077
+ async convertUnit(input, auth2 = SERVICE25) {
4900
5078
  return this.ctx.http.request({
4901
5079
  method: "PUT",
4902
5080
  path: `${this.base()}/units/convert-unit-commands`,
@@ -4905,13 +5083,13 @@ var UnitHandlingService = class {
4905
5083
  });
4906
5084
  }
4907
5085
  /** List all unit types. */
4908
- async listUnitTypes(auth2 = SERVICE24) {
5086
+ async listUnitTypes(auth2 = SERVICE25) {
4909
5087
  return this.ctx.http.request({ method: "GET", path: `${this.base()}/types`, auth: auth2 });
4910
5088
  }
4911
5089
  };
4912
5090
 
4913
5091
  // src/services/catalog.ts
4914
- var SERVICE25 = { kind: "service" };
5092
+ var SERVICE26 = { kind: "service" };
4915
5093
  var CatalogService = class {
4916
5094
  constructor(ctx) {
4917
5095
  this.ctx = ctx;
@@ -4922,7 +5100,7 @@ var CatalogService = class {
4922
5100
  return `/catalog/${this.ctx.tenant}/catalogs`;
4923
5101
  }
4924
5102
  /** List catalogs (filtered/sorted). */
4925
- async listCatalogs(query = {}, auth2 = SERVICE25) {
5103
+ async listCatalogs(query = {}, auth2 = SERVICE26) {
4926
5104
  return this.ctx.http.request({
4927
5105
  method: "GET",
4928
5106
  path: this.base(),
@@ -4931,7 +5109,7 @@ var CatalogService = class {
4931
5109
  });
4932
5110
  }
4933
5111
  /** Retrieve a catalog by id. */
4934
- async getCatalog(catalogId, auth2 = SERVICE25) {
5112
+ async getCatalog(catalogId, auth2 = SERVICE26) {
4935
5113
  return this.ctx.http.request({
4936
5114
  method: "GET",
4937
5115
  path: `${this.base()}/${encodeURIComponent(catalogId)}`,
@@ -4939,7 +5117,7 @@ var CatalogService = class {
4939
5117
  });
4940
5118
  }
4941
5119
  /** Retrieve all catalogs that contain a category. */
4942
- async getCatalogsForCategory(categoryId, auth2 = SERVICE25) {
5120
+ async getCatalogsForCategory(categoryId, auth2 = SERVICE26) {
4943
5121
  return this.ctx.http.request({
4944
5122
  method: "GET",
4945
5123
  path: `${this.base()}/categories/${encodeURIComponent(categoryId)}`,
@@ -4947,11 +5125,11 @@ var CatalogService = class {
4947
5125
  });
4948
5126
  }
4949
5127
  /** Create a catalog. */
4950
- async createCatalog(input, auth2 = SERVICE25) {
5128
+ async createCatalog(input, auth2 = SERVICE26) {
4951
5129
  return this.ctx.http.request({ method: "POST", path: this.base(), auth: auth2, body: input });
4952
5130
  }
4953
5131
  /** Upsert a catalog by id (`PUT`). */
4954
- async updateCatalog(catalogId, input, auth2 = SERVICE25) {
5132
+ async updateCatalog(catalogId, input, auth2 = SERVICE26) {
4955
5133
  return this.ctx.http.request({
4956
5134
  method: "PUT",
4957
5135
  path: `${this.base()}/${encodeURIComponent(catalogId)}`,
@@ -4960,7 +5138,7 @@ var CatalogService = class {
4960
5138
  });
4961
5139
  }
4962
5140
  /** Partially update a catalog by id (`PATCH`). */
4963
- async patchCatalog(catalogId, patch, auth2 = SERVICE25) {
5141
+ async patchCatalog(catalogId, patch, auth2 = SERVICE26) {
4964
5142
  await this.ctx.http.request({
4965
5143
  method: "PATCH",
4966
5144
  path: `${this.base()}/${encodeURIComponent(catalogId)}`,
@@ -4969,7 +5147,7 @@ var CatalogService = class {
4969
5147
  });
4970
5148
  }
4971
5149
  /** Remove a catalog by id. */
4972
- async deleteCatalog(catalogId, auth2 = SERVICE25) {
5150
+ async deleteCatalog(catalogId, auth2 = SERVICE26) {
4973
5151
  await this.ctx.http.request({
4974
5152
  method: "DELETE",
4975
5153
  path: `${this.base()}/${encodeURIComponent(catalogId)}`,
@@ -4979,7 +5157,7 @@ var CatalogService = class {
4979
5157
  };
4980
5158
 
4981
5159
  // src/services/vendor.ts
4982
- var SERVICE26 = { kind: "service" };
5160
+ var SERVICE27 = { kind: "service" };
4983
5161
  var VendorService = class {
4984
5162
  constructor(ctx) {
4985
5163
  this.ctx = ctx;
@@ -4991,7 +5169,7 @@ var VendorService = class {
4991
5169
  }
4992
5170
  // --- Vendors ---
4993
5171
  /** List all vendors. */
4994
- async listVendors(query = {}, auth2 = SERVICE26) {
5172
+ async listVendors(query = {}, auth2 = SERVICE27) {
4995
5173
  return this.ctx.http.request({
4996
5174
  method: "GET",
4997
5175
  path: `${this.base()}/vendors`,
@@ -5000,7 +5178,7 @@ var VendorService = class {
5000
5178
  });
5001
5179
  }
5002
5180
  /** Retrieve a vendor by id. */
5003
- async getVendor(vendorId, auth2 = SERVICE26) {
5181
+ async getVendor(vendorId, auth2 = SERVICE27) {
5004
5182
  return this.ctx.http.request({
5005
5183
  method: "GET",
5006
5184
  path: `${this.base()}/vendors/${encodeURIComponent(vendorId)}`,
@@ -5011,7 +5189,7 @@ var VendorService = class {
5011
5189
  * Search vendors (`POST /vendors/search`). A built filter in `q` is resolved to
5012
5190
  * a string; paging, sort and fields go in the query string.
5013
5191
  */
5014
- async searchVendors(query, auth2 = SERVICE26) {
5192
+ async searchVendors(query, auth2 = SERVICE27) {
5015
5193
  const input = query.q !== void 0 ? { ...query, q: resolveQuery(query.q, { compoundLogicalQuery: false }) } : query;
5016
5194
  return this.ctx.http.request({
5017
5195
  method: "POST",
@@ -5021,11 +5199,11 @@ var VendorService = class {
5021
5199
  });
5022
5200
  }
5023
5201
  /** Create a vendor. */
5024
- async createVendor(input, auth2 = SERVICE26) {
5202
+ async createVendor(input, auth2 = SERVICE27) {
5025
5203
  return this.ctx.http.request({ method: "POST", path: `${this.base()}/vendors`, auth: auth2, body: input });
5026
5204
  }
5027
5205
  /** Upsert a vendor by id (`PUT`). */
5028
- async updateVendor(vendorId, input, auth2 = SERVICE26) {
5206
+ async updateVendor(vendorId, input, auth2 = SERVICE27) {
5029
5207
  await this.ctx.http.request({
5030
5208
  method: "PUT",
5031
5209
  path: `${this.base()}/vendors/${encodeURIComponent(vendorId)}`,
@@ -5034,7 +5212,7 @@ var VendorService = class {
5034
5212
  });
5035
5213
  }
5036
5214
  /** Delete a vendor by id. */
5037
- async deleteVendor(vendorId, auth2 = SERVICE26) {
5215
+ async deleteVendor(vendorId, auth2 = SERVICE27) {
5038
5216
  await this.ctx.http.request({
5039
5217
  method: "DELETE",
5040
5218
  path: `${this.base()}/vendors/${encodeURIComponent(vendorId)}`,
@@ -5043,7 +5221,7 @@ var VendorService = class {
5043
5221
  }
5044
5222
  // --- Vendor locations ---
5045
5223
  /** List all vendor locations. */
5046
- async listVendorLocations(query = {}, auth2 = SERVICE26) {
5224
+ async listVendorLocations(query = {}, auth2 = SERVICE27) {
5047
5225
  return this.ctx.http.request({
5048
5226
  method: "GET",
5049
5227
  path: `${this.base()}/locations`,
@@ -5052,7 +5230,7 @@ var VendorService = class {
5052
5230
  });
5053
5231
  }
5054
5232
  /** Retrieve a vendor location by id. */
5055
- async getVendorLocation(locationId, auth2 = SERVICE26) {
5233
+ async getVendorLocation(locationId, auth2 = SERVICE27) {
5056
5234
  return this.ctx.http.request({
5057
5235
  method: "GET",
5058
5236
  path: `${this.base()}/locations/${encodeURIComponent(locationId)}`,
@@ -5060,11 +5238,11 @@ var VendorService = class {
5060
5238
  });
5061
5239
  }
5062
5240
  /** Create a vendor location. */
5063
- async createVendorLocation(input, auth2 = SERVICE26) {
5241
+ async createVendorLocation(input, auth2 = SERVICE27) {
5064
5242
  return this.ctx.http.request({ method: "POST", path: `${this.base()}/locations`, auth: auth2, body: input });
5065
5243
  }
5066
5244
  /** Upsert a vendor location by id (`PUT`). */
5067
- async updateVendorLocation(locationId, input, auth2 = SERVICE26) {
5245
+ async updateVendorLocation(locationId, input, auth2 = SERVICE27) {
5068
5246
  await this.ctx.http.request({
5069
5247
  method: "PUT",
5070
5248
  path: `${this.base()}/locations/${encodeURIComponent(locationId)}`,
@@ -5073,7 +5251,7 @@ var VendorService = class {
5073
5251
  });
5074
5252
  }
5075
5253
  /** Delete a vendor location by id. */
5076
- async deleteVendorLocation(locationId, auth2 = SERVICE26) {
5254
+ async deleteVendorLocation(locationId, auth2 = SERVICE27) {
5077
5255
  await this.ctx.http.request({
5078
5256
  method: "DELETE",
5079
5257
  path: `${this.base()}/locations/${encodeURIComponent(locationId)}`,
@@ -5083,7 +5261,7 @@ var VendorService = class {
5083
5261
  };
5084
5262
 
5085
5263
  // src/services/customer-admin.ts
5086
- var SERVICE27 = { kind: "service" };
5264
+ var SERVICE28 = { kind: "service" };
5087
5265
  var CustomerAdminService = class {
5088
5266
  constructor(ctx) {
5089
5267
  this.ctx = ctx;
@@ -5104,7 +5282,7 @@ var CustomerAdminService = class {
5104
5282
  }
5105
5283
  // --- Customers ---
5106
5284
  /** List customers. */
5107
- async listCustomers(query = {}, auth2 = SERVICE27) {
5285
+ async listCustomers(query = {}, auth2 = SERVICE28) {
5108
5286
  return this.ctx.http.request({
5109
5287
  method: "GET",
5110
5288
  path: this.base(),
@@ -5116,7 +5294,7 @@ var CustomerAdminService = class {
5116
5294
  * Search customers (`POST /customers/search`). A built filter in `q` is resolved
5117
5295
  * to a string; `pageNumber`, `pageSize`, `sort` and `expand` go in the query string.
5118
5296
  */
5119
- async searchCustomers(query, auth2 = SERVICE27) {
5297
+ async searchCustomers(query, auth2 = SERVICE28) {
5120
5298
  const input = query.q !== void 0 ? { ...query, q: resolveQuery(query.q, { compoundLogicalQuery: false }) } : query;
5121
5299
  return this.ctx.http.request({
5122
5300
  method: "POST",
@@ -5126,28 +5304,28 @@ var CustomerAdminService = class {
5126
5304
  });
5127
5305
  }
5128
5306
  /** Retrieve a customer profile by number. */
5129
- async getCustomer(customerNumber, auth2 = SERVICE27) {
5307
+ async getCustomer(customerNumber, auth2 = SERVICE28) {
5130
5308
  return this.ctx.http.request({ method: "GET", path: this.customerPath(customerNumber), auth: auth2 });
5131
5309
  }
5132
5310
  /** Create a customer. */
5133
- async createCustomer(input, auth2 = SERVICE27) {
5311
+ async createCustomer(input, auth2 = SERVICE28) {
5134
5312
  return this.ctx.http.request({ method: "POST", path: this.base(), auth: auth2, body: input });
5135
5313
  }
5136
5314
  /** Upsert a customer profile by number (`PUT`). */
5137
- async upsertCustomer(customerNumber, input, auth2 = SERVICE27) {
5315
+ async upsertCustomer(customerNumber, input, auth2 = SERVICE28) {
5138
5316
  return this.ctx.http.request({ method: "PUT", path: this.customerPath(customerNumber), auth: auth2, body: input });
5139
5317
  }
5140
5318
  /** Partially update a customer profile (`PATCH`). */
5141
- async patchCustomer(customerNumber, patch, auth2 = SERVICE27) {
5319
+ async patchCustomer(customerNumber, patch, auth2 = SERVICE28) {
5142
5320
  await this.ctx.http.request({ method: "PATCH", path: this.customerPath(customerNumber), auth: auth2, body: patch });
5143
5321
  }
5144
5322
  /** Delete a customer profile. */
5145
- async deleteCustomer(customerNumber, auth2 = SERVICE27) {
5323
+ async deleteCustomer(customerNumber, auth2 = SERVICE28) {
5146
5324
  await this.ctx.http.request({ method: "DELETE", path: this.customerPath(customerNumber), auth: auth2 });
5147
5325
  }
5148
5326
  // --- Addresses ---
5149
5327
  /** List a customer's addresses. */
5150
- async listAddresses(customerNumber, auth2 = SERVICE27) {
5328
+ async listAddresses(customerNumber, auth2 = SERVICE28) {
5151
5329
  return this.ctx.http.request({
5152
5330
  method: "GET",
5153
5331
  path: `${this.customerPath(customerNumber)}/addresses`,
@@ -5155,11 +5333,11 @@ var CustomerAdminService = class {
5155
5333
  });
5156
5334
  }
5157
5335
  /** Retrieve one address. */
5158
- async getAddress(customerNumber, addressId, auth2 = SERVICE27) {
5336
+ async getAddress(customerNumber, addressId, auth2 = SERVICE28) {
5159
5337
  return this.ctx.http.request({ method: "GET", path: this.addressPath(customerNumber, addressId), auth: auth2 });
5160
5338
  }
5161
5339
  /** Add an address. */
5162
- async addAddress(customerNumber, input, auth2 = SERVICE27) {
5340
+ async addAddress(customerNumber, input, auth2 = SERVICE28) {
5163
5341
  return this.ctx.http.request({
5164
5342
  method: "POST",
5165
5343
  path: `${this.customerPath(customerNumber)}/addresses`,
@@ -5168,19 +5346,19 @@ var CustomerAdminService = class {
5168
5346
  });
5169
5347
  }
5170
5348
  /** Upsert an address by id (`PUT`). */
5171
- async upsertAddress(customerNumber, addressId, input, auth2 = SERVICE27) {
5349
+ async upsertAddress(customerNumber, addressId, input, auth2 = SERVICE28) {
5172
5350
  return this.ctx.http.request({ method: "PUT", path: this.addressPath(customerNumber, addressId), auth: auth2, body: input });
5173
5351
  }
5174
5352
  /** Partially update an address by id (`PATCH`). */
5175
- async patchAddress(customerNumber, addressId, patch, auth2 = SERVICE27) {
5353
+ async patchAddress(customerNumber, addressId, patch, auth2 = SERVICE28) {
5176
5354
  await this.ctx.http.request({ method: "PATCH", path: this.addressPath(customerNumber, addressId), auth: auth2, body: patch });
5177
5355
  }
5178
5356
  /** Delete an address by id. */
5179
- async deleteAddress(customerNumber, addressId, auth2 = SERVICE27) {
5357
+ async deleteAddress(customerNumber, addressId, auth2 = SERVICE28) {
5180
5358
  await this.ctx.http.request({ method: "DELETE", path: this.addressPath(customerNumber, addressId), auth: auth2 });
5181
5359
  }
5182
5360
  /** Add tags to an address (`?tags=` query). */
5183
- async addAddressTags(customerNumber, addressId, tags, auth2 = SERVICE27) {
5361
+ async addAddressTags(customerNumber, addressId, tags, auth2 = SERVICE28) {
5184
5362
  await this.ctx.http.request({
5185
5363
  method: "POST",
5186
5364
  path: `${this.addressPath(customerNumber, addressId)}/tags`,
@@ -5189,7 +5367,7 @@ var CustomerAdminService = class {
5189
5367
  });
5190
5368
  }
5191
5369
  /** Remove tags from an address (`?tags=` query). */
5192
- async removeAddressTags(customerNumber, addressId, tags, auth2 = SERVICE27) {
5370
+ async removeAddressTags(customerNumber, addressId, tags, auth2 = SERVICE28) {
5193
5371
  await this.ctx.http.request({
5194
5372
  method: "DELETE",
5195
5373
  path: `${this.addressPath(customerNumber, addressId)}/tags`,
@@ -5203,7 +5381,7 @@ var CustomerAdminService = class {
5203
5381
  * `customer.import_read` scope. An unconfigured tenant answers with an empty
5204
5382
  * object rather than a 404.
5205
5383
  */
5206
- async getPasswordMigrationRetention(auth2 = SERVICE27) {
5384
+ async getPasswordMigrationRetention(auth2 = SERVICE28) {
5207
5385
  return this.ctx.http.request({
5208
5386
  method: "GET",
5209
5387
  path: this.configPath(),
@@ -5216,7 +5394,7 @@ var CustomerAdminService = class {
5216
5394
  * `legacyAuth`** — that import is rejected without an active config. Re-POST with
5217
5395
  * an earlier `retentionEndDate` to shorten a running window.
5218
5396
  */
5219
- async configurePasswordMigrationRetention(input, auth2 = SERVICE27) {
5397
+ async configurePasswordMigrationRetention(input, auth2 = SERVICE28) {
5220
5398
  return this.ctx.http.request({
5221
5399
  method: "POST",
5222
5400
  path: this.configPath(),
@@ -5229,7 +5407,7 @@ var CustomerAdminService = class {
5229
5407
  * Intended for after the migration window: when the window ends, unmigrated
5230
5408
  * accounts need a password reset and their legacy credentials are cleared.
5231
5409
  */
5232
- async deletePasswordMigrationRetention(auth2 = SERVICE27) {
5410
+ async deletePasswordMigrationRetention(auth2 = SERVICE28) {
5233
5411
  await this.ctx.http.request({ method: "DELETE", path: this.configPath(), auth: auth2 });
5234
5412
  }
5235
5413
  // --- Bulk import ---
@@ -5242,7 +5420,7 @@ var CustomerAdminService = class {
5242
5420
  * `account.legacyAuth`, and importing `legacyAuth` requires an active retention
5243
5421
  * config (see `configurePasswordMigrationRetention`).
5244
5422
  */
5245
- async importCustomers(input, auth2 = SERVICE27) {
5423
+ async importCustomers(input, auth2 = SERVICE28) {
5246
5424
  return this.ctx.http.request({
5247
5425
  method: "POST",
5248
5426
  path: `${this.base()}/import`,
@@ -5253,7 +5431,7 @@ var CustomerAdminService = class {
5253
5431
  };
5254
5432
 
5255
5433
  // src/services/approval.ts
5256
- var SERVICE28 = { kind: "service" };
5434
+ var SERVICE29 = { kind: "service" };
5257
5435
  var ApprovalService = class {
5258
5436
  constructor(ctx) {
5259
5437
  this.ctx = ctx;
@@ -5264,7 +5442,7 @@ var ApprovalService = class {
5264
5442
  return `/approval/${this.ctx.tenant}`;
5265
5443
  }
5266
5444
  /** List approvals (paged via `pageNumber`/`pageSize`/`sort`/`q`). Returns an array. */
5267
- async listApprovals(query = {}, auth2 = SERVICE28) {
5445
+ async listApprovals(query = {}, auth2 = SERVICE29) {
5268
5446
  return this.ctx.http.request({
5269
5447
  method: "GET",
5270
5448
  path: `${this.base()}/approvals`,
@@ -5273,7 +5451,7 @@ var ApprovalService = class {
5273
5451
  });
5274
5452
  }
5275
5453
  /** Retrieve a single approval by id. */
5276
- async getApproval(approvalId, auth2 = SERVICE28) {
5454
+ async getApproval(approvalId, auth2 = SERVICE29) {
5277
5455
  return this.ctx.http.request({
5278
5456
  method: "GET",
5279
5457
  path: `${this.base()}/approvals/${encodeURIComponent(approvalId)}`,
@@ -5281,7 +5459,7 @@ var ApprovalService = class {
5281
5459
  });
5282
5460
  }
5283
5461
  /** Create an approval request (cart or quote). Returns the created `{ id }`. */
5284
- async createApproval(input, auth2 = SERVICE28) {
5462
+ async createApproval(input, auth2 = SERVICE29) {
5285
5463
  return this.ctx.http.request({
5286
5464
  method: "POST",
5287
5465
  path: `${this.base()}/approvals`,
@@ -5290,7 +5468,7 @@ var ApprovalService = class {
5290
5468
  });
5291
5469
  }
5292
5470
  /** Approve/reject/amend an approval via a JSON-Patch op-array (`PATCH`). */
5293
- async updateApproval(approvalId, ops, auth2 = SERVICE28) {
5471
+ async updateApproval(approvalId, ops, auth2 = SERVICE29) {
5294
5472
  await this.ctx.http.request({
5295
5473
  method: "PATCH",
5296
5474
  path: `${this.base()}/approvals/${encodeURIComponent(approvalId)}`,
@@ -5299,7 +5477,7 @@ var ApprovalService = class {
5299
5477
  });
5300
5478
  }
5301
5479
  /** Delete an approval by id. */
5302
- async deleteApproval(approvalId, auth2 = SERVICE28) {
5480
+ async deleteApproval(approvalId, auth2 = SERVICE29) {
5303
5481
  await this.ctx.http.request({
5304
5482
  method: "DELETE",
5305
5483
  path: `${this.base()}/approvals/${encodeURIComponent(approvalId)}`,
@@ -5307,7 +5485,7 @@ var ApprovalService = class {
5307
5485
  });
5308
5486
  }
5309
5487
  /** Check whether an operation on a resource is permitted / needs approval. */
5310
- async checkPermitted(input, auth2 = SERVICE28) {
5488
+ async checkPermitted(input, auth2 = SERVICE29) {
5311
5489
  return this.ctx.http.request({
5312
5490
  method: "POST",
5313
5491
  path: `${this.base()}/approval/permitted`,
@@ -5316,7 +5494,7 @@ var ApprovalService = class {
5316
5494
  });
5317
5495
  }
5318
5496
  /** Search for users eligible to approve a resource. Returns an array. */
5319
- async searchApprovers(input, auth2 = SERVICE28) {
5497
+ async searchApprovers(input, auth2 = SERVICE29) {
5320
5498
  return this.ctx.http.request({
5321
5499
  method: "POST",
5322
5500
  path: `${this.base()}/search/users`,
@@ -5378,6 +5556,7 @@ var EmporixClient = class {
5378
5556
  quotes;
5379
5557
  returns;
5380
5558
  indexing;
5559
+ search;
5381
5560
  imports;
5382
5561
  auditLogs;
5383
5562
  units;
@@ -5452,6 +5631,7 @@ var EmporixClient = class {
5452
5631
  this.quotes = new QuoteService(mk(QuoteService.channel));
5453
5632
  this.returns = new ReturnsService(mk(ReturnsService.channel));
5454
5633
  this.indexing = new IndexingService(mk(IndexingService.channel));
5634
+ this.search = new SearchService(mk(SearchService.channel));
5455
5635
  this.imports = new ImportService(mk(ImportService.channel));
5456
5636
  this.auditLogs = new AuditLogService(mk(AuditLogService.channel));
5457
5637
  this.units = new UnitHandlingService(mk(UnitHandlingService.channel));
@@ -5526,6 +5706,6 @@ function productYrn(tenant, productId) {
5526
5706
  return `urn:yaas:hybris:product:product:${tenant};${productId}`;
5527
5707
  }
5528
5708
 
5529
- export { AiService, ApprovalService, AuditLogService, BrandService, CatalogService, ClientConfigService, CloudFunctionsService, CountryService, CouponService, CurrencyService, CustomerAdminService, DEFAULT_HOST, EmporixClient, FeeService, HttpClient, ImportService, IndexingService, InvoiceService, LEVEL, LabelService, LevelResolver, QuoteService, RagIndexerService, ReturnsService, RewardPointsService, STORAGE_KEYS, SchemaService, SequentialIdService, SessionContextService, ShippingService, ShoppingListService, SiteService, TaxService, TenantConfigService, UnitHandlingService, VendorService, WebhookService, approvalStatusPatch, createConsoleLogger, createCookieBackedStorage, createCookieStorage, createCore, createEmporixClient, createListenerSet, createLocalStorage, createLocalStorageStorage, createMemoryStorage, createNoopLogger, createServerStorage, createSessionStorage, emporixKey, fromWebStorage, getCustomerSessionStore, parseAnonymousSession, pickFee, productIdFromYrn, productYrn, redact, resolveZone, serverAuth, siteMeta, validateConfig };
5709
+ export { AiService, ApprovalService, AuditLogService, BrandService, CatalogService, ClientConfigService, CloudFunctionsService, CountryService, CouponService, CurrencyService, CustomerAdminService, DEFAULT_HOST, EmporixClient, FeeService, HttpClient, ImportService, IndexingService, InvoiceService, LEVEL, LabelService, LevelResolver, QuoteService, RagIndexerService, ReturnsService, RewardPointsService, STORAGE_KEYS, SchemaService, SearchService, SequentialIdService, SessionContextService, ShippingService, ShoppingListService, SiteService, TaxService, TenantConfigService, UnitHandlingService, VendorService, WebhookService, approvalStatusPatch, createConsoleLogger, createCookieBackedStorage, createCookieStorage, createCore, createEmporixClient, createListenerSet, createLocalStorage, createLocalStorageStorage, createMemoryStorage, createNoopLogger, createServerStorage, createSessionStorage, emporixKey, fromWebStorage, getCustomerSessionStore, parseAnonymousSession, pickFee, productIdFromYrn, productYrn, redact, resolveZone, serverAuth, siteMeta, validateConfig };
5530
5710
  //# sourceMappingURL=index.js.map
5531
5711
  //# sourceMappingURL=index.js.map