-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(mocks-counterfact): create package, scripts, types, mocks (#9)
- Loading branch information
1 parent
61e351f
commit e1cdeb2
Showing
220 changed files
with
4,833 additions
and
28 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
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,2 @@ | ||
node_modules | ||
test |
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,3 @@ | ||
# artifacts-mocks-counterfact | ||
|
||
Mocks of Artifacts MMO API generated from their published OpenAPI specification using counterfact. |
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,21 @@ | ||
{ | ||
"extends": ["../../biome.jsonc"], | ||
"overrides": [ | ||
{ | ||
"include": ["src/types.ts"], | ||
"linter": { | ||
"rules": { | ||
"suspicious": { | ||
"noExplicitAny": "off" | ||
}, | ||
"correctness": { | ||
"noUnusedVariables": "off" | ||
}, | ||
"complexity": { | ||
"noBannedTypes": "off" | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} |
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,40 @@ | ||
{ | ||
"name": "@trey.turner/artifacts-mocks-counterfact", | ||
"version": "0.0.1", | ||
"module": "index.ts", | ||
"main": "dist/index.js", | ||
"types": "dist/types.d.ts", | ||
"type": "module", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/treyturner/ts-artifacts.git" | ||
}, | ||
"scripts": { | ||
"build": "tsc -p src/tsconfig.json", | ||
"check": "bun run --silent lint && bun run --silent format && bun run --silent typecheck", | ||
"check:fix": "bun run --silent lint:fix && bun run --silent format:fix && bun run --silent typecheck", | ||
"clean": "bun run --silent clean:build && bun run --silent clean:deps", | ||
"clean:build": "rm -rf dist", | ||
"clean:deps": "rm -rf node_modules bun.lockb", | ||
"format": "biome format src/ test/", | ||
"format:fix": "biome format --write src/ test/", | ||
"generate": "bun run counterfact -g https://api.artifactsmmo.com/openapi.json src", | ||
"lint": "biome lint --error-on-warnings src/ test/", | ||
"lint:fix": "biome lint --error-on-warnings --fix src/ test/", | ||
"open": "bun run counterfact -o https://api.artifactsmmo.com/openapi.json src", | ||
"repl": "bun run counterfact -wrs https://api.artifactsmmo.com/openapi.json src", | ||
"start": "bun run watch", | ||
"typecheck": "tsc -p src/tsconfig.json && tsc --noEmit -p test/tsconfig.json", | ||
"watch": "bun run counterfact -ws https://api.artifactsmmo.com/openapi.json src" | ||
}, | ||
"dependencies": { | ||
"counterfact": "1.1.0" | ||
}, | ||
"devDependencies": { | ||
"@types/bun": "latest", | ||
"typescript": "5.6.2" | ||
}, | ||
"peerDependencies": { | ||
"typescript": "^5.0.0" | ||
} | ||
} |
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 @@ | ||
.cache |
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,11 @@ | ||
/** | ||
* This is the default context for Counterfact. | ||
* | ||
* It defines the context object in the REPL | ||
* and the $.context object in the code. | ||
* | ||
* Add properties and methods to suit your needs. | ||
* | ||
* See https://counterfact.dev/docs/usage.html#working-with-state-the-codecontextcode-object-and-codecontexttscode | ||
*/ | ||
export class Context {} |
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,5 @@ | ||
import type { HTTP_POST } from "../../types/paths/accounts/create.types.js"; | ||
|
||
export const POST: HTTP_POST = ($) => { | ||
return $.response[200].random(); | ||
}; |
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,5 @@ | ||
import type { HTTP_GET } from "../types/paths/achievements.types.js"; | ||
|
||
export const GET: HTTP_GET = ($) => { | ||
return $.response[200].random(); | ||
}; |
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,5 @@ | ||
import type { HTTP_GET } from "../../types/paths/achievements/{code}.types.js"; | ||
|
||
export const GET: HTTP_GET = ($) => { | ||
return $.response[200].random(); | ||
}; |
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,5 @@ | ||
import type { HTTP_GET } from "../types/paths/characters.types.js"; | ||
|
||
export const GET: HTTP_GET = ($) => { | ||
return $.response[200].random(); | ||
}; |
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,5 @@ | ||
import type { HTTP_POST } from "../../types/paths/characters/create.types.js"; | ||
|
||
export const POST: HTTP_POST = ($) => { | ||
return $.response[200].random(); | ||
}; |
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,5 @@ | ||
import type { HTTP_POST } from "../../types/paths/characters/delete.types.js"; | ||
|
||
export const POST: HTTP_POST = ($) => { | ||
return $.response[200].random(); | ||
}; |
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,5 @@ | ||
import type { HTTP_GET } from "../../types/paths/characters/{name}.types.js"; | ||
|
||
export const GET: HTTP_GET = ($) => { | ||
return $.response[200].random(); | ||
}; |
5 changes: 5 additions & 0 deletions
5
packages/mocks-counterfact/src/routes/characters/{name}/achievements.ts
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,5 @@ | ||
import type { HTTP_GET } from "../../../types/paths/characters/{name}/achievements.types.js"; | ||
|
||
export const GET: HTTP_GET = ($) => { | ||
return $.response[200].random(); | ||
}; |
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,5 @@ | ||
import type { HTTP_GET } from "../types/paths/events.types.js"; | ||
|
||
export const GET: HTTP_GET = ($) => { | ||
return $.response[200].random(); | ||
}; |
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,5 @@ | ||
import type { HTTP_GET } from "../types/paths/ge.types.js"; | ||
|
||
export const GET: HTTP_GET = ($) => { | ||
return $.response[200].random(); | ||
}; |
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,5 @@ | ||
import type { HTTP_GET } from "../../types/paths/ge/{code}.types.js"; | ||
|
||
export const GET: HTTP_GET = ($) => { | ||
return $.response[200].random(); | ||
}; |
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,5 @@ | ||
import type { HTTP_GET } from "../types/paths/index.types.js"; | ||
|
||
export const GET: HTTP_GET = ($) => { | ||
return $.response[200].random(); | ||
}; |
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,5 @@ | ||
import type { HTTP_GET } from "../types/paths/items.types.js"; | ||
|
||
export const GET: HTTP_GET = ($) => { | ||
return $.response[200].random(); | ||
}; |
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,5 @@ | ||
import type { HTTP_GET } from "../../types/paths/items/{code}.types.js"; | ||
|
||
export const GET: HTTP_GET = ($) => { | ||
return $.response[200].random(); | ||
}; |
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,5 @@ | ||
import type { HTTP_GET } from "../types/paths/leaderboard.types.js"; | ||
|
||
export const GET: HTTP_GET = ($) => { | ||
return $.response[200].random(); | ||
}; |
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,5 @@ | ||
import type { HTTP_GET } from "../types/paths/maps.types.js"; | ||
|
||
export const GET: HTTP_GET = ($) => { | ||
return $.response[200].random(); | ||
}; |
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,5 @@ | ||
import type { HTTP_GET } from "../../../types/paths/maps/{x}/{y}.types.js"; | ||
|
||
export const GET: HTTP_GET = ($) => { | ||
return $.response[200].random(); | ||
}; |
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,5 @@ | ||
import type { HTTP_GET } from "../types/paths/monsters.types.js"; | ||
|
||
export const GET: HTTP_GET = ($) => { | ||
return $.response[200].random(); | ||
}; |
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,5 @@ | ||
import type { HTTP_GET } from "../../types/paths/monsters/{code}.types.js"; | ||
|
||
export const GET: HTTP_GET = ($) => { | ||
return $.response[200].random(); | ||
}; |
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,5 @@ | ||
import type { HTTP_GET } from "../../types/paths/my/bank.types.js"; | ||
|
||
export const GET: HTTP_GET = ($) => { | ||
return $.response[200].random(); | ||
}; |
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,5 @@ | ||
import type { HTTP_GET } from "../../../types/paths/my/bank/items.types.js"; | ||
|
||
export const GET: HTTP_GET = ($) => { | ||
return $.response[200].random(); | ||
}; |
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,5 @@ | ||
import type { HTTP_POST } from "../../types/paths/my/change_password.types.js"; | ||
|
||
export const POST: HTTP_POST = ($) => { | ||
return $.response[200].random(); | ||
}; |
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,5 @@ | ||
import type { HTTP_GET } from "../../types/paths/my/characters.types.js"; | ||
|
||
export const GET: HTTP_GET = ($) => { | ||
return $.response[200].random(); | ||
}; |
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,5 @@ | ||
import type { HTTP_GET } from "../../types/paths/my/logs.types.js"; | ||
|
||
export const GET: HTTP_GET = ($) => { | ||
return $.response[200].random(); | ||
}; |
5 changes: 5 additions & 0 deletions
5
packages/mocks-counterfact/src/routes/my/{name}/action/bank/buy_expansion.ts
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,5 @@ | ||
import type { HTTP_POST } from "../../../../../types/paths/my/{name}/action/bank/buy_expansion.types.js"; | ||
|
||
export const POST: HTTP_POST = ($) => { | ||
return $.response[200].random(); | ||
}; |
5 changes: 5 additions & 0 deletions
5
packages/mocks-counterfact/src/routes/my/{name}/action/bank/deposit.ts
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,5 @@ | ||
import type { HTTP_POST } from "../../../../../types/paths/my/{name}/action/bank/deposit.types.js"; | ||
|
||
export const POST: HTTP_POST = ($) => { | ||
return $.response[200].random(); | ||
}; |
5 changes: 5 additions & 0 deletions
5
packages/mocks-counterfact/src/routes/my/{name}/action/bank/deposit/gold.ts
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,5 @@ | ||
import type { HTTP_POST } from "../../../../../../types/paths/my/{name}/action/bank/deposit/gold.types.js"; | ||
|
||
export const POST: HTTP_POST = ($) => { | ||
return $.response[200].random(); | ||
}; |
5 changes: 5 additions & 0 deletions
5
packages/mocks-counterfact/src/routes/my/{name}/action/bank/withdraw.ts
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,5 @@ | ||
import type { HTTP_POST } from "../../../../../types/paths/my/{name}/action/bank/withdraw.types.js"; | ||
|
||
export const POST: HTTP_POST = ($) => { | ||
return $.response[200].random(); | ||
}; |
5 changes: 5 additions & 0 deletions
5
packages/mocks-counterfact/src/routes/my/{name}/action/bank/withdraw/gold.ts
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,5 @@ | ||
import type { HTTP_POST } from "../../../../../../types/paths/my/{name}/action/bank/withdraw/gold.types.js"; | ||
|
||
export const POST: HTTP_POST = ($) => { | ||
return $.response[200].random(); | ||
}; |
5 changes: 5 additions & 0 deletions
5
packages/mocks-counterfact/src/routes/my/{name}/action/crafting.ts
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,5 @@ | ||
import type { HTTP_POST } from "../../../../types/paths/my/{name}/action/crafting.types.js"; | ||
|
||
export const POST: HTTP_POST = ($) => { | ||
return $.response[200].random(); | ||
}; |
5 changes: 5 additions & 0 deletions
5
packages/mocks-counterfact/src/routes/my/{name}/action/delete.ts
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,5 @@ | ||
import type { HTTP_POST } from "../../../../types/paths/my/{name}/action/delete.types.js"; | ||
|
||
export const POST: HTTP_POST = ($) => { | ||
return $.response[200].random(); | ||
}; |
5 changes: 5 additions & 0 deletions
5
packages/mocks-counterfact/src/routes/my/{name}/action/equip.ts
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,5 @@ | ||
import type { HTTP_POST } from "../../../../types/paths/my/{name}/action/equip.types.js"; | ||
|
||
export const POST: HTTP_POST = ($) => { | ||
return $.response[200].random(); | ||
}; |
5 changes: 5 additions & 0 deletions
5
packages/mocks-counterfact/src/routes/my/{name}/action/fight.ts
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,5 @@ | ||
import type { HTTP_POST } from "../../../../types/paths/my/{name}/action/fight.types.js"; | ||
|
||
export const POST: HTTP_POST = ($) => { | ||
return $.response[200].random(); | ||
}; |
5 changes: 5 additions & 0 deletions
5
packages/mocks-counterfact/src/routes/my/{name}/action/gathering.ts
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,5 @@ | ||
import type { HTTP_POST } from "../../../../types/paths/my/{name}/action/gathering.types.js"; | ||
|
||
export const POST: HTTP_POST = ($) => { | ||
return $.response[200].random(); | ||
}; |
5 changes: 5 additions & 0 deletions
5
packages/mocks-counterfact/src/routes/my/{name}/action/ge/buy.ts
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,5 @@ | ||
import type { HTTP_POST } from "../../../../../types/paths/my/{name}/action/ge/buy.types.js"; | ||
|
||
export const POST: HTTP_POST = ($) => { | ||
return $.response[200].random(); | ||
}; |
5 changes: 5 additions & 0 deletions
5
packages/mocks-counterfact/src/routes/my/{name}/action/ge/sell.ts
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,5 @@ | ||
import type { HTTP_POST } from "../../../../../types/paths/my/{name}/action/ge/sell.types.js"; | ||
|
||
export const POST: HTTP_POST = ($) => { | ||
return $.response[200].random(); | ||
}; |
Oops, something went wrong.