@reyaxyz/community-sdk 0.5.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -18,4 +18,5 @@ __exportStar(require("./client"), exports);
18
18
  __exportStar(require("./modules/lge/services/get-account-lge-status/types"), exports);
19
19
  __exportStar(require("./modules/lge/services/get-lge-boost-rate/types"), exports);
20
20
  __exportStar(require("./modules/twitter/services/get-auth-url/types"), exports);
21
+ __exportStar(require("./modules/vote/types"), exports);
21
22
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"/","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,sFAAoE;AACpE,kFAAgE;AAChE,gFAA8D","sourcesContent":["export * from './client';\nexport * from './modules/lge/services/get-account-lge-status/types';\nexport * from './modules/lge/services/get-lge-boost-rate/types';\nexport * from './modules/twitter/services/get-auth-url/types';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"/","sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,sFAAoE;AACpE,kFAAgE;AAChE,gFAA8D;AAC9D,uDAAqC","sourcesContent":["export * from './client';\nexport * from './modules/lge/services/get-account-lge-status/types';\nexport * from './modules/lge/services/get-lge-boost-rate/types';\nexport * from './modules/twitter/services/get-auth-url/types';\nexport * from './modules/vote/types';\n"]}
@@ -11,7 +11,7 @@ function getTwitterOauthUrl(_a) {
11
11
  response_type: 'code',
12
12
  code_challenge: 'challenge',
13
13
  code_challenge_method: 'plain',
14
- scope: ['users.read', 'tweet.write'].join(' '),
14
+ scope: ['users.read', 'tweet.write', 'tweet.read', 'follows.read'].join(' '),
15
15
  };
16
16
  var qs = new URLSearchParams(options).toString();
17
17
  return "".concat(rootUrl, "?").concat(qs);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"/","sources":["modules/twitter/services/get-auth-url/index.ts"],"names":[],"mappings":";;;AAEA,IAAM,OAAO,GAAW,wCAAwC,CAAC;AAEjE,SAAgB,kBAAkB,CAAC,EAIR;QAHzB,aAAa,mBAAA,EACb,eAAe,qBAAA,EACf,WAAW,iBAAA;IAEX,IAAM,OAAO,GAAG;QACd,YAAY,EAAE,WAAW;QACzB,SAAS,EAAE,eAAe;QAC1B,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,aAAa,eAAA,EAAE,CAAC;QACxC,aAAa,EAAE,MAAM;QACrB,cAAc,EAAE,WAAW;QAC3B,qBAAqB,EAAE,OAAO;QAC9B,KAAK,EAAE,CAAC,YAAY,EAAE,aAAa,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;KAC/C,CAAC;IACF,IAAM,EAAE,GAAG,IAAI,eAAe,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC;IACnD,OAAO,UAAG,OAAO,cAAI,EAAE,CAAE,CAAC;AAC5B,CAAC;AAhBD,gDAgBC","sourcesContent":["import { GetTwitterOauthUrlParams } from './types';\n\nconst rootUrl: string = 'https://twitter.com/i/oauth2/authorize';\n\nexport function getTwitterOauthUrl({\n walletAddress,\n twitterClientId,\n redirectURI,\n}: GetTwitterOauthUrlParams): string {\n const options = {\n redirect_uri: redirectURI,\n client_id: twitterClientId,\n state: JSON.stringify({ walletAddress }),\n response_type: 'code',\n code_challenge: 'challenge',\n code_challenge_method: 'plain',\n scope: ['users.read', 'tweet.write'].join(' '),\n };\n const qs = new URLSearchParams(options).toString();\n return `${rootUrl}?${qs}`;\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"/","sources":["modules/twitter/services/get-auth-url/index.ts"],"names":[],"mappings":";;;AAEA,IAAM,OAAO,GAAW,wCAAwC,CAAC;AAEjE,SAAgB,kBAAkB,CAAC,EAIR;QAHzB,aAAa,mBAAA,EACb,eAAe,qBAAA,EACf,WAAW,iBAAA;IAEX,IAAM,OAAO,GAAG;QACd,YAAY,EAAE,WAAW;QACzB,SAAS,EAAE,eAAe;QAC1B,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,aAAa,eAAA,EAAE,CAAC;QACxC,aAAa,EAAE,MAAM;QACrB,cAAc,EAAE,WAAW;QAC3B,qBAAqB,EAAE,OAAO;QAC9B,KAAK,EAAE,CAAC,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,cAAc,CAAC,CAAC,IAAI,CACrE,GAAG,CACJ;KACF,CAAC;IACF,IAAM,EAAE,GAAG,IAAI,eAAe,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC;IACnD,OAAO,UAAG,OAAO,cAAI,EAAE,CAAE,CAAC;AAC5B,CAAC;AAlBD,gDAkBC","sourcesContent":["import { GetTwitterOauthUrlParams } from './types';\n\nconst rootUrl: string = 'https://twitter.com/i/oauth2/authorize';\n\nexport function getTwitterOauthUrl({\n walletAddress,\n twitterClientId,\n redirectURI,\n}: GetTwitterOauthUrlParams): string {\n const options = {\n redirect_uri: redirectURI,\n client_id: twitterClientId,\n state: JSON.stringify({ walletAddress }),\n response_type: 'code',\n code_challenge: 'challenge',\n code_challenge_method: 'plain',\n scope: ['users.read', 'tweet.write', 'tweet.read', 'follows.read'].join(\n ' ',\n ),\n };\n const qs = new URLSearchParams(options).toString();\n return `${rootUrl}?${qs}`;\n}\n"]}
@@ -2,4 +2,5 @@ export * from './client';
2
2
  export * from './modules/lge/services/get-account-lge-status/types';
3
3
  export * from './modules/lge/services/get-lge-boost-rate/types';
4
4
  export * from './modules/twitter/services/get-auth-url/types';
5
+ export * from './modules/vote/types';
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,qDAAqD,CAAC;AACpE,cAAc,iDAAiD,CAAC;AAChE,cAAc,+CAA+C,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,qDAAqD,CAAC;AACpE,cAAc,iDAAiD,CAAC;AAChE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,sBAAsB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["modules/twitter/services/get-auth-url/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAInD,wBAAgB,kBAAkB,CAAC,EACjC,aAAa,EACb,eAAe,EACf,WAAW,GACZ,EAAE,wBAAwB,GAAG,MAAM,CAYnC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["modules/twitter/services/get-auth-url/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAInD,wBAAgB,kBAAkB,CAAC,EACjC,aAAa,EACb,eAAe,EACf,WAAW,GACZ,EAAE,wBAAwB,GAAG,MAAM,CAcnC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reyaxyz/community-sdk",
3
- "version": "0.5.0",
3
+ "version": "0.6.1",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -38,5 +38,5 @@
38
38
  "generate:coverage-badges": "npx istanbul-badges-readme --silent"
39
39
  },
40
40
  "packageManager": "pnpm@8.10.4",
41
- "gitHead": "61e86b6c82a2fd2a8df1e9a4cd55092fdd7a5411"
41
+ "gitHead": "a1ddfa8de1e9f8c5fb993f7696d5fc493b9d56df"
42
42
  }
package/src/index.ts CHANGED
@@ -2,3 +2,4 @@ export * from './client';
2
2
  export * from './modules/lge/services/get-account-lge-status/types';
3
3
  export * from './modules/lge/services/get-lge-boost-rate/types';
4
4
  export * from './modules/twitter/services/get-auth-url/types';
5
+ export * from './modules/vote/types';
@@ -14,7 +14,9 @@ export function getTwitterOauthUrl({
14
14
  response_type: 'code',
15
15
  code_challenge: 'challenge',
16
16
  code_challenge_method: 'plain',
17
- scope: ['users.read', 'tweet.write'].join(' '),
17
+ scope: ['users.read', 'tweet.write', 'tweet.read', 'follows.read'].join(
18
+ ' ',
19
+ ),
18
20
  };
19
21
  const qs = new URLSearchParams(options).toString();
20
22
  return `${rootUrl}?${qs}`;