@bitgo/public-types 5.76.0 → 5.76.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.UnionC<[t.NumberC, import("io-ts-types").NumberFromStringC]>;
60
- expiry: t.UnionC<[t.NumberC, import("io-ts-types").NumberFromStringC]>;
59
+ amount: import("io-ts-types").NumberFromStringC;
60
+ expiry: t.NumberC;
61
61
  }>, t.PartialC<{
62
62
  memoId: t.StringC;
63
63
  token: t.StringC;
@@ -35,8 +35,8 @@ exports.CantonTransferAcknowledgeIntent = t.intersection([
35
35
  contractId: t.string,
36
36
  senderPartyId: t.string,
37
37
  updateId: t.string,
38
- amount: t.union([t.number, io_ts_types_1.NumberFromString]),
39
- expiry: t.union([t.number, io_ts_types_1.NumberFromString]),
38
+ amount: io_ts_types_1.NumberFromString,
39
+ expiry: t.number,
40
40
  }),
41
41
  t.partial({
42
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,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"}
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,8BAAgB;QACxB,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"}
@@ -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.UnionC<[t.NumberC, import("io-ts-types").NumberFromStringC]>;
1217
- expiry: t.UnionC<[t.NumberC, import("io-ts-types").NumberFromStringC]>;
1216
+ amount: import("io-ts-types").NumberFromStringC;
1217
+ expiry: t.NumberC;
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.UnionC<[t.NumberC, import("io-ts-types").NumberFromStringC]>;
1315
- expiry: t.UnionC<[t.NumberC, import("io-ts-types").NumberFromStringC]>;
1314
+ amount: import("io-ts-types").NumberFromStringC;
1315
+ expiry: t.NumberC;
1316
1316
  }>, t.PartialC<{
1317
1317
  memoId: t.StringC;
1318
1318
  token: t.StringC;
@@ -10231,8 +10231,8 @@ export declare const TransactionRequest: t.UnionC<[t.IntersectionC<[t.Intersecti
10231
10231
  contractId: t.StringC;
10232
10232
  senderPartyId: t.StringC;
10233
10233
  updateId: t.StringC;
10234
- amount: t.UnionC<[t.NumberC, import("io-ts-types").NumberFromStringC]>;
10235
- expiry: t.UnionC<[t.NumberC, import("io-ts-types").NumberFromStringC]>;
10234
+ amount: import("io-ts-types").NumberFromStringC;
10235
+ expiry: t.NumberC;
10236
10236
  }>, t.PartialC<{
10237
10237
  memoId: t.StringC;
10238
10238
  token: t.StringC;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitgo/public-types",
3
- "version": "5.76.0",
3
+ "version": "5.76.1",
4
4
  "description": "Collection of types exposed externally as part of the BitGo public API",
5
5
  "license": "UNLICENSED",
6
6
  "author": "",
@@ -15,8 +15,8 @@ import { intentTypes } from "./intentType";
15
15
  * @param {String} contractId - The contract id that needs to be acted on by the receiver
16
16
  * @param {String} senderPartyId - The address (partyId) of the sender
17
17
  * @param {String} updateId - The transaction id of the deposit
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)
18
+ * @param {String} amount - The deposit amount (numeric string, decoded to number)
19
+ * @param {Number} expiry - The expiry epoch
20
20
  * @param {String} [memoId] - The optional memoId
21
21
  * @param {String} [token] - The optional token
22
22
  */
@@ -27,8 +27,8 @@ export const CantonTransferAcknowledgeIntent = t.intersection([
27
27
  contractId: t.string,
28
28
  senderPartyId: t.string,
29
29
  updateId: t.string,
30
- amount: t.union([t.number, NumberFromString]),
31
- expiry: t.union([t.number, NumberFromString]),
30
+ amount: NumberFromString,
31
+ expiry: t.number,
32
32
  }),
33
33
  t.partial({
34
34
  memoId: t.string,