@epilot/pricing-client 3.61.1 → 3.62.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/openapi.d.ts CHANGED
@@ -203,7 +203,12 @@ declare namespace Components {
203
203
  * }
204
204
  */
205
205
  conditions?: {
206
- [name: string]: any;
206
+ [name: string]: /**
207
+ * One condition's exact value. Which of these shapes a condition takes is set by its type in the
208
+ * entity's schema, and a value of another shape is refused with `PIN_FORMAT_INVALID`.
209
+ *
210
+ */
211
+ PinnedConditionValue;
207
212
  };
208
213
  }
209
214
  /**
@@ -1029,8 +1034,8 @@ declare namespace Components {
1029
1034
  /**
1030
1035
  * Present for a composite price that serves at least one component: the components this
1031
1036
  * pair is the combination of, each with its variant where one produced it. A conditional
1032
- * component with no variant in effect is left out of the composite and is not named here
1033
- * (ADR 0048). A component line item carries no reference of its own.
1037
+ * component with no variant in effect is left out of the composite and is not named here.
1038
+ * A component line item carries no reference of its own.
1034
1039
  *
1035
1040
  */
1036
1041
  price_components?: /**
@@ -1040,8 +1045,8 @@ declare namespace Components {
1040
1045
  */
1041
1046
  CatalogReferenceMember[];
1042
1047
  /**
1043
- * Present when coupons apply to the price. A coupon's `variant` exists only once coupons
1044
- * can be conditional.
1048
+ * Present when coupons apply to the price. Coupons are served as stored, so a coupon member
1049
+ * carries no `variant`.
1045
1050
  *
1046
1051
  */
1047
1052
  coupons?: /**
@@ -1458,8 +1463,8 @@ declare namespace Components {
1458
1463
  /**
1459
1464
  * Present for a composite price that serves at least one component: the components this
1460
1465
  * pair is the combination of, each with its variant where one produced it. A conditional
1461
- * component with no variant in effect is left out of the composite and is not named here
1462
- * (ADR 0048). A component line item carries no reference of its own.
1466
+ * component with no variant in effect is left out of the composite and is not named here.
1467
+ * A component line item carries no reference of its own.
1463
1468
  *
1464
1469
  */
1465
1470
  price_components?: /**
@@ -1469,8 +1474,8 @@ declare namespace Components {
1469
1474
  */
1470
1475
  CatalogReferenceMember[];
1471
1476
  /**
1472
- * Present when coupons apply to the price. A coupon's `variant` exists only once coupons
1473
- * can be conditional.
1477
+ * Present when coupons apply to the price. Coupons are served as stored, so a coupon member
1478
+ * carries no `variant`.
1474
1479
  *
1475
1480
  */
1476
1481
  coupons?: /**
@@ -1767,8 +1772,8 @@ declare namespace Components {
1767
1772
  /**
1768
1773
  * Present for a composite price that serves at least one component: the components this
1769
1774
  * pair is the combination of, each with its variant where one produced it. A conditional
1770
- * component with no variant in effect is left out of the composite and is not named here
1771
- * (ADR 0048). A component line item carries no reference of its own.
1775
+ * component with no variant in effect is left out of the composite and is not named here.
1776
+ * A component line item carries no reference of its own.
1772
1777
  *
1773
1778
  */
1774
1779
  price_components?: /**
@@ -1778,8 +1783,8 @@ declare namespace Components {
1778
1783
  */
1779
1784
  CatalogReferenceMember[];
1780
1785
  /**
1781
- * Present when coupons apply to the price. A coupon's `variant` exists only once coupons
1782
- * can be conditional.
1786
+ * Present when coupons apply to the price. Coupons are served as stored, so a coupon member
1787
+ * carries no `variant`.
1783
1788
  *
1784
1789
  */
1785
1790
  coupons?: /**
@@ -6906,9 +6911,9 @@ declare namespace Components {
6906
6911
  export type CashbackPeriod = "0" | "12";
6907
6912
  /**
6908
6913
  * One context per entity type, each the authenticated resolve's context and checked against
6909
- * that type's schema alone. A product resolves against `product`, a price and each of a
6910
- * composite's components against `price`, and a coupon against `coupon`. A type left out
6911
- * resolves against an empty context, which serves the `default` variant.
6914
+ * that type's schema alone. A product resolves against `product`, and a price and each of a
6915
+ * composite's components against `price`. A type left out resolves against an empty context,
6916
+ * which serves the `default` variant.
6912
6917
  *
6913
6918
  * example:
6914
6919
  * {
@@ -7379,7 +7384,12 @@ declare namespace Components {
7379
7384
  * }
7380
7385
  */
7381
7386
  _conditions: {
7382
- [name: string]: any;
7387
+ [name: string]: /**
7388
+ * One condition's exact value. Which of these shapes a condition takes is set by its type in the
7389
+ * entity's schema, and a value of another shape is refused with `PIN_FORMAT_INVALID`.
7390
+ *
7391
+ */
7392
+ PinnedConditionValue;
7383
7393
  default: boolean;
7384
7394
  };
7385
7395
  /**
@@ -7618,7 +7628,12 @@ declare namespace Components {
7618
7628
  * }
7619
7629
  */
7620
7630
  _conditions: {
7621
- [name: string]: any;
7631
+ [name: string]: /**
7632
+ * One condition's exact value. Which of these shapes a condition takes is set by its type in the
7633
+ * entity's schema, and a value of another shape is refused with `PIN_FORMAT_INVALID`.
7634
+ *
7635
+ */
7636
+ PinnedConditionValue;
7622
7637
  default: boolean;
7623
7638
  };
