@takaro/module-test 0.0.0-dev.bfb7cf7 → 0.0.0-dev.c442bfc
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/dist/.source-hash +1 -1
- package/dist/fakeClient.d.ts +2 -2
- package/dist/fakeClient.d.ts.map +1 -1
- package/dist/query.d.ts.map +1 -1
- package/dist/query.js +22 -12
- package/dist/query.js.map +1 -1
- package/dist/systemConfig.d.ts.map +1 -1
- package/dist/systemConfig.js +144 -154
- package/dist/systemConfig.js.map +1 -1
- package/package.json +3 -3
package/dist/.source-hash
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
429a3aa3011cc67ca7fe3624e03839a876fe81eecefdbebb1f5ab8f2e2aa2f5e
|
package/dist/fakeClient.d.ts
CHANGED
|
@@ -23,13 +23,13 @@ export interface FakeClientOptions {
|
|
|
23
23
|
now?: () => Date;
|
|
24
24
|
}
|
|
25
25
|
export declare function ok<T>(data: T): AxiosResponse<T>;
|
|
26
|
-
export declare function single(data: unknown): AxiosResponse<never, any>;
|
|
26
|
+
export declare function single(data: unknown): AxiosResponse<never, any, {}, any>;
|
|
27
27
|
export interface PageMeta {
|
|
28
28
|
total?: number;
|
|
29
29
|
page?: number;
|
|
30
30
|
limit?: number;
|
|
31
31
|
}
|
|
32
|
-
export declare function paginated(results: unknown[], meta?: PageMeta): AxiosResponse<never, any>;
|
|
32
|
+
export declare function paginated(results: unknown[], meta?: PageMeta): AxiosResponse<never, any, {}, any>;
|
|
33
33
|
export interface FakeClient {
|
|
34
34
|
/** Hand this to `executeVM({ clientOverride })`. */
|
|
35
35
|
asClient: Client;
|
package/dist/fakeClient.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fakeClient.d.ts","sourceRoot":"","sources":["../src/fakeClient.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,aAAa,EACb,MAAM,EACN,2BAA2B,EAC3B,oCA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,KAAK,EAAE,WAAW,CAAC;IACnB,SAAS,EAAE,aAAa,CAAC;IACzB,QAAQ,EAAE,cAAc,CAAC;IACzB,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,aAAa,EAAE,2BAA2B,EAAE,CAAC;IAC7C,8DAA8D;IAC9D,QAAQ,EAAE,eAAe,EAAE,CAAC;IAC5B,wEAAwE;IACxE,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CACjC;AAED,yCAAyC;AACzC,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,iBAAiB,GAAG,UAAU,CAuVvE"}
|
package/dist/query.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../src/query.ts"],"names":[],"mappings":"AAIA,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAStD;AAED,qBAAa,qBAAsB,SAAQ,KAAK;IAC9C,YAAY,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAO1C;CACF;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAKhG;
|
|
1
|
+
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../src/query.ts"],"names":[],"mappings":"AAIA,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAStD;AAED,qBAAa,qBAAsB,SAAQ,KAAK;IAC9C,YAAY,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAO1C;CACF;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAKhG;AAkBD,wBAAgB,cAAc,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAcvF;AAID,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,MAAM,CAKlE"}
|
package/dist/query.js
CHANGED
|
@@ -23,24 +23,34 @@ export function unimplementedKey(kind, key, supported) {
|
|
|
23
23
|
return (`was given a ${kind} on '${key}', which the module test fake does not implement. ` +
|
|
24
24
|
`Supported ${kind} keys: ${supported.length ? supported.join(', ') : 'none'}.`);
|
|
25
25
|
}
|
|
26
|
+
function isNullish(value) {
|
|
27
|
+
return value === null || value === undefined;
|
|
28
|
+
}
|
|
29
|
+
function threeWay(a, b) {
|
|
30
|
+
if (a === b) {
|
|
31
|
+
return 0;
|
|
32
|
+
}
|
|
33
|
+
if (a < b) {
|
|
34
|
+
return -1;
|
|
35
|
+
}
|
|
36
|
+
return 1;
|
|
37
|
+
}
|
|
26
38
|
// Postgres orders NULLs last ascending, first descending — nulls sort as the largest value.
|
|
27
39
|
// Coercing null to `''` would instead sort it smallest, the opposite order.
|
|
28
|
-
// oxlint-disable-next-line sonarjs/cognitive-complexity -- GH #4103
|
|
29
40
|
export function compareForSort(left, right, direction) {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
41
|
+
if (isNullish(left) && isNullish(right)) {
|
|
42
|
+
return 0;
|
|
43
|
+
}
|
|
44
|
+
if (isNullish(left)) {
|
|
45
|
+
return direction;
|
|
46
|
+
}
|
|
47
|
+
if (isNullish(right)) {
|
|
48
|
+
return -direction;
|
|
37
49
|
}
|
|
38
50
|
if (typeof left === 'number' && typeof right === 'number') {
|
|
39
|
-
return (left
|
|
51
|
+
return threeWay(left, right) * direction;
|
|
40
52
|
}
|
|
41
|
-
|
|
42
|
-
const b = toDisplayString(right);
|
|
43
|
-
return (a === b ? 0 : a < b ? -1 : 1) * direction;
|
|
53
|
+
return threeWay(toDisplayString(left), toDisplayString(right)) * direction;
|
|
44
54
|
}
|
|
45
55
|
// `QueryBuilder` honours a bare boolean as an equality test and nothing else; every other scalar
|
|
46
56
|
// falls through its `Array.isArray` branch and filters nothing.
|
package/dist/query.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.js","sourceRoot":"","sources":["../src/query.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAC9F,yFAAyF;AAEzF,kGAAkG;AAClG,MAAM,UAAU,eAAe,CAAC,KAAc;IAC5C,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,OAAO,KAAK,CAAC;IACf,CAAC;IACD,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,OAAO,KAAK,KAAK,SAAS,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QACzF,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;IACvB,CAAC;IACD,qKAAqK;IACrK,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,WAAW,CAAC;AAC9C,CAAC;AAED,MAAM,OAAO,qBAAsB,SAAQ,KAAK;IAC9C,YAAY,MAAc,EAAE,OAAe;QACzC,KAAK,CACH,GAAG,MAAM,MAAM,OAAO,oEAAoE;YACxF,iGAAiG;YACjG,qCAAqC,CACxC,CAAC;QACF,IAAI,CAAC,IAAI,GAAG,uBAAuB,CAAC;IACtC,CAAC;CACF;AAED,MAAM,UAAU,gBAAgB,CAAC,IAAY,EAAE,GAAW,EAAE,SAA4B;IACtF,OAAO,CACL,eAAe,IAAI,QAAQ,GAAG,oDAAoD;QAClF,aAAa,IAAI,UAAU,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,GAAG,CAC/E,CAAC;AACJ,CAAC;AAED,
|
|
1
|
+
{"version":3,"file":"query.js","sourceRoot":"","sources":["../src/query.ts"],"names":[],"mappings":"AA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CAAC;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC3C,WAAW,CAAC,EAAE,aAAa,CAAC;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAC/C;
|
|
1
|
+
{"version":3,"file":"systemConfig.d.ts","sourceRoot":"","sources":["../src/systemConfig.ts"],"names":[],"mappings":"AAKA,UAAU,mBAAmB;IAC3B,QAAQ,CAAC,EAAE,aAAa,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,aAAa,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAClE,KAAK,CAAC,EAAE,aAAa,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC3D,QAAQ,CAAC,EAAE,aAAa,CAAC;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC3C,WAAW,CAAC,EAAE,aAAa,CAAC;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAC/C;AA+KD,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,mBAAmB,GAAG,MAAM,CA4CtE"}
|
package/dist/systemConfig.js
CHANGED
|
@@ -16,9 +16,146 @@ If set to 'server', the cooldown will apply to all players on the server.
|
|
|
16
16
|
If set to 'global', the cooldown will apply to the entire domain.
|
|
17
17
|
|
|
18
18
|
Note that if you select 'player' but the hook fires for an event that has no player attached (e.g. a server goes on/offline), the cooldown will be treated as a server cooldown instead.`;
|
|
19
|
+
function componentSection(properties) {
|
|
20
|
+
return {
|
|
21
|
+
type: 'object',
|
|
22
|
+
properties,
|
|
23
|
+
required: [],
|
|
24
|
+
default: {},
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
function cronJobEntry(cronJob) {
|
|
28
|
+
return {
|
|
29
|
+
type: 'object',
|
|
30
|
+
required: [],
|
|
31
|
+
default: {},
|
|
32
|
+
properties: {
|
|
33
|
+
enabled: {
|
|
34
|
+
type: 'boolean',
|
|
35
|
+
default: true,
|
|
36
|
+
description: `Enable the ${cronJob.name} cron job.`,
|
|
37
|
+
},
|
|
38
|
+
temporalValue: {
|
|
39
|
+
type: 'string',
|
|
40
|
+
description: 'Temporal value for the cron job. Controls when it runs',
|
|
41
|
+
default: cronJob.temporalValue,
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function isDiscordHook(hook) {
|
|
47
|
+
return hook.eventType === HookOutputDTOEventTypeEnum.DiscordMessage;
|
|
48
|
+
}
|
|
49
|
+
function hookEntry(hook) {
|
|
50
|
+
const entry = {
|
|
51
|
+
type: 'object',
|
|
52
|
+
properties: {
|
|
53
|
+
enabled: {
|
|
54
|
+
type: 'boolean',
|
|
55
|
+
default: true,
|
|
56
|
+
description: `Enable the ${hook.name} hook.`,
|
|
57
|
+
},
|
|
58
|
+
delay: {
|
|
59
|
+
type: 'number',
|
|
60
|
+
default: 0,
|
|
61
|
+
minimum: 0,
|
|
62
|
+
maximum: ONE_DAY_SECONDS,
|
|
63
|
+
description: 'How many seconds to wait before executing the hook.',
|
|
64
|
+
},
|
|
65
|
+
cooldown: {
|
|
66
|
+
type: 'number',
|
|
67
|
+
default: 0,
|
|
68
|
+
minimum: 0,
|
|
69
|
+
maximum: ONE_DAY_SECONDS,
|
|
70
|
+
description: 'How many seconds before this hook can be triggered again.',
|
|
71
|
+
},
|
|
72
|
+
cooldownType: {
|
|
73
|
+
type: 'string',
|
|
74
|
+
enum: ['player', 'server', 'global'],
|
|
75
|
+
default: 'player',
|
|
76
|
+
description: COOLDOWN_TYPE_DESCRIPTION,
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
required: [],
|
|
80
|
+
default: {},
|
|
81
|
+
};
|
|
82
|
+
if (isDiscordHook(hook)) {
|
|
83
|
+
entry.required.push('discordChannelId');
|
|
84
|
+
entry.properties.discordChannelId = {
|
|
85
|
+
type: 'string',
|
|
86
|
+
description: 'Discord channel ID where Takaro will listen for messages.',
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
return entry;
|
|
90
|
+
}
|
|
91
|
+
function shopActionEntry(shopAction) {
|
|
92
|
+
return {
|
|
93
|
+
type: 'object',
|
|
94
|
+
required: [],
|
|
95
|
+
default: {},
|
|
96
|
+
properties: {
|
|
97
|
+
enabled: {
|
|
98
|
+
type: 'boolean',
|
|
99
|
+
default: true,
|
|
100
|
+
description: `Enable the ${shopAction.name} shop action.`,
|
|
101
|
+
},
|
|
102
|
+
triggerOn: {
|
|
103
|
+
type: 'string',
|
|
104
|
+
enum: ['orderCreated', 'orderClaimed', 'both'],
|
|
105
|
+
default: 'orderClaimed',
|
|
106
|
+
description: 'When to execute: orderCreated (payment deducted), orderClaimed (items delivered), both.',
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
function commandEntry(command) {
|
|
112
|
+
return {
|
|
113
|
+
type: 'object',
|
|
114
|
+
properties: {
|
|
115
|
+
enabled: {
|
|
116
|
+
type: 'boolean',
|
|
117
|
+
default: true,
|
|
118
|
+
description: `Enable the ${command.name} command.`,
|
|
119
|
+
},
|
|
120
|
+
delay: {
|
|
121
|
+
type: 'number',
|
|
122
|
+
default: 0,
|
|
123
|
+
minimum: 0,
|
|
124
|
+
maximum: ONE_DAY_SECONDS,
|
|
125
|
+
description: 'How many seconds to wait before executing the command.',
|
|
126
|
+
},
|
|
127
|
+
announceDelay: {
|
|
128
|
+
type: 'boolean',
|
|
129
|
+
default: true,
|
|
130
|
+
description: 'Whether to announce the delay to the user.',
|
|
131
|
+
},
|
|
132
|
+
cooldown: {
|
|
133
|
+
type: 'number',
|
|
134
|
+
default: 0,
|
|
135
|
+
minimum: 0,
|
|
136
|
+
maximum: SEVEN_DAYS_SECONDS,
|
|
137
|
+
description: 'How many seconds a player has to wait before executing the command again.',
|
|
138
|
+
},
|
|
139
|
+
cost: {
|
|
140
|
+
type: 'number',
|
|
141
|
+
default: 0,
|
|
142
|
+
minimum: 0,
|
|
143
|
+
description: 'How much currency to deduct from the player before executing the command.',
|
|
144
|
+
},
|
|
145
|
+
aliases: {
|
|
146
|
+
type: 'array',
|
|
147
|
+
items: {
|
|
148
|
+
type: 'string',
|
|
149
|
+
},
|
|
150
|
+
description: 'Trigger the command with other names than the default',
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
required: [],
|
|
154
|
+
default: {},
|
|
155
|
+
};
|
|
156
|
+
}
|
|
19
157
|
// A copy of `getSystemConfigSchema` in the private `@takaro/modules`; its lib-modules
|
|
20
158
|
// `systemConfigParity` test pins the two together.
|
|
21
|
-
// oxlint-disable-next-line sonarjs/cognitive-complexity -- GH #4103
|
|
22
159
|
export function getSystemConfigSchema(mod) {
|
|
23
160
|
const systemConfigSchema = getEmptyConfigSchema();
|
|
24
161
|
systemConfigSchema.properties.enabled = {
|
|
@@ -31,168 +168,21 @@ export function getSystemConfigSchema(mod) {
|
|
|
31
168
|
const commands = mod.commands ?? [];
|
|
32
169
|
const shopActions = mod.shopActions ?? [];
|
|
33
170
|
if (cronJobs.length) {
|
|
34
|
-
systemConfigSchema.properties.cronJobs =
|
|
35
|
-
type: 'object',
|
|
36
|
-
properties: {},
|
|
37
|
-
required: [],
|
|
38
|
-
default: {},
|
|
39
|
-
};
|
|
171
|
+
systemConfigSchema.properties.cronJobs = componentSection(Object.fromEntries(cronJobs.map((cronJob) => [cronJob.name, cronJobEntry(cronJob)])));
|
|
40
172
|
systemConfigSchema.required.push('cronJobs');
|
|
41
|
-
for (const cronJob of cronJobs) {
|
|
42
|
-
systemConfigSchema.properties.cronJobs.properties[cronJob.name] = {
|
|
43
|
-
type: 'object',
|
|
44
|
-
required: [],
|
|
45
|
-
default: {},
|
|
46
|
-
properties: {
|
|
47
|
-
enabled: {
|
|
48
|
-
type: 'boolean',
|
|
49
|
-
default: true,
|
|
50
|
-
description: `Enable the ${cronJob.name} cron job.`,
|
|
51
|
-
},
|
|
52
|
-
temporalValue: {
|
|
53
|
-
type: 'string',
|
|
54
|
-
description: 'Temporal value for the cron job. Controls when it runs',
|
|
55
|
-
default: cronJob.temporalValue,
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
173
|
}
|
|
61
174
|
if (hooks.length) {
|
|
62
|
-
systemConfigSchema.properties.hooks =
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
required: [],
|
|
66
|
-
default: {},
|
|
67
|
-
};
|
|
68
|
-
for (const hook of hooks) {
|
|
69
|
-
systemConfigSchema.properties.hooks.properties[hook.name] = {
|
|
70
|
-
type: 'object',
|
|
71
|
-
properties: {
|
|
72
|
-
enabled: {
|
|
73
|
-
type: 'boolean',
|
|
74
|
-
default: true,
|
|
75
|
-
description: `Enable the ${hook.name} hook.`,
|
|
76
|
-
},
|
|
77
|
-
delay: {
|
|
78
|
-
type: 'number',
|
|
79
|
-
default: 0,
|
|
80
|
-
minimum: 0,
|
|
81
|
-
maximum: ONE_DAY_SECONDS,
|
|
82
|
-
description: 'How many seconds to wait before executing the hook.',
|
|
83
|
-
},
|
|
84
|
-
cooldown: {
|
|
85
|
-
type: 'number',
|
|
86
|
-
default: 0,
|
|
87
|
-
minimum: 0,
|
|
88
|
-
maximum: ONE_DAY_SECONDS,
|
|
89
|
-
description: 'How many seconds before this hook can be triggered again.',
|
|
90
|
-
},
|
|
91
|
-
cooldownType: {
|
|
92
|
-
type: 'string',
|
|
93
|
-
enum: ['player', 'server', 'global'],
|
|
94
|
-
default: 'player',
|
|
95
|
-
description: COOLDOWN_TYPE_DESCRIPTION,
|
|
96
|
-
},
|
|
97
|
-
},
|
|
98
|
-
required: [],
|
|
99
|
-
default: {},
|
|
100
|
-
};
|
|
101
|
-
if (hook.eventType === HookOutputDTOEventTypeEnum.DiscordMessage) {
|
|
102
|
-
if (!systemConfigSchema.required.includes('hooks')) {
|
|
103
|
-
systemConfigSchema.required.push('hooks');
|
|
104
|
-
}
|
|
105
|
-
systemConfigSchema.properties.hooks.properties[hook.name].required.push('discordChannelId');
|
|
106
|
-
systemConfigSchema.properties.hooks.properties[hook.name].properties.discordChannelId = {
|
|
107
|
-
type: 'string',
|
|
108
|
-
description: 'Discord channel ID where Takaro will listen for messages.',
|
|
109
|
-
};
|
|
110
|
-
}
|
|
175
|
+
systemConfigSchema.properties.hooks = componentSection(Object.fromEntries(hooks.map((hook) => [hook.name, hookEntry(hook)])));
|
|
176
|
+
if (hooks.some(isDiscordHook)) {
|
|
177
|
+
systemConfigSchema.required.push('hooks');
|
|
111
178
|
}
|
|
112
179
|
}
|
|
113
180
|
if (shopActions.length) {
|
|
114
|
-
systemConfigSchema.properties.shopActions =
|
|
115
|
-
type: 'object',
|
|
116
|
-
properties: {},
|
|
117
|
-
required: [],
|
|
118
|
-
default: {},
|
|
119
|
-
};
|
|
120
|
-
for (const shopAction of shopActions) {
|
|
121
|
-
systemConfigSchema.properties.shopActions.properties[shopAction.name] = {
|
|
122
|
-
type: 'object',
|
|
123
|
-
required: [],
|
|
124
|
-
default: {},
|
|
125
|
-
properties: {
|
|
126
|
-
enabled: {
|
|
127
|
-
type: 'boolean',
|
|
128
|
-
default: true,
|
|
129
|
-
description: `Enable the ${shopAction.name} shop action.`,
|
|
130
|
-
},
|
|
131
|
-
triggerOn: {
|
|
132
|
-
type: 'string',
|
|
133
|
-
enum: ['orderCreated', 'orderClaimed', 'both'],
|
|
134
|
-
default: 'orderClaimed',
|
|
135
|
-
description: 'When to execute: orderCreated (payment deducted), orderClaimed (items delivered), both.',
|
|
136
|
-
},
|
|
137
|
-
},
|
|
138
|
-
};
|
|
139
|
-
}
|
|
181
|
+
systemConfigSchema.properties.shopActions = componentSection(Object.fromEntries(shopActions.map((shopAction) => [shopAction.name, shopActionEntry(shopAction)])));
|
|
140
182
|
}
|
|
141
183
|
if (commands.length) {
|
|
142
|
-
systemConfigSchema.properties.commands =
|
|
143
|
-
type: 'object',
|
|
144
|
-
properties: {},
|
|
145
|
-
required: [],
|
|
146
|
-
default: {},
|
|
147
|
-
};
|
|
184
|
+
systemConfigSchema.properties.commands = componentSection(Object.fromEntries(commands.map((command) => [command.name, commandEntry(command)])));
|
|
148
185
|
systemConfigSchema.required.push('commands');
|
|
149
|
-
for (const command of commands) {
|
|
150
|
-
const configKey = command.name;
|
|
151
|
-
systemConfigSchema.properties.commands.properties[configKey] = {
|
|
152
|
-
type: 'object',
|
|
153
|
-
properties: {
|
|
154
|
-
enabled: {
|
|
155
|
-
type: 'boolean',
|
|
156
|
-
default: true,
|
|
157
|
-
description: `Enable the ${configKey} command.`,
|
|
158
|
-
},
|
|
159
|
-
delay: {
|
|
160
|
-
type: 'number',
|
|
161
|
-
default: 0,
|
|
162
|
-
minimum: 0,
|
|
163
|
-
maximum: ONE_DAY_SECONDS,
|
|
164
|
-
description: 'How many seconds to wait before executing the command.',
|
|
165
|
-
},
|
|
166
|
-
announceDelay: {
|
|
167
|
-
type: 'boolean',
|
|
168
|
-
default: true,
|
|
169
|
-
description: 'Whether to announce the delay to the user.',
|
|
170
|
-
},
|
|
171
|
-
cooldown: {
|
|
172
|
-
type: 'number',
|
|
173
|
-
default: 0,
|
|
174
|
-
minimum: 0,
|
|
175
|
-
maximum: SEVEN_DAYS_SECONDS,
|
|
176
|
-
description: 'How many seconds a player has to wait before executing the command again.',
|
|
177
|
-
},
|
|
178
|
-
cost: {
|
|
179
|
-
type: 'number',
|
|
180
|
-
default: 0,
|
|
181
|
-
minimum: 0,
|
|
182
|
-
description: 'How much currency to deduct from the player before executing the command.',
|
|
183
|
-
},
|
|
184
|
-
aliases: {
|
|
185
|
-
type: 'array',
|
|
186
|
-
items: {
|
|
187
|
-
type: 'string',
|
|
188
|
-
},
|
|
189
|
-
description: 'Trigger the command with other names than the default',
|
|
190
|
-
},
|
|
191
|
-
},
|
|
192
|
-
required: [],
|
|
193
|
-
default: {},
|
|
194
|
-
};
|
|
195
|
-
}
|
|
196
186
|
}
|
|
197
187
|
return JSON.stringify(systemConfigSchema);
|
|
198
188
|
}
|
package/dist/systemConfig.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"systemConfig.js","sourceRoot":"","sources":["../src/systemConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAE/D,MAAM,eAAe,GAAG,MAAM,CAAC;AAC/B,MAAM,kBAAkB,GAAG,OAAO,CAAC;AAYnC,SAAS,oBAAoB;IAC3B,OAAO;QACL,OAAO,EAAE,yCAAyC;QAClD,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,EAAE;QACd,QAAQ,EAAE,EAAE;QACZ,oBAAoB,EAAE,KAAK;KAC5B,CAAC;AACJ,CAAC;AAED,MAAM,yBAAyB,GAAG;;;;;yLAKuJ,CAAC;
|
|
1
|
+
{"version":3,"file":"systemConfig.js","sourceRoot":"","sources":["../src/systemConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAE/D,MAAM,eAAe,GAAG,MAAM,CAAC;AAC/B,MAAM,kBAAkB,GAAG,OAAO,CAAC;AAYnC,SAAS,oBAAoB;IAC3B,OAAO;QACL,OAAO,EAAE,yCAAyC;QAClD,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,EAAE;QACd,QAAQ,EAAE,EAAE;QACZ,oBAAoB,EAAE,KAAK;KAC5B,CAAC;AACJ,CAAC;AAED,MAAM,yBAAyB,GAAG;;;;;yLAKuJ,CAAC;AAO1L,SAAS,gBAAgB,CAAC,UAA4B;IACpD,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,UAAU;QACV,QAAQ,EAAE,EAAE;QACZ,OAAO,EAAE,EAAE;KACZ,CAAC;AACJ,CAAC;AAED,SAAS,YAAY,CAAC,OAAgB;IACpC,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,EAAE;QACZ,OAAO,EAAE,EAAE;QACX,UAAU,EAA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WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CACtE,CAAC;QACF,IAAI,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE,CAAC;YAC9B,kBAAkB,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5C,CAAC;IACH,CAAC;IAED,IAAI,WAAW,CAAC,MAAM,EAAE,CAAC;QACvB,kBAAkB,CAAC,UAAU,CAAC,WAAW,GAAG,gBAAgB,CAC1D,MAAM,CAAC,WAAW,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC,UAAU,CAAC,IAAI,EAAE,eAAe,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CACpG,CAAC;IACJ,CAAC;IAED,IAAI,QAAQ,CAAC,MAAM,EAAE,CAAC;QACpB,kBAAkB,CAAC,UAAU,CAAC,QAAQ,GAAG,gBAAgB,CACvD,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CACrF,CAAC;QACF,kBAAkB,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAC/C,CAAC;IAED,OAAO,IAAI,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAAC;AAC5C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@takaro/module-test",
|
|
3
3
|
"description": "Unit-test harness for Takaro modules: the real module VM against an in-memory fake of the Takaro API client",
|
|
4
|
-
"version": "0.0.0-dev.
|
|
4
|
+
"version": "0.0.0-dev.c442bfc",
|
|
5
5
|
"author": "",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@takaro/apiclient": "0.0.0-dev.
|
|
8
|
-
"@takaro/helpers": "0.0.0-dev.
|
|
7
|
+
"@takaro/apiclient": "0.0.0-dev.c442bfc",
|
|
8
|
+
"@takaro/helpers": "0.0.0-dev.c442bfc",
|
|
9
9
|
"@types/sinon": "17.0.4",
|
|
10
10
|
"ajv": "8.20.0",
|
|
11
11
|
"sinon": "11.1.2"
|