@openbox/shared-types 0.1.50 → 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.d.ts +2 -2
- package/lib/index.js +5 -0
- package/lib/index.js.map +1 -1
- package/lib/interfaces.d.ts +0 -8
- package/lib/services/GetMany/Request.d.ts +7 -2
- package/lib/services/GetMany/Request.js +4 -0
- package/lib/services/GetMany/Request.js.map +1 -1
- package/lib/services/GetMany/Response.d.ts +3 -4
- package/lib/services/GetMany/Response.js +7 -0
- package/lib/services/GetMany/Response.js.map +1 -1
- package/lib/services/GetSingle/Response.d.ts +21 -0
- package/lib/services/GetSingle/Response.js +3 -0
- package/lib/services/GetSingle/Response.js.map +1 -0
- package/lib/services/index.d.ts +3 -2
- package/lib/services/index.js +6 -0
- package/lib/services/index.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +12 -2
- package/src/interfaces.ts +0 -9
- package/src/services/GetMany/Request.ts +7 -3
- package/src/services/GetMany/Response.ts +3 -5
- package/src/services/GetSingle/Response.ts +24 -0
- package/src/services/index.ts +14 -2
package/lib/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { GetServicesRequest, GetServicesResponse,
|
|
2
|
-
export { GetServicesRequest, GetServicesResponse,
|
|
1
|
+
import { GetServiceResponse, GetServicesRequest, GetServicesResponse, IManyServices, IServiceSellingType, ISingleService } from './services';
|
|
2
|
+
export { IManyServices, GetServicesRequest, GetServicesResponse, ISingleService, IServiceSellingType, GetServiceResponse, };
|
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"}
|
package/lib/interfaces.d.ts
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
|
|
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 +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,10 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
export interface IManyServicesResponse {
|
|
1
|
+
export declare class IManyServices {
|
|
3
2
|
id: string;
|
|
4
3
|
name: string;
|
|
5
4
|
}
|
|
6
|
-
export
|
|
7
|
-
data:
|
|
5
|
+
export declare class GetServicesResponse {
|
|
6
|
+
data: IManyServices[];
|
|
8
7
|
count: number;
|
|
9
8
|
page: number;
|
|
10
9
|
limit: 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"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IResponse } from '../../interfaces';
|
|
2
|
+
export interface IServiceSellingType {
|
|
3
|
+
id: number;
|
|
4
|
+
name: string;
|
|
5
|
+
}
|
|
6
|
+
export interface ISingleService {
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
description: string;
|
|
10
|
+
cost: number;
|
|
11
|
+
active: boolean;
|
|
12
|
+
incIva: boolean;
|
|
13
|
+
isUsed: boolean;
|
|
14
|
+
incRenta10: boolean;
|
|
15
|
+
incRenta5: boolean;
|
|
16
|
+
sellingType: IServiceSellingType;
|
|
17
|
+
createdAt: string;
|
|
18
|
+
}
|
|
19
|
+
export interface GetServiceResponse extends IResponse {
|
|
20
|
+
data: ISingleService;
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../src/services/GetSingle/Response.ts"],"names":[],"mappings":""}
|
package/lib/services/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { GetServicesRequest } from './GetMany/Request';
|
|
2
|
-
import { GetServicesResponse,
|
|
3
|
-
|
|
2
|
+
import { GetServicesResponse, IManyServices } from './GetMany/Response';
|
|
3
|
+
import { GetServiceResponse, IServiceSellingType, ISingleService } from './GetSingle/Response';
|
|
4
|
+
export { IManyServices, GetServicesRequest, GetServicesResponse, ISingleService, IServiceSellingType, GetServiceResponse, };
|
package/lib/services/index.js
CHANGED
|
@@ -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
package/src/index.ts
CHANGED
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
|
+
GetServiceResponse,
|
|
2
3
|
GetServicesRequest,
|
|
3
4
|
GetServicesResponse,
|
|
4
|
-
|
|
5
|
+
IManyServices,
|
|
6
|
+
IServiceSellingType,
|
|
7
|
+
ISingleService,
|
|
5
8
|
} from './services'
|
|
6
9
|
|
|
7
|
-
export {
|
|
10
|
+
export {
|
|
11
|
+
IManyServices,
|
|
12
|
+
GetServicesRequest,
|
|
13
|
+
GetServicesResponse,
|
|
14
|
+
ISingleService,
|
|
15
|
+
IServiceSellingType,
|
|
16
|
+
GetServiceResponse,
|
|
17
|
+
}
|
package/src/interfaces.ts
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
|
|
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,12 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export interface IManyServicesResponse {
|
|
1
|
+
export class IManyServices {
|
|
4
2
|
id: string
|
|
5
3
|
name: string
|
|
6
4
|
}
|
|
7
5
|
|
|
8
|
-
export
|
|
9
|
-
data:
|
|
6
|
+
export class GetServicesResponse {
|
|
7
|
+
data: IManyServices[]
|
|
10
8
|
count: number
|
|
11
9
|
page: number
|
|
12
10
|
limit: number
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { IResponse } from '../../interfaces'
|
|
2
|
+
|
|
3
|
+
export interface IServiceSellingType {
|
|
4
|
+
id: number
|
|
5
|
+
name: string
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export interface ISingleService {
|
|
9
|
+
id: string
|
|
10
|
+
name: string
|
|
11
|
+
description: string
|
|
12
|
+
cost: number
|
|
13
|
+
active: boolean
|
|
14
|
+
incIva: boolean
|
|
15
|
+
isUsed: boolean
|
|
16
|
+
incRenta10: boolean
|
|
17
|
+
incRenta5: boolean
|
|
18
|
+
sellingType: IServiceSellingType
|
|
19
|
+
createdAt: string
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface GetServiceResponse extends IResponse {
|
|
23
|
+
data: ISingleService
|
|
24
|
+
}
|
package/src/services/index.ts
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
import { GetServicesRequest } from './GetMany/Request'
|
|
2
|
-
import { GetServicesResponse,
|
|
2
|
+
import { GetServicesResponse, IManyServices } from './GetMany/Response'
|
|
3
|
+
import {
|
|
4
|
+
GetServiceResponse,
|
|
5
|
+
IServiceSellingType,
|
|
6
|
+
ISingleService,
|
|
7
|
+
} from './GetSingle/Response'
|
|
3
8
|
|
|
4
|
-
export {
|
|
9
|
+
export {
|
|
10
|
+
IManyServices,
|
|
11
|
+
GetServicesRequest,
|
|
12
|
+
GetServicesResponse,
|
|
13
|
+
ISingleService,
|
|
14
|
+
IServiceSellingType,
|
|
15
|
+
GetServiceResponse,
|
|
16
|
+
}
|