@bcrumbs.net/inbox 0.0.58 → 0.0.59
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/{cb9c022b3cf80e0f.svg → 2998ffe42c3436c0.svg} +43 -43
- package/{594c01a9720e0657.svg → 396ba1d86a9997b1.svg} +42 -42
- package/assets/ar/inbox.json +268 -268
- package/assets/en/inbox.json +270 -270
- package/index.cjs.d.ts +1 -1
- package/index.cjs.js +9159 -9314
- package/index.esm.d.ts +1 -1
- package/index.esm.js +9162 -9317
- package/package.json +3 -3
- package/src/app/broadcast/utils/helper.d.ts +2 -1
- package/src/app/dashboard/components/DashboardSections.d.ts +6 -2
- package/src/app/dashboard/components/OpenedChatsCard.d.ts +2 -1
- package/src/app/dashboard/components/TagPerformanceCard.d.ts +8 -0
- package/src/app/dashboard/utils/dateHelpers.d.ts +3 -0
- package/src/app/inbox/components/Chat/ChatContent.d.ts +1 -0
- package/src/app/inbox/components/Shared/SharedStyle.d.ts +0 -6
- package/src/app/inbox/hooks/useCanContribute.d.ts +3 -2
- package/src/app/resources/components/Integrations/Facebook/PagePickerPopup.d.ts +1 -2
- package/src/app/resources/components/Integrations/Facebook/index.d.ts +3 -1
- package/src/app/resources/components/ListResources/Utils.d.ts +0 -1
- package/src/app/resources/hooks/useFBPagesHook.d.ts +1 -0
- package/src/app/subscriptions/components/SubscriptionSettings/SubscriptionUsers.d.ts +1 -1
- package/src/assets/locales/translations.d.ts +25 -0
- package/src/graphql.autogenerated.d.ts +146 -1
- package/src/graphql.billing.autogenerated.d.ts +169 -0
- package/src/utils/zohoOAuth.d.ts +16 -0
|
@@ -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. */
|
|
@@ -849,6 +903,19 @@ export type PlanPricingQuery = {
|
|
|
849
903
|
promoDiscount: number;
|
|
850
904
|
};
|
|
851
905
|
};
|
|
906
|
+
export type PolarCancelSubscriptionMutationVariables = Exact<{
|
|
907
|
+
input: PolarCancelSubscriptionInput;
|
|
908
|
+
}>;
|
|
909
|
+
export type PolarCancelSubscriptionMutation = {
|
|
910
|
+
__typename?: 'Mutation';
|
|
911
|
+
polarCancelSubscription: {
|
|
912
|
+
__typename?: 'PolarCancelSubscriptionResult';
|
|
913
|
+
success: boolean;
|
|
914
|
+
polarSubscriptionId: string;
|
|
915
|
+
status?: string | null;
|
|
916
|
+
portalSessionUrl?: string | null;
|
|
917
|
+
};
|
|
918
|
+
};
|
|
852
919
|
export type PolarCheckoutMutationVariables = Exact<{
|
|
853
920
|
input: PolarCheckoutInput;
|
|
854
921
|
}>;
|
|
@@ -871,6 +938,33 @@ export type PolarPortalSessionMutation = {
|
|
|
871
938
|
sessionUrl: string;
|
|
872
939
|
};
|
|
873
940
|
};
|
|
941
|
+
export type PolarReactivateSubscriptionMutationVariables = Exact<{
|
|
942
|
+
input: PolarReactivateSubscriptionInput;
|
|
943
|
+
}>;
|
|
944
|
+
export type PolarReactivateSubscriptionMutation = {
|
|
945
|
+
__typename?: 'Mutation';
|
|
946
|
+
polarReactivateSubscription: {
|
|
947
|
+
__typename?: 'PolarReactivateSubscriptionResult';
|
|
948
|
+
success: boolean;
|
|
949
|
+
polarSubscriptionId: string;
|
|
950
|
+
status?: string | null;
|
|
951
|
+
portalSessionUrl?: string | null;
|
|
952
|
+
};
|
|
953
|
+
};
|
|
954
|
+
export type PolarUpdateSubscriptionMutationVariables = Exact<{
|
|
955
|
+
input: PolarUpdateSubscriptionInput;
|
|
956
|
+
}>;
|
|
957
|
+
export type PolarUpdateSubscriptionMutation = {
|
|
958
|
+
__typename?: 'Mutation';
|
|
959
|
+
polarUpdateSubscription: {
|
|
960
|
+
__typename?: 'PolarUpdateSubscriptionResult';
|
|
961
|
+
success: boolean;
|
|
962
|
+
polarSubscriptionId: string;
|
|
963
|
+
status?: string | null;
|
|
964
|
+
paymentRequired: boolean;
|
|
965
|
+
portalSessionUrl?: string | null;
|
|
966
|
+
};
|
|
967
|
+
};
|
|
874
968
|
export type RenewMutationVariables = Exact<{
|
|
875
969
|
input: RenewInput;
|
|
876
970
|
}>;
|
|
@@ -1457,6 +1551,31 @@ export declare function refetchPlanPricingQuery(variables: PlanPricingQueryVaria
|
|
|
1457
1551
|
input: PlanPricingInput;
|
|
1458
1552
|
}>;
|
|
1459
1553
|
};
|
|
1554
|
+
export declare const PolarCancelSubscriptionDocument: Apollo.DocumentNode;
|
|
1555
|
+
export type PolarCancelSubscriptionMutationFn = Apollo.MutationFunction<PolarCancelSubscriptionMutation, PolarCancelSubscriptionMutationVariables>;
|
|
1556
|
+
/**
|
|
1557
|
+
* __usePolarCancelSubscriptionMutation__
|
|
1558
|
+
*
|
|
1559
|
+
* To run a mutation, you first call `usePolarCancelSubscriptionMutation` within a React component and pass it any options that fit your needs.
|
|
1560
|
+
* When your component renders, `usePolarCancelSubscriptionMutation` returns a tuple that includes:
|
|
1561
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
1562
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
1563
|
+
*
|
|
1564
|
+
* @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;
|
|
1565
|
+
*
|
|
1566
|
+
* @example
|
|
1567
|
+
* const [polarCancelSubscriptionMutation, { data, loading, error }] = usePolarCancelSubscriptionMutation({
|
|
1568
|
+
* variables: {
|
|
1569
|
+
* input: // value for 'input'
|
|
1570
|
+
* },
|
|
1571
|
+
* });
|
|
1572
|
+
*/
|
|
1573
|
+
export declare function usePolarCancelSubscriptionMutation(baseOptions?: Apollo.MutationHookOptions<PolarCancelSubscriptionMutation, PolarCancelSubscriptionMutationVariables>): Apollo.MutationTuple<PolarCancelSubscriptionMutation, Exact<{
|
|
1574
|
+
input: PolarCancelSubscriptionInput;
|
|
1575
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
1576
|
+
export type PolarCancelSubscriptionMutationHookResult = ReturnType<typeof usePolarCancelSubscriptionMutation>;
|
|
1577
|
+
export type PolarCancelSubscriptionMutationResult = Apollo.MutationResult<PolarCancelSubscriptionMutation>;
|
|
1578
|
+
export type PolarCancelSubscriptionMutationOptions = Apollo.BaseMutationOptions<PolarCancelSubscriptionMutation, PolarCancelSubscriptionMutationVariables>;
|
|
1460
1579
|
export declare const PolarCheckoutDocument: Apollo.DocumentNode;
|
|
1461
1580
|
export type PolarCheckoutMutationFn = Apollo.MutationFunction<PolarCheckoutMutation, PolarCheckoutMutationVariables>;
|
|
1462
1581
|
/**
|
|
@@ -1507,6 +1626,56 @@ export declare function usePolarPortalSessionMutation(baseOptions?: Apollo.Mutat
|
|
|
1507
1626
|
export type PolarPortalSessionMutationHookResult = ReturnType<typeof usePolarPortalSessionMutation>;
|
|
1508
1627
|
export type PolarPortalSessionMutationResult = Apollo.MutationResult<PolarPortalSessionMutation>;
|
|
1509
1628
|
export type PolarPortalSessionMutationOptions = Apollo.BaseMutationOptions<PolarPortalSessionMutation, PolarPortalSessionMutationVariables>;
|
|
1629
|
+
export declare const PolarReactivateSubscriptionDocument: Apollo.DocumentNode;
|
|
1630
|
+
export type PolarReactivateSubscriptionMutationFn = Apollo.MutationFunction<PolarReactivateSubscriptionMutation, PolarReactivateSubscriptionMutationVariables>;
|
|
1631
|
+
/**
|
|
1632
|
+
* __usePolarReactivateSubscriptionMutation__
|
|
1633
|
+
*
|
|
1634
|
+
* To run a mutation, you first call `usePolarReactivateSubscriptionMutation` within a React component and pass it any options that fit your needs.
|
|
1635
|
+
* When your component renders, `usePolarReactivateSubscriptionMutation` returns a tuple that includes:
|
|
1636
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
1637
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
1638
|
+
*
|
|
1639
|
+
* @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;
|
|
1640
|
+
*
|
|
1641
|
+
* @example
|
|
1642
|
+
* const [polarReactivateSubscriptionMutation, { data, loading, error }] = usePolarReactivateSubscriptionMutation({
|
|
1643
|
+
* variables: {
|
|
1644
|
+
* input: // value for 'input'
|
|
1645
|
+
* },
|
|
1646
|
+
* });
|
|
1647
|
+
*/
|
|
1648
|
+
export declare function usePolarReactivateSubscriptionMutation(baseOptions?: Apollo.MutationHookOptions<PolarReactivateSubscriptionMutation, PolarReactivateSubscriptionMutationVariables>): Apollo.MutationTuple<PolarReactivateSubscriptionMutation, Exact<{
|
|
1649
|
+
input: PolarReactivateSubscriptionInput;
|
|
1650
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
1651
|
+
export type PolarReactivateSubscriptionMutationHookResult = ReturnType<typeof usePolarReactivateSubscriptionMutation>;
|
|
1652
|
+
export type PolarReactivateSubscriptionMutationResult = Apollo.MutationResult<PolarReactivateSubscriptionMutation>;
|
|
1653
|
+
export type PolarReactivateSubscriptionMutationOptions = Apollo.BaseMutationOptions<PolarReactivateSubscriptionMutation, PolarReactivateSubscriptionMutationVariables>;
|
|
1654
|
+
export declare const PolarUpdateSubscriptionDocument: Apollo.DocumentNode;
|
|
1655
|
+
export type PolarUpdateSubscriptionMutationFn = Apollo.MutationFunction<PolarUpdateSubscriptionMutation, PolarUpdateSubscriptionMutationVariables>;
|
|
1656
|
+
/**
|
|
1657
|
+
* __usePolarUpdateSubscriptionMutation__
|
|
1658
|
+
*
|
|
1659
|
+
* To run a mutation, you first call `usePolarUpdateSubscriptionMutation` within a React component and pass it any options that fit your needs.
|
|
1660
|
+
* When your component renders, `usePolarUpdateSubscriptionMutation` returns a tuple that includes:
|
|
1661
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
1662
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
1663
|
+
*
|
|
1664
|
+
* @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;
|
|
1665
|
+
*
|
|
1666
|
+
* @example
|
|
1667
|
+
* const [polarUpdateSubscriptionMutation, { data, loading, error }] = usePolarUpdateSubscriptionMutation({
|
|
1668
|
+
* variables: {
|
|
1669
|
+
* input: // value for 'input'
|
|
1670
|
+
* },
|
|
1671
|
+
* });
|
|
1672
|
+
*/
|
|
1673
|
+
export declare function usePolarUpdateSubscriptionMutation(baseOptions?: Apollo.MutationHookOptions<PolarUpdateSubscriptionMutation, PolarUpdateSubscriptionMutationVariables>): Apollo.MutationTuple<PolarUpdateSubscriptionMutation, Exact<{
|
|
1674
|
+
input: PolarUpdateSubscriptionInput;
|
|
1675
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
1676
|
+
export type PolarUpdateSubscriptionMutationHookResult = ReturnType<typeof usePolarUpdateSubscriptionMutation>;
|
|
1677
|
+
export type PolarUpdateSubscriptionMutationResult = Apollo.MutationResult<PolarUpdateSubscriptionMutation>;
|
|
1678
|
+
export type PolarUpdateSubscriptionMutationOptions = Apollo.BaseMutationOptions<PolarUpdateSubscriptionMutation, PolarUpdateSubscriptionMutationVariables>;
|
|
1510
1679
|
export declare const RenewDocument: Apollo.DocumentNode;
|
|
1511
1680
|
export type RenewMutationFn = Apollo.MutationFunction<RenewMutation, RenewMutationVariables>;
|
|
1512
1681
|
/**
|
|
@@ -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>;
|