@@ -3,39 +3,39 @@ import path from 'path';
33
44let initVariables ;
55if ( fs . existsSync ( path . join ( process . cwd ( ) , '.replapirc.json' ) ) ) {
6- initVariables = JSON . parse ( fs . readFileSync ( path . join ( process . cwd ( ) , '.replapirc.json' ) ) ) ;
6+ initVariables = JSON . parse ( fs . readFileSync ( path . join ( process . cwd ( ) , '.replapirc.json' ) ) ) ;
77} else {
8- initVariables = {
9- username : undefined ,
10- captcha : {
11- token : undefined ,
12- } ,
13- endpoints : {
14- gql : undefined ,
15- restful : undefined ,
16- login : undefined ,
17- } ,
18- markdown : {
19- length : undefined ,
20- removeMarkdown : undefined ,
21- } ,
22- previewCount : {
23- comments : undefined ,
24- } ,
25- } ;
8+ initVariables = {
9+ username : undefined ,
10+ captcha : {
11+ token : undefined ,
12+ } ,
13+ endpoints : {
14+ gql : undefined ,
15+ restful : undefined ,
16+ login : undefined ,
17+ } ,
18+ markdown : {
19+ length : undefined ,
20+ removeMarkdown : undefined ,
21+ } ,
22+ previewCount : {
23+ comments : undefined ,
24+ } ,
25+ } ;
2626}
2727
2828export default {
29- roleAttributes : 'id, name, key, tagline' ,
30- languageAttributes : 'id, displayName, key, category, tagline, icon, isNew' ,
31- organizationAttributes : 'id, name, country, postalCode, state, city, googlePlaceId, timeCreated, timeUpdated, timeDeleted, time_created' ,
32- subscriptionAttributes : 'id, userId, customerId, planId, timeUpdated, timeCreated, timeDeleted' ,
33- userAttributes : 'id, username, firstName, lastName, bio, isVerified, displayName, fullName, url, isLoggedIn, isSubscribed, timeCreated, isBannedFromBoards, karma, isHacker, image' ,
34- boardAttributes : 'id, name, description, slug, cta, titleCta, bodyCta, template, buttonCta, color, replRequired, isLocked, isAnswerable, isPrivate, timeCreated, timeUpdated, url, canPost' ,
35- replAttributes : 'id, language, isProject, isPrivate, isStarred, title, slug, description, folderId, isRenamed, url, timeCreated, timeUpdated, isOwner, tags { id }, pinnedToProfile, files, hostedUrl, terminalUrl, reactions { id, count }' ,
36- commentAttributes : `id, body, voteCount, timeCreated, timeUpdated, url, isAuthor, canEdit, canVote, canComment, hasVoted, canReport, hasReported, isAnswer, canSelectAsAnswer, canUnselectAsAnswer, preview(length: ${ initVariables . markdown . length || 150 } , removeMarkdown: ${ initVariables . markdown . removeMarkdown || true } )` ,
37- postAttributes : `id, title, body, showHosted, voteCount, commentCount, isPinned, isLocked, timeCreated, timeUpdated, url, isAnnouncement, isAuthor, canEdit, canComment, canVote, canPin, canSetType, canChangeBoard, canLock, hasVoted, canReport, hasReported, isAnswerable, tutorialPages, preview(length: ${ initVariables . markdown . length || 150 } , removeMarkdown: ${ initVariables . markdown . removeMarkdown || true } )` ,
38- graphql : `${ initVariables . endpoints . gql || 'https://staging.replit.com/graphql' } ` ,
39- login : `${ initVariables . endpoints . login || 'https://staging.replit.com/login' } ` ,
40- restful : `${ initVariables . endpoints . restful || 'https://staging.replit.com' } ` ,
29+ roleAttributes : 'id, name, key, tagline' ,
30+ languageAttributes : 'id, displayName, key, category, tagline, icon, isNew' ,
31+ organizationAttributes : 'id, name, country, postalCode, state, city, googlePlaceId, timeCreated, timeUpdated, timeDeleted, time_created' ,
32+ subscriptionAttributes : 'id, userId, customerId, planId, timeUpdated, timeCreated, timeDeleted' ,
33+ userAttributes : 'id, username, firstName, lastName, bio, isVerified, displayName, fullName, url, isLoggedIn, isSubscribed, timeCreated, isBannedFromBoards, karma, isHacker, image' ,
34+ boardAttributes : 'id, name, description, slug, cta, titleCta, bodyCta, template, buttonCta, color, replRequired, isLocked, isAnswerable, isPrivate, timeCreated, timeUpdated, url, canPost' ,
35+ replAttributes : 'id, language, isProject, isPrivate, isStarred, title, slug, description, folderId, isRenamed, url, timeCreated, timeUpdated, isOwner, tags { id }, pinnedToProfile, files, hostedUrl, terminalUrl, reactions { id, count }' ,
36+ commentAttributes : `id, body, voteCount, timeCreated, timeUpdated, url, isAuthor, canEdit, canVote, canComment, hasVoted, canReport, hasReported, isAnswer, canSelectAsAnswer, canUnselectAsAnswer, preview(length: ${ initVariables . markdown . length || 150 } , removeMarkdown: ${ initVariables . markdown . removeMarkdown || true } )` ,
37+ postAttributes : `id, title, body, showHosted, voteCount, commentCount, isPinned, isLocked, timeCreated, timeUpdated, url, isAnnouncement, isAuthor, canEdit, canComment, canVote, canPin, canSetType, canChangeBoard, canLock, hasVoted, canReport, hasReported, isAnswerable, tutorialPages, preview(length: ${ initVariables . markdown . length || 150 } , removeMarkdown: ${ initVariables . markdown . removeMarkdown || true } )` ,
38+ graphql : `${ initVariables . endpoints . gql || 'https://staging.replit.com/graphql' } ` ,
39+ login : `${ initVariables . endpoints . login || 'https://staging.replit.com/login' } ` ,
40+ restful : `${ initVariables . endpoints . restful || 'https://staging.replit.com' } ` ,
4141} ;
0 commit comments