@openbox/shared-types 0.1.54 → 0.1.56

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, DeleteServiceResponse, DeleteServicesRequest, DeleteServicesResponse, GetServiceResponse, GetServicesRequest, GetServicesResponse, IManyServices, IServiceSellingType, ISingleService } from './services';
2
+ export { IManyServices, GetServicesRequest, GetServicesResponse, ISingleService, IServiceSellingType, GetServiceResponse, CreateServiceRequest, CreateServiceResponse, DeleteServiceResponse, DeleteServicesRequest, DeleteServicesResponse, };
@@ -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,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/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":""}
@@ -0,0 +1,3 @@
1
+ export interface DeleteServicesRequest {
2
+ ids: string[];
3
+ }
@@ -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/DeleteMany/Request.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export interface DeleteServicesResponse {
2
+ message: string;
3
+ }
@@ -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/DeleteMany/Response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export interface DeleteServiceResponse {
2
+ message: string;
3
+ }
@@ -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/DeleteSingle/Response.ts"],"names":[],"mappings":""}
@@ -1,4 +1,9 @@
1
+ import { CreateServiceRequest } from './CreateSingle/Request';
2
+ import { CreateServiceResponse } from './CreateSingle/Response';
3
+ import { DeleteServicesRequest } from './DeleteMany/Request';
4
+ import { DeleteServicesResponse } from './DeleteMany/Response';
5
+ import { DeleteServiceResponse } from './DeleteSingle/Response';
1
6
  import { GetServicesRequest } from './GetMany/Request';
2
7
  import { GetServicesResponse, IManyServices } from './GetMany/Response';
3
8
  import { GetServiceResponse, IServiceSellingType, ISingleService } from './GetSingle/Response';
4
- export { IManyServices, GetServicesRequest, GetServicesResponse, ISingleService, IServiceSellingType, GetServiceResponse, };
9
+ export { IManyServices, GetServicesRequest, GetServicesResponse, ISingleService, IServiceSellingType, GetServiceResponse, CreateServiceRequest, CreateServiceResponse, DeleteServiceResponse, DeleteServicesRequest, DeleteServicesResponse, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.1.54",
3
+ "version": "0.1.56",
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,9 @@
1
1
  import {
2
+ CreateServiceRequest,
3
+ CreateServiceResponse,
4
+ DeleteServiceResponse,
5
+ DeleteServicesRequest,
6
+ DeleteServicesResponse,
2
7
  GetServiceResponse,
3
8
  GetServicesRequest,
4
9
  GetServicesResponse,
@@ -14,4 +19,9 @@ export {
14
19
  ISingleService,
15
20
  IServiceSellingType,
16
21
  GetServiceResponse,
22
+ CreateServiceRequest,
23
+ CreateServiceResponse,
24
+ DeleteServiceResponse,
25
+ DeleteServicesRequest,
26
+ DeleteServicesResponse,
17
27
  }
@@ -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
+ }
@@ -0,0 +1,3 @@
1
+ export interface DeleteServicesRequest {
2
+ ids: string[]
3
+ }
@@ -0,0 +1,3 @@
1
+ export interface DeleteServicesResponse {
2
+ message: string
3
+ }
@@ -0,0 +1,3 @@
1
+ export interface DeleteServiceResponse {
2
+ message: string
3
+ }
@@ -1,3 +1,8 @@
1
+ import { CreateServiceRequest } from './CreateSingle/Request'
2
+ import { CreateServiceResponse } from './CreateSingle/Response'
3
+ import { DeleteServicesRequest } from './DeleteMany/Request'
4
+ import { DeleteServicesResponse } from './DeleteMany/Response'
5
+ import { DeleteServiceResponse } from './DeleteSingle/Response'
1
6
  import { GetServicesRequest } from './GetMany/Request'
2
7
  import { GetServicesResponse, IManyServices } from './GetMany/Response'
3
8
  import {
@@ -13,4 +18,9 @@ export {
13
18
  ISingleService,
14
19
  IServiceSellingType,
15
20
  GetServiceResponse,
21
+ CreateServiceRequest,
22
+ CreateServiceResponse,
23
+ DeleteServiceResponse,
24
+ DeleteServicesRequest,
25
+ DeleteServicesResponse,
16
26
  }