@viu/emporix-sdk 3.6.0 → 4.0.1

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 (49) hide show
  1. package/CHANGELOG.md +116 -0
  2. package/README.md +2 -2
  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/{chunk-3G5KROEC.js → chunk-XJJDCK2Z.js} +80 -3
  12. package/dist/chunk-XJJDCK2Z.js.map +1 -0
  13. package/dist/companies.d.cts +1 -1
  14. package/dist/companies.d.ts +1 -1
  15. package/dist/contacts.d.cts +1 -1
  16. package/dist/contacts.d.ts +1 -1
  17. package/dist/{context-CZdtWgQO.d.cts → context-5lt8Q0MT.d.cts} +1 -1
  18. package/dist/{context-CZdtWgQO.d.ts → context-5lt8Q0MT.d.ts} +1 -1
  19. package/dist/{customer-groups-OEnqHFsX.d.cts → customer-groups-8cgS8S5d.d.cts} +1 -1
  20. package/dist/{customer-groups-DhrOoC8M.d.ts → customer-groups-DizW_a-w.d.ts} +1 -1
  21. package/dist/customer-groups.d.cts +2 -2
  22. package/dist/customer-groups.d.ts +2 -2
  23. package/dist/customer.d.cts +1 -1
  24. package/dist/customer.d.ts +1 -1
  25. package/dist/index.cjs +201 -139
  26. package/dist/index.cjs.map +1 -1
  27. package/dist/index.d.cts +315 -601
  28. package/dist/index.d.ts +315 -601
  29. package/dist/index.js +126 -140
  30. package/dist/index.js.map +1 -1
  31. package/dist/locations.d.cts +1 -1
  32. package/dist/locations.d.ts +1 -1
  33. package/dist/media.d.cts +11 -11
  34. package/dist/media.d.ts +11 -11
  35. package/dist/orders.d.cts +1 -1
  36. package/dist/orders.d.ts +1 -1
  37. package/dist/payment.d.cts +1 -1
  38. package/dist/payment.d.ts +1 -1
  39. package/dist/price.d.cts +1 -1
  40. package/dist/price.d.ts +1 -1
  41. package/dist/product.d.cts +1 -1
  42. package/dist/product.d.ts +1 -1
  43. package/dist/segment.cjs +78 -1
  44. package/dist/segment.cjs.map +1 -1
  45. package/dist/segment.d.cts +90 -3
  46. package/dist/segment.d.ts +90 -3
  47. package/dist/segment.js +1 -1
  48. package/package.json +1 -1
  49. package/dist/chunk-3G5KROEC.js.map +0 -1
package/dist/index.js CHANGED
@@ -10,8 +10,8 @@ import { PriceService } from './chunk-ZOFGDNSX.js';
10
10
  export { PriceService } from './chunk-ZOFGDNSX.js';
11
11
  import { ProductService } from './chunk-2SHTDVOC.js';
12
12
  export { ProductService } from './chunk-2SHTDVOC.js';
13
- import { SegmentService } from './chunk-3G5KROEC.js';
14
- export { SegmentService } from './chunk-3G5KROEC.js';
13
+ import { SegmentService } from './chunk-XJJDCK2Z.js';
14
+ export { SegmentService } from './chunk-XJJDCK2Z.js';
15
15
  import { AvailabilityService } from './chunk-XQAOHHXL.js';
16
16
  export { AvailabilityService } from './chunk-XQAOHHXL.js';
17
17
  import { CartService } from './chunk-YVZ6GOLE.js';
@@ -945,7 +945,7 @@ var HttpClient = class {
945
945
  };
946
946
 
947
947
  // package.json
948
- var version = "3.6.0";
948
+ var version = "4.0.1";
949
949
 
950
950
  // src/version.ts
951
951
  var SDK_VERSION = version;
