@viu/emporix-sdk 4.6.4 → 4.6.6

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/dist/index.d.cts CHANGED
@@ -5119,6 +5119,7 @@ type BaseCoupon = {
5119
5119
  discountCalculationType?: 'TOTAL' | 'SUBTOTAL';
5120
5120
  categoryRestricted?: CategoryRestricted;
5121
5121
  segmentRestricted?: SegmentRestricted;
5122
+ vendorRestricted?: VendorRestricted;
5122
5123
  restrictions?: Restrictions$1;
5123
5124
  /**
5124
5125
  * The Id of the customer who originally received the coupon (seller-only).
@@ -5209,6 +5210,7 @@ type CouponCreation = {
5209
5210
  discountCalculationType?: 'TOTAL' | 'SUBTOTAL';
5210
5211
  categoryRestricted?: CategoryRestricted;
5211
5212
  segmentRestricted?: SegmentRestricted;
5213
+ vendorRestricted?: VendorRestricted;
5212
5214
  restrictions?: Restrictions$1;
5213
5215
  /**
5214
5216
  * The Id of the customer who originally received the coupon (seller-only).
@@ -5247,6 +5249,12 @@ type SegmentRestricted = boolean;
5247
5249
  *
5248
5250
  */
5249
5251
  type CategoryRestricted = boolean;
5252
+ /**
5253
+ * Defines if the coupon applies only to products from specific vendors. If the value is `true`, `restrictions.vendors` must be provided.
5254
+ * A vendor restriction can be combined with other restriction types.
5255
+ *
5256
+ */
5257
+ type VendorRestricted = boolean;
5250
5258
  /**
5251
5259
  * Money amount
5252
5260
  *
@@ -5314,7 +5322,7 @@ type Restrictions$1 = {
5314
5322
  * Must be provided in ISO 8601 format (http://www.iso.org/iso/home/standards/iso8601.htm), e.g. '2015-01-31T23:59:59.999Z'.
5315
5323
  */
5316
5324
  validUntil?: string;
5317
- minOrderValue?: CurrencyAmount;
5325
+ minOrderValue?: CurrencyAmount & unknown;
5318
5326
  /**
5319
5327
  * The list of product's categories to which this coupon applies to. Must be defined only if the `categoryRestricted` flag is set to true. Must be disjoint with excludedCategories list.
5320
5328
  */
@@ -5327,6 +5335,10 @@ type Restrictions$1 = {
5327
5335
  * The list of segments to which this coupon applies to. Can be defined only if the `segmentRestricted` flag is set to true.
5328
5336
  */
5329
5337
  segments?: Array<string>;
5338
+ /**
5339
+ * The list of vendor identifiers to which this coupon applies. Must be provided when `vendorRestricted` is `true`, and must be empty when `vendorRestricted` is `false`.
5340
+ */
5341
+ vendors?: Array<string>;
5330
5342
  };
5331
5343
  type ResourceLocation$1 = {
5332
5344
  /**
@@ -9485,13 +9497,16 @@ type FilterNode = {
9485
9497
  * * `BETWEEN` requires an array of two values. The range is inclusive.
9486
9498
  * * `IN` and `NOT_IN` require a non-empty array.
9487
9499
  * * `EXISTS` requires a boolean. `true` matches documents where the field is present. `false` matches documents where the field is absent.
9500
+ * * `CONTAINS` requires a non-blank string. The field must have `text: true` in the index.
9488
9501
  */
9489
9502
  value?: unknown;
9490
9503
  };
9491
9504
  /**
9492
9505
  * Comparison applied to `field` and `value`.
9506
+ *
9507
+ * `CONTAINS` performs a case- and diacritic-insensitive substring match. The service wraps the value in `*` and escapes `\`, `*`, and `?` within it. Spaces remain part of the value.
9493
9508
  */
9494
- type FilterOperator = 'EQ' | 'NEQ' | 'GT' | 'GTE' | 'LT' | 'LTE' | 'BETWEEN' | 'IN' | 'NOT_IN' | 'EXISTS';
9509
+ type FilterOperator = 'EQ' | 'NEQ' | 'GT' | 'GTE' | 'LT' | 'LTE' | 'BETWEEN' | 'IN' | 'NOT_IN' | 'EXISTS' | 'CONTAINS';
9495
9510
  /**
9496
9511
  * A matching document. Stored fields are returned with their API names. The identifier is `id`.
9497
9512
  *
@@ -9599,13 +9614,13 @@ declare class SearchService {
9599
9614
  * Search the documents of one custom schema type. Paging, `sort` and
9600
9615
  * `fields` travel as query parameters, not in the body.
9601
9616
  *
9602
- * Filter and sort fields must be indexed on the index the search uses, or the
9603
- * call answers `400`. A saved-search call (`{ searchQueryId, query }`) answers
9617
+ * Filter and sort fields must be indexed on the index the search uses —
9618
+ * `exact`, or `text: true` for a `CONTAINS` filter — or the call answers `400`. A saved-search call (`{ searchQueryId, query }`) answers
9604
9619
  * `404` when no saved search has that id for `type`, and `502` means the
9605
9620
  * Schema Service could not confirm that `type` is a custom entity.
9606
9621
  *
9607
9622
  * @example
9608
- * const hits = await client.search.search("vehicle", {
9623
+ * const hits = await client.search.search("VEHICLE", {
9609
9624
  * index: "vehicles",
9610
9625
  * queries: [{ type: "TEXT", query: "diesel", field: "name.en" }],
9611
9626
  * filters: { field: "status", operator: "EQ", value: "ACTIVE" },
package/dist/index.d.ts CHANGED
@@ -5119,6 +5119,7 @@ type BaseCoupon = {
5119
5119
  discountCalculationType?: 'TOTAL' | 'SUBTOTAL';
5120
5120
  categoryRestricted?: CategoryRestricted;
5121
5121
  segmentRestricted?: SegmentRestricted;
5122
+ vendorRestricted?: VendorRestricted;
5122
5123
  restrictions?: Restrictions$1;
5123
5124
  /**
5124
5125
  * The Id of the customer who originally received the coupon (seller-only).
@@ -5209,6 +5210,7 @@ type CouponCreation = {
5209
5210
  discountCalculationType?: 'TOTAL' | 'SUBTOTAL';
5210
5211
  categoryRestricted?: CategoryRestricted;
5211
5212
  segmentRestricted?: SegmentRestricted;
5213
+ vendorRestricted?: VendorRestricted;
5212
5214
  restrictions?: Restrictions$1;
5213
5215
  /**
5214
5216
  * The Id of the customer who originally received the coupon (seller-only).
@@ -5247,6 +5249,12 @@ type SegmentRestricted = boolean;
5247
5249
  *
5248
5250
  */
5249
5251
  type CategoryRestricted = boolean;
5252
+ /**
5253
+ * Defines if the coupon applies only to products from specific vendors. If the value is `true`, `restrictions.vendors` must be provided.
5254
+ * A vendor restriction can be combined with other restriction types.
5255
+ *
5256
+ */
5257
+ type VendorRestricted = boolean;
5250
5258
  /**
5251
5259
  * Money amount
5252
5260
  *
@@ -5314,7 +5322,7 @@ type Restrictions$1 = {
5314
5322
  * Must be provided in ISO 8601 format (http://www.iso.org/iso/home/standards/iso8601.htm), e.g. '2015-01-31T23:59:59.999Z'.
5315
5323
  */
5316
5324
  validUntil?: string;
5317
- minOrderValue?: CurrencyAmount;
5325
+ minOrderValue?: CurrencyAmount & unknown;
5318
5326
  /**
5319
5327
  * The list of product's categories to which this coupon applies to. Must be defined only if the `categoryRestricted` flag is set to true. Must be disjoint with excludedCategories list.
5320
5328
  */
@@ -5327,6 +5335,10 @@ type Restrictions$1 = {
5327
5335
  * The list of segments to which this coupon applies to. Can be defined only if the `segmentRestricted` flag is set to true.
5328
5336
  */
5329
5337
  segments?: Array<string>;
5338
+ /**
5339
+ * The list of vendor identifiers to which this coupon applies. Must be provided when `vendorRestricted` is `true`, and must be empty when `vendorRestricted` is `false`.
5340
+ */
5341
+ vendors?: Array<string>;
5330
5342
  };
5331
5343
  type ResourceLocation$1 = {
5332
5344
  /**
@@ -9485,13 +9497,16 @@ type FilterNode = {
9485
9497
  * * `BETWEEN` requires an array of two values. The range is inclusive.
9486
9498
  * * `IN` and `NOT_IN` require a non-empty array.
9487
9499
  * * `EXISTS` requires a boolean. `true` matches documents where the field is present. `false` matches documents where the field is absent.
9500
+ * * `CONTAINS` requires a non-blank string. The field must have `text: true` in the index.
9488
9501
  */
9489
9502
  value?: unknown;
9490
9503
  };
9491
9504
  /**
9492
9505
  * Comparison applied to `field` and `value`.
9506
+ *
9507
+ * `CONTAINS` performs a case- and diacritic-insensitive substring match. The service wraps the value in `*` and escapes `\`, `*`, and `?` within it. Spaces remain part of the value.
9493
9508
  */
9494
- type FilterOperator = 'EQ' | 'NEQ' | 'GT' | 'GTE' | 'LT' | 'LTE' | 'BETWEEN' | 'IN' | 'NOT_IN' | 'EXISTS';
9509
+ type FilterOperator = 'EQ' | 'NEQ' | 'GT' | 'GTE' | 'LT' | 'LTE' | 'BETWEEN' | 'IN' | 'NOT_IN' | 'EXISTS' | 'CONTAINS';
9495
9510
  /**
9496
9511
  * A matching document. Stored fields are returned with their API names. The identifier is `id`.
9497
9512
  *
@@ -9599,13 +9614,13 @@ declare class SearchService {
9599
9614
  * Search the documents of one custom schema type. Paging, `sort` and
9600
9615
  * `fields` travel as query parameters, not in the body.
9601
9616
  *
9602
- * Filter and sort fields must be indexed on the index the search uses, or the
9603
- * call answers `400`. A saved-search call (`{ searchQueryId, query }`) answers
9617
+ * Filter and sort fields must be indexed on the index the search uses —
9618
+ * `exact`, or `text: true` for a `CONTAINS` filter — or the call answers `400`. A saved-search call (`{ searchQueryId, query }`) answers
9604
9619
  * `404` when no saved search has that id for `type`, and `502` means the
9605
9620
  * Schema Service could not confirm that `type` is a custom entity.
9606
9621
  *
9607
9622
  * @example
9608
- * const hits = await client.search.search("vehicle", {
9623
+ * const hits = await client.search.search("VEHICLE", {
9609
9624
  * index: "vehicles",
9610
9625
  * queries: [{ type: "TEXT", query: "diesel", field: "name.en" }],
9611
9626
  * filters: { field: "status", operator: "EQ", value: "ACTIVE" },
package/dist/index.js CHANGED
@@ -948,7 +948,7 @@ var HttpClient = class {
948
948
  };
949
949
 
950
950
  // package.json
951
- var version = "4.6.4";
951
+ var version = "4.6.6";
952
952
 
953
953
  // src/version.ts
954
954
  var SDK_VERSION = version;
@@ -4353,13 +4353,13 @@ var SearchService = class {
4353
4353
  * Search the documents of one custom schema type. Paging, `sort` and
4354
4354
  * `fields` travel as query parameters, not in the body.
4355
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
4356
+ * Filter and sort fields must be indexed on the index the search uses —
4357
+ * `exact`, or `text: true` for a `CONTAINS` filter — or the call answers `400`. A saved-search call (`{ searchQueryId, query }`) answers
4358
4358
  * `404` when no saved search has that id for `type`, and `502` means the
4359
4359
  * Schema Service could not confirm that `type` is a custom entity.
4360
4360
  *
4361
4361
  * @example
4362
- * const hits = await client.search.search("vehicle", {
4362
+ * const hits = await client.search.search("VEHICLE", {
4363
4363
  * index: "vehicles",
4364
4364
  * queries: [{ type: "TEXT", query: "diesel", field: "name.en" }],
4365
4365
  * filters: { field: "status", operator: "EQ", value: "ACTIVE" },