@nadohq/mobile-client 0.27.0 → 0.29.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.
Files changed (33) hide show
  1. package/dist/MobileServerFailureError-ZggEcEda.d.cts +22 -0
  2. package/dist/MobileServerFailureError-ZggEcEda.d.cts.map +1 -0
  3. package/dist/MobileServerFailureError-f9KhKnJj.d.ts +22 -0
  4. package/dist/MobileServerFailureError-f9KhKnJj.d.ts.map +1 -0
  5. package/dist/index.d.cts +2 -2
  6. package/dist/index.d.ts +2 -2
  7. package/dist/{mobileErrorCodes-DM09jnNe.d.ts → mobileErrorCodes-BeyBKmwh.d.cts} +15 -5
  8. package/dist/mobileErrorCodes-BeyBKmwh.d.cts.map +1 -0
  9. package/dist/{mobileErrorCodes-D8KzJXbU.d.cts → mobileErrorCodes-QG5XbEY6.d.ts} +15 -5
  10. package/dist/mobileErrorCodes-QG5XbEY6.d.ts.map +1 -0
  11. package/dist/types/MobileServerFailureError.cjs +6 -4
  12. package/dist/types/MobileServerFailureError.cjs.map +1 -1
  13. package/dist/types/MobileServerFailureError.d.cts +1 -1
  14. package/dist/types/MobileServerFailureError.d.ts +1 -1
  15. package/dist/types/MobileServerFailureError.js +5 -4
  16. package/dist/types/MobileServerFailureError.js.map +1 -1
  17. package/dist/types/index.d.cts +2 -2
  18. package/dist/types/index.d.ts +2 -2
  19. package/dist/types/mobileErrorCodes.cjs +4 -6
  20. package/dist/types/mobileErrorCodes.cjs.map +1 -1
  21. package/dist/types/mobileErrorCodes.d.cts +1 -1
  22. package/dist/types/mobileErrorCodes.d.ts +1 -1
  23. package/dist/types/mobileErrorCodes.js +4 -6
  24. package/dist/types/mobileErrorCodes.js.map +1 -1
  25. package/package.json +3 -3
  26. package/src/types/MobileServerFailureError.ts +20 -12
  27. package/src/types/mobileErrorCodes.ts +4 -5
  28. package/dist/MobileServerFailureError-Belp_yef.d.cts +0 -25
  29. package/dist/MobileServerFailureError-Belp_yef.d.cts.map +0 -1
  30. package/dist/MobileServerFailureError-DqM0T6CB.d.ts +0 -25
  31. package/dist/MobileServerFailureError-DqM0T6CB.d.ts.map +0 -1
  32. package/dist/mobileErrorCodes-D8KzJXbU.d.cts.map +0 -1
  33. package/dist/mobileErrorCodes-DM09jnNe.d.ts.map +0 -1
@@ -0,0 +1,22 @@
1
+ import { i as MobileServerRequestType, t as MobileServerFailureResponse } from "./serverBaseTypes-BicXMrZV.cjs";
2
+ import { BaseServerFailureError } from "@nadohq/shared";
3
+
4
+ //#region src/types/MobileServerFailureError.d.ts
5
+ /**
6
+ * Error thrown when the mobile service API returns a failure envelope, either as a non-2xx HTTP response
7
+ * or a 2xx response with `status: 'failure'`. The numeric error code is exposed directly on
8
+ * {@link BaseServerFailureError.errorCode} for comparison against {@link MOBILE_ERROR_CODES}.
9
+ */
10
+ declare class MobileServerFailureError extends BaseServerFailureError {
11
+ readonly responseData: MobileServerFailureResponse;
12
+ readonly requestType: MobileServerRequestType;
13
+ /**
14
+ * HTTP status code of the response, e.g. `404` for `PROFILE_NOT_FOUND`. Unlike the engine, the mobile
15
+ * backend maps domain failures onto HTTP statuses.
16
+ */
17
+ readonly httpStatus: number;
18
+ constructor(responseData: MobileServerFailureResponse, httpStatus: number);
19
+ }
20
+ //#endregion
21
+ export { MobileServerFailureError as t };
22
+ //# sourceMappingURL=MobileServerFailureError-ZggEcEda.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MobileServerFailureError-ZggEcEda.d.cts","names":[],"sources":["../src/types/src/types/MobileServerFailureError.ts"],"mappings":";;;;;;AAWA;;;cAAa,wBAAA,SAAiC,sBAAA;EAAA,SAC3B,YAAA,EAAc,2BAAA;EAAA,SACd,WAAA,EAAa,uBAAA;EAFc;;;;EAAA,SAQnC,UAAA;cAEG,YAAA,EAAc,2BAAA,EAA6B,UAAA;AAAA"}
@@ -0,0 +1,22 @@
1
+ import { i as MobileServerRequestType, t as MobileServerFailureResponse } from "./serverBaseTypes-ewbo8l4R.js";
2
+ import { BaseServerFailureError } from "@nadohq/shared";
3
+
4
+ //#region src/types/MobileServerFailureError.d.ts
5
+ /**
6
+ * Error thrown when the mobile service API returns a failure envelope, either as a non-2xx HTTP response
7
+ * or a 2xx response with `status: 'failure'`. The numeric error code is exposed directly on
8
+ * {@link BaseServerFailureError.errorCode} for comparison against {@link MOBILE_ERROR_CODES}.
9
+ */
10
+ declare class MobileServerFailureError extends BaseServerFailureError {
11
+ readonly responseData: MobileServerFailureResponse;
12
+ readonly requestType: MobileServerRequestType;
13
+ /**
14
+ * HTTP status code of the response, e.g. `404` for `PROFILE_NOT_FOUND`. Unlike the engine, the mobile
15
+ * backend maps domain failures onto HTTP statuses.
16
+ */
17
+ readonly httpStatus: number;
18
+ constructor(responseData: MobileServerFailureResponse, httpStatus: number);
19
+ }
20
+ //#endregion
21
+ export { MobileServerFailureError as t };
22
+ //# sourceMappingURL=MobileServerFailureError-f9KhKnJj.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MobileServerFailureError-f9KhKnJj.d.ts","names":[],"sources":["../src/types/src/types/MobileServerFailureError.ts"],"mappings":";;;;;;AAWA;;;cAAa,wBAAA,SAAiC,sBAAA;EAAA,SAC3B,YAAA,EAAc,2BAAA;EAAA,SACd,WAAA,EAAa,uBAAA;EAFc;;;;EAAA,SAQnC,UAAA;cAEG,YAAA,EAAc,2BAAA,EAA6B,UAAA;AAAA"}
package/dist/index.d.cts CHANGED
@@ -9,8 +9,8 @@ import { t as getMobilePayloadHash } from "./payloadHash-nj8WuLUP.cjs";
9
9
  import { a as MobileServerSuccessResponse, i as MobileServerRequestType, n as MobileServerPublicQueryParamsByType, r as MobileServerPublicQueryType, t as MobileServerFailureResponse } from "./serverBaseTypes-BicXMrZV.cjs";
