Skip to content
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
3 changes: 2 additions & 1 deletion browser_tests/fixtures/apiKeyAuthFixture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ export const apiKeyAuthFixture = base.extend<{
occupied_seats: 1,
subscription_status: 'active',
subscription_tier: 'TEAM',
team_credit_stop: null
team_credit_stop: null,
scheduled_change: null
} satisfies BillingStatusResponse)
)
await page.route('**/api/billing/balance', (route) =>
Expand Down
5 changes: 4 additions & 1 deletion browser_tests/fixtures/data/cloudWorkspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ export const LEGACY_PERSONAL_BILLING_STATUS = {
occupied_seats: 1,
subscription_status: 'ended',
subscription_tier: 'FREE',
team_credit_stop: null
team_credit_stop: null,
scheduled_change: null
} satisfies IngestBillingStatusResponse

export const EMPTY_BILLING_BALANCE = {
Expand Down Expand Up @@ -107,6 +108,7 @@ export const TEAM_BILLING_STATUS = {
has_funds: true,
renewal_date: '2099-02-20T00:00:00Z',
team_credit_stop: null,
scheduled_change: null,
max_seats: 30,
occupied_seats: DEFAULT_TEAM_MEMBERS.length
} satisfies IngestBillingStatusResponse
Expand All @@ -121,6 +123,7 @@ export const ENDED_STANDARD_BILLING_STATUS = {
subscription_status: 'ended',
subscription_tier: 'STANDARD',
team_credit_stop: null,
scheduled_change: null,
max_seats: 1,
occupied_seats: 1
} satisfies IngestBillingStatusResponse & { billing_rail: 'stripe' }
Expand Down
1 change: 1 addition & 0 deletions browser_tests/fixtures/data/subscriptionFixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export function createSubscriptionStatus(
max_seats: 0,
occupied_seats: 0,
team_credit_stop: null,
scheduled_change: null,
...overrides
}
}
Expand Down
3 changes: 2 additions & 1 deletion browser_tests/fixtures/utils/cloudBillingMocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ export async function mockBilling(
billing_status: 'paid',
max_seats: 1,
occupied_seats: 1,
team_credit_stop: null
team_credit_stop: null,
scheduled_change: null
},
billingCapabilities = createBillingCapabilities(workspaceId),
billingCapabilitiesStatus
Expand Down
1 change: 1 addition & 0 deletions browser_tests/tests/billingFacadeConsumers.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ async function mockCloudBoot(
max_seats: 0,
occupied_seats: 0,
team_credit_stop: null,
scheduled_change: null,
...subscriptionStatus,
...(billingRail === undefined ? {} : { billing_rail: billingRail })
}
Expand Down
1 change: 1 addition & 0 deletions browser_tests/tests/currentUserPopoverCredits.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ const mockBillingStatus: BillingStatusResponse = {
max_seats: 1,
occupied_seats: 1,
team_credit_stop: null,
scheduled_change: null,
subscription_status: 'canceled',
subscription_tier: 'PRO',
subscription_duration: 'MONTHLY',
Expand Down
1 change: 1 addition & 0 deletions browser_tests/tests/dialogs/checkoutRecovery.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ const LEGACY_ACTIVE_STANDARD_STATUS = {
has_funds: true,
renewal_date: '2099-02-20T00:00:00Z',
team_credit_stop: null,
scheduled_change: null,
max_seats: 1,
occupied_seats: 1,
billing_rail: 'legacy_stripe'
Expand Down
3 changes: 3 additions & 0 deletions browser_tests/tests/dialogs/creditsTile.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ const mockBillingStatus: BillingStatusResponse = {
max_seats: 1,
occupied_seats: 1,
team_credit_stop: null,
scheduled_change: null,
subscription_tier: 'PRO',
subscription_duration: 'MONTHLY',
renewal_date: '2099-02-20T12:00:00Z',
Expand All @@ -76,6 +77,7 @@ const freeBillingStatus: BillingStatusResponse = {
max_seats: 1,
occupied_seats: 1,
team_credit_stop: null,
scheduled_change: null,
subscription_tier: 'FREE',
has_funds: true
}
Expand All @@ -85,6 +87,7 @@ const endedPersonalBillingStatus: BillingStatusResponse = {
max_seats: 1,
occupied_seats: 1,
team_credit_stop: null,
scheduled_change: null,
subscription_status: 'ended',
subscription_tier: 'PRO',
subscription_duration: 'MONTHLY',
Expand Down
2 changes: 2 additions & 0 deletions browser_tests/tests/dialogs/pricingTableDeepLink.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ const ACTIVE_TEAM_STATUS = {
credits_monthly: 147_700,
stop_usd: 700
},
scheduled_change: null,
max_seats: 5,
occupied_seats: 1
} satisfies BillingStatusResponse
Expand All @@ -111,6 +112,7 @@ const ACTIVE_STANDARD_STATUS = {
has_funds: true,
renewal_date: '2099-02-20T00:00:00Z',
team_credit_stop: null,
scheduled_change: null,
max_seats: 1,
occupied_seats: 1
} satisfies BillingStatusResponse
Expand Down
2 changes: 2 additions & 0 deletions browser_tests/tests/gettingStartedTour.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ const ACTIVE_SUBSCRIPTION: BillingStatusResponse = {
max_seats: 1,
occupied_seats: 1,
team_credit_stop: null,
scheduled_change: null,
subscription_tier: 'PRO',
subscription_duration: 'MONTHLY',
renewal_date: '2099-01-01',
Expand All @@ -63,6 +64,7 @@ const INACTIVE_SUBSCRIPTION: BillingStatusResponse = {
max_seats: 1,
occupied_seats: 1,
team_credit_stop: null,
scheduled_change: null,
subscription_tier: 'FREE',
subscription_duration: 'MONTHLY',
has_funds: false
Expand Down
7 changes: 7 additions & 0 deletions packages/ingest-types/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,13 @@ export type {
AgentListThreadsErrors,
AgentListThreadsResponse,
AgentListThreadsResponses,
AgentLlmMessagesData,
AgentLlmMessagesError,
AgentLlmMessagesErrors,
AgentLlmMessagesResponse,
AgentLlmMessagesResponses,
AgentMessage,
AgentPendingAsk,
AgentPostMessageData,
AgentPostMessageError,
AgentPostMessageErrors,
Expand Down Expand Up @@ -956,6 +962,7 @@ export type {
RevokeWorkspaceInviteResponse,
RevokeWorkspaceInviteResponses,
SavedPaymentMethod,
ScheduledPlanChange,
SecretListResponse,
SecretProvider,
SecretProvidersResponse,
Expand Down
158 changes: 157 additions & 1 deletion packages/ingest-types/src/types.gen.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading