Skip to content

Commit

Permalink
version up (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
tenub authored Oct 16, 2024
1 parent 9f43e9f commit 9528784
Show file tree
Hide file tree
Showing 5 changed files with 103 additions and 11 deletions.
2 changes: 1 addition & 1 deletion components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@schematichq/schematic-components",
"version": "0.3.7",
"version": "0.3.8",
"main": "dist/schematic-components.cjs.js",
"module": "dist/schematic-components.esm.js",
"types": "dist/schematic-components.d.ts",
Expand Down
1 change: 1 addition & 0 deletions components/src/api/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ models/FeatureUsageDetailResponseData.ts
models/FeatureUsageResponseData.ts
models/FlagDetailResponseData.ts
models/FlagResponseData.ts
models/GenericPreviewObject.ts
models/GetSetupIntentResponse.ts
models/HydrateComponentResponse.ts
models/InvoiceResponseData.ts
Expand Down
20 changes: 10 additions & 10 deletions components/src/api/models/CompanyDetailResponseData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@ import {
CompanyPlanWithBillingSubViewFromJSONTyped,
CompanyPlanWithBillingSubViewToJSON,
} from "./CompanyPlanWithBillingSubView";
import type { PreviewObject } from "./PreviewObject";
import {
PreviewObjectFromJSON,
PreviewObjectFromJSONTyped,
PreviewObjectToJSON,
} from "./PreviewObject";
import type { EntityKeyDetailResponseData } from "./EntityKeyDetailResponseData";
import {
EntityKeyDetailResponseDataFromJSON,
Expand All @@ -43,6 +37,12 @@ import {
EntityTraitDetailResponseDataFromJSONTyped,
EntityTraitDetailResponseDataToJSON,
} from "./EntityTraitDetailResponseData";
import type { GenericPreviewObject } from "./GenericPreviewObject";
import {
GenericPreviewObjectFromJSON,
GenericPreviewObjectFromJSONTyped,
GenericPreviewObjectToJSON,
} from "./GenericPreviewObject";

/**
*
Expand Down Expand Up @@ -118,10 +118,10 @@ export interface CompanyDetailResponseData {
plan?: CompanyPlanWithBillingSubView;
/**
*
* @type {Array<PreviewObject>}
* @type {Array<GenericPreviewObject>}
* @memberof CompanyDetailResponseData
*/
plans: Array<PreviewObject>;
plans: Array<GenericPreviewObject>;
/**
* A map of trait names to trait values
* @type {object}
Expand Down Expand Up @@ -203,7 +203,7 @@ export function CompanyDetailResponseDataFromJSONTyped(
json["plan"] == null
? undefined
: CompanyPlanWithBillingSubViewFromJSON(json["plan"]),
plans: (json["plans"] as Array<any>).map(PreviewObjectFromJSON),
plans: (json["plans"] as Array<any>).map(GenericPreviewObjectFromJSON),
traits: json["traits"] == null ? undefined : json["traits"],
updatedAt: new Date(json["updated_at"]),
userCount: json["user_count"],
Expand Down Expand Up @@ -237,7 +237,7 @@ export function CompanyDetailResponseDataToJSON(
logo_url: value["logoUrl"],
name: value["name"],
plan: CompanyPlanWithBillingSubViewToJSON(value["plan"]),
plans: (value["plans"] as Array<any>).map(PreviewObjectToJSON),
plans: (value["plans"] as Array<any>).map(GenericPreviewObjectToJSON),
traits: value["traits"],
updated_at: value["updatedAt"].toISOString(),
user_count: value["userCount"],
Expand Down
90 changes: 90 additions & 0 deletions components/src/api/models/GenericPreviewObject.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
/* tslint:disable */
/* eslint-disable */
/**
* Schematic API
* Schematic API
*
* The version of the OpenAPI document: 0.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/

import { mapValues } from "../runtime";
/**
*
* @export
* @interface GenericPreviewObject
*/
export interface GenericPreviewObject {
/**
*
* @type {string}
* @memberof GenericPreviewObject
*/
description?: string | null;
/**
*
* @type {string}
* @memberof GenericPreviewObject
*/
id: string;
/**
*
* @type {string}
* @memberof GenericPreviewObject
*/
imageUrl?: string | null;
/**
*
* @type {string}
* @memberof GenericPreviewObject
*/
name: string;
}

/**
* Check if a given object implements the GenericPreviewObject interface.
*/
export function instanceOfGenericPreviewObject(
value: object,
): value is GenericPreviewObject {
if (!("id" in value) || value["id"] === undefined) return false;
if (!("name" in value) || value["name"] === undefined) return false;
return true;
}

export function GenericPreviewObjectFromJSON(json: any): GenericPreviewObject {
return GenericPreviewObjectFromJSONTyped(json, false);
}

export function GenericPreviewObjectFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): GenericPreviewObject {
if (json == null) {
return json;
}
return {
description: json["description"] == null ? undefined : json["description"],
id: json["id"],
imageUrl: json["image_url"] == null ? undefined : json["image_url"],
name: json["name"],
};
}

export function GenericPreviewObjectToJSON(
value?: GenericPreviewObject | null,
): any {
if (value == null) {
return value;
}
return {
description: value["description"],
id: value["id"],
image_url: value["imageUrl"],
name: value["name"],
};
}
1 change: 1 addition & 0 deletions components/src/api/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export * from "./FeatureUsageDetailResponseData";
export * from "./FeatureUsageResponseData";
export * from "./FlagDetailResponseData";
export * from "./FlagResponseData";
export * from "./GenericPreviewObject";
export * from "./GetSetupIntentResponse";
export * from "./HydrateComponentResponse";
export * from "./InvoiceResponseData";
Expand Down

0 comments on commit 9528784

Please sign in to comment.