@openbox/shared-types 0.2.31 → 0.2.32

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.
@@ -1,5 +1,5 @@
1
1
  import { GetManyResponse } from '../../../interfaces';
2
2
  import { CustomersResponse } from '../customers.interfaces';
3
- export type CustomerGetManyResponse = GetManyResponse & {
4
- data: Array<CustomersResponse>;
3
+ export type CustomersGetManyResponse = GetManyResponse & {
4
+ data: Array<Pick<CustomersResponse, 'id' | 'name' | 'personType' | 'nit' | 'nrc' | 'active'>>;
5
5
  };
@@ -3,6 +3,7 @@ import { SystemPersonTypeGetSingleResponse } from '../../system/PersonTypes/GetS
3
3
  import { SystemSellingTypeGetSingleResponse } from '../../system/SellingTypes/GetSingle/Response';
4
4
  import { SystemTaxerTypesGetSingleResponse } from '../../system/TaxerTypes/GetSingle/Response';
5
5
  import { CustomersBranchesCreateSingleRequest } from '../Branches';
6
+ import { CustomersBranchesResponse } from '../Branches/customers.branches.interfaces';
6
7
  export type Customers = {
7
8
  id: string;
8
9
  name: string;
@@ -29,8 +30,9 @@ export type Customers = {
29
30
  personType: SystemPersonTypeGetSingleResponse;
30
31
  customerType: SystemSellingTypeGetSingleResponse;
31
32
  customerTypeNatural: SystemNaturalTypesGetSingleResponse;
33
+ branch?: CustomersBranchesResponse;
32
34
  };
33
- export type CustomersRequest = Omit<Customers, 'id' | 'customerTaxerType' | 'personType' | 'customerType' | 'customerTypeNatural'> & {
35
+ export type CustomersRequest = Omit<Customers, 'id' | 'customerTaxerType' | 'personType' | 'customerType' | 'customerTypeNatural' | 'branch'> & {
34
36
  customerTaxerType: number;
35
37
  personType: number;
36
38
  customerType: number;
@@ -10,4 +10,5 @@ export * from './UpdateManyStatuses/Request';
10
10
  export * from './UpdateManyStatuses/Response';
11
11
  export * from './UpdateSingle/Request';
12
12
  export * from './UpdateSingle/Response';
13
+ export * from './UpdateSingleStatus/Request';
13
14
  export * from './UpdateSingleStatus/Response';
@@ -26,5 +26,6 @@ __exportStar(require("./UpdateManyStatuses/Request"), exports);
26
26
  __exportStar(require("./UpdateManyStatuses/Response"), exports);
27
27
  __exportStar(require("./UpdateSingle/Request"), exports);
28
28
  __exportStar(require("./UpdateSingle/Response"), exports);
29
+ __exportStar(require("./UpdateSingleStatus/Request"), exports);
29
30
  __exportStar(require("./UpdateSingleStatus/Response"), exports);
30
31
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/customers/Customers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAsC;AACtC,0DAAuC;AACvC,uDAAoC;AACpC,wDAAqC;AACrC,0DAAuC;AACvC,oDAAiC;AACjC,qDAAkC;AAClC,uDAAoC;AACpC,+DAA4C;AAC5C,gEAA6C;AAC7C,yDAAsC;AACtC,0DAAuC;AACvC,gEAA6C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/customers/Customers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAsC;AACtC,0DAAuC;AACvC,uDAAoC;AACpC,wDAAqC;AACrC,0DAAuC;AACvC,oDAAiC;AACjC,qDAAkC;AAClC,uDAAoC;AACpC,+DAA4C;AAC5C,gEAA6C;AAC7C,yDAAsC;AACtC,0DAAuC;AACvC,+DAA4C;AAC5C,gEAA6C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.2.31",
3
+ "version": "0.2.32",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",
@@ -1,6 +1,6 @@
1
1
  import { GetManyResponse } from '../../../interfaces'
2
2
  import { CustomersResponse } from '../customers.interfaces'
3
3
 
4
- export type CustomerGetManyResponse = GetManyResponse & {
5
- data: Array<CustomersResponse>
4
+ export type CustomersGetManyResponse = GetManyResponse & {
5
+ data: Array<Pick<CustomersResponse, 'id' | 'name' | 'personType' | 'nit' | 'nrc' | 'active'>>
6
6
  }
@@ -3,6 +3,7 @@ import { SystemPersonTypeGetSingleResponse } from '../../system/PersonTypes/GetS
3
3
  import { SystemSellingTypeGetSingleResponse } from '../../system/SellingTypes/GetSingle/Response'
4
4
  import { SystemTaxerTypesGetSingleResponse } from '../../system/TaxerTypes/GetSingle/Response'
5
5
  import { CustomersBranchesCreateSingleRequest } from '../Branches'
6
+ import { CustomersBranchesResponse } from '../Branches/customers.branches.interfaces'
6
7
 
7
8
  export type Customers = {
8
9
  id: string
@@ -30,10 +31,11 @@ export type Customers = {
30
31
  personType: SystemPersonTypeGetSingleResponse
31
32
  customerType: SystemSellingTypeGetSingleResponse
32
33
  customerTypeNatural: SystemNaturalTypesGetSingleResponse
34
+ branch?: CustomersBranchesResponse
33
35
  }
34
36
  export type CustomersRequest = Omit<
35
37
  Customers,
36
- 'id' | 'customerTaxerType' | 'personType' | 'customerType' | 'customerTypeNatural'
38
+ 'id' | 'customerTaxerType' | 'personType' | 'customerType' | 'customerTypeNatural' | 'branch'
37
39
  > & {
38
40
  customerTaxerType: number
39
41
  personType: number
@@ -10,4 +10,5 @@ export * from './UpdateManyStatuses/Request'
10
10
  export * from './UpdateManyStatuses/Response'
11
11
  export * from './UpdateSingle/Request'
12
12
  export * from './UpdateSingle/Response'
13
+ export * from './UpdateSingleStatus/Request'
13
14
  export * from './UpdateSingleStatus/Response'