@dcl/schemas 12.1.0 → 13.0.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/misc/catalyst-deployment.d.ts +15 -0
- package/dist/misc/catalyst-deployment.d.ts.map +1 -0
- package/dist/misc/catalyst-deployment.js +28 -0
- package/dist/misc/catalyst-deployment.js.map +1 -0
- package/dist/platform/events/base.d.ts +34 -10
- package/dist/platform/events/base.d.ts.map +1 -1
- package/dist/platform/events/base.js +36 -10
- package/dist/platform/events/base.js.map +1 -1
- package/dist/platform/events/blockchain.d.ts +50 -7
- package/dist/platform/events/blockchain.d.ts.map +1 -1
- package/dist/platform/events/blockchain.js +241 -0
- package/dist/platform/events/blockchain.js.map +1 -1
- package/dist/platform/events/catalyst.d.ts +13 -0
- package/dist/platform/events/catalyst.d.ts.map +1 -0
- package/dist/platform/events/catalyst.js +26 -0
- package/dist/platform/events/catalyst.js.map +1 -0
- package/dist/platform/events/client.d.ts +22 -0
- package/dist/platform/events/client.d.ts.map +1 -0
- package/dist/platform/events/client.js +3 -0
- package/dist/platform/events/client.js.map +1 -0
- package/dist/platform/events/index.d.ts +2 -0
- package/dist/platform/events/index.d.ts.map +1 -1
- package/dist/platform/events/index.js +2 -0
- package/dist/platform/events/index.js.map +1 -1
- package/dist/schemas.d.ts +119 -15
- package/package.json +2 -2
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { JSONSchema, ValidateFunction } from '../validation';
|
|
2
|
+
import { AuthChain } from './auth-chain';
|
|
3
|
+
export type CatalystDeployment = {
|
|
4
|
+
entity: {
|
|
5
|
+
entityId: string;
|
|
6
|
+
entityType: string;
|
|
7
|
+
authChain: AuthChain;
|
|
8
|
+
metadata?: any;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export declare namespace CatalystDeployment {
|
|
12
|
+
const schema: JSONSchema<CatalystDeployment>;
|
|
13
|
+
const validate: ValidateFunction<CatalystDeployment>;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=catalyst-deployment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalyst-deployment.d.ts","sourceRoot":"","sources":["../../src/misc/catalyst-deployment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAyB,gBAAgB,EAAE,MAAM,eAAe,CAAA;AACnF,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAExC,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,EAAE;QACN,QAAQ,EAAE,MAAM,CAAA;QAChB,UAAU,EAAE,MAAM,CAAA;QAClB,SAAS,EAAE,SAAS,CAAA;QACpB,QAAQ,CAAC,EAAE,GAAG,CAAA;KACf,CAAA;CACF,CAAA;AAED,yBAAiB,kBAAkB,CAAC;IAC3B,MAAM,MAAM,EAAE,UAAU,CAAC,kBAAkB,CAiBjD,CAAA;IAEM,MAAM,QAAQ,EAAE,gBAAgB,CAAC,kBAAkB,CAAiC,CAAA;CAC5F"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CatalystDeployment = void 0;
|
|
4
|
+
const validation_1 = require("../validation");
|
|
5
|
+
const auth_chain_1 = require("./auth-chain");
|
|
6
|
+
var CatalystDeployment;
|
|
7
|
+
(function (CatalystDeployment) {
|
|
8
|
+
CatalystDeployment.schema = {
|
|
9
|
+
type: 'object',
|
|
10
|
+
required: ['entity'],
|
|
11
|
+
properties: {
|
|
12
|
+
entity: {
|
|
13
|
+
type: 'object',
|
|
14
|
+
required: ['entityId', 'entityType', 'authChain'],
|
|
15
|
+
properties: {
|
|
16
|
+
entityId: { type: 'string' },
|
|
17
|
+
entityType: { type: 'string' },
|
|
18
|
+
authChain: auth_chain_1.AuthChain.schema,
|
|
19
|
+
metadata: { type: 'object', additionalProperties: true, nullable: true }
|
|
20
|
+
},
|
|
21
|
+
additionalProperties: true
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
additionalProperties: true
|
|
25
|
+
};
|
|
26
|
+
CatalystDeployment.validate = (0, validation_1.generateLazyValidator)(CatalystDeployment.schema);
|
|
27
|
+
})(CatalystDeployment = exports.CatalystDeployment || (exports.CatalystDeployment = {}));
|
|
28
|
+
//# sourceMappingURL=catalyst-deployment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalyst-deployment.js","sourceRoot":"","sources":["../../src/misc/catalyst-deployment.ts"],"names":[],"mappings":";;;AAAA,8CAAmF;AACnF,6CAAwC;AAWxC,IAAiB,kBAAkB,CAqBlC;AArBD,WAAiB,kBAAkB;IACpB,yBAAM,GAAmC;QACpD,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,CAAC,QAAQ,CAAC;QACpB,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,CAAC,UAAU,EAAE,YAAY,EAAE,WAAW,CAAC;gBACjD,UAAU,EAAE;oBACV,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBAC5B,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBAC9B,SAAS,EAAE,sBAAS,CAAC,MAAM;oBAC3B,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,oBAAoB,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE;iBACzE;gBACD,oBAAoB,EAAE,IAAI;aAC3B;SACF;QACD,oBAAoB,EAAE,IAAI;KAC3B,CAAA;IAEY,2BAAQ,GAAyC,IAAA,kCAAqB,EAAC,mBAAA,MAAM,CAAC,CAAA;AAC7F,CAAC,EArBgB,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAqBlC"}
|
|
@@ -1,16 +1,40 @@
|
|
|
1
|
-
import { BidAcceptedEvent, BidReceivedEvent, ItemSoldEvent, RentalEndedEvent, RentalStartedEvent, RoyaltiesEarnedEvent } from './blockchain';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { BidAcceptedEvent, BidReceivedEvent, CollectionCreatedEvent, ItemSoldEvent, RentalEndedEvent, RentalStartedEvent, RoyaltiesEarnedEvent } from './blockchain';
|
|
2
|
+
import { CatalystDeploymentEvent } from './catalyst';
|
|
3
|
+
import { MoveToParcelEvent } from './client';
|
|
4
|
+
export declare namespace Events {
|
|
5
|
+
enum Type {
|
|
6
|
+
BLOCKCHAIN = "blockchain",
|
|
7
|
+
CATALYST_DEPLOYMENT = "catalyst-deployment",
|
|
8
|
+
CLIENT = "client"
|
|
9
|
+
}
|
|
10
|
+
namespace SubType {
|
|
11
|
+
enum Blockchain {
|
|
12
|
+
BID_ACCEPTED = "bid-accepted",
|
|
13
|
+
BID_RECEIVED = "bid-received",
|
|
14
|
+
ITEM_SOLD = "item-sold",
|
|
15
|
+
RENTAL_ENDED = "land-rental-ended",
|
|
16
|
+
RENTAL_STARTED = "land-rental-started",
|
|
17
|
+
ROYALTIES_EARNED = "royalties-earned",
|
|
18
|
+
COLLECTION_CREATED = "collection-created"
|
|
19
|
+
}
|
|
20
|
+
enum CatalystDeployment {
|
|
21
|
+
SCENE = "scene",
|
|
22
|
+
PROFILE = "profile",
|
|
23
|
+
WEARABLE = "wearable",
|
|
24
|
+
STORE = "store",
|
|
25
|
+
EMOTE = "emote",
|
|
26
|
+
OUTFITS = "outfits"
|
|
27
|
+
}
|
|
28
|
+
enum Client {
|
|
29
|
+
MOVE_TO_PARCEL = "move-to-parcel"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
9
32
|
}
|
|
10
33
|
export type BaseEvent = {
|
|
11
|
-
type:
|
|
34
|
+
type: Events.Type;
|
|
35
|
+
subType: Events.SubType.Blockchain | Events.SubType.CatalystDeployment | Events.SubType.Client;
|
|
12
36
|
key: string;
|
|
13
37
|
timestamp: number;
|
|
14
38
|
};
|
|
15
|
-
export type
|
|
39
|
+
export type Event = BidAcceptedEvent | BidReceivedEvent | ItemSoldEvent | RentalEndedEvent | RentalStartedEvent | RoyaltiesEarnedEvent | CollectionCreatedEvent | MoveToParcelEvent | CatalystDeploymentEvent;
|
|
16
40
|
//# sourceMappingURL=base.d.ts.map
|
|
@@ -1 +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;
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/platform/events/base.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,sBAAsB,EACtB,aAAa,EACb,gBAAgB,EAChB,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAA;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAE5C,yBAAiB,MAAM,CAAC;IACtB,KAAY,IAAI;QACd,UAAU,eAAe;QACzB,mBAAmB,wBAAwB;QAC3C,MAAM,WAAW;KAClB;IAED,UAAiB,OAAO,CAAC;QACvB,KAAY,UAAU;YACpB,YAAY,iBAAiB;YAC7B,YAAY,iBAAiB;YAC7B,SAAS,cAAc;YACvB,YAAY,sBAAsB;YAClC,cAAc,wBAAwB;YACtC,gBAAgB,qBAAqB;YACrC,kBAAkB,uBAAuB;SAC1C;QAED,KAAY,kBAAkB;YAC5B,KAAK,UAAU;YACf,OAAO,YAAY;YACnB,QAAQ,aAAa;YACrB,KAAK,UAAU;YACf,KAAK,UAAU;YACf,OAAO,YAAY;SACpB;QAED,KAAY,MAAM;YAChB,cAAc,mBAAmB;SAClC;KACF;CACF;AAED,MAAM,MAAM,SAAS,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC,IAAI,CAAA;IACjB,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,UAAU,GAAG,MAAM,CAAC,OAAO,CAAC,kBAAkB,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAA;IAC9F,GAAG,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,KAAK,GACb,gBAAgB,GAChB,gBAAgB,GAChB,aAAa,GACb,gBAAgB,GAChB,kBAAkB,GAClB,oBAAoB,GACpB,sBAAsB,GACtB,iBAAiB,GACjB,uBAAuB,CAAA"}
|
|
@@ -1,13 +1,39 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
var
|
|
5
|
-
(function (
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
exports.Events = void 0;
|
|
4
|
+
var Events;
|
|
5
|
+
(function (Events) {
|
|
6
|
+
let Type;
|
|
7
|
+
(function (Type) {
|
|
8
|
+
Type["BLOCKCHAIN"] = "blockchain";
|
|
9
|
+
Type["CATALYST_DEPLOYMENT"] = "catalyst-deployment";
|
|
10
|
+
Type["CLIENT"] = "client";
|
|
11
|
+
})(Type = Events.Type || (Events.Type = {}));
|
|
12
|
+
let SubType;
|
|
13
|
+
(function (SubType) {
|
|
14
|
+
let Blockchain;
|
|
15
|
+
(function (Blockchain) {
|
|
16
|
+
Blockchain["BID_ACCEPTED"] = "bid-accepted";
|
|
17
|
+
Blockchain["BID_RECEIVED"] = "bid-received";
|
|
18
|
+
Blockchain["ITEM_SOLD"] = "item-sold";
|
|
19
|
+
Blockchain["RENTAL_ENDED"] = "land-rental-ended";
|
|
20
|
+
Blockchain["RENTAL_STARTED"] = "land-rental-started";
|
|
21
|
+
Blockchain["ROYALTIES_EARNED"] = "royalties-earned";
|
|
22
|
+
Blockchain["COLLECTION_CREATED"] = "collection-created";
|
|
23
|
+
})(Blockchain = SubType.Blockchain || (SubType.Blockchain = {}));
|
|
24
|
+
let CatalystDeployment;
|
|
25
|
+
(function (CatalystDeployment) {
|
|
26
|
+
CatalystDeployment["SCENE"] = "scene";
|
|
27
|
+
CatalystDeployment["PROFILE"] = "profile";
|
|
28
|
+
CatalystDeployment["WEARABLE"] = "wearable";
|
|
29
|
+
CatalystDeployment["STORE"] = "store";
|
|
30
|
+
CatalystDeployment["EMOTE"] = "emote";
|
|
31
|
+
CatalystDeployment["OUTFITS"] = "outfits";
|
|
32
|
+
})(CatalystDeployment = SubType.CatalystDeployment || (SubType.CatalystDeployment = {}));
|
|
33
|
+
let Client;
|
|
34
|
+
(function (Client) {
|
|
35
|
+
Client["MOVE_TO_PARCEL"] = "move-to-parcel";
|
|
36
|
+
})(Client = SubType.Client || (SubType.Client = {}));
|
|
37
|
+
})(SubType = Events.SubType || (Events.SubType = {}));
|
|
38
|
+
})(Events = exports.Events || (exports.Events = {}));
|
|
13
39
|
//# sourceMappingURL=base.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../../src/platform/events/base.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../../src/platform/events/base.ts"],"names":[],"mappings":";;;AAYA,IAAiB,MAAM,CA+BtB;AA/BD,WAAiB,MAAM;IACrB,IAAY,IAIX;IAJD,WAAY,IAAI;QACd,iCAAyB,CAAA;QACzB,mDAA2C,CAAA;QAC3C,yBAAiB,CAAA;IACnB,CAAC,EAJW,IAAI,GAAJ,WAAI,KAAJ,WAAI,QAIf;IAED,IAAiB,OAAO,CAuBvB;IAvBD,WAAiB,OAAO;QACtB,IAAY,UAQX;QARD,WAAY,UAAU;YACpB,2CAA6B,CAAA;YAC7B,2CAA6B,CAAA;YAC7B,qCAAuB,CAAA;YACvB,gDAAkC,CAAA;YAClC,oDAAsC,CAAA;YACtC,mDAAqC,CAAA;YACrC,uDAAyC,CAAA;QAC3C,CAAC,EARW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAQrB;QAED,IAAY,kBAOX;QAPD,WAAY,kBAAkB;YAC5B,qCAAe,CAAA;YACf,yCAAmB,CAAA;YACnB,2CAAqB,CAAA;YACrB,qCAAe,CAAA;YACf,qCAAe,CAAA;YACf,yCAAmB,CAAA;QACrB,CAAC,EAPW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAO7B;QAED,IAAY,MAEX;QAFD,WAAY,MAAM;YAChB,2CAAiC,CAAA;QACnC,CAAC,EAFW,MAAM,GAAN,cAAM,KAAN,cAAM,QAEjB;IACH,CAAC,EAvBgB,OAAO,GAAP,cAAO,KAAP,cAAO,QAuBvB;AACH,CAAC,EA/BgB,MAAM,GAAN,cAAM,KAAN,cAAM,QA+BtB"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { JSONSchema, ValidateFunction } from '../../validation';
|
|
2
|
+
import { BaseEvent, Events } from './base';
|
|
2
3
|
type BidMetadata = {
|
|
3
4
|
address: string;
|
|
4
5
|
image: string;
|
|
@@ -13,15 +14,26 @@ type BidMetadata = {
|
|
|
13
14
|
network: string;
|
|
14
15
|
};
|
|
15
16
|
export type BidAcceptedEvent = BaseEvent & {
|
|
16
|
-
type:
|
|
17
|
+
type: Events.Type.BLOCKCHAIN;
|
|
18
|
+
subType: Events.SubType.Blockchain.BID_ACCEPTED;
|
|
17
19
|
metadata: BidMetadata;
|
|
18
20
|
};
|
|
21
|
+
export declare namespace BidAcceptedEvent {
|
|
22
|
+
const schema: JSONSchema<BidAcceptedEvent>;
|
|
23
|
+
const validate: ValidateFunction<BidAcceptedEvent>;
|
|
24
|
+
}
|
|
19
25
|
export type BidReceivedEvent = BaseEvent & {
|
|
20
|
-
type:
|
|
26
|
+
type: Events.Type.BLOCKCHAIN;
|
|
27
|
+
subType: Events.SubType.Blockchain.BID_RECEIVED;
|
|
21
28
|
metadata: BidMetadata;
|
|
22
29
|
};
|
|
30
|
+
export declare namespace BidReceivedEvent {
|
|
31
|
+
const schema: JSONSchema<BidReceivedEvent>;
|
|
32
|
+
const validate: ValidateFunction<BidReceivedEvent>;
|
|
33
|
+
}
|
|
23
34
|
export type ItemSoldEvent = BaseEvent & {
|
|
24
|
-
type:
|
|
35
|
+
type: Events.Type.BLOCKCHAIN;
|
|
36
|
+
subType: Events.SubType.Blockchain.ITEM_SOLD;
|
|
25
37
|
metadata: {
|
|
26
38
|
address: string;
|
|
27
39
|
image: string;
|
|
@@ -35,6 +47,10 @@ export type ItemSoldEvent = BaseEvent & {
|
|
|
35
47
|
description: string;
|
|
36
48
|
};
|
|
37
49
|
};
|
|
50
|
+
export declare namespace ItemSoldEvent {
|
|
51
|
+
const schema: JSONSchema<ItemSoldEvent>;
|
|
52
|
+
const validate: ValidateFunction<ItemSoldEvent>;
|
|
53
|
+
}
|
|
38
54
|
type RentalMetadata = {
|
|
39
55
|
address: string;
|
|
40
56
|
contract: string;
|
|
@@ -50,15 +66,26 @@ type RentalMetadata = {
|
|
|
50
66
|
description?: string;
|
|
51
67
|
};
|
|
52
68
|
export type RentalEndedEvent = BaseEvent & {
|
|
53
|
-
type:
|
|
69
|
+
type: Events.Type.BLOCKCHAIN;
|
|
70
|
+
subType: Events.SubType.Blockchain.RENTAL_ENDED;
|
|
54
71
|
metadata: RentalMetadata;
|
|
55
72
|
};
|
|
73
|
+
export declare namespace RentalEndedEvent {
|
|
74
|
+
const schema: JSONSchema<RentalEndedEvent>;
|
|
75
|
+
const validate: ValidateFunction<RentalEndedEvent>;
|
|
76
|
+
}
|
|
56
77
|
export type RentalStartedEvent = BaseEvent & {
|
|
57
|
-
type:
|
|
78
|
+
type: Events.Type.BLOCKCHAIN;
|
|
79
|
+
subType: Events.SubType.Blockchain.RENTAL_STARTED;
|
|
58
80
|
metadata: RentalMetadata;
|
|
59
81
|
};
|
|
82
|
+
export declare namespace RentalStartedEvent {
|
|
83
|
+
const schema: JSONSchema<RentalStartedEvent>;
|
|
84
|
+
const validate: ValidateFunction<RentalStartedEvent>;
|
|
85
|
+
}
|
|
60
86
|
export type RoyaltiesEarnedEvent = BaseEvent & {
|
|
61
|
-
type:
|
|
87
|
+
type: Events.Type.BLOCKCHAIN;
|
|
88
|
+
subType: Events.SubType.Blockchain.ROYALTIES_EARNED;
|
|
62
89
|
metadata: {
|
|
63
90
|
address: string;
|
|
64
91
|
image: string;
|
|
@@ -73,5 +100,21 @@ export type RoyaltiesEarnedEvent = BaseEvent & {
|
|
|
73
100
|
description?: string;
|
|
74
101
|
};
|
|
75
102
|
};
|
|
103
|
+
export declare namespace RoyaltiesEarnedEvent {
|
|
104
|
+
const schema: JSONSchema<RoyaltiesEarnedEvent>;
|
|
105
|
+
const validate: ValidateFunction<RoyaltiesEarnedEvent>;
|
|
106
|
+
}
|
|
107
|
+
export type CollectionCreatedEvent = BaseEvent & {
|
|
108
|
+
type: Events.Type.BLOCKCHAIN;
|
|
109
|
+
subType: Events.SubType.Blockchain.COLLECTION_CREATED;
|
|
110
|
+
metadata: {
|
|
111
|
+
creator: string;
|
|
112
|
+
name: string;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
export declare namespace CollectionCreatedEvent {
|
|
116
|
+
const schema: JSONSchema<CollectionCreatedEvent>;
|
|
117
|
+
const validate: ValidateFunction<CollectionCreatedEvent>;
|
|
118
|
+
}
|
|
76
119
|
export {};
|
|
77
120
|
//# sourceMappingURL=blockchain.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockchain.d.ts","sourceRoot":"","sources":["../../../src/platform/events/blockchain.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"blockchain.d.ts","sourceRoot":"","sources":["../../../src/platform/events/blockchain.ts"],"names":[],"mappings":"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gB,CAAC,oBAAoB,CAAiC,CAAA;CAC9F;AAED,MAAM,MAAM,sBAAsB,GAAG,SAAS,GAAG;IAC/C,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,UAAU,CAAA;IAC5B,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAA;IACrD,QAAQ,EAAE;QACR,OAAO,EAAE,MAAM,CAAA;QACf,IAAI,EAAE,MAAM,CAAA;KACb,CAAA;CACF,CAAA;AAED,yBAAiB,sBAAsB,CAAC;IAC/B,MAAM,MAAM,EAAE,UAAU,CAAC,sBAAsB,CAkBrD,CAAA;IAEM,MAAM,QAAQ,EAAE,gBAAgB,CAAC,sBAAsB,CAAiC,CAAA;CAChG"}
|
|
@@ -1,3 +1,244 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CollectionCreatedEvent = exports.RoyaltiesEarnedEvent = exports.RentalStartedEvent = exports.RentalEndedEvent = exports.ItemSoldEvent = exports.BidReceivedEvent = exports.BidAcceptedEvent = void 0;
|
|
4
|
+
const validation_1 = require("../../validation");
|
|
5
|
+
const base_1 = require("./base");
|
|
6
|
+
var BidAcceptedEvent;
|
|
7
|
+
(function (BidAcceptedEvent) {
|
|
8
|
+
BidAcceptedEvent.schema = {
|
|
9
|
+
type: 'object',
|
|
10
|
+
properties: {
|
|
11
|
+
type: { type: 'string', const: base_1.Events.Type.BLOCKCHAIN },
|
|
12
|
+
subType: { type: 'string', const: base_1.Events.SubType.Blockchain.BID_ACCEPTED },
|
|
13
|
+
key: { type: 'string' },
|
|
14
|
+
timestamp: { type: 'number', minimum: 0 },
|
|
15
|
+
metadata: {
|
|
16
|
+
type: 'object',
|
|
17
|
+
properties: {
|
|
18
|
+
address: { type: 'string' },
|
|
19
|
+
image: { type: 'string' },
|
|
20
|
+
seller: { type: 'string' },
|
|
21
|
+
category: { type: 'string' },
|
|
22
|
+
rarity: { type: 'string', nullable: true },
|
|
23
|
+
link: { type: 'string' },
|
|
24
|
+
nftName: { type: 'string', nullable: true },
|
|
25
|
+
price: { type: 'string' },
|
|
26
|
+
title: { type: 'string' },
|
|
27
|
+
description: { type: 'string' },
|
|
28
|
+
network: { type: 'string' }
|
|
29
|
+
},
|
|
30
|
+
required: ['address', 'image', 'seller', 'category', 'link', 'price', 'title', 'network']
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
required: ['type', 'subType', 'key', 'timestamp', 'metadata'],
|
|
34
|
+
additionalProperties: true
|
|
35
|
+
};
|
|
36
|
+
BidAcceptedEvent.validate = (0, validation_1.generateLazyValidator)(BidAcceptedEvent.schema);
|
|
37
|
+
})(BidAcceptedEvent = exports.BidAcceptedEvent || (exports.BidAcceptedEvent = {}));
|
|
38
|
+
var BidReceivedEvent;
|
|
39
|
+
(function (BidReceivedEvent) {
|
|
40
|
+
BidReceivedEvent.schema = {
|
|
41
|
+
type: 'object',
|
|
42
|
+
properties: {
|
|
43
|
+
type: { type: 'string', const: base_1.Events.Type.BLOCKCHAIN },
|
|
44
|
+
subType: { type: 'string', const: base_1.Events.SubType.Blockchain.BID_RECEIVED },
|
|
45
|
+
key: { type: 'string' },
|
|
46
|
+
timestamp: { type: 'number', minimum: 0 },
|
|
47
|
+
metadata: {
|
|
48
|
+
type: 'object',
|
|
49
|
+
properties: {
|
|
50
|
+
address: { type: 'string' },
|
|
51
|
+
image: { type: 'string' },
|
|
52
|
+
seller: { type: 'string' },
|
|
53
|
+
category: { type: 'string' },
|
|
54
|
+
rarity: { type: 'string', nullable: true },
|
|
55
|
+
link: { type: 'string' },
|
|
56
|
+
nftName: { type: 'string', nullable: true },
|
|
57
|
+
price: { type: 'string' },
|
|
58
|
+
title: { type: 'string' },
|
|
59
|
+
description: { type: 'string' },
|
|
60
|
+
network: { type: 'string' }
|
|
61
|
+
},
|
|
62
|
+
required: ['address', 'image', 'seller', 'category', 'link', 'price', 'title', 'network']
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
required: ['type', 'subType', 'key', 'timestamp', 'metadata'],
|
|
66
|
+
additionalProperties: false
|
|
67
|
+
};
|
|
68
|
+
BidReceivedEvent.validate = (0, validation_1.generateLazyValidator)(BidReceivedEvent.schema);
|
|
69
|
+
})(BidReceivedEvent = exports.BidReceivedEvent || (exports.BidReceivedEvent = {}));
|
|
70
|
+
var ItemSoldEvent;
|
|
71
|
+
(function (ItemSoldEvent) {
|
|
72
|
+
ItemSoldEvent.schema = {
|
|
73
|
+
type: 'object',
|
|
74
|
+
properties: {
|
|
75
|
+
type: { type: 'string', const: base_1.Events.Type.BLOCKCHAIN },
|
|
76
|
+
subType: { type: 'string', const: base_1.Events.SubType.Blockchain.ITEM_SOLD },
|
|
77
|
+
key: { type: 'string' },
|
|
78
|
+
timestamp: { type: 'number', minimum: 0 },
|
|
79
|
+
metadata: {
|
|
80
|
+
type: 'object',
|
|
81
|
+
properties: {
|
|
82
|
+
address: { type: 'string' },
|
|
83
|
+
image: { type: 'string' },
|
|
84
|
+
seller: { type: 'string' },
|
|
85
|
+
category: { type: 'string' },
|
|
86
|
+
rarity: { type: 'string', nullable: true },
|
|
87
|
+
link: { type: 'string' },
|
|
88
|
+
nftName: { type: 'string', nullable: true },
|
|
89
|
+
network: { type: 'string' },
|
|
90
|
+
title: { type: 'string' },
|
|
91
|
+
description: { type: 'string' }
|
|
92
|
+
},
|
|
93
|
+
required: ['address', 'image', 'seller', 'category', 'link', 'network', 'title', 'description']
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
required: ['type', 'subType', 'key', 'timestamp', 'metadata'],
|
|
97
|
+
additionalProperties: false
|
|
98
|
+
};
|
|
99
|
+
ItemSoldEvent.validate = (0, validation_1.generateLazyValidator)(ItemSoldEvent.schema);
|
|
100
|
+
})(ItemSoldEvent = exports.ItemSoldEvent || (exports.ItemSoldEvent = {}));
|
|
101
|
+
var RentalEndedEvent;
|
|
102
|
+
(function (RentalEndedEvent) {
|
|
103
|
+
RentalEndedEvent.schema = {
|
|
104
|
+
type: 'object',
|
|
105
|
+
properties: {
|
|
106
|
+
type: { type: 'string', const: base_1.Events.Type.BLOCKCHAIN },
|
|
107
|
+
subType: { type: 'string', const: base_1.Events.SubType.Blockchain.RENTAL_ENDED },
|
|
108
|
+
key: { type: 'string' },
|
|
109
|
+
timestamp: { type: 'number', minimum: 0 },
|
|
110
|
+
metadata: {
|
|
111
|
+
type: 'object',
|
|
112
|
+
properties: {
|
|
113
|
+
address: { type: 'string' },
|
|
114
|
+
contract: { type: 'string' },
|
|
115
|
+
land: { type: 'string', nullable: true },
|
|
116
|
+
lessor: { type: 'string' },
|
|
117
|
+
tenant: { type: 'string' },
|
|
118
|
+
operator: { type: 'string' },
|
|
119
|
+
startedAt: { type: 'string' },
|
|
120
|
+
endedAt: { type: 'string' },
|
|
121
|
+
tokenId: { type: 'string' },
|
|
122
|
+
link: { type: 'string' },
|
|
123
|
+
title: { type: 'string' },
|
|
124
|
+
description: { type: 'string', nullable: true }
|
|
125
|
+
},
|
|
126
|
+
required: [
|
|
127
|
+
'address',
|
|
128
|
+
'contract',
|
|
129
|
+
'lessor',
|
|
130
|
+
'tenant',
|
|
131
|
+
'operator',
|
|
132
|
+
'startedAt',
|
|
133
|
+
'endedAt',
|
|
134
|
+
'tokenId',
|
|
135
|
+
'link',
|
|
136
|
+
'title'
|
|
137
|
+
]
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
required: ['type', 'subType', 'key', 'timestamp', 'metadata'],
|
|
141
|
+
additionalProperties: false
|
|
142
|
+
};
|
|
143
|
+
RentalEndedEvent.validate = (0, validation_1.generateLazyValidator)(RentalEndedEvent.schema);
|
|
144
|
+
})(RentalEndedEvent = exports.RentalEndedEvent || (exports.RentalEndedEvent = {}));
|
|
145
|
+
var RentalStartedEvent;
|
|
146
|
+
(function (RentalStartedEvent) {
|
|
147
|
+
RentalStartedEvent.schema = {
|
|
148
|
+
type: 'object',
|
|
149
|
+
properties: {
|
|
150
|
+
type: { type: 'string', const: base_1.Events.Type.BLOCKCHAIN },
|
|
151
|
+
subType: { type: 'string', const: base_1.Events.SubType.Blockchain.RENTAL_STARTED },
|
|
152
|
+
key: { type: 'string' },
|
|
153
|
+
timestamp: { type: 'number', minimum: 0 },
|
|
154
|
+
metadata: {
|
|
155
|
+
type: 'object',
|
|
156
|
+
properties: {
|
|
157
|
+
address: { type: 'string' },
|
|
158
|
+
contract: { type: 'string' },
|
|
159
|
+
land: { type: 'string', nullable: true },
|
|
160
|
+
lessor: { type: 'string' },
|
|
161
|
+
tenant: { type: 'string' },
|
|
162
|
+
operator: { type: 'string' },
|
|
163
|
+
startedAt: { type: 'string' },
|
|
164
|
+
endedAt: { type: 'string' },
|
|
165
|
+
tokenId: { type: 'string' },
|
|
166
|
+
link: { type: 'string' },
|
|
167
|
+
title: { type: 'string' },
|
|
168
|
+
description: { type: 'string', nullable: true }
|
|
169
|
+
},
|
|
170
|
+
required: [
|
|
171
|
+
'address',
|
|
172
|
+
'contract',
|
|
173
|
+
'lessor',
|
|
174
|
+
'tenant',
|
|
175
|
+
'operator',
|
|
176
|
+
'startedAt',
|
|
177
|
+
'endedAt',
|
|
178
|
+
'tokenId',
|
|
179
|
+
'link',
|
|
180
|
+
'title'
|
|
181
|
+
]
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
required: ['type', 'subType', 'key', 'timestamp', 'metadata'],
|
|
185
|
+
additionalProperties: false
|
|
186
|
+
};
|
|
187
|
+
RentalStartedEvent.validate = (0, validation_1.generateLazyValidator)(RentalStartedEvent.schema);
|
|
188
|
+
})(RentalStartedEvent = exports.RentalStartedEvent || (exports.RentalStartedEvent = {}));
|
|
189
|
+
var RoyaltiesEarnedEvent;
|
|
190
|
+
(function (RoyaltiesEarnedEvent) {
|
|
191
|
+
RoyaltiesEarnedEvent.schema = {
|
|
192
|
+
type: 'object',
|
|
193
|
+
properties: {
|
|
194
|
+
type: { type: 'string', const: base_1.Events.Type.BLOCKCHAIN },
|
|
195
|
+
subType: { type: 'string', const: base_1.Events.SubType.Blockchain.ROYALTIES_EARNED },
|
|
196
|
+
key: { type: 'string' },
|
|
197
|
+
timestamp: { type: 'number', minimum: 0 },
|
|
198
|
+
metadata: {
|
|
199
|
+
type: 'object',
|
|
200
|
+
properties: {
|
|
201
|
+
address: { type: 'string' },
|
|
202
|
+
image: { type: 'string' },
|
|
203
|
+
category: { type: 'string' },
|
|
204
|
+
rarity: { type: 'string', nullable: true },
|
|
205
|
+
link: { type: 'string' },
|
|
206
|
+
nftName: { type: 'string', nullable: true },
|
|
207
|
+
royaltiesCut: { type: 'string' },
|
|
208
|
+
royaltiesCollector: { type: 'string' },
|
|
209
|
+
network: { type: 'string' },
|
|
210
|
+
title: { type: 'string' },
|
|
211
|
+
description: { type: 'string', nullable: true }
|
|
212
|
+
},
|
|
213
|
+
required: ['address', 'image', 'category', 'link', 'royaltiesCut', 'royaltiesCollector', 'network', 'title']
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
required: ['type', 'subType', 'metadata'],
|
|
217
|
+
additionalProperties: false
|
|
218
|
+
};
|
|
219
|
+
RoyaltiesEarnedEvent.validate = (0, validation_1.generateLazyValidator)(RoyaltiesEarnedEvent.schema);
|
|
220
|
+
})(RoyaltiesEarnedEvent = exports.RoyaltiesEarnedEvent || (exports.RoyaltiesEarnedEvent = {}));
|
|
221
|
+
var CollectionCreatedEvent;
|
|
222
|
+
(function (CollectionCreatedEvent) {
|
|
223
|
+
CollectionCreatedEvent.schema = {
|
|
224
|
+
type: 'object',
|
|
225
|
+
properties: {
|
|
226
|
+
type: { type: 'string', const: base_1.Events.Type.BLOCKCHAIN },
|
|
227
|
+
subType: { type: 'string', const: base_1.Events.SubType.Blockchain.COLLECTION_CREATED },
|
|
228
|
+
key: { type: 'string' },
|
|
229
|
+
timestamp: { type: 'number', minimum: 0 },
|
|
230
|
+
metadata: {
|
|
231
|
+
type: 'object',
|
|
232
|
+
properties: {
|
|
233
|
+
creator: { type: 'string' },
|
|
234
|
+
name: { type: 'string' }
|
|
235
|
+
},
|
|
236
|
+
required: ['creator', 'name']
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
required: ['type', 'subType', 'metadata'],
|
|
240
|
+
additionalProperties: false
|
|
241
|
+
};
|
|
242
|
+
CollectionCreatedEvent.validate = (0, validation_1.generateLazyValidator)(CollectionCreatedEvent.schema);
|
|
243
|
+
})(CollectionCreatedEvent = exports.CollectionCreatedEvent || (exports.CollectionCreatedEvent = {}));
|
|
3
244
|
//# sourceMappingURL=blockchain.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blockchain.js","sourceRoot":"","sources":["../../../src/platform/events/blockchain.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"blockchain.js","sourceRoot":"","sources":["../../../src/platform/events/blockchain.ts"],"names":[],"mappings":";;;AAAA,iDAAsF;AACtF,iCAA0C;AAsB1C,IAAiB,gBAAgB,CA+BhC;AA/BD,WAAiB,gBAAgB;IAClB,uBAAM,GAAiC;QAClD,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,aAAM,CAAC,IAAI,CAAC,UAAU,EAAE;YACvD,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,aAAM,CAAC,OAAO,CAAC,UAAU,CAAC,YAAY,EAAE;YAC1E,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACvB,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,EAAE;YACzC,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBAC3B,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBACzB,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ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tC;AAtBD,WAAiB,sBAAsB;IACxB,6BAAM,GAAuC;QACxD,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,aAAM,CAAC,IAAI,CAAC,UAAU,EAAE;YACvD,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,aAAM,CAAC,OAAO,CAAC,UAAU,CAAC,kBAAkB,EAAE;YAChF,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACvB,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,EAAE;YACzC,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBAC3B,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;iBACzB;gBACD,QAAQ,EAAE,CAAC,SAAS,EAAE,MAAM,CAAC;aAC9B;SACF;QACD,QAAQ,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,UAAU,CAAC;QACzC,oBAAoB,EAAE,KAAK;KAC5B,CAAA;IAEY,+BAAQ,GAA6C,IAAA,kCAAqB,EAAC,uBAAA,MAAM,CAAC,CAAA;AACjG,CAAC,EAtBgB,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAsBtC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { JSONSchema, ValidateFunction } from '../../validation';
|
|
2
|
+
import { Entity } from '../entity';
|
|
3
|
+
import { BaseEvent, Events } from './base';
|
|
4
|
+
export type CatalystDeploymentEvent = BaseEvent & {
|
|
5
|
+
type: Events.Type.CATALYST_DEPLOYMENT;
|
|
6
|
+
subType: Events.SubType.CatalystDeployment;
|
|
7
|
+
entity: Entity;
|
|
8
|
+
};
|
|
9
|
+
export declare namespace CatalystDeploymentEvent {
|
|
10
|
+
const schema: JSONSchema<CatalystDeploymentEvent>;
|
|
11
|
+
const validate: ValidateFunction<CatalystDeploymentEvent>;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=catalyst.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalyst.d.ts","sourceRoot":"","sources":["../../../src/platform/events/catalyst.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,UAAU,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AACtF,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAE1C,MAAM,MAAM,uBAAuB,GAAG,SAAS,GAAG;IAChD,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,mBAAmB,CAAA;IACrC,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,kBAAkB,CAAA;IAC1C,MAAM,EAAE,MAAM,CAAA;CACf,CAAA;AAED,yBAAiB,uBAAuB,CAAC;IAChC,MAAM,MAAM,EAAE,UAAU,CAAC,uBAAuB,CActD,CAAA;IAEM,MAAM,QAAQ,EAAE,gBAAgB,CAAC,uBAAuB,CAAiC,CAAA;CACjG"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CatalystDeploymentEvent = void 0;
|
|
4
|
+
const validation_1 = require("../../validation");
|
|
5
|
+
const entity_1 = require("../entity");
|
|
6
|
+
const base_1 = require("./base");
|
|
7
|
+
var CatalystDeploymentEvent;
|
|
8
|
+
(function (CatalystDeploymentEvent) {
|
|
9
|
+
CatalystDeploymentEvent.schema = {
|
|
10
|
+
type: 'object',
|
|
11
|
+
properties: {
|
|
12
|
+
type: { type: 'string', const: base_1.Events.Type.CATALYST_DEPLOYMENT },
|
|
13
|
+
subType: {
|
|
14
|
+
type: 'string',
|
|
15
|
+
enum: Object.values(base_1.Events.SubType.CatalystDeployment)
|
|
16
|
+
},
|
|
17
|
+
key: { type: 'string' },
|
|
18
|
+
timestamp: { type: 'number', minimum: 1 },
|
|
19
|
+
entity: entity_1.Entity.schema
|
|
20
|
+
},
|
|
21
|
+
required: ['type', 'subType', 'entity', 'key', 'timestamp'],
|
|
22
|
+
additionalProperties: false
|
|
23
|
+
};
|
|
24
|
+
CatalystDeploymentEvent.validate = (0, validation_1.generateLazyValidator)(CatalystDeploymentEvent.schema);
|
|
25
|
+
})(CatalystDeploymentEvent = exports.CatalystDeploymentEvent || (exports.CatalystDeploymentEvent = {}));
|
|
26
|
+
//# sourceMappingURL=catalyst.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalyst.js","sourceRoot":"","sources":["../../../src/platform/events/catalyst.ts"],"names":[],"mappings":";;;AAAA,iDAAsF;AACtF,sCAAkC;AAClC,iCAA0C;AAQ1C,IAAiB,uBAAuB,CAkBvC;AAlBD,WAAiB,uBAAuB;IACzB,8BAAM,GAAwC;QACzD,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,aAAM,CAAC,IAAI,CAAC,mBAAmB,EAAE;YAChE,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,aAAM,CAAC,OAAO,CAAC,kBAAkB,CAAC;aACvD;YACD,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACvB,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,EAAE;YACzC,MAAM,EAAE,eAAM,CAAC,MAAM;SACtB;QACD,QAAQ,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,CAAC;QAC3D,oBAAoB,EAAE,KAAK;KAC5B,CAAA;IAEY,gCAAQ,GAA8C,IAAA,kCAAqB,EAAC,wBAAA,MAAM,CAAC,CAAA;AAClG,CAAC,EAlBgB,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAkBvC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { BaseEvent, Events } from './base';
|
|
2
|
+
export type MoveToParcelEvent = BaseEvent & {
|
|
3
|
+
type: Events.Type.CLIENT;
|
|
4
|
+
subType: Events.SubType.Client.MOVE_TO_PARCEL;
|
|
5
|
+
metadata: {
|
|
6
|
+
address: string;
|
|
7
|
+
timestamp: number;
|
|
8
|
+
sessionId: string;
|
|
9
|
+
realm: string;
|
|
10
|
+
isGuest: boolean;
|
|
11
|
+
isAuthenticated: boolean;
|
|
12
|
+
position: string;
|
|
13
|
+
newParcel: string;
|
|
14
|
+
oldParcel: string;
|
|
15
|
+
exactPosition: {
|
|
16
|
+
x: number;
|
|
17
|
+
y: number;
|
|
18
|
+
z: number;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/platform/events/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAE1C,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG;IAC1C,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,MAAM,CAAA;IACxB,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,cAAc,CAAA;IAC7C,QAAQ,EAAE;QACR,OAAO,EAAE,MAAM,CAAA;QACf,SAAS,EAAE,MAAM,CAAA;QACjB,SAAS,EAAE,MAAM,CAAA;QACjB,KAAK,EAAE,MAAM,CAAA;QACb,OAAO,EAAE,OAAO,CAAA;QAChB,eAAe,EAAE,OAAO,CAAA;QACxB,QAAQ,EAAE,MAAM,CAAA;QAChB,SAAS,EAAE,MAAM,CAAA;QACjB,SAAS,EAAE,MAAM,CAAA;QACjB,aAAa,EAAE;YACb,CAAC,EAAE,MAAM,CAAA;YACT,CAAC,EAAE,MAAM,CAAA;YACT,CAAC,EAAE,MAAM,CAAA;SACV,CAAA;KACF,CAAA;CACF,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../../src/platform/events/client.ts"],"names":[],"mappings":""}
|
|
@@ -1 +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"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/platform/events/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA"}
|
|
@@ -16,4 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./base"), exports);
|
|
18
18
|
__exportStar(require("./blockchain"), exports);
|
|
19
|
+
__exportStar(require("./catalyst"), exports);
|
|
20
|
+
__exportStar(require("./client"), exports);
|
|
19
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/platform/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAsB;AACtB,+CAA4B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/platform/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAsB;AACtB,+CAA4B;AAC5B,6CAA0B;AAC1B,2CAAwB"}
|
package/dist/schemas.d.ts
CHANGED
|
@@ -238,7 +238,8 @@ export declare type BaseBid = {
|
|
|
238
238
|
};
|
|
239
239
|
|
|
240
240
|
export declare type BaseEvent = {
|
|
241
|
-
type:
|
|
241
|
+
type: Events.Type;
|
|
242
|
+
subType: Events.SubType.Blockchain | Events.SubType.CatalystDeployment | Events.SubType.Client;
|
|
242
243
|
key: string;
|
|
243
244
|
timestamp: number;
|
|
244
245
|
};
|
|
@@ -272,10 +273,16 @@ export declare namespace Bid {
|
|
|
272
273
|
}
|
|
273
274
|
|
|
274
275
|
export declare type BidAcceptedEvent = BaseEvent & {
|
|
275
|
-
type:
|
|
276
|
+
type: Events.Type.BLOCKCHAIN;
|
|
277
|
+
subType: Events.SubType.Blockchain.BID_ACCEPTED;
|
|
276
278
|
metadata: BidMetadata;
|
|
277
279
|
};
|
|
278
280
|
|
|
281
|
+
export declare namespace BidAcceptedEvent {
|
|
282
|
+
const schema: JSONSchema<BidAcceptedEvent>;
|
|
283
|
+
const validate: ValidateFunction<BidAcceptedEvent>;
|
|
284
|
+
}
|
|
285
|
+
|
|
279
286
|
export declare type BidFilters = {
|
|
280
287
|
first?: number;
|
|
281
288
|
skip?: number;
|
|
@@ -304,10 +311,16 @@ declare type BidMetadata = {
|
|
|
304
311
|
};
|
|
305
312
|
|
|
306
313
|
export declare type BidReceivedEvent = BaseEvent & {
|
|
307
|
-
type:
|
|
314
|
+
type: Events.Type.BLOCKCHAIN;
|
|
315
|
+
subType: Events.SubType.Blockchain.BID_RECEIVED;
|
|
308
316
|
metadata: BidMetadata;
|
|
309
317
|
};
|
|
310
318
|
|
|
319
|
+
export declare namespace BidReceivedEvent {
|
|
320
|
+
const schema: JSONSchema<BidReceivedEvent>;
|
|
321
|
+
const validate: ValidateFunction<BidReceivedEvent>;
|
|
322
|
+
}
|
|
323
|
+
|
|
311
324
|
export declare enum BidSortBy {
|
|
312
325
|
RECENTLY_OFFERED = "recently_offered",
|
|
313
326
|
RECENTLY_UPDATED = "recently_updated",
|
|
@@ -372,6 +385,17 @@ export declare enum CatalogSortDirection {
|
|
|
372
385
|
DESC = "desc"
|
|
373
386
|
}
|
|
374
387
|
|
|
388
|
+
export declare type CatalystDeploymentEvent = BaseEvent & {
|
|
389
|
+
type: Events.Type.CATALYST_DEPLOYMENT;
|
|
390
|
+
subType: Events.SubType.CatalystDeployment;
|
|
391
|
+
entity: Entity;
|
|
392
|
+
};
|
|
393
|
+
|
|
394
|
+
export declare namespace CatalystDeploymentEvent {
|
|
395
|
+
const schema: JSONSchema<CatalystDeploymentEvent>;
|
|
396
|
+
const validate: ValidateFunction<CatalystDeploymentEvent>;
|
|
397
|
+
}
|
|
398
|
+
|
|
375
399
|
/**
|
|
376
400
|
* Different supported chain ids
|
|
377
401
|
* @alpha
|
|
@@ -451,6 +475,20 @@ export declare namespace Collection {
|
|
|
451
475
|
const validate: ValidateFunction<Collection>;
|
|
452
476
|
}
|
|
453
477
|
|
|
478
|
+
export declare type CollectionCreatedEvent = BaseEvent & {
|
|
479
|
+
type: Events.Type.BLOCKCHAIN;
|
|
480
|
+
subType: Events.SubType.Blockchain.COLLECTION_CREATED;
|
|
481
|
+
metadata: {
|
|
482
|
+
creator: string;
|
|
483
|
+
name: string;
|
|
484
|
+
};
|
|
485
|
+
};
|
|
486
|
+
|
|
487
|
+
export declare namespace CollectionCreatedEvent {
|
|
488
|
+
const schema: JSONSchema<CollectionCreatedEvent>;
|
|
489
|
+
const validate: ValidateFunction<CollectionCreatedEvent>;
|
|
490
|
+
}
|
|
491
|
+
|
|
454
492
|
export declare type CollectionFilters = {
|
|
455
493
|
first?: number;
|
|
456
494
|
skip?: number;
|
|
@@ -759,15 +797,36 @@ export declare namespace EthAddress {
|
|
|
759
797
|
const validate: ValidateFunction<EthAddress>;
|
|
760
798
|
}
|
|
761
799
|
|
|
762
|
-
export declare type
|
|
800
|
+
export declare type Event = BidAcceptedEvent | BidReceivedEvent | ItemSoldEvent | RentalEndedEvent | RentalStartedEvent | RoyaltiesEarnedEvent | CollectionCreatedEvent | MoveToParcelEvent | CatalystDeploymentEvent;
|
|
763
801
|
|
|
764
|
-
export declare
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
802
|
+
export declare namespace Events {
|
|
803
|
+
export enum Type {
|
|
804
|
+
BLOCKCHAIN = "blockchain",
|
|
805
|
+
CATALYST_DEPLOYMENT = "catalyst-deployment",
|
|
806
|
+
CLIENT = "client"
|
|
807
|
+
}
|
|
808
|
+
export namespace SubType {
|
|
809
|
+
export enum Blockchain {
|
|
810
|
+
BID_ACCEPTED = "bid-accepted",
|
|
811
|
+
BID_RECEIVED = "bid-received",
|
|
812
|
+
ITEM_SOLD = "item-sold",
|
|
813
|
+
RENTAL_ENDED = "land-rental-ended",
|
|
814
|
+
RENTAL_STARTED = "land-rental-started",
|
|
815
|
+
ROYALTIES_EARNED = "royalties-earned",
|
|
816
|
+
COLLECTION_CREATED = "collection-created"
|
|
817
|
+
}
|
|
818
|
+
export enum CatalystDeployment {
|
|
819
|
+
SCENE = "scene",
|
|
820
|
+
PROFILE = "profile",
|
|
821
|
+
WEARABLE = "wearable",
|
|
822
|
+
STORE = "store",
|
|
823
|
+
EMOTE = "emote",
|
|
824
|
+
OUTFITS = "outfits"
|
|
825
|
+
}
|
|
826
|
+
export enum Client {
|
|
827
|
+
MOVE_TO_PARCEL = "move-to-parcel"
|
|
828
|
+
}
|
|
829
|
+
}
|
|
771
830
|
}
|
|
772
831
|
|
|
773
832
|
/** @alpha */
|
|
@@ -1011,7 +1070,8 @@ export declare type ItemFilters = {
|
|
|
1011
1070
|
};
|
|
1012
1071
|
|
|
1013
1072
|
export declare type ItemSoldEvent = BaseEvent & {
|
|
1014
|
-
type:
|
|
1073
|
+
type: Events.Type.BLOCKCHAIN;
|
|
1074
|
+
subType: Events.SubType.Blockchain.ITEM_SOLD;
|
|
1015
1075
|
metadata: {
|
|
1016
1076
|
address: string;
|
|
1017
1077
|
image: string;
|
|
@@ -1026,6 +1086,11 @@ export declare type ItemSoldEvent = BaseEvent & {
|
|
|
1026
1086
|
};
|
|
1027
1087
|
};
|
|
1028
1088
|
|
|
1089
|
+
export declare namespace ItemSoldEvent {
|
|
1090
|
+
const schema: JSONSchema<ItemSoldEvent>;
|
|
1091
|
+
const validate: ValidateFunction<ItemSoldEvent>;
|
|
1092
|
+
}
|
|
1093
|
+
|
|
1029
1094
|
export declare enum ItemSortBy {
|
|
1030
1095
|
NAME = "name",
|
|
1031
1096
|
NEWEST = "newest",
|
|
@@ -1248,6 +1313,27 @@ export declare enum MintSortBy {
|
|
|
1248
1313
|
MOST_EXPENSIVE = "most_expensive"
|
|
1249
1314
|
}
|
|
1250
1315
|
|
|
1316
|
+
export declare type MoveToParcelEvent = BaseEvent & {
|
|
1317
|
+
type: Events.Type.CLIENT;
|
|
1318
|
+
subType: Events.SubType.Client.MOVE_TO_PARCEL;
|
|
1319
|
+
metadata: {
|
|
1320
|
+
address: string;
|
|
1321
|
+
timestamp: number;
|
|
1322
|
+
sessionId: string;
|
|
1323
|
+
realm: string;
|
|
1324
|
+
isGuest: boolean;
|
|
1325
|
+
isAuthenticated: boolean;
|
|
1326
|
+
position: string;
|
|
1327
|
+
newParcel: string;
|
|
1328
|
+
oldParcel: string;
|
|
1329
|
+
exactPosition: {
|
|
1330
|
+
x: number;
|
|
1331
|
+
y: number;
|
|
1332
|
+
z: number;
|
|
1333
|
+
};
|
|
1334
|
+
};
|
|
1335
|
+
};
|
|
1336
|
+
|
|
1251
1337
|
/**
|
|
1252
1338
|
* MultipleMapping
|
|
1253
1339
|
* @alpha
|
|
@@ -1935,10 +2021,16 @@ export declare namespace Rarity {
|
|
|
1935
2021
|
}
|
|
1936
2022
|
|
|
1937
2023
|
export declare type RentalEndedEvent = BaseEvent & {
|
|
1938
|
-
type:
|
|
2024
|
+
type: Events.Type.BLOCKCHAIN;
|
|
2025
|
+
subType: Events.SubType.Blockchain.RENTAL_ENDED;
|
|
1939
2026
|
metadata: RentalMetadata;
|
|
1940
2027
|
};
|
|
1941
2028
|
|
|
2029
|
+
export declare namespace RentalEndedEvent {
|
|
2030
|
+
const schema: JSONSchema<RentalEndedEvent>;
|
|
2031
|
+
const validate: ValidateFunction<RentalEndedEvent>;
|
|
2032
|
+
}
|
|
2033
|
+
|
|
1942
2034
|
/**
|
|
1943
2035
|
* A rental listing.
|
|
1944
2036
|
*/
|
|
@@ -2141,10 +2233,16 @@ export declare enum RentalsListingsSortBy {
|
|
|
2141
2233
|
}
|
|
2142
2234
|
|
|
2143
2235
|
export declare type RentalStartedEvent = BaseEvent & {
|
|
2144
|
-
type:
|
|
2236
|
+
type: Events.Type.BLOCKCHAIN;
|
|
2237
|
+
subType: Events.SubType.Blockchain.RENTAL_STARTED;
|
|
2145
2238
|
metadata: RentalMetadata;
|
|
2146
2239
|
};
|
|
2147
2240
|
|
|
2241
|
+
export declare namespace RentalStartedEvent {
|
|
2242
|
+
const schema: JSONSchema<RentalStartedEvent>;
|
|
2243
|
+
const validate: ValidateFunction<RentalStartedEvent>;
|
|
2244
|
+
}
|
|
2245
|
+
|
|
2148
2246
|
/**
|
|
2149
2247
|
* All the possible rental statuses.
|
|
2150
2248
|
* (This will be merged into ListingStatus eventually)
|
|
@@ -2168,7 +2266,8 @@ export declare enum RequiredPermission {
|
|
|
2168
2266
|
}
|
|
2169
2267
|
|
|
2170
2268
|
export declare type RoyaltiesEarnedEvent = BaseEvent & {
|
|
2171
|
-
type:
|
|
2269
|
+
type: Events.Type.BLOCKCHAIN;
|
|
2270
|
+
subType: Events.SubType.Blockchain.ROYALTIES_EARNED;
|
|
2172
2271
|
metadata: {
|
|
2173
2272
|
address: string;
|
|
2174
2273
|
image: string;
|
|
@@ -2184,6 +2283,11 @@ export declare type RoyaltiesEarnedEvent = BaseEvent & {
|
|
|
2184
2283
|
};
|
|
2185
2284
|
};
|
|
2186
2285
|
|
|
2286
|
+
export declare namespace RoyaltiesEarnedEvent {
|
|
2287
|
+
const schema: JSONSchema<RoyaltiesEarnedEvent>;
|
|
2288
|
+
const validate: ValidateFunction<RoyaltiesEarnedEvent>;
|
|
2289
|
+
}
|
|
2290
|
+
|
|
2187
2291
|
export declare type Sale = {
|
|
2188
2292
|
id: string;
|
|
2189
2293
|
type: SaleType;
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "
|
|
2
|
+
"version": "13.0.0",
|
|
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": "d30dc6dd21c33edde0e0112e2628bf3195b6c484"
|
|
48
48
|
}
|