@lgriffin/esi.ts 6.1.0 → 7.4.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/CHANGELOG.md +84 -1
- package/README.md +54 -40
- package/dist/clients/AllianceClient.d.ts +2 -0
- package/dist/clients/AllianceClient.d.ts.map +1 -1
- package/dist/clients/AllianceClient.js +2 -0
- package/dist/clients/BaseEsiClient.d.ts +4 -2
- package/dist/clients/BaseEsiClient.d.ts.map +1 -1
- package/dist/clients/BaseEsiClient.js +9 -0
- package/dist/core/constants.d.ts +2 -2
- package/dist/core/constants.js +1 -1
- package/dist/core/endpoints/allianceEndpoints.d.ts +17 -14
- package/dist/core/endpoints/allianceEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/allianceEndpoints.js +3 -0
- package/dist/core/endpoints/assetEndpoints.d.ts +15 -0
- package/dist/core/endpoints/assetEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/assetEndpoints.js +1 -0
- package/dist/core/endpoints/characterEndpoints.d.ts +8 -0
- package/dist/core/endpoints/characterEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/characterEndpoints.js +1 -0
- package/dist/core/endpoints/cloneEndpoints.d.ts +17 -15
- package/dist/core/endpoints/cloneEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/cloneEndpoints.js +2 -0
- package/dist/core/endpoints/corporationEndpoints.d.ts +27 -0
- package/dist/core/endpoints/corporationEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/corporationEndpoints.js +7 -0
- package/dist/core/endpoints/createClient.d.ts +5 -1
- package/dist/core/endpoints/createClient.d.ts.map +1 -1
- package/dist/core/endpoints/createClient.js +74 -55
- package/dist/core/endpoints/dogmaEndpoints.d.ts +41 -38
- package/dist/core/endpoints/dogmaEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/dogmaEndpoints.js +3 -0
- package/dist/core/endpoints/esi-cache-ttls.generated.d.ts.map +1 -1
- package/dist/core/endpoints/esi-cache-ttls.generated.js +14 -7
- package/dist/core/endpoints/esi-scopes.generated.d.ts +1 -1
- package/dist/core/endpoints/esi-scopes.generated.d.ts.map +1 -1
- package/dist/core/endpoints/esi-scopes.generated.js +11 -3
- package/dist/core/endpoints/mailEndpoints.d.ts +13 -0
- package/dist/core/endpoints/mailEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/mailEndpoints.js +2 -0
- package/dist/core/endpoints/marketEndpoints.d.ts +20 -0
- package/dist/core/endpoints/marketEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/marketEndpoints.js +4 -0
- package/dist/core/endpoints/metaEndpoints.d.ts +2 -0
- package/dist/core/endpoints/metaEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/metaEndpoints.js +2 -0
- package/dist/core/endpoints/piEndpoints.d.ts +4 -0
- package/dist/core/endpoints/piEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/piEndpoints.js +2 -0
- package/dist/core/endpoints/routeEndpoints.d.ts +4 -0
- package/dist/core/endpoints/routeEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/routeEndpoints.js +2 -0
- package/dist/core/endpoints/searchEndpoints.d.ts +13 -0
- package/dist/core/endpoints/searchEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/searchEndpoints.js +2 -0
- package/dist/core/endpoints/skillEndpoints.d.ts +10 -0
- package/dist/core/endpoints/skillEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/skillEndpoints.js +1 -0
- package/dist/core/endpoints/universeEndpoints.d.ts +8 -0
- package/dist/core/endpoints/universeEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/universeEndpoints.js +8 -0
- package/dist/core/endpoints/walletEndpoints.d.ts +5 -0
- package/dist/core/endpoints/walletEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/walletEndpoints.js +3 -0
- package/dist/core/endpoints/warEndpoints.d.ts +1 -0
- package/dist/core/endpoints/warEndpoints.d.ts.map +1 -1
- package/dist/core/endpoints/warEndpoints.js +1 -0
- package/dist/core/util/testHelpers.js +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/schemas/character.d.ts +8 -0
- package/dist/schemas/character.d.ts.map +1 -1
- package/dist/schemas/character.js +9 -1
- package/dist/schemas/corporation.d.ts +18 -0
- package/dist/schemas/corporation.d.ts.map +1 -1
- package/dist/schemas/corporation.js +15 -1
- package/dist/schemas/mail.d.ts +13 -0
- package/dist/schemas/mail.d.ts.map +1 -1
- package/dist/schemas/mail.js +9 -1
- package/dist/schemas/market.d.ts +13 -0
- package/dist/schemas/market.d.ts.map +1 -1
- package/dist/schemas/market.js +14 -1
- package/dist/schemas/skills.d.ts +10 -0
- package/dist/schemas/skills.d.ts.map +1 -1
- package/dist/schemas/skills.js +11 -1
- package/dist/testing/TestDataFactory.d.ts +1 -0
- package/dist/testing/TestDataFactory.d.ts.map +1 -1
- package/dist/testing/TestDataFactory.js +3 -0
- package/dist/types/api-responses.d.ts +1 -0
- package/dist/types/api-responses.d.ts.map +1 -1
- package/dist/types/api-responses.js +1 -0
- package/dist/types/branded.d.ts +23 -0
- package/dist/types/branded.d.ts.map +1 -0
- package/dist/types/branded.js +6 -0
- package/dist/types/common.d.ts +10 -0
- package/dist/types/common.d.ts.map +1 -1
- package/dist/types/generated/esi-spec.generated.d.ts +655 -430
- package/dist/types/generated/esi-spec.generated.d.ts.map +1 -1
- package/dist/types/generated/esi-spec.generated.js +3 -3
- package/dist/types/generated/spec-alignment.check.d.ts +13 -0
- package/dist/types/generated/spec-alignment.check.d.ts.map +1 -0
- package/dist/types/generated/spec-alignment.check.js +14 -0
- package/dist/types/market.d.ts +2 -1
- package/dist/types/market.d.ts.map +1 -1
- package/package.json +38 -12
|
@@ -5,6 +5,7 @@ export declare const CharacterInfoSchema: z.ZodObject<{
|
|
|
5
5
|
description: z.ZodOptional<z.ZodString>;
|
|
6
6
|
corporation_id: z.ZodNumber;
|
|
7
7
|
alliance_id: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
faction_id: z.ZodOptional<z.ZodNumber>;
|
|
8
9
|
ancestry_id: z.ZodOptional<z.ZodNumber>;
|
|
9
10
|
bloodline_id: z.ZodNumber;
|
|
10
11
|
race_id: z.ZodNumber;
|
|
@@ -113,6 +114,13 @@ export declare const CharacterAffiliationSchema: z.ZodObject<{
|
|
|
113
114
|
alliance_id: z.ZodOptional<z.ZodNumber>;
|
|
114
115
|
faction_id: z.ZodOptional<z.ZodNumber>;
|
|
115
116
|
}, z.core.$loose>;
|
|
117
|
+
export declare const ContactNotificationSchema: z.ZodObject<{
|
|
118
|
+
notification_id: z.ZodNumber;
|
|
119
|
+
sender_character_id: z.ZodNumber;
|
|
120
|
+
message: z.ZodString;
|
|
121
|
+
send_date: z.ZodString;
|
|
122
|
+
standing_level: z.ZodNumber;
|
|
123
|
+
}, z.core.$loose>;
|
|
116
124
|
export declare const CharacterRoleSchema: z.ZodObject<{
|
|
117
125
|
roles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
118
126
|
roles_at_hq: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"character.d.ts","sourceRoot":"","sources":["../../src/schemas/character.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"character.d.ts","sourceRoot":"","sources":["../../src/schemas/character.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;iBAc9B,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;iBAKlC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;iBASpC,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;iBAM9B,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;iBAS1B,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;iBAKnC,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;iBAI5B,CAAC;AAEH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;iBAiBtB,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;iBAc7B,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;iBAIzB,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;iBAG/B,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;iBAKrC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;iBAMpC,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;iBAK9B,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CharacterRoleSchema = exports.CharacterAffiliationSchema = exports.CharacterTitleSchema = exports.StandingSchema = exports.NotificationSchema = exports.MedalSchema = exports.JumpFatigueSchema = exports.CorporationHistorySchema = exports.BlueprintSchema = exports.AgentResearchSchema = exports.CharacterAttributesSchema = exports.CharacterPortraitSchema = exports.CharacterInfoSchema = void 0;
|
|
3
|
+
exports.CharacterRoleSchema = exports.ContactNotificationSchema = exports.CharacterAffiliationSchema = exports.CharacterTitleSchema = exports.StandingSchema = exports.NotificationSchema = exports.MedalSchema = exports.JumpFatigueSchema = exports.CorporationHistorySchema = exports.BlueprintSchema = exports.AgentResearchSchema = exports.CharacterAttributesSchema = exports.CharacterPortraitSchema = exports.CharacterInfoSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.CharacterInfoSchema = zod_1.z.looseObject({
|
|
6
6
|
character_id: zod_1.z.number().optional(),
|
|
@@ -8,6 +8,7 @@ exports.CharacterInfoSchema = zod_1.z.looseObject({
|
|
|
8
8
|
description: zod_1.z.string().optional(),
|
|
9
9
|
corporation_id: zod_1.z.number(),
|
|
10
10
|
alliance_id: zod_1.z.number().optional(),
|
|
11
|
+
faction_id: zod_1.z.number().optional(),
|
|
11
12
|
ancestry_id: zod_1.z.number().optional(),
|
|
12
13
|
bloodline_id: zod_1.z.number(),
|
|
13
14
|
race_id: zod_1.z.number(),
|
|
@@ -106,6 +107,13 @@ exports.CharacterAffiliationSchema = zod_1.z.looseObject({
|
|
|
106
107
|
alliance_id: zod_1.z.number().optional(),
|
|
107
108
|
faction_id: zod_1.z.number().optional(),
|
|
108
109
|
});
|
|
110
|
+
exports.ContactNotificationSchema = zod_1.z.looseObject({
|
|
111
|
+
notification_id: zod_1.z.number(),
|
|
112
|
+
sender_character_id: zod_1.z.number(),
|
|
113
|
+
message: zod_1.z.string(),
|
|
114
|
+
send_date: zod_1.z.string(),
|
|
115
|
+
standing_level: zod_1.z.number(),
|
|
116
|
+
});
|
|
109
117
|
exports.CharacterRoleSchema = zod_1.z.looseObject({
|
|
110
118
|
roles: zod_1.z.array(zod_1.z.string()).optional(),
|
|
111
119
|
roles_at_hq: zod_1.z.array(zod_1.z.string()).optional(),
|
|
@@ -173,6 +173,24 @@ export declare const CorporationTitleSchema: z.ZodObject<{
|
|
|
173
173
|
roles_at_other: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
174
174
|
grantable_roles_at_other: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
175
175
|
}, z.core.$loose>;
|
|
176
|
+
export declare const CorporationIconSchema: z.ZodObject<{
|
|
177
|
+
px64x64: z.ZodOptional<z.ZodString>;
|
|
178
|
+
px128x128: z.ZodOptional<z.ZodString>;
|
|
179
|
+
px256x256: z.ZodOptional<z.ZodString>;
|
|
180
|
+
}, z.core.$loose>;
|
|
181
|
+
export declare const CorporationStandingSchema: z.ZodObject<{
|
|
182
|
+
from_id: z.ZodNumber;
|
|
183
|
+
from_type: z.ZodEnum<{
|
|
184
|
+
faction: "faction";
|
|
185
|
+
agent: "agent";
|
|
186
|
+
npc_corp: "npc_corp";
|
|
187
|
+
}>;
|
|
188
|
+
standing: z.ZodNumber;
|
|
189
|
+
}, z.core.$loose>;
|
|
190
|
+
export declare const CorporationWalletDivisionSchema: z.ZodObject<{
|
|
191
|
+
division: z.ZodNumber;
|
|
192
|
+
balance: z.ZodNumber;
|
|
193
|
+
}, z.core.$loose>;
|
|
176
194
|
export declare const ContainerLogSchema: z.ZodObject<{
|
|
177
195
|
logged_at: z.ZodString;
|
|
178
196
|
container_id: z.ZodNumber;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"corporation.d.ts","sourceRoot":"","sources":["../../src/schemas/corporation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;iBAgBhC,CAAC;AAEH,eAAO,MAAM,gCAAgC;;;;;iBAK3C,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;iBAMjC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;iBASpC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;iBAiBrC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;iBAIpC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;iBASvC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;iBAGvC,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;;;;;;;iBAS1C,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;iBAUtC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;iBAOvC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;iBAIvC,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;iBAsB1C,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;iBAqBrC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;iBAWjC,CAAC;AAEH,eAAO,MAAM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exports, "__esModule", { value: true });
|
|
3
|
-
exports.ContainerLogSchema = exports.CorporationTitleSchema = exports.CorporationStructureSchema = exports.CorporationStarbaseDetailSchema = exports.CorporationShareholderSchema = exports.CorporationRoleHistorySchema = exports.CorporationMemberRoleSchema = exports.CorporationMemberTrackingSchema = exports.CorporationMemberTitleSchema = exports.CorporationIssuedMedalSchema = exports.CorporationFacilitySchema = exports.CorporationDivisionsSchema = exports.CorporationStarbaseSchema = exports.CorporationMedalSchema = exports.CorporationAllianceHistorySchema = exports.CorporationInfoSchema = void 0;
|
|
3
|
+
exports.ContainerLogSchema = exports.CorporationWalletDivisionSchema = exports.CorporationStandingSchema = exports.CorporationIconSchema = exports.CorporationTitleSchema = exports.CorporationStructureSchema = exports.CorporationStarbaseDetailSchema = exports.CorporationShareholderSchema = exports.CorporationRoleHistorySchema = exports.CorporationMemberRoleSchema = exports.CorporationMemberTrackingSchema = exports.CorporationMemberTitleSchema = exports.CorporationIssuedMedalSchema = exports.CorporationFacilitySchema = exports.CorporationDivisionsSchema = exports.CorporationStarbaseSchema = exports.CorporationMedalSchema = exports.CorporationAllianceHistorySchema = exports.CorporationInfoSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.CorporationInfoSchema = zod_1.z.looseObject({
|
|
6
6
|
corporation_id: zod_1.z.number().optional(),
|
|
@@ -162,6 +162,20 @@ exports.CorporationTitleSchema = zod_1.z.looseObject({
|
|
|
162
162
|
roles_at_other: zod_1.z.array(zod_1.z.string()).optional(),
|
|
163
163
|
grantable_roles_at_other: zod_1.z.array(zod_1.z.string()).optional(),
|
|
164
164
|
});
|
|
165
|
+
exports.CorporationIconSchema = zod_1.z.looseObject({
|
|
166
|
+
px64x64: zod_1.z.string().optional(),
|
|
167
|
+
px128x128: zod_1.z.string().optional(),
|
|
168
|
+
px256x256: zod_1.z.string().optional(),
|
|
169
|
+
});
|
|
170
|
+
exports.CorporationStandingSchema = zod_1.z.looseObject({
|
|
171
|
+
from_id: zod_1.z.number(),
|
|
172
|
+
from_type: zod_1.z.enum(['agent', 'npc_corp', 'faction']),
|
|
173
|
+
standing: zod_1.z.number(),
|
|
174
|
+
});
|
|
175
|
+
exports.CorporationWalletDivisionSchema = zod_1.z.looseObject({
|
|
176
|
+
division: zod_1.z.number(),
|
|
177
|
+
balance: zod_1.z.number(),
|
|
178
|
+
});
|
|
165
179
|
exports.ContainerLogSchema = zod_1.z.looseObject({
|
|
166
180
|
logged_at: zod_1.z.string(),
|
|
167
181
|
container_id: zod_1.z.number(),
|
package/dist/schemas/mail.d.ts
CHANGED
|
@@ -23,4 +23,17 @@ export declare const MailLabelSchema: z.ZodObject<{
|
|
|
23
23
|
color: z.ZodOptional<z.ZodString>;
|
|
24
24
|
unread_count: z.ZodOptional<z.ZodNumber>;
|
|
25
25
|
}, z.core.$loose>;
|
|
26
|
+
export declare const MailLabelsResponseSchema: z.ZodObject<{
|
|
27
|
+
labels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
28
|
+
label_id: z.ZodNumber;
|
|
29
|
+
name: z.ZodString;
|
|
30
|
+
color: z.ZodOptional<z.ZodString>;
|
|
31
|
+
unread_count: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
}, z.core.$loose>>>;
|
|
33
|
+
total_unread_count: z.ZodOptional<z.ZodNumber>;
|
|
34
|
+
}, z.core.$loose>;
|
|
35
|
+
export declare const MailingListSchema: z.ZodObject<{
|
|
36
|
+
mailing_list_id: z.ZodNumber;
|
|
37
|
+
name: z.ZodString;
|
|
38
|
+
}, z.core.$loose>;
|
|
26
39
|
//# sourceMappingURL=mail.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mail.d.ts","sourceRoot":"","sources":["../../src/schemas/mail.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;iBAqB5B,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;iBAK1B,CAAC"}
|
|
1
|
+
{"version":3,"file":"mail.d.ts","sourceRoot":"","sources":["../../src/schemas/mail.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;iBAqB5B,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;iBAK1B,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;iBAGnC,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;iBAG5B,CAAC"}
|
package/dist/schemas/mail.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MailLabelSchema = exports.MailMessageSchema = void 0;
|
|
3
|
+
exports.MailingListSchema = exports.MailLabelsResponseSchema = exports.MailLabelSchema = exports.MailMessageSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.MailMessageSchema = zod_1.z.looseObject({
|
|
6
6
|
mail_id: zod_1.z.number().optional(),
|
|
@@ -28,3 +28,11 @@ exports.MailLabelSchema = zod_1.z.looseObject({
|
|
|
28
28
|
color: zod_1.z.string().optional(),
|
|
29
29
|
unread_count: zod_1.z.number().optional(),
|
|
30
30
|
});
|
|
31
|
+
exports.MailLabelsResponseSchema = zod_1.z.looseObject({
|
|
32
|
+
labels: zod_1.z.array(exports.MailLabelSchema).optional(),
|
|
33
|
+
total_unread_count: zod_1.z.number().optional(),
|
|
34
|
+
});
|
|
35
|
+
exports.MailingListSchema = zod_1.z.looseObject({
|
|
36
|
+
mailing_list_id: zod_1.z.number(),
|
|
37
|
+
name: zod_1.z.string(),
|
|
38
|
+
});
|
package/dist/schemas/market.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export declare const MarketOrderSchema: z.ZodObject<{
|
|
|
8
8
|
min_volume: z.ZodNumber;
|
|
9
9
|
price: z.ZodNumber;
|
|
10
10
|
is_buy_order: z.ZodBoolean;
|
|
11
|
+
system_id: z.ZodNumber;
|
|
11
12
|
duration: z.ZodNumber;
|
|
12
13
|
issued: z.ZodString;
|
|
13
14
|
range: z.ZodString;
|
|
@@ -26,4 +27,16 @@ export declare const MarketHistorySchema: z.ZodObject<{
|
|
|
26
27
|
average: z.ZodNumber;
|
|
27
28
|
lowest: z.ZodNumber;
|
|
28
29
|
}, z.core.$loose>;
|
|
30
|
+
export declare const MarketGroupSchema: z.ZodObject<{
|
|
31
|
+
market_group_id: z.ZodNumber;
|
|
32
|
+
name: z.ZodString;
|
|
33
|
+
description: z.ZodString;
|
|
34
|
+
types: z.ZodArray<z.ZodNumber>;
|
|
35
|
+
parent_group_id: z.ZodOptional<z.ZodNumber>;
|
|
36
|
+
}, z.core.$loose>;
|
|
37
|
+
export declare const MarketPriceSchema: z.ZodObject<{
|
|
38
|
+
type_id: z.ZodNumber;
|
|
39
|
+
average_price: z.ZodOptional<z.ZodNumber>;
|
|
40
|
+
adjusted_price: z.ZodOptional<z.ZodNumber>;
|
|
41
|
+
}, z.core.$loose>;
|
|
29
42
|
//# sourceMappingURL=market.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"market.d.ts","sourceRoot":"","sources":["../../src/schemas/market.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"market.d.ts","sourceRoot":"","sources":["../../src/schemas/market.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;iBAc5B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;iBAO9B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;iBAM5B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;iBAI5B,CAAC"}
|
package/dist/schemas/market.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MarketHistorySchema = exports.MarketOrderSchema = void 0;
|
|
3
|
+
exports.MarketPriceSchema = exports.MarketGroupSchema = exports.MarketHistorySchema = exports.MarketOrderSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.MarketOrderSchema = zod_1.z.looseObject({
|
|
6
6
|
order_id: zod_1.z.number(),
|
|
@@ -11,6 +11,7 @@ exports.MarketOrderSchema = zod_1.z.looseObject({
|
|
|
11
11
|
min_volume: zod_1.z.number(),
|
|
12
12
|
price: zod_1.z.number(),
|
|
13
13
|
is_buy_order: zod_1.z.boolean(),
|
|
14
|
+
system_id: zod_1.z.number(),
|
|
14
15
|
duration: zod_1.z.number(),
|
|
15
16
|
issued: zod_1.z.string(),
|
|
16
17
|
range: zod_1.z.string(),
|
|
@@ -24,3 +25,15 @@ exports.MarketHistorySchema = zod_1.z.looseObject({
|
|
|
24
25
|
average: zod_1.z.number(),
|
|
25
26
|
lowest: zod_1.z.number(),
|
|
26
27
|
});
|
|
28
|
+
exports.MarketGroupSchema = zod_1.z.looseObject({
|
|
29
|
+
market_group_id: zod_1.z.number(),
|
|
30
|
+
name: zod_1.z.string(),
|
|
31
|
+
description: zod_1.z.string(),
|
|
32
|
+
types: zod_1.z.array(zod_1.z.number()),
|
|
33
|
+
parent_group_id: zod_1.z.number().optional(),
|
|
34
|
+
});
|
|
35
|
+
exports.MarketPriceSchema = zod_1.z.looseObject({
|
|
36
|
+
type_id: zod_1.z.number(),
|
|
37
|
+
average_price: zod_1.z.number().optional(),
|
|
38
|
+
adjusted_price: zod_1.z.number().optional(),
|
|
39
|
+
});
|
package/dist/schemas/skills.d.ts
CHANGED
|
@@ -5,6 +5,16 @@ export declare const CharacterSkillSchema: z.ZodObject<{
|
|
|
5
5
|
trained_skill_level: z.ZodNumber;
|
|
6
6
|
active_skill_level: z.ZodNumber;
|
|
7
7
|
}, z.core.$loose>;
|
|
8
|
+
export declare const CharacterSkillsResponseSchema: z.ZodObject<{
|
|
9
|
+
skills: z.ZodArray<z.ZodObject<{
|
|
10
|
+
skill_id: z.ZodNumber;
|
|
11
|
+
skillpoints_in_skill: z.ZodNumber;
|
|
12
|
+
trained_skill_level: z.ZodNumber;
|
|
13
|
+
active_skill_level: z.ZodNumber;
|
|
14
|
+
}, z.core.$loose>>;
|
|
15
|
+
total_sp: z.ZodNumber;
|
|
16
|
+
unallocated_sp: z.ZodOptional<z.ZodNumber>;
|
|
17
|
+
}, z.core.$loose>;
|
|
8
18
|
export declare const SkillQueueSchema: z.ZodObject<{
|
|
9
19
|
skill_id: z.ZodNumber;
|
|
10
20
|
finished_level: z.ZodNumber;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skills.d.ts","sourceRoot":"","sources":["../../src/schemas/skills.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,oBAAoB;;;;;iBAK/B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;iBAS3B,CAAC"}
|
|
1
|
+
{"version":3,"file":"skills.d.ts","sourceRoot":"","sources":["../../src/schemas/skills.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,oBAAoB;;;;;iBAK/B,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;iBAWxC,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;iBAS3B,CAAC"}
|
package/dist/schemas/skills.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SkillQueueSchema = exports.CharacterSkillSchema = void 0;
|
|
3
|
+
exports.SkillQueueSchema = exports.CharacterSkillsResponseSchema = exports.CharacterSkillSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.CharacterSkillSchema = zod_1.z.looseObject({
|
|
6
6
|
skill_id: zod_1.z.number(),
|
|
@@ -8,6 +8,16 @@ exports.CharacterSkillSchema = zod_1.z.looseObject({
|
|
|
8
8
|
trained_skill_level: zod_1.z.number(),
|
|
9
9
|
active_skill_level: zod_1.z.number(),
|
|
10
10
|
});
|
|
11
|
+
exports.CharacterSkillsResponseSchema = zod_1.z.looseObject({
|
|
12
|
+
skills: zod_1.z.array(zod_1.z.looseObject({
|
|
13
|
+
skill_id: zod_1.z.number(),
|
|
14
|
+
skillpoints_in_skill: zod_1.z.number(),
|
|
15
|
+
trained_skill_level: zod_1.z.number(),
|
|
16
|
+
active_skill_level: zod_1.z.number(),
|
|
17
|
+
})),
|
|
18
|
+
total_sp: zod_1.z.number(),
|
|
19
|
+
unallocated_sp: zod_1.z.number().optional(),
|
|
20
|
+
});
|
|
11
21
|
exports.SkillQueueSchema = zod_1.z.looseObject({
|
|
12
22
|
skill_id: zod_1.z.number(),
|
|
13
23
|
finished_level: zod_1.z.number(),
|
|
@@ -120,6 +120,7 @@ export declare class TestDataFactory {
|
|
|
120
120
|
character_id?: number | undefined;
|
|
121
121
|
description?: string | undefined;
|
|
122
122
|
alliance_id?: number | undefined;
|
|
123
|
+
faction_id?: number | undefined;
|
|
123
124
|
ancestry_id?: number | undefined;
|
|
124
125
|
security_status?: number | undefined;
|
|
125
126
|
title?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TestDataFactory.d.ts","sourceRoot":"","sources":["../../src/testing/TestDataFactory.ts"],"names":[],"mappings":"AACA,OAAO,EACL,YAAY,EACZ,aAAa,EACb,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,cAAc,EACd,WAAW,EACX,iBAAiB,EACjB,QAAQ,EACR,iBAAiB,EACjB,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O,CAAC,EAAE,MAAM,GAAG,QAAQ;IAkBlE,MAAM,CAAC,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;IAoF1B,MAAM,CAAC,yBAAyB,CAC9B,IAAI,GAAE,OAAO,GAAG,QAAQ,GAAG,OAAkB;mBAW1B,YAAY,EAAE;oBACb,aAAa,EAAE;sBACb,eAAe,EAAE;;IAqDzC,MAAM,CAAC,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6C/B"}
|
|
@@ -154,6 +154,7 @@ class TestDataFactory {
|
|
|
154
154
|
min_volume: 1,
|
|
155
155
|
price: 4.5,
|
|
156
156
|
is_buy_order: true,
|
|
157
|
+
system_id: 30000142,
|
|
157
158
|
duration: 90,
|
|
158
159
|
issued: '2024-01-15T12:00:00Z',
|
|
159
160
|
state: 'open',
|
|
@@ -172,6 +173,7 @@ class TestDataFactory {
|
|
|
172
173
|
min_volume: 1,
|
|
173
174
|
price: 4.5,
|
|
174
175
|
is_buy_order: true,
|
|
176
|
+
system_id: 30000142,
|
|
175
177
|
duration: 90,
|
|
176
178
|
issued: '2024-01-10T12:00:00Z',
|
|
177
179
|
state: 'closed',
|
|
@@ -488,6 +490,7 @@ class TestDataFactory {
|
|
|
488
490
|
min_volume: 1,
|
|
489
491
|
price: 5.5,
|
|
490
492
|
is_buy_order: false,
|
|
493
|
+
system_id: 30000142,
|
|
491
494
|
duration: 90,
|
|
492
495
|
issued: '2023-12-01T12:00:00Z',
|
|
493
496
|
range: 'region',
|
|
@@ -30,5 +30,6 @@ export * from './freelance-jobs';
|
|
|
30
30
|
export * from './skyhooks';
|
|
31
31
|
export * from './mercenary';
|
|
32
32
|
export * from './access-lists';
|
|
33
|
+
export * from './branded';
|
|
33
34
|
export * as EsiSpec from './generated/esi-spec.generated';
|
|
34
35
|
//# sourceMappingURL=api-responses.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-responses.d.ts","sourceRoot":"","sources":["../../src/types/api-responses.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,MAAM,CAAC;AACrB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,OAAO,KAAK,OAAO,MAAM,gCAAgC,CAAC"}
|
|
1
|
+
{"version":3,"file":"api-responses.d.ts","sourceRoot":"","sources":["../../src/types/api-responses.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,MAAM,CAAC;AACrB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,OAAO,KAAK,OAAO,MAAM,gCAAgC,CAAC"}
|
|
@@ -69,4 +69,5 @@ __exportStar(require("./freelance-jobs"), exports);
|
|
|
69
69
|
__exportStar(require("./skyhooks"), exports);
|
|
70
70
|
__exportStar(require("./mercenary"), exports);
|
|
71
71
|
__exportStar(require("./access-lists"), exports);
|
|
72
|
+
__exportStar(require("./branded"), exports);
|
|
72
73
|
exports.EsiSpec = __importStar(require("./generated/esi-spec.generated"));
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
declare const __brand: unique symbol;
|
|
2
|
+
type Brand<T, B extends string> = T & {
|
|
3
|
+
readonly [__brand]: B;
|
|
4
|
+
};
|
|
5
|
+
export type CharacterId = Brand<number, 'CharacterId'>;
|
|
6
|
+
export type CorporationId = Brand<number, 'CorporationId'>;
|
|
7
|
+
export type AllianceId = Brand<number, 'AllianceId'>;
|
|
8
|
+
export type TypeId = Brand<number, 'TypeId'>;
|
|
9
|
+
export type RegionId = Brand<number, 'RegionId'>;
|
|
10
|
+
export type SystemId = Brand<number, 'SystemId'>;
|
|
11
|
+
export type StationId = Brand<number, 'StationId'>;
|
|
12
|
+
export type StructureId = Brand<number, 'StructureId'>;
|
|
13
|
+
export type OrderId = Brand<number, 'OrderId'>;
|
|
14
|
+
export type ContractId = Brand<number, 'ContractId'>;
|
|
15
|
+
export type KillmailId = Brand<number, 'KillmailId'>;
|
|
16
|
+
export type FactionId = Brand<number, 'FactionId'>;
|
|
17
|
+
export type CorporationAllianceId = Brand<number, 'CorporationAllianceId'>;
|
|
18
|
+
export type FleetId = Brand<number, 'FleetId'>;
|
|
19
|
+
export type PlanetId = Brand<number, 'PlanetId'>;
|
|
20
|
+
export type WarId = Brand<number, 'WarId'>;
|
|
21
|
+
export declare function brand<T>(value: number): T;
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=branded.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"branded.d.ts","sourceRoot":"","sources":["../../src/types/branded.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,OAAO,EAAE,OAAO,MAAM,CAAC;AAErC,KAAK,KAAK,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,IAAI,CAAC,GAAG;IAAE,QAAQ,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAA;CAAE,CAAC;AAEhE,MAAM,MAAM,WAAW,GAAG,KAAK,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;AACvD,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;AAC3D,MAAM,MAAM,UAAU,GAAG,KAAK,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;AACrD,MAAM,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;AAC7C,MAAM,MAAM,QAAQ,GAAG,KAAK,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;AACjD,MAAM,MAAM,QAAQ,GAAG,KAAK,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;AACjD,MAAM,MAAM,SAAS,GAAG,KAAK,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;AACnD,MAAM,MAAM,WAAW,GAAG,KAAK,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;AACvD,MAAM,MAAM,OAAO,GAAG,KAAK,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;AAC/C,MAAM,MAAM,UAAU,GAAG,KAAK,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;AACrD,MAAM,MAAM,UAAU,GAAG,KAAK,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;AACrD,MAAM,MAAM,SAAS,GAAG,KAAK,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;AACnD,MAAM,MAAM,qBAAqB,GAAG,KAAK,CAAC,MAAM,EAAE,uBAAuB,CAAC,CAAC;AAC3E,MAAM,MAAM,OAAO,GAAG,KAAK,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;AAC/C,MAAM,MAAM,QAAQ,GAAG,KAAK,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;AACjD,MAAM,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE3C,wBAAgB,KAAK,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC,CAEzC"}
|
package/dist/types/common.d.ts
CHANGED
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { RateLimitMetaSchema, EsiResponseMetaSchema } from '../schemas/common';
|
|
3
|
+
import type { EsiError } from '../core/util/error';
|
|
3
4
|
export type RateLimitMeta = z.infer<typeof RateLimitMetaSchema>;
|
|
4
5
|
export type EsiResponseMeta = z.infer<typeof EsiResponseMetaSchema>;
|
|
5
6
|
export interface EsiResponse<T> {
|
|
6
7
|
data: T;
|
|
7
8
|
meta: EsiResponseMeta;
|
|
8
9
|
}
|
|
10
|
+
export type EsiResult<T> = {
|
|
11
|
+
ok: true;
|
|
12
|
+
data: T;
|
|
13
|
+
meta: EsiResponseMeta;
|
|
14
|
+
} | {
|
|
15
|
+
ok: false;
|
|
16
|
+
error: EsiError;
|
|
17
|
+
meta?: EsiResponseMeta;
|
|
18
|
+
};
|
|
9
19
|
//# sourceMappingURL=common.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/types/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/types/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC/E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEnD,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,MAAM,WAAW,WAAW,CAAC,CAAC;IAC5B,IAAI,EAAE,CAAC,CAAC;IACR,IAAI,EAAE,eAAe,CAAC;CACvB;AAED,MAAM,MAAM,SAAS,CAAC,CAAC,IACnB;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,IAAI,EAAE,CAAC,CAAC;IAAC,IAAI,EAAE,eAAe,CAAA;CAAE,GAC5C;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,QAAQ,CAAC;IAAC,IAAI,CAAC,EAAE,eAAe,CAAA;CAAE,CAAC"}
|