@moneypot/hub 1.15.0 → 1.16.0-dev.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/dist/src/__generated__/gql.d.ts +2 -2
  2. package/dist/src/__generated__/gql.js +1 -1
  3. package/dist/src/__generated__/graphql.d.ts +240 -27
  4. package/dist/src/__generated__/graphql.js +30 -1
  5. package/dist/src/db/index.d.ts +1 -0
  6. package/dist/src/db/index.js +10 -2
  7. package/dist/src/db/types.d.ts +24 -0
  8. package/dist/src/express.d.ts +1 -0
  9. package/dist/src/graphql-queries.js +4 -0
  10. package/dist/src/index.d.ts +2 -1
  11. package/dist/src/index.js +2 -1
  12. package/dist/src/pg-advisory-lock.d.ts +5 -0
  13. package/dist/src/pg-advisory-lock.js +5 -0
  14. package/dist/src/pg-versions/013-chat.sql +221 -0
  15. package/dist/src/plugins/chat/hub-chat-after-id-condition.d.ts +1 -0
  16. package/dist/src/plugins/chat/hub-chat-after-id-condition.js +15 -0
  17. package/dist/src/plugins/chat/hub-chat-create-system-message.d.ts +1 -0
  18. package/dist/src/plugins/chat/hub-chat-create-system-message.js +124 -0
  19. package/dist/src/plugins/chat/hub-chat-create-user-message.d.ts +1 -0
  20. package/dist/src/plugins/chat/hub-chat-create-user-message.js +231 -0
  21. package/dist/src/plugins/chat/hub-chat-mute-user.d.ts +1 -0
  22. package/dist/src/plugins/chat/hub-chat-mute-user.js +186 -0
  23. package/dist/src/plugins/chat/hub-chat-subscription.d.ts +14 -0
  24. package/dist/src/plugins/chat/hub-chat-subscription.js +133 -0
  25. package/dist/src/plugins/chat/hub-chat-unmute-user.d.ts +1 -0
  26. package/dist/src/plugins/chat/hub-chat-unmute-user.js +146 -0
  27. package/dist/src/plugins/hub-authenticate.js +40 -18
  28. package/dist/src/plugins/hub-create-playground-session.js +44 -13
  29. package/dist/src/server/graphile.config.d.ts +13 -1
  30. package/dist/src/server/graphile.config.js +38 -12
  31. package/dist/src/server/index.d.ts +3 -1
  32. package/dist/src/server/index.js +3 -1
  33. package/dist/src/server/middleware/authentication.js +1 -0
  34. package/dist/src/util.d.ts +3 -0
  35. package/dist/src/util.js +9 -0
  36. package/package.json +1 -1
@@ -2,7 +2,7 @@ import * as types from './graphql.js';
2
2
  import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
