@paynow-gg/typescript-sdk 2.0.1 → 2.0.2
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/dist/cjs/generated/management/client.d.ts +8 -1
- package/dist/cjs/generated/management/client.d.ts.map +1 -1
- package/dist/cjs/generated/management/client.js +16 -1
- package/dist/cjs/generated/management/client.js.map +1 -1
- package/dist/cjs/generated/management/types.d.ts +205 -0
- package/dist/cjs/generated/management/types.d.ts.map +1 -1
- package/dist/esm/generated/management/client.d.ts +8 -1
- package/dist/esm/generated/management/client.d.ts.map +1 -1
- package/dist/esm/generated/management/client.js +14 -0
- package/dist/esm/generated/management/client.js.map +1 -1
- package/dist/esm/generated/management/types.d.ts +205 -0
- package/dist/esm/generated/management/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -243,6 +243,11 @@ export interface AffiliateLinkDto {
|
|
|
243
243
|
* - `last_referer`: The most recent affiliate link the customer followed is credited.
|
|
244
244
|
*/
|
|
245
245
|
export type AffiliateLinkRefererTypeDto = "invalid" | "first_referer" | "last_referer";
|
|
246
|
+
export interface AffiliateLinkResult {
|
|
247
|
+
id: FlakeId;
|
|
248
|
+
store_id?: FlakeId;
|
|
249
|
+
affiliate_link?: AffiliateLinkDto;
|
|
250
|
+
}
|
|
246
251
|
/**
|
|
247
252
|
* Alipay payment method details
|
|
248
253
|
*/
|
|
@@ -313,6 +318,11 @@ export interface BanIdentityDto {
|
|
|
313
318
|
ban_type: BanType;
|
|
314
319
|
ban_type_value: string;
|
|
315
320
|
}
|
|
321
|
+
export interface BanResult {
|
|
322
|
+
id: FlakeId;
|
|
323
|
+
store_id?: FlakeId;
|
|
324
|
+
ban?: BanDto;
|
|
325
|
+
}
|
|
316
326
|
/**
|
|
317
327
|
* Query parameters
|
|
318
328
|
*/
|
|
@@ -660,6 +670,11 @@ export type CouponFilterStatusDto = "all" | "active" | "inactive";
|
|
|
660
670
|
* - `generated`: Coupon's that were created by the system (basket recover, etc.).
|
|
661
671
|
*/
|
|
662
672
|
export type CouponFilterTypeDto = "all" | "manual" | "generated";
|
|
673
|
+
export interface CouponResult {
|
|
674
|
+
id: FlakeId;
|
|
675
|
+
store_id?: FlakeId;
|
|
676
|
+
coupon?: CouponDto;
|
|
677
|
+
}
|
|
663
678
|
/**
|
|
664
679
|
* Query parameters
|
|
665
680
|
*/
|
|
@@ -1254,6 +1269,11 @@ export interface CustomerPortalSessionFlowDto {
|
|
|
1254
1269
|
* - `minecraft_uuid`: Minecraft profile platform - the ID param must be a Minecraft UUID.
|
|
1255
1270
|
*/
|
|
1256
1271
|
export type CustomerProfilePlatform = "invalid" | "steam" | "minecraft" | "paynow_name" | "paynow" | "minecraft_java_name" | "minecraft_bedrock_name" | "xbox_xuid" | "minecraft_uuid";
|
|
1272
|
+
export interface CustomerResult {
|
|
1273
|
+
id: FlakeId;
|
|
1274
|
+
store_id?: FlakeId;
|
|
1275
|
+
customer: CustomerDto;
|
|
1276
|
+
}
|
|
1257
1277
|
/**
|
|
1258
1278
|
* Query parameters
|
|
1259
1279
|
*/
|
|
@@ -1577,6 +1597,43 @@ export interface CustomVariableOptionRequestDto {
|
|
|
1577
1597
|
Customers can enter numeric values (subject to validation).
|
|
1578
1598
|
*/
|
|
1579
1599
|
export type CustomVariableType = "dropdown" | "text" | "number";
|
|
1600
|
+
/**
|
|
1601
|
+
* Query parameters
|
|
1602
|
+
*/
|
|
1603
|
+
export type DashboardSearchDashboardQuery = {
|
|
1604
|
+
query?: string;
|
|
1605
|
+
search_hints?: Record<string, string>;
|
|
1606
|
+
search_result_type?: DashboardSearchResultTypeDto;
|
|
1607
|
+
/**
|
|
1608
|
+
* The maximum number of items to return in a single request.
|
|
1609
|
+
* @format int32
|
|
1610
|
+
* @minimum 1
|
|
1611
|
+
* @maximum 100
|
|
1612
|
+
*/
|
|
1613
|
+
limit?: number;
|
|
1614
|
+
/**
|
|
1615
|
+
* Returns items after the specified ID.
|
|
1616
|
+
* Used for forward pagination through results.
|
|
1617
|
+
*/
|
|
1618
|
+
after?: FlakeId;
|
|
1619
|
+
/**
|
|
1620
|
+
* Returns items before the specified ID.
|
|
1621
|
+
* Used for backward pagination through results.
|
|
1622
|
+
*/
|
|
1623
|
+
before?: FlakeId;
|
|
1624
|
+
/**
|
|
1625
|
+
* Determines the sort order of returned items.
|
|
1626
|
+
* When true, items are returned in ascending order.
|
|
1627
|
+
* When false, items are returned in descending order.
|
|
1628
|
+
*/
|
|
1629
|
+
asc?: boolean;
|
|
1630
|
+
};
|
|
1631
|
+
export interface DashboardSearchHintDto {
|
|
1632
|
+
prefix: string;
|
|
1633
|
+
example: string;
|
|
1634
|
+
description: string;
|
|
1635
|
+
}
|
|
1636
|
+
export type DashboardSearchResultTypeDto = "unknown" | "orders" | "trials" | "subscriptions" | "customers" | "coupons" | "gameservers" | "products" | "sales" | "api_keys" | "bans" | "affiliate_links" | "tags" | "giftcards" | "stores" | "users" | "tickets";
|
|
1580
1637
|
export interface DashboardStatsDto {
|
|
1581
1638
|
store_id: FlakeId;
|
|
1582
1639
|
/**
|
|
@@ -2232,6 +2289,11 @@ export interface GameServerLinkDto {
|
|
|
2232
2289
|
last_fetched_commands_at?: string | null;
|
|
2233
2290
|
last_fetched_commands_from_ip?: string | null;
|
|
2234
2291
|
}
|
|
2292
|
+
export interface GameserverResult {
|
|
2293
|
+
id: FlakeId;
|
|
2294
|
+
store_id?: FlakeId;
|
|
2295
|
+
gameserver?: GameServerDto;
|
|
2296
|
+
}
|
|
2235
2297
|
export interface GetDimensionStatsResponseDto_V2 {
|
|
2236
2298
|
dimension_type: StatsDimensionTypeDto_V2;
|
|
2237
2299
|
revenue_basis: RevenueBasisDto_V2;
|
|
@@ -2315,6 +2377,11 @@ export interface GiftCardDto {
|
|
|
2315
2377
|
canceled_at?: string | null;
|
|
2316
2378
|
canceled_by?: ActorDto;
|
|
2317
2379
|
}
|
|
2380
|
+
export interface GiftcardResult {
|
|
2381
|
+
id: FlakeId;
|
|
2382
|
+
store_id?: FlakeId;
|
|
2383
|
+
giftcard?: GiftCardDto;
|
|
2384
|
+
}
|
|
2318
2385
|
/**
|
|
2319
2386
|
* Query parameters
|
|
2320
2387
|
*/
|
|
@@ -3344,6 +3411,11 @@ export interface OrderLinePayoutSplitDto {
|
|
|
3344
3411
|
*/
|
|
3345
3412
|
platform_fee: number;
|
|
3346
3413
|
}
|
|
3414
|
+
export interface OrderResult {
|
|
3415
|
+
id: FlakeId;
|
|
3416
|
+
store_id?: FlakeId;
|
|
3417
|
+
order?: OrderDto;
|
|
3418
|
+
}
|
|
3347
3419
|
/**
|
|
3348
3420
|
* Query parameters
|
|
3349
3421
|
*/
|
|
@@ -3870,6 +3942,20 @@ export interface PaymentMethodTypeFeeOverrideDto {
|
|
|
3870
3942
|
*/
|
|
3871
3943
|
fee_cents: number;
|
|
3872
3944
|
countries: Array<string>;
|
|
3945
|
+
card_brands: Array<string>;
|
|
3946
|
+
card_networks: Array<string>;
|
|
3947
|
+
card_funding_types: Array<string>;
|
|
3948
|
+
card_regulated_statuses: Array<string>;
|
|
3949
|
+
card_product_categories: Array<string>;
|
|
3950
|
+
fee_schedule_id?: FlakeId;
|
|
3951
|
+
/**
|
|
3952
|
+
* @format date-time
|
|
3953
|
+
*/
|
|
3954
|
+
begins_at: string;
|
|
3955
|
+
/**
|
|
3956
|
+
* @format date-time
|
|
3957
|
+
*/
|
|
3958
|
+
ends_at?: string | null;
|
|
3873
3959
|
}
|
|
3874
3960
|
/**
|
|
3875
3961
|
* Represents payout split results for multi-party payments
|
|
@@ -4548,6 +4634,15 @@ export interface ProductPricingRegionOverrideDto {
|
|
|
4548
4634
|
tax_inclusive?: boolean | null;
|
|
4549
4635
|
}
|
|
4550
4636
|
export type ProductRemoveAfterIntervalScale = "invalid" | "day" | "week" | "month";
|
|
4637
|
+
export interface ProductResult {
|
|
4638
|
+
id: FlakeId;
|
|
4639
|
+
store_id?: FlakeId;
|
|
4640
|
+
/**
|
|
4641
|
+
* @format int64
|
|
4642
|
+
*/
|
|
4643
|
+
total: number;
|
|
4644
|
+
product?: ProductDto;
|
|
4645
|
+
}
|
|
4551
4646
|
/**
|
|
4552
4647
|
* Query parameters
|
|
4553
4648
|
*/
|
|
@@ -5136,6 +5231,11 @@ export interface SaleDto {
|
|
|
5136
5231
|
updated_at?: string | null;
|
|
5137
5232
|
}
|
|
5138
5233
|
export type SaleDurationDto = "unspecified" | "once" | "forever" | "repeating";
|
|
5234
|
+
export interface SaleResult {
|
|
5235
|
+
id: FlakeId;
|
|
5236
|
+
store_id?: FlakeId;
|
|
5237
|
+
sale?: SaleDto;
|
|
5238
|
+
}
|
|
5139
5239
|
/**
|
|
5140
5240
|
* Object representing a sales tax jurisdiction and its associated taxes.
|
|
5141
5241
|
*/
|
|
@@ -5176,6 +5276,91 @@ export interface SalesTaxJurisdictionTaxDto {
|
|
|
5176
5276
|
*/
|
|
5177
5277
|
tax_rate: string;
|
|
5178
5278
|
}
|
|
5279
|
+
export interface SearchDashboardResponseDto {
|
|
5280
|
+
stores: Array<StoreResult>;
|
|
5281
|
+
customers: Array<CustomerResult>;
|
|
5282
|
+
orders: Array<OrderResult>;
|
|
5283
|
+
gameservers: Array<GameserverResult>;
|
|
5284
|
+
products: Array<ProductResult>;
|
|
5285
|
+
coupons: Array<CouponResult>;
|
|
5286
|
+
sales: Array<SaleResult>;
|
|
5287
|
+
giftcards: Array<GiftcardResult>;
|
|
5288
|
+
tags: Array<TagsResult>;
|
|
5289
|
+
affiliate_links: Array<AffiliateLinkResult>;
|
|
5290
|
+
trials: Array<TrialResult>;
|
|
5291
|
+
subscriptions: Array<SubscriptionResult>;
|
|
5292
|
+
bans: Array<BanResult>;
|
|
5293
|
+
facets: {
|
|
5294
|
+
/**
|
|
5295
|
+
* @format int64
|
|
5296
|
+
*/
|
|
5297
|
+
unknown?: number;
|
|
5298
|
+
/**
|
|
5299
|
+
* @format int64
|
|
5300
|
+
*/
|
|
5301
|
+
orders?: number;
|
|
5302
|
+
/**
|
|
5303
|
+
* @format int64
|
|
5304
|
+
*/
|
|
5305
|
+
trials?: number;
|
|
5306
|
+
/**
|
|
5307
|
+
* @format int64
|
|
5308
|
+
*/
|
|
5309
|
+
subscriptions?: number;
|
|
5310
|
+
/**
|
|
5311
|
+
* @format int64
|
|
5312
|
+
*/
|
|
5313
|
+
customers?: number;
|
|
5314
|
+
/**
|
|
5315
|
+
* @format int64
|
|
5316
|
+
*/
|
|
5317
|
+
coupons?: number;
|
|
5318
|
+
/**
|
|
5319
|
+
* @format int64
|
|
5320
|
+
*/
|
|
5321
|
+
gameservers?: number;
|
|
5322
|
+
/**
|
|
5323
|
+
* @format int64
|
|
5324
|
+
*/
|
|
5325
|
+
products?: number;
|
|
5326
|
+
/**
|
|
5327
|
+
* @format int64
|
|
5328
|
+
*/
|
|
5329
|
+
sales?: number;
|
|
5330
|
+
/**
|
|
5331
|
+
* @format int64
|
|
5332
|
+
*/
|
|
5333
|
+
api_keys?: number;
|
|
5334
|
+
/**
|
|
5335
|
+
* @format int64
|
|
5336
|
+
*/
|
|
5337
|
+
bans?: number;
|
|
5338
|
+
/**
|
|
5339
|
+
* @format int64
|
|
5340
|
+
*/
|
|
5341
|
+
affiliate_links?: number;
|
|
5342
|
+
/**
|
|
5343
|
+
* @format int64
|
|
5344
|
+
*/
|
|
5345
|
+
tags?: number;
|
|
5346
|
+
/**
|
|
5347
|
+
* @format int64
|
|
5348
|
+
*/
|
|
5349
|
+
giftcards?: number;
|
|
5350
|
+
/**
|
|
5351
|
+
* @format int64
|
|
5352
|
+
*/
|
|
5353
|
+
stores?: number;
|
|
5354
|
+
/**
|
|
5355
|
+
* @format int64
|
|
5356
|
+
*/
|
|
5357
|
+
users?: number;
|
|
5358
|
+
/**
|
|
5359
|
+
* @format int64
|
|
5360
|
+
*/
|
|
5361
|
+
tickets?: number;
|
|
5362
|
+
};
|
|
5363
|
+
}
|
|
5179
5364
|
export interface SetDiscordActionDto {
|
|
5180
5365
|
discord_server_id: FlakeId;
|
|
5181
5366
|
action_type: DiscordActionType;
|
|
@@ -5551,6 +5736,11 @@ export type StoreRequirementCategory = "invalid" | "business" | "kyc" | "complia
|
|
|
5551
5736
|
*/
|
|
5552
5737
|
export type StoreRequirementStatus = "invalid" | "pending" | "under_review" | "requires_revision" | "approved" | "expired" | "waived" | "rejected_final";
|
|
5553
5738
|
export type StoreRestrictionFlagDto = "none" | "payments_disabled" | "payouts_disabled";
|
|
5739
|
+
export interface StoreResult {
|
|
5740
|
+
id: FlakeId;
|
|
5741
|
+
store_id?: FlakeId;
|
|
5742
|
+
store: StoreDto;
|
|
5743
|
+
}
|
|
5554
5744
|
export interface StoreTrustDto {
|
|
5555
5745
|
store_id: FlakeId;
|
|
5556
5746
|
status: StoreTrustStatusDto;
|
|
@@ -6447,6 +6637,11 @@ export interface SubscriptionLineDto {
|
|
|
6447
6637
|
export interface SubscriptionPaymentMethodUpdateFlowDto {
|
|
6448
6638
|
subscription_id: FlakeId;
|
|
6449
6639
|
}
|
|
6640
|
+
export interface SubscriptionResult {
|
|
6641
|
+
id: FlakeId;
|
|
6642
|
+
store_id?: FlakeId;
|
|
6643
|
+
subscription?: SubscriptionDto;
|
|
6644
|
+
}
|
|
6450
6645
|
/**
|
|
6451
6646
|
* Query parameters
|
|
6452
6647
|
*/
|
|
@@ -6546,6 +6741,11 @@ export interface TagDto {
|
|
|
6546
6741
|
updated_at?: string | null;
|
|
6547
6742
|
updated_by?: ActorDto;
|
|
6548
6743
|
}
|
|
6744
|
+
export interface TagsResult {
|
|
6745
|
+
id: FlakeId;
|
|
6746
|
+
store_id?: FlakeId;
|
|
6747
|
+
tag?: TagDto;
|
|
6748
|
+
}
|
|
6549
6749
|
export interface TierGroupDto {
|
|
6550
6750
|
id: FlakeId;
|
|
6551
6751
|
store_id: FlakeId;
|
|
@@ -6739,6 +6939,11 @@ export interface TrialEligibilityOverrideDto {
|
|
|
6739
6939
|
deleted_at?: string | null;
|
|
6740
6940
|
deleted_by?: ActorDto;
|
|
6741
6941
|
}
|
|
6942
|
+
export interface TrialResult {
|
|
6943
|
+
id: FlakeId;
|
|
6944
|
+
store_id?: FlakeId;
|
|
6945
|
+
trial?: TrialDto;
|
|
6946
|
+
}
|
|
6742
6947
|
/**
|
|
6743
6948
|
* Query parameters
|
|
6744
6949
|
*/
|