@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 +55 -0
- package/dist/availability.d.cts +1 -1
- package/dist/availability.d.ts +1 -1
- package/dist/cart.d.cts +1 -1
- package/dist/cart.d.ts +1 -1
- package/dist/category.d.cts +1 -1
- package/dist/category.d.ts +1 -1
- package/dist/checkout.d.cts +1 -1
- package/dist/checkout.d.ts +1 -1
- package/dist/companies.d.cts +1 -1
- package/dist/companies.d.ts +1 -1
- package/dist/contacts.d.cts +1 -1
- package/dist/contacts.d.ts +1 -1
- package/dist/{context-Bs5ZSwds.d.cts → context-CQFcPZnt.d.cts} +1 -1
- package/dist/{context-Bs5ZSwds.d.ts → context-CQFcPZnt.d.ts} +1 -1
- package/dist/customer-groups.d.cts +1 -1
- package/dist/customer-groups.d.ts +1 -1
- package/dist/customer.d.cts +1 -1
- package/dist/customer.d.ts +1 -1
- package/dist/index.cjs +859 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1902 -9
- package/dist/index.d.ts +1902 -9
- package/dist/index.js +854 -3
- package/dist/index.js.map +1 -1
- package/dist/locations.d.cts +1 -1
- package/dist/locations.d.ts +1 -1
- package/dist/media.d.cts +1 -1
- package/dist/media.d.ts +1 -1
- package/dist/orders.d.cts +1 -1
- package/dist/orders.d.ts +1 -1
- package/dist/payment.d.cts +1 -1
- package/dist/payment.d.ts +1 -1
- package/dist/price.d.cts +1 -1
- package/dist/price.d.ts +1 -1
- package/dist/product.d.cts +1 -1
- package/dist/product.d.ts +1 -1
- package/dist/segment.d.cts +1 -1
- package/dist/segment.d.ts +1 -1
- package/package.json +1 -1
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
|
package/dist/availability.d.cts
CHANGED
package/dist/availability.d.ts
CHANGED
package/dist/cart.d.cts
CHANGED
package/dist/cart.d.ts
CHANGED
package/dist/category.d.cts
CHANGED
package/dist/category.d.ts
CHANGED
package/dist/checkout.d.cts
CHANGED
package/dist/checkout.d.ts
CHANGED
package/dist/companies.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as ClientContext, b as AuthContext } from './context-
|
|
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
|
|
package/dist/companies.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as ClientContext, b as AuthContext } from './context-
|
|
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
|
|
package/dist/contacts.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as ClientContext, b as AuthContext } from './context-
|
|
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
|
|
package/dist/contacts.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as ClientContext, b as AuthContext } from './context-
|
|
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;
|
package/dist/customer.d.cts
CHANGED
package/dist/customer.d.ts
CHANGED