add store/sku/entitlement schemas/enums

This commit is contained in:
Puyodead1 committed 2025-12-26 00:33:35 -05:00
1 parent 724ebe1792
commit f1ef4f7824
52 files changed
+2441 -12

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
import { BitField } from "./BitField";
export class EntitlementGiftCodeFlags extends BitField {
static FLAGS = {
PAYMENT_SOURCE_REQUIRED: BigInt(1) << BigInt(0),
EXISTING_SUBSCRIPTION_DISALLOWED: BigInt(1) << BigInt(1),
NOT_SELF_REDEEMABLE: BigInt(1) << BigInt(2),
PROMOTION: BigInt(1) << BigInt(3),
};
}
+18
View File
@@ -0,0 +1,18 @@
import { BitField } from "./BitField";
export class SKUFlags extends BitField {
static FLAGS = {
PREMIUM_PURCHASE: BigInt(1) << BigInt(0),
HAS_FREE_PREMIUM_CONTENT: BigInt(1) << BigInt(1),
AVAILABLE: BigInt(1) << BigInt(2),
PREMIUM_AND_DISTRIBUTION: BigInt(1) << BigInt(3),
STICKER: BigInt(1) << BigInt(4),
GUILD_ROLE: BigInt(1) << BigInt(5),
AVAILABLE_FOR_SUBSCRIPTION_GIFTING: BigInt(1) << BigInt(6),
APPLICATION_GUILD_SUBSCRIPTION: BigInt(1) << BigInt(7),
APPLICATION_USER_SUBSCRIPTION: BigInt(1) << BigInt(8),
CREATOR_MONETIZATION: BigInt(1) << BigInt(9),
GUILD_PRODUCT: BigInt(1) << BigInt(10),
AVAILABLE_FOR_APPLICATION_GIFTING: BigInt(1) << BigInt(11),
};
}
+2
View File
@@ -54,3 +54,5 @@ export * from "../../schemas/HelperTypes";
export * from "./extensions";
export * from "./Random";
export * from "./Url";
export * from "./SKUFlags";
export * from "./EntitlementGiftCodeFlags";