@lgriffin/esi.ts 9.6.0 → 9.7.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 +417 -388
- package/LICENSE +26 -26
- package/README.md +1037 -1030
- package/dist/clients/AllianceClient.d.ts +2 -0
- package/dist/clients/AllianceClient.d.ts.map +1 -1
- package/dist/clients/AssetsClient.d.ts +2 -0
- package/dist/clients/AssetsClient.d.ts.map +1 -1
- package/dist/clients/BaseEsiClient.d.ts +1 -0
- package/dist/clients/BaseEsiClient.d.ts.map +1 -1
- package/dist/clients/CalendarClient.d.ts +2 -0
- package/dist/clients/CalendarClient.d.ts.map +1 -1
- package/dist/clients/CharacterClient.d.ts +8 -0
- package/dist/clients/CharacterClient.d.ts.map +1 -1
- package/dist/clients/ClonesClient.d.ts +1 -0
- package/dist/clients/ClonesClient.d.ts.map +1 -1
- package/dist/clients/ContactsClient.d.ts +6 -0
- package/dist/clients/ContactsClient.d.ts.map +1 -1
- package/dist/clients/ContractsClient.d.ts +3 -0
- package/dist/clients/ContractsClient.d.ts.map +1 -1
- package/dist/clients/CorporationsClient.d.ts +17 -0
- package/dist/clients/CorporationsClient.d.ts.map +1 -1
- package/dist/clients/FittingsClient.d.ts +1 -0
- package/dist/clients/FittingsClient.d.ts.map +1 -1
- package/dist/clients/FleetClient.d.ts +2 -0
- package/dist/clients/FleetClient.d.ts.map +1 -1
- package/dist/clients/IndustryClient.d.ts +8 -0
- package/dist/clients/IndustryClient.d.ts.map +1 -1
- package/dist/clients/KillmailsClient.d.ts +2 -0
- package/dist/clients/KillmailsClient.d.ts.map +1 -1
- package/dist/clients/LoyaltyClient.d.ts +2 -0
- package/dist/clients/LoyaltyClient.d.ts.map +1 -1
- package/dist/clients/MailClient.d.ts +5 -0
- package/dist/clients/MailClient.d.ts.map +1 -1
- package/dist/clients/MarketClient.d.ts +6 -0
- package/dist/clients/MarketClient.d.ts.map +1 -1
- package/dist/clients/PiClient.d.ts +2 -0
- package/dist/clients/PiClient.d.ts.map +1 -1
- package/dist/clients/SkillsClient.d.ts +1 -0
- package/dist/clients/SkillsClient.d.ts.map +1 -1
- package/dist/clients/WalletClient.d.ts +4 -0
- package/dist/clients/WalletClient.d.ts.map +1 -1
- package/dist/clients/WarsClient.d.ts +2 -0
- package/dist/clients/WarsClient.d.ts.map +1 -1
- package/dist/core/ApiClient.d.ts +4 -0
- package/dist/core/ApiClient.d.ts.map +1 -1
- package/dist/core/ApiClientBuilder.d.ts +3 -1
- package/dist/core/ApiClientBuilder.d.ts.map +1 -1
- package/dist/core/constants.d.ts +2 -2
- package/dist/core/endpoints/EndpointDefinition.d.ts +2 -2
- package/dist/core/endpoints/EndpointDefinition.d.ts.map +1 -1
- package/dist/core/endpoints/createClient.d.ts +2 -2
- package/dist/core/endpoints/createClient.d.ts.map +1 -1
- package/dist/core/logger/NoopLogger.d.ts +3 -0
- package/dist/core/logger/NoopLogger.d.ts.map +1 -0
- package/dist/core/pagination/AsyncPaginationIterator.d.ts +1 -0
- package/dist/core/pagination/AsyncPaginationIterator.d.ts.map +1 -1
- package/dist/core/rateLimiter/RateLimiter.d.ts +6 -0
- package/dist/core/rateLimiter/RateLimiter.d.ts.map +1 -1
- package/dist/core/requestPipeline/headers.d.ts.map +1 -1
- package/dist/core/requestPipeline/statusHandling.d.ts.map +1 -1
- package/dist/errors.js.map +1 -1
- package/dist/errors.mjs.map +1 -1
- package/dist/index.d.ts +4 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +644 -27
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +642 -27
- package/dist/index.mjs.map +1 -1
- package/dist/schemas/common.d.ts +11 -1
- package/dist/schemas/common.d.ts.map +1 -1
- package/dist/schemas/index.js +6 -1
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/index.mjs +6 -1
- package/dist/schemas/index.mjs.map +1 -1
- package/dist/sde/index.js.map +1 -1
- package/dist/sde/index.mjs.map +1 -1
- package/dist/sde/memory.js.map +1 -1
- package/dist/sde/memory.mjs.map +1 -1
- package/dist/testing/index.js.map +1 -1
- package/dist/testing/index.mjs.map +1 -1
- package/dist/types/generated/esi-spec.generated.d.ts +12 -12
- package/dist/types/generated/esi-spec.generated.d.ts.map +1 -1
- package/package.json +303 -289
package/dist/schemas/common.d.ts
CHANGED
|
@@ -33,8 +33,13 @@ export declare const EsiResponseMetaSchema: z.ZodObject<{
|
|
|
33
33
|
group: z.ZodNullable<z.ZodString>;
|
|
34
34
|
}, z.core.$strip>>;
|
|
35
35
|
responseTimeMs: z.ZodOptional<z.ZodNumber>;
|
|
36
|
+
etag: z.ZodOptional<z.ZodString>;
|
|
37
|
+
pages: z.ZodOptional<z.ZodNumber>;
|
|
38
|
+
expires: z.ZodOptional<z.ZodString>;
|
|
39
|
+
errorLimitRemain: z.ZodOptional<z.ZodNumber>;
|
|
40
|
+
errorLimitReset: z.ZodOptional<z.ZodNumber>;
|
|
36
41
|
}, z.core.$loose>;
|
|
37
|
-
export declare function esiResponse<T extends z.
|
|
42
|
+
export declare function esiResponse<T extends z.ZodType>(dataSchema: T): z.ZodObject<{
|
|
38
43
|
data: T;
|
|
39
44
|
meta: z.ZodObject<{
|
|
40
45
|
headers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
@@ -59,6 +64,11 @@ export declare function esiResponse<T extends z.ZodTypeAny>(dataSchema: T): z.Zo
|
|
|
59
64
|
group: z.ZodNullable<z.ZodString>;
|
|
60
65
|
}, z.core.$strip>>;
|
|
61
66
|
responseTimeMs: z.ZodOptional<z.ZodNumber>;
|
|
67
|
+
etag: z.ZodOptional<z.ZodString>;
|
|
68
|
+
pages: z.ZodOptional<z.ZodNumber>;
|
|
69
|
+
expires: z.ZodOptional<z.ZodString>;
|
|
70
|
+
errorLimitRemain: z.ZodOptional<z.ZodNumber>;
|
|
71
|
+
errorLimitReset: z.ZodOptional<z.ZodNumber>;
|
|
62
72
|
}, z.core.$loose>;
|
|
63
73
|
}, z.core.$strip>;
|
|
64
74
|
//# sourceMappingURL=common.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/schemas/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,cAAc;;;;iBAIzB,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;iBAK9B,CAAC;AAEH,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/schemas/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,cAAc;;;;iBAIzB,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;iBAK9B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAqBhC,CAAC;AAEH,wBAAgB,WAAW,CAAC,CAAC,SAAS,CAAC,CAAC,OAAO,EAAE,UAAU,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAK7D"}
|
package/dist/schemas/index.js
CHANGED
|
@@ -251,7 +251,12 @@ var EsiResponseMetaSchema = import_zod2.z.looseObject({
|
|
|
251
251
|
date: import_zod2.z.string().optional(),
|
|
252
252
|
contentLanguage: import_zod2.z.string().optional(),
|
|
253
253
|
rateLimit: RateLimitMetaSchema.optional(),
|
|
254
|
-
responseTimeMs: import_zod2.z.number().optional()
|
|
254
|
+
responseTimeMs: import_zod2.z.number().optional(),
|
|
255
|
+
etag: import_zod2.z.string().optional(),
|
|
256
|
+
pages: import_zod2.z.number().optional(),
|
|
257
|
+
expires: import_zod2.z.string().optional(),
|
|
258
|
+
errorLimitRemain: import_zod2.z.number().optional(),
|
|
259
|
+
errorLimitReset: import_zod2.z.number().optional()
|
|
255
260
|
});
|
|
256
261
|
function esiResponse(dataSchema) {
|
|
257
262
|
return import_zod2.z.object({
|