-
Notifications
You must be signed in to change notification settings - Fork 580
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8748 from ever-co/fix/package-constants
[Refactor] Package Utils/Constants
- Loading branch information
Showing
58 changed files
with
360 additions
and
342 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { SetMetadata } from '@nestjs/common'; | ||
import { FEATURE_METADATA } from '@gauzy/constants'; | ||
import { FeatureEnum } from '@gauzy/contracts'; | ||
import { FEATURE_METADATA } from './../constants'; | ||
|
||
export const FeatureFlag = (feature: FeatureEnum) => SetMetadata(FEATURE_METADATA, feature); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
export * from './lib/task'; | ||
export * from './lib/ai'; | ||
export * from './lib/api'; | ||
export * from './lib/code'; | ||
export * from './lib/github'; | ||
export * from './lib/reflect-metadata'; | ||
export * from './lib/organization'; | ||
export * from './lib/task'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/** | ||
* Injection token for Gauzy AI configuration. | ||
*/ | ||
export const GAUZY_AI_CONFIG_TOKEN = 'GAUZY_AI_CONFIG_TOKEN'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** | ||
* API-related default constants used across all packages. | ||
*/ | ||
export const DEFAULT_API_PORT = 3000; | ||
export const DEFAULT_API_HOST = '127.0.0.1'; | ||
export const DEFAULT_API_BASE_URL = `http://${DEFAULT_API_HOST}:${DEFAULT_API_PORT}`; | ||
export const DEFAULT_GRAPHQL_API_PATH = 'graphql'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/** | ||
* Represents the default length of generated alphanumeric codes. | ||
*/ | ||
export const ALPHA_NUMERIC_CODE_LENGTH = 6; | ||
|
||
/** | ||
* Represents a demo or magic code that allows authentication without a password. | ||
* Typically used for demo environments or special login scenarios. | ||
*/ | ||
export const DEMO_PASSWORD_LESS_MAGIC_CODE = '123456'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/** | ||
* Sync tag constants used to categorize synchronization sources. | ||
*/ | ||
export const SyncTags = { | ||
GITHUB: 'GitHub', | ||
GAUZY: 'Gauzy' | ||
} as const; | ||
|
||
/** | ||
* Type definition for valid sync tag values. | ||
*/ | ||
export type SyncTag = (typeof SyncTags)[keyof typeof SyncTags]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** | ||
* Metadata keys used for decorators and security features. | ||
*/ | ||
export const PUBLIC_METHOD_METADATA = '__public:route__'; | ||
export const ROLES_METADATA = '__roles__'; | ||
export const PERMISSIONS_METADATA = '__permissions__'; | ||
export const FEATURE_METADATA = '__feature__'; |
Oops, something went wrong.