@dcl/schemas 11.10.5 → 11.10.6-20240709162853.commit-e1e2269
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/platform/events/base.d.ts +16 -0
- package/dist/platform/events/base.d.ts.map +1 -0
- package/dist/platform/events/base.js +13 -0
- package/dist/platform/events/base.js.map +1 -0
- package/dist/platform/events/blockchain.d.ts +77 -0
- package/dist/platform/events/blockchain.d.ts.map +1 -0
- package/dist/platform/events/blockchain.js +3 -0
- package/dist/platform/events/blockchain.js.map +1 -0
- package/dist/platform/events/index.d.ts +3 -0
- package/dist/platform/events/index.d.ts.map +1 -0
- package/dist/platform/events/index.js +19 -0
- package/dist/platform/events/index.js.map +1 -0
- package/dist/platform/index.d.ts +1 -0
- package/dist/platform/index.d.ts.map +1 -1
- package/dist/platform/index.js +1 -0
- package/dist/platform/index.js.map +1 -1
- package/dist/platform/notifications/notifications.d.ts +2 -1
- package/dist/platform/notifications/notifications.d.ts.map +1 -1
- package/dist/platform/notifications/notifications.js +1 -0
- package/dist/platform/notifications/notifications.js.map +1 -1
- package/dist/schemas.d.ts +101 -1
- package/package.json +2 -2
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BidAcceptedEvent, BidReceivedEvent, ItemSoldEvent, RentalEndedEvent, RentalStartedEvent, RoyaltiesEarnedEvent } from './blockchain';
|
|
2
|
+
export declare enum EventType {
|
|
3
|
+
BID_ACCEPTED = "bid-accepted",
|
|
4
|
+
BID_RECEIVED = "bid-received",
|
|
5
|
+
ITEM_SOLD = "item-sold",
|
|
6
|
+
RENTAL_ENDED = "land-rental-ended",
|
|
7
|
+
RENTAL_STARTED = "land-rental-started",
|
|
8
|
+
ROYALTIES_EARNED = "royalties-earned"
|
|
9
|
+
}
|
|
10
|
+
export type BaseEvent = {
|
|
11
|
+
type: string;
|
|
12
|
+
key: string;
|
|
13
|
+
timestamp: number;
|
|
14
|
+
};
|
|
15
|
+
export type EventNotification = BidAcceptedEvent | BidReceivedEvent | ItemSoldEvent | RentalEndedEvent | RentalStartedEvent | RoyaltiesEarnedEvent;
|
|
16
|
+
//# sourceMappingURL=base.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/platform/events/base.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,gBAAgB,EAChB,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,cAAc,CAAA;AAErB,oBAAY,SAAS;IACnB,YAAY,iBAAiB;IAC7B,YAAY,iBAAiB;IAC7B,SAAS,cAAc;IACvB,YAAY,sBAAsB;IAClC,cAAc,wBAAwB;IACtC,gBAAgB,qBAAqB;CACtC;AAED,MAAM,MAAM,SAAS,GAAG;IACtB,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,iBAAiB,GACzB,gBAAgB,GAChB,gBAAgB,GAChB,aAAa,GACb,gBAAgB,GAChB,kBAAkB,GAClB,oBAAoB,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EventType = void 0;
|
|
4
|
+
var EventType;
|
|
5
|
+
(function (EventType) {
|
|
6
|
+
EventType["BID_ACCEPTED"] = "bid-accepted";
|
|
7
|
+
EventType["BID_RECEIVED"] = "bid-received";
|
|
8
|
+
EventType["ITEM_SOLD"] = "item-sold";
|
|
9
|
+
EventType["RENTAL_ENDED"] = "land-rental-ended";
|
|
10
|
+
EventType["RENTAL_STARTED"] = "land-rental-started";
|
|
11
|
+
EventType["ROYALTIES_EARNED"] = "royalties-earned";
|
|
12
|
+
})(EventType = exports.EventType || (exports.EventType = {}));
|
|
13
|
+
//# sourceMappingURL=base.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../../src/platform/events/base.ts"],"names":[],"mappings":";;;AASA,IAAY,SAOX;AAPD,WAAY,SAAS;IACnB,0CAA6B,CAAA;IAC7B,0CAA6B,CAAA;IAC7B,oCAAuB,CAAA;IACvB,+CAAkC,CAAA;IAClC,mDAAsC,CAAA;IACtC,kDAAqC,CAAA;AACvC,CAAC,EAPW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAOpB"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { BaseEvent, EventType } from './base';
|
|
2
|
+
type BidMetadata = {
|
|
3
|
+
address: string;
|
|
4
|
+
image: string;
|
|
5
|
+
seller: string;
|
|
6
|
+
category: string;
|
|
7
|
+
rarity?: string;
|
|
8
|
+
link: string;
|
|
9
|
+
nftName?: string;
|
|
10
|
+
price: string;
|
|
11
|
+
title: string;
|
|
12
|
+
description: string;
|
|
13
|
+
network: string;
|
|
14
|
+
};
|
|
15
|
+
export type BidAcceptedEvent = BaseEvent & {
|
|
16
|
+
type: EventType.BID_ACCEPTED;
|
|
17
|
+
metadata: BidMetadata;
|
|
18
|
+
};
|
|
19
|
+
export type BidReceivedEvent = BaseEvent & {
|
|
20
|
+
type: EventType.BID_RECEIVED;
|
|
21
|
+
metadata: BidMetadata;
|
|
22
|
+
};
|
|
23
|
+
export type ItemSoldEvent = BaseEvent & {
|
|
24
|
+
type: EventType.ITEM_SOLD;
|
|
25
|
+
metadata: {
|
|
26
|
+
address: string;
|
|
27
|
+
image: string;
|
|
28
|
+
seller: string;
|
|
29
|
+
category: string;
|
|
30
|
+
rarity?: string;
|
|
31
|
+
link: string;
|
|
32
|
+
nftName?: string;
|
|
33
|
+
network: string;
|
|
34
|
+
title: string;
|
|
35
|
+
description: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
type RentalMetadata = {
|
|
39
|
+
address: string;
|
|
40
|
+
contract: string;
|
|
41
|
+
land?: string;
|
|
42
|
+
lessor: string;
|
|
43
|
+
tenant: string;
|
|
44
|
+
operator: string;
|
|
45
|
+
startedAt: string;
|
|
46
|
+
endedAt: string;
|
|
47
|
+
tokenId: string;
|
|
48
|
+
link: string;
|
|
49
|
+
title: string;
|
|
50
|
+
description?: string;
|
|
51
|
+
};
|
|
52
|
+
export type RentalEndedEvent = BaseEvent & {
|
|
53
|
+
type: EventType.RENTAL_ENDED;
|
|
54
|
+
metadata: RentalMetadata;
|
|
55
|
+
};
|
|
56
|
+
export type RentalStartedEvent = BaseEvent & {
|
|
57
|
+
type: EventType.RENTAL_STARTED;
|
|
58
|
+
metadata: RentalMetadata;
|
|
59
|
+
};
|
|
60
|
+
export type RoyaltiesEarnedEvent = BaseEvent & {
|
|
61
|
+
type: EventType.ROYALTIES_EARNED;
|
|
62
|
+
metadata: {
|
|
63
|
+
address: string;
|
|
64
|
+
image: string;
|
|
65
|
+
category: string;
|
|
66
|
+
rarity?: string;
|
|
67
|
+
link: string;
|
|
68
|
+
nftName?: string;
|
|
69
|
+
royaltiesCut: string;
|
|
70
|
+
royaltiesCollector: string;
|
|
71
|
+
network: string;
|
|
72
|
+
title: string;
|
|
73
|
+
description?: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
export {};
|
|
77
|
+
//# sourceMappingURL=blockchain.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blockchain.d.ts","sourceRoot":"","sources":["../../../src/platform/events/blockchain.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAE7C,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG;IACzC,IAAI,EAAE,SAAS,CAAC,YAAY,CAAA;IAC5B,QAAQ,EAAE,WAAW,CAAA;CACtB,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG;IACzC,IAAI,EAAE,SAAS,CAAC,YAAY,CAAA;IAC5B,QAAQ,EAAE,WAAW,CAAA;CACtB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG;IACtC,IAAI,EAAE,SAAS,CAAC,SAAS,CAAA;IACzB,QAAQ,EAAE;QACR,OAAO,EAAE,MAAM,CAAA;QACf,KAAK,EAAE,MAAM,CAAA;QACb,MAAM,EAAE,MAAM,CAAA;QACd,QAAQ,EAAE,MAAM,CAAA;QAChB,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,IAAI,EAAE,MAAM,CAAA;QACZ,OAAO,CAAC,EAAE,MAAM,CAAA;QAChB,OAAO,EAAE,MAAM,CAAA;QACf,KAAK,EAAE,MAAM,CAAA;QACb,WAAW,EAAE,MAAM,CAAA;KACpB,CAAA;CACF,CAAA;AAED,KAAK,cAAc,GAAG;IACpB,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG;IACzC,IAAI,EAAE,SAAS,CAAC,YAAY,CAAA;IAC5B,QAAQ,EAAE,cAAc,CAAA;CACzB,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG;IAC3C,IAAI,EAAE,SAAS,CAAC,cAAc,CAAA;IAC9B,QAAQ,EAAE,cAAc,CAAA;CACzB,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG,SAAS,GAAG;IAC7C,IAAI,EAAE,SAAS,CAAC,gBAAgB,CAAA;IAChC,QAAQ,EAAE;QACR,OAAO,EAAE,MAAM,CAAA;QACf,KAAK,EAAE,MAAM,CAAA;QACb,QAAQ,EAAE,MAAM,CAAA;QAChB,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,IAAI,EAAE,MAAM,CAAA;QACZ,OAAO,CAAC,EAAE,MAAM,CAAA;QAChB,YAAY,EAAE,MAAM,CAAA;QACpB,kBAAkB,EAAE,MAAM,CAAA;QAC1B,OAAO,EAAE,MAAM,CAAA;QACf,KAAK,EAAE,MAAM,CAAA;QACb,WAAW,CAAC,EAAE,MAAM,CAAA;KACrB,CAAA;CACF,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blockchain.js","sourceRoot":"","sources":["../../../src/platform/events/blockchain.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/platform/events/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,cAAc,cAAc,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./base"), exports);
|
|
18
|
+
__exportStar(require("./blockchain"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/platform/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAsB;AACtB,+CAA4B"}
|
package/dist/platform/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/platform/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA;AACvB,cAAc,QAAQ,CAAA;AACtB,cAAc,sBAAsB,CAAA;AACpC,cAAc,eAAe,CAAA;AAC7B,cAAc,oBAAoB,CAAA;AAClC,cAAc,UAAU,CAAA;AACxB,cAAc,8BAA8B,CAAA;AAC5C,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/platform/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA;AACvB,cAAc,QAAQ,CAAA;AACtB,cAAc,sBAAsB,CAAA;AACpC,cAAc,eAAe,CAAA;AAC7B,cAAc,oBAAoB,CAAA;AAClC,cAAc,UAAU,CAAA;AACxB,cAAc,8BAA8B,CAAA;AAC5C,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,UAAU,CAAA"}
|
package/dist/platform/index.js
CHANGED
|
@@ -24,4 +24,5 @@ __exportStar(require("./entity"), exports);
|
|
|
24
24
|
__exportStar(require("./deployment-with-auth-chain"), exports);
|
|
25
25
|
__exportStar(require("./outfits"), exports);
|
|
26
26
|
__exportStar(require("./notifications"), exports);
|
|
27
|
+
__exportStar(require("./events"), exports);
|
|
27
28
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/platform/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,0CAAuB;AACvB,yCAAsB;AACtB,uDAAoC;AACpC,gDAA6B;AAC7B,qDAAkC;AAClC,2CAAwB;AACxB,+DAA4C;AAC5C,4CAAyB;AACzB,kDAA+B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/platform/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,0CAAuB;AACvB,yCAAsB;AACtB,uDAAoC;AACpC,gDAA6B;AAC7B,qDAAkC;AAClC,2CAAwB;AACxB,+DAA4C;AAC5C,4CAAyB;AACzB,kDAA+B;AAC/B,2CAAwB"}
|
|
@@ -25,7 +25,8 @@ export declare enum NotificationType {
|
|
|
25
25
|
WORLDS_ACCESS_RESTRICTED = "worlds_access_restricted",
|
|
26
26
|
WORLDS_MISSING_RESOURCES = "worlds_missing_resources",
|
|
27
27
|
WORLDS_PERMISSION_GRANTED = "worlds_permission_granted",
|
|
28
|
-
WORLDS_PERMISSION_REVOKED = "worlds_permission_revoked"
|
|
28
|
+
WORLDS_PERMISSION_REVOKED = "worlds_permission_revoked",
|
|
29
|
+
BADGE_GRANTED = "badge_granted"
|
|
29
30
|
}
|
|
30
31
|
/**
|
|
31
32
|
* The channel used for sending the notification
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notifications.d.ts","sourceRoot":"","sources":["../../../src/platform/notifications/notifications.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,oBAAY,gBAAgB;IAC1B,YAAY,iBAAiB;IAC7B,YAAY,iBAAiB;IAC7B,cAAc,mBAAmB;IACjC,kBAAkB,uBAAuB;IACzC,uBAAuB,4BAA4B;IACnD,qCAAqC,0CAA0C;IAC/E,6BAA6B,kCAAkC;IAC/D,wCAAwC,6CAA6C;IACrF,kCAAkC,uCAAuC;IACzE,2BAA2B,gCAAgC;IAC3D,6BAA6B,kCAAkC;IAC/D,uBAAuB,4BAA4B;IACnD,wBAAwB,6BAA6B;IACrD,SAAS,cAAc;IACvB,iBAAiB,iBAAiB;IAClC,WAAW,mBAAmB;IAC9B,eAAe,sBAAsB;IACrC,gBAAgB,qBAAqB;IACrC,sBAAsB,2BAA2B;IACjD,wBAAwB,6BAA6B;IACrD,wBAAwB,6BAA6B;IACrD,yBAAyB,8BAA8B;IACvD,yBAAyB,8BAA8B;
|
|
1
|
+
{"version":3,"file":"notifications.d.ts","sourceRoot":"","sources":["../../../src/platform/notifications/notifications.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,oBAAY,gBAAgB;IAC1B,YAAY,iBAAiB;IAC7B,YAAY,iBAAiB;IAC7B,cAAc,mBAAmB;IACjC,kBAAkB,uBAAuB;IACzC,uBAAuB,4BAA4B;IACnD,qCAAqC,0CAA0C;IAC/E,6BAA6B,kCAAkC;IAC/D,wCAAwC,6CAA6C;IACrF,kCAAkC,uCAAuC;IACzE,2BAA2B,gCAAgC;IAC3D,6BAA6B,kCAAkC;IAC/D,uBAAuB,4BAA4B;IACnD,wBAAwB,6BAA6B;IACrD,SAAS,cAAc;IACvB,iBAAiB,iBAAiB;IAClC,WAAW,mBAAmB;IAC9B,eAAe,sBAAsB;IACrC,gBAAgB,qBAAqB;IACrC,sBAAsB,2BAA2B;IACjD,wBAAwB,6BAA6B;IACrD,wBAAwB,6BAA6B;IACrD,yBAAyB,8BAA8B;IACvD,yBAAyB,8BAA8B;IACvD,aAAa,kBAAkB;CAChC;AAED;;;GAGG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC,KAAK,EAAE,OAAO,CAAA;IACd,MAAM,EAAE,OAAO,CAAA;CAChB,CAAA"}
|
|
@@ -30,5 +30,6 @@ var NotificationType;
|
|
|
30
30
|
NotificationType["WORLDS_MISSING_RESOURCES"] = "worlds_missing_resources";
|
|
31
31
|
NotificationType["WORLDS_PERMISSION_GRANTED"] = "worlds_permission_granted";
|
|
32
32
|
NotificationType["WORLDS_PERMISSION_REVOKED"] = "worlds_permission_revoked";
|
|
33
|
+
NotificationType["BADGE_GRANTED"] = "badge_granted";
|
|
33
34
|
})(NotificationType = exports.NotificationType || (exports.NotificationType = {}));
|
|
34
35
|
//# sourceMappingURL=notifications.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notifications.js","sourceRoot":"","sources":["../../../src/platform/notifications/notifications.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,IAAY,
|
|
1
|
+
{"version":3,"file":"notifications.js","sourceRoot":"","sources":["../../../src/platform/notifications/notifications.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,IAAY,gBAyBX;AAzBD,WAAY,gBAAgB;IAC1B,iDAA6B,CAAA;IAC7B,iDAA6B,CAAA;IAC7B,qDAAiC,CAAA;IACjC,6DAAyC,CAAA;IACzC,uEAAmD,CAAA;IACnD,mGAA+E,CAAA;IAC/E,mFAA+D,CAAA;IAC/D,yGAAqF,CAAA;IACrF,6FAAyE,CAAA;IACzE,+EAA2D,CAAA;IAC3D,mFAA+D,CAAA;IAC/D,uEAAmD,CAAA;IACnD,yEAAqD,CAAA;IACrD,2CAAuB,CAAA;IACvB,sDAAkC,CAAA;IAClC,kDAA8B,CAAA;IAC9B,yDAAqC,CAAA;IACrC,yDAAqC,CAAA;IACrC,qEAAiD,CAAA;IACjD,yEAAqD,CAAA;IACrD,yEAAqD,CAAA;IACrD,2EAAuD,CAAA;IACvD,2EAAuD,CAAA;IACvD,mDAA+B,CAAA;AACjC,CAAC,EAzBW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAyB3B"}
|
package/dist/schemas.d.ts
CHANGED
|
@@ -198,6 +198,12 @@ export declare namespace AvatarInfo {
|
|
|
198
198
|
const validate: ValidateFunction<AvatarInfo>;
|
|
199
199
|
}
|
|
200
200
|
|
|
201
|
+
export declare type BaseEvent = {
|
|
202
|
+
type: string;
|
|
203
|
+
key: string;
|
|
204
|
+
timestamp: number;
|
|
205
|
+
};
|
|
206
|
+
|
|
201
207
|
/**
|
|
202
208
|
* @public
|
|
203
209
|
*
|
|
@@ -243,6 +249,11 @@ export declare namespace Bid {
|
|
|
243
249
|
const validate: ValidateFunction<Bid>;
|
|
244
250
|
}
|
|
245
251
|
|
|
252
|
+
export declare type BidAcceptedEvent = BaseEvent & {
|
|
253
|
+
type: EventType.BID_ACCEPTED;
|
|
254
|
+
metadata: BidMetadata;
|
|
255
|
+
};
|
|
256
|
+
|
|
246
257
|
export declare type BidFilters = {
|
|
247
258
|
first?: number;
|
|
248
259
|
skip?: number;
|
|
@@ -256,6 +267,25 @@ export declare type BidFilters = {
|
|
|
256
267
|
network?: Network;
|
|
257
268
|
};
|
|
258
269
|
|
|
270
|
+
declare type BidMetadata = {
|
|
271
|
+
address: string;
|
|
272
|
+
image: string;
|
|
273
|
+
seller: string;
|
|
274
|
+
category: string;
|
|
275
|
+
rarity?: string;
|
|
276
|
+
link: string;
|
|
277
|
+
nftName?: string;
|
|
278
|
+
price: string;
|
|
279
|
+
title: string;
|
|
280
|
+
description: string;
|
|
281
|
+
network: string;
|
|
282
|
+
};
|
|
283
|
+
|
|
284
|
+
export declare type BidReceivedEvent = BaseEvent & {
|
|
285
|
+
type: EventType.BID_RECEIVED;
|
|
286
|
+
metadata: BidMetadata;
|
|
287
|
+
};
|
|
288
|
+
|
|
259
289
|
export declare enum BidSortBy {
|
|
260
290
|
RECENTLY_OFFERED = "recently_offered",
|
|
261
291
|
RECENTLY_UPDATED = "recently_updated",
|
|
@@ -705,6 +735,17 @@ export declare namespace EthAddress {
|
|
|
705
735
|
const validate: ValidateFunction<EthAddress>;
|
|
706
736
|
}
|
|
707
737
|
|
|
738
|
+
export declare type EventNotification = BidAcceptedEvent | BidReceivedEvent | ItemSoldEvent | RentalEndedEvent | RentalStartedEvent | RoyaltiesEarnedEvent;
|
|
739
|
+
|
|
740
|
+
export declare enum EventType {
|
|
741
|
+
BID_ACCEPTED = "bid-accepted",
|
|
742
|
+
BID_RECEIVED = "bid-received",
|
|
743
|
+
ITEM_SOLD = "item-sold",
|
|
744
|
+
RENTAL_ENDED = "land-rental-ended",
|
|
745
|
+
RENTAL_STARTED = "land-rental-started",
|
|
746
|
+
ROYALTIES_EARNED = "royalties-earned"
|
|
747
|
+
}
|
|
748
|
+
|
|
708
749
|
/** @alpha */
|
|
709
750
|
export declare type FeatureToggles = {
|
|
710
751
|
voiceChat?: EnabledDisabled;
|
|
@@ -930,6 +971,22 @@ export declare type ItemFilters = {
|
|
|
930
971
|
emoteHasGeometry?: boolean;
|
|
931
972
|
};
|
|
932
973
|
|
|
974
|
+
export declare type ItemSoldEvent = BaseEvent & {
|
|
975
|
+
type: EventType.ITEM_SOLD;
|
|
976
|
+
metadata: {
|
|
977
|
+
address: string;
|
|
978
|
+
image: string;
|
|
979
|
+
seller: string;
|
|
980
|
+
category: string;
|
|
981
|
+
rarity?: string;
|
|
982
|
+
link: string;
|
|
983
|
+
nftName?: string;
|
|
984
|
+
network: string;
|
|
985
|
+
title: string;
|
|
986
|
+
description: string;
|
|
987
|
+
};
|
|
988
|
+
};
|
|
989
|
+
|
|
933
990
|
export declare enum ItemSortBy {
|
|
934
991
|
NAME = "name",
|
|
935
992
|
NEWEST = "newest",
|
|
@@ -1325,7 +1382,8 @@ export declare enum NotificationType {
|
|
|
1325
1382
|
WORLDS_ACCESS_RESTRICTED = "worlds_access_restricted",
|
|
1326
1383
|
WORLDS_MISSING_RESOURCES = "worlds_missing_resources",
|
|
1327
1384
|
WORLDS_PERMISSION_GRANTED = "worlds_permission_granted",
|
|
1328
|
-
WORLDS_PERMISSION_REVOKED = "worlds_permission_revoked"
|
|
1385
|
+
WORLDS_PERMISSION_REVOKED = "worlds_permission_revoked",
|
|
1386
|
+
BADGE_GRANTED = "badge_granted"
|
|
1329
1387
|
}
|
|
1330
1388
|
|
|
1331
1389
|
export declare type Order = {
|
|
@@ -1730,6 +1788,11 @@ export declare namespace Rarity {
|
|
|
1730
1788
|
export function getGradient(rarity: Rarity): [string, string];
|
|
1731
1789
|
}
|
|
1732
1790
|
|
|
1791
|
+
export declare type RentalEndedEvent = BaseEvent & {
|
|
1792
|
+
type: EventType.RENTAL_ENDED;
|
|
1793
|
+
metadata: RentalMetadata;
|
|
1794
|
+
};
|
|
1795
|
+
|
|
1733
1796
|
/**
|
|
1734
1797
|
* A rental listing.
|
|
1735
1798
|
*/
|
|
@@ -1821,6 +1884,21 @@ export declare type RentalListingPeriod = {
|
|
|
1821
1884
|
pricePerDay: string;
|
|
1822
1885
|
};
|
|
1823
1886
|
|
|
1887
|
+
declare type RentalMetadata = {
|
|
1888
|
+
address: string;
|
|
1889
|
+
contract: string;
|
|
1890
|
+
land?: string;
|
|
1891
|
+
lessor: string;
|
|
1892
|
+
tenant: string;
|
|
1893
|
+
operator: string;
|
|
1894
|
+
startedAt: string;
|
|
1895
|
+
endedAt: string;
|
|
1896
|
+
tokenId: string;
|
|
1897
|
+
link: string;
|
|
1898
|
+
title: string;
|
|
1899
|
+
description?: string;
|
|
1900
|
+
};
|
|
1901
|
+
|
|
1824
1902
|
/**
|
|
1825
1903
|
* All the possible parameters that a rental can be filtered for.
|
|
1826
1904
|
*/
|
|
@@ -1916,6 +1994,11 @@ export declare enum RentalsListingsSortBy {
|
|
|
1916
1994
|
MIN_RENTAL_PRICE = "min_rental_price"
|
|
1917
1995
|
}
|
|
1918
1996
|
|
|
1997
|
+
export declare type RentalStartedEvent = BaseEvent & {
|
|
1998
|
+
type: EventType.RENTAL_STARTED;
|
|
1999
|
+
metadata: RentalMetadata;
|
|
2000
|
+
};
|
|
2001
|
+
|
|
1919
2002
|
/**
|
|
1920
2003
|
* All the possible rental statuses.
|
|
1921
2004
|
* (This will be merged into ListingStatus eventually)
|
|
@@ -1938,6 +2021,23 @@ export declare enum RequiredPermission {
|
|
|
1938
2021
|
OPEN_EXTERNAL_LINK = "OPEN_EXTERNAL_LINK"
|
|
1939
2022
|
}
|
|
1940
2023
|
|
|
2024
|
+
export declare type RoyaltiesEarnedEvent = BaseEvent & {
|
|
2025
|
+
type: EventType.ROYALTIES_EARNED;
|
|
2026
|
+
metadata: {
|
|
2027
|
+
address: string;
|
|
2028
|
+
image: string;
|
|
2029
|
+
category: string;
|
|
2030
|
+
rarity?: string;
|
|
2031
|
+
link: string;
|
|
2032
|
+
nftName?: string;
|
|
2033
|
+
royaltiesCut: string;
|
|
2034
|
+
royaltiesCollector: string;
|
|
2035
|
+
network: string;
|
|
2036
|
+
title: string;
|
|
2037
|
+
description?: string;
|
|
2038
|
+
};
|
|
2039
|
+
};
|
|
2040
|
+
|
|
1941
2041
|
export declare type Sale = {
|
|
1942
2042
|
id: string;
|
|
1943
2043
|
type: SaleType;
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "11.10.
|
|
2
|
+
"version": "11.10.6-20240709162853.commit-e1e2269",
|
|
3
3
|
"name": "@dcl/schemas",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "./dist/index.d.ts",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"files": [
|
|
45
45
|
"dist"
|
|
46
46
|
],
|
|
47
|
-
"commit": "
|
|
47
|
+
"commit": "e1e22692803c45e3dbf1fe3f84cc4d029f5ca102"
|
|
48
48
|
}
|