This repository has been archived by the owner on Feb 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathgenerated.ts
1340 lines (1203 loc) · 59.4 KB
/
generated.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// this file is autogenerated by codegen
/* eslint-disable */
import { gql } from '@apollo/client';
import * as Apollo from '@apollo/client';
export type Maybe<T> = T | null;
export type InputMaybe<T> = Maybe<T>;
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
export type MakeEmpty<T extends { [key: string]: unknown }, K extends keyof T> = { [_ in K]?: never };
export type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };
const defaultOptions = {} as const;
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: { input: string; output: string; }
String: { input: string; output: string; }
Boolean: { input: boolean; output: boolean; }
Int: { input: number; output: number; }
Float: { input: number; output: number; }
/** Unique identifier of an account */
AccountId: { input: string; output: string; }
/** Display currency of an account */
DisplayCurrency: { input: string; output: string; }
/** Email address */
EmailAddress: { input: string; output: string; }
Language: { input: string; output: string; }
LnPaymentPreImage: { input: string; output: string; }
/** BOLT11 lightning invoice payment request with the amount included */
LnPaymentRequest: { input: string; output: string; }
LnPaymentSecret: { input: string; output: string; }
LnPubkey: { input: string; output: string; }
/** Text field in a lightning payment transaction */
Memo: { input: string; output: string; }
NotificationCategory: { input: string; output: string; }
Object: { input: string; output: string; }
/** An address for an on-chain bitcoin destination */
OnChainAddress: { input: string; output: string; }
OnChainTxHash: { input: string; output: string; }
PaymentHash: { input: string; output: string; }
/** Phone number which includes country code */
Phone: { input: string; output: string; }
/** Non-fractional signed whole numeric value between -(2^53) + 1 and 2^53 - 1 */
SafeInt: { input: number; output: number; }
/** (Positive) Satoshi amount */
SatAmount: { input: number; output: number; }
/** An amount (of a currency) that can be negative (e.g. in a transaction) */
SignedAmount: { input: number; output: number; }
/** A string amount (of a currency) that can be negative (e.g. in a transaction) */
SignedDisplayMajorAmount: { input: string; output: string; }
/** Timestamp field, serialized as Unix time (the number of seconds since the Unix epoch) */
Timestamp: { input: number; output: number; }
/** Unique identifier of a user */
Username: { input: string; output: string; }
/** Unique identifier of a wallet */
WalletId: { input: string; output: string; }
};
export type AccountDetailPayload = {
readonly __typename: 'AccountDetailPayload';
readonly accountDetails?: Maybe<AuditedAccount>;
readonly errors: ReadonlyArray<Error>;
};
export const AccountLevel = {
One: 'ONE',
Two: 'TWO',
Zero: 'ZERO'
} as const;
export type AccountLevel = typeof AccountLevel[keyof typeof AccountLevel];
export const AccountStatus = {
Active: 'ACTIVE',
Closed: 'CLOSED',
Locked: 'LOCKED',
New: 'NEW',
Pending: 'PENDING'
} as const;
export type AccountStatus = typeof AccountStatus[keyof typeof AccountStatus];
export type AccountUpdateLevelInput = {
readonly accountId: Scalars['AccountId']['input'];
readonly level: AccountLevel;
};
export type AccountUpdateStatusInput = {
readonly accountId: Scalars['AccountId']['input'];
readonly comment?: InputMaybe<Scalars['String']['input']>;
readonly status: AccountStatus;
};
export type AdminPushNotificationSendInput = {
readonly accountId: Scalars['String']['input'];
readonly body: Scalars['String']['input'];
readonly data?: InputMaybe<Scalars['Object']['input']>;
readonly notificationCategory?: InputMaybe<Scalars['NotificationCategory']['input']>;
readonly title: Scalars['String']['input'];
};
export type AdminPushNotificationSendPayload = {
readonly __typename: 'AdminPushNotificationSendPayload';
readonly errors: ReadonlyArray<Error>;
readonly success?: Maybe<Scalars['Boolean']['output']>;
};
/** Accounts are core to the Galoy architecture. they have users, and own wallets */
export type AuditedAccount = {
readonly __typename: 'AuditedAccount';
/** GPS coordinates for the account that can be used to place the related business on a map */
readonly coordinates?: Maybe<Coordinates>;
readonly createdAt: Scalars['Timestamp']['output'];
readonly id: Scalars['ID']['output'];
readonly level: AccountLevel;
readonly owner: AuditedUser;
readonly status: AccountStatus;
readonly title?: Maybe<Scalars['String']['output']>;
readonly username?: Maybe<Scalars['Username']['output']>;
readonly wallets: ReadonlyArray<Wallet>;
};
export type AuditedUser = {
readonly __typename: 'AuditedUser';
readonly createdAt: Scalars['Timestamp']['output'];
/** Email address */
readonly email?: Maybe<Email>;
readonly id: Scalars['ID']['output'];
readonly language: Scalars['Language']['output'];
readonly phone?: Maybe<Scalars['Phone']['output']>;
};
/** A wallet belonging to an account which contains a BTC balance and a list of transactions. */
export type BtcWallet = Wallet & {
readonly __typename: 'BTCWallet';
readonly accountId: Scalars['ID']['output'];
/** A balance stored in BTC. */
readonly balance: Scalars['SignedAmount']['output'];
readonly id: Scalars['ID']['output'];
/** An unconfirmed incoming onchain balance. */
readonly pendingIncomingBalance: Scalars['SignedAmount']['output'];
/** A list of BTC transactions associated with this wallet. */
readonly transactions?: Maybe<TransactionConnection>;
readonly transactionsByAddress?: Maybe<TransactionConnection>;
readonly walletCurrency: WalletCurrency;
};
/** A wallet belonging to an account which contains a BTC balance and a list of transactions. */
export type BtcWalletTransactionsArgs = {
after?: InputMaybe<Scalars['String']['input']>;
before?: InputMaybe<Scalars['String']['input']>;
first?: InputMaybe<Scalars['Int']['input']>;
last?: InputMaybe<Scalars['Int']['input']>;
};
/** A wallet belonging to an account which contains a BTC balance and a list of transactions. */
export type BtcWalletTransactionsByAddressArgs = {
address: Scalars['OnChainAddress']['input'];
after?: InputMaybe<Scalars['String']['input']>;
before?: InputMaybe<Scalars['String']['input']>;
first?: InputMaybe<Scalars['Int']['input']>;
last?: InputMaybe<Scalars['Int']['input']>;
};
export type BusinessDeleteMapInfoInput = {
readonly username: Scalars['Username']['input'];
};
export type BusinessUpdateMapInfoInput = {
readonly latitude: Scalars['Float']['input'];
readonly longitude: Scalars['Float']['input'];
readonly title: Scalars['String']['input'];
readonly username: Scalars['Username']['input'];
};
export type Coordinates = {
readonly __typename: 'Coordinates';
readonly latitude: Scalars['Float']['output'];
readonly longitude: Scalars['Float']['output'];
};
export type Email = {
readonly __typename: 'Email';
readonly address?: Maybe<Scalars['EmailAddress']['output']>;
readonly verified?: Maybe<Scalars['Boolean']['output']>;
};
export type Error = {
readonly code?: Maybe<Scalars['String']['output']>;
readonly message: Scalars['String']['output'];
readonly path?: Maybe<ReadonlyArray<Maybe<Scalars['String']['output']>>>;
};
export type GraphQlApplicationError = Error & {
readonly __typename: 'GraphQLApplicationError';
readonly code?: Maybe<Scalars['String']['output']>;
readonly message: Scalars['String']['output'];
readonly path?: Maybe<ReadonlyArray<Maybe<Scalars['String']['output']>>>;
};
export type InitiationVia = InitiationViaIntraLedger | InitiationViaLn | InitiationViaOnChain;
export type InitiationViaIntraLedger = {
readonly __typename: 'InitiationViaIntraLedger';
readonly counterPartyUsername?: Maybe<Scalars['Username']['output']>;
readonly counterPartyWalletId?: Maybe<Scalars['WalletId']['output']>;
};
export type InitiationViaLn = {
readonly __typename: 'InitiationViaLn';
readonly paymentHash: Scalars['PaymentHash']['output'];
};
export type InitiationViaOnChain = {
readonly __typename: 'InitiationViaOnChain';
readonly address: Scalars['OnChainAddress']['output'];
};
export type LightningInvoice = {
readonly __typename: 'LightningInvoice';
readonly confirmedAt?: Maybe<Scalars['Timestamp']['output']>;
readonly createdAt: Scalars['Timestamp']['output'];
readonly description: Scalars['String']['output'];
readonly expiresAt?: Maybe<Scalars['Timestamp']['output']>;
readonly isSettled: Scalars['Boolean']['output'];
readonly received: Scalars['SatAmount']['output'];
readonly request?: Maybe<Scalars['LnPaymentRequest']['output']>;
readonly secretPreImage: Scalars['LnPaymentPreImage']['output'];
};
export type LightningPayment = {
readonly __typename: 'LightningPayment';
readonly amount?: Maybe<Scalars['SatAmount']['output']>;
readonly confirmedAt?: Maybe<Scalars['Timestamp']['output']>;
readonly createdAt?: Maybe<Scalars['Timestamp']['output']>;
readonly destination?: Maybe<Scalars['LnPubkey']['output']>;
readonly request?: Maybe<Scalars['LnPaymentRequest']['output']>;
readonly revealedPreImage?: Maybe<Scalars['LnPaymentPreImage']['output']>;
readonly roundedUpFee?: Maybe<Scalars['SatAmount']['output']>;
readonly status?: Maybe<LnPaymentStatus>;
};
export const LnPaymentStatus = {
Failed: 'FAILED',
Pending: 'PENDING',
Settled: 'SETTLED'
} as const;
export type LnPaymentStatus = typeof LnPaymentStatus[keyof typeof LnPaymentStatus];
export type Mutation = {
readonly __typename: 'Mutation';
readonly accountUpdateLevel: AccountDetailPayload;
readonly accountUpdateStatus: AccountDetailPayload;
readonly adminPushNotificationSend: AdminPushNotificationSendPayload;
readonly businessDeleteMapInfo: AccountDetailPayload;
readonly businessUpdateMapInfo: AccountDetailPayload;
readonly userUpdatePhone: AccountDetailPayload;
};
export type MutationAccountUpdateLevelArgs = {
input: AccountUpdateLevelInput;
};
export type MutationAccountUpdateStatusArgs = {
input: AccountUpdateStatusInput;
};
export type MutationAdminPushNotificationSendArgs = {
input: AdminPushNotificationSendInput;
};
export type MutationBusinessDeleteMapInfoArgs = {
input: BusinessDeleteMapInfoInput;
};
export type MutationBusinessUpdateMapInfoArgs = {
input: BusinessUpdateMapInfoInput;
};
export type MutationUserUpdatePhoneArgs = {
input: UserUpdatePhoneInput;
};
/** Information about pagination in a connection. */
export type PageInfo = {
readonly __typename: 'PageInfo';
/** When paginating forwards, the cursor to continue. */
readonly endCursor?: Maybe<Scalars['String']['output']>;
/** When paginating forwards, are there more items? */
readonly hasNextPage: Scalars['Boolean']['output'];
/** When paginating backwards, are there more items? */
readonly hasPreviousPage: Scalars['Boolean']['output'];
/** When paginating backwards, the cursor to continue. */
readonly startCursor?: Maybe<Scalars['String']['output']>;
};
export type PriceInterface = {
readonly base: Scalars['SafeInt']['output'];
/** @deprecated Deprecated due to type renaming */
readonly currencyUnit: Scalars['String']['output'];
readonly offset: Scalars['Int']['output'];
};
/** Price of 1 sat or 1 usd cent in base/offset. To calculate, use: `base / 10^offset` */
export type PriceOfOneSettlementMinorUnitInDisplayMinorUnit = PriceInterface & {
readonly __typename: 'PriceOfOneSettlementMinorUnitInDisplayMinorUnit';
readonly base: Scalars['SafeInt']['output'];
/** @deprecated Deprecated due to type renaming */
readonly currencyUnit: Scalars['String']['output'];
/** @deprecated Deprecated please use `base / 10^offset` */
readonly formattedAmount: Scalars['String']['output'];
readonly offset: Scalars['Int']['output'];
};
export type Query = {
readonly __typename: 'Query';
readonly accountDetailsByAccountId: AuditedAccount;
readonly accountDetailsByEmail: AuditedAccount;
readonly accountDetailsByUserId: AuditedAccount;
readonly accountDetailsByUserPhone: AuditedAccount;
readonly accountDetailsByUsername: AuditedAccount;
readonly allLevels: ReadonlyArray<AccountLevel>;
readonly lightningInvoice: LightningInvoice;
readonly lightningPayment: LightningPayment;
readonly listWalletIds: ReadonlyArray<Scalars['WalletId']['output']>;
readonly transactionById?: Maybe<Transaction>;
readonly transactionsByHash?: Maybe<ReadonlyArray<Maybe<Transaction>>>;
readonly wallet: Wallet;
};
export type QueryAccountDetailsByAccountIdArgs = {
accountId: Scalars['ID']['input'];
};
export type QueryAccountDetailsByEmailArgs = {
email: Scalars['EmailAddress']['input'];
};
export type QueryAccountDetailsByUserIdArgs = {
userId: Scalars['ID']['input'];
};
export type QueryAccountDetailsByUserPhoneArgs = {
phone: Scalars['Phone']['input'];
};
export type QueryAccountDetailsByUsernameArgs = {
username: Scalars['Username']['input'];
};
export type QueryLightningInvoiceArgs = {
hash: Scalars['PaymentHash']['input'];
};
export type QueryLightningPaymentArgs = {
hash: Scalars['PaymentHash']['input'];
};
export type QueryListWalletIdsArgs = {
walletCurrency: WalletCurrency;
};
export type QueryTransactionByIdArgs = {
id: Scalars['ID']['input'];
};
export type QueryTransactionsByHashArgs = {
hash: Scalars['PaymentHash']['input'];
};
export type QueryWalletArgs = {
walletId: Scalars['WalletId']['input'];
};
export type SettlementVia = SettlementViaIntraLedger | SettlementViaLn | SettlementViaOnChain;
export type SettlementViaIntraLedger = {
readonly __typename: 'SettlementViaIntraLedger';
/** Settlement destination: Could be null if the payee does not have a username */
readonly counterPartyUsername?: Maybe<Scalars['Username']['output']>;
readonly counterPartyWalletId?: Maybe<Scalars['WalletId']['output']>;
};
export type SettlementViaLn = {
readonly __typename: 'SettlementViaLn';
/** @deprecated Shifting property to 'preImage' to improve granularity of the LnPaymentSecret type */
readonly paymentSecret?: Maybe<Scalars['LnPaymentSecret']['output']>;
readonly preImage?: Maybe<Scalars['LnPaymentPreImage']['output']>;
};
export type SettlementViaOnChain = {
readonly __typename: 'SettlementViaOnChain';
readonly transactionHash?: Maybe<Scalars['OnChainTxHash']['output']>;
readonly vout?: Maybe<Scalars['Int']['output']>;
};
/**
* Give details about an individual transaction.
* Galoy have a smart routing system which is automatically
* settling intraledger when both the payer and payee use the same wallet
* therefore it's possible the transactions is being initiated onchain
* or with lightning but settled intraledger.
*/
export type Transaction = {
readonly __typename: 'Transaction';
readonly createdAt: Scalars['Timestamp']['output'];
readonly direction: TxDirection;
readonly id: Scalars['ID']['output'];
/** From which protocol the payment has been initiated. */
readonly initiationVia: InitiationVia;
readonly memo?: Maybe<Scalars['Memo']['output']>;
/** Amount of the settlement currency sent or received. */
readonly settlementAmount: Scalars['SignedAmount']['output'];
/** Wallet currency for transaction. */
readonly settlementCurrency: WalletCurrency;
readonly settlementDisplayAmount: Scalars['SignedDisplayMajorAmount']['output'];
readonly settlementDisplayCurrency: Scalars['DisplayCurrency']['output'];
readonly settlementDisplayFee: Scalars['SignedDisplayMajorAmount']['output'];
readonly settlementFee: Scalars['SignedAmount']['output'];
/** Price in WALLETCURRENCY/SETTLEMENTUNIT at time of settlement. */
readonly settlementPrice: PriceOfOneSettlementMinorUnitInDisplayMinorUnit;
/** To which protocol the payment has settled on. */
readonly settlementVia: SettlementVia;
readonly status: TxStatus;
};
/** A connection to a list of items. */
export type TransactionConnection = {
readonly __typename: 'TransactionConnection';
/** A list of edges. */
readonly edges?: Maybe<ReadonlyArray<TransactionEdge>>;
/** Information to aid in pagination. */
readonly pageInfo: PageInfo;
};
/** An edge in a connection. */
export type TransactionEdge = {
readonly __typename: 'TransactionEdge';
/** A cursor for use in pagination */
readonly cursor: Scalars['String']['output'];
/** The item at the end of the edge */
readonly node: Transaction;
};
export const TxDirection = {
Receive: 'RECEIVE',
Send: 'SEND'
} as const;
export type TxDirection = typeof TxDirection[keyof typeof TxDirection];
export const TxStatus = {
Failure: 'FAILURE',
Pending: 'PENDING',
Success: 'SUCCESS'
} as const;
export type TxStatus = typeof TxStatus[keyof typeof TxStatus];
/** A wallet belonging to an account which contains a USD balance and a list of transactions. */
export type UsdWallet = Wallet & {
readonly __typename: 'UsdWallet';
readonly accountId: Scalars['ID']['output'];
readonly balance: Scalars['SignedAmount']['output'];
readonly id: Scalars['ID']['output'];
/** An unconfirmed incoming onchain balance. */
readonly pendingIncomingBalance: Scalars['SignedAmount']['output'];
readonly transactions?: Maybe<TransactionConnection>;
readonly transactionsByAddress?: Maybe<TransactionConnection>;
readonly walletCurrency: WalletCurrency;
};
/** A wallet belonging to an account which contains a USD balance and a list of transactions. */
export type UsdWalletTransactionsArgs = {
after?: InputMaybe<Scalars['String']['input']>;
before?: InputMaybe<Scalars['String']['input']>;
first?: InputMaybe<Scalars['Int']['input']>;
last?: InputMaybe<Scalars['Int']['input']>;
};
/** A wallet belonging to an account which contains a USD balance and a list of transactions. */
export type UsdWalletTransactionsByAddressArgs = {
address: Scalars['OnChainAddress']['input'];
after?: InputMaybe<Scalars['String']['input']>;
before?: InputMaybe<Scalars['String']['input']>;
first?: InputMaybe<Scalars['Int']['input']>;
last?: InputMaybe<Scalars['Int']['input']>;
};
export type UserUpdatePhoneInput = {
readonly accountId: Scalars['AccountId']['input'];
readonly phone: Scalars['Phone']['input'];
};
/** A generic wallet which stores value in one of our supported currencies. */
export type Wallet = {
readonly accountId: Scalars['ID']['output'];
readonly balance: Scalars['SignedAmount']['output'];
readonly id: Scalars['ID']['output'];
readonly pendingIncomingBalance: Scalars['SignedAmount']['output'];
/**
* Transactions are ordered anti-chronologically,
* ie: the newest transaction will be first
*/
readonly transactions?: Maybe<TransactionConnection>;
/**
* Transactions are ordered anti-chronologically,
* ie: the newest transaction will be first
*/
readonly transactionsByAddress?: Maybe<TransactionConnection>;
readonly walletCurrency: WalletCurrency;
};
/** A generic wallet which stores value in one of our supported currencies. */
export type WalletTransactionsArgs = {
after?: InputMaybe<Scalars['String']['input']>;
before?: InputMaybe<Scalars['String']['input']>;
first?: InputMaybe<Scalars['Int']['input']>;
last?: InputMaybe<Scalars['Int']['input']>;
};
/** A generic wallet which stores value in one of our supported currencies. */
export type WalletTransactionsByAddressArgs = {
address: Scalars['OnChainAddress']['input'];
after?: InputMaybe<Scalars['String']['input']>;
before?: InputMaybe<Scalars['String']['input']>;
first?: InputMaybe<Scalars['Int']['input']>;
last?: InputMaybe<Scalars['Int']['input']>;
};
export const WalletCurrency = {
Btc: 'BTC',
Usd: 'USD'
} as const;
export type WalletCurrency = typeof WalletCurrency[keyof typeof WalletCurrency];
export type AccountDetailsByUserPhoneQueryVariables = Exact<{
phone: Scalars['Phone']['input'];
}>;
export type AccountDetailsByUserPhoneQuery = { readonly __typename: 'Query', readonly accountDetailsByUserPhone: { readonly __typename: 'AuditedAccount', readonly id: string, readonly username?: string | null, readonly level: AccountLevel, readonly status: AccountStatus, readonly title?: string | null, readonly createdAt: number, readonly owner: { readonly __typename: 'AuditedUser', readonly id: string, readonly language: string, readonly phone?: string | null, readonly createdAt: number, readonly email?: { readonly __typename: 'Email', readonly address?: string | null, readonly verified?: boolean | null } | null }, readonly coordinates?: { readonly __typename: 'Coordinates', readonly latitude: number, readonly longitude: number } | null, readonly wallets: ReadonlyArray<{ readonly __typename: 'BTCWallet', readonly id: string, readonly walletCurrency: WalletCurrency, readonly accountId: string, readonly balance: number, readonly pendingIncomingBalance: number } | { readonly __typename: 'UsdWallet', readonly id: string, readonly walletCurrency: WalletCurrency, readonly accountId: string, readonly balance: number, readonly pendingIncomingBalance: number }> } };
export type AccountDetailsByAccountIdQueryVariables = Exact<{
accountId: Scalars['ID']['input'];
}>;
export type AccountDetailsByAccountIdQuery = { readonly __typename: 'Query', readonly accountDetailsByAccountId: { readonly __typename: 'AuditedAccount', readonly id: string, readonly username?: string | null, readonly level: AccountLevel, readonly status: AccountStatus, readonly title?: string | null, readonly createdAt: number, readonly owner: { readonly __typename: 'AuditedUser', readonly id: string, readonly language: string, readonly phone?: string | null, readonly createdAt: number, readonly email?: { readonly __typename: 'Email', readonly address?: string | null, readonly verified?: boolean | null } | null }, readonly coordinates?: { readonly __typename: 'Coordinates', readonly latitude: number, readonly longitude: number } | null, readonly wallets: ReadonlyArray<{ readonly __typename: 'BTCWallet', readonly id: string, readonly walletCurrency: WalletCurrency, readonly accountId: string, readonly balance: number, readonly pendingIncomingBalance: number } | { readonly __typename: 'UsdWallet', readonly id: string, readonly walletCurrency: WalletCurrency, readonly accountId: string, readonly balance: number, readonly pendingIncomingBalance: number }> } };
export type AccountDetailsByEmailQueryVariables = Exact<{
email: Scalars['EmailAddress']['input'];
}>;
export type AccountDetailsByEmailQuery = { readonly __typename: 'Query', readonly accountDetailsByEmail: { readonly __typename: 'AuditedAccount', readonly id: string, readonly username?: string | null, readonly level: AccountLevel, readonly status: AccountStatus, readonly title?: string | null, readonly createdAt: number, readonly owner: { readonly __typename: 'AuditedUser', readonly id: string, readonly language: string, readonly phone?: string | null, readonly createdAt: number, readonly email?: { readonly __typename: 'Email', readonly address?: string | null, readonly verified?: boolean | null } | null }, readonly coordinates?: { readonly __typename: 'Coordinates', readonly latitude: number, readonly longitude: number } | null, readonly wallets: ReadonlyArray<{ readonly __typename: 'BTCWallet', readonly id: string, readonly walletCurrency: WalletCurrency, readonly accountId: string, readonly balance: number, readonly pendingIncomingBalance: number } | { readonly __typename: 'UsdWallet', readonly id: string, readonly walletCurrency: WalletCurrency, readonly accountId: string, readonly balance: number, readonly pendingIncomingBalance: number }> } };
export type BusinessDeleteMapInfoMutationVariables = Exact<{
input: BusinessDeleteMapInfoInput;
}>;
export type BusinessDeleteMapInfoMutation = { readonly __typename: 'Mutation', readonly businessDeleteMapInfo: { readonly __typename: 'AccountDetailPayload', readonly errors: ReadonlyArray<{ readonly __typename: 'GraphQLApplicationError', readonly message: string }> } };
export type AccountUpdateLevelMutationVariables = Exact<{
input: AccountUpdateLevelInput;
}>;
export type AccountUpdateLevelMutation = { readonly __typename: 'Mutation', readonly accountUpdateLevel: { readonly __typename: 'AccountDetailPayload', readonly errors: ReadonlyArray<{ readonly __typename: 'GraphQLApplicationError', readonly message: string }>, readonly accountDetails?: { readonly __typename: 'AuditedAccount', readonly id: string, readonly username?: string | null, readonly level: AccountLevel, readonly status: AccountStatus, readonly title?: string | null, readonly createdAt: number, readonly owner: { readonly __typename: 'AuditedUser', readonly id: string, readonly language: string, readonly phone?: string | null, readonly createdAt: number, readonly email?: { readonly __typename: 'Email', readonly address?: string | null, readonly verified?: boolean | null } | null }, readonly coordinates?: { readonly __typename: 'Coordinates', readonly latitude: number, readonly longitude: number } | null, readonly wallets: ReadonlyArray<{ readonly __typename: 'BTCWallet', readonly id: string, readonly walletCurrency: WalletCurrency, readonly accountId: string, readonly balance: number, readonly pendingIncomingBalance: number } | { readonly __typename: 'UsdWallet', readonly id: string, readonly walletCurrency: WalletCurrency, readonly accountId: string, readonly balance: number, readonly pendingIncomingBalance: number }> } | null } };
export type BusinessUpdateMapInfoMutationVariables = Exact<{
input: BusinessUpdateMapInfoInput;
}>;
export type BusinessUpdateMapInfoMutation = { readonly __typename: 'Mutation', readonly businessUpdateMapInfo: { readonly __typename: 'AccountDetailPayload', readonly errors: ReadonlyArray<{ readonly __typename: 'GraphQLApplicationError', readonly message: string }>, readonly accountDetails?: { readonly __typename: 'AuditedAccount', readonly id: string, readonly username?: string | null, readonly level: AccountLevel, readonly status: AccountStatus, readonly title?: string | null, readonly createdAt: number, readonly owner: { readonly __typename: 'AuditedUser', readonly id: string, readonly language: string, readonly phone?: string | null, readonly createdAt: number, readonly email?: { readonly __typename: 'Email', readonly address?: string | null, readonly verified?: boolean | null } | null }, readonly coordinates?: { readonly __typename: 'Coordinates', readonly latitude: number, readonly longitude: number } | null, readonly wallets: ReadonlyArray<{ readonly __typename: 'BTCWallet', readonly id: string, readonly walletCurrency: WalletCurrency, readonly accountId: string, readonly balance: number, readonly pendingIncomingBalance: number } | { readonly __typename: 'UsdWallet', readonly id: string, readonly walletCurrency: WalletCurrency, readonly accountId: string, readonly balance: number, readonly pendingIncomingBalance: number }> } | null } };
export type AccountUpdateStatusMutationVariables = Exact<{
input: AccountUpdateStatusInput;
}>;
export type AccountUpdateStatusMutation = { readonly __typename: 'Mutation', readonly accountUpdateStatus: { readonly __typename: 'AccountDetailPayload', readonly errors: ReadonlyArray<{ readonly __typename: 'GraphQLApplicationError', readonly message: string }>, readonly accountDetails?: { readonly __typename: 'AuditedAccount', readonly id: string, readonly username?: string | null, readonly level: AccountLevel, readonly status: AccountStatus, readonly title?: string | null, readonly createdAt: number, readonly owner: { readonly __typename: 'AuditedUser', readonly id: string, readonly language: string, readonly phone?: string | null, readonly createdAt: number, readonly email?: { readonly __typename: 'Email', readonly address?: string | null, readonly verified?: boolean | null } | null }, readonly coordinates?: { readonly __typename: 'Coordinates', readonly latitude: number, readonly longitude: number } | null, readonly wallets: ReadonlyArray<{ readonly __typename: 'BTCWallet', readonly id: string, readonly walletCurrency: WalletCurrency, readonly accountId: string, readonly balance: number, readonly pendingIncomingBalance: number } | { readonly __typename: 'UsdWallet', readonly id: string, readonly walletCurrency: WalletCurrency, readonly accountId: string, readonly balance: number, readonly pendingIncomingBalance: number }> } | null } };
export type AccountDetailsByUsernameQueryVariables = Exact<{
username: Scalars['Username']['input'];
}>;
export type AccountDetailsByUsernameQuery = { readonly __typename: 'Query', readonly accountDetailsByUsername: { readonly __typename: 'AuditedAccount', readonly id: string, readonly username?: string | null, readonly level: AccountLevel, readonly status: AccountStatus, readonly title?: string | null, readonly createdAt: number, readonly owner: { readonly __typename: 'AuditedUser', readonly id: string, readonly language: string, readonly phone?: string | null, readonly createdAt: number, readonly email?: { readonly __typename: 'Email', readonly address?: string | null, readonly verified?: boolean | null } | null }, readonly coordinates?: { readonly __typename: 'Coordinates', readonly latitude: number, readonly longitude: number } | null, readonly wallets: ReadonlyArray<{ readonly __typename: 'BTCWallet', readonly id: string, readonly walletCurrency: WalletCurrency, readonly accountId: string, readonly balance: number, readonly pendingIncomingBalance: number } | { readonly __typename: 'UsdWallet', readonly id: string, readonly walletCurrency: WalletCurrency, readonly accountId: string, readonly balance: number, readonly pendingIncomingBalance: number }> } };
export type LightningInvoiceQueryVariables = Exact<{
hash: Scalars['PaymentHash']['input'];
}>;
export type LightningInvoiceQuery = { readonly __typename: 'Query', readonly lightningInvoice: { readonly __typename: 'LightningInvoice', readonly createdAt: number, readonly confirmedAt?: number | null, readonly description: string, readonly expiresAt?: number | null, readonly isSettled: boolean, readonly received: number, readonly request?: string | null, readonly secretPreImage: string } };
export type LightningPaymentQueryVariables = Exact<{
hash: Scalars['PaymentHash']['input'];
}>;
export type LightningPaymentQuery = { readonly __typename: 'Query', readonly lightningPayment: { readonly __typename: 'LightningPayment', readonly createdAt?: number | null, readonly confirmedAt?: number | null, readonly status?: LnPaymentStatus | null, readonly amount?: number | null, readonly roundedUpFee?: number | null, readonly revealedPreImage?: string | null, readonly request?: string | null, readonly destination?: string | null } };
export type TransactionsByHashQueryVariables = Exact<{
hash: Scalars['PaymentHash']['input'];
}>;
export type TransactionsByHashQuery = { readonly __typename: 'Query', readonly transactionsByHash?: ReadonlyArray<{ readonly __typename: 'Transaction', readonly id: string, readonly settlementAmount: number, readonly settlementFee: number, readonly direction: TxDirection, readonly status: TxStatus, readonly memo?: string | null, readonly createdAt: number, readonly initiationVia: { readonly __typename: 'InitiationViaIntraLedger', readonly counterPartyWalletId?: string | null, readonly counterPartyUsername?: string | null } | { readonly __typename: 'InitiationViaLn', readonly paymentHash: string } | { readonly __typename: 'InitiationViaOnChain', readonly address: string }, readonly settlementVia: { readonly __typename: 'SettlementViaIntraLedger', readonly counterPartyWalletId?: string | null, readonly counterPartyUsername?: string | null } | { readonly __typename: 'SettlementViaLn', readonly paymentSecret?: string | null } | { readonly __typename: 'SettlementViaOnChain', readonly transactionHash?: string | null }, readonly settlementPrice: { readonly __typename: 'PriceOfOneSettlementMinorUnitInDisplayMinorUnit', readonly base: number, readonly offset: number, readonly currencyUnit: string, readonly formattedAmount: string } } | null> | null };
export type TransactionByIdQueryVariables = Exact<{
id: Scalars['ID']['input'];
}>;
export type TransactionByIdQuery = { readonly __typename: 'Query', readonly transactionById?: { readonly __typename: 'Transaction', readonly id: string, readonly settlementAmount: number, readonly settlementFee: number, readonly direction: TxDirection, readonly status: TxStatus, readonly memo?: string | null, readonly createdAt: number, readonly initiationVia: { readonly __typename: 'InitiationViaIntraLedger', readonly counterPartyWalletId?: string | null, readonly counterPartyUsername?: string | null } | { readonly __typename: 'InitiationViaLn', readonly paymentHash: string } | { readonly __typename: 'InitiationViaOnChain', readonly address: string }, readonly settlementVia: { readonly __typename: 'SettlementViaIntraLedger', readonly counterPartyWalletId?: string | null, readonly counterPartyUsername?: string | null } | { readonly __typename: 'SettlementViaLn', readonly paymentSecret?: string | null } | { readonly __typename: 'SettlementViaOnChain', readonly transactionHash?: string | null }, readonly settlementPrice: { readonly __typename: 'PriceOfOneSettlementMinorUnitInDisplayMinorUnit', readonly base: number, readonly offset: number, readonly currencyUnit: string, readonly formattedAmount: string } } | null };
export const AccountDetailsByUserPhoneDocument = gql`
query accountDetailsByUserPhone($phone: Phone!) {
accountDetailsByUserPhone(phone: $phone) {
id
username
level
status
title
owner {
id
language
phone
email {
address
verified
}
createdAt
}
coordinates {
latitude
longitude
}
wallets {
id
walletCurrency
accountId
balance
pendingIncomingBalance
}
createdAt
}
}
`;
/**
* __useAccountDetailsByUserPhoneQuery__
*
* To run a query within a React component, call `useAccountDetailsByUserPhoneQuery` and pass it any options that fit your needs.
* When your component renders, `useAccountDetailsByUserPhoneQuery` returns an object from Apollo Client that contains loading, error, and data properties
* you can use to render your UI.
*
* @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;
*
* @example
* const { data, loading, error } = useAccountDetailsByUserPhoneQuery({
* variables: {
* phone: // value for 'phone'
* },
* });
*/
export function useAccountDetailsByUserPhoneQuery(baseOptions: Apollo.QueryHookOptions<AccountDetailsByUserPhoneQuery, AccountDetailsByUserPhoneQueryVariables>) {
const options = {...defaultOptions, ...baseOptions}
return Apollo.useQuery<AccountDetailsByUserPhoneQuery, AccountDetailsByUserPhoneQueryVariables>(AccountDetailsByUserPhoneDocument, options);
}
export function useAccountDetailsByUserPhoneLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<AccountDetailsByUserPhoneQuery, AccountDetailsByUserPhoneQueryVariables>) {
const options = {...defaultOptions, ...baseOptions}
return Apollo.useLazyQuery<AccountDetailsByUserPhoneQuery, AccountDetailsByUserPhoneQueryVariables>(AccountDetailsByUserPhoneDocument, options);
}
export type AccountDetailsByUserPhoneQueryHookResult = ReturnType<typeof useAccountDetailsByUserPhoneQuery>;
export type AccountDetailsByUserPhoneLazyQueryHookResult = ReturnType<typeof useAccountDetailsByUserPhoneLazyQuery>;
export type AccountDetailsByUserPhoneQueryResult = Apollo.QueryResult<AccountDetailsByUserPhoneQuery, AccountDetailsByUserPhoneQueryVariables>;
export const AccountDetailsByAccountIdDocument = gql`
query accountDetailsByAccountId($accountId: ID!) {
accountDetailsByAccountId(accountId: $accountId) {
id
username
level
status
title
owner {
id
language
phone
email {
address
verified
}
createdAt
}
coordinates {
latitude
longitude
}
wallets {
id
walletCurrency
accountId
balance
pendingIncomingBalance
}
createdAt
}
}
`;
/**
* __useAccountDetailsByAccountIdQuery__
*
* To run a query within a React component, call `useAccountDetailsByAccountIdQuery` and pass it any options that fit your needs.
* When your component renders, `useAccountDetailsByAccountIdQuery` returns an object from Apollo Client that contains loading, error, and data properties
* you can use to render your UI.
*
* @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;
*
* @example
* const { data, loading, error } = useAccountDetailsByAccountIdQuery({
* variables: {
* accountId: // value for 'accountId'
* },
* });
*/
export function useAccountDetailsByAccountIdQuery(baseOptions: Apollo.QueryHookOptions<AccountDetailsByAccountIdQuery, AccountDetailsByAccountIdQueryVariables>) {
const options = {...defaultOptions, ...baseOptions}
return Apollo.useQuery<AccountDetailsByAccountIdQuery, AccountDetailsByAccountIdQueryVariables>(AccountDetailsByAccountIdDocument, options);
}
export function useAccountDetailsByAccountIdLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<AccountDetailsByAccountIdQuery, AccountDetailsByAccountIdQueryVariables>) {
const options = {...defaultOptions, ...baseOptions}
return Apollo.useLazyQuery<AccountDetailsByAccountIdQuery, AccountDetailsByAccountIdQueryVariables>(AccountDetailsByAccountIdDocument, options);
}
export type AccountDetailsByAccountIdQueryHookResult = ReturnType<typeof useAccountDetailsByAccountIdQuery>;
export type AccountDetailsByAccountIdLazyQueryHookResult = ReturnType<typeof useAccountDetailsByAccountIdLazyQuery>;
export type AccountDetailsByAccountIdQueryResult = Apollo.QueryResult<AccountDetailsByAccountIdQuery, AccountDetailsByAccountIdQueryVariables>;
export const AccountDetailsByEmailDocument = gql`
query accountDetailsByEmail($email: EmailAddress!) {
accountDetailsByEmail(email: $email) {
id
username
level
status
title
owner {
id
language
phone
email {
address
verified
}
createdAt
}
coordinates {
latitude
longitude
}
wallets {
id
walletCurrency
accountId
balance
pendingIncomingBalance
}
createdAt
}
}
`;
/**
* __useAccountDetailsByEmailQuery__
*
* To run a query within a React component, call `useAccountDetailsByEmailQuery` and pass it any options that fit your needs.
* When your component renders, `useAccountDetailsByEmailQuery` returns an object from Apollo Client that contains loading, error, and data properties
* you can use to render your UI.
*
* @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;
*
* @example
* const { data, loading, error } = useAccountDetailsByEmailQuery({
* variables: {
* email: // value for 'email'
* },
* });
*/
export function useAccountDetailsByEmailQuery(baseOptions: Apollo.QueryHookOptions<AccountDetailsByEmailQuery, AccountDetailsByEmailQueryVariables>) {
const options = {...defaultOptions, ...baseOptions}
return Apollo.useQuery<AccountDetailsByEmailQuery, AccountDetailsByEmailQueryVariables>(AccountDetailsByEmailDocument, options);
}
export function useAccountDetailsByEmailLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<AccountDetailsByEmailQuery, AccountDetailsByEmailQueryVariables>) {
const options = {...defaultOptions, ...baseOptions}
return Apollo.useLazyQuery<AccountDetailsByEmailQuery, AccountDetailsByEmailQueryVariables>(AccountDetailsByEmailDocument, options);
}
export type AccountDetailsByEmailQueryHookResult = ReturnType<typeof useAccountDetailsByEmailQuery>;
export type AccountDetailsByEmailLazyQueryHookResult = ReturnType<typeof useAccountDetailsByEmailLazyQuery>;
export type AccountDetailsByEmailQueryResult = Apollo.QueryResult<AccountDetailsByEmailQuery, AccountDetailsByEmailQueryVariables>;
export const BusinessDeleteMapInfoDocument = gql`
mutation businessDeleteMapInfo($input: BusinessDeleteMapInfoInput!) {
businessDeleteMapInfo(input: $input) {
errors {
message
}
}
}
`;
export type BusinessDeleteMapInfoMutationFn = Apollo.MutationFunction<BusinessDeleteMapInfoMutation, BusinessDeleteMapInfoMutationVariables>;
/**
* __useBusinessDeleteMapInfoMutation__
*
* To run a mutation, you first call `useBusinessDeleteMapInfoMutation` within a React component and pass it any options that fit your needs.
* When your component renders, `useBusinessDeleteMapInfoMutation` returns a tuple that includes:
* - A mutate function that you can call at any time to execute the mutation
* - An object with fields that represent the current status of the mutation's execution
*
* @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;
*
* @example
* const [businessDeleteMapInfoMutation, { data, loading, error }] = useBusinessDeleteMapInfoMutation({
* variables: {
* input: // value for 'input'
* },
* });
*/
export function useBusinessDeleteMapInfoMutation(baseOptions?: Apollo.MutationHookOptions<BusinessDeleteMapInfoMutation, BusinessDeleteMapInfoMutationVariables>) {
const options = {...defaultOptions, ...baseOptions}
return Apollo.useMutation<BusinessDeleteMapInfoMutation, BusinessDeleteMapInfoMutationVariables>(BusinessDeleteMapInfoDocument, options);
}
export type BusinessDeleteMapInfoMutationHookResult = ReturnType<typeof useBusinessDeleteMapInfoMutation>;
export type BusinessDeleteMapInfoMutationResult = Apollo.MutationResult<BusinessDeleteMapInfoMutation>;
export type BusinessDeleteMapInfoMutationOptions = Apollo.BaseMutationOptions<BusinessDeleteMapInfoMutation, BusinessDeleteMapInfoMutationVariables>;
export const AccountUpdateLevelDocument = gql`
mutation accountUpdateLevel($input: AccountUpdateLevelInput!) {
accountUpdateLevel(input: $input) {
errors {
message
}
accountDetails {
id
username
level
status
title
owner {
id
language
phone
email {
address
verified
}
createdAt
}
coordinates {
latitude
longitude
}
wallets {
id
walletCurrency
accountId
balance
pendingIncomingBalance
}
createdAt
}
}
}
`;
export type AccountUpdateLevelMutationFn = Apollo.MutationFunction<AccountUpdateLevelMutation, AccountUpdateLevelMutationVariables>;
/**
* __useAccountUpdateLevelMutation__
*
* To run a mutation, you first call `useAccountUpdateLevelMutation` within a React component and pass it any options that fit your needs.
* When your component renders, `useAccountUpdateLevelMutation` returns a tuple that includes:
* - A mutate function that you can call at any time to execute the mutation
* - An object with fields that represent the current status of the mutation's execution
*
* @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;
*
* @example
* const [accountUpdateLevelMutation, { data, loading, error }] = useAccountUpdateLevelMutation({
* variables: {
* input: // value for 'input'
* },
* });
*/
export function useAccountUpdateLevelMutation(baseOptions?: Apollo.MutationHookOptions<AccountUpdateLevelMutation, AccountUpdateLevelMutationVariables>) {
const options = {...defaultOptions, ...baseOptions}
return Apollo.useMutation<AccountUpdateLevelMutation, AccountUpdateLevelMutationVariables>(AccountUpdateLevelDocument, options);
}
export type AccountUpdateLevelMutationHookResult = ReturnType<typeof useAccountUpdateLevelMutation>;
export type AccountUpdateLevelMutationResult = Apollo.MutationResult<AccountUpdateLevelMutation>;
export type AccountUpdateLevelMutationOptions = Apollo.BaseMutationOptions<AccountUpdateLevelMutation, AccountUpdateLevelMutationVariables>;
export const BusinessUpdateMapInfoDocument = gql`
mutation businessUpdateMapInfo($input: BusinessUpdateMapInfoInput!) {
businessUpdateMapInfo(input: $input) {
errors {
message
}
accountDetails {
id
username
level
status
title
owner {
id
language
phone
email {
address
verified
}
createdAt
}
coordinates {
latitude
longitude
}
wallets {
id
walletCurrency
accountId
balance
pendingIncomingBalance
}
createdAt
}
}
}
`;
export type BusinessUpdateMapInfoMutationFn = Apollo.MutationFunction<BusinessUpdateMapInfoMutation, BusinessUpdateMapInfoMutationVariables>;
/**
* __useBusinessUpdateMapInfoMutation__
*
* To run a mutation, you first call `useBusinessUpdateMapInfoMutation` within a React component and pass it any options that fit your needs.
* When your component renders, `useBusinessUpdateMapInfoMutation` returns a tuple that includes:
* - A mutate function that you can call at any time to execute the mutation
* - An object with fields that represent the current status of the mutation's execution
*
* @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;
*
* @example
* const [businessUpdateMapInfoMutation, { data, loading, error }] = useBusinessUpdateMapInfoMutation({
* variables: {
* input: // value for 'input'
* },
* });
*/
export function useBusinessUpdateMapInfoMutation(baseOptions?: Apollo.MutationHookOptions<BusinessUpdateMapInfoMutation, BusinessUpdateMapInfoMutationVariables>) {
const options = {...defaultOptions, ...baseOptions}
return Apollo.useMutation<BusinessUpdateMapInfoMutation, BusinessUpdateMapInfoMutationVariables>(BusinessUpdateMapInfoDocument, options);
}
export type BusinessUpdateMapInfoMutationHookResult = ReturnType<typeof useBusinessUpdateMapInfoMutation>;
export type BusinessUpdateMapInfoMutationResult = Apollo.MutationResult<BusinessUpdateMapInfoMutation>;
export type BusinessUpdateMapInfoMutationOptions = Apollo.BaseMutationOptions<BusinessUpdateMapInfoMutation, BusinessUpdateMapInfoMutationVariables>;
export const AccountUpdateStatusDocument = gql`
mutation accountUpdateStatus($input: AccountUpdateStatusInput!) {
accountUpdateStatus(input: $input) {
errors {
message
}
accountDetails {
id
username
level
status
title
owner {
id
language