@burdenoff/microfe-billing 2026.601.6 → 2026.604.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/billing/modules/checkout/components/WorkspaceQuotaAssignmentModal.js +165 -0
- package/dist/billing/modules/checkout/components/WorkspaceQuotaAssignmentModal.js.map +1 -0
- package/dist/billing/modules/checkout/components/index.js +1 -0
- package/dist/billing/modules/checkout/index.js +1 -0
- package/dist/billing/modules/checkout/pages/CheckoutPage.js +621 -593
- package/dist/billing/modules/checkout/pages/CheckoutPage.js.map +1 -1
- package/dist/billing/modules/plans/pages/PlansBrowsePage.js +1 -1
- package/dist/billing/modules/plans/pages/PlansBrowsePage.js.map +1 -1
- package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.js +261 -200
- package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.js.map +1 -1
- package/dist/billing/modules/usage/hooks/useUsage.js +136 -54
- package/dist/billing/modules/usage/hooks/useUsage.js.map +1 -1
- package/dist/billing/modules/usage/pages/UsagePage.js +767 -531
- package/dist/billing/modules/usage/pages/UsagePage.js.map +1 -1
- package/dist/billing/shared/types/graphql.js.map +1 -1
- package/dist/generated/global-operations.js +1 -0
- package/dist/generated/global-operations.js.map +1 -1
- package/dist/generated/global-types.js.map +1 -1
- package/dist/generated/wspace-operations.js +79 -1
- package/dist/generated/wspace-operations.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,31 @@
|
|
|
1
1
|
import * as e from "@apollo/client/react";
|
|
2
2
|
import { gql as t } from "@apollo/client";
|
|
3
3
|
//#region src/generated/wspace-operations.ts
|
|
4
|
-
var n = {}
|
|
4
|
+
var n = {};
|
|
5
|
+
t`
|
|
6
|
+
mutation AssignWorkspaceQuota($input: AssignWorkspaceQuotaInput!) {
|
|
7
|
+
assignWorkspaceQuota(input: $input) {
|
|
8
|
+
id
|
|
9
|
+
workspaceId
|
|
10
|
+
quotaName
|
|
11
|
+
productId
|
|
12
|
+
quotaMode
|
|
13
|
+
billingAccountId
|
|
14
|
+
subscriptionId
|
|
15
|
+
limit
|
|
16
|
+
used
|
|
17
|
+
noLimit
|
|
18
|
+
resetPeriod
|
|
19
|
+
isActive
|
|
20
|
+
createdAt
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
`, t`
|
|
24
|
+
mutation UnassignWorkspaceQuota($id: ID!, $workspaceId: ID!) {
|
|
25
|
+
unassignWorkspaceQuota(id: $id, workspaceId: $workspaceId)
|
|
26
|
+
}
|
|
27
|
+
`;
|
|
28
|
+
var r = t`
|
|
5
29
|
query GetUsageRecords($filters: UsageFilters!, $pagination: UsageRecordPaginationInput) {
|
|
6
30
|
getUsageRecords(filters: $filters, pagination: $pagination) {
|
|
7
31
|
items {
|
|
@@ -29,6 +53,60 @@ function i(t) {
|
|
|
29
53
|
};
|
|
30
54
|
return e.useQuery(r, i);
|
|
31
55
|
}
|
|
56
|
+
t`
|
|
57
|
+
query GetWorkspaceQuotaAssignments($workspaceId: ID!) {
|
|
58
|
+
workspaceQuotaAssignments(workspaceId: $workspaceId) {
|
|
59
|
+
id
|
|
60
|
+
workspaceId
|
|
61
|
+
quotaName
|
|
62
|
+
productId
|
|
63
|
+
quotaMode
|
|
64
|
+
billingAccountId
|
|
65
|
+
subscriptionId
|
|
66
|
+
limit
|
|
67
|
+
used
|
|
68
|
+
noLimit
|
|
69
|
+
resetPeriod
|
|
70
|
+
lastResetAt
|
|
71
|
+
isActive
|
|
72
|
+
createdAt
|
|
73
|
+
updatedAt
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
`, t`
|
|
77
|
+
query GetWorkspaceQuotaOverview($workspaceId: ID!) {
|
|
78
|
+
workspaceQuotaOverview(workspaceId: $workspaceId) {
|
|
79
|
+
assignment {
|
|
80
|
+
id
|
|
81
|
+
workspaceId
|
|
82
|
+
quotaName
|
|
83
|
+
productId
|
|
84
|
+
quotaMode
|
|
85
|
+
billingAccountId
|
|
86
|
+
subscriptionId
|
|
87
|
+
limit
|
|
88
|
+
used
|
|
89
|
+
noLimit
|
|
90
|
+
resetPeriod
|
|
91
|
+
lastResetAt
|
|
92
|
+
isActive
|
|
93
|
+
createdAt
|
|
94
|
+
}
|
|
95
|
+
liveStatus {
|
|
96
|
+
workspaceId
|
|
97
|
+
quotaName
|
|
98
|
+
productId
|
|
99
|
+
currentValue
|
|
100
|
+
limit
|
|
101
|
+
noLimit
|
|
102
|
+
scrapedAt
|
|
103
|
+
}
|
|
104
|
+
effectiveUsed
|
|
105
|
+
remaining
|
|
106
|
+
usagePercentage
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
`;
|
|
32
110
|
//#endregion
|
|
33
111
|
export { i as useGetUsageRecordsQuery };
|
|
34
112
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wspace-operations.js","names":[],"sources":["../../src/generated/wspace-operations.ts"],"sourcesContent":["// @ts-nocheck\nimport * as Types from './wspace-types';\n\nimport { gql } from '@apollo/client';\nimport * as Apollo from '@apollo/client';\nimport * as ApolloReactHooks from '@apollo/client/react';\nconst defaultOptions = {} as const;\nexport type GetUsageRecordsQueryVariables = Types.Exact<{\n filters: Types.UsageFilters;\n pagination?: Types.InputMaybe<Types.UsageRecordPaginationInput>;\n}>;\n\n\nexport type GetUsageRecordsQuery = { __typename?: 'Query', getUsageRecords: { __typename?: 'UsageRecordsPage', hasNextPage: boolean, nextCursor?: string | null, items: Array<{ __typename?: 'UsageRecord', id: string, quotaAssignmentId: string, quotaName: string, productId: string, amount: number, description: string, workspaceId?: string | null, userId?: string | null, metadata?: Record<string, unknown> | null, createdAt: string, createdBy: string }> } };\n\n\nexport const GetUsageRecordsDocument = gql`\n query GetUsageRecords($filters: UsageFilters!, $pagination: UsageRecordPaginationInput) {\n getUsageRecords(filters: $filters, pagination: $pagination) {\n items {\n id\n quotaAssignmentId\n quotaName\n productId\n amount\n description\n workspaceId\n userId\n metadata\n createdAt\n createdBy\n }\n hasNextPage\n nextCursor\n }\n}\n `;\n\n/**\n * __useGetUsageRecordsQuery__\n *\n * To run a query within a React component, call `useGetUsageRecordsQuery` and pass it any options that fit your needs.\n * When your component renders, `useGetUsageRecordsQuery` returns an object from Apollo Client that contains loading, error, and data properties\n * you can use to render your UI.\n *\n * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;\n *\n * @example\n * const { data, loading, error } = useGetUsageRecordsQuery({\n * variables: {\n * filters: // value for 'filters'\n * pagination: // value for 'pagination'\n * },\n * });\n */\nexport function useGetUsageRecordsQuery(baseOptions: ApolloReactHooks.QueryHookOptions<Types.GetUsageRecordsQuery, Types.GetUsageRecordsQueryVariables> & ({ variables: Types.GetUsageRecordsQueryVariables; skip?: boolean; } | { skip: boolean; }) ) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useQuery<Types.GetUsageRecordsQuery, Types.GetUsageRecordsQueryVariables>(GetUsageRecordsDocument, options);\n }\nexport function useGetUsageRecordsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.GetUsageRecordsQuery, Types.GetUsageRecordsQueryVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useLazyQuery<Types.GetUsageRecordsQuery, Types.GetUsageRecordsQueryVariables>(GetUsageRecordsDocument, options);\n }\n// @ts-ignore\nexport function useGetUsageRecordsSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.GetUsageRecordsQuery, Types.GetUsageRecordsQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetUsageRecordsQuery, Types.GetUsageRecordsQueryVariables>;\nexport function useGetUsageRecordsSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetUsageRecordsQuery, Types.GetUsageRecordsQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetUsageRecordsQuery | undefined, Types.GetUsageRecordsQueryVariables>;\nexport function useGetUsageRecordsSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetUsageRecordsQuery, Types.GetUsageRecordsQueryVariables>) {\n const options = baseOptions === ApolloReactHooks.skipToken ? baseOptions : {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useSuspenseQuery<Types.GetUsageRecordsQuery, Types.GetUsageRecordsQueryVariables>(GetUsageRecordsDocument, options);\n }\nexport type GetUsageRecordsQueryHookResult = ReturnType<typeof useGetUsageRecordsQuery>;\nexport type GetUsageRecordsLazyQueryHookResult = ReturnType<typeof useGetUsageRecordsLazyQuery>;\nexport type GetUsageRecordsSuspenseQueryHookResult = ReturnType<typeof useGetUsageRecordsSuspenseQuery>;\nexport type GetUsageRecordsQueryResult = Apollo.QueryResult<Types.GetUsageRecordsQuery, Types.GetUsageRecordsQueryVariables>;"],"mappings":";;;AAMA,IAAM,IAAiB,EAAE,EAUZ,IAA0B,CAAG;;;;;;;;;;;;;;;;;;;;;AAuC1C,SAAgB,EAAwB,GAA+M;CAC/O,IAAM,IAAU;EAAC,GAAG;EAAgB,GAAG;EAAY;AACnD,QAAO,EAAiB,SAA0E,GAAyB,EAAQ"}
|
|
1
|
+
{"version":3,"file":"wspace-operations.js","names":[],"sources":["../../src/generated/wspace-operations.ts"],"sourcesContent":["// @ts-nocheck\nimport * as Types from './wspace-types';\n\nimport { gql } from '@apollo/client';\nimport * as Apollo from '@apollo/client';\nimport * as ApolloReactHooks from '@apollo/client/react';\nconst defaultOptions = {} as const;\nexport type AssignWorkspaceQuotaMutationVariables = Types.Exact<{\n input: Types.AssignWorkspaceQuotaInput;\n}>;\n\n\nexport type AssignWorkspaceQuotaMutation = { __typename?: 'Mutation', assignWorkspaceQuota: { __typename?: 'WorkspaceQuotaAssignment', id: string, workspaceId: string, quotaName: string, productId: string, quotaMode: Types.WorkspaceQuotaMode, billingAccountId?: string | null, subscriptionId?: string | null, limit?: number | null, used: number, noLimit: boolean, resetPeriod: string, isActive: boolean, createdAt: string } };\n\nexport type UnassignWorkspaceQuotaMutationVariables = Types.Exact<{\n id: Types.Scalars['ID']['input'];\n workspaceId: Types.Scalars['ID']['input'];\n}>;\n\n\nexport type UnassignWorkspaceQuotaMutation = { __typename?: 'Mutation', unassignWorkspaceQuota: boolean };\n\nexport type GetUsageRecordsQueryVariables = Types.Exact<{\n filters: Types.UsageFilters;\n pagination?: Types.InputMaybe<Types.UsageRecordPaginationInput>;\n}>;\n\n\nexport type GetUsageRecordsQuery = { __typename?: 'Query', getUsageRecords: { __typename?: 'UsageRecordsPage', hasNextPage: boolean, nextCursor?: string | null, items: Array<{ __typename?: 'UsageRecord', id: string, quotaAssignmentId: string, quotaName: string, productId: string, amount: number, description: string, workspaceId?: string | null, userId?: string | null, metadata?: Record<string, unknown> | null, createdAt: string, createdBy: string }> } };\n\nexport type GetWorkspaceQuotaAssignmentsQueryVariables = Types.Exact<{\n workspaceId: Types.Scalars['ID']['input'];\n}>;\n\n\nexport type GetWorkspaceQuotaAssignmentsQuery = { __typename?: 'Query', workspaceQuotaAssignments: Array<{ __typename?: 'WorkspaceQuotaAssignment', id: string, workspaceId: string, quotaName: string, productId: string, quotaMode: Types.WorkspaceQuotaMode, billingAccountId?: string | null, subscriptionId?: string | null, limit?: number | null, used: number, noLimit: boolean, resetPeriod: string, lastResetAt?: string | null, isActive: boolean, createdAt: string, updatedAt: string }> };\n\nexport type GetWorkspaceQuotaOverviewQueryVariables = Types.Exact<{\n workspaceId: Types.Scalars['ID']['input'];\n}>;\n\n\nexport type GetWorkspaceQuotaOverviewQuery = { __typename?: 'Query', workspaceQuotaOverview: Array<{ __typename?: 'WorkspaceQuotaOverview', effectiveUsed: number, remaining?: number | null, usagePercentage: number, assignment: { __typename?: 'WorkspaceQuotaAssignment', id: string, workspaceId: string, quotaName: string, productId: string, quotaMode: Types.WorkspaceQuotaMode, billingAccountId?: string | null, subscriptionId?: string | null, limit?: number | null, used: number, noLimit: boolean, resetPeriod: string, lastResetAt?: string | null, isActive: boolean, createdAt: string }, liveStatus?: { __typename?: 'WorkspaceQuotaStatus', workspaceId: string, quotaName: string, productId: string, currentValue: number, limit?: number | null, noLimit: boolean, scrapedAt: string } | null }> };\n\n\nexport const AssignWorkspaceQuotaDocument = gql`\n mutation AssignWorkspaceQuota($input: AssignWorkspaceQuotaInput!) {\n assignWorkspaceQuota(input: $input) {\n id\n workspaceId\n quotaName\n productId\n quotaMode\n billingAccountId\n subscriptionId\n limit\n used\n noLimit\n resetPeriod\n isActive\n createdAt\n }\n}\n `;\nexport type AssignWorkspaceQuotaMutationFn = Apollo.MutationFunction<Types.AssignWorkspaceQuotaMutation, Types.AssignWorkspaceQuotaMutationVariables>;\n\n/**\n * __useAssignWorkspaceQuotaMutation__\n *\n * To run a mutation, you first call `useAssignWorkspaceQuotaMutation` within a React component and pass it any options that fit your needs.\n * When your component renders, `useAssignWorkspaceQuotaMutation` returns a tuple that includes:\n * - A mutate function that you can call at any time to execute the mutation\n * - An object with fields that represent the current status of the mutation's execution\n *\n * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;\n *\n * @example\n * const [assignWorkspaceQuotaMutation, { data, loading, error }] = useAssignWorkspaceQuotaMutation({\n * variables: {\n * input: // value for 'input'\n * },\n * });\n */\nexport function useAssignWorkspaceQuotaMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.AssignWorkspaceQuotaMutation, Types.AssignWorkspaceQuotaMutationVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useMutation<Types.AssignWorkspaceQuotaMutation, Types.AssignWorkspaceQuotaMutationVariables>(AssignWorkspaceQuotaDocument, options);\n }\nexport type AssignWorkspaceQuotaMutationHookResult = ReturnType<typeof useAssignWorkspaceQuotaMutation>;\nexport type AssignWorkspaceQuotaMutationResult = Apollo.MutationResult<Types.AssignWorkspaceQuotaMutation>;\nexport type AssignWorkspaceQuotaMutationOptions = Apollo.BaseMutationOptions<Types.AssignWorkspaceQuotaMutation, Types.AssignWorkspaceQuotaMutationVariables>;\nexport const UnassignWorkspaceQuotaDocument = gql`\n mutation UnassignWorkspaceQuota($id: ID!, $workspaceId: ID!) {\n unassignWorkspaceQuota(id: $id, workspaceId: $workspaceId)\n}\n `;\nexport type UnassignWorkspaceQuotaMutationFn = Apollo.MutationFunction<Types.UnassignWorkspaceQuotaMutation, Types.UnassignWorkspaceQuotaMutationVariables>;\n\n/**\n * __useUnassignWorkspaceQuotaMutation__\n *\n * To run a mutation, you first call `useUnassignWorkspaceQuotaMutation` within a React component and pass it any options that fit your needs.\n * When your component renders, `useUnassignWorkspaceQuotaMutation` returns a tuple that includes:\n * - A mutate function that you can call at any time to execute the mutation\n * - An object with fields that represent the current status of the mutation's execution\n *\n * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;\n *\n * @example\n * const [unassignWorkspaceQuotaMutation, { data, loading, error }] = useUnassignWorkspaceQuotaMutation({\n * variables: {\n * id: // value for 'id'\n * workspaceId: // value for 'workspaceId'\n * },\n * });\n */\nexport function useUnassignWorkspaceQuotaMutation(baseOptions?: ApolloReactHooks.MutationHookOptions<Types.UnassignWorkspaceQuotaMutation, Types.UnassignWorkspaceQuotaMutationVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useMutation<Types.UnassignWorkspaceQuotaMutation, Types.UnassignWorkspaceQuotaMutationVariables>(UnassignWorkspaceQuotaDocument, options);\n }\nexport type UnassignWorkspaceQuotaMutationHookResult = ReturnType<typeof useUnassignWorkspaceQuotaMutation>;\nexport type UnassignWorkspaceQuotaMutationResult = Apollo.MutationResult<Types.UnassignWorkspaceQuotaMutation>;\nexport type UnassignWorkspaceQuotaMutationOptions = Apollo.BaseMutationOptions<Types.UnassignWorkspaceQuotaMutation, Types.UnassignWorkspaceQuotaMutationVariables>;\nexport const GetUsageRecordsDocument = gql`\n query GetUsageRecords($filters: UsageFilters!, $pagination: UsageRecordPaginationInput) {\n getUsageRecords(filters: $filters, pagination: $pagination) {\n items {\n id\n quotaAssignmentId\n quotaName\n productId\n amount\n description\n workspaceId\n userId\n metadata\n createdAt\n createdBy\n }\n hasNextPage\n nextCursor\n }\n}\n `;\n\n/**\n * __useGetUsageRecordsQuery__\n *\n * To run a query within a React component, call `useGetUsageRecordsQuery` and pass it any options that fit your needs.\n * When your component renders, `useGetUsageRecordsQuery` returns an object from Apollo Client that contains loading, error, and data properties\n * you can use to render your UI.\n *\n * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;\n *\n * @example\n * const { data, loading, error } = useGetUsageRecordsQuery({\n * variables: {\n * filters: // value for 'filters'\n * pagination: // value for 'pagination'\n * },\n * });\n */\nexport function useGetUsageRecordsQuery(baseOptions: ApolloReactHooks.QueryHookOptions<Types.GetUsageRecordsQuery, Types.GetUsageRecordsQueryVariables> & ({ variables: Types.GetUsageRecordsQueryVariables; skip?: boolean; } | { skip: boolean; }) ) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useQuery<Types.GetUsageRecordsQuery, Types.GetUsageRecordsQueryVariables>(GetUsageRecordsDocument, options);\n }\nexport function useGetUsageRecordsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.GetUsageRecordsQuery, Types.GetUsageRecordsQueryVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useLazyQuery<Types.GetUsageRecordsQuery, Types.GetUsageRecordsQueryVariables>(GetUsageRecordsDocument, options);\n }\n// @ts-ignore\nexport function useGetUsageRecordsSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.GetUsageRecordsQuery, Types.GetUsageRecordsQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetUsageRecordsQuery, Types.GetUsageRecordsQueryVariables>;\nexport function useGetUsageRecordsSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetUsageRecordsQuery, Types.GetUsageRecordsQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetUsageRecordsQuery | undefined, Types.GetUsageRecordsQueryVariables>;\nexport function useGetUsageRecordsSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetUsageRecordsQuery, Types.GetUsageRecordsQueryVariables>) {\n const options = baseOptions === ApolloReactHooks.skipToken ? baseOptions : {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useSuspenseQuery<Types.GetUsageRecordsQuery, Types.GetUsageRecordsQueryVariables>(GetUsageRecordsDocument, options);\n }\nexport type GetUsageRecordsQueryHookResult = ReturnType<typeof useGetUsageRecordsQuery>;\nexport type GetUsageRecordsLazyQueryHookResult = ReturnType<typeof useGetUsageRecordsLazyQuery>;\nexport type GetUsageRecordsSuspenseQueryHookResult = ReturnType<typeof useGetUsageRecordsSuspenseQuery>;\nexport type GetUsageRecordsQueryResult = Apollo.QueryResult<Types.GetUsageRecordsQuery, Types.GetUsageRecordsQueryVariables>;\nexport const GetWorkspaceQuotaAssignmentsDocument = gql`\n query GetWorkspaceQuotaAssignments($workspaceId: ID!) {\n workspaceQuotaAssignments(workspaceId: $workspaceId) {\n id\n workspaceId\n quotaName\n productId\n quotaMode\n billingAccountId\n subscriptionId\n limit\n used\n noLimit\n resetPeriod\n lastResetAt\n isActive\n createdAt\n updatedAt\n }\n}\n `;\n\n/**\n * __useGetWorkspaceQuotaAssignmentsQuery__\n *\n * To run a query within a React component, call `useGetWorkspaceQuotaAssignmentsQuery` and pass it any options that fit your needs.\n * When your component renders, `useGetWorkspaceQuotaAssignmentsQuery` returns an object from Apollo Client that contains loading, error, and data properties\n * you can use to render your UI.\n *\n * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;\n *\n * @example\n * const { data, loading, error } = useGetWorkspaceQuotaAssignmentsQuery({\n * variables: {\n * workspaceId: // value for 'workspaceId'\n * },\n * });\n */\nexport function useGetWorkspaceQuotaAssignmentsQuery(baseOptions: ApolloReactHooks.QueryHookOptions<Types.GetWorkspaceQuotaAssignmentsQuery, Types.GetWorkspaceQuotaAssignmentsQueryVariables> & ({ variables: Types.GetWorkspaceQuotaAssignmentsQueryVariables; skip?: boolean; } | { skip: boolean; }) ) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useQuery<Types.GetWorkspaceQuotaAssignmentsQuery, Types.GetWorkspaceQuotaAssignmentsQueryVariables>(GetWorkspaceQuotaAssignmentsDocument, options);\n }\nexport function useGetWorkspaceQuotaAssignmentsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.GetWorkspaceQuotaAssignmentsQuery, Types.GetWorkspaceQuotaAssignmentsQueryVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useLazyQuery<Types.GetWorkspaceQuotaAssignmentsQuery, Types.GetWorkspaceQuotaAssignmentsQueryVariables>(GetWorkspaceQuotaAssignmentsDocument, options);\n }\n// @ts-ignore\nexport function useGetWorkspaceQuotaAssignmentsSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.GetWorkspaceQuotaAssignmentsQuery, Types.GetWorkspaceQuotaAssignmentsQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetWorkspaceQuotaAssignmentsQuery, Types.GetWorkspaceQuotaAssignmentsQueryVariables>;\nexport function useGetWorkspaceQuotaAssignmentsSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetWorkspaceQuotaAssignmentsQuery, Types.GetWorkspaceQuotaAssignmentsQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetWorkspaceQuotaAssignmentsQuery | undefined, Types.GetWorkspaceQuotaAssignmentsQueryVariables>;\nexport function useGetWorkspaceQuotaAssignmentsSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetWorkspaceQuotaAssignmentsQuery, Types.GetWorkspaceQuotaAssignmentsQueryVariables>) {\n const options = baseOptions === ApolloReactHooks.skipToken ? baseOptions : {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useSuspenseQuery<Types.GetWorkspaceQuotaAssignmentsQuery, Types.GetWorkspaceQuotaAssignmentsQueryVariables>(GetWorkspaceQuotaAssignmentsDocument, options);\n }\nexport type GetWorkspaceQuotaAssignmentsQueryHookResult = ReturnType<typeof useGetWorkspaceQuotaAssignmentsQuery>;\nexport type GetWorkspaceQuotaAssignmentsLazyQueryHookResult = ReturnType<typeof useGetWorkspaceQuotaAssignmentsLazyQuery>;\nexport type GetWorkspaceQuotaAssignmentsSuspenseQueryHookResult = ReturnType<typeof useGetWorkspaceQuotaAssignmentsSuspenseQuery>;\nexport type GetWorkspaceQuotaAssignmentsQueryResult = Apollo.QueryResult<Types.GetWorkspaceQuotaAssignmentsQuery, Types.GetWorkspaceQuotaAssignmentsQueryVariables>;\nexport const GetWorkspaceQuotaOverviewDocument = gql`\n query GetWorkspaceQuotaOverview($workspaceId: ID!) {\n workspaceQuotaOverview(workspaceId: $workspaceId) {\n assignment {\n id\n workspaceId\n quotaName\n productId\n quotaMode\n billingAccountId\n subscriptionId\n limit\n used\n noLimit\n resetPeriod\n lastResetAt\n isActive\n createdAt\n }\n liveStatus {\n workspaceId\n quotaName\n productId\n currentValue\n limit\n noLimit\n scrapedAt\n }\n effectiveUsed\n remaining\n usagePercentage\n }\n}\n `;\n\n/**\n * __useGetWorkspaceQuotaOverviewQuery__\n *\n * To run a query within a React component, call `useGetWorkspaceQuotaOverviewQuery` and pass it any options that fit your needs.\n * When your component renders, `useGetWorkspaceQuotaOverviewQuery` returns an object from Apollo Client that contains loading, error, and data properties\n * you can use to render your UI.\n *\n * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;\n *\n * @example\n * const { data, loading, error } = useGetWorkspaceQuotaOverviewQuery({\n * variables: {\n * workspaceId: // value for 'workspaceId'\n * },\n * });\n */\nexport function useGetWorkspaceQuotaOverviewQuery(baseOptions: ApolloReactHooks.QueryHookOptions<Types.GetWorkspaceQuotaOverviewQuery, Types.GetWorkspaceQuotaOverviewQueryVariables> & ({ variables: Types.GetWorkspaceQuotaOverviewQueryVariables; skip?: boolean; } | { skip: boolean; }) ) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useQuery<Types.GetWorkspaceQuotaOverviewQuery, Types.GetWorkspaceQuotaOverviewQueryVariables>(GetWorkspaceQuotaOverviewDocument, options);\n }\nexport function useGetWorkspaceQuotaOverviewLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.GetWorkspaceQuotaOverviewQuery, Types.GetWorkspaceQuotaOverviewQueryVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useLazyQuery<Types.GetWorkspaceQuotaOverviewQuery, Types.GetWorkspaceQuotaOverviewQueryVariables>(GetWorkspaceQuotaOverviewDocument, options);\n }\n// @ts-ignore\nexport function useGetWorkspaceQuotaOverviewSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.GetWorkspaceQuotaOverviewQuery, Types.GetWorkspaceQuotaOverviewQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetWorkspaceQuotaOverviewQuery, Types.GetWorkspaceQuotaOverviewQueryVariables>;\nexport function useGetWorkspaceQuotaOverviewSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetWorkspaceQuotaOverviewQuery, Types.GetWorkspaceQuotaOverviewQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetWorkspaceQuotaOverviewQuery | undefined, Types.GetWorkspaceQuotaOverviewQueryVariables>;\nexport function useGetWorkspaceQuotaOverviewSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetWorkspaceQuotaOverviewQuery, Types.GetWorkspaceQuotaOverviewQueryVariables>) {\n const options = baseOptions === ApolloReactHooks.skipToken ? baseOptions : {...defaultOptions, ...baseOptions}\n return ApolloReactHooks.useSuspenseQuery<Types.GetWorkspaceQuotaOverviewQuery, Types.GetWorkspaceQuotaOverviewQueryVariables>(GetWorkspaceQuotaOverviewDocument, options);\n }\nexport type GetWorkspaceQuotaOverviewQueryHookResult = ReturnType<typeof useGetWorkspaceQuotaOverviewQuery>;\nexport type GetWorkspaceQuotaOverviewLazyQueryHookResult = ReturnType<typeof useGetWorkspaceQuotaOverviewLazyQuery>;\nexport type GetWorkspaceQuotaOverviewSuspenseQueryHookResult = ReturnType<typeof useGetWorkspaceQuotaOverviewSuspenseQuery>;\nexport type GetWorkspaceQuotaOverviewQueryResult = Apollo.QueryResult<Types.GetWorkspaceQuotaOverviewQuery, Types.GetWorkspaceQuotaOverviewQueryVariables>;"],"mappings":";;;AAMA,IAAM,IAAiB,EAAE;AAuCmB,CAAG;;;;;;;;;;;;;;;;;;OA6CD,CAAG;;;;;AAgCjD,IAAa,IAA0B,CAAG;;;;;;;;;;;;;;;;;;;;;AAuC1C,SAAgB,EAAwB,GAA+M;CAC/O,IAAM,IAAU;EAAC,GAAG;EAAgB,GAAG;EAAY;AACnD,QAAO,EAAiB,SAA0E,GAAyB,EAAQ;;AAiBvF,CAAG;;;;;;;;;;;;;;;;;;;;OAyDN,CAAG"}
|