@paynow-gg/typescript-sdk 2.1.7 → 2.1.9
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 +48 -51
- package/dist/cjs/generated/management/client.d.ts.map +1 -1
- package/dist/cjs/generated/management/client.js +73 -74
- package/dist/cjs/generated/management/client.js.map +1 -1
- package/dist/cjs/generated/management/types.d.ts +149 -81
- package/dist/cjs/generated/management/types.d.ts.map +1 -1
- package/dist/cjs/generated/storefront/types.d.ts +24 -0
- package/dist/cjs/generated/storefront/types.d.ts.map +1 -1
- package/dist/esm/generated/management/client.d.ts +48 -51
- package/dist/esm/generated/management/client.d.ts.map +1 -1
- package/dist/esm/generated/management/client.js +71 -73
- package/dist/esm/generated/management/client.js.map +1 -1
- package/dist/esm/generated/management/types.d.ts +149 -81
- package/dist/esm/generated/management/types.d.ts.map +1 -1
- package/dist/esm/generated/storefront/types.d.ts +24 -0
- package/dist/esm/generated/storefront/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -641,10 +641,11 @@ export interface CheckoutStyleDto {
|
|
|
641
641
|
*/
|
|
642
642
|
color_outline?: string | null;
|
|
643
643
|
/**
|
|
644
|
-
* The URL of the image shown behind the checkout, or null when
|
|
645
|
-
*
|
|
644
|
+
* The URL of the image shown behind the checkout, or null when there is none. It cannot be set
|
|
645
|
+
* directly; set 'background_media_asset_id' instead.
|
|
646
646
|
*/
|
|
647
647
|
url_background?: string | null;
|
|
648
|
+
background_media_asset_id?: FlakeId;
|
|
648
649
|
}
|
|
649
650
|
export interface CommandAttemptDto {
|
|
650
651
|
id: FlakeId;
|
|
@@ -1082,6 +1083,7 @@ export interface CreateCheckoutStyleDto {
|
|
|
1082
1083
|
* default.
|
|
1083
1084
|
*/
|
|
1084
1085
|
color_outline?: string;
|
|
1086
|
+
background_media_asset_id?: FlakeId;
|
|
1085
1087
|
}
|
|
1086
1088
|
export interface CreateCouponDto {
|
|
1087
1089
|
/**
|
|
@@ -1191,8 +1193,8 @@ export interface CreateDownloadableFileDownloadUrlResponseDto {
|
|
|
1191
1193
|
}
|
|
1192
1194
|
export interface CreateEmailBrandingDto {
|
|
1193
1195
|
color: string;
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
+
header_image_light_media_asset_id?: FlakeId;
|
|
1197
|
+
header_image_dark_media_asset_id?: FlakeId;
|
|
1196
1198
|
}
|
|
1197
1199
|
export interface CreateEmailTemplateDto {
|
|
1198
1200
|
email_template_type: EmailTemplateTypeDto;
|
|
@@ -1271,6 +1273,37 @@ export interface CreateInviteDto {
|
|
|
1271
1273
|
*/
|
|
1272
1274
|
user_email: string;
|
|
1273
1275
|
}
|
|
1276
|
+
/**
|
|
1277
|
+
* Represents a request to start uploading a media file.
|
|
1278
|
+
*/
|
|
1279
|
+
export interface CreateMediaUploadRequestDto {
|
|
1280
|
+
/**
|
|
1281
|
+
* The MIME type of the file. One of 'image/png', 'image/jpeg', 'image/webp', 'image/gif' or 'video/mp4'.
|
|
1282
|
+
* @example "image/png"
|
|
1283
|
+
*/
|
|
1284
|
+
content_type: string;
|
|
1285
|
+
/**
|
|
1286
|
+
* The size of the file in bytes, at most 20 MB (20971520 bytes).
|
|
1287
|
+
* @format int64
|
|
1288
|
+
* @example 524288
|
|
1289
|
+
*/
|
|
1290
|
+
size_bytes: number;
|
|
1291
|
+
}
|
|
1292
|
+
/**
|
|
1293
|
+
* Represents a started media upload.
|
|
1294
|
+
*/
|
|
1295
|
+
export interface CreateMediaUploadResponseDto {
|
|
1296
|
+
media_asset_id: FlakeId;
|
|
1297
|
+
/**
|
|
1298
|
+
* The URL to upload the file to with a PUT request, sending the file as the raw request body.
|
|
1299
|
+
*/
|
|
1300
|
+
upload_url: string;
|
|
1301
|
+
/**
|
|
1302
|
+
* The date and time after which 'upload_url' stops accepting the upload.
|
|
1303
|
+
* @format date-time
|
|
1304
|
+
*/
|
|
1305
|
+
expires_at: string;
|
|
1306
|
+
}
|
|
1274
1307
|
export interface CreateNavLinkDto {
|
|
1275
1308
|
tag_id: FlakeId;
|
|
1276
1309
|
/**
|
|
@@ -1395,6 +1428,8 @@ export interface CreateStoreDto {
|
|
|
1395
1428
|
* The integration type used by the store.
|
|
1396
1429
|
*/
|
|
1397
1430
|
integration_type?: string;
|
|
1431
|
+
logo_media_asset_id?: FlakeId;
|
|
1432
|
+
logo_square_media_asset_id?: FlakeId;
|
|
1398
1433
|
/**
|
|
1399
1434
|
* Username prefix used to identify Minecraft Bedrock players (e.g. ".").
|
|
1400
1435
|
*/
|
|
@@ -2050,7 +2085,7 @@ export interface DashboardSearchHintDto {
|
|
|
2050
2085
|
example: string;
|
|
2051
2086
|
description: string;
|
|
2052
2087
|
}
|
|
2053
|
-
export type DashboardSearchResultTypeDto = "unknown" | "orders" | "trials" | "subscriptions" | "customers" | "coupons" | "gameservers" | "products" | "sales" | "api_keys" | "bans" | "affiliate_links" | "tags" | "giftcards" | "stores" | "users" | "tickets" | "tier_groups" | "custom_variables" | "global_commands" | "webhooks" | "email_templates" | "email_deliveries";
|
|
2088
|
+
export type DashboardSearchResultTypeDto = "unknown" | "orders" | "trials" | "subscriptions" | "customers" | "coupons" | "gameservers" | "products" | "sales" | "api_keys" | "bans" | "affiliate_links" | "tags" | "giftcards" | "stores" | "users" | "tickets" | "tier_groups" | "custom_variables" | "global_commands" | "webhooks" | "email_templates" | "email_deliveries" | "webhook_deliveries";
|
|
2054
2089
|
export interface DashboardStatsDto {
|
|
2055
2090
|
store_id: FlakeId;
|
|
2056
2091
|
/**
|
|
@@ -2558,6 +2593,8 @@ export interface EmailBrandingDto {
|
|
|
2558
2593
|
color: string;
|
|
2559
2594
|
header_image_light_url?: string | null;
|
|
2560
2595
|
header_image_dark_url?: string | null;
|
|
2596
|
+
header_image_light_media_asset_id?: FlakeId;
|
|
2597
|
+
header_image_dark_media_asset_id?: FlakeId;
|
|
2561
2598
|
}
|
|
2562
2599
|
export interface EmailDeliveryDto {
|
|
2563
2600
|
id: FlakeId;
|
|
@@ -2640,36 +2677,6 @@ export interface ExecutedWebhookDto {
|
|
|
2640
2677
|
status_code: number;
|
|
2641
2678
|
response?: string | null;
|
|
2642
2679
|
}
|
|
2643
|
-
export interface FinishCheckoutStyleBackgroundImageUploadRequestDto {
|
|
2644
|
-
image_id: string;
|
|
2645
|
-
}
|
|
2646
|
-
export interface FinishEmailBrandingImageUploadRequestDto {
|
|
2647
|
-
image_id: string;
|
|
2648
|
-
dark_mode: boolean;
|
|
2649
|
-
}
|
|
2650
|
-
export interface FinishProductImageUploadRequestDto {
|
|
2651
|
-
/**
|
|
2652
|
-
* The ID of the uploaded image returned by the server.
|
|
2653
|
-
*/
|
|
2654
|
-
image_id: string;
|
|
2655
|
-
}
|
|
2656
|
-
export interface FinishStoreLogoUploadRequestDto {
|
|
2657
|
-
/**
|
|
2658
|
-
* The ID of the uploaded image returned by the server.
|
|
2659
|
-
*/
|
|
2660
|
-
image_id: string;
|
|
2661
|
-
/**
|
|
2662
|
-
* Which logo the upload replaces. 1 is the default logo, 2 the square logo.
|
|
2663
|
-
* @format int32
|
|
2664
|
-
*/
|
|
2665
|
-
logo_type: number;
|
|
2666
|
-
}
|
|
2667
|
-
export interface FinishTagImageUploadUrlRequestDto {
|
|
2668
|
-
/**
|
|
2669
|
-
* The ID of the uploaded image returned by the server.
|
|
2670
|
-
*/
|
|
2671
|
-
image_id: string;
|
|
2672
|
-
}
|
|
2673
2680
|
/**
|
|
2674
2681
|
* Represents the result of importing an uploaded template archive into a template.
|
|
2675
2682
|
*/
|
|
@@ -2820,10 +2827,6 @@ export interface GameserverResult {
|
|
|
2820
2827
|
store_id?: FlakeId;
|
|
2821
2828
|
gameserver?: GameServerDto;
|
|
2822
2829
|
}
|
|
2823
|
-
export interface GetCheckoutStyleBackgroundImageUploadUrlResponseDto {
|
|
2824
|
-
id: string;
|
|
2825
|
-
upload_url: string;
|
|
2826
|
-
}
|
|
2827
2830
|
export interface GetDimensionStatsResponseDto_V2 {
|
|
2828
2831
|
dimension_type: StatsDimensionTypeDto_V2;
|
|
2829
2832
|
revenue_basis: RevenueBasisDto_V2;
|
|
@@ -2833,40 +2836,6 @@ export interface GetDistributionResponseDto_V2 {
|
|
|
2833
2836
|
distribution_type: StatsDistributionTypeDto_V2;
|
|
2834
2837
|
entries: Array<DistributionEntryDto_V2>;
|
|
2835
2838
|
}
|
|
2836
|
-
export interface GetEmailBrandingImageUploadUrlResponseDto {
|
|
2837
|
-
upload_url: string;
|
|
2838
|
-
image_id: string;
|
|
2839
|
-
}
|
|
2840
|
-
export interface GetProductImageUploadUrlResponseDto {
|
|
2841
|
-
/**
|
|
2842
|
-
* The ID of the direct image upload URL.
|
|
2843
|
-
*/
|
|
2844
|
-
id: string;
|
|
2845
|
-
/**
|
|
2846
|
-
* The URL to upload the image to.
|
|
2847
|
-
*/
|
|
2848
|
-
upload_url: string;
|
|
2849
|
-
}
|
|
2850
|
-
export interface GetStoreLogoUploadUrlResponseDto {
|
|
2851
|
-
/**
|
|
2852
|
-
* The ID of the direct image upload URL.
|
|
2853
|
-
*/
|
|
2854
|
-
id: string;
|
|
2855
|
-
/**
|
|
2856
|
-
* The URL to upload the logo to.
|
|
2857
|
-
*/
|
|
2858
|
-
upload_url: string;
|
|
2859
|
-
}
|
|
2860
|
-
export interface GetTagImageUploadUrlResponseDto {
|
|
2861
|
-
/**
|
|
2862
|
-
* The ID of the direct image upload URL.
|
|
2863
|
-
*/
|
|
2864
|
-
id: string;
|
|
2865
|
-
/**
|
|
2866
|
-
* The URL to upload the image to.
|
|
2867
|
-
*/
|
|
2868
|
-
upload_url: string;
|
|
2869
|
-
}
|
|
2870
2839
|
/**
|
|
2871
2840
|
* Represents a link to download a template's files as an archive.
|
|
2872
2841
|
*/
|
|
@@ -3191,6 +3160,10 @@ export interface InlineProductCreateDto {
|
|
|
3191
3160
|
* The IDs of associated custom variables.
|
|
3192
3161
|
*/
|
|
3193
3162
|
custom_variable_ids?: Array<FlakeId> | null;
|
|
3163
|
+
/**
|
|
3164
|
+
* The IDs of the media assets to show as the product's images, in display order.
|
|
3165
|
+
*/
|
|
3166
|
+
media_asset_ids?: Array<FlakeId> | null;
|
|
3194
3167
|
/**
|
|
3195
3168
|
* Indicates if applying gift cards should be disabled on the product.
|
|
3196
3169
|
*/
|
|
@@ -3489,12 +3462,6 @@ export interface MarketingCouponConfigurationDto {
|
|
|
3489
3462
|
usable_on_subscriptions: boolean;
|
|
3490
3463
|
expires_after?: Period;
|
|
3491
3464
|
}
|
|
3492
|
-
/**
|
|
3493
|
-
* Query parameters
|
|
3494
|
-
*/
|
|
3495
|
-
export type MarketingGetEmailBrandingImageUploadUrlQuery = {
|
|
3496
|
-
dark_mode?: boolean;
|
|
3497
|
-
};
|
|
3498
3465
|
/**
|
|
3499
3466
|
* Query parameters
|
|
3500
3467
|
*/
|
|
@@ -3558,6 +3525,71 @@ export type MarketingGetEmailTemplatesQuery = {
|
|
|
3558
3525
|
*/
|
|
3559
3526
|
asc?: boolean;
|
|
3560
3527
|
};
|
|
3528
|
+
/**
|
|
3529
|
+
* Represents an image or video uploaded to a store's media.
|
|
3530
|
+
*/
|
|
3531
|
+
export interface MediaAssetDto {
|
|
3532
|
+
id: FlakeId;
|
|
3533
|
+
store_id: FlakeId;
|
|
3534
|
+
/**
|
|
3535
|
+
* The public URL the media is served from.
|
|
3536
|
+
*/
|
|
3537
|
+
url: string;
|
|
3538
|
+
type: MediaAssetTypeDto;
|
|
3539
|
+
/**
|
|
3540
|
+
* The MIME type of the media, for example 'image/png'.
|
|
3541
|
+
*/
|
|
3542
|
+
content_type: string;
|
|
3543
|
+
/**
|
|
3544
|
+
* The size of the media in bytes.
|
|
3545
|
+
* @format int64
|
|
3546
|
+
*/
|
|
3547
|
+
size_bytes: number;
|
|
3548
|
+
/**
|
|
3549
|
+
* The date and time the media asset was created.
|
|
3550
|
+
* @format date-time
|
|
3551
|
+
*/
|
|
3552
|
+
created_at: string;
|
|
3553
|
+
}
|
|
3554
|
+
/**
|
|
3555
|
+
* Specifies the kind of media an asset holds.
|
|
3556
|
+
* - `unknown`: The type is unknown.
|
|
3557
|
+
* - `image`: An image (PNG, JPEG, WEBP or GIF).
|
|
3558
|
+
* - `video`: A video (MP4).
|
|
3559
|
+
*/
|
|
3560
|
+
export type MediaAssetTypeDto = "unknown" | "image" | "video";
|
|
3561
|
+
/**
|
|
3562
|
+
* Query parameters
|
|
3563
|
+
*/
|
|
3564
|
+
export type MediaListMediaAssetsQuery = {
|
|
3565
|
+
/**
|
|
3566
|
+
* Only return media of this type.
|
|
3567
|
+
*/
|
|
3568
|
+
type?: MediaAssetTypeDto;
|
|
3569
|
+
/**
|
|
3570
|
+
* The maximum number of items to return in a single request.
|
|
3571
|
+
* @format int32
|
|
3572
|
+
* @minimum 1
|
|
3573
|
+
* @maximum 100
|
|
3574
|
+
*/
|
|
3575
|
+
limit?: number;
|
|
3576
|
+
/**
|
|
3577
|
+
* Returns items after the specified ID.
|
|
3578
|
+
* Used for forward pagination through results.
|
|
3579
|
+
*/
|
|
3580
|
+
after?: FlakeId;
|
|
3581
|
+
/**
|
|
3582
|
+
* Returns items before the specified ID.
|
|
3583
|
+
* Used for backward pagination through results.
|
|
3584
|
+
*/
|
|
3585
|
+
before?: FlakeId;
|
|
3586
|
+
/**
|
|
3587
|
+
* Determines the sort order of returned items.
|
|
3588
|
+
* When true, items are returned in ascending order.
|
|
3589
|
+
* When false, items are returned in descending order.
|
|
3590
|
+
*/
|
|
3591
|
+
asc?: boolean;
|
|
3592
|
+
};
|
|
3561
3593
|
export interface MoneyDto_V2 {
|
|
3562
3594
|
/**
|
|
3563
3595
|
* The ISO 4217 currency code, e.g. "USD", "GBP".
|
|
@@ -5144,6 +5176,10 @@ export interface ProductDto {
|
|
|
5144
5176
|
* The URL to the product image.
|
|
5145
5177
|
*/
|
|
5146
5178
|
image_url?: string | null;
|
|
5179
|
+
/**
|
|
5180
|
+
* The product's images in display order. The first image is the primary image.
|
|
5181
|
+
*/
|
|
5182
|
+
images: Array<ProductImageDto>;
|
|
5147
5183
|
/**
|
|
5148
5184
|
* The unique slug for the product.
|
|
5149
5185
|
*/
|
|
@@ -5301,6 +5337,17 @@ export interface ProductGameServerDto {
|
|
|
5301
5337
|
*/
|
|
5302
5338
|
enabled: boolean;
|
|
5303
5339
|
}
|
|
5340
|
+
/**
|
|
5341
|
+
* Represents one of a product's images.
|
|
5342
|
+
*/
|
|
5343
|
+
export interface ProductImageDto {
|
|
5344
|
+
media_asset_id: FlakeId;
|
|
5345
|
+
/**
|
|
5346
|
+
* The public URL the image is served from.
|
|
5347
|
+
*/
|
|
5348
|
+
url: string;
|
|
5349
|
+
type: MediaAssetTypeDto;
|
|
5350
|
+
}
|
|
5304
5351
|
export interface ProductPayoutSplitDto {
|
|
5305
5352
|
user_id: FlakeId;
|
|
5306
5353
|
/**
|
|
@@ -6044,6 +6091,7 @@ export interface SearchDashboardResponseDto {
|
|
|
6044
6091
|
webhooks: Array<WebhookResult>;
|
|
6045
6092
|
email_templates: Array<EmailTemplateResult>;
|
|
6046
6093
|
email_deliveries: Array<EmailDeliveryResult>;
|
|
6094
|
+
webhook_deliveries: Array<WebhookDeliveryResult>;
|
|
6047
6095
|
facets: {
|
|
6048
6096
|
/**
|
|
6049
6097
|
* @format int64
|
|
@@ -6137,6 +6185,10 @@ export interface SearchDashboardResponseDto {
|
|
|
6137
6185
|
* @format int64
|
|
6138
6186
|
*/
|
|
6139
6187
|
email_deliveries?: number;
|
|
6188
|
+
/**
|
|
6189
|
+
* @format int64
|
|
6190
|
+
*/
|
|
6191
|
+
webhook_deliveries?: number;
|
|
6140
6192
|
};
|
|
6141
6193
|
}
|
|
6142
6194
|
export interface SetDiscordActionDto {
|
|
@@ -6390,6 +6442,8 @@ export interface StoreDto {
|
|
|
6390
6442
|
* URL of the store's square/icon logo image.
|
|
6391
6443
|
*/
|
|
6392
6444
|
logo_square_url?: string | null;
|
|
6445
|
+
logo_media_asset_id?: FlakeId;
|
|
6446
|
+
logo_square_media_asset_id?: FlakeId;
|
|
6393
6447
|
/**
|
|
6394
6448
|
* Username prefix used to identify Minecraft Bedrock players (e.g. ".").
|
|
6395
6449
|
*/
|
|
@@ -8141,6 +8195,7 @@ export interface TagDto {
|
|
|
8141
8195
|
* The Image URL associated with the tag.
|
|
8142
8196
|
*/
|
|
8143
8197
|
image_url?: string | null;
|
|
8198
|
+
media_asset_id?: FlakeId;
|
|
8144
8199
|
/**
|
|
8145
8200
|
* Indicates whether this tag is enabled.
|
|
8146
8201
|
*/
|
|
@@ -8677,6 +8732,7 @@ export interface UpdateCheckoutStyleDto {
|
|
|
8677
8732
|
* default.
|
|
8678
8733
|
*/
|
|
8679
8734
|
color_outline?: string;
|
|
8735
|
+
background_media_asset_id?: FlakeId;
|
|
8680
8736
|
}
|
|
8681
8737
|
export interface UpdateCouponDto {
|
|
8682
8738
|
/**
|
|
@@ -8772,8 +8828,8 @@ export interface UpdateCouponDto {
|
|
|
8772
8828
|
}
|
|
8773
8829
|
export interface UpdateEmailBrandingDto {
|
|
8774
8830
|
color?: string;
|
|
8775
|
-
|
|
8776
|
-
|
|
8831
|
+
header_image_light_media_asset_id?: FlakeId;
|
|
8832
|
+
header_image_dark_media_asset_id?: FlakeId;
|
|
8777
8833
|
}
|
|
8778
8834
|
export interface UpdateEmailTemplateDto {
|
|
8779
8835
|
name?: string;
|
|
@@ -8974,6 +9030,8 @@ export interface UpdateStoreDto {
|
|
|
8974
9030
|
* When set to true, the store is processing real transactions in live mode.
|
|
8975
9031
|
*/
|
|
8976
9032
|
live_mode?: boolean;
|
|
9033
|
+
logo_media_asset_id?: FlakeId;
|
|
9034
|
+
logo_square_media_asset_id?: FlakeId;
|
|
8977
9035
|
/**
|
|
8978
9036
|
* Username prefix used to identify Minecraft Bedrock players (e.g. ".").
|
|
8979
9037
|
*/
|
|
@@ -9342,6 +9400,10 @@ export interface UpsertProductRequestDto {
|
|
|
9342
9400
|
* The IDs of associated custom variables.
|
|
9343
9401
|
*/
|
|
9344
9402
|
custom_variable_ids?: Array<FlakeId> | null;
|
|
9403
|
+
/**
|
|
9404
|
+
* The IDs of the media assets to show as the product's images, in display order.
|
|
9405
|
+
*/
|
|
9406
|
+
media_asset_ids?: Array<FlakeId> | null;
|
|
9345
9407
|
/**
|
|
9346
9408
|
* Indicates if applying gift cards should be disabled on the product.
|
|
9347
9409
|
*/
|
|
@@ -9430,6 +9492,7 @@ export interface UpsertTagRequestDto {
|
|
|
9430
9492
|
slug?: string | null;
|
|
9431
9493
|
description?: string | null;
|
|
9432
9494
|
enabled?: boolean | null;
|
|
9495
|
+
media_asset_id?: FlakeId;
|
|
9433
9496
|
}
|
|
9434
9497
|
/**
|
|
9435
9498
|
* A validation error.
|
|
@@ -9452,6 +9515,11 @@ export interface ValidationError {
|
|
|
9452
9515
|
*/
|
|
9453
9516
|
validation: string;
|
|
9454
9517
|
}
|
|
9518
|
+
export interface WebhookDeliveryResult {
|
|
9519
|
+
id: FlakeId;
|
|
9520
|
+
store_id?: FlakeId;
|
|
9521
|
+
webhook_delivery?: QueuedWebhookDto;
|
|
9522
|
+
}
|
|
9455
9523
|
/**
|
|
9456
9524
|
* Specifies how a Discord webhook renders its message.
|
|
9457
9525
|
* - `Invalid`: No format specified. This value is typically used as a default or uninitialized state.
|