@misofm/platform 0.29.0 → 0.29.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.
- package/dist/errors.d.ts +4 -0
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +14 -0
- package/dist/errors.js.map +1 -1
- package/package.json +4 -4
- package/src/errors.ts +14 -0
package/dist/errors.d.ts
CHANGED
|
@@ -57,6 +57,7 @@ declare const MalformedRecordSoldEventError_base: Schema.Class<MalformedRecordSo
|
|
|
57
57
|
/** An on-chain `RecordSoldEvent` could not be decoded into a `RecordSale`. */
|
|
58
58
|
export declare class MalformedRecordSoldEventError extends MalformedRecordSoldEventError_base {
|
|
59
59
|
readonly outcome: Outcome;
|
|
60
|
+
get message(): string;
|
|
60
61
|
}
|
|
61
62
|
/** Authenticated-fetch / API-authorization signing or verification failure. */
|
|
62
63
|
export declare const MisoAuthErrorCode: Schema.Literals<readonly ["invalid_target", "challenge_rejected", "invalid_challenge", "signing_failed"]>;
|
|
@@ -78,6 +79,7 @@ declare const ReleaseNotFoundError_base: Schema.Class<ReleaseNotFoundError, Sche
|
|
|
78
79
|
/** No Release exists at the requested id (or it is not a Release from the configured deployment). */
|
|
79
80
|
export declare class ReleaseNotFoundError extends ReleaseNotFoundError_base {
|
|
80
81
|
readonly outcome: Outcome;
|
|
82
|
+
get message(): string;
|
|
81
83
|
}
|
|
82
84
|
declare const ReceiptNotFoundError_base: Schema.Class<ReceiptNotFoundError, Schema.TaggedStruct<"ReceiptNotFoundError", {
|
|
83
85
|
readonly digest: Schema.String;
|
|
@@ -85,6 +87,7 @@ declare const ReceiptNotFoundError_base: Schema.Class<ReceiptNotFoundError, Sche
|
|
|
85
87
|
/** The fullnode and the indexer both have no record of this transaction digest. */
|
|
86
88
|
export declare class ReceiptNotFoundError extends ReceiptNotFoundError_base {
|
|
87
89
|
readonly outcome: Outcome;
|
|
90
|
+
get message(): string;
|
|
88
91
|
}
|
|
89
92
|
declare const RecordPurchaseNotFoundError_base: Schema.Class<RecordPurchaseNotFoundError, Schema.TaggedStruct<"RecordPurchaseNotFoundError", {
|
|
90
93
|
readonly digest: Schema.String;
|
|
@@ -92,6 +95,7 @@ declare const RecordPurchaseNotFoundError_base: Schema.Class<RecordPurchaseNotFo
|
|
|
92
95
|
/** The transaction exists, but its effects contain no `record_shop::listing::RecordSoldEvent`. */
|
|
93
96
|
export declare class RecordPurchaseNotFoundError extends RecordPurchaseNotFoundError_base {
|
|
94
97
|
readonly outcome: Outcome;
|
|
98
|
+
get message(): string;
|
|
95
99
|
}
|
|
96
100
|
declare const ForeignPressingError_base: Schema.Class<ForeignPressingError, Schema.TaggedStruct<"ForeignPressingError", {
|
|
97
101
|
readonly pressingId: Schema.String;
|
package/dist/errors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAavD,OAAO,EACL,WAAW,EACX,eAAe,EACf,kBAAkB,EAClB,aAAa,EACb,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,KAAK,cAAc,EACnB,KAAK,cAAc,GACpB,MAAM,yBAAyB,CAAC;;;;AAEjC,8EAA8E;AAC9E,qBAAa,2BAA4B,SAAQ,gCAKhD;IACC,4FAA4F;IAC5F,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAiB;IAC1C,IAAa,OAAO,IAAI,MAAM,CAE7B;CACF;;;;AAED,yEAAyE;AACzE,qBAAa,0BAA2B,SAAQ,+BAK/C;IACC,4FAA4F;IAC5F,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAiB;IAC1C,IAAa,OAAO,IAAI,MAAM,CAE7B;CACF;;;;AAED,wFAAwF;AACxF,qBAAa,kCAAmC,SAAQ,uCAKvD;IACC,uHAAuH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F;;;;;AAED,uHAAuH;AACvH,qBAAa,iCAAkC,SAAQ,sCAMtD;IACC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAiB;IAC1C,IAAa,OAAO,IAAI,MAAM,CAE7B;CACF"}
|
package/dist/errors.js
CHANGED
|
@@ -80,6 +80,11 @@ export class MalformedRecordSoldEventError extends Schema.TaggedError()("Malform
|
|
|
80
80
|
reason: Schema.optional(Schema.String),
|
|
81
81
|
}) {
|
|
82
82
|
outcome = "not_applied";
|
|
83
|
+
get message() {
|
|
84
|
+
const digest = this.digest ? ` (transaction ${this.digest})` : "";
|
|
85
|
+
const reason = this.reason ? `: ${this.reason}` : "";
|
|
86
|
+
return `@misofm/platform: malformed RecordSoldEvent${digest}${reason}.`;
|
|
87
|
+
}
|
|
83
88
|
}
|
|
84
89
|
/** Authenticated-fetch / API-authorization signing or verification failure. */
|
|
85
90
|
export const MisoAuthErrorCode = Schema.Literals([
|
|
@@ -111,18 +116,27 @@ export class ReleaseNotFoundError extends Schema.TaggedError()("ReleaseNotFoundE
|
|
|
111
116
|
releaseId: Schema.String,
|
|
112
117
|
}) {
|
|
113
118
|
outcome = "not_applied";
|
|
119
|
+
get message() {
|
|
120
|
+
return `@misofm/platform: no Release exists at id ${this.releaseId}.`;
|
|
121
|
+
}
|
|
114
122
|
}
|
|
115
123
|
/** The fullnode and the indexer both have no record of this transaction digest. */
|
|
116
124
|
export class ReceiptNotFoundError extends Schema.TaggedError()("ReceiptNotFoundError", {
|
|
117
125
|
digest: Schema.String,
|
|
118
126
|
}) {
|
|
119
127
|
outcome = "not_applied";
|
|
128
|
+
get message() {
|
|
129
|
+
return `@misofm/platform: no receipt found for transaction ${this.digest}.`;
|
|
130
|
+
}
|
|
120
131
|
}
|
|
121
132
|
/** The transaction exists, but its effects contain no `record_shop::listing::RecordSoldEvent`. */
|
|
122
133
|
export class RecordPurchaseNotFoundError extends Schema.TaggedError()("RecordPurchaseNotFoundError", {
|
|
123
134
|
digest: Schema.String,
|
|
124
135
|
}) {
|
|
125
136
|
outcome = "not_applied";
|
|
137
|
+
get message() {
|
|
138
|
+
return `@misofm/platform: transaction ${this.digest} contains no RecordSoldEvent.`;
|
|
139
|
+
}
|
|
126
140
|
}
|
|
127
141
|
/** An object exists at the requested Pressing id, but is not a Pressing from the configured Record package. */
|
|
128
142
|
export class ForeignPressingError extends Schema.TaggedError()("ForeignPressingError", {
|
package/dist/errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,sCAAsC;AAEtC,wEAAwE;AACxE,wEAAwE;AACxE,0EAA0E;AAC1E,2EAA2E;AAC3E,iEAAiE;AACjE,0EAA0E;AAC1E,4EAA4E;AAC5E,+EAA+E;AAC/E,kBAAkB;AAElB,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGhC,2EAA2E;AAC3E,4EAA4E;AAC5E,0EAA0E;AAC1E,8DAA8D;AAC9D,4EAA4E;AAC5E,sEAAsE;AACtE,gFAAgF;AAChF,gFAAgF;AAChF,sEAAsE;AACtE,yEAAyE;AACzE,4EAA4E;AAC5E,OAAO,EACL,WAAW,EACX,eAAe,EACf,kBAAkB,EAClB,aAAa,EACb,cAAc,EACd,iBAAiB,EACjB,cAAc,GAGf,MAAM,yBAAyB,CAAC;AAEjC,8EAA8E;AAC9E,MAAM,OAAO,2BAA4B,SAAQ,MAAM,CAAC,WAAW,EAA+B,CAChG,6BAA6B,EAC7B;IACE,MAAM,EAAE,MAAM,CAAC,MAAM;CACtB,CACF;IACC,4FAA4F;IACnF,OAAO,GAAY,aAAa,CAAC;IAC1C,IAAa,OAAO;QAClB,OAAO,mDAAmD,IAAI,CAAC,MAAM,EAAE,CAAC;IAC1E,CAAC;CACF;AAED,yEAAyE;AACzE,MAAM,OAAO,0BAA2B,SAAQ,MAAM,CAAC,WAAW,EAA8B,CAC9F,4BAA4B,EAC5B;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Aa,OAAO;QAClB,OAAO,sDAAsD,IAAI,CAAC,MAAM,GAAG,CAAC;IAC9E,CAAC;CACF;AAED,kGAAkG;AAClG,MAAM,OAAO,2BAA4B,SAAQ,MAAM,CAAC,WAAW,EAA+B,CAChG,6BAA6B,EAC7B;IACE,MAAM,EAAE,MAAM,CAAC,MAAM;CACtB,CACF;IACU,OAAO,GAAY,aAAa,CAAC;IAC1C,IAAa,OAAO;QAClB,OAAO,iCAAiC,IAAI,CAAC,MAAM,+BAA+B,CAAC;IACrF,CAAC;CACF;AAED,+GAA+G;AAC/G,MAAM,OAAO,oBAAqB,SAAQ,MAAM,CAAC,WAAW,EAAwB,CAAC,sBAAsB,EAAE;IAC3G,UAAU,EAAE,MAAM,CAAC,MAAM;IACzB,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CAC3C,CAAC;IACS,OAAO,GAAY,aAAa,CAAC;IAC1C,IAAa,OAAO;QAClB,OAAO,4BAA4B,IAAI,CAAC,UAAU,wDAAwD,CAAC;IAC7G,CAAC;CACF;AAED,uHAAuH;AACvH,MAAM,OAAO,iCAAkC,SAAQ,MAAM,CAAC,WAAW,EAAqC,CAC5G,mCAAmC,EACnC;IACE,MAAM,EAAE,MAAM,CAAC,MAAM;IACrB,MAAM,EAAE,MAAM,CAAC,MAAM;CACtB,CACF;IACU,OAAO,GAAY,aAAa,CAAC;IAC1C,IAAa,OAAO;QAClB,OAAO,qBAAqB,IAAI,CAAC,MAAM,iBAAiB,IAAI,CAAC,MAAM,IAAI,CAAC;IAC1E,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@misofm/platform",
|
|
3
|
-
"version": "0.29.
|
|
3
|
+
"version": "0.29.1",
|
|
4
4
|
"packageManager": "bun@1.4.0",
|
|
5
5
|
"description": "Complete client SDK for the Miso platform on Sui \u2014 high-level reads, pressings, listings, records, work publishing, Party extensions, and the first-party extensions built on top of the @misofm/musicos object model and the @misofm/partyos Party identity model.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -153,14 +153,14 @@
|
|
|
153
153
|
"dependencies": {
|
|
154
154
|
"@misofm/streaming": "0.3.0",
|
|
155
155
|
"@mysten/bcs": "^2.1.1",
|
|
156
|
-
"@misofm/musicos": "0.4.
|
|
157
|
-
"@misofm/partyos": "0.4.
|
|
156
|
+
"@misofm/musicos": "0.4.3",
|
|
157
|
+
"@misofm/partyos": "0.4.3"
|
|
158
158
|
},
|
|
159
159
|
"devDependencies": {
|
|
160
160
|
"@mysten/move-bytecode-template": "^0.4.0",
|
|
161
161
|
"@mysten/sui": "2.29.0",
|
|
162
162
|
"@types/bun": "^1.3.14",
|
|
163
|
-
"@unconfirmed/sui-effect": "0.1.
|
|
163
|
+
"@unconfirmed/sui-effect": "0.1.3",
|
|
164
164
|
"effect": "4.0.0-rc.112",
|
|
165
165
|
"typescript": "^7.0.2"
|
|
166
166
|
},
|
package/src/errors.ts
CHANGED
|
@@ -118,6 +118,11 @@ export class MalformedRecordSoldEventError extends Schema.TaggedError<MalformedR
|
|
|
118
118
|
},
|
|
119
119
|
) {
|
|
120
120
|
readonly outcome: Outcome = "not_applied";
|
|
121
|
+
override get message(): string {
|
|
122
|
+
const digest = this.digest ? ` (transaction ${this.digest})` : "";
|
|
123
|
+
const reason = this.reason ? `: ${this.reason}` : "";
|
|
124
|
+
return `@misofm/platform: malformed RecordSoldEvent${digest}${reason}.`;
|
|
125
|
+
}
|
|
121
126
|
}
|
|
122
127
|
|
|
123
128
|
/** Authenticated-fetch / API-authorization signing or verification failure. */
|
|
@@ -154,6 +159,9 @@ export class ReleaseNotFoundError extends Schema.TaggedError<ReleaseNotFoundErro
|
|
|
154
159
|
releaseId: Schema.String,
|
|
155
160
|
}) {
|
|
156
161
|
readonly outcome: Outcome = "not_applied";
|
|
162
|
+
override get message(): string {
|
|
163
|
+
return `@misofm/platform: no Release exists at id ${this.releaseId}.`;
|
|
164
|
+
}
|
|
157
165
|
}
|
|
158
166
|
|
|
159
167
|
/** The fullnode and the indexer both have no record of this transaction digest. */
|
|
@@ -161,6 +169,9 @@ export class ReceiptNotFoundError extends Schema.TaggedError<ReceiptNotFoundErro
|
|
|
161
169
|
digest: Schema.String,
|
|
162
170
|
}) {
|
|
163
171
|
readonly outcome: Outcome = "not_applied";
|
|
172
|
+
override get message(): string {
|
|
173
|
+
return `@misofm/platform: no receipt found for transaction ${this.digest}.`;
|
|
174
|
+
}
|
|
164
175
|
}
|
|
165
176
|
|
|
166
177
|
/** The transaction exists, but its effects contain no `record_shop::listing::RecordSoldEvent`. */
|
|
@@ -171,6 +182,9 @@ export class RecordPurchaseNotFoundError extends Schema.TaggedError<RecordPurcha
|
|
|
171
182
|
},
|
|
172
183
|
) {
|
|
173
184
|
readonly outcome: Outcome = "not_applied";
|
|
185
|
+
override get message(): string {
|
|
186
|
+
return `@misofm/platform: transaction ${this.digest} contains no RecordSoldEvent.`;
|
|
187
|
+
}
|
|
174
188
|
}
|
|
175
189
|
|
|
176
190
|
/** An object exists at the requested Pressing id, but is not a Pressing from the configured Record package. */
|