@bcrumbs.net/inbox 0.0.42 → 0.0.44
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/351acdb5ea7901e1.png +0 -0
- package/594c01a9720e0657.svg +42 -0
- package/assets/ar/inbox.json +245 -238
- package/assets/en/inbox.json +247 -240
- package/cb9c022b3cf80e0f.svg +43 -0
- package/index.cjs.d.ts +1 -1
- package/index.cjs.js +2462 -3972
- package/index.esm.d.ts +1 -1
- package/index.esm.js +2466 -3976
- package/package.json +2 -2
- package/src/app/ai/components/playground/Button.d.ts +1 -1
- package/src/app/ai/components/playground/TooltipIconButton.d.ts +2 -2
- package/src/app/ai/components/sources/FileTable.d.ts +1 -0
- package/src/app/billing/constants/errorcodes.d.ts +1 -0
- package/src/app/billing/context/SubscriptionContext.d.ts +62 -0
- package/src/app/billing/context/index.d.ts +1 -0
- package/src/app/billing/hooks/index.d.ts +1 -0
- package/src/app/billing/hooks/useTurnstile.d.ts +51 -0
- package/src/app/billing/index.d.ts +3 -0
- package/src/app/broadcast/components/BroadcastAnalysisCharts.d.ts +2 -1
- package/src/app/broadcast/components/BroadcastAnalysisMessageStatusChart.d.ts +2 -1
- package/src/app/broadcast/components/BroadcastDetailsSection.d.ts +6 -1
- package/src/app/broadcast/components/BroadcastEstimitedCost.d.ts +3 -2
- package/src/app/broadcast/components/BroadcastInfoTemplateMessagePreview.d.ts +11 -0
- package/src/app/broadcast/components/BroadcastListTable.d.ts +4 -4
- package/src/app/broadcast/components/EmptyBroadcastList.d.ts +2 -1
- package/src/app/broadcast/components/MessagePreview.d.ts +24 -0
- package/src/app/contact/components/ContactFilterOptions.d.ts +3 -1
- package/src/app/contact/components/ContactInfo.d.ts +4 -2
- package/src/app/contact/config/contactDefinition.d.ts +1 -1
- package/src/app/contact/config/contactForm.d.ts +0 -30
- package/src/app/contact/config/contactLifeCycleDefinition.d.ts +1 -1
- package/src/app/generic/components/Containers.d.ts +1 -0
- package/src/app/generic/components/SelectionInfo.d.ts +9 -0
- package/src/app/generic/components/TemplateParameterInputs.d.ts +10 -0
- package/src/app/generic/hooks/useResourceColumns.d.ts +4 -2
- package/src/app/generic/hooks/useSelection.d.ts +8 -0
- package/src/app/generic/hooks/useWhatsAppTemplate.d.ts +21 -0
- package/src/app/generic/utils/logout.d.ts +1 -1
- package/src/app/inbox/components/Chat/ChatContent.d.ts +6 -2
- package/src/app/inbox/components/Chat/index.d.ts +6 -2
- package/src/app/inbox/components/Popups/InboxTemplateMessagePreview.d.ts +13 -0
- package/src/app/inbox/components/Popups/NewStartConv.d.ts +3 -1
- package/src/app/inbox/components/Shared/SharedStyle.d.ts +4 -0
- package/src/app/inbox/constants/index.d.ts +1 -0
- package/src/app/inbox/hooks/useConvActions.d.ts +1 -1
- package/src/app/inbox/hooks/useConversationsPerodicFetch.d.ts +3 -0
- package/src/app/inbox/utils/convs.d.ts +6 -2
- package/src/app/layout/hooks/useCrumbyEnabled.d.ts +1 -1
- package/src/app/managemnet/components/AddConversationLifeCycle.d.ts +6 -0
- package/src/app/managemnet/components/CreateAgentWrapper.d.ts +11 -0
- package/src/app/managemnet/components/CreateAiWrapper.d.ts +11 -0
- package/src/app/managemnet/components/CreateApiKey.d.ts +6 -0
- package/src/app/managemnet/components/CreateWebhook.d.ts +6 -0
- package/src/app/managemnet/components/GeneralSettingsLoader.d.ts +5 -0
- package/src/app/managemnet/config/agentDefinition.d.ts +1 -1
- package/src/app/managemnet/config/integrationDefinition.d.ts +1 -0
- package/src/app/{contact → managemnet/config}/types.d.ts +3 -0
- package/src/app/managemnet/pages/agents/index.d.ts +2 -0
- package/src/app/managemnet/pages/ais/index.d.ts +2 -0
- package/src/app/managemnet/pages/apiKeys/index.d.ts +2 -0
- package/src/app/managemnet/pages/channels/InstagramOAuthCallback.d.ts +2 -0
- package/src/app/managemnet/pages/channels/index.d.ts +2 -0
- package/src/app/managemnet/pages/conversationLifeCycle/index.d.ts +2 -0
- package/src/app/managemnet/pages/generalSettings/index.d.ts +2 -0
- package/src/app/managemnet/pages/webhooks/index.d.ts +2 -0
- package/src/app/resources/components/Integrations/Instagram/LoginPopup.d.ts +4 -0
- package/src/app/resources/components/Integrations/Instagram/constants.d.ts +3 -0
- package/src/app/resources/components/Integrations/Instagram/index.d.ts +4 -0
- package/src/app/resources/hooks/useInstagramHook.d.ts +5 -0
- package/src/assets/locales/translations.d.ts +94 -1
- package/src/environments/environment.beepmax.d.ts +2 -0
- package/src/environments/types.d.ts +1 -0
- package/src/graphql.autogenerated.d.ts +116 -2
- package/src/graphql.billing.autogenerated.d.ts +1163 -0
- package/src/utils/getActiveAiTypes.d.ts +1 -0
- package/src/utils/globalHelper.d.ts +2 -0
- package/src/utils/textUtils.d.ts +6 -0
- package/src/app/managemnet/types.d.ts +0 -61
- package/src/app/resources/config/agent.d.ts +0 -4
- package/src/app/resources/config/broadcast.d.ts +0 -4
- package/src/app/resources/config/client.d.ts +0 -4
- package/src/app/resources/config/clientStage.d.ts +0 -4
- /package/src/app/{resources/config/ai.d.ts → managemnet/config/aiDefinition.d.ts} +0 -0
- /package/src/app/{resources/config/apiKey.d.ts → managemnet/config/apiKeyDefinition.d.ts} +0 -0
- /package/src/app/{resources/config/convStage.d.ts → managemnet/config/conversationLifeCycleDefinition.d.ts} +0 -0
- /package/src/app/{resources/config/webhook.d.ts → managemnet/config/webhookDefinition.d.ts} +0 -0
|
@@ -0,0 +1,1163 @@
|
|
|
1
|
+
import * as Apollo from '@apollo/client';
|
|
2
|
+
export type Maybe<T> = T | null;
|
|
3
|
+
export type InputMaybe<T> = Maybe<T>;
|
|
4
|
+
export type Exact<T extends {
|
|
5
|
+
[key: string]: unknown;
|
|
6
|
+
}> = {
|
|
7
|
+
[K in keyof T]: T[K];
|
|
8
|
+
};
|
|
9
|
+
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
|
|
10
|
+
[SubKey in K]?: Maybe<T[SubKey]>;
|
|
11
|
+
};
|
|
12
|
+
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
|
|
13
|
+
[SubKey in K]: Maybe<T[SubKey]>;
|
|
14
|
+
};
|
|
15
|
+
export type MakeEmpty<T extends {
|
|
16
|
+
[key: string]: unknown;
|
|
17
|
+
}, K extends keyof T> = {
|
|
18
|
+
[_ in K]?: never;
|
|
19
|
+
};
|
|
20
|
+
export type Incremental<T> = T | {
|
|
21
|
+
[P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never;
|
|
22
|
+
};
|
|
23
|
+
/** All built-in and custom scalars, mapped to their actual values */
|
|
24
|
+
export type Scalars = {
|
|
25
|
+
ID: {
|
|
26
|
+
input: string;
|
|
27
|
+
output: string;
|
|
28
|
+
};
|
|
29
|
+
String: {
|
|
30
|
+
input: string;
|
|
31
|
+
output: string;
|
|
32
|
+
};
|
|
33
|
+
Boolean: {
|
|
34
|
+
input: boolean;
|
|
35
|
+
output: boolean;
|
|
36
|
+
};
|
|
37
|
+
Int: {
|
|
38
|
+
input: number;
|
|
39
|
+
output: number;
|
|
40
|
+
};
|
|
41
|
+
Float: {
|
|
42
|
+
input: number;
|
|
43
|
+
output: number;
|
|
44
|
+
};
|
|
45
|
+
BigInt: {
|
|
46
|
+
input: any;
|
|
47
|
+
output: any;
|
|
48
|
+
};
|
|
49
|
+
CountryCode: {
|
|
50
|
+
input: any;
|
|
51
|
+
output: any;
|
|
52
|
+
};
|
|
53
|
+
Date: {
|
|
54
|
+
input: any;
|
|
55
|
+
output: any;
|
|
56
|
+
};
|
|
57
|
+
DateTime: {
|
|
58
|
+
input: any;
|
|
59
|
+
output: any;
|
|
60
|
+
};
|
|
61
|
+
EmailAddress: {
|
|
62
|
+
input: any;
|
|
63
|
+
output: any;
|
|
64
|
+
};
|
|
65
|
+
JSON: {
|
|
66
|
+
input: any;
|
|
67
|
+
output: any;
|
|
68
|
+
};
|
|
69
|
+
PhoneNumber: {
|
|
70
|
+
input: any;
|
|
71
|
+
output: any;
|
|
72
|
+
};
|
|
73
|
+
Timestamp: {
|
|
74
|
+
input: any;
|
|
75
|
+
output: any;
|
|
76
|
+
};
|
|
77
|
+
URL: {
|
|
78
|
+
input: any;
|
|
79
|
+
output: any;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
/** BillingInfo represents billing/company information for a workspace. */
|
|
83
|
+
export type BillingInfo = {
|
|
84
|
+
__typename?: 'BillingInfo';
|
|
85
|
+
address?: Maybe<Scalars['String']['output']>;
|
|
86
|
+
billingEmail?: Maybe<Scalars['String']['output']>;
|
|
87
|
+
createdAt: Scalars['DateTime']['output'];
|
|
88
|
+
id: Scalars['Int']['output'];
|
|
89
|
+
name?: Maybe<Scalars['String']['output']>;
|
|
90
|
+
updatedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
91
|
+
workspaceId: Scalars['Int']['output'];
|
|
92
|
+
};
|
|
93
|
+
/** BillingInfoInput is an input for the billingInfo query. */
|
|
94
|
+
export type BillingInfoInput = {
|
|
95
|
+
workspaceId: Scalars['Int']['input'];
|
|
96
|
+
};
|
|
97
|
+
/** CancelPendingPaymentInput is an input for cancelling a pending payment. */
|
|
98
|
+
export type CancelPendingPaymentInput = {
|
|
99
|
+
id: Scalars['Int']['input'];
|
|
100
|
+
workspaceId: Scalars['Int']['input'];
|
|
101
|
+
};
|
|
102
|
+
/** CancelPendingPaymentResult represents the result of cancelling a pending payment. */
|
|
103
|
+
export type CancelPendingPaymentResult = {
|
|
104
|
+
__typename?: 'CancelPendingPaymentResult';
|
|
105
|
+
failureReason?: Maybe<Scalars['String']['output']>;
|
|
106
|
+
id: Scalars['Int']['output'];
|
|
107
|
+
status: PendingPaymentStatus;
|
|
108
|
+
};
|
|
109
|
+
/** CheckoutInput is an input for purchasing a new plan. */
|
|
110
|
+
export type CheckoutInput = {
|
|
111
|
+
paymentMethod?: InputMaybe<Scalars['String']['input']>;
|
|
112
|
+
planType: PlanType;
|
|
113
|
+
term: Term;
|
|
114
|
+
turnstile?: InputMaybe<Scalars['String']['input']>;
|
|
115
|
+
workspaceId: Scalars['Int']['input'];
|
|
116
|
+
};
|
|
117
|
+
/** CheckoutResult represents the result of a checkout. */
|
|
118
|
+
export type CheckoutResult = {
|
|
119
|
+
__typename?: 'CheckoutResult';
|
|
120
|
+
amount?: Maybe<Scalars['Float']['output']>;
|
|
121
|
+
paymentRequired: Scalars['Boolean']['output'];
|
|
122
|
+
pendingPaymentId?: Maybe<Scalars['Int']['output']>;
|
|
123
|
+
planId?: Maybe<Scalars['Int']['output']>;
|
|
124
|
+
stripeClientSecret?: Maybe<Scalars['String']['output']>;
|
|
125
|
+
stripePaymentIntent?: Maybe<Scalars['String']['output']>;
|
|
126
|
+
stripePaymentMethod?: Maybe<Scalars['String']['output']>;
|
|
127
|
+
transactionId?: Maybe<Scalars['Int']['output']>;
|
|
128
|
+
};
|
|
129
|
+
/**
|
|
130
|
+
* ErrorCode is an enum for the error codes.
|
|
131
|
+
* - UNAUTHENTICATED: The user is not authenticated.
|
|
132
|
+
* - FILE_UPLOAD_ERROR: a file upload error.
|
|
133
|
+
* - FORBIDDEN: The user is forbidden to access the resource.
|
|
134
|
+
* - FILE_NOT_FOUND: The file not found.
|
|
135
|
+
* - RATE_LIMIT_ERROR: The rate limit error.
|
|
136
|
+
*/
|
|
137
|
+
export declare const ErrorCode: {
|
|
138
|
+
readonly FILE_NOT_FOUND: "FILE_NOT_FOUND";
|
|
139
|
+
readonly FILE_UPLOAD_ERROR: "FILE_UPLOAD_ERROR";
|
|
140
|
+
readonly FORBIDDEN: "FORBIDDEN";
|
|
141
|
+
readonly RATE_LIMIT_ERROR: "RATE_LIMIT_ERROR";
|
|
142
|
+
readonly UNAUTHENTICATED: "UNAUTHENTICATED";
|
|
143
|
+
};
|
|
144
|
+
export type ErrorCode = typeof ErrorCode[keyof typeof ErrorCode];
|
|
145
|
+
export type Mutation = {
|
|
146
|
+
__typename?: 'Mutation';
|
|
147
|
+
/** Cancel a pending payment (only works if status is pending). */
|
|
148
|
+
cancelPendingPayment: CancelPendingPaymentResult;
|
|
149
|
+
/** Purchase a new plan (checkout). */
|
|
150
|
+
checkout: CheckoutResult;
|
|
151
|
+
/** Renew the current subscription plan. */
|
|
152
|
+
renew: CheckoutResult;
|
|
153
|
+
/** Set up a new payment method (creates a setup intent). */
|
|
154
|
+
setupPaymentMethod: SetupPaymentMethodResult;
|
|
155
|
+
/** Create or update billing info for a workspace. */
|
|
156
|
+
updateBillingInfo: BillingInfo;
|
|
157
|
+
};
|
|
158
|
+
export type MutationCancelPendingPaymentArgs = {
|
|
159
|
+
input: CancelPendingPaymentInput;
|
|
160
|
+
};
|
|
161
|
+
export type MutationCheckoutArgs = {
|
|
162
|
+
input: CheckoutInput;
|
|
163
|
+
};
|
|
164
|
+
export type MutationRenewArgs = {
|
|
165
|
+
input: RenewInput;
|
|
166
|
+
};
|
|
167
|
+
export type MutationSetupPaymentMethodArgs = {
|
|
168
|
+
input: SetupPaymentMethodInput;
|
|
169
|
+
};
|
|
170
|
+
export type MutationUpdateBillingInfoArgs = {
|
|
171
|
+
input: UpdateBillingInfoInput;
|
|
172
|
+
};
|
|
173
|
+
/** PageInfo is a type for the page info. It is used to paginate the results. */
|
|
174
|
+
export type PageInfo = {
|
|
175
|
+
__typename?: 'PageInfo';
|
|
176
|
+
/** The total count of the results. */
|
|
177
|
+
count?: Maybe<Scalars['Int']['output']>;
|
|
178
|
+
/** The cursor to the next page. It is used to fetch the next page. */
|
|
179
|
+
endCursor?: Maybe<Scalars['Timestamp']['output']>;
|
|
180
|
+
/** Indicates if there are more pages to fetch. */
|
|
181
|
+
hasNextPage: Scalars['Boolean']['output'];
|
|
182
|
+
};
|
|
183
|
+
/** PageInfoInput is an input for the page info. It is used to paginate the results. */
|
|
184
|
+
export type PageInfoInput = {
|
|
185
|
+
/**
|
|
186
|
+
* Whether to return the total count of the results.
|
|
187
|
+
* If true, the total count of the results will be returned in the response.
|
|
188
|
+
*/
|
|
189
|
+
count?: InputMaybe<Scalars['Boolean']['input']>;
|
|
190
|
+
/** The cursor to the next page. It is used to fetch the next page. */
|
|
191
|
+
cursor?: InputMaybe<Scalars['Timestamp']['input']>;
|
|
192
|
+
/** The limit of the results (Number of items per page, default is 100). */
|
|
193
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
194
|
+
/** The query to filter the results. */
|
|
195
|
+
query?: InputMaybe<Scalars['String']['input']>;
|
|
196
|
+
};
|
|
197
|
+
/** PaymentMethod represents a payment method linked to a workspace. */
|
|
198
|
+
export type PaymentMethod = {
|
|
199
|
+
__typename?: 'PaymentMethod';
|
|
200
|
+
creationTime: Scalars['DateTime']['output'];
|
|
201
|
+
id: Scalars['Int']['output'];
|
|
202
|
+
paymentMethodType: Scalars['String']['output'];
|
|
203
|
+
removed: Scalars['Boolean']['output'];
|
|
204
|
+
stripeCard?: Maybe<StripeCard>;
|
|
205
|
+
successfullyProcessed: Scalars['Boolean']['output'];
|
|
206
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
207
|
+
userId: Scalars['String']['output'];
|
|
208
|
+
workspaceId: Scalars['Int']['output'];
|
|
209
|
+
};
|
|
210
|
+
/** PaymentMethodInput is an input for retrieving a specific payment method. */
|
|
211
|
+
export type PaymentMethodInput = {
|
|
212
|
+
id: Scalars['Int']['input'];
|
|
213
|
+
workspaceId: Scalars['Int']['input'];
|
|
214
|
+
};
|
|
215
|
+
/** PaymentMethodsInput is an input for listing payment methods. */
|
|
216
|
+
export type PaymentMethodsInput = {
|
|
217
|
+
workspaceId: Scalars['Int']['input'];
|
|
218
|
+
};
|
|
219
|
+
/** PendingPayment represents a pending payment. */
|
|
220
|
+
export type PendingPayment = {
|
|
221
|
+
__typename?: 'PendingPayment';
|
|
222
|
+
completedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
223
|
+
createdAt: Scalars['DateTime']['output'];
|
|
224
|
+
failureReason?: Maybe<Scalars['String']['output']>;
|
|
225
|
+
id: Scalars['Int']['output'];
|
|
226
|
+
isRenewal: Scalars['Boolean']['output'];
|
|
227
|
+
isSetupIntent: Scalars['Boolean']['output'];
|
|
228
|
+
paymentMethodId?: Maybe<Scalars['Int']['output']>;
|
|
229
|
+
planId?: Maybe<Scalars['Int']['output']>;
|
|
230
|
+
status: PendingPaymentStatus;
|
|
231
|
+
term: Scalars['String']['output'];
|
|
232
|
+
transactionId?: Maybe<Scalars['Int']['output']>;
|
|
233
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
234
|
+
};
|
|
235
|
+
/** PendingPaymentInput is an input for retrieving a specific pending payment. */
|
|
236
|
+
export type PendingPaymentInput = {
|
|
237
|
+
id: Scalars['Int']['input'];
|
|
238
|
+
workspaceId: Scalars['Int']['input'];
|
|
239
|
+
};
|
|
240
|
+
/** PendingPaymentStatus represents the status of a pending payment. */
|
|
241
|
+
export declare const PendingPaymentStatus: {
|
|
242
|
+
readonly FAILED: "failed";
|
|
243
|
+
readonly PENDING: "pending";
|
|
244
|
+
readonly PROCESSING: "processing";
|
|
245
|
+
readonly SUCCESSFUL: "successful";
|
|
246
|
+
};
|
|
247
|
+
export type PendingPaymentStatus = typeof PendingPaymentStatus[keyof typeof PendingPaymentStatus];
|
|
248
|
+
/** PendingPaymentsInput is an input for listing pending payments. */
|
|
249
|
+
export type PendingPaymentsInput = {
|
|
250
|
+
isRenewal?: InputMaybe<Scalars['Boolean']['input']>;
|
|
251
|
+
paymentMethodId?: InputMaybe<Scalars['Int']['input']>;
|
|
252
|
+
planId?: InputMaybe<Scalars['Int']['input']>;
|
|
253
|
+
status?: InputMaybe<PendingPaymentStatus>;
|
|
254
|
+
term?: InputMaybe<Scalars['String']['input']>;
|
|
255
|
+
transactionId?: InputMaybe<Scalars['Int']['input']>;
|
|
256
|
+
workspaceId: Scalars['Int']['input'];
|
|
257
|
+
};
|
|
258
|
+
/** Plan represents a subscription plan. */
|
|
259
|
+
export type Plan = {
|
|
260
|
+
__typename?: 'Plan';
|
|
261
|
+
broadcastMessageCount: Scalars['Int']['output'];
|
|
262
|
+
convCount: Scalars['Int']['output'];
|
|
263
|
+
createdAt: Scalars['DateTime']['output'];
|
|
264
|
+
deletedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
265
|
+
id: Scalars['Int']['output'];
|
|
266
|
+
isBroadcast80PercentUsed?: Maybe<Scalars['Boolean']['output']>;
|
|
267
|
+
isBroadcast100PercentUsed?: Maybe<Scalars['Boolean']['output']>;
|
|
268
|
+
isBroadcastUsed?: Maybe<Scalars['Boolean']['output']>;
|
|
269
|
+
isConv80PercentUsed?: Maybe<Scalars['Boolean']['output']>;
|
|
270
|
+
isConv100PercentUsed?: Maybe<Scalars['Boolean']['output']>;
|
|
271
|
+
isConvUsed?: Maybe<Scalars['Boolean']['output']>;
|
|
272
|
+
lastUseDate?: Maybe<Scalars['DateTime']['output']>;
|
|
273
|
+
monthlyPrice: Scalars['Float']['output'];
|
|
274
|
+
planType: PlanType;
|
|
275
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
276
|
+
userCount: Scalars['Int']['output'];
|
|
277
|
+
userId: Scalars['String']['output'];
|
|
278
|
+
yearlyPrice: Scalars['Float']['output'];
|
|
279
|
+
};
|
|
280
|
+
/** PlanType represents the type of subscription plan. */
|
|
281
|
+
export declare const PlanType: {
|
|
282
|
+
readonly BASIC: "basic";
|
|
283
|
+
readonly CUSTOM: "custom";
|
|
284
|
+
readonly ENTERPRISE: "enterprise";
|
|
285
|
+
readonly FREE: "free";
|
|
286
|
+
readonly PREMIUM: "premium";
|
|
287
|
+
};
|
|
288
|
+
export type PlanType = typeof PlanType[keyof typeof PlanType];
|
|
289
|
+
export type Query = {
|
|
290
|
+
__typename?: 'Query';
|
|
291
|
+
/** Get billing info for a workspace. */
|
|
292
|
+
billingInfo?: Maybe<BillingInfo>;
|
|
293
|
+
/** Get a specific payment method by ID. */
|
|
294
|
+
paymentMethod?: Maybe<PaymentMethod>;
|
|
295
|
+
/** List card payment methods for a workspace. */
|
|
296
|
+
paymentMethods: Array<PaymentMethod>;
|
|
297
|
+
/** Get a specific pending payment by ID. */
|
|
298
|
+
pendingPayment?: Maybe<PendingPayment>;
|
|
299
|
+
/** List pending payments for a workspace with optional filters. */
|
|
300
|
+
pendingPayments: Array<PendingPayment>;
|
|
301
|
+
/** Get the current subscription for a workspace. */
|
|
302
|
+
subscription: SubscriptionPlan;
|
|
303
|
+
/** Get a transaction by ID. */
|
|
304
|
+
transaction?: Maybe<Transaction>;
|
|
305
|
+
/** List all transactions for a workspace. */
|
|
306
|
+
transactions: Array<Transaction>;
|
|
307
|
+
};
|
|
308
|
+
export type QueryBillingInfoArgs = {
|
|
309
|
+
input: BillingInfoInput;
|
|
310
|
+
};
|
|
311
|
+
export type QueryPaymentMethodArgs = {
|
|
312
|
+
input: PaymentMethodInput;
|
|
313
|
+
};
|
|
314
|
+
export type QueryPaymentMethodsArgs = {
|
|
315
|
+
input: PaymentMethodsInput;
|
|
316
|
+
};
|
|
317
|
+
export type QueryPendingPaymentArgs = {
|
|
318
|
+
input: PendingPaymentInput;
|
|
319
|
+
};
|
|
320
|
+
export type QueryPendingPaymentsArgs = {
|
|
321
|
+
input: PendingPaymentsInput;
|
|
322
|
+
};
|
|
323
|
+
export type QuerySubscriptionArgs = {
|
|
324
|
+
input: SubscriptionInput;
|
|
325
|
+
};
|
|
326
|
+
export type QueryTransactionArgs = {
|
|
327
|
+
input: TransactionInput;
|
|
328
|
+
};
|
|
329
|
+
export type QueryTransactionsArgs = {
|
|
330
|
+
input: TransactionsInput;
|
|
331
|
+
};
|
|
332
|
+
/** RenewInput is an input for renewing a subscription plan. */
|
|
333
|
+
export type RenewInput = {
|
|
334
|
+
paymentMethod?: InputMaybe<Scalars['String']['input']>;
|
|
335
|
+
term: Term;
|
|
336
|
+
turnstile?: InputMaybe<Scalars['String']['input']>;
|
|
337
|
+
workspaceId: Scalars['Int']['input'];
|
|
338
|
+
};
|
|
339
|
+
/** SetupPaymentMethodInput is an input for setting up a new payment method. */
|
|
340
|
+
export type SetupPaymentMethodInput = {
|
|
341
|
+
turnstile?: InputMaybe<Scalars['String']['input']>;
|
|
342
|
+
workspaceId: Scalars['Int']['input'];
|
|
343
|
+
};
|
|
344
|
+
/** SetupPaymentMethodResult represents the result of setting up a payment method. */
|
|
345
|
+
export type SetupPaymentMethodResult = {
|
|
346
|
+
__typename?: 'SetupPaymentMethodResult';
|
|
347
|
+
pendingPaymentId: Scalars['Int']['output'];
|
|
348
|
+
stripeClientSecret: Scalars['String']['output'];
|
|
349
|
+
stripeSetupIntent: Scalars['String']['output'];
|
|
350
|
+
};
|
|
351
|
+
/** StripeCard represents a credit card stored in Stripe. */
|
|
352
|
+
export type StripeCard = {
|
|
353
|
+
__typename?: 'StripeCard';
|
|
354
|
+
cardFingerprint?: Maybe<Scalars['String']['output']>;
|
|
355
|
+
cardId: Scalars['String']['output'];
|
|
356
|
+
id: Scalars['Int']['output'];
|
|
357
|
+
};
|
|
358
|
+
/** SubscriptionInput is an input for the subscription query. */
|
|
359
|
+
export type SubscriptionInput = {
|
|
360
|
+
workspaceId: Scalars['Int']['input'];
|
|
361
|
+
};
|
|
362
|
+
/** SubscriptionPlan represents a user's subscription to a plan. */
|
|
363
|
+
export type SubscriptionPlan = {
|
|
364
|
+
__typename?: 'SubscriptionPlan';
|
|
365
|
+
accountDiscountPercentage: Scalars['Int']['output'];
|
|
366
|
+
accountManagerId?: Maybe<Scalars['Int']['output']>;
|
|
367
|
+
createdAt: Scalars['DateTime']['output'];
|
|
368
|
+
customizable: Scalars['Boolean']['output'];
|
|
369
|
+
endDate: Scalars['DateTime']['output'];
|
|
370
|
+
failedPaymentTimes: Scalars['Int']['output'];
|
|
371
|
+
freeCredits: Scalars['Float']['output'];
|
|
372
|
+
id: Scalars['Int']['output'];
|
|
373
|
+
isUsed?: Maybe<Scalars['Boolean']['output']>;
|
|
374
|
+
lastPausedDate?: Maybe<Scalars['DateTime']['output']>;
|
|
375
|
+
paused: Scalars['Boolean']['output'];
|
|
376
|
+
paymentMethodId?: Maybe<Scalars['Int']['output']>;
|
|
377
|
+
plan?: Maybe<Plan>;
|
|
378
|
+
planId: Scalars['Int']['output'];
|
|
379
|
+
promoType?: Maybe<Scalars['String']['output']>;
|
|
380
|
+
promoValue?: Maybe<Scalars['Float']['output']>;
|
|
381
|
+
reactivationDate?: Maybe<Scalars['DateTime']['output']>;
|
|
382
|
+
reactivationPeriodLeft?: Maybe<Scalars['BigInt']['output']>;
|
|
383
|
+
renewalInProgress: Scalars['Boolean']['output'];
|
|
384
|
+
renewalsPaid: Scalars['Int']['output'];
|
|
385
|
+
startDate: Scalars['DateTime']['output'];
|
|
386
|
+
term: Term;
|
|
387
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
388
|
+
updatingPaymentTries: Scalars['Int']['output'];
|
|
389
|
+
workspaceId: Scalars['Int']['output'];
|
|
390
|
+
};
|
|
391
|
+
/** Term represents the subscription billing period. */
|
|
392
|
+
export declare const Term: {
|
|
393
|
+
readonly MONTHLY: "monthly";
|
|
394
|
+
readonly YEARLY: "yearly";
|
|
395
|
+
};
|
|
396
|
+
export type Term = typeof Term[keyof typeof Term];
|
|
397
|
+
/** Transaction represents a subscription transaction. */
|
|
398
|
+
export type Transaction = {
|
|
399
|
+
__typename?: 'Transaction';
|
|
400
|
+
amount: Scalars['Float']['output'];
|
|
401
|
+
createdAt: Scalars['DateTime']['output'];
|
|
402
|
+
creditsGained: Scalars['Float']['output'];
|
|
403
|
+
creditsUsed: Scalars['Float']['output'];
|
|
404
|
+
id: Scalars['Int']['output'];
|
|
405
|
+
paymentMethodId?: Maybe<Scalars['Int']['output']>;
|
|
406
|
+
reason: Scalars['String']['output'];
|
|
407
|
+
refundAmount: Scalars['Float']['output'];
|
|
408
|
+
refundDate?: Maybe<Scalars['DateTime']['output']>;
|
|
409
|
+
refundId?: Maybe<Scalars['String']['output']>;
|
|
410
|
+
status: Scalars['String']['output'];
|
|
411
|
+
transactionId?: Maybe<Scalars['String']['output']>;
|
|
412
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
413
|
+
userId?: Maybe<Scalars['String']['output']>;
|
|
414
|
+
workspaceId: Scalars['Int']['output'];
|
|
415
|
+
};
|
|
416
|
+
export type TransactionInput = {
|
|
417
|
+
id: Scalars['Int']['input'];
|
|
418
|
+
workspaceId: Scalars['Int']['input'];
|
|
419
|
+
};
|
|
420
|
+
/** TransactionsInput is an input for querying transactions. */
|
|
421
|
+
export type TransactionsInput = {
|
|
422
|
+
workspaceId: Scalars['Int']['input'];
|
|
423
|
+
};
|
|
424
|
+
/** UpdateBillingInfoInput is an input for updating billing info (creates or updates by workspace). */
|
|
425
|
+
export type UpdateBillingInfoInput = {
|
|
426
|
+
address?: InputMaybe<Scalars['String']['input']>;
|
|
427
|
+
billingEmail?: InputMaybe<Scalars['String']['input']>;
|
|
428
|
+
name?: InputMaybe<Scalars['String']['input']>;
|
|
429
|
+
workspaceId: Scalars['Int']['input'];
|
|
430
|
+
};
|
|
431
|
+
export type BillingInfoQueryVariables = Exact<{
|
|
432
|
+
input: BillingInfoInput;
|
|
433
|
+
}>;
|
|
434
|
+
export type BillingInfoQuery = {
|
|
435
|
+
__typename?: 'Query';
|
|
436
|
+
billingInfo?: {
|
|
437
|
+
__typename?: 'BillingInfo';
|
|
438
|
+
id: number;
|
|
439
|
+
workspaceId: number;
|
|
440
|
+
name?: string | null;
|
|
441
|
+
address?: string | null;
|
|
442
|
+
billingEmail?: string | null;
|
|
443
|
+
createdAt: any;
|
|
444
|
+
updatedAt?: any | null;
|
|
445
|
+
} | null;
|
|
446
|
+
};
|
|
447
|
+
export type CancelPendingPaymentMutationVariables = Exact<{
|
|
448
|
+
input: CancelPendingPaymentInput;
|
|
449
|
+
}>;
|
|
450
|
+
export type CancelPendingPaymentMutation = {
|
|
451
|
+
__typename?: 'Mutation';
|
|
452
|
+
cancelPendingPayment: {
|
|
453
|
+
__typename?: 'CancelPendingPaymentResult';
|
|
454
|
+
id: number;
|
|
455
|
+
status: PendingPaymentStatus;
|
|
456
|
+
failureReason?: string | null;
|
|
457
|
+
};
|
|
458
|
+
};
|
|
459
|
+
export type CheckoutMutationVariables = Exact<{
|
|
460
|
+
input: CheckoutInput;
|
|
461
|
+
}>;
|
|
462
|
+
export type CheckoutMutation = {
|
|
463
|
+
__typename?: 'Mutation';
|
|
464
|
+
checkout: {
|
|
465
|
+
__typename?: 'CheckoutResult';
|
|
466
|
+
paymentRequired: boolean;
|
|
467
|
+
planId?: number | null;
|
|
468
|
+
transactionId?: number | null;
|
|
469
|
+
amount?: number | null;
|
|
470
|
+
pendingPaymentId?: number | null;
|
|
471
|
+
stripeClientSecret?: string | null;
|
|
472
|
+
stripePaymentIntent?: string | null;
|
|
473
|
+
stripePaymentMethod?: string | null;
|
|
474
|
+
};
|
|
475
|
+
};
|
|
476
|
+
export type PaymentMethodQueryVariables = Exact<{
|
|
477
|
+
input: PaymentMethodInput;
|
|
478
|
+
}>;
|
|
479
|
+
export type PaymentMethodQuery = {
|
|
480
|
+
__typename?: 'Query';
|
|
481
|
+
paymentMethod?: {
|
|
482
|
+
__typename?: 'PaymentMethod';
|
|
483
|
+
id: number;
|
|
484
|
+
userId: string;
|
|
485
|
+
workspaceId: number;
|
|
486
|
+
removed: boolean;
|
|
487
|
+
successfullyProcessed: boolean;
|
|
488
|
+
creationTime: any;
|
|
489
|
+
updatedAt: any;
|
|
490
|
+
paymentMethodType: string;
|
|
491
|
+
stripeCard?: {
|
|
492
|
+
__typename?: 'StripeCard';
|
|
493
|
+
id: number;
|
|
494
|
+
cardId: string;
|
|
495
|
+
cardFingerprint?: string | null;
|
|
496
|
+
} | null;
|
|
497
|
+
} | null;
|
|
498
|
+
};
|
|
499
|
+
export type PaymentMethodsQueryVariables = Exact<{
|
|
500
|
+
input: PaymentMethodsInput;
|
|
501
|
+
}>;
|
|
502
|
+
export type PaymentMethodsQuery = {
|
|
503
|
+
__typename?: 'Query';
|
|
504
|
+
paymentMethods: Array<{
|
|
505
|
+
__typename?: 'PaymentMethod';
|
|
506
|
+
id: number;
|
|
507
|
+
userId: string;
|
|
508
|
+
workspaceId: number;
|
|
509
|
+
removed: boolean;
|
|
510
|
+
successfullyProcessed: boolean;
|
|
511
|
+
creationTime: any;
|
|
512
|
+
updatedAt: any;
|
|
513
|
+
paymentMethodType: string;
|
|
514
|
+
stripeCard?: {
|
|
515
|
+
__typename?: 'StripeCard';
|
|
516
|
+
id: number;
|
|
517
|
+
cardId: string;
|
|
518
|
+
cardFingerprint?: string | null;
|
|
519
|
+
} | null;
|
|
520
|
+
}>;
|
|
521
|
+
};
|
|
522
|
+
export type PendingPaymentQueryVariables = Exact<{
|
|
523
|
+
input: PendingPaymentInput;
|
|
524
|
+
}>;
|
|
525
|
+
export type PendingPaymentQuery = {
|
|
526
|
+
__typename?: 'Query';
|
|
527
|
+
pendingPayment?: {
|
|
528
|
+
__typename?: 'PendingPayment';
|
|
529
|
+
id: number;
|
|
530
|
+
status: PendingPaymentStatus;
|
|
531
|
+
failureReason?: string | null;
|
|
532
|
+
paymentMethodId?: number | null;
|
|
533
|
+
planId?: number | null;
|
|
534
|
+
transactionId?: number | null;
|
|
535
|
+
isSetupIntent: boolean;
|
|
536
|
+
isRenewal: boolean;
|
|
537
|
+
term: string;
|
|
538
|
+
createdAt: any;
|
|
539
|
+
updatedAt: any;
|
|
540
|
+
completedAt?: any | null;
|
|
541
|
+
} | null;
|
|
542
|
+
};
|
|
543
|
+
export type PendingPaymentsQueryVariables = Exact<{
|
|
544
|
+
input: PendingPaymentsInput;
|
|
545
|
+
}>;
|
|
546
|
+
export type PendingPaymentsQuery = {
|
|
547
|
+
__typename?: 'Query';
|
|
548
|
+
pendingPayments: Array<{
|
|
549
|
+
__typename?: 'PendingPayment';
|
|
550
|
+
id: number;
|
|
551
|
+
status: PendingPaymentStatus;
|
|
552
|
+
failureReason?: string | null;
|
|
553
|
+
paymentMethodId?: number | null;
|
|
554
|
+
planId?: number | null;
|
|
555
|
+
transactionId?: number | null;
|
|
556
|
+
isSetupIntent: boolean;
|
|
557
|
+
isRenewal: boolean;
|
|
558
|
+
term: string;
|
|
559
|
+
createdAt: any;
|
|
560
|
+
updatedAt: any;
|
|
561
|
+
completedAt?: any | null;
|
|
562
|
+
}>;
|
|
563
|
+
};
|
|
564
|
+
export type RenewMutationVariables = Exact<{
|
|
565
|
+
input: RenewInput;
|
|
566
|
+
}>;
|
|
567
|
+
export type RenewMutation = {
|
|
568
|
+
__typename?: 'Mutation';
|
|
569
|
+
renew: {
|
|
570
|
+
__typename?: 'CheckoutResult';
|
|
571
|
+
paymentRequired: boolean;
|
|
572
|
+
planId?: number | null;
|
|
573
|
+
transactionId?: number | null;
|
|
574
|
+
amount?: number | null;
|
|
575
|
+
pendingPaymentId?: number | null;
|
|
576
|
+
stripeClientSecret?: string | null;
|
|
577
|
+
stripePaymentIntent?: string | null;
|
|
578
|
+
stripePaymentMethod?: string | null;
|
|
579
|
+
};
|
|
580
|
+
};
|
|
581
|
+
export type SetupPaymentMethodMutationVariables = Exact<{
|
|
582
|
+
input: SetupPaymentMethodInput;
|
|
583
|
+
}>;
|
|
584
|
+
export type SetupPaymentMethodMutation = {
|
|
585
|
+
__typename?: 'Mutation';
|
|
586
|
+
setupPaymentMethod: {
|
|
587
|
+
__typename?: 'SetupPaymentMethodResult';
|
|
588
|
+
pendingPaymentId: number;
|
|
589
|
+
stripeClientSecret: string;
|
|
590
|
+
stripeSetupIntent: string;
|
|
591
|
+
};
|
|
592
|
+
};
|
|
593
|
+
export type SubscriptionQueryVariables = Exact<{
|
|
594
|
+
input: SubscriptionInput;
|
|
595
|
+
}>;
|
|
596
|
+
export type SubscriptionQuery = {
|
|
597
|
+
__typename?: 'Query';
|
|
598
|
+
subscription: {
|
|
599
|
+
__typename?: 'SubscriptionPlan';
|
|
600
|
+
id: number;
|
|
601
|
+
workspaceId: number;
|
|
602
|
+
freeCredits: number;
|
|
603
|
+
planId: number;
|
|
604
|
+
term: Term;
|
|
605
|
+
startDate: any;
|
|
606
|
+
endDate: any;
|
|
607
|
+
paused: boolean;
|
|
608
|
+
reactivationDate?: any | null;
|
|
609
|
+
reactivationPeriodLeft?: any | null;
|
|
610
|
+
lastPausedDate?: any | null;
|
|
611
|
+
paymentMethodId?: number | null;
|
|
612
|
+
updatingPaymentTries: number;
|
|
613
|
+
renewalsPaid: number;
|
|
614
|
+
renewalInProgress: boolean;
|
|
615
|
+
failedPaymentTimes: number;
|
|
616
|
+
accountDiscountPercentage: number;
|
|
617
|
+
customizable: boolean;
|
|
618
|
+
accountManagerId?: number | null;
|
|
619
|
+
promoType?: string | null;
|
|
620
|
+
promoValue?: number | null;
|
|
621
|
+
isUsed?: boolean | null;
|
|
622
|
+
createdAt: any;
|
|
623
|
+
updatedAt: any;
|
|
624
|
+
plan?: {
|
|
625
|
+
__typename?: 'Plan';
|
|
626
|
+
id: number;
|
|
627
|
+
userId: string;
|
|
628
|
+
planType: PlanType;
|
|
629
|
+
convCount: number;
|
|
630
|
+
broadcastMessageCount: number;
|
|
631
|
+
userCount: number;
|
|
632
|
+
monthlyPrice: number;
|
|
633
|
+
yearlyPrice: number;
|
|
634
|
+
isConvUsed?: boolean | null;
|
|
635
|
+
isBroadcastUsed?: boolean | null;
|
|
636
|
+
lastUseDate?: any | null;
|
|
637
|
+
isConv80PercentUsed?: boolean | null;
|
|
638
|
+
isConv100PercentUsed?: boolean | null;
|
|
639
|
+
isBroadcast80PercentUsed?: boolean | null;
|
|
640
|
+
isBroadcast100PercentUsed?: boolean | null;
|
|
641
|
+
createdAt: any;
|
|
642
|
+
updatedAt: any;
|
|
643
|
+
deletedAt?: any | null;
|
|
644
|
+
} | null;
|
|
645
|
+
};
|
|
646
|
+
};
|
|
647
|
+
export type TransactionQueryVariables = Exact<{
|
|
648
|
+
input: TransactionInput;
|
|
649
|
+
}>;
|
|
650
|
+
export type TransactionQuery = {
|
|
651
|
+
__typename?: 'Query';
|
|
652
|
+
transaction?: {
|
|
653
|
+
__typename?: 'Transaction';
|
|
654
|
+
id: number;
|
|
655
|
+
userId?: string | null;
|
|
656
|
+
workspaceId: number;
|
|
657
|
+
status: string;
|
|
658
|
+
paymentMethodId?: number | null;
|
|
659
|
+
reason: string;
|
|
660
|
+
amount: number;
|
|
661
|
+
creditsUsed: number;
|
|
662
|
+
creditsGained: number;
|
|
663
|
+
refundAmount: number;
|
|
664
|
+
refundDate?: any | null;
|
|
665
|
+
transactionId?: string | null;
|
|
666
|
+
refundId?: string | null;
|
|
667
|
+
createdAt: any;
|
|
668
|
+
updatedAt: any;
|
|
669
|
+
} | null;
|
|
670
|
+
};
|
|
671
|
+
export type TransactionsQueryVariables = Exact<{
|
|
672
|
+
input: TransactionsInput;
|
|
673
|
+
}>;
|
|
674
|
+
export type TransactionsQuery = {
|
|
675
|
+
__typename?: 'Query';
|
|
676
|
+
transactions: Array<{
|
|
677
|
+
__typename?: 'Transaction';
|
|
678
|
+
id: number;
|
|
679
|
+
userId?: string | null;
|
|
680
|
+
workspaceId: number;
|
|
681
|
+
status: string;
|
|
682
|
+
paymentMethodId?: number | null;
|
|
683
|
+
reason: string;
|
|
684
|
+
amount: number;
|
|
685
|
+
creditsUsed: number;
|
|
686
|
+
creditsGained: number;
|
|
687
|
+
refundAmount: number;
|
|
688
|
+
refundDate?: any | null;
|
|
689
|
+
transactionId?: string | null;
|
|
690
|
+
refundId?: string | null;
|
|
691
|
+
createdAt: any;
|
|
692
|
+
updatedAt: any;
|
|
693
|
+
}>;
|
|
694
|
+
};
|
|
695
|
+
export type UpdateBillingInfoMutationVariables = Exact<{
|
|
696
|
+
input: UpdateBillingInfoInput;
|
|
697
|
+
}>;
|
|
698
|
+
export type UpdateBillingInfoMutation = {
|
|
699
|
+
__typename?: 'Mutation';
|
|
700
|
+
updateBillingInfo: {
|
|
701
|
+
__typename?: 'BillingInfo';
|
|
702
|
+
id: number;
|
|
703
|
+
workspaceId: number;
|
|
704
|
+
name?: string | null;
|
|
705
|
+
address?: string | null;
|
|
706
|
+
billingEmail?: string | null;
|
|
707
|
+
createdAt: any;
|
|
708
|
+
updatedAt?: any | null;
|
|
709
|
+
};
|
|
710
|
+
};
|
|
711
|
+
export declare const BillingInfoDocument: Apollo.DocumentNode;
|
|
712
|
+
/**
|
|
713
|
+
* __useBillingInfoQuery__
|
|
714
|
+
*
|
|
715
|
+
* To run a query within a React component, call `useBillingInfoQuery` and pass it any options that fit your needs.
|
|
716
|
+
* When your component renders, `useBillingInfoQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
717
|
+
* you can use to render your UI.
|
|
718
|
+
*
|
|
719
|
+
* @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;
|
|
720
|
+
*
|
|
721
|
+
* @example
|
|
722
|
+
* const { data, loading, error } = useBillingInfoQuery({
|
|
723
|
+
* variables: {
|
|
724
|
+
* input: // value for 'input'
|
|
725
|
+
* },
|
|
726
|
+
* });
|
|
727
|
+
*/
|
|
728
|
+
export declare function useBillingInfoQuery(baseOptions: Apollo.QueryHookOptions<BillingInfoQuery, BillingInfoQueryVariables> & ({
|
|
729
|
+
variables: BillingInfoQueryVariables;
|
|
730
|
+
skip?: boolean;
|
|
731
|
+
} | {
|
|
732
|
+
skip: boolean;
|
|
733
|
+
})): Apollo.QueryResult<BillingInfoQuery, Exact<{
|
|
734
|
+
input: BillingInfoInput;
|
|
735
|
+
}>>;
|
|
736
|
+
export declare function useBillingInfoLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<BillingInfoQuery, BillingInfoQueryVariables>): Apollo.LazyQueryResultTuple<BillingInfoQuery, Exact<{
|
|
737
|
+
input: BillingInfoInput;
|
|
738
|
+
}>>;
|
|
739
|
+
export declare function useBillingInfoSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<BillingInfoQuery, BillingInfoQueryVariables>): Apollo.UseSuspenseQueryResult<BillingInfoQuery | undefined, Exact<{
|
|
740
|
+
input: BillingInfoInput;
|
|
741
|
+
}>>;
|
|
742
|
+
export type BillingInfoQueryHookResult = ReturnType<typeof useBillingInfoQuery>;
|
|
743
|
+
export type BillingInfoLazyQueryHookResult = ReturnType<typeof useBillingInfoLazyQuery>;
|
|
744
|
+
export type BillingInfoSuspenseQueryHookResult = ReturnType<typeof useBillingInfoSuspenseQuery>;
|
|
745
|
+
export type BillingInfoQueryResult = Apollo.QueryResult<BillingInfoQuery, BillingInfoQueryVariables>;
|
|
746
|
+
export declare function refetchBillingInfoQuery(variables: BillingInfoQueryVariables): {
|
|
747
|
+
query: Apollo.DocumentNode;
|
|
748
|
+
variables: Exact<{
|
|
749
|
+
input: BillingInfoInput;
|
|
750
|
+
}>;
|
|
751
|
+
};
|
|
752
|
+
export declare const CancelPendingPaymentDocument: Apollo.DocumentNode;
|
|
753
|
+
export type CancelPendingPaymentMutationFn = Apollo.MutationFunction<CancelPendingPaymentMutation, CancelPendingPaymentMutationVariables>;
|
|
754
|
+
/**
|
|
755
|
+
* __useCancelPendingPaymentMutation__
|
|
756
|
+
*
|
|
757
|
+
* To run a mutation, you first call `useCancelPendingPaymentMutation` within a React component and pass it any options that fit your needs.
|
|
758
|
+
* When your component renders, `useCancelPendingPaymentMutation` returns a tuple that includes:
|
|
759
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
760
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
761
|
+
*
|
|
762
|
+
* @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;
|
|
763
|
+
*
|
|
764
|
+
* @example
|
|
765
|
+
* const [cancelPendingPaymentMutation, { data, loading, error }] = useCancelPendingPaymentMutation({
|
|
766
|
+
* variables: {
|
|
767
|
+
* input: // value for 'input'
|
|
768
|
+
* },
|
|
769
|
+
* });
|
|
770
|
+
*/
|
|
771
|
+
export declare function useCancelPendingPaymentMutation(baseOptions?: Apollo.MutationHookOptions<CancelPendingPaymentMutation, CancelPendingPaymentMutationVariables>): Apollo.MutationTuple<CancelPendingPaymentMutation, Exact<{
|
|
772
|
+
input: CancelPendingPaymentInput;
|
|
773
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
774
|
+
export type CancelPendingPaymentMutationHookResult = ReturnType<typeof useCancelPendingPaymentMutation>;
|
|
775
|
+
export type CancelPendingPaymentMutationResult = Apollo.MutationResult<CancelPendingPaymentMutation>;
|
|
776
|
+
export type CancelPendingPaymentMutationOptions = Apollo.BaseMutationOptions<CancelPendingPaymentMutation, CancelPendingPaymentMutationVariables>;
|
|
777
|
+
export declare const CheckoutDocument: Apollo.DocumentNode;
|
|
778
|
+
export type CheckoutMutationFn = Apollo.MutationFunction<CheckoutMutation, CheckoutMutationVariables>;
|
|
779
|
+
/**
|
|
780
|
+
* __useCheckoutMutation__
|
|
781
|
+
*
|
|
782
|
+
* To run a mutation, you first call `useCheckoutMutation` within a React component and pass it any options that fit your needs.
|
|
783
|
+
* When your component renders, `useCheckoutMutation` returns a tuple that includes:
|
|
784
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
785
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
786
|
+
*
|
|
787
|
+
* @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;
|
|
788
|
+
*
|
|
789
|
+
* @example
|
|
790
|
+
* const [checkoutMutation, { data, loading, error }] = useCheckoutMutation({
|
|
791
|
+
* variables: {
|
|
792
|
+
* input: // value for 'input'
|
|
793
|
+
* },
|
|
794
|
+
* });
|
|
795
|
+
*/
|
|
796
|
+
export declare function useCheckoutMutation(baseOptions?: Apollo.MutationHookOptions<CheckoutMutation, CheckoutMutationVariables>): Apollo.MutationTuple<CheckoutMutation, Exact<{
|
|
797
|
+
input: CheckoutInput;
|
|
798
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
799
|
+
export type CheckoutMutationHookResult = ReturnType<typeof useCheckoutMutation>;
|
|
800
|
+
export type CheckoutMutationResult = Apollo.MutationResult<CheckoutMutation>;
|
|
801
|
+
export type CheckoutMutationOptions = Apollo.BaseMutationOptions<CheckoutMutation, CheckoutMutationVariables>;
|
|
802
|
+
export declare const PaymentMethodDocument: Apollo.DocumentNode;
|
|
803
|
+
/**
|
|
804
|
+
* __usePaymentMethodQuery__
|
|
805
|
+
*
|
|
806
|
+
* To run a query within a React component, call `usePaymentMethodQuery` and pass it any options that fit your needs.
|
|
807
|
+
* When your component renders, `usePaymentMethodQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
808
|
+
* you can use to render your UI.
|
|
809
|
+
*
|
|
810
|
+
* @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;
|
|
811
|
+
*
|
|
812
|
+
* @example
|
|
813
|
+
* const { data, loading, error } = usePaymentMethodQuery({
|
|
814
|
+
* variables: {
|
|
815
|
+
* input: // value for 'input'
|
|
816
|
+
* },
|
|
817
|
+
* });
|
|
818
|
+
*/
|
|
819
|
+
export declare function usePaymentMethodQuery(baseOptions: Apollo.QueryHookOptions<PaymentMethodQuery, PaymentMethodQueryVariables> & ({
|
|
820
|
+
variables: PaymentMethodQueryVariables;
|
|
821
|
+
skip?: boolean;
|
|
822
|
+
} | {
|
|
823
|
+
skip: boolean;
|
|
824
|
+
})): Apollo.QueryResult<PaymentMethodQuery, Exact<{
|
|
825
|
+
input: PaymentMethodInput;
|
|
826
|
+
}>>;
|
|
827
|
+
export declare function usePaymentMethodLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<PaymentMethodQuery, PaymentMethodQueryVariables>): Apollo.LazyQueryResultTuple<PaymentMethodQuery, Exact<{
|
|
828
|
+
input: PaymentMethodInput;
|
|
829
|
+
}>>;
|
|
830
|
+
export declare function usePaymentMethodSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<PaymentMethodQuery, PaymentMethodQueryVariables>): Apollo.UseSuspenseQueryResult<PaymentMethodQuery | undefined, Exact<{
|
|
831
|
+
input: PaymentMethodInput;
|
|
832
|
+
}>>;
|
|
833
|
+
export type PaymentMethodQueryHookResult = ReturnType<typeof usePaymentMethodQuery>;
|
|
834
|
+
export type PaymentMethodLazyQueryHookResult = ReturnType<typeof usePaymentMethodLazyQuery>;
|
|
835
|
+
export type PaymentMethodSuspenseQueryHookResult = ReturnType<typeof usePaymentMethodSuspenseQuery>;
|
|
836
|
+
export type PaymentMethodQueryResult = Apollo.QueryResult<PaymentMethodQuery, PaymentMethodQueryVariables>;
|
|
837
|
+
export declare function refetchPaymentMethodQuery(variables: PaymentMethodQueryVariables): {
|
|
838
|
+
query: Apollo.DocumentNode;
|
|
839
|
+
variables: Exact<{
|
|
840
|
+
input: PaymentMethodInput;
|
|
841
|
+
}>;
|
|
842
|
+
};
|
|
843
|
+
export declare const PaymentMethodsDocument: Apollo.DocumentNode;
|
|
844
|
+
/**
|
|
845
|
+
* __usePaymentMethodsQuery__
|
|
846
|
+
*
|
|
847
|
+
* To run a query within a React component, call `usePaymentMethodsQuery` and pass it any options that fit your needs.
|
|
848
|
+
* When your component renders, `usePaymentMethodsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
849
|
+
* you can use to render your UI.
|
|
850
|
+
*
|
|
851
|
+
* @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;
|
|
852
|
+
*
|
|
853
|
+
* @example
|
|
854
|
+
* const { data, loading, error } = usePaymentMethodsQuery({
|
|
855
|
+
* variables: {
|
|
856
|
+
* input: // value for 'input'
|
|
857
|
+
* },
|
|
858
|
+
* });
|
|
859
|
+
*/
|
|
860
|
+
export declare function usePaymentMethodsQuery(baseOptions: Apollo.QueryHookOptions<PaymentMethodsQuery, PaymentMethodsQueryVariables> & ({
|
|
861
|
+
variables: PaymentMethodsQueryVariables;
|
|
862
|
+
skip?: boolean;
|
|
863
|
+
} | {
|
|
864
|
+
skip: boolean;
|
|
865
|
+
})): Apollo.QueryResult<PaymentMethodsQuery, Exact<{
|
|
866
|
+
input: PaymentMethodsInput;
|
|
867
|
+
}>>;
|
|
868
|
+
export declare function usePaymentMethodsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<PaymentMethodsQuery, PaymentMethodsQueryVariables>): Apollo.LazyQueryResultTuple<PaymentMethodsQuery, Exact<{
|
|
869
|
+
input: PaymentMethodsInput;
|
|
870
|
+
}>>;
|
|
871
|
+
export declare function usePaymentMethodsSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<PaymentMethodsQuery, PaymentMethodsQueryVariables>): Apollo.UseSuspenseQueryResult<PaymentMethodsQuery | undefined, Exact<{
|
|
872
|
+
input: PaymentMethodsInput;
|
|
873
|
+
}>>;
|
|
874
|
+
export type PaymentMethodsQueryHookResult = ReturnType<typeof usePaymentMethodsQuery>;
|
|
875
|
+
export type PaymentMethodsLazyQueryHookResult = ReturnType<typeof usePaymentMethodsLazyQuery>;
|
|
876
|
+
export type PaymentMethodsSuspenseQueryHookResult = ReturnType<typeof usePaymentMethodsSuspenseQuery>;
|
|
877
|
+
export type PaymentMethodsQueryResult = Apollo.QueryResult<PaymentMethodsQuery, PaymentMethodsQueryVariables>;
|
|
878
|
+
export declare function refetchPaymentMethodsQuery(variables: PaymentMethodsQueryVariables): {
|
|
879
|
+
query: Apollo.DocumentNode;
|
|
880
|
+
variables: Exact<{
|
|
881
|
+
input: PaymentMethodsInput;
|
|
882
|
+
}>;
|
|
883
|
+
};
|
|
884
|
+
export declare const PendingPaymentDocument: Apollo.DocumentNode;
|
|
885
|
+
/**
|
|
886
|
+
* __usePendingPaymentQuery__
|
|
887
|
+
*
|
|
888
|
+
* To run a query within a React component, call `usePendingPaymentQuery` and pass it any options that fit your needs.
|
|
889
|
+
* When your component renders, `usePendingPaymentQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
890
|
+
* you can use to render your UI.
|
|
891
|
+
*
|
|
892
|
+
* @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;
|
|
893
|
+
*
|
|
894
|
+
* @example
|
|
895
|
+
* const { data, loading, error } = usePendingPaymentQuery({
|
|
896
|
+
* variables: {
|
|
897
|
+
* input: // value for 'input'
|
|
898
|
+
* },
|
|
899
|
+
* });
|
|
900
|
+
*/
|
|
901
|
+
export declare function usePendingPaymentQuery(baseOptions: Apollo.QueryHookOptions<PendingPaymentQuery, PendingPaymentQueryVariables> & ({
|
|
902
|
+
variables: PendingPaymentQueryVariables;
|
|
903
|
+
skip?: boolean;
|
|
904
|
+
} | {
|
|
905
|
+
skip: boolean;
|
|
906
|
+
})): Apollo.QueryResult<PendingPaymentQuery, Exact<{
|
|
907
|
+
input: PendingPaymentInput;
|
|
908
|
+
}>>;
|
|
909
|
+
export declare function usePendingPaymentLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<PendingPaymentQuery, PendingPaymentQueryVariables>): Apollo.LazyQueryResultTuple<PendingPaymentQuery, Exact<{
|
|
910
|
+
input: PendingPaymentInput;
|
|
911
|
+
}>>;
|
|
912
|
+
export declare function usePendingPaymentSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<PendingPaymentQuery, PendingPaymentQueryVariables>): Apollo.UseSuspenseQueryResult<PendingPaymentQuery | undefined, Exact<{
|
|
913
|
+
input: PendingPaymentInput;
|
|
914
|
+
}>>;
|
|
915
|
+
export type PendingPaymentQueryHookResult = ReturnType<typeof usePendingPaymentQuery>;
|
|
916
|
+
export type PendingPaymentLazyQueryHookResult = ReturnType<typeof usePendingPaymentLazyQuery>;
|
|
917
|
+
export type PendingPaymentSuspenseQueryHookResult = ReturnType<typeof usePendingPaymentSuspenseQuery>;
|
|
918
|
+
export type PendingPaymentQueryResult = Apollo.QueryResult<PendingPaymentQuery, PendingPaymentQueryVariables>;
|
|
919
|
+
export declare function refetchPendingPaymentQuery(variables: PendingPaymentQueryVariables): {
|
|
920
|
+
query: Apollo.DocumentNode;
|
|
921
|
+
variables: Exact<{
|
|
922
|
+
input: PendingPaymentInput;
|
|
923
|
+
}>;
|
|
924
|
+
};
|
|
925
|
+
export declare const PendingPaymentsDocument: Apollo.DocumentNode;
|
|
926
|
+
/**
|
|
927
|
+
* __usePendingPaymentsQuery__
|
|
928
|
+
*
|
|
929
|
+
* To run a query within a React component, call `usePendingPaymentsQuery` and pass it any options that fit your needs.
|
|
930
|
+
* When your component renders, `usePendingPaymentsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
931
|
+
* you can use to render your UI.
|
|
932
|
+
*
|
|
933
|
+
* @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;
|
|
934
|
+
*
|
|
935
|
+
* @example
|
|
936
|
+
* const { data, loading, error } = usePendingPaymentsQuery({
|
|
937
|
+
* variables: {
|
|
938
|
+
* input: // value for 'input'
|
|
939
|
+
* },
|
|
940
|
+
* });
|
|
941
|
+
*/
|
|
942
|
+
export declare function usePendingPaymentsQuery(baseOptions: Apollo.QueryHookOptions<PendingPaymentsQuery, PendingPaymentsQueryVariables> & ({
|
|
943
|
+
variables: PendingPaymentsQueryVariables;
|
|
944
|
+
skip?: boolean;
|
|
945
|
+
} | {
|
|
946
|
+
skip: boolean;
|
|
947
|
+
})): Apollo.QueryResult<PendingPaymentsQuery, Exact<{
|
|
948
|
+
input: PendingPaymentsInput;
|
|
949
|
+
}>>;
|
|
950
|
+
export declare function usePendingPaymentsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<PendingPaymentsQuery, PendingPaymentsQueryVariables>): Apollo.LazyQueryResultTuple<PendingPaymentsQuery, Exact<{
|
|
951
|
+
input: PendingPaymentsInput;
|
|
952
|
+
}>>;
|
|
953
|
+
export declare function usePendingPaymentsSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<PendingPaymentsQuery, PendingPaymentsQueryVariables>): Apollo.UseSuspenseQueryResult<PendingPaymentsQuery | undefined, Exact<{
|
|
954
|
+
input: PendingPaymentsInput;
|
|
955
|
+
}>>;
|
|
956
|
+
export type PendingPaymentsQueryHookResult = ReturnType<typeof usePendingPaymentsQuery>;
|
|
957
|
+
export type PendingPaymentsLazyQueryHookResult = ReturnType<typeof usePendingPaymentsLazyQuery>;
|
|
958
|
+
export type PendingPaymentsSuspenseQueryHookResult = ReturnType<typeof usePendingPaymentsSuspenseQuery>;
|
|
959
|
+
export type PendingPaymentsQueryResult = Apollo.QueryResult<PendingPaymentsQuery, PendingPaymentsQueryVariables>;
|
|
960
|
+
export declare function refetchPendingPaymentsQuery(variables: PendingPaymentsQueryVariables): {
|
|
961
|
+
query: Apollo.DocumentNode;
|
|
962
|
+
variables: Exact<{
|
|
963
|
+
input: PendingPaymentsInput;
|
|
964
|
+
}>;
|
|
965
|
+
};
|
|
966
|
+
export declare const RenewDocument: Apollo.DocumentNode;
|
|
967
|
+
export type RenewMutationFn = Apollo.MutationFunction<RenewMutation, RenewMutationVariables>;
|
|
968
|
+
/**
|
|
969
|
+
* __useRenewMutation__
|
|
970
|
+
*
|
|
971
|
+
* To run a mutation, you first call `useRenewMutation` within a React component and pass it any options that fit your needs.
|
|
972
|
+
* When your component renders, `useRenewMutation` returns a tuple that includes:
|
|
973
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
974
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
975
|
+
*
|
|
976
|
+
* @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;
|
|
977
|
+
*
|
|
978
|
+
* @example
|
|
979
|
+
* const [renewMutation, { data, loading, error }] = useRenewMutation({
|
|
980
|
+
* variables: {
|
|
981
|
+
* input: // value for 'input'
|
|
982
|
+
* },
|
|
983
|
+
* });
|
|
984
|
+
*/
|
|
985
|
+
export declare function useRenewMutation(baseOptions?: Apollo.MutationHookOptions<RenewMutation, RenewMutationVariables>): Apollo.MutationTuple<RenewMutation, Exact<{
|
|
986
|
+
input: RenewInput;
|
|
987
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
988
|
+
export type RenewMutationHookResult = ReturnType<typeof useRenewMutation>;
|
|
989
|
+
export type RenewMutationResult = Apollo.MutationResult<RenewMutation>;
|
|
990
|
+
export type RenewMutationOptions = Apollo.BaseMutationOptions<RenewMutation, RenewMutationVariables>;
|
|
991
|
+
export declare const SetupPaymentMethodDocument: Apollo.DocumentNode;
|
|
992
|
+
export type SetupPaymentMethodMutationFn = Apollo.MutationFunction<SetupPaymentMethodMutation, SetupPaymentMethodMutationVariables>;
|
|
993
|
+
/**
|
|
994
|
+
* __useSetupPaymentMethodMutation__
|
|
995
|
+
*
|
|
996
|
+
* To run a mutation, you first call `useSetupPaymentMethodMutation` within a React component and pass it any options that fit your needs.
|
|
997
|
+
* When your component renders, `useSetupPaymentMethodMutation` returns a tuple that includes:
|
|
998
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
999
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
1000
|
+
*
|
|
1001
|
+
* @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;
|
|
1002
|
+
*
|
|
1003
|
+
* @example
|
|
1004
|
+
* const [setupPaymentMethodMutation, { data, loading, error }] = useSetupPaymentMethodMutation({
|
|
1005
|
+
* variables: {
|
|
1006
|
+
* input: // value for 'input'
|
|
1007
|
+
* },
|
|
1008
|
+
* });
|
|
1009
|
+
*/
|
|
1010
|
+
export declare function useSetupPaymentMethodMutation(baseOptions?: Apollo.MutationHookOptions<SetupPaymentMethodMutation, SetupPaymentMethodMutationVariables>): Apollo.MutationTuple<SetupPaymentMethodMutation, Exact<{
|
|
1011
|
+
input: SetupPaymentMethodInput;
|
|
1012
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
1013
|
+
export type SetupPaymentMethodMutationHookResult = ReturnType<typeof useSetupPaymentMethodMutation>;
|
|
1014
|
+
export type SetupPaymentMethodMutationResult = Apollo.MutationResult<SetupPaymentMethodMutation>;
|
|
1015
|
+
export type SetupPaymentMethodMutationOptions = Apollo.BaseMutationOptions<SetupPaymentMethodMutation, SetupPaymentMethodMutationVariables>;
|
|
1016
|
+
export declare const SubscriptionDocument: Apollo.DocumentNode;
|
|
1017
|
+
/**
|
|
1018
|
+
* __useSubscriptionQuery__
|
|
1019
|
+
*
|
|
1020
|
+
* To run a query within a React component, call `useSubscriptionQuery` and pass it any options that fit your needs.
|
|
1021
|
+
* When your component renders, `useSubscriptionQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1022
|
+
* you can use to render your UI.
|
|
1023
|
+
*
|
|
1024
|
+
* @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;
|
|
1025
|
+
*
|
|
1026
|
+
* @example
|
|
1027
|
+
* const { data, loading, error } = useSubscriptionQuery({
|
|
1028
|
+
* variables: {
|
|
1029
|
+
* input: // value for 'input'
|
|
1030
|
+
* },
|
|
1031
|
+
* });
|
|
1032
|
+
*/
|
|
1033
|
+
export declare function useSubscriptionQuery(baseOptions: Apollo.QueryHookOptions<SubscriptionQuery, SubscriptionQueryVariables> & ({
|
|
1034
|
+
variables: SubscriptionQueryVariables;
|
|
1035
|
+
skip?: boolean;
|
|
1036
|
+
} | {
|
|
1037
|
+
skip: boolean;
|
|
1038
|
+
})): Apollo.QueryResult<SubscriptionQuery, Exact<{
|
|
1039
|
+
input: SubscriptionInput;
|
|
1040
|
+
}>>;
|
|
1041
|
+
export declare function useSubscriptionLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<SubscriptionQuery, SubscriptionQueryVariables>): Apollo.LazyQueryResultTuple<SubscriptionQuery, Exact<{
|
|
1042
|
+
input: SubscriptionInput;
|
|
1043
|
+
}>>;
|
|
1044
|
+
export declare function useSubscriptionSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<SubscriptionQuery, SubscriptionQueryVariables>): Apollo.UseSuspenseQueryResult<SubscriptionQuery | undefined, Exact<{
|
|
1045
|
+
input: SubscriptionInput;
|
|
1046
|
+
}>>;
|
|
1047
|
+
export type SubscriptionQueryHookResult = ReturnType<typeof useSubscriptionQuery>;
|
|
1048
|
+
export type SubscriptionLazyQueryHookResult = ReturnType<typeof useSubscriptionLazyQuery>;
|
|
1049
|
+
export type SubscriptionSuspenseQueryHookResult = ReturnType<typeof useSubscriptionSuspenseQuery>;
|
|
1050
|
+
export type SubscriptionQueryResult = Apollo.QueryResult<SubscriptionQuery, SubscriptionQueryVariables>;
|
|
1051
|
+
export declare function refetchSubscriptionQuery(variables: SubscriptionQueryVariables): {
|
|
1052
|
+
query: Apollo.DocumentNode;
|
|
1053
|
+
variables: Exact<{
|
|
1054
|
+
input: SubscriptionInput;
|
|
1055
|
+
}>;
|
|
1056
|
+
};
|
|
1057
|
+
export declare const TransactionDocument: Apollo.DocumentNode;
|
|
1058
|
+
/**
|
|
1059
|
+
* __useTransactionQuery__
|
|
1060
|
+
*
|
|
1061
|
+
* To run a query within a React component, call `useTransactionQuery` and pass it any options that fit your needs.
|
|
1062
|
+
* When your component renders, `useTransactionQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1063
|
+
* you can use to render your UI.
|
|
1064
|
+
*
|
|
1065
|
+
* @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;
|
|
1066
|
+
*
|
|
1067
|
+
* @example
|
|
1068
|
+
* const { data, loading, error } = useTransactionQuery({
|
|
1069
|
+
* variables: {
|
|
1070
|
+
* input: // value for 'input'
|
|
1071
|
+
* },
|
|
1072
|
+
* });
|
|
1073
|
+
*/
|
|
1074
|
+
export declare function useTransactionQuery(baseOptions: Apollo.QueryHookOptions<TransactionQuery, TransactionQueryVariables> & ({
|
|
1075
|
+
variables: TransactionQueryVariables;
|
|
1076
|
+
skip?: boolean;
|
|
1077
|
+
} | {
|
|
1078
|
+
skip: boolean;
|
|
1079
|
+
})): Apollo.QueryResult<TransactionQuery, Exact<{
|
|
1080
|
+
input: TransactionInput;
|
|
1081
|
+
}>>;
|
|
1082
|
+
export declare function useTransactionLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<TransactionQuery, TransactionQueryVariables>): Apollo.LazyQueryResultTuple<TransactionQuery, Exact<{
|
|
1083
|
+
input: TransactionInput;
|
|
1084
|
+
}>>;
|
|
1085
|
+
export declare function useTransactionSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<TransactionQuery, TransactionQueryVariables>): Apollo.UseSuspenseQueryResult<TransactionQuery | undefined, Exact<{
|
|
1086
|
+
input: TransactionInput;
|
|
1087
|
+
}>>;
|
|
1088
|
+
export type TransactionQueryHookResult = ReturnType<typeof useTransactionQuery>;
|
|
1089
|
+
export type TransactionLazyQueryHookResult = ReturnType<typeof useTransactionLazyQuery>;
|
|
1090
|
+
export type TransactionSuspenseQueryHookResult = ReturnType<typeof useTransactionSuspenseQuery>;
|
|
1091
|
+
export type TransactionQueryResult = Apollo.QueryResult<TransactionQuery, TransactionQueryVariables>;
|
|
1092
|
+
export declare function refetchTransactionQuery(variables: TransactionQueryVariables): {
|
|
1093
|
+
query: Apollo.DocumentNode;
|
|
1094
|
+
variables: Exact<{
|
|
1095
|
+
input: TransactionInput;
|
|
1096
|
+
}>;
|
|
1097
|
+
};
|
|
1098
|
+
export declare const TransactionsDocument: Apollo.DocumentNode;
|
|
1099
|
+
/**
|
|
1100
|
+
* __useTransactionsQuery__
|
|
1101
|
+
*
|
|
1102
|
+
* To run a query within a React component, call `useTransactionsQuery` and pass it any options that fit your needs.
|
|
1103
|
+
* When your component renders, `useTransactionsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1104
|
+
* you can use to render your UI.
|
|
1105
|
+
*
|
|
1106
|
+
* @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;
|
|
1107
|
+
*
|
|
1108
|
+
* @example
|
|
1109
|
+
* const { data, loading, error } = useTransactionsQuery({
|
|
1110
|
+
* variables: {
|
|
1111
|
+
* input: // value for 'input'
|
|
1112
|
+
* },
|
|
1113
|
+
* });
|
|
1114
|
+
*/
|
|
1115
|
+
export declare function useTransactionsQuery(baseOptions: Apollo.QueryHookOptions<TransactionsQuery, TransactionsQueryVariables> & ({
|
|
1116
|
+
variables: TransactionsQueryVariables;
|
|
1117
|
+
skip?: boolean;
|
|
1118
|
+
} | {
|
|
1119
|
+
skip: boolean;
|
|
1120
|
+
})): Apollo.QueryResult<TransactionsQuery, Exact<{
|
|
1121
|
+
input: TransactionsInput;
|
|
1122
|
+
}>>;
|
|
1123
|
+
export declare function useTransactionsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<TransactionsQuery, TransactionsQueryVariables>): Apollo.LazyQueryResultTuple<TransactionsQuery, Exact<{
|
|
1124
|
+
input: TransactionsInput;
|
|
1125
|
+
}>>;
|
|
1126
|
+
export declare function useTransactionsSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<TransactionsQuery, TransactionsQueryVariables>): Apollo.UseSuspenseQueryResult<TransactionsQuery | undefined, Exact<{
|
|
1127
|
+
input: TransactionsInput;
|
|
1128
|
+
}>>;
|
|
1129
|
+
export type TransactionsQueryHookResult = ReturnType<typeof useTransactionsQuery>;
|
|
1130
|
+
export type TransactionsLazyQueryHookResult = ReturnType<typeof useTransactionsLazyQuery>;
|
|
1131
|
+
export type TransactionsSuspenseQueryHookResult = ReturnType<typeof useTransactionsSuspenseQuery>;
|
|
1132
|
+
export type TransactionsQueryResult = Apollo.QueryResult<TransactionsQuery, TransactionsQueryVariables>;
|
|
1133
|
+
export declare function refetchTransactionsQuery(variables: TransactionsQueryVariables): {
|
|
1134
|
+
query: Apollo.DocumentNode;
|
|
1135
|
+
variables: Exact<{
|
|
1136
|
+
input: TransactionsInput;
|
|
1137
|
+
}>;
|
|
1138
|
+
};
|
|
1139
|
+
export declare const UpdateBillingInfoDocument: Apollo.DocumentNode;
|
|
1140
|
+
export type UpdateBillingInfoMutationFn = Apollo.MutationFunction<UpdateBillingInfoMutation, UpdateBillingInfoMutationVariables>;
|
|
1141
|
+
/**
|
|
1142
|
+
* __useUpdateBillingInfoMutation__
|
|
1143
|
+
*
|
|
1144
|
+
* To run a mutation, you first call `useUpdateBillingInfoMutation` within a React component and pass it any options that fit your needs.
|
|
1145
|
+
* When your component renders, `useUpdateBillingInfoMutation` returns a tuple that includes:
|
|
1146
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
1147
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
1148
|
+
*
|
|
1149
|
+
* @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;
|
|
1150
|
+
*
|
|
1151
|
+
* @example
|
|
1152
|
+
* const [updateBillingInfoMutation, { data, loading, error }] = useUpdateBillingInfoMutation({
|
|
1153
|
+
* variables: {
|
|
1154
|
+
* input: // value for 'input'
|
|
1155
|
+
* },
|
|
1156
|
+
* });
|
|
1157
|
+
*/
|
|
1158
|
+
export declare function useUpdateBillingInfoMutation(baseOptions?: Apollo.MutationHookOptions<UpdateBillingInfoMutation, UpdateBillingInfoMutationVariables>): Apollo.MutationTuple<UpdateBillingInfoMutation, Exact<{
|
|
1159
|
+
input: UpdateBillingInfoInput;
|
|
1160
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
1161
|
+
export type UpdateBillingInfoMutationHookResult = ReturnType<typeof useUpdateBillingInfoMutation>;
|
|
1162
|
+
export type UpdateBillingInfoMutationResult = Apollo.MutationResult<UpdateBillingInfoMutation>;
|
|
1163
|
+
export type UpdateBillingInfoMutationOptions = Apollo.BaseMutationOptions<UpdateBillingInfoMutation, UpdateBillingInfoMutationVariables>;
|