@elasticpath/js-sdk 10.1.0 → 10.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/dist/index.cjs.js CHANGED
@@ -530,7 +530,7 @@ if (!globalThis.fetch) {
530
530
  globalThis.Response = fetch$1.Response;
531
531
  }
532
532
 
533
- var version = "10.1.0";
533
+ var version = "10.2.0";
534
534
 
535
535
  var LocalStorageFactory = /*#__PURE__*/function () {
536
536
  function LocalStorageFactory() {
package/dist/index.d.ts CHANGED
@@ -8247,6 +8247,7 @@ interface CustomApiBase {
8247
8247
  api_type: string
8248
8248
  type: string
8249
8249
  slug: string
8250
+ allow_upserts: boolean
8250
8251
  }
8251
8252
 
8252
8253
  interface CustomApi extends Identifiable, CustomApiBase {
@@ -8262,10 +8263,35 @@ interface CustomApi extends Identifiable, CustomApiBase {
8262
8263
  }
8263
8264
 
8264
8265
  type CustomFieldValidation =
8265
- | { string: { min_length?: number, max_length?: number, regex?: string, allow_null_values?: boolean } }
8266
- | { integer: { min_value?: number, max_value?: number, allow_null_values?: boolean } }
8267
- | { float: { min_value?: number, max_value?: number, allow_null_values?: boolean } }
8268
- | { boolean: { allow_null_values?: boolean } }
8266
+ | { string: {
8267
+ min_length?: number | null,
8268
+ max_length?: number | null,
8269
+ regex?: string | null,
8270
+ allow_null_values?: boolean,
8271
+ immutable?: boolean,
8272
+ unique: "yes" | "no",
8273
+ unique_case_insensitivity?: boolean
8274
+ }
8275
+ }
8276
+ | { integer: {
8277
+ min_value?: number | null,
8278
+ max_value?: number | null,
8279
+ allow_null_values?: boolean,
8280
+ immutable?: boolean
8281
+ }
8282
+ }
8283
+ | { float: {
8284
+ min_value?: number | null,
8285
+ max_value?: number | null,
8286
+ allow_null_values?: boolean,
8287
+ immutable?: boolean
8288
+ }
8289
+ }
8290
+ | { boolean: {
8291
+ allow_null_values?: boolean,
8292
+ immutable?: boolean
8293
+ }
8294
+ }
8269
8295
 
8270
8296
  interface CustomApiFieldBase {
8271
8297
  name: string
@@ -8273,7 +8299,8 @@ interface CustomApiFieldBase {
8273
8299
  field_type: string
8274
8300
  type: string
8275
8301
  slug: string
8276
- validation?: CustomFieldValidation
8302
+ validation?: CustomFieldValidation,
8303
+ use_as_url_slug: boolean
8277
8304
  }
8278
8305
 
8279
8306
  interface CustomApiField extends Identifiable, CustomApiFieldBase {
package/dist/index.esm.js CHANGED
@@ -519,7 +519,7 @@ if (!globalThis.fetch) {
519
519
  globalThis.Response = Response;
520
520
  }
521
521
 
522
- var version = "10.1.0";
522
+ var version = "10.2.0";
523
523
 
524
524
  var LocalStorageFactory = /*#__PURE__*/function () {
525
525
  function LocalStorageFactory() {
package/dist/index.js CHANGED
@@ -1085,7 +1085,7 @@
1085
1085
  globalThis.Response = browserPonyfill.exports.Response;
1086
1086
  }
1087
1087
 
1088
- var version = "10.1.0";
1088
+ var version = "10.2.0";
1089
1089
 
1090
1090
  var LocalStorageFactory = /*#__PURE__*/function () {
1091
1091
  function LocalStorageFactory() {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@elasticpath/js-sdk",
3
3
  "description": "SDK for the Elastic Path eCommerce API",
4
- "version": "10.1.0",
4
+ "version": "10.2.0",
5
5
  "homepage": "https://github.com/elasticpath/js-sdk",
6
6
  "author": "Elastic Path (https://elasticpath.com/)",
7
7
  "files": [