Comparing version 1.0.22 to 1.0.23
@@ -126,3 +126,3 @@ import { Emitter } from 'mitt'; | ||
*/ | ||
getUsers(ids: number[], callback?: AgRuCallback<AgRuSdkMethods.GetUsers>): void | AgRuPromise<AgRuSdkMethods.GetUsers>; | ||
getUsers(ids: string[], callback?: AgRuCallback<AgRuSdkMethods.GetUsers>): void | AgRuPromise<AgRuSdkMethods.GetUsers>; | ||
/** | ||
@@ -129,0 +129,0 @@ * Validate if user is belong to the game. |
{ | ||
"name": "@agru/sdk", | ||
"version": "1.0.22", | ||
"version": "1.0.23", | ||
"description": "AG RU SDK for the games integration", | ||
@@ -5,0 +5,0 @@ "module": "dist/esm/index.js", |
@@ -110,10 +110,10 @@ [![Bundle Size](https://img.shields.io/bundlephobia/min/@agru/sdk?style=for-the-badge)](https://www.npmjs.com/package/@agru/sdk) | ||
Необходимо передать массив `ID` пользователей. | ||
Необходимо передать массив `ID` пользователей (максимум 10). | ||
```typescript | ||
const [data, error] = await sdk.getUsers([1001, 1002, 1003]); | ||
const [data, error] = await sdk.getUsers(['aa6b41ff51004c3890321606db6d4c69', '33c1c11404fcda000000000', '56bc75e2d63100000']); | ||
``` | ||
или | ||
```typescript | ||
sdk.getUsers([1001, 1002, 1003], (data, error) => { | ||
sdk.getUsers(['aa6b41ff51004c3890321606db6d4c69', '33c1c11404fcda000000000', '56bc75e2d63100000'], (data, error) => { | ||
// ... | ||
@@ -132,2 +132,7 @@ }); | ||
/** | ||
* Полное имя пользователя. | ||
*/ | ||
fullname: string; | ||
/** | ||
* Идентификатор пользователя. | ||
@@ -140,3 +145,3 @@ */ | ||
*/ | ||
name: string; | ||
username: string; | ||
} | ||
@@ -143,0 +148,0 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37131
396