Skip to content

Commit

Permalink
chore(graphql): generate types
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenlago99 committed Jan 22, 2025
1 parent 63f777a commit 18e215f
Showing 1 changed file with 30 additions and 36 deletions.
66 changes: 30 additions & 36 deletions src/generated/graphql.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1158,6 +1158,7 @@ export type CreateCreditNoteInput = {

/** Create Customer input arguments */
export type CreateCustomerInput = {
accountType?: InputMaybe<CustomerAccountTypeEnum>;
addressLine1?: InputMaybe<Scalars['String']['input']>;
addressLine2?: InputMaybe<Scalars['String']['input']>;
billingConfiguration?: InputMaybe<CustomerBillingConfigurationInput>;
Expand Down Expand Up @@ -1906,6 +1907,7 @@ export type CurrentVersion = {

export type Customer = {
__typename?: 'Customer';
accountType: CustomerAccountTypeEnum;
/** Number of active subscriptions per customer */
activeSubscriptionsCount: Scalars['Int']['output'];
addressLine1?: Maybe<Scalars['String']['output']>;
Expand Down Expand Up @@ -1988,6 +1990,11 @@ export type CustomerSubscriptionsArgs = {
status?: InputMaybe<Array<StatusTypeEnum>>;
};

export enum CustomerAccountTypeEnum {
Customer = 'customer',
Partner = 'partner'
}

export type CustomerAddress = {
__typename?: 'CustomerAddress';
addressLine1?: Maybe<Scalars['String']['output']>;
Expand Down Expand Up @@ -2888,6 +2895,7 @@ export enum IntegrationTypeEnum {
Okta = 'okta',
ProgressiveBilling = 'progressive_billing',
RevenueAnalytics = 'revenue_analytics',
RevenueShare = 'revenue_share',
Salesforce = 'salesforce',
Xero = 'xero'
}
Expand Down Expand Up @@ -2958,6 +2966,7 @@ export type Invoice = {
prepaidCreditAmountCents: Scalars['BigInt']['output'];
progressiveBillingCreditAmountCents: Scalars['BigInt']['output'];
refundableAmountCents: Scalars['BigInt']['output'];
selfBilled: Scalars['Boolean']['output'];
sequentialId: Scalars['ID']['output'];
status: InvoiceStatusTypeEnum;
subTotalExcludingTaxesAmountCents: Scalars['BigInt']['output'];
Expand Down Expand Up @@ -4453,6 +4462,7 @@ export enum PremiumIntegrationTypeEnum {
Okta = 'okta',
ProgressiveBilling = 'progressive_billing',
RevenueAnalytics = 'revenue_analytics',
RevenueShare = 'revenue_share',
Salesforce = 'salesforce',
Xero = 'xero'
}
Expand Down Expand Up @@ -5868,6 +5878,7 @@ export type UpdateCreditNoteInput = {

/** Update Customer input arguments */
export type UpdateCustomerInput = {
accountType?: InputMaybe<CustomerAccountTypeEnum>;
addressLine1?: InputMaybe<Scalars['String']['input']>;
addressLine2?: InputMaybe<Scalars['String']['input']>;
applicableInvoiceCustomSectionIds?: InputMaybe<Array<Scalars['ID']['input']>>;
Expand Down Expand Up @@ -6934,11 +6945,7 @@ export type GetCustomerSubscriptionForListQueryVariables = Exact<{
}>;


export type GetCustomerSubscriptionForListQuery = { __typename?: 'Query', customer?: { __typename?: 'Customer', id: string, subscriptions: Array<{ __typename?: 'Subscription', id: string, status?: StatusTypeEnum | null, startedAt?: any | null, nextPendingStartDate?: any | null, name?: string | null, nextName?: string | null, externalId: string, subscriptionAt?: any | null, endingAt?: any | null, plan: { __typename?: 'Plan', id: string, amountCurrency: CurrencyEnum, name: string, interval: PlanInterval, code: string }, nextPlan?: { __typename?: 'Plan', id: string, name: string, code: string } | null, nextSubscription?: { __typename?: 'Subscription', id: string } | null }> } | null };

export type SubscriptionItemFragment = { __typename?: 'Subscription', id: string, status?: StatusTypeEnum | null, startedAt?: any | null, nextPendingStartDate?: any | null, name?: string | null, nextName?: string | null, externalId: string, subscriptionAt?: any | null, endingAt?: any | null, plan: { __typename?: 'Plan', id: string, name: string, code: string }, nextPlan?: { __typename?: 'Plan', id: string, name: string, code: string } | null, nextSubscription?: { __typename?: 'Subscription', id: string } | null };

export type SubscriptionLinePlanFragment = { __typename?: 'Plan', id: string, name: string, code: string };
export type GetCustomerSubscriptionForListQuery = { __typename?: 'Query', customer?: { __typename?: 'Customer', id: string, subscriptions: Array<{ __typename?: 'Subscription', id: string, status?: StatusTypeEnum | null, startedAt?: any | null, nextPendingStartDate?: any | null, name?: string | null, nextName?: string | null, externalId: string, subscriptionAt?: any | null, endingAt?: any | null, plan: { __typename?: 'Plan', id: string, amountCurrency: CurrencyEnum, name: string, interval: PlanInterval }, nextPlan?: { __typename?: 'Plan', id: string, name: string, code: string, interval: PlanInterval } | null, nextSubscription?: { __typename?: 'Subscription', id: string } | null }> } | null };

export type TerminateCustomerSubscriptionMutationVariables = Exact<{
input: TerminateSubscriptionInput;
Expand Down Expand Up @@ -9741,35 +9748,6 @@ export const CustomerAppliedCouponsFragmentDoc = gql`
}
}
${CustomerCouponFragmentDoc}`;
export const SubscriptionLinePlanFragmentDoc = gql`
fragment SubscriptionLinePlan on Plan {
id
name
code
}
`;
export const SubscriptionItemFragmentDoc = gql`
fragment SubscriptionItem on Subscription {
id
status
startedAt
nextPendingStartDate
name
nextName
externalId
subscriptionAt
endingAt
plan {
...SubscriptionLinePlan
}
nextPlan {
...SubscriptionLinePlan
}
nextSubscription {
id
}
}
${SubscriptionLinePlanFragmentDoc}`;
export const CustomerUsageForUsageDetailsFragmentDoc = gql`
fragment CustomerUsageForUsageDetails on CustomerUsage {
fromDatetime
Expand Down Expand Up @@ -15062,17 +15040,33 @@ export const GetCustomerSubscriptionForListDocument = gql`
id
subscriptions(status: [active, pending]) {
id
status
startedAt
nextPendingStartDate
name
nextName
externalId
subscriptionAt
endingAt
plan {
id
amountCurrency
name
interval
}
...SubscriptionItem
nextPlan {
id
name
code
interval
}
nextSubscription {
id
}
}
}
}
${SubscriptionItemFragmentDoc}`;
`;

/**
* __useGetCustomerSubscriptionForListQuery__
Expand Down

0 comments on commit 18e215f

Please sign in to comment.