@promoboxx/graphql-gateway-types 1.9.0 → 1.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/graphql.schema.json +1869 -510
- package/index.d.ts +323 -118
- package/package.json +1 -1
- package/schema.graphql +271 -106
package/index.d.ts
CHANGED
|
@@ -326,19 +326,6 @@ export type AddContractData = {
|
|
|
326
326
|
title?: InputMaybe<Scalars['String']['input']>;
|
|
327
327
|
};
|
|
328
328
|
|
|
329
|
-
export type AddFundsParams = {
|
|
330
|
-
amount_cents: Scalars['String']['input'];
|
|
331
|
-
brand_id: Scalars['ID']['input'];
|
|
332
|
-
source: Scalars['String']['input'];
|
|
333
|
-
source_id: Scalars['ID']['input'];
|
|
334
|
-
};
|
|
335
|
-
|
|
336
|
-
export type AddFundsResponse = {
|
|
337
|
-
__typename?: 'AddFundsResponse';
|
|
338
|
-
deposit_id?: Maybe<Scalars['ID']['output']>;
|
|
339
|
-
transaction_id?: Maybe<Scalars['ID']['output']>;
|
|
340
|
-
};
|
|
341
|
-
|
|
342
329
|
export type AddLogoToAdAccountParams = {
|
|
343
330
|
id: Scalars['ID']['input'];
|
|
344
331
|
logo_id: Scalars['ID']['input'];
|
|
@@ -951,12 +938,6 @@ export type BrandStatus =
|
|
|
951
938
|
| 'prospect'
|
|
952
939
|
| 'unlocked';
|
|
953
940
|
|
|
954
|
-
export type BrandWallet = {
|
|
955
|
-
__typename?: 'BrandWallet';
|
|
956
|
-
id?: Maybe<Scalars['String']['output']>;
|
|
957
|
-
payment_methods?: Maybe<Array<PaymentMethod>>;
|
|
958
|
-
};
|
|
959
|
-
|
|
960
941
|
export type BulkCollectionOperation =
|
|
961
942
|
| 'deactivate'
|
|
962
943
|
| 'delete';
|
|
@@ -3753,12 +3734,86 @@ export type LeadsListParams = {
|
|
|
3753
3734
|
sort_direction?: InputMaybe<Scalars['String']['input']>;
|
|
3754
3735
|
};
|
|
3755
3736
|
|
|
3737
|
+
/**
|
|
3738
|
+
* Ledger Type
|
|
3739
|
+
* belongs to a wallet, represents an amount of money that can be spent based on a set of restriction
|
|
3740
|
+
*/
|
|
3756
3741
|
export type Ledger = {
|
|
3757
3742
|
__typename?: 'Ledger';
|
|
3758
|
-
balance
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3743
|
+
balance: Scalars['String']['output'];
|
|
3744
|
+
created_at: Scalars['String']['output'];
|
|
3745
|
+
created_by_id: Scalars['String']['output'];
|
|
3746
|
+
expiration_date?: Maybe<Scalars['String']['output']>;
|
|
3747
|
+
id: Scalars['ID']['output'];
|
|
3748
|
+
refunded_at?: Maybe<Scalars['String']['output']>;
|
|
3749
|
+
restrictions: Array<Restriction>;
|
|
3750
|
+
wallet_id: Scalars['ID']['output'];
|
|
3751
|
+
};
|
|
3752
|
+
|
|
3753
|
+
export type LedgersResponse = {
|
|
3754
|
+
__typename?: 'LedgersResponse';
|
|
3755
|
+
ledgers: Array<Ledger>;
|
|
3756
|
+
};
|
|
3757
|
+
|
|
3758
|
+
export type LegacyWithdrawal = {
|
|
3759
|
+
/** The amount to withdraw in cents */
|
|
3760
|
+
amount_cents: Scalars['String']['input'];
|
|
3761
|
+
destination?: InputMaybe<LegacyWithdrawalDestination>;
|
|
3762
|
+
metadata?: InputMaybe<LegacyWithdrawalMetadata>;
|
|
3763
|
+
source?: InputMaybe<LegacyWithdrawalSource>;
|
|
3764
|
+
/**
|
|
3765
|
+
* Abitrary type of the withdrawl
|
|
3766
|
+
* ex: brand-withdrawal-to-pbxx-wallet
|
|
3767
|
+
*/
|
|
3768
|
+
transaction_type: Scalars['String']['input'];
|
|
3769
|
+
};
|
|
3770
|
+
|
|
3771
|
+
/**
|
|
3772
|
+
* The destination.
|
|
3773
|
+
* This example is like a black hole... the magic wallet
|
|
3774
|
+
* key: promoboxx
|
|
3775
|
+
* value: 00000000-0000-0000-0000-000000000000
|
|
3776
|
+
*/
|
|
3777
|
+
export type LegacyWithdrawalDestination = {
|
|
3778
|
+
restriction?: InputMaybe<LegacyWithdrawalRestriction>;
|
|
3779
|
+
};
|
|
3780
|
+
|
|
3781
|
+
/**
|
|
3782
|
+
* The who/how for the withdrawal
|
|
3783
|
+
* ex:
|
|
3784
|
+
* sent_via: postman
|
|
3785
|
+
* sent_by: tsharkey
|
|
3786
|
+
*/
|
|
3787
|
+
export type LegacyWithdrawalMetadata = {
|
|
3788
|
+
sent_by: Scalars['String']['input'];
|
|
3789
|
+
sent_via: Scalars['String']['input'];
|
|
3790
|
+
};
|
|
3791
|
+
|
|
3792
|
+
export type LegacyWithdrawalParams = {
|
|
3793
|
+
/**
|
|
3794
|
+
* Unique key to be used to ensure the withdrawal, once processed, will not be processed again.
|
|
3795
|
+
* For most use cases directly from the UI this can just be a random uuid.
|
|
3796
|
+
* Note, this does need to be int he proper uuid format.
|
|
3797
|
+
*/
|
|
3798
|
+
idempotency_key: Scalars['String']['input'];
|
|
3799
|
+
withdrawals: Array<LegacyWithdrawal>;
|
|
3800
|
+
};
|
|
3801
|
+
|
|
3802
|
+
export type LegacyWithdrawalResponse = {
|
|
3803
|
+
__typename?: 'LegacyWithdrawalResponse';
|
|
3804
|
+
wallet_balance: Scalars['String']['output'];
|
|
3805
|
+
wallet_id: Scalars['String']['output'];
|
|
3806
|
+
};
|
|
3807
|
+
|
|
3808
|
+
export type LegacyWithdrawalRestriction = {
|
|
3809
|
+
key: Scalars['String']['input'];
|
|
3810
|
+
value: Scalars['String']['input'];
|
|
3811
|
+
};
|
|
3812
|
+
|
|
3813
|
+
export type LegacyWithdrawalSource = {
|
|
3814
|
+
id: Scalars['String']['input'];
|
|
3815
|
+
restriction?: InputMaybe<LegacyWithdrawalRestriction>;
|
|
3816
|
+
type: Scalars['String']['input'];
|
|
3762
3817
|
};
|
|
3763
3818
|
|
|
3764
3819
|
export type Legend = {
|
|
@@ -3947,6 +4002,25 @@ export type Logo = {
|
|
|
3947
4002
|
file?: Maybe<File>;
|
|
3948
4003
|
};
|
|
3949
4004
|
|
|
4005
|
+
export type MakeDepositData = {
|
|
4006
|
+
amount_cents: Scalars['String']['input'];
|
|
4007
|
+
destination?: InputMaybe<WalletTargetData>;
|
|
4008
|
+
idempotency_key: Scalars['String']['input'];
|
|
4009
|
+
metadata?: InputMaybe<Scalars['String']['input']>;
|
|
4010
|
+
source?: InputMaybe<RestrictionData>;
|
|
4011
|
+
transaction_type: Scalars['String']['input'];
|
|
4012
|
+
};
|
|
4013
|
+
|
|
4014
|
+
export type MakeTransferData = {
|
|
4015
|
+
idempotency_key: Scalars['String']['input'];
|
|
4016
|
+
transfers: Array<InputMaybe<TransferData>>;
|
|
4017
|
+
};
|
|
4018
|
+
|
|
4019
|
+
export type MakeWithdrawalData = {
|
|
4020
|
+
idempotency_key: Scalars['String']['input'];
|
|
4021
|
+
withdrawals: Array<WithdrawalData>;
|
|
4022
|
+
};
|
|
4023
|
+
|
|
3950
4024
|
export type MapChart = {
|
|
3951
4025
|
__typename?: 'MapChart';
|
|
3952
4026
|
chart?: Maybe<Chart>;
|
|
@@ -3988,7 +4062,6 @@ export type Mutation = {
|
|
|
3988
4062
|
/** Creates a new billboard with the given data and echoes the new row in the database */
|
|
3989
4063
|
addBillboard?: Maybe<Billboard>;
|
|
3990
4064
|
addContract?: Maybe<Contract>;
|
|
3991
|
-
addFunds: AddFundsResponse;
|
|
3992
4065
|
addLogoToAdAccount: AdAccount;
|
|
3993
4066
|
addRetailerToRetailerAccount: AddRetailerToRetailerAccountResponse;
|
|
3994
4067
|
approveContentRequest: ContentRequest;
|
|
@@ -4076,6 +4149,18 @@ export type Mutation = {
|
|
|
4076
4149
|
inviteRetailers?: Maybe<Scalars['ID']['output']>;
|
|
4077
4150
|
inviteRetailersAndPublishPaidAd: Scalars['ID']['output'];
|
|
4078
4151
|
joinRetailer: Permission;
|
|
4152
|
+
/**
|
|
4153
|
+
* Make a deposit to a source account
|
|
4154
|
+
* internal only
|
|
4155
|
+
*/
|
|
4156
|
+
make_deposit?: Maybe<Transaction>;
|
|
4157
|
+
/** Make a transfer between accounts */
|
|
4158
|
+
make_transfer?: Maybe<Scalars['Boolean']['output']>;
|
|
4159
|
+
/**
|
|
4160
|
+
* Make a withdrawal from a source account
|
|
4161
|
+
* internal only
|
|
4162
|
+
*/
|
|
4163
|
+
make_withdrawal?: Maybe<Transaction>;
|
|
4079
4164
|
markAllAlertsAsRead: Scalars['String']['output'];
|
|
4080
4165
|
markCampaignInvitationOptIn: Scalars['ID']['output'];
|
|
4081
4166
|
markCampaignInvitationOptOut: Scalars['ID']['output'];
|
|
@@ -4094,6 +4179,8 @@ export type Mutation = {
|
|
|
4094
4179
|
rejectBrandRequest: BrandRequest;
|
|
4095
4180
|
resendAccessInvitation: Scalars['ID']['output'];
|
|
4096
4181
|
resetInvitations: Array<Invitations>;
|
|
4182
|
+
/** Reset a transfer given an idempotency key */
|
|
4183
|
+
reset_transfer?: Maybe<Transaction>;
|
|
4097
4184
|
revokeBrandRequest: BrandRequest;
|
|
4098
4185
|
setAccountFacebookPage?: Maybe<Scalars['ID']['output']>;
|
|
4099
4186
|
setAccountFacebookPages?: Maybe<Array<Scalars['ID']['output']>>;
|
|
@@ -4135,7 +4222,8 @@ export type Mutation = {
|
|
|
4135
4222
|
uploadCsv?: Maybe<UploadCsvResponse>;
|
|
4136
4223
|
upsertContentRequests?: Maybe<Array<ContentRequest>>;
|
|
4137
4224
|
upsertFacebookUser?: Maybe<UpsertFacebookUserResponse>;
|
|
4138
|
-
|
|
4225
|
+
/** @deprecated Use the supergraph/wallet-service */
|
|
4226
|
+
withdrawal: LegacyWithdrawalResponse;
|
|
4139
4227
|
};
|
|
4140
4228
|
|
|
4141
4229
|
|
|
@@ -4165,11 +4253,6 @@ export type MutationAddContractArgs = {
|
|
|
4165
4253
|
};
|
|
4166
4254
|
|
|
4167
4255
|
|
|
4168
|
-
export type MutationAddFundsArgs = {
|
|
4169
|
-
params: AddFundsParams;
|
|
4170
|
-
};
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
4256
|
export type MutationAddLogoToAdAccountArgs = {
|
|
4174
4257
|
params: AddLogoToAdAccountParams;
|
|
4175
4258
|
};
|
|
@@ -4625,6 +4708,21 @@ export type MutationJoinRetailerArgs = {
|
|
|
4625
4708
|
};
|
|
4626
4709
|
|
|
4627
4710
|
|
|
4711
|
+
export type MutationMake_DepositArgs = {
|
|
4712
|
+
data: MakeDepositData;
|
|
4713
|
+
};
|
|
4714
|
+
|
|
4715
|
+
|
|
4716
|
+
export type MutationMake_TransferArgs = {
|
|
4717
|
+
data?: InputMaybe<MakeTransferData>;
|
|
4718
|
+
};
|
|
4719
|
+
|
|
4720
|
+
|
|
4721
|
+
export type MutationMake_WithdrawalArgs = {
|
|
4722
|
+
data: MakeWithdrawalData;
|
|
4723
|
+
};
|
|
4724
|
+
|
|
4725
|
+
|
|
4628
4726
|
export type MutationMarkAllAlertsAsReadArgs = {
|
|
4629
4727
|
include_retailers?: InputMaybe<Scalars['Boolean']['input']>;
|
|
4630
4728
|
resourceId: Scalars['ID']['input'];
|
|
@@ -4717,6 +4815,11 @@ export type MutationResetInvitationsArgs = {
|
|
|
4717
4815
|
};
|
|
4718
4816
|
|
|
4719
4817
|
|
|
4818
|
+
export type MutationReset_TransferArgs = {
|
|
4819
|
+
idempotency_key: Scalars['String']['input'];
|
|
4820
|
+
};
|
|
4821
|
+
|
|
4822
|
+
|
|
4720
4823
|
export type MutationRevokeBrandRequestArgs = {
|
|
4721
4824
|
id: Scalars['ID']['input'];
|
|
4722
4825
|
};
|
|
@@ -4950,7 +5053,7 @@ export type MutationUpsertFacebookUserArgs = {
|
|
|
4950
5053
|
|
|
4951
5054
|
|
|
4952
5055
|
export type MutationWithdrawalArgs = {
|
|
4953
|
-
params:
|
|
5056
|
+
params: LegacyWithdrawalParams;
|
|
4954
5057
|
};
|
|
4955
5058
|
|
|
4956
5059
|
export type NewEvent = {
|
|
@@ -5026,6 +5129,18 @@ export type OptimizationGoal =
|
|
|
5026
5129
|
| 'REPLIES'
|
|
5027
5130
|
| 'THRUPLAY';
|
|
5028
5131
|
|
|
5132
|
+
/**
|
|
5133
|
+
* Type Pagination
|
|
5134
|
+
* Represents the pagination information for a request
|
|
5135
|
+
*/
|
|
5136
|
+
export type Pagination = {
|
|
5137
|
+
__typename?: 'Pagination';
|
|
5138
|
+
offset: Scalars['Int']['output'];
|
|
5139
|
+
page_size: Scalars['Int']['output'];
|
|
5140
|
+
sort_fields: Array<Sort>;
|
|
5141
|
+
total_count: Scalars['Int']['output'];
|
|
5142
|
+
};
|
|
5143
|
+
|
|
5029
5144
|
/** The paging parameter response from `getBillboards` */
|
|
5030
5145
|
export type Paging = {
|
|
5031
5146
|
__typename?: 'Paging';
|
|
@@ -5035,15 +5150,16 @@ export type Paging = {
|
|
|
5035
5150
|
total_results: Scalars['Int']['output'];
|
|
5036
5151
|
};
|
|
5037
5152
|
|
|
5038
|
-
export type
|
|
5039
|
-
|
|
5153
|
+
export type PagingResponse = {
|
|
5154
|
+
__typename?: 'PagingResponse';
|
|
5155
|
+
offset?: Maybe<Scalars['Int']['output']>;
|
|
5156
|
+
page_size?: Maybe<Scalars['Int']['output']>;
|
|
5157
|
+
sort?: Maybe<Scalars['String']['output']>;
|
|
5158
|
+
total_results: Scalars['Int']['output'];
|
|
5040
5159
|
};
|
|
5041
5160
|
|
|
5042
|
-
export type
|
|
5043
|
-
|
|
5044
|
-
balance_cents?: Maybe<Scalars['String']['output']>;
|
|
5045
|
-
id?: Maybe<Scalars['String']['output']>;
|
|
5046
|
-
type?: Maybe<Scalars['String']['output']>;
|
|
5161
|
+
export type PaidAdFilterGroups = {
|
|
5162
|
+
filters?: InputMaybe<Array<FilterGroups>>;
|
|
5047
5163
|
};
|
|
5048
5164
|
|
|
5049
5165
|
export type Permission = {
|
|
@@ -5169,6 +5285,12 @@ export type PutEventsResp = {
|
|
|
5169
5285
|
|
|
5170
5286
|
export type Query = {
|
|
5171
5287
|
__typename?: 'Query';
|
|
5288
|
+
/**
|
|
5289
|
+
* get brand_retailer_ledgers
|
|
5290
|
+
* a list of business/retailer wallets that are associated to the requested brand.
|
|
5291
|
+
* Each wallet contains the list of ledgers associated to the business/retailer and their expiration date if applicable.
|
|
5292
|
+
*/
|
|
5293
|
+
brand_retailer_ledgers: WalletsResponse;
|
|
5172
5294
|
bulkGetUsersByUuidAndBrandId: BulkGetUsersByUuidAndBrandIdResponse;
|
|
5173
5295
|
getAccessInvitation?: Maybe<AccessInvitation>;
|
|
5174
5296
|
getAccessInvitations?: Maybe<GetAccessInvitationsResponse>;
|
|
@@ -5285,13 +5407,34 @@ export type Query = {
|
|
|
5285
5407
|
getTwitterAccounts: Array<TwitterAccount>;
|
|
5286
5408
|
getUser: User;
|
|
5287
5409
|
getUsers: Array<User>;
|
|
5288
|
-
|
|
5410
|
+
/**
|
|
5411
|
+
* get ledgers
|
|
5412
|
+
* returns the ledgers for the requested brand or business filtered by the provided restrictions
|
|
5413
|
+
*/
|
|
5414
|
+
get_ledgers: LedgersResponse;
|
|
5415
|
+
/**
|
|
5416
|
+
* get transaction history
|
|
5417
|
+
* returns the transaction history for the requested brand or business
|
|
5418
|
+
*/
|
|
5419
|
+
get_transaction_history: TransactionHistory;
|
|
5420
|
+
/**
|
|
5421
|
+
* get wallet by brand or business
|
|
5422
|
+
* returns the wallet and the associated ledgers for the requested brand or business
|
|
5423
|
+
*/
|
|
5424
|
+
get_wallet_by_brand_or_business: Wallet;
|
|
5289
5425
|
manualBusinessRequest?: Maybe<FacebookPage>;
|
|
5290
5426
|
validateToken?: Maybe<ValidateTokenResponse>;
|
|
5291
5427
|
zipDigitalAssets: ZipDigitalAssetsResponse;
|
|
5292
5428
|
};
|
|
5293
5429
|
|
|
5294
5430
|
|
|
5431
|
+
export type QueryBrand_Retailer_LedgersArgs = {
|
|
5432
|
+
brand_id: Scalars['ID']['input'];
|
|
5433
|
+
business_ids: Array<Scalars['ID']['input']>;
|
|
5434
|
+
funded?: InputMaybe<Scalars['Boolean']['input']>;
|
|
5435
|
+
};
|
|
5436
|
+
|
|
5437
|
+
|
|
5295
5438
|
export type QueryBulkGetUsersByUuidAndBrandIdArgs = {
|
|
5296
5439
|
brand_id: Scalars['ID']['input'];
|
|
5297
5440
|
strict_ordering?: InputMaybe<Scalars['Boolean']['input']>;
|
|
@@ -5911,8 +6054,26 @@ export type QueryGetUsersArgs = {
|
|
|
5911
6054
|
};
|
|
5912
6055
|
|
|
5913
6056
|
|
|
5914
|
-
export type
|
|
5915
|
-
|
|
6057
|
+
export type QueryGet_LedgersArgs = {
|
|
6058
|
+
brand_id?: InputMaybe<Scalars['ID']['input']>;
|
|
6059
|
+
business_id?: InputMaybe<Scalars['ID']['input']>;
|
|
6060
|
+
exclusions?: InputMaybe<Scalars['String']['input']>;
|
|
6061
|
+
restrictions?: InputMaybe<Scalars['String']['input']>;
|
|
6062
|
+
};
|
|
6063
|
+
|
|
6064
|
+
|
|
6065
|
+
export type QueryGet_Transaction_HistoryArgs = {
|
|
6066
|
+
brand_id?: InputMaybe<Scalars['ID']['input']>;
|
|
6067
|
+
business_id?: InputMaybe<Scalars['ID']['input']>;
|
|
6068
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
6069
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
6070
|
+
sort?: InputMaybe<Scalars['String']['input']>;
|
|
6071
|
+
};
|
|
6072
|
+
|
|
6073
|
+
|
|
6074
|
+
export type QueryGet_Wallet_By_Brand_Or_BusinessArgs = {
|
|
6075
|
+
brand_id?: InputMaybe<Scalars['ID']['input']>;
|
|
6076
|
+
business_id?: InputMaybe<Scalars['ID']['input']>;
|
|
5916
6077
|
};
|
|
5917
6078
|
|
|
5918
6079
|
|
|
@@ -6031,10 +6192,20 @@ export type ResourceType =
|
|
|
6031
6192
|
| 'retailers'
|
|
6032
6193
|
| 'smart_groups';
|
|
6033
6194
|
|
|
6195
|
+
/**
|
|
6196
|
+
* Restriction Type
|
|
6197
|
+
* used to restrict the use of a ledger
|
|
6198
|
+
* i.e. a ledger can be restricted to a specific brand or business or campaign
|
|
6199
|
+
*/
|
|
6034
6200
|
export type Restriction = {
|
|
6035
6201
|
__typename?: 'Restriction';
|
|
6036
|
-
|
|
6037
|
-
|
|
6202
|
+
filter_value: Scalars['String']['output'];
|
|
6203
|
+
key: Scalars['String']['output'];
|
|
6204
|
+
};
|
|
6205
|
+
|
|
6206
|
+
export type RestrictionData = {
|
|
6207
|
+
type: Scalars['String']['input'];
|
|
6208
|
+
value: Scalars['String']['input'];
|
|
6038
6209
|
};
|
|
6039
6210
|
|
|
6040
6211
|
export type Retailer = {
|
|
@@ -6560,6 +6731,16 @@ export type Socials = {
|
|
|
6560
6731
|
share_data?: Maybe<Scalars['String']['output']>;
|
|
6561
6732
|
};
|
|
6562
6733
|
|
|
6734
|
+
/**
|
|
6735
|
+
* Type Sort
|
|
6736
|
+
* Represents the sort information for a request
|
|
6737
|
+
*/
|
|
6738
|
+
export type Sort = {
|
|
6739
|
+
__typename?: 'Sort';
|
|
6740
|
+
direction: Scalars['String']['output'];
|
|
6741
|
+
field: Scalars['String']['output'];
|
|
6742
|
+
};
|
|
6743
|
+
|
|
6563
6744
|
export type SortFields = {
|
|
6564
6745
|
direction?: InputMaybe<Scalars['String']['input']>;
|
|
6565
6746
|
field: Scalars['String']['input'];
|
|
@@ -6732,6 +6913,59 @@ export type TotalDivisionReferralStat = {
|
|
|
6732
6913
|
reps?: Maybe<Scalars['Int']['output']>;
|
|
6733
6914
|
};
|
|
6734
6915
|
|
|
6916
|
+
/**
|
|
6917
|
+
* Type Transaction
|
|
6918
|
+
* Represents the source and destination, destination, amount and type of a transaction
|
|
6919
|
+
*/
|
|
6920
|
+
export type Transaction = {
|
|
6921
|
+
__typename?: 'Transaction';
|
|
6922
|
+
amount: Scalars['String']['output'];
|
|
6923
|
+
created_at: Scalars['String']['output'];
|
|
6924
|
+
created_by_id: Scalars['ID']['output'];
|
|
6925
|
+
destination_wallet_id?: Maybe<Scalars['ID']['output']>;
|
|
6926
|
+
destination_wallet_type: Scalars['String']['output'];
|
|
6927
|
+
id: Scalars['ID']['output'];
|
|
6928
|
+
idempotency_key: Scalars['String']['output'];
|
|
6929
|
+
metadata?: Maybe<Scalars['String']['output']>;
|
|
6930
|
+
source_wallet_id?: Maybe<Scalars['ID']['output']>;
|
|
6931
|
+
source_wallet_type: Scalars['String']['output'];
|
|
6932
|
+
transaction_type: Scalars['String']['output'];
|
|
6933
|
+
wallet_id: Scalars['ID']['output'];
|
|
6934
|
+
wallet_running_balance: Scalars['String']['output'];
|
|
6935
|
+
};
|
|
6936
|
+
|
|
6937
|
+
/**
|
|
6938
|
+
* Type TransactionHistory
|
|
6939
|
+
* Represents a list of transactions
|
|
6940
|
+
*/
|
|
6941
|
+
export type TransactionHistory = {
|
|
6942
|
+
__typename?: 'TransactionHistory';
|
|
6943
|
+
paging?: Maybe<Pagination>;
|
|
6944
|
+
transactions: Array<Transaction>;
|
|
6945
|
+
};
|
|
6946
|
+
|
|
6947
|
+
/**
|
|
6948
|
+
* Type Transfer
|
|
6949
|
+
* Represents a transfer from one wallet to another
|
|
6950
|
+
*/
|
|
6951
|
+
export type Transfer = {
|
|
6952
|
+
__typename?: 'Transfer';
|
|
6953
|
+
amount_cents: Scalars['String']['output'];
|
|
6954
|
+
destination?: Maybe<WalletTarget>;
|
|
6955
|
+
metadata?: Maybe<Scalars['String']['output']>;
|
|
6956
|
+
source?: Maybe<WalletTarget>;
|
|
6957
|
+
transaction_type: Scalars['String']['output'];
|
|
6958
|
+
};
|
|
6959
|
+
|
|
6960
|
+
/** A transfer is a transaction between two accounts */
|
|
6961
|
+
export type TransferData = {
|
|
6962
|
+
amount_cents: Scalars['String']['input'];
|
|
6963
|
+
destination?: InputMaybe<WalletTargetData>;
|
|
6964
|
+
metadata?: InputMaybe<Scalars['String']['input']>;
|
|
6965
|
+
source?: InputMaybe<WalletTargetData>;
|
|
6966
|
+
transaction_type: Scalars['String']['input'];
|
|
6967
|
+
};
|
|
6968
|
+
|
|
6735
6969
|
export type TwitterAccount = {
|
|
6736
6970
|
__typename?: 'TwitterAccount';
|
|
6737
6971
|
authenticated_local?: Maybe<Scalars['Boolean']['output']>;
|
|
@@ -7185,22 +7419,45 @@ export type ViewStat = {
|
|
|
7185
7419
|
opened?: Maybe<Scalars['Int']['output']>;
|
|
7186
7420
|
};
|
|
7187
7421
|
|
|
7422
|
+
/**
|
|
7423
|
+
* Wallet Type
|
|
7424
|
+
* Represents a wallet for a brand or business
|
|
7425
|
+
* a wallet will only have a brand id or a business id set which indicates the type of wallet
|
|
7426
|
+
*/
|
|
7188
7427
|
export type Wallet = {
|
|
7189
7428
|
__typename?: 'Wallet';
|
|
7190
|
-
balance
|
|
7429
|
+
balance: Scalars['String']['output'];
|
|
7191
7430
|
brand_id?: Maybe<Scalars['ID']['output']>;
|
|
7192
7431
|
business_id?: Maybe<Scalars['ID']['output']>;
|
|
7193
|
-
|
|
7194
|
-
|
|
7432
|
+
created_at: Scalars['String']['output'];
|
|
7433
|
+
created_by_id?: Maybe<Scalars['ID']['output']>;
|
|
7434
|
+
id: Scalars['ID']['output'];
|
|
7435
|
+
ledgers: Array<Ledger>;
|
|
7195
7436
|
};
|
|
7196
7437
|
|
|
7197
|
-
|
|
7198
|
-
|
|
7199
|
-
|
|
7438
|
+
/**
|
|
7439
|
+
* Type WalletTarget
|
|
7440
|
+
* Represents the source or destination of a transaction
|
|
7441
|
+
*/
|
|
7442
|
+
export type WalletTarget = {
|
|
7443
|
+
__typename?: 'WalletTarget';
|
|
7444
|
+
expiration?: Maybe<Scalars['String']['output']>;
|
|
7445
|
+
id: Scalars['ID']['output'];
|
|
7446
|
+
restriction?: Maybe<Restriction>;
|
|
7447
|
+
type: Scalars['String']['output'];
|
|
7200
7448
|
};
|
|
7201
7449
|
|
|
7202
|
-
export type
|
|
7203
|
-
|
|
7450
|
+
export type WalletTargetData = {
|
|
7451
|
+
expiration?: InputMaybe<Scalars['String']['input']>;
|
|
7452
|
+
id: Scalars['ID']['input'];
|
|
7453
|
+
restriction?: InputMaybe<RestrictionData>;
|
|
7454
|
+
type: Scalars['String']['input'];
|
|
7455
|
+
};
|
|
7456
|
+
|
|
7457
|
+
/** get brand_retailer_ledgers */
|
|
7458
|
+
export type WalletsResponse = {
|
|
7459
|
+
__typename?: 'WalletsResponse';
|
|
7460
|
+
wallets: Array<Wallet>;
|
|
7204
7461
|
};
|
|
7205
7462
|
|
|
7206
7463
|
export type WeakCreateFilterDataFilterRuleSetCriteria = {
|
|
@@ -7212,77 +7469,25 @@ export type WeakCreateFilterDataFilterRuleSetCriteria = {
|
|
|
7212
7469
|
within_days?: InputMaybe<Scalars['String']['input']>;
|
|
7213
7470
|
};
|
|
7214
7471
|
|
|
7215
|
-
export type Withdrawal = {
|
|
7216
|
-
/** The amount to withdraw in cents */
|
|
7217
|
-
amount_cents: Scalars['String']['input'];
|
|
7218
|
-
destination?: InputMaybe<WithdrawalDestination>;
|
|
7219
|
-
metadata?: InputMaybe<WithdrawalMetadata>;
|
|
7220
|
-
source?: InputMaybe<WithdrawalSource>;
|
|
7221
|
-
/**
|
|
7222
|
-
* Abitrary type of the withdrawl
|
|
7223
|
-
* ex: brand-withdrawal-to-pbxx-wallet
|
|
7224
|
-
*/
|
|
7225
|
-
transaction_type: Scalars['String']['input'];
|
|
7226
|
-
};
|
|
7227
|
-
|
|
7228
7472
|
/**
|
|
7229
|
-
*
|
|
7230
|
-
*
|
|
7231
|
-
* key: promoboxx
|
|
7232
|
-
* value: 00000000-0000-0000-0000-000000000000
|
|
7233
|
-
*/
|
|
7234
|
-
export type WithdrawalDestination = {
|
|
7235
|
-
restriction?: InputMaybe<WithdrawalRestriction>;
|
|
7236
|
-
};
|
|
7237
|
-
|
|
7238
|
-
/**
|
|
7239
|
-
* The who/how for the withdrawal
|
|
7240
|
-
* ex:
|
|
7241
|
-
* sent_via: postman
|
|
7242
|
-
* sent_by: tsharkey
|
|
7473
|
+
* Type Withdrawal
|
|
7474
|
+
* Represents a withdrawal from a wallet
|
|
7243
7475
|
*/
|
|
7244
|
-
export type
|
|
7245
|
-
|
|
7246
|
-
|
|
7247
|
-
|
|
7248
|
-
|
|
7249
|
-
|
|
7250
|
-
|
|
7251
|
-
* Unique key to be used to ensure the withdrawal, once processed, will not be processed again.
|
|
7252
|
-
* For most use cases directly from the UI this can just be a random uuid.
|
|
7253
|
-
* Note, this does need to be int he proper uuid format.
|
|
7254
|
-
*/
|
|
7255
|
-
idempotency_key: Scalars['String']['input'];
|
|
7256
|
-
withdrawals: Array<Withdrawal>;
|
|
7257
|
-
};
|
|
7258
|
-
|
|
7259
|
-
export type WithdrawalResponse = {
|
|
7260
|
-
__typename?: 'WithdrawalResponse';
|
|
7261
|
-
wallet_balance: Scalars['String']['output'];
|
|
7262
|
-
wallet_id: Scalars['String']['output'];
|
|
7263
|
-
};
|
|
7264
|
-
|
|
7265
|
-
export type WithdrawalRestriction = {
|
|
7266
|
-
key: Scalars['String']['input'];
|
|
7267
|
-
value: Scalars['String']['input'];
|
|
7476
|
+
export type Withdrawal = {
|
|
7477
|
+
__typename?: 'Withdrawal';
|
|
7478
|
+
amount_cents: Scalars['String']['output'];
|
|
7479
|
+
destination?: Maybe<Restriction>;
|
|
7480
|
+
metadata?: Maybe<Scalars['String']['output']>;
|
|
7481
|
+
source?: Maybe<WalletTarget>;
|
|
7482
|
+
transaction_type: Scalars['String']['output'];
|
|
7268
7483
|
};
|
|
7269
7484
|
|
|
7270
|
-
|
|
7271
|
-
|
|
7272
|
-
|
|
7273
|
-
|
|
7274
|
-
|
|
7275
|
-
|
|
7276
|
-
* restriction: {
|
|
7277
|
-
* key: "brand"
|
|
7278
|
-
* value: <brand_uuid>
|
|
7279
|
-
* }
|
|
7280
|
-
* }
|
|
7281
|
-
*/
|
|
7282
|
-
export type WithdrawalSource = {
|
|
7283
|
-
id: Scalars['String']['input'];
|
|
7284
|
-
restriction?: InputMaybe<WithdrawalRestriction>;
|
|
7285
|
-
type: Scalars['String']['input'];
|
|
7485
|
+
export type WithdrawalData = {
|
|
7486
|
+
amount_cents: Scalars['String']['input'];
|
|
7487
|
+
destination?: InputMaybe<RestrictionData>;
|
|
7488
|
+
metadata?: InputMaybe<Scalars['String']['input']>;
|
|
7489
|
+
source?: InputMaybe<WalletTargetData>;
|
|
7490
|
+
transaction_type: Scalars['String']['input'];
|
|
7286
7491
|
};
|
|
7287
7492
|
|
|
7288
7493
|
export type ZipDigitalAssetsParams = {
|