@openbox/shared-types 0.1.48 → 0.1.50

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,7 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IManyServicesResponse = exports.GetServicesResponse = void 0;
4
- const services_1 = require("./services");
5
- Object.defineProperty(exports, "GetServicesResponse", { enumerable: true, get: function () { return services_1.GetServicesResponse; } });
6
- Object.defineProperty(exports, "IManyServicesResponse", { enumerable: true, get: function () { return services_1.IManyServicesResponse; } });
7
3
  //# 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":";;;AAAA,yCAImB;AAEU,oGAJ3B,8BAAmB,OAI2B;AAAE,sGAHhD,gCAAqB,OAGgD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ import { IFilter } from '../../interfaces';
2
+ export interface GetServicesRequest extends IFilter {
3
+ types?: number[];
4
+ fromAmount?: number;
5
+ toAmount?: number;
6
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../src/services/GetMany/Request.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ import { IResponse } from '../../interfaces';
2
+ export interface IManyServicesResponse {
3
+ id: string;
4
+ name: string;
5
+ }
6
+ export interface GetServicesResponse extends IResponse {
7
+ data: IManyServicesResponse[];
8
+ count: number;
9
+ page: number;
10
+ limit: number;
11
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../src/services/GetMany/Response.ts"],"names":[],"mappings":""}
@@ -1,16 +1,3 @@
1
- import { IFilter, IResponse } from '../interfaces';
2
- export declare class IManyServicesResponse {
3
- id: string;
4
- name: string;
5
- }
6
- export declare class GetServicesResponse implements IResponse {
7
- data: IManyServicesResponse[];
8
- count: number;
9
- page: number;
10
- limit: number;
11
- }
12
- export interface GetServicesRequest extends IFilter {
13
- types?: number[];
14
- fromAmount?: number;
15
- toAmount?: number;
16
- }
1
+ import { GetServicesRequest } from './GetMany/Request';
2
+ import { GetServicesResponse, IManyServicesResponse } from './GetMany/Response';
3
+ export { GetServicesRequest, GetServicesResponse, IManyServicesResponse };
@@ -1,10 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetServicesResponse = exports.IManyServicesResponse = void 0;
4
- class IManyServicesResponse {
5
- }
6
- exports.IManyServicesResponse = IManyServicesResponse;
7
- class GetServicesResponse {
8
- }
9
- exports.GetServicesResponse = GetServicesResponse;
10
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/services/index.ts"],"names":[],"mappings":";;;AAEA,MAAa,qBAAqB;CAGjC;AAHD,sDAGC;AAED,MAAa,mBAAmB;CAK/B;AALD,kDAKC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/services/index.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.1.48",
3
+ "version": "0.1.50",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",
@@ -10,8 +10,7 @@
10
10
  "prebuild": "rimraf lib",
11
11
  "build": "npm run prebuild && tsc",
12
12
  "lint": "eslint --ext .ts,.tsx --ignore-path .gitignore .",
13
- "lint:fix": "npm run lint -- --fix",
14
- "publish": "npm run build && npm publish"
13
+ "lint:fix": "npm run lint -- --fix"
15
14
  },
16
15
  "devDependencies": {
17
16
  "@typescript-eslint/eslint-plugin": "^5.46.1",
@@ -0,0 +1,7 @@
1
+ import { IFilter } from '../../interfaces'
2
+
3
+ export interface GetServicesRequest extends IFilter {
4
+ types?: number[]
5
+ fromAmount?: number
6
+ toAmount?: number
7
+ }
@@ -0,0 +1,13 @@
1
+ import { IResponse } from '../../interfaces'
2
+
3
+ export interface IManyServicesResponse {
4
+ id: string
5
+ name: string
6
+ }
7
+
8
+ export interface GetServicesResponse extends IResponse {
9
+ data: IManyServicesResponse[]
10
+ count: number
11
+ page: number
12
+ limit: number
13
+ }
@@ -1,19 +1,4 @@
1
- import { IFilter, IResponse } from '../interfaces'
1
+ import { GetServicesRequest } from './GetMany/Request'
2
+ import { GetServicesResponse, IManyServicesResponse } from './GetMany/Response'
2
3
 
3
- export class IManyServicesResponse {
4
- id: string
5
- name: string
6
- }
7
-
8
- export class GetServicesResponse implements IResponse {
9
- data: IManyServicesResponse[]
10
- count: number
11
- page: number
12
- limit: number
13
- }
14
-
15
- export interface GetServicesRequest extends IFilter {
16
- types?: number[]
17
- fromAmount?: number
18
- toAmount?: number
19
- }
4
+ export { GetServicesRequest, GetServicesResponse, IManyServicesResponse }