@openbox/shared-types 0.1.94 → 0.1.96

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.
Files changed (85) hide show
  1. package/lib/customers/Branches/CreateMany/Request.d.ts +4 -0
  2. package/lib/customers/Branches/CreateMany/Request.js.map +1 -0
  3. package/lib/customers/Branches/CreateMany/Response.d.ts +4 -0
  4. package/lib/customers/Branches/CreateMany/Response.js.map +1 -0
  5. package/lib/customers/Branches/DeleteMany/Request.d.ts +3 -0
  6. package/lib/customers/Branches/DeleteMany/Request.js +3 -0
  7. package/lib/customers/Branches/DeleteMany/Request.js.map +1 -0
  8. package/lib/customers/Branches/DeleteMany/Response.d.ts +4 -0
  9. package/lib/customers/Branches/DeleteMany/Response.js +3 -0
  10. package/lib/customers/Branches/DeleteMany/Response.js.map +1 -0
  11. package/lib/customers/Branches/GetMany/Response.d.ts +10 -9
  12. package/lib/customers/Branches/GetSingle/Response.d.ts +7 -7
  13. package/lib/customers/Branches/UpdateMany/Request.d.ts +1 -1
  14. package/lib/customers/Branches/UpdateSingleDefault/Request.d.ts +2 -0
  15. package/lib/customers/Branches/UpdateSingleDefault/Request.js +3 -0
  16. package/lib/customers/Branches/UpdateSingleDefault/Request.js.map +1 -0
  17. package/lib/customers/Branches/UpdateSingleDefault/Response.d.ts +4 -0
  18. package/lib/customers/Branches/UpdateSingleDefault/Response.js +3 -0
  19. package/lib/customers/Branches/UpdateSingleDefault/Response.js.map +1 -0
  20. package/lib/customers/Branches/index.d.ts +6 -2
  21. package/lib/customers/Branches/index.js +6 -2
  22. package/lib/customers/Branches/index.js.map +1 -1
  23. package/lib/customers/Branches/interfaces.d.ts +17 -0
  24. package/lib/customers/Customers/CreateSingle/Request.d.ts +2 -6
  25. package/lib/customers/Customers/GetMany/Response.d.ts +2 -2
  26. package/lib/customers/Customers/GetSingle/Response.d.ts +2 -2
  27. package/lib/invoices/Zones/DeleteSingle/Response.d.ts +2 -0
  28. package/lib/invoices/Zones/GetMany/Request.d.ts +6 -0
  29. package/lib/invoices/Zones/GetMany/Response.d.ts +6 -0
  30. package/lib/system/Cities/GetMany/Response.d.ts +3 -6
  31. package/lib/system/Cities/GetSingle/Response.d.ts +4 -0
  32. package/lib/system/Cities/GetSingle/Response.js +3 -0
  33. package/lib/system/Cities/GetSingle/Response.js.map +1 -0
  34. package/lib/system/Cities/index.d.ts +1 -0
  35. package/lib/system/Cities/index.js +1 -0
  36. package/lib/system/Cities/index.js.map +1 -1
  37. package/lib/system/Countries/GetMany/Response.d.ts +3 -6
  38. package/lib/system/Countries/GetSingle/Response.d.ts +4 -0
  39. package/lib/system/Countries/GetSingle/Response.js +3 -0
  40. package/lib/system/Countries/GetSingle/Response.js.map +1 -0
  41. package/lib/system/Countries/index.d.ts +1 -0
  42. package/lib/system/Countries/index.js +1 -0
  43. package/lib/system/Countries/index.js.map +1 -1
  44. package/lib/system/States/GetMany/Response.d.ts +3 -6
  45. package/lib/system/States/GetSingle/Response.d.ts +4 -0
  46. package/lib/system/States/GetSingle/Response.js +3 -0
  47. package/lib/system/States/GetSingle/Response.js.map +1 -0
  48. package/lib/system/States/index.d.ts +1 -0
  49. package/lib/system/States/index.js +1 -0
  50. package/lib/system/States/index.js.map +1 -1
  51. package/package.json +1 -1
  52. package/src/customers/Branches/CreateMany/Request.ts +5 -0
  53. package/src/customers/Branches/CreateMany/Response.ts +4 -0
  54. package/src/customers/Branches/DeleteMany/Request.ts +3 -0
  55. package/src/customers/Branches/DeleteMany/Response.ts +4 -0
  56. package/src/customers/Branches/GetMany/Response.ts +14 -9
  57. package/src/customers/Branches/GetSingle/Response.ts +7 -7
  58. package/src/customers/Branches/UpdateMany/Request.ts +1 -1
  59. package/src/customers/Branches/UpdateSingleDefault/Request.ts +3 -0
  60. package/src/customers/Branches/UpdateSingleDefault/Response.ts +4 -0
  61. package/src/customers/Branches/index.ts +6 -2
  62. package/src/customers/Branches/interfaces.ts +23 -0
  63. package/src/customers/Customers/CreateSingle/Request.ts +2 -6
  64. package/src/customers/Customers/GetMany/Response.ts +2 -2
  65. package/src/customers/Customers/GetSingle/Response.ts +2 -2
  66. package/src/invoices/Zones/DeleteSingle/Response.ts +4 -1
  67. package/src/invoices/Zones/GetMany/Request.ts +8 -1
  68. package/src/invoices/Zones/GetMany/Response.ts +8 -1
  69. package/src/system/Cities/GetMany/Response.ts +3 -6
  70. package/src/system/Cities/GetSingle/Response.ts +4 -0
  71. package/src/system/Cities/index.ts +1 -0
  72. package/src/system/Countries/GetMany/Response.ts +3 -6
  73. package/src/system/Countries/GetSingle/Response.ts +4 -0
  74. package/src/system/Countries/index.ts +1 -0
  75. package/src/system/States/GetMany/Response.ts +3 -6
  76. package/src/system/States/GetSingle/Response.ts +4 -0
  77. package/src/system/States/index.ts +1 -0
  78. package/lib/customers/Branches/UpdateDefault/Request.d.ts +0 -8
  79. package/lib/customers/Branches/UpdateDefault/Request.js.map +0 -1
  80. package/lib/customers/Branches/UpdateDefault/Response.d.ts +0 -4
  81. package/lib/customers/Branches/UpdateDefault/Response.js.map +0 -1
  82. package/src/customers/Branches/UpdateDefault/Request.ts +0 -8
  83. package/src/customers/Branches/UpdateDefault/Response.ts +0 -4
  84. /package/lib/customers/Branches/{UpdateDefault → CreateMany}/Request.js +0 -0
  85. /package/lib/customers/Branches/{UpdateDefault → CreateMany}/Response.js +0 -0
