@proton/wrap-constants 0.2.36 → 0.2.37

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.
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
- "version": "0.2.36",
8
+ "version": "0.2.37",
9
9
  "license": "MIT",
10
10
  "main": "dist/index.js",
11
11
  "typings": "dist/index.d.ts",
@@ -26,7 +26,7 @@
26
26
  "analyze": "size-limit --why"
27
27
  },
28
28
  "devDependencies": {
29
- "@bloks/numbers": "^26.0.3",
29
+ "@bloks/numbers": "^27.0.0",
30
30
  "@bloks/utils": "^25.0.0",
31
31
  "@proton/js": "^26.0.1",
32
32
  "@size-limit/preset-small-lib": "^4.9.1",
@@ -44,5 +44,5 @@
44
44
  "resolutions": {
45
45
  "typescript": "4.5"
46
46
  },
47
- "gitHead": "bc96c85f613eeb39fd50f7eda94719d635b5bdb6"
47
+ "gitHead": "e864a7bd9fe9232b216768edfd070385fbc95070"
48
48
  }
@@ -115,6 +115,13 @@ export const syncParser = z.object({
115
115
  })
116
116
  export type Sync = z.infer<typeof syncParser>
117
117
 
118
+ export const latestSyncParser = z.object({
119
+ dbSecondsBehind: z.number(),
120
+ chronicleSecondsBehind: z.number(),
121
+ maxSecondsBehind: z.number()
122
+ })
123
+ export type LatestSync = z.infer<typeof latestSyncParser>
124
+
118
125
  export enum orderType { ORDERBOOK = 0, LIMIT = 1, STOPLOSS = 2, TAKEPROFIT = 3 }
119
126
 
120
127
  export enum orderSide { INVALID = 0, BUY = 1, SELL = 2 }