@roster-lock/types 1.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/LICENSE.md +11 -0
- package/dist/index.js +18 -0
- package/dist/index.js.map +1 -0
- package/dist/v1/draft/index.js +3 -0
- package/dist/v1/draft/index.js.map +1 -0
- package/dist/v1/index.js +24 -0
- package/dist/v1/index.js.map +1 -0
- package/dist/v1/lock/engine.js +3 -0
- package/dist/v1/lock/engine.js.map +1 -0
- package/dist/v1/lock/index.js +21 -0
- package/dist/v1/lock/index.js.map +1 -0
- package/dist/v1/lock/piece-meta.js +3 -0
- package/dist/v1/lock/piece-meta.js.map +1 -0
- package/dist/v1/lock/roster.js +3 -0
- package/dist/v1/lock/roster.js.map +1 -0
- package/dist/v1/lock/selection/index.js +18 -0
- package/dist/v1/lock/selection/index.js.map +1 -0
- package/dist/v1/lock/selection/meta.js +3 -0
- package/dist/v1/lock/selection/meta.js.map +1 -0
- package/dist/v1/lock/selection/script.js +3 -0
- package/dist/v1/lock/selection/script.js.map +1 -0
- package/dist/v1/lock/selection/selection-types/game-controlled.js +3 -0
- package/dist/v1/lock/selection/selection-types/game-controlled.js.map +1 -0
- package/dist/v1/lock/selection/selection-types/normal.js +3 -0
- package/dist/v1/lock/selection/selection-types/normal.js.map +1 -0
- package/dist/v1/lock/selection/selection-types/preselected.js +3 -0
- package/dist/v1/lock/selection/selection-types/preselected.js.map +1 -0
- package/dist/v1/lock/selection/selection-types/unselectable.js +3 -0
- package/dist/v1/lock/selection/selection-types/unselectable.js.map +1 -0
- package/dist/v1/metadata.js +3 -0
- package/dist/v1/metadata.js.map +1 -0
- package/dist/v1/relay/index.js +3 -0
- package/dist/v1/relay/index.js.map +1 -0
- package/dist/v1/request/index.js +20 -0
- package/dist/v1/request/index.js.map +1 -0
- package/dist/v1/request/input/agent-to-relay.js +3 -0
- package/dist/v1/request/input/agent-to-relay.js.map +1 -0
- package/dist/v1/request/input/client-to-agent.js +3 -0
- package/dist/v1/request/input/client-to-agent.js.map +1 -0
- package/dist/v1/request/input/index.js +20 -0
- package/dist/v1/request/input/index.js.map +1 -0
- package/dist/v1/request/input/user-to-client.js +3 -0
- package/dist/v1/request/input/user-to-client.js.map +1 -0
- package/dist/v1/request/output/download-event.js +14 -0
- package/dist/v1/request/output/download-event.js.map +1 -0
- package/dist/v1/request/output/index.js +18 -0
- package/dist/v1/request/output/index.js.map +1 -0
- package/dist/v1/request/shared.js +3 -0
- package/dist/v1/request/shared.js.map +1 -0
- package/dist/v1/runtime/download/Archive.js +3 -0
- package/dist/v1/runtime/download/Archive.js.map +1 -0
- package/dist/v1/runtime/download/Decompressor.js +3 -0
- package/dist/v1/runtime/download/Decompressor.js.map +1 -0
- package/dist/v1/runtime/download/Protocol.js +3 -0
- package/dist/v1/runtime/download/Protocol.js.map +1 -0
- package/dist/v1/runtime/download/index.js +21 -0
- package/dist/v1/runtime/download/index.js.map +1 -0
- package/dist/v1/runtime/download/types.js +3 -0
- package/dist/v1/runtime/download/types.js.map +1 -0
- package/dist/v1/runtime/index.js +20 -0
- package/dist/v1/runtime/index.js.map +1 -0
- package/dist/v1/runtime/piece-selection-sort/index.js +3 -0
- package/dist/v1/runtime/piece-selection-sort/index.js.map +1 -0
- package/dist/v1/runtime/unstrusted-script/index.js +18 -0
- package/dist/v1/runtime/unstrusted-script/index.js.map +1 -0
- package/dist/v1/runtime/unstrusted-script/purpose-input.js +3 -0
- package/dist/v1/runtime/unstrusted-script/purpose-input.js.map +1 -0
- package/dist/v1/shared.js +3 -0
- package/dist/v1/shared.js.map +1 -0
- package/package.json +25 -0
- package/src/index.ts +2 -0
- package/src/v1/draft/index.ts +32 -0
- package/src/v1/index.ts +8 -0
- package/src/v1/lock/engine.ts +40 -0
- package/src/v1/lock/index.ts +24 -0
- package/src/v1/lock/piece-meta.ts +9 -0
- package/src/v1/lock/roster.ts +27 -0
- package/src/v1/lock/selection/index.ts +34 -0
- package/src/v1/lock/selection/meta.ts +17 -0
- package/src/v1/lock/selection/script.ts +56 -0
- package/src/v1/lock/selection/selection-types/game-controlled.ts +9 -0
- package/src/v1/lock/selection/selection-types/normal.ts +32 -0
- package/src/v1/lock/selection/selection-types/preselected.ts +12 -0
- package/src/v1/lock/selection/selection-types/unselectable.ts +3 -0
- package/src/v1/metadata.ts +10 -0
- package/src/v1/relay/index.ts +19 -0
- package/src/v1/request/index.ts +4 -0
- package/src/v1/request/input/agent-to-relay.ts +6 -0
- package/src/v1/request/input/client-to-agent.ts +19 -0
- package/src/v1/request/input/index.ts +4 -0
- package/src/v1/request/input/user-to-client.ts +21 -0
- package/src/v1/request/output/download-event.ts +49 -0
- package/src/v1/request/output/index.ts +34 -0
- package/src/v1/request/shared.ts +13 -0
- package/src/v1/runtime/download/Archive.ts +13 -0
- package/src/v1/runtime/download/Decompressor.ts +6 -0
- package/src/v1/runtime/download/Protocol.ts +15 -0
- package/src/v1/runtime/download/index.ts +5 -0
- package/src/v1/runtime/download/types.ts +18 -0
- package/src/v1/runtime/index.ts +4 -0
- package/src/v1/runtime/piece-selection-sort/index.ts +34 -0
- package/src/v1/runtime/unstrusted-script/index.ts +59 -0
- package/src/v1/runtime/unstrusted-script/purpose-input.ts +34 -0
- package/src/v1/shared.ts +14 -0
- package/tsconfig.json +20 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
https://json.org/license.html
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2002 JSON.org
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
The Software shall be used for Good, not Evil.
|
|
10
|
+
|
|
11
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./v1"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AACA,uCAAqB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v1/draft/index.ts"],"names":[],"mappings":""}
|
package/dist/v1/index.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./shared"), exports);
|
|
18
|
+
__exportStar(require("./lock"), exports);
|
|
19
|
+
__exportStar(require("./relay"), exports);
|
|
20
|
+
__exportStar(require("./metadata"), exports);
|
|
21
|
+
__exportStar(require("./draft"), exports);
|
|
22
|
+
__exportStar(require("./request"), exports);
|
|
23
|
+
__exportStar(require("./runtime"), exports);
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/v1/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AACA,2CAAyB;AACzB,yCAAuB;AACvB,0CAAwB;AACxB,6CAA2B;AAC3B,0CAAwB;AACxB,4CAA0B;AAC1B,4CAA0B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"engine.js","sourceRoot":"","sources":["../../../src/v1/lock/engine.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./engine"), exports);
|
|
18
|
+
__exportStar(require("./roster"), exports);
|
|
19
|
+
__exportStar(require("./selection"), exports);
|
|
20
|
+
__exportStar(require("./piece-meta"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v1/lock/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAMA,2CAAyB;AACzB,2CAAyB;AACzB,8CAA4B;AAC5B,+CAA6B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"piece-meta.js","sourceRoot":"","sources":["../../../src/v1/lock/piece-meta.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"roster.js","sourceRoot":"","sources":["../../../src/v1/lock/roster.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./meta"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/v1/lock/selection/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAQA,yCAAuB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../../src/v1/lock/selection/meta.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"script.js","sourceRoot":"","sources":["../../../../src/v1/lock/selection/script.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"game-controlled.js","sourceRoot":"","sources":["../../../../../src/v1/lock/selection/selection-types/game-controlled.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normal.js","sourceRoot":"","sources":["../../../../../src/v1/lock/selection/selection-types/normal.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preselected.js","sourceRoot":"","sources":["../../../../../src/v1/lock/selection/selection-types/preselected.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unselectable.js","sourceRoot":"","sources":["../../../../../src/v1/lock/selection/selection-types/unselectable.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"metadata.js","sourceRoot":"","sources":["../../src/v1/metadata.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v1/relay/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./shared"), exports);
|
|
18
|
+
__exportStar(require("./input"), exports);
|
|
19
|
+
__exportStar(require("./output"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v1/request/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AACA,2CAAwB;AACxB,0CAAuB;AACvB,2CAAwB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-to-relay.js","sourceRoot":"","sources":["../../../../src/v1/request/input/agent-to-relay.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-to-agent.js","sourceRoot":"","sources":["../../../../src/v1/request/input/client-to-agent.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./user-to-client"), exports);
|
|
18
|
+
__exportStar(require("./client-to-agent"), exports);
|
|
19
|
+
__exportStar(require("./agent-to-relay"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/v1/request/input/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AACA,mDAAiC;AACjC,oDAAkC;AAClC,mDAAiC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-to-client.js","sourceRoot":"","sources":["../../../../src/v1/request/input/user-to-client.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ROSTERLOCK_DOWNLOAD_STATE = void 0;
|
|
4
|
+
var ROSTERLOCK_DOWNLOAD_STATE;
|
|
5
|
+
(function (ROSTERLOCK_DOWNLOAD_STATE) {
|
|
6
|
+
ROSTERLOCK_DOWNLOAD_STATE["downloadStart"] = "download-start";
|
|
7
|
+
ROSTERLOCK_DOWNLOAD_STATE["downloadProgress"] = "download-progress";
|
|
8
|
+
ROSTERLOCK_DOWNLOAD_STATE["downloadValidation"] = "download-validation";
|
|
9
|
+
ROSTERLOCK_DOWNLOAD_STATE["downloadFinished"] = "download-finished";
|
|
10
|
+
ROSTERLOCK_DOWNLOAD_STATE["downloadFailure"] = "download-failure";
|
|
11
|
+
ROSTERLOCK_DOWNLOAD_STATE["downloadAllComplete"] = "download-all-complete";
|
|
12
|
+
ROSTERLOCK_DOWNLOAD_STATE["downloadFullFailure"] = "download-full-fail";
|
|
13
|
+
})(ROSTERLOCK_DOWNLOAD_STATE || (exports.ROSTERLOCK_DOWNLOAD_STATE = ROSTERLOCK_DOWNLOAD_STATE = {}));
|
|
14
|
+
//# sourceMappingURL=download-event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"download-event.js","sourceRoot":"","sources":["../../../../src/v1/request/output/download-event.ts"],"names":[],"mappings":";;;AACA,IAAY,yBASX;AATD,WAAY,yBAAyB;IACnC,6DAAgC,CAAA;IAChC,mEAAsC,CAAA;IACtC,uEAA0C,CAAA;IAC1C,mEAAsC,CAAA;IACtC,iEAAoC,CAAA;IAEpC,0EAA6C,CAAA;IAC7C,uEAA0C,CAAA;AAC5C,CAAC,EATW,yBAAyB,aAAzB,yBAAyB,GAAzB,yBAAyB,QASpC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./download-event"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/v1/request/output/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAIA,mDAAiC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../src/v1/request/shared.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Archive.js","sourceRoot":"","sources":["../../../../src/v1/runtime/download/Archive.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Decompressor.js","sourceRoot":"","sources":["../../../../src/v1/runtime/download/Decompressor.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Protocol.js","sourceRoot":"","sources":["../../../../src/v1/runtime/download/Protocol.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types"), exports);
|
|
18
|
+
__exportStar(require("./Archive"), exports);
|
|
19
|
+
__exportStar(require("./Decompressor"), exports);
|
|
20
|
+
__exportStar(require("./Protocol"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/v1/runtime/download/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AACA,0CAAwB;AACxB,4CAA0B;AAC1B,iDAA+B;AAC/B,6CAA2B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/v1/runtime/download/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./download"), exports);
|
|
18
|
+
__exportStar(require("./unstrusted-script"), exports);
|
|
19
|
+
__exportStar(require("./piece-selection-sort"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v1/runtime/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AACA,6CAA2B;AAC3B,sDAAoC;AACpC,yDAAuC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/v1/runtime/piece-selection-sort/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./purpose-input"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/v1/runtime/unstrusted-script/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAEA,kDAAgC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"purpose-input.js","sourceRoot":"","sources":["../../../../src/v1/runtime/unstrusted-script/purpose-input.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared.js","sourceRoot":"","sources":["../../src/v1/shared.ts"],"names":[],"mappings":""}
|
package/package.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@roster-lock/types",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Types for roster lock",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/formula1/roster-lock.git",
|
|
8
|
+
"directory": "core/types"
|
|
9
|
+
},
|
|
10
|
+
"license": "JSON",
|
|
11
|
+
"author": "Sam Tobia",
|
|
12
|
+
"type": "commonjs",
|
|
13
|
+
"main": "dist/index.js",
|
|
14
|
+
"types": "src/index.ts",
|
|
15
|
+
"publishConfig": {
|
|
16
|
+
"access": "public"
|
|
17
|
+
},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"rimraf": "^6.1.3",
|
|
20
|
+
"typescript": "^7.0.2"
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "rimraf ./dist && tsc"
|
|
24
|
+
}
|
|
25
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
import { RosterLockV1Config } from "../lock";
|
|
3
|
+
import { PieceId, PieceType, RosterLockIdentity } from "../shared";
|
|
4
|
+
|
|
5
|
+
type DownloadableSource = string;
|
|
6
|
+
|
|
7
|
+
type RosterLockDraftPieceInfo = {
|
|
8
|
+
referenceFolder?: string,
|
|
9
|
+
testedDownloadSources: Array<{
|
|
10
|
+
source: DownloadableSource,
|
|
11
|
+
testedAt: number,
|
|
12
|
+
version: { logic: string, media: string, docs: string }
|
|
13
|
+
}>,
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
type RelativePath = string;
|
|
17
|
+
|
|
18
|
+
type RosterLockDraftScriptInfo = {
|
|
19
|
+
lastLoad: number,
|
|
20
|
+
sha: string,
|
|
21
|
+
referencePath: string
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export type RosterLockV1Draft = {
|
|
25
|
+
configIdentity: RosterLockIdentity<"draft", 1>,
|
|
26
|
+
previousLock: RosterLockV1Config,
|
|
27
|
+
stagedLock: RosterLockV1Config,
|
|
28
|
+
draft: {
|
|
29
|
+
rosterPieceInfo: Record<PieceType, Record<PieceId, RosterLockDraftPieceInfo>>,
|
|
30
|
+
selectionScriptInfo: Record<RelativePath, RosterLockDraftScriptInfo>
|
|
31
|
+
}
|
|
32
|
+
};
|
package/src/v1/index.ts
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
|
|
2
|
+
import {
|
|
3
|
+
PieceType, Count, Sha256
|
|
4
|
+
} from "../shared";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
export type RosterLockEngineConfig = {
|
|
8
|
+
name: string,
|
|
9
|
+
version: string,
|
|
10
|
+
pieceDefinitions: Record<PieceType, {
|
|
11
|
+
selectionStrategy: EngineSelectionStrategy,
|
|
12
|
+
requires: Array<PieceType>
|
|
13
|
+
pathVariables: Array<string>,
|
|
14
|
+
assets: Array<EngineAssetDefinition>
|
|
15
|
+
}>,
|
|
16
|
+
/*
|
|
17
|
+
Selection configs the engine's own UI/matchmaker knows how to drive (e.g. "3v3
|
|
18
|
+
tag team" or "1v1"), identified by hash. `tag` lets the game match a hash to one
|
|
19
|
+
of its hardcoded selection screens without hardcoding the hash itself - a config
|
|
20
|
+
revision gets a new hash under the same tag, and old rooms keep resolving via
|
|
21
|
+
their original entry. Informational only - custom selection configs outside this
|
|
22
|
+
list are still valid, they just won't be offered by that UI.
|
|
23
|
+
*/
|
|
24
|
+
officialSelections?: Array<{ tag: string, hash: Sha256 }>,
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export type AssetClassification = "logic" | "media" | "doc";
|
|
28
|
+
export type EngineAssetDefinition = {
|
|
29
|
+
name: string,
|
|
30
|
+
classification: AssetClassification,
|
|
31
|
+
count: Count
|
|
32
|
+
glob: Array<string>,
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export type EngineSelectionStrategy = (
|
|
36
|
+
| "mandatory"
|
|
37
|
+
| "personal"
|
|
38
|
+
| "shared"
|
|
39
|
+
| "on demand"
|
|
40
|
+
);
|