@burdenoff/microfe-billing 2026.821.1 → 2026.825.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/BillingAdminRoutes.js.map +1 -1
- package/dist/billing/BillingRoot.js.map +1 -1
- package/dist/billing/BillingUserRoutes.js.map +1 -1
- package/dist/billing/hooks/useBillingAccountSelection.js.map +1 -1
- package/dist/billing/hooks/useBillingEventEmitter.js.map +1 -1
- package/dist/billing/hooks/useBillingNavigate.js.map +1 -1
- package/dist/billing/hooks/useBillingPermissions.js.map +1 -1
- package/dist/billing/hooks/useDefaultBillingCurrency.js.map +1 -1
- package/dist/billing/modules/addons/components/FloatingCartDrawer.js.map +1 -1
- package/dist/billing/modules/addons/hooks/useAddons.js.map +1 -1
- package/dist/billing/modules/addons/pages/AddonBrowseDetailPage.js.map +1 -1
- package/dist/billing/modules/addons/pages/AddonCreatePage.js.map +1 -1
- package/dist/billing/modules/addons/pages/AddonDetailPage.js.map +1 -1
- package/dist/billing/modules/addons/pages/AddonEditPage.js.map +1 -1
- package/dist/billing/modules/addons/pages/AddonsBrowsePage.js.map +1 -1
- package/dist/billing/modules/addons/pages/AddonsListPage.js.map +1 -1
- package/dist/billing/modules/addons/store/addonCartStore.js.map +1 -1
- package/dist/billing/modules/affiliate/api.js.map +1 -1
- package/dist/billing/modules/affiliate/pages/AffiliateDashboardPage.js +107 -107
- package/dist/billing/modules/affiliate/pages/AffiliateDashboardPage.js.map +1 -1
- package/dist/billing/modules/analytics/pages/AnalyticsPage.js +80 -81
- package/dist/billing/modules/analytics/pages/AnalyticsPage.js.map +1 -1
- package/dist/billing/modules/billing/hooks/useInvoices.js.map +1 -1
- package/dist/billing/modules/billing/hooks/useRefunds.js.map +1 -1
- package/dist/billing/modules/billing/hooks/useTransactions.js.map +1 -1
- package/dist/billing/modules/billing/pages/InvoiceDetailPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/InvoicesListPage.js +1 -1
- package/dist/billing/modules/billing/pages/InvoicesListPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/PaymentMethodsPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/RefundsPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/TransactionsPage.js.map +1 -1
- package/dist/billing/modules/billing/pages/UserRefundsPage.js +127 -127
- package/dist/billing/modules/billing/pages/UserRefundsPage.js.map +1 -1
- package/dist/billing/modules/checkout/components/BillingAccountSelector.js.map +1 -1
- package/dist/billing/modules/checkout/components/CompleteBillingAccountModal.js.map +1 -1
- package/dist/billing/modules/checkout/components/CreditsAmountInput.js.map +1 -1
- package/dist/billing/modules/checkout/components/NativeCheckoutView.js.map +1 -1
- package/dist/billing/modules/checkout/components/OrderSummary.js.map +1 -1
- package/dist/billing/modules/checkout/components/PromoCodeInput.js.map +1 -1
- package/dist/billing/modules/checkout/components/RazorpayPaymentButton.js.map +1 -1
- package/dist/billing/modules/checkout/components/SimpleAutoPayToggle.js.map +1 -1
- package/dist/billing/modules/checkout/components/StoreShippingSection.js.map +1 -1
- package/dist/billing/modules/checkout/components/StripePaymentForm.js.map +1 -1
- package/dist/billing/modules/checkout/components/SubscriptionSelector.js.map +1 -1
- package/dist/billing/modules/checkout/components/UnifiedPaymentMethodSelector.js.map +1 -1
- package/dist/billing/modules/checkout/components/WorkspaceQuotaAssignmentModal.js.map +1 -1
- package/dist/billing/modules/checkout/hooks/useCheckout.js +0 -1
- package/dist/billing/modules/checkout/hooks/useCheckout.js.map +1 -1
- package/dist/billing/modules/checkout/hooks/useNativeCheckout.js.map +1 -1
- package/dist/billing/modules/checkout/hooks/usePaymentProviders.js.map +1 -1
- package/dist/billing/modules/checkout/hooks/usePaymentStatusPolling.js.map +1 -1
- package/dist/billing/modules/checkout/hooks/useStoreShipping.js.map +1 -1
- package/dist/billing/modules/checkout/pages/CheckoutPage.js +412 -395
- package/dist/billing/modules/checkout/pages/CheckoutPage.js.map +1 -1
- package/dist/billing/modules/checkout/utils/storeOrder.js.map +1 -1
- package/dist/billing/modules/coupons/pages/CouponDetailPage.js.map +1 -1
- package/dist/billing/modules/coupons/pages/CouponsListPage.js.map +1 -1
- package/dist/billing/modules/coupons/pages/CreateCouponPage.js.map +1 -1
- package/dist/billing/modules/coupons/pages/EditCouponPage.js.map +1 -1
- package/dist/billing/modules/credits/hooks/useCredits.js.map +1 -1
- package/dist/billing/modules/credits/pages/AdminCreditsPage.js.map +1 -1
- package/dist/billing/modules/credits/pages/CreditTransactionsPage.js.map +1 -1
- package/dist/billing/modules/credits/pages/CreditWithdrawalPage.js.map +1 -1
- package/dist/billing/modules/credits/pages/CreditsPage.js.map +1 -1
- package/dist/billing/modules/dashboard/components/ActiveSubscriptionCard.js.map +1 -1
- package/dist/billing/modules/dashboard/components/AddPaymentMethodModal.js.map +1 -1
- package/dist/billing/modules/dashboard/components/BillingAccountCard.js.map +1 -1
- package/dist/billing/modules/dashboard/components/CreateBillingAccountModal.js.map +1 -1
- package/dist/billing/modules/dashboard/components/PaymentMethodsSection.js.map +1 -1
- package/dist/billing/modules/dashboard/components/RecommendedAddonsSection.js.map +1 -1
- package/dist/billing/modules/dashboard/hooks/useBillingOverviewData.js.map +1 -1
- package/dist/billing/modules/dashboard/hooks/useDashboard.js.map +1 -1
- package/dist/billing/modules/dashboard/pages/OverviewPage.js.map +1 -1
- package/dist/billing/modules/discounts/pages/DiscountsListPage.js.map +1 -1
- package/dist/billing/modules/earnings/api.js.map +1 -1
- package/dist/billing/modules/earnings/pages/DeveloperRevenueAdminPage.js +145 -145
- package/dist/billing/modules/earnings/pages/DeveloperRevenueAdminPage.js.map +1 -1
- package/dist/billing/modules/earnings/pages/EarningsPage.js +133 -133
- package/dist/billing/modules/earnings/pages/EarningsPage.js.map +1 -1
- package/dist/billing/modules/earnings/pages/PayoutAdminPage.js +7 -9
- package/dist/billing/modules/earnings/pages/PayoutAdminPage.js.map +1 -1
- package/dist/billing/modules/earnings/pages/PayoutsPage.js +95 -95
- package/dist/billing/modules/earnings/pages/PayoutsPage.js.map +1 -1
- package/dist/billing/modules/plans/constants/featuredQuotas.js.map +1 -1
- package/dist/billing/modules/plans/hooks/usePlans.js.map +1 -1
- package/dist/billing/modules/plans/hooks/useQuotas.js.map +1 -1
- package/dist/billing/modules/plans/pages/PlanAssignFreePage.js.map +1 -1
- package/dist/billing/modules/plans/pages/PlanBrowseDetailPage.js.map +1 -1
- package/dist/billing/modules/plans/pages/PlanCreatePage.js.map +1 -1
- package/dist/billing/modules/plans/pages/PlanDetailPage.js.map +1 -1
- package/dist/billing/modules/plans/pages/PlanEditPage.js.map +1 -1
- package/dist/billing/modules/plans/pages/PlansBrowsePage.js.map +1 -1
- package/dist/billing/modules/plans/pages/PlansListPage.js.map +1 -1
- package/dist/billing/modules/promotions/pages/CreatePromotionPage.js.map +1 -1
- package/dist/billing/modules/promotions/pages/PromotionsListPage.js.map +1 -1
- package/dist/billing/modules/quota/hooks/useQuotaTemplates.js.map +1 -1
- package/dist/billing/modules/quota/pages/QuotaAssignFreePage.js.map +1 -1
- package/dist/billing/modules/quota/pages/QuotaTemplateCreatePage.js.map +1 -1
- package/dist/billing/modules/quota/pages/QuotaTemplateDetailPage.js.map +1 -1
- package/dist/billing/modules/quota/pages/QuotaTemplateEditPage.js.map +1 -1
- package/dist/billing/modules/quota/pages/QuotaTemplatesListPage.js.map +1 -1
- package/dist/billing/modules/settings/pages/SettingsPage.js.map +1 -1
- package/dist/billing/modules/settings/pages/TeamPermissionsPage.js.map +1 -1
- package/dist/billing/modules/store/pages/StoreCheckoutPage.js +5 -6
- package/dist/billing/modules/store/pages/StoreCheckoutPage.js.map +1 -1
- package/dist/billing/modules/subscriptions/components/ManageSeatsModal.js.map +1 -1
- package/dist/billing/modules/subscriptions/hooks/useSubscriptions.js.map +1 -1
- package/dist/billing/modules/subscriptions/pages/SubscriptionDetailPage.js.map +1 -1
- package/dist/billing/modules/subscriptions/pages/SubscriptionsListPage.js.map +1 -1
- package/dist/billing/modules/subscriptions/pages/UpgradeSubscriptionPage.js.map +1 -1
- package/dist/billing/modules/usage/hooks/useUsage.js +14 -9
- package/dist/billing/modules/usage/hooks/useUsage.js.map +1 -1
- package/dist/billing/modules/usage/pages/UsagePage.js +481 -453
- package/dist/billing/modules/usage/pages/UsagePage.js.map +1 -1
- package/dist/billing/providers/BillingProvider.js.map +1 -1
- package/dist/billing/shared/components/AccessDenied.js.map +1 -1
- package/dist/billing/shared/components/ActorIdentity.js.map +1 -1
- package/dist/billing/shared/components/CurrencyPriceOverridesEditor.js.map +1 -1
- package/dist/billing/shared/components/EmptyState.js.map +1 -1
- package/dist/billing/shared/components/PageHeader.js.map +1 -1
- package/dist/billing/shared/components/ServerError.js.map +1 -1
- package/dist/billing/shared/components/StatCard.js.map +1 -1
- package/dist/billing/shared/hooks/useActorProfiles.js.map +1 -1
- package/dist/billing/shared/types/graphql.js.map +1 -1
- package/dist/billing/shared/ui/Card.js.map +1 -1
- package/dist/billing/shared/ui/MetricCard.js.map +1 -1
- package/dist/billing/shared/ui/ProgressBar.js.map +1 -1
- package/dist/billing/shared/ui/StatusPill.js.map +1 -1
- package/dist/billing/shared/utils/directBillingGraphql.js.map +1 -1
- package/dist/billing/shared/utils/error.js.map +1 -1
- package/dist/billing/shared/utils/format.js.map +1 -1
- package/dist/billing/shared/utils/gatewayGraphql.js.map +1 -1
- package/dist/billing/shared/utils/navigation.js.map +1 -1
- package/dist/billing/shared/utils/paymentTheme.js.map +1 -1
- package/dist/billing/shared/utils/planFeatureQuantity.js.map +1 -1
- package/dist/billing/shared/utils/status.js.map +1 -1
- package/dist/billing/shared/utils/tokens.js.map +1 -1
- package/dist/generated/global-operations.js +5 -1
- package/dist/generated/global-operations.js.map +1 -1
- package/dist/generated/global-types.js.map +1 -1
- package/dist/generated/wspace-operations.js +1 -1
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/node_modules/@capacitor/core/dist/index.js +1 -1
- package/dist/node_modules/@capacitor/core/dist/index.js.map +1 -1
- package/package.json +13 -10
|
@@ -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 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"}
|
|
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';\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?: Apollo.MutationHookOptions<Types.AssignWorkspaceQuotaMutation, Types.AssignWorkspaceQuotaMutationVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return Apollo.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?: Apollo.MutationHookOptions<Types.UnassignWorkspaceQuotaMutation, Types.UnassignWorkspaceQuotaMutationVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return Apollo.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: Apollo.QueryHookOptions<Types.GetUsageRecordsQuery, Types.GetUsageRecordsQueryVariables> & ({ variables: Types.GetUsageRecordsQueryVariables; skip?: boolean; } | { skip: boolean; }) ) {\n const options = {...defaultOptions, ...baseOptions}\n return Apollo.useQuery<Types.GetUsageRecordsQuery, Types.GetUsageRecordsQueryVariables>(GetUsageRecordsDocument, options);\n }\nexport function useGetUsageRecordsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<Types.GetUsageRecordsQuery, Types.GetUsageRecordsQueryVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return Apollo.useLazyQuery<Types.GetUsageRecordsQuery, Types.GetUsageRecordsQueryVariables>(GetUsageRecordsDocument, options);\n }\n// @ts-ignore\nexport function useGetUsageRecordsSuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions<Types.GetUsageRecordsQuery, Types.GetUsageRecordsQueryVariables>): Apollo.UseSuspenseQueryResult<Types.GetUsageRecordsQuery, Types.GetUsageRecordsQueryVariables>;\nexport function useGetUsageRecordsSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<Types.GetUsageRecordsQuery, Types.GetUsageRecordsQueryVariables>): Apollo.UseSuspenseQueryResult<Types.GetUsageRecordsQuery | undefined, Types.GetUsageRecordsQueryVariables>;\nexport function useGetUsageRecordsSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<Types.GetUsageRecordsQuery, Types.GetUsageRecordsQueryVariables>) {\n const options = baseOptions === Apollo.skipToken ? baseOptions : {...defaultOptions, ...baseOptions}\n return Apollo.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: Apollo.QueryHookOptions<Types.GetWorkspaceQuotaAssignmentsQuery, Types.GetWorkspaceQuotaAssignmentsQueryVariables> & ({ variables: Types.GetWorkspaceQuotaAssignmentsQueryVariables; skip?: boolean; } | { skip: boolean; }) ) {\n const options = {...defaultOptions, ...baseOptions}\n return Apollo.useQuery<Types.GetWorkspaceQuotaAssignmentsQuery, Types.GetWorkspaceQuotaAssignmentsQueryVariables>(GetWorkspaceQuotaAssignmentsDocument, options);\n }\nexport function useGetWorkspaceQuotaAssignmentsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<Types.GetWorkspaceQuotaAssignmentsQuery, Types.GetWorkspaceQuotaAssignmentsQueryVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return Apollo.useLazyQuery<Types.GetWorkspaceQuotaAssignmentsQuery, Types.GetWorkspaceQuotaAssignmentsQueryVariables>(GetWorkspaceQuotaAssignmentsDocument, options);\n }\n// @ts-ignore\nexport function useGetWorkspaceQuotaAssignmentsSuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions<Types.GetWorkspaceQuotaAssignmentsQuery, Types.GetWorkspaceQuotaAssignmentsQueryVariables>): Apollo.UseSuspenseQueryResult<Types.GetWorkspaceQuotaAssignmentsQuery, Types.GetWorkspaceQuotaAssignmentsQueryVariables>;\nexport function useGetWorkspaceQuotaAssignmentsSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<Types.GetWorkspaceQuotaAssignmentsQuery, Types.GetWorkspaceQuotaAssignmentsQueryVariables>): Apollo.UseSuspenseQueryResult<Types.GetWorkspaceQuotaAssignmentsQuery | undefined, Types.GetWorkspaceQuotaAssignmentsQueryVariables>;\nexport function useGetWorkspaceQuotaAssignmentsSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<Types.GetWorkspaceQuotaAssignmentsQuery, Types.GetWorkspaceQuotaAssignmentsQueryVariables>) {\n const options = baseOptions === Apollo.skipToken ? baseOptions : {...defaultOptions, ...baseOptions}\n return Apollo.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: Apollo.QueryHookOptions<Types.GetWorkspaceQuotaOverviewQuery, Types.GetWorkspaceQuotaOverviewQueryVariables> & ({ variables: Types.GetWorkspaceQuotaOverviewQueryVariables; skip?: boolean; } | { skip: boolean; }) ) {\n const options = {...defaultOptions, ...baseOptions}\n return Apollo.useQuery<Types.GetWorkspaceQuotaOverviewQuery, Types.GetWorkspaceQuotaOverviewQueryVariables>(GetWorkspaceQuotaOverviewDocument, options);\n }\nexport function useGetWorkspaceQuotaOverviewLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<Types.GetWorkspaceQuotaOverviewQuery, Types.GetWorkspaceQuotaOverviewQueryVariables>) {\n const options = {...defaultOptions, ...baseOptions}\n return Apollo.useLazyQuery<Types.GetWorkspaceQuotaOverviewQuery, Types.GetWorkspaceQuotaOverviewQueryVariables>(GetWorkspaceQuotaOverviewDocument, options);\n }\n// @ts-ignore\nexport function useGetWorkspaceQuotaOverviewSuspenseQuery(baseOptions?: Apollo.SuspenseQueryHookOptions<Types.GetWorkspaceQuotaOverviewQuery, Types.GetWorkspaceQuotaOverviewQueryVariables>): Apollo.UseSuspenseQueryResult<Types.GetWorkspaceQuotaOverviewQuery, Types.GetWorkspaceQuotaOverviewQueryVariables>;\nexport function useGetWorkspaceQuotaOverviewSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<Types.GetWorkspaceQuotaOverviewQuery, Types.GetWorkspaceQuotaOverviewQueryVariables>): Apollo.UseSuspenseQueryResult<Types.GetWorkspaceQuotaOverviewQuery | undefined, Types.GetWorkspaceQuotaOverviewQueryVariables>;\nexport function useGetWorkspaceQuotaOverviewSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<Types.GetWorkspaceQuotaOverviewQuery, Types.GetWorkspaceQuotaOverviewQueryVariables>) {\n const options = baseOptions === Apollo.skipToken ? baseOptions : {...defaultOptions, ...baseOptions}\n return Apollo.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":";;;AAKA,IAAM,IAAiB,CAAC;AAuCoB,CAAG;;;;;;;;;;;;;;;;;;OA6CD,CAAG;;;;;AAgCjD,IAAa,IAA0B,CAAG;;;;;;;;;;;;;;;;;;;;;AAuC1C,SAAgB,EAAwB,GAAqM;CACrO,IAAM,IAAU;EAAC,GAAG;EAAgB,GAAG;CAAW;CAClD,OAAO,EAAO,SAA0E,GAAyB,CAAO;AAC1H;AAgB8C,CAAG;;;;;;;;;;;;;;;;;;;;OAyDN,CAAG"}
|
|
@@ -60,7 +60,7 @@ var t = class extends Error {
|
|
|
60
60
|
platforms: new Set([...Object.keys(r), ...d ? [l] : []])
|
|
61
61
|
}), b;
|
|
62
62
|
}, a.Exception = t, a.DEBUG = !!a.DEBUG, a.isLoggingEnabled = !!a.isLoggingEnabled, a;
|
|
63
|
-
}, i =
|
|
63
|
+
}, i = /*#__PURE__*/ ((e) => e.Capacitor = r(e))(typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {}), a = i.registerPlugin, o = class {
|
|
64
64
|
constructor() {
|
|
65
65
|
this.listeners = {}, this.retainedEventArguments = {}, this.windowListeners = {};
|
|
66
66
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../../node_modules/@capacitor/core/dist/index.js"],"sourcesContent":["/*! Capacitor: https://capacitorjs.com/ - MIT License */\nvar ExceptionCode;\n(function (ExceptionCode) {\n /**\n * API is not implemented.\n *\n * This usually means the API can't be used because it is not implemented for\n * the current platform.\n */\n ExceptionCode[\"Unimplemented\"] = \"UNIMPLEMENTED\";\n /**\n * API is not available.\n *\n * This means the API can't be used right now because:\n * - it is currently missing a prerequisite, such as network connectivity\n * - it requires a particular platform or browser version\n */\n ExceptionCode[\"Unavailable\"] = \"UNAVAILABLE\";\n})(ExceptionCode || (ExceptionCode = {}));\nclass CapacitorException extends Error {\n constructor(message, code, data) {\n super(message);\n this.message = message;\n this.code = code;\n this.data = data;\n }\n}\nconst getPlatformId = (win) => {\n var _a, _b;\n if (win === null || win === void 0 ? void 0 : win.androidBridge) {\n return 'android';\n }\n else if ((_b = (_a = win === null || win === void 0 ? void 0 : win.webkit) === null || _a === void 0 ? void 0 : _a.messageHandlers) === null || _b === void 0 ? void 0 : _b.bridge) {\n return 'ios';\n }\n else {\n return 'web';\n }\n};\n\nconst createCapacitor = (win) => {\n const capCustomPlatform = win.CapacitorCustomPlatform || null;\n const cap = win.Capacitor || {};\n const Plugins = (cap.Plugins = cap.Plugins || {});\n const getPlatform = () => {\n return capCustomPlatform !== null ? capCustomPlatform.name : getPlatformId(win);\n };\n const isNativePlatform = () => getPlatform() !== 'web';\n const isPluginAvailable = (pluginName) => {\n const plugin = registeredPlugins.get(pluginName);\n if (plugin === null || plugin === void 0 ? void 0 : plugin.platforms.has(getPlatform())) {\n // JS implementation available for the current platform.\n return true;\n }\n if (getPluginHeader(pluginName)) {\n // Native implementation available.\n return true;\n }\n return false;\n };\n const getPluginHeader = (pluginName) => { var _a; return (_a = cap.PluginHeaders) === null || _a === void 0 ? void 0 : _a.find((h) => h.name === pluginName); };\n const handleError = (err) => win.console.error(err);\n const registeredPlugins = new Map();\n const registerPlugin = (pluginName, jsImplementations = {}) => {\n const registeredPlugin = registeredPlugins.get(pluginName);\n if (registeredPlugin) {\n console.warn(`Capacitor plugin \"${pluginName}\" already registered. Cannot register plugins twice.`);\n return registeredPlugin.proxy;\n }\n const platform = getPlatform();\n const pluginHeader = getPluginHeader(pluginName);\n let jsImplementation;\n const loadPluginImplementation = async () => {\n if (!jsImplementation && platform in jsImplementations) {\n jsImplementation =\n typeof jsImplementations[platform] === 'function'\n ? (jsImplementation = await jsImplementations[platform]())\n : (jsImplementation = jsImplementations[platform]);\n }\n else if (capCustomPlatform !== null && !jsImplementation && 'web' in jsImplementations) {\n jsImplementation =\n typeof jsImplementations['web'] === 'function'\n ? (jsImplementation = await jsImplementations['web']())\n : (jsImplementation = jsImplementations['web']);\n }\n return jsImplementation;\n };\n const createPluginMethod = (impl, prop) => {\n var _a, _b;\n if (pluginHeader) {\n const methodHeader = pluginHeader === null || pluginHeader === void 0 ? void 0 : pluginHeader.methods.find((m) => prop === m.name);\n if (methodHeader) {\n if (methodHeader.rtype === 'promise') {\n return (options) => cap.nativePromise(pluginName, prop.toString(), options);\n }\n else {\n return (options, callback) => cap.nativeCallback(pluginName, prop.toString(), options, callback);\n }\n }\n else if (impl) {\n return (_a = impl[prop]) === null || _a === void 0 ? void 0 : _a.bind(impl);\n }\n }\n else if (impl) {\n return (_b = impl[prop]) === null || _b === void 0 ? void 0 : _b.bind(impl);\n }\n else {\n throw new CapacitorException(`\"${pluginName}\" plugin is not implemented on ${platform}`, ExceptionCode.Unimplemented);\n }\n };\n const createPluginMethodWrapper = (prop) => {\n let remove;\n const wrapper = (...args) => {\n const p = loadPluginImplementation().then((impl) => {\n const fn = createPluginMethod(impl, prop);\n if (fn) {\n const p = fn(...args);\n remove = p === null || p === void 0 ? void 0 : p.remove;\n return p;\n }\n else {\n throw new CapacitorException(`\"${pluginName}.${prop}()\" is not implemented on ${platform}`, ExceptionCode.Unimplemented);\n }\n });\n if (prop === 'addListener') {\n p.remove = async () => remove();\n }\n return p;\n };\n // Some flair ✨\n wrapper.toString = () => `${prop.toString()}() { [capacitor code] }`;\n Object.defineProperty(wrapper, 'name', {\n value: prop,\n writable: false,\n configurable: false,\n });\n return wrapper;\n };\n const addListener = createPluginMethodWrapper('addListener');\n const removeListener = createPluginMethodWrapper('removeListener');\n const addListenerNative = (eventName, callback) => {\n const call = addListener({ eventName }, callback);\n const remove = async () => {\n const callbackId = await call;\n removeListener({\n eventName,\n callbackId,\n }, callback);\n };\n const p = new Promise((resolve) => call.then(() => resolve({ remove })));\n p.remove = async () => {\n console.warn(`Using addListener() without 'await' is deprecated.`);\n await remove();\n };\n return p;\n };\n const proxy = new Proxy({}, {\n get(_, prop) {\n switch (prop) {\n // https://github.com/facebook/react/issues/20030\n case '$$typeof':\n return undefined;\n case 'toJSON':\n return () => ({});\n case 'addListener':\n return pluginHeader ? addListenerNative : addListener;\n case 'removeListener':\n return removeListener;\n default:\n return createPluginMethodWrapper(prop);\n }\n },\n });\n Plugins[pluginName] = proxy;\n registeredPlugins.set(pluginName, {\n name: pluginName,\n proxy,\n platforms: new Set([...Object.keys(jsImplementations), ...(pluginHeader ? [platform] : [])]),\n });\n return proxy;\n };\n // Add in convertFileSrc for web, it will already be available in native context\n if (!cap.convertFileSrc) {\n cap.convertFileSrc = (filePath) => filePath;\n }\n cap.getPlatform = getPlatform;\n cap.handleError = handleError;\n cap.isNativePlatform = isNativePlatform;\n cap.isPluginAvailable = isPluginAvailable;\n cap.registerPlugin = registerPlugin;\n cap.Exception = CapacitorException;\n cap.DEBUG = !!cap.DEBUG;\n cap.isLoggingEnabled = !!cap.isLoggingEnabled;\n return cap;\n};\nconst initCapacitorGlobal = (win) => (win.Capacitor = createCapacitor(win));\n\nconst Capacitor = /*#__PURE__*/ initCapacitorGlobal(typeof globalThis !== 'undefined'\n ? globalThis\n : typeof self !== 'undefined'\n ? self\n : typeof window !== 'undefined'\n ? window\n : typeof global !== 'undefined'\n ? global\n : {});\nconst registerPlugin = Capacitor.registerPlugin;\n\n/**\n * Base class web plugins should extend.\n */\nclass WebPlugin {\n constructor() {\n this.listeners = {};\n this.retainedEventArguments = {};\n this.windowListeners = {};\n }\n addListener(eventName, listenerFunc) {\n let firstListener = false;\n const listeners = this.listeners[eventName];\n if (!listeners) {\n this.listeners[eventName] = [];\n firstListener = true;\n }\n this.listeners[eventName].push(listenerFunc);\n // If we haven't added a window listener for this event and it requires one,\n // go ahead and add it\n const windowListener = this.windowListeners[eventName];\n if (windowListener && !windowListener.registered) {\n this.addWindowListener(windowListener);\n }\n if (firstListener) {\n this.sendRetainedArgumentsForEvent(eventName);\n }\n const remove = async () => this.removeListener(eventName, listenerFunc);\n const p = Promise.resolve({ remove });\n return p;\n }\n async removeAllListeners() {\n this.listeners = {};\n for (const listener in this.windowListeners) {\n this.removeWindowListener(this.windowListeners[listener]);\n }\n this.windowListeners = {};\n }\n notifyListeners(eventName, data, retainUntilConsumed) {\n const listeners = this.listeners[eventName];\n if (!listeners) {\n if (retainUntilConsumed) {\n let args = this.retainedEventArguments[eventName];\n if (!args) {\n args = [];\n }\n args.push(data);\n this.retainedEventArguments[eventName] = args;\n }\n return;\n }\n listeners.forEach((listener) => listener(data));\n }\n hasListeners(eventName) {\n var _a;\n return !!((_a = this.listeners[eventName]) === null || _a === void 0 ? void 0 : _a.length);\n }\n registerWindowListener(windowEventName, pluginEventName) {\n this.windowListeners[pluginEventName] = {\n registered: false,\n windowEventName,\n pluginEventName,\n handler: (event) => {\n this.notifyListeners(pluginEventName, event);\n },\n };\n }\n unimplemented(msg = 'not implemented') {\n return new Capacitor.Exception(msg, ExceptionCode.Unimplemented);\n }\n unavailable(msg = 'not available') {\n return new Capacitor.Exception(msg, ExceptionCode.Unavailable);\n }\n async removeListener(eventName, listenerFunc) {\n const listeners = this.listeners[eventName];\n if (!listeners) {\n return;\n }\n const index = listeners.indexOf(listenerFunc);\n this.listeners[eventName].splice(index, 1);\n // If there are no more listeners for this type of event,\n // remove the window listener\n if (!this.listeners[eventName].length) {\n this.removeWindowListener(this.windowListeners[eventName]);\n }\n }\n addWindowListener(handle) {\n window.addEventListener(handle.windowEventName, handle.handler);\n handle.registered = true;\n }\n removeWindowListener(handle) {\n if (!handle) {\n return;\n }\n window.removeEventListener(handle.windowEventName, handle.handler);\n handle.registered = false;\n }\n sendRetainedArgumentsForEvent(eventName) {\n const args = this.retainedEventArguments[eventName];\n if (!args) {\n return;\n }\n delete this.retainedEventArguments[eventName];\n args.forEach((arg) => {\n this.notifyListeners(eventName, arg);\n });\n }\n}\n\nconst WebView = /*#__PURE__*/ registerPlugin('WebView');\n/******** END WEB VIEW PLUGIN ********/\n/******** COOKIES PLUGIN ********/\n/**\n * Safely web encode a string value (inspired by js-cookie)\n * @param str The string value to encode\n */\nconst encode = (str) => encodeURIComponent(str)\n .replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent)\n .replace(/[()]/g, escape);\n/**\n * Safely web decode a string value (inspired by js-cookie)\n * @param str The string value to decode\n */\nconst decode = (str) => str.replace(/(%[\\dA-F]{2})+/gi, decodeURIComponent);\nclass CapacitorCookiesPluginWeb extends WebPlugin {\n async getCookies() {\n const cookies = document.cookie;\n const cookieMap = {};\n cookies.split(';').forEach((cookie) => {\n if (cookie.length <= 0)\n return;\n // Replace first \"=\" with CAP_COOKIE to prevent splitting on additional \"=\"\n let [key, value] = cookie.replace(/=/, 'CAP_COOKIE').split('CAP_COOKIE');\n key = decode(key).trim();\n value = decode(value).trim();\n cookieMap[key] = value;\n });\n return cookieMap;\n }\n async setCookie(options) {\n try {\n // Safely Encoded Key/Value\n const encodedKey = encode(options.key);\n const encodedValue = encode(options.value);\n // Clean & sanitize options\n const expires = options.expires ? `; expires=${options.expires.replace('expires=', '')}` : '';\n const path = (options.path || '/').replace('path=', ''); // Default is \"path=/\"\n const domain = options.url != null && options.url.length > 0 ? `domain=${options.url}` : '';\n document.cookie = `${encodedKey}=${encodedValue || ''}${expires}; path=${path}; ${domain};`;\n }\n catch (error) {\n return Promise.reject(error);\n }\n }\n async deleteCookie(options) {\n try {\n document.cookie = `${options.key}=; Max-Age=0`;\n }\n catch (error) {\n return Promise.reject(error);\n }\n }\n async clearCookies() {\n try {\n const cookies = document.cookie.split(';') || [];\n for (const cookie of cookies) {\n document.cookie = cookie.replace(/^ +/, '').replace(/=.*/, `=;expires=${new Date().toUTCString()};path=/`);\n }\n }\n catch (error) {\n return Promise.reject(error);\n }\n }\n async clearAllCookies() {\n try {\n await this.clearCookies();\n }\n catch (error) {\n return Promise.reject(error);\n }\n }\n}\nconst CapacitorCookies = registerPlugin('CapacitorCookies', {\n web: () => new CapacitorCookiesPluginWeb(),\n});\n// UTILITY FUNCTIONS\n/**\n * Read in a Blob value and return it as a base64 string\n * @param blob The blob value to convert to a base64 string\n */\nconst readBlobAsBase64 = async (blob) => new Promise((resolve, reject) => {\n const reader = new FileReader();\n reader.onload = () => {\n const base64String = reader.result;\n // remove prefix \"data:application/pdf;base64,\"\n resolve(base64String.indexOf(',') >= 0 ? base64String.split(',')[1] : base64String);\n };\n reader.onerror = (error) => reject(error);\n reader.readAsDataURL(blob);\n});\n/**\n * Normalize an HttpHeaders map by lowercasing all of the values\n * @param headers The HttpHeaders object to normalize\n */\nconst normalizeHttpHeaders = (headers = {}) => {\n const originalKeys = Object.keys(headers);\n const loweredKeys = Object.keys(headers).map((k) => k.toLocaleLowerCase());\n const normalized = loweredKeys.reduce((acc, key, index) => {\n acc[key] = headers[originalKeys[index]];\n return acc;\n }, {});\n return normalized;\n};\n/**\n * Builds a string of url parameters that\n * @param params A map of url parameters\n * @param shouldEncode true if you should encodeURIComponent() the values (true by default)\n */\nconst buildUrlParams = (params, shouldEncode = true) => {\n if (!params)\n return null;\n const output = Object.entries(params).reduce((accumulator, entry) => {\n const [key, value] = entry;\n let encodedValue;\n let item;\n if (Array.isArray(value)) {\n item = '';\n value.forEach((str) => {\n encodedValue = shouldEncode ? encodeURIComponent(str) : str;\n item += `${key}=${encodedValue}&`;\n });\n // last character will always be \"&\" so slice it off\n item.slice(0, -1);\n }\n else {\n encodedValue = shouldEncode ? encodeURIComponent(value) : value;\n item = `${key}=${encodedValue}`;\n }\n return `${accumulator}&${item}`;\n }, '');\n // Remove initial \"&\" from the reduce\n return output.substr(1);\n};\n/**\n * Build the RequestInit object based on the options passed into the initial request\n * @param options The Http plugin options\n * @param extra Any extra RequestInit values\n */\nconst buildRequestInit = (options, extra = {}) => {\n const output = Object.assign({ method: options.method || 'GET', headers: options.headers }, extra);\n // Get the content-type\n const headers = normalizeHttpHeaders(options.headers);\n const type = headers['content-type'] || '';\n // If body is already a string, then pass it through as-is.\n if (typeof options.data === 'string') {\n output.body = options.data;\n }\n // Build request initializers based off of content-type\n else if (type.includes('application/x-www-form-urlencoded')) {\n const params = new URLSearchParams();\n for (const [key, value] of Object.entries(options.data || {})) {\n params.set(key, value);\n }\n output.body = params.toString();\n }\n else if (type.includes('multipart/form-data') || options.data instanceof FormData) {\n const form = new FormData();\n if (options.data instanceof FormData) {\n options.data.forEach((value, key) => {\n form.append(key, value);\n });\n }\n else {\n for (const key of Object.keys(options.data)) {\n form.append(key, options.data[key]);\n }\n }\n output.body = form;\n const headers = new Headers(output.headers);\n headers.delete('content-type'); // content-type will be set by `window.fetch` to includy boundary\n output.headers = headers;\n }\n else if (type.includes('application/json') || typeof options.data === 'object') {\n output.body = JSON.stringify(options.data);\n }\n return output;\n};\n// WEB IMPLEMENTATION\nclass CapacitorHttpPluginWeb extends WebPlugin {\n /**\n * Perform an Http request given a set of options\n * @param options Options to build the HTTP request\n */\n async request(options) {\n const requestInit = buildRequestInit(options, options.webFetchExtra);\n const urlParams = buildUrlParams(options.params, options.shouldEncodeUrlParams);\n const url = urlParams ? `${options.url}?${urlParams}` : options.url;\n const response = await fetch(url, requestInit);\n const contentType = response.headers.get('content-type') || '';\n // Default to 'text' responseType so no parsing happens\n let { responseType = 'text' } = response.ok ? options : {};\n // If the response content-type is json, force the response to be json\n if (contentType.includes('application/json')) {\n responseType = 'json';\n }\n let data;\n let blob;\n switch (responseType) {\n case 'arraybuffer':\n case 'blob':\n blob = await response.blob();\n data = await readBlobAsBase64(blob);\n break;\n case 'json':\n data = await response.json();\n break;\n case 'document':\n case 'text':\n default:\n data = await response.text();\n }\n // Convert fetch headers to Capacitor HttpHeaders\n const headers = {};\n response.headers.forEach((value, key) => {\n headers[key] = value;\n });\n return {\n data,\n headers,\n status: response.status,\n url: response.url,\n };\n }\n /**\n * Perform an Http GET request given a set of options\n * @param options Options to build the HTTP request\n */\n async get(options) {\n return this.request(Object.assign(Object.assign({}, options), { method: 'GET' }));\n }\n /**\n * Perform an Http POST request given a set of options\n * @param options Options to build the HTTP request\n */\n async post(options) {\n return this.request(Object.assign(Object.assign({}, options), { method: 'POST' }));\n }\n /**\n * Perform an Http PUT request given a set of options\n * @param options Options to build the HTTP request\n */\n async put(options) {\n return this.request(Object.assign(Object.assign({}, options), { method: 'PUT' }));\n }\n /**\n * Perform an Http PATCH request given a set of options\n * @param options Options to build the HTTP request\n */\n async patch(options) {\n return this.request(Object.assign(Object.assign({}, options), { method: 'PATCH' }));\n }\n /**\n * Perform an Http DELETE request given a set of options\n * @param options Options to build the HTTP request\n */\n async delete(options) {\n return this.request(Object.assign(Object.assign({}, options), { method: 'DELETE' }));\n }\n}\nconst CapacitorHttp = registerPlugin('CapacitorHttp', {\n web: () => new CapacitorHttpPluginWeb(),\n});\n/******** END HTTP PLUGIN ********/\n/******** SYSTEM BARS PLUGIN ********/\n/**\n * Available status bar styles.\n */\nvar SystemBarsStyle;\n(function (SystemBarsStyle) {\n /**\n * Light system bar content on a dark background.\n *\n * @since 8.0.0\n */\n SystemBarsStyle[\"Dark\"] = \"DARK\";\n /**\n * For dark system bar content on a light background.\n *\n * @since 8.0.0\n */\n SystemBarsStyle[\"Light\"] = \"LIGHT\";\n /**\n * The style is based on the device appearance or the underlying content.\n * If the device is using Dark mode, the system bars content will be light.\n * If the device is using Light mode, the system bars content will be dark.\n *\n * @since 8.0.0\n */\n SystemBarsStyle[\"Default\"] = \"DEFAULT\";\n})(SystemBarsStyle || (SystemBarsStyle = {}));\n/**\n * Available system bar types.\n */\nvar SystemBarType;\n(function (SystemBarType) {\n /**\n * The top status bar on both Android and iOS.\n *\n * @since 8.0.0\n */\n SystemBarType[\"StatusBar\"] = \"StatusBar\";\n /**\n * The navigation bar (or gesture bar on iOS) on both Android and iOS.\n *\n * @since 8.0.0\n */\n SystemBarType[\"NavigationBar\"] = \"NavigationBar\";\n})(SystemBarType || (SystemBarType = {}));\nclass SystemBarsPluginWeb extends WebPlugin {\n async setStyle() {\n this.unavailable('not available for web');\n }\n async setAnimation() {\n this.unavailable('not available for web');\n }\n async show() {\n this.unavailable('not available for web');\n }\n async hide() {\n this.unavailable('not available for web');\n }\n}\nconst SystemBars = registerPlugin('SystemBars', {\n web: () => new SystemBarsPluginWeb(),\n});\n/******** END SYSTEM BARS PLUGIN ********/\n\nexport { Capacitor, CapacitorCookies, CapacitorException, CapacitorHttp, ExceptionCode, SystemBarType, SystemBars, SystemBarsStyle, WebPlugin, WebView, buildRequestInit, registerPlugin };\n//# sourceMappingURL=index.js.map\n"],"x_google_ignoreList":[0],"mappings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K,QAAQ,OAAO,OAAO,OAAO,OAAO,EAAE,EAAE,EAAQ,EAAE,EAAE,QAAQ,UAAU,CAAC,CAAC;;;AAGtE,EAAe,iBAAiB,EAClD,WAAW,IAAI,GAAwB,EAC1C,CAAC;AAMF,IAAI;CACH,SAAU,GAAiB;AAoBxB,CAdA,EAAgB,OAAU,QAM1B,EAAgB,QAAW,SAQ3B,EAAgB,UAAa;GAC9B,AAAoB,MAAkB,EAAE,CAAE;AAI7C,IAAI;CACH,SAAU,GAAe;AAYtB,CANA,EAAc,YAAe,aAM7B,EAAc,gBAAmB;GAClC,AAAkB,MAAgB,EAAE,CAAE;AACzC,IAAM,IAAN,cAAkC,EAAU;CACxC,MAAM,WAAW;AACb,OAAK,YAAY,wBAAwB;;CAE7C,MAAM,eAAe;AACjB,OAAK,YAAY,wBAAwB;;CAE7C,MAAM,OAAO;AACT,OAAK,YAAY,wBAAwB;;CAE7C,MAAM,OAAO;AACT,OAAK,YAAY,wBAAwB;;;AAG9B,EAAe,cAAc,EAC5C,WAAW,IAAI,GAAqB,EACvC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../../node_modules/@capacitor/core/dist/index.js"],"sourcesContent":["/*! Capacitor: https://capacitorjs.com/ - MIT License */\nvar ExceptionCode;\n(function (ExceptionCode) {\n /**\n * API is not implemented.\n *\n * This usually means the API can't be used because it is not implemented for\n * the current platform.\n */\n ExceptionCode[\"Unimplemented\"] = \"UNIMPLEMENTED\";\n /**\n * API is not available.\n *\n * This means the API can't be used right now because:\n * - it is currently missing a prerequisite, such as network connectivity\n * - it requires a particular platform or browser version\n */\n ExceptionCode[\"Unavailable\"] = \"UNAVAILABLE\";\n})(ExceptionCode || (ExceptionCode = {}));\nclass CapacitorException extends Error {\n constructor(message, code, data) {\n super(message);\n this.message = message;\n this.code = code;\n this.data = data;\n }\n}\nconst getPlatformId = (win) => {\n var _a, _b;\n if (win === null || win === void 0 ? void 0 : win.androidBridge) {\n return 'android';\n }\n else if ((_b = (_a = win === null || win === void 0 ? void 0 : win.webkit) === null || _a === void 0 ? void 0 : _a.messageHandlers) === null || _b === void 0 ? void 0 : _b.bridge) {\n return 'ios';\n }\n else {\n return 'web';\n }\n};\n\nconst createCapacitor = (win) => {\n const capCustomPlatform = win.CapacitorCustomPlatform || null;\n const cap = win.Capacitor || {};\n const Plugins = (cap.Plugins = cap.Plugins || {});\n const getPlatform = () => {\n return capCustomPlatform !== null ? capCustomPlatform.name : getPlatformId(win);\n };\n const isNativePlatform = () => getPlatform() !== 'web';\n const isPluginAvailable = (pluginName) => {\n const plugin = registeredPlugins.get(pluginName);\n if (plugin === null || plugin === void 0 ? void 0 : plugin.platforms.has(getPlatform())) {\n // JS implementation available for the current platform.\n return true;\n }\n if (getPluginHeader(pluginName)) {\n // Native implementation available.\n return true;\n }\n return false;\n };\n const getPluginHeader = (pluginName) => { var _a; return (_a = cap.PluginHeaders) === null || _a === void 0 ? void 0 : _a.find((h) => h.name === pluginName); };\n const handleError = (err) => win.console.error(err);\n const registeredPlugins = new Map();\n const registerPlugin = (pluginName, jsImplementations = {}) => {\n const registeredPlugin = registeredPlugins.get(pluginName);\n if (registeredPlugin) {\n console.warn(`Capacitor plugin \"${pluginName}\" already registered. Cannot register plugins twice.`);\n return registeredPlugin.proxy;\n }\n const platform = getPlatform();\n const pluginHeader = getPluginHeader(pluginName);\n let jsImplementation;\n const loadPluginImplementation = async () => {\n if (!jsImplementation && platform in jsImplementations) {\n jsImplementation =\n typeof jsImplementations[platform] === 'function'\n ? (jsImplementation = await jsImplementations[platform]())\n : (jsImplementation = jsImplementations[platform]);\n }\n else if (capCustomPlatform !== null && !jsImplementation && 'web' in jsImplementations) {\n jsImplementation =\n typeof jsImplementations['web'] === 'function'\n ? (jsImplementation = await jsImplementations['web']())\n : (jsImplementation = jsImplementations['web']);\n }\n return jsImplementation;\n };\n const createPluginMethod = (impl, prop) => {\n var _a, _b;\n if (pluginHeader) {\n const methodHeader = pluginHeader === null || pluginHeader === void 0 ? void 0 : pluginHeader.methods.find((m) => prop === m.name);\n if (methodHeader) {\n if (methodHeader.rtype === 'promise') {\n return (options) => cap.nativePromise(pluginName, prop.toString(), options);\n }\n else {\n return (options, callback) => cap.nativeCallback(pluginName, prop.toString(), options, callback);\n }\n }\n else if (impl) {\n return (_a = impl[prop]) === null || _a === void 0 ? void 0 : _a.bind(impl);\n }\n }\n else if (impl) {\n return (_b = impl[prop]) === null || _b === void 0 ? void 0 : _b.bind(impl);\n }\n else {\n throw new CapacitorException(`\"${pluginName}\" plugin is not implemented on ${platform}`, ExceptionCode.Unimplemented);\n }\n };\n const createPluginMethodWrapper = (prop) => {\n let remove;\n const wrapper = (...args) => {\n const p = loadPluginImplementation().then((impl) => {\n const fn = createPluginMethod(impl, prop);\n if (fn) {\n const p = fn(...args);\n remove = p === null || p === void 0 ? void 0 : p.remove;\n return p;\n }\n else {\n throw new CapacitorException(`\"${pluginName}.${prop}()\" is not implemented on ${platform}`, ExceptionCode.Unimplemented);\n }\n });\n if (prop === 'addListener') {\n p.remove = async () => remove();\n }\n return p;\n };\n // Some flair ✨\n wrapper.toString = () => `${prop.toString()}() { [capacitor code] }`;\n Object.defineProperty(wrapper, 'name', {\n value: prop,\n writable: false,\n configurable: false,\n });\n return wrapper;\n };\n const addListener = createPluginMethodWrapper('addListener');\n const removeListener = createPluginMethodWrapper('removeListener');\n const addListenerNative = (eventName, callback) => {\n const call = addListener({ eventName }, callback);\n const remove = async () => {\n const callbackId = await call;\n removeListener({\n eventName,\n callbackId,\n }, callback);\n };\n const p = new Promise((resolve) => call.then(() => resolve({ remove })));\n p.remove = async () => {\n console.warn(`Using addListener() without 'await' is deprecated.`);\n await remove();\n };\n return p;\n };\n const proxy = new Proxy({}, {\n get(_, prop) {\n switch (prop) {\n // https://github.com/facebook/react/issues/20030\n case '$$typeof':\n return undefined;\n case 'toJSON':\n return () => ({});\n case 'addListener':\n return pluginHeader ? addListenerNative : addListener;\n case 'removeListener':\n return removeListener;\n default:\n return createPluginMethodWrapper(prop);\n }\n },\n });\n Plugins[pluginName] = proxy;\n registeredPlugins.set(pluginName, {\n name: pluginName,\n proxy,\n platforms: new Set([...Object.keys(jsImplementations), ...(pluginHeader ? [platform] : [])]),\n });\n return proxy;\n };\n // Add in convertFileSrc for web, it will already be available in native context\n if (!cap.convertFileSrc) {\n cap.convertFileSrc = (filePath) => filePath;\n }\n cap.getPlatform = getPlatform;\n cap.handleError = handleError;\n cap.isNativePlatform = isNativePlatform;\n cap.isPluginAvailable = isPluginAvailable;\n cap.registerPlugin = registerPlugin;\n cap.Exception = CapacitorException;\n cap.DEBUG = !!cap.DEBUG;\n cap.isLoggingEnabled = !!cap.isLoggingEnabled;\n return cap;\n};\nconst initCapacitorGlobal = (win) => (win.Capacitor = createCapacitor(win));\n\nconst Capacitor = /*#__PURE__*/ initCapacitorGlobal(typeof globalThis !== 'undefined'\n ? globalThis\n : typeof self !== 'undefined'\n ? self\n : typeof window !== 'undefined'\n ? window\n : typeof global !== 'undefined'\n ? global\n : {});\nconst registerPlugin = Capacitor.registerPlugin;\n\n/**\n * Base class web plugins should extend.\n */\nclass WebPlugin {\n constructor() {\n this.listeners = {};\n this.retainedEventArguments = {};\n this.windowListeners = {};\n }\n addListener(eventName, listenerFunc) {\n let firstListener = false;\n const listeners = this.listeners[eventName];\n if (!listeners) {\n this.listeners[eventName] = [];\n firstListener = true;\n }\n this.listeners[eventName].push(listenerFunc);\n // If we haven't added a window listener for this event and it requires one,\n // go ahead and add it\n const windowListener = this.windowListeners[eventName];\n if (windowListener && !windowListener.registered) {\n this.addWindowListener(windowListener);\n }\n if (firstListener) {\n this.sendRetainedArgumentsForEvent(eventName);\n }\n const remove = async () => this.removeListener(eventName, listenerFunc);\n const p = Promise.resolve({ remove });\n return p;\n }\n async removeAllListeners() {\n this.listeners = {};\n for (const listener in this.windowListeners) {\n this.removeWindowListener(this.windowListeners[listener]);\n }\n this.windowListeners = {};\n }\n notifyListeners(eventName, data, retainUntilConsumed) {\n const listeners = this.listeners[eventName];\n if (!listeners) {\n if (retainUntilConsumed) {\n let args = this.retainedEventArguments[eventName];\n if (!args) {\n args = [];\n }\n args.push(data);\n this.retainedEventArguments[eventName] = args;\n }\n return;\n }\n listeners.forEach((listener) => listener(data));\n }\n hasListeners(eventName) {\n var _a;\n return !!((_a = this.listeners[eventName]) === null || _a === void 0 ? void 0 : _a.length);\n }\n registerWindowListener(windowEventName, pluginEventName) {\n this.windowListeners[pluginEventName] = {\n registered: false,\n windowEventName,\n pluginEventName,\n handler: (event) => {\n this.notifyListeners(pluginEventName, event);\n },\n };\n }\n unimplemented(msg = 'not implemented') {\n return new Capacitor.Exception(msg, ExceptionCode.Unimplemented);\n }\n unavailable(msg = 'not available') {\n return new Capacitor.Exception(msg, ExceptionCode.Unavailable);\n }\n async removeListener(eventName, listenerFunc) {\n const listeners = this.listeners[eventName];\n if (!listeners) {\n return;\n }\n const index = listeners.indexOf(listenerFunc);\n this.listeners[eventName].splice(index, 1);\n // If there are no more listeners for this type of event,\n // remove the window listener\n if (!this.listeners[eventName].length) {\n this.removeWindowListener(this.windowListeners[eventName]);\n }\n }\n addWindowListener(handle) {\n window.addEventListener(handle.windowEventName, handle.handler);\n handle.registered = true;\n }\n removeWindowListener(handle) {\n if (!handle) {\n return;\n }\n window.removeEventListener(handle.windowEventName, handle.handler);\n handle.registered = false;\n }\n sendRetainedArgumentsForEvent(eventName) {\n const args = this.retainedEventArguments[eventName];\n if (!args) {\n return;\n }\n delete this.retainedEventArguments[eventName];\n args.forEach((arg) => {\n this.notifyListeners(eventName, arg);\n });\n }\n}\n\nconst WebView = /*#__PURE__*/ registerPlugin('WebView');\n/******** END WEB VIEW PLUGIN ********/\n/******** COOKIES PLUGIN ********/\n/**\n * Safely web encode a string value (inspired by js-cookie)\n * @param str The string value to encode\n */\nconst encode = (str) => encodeURIComponent(str)\n .replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent)\n .replace(/[()]/g, escape);\n/**\n * Safely web decode a string value (inspired by js-cookie)\n * @param str The string value to decode\n */\nconst decode = (str) => str.replace(/(%[\\dA-F]{2})+/gi, decodeURIComponent);\nclass CapacitorCookiesPluginWeb extends WebPlugin {\n async getCookies() {\n const cookies = document.cookie;\n const cookieMap = {};\n cookies.split(';').forEach((cookie) => {\n if (cookie.length <= 0)\n return;\n // Replace first \"=\" with CAP_COOKIE to prevent splitting on additional \"=\"\n let [key, value] = cookie.replace(/=/, 'CAP_COOKIE').split('CAP_COOKIE');\n key = decode(key).trim();\n value = decode(value).trim();\n cookieMap[key] = value;\n });\n return cookieMap;\n }\n async setCookie(options) {\n try {\n // Safely Encoded Key/Value\n const encodedKey = encode(options.key);\n const encodedValue = encode(options.value);\n // Clean & sanitize options\n const expires = options.expires ? `; expires=${options.expires.replace('expires=', '')}` : '';\n const path = (options.path || '/').replace('path=', ''); // Default is \"path=/\"\n const domain = options.url != null && options.url.length > 0 ? `domain=${options.url}` : '';\n document.cookie = `${encodedKey}=${encodedValue || ''}${expires}; path=${path}; ${domain};`;\n }\n catch (error) {\n return Promise.reject(error);\n }\n }\n async deleteCookie(options) {\n try {\n document.cookie = `${options.key}=; Max-Age=0`;\n }\n catch (error) {\n return Promise.reject(error);\n }\n }\n async clearCookies() {\n try {\n const cookies = document.cookie.split(';') || [];\n for (const cookie of cookies) {\n document.cookie = cookie.replace(/^ +/, '').replace(/=.*/, `=;expires=${new Date().toUTCString()};path=/`);\n }\n }\n catch (error) {\n return Promise.reject(error);\n }\n }\n async clearAllCookies() {\n try {\n await this.clearCookies();\n }\n catch (error) {\n return Promise.reject(error);\n }\n }\n}\nconst CapacitorCookies = registerPlugin('CapacitorCookies', {\n web: () => new CapacitorCookiesPluginWeb(),\n});\n// UTILITY FUNCTIONS\n/**\n * Read in a Blob value and return it as a base64 string\n * @param blob The blob value to convert to a base64 string\n */\nconst readBlobAsBase64 = async (blob) => new Promise((resolve, reject) => {\n const reader = new FileReader();\n reader.onload = () => {\n const base64String = reader.result;\n // remove prefix \"data:application/pdf;base64,\"\n resolve(base64String.indexOf(',') >= 0 ? base64String.split(',')[1] : base64String);\n };\n reader.onerror = (error) => reject(error);\n reader.readAsDataURL(blob);\n});\n/**\n * Normalize an HttpHeaders map by lowercasing all of the values\n * @param headers The HttpHeaders object to normalize\n */\nconst normalizeHttpHeaders = (headers = {}) => {\n const originalKeys = Object.keys(headers);\n const loweredKeys = Object.keys(headers).map((k) => k.toLocaleLowerCase());\n const normalized = loweredKeys.reduce((acc, key, index) => {\n acc[key] = headers[originalKeys[index]];\n return acc;\n }, {});\n return normalized;\n};\n/**\n * Builds a string of url parameters that\n * @param params A map of url parameters\n * @param shouldEncode true if you should encodeURIComponent() the values (true by default)\n */\nconst buildUrlParams = (params, shouldEncode = true) => {\n if (!params)\n return null;\n const output = Object.entries(params).reduce((accumulator, entry) => {\n const [key, value] = entry;\n let encodedValue;\n let item;\n if (Array.isArray(value)) {\n item = '';\n value.forEach((str) => {\n encodedValue = shouldEncode ? encodeURIComponent(str) : str;\n item += `${key}=${encodedValue}&`;\n });\n // last character will always be \"&\" so slice it off\n item.slice(0, -1);\n }\n else {\n encodedValue = shouldEncode ? encodeURIComponent(value) : value;\n item = `${key}=${encodedValue}`;\n }\n return `${accumulator}&${item}`;\n }, '');\n // Remove initial \"&\" from the reduce\n return output.substr(1);\n};\n/**\n * Build the RequestInit object based on the options passed into the initial request\n * @param options The Http plugin options\n * @param extra Any extra RequestInit values\n */\nconst buildRequestInit = (options, extra = {}) => {\n const output = Object.assign({ method: options.method || 'GET', headers: options.headers }, extra);\n // Get the content-type\n const headers = normalizeHttpHeaders(options.headers);\n const type = headers['content-type'] || '';\n // If body is already a string, then pass it through as-is.\n if (typeof options.data === 'string') {\n output.body = options.data;\n }\n // Build request initializers based off of content-type\n else if (type.includes('application/x-www-form-urlencoded')) {\n const params = new URLSearchParams();\n for (const [key, value] of Object.entries(options.data || {})) {\n params.set(key, value);\n }\n output.body = params.toString();\n }\n else if (type.includes('multipart/form-data') || options.data instanceof FormData) {\n const form = new FormData();\n if (options.data instanceof FormData) {\n options.data.forEach((value, key) => {\n form.append(key, value);\n });\n }\n else {\n for (const key of Object.keys(options.data)) {\n form.append(key, options.data[key]);\n }\n }\n output.body = form;\n const headers = new Headers(output.headers);\n headers.delete('content-type'); // content-type will be set by `window.fetch` to includy boundary\n output.headers = headers;\n }\n else if (type.includes('application/json') || typeof options.data === 'object') {\n output.body = JSON.stringify(options.data);\n }\n return output;\n};\n// WEB IMPLEMENTATION\nclass CapacitorHttpPluginWeb extends WebPlugin {\n /**\n * Perform an Http request given a set of options\n * @param options Options to build the HTTP request\n */\n async request(options) {\n const requestInit = buildRequestInit(options, options.webFetchExtra);\n const urlParams = buildUrlParams(options.params, options.shouldEncodeUrlParams);\n const url = urlParams ? `${options.url}?${urlParams}` : options.url;\n const response = await fetch(url, requestInit);\n const contentType = response.headers.get('content-type') || '';\n // Default to 'text' responseType so no parsing happens\n let { responseType = 'text' } = response.ok ? options : {};\n // If the response content-type is json, force the response to be json\n if (contentType.includes('application/json')) {\n responseType = 'json';\n }\n let data;\n let blob;\n switch (responseType) {\n case 'arraybuffer':\n case 'blob':\n blob = await response.blob();\n data = await readBlobAsBase64(blob);\n break;\n case 'json':\n data = await response.json();\n break;\n case 'document':\n case 'text':\n default:\n data = await response.text();\n }\n // Convert fetch headers to Capacitor HttpHeaders\n const headers = {};\n response.headers.forEach((value, key) => {\n headers[key] = value;\n });\n return {\n data,\n headers,\n status: response.status,\n url: response.url,\n };\n }\n /**\n * Perform an Http GET request given a set of options\n * @param options Options to build the HTTP request\n */\n async get(options) {\n return this.request(Object.assign(Object.assign({}, options), { method: 'GET' }));\n }\n /**\n * Perform an Http POST request given a set of options\n * @param options Options to build the HTTP request\n */\n async post(options) {\n return this.request(Object.assign(Object.assign({}, options), { method: 'POST' }));\n }\n /**\n * Perform an Http PUT request given a set of options\n * @param options Options to build the HTTP request\n */\n async put(options) {\n return this.request(Object.assign(Object.assign({}, options), { method: 'PUT' }));\n }\n /**\n * Perform an Http PATCH request given a set of options\n * @param options Options to build the HTTP request\n */\n async patch(options) {\n return this.request(Object.assign(Object.assign({}, options), { method: 'PATCH' }));\n }\n /**\n * Perform an Http DELETE request given a set of options\n * @param options Options to build the HTTP request\n */\n async delete(options) {\n return this.request(Object.assign(Object.assign({}, options), { method: 'DELETE' }));\n }\n}\nconst CapacitorHttp = registerPlugin('CapacitorHttp', {\n web: () => new CapacitorHttpPluginWeb(),\n});\n/******** END HTTP PLUGIN ********/\n/******** SYSTEM BARS PLUGIN ********/\n/**\n * Available status bar styles.\n */\nvar SystemBarsStyle;\n(function (SystemBarsStyle) {\n /**\n * Light system bar content on a dark background.\n *\n * @since 8.0.0\n */\n SystemBarsStyle[\"Dark\"] = \"DARK\";\n /**\n * For dark system bar content on a light background.\n *\n * @since 8.0.0\n */\n SystemBarsStyle[\"Light\"] = \"LIGHT\";\n /**\n * The style is based on the device appearance or the underlying content.\n * If the device is using Dark mode, the system bars content will be light.\n * If the device is using Light mode, the system bars content will be dark.\n *\n * @since 8.0.0\n */\n SystemBarsStyle[\"Default\"] = \"DEFAULT\";\n})(SystemBarsStyle || (SystemBarsStyle = {}));\n/**\n * Available system bar types.\n */\nvar SystemBarType;\n(function (SystemBarType) {\n /**\n * The top status bar on both Android and iOS.\n *\n * @since 8.0.0\n */\n SystemBarType[\"StatusBar\"] = \"StatusBar\";\n /**\n * The navigation bar (or gesture bar on iOS) on both Android and iOS.\n *\n * @since 8.0.0\n */\n SystemBarType[\"NavigationBar\"] = \"NavigationBar\";\n})(SystemBarType || (SystemBarType = {}));\nclass SystemBarsPluginWeb extends WebPlugin {\n async setStyle() {\n this.unavailable('not available for web');\n }\n async setAnimation() {\n this.unavailable('not available for web');\n }\n async show() {\n this.unavailable('not available for web');\n }\n async hide() {\n this.unavailable('not available for web');\n }\n}\nconst SystemBars = registerPlugin('SystemBars', {\n web: () => new SystemBarsPluginWeb(),\n});\n/******** END SYSTEM BARS PLUGIN ********/\n\nexport { Capacitor, CapacitorCookies, CapacitorException, CapacitorHttp, ExceptionCode, SystemBarType, SystemBars, SystemBarsStyle, WebPlugin, WebView, buildRequestInit, registerPlugin };\n//# sourceMappingURL=index.js.map\n"],"x_google_ignoreList":[0],"mappings":";AACA,IAAI;CACH,SAAU,GAAe;CAetB,AARA,EAAc,gBAAmB,iBAQjC,EAAc,cAAiB;AACnC,GAAG,AAAkB,MAAgB,CAAC,CAAE;AACxC,IAAM,IAAN,cAAiC,MAAM;CACnC,YAAY,GAAS,GAAM,GAAM;EAI7B,AAHA,MAAM,CAAO,GACb,KAAK,UAAU,GACf,KAAK,OAAO,GACZ,KAAK,OAAO;CAChB;AACJ,GACM,KAAiB,MAEf,GAA8C,gBACvC,YAEU,GAA8C,QAAgD,iBAAyD,SACjK,QAGA,OAIT,KAAmB,MAAQ;CAC7B,IAAM,IAAoB,EAAI,2BAA2B,MACnD,IAAM,EAAI,aAAa,CAAC,GACxB,IAAW,EAAI,UAAU,EAAI,WAAW,CAAC,GACzC,UACK,MAAsB,OAAgC,EAAc,CAAG,IAA1C,EAAkB,MAEpD,UAAyB,EAAY,MAAM,OAC3C,KAAqB,MAMvB,GALe,EAAkB,IAAI,CACjC,GAAuD,UAAU,IAAI,EAAY,CAAC,KAIlF,EAAgB,CAAU,IAM5B,KAAmB,MAAsC,EAAI,eAAuD,MAAM,MAAM,EAAE,SAAS,CAAU,GACrJ,KAAe,MAAQ,EAAI,QAAQ,MAAM,CAAG,GAC5C,oBAAoB,IAAI,IAAI;CAmIlC,OAXA,AACI,EAAI,oBAAkB,MAAa,GAEvC,EAAI,cAAc,GAClB,EAAI,cAAc,GAClB,EAAI,mBAAmB,GACvB,EAAI,oBAAoB,GACxB,EAAI,kBA9HoB,GAAY,IAAoB,CAAC,MAAM;EAC3D,IAAM,IAAmB,EAAkB,IAAI,CAAU;EACzD,IAAI,GAEA,OADA,QAAQ,KAAK,qBAAqB,EAAW,qDAAqD,GAC3F,EAAiB;EAE5B,IAAM,IAAW,EAAY,GACvB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",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.825.2",
|
|
4
4
|
"description": "Billing microfrontend for Burdenoff products",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"types": "./dist/index.d.ts",
|
|
23
23
|
"scripts": {
|
|
24
24
|
"dev": "vite",
|
|
25
|
-
"build": "tsc && bash scripts/build-limits.sh --gate vite build",
|
|
25
|
+
"build": "tsc && bash scripts/build-limits.sh --gate vite build && bun scripts/check-tailwind-candidates.ts",
|
|
26
26
|
"schema:pull": "graphql-codegen --project schema-wspace && graphql-codegen --project schema-global",
|
|
27
27
|
"codegen": "graphql-codegen --project wspace && graphql-codegen --project global",
|
|
28
28
|
"codegen:all": "bun run schema:pull && bun run codegen",
|
|
@@ -67,21 +67,21 @@
|
|
|
67
67
|
"@graphql-codegen/typescript-react-apollo": "^4.0.0",
|
|
68
68
|
"@types/react": "^19.0.2",
|
|
69
69
|
"@types/react-dom": "^19.0.2",
|
|
70
|
-
"@vitejs/plugin-react": "^
|
|
71
|
-
"@vitest/coverage-v8": "^
|
|
70
|
+
"@vitejs/plugin-react": "^5.2.0",
|
|
71
|
+
"@vitest/coverage-v8": "^4.1.11",
|
|
72
72
|
"autoprefixer": "^10.4.20",
|
|
73
73
|
"eslint": "^9.18.0",
|
|
74
74
|
"eslint-plugin-react": "^7.37.5",
|
|
75
75
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
76
76
|
"lefthook": "^2.1.1",
|
|
77
|
-
"postcss": "^8.
|
|
77
|
+
"postcss": "^8.5.26",
|
|
78
78
|
"prettier": "^3.4.2",
|
|
79
79
|
"tailwindcss": "^4.0.0",
|
|
80
80
|
"typescript": "^5.9.0",
|
|
81
81
|
"typescript-eslint": "^8.46.0",
|
|
82
|
-
"vite": "8.0.
|
|
83
|
-
"vite-plugin-dts": "
|
|
84
|
-
"vitest": "^
|
|
82
|
+
"vite": "8.0.16",
|
|
83
|
+
"vite-plugin-dts": "^5.0.3",
|
|
84
|
+
"vitest": "^4.1.11"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
87
|
"@apollo/client": "^4.0.9",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"fast-xml-parser": ">=4.5.5",
|
|
100
100
|
"@xmldom/xmldom": ">=0.8.12",
|
|
101
101
|
"swiper": ">=12.1.2",
|
|
102
|
-
"brace-expansion": "
|
|
102
|
+
"brace-expansion": "5.0.9",
|
|
103
103
|
"follow-redirects": ">=1.15.12",
|
|
104
104
|
"smol-toml": ">=1.6.1",
|
|
105
105
|
"axios": ">=1.15.0",
|
|
@@ -107,6 +107,9 @@
|
|
|
107
107
|
"yaml": ">=2.8.3",
|
|
108
108
|
"picomatch": ">=2.3.2",
|
|
109
109
|
"immutable": ">=3.8.3",
|
|
110
|
-
"minimatch": ">=3.1.3"
|
|
110
|
+
"minimatch": ">=3.1.3",
|
|
111
|
+
"ajv": ">=6.14.0",
|
|
112
|
+
"js-yaml": ">=4.3.1",
|
|
113
|
+
"nanoid@^3.3.0": "3.3.16"
|
|
111
114
|
}
|
|
112
115
|
}
|