@schematichq/schematic-components 0.3.1 → 0.3.3

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.
@@ -7185,9 +7185,12 @@ function BillingSubscriptionResponseDataFromJSONTyped(json, ignoreDiscriminator)
7185
7185
  return json;
7186
7186
  }
7187
7187
  return {
7188
+ currency: json["currency"],
7188
7189
  expiredAt: json["expired_at"] == null ? void 0 : new Date(json["expired_at"]),
7189
7190
  externalId: json["external_id"],
7190
7191
  id: json["id"],
7192
+ interval: json["interval"],
7193
+ totalPrice: json["total_price"],
7191
7194
  updatedAt: new Date(json["updated_at"])
7192
7195
  };
7193
7196
  }
@@ -8704,7 +8707,7 @@ var EmbedProvider = ({
8704
8707
  (0, import_react2.useEffect)(() => {
8705
8708
  if (accessToken) {
8706
8709
  const { headers = {} } = apiConfig ?? {};
8707
- headers["X-Schematic-Components-Version"] = "0.3.1";
8710
+ headers["X-Schematic-Components-Version"] = "0.3.3";
8708
8711
  headers["X-Schematic-Session-ID"] = sessionIdRef.current;
8709
8712
  const config = new Configuration({
8710
8713
  ...apiConfig,
@@ -11979,6 +11982,7 @@ var components = {
11979
11982
  Card,
11980
11983
  PlanManager,
11981
11984
  IncludedFeatures,
11985
+ MeteredFeatures,
11982
11986
  UpcomingBill,
11983
11987
  PaymentMethod
11984
11988
  };
@@ -353,6 +353,12 @@ declare interface BillingProductForSubscriptionResponseData {
353
353
  * @interface BillingSubscriptionResponseData
354
354
  */
355
355
  declare interface BillingSubscriptionResponseData {
356
+ /**
357
+ *
358
+ * @type {string}
359
+ * @memberof BillingSubscriptionResponseData
360
+ */
361
+ currency: string;
356
362
  /**
357
363
  *
358
364
  * @type {Date}
@@ -365,12 +371,24 @@ declare interface BillingSubscriptionResponseData {
365
371
  * @memberof BillingSubscriptionResponseData
366
372
  */
367
373
  externalId: string;
374
+ /**
375
+ *
376
+ * @type {string}
377
+ * @memberof BillingSubscriptionResponseData
378
+ */
379
+ id: string;
380
+ /**
381
+ *
382
+ * @type {string}
383
+ * @memberof BillingSubscriptionResponseData
384
+ */
385
+ interval: string;
368
386
  /**
369
387
  *
370
388
  * @type {number}
371
389
  * @memberof BillingSubscriptionResponseData
372
390
  */
373
- id: number;
391
+ totalPrice: number;
374
392
  /**
375
393
  *
376
394
  * @type {Date}
@@ -7151,9 +7151,12 @@ function BillingSubscriptionResponseDataFromJSONTyped(json, ignoreDiscriminator)
7151
7151
  return json;
7152
7152
  }
7153
7153
  return {
7154
+ currency: json["currency"],
7154
7155
  expiredAt: json["expired_at"] == null ? void 0 : new Date(json["expired_at"]),
7155
7156
  externalId: json["external_id"],
7156
7157
  id: json["id"],
7158
+ interval: json["interval"],
7159
+ totalPrice: json["total_price"],
7157
7160
  updatedAt: new Date(json["updated_at"])
7158
7161
  };
7159
7162
  }
@@ -8670,7 +8673,7 @@ var EmbedProvider = ({
8670
8673
  useEffect(() => {
8671
8674
  if (accessToken) {
8672
8675
  const { headers = {} } = apiConfig ?? {};
8673
- headers["X-Schematic-Components-Version"] = "0.3.1";
8676
+ headers["X-Schematic-Components-Version"] = "0.3.3";
8674
8677
  headers["X-Schematic-Session-ID"] = sessionIdRef.current;
8675
8678
  const config = new Configuration({
8676
8679
  ...apiConfig,
@@ -11958,6 +11961,7 @@ var components = {
11958
11961
  Card,
11959
11962
  PlanManager,
11960
11963
  IncludedFeatures,
11964
+ MeteredFeatures,
11961
11965
  UpcomingBill,
11962
11966
  PaymentMethod
11963
11967
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schematichq/schematic-components",
3
- "version": "0.3.1",
3
+ "version": "0.3.3",
4
4
  "main": "dist/schematic-components.cjs.js",
5
5
  "module": "dist/schematic-components.esm.js",
6
6
  "types": "dist/schematic-components.d.ts",