@@ -0,0 +1,4 @@
1
+ import { CustomerBranchesCreateSingleRequest } from '../CreateSingle/Request';
2
+ export interface CustomersBranchesCreateManyRequest {
3
+ data: CustomerBranchesCreateSingleRequest[];
4
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../src/customers/Branches/CreateMany/Request.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export interface CustomersBranchesCreateManyResponse {
2
+ id: string[];
3
+ message: string;
4
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../src/customers/Branches/CreateMany/Response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export interface CustomerBranchesDeleteManyRequest {
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/customers/Branches/DeleteMany/Request.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export interface CustomerBranchesDeleteManyResponse {
2
+ ids: 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/customers/Branches/DeleteMany/Response.ts"],"names":[],"mappings":""}
@@ -1,8 +1,6 @@
1
- import { SystemCityMany } from '../../../system/Cities';
2
- import { SystemCountryMany } from '../../../system/Countries';
3
- import { SystemStateMany } from '../../../system/States';
1
+ import { SystemCitiesGetSingleResponse, SystemCountriesGetSingleReponse, SystemStatesGetSingleResponse } from '../../../system';
4
2
  import { CustomerBranchesContactInfo } from '../interfaces';
5
- export interface CustomerBranchesMany {
3
+ export interface CustomerBranchesGetMany {
6
4
  id: string;
7
5
  name: string;
8
6
  contactName: string;
@@ -11,10 +9,13 @@ export interface CustomerBranchesMany {
11
9
  address2: string;
12
10
  zipcode: string;
13
11
  default: boolean;
14
- city: SystemCityMany;
15
- country: SystemCountryMany;
16
- state: SystemStateMany;
12
+ city: SystemCitiesGetSingleResponse;
13
+ country: SystemCountriesGetSingleReponse;
14
+ state: SystemStatesGetSingleResponse;
17
15
  }
18
- export interface CustomerBranchesManyResponse {
19
- data: CustomerBranchesMany[];
16
+ export interface CustomerBranchesGetManyResponse {
17
+ data: CustomerBranchesGetMany[];
18
+ count: number;
19
+ page: number;
20
+ limit: number;
20
21
  }
@@ -1,6 +1,6 @@
1
- import { SystemCityMany, SystemCountryMany, SystemStateMany } from '../../../system';
1
+ import { SystemCountriesGetSingleReponse, SystemStatesGetSingleResponse } from '../../../system';
2
2
  import { CustomerBranchesContactInfo } from '../interfaces';
3
- export interface CustomerBranchesSingle {
3
+ export interface CustomerBranchesGetSingle {
4
4
  id: string;
5
5
  name: string;
6
6
  contactName: string;
@@ -9,10 +9,10 @@ export interface CustomerBranchesSingle {
9
9
  address2: string;
10
10
  zipcode: string;
11
11
  default: boolean;
12
- city: SystemCityMany;
13
- country: SystemCountryMany;
14
- state: SystemStateMany;
12
+ city: SystemCountriesGetSingleReponse;
13
+ country: SystemCountriesGetSingleReponse;
14
+ state: SystemStatesGetSingleResponse;
15
15
  }
16
- export interface CustomerBranchesSingleResponse {
17
- data: CustomerBranchesSingle;
16
+ export interface CustomerBranchesGetSingleResponse {
17
+ data: CustomerBranchesGetSingle;
18
18
  }
@@ -1,4 +1,4 @@
1
1
  import { CustomerBranchesUpdateSingleRequest } from '../UpdateSingle/Request';
2
2
  export interface CustomerBranchesUpdateManyRequest {
3
- branch: CustomerBranchesUpdateSingleRequest;
3
+ data: CustomerBranchesUpdateSingleRequest[];
4
4
  }
@@ -0,0 +1,2 @@
1
+ import { CustomersBranches } from '../interfaces';
2
+ export type CustomersBranchesUpdateSingleDefaultRequest = Pick<CustomersBranches, 'default'>;
@@ -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/customers/Branches/UpdateSingleDefault/Request.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export interface CustomersBranchesUpdateSingleDefaultResponse {
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/customers/Branches/UpdateSingleDefault/Response.ts"],"names":[],"mappings":""}
@@ -1,10 +1,14 @@
1
+ export * from './CreateMany/Request';
2
+ export * from './CreateMany/Response';
1
3
  export * from './CreateSingle/Request';
4
+ export * from './DeleteMany/Request';
5
+ export * from './DeleteMany/Response';
2
6
  export * from './DeleteSingle/Response';
3
7
  export * from './GetMany/Request';
4
8
  export * from './GetMany/Response';
5
- export * from './UpdateDefault/Request';
6
- export * from './UpdateDefault/Response';
7
9
  export * from './UpdateMany/Request';
8
10
  export * from './UpdateMany/Response';
9
11
  export * from './UpdateSingle/Request';
10
12
  export * from './UpdateSingle/Response';
13
+ export * from './UpdateSingleDefault/Request';
14
+ export * from './UpdateSingleDefault/Response';
@@ -14,14 +14,18 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./CreateMany/Request"), exports);
18
+ __exportStar(require("./CreateMany/Response"), exports);
17
19
  __exportStar(require("./CreateSingle/Request"), exports);
20
+ __exportStar(require("./DeleteMany/Request"), exports);
21
+ __exportStar(require("./DeleteMany/Response"), exports);
18
22
  __exportStar(require("./DeleteSingle/Response"), exports);
19
23
  __exportStar(require("./GetMany/Request"), exports);
20
24
  __exportStar(require("./GetMany/Response"), exports);
21
- __exportStar(require("./UpdateDefault/Request"), exports);
22
- __exportStar(require("./UpdateDefault/Response"), exports);
23
25
  __exportStar(require("./UpdateMany/Request"), exports);
24
26
  __exportStar(require("./UpdateMany/Response"), exports);
25
27
  __exportStar(require("./UpdateSingle/Request"), exports);
26
28
  __exportStar(require("./UpdateSingle/Response"), exports);
29
+ __exportStar(require("./UpdateSingleDefault/Request"), exports);
30
+ __exportStar(require("./UpdateSingleDefault/Response"), exports);
27
31
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/customers/Branches/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAsC;AACtC,0DAAuC;AACvC,oDAAiC;AACjC,qDAAkC;AAClC,0DAAuC;AACvC,2DAAwC;AACxC,uDAAoC;AACpC,wDAAqC;AACrC,yDAAsC;AACtC,0DAAuC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/customers/Branches/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAoC;AACpC,wDAAqC;AACrC,yDAAsC;AACtC,uDAAoC;AACpC,wDAAqC;AACrC,0DAAuC;AACvC,oDAAiC;AACjC,qDAAkC;AAClC,uDAAoC;AACpC,wDAAqC;AACrC,yDAAsC;AACtC,0DAAuC;AACvC,gEAA6C;AAC7C,iEAA8C"}
@@ -1,4 +1,21 @@
1
+ import { SystemCitiesGetSingleResponse, SystemCountriesGetSingleReponse, SystemStatesGetSingleResponse } from '../../system';
1
2
  export interface CustomerBranchesContactInfo {
2
3
  phones: string[];
3
4
  emails: string[];
4
5
  }
6
+ export interface CustomersBranches {
7
+ id: string;
8
+ name: string;
9
+ contactName: string;
10
+ contactInfo: CustomerBranchesContactInfo;
11
+ address1: string;
12
+ address2: string;
13
+ zipcode: string;
14
+ default: boolean;
15
+ city: SystemCitiesGetSingleResponse;
16
+ country: SystemCountriesGetSingleReponse;
17
+ state: SystemStatesGetSingleResponse;
18
+ createdAt: Date;
19
+ updatedAt: Date;
20
+ deletedAt: Date;
21
+ }
@@ -2,16 +2,12 @@ import { CustomerBranchesCreateSingleRequest } from '../../Branches';
2
2
  export interface CustomersCreateSingleRequest {
3
3
  name: string;
4
4
  shortName: string;
5
- isProvider: boolean;
6
- isCustomer: boolean;
7
5
  dui?: string;
8
6
  nrc?: string;
9
7
  nit?: string;
10
8
  giro?: string;
11
- isActiveCustomer?: boolean;
12
- isActiveProvider?: boolean;
13
- isUsedCustomer?: boolean;
14
- isUsedProvider?: boolean;
9
+ active?: boolean;
10
+ used?: boolean;
15
11
  customerTaxerType: number;
16
12
  personType: number;
17
13
  customerType: number;
@@ -1,5 +1,5 @@
1
1
  import { SystemPersonTypeMany, SystemSellingTypeMany, SystemTaxerTypesMany, SystemTypeNaturalMany } from '../../../system';
2
- import { CustomerBranchesMany } from '../../Branches';
2
+ import { CustomerBranchesGetMany } from '../../Branches';
3
3
  export interface CustomerGetMany {
4
4
  id: string;
5
5
  name: string;
@@ -19,7 +19,7 @@ export interface CustomerGetMany {
19
19
  customerTypeNatural: SystemTypeNaturalMany | null;
20
20
  customerType: SystemSellingTypeMany;
21
21
  customerTaxerType: SystemTaxerTypesMany;
22
- branch: CustomerBranchesMany;
22
+ branch: CustomerBranchesGetMany;
23
23
  }
24
24
  export interface CustomerGetManyResponse {
25
25
  data: CustomerGetMany[];
@@ -2,7 +2,7 @@ import { SystemPersonTypeMany } from '../../../system/PersonTypes/GetMany/Respon
2
2
  import { SystemSellingTypeMany } from '../../../system/SellingTypes/GetMany/Response';
3
3
  import { SystemTaxerTypesMany } from '../../../system/TaxerTypes/GetMany/Response';
4
4
  import { SystemTypeNaturalMany } from '../../../system/TypeNaturals/GetMany/Response';
5
- import { CustomerBranchesMany } from '../../Branches/GetMany/Response';
5
+ import { CustomerBranchesGetMany } from '../../Branches';
6
6
  export interface CustomersGetSingle {
7
7
  id: string;
8
8
  name: string;
@@ -22,7 +22,7 @@ export interface CustomersGetSingle {
22
22
  customerTypeNatural: SystemTypeNaturalMany | null;
23
23
  customerType: SystemSellingTypeMany;
24
24
  customerTaxerType: SystemTaxerTypesMany;
25
- branch: CustomerBranchesMany;
25
+ branch: CustomerBranchesGetMany;
26
26
  }
27
27
  export interface CustomersGetSingleResponse {
28
28
  data: CustomersGetSingle;
@@ -1,2 +1,4 @@
1
1
  export interface InvoicesZonesDeleteSingleResponse {
2
+ id: string;
3
+ message: string;
2
4
  }
@@ -1,2 +1,8 @@
1
1
  export interface InvoicesZonesGetManyRequest {
2
+ limit: number;
3
+ page: number;
4
+ search: string;
5
+ prop: string;
6
+ order: string;
7
+ active: boolean;
2
8
  }
@@ -1,2 +1,8 @@
1
+ export interface InvoicesZonesMany {
2
+ id: string;
3
+ name: string;
4
+ active: boolean;
5
+ }
1
6
  export interface InvoicesZonesGetManyResponse {
7
+ data: InvoicesZonesMany[];
2
8
  }
@@ -1,7 +1,4 @@
1
- export interface SystemCityMany {
2
- id: number;
3
- name: string;
4
- }
5
- export interface SystemCityManyResponse {
6
- data: SystemCityMany[];
1
+ import { SystemCitiesGetSingleResponse } from '../GetSingle/Response';
2
+ export interface SystemCitiesGetManyResponse {
3
+ data: SystemCitiesGetSingleResponse[];
7
4
  }
@@ -0,0 +1,4 @@
1
+ export interface SystemCitiesGetSingleResponse {
2
+ id: number;
3
+ name: 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/system/Cities/GetSingle/Response.ts"],"names":[],"mappings":""}
@@ -1 +1,2 @@
1
1
  export * from './GetMany/Response';
2
+ export * from './GetSingle/Response';
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./GetMany/Response"), exports);
18
+ __exportStar(require("./GetSingle/Response"), exports);
18
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/Cities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAkC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/Cities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAkC;AAClC,uDAAoC"}
@@ -1,7 +1,4 @@
1
- export interface SystemCountryMany {
2
- id: number;
3
- name: string;
4
- }
5
- export interface SystemCountryManyResponse {
6
- data: SystemCountryMany[];
1
+ import { SystemCountriesGetSingleReponse } from '../GetSingle/Response';
2
+ export interface SystemCountriesGetManyReponse {
3
+ data: SystemCountriesGetSingleReponse[];
7
4
  }
@@ -0,0 +1,4 @@
1
+ export interface SystemCountriesGetSingleReponse {
2
+ id: number;
3
+ name: 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/system/Countries/GetSingle/Response.ts"],"names":[],"mappings":""}
@@ -1 +1,2 @@
1
1
  export * from './GetMany/Response';
2
+ export * from './GetSingle/Response';
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./GetMany/Response"), exports);
18
+ __exportStar(require("./GetSingle/Response"), exports);
18
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/Countries/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAkC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/Countries/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAkC;AAClC,uDAAoC"}
@@ -1,7 +1,4 @@
1
- export interface SystemStateMany {
2
- id: number;
3
- name: string;
4
- }
5
- export interface SystemStateManyResponse {
6
- data: SystemStateMany[];
1
+ import { SystemStatesGetSingleResponse } from '../GetSingle/Response';
2
+ export interface SystemStatesGetManyResponse {
3
+ data: SystemStatesGetSingleResponse[];
7
4
  }
@@ -0,0 +1,4 @@
1
+ export interface SystemStatesGetSingleResponse {
2
+ id: number;
3
+ name: 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/system/States/GetSingle/Response.ts"],"names":[],"mappings":""}
@@ -1 +1,2 @@
1
1
  export * from './GetMany/Response';
2
+ export * from './GetSingle/Response';
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./GetMany/Response"), exports);
18
+ __exportStar(require("./GetSingle/Response"), exports);
18
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/States/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAkC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/States/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAkC;AAClC,uDAAoC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.1.94",
3
+ "version": "0.1.96",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",
@@ -0,0 +1,5 @@
1
+ import { CustomerBranchesCreateSingleRequest } from '../CreateSingle/Request'
2
+
3
+ export interface CustomersBranchesCreateManyRequest {
4
+ data: CustomerBranchesCreateSingleRequest[]
5
+ }
@@ -0,0 +1,4 @@
1
+ export interface CustomersBranchesCreateManyResponse {
2
+ id: string[]
3
+ message: string
4
+ }
@@ -0,0 +1,3 @@
1
+ export interface CustomerBranchesDeleteManyRequest {
2
+ ids: string[]
3
+ }
@@ -0,0 +1,4 @@
1
+ export interface CustomerBranchesDeleteManyResponse {
2
+ ids: string[]
3
+ message: string
4
+ }
@@ -1,9 +1,11 @@
1
- import { SystemCityMany } from '../../../system/Cities'
2
- import { SystemCountryMany } from '../../../system/Countries'
3
- import { SystemStateMany } from '../../../system/States'
1
+ import {
2
+ SystemCitiesGetSingleResponse,
3
+ SystemCountriesGetSingleReponse,
4
+ SystemStatesGetSingleResponse,
5
+ } from '../../../system'
4
6
  import { CustomerBranchesContactInfo } from '../interfaces'
5
7
 
6
- export interface CustomerBranchesMany {
8
+ export interface CustomerBranchesGetMany {
7
9
  id: string
8
10
  name: string
9
11
  contactName: string
@@ -12,11 +14,14 @@ export interface CustomerBranchesMany {
12
14
  address2: string
13
15
  zipcode: string
14
16
  default: boolean
15
- city: SystemCityMany
16
- country: SystemCountryMany
17
- state: SystemStateMany
17
+ city: SystemCitiesGetSingleResponse
18
+ country: SystemCountriesGetSingleReponse
19
+ state: SystemStatesGetSingleResponse
18
20
  }
19
21
 
20
- export interface CustomerBranchesManyResponse {
21
- data: CustomerBranchesMany[]
22
+ export interface CustomerBranchesGetManyResponse {
23
+ data: CustomerBranchesGetMany[]
24
+ count: number
25
+ page: number
26
+ limit: number
22
27
  }
@@ -1,7 +1,7 @@
1
- import { SystemCityMany, SystemCountryMany, SystemStateMany } from '../../../system'
1
+ import { SystemCountriesGetSingleReponse, SystemStatesGetSingleResponse } from '../../../system'
2
2
  import { CustomerBranchesContactInfo } from '../interfaces'
3
3
 
4
- export interface CustomerBranchesSingle {
4
+ export interface CustomerBranchesGetSingle {
5
5
  id: string
6
6
  name: string
7
7
  contactName: string
@@ -10,11 +10,11 @@ export interface CustomerBranchesSingle {
10
10
  address2: string
11
11
  zipcode: string
12
12
  default: boolean
13
- city: SystemCityMany
14
- country: SystemCountryMany
15
- state: SystemStateMany
13
+ city: SystemCountriesGetSingleReponse
14
+ country: SystemCountriesGetSingleReponse
15
+ state: SystemStatesGetSingleResponse
16
16
  }
17
17
 
18
- export interface CustomerBranchesSingleResponse {
19
- data: CustomerBranchesSingle
18
+ export interface CustomerBranchesGetSingleResponse {
19
+ data: CustomerBranchesGetSingle
20
20
  }
@@ -1,5 +1,5 @@
1
1
  import { CustomerBranchesUpdateSingleRequest } from '../UpdateSingle/Request'
2
2
 
3
3
  export interface CustomerBranchesUpdateManyRequest {
4
- branch: CustomerBranchesUpdateSingleRequest
4
+ data: CustomerBranchesUpdateSingleRequest[]
5
5
  }
@@ -0,0 +1,3 @@
1
+ import { CustomersBranches } from '../interfaces'
2
+
3
+ export type CustomersBranchesUpdateSingleDefaultRequest = Pick<CustomersBranches, 'default'>
@@ -0,0 +1,4 @@
1
+ export interface CustomersBranchesUpdateSingleDefaultResponse {
2
+ id: string
3
+ message: string
4
+ }
@@ -1,10 +1,14 @@
1
+ export * from './CreateMany/Request'
2
+ export * from './CreateMany/Response'
1
3
  export * from './CreateSingle/Request'
4
+ export * from './DeleteMany/Request'
5
+ export * from './DeleteMany/Response'
2
6
  export * from './DeleteSingle/Response'
3
7
  export * from './GetMany/Request'
4
8
  export * from './GetMany/Response'
5
- export * from './UpdateDefault/Request'
6
- export * from './UpdateDefault/Response'
7
9
  export * from './UpdateMany/Request'
8
10
  export * from './UpdateMany/Response'
9
11
  export * from './UpdateSingle/Request'
10
12
  export * from './UpdateSingle/Response'
13
+ export * from './UpdateSingleDefault/Request'
14
+ export * from './UpdateSingleDefault/Response'
@@ -1,4 +1,27 @@
1
+ import {
2
+ SystemCitiesGetSingleResponse,
3
+ SystemCountriesGetSingleReponse,
4
+ SystemStatesGetSingleResponse,
5
+ } from '../../system'
6
+
1
7
  export interface CustomerBranchesContactInfo {
2
8
  phones: string[]
3
9
  emails: string[]
4
10
  }
11
+
12
+ export interface CustomersBranches {
13
+ id: string
14
+ name: string
15
+ contactName: string
16
+ contactInfo: CustomerBranchesContactInfo
17
+ address1: string
18
+ address2: string
19
+ zipcode: string
20
+ default: boolean
21
+ city: SystemCitiesGetSingleResponse
22
+ country: SystemCountriesGetSingleReponse
23
+ state: SystemStatesGetSingleResponse
24
+ createdAt: Date
25
+ updatedAt: Date
26
+ deletedAt: Date
27
+ }
@@ -3,16 +3,12 @@ import { CustomerBranchesCreateSingleRequest } from '../../Branches'
3
3
  export interface CustomersCreateSingleRequest {
4
4
  name: string
5
5
  shortName: string
6
- isProvider: boolean
7
- isCustomer: boolean
8
6
  dui?: string
9
7
  nrc?: string
10
8
  nit?: string
11
9
  giro?: string
12
- isActiveCustomer?: boolean
13
- isActiveProvider?: boolean
14
- isUsedCustomer?: boolean
15
- isUsedProvider?: boolean
10
+ active?: boolean
11
+ used?: boolean
16
12
  customerTaxerType: number
17
13
  personType: number
18
14
  customerType: number
@@ -4,7 +4,7 @@ import {
4
4
  SystemTaxerTypesMany,
5
5
  SystemTypeNaturalMany,
6
6
  } from '../../../system'
7
- import { CustomerBranchesMany } from '../../Branches'
7
+ import { CustomerBranchesGetMany } from '../../Branches'
8
8
 
9
9
  export interface CustomerGetMany {
10
10
  id: string
@@ -25,7 +25,7 @@ export interface CustomerGetMany {
25
25
  customerTypeNatural: SystemTypeNaturalMany | null
26
26
  customerType: SystemSellingTypeMany
27
27
  customerTaxerType: SystemTaxerTypesMany
28
- branch: CustomerBranchesMany
28
+ branch: CustomerBranchesGetMany
29
29
  }
30
30
 
31
31
  export interface CustomerGetManyResponse {
@@ -2,7 +2,7 @@ import { SystemPersonTypeMany } from '../../../system/PersonTypes/GetMany/Respon
2
2
  import { SystemSellingTypeMany } from '../../../system/SellingTypes/GetMany/Response'
3
3
  import { SystemTaxerTypesMany } from '../../../system/TaxerTypes/GetMany/Response'
4
4
  import { SystemTypeNaturalMany } from '../../../system/TypeNaturals/GetMany/Response'
5
- import { CustomerBranchesMany } from '../../Branches/GetMany/Response'
5
+ import { CustomerBranchesGetMany } from '../../Branches'
6
6
 
7
7
  export interface CustomersGetSingle {
8
8
  id: string
@@ -23,7 +23,7 @@ export interface CustomersGetSingle {
23
23
  customerTypeNatural: SystemTypeNaturalMany | null
24
24
  customerType: SystemSellingTypeMany
25
25
  customerTaxerType: SystemTaxerTypesMany
26
- branch: CustomerBranchesMany
26
+ branch: CustomerBranchesGetMany
27
27
  }
28
28
 
29
29
  export interface CustomersGetSingleResponse {
@@ -1 +1,4 @@
1
- export interface InvoicesZonesDeleteSingleResponse {}
1
+ export interface InvoicesZonesDeleteSingleResponse {
2
+ id: string
3
+ message: string
4
+ }
@@ -1 +1,8 @@
1
- export interface InvoicesZonesGetManyRequest {}
1
+ export interface InvoicesZonesGetManyRequest {
2
+ limit: number
3
+ page: number
4
+ search: string
5
+ prop: string
6
+ order: string
7
+ active: boolean
8
+ }
@@ -1 +1,8 @@
1
- export interface InvoicesZonesGetManyResponse {}
1
+ export interface InvoicesZonesMany {
2
+ id: string
3
+ name: string
4
+ active: boolean
5
+ }
6
+ export interface InvoicesZonesGetManyResponse {
7
+ data: InvoicesZonesMany[]
8
+ }
@@ -1,8 +1,5 @@
1
- export interface SystemCityMany {
2
- id: number
3
- name: string
4
- }
1
+ import { SystemCitiesGetSingleResponse } from '../GetSingle/Response'
5
2
 
6
- export interface SystemCityManyResponse {
7
- data: SystemCityMany[]
3
+ export interface SystemCitiesGetManyResponse {
4
+ data: SystemCitiesGetSingleResponse[]
8
5
  }
@@ -0,0 +1,4 @@
1
+ export interface SystemCitiesGetSingleResponse {
2
+ id: number
3
+ name: string
4
+ }
@@ -1 +1,2 @@
1
1
  export * from './GetMany/Response'
2
+ export * from './GetSingle/Response'
@@ -1,8 +1,5 @@
1
- export interface SystemCountryMany {
2
- id: number
3
- name: string
4
- }
1
+ import { SystemCountriesGetSingleReponse } from '../GetSingle/Response'
5
2
 
6
- export interface SystemCountryManyResponse {
7
- data: SystemCountryMany[]
3
+ export interface SystemCountriesGetManyReponse {
4
+ data: SystemCountriesGetSingleReponse[]
8
5
  }
@@ -0,0 +1,4 @@
1
+ export interface SystemCountriesGetSingleReponse {
2
+ id: number
3
+ name: string
4
+ }
@@ -1 +1,2 @@
1
1
  export * from './GetMany/Response'
2
+ export * from './GetSingle/Response'
@@ -1,8 +1,5 @@
1
- export interface SystemStateMany {
2
- id: number
3
- name: string
4
- }
1
+ import { SystemStatesGetSingleResponse } from '../GetSingle/Response'
5
2
 
6
- export interface SystemStateManyResponse {
7
- data: SystemStateMany[]
3
+ export interface SystemStatesGetManyResponse {
4
+ data: SystemStatesGetSingleResponse[]
8
5
  }
@@ -0,0 +1,4 @@
1
+ export interface SystemStatesGetSingleResponse {
2
+ id: number
3
+ name: string
4
+ }
@@ -1 +1,2 @@
1
1
  export * from './GetMany/Response'
2
+ export * from './GetSingle/Response'
@@ -1,8 +0,0 @@
1
- export interface CustomerBranchesUpdateDefaultRequest {
2
- limit?: number;
3
- page?: number;
4
- search?: string;
5
- prop?: string;
6
- order?: string;
7
- active?: boolean;
8
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../src/customers/Branches/UpdateDefault/Request.ts"],"names":[],"mappings":""}
@@ -1,4 +0,0 @@
1
- export interface CustomerBranchesUpdateDefaultResponse {
2
- id: string;
3
- message: string;
4
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../src/customers/Branches/UpdateDefault/Response.ts"],"names":[],"mappings":""}
@@ -1,8 +0,0 @@
1
- export interface CustomerBranchesUpdateDefaultRequest {
2
- limit?: number
3
- page?: number
4
- search?: string
5
- prop?: string
6
- order?: string
7
- active?: boolean
8
- }
@@ -1,4 +0,0 @@
1
- export interface CustomerBranchesUpdateDefaultResponse {
2
- id: string
3
- message: string
4
- }