@openbox/shared-types 0.1.51 → 0.1.52

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/lib/index.js CHANGED
@@ -1,3 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetServicesResponse = exports.GetServicesRequest = exports.IManyServices = void 0;
4
+ const services_1 = require("./services");
5
+ Object.defineProperty(exports, "GetServicesRequest", { enumerable: true, get: function () { return services_1.GetServicesRequest; } });
6
+ Object.defineProperty(exports, "GetServicesResponse", { enumerable: true, get: function () { return services_1.GetServicesResponse; } });
7
+ Object.defineProperty(exports, "IManyServices", { enumerable: true, get: function () { return services_1.IManyServices; } });
3
8
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,yCAOmB;AAIjB,mGATA,6BAAkB,OASA;AAClB,oGATA,8BAAmB,OASA;AAFnB,8FANA,wBAAa,OAMA"}
@@ -1,11 +1,3 @@
1
- export interface IFilter {
2
- limit?: number;
3
- page?: number;
4
- search?: string;
5
- prop?: string;
6
- order?: string;
7
- active?: boolean;
8
- }
9
1
  export interface IResponse {
10
2
  id?: string | number;
11
3
  data?: Record<string, any> | Record<string, any>[];
@@ -1,6 +1,11 @@
1
- import { IFilter } from '../../interfaces';
2
- export interface GetServicesRequest extends IFilter {
1
+ export declare class GetServicesRequest {
3
2
  types?: number[];
4
3
  fromAmount?: number;
5
4
  toAmount?: number;
5
+ limit?: number;
6
+ page?: number;
7
+ search?: string;
8
+ prop?: string;
9
+ order?: string;
10
+ active?: boolean;
6
11
  }
@@ -1,3 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetServicesRequest = void 0;
4
+ class GetServicesRequest {
5
+ }
6
+ exports.GetServicesRequest = GetServicesRequest;
3
7
  //# sourceMappingURL=Request.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../src/services/GetMany/Request.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../src/services/GetMany/Request.ts"],"names":[],"mappings":";;;AAAA,MAAa,kBAAkB;CAU9B;AAVD,gDAUC"}
@@ -1,9 +1,8 @@
1
- import { IResponse } from '../../interfaces';
2
- export interface IManyServices {
1
+ export declare class IManyServices {
3
2
  id: string;
4
3
  name: string;
5
4
  }
6
- export interface GetServicesResponse extends IResponse {
5
+ export declare class GetServicesResponse {
7
6
  data: IManyServices[];
8
7
  count: number;
9
8
  page: number;
@@ -1,3 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetServicesResponse = exports.IManyServices = void 0;
4
+ class IManyServices {
5
+ }
6
+ exports.IManyServices = IManyServices;
7
+ class GetServicesResponse {
8
+ }
9
+ exports.GetServicesResponse = GetServicesResponse;
3
10
  //# sourceMappingURL=Response.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../src/services/GetMany/Response.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../src/services/GetMany/Response.ts"],"names":[],"mappings":";;;AAAA,MAAa,aAAa;CAGzB;AAHD,sCAGC;AAED,MAAa,mBAAmB;CAK/B;AALD,kDAKC"}
@@ -1,3 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetServicesResponse = exports.GetServicesRequest = exports.IManyServices = void 0;
4
+ const Request_1 = require("./GetMany/Request");
5
+ Object.defineProperty(exports, "GetServicesRequest", { enumerable: true, get: function () { return Request_1.GetServicesRequest; } });
6
+ const Response_1 = require("./GetMany/Response");
7
+ Object.defineProperty(exports, "GetServicesResponse", { enumerable: true, get: function () { return Response_1.GetServicesResponse; } });
8
+ Object.defineProperty(exports, "IManyServices", { enumerable: true, get: function () { return Response_1.IManyServices; } });
3
9
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/services/index.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/services/index.ts"],"names":[],"mappings":";;;AAAA,+CAAsD;AAUpD,mGAVO,4BAAkB,OAUP;AATpB,iDAAuE;AAUrE,oGAVO,8BAAmB,OAUP;AAFnB,8FAR4B,wBAAa,OAQ5B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.1.51",
3
+ "version": "0.1.52",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",
package/src/interfaces.ts CHANGED
@@ -1,12 +1,3 @@
1
- export interface IFilter {
2
- limit?: number
3
- page?: number
4
- search?: string
5
- prop?: string
6
- order?: string
7
- active?: boolean
8
- }
9
-
10
1
  export interface IResponse {
11
2
  id?: string | number
12
3
  data?: Record<string, any> | Record<string, any>[]
@@ -1,7 +1,11 @@
1
- import { IFilter } from '../../interfaces'
2
-
3
- export interface GetServicesRequest extends IFilter {
1
+ export class GetServicesRequest {
4
2
  types?: number[]
5
3
  fromAmount?: number
6
4
  toAmount?: number
5
+ limit?: number
6
+ page?: number
7
+ search?: string
8
+ prop?: string
9
+ order?: string
10
+ active?: boolean
7
11
  }
@@ -1,11 +1,9 @@
1
- import { IResponse } from '../../interfaces'
2
-
3
- export interface IManyServices {
1
+ export class IManyServices {
4
2
  id: string
5
3
  name: string
6
4
  }
7
5
 
8
- export interface GetServicesResponse extends IResponse {
6
+ export class GetServicesResponse {
9
7
  data: IManyServices[]
10
8
  count: number
11
9
  page: number