Просмотр исходного кода

Update @joystream/types import paths

Leszek Wiesner 4 лет назад
Родитель
Сommit
37266eb57f

+ 5 - 5
cli/src/Api.ts

@@ -26,7 +26,7 @@ import {
     RoleStakeProfile,
     Opening as WGOpening,
     Application as WGApplication
-} from '@joystream/types/lib/working-group';
+} from '@joystream/types/working-group';
 import {
     Opening,
     Application,
@@ -41,10 +41,10 @@ import {
     ApplicationStageKeys,
     ApplicationId,
     OpeningId
-} from '@joystream/types/lib/hiring';
-import { MemberId, Profile } from '@joystream/types/lib/members';
-import { RewardRelationship, RewardRelationshipId } from '@joystream/types/lib/recurring-rewards';
-import { Stake, StakeId } from '@joystream/types/lib/stake';
+} from '@joystream/types/hiring';
+import { MemberId, Profile } from '@joystream/types/members';
+import { RewardRelationship, RewardRelationshipId } from '@joystream/types/recurring-rewards';
+import { Stake, StakeId } from '@joystream/types/stake';
 import { LinkageResult } from '@polkadot/types/codec/Linkage';
 import { Moment } from '@polkadot/types/interfaces';
 

+ 5 - 5
cli/src/Types.ts

@@ -1,5 +1,5 @@
 import BN from 'bn.js';
-import { ElectionStage, Seat } from '@joystream/types/lib/council';
+import { ElectionStage, Seat } from '@joystream/types/council';
 import { Option, Text } from '@polkadot/types';
 import { Constructor } from '@polkadot/types/types';
 import { Struct, Vec } from '@polkadot/types/codec';
@@ -7,8 +7,8 @@ import { u32 } from '@polkadot/types/primitive';
 import { BlockNumber, Balance, AccountId } from '@polkadot/types/interfaces';
 import { DerivedBalances } from '@polkadot/api-derive/types';
 import { KeyringPair } from '@polkadot/keyring/types';
-import { WorkerId } from '@joystream/types/lib/working-group';
-import { Profile, MemberId } from '@joystream/types/lib/members';
+import { WorkerId } from '@joystream/types/working-group';
+import { Profile, MemberId } from '@joystream/types/members';
 import {
     GenericJoyStreamRoleSchema,
     JobSpecifics,
@@ -21,9 +21,9 @@ import {
     HiringProcess,
     AdditionalRolehiringProcessDetails,
     CreatorDetails
-} from '@joystream/types/lib/hiring/schemas/role.schema.typings';
+} from '@joystream/types/hiring/schemas/role.schema.typings';
 import ajv from 'ajv';
-import { Opening, StakingPolicy, ApplicationStageKeys } from '@joystream/types/lib/hiring';
+import { Opening, StakingPolicy, ApplicationStageKeys } from '@joystream/types/hiring';
 
 // KeyringPair type extended with mandatory "meta.name"
 // It's used for accounts/keys management within CLI.

+ 1 - 1
cli/src/base/WorkingGroupsCommandBase.ts

@@ -9,7 +9,7 @@ import { ApiMethodInputArg } from './ApiCommandBase';
 import fs from 'fs';
 import path from 'path';
 import _ from 'lodash';
-import { ApplicationStageKeys } from '@joystream/types/lib/hiring';
+import { ApplicationStageKeys } from '@joystream/types/hiring';
 
 const DEFAULT_GROUP = WorkingGroups.StorageProviders;
 const DRAFTS_FOLDER = '/opening-drafts';

+ 1 - 1
cli/src/commands/working-groups/createOpening.ts

@@ -3,7 +3,7 @@ import { HRTStruct } from '../../Types';
 import chalk from 'chalk';
 import { flags } from '@oclif/command';
 import { ApiMethodInputArg } from '../../base/ApiCommandBase';
-import { schemaValidator } from '@joystream/types/lib/hiring';
+import { schemaValidator } from '@joystream/types/hiring';
 import { apiModuleByGroup } from '../../Api';
 
 export default class WorkingGroupsCreateOpening extends WorkingGroupsCommandBase {

+ 3 - 3
cli/src/commands/working-groups/fillOpening.ts

@@ -3,9 +3,9 @@ import _ from 'lodash';
 import { OpeningStatus } from '../../Types';
 import ExitCodes from '../../ExitCodes';
 import { apiModuleByGroup } from '../../Api';
-import { OpeningId } from '@joystream/types/lib/hiring';
-import { ApplicationIdSet } from '@joystream/types/lib/working-group';
-import { RewardPolicy } from '@joystream/types/lib/content-working-group';
+import { OpeningId } from '@joystream/types/hiring';
+import { ApplicationIdSet } from '@joystream/types/working-group';
+import { RewardPolicy } from '@joystream/types/content-working-group';
 import chalk from 'chalk';
 
 export default class WorkingGroupsFillOpening extends WorkingGroupsCommandBase {

+ 1 - 1
cli/src/commands/working-groups/opening.ts

@@ -2,7 +2,7 @@ import WorkingGroupsCommandBase from '../../base/WorkingGroupsCommandBase';
 import { displayTable, displayCollapsedRow, displayHeader } from '../../helpers/display';
 import _ from 'lodash';
 import { OpeningStatus, GroupOpeningStage, GroupOpeningStakes } from '../../Types';
-import { StakingAmountLimitModeKeys, StakingPolicy } from '@joystream/types/lib/hiring';
+import { StakingAmountLimitModeKeys, StakingPolicy } from '@joystream/types/hiring';
 import { formatBalance } from '@polkadot/util';
 import chalk from 'chalk';
 

+ 1 - 1
cli/src/commands/working-groups/startAcceptingApplications.ts

@@ -3,7 +3,7 @@ import _ from 'lodash';
 import { OpeningStatus } from '../../Types';
 import ExitCodes from '../../ExitCodes';
 import { apiModuleByGroup } from '../../Api';
-import { OpeningId } from '@joystream/types/lib/hiring';
+import { OpeningId } from '@joystream/types/hiring';
 import chalk from 'chalk';
 
 export default class WorkingGroupsStartAcceptingApplications extends WorkingGroupsCommandBase {

+ 1 - 1
cli/src/commands/working-groups/startReviewPeriod.ts

@@ -3,7 +3,7 @@ import _ from 'lodash';
 import { OpeningStatus } from '../../Types';
 import ExitCodes from '../../ExitCodes';
 import { apiModuleByGroup } from '../../Api';
-import { OpeningId } from '@joystream/types/lib/hiring';
+import { OpeningId } from '@joystream/types/hiring';
 import chalk from 'chalk';
 
 export default class WorkingGroupsStartReviewPeriod extends WorkingGroupsCommandBase {

+ 1 - 1
cli/src/commands/working-groups/terminateApplication.ts

@@ -2,7 +2,7 @@ import WorkingGroupsCommandBase from '../../base/WorkingGroupsCommandBase';
 import _ from 'lodash';
 import ExitCodes from '../../ExitCodes';
 import { apiModuleByGroup } from '../../Api';
-import { ApplicationStageKeys, ApplicationId } from '@joystream/types/lib/hiring';
+import { ApplicationStageKeys, ApplicationId } from '@joystream/types/hiring';
 import chalk from 'chalk';
 
 export default class WorkingGroupsTerminateApplication extends WorkingGroupsCommandBase {