@bcrumbs.net/inbox 0.0.58 → 0.0.60

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.
Files changed (44) hide show
  1. package/{cb9c022b3cf80e0f.svg → 2998ffe42c3436c0.svg} +43 -43
  2. package/{594c01a9720e0657.svg → 396ba1d86a9997b1.svg} +42 -42
  3. package/assets/ar/inbox.json +268 -268
  4. package/assets/en/inbox.json +270 -270
  5. package/index.cjs.d.ts +1 -1
  6. package/index.cjs.js +9225 -9316
  7. package/index.esm.d.ts +1 -1
  8. package/index.esm.js +9228 -9319
  9. package/package.json +3 -3
  10. package/src/app/ai/components/Crumby/ChatView.d.ts +12 -0
  11. package/src/app/ai/components/Crumby/CrumbyComposer.d.ts +3 -0
  12. package/src/app/ai/components/Crumby/CrumbySendAction.d.ts +4 -0
  13. package/src/app/ai/components/Crumby/CrumbyWidget.d.ts +2 -0
  14. package/src/app/ai/components/Crumby/index.d.ts +1 -2
  15. package/src/app/auth/components/password-page/AuthPasswordPageLayout.d.ts +7 -0
  16. package/src/app/auth/components/password-page/ForgetPasswordFormView.d.ts +20 -0
  17. package/src/app/auth/components/password-page/PasswordFormView.d.ts +22 -0
  18. package/src/app/auth/components/password-page/PasswordSuccessView.d.ts +8 -0
  19. package/src/app/auth/pages/Forget.d.ts +0 -3
  20. package/src/app/broadcast/utils/helper.d.ts +2 -1
  21. package/src/app/dashboard/components/DashboardSections.d.ts +6 -2
  22. package/src/app/dashboard/components/OpenedChatsCard.d.ts +2 -1
  23. package/src/app/dashboard/components/TagPerformanceCard.d.ts +8 -0
  24. package/src/app/dashboard/utils/dateHelpers.d.ts +3 -0
  25. package/src/app/inbox/components/Chat/ChatContent.d.ts +1 -0
  26. package/src/app/inbox/components/Shared/SharedStyle.d.ts +0 -6
  27. package/src/app/inbox/hooks/useCanContribute.d.ts +3 -2
  28. package/src/app/layout/constants/index.d.ts +2 -1
  29. package/src/app/onboarding/components/OnboardingStepDetail.d.ts +10 -0
  30. package/src/app/onboarding/components/OnboardingView.d.ts +19 -0
  31. package/src/app/onboarding/components/onboardingStepGuide.d.ts +11 -0
  32. package/src/app/onboarding/components/useOnboardingChecklist.d.ts +30 -0
  33. package/src/app/onboarding/utils/onboardingChecklistStorage.d.ts +15 -2
  34. package/src/app/resources/components/Integrations/Facebook/PagePickerPopup.d.ts +1 -2
  35. package/src/app/resources/components/Integrations/Facebook/index.d.ts +3 -1
  36. package/src/app/resources/components/ListResources/Utils.d.ts +0 -1
  37. package/src/app/resources/hooks/useFBPagesHook.d.ts +1 -0
  38. package/src/app/subscriptions/components/SubscriptionSettings/SubscriptionUsers.d.ts +1 -1
  39. package/src/assets/locales/translations.d.ts +69 -1
  40. package/src/graphql.autogenerated.d.ts +192 -4
  41. package/src/graphql.billing.autogenerated.d.ts +171 -0
  42. package/src/utils/localStorage.d.ts +1 -0
  43. package/src/utils/zohoOAuth.d.ts +16 -0
  44. package/src/app/onboarding/components/OnboardingChecklistWidget.d.ts +0 -3
