@propxchain/core-client 0.27.0-canary.66 → 0.29.0-canary.68
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 +15 -0
- package/dist/canisters/transaction_manager/transaction_manager.did.js +21 -0
- package/package.json +1 -1
- package/src/canisters/transaction_manager/transaction_manager.did +29 -9
- package/src/canisters/transaction_manager/transaction_manager.did.d.ts +15 -0
- package/src/canisters/transaction_manager/transaction_manager.did.js +21 -0
|
@@ -728,6 +728,16 @@ export interface WaterConnection {
|
|
|
728
728
|
'meterLocation' : [] | [string],
|
|
729
729
|
'connected' : TA6Answer,
|
|
730
730
|
}
|
|
731
|
+
export type Basis = { 'asking' : null } |
|
|
732
|
+
{ 'agreed' : null };
|
|
733
|
+
export type BuyerReleaseCause = { 'other' : null } |
|
|
734
|
+
{ 'platformReset' : null } |
|
|
735
|
+
{ 'buyerCancelled' : null } |
|
|
736
|
+
{ 'sellerWithdrew' : null };
|
|
737
|
+
export interface BuyerReleaseNote {
|
|
738
|
+
'cause' : BuyerReleaseCause,
|
|
739
|
+
'clearedMilestones' : Array<string>,
|
|
740
|
+
}
|
|
731
741
|
export interface _SERVICE {
|
|
732
742
|
'acknowledgeTA6Wording' : ActorMethod<[string], Result_1>,
|
|
733
743
|
'addParty' : ActorMethod<[string, string, string, string, boolean], Result_2>,
|
|
@@ -1048,6 +1058,10 @@ export interface _SERVICE {
|
|
|
1048
1058
|
* / while the isAdmin await is in flight.
|
|
1049
1059
|
*/
|
|
1050
1060
|
'recordRequisition' : ActorMethod<[string, Requisition], Result_1>,
|
|
1061
|
+
'releaseBuyerFromPlatform' : ActorMethod<
|
|
1062
|
+
[string, [] | [BuyerReleaseNote]],
|
|
1063
|
+
Result
|
|
1064
|
+
>,
|
|
1051
1065
|
'removeParty' : ActorMethod<[string, Principal], Result_1>,
|
|
1052
1066
|
'removeSolicitor' : ActorMethod<
|
|
1053
1067
|
[string, { 'seller' : null } | { 'buyer' : null }],
|
|
@@ -1075,6 +1089,7 @@ export interface _SERVICE {
|
|
|
1075
1089
|
'setLedgerManagerCanister' : ActorMethod<[string], Result>,
|
|
1076
1090
|
'setListingData' : ActorMethod<[string, string], Result>,
|
|
1077
1091
|
'setMonitorPrincipal' : ActorMethod<[Principal], Result>,
|
|
1092
|
+
'setPriceFromPlatform' : ActorMethod<[string, bigint, Basis], Result_1>,
|
|
1078
1093
|
'setPropertyLogbookCanister' : ActorMethod<[string], Result>,
|
|
1079
1094
|
'setPropertyRegistryCanister' : ActorMethod<[string], Result>,
|
|
1080
1095
|
'setUserManagementCanister' : ActorMethod<[string], Result>,
|
|
@@ -785,6 +785,17 @@ 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 });
|
|
789
|
+
const BuyerReleaseCause = IDL.Variant({
|
|
790
|
+
'other' : IDL.Null,
|
|
791
|
+
'platformReset' : IDL.Null,
|
|
792
|
+
'buyerCancelled' : IDL.Null,
|
|
793
|
+
'sellerWithdrew' : IDL.Null,
|
|
794
|
+
});
|
|
795
|
+
const BuyerReleaseNote = IDL.Record({
|
|
796
|
+
'cause' : BuyerReleaseCause,
|
|
797
|
+
'clearedMilestones' : IDL.Vec(IDL.Text),
|
|
798
|
+
});
|
|
788
799
|
return IDL.Service({
|
|
789
800
|
'acknowledgeTA6Wording' : IDL.Func([IDL.Text], [Result_1], []),
|
|
790
801
|
'addParty' : IDL.Func(
|
|
@@ -1209,6 +1220,11 @@ export const idlFactory = ({ IDL }) => {
|
|
|
1209
1220
|
[],
|
|
1210
1221
|
),
|
|
1211
1222
|
'recordRequisition' : IDL.Func([IDL.Text, Requisition], [Result_1], []),
|
|
1223
|
+
'releaseBuyerFromPlatform' : IDL.Func(
|
|
1224
|
+
[IDL.Text, IDL.Opt(BuyerReleaseNote)],
|
|
1225
|
+
[Result],
|
|
1226
|
+
[],
|
|
1227
|
+
),
|
|
1212
1228
|
'removeParty' : IDL.Func([IDL.Text, IDL.Principal], [Result_1], []),
|
|
1213
1229
|
'removeSolicitor' : IDL.Func(
|
|
1214
1230
|
[IDL.Text, IDL.Variant({ 'seller' : IDL.Null, 'buyer' : IDL.Null })],
|
|
@@ -1235,6 +1251,11 @@ export const idlFactory = ({ IDL }) => {
|
|
|
1235
1251
|
'setLedgerManagerCanister' : IDL.Func([IDL.Text], [Result], []),
|
|
1236
1252
|
'setListingData' : IDL.Func([IDL.Text, IDL.Text], [Result], []),
|
|
1237
1253
|
'setMonitorPrincipal' : IDL.Func([IDL.Principal], [Result], []),
|
|
1254
|
+
'setPriceFromPlatform' : IDL.Func(
|
|
1255
|
+
[IDL.Text, IDL.Nat64, Basis],
|
|
1256
|
+
[Result_1],
|
|
1257
|
+
[],
|
|
1258
|
+
),
|
|
1238
1259
|
'setPropertyLogbookCanister' : IDL.Func([IDL.Text], [Result], []),
|
|
1239
1260
|
'setPropertyRegistryCanister' : IDL.Func([IDL.Text], [Result], []),
|
|
1240
1261
|
'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.29.0-canary.68",
|
|
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",
|
|
@@ -828,6 +828,18 @@ type CompanySeller =
|
|
|
828
828
|
countryOfIncorporation: text;
|
|
829
829
|
director: text;
|
|
830
830
|
};
|
|
831
|
+
type BuyerReleaseNote =
|
|
832
|
+
record {
|
|
833
|
+
cause: BuyerReleaseCause;
|
|
834
|
+
clearedMilestones: vec text;
|
|
835
|
+
};
|
|
836
|
+
type BuyerReleaseCause =
|
|
837
|
+
variant {
|
|
838
|
+
buyerCancelled;
|
|
839
|
+
other;
|
|
840
|
+
platformReset;
|
|
841
|
+
sellerWithdrew;
|
|
842
|
+
};
|
|
831
843
|
type BoundaryOwnership =
|
|
832
844
|
variant {
|
|
833
845
|
NotKnown;
|
|
@@ -850,6 +862,11 @@ type BotConnection =
|
|
|
850
862
|
ownerPrincipal: opt principal;
|
|
851
863
|
"principal": principal;
|
|
852
864
|
};
|
|
865
|
+
type Basis =
|
|
866
|
+
variant {
|
|
867
|
+
agreed;
|
|
868
|
+
asking;
|
|
869
|
+
};
|
|
853
870
|
type AuditWriteFailure =
|
|
854
871
|
record {
|
|
855
872
|
at: int;
|
|
@@ -1151,15 +1168,14 @@ service : {
|
|
|
1151
1168
|
/// - Locked after contract exchange (same posture as assignBuyer):
|
|
1152
1169
|
/// once the deal is signed nobody walks away by toggling a button.
|
|
1153
1170
|
///
|
|
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.
|
|
1171
|
+
/// Effects (Marc, 2026-11-19: leaving takes you off completely):
|
|
1172
|
+
/// - Caller is removed from `accessList` and, once no longer on the
|
|
1173
|
+
/// deal, from the user_management roster (their document roles).
|
|
1174
|
+
/// - If the caller is the assigned buyer, the buyer slot goes back to
|
|
1175
|
+
/// the seller placeholder, their solicitor goes with them, they leave
|
|
1176
|
+
/// the buyers list, and the deal gets a FRESH invite code, so no code
|
|
1177
|
+
/// the leaver ever saw brings them back (InviteJoin.buyerExit).
|
|
1178
|
+
/// - Audit event `buyer_left` (or `party_left` for non-buyer leavers).
|
|
1163
1179
|
///
|
|
1164
1180
|
/// Concurrency: uses the same acquireTxLock/finally releaseTxLock
|
|
1165
1181
|
/// posture as assignBuyer so a leave can't race against an in-flight
|
|
@@ -1241,6 +1257,8 @@ service : {
|
|
|
1241
1257
|
/// while the isAdmin await is in flight.
|
|
1242
1258
|
recordRequisition: (transactionID: text, requisition: Requisition) ->
|
|
1243
1259
|
(Result_1);
|
|
1260
|
+
releaseBuyerFromPlatform: (transactionId: text, note:
|
|
1261
|
+
opt BuyerReleaseNote) -> (Result);
|
|
1244
1262
|
removeParty: (transactionId: text, partyPrincipal: principal) -> (Result_1);
|
|
1245
1263
|
removeSolicitor: (transactionId: text, side: variant {
|
|
1246
1264
|
buyer;
|
|
@@ -1262,6 +1280,8 @@ service : {
|
|
|
1262
1280
|
setLedgerManagerCanister: (canisterId: text) -> (Result);
|
|
1263
1281
|
setListingData: (transactionId: text, jsonData: text) -> (Result);
|
|
1264
1282
|
setMonitorPrincipal: (p: principal) -> (Result);
|
|
1283
|
+
setPriceFromPlatform: (transactionId: text, amount: nat64, basis: Basis) ->
|
|
1284
|
+
(Result_1);
|
|
1265
1285
|
setPropertyLogbookCanister: (canisterId: text) -> (Result);
|
|
1266
1286
|
setPropertyRegistryCanister: (canisterId: text) -> (Result);
|
|
1267
1287
|
setUserManagementCanister: (canisterId: text) -> (Result);
|
|
@@ -728,6 +728,16 @@ export interface WaterConnection {
|
|
|
728
728
|
'meterLocation' : [] | [string],
|
|
729
729
|
'connected' : TA6Answer,
|
|
730
730
|
}
|
|
731
|
+
export type Basis = { 'asking' : null } |
|
|
732
|
+
{ 'agreed' : null };
|
|
733
|
+
export type BuyerReleaseCause = { 'other' : null } |
|
|
734
|
+
{ 'platformReset' : null } |
|
|
735
|
+
{ 'buyerCancelled' : null } |
|
|
736
|
+
{ 'sellerWithdrew' : null };
|
|
737
|
+
export interface BuyerReleaseNote {
|
|
738
|
+
'cause' : BuyerReleaseCause,
|
|
739
|
+
'clearedMilestones' : Array<string>,
|
|
740
|
+
}
|
|
731
741
|
export interface _SERVICE {
|
|
732
742
|
'acknowledgeTA6Wording' : ActorMethod<[string], Result_1>,
|
|
733
743
|
'addParty' : ActorMethod<[string, string, string, string, boolean], Result_2>,
|
|
@@ -1048,6 +1058,10 @@ export interface _SERVICE {
|
|
|
1048
1058
|
* / while the isAdmin await is in flight.
|
|
1049
1059
|
*/
|
|
1050
1060
|
'recordRequisition' : ActorMethod<[string, Requisition], Result_1>,
|
|
1061
|
+
'releaseBuyerFromPlatform' : ActorMethod<
|
|
1062
|
+
[string, [] | [BuyerReleaseNote]],
|
|
1063
|
+
Result
|
|
1064
|
+
>,
|
|
1051
1065
|
'removeParty' : ActorMethod<[string, Principal], Result_1>,
|
|
1052
1066
|
'removeSolicitor' : ActorMethod<
|
|
1053
1067
|
[string, { 'seller' : null } | { 'buyer' : null }],
|
|
@@ -1075,6 +1089,7 @@ export interface _SERVICE {
|
|
|
1075
1089
|
'setLedgerManagerCanister' : ActorMethod<[string], Result>,
|
|
1076
1090
|
'setListingData' : ActorMethod<[string, string], Result>,
|
|
1077
1091
|
'setMonitorPrincipal' : ActorMethod<[Principal], Result>,
|
|
1092
|
+
'setPriceFromPlatform' : ActorMethod<[string, bigint, Basis], Result_1>,
|
|
1078
1093
|
'setPropertyLogbookCanister' : ActorMethod<[string], Result>,
|
|
1079
1094
|
'setPropertyRegistryCanister' : ActorMethod<[string], Result>,
|
|
1080
1095
|
'setUserManagementCanister' : ActorMethod<[string], Result>,
|
|
@@ -785,6 +785,17 @@ 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 });
|
|
789
|
+
const BuyerReleaseCause = IDL.Variant({
|
|
790
|
+
'other' : IDL.Null,
|
|
791
|
+
'platformReset' : IDL.Null,
|
|
792
|
+
'buyerCancelled' : IDL.Null,
|
|
793
|
+
'sellerWithdrew' : IDL.Null,
|
|
794
|
+
});
|
|
795
|
+
const BuyerReleaseNote = IDL.Record({
|
|
796
|
+
'cause' : BuyerReleaseCause,
|
|
797
|
+
'clearedMilestones' : IDL.Vec(IDL.Text),
|
|
798
|
+
});
|
|
788
799
|
return IDL.Service({
|
|
789
800
|
'acknowledgeTA6Wording' : IDL.Func([IDL.Text], [Result_1], []),
|
|
790
801
|
'addParty' : IDL.Func(
|
|
@@ -1209,6 +1220,11 @@ export const idlFactory = ({ IDL }) => {
|
|
|
1209
1220
|
[],
|
|
1210
1221
|
),
|
|
1211
1222
|
'recordRequisition' : IDL.Func([IDL.Text, Requisition], [Result_1], []),
|
|
1223
|
+
'releaseBuyerFromPlatform' : IDL.Func(
|
|
1224
|
+
[IDL.Text, IDL.Opt(BuyerReleaseNote)],
|
|
1225
|
+
[Result],
|
|
1226
|
+
[],
|
|
1227
|
+
),
|
|
1212
1228
|
'removeParty' : IDL.Func([IDL.Text, IDL.Principal], [Result_1], []),
|
|
1213
1229
|
'removeSolicitor' : IDL.Func(
|
|
1214
1230
|
[IDL.Text, IDL.Variant({ 'seller' : IDL.Null, 'buyer' : IDL.Null })],
|
|
@@ -1235,6 +1251,11 @@ export const idlFactory = ({ IDL }) => {
|
|
|
1235
1251
|
'setLedgerManagerCanister' : IDL.Func([IDL.Text], [Result], []),
|
|
1236
1252
|
'setListingData' : IDL.Func([IDL.Text, IDL.Text], [Result], []),
|
|
1237
1253
|
'setMonitorPrincipal' : IDL.Func([IDL.Principal], [Result], []),
|
|
1254
|
+
'setPriceFromPlatform' : IDL.Func(
|
|
1255
|
+
[IDL.Text, IDL.Nat64, Basis],
|
|
1256
|
+
[Result_1],
|
|
1257
|
+
[],
|
|
1258
|
+
),
|
|
1238
1259
|
'setPropertyLogbookCanister' : IDL.Func([IDL.Text], [Result], []),
|
|
1239
1260
|
'setPropertyRegistryCanister' : IDL.Func([IDL.Text], [Result], []),
|
|
1240
1261
|
'setUserManagementCanister' : IDL.Func([IDL.Text], [Result], []),
|