@viu/emporix-sdk 4.1.0 → 4.2.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 +29 -0
- package/README.md +1 -0
- package/dist/cart.cjs +85 -0
- package/dist/cart.cjs.map +1 -1
- package/dist/cart.d.cts +352 -1
- package/dist/cart.d.ts +352 -1
- package/dist/cart.js +1 -1
- package/dist/{chunk-YVZ6GOLE.js → chunk-S2ERKGYL.js} +48 -3
- package/dist/chunk-S2ERKGYL.js.map +1 -0
- package/dist/index.cjs +46 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +78 -7
- package/dist/index.d.ts +78 -7
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-YVZ6GOLE.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -8,7 +8,7 @@ export { Media, Product, ProductBulkCreateInput, ProductBulkResult, ProductBulkU
|
|
|
8
8
|
import { CategoryService } from './category.cjs';
|
|
9
9
|
export { Category, CategoryAssignment, CategoryAssignmentBulkInput, CategoryAssignmentBulkResult, CategoryAssignmentCreated, CategoryAssignmentInput, CategoryAssignmentRefBulkInput, CategoryCreateInput, CategoryCreated, CategoryNode, CategoryPatchInput, CategoryTreeSearchInput, CategoryUpdateInput } from './category.cjs';
|
|
10
10
|
import { CartService } from './cart.cjs';
|
|
11
|
-
export { Cart, CartAddress, CartCreated, CartDeliveryRestrictions, CartDiscount, CartItem, CartItemInput, CartItemUpdate, CartItemsBatchUpdateInput, CartItemsBatchUpdateResult, CartSearchInput, CartSummary, CartUpdateInput, CartValidationResult, CreateCartInput } from './cart.cjs';
|
|
11
|
+
export { Cart, CartAddress, CartCommand, CartCommandBodies, CartCommandResult, CartCreated, CartDeliveryRestrictions, CartDiscount, CartDiscountInput, CartExecuteOptions, CartExecuteResult, CartItem, CartItemInput, CartItemUpdate, CartItemsBatchUpdateInput, CartItemsBatchUpdateResult, CartSearchInput, CartSummary, CartUpdateInput, CartValidationResult, CreateCartInput } from './cart.cjs';
|
|
12
12
|
import { CheckoutService } from './checkout.cjs';
|
|
13
13
|
export { CheckoutInput, CheckoutOptions, CheckoutResult, QuoteCheckoutInput } from './checkout.cjs';
|
|
14
14
|
import { PaymentGatewayService } from './payment.cjs';
|
|
@@ -483,13 +483,13 @@ type SiteDto = {
|
|
|
483
483
|
*/
|
|
484
484
|
includesTax?: boolean;
|
|
485
485
|
/**
|
|
486
|
-
* Site's default language, compliant with the
|
|
486
|
+
* Site's default language, compliant with the IETF BCP-47 standard. Regional variants such as `fr-ca` are supported.
|
|
487
487
|
*/
|
|
488
488
|
defaultLanguage: string;
|
|
489
489
|
/**
|
|
490
490
|
* Languages supported by the site.
|
|
491
491
|
*
|
|
492
|
-
* **Note**: The languages must be compliant with the
|
|
492
|
+
* **Note**: The languages must be compliant with the IETF BCP-47 standard. Regional variants such as `fr-ca` are supported.
|
|
493
493
|
*/
|
|
494
494
|
languages: Array<string>;
|
|
495
495
|
currency: CurrencyDto;
|
|
@@ -3881,7 +3881,12 @@ type AgentRequest = BaseForAgentRequestAndResponse & {
|
|
|
3881
3881
|
nativeTools?: Array<NativeToolReferenceRequest>;
|
|
3882
3882
|
llmConfig: EmporixLlm | ApiKeyLlmRequest | SelfHostedLlmRequest;
|
|
3883
3883
|
mcpServers: AgentMcpServersRequest;
|
|
3884
|
-
metadata?: MetadataRequest
|
|
3884
|
+
metadata?: MetadataRequest & {
|
|
3885
|
+
/**
|
|
3886
|
+
* Optional note stored on this version. A blank value clears the live note. The next successful update archives the note with this version.
|
|
3887
|
+
*/
|
|
3888
|
+
changeNote?: string;
|
|
3889
|
+
};
|
|
3885
3890
|
};
|
|
3886
3891
|
type AgentResponse = BaseForAgentRequestAndResponse & {
|
|
3887
3892
|
/**
|
|
@@ -3900,7 +3905,58 @@ type AgentResponse = BaseForAgentRequestAndResponse & {
|
|
|
3900
3905
|
* Prompt which is inherited from the template (if agent is created based on the template). The prompt provided by the user is then concatenated with this prompt.
|
|
3901
3906
|
*/
|
|
3902
3907
|
templatePrompt?: string;
|
|
3903
|
-
metadata?:
|
|
3908
|
+
metadata?: AgentMetadataResponse;
|
|
3909
|
+
/**
|
|
3910
|
+
* Stored history of previous agent configurations. Present only when the request sets `allVersions=true`. Omitted otherwise.
|
|
3911
|
+
*/
|
|
3912
|
+
versions?: Array<AgentVersion>;
|
|
3913
|
+
};
|
|
3914
|
+
type AgentVersion = BaseForAgentRequestAndResponse & {
|
|
3915
|
+
/**
|
|
3916
|
+
* Prompt inherited from the template at the time of this version.
|
|
3917
|
+
*/
|
|
3918
|
+
templatePrompt?: string;
|
|
3919
|
+
nativeTools?: NativeToolsResponse;
|
|
3920
|
+
llmConfig?: EmporixLlm | ApiKeyLlmResponse | SelfHostedLlmResponse;
|
|
3921
|
+
mcpServers?: AgentMcpServersResponse;
|
|
3922
|
+
metadata: AgentVersionMetadata;
|
|
3923
|
+
};
|
|
3924
|
+
type AgentVersionMetadata = {
|
|
3925
|
+
/**
|
|
3926
|
+
* Version number of this archived snapshot.
|
|
3927
|
+
*/
|
|
3928
|
+
version: number;
|
|
3929
|
+
/**
|
|
3930
|
+
* Date and time when this version was stored. The value is an ISO-8601 instant. For example: `2022-04-30T13:18:02.379Z`
|
|
3931
|
+
*/
|
|
3932
|
+
modifiedAt?: string;
|
|
3933
|
+
modifiedBy?: ModifiedBy;
|
|
3934
|
+
/**
|
|
3935
|
+
* Note stored with this snapshot.
|
|
3936
|
+
*/
|
|
3937
|
+
changeNote?: string;
|
|
3938
|
+
};
|
|
3939
|
+
/**
|
|
3940
|
+
* Who last changed the agent.
|
|
3941
|
+
*/
|
|
3942
|
+
type ModifiedBy = {
|
|
3943
|
+
/**
|
|
3944
|
+
* Identity recorded for the change. `EXTERNAL` is assigned when the request authenticates with an API token. `SYSTEM` is used for automatic updates.
|
|
3945
|
+
*
|
|
3946
|
+
*/
|
|
3947
|
+
type: 'CUSTOMER' | 'EMPLOYEE' | 'EXTERNAL' | 'SYSTEM';
|
|
3948
|
+
/**
|
|
3949
|
+
* Identifier of the customer or employee. Omitted for `EXTERNAL` and `SYSTEM`. `id` is the `Hybris-User-Id` header value when `CUSTOMER` or `EMPLOYEE`.
|
|
3950
|
+
*/
|
|
3951
|
+
id?: string;
|
|
3952
|
+
/**
|
|
3953
|
+
* First name of the customer or employee.
|
|
3954
|
+
*/
|
|
3955
|
+
firstName?: string;
|
|
3956
|
+
/**
|
|
3957
|
+
* Last name of the customer or employee.
|
|
3958
|
+
*/
|
|
3959
|
+
lastName?: string;
|
|
3904
3960
|
};
|
|
3905
3961
|
type MetadataRequest = {
|
|
3906
3962
|
/**
|
|
@@ -3910,14 +3966,21 @@ type MetadataRequest = {
|
|
|
3910
3966
|
};
|
|
3911
3967
|
type MetadataResponse$1 = MetadataRequest & {
|
|
3912
3968
|
/**
|
|
3913
|
-
* Date and time when the object was created. The value is approved as an ISO-8601 representation of an Instant. For example: `2022-04-
|
|
3969
|
+
* Date and time when the object was created. The value is approved as an ISO-8601 representation of an Instant. For example: `2022-04-30T13:18:02.379Z`
|
|
3914
3970
|
*/
|
|
3915
3971
|
createdAt: string;
|
|
3916
3972
|
/**
|
|
3917
|
-
* Date and time when the object was last modified. The value is approved as an ISO-8601 representation of an Instant. For example: `2022-04-
|
|
3973
|
+
* Date and time when the object was last modified. The value is approved as an ISO-8601 representation of an Instant. For example: `2022-04-30T13:18:02.379Z`
|
|
3918
3974
|
*/
|
|
3919
3975
|
modifiedAt: string;
|
|
3920
3976
|
};
|
|
3977
|
+
type AgentMetadataResponse = MetadataResponse$1 & {
|
|
3978
|
+
modifiedBy?: ModifiedBy;
|
|
3979
|
+
/**
|
|
3980
|
+
* Note stored for this live version.
|
|
3981
|
+
*/
|
|
3982
|
+
changeNote?: string;
|
|
3983
|
+
};
|
|
3921
3984
|
/**
|
|
3922
3985
|
* Status of the job.
|
|
3923
3986
|
*/
|
|
@@ -4045,6 +4108,10 @@ type AgentLogMessageResponse = {
|
|
|
4045
4108
|
* Unique identifier of the agent that generated the log.
|
|
4046
4109
|
*/
|
|
4047
4110
|
agentId?: string;
|
|
4111
|
+
/**
|
|
4112
|
+
* Version of the agent that wrote this log message.
|
|
4113
|
+
*/
|
|
4114
|
+
agentVersion?: number;
|
|
4048
4115
|
/**
|
|
4049
4116
|
* Unique identifier of the request associated with the log.
|
|
4050
4117
|
*/
|
|
@@ -4092,6 +4159,10 @@ type AgentRequestResponse = {
|
|
|
4092
4159
|
* Cumulative LLM completion token count for this request.
|
|
4093
4160
|
*/
|
|
4094
4161
|
completionTokens?: number;
|
|
4162
|
+
/**
|
|
4163
|
+
* Version of the agent which triggered the request.
|
|
4164
|
+
*/
|
|
4165
|
+
agentVersion?: number;
|
|
4095
4166
|
metadata?: MetadataResponse$1;
|
|
4096
4167
|
};
|
|
4097
4168
|
type AgentSessionResponse = {
|
package/dist/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export { Media, Product, ProductBulkCreateInput, ProductBulkResult, ProductBulkU
|
|
|
8
8
|
import { CategoryService } from './category.js';
|
|
9
9
|
export { Category, CategoryAssignment, CategoryAssignmentBulkInput, CategoryAssignmentBulkResult, CategoryAssignmentCreated, CategoryAssignmentInput, CategoryAssignmentRefBulkInput, CategoryCreateInput, CategoryCreated, CategoryNode, CategoryPatchInput, CategoryTreeSearchInput, CategoryUpdateInput } from './category.js';
|
|
10
10
|
import { CartService } from './cart.js';
|
|
11
|
-
export { Cart, CartAddress, CartCreated, CartDeliveryRestrictions, CartDiscount, CartItem, CartItemInput, CartItemUpdate, CartItemsBatchUpdateInput, CartItemsBatchUpdateResult, CartSearchInput, CartSummary, CartUpdateInput, CartValidationResult, CreateCartInput } from './cart.js';
|
|
11
|
+
export { Cart, CartAddress, CartCommand, CartCommandBodies, CartCommandResult, CartCreated, CartDeliveryRestrictions, CartDiscount, CartDiscountInput, CartExecuteOptions, CartExecuteResult, CartItem, CartItemInput, CartItemUpdate, CartItemsBatchUpdateInput, CartItemsBatchUpdateResult, CartSearchInput, CartSummary, CartUpdateInput, CartValidationResult, CreateCartInput } from './cart.js';
|
|
12
12
|
import { CheckoutService } from './checkout.js';
|
|
13
13
|
export { CheckoutInput, CheckoutOptions, CheckoutResult, QuoteCheckoutInput } from './checkout.js';
|
|
14
14
|
import { PaymentGatewayService } from './payment.js';
|
|
@@ -483,13 +483,13 @@ type SiteDto = {
|
|
|
483
483
|
*/
|
|
484
484
|
includesTax?: boolean;
|
|
485
485
|
/**
|
|
486
|
-
* Site's default language, compliant with the
|
|
486
|
+
* Site's default language, compliant with the IETF BCP-47 standard. Regional variants such as `fr-ca` are supported.
|
|
487
487
|
*/
|
|
488
488
|
defaultLanguage: string;
|
|
489
489
|
/**
|
|
490
490
|
* Languages supported by the site.
|
|
491
491
|
*
|
|
492
|
-
* **Note**: The languages must be compliant with the
|
|
492
|
+
* **Note**: The languages must be compliant with the IETF BCP-47 standard. Regional variants such as `fr-ca` are supported.
|
|
493
493
|
*/
|
|
494
494
|
languages: Array<string>;
|
|
495
495
|
currency: CurrencyDto;
|
|
@@ -3881,7 +3881,12 @@ type AgentRequest = BaseForAgentRequestAndResponse & {
|
|
|
3881
3881
|
nativeTools?: Array<NativeToolReferenceRequest>;
|
|
3882
3882
|
llmConfig: EmporixLlm | ApiKeyLlmRequest | SelfHostedLlmRequest;
|
|
3883
3883
|
mcpServers: AgentMcpServersRequest;
|
|
3884
|
-
metadata?: MetadataRequest
|
|
3884
|
+
metadata?: MetadataRequest & {
|
|
3885
|
+
/**
|
|
3886
|
+
* Optional note stored on this version. A blank value clears the live note. The next successful update archives the note with this version.
|
|
3887
|
+
*/
|
|
3888
|
+
changeNote?: string;
|
|
3889
|
+
};
|
|
3885
3890
|
};
|
|
3886
3891
|
type AgentResponse = BaseForAgentRequestAndResponse & {
|
|
3887
3892
|
/**
|
|
@@ -3900,7 +3905,58 @@ type AgentResponse = BaseForAgentRequestAndResponse & {
|
|
|
3900
3905
|
* Prompt which is inherited from the template (if agent is created based on the template). The prompt provided by the user is then concatenated with this prompt.
|
|
3901
3906
|
*/
|
|
3902
3907
|
templatePrompt?: string;
|
|
3903
|
-
metadata?:
|
|
3908
|
+
metadata?: AgentMetadataResponse;
|
|
3909
|
+
/**
|
|
3910
|
+
* Stored history of previous agent configurations. Present only when the request sets `allVersions=true`. Omitted otherwise.
|
|
3911
|
+
*/
|
|
3912
|
+
versions?: Array<AgentVersion>;
|
|
3913
|
+
};
|
|
3914
|
+
type AgentVersion = BaseForAgentRequestAndResponse & {
|
|
3915
|
+
/**
|
|
3916
|
+
* Prompt inherited from the template at the time of this version.
|
|
3917
|
+
*/
|
|
3918
|
+
templatePrompt?: string;
|
|
3919
|
+
nativeTools?: NativeToolsResponse;
|
|
3920
|
+
llmConfig?: EmporixLlm | ApiKeyLlmResponse | SelfHostedLlmResponse;
|
|
3921
|
+
mcpServers?: AgentMcpServersResponse;
|
|
3922
|
+
metadata: AgentVersionMetadata;
|
|
3923
|
+
};
|
|
3924
|
+
type AgentVersionMetadata = {
|
|
3925
|
+
/**
|
|
3926
|
+
* Version number of this archived snapshot.
|
|
3927
|
+
*/
|
|
3928
|
+
version: number;
|
|
3929
|
+
/**
|
|
3930
|
+
* Date and time when this version was stored. The value is an ISO-8601 instant. For example: `2022-04-30T13:18:02.379Z`
|
|
3931
|
+
*/
|
|
3932
|
+
modifiedAt?: string;
|
|
3933
|
+
modifiedBy?: ModifiedBy;
|
|
3934
|
+
/**
|
|
3935
|
+
* Note stored with this snapshot.
|
|
3936
|
+
*/
|
|
3937
|
+
changeNote?: string;
|
|
3938
|
+
};
|
|
3939
|
+
/**
|
|
3940
|
+
* Who last changed the agent.
|
|
3941
|
+
*/
|
|
3942
|
+
type ModifiedBy = {
|
|
3943
|
+
/**
|
|
3944
|
+
* Identity recorded for the change. `EXTERNAL` is assigned when the request authenticates with an API token. `SYSTEM` is used for automatic updates.
|
|
3945
|
+
*
|
|
3946
|
+
*/
|
|
3947
|
+
type: 'CUSTOMER' | 'EMPLOYEE' | 'EXTERNAL' | 'SYSTEM';
|
|
3948
|
+
/**
|
|
3949
|
+
* Identifier of the customer or employee. Omitted for `EXTERNAL` and `SYSTEM`. `id` is the `Hybris-User-Id` header value when `CUSTOMER` or `EMPLOYEE`.
|
|
3950
|
+
*/
|
|
3951
|
+
id?: string;
|
|
3952
|
+
/**
|
|
3953
|
+
* First name of the customer or employee.
|
|
3954
|
+
*/
|
|
3955
|
+
firstName?: string;
|
|
3956
|
+
/**
|
|
3957
|
+
* Last name of the customer or employee.
|
|
3958
|
+
*/
|
|
3959
|
+
lastName?: string;
|
|
3904
3960
|
};
|
|
3905
3961
|
type MetadataRequest = {
|
|
3906
3962
|
/**
|
|
@@ -3910,14 +3966,21 @@ type MetadataRequest = {
|
|
|
3910
3966
|
};
|
|
3911
3967
|
type MetadataResponse$1 = MetadataRequest & {
|
|
3912
3968
|
/**
|
|
3913
|
-
* Date and time when the object was created. The value is approved as an ISO-8601 representation of an Instant. For example: `2022-04-
|
|
3969
|
+
* Date and time when the object was created. The value is approved as an ISO-8601 representation of an Instant. For example: `2022-04-30T13:18:02.379Z`
|
|
3914
3970
|
*/
|
|
3915
3971
|
createdAt: string;
|
|
3916
3972
|
/**
|
|
3917
|
-
* Date and time when the object was last modified. The value is approved as an ISO-8601 representation of an Instant. For example: `2022-04-
|
|
3973
|
+
* Date and time when the object was last modified. The value is approved as an ISO-8601 representation of an Instant. For example: `2022-04-30T13:18:02.379Z`
|
|
3918
3974
|
*/
|
|
3919
3975
|
modifiedAt: string;
|
|
3920
3976
|
};
|
|
3977
|
+
type AgentMetadataResponse = MetadataResponse$1 & {
|
|
3978
|
+
modifiedBy?: ModifiedBy;
|
|
3979
|
+
/**
|
|
3980
|
+
* Note stored for this live version.
|
|
3981
|
+
*/
|
|
3982
|
+
changeNote?: string;
|
|
3983
|
+
};
|
|
3921
3984
|
/**
|
|
3922
3985
|
* Status of the job.
|
|
3923
3986
|
*/
|
|
@@ -4045,6 +4108,10 @@ type AgentLogMessageResponse = {
|
|
|
4045
4108
|
* Unique identifier of the agent that generated the log.
|
|
4046
4109
|
*/
|
|
4047
4110
|
agentId?: string;
|
|
4111
|
+
/**
|
|
4112
|
+
* Version of the agent that wrote this log message.
|
|
4113
|
+
*/
|
|
4114
|
+
agentVersion?: number;
|
|
4048
4115
|
/**
|
|
4049
4116
|
* Unique identifier of the request associated with the log.
|
|
4050
4117
|
*/
|
|
@@ -4092,6 +4159,10 @@ type AgentRequestResponse = {
|
|
|
4092
4159
|
* Cumulative LLM completion token count for this request.
|
|
4093
4160
|
*/
|
|
4094
4161
|
completionTokens?: number;
|
|
4162
|
+
/**
|
|
4163
|
+
* Version of the agent which triggered the request.
|
|
4164
|
+
*/
|
|
4165
|
+
agentVersion?: number;
|
|
4095
4166
|
metadata?: MetadataResponse$1;
|
|
4096
4167
|
};
|
|
4097
4168
|
type AgentSessionResponse = {
|
package/dist/index.js
CHANGED
|
@@ -14,8 +14,8 @@ import { SegmentService } from './chunk-N2CE3J4M.js';
|
|
|
14
14
|
export { SegmentService } from './chunk-N2CE3J4M.js';
|
|
15
15
|
import { AvailabilityService } from './chunk-XQAOHHXL.js';
|
|
16
16
|
export { AvailabilityService } from './chunk-XQAOHHXL.js';
|
|
17
|
-
import { CartService } from './chunk-
|
|
18
|
-
export { CartService } from './chunk-
|
|
17
|
+
import { CartService } from './chunk-S2ERKGYL.js';
|
|
18
|
+
export { CartService } from './chunk-S2ERKGYL.js';
|
|
19
19
|
import { CategoryService } from './chunk-MSQ3GEIW.js';
|
|
20
20
|
export { CategoryService } from './chunk-MSQ3GEIW.js';
|
|
21
21
|
export { iterateAll } from './chunk-W6SLZNRX.js';
|
|
@@ -946,7 +946,7 @@ var HttpClient = class {
|
|
|
946
946
|
};
|
|
947
947
|
|
|
948
948
|
// package.json
|
|
949
|
-
var version = "4.
|
|
949
|
+
var version = "4.2.0";
|
|
950
950
|
|
|
951
951
|
// src/version.ts
|
|
952
952
|
var SDK_VERSION = version;
|