@elasticpath/js-sdk 10.1.0 → 11.0.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 +1 -1
- package/dist/index.d.ts +32 -6
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
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: {
|
|
8266
|
-
|
|
8267
|
-
|
|
8268
|
-
|
|
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 {
|
|
@@ -8347,7 +8374,6 @@ interface CustomApisEndpoint {
|
|
|
8347
8374
|
): Promise<ResponseBody>
|
|
8348
8375
|
|
|
8349
8376
|
DeleteEntry<T = any>(customApiId: string, customApiEntryId: string): Promise<T>
|
|
8350
|
-
|
|
8351
8377
|
}
|
|
8352
8378
|
|
|
8353
8379
|
/**
|
package/dist/index.esm.js
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED