@dcl/schemas 2.2.2-20211124181718.commit-a8f6f19 → 2.2.3-20211130152647.commit-cbda2b3

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.
Files changed (115) hide show
  1. package/dist/dapps/bid.js +15 -15
  2. package/dist/dapps/body-shape.js +1 -1
  3. package/dist/dapps/chain-id.js +1 -1
  4. package/dist/dapps/chain-name.js +1 -1
  5. package/dist/dapps/collection.js +12 -12
  6. package/dist/dapps/contract.js +4 -4
  7. package/dist/dapps/item.d.ts.map +1 -1
  8. package/dist/dapps/item.js +18 -18
  9. package/dist/dapps/item.js.map +1 -1
  10. package/dist/dapps/listing-status.js +1 -1
  11. package/dist/dapps/meta-transactions.d.ts.map +1 -1
  12. package/dist/dapps/meta-transactions.js +3 -3
  13. package/dist/dapps/meta-transactions.js.map +1 -1
  14. package/dist/dapps/mint.js +13 -13
  15. package/dist/dapps/network.js +1 -1
  16. package/dist/dapps/nft-category.js +1 -1
  17. package/dist/dapps/nft.js +43 -43
  18. package/dist/dapps/order.js +12 -12
  19. package/dist/dapps/rarity.js +4 -4
  20. package/dist/dapps/sale-type.js +1 -1
  21. package/dist/dapps/sale.js +12 -12
  22. package/dist/dapps/store.d.ts +20 -0
  23. package/dist/dapps/store.d.ts.map +1 -0
  24. package/dist/dapps/store.js +57 -0
  25. package/dist/dapps/store.js.map +1 -0
  26. package/dist/dapps/wearable-category.js +1 -1
  27. package/dist/dapps/wearable-gender.js +1 -1
  28. package/dist/dapps/world.d.ts +1 -1
  29. package/dist/dapps/world.d.ts.map +1 -1
  30. package/dist/dapps/world.js +22 -22
  31. package/dist/dapps/world.js.map +1 -1
  32. package/dist/index.d.ts +3 -2
  33. package/dist/index.d.ts.map +1 -1
  34. package/dist/index.js +3 -1
  35. package/dist/index.js.map +1 -1
  36. package/dist/misc/index.d.ts +1 -1
  37. package/dist/misc/index.d.ts.map +1 -1
  38. package/dist/misc/index.js +1 -1
  39. package/dist/misc/index.js.map +1 -1
  40. package/dist/platform/profile/avatar.d.ts +2 -2
  41. package/dist/platform/profile/avatar.d.ts.map +1 -1
  42. package/dist/platform/profile/avatar.js +10 -3
  43. package/dist/platform/profile/avatar.js.map +1 -1
  44. package/dist/platform/profile/profile.d.ts +2 -2
  45. package/dist/platform/profile/profile.d.ts.map +1 -1
  46. package/dist/platform/profile/profile.js.map +1 -1
  47. package/dist/platform/scene/feature-toggles.d.ts +1 -1
  48. package/dist/platform/scene/feature-toggles.d.ts.map +1 -1
  49. package/dist/platform/scene/feature-toggles.js +2 -2
  50. package/dist/platform/scene/feature-toggles.js.map +1 -1
  51. package/dist/platform/scene/scene-parcels.d.ts +1 -1
  52. package/dist/platform/scene/scene-parcels.d.ts.map +1 -1
  53. package/dist/platform/scene/scene-parcels.js +11 -10
  54. package/dist/platform/scene/scene-parcels.js.map +1 -1
  55. package/dist/platform/scene/scene.d.ts +5 -5
  56. package/dist/platform/scene/scene.d.ts.map +1 -1
  57. package/dist/platform/scene/scene.js +39 -39
  58. package/dist/platform/scene/scene.js.map +1 -1
  59. package/dist/platform/scene/source.d.ts +2 -2
  60. package/dist/platform/scene/source.d.ts.map +1 -1
  61. package/dist/platform/scene/source.js +21 -21
  62. package/dist/platform/scene/source.js.map +1 -1
  63. package/dist/platform/scene/spawn-point.d.ts +1 -1
  64. package/dist/platform/scene/spawn-point.d.ts.map +1 -1
  65. package/dist/platform/scene/spawn-point.js +31 -34
  66. package/dist/platform/scene/spawn-point.js.map +1 -1
  67. package/dist/platform/wearables/i18n.d.ts.map +1 -1
  68. package/dist/platform/wearables/i18n.js +3 -3
  69. package/dist/platform/wearables/i18n.js.map +1 -1
  70. package/dist/platform/wearables/locale.d.ts.map +1 -1
  71. package/dist/platform/wearables/locale.js +1 -1
  72. package/dist/platform/wearables/locale.js.map +1 -1
  73. package/dist/platform/wearables/metrics.d.ts.map +1 -1
  74. package/dist/platform/wearables/metrics.js +15 -8
  75. package/dist/platform/wearables/metrics.js.map +1 -1
  76. package/dist/platform/wearables/representation.d.ts.map +1 -1
  77. package/dist/platform/wearables/representation.js +9 -3
  78. package/dist/platform/wearables/representation.js.map +1 -1
  79. package/dist/platform/wearables/wearable-body-shape.d.ts.map +1 -1
  80. package/dist/platform/wearables/wearable-body-shape.js +1 -1
  81. package/dist/platform/wearables/wearable-body-shape.js.map +1 -1
  82. package/dist/platform/wearables/wearable.d.ts.map +1 -1
  83. package/dist/platform/wearables/wearable.js +6 -6
  84. package/dist/platform/wearables/wearable.js.map +1 -1
  85. package/dist/schemas.d.ts +55 -4
  86. package/dist/sdk/project/asset-json.d.ts +22 -0
  87. package/dist/sdk/project/asset-json.d.ts.map +1 -0
  88. package/dist/sdk/project/asset-json.js +45 -0
  89. package/dist/sdk/project/asset-json.js.map +1 -0
  90. package/dist/sdk/project/asset-wearable-gender.d.ts +11 -0
  91. package/dist/sdk/project/asset-wearable-gender.d.ts.map +1 -0
  92. package/dist/sdk/project/asset-wearable-gender.js +18 -0
  93. package/dist/sdk/project/asset-wearable-gender.js.map +1 -0
  94. package/dist/sdk/project/index.d.ts +1 -0
  95. package/dist/sdk/project/index.d.ts.map +1 -1
  96. package/dist/sdk/project/index.js +1 -0
  97. package/dist/sdk/project/index.js.map +1 -1
  98. package/dist/sdk/project/type.d.ts +1 -1
  99. package/dist/sdk/project/type.d.ts.map +1 -1
  100. package/dist/sdk/project/type.js +2 -2
  101. package/dist/sdk/project/type.js.map +1 -1
  102. package/dist/sdk/ws/index.d.ts +4 -4
  103. package/dist/sdk/ws/index.d.ts.map +1 -1
  104. package/dist/sdk/ws/scene-update.d.ts +1 -1
  105. package/dist/sdk/ws/scene-update.d.ts.map +1 -1
  106. package/dist/sdk/ws/scene-update.js +10 -10
  107. package/dist/sdk/ws/scene-update.js.map +1 -1
  108. package/dist/sdk/ws/update.d.ts +1 -1
  109. package/dist/sdk/ws/update.d.ts.map +1 -1
  110. package/dist/sdk/ws/update.js +5 -5
  111. package/dist/sdk/ws/update.js.map +1 -1
  112. package/dist/validation.d.ts +2 -2
  113. package/dist/validation.d.ts.map +1 -1
  114. package/dist/validation.js.map +1 -1
  115. package/package.json +7 -4
package/dist/dapps/bid.js CHANGED
@@ -17,44 +17,44 @@ var Bid;
17
17
  type: 'object',
18
18
  properties: {
19
19
  id: {
20
- type: 'string',
20
+ type: 'string'
21
21
  },
22
22
  bidder: {
23
- type: 'string',
23
+ type: 'string'
24
24
  },
25
25
  seller: {
26
- type: 'string',
26
+ type: 'string'
27
27
  },
28
28
  price: {
29
- type: 'string',
29
+ type: 'string'
30
30
  },
31
31
  fingerprint: {
32
- type: 'string',
32
+ type: 'string'
33
33
  },
34
34
  status: listing_status_1.ListingStatus.schema,
35
35
  blockchainId: {
36
- type: 'string',
36
+ type: 'string'
37
37
  },
38
38
  blockNumber: {
39
- type: 'string',
39
+ type: 'string'
40
40
  },
41
41
  contractAddress: {
42
- type: 'string',
42
+ type: 'string'
43
43
  },
44
44
  tokenId: {
45
- type: 'string',
45
+ type: 'string'
46
46
  },
47
47
  network: network_1.Network.schema,
48
48
  chainId: chain_id_1.ChainId.schema,
49
49
  expiresAt: {
50
- type: 'integer',
50
+ type: 'integer'
51
51
  },
52
52
  createdAt: {
53
- type: 'integer',
53
+ type: 'integer'
54
54
  },
55
55
  updatedAt: {
56
- type: 'integer',
57
- },
56
+ type: 'integer'
57
+ }
58
58
  },
59
59
  required: [
60
60
  'id',
@@ -71,8 +71,8 @@ var Bid;
71
71
  'chainId',
72
72
  'expiresAt',
73
73
  'createdAt',
74
- 'updatedAt',
75
- ],
74
+ 'updatedAt'
75
+ ]
76
76
  };
77
77
  Bid.validate = (0, validation_1.generateValidator)(Bid.schema);
78
78
  })(Bid = exports.Bid || (exports.Bid = {}));
@@ -10,7 +10,7 @@ var BodyShape;
10
10
  (function (BodyShape) {
11
11
  BodyShape.schema = {
12
12
  type: 'string',
13
- enum: Object.values(BodyShape),
13
+ enum: Object.values(BodyShape)
14
14
  };
15
15
  BodyShape.validate = (0, validation_1.generateValidator)(BodyShape.schema);
16
16
  })(BodyShape = exports.BodyShape || (exports.BodyShape = {}));
@@ -71,7 +71,7 @@ exports.getURNProtocol = getURNProtocol;
71
71
  (function (ChainId) {
72
72
  ChainId.schema = {
73
73
  type: 'number',
74
- enum: Object.values(ChainId),
74
+ enum: Object.values(ChainId)
75
75
  };
76
76
  ChainId.validate = (0, validation_1.generateValidator)(ChainId.schema);
77
77
  })(ChainId = exports.ChainId || (exports.ChainId = {}));
@@ -48,7 +48,7 @@ exports.getChainId = getChainId;
48
48
  (function (ChainName) {
49
49
  ChainName.schema = {
50
50
  type: 'string',
51
- enum: Object.values(ChainName),
51
+ enum: Object.values(ChainName)
52
52
  };
53
53
  ChainName.validate = (0, validation_1.generateValidator)(ChainName.schema);
54
54
  })(ChainName = exports.ChainName || (exports.ChainName = {}));
@@ -17,34 +17,34 @@ var Collection;
17
17
  type: 'object',
18
18
  properties: {
19
19
  urn: {
20
- type: 'string',
20
+ type: 'string'
21
21
  },
22
22
  creator: {
23
- type: 'string',
23
+ type: 'string'
24
24
  },
25
25
  name: {
26
- type: 'string',
26
+ type: 'string'
27
27
  },
28
28
  contractAddress: {
29
- type: 'string',
29
+ type: 'string'
30
30
  },
31
31
  size: {
32
- type: 'integer',
32
+ type: 'integer'
33
33
  },
34
34
  isOnSale: {
35
- type: 'boolean',
35
+ type: 'boolean'
36
36
  },
37
37
  createdAt: {
38
- type: 'integer',
38
+ type: 'integer'
39
39
  },
40
40
  updatedAt: {
41
- type: 'integer',
41
+ type: 'integer'
42
42
  },
43
43
  reviewedAt: {
44
- type: 'integer',
44
+ type: 'integer'
45
45
  },
46
46
  network: network_1.Network.schema,
47
- chainId: chain_id_1.ChainId.schema,
47
+ chainId: chain_id_1.ChainId.schema
48
48
  },
