Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import {static} from "~/node_modules/@types/express";
- export namespace Config {
- export class ItemOrderType {
- public static get All() : string[] {
- return [
- 'Case', // 1
- 'Contract', // 2
- 'Upgrader', // 3
- 'Exchange', // 4
- 'Migrate', // 5
- 'Giveaway', // 6
- 'Shop' // 7
- ]
- }
- }
- export class ItemStatus {
- public static get All() : string[] {
- return [
- 'Waiting', // 0
- 'Sold', // 1
- 'Send', // 2
- 'Queue', // 3
- 'Error', // 4
- 'Invalid', // 5
- 'Accepted', // 6
- 'Contract', // 7
- 'Exchange', // 8
- 'Upgrader' // 9
- ]
- }
- public static get Active() : string[] {
- return Config.ItemStatus.All.filter((k, i) => [0,2,3,4,5].indexOf(i) !== -1)
- }
- public static get Finished() : string[] {
- return Config.ItemStatus.All.filter((k, i) => [1,6,7,8,9].indexOf(i) !== -1)
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement