@openbox/shared-types 0.2.32 → 0.2.34

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 (165) hide show
  1. package/lib/accounting/Catalogs/CreateMany/Request.d.ts +2 -2
  2. package/lib/accounting/Catalogs/CreateMany/Response.d.ts +2 -2
  3. package/lib/accounting/Catalogs/CreateSingle/Request.d.ts +2 -0
  4. package/lib/{services/Services/services.interface.js → accounting/Catalogs/CreateSingle/Request.js} +1 -1
  5. package/lib/accounting/Catalogs/CreateSingle/Request.js.map +1 -0
  6. package/lib/accounting/Catalogs/CreateSingle/Response.d.ts +2 -0
  7. package/lib/{customers/Customers/customers.interfaces.js → accounting/Catalogs/CreateSingle/Response.js} +1 -1
  8. package/lib/accounting/Catalogs/CreateSingle/Response.js.map +1 -0
  9. package/lib/accounting/Catalogs/DeleteSingle/Response.d.ts +2 -2
  10. package/lib/accounting/Catalogs/GetMany/Request.d.ts +2 -2
  11. package/lib/accounting/Catalogs/GetMany/Response.d.ts +7 -2
  12. package/lib/accounting/Catalogs/UpdateSingle/Request.d.ts +2 -2
  13. package/lib/accounting/Catalogs/UpdateSingle/Response.d.ts +2 -2
  14. package/lib/accounting/Catalogs/catalog.types.d.ts +15 -0
  15. package/lib/{system/Logs/system.logs.interfaces.js → accounting/Catalogs/catalog.types.js} +1 -1
  16. package/lib/accounting/Catalogs/catalog.types.js.map +1 -0
  17. package/lib/accounting/Catalogs/index.d.ts +2 -0
  18. package/lib/accounting/Catalogs/index.js +2 -0
  19. package/lib/accounting/Catalogs/index.js.map +1 -1
  20. package/lib/customers/Branches/CreateSingle/Request.d.ts +1 -1
  21. package/lib/customers/Branches/GetMany/Response.d.ts +1 -1
  22. package/lib/customers/Branches/GetSingle/Response.d.ts +1 -1
  23. package/lib/customers/Branches/UpdateSingle/Request.d.ts +1 -1
  24. package/lib/customers/Branches/UpdateSingleDefault/Request.d.ts +1 -1
  25. package/lib/customers/Branches/customers.branches.types.d.ts +23 -0
  26. package/lib/{system/Cities/system.cities.interfaces.js → customers/Branches/customers.branches.types.js} +1 -1
  27. package/lib/customers/Branches/customers.branches.types.js.map +1 -0
  28. package/lib/customers/Customers/CreateSingle/Request.d.ts +1 -1
  29. package/lib/customers/Customers/GetMany/Response.d.ts +2 -2
  30. package/lib/customers/Customers/GetSingle/Response.d.ts +1 -1
  31. package/lib/customers/Customers/UpdateSingle/Request.d.ts +1 -1
  32. package/lib/customers/Customers/{customers.interfaces.d.ts → customers.types.d.ts} +2 -2
  33. package/lib/customers/Customers/customers.types.js +3 -0
  34. package/lib/customers/Customers/customers.types.js.map +1 -0
  35. package/lib/invoices/Calculation/GetSingle/Response.d.ts +2 -2
  36. package/lib/invoices/Invoices/invoices.interfaces.d.ts +2 -2
  37. package/lib/services/SellingTypes/GetSingle/Response.d.ts +1 -1
  38. package/lib/services/SellingTypes/{services.selling-types.interface.d.ts → services.selling-types.types.d.ts} +1 -1
  39. package/lib/{system/Countries/system.countries.interfaces.js → services/SellingTypes/services.selling-types.types.js} +1 -1
  40. package/lib/services/SellingTypes/services.selling-types.types.js.map +1 -0
  41. package/lib/services/Services/CreateSingle/Request.d.ts +1 -1
  42. package/lib/services/Services/GetMany/Response.d.ts +1 -1
  43. package/lib/services/Services/GetSingle/Response.d.ts +1 -1
  44. package/lib/services/Services/UpdateSingle/Request.d.ts +1 -1
  45. package/lib/services/Services/{services.interface.d.ts → services.types.d.ts} +1 -1
  46. package/lib/services/Services/services.types.js +3 -0
  47. package/lib/services/Services/services.types.js.map +1 -0
  48. package/lib/system/Cities/GetSingle/Response.d.ts +1 -1
  49. package/lib/system/Cities/{system.cities.interfaces.d.ts → system.cities.types.d.ts} +1 -1
  50. package/lib/system/Cities/system.cities.types.js +3 -0
  51. package/lib/system/Cities/system.cities.types.js.map +1 -0
  52. package/lib/system/Countries/GetSingle/Response.d.ts +1 -1
  53. package/lib/system/Countries/system.countries.types.js +3 -0
  54. package/lib/system/Countries/system.countries.types.js.map +1 -0
  55. package/lib/system/Directory/CreateSingle/Request.d.ts +1 -1
  56. package/lib/system/Directory/GetMany/Request.d.ts +1 -1
  57. package/lib/system/Directory/GetMany/Response.d.ts +1 -1
  58. package/lib/system/Directory/UpdateSingle/Request.d.ts +1 -1
  59. package/lib/system/Directory/{system.directory.interfaces.d.ts → system.directory.types.d.ts} +2 -2
  60. package/lib/system/Directory/system.directory.types.js +3 -0
  61. package/lib/system/Directory/system.directory.types.js.map +1 -0
  62. package/lib/system/Genders/system.genders.types.js +3 -0
  63. package/lib/system/Genders/system.genders.types.js.map +1 -0
  64. package/lib/system/Logs/system.logs.types.js +3 -0
  65. package/lib/system/Logs/system.logs.types.js.map +1 -0
  66. package/lib/system/NaturalTypes/GetSingle/Response.d.ts +1 -1
  67. package/lib/system/NaturalTypes/system.natural-types.types.js +3 -0
  68. package/lib/system/NaturalTypes/system.natural-types.types.js.map +1 -0
  69. package/lib/system/PersonTypes/GetSingle/Response.d.ts +1 -1
  70. package/lib/system/{Genders/system.genders.interfaces.js → PersonTypes/system.person-types.types.js} +1 -1
  71. package/lib/system/PersonTypes/system.person-types.types.js.map +1 -0
  72. package/lib/system/SellingTypes/GetSingle/Response.d.ts +1 -1
  73. package/lib/system/SellingTypes/system.selling-types.types.js +3 -0
  74. package/lib/system/SellingTypes/system.selling-types.types.js.map +1 -0
  75. package/lib/system/States/GetSingle/Response.d.ts +1 -1
  76. package/lib/system/States/{system.states.interfaces.d.ts → system.states.types.d.ts} +1 -1
  77. package/lib/system/States/system.states.types.js +3 -0
  78. package/lib/system/States/system.states.types.js.map +1 -0
  79. package/lib/system/TaxerTypes/GetSingle/Response.d.ts +1 -1
  80. package/lib/system/TaxerTypes/system.taxer-types.types.js +3 -0
  81. package/lib/system/TaxerTypes/system.taxer-types.types.js.map +1 -0
  82. package/package.json +1 -1
  83. package/src/accounting/Catalogs/CreateMany/Request.ts +3 -1
  84. package/src/accounting/Catalogs/CreateMany/Response.ts +3 -1
  85. package/src/accounting/Catalogs/CreateSingle/Request.ts +3 -0
  86. package/src/accounting/Catalogs/CreateSingle/Response.ts +3 -0
  87. package/src/accounting/Catalogs/DeleteSingle/Response.ts +3 -1
  88. package/src/accounting/Catalogs/GetMany/Request.ts +3 -1
  89. package/src/accounting/Catalogs/GetMany/Response.ts +6 -1
  90. package/src/accounting/Catalogs/UpdateSingle/Request.ts +3 -1
  91. package/src/accounting/Catalogs/UpdateSingle/Response.ts +3 -1
  92. package/src/accounting/Catalogs/catalog.types.ts +19 -0
  93. package/src/accounting/Catalogs/index.ts +2 -0
  94. package/src/customers/Branches/CreateSingle/Request.ts +1 -1
  95. package/src/customers/Branches/GetMany/Response.ts +1 -1
  96. package/src/customers/Branches/GetSingle/Response.ts +1 -1
  97. package/src/customers/Branches/UpdateSingle/Request.ts +1 -1
  98. package/src/customers/Branches/UpdateSingleDefault/Request.ts +1 -1
  99. package/src/customers/Branches/customers.branches.types.ts +35 -0
  100. package/src/customers/Customers/CreateSingle/Request.ts +1 -1
  101. package/src/customers/Customers/GetMany/Response.ts +2 -2
  102. package/src/customers/Customers/GetSingle/Response.ts +1 -1
  103. package/src/customers/Customers/UpdateSingle/Request.ts +1 -1
  104. package/src/customers/Customers/{customers.interfaces.ts → customers.types.ts} +2 -2
  105. package/src/invoices/Calculation/GetSingle/Response.ts +2 -2
  106. package/src/invoices/Invoices/invoices.interfaces.ts +2 -2
  107. package/src/services/SellingTypes/GetSingle/Response.ts +1 -1
  108. package/src/services/SellingTypes/{services.selling-types.interface.ts → services.selling-types.types.ts} +1 -1
  109. package/src/services/Services/CreateSingle/Request.ts +1 -1
  110. package/src/services/Services/GetMany/Response.ts +1 -1
  111. package/src/services/Services/GetSingle/Response.ts +1 -1
  112. package/src/services/Services/UpdateSingle/Request.ts +1 -1
  113. package/src/services/Services/{services.interface.ts → services.types.ts} +1 -1
  114. package/src/system/Cities/GetSingle/Response.ts +1 -1
  115. package/src/system/Cities/{system.cities.interfaces.ts → system.cities.types.ts} +1 -1
  116. package/src/system/Countries/GetSingle/Response.ts +1 -1
  117. package/src/system/Directory/CreateSingle/Request.ts +1 -1
  118. package/src/system/Directory/GetMany/Request.ts +1 -1
  119. package/src/system/Directory/GetMany/Response.ts +1 -1
  120. package/src/system/Directory/UpdateSingle/Request.ts +1 -1
  121. package/src/system/Directory/{system.directory.interfaces.ts → system.directory.types.ts} +2 -2
  122. package/src/system/NaturalTypes/GetSingle/Response.ts +1 -1
  123. package/src/system/PersonTypes/GetSingle/Response.ts +1 -1
  124. package/src/system/SellingTypes/GetSingle/Response.ts +1 -1
  125. package/src/system/States/GetSingle/Response.ts +1 -1
  126. package/src/system/States/{system.states.interfaces.ts → system.states.types.ts} +1 -1
  127. package/src/system/TaxerTypes/GetSingle/Response.ts +1 -1
  128. package/lib/customers/Branches/customers.branches.interfaces.d.ts +0 -29
  129. package/lib/customers/Branches/customers.branches.interfaces.js +0 -3
  130. package/lib/customers/Branches/customers.branches.interfaces.js.map +0 -1
  131. package/lib/customers/Customers/customers.interfaces.js.map +0 -1
  132. package/lib/services/SellingTypes/services.selling-types.interface.js +0 -3
  133. package/lib/services/SellingTypes/services.selling-types.interface.js.map +0 -1
  134. package/lib/services/Services/services.interface.js.map +0 -1
  135. package/lib/system/Cities/system.cities.interfaces.js.map +0 -1
  136. package/lib/system/Countries/system.countries.interfaces.js.map +0 -1
  137. package/lib/system/Directory/system.directory.interfaces.js +0 -3
  138. package/lib/system/Directory/system.directory.interfaces.js.map +0 -1
  139. package/lib/system/Genders/system.genders.interfaces.js.map +0 -1
  140. package/lib/system/Logs/system.logs.interfaces.js.map +0 -1
  141. package/lib/system/NaturalTypes/system.natural-types.interfaces.js +0 -3
  142. package/lib/system/NaturalTypes/system.natural-types.interfaces.js.map +0 -1
  143. package/lib/system/PersonTypes/system.person-types.interfaces.js +0 -3
  144. package/lib/system/PersonTypes/system.person-types.interfaces.js.map +0 -1
  145. package/lib/system/SellingTypes/system.selling-types.interface.js +0 -3
  146. package/lib/system/SellingTypes/system.selling-types.interface.js.map +0 -1
  147. package/lib/system/States/system.states.interfaces.js +0 -3
  148. package/lib/system/States/system.states.interfaces.js.map +0 -1
  149. package/lib/system/TaxerTypes/system.taxer-types.interfaces.js +0 -3
  150. package/lib/system/TaxerTypes/system.taxer-types.interfaces.js.map +0 -1
  151. package/src/customers/Branches/customers.branches.interfaces.ts +0 -35
  152. /package/lib/system/Countries/{system.countries.interfaces.d.ts → system.countries.types.d.ts} +0 -0
  153. /package/lib/system/Genders/{system.genders.interfaces.d.ts → system.genders.types.d.ts} +0 -0
  154. /package/lib/system/Logs/{system.logs.interfaces.d.ts → system.logs.types.d.ts} +0 -0
  155. /package/lib/system/NaturalTypes/{system.natural-types.interfaces.d.ts → system.natural-types.types.d.ts} +0 -0
  156. /package/lib/system/PersonTypes/{system.person-types.interfaces.d.ts → system.person-types.types.d.ts} +0 -0
  157. /package/lib/system/SellingTypes/{system.selling-types.interface.d.ts → system.selling-types.types.d.ts} +0 -0
  158. /package/lib/system/TaxerTypes/{system.taxer-types.interfaces.d.ts → system.taxer-types.types.d.ts} +0 -0
  159. /package/src/system/Countries/{system.countries.interfaces.ts → system.countries.types.ts} +0 -0
  160. /package/src/system/Genders/{system.genders.interfaces.ts → system.genders.types.ts} +0 -0
  161. /package/src/system/Logs/{system.logs.interfaces.ts → system.logs.types.ts} +0 -0
  162. /package/src/system/NaturalTypes/{system.natural-types.interfaces.ts → system.natural-types.types.ts} +0 -0
  163. /package/src/system/PersonTypes/{system.person-types.interfaces.ts → system.person-types.types.ts} +0 -0
  164. /package/src/system/SellingTypes/{system.selling-types.interface.ts → system.selling-types.types.ts} +0 -0
  165. /package/src/system/TaxerTypes/{system.taxer-types.interfaces.ts → system.taxer-types.types.ts} +0 -0
@@ -0,0 +1,19 @@
1
+ export type AccountingCatalogs = {
2
+ id: string
3
+ code: string
4
+ name: string
5
+ description?: string
6
+ level: number
7
+ isParent: boolean
8
+ isAcreedora: boolean
9
+ isBalance: boolean
10
+ parentCatalog: AccountingCatalogs
11
+ }
12
+
13
+ export type AccountingCatalogsRequest = Omit<
14
+ AccountingCatalogs,
15
+ 'id' | 'level' | 'isParent' | 'parentCatalog'
16
+ > & {
17
+ parentCatalog: string
18
+ }
19
+ export type AccountingCatalogsResponse = AccountingCatalogs
@@ -1,5 +1,7 @@
1
1
  export * from './CreateMany/Request'
2
2
  export * from './CreateMany/Response'
3
+ export * from './CreateSingle/Request'
4
+ export * from './CreateSingle/Response'
3
5
  export * from './DeleteSingle/Response'
4
6
  export * from './GetMany/Request'
5
7
  export * from './GetMany/Response'
@@ -1,3 +1,3 @@
1
- import { CustomersBranchesRequest } from '../customers.branches.interfaces'
1
+ import { CustomersBranchesRequest } from '../customers.branches.types'
2
2
 
3
3
  export type CustomersBranchesCreateSingleRequest = CustomersBranchesRequest
@@ -1,5 +1,5 @@
1
1
  import { GetManyResponse } from '../../../interfaces'
2
- import { CustomersBranchesResponse } from '../customers.branches.interfaces'
2
+ import { CustomersBranchesResponse } from '../customers.branches.types'
3
3
 
4
4
  export type CustomersBranchesGetManyResponse = GetManyResponse & {
5
5
  data: Array<CustomersBranchesResponse>
@@ -1,3 +1,3 @@
1
- import { CustomersBranchesResponse } from '../customers.branches.interfaces'
1
+ import { CustomersBranchesResponse } from '../customers.branches.types'
2
2
 
3
3
  export type CustomersBranchesGetSingleResponse = CustomersBranchesResponse
@@ -1,3 +1,3 @@
1
- import { CustomersBranchesRequest } from '../customers.branches.interfaces'
1
+ import { CustomersBranchesRequest } from '../customers.branches.types'
2
2
 
3
3
  export type CustomersBranchesUpdateSingleRequest = Partial<CustomersBranchesRequest>
@@ -1,3 +1,3 @@
1
- import { CustomersBranchesRequest } from '../customers.branches.interfaces'
1
+ import { CustomersBranchesRequest } from '../customers.branches.types'
2
2
 
3
3
  export type CustomersBranchesUpdateSingleDefaultRequest = Pick<CustomersBranchesRequest, 'default'>
@@ -0,0 +1,35 @@
1
+ import { SystemCitiesResponse } from '../../system/Cities/system.cities.types'
2
+ import { SystemCountriesResponse } from '../../system/Countries/system.countries.types'
3
+ import { SystemStatesResponse } from '../../system/States/system.states.types'
4
+ import { CustomersResponse } from '../Customers/customers.types'
5
+
6
+ // export type CustomerBranchesContactInfo = {
7
+ // phones: Array<string>
8
+ // emails: Array<string>
9
+ // }
10
+
11
+ export type CustomersBranches = {
12
+ id: string
13
+ name: string
14
+ // contactName: string
15
+ // contactInfo: CustomerBranchesContactInfo
16
+ address1: string
17
+ address2?: string
18
+ zipcode?: string
19
+ default?: boolean
20
+ customer: CustomersResponse
21
+ city: SystemCitiesResponse
22
+ country: SystemCountriesResponse
23
+ state: SystemStatesResponse
24
+ }
25
+
26
+ export type CustomersBranchesRequest = Omit<
27
+ CustomersBranches,
28
+ 'id' | 'city' | 'country' | 'state' | 'customer'
29
+ > & {
30
+ customer: string
31
+ city: number
32
+ country: number
33
+ state: number
34
+ }
35
+ export type CustomersBranchesResponse = CustomersBranches
@@ -1,3 +1,3 @@
1
- import { CustomersRequest } from '../customers.interfaces'
1
+ import { CustomersRequest } from '../customers.types'
2
2
 
3
3
  export type CustomersCreateSingleRequest = CustomersRequest
@@ -1,6 +1,6 @@
1
1
  import { GetManyResponse } from '../../../interfaces'
2
- import { CustomersResponse } from '../customers.interfaces'
2
+ import { CustomersResponse } from '../customers.types'
3
3
 
4
4
  export type CustomersGetManyResponse = GetManyResponse & {
5
- data: Array<Pick<CustomersResponse, 'id' | 'name' | 'personType' | 'nit' | 'nrc' | 'active'>>
5
+ data: Array<CustomersResponse>
6
6
  }
@@ -1,3 +1,3 @@
1
- import { CustomersResponse } from '../customers.interfaces'
1
+ import { CustomersResponse } from '../customers.types'
2
2
 
3
3
  export type CustomersGetSingleResponse = CustomersResponse
@@ -1,3 +1,3 @@
1
- import { CustomersRequest } from '../customers.interfaces'
1
+ import { CustomersRequest } from '../customers.types'
2
2
 
3
3
  export type CustomersUpdateSingleRequest = Omit<Partial<CustomersRequest>, 'branch'>
@@ -3,11 +3,11 @@ 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
+ import { CustomersBranchesResponse } from '../Branches/customers.branches.types'
7
7
 
8
8
  export type Customers = {
9
9
  id: string
10
- name: string
10
+ name?: string
11
11
  name1?: string
12
12
  name2?: string
13
13
  name3?: string
@@ -1,5 +1,5 @@
1
- import { ServicesSellingTypesResponse } from '../../../services/SellingTypes/services.selling-types.interface'
2
- import { ServicesResponse } from '../../../services/Services/services.interface'
1
+ import { ServicesSellingTypesResponse } from '../../../services/SellingTypes/services.selling-types.types'
2
+ import { ServicesResponse } from '../../../services/Services/services.types'
3
3
 
4
4
  export type InvoicesCalculationsDetailsResponse = {
5
5
  id: string
@@ -1,5 +1,5 @@
1
- import { CustomersBranchesResponse } from '../../customers/Branches/customers.branches.interfaces'
2
- import { CustomersResponse } from '../../customers/Customers/customers.interfaces'
1
+ import { CustomersBranchesResponse } from '../../customers/Branches/customers.branches.types'
2
+ import { CustomersResponse } from '../../customers/Customers/customers.types'
3
3
  import { SystemNaturalTypesGetSingleResponse } from '../../system/NaturalTypes/GetSingle/Response'
4
4
  import { SystemPersonTypeGetSingleResponse } from '../../system/PersonTypes/GetSingle/Response'
5
5
  import {
@@ -1,3 +1,3 @@
1
- import { ServicesSellingTypesResponse } from '../services.selling-types.interface'
1
+ import { ServicesSellingTypesResponse } from '../services.selling-types.types'
2
2
 
3
3
  export type ServicesSellingTypesGetSingleResponse = ServicesSellingTypesResponse
@@ -1,4 +1,4 @@
1
- import { SystemSellingTypes } from '../../system/SellingTypes/system.selling-types.interface'
1
+ import { SystemSellingTypes } from '../../system/SellingTypes/system.selling-types.types'
2
2
 
3
3
  export type ServicesSellingTypes = Omit<
4
4
  SystemSellingTypes,
@@ -1,3 +1,3 @@
1
- import { ServicesRequest } from '../services.interface'
1
+ import { ServicesRequest } from '../services.types'
2
2
 
3
3
  export type ServicesCreateSingleRequest = ServicesRequest
@@ -1,5 +1,5 @@
1
1
  import { GetManyResponse } from '../../../interfaces'
2
- import { ServicesResponse } from '../services.interface'
2
+ import { ServicesResponse } from '../services.types'
3
3
 
4
4
  export type ServicesGetManyResponse = GetManyResponse & {
5
5
  data: Array<ServicesResponse & { index: number }>
@@ -1,3 +1,3 @@
1
- import { ServicesResponse } from '../services.interface'
1
+ import { ServicesResponse } from '../services.types'
2
2
 
3
3
  export type ServicesGetSingleResponse = ServicesResponse
@@ -1,3 +1,3 @@
1
- import { ServicesRequest } from '../services.interface'
1
+ import { ServicesRequest } from '../services.types'
2
2
 
3
3
  export type ServicesUpdateSingleRequest = Partial<ServicesRequest>
@@ -1,4 +1,4 @@
1
- import { ServicesSellingTypes } from '../SellingTypes/services.selling-types.interface'
1
+ import { ServicesSellingTypes } from '../SellingTypes/services.selling-types.types'
2
2
 
3
3
  export type Services = {
4
4
  id: string
@@ -1,3 +1,3 @@
1
- import { SystemCitiesResponse } from '../system.cities.interfaces'
1
+ import { SystemCitiesResponse } from '../system.cities.types'
2
2
 
3
3
  export type SystemCitiesGetSingleResponse = SystemCitiesResponse
@@ -1,4 +1,4 @@
1
- import { SystemStates } from '../States/system.states.interfaces'
1
+ import { SystemStates } from '../States/system.states.types'
2
2
 
3
3
  export type SystemCities = {
4
4
  id: number
@@ -1,3 +1,3 @@
1
- import { SystemCountriesResponse } from '../system.countries.interfaces'
1
+ import { SystemCountriesResponse } from '../system.countries.types'
2
2
 
3
3
  export type SystemCountriesGetSingleReponse = SystemCountriesResponse
@@ -1,3 +1,3 @@
1
- import { SystemDirectoryRequest } from '../system.directory.interfaces'
1
+ import { SystemDirectoryRequest } from '../system.directory.types'
2
2
 
3
3
  export type SystemDirectoryCreateSingleRequest = SystemDirectoryRequest
@@ -1,5 +1,5 @@
1
1
  import { GetManyRequest } from '../../../interfaces'
2
- import { SystemDirectoryType } from '../system.directory.interfaces'
2
+ import { SystemDirectoryType } from '../system.directory.types'
3
3
 
4
4
  export type SystemDirectoryGetManyRequest = GetManyRequest & {
5
5
  types?: Array<SystemDirectoryType>
@@ -1,5 +1,5 @@
1
1
  import { GetManyResponse } from '../../../interfaces'
2
- import { SystemDirectoryResponse } from '../system.directory.interfaces'
2
+ import { SystemDirectoryResponse } from '../system.directory.types'
3
3
 
4
4
  export type SystemDirectoryGetManyResponse = GetManyResponse & {
5
5
  data: Array<SystemDirectoryResponse & { index: number }>
@@ -1,3 +1,3 @@
1
- import { SystemDirectoryRequest } from '../system.directory.interfaces'
1
+ import { SystemDirectoryRequest } from '../system.directory.types'
2
2
 
3
3
  export type SystemDirectoryUpdateSingleRequest = Partial<SystemDirectoryRequest>
@@ -1,5 +1,5 @@
1
- import { CustomersBranchesResponse } from '../../customers/Branches/customers.branches.interfaces'
2
- import { CustomersResponse } from '../../customers/Customers/customers.interfaces'
1
+ import { CustomersBranchesResponse } from '../../customers/Branches/customers.branches.types'
2
+ import { CustomersResponse } from '../../customers/Customers/customers.types'
3
3
  import { InvoicesSellersResponse } from '../../invoices/Sellers/invoices.sellers.interface'
4
4
 
5
5
  export type SystemDirectoryType = 'phone' | 'cellphone' | 'email'
@@ -1,3 +1,3 @@
1
- import { SystemNaturalTypesResponse } from '../system.natural-types.interfaces'
1
+ import { SystemNaturalTypesResponse } from '../system.natural-types.types'
2
2
 
3
3
  export type SystemNaturalTypesGetSingleResponse = SystemNaturalTypesResponse
@@ -1,3 +1,3 @@
1
- import { SystemPersonTypesResponse } from '../system.person-types.interfaces'
1
+ import { SystemPersonTypesResponse } from '../system.person-types.types'
2
2
 
3
3
  export type SystemPersonTypeGetSingleResponse = SystemPersonTypesResponse
@@ -1,3 +1,3 @@
1
- import { SystemSellingTypesResponse } from '../system.selling-types.interface'
1
+ import { SystemSellingTypesResponse } from '../system.selling-types.types'
2
2
 
3
3
  export type SystemSellingTypeGetSingleResponse = SystemSellingTypesResponse
@@ -1,3 +1,3 @@
1
- import { SystemStatesResponse } from '../system.states.interfaces'
1
+ import { SystemStatesResponse } from '../system.states.types'
2
2
 
3
3
  export type SystemStatesGetSingleResponse = SystemStatesResponse
@@ -1,4 +1,4 @@
1
- import { SystemCountries } from '../Countries/system.countries.interfaces'
1
+ import { SystemCountries } from '../Countries/system.countries.types'
2
2
 
3
3
  export type SystemStates = {
4
4
  id: number
@@ -1,3 +1,3 @@
1
- import { SystemTaxerTypesResponse } from '../system.taxer-types.interfaces'
1
+ import { SystemTaxerTypesResponse } from '../system.taxer-types.types'
2
2
 
3
3
  export type SystemTaxerTypesGetSingleResponse = SystemTaxerTypesResponse
@@ -1,29 +0,0 @@
1
- import { SystemCities } from '../../system/Cities/system.cities.interfaces';
2
- import { SystemCountries } from '../../system/Countries/system.countries.interfaces';
3
- import { SystemStates } from '../../system/States/system.states.interfaces';
4
- import { Customers } from '../Customers/customers.interfaces';
5
- export type CustomerBranchesContactInfo = {
6
- phones: Array<string>;
7
- emails: Array<string>;
8
- };
9
- export type CustomersBranches = {
10
- id: string;
11
- name: string;
12
- contactName: string;
13
- contactInfo: CustomerBranchesContactInfo;
14
- address1: string;
15
- address2?: string;
16
- zipcode?: string;
17
- default?: boolean;
18
- customer: Customers;
19
- city: SystemCities;
20
- country: SystemCountries;
21
- state: SystemStates;
22
- };
23
- export type CustomersBranchesRequest = Omit<CustomersBranches, 'id' | 'city' | 'country' | 'state' | 'customer'> & {
24
- customer: string;
25
- city: number;
26
- country: number;
27
- state: number;
28
- };
29
- export type CustomersBranchesResponse = CustomersBranches;
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=customers.branches.interfaces.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"customers.branches.interfaces.js","sourceRoot":"","sources":["../../../src/customers/Branches/customers.branches.interfaces.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"customers.interfaces.js","sourceRoot":"","sources":["../../../src/customers/Customers/customers.interfaces.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=services.selling-types.interface.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"services.selling-types.interface.js","sourceRoot":"","sources":["../../../src/services/SellingTypes/services.selling-types.interface.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"services.interface.js","sourceRoot":"","sources":["../../../src/services/Services/services.interface.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"system.cities.interfaces.js","sourceRoot":"","sources":["../../../src/system/Cities/system.cities.interfaces.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"system.countries.interfaces.js","sourceRoot":"","sources":["../../../src/system/Countries/system.countries.interfaces.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=system.directory.interfaces.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"system.directory.interfaces.js","sourceRoot":"","sources":["../../../src/system/Directory/system.directory.interfaces.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"system.genders.interfaces.js","sourceRoot":"","sources":["../../../src/system/Genders/system.genders.interfaces.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"system.logs.interfaces.js","sourceRoot":"","sources":["../../../src/system/Logs/system.logs.interfaces.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=system.natural-types.interfaces.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"system.natural-types.interfaces.js","sourceRoot":"","sources":["../../../src/system/NaturalTypes/system.natural-types.interfaces.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=system.person-types.interfaces.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"system.person-types.interfaces.js","sourceRoot":"","sources":["../../../src/system/PersonTypes/system.person-types.interfaces.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=system.selling-types.interface.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"system.selling-types.interface.js","sourceRoot":"","sources":["../../../src/system/SellingTypes/system.selling-types.interface.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=system.states.interfaces.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"system.states.interfaces.js","sourceRoot":"","sources":["../../../src/system/States/system.states.interfaces.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=system.taxer-types.interfaces.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"system.taxer-types.interfaces.js","sourceRoot":"","sources":["../../../src/system/TaxerTypes/system.taxer-types.interfaces.ts"],"names":[],"mappings":""}
@@ -1,35 +0,0 @@
1
- import { SystemCities } from '../../system/Cities/system.cities.interfaces'
2
- import { SystemCountries } from '../../system/Countries/system.countries.interfaces'
3
- import { SystemStates } from '../../system/States/system.states.interfaces'
4
- import { Customers } from '../Customers/customers.interfaces'
5
-
6
- export type CustomerBranchesContactInfo = {
7
- phones: Array<string>
8
- emails: Array<string>
9
- }
10
-
11
- export type CustomersBranches = {
12
- id: string
13
- name: string
14
- contactName: string
15
- contactInfo: CustomerBranchesContactInfo
16
- address1: string
17
- address2?: string
18
- zipcode?: string
19
- default?: boolean
20
- customer: Customers
21
- city: SystemCities
22
- country: SystemCountries
23
- state: SystemStates
24
- }
25
-
26
- export type CustomersBranchesRequest = Omit<
27
- CustomersBranches,
28
- 'id' | 'city' | 'country' | 'state' | 'customer'
29
- > & {
30
- customer: string
31
- city: number
32
- country: number
33
- state: number
34
- }
35
- export type CustomersBranchesResponse = CustomersBranches