49
49
  required: [
50
50
  'urn',
@@ -57,8 +57,8 @@ var Collection;
57
57
  'updatedAt',
58
58
  'reviewedAt',
59
59
  'network',
60
- 'chainId',
61
- ],
60
+ 'chainId'
61
+ ]
62
62
  };
63
63
  Collection.validate = (0, validation_1.generateValidator)(Collection.schema);
64
64
  })(Collection = exports.Collection || (exports.Collection = {}));
@@ -15,16 +15,16 @@ var Contract;
15
15
  type: 'object',
16
16
  properties: {
17
17
  name: {
18
- type: 'string',
18
+ type: 'string'
19
19
  },
20
20
  address: {
21
- type: 'string',
21
+ type: 'string'
22
22
  },
23
23
  category: nft_category_1.NFTCategory.schema,
24
24
  network: network_1.Network.schema,
25
- chainId: chain_id_1.ChainId.schema,
25
+ chainId: chain_id_1.ChainId.schema
26
26
  },
27
- required: ['name', 'address', 'category', 'network', 'chainId'],
27
+ required: ['name', 'address', 'category', 'network', 'chainId']
28
28
  };
29
29
  Contract.validate = (0, validation_1.generateValidator)(Contract.schema);
30
30
  })(Contract = exports.Contract || (exports.Contract = {}));
@@ -1 +1 @@
1
- {"version":3,"file":"item.d.ts","sourceRoot":"","sources":["../../src/dapps/item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,UAAU,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAE/E,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAC3B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAElD,oBAAY,IAAI,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;IACjB,GAAG,EAAE,MAAM,CAAA;IACX,QAAQ,EAAE,WAAW,CAAA;IACrB,eAAe,EAAE,MAAM,CAAA;IACvB,MAAM,EAAE,MAAM,CAAA;IACd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AC,EAAE,UAAU,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;IACnB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,gBAAgB,CAAC,EAAE,gBAAgB,CAAA;IACnC,eAAe,CAAC,EAAE,cAAc,EAAE,CAAA;IAClC,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAED,oBAAY,UAAU;IACpB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,iBAAiB,sBAAsB;IACvC,aAAa,kBAAkB;IAC/B,QAAQ,aAAa;CACtB;AAED,yBAAiB,IAAI,CAAC;IACb,MAAM,MAAM,EAAE,UAAU,CAAC,IAAI,CAyEnC,CAAA;IAEM,MAAM,QAAQ,EAAE,gBAAgB,CAAC,IAAI,CAA6B,CAAA;CAC1E"}
@@ -20,54 +20,54 @@ var Item;
20
20
  type: 'object',
21
21
  properties: {
22
22
  id: {
23
- type: 'string',
23
+ type: 'string'
24
24
  },
25
25
  name: {
26
- type: 'string',
26
+ type: 'string'
27
27
  },
28
28
  thumbnail: {
29
- type: 'string',
29
+ type: 'string'
30
30
  },
31
31
  url: {
32
- type: 'string',
32
+ type: 'string'
33
33
  },
34
34
  category: nft_category_1.NFTCategory.schema,
35
35
  contractAddress: {
36
- type: 'string',
36
+ type: 'string'
37
37
  },
38
38
  itemId: {
39
- type: 'string',
39
+ type: 'string'
40
40
  },
41
41
  rarity: {
42
- type: 'string',
42
+ type: 'string'
43
43
  },
44
44
  price: {
45
- type: 'string',
45
+ type: 'string'
46
46
  },
47
47
  available: {
48
- type: 'integer',
48
+ type: 'integer'
49
49
  },
50
50
  isOnSale: {
51
- type: 'boolean',
51
+ type: 'boolean'
52
52
  },
53
53
  creator: {
54
- type: 'string',
54
+ type: 'string'
55
55
  },
56
56
  data: nft_1.NFT.schema.properties.data,
57
57
  network: network_1.Network.schema,
58
58
  chainId: chain_id_1.ChainId.schema,
59
59
  createdAt: {
60
- type: 'integer',
60
+ type: 'integer'
61
61
  },
62
62
  updatedAt: {
63
- type: 'integer',
63
+ type: 'integer'
64
64
  },
65
65
  reviewedAt: {
66
- type: 'integer',
66
+ type: 'integer'
67
67
  },
68
68
  soldAt: {
69
- type: 'integer',
70
- },
69
+ type: 'integer'
70
+ }
71
71
  },
72
72
  required: [
73
73
  'id',
@@ -87,8 +87,8 @@ var Item;
87
87
  'chainId',
88
88
  'createdAt',
89
89
  'updatedAt',
90
- 'soldAt',
91
- ],
90
+ 'soldAt'
91
+ ]
92
92
  };
93
93
  Item.validate = (0, validation_1.generateValidator)(Item.schema);
94
94
  })(Item = exports.Item || (exports.Item = {}));
@@ -1 +1 @@
1
- {"version":3,"file":"item.js","sourceRoot":"","sources":["../../src/dapps/item.ts"],"names":[],"mappings":";;;AAAA,8CAA+E;AAE/E,yCAAoC;AACpC,uCAAmC;AACnC,+BAA2B;AAC3B,iDAA4C;AA6C5C,IAAY,UAMX;AAND,WAAY,UAAU;IACpB,2BAAa,CAAA;IACb,+BAAiB,CAAA;IACjB,qDAAuC,CAAA;IACvC,6CAA+B,CAAA;IAC/B,mCAAqB,CAAA;AACvB,CAAC,EANW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAMrB;AAED,IAAiB,IAAI,CA6EpB;AA7ED,WAAiB,IAAI;IACN,WAAM,GAAqB;QACtC,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,EAAE,EAAE;gBACF,IAAI,EAAE,QAAQ;aACf;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,Q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,EAAE;YACR,IAAI;YACJ,MAAM;YACN,WAAW;YACX,KAAK;YACL,UAAU;YACV,iBAAiB;YACjB,QAAQ;YACR,QAAQ;YACR,OAAO;YACP,WAAW;YACX,UAAU;YACV,SAAS;YACT,MAAM;YACN,SAAS;YACT,SAAS;YACT,WAAW;YACX,WAAW;YACX,QAAQ;SACT;KACF,CAAA;IAEY,aAAQ,GAA2B,IAAA,8BAAiB,EAAC,KAAA,MAAM,CAAC,CAAA;AAC3E,CAAC,EA7EgB,IAAI,GAAJ,YAAI,KAAJ,YAAI,QA6EpB"}
@@ -11,7 +11,7 @@ var ListingStatus;
11
11
  (function (ListingStatus) {
12
12
  ListingStatus.schema = {
13
13
  type: 'string',
14
- enum: Object.values(ListingStatus),
14
+ enum: Object.values(ListingStatus)
15
15
  };
16
16
  ListingStatus.validate = (0, validation_1.generateValidator)(ListingStatus.schema);
17
17
  })(ListingStatus = exports.ListingStatus || (exports.ListingStatus = {}));
@@ -1 +1 @@
1
- {"version":3,"file":"meta-transactions.d.ts","sourceRoot":"","sources":["../../src/dapps/meta-transactions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,UAAU,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAE/E;;;GAGG;AACH,oBAAY,eAAe,GAAG;IAC5B,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACzB,CAAA;AAED;;GAEG;AACH,yBAAiB,eAAe,CAAC;IACxB,MAAM,MAAM,EAAE,UAAU,CAAC,eAAe,CAa9C,CAAA;IAEM,MAAM,QAAQ,EAAE,gBAAgB,CAAC,eAAe,CAEtD,CAAA;CACF"}
1
+ {"version":3,"file":"meta-transactions.d.ts","sourceRoot":"","sources":["../../src/dapps/meta-transactions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,UAAU,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAE/E;;;GAGG;AACH,oBAAY,eAAe,GAAG;IAC5B,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACzB,CAAA;AAED;;GAEG;AACH,yBAAiB,eAAe,CAAC;IACxB,MAAM,MAAM,EAAE,UAAU,CAAC,eAAe,CAa9C,CAAA;IAEM,MAAM,QAAQ,EAAE,gBAAgB,CAAC,eAAe,CAC5B,CAAA;CAC5B"}
@@ -15,11 +15,11 @@ var MetaTransaction;
15
15
  type: 'array',
16
16
  items: [{ type: 'string' }, { type: 'string' }],
17
17
  additionalItems: false,
18
- minItems: 2,
19
- },
18
+ minItems: 2
19
+ }
20
20
  },