3
3
  type Documents = {
4
4
  "\n query AddCasino_GetCurrentController {\n currentController {\n id\n }\n }\n": typeof types.AddCasino_GetCurrentControllerDocument;
5
- "\n mutation GetUserFromUserToken($token: UUID!) {\n userFromUserToken(input: { token: $token }) {\n user {\n id\n uname\n }\n experience {\n id\n name\n }\n }\n }\n": typeof types.GetUserFromUserTokenDocument;
5
+ "\n mutation GetUserFromUserToken($token: UUID!) {\n userFromUserToken(input: { token: $token }) {\n user {\n id\n uname\n }\n experience {\n id\n name\n userByUserId {\n id\n uname\n }\n }\n }\n }\n": typeof types.GetUserFromUserTokenDocument;
6
6
  "\n mutation StartPendingExperienceTransfer(\n $mpUserId: UUID!\n $mpExperienceId: UUID!\n $mpTakeRequestId: UUID\n $amount: Int!\n $currency: String!\n $metadata: JSON!\n ) {\n transferCurrencyExperienceToUser(\n input: {\n userId: $mpUserId\n experienceId: $mpExperienceId\n amount: $amount\n currency: $currency\n metadata: $metadata\n takeRequestId: $mpTakeRequestId\n }\n ) {\n result {\n ... on TransferSuccess {\n __typename\n transfer {\n id\n status\n }\n }\n ... on TransferMetadataIdExists {\n __typename\n transfer {\n id\n status\n }\n }\n ... on TakeRequestAlreadyTerminal {\n __typename\n takeRequest {\n id\n status\n experienceTransfer {\n id\n status\n }\n }\n }\n }\n }\n }\n": typeof types.StartPendingExperienceTransferDocument;
7
7
  "\n query GetCurrencies {\n allCurrencies {\n nodes {\n id\n displayUnitName\n displayUnitScale\n }\n }\n }\n": typeof types.GetCurrenciesDocument;
8
8
  "\n query GetCurrentController {\n currentController {\n id\n }\n allCurrencies {\n nodes {\n id\n displayUnitName\n displayUnitScale\n }\n }\n }\n": typeof types.GetCurrentControllerDocument;
@@ -24,7 +24,7 @@ type Documents = {
24
24
  declare const documents: Documents;
25
25
  export declare function gql(source: string): unknown;
26
26
  export declare function gql(source: "\n query AddCasino_GetCurrentController {\n currentController {\n id\n }\n }\n"): (typeof documents)["\n query AddCasino_GetCurrentController {\n currentController {\n id\n }\n }\n"];
27
- export declare function gql(source: "\n mutation GetUserFromUserToken($token: UUID!) {\n userFromUserToken(input: { token: $token }) {\n user {\n id\n uname\n }\n experience {\n id\n name\n }\n }\n }\n"): (typeof documents)["\n mutation GetUserFromUserToken($token: UUID!) {\n userFromUserToken(input: { token: $token }) {\n user {\n id\n uname\n }\n experience {\n id\n name\n }\n }\n }\n"];
27
+ export declare function gql(source: "\n mutation GetUserFromUserToken($token: UUID!) {\n userFromUserToken(input: { token: $token }) {\n user {\n id\n uname\n }\n experience {\n id\n name\n userByUserId {\n id\n uname\n }\n }\n }\n }\n"): (typeof documents)["\n mutation GetUserFromUserToken($token: UUID!) {\n userFromUserToken(input: { token: $token }) {\n user {\n id\n uname\n }\n experience {\n id\n name\n userByUserId {\n id\n uname\n }\n }\n }\n }\n"];
28
28
  export declare function gql(source: "\n mutation StartPendingExperienceTransfer(\n $mpUserId: UUID!\n $mpExperienceId: UUID!\n $mpTakeRequestId: UUID\n $amount: Int!\n $currency: String!\n $metadata: JSON!\n ) {\n transferCurrencyExperienceToUser(\n input: {\n userId: $mpUserId\n experienceId: $mpExperienceId\n amount: $amount\n currency: $currency\n metadata: $metadata\n takeRequestId: $mpTakeRequestId\n }\n ) {\n result {\n ... on TransferSuccess {\n __typename\n transfer {\n id\n status\n }\n }\n ... on TransferMetadataIdExists {\n __typename\n transfer {\n id\n status\n }\n }\n ... on TakeRequestAlreadyTerminal {\n __typename\n takeRequest {\n id\n status\n experienceTransfer {\n id\n status\n }\n }\n }\n }\n }\n }\n"): (typeof documents)["\n mutation StartPendingExperienceTransfer(\n $mpUserId: UUID!\n $mpExperienceId: UUID!\n $mpTakeRequestId: UUID\n $amount: Int!\n $currency: String!\n $metadata: JSON!\n ) {\n transferCurrencyExperienceToUser(\n input: {\n userId: $mpUserId\n experienceId: $mpExperienceId\n amount: $amount\n currency: $currency\n metadata: $metadata\n takeRequestId: $mpTakeRequestId\n }\n ) {\n result {\n ... on TransferSuccess {\n __typename\n transfer {\n id\n status\n }\n }\n ... on TransferMetadataIdExists {\n __typename\n transfer {\n id\n status\n }\n }\n ... on TakeRequestAlreadyTerminal {\n __typename\n takeRequest {\n id\n status\n experienceTransfer {\n id\n status\n }\n }\n }\n }\n }\n }\n"];
29
29
  export declare function gql(source: "\n query GetCurrencies {\n allCurrencies {\n nodes {\n id\n displayUnitName\n displayUnitScale\n }\n }\n }\n"): (typeof documents)["\n query GetCurrencies {\n allCurrencies {\n nodes {\n id\n displayUnitName\n displayUnitScale\n }\n }\n }\n"];
30
30
  export declare function gql(source: "\n query GetCurrentController {\n currentController {\n id\n }\n allCurrencies {\n nodes {\n id\n displayUnitName\n displayUnitScale\n }\n }\n }\n"): (typeof documents)["\n query GetCurrentController {\n currentController {\n id\n }\n allCurrencies {\n nodes {\n id\n displayUnitName\n displayUnitScale\n }\n }\n }\n"];
@@ -1,7 +1,7 @@
1
1
  import * as types from './graphql.js';
2
2
  const documents = {
3
3
  "\n query AddCasino_GetCurrentController {\n currentController {\n id\n }\n }\n": types.AddCasino_GetCurrentControllerDocument,
4
- "\n mutation GetUserFromUserToken($token: UUID!) {\n userFromUserToken(input: { token: $token }) {\n user {\n id\n uname\n }\n experience {\n id\n name\n }\n }\n }\n": types.GetUserFromUserTokenDocument,
4
+ "\n mutation GetUserFromUserToken($token: UUID!) {\n userFromUserToken(input: { token: $token }) {\n user {\n id\n uname\n }\n experience {\n id\n name\n userByUserId {\n id\n uname\n }\n }\n }\n }\n": types.GetUserFromUserTokenDocument,
5
5
  "\n mutation StartPendingExperienceTransfer(\n $mpUserId: UUID!\n $mpExperienceId: UUID!\n $mpTakeRequestId: UUID\n $amount: Int!\n $currency: String!\n $metadata: JSON!\n ) {\n transferCurrencyExperienceToUser(\n input: {\n userId: $mpUserId\n experienceId: $mpExperienceId\n amount: $amount\n currency: $currency\n metadata: $metadata\n takeRequestId: $mpTakeRequestId\n }\n ) {\n result {\n ... on TransferSuccess {\n __typename\n transfer {\n id\n status\n }\n }\n ... on TransferMetadataIdExists {\n __typename\n transfer {\n id\n status\n }\n }\n ... on TakeRequestAlreadyTerminal {\n __typename\n takeRequest {\n id\n status\n experienceTransfer {\n id\n status\n }\n }\n }\n }\n }\n }\n": types.StartPendingExperienceTransferDocument,
6
6
  "\n query GetCurrencies {\n allCurrencies {\n nodes {\n id\n displayUnitName\n displayUnitScale\n }\n }\n }\n": types.GetCurrenciesDocument,
7
7
  "\n query GetCurrentController {\n currentController {\n id\n }\n allCurrencies {\n nodes {\n id\n displayUnitName\n displayUnitScale\n }\n }\n }\n": types.GetCurrentControllerDocument,
@@ -146,6 +146,78 @@ export declare enum ActiveSessionOrderBy {
146
146
  PrimaryKeyAsc = "PRIMARY_KEY_ASC",
147
147
  PrimaryKeyDesc = "PRIMARY_KEY_DESC"
148
148
  }
149
+ export type AdminTransfer = Transfer & {
150
+ __typename?: 'AdminTransfer';
151
+ accountByFromAccountId?: Maybe<Account>;
152
+ accountByToAccountId?: Maybe<Account>;
153
+ amount: Scalars['Float']['output'];
154
+ currency: Scalars['String']['output'];
155
+ currencyByCurrency?: Maybe<Currency>;
156
+ expiredAt?: Maybe<Scalars['Datetime']['output']>;
157
+ fromAccountId: Scalars['UUID']['output'];
158
+ fromHolderId: Scalars['UUID']['output'];
159
+ holderByFromHolderId?: Maybe<Holder>;
160
+ holderByToHolderId?: Maybe<Holder>;
161
+ id: Scalars['UUID']['output'];
162
+ message?: Maybe<Scalars['String']['output']>;
163
+ metadata: Scalars['JSON']['output'];
164
+ metadataId?: Maybe<Scalars['String']['output']>;
165
+ status: TransferStatusKind;
166
+ statusAt: Scalars['Datetime']['output'];
167
+ toAccountId: Scalars['UUID']['output'];
168
+ toHolderId: Scalars['UUID']['output'];
169
+ transferStatusesByTransferId: TransferStatusConnection;
170
+ type: TransferType;
171
+ };
172
+ export type AdminTransferTransferStatusesByTransferIdArgs = {
173
+ after?: InputMaybe<Scalars['Cursor']['input']>;
174
+ before?: InputMaybe<Scalars['Cursor']['input']>;
175
+ condition?: InputMaybe<TransferStatusCondition>;
176
+ first?: InputMaybe<Scalars['Int']['input']>;
177
+ last?: InputMaybe<Scalars['Int']['input']>;
178
+ offset?: InputMaybe<Scalars['Int']['input']>;
179
+ orderBy?: InputMaybe<Array<TransferStatusOrderBy>>;
180
+ };
181
+ export type AdminTransferCondition = {
182
+ currency?: InputMaybe<Scalars['String']['input']>;
183
+ fromAccountId?: InputMaybe<Scalars['UUID']['input']>;
184
+ fromHolderId?: InputMaybe<Scalars['UUID']['input']>;
185
+ id?: InputMaybe<Scalars['UUID']['input']>;
186
+ toAccountId?: InputMaybe<Scalars['UUID']['input']>;
187
+ toHolderId?: InputMaybe<Scalars['UUID']['input']>;
188
+ type?: InputMaybe<TransferType>;
189
+ };
190
+ export type AdminTransferConnection = {
191
+ __typename?: 'AdminTransferConnection';
192
+ edges: Array<Maybe<AdminTransferEdge>>;
193
+ nodes: Array<Maybe<AdminTransfer>>;
194
+ pageInfo: PageInfo;
195
+ totalCount: Scalars['Int']['output'];
196
+ };
197
+ export type AdminTransferEdge = {
198
+ __typename?: 'AdminTransferEdge';
199
+ cursor?: Maybe<Scalars['Cursor']['output']>;
200
+ node?: Maybe<AdminTransfer>;
201
+ };
202
+ export declare enum AdminTransferOrderBy {
203
+ CurrencyAsc = "CURRENCY_ASC",
204
+ CurrencyDesc = "CURRENCY_DESC",
205
+ FromAccountIdAsc = "FROM_ACCOUNT_ID_ASC",
206
+ FromAccountIdDesc = "FROM_ACCOUNT_ID_DESC",
207
+ FromHolderIdAsc = "FROM_HOLDER_ID_ASC",
208
+ FromHolderIdDesc = "FROM_HOLDER_ID_DESC",
209
+ IdAsc = "ID_ASC",
210
+ IdDesc = "ID_DESC",
211
+ Natural = "NATURAL",
212
+ PrimaryKeyAsc = "PRIMARY_KEY_ASC",
213
+ PrimaryKeyDesc = "PRIMARY_KEY_DESC",
214
+ ToAccountIdAsc = "TO_ACCOUNT_ID_ASC",
215
+ ToAccountIdDesc = "TO_ACCOUNT_ID_DESC",
216
+ ToHolderIdAsc = "TO_HOLDER_ID_ASC",
217
+ ToHolderIdDesc = "TO_HOLDER_ID_DESC",
218
+ TypeAsc = "TYPE_ASC",
219
+ TypeDesc = "TYPE_DESC"
220
+ }
149
221
  export type ApiKey = {
150
222
  __typename?: 'ApiKey';
151
223
  controllerByControllerId?: Maybe<Controller>;
@@ -285,6 +357,42 @@ export type BalanceAlertPayload = {
285
357
  __typename?: 'BalanceAlertPayload';
286
358
  currencyKey?: Maybe<Scalars['String']['output']>;
287
359
  };
360
+ export type BalanceAudit = {
361
+ __typename?: 'BalanceAudit';
362
+ accountByAccountId?: Maybe<Account>;
363
+ accountId: Scalars['UUID']['output'];
364
+ action: Scalars['String']['output'];
365
+ amountDelta: Scalars['Float']['output'];
366
+ amountNew: Scalars['Float']['output'];
367
+ amountOld: Scalars['Float']['output'];
368
+ id: Scalars['UUID']['output'];
369
+ metadata?: Maybe<Scalars['JSON']['output']>;
370
+ refId?: Maybe<Scalars['UUID']['output']>;
371
+ refType?: Maybe<Scalars['String']['output']>;
372
+ };
373
+ export type BalanceAuditCondition = {
374
+ currency?: InputMaybe<Scalars['String']['input']>;
375
+ id?: InputMaybe<Scalars['UUID']['input']>;
376
+ };
377
+ export type BalanceAuditConnection = {
378
+ __typename?: 'BalanceAuditConnection';
379
+ edges: Array<Maybe<BalanceAuditEdge>>;
380
+ nodes: Array<Maybe<BalanceAudit>>;
381
+ pageInfo: PageInfo;
382
+ totalCount: Scalars['Int']['output'];
383
+ };
384
+ export type BalanceAuditEdge = {
385
+ __typename?: 'BalanceAuditEdge';
386
+ cursor?: Maybe<Scalars['Cursor']['output']>;
387
+ node?: Maybe<BalanceAudit>;
388
+ };
389
+ export declare enum BalanceAuditOrderBy {
390
+ IdAsc = "ID_ASC",
391
+ IdDesc = "ID_DESC",
392
+ Natural = "NATURAL",
393
+ PrimaryKeyAsc = "PRIMARY_KEY_ASC",
394
+ PrimaryKeyDesc = "PRIMARY_KEY_DESC"
395
+ }
288
396
  export type CancelPendingEmailChangeRequestInput = {
289
397
  clientMutationId?: InputMaybe<Scalars['String']['input']>;
290
398
  id: Scalars['UUID']['input'];
@@ -1327,6 +1435,7 @@ export type Mutation = {
1327
1435
  startLogin?: Maybe<StartLoginPayload>;
1328
1436
  startPayout: StartPayoutPayload;
1329
1437
  toyLogin?: Maybe<ToyLoginPayload>;
1438
+ transferCurrencyAdmin?: Maybe<TransferCurrencyAdminPayload>;
1330
1439
  transferCurrencyExperienceToUser?: Maybe<TransferCurrencyExperienceToUserPayload>;
1331
1440
  transferCurrencyFromController?: Maybe<TransferCurrencyFromControllerPayload>;
1332
1441
  transferCurrencyToController?: Maybe<TransferCurrencyToControllerPayload>;
@@ -1452,6 +1561,9 @@ export type MutationStartPayoutArgs = {
1452
1561
  export type MutationToyLoginArgs = {
1453
1562
  input: ToyLoginInput;
1454
1563
  };
1564
+ export type MutationTransferCurrencyAdminArgs = {
1565
+ input: TransferCurrencyAdminInput;
1566
+ };
1455
1567
  export type MutationTransferCurrencyExperienceToUserArgs = {
1456
1568
  input: TransferCurrencyExperienceToUserInput;
1457
1569
  };
@@ -1533,6 +1645,7 @@ export type PayoutCondition = {
1533
1645
  chillId?: InputMaybe<Scalars['UUID']['input']>;
1534
1646
  id?: InputMaybe<Scalars['UUID']['input']>;
1535
1647
  referenceId?: InputMaybe<Scalars['UUID']['input']>;
1648
+ status?: InputMaybe<PayoutStatus>;
1536
1649
  };
1537
1650
  export type PayoutConnection = {
1538
1651
  __typename?: 'PayoutConnection';
@@ -1745,12 +1858,15 @@ export type Query = {
1745
1858
  accountByHolderIdAndCurrency?: Maybe<Account>;
1746
1859
  accountById?: Maybe<Account>;
1747
1860
  activeSessionById?: Maybe<ActiveSession>;
1861
+ adminTransferById?: Maybe<AdminTransfer>;
1748
1862
  allAccounts?: Maybe<AccountConnection>;
1749
1863
  allActiveSessions?: Maybe<ActiveSessionConnection>;
1864
+ allAdminTransfers?: Maybe<AdminTransferConnection>;
1750
1865
  allApiKeys?: Maybe<ApiKeyConnection>;
1751
1866
  allAuthnLoginRequests?: Maybe<AuthnLoginRequestConnection>;
1752
1867
  allAuthnRegisterRequests?: Maybe<AuthnRegisterRequestConnection>;
1753
1868
  allAuthnRequests?: Maybe<AuthnRequestConnection>;
1869
+ allBalanceAudits?: Maybe<BalanceAuditConnection>;
1754
1870
  allControllerTransfers?: Maybe<ControllerTransferConnection>;
1755
1871
  allControllers?: Maybe<ControllerConnection>;
1756
1872
  allCurrencies?: Maybe<CurrencyConnection>;
@@ -1772,7 +1888,6 @@ export type Query = {
1772
1888
  allTakeRequests?: Maybe<TakeRequestConnection>;
1773
1889
  allTransactionStatusChanges?: Maybe<TransactionStatusChangeConnection>;
1774
1890
  allTransactions?: Maybe<TransactionConnection>;
1775
- allTransferStatuses?: Maybe<TransferStatusConnection>;
1776
1891
  allTransfers?: Maybe<TransferConnection>;
1777
1892
  allUserEmails?: Maybe<UserEmailConnection>;
1778
1893
  allUserTransfers?: Maybe<UserTransferConnection>;
@@ -1783,6 +1898,7 @@ export type Query = {
1783
1898
  authnLoginRequestById?: Maybe<AuthnLoginRequest>;
1784
1899
  authnRegisterRequestById?: Maybe<AuthnRegisterRequest>;
1785
1900
  authnRequestById?: Maybe<AuthnRequest>;
1901
+ balanceAuditById?: Maybe<BalanceAudit>;
1786
1902
  controllerById?: Maybe<Controller>;
1787
1903
  controllerTransferById?: Maybe<ControllerTransfer>;
1788
1904
  currencyById?: Maybe<Currency>;
@@ -1816,7 +1932,6 @@ export type Query = {
1816
1932
  transactionByChillId?: Maybe<Transaction>;
1817
1933
  transactionById?: Maybe<Transaction>;
1818
1934
  transactionStatusChangeById?: Maybe<TransactionStatusChange>;
1819
- transferStatusById?: Maybe<TransferStatus>;
1820
1935
  transfersByExperience?: Maybe<TransfersByExperienceConnection>;
1821
1936
  transfersByHolder?: Maybe<TransfersByHolderConnection>;
1822
1937
  userById?: Maybe<User>;
@@ -1836,6 +1951,9 @@ export type QueryAccountByIdArgs = {
1836
1951
  export type QueryActiveSessionByIdArgs = {
1837
1952
  id: Scalars['UUID']['input'];
1838
1953
  };
1954
+ export type QueryAdminTransferByIdArgs = {
1955
+ id: Scalars['UUID']['input'];
1956
+ };
1839
1957
  export type QueryAllAccountsArgs = {
1840
1958
  after?: InputMaybe<Scalars['Cursor']['input']>;
1841
1959
  before?: InputMaybe<Scalars['Cursor']['input']>;
@@ -1854,6 +1972,15 @@ export type QueryAllActiveSessionsArgs = {
1854
1972
  offset?: InputMaybe<Scalars['Int']['input']>;
1855
1973
  orderBy?: InputMaybe<Array<ActiveSessionOrderBy>>;
1856
1974
  };
1975
+ export type QueryAllAdminTransfersArgs = {
1976
+ after?: InputMaybe<Scalars['Cursor']['input']>;
1977
+ before?: InputMaybe<Scalars['Cursor']['input']>;
1978
+ condition?: InputMaybe<AdminTransferCondition>;
1979
+ first?: InputMaybe<Scalars['Int']['input']>;
1980
+ last?: InputMaybe<Scalars['Int']['input']>;
1981
+ offset?: InputMaybe<Scalars['Int']['input']>;
1982
+ orderBy?: InputMaybe<Array<AdminTransferOrderBy>>;
1983
+ };
1857
1984
  export type QueryAllApiKeysArgs = {
1858
1985
  after?: InputMaybe<Scalars['Cursor']['input']>;
1859
1986
  before?: InputMaybe<Scalars['Cursor']['input']>;
@@ -1891,6 +2018,15 @@ export type QueryAllAuthnRequestsArgs = {
1891
2018
  offset?: InputMaybe<Scalars['Int']['input']>;
1892
2019
  orderBy?: InputMaybe<Array<AuthnRequestOrderBy>>;
1893
2020
  };
2021
+ export type QueryAllBalanceAuditsArgs = {
2022
+ after?: InputMaybe<Scalars['Cursor']['input']>;
2023
+ before?: InputMaybe<Scalars['Cursor']['input']>;
2024
+ condition?: InputMaybe<BalanceAuditCondition>;
2025
+ first?: InputMaybe<Scalars['Int']['input']>;
2026
+ last?: InputMaybe<Scalars['Int']['input']>;
2027
+ offset?: InputMaybe<Scalars['Int']['input']>;
2028
+ orderBy?: InputMaybe<Array<BalanceAuditOrderBy>>;
2029
+ };
1894
2030
  export type QueryAllControllerTransfersArgs = {
1895
2031
  after?: InputMaybe<Scalars['Cursor']['input']>;
1896
2032
  before?: InputMaybe<Scalars['Cursor']['input']>;
@@ -2086,15 +2222,6 @@ export type QueryAllTransactionsArgs = {
2086
2222
  offset?: InputMaybe<Scalars['Int']['input']>;
2087
2223
  orderBy?: InputMaybe<Array<TransactionOrderBy>>;
2088
2224
  };
2089
- export type QueryAllTransferStatusesArgs = {
2090
- after?: InputMaybe<Scalars['Cursor']['input']>;
2091
- before?: InputMaybe<Scalars['Cursor']['input']>;
2092
- condition?: InputMaybe<TransferStatusCondition>;
2093
- first?: InputMaybe<Scalars['Int']['input']>;
2094
- last?: InputMaybe<Scalars['Int']['input']>;
2095
- offset?: InputMaybe<Scalars['Int']['input']>;
2096
- orderBy?: InputMaybe<Array<TransferStatusOrderBy>>;
2097
- };
2098
2225
  export type QueryAllTransfersArgs = {
2099
2226
  after?: InputMaybe<Scalars['Cursor']['input']>;
2100
2227
  before?: InputMaybe<Scalars['Cursor']['input']>;
@@ -2156,6 +2283,9 @@ export type QueryAuthnRegisterRequestByIdArgs = {
2156
2283
  export type QueryAuthnRequestByIdArgs = {
2157
2284
  id: Scalars['UUID']['input'];
2158
2285
  };
2286
+ export type QueryBalanceAuditByIdArgs = {
2287
+ id: Scalars['UUID']['input'];
2288
+ };
2159
2289
  export type QueryControllerByIdArgs = {
2160
2290
  id: Scalars['UUID']['input'];
2161
2291
  };
@@ -2237,9 +2367,6 @@ export type QueryTransactionByIdArgs = {
2237
2367
  export type QueryTransactionStatusChangeByIdArgs = {
2238
2368
  id: Scalars['UUID']['input'];
2239
2369
  };
2240
- export type QueryTransferStatusByIdArgs = {
2241
- id: Scalars['UUID']['input'];
2242
- };
2243
2370
  export type QueryTransfersByExperienceArgs = {
2244
2371
  input: TransfersByExperienceInput;
2245
2372
  };
@@ -2440,7 +2567,6 @@ export type StartPayoutInput = {
2440
2567
  address: Scalars['String']['input'];
2441
2568
  amount: Scalars['Int']['input'];
2442
2569
  currency: Scalars['String']['input'];
2443
- unpaidDepositFee: Scalars['Int']['input'];
2444
2570
  withdrawalFee: Scalars['Int']['input'];
2445
2571
  };
2446
2572
  export type StartPayoutPayload = {
@@ -2722,6 +2848,21 @@ export type TransferConnection = {
2722
2848
  pageInfo: PageInfo;
2723
2849
  totalCount: Scalars['Int']['output'];
2724
2850
  };
2851
+ export type TransferCurrencyAdminInput = {
2852
+ amount: Scalars['Int']['input'];
2853
+ clientMutationId?: InputMaybe<Scalars['String']['input']>;
2854
+ currency: Scalars['String']['input'];
2855
+ fromHolderId: Scalars['UUID']['input'];
2856
+ message?: InputMaybe<Scalars['String']['input']>;
2857
+ toHolderId: Scalars['UUID']['input'];
2858
+ };
2859
+ export type TransferCurrencyAdminPayload = {
2860
+ __typename?: 'TransferCurrencyAdminPayload';
2861
+ clientMutationId?: Maybe<Scalars['String']['output']>;
2862
+ query?: Maybe<Query>;
2863
+ result?: Maybe<TransferCurrencyAdminResult>;
2864
+ };
2865
+ export type TransferCurrencyAdminResult = InsufficientBalance | TransferSuccess;
2725
2866
  export type TransferCurrencyExperienceToUserInput = {
2726
2867
  amount: Scalars['Int']['input'];
2727
2868
  clientMutationId?: InputMaybe<Scalars['String']['input']>;
@@ -2867,6 +3008,7 @@ export type TransferSuccess = {
2867
3008
  transfer: Transfer;
2868
3009
  };
2869
3010
  export declare enum TransferType {
3011
+ Admin = "ADMIN",
2870
3012
  Controller = "CONTROLLER",
2871
3013
  Experience = "EXPERIENCE",
2872
3014
  General = "GENERAL",
@@ -2932,13 +3074,6 @@ export type UnameTakenError = {
2932
3074
  __typename?: 'UnameTakenError';
2933
3075
  message: Scalars['String']['output'];
2934
3076
  };
2935
- export type UnpaidDepositFeeInput = {
2936
- currency: Scalars['String']['input'];
2937
- };
2938
- export type UnpaidDepositFeePayload = {
2939
- __typename?: 'UnpaidDepositFeePayload';
2940
- amount: Scalars['Int']['output'];
2941
- };
2942
3077
  export type UpdateControllerByIdInput = {
2943
3078
  clientMutationId?: InputMaybe<Scalars['String']['input']>;
2944
3079
  controllerPatch: ControllerPatch;
@@ -2975,6 +3110,7 @@ export type User = Holder & {
2975
3110
  accountByCurrency?: Maybe<Account>;
2976
3111
  accountsByHolderId: AccountConnection;
2977
3112
  activeSessionsByUserId: ActiveSessionConnection;
3113
+ balanceAudits: BalanceAuditConnection;
2978
3114
  balanceByCurrency?: Maybe<Scalars['Float']['output']>;
2979
3115
  controllersByUserId: ControllerConnection;
2980
3116
  deletedAt?: Maybe<Scalars['Datetime']['output']>;
@@ -2998,7 +3134,6 @@ export type User = Holder & {
2998
3134
  transfersByFromHolderId: TransferConnection;
2999
3135
  transfersByToHolderId: TransferConnection;
3000
3136
  uname: Scalars['String']['output'];
3001
- unpaidDepositFee: UnpaidDepositFeePayload;
3002
3137
  userEmailsByUserId: UserEmailConnection;
3003
3138
  userTransfersByToUserId: UserTransferConnection;
3004
3139
  };
@@ -3023,6 +3158,15 @@ export type UserActiveSessionsByUserIdArgs = {
3023
3158
  offset?: InputMaybe<Scalars['Int']['input']>;
3024
3159
  orderBy?: InputMaybe<Array<ActiveSessionOrderBy>>;
3025
3160
  };
3161
+ export type UserBalanceAuditsArgs = {
3162
+ after?: InputMaybe<Scalars['Cursor']['input']>;
3163
+ before?: InputMaybe<Scalars['Cursor']['input']>;
3164
+ condition?: InputMaybe<BalanceAuditCondition>;
3165
+ first?: InputMaybe<Scalars['Int']['input']>;
3166
+ last?: InputMaybe<Scalars['Int']['input']>;
3167
+ offset?: InputMaybe<Scalars['Int']['input']>;
3168
+ orderBy?: InputMaybe<Array<BalanceAuditOrderBy>>;
3169
+ };
3026
3170
  export type UserBalanceByCurrencyArgs = {
3027
3171
  currency: Scalars['String']['input'];
3028
3172
  };
@@ -3160,9 +3304,6 @@ export type UserTransfersByToHolderIdArgs = {
3160
3304
  offset?: InputMaybe<Scalars['Int']['input']>;
3161
3305
  orderBy?: InputMaybe<Array<TransferOrderBy>>;
3162
3306
  };
3163
- export type UserUnpaidDepositFeeArgs = {
3164
- input: UnpaidDepositFeeInput;
3165
- };
3166
3307
  export type UserUserEmailsByUserIdArgs = {
3167
3308
  after?: InputMaybe<Scalars['Cursor']['input']>;
3168
3309
  before?: InputMaybe<Scalars['Cursor']['input']>;
@@ -3399,6 +3540,11 @@ export type GetUserFromUserTokenMutation = {
3399
3540
  __typename?: 'Experience';
3400
3541
  id: string;
3401
3542
  name: string;
3543
+ userByUserId?: {
3544
+ __typename?: 'User';
3545
+ id: string;
3546
+ uname: string;
3547
+ } | null;
3402
3548
  } | null;
3403
3549
  } | null;
3404
3550
  };
@@ -3429,6 +3575,10 @@ export type StartPendingExperienceTransferMutation = {
3429
3575
  } | {
3430
3576
  __typename: 'TransferMetadataIdExists';
3431
3577
  transfer: {
3578
+ __typename?: 'AdminTransfer';
3579
+ id: string;
3580
+ status: TransferStatusKind;
3581
+ } | {
3432
3582
  __typename?: 'ControllerTransfer';
3433
3583
  id: string;
3434
3584
  status: TransferStatusKind;
@@ -3444,6 +3594,10 @@ export type StartPendingExperienceTransferMutation = {
3444
3594
  } | {
3445
3595
  __typename: 'TransferSuccess';
3446
3596
  transfer: {
3597
+ __typename?: 'AdminTransfer';
3598
+ id: string;
3599
+ status: TransferStatusKind;
3600
+ } | {
3447
3601
  __typename?: 'ControllerTransfer';
3448
3602
  id: string;
3449
3603
  status: TransferStatusKind;
@@ -3493,6 +3647,39 @@ export type GetCurrentControllerQuery = {
3493
3647
  } | null>;
3494
3648
  } | null;
3495
3649
  };
3650
+ type TransferFields_AdminTransfer_Fragment = {
3651
+ __typename: 'AdminTransfer';
3652
+ id: string;
3653
+ amount: number;
3654
+ status: TransferStatusKind;
3655
+ statusAt: string;
3656
+ fromHolderId: string;
3657
+ toHolderId: string;
3658
+ currencyByCurrency?: {
3659
+ __typename?: 'Currency';
3660
+ id: string;
3661
+ displayUnitName: string;
3662
+ displayUnitScale: number;
3663
+ } | null;
3664
+ holderByFromHolderId?: {
3665
+ __typename: 'Controller';
3666
+ id: string;
3667
+ } | {
3668
+ __typename: 'User';
3669
+ uname: string;
3670
+ id: string;
3671
+ } | null;
3672
+ holderByToHolderId?: {
3673
+ __typename: 'Controller';
3674
+ id: string;
3675
+ } | {
3676
+ __typename: 'User';
3677
+ uname: string;
3678
+ id: string;
3679
+ } | null;
3680
+ } & {
3681
+ ' $fragmentName'?: 'TransferFields_AdminTransfer_Fragment';
3682
+ };
3496
3683
  type TransferFields_ControllerTransfer_Fragment = {
3497
3684
  __typename: 'ControllerTransfer';
3498
3685
  id: string;
@@ -3598,7 +3785,7 @@ type TransferFields_UserTransfer_Fragment = {
3598
3785
  } & {
3599
3786
  ' $fragmentName'?: 'TransferFields_UserTransfer_Fragment';
3600
3787
  };
3601
- export type TransferFieldsFragment = TransferFields_ControllerTransfer_Fragment | TransferFields_ExperienceTransfer_Fragment | TransferFields_UserTransfer_Fragment;
3788
+ export type TransferFieldsFragment = TransferFields_AdminTransfer_Fragment | TransferFields_ControllerTransfer_Fragment | TransferFields_ExperienceTransfer_Fragment | TransferFields_UserTransfer_Fragment;
3602
3789
  export type PaginateTransfersQueryVariables = Exact<{
3603
3790
  controllerId: Scalars['UUID']['input'];
3604
3791
  after?: InputMaybe<Scalars['Cursor']['input']>;
@@ -3617,6 +3804,12 @@ export type PaginateTransfersQuery = {
3617
3804
  __typename?: 'TransfersByHolderEdge';
3618
3805
  cursor: string;
3619
3806
  node: ({
3807
+ __typename?: 'AdminTransfer';
3808
+ } & {
3809
+ ' $fragmentRefs'?: {
3810
+ 'TransferFields_AdminTransfer_Fragment': TransferFields_AdminTransfer_Fragment;
3811
+ };
3812
+ }) | ({
3620
3813
  __typename?: 'ControllerTransfer';
3621
3814
  } & {
3622
3815
  ' $fragmentRefs'?: {
@@ -3648,6 +3841,9 @@ export type CompleteTransferMutation = {
3648
3841
  result: {
3649
3842
  __typename: 'CompleteTransferSuccess';
3650
3843
  transfer: {
3844
+ __typename?: 'AdminTransfer';
3845
+ id: string;
3846
+ } | {
3651
3847
  __typename?: 'ControllerTransfer';
3652
3848
  id: string;
3653
3849
  } | {
@@ -3677,6 +3873,9 @@ export type ClaimTransferMutation = {
3677
3873
  result: {
3678
3874
  __typename: 'ClaimTransferSuccess';
3679
3875
  transfer: {
3876
+ __typename?: 'AdminTransfer';
3877
+ id: string;
3878
+ } | {
3680
3879
  __typename?: 'ControllerTransfer';
3681
3880
  id: string;
3682
3881
  } | {
@@ -3838,6 +4037,10 @@ export type MpTransferTakeRequestMutation = {
3838
4037
  } | {
3839
4038
  __typename: 'TransferMetadataIdExists';
3840
4039
  transfer: {
4040
+ __typename?: 'AdminTransfer';
4041
+ id: string;
4042
+ status: TransferStatusKind;
4043
+ } | {
3841
4044
  __typename?: 'ControllerTransfer';
3842
4045
  id: string;
3843
4046
  status: TransferStatusKind;
@@ -3853,6 +4056,10 @@ export type MpTransferTakeRequestMutation = {
3853
4056
  } | {
3854
4057
  __typename: 'TransferSuccess';
3855
4058
  transfer: {
4059
+ __typename?: 'AdminTransfer';
4060
+ id: string;
4061
+ status: TransferStatusKind;
4062
+ } | {
3856
4063
  __typename?: 'ControllerTransfer';
3857
4064
  id: string;
3858
4065
  status: TransferStatusKind;
@@ -3878,6 +4085,10 @@ export type CompleteTransfer2Mutation = {
3878
4085
  result: {
3879
4086
  __typename: 'CompleteTransferSuccess';
3880
4087
  transfer: {
4088
+ __typename?: 'AdminTransfer';
4089
+ id: string;
4090
+ status: TransferStatusKind;
4091
+ } | {
3881
4092
  __typename?: 'ControllerTransfer';
3882
4093
  id: string;
3883
4094
  status: TransferStatusKind;
@@ -3903,6 +4114,8 @@ export type CompleteTransfer2Mutation = {
3903
4114
  currentStatus: TransferStatusKind;
3904
4115
  message: string;
3905
4116
  transfer: {
4117
+ __typename: 'AdminTransfer';
4118
+ } | {
3906
4119
  __typename: 'ControllerTransfer';
3907
4120
  } | {
3908
4121
  __typename: 'ExperienceTransfer';
@@ -14,6 +14,26 @@ export var ActiveSessionOrderBy;
14
14
  ActiveSessionOrderBy["PrimaryKeyAsc"] = "PRIMARY_KEY_ASC";
15
15
  ActiveSessionOrderBy["PrimaryKeyDesc"] = "PRIMARY_KEY_DESC";
16
16
  })(ActiveSessionOrderBy || (ActiveSessionOrderBy = {}));
17
+ export var AdminTransferOrderBy;
18
+ (function (AdminTransferOrderBy) {
19
+ AdminTransferOrderBy["CurrencyAsc"] = "CURRENCY_ASC";
20
+ AdminTransferOrderBy["CurrencyDesc"] = "CURRENCY_DESC";
21
+ AdminTransferOrderBy["FromAccountIdAsc"] = "FROM_ACCOUNT_ID_ASC";
22
+ AdminTransferOrderBy["FromAccountIdDesc"] = "FROM_ACCOUNT_ID_DESC";
23
+ AdminTransferOrderBy["FromHolderIdAsc"] = "FROM_HOLDER_ID_ASC";
24
+ AdminTransferOrderBy["FromHolderIdDesc"] = "FROM_HOLDER_ID_DESC";
25
+ AdminTransferOrderBy["IdAsc"] = "ID_ASC";
26
+ AdminTransferOrderBy["IdDesc"] = "ID_DESC";
27
+ AdminTransferOrderBy["Natural"] = "NATURAL";
28
+ AdminTransferOrderBy["PrimaryKeyAsc"] = "PRIMARY_KEY_ASC";
29
+ AdminTransferOrderBy["PrimaryKeyDesc"] = "PRIMARY_KEY_DESC";
30
+ AdminTransferOrderBy["ToAccountIdAsc"] = "TO_ACCOUNT_ID_ASC";
31
+ AdminTransferOrderBy["ToAccountIdDesc"] = "TO_ACCOUNT_ID_DESC";
32
+ AdminTransferOrderBy["ToHolderIdAsc"] = "TO_HOLDER_ID_ASC";
33
+ AdminTransferOrderBy["ToHolderIdDesc"] = "TO_HOLDER_ID_DESC";
34
+ AdminTransferOrderBy["TypeAsc"] = "TYPE_ASC";
35
+ AdminTransferOrderBy["TypeDesc"] = "TYPE_DESC";
36
+ })(AdminTransferOrderBy || (AdminTransferOrderBy = {}));
17
37
  export var ApiKeyOrderBy;
18
38
  (function (ApiKeyOrderBy) {
19
39
  ApiKeyOrderBy["ControllerIdAsc"] = "CONTROLLER_ID_ASC";
@@ -56,6 +76,14 @@ export var AuthnRequestType;
56
76
  AuthnRequestType["Login"] = "LOGIN";
57
77
  AuthnRequestType["Register"] = "REGISTER";
58
78
  })(AuthnRequestType || (AuthnRequestType = {}));
79
+ export var BalanceAuditOrderBy;
80
+ (function (BalanceAuditOrderBy) {
81
+ BalanceAuditOrderBy["IdAsc"] = "ID_ASC";
82
+ BalanceAuditOrderBy["IdDesc"] = "ID_DESC";
83
+ BalanceAuditOrderBy["Natural"] = "NATURAL";
84
+ BalanceAuditOrderBy["PrimaryKeyAsc"] = "PRIMARY_KEY_ASC";
85
+ BalanceAuditOrderBy["PrimaryKeyDesc"] = "PRIMARY_KEY_DESC";
86
+ })(BalanceAuditOrderBy || (BalanceAuditOrderBy = {}));
59
87
  export var ControllerOrderBy;
60
88
  (function (ControllerOrderBy) {
61
89
  ControllerOrderBy["IdAsc"] = "ID_ASC";
@@ -430,6 +458,7 @@ export var TransferStatusOrderBy;
430
458
  })(TransferStatusOrderBy || (TransferStatusOrderBy = {}));
431
459
  export var TransferType;
432
460
  (function (TransferType) {
461
+ TransferType["Admin"] = "ADMIN";
433
462
  TransferType["Controller"] = "CONTROLLER";
434
463
  TransferType["Experience"] = "EXPERIENCE";
435
464
  TransferType["General"] = "GENERAL";
@@ -509,7 +538,7 @@ export var WithdrawalOrderBy;
509
538
  export const TransferFieldsFragmentDoc = { "kind": "Document", "definitions": [{ "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "TransferFields" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "Transfer" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "__typename" } }, { "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "amount" } }, { "kind": "Field", "name": { "kind": "Name", "value": "status" } }, { "kind": "Field", "name": { "kind": "Name", "value": "statusAt" } }, { "kind": "Field", "name": { "kind": "Name", "value": "currencyByCurrency" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "displayUnitName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "displayUnitScale" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "fromHolderId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "holderByFromHolderId" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "__typename" } }, { "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "InlineFragment", "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "User" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "uname" } }] } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "toHolderId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "holderByToHolderId" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "__typename" } }, { "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "InlineFragment", "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "User" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "uname" } }] } }] } }, { "kind": "InlineFragment", "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "ExperienceTransfer" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "experienceId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "experienceByExperienceId" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "name" } }] } }] } }] } }] };
510
539
  export const MpTakeRequestFieldsFragmentDoc = { "kind": "Document", "definitions": [{ "kind": "FragmentDefinition", "name": { "kind": "Name", "value": "MpTakeRequestFields" }, "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "TakeRequest" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "status" } }, { "kind": "Field", "name": { "kind": "Name", "value": "amount" } }, { "kind": "Field", "name": { "kind": "Name", "value": "currencyKey" } }, { "kind": "Field", "name": { "kind": "Name", "value": "userId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "experienceId" } }, { "kind": "Field", "name": { "kind": "Name", "value": "experienceTransfer" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "amount" } }] } }] } }] };
511
540
  export const AddCasino_GetCurrentControllerDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "AddCasino_GetCurrentController" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "currentController" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }] } }] } }] };
512
- export const GetUserFromUserTokenDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "GetUserFromUserToken" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "token" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "UUID" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "userFromUserToken" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "input" }, "value": { "kind": "ObjectValue", "fields": [{ "kind": "ObjectField", "name": { "kind": "Name", "value": "token" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "token" } } }] } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "user" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "uname" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "experience" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "name" } }] } }] } }] } }] };
541
+ export const GetUserFromUserTokenDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "GetUserFromUserToken" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "token" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "UUID" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "userFromUserToken" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "input" }, "value": { "kind": "ObjectValue", "fields": [{ "kind": "ObjectField", "name": { "kind": "Name", "value": "token" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "token" } } }] } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "user" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "uname" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "experience" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "userByUserId" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "uname" } }] } }] } }] } }] } }] };
513
542
  export const StartPendingExperienceTransferDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "mutation", "name": { "kind": "Name", "value": "StartPendingExperienceTransfer" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "mpUserId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "UUID" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "mpExperienceId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "UUID" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "mpTakeRequestId" } }, "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "UUID" } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "amount" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "Int" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "currency" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "metadata" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "JSON" } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "transferCurrencyExperienceToUser" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "input" }, "value": { "kind": "ObjectValue", "fields": [{ "kind": "ObjectField", "name": { "kind": "Name", "value": "userId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "mpUserId" } } }, { "kind": "ObjectField", "name": { "kind": "Name", "value": "experienceId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "mpExperienceId" } } }, { "kind": "ObjectField", "name": { "kind": "Name", "value": "amount" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "amount" } } }, { "kind": "ObjectField", "name": { "kind": "Name", "value": "currency" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "currency" } } }, { "kind": "ObjectField", "name": { "kind": "Name", "value": "metadata" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "metadata" } } }, { "kind": "ObjectField", "name": { "kind": "Name", "value": "takeRequestId" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "mpTakeRequestId" } } }] } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "result" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "InlineFragment", "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "TransferSuccess" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "__typename" } }, { "kind": "Field", "name": { "kind": "Name", "value": "transfer" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "status" } }] } }] } }, { "kind": "InlineFragment", "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "TransferMetadataIdExists" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "__typename" } }, { "kind": "Field", "name": { "kind": "Name", "value": "transfer" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "status" } }] } }] } }, { "kind": "InlineFragment", "typeCondition": { "kind": "NamedType", "name": { "kind": "Name", "value": "TakeRequestAlreadyTerminal" } }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "__typename" } }, { "kind": "Field", "name": { "kind": "Name", "value": "takeRequest" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "status" } }, { "kind": "Field", "name": { "kind": "Name", "value": "experienceTransfer" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "status" } }] } }] } }] } }] } }] } }] } }] };
514
543
  export const GetCurrenciesDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "GetCurrencies" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "allCurrencies" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "nodes" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "displayUnitName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "displayUnitScale" } }] } }] } }] } }] };
515
544
  export const GetCurrentControllerDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "GetCurrentController" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "currentController" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "allCurrencies" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "nodes" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "id" } }, { "kind": "Field", "name": { "kind": "Name", "value": "displayUnitName" } }, { "kind": "Field", "name": { "kind": "Name", "value": "displayUnitScale" } }] } }] } }] } }] };