@@ -2564,6 +2564,16 @@ var AnalyticsResource = class {
2564
2564
 
2565
2565
  // src/services/ai.ts
2566
2566
  var SERVICE10 = { kind: "service" };
2567
+ function assertChatOptions(opts, method) {
2568
+ if (typeof opts === "object" && opts !== null && "kind" in opts) {
2569
+ throw new Error(
2570
+ `ai.${method}: the second argument is { sessionId? } since 4.0.0 \u2014 pass the auth context third`
2571
+ );
2572
+ }
2573
+ }
2574
+ function sessionHeader(opts) {
2575
+ return opts.sessionId ? { headers: { "session-id": opts.sessionId } } : {};
2576
+ }
2567
2577
  var AiService = class {
2568
2578
  constructor(ctx) {
2569
2579
  this.ctx = ctx;
@@ -2694,40 +2704,50 @@ var AiService = class {
2694
2704
  /**
2695
2705
  * Synchronous agent chat (`POST /agentic/chat`). Returns the response
2696
2706
  * ARRAY verbatim (the upstream contract is an array, not a single object).
2707
+ *
2708
+ * `opts.sessionId` is sent as the `session-id` header. It carries the
2709
+ * conversation — continuity needs it plus `enabledMemory` on the agent — and
2710
+ * it is how a chat reaches an attachment: pass the `sessionId` the upload or
2711
+ * reuse returned, and list the file under `input.attachments`.
2697
2712
  */
2698
- async chat(input, auth2 = SERVICE10) {
2713
+ async chat(input, opts = {}, auth2 = SERVICE10) {
2714
+ assertChatOptions(opts, "chat");
2699
2715
  return this.ctx.http.request({
2700
2716
  method: "POST",
2701
2717
  path: `${this.base()}/agentic/chat`,
2702
2718
  auth: auth2,
2703
- body: input
2719
+ body: input,
2720
+ ...sessionHeader(opts)
2704
2721
  });
2705
2722
  }
2706
2723
  /**
2707
2724
  * Fire-and-forget agent chat (`POST /agentic/chat-async`, HTTP 201).
2708
- * Returns the job-id ARRAY verbatim.
2725
+ * Returns the job-id ARRAY verbatim. `opts` as for {@link chat}.
2709
2726
  */
2710
- async chatAsync(input, auth2 = SERVICE10) {
2727
+ async chatAsync(input, opts = {}, auth2 = SERVICE10) {
2728
+ assertChatOptions(opts, "chatAsync");
2711
2729
  return this.ctx.http.request({
2712
2730
  method: "POST",
2713
2731
  path: `${this.base()}/agentic/chat-async`,
2714
2732
  auth: auth2,
2715
- body: input
2733
+ body: input,
2734
+ ...sessionHeader(opts)
2716
2735
  });
2717
2736
  }
2718
2737
  /**
2719
2738
  * Streaming agent chat (`POST /agentic/chat-stream`, `text/event-stream`).
2720
2739
  * Yields each SSE `data` payload verbatim — the upstream contract types the
2721
2740
  * stream body as an opaque string, so chunks are raw strings, not parsed
2722
- * objects. Consume with `for await`.
2741
+ * objects. Consume with `for await`. `opts` as for {@link chat}.
2723
2742
  */
2724
2743
  async *chatStream(input, opts = {}, auth2 = SERVICE10) {
2744
+ assertChatOptions(opts, "chatStream");
2725
2745
  const events = this.ctx.http.requestStream({
2726
2746
  method: "POST",
2727
2747
  path: `${this.base()}/agentic/chat-stream`,
2728
2748
  auth: auth2,
2729
2749
  body: input,
2730
- ...opts.sessionId ? { headers: { "session-id": opts.sessionId } } : {}
2750
+ ...sessionHeader(opts)
2731
2751
  });
2732
2752
  for await (const ev of events) yield ev.data;
2733
2753
  }
@@ -2787,28 +2807,31 @@ var AiService = class {
2787
2807
  });
2788
2808
  }
2789
2809
  /**
2790
- * Assign an attachment that already exists in a session to another agent
2810
+ * Assign an existing media asset to an agent as a chat attachment
2791
2811
  * (`POST /agentic/{agentId}/attachments` with the `attachmentId` form field,
2792
- * HTTP 204 — nothing is returned, unlike {@link uploadAttachment}'s 201).
2812
+ * HTTP 200). Resolves to the attachment `id` and the `sessionId` to send on
2813
+ * the following chat calls.
2793
2814
  *
2794
2815
  * Use it to hand a second agent the same file instead of uploading it twice.
2795
- * The attachment is resolved inside `opts.sessionId`, which is why that is
2796
- * required rather than optional — the id alone does not identify a file.
2816
+ * Pass `opts.sessionId` to attach to an existing chat session; without it the
2817
+ * service opens a new one and returns its id — thread that into the chat, or
2818
+ * the agent never sees the file. With `ai.agentexecution_manage` the asset may
2819
+ * be any media asset, not only one uploaded to this session.
2797
2820
  *
2798
2821
  * ```ts
2799
2822
  * const { id, sessionId } = await client.ai.uploadAttachment("agent-a", file);
2800
2823
  * await client.ai.reuseAttachment("agent-b", id!, { sessionId: sessionId! });
2801
2824
  * ```
2802
2825
  */
2803
- async reuseAttachment(agentId, attachmentId, opts, auth2 = SERVICE10) {
2826
+ async reuseAttachment(agentId, attachmentId, opts = {}, auth2 = SERVICE10) {
2804
2827
  const form = new FormData();
2805
2828
  form.append("attachmentId", attachmentId);
2806
- await this.ctx.http.request({
2829
+ return this.ctx.http.request({
2807
2830
  method: "POST",
2808
2831
  path: `${this.base()}/agentic/${encodeURIComponent(agentId)}/attachments`,
2809
2832
  auth: auth2,
2810
2833
  body: form,
2811
- headers: { "session-id": opts.sessionId }
2834
+ ...opts.sessionId ? { headers: { "session-id": opts.sessionId } } : {}
2812
2835
  });
2813
2836
  }
2814
2837
  /** Export agents + components as a base64/checksum blob (`POST /agentic/agents/export`). */
@@ -4351,6 +4374,23 @@ var ImportService = class {
4351
4374
  auth: auth2
4352
4375
  });
4353
4376
  }
4377
+ /**
4378
+ * The order in which a configuration's streams run, and the dependencies
4379
+ * behind it. Read it here instead of deriving it from the stream definitions:
4380
+ * mapping transformations add dependencies that no single stream shows, so a
4381
+ * self-computed order can differ from the one used at run time.
4382
+ *
4383
+ * The result lists stream **names**, while {@link triggerRun}'s `streamIds`
4384
+ * takes stream **ids** — map through {@link listStreams} before passing a
4385
+ * subset back.
4386
+ */
4387
+ async getStreamOrder(configId, auth2 = SERVICE22) {
4388
+ return this.ctx.http.request({
4389
+ method: "GET",
4390
+ path: `${this.base()}/configs/${encodeURIComponent(configId)}/stream-order`,
4391
+ auth: auth2
4392
+ });
4393
+ }
4354
4394
  /**
4355
4395
  * Fetch a configuration's schedule. Resolves to `null` when none is
4356
4396
  * configured — the service answers `204`, not `404`, so an absent schedule is
@@ -4415,6 +4455,9 @@ var ImportService = class {
4415
4455
  * integration scenario are indistinguishable in the history. Note the service
4416
4456
  * **rejects** an `origin` over 40 characters instead of shortening it.
4417
4457
  *
4458
+ * `streamIds` runs a subset — see {@link ImportRunInput} for what is rejected,
4459
+ * and note it takes ids where {@link getStreamOrder} reports names.
4460
+ *
4418
4461
  * Not retried on a 5xx: a POST that timed out may already have queued a run.
4419
4462
  *
4420
4463
  * @example
@@ -4506,6 +4549,43 @@ var ImportService = class {
4506
4549
  });
4507
4550
  return toPage(wire, args);
4508
4551
  }
4552
+ /**
4553
+ * The rows behind a run's feed-quality counters: source rows that repeated a
4554
+ * natural key (`kind: "REPEATED_KEY"`, counted as `duplicateKeys`) and child
4555
+ * lines with no parent to attach to (`"UNRESOLVED_PARENT"`, counted as
4556
+ * `unresolvedParents`). Neither is a failure, which is why these rows are not
4557
+ * in {@link listRunErrors}.
4558
+ *
4559
+ * **A capped sample** — see {@link ImportRunDiagnostics} before reading
4560
+ * `rows.length` as the size of the problem. `limit` defaults to 500 here
4561
+ * (1–50 000); {@link downloadRunDiagnosticsCsv} defaults to 50 000.
4562
+ */
4563
+ async listRunDiagnostics(runId, query = {}, auth2 = SERVICE22) {
4564
+ return this.ctx.http.request({
4565
+ method: "GET",
4566
+ path: `${this.base()}/runs/${encodeURIComponent(runId)}/diagnostics`,
4567
+ query: { ...query },
4568
+ auth: auth2
4569
+ });
4570
+ }
4571
+ /**
4572
+ * The same rows as {@link listRunDiagnostics}, as CSV text for a spreadsheet
4573
+ * or a ticket. Comment lines above the header record whether `limit` or the
4574
+ * recording cap cut rows off, so the file keeps that context when shared on
4575
+ * its own. `limit` defaults to 50 000 here, not 500.
4576
+ *
4577
+ * Every value is quoted, and a value starting with `=`, `+`, `-` or `@` is
4578
+ * prefixed with an apostrophe so spreadsheet software does not evaluate source
4579
+ * data as a formula. Strip it if you parse the file instead of opening it.
4580
+ */
4581
+ async downloadRunDiagnosticsCsv(runId, query = {}, auth2 = SERVICE22) {
4582
+ return this.ctx.http.request({
4583
+ method: "GET",
4584
+ path: `${this.base()}/runs/${encodeURIComponent(runId)}/diagnostics/csv`,
4585
+ query: { ...query },
4586
+ auth: auth2
4587
+ });
4588
+ }
4509
4589
  /** List the target types that hold imported records — the valid `type` values for {@link searchRecords}. */
4510
4590
  async listDataTypes(auth2 = SERVICE22) {
4511
4591
  return this.ctx.http.request({
@@ -4953,100 +5033,8 @@ var VendorService = class {
4953
5033
  }
4954
5034
  };
4955
5035
 
4956
- // src/services/pick-pack.ts
4957
- var SERVICE27 = { kind: "service" };
4958
- var PickPackService = class {
4959
- constructor(ctx) {
4960
- this.ctx = ctx;
4961
- }
4962
- ctx;
4963
- static channel = "pick-pack";
4964
- base() {
4965
- return `/pick-pack/${this.ctx.tenant}`;
4966
- }
4967
- orderPath(orderId) {
4968
- return `${this.base()}/orders/${encodeURIComponent(orderId)}`;
4969
- }
4970
- /** List packlist orders. */
4971
- async listOrders(query = {}, auth2 = SERVICE27) {
4972
- return this.ctx.http.request({
4973
- method: "GET",
4974
- path: `${this.base()}/orders`,
4975
- auth: auth2,
4976
- ...Object.keys(query).length ? { query } : {}
4977
- });
4978
- }
4979
- /** Retrieve a packlist order by id. */
4980
- async getOrder(orderId, auth2 = SERVICE27) {
4981
- return this.ctx.http.request({ method: "GET", path: this.orderPath(orderId), auth: auth2 });
4982
- }
4983
- /** Update an order's status (`PATCH`). Returns an acknowledgement. */
4984
- async updateOrder(orderId, change, auth2 = SERVICE27) {
4985
- return this.ctx.http.request({ method: "PATCH", path: this.orderPath(orderId), auth: auth2, body: change });
4986
- }
4987
- /** Finish an order. Returns an acknowledgement. */
4988
- async finishOrder(orderId, auth2 = SERVICE27) {
4989
- return this.ctx.http.request({ method: "POST", path: `${this.orderPath(orderId)}/finish`, auth: auth2 });
4990
- }
4991
- /** List order cycles (ids). */
4992
- async listOrderCycles(query = {}, auth2 = SERVICE27) {
4993
- return this.ctx.http.request({
4994
- method: "GET",
4995
- path: `${this.base()}/orderCycles`,
4996
- auth: auth2,
4997
- ...Object.keys(query).length ? { query } : {}
4998
- });
4999
- }
5000
- /** Add an assignee to an order. Returns an acknowledgement. */
5001
- async addAssignee(orderId, assignee, auth2 = SERVICE27) {
5002
- return this.ctx.http.request({ method: "POST", path: `${this.orderPath(orderId)}/assignees`, auth: auth2, body: assignee });
5003
- }
5004
- /** Remove an assignee from an order. */
5005
- async removeAssignee(orderId, assigneeId, auth2 = SERVICE27) {
5006
- await this.ctx.http.request({
5007
- method: "DELETE",
5008
- path: `${this.orderPath(orderId)}/assignees/${encodeURIComponent(assigneeId)}`,
5009
- auth: auth2
5010
- });
5011
- }
5012
- /** Update packaging products for an order (`PUT`). Returns an acknowledgement. */
5013
- async updatePackaging(orderId, change, auth2 = SERVICE27) {
5014
- return this.ctx.http.request({ method: "PUT", path: `${this.orderPath(orderId)}/packaging`, auth: auth2, body: change });
5015
- }
5016
- /** Create a packing event. Returns an acknowledgement. */
5017
- async createEvent(event, auth2 = SERVICE27) {
5018
- return this.ctx.http.request({ method: "POST", path: `${this.base()}/events`, auth: auth2, body: event });
5019
- }
5020
- /** List packing events. */
5021
- async listEvents(query = {}, auth2 = SERVICE27) {
5022
- return this.ctx.http.request({
5023
- method: "GET",
5024
- path: `${this.base()}/events`,
5025
- auth: auth2,
5026
- ...Object.keys(query).length ? { query } : {}
5027
- });
5028
- }
5029
- /** Trigger an order recalculation. Returns the created job's id. */
5030
- async triggerRecalculation(input, auth2 = SERVICE27) {
5031
- return this.ctx.http.request({
5032
- method: "POST",
5033
- path: `${this.base()}/jobs/recalculations`,
5034
- auth: auth2,
5035
- body: input
5036
- });
5037
- }
5038
- /** Retrieve a recalculation job by id. */
5039
- async getRecalculationJob(jobId, auth2 = SERVICE27) {
5040
- return this.ctx.http.request({
5041
- method: "GET",
5042
- path: `${this.base()}/jobs/recalculations/${encodeURIComponent(jobId)}`,
5043
- auth: auth2
5044
- });
5045
- }
5046
- };
5047
-
5048
5036
  // src/services/customer-admin.ts
5049
- var SERVICE28 = { kind: "service" };
5037
+ var SERVICE27 = { kind: "service" };
5050
5038
  var CustomerAdminService = class {
5051
5039
  constructor(ctx) {
5052
5040
  this.ctx = ctx;
@@ -5067,7 +5055,7 @@ var CustomerAdminService = class {
5067
5055
  }
5068
5056
  // --- Customers ---
5069
5057
  /** List customers. */
5070
- async listCustomers(query = {}, auth2 = SERVICE28) {
5058
+ async listCustomers(query = {}, auth2 = SERVICE27) {
5071
5059
  return this.ctx.http.request({
5072
5060
  method: "GET",
5073
5061
  path: this.base(),
@@ -5076,33 +5064,33 @@ var CustomerAdminService = class {
5076
5064
  });
5077
5065
  }
5078
5066
  /** Search customers (`POST /customers/search`). A built filter in `q` is resolved to a string. */
5079
- async searchCustomers(query, auth2 = SERVICE28) {
5067
+ async searchCustomers(query, auth2 = SERVICE27) {
5080
5068
  const body = query.q !== void 0 ? { ...query, q: resolveQuery(query.q, { compoundLogicalQuery: false }) } : query;
5081
5069
  return this.ctx.http.request({ method: "POST", path: `${this.base()}/search`, auth: auth2, body });
5082
5070
  }
5083
5071
  /** Retrieve a customer profile by number. */
5084
- async getCustomer(customerNumber, auth2 = SERVICE28) {
5072
+ async getCustomer(customerNumber, auth2 = SERVICE27) {
5085
5073
  return this.ctx.http.request({ method: "GET", path: this.customerPath(customerNumber), auth: auth2 });
5086
5074
  }
5087
5075
  /** Create a customer. */
5088
- async createCustomer(input, auth2 = SERVICE28) {
5076
+ async createCustomer(input, auth2 = SERVICE27) {
5089
5077
  return this.ctx.http.request({ method: "POST", path: this.base(), auth: auth2, body: input });
5090
5078
  }
5091
5079
  /** Upsert a customer profile by number (`PUT`). */
5092
- async upsertCustomer(customerNumber, input, auth2 = SERVICE28) {
5080
+ async upsertCustomer(customerNumber, input, auth2 = SERVICE27) {
5093
5081
  return this.ctx.http.request({ method: "PUT", path: this.customerPath(customerNumber), auth: auth2, body: input });
5094
5082
  }
5095
5083
  /** Partially update a customer profile (`PATCH`). */
5096
- async patchCustomer(customerNumber, patch, auth2 = SERVICE28) {
5084
+ async patchCustomer(customerNumber, patch, auth2 = SERVICE27) {
5097
5085
  await this.ctx.http.request({ method: "PATCH", path: this.customerPath(customerNumber), auth: auth2, body: patch });
5098
5086
  }
5099
5087
  /** Delete a customer profile. */
5100
- async deleteCustomer(customerNumber, auth2 = SERVICE28) {
5088
+ async deleteCustomer(customerNumber, auth2 = SERVICE27) {
5101
5089
  await this.ctx.http.request({ method: "DELETE", path: this.customerPath(customerNumber), auth: auth2 });
5102
5090
  }
5103
5091
  // --- Addresses ---
5104
5092
  /** List a customer's addresses. */
5105
- async listAddresses(customerNumber, auth2 = SERVICE28) {
5093
+ async listAddresses(customerNumber, auth2 = SERVICE27) {
5106
5094
  return this.ctx.http.request({
5107
5095
  method: "GET",
5108
5096
  path: `${this.customerPath(customerNumber)}/addresses`,
@@ -5110,11 +5098,11 @@ var CustomerAdminService = class {
5110
5098
  });
5111
5099
  }
5112
5100
  /** Retrieve one address. */
5113
- async getAddress(customerNumber, addressId, auth2 = SERVICE28) {
5101
+ async getAddress(customerNumber, addressId, auth2 = SERVICE27) {
5114
5102
  return this.ctx.http.request({ method: "GET", path: this.addressPath(customerNumber, addressId), auth: auth2 });
5115
5103
  }
5116
5104
  /** Add an address. */
5117
- async addAddress(customerNumber, input, auth2 = SERVICE28) {
5105
+ async addAddress(customerNumber, input, auth2 = SERVICE27) {
5118
5106
  return this.ctx.http.request({
5119
5107
  method: "POST",
5120
5108
  path: `${this.customerPath(customerNumber)}/addresses`,
@@ -5123,19 +5111,19 @@ var CustomerAdminService = class {
5123
5111
  });
5124
5112
  }
5125
5113
  /** Upsert an address by id (`PUT`). */
5126
- async upsertAddress(customerNumber, addressId, input, auth2 = SERVICE28) {
5114
+ async upsertAddress(customerNumber, addressId, input, auth2 = SERVICE27) {
5127
5115
  return this.ctx.http.request({ method: "PUT", path: this.addressPath(customerNumber, addressId), auth: auth2, body: input });
5128
5116
  }
5129
5117
  /** Partially update an address by id (`PATCH`). */
5130
- async patchAddress(customerNumber, addressId, patch, auth2 = SERVICE28) {
5118
+ async patchAddress(customerNumber, addressId, patch, auth2 = SERVICE27) {
5131
5119
  await this.ctx.http.request({ method: "PATCH", path: this.addressPath(customerNumber, addressId), auth: auth2, body: patch });
5132
5120
  }
5133
5121
  /** Delete an address by id. */
5134
- async deleteAddress(customerNumber, addressId, auth2 = SERVICE28) {
5122
+ async deleteAddress(customerNumber, addressId, auth2 = SERVICE27) {
5135
5123
  await this.ctx.http.request({ method: "DELETE", path: this.addressPath(customerNumber, addressId), auth: auth2 });
5136
5124
  }
5137
5125
  /** Add tags to an address (`?tags=` query). */
5138
- async addAddressTags(customerNumber, addressId, tags, auth2 = SERVICE28) {
5126
+ async addAddressTags(customerNumber, addressId, tags, auth2 = SERVICE27) {
5139
5127
  await this.ctx.http.request({
5140
5128
  method: "POST",
5141
5129
  path: `${this.addressPath(customerNumber, addressId)}/tags`,
@@ -5144,7 +5132,7 @@ var CustomerAdminService = class {
5144
5132
  });
5145
5133
  }
5146
5134
  /** Remove tags from an address (`?tags=` query). */
5147
- async removeAddressTags(customerNumber, addressId, tags, auth2 = SERVICE28) {
5135
+ async removeAddressTags(customerNumber, addressId, tags, auth2 = SERVICE27) {
5148
5136
  await this.ctx.http.request({
5149
5137
  method: "DELETE",
5150
5138
  path: `${this.addressPath(customerNumber, addressId)}/tags`,
@@ -5158,7 +5146,7 @@ var CustomerAdminService = class {
5158
5146
  * `customer.import_read` scope. An unconfigured tenant answers with an empty
5159
5147
  * object rather than a 404.
5160
5148
  */
5161
- async getPasswordMigrationRetention(auth2 = SERVICE28) {
5149
+ async getPasswordMigrationRetention(auth2 = SERVICE27) {
5162
5150
  return this.ctx.http.request({
5163
5151
  method: "GET",
5164
5152
  path: this.configPath(),
@@ -5171,7 +5159,7 @@ var CustomerAdminService = class {
5171
5159
  * `legacyAuth`** — that import is rejected without an active config. Re-POST with
5172
5160
  * an earlier `retentionEndDate` to shorten a running window.
5173
5161
  */
5174
- async configurePasswordMigrationRetention(input, auth2 = SERVICE28) {
5162
+ async configurePasswordMigrationRetention(input, auth2 = SERVICE27) {
5175
5163
  return this.ctx.http.request({
5176
5164
  method: "POST",
5177
5165
  path: this.configPath(),
@@ -5184,7 +5172,7 @@ var CustomerAdminService = class {
5184
5172
  * Intended for after the migration window: when the window ends, unmigrated
5185
5173
  * accounts need a password reset and their legacy credentials are cleared.
5186
5174
  */
5187
- async deletePasswordMigrationRetention(auth2 = SERVICE28) {
5175
+ async deletePasswordMigrationRetention(auth2 = SERVICE27) {
5188
5176
  await this.ctx.http.request({ method: "DELETE", path: this.configPath(), auth: auth2 });
5189
5177
  }
5190
5178
  // --- Bulk import ---
@@ -5197,7 +5185,7 @@ var CustomerAdminService = class {
5197
5185
  * `account.legacyAuth`, and importing `legacyAuth` requires an active retention
5198
5186
  * config (see `configurePasswordMigrationRetention`).
5199
5187
  */
5200
- async importCustomers(input, auth2 = SERVICE28) {
5188
+ async importCustomers(input, auth2 = SERVICE27) {
5201
5189
  return this.ctx.http.request({
5202
5190
  method: "POST",
5203
5191
  path: `${this.base()}/import`,
@@ -5208,7 +5196,7 @@ var CustomerAdminService = class {
5208
5196
  };
5209
5197
 
5210
5198
  // src/services/approval.ts
5211
- var SERVICE29 = { kind: "service" };
5199
+ var SERVICE28 = { kind: "service" };
5212
5200
  var ApprovalService = class {
5213
5201
  constructor(ctx) {
5214
5202
  this.ctx = ctx;
@@ -5219,7 +5207,7 @@ var ApprovalService = class {
5219
5207
  return `/approval/${this.ctx.tenant}`;
5220
5208
  }
5221
5209
  /** List approvals (paged via `pageNumber`/`pageSize`/`sort`/`q`). Returns an array. */
5222
- async listApprovals(query = {}, auth2 = SERVICE29) {
5210
+ async listApprovals(query = {}, auth2 = SERVICE28) {
5223
5211
  return this.ctx.http.request({
5224
5212
  method: "GET",
5225
5213
  path: `${this.base()}/approvals`,
@@ -5228,7 +5216,7 @@ var ApprovalService = class {
5228
5216
  });
5229
5217
  }
5230
5218
  /** Retrieve a single approval by id. */
5231
- async getApproval(approvalId, auth2 = SERVICE29) {
5219
+ async getApproval(approvalId, auth2 = SERVICE28) {
5232
5220
  return this.ctx.http.request({
5233
5221
  method: "GET",
5234
5222
  path: `${this.base()}/approvals/${encodeURIComponent(approvalId)}`,
@@ -5236,7 +5224,7 @@ var ApprovalService = class {
5236
5224
  });
5237
5225
  }
5238
5226
  /** Create an approval request (cart or quote). Returns the created `{ id }`. */
5239
- async createApproval(input, auth2 = SERVICE29) {
5227
+ async createApproval(input, auth2 = SERVICE28) {
5240
5228
  return this.ctx.http.request({
5241
5229
  method: "POST",
5242
5230
  path: `${this.base()}/approvals`,
@@ -5245,7 +5233,7 @@ var ApprovalService = class {
5245
5233
  });
5246
5234
  }
5247
5235
  /** Approve/reject/amend an approval via a JSON-Patch op-array (`PATCH`). */
5248
- async updateApproval(approvalId, ops, auth2 = SERVICE29) {
5236
+ async updateApproval(approvalId, ops, auth2 = SERVICE28) {
5249
5237
  await this.ctx.http.request({
5250
5238
  method: "PATCH",
5251
5239
  path: `${this.base()}/approvals/${encodeURIComponent(approvalId)}`,
@@ -5254,7 +5242,7 @@ var ApprovalService = class {
5254
5242
  });
5255
5243
  }
5256
5244
  /** Delete an approval by id. */
5257
- async deleteApproval(approvalId, auth2 = SERVICE29) {
5245
+ async deleteApproval(approvalId, auth2 = SERVICE28) {
5258
5246
  await this.ctx.http.request({
5259
5247
  method: "DELETE",
5260
5248
  path: `${this.base()}/approvals/${encodeURIComponent(approvalId)}`,
@@ -5262,7 +5250,7 @@ var ApprovalService = class {
5262
5250
  });
5263
5251
  }
5264
5252
  /** Check whether an operation on a resource is permitted / needs approval. */
5265
- async checkPermitted(input, auth2 = SERVICE29) {
5253
+ async checkPermitted(input, auth2 = SERVICE28) {
5266
5254
  return this.ctx.http.request({
5267
5255
  method: "POST",
5268
5256
  path: `${this.base()}/approval/permitted`,
@@ -5271,7 +5259,7 @@ var ApprovalService = class {
5271
5259
  });
5272
5260
  }
5273
5261
  /** Search for users eligible to approve a resource. Returns an array. */
5274
- async searchApprovers(input, auth2 = SERVICE29) {
5262
+ async searchApprovers(input, auth2 = SERVICE28) {
5275
5263
  return this.ctx.http.request({
5276
5264
  method: "POST",
5277
5265
  path: `${this.base()}/search/users`,
@@ -5338,7 +5326,6 @@ var EmporixClient = class {
5338
5326
  units;
5339
5327
  catalogs;
5340
5328
  vendors;
5341
- pickPack;
5342
5329
  customerAdmin;
5343
5330
  approvals;
5344
5331
  /** The validated tenant this client is bound to. */
@@ -5413,7 +5400,6 @@ var EmporixClient = class {
5413
5400
  this.units = new UnitHandlingService(mk(UnitHandlingService.channel));
5414
5401
  this.catalogs = new CatalogService(mk(CatalogService.channel));
5415
5402
  this.vendors = new VendorService(mk(VendorService.channel));
5416
- this.pickPack = new PickPackService(mk(PickPackService.channel));
5417
5403
  this.customerAdmin = new CustomerAdminService(mk(CustomerAdminService.channel));
5418
5404
  this.approvals = new ApprovalService(mk(ApprovalService.channel));
5419
5405
  }
@@ -5483,6 +5469,6 @@ function productYrn(tenant, productId) {
5483
5469
  return `urn:yaas:hybris:product:product:${tenant};${productId}`;
5484
5470
  }
5485
5471
 
5486
- export { AiService, ApprovalService, AuditLogService, BrandService, CatalogService, ClientConfigService, CloudFunctionsService, CountryService, CouponService, CurrencyService, CustomerAdminService, DEFAULT_HOST, EmporixClient, FeeService, HttpClient, ImportService, IndexingService, InvoiceService, LEVEL, LabelService, LevelResolver, PickPackService, 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 };
5472
+ 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 };
5487
5473
  //# sourceMappingURL=index.js.map
5488
5474
  //# sourceMappingURL=index.js.map