21
21
  additionalProperties: false,
22
- required: ['from', 'params'],
22
+ required: ['from', 'params']
23
23
  };
24
24
  MetaTransaction.validate = (0, validation_1.generateValidator)(MetaTransaction.schema);
25
25
  })(MetaTransaction = exports.MetaTransaction || (exports.MetaTransaction = {}));
@@ -1 +1 @@
1
- {"version":3,"file":"meta-transactions.js","sourceRoot":"","sources":["../../src/dapps/meta-transactions.ts"],"names":[],"mappings":";;;AAAA,8CAA+E;AAW/E;;GAEG;AACH,IAAiB,eAAe,CAmB/B;AAnBD,WAAiB,eAAe;IACjB,sBAAM,GAAgC;QACjD,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACxB,MAAM,EAAE;gBACN,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;gBAC/C,eAAe,EAAE,KAAK;gBACtB,QAAQ,EAAE,CAAC;aACZ;SACF;QACD,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;KAC7B,CAAA;IAEY,wBAAQ,GAAsC,IAAA,8BAAiB,EAC1E,gBAAA,MAAM,CACP,CAAA;AACH,CAAC,EAnBgB,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAmB/B"}
1
+ {"version":3,"file":"meta-transactions.js","sourceRoot":"","sources":["../../src/dapps/meta-transactions.ts"],"names":[],"mappings":";;;AAAA,8CAA+E;AAW/E;;GAEG;AACH,IAAiB,eAAe,CAkB/B;AAlBD,WAAiB,eAAe;IACjB,sBAAM,GAAgC;QACjD,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YACxB,MAAM,EAAE;gBACN,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;gBAC/C,eAAe,EAAE,KAAK;gBACtB,QAAQ,EAAE,CAAC;aACZ;SACF;QACD,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;KAC7B,CAAA;IAEY,wBAAQ,GACnB,IAAA,8BAAiB,EAAC,gBAAA,MAAM,CAAC,CAAA;AAC7B,CAAC,EAlBgB,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAkB/B"}
@@ -15,38 +15,38 @@ var Mint;
15
15
  type: 'object',
16
16
  properties: {
17
17
  id: {
18
- type: 'string',
18
+ type: 'string'
19
19
  },
20
20
  creator: {
21
- type: 'string',
21
+ type: 'string'
22
22
  },
23
23
  beneficiary: {
24
- type: 'string',
24
+ type: 'string'
25
25
  },
26
26
  minter: {
27
- type: 'string',
27
+ type: 'string'
28
28
  },
29
29
  price: {
30
30
  type: 'string',
31
- nullable: true,
31
+ nullable: true
32
32
  },
33
33
  contractAddress: {
34
- type: 'string',
34
+ type: 'string'
35
35
  },
36
36
  tokenId: {
37
- type: 'string',
37
+ type: 'string'
38
38
  },
39
39
  itemId: {
40
- type: 'string',
40
+ type: 'string'
41
41
  },
42
42
  issuedId: {
43
- type: 'string',
43
+ type: 'string'
44
44
  },
45
45
  timestamp: {
46
- type: 'integer',
46
+ type: 'integer'
47
47
  },
48
48
  network: network_1.Network.schema,
49
- chainId: chain_id_1.ChainId.schema,
49
+ chainId: chain_id_1.ChainId.schema
50
50
  },
51
51
  required: [
52
52
  'id',
@@ -60,8 +60,8 @@ var Mint;
60
60
  'price',
61
61
  'timestamp',
62
62
  'network',
63
- 'chainId',
64
- ],
63
+ 'chainId'
64
+ ]
65
65
  };
