@h0ngcha0/zeta-backend 0.0.1-rc.1 → 0.0.1-rc.2
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.
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
export interface SuccessApiResponse<T> {
|
|
1
|
+
export interface SuccessApiResponse<T> extends Response {
|
|
2
2
|
id: string;
|
|
3
3
|
success: true;
|
|
4
4
|
data: T;
|
|
5
5
|
}
|
|
6
|
-
export interface ErrorApiResponse {
|
|
6
|
+
export interface ErrorApiResponse extends Response {
|
|
7
7
|
id: string;
|
|
8
8
|
success: false;
|
|
9
9
|
msg: string;
|
|
10
10
|
}
|
|
11
11
|
export interface PaginatedApiResponse<T> extends SuccessApiResponse<T> {
|
|
12
|
-
id: string;
|
|
13
|
-
success: true;
|
|
14
12
|
data: T & {
|
|
15
13
|
meta: {
|
|
16
14
|
page: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"response.d.ts","sourceRoot":"","sources":["../../../src/routes/response.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"response.d.ts","sourceRoot":"","sources":["../../../src/routes/response.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,kBAAkB,CAAC,CAAC,CAAE,SAAQ,QAAQ;IACrD,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,IAAI,CAAA;IACb,IAAI,EAAE,CAAC,CAAA;CACR;AAED,MAAM,WAAW,gBAAiB,SAAQ,QAAQ;IAChD,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,KAAK,CAAA;IACd,GAAG,EAAE,MAAM,CAAA;CACZ;AAED,MAAM,WAAW,oBAAoB,CAAC,CAAC,CAAE,SAAQ,kBAAkB,CAAC,CAAC,CAAC;IACpE,IAAI,EAAE,CAAC,GAAG;QACR,IAAI,EAAE;YACJ,IAAI,EAAE,MAAM,CAAA;YACZ,QAAQ,EAAE,MAAM,CAAA;YAChB,UAAU,EAAE,MAAM,CAAA;SACnB,CAAA;KACF,CAAA;CACF;AAED,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,kBAAkB,CAAC,CAAC,CAAC,GAAG,gBAAgB,CAAA;AAErE,wBAAgB,sBAAsB,CAAC,CAAC,EACtC,IAAI,EAAE,CAAC,EACP,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,GACjB,oBAAoB,CAAC,CAAC,CAAC,CAczB;AAED,wBAAgB,aAAa,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,kBAAkB,CAAC,CAAC,CAAC,CAW/D;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,gBAAgB,CAsC5D"}
|