@vertikalx/vtx-backend-client 1.0.0-dev-geo.21 → 1.0.0-dev-daniel.208
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/package.json +1 -1
- package/src/api/response-builder.js +2 -3
- package/src/api/response-builder.js.map +1 -1
- package/src/api/vtx-base-api.d.ts +4 -6
- package/src/api/vtx-base-api.js +257 -428
- package/src/api/vtx-base-api.js.map +1 -1
- package/src/client/runtime/generateGraphqlOperation.d.ts +1 -1
- package/src/client/schema.d.ts +420 -40
- package/src/client/schema.graphql +215 -15
- package/src/client/schema.js +87 -9
- package/src/client/schema.js.map +1 -1
- package/src/client/types.d.ts +221 -21
- package/src/client/types.js +891 -367
- package/src/client/types.js.map +1 -1
- package/tsconfig.lib.tsbuildinfo +1 -1
- package/libs/vtx-backend-client/package.json +0 -16
- package/libs/vtx-backend-client/src/api/api-call-headers.d.ts +0 -16
- package/libs/vtx-backend-client/src/api/api-call-headers.js +0 -20
- package/libs/vtx-backend-client/src/api/api-call-headers.js.map +0 -1
- package/libs/vtx-backend-client/src/api/backend-response.d.ts +0 -10
- package/libs/vtx-backend-client/src/api/backend-response.js +0 -3
- package/libs/vtx-backend-client/src/api/backend-response.js.map +0 -1
- package/libs/vtx-backend-client/src/api/domains.d.ts +0 -3
- package/libs/vtx-backend-client/src/api/domains.js +0 -7
- package/libs/vtx-backend-client/src/api/domains.js.map +0 -1
- package/libs/vtx-backend-client/src/api/response-builder.d.ts +0 -4
- package/libs/vtx-backend-client/src/api/response-builder.js +0 -123
- package/libs/vtx-backend-client/src/api/response-builder.js.map +0 -1
- package/libs/vtx-backend-client/src/api/types.d.ts +0 -2
- package/libs/vtx-backend-client/src/api/types.js +0 -3
- package/libs/vtx-backend-client/src/api/types.js.map +0 -1
- package/libs/vtx-backend-client/src/api/vtx-apikey-api.d.ts +0 -6
- package/libs/vtx-backend-client/src/api/vtx-apikey-api.js +0 -19
- package/libs/vtx-backend-client/src/api/vtx-apikey-api.js.map +0 -1
- package/libs/vtx-backend-client/src/api/vtx-base-api.d.ts +0 -73
- package/libs/vtx-backend-client/src/api/vtx-base-api.js +0 -5153
- package/libs/vtx-backend-client/src/api/vtx-base-api.js.map +0 -1
- package/libs/vtx-backend-client/src/api/vtx-mobile-api.d.ts +0 -6
- package/libs/vtx-backend-client/src/api/vtx-mobile-api.js +0 -27
- package/libs/vtx-backend-client/src/api/vtx-mobile-api.js.map +0 -1
- package/libs/vtx-backend-client/src/api/vtx-web-browser-api.d.ts +0 -7
- package/libs/vtx-backend-client/src/api/vtx-web-browser-api.js +0 -36
- package/libs/vtx-backend-client/src/api/vtx-web-browser-api.js.map +0 -1
- package/libs/vtx-backend-client/src/api/vtx-web-server-api.d.ts +0 -7
- package/libs/vtx-backend-client/src/api/vtx-web-server-api.js +0 -33
- package/libs/vtx-backend-client/src/api/vtx-web-server-api.js.map +0 -1
- package/libs/vtx-backend-client/src/client/index.d.ts +0 -25
- package/libs/vtx-backend-client/src/client/index.js +0 -44
- package/libs/vtx-backend-client/src/client/index.js.map +0 -1
- package/libs/vtx-backend-client/src/client/runtime/batcher.d.ts +0 -36
- package/libs/vtx-backend-client/src/client/runtime/batcher.js +0 -123
- package/libs/vtx-backend-client/src/client/runtime/batcher.js.map +0 -1
- package/libs/vtx-backend-client/src/client/runtime/createClient.d.ts +0 -17
- package/libs/vtx-backend-client/src/client/runtime/createClient.js +0 -28
- package/libs/vtx-backend-client/src/client/runtime/createClient.js.map +0 -1
- package/libs/vtx-backend-client/src/client/runtime/error.d.ts +0 -15
- package/libs/vtx-backend-client/src/client/runtime/error.js +0 -19
- package/libs/vtx-backend-client/src/client/runtime/error.js.map +0 -1
- package/libs/vtx-backend-client/src/client/runtime/fetcher.d.ts +0 -10
- package/libs/vtx-backend-client/src/client/runtime/fetcher.js +0 -68
- package/libs/vtx-backend-client/src/client/runtime/fetcher.js.map +0 -1
- package/libs/vtx-backend-client/src/client/runtime/generateGraphqlOperation.d.ts +0 -30
- package/libs/vtx-backend-client/src/client/runtime/generateGraphqlOperation.js +0 -134
- package/libs/vtx-backend-client/src/client/runtime/generateGraphqlOperation.js.map +0 -1
- package/libs/vtx-backend-client/src/client/runtime/index.d.ts +0 -11
- package/libs/vtx-backend-client/src/client/runtime/index.js +0 -17
- package/libs/vtx-backend-client/src/client/runtime/index.js.map +0 -1
- package/libs/vtx-backend-client/src/client/runtime/linkTypeMap.d.ts +0 -9
- package/libs/vtx-backend-client/src/client/runtime/linkTypeMap.js +0 -95
- package/libs/vtx-backend-client/src/client/runtime/linkTypeMap.js.map +0 -1
- package/libs/vtx-backend-client/src/client/runtime/typeSelection.d.ts +0 -28
- package/libs/vtx-backend-client/src/client/runtime/typeSelection.js +0 -3
- package/libs/vtx-backend-client/src/client/runtime/typeSelection.js.map +0 -1
- package/libs/vtx-backend-client/src/client/runtime/types.d.ts +0 -55
- package/libs/vtx-backend-client/src/client/runtime/types.js +0 -3
- package/libs/vtx-backend-client/src/client/runtime/types.js.map +0 -1
- package/libs/vtx-backend-client/src/client/schema.d.ts +0 -2960
- package/libs/vtx-backend-client/src/client/schema.js +0 -649
- package/libs/vtx-backend-client/src/client/schema.js.map +0 -1
- package/libs/vtx-backend-client/src/client/types.d.ts +0 -1617
- package/libs/vtx-backend-client/src/client/types.js +0 -4198
- package/libs/vtx-backend-client/src/client/types.js.map +0 -1
- package/libs/vtx-backend-client/src/index.d.ts +0 -11
- package/libs/vtx-backend-client/src/index.js +0 -28
- package/libs/vtx-backend-client/src/index.js.map +0 -1
- package/src/api/dto/edit-picture.dto.d.ts +0 -5
- package/src/api/dto/edit-picture.dto.js +0 -31
- package/src/api/dto/edit-picture.dto.js.map +0 -1
- package/src/api/types/delete-single-value-response.type.d.ts +0 -6
- package/src/api/types/delete-single-value-response.type.js +0 -36
- package/src/api/types/delete-single-value-response.type.js.map +0 -1
- package/src/api/types/edit-picture-response.type.d.ts +0 -7
- package/src/api/types/edit-picture-response.type.js +0 -39
- package/src/api/types/edit-picture-response.type.js.map +0 -1
- package/src/api/types/error.type.d.ts +0 -4
- package/src/api/types/error.type.js +0 -28
- package/src/api/types/error.type.js.map +0 -1
package/src/api/vtx-base-api.js
CHANGED
|
@@ -2260,6 +2260,112 @@ class VTXBaseAPI {
|
|
|
2260
2260
|
resultWebLink: true
|
|
2261
2261
|
}
|
|
2262
2262
|
}
|
|
2263
|
+
},
|
|
2264
|
+
stripeAccountReference: {
|
|
2265
|
+
_id: true,
|
|
2266
|
+
stripeAccountId: true,
|
|
2267
|
+
account: {
|
|
2268
|
+
id: true,
|
|
2269
|
+
object: true,
|
|
2270
|
+
business_type: true,
|
|
2271
|
+
country: true,
|
|
2272
|
+
email: true,
|
|
2273
|
+
capabilities: {
|
|
2274
|
+
acss_debit_payments: true,
|
|
2275
|
+
affirm_payments: true,
|
|
2276
|
+
afterpay_clearpay_payments: true,
|
|
2277
|
+
alma_payments: true,
|
|
2278
|
+
amazon_pay_payments: true,
|
|
2279
|
+
au_becs_debit_payments: true,
|
|
2280
|
+
bacs_debit_payments: true,
|
|
2281
|
+
bancontact_payments: true,
|
|
2282
|
+
bank_transfer_payments: true,
|
|
2283
|
+
blik_payments: true,
|
|
2284
|
+
boleto_payments: true,
|
|
2285
|
+
card_issuing: true,
|
|
2286
|
+
card_payments: true,
|
|
2287
|
+
cartes_bancaires_payments: true,
|
|
2288
|
+
cashapp_payments: true,
|
|
2289
|
+
eps_payments: true,
|
|
2290
|
+
fpx_payments: true,
|
|
2291
|
+
gb_bank_transfer_payments: true,
|
|
2292
|
+
giropay_payments: true,
|
|
2293
|
+
grabpay_payments: true,
|
|
2294
|
+
ideal_payments: true,
|
|
2295
|
+
india_international_payments: true,
|
|
2296
|
+
jcb_payments: true,
|
|
2297
|
+
jp_bank_transfer_payments: true,
|
|
2298
|
+
kakao_pay_payments: true,
|
|
2299
|
+
klarna_payments: true,
|
|
2300
|
+
konbini_payments: true,
|
|
2301
|
+
kr_card_payments: true,
|
|
2302
|
+
legacy_payments: true,
|
|
2303
|
+
link_payments: true,
|
|
2304
|
+
mobilepay_payments: true,
|
|
2305
|
+
multibanco_payments: true,
|
|
2306
|
+
mx_bank_transfer_payments: true,
|
|
2307
|
+
naver_pay_payments: true,
|
|
2308
|
+
oxxo_payments: true,
|
|
2309
|
+
p24_payments: true,
|
|
2310
|
+
pay_by_bank_payments: true,
|
|
2311
|
+
payco_payments: true,
|
|
2312
|
+
paynow_payments: true,
|
|
2313
|
+
promptpay_payments: true,
|
|
2314
|
+
revolut_pay_payments: true,
|
|
2315
|
+
samsung_pay_payments: true,
|
|
2316
|
+
sepa_bank_transfer_payments: true,
|
|
2317
|
+
sepa_debit_payments: true,
|
|
2318
|
+
sofort_payments: true,
|
|
2319
|
+
swish_payments: true,
|
|
2320
|
+
tax_reporting_us_1099_k: true,
|
|
2321
|
+
tax_reporting_us_1099_misc: true,
|
|
2322
|
+
transfers: true,
|
|
2323
|
+
treasury: true,
|
|
2324
|
+
twint_payments: true,
|
|
2325
|
+
us_bank_account_ach_payments: true,
|
|
2326
|
+
us_bank_transfer_payments: true,
|
|
2327
|
+
zip_payments: true
|
|
2328
|
+
},
|
|
2329
|
+
requirements: {
|
|
2330
|
+
alternatives: {
|
|
2331
|
+
alternative_fields_due: true,
|
|
2332
|
+
original_fields_due: true
|
|
2333
|
+
},
|
|
2334
|
+
current_deadline: true,
|
|
2335
|
+
currently_due: true,
|
|
2336
|
+
disabled_reason: true,
|
|
2337
|
+
errors: {
|
|
2338
|
+
code: true,
|
|
2339
|
+
reason: true,
|
|
2340
|
+
requirement: true
|
|
2341
|
+
},
|
|
2342
|
+
eventually_due: true,
|
|
2343
|
+
past_due: true,
|
|
2344
|
+
pending_verification: true
|
|
2345
|
+
},
|
|
2346
|
+
future_requirements: {
|
|
2347
|
+
alternatives: {
|
|
2348
|
+
alternative_fields_due: true,
|
|
2349
|
+
original_fields_due: true
|
|
2350
|
+
},
|
|
2351
|
+
current_deadline: true,
|
|
2352
|
+
currently_due: true,
|
|
2353
|
+
disabled_reason: true,
|
|
2354
|
+
errors: {
|
|
2355
|
+
code: true,
|
|
2356
|
+
reason: true,
|
|
2357
|
+
requirement: true
|
|
2358
|
+
},
|
|
2359
|
+
eventually_due: true,
|
|
2360
|
+
past_due: true,
|
|
2361
|
+
pending_verification: true
|
|
2362
|
+
},
|
|
2363
|
+
type: true,
|
|
2364
|
+
charges_enabled: true,
|
|
2365
|
+
payouts_enabled: true,
|
|
2366
|
+
created: true,
|
|
2367
|
+
default_currency: true
|
|
2368
|
+
}
|
|
2263
2369
|
}
|
|
2264
2370
|
};
|
|
2265
2371
|
try {
|
|
@@ -4652,488 +4758,211 @@ class VTXBaseAPI {
|
|
|
4652
4758
|
}
|
|
4653
4759
|
return retValue;
|
|
4654
4760
|
}
|
|
4655
|
-
async
|
|
4761
|
+
async createStripeAccount(dto, desiredFields) {
|
|
4656
4762
|
const client = (0, client_1.createClient)({
|
|
4657
4763
|
url: this.backendUrl + "/graphql",
|
|
4658
4764
|
headers: this.headers,
|
|
4659
4765
|
});
|
|
4660
|
-
|
|
4661
|
-
const fields = {
|
|
4766
|
+
const fields = desiredFields ?? {
|
|
4662
4767
|
_id: true,
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
|
|
4693
|
-
|
|
4694
|
-
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
|
|
4706
|
-
|
|
4707
|
-
|
|
4708
|
-
|
|
4709
|
-
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
scope: true,
|
|
4726
|
-
scopeId: true,
|
|
4727
|
-
scopeName: true,
|
|
4728
|
-
position: true,
|
|
4729
|
-
total: true
|
|
4730
|
-
},
|
|
4731
|
-
countryRanking: {
|
|
4732
|
-
scope: true,
|
|
4733
|
-
scopeId: true,
|
|
4734
|
-
scopeName: true,
|
|
4735
|
-
position: true,
|
|
4736
|
-
total: true
|
|
4737
|
-
},
|
|
4738
|
-
stateRanking: {
|
|
4739
|
-
scope: true,
|
|
4740
|
-
scopeId: true,
|
|
4741
|
-
scopeName: true,
|
|
4742
|
-
position: true,
|
|
4743
|
-
total: true
|
|
4744
|
-
},
|
|
4745
|
-
cityRanking: {
|
|
4746
|
-
scope: true,
|
|
4747
|
-
scopeId: true,
|
|
4748
|
-
scopeName: true,
|
|
4749
|
-
position: true,
|
|
4750
|
-
total: true
|
|
4751
|
-
},
|
|
4752
|
-
},
|
|
4753
|
-
allSports: {
|
|
4754
|
-
_id: true,
|
|
4755
|
-
name: true
|
|
4756
|
-
},
|
|
4757
|
-
teams: {
|
|
4758
|
-
_id: true,
|
|
4759
|
-
name: true,
|
|
4760
|
-
description: true,
|
|
4761
|
-
approved: true,
|
|
4762
|
-
logo: {
|
|
4763
|
-
_id: true,
|
|
4764
|
-
name: true,
|
|
4765
|
-
contentType: true,
|
|
4766
|
-
size: true,
|
|
4767
|
-
useType: true,
|
|
4768
|
-
url: true,
|
|
4769
|
-
key: true
|
|
4770
|
-
},
|
|
4771
|
-
banner: {
|
|
4772
|
-
_id: true,
|
|
4773
|
-
name: true,
|
|
4774
|
-
contentType: true,
|
|
4775
|
-
size: true,
|
|
4776
|
-
useType: true,
|
|
4777
|
-
url: true,
|
|
4778
|
-
key: true
|
|
4779
|
-
}
|
|
4780
|
-
},
|
|
4781
|
-
sponsorBrands: {
|
|
4782
|
-
_id: true,
|
|
4783
|
-
name: true,
|
|
4784
|
-
slogan: true,
|
|
4785
|
-
website: true,
|
|
4786
|
-
description: true,
|
|
4787
|
-
approved: true,
|
|
4788
|
-
published: true,
|
|
4789
|
-
logo: {
|
|
4790
|
-
_id: true,
|
|
4791
|
-
name: true,
|
|
4792
|
-
contentType: true,
|
|
4793
|
-
size: true,
|
|
4794
|
-
useType: true,
|
|
4795
|
-
url: true,
|
|
4796
|
-
key: true
|
|
4797
|
-
},
|
|
4798
|
-
stats: {
|
|
4799
|
-
campaigns: true,
|
|
4800
|
-
sponsorships: true,
|
|
4801
|
-
sports: true,
|
|
4802
|
-
athletes: true
|
|
4768
|
+
stripeAccountId: true,
|
|
4769
|
+
account: {
|
|
4770
|
+
id: true,
|
|
4771
|
+
object: true,
|
|
4772
|
+
business_type: true,
|
|
4773
|
+
country: true,
|
|
4774
|
+
email: true,
|
|
4775
|
+
capabilities: {
|
|
4776
|
+
acss_debit_payments: true,
|
|
4777
|
+
affirm_payments: true,
|
|
4778
|
+
afterpay_clearpay_payments: true,
|
|
4779
|
+
alma_payments: true,
|
|
4780
|
+
amazon_pay_payments: true,
|
|
4781
|
+
au_becs_debit_payments: true,
|
|
4782
|
+
bacs_debit_payments: true,
|
|
4783
|
+
bancontact_payments: true,
|
|
4784
|
+
bank_transfer_payments: true,
|
|
4785
|
+
blik_payments: true,
|
|
4786
|
+
boleto_payments: true,
|
|
4787
|
+
card_issuing: true,
|
|
4788
|
+
card_payments: true,
|
|
4789
|
+
cartes_bancaires_payments: true,
|
|
4790
|
+
cashapp_payments: true,
|
|
4791
|
+
eps_payments: true,
|
|
4792
|
+
fpx_payments: true,
|
|
4793
|
+
gb_bank_transfer_payments: true,
|
|
4794
|
+
giropay_payments: true,
|
|
4795
|
+
grabpay_payments: true,
|
|
4796
|
+
ideal_payments: true,
|
|
4797
|
+
india_international_payments: true,
|
|
4798
|
+
jcb_payments: true,
|
|
4799
|
+
jp_bank_transfer_payments: true,
|
|
4800
|
+
kakao_pay_payments: true,
|
|
4801
|
+
klarna_payments: true,
|
|
4802
|
+
konbini_payments: true,
|
|
4803
|
+
kr_card_payments: true,
|
|
4804
|
+
legacy_payments: true,
|
|
4805
|
+
link_payments: true,
|
|
4806
|
+
mobilepay_payments: true,
|
|
4807
|
+
multibanco_payments: true,
|
|
4808
|
+
mx_bank_transfer_payments: true,
|
|
4809
|
+
naver_pay_payments: true,
|
|
4810
|
+
oxxo_payments: true,
|
|
4811
|
+
p24_payments: true,
|
|
4812
|
+
pay_by_bank_payments: true,
|
|
4813
|
+
payco_payments: true,
|
|
4814
|
+
paynow_payments: true,
|
|
4815
|
+
promptpay_payments: true,
|
|
4816
|
+
revolut_pay_payments: true,
|
|
4817
|
+
samsung_pay_payments: true,
|
|
4818
|
+
sepa_bank_transfer_payments: true,
|
|
4819
|
+
sepa_debit_payments: true,
|
|
4820
|
+
sofort_payments: true,
|
|
4821
|
+
swish_payments: true,
|
|
4822
|
+
tax_reporting_us_1099_k: true,
|
|
4823
|
+
tax_reporting_us_1099_misc: true,
|
|
4824
|
+
transfers: true,
|
|
4825
|
+
treasury: true,
|
|
4826
|
+
twint_payments: true,
|
|
4827
|
+
us_bank_account_ach_payments: true,
|
|
4828
|
+
us_bank_transfer_payments: true,
|
|
4829
|
+
zip_payments: true
|
|
4803
4830
|
},
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
event: {
|
|
4809
|
-
_id: true,
|
|
4810
|
-
name: true,
|
|
4811
|
-
mainSport: {
|
|
4812
|
-
_id: true,
|
|
4813
|
-
name: true
|
|
4831
|
+
requirements: {
|
|
4832
|
+
alternatives: {
|
|
4833
|
+
alternative_fields_due: true,
|
|
4834
|
+
original_fields_due: true
|
|
4814
4835
|
},
|
|
4815
|
-
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
|
|
4822
|
-
userProvidedLongitude: true,
|
|
4823
|
-
cityNameGeocode: true,
|
|
4824
|
-
stateNameGeocode: true,
|
|
4825
|
-
countryIso2CodeGeocode: true,
|
|
4826
|
-
timeZoneGeocode: true,
|
|
4827
|
-
latitudeGeocode: true,
|
|
4828
|
-
longitudeGeocode: true,
|
|
4829
|
-
city: {
|
|
4830
|
-
_id: true,
|
|
4831
|
-
name: true,
|
|
4832
|
-
localizedName: true,
|
|
4833
|
-
state: {
|
|
4834
|
-
_id: true,
|
|
4835
|
-
name: true,
|
|
4836
|
-
country: {
|
|
4837
|
-
_id: true,
|
|
4838
|
-
name: true
|
|
4839
|
-
}
|
|
4840
|
-
},
|
|
4841
|
-
latitude: true,
|
|
4842
|
-
longitude: true,
|
|
4843
|
-
timezone: true,
|
|
4844
|
-
}
|
|
4836
|
+
current_deadline: true,
|
|
4837
|
+
currently_due: true,
|
|
4838
|
+
disabled_reason: true,
|
|
4839
|
+
errors: {
|
|
4840
|
+
code: true,
|
|
4841
|
+
reason: true,
|
|
4842
|
+
requirement: true
|
|
4845
4843
|
},
|
|
4846
|
-
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
contentType: true,
|
|
4850
|
-
size: true,
|
|
4851
|
-
useType: true,
|
|
4852
|
-
url: true,
|
|
4853
|
-
key: true
|
|
4854
|
-
}
|
|
4844
|
+
eventually_due: true,
|
|
4845
|
+
past_due: true,
|
|
4846
|
+
pending_verification: true
|
|
4855
4847
|
},
|
|
4856
|
-
|
|
4857
|
-
|
|
4858
|
-
|
|
4859
|
-
|
|
4860
|
-
position: true,
|
|
4861
|
-
score: true,
|
|
4862
|
-
finishTimeMS: true,
|
|
4863
|
-
resultWebLink: true
|
|
4864
|
-
}
|
|
4865
|
-
},
|
|
4866
|
-
affiliations: {
|
|
4867
|
-
_id: true,
|
|
4868
|
-
organization: {
|
|
4869
|
-
_id: true,
|
|
4870
|
-
shortName: true,
|
|
4871
|
-
acronym: true,
|
|
4872
|
-
fullName: true,
|
|
4873
|
-
website: true,
|
|
4874
|
-
logo: {
|
|
4875
|
-
_id: true,
|
|
4876
|
-
name: true,
|
|
4877
|
-
contentType: true,
|
|
4878
|
-
size: true,
|
|
4879
|
-
useType: true,
|
|
4880
|
-
url: true,
|
|
4881
|
-
key: true
|
|
4882
|
-
}
|
|
4883
|
-
},
|
|
4884
|
-
membershipNumber: true,
|
|
4885
|
-
membershipType: true,
|
|
4886
|
-
issueDate: true,
|
|
4887
|
-
expirationDate: true,
|
|
4888
|
-
},
|
|
4889
|
-
totalUpcomingCompetitions: true,
|
|
4890
|
-
totalPastCompetitions: true,
|
|
4891
|
-
profilePicture: {
|
|
4892
|
-
_id: true,
|
|
4893
|
-
name: true,
|
|
4894
|
-
contentType: true,
|
|
4895
|
-
size: true,
|
|
4896
|
-
useType: true,
|
|
4897
|
-
url: true,
|
|
4898
|
-
key: true
|
|
4899
|
-
},
|
|
4900
|
-
cardPicture: {
|
|
4901
|
-
_id: true,
|
|
4902
|
-
name: true,
|
|
4903
|
-
contentType: true,
|
|
4904
|
-
size: true,
|
|
4905
|
-
useType: true,
|
|
4906
|
-
url: true,
|
|
4907
|
-
key: true
|
|
4908
|
-
},
|
|
4909
|
-
preferences: {
|
|
4910
|
-
_id: true,
|
|
4911
|
-
showProfileHelper: true
|
|
4912
|
-
},
|
|
4913
|
-
currentCampaign: {
|
|
4914
|
-
_id: true,
|
|
4915
|
-
budgetMode: true,
|
|
4916
|
-
status: true,
|
|
4917
|
-
title: true,
|
|
4918
|
-
motivation: true,
|
|
4919
|
-
website: true,
|
|
4920
|
-
fundsRequired: true,
|
|
4921
|
-
initialFundsObtained: true,
|
|
4922
|
-
fundsObtained: true,
|
|
4923
|
-
location: {
|
|
4924
|
-
_id: true,
|
|
4925
|
-
userProvidedLatitude: true,
|
|
4926
|
-
userProvidedLongitude: true,
|
|
4927
|
-
cityNameGeocode: true,
|
|
4928
|
-
stateNameGeocode: true,
|
|
4929
|
-
countryIso2CodeGeocode: true,
|
|
4930
|
-
timeZoneGeocode: true,
|
|
4931
|
-
latitudeGeocode: true,
|
|
4932
|
-
longitudeGeocode: true,
|
|
4933
|
-
city: {
|
|
4934
|
-
_id: true,
|
|
4935
|
-
name: true,
|
|
4936
|
-
localizedName: true,
|
|
4937
|
-
state: {
|
|
4938
|
-
_id: true,
|
|
4939
|
-
name: true,
|
|
4940
|
-
country: {
|
|
4941
|
-
_id: true,
|
|
4942
|
-
name: true
|
|
4943
|
-
}
|
|
4944
|
-
},
|
|
4945
|
-
latitude: true,
|
|
4946
|
-
longitude: true,
|
|
4947
|
-
timezone: true,
|
|
4948
|
-
}
|
|
4949
|
-
},
|
|
4950
|
-
endingDate: true,
|
|
4951
|
-
budget: {
|
|
4952
|
-
_id: true,
|
|
4953
|
-
initialFunds: true,
|
|
4954
|
-
totalRequired: true,
|
|
4955
|
-
items: {
|
|
4956
|
-
_id: true,
|
|
4957
|
-
quantity: true,
|
|
4958
|
-
concept: true,
|
|
4959
|
-
itemCost: true
|
|
4960
|
-
}
|
|
4961
|
-
},
|
|
4962
|
-
competitions: {
|
|
4963
|
-
_id: true,
|
|
4964
|
-
event: {
|
|
4965
|
-
_id: true,
|
|
4966
|
-
name: true,
|
|
4967
|
-
mainSport: {
|
|
4968
|
-
_id: true,
|
|
4969
|
-
name: true
|
|
4970
|
-
},
|
|
4971
|
-
eventWebSite: true,
|
|
4972
|
-
startDate: true,
|
|
4973
|
-
endDate: true,
|
|
4974
|
-
verified: true,
|
|
4975
|
-
banner: {
|
|
4976
|
-
_id: true,
|
|
4977
|
-
name: true,
|
|
4978
|
-
contentType: true,
|
|
4979
|
-
size: true,
|
|
4980
|
-
useType: true,
|
|
4981
|
-
url: true,
|
|
4982
|
-
key: true
|
|
4983
|
-
},
|
|
4984
|
-
location: {
|
|
4985
|
-
_id: true,
|
|
4986
|
-
userProvidedLatitude: true,
|
|
4987
|
-
userProvidedLongitude: true,
|
|
4988
|
-
cityNameGeocode: true,
|
|
4989
|
-
stateNameGeocode: true,
|
|
4990
|
-
countryIso2CodeGeocode: true,
|
|
4991
|
-
timeZoneGeocode: true,
|
|
4992
|
-
latitudeGeocode: true,
|
|
4993
|
-
longitudeGeocode: true,
|
|
4994
|
-
city: {
|
|
4995
|
-
_id: true,
|
|
4996
|
-
name: true,
|
|
4997
|
-
localizedName: true,
|
|
4998
|
-
state: {
|
|
4999
|
-
_id: true,
|
|
5000
|
-
name: true,
|
|
5001
|
-
country: {
|
|
5002
|
-
_id: true,
|
|
5003
|
-
name: true
|
|
5004
|
-
}
|
|
5005
|
-
},
|
|
5006
|
-
latitude: true,
|
|
5007
|
-
longitude: true,
|
|
5008
|
-
timezone: true,
|
|
5009
|
-
}
|
|
5010
|
-
},
|
|
4848
|
+
future_requirements: {
|
|
4849
|
+
alternatives: {
|
|
4850
|
+
alternative_fields_due: true,
|
|
4851
|
+
original_fields_due: true
|
|
5011
4852
|
},
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
|
|
4853
|
+
current_deadline: true,
|
|
4854
|
+
currently_due: true,
|
|
4855
|
+
disabled_reason: true,
|
|
4856
|
+
errors: {
|
|
4857
|
+
code: true,
|
|
4858
|
+
reason: true,
|
|
4859
|
+
requirement: true
|
|
4860
|
+
},
|
|
4861
|
+
eventually_due: true,
|
|
4862
|
+
past_due: true,
|
|
4863
|
+
pending_verification: true
|
|
4864
|
+
},
|
|
4865
|
+
type: true,
|
|
4866
|
+
charges_enabled: true,
|
|
4867
|
+
payouts_enabled: true,
|
|
4868
|
+
created: true,
|
|
4869
|
+
default_currency: true
|
|
5022
4870
|
}
|
|
5023
4871
|
};
|
|
4872
|
+
fields._id = true;
|
|
4873
|
+
let retValue = {};
|
|
5024
4874
|
try {
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
findAthletebyIdpublic: {
|
|
4875
|
+
const response = await client.mutation({
|
|
4876
|
+
createStripeAccount: {
|
|
5028
4877
|
__args: {
|
|
5029
|
-
|
|
4878
|
+
input: dto
|
|
5030
4879
|
},
|
|
5031
4880
|
...fields
|
|
5032
4881
|
}
|
|
5033
4882
|
});
|
|
5034
|
-
VTXBaseAPI.Logger.debug('
|
|
4883
|
+
VTXBaseAPI.Logger.debug('createStripeAccount Response:');
|
|
5035
4884
|
VTXBaseAPI.Logger.debug(JSON.stringify(response, null, 2));
|
|
5036
|
-
retValue = (0, response_builder_1.buildResponse)(response, '
|
|
5037
|
-
|
|
4885
|
+
retValue = (0, response_builder_1.buildResponse)(response, 'createStripeAccount', (r) => {
|
|
4886
|
+
VTXBaseAPI.Logger.debug(JSON.stringify(response, null, 2));
|
|
4887
|
+
const isResponseOk = true && response?.createStripeAccount?._id;
|
|
5038
4888
|
return isResponseOk;
|
|
5039
4889
|
});
|
|
5040
4890
|
}
|
|
5041
|
-
catch (
|
|
5042
|
-
VTXBaseAPI.Logger.error('
|
|
5043
|
-
VTXBaseAPI.Logger.error(
|
|
5044
|
-
retValue = (0, response_builder_1.buildErrorResponse)(
|
|
4891
|
+
catch (error1) {
|
|
4892
|
+
VTXBaseAPI.Logger.error('createStripeAccount err1:');
|
|
4893
|
+
VTXBaseAPI.Logger.error(error1);
|
|
4894
|
+
retValue = (0, response_builder_1.buildErrorResponse)(error1);
|
|
5045
4895
|
}
|
|
5046
4896
|
return retValue;
|
|
5047
4897
|
}
|
|
5048
|
-
async
|
|
5049
|
-
console.log('HEADERS:');
|
|
5050
|
-
console.log(JSON.stringify(this.headers, null, 2));
|
|
4898
|
+
async createAthleteStripeSession(desiredFields) {
|
|
5051
4899
|
const client = (0, client_1.createClient)({
|
|
5052
|
-
url: this.backendUrl +
|
|
4900
|
+
url: this.backendUrl + "/graphql",
|
|
5053
4901
|
headers: this.headers,
|
|
5054
4902
|
});
|
|
5055
|
-
|
|
5056
|
-
|
|
5057
|
-
|
|
5058
|
-
|
|
5059
|
-
|
|
5060
|
-
name: true,
|
|
5061
|
-
contentType: true,
|
|
5062
|
-
size: true,
|
|
5063
|
-
useType: true,
|
|
5064
|
-
url: true,
|
|
5065
|
-
key: true
|
|
5066
|
-
},
|
|
5067
|
-
newValue: {
|
|
5068
|
-
_id: true,
|
|
5069
|
-
name: true,
|
|
5070
|
-
contentType: true,
|
|
5071
|
-
size: true,
|
|
5072
|
-
useType: true,
|
|
5073
|
-
url: true,
|
|
5074
|
-
key: true
|
|
5075
|
-
},
|
|
5076
|
-
changed: true
|
|
4903
|
+
const fields = desiredFields ?? {
|
|
4904
|
+
account: true,
|
|
4905
|
+
client_secret: true,
|
|
4906
|
+
expires_at: true,
|
|
4907
|
+
livemode: true
|
|
5077
4908
|
};
|
|
4909
|
+
fields.client_secret = true;
|
|
4910
|
+
let retValue = {};
|
|
5078
4911
|
try {
|
|
5079
4912
|
const response = await client.mutation({
|
|
5080
|
-
|
|
5081
|
-
__args: {
|
|
5082
|
-
input: newPicDto
|
|
5083
|
-
},
|
|
4913
|
+
createAthleteStripeSession: {
|
|
4914
|
+
__args: {},
|
|
5084
4915
|
...fields
|
|
5085
|
-
}
|
|
4916
|
+
}
|
|
5086
4917
|
});
|
|
5087
|
-
VTXBaseAPI.Logger.debug('
|
|
4918
|
+
VTXBaseAPI.Logger.debug('createAthleteStripeSession Response:');
|
|
5088
4919
|
VTXBaseAPI.Logger.debug(JSON.stringify(response, null, 2));
|
|
5089
|
-
retValue = (0, response_builder_1.buildResponse)(response, '
|
|
5090
|
-
|
|
4920
|
+
retValue = (0, response_builder_1.buildResponse)(response, 'createAthleteStripeSession', (r) => {
|
|
4921
|
+
VTXBaseAPI.Logger.debug(JSON.stringify(response, null, 2));
|
|
4922
|
+
const isResponseOk = true && response?.createAthleteStripeSession?.client_secret;
|
|
5091
4923
|
return isResponseOk;
|
|
5092
4924
|
});
|
|
5093
4925
|
}
|
|
5094
|
-
catch (
|
|
5095
|
-
VTXBaseAPI.Logger.error('
|
|
5096
|
-
VTXBaseAPI.Logger.error(
|
|
5097
|
-
retValue = (0, response_builder_1.buildErrorResponse)(
|
|
4926
|
+
catch (error1) {
|
|
4927
|
+
VTXBaseAPI.Logger.error('createAthleteStripeSession err1:');
|
|
4928
|
+
VTXBaseAPI.Logger.error(error1);
|
|
4929
|
+
retValue = (0, response_builder_1.buildErrorResponse)(error1);
|
|
5098
4930
|
}
|
|
5099
4931
|
return retValue;
|
|
5100
4932
|
}
|
|
5101
|
-
async
|
|
5102
|
-
console.log('HEADERS:');
|
|
5103
|
-
console.log(JSON.stringify(this.headers, null, 2));
|
|
4933
|
+
async createStripeCheckoutSession(dto, desiredFields) {
|
|
5104
4934
|
const client = (0, client_1.createClient)({
|
|
5105
|
-
url: this.backendUrl +
|
|
4935
|
+
url: this.backendUrl + "/graphql",
|
|
5106
4936
|
headers: this.headers,
|
|
5107
4937
|
});
|
|
5108
|
-
|
|
5109
|
-
|
|
5110
|
-
|
|
5111
|
-
|
|
5112
|
-
failureReason: {
|
|
5113
|
-
code: true,
|
|
5114
|
-
message: true
|
|
5115
|
-
}
|
|
4938
|
+
const fields = desiredFields ?? {
|
|
4939
|
+
client_secret: true,
|
|
4940
|
+
expires_at: true,
|
|
4941
|
+
livemode: true
|
|
5116
4942
|
};
|
|
4943
|
+
fields.client_secret = true;
|
|
4944
|
+
let retValue = {};
|
|
5117
4945
|
try {
|
|
5118
4946
|
const response = await client.mutation({
|
|
5119
|
-
|
|
4947
|
+
createStripeCheckoutSession: {
|
|
5120
4948
|
__args: {
|
|
5121
|
-
input:
|
|
4949
|
+
input: dto
|
|
5122
4950
|
},
|
|
5123
4951
|
...fields
|
|
5124
|
-
}
|
|
4952
|
+
}
|
|
5125
4953
|
});
|
|
5126
|
-
VTXBaseAPI.Logger.debug('
|
|
4954
|
+
VTXBaseAPI.Logger.debug('createStripeCheckoutSession Response:');
|
|
5127
4955
|
VTXBaseAPI.Logger.debug(JSON.stringify(response, null, 2));
|
|
5128
|
-
retValue = (0, response_builder_1.buildResponse)(response, '
|
|
5129
|
-
|
|
4956
|
+
retValue = (0, response_builder_1.buildResponse)(response, 'createStripeCheckoutSession', (r) => {
|
|
4957
|
+
VTXBaseAPI.Logger.debug(JSON.stringify(response, null, 2));
|
|
4958
|
+
const isResponseOk = true && response?.createStripeCheckoutSession?.client_secret;
|
|
5130
4959
|
return isResponseOk;
|
|
5131
4960
|
});
|
|
5132
4961
|
}
|
|
5133
|
-
catch (
|
|
5134
|
-
VTXBaseAPI.Logger.error('
|
|
5135
|
-
VTXBaseAPI.Logger.error(
|
|
5136
|
-
retValue = (0, response_builder_1.buildErrorResponse)(
|
|
4962
|
+
catch (error1) {
|
|
4963
|
+
VTXBaseAPI.Logger.error('createStripeCheckoutSession err1:');
|
|
4964
|
+
VTXBaseAPI.Logger.error(error1);
|
|
4965
|
+
retValue = (0, response_builder_1.buildErrorResponse)(error1);
|
|
5137
4966
|
}
|
|
5138
4967
|
return retValue;
|
|
5139
4968
|
}
|