@epilot/pricing-client 3.27.3 → 3.27.5

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
@@ -1099,7 +1099,8 @@ declare namespace Components {
1099
1099
  /**
1100
1100
  * The compute price payload
1101
1101
  */
1102
- export interface ComputePriceParams {
1102
+ export type ComputePriceParams = /* The compute price payload */ /* The compute price payload for power */ ComputePriceParamsPower | /* The compute price payload for gas */ ComputePriceParamsGas;
1103
+ export interface ComputePriceParamsBase {
1103
1104
  /**
1104
1105
  * The postal code to search for providers
1105
1106
  */
@@ -1111,7 +1112,7 @@ declare namespace Components {
1111
1112
  /**
1112
1113
  * The monthly consumption to compute the price in kWh (to be deprecated in favor of consumption_HT)
1113
1114
  */
1114
- consumption: number;
1115
+ consumption?: number;
1115
1116
  /**
1116
1117
  * The monthly HT consumption to compute the price in kWh
1117
1118
  */
@@ -1125,13 +1126,87 @@ declare namespace Components {
1125
1126
  */
1126
1127
  association_id?: string;
1127
1128
  /**
1128
- * The product type
1129
+ * The billing period (defaults to monthly)
1129
1130
  */
1130
- type: "power" | "gas";
1131
+ billing_period?: "weekly" | "monthly" | "every_quarter" | "every_6_months" | "yearly" | "one_time";
1132
+ }
1133
+ /**
1134
+ * The compute price payload for gas
1135
+ */
1136
+ export interface ComputePriceParamsGas {
1137
+ /**
1138
+ * The postal code to search for providers
1139
+ */
1140
+ postal_code: string;
1141
+ /**
1142
+ * The consumption type
1143
+ */
1144
+ consumption_type?: "household" | "heating_pump" | "night_storage_heating" | "night_storage_heating_common_meter";
1145
+ /**
1146
+ * The monthly consumption to compute the price in kWh (to be deprecated in favor of consumption_HT)
1147
+ */
1148
+ consumption?: number;
1149
+ /**
1150
+ * The monthly HT consumption to compute the price in kWh
1151
+ */
1152
+ consumption_HT?: number;
1153
+ /**
1154
+ * The monthly NT consumption to compute the price in kWh
1155
+ */
1156
+ consumption_NT?: number;
1157
+ /**
1158
+ * The association id
1159
+ */
1160
+ association_id?: string;
1131
1161
  /**
1132
1162
  * The billing period (defaults to monthly)
1133
1163
  */
1134
1164
  billing_period?: "weekly" | "monthly" | "every_quarter" | "every_6_months" | "yearly" | "one_time";
1165
+ /**
1166
+ * The type of energy to compute the price
1167
+ */
1168
+ type: "gas";
1169
+ /**
1170
+ * The concession type for gas
1171
+ */
1172
+ concession_type?: "tarif_ka" | "sonder_ka";
1173
+ }
1174
+ /**
1175
+ * The compute price payload for power
1176
+ */
1177
+ export interface ComputePriceParamsPower {
1178
+ /**
1179
+ * The postal code to search for providers
1180
+ */
1181
+ postal_code: string;
1182
+ /**
1183
+ * The consumption type
1184
+ */
1185
+ consumption_type?: "household" | "heating_pump" | "night_storage_heating" | "night_storage_heating_common_meter";
1186
+ /**
1187
+ * The monthly consumption to compute the price in kWh (to be deprecated in favor of consumption_HT)
1188
+ */
1189
+ consumption?: number;
1190
+ /**
1191
+ * The monthly HT consumption to compute the price in kWh
1192
+ */
1193
+ consumption_HT?: number;
1194
+ /**
1195
+ * The monthly NT consumption to compute the price in kWh
1196
+ */
1197
+ consumption_NT?: number;
1198
+ /**
1199
+ * The association id
1200
+ */
1201
+ association_id?: string;
1202
+ /**
1203
+ * The billing period (defaults to monthly)
1204
+ */
1205
+ billing_period?: "weekly" | "monthly" | "every_quarter" | "every_6_months" | "yearly" | "one_time";
1206
+ /**
1207
+ * The type of energy to compute the price
1208
+ */
1209
+ type: "power";
1135
1210
  }
1136
1211
  export interface ComputePriceResult {
1137
1212
  /**
package/dist/openapi.json CHANGED
@@ -2742,8 +2742,7 @@
2742
2742
  "SaveIntegrationCredentialsParams": {
2743
2743
  "$ref": "#/components/schemas/BasicAuthCredentials"
2744
2744
  },
2745
- "ComputePriceParams": {
2746
- "description": "The compute price payload",
2745
+ "ComputePriceParamsBase": {
2747
2746
  "type": "object",
2748
2747
  "properties": {
2749
2748
  "postal_code": {
@@ -2777,14 +2776,6 @@
2777
2776
  "description": "The association id",
2778
2777
  "type": "string"
2779
2778
  },
2780
- "type": {
2781
- "description": "The product type",
2782
- "type": "string",
2783
- "enum": [
2784
- "power",
2785
- "gas"
2786
- ]
2787
- },
2788
2779
  "billing_period": {
2789
2780
  "description": "The billing period (defaults to monthly)",
2790
2781
  "type": "string",
@@ -2801,8 +2792,55 @@
2801
2792
  },
2802
2793
  "required": [
2803
2794
  "type",
2804
- "postal_code",
2805
- "consumption"
2795
+ "postal_code"
2796
+ ]
2797
+ },
2798
+ "ComputePriceParamsPower": {
2799
+ "allOf": [
2800
+ {
2801
+ "$ref": "#/components/schemas/ComputePriceParamsBase"
2802
+ },
2803
+ {
2804
+ "type": "object",
2805
+ "properties": {
2806
+ "type": {
2807
+ "type": "string",
2808
+ "description": "The type of energy to compute the price",
2809
+ "enum": [
2810
+ "power"
2811
+ ]
2812
+ }
2813
+ },
2814
+ "description": "The compute price payload for power"
2815
+ }
2816
+ ]
2817
+ },
2818
+ "ComputePriceParamsGas": {
2819
+ "allOf": [
2820
+ {
2821
+ "$ref": "#/components/schemas/ComputePriceParamsBase"
2822
+ },
2823
+ {
2824
+ "type": "object",
2825
+ "properties": {
2826
+ "type": {
2827
+ "type": "string",
2828
+ "description": "The type of energy to compute the price",
2829
+ "enum": [
2830
+ "gas"
2831
+ ]
2832
+ },
2833
+ "concession_type": {
2834
+ "description": "The concession type for gas",
2835
+ "type": "string",
2836
+ "enum": [
2837
+ "tarif_ka",
2838
+ "sonder_ka"
2839
+ ]
2840
+ }
2841
+ },
2842
+ "description": "The compute price payload for gas"
2843
+ }
2806
2844
  ]
2807
2845
  },
2808
2846
  "SignatureMeta": {
@@ -2841,6 +2879,17 @@
2841
2879
  "amount_decimal"
2842
2880
  ]
2843
2881
  },
2882
+ "ComputePriceParams": {
2883
+ "description": "The compute price payload",
2884
+ "oneOf": [
2885
+ {
2886
+ "$ref": "#/components/schemas/ComputePriceParamsPower"
2887
+ },
2888
+ {
2889
+ "$ref": "#/components/schemas/ComputePriceParamsGas"
2890
+ }
2891
+ ]
2892
+ },
2844
2893
  "ComputedPriceBreakdown": {
2845
2894
  "type": "object",
2846
2895
  "description": "Price breakdown",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/pricing-client",
3
- "version": "3.27.3",
3
+ "version": "3.27.5",
4
4
  "description": "Client for epilot Pricing APIs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",