Skip to content

Commit

Permalink
checkpoint: removed unused entity-metadata.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
dereekb committed Jun 5, 2022
1 parent ea7b8ec commit 52a1ec8
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 30 deletions.
10 changes: 0 additions & 10 deletions apps/demo/src/app/state/entity-metadata.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ export type GuestbookRoles = 'admin' | GrantedReadRole;

export type GuestbookWithId = DocumentDataWithId<Guestbook>;

export type GuestbookRef = DocumentReferenceRef<Guestbook>;

export class GuestbookDocument extends AbstractFirestoreDocument<Guestbook, GuestbookDocument> {
get modelIdentity() {
return guestbookIdentity;
Expand Down Expand Up @@ -98,8 +96,6 @@ export interface GuestbookEntry extends UserRelatedById {

export type GuestbookEntryRoles = 'owner' | GrantedReadRole;

export type GuestbookEntryRef = DocumentReferenceRef<GuestbookEntry>;

export class GuestbookEntryDocument extends AbstractFirestoreDocumentWithParent<Guestbook, GuestbookEntry, GuestbookEntryDocument> {
get modelIdentity() {
return guestbookEntryIdentity;
Expand Down
4 changes: 0 additions & 4 deletions components/demo-firebase/src/lib/models/profile/profile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ export interface Profile extends UserRelatedById {

export type ProfileRoles = 'owner' | GrantedReadRole;

export type ProfileRef = DocumentReferenceRef<Profile>;

export class ProfileDocument extends AbstractFirestoreDocument<Profile, ProfileDocument> {
get modelIdentity() {
return profileIdentity;
Expand Down Expand Up @@ -75,8 +73,6 @@ export interface ProfilePrivateData {
createdAt: Date;
}

export type ProfilePrivateDataRef = DocumentReferenceRef<ProfilePrivateData>;

export type ProfilePrivateDataRoles = 'owner' | GrantedReadRole;

export class ProfilePrivateDataDocument extends AbstractFirestoreDocument<ProfilePrivateData, ProfilePrivateDataDocument> {
Expand Down
1 change: 1 addition & 0 deletions packages/firebase-server/src/lib/nest/model/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export * from './model.param';
export * from './permission.error';
export * from './create.model.function';
export * from './update.model.function';
Expand Down
12 changes: 12 additions & 0 deletions packages/firebase-server/src/lib/nest/model/model.param.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { FirestoreModelKey, FirestoreModelKeyRef } from '@dereekb/firebase';
import { Expose } from 'class-transformer';
import { IsString } from 'class-validator';

/**
* Simple annotated params that
*/
export class TargetModelParams implements FirestoreModelKeyRef {
@Expose()
@IsString()
key!: FirestoreModelKey;
}
3 changes: 1 addition & 2 deletions setup/setup-project.sh
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ git commit --no-verify -m "checkpoint: added firebase configuration"

# Install npm dependencies
npm install @dereekb/dbx-analytics$DBX_COMPONENTS_VERSION @dereekb/dbx-web$DBX_COMPONENTS_VERSION @dereekb/dbx-form$DBX_COMPONENTS_VERSION @dereekb/firebase$DBX_COMPONENTS_VERSION @dereekb/firebase-server$DBX_COMPONENTS_VERSION @dereekb/dbx-firebase$DBX_COMPONENTS_VERSION --force # TODO: Remove force once possible.
npm install -D firebase-tools @ngrx/store-devtools @firebase/rules-unit-testing firebase-functions-test@2.0.2 envfile
npm install -D firebase-tools @ngrx/store-devtools @firebase/rules-unit-testing firebase-functions-test@2.0.2 envfile env-cmd

git add --all
git commit --no-verify -m "checkpoint: added @dereekb dependencies"
Expand Down Expand Up @@ -533,7 +533,6 @@ download_angular_ts_file "src/app/container/layout.component.ts"

mkdir $ANGULAR_APP_FOLDER/src/app/state
download_angular_ts_file "src/app/state/app.state.ts"
download_angular_ts_file "src/app/state/entity-metadata.ts"

mkdir $ANGULAR_APP_FOLDER/src/app/modules
mkdir $ANGULAR_APP_FOLDER/src/app/modules/app
Expand Down
10 changes: 0 additions & 10 deletions setup/templates/apps/app/src/app/state/entity-metadata.ts

This file was deleted.

0 comments on commit 52a1ec8

Please sign in to comment.