66
66
  Mint.validate = (0, validation_1.generateValidator)(Mint.schema);
67
67
  })(Mint = exports.Mint || (exports.Mint = {}));
@@ -17,7 +17,7 @@ var Network;
17
17
  (function (Network) {
18
18
  Network.schema = {
19
19
  type: 'string',
20
- enum: Object.values(Network),
20
+ enum: Object.values(Network)
21
21
  };
22
22
  Network.validate = (0, validation_1.generateValidator)(Network.schema);
23
23
  })(Network = exports.Network || (exports.Network = {}));
@@ -12,7 +12,7 @@ var NFTCategory;
12
12
  (function (NFTCategory) {
13
13
  NFTCategory.schema = {
14
14
  type: 'string',
15
- enum: Object.values(NFTCategory),
15
+ enum: Object.values(NFTCategory)
16
16
  };
17
17
  NFTCategory.validate = (0, validation_1.generateValidator)(NFTCategory.schema);
18
18
  })(NFTCategory = exports.NFTCategory || (exports.NFTCategory = {}));
package/dist/dapps/nft.js CHANGED
@@ -22,29 +22,29 @@ var NFT;
22
22
  type: 'object',
23
23
  properties: {
24
24
  id: {
25
- type: 'string',
25
+ type: 'string'
26
26
  },
27
27
  tokenId: {
28
- type: 'string',
28
+ type: 'string'
29
29
  },
30
30
  contractAddress: {
31
- type: 'string',
31
+ type: 'string'
32
32
  },
33
33
  activeOrderId: {
34
34
  type: ['string'],
35
- nullable: true,
35
+ nullable: true
36
36
  },
37
37
  owner: {
38
- type: 'string',
38
+ type: 'string'
39
39
  },
40
40
  name: {
41
- type: 'string',
41
+ type: 'string'
42
42
  },
43
43
  image: {
44
- type: 'string',
44
+ type: 'string'
45
45
  },
46
46
  url: {
47
- type: 'string',
47
+ type: 'string'
48
48
  },
49
49
  data: {
50
50
  type: 'object',
@@ -55,40 +55,40 @@ var NFT;
55
55
  properties: {
56
56
  description: {
57
57
  type: ['string'],
58
- nullable: true,
58
+ nullable: true
59
59
  },
60
60
  x: {
61
- type: 'string',
61
+ type: 'string'
62
62
  },
63
63
  y: {
64
- type: 'string',
64
+ type: 'string'
65
65
  },
66
66
  estate: {
67
67
  type: 'object',
68
68
  properties: {
69
69
  tokenId: {
70
- type: 'string',
70
+ type: 'string'
71
71
  },
72
72
  name: {
73
- type: 'string',
74
- },
73
+ type: 'string'
74
+ }
75
75
  },
76
76
  required: ['tokenId', 'name'],
77
- nullable: true,
78
- },
77
+ nullable: true
78
+ }
79
79
  },
80
80
  required: ['description', 'x', 'y', 'estate'],
81
- nullable: true,
81
+ nullable: true
82
82
  },
83
83
  estate: {
84
84
  type: 'object',
85
85
  properties: {
86
86
  description: {
87
87
  type: ['string'],
88
- nullable: true,
88
+ nullable: true
89
89
  },
90
90
  size: {
91
- type: 'integer',
91
+ type: 'integer'
92
92
  },
93
93
  parcels: {
94
94
  type: 'array',
@@ -96,68 +96,68 @@ var NFT;
96
96
  type: 'object',
97
97
  properties: {
98
98
  x: {
99
- type: 'number',
99
+ type: 'number'
100
100
  },
101
101
  y: {
102
- type: 'number',
103
- },
102
+ type: 'number'
103
+ }
104
104
  },
105
- required: ['x', 'y'],
106
- },
107
- },
105
+ required: ['x', 'y']
106
+ }
107
+ }
108
108
  },
109
109
  required: ['description', 'size', 'parcels'],
