2021-09-24 13:55:00 +02:00
|
|
|
export const DEFAULT_ENV = 'default';
|
2022-01-13 11:14:17 +01:00
|
|
|
|
2022-06-09 16:56:13 +02:00
|
|
|
export const ALL_PROJECTS = '*';
|
|
|
|
export const ALL_ENVS = '*';
|
|
|
|
|
2022-01-13 11:14:17 +01:00
|
|
|
export const ROOT_PERMISSION_TYPE = 'root';
|
|
|
|
export const ENVIRONMENT_PERMISSION_TYPE = 'environment';
|
|
|
|
export const PROJECT_PERMISSION_TYPE = 'project';
|
|
|
|
|
|
|
|
export const CUSTOM_ROLE_TYPE = 'custom';
|
2022-03-04 17:29:42 +01:00
|
|
|
|
|
|
|
/* CONTEXT FIELD OPERATORS */
|
|
|
|
|
|
|
|
export const NOT_IN = 'NOT_IN';
|
|
|
|
export const IN = 'IN';
|
|
|
|
export const STR_ENDS_WITH = 'STR_ENDS_WITH';
|
|
|
|
export const STR_STARTS_WITH = 'STR_STARTS_WITH';
|
|
|
|
export const STR_CONTAINS = 'STR_CONTAINS';
|
|
|
|
export const NUM_EQ = 'NUM_EQ';
|
|
|
|
export const NUM_GT = 'NUM_GT';
|
|
|
|
export const NUM_GTE = 'NUM_GTE';
|
|
|
|
export const NUM_LT = 'NUM_LT';
|
|
|
|
export const NUM_LTE = 'NUM_LTE';
|
|
|
|
export const DATE_AFTER = 'DATE_AFTER';
|
|
|
|
export const DATE_BEFORE = 'DATE_BEFORE';
|
|
|
|
export const SEMVER_EQ = 'SEMVER_EQ';
|
|
|
|
export const SEMVER_GT = 'SEMVER_GT';
|
|
|
|
export const SEMVER_LT = 'SEMVER_LT';
|
|
|
|
|
|
|
|
export const ALL_OPERATORS = [
|
|
|
|
NOT_IN,
|
|
|
|
IN,
|
|
|
|
STR_ENDS_WITH,
|
|
|
|
STR_STARTS_WITH,
|
|
|
|
STR_CONTAINS,
|
|
|
|
NUM_EQ,
|
|
|
|
NUM_GT,
|
|
|
|
NUM_GTE,
|
|
|
|
NUM_LT,
|
|
|
|
NUM_LTE,
|
|
|
|
DATE_AFTER,
|
|
|
|
DATE_BEFORE,
|
|
|
|
SEMVER_EQ,
|
|
|
|
SEMVER_GT,
|
|
|
|
SEMVER_LT,
|
Complete open api schemas for project features controller (#1563)
* Completed OpenAPI Schemas for ProjectFeatures Controller
Completed OpenAPI Schemas for Feature Controller (tags)
* Completed OpenAPI Schemas for ProjectFeatures Controller
Completed OpenAPI Schemas for Feature Controller (tags)
* bug fix
* bug fix
* fix merge conflicts, some refactoring
* fix merge conflicts, some refactoring
* fix merge conflicts, some refactoring
* added emptyResponse, patch feature operation schemas and request
* added emptyResponse, patch feature operation schemas and request
* patch strategy
* patch strategy
* update strategy
* update strategy
* fix pr comment
* fix pr comments
* improvements
* added operationId to schema for better generation
* fix pr comment
* fix pr comment
* fix pr comment
* improvements to generated and dynamic types
* improvements to generated and dynamic types
* improvements to generated and dynamic types
* Update response types to use inferred types
* Update addTag response status to 201
* refactor: move schema ref destructuring into createSchemaObject
* made serialize date handle deep objects
* made serialize date handle deep objects
* add `name` to IFeatureStrategy nad fix tests
* fix pr comments
* fix pr comments
* Add types to IAuthRequest
* Sync StrategySchema for FE and BE - into the rabbit hole
* Sync model with OAS spec
* Completed OpenAPI Schemas for ProjectFeatures Controller
Completed OpenAPI Schemas for Feature Controller (tags)
* Completed OpenAPI Schemas for ProjectFeatures Controller
Completed OpenAPI Schemas for Feature Controller (tags)
* bug fix
* bug fix
* fix merge conflicts, some refactoring
* fix merge conflicts, some refactoring
* fix merge conflicts, some refactoring
* added emptyResponse, patch feature operation schemas and request
* added emptyResponse, patch feature operation schemas and request
* patch strategy
* patch strategy
* update strategy
* update strategy
* fix pr comment
* fix pr comments
* improvements
* added operationId to schema for better generation
* fix pr comment
* fix pr comment
* fix pr comment
* improvements to generated and dynamic types
* improvements to generated and dynamic types
* improvements to generated and dynamic types
* Update response types to use inferred types
* Update addTag response status to 201
* refactor: move schema ref destructuring into createSchemaObject
* made serialize date handle deep objects
* made serialize date handle deep objects
* add `name` to IFeatureStrategy nad fix tests
* fix pr comments
* fix pr comments
* Add types to IAuthRequest
* Sync StrategySchema for FE and BE - into the rabbit hole
* Sync model with OAS spec
* Completed OpenAPI Schemas for ProjectFeatures Controller
Completed OpenAPI Schemas for Feature Controller (tags)
* Completed OpenAPI Schemas for ProjectFeatures Controller
Completed OpenAPI Schemas for Feature Controller (tags)
* bug fix
* bug fix
* fix merge conflicts, some refactoring
* fix merge conflicts, some refactoring
* fix merge conflicts, some refactoring
* added emptyResponse, patch feature operation schemas and request
* added emptyResponse, patch feature operation schemas and request
* patch strategy
* patch strategy
* update strategy
* update strategy
* fix pr comment
* fix pr comments
* improvements
* added operationId to schema for better generation
* fix pr comment
* fix pr comment
* fix pr comment
* improvements to generated and dynamic types
* improvements to generated and dynamic types
* improvements to generated and dynamic types
* Update response types to use inferred types
* Update addTag response status to 201
* refactor: move schema ref destructuring into createSchemaObject
* made serialize date handle deep objects
* made serialize date handle deep objects
* add `name` to IFeatureStrategy nad fix tests
* fix pr comments
* fix pr comments
* Add types to IAuthRequest
* Sync StrategySchema for FE and BE - into the rabbit hole
* Sync model with OAS spec
* Completed OpenAPI Schemas for ProjectFeatures Controller
Completed OpenAPI Schemas for Feature Controller (tags)
* Completed OpenAPI Schemas for ProjectFeatures Controller
Completed OpenAPI Schemas for Feature Controller (tags)
* bug fix
* bug fix
* fix merge conflicts, some refactoring
* fix merge conflicts, some refactoring
* fix merge conflicts, some refactoring
* added emptyResponse, patch feature operation schemas and request
* added emptyResponse, patch feature operation schemas and request
* patch strategy
* patch strategy
* update strategy
* update strategy
* fix pr comment
* fix pr comments
* improvements
* added operationId to schema for better generation
* fix pr comment
* fix pr comment
* fix pr comment
* improvements to generated and dynamic types
* improvements to generated and dynamic types
* improvements to generated and dynamic types
* Update response types to use inferred types
* Update addTag response status to 201
* refactor: move schema ref destructuring into createSchemaObject
* made serialize date handle deep objects
* made serialize date handle deep objects
* add `name` to IFeatureStrategy nad fix tests
* fix pr comments
* fix pr comments
* Add types to IAuthRequest
* Sync StrategySchema for FE and BE - into the rabbit hole
* Sync model with OAS spec
* revert
* revert
* revert
* revert
* revert
* mapper
* revert
* revert
* revert
* remove serialize-dates.ts
* remove serialize-dates.ts
* remove serialize-dates.ts
* remove serialize-dates.ts
* remove serialize-dates.ts
* revert
* revert
* add mappers
* add mappers
* fix pr comments
* ignore report.json
* ignore report.json
* Route permission required
Co-authored-by: olav <mail@olav.io>
2022-05-18 15:17:09 +02:00
|
|
|
] as const;
|
2022-03-04 17:29:42 +01:00
|
|
|
|
|
|
|
export const STRING_OPERATORS = [
|
|
|
|
STR_ENDS_WITH,
|
|
|
|
STR_STARTS_WITH,
|
|
|
|
STR_CONTAINS,
|
|
|
|
IN,
|
|
|
|
NOT_IN,
|
|
|
|
];
|
|
|
|
export const NUM_OPERATORS = [NUM_EQ, NUM_GT, NUM_GTE, NUM_LT, NUM_LTE];
|
|
|
|
export const DATE_OPERATORS = [DATE_AFTER, DATE_BEFORE];
|
|
|
|
export const SEMVER_OPERATORS = [SEMVER_EQ, SEMVER_GT, SEMVER_LT];
|
2022-11-02 09:11:35 +01:00
|
|
|
|
|
|
|
export const PAT_LIMIT = 10;
|