-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Trade Name to Organizations Listing Page (#153)
- Loading branch information
Showing
11 changed files
with
132 additions
and
17 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import type { EventContext } from '@vtex/api' | ||
|
||
import type { Clients } from '../clients' | ||
|
||
export async function appAllEvents(ctx: EventContext<Clients>) { | ||
const { | ||
vtex: { logger }, | ||
body, | ||
} = ctx | ||
|
||
logger.debug({ | ||
message: '[B2B Organizations GraphQL] Received appEvent', | ||
body, | ||
}) | ||
} |
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,23 @@ | ||
import type { EventContext } from '@vtex/api' | ||
|
||
import type { Clients } from '../clients' | ||
import checkConfig from '../resolvers/config' | ||
|
||
export async function appDependenciesUpdatedEvent(ctx: EventContext<Clients>) { | ||
const { | ||
vtex: { logger, workspace }, | ||
body, | ||
} = ctx | ||
|
||
logger.debug({ | ||
message: '[B2B Organizations GraphQL] Received appDependenciesUpdatedEvent', | ||
body, | ||
}) | ||
|
||
// As a first iteration, we'll only send the workspace installed apps from master. | ||
if (workspace !== 'master') { | ||
return | ||
} | ||
|
||
checkConfig(ctx) | ||
} |
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,22 @@ | ||
import type { EventContext } from '@vtex/api' | ||
|
||
import type { Clients } from '../clients' | ||
import checkConfig from '../resolvers/config' | ||
|
||
export async function kubeRouterAuditEvent(ctx: EventContext<Clients>) { | ||
const { | ||
vtex: { logger }, | ||
body: { operation }, | ||
} = ctx | ||
|
||
logger.debug({ | ||
message: '[B2B Organizations GraphQL] Received kubeRouterAuditEvent', | ||
body: ctx.body, | ||
}) | ||
|
||
// As first iteration, we'll only send the workspace installed apps from master. | ||
if (operation === 'promote') { | ||
// Update schemas. | ||
checkConfig(ctx) | ||
} | ||
} |
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
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