@epilot/sdk 2.20.51 → 2.20.52
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/definitions/pricing.json +206 -8
- package/dist/apis/access-token.cjs +6 -6
- package/dist/apis/access-token.js +1 -1
- package/dist/apis/address-suggestions.cjs +6 -6
- package/dist/apis/address-suggestions.js +1 -1
- package/dist/apis/address.cjs +6 -6
- package/dist/apis/address.js +1 -1
- package/dist/apis/ai-agents.cjs +6 -6
- package/dist/apis/ai-agents.js +1 -1
- package/dist/apis/app.cjs +6 -6
- package/dist/apis/app.js +1 -1
- package/dist/apis/audit-logs.cjs +6 -6
- package/dist/apis/audit-logs.js +1 -1
- package/dist/apis/automation.cjs +6 -6
- package/dist/apis/automation.js +1 -1
- package/dist/apis/billing.cjs +6 -6
- package/dist/apis/billing.js +1 -1
- package/dist/apis/blueprint-manifest.cjs +6 -6
- package/dist/apis/blueprint-manifest.js +1 -1
- package/dist/apis/calendar.cjs +6 -6
- package/dist/apis/calendar.js +1 -1
- package/dist/apis/chat.cjs +6 -6
- package/dist/apis/chat.js +1 -1
- package/dist/apis/configuration-hub.cjs +6 -6
- package/dist/apis/configuration-hub.js +1 -1
- package/dist/apis/consent.cjs +6 -6
- package/dist/apis/consent.js +1 -1
- package/dist/apis/customer-portal.cjs +6 -6
- package/dist/apis/customer-portal.js +1 -1
- package/dist/apis/dashboard.cjs +6 -6
- package/dist/apis/dashboard.js +1 -1
- package/dist/apis/data-governance.cjs +6 -6
- package/dist/apis/data-governance.js +1 -1
- package/dist/apis/deduplication.cjs +6 -6
- package/dist/apis/deduplication.js +1 -1
- package/dist/apis/design.cjs +6 -6
- package/dist/apis/design.js +1 -1
- package/dist/apis/document.cjs +6 -6
- package/dist/apis/document.js +1 -1
- package/dist/apis/email-settings.cjs +6 -6
- package/dist/apis/email-settings.js +1 -1
- package/dist/apis/email-template.cjs +6 -6
- package/dist/apis/email-template.js +1 -1
- package/dist/apis/entity-mapping.cjs +6 -6
- package/dist/apis/entity-mapping.js +1 -1
- package/dist/apis/entity.cjs +6 -6
- package/dist/apis/entity.js +1 -1
- package/dist/apis/environments.cjs +6 -6
- package/dist/apis/environments.js +1 -1
- package/dist/apis/event-catalog.cjs +6 -6
- package/dist/apis/event-catalog.js +1 -1
- package/dist/apis/external-values.cjs +6 -6
- package/dist/apis/external-values.js +1 -1
- package/dist/apis/file.cjs +6 -6
- package/dist/apis/file.js +1 -1
- package/dist/apis/iban.cjs +6 -6
- package/dist/apis/iban.js +1 -1
- package/dist/apis/identity.cjs +6 -6
- package/dist/apis/identity.js +1 -1
- package/dist/apis/integration-toolkit.cjs +6 -6
- package/dist/apis/integration-toolkit.js +1 -1
- package/dist/apis/journey.cjs +6 -6
- package/dist/apis/journey.js +1 -1
- package/dist/apis/kanban.cjs +6 -6
- package/dist/apis/kanban.js +1 -1
- package/dist/apis/message.cjs +6 -6
- package/dist/apis/message.js +1 -1
- package/dist/apis/metering.cjs +6 -6
- package/dist/apis/metering.js +1 -1
- package/dist/apis/notes.cjs +6 -6
- package/dist/apis/notes.js +1 -1
- package/dist/apis/notification.cjs +6 -6
- package/dist/apis/notification.js +1 -1
- package/dist/apis/organization.cjs +6 -6
- package/dist/apis/organization.js +1 -1
- package/dist/apis/partner-directory.cjs +6 -6
- package/dist/apis/partner-directory.js +1 -1
- package/dist/apis/permissions.cjs +6 -6
- package/dist/apis/permissions.js +1 -1
- package/dist/apis/pricing-tier.cjs +6 -6
- package/dist/apis/pricing-tier.js +1 -1
- package/dist/apis/pricing.cjs +6 -6
- package/dist/apis/pricing.d.cts +2 -2
- package/dist/apis/pricing.d.ts +2 -2
- package/dist/apis/pricing.js +1 -1
- package/dist/apis/purpose.cjs +6 -6
- package/dist/apis/purpose.js +1 -1
- package/dist/apis/query.cjs +6 -6
- package/dist/apis/query.js +1 -1
- package/dist/apis/sandbox.cjs +6 -6
- package/dist/apis/sandbox.js +1 -1
- package/dist/apis/sharing.cjs +6 -6
- package/dist/apis/sharing.js +1 -1
- package/dist/apis/snapshot.cjs +6 -6
- package/dist/apis/snapshot.js +1 -1
- package/dist/apis/submission.cjs +6 -6
- package/dist/apis/submission.js +1 -1
- package/dist/apis/target.cjs +6 -6
- package/dist/apis/target.js +1 -1
- package/dist/apis/targeting.cjs +6 -6
- package/dist/apis/targeting.js +1 -1
- package/dist/apis/template-variables.cjs +6 -6
- package/dist/apis/template-variables.js +1 -1
- package/dist/apis/user.cjs +6 -6
- package/dist/apis/user.js +1 -1
- package/dist/apis/validation-rules.cjs +6 -6
- package/dist/apis/validation-rules.js +1 -1
- package/dist/apis/webhooks.cjs +6 -6
- package/dist/apis/webhooks.js +1 -1
- package/dist/apis/workflow-definition.cjs +6 -6
- package/dist/apis/workflow-definition.js +1 -1
- package/dist/apis/workflow.cjs +6 -6
- package/dist/apis/workflow.js +1 -1
- package/dist/{chunk-3FRPGY3C.js → chunk-OI4LZOVC.js} +1 -1
- package/dist/{chunk-UVYQFUAO.cjs → chunk-YJ7BKTTM.cjs} +1 -1
- package/dist/index.cjs +8 -8
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/pricing-5ZPVKMML.js +7 -0
- package/dist/pricing-VZXOELOD.cjs +7 -0
- package/dist/{pricing.d-BMV5QoZ7.d.cts → pricing.d-V26VSdNU.d.cts} +267 -60
- package/dist/{pricing.d-BMV5QoZ7.d.ts → pricing.d-V26VSdNU.d.ts} +267 -60
- package/docs/pricing.md +395 -25
- package/package.json +1 -1
- package/dist/pricing-FYBJTHHN.js +0 -7
- package/dist/pricing-M2FG4LZ6.cjs +0 -7
package/docs/pricing.md
CHANGED
|
@@ -104,6 +104,12 @@ const { data } = await pricingClient.$calculatePricingDetails(...)
|
|
|
104
104
|
- [`CreateVariantRequest`](#createvariantrequest)
|
|
105
105
|
- [`VariantConditions`](#variantconditions)
|
|
106
106
|
- [`PinnedConditions`](#pinnedconditions)
|
|
107
|
+
- [`PinnedConditionValue`](#pinnedconditionvalue)
|
|
108
|
+
- [`ConditionDateRange`](#conditiondaterange)
|
|
109
|
+
- [`PostalCodeCity`](#postalcodecity)
|
|
110
|
+
- [`ContextConditionValue`](#contextconditionvalue)
|
|
111
|
+
- [`ConditionPredicate`](#conditionpredicate)
|
|
112
|
+
- [`OrderedConditionOperand`](#orderedconditionoperand)
|
|
107
113
|
- [`VariantValues`](#variantvalues)
|
|
108
114
|
- [`CreatedVariant`](#createdvariant)
|
|
109
115
|
- [`WriteWarning`](#writewarning)
|
|
@@ -3001,7 +3007,24 @@ variant, which is how to ask for it without knowing its id.
|
|
|
3001
3007
|
type ResolveConditionalEntityRequest = {
|
|
3002
3008
|
schema: "product" | "price" | "coupon"
|
|
3003
3009
|
entity_id: string
|
|
3004
|
-
context: Record<string,
|
|
3010
|
+
context: Record<string, string | number | boolean | {
|
|
3011
|
+
postal_code: string
|
|
3012
|
+
city: string
|
|
3013
|
+
} | {
|
|
3014
|
+
lt: number | string
|
|
3015
|
+
} | {
|
|
3016
|
+
lte: number | string
|
|
3017
|
+
} | {
|
|
3018
|
+
gt: number | string
|
|
3019
|
+
} | {
|
|
3020
|
+
gte: number | string
|
|
3021
|
+
} | {
|
|
3022
|
+
in: string | number[]
|
|
3023
|
+
} | {
|
|
3024
|
+
between: string
|
|
3025
|
+
} | {
|
|
3026
|
+
exists: boolean
|
|
3027
|
+
}>
|
|
3005
3028
|
as_of?: string
|
|
3006
3029
|
options?: {
|
|
3007
3030
|
resolve_one?: boolean
|
|
@@ -3028,7 +3051,24 @@ composed with the version in effect at `as_of`.
|
|
|
3028
3051
|
type ResolveByContextRequest = {
|
|
3029
3052
|
schema: "product" | "price" | "coupon"
|
|
3030
3053
|
entity_id: string
|
|
3031
|
-
context: Record<string,
|
|
3054
|
+
context: Record<string, string | number | boolean | {
|
|
3055
|
+
postal_code: string
|
|
3056
|
+
city: string
|
|
3057
|
+
} | {
|
|
3058
|
+
lt: number | string
|
|
3059
|
+
} | {
|
|
3060
|
+
lte: number | string
|
|
3061
|
+
} | {
|
|
3062
|
+
gt: number | string
|
|
3063
|
+
} | {
|
|
3064
|
+
gte: number | string
|
|
3065
|
+
} | {
|
|
3066
|
+
in: string | number[]
|
|
3067
|
+
} | {
|
|
3068
|
+
between: string
|
|
3069
|
+
} | {
|
|
3070
|
+
exists: boolean
|
|
3071
|
+
}>
|
|
3032
3072
|
as_of?: string
|
|
3033
3073
|
options?: {
|
|
3034
3074
|
resolve_one?: boolean
|
|
@@ -3064,7 +3104,24 @@ Each value is an exact value, typed by its condition, or a single-operator predi
|
|
|
3064
3104
|
- `{ "lt": v }`, `{ "lte"
|
|
3065
3105
|
|
|
3066
3106
|
```ts
|
|
3067
|
-
type ResolveContext = Record<string,
|
|
3107
|
+
type ResolveContext = Record<string, string | number | boolean | {
|
|
3108
|
+
postal_code: string
|
|
3109
|
+
city: string
|
|
3110
|
+
} | {
|
|
3111
|
+
lt: number | string
|
|
3112
|
+
} | {
|
|
3113
|
+
lte: number | string
|
|
3114
|
+
} | {
|
|
3115
|
+
gt: number | string
|
|
3116
|
+
} | {
|
|
3117
|
+
gte: number | string
|
|
3118
|
+
} | {
|
|
3119
|
+
in: string | number[]
|
|
3120
|
+
} | {
|
|
3121
|
+
between: string
|
|
3122
|
+
} | {
|
|
3123
|
+
exists: boolean
|
|
3124
|
+
}>
|
|
3068
3125
|
```
|
|
3069
3126
|
|
|
3070
3127
|
### `ResolveOptions`
|
|
@@ -3134,7 +3191,13 @@ type ResolvedVariant = {
|
|
|
3134
3191
|
|
|
3135
3192
|
```ts
|
|
3136
3193
|
type CreateVariantRequest = {
|
|
3137
|
-
conditions?: Record<string,
|
|
3194
|
+
conditions?: Record<string, string | number | boolean | {
|
|
3195
|
+
from?: string
|
|
3196
|
+
until?: string
|
|
3197
|
+
} | {
|
|
3198
|
+
postal_code: string
|
|
3199
|
+
city: string
|
|
3200
|
+
}>
|
|
3138
3201
|
default?: boolean
|
|
3139
3202
|
valid_from?: string
|
|
3140
3203
|
values: Record<string, unknown>
|
|
@@ -3163,7 +3226,113 @@ Exact values only; predicates belong to reads. Values are stored canonicalized f
|
|
|
3163
3226
|
type: a `dat
|
|
3164
3227
|
|
|
3165
3228
|
```ts
|
|
3166
|
-
type PinnedConditions = Record<string,
|
|
3229
|
+
type PinnedConditions = Record<string, string | number | boolean | {
|
|
3230
|
+
from?: string
|
|
3231
|
+
until?: string
|
|
3232
|
+
} | {
|
|
3233
|
+
postal_code: string
|
|
3234
|
+
city: string
|
|
3235
|
+
}>
|
|
3236
|
+
```
|
|
3237
|
+
|
|
3238
|
+
### `PinnedConditionValue`
|
|
3239
|
+
|
|
3240
|
+
One condition's exact value. Which of these shapes a condition takes is set by its type in the
|
|
3241
|
+
entity's schema, and a value of another shape is refused with `PIN_FORMAT_INVALID`.
|
|
3242
|
+
|
|
3243
|
+
|
|
3244
|
+
```ts
|
|
3245
|
+
type PinnedConditionValue = string | number | boolean | {
|
|
3246
|
+
from?: string
|
|
3247
|
+
until?: string
|
|
3248
|
+
} | {
|
|
3249
|
+
postal_code: string
|
|
3250
|
+
city: string
|
|
3251
|
+
}
|
|
3252
|
+
```
|
|
3253
|
+
|
|
3254
|
+
### `ConditionDateRange`
|
|
3255
|
+
|
|
3256
|
+
The value of a `daterange` condition. A bound that is absent, `null` or an empty string is an
|
|
3257
|
+
open end; stored, an open end is an empty string.
|
|
3258
|
+
|
|
3259
|
+
|
|
3260
|
+
```ts
|
|
3261
|
+
type ConditionDateRange = {
|
|
3262
|
+
from?: string
|
|
3263
|
+
until?: string
|
|
3264
|
+
}
|
|
3265
|
+
```
|
|
3266
|
+
|
|
3267
|
+
### `PostalCodeCity`
|
|
3268
|
+
|
|
3269
|
+
The value of a `location` condition of format `postal_code_city`, its parts named as an entity
|
|
3270
|
+
address names them.
|
|
3271
|
+
|
|
3272
|
+
|
|
3273
|
+
```ts
|
|
3274
|
+
type PostalCodeCity = {
|
|
3275
|
+
postal_code: string
|
|
3276
|
+
city: string
|
|
3277
|
+
}
|
|
3278
|
+
```
|
|
3279
|
+
|
|
3280
|
+
### `ContextConditionValue`
|
|
3281
|
+
|
|
3282
|
+
One condition's value in a resolve context or listing filter: an exact value, or a predicate.
|
|
3283
|
+
Which of these a condition takes is set by its type in the entity's schema, and a value of
|
|
3284
|
+
another shape is refused with `CONTEXT_FORMAT_INVALID`, or `OPERATOR_UNSUPPORTED` for a
|
|
3285
|
+
predicate its type does not
|
|
3286
|
+
|
|
3287
|
+
```ts
|
|
3288
|
+
type ContextConditionValue = string | number | boolean | {
|
|
3289
|
+
postal_code: string
|
|
3290
|
+
city: string
|
|
3291
|
+
} | {
|
|
3292
|
+
lt: number | string
|
|
3293
|
+
} | {
|
|
3294
|
+
lte: number | string
|
|
3295
|
+
} | {
|
|
3296
|
+
gt: number | string
|
|
3297
|
+
} | {
|
|
3298
|
+
gte: number | string
|
|
3299
|
+
} | {
|
|
3300
|
+
in: string | number[]
|
|
3301
|
+
} | {
|
|
3302
|
+
between: string
|
|
3303
|
+
} | {
|
|
3304
|
+
exists: boolean
|
|
3305
|
+
}
|
|
3306
|
+
```
|
|
3307
|
+
|
|
3308
|
+
### `ConditionPredicate`
|
|
3309
|
+
|
|
3310
|
+
A single-operator predicate.
|
|
3311
|
+
|
|
3312
|
+
```ts
|
|
3313
|
+
type ConditionPredicate = {
|
|
3314
|
+
lt: number | string
|
|
3315
|
+
} | {
|
|
3316
|
+
lte: number | string
|
|
3317
|
+
} | {
|
|
3318
|
+
gt: number | string
|
|
3319
|
+
} | {
|
|
3320
|
+
gte: number | string
|
|
3321
|
+
} | {
|
|
3322
|
+
in: string | number[]
|
|
3323
|
+
} | {
|
|
3324
|
+
between: string
|
|
3325
|
+
} | {
|
|
3326
|
+
exists: boolean
|
|
3327
|
+
}
|
|
3328
|
+
```
|
|
3329
|
+
|
|
3330
|
+
### `OrderedConditionOperand`
|
|
3331
|
+
|
|
3332
|
+
A number, or a date as an RFC 3339 date or date-time.
|
|
3333
|
+
|
|
3334
|
+
```ts
|
|
3335
|
+
type OrderedConditionOperand = number | string
|
|
3167
3336
|
```
|
|
3168
3337
|
|
|
3169
3338
|
### `VariantValues`
|
|
@@ -3453,7 +3622,13 @@ type DeletedVariantVersion = {
|
|
|
3453
3622
|
type AppendVersionRequest = {
|
|
3454
3623
|
valid_from?: string
|
|
3455
3624
|
values: Record<string, unknown>
|
|
3456
|
-
conditions?: Record<string,
|
|
3625
|
+
conditions?: Record<string, string | number | boolean | {
|
|
3626
|
+
from?: string
|
|
3627
|
+
until?: string
|
|
3628
|
+
} | {
|
|
3629
|
+
postal_code: string
|
|
3630
|
+
city: string
|
|
3631
|
+
}>
|
|
3457
3632
|
}
|
|
3458
3633
|
```
|
|
3459
3634
|
|
|
@@ -3464,7 +3639,13 @@ type ReplaceVersionRequest = {
|
|
|
3464
3639
|
values: Record<string, unknown>
|
|
3465
3640
|
_revision: number
|
|
3466
3641
|
valid_from?: string
|
|
3467
|
-
conditions?: Record<string,
|
|
3642
|
+
conditions?: Record<string, string | number | boolean | {
|
|
3643
|
+
from?: string
|
|
3644
|
+
until?: string
|
|
3645
|
+
} | {
|
|
3646
|
+
postal_code: string
|
|
3647
|
+
city: string
|
|
3648
|
+
}>
|
|
3468
3649
|
}
|
|
3469
3650
|
```
|
|
3470
3651
|
|
|
@@ -3475,7 +3656,13 @@ type PatchVersionRequest = {
|
|
|
3475
3656
|
values: Record<string, unknown>
|
|
3476
3657
|
_revision: number
|
|
3477
3658
|
valid_from?: string
|
|
3478
|
-
conditions?: Record<string,
|
|
3659
|
+
conditions?: Record<string, string | number | boolean | {
|
|
3660
|
+
from?: string
|
|
3661
|
+
until?: string
|
|
3662
|
+
} | {
|
|
3663
|
+
postal_code: string
|
|
3664
|
+
city: string
|
|
3665
|
+
}>
|
|
3479
3666
|
}
|
|
3480
3667
|
```
|
|
3481
3668
|
|
|
@@ -3488,7 +3675,24 @@ first ten variants in `variant_id` order, but the body itself is required. `cond
|
|
|
3488
3675
|
|
|
3489
3676
|
```ts
|
|
3490
3677
|
type ListVariantsRequest = {
|
|
3491
|
-
conditions?: Record<string,
|
|
3678
|
+
conditions?: Record<string, string | number | boolean | {
|
|
3679
|
+
postal_code: string
|
|
3680
|
+
city: string
|
|
3681
|
+
} | {
|
|
3682
|
+
lt: number | string
|
|
3683
|
+
} | {
|
|
3684
|
+
lte: number | string
|
|
3685
|
+
} | {
|
|
3686
|
+
gt: number | string
|
|
3687
|
+
} | {
|
|
3688
|
+
gte: number | string
|
|
3689
|
+
} | {
|
|
3690
|
+
in: string | number[]
|
|
3691
|
+
} | {
|
|
3692
|
+
between: string
|
|
3693
|
+
} | {
|
|
3694
|
+
exists: boolean
|
|
3695
|
+
}>
|
|
3492
3696
|
search?: string
|
|
3493
3697
|
sort?: string
|
|
3494
3698
|
from?: number
|
|
@@ -3505,7 +3709,24 @@ The variants list's request plus `as_of`, the instant each row's version is sele
|
|
|
3505
3709
|
|
|
3506
3710
|
```ts
|
|
3507
3711
|
type VariantTreeRequest = {
|
|
3508
|
-
conditions?: Record<string,
|
|
3712
|
+
conditions?: Record<string, string | number | boolean | {
|
|
3713
|
+
postal_code: string
|
|
3714
|
+
city: string
|
|
3715
|
+
} | {
|
|
3716
|
+
lt: number | string
|
|
3717
|
+
} | {
|
|
3718
|
+
lte: number | string
|
|
3719
|
+
} | {
|
|
3720
|
+
gt: number | string
|
|
3721
|
+
} | {
|
|
3722
|
+
gte: number | string
|
|
3723
|
+
} | {
|
|
3724
|
+
in: string | number[]
|
|
3725
|
+
} | {
|
|
3726
|
+
between: string
|
|
3727
|
+
} | {
|
|
3728
|
+
exists: boolean
|
|
3729
|
+
}>
|
|
3509
3730
|
search?: string
|
|
3510
3731
|
sort?: string
|
|
3511
3732
|
from?: number
|
|
@@ -3524,7 +3745,24 @@ filtered on. An `in` list carries at most 50,000 values.
|
|
|
3524
3745
|
A variant matches only where it pins the condition — unlike `:re
|
|
3525
3746
|
|
|
3526
3747
|
```ts
|
|
3527
|
-
type VariantConditionFilter = Record<string,
|
|
3748
|
+
type VariantConditionFilter = Record<string, string | number | boolean | {
|
|
3749
|
+
postal_code: string
|
|
3750
|
+
city: string
|
|
3751
|
+
} | {
|
|
3752
|
+
lt: number | string
|
|
3753
|
+
} | {
|
|
3754
|
+
lte: number | string
|
|
3755
|
+
} | {
|
|
3756
|
+
gt: number | string
|
|
3757
|
+
} | {
|
|
3758
|
+
gte: number | string
|
|
3759
|
+
} | {
|
|
3760
|
+
in: string | number[]
|
|
3761
|
+
} | {
|
|
3762
|
+
between: string
|
|
3763
|
+
} | {
|
|
3764
|
+
exists: boolean
|
|
3765
|
+
}>
|
|
3528
3766
|
```
|
|
3529
3767
|
|
|
3530
3768
|
### `VariantList`
|
|
@@ -3677,7 +3915,13 @@ type BatchUpsertVariantsRequest = {
|
|
|
3677
3915
|
correlation_id?: string
|
|
3678
3916
|
items: Array<{
|
|
3679
3917
|
entity_id: string
|
|
3680
|
-
conditions?: Record<string,
|
|
3918
|
+
conditions?: Record<string, string | number | boolean | {
|
|
3919
|
+
from?: { ... }
|
|
3920
|
+
until?: { ... }
|
|
3921
|
+
} | {
|
|
3922
|
+
postal_code: { ... }
|
|
3923
|
+
city: { ... }
|
|
3924
|
+
}>
|
|
3681
3925
|
default?: boolean
|
|
3682
3926
|
valid_from?: string
|
|
3683
3927
|
values: Record<string, unknown>
|
|
@@ -3694,7 +3938,13 @@ existing condition tuple appends a version to the variant holding it rather than
|
|
|
3694
3938
|
```ts
|
|
3695
3939
|
type BatchUpsertItem = {
|
|
3696
3940
|
entity_id: string
|
|
3697
|
-
conditions?: Record<string,
|
|
3941
|
+
conditions?: Record<string, string | number | boolean | {
|
|
3942
|
+
from?: string
|
|
3943
|
+
until?: string
|
|
3944
|
+
} | {
|
|
3945
|
+
postal_code: string
|
|
3946
|
+
city: string
|
|
3947
|
+
}>
|
|
3698
3948
|
default?: boolean
|
|
3699
3949
|
valid_from?: string
|
|
3700
3950
|
values: Record<string, unknown>
|
|
@@ -3714,7 +3964,13 @@ type BatchDeleteVariantsRequest = {
|
|
|
3714
3964
|
valid_from?: string
|
|
3715
3965
|
} | {
|
|
3716
3966
|
entity_id: string
|
|
3717
|
-
conditions?: Record<string,
|
|
3967
|
+
conditions?: Record<string, string | number | boolean | {
|
|
3968
|
+
from?: { ... }
|
|
3969
|
+
until?: { ... }
|
|
3970
|
+
} | {
|
|
3971
|
+
postal_code: { ... }
|
|
3972
|
+
city: { ... }
|
|
3973
|
+
}>
|
|
3718
3974
|
default?: boolean
|
|
3719
3975
|
valid_from?: string
|
|
3720
3976
|
}>
|
|
@@ -3735,7 +3991,13 @@ type BatchDeleteItem = {
|
|
|
3735
3991
|
valid_from?: string
|
|
3736
3992
|
} | {
|
|
3737
3993
|
entity_id: string
|
|
3738
|
-
conditions?: Record<string,
|
|
3994
|
+
conditions?: Record<string, string | number | boolean | {
|
|
3995
|
+
from?: string
|
|
3996
|
+
until?: string
|
|
3997
|
+
} | {
|
|
3998
|
+
postal_code: string
|
|
3999
|
+
city: string
|
|
4000
|
+
}>
|
|
3739
4001
|
default?: boolean
|
|
3740
4002
|
valid_from?: string
|
|
3741
4003
|
}
|
|
@@ -3764,7 +4026,13 @@ per-item `VARIANT_UNPINNED`, and one marking `default` besi
|
|
|
3764
4026
|
```ts
|
|
3765
4027
|
type BatchDeleteByConditions = {
|
|
3766
4028
|
entity_id: string
|
|
3767
|
-
conditions?: Record<string,
|
|
4029
|
+
conditions?: Record<string, string | number | boolean | {
|
|
4030
|
+
from?: string
|
|
4031
|
+
until?: string
|
|
4032
|
+
} | {
|
|
4033
|
+
postal_code: string
|
|
4034
|
+
city: string
|
|
4035
|
+
}>
|
|
3768
4036
|
default?: boolean
|
|
3769
4037
|
valid_from?: string
|
|
3770
4038
|
}
|
|
@@ -4982,9 +5250,60 @@ type ResolveCatalogRequest = {
|
|
|
4982
5250
|
price_id?: string
|
|
4983
5251
|
}>
|
|
4984
5252
|
context: {
|
|
4985
|
-
product?: Record<string,
|
|
4986
|
-
|
|
4987
|
-
|
|
5253
|
+
product?: Record<string, string | number | boolean | {
|
|
5254
|
+
postal_code: { ... }
|
|
5255
|
+
city: { ... }
|
|
5256
|
+
} | {
|
|
5257
|
+
lt: { ... }
|
|
5258
|
+
} | {
|
|
5259
|
+
lte: { ... }
|
|
5260
|
+
} | {
|
|
5261
|
+
gt: { ... }
|
|
5262
|
+
} | {
|
|
5263
|
+
gte: { ... }
|
|
5264
|
+
} | {
|
|
5265
|
+
in: { ... }
|
|
5266
|
+
} | {
|
|
5267
|
+
between: { ... }
|
|
5268
|
+
} | {
|
|
5269
|
+
exists: { ... }
|
|
5270
|
+
}>
|
|
5271
|
+
price?: Record<string, string | number | boolean | {
|
|
5272
|
+
postal_code: { ... }
|
|
5273
|
+
city: { ... }
|
|
5274
|
+
} | {
|
|
5275
|
+
lt: { ... }
|
|
5276
|
+
} | {
|
|
5277
|
+
lte: { ... }
|
|
5278
|
+
} | {
|
|
5279
|
+
gt: { ... }
|
|
5280
|
+
} | {
|
|
5281
|
+
gte: { ... }
|
|
5282
|
+
} | {
|
|
5283
|
+
in: { ... }
|
|
5284
|
+
} | {
|
|
5285
|
+
between: { ... }
|
|
5286
|
+
} | {
|
|
5287
|
+
exists: { ... }
|
|
5288
|
+
}>
|
|
5289
|
+
coupon?: Record<string, string | number | boolean | {
|
|
5290
|
+
postal_code: { ... }
|
|
5291
|
+
city: { ... }
|
|
5292
|
+
} | {
|
|
5293
|
+
lt: { ... }
|
|
5294
|
+
} | {
|
|
5295
|
+
lte: { ... }
|
|
5296
|
+
} | {
|
|
5297
|
+
gt: { ... }
|
|
5298
|
+
} | {
|
|
5299
|
+
gte: { ... }
|
|
5300
|
+
} | {
|
|
5301
|
+
in: { ... }
|
|
5302
|
+
} | {
|
|
5303
|
+
between: { ... }
|
|
5304
|
+
} | {
|
|
5305
|
+
exists: { ... }
|
|
5306
|
+
}>
|
|
4988
5307
|
}
|
|
4989
5308
|
as_of?: string
|
|
4990
5309
|
}
|
|
@@ -4993,15 +5312,66 @@ type ResolveCatalogRequest = {
|
|
|
4993
5312
|
### `CatalogContext`
|
|
4994
5313
|
|
|
4995
5314
|
One context per entity type, each the authenticated resolve's context and checked against
|
|
4996
|
-
that type's schema alone. A product resolves against `product`, a price and each of a
|
|
4997
|
-
composite's components against `price
|
|
4998
|
-
|
|
5315
|
+
that type's schema alone. A product resolves against `product`, and a price and each of a
|
|
5316
|
+
composite's components against `price`. A type left out resolves against an empty context,
|
|
5317
|
+
which serves the `default` va
|
|
4999
5318
|
|
|
5000
5319
|
```ts
|
|
5001
5320
|
type CatalogContext = {
|
|
5002
|
-
product?: Record<string,
|
|
5003
|
-
|
|
5004
|
-
|
|
5321
|
+
product?: Record<string, string | number | boolean | {
|
|
5322
|
+
postal_code: string
|
|
5323
|
+
city: string
|
|
5324
|
+
} | {
|
|
5325
|
+
lt: number | string
|
|
5326
|
+
} | {
|
|
5327
|
+
lte: number | string
|
|
5328
|
+
} | {
|
|
5329
|
+
gt: number | string
|
|
5330
|
+
} | {
|
|
5331
|
+
gte: number | string
|
|
5332
|
+
} | {
|
|
5333
|
+
in: string | number[]
|
|
5334
|
+
} | {
|
|
5335
|
+
between: string
|
|
5336
|
+
} | {
|
|
5337
|
+
exists: boolean
|
|
5338
|
+
}>
|
|
5339
|
+
price?: Record<string, string | number | boolean | {
|
|
5340
|
+
postal_code: string
|
|
5341
|
+
city: string
|
|
5342
|
+
} | {
|
|
5343
|
+
lt: number | string
|
|
5344
|
+
} | {
|
|
5345
|
+
lte: number | string
|
|
5346
|
+
} | {
|
|
5347
|
+
gt: number | string
|
|
5348
|
+
} | {
|
|
5349
|
+
gte: number | string
|
|
5350
|
+
} | {
|
|
5351
|
+
in: string | number[]
|
|
5352
|
+
} | {
|
|
5353
|
+
between: string
|
|
5354
|
+
} | {
|
|
5355
|
+
exists: boolean
|
|
5356
|
+
}>
|
|
5357
|
+
coupon?: Record<string, string | number | boolean | {
|
|
5358
|
+
postal_code: string
|
|
5359
|
+
city: string
|
|
5360
|
+
} | {
|
|
5361
|
+
lt: number | string
|
|
5362
|
+
} | {
|
|
5363
|
+
lte: number | string
|
|
5364
|
+
} | {
|
|
5365
|
+
gt: number | string
|
|
5366
|
+
} | {
|
|
5367
|
+
gte: number | string
|
|
5368
|
+
} | {
|
|
5369
|
+
in: string | number[]
|
|
5370
|
+
} | {
|
|
5371
|
+
between: string
|
|
5372
|
+
} | {
|
|
5373
|
+
exists: boolean
|
|
5374
|
+
}>
|
|
5005
5375
|
}
|
|
5006
5376
|
```
|
|
5007
5377
|
|