@plyaz/types 1.7.31 → 1.8.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.
@@ -139,15 +139,6 @@ export interface MonitoringConfig {
139
139
  deviceId: string;
140
140
  platform: string;
141
141
  }
142
- /**
143
- * Network metrics subset
144
- */
145
- export interface NetworkMetrics {
146
- downlink: number | null;
147
- downlinkMax: number | null;
148
- rtt: number | null;
149
- saveData: boolean;
150
- }
151
142
  /**
152
143
  * Network event statistics
153
144
  */
@@ -426,4 +417,13 @@ export interface DeviceInfo {
426
417
  offset: number;
427
418
  };
428
419
  }
420
+ /**
421
+ * Network metrics subset
422
+ */
423
+ export interface NetworkMetrics {
424
+ downlink: number | null;
425
+ downlinkMax: number | null;
426
+ rtt: number | null;
427
+ saveData: boolean;
428
+ }
429
429
  export {};
package/dist/index.cjs CHANGED
@@ -4113,17 +4113,17 @@ __name(cleanParams, "cleanParams");
4113
4113
  function custom(check, _params = {}, fatal) {
4114
4114
  if (check)
4115
4115
  return ZodAny.create().superRefine((data, ctx) => {
4116
- const r = check(data);
4117
- if (r instanceof Promise) {
4118
- return r.then((r2) => {
4119
- if (!r2) {
4116
+ const r2 = check(data);
4117
+ if (r2 instanceof Promise) {
4118
+ return r2.then((r3) => {
4119
+ if (!r3) {
4120
4120
  const params = cleanParams(_params, data);
4121
4121
  const _fatal = params.fatal ?? fatal ?? true;
4122
4122
  ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
4123
4123
  }
4124
4124
  });
4125
4125
  }
4126
- if (!r) {
4126
+ if (!r2) {
4127
4127
  const params = cleanParams(_params, data);
4128
4128
  const _fatal = params.fatal ?? fatal ?? true;
4129
4129
  ctx.addIssue({ code: "custom", ...params, fatal: _fatal });
@@ -4505,7 +4505,7 @@ var ALL_EVENTS = {
4505
4505
  ...CACHE_EVENTS
4506
4506
  };
4507
4507
 
4508
- // node_modules/.pnpm/@plyaz+config@1.5.4_next@15.4.7_react-dom@19.2.0_react@19.2.0_typescript@5.9.3_zod@3.25.76/node_modules/@plyaz/config/dist/index.mjs
4508
+ // node_modules/.pnpm/@plyaz+config@1.5.5_next@15.4.7_react-dom@19.2.0_react@19.2.0_typescript@5.9.3_zod@3.25.76/node_modules/@plyaz/config/dist/index.mjs
4509
4509
  globalThis.process.env.NODE_ENV === "development";
4510
4510
  globalThis.process.env.NODE_ENV === "production";
4511
4511
  globalThis.process.env.NODE_ENV === "test";
@@ -4515,8 +4515,8 @@ globalThis.process.env.NODE_ENV === "test";
4515
4515
  ({ api: globalThis.process.env.NEXT_PUBLIC_API_URL });
4516
4516
  ({ FNV_64_PRIME: BigInt("0x100000001b3"), FNV_64_OFFSET: BigInt("0xcbf29ce484222325")});
4517
4517
  var Bo = { BAD_REQUEST: 400, UNAUTHORIZED: 401, FORBIDDEN: 403, NOT_FOUND: 404, REQUEST_TIMEOUT: 408, CONFLICT: 409, UNPROCESSABLE_ENTITY: 422, TOO_MANY_REQUESTS: 429, INTERNAL_SERVER_ERROR: 500, BAD_GATEWAY: 502, SERVICE_UNAVAILABLE: 503, GATEWAY_TIMEOUT: 504};
4518
- var n = { unauthorized: { status: 401}, internal_server_error: { status: 500}};
4519
- ({ InvalidInput: { timestamp: (/* @__PURE__ */ new Date()).toISOString() }, [n.internal_server_error.status]: { timestamp: (/* @__PURE__ */ new Date()).toISOString() }, [n.unauthorized.status]: { timestamp: (/* @__PURE__ */ new Date()).toISOString() } });
4518
+ var T = { unauthorized: { status: 401}, internal_server_error: { status: 500}};
4519
+ ({ InvalidInput: { timestamp: (/* @__PURE__ */ new Date()).toISOString() }, [T.internal_server_error.status]: { timestamp: (/* @__PURE__ */ new Date()).toISOString() }, [T.unauthorized.status]: { timestamp: (/* @__PURE__ */ new Date()).toISOString() } });
4520
4520
 
4521
4521
  // src/api/errors/enum.ts
4522
4522
  var OPERATIONS = {