Skip to content

Commit

Permalink
manual
Browse files Browse the repository at this point in the history
  • Loading branch information
lolopinto committed Oct 11, 2023
1 parent 2e3750f commit 16d99fc
Show file tree
Hide file tree
Showing 10 changed files with 29 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
AccountTransferCreditsInput,
} from "src/ent/generated/account/actions/account_transfer_credits_action_base";
import { Account } from "src/ent/internal";
import AccountUpdateBalanceAction from "./account_update_balance_action";
import { AccountUpdateBalanceAction } from "./account_update_balance_action";

export { AccountTransferCreditsInput };

Expand Down
8 changes: 4 additions & 4 deletions examples/todo-sqlite/src/ent/tests/account.test.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import EditAccountAction from "../account/actions/edit_account_action";
import DeleteAccountAction from "../account/actions/delete_account_action";
import { EditAccountAction } from "../account/actions/edit_account_action";
import { DeleteAccountAction } from "../account/actions/delete_account_action";
import { Account } from "../internal";
import { createAccount } from "../testutils/util";
import { advanceTo } from "jest-date-mock";
import AccountUpdateBalanceAction from "../account/actions/account_update_balance_action";
import AccountTransferCreditsAction from "../account/actions/account_transfer_credits_action";
import { AccountUpdateBalanceAction } from "../account/actions/account_update_balance_action";
import { AccountTransferCreditsAction } from "../account/actions/account_transfer_credits_action";
import { Transaction } from "@snowtop/ent/action";

