Skip to content

Commit ee44d99

Browse files
committed
cleaner console
1 parent e7ffd04 commit ee44d99

File tree

14 files changed

+331
-90
lines changed

14 files changed

+331
-90
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
# Setup .npmrc file to publish to npm
1212
- uses: actions/setup-node@v3
1313
with:
14-
node-version: '20.x'
14+
node-version: '22.x'
1515
registry-url: 'https://registry.npmjs.org'
1616
- run: npm install
1717
- run: npm run build --ws --if-present

package-lock.json

Lines changed: 43 additions & 52 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "lib/index.js",
66
"type": "module",
77
"scripts": {
8-
"zeus": "zeus https://backend.devtranslate.app/graphql ./packages/core/src --ts --n",
8+
"zeus": "zeus https://backend.devtranslate.app/graphql ./packages/core/src --ts",
99
"build": "npm run build --ws --if-present"
1010
},
1111
"author": "GraphQL Editor Centaur Generator",

packages/cli/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@aexol/dev-translate",
3-
"version": "0.0.8",
3+
"version": "0.0.9",
44
"private": false,
55
"main": "./lib/index.js",
66
"author": "Aexol, Artur Czemiel",
@@ -17,8 +17,8 @@
1717
"lib"
1818
],
1919
"dependencies": {
20-
"@aexol/dev-translate-config": "^0.0.8",
21-
"@aexol/dev-translate-core": "^0.0.8",
20+
"@aexol/dev-translate-config": "^0.0.9",
21+
"@aexol/dev-translate-core": "^0.0.9",
2222
"chalk": "^5.3.0",
2323
"chokidar": "^3.6.0",
2424
"commander": "^11.0.0"

packages/config/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@aexol/dev-translate-config",
3-
"version": "0.0.8",
3+
"version": "0.0.9",
44
"private": false,
55
"main": "./lib/index.js",
66
"author": "Aexol, Artur Czemiel",

packages/core/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,3 +204,5 @@ export type LangPair = {
204204
lang: Languages;
205205
folderName: string;
206206
};
207+
208+
export { Languages };

packages/core/package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@aexol/dev-translate-core",
3-
"version": "0.0.8",
3+
"version": "0.0.9",
44
"private": false,
55
"main": "./lib/index.js",
66
"author": "Aexol, Artur Czemiel",
@@ -12,5 +12,8 @@
1212
},
1313
"files": [
1414
"lib"
15-
]
15+
],
16+
"dependencies": {
17+
"cross-fetch": "^4.1.0"
18+
}
1619
}

packages/core/src/zeus/const.ts

Lines changed: 55 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ export const AllTypesProps: Record<string,any> = {
3636
AdminQuery:{
3737
users:{
3838
page:"PageInput"
39+
},
40+
userById:{
41+
42+
},
43+
storedTranslationById:{
44+
3945
}
4046
},
4147
AdminMutation:{
@@ -48,6 +54,11 @@ export const AllTypesProps: Record<string,any> = {
4854
tokens:"BigInt"
4955
}
5056
},
57+
StripeMutation:{
58+
buyProduct:{
59+
60+
}
61+
},
5162
AuthorizedUserMutation:{
5263
createApiKey:{
5364
apiKey:"CreateApiKey"
@@ -68,6 +79,9 @@ export const AllTypesProps: Record<string,any> = {
6879
User:{
6980
translations:{
7081
page:"PageInput"
82+
},
83+
purchases:{
84+
page:"PageInput"
7185
}
7286
},
7387
PublicUsersQuery:{
@@ -187,7 +201,13 @@ export const ReturnTypes: Record<string,any> = {
187201
_id:"String",
188202
name:"String",
189203
inputSize:"BigInt",
190-
consumedTokens:"BigInt"
204+
consumedTokens:"BigInt",
205+
format:"Format",
206+
formality:"Formality",
207+
context:"String",
208+
excludePhrases:"String",
209+
excludeRegex:"String",
210+
cacheTokens:"BigInt"
191211
},
192212
PageInfo:{
193213
hasNext:"Boolean",
@@ -211,14 +231,40 @@ export const ReturnTypes: Record<string,any> = {
211231
cached:"BigInt"
212232
},
213233
AdminQuery:{
214-
users:"UsersConnection"
234+
users:"UsersConnection",
235+
userById:"User",
236+
storedTranslationById:"StoredTranslation"
215237
},
216238
AdminMutation:{
217239
userOps:"UserOps"
218240
},
219241
UserOps:{
220242
changeUserTokens:"Boolean"
221243
},
244+
StripeQuery:{
245+
packages:"StripePackage",
246+
freePlanTokenLimit:"Int"
247+
},
248+
StripePackage:{
249+
name:"String",
250+
price:"Float",
251+
tokens:"Int",
252+
stripeLinkId:"String"
253+
},
254+
StripeMutation:{
255+
buyProduct:"String"
256+
},
257+
Purchase:{
258+
boughtTokens:"BigInt",
259+
tokenPrice:"Int",
260+
createdAt:"String",
261+
_id:"String",
262+
user:"User"
263+
},
264+
PurchaseConnection:{
265+
items:"Purchase",
266+
pageInfo:"PageInfo"
267+
},
222268
Mutation:{
223269
webhook:"String",
224270
api:"ApiMutation",
@@ -229,6 +275,7 @@ export const ReturnTypes: Record<string,any> = {
229275
revokeApiKey:"Boolean",
230276
api:"ApiMutation",
231277
admin:"AdminMutation",
278+
stripe:"StripeMutation",
232279
changePasswordWhenLogged:"ChangePasswordWhenLoggedResponse",
233280
editUser:"EditUserResponse",
234281
integrateSocialAccount:"IntegrateSocialAccountResponse"
@@ -237,6 +284,7 @@ export const ReturnTypes: Record<string,any> = {
237284
apiKeys:"ApiKey",
238285
api:"ApiQuery",
239286
admin:"AdminQuery",
287+
billingPortalLink:"String",
240288
me:"User"
241289
},
242290
User:{
@@ -248,11 +296,14 @@ export const ReturnTypes: Record<string,any> = {
248296
fullName:"String",
249297
avatarUrl:"String",
250298
translations:"StoredTranslationConnection",
251-
boughtTokens:"BigInt"
299+
boughtTokens:"BigInt",
300+
purchases:"PurchaseConnection",
301+
stripeCustomerId:"String"
252302
},
253303
Query:{
254304
users:"UsersQuery",
255-
api:"ApiQuery"
305+
api:"ApiQuery",
306+
stripe:"StripeQuery"
256307
},
257308
UsersQuery:{
258309
user:"AuthorizedUserQuery",

0 commit comments

Comments
 (0)