mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-22 21:53:46 +00:00
add store/sku/entitlement schemas/enums
This commit is contained in:
52 files changed
+2441
-12
No files matched your search
@@ -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),
|
||||
};
|
||||
}
|
||||
@@ -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),
|
||||
};
|
||||
}
|
||||
@@ -54,3 +54,5 @@ export * from "../../schemas/HelperTypes";
|
||||
export * from "./extensions";
|
||||
export * from "./Random";
|
||||
export * from "./Url";
|
||||
export * from "./SKUFlags";
|
||||
export * from "./EntitlementGiftCodeFlags";
|
||||
Reference in new issue
Block a user