110
- nullable: true,
110
+ nullable: true
111
111
  },
112
112
  wearable: {
113
113
  type: 'object',
114
114
  properties: {
115
115
  bodyShapes: {
116
116
  type: 'array',
117
- items: body_shape_1.BodyShape.schema,
117
+ items: body_shape_1.BodyShape.schema
118
118
  },
119
119
  category: wearable_category_1.WearableCategory.schema,
120
120
  description: {
121
- type: 'string',
121
+ type: 'string'
122
122
  },
123
- rarity: rarity_1.Rarity.schema,
123
+ rarity: rarity_1.Rarity.schema
124
124
  },
125
125
  required: ['bodyShapes', 'category', 'description', 'rarity'],
126
- nullable: true,
126
+ nullable: true
127
127
  },
128
128
  ens: {
129
129
  type: 'object',
130
130
  properties: {
131
131
  subdomain: {
132
- type: 'string',
133
- },
132
+ type: 'string'
133
+ }
134
134
  },
135
135
  required: ['subdomain'],
136
- nullable: true,
137
- },
136
+ nullable: true
137
+ }
138
138
  },
139
- required: [],
139
+ required: []
140
140
  },
141
141
  issuedId: {
142
142
  type: 'string',
143
- nullable: true,
143
+ nullable: true
144
144
  },
145
145
  itemId: {
146
146
  type: 'string',
147
- nullable: true,
147
+ nullable: true
148
148
  },
149
149
  category: nft_category_1.NFTCategory.schema,
150
150
  network: network_1.Network.schema,
151
151
  chainId: chain_id_1.ChainId.schema,
152
152
  createdAt: {
153
- type: 'integer',
153
+ type: 'integer'
154
154
  },
155
155
  updatedAt: {
156
- type: 'integer',
156
+ type: 'integer'
157
157
  },
158
158
  soldAt: {
159
- type: 'integer',
160
- },
159
+ type: 'integer'
160
+ }
161
161
  },
162
162
  required: [
163
163
  'id',
@@ -176,8 +176,8 @@ var NFT;
176
176
  'chainId',
177
177
  'createdAt',
178
178
  'updatedAt',
179
- 'soldAt',
180
- ],
179
+ 'soldAt'
180
+ ]
181
181
  };
182
182
  NFT.validate = (0, validation_1.generateValidator)(NFT.schema);
183
183
  })(NFT = exports.NFT || (exports.NFT = {}));
@@ -17,36 +17,36 @@ var Order;
17
17
  type: 'object',
18
18
  properties: {
19
19
  id: {
20
- type: 'string',
20
+ type: 'string'
21
21
  },
22
22
  contractAddress: {
23
- type: 'string',
23
+ type: 'string'
24
24
  },
25
25
  tokenId: {
26
- type: 'string',
26
+ type: 'string'
27
27
  },
28
28
  owner: {
29
- type: 'string',
29
+ type: 'string'
30
30
  },
31
31
  buyer: {
32
32
  type: ['string'],
33
- nullable: true,
33
+ nullable: true
34
34
  },
35
35
  price: {
36
- type: 'string',
36
+ type: 'string'
37
37
  },
38
38
  status: listing_status_1.ListingStatus.schema,
39
39
  network: network_1.Network.schema,
40
40
  chainId: chain_id_1.ChainId.schema,
41
41
  expiresAt: {
42
- type: 'integer',
42
+ type: 'integer'
43
43
  },
44
44
  createdAt: {
45
- type: 'integer',
45
+ type: 'integer'
46
46
  },
47
47
  updatedAt: {
48
- type: 'integer',
49
- },
48
+ type: 'integer'
49
+ }
50
50
  },
51
51
  required: [
52
52
  'id',
@@ -60,8 +60,8 @@ var Order;
60
60
  'chainId',
61
61
  'expiresAt',
62
62
  'createdAt',
63
- 'updatedAt',
64
- ],
63
+ 'updatedAt'
64
+ ]
65
65
  };
66
66
  Order.validate = (0, validation_1.generateValidator)(Order.schema);
67
67
  })(Order = exports.Order || (exports.Order = {}));