Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update api spec #279

Merged
merged 3 commits into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kittycad/lib",
"version": "2.0.10",
"version": "2.0.11",
"description": "Javascript library for KittyCAD API",
"type": "module",
"keywords": [
Expand Down
69 changes: 68 additions & 1 deletion spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -8227,7 +8227,7 @@
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SubscriptionTierPrice"
"$ref": "#/components/schemas/EnterpriseSubscriptionTierPrice"
}
}
},
Expand Down Expand Up @@ -17999,6 +17999,73 @@
"pos"
]
},
"EnterpriseSubscriptionTierPrice": {
"description": "The price for an enterprise subscription.",
"oneOf": [
{
"description": "A flat price that we publicly list.",
"type": "object",
"properties": {
"interval": {
"description": "The interval the price is charged.",
"allOf": [
{
"$ref": "#/components/schemas/PlanInterval"
}
]
},
"price": {
"title": "double",
"description": "The price.",
"type": "number",
"format": "money-usd"
},
"type": {
"type": "string",
"enum": [
"flat"
]
}
},
"required": [
"interval",
"price",
"type"
]
},
{
"description": "A per user price that we publicly list.",
"type": "object",
"properties": {
"interval": {
"description": "The interval the price is charged.",
"allOf": [
{
"$ref": "#/components/schemas/PlanInterval"
}
]
},
"price": {
"title": "double",
"description": "The price.",
"type": "number",
"format": "money-usd"
},
"type": {
"type": "string",
"enum": [
"per_user"
]
}
},
"required": [
"interval",
"price",
"type"
]
}
]
},
"EntityCircularPattern": {
"description": "The response from the `EntityCircularPattern` command.",
"type": "object",
Expand Down
4 changes: 2 additions & 2 deletions src/api/orgs/update_enterprise_pricing_for_org.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import {
ZooProductSubscriptions_type,
Error_type,
Uuid_type,
SubscriptionTierPrice_type,
EnterpriseSubscriptionTierPrice_type,
} from '../../models.js';
import { Client } from '../../client.js';

interface Update_enterprise_pricing_for_org_params {
client?: Client;
id: Uuid_type;
body: SubscriptionTierPrice_type;
body: EnterpriseSubscriptionTierPrice_type;
}

type Update_enterprise_pricing_for_org_return =
Expand Down
15 changes: 15 additions & 0 deletions src/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1138,6 +1138,20 @@ export interface EngineUtilEvaluatePath_type {
pos: Point3d_type /* The evaluated path curve position */;
}

export type EnterpriseSubscriptionTierPrice_type =
| {
interval: PlanInterval_type /* The interval the price is charged. */;
/* title:double, format:money-usd, description:The price. */
price: number;
type: 'flat';
}
| {
interval: PlanInterval_type /* The interval the price is charged. */;
/* title:double, format:money-usd, description:The price. */
price: number;
type: 'per_user';
};

export interface EntityCircularPattern_type {
/*{
"format": "uuid"
Expand Down Expand Up @@ -5799,6 +5813,7 @@ export interface Models {
EnableDryRun_type: EnableDryRun_type;
EnableSketchMode_type: EnableSketchMode_type;
EngineUtilEvaluatePath_type: EngineUtilEvaluatePath_type;
EnterpriseSubscriptionTierPrice_type: EnterpriseSubscriptionTierPrice_type;
EntityCircularPattern_type: EntityCircularPattern_type;
EntityFade_type: EntityFade_type;
EntityGetAllChildUuids_type: EntityGetAllChildUuids_type;
Expand Down