test("create", async () => {
Expand Down
4 changes: 2 additions & 2 deletions examples/todo-sqlite/src/ent/tests/tag.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createAccount, createTodoForSelf, createTag } from "../testutils/util";
import { AccountToTagsQuery } from "../account/query/account_to_tags_query";
import TodoAddTagAction from "../todo/actions/todo_add_tag_action";
import TodoRemoveTagAction from "../todo/actions/todo_remove_tag_action";
import { TodoAddTagAction } from "../todo/actions/todo_add_tag_action";
import { TodoRemoveTagAction } from "../todo/actions/todo_remove_tag_action";

test("create", async () => {
await createTag("SPORTS");
Expand Down
14 changes: 7 additions & 7 deletions examples/todo-sqlite/src/ent/tests/todo.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import ChangeTodoStatusAction from "src/ent/todo/actions/change_todo_status_action";
import RenameTodoStatusAction from "src/ent/todo/actions/rename_todo_status_action";
import DeleteTodoAction from "src/ent/todo/actions/delete_todo_action";
import { ChangeTodoStatusAction } from "src/ent/todo/actions/change_todo_status_action";
import { RenameTodoStatusAction } from "src/ent/todo/actions/rename_todo_status_action";
import { DeleteTodoAction } from "src/ent/todo/actions/delete_todo_action";
import { Account, Todo } from "src/ent/";
import { AccountTodoStatus, NodeType } from "src/ent/generated/types";
import {
Expand All @@ -12,10 +12,10 @@ import {
} from "../testutils/util";
import { IDViewer, query } from "@snowtop/ent";
import { advanceTo } from "jest-date-mock";
import TodoAddTagAction from "../todo/actions/todo_add_tag_action";
import TodoRemoveTagAction from "../todo/actions/todo_remove_tag_action";
import CreateTodoAction from "../todo/actions/create_todo_action";
import ChangeTodoBountyAction from "../todo/actions/change_todo_bounty_action";
import { TodoAddTagAction } from "../todo/actions/todo_add_tag_action";
import { TodoRemoveTagAction } from "../todo/actions/todo_remove_tag_action";
import { CreateTodoAction } from "../todo/actions/create_todo_action";
import { ChangeTodoBountyAction } from "../todo/actions/change_todo_bounty_action";
import { Transaction } from "@snowtop/ent/action";

test("create for self", async () => {
Expand Down
4 changes: 2 additions & 2 deletions examples/todo-sqlite/src/ent/tests/workspace.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createAccount, createWorkspace } from "../testutils/util";
import { Workspace } from "../workspace";
import DeleteWorkspaceAction from "../workspace/actions/delete_workspace_action";
import EditWorkspaceAction from "../workspace/actions/edit_workspace_action";
import { DeleteWorkspaceAction } from "../workspace/actions/delete_workspace_action";
import { EditWorkspaceAction } from "../workspace/actions/edit_workspace_action";

test("create", async () => {
await createWorkspace();
Expand Down
10 changes: 6 additions & 4 deletions examples/todo-sqlite/src/ent/testutils/util.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
import { LoggedOutViewer, ID, IDViewer, Viewer } from "@snowtop/ent";
import CreateAccountAction, {
import {
CreateAccountAction,
AccountCreateInput,
} from "src/ent/account/actions/create_account_action";
import { parsePhoneNumberFromString } from "libphonenumber-js";
import { validate } from "uuid";
import CreateTodoAction, {
import {
CreateTodoAction,
TodoCreateInput,
} from "src/ent/todo/actions/create_todo_action";
import CreateTagAction from "../tag/actions/create_tag_action";
import { CreateTagAction } from "../tag/actions/create_tag_action";
import { Account } from "src/ent";
import CreateWorkspaceAction from "../workspace/actions/create_workspace_action";
import { CreateWorkspaceAction } from "../workspace/actions/create_workspace_action";
import { randomInt } from "crypto";
import { NodeType } from "../generated/types";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { AlwaysAllowPrivacyPolicy } from "@snowtop/ent";
import { access } from "fs";
import AccountTransferCreditsAction from "src/ent/account/actions/account_transfer_credits_action";
import EditAccountTodoStatusAction from "src/ent/account/actions/edit_account_todo_status_action";
import { AccountTransferCreditsAction } from "src/ent/account/actions/account_transfer_credits_action";
import { EditAccountTodoStatusAction } from "src/ent/account/actions/edit_account_todo_status_action";
import { AccountTodoStatusInput } from "src/ent/generated/account/actions/edit_account_todo_status_action_base";
import {
ChangeTodoStatusActionBase,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import { gqlMutation } from "@snowtop/ent/graphql";
import { Account, AccountToTodosQuery } from "src/ent";
import { BaseAction } from "@snowtop/ent/action/experimental_action";
import { AccountBuilder } from "src/ent/generated/account/actions/account_builder";
import ChangeTodoStatusAction from "src/ent/todo/actions/change_todo_status_action";
import { ChangeTodoStatusAction } from "src/ent/todo/actions/change_todo_status_action";
import { GraphQLBoolean, GraphQLID } from "graphql";
import DeleteTodoAction from "src/ent/todo/actions/delete_todo_action";
import { DeleteTodoAction } from "src/ent/todo/actions/delete_todo_action";

export class TodosResolver {
@gqlMutation({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Account, Todo } from "src/ent";
import { expectQueryFromRoot } from "@snowtop/ent-graphql-tests";
import schema from "src/graphql/generated/schema";
import ChangeTodoStatusAction from "src/ent/todo/actions/change_todo_status_action";
import { ChangeTodoStatusAction } from "src/ent/todo/actions/change_todo_status_action";
import { createAccount, createTodoForSelf } from "src/ent/testutils/util";
import { advanceBy } from "jest-date-mock";
import { DB, loadConfig } from "@snowtop/ent";
Expand Down
4 changes: 2 additions & 2 deletions examples/todo-sqlite/src/graphql/tests/todo.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
expectQueryFromRoot,
} from "@snowtop/ent-graphql-tests";
import schema from "src/graphql/generated/schema";
import ChangeTodoStatusAction from "src/ent/todo/actions/change_todo_status_action";
import { ChangeTodoStatusAction } from "src/ent/todo/actions/change_todo_status_action";
import {
createAccount,
createTodoForSelf,
Expand All @@ -13,7 +13,7 @@ import {
createTodoOtherInWorksapce,
} from "src/ent/testutils/util";
import { advanceBy } from "jest-date-mock";
import DeleteTodoAction from "src/ent/todo/actions/delete_todo_action";
import { DeleteTodoAction } from "src/ent/todo/actions/delete_todo_action";

async function createTodos(): Promise<[Account, Todo[]]> {
const account = await createAccount();
Expand Down

0 comments on commit 16d99fc

Please sign in to comment.