@bitgo/public-types 6.31.0 → 6.34.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.
- package/dist/src/schema/transactionRequest/intents/cantonAllocationRequestIntent.d.ts +2 -1
- package/dist/src/schema/transactionRequest/intents/cantonAllocationRequestIntent.js +2 -1
- package/dist/src/schema/transactionRequest/intents/cantonAllocationRequestIntent.js.map +1 -1
- package/dist/src/schema/transactionRequest/intents/intent.d.ts +2 -1
- package/dist/src/schema/transactionRequest/transactionRequest.d.ts +4 -2
- package/package.json +1 -1
- package/src/schema/transactionRequest/intents/cantonAllocationRequestIntent.ts +4 -2
|
@@ -79,7 +79,7 @@ export declare const CantonAllocationRequestIntent: t.IntersectionC<[t.Intersect
|
|
|
79
79
|
intentType: t.LiteralC<"allocationRequest">;
|
|
80
80
|
updateId: t.StringC;
|
|
81
81
|
operatorId: t.StringC;
|
|
82
|
-
contractId: t.StringC
|
|
82
|
+
contractId: t.UnionC<[t.StringC, t.NullC]>;
|
|
83
83
|
tradeId: t.StringC;
|
|
84
84
|
transferLegId: t.StringC;
|
|
85
85
|
senderPartyId: t.StringC;
|
|
@@ -92,5 +92,6 @@ export declare const CantonAllocationRequestIntent: t.IntersectionC<[t.Intersect
|
|
|
92
92
|
settleBefore: t.StringC;
|
|
93
93
|
}>, t.PartialC<{
|
|
94
94
|
comment: t.StringC;
|
|
95
|
+
requestedAt: t.StringC;
|
|
95
96
|
}>]>;
|
|
96
97
|
export type CantonAllocationRequestIntent = t.TypeOf<typeof CantonAllocationRequestIntent>;
|
|
@@ -33,7 +33,7 @@ exports.CantonAllocationRequestIntent = t.intersection([
|
|
|
33
33
|
intentType: intentType_1.intentTypes.allocationRequest,
|
|
34
34
|
updateId: t.string,
|
|
35
35
|
operatorId: t.string,
|
|
36
|
-
contractId: t.string,
|
|
36
|
+
contractId: t.union([t.string, t.null]),
|
|
37
37
|
tradeId: t.string,
|
|
38
38
|
transferLegId: t.string,
|
|
39
39
|
senderPartyId: t.string,
|
|
@@ -47,6 +47,7 @@ exports.CantonAllocationRequestIntent = t.intersection([
|
|
|
47
47
|
}),
|
|
48
48
|
t.partial({
|
|
49
49
|
comment: t.string,
|
|
50
|
+
requestedAt: t.string,
|
|
50
51
|
}),
|
|
51
52
|
]);
|
|
52
53
|
//# sourceMappingURL=cantonAllocationRequestIntent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cantonAllocationRequestIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/cantonAllocationRequestIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,6CAA2C;
|
|
1
|
+
{"version":3,"file":"cantonAllocationRequestIntent.js","sourceRoot":"","sources":["../../../../../src/schema/transactionRequest/intents/cantonAllocationRequestIntent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA2B;AAC3B,6CAA0C;AAC1C,6CAA2C;AA+B9B,QAAA,6BAA6B,GAAG,CAAC,CAAC,YAAY,CAAC;IAC1D,uBAAU;IACV,CAAC,CAAC,IAAI,CAAC;QACL,UAAU,EAAE,wBAAW,CAAC,iBAAiB;QACzC,QAAQ,EAAE,CAAC,CAAC,MAAM;QAClB,UAAU,EAAE,CAAC,CAAC,MAAM;QACpB,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC;QACvC,OAAO,EAAE,CAAC,CAAC,MAAM;QACjB,aAAa,EAAE,CAAC,CAAC,MAAM;QACvB,aAAa,EAAE,CAAC,CAAC,MAAM;QACvB,eAAe,EAAE,CAAC,CAAC,MAAM;QACzB,MAAM,EAAE,CAAC,CAAC,MAAM;QAChB,KAAK,EAAE,CAAC,CAAC,MAAM;QACf,YAAY,EAAE,CAAC,CAAC,MAAM;QACtB,aAAa,EAAE,CAAC,CAAC,MAAM;QACvB,cAAc,EAAE,CAAC,CAAC,MAAM;QACxB,YAAY,EAAE,CAAC,CAAC,MAAM;KACvB,CAAC;IACF,CAAC,CAAC,OAAO,CAAC;QACR,OAAO,EAAE,CAAC,CAAC,MAAM;QACjB,WAAW,EAAE,CAAC,CAAC,MAAM;KACtB,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -1705,7 +1705,7 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
|
1705
1705
|
intentType: t.LiteralC<"allocationRequest">;
|
|
1706
1706
|
updateId: t.StringC;
|
|
1707
1707
|
operatorId: t.StringC;
|
|
1708
|
-
contractId: t.StringC
|
|
1708
|
+
contractId: t.UnionC<[t.StringC, t.NullC]>;
|
|
1709
1709
|
tradeId: t.StringC;
|
|
1710
1710
|
transferLegId: t.StringC;
|
|
1711
1711
|
senderPartyId: t.StringC;
|
|
@@ -1718,6 +1718,7 @@ export declare const TransactionIntent: t.UnionC<[t.IntersectionC<[t.Intersectio
|
|
|
1718
1718
|
settleBefore: t.StringC;
|
|
1719
1719
|
}>, t.PartialC<{
|
|
1720
1720
|
comment: t.StringC;
|
|
1721
|
+
requestedAt: t.StringC;
|
|
1721
1722
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
1722
1723
|
intentType: t.KeyofC<{
|
|
1723
1724
|
payment: t.LiteralC<"payment">;
|
|
@@ -1803,7 +1803,7 @@ export declare const TransactionRequestLite: t.IntersectionC<[t.IntersectionC<[t
|
|
|
1803
1803
|
intentType: t.LiteralC<"allocationRequest">;
|
|
1804
1804
|
updateId: t.StringC;
|
|
1805
1805
|
operatorId: t.StringC;
|
|
1806
|
-
contractId: t.StringC
|
|
1806
|
+
contractId: t.UnionC<[t.StringC, t.NullC]>;
|
|
1807
1807
|
tradeId: t.StringC;
|
|
1808
1808
|
transferLegId: t.StringC;
|
|
1809
1809
|
senderPartyId: t.StringC;
|
|
@@ -1816,6 +1816,7 @@ export declare const TransactionRequestLite: t.IntersectionC<[t.IntersectionC<[t
|
|
|
1816
1816
|
settleBefore: t.StringC;
|
|
1817
1817
|
}>, t.PartialC<{
|
|
1818
1818
|
comment: t.StringC;
|
|
1819
|
+
requestedAt: t.StringC;
|
|
1819
1820
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
1820
1821
|
intentType: t.KeyofC<{
|
|
1821
1822
|
payment: t.LiteralC<"payment">;
|
|
@@ -16794,7 +16795,7 @@ export declare const TransactionRequest: t.UnionC<[t.IntersectionC<[t.Intersecti
|
|
|
16794
16795
|
intentType: t.LiteralC<"allocationRequest">;
|
|
16795
16796
|
updateId: t.StringC;
|
|
16796
16797
|
operatorId: t.StringC;
|
|
16797
|
-
contractId: t.StringC
|
|
16798
|
+
contractId: t.UnionC<[t.StringC, t.NullC]>;
|
|
16798
16799
|
tradeId: t.StringC;
|
|
16799
16800
|
transferLegId: t.StringC;
|
|
16800
16801
|
senderPartyId: t.StringC;
|
|
@@ -16807,6 +16808,7 @@ export declare const TransactionRequest: t.UnionC<[t.IntersectionC<[t.Intersecti
|
|
|
16807
16808
|
settleBefore: t.StringC;
|
|
16808
16809
|
}>, t.PartialC<{
|
|
16809
16810
|
comment: t.StringC;
|
|
16811
|
+
requestedAt: t.StringC;
|
|
16810
16812
|
}>]>, t.IntersectionC<[t.IntersectionC<[t.TypeC<{
|
|
16811
16813
|
intentType: t.KeyofC<{
|
|
16812
16814
|
payment: t.LiteralC<"payment">;
|
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@ import { intentTypes } from "./intentType";
|
|
|
17
17
|
* @param {String} intentType - The type of intent (always set to allocationRequest)
|
|
18
18
|
* @param {String} updateId - The transaction update id of the AllocationRequest event
|
|
19
19
|
* @param {String} operatorId - The settlement executor (operator / TradeWeb party)
|
|
20
|
-
* @param {String}
|
|
20
|
+
* @param {String|null} contractId - The settlement batch contract id (settlementRef.cid); null for Repo/Cash DvP trades where no pre-existing batch contract exists
|
|
21
21
|
* @param {String} tradeId - The trade identifier (settlementRef.id)
|
|
22
22
|
* @param {String} transferLegId - The specific leg being allocated (e.g. "${tradeId}-security-leg")
|
|
23
23
|
* @param {String} senderPartyId - The party performing this allocation (sender of this leg)
|
|
@@ -29,6 +29,7 @@ import { intentTypes } from "./intentType";
|
|
|
29
29
|
* @param {String} allocateBefore - ISO 8601 deadline by which allocation must be submitted
|
|
30
30
|
* @param {String} settleBefore - ISO 8601 deadline by which settlement must complete
|
|
31
31
|
* @param {String} [comment] - Optional free-form note
|
|
32
|
+
* @param {String} [requestedAt] - ISO 8601 timestamp; Canton enforces dvp.terms.createdAt for repoDvP AllocationFactory_Allocate; absent for cashDvP
|
|
32
33
|
*/
|
|
33
34
|
export const CantonAllocationRequestIntent = t.intersection([
|
|
34
35
|
BaseIntent,
|
|
@@ -36,7 +37,7 @@ export const CantonAllocationRequestIntent = t.intersection([
|
|
|
36
37
|
intentType: intentTypes.allocationRequest,
|
|
37
38
|
updateId: t.string,
|
|
38
39
|
operatorId: t.string,
|
|
39
|
-
contractId: t.string,
|
|
40
|
+
contractId: t.union([t.string, t.null]),
|
|
40
41
|
tradeId: t.string,
|
|
41
42
|
transferLegId: t.string,
|
|
42
43
|
senderPartyId: t.string,
|
|
@@ -50,6 +51,7 @@ export const CantonAllocationRequestIntent = t.intersection([
|
|
|
50
51
|
}),
|
|
51
52
|
t.partial({
|
|
52
53
|
comment: t.string,
|
|
54
|
+
requestedAt: t.string,
|
|
53
55
|
}),
|
|
54
56
|
]);
|
|
55
57
|
|