7624
7639
  /**
@@ -7804,7 +7819,12 @@ declare namespace Components {
7804
7819
  * }
7805
7820
  */
7806
7821
  _conditions: {
7807
- [name: string]: any;
7822
+ [name: string]: /**
7823
+ * One condition's exact value. Which of these shapes a condition takes is set by its type in the
7824
+ * entity's schema, and a value of another shape is refused with `PIN_FORMAT_INVALID`.
7825
+ *
7826
+ */
7827
+ PinnedConditionValue;
7808
7828
  default: boolean;
7809
7829
  };
7810
7830
  /**
@@ -8134,8 +8154,8 @@ declare namespace Components {
8134
8154
  /**
8135
8155
  * Present for a composite price that serves at least one component: the components this
8136
8156
  * pair is the combination of, each with its variant where one produced it. A conditional
8137
- * component with no variant in effect is left out of the composite and is not named here
8138
- * (ADR 0048). A component line item carries no reference of its own.
8157
+ * component with no variant in effect is left out of the composite and is not named here.
8158
+ * A component line item carries no reference of its own.
8139
8159
  *
8140
8160
  */
8141
8161
  price_components?: /**
@@ -8145,8 +8165,8 @@ declare namespace Components {
8145
8165
  */
8146
8166
  CatalogReferenceMember[];
8147
8167
  /**
8148
- * Present when coupons apply to the price. A coupon's `variant` exists only once coupons
8149
- * can be conditional.
8168
+ * Present when coupons apply to the price. Coupons are served as stored, so a coupon member
8169
+ * carries no `variant`.
8150
8170
  *
8151
8171
  */
8152
8172
  coupons?: /**
@@ -9937,8 +9957,8 @@ declare namespace Components {
9937
9957
  /**
9938
9958
  * Present for a composite price that serves at least one component: the components this
9939
9959
  * pair is the combination of, each with its variant where one produced it. A conditional
9940
- * component with no variant in effect is left out of the composite and is not named here
9941
- * (ADR 0048). A component line item carries no reference of its own.
9960
+ * component with no variant in effect is left out of the composite and is not named here.
9961
+ * A component line item carries no reference of its own.
9942
9962
  *
9943
9963
  */
9944
9964
  price_components?: /**
@@ -9948,8 +9968,8 @@ declare namespace Components {
9948
9968
  */
9949
9969
  CatalogReferenceMember[];
9950
9970
  /**
9951
- * Present when coupons apply to the price. A coupon's `variant` exists only once coupons
9952
- * can be conditional.
9971
+ * Present when coupons apply to the price. Coupons are served as stored, so a coupon member
9972
+ * carries no `variant`.
9953
9973
  *
9954
9974
  */
9955
9975
  coupons?: /**
@@ -10637,8 +10657,8 @@ declare namespace Components {
10637
10657
  /**
10638
10658
  * Present for a composite price that serves at least one component: the components this
10639
10659
  * pair is the combination of, each with its variant where one produced it. A conditional
10640
- * component with no variant in effect is left out of the composite and is not named here
10641
- * (ADR 0048). A component line item carries no reference of its own.
10660
+ * component with no variant in effect is left out of the composite and is not named here.
10661
+ * A component line item carries no reference of its own.
10642
10662
  *
10643
10663
  */
10644
10664
  price_components?: /**
@@ -10648,8 +10668,8 @@ declare namespace Components {
10648
10668
  */
10649
10669
  CatalogReferenceMember[];
10650
10670
  /**
10651
- * Present when coupons apply to the price. A coupon's `variant` exists only once coupons
10652
- * can be conditional.
10671
+ * Present when coupons apply to the price. Coupons are served as stored, so a coupon member
10672
+ * carries no `variant`.
10653
10673
  *
10654
10674
  */
10655
10675
  coupons?: /**
@@ -11086,6 +11106,23 @@ declare namespace Components {
11086
11106
  export interface ComputedPriceComponents {
11087
11107
  [name: string]: /* The computed price */ ComputedBasePrice;
11088
11108
  }
11109
+ /**
11110
+ * The value of a `daterange` condition. A bound that is absent, `null` or an empty string is an
11111
+ * open end; stored, an open end is an empty string.
11112
+ *
11113
+ */
11114
+ export interface ConditionDateRange {
11115
+ /**
11116
+ * example:
11117
+ * 2026-01-01
11118
+ */
11119
+ from?: string | null;
11120
+ /**
11121
+ * example:
11122
+ * 2027-01-01
11123
+ */
11124
+ until?: string | null;
11125
+ }
11089
11126
  /**
11090
11127
  * One condition dimension, in the shape a schema's `conditions` array holds it — copy it in verbatim.
11091
11128
  */
@@ -11153,6 +11190,30 @@ declare namespace Components {
11153
11190
  */
11154
11191
  format?: "postal_code" | "postal_code_city";
11155
11192
  }
11193
+ /**
11194
+ * A single-operator predicate.
11195
+ */
11196
+ export type ConditionPredicate = /* A single-operator predicate. */ {
11197
+ lt: /* A number, or a date as an RFC 3339 date or date-time. */ OrderedConditionOperand;
11198
+ } | {
11199
+ lte: /* A number, or a date as an RFC 3339 date or date-time. */ OrderedConditionOperand;
11200
+ } | {
11201
+ gt: /* A number, or a date as an RFC 3339 date or date-time. */ OrderedConditionOperand;
11202
+ } | {
11203
+ gte: /* A number, or a date as an RFC 3339 date or date-time. */ OrderedConditionOperand;
11204
+ } | {
11205
+ in: [
11206
+ (string | number),
11207
+ ...(string | number)[]
11208
+ ];
11209
+ } | {
11210
+ /**
11211
+ * The instant a `daterange` condition's range must contain.
11212
+ */
11213
+ between: string;
11214
+ } | {
11215
+ exists: boolean;
11216
+ };
11156
11217
  /**
11157
11218
  * A named bundle of condition definitions, built in for one entity type.
11158
11219
  */
