@getpara/user-management-client 1.11.0 → 1.12.0

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.
@@ -353,6 +353,9 @@ class Client {
353
353
  });
354
354
  return res.data;
355
355
  });
356
+ this.trackError = (opts) => __async(this, null, function* () {
357
+ yield this.baseRequest.post("/errors/sdk", opts);
358
+ });
356
359
  const headers = __spreadValues(__spreadValues({}, apiKey && { [import_consts.API_KEY_HEADER_NAME]: apiKey }), partnerId && { [import_consts.PARTNER_ID_HEADER_NAME]: partnerId });
357
360
  const axiosConfig = {
358
361
  baseURL: userManagementHost,
@@ -276,6 +276,9 @@ class Client {
276
276
  });
277
277
  return res.data;
278
278
  });
279
+ this.trackError = (opts) => __async(this, null, function* () {
280
+ yield this.baseRequest.post("/errors/sdk", opts);
281
+ });
279
282
  const headers = __spreadValues(__spreadValues({}, apiKey && { [API_KEY_HEADER_NAME]: apiKey }), partnerId && { [PARTNER_ID_HEADER_NAME]: partnerId });
280
283
  const axiosConfig = {
281
284
  baseURL: userManagementHost,
@@ -142,6 +142,7 @@ interface sessionPasswordBody {
142
142
  encryptionKeyHash?: string;
143
143
  }
144
144
  type BiometricLocationHintParams = AuthParams;
145
+ export type SDKType = 'WEB' | 'SERVER' | 'BRIDGE' | 'REACT_NATIVE';
145
146
  export type VerifyTelegramRes = {
146
147
  isValid: true;
147
148
  userId: string;
@@ -348,5 +349,14 @@ declare class Client {
348
349
  walletId: string;
349
350
  rpcUrl?: string;
350
351
  }) => Promise<GetWalletBalanceRes>;
352
+ trackError: (opts: {
353
+ methodName: string;
354
+ error: {
355
+ name: string;
356
+ message: string;
357
+ };
358
+ sdkType: SDKType;
359
+ userId: string;
360
+ }) => Promise<void>;
351
361
  }
352
362
  export default Client;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getpara/user-management-client",
3
- "version": "1.11.0",
3
+ "version": "1.12.0",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -32,5 +32,5 @@
32
32
  "require": "./dist/cjs/index.js"
33
33
  }
34
34
  },
35
- "gitHead": "91b68e4ead22e2104307c934f2a582245b176619"
35
+ "gitHead": "748afcf08c9d307a2d3eaf0716f73132f3eb8529"
36
36
  }