@openbox/shared-types 0.2.17 → 0.2.19

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 (214) hide show
  1. package/lib/customers/Branches/CreateMany/Response.d.ts +2 -4
  2. package/lib/customers/Branches/CreateSingle/Response.d.ts +2 -4
  3. package/lib/customers/Branches/DeleteMany/Request.d.ts +1 -1
  4. package/lib/customers/Branches/DeleteMany/Response.d.ts +2 -4
  5. package/lib/customers/Branches/DeleteSingle/Response.d.ts +2 -4
  6. package/lib/customers/Branches/GetMany/Response.d.ts +1 -1
  7. package/lib/customers/Branches/UpdateMany/Request.d.ts +3 -1
  8. package/lib/customers/Branches/UpdateMany/Response.d.ts +2 -4
  9. package/lib/customers/Branches/UpdateSingle/Response.d.ts +2 -4
  10. package/lib/customers/Branches/UpdateSingleDefault/Response.d.ts +2 -4
  11. package/lib/customers/Branches/customers.branches.interfaces.d.ts +6 -6
  12. package/lib/customers/Customers/CreateMany/Request.d.ts +1 -3
  13. package/lib/customers/Customers/CreateMany/Response.d.ts +2 -4
  14. package/lib/customers/Customers/CreateSingle/Response.d.ts +2 -4
  15. package/lib/customers/Customers/DeleteMany/Request.d.ts +3 -3
  16. package/lib/customers/Customers/DeleteMany/Response.d.ts +2 -4
  17. package/lib/customers/Customers/DeleteSingle/Response.d.ts +2 -4
  18. package/lib/customers/Customers/GetMany/Response.d.ts +1 -1
  19. package/lib/customers/Customers/GetSingle/Response.d.ts +1 -3
  20. package/lib/customers/Customers/UpdateMany/Request.d.ts +3 -3
  21. package/lib/customers/Customers/UpdateMany/Response.d.ts +2 -4
  22. package/lib/customers/Customers/UpdateManyStatuses/Request.d.ts +3 -3
  23. package/lib/customers/Customers/UpdateManyStatuses/Response.d.ts +2 -4
  24. package/lib/customers/Customers/UpdateSingle/Response.d.ts +2 -4
  25. package/lib/customers/Customers/UpdateSingleStatus/Request.d.ts +2 -2
  26. package/lib/customers/Customers/UpdateSingleStatus/Response.d.ts +2 -4
  27. package/lib/customers/Customers/customers.interfaces.d.ts +2 -2
  28. package/lib/interfaces.d.ts +9 -9
  29. package/lib/invoices/Documents/documents.interfaces.d.ts +2 -2
  30. package/lib/invoices/Invoices/invoices.interfaces.d.ts +6 -6
  31. package/lib/invoices/PaymentConditions/CreateMany/Request.d.ts +1 -3
  32. package/lib/invoices/PaymentConditions/CreateSingle/Request.d.ts +2 -2
  33. package/lib/invoices/PaymentConditions/GetMany/Response.d.ts +2 -2
  34. package/lib/invoices/PaymentConditions/GetSingle/Response.d.ts +2 -4
  35. package/lib/invoices/PaymentConditions/UpdateMany/Request.d.ts +3 -3
  36. package/lib/invoices/PaymentConditions/UpdateManyStatuses/Request.d.ts +3 -3
  37. package/lib/invoices/PaymentConditions/UpdateSingle/Request.d.ts +1 -1
  38. package/lib/invoices/PaymentConditions/UpdateSingleStatus/Request.d.ts +2 -2
  39. package/lib/invoices/PaymentConditions/UpdateSingleStatus/Response.d.ts +2 -4
  40. package/lib/invoices/PaymentConditions/{payment-conditions.interface.d.ts → invoices.payment-conditions.interface.d.ts} +3 -3
  41. package/lib/invoices/PaymentConditions/invoices.payment-conditions.interface.js +3 -0
  42. package/lib/invoices/PaymentConditions/invoices.payment-conditions.interface.js.map +1 -0
  43. package/lib/invoices/Sellers/CreateSingle/Request.d.ts +1 -1
  44. package/lib/invoices/Sellers/GetMany/Response.d.ts +1 -1
  45. package/lib/invoices/Sellers/GetSingle/Response.d.ts +1 -1
  46. package/lib/invoices/Sellers/UpdateMany/Request.d.ts +3 -1
  47. package/lib/invoices/Sellers/UpdateManyStatuses/Request.d.ts +1 -1
  48. package/lib/invoices/Sellers/UpdateSingle/Request.d.ts +1 -1
  49. package/lib/invoices/Sellers/UpdateSingleStatus/Request.d.ts +1 -1
  50. package/lib/invoices/Sellers/{sellers.interface.d.ts → invoices.sellers.interface.d.ts} +1 -1
  51. package/lib/invoices/{Statuses/statuses.interfaces.js → Sellers/invoices.sellers.interface.js} +1 -1
  52. package/lib/invoices/Sellers/invoices.sellers.interface.js.map +1 -0
  53. package/lib/invoices/Statuses/GetMany/Response.d.ts +2 -5
  54. package/lib/invoices/Statuses/GetSingle/Response.d.ts +2 -0
  55. package/lib/invoices/Statuses/GetSingle/Response.js.map +1 -0
  56. package/lib/invoices/Statuses/index.d.ts +1 -2
  57. package/lib/invoices/Statuses/index.js +1 -2
  58. package/lib/invoices/Statuses/index.js.map +1 -1
  59. package/lib/invoices/Statuses/invoices.statuses.interfaces.d.ts +6 -0
  60. package/lib/invoices/{PaymentConditions/payment-conditions.interface.js → Statuses/invoices.statuses.interfaces.js} +1 -1
  61. package/lib/invoices/Statuses/invoices.statuses.interfaces.js.map +1 -0
  62. package/lib/invoices/Zones/CreateMany/Request.d.ts +1 -3
  63. package/lib/invoices/Zones/CreateSingle/Request.d.ts +1 -1
  64. package/lib/invoices/Zones/GetMany/Response.d.ts +2 -2
  65. package/lib/invoices/Zones/GetSingle/Response.d.ts +2 -4
  66. package/lib/invoices/Zones/UpdateMany/Request.d.ts +3 -3
  67. package/lib/invoices/Zones/UpdateManyStatuses/Request.d.ts +2 -2
  68. package/lib/invoices/Zones/UpdateSingle/Request.d.ts +1 -1
  69. package/lib/invoices/Zones/UpdateSingleStatus/Request.d.ts +1 -1
  70. package/lib/invoices/Zones/{interfaces.d.ts → invoices.zones.interfaces.d.ts} +2 -2
  71. package/lib/invoices/{Sellers/sellers.interface.js → Zones/invoices.zones.interfaces.js} +1 -1
  72. package/lib/invoices/Zones/invoices.zones.interfaces.js.map +1 -0
  73. package/lib/services/Services/DeleteMany/Request.d.ts +3 -3
  74. package/lib/services/Services/DeleteMany/Response.d.ts +2 -3
  75. package/lib/services/Services/DeleteSingle/Response.d.ts +2 -3
  76. package/lib/services/Services/GetMany/Request.d.ts +1 -1
  77. package/lib/services/Services/GetMany/Response.d.ts +1 -1
  78. package/lib/services/Services/GetSingle/Response.d.ts +1 -3
  79. package/lib/services/Services/UpdateManyStatuses/Request.d.ts +3 -3
  80. package/lib/services/Services/UpdateManyStatuses/Response.d.ts +2 -3
  81. package/lib/services/Services/UpdateSingle/Response.d.ts +2 -3
  82. package/lib/services/Services/UpdateSingleStatus/Request.d.ts +2 -2
  83. package/lib/services/Services/UpdateSingleStatus/Response.d.ts +2 -3
  84. package/lib/system/Cities/GetMany/Response.d.ts +1 -3
  85. package/lib/system/Cities/GetSingle/Response.d.ts +2 -4
  86. package/lib/system/Cities/system.cities.interfaces.d.ts +3 -3
  87. package/lib/system/Countries/GetMany/Response.d.ts +1 -3
  88. package/lib/system/Countries/GetSingle/Response.d.ts +2 -4
  89. package/lib/system/Countries/system.countries.interfaces.d.ts +2 -2
  90. package/lib/system/NaturalTypes/GetMany/Response.d.ts +1 -3
  91. package/lib/system/NaturalTypes/GetSingle/Response.d.ts +2 -4
  92. package/lib/system/NaturalTypes/system.natural-types.interfaces.d.ts +6 -0
  93. package/lib/system/NaturalTypes/system.natural-types.interfaces.js +3 -0
  94. package/lib/system/NaturalTypes/system.natural-types.interfaces.js.map +1 -0
  95. package/lib/system/PersonTypes/GetMany/Response.d.ts +1 -3
  96. package/lib/system/PersonTypes/GetSingle/Response.d.ts +2 -4
  97. package/lib/system/PersonTypes/system.person-types.interfaces.d.ts +6 -0
  98. package/lib/system/PersonTypes/system.person-types.interfaces.js +3 -0
  99. package/lib/system/PersonTypes/system.person-types.interfaces.js.map +1 -0
  100. package/lib/system/SellingTypes/GetMany/Response.d.ts +1 -3
  101. package/lib/system/States/GetMany/Response.d.ts +1 -3
  102. package/lib/system/States/GetSingle/Response.d.ts +2 -4
  103. package/lib/system/States/system.states.interfaces.d.ts +2 -2
  104. package/lib/system/TaxerTypes/GetMany/Response.d.ts +1 -3
  105. package/lib/system/TaxerTypes/GetSingle/Response.d.ts +2 -4
  106. package/lib/system/TaxerTypes/system.taxer-types.interfaces.d.ts +6 -0
  107. package/lib/{invoices/Statuses/UpdateSingle/Request.js → system/TaxerTypes/system.taxer-types.interfaces.js} +1 -1
  108. package/lib/system/TaxerTypes/system.taxer-types.interfaces.js.map +1 -0
  109. package/package.json +1 -1
  110. package/src/customers/Branches/CreateMany/Response.ts +3 -4
  111. package/src/customers/Branches/CreateSingle/Response.ts +3 -4
  112. package/src/customers/Branches/DeleteMany/Request.ts +1 -1
  113. package/src/customers/Branches/DeleteMany/Response.ts +3 -4
  114. package/src/customers/Branches/DeleteSingle/Response.ts +3 -4
  115. package/src/customers/Branches/GetMany/Response.ts +1 -1
  116. package/src/customers/Branches/UpdateMany/Request.ts +5 -1
  117. package/src/customers/Branches/UpdateMany/Response.ts +3 -4
  118. package/src/customers/Branches/UpdateSingle/Response.ts +3 -4
  119. package/src/customers/Branches/UpdateSingleDefault/Response.ts +3 -4
  120. package/src/customers/Branches/customers.branches.interfaces.ts +4 -4
  121. package/src/customers/Customers/CreateMany/Request.ts +1 -3
  122. package/src/customers/Customers/CreateMany/Response.ts +3 -4
  123. package/src/customers/Customers/CreateSingle/Response.ts +3 -4
  124. package/src/customers/Customers/DeleteMany/Request.ts +2 -2
  125. package/src/customers/Customers/DeleteMany/Response.ts +3 -4
  126. package/src/customers/Customers/DeleteSingle/Response.ts +3 -4
  127. package/src/customers/Customers/GetMany/Response.ts +1 -1
  128. package/src/customers/Customers/GetSingle/Response.ts +1 -3
  129. package/src/customers/Customers/UpdateMany/Request.ts +5 -3
  130. package/src/customers/Customers/UpdateMany/Response.ts +3 -4
  131. package/src/customers/Customers/UpdateManyStatuses/Request.ts +2 -2
  132. package/src/customers/Customers/UpdateManyStatuses/Response.ts +3 -4
  133. package/src/customers/Customers/UpdateSingle/Response.ts +3 -4
  134. package/src/customers/Customers/UpdateSingleStatus/Request.ts +1 -1
  135. package/src/customers/Customers/UpdateSingleStatus/Response.ts +3 -4
  136. package/src/customers/Customers/customers.interfaces.ts +1 -1
  137. package/src/interfaces.ts +5 -5
  138. package/src/invoices/Documents/documents.interfaces.ts +1 -1
  139. package/src/invoices/Invoices/invoices.interfaces.ts +5 -5
  140. package/src/invoices/PaymentConditions/CreateMany/Request.ts +2 -3
  141. package/src/invoices/PaymentConditions/CreateSingle/Request.ts +2 -5
  142. package/src/invoices/PaymentConditions/GetMany/Response.ts +2 -2
  143. package/src/invoices/PaymentConditions/GetSingle/Response.ts +2 -4
  144. package/src/invoices/PaymentConditions/UpdateMany/Request.ts +5 -3
  145. package/src/invoices/PaymentConditions/UpdateManyStatuses/Request.ts +2 -2
  146. package/src/invoices/PaymentConditions/UpdateSingle/Request.ts +1 -1
  147. package/src/invoices/PaymentConditions/UpdateSingleStatus/Request.ts +1 -1
  148. package/src/invoices/PaymentConditions/UpdateSingleStatus/Response.ts +3 -4
  149. package/src/invoices/PaymentConditions/{payment-conditions.interface.ts → invoices.payment-conditions.interface.ts} +2 -2
  150. package/src/invoices/Sellers/CreateSingle/Request.ts +1 -1
  151. package/src/invoices/Sellers/GetMany/Response.ts +1 -1
  152. package/src/invoices/Sellers/GetSingle/Response.ts +1 -1
  153. package/src/invoices/Sellers/UpdateMany/Request.ts +5 -1
  154. package/src/invoices/Sellers/UpdateManyStatuses/Request.ts +1 -1
  155. package/src/invoices/Sellers/UpdateSingle/Request.ts +1 -1
  156. package/src/invoices/Sellers/UpdateSingleStatus/Request.ts +1 -1
  157. package/src/invoices/Sellers/{sellers.interface.ts → invoices.sellers.interface.ts} +1 -1
  158. package/src/invoices/Statuses/GetMany/Response.ts +2 -5
  159. package/src/invoices/Statuses/GetSingle/Response.ts +3 -0
  160. package/src/invoices/Statuses/index.ts +1 -2
  161. package/src/invoices/Statuses/invoices.statuses.interfaces.ts +7 -0
  162. package/src/invoices/Zones/CreateMany/Request.ts +1 -3
  163. package/src/invoices/Zones/CreateSingle/Request.ts +1 -1
  164. package/src/invoices/Zones/GetMany/Response.ts +2 -2
  165. package/src/invoices/Zones/GetSingle/Response.ts +2 -4
  166. package/src/invoices/Zones/UpdateMany/Request.ts +5 -3
  167. package/src/invoices/Zones/UpdateManyStatuses/Request.ts +2 -2
  168. package/src/invoices/Zones/UpdateSingle/Request.ts +1 -1
  169. package/src/invoices/Zones/UpdateSingleStatus/Request.ts +1 -1
  170. package/src/invoices/Zones/{interfaces.ts → invoices.zones.interfaces.ts} +1 -1
  171. package/src/services/Services/DeleteMany/Request.ts +2 -2
  172. package/src/services/Services/DeleteMany/Response.ts +3 -3
  173. package/src/services/Services/DeleteSingle/Response.ts +3 -3
  174. package/src/services/Services/GetMany/Request.ts +1 -1
  175. package/src/services/Services/GetMany/Response.ts +1 -1
  176. package/src/services/Services/GetSingle/Response.ts +1 -3
  177. package/src/services/Services/UpdateManyStatuses/Request.ts +2 -2
  178. package/src/services/Services/UpdateManyStatuses/Response.ts +3 -3
  179. package/src/services/Services/UpdateSingle/Response.ts +3 -3
  180. package/src/services/Services/UpdateSingleStatus/Request.ts +1 -1
  181. package/src/services/Services/UpdateSingleStatus/Response.ts +3 -3
  182. package/src/system/Cities/GetMany/Response.ts +1 -3
  183. package/src/system/Cities/GetSingle/Response.ts +3 -4
  184. package/src/system/Cities/system.cities.interfaces.ts +2 -2
  185. package/src/system/Countries/GetMany/Response.ts +1 -3
  186. package/src/system/Countries/GetSingle/Response.ts +3 -4
  187. package/src/system/Countries/system.countries.interfaces.ts +1 -1
  188. package/src/system/NaturalTypes/GetMany/Response.ts +1 -3
  189. package/src/system/NaturalTypes/GetSingle/Response.ts +3 -4
  190. package/src/system/NaturalTypes/system.natural-types.interfaces.ts +7 -0
  191. package/src/system/PersonTypes/GetMany/Response.ts +1 -3
  192. package/src/system/PersonTypes/GetSingle/Response.ts +3 -4
  193. package/src/system/PersonTypes/system.person-types.interfaces.ts +7 -0
  194. package/src/system/SellingTypes/GetMany/Response.ts +1 -3
  195. package/src/system/States/GetMany/Response.ts +1 -3
  196. package/src/system/States/GetSingle/Response.ts +3 -4
  197. package/src/system/States/system.states.interfaces.ts +1 -1
  198. package/src/system/TaxerTypes/GetMany/Response.ts +1 -3
  199. package/src/system/TaxerTypes/GetSingle/Response.ts +3 -4
  200. package/src/system/TaxerTypes/system.taxer-types.interfaces.ts +7 -0
  201. package/lib/invoices/PaymentConditions/payment-conditions.interface.js.map +0 -1
  202. package/lib/invoices/Sellers/sellers.interface.js.map +0 -1
  203. package/lib/invoices/Statuses/UpdateSingle/Request.d.ts +0 -4
  204. package/lib/invoices/Statuses/UpdateSingle/Request.js.map +0 -1
  205. package/lib/invoices/Statuses/UpdateSingle/Response.d.ts +0 -2
  206. package/lib/invoices/Statuses/UpdateSingle/Response.js.map +0 -1
  207. package/lib/invoices/Statuses/statuses.interfaces.d.ts +0 -4
  208. package/lib/invoices/Statuses/statuses.interfaces.js.map +0 -1
  209. package/lib/invoices/Zones/interfaces.js +0 -3
  210. package/lib/invoices/Zones/interfaces.js.map +0 -1
  211. package/src/invoices/Statuses/UpdateSingle/Request.ts +0 -4
  212. package/src/invoices/Statuses/UpdateSingle/Response.ts +0 -3
  213. package/src/invoices/Statuses/statuses.interfaces.ts +0 -4
  214. /package/lib/invoices/Statuses/{UpdateSingle → GetSingle}/Response.js +0 -0
@@ -1,5 +1,4 @@
1
1
  import { InvoicesPaymentConditionsCreateSingleRequest } from '../CreateSingle/Request'
2
2
 
3
- export interface InvoicesPaymentConditionsCreateManyRequest {
4
- data: InvoicesPaymentConditionsCreateSingleRequest[]
5
- }
3
+ export type InvoicesPaymentConditionsCreateManyRequest =
4
+ Array<InvoicesPaymentConditionsCreateSingleRequest>
@@ -1,6 +1,3 @@
1
- import { InvoicesPaymentConditionsRequest } from '../payment-conditions.interface'
1
+ import { InvoicesPaymentConditionsRequest } from '../invoices.payment-conditions.interface'
2
2
 
3
- export type InvoicesPaymentConditionsCreateSingleRequest = Omit<
4
- InvoicesPaymentConditionsRequest,
5
- 'active'
6
- >
3
+ export type InvoicesPaymentConditionsCreateSingleRequest = InvoicesPaymentConditionsRequest
@@ -1,6 +1,6 @@
1
1
  import { GetManyResponse } from '../../../interfaces'
2
- import { InvoicesPaymentConditionsResponse } from '../payment-conditions.interface'
2
+ import { InvoicesPaymentConditionsResponse } from '../invoices.payment-conditions.interface'
3
3
 
4
4
  export type InvoicesPaymentsConditionsGetManyResponse = GetManyResponse & {
5
- data: InvoicesPaymentConditionsResponse[]
5
+ data: Array<InvoicesPaymentConditionsResponse>
6
6
  }
@@ -1,5 +1,3 @@
1
- import { InvoicesPaymentConditionsResponse } from '../payment-conditions.interface'
1
+ import { InvoicesPaymentConditionsResponse } from '../invoices.payment-conditions.interface'
2
2
 
3
- export interface InvoicesPaymentConditionsGetSingleResponse {
4
- data: InvoicesPaymentConditionsResponse
5
- }
3
+ export type InvoicesPaymentConditionsGetSingleResponse = InvoicesPaymentConditionsResponse
@@ -1,5 +1,7 @@
1
1
  import { InvoicesPaymentsConditionsUpdateSingleRequest } from '../UpdateSingle/Request'
2
2
 
3
- export interface InvoicesPaymentConditionsUpdateManyRequest {
4
- data: InvoicesPaymentsConditionsUpdateSingleRequest[]
5
- }
3
+ export type InvoicesPaymentConditionsUpdateManyRequest = Array<
4
+ InvoicesPaymentsConditionsUpdateSingleRequest & {
5
+ id: string
6
+ }
7
+ >
@@ -1,4 +1,4 @@
1
- export interface InvoicesPaymentConditionsUpdateManyStatusesRequest {
2
- ids: string[]
1
+ export type InvoicesPaymentConditionsUpdateManyStatusesRequest = {
2
+ ids: Array<string>
3
3
  active: boolean
4
4
  }
@@ -1,4 +1,4 @@
1
- import { InvoicesPaymentConditionsRequest } from '../payment-conditions.interface'
1
+ import { InvoicesPaymentConditionsRequest } from '../invoices.payment-conditions.interface'
2
2
 
3
3
  export type InvoicesPaymentsConditionsUpdateSingleRequest =
4
4
  Partial<InvoicesPaymentConditionsRequest>
@@ -1,3 +1,3 @@
1
- export interface InvoicesPaymentsConditionsUpdateSingleStatusRequest {
1
+ export type InvoicesPaymentsConditionsUpdateSingleStatusRequest = {
2
2
  active: boolean
3
3
  }
@@ -1,4 +1,3 @@
1
- export interface InvoicesPaymentsConditionsUpdateSingleStatusResponse {
2
- id: string
3
- message: string
4
- }
1
+ import { SingleResponse } from '../../../interfaces'
2
+
3
+ export type InvoicesPaymentsConditionsUpdateSingleStatusResponse = SingleResponse
@@ -1,10 +1,10 @@
1
- export interface InvoicesPaymentConditons {
1
+ export type InvoicesPaymentConditons = {
2
2
  id: string
3
3
  name: string
4
4
  active: boolean
5
5
  cashPayment: boolean
6
6
  }
7
7
 
8
- export type InvoicesPaymentConditionsRequest = Omit<InvoicesPaymentConditons, 'id'>
8
+ export type InvoicesPaymentConditionsRequest = Omit<InvoicesPaymentConditons, 'id' | 'active'>
9
9
 
10
10
  export type InvoicesPaymentConditionsResponse = InvoicesPaymentConditons
@@ -1,3 +1,3 @@
1
- import { InvoicesSellersRequest } from '../sellers.interface'
1
+ import { InvoicesSellersRequest } from '../invoices.sellers.interface'
2
2
 
3
3
  export type InvoicesSellersCreateSingleRequest = Omit<InvoicesSellersRequest, 'active'>
@@ -1,5 +1,5 @@
1
1
  import { GetManyResponse } from '../../../interfaces'
2
- import { InvoicesSellersResponse } from '../sellers.interface'
2
+ import { InvoicesSellersResponse } from '../invoices.sellers.interface'
3
3
 
4
4
  export type InvoicesSellerGetManyResponse = GetManyResponse & {
5
5
  data: Array<InvoicesSellersResponse>
@@ -1,3 +1,3 @@
1
- import { InvoicesSellersResponse } from '../sellers.interface'
1
+ import { InvoicesSellersResponse } from '../invoices.sellers.interface'
2
2
 
3
3
  export type InvoicesSellersGetSingleResponse = InvoicesSellersResponse
@@ -1,3 +1,7 @@
1
1
  import { InvoicesSellersUpdateSingleStatusRequest } from '../UpdateSingleStatus/Request'
2
2
 
3
- export type InvoicesSellersUpdateManyRequest = Array<InvoicesSellersUpdateSingleStatusRequest>
3
+ export type InvoicesSellersUpdateManyRequest = Array<
4
+ InvoicesSellersUpdateSingleStatusRequest & {
5
+ id: string
6
+ }
7
+ >
@@ -1,4 +1,4 @@
1
1
  export type InvoicesSellersUpdateManyStatusesRequest = {
2
- ids: string[]
2
+ ids: Array<string>
3
3
  active: boolean
4
4
  }
@@ -1,3 +1,3 @@
1
- import { InvoicesSellersRequest } from '../sellers.interface'
1
+ import { InvoicesSellersRequest } from '../invoices.sellers.interface'
2
2
 
3
3
  export type InvoicesSellersUpdateSingleRequest = Omit<Partial<InvoicesSellersRequest>, 'active'>
@@ -1,3 +1,3 @@
1
- import { InvoicesSellersRequest } from '../sellers.interface'
1
+ import { InvoicesSellersRequest } from '../invoices.sellers.interface'
2
2
 
3
3
  export type InvoicesSellersUpdateSingleStatusRequest = Pick<InvoicesSellersRequest, 'active'>
@@ -1,4 +1,4 @@
1
- import { InvoicesZones } from '../Zones/interfaces'
1
+ import { InvoicesZones } from '../Zones/invoices.zones.interfaces'
2
2
 
3
3
  export interface InvoicesSellers {
4
4
  id: string
@@ -1,6 +1,3 @@
1
- import { GetManyResponse } from '../../../interfaces'
2
- import { InvoicesStatusesResponse } from '../statuses.interfaces'
1
+ import { InvoicesStatusesResponse } from '../invoices.statuses.interfaces'
3
2
 
4
- export type InvoicesStatusesGetManyResponse = Pick<GetManyResponse, 'count'> & {
5
- data: InvoicesStatusesResponse[]
6
- }
3
+ export type InvoicesStatusesGetManyResponse = Array<InvoicesStatusesResponse>
@@ -0,0 +1,3 @@
1
+ import { InvoicesStatusesResponse } from '../invoices.statuses.interfaces'
2
+
3
+ export type InvoicesStatusesGetSingleResponse = InvoicesStatusesResponse
@@ -1,3 +1,2 @@
1
1
  export * from './GetMany/Response'
2
- export * from './UpdateSingle/Request'
3
- export * from './UpdateSingle/Response'
2
+ export * from './GetSingle/Response'
@@ -0,0 +1,7 @@
1
+ export type InvoicesStatuses = {
2
+ id: number
3
+ name: string
4
+ }
5
+
6
+ export type InvoicesStatusesRequest = Omit<InvoicesStatuses, 'id'>
7
+ export type InvoicesStatusesResponse = InvoicesStatuses
@@ -1,5 +1,3 @@
1
1
  import { InvoicesZonesCreateSingleRequest } from '../CreateSingle/Request'
2
2
 
3
- export interface InvoicesZonesCreateManyRequest {
4
- data: InvoicesZonesCreateSingleRequest[]
5
- }
3
+ export type InvoicesZonesCreateManyRequest = Array<InvoicesZonesCreateSingleRequest>
@@ -1,3 +1,3 @@
1
- import { InvoicesZonesRequest } from '../interfaces'
1
+ import { InvoicesZonesRequest } from '../invoices.zones.interfaces'
2
2
 
3
3
  export type InvoicesZonesCreateSingleRequest = Pick<InvoicesZonesRequest, 'name'>
@@ -1,6 +1,6 @@
1
1
  import { GetManyResponse } from '../../../interfaces'
2
- import { InvoicesZonesResponse } from '../interfaces'
2
+ import { InvoicesZonesResponse } from '../invoices.zones.interfaces'
3
3
 
4
4
  export type InvoicesZonesGetManyResponse = GetManyResponse & {
5
- data: InvoicesZonesResponse[]
5
+ data: Array<InvoicesZonesResponse>
6
6
  }
@@ -1,5 +1,3 @@
1
- import { InvoicesZonesResponse } from '../interfaces'
1
+ import { InvoicesZonesResponse } from '../invoices.zones.interfaces'
2
2
 
3
- export interface InvoicesZonesGetSingleResponse {
4
- data: InvoicesZonesResponse
5
- }
3
+ export type InvoicesZonesGetSingleResponse = InvoicesZonesResponse
@@ -1,5 +1,7 @@
1
1
  import { InvoicesZonesUpdateSingleRequest } from '../UpdateSingle/Request'
2
2
 
3
- export interface InvoicesZonesUpdateManyRequest {
4
- data: InvoicesZonesUpdateSingleRequest[]
5
- }
3
+ export type InvoicesZonesUpdateManyRequest = Array<
4
+ InvoicesZonesUpdateSingleRequest & {
5
+ id: string
6
+ }
7
+ >
@@ -1,5 +1,5 @@
1
- import { InvoicesZonesRequest } from '../interfaces'
1
+ import { InvoicesZonesRequest } from '../invoices.zones.interfaces'
2
2
 
3
3
  export type InvoicesZonesUpdateManyStatusesRequest = Pick<InvoicesZonesRequest, 'active'> & {
4
- ids: string[]
4
+ ids: Array<string>
5
5
  }
@@ -1,3 +1,3 @@
1
- import { InvoicesZonesRequest } from '../interfaces'
1
+ import { InvoicesZonesRequest } from '../invoices.zones.interfaces'
2
2
 
3
3
  export type InvoicesZonesUpdateSingleRequest = Pick<Partial<InvoicesZonesRequest>, 'name'>
@@ -1,3 +1,3 @@
1
- import { InvoicesZonesRequest } from '../interfaces'
1
+ import { InvoicesZonesRequest } from '../invoices.zones.interfaces'
2
2
 
3
3
  export type InvoicesZonesUpdateSingleStatusRequest = Pick<InvoicesZonesRequest, 'active'>
@@ -1,4 +1,4 @@
1
- export interface InvoicesZones {
1
+ export type InvoicesZones = {
2
2
  id: string
3
3
  name: string
4
4
  active: boolean
@@ -1,3 +1,3 @@
1
- export interface ServicesDeleteManyRequest {
2
- ids: string[]
1
+ export type ServicesDeleteManyRequest = {
2
+ ids: Array<string>
3
3
  }
@@ -1,3 +1,3 @@
1
- export interface ServicesDeleteManyResponse {
2
- message: string
3
- }
1
+ import { ManyResponse } from '../../../interfaces'
2
+
3
+ export type ServicesDeleteManyResponse = ManyResponse
@@ -1,3 +1,3 @@
1
- export interface ServicesDeleteSingleResponse {
2
- message: string
3
- }
1
+ import { SingleResponse } from '../../../interfaces'
2
+
3
+ export type ServicesDeleteSingleResponse = SingleResponse
@@ -1,7 +1,7 @@
1
1
  import { GetManyRequest } from '../../../interfaces'
2
2
 
3
3
  export type ServicesGetManyRequest = GetManyRequest & {
4
- types?: number[]
4
+ types?: Array<number>
5
5
  fromAmount?: number
6
6
  toAmount?: number
7
7
  active?: boolean
@@ -2,5 +2,5 @@ import { GetManyResponse } from '../../../interfaces'
2
2
  import { ServicesResponse } from '../services.interface'
3
3
 
4
4
  export type ServicesGetManyResponse = GetManyResponse & {
5
- data: ServicesResponse[]
5
+ data: Array<ServicesResponse>
6
6
  }
@@ -1,5 +1,3 @@
1
1
  import { ServicesResponse } from '../services.interface'
2
2
 
3
- export interface ServicesGetSingleResponse {
4
- data: ServicesResponse
5
- }
3
+ export type ServicesGetSingleResponse = ServicesResponse
@@ -1,4 +1,4 @@
1
- export interface ServicesUpdateManyStatusesRequest {
2
- ids: string[]
1
+ export type ServicesUpdateManyStatusesRequest = {
2
+ ids: Array<string>
3
3
  active: boolean
4
4
  }
@@ -1,3 +1,3 @@
1
- export interface ServicesUpdateManyStatusResponse {
2
- message: string
3
- }
1
+ import { ManyResponse } from '../../../interfaces'
2
+
3
+ export type ServicesUpdateManyStatusResponse = ManyResponse
@@ -1,3 +1,3 @@
1
- export interface ServicesUpdateSingleResponse {
2
- message: string
3
- }
1
+ import { SingleResponse } from '../../../interfaces'
2
+
3
+ export type ServicesUpdateSingleResponse = SingleResponse
@@ -1,3 +1,3 @@
1
- export interface ServicesUpdateSingleStatusRequest {
1
+ export type ServicesUpdateSingleStatusRequest = {
2
2
  active: boolean
3
3
  }
@@ -1,3 +1,3 @@
1
- export interface ServicesUpdateSingleStatusResponse {
2
- message: string
3
- }
1
+ import { SingleResponse } from '../../../interfaces'
2
+
3
+ export type ServicesUpdateSingleStatusResponse = SingleResponse
@@ -1,5 +1,3 @@
1
1
  import { SystemCitiesGetSingleResponse } from '../GetSingle/Response'
2
2
 
3
- export interface SystemCitiesGetManyResponse {
4
- data: SystemCitiesGetSingleResponse[]
5
- }
3
+ export type SystemCitiesGetManyResponse = Array<SystemCitiesGetSingleResponse>
@@ -1,4 +1,3 @@
1
- export interface SystemCitiesGetSingleResponse {
2
- id: number
3
- name: string
4
- }
1
+ import { SystemCitiesResponse } from '../system.cities.interfaces'
2
+
3
+ export type SystemCitiesGetSingleResponse = SystemCitiesResponse
@@ -1,12 +1,12 @@
1
1
  import { SystemStates } from '../States/system.states.interfaces'
2
2
 
3
- export interface SystemCities {
3
+ export type SystemCities = {
4
4
  id: number
5
5
  name: string
6
6
  state: SystemStates
7
7
  }
8
8
 
9
9
  export type SystemCitiesRequest = Omit<SystemCities, 'id' | 'state'> & {
10
- country: number
10
+ state: number
11
11
  }
12
12
  export type SystemCitiesResponse = SystemCities
@@ -1,5 +1,3 @@
1
1
  import { SystemCountriesGetSingleReponse } from '../GetSingle/Response'
2
2
 
3
- export interface SystemCountriesGetManyReponse {
4
- data: SystemCountriesGetSingleReponse[]
5
- }
3
+ export type SystemCountriesGetManyReponse = Array<SystemCountriesGetSingleReponse>
@@ -1,4 +1,3 @@
1
- export interface SystemCountriesGetSingleReponse {
2
- id: number
3
- name: string
4
- }
1
+ import { SystemCountriesResponse } from '../system.countries.interfaces'
2
+
3
+ export type SystemCountriesGetSingleReponse = SystemCountriesResponse
@@ -1,4 +1,4 @@
1
- export interface SystemCountries {
1
+ export type SystemCountries = {
2
2
  id: number
3
3
  name: string
4
4
  }
@@ -1,5 +1,3 @@
1
1
  import { SystemNaturalTypesGetSingleResponse } from '../GetSingle/Response'
2
2
 
3
- export interface SystemNaturalTypesGetManyResponse {
4
- data: SystemNaturalTypesGetSingleResponse[]
5
- }
3
+ export type SystemNaturalTypesGetManyResponse = Array<SystemNaturalTypesGetSingleResponse>
@@ -1,4 +1,3 @@
1
- export interface SystemNaturalTypesGetSingleResponse {
2
- id: number
3
- name: string
4
- }
1
+ import { SystemNaturalTypesResponse } from '../system.natural-types.interfaces'
2
+
3
+ export type SystemNaturalTypesGetSingleResponse = SystemNaturalTypesResponse
@@ -0,0 +1,7 @@
1
+ export type SystemNaturalTypes = {
2
+ id: number
3
+ name: string
4
+ }
5
+
6
+ export type SystemNaturalTypesRequest = Omit<SystemNaturalTypes, 'id'>
7
+ export type SystemNaturalTypesResponse = SystemNaturalTypes
@@ -1,5 +1,3 @@
1
1
  import { SystemPersonTypeGetSingleResponse } from '../GetSingle/Response'
2
2
 
3
- export interface SystemPersonTypeGetManyResponse {
4
- data: SystemPersonTypeGetSingleResponse[]
5
- }
3
+ export type SystemPersonTypeGetManyResponse = Array<SystemPersonTypeGetSingleResponse>
@@ -1,4 +1,3 @@
1
- export interface SystemPersonTypeGetSingleResponse {
2
- id: number
3
- name: string
4
- }
1
+ import { SystemPersonTypesResponse } from '../system.person-types.interfaces'
2
+
3
+ export type SystemPersonTypeGetSingleResponse = SystemPersonTypesResponse
@@ -0,0 +1,7 @@
1
+ export type SystemPersonTypes = {
2
+ id: number
3
+ name: string
4
+ }
5
+
6
+ export type SystemPersonTypesRequest = Omit<SystemPersonTypes, 'id'>
7
+ export type SystemPersonTypesResponse = SystemPersonTypes
@@ -1,5 +1,3 @@
1
1
  import { SystemSellingTypeGetSingleResponse } from '../GetSingle/Response'
2
2
 
3
- export interface SystemSellingTypeGetManyResponse {
4
- data: SystemSellingTypeGetSingleResponse[]
5
- }
3
+ export type SystemSellingTypeGetManyResponse = Array<SystemSellingTypeGetSingleResponse>
@@ -1,5 +1,3 @@
1
1
  import { SystemStatesGetSingleResponse } from '../GetSingle/Response'
2
2
 
3
- export interface SystemStatesGetManyResponse {
4
- data: SystemStatesGetSingleResponse[]
5
- }
3
+ export type SystemStatesGetManyResponse = Array<SystemStatesGetSingleResponse>
@@ -1,4 +1,3 @@
1
- export interface SystemStatesGetSingleResponse {
2
- id: number
3
- name: string
4
- }
1
+ import { SystemStatesResponse } from '../system.states.interfaces'
2
+
3
+ export type SystemStatesGetSingleResponse = SystemStatesResponse
@@ -1,6 +1,6 @@
1
1
  import { SystemCountries } from '../Countries/system.countries.interfaces'
2
2
 
3
- export interface SystemStates {
3
+ export type SystemStates = {
4
4
  id: number
5
5
  name: string
6
6
  country: SystemCountries
@@ -1,5 +1,3 @@
1
1
  import { SystemTaxerTypesGetSingleResponse } from '../GetSingle/Response'
2
2
 
3
- export interface SystemTaxerTypesGetManyResponse {
4
- data: SystemTaxerTypesGetSingleResponse[]
5
- }
3
+ export type SystemTaxerTypesGetManyResponse = Array<SystemTaxerTypesGetSingleResponse>
@@ -1,4 +1,3 @@
1
- export interface SystemTaxerTypesGetSingleResponse {
2
- id: number
3
- name: string
4
- }
1
+ import { SystemTaxerTypesResponse } from '../system.taxer-types.interfaces'
2
+
3
+ export type SystemTaxerTypesGetSingleResponse = SystemTaxerTypesResponse
@@ -0,0 +1,7 @@
1
+ export type SystemTaxerTypes = {
2
+ id: number
3
+ name: string
4
+ }
5
+
6
+ export type SystemTaxerTypesRequest = Omit<SystemTaxerTypes, 'id'>
7
+ export type SystemTaxerTypesResponse = SystemTaxerTypes
@@ -1 +0,0 @@
1
- {"version":3,"file":"payment-conditions.interface.js","sourceRoot":"","sources":["../../../src/invoices/PaymentConditions/payment-conditions.interface.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"sellers.interface.js","sourceRoot":"","sources":["../../../src/invoices/Sellers/sellers.interface.ts"],"names":[],"mappings":""}
@@ -1,4 +0,0 @@
1
- export interface InvoicesStatusesUpdateSingleRequest {
2
- invoiceId: string;
3
- inviceStatusId: string;
4
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../src/invoices/Statuses/UpdateSingle/Request.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import { SingleResponse } from '../../../interfaces';
2
- export type InvoicesStatusesUpdateSingleResponse = SingleResponse;
@@ -1 +0,0 @@
1
- {"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../src/invoices/Statuses/UpdateSingle/Response.ts"],"names":[],"mappings":""}
@@ -1,4 +0,0 @@
1
- export interface InvoicesStatusesResponse {
2
- id: number;
3
- name: string;
4
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"statuses.interfaces.js","sourceRoot":"","sources":["../../../src/invoices/Statuses/statuses.interfaces.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=interfaces.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/invoices/Zones/interfaces.ts"],"names":[],"mappings":""}
@@ -1,4 +0,0 @@
1
- export interface InvoicesStatusesUpdateSingleRequest {
2
- invoiceId: string
3
- inviceStatusId: string
4
- }
@@ -1,3 +0,0 @@
1
- import { SingleResponse } from '../../../interfaces'
2
-
3
- export type InvoicesStatusesUpdateSingleResponse = SingleResponse
@@ -1,4 +0,0 @@
1
- export interface InvoicesStatusesResponse {
2
- id: number
3
- name: string
4
- }