This repository has been archived by the owner on Aug 21, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes for project permission type service to use schema, knex & fea…
…thers 5 (#8367) * Changes for project permission type service * Made various modifications
- Loading branch information
1 parent
740fb09
commit 9b47760
Showing
11 changed files
with
163 additions
and
248 deletions.
There are no files selected for viewing
63 changes: 63 additions & 0 deletions
63
packages/engine/src/schemas/projects/project-permission-type.schema.ts
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,63 @@ | ||
/* | ||
CPAL-1.0 License | ||
The contents of this file are subject to the Common Public Attribution License | ||
Version 1.0. (the "License"); you may not use this file except in compliance | ||
with the License. You may obtain a copy of the License at | ||
https://github.com/EtherealEngine/etherealengine/blob/dev/LICENSE. | ||
The License is based on the Mozilla Public License Version 1.1, but Sections 14 | ||
and 15 have been added to cover use of software over a computer network and | ||
provide for limited attribution for the Original Developer. In addition, | ||
Exhibit A has been modified to be consistent with Exhibit B. | ||
Software distributed under the License is distributed on an "AS IS" basis, | ||
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the | ||
specific language governing rights and limitations under the License. | ||
The Original Code is Ethereal Engine. | ||
The Original Developer is the Initial Developer. The Initial Developer of the | ||
Original Code is the Ethereal Engine team. | ||
All portions of the code written by the Ethereal Engine team are Copyright © 2021-2023 | ||
Ethereal Engine. All Rights Reserved. | ||
*/ | ||
|
||
// For more information about this file see https://dove.feathersjs.com/guides/cli/service.schemas.html | ||
import type { Static } from '@feathersjs/typebox' | ||
import { querySyntax, Type } from '@feathersjs/typebox' | ||
|
||
export const projectPermissionTypePath = 'project-permission-type' | ||
|
||
// Main data model schema | ||
export const projectPermissionTypeSchema = Type.Object( | ||
{ | ||
type: Type.String() | ||
}, | ||
{ $id: 'ProjectPermissionType', additionalProperties: false } | ||
) | ||
export type ProjectPermissionTypeType = Static<typeof projectPermissionTypeSchema> | ||
|
||
// Schema for creating new entries | ||
export const projectPermissionTypeDataSchema = Type.Pick(projectPermissionTypeSchema, ['type'], { | ||
$id: 'ProjectPermissionTypeData' | ||
}) | ||
export type ProjectPermissionTypeData = Static<typeof projectPermissionTypeDataSchema> | ||
|
||
// Schema for updating existing entries | ||
export const projectPermissionTypePatchSchema = Type.Partial(projectPermissionTypeSchema, { | ||
$id: 'ProjectPermissionTypePatch' | ||
}) | ||
export type ProjectPermissionTypePatch = Static<typeof projectPermissionTypePatchSchema> | ||
|
||
// Schema for allowed query properties | ||
export const projectPermissionTypeQueryProperties = Type.Pick(projectPermissionTypeSchema, ['type']) | ||
export const projectPermissionTypeQuerySchema = Type.Intersect( | ||
[ | ||
querySyntax(projectPermissionTypeQueryProperties), | ||
// Add additional query properties here | ||
Type.Object({}, { additionalProperties: false }) | ||
], | ||
{ additionalProperties: false } | ||
) | ||
export type ProjectPermissionTypeQuery = Static<typeof projectPermissionTypeQuerySchema> |
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
42 changes: 0 additions & 42 deletions
42
packages/server-core/src/projects/project-permission-type/project-permission-type.class.ts
This file was deleted.
Oops, something went wrong.
48 changes: 0 additions & 48 deletions
48
packages/server-core/src/projects/project-permission-type/project-permission-type.docs.ts
This file was deleted.
Oops, something went wrong.
61 changes: 0 additions & 61 deletions
61
packages/server-core/src/projects/project-permission-type/project-permission-type.hooks.ts
This file was deleted.
Oops, something went wrong.
58 changes: 0 additions & 58 deletions
58
packages/server-core/src/projects/project-permission-type/project-permission-type.model.ts
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
Oops, something went wrong.