@tenno-companion/core 0.1.5 → 0.2.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/README.md +1 -1
- package/dist/chunk-MZYECZBA.mjs +1 -0
- package/dist/chunk-STFT6SKY.mjs +1 -0
- package/dist/enemies-YS2SO76V.mjs +1 -0
- package/dist/index.d.mts +16 -41
- package/dist/index.d.ts +16 -41
- package/dist/index.js +16 -16
- package/dist/index.mjs +1 -1
- package/dist/lib/locales.d.mts +1 -1
- package/dist/lib/locales.d.ts +1 -1
- package/dist/lib/locales.js +16 -16
- package/dist/lib/locales.mjs +1 -1
- package/dist/server.d.mts +58 -0
- package/dist/server.d.ts +58 -0
- package/dist/server.js +2287 -0
- package/dist/server.mjs +1 -0
- package/dist/syndicates-OPKYQ2TN.mjs +1 -0
- package/dist/types/index.d.mts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +1 -1
- package/package.json +6 -1
- package/dist/chunk-TL2VWYDC.mjs +0 -1
package/dist/lib/locales.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c}from"../chunk-
|
|
1
|
+
import{a,b,c,d}from"../chunk-STFT6SKY.mjs";import"../chunk-CAXAR7DE.mjs";export{d as SUPPORTED_LANGUAGES,a as getDictionaries,c as getStandardLocale,b as sortByName};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { Archwings, Factions, MissionTypes, Necramechs, Pets, RailjackIntrinsics, Regions, Sentinels, Warframes, Weapons } from './index.mjs';
|
|
2
|
+
import { D as Data } from './internal-DDFPKiUV.mjs';
|
|
3
|
+
import { BaseItem } from './types/index.mjs';
|
|
4
|
+
import './lib/constants.mjs';
|
|
5
|
+
import '@tenno-companion/shared/locales';
|
|
6
|
+
|
|
7
|
+
type Options = {
|
|
8
|
+
locale?: string;
|
|
9
|
+
};
|
|
10
|
+
type HydratedDataOptions = {
|
|
11
|
+
locale?: string;
|
|
12
|
+
productCategory?: string;
|
|
13
|
+
skipSorting?: boolean;
|
|
14
|
+
};
|
|
15
|
+
declare abstract class BaseFactory {
|
|
16
|
+
protected constructor();
|
|
17
|
+
/**
|
|
18
|
+
* Static helper used by subclasses to fetch and translate data
|
|
19
|
+
*/
|
|
20
|
+
protected static getHydratedData<T extends BaseItem>(category: string, { locale, productCategory, skipSorting }?: HydratedDataOptions): Promise<Data<T>>;
|
|
21
|
+
/**
|
|
22
|
+
* Recursively scans an object/array and replaces any string
|
|
23
|
+
* starting with "/Lotus/Language" with its translation.
|
|
24
|
+
*/
|
|
25
|
+
private static translateRecursive;
|
|
26
|
+
}
|
|
27
|
+
declare class FactionProvider extends BaseFactory {
|
|
28
|
+
static create(options?: Options): Promise<Factions>;
|
|
29
|
+
}
|
|
30
|
+
declare class MissionTypeProvider extends BaseFactory {
|
|
31
|
+
static create(options?: Options): Promise<MissionTypes>;
|
|
32
|
+
}
|
|
33
|
+
declare class RailjackIntrinsicProvider extends BaseFactory {
|
|
34
|
+
static create(options?: Options): Promise<RailjackIntrinsics>;
|
|
35
|
+
}
|
|
36
|
+
declare class RegionProvider extends BaseFactory {
|
|
37
|
+
static create(options?: Options): Promise<Regions>;
|
|
38
|
+
}
|
|
39
|
+
declare class SentinelProvider extends BaseFactory {
|
|
40
|
+
static create(options?: Options): Promise<Sentinels>;
|
|
41
|
+
}
|
|
42
|
+
declare class WarframeProvider extends BaseFactory {
|
|
43
|
+
static create(options?: Options): Promise<Warframes>;
|
|
44
|
+
}
|
|
45
|
+
declare class ArchwingProvider extends BaseFactory {
|
|
46
|
+
static create(options?: Options): Promise<Archwings>;
|
|
47
|
+
}
|
|
48
|
+
declare class NecramechProvider extends BaseFactory {
|
|
49
|
+
static create(options?: Options): Promise<Necramechs>;
|
|
50
|
+
}
|
|
51
|
+
declare class WeaponProvider extends BaseFactory {
|
|
52
|
+
static create(options?: Options): Promise<Weapons>;
|
|
53
|
+
}
|
|
54
|
+
declare class PetProvider extends BaseFactory {
|
|
55
|
+
static create(options?: Options): Promise<Pets>;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export { ArchwingProvider, BaseFactory, FactionProvider, MissionTypeProvider, NecramechProvider, PetProvider, RailjackIntrinsicProvider, RegionProvider, SentinelProvider, WarframeProvider, WeaponProvider };
|
package/dist/server.d.ts
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { Archwings, Factions, MissionTypes, Necramechs, Pets, RailjackIntrinsics, Regions, Sentinels, Warframes, Weapons } from './index.js';
|
|
2
|
+
import { D as Data } from './internal-DDFPKiUV.js';
|
|
3
|
+
import { BaseItem } from './types/index.js';
|
|
4
|
+
import './lib/constants.js';
|
|
5
|
+
import '@tenno-companion/shared/locales';
|
|
6
|
+
|
|
7
|
+
type Options = {
|
|
8
|
+
locale?: string;
|
|
9
|
+
};
|
|
10
|
+
type HydratedDataOptions = {
|
|
11
|
+
locale?: string;
|
|
12
|
+
productCategory?: string;
|
|
13
|
+
skipSorting?: boolean;
|
|
14
|
+
};
|
|
15
|
+
declare abstract class BaseFactory {
|
|
16
|
+
protected constructor();
|
|
17
|
+
/**
|
|
18
|
+
* Static helper used by subclasses to fetch and translate data
|
|
19
|
+
*/
|
|
20
|
+
protected static getHydratedData<T extends BaseItem>(category: string, { locale, productCategory, skipSorting }?: HydratedDataOptions): Promise<Data<T>>;
|
|
21
|
+
/**
|
|
22
|
+
* Recursively scans an object/array and replaces any string
|
|
23
|
+
* starting with "/Lotus/Language" with its translation.
|
|
24
|
+
*/
|
|
25
|
+
private static translateRecursive;
|
|
26
|
+
}
|
|
27
|
+
declare class FactionProvider extends BaseFactory {
|
|
28
|
+
static create(options?: Options): Promise<Factions>;
|
|
29
|
+
}
|
|
30
|
+
declare class MissionTypeProvider extends BaseFactory {
|
|
31
|
+
static create(options?: Options): Promise<MissionTypes>;
|
|
32
|
+
}
|
|
33
|
+
declare class RailjackIntrinsicProvider extends BaseFactory {
|
|
34
|
+
static create(options?: Options): Promise<RailjackIntrinsics>;
|
|
35
|
+
}
|
|
36
|
+
declare class RegionProvider extends BaseFactory {
|
|
37
|
+
static create(options?: Options): Promise<Regions>;
|
|
38
|
+
}
|
|
39
|
+
declare class SentinelProvider extends BaseFactory {
|
|
40
|
+
static create(options?: Options): Promise<Sentinels>;
|
|
41
|
+
}
|
|
42
|
+
declare class WarframeProvider extends BaseFactory {
|
|
43
|
+
static create(options?: Options): Promise<Warframes>;
|
|
44
|
+
}
|
|
45
|
+
declare class ArchwingProvider extends BaseFactory {
|
|
46
|
+
static create(options?: Options): Promise<Archwings>;
|
|
47
|
+
}
|
|
48
|
+
declare class NecramechProvider extends BaseFactory {
|
|
49
|
+
static create(options?: Options): Promise<Necramechs>;
|
|
50
|
+
}
|
|
51
|
+
declare class WeaponProvider extends BaseFactory {
|
|
52
|
+
static create(options?: Options): Promise<Weapons>;
|
|
53
|
+
}
|
|
54
|
+
declare class PetProvider extends BaseFactory {
|
|
55
|
+
static create(options?: Options): Promise<Pets>;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export { ArchwingProvider, BaseFactory, FactionProvider, MissionTypeProvider, NecramechProvider, PetProvider, RailjackIntrinsicProvider, RegionProvider, SentinelProvider, WarframeProvider, WeaponProvider };
|