@getpara/user-management-client 1.11.0 → 1.13.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,12 @@ 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
+ });
359
+ this.trackReactSdkAnalytics = (opts) => __async(this, null, function* () {
360
+ yield this.baseRequest.post("/partners/analytics/react-sdk", opts);
361
+ });
356
362
  const headers = __spreadValues(__spreadValues({}, apiKey && { [import_consts.API_KEY_HEADER_NAME]: apiKey }), partnerId && { [import_consts.PARTNER_ID_HEADER_NAME]: partnerId });
357
363
  const axiosConfig = {
358
364
  baseURL: userManagementHost,
@@ -57,15 +57,7 @@ var Network = /* @__PURE__ */ ((Network2) => {
57
57
  Network2["SOLANA_DEVNET"] = "SOLANA_DEVNET";
58
58
  return Network2;
59
59
  })(Network || {});
60
- const PREGEN_IDENTIFIER_TYPES = [
61
- "EMAIL",
62
- "PHONE",
63
- "CUSTOM_ID",
64
- "GUEST_ID",
65
- "DISCORD",
66
- "TWITTER",
67
- "TELEGRAM"
68
- ];
60
+ const PREGEN_IDENTIFIER_TYPES = ["EMAIL", "PHONE", "CUSTOM_ID", "DISCORD", "TWITTER", "TELEGRAM"];
69
61
  const NON_ED25519 = ["DKLS" /* DKLS */, "CGGMP" /* CGGMP */];
70
62
  // Annotate the CommonJS export names for ESM import in node:
71
63
  0 && (module.exports = {
@@ -276,6 +276,12 @@ 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
+ });
282
+ this.trackReactSdkAnalytics = (opts) => __async(this, null, function* () {
283
+ yield this.baseRequest.post("/partners/analytics/react-sdk", opts);
284
+ });
279
285
  const headers = __spreadValues(__spreadValues({}, apiKey && { [API_KEY_HEADER_NAME]: apiKey }), partnerId && { [PARTNER_ID_HEADER_NAME]: partnerId });
280
286
  const axiosConfig = {
281
287
  baseURL: userManagementHost,
@@ -31,15 +31,7 @@ var Network = /* @__PURE__ */ ((Network2) => {
31
31
  Network2["SOLANA_DEVNET"] = "SOLANA_DEVNET";
32
32
  return Network2;
33
33
  })(Network || {});
34
- const PREGEN_IDENTIFIER_TYPES = [
35
- "EMAIL",
36
- "PHONE",
37
- "CUSTOM_ID",
38
- "GUEST_ID",
39
- "DISCORD",
40
- "TWITTER",
41
- "TELEGRAM"
42
- ];
34
+ const PREGEN_IDENTIFIER_TYPES = ["EMAIL", "PHONE", "CUSTOM_ID", "DISCORD", "TWITTER", "TELEGRAM"];
43
35
  const NON_ED25519 = ["DKLS" /* DKLS */, "CGGMP" /* CGGMP */];
44
36
  export {
45
37
  Chain,
@@ -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,18 @@ 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>;
361
+ trackReactSdkAnalytics: (opts: {
362
+ props: object;
363
+ reactSdkVersion: string;
364
+ }) => Promise<void>;
351
365
  }
352
366
  export default Client;
@@ -32,7 +32,7 @@ export type WalletParams = Partial<{
32
32
  walletId?: string;
33
33
  externalWalletAddress?: string;
34
34
  }>;
35
- export declare const PREGEN_IDENTIFIER_TYPES: readonly ["EMAIL", "PHONE", "CUSTOM_ID", "GUEST_ID", "DISCORD", "TWITTER", "TELEGRAM"];
35
+ export declare const PREGEN_IDENTIFIER_TYPES: readonly ["EMAIL", "PHONE", "CUSTOM_ID", "DISCORD", "TWITTER", "TELEGRAM"];
36
36
  export type TPregenIdentifierType = (typeof PREGEN_IDENTIFIER_TYPES)[number];
37
37
  export type PregenIds = Partial<Record<TPregenIdentifierType, string[]>>;
38
38
  export interface WalletEntity {
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.13.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": "cfc12a88a622907b3fbde326c891060fa53a2d32"
36
36
  }