@dcl/schemas 7.0.0 → 7.1.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.
|
@@ -2,18 +2,16 @@ import { IPFSv1, IPFSv2 } from '../misc';
|
|
|
2
2
|
import { AuthChain } from '../misc/auth-chain';
|
|
3
3
|
import { JSONSchema, ValidateFunction } from '../validation';
|
|
4
4
|
export type SyncDeployment = SnapshotSyncDeployment | PointerChangesSyncDeployment;
|
|
5
|
-
type BaseSyncDeployment = {
|
|
6
|
-
entityId: IPFSv1 | IPFSv2;
|
|
7
|
-
entityType: string;
|
|
8
|
-
pointers: string[];
|
|
9
|
-
authChain: AuthChain;
|
|
10
|
-
};
|
|
11
5
|
/**
|
|
12
6
|
* This type describes deployment + AuthChain needed to synchronize
|
|
13
7
|
* a deployed entity across catalysts from the snapshots.
|
|
14
8
|
* @public
|
|
15
9
|
*/
|
|
16
|
-
export type SnapshotSyncDeployment =
|
|
10
|
+
export type SnapshotSyncDeployment = {
|
|
11
|
+
entityId: IPFSv1 | IPFSv2;
|
|
12
|
+
entityType: string;
|
|
13
|
+
pointers: string[];
|
|
14
|
+
authChain: AuthChain;
|
|
17
15
|
entityTimestamp: number;
|
|
18
16
|
};
|
|
19
17
|
/**
|
|
@@ -28,7 +26,7 @@ export declare namespace SnapshotSyncDeployment {
|
|
|
28
26
|
* a deployed entity across catalysts from the old snapshots and /pointer-changes endpoint.
|
|
29
27
|
* @public
|
|
30
28
|
*/
|
|
31
|
-
export type PointerChangesSyncDeployment =
|
|
29
|
+
export type PointerChangesSyncDeployment = SnapshotSyncDeployment & {
|
|
32
30
|
localTimestamp: number;
|
|
33
31
|
};
|
|
34
32
|
/**
|
|
@@ -38,5 +36,4 @@ export declare namespace PointerChangesSyncDeployment {
|
|
|
38
36
|
const schema: JSONSchema<PointerChangesSyncDeployment>;
|
|
39
37
|
const validate: ValidateFunction<PointerChangesSyncDeployment>;
|
|
40
38
|
}
|
|
41
|
-
export {};
|
|
42
39
|
//# sourceMappingURL=sync-deployments.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sync-deployments.d.ts","sourceRoot":"","sources":["../../src/platform/sync-deployments.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAC9C,OAAO,EAAyB,UAAU,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAEnF,MAAM,MAAM,cAAc,GAAG,sBAAsB,GAAG,4BAA4B,CAAA;AAElF,
|
|
1
|
+
{"version":3,"file":"sync-deployments.d.ts","sourceRoot":"","sources":["../../src/platform/sync-deployments.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAC9C,OAAO,EAAyB,UAAU,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAEnF,MAAM,MAAM,cAAc,GAAG,sBAAsB,GAAG,4BAA4B,CAAA;AAElF;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAA;IACzB,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,MAAM,EAAE,CAAA;IAClB,SAAS,EAAE,SAAS,CAAA;IACpB,eAAe,EAAE,MAAM,CAAA;CACxB,CAAA;AAED;;GAEG;AACH,yBAAiB,sBAAsB,CAAC;IAC/B,MAAM,MAAM,EAAE,UAAU,CAAC,sBAAsB,CAWrD,CAAA;IAEM,MAAM,QAAQ,EAAE,gBAAgB,CAAC,sBAAsB,CAAiC,CAAA;CAChG;AAED;;;;GAIG;AACH,MAAM,MAAM,4BAA4B,GAAG,sBAAsB,GAAG;IAClE,cAAc,EAAE,MAAM,CAAA;CACvB,CAAA;AAED;;GAEG;AACH,yBAAiB,4BAA4B,CAAC;IACrC,MAAM,MAAM,EAAE,UAAU,CAAC,4BAA4B,CAY3D,CAAA;IAEM,MAAM,QAAQ,EAAE,gBAAgB,CAAC,4BAA4B,CAAiC,CAAA;CACtG"}
|
|
@@ -15,8 +15,8 @@ var SnapshotSyncDeployment;
|
|
|
15
15
|
entityId: { type: 'string' },
|
|
16
16
|
entityType: { type: 'string' },
|
|
17
17
|
pointers: { type: 'array', items: { type: 'string' }, minItems: 1 },
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
authChain: auth_chain_1.AuthChain.schema,
|
|
19
|
+
entityTimestamp: { type: 'number', minimum: 0 }
|
|
20
20
|
},
|
|
21
21
|
oneOf: [{ properties: { entityId: misc_1.IPFSv1.schema } }, { properties: { entityId: misc_1.IPFSv2.schema } }],
|
|
22
22
|
required: ['entityId', 'entityType', 'pointers', 'entityTimestamp', 'authChain']
|
|
@@ -34,11 +34,12 @@ var PointerChangesSyncDeployment;
|
|
|
34
34
|
entityId: { type: 'string' },
|
|
35
35
|
entityType: { type: 'string' },
|
|
36
36
|
pointers: { type: 'array', items: { type: 'string' }, minItems: 1 },
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
authChain: auth_chain_1.AuthChain.schema,
|
|
38
|
+
entityTimestamp: { type: 'number', minimum: 0 },
|
|
39
|
+
localTimestamp: { type: 'number', minimum: 0 }
|
|
39
40
|
},
|
|
40
41
|
oneOf: [{ properties: { entityId: misc_1.IPFSv1.schema } }, { properties: { entityId: misc_1.IPFSv2.schema } }],
|
|
41
|
-
required: ['entityId', 'entityType', 'pointers', 'localTimestamp', 'authChain']
|
|
42
|
+
required: ['entityId', 'entityType', 'pointers', 'localTimestamp', 'entityTimestamp', 'authChain']
|
|
42
43
|
};
|
|
43
44
|
PointerChangesSyncDeployment.validate = (0, validation_1.generateLazyValidator)(PointerChangesSyncDeployment.schema);
|
|
44
45
|
})(PointerChangesSyncDeployment = exports.PointerChangesSyncDeployment || (exports.PointerChangesSyncDeployment = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sync-deployments.js","sourceRoot":"","sources":["../../src/platform/sync-deployments.ts"],"names":[],"mappings":";;;AAAA,kCAAwC;AACxC,mDAA8C;AAC9C,8CAAmF;
|
|
1
|
+
{"version":3,"file":"sync-deployments.js","sourceRoot":"","sources":["../../src/platform/sync-deployments.ts"],"names":[],"mappings":";;;AAAA,kCAAwC;AACxC,mDAA8C;AAC9C,8CAAmF;AAiBnF;;GAEG;AACH,IAAiB,sBAAsB,CAetC;AAfD,WAAiB,sBAAsB;IACxB,6BAAM,GAAuC;QACxD,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC5B,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC9B,QAAQ,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE;YACnE,SAAS,EAAE,sBAAS,CAAC,MAAM;YAC3B,eAAe,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,EAAE;SAChD;QACD,KAAK,EAAE,CAAC,EAAE,UAAU,EAAE,EAAE,QAAQ,EAAE,aAAM,CAAC,MAAM,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,EAAE,QAAQ,EAAE,aAAM,CAAC,MAAM,EAAE,EAAE,CAAC;QACjG,QAAQ,EAAE,CAAC,UAAU,EAAE,YAAY,EAAE,UAAU,EAAE,iBAAiB,EAAE,WAAW,CAAC;KACjF,CAAA;IAEY,+BAAQ,GAA6C,IAAA,kCAAqB,EAAC,uBAAA,MAAM,CAAC,CAAA;AACjG,CAAC,EAfgB,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAetC;AAWD;;GAEG;AACH,IAAiB,4BAA4B,CAgB5C;AAhBD,WAAiB,4BAA4B;IAC9B,mCAAM,GAA6C;QAC9D,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC5B,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC9B,QAAQ,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE;YACnE,SAAS,EAAE,sBAAS,CAAC,MAAM;YAC3B,eAAe,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,EAAE;YAC/C,cAAc,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,EAAE;SAC/C;QACD,KAAK,EAAE,CAAC,EAAE,UAAU,EAAE,EAAE,QAAQ,EAAE,aAAM,CAAC,MAAM,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,EAAE,QAAQ,EAAE,aAAM,CAAC,MAAM,EAAE,EAAE,CAAC;QACjG,QAAQ,EAAE,CAAC,UAAU,EAAE,YAAY,EAAE,UAAU,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,WAAW,CAAC;KACnG,CAAA;IAEY,qCAAQ,GAAmD,IAAA,kCAAqB,EAAC,6BAAA,MAAM,CAAC,CAAA;AACvG,CAAC,EAhBgB,4BAA4B,GAA5B,oCAA4B,KAA5B,oCAA4B,QAgB5C"}
|
package/dist/schemas.d.ts
CHANGED
|
@@ -199,13 +199,6 @@ declare type BaseItem = DisplayableDeployment & {
|
|
|
199
199
|
metrics?: Metrics;
|
|
200
200
|
};
|
|
201
201
|
|
|
202
|
-
declare type BaseSyncDeployment = {
|
|
203
|
-
entityId: IPFSv1 | IPFSv2;
|
|
204
|
-
entityType: string;
|
|
205
|
-
pointers: string[];
|
|
206
|
-
authChain: AuthChain;
|
|
207
|
-
};
|
|
208
|
-
|
|
209
202
|
export declare type Bid = {
|
|
210
203
|
id: string;
|
|
211
204
|
bidAddress: string;
|
|
@@ -1226,7 +1219,7 @@ export declare namespace PeriodCreation {
|
|
|
1226
1219
|
* a deployed entity across catalysts from the old snapshots and /pointer-changes endpoint.
|
|
1227
1220
|
* @public
|
|
1228
1221
|
*/
|
|
1229
|
-
export declare type PointerChangesSyncDeployment =
|
|
1222
|
+
export declare type PointerChangesSyncDeployment = SnapshotSyncDeployment & {
|
|
1230
1223
|
localTimestamp: number;
|
|
1231
1224
|
};
|
|
1232
1225
|
|
|
@@ -1855,7 +1848,11 @@ export declare namespace Snapshots {
|
|
|
1855
1848
|
* a deployed entity across catalysts from the snapshots.
|
|
1856
1849
|
* @public
|
|
1857
1850
|
*/
|
|
1858
|
-
export declare type SnapshotSyncDeployment =
|
|
1851
|
+
export declare type SnapshotSyncDeployment = {
|
|
1852
|
+
entityId: IPFSv1 | IPFSv2;
|
|
1853
|
+
entityType: string;
|
|
1854
|
+
pointers: string[];
|
|
1855
|
+
authChain: AuthChain;
|
|
1859
1856
|
entityTimestamp: number;
|
|
1860
1857
|
};
|
|
1861
1858
|
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "7.
|
|
2
|
+
"version": "7.1.0",
|
|
3
3
|
"name": "@dcl/schemas",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "./dist/index.d.ts",
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"files": [
|
|
33
33
|
"dist"
|
|
34
34
|
],
|
|
35
|
-
"commit": "
|
|
35
|
+
"commit": "1d7ff66e45628b112ea31af45dbe8b7bc8703d7d"
|
|
36
36
|
}
|