@trash-kit/core 1.0.0 → 1.0.1
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/{api-BS3JQgsq.d.ts → api-CdNJcCit.d.ts} +3 -1
- package/dist/api-CdNJcCit.d.ts.map +1 -0
- package/dist/{api-Ce9MBzK9.d.mts → api-DL6n2zzo.d.mts} +3 -1
- package/dist/api-DL6n2zzo.d.mts.map +1 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/types/api.d.mts +1 -1
- package/dist/types/api.d.ts +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/api-BS3JQgsq.d.ts.map +0 -1
- package/dist/api-Ce9MBzK9.d.mts.map +0 -1
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
type APIHeaders = {
|
|
3
3
|
token: string;
|
|
4
4
|
locale?: string;
|
|
5
|
+
[key: string]: string | undefined;
|
|
5
6
|
};
|
|
6
7
|
type PublicAPIHeaders = Omit<APIHeaders, 'token'>;
|
|
7
8
|
type APIResponse<T = any> = {
|
|
@@ -12,6 +13,7 @@ type APIResponse<T = any> = {
|
|
|
12
13
|
type ServiceResponse<T = undefined | null> = {
|
|
13
14
|
error: false;
|
|
14
15
|
message: string;
|
|
16
|
+
status: never;
|
|
15
17
|
data: T;
|
|
16
18
|
} | {
|
|
17
19
|
error: true;
|
|
@@ -21,4 +23,4 @@ type ServiceResponse<T = undefined | null> = {
|
|
|
21
23
|
};
|
|
22
24
|
//#endregion
|
|
23
25
|
export { ServiceResponse as i, APIResponse as n, PublicAPIHeaders as r, APIHeaders as t };
|
|
24
|
-
//# sourceMappingURL=api-
|
|
26
|
+
//# sourceMappingURL=api-CdNJcCit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-CdNJcCit.d.ts","names":[],"sources":["../src/types/api.ts"],"sourcesContent":[],"mappings":";KAAY,UAAA;EAAA,KAAA,EAAA,MAAU;EAMV,MAAA,CAAA,EAAA,MAAA;EAEA,CAAA,GAAA,EAAA,MAAA,CAAA,EAAW,MAAA,GAAA,SAGd;AAGT,CAAA;KARY,gBAAA,GAAmB,KAAK;KAExB;;;QAGJ;;KAGI;;;;QAKA"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
type APIHeaders = {
|
|
3
3
|
token: string;
|
|
4
4
|
locale?: string;
|
|
5
|
+
[key: string]: string | undefined;
|
|
5
6
|
};
|
|
6
7
|
type PublicAPIHeaders = Omit<APIHeaders, 'token'>;
|
|
7
8
|
type APIResponse<T = any> = {
|
|
@@ -12,6 +13,7 @@ type APIResponse<T = any> = {
|
|
|
12
13
|
type ServiceResponse<T = undefined | null> = {
|
|
13
14
|
error: false;
|
|
14
15
|
message: string;
|
|
16
|
+
status: never;
|
|
15
17
|
data: T;
|
|
16
18
|
} | {
|
|
17
19
|
error: true;
|
|
@@ -21,4 +23,4 @@ type ServiceResponse<T = undefined | null> = {
|
|
|
21
23
|
};
|
|
22
24
|
//#endregion
|
|
23
25
|
export { ServiceResponse as i, APIResponse as n, PublicAPIHeaders as r, APIHeaders as t };
|
|
24
|
-
//# sourceMappingURL=api-
|
|
26
|
+
//# sourceMappingURL=api-DL6n2zzo.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-DL6n2zzo.d.mts","names":[],"sources":["../src/types/api.ts"],"sourcesContent":[],"mappings":";KAAY,UAAA;EAAA,KAAA,EAAA,MAAU;EAMV,MAAA,CAAA,EAAA,MAAA;EAEA,CAAA,GAAA,EAAA,MAAA,CAAA,EAAW,MAAA,GAAA,SAGd;AAGT,CAAA;KARY,gBAAA,GAAmB,KAAK;KAExB;;;QAGJ;;KAGI;;;;QAKA"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as TrashContext } from "./trash-Bqyw-wzx.mjs";
|
|
2
|
-
import { i as ServiceResponse, n as APIResponse, r as PublicAPIHeaders, t as APIHeaders } from "./api-
|
|
2
|
+
import { i as ServiceResponse, n as APIResponse, r as PublicAPIHeaders, t as APIHeaders } from "./api-DL6n2zzo.mjs";
|
|
3
3
|
import "./index-ColiPbLk.mjs";
|
|
4
4
|
import { t as Fetch } from "./fetch-n3GlsG0y.mjs";
|
|
5
5
|
import "./index-DEHBdV_z.mjs";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as TrashContext } from "./trash-BekTp5BK.js";
|
|
2
|
-
import { i as ServiceResponse, n as APIResponse, r as PublicAPIHeaders, t as APIHeaders } from "./api-
|
|
2
|
+
import { i as ServiceResponse, n as APIResponse, r as PublicAPIHeaders, t as APIHeaders } from "./api-CdNJcCit.js";
|
|
3
3
|
import "./index-gyoEOFQ4.js";
|
|
4
4
|
import { t as Fetch } from "./fetch-DTnjbhMB.js";
|
|
5
5
|
import "./index-D0E78WnU.js";
|
package/dist/types/api.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as ServiceResponse, n as APIResponse, r as PublicAPIHeaders, t as APIHeaders } from "../api-
|
|
1
|
+
import { i as ServiceResponse, n as APIResponse, r as PublicAPIHeaders, t as APIHeaders } from "../api-DL6n2zzo.mjs";
|
|
2
2
|
export { APIHeaders, APIResponse, PublicAPIHeaders, ServiceResponse };
|
package/dist/types/api.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as ServiceResponse, n as APIResponse, r as PublicAPIHeaders, t as APIHeaders } from "../api-
|
|
1
|
+
import { i as ServiceResponse, n as APIResponse, r as PublicAPIHeaders, t as APIHeaders } from "../api-CdNJcCit.js";
|
|
2
2
|
export { APIHeaders, APIResponse, PublicAPIHeaders, ServiceResponse };
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { t as TrashContext } from "../trash-Bqyw-wzx.mjs";
|
|
2
|
-
import { i as ServiceResponse, n as APIResponse, r as PublicAPIHeaders, t as APIHeaders } from "../api-
|
|
2
|
+
import { i as ServiceResponse, n as APIResponse, r as PublicAPIHeaders, t as APIHeaders } from "../api-DL6n2zzo.mjs";
|
|
3
3
|
import "../index-ColiPbLk.mjs";
|
|
4
4
|
export { APIHeaders, APIResponse, PublicAPIHeaders, ServiceResponse, TrashContext };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { t as TrashContext } from "../trash-BekTp5BK.js";
|
|
2
|
-
import { i as ServiceResponse, n as APIResponse, r as PublicAPIHeaders, t as APIHeaders } from "../api-
|
|
2
|
+
import { i as ServiceResponse, n as APIResponse, r as PublicAPIHeaders, t as APIHeaders } from "../api-CdNJcCit.js";
|
|
3
3
|
import "../index-gyoEOFQ4.js";
|
|
4
4
|
export { APIHeaders, APIResponse, PublicAPIHeaders, ServiceResponse, TrashContext };
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api-BS3JQgsq.d.ts","names":[],"sources":["../src/types/api.ts"],"sourcesContent":[],"mappings":";KAAY,UAAA;EAAA,KAAA,EAAA,MAAU;EAKV,MAAA,CAAA,EAAA,MAAA;AAEZ,CAAA;AAMY,KARA,gBAAA,GAAmB,IAYnB,CAZwB,UAYvB,EAAA,OAAA,CAAA;KAVD;;;QAGJ;;KAGI;;;QAIA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api-Ce9MBzK9.d.mts","names":[],"sources":["../src/types/api.ts"],"sourcesContent":[],"mappings":";KAAY,UAAA;EAAA,KAAA,EAAA,MAAU;EAKV,MAAA,CAAA,EAAA,MAAA;AAEZ,CAAA;AAMY,KARA,gBAAA,GAAmB,IAYnB,CAZwB,UAYvB,EAAA,OAAA,CAAA;KAVD;;;QAGJ;;KAGI;;;QAIA"}
|