@bitgo/public-types 5.75.0 → 5.75.1

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.
@@ -56,8 +56,8 @@ export declare const CantonTransferAcknowledgeIntent: t.IntersectionC<[t.Interse
56
56
  contractId: t.StringC;
57
57
  senderPartyId: t.StringC;
58
58
  updateId: t.StringC;
59
- amount: t.NumberC;
60
- expiry: t.NumberC;
59
+ amount: t.UnionC<[t.NumberC, import("io-ts-types").NumberFromStringC]>;
60
+ expiry: t.UnionC<[t.NumberC, import("io-ts-types").NumberFromStringC]>;
61
61
  }>, t.PartialC<{
62
62
  memoId: t.StringC;
63
63
  token: t.StringC;
@@ -25,6 +25,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.CantonTransferAcknowledgeIntent = void 0;
27
27
  const t = __importStar(require("io-ts"));
28
+ const io_ts_types_1 = require("io-ts-types");
28
29
  const baseIntent_1 = require("./baseIntent");
29
30
  const intentType_1 = require("./intentType");
30
31
  exports.CantonTransferAcknowledgeIntent = t.intersection([
@@ -34,8 +35,8 @@ exports.CantonTransferAcknowledgeIntent = t.intersection([
34
35
  contractId: t.string,
35
36
  senderPartyId: t.string,
36
37
  updateId: t.string,
37
- amount: t.number,
38
- expiry: t.number,
38
+ amount: t.union([t.number, io_ts_types_1.NumberFromString]),
39
+ expiry: t.union([t.number, io_ts_types_1.NumberFromString]),
39
40
  }),
40
41
  t.partial({
41
42
  memoId: t.string,
@@ -1 +1 @@
1
- {"version":3,"file":"cantonTransferAcknowledgeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/cantonTransferAcknowledgeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,6CAA2C;AAmB9B,QAAA,+BAA+B,GAAG,CAAC,CAAC,YAAY,CAAC;IAC5D,uBAAU;IACV,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,mBAAmB;QAC3C,UAAU,EAAE,CAAC,CAAC,MAAM;QACpB,aAAa,EAAE,CAAC,CAAC,MAAM;QACvB,QAAQ,EAAE,CAAC,CAAC,MAAM;QAClB,MAAM,EAAE,CAAC,CAAC,MAAM;QAChB,MAAM,EAAE,CAAC,CAAC,MAAM;KACjB,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,MAAM,EAAE,CAAC,CAAC,MAAM;QAChB,KAAK,EAAE,CAAC,CAAC,MAAM;KAChB,CAAC;CACH,CAAC,CAAC"}
1
+ {"version":3,"file":"cantonTransferAcknowledgeIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/cantonTransferAcknowledgeIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA+C;AAC/C,6CAA0C;AAC1C,6CAA2C;AAmB9B,QAAA,+BAA+B,GAAG,CAAC,CAAC,YAAY,CAAC;IAC5D,uBAAU;IACV,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,mBAAmB;QAC3C,UAAU,EAAE,CAAC,CAAC,MAAM;QACpB,aAAa,EAAE,CAAC,CAAC,MAAM;QACvB,QAAQ,EAAE,CAAC,CAAC,MAAM;QAClB,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,8BAAgB,CAAC,CAAC;QAC7C,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,8BAAgB,CAAC,CAAC;KAC9C,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,MAAM,EAAE,CAAC,CAAC,MAAM;QAChB,KAAK,EAAE,CAAC,CAAC,MAAM;KAChB,CAAC;CACH,CAAC,CAAC"}
@@ -1213,8 +1213,8 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
1213
1213
  contractId: t.StringC;
1214
1214
  senderPartyId: t.StringC;
1215
1215
  updateId: t.StringC;
1216
- amount: t.NumberC;
1217
- expiry: t.NumberC;
1216
+ amount: t.UnionC<[t.NumberC, import("io-ts-types").NumberFromStringC]>;
1217
+ expiry: t.UnionC<[t.NumberC, import("io-ts-types").NumberFromStringC]>;
1218
1218
  }>, t.PartialC<{
1219
1219
  memoId: t.StringC;
1220
1220
  token: t.StringC;
@@ -1311,8 +1311,8 @@ export declare const TransactionRequestLite: t.IntersectionC<[t.IntersectionC<[t
1311
1311
  contractId: t.StringC;
1312
1312
  senderPartyId: t.StringC;
1313
1313
  updateId: t.StringC;
1314
- amount: t.NumberC;
1315
- expiry: t.NumberC;
1314
+ amount: t.UnionC<[t.NumberC, import("io-ts-types").NumberFromStringC]>;
1315
+ expiry: t.UnionC<[t.NumberC, import("io-ts-types").NumberFromStringC]>;
1316
1316
  }>, t.PartialC<{
1317
1317
  memoId: t.StringC;
1318
1318
  token: t.StringC;
@@ -10104,8 +10104,8 @@ export declare const TransactionRequest: t.UnionC<[t.IntersectionC<[t.Intersecti
10104
10104
  contractId: t.StringC;
10105
10105
  senderPartyId: t.StringC;
10106
10106
  updateId: t.StringC;
10107
- amount: t.NumberC;
10108
- expiry: t.NumberC;
10107
+ amount: t.UnionC<[t.NumberC, import("io-ts-types").NumberFromStringC]>;
10108
+ expiry: t.UnionC<[t.NumberC, import("io-ts-types").NumberFromStringC]>;
10109
10109
  }>, t.PartialC<{
10110
10110
  memoId: t.StringC;
10111
10111
  token: t.StringC;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitgo/public-types",
3
- "version": "5.75.0",
3
+ "version": "5.75.1",
4
4
  "description": "Collection of types exposed externally as part of the BitGo public API",
5
5
  "license": "UNLICENSED",
6
6
  "author": "",
@@ -1,4 +1,5 @@
1
1
  import * as t from "io-ts";
2
+ import { NumberFromString } from "io-ts-types";
2
3
  import { BaseIntent } from "./baseIntent";
3
4
  import { intentTypes } from "./intentType";
4
5
 
@@ -14,8 +15,8 @@ import { intentTypes } from "./intentType";
14
15
  * @param {String} contractId - The contract id that needs to be acted on by the receiver
15
16
  * @param {String} senderPartyId - The address (partyId) of the sender
16
17
  * @param {String} updateId - The transaction id of the deposit
17
- * @param {Number} amount - The deposit amount
18
- * @param {Number} expiry - The expiry epoch
18
+ * @param {Number | String} amount - The deposit amount (accepts number or numeric string)
19
+ * @param {Number | String} expiry - The expiry epoch (accepts number or numeric string)
19
20
  * @param {String} [memoId] - The optional memoId
20
21
  * @param {String} [token] - The optional token
21
22
  */
@@ -26,8 +27,8 @@ export const CantonTransferAcknowledgeIntent = t.intersection([
26
27
  contractId: t.string,
27
28
  senderPartyId: t.string,
28
29
  updateId: t.string,
29
- amount: t.number,
30
- expiry: t.number,
30
+ amount: t.union([t.number, NumberFromString]),
31
+ expiry: t.union([t.number, NumberFromString]),
31
32
  }),
32
33
  t.partial({
33
34
  memoId: t.string,