@dcl/schemas 2.2.2-20211125150359.commit-1d0a8ae → 2.2.2-20211125184919.commit-9ab7a5a

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.
@@ -0,0 +1,20 @@
1
+ import { JSONSchema, ValidateFunction } from '../validation';
2
+ export declare type Store = {
3
+ id: string;
4
+ owner: string;
5
+ description: string;
6
+ links: {
7
+ name: string;
8
+ url: string;
9
+ }[];
10
+ images: {
11
+ name: string;
12
+ file: string;
13
+ }[];
14
+ version: number;
15
+ };
16
+ export declare namespace Store {
17
+ const schema: JSONSchema<Store>;
18
+ const validate: ValidateFunction<Store>;
19
+ }
20
+ //# sourceMappingURL=store.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../src/dapps/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,UAAU,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAE/E,oBAAY,KAAK,GAAG;IAClB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE;QACL,IAAI,EAAE,MAAM,CAAA;QACZ,GAAG,EAAE,MAAM,CAAA;KACZ,EAAE,CAAA;IACH,MAAM,EAAE;QACN,IAAI,EAAE,MAAM,CAAA;QACZ,IAAI,EAAE,MAAM,CAAA;KACb,EAAE,CAAA;IACH,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,yBAAiB,KAAK,CAAC;IACd,MAAM,MAAM,EAAE,UAAU,CAAC,KAAK,CA+CpC,CAAA;IAEM,MAAM,QAAQ,EAAE,gBAAgB,CAAC,KAAK,CAA6B,CAAA;CAC3E"}
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Store = void 0;
4
+ const validation_1 = require("../validation");
5
+ var Store;
6
+ (function (Store) {
7
+ Store.schema = {
8
+ type: 'object',
9
+ properties: {
10
+ id: {
11
+ type: 'string',
12
+ },
13
+ version: {
14
+ type: 'number',
15
+ },
16
+ owner: {
17
+ type: 'string',
18
+ },
19
+ description: {
20
+ type: 'string',
21
+ },
22
+ links: {
23
+ type: 'array',
24
+ items: {
25
+ type: 'object',
26
+ properties: {
27
+ name: {
28
+ type: 'string',
29
+ },
30
+ url: {
31
+ type: 'string',
32
+ },
33
+ },
34
+ required: ['name', 'url'],
35
+ },
36
+ },
37
+ images: {
38
+ type: 'array',
39
+ items: {
40
+ type: 'object',
41
+ properties: {
42
+ name: {
43
+ type: 'string',
44
+ },
45
+ file: {
46
+ type: 'string',
47
+ },
48
+ },
49
+ required: ['name', 'file'],
50
+ },
51
+ },
52
+ },
53
+ required: ['id', 'version', 'owner', 'description', 'links', 'images'],
54
+ };
55
+ Store.validate = (0, validation_1.generateValidator)(Store.schema);
56
+ })(Store = exports.Store || (exports.Store = {}));
57
+ //# sourceMappingURL=store.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"store.js","sourceRoot":"","sources":["../../src/dapps/store.ts"],"names":[],"mappings":";;;AAAA,8CAA+E;AAiB/E,IAAiB,KAAK,CAmDrB;AAnDD,WAAiB,KAAK;IACP,YAAM,GAAsB;QACvC,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,EAAE,EAAE;gBACF,IAAI,EAAE,QAAQ;aACf;YACD,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;aACf;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;aACf;YACD,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;aACf;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,UAAU,EAAE;wBACV,IAAI,EAAE;4BACJ,IAAI,EAAE,QAAQ;yBACf;wBACD,GAAG,EAAE;4BACH,IAAI,EAAE,QAAQ;yBACf;qBACF;oBACD,QAAQ,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC;iBAC1B;aACF;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,UAAU,EAAE;wBACV,IAAI,EAAE;4BACJ,IAAI,EAAE,QAAQ;yBACf;wBACD,IAAI,EAAE;4BACJ,IAAI,EAAE,QAAQ;yBACf;qBACF;oBACD,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;iBAC3B;aACF;SACF;QACD,QAAQ,EAAE,CAAC,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,QAAQ,CAAC;KACvE,CAAA;IAEY,cAAQ,GAA4B,IAAA,8BAAiB,EAAC,MAAA,MAAM,CAAC,CAAA;AAC5E,CAAC,EAnDgB,KAAK,GAAL,aAAK,KAAL,aAAK,QAmDrB"}
package/dist/index.d.ts CHANGED
@@ -4,7 +4,7 @@ export { Bid, BidFilters, BidSortBy } from './dapps/bid';
4
4
  export { BodyShape } from './dapps/body-shape';
5
5
  export { ChainId, getChainName, getURNProtocol } from './dapps/chain-id';
6
6
  export { ChainName, getChainId } from './dapps/chain-name';
7
- export { Collection, CollectionFilters, CollectionSortBy } from './dapps/collection';
7
+ export { Collection, CollectionFilters, CollectionSortBy, } from './dapps/collection';
8
8
  export { Contract, ContractFilters, ContractSortBy } from './dapps/contract';
9
9
  export { Item, ItemFilters, ItemSortBy } from './dapps/item';
10
10
  export { ListingStatus } from './dapps/listing-status';
@@ -17,9 +17,10 @@ export { Order, OrderFilters, OrderSortBy } from './dapps/order';
17
17
  export { Rarity } from './dapps/rarity';
18
18
  export { SaleType } from './dapps/sale-type';
19
19
  export { Sale, SaleFilters, SaleSortBy } from './dapps/sale';
20
+ export { Store } from './dapps/store';
20
21
  export { WearableCategory } from './dapps/wearable-category';
21
22
  export { WearableGender } from './dapps/wearable-gender';
22
- export { World, ValidWorldRange, getWorld, isInsideWorldLimits } from './dapps/world';
23
+ export { World, ValidWorldRange, getWorld, isInsideWorldLimits, } from './dapps/world';
23
24
  export * from './platform';
24
25
  export * from './misc';
25
26
  export { sdk };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,OAAO,CAAA;AAG5B,cAAc,cAAc,CAAA;AAG5B,OAAO,EAAE,GAAG,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAC9C,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACxE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAC1D,OAAO,EACL,UAAU,EACV,iBAAiB,EACjB,gBAAgB,EACjB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAC5E,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAC3D,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAClD,OAAO,EAAE,GAAG,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACxD,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAChE,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AACvC,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M,iBAAiB,CAAA;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAClD,OAAO,EAAE,GAAG,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACxD,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAChE,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAC5C,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AACrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,EACL,KAAK,EACL,eAAe,EACf,QAAQ,EACR,mBAAmB,GACpB,MAAM,eAAe,CAAA;AAEtB,cAAc,YAAY,CAAA;AAC1B,cAAc,QAAQ,CAAA;AACtB,OAAO,EAAE,GAAG,EAAE,CAAA"}
package/dist/index.js CHANGED
@@ -22,7 +22,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
22
22
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.sdk = exports.isInsideWorldLimits = exports.getWorld = exports.World = exports.WearableGender = exports.WearableCategory = exports.SaleSortBy = exports.Sale = exports.SaleType = exports.Rarity = exports.OrderSortBy = exports.Order = exports.NFTSortBy = exports.NFT = exports.NFTCategory = exports.Network = exports.MintSortBy = exports.Mint = exports.MetaTransaction = exports.ListingStatus = exports.ItemSortBy = exports.Item = exports.ContractSortBy = exports.Contract = exports.CollectionSortBy = exports.Collection = exports.getChainId = exports.ChainName = exports.getURNProtocol = exports.getChainName = exports.ChainId = exports.BodyShape = exports.BidSortBy = exports.Bid = void 0;
25
+ exports.sdk = exports.isInsideWorldLimits = exports.getWorld = exports.World = exports.WearableGender = exports.WearableCategory = exports.Store = exports.SaleSortBy = exports.Sale = exports.SaleType = exports.Rarity = exports.OrderSortBy = exports.Order = exports.NFTSortBy = exports.NFT = exports.NFTCategory = exports.Network = exports.MintSortBy = exports.Mint = exports.MetaTransaction = exports.ListingStatus = exports.ItemSortBy = exports.Item = exports.ContractSortBy = exports.Contract = exports.CollectionSortBy = exports.Collection = exports.getChainId = exports.ChainName = exports.getURNProtocol = exports.getChainName = exports.ChainId = exports.BodyShape = exports.BidSortBy = exports.Bid = void 0;
26
26
  const sdk = __importStar(require("./sdk"));
