@openbox/shared-types 0.1.53 → 0.1.55

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 CHANGED
@@ -1,2 +1,2 @@
1
- import { GetServiceResponse, GetServicesRequest, GetServicesResponse, IManyServices, IServiceSellingType, ISingleService } from './services';
2
- export { IManyServices, GetServicesRequest, GetServicesResponse, ISingleService, IServiceSellingType, GetServiceResponse, };
1
+ import { CreateServiceRequest, CreateServiceResponse, GetServiceResponse, GetServicesRequest, GetServicesResponse, IManyServices, IServiceSellingType, ISingleService } from './services';
2
+ export { IManyServices, GetServicesRequest, GetServicesResponse, ISingleService, IServiceSellingType, GetServiceResponse, CreateServiceRequest, CreateServiceResponse, };
package/lib/index.js CHANGED
@@ -1,6 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetServicesRequest = void 0;
4
- const services_1 = require("./services");
5
- Object.defineProperty(exports, "GetServicesRequest", { enumerable: true, get: function () { return services_1.GetServicesRequest; } });
6
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,yCAOmB;AAIjB,mGATA,6BAAkB,OASA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ export interface CreateServiceRequest {
2
+ name: string;
3
+ cost: number;
4
+ description: string;
5
+ incIva: boolean;
6
+ incRenta10: boolean;
7
+ incRenta5: boolean;
8
+ sellingType: number;
9
+ active?: boolean;
10
+ accountingCatalogSales?: string;
11
+ }
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=interfaces.js.map
3
+ //# sourceMappingURL=Request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../src/services/CreateSingle/Request.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export interface CreateServiceResponse {
2
+ id: string;
3
+ message: string;
4
+ }
@@ -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/CreateSingle/Response.ts"],"names":[],"mappings":""}
@@ -1,4 +1,4 @@
1
- export declare class GetServicesRequest {
1
+ export interface GetServicesRequest {
2
2
  types?: number[];
3
3
  fromAmount?: number;
4
4
  toAmount?: number;
@@ -1,7 +1,3 @@
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;
7
3
  //# sourceMappingURL=Request.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../src/services/GetMany/Request.ts"],"names":[],"mappings":";;;AAAA,MAAa,kBAAkB;CAU9B;AAVD,gDAUC"}
1
+ {"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../src/services/GetMany/Request.ts"],"names":[],"mappings":""}
@@ -1,4 +1,3 @@
1
- import { IResponse } from '../../interfaces';
2
1
  export interface IServiceSellingType {
3
2
  id: number;
4
3
  name: string;
@@ -16,6 +15,6 @@ export interface ISingleService {
16
15
  sellingType: IServiceSellingType;
17
16
  createdAt: string;
18
17
  }
19
- export interface GetServiceResponse extends IResponse {
18
+ export interface GetServiceResponse {
20
19
  data: ISingleService;
21
20
  }
@@ -1,4 +1,6 @@
1
+ import { CreateServiceRequest } from './CreateSingle/Request';
2
+ import { CreateServiceResponse } from './CreateSingle/Response';
1
3
  import { GetServicesRequest } from './GetMany/Request';
2
4
  import { GetServicesResponse, IManyServices } from './GetMany/Response';
3
5
  import { GetServiceResponse, IServiceSellingType, ISingleService } from './GetSingle/Response';
4
- export { IManyServices, GetServicesRequest, GetServicesResponse, ISingleService, IServiceSellingType, GetServiceResponse, };
6
+ export { IManyServices, GetServicesRequest, GetServicesResponse, ISingleService, IServiceSellingType, GetServiceResponse, CreateServiceRequest, CreateServiceResponse, };
@@ -1,6 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetServicesRequest = void 0;
4
- const Request_1 = require("./GetMany/Request");
5
- Object.defineProperty(exports, "GetServicesRequest", { enumerable: true, get: function () { return Request_1.GetServicesRequest; } });
6
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/services/index.ts"],"names":[],"mappings":";;;AAAA,+CAAsD;AAUpD,mGAVO,4BAAkB,OAUP"}
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.53",
3
+ "version": "0.1.55",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",
package/src/index.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  import {
2
+ CreateServiceRequest,
3
+ CreateServiceResponse,
2
4
  GetServiceResponse,
3
5
  GetServicesRequest,
4
6
  GetServicesResponse,
@@ -14,4 +16,6 @@ export {
14
16
  ISingleService,
15
17
  IServiceSellingType,
16
18
  GetServiceResponse,
19
+ CreateServiceRequest,
20
+ CreateServiceResponse,
17
21
  }
@@ -0,0 +1,11 @@
1
+ export interface CreateServiceRequest {
2
+ name: string
3
+ cost: number
4
+ description: string
5
+ incIva: boolean
6
+ incRenta10: boolean
7
+ incRenta5: boolean
8
+ sellingType: number
9
+ active?: boolean
10
+ accountingCatalogSales?: string
11
+ }
@@ -0,0 +1,4 @@
1
+ export interface CreateServiceResponse {
2
+ id: string
3
+ message: string
4
+ }
@@ -1,4 +1,4 @@
1
- export class GetServicesRequest {
1
+ export interface GetServicesRequest {
2
2
  types?: number[]
3
3
  fromAmount?: number
4
4
  toAmount?: number
@@ -1,5 +1,3 @@
1
- import { IResponse } from '../../interfaces'
2
-
3
1
  export interface IServiceSellingType {
4
2
  id: number
5
3
  name: string
@@ -19,6 +17,6 @@ export interface ISingleService {
19
17
  createdAt: string
20
18
  }
21
19
 
22
- export interface GetServiceResponse extends IResponse {
20
+ export interface GetServiceResponse {
23
21
  data: ISingleService
24
22
  }
@@ -1,3 +1,5 @@
1
+ import { CreateServiceRequest } from './CreateSingle/Request'
2
+ import { CreateServiceResponse } from './CreateSingle/Response'
1
3
  import { GetServicesRequest } from './GetMany/Request'
2
4
  import { GetServicesResponse, IManyServices } from './GetMany/Response'
3
5
  import {
@@ -13,4 +15,6 @@ export {
13
15
  ISingleService,
14
16
  IServiceSellingType,
15
17
  GetServiceResponse,
18
+ CreateServiceRequest,
19
+ CreateServiceResponse,
16
20
  }
@@ -1,8 +0,0 @@
1
- export interface IResponse {
2
- id?: string | number;
3
- data?: Record<string, any> | Record<string, any>[];
4
- message?: string;
5
- count?: number;
6
- page?: number;
7
- limit?: number;
8
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../src/interfaces.ts"],"names":[],"mappings":""}
package/src/interfaces.ts DELETED
@@ -1,8 +0,0 @@
1
- export interface IResponse {
2
- id?: string | number
3
- data?: Record<string, any> | Record<string, any>[]
4
- message?: string
5
- count?: number
6
- page?: number
7
- limit?: number
8
- }