@@ -150,10 +150,16 @@ export type Mutation = {
150
150
  checkout: CheckoutResult;
151
151
  /** Pause the subscription. */
152
152
  pauseSubscription: SubscriptionPlan;
153
+ /** Cancel an existing Polar subscription at period end without opening the customer portal. */
154
+ polarCancelSubscription: PolarCancelSubscriptionResult;
153
155
  /** Create a Polar-hosted checkout session for purchasing a plan. */
154
156
  polarCheckout: PolarCheckoutResult;
155
157
  /** Create a Polar customer portal session for subscription management. */
156
158
  polarPortalSession: PolarPortalSessionResult;
159
+ /** Reactivate a Polar subscription scheduled for cancellation without opening the customer portal. */
160
+ polarReactivateSubscription: PolarReactivateSubscriptionResult;
161
+ /** Update an existing Polar subscription plan without opening the customer portal. */
162
+ polarUpdateSubscription: PolarUpdateSubscriptionResult;
157
163
  /** Renew the current subscription plan. */
158
164
  renew: CheckoutResult;
159
165
  /** Set up a new payment method (creates a setup intent). */
@@ -176,12 +182,21 @@ export type MutationCheckoutArgs = {
176
182
  export type MutationPauseSubscriptionArgs = {
177
183
  input: PauseSubscriptionInput;
178
184
  };
185
+ export type MutationPolarCancelSubscriptionArgs = {
186
+ input: PolarCancelSubscriptionInput;
187
+ };
179
188
  export type MutationPolarCheckoutArgs = {
180
189
  input: PolarCheckoutInput;
181
190
  };
182
191
  export type MutationPolarPortalSessionArgs = {
183
192
  input: PolarPortalSessionInput;
184
193
  };
194
+ export type MutationPolarReactivateSubscriptionArgs = {
195
+ input: PolarReactivateSubscriptionInput;
196
+ };
197
+ export type MutationPolarUpdateSubscriptionArgs = {
198
+ input: PolarUpdateSubscriptionInput;
199
+ };
185
200
  export type MutationRenewArgs = {
186
201
  input: RenewInput;
187
202
  };
@@ -348,6 +363,18 @@ export declare const PlanType: {
348
363
  readonly PREMIUM: "premium";
349
364
  };
350
365
  export type PlanType = typeof PlanType[keyof typeof PlanType];
366
+ /** PolarCancelSubscriptionInput is an input for canceling an existing Polar subscription in-app. */
367
+ export type PolarCancelSubscriptionInput = {
368
+ workspaceId: Scalars['Int']['input'];
369
+ };
370
+ /** PolarCancelSubscriptionResult represents the result of canceling a Polar subscription. */
371
+ export type PolarCancelSubscriptionResult = {
372
+ __typename?: 'PolarCancelSubscriptionResult';
373
+ polarSubscriptionId: Scalars['String']['output'];
374
+ portalSessionUrl?: Maybe<Scalars['String']['output']>;
375
+ status?: Maybe<Scalars['String']['output']>;
376
+ success: Scalars['Boolean']['output'];
377
+ };
351
378
  /** PolarCheckoutInput is an input for creating a Polar-hosted checkout session. */
352
379
  export type PolarCheckoutInput = {
353
380
  planType: PlanType;
@@ -370,6 +397,18 @@ export type PolarPortalSessionResult = {
370
397
  sessionId: Scalars['String']['output'];
371
398
  sessionUrl: Scalars['String']['output'];
372
399
  };
400
+ /** PolarReactivateSubscriptionInput is an input for reactivating a Polar subscription scheduled for cancellation. */
401
+ export type PolarReactivateSubscriptionInput = {
402
+ workspaceId: Scalars['Int']['input'];
403
+ };
404
+ /** PolarReactivateSubscriptionResult represents the result of reactivating a Polar subscription. */
405
+ export type PolarReactivateSubscriptionResult = {
406
+ __typename?: 'PolarReactivateSubscriptionResult';
407
+ polarSubscriptionId: Scalars['String']['output'];
408
+ portalSessionUrl?: Maybe<Scalars['String']['output']>;
409
+ status?: Maybe<Scalars['String']['output']>;
410
+ success: Scalars['Boolean']['output'];
411
+ };
373
412
  /** PolarSessionLineItem represents a line item in a Polar checkout session. */
374
413
  export type PolarSessionLineItem = {
375
414
  __typename?: 'PolarSessionLineItem';
@@ -408,6 +447,21 @@ export type PolarSessionResult = {
408
447
  plan?: Maybe<PolarSessionPlanInfo>;
409
448
  subscriptionId?: Maybe<Scalars['String']['output']>;
410
449
  };
450
+ /** PolarUpdateSubscriptionInput is an input for updating an existing Polar subscription plan in-app. */
451
+ export type PolarUpdateSubscriptionInput = {
452
+ planType: PlanType;
453
+ term: Term;
454
+ workspaceId: Scalars['Int']['input'];
455
+ };
456
+ /** PolarUpdateSubscriptionResult represents the result of updating a Polar subscription plan. */
457
+ export type PolarUpdateSubscriptionResult = {
458
+ __typename?: 'PolarUpdateSubscriptionResult';
459
+ paymentRequired: Scalars['Boolean']['output'];
460
+ polarSubscriptionId: Scalars['String']['output'];
461
+ portalSessionUrl?: Maybe<Scalars['String']['output']>;
462
+ status?: Maybe<Scalars['String']['output']>;
463
+ success: Scalars['Boolean']['output'];
464
+ };
411
465
  export type Query = {
412
466
  __typename?: 'Query';
413
467
  /** Get billing info for a workspace. */
@@ -585,6 +639,7 @@ export type SubscriptionPlan = {
585
639
  paymentMethodId?: Maybe<Scalars['Int']['output']>;
586
640
  plan?: Maybe<Plan>;
587
641
  planId: Scalars['Int']['output'];
642
+ polarSubscriptionId?: Maybe<Scalars['String']['output']>;
588
643
  promoType?: Maybe<Scalars['String']['output']>;
589
644
  promoValue?: Maybe<Scalars['Float']['output']>;
590
645
  reactivationDate?: Maybe<Scalars['DateTime']['output']>;
@@ -849,6 +904,19 @@ export type PlanPricingQuery = {
849
904
  promoDiscount: number;
850
905
  };
851
906
  };
907
+ export type PolarCancelSubscriptionMutationVariables = Exact<{
908
+ input: PolarCancelSubscriptionInput;
909
+ }>;
910
+ export type PolarCancelSubscriptionMutation = {
911
+ __typename?: 'Mutation';
912
+ polarCancelSubscription: {
913
+ __typename?: 'PolarCancelSubscriptionResult';
914
+ success: boolean;
915
+ polarSubscriptionId: string;
916
+ status?: string | null;
917
+ portalSessionUrl?: string | null;
918
+ };
919
+ };
852
920
  export type PolarCheckoutMutationVariables = Exact<{
853
921
  input: PolarCheckoutInput;
854
922
  }>;
@@ -871,6 +939,33 @@ export type PolarPortalSessionMutation = {
871
939
  sessionUrl: string;
872
940
  };
873
941
  };
942
+ export type PolarReactivateSubscriptionMutationVariables = Exact<{
943
+ input: PolarReactivateSubscriptionInput;
944
+ }>;
945
+ export type PolarReactivateSubscriptionMutation = {
946
+ __typename?: 'Mutation';
947
+ polarReactivateSubscription: {
948
+ __typename?: 'PolarReactivateSubscriptionResult';
949
+ success: boolean;
950
+ polarSubscriptionId: string;
951
+ status?: string | null;
952
+ portalSessionUrl?: string | null;
953
+ };
954
+ };
955
+ export type PolarUpdateSubscriptionMutationVariables = Exact<{
956
+ input: PolarUpdateSubscriptionInput;
957
+ }>;
958
+ export type PolarUpdateSubscriptionMutation = {
959
+ __typename?: 'Mutation';
960
+ polarUpdateSubscription: {
961
+ __typename?: 'PolarUpdateSubscriptionResult';
962
+ success: boolean;
963
+ polarSubscriptionId: string;
964
+ status?: string | null;
965
+ paymentRequired: boolean;
966
+ portalSessionUrl?: string | null;
967
+ };
968
+ };
874
969
  export type RenewMutationVariables = Exact<{
875
970
  input: RenewInput;
876
971
  }>;
@@ -933,6 +1028,7 @@ export type SubscriptionQuery = {
933
1028
  workspaceId: number;
934
1029
  status?: SubscriptionStatus | null;
935
1030
  stripeCustomerId?: string | null;
1031
+ polarSubscriptionId?: string | null;
936
1032
  freeCredits: number;
937
1033
  planId: number;
938
1034
  term: Term;
@@ -1457,6 +1553,31 @@ export declare function refetchPlanPricingQuery(variables: PlanPricingQueryVaria
1457
1553
  input: PlanPricingInput;
1458
1554
  }>;
1459
1555
  };
1556
+ export declare const PolarCancelSubscriptionDocument: Apollo.DocumentNode;
1557
+ export type PolarCancelSubscriptionMutationFn = Apollo.MutationFunction<PolarCancelSubscriptionMutation, PolarCancelSubscriptionMutationVariables>;
1558
+ /**
1559
+ * __usePolarCancelSubscriptionMutation__
1560
+ *
1561
+ * To run a mutation, you first call `usePolarCancelSubscriptionMutation` within a React component and pass it any options that fit your needs.
1562
+ * When your component renders, `usePolarCancelSubscriptionMutation` returns a tuple that includes:
1563
+ * - A mutate function that you can call at any time to execute the mutation
1564
+ * - An object with fields that represent the current status of the mutation's execution
1565
+ *
1566
+ * @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;
1567
+ *
1568
+ * @example
1569
+ * const [polarCancelSubscriptionMutation, { data, loading, error }] = usePolarCancelSubscriptionMutation({
1570
+ * variables: {
1571
+ * input: // value for 'input'
1572
+ * },
1573
+ * });
1574
+ */
1575
+ export declare function usePolarCancelSubscriptionMutation(baseOptions?: Apollo.MutationHookOptions<PolarCancelSubscriptionMutation, PolarCancelSubscriptionMutationVariables>): Apollo.MutationTuple<PolarCancelSubscriptionMutation, Exact<{
1576
+ input: PolarCancelSubscriptionInput;
1577
+ }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
1578
+ export type PolarCancelSubscriptionMutationHookResult = ReturnType<typeof usePolarCancelSubscriptionMutation>;
1579
+ export type PolarCancelSubscriptionMutationResult = Apollo.MutationResult<PolarCancelSubscriptionMutation>;
1580
+ export type PolarCancelSubscriptionMutationOptions = Apollo.BaseMutationOptions<PolarCancelSubscriptionMutation, PolarCancelSubscriptionMutationVariables>;
1460
1581
  export declare const PolarCheckoutDocument: Apollo.DocumentNode;
1461
1582
  export type PolarCheckoutMutationFn = Apollo.MutationFunction<PolarCheckoutMutation, PolarCheckoutMutationVariables>;
1462
1583
  /**
@@ -1507,6 +1628,56 @@ export declare function usePolarPortalSessionMutation(baseOptions?: Apollo.Mutat
1507
1628
  export type PolarPortalSessionMutationHookResult = ReturnType<typeof usePolarPortalSessionMutation>;
1508
1629
  export type PolarPortalSessionMutationResult = Apollo.MutationResult<PolarPortalSessionMutation>;
1509
1630
  export type PolarPortalSessionMutationOptions = Apollo.BaseMutationOptions<PolarPortalSessionMutation, PolarPortalSessionMutationVariables>;
1631
+ export declare const PolarReactivateSubscriptionDocument: Apollo.DocumentNode;
1632
+ export type PolarReactivateSubscriptionMutationFn = Apollo.MutationFunction<PolarReactivateSubscriptionMutation, PolarReactivateSubscriptionMutationVariables>;
1633
+ /**
1634
+ * __usePolarReactivateSubscriptionMutation__
1635
+ *
1636
+ * To run a mutation, you first call `usePolarReactivateSubscriptionMutation` within a React component and pass it any options that fit your needs.
1637
+ * When your component renders, `usePolarReactivateSubscriptionMutation` returns a tuple that includes:
1638
+ * - A mutate function that you can call at any time to execute the mutation
1639
+ * - An object with fields that represent the current status of the mutation's execution
1640
+ *
1641
+ * @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;
1642
+ *
1643
+ * @example
1644
+ * const [polarReactivateSubscriptionMutation, { data, loading, error }] = usePolarReactivateSubscriptionMutation({
1645
+ * variables: {
1646
+ * input: // value for 'input'
1647
+ * },
1648
+ * });
1649
+ */
1650
+ export declare function usePolarReactivateSubscriptionMutation(baseOptions?: Apollo.MutationHookOptions<PolarReactivateSubscriptionMutation, PolarReactivateSubscriptionMutationVariables>): Apollo.MutationTuple<PolarReactivateSubscriptionMutation, Exact<{
1651
+ input: PolarReactivateSubscriptionInput;
1652
+ }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
1653
+ export type PolarReactivateSubscriptionMutationHookResult = ReturnType<typeof usePolarReactivateSubscriptionMutation>;
1654
+ export type PolarReactivateSubscriptionMutationResult = Apollo.MutationResult<PolarReactivateSubscriptionMutation>;
1655
+ export type PolarReactivateSubscriptionMutationOptions = Apollo.BaseMutationOptions<PolarReactivateSubscriptionMutation, PolarReactivateSubscriptionMutationVariables>;
1656
+ export declare const PolarUpdateSubscriptionDocument: Apollo.DocumentNode;
1657
+ export type PolarUpdateSubscriptionMutationFn = Apollo.MutationFunction<PolarUpdateSubscriptionMutation, PolarUpdateSubscriptionMutationVariables>;
1658
+ /**
1659
+ * __usePolarUpdateSubscriptionMutation__
1660
+ *
1661
+ * To run a mutation, you first call `usePolarUpdateSubscriptionMutation` within a React component and pass it any options that fit your needs.
1662
+ * When your component renders, `usePolarUpdateSubscriptionMutation` returns a tuple that includes:
1663
+ * - A mutate function that you can call at any time to execute the mutation
1664
+ * - An object with fields that represent the current status of the mutation's execution
1665
+ *
1666
+ * @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;
1667
+ *
1668
+ * @example
1669
+ * const [polarUpdateSubscriptionMutation, { data, loading, error }] = usePolarUpdateSubscriptionMutation({
1670
+ * variables: {
1671
+ * input: // value for 'input'
1672
+ * },
1673
+ * });
1674
+ */
1675
+ export declare function usePolarUpdateSubscriptionMutation(baseOptions?: Apollo.MutationHookOptions<PolarUpdateSubscriptionMutation, PolarUpdateSubscriptionMutationVariables>): Apollo.MutationTuple<PolarUpdateSubscriptionMutation, Exact<{
1676
+ input: PolarUpdateSubscriptionInput;
1677
+ }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
1678
+ export type PolarUpdateSubscriptionMutationHookResult = ReturnType<typeof usePolarUpdateSubscriptionMutation>;
1679
+ export type PolarUpdateSubscriptionMutationResult = Apollo.MutationResult<PolarUpdateSubscriptionMutation>;
1680
+ export type PolarUpdateSubscriptionMutationOptions = Apollo.BaseMutationOptions<PolarUpdateSubscriptionMutation, PolarUpdateSubscriptionMutationVariables>;
1510
1681
  export declare const RenewDocument: Apollo.DocumentNode;
1511
1682
  export type RenewMutationFn = Apollo.MutationFunction<RenewMutation, RenewMutationVariables>;
1512
1683
  /**
@@ -4,6 +4,7 @@ export declare const LOCAL_STORAGE_ITEMS: {
4
4
  SELECTED_CLIENT_ID: string;
5
5
  SELECTED_CONV_FILTER: string;
6
6
  };
7
+ export declare const SHOWCASE_LOCAL_STORAGE_CHANGED_EVENT = "showcase-local-storage-changed";
7
8
  declare const _default: {
8
9
  get(key: string): any;
9
10
  set(key: string, value: unknown): void;
@@ -0,0 +1,16 @@
1
+ export declare class ZohoOAuthExchangeError extends Error {
2
+ readonly zohoError?: string | undefined;
3
+ readonly httpStatus?: number | undefined;
4
+ constructor(message: string, zohoError?: string | undefined, httpStatus?: number | undefined);
5
+ }
6
+ export declare function isZohoInvalidCodeError(error: unknown): boolean;
7
+ /**
8
+ * Exchange a Zoho authorization code for a refresh token via the adapter service.
9
+ */
10
+ export declare function exchangeZohoAuthorizationCodeForRefreshToken(input: {
11
+ code: string;
12
+ accountsBaseUrl: string;
13
+ clientId: string;
14
+ clientSecret: string;
15
+ redirectUri?: string;
16
+ }): Promise<string>;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const OnboardingChecklistWidget: () => import("react").ReactPortal | null;
3
- export default OnboardingChecklistWidget;