idosell 0.4.4 → 0.4.11

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/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  This package wraps around the Idosell REST Api to make it easier to use by implementing chainable options, more intuitive methods and helpers to format requests more easily. [Official Idosell documentation](https://idosell.readme.io/docs) is still applicable for the most part.
4
4
 
5
+ Visit [This page](https://idosell-converter.vercel.app/) for more detailed usage and examples.
6
+
5
7
  ## Basic use
6
8
 
7
9
  Package translates awkward gate names into more readable method names using REST verbs and gateways. Most of the possible methods are kept as is, only changed to camel case. For example:
package/changelog.md CHANGED
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.4.11] - 2025-09-26
9
+ ### Changed
10
+ - Updated to v7
11
+ - Fixed few gates
12
+ - Improved typings
13
+
8
14
  ## [0.4.3] - 2025-08-28
9
15
  ### Changed
10
16
  - Added type RequestParams for typescript support
package/dist/app.d.ts CHANGED
@@ -20,7 +20,7 @@ export type RequestProxyObject = {
20
20
 
21
21
  export type RequirementType = {
22
22
  any: string[]|true
23
- } | string | ((RequestProxyObject) => string|false);
23
+ } | string | ((arg: RequestProxyObject | Record<string,any>) => string|false);
24
24
 
25
25
  export type GatewayRequestProxyObject = {
26
26
  gate: {
@@ -57,6 +57,11 @@ export interface Gateway<R = JSObject, P = JSObject> {
57
57
  * @description Set object as params
58
58
  */
59
59
  setParams: (params: P) => this
60
+
61
+ /**
62
+ * @description Checks if minimal parameters are provided. If not, throws an error.
63
+ */
64
+ checkParams: () => void
60
65
  }
61
66
 
62
67
  export interface PagableGateway<T,R = JSObject, P = JSObject> extends Gateway<R, P> {