10
10
  import { MobileClient, MobileClientOpts } from "./MobileClient.cjs";
11
11
  import { MOBILE_CLIENT_ENDPOINTS } from "./endpoints.cjs";
12
- import { n as MobileErrorCode, t as MOBILE_ERROR_CODES } from "./mobileErrorCodes-D8KzJXbU.cjs";
13
- import { t as MobileServerFailureError } from "./MobileServerFailureError-Belp_yef.cjs";
12
+ import { n as MobileErrorCode, t as MOBILE_ERROR_CODES } from "./mobileErrorCodes-BeyBKmwh.cjs";
13
+ import { t as MobileServerFailureError } from "./MobileServerFailureError-ZggEcEda.cjs";
14
14
  import { t as MobileServerExecuteResult } from "./serverExecuteTypes-DKYK1V7C.cjs";
15
15
  import { a as MobileServerRegisteredDevicesResponse, c as MobileServerUsernameAvailabilityResponse, i as MobileServerPublicQueryRequest, n as MobileServerProfileRequest, o as MobileServerSelfIdentityResponse, r as MobileServerProfileResponse, s as MobileServerUsernameAvailabilityRequest, t as MobileServerNotificationPreferencesResponse } from "./serverQueryTypes-D7Yharse.cjs";
16
16
  import { t as MOBILE_DISPLAY_NAME_PATTERN } from "./patterns-B9J2ldpx.cjs";
package/dist/index.d.ts CHANGED
@@ -9,8 +9,8 @@ import { t as getMobilePayloadHash } from "./payloadHash-Bmhzs78N.js";
9
9
  import { a as MobileServerSuccessResponse, i as MobileServerRequestType, n as MobileServerPublicQueryParamsByType, r as MobileServerPublicQueryType, t as MobileServerFailureResponse } from "./serverBaseTypes-ewbo8l4R.js";
10
10
  import { MobileClient, MobileClientOpts } from "./MobileClient.js";
11
11
  import { MOBILE_CLIENT_ENDPOINTS } from "./endpoints.js";
12
- import { n as MobileErrorCode, t as MOBILE_ERROR_CODES } from "./mobileErrorCodes-DM09jnNe.js";
13
- import { t as MobileServerFailureError } from "./MobileServerFailureError-DqM0T6CB.js";
12
+ import { n as MobileErrorCode, t as MOBILE_ERROR_CODES } from "./mobileErrorCodes-QG5XbEY6.js";
13
+ import { t as MobileServerFailureError } from "./MobileServerFailureError-f9KhKnJj.js";
14
14
  import { t as MobileServerExecuteResult } from "./serverExecuteTypes-CXnMjKnt.js";
15
15
  import { a as MobileServerRegisteredDevicesResponse, c as MobileServerUsernameAvailabilityResponse, i as MobileServerPublicQueryRequest, n as MobileServerProfileRequest, o as MobileServerSelfIdentityResponse, r as MobileServerProfileResponse, s as MobileServerUsernameAvailabilityRequest, t as MobileServerNotificationPreferencesResponse } from "./serverQueryTypes-BI-2TD8F.js";
16
16
  import { t as MOBILE_DISPLAY_NAME_PATTERN } from "./patterns-BbxH3_VA.js";
@@ -2,12 +2,9 @@
2
2
  /**
3
3
  * Numeric error codes returned by the mobile service API. Identity codes (61xx) and notification codes
4
4
  * (62xx) are mobile-specific; the remaining codes are shared cross-service codes from the backend's common
5
- * error enum.
5
+ * error enum, inlined via spread from {@link NADO_ERROR_CODES}.
6
6
  */