27
27
  exports.sdk = sdk;
28
28
  // export the utils
@@ -73,6 +73,8 @@ Object.defineProperty(exports, "SaleType", { enumerable: true, get: function ()
73
73
  var sale_1 = require("./dapps/sale");
74
74
  Object.defineProperty(exports, "Sale", { enumerable: true, get: function () { return sale_1.Sale; } });
75
75
  Object.defineProperty(exports, "SaleSortBy", { enumerable: true, get: function () { return sale_1.SaleSortBy; } });
76
+ var store_1 = require("./dapps/store");
77
+ Object.defineProperty(exports, "Store", { enumerable: true, get: function () { return store_1.Store; } });
76
78
  var wearable_category_1 = require("./dapps/wearable-category");
77
79
  Object.defineProperty(exports, "WearableCategory", { enumerable: true, get: function () { return wearable_category_1.WearableCategory; } });
78
80
  var wearable_gender_1 = require("./dapps/wearable-gender");
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA4B;AAsCnB,kBAAG;AApCZ,mBAAmB;AACnB,+CAA4B;AAE5B,uBAAuB;AACvB,mCAAwD;AAA/C,0FAAA,GAAG,OAAA;AAAc,gGAAA,SAAS,OAAA;AACnC,iDAA8C;AAArC,uGAAA,SAAS,OAAA;AAClB,6CAAwE;AAA/D,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/dist/schemas.d.ts CHANGED
@@ -913,6 +913,26 @@ export declare namespace SpawnPoint {
913
913
  const validate: ValidateFunction<SpawnPoint>;
914
914
  }
915
915
 
916
+ export declare type Store = {
917
+ id: string;
918
+ owner: string;
919
+ description: string;
920
+ links: {
921
+ name: string;
922
+ url: string;
923
+ }[];
924
+ images: {
925
+ name: string;
926
+ file: string;
927
+ }[];
928
+ version: number;
929
+ };
930
+
931
+ export declare namespace Store {
932
+ const schema: JSONSchema<Store>;
933
+ const validate: ValidateFunction<Store>;
934
+ }
935
+
916
936
  /** @internal @deprecated */
917
937
  declare const UPDATE = "update";
918
938
 
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.2.2-20211125150359.commit-1d0a8ae",
2
+ "version": "2.2.2-20211125184919.commit-9ab7a5a",
3
3
  "name": "@dcl/schemas",
4
4
  "main": "./dist/index.js",
5
5
  "typings": "./dist/index.d.ts",
@@ -9,8 +9,8 @@
9
9
  "test": "mocha",
10
10
  "lint": "eslint . --ext .ts",
11
11
  "lint:fix": "eslint . --ext .ts --fix",
12
- "check-api": "api-extractor run --typescript-compiler-folder ./node_modules/typescript",
13
- "refresh-api": "api-extractor run --local --verbose --diagnostics --typescript-compiler-folder ./node_modules/typescript"
12
+ "check-api": "npm run build && api-extractor run --typescript-compiler-folder ./node_modules/typescript",
13
+ "refresh-api": "npm run build && api-extractor run --local --verbose --diagnostics --typescript-compiler-folder ./node_modules/typescript"
14
14
  },
15
15
  "devDependencies": {
16
16
  "@dcl/eslint-config": "^1.0.0",
@@ -28,5 +28,5 @@
28
28
  "files": [
29
29
  "dist"
30
30
  ],
31
- "commit": "1d0a8ae0b295cdce71bf20d9398e96ef862626bf"
31
+ "commit": "9ab7a5ac6dff295b49783d1562d0b09c8aab05f1"
32
32
  }