Skip to content

Commit

Permalink
Merge pull request #7 from SchematicHQ/fern-bot/08-06-2024-0652PM
Browse files Browse the repository at this point in the history
🌿 Fern Regeneration -- August 6, 2024
  • Loading branch information
bpapillon authored Aug 6, 2024
2 parents 05c820e + 703963d commit 9813b60
Show file tree
Hide file tree
Showing 19 changed files with 163 additions and 5 deletions.
12 changes: 10 additions & 2 deletions src/api/resources/plans/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ export class Plans {
request: Schematic.ListPlansRequest = {},
requestOptions?: Plans.RequestOptions
): Promise<Schematic.ListPlansResponse> {
const { companyId, ids, q, withoutEntitlementFor, limit, offset } = request;
const { companyId, ids, q, planType, withoutEntitlementFor, limit, offset } = request;
const _queryParams: Record<string, string | string[] | object | object[]> = {};
if (companyId != null) {
_queryParams["company_id"] = companyId;
Expand All @@ -423,6 +423,10 @@ export class Plans {
_queryParams["q"] = q;
}

if (planType != null) {
_queryParams["plan_type"] = planType;
}

if (withoutEntitlementFor != null) {
_queryParams["without_entitlement_for"] = withoutEntitlementFor;
}
Expand Down Expand Up @@ -1137,7 +1141,7 @@ export class Plans {
request: Schematic.CountPlansRequest = {},
requestOptions?: Plans.RequestOptions
): Promise<Schematic.CountPlansResponse> {
const { companyId, ids, q, withoutEntitlementFor, limit, offset } = request;
const { companyId, ids, q, planType, withoutEntitlementFor, limit, offset } = request;
const _queryParams: Record<string, string | string[] | object | object[]> = {};
if (companyId != null) {
_queryParams["company_id"] = companyId;
Expand All @@ -1155,6 +1159,10 @@ export class Plans {
_queryParams["q"] = q;
}

if (planType != null) {
_queryParams["plan_type"] = planType;
}

if (withoutEntitlementFor != null) {
_queryParams["without_entitlement_for"] = withoutEntitlementFor;
}
Expand Down
6 changes: 6 additions & 0 deletions src/api/resources/plans/client/requests/CountPlansRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/

import * as Schematic from "../../../../index";

/**
* @example
* {}
Expand All @@ -10,6 +12,10 @@ export interface CountPlansRequest {
companyId?: string;
ids?: string | string[];
q?: string;
/**
* Filter by plan type
*/
planType?: Schematic.CountPlansRequestPlanType;
/**
* Filter out plans that already have a plan entitlement for the specified feature ID
*/
Expand Down
6 changes: 6 additions & 0 deletions src/api/resources/plans/client/requests/ListPlansRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/

import * as Schematic from "../../../../index";

/**
* @example
* {}
Expand All @@ -10,6 +12,10 @@ export interface ListPlansRequest {
companyId?: string;
ids?: string | string[];
q?: string;
/**
* Filter by plan type
*/
planType?: Schematic.ListPlansRequestPlanType;
/**
* Filter out plans that already have a plan entitlement for the specified feature ID
*/
Expand Down
4 changes: 4 additions & 0 deletions src/api/resources/plans/types/CountPlansParams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/

import * as Schematic from "../../../index";

/**
* Input parameters
*/
Expand All @@ -12,6 +14,8 @@ export interface CountPlansParams {
limit?: number;
/** Page offset (default 0) */
offset?: number;
/** Filter by plan type */
planType?: Schematic.CountPlansResponseParamsPlanType;
q?: string;
/** Filter out plans that already have a plan entitlement for the specified feature ID */
withoutEntitlementFor?: string;
Expand Down
13 changes: 13 additions & 0 deletions src/api/resources/plans/types/CountPlansRequestPlanType.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

/**
* Filter by plan type
*/
export type CountPlansRequestPlanType = "plan" | "add_on";

export const CountPlansRequestPlanType = {
Plan: "plan",
AddOn: "add_on",
} as const;
13 changes: 13 additions & 0 deletions src/api/resources/plans/types/CountPlansResponseParamsPlanType.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

/**
* Filter by plan type
*/
export type CountPlansResponseParamsPlanType = "plan" | "add_on";

export const CountPlansResponseParamsPlanType = {
Plan: "plan",
AddOn: "add_on",
} as const;
4 changes: 4 additions & 0 deletions src/api/resources/plans/types/ListPlansParams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
* This file was auto-generated by Fern from our API Definition.
*/

import * as Schematic from "../../../index";

/**
* Input parameters
*/
Expand All @@ -12,6 +14,8 @@ export interface ListPlansParams {
limit?: number;
/** Page offset (default 0) */
offset?: number;
/** Filter by plan type */
planType?: Schematic.ListPlansResponseParamsPlanType;
q?: string;
/** Filter out plans that already have a plan entitlement for the specified feature ID */
withoutEntitlementFor?: string;
Expand Down
13 changes: 13 additions & 0 deletions src/api/resources/plans/types/ListPlansRequestPlanType.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

/**
* Filter by plan type
*/
export type ListPlansRequestPlanType = "plan" | "add_on";

export const ListPlansRequestPlanType = {
Plan: "plan",
AddOn: "add_on",
} as const;
13 changes: 13 additions & 0 deletions src/api/resources/plans/types/ListPlansResponseParamsPlanType.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

/**
* Filter by plan type
*/
export type ListPlansResponseParamsPlanType = "plan" | "add_on";

export const ListPlansResponseParamsPlanType = {
Plan: "plan",
AddOn: "add_on",
} as const;
4 changes: 4 additions & 0 deletions src/api/resources/plans/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
export * from "./GetAudienceResponse";
export * from "./UpdateAudienceResponse";
export * from "./DeleteAudienceResponse";
export * from "./ListPlansRequestPlanType";
export * from "./ListPlansResponseParamsPlanType";
export * from "./ListPlansParams";
export * from "./ListPlansResponse";
export * from "./CreatePlanRequestBodyPlanType";
Expand All @@ -9,5 +11,7 @@ export * from "./GetPlanResponse";
export * from "./UpdatePlanResponse";
export * from "./DeletePlanResponse";
export * from "./UpsertBillingProductPlanResponse";
export * from "./CountPlansRequestPlanType";
export * from "./CountPlansResponseParamsPlanType";
export * from "./CountPlansParams";
export * from "./CountPlansResponse";
2 changes: 1 addition & 1 deletion src/api/types/ComponentResponseData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/

export interface ComponentResponseData {
ast: number[];
ast?: Record<string, number>;
createdAt: Date;
id: string;
name: string;
Expand Down
3 changes: 3 additions & 0 deletions src/serialization/resources/plans/types/CountPlansParams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import * as serializers from "../../../index";
import * as Schematic from "../../../../api/index";
import * as core from "../../../../core";
import { CountPlansResponseParamsPlanType } from "./CountPlansResponseParamsPlanType";

export const CountPlansParams: core.serialization.ObjectSchema<
serializers.CountPlansParams.Raw,
Expand All @@ -14,6 +15,7 @@ export const CountPlansParams: core.serialization.ObjectSchema<
ids: core.serialization.list(core.serialization.string()).optional(),
limit: core.serialization.number().optional(),
offset: core.serialization.number().optional(),
planType: core.serialization.property("plan_type", CountPlansResponseParamsPlanType.optional()),
q: core.serialization.string().optional(),
withoutEntitlementFor: core.serialization.property(
"without_entitlement_for",
Expand All @@ -27,6 +29,7 @@ export declare namespace CountPlansParams {
ids?: string[] | null;
limit?: number | null;
offset?: number | null;
plan_type?: CountPlansResponseParamsPlanType.Raw | null;
q?: string | null;
without_entitlement_for?: string | null;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

import * as serializers from "../../../index";
import * as Schematic from "../../../../api/index";
import * as core from "../../../../core";

export const CountPlansRequestPlanType: core.serialization.Schema<
serializers.CountPlansRequestPlanType.Raw,
Schematic.CountPlansRequestPlanType
> = core.serialization.enum_(["plan", "add_on"]);

export declare namespace CountPlansRequestPlanType {
type Raw = "plan" | "add_on";
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

import * as serializers from "../../../index";
import * as Schematic from "../../../../api/index";
import * as core from "../../../../core";

export const CountPlansResponseParamsPlanType: core.serialization.Schema<
serializers.CountPlansResponseParamsPlanType.Raw,
Schematic.CountPlansResponseParamsPlanType
> = core.serialization.enum_(["plan", "add_on"]);

export declare namespace CountPlansResponseParamsPlanType {
type Raw = "plan" | "add_on";
}
3 changes: 3 additions & 0 deletions src/serialization/resources/plans/types/ListPlansParams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import * as serializers from "../../../index";
import * as Schematic from "../../../../api/index";
import * as core from "../../../../core";
import { ListPlansResponseParamsPlanType } from "./ListPlansResponseParamsPlanType";

export const ListPlansParams: core.serialization.ObjectSchema<
serializers.ListPlansParams.Raw,
Expand All @@ -14,6 +15,7 @@ export const ListPlansParams: core.serialization.ObjectSchema<
ids: core.serialization.list(core.serialization.string()).optional(),
limit: core.serialization.number().optional(),
offset: core.serialization.number().optional(),
planType: core.serialization.property("plan_type", ListPlansResponseParamsPlanType.optional()),
q: core.serialization.string().optional(),
withoutEntitlementFor: core.serialization.property(
"without_entitlement_for",
Expand All @@ -27,6 +29,7 @@ export declare namespace ListPlansParams {
ids?: string[] | null;
limit?: number | null;
offset?: number | null;
plan_type?: ListPlansResponseParamsPlanType.Raw | null;
q?: string | null;
without_entitlement_for?: string | null;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

import * as serializers from "../../../index";
import * as Schematic from "../../../../api/index";
import * as core from "../../../../core";

export const ListPlansRequestPlanType: core.serialization.Schema<
serializers.ListPlansRequestPlanType.Raw,
Schematic.ListPlansRequestPlanType
> = core.serialization.enum_(["plan", "add_on"]);

export declare namespace ListPlansRequestPlanType {
type Raw = "plan" | "add_on";
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/

import * as serializers from "../../../index";
import * as Schematic from "../../../../api/index";
import * as core from "../../../../core";

export const ListPlansResponseParamsPlanType: core.serialization.Schema<
serializers.ListPlansResponseParamsPlanType.Raw,
Schematic.ListPlansResponseParamsPlanType
> = core.serialization.enum_(["plan", "add_on"]);

export declare namespace ListPlansResponseParamsPlanType {
type Raw = "plan" | "add_on";
}
4 changes: 4 additions & 0 deletions src/serialization/resources/plans/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
export * from "./GetAudienceResponse";
export * from "./UpdateAudienceResponse";
export * from "./DeleteAudienceResponse";
export * from "./ListPlansRequestPlanType";
export * from "./ListPlansResponseParamsPlanType";
export * from "./ListPlansParams";
export * from "./ListPlansResponse";
export * from "./CreatePlanRequestBodyPlanType";
Expand All @@ -9,5 +11,7 @@ export * from "./GetPlanResponse";
export * from "./UpdatePlanResponse";
export * from "./DeletePlanResponse";
export * from "./UpsertBillingProductPlanResponse";
export * from "./CountPlansRequestPlanType";
export * from "./CountPlansResponseParamsPlanType";
export * from "./CountPlansParams";
export * from "./CountPlansResponse";
4 changes: 2 additions & 2 deletions src/serialization/types/ComponentResponseData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const ComponentResponseData: core.serialization.ObjectSchema<
serializers.ComponentResponseData.Raw,
Schematic.ComponentResponseData
> = core.serialization.object({
ast: core.serialization.list(core.serialization.number()),
ast: core.serialization.record(core.serialization.string(), core.serialization.number()).optional(),
createdAt: core.serialization.property("created_at", core.serialization.date()),
id: core.serialization.string(),
name: core.serialization.string(),
Expand All @@ -21,7 +21,7 @@ export const ComponentResponseData: core.serialization.ObjectSchema<

export declare namespace ComponentResponseData {
interface Raw {
ast: number[];
ast?: Record<string, number> | null;
created_at: string;
id: string;
name: string;
Expand Down

0 comments on commit 9813b60

Please sign in to comment.