7
7
  declare const MOBILE_ERROR_CODES: {
8
- readonly NOT_IMPLEMENTED: 4001;
9
- readonly INVALID_SIGNER: 2028;
10
- readonly SERVICE_UNAVAILABLE: 1006;
11
8
  readonly INVALID_DISPLAY_NAME: 6100;
12
9
  readonly USERNAME_UNAVAILABLE: 6101;
13
10
  readonly IDENTITY_ALREADY_CLAIMED: 6102;
@@ -18,6 +15,19 @@ declare const MOBILE_ERROR_CODES: {
18
15
  readonly INVALID_EXPO_TOKEN: 6200;
19
16
  readonly INVALID_DEVICE_METADATA: 6201;
20
17
  readonly INVALID_PREFERENCES: 6202;
18
+ readonly RATE_LIMIT: 1000;
19
+ readonly BLACKLISTED_ADDRESS: 1001;
20
+ readonly BLOCKED_LOCATION: 1002;
21
+ readonly BLOCKED_SUBDIVISION: 1003;
22
+ readonly MAINTENANCE: 1004;
23
+ readonly GATEWAY_INVALID_REQUEST: 1005;
24
+ readonly SERVICE_UNAVAILABLE: 1006;
25
+ readonly INVALID_SIGNER: 2028;
26
+ readonly PERP_TICK_FORMATTING: 4000;
27
+ readonly NOT_IMPLEMENTED: 4001;
28
+ readonly TEMPORARILY_DISABLED_MINT_LP: 4002;
29
+ readonly EVM_REVERT: 4003;
30
+ readonly WITHDRAW_RISK: 4004;
21
31
  readonly INTERNAL_ERROR: 5000;
22
32
  };
23
33
  /**
@@ -26,4 +36,4 @@ declare const MOBILE_ERROR_CODES: {
26
36
  type MobileErrorCode = (typeof MOBILE_ERROR_CODES)[keyof typeof MOBILE_ERROR_CODES];
27
37
  //#endregion
28
38
  export { MobileErrorCode as n, MOBILE_ERROR_CODES as t };
29
- //# sourceMappingURL=mobileErrorCodes-DM09jnNe.d.ts.map
39
+ //# sourceMappingURL=mobileErrorCodes-BeyBKmwh.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mobileErrorCodes-BeyBKmwh.d.cts","names":[],"sources":["../src/types/src/types/mobileErrorCodes.ts"],"mappings":";;AAOA;;;;cAAa,kBAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;AAiBb;;;AAAA,KAAY,eAAA,WACF,kBAAA,eAAiC,kBAAkB"}
@@ -2,12 +2,9 @@
2
2
  /**
3
3
  * Numeric error codes returned by the mobile service API. Identity codes (61xx) and notification codes
4
4
  * (62xx) are mobile-specific; the remaining codes are shared cross-service codes from the backend's common
5
- * error enum.
5
+ * error enum, inlined via spread from {@link NADO_ERROR_CODES}.
6
6
  */
7
7
  declare const MOBILE_ERROR_CODES: {
8
- readonly NOT_IMPLEMENTED: 4001;
9
- readonly INVALID_SIGNER: 2028;
10
- readonly SERVICE_UNAVAILABLE: 1006;
11
8
  readonly INVALID_DISPLAY_NAME: 6100;
12
9
  readonly USERNAME_UNAVAILABLE: 6101;
13
10
  readonly IDENTITY_ALREADY_CLAIMED: 6102;
@@ -18,6 +15,19 @@ declare const MOBILE_ERROR_CODES: {
18
15
  readonly INVALID_EXPO_TOKEN: 6200;
19
16
  readonly INVALID_DEVICE_METADATA: 6201;
20
17
  readonly INVALID_PREFERENCES: 6202;
18
+ readonly RATE_LIMIT: 1000;
19
+ readonly BLACKLISTED_ADDRESS: 1001;
20
+ readonly BLOCKED_LOCATION: 1002;
21
+ readonly BLOCKED_SUBDIVISION: 1003;
22
+ readonly MAINTENANCE: 1004;
23
+ readonly GATEWAY_INVALID_REQUEST: 1005;
24
+ readonly SERVICE_UNAVAILABLE: 1006;
25
+ readonly INVALID_SIGNER: 2028;
26
+ readonly PERP_TICK_FORMATTING: 4000;
27
+ readonly NOT_IMPLEMENTED: 4001;
28
+ readonly TEMPORARILY_DISABLED_MINT_LP: 4002;
29
+ readonly EVM_REVERT: 4003;
30
+ readonly WITHDRAW_RISK: 4004;
21
31
  readonly INTERNAL_ERROR: 5000;
22
32
  };
23
33
  /**
@@ -26,4 +36,4 @@ declare const MOBILE_ERROR_CODES: {
26
36
  type MobileErrorCode = (typeof MOBILE_ERROR_CODES)[keyof typeof MOBILE_ERROR_CODES];
27
37
  //#endregion
28
38
  export { MobileErrorCode as n, MOBILE_ERROR_CODES as t };
29
- //# sourceMappingURL=mobileErrorCodes-D8KzJXbU.d.cts.map
39
+ //# sourceMappingURL=mobileErrorCodes-QG5XbEY6.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mobileErrorCodes-QG5XbEY6.d.ts","names":[],"sources":["../src/types/src/types/mobileErrorCodes.ts"],"mappings":";;AAOA;;;;cAAa,kBAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;AAiBb;;;AAAA,KAAY,eAAA,WACF,kBAAA,eAAiC,kBAAkB"}
@@ -1,13 +1,15 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ require("../MobileClient-9JSAzblH.cjs");
3
+ let _nadohq_shared = require("@nadohq/shared");
2
4
  //#region src/types/MobileServerFailureError.ts
3
5
  /**
4
6
  * Error thrown when the mobile service API returns a failure envelope, either as a non-2xx HTTP response
5
- * or a 2xx response with `status: 'failure'`.
7
+ * or a 2xx response with `status: 'failure'`. The numeric error code is exposed directly on
8
+ * {@link BaseServerFailureError.errorCode} for comparison against {@link MOBILE_ERROR_CODES}.
6
9
  */
7
- var MobileServerFailureError = class extends Error {
10
+ var MobileServerFailureError = class extends _nadohq_shared.BaseServerFailureError {
8
11
  constructor(responseData, httpStatus) {
9
- super(`${responseData.error_code}: ${responseData.error}`);
10
- this.responseData = responseData;
12
+ super(responseData, "MobileServerFailureError");
11
13
  this.httpStatus = httpStatus;
12
14
  }
13
15
  };
@@ -1 +1 @@
1
- {"version":3,"file":"MobileServerFailureError.cjs","names":[],"sources":["../../src/types/MobileServerFailureError.ts"],"sourcesContent":["import { MobileServerFailureResponse } from './serverBaseTypes';\n\n/**\n * Error thrown when the mobile service API returns a failure envelope, either as a non-2xx HTTP response\n * or a 2xx response with `status: 'failure'`.\n */\nexport class MobileServerFailureError extends Error {\n constructor(\n readonly responseData: MobileServerFailureResponse,\n /**\n * HTTP status code of the response, e.g. `404` for `PROFILE_NOT_FOUND`. Unlike the engine, the mobile\n * backend maps domain failures onto HTTP statuses.\n */\n readonly httpStatus: number,\n ) {\n super(`${responseData.error_code}: ${responseData.error}`);\n }\n}\n"],"mappings":";;;;;;AAMA,IAAa,2BAAb,cAA8C,MAAM;CAClD,YACE,cAKA,YACA;EACA,MAAM,GAAG,aAAa,WAAW,IAAI,aAAa,OAAO;EAPhD,KAAA,eAAA;EAKA,KAAA,aAAA;CAGX;AACF"}
1
+ {"version":3,"file":"MobileServerFailureError.cjs","names":["BaseServerFailureError"],"sources":["../../src/types/MobileServerFailureError.ts"],"sourcesContent":["import { BaseServerFailureError } from '@nadohq/shared';\nimport {\n MobileServerFailureResponse,\n MobileServerRequestType,\n} from './serverBaseTypes';\n\n/**\n * Error thrown when the mobile service API returns a failure envelope, either as a non-2xx HTTP response\n * or a 2xx response with `status: 'failure'`. The numeric error code is exposed directly on\n * {@link BaseServerFailureError.errorCode} for comparison against {@link MOBILE_ERROR_CODES}.\n */\nexport class MobileServerFailureError extends BaseServerFailureError {\n declare readonly responseData: MobileServerFailureResponse;\n declare readonly requestType: MobileServerRequestType;\n\n /**\n * HTTP status code of the response, e.g. `404` for `PROFILE_NOT_FOUND`. Unlike the engine, the mobile\n * backend maps domain failures onto HTTP statuses.\n */\n readonly httpStatus: number;\n\n constructor(responseData: MobileServerFailureResponse, httpStatus: number) {\n super(responseData, 'MobileServerFailureError');\n this.httpStatus = httpStatus;\n }\n}\n"],"mappings":";;;;;;;;;AAWA,IAAa,2BAAb,cAA8CA,eAAAA,uBAAuB;CAUnE,YAAY,cAA2C,YAAoB;EACzE,MAAM,cAAc,0BAA0B;EAC9C,KAAK,aAAa;CACpB;AACF"}
@@ -1,2 +1,2 @@
1
- import { t as MobileServerFailureError } from "../MobileServerFailureError-Belp_yef.cjs";
1
+ import { t as MobileServerFailureError } from "../MobileServerFailureError-ZggEcEda.cjs";
2
2
  export { MobileServerFailureError };
@@ -1,2 +1,2 @@
1
- import { t as MobileServerFailureError } from "../MobileServerFailureError-DqM0T6CB.js";
1
+ import { t as MobileServerFailureError } from "../MobileServerFailureError-f9KhKnJj.js";
2
2
  export { MobileServerFailureError };
@@ -1,12 +1,13 @@
1
+ import { BaseServerFailureError } from "@nadohq/shared";
1
2
  //#region src/types/MobileServerFailureError.ts
2
3
  /**
3
4
  * Error thrown when the mobile service API returns a failure envelope, either as a non-2xx HTTP response
4
- * or a 2xx response with `status: 'failure'`.
5
+ * or a 2xx response with `status: 'failure'`. The numeric error code is exposed directly on
6
+ * {@link BaseServerFailureError.errorCode} for comparison against {@link MOBILE_ERROR_CODES}.
5
7
  */
6
- var MobileServerFailureError = class extends Error {
8
+ var MobileServerFailureError = class extends BaseServerFailureError {
7
9
  constructor(responseData, httpStatus) {
8
- super(`${responseData.error_code}: ${responseData.error}`);
9
- this.responseData = responseData;
10
+ super(responseData, "MobileServerFailureError");
10
11
  this.httpStatus = httpStatus;
11
12
  }
12
13
  };
@@ -1 +1 @@
1
- {"version":3,"file":"MobileServerFailureError.js","names":[],"sources":["../../src/types/MobileServerFailureError.ts"],"sourcesContent":["import { MobileServerFailureResponse } from './serverBaseTypes';\n\n/**\n * Error thrown when the mobile service API returns a failure envelope, either as a non-2xx HTTP response\n * or a 2xx response with `status: 'failure'`.\n */\nexport class MobileServerFailureError extends Error {\n constructor(\n readonly responseData: MobileServerFailureResponse,\n /**\n * HTTP status code of the response, e.g. `404` for `PROFILE_NOT_FOUND`. Unlike the engine, the mobile\n * backend maps domain failures onto HTTP statuses.\n */\n readonly httpStatus: number,\n ) {\n super(`${responseData.error_code}: ${responseData.error}`);\n }\n}\n"],"mappings":";;;;;AAMA,IAAa,2BAAb,cAA8C,MAAM;CAClD,YACE,cAKA,YACA;EACA,MAAM,GAAG,aAAa,WAAW,IAAI,aAAa,OAAO;EAPhD,KAAA,eAAA;EAKA,KAAA,aAAA;CAGX;AACF"}
1
+ {"version":3,"file":"MobileServerFailureError.js","names":[],"sources":["../../src/types/MobileServerFailureError.ts"],"sourcesContent":["import { BaseServerFailureError } from '@nadohq/shared';\nimport {\n MobileServerFailureResponse,\n MobileServerRequestType,\n} from './serverBaseTypes';\n\n/**\n * Error thrown when the mobile service API returns a failure envelope, either as a non-2xx HTTP response\n * or a 2xx response with `status: 'failure'`. The numeric error code is exposed directly on\n * {@link BaseServerFailureError.errorCode} for comparison against {@link MOBILE_ERROR_CODES}.\n */\nexport class MobileServerFailureError extends BaseServerFailureError {\n declare readonly responseData: MobileServerFailureResponse;\n declare readonly requestType: MobileServerRequestType;\n\n /**\n * HTTP status code of the response, e.g. `404` for `PROFILE_NOT_FOUND`. Unlike the engine, the mobile\n * backend maps domain failures onto HTTP statuses.\n */\n readonly httpStatus: number;\n\n constructor(responseData: MobileServerFailureResponse, httpStatus: number) {\n super(responseData, 'MobileServerFailureError');\n this.httpStatus = httpStatus;\n }\n}\n"],"mappings":";;;;;;;AAWA,IAAa,2BAAb,cAA8C,uBAAuB;CAUnE,YAAY,cAA2C,YAAoB;EACzE,MAAM,cAAc,0BAA0B;EAC9C,KAAK,aAAa;CACpB;AACF"}
@@ -1,8 +1,8 @@
1
1
  import { a as MobileServerNotificationPreferenceScope, c as MobileServerRegisteredDevice, i as MobileServerNotificationCategoryPreference, n as MobileNotificationPlatform, o as MobileServerNotificationPreferences, r as MobileServerIdentity, s as MobileServerProfile, t as MobileNotificationCategory } from "../serverModelTypes-CQgfqgW3.cjs";
2
2
  import { _ as MobileUpdateNotificationPreferencesParams, a as GetMobileUsernameAvailabilityParams, c as MobileNotificationCategoryPreference, d as MobilePublicProfile, f as MobileRegisterExpoTokenParams, g as MobileUnregisterExpoTokenParams, h as MobileSignedRequestParams, i as GetMobileSelfIdentityParams, l as MobileNotificationPreferenceScope, m as MobileSetPrivateModeParams, n as GetMobilePublicProfileParams, o as MobileClaimUsernameParams, p as MobileRegisteredDevice, r as GetMobileRegisteredDevicesParams, s as MobileIdentity, t as GetMobileNotificationPreferencesParams, u as MobileNotificationPreferences, v as MobileUpdateUsernameParams, y as MobileUsernameAvailability } from "../clientTypes-Et0PUa2d.cjs";
3
3
  import { a as MobileServerSuccessResponse, i as MobileServerRequestType, n as MobileServerPublicQueryParamsByType, r as MobileServerPublicQueryType, t as MobileServerFailureResponse } from "../serverBaseTypes-BicXMrZV.cjs";
4
- import { n as MobileErrorCode, t as MOBILE_ERROR_CODES } from "../mobileErrorCodes-D8KzJXbU.cjs";
5
- import { t as MobileServerFailureError } from "../MobileServerFailureError-Belp_yef.cjs";
4
+ import { n as MobileErrorCode, t as MOBILE_ERROR_CODES } from "../mobileErrorCodes-BeyBKmwh.cjs";
5
+ import { t as MobileServerFailureError } from "../MobileServerFailureError-ZggEcEda.cjs";
6
6
  import { t as MobileServerExecuteResult } from "../serverExecuteTypes-DKYK1V7C.cjs";
7
7
  import { a as MobileServerRegisteredDevicesResponse, c as MobileServerUsernameAvailabilityResponse, i as MobileServerPublicQueryRequest, n as MobileServerProfileRequest, o as MobileServerSelfIdentityResponse, r as MobileServerProfileResponse, s as MobileServerUsernameAvailabilityRequest, t as MobileServerNotificationPreferencesResponse } from "../serverQueryTypes-D7Yharse.cjs";
8
8
  export { GetMobileNotificationPreferencesParams, GetMobilePublicProfileParams, GetMobileRegisteredDevicesParams, GetMobileSelfIdentityParams, GetMobileUsernameAvailabilityParams, MOBILE_ERROR_CODES, MobileClaimUsernameParams, MobileErrorCode, MobileIdentity, MobileNotificationCategory, MobileNotificationCategoryPreference, MobileNotificationPlatform, MobileNotificationPreferenceScope, MobileNotificationPreferences, MobilePublicProfile, MobileRegisterExpoTokenParams, MobileRegisteredDevice, MobileServerExecuteResult, MobileServerFailureError, MobileServerFailureResponse, MobileServerIdentity, MobileServerNotificationCategoryPreference, MobileServerNotificationPreferenceScope, MobileServerNotificationPreferences, MobileServerNotificationPreferencesResponse, MobileServerProfile, MobileServerProfileRequest, MobileServerProfileResponse, MobileServerPublicQueryParamsByType, MobileServerPublicQueryRequest, MobileServerPublicQueryType, MobileServerRegisteredDevice, MobileServerRegisteredDevicesResponse, MobileServerRequestType, MobileServerSelfIdentityResponse, MobileServerSuccessResponse, MobileServerUsernameAvailabilityRequest, MobileServerUsernameAvailabilityResponse, MobileSetPrivateModeParams, MobileSignedRequestParams, MobileUnregisterExpoTokenParams, MobileUpdateNotificationPreferencesParams, MobileUpdateUsernameParams, MobileUsernameAvailability };
@@ -1,8 +1,8 @@
1
1
  import { a as MobileServerNotificationPreferenceScope, c as MobileServerRegisteredDevice, i as MobileServerNotificationCategoryPreference, n as MobileNotificationPlatform, o as MobileServerNotificationPreferences, r as MobileServerIdentity, s as MobileServerProfile, t as MobileNotificationCategory } from "../serverModelTypes-vEPhHIit.js";
2
2
  import { _ as MobileUpdateNotificationPreferencesParams, a as GetMobileUsernameAvailabilityParams, c as MobileNotificationCategoryPreference, d as MobilePublicProfile, f as MobileRegisterExpoTokenParams, g as MobileUnregisterExpoTokenParams, h as MobileSignedRequestParams, i as GetMobileSelfIdentityParams, l as MobileNotificationPreferenceScope, m as MobileSetPrivateModeParams, n as GetMobilePublicProfileParams, o as MobileClaimUsernameParams, p as MobileRegisteredDevice, r as GetMobileRegisteredDevicesParams, s as MobileIdentity, t as GetMobileNotificationPreferencesParams, u as MobileNotificationPreferences, v as MobileUpdateUsernameParams, y as MobileUsernameAvailability } from "../clientTypes-DWW2N66c.js";
3
3
  import { a as MobileServerSuccessResponse, i as MobileServerRequestType, n as MobileServerPublicQueryParamsByType, r as MobileServerPublicQueryType, t as MobileServerFailureResponse } from "../serverBaseTypes-ewbo8l4R.js";
4
- import { n as MobileErrorCode, t as MOBILE_ERROR_CODES } from "../mobileErrorCodes-DM09jnNe.js";
5
- import { t as MobileServerFailureError } from "../MobileServerFailureError-DqM0T6CB.js";
4
+ import { n as MobileErrorCode, t as MOBILE_ERROR_CODES } from "../mobileErrorCodes-QG5XbEY6.js";
5
+ import { t as MobileServerFailureError } from "../MobileServerFailureError-f9KhKnJj.js";
6
6
  import { t as MobileServerExecuteResult } from "../serverExecuteTypes-CXnMjKnt.js";
7
7
  import { a as MobileServerRegisteredDevicesResponse, c as MobileServerUsernameAvailabilityResponse, i as MobileServerPublicQueryRequest, n as MobileServerProfileRequest, o as MobileServerSelfIdentityResponse, r as MobileServerProfileResponse, s as MobileServerUsernameAvailabilityRequest, t as MobileServerNotificationPreferencesResponse } from "../serverQueryTypes-BI-2TD8F.js";
8
8
  export { GetMobileNotificationPreferencesParams, GetMobilePublicProfileParams, GetMobileRegisteredDevicesParams, GetMobileSelfIdentityParams, GetMobileUsernameAvailabilityParams, MOBILE_ERROR_CODES, MobileClaimUsernameParams, MobileErrorCode, MobileIdentity, MobileNotificationCategory, MobileNotificationCategoryPreference, MobileNotificationPlatform, MobileNotificationPreferenceScope, MobileNotificationPreferences, MobilePublicProfile, MobileRegisterExpoTokenParams, MobileRegisteredDevice, MobileServerExecuteResult, MobileServerFailureError, MobileServerFailureResponse, MobileServerIdentity, MobileServerNotificationCategoryPreference, MobileServerNotificationPreferenceScope, MobileServerNotificationPreferences, MobileServerNotificationPreferencesResponse, MobileServerProfile, MobileServerProfileRequest, MobileServerProfileResponse, MobileServerPublicQueryParamsByType, MobileServerPublicQueryRequest, MobileServerPublicQueryType, MobileServerRegisteredDevice, MobileServerRegisteredDevicesResponse, MobileServerRequestType, MobileServerSelfIdentityResponse, MobileServerSuccessResponse, MobileServerUsernameAvailabilityRequest, MobileServerUsernameAvailabilityResponse, MobileSetPrivateModeParams, MobileSignedRequestParams, MobileUnregisterExpoTokenParams, MobileUpdateNotificationPreferencesParams, MobileUpdateUsernameParams, MobileUsernameAvailability };
@@ -1,14 +1,13 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ require("../MobileClient-9JSAzblH.cjs");
2
3
  //#region src/types/mobileErrorCodes.ts
3
4
  /**
4
5
  * Numeric error codes returned by the mobile service API. Identity codes (61xx) and notification codes
5
6
  * (62xx) are mobile-specific; the remaining codes are shared cross-service codes from the backend's common
6
- * error enum.
7
+ * error enum, inlined via spread from {@link NADO_ERROR_CODES}.
7
8
  */
8
9
  const MOBILE_ERROR_CODES = {
9
- NOT_IMPLEMENTED: 4001,
10
- INVALID_SIGNER: 2028,
11
- SERVICE_UNAVAILABLE: 1006,
10
+ ...require("@nadohq/shared").NADO_ERROR_CODES,
12
11
  INVALID_DISPLAY_NAME: 6100,
13
12
  USERNAME_UNAVAILABLE: 6101,
14
13
  IDENTITY_ALREADY_CLAIMED: 6102,
@@ -18,8 +17,7 @@ const MOBILE_ERROR_CODES = {
18
17
  PROFILE_NOT_FOUND: 6106,
19
18
  INVALID_EXPO_TOKEN: 6200,
20
19
  INVALID_DEVICE_METADATA: 6201,
21
- INVALID_PREFERENCES: 6202,
22
- INTERNAL_ERROR: 5e3
20
+ INVALID_PREFERENCES: 6202
23
21
  };
24
22
  //#endregion
25
23
  exports.MOBILE_ERROR_CODES = MOBILE_ERROR_CODES;
@@ -1 +1 @@
1
- {"version":3,"file":"mobileErrorCodes.cjs","names":[],"sources":["../../src/types/mobileErrorCodes.ts"],"sourcesContent":["/**\n * Numeric error codes returned by the mobile service API. Identity codes (61xx) and notification codes\n * (62xx) are mobile-specific; the remaining codes are shared cross-service codes from the backend's common\n * error enum.\n */\nexport const MOBILE_ERROR_CODES = {\n NOT_IMPLEMENTED: 4001,\n INVALID_SIGNER: 2028,\n SERVICE_UNAVAILABLE: 1006,\n INVALID_DISPLAY_NAME: 6100,\n USERNAME_UNAVAILABLE: 6101,\n IDENTITY_ALREADY_CLAIMED: 6102,\n IDENTITY_REQUIRED: 6103,\n INVALID_IDENTITY_TARGET: 6104,\n STALE_IDENTITY_UPDATE: 6105,\n PROFILE_NOT_FOUND: 6106,\n INVALID_EXPO_TOKEN: 6200,\n INVALID_DEVICE_METADATA: 6201,\n INVALID_PREFERENCES: 6202,\n INTERNAL_ERROR: 5000,\n} as const;\n\n/**\n * Union of all known mobile service API error codes.\n */\nexport type MobileErrorCode =\n (typeof MOBILE_ERROR_CODES)[keyof typeof MOBILE_ERROR_CODES];\n"],"mappings":";;;;;;;AAKA,MAAa,qBAAqB;CAChC,iBAAiB;CACjB,gBAAgB;CAChB,qBAAqB;CACrB,sBAAsB;CACtB,sBAAsB;CACtB,0BAA0B;CAC1B,mBAAmB;CACnB,yBAAyB;CACzB,uBAAuB;CACvB,mBAAmB;CACnB,oBAAoB;CACpB,yBAAyB;CACzB,qBAAqB;CACrB,gBAAgB;AAClB"}
1
+ {"version":3,"file":"mobileErrorCodes.cjs","names":["NADO_ERROR_CODES"],"sources":["../../src/types/mobileErrorCodes.ts"],"sourcesContent":["import { NADO_ERROR_CODES } from '@nadohq/shared';\n\n/**\n * Numeric error codes returned by the mobile service API. Identity codes (61xx) and notification codes\n * (62xx) are mobile-specific; the remaining codes are shared cross-service codes from the backend's common\n * error enum, inlined via spread from {@link NADO_ERROR_CODES}.\n */\nexport const MOBILE_ERROR_CODES = {\n ...NADO_ERROR_CODES,\n INVALID_DISPLAY_NAME: 6100,\n USERNAME_UNAVAILABLE: 6101,\n IDENTITY_ALREADY_CLAIMED: 6102,\n IDENTITY_REQUIRED: 6103,\n INVALID_IDENTITY_TARGET: 6104,\n STALE_IDENTITY_UPDATE: 6105,\n PROFILE_NOT_FOUND: 6106,\n INVALID_EXPO_TOKEN: 6200,\n INVALID_DEVICE_METADATA: 6201,\n INVALID_PREFERENCES: 6202,\n} as const;\n\n/**\n * Union of all known mobile service API error codes.\n */\nexport type MobileErrorCode =\n (typeof MOBILE_ERROR_CODES)[keyof typeof MOBILE_ERROR_CODES];\n"],"mappings":";;;;;;;;AAOA,MAAa,qBAAqB;CAChC,2BAAGA,EAAAA;CACH,sBAAsB;CACtB,sBAAsB;CACtB,0BAA0B;CAC1B,mBAAmB;CACnB,yBAAyB;CACzB,uBAAuB;CACvB,mBAAmB;CACnB,oBAAoB;CACpB,yBAAyB;CACzB,qBAAqB;AACvB"}
@@ -1,2 +1,2 @@
1
- import { n as MobileErrorCode, t as MOBILE_ERROR_CODES } from "../mobileErrorCodes-D8KzJXbU.cjs";
1
+ import { n as MobileErrorCode, t as MOBILE_ERROR_CODES } from "../mobileErrorCodes-BeyBKmwh.cjs";
2
2
  export { MOBILE_ERROR_CODES, MobileErrorCode };
@@ -1,2 +1,2 @@
1
- import { n as MobileErrorCode, t as MOBILE_ERROR_CODES } from "../mobileErrorCodes-DM09jnNe.js";
1
+ import { n as MobileErrorCode, t as MOBILE_ERROR_CODES } from "../mobileErrorCodes-QG5XbEY6.js";
2
2
  export { MOBILE_ERROR_CODES, MobileErrorCode };
@@ -1,13 +1,12 @@
1
+ import { NADO_ERROR_CODES } from "@nadohq/shared";
1
2
  //#region src/types/mobileErrorCodes.ts
2
3
  /**
3
4
  * Numeric error codes returned by the mobile service API. Identity codes (61xx) and notification codes
4
5
  * (62xx) are mobile-specific; the remaining codes are shared cross-service codes from the backend's common
5
- * error enum.
6
+ * error enum, inlined via spread from {@link NADO_ERROR_CODES}.
6
7
  */
7
8
  const MOBILE_ERROR_CODES = {
8
- NOT_IMPLEMENTED: 4001,
9
- INVALID_SIGNER: 2028,
10
- SERVICE_UNAVAILABLE: 1006,
9
+ ...NADO_ERROR_CODES,
11
10
  INVALID_DISPLAY_NAME: 6100,
12
11
  USERNAME_UNAVAILABLE: 6101,
13
12
  IDENTITY_ALREADY_CLAIMED: 6102,
@@ -17,8 +16,7 @@ const MOBILE_ERROR_CODES = {
17
16
  PROFILE_NOT_FOUND: 6106,
18
17
  INVALID_EXPO_TOKEN: 6200,
19
18
  INVALID_DEVICE_METADATA: 6201,
20
- INVALID_PREFERENCES: 6202,
21
- INTERNAL_ERROR: 5e3
19
+ INVALID_PREFERENCES: 6202
22
20
  };
23
21
  //#endregion
24
22
  export { MOBILE_ERROR_CODES };
@@ -1 +1 @@
1
- {"version":3,"file":"mobileErrorCodes.js","names":[],"sources":["../../src/types/mobileErrorCodes.ts"],"sourcesContent":["/**\n * Numeric error codes returned by the mobile service API. Identity codes (61xx) and notification codes\n * (62xx) are mobile-specific; the remaining codes are shared cross-service codes from the backend's common\n * error enum.\n */\nexport const MOBILE_ERROR_CODES = {\n NOT_IMPLEMENTED: 4001,\n INVALID_SIGNER: 2028,\n SERVICE_UNAVAILABLE: 1006,\n INVALID_DISPLAY_NAME: 6100,\n USERNAME_UNAVAILABLE: 6101,\n IDENTITY_ALREADY_CLAIMED: 6102,\n IDENTITY_REQUIRED: 6103,\n INVALID_IDENTITY_TARGET: 6104,\n STALE_IDENTITY_UPDATE: 6105,\n PROFILE_NOT_FOUND: 6106,\n INVALID_EXPO_TOKEN: 6200,\n INVALID_DEVICE_METADATA: 6201,\n INVALID_PREFERENCES: 6202,\n INTERNAL_ERROR: 5000,\n} as const;\n\n/**\n * Union of all known mobile service API error codes.\n */\nexport type MobileErrorCode =\n (typeof MOBILE_ERROR_CODES)[keyof typeof MOBILE_ERROR_CODES];\n"],"mappings":";;;;;;AAKA,MAAa,qBAAqB;CAChC,iBAAiB;CACjB,gBAAgB;CAChB,qBAAqB;CACrB,sBAAsB;CACtB,sBAAsB;CACtB,0BAA0B;CAC1B,mBAAmB;CACnB,yBAAyB;CACzB,uBAAuB;CACvB,mBAAmB;CACnB,oBAAoB;CACpB,yBAAyB;CACzB,qBAAqB;CACrB,gBAAgB;AAClB"}
1
+ {"version":3,"file":"mobileErrorCodes.js","names":[],"sources":["../../src/types/mobileErrorCodes.ts"],"sourcesContent":["import { NADO_ERROR_CODES } from '@nadohq/shared';\n\n/**\n * Numeric error codes returned by the mobile service API. Identity codes (61xx) and notification codes\n * (62xx) are mobile-specific; the remaining codes are shared cross-service codes from the backend's common\n * error enum, inlined via spread from {@link NADO_ERROR_CODES}.\n */\nexport const MOBILE_ERROR_CODES = {\n ...NADO_ERROR_CODES,\n INVALID_DISPLAY_NAME: 6100,\n USERNAME_UNAVAILABLE: 6101,\n IDENTITY_ALREADY_CLAIMED: 6102,\n IDENTITY_REQUIRED: 6103,\n INVALID_IDENTITY_TARGET: 6104,\n STALE_IDENTITY_UPDATE: 6105,\n PROFILE_NOT_FOUND: 6106,\n INVALID_EXPO_TOKEN: 6200,\n INVALID_DEVICE_METADATA: 6201,\n INVALID_PREFERENCES: 6202,\n} as const;\n\n/**\n * Union of all known mobile service API error codes.\n */\nexport type MobileErrorCode =\n (typeof MOBILE_ERROR_CODES)[keyof typeof MOBILE_ERROR_CODES];\n"],"mappings":";;;;;;;AAOA,MAAa,qBAAqB;CAChC,GAAG;CACH,sBAAsB;CACtB,sBAAsB;CACtB,0BAA0B;CAC1B,mBAAmB;CACnB,yBAAyB;CACzB,uBAAuB;CACvB,mBAAmB;CACnB,oBAAoB;CACpB,yBAAyB;CACzB,qBAAqB;AACvB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nadohq/mobile-client",
3
- "version": "0.27.0",
3
+ "version": "0.29.0",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "description": "HTTP client for the Nado mobile service API — username claims, profiles, privacy settings, and push notification devices & preferences",
@@ -42,7 +42,7 @@
42
42
  "types": "./dist/index.d.ts",
43
43
  "dependencies": {
44
44
  "@msgpack/msgpack": "3.1.3",
45
- "@nadohq/shared": "^0.27.0",
45
+ "@nadohq/shared": "^0.29.0",
46
46
  "axios": "1.16.1"
47
47
  },
48
48
  "peerDependencies": {
@@ -54,5 +54,5 @@
54
54
  "bignumber.js": "11.1.1",
55
55
  "viem": "2.52.0"
56
56
  },
57
- "gitHead": "8a372c1df88e29446e9fd60072c76003d403fdce"
57
+ "gitHead": "cb15bfd6a018f18a335cb8e7e755d1533767dcd4"
58
58
  }
@@ -1,18 +1,26 @@
1
- import { MobileServerFailureResponse } from './serverBaseTypes';
1
+ import { BaseServerFailureError } from '@nadohq/shared';
2
+ import {
3
+ MobileServerFailureResponse,
4
+ MobileServerRequestType,
5
+ } from './serverBaseTypes';
2
6
 
3
7
  /**
4
8
  * Error thrown when the mobile service API returns a failure envelope, either as a non-2xx HTTP response
5
- * or a 2xx response with `status: 'failure'`.
9
+ * or a 2xx response with `status: 'failure'`. The numeric error code is exposed directly on
10
+ * {@link BaseServerFailureError.errorCode} for comparison against {@link MOBILE_ERROR_CODES}.
6
11
  */
7
- export class MobileServerFailureError extends Error {
8
- constructor(
9
- readonly responseData: MobileServerFailureResponse,
10
- /**
11
- * HTTP status code of the response, e.g. `404` for `PROFILE_NOT_FOUND`. Unlike the engine, the mobile
12
- * backend maps domain failures onto HTTP statuses.
13
- */
14
- readonly httpStatus: number,
15
- ) {
16
- super(`${responseData.error_code}: ${responseData.error}`);
12
+ export class MobileServerFailureError extends BaseServerFailureError {
13
+ declare readonly responseData: MobileServerFailureResponse;
14
+ declare readonly requestType: MobileServerRequestType;
15
+
16
+ /**
17
+ * HTTP status code of the response, e.g. `404` for `PROFILE_NOT_FOUND`. Unlike the engine, the mobile
18
+ * backend maps domain failures onto HTTP statuses.
19
+ */
20
+ readonly httpStatus: number;
21
+
22
+ constructor(responseData: MobileServerFailureResponse, httpStatus: number) {
23
+ super(responseData, 'MobileServerFailureError');
24
+ this.httpStatus = httpStatus;
17
25
  }
18
26
  }
@@ -1,12 +1,12 @@
1
+ import { NADO_ERROR_CODES } from '@nadohq/shared';
2
+
1
3
  /**
2
4
  * Numeric error codes returned by the mobile service API. Identity codes (61xx) and notification codes
3
5
  * (62xx) are mobile-specific; the remaining codes are shared cross-service codes from the backend's common
4
- * error enum.
6
+ * error enum, inlined via spread from {@link NADO_ERROR_CODES}.
5
7
  */
6
8
  export const MOBILE_ERROR_CODES = {
7
- NOT_IMPLEMENTED: 4001,
8
- INVALID_SIGNER: 2028,
9
- SERVICE_UNAVAILABLE: 1006,
9
+ ...NADO_ERROR_CODES,
10
10
  INVALID_DISPLAY_NAME: 6100,
11
11
  USERNAME_UNAVAILABLE: 6101,
12
12
  IDENTITY_ALREADY_CLAIMED: 6102,
@@ -17,7 +17,6 @@ export const MOBILE_ERROR_CODES = {
17
17
  INVALID_EXPO_TOKEN: 6200,
18
18
  INVALID_DEVICE_METADATA: 6201,
19
19
  INVALID_PREFERENCES: 6202,
20
- INTERNAL_ERROR: 5000,
21
20
  } as const;
22
21
 
23
22
  /**
@@ -1,25 +0,0 @@
1
- import { t as MobileServerFailureResponse } from "./serverBaseTypes-BicXMrZV.cjs";
2
-
3
- //#region src/types/MobileServerFailureError.d.ts
4
- /**
5
- * Error thrown when the mobile service API returns a failure envelope, either as a non-2xx HTTP response
6
- * or a 2xx response with `status: 'failure'`.
7
- */
8
- declare class MobileServerFailureError extends Error {
9
- readonly responseData: MobileServerFailureResponse;
10
- /**
11
- * HTTP status code of the response, e.g. `404` for `PROFILE_NOT_FOUND`. Unlike the engine, the mobile
12
- * backend maps domain failures onto HTTP statuses.
13
- */
14
- readonly httpStatus: number;
15
- constructor(responseData: MobileServerFailureResponse,
16
- /**
17
- * HTTP status code of the response, e.g. `404` for `PROFILE_NOT_FOUND`. Unlike the engine, the mobile
18
- * backend maps domain failures onto HTTP statuses.
19
- */
20
-
21
- httpStatus: number);
22
- }
23
- //#endregion
24
- export { MobileServerFailureError as t };
25
- //# sourceMappingURL=MobileServerFailureError-Belp_yef.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MobileServerFailureError-Belp_yef.d.cts","names":[],"sources":["../src/types/src/types/MobileServerFailureError.ts"],"mappings":";;;;;AAMA;;cAAa,wBAAA,SAAiC,KAAA;EAAA,SAEjC,YAAA,EAAc,2BAAA;EAAA;;;;EAAA,SAKd,UAAA;cALA,YAAA,EAAc,2BAAA;EAAA;;;;;EAKd,UAAA;AAAA"}
@@ -1,25 +0,0 @@
1
- import { t as MobileServerFailureResponse } from "./serverBaseTypes-ewbo8l4R.js";
2
-
3
- //#region src/types/MobileServerFailureError.d.ts
4
- /**
5
- * Error thrown when the mobile service API returns a failure envelope, either as a non-2xx HTTP response
6
- * or a 2xx response with `status: 'failure'`.
7
- */
8
- declare class MobileServerFailureError extends Error {
9
- readonly responseData: MobileServerFailureResponse;
10
- /**
11
- * HTTP status code of the response, e.g. `404` for `PROFILE_NOT_FOUND`. Unlike the engine, the mobile
12
- * backend maps domain failures onto HTTP statuses.
13
- */
14
- readonly httpStatus: number;
15
- constructor(responseData: MobileServerFailureResponse,
16
- /**
17
- * HTTP status code of the response, e.g. `404` for `PROFILE_NOT_FOUND`. Unlike the engine, the mobile
18
- * backend maps domain failures onto HTTP statuses.
19
- */
20
-
21
- httpStatus: number);
22
- }
23
- //#endregion
24
- export { MobileServerFailureError as t };
25
- //# sourceMappingURL=MobileServerFailureError-DqM0T6CB.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MobileServerFailureError-DqM0T6CB.d.ts","names":[],"sources":["../src/types/src/types/MobileServerFailureError.ts"],"mappings":";;;;;AAMA;;cAAa,wBAAA,SAAiC,KAAA;EAAA,SAEjC,YAAA,EAAc,2BAAA;EAAA;;;;EAAA,SAKd,UAAA;cALA,YAAA,EAAc,2BAAA;EAAA;;;;;EAKd,UAAA;AAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"mobileErrorCodes-D8KzJXbU.d.cts","names":[],"sources":["../src/types/src/types/mobileErrorCodes.ts"],"mappings":";;AAKA;;;;cAAa,kBAAA;EAAA;;;;;;;;;;;;;;;AAoBb;;;AAAA,KAAY,eAAA,WACF,kBAAA,eAAiC,kBAAkB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"mobileErrorCodes-DM09jnNe.d.ts","names":[],"sources":["../src/types/src/types/mobileErrorCodes.ts"],"mappings":";;AAKA;;;;cAAa,kBAAA;EAAA;;;;;;;;;;;;;;;AAoBb;;;AAAA,KAAY,eAAA,WACF,kBAAA,eAAiC,kBAAkB"}