@dcl/schemas 6.17.0 → 6.17.1-20230428182545.commit-81ff481
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 declare type SyncDeployment = SnapshotSyncDeployment | PointerChangesSyncDeployment;
|
|
5
|
-
declare 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 declare type SnapshotSyncDeployment =
|
|
10
|
+
export declare 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 declare type PointerChangesSyncDeployment =
|
|
29
|
+
export declare 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,EAEL,UAAU,EACV,gBAAgB,EACjB,MAAM,eAAe,CAAA;AAEtB,oBAAY,cAAc,GACtB,sBAAsB,GACtB,4BAA4B,CAAA;
|
|
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,EAEL,UAAU,EACV,gBAAgB,EACjB,MAAM,eAAe,CAAA;AAEtB,oBAAY,cAAc,GACtB,sBAAsB,GACtB,4BAA4B,CAAA;AAYhC;;;;GAIG;AACH,oBAAY,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,CAoBrD,CAAA;IAEM,MAAM,QAAQ,EAAE,gBAAgB,CAAC,sBAAsB,CAC/B,CAAA;CAChC;AAED;;;;GAIG;AACH,oBAAY,4BAA4B,GAAG,sBAAsB,GAAG;IAClE,cAAc,EAAE,MAAM,CAAA;CACvB,CAAA;AAED;;GAEG;AACH,yBAAiB,4BAA4B,CAAC;IACrC,MAAM,MAAM,EAAE,UAAU,CAAC,4BAA4B,CAsB3D,CAAA;IAEM,MAAM,QAAQ,EAAE,gBAAgB,CAAC,4BAA4B,CACrC,CAAA;CAChC"}
|
|
@@ -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: [
|
|
22
22
|
{ properties: { entityId: misc_1.IPFSv1.schema } },
|
|
@@ -43,8 +43,9 @@ var PointerChangesSyncDeployment;
|
|
|
43
43
|
entityId: { type: 'string' },
|
|
44
44
|
entityType: { type: 'string' },
|
|
45
45
|
pointers: { type: 'array', items: { type: 'string' }, minItems: 1 },
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
authChain: auth_chain_1.AuthChain.schema,
|
|
47
|
+
entityTimestamp: { type: 'number', minimum: 0 },
|
|
48
|
+
localTimestamp: { type: 'number', minimum: 0 }
|
|
48
49
|
},
|
|
49
50
|
oneOf: [
|
|
50
51
|
{ properties: { entityId: misc_1.IPFSv1.schema } },
|
|
@@ -55,6 +56,7 @@ var PointerChangesSyncDeployment;
|
|
|
55
56
|
'entityType',
|
|
56
57
|
'pointers',
|
|
57
58
|
'localTimestamp',
|
|
59
|
+
'entityTimestamp',
|
|
58
60
|
'authChain'
|
|
59
61
|
]
|
|
60
62
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sync-deployments.js","sourceRoot":"","sources":["../../src/platform/sync-deployments.ts"],"names":[],"mappings":";;;AAAA,kCAAwC;AACxC,mDAA8C;AAC9C,8CAIsB;
|
|
1
|
+
{"version":3,"file":"sync-deployments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AI,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;YACL,EAAE,UAAU,EAAE,EAAE,QAAQ,EAAE,aAAM,CAAC,MAAM,EAAE,EAAE;YAC3C,EAAE,UAAU,EAAE,EAAE,QAAQ,EAAE,aAAM,CAAC,MAAM,EAAE,EAAE;SAC5C;QACD,QAAQ,EAAE;YACR,UAAU;YACV,YAAY;YACZ,UAAU;YACV,gBAAgB;YAChB,iBAAiB;YACjB,WAAW;SACZ;KACF,CAAA;IAEY,qCAAQ,GACnB,IAAA,kCAAqB,EAAC,6BAAA,MAAM,CAAC,CAAA;AACjC,CAAC,EA3BgB,4BAA4B,GAA5B,oCAA4B,KAA5B,oCAA4B,QA2B5C"}
|
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;
|
|
@@ -1193,7 +1186,7 @@ export declare namespace PeriodCreation {
|
|
|
1193
1186
|
* a deployed entity across catalysts from the old snapshots and /pointer-changes endpoint.
|
|
1194
1187
|
* @public
|
|
1195
1188
|
*/
|
|
1196
|
-
export declare type PointerChangesSyncDeployment =
|
|
1189
|
+
export declare type PointerChangesSyncDeployment = SnapshotSyncDeployment & {
|
|
1197
1190
|
localTimestamp: number;
|
|
1198
1191
|
};
|
|
1199
1192
|
|
|
@@ -1822,7 +1815,11 @@ export declare namespace Snapshots {
|
|
|
1822
1815
|
* a deployed entity across catalysts from the snapshots.
|
|
1823
1816
|
* @public
|
|
1824
1817
|
*/
|
|
1825
|
-
export declare type SnapshotSyncDeployment =
|
|
1818
|
+
export declare type SnapshotSyncDeployment = {
|
|
1819
|
+
entityId: IPFSv1 | IPFSv2;
|
|
1820
|
+
entityType: string;
|
|
1821
|
+
pointers: string[];
|
|
1822
|
+
authChain: AuthChain;
|
|
1826
1823
|
entityTimestamp: number;
|
|
1827
1824
|
};
|
|
1828
1825
|
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "6.17.
|
|
2
|
+
"version": "6.17.1-20230428182545.commit-81ff481",
|
|
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": "81ff481ace908e1156a80178a204b30b9729f0dc"
|
|
36
36
|
}
|