-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix up/clean up computing model names
- Loading branch information
Showing
5 changed files
with
29 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
import { AsyncBelongsTo, belongsTo } from '@ember-data/model'; | ||
|
||
import ExternalComputingService from './external-computing-service'; | ||
import ExternalComputingServiceModel from './external-computing-service'; | ||
import AuthorizedAccountModel from './authorized-account'; | ||
import UserReferenceModel from './user-reference'; | ||
|
||
export default class AuthorizedComputingAccount extends AuthorizedAccountModel { | ||
export default class AuthorizedComputingAccountModel extends AuthorizedAccountModel { | ||
@belongsTo('user-reference', { inverse: 'authorizedComputingAccounts' }) | ||
accountOwner!: AsyncBelongsTo<UserReferenceModel> & UserReferenceModel; | ||
|
||
@belongsTo('external-computing-service') | ||
computingService!: AsyncBelongsTo<ExternalComputingService> & ExternalComputingService; | ||
externalComputingService!: AsyncBelongsTo<ExternalComputingServiceModel> & ExternalComputingServiceModel; | ||
} | ||
|
||
declare module 'ember-data/types/registries/model' { | ||
export default interface ModelRegistry { | ||
'authorized-computing-account': AuthorizedComputingAccount; | ||
'authorized-computing-account': AuthorizedComputingAccountModel; | ||
} // eslint-disable-line semi | ||
} |
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