@openbox/shared-types 0.1.48 → 0.1.49
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 +0 -4
- package/lib/index.js.map +1 -1
- package/lib/services/GetMany/Request.d.ts +6 -0
- package/lib/services/GetMany/Request.js +3 -0
- package/lib/services/GetMany/Request.js.map +1 -0
- package/lib/services/GetMany/Response.d.ts +11 -0
- package/lib/services/GetMany/Response.js +3 -0
- package/lib/services/GetMany/Response.js.map +1 -0
- package/lib/services/index.d.ts +3 -16
- package/lib/services/index.js +0 -7
- package/lib/services/index.js.map +1 -1
- package/package.json +2 -2
- package/src/services/GetMany/Request.ts +7 -0
- package/src/services/GetMany/Response.ts +13 -0
- package/src/services/index.ts +3 -18
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":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
|
|
@@ -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 @@
|
|
|
1
|
+
{"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../src/services/GetMany/Response.ts"],"names":[],"mappings":""}
|
package/lib/services/index.d.ts
CHANGED
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
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 };
|
package/lib/services/index.js
CHANGED
|
@@ -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":"
|
|
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.
|
|
3
|
+
"version": "0.1.49",
|
|
4
4
|
"description": "Shared Types for Openbox Cloud. ",
|
|
5
5
|
"types": "lib/index.d.js",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"license": "ISC",
|
|
9
9
|
"scripts": {
|
|
10
10
|
"prebuild": "rimraf lib",
|
|
11
|
-
"build": "
|
|
11
|
+
"build": "tsc",
|
|
12
12
|
"lint": "eslint --ext .ts,.tsx --ignore-path .gitignore .",
|
|
13
13
|
"lint:fix": "npm run lint -- --fix",
|
|
14
14
|
"publish": "npm run build && npm publish"
|
|
@@ -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
|
+
}
|
package/src/services/index.ts
CHANGED
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GetServicesRequest } from './GetMany/Request'
|
|
2
|
+
import { GetServicesResponse, IManyServicesResponse } from './GetMany/Response'
|
|
2
3
|
|
|
3
|
-
export
|
|
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 }
|