@@ -12936,6 +12997,26 @@ declare namespace Components {
12936
12997
  status: "PROVISIONING" | "ACTIVE";
12937
12998
  }
12938
12999
  export type ConsumptionTypeGetAg = "household" | "heating_pump" | "night_storage_heating" | "night_storage_heating_common_meter";
13000
+ /**
13001
+ * One condition's value in a resolve context or listing filter: an exact value, or a predicate.
13002
+ * Which of these a condition takes is set by its type in the entity's schema, and a value of
13003
+ * another shape is refused with `CONTEXT_FORMAT_INVALID`, or `OPERATOR_UNSUPPORTED` for a
13004
+ * predicate its type does not support.
13005
+ *
13006
+ */
13007
+ export type ContextConditionValue = /**
13008
+ * One condition's value in a resolve context or listing filter: an exact value, or a predicate.
13009
+ * Which of these a condition takes is set by its type in the entity's schema, and a value of
13010
+ * another shape is refused with `CONTEXT_FORMAT_INVALID`, or `OPERATOR_UNSUPPORTED` for a
13011
+ * predicate its type does not support.
13012
+ *
13013
+ */
13014
+ string | number | boolean | /**
13015
+ * The value of a `location` condition of format `postal_code_city`, its parts named as an entity
13016
+ * address names them.
13017
+ *
13018
+ */
13019
+ PostalCodeCity | /* A single-operator predicate. */ ConditionPredicate;
12939
13020
  /**
12940
13021
  * The coupon entity
12941
13022
  * example:
@@ -13357,7 +13438,12 @@ declare namespace Components {
13357
13438
  * }
13358
13439
  */
13359
13440
  conditions: {
13360
- [name: string]: any;
13441
+ [name: string]: /**
13442
+ * One condition's exact value. Which of these shapes a condition takes is set by its type in the
13443
+ * entity's schema, and a value of another shape is refused with `PIN_FORMAT_INVALID`.
13444
+ *
13445
+ */
13446
+ PinnedConditionValue;
13361
13447
  default: boolean;
13362
13448
  };
13363
13449
  /**
@@ -16153,6 +16239,10 @@ declare namespace Components {
16153
16239
  *
16154
16240
  */
16155
16241
  export type OrderStatus = "draft" | "quote" | "placed" | "cancelled" | "completed";
16242
+ /**
16243
+ * A number, or a date as an RFC 3339 date or date-time.
16244
+ */
16245
+ export type OrderedConditionOperand = /* A number, or a date as an RFC 3339 date or date-time. */ number | string;
16156
16246
  export interface PatchVersionRequest {
16157
16247
  /**
16158
16248
  * Only the overrides to change; everything not mentioned is left as stored. `null` sets a
@@ -16187,7 +16277,12 @@ declare namespace Components {
16187
16277
  * }
16188
16278
  */
16189
16279
  conditions?: {
16190
- [name: string]: any;
16280
+ [name: string]: /**
16281
+ * One condition's exact value. Which of these shapes a condition takes is set by its type in the
16282
+ * entity's schema, and a value of another shape is refused with `PIN_FORMAT_INVALID`.
16283
+ *
16284
+ */
16285
+ PinnedConditionValue;
16191
16286
  };
16192
16287
  }
16193
16288
  /**
@@ -16206,6 +16301,27 @@ declare namespace Components {
16206
16301
  [name: string]: any;
16207
16302
  };
16208
16303
  }
16304
+ /**
16305
+ * One condition's exact value. Which of these shapes a condition takes is set by its type in the
16306
+ * entity's schema, and a value of another shape is refused with `PIN_FORMAT_INVALID`.
16307
+ *
16308
+ */
16309
+ export type PinnedConditionValue = /**
16310
+ * One condition's exact value. Which of these shapes a condition takes is set by its type in the
16311
+ * entity's schema, and a value of another shape is refused with `PIN_FORMAT_INVALID`.
16312
+ *
16313
+ */
16314
+ string | number | boolean | /**
16315
+ * The value of a `daterange` condition. A bound that is absent, `null` or an empty string is an
16316
+ * open end; stored, an open end is an empty string.
16317
+ *
16318
+ */
16319
+ ConditionDateRange | /**
16320
+ * The value of a `location` condition of format `postal_code_city`, its parts named as an entity
16321
+ * address names them.
16322
+ *
16323
+ */
16324
+ PostalCodeCity;
16209
16325
  /**
16210
16326
  * The situation this variant applies to: a flat map keyed by condition name. A condition left
16211
16327
  * out is a wildcard, which is what makes adding a condition to a schema non-breaking for
@@ -16225,7 +16341,12 @@ declare namespace Components {
16225
16341
  * }
16226
16342
  */
16227
16343
  export interface PinnedConditions {
16228
- [name: string]: any;
16344
+ [name: string]: /**
16345
+ * One condition's exact value. Which of these shapes a condition takes is set by its type in the
16346
+ * entity's schema, and a value of another shape is refused with `PIN_FORMAT_INVALID`.
16347
+ *
16348
+ */
16349
+ PinnedConditionValue;
16229
16350
  }
16230
16351
  /**
16231
16352
  * The options a pinned resolve accepts — `hydrate` and nothing else. `resolve_one` has nothing
@@ -16307,6 +16428,23 @@ declare namespace Components {
16307
16428
  journey_target_block?: string;
16308
16429
  }[];
16309
16430
  }
16431
+ /**
16432
+ * The value of a `location` condition of format `postal_code_city`, its parts named as an entity
16433
+ * address names them.
16434
+ *
16435
+ */
16436
+ export interface PostalCodeCity {
16437
+ /**
16438
+ * example:
16439
+ * 50667
16440
+ */
16441
+ postal_code: string;
16442
+ /**
16443
+ * example:
16444
+ * Köln
16445
+ */
16446
+ city: string;
16447
+ }
16310
16448
  /**
16311
16449
  * Market area details for power
16312
16450
  */
@@ -17170,8 +17308,8 @@ declare namespace Components {
17170
17308
  /**
17171
17309
  * Present for a composite price that serves at least one component: the components this
17172
17310
  * pair is the combination of, each with its variant where one produced it. A conditional
17173
- * component with no variant in effect is left out of the composite and is not named here
17174
- * (ADR 0048). A component line item carries no reference of its own.
17311
+ * component with no variant in effect is left out of the composite and is not named here.
17312
+ * A component line item carries no reference of its own.
17175
17313
  *
17176
17314
  */
17177
17315
  price_components?: /**
@@ -17181,8 +17319,8 @@ declare namespace Components {
17181
17319
  */
17182
17320
  CatalogReferenceMember[];
17183
17321
  /**
17184
- * Present when coupons apply to the price. A coupon's `variant` exists only once coupons
17185
- * can be conditional.
17322
+ * Present when coupons apply to the price. Coupons are served as stored, so a coupon member
17323
+ * carries no `variant`.
17186
17324
  *
17187
17325
  */
17188
17326
  coupons?: /**
@@ -17657,8 +17795,8 @@ declare namespace Components {
17657
17795
  /**
17658
17796
  * Present for a composite price that serves at least one component: the components this
17659
17797
  * pair is the combination of, each with its variant where one produced it. A conditional
17660
- * component with no variant in effect is left out of the composite and is not named here
17661
- * (ADR 0048). A component line item carries no reference of its own.
17798
+ * component with no variant in effect is left out of the composite and is not named here.
17799
+ * A component line item carries no reference of its own.
17662
17800
  *
17663
17801
  */
17664
17802
  price_components?: /**
@@ -17668,8 +17806,8 @@ declare namespace Components {
17668
17806
  */
17669
17807
  CatalogReferenceMember[];
17670
17808
  /**
17671
- * Present when coupons apply to the price. A coupon's `variant` exists only once coupons
17672
- * can be conditional.
17809
+ * Present when coupons apply to the price. Coupons are served as stored, so a coupon member
17810
+ * carries no `variant`.
17673
17811
  *
17674
17812
  */
17675
17813
  coupons?: /**
@@ -19496,7 +19634,12 @@ declare namespace Components {
19496
19634
  * }
19497
19635
  */
19498
19636
  conditions?: {
19499
- [name: string]: any;
19637
+ [name: string]: /**
19638
+ * One condition's exact value. Which of these shapes a condition takes is set by its type in the
19639
+ * entity's schema, and a value of another shape is refused with `PIN_FORMAT_INVALID`.
19640
+ *
19641
+ */
19642
+ PinnedConditionValue;
19500
19643
  };
19501
19644
  }
19502
19645
  /**
@@ -20323,9 +20466,9 @@ declare namespace Components {
20323
20466
  ];
20324
20467
  context: /**
20325
20468
  * One context per entity type, each the authenticated resolve's context and checked against
20326
- * that type's schema alone. A product resolves against `product`, a price and each of a
20327
- * composite's components against `price`, and a coupon against `coupon`. A type left out
20328
- * resolves against an empty context, which serves the `default` variant.
20469
+ * that type's schema alone. A product resolves against `product`, and a price and each of a
20470
+ * composite's components against `price`. A type left out resolves against an empty context,
20471
+ * which serves the `default` variant.
20329
20472
  *
20330
20473
  * example:
20331
20474
  * {
@@ -20422,7 +20565,14 @@ declare namespace Components {
20422
20565
  * }
20423
20566
  */
20424
20567
  export interface ResolveContext {
20425
- [name: string]: any;
20568
+ [name: string]: /**
20569
+ * One condition's value in a resolve context or listing filter: an exact value, or a predicate.
20570
+ * Which of these a condition takes is set by its type in the entity's schema, and a value of
20571
+ * another shape is refused with `CONTEXT_FORMAT_INVALID`, or `OPERATOR_UNSUPPORTED` for a
20572
+ * predicate its type does not support.
20573
+ *
20574
+ */
20575
+ ContextConditionValue;
20426
20576
  }
20427
20577
  /**
20428
20578
  * The options a context resolve accepts. A pin takes `PinnedResolveOptions` instead.
@@ -20449,8 +20599,7 @@ declare namespace Components {
20449
20599
  * The components of a composite price as the v2 catalog serves them: hydrated in place, and
20450
20600
  * a component that is itself conditional resolved against the same context, carrying the
20451
20601
  * discriminators a resolved payload carries. A conditional component with no variant in
20452
- * effect — nothing matches and there is no default — is left out, as a deleted component is
20453
- * (ADR 0048).
20602
+ * effect — nothing matches and there is no default — is left out, as a deleted component is.
20454
20603
  *
20455
20604
  */
20456
20605
  export interface ResolvedPriceComponents {
@@ -20657,7 +20806,12 @@ declare namespace Components {
20657
20806
  * }
20658
20807
  */
20659
20808
  _conditions: {
20660
- [name: string]: any;
20809
+ [name: string]: /**
20810
+ * One condition's exact value. Which of these shapes a condition takes is set by its type in the
20811
+ * entity's schema, and a value of another shape is refused with `PIN_FORMAT_INVALID`.
20812
+ *
20813
+ */
20814
+ PinnedConditionValue;
20661
20815
  default: boolean;
20662
20816
  };
20663
20817
  /**
@@ -20737,7 +20891,12 @@ declare namespace Components {
20737
20891
  * }
20738
20892
  */
20739
20893
  _conditions: {
20740
- [name: string]: any;
20894
+ [name: string]: /**
20895
+ * One condition's exact value. Which of these shapes a condition takes is set by its type in the
20896
+ * entity's schema, and a value of another shape is refused with `PIN_FORMAT_INVALID`.
20897
+ *
20898
+ */
20899
+ PinnedConditionValue;
20741
20900
  default: boolean;
20742
20901
  };
20743
20902
  /**
@@ -21172,7 +21331,14 @@ declare namespace Components {
21172
21331
  * }
21173
21332
  */
21174
21333
  export interface VariantConditionFilter {
21175
- [name: string]: any;
21334
+ [name: string]: /**
21335
+ * One condition's value in a resolve context or listing filter: an exact value, or a predicate.
21336
+ * Which of these a condition takes is set by its type in the entity's schema, and a value of
21337
+ * another shape is refused with `CONTEXT_FORMAT_INVALID`, or `OPERATOR_UNSUPPORTED` for a
21338
+ * predicate its type does not support.
21339
+ *
21340
+ */
21341
+ ContextConditionValue;
21176
21342
  }
21177
21343
  /**
21178
21344
  * A variant's pinned conditions as a reader sees them: the pins the schema declares, plus a
@@ -21185,7 +21351,12 @@ declare namespace Components {
21185
21351
  * }
21186
21352
  */
21187
21353
  export interface VariantConditions {
21188
- [name: string]: any;
21354
+ [name: string]: /**
21355
+ * One condition's exact value. Which of these shapes a condition takes is set by its type in the
21356
+ * entity's schema, and a value of another shape is refused with `PIN_FORMAT_INVALID`.
21357
+ *
21358
+ */
21359
+ PinnedConditionValue;
21189
21360
  default: boolean;
21190
21361
  }
21191
21362
  export interface VariantList {
@@ -21231,7 +21402,12 @@ declare namespace Components {
21231
21402
  * }
21232
21403
  */
21233
21404
  conditions: {
21234
- [name: string]: any;
21405
+ [name: string]: /**
21406
+ * One condition's exact value. Which of these shapes a condition takes is set by its type in the
21407
+ * entity's schema, and a value of another shape is refused with `PIN_FORMAT_INVALID`.
21408
+ *
21409
+ */
21410
+ PinnedConditionValue;
21235
21411
  default: boolean;
21236
21412
  };
21237
21413
  }
@@ -21359,7 +21535,12 @@ declare namespace Components {
21359
21535
  * }
21360
21536
  */
21361
21537
  conditions: {
21362
- [name: string]: any;
21538
+ [name: string]: /**
21539
+ * One condition's exact value. Which of these shapes a condition takes is set by its type in the
21540
+ * entity's schema, and a value of another shape is refused with `PIN_FORMAT_INVALID`.
21541
+ *
21542
+ */
21543
+ PinnedConditionValue;
21363
21544
  default: boolean;
21364
21545
  };
21365
21546
  status: /**
@@ -21398,7 +21579,12 @@ declare namespace Components {
21398
21579
  * }
21399
21580
  */
21400
21581
  conditions: {
21401
- [name: string]: any;
21582
+ [name: string]: /**
21583
+ * One condition's exact value. Which of these shapes a condition takes is set by its type in the
21584
+ * entity's schema, and a value of another shape is refused with `PIN_FORMAT_INVALID`.
21585
+ *
21586
+ */
21587
+ PinnedConditionValue;
21402
21588
  default: boolean;
21403
21589
  };
21404
21590
  /**
@@ -21502,7 +21688,12 @@ declare namespace Components {
21502
21688
  * }
21503
21689
  */
21504
21690
  conditions: {
21505
- [name: string]: any;
21691
+ [name: string]: /**
21692
+ * One condition's exact value. Which of these shapes a condition takes is set by its type in the
21693
+ * entity's schema, and a value of another shape is refused with `PIN_FORMAT_INVALID`.
21694
+ *
21695
+ */
21696
+ PinnedConditionValue;
21506
21697
  default: boolean;
21507
21698
  };
21508
21699
  /**
@@ -21598,7 +21789,12 @@ declare namespace Components {
21598
21789
  * }
21599
21790
  */
21600
21791
  conditions: {
21601
- [name: string]: any;
21792
+ [name: string]: /**
21793
+ * One condition's exact value. Which of these shapes a condition takes is set by its type in the
21794
+ * entity's schema, and a value of another shape is refused with `PIN_FORMAT_INVALID`.
21795
+ *
21796
+ */
21797
+ PinnedConditionValue;
21602
21798
  default: boolean;
21603
21799
  };
21604
21800
  /**
@@ -21746,7 +21942,12 @@ declare namespace Components {
21746
21942
  * }
21747
21943
  */
21748
21944
  conditions: {
21749
- [name: string]: any;
21945
+ [name: string]: /**
21946
+ * One condition's exact value. Which of these shapes a condition takes is set by its type in the
21947
+ * entity's schema, and a value of another shape is refused with `PIN_FORMAT_INVALID`.
21948
+ *
21949
+ */
21950
+ PinnedConditionValue;
21750
21951
  default: boolean;
21751
21952
  };
21752
21953
  /**
@@ -25548,7 +25749,9 @@ export type ComputePriceResult = Components.Schemas.ComputePriceResult;
25548
25749
  export type ComputedBasePrice = Components.Schemas.ComputedBasePrice;
25549
25750
  export type ComputedPriceBreakdown = Components.Schemas.ComputedPriceBreakdown;
25550
25751
  export type ComputedPriceComponents = Components.Schemas.ComputedPriceComponents;
25752
+ export type ConditionDateRange = Components.Schemas.ConditionDateRange;
25551
25753
  export type ConditionDefinition = Components.Schemas.ConditionDefinition;
25754
+ export type ConditionPredicate = Components.Schemas.ConditionPredicate;
25552
25755
  export type ConditionSet = Components.Schemas.ConditionSet;
25553
25756
  export type ConditionSetCatalog = Components.Schemas.ConditionSetCatalog;
25554
25757
  export type ConditionType = Components.Schemas.ConditionType;
@@ -25557,6 +25760,7 @@ export type ConditionalPricingError = Components.Schemas.ConditionalPricingError
25557
25760
  export type ConditionalPricingErrorCode = Components.Schemas.ConditionalPricingErrorCode;
25558
25761
  export type ConditionalPricingOptIn = Components.Schemas.ConditionalPricingOptIn;
25559
25762
  export type ConsumptionTypeGetAg = Components.Schemas.ConsumptionTypeGetAg;
25763
+ export type ContextConditionValue = Components.Schemas.ContextConditionValue;
25560
25764
  export type Coupon = Components.Schemas.Coupon;
25561
25765
  export type CouponItem = Components.Schemas.CouponItem;
25562
25766
  export type CouponWithoutPromoCodes = Components.Schemas.CouponWithoutPromoCodes;
@@ -25614,11 +25818,14 @@ export type OrderPayload = Components.Schemas.OrderPayload;
25614
25818
  export type OrderRelation = Components.Schemas.OrderRelation;
25615
25819
  export type OrderSource = Components.Schemas.OrderSource;
25616
25820
  export type OrderStatus = Components.Schemas.OrderStatus;
25821
+ export type OrderedConditionOperand = Components.Schemas.OrderedConditionOperand;
25617
25822
  export type PatchVersionRequest = Components.Schemas.PatchVersionRequest;
25618
25823
  export type PaymentMethod = Components.Schemas.PaymentMethod;
25824
+ export type PinnedConditionValue = Components.Schemas.PinnedConditionValue;
25619
25825
  export type PinnedConditions = Components.Schemas.PinnedConditions;
25620
25826
  export type PinnedResolveOptions = Components.Schemas.PinnedResolveOptions;
25621
25827
  export type PortalContext = Components.Schemas.PortalContext;
25828
+ export type PostalCodeCity = Components.Schemas.PostalCodeCity;
25622
25829
  export type PowerMarketAreaDetails = Components.Schemas.PowerMarketAreaDetails;
25623
25830
  export type PowerMeterType = Components.Schemas.PowerMeterType;
25624
25831
  export type Price = Components.Schemas.Price;
package/dist/openapi.json CHANGED
@@ -6134,7 +6134,9 @@
6134
6134
  },
6135
6135
  "ResolveContext": {
6136
6136
  "type": "object",
6137
- "additionalProperties": true,
6137
+ "additionalProperties": {
6138
+ "$ref": "#/components/schemas/ContextConditionValue"
6139
+ },
6138
6140
  "description": "The situation to resolve for: a flat map keyed by condition name. A condition left out\nmatches only variants that leave it unpinned; an empty map therefore returns the `default`\nvariant.\n\nEach value is an exact value, typed by its condition, or a single-operator predicate:\n\n- `{ \"lt\": v }`, `{ \"lte\": v }`, `{ \"gt\": v }`, `{ \"gte\": v }` — order, against a `number`\n or `date` condition\n- `{ \"in\": [...] }` — membership, against a `string`, `select` or `number` condition\n- `{ \"between\": \"2026-03-01\" }` — `daterange` containment, which a plain date also means\n- `{ \"exists\": true }` — pinned to any value; `{ \"exists\": false }` — left unpinned\n\nAn `in` list carries at most 50,000 values. A `string` or `select` matches exactly and\ncase-sensitively. A `location` of format\n`postal_code` is the postal code itself; one of format `postal_code_city` is an object carrying\n`postal_code` and `city`, named as an entity address names them, whose city is compared\ncase- and whitespace-insensitively.\n\n`default` and names beginning with `_` are reserved and cannot be supplied.\n",
6139
6141
  "example": {
6140
6142
  "postal_code": "46045",
@@ -6258,7 +6260,9 @@
6258
6260
  },
6259
6261
  "VariantConditions": {
6260
6262
  "type": "object",
6261
- "additionalProperties": true,
6263
+ "additionalProperties": {
6264
+ "$ref": "#/components/schemas/PinnedConditionValue"
6265
+ },
6262
6266
  "required": [
6263
6267
  "default"
6264
6268
  ],
@@ -6275,12 +6279,204 @@
6275
6279
  },
6276
6280
  "PinnedConditions": {
6277
6281
  "type": "object",
6278
- "additionalProperties": true,
6282
+ "additionalProperties": {
6283
+ "$ref": "#/components/schemas/PinnedConditionValue"
6284
+ },
6279
6285
  "description": "The situation this variant applies to: a flat map keyed by condition name. A condition left\nout is a wildcard, which is what makes adding a condition to a schema non-breaking for\nexisting variants.\n\nExact values only; predicates belong to reads. Values are stored canonicalized for their\ntype: a `date` becomes millisecond-precision UTC, a `daterange` an object carrying `from`\nand `until` where an empty string is an open end, a `location` of format `postal_code` the\npostal code itself and one of format `postal_code_city` an object carrying `postal_code` and\n`city`.\n\n`default` and names beginning with `_` are reserved; use the request's `default` flag.\n",
6280
6286
  "example": {
6281
6287
  "postal_code": "46045"
6282
6288
  }
6283
6289
  },
6290
+ "PinnedConditionValue": {
6291
+ "description": "One condition's exact value. Which of these shapes a condition takes is set by its type in the\nentity's schema, and a value of another shape is refused with `PIN_FORMAT_INVALID`.\n",
6292
+ "anyOf": [
6293
+ {
6294
+ "type": "string"
6295
+ },
6296
+ {
6297
+ "type": "number"
6298
+ },
6299
+ {
6300
+ "type": "boolean"
6301
+ },
6302
+ {
6303
+ "$ref": "#/components/schemas/ConditionDateRange"
6304
+ },
6305
+ {
6306
+ "$ref": "#/components/schemas/PostalCodeCity"
6307
+ }
6308
+ ]
6309
+ },
6310
+ "ConditionDateRange": {
6311
+ "type": "object",
6312
+ "additionalProperties": false,
6313
+ "description": "The value of a `daterange` condition. A bound that is absent, `null` or an empty string is an\nopen end; stored, an open end is an empty string.\n",
6314
+ "properties": {
6315
+ "from": {
6316
+ "type": "string",
6317
+ "nullable": true,
6318
+ "example": "2026-01-01"
6319
+ },
6320
+ "until": {
6321
+ "type": "string",
6322
+ "nullable": true,
6323
+ "example": "2027-01-01"
6324
+ }
6325
+ }
6326
+ },
6327
+ "PostalCodeCity": {
6328
+ "type": "object",
6329
+ "additionalProperties": false,
6330
+ "description": "The value of a `location` condition of format `postal_code_city`, its parts named as an entity\naddress names them.\n",
6331
+ "required": [
6332
+ "postal_code",
6333
+ "city"
6334
+ ],
6335
+ "properties": {
6336
+ "postal_code": {
6337
+ "type": "string",
6338
+ "minLength": 1,
6339
+ "example": "50667"
6340
+ },
6341
+ "city": {
6342
+ "type": "string",
6343
+ "minLength": 1,
6344
+ "example": "Köln"
6345
+ }
6346
+ }
6347
+ },
6348
+ "ContextConditionValue": {
6349
+ "description": "One condition's value in a resolve context or listing filter: an exact value, or a predicate.\nWhich of these a condition takes is set by its type in the entity's schema, and a value of\nanother shape is refused with `CONTEXT_FORMAT_INVALID`, or `OPERATOR_UNSUPPORTED` for a\npredicate its type does not support.\n",
6350
+ "anyOf": [
6351
+ {
6352
+ "type": "string"
6353
+ },
6354
+ {
6355
+ "type": "number"
6356
+ },
6357
+ {
6358
+ "type": "boolean"
6359
+ },
6360
+ {
6361
+ "$ref": "#/components/schemas/PostalCodeCity"
6362
+ },
6363
+ {
6364
+ "$ref": "#/components/schemas/ConditionPredicate"
6365
+ }
6366
+ ]
6367
+ },
6368
+ "ConditionPredicate": {
6369
+ "description": "A single-operator predicate.",
6370
+ "oneOf": [
6371
+ {
6372
+ "type": "object",
6373
+ "additionalProperties": false,
6374
+ "required": [
6375
+ "lt"
6376
+ ],
6377
+ "properties": {
6378
+ "lt": {
6379
+ "$ref": "#/components/schemas/OrderedConditionOperand"
6380
+ }
6381
+ }
6382
+ },
6383
+ {
6384
+ "type": "object",
6385
+ "additionalProperties": false,
6386
+ "required": [
6387
+ "lte"
6388
+ ],
6389
+ "properties": {
6390
+ "lte": {
6391
+ "$ref": "#/components/schemas/OrderedConditionOperand"
6392
+ }
6393
+ }
6394
+ },
6395
+ {
6396
+ "type": "object",
6397
+ "additionalProperties": false,
6398
+ "required": [
6399
+ "gt"
6400
+ ],
6401
+ "properties": {
6402
+ "gt": {
6403
+ "$ref": "#/components/schemas/OrderedConditionOperand"
6404
+ }
6405
+ }
6406
+ },
6407
+ {
6408
+ "type": "object",
6409
+ "additionalProperties": false,
6410
+ "required": [
6411
+ "gte"
6412
+ ],
6413
+ "properties": {
6414
+ "gte": {
6415
+ "$ref": "#/components/schemas/OrderedConditionOperand"
6416
+ }
6417
+ }
6418
+ },
6419
+ {
6420
+ "type": "object",
6421
+ "additionalProperties": false,
6422
+ "required": [
6423
+ "in"
6424
+ ],
6425
+ "properties": {
6426
+ "in": {
6427
+ "type": "array",
6428
+ "minItems": 1,
6429
+ "items": {
6430
+ "anyOf": [
6431
+ {
6432
+ "type": "string"
6433
+ },
6434
+ {
6435
+ "type": "number"
6436
+ }
6437
+ ]
6438
+ }
6439
+ }
6440
+ }
6441
+ },
6442
+ {
6443
+ "type": "object",
6444
+ "additionalProperties": false,
6445
+ "required": [
6446
+ "between"
6447
+ ],
6448
+ "properties": {
6449
+ "between": {
6450
+ "type": "string",
6451
+ "description": "The instant a `daterange` condition's range must contain."
6452
+ }
6453
+ }
6454
+ },
6455
+ {
6456
+ "type": "object",
6457
+ "additionalProperties": false,
6458
+ "required": [
6459
+ "exists"
6460
+ ],
6461
+ "properties": {
6462
+ "exists": {
6463
+ "type": "boolean"
6464
+ }
6465
+ }
6466
+ }
6467
+ ]
6468
+ },
6469
+ "OrderedConditionOperand": {
6470
+ "description": "A number, or a date as an RFC 3339 date or date-time.",
6471
+ "anyOf": [
6472
+ {
6473
+ "type": "number"
6474
+ },
6475
+ {
6476
+ "type": "string"
6477
+ }
6478
+ ]
6479
+ },
6284
6480
  "VariantValues": {
6285
6481
  "type": "object",
6286
6482
  "additionalProperties": true,
@@ -6907,7 +7103,9 @@
6907
7103
  },
6908
7104
  "VariantConditionFilter": {
6909
7105
  "type": "object",
6910
- "additionalProperties": true,
7106
+ "additionalProperties": {
7107
+ "$ref": "#/components/schemas/ContextConditionValue"
7108
+ },
6911
7109
  "description": "Which pins a variant must carry to be listed: a flat map keyed by condition name, taking the\nsame exact values and predicates a resolve context does. A condition left out is not\nfiltered on. An `in` list carries at most 50,000 values.\n\nA variant matches only where it pins the condition — unlike `:resolve`, where an unpinned\ncondition matches any value. `{ \"exists\": false }` selects the variants that leave it\nunpinned.\n\n`default` is accepted as an exact boolean and takes no predicate: `true` selects the\nentity's fallback variant, `false` every variant that is not it. Names beginning with `_`\nare reserved.\n",
6912
7110
  "example": {
6913
7111
  "postal_code": "46045",
@@ -11276,7 +11474,7 @@
11276
11474
  "CatalogContext": {
11277
11475
  "type": "object",
11278
11476
  "additionalProperties": false,
11279
- "description": "One context per entity type, each the authenticated resolve's context and checked against\nthat type's schema alone. A product resolves against `product`, a price and each of a\ncomposite's components against `price`, and a coupon against `coupon`. A type left out\nresolves against an empty context, which serves the `default` variant.\n",
11477
+ "description": "One context per entity type, each the authenticated resolve's context and checked against\nthat type's schema alone. A product resolves against `product`, and a price and each of a\ncomposite's components against `price`. A type left out resolves against an empty context,\nwhich serves the `default` variant.\n",
11280
11478
  "properties": {
11281
11479
  "product": {
11282
11480
  "$ref": "#/components/schemas/ResolveContext"
@@ -11424,7 +11622,7 @@
11424
11622
  },
11425
11623
  "ResolvedPriceComponents": {
11426
11624
  "type": "object",
11427
- "description": "The components of a composite price as the v2 catalog serves them: hydrated in place, and\na component that is itself conditional resolved against the same context, carrying the\ndiscriminators a resolved payload carries. A conditional component with no variant in\neffect — nothing matches and there is no default — is left out, as a deleted component is\n(ADR 0048).\n",
11625
+ "description": "The components of a composite price as the v2 catalog serves them: hydrated in place, and\na component that is itself conditional resolved against the same context, carrying the\ndiscriminators a resolved payload carries. A conditional component with no variant in\neffect — nothing matches and there is no default — is left out, as a deleted component is.\n",
11428
11626
  "properties": {
11429
11627
  "price_components": {
11430
11628
  "type": "array",
@@ -11575,14 +11773,14 @@
11575
11773
  },
11576
11774
  "price_components": {
11577
11775
  "type": "array",
11578
- "description": "Present for a composite price that serves at least one component: the components this\npair is the combination of, each with its variant where one produced it. A conditional\ncomponent with no variant in effect is left out of the composite and is not named here\n(ADR 0048). A component line item carries no reference of its own.\n",
11776
+ "description": "Present for a composite price that serves at least one component: the components this\npair is the combination of, each with its variant where one produced it. A conditional\ncomponent with no variant in effect is left out of the composite and is not named here.\nA component line item carries no reference of its own.\n",
11579
11777
  "items": {
11580
11778
  "$ref": "#/components/schemas/CatalogReferenceMember"
11581
11779
  }
11582
11780
  },
11583
11781
  "coupons": {
11584
11782
  "type": "array",
11585
- "description": "Present when coupons apply to the price. A coupon's `variant` exists only once coupons\ncan be conditional.\n",
11783
+ "description": "Present when coupons apply to the price. Coupons are served as stored, so a coupon member\ncarries no `variant`.\n",
11586
11784
  "items": {
11587
11785
  "$ref": "#/components/schemas/CatalogReferenceMember"
11588
11786
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/pricing-client",
3
- "version": "3.61.1",
3
+ "version": "3.62.0",
4
4
  "description": "Client for epilot Pricing APIs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",