@propxchain/core-client 0.27.0-canary.66 → 0.28.0-canary.67
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/canisters/transaction_manager/transaction_manager.did.d.ts +4 -0
- package/dist/canisters/transaction_manager/transaction_manager.did.js +7 -0
- package/package.json +1 -1
- package/src/canisters/transaction_manager/transaction_manager.did +16 -9
- package/src/canisters/transaction_manager/transaction_manager.did.d.ts +4 -0
- package/src/canisters/transaction_manager/transaction_manager.did.js +7 -0
|
@@ -728,6 +728,8 @@ export interface WaterConnection {
|
|
|
728
728
|
'meterLocation' : [] | [string],
|
|
729
729
|
'connected' : TA6Answer,
|
|
730
730
|
}
|
|
731
|
+
export type Basis = { 'asking' : null } |
|
|
732
|
+
{ 'agreed' : null };
|
|
731
733
|
export interface _SERVICE {
|
|
732
734
|
'acknowledgeTA6Wording' : ActorMethod<[string], Result_1>,
|
|
733
735
|
'addParty' : ActorMethod<[string, string, string, string, boolean], Result_2>,
|
|
@@ -1048,6 +1050,7 @@ export interface _SERVICE {
|
|
|
1048
1050
|
* / while the isAdmin await is in flight.
|
|
1049
1051
|
*/
|
|
1050
1052
|
'recordRequisition' : ActorMethod<[string, Requisition], Result_1>,
|
|
1053
|
+
'releaseBuyerFromPlatform' : ActorMethod<[string], Result>,
|
|
1051
1054
|
'removeParty' : ActorMethod<[string, Principal], Result_1>,
|
|
1052
1055
|
'removeSolicitor' : ActorMethod<
|
|
1053
1056
|
[string, { 'seller' : null } | { 'buyer' : null }],
|
|
@@ -1075,6 +1078,7 @@ export interface _SERVICE {
|
|
|
1075
1078
|
'setLedgerManagerCanister' : ActorMethod<[string], Result>,
|
|
1076
1079
|
'setListingData' : ActorMethod<[string, string], Result>,
|
|
1077
1080
|
'setMonitorPrincipal' : ActorMethod<[Principal], Result>,
|
|
1081
|
+
'setPriceFromPlatform' : ActorMethod<[string, bigint, Basis], Result_1>,
|
|
1078
1082
|
'setPropertyLogbookCanister' : ActorMethod<[string], Result>,
|
|
1079
1083
|
'setPropertyRegistryCanister' : ActorMethod<[string], Result>,
|
|
1080
1084
|
'setUserManagementCanister' : ActorMethod<[string], Result>,
|
|
@@ -785,6 +785,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
785
785
|
'lastFailureAt' : IDL.Opt(IDL.Int),
|
|
786
786
|
'totalSinceDeploy' : IDL.Nat,
|
|
787
787
|
});
|
|
788
|
+
const Basis = IDL.Variant({ 'asking' : IDL.Null, 'agreed' : IDL.Null });
|
|
788
789
|
return IDL.Service({
|
|
789
790
|
'acknowledgeTA6Wording' : IDL.Func([IDL.Text], [Result_1], []),
|
|
790
791
|
'addParty' : IDL.Func(
|
|
@@ -1209,6 +1210,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
1209
1210
|
[],
|
|
1210
1211
|
),
|
|
1211
1212
|
'recordRequisition' : IDL.Func([IDL.Text, Requisition], [Result_1], []),
|
|
1213
|
+
'releaseBuyerFromPlatform' : IDL.Func([IDL.Text], [Result], []),
|
|
1212
1214
|
'removeParty' : IDL.Func([IDL.Text, IDL.Principal], [Result_1], []),
|
|
1213
1215
|
'removeSolicitor' : IDL.Func(
|
|
1214
1216
|
[IDL.Text, IDL.Variant({ 'seller' : IDL.Null, 'buyer' : IDL.Null })],
|
|
@@ -1235,6 +1237,11 @@ export const idlFactory = ({ IDL }) => {
|
|
|
1235
1237
|
'setLedgerManagerCanister' : IDL.Func([IDL.Text], [Result], []),
|
|
1236
1238
|
'setListingData' : IDL.Func([IDL.Text, IDL.Text], [Result], []),
|
|
1237
1239
|
'setMonitorPrincipal' : IDL.Func([IDL.Principal], [Result], []),
|
|
1240
|
+
'setPriceFromPlatform' : IDL.Func(
|
|
1241
|
+
[IDL.Text, IDL.Nat64, Basis],
|
|
1242
|
+
[Result_1],
|
|
1243
|
+
[],
|
|
1244
|
+
),
|
|
1238
1245
|
'setPropertyLogbookCanister' : IDL.Func([IDL.Text], [Result], []),
|
|
1239
1246
|
'setPropertyRegistryCanister' : IDL.Func([IDL.Text], [Result], []),
|
|
1240
1247
|
'setUserManagementCanister' : IDL.Func([IDL.Text], [Result], []),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@propxchain/core-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.28.0-canary.67",
|
|
4
4
|
"description": "Typed TypeScript client for the PropXchain core canisters on the Internet Computer. Includes a deterministic mock mode for local development and tests.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -850,6 +850,11 @@ type BotConnection =
|
|
|
850
850
|
ownerPrincipal: opt principal;
|
|
851
851
|
"principal": principal;
|
|
852
852
|
};
|
|
853
|
+
type Basis =
|
|
854
|
+
variant {
|
|
855
|
+
agreed;
|
|
856
|
+
asking;
|
|
857
|
+
};
|
|
853
858
|
type AuditWriteFailure =
|
|
854
859
|
record {
|
|
855
860
|
at: int;
|
|
@@ -1151,15 +1156,14 @@ service : {
|
|
|
1151
1156
|
/// - Locked after contract exchange (same posture as assignBuyer):
|
|
1152
1157
|
/// once the deal is signed nobody walks away by toggling a button.
|
|
1153
1158
|
///
|
|
1154
|
-
/// Effects:
|
|
1155
|
-
/// - Caller is removed from `accessList
|
|
1156
|
-
///
|
|
1157
|
-
///
|
|
1158
|
-
///
|
|
1159
|
-
///
|
|
1160
|
-
///
|
|
1161
|
-
/// - Audit event `buyer_left` (or `party_left` for non-buyer leavers)
|
|
1162
|
-
/// is logged via the existing ledger pattern.
|
|
1159
|
+
/// Effects (Marc, 2026-11-19: leaving takes you off completely):
|
|
1160
|
+
/// - Caller is removed from `accessList` and, once no longer on the
|
|
1161
|
+
/// deal, from the user_management roster (their document roles).
|
|
1162
|
+
/// - If the caller is the assigned buyer, the buyer slot goes back to
|
|
1163
|
+
/// the seller placeholder, their solicitor goes with them, they leave
|
|
1164
|
+
/// the buyers list, and the deal gets a FRESH invite code, so no code
|
|
1165
|
+
/// the leaver ever saw brings them back (InviteJoin.buyerExit).
|
|
1166
|
+
/// - Audit event `buyer_left` (or `party_left` for non-buyer leavers).
|
|
1163
1167
|
///
|
|
1164
1168
|
/// Concurrency: uses the same acquireTxLock/finally releaseTxLock
|
|
1165
1169
|
/// posture as assignBuyer so a leave can't race against an in-flight
|
|
@@ -1241,6 +1245,7 @@ service : {
|
|
|
1241
1245
|
/// while the isAdmin await is in flight.
|
|
1242
1246
|
recordRequisition: (transactionID: text, requisition: Requisition) ->
|
|
1243
1247
|
(Result_1);
|
|
1248
|
+
releaseBuyerFromPlatform: (transactionId: text) -> (Result);
|
|
1244
1249
|
removeParty: (transactionId: text, partyPrincipal: principal) -> (Result_1);
|
|
1245
1250
|
removeSolicitor: (transactionId: text, side: variant {
|
|
1246
1251
|
buyer;
|
|
@@ -1262,6 +1267,8 @@ service : {
|
|
|
1262
1267
|
setLedgerManagerCanister: (canisterId: text) -> (Result);
|
|
1263
1268
|
setListingData: (transactionId: text, jsonData: text) -> (Result);
|
|
1264
1269
|
setMonitorPrincipal: (p: principal) -> (Result);
|
|
1270
|
+
setPriceFromPlatform: (transactionId: text, amount: nat64, basis: Basis) ->
|
|
1271
|
+
(Result_1);
|
|
1265
1272
|
setPropertyLogbookCanister: (canisterId: text) -> (Result);
|
|
1266
1273
|
setPropertyRegistryCanister: (canisterId: text) -> (Result);
|
|
1267
1274
|
setUserManagementCanister: (canisterId: text) -> (Result);
|
|
@@ -728,6 +728,8 @@ export interface WaterConnection {
|
|
|
728
728
|
'meterLocation' : [] | [string],
|
|
729
729
|
'connected' : TA6Answer,
|
|
730
730
|
}
|
|
731
|
+
export type Basis = { 'asking' : null } |
|
|
732
|
+
{ 'agreed' : null };
|
|
731
733
|
export interface _SERVICE {
|
|
732
734
|
'acknowledgeTA6Wording' : ActorMethod<[string], Result_1>,
|
|
733
735
|
'addParty' : ActorMethod<[string, string, string, string, boolean], Result_2>,
|
|
@@ -1048,6 +1050,7 @@ export interface _SERVICE {
|
|
|
1048
1050
|
* / while the isAdmin await is in flight.
|
|
1049
1051
|
*/
|
|
1050
1052
|
'recordRequisition' : ActorMethod<[string, Requisition], Result_1>,
|
|
1053
|
+
'releaseBuyerFromPlatform' : ActorMethod<[string], Result>,
|
|
1051
1054
|
'removeParty' : ActorMethod<[string, Principal], Result_1>,
|
|
1052
1055
|
'removeSolicitor' : ActorMethod<
|
|
1053
1056
|
[string, { 'seller' : null } | { 'buyer' : null }],
|
|
@@ -1075,6 +1078,7 @@ export interface _SERVICE {
|
|
|
1075
1078
|
'setLedgerManagerCanister' : ActorMethod<[string], Result>,
|
|
1076
1079
|
'setListingData' : ActorMethod<[string, string], Result>,
|
|
1077
1080
|
'setMonitorPrincipal' : ActorMethod<[Principal], Result>,
|
|
1081
|
+
'setPriceFromPlatform' : ActorMethod<[string, bigint, Basis], Result_1>,
|
|
1078
1082
|
'setPropertyLogbookCanister' : ActorMethod<[string], Result>,
|
|
1079
1083
|
'setPropertyRegistryCanister' : ActorMethod<[string], Result>,
|
|
1080
1084
|
'setUserManagementCanister' : ActorMethod<[string], Result>,
|
|
@@ -785,6 +785,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
785
785
|
'lastFailureAt' : IDL.Opt(IDL.Int),
|
|
786
786
|
'totalSinceDeploy' : IDL.Nat,
|
|
787
787
|
});
|
|
788
|
+
const Basis = IDL.Variant({ 'asking' : IDL.Null, 'agreed' : IDL.Null });
|
|
788
789
|
return IDL.Service({
|
|
789
790
|
'acknowledgeTA6Wording' : IDL.Func([IDL.Text], [Result_1], []),
|
|
790
791
|
'addParty' : IDL.Func(
|
|
@@ -1209,6 +1210,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
1209
1210
|
[],
|
|
1210
1211
|
),
|
|
1211
1212
|
'recordRequisition' : IDL.Func([IDL.Text, Requisition], [Result_1], []),
|
|
1213
|
+
'releaseBuyerFromPlatform' : IDL.Func([IDL.Text], [Result], []),
|
|
1212
1214
|
'removeParty' : IDL.Func([IDL.Text, IDL.Principal], [Result_1], []),
|
|
1213
1215
|
'removeSolicitor' : IDL.Func(
|
|
1214
1216
|
[IDL.Text, IDL.Variant({ 'seller' : IDL.Null, 'buyer' : IDL.Null })],
|
|
@@ -1235,6 +1237,11 @@ export const idlFactory = ({ IDL }) => {
|
|
|
1235
1237
|
'setLedgerManagerCanister' : IDL.Func([IDL.Text], [Result], []),
|
|
1236
1238
|
'setListingData' : IDL.Func([IDL.Text, IDL.Text], [Result], []),
|
|
1237
1239
|
'setMonitorPrincipal' : IDL.Func([IDL.Principal], [Result], []),
|
|
1240
|
+
'setPriceFromPlatform' : IDL.Func(
|
|
1241
|
+
[IDL.Text, IDL.Nat64, Basis],
|
|
1242
|
+
[Result_1],
|
|
1243
|
+
[],
|
|
1244
|
+
),
|
|
1238
1245
|
'setPropertyLogbookCanister' : IDL.Func([IDL.Text], [Result], []),
|
|
1239
1246
|
'setPropertyRegistryCanister' : IDL.Func([IDL.Text], [Result], []),
|
|
1240
1247
|
'setUserManagementCanister' : IDL.Func([IDL.Text], [Result], []),
|