@ifunny/ifunny-api-types 0.9.0 → 0.9.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/CHANGELOG.md +11 -1
- package/package.json +1 -1
- package/types/utils/rest.d.ts +7 -5
- package/types/utils/rest.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,17 @@
|
|
|
2
2
|
> All notable changes to this project will be documented in this file.
|
|
3
3
|
> This Changelog adheres to the [Semantic Versioning]("https://semver.org/")
|
|
4
4
|
|
|
5
|
-
## [v0.9.
|
|
5
|
+
## [v0.9.1](https://github.com/ifunny-co/ifunny-api-types/compare/v0.9.0...v0.9.1) - 2022-10-14
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Fixes
|
|
9
|
+
|
|
10
|
+
* Add RESTAPIStatusResponse @makeshiftartist ([`c89e265`](https://github.com/ifunny-co/ifunny-api-types/commit/c89e265fb40bd2ed0349b4a5a7f8859f6a84c18d))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## [v0.9.0](https://github.com/ifunny-co/ifunny-api-types/compare/v0.8.4...v0.9.0) - 2022-10-13
|
|
6
16
|
|
|
7
17
|
### Features
|
|
8
18
|
|
package/package.json
CHANGED
package/types/utils/rest.d.ts
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Returns when the request was a success
|
|
3
3
|
*/
|
|
4
|
-
export interface RESTAPISuccessResponse<T extends unknown> {
|
|
4
|
+
export interface RESTAPISuccessResponse<T extends unknown> extends RESTAPIStatusCode {
|
|
5
5
|
/**
|
|
6
6
|
* The data returned from the API
|
|
7
7
|
*/
|
|
8
8
|
data: T;
|
|
9
|
-
/**
|
|
10
|
-
* Typically 200 on success
|
|
11
|
-
*/
|
|
12
|
-
status: number;
|
|
13
9
|
}
|
|
14
10
|
/**
|
|
15
11
|
* Common data response
|
|
@@ -45,4 +41,10 @@ export interface RESTAPICursors {
|
|
|
45
41
|
*/
|
|
46
42
|
prev?: string;
|
|
47
43
|
}
|
|
44
|
+
export interface RESTAPIStatusCode {
|
|
45
|
+
/**
|
|
46
|
+
* Typically 200 on success
|
|
47
|
+
*/
|
|
48
|
+
status: number;
|
|
49
|
+
}
|
|
48
50
|
//# sourceMappingURL=rest.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rest.d.ts","sourceRoot":"","sources":["../../src/utils/rest.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,sBAAsB,CAAC,CAAC,SAAS,OAAO
|
|
1
|
+
{"version":3,"file":"rest.d.ts","sourceRoot":"","sources":["../../src/utils/rest.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,sBAAsB,CAAC,CAAC,SAAS,OAAO,CAAE,SAAQ,iBAAiB;IACnF;;OAEG;IACH,IAAI,EAAE,CAAC,CAAC;CACR;AAED;;GAEG;AACH,MAAM,WAAW,YAAY,CAAC,IAAI,SAAS,OAAO;IACjD;;OAEG;IACH,KAAK,EAAE,IAAI,EAAE,CAAC;IACd;;OAEG;IACH,MAAM,EAAE,aAAa,CAAC;CACtB;AAED,MAAM,WAAW,aAAa;IAC7B,OAAO,EAAE,cAAc,CAAC;IACxB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,cAAc;IAC9B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,iBAAiB;IACjC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CACf"}
|