@viu/emporix-sdk 2.2.0 → 2.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,60 @@
1
1
  # @viu/emporix-sdk
2
2
 
3
+ ## 2.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#67](https://github.com/viuteam/emporix-sdk/pull/67) [`97cda33`](https://github.com/viuteam/emporix-sdk/commit/97cda33466e633836c046ae00dbdde051352c5f2) Thanks [@amnael1](https://github.com/amnael1)! - Add AI RAG Indexer binding: `client.ragIndexer` exposes `ragMetadata()` and
8
+ `filterMetadata()` to discover the indexed embedding / filterable fields, plus
9
+ `reindex()` to trigger a full asynchronous index rebuild. Server-side only —
10
+ these use the service (clientCredentials) token (`ai.agent_read` /
11
+ `ai.agent_manage`) and must not be called from a browser.
12
+
13
+ - [#72](https://github.com/viuteam/emporix-sdk/pull/72) [`7a3885a`](https://github.com/viuteam/emporix-sdk/commit/7a3885ad58d20c8e5726fa9e976a68588ea90e43) Thanks [@amnael1](https://github.com/amnael1)! - Add Emporix AI Service bindings via `client.ai`: text generation
14
+ (`generateText`), chat completions (`complete`), agent CRUD (`listAgents`,
15
+ `getAgent`, `upsertAgent`, `patchAgent`, `deleteAgent`, `searchAgents`), and
16
+ synchronous / asynchronous agentic chat (`chat`, `chatAsync`). Server-side only
17
+ — these use the service (clientCredentials) token and must not be called from a
18
+ browser; both chat endpoints return arrays. Templates, import/export,
19
+ logs/sessions and tokens are not yet bound.
20
+
21
+ - [#69](https://github.com/viuteam/emporix-sdk/pull/69) [`c79332e`](https://github.com/viuteam/emporix-sdk/commit/c79332e80f478d2d5d71d820279eda74d55eb08c) Thanks [@amnael1](https://github.com/amnael1)! - Add Fee Service bindings: `client.fees` provides CRUD over fee definitions
22
+ (`list`/`get`/`create`/`update`/`delete`) plus item- and product-fee mappings
23
+ (`listItemFees`/`getItemFees`/`createItemFee`/`setItemFees`/`deleteItemFees`/
24
+ `searchItemFees`, `getProductFees`/`setProductFees`/`deleteProductFees`).
25
+ Server-side only — these use the service (clientCredentials) token and must not
26
+ be called from a browser.
27
+
28
+ - [#71](https://github.com/viuteam/emporix-sdk/pull/71) [`993a563`](https://github.com/viuteam/emporix-sdk/commit/993a563a2d6e20dcf218a1367c3f2dd5e77cce0e) Thanks [@amnael1](https://github.com/amnael1)! - Add Schema Service bindings: `client.schemas` provides CRUD over schemas
29
+ (`listSchemas`/`getSchema`/`createSchema`/`updateSchema`/`deleteSchema`) plus
30
+ `validateSchemaFile`, entity types (`listTypes`/`setSchemaTypes`), custom
31
+ entities (`listCustomEntities`/`getCustomEntity`/`createCustomEntity`/
32
+ `updateCustomEntity`/`deleteCustomEntity`), and custom instances
33
+ (`listInstances`/`getInstance`/`createInstance`/`replaceInstance`/
34
+ `patchInstance`/`deleteInstance`/`searchInstances`). Server-side only — these
35
+ use the service (clientCredentials) token and must not be called from a
36
+ browser. References, export/import and bulk instance ops are not yet exposed.
37
+
38
+ - [#68](https://github.com/viuteam/emporix-sdk/pull/68) [`9861d87`](https://github.com/viuteam/emporix-sdk/commit/9861d87a2e672400e2eaf1c90052bef62641c93f) Thanks [@amnael1](https://github.com/amnael1)! - Add Sequential ID Service binding: `client.sequentialIds` provides sequence
39
+ schema admin (`listSchemas`/`getSchema`/`createSchema`/`deleteSchema`/
40
+ `setActiveSchema`/`listSchemasByType`) and id generation (`nextId`,
41
+ `nextIdsBatch`). Server-side only — these use the service (clientCredentials)
42
+ token and must not be called from a browser.
43
+
44
+ - [#65](https://github.com/viuteam/emporix-sdk/pull/65) [`dca34d0`](https://github.com/viuteam/emporix-sdk/commit/dca34d044e54c305ea2a310ba349dc800ced331a) Thanks [@amnael1](https://github.com/amnael1)! - Add Shopping List bindings: `client.shoppingLists` (per-customer named lists —
45
+ list/create/replace/delete plus read-modify-write item helpers, last-write-wins)
46
+ and React hooks (`useShoppingLists`, `useCreateShoppingList`, `useAddToShoppingList`,
47
+ `useRemoveFromShoppingList`, `useSetShoppingListItemQuantity`, `useDeleteShoppingList`).
48
+
49
+ - [#70](https://github.com/viuteam/emporix-sdk/pull/70) [`21063a1`](https://github.com/viuteam/emporix-sdk/commit/21063a161029c9ea22278c08f89b59a36cb7fb01) Thanks [@amnael1](https://github.com/amnael1)! - Add Webhook Service bindings: `client.webhooks` provides the event-subscription
50
+ catalog + batch toggle (`listEventSubscriptions` / `updateEventSubscriptions`),
51
+ delivery-config CRUD (`listConfigs` / `getConfig` / `createConfig` /
52
+ `replaceConfig` / `patchConfig` / `deleteConfig`), `getStatistics`, and
53
+ `getDashboardAccess`. `updateEventSubscriptions` returns the HTTP-207 per-item
54
+ result array so callers can handle partial failures; `patchConfig` takes the
55
+ op-based (`UPSERT`/`REMOVE`) update array. Server-side only — these use the
56
+ service (clientCredentials) token and must not be called from a browser.
57
+
3
58
  ## 2.2.0
4
59
 
5
60
  ### Minor Changes
@@ -1,4 +1,4 @@
1
- import { C as ClientContext, b as AuthContext } from './context-Bs5ZSwds.cjs';
1
+ import { C as ClientContext, b as AuthContext } from './context-CQFcPZnt.cjs';
2
2
 
3
3
  type DistributionChannel = 'ASSORTMENT' | 'HOME_DELIVERY' | 'PICKUP';
4
4
  type Availability$1 = {
@@ -1,4 +1,4 @@
1
- import { C as ClientContext, b as AuthContext } from './context-Bs5ZSwds.js';
1
+ import { C as ClientContext, b as AuthContext } from './context-CQFcPZnt.js';
2
2
 
3
3
  type DistributionChannel = 'ASSORTMENT' | 'HOME_DELIVERY' | 'PICKUP';
4
4
  type Availability$1 = {
package/dist/cart.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { C as ClientContext, b as AuthContext } from './context-Bs5ZSwds.cjs';
1
+ import { C as ClientContext, b as AuthContext } from './context-CQFcPZnt.cjs';
2
2
 
3
3
  /**
4
4
  * Access control identifier that determines who can view or manage the cart.
package/dist/cart.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { C as ClientContext, b as AuthContext } from './context-Bs5ZSwds.js';
1
+ import { C as ClientContext, b as AuthContext } from './context-CQFcPZnt.js';
2
2
 
3
3
  /**
4
4
  * Access control identifier that determines who can view or manage the cart.
@@ -1,4 +1,4 @@
1
- import { C as ClientContext, b as AuthContext, P as PaginatedItems } from './context-Bs5ZSwds.cjs';
1
+ import { C as ClientContext, b as AuthContext, P as PaginatedItems } from './context-CQFcPZnt.cjs';
2
2
  import { Product } from './product.cjs';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { C as ClientContext, b as AuthContext, P as PaginatedItems } from './context-Bs5ZSwds.js';
1
+ import { C as ClientContext, b as AuthContext, P as PaginatedItems } from './context-CQFcPZnt.js';
2
2
  import { Product } from './product.js';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { C as ClientContext, b as AuthContext } from './context-Bs5ZSwds.cjs';
1
+ import { C as ClientContext, b as AuthContext } from './context-CQFcPZnt.cjs';
2
2
 
3
3
  /**
4
4
  * Information about the customer's address.
@@ -1,4 +1,4 @@
1
- import { C as ClientContext, b as AuthContext } from './context-Bs5ZSwds.js';
1
+ import { C as ClientContext, b as AuthContext } from './context-CQFcPZnt.js';
2
2
 
3
3
  /**
4
4
  * Information about the customer's address.
@@ -1,4 +1,4 @@
1
- import { C as ClientContext, b as AuthContext } from './context-Bs5ZSwds.cjs';
1
+ import { C as ClientContext, b as AuthContext } from './context-CQFcPZnt.cjs';
2
2
  import { L as LegalEntity, f as LegalEntityCreate, h as LegalEntityUpdate } from './types.gen-D1QuqPLs.cjs';
3
3
  export { A as AccountLimit, e as CustomerGroupRef, g as LegalEntityType, i as LegalInfo } from './types.gen-D1QuqPLs.cjs';
4
4
 
@@ -1,4 +1,4 @@
1
- import { C as ClientContext, b as AuthContext } from './context-Bs5ZSwds.js';
1
+ import { C as ClientContext, b as AuthContext } from './context-CQFcPZnt.js';
2
2
  import { L as LegalEntity, f as LegalEntityCreate, h as LegalEntityUpdate } from './types.gen-D1QuqPLs.js';
3
3
  export { A as AccountLimit, e as CustomerGroupRef, g as LegalEntityType, i as LegalInfo } from './types.gen-D1QuqPLs.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import { C as ClientContext, b as AuthContext } from './context-Bs5ZSwds.cjs';
1
+ import { C as ClientContext, b as AuthContext } from './context-CQFcPZnt.cjs';
2
2
  import { C as ContactAssignment, a as ContactAssignmentCreate, c as ContactAssignmentUpdate } from './types.gen-D1QuqPLs.cjs';
3
3
  export { b as ContactAssignmentType } from './types.gen-D1QuqPLs.cjs';
4
4
 
@@ -1,4 +1,4 @@
1
- import { C as ClientContext, b as AuthContext } from './context-Bs5ZSwds.js';
1
+ import { C as ClientContext, b as AuthContext } from './context-CQFcPZnt.js';
2
2
  import { C as ContactAssignment, a as ContactAssignmentCreate, c as ContactAssignmentUpdate } from './types.gen-D1QuqPLs.js';
3
3
  export { b as ContactAssignmentType } from './types.gen-D1QuqPLs.js';
4
4
 
@@ -3,7 +3,7 @@ type LogLevel = "trace" | "debug" | "info" | "warn" | "error" | "silent";
3
3
  /** Numeric ordering used for fast comparison. */
4
4
  declare const LEVEL: Record<LogLevel, number>;
5
5
  /** Services that bind their own logger and are independently level-controllable. */
6
- type ServiceName = "customer" | "product" | "category" | "cart" | "checkout" | "payment" | "price" | "media" | "segment" | "site" | "session-context" | "customer-management" | "iam" | "orders" | "sales-orders" | "availability" | "configuration" | "http" | "auth";
6
+ type ServiceName = "customer" | "product" | "category" | "cart" | "checkout" | "payment" | "price" | "media" | "segment" | "site" | "session-context" | "customer-management" | "iam" | "orders" | "sales-orders" | "availability" | "configuration" | "shopping-list" | "ai-rag-indexer" | "sequential-id" | "fee" | "webhook" | "schema" | "ai" | "http" | "auth";
7
7
  /** Arbitrary structured fields attached to a log line. */
8
8
  interface LogFields {
9
9
  [key: string]: unknown;
@@ -3,7 +3,7 @@ type LogLevel = "trace" | "debug" | "info" | "warn" | "error" | "silent";
3
3
  /** Numeric ordering used for fast comparison. */
4
4
  declare const LEVEL: Record<LogLevel, number>;
5
5
  /** Services that bind their own logger and are independently level-controllable. */
6
- type ServiceName = "customer" | "product" | "category" | "cart" | "checkout" | "payment" | "price" | "media" | "segment" | "site" | "session-context" | "customer-management" | "iam" | "orders" | "sales-orders" | "availability" | "configuration" | "http" | "auth";
6
+ type ServiceName = "customer" | "product" | "category" | "cart" | "checkout" | "payment" | "price" | "media" | "segment" | "site" | "session-context" | "customer-management" | "iam" | "orders" | "sales-orders" | "availability" | "configuration" | "shopping-list" | "ai-rag-indexer" | "sequential-id" | "fee" | "webhook" | "schema" | "ai" | "http" | "auth";
7
7
  /** Arbitrary structured fields attached to a log line. */
8
8
  interface LogFields {
9
9
  [key: string]: unknown;
@@ -1,4 +1,4 @@
1
- import { C as ClientContext, b as AuthContext } from './context-Bs5ZSwds.cjs';
1
+ import { C as ClientContext, b as AuthContext } from './context-CQFcPZnt.cjs';
2
2
 
3
3
  /**
4
4
  * Hand-written mirror of the minimal IAM Service group shape needed for
@@ -1,4 +1,4 @@
1
- import { C as ClientContext, b as AuthContext } from './context-Bs5ZSwds.js';
1
+ import { C as ClientContext, b as AuthContext } from './context-CQFcPZnt.js';
2
2
 
3
3
  /**
4
4
  * Hand-written mirror of the minimal IAM Service group shape needed for
@@ -1,4 +1,4 @@
1
- import { C as ClientContext, A as AnonymousSession, b as AuthContext } from './context-Bs5ZSwds.cjs';
1
+ import { C as ClientContext, A as AnonymousSession, b as AuthContext } from './context-CQFcPZnt.cjs';
2
2
 
3
3
  type AccountId = {
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { C as ClientContext, A as AnonymousSession, b as AuthContext } from './context-Bs5ZSwds.js';
1
+ import { C as ClientContext, A as AnonymousSession, b as AuthContext } from './context-CQFcPZnt.js';
2
2
 
3
3
  type AccountId = {
4
4
  /**