laravel-request 1.2.18 → 1.2.20

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/@types/Api.d.ts CHANGED
@@ -5,11 +5,11 @@ declare module 'laravel-request' {
5
5
  static tokenResolver: () => Promise<string | null>;
6
6
  static domainResolver: () => string;
7
7
 
8
- static getArg(controller: string, action: string, arg: string, data?: Record<string, any>): ApiRequest;
8
+ static getArg(controller: string, action: string, arg: any, data?: Record<string, any>): ApiRequest;
9
9
 
10
- static postArg(controller: string, action: string, arg: string, data?: Record<string, any>): ApiRequest;
10
+ static postArg(controller: string, action: string, arg: any, data?: Record<string, any>): ApiRequest;
11
11
 
12
- static putArg(controller: string, action: string, arg: string, data?: Record<string, any>): ApiRequest;
12
+ static putArg(controller: string, action: string, arg: any, data?: Record<string, any>): ApiRequest;
13
13
 
14
14
  static getUrl(url: string, data?: Record<string, any>): ApiRequest;
15
15
 
@@ -23,7 +23,7 @@ declare module 'laravel-request' {
23
23
 
24
24
  static put(controller: string, action: string, data?: Record<string, any>): ApiRequest;
25
25
 
26
- static delete(controller: string, action: string, id: string, data?: Record<string, any>): ApiRequest;
26
+ static delete(controller: string, action: string, id: any, data?: Record<string, any>): ApiRequest;
27
27
 
28
28
  static encodeQueryString(params: Record<string, any>): string;
29
29
 
@@ -1,9 +1,9 @@
1
+
1
2
  declare module 'laravel-request' {
3
+ // @ts-ignore
2
4
  import * as axios from "axios/index";
3
5
 
4
- export interface ApiRequest extends BuilderMethodSignatures {}
5
-
6
- export class ApiRequest {
6
+ export class ApiRequest extends BuilderMethodSignatures{
7
7
  url: string;
8
8
  source: any;
9
9
  static notifyClass: any | null;
@@ -1,6 +1,5 @@
1
1
  declare module 'laravel-request' {
2
- export interface Builder extends BuilderMethodSignatures {}
3
- export class Builder {
2
+ export class Builder extends BuilderMethodSignatures{
4
3
  static availableMethod: string[];
5
4
 
6
5
  query: Array<Record<string, any>>;
@@ -9,7 +9,7 @@ declare module 'laravel-request' {
9
9
  * - в Builder методы будут возвращать Builder,
10
10
  * - в ApiRequest – ApiRequest.
11
11
  */
12
- export interface BuilderMethodSignatures {
12
+ export class BuilderMethodSignatures {
13
13
  select(...args: any[]): this;
14
14
  where(...args: any[]): this;
15
15
  orWhere(...args: any[]): this;
@@ -5,5 +5,6 @@
5
5
  /// <reference path="./Binding.d.ts" />
6
6
  /// <reference path="./ApiProxy.d.ts" />
7
7
  /// <reference path="./UrlBind.d.ts" />
8
+ /// <reference path="./BuilderMethodSignatures.d.ts" />
8
9
 
9
10
  export * from 'laravel-request';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "laravel-request",
3
3
  "productName": "laravel-request",
4
- "version": "1.2.18",
4
+ "version": "1.2.20",
5
5
  "description": "laravel-request",
6
6
  "main": "src/index.js",
7
7
  "module": "src/index.js",