@openbox/shared-types 0.2.18 → 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 (212) 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/CreateSingle/Request.d.ts +1 -1
  63. package/lib/invoices/Zones/GetMany/Response.d.ts +2 -2
  64. package/lib/invoices/Zones/GetSingle/Response.d.ts +1 -1
  65. package/lib/invoices/Zones/UpdateMany/Request.d.ts +3 -1
  66. package/lib/invoices/Zones/UpdateManyStatuses/Request.d.ts +2 -2
  67. package/lib/invoices/Zones/UpdateSingle/Request.d.ts +1 -1
  68. package/lib/invoices/Zones/UpdateSingleStatus/Request.d.ts +1 -1
  69. package/lib/invoices/Zones/{interfaces.d.ts → invoices.zones.interfaces.d.ts} +2 -2
  70. package/lib/invoices/{Sellers/sellers.interface.js → Zones/invoices.zones.interfaces.js} +1 -1
  71. package/lib/invoices/Zones/invoices.zones.interfaces.js.map +1 -0
  72. package/lib/services/Services/DeleteMany/Request.d.ts +3 -3
  73. package/lib/services/Services/DeleteMany/Response.d.ts +2 -3
  74. package/lib/services/Services/DeleteSingle/Response.d.ts +2 -3
  75. package/lib/services/Services/GetMany/Request.d.ts +1 -1
  76. package/lib/services/Services/GetMany/Response.d.ts +1 -1
  77. package/lib/services/Services/GetSingle/Response.d.ts +1 -3
  78. package/lib/services/Services/UpdateManyStatuses/Request.d.ts +3 -3
  79. package/lib/services/Services/UpdateManyStatuses/Response.d.ts +2 -3
  80. package/lib/services/Services/UpdateSingle/Response.d.ts +2 -3
  81. package/lib/services/Services/UpdateSingleStatus/Request.d.ts +2 -2
  82. package/lib/services/Services/UpdateSingleStatus/Response.d.ts +2 -3
  83. package/lib/system/Cities/GetMany/Response.d.ts +1 -3
  84. package/lib/system/Cities/GetSingle/Response.d.ts +2 -4
  85. package/lib/system/Cities/system.cities.interfaces.d.ts +3 -3
  86. package/lib/system/Countries/GetMany/Response.d.ts +1 -3
  87. package/lib/system/Countries/GetSingle/Response.d.ts +2 -4
  88. package/lib/system/Countries/system.countries.interfaces.d.ts +2 -2
  89. package/lib/system/NaturalTypes/GetMany/Response.d.ts +1 -3
  90. package/lib/system/NaturalTypes/GetSingle/Response.d.ts +2 -4
  91. package/lib/system/NaturalTypes/system.natural-types.interfaces.d.ts +6 -0
  92. package/lib/system/NaturalTypes/system.natural-types.interfaces.js +3 -0
  93. package/lib/system/NaturalTypes/system.natural-types.interfaces.js.map +1 -0
  94. package/lib/system/PersonTypes/GetMany/Response.d.ts +1 -3
  95. package/lib/system/PersonTypes/GetSingle/Response.d.ts +2 -4
  96. package/lib/system/PersonTypes/system.person-types.interfaces.d.ts +6 -0
  97. package/lib/system/PersonTypes/system.person-types.interfaces.js +3 -0
  98. package/lib/system/PersonTypes/system.person-types.interfaces.js.map +1 -0
  99. package/lib/system/SellingTypes/GetMany/Response.d.ts +1 -3
  100. package/lib/system/States/GetMany/Response.d.ts +1 -3
  101. package/lib/system/States/GetSingle/Response.d.ts +2 -4
  102. package/lib/system/States/system.states.interfaces.d.ts +2 -2
  103. package/lib/system/TaxerTypes/GetMany/Response.d.ts +1 -3
  104. package/lib/system/TaxerTypes/GetSingle/Response.d.ts +2 -4
  105. package/lib/system/TaxerTypes/system.taxer-types.interfaces.d.ts +6 -0
  106. package/lib/{invoices/Statuses/UpdateSingle/Request.js → system/TaxerTypes/system.taxer-types.interfaces.js} +1 -1
  107. package/lib/system/TaxerTypes/system.taxer-types.interfaces.js.map +1 -0
  108. package/package.json +1 -1
  109. package/src/customers/Branches/CreateMany/Response.ts +3 -4
  110. package/src/customers/Branches/CreateSingle/Response.ts +3 -4
  111. package/src/customers/Branches/DeleteMany/Request.ts +1 -1
  112. package/src/customers/Branches/DeleteMany/Response.ts +3 -4
  113. package/src/customers/Branches/DeleteSingle/Response.ts +3 -4
  114. package/src/customers/Branches/GetMany/Response.ts +1 -1
  115. package/src/customers/Branches/UpdateMany/Request.ts +5 -1
  116. package/src/customers/Branches/UpdateMany/Response.ts +3 -4
  117. package/src/customers/Branches/UpdateSingle/Response.ts +3 -4
  118. package/src/customers/Branches/UpdateSingleDefault/Response.ts +3 -4
  119. package/src/customers/Branches/customers.branches.interfaces.ts +4 -4
  120. package/src/customers/Customers/CreateMany/Request.ts +1 -3
  121. package/src/customers/Customers/CreateMany/Response.ts +3 -4
  122. package/src/customers/Customers/CreateSingle/Response.ts +3 -4
  123. package/src/customers/Customers/DeleteMany/Request.ts +2 -2
  124. package/src/customers/Customers/DeleteMany/Response.ts +3 -4
  125. package/src/customers/Customers/DeleteSingle/Response.ts +3 -4
  126. package/src/customers/Customers/GetMany/Response.ts +1 -1
  127. package/src/customers/Customers/GetSingle/Response.ts +1 -3
  128. package/src/customers/Customers/UpdateMany/Request.ts +5 -3
  129. package/src/customers/Customers/UpdateMany/Response.ts +3 -4
  130. package/src/customers/Customers/UpdateManyStatuses/Request.ts +2 -2
  131. package/src/customers/Customers/UpdateManyStatuses/Response.ts +3 -4
  132. package/src/customers/Customers/UpdateSingle/Response.ts +3 -4
  133. package/src/customers/Customers/UpdateSingleStatus/Request.ts +1 -1
  134. package/src/customers/Customers/UpdateSingleStatus/Response.ts +3 -4
  135. package/src/customers/Customers/customers.interfaces.ts +1 -1
  136. package/src/interfaces.ts +5 -5
  137. package/src/invoices/Documents/documents.interfaces.ts +1 -1
  138. package/src/invoices/Invoices/invoices.interfaces.ts +5 -5
  139. package/src/invoices/PaymentConditions/CreateMany/Request.ts +2 -3
  140. package/src/invoices/PaymentConditions/CreateSingle/Request.ts +2 -5
  141. package/src/invoices/PaymentConditions/GetMany/Response.ts +2 -2
  142. package/src/invoices/PaymentConditions/GetSingle/Response.ts +2 -4
  143. package/src/invoices/PaymentConditions/UpdateMany/Request.ts +5 -3
  144. package/src/invoices/PaymentConditions/UpdateManyStatuses/Request.ts +2 -2
  145. package/src/invoices/PaymentConditions/UpdateSingle/Request.ts +1 -1
  146. package/src/invoices/PaymentConditions/UpdateSingleStatus/Request.ts +1 -1
  147. package/src/invoices/PaymentConditions/UpdateSingleStatus/Response.ts +3 -4
  148. package/src/invoices/PaymentConditions/{payment-conditions.interface.ts → invoices.payment-conditions.interface.ts} +2 -2
  149. package/src/invoices/Sellers/CreateSingle/Request.ts +1 -1
  150. package/src/invoices/Sellers/GetMany/Response.ts +1 -1
  151. package/src/invoices/Sellers/GetSingle/Response.ts +1 -1
  152. package/src/invoices/Sellers/UpdateMany/Request.ts +5 -1
  153. package/src/invoices/Sellers/UpdateManyStatuses/Request.ts +1 -1
  154. package/src/invoices/Sellers/UpdateSingle/Request.ts +1 -1
  155. package/src/invoices/Sellers/UpdateSingleStatus/Request.ts +1 -1
  156. package/src/invoices/Sellers/{sellers.interface.ts → invoices.sellers.interface.ts} +1 -1
  157. package/src/invoices/Statuses/GetMany/Response.ts +2 -5
  158. package/src/invoices/Statuses/GetSingle/Response.ts +3 -0
  159. package/src/invoices/Statuses/index.ts +1 -2
  160. package/src/invoices/Statuses/invoices.statuses.interfaces.ts +7 -0
  161. package/src/invoices/Zones/CreateSingle/Request.ts +1 -1
  162. package/src/invoices/Zones/GetMany/Response.ts +2 -2
  163. package/src/invoices/Zones/GetSingle/Response.ts +1 -1
  164. package/src/invoices/Zones/UpdateMany/Request.ts +5 -1
  165. package/src/invoices/Zones/UpdateManyStatuses/Request.ts +2 -2
  166. package/src/invoices/Zones/UpdateSingle/Request.ts +1 -1
  167. package/src/invoices/Zones/UpdateSingleStatus/Request.ts +1 -1
  168. package/src/invoices/Zones/{interfaces.ts → invoices.zones.interfaces.ts} +1 -1
  169. package/src/services/Services/DeleteMany/Request.ts +2 -2
  170. package/src/services/Services/DeleteMany/Response.ts +3 -3
  171. package/src/services/Services/DeleteSingle/Response.ts +3 -3
  172. package/src/services/Services/GetMany/Request.ts +1 -1
  173. package/src/services/Services/GetMany/Response.ts +1 -1
  174. package/src/services/Services/GetSingle/Response.ts +1 -3
  175. package/src/services/Services/UpdateManyStatuses/Request.ts +2 -2
  176. package/src/services/Services/UpdateManyStatuses/Response.ts +3 -3
  177. package/src/services/Services/UpdateSingle/Response.ts +3 -3
  178. package/src/services/Services/UpdateSingleStatus/Request.ts +1 -1
  179. package/src/services/Services/UpdateSingleStatus/Response.ts +3 -3
  180. package/src/system/Cities/GetMany/Response.ts +1 -3
  181. package/src/system/Cities/GetSingle/Response.ts +3 -4
  182. package/src/system/Cities/system.cities.interfaces.ts +2 -2
  183. package/src/system/Countries/GetMany/Response.ts +1 -3
  184. package/src/system/Countries/GetSingle/Response.ts +3 -4
  185. package/src/system/Countries/system.countries.interfaces.ts +1 -1
  186. package/src/system/NaturalTypes/GetMany/Response.ts +1 -3
  187. package/src/system/NaturalTypes/GetSingle/Response.ts +3 -4
  188. package/src/system/NaturalTypes/system.natural-types.interfaces.ts +7 -0
  189. package/src/system/PersonTypes/GetMany/Response.ts +1 -3
  190. package/src/system/PersonTypes/GetSingle/Response.ts +3 -4
  191. package/src/system/PersonTypes/system.person-types.interfaces.ts +7 -0
  192. package/src/system/SellingTypes/GetMany/Response.ts +1 -3
  193. package/src/system/States/GetMany/Response.ts +1 -3
  194. package/src/system/States/GetSingle/Response.ts +3 -4
  195. package/src/system/States/system.states.interfaces.ts +1 -1
  196. package/src/system/TaxerTypes/GetMany/Response.ts +1 -3
  197. package/src/system/TaxerTypes/GetSingle/Response.ts +3 -4
  198. package/src/system/TaxerTypes/system.taxer-types.interfaces.ts +7 -0
  199. package/lib/invoices/PaymentConditions/payment-conditions.interface.js.map +0 -1
  200. package/lib/invoices/Sellers/sellers.interface.js.map +0 -1
  201. package/lib/invoices/Statuses/UpdateSingle/Request.d.ts +0 -4
  202. package/lib/invoices/Statuses/UpdateSingle/Request.js.map +0 -1
  203. package/lib/invoices/Statuses/UpdateSingle/Response.d.ts +0 -2
  204. package/lib/invoices/Statuses/UpdateSingle/Response.js.map +0 -1
  205. package/lib/invoices/Statuses/statuses.interfaces.d.ts +0 -4
  206. package/lib/invoices/Statuses/statuses.interfaces.js.map +0 -1
  207. package/lib/invoices/Zones/interfaces.js +0 -3
  208. package/lib/invoices/Zones/interfaces.js.map +0 -1
  209. package/src/invoices/Statuses/UpdateSingle/Request.ts +0 -4
  210. package/src/invoices/Statuses/UpdateSingle/Response.ts +0 -3
  211. package/src/invoices/Statuses/statuses.interfaces.ts +0 -4
  212. /package/lib/invoices/Statuses/{UpdateSingle → GetSingle}/Response.js +0 -0
@@ -1,3 +1,3 @@
1
- export interface ServicesDeleteManyRequest {
2
- ids: string[];
3
- }
1
+ export type ServicesDeleteManyRequest = {
2
+ ids: Array<string>;
3
+ };
@@ -1,3 +1,2 @@
1
- export interface ServicesDeleteManyResponse {
2
- message: string;
3
- }
1
+ import { ManyResponse } from '../../../interfaces';
2
+ export type ServicesDeleteManyResponse = ManyResponse;
@@ -1,3 +1,2 @@
1
- export interface ServicesDeleteSingleResponse {
2
- message: string;
3
- }
1
+ import { SingleResponse } from '../../../interfaces';
2
+ export type ServicesDeleteSingleResponse = SingleResponse;
@@ -1,6 +1,6 @@
1
1
  import { GetManyRequest } from '../../../interfaces';
2
2
  export type ServicesGetManyRequest = GetManyRequest & {
3
- types?: number[];
3
+ types?: Array<number>;
4
4
  fromAmount?: number;
5
5
  toAmount?: number;
6
6
  active?: boolean;
@@ -1,5 +1,5 @@
1
1
  import { GetManyResponse } from '../../../interfaces';
2
2
  import { ServicesResponse } from '../services.interface';
3
3
  export type ServicesGetManyResponse = GetManyResponse & {
4
- data: ServicesResponse[];
4
+ data: Array<ServicesResponse>;
5
5
  };
@@ -1,4 +1,2 @@
1
1
  import { ServicesResponse } from '../services.interface';
2
- export interface ServicesGetSingleResponse {
3
- data: ServicesResponse;
4
- }
2
+ 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,2 @@
1
- export interface ServicesUpdateManyStatusResponse {
2
- message: string;
3
- }
1
+ import { ManyResponse } from '../../../interfaces';
2
+ export type ServicesUpdateManyStatusResponse = ManyResponse;
@@ -1,3 +1,2 @@
1
- export interface ServicesUpdateSingleResponse {
2
- message: string;
3
- }
1
+ import { SingleResponse } from '../../../interfaces';
2
+ 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,2 @@
1
- export interface ServicesUpdateSingleStatusResponse {
2
- message: string;
3
- }
1
+ import { SingleResponse } from '../../../interfaces';
2
+ export type ServicesUpdateSingleStatusResponse = SingleResponse;
@@ -1,4 +1,2 @@
1
1
  import { SystemCitiesGetSingleResponse } from '../GetSingle/Response';
2
- export interface SystemCitiesGetManyResponse {
3
- data: SystemCitiesGetSingleResponse[];
4
- }
2
+ export type SystemCitiesGetManyResponse = Array<SystemCitiesGetSingleResponse>;
@@ -1,4 +1,2 @@
1
- export interface SystemCitiesGetSingleResponse {
2
- id: number;
3
- name: string;
4
- }
1
+ import { SystemCitiesResponse } from '../system.cities.interfaces';
2
+ export type SystemCitiesGetSingleResponse = SystemCitiesResponse;
@@ -1,10 +1,10 @@
1
1
  import { SystemStates } from '../States/system.states.interfaces';
2
- export interface SystemCities {
2
+ export type SystemCities = {
3
3
  id: number;
4
4
  name: string;
5
5
  state: SystemStates;
6
- }
6
+ };
7
7
  export type SystemCitiesRequest = Omit<SystemCities, 'id' | 'state'> & {
8
- country: number;
8
+ state: number;
9
9
  };
10
10
  export type SystemCitiesResponse = SystemCities;
@@ -1,4 +1,2 @@
1
1
  import { SystemCountriesGetSingleReponse } from '../GetSingle/Response';
2
- export interface SystemCountriesGetManyReponse {
3
- data: SystemCountriesGetSingleReponse[];
4
- }
2
+ export type SystemCountriesGetManyReponse = Array<SystemCountriesGetSingleReponse>;
@@ -1,4 +1,2 @@
1
- export interface SystemCountriesGetSingleReponse {
2
- id: number;
3
- name: string;
4
- }
1
+ import { SystemCountriesResponse } from '../system.countries.interfaces';
2
+ export type SystemCountriesGetSingleReponse = SystemCountriesResponse;
@@ -1,6 +1,6 @@
1
- export interface SystemCountries {
1
+ export type SystemCountries = {
2
2
  id: number;
3
3
  name: string;
4
- }
4
+ };
5
5
  export type SystemCountriesRequest = Omit<SystemCountries, 'id'>;
6
6
  export type SystemCountriesResponse = SystemCountries;
@@ -1,4 +1,2 @@
1
1
  import { SystemNaturalTypesGetSingleResponse } from '../GetSingle/Response';
2
- export interface SystemNaturalTypesGetManyResponse {
3
- data: SystemNaturalTypesGetSingleResponse[];
4
- }
2
+ export type SystemNaturalTypesGetManyResponse = Array<SystemNaturalTypesGetSingleResponse>;
@@ -1,4 +1,2 @@
1
- export interface SystemNaturalTypesGetSingleResponse {
2
- id: number;
3
- name: string;
4
- }
1
+ import { SystemNaturalTypesResponse } from '../system.natural-types.interfaces';
2
+ export type SystemNaturalTypesGetSingleResponse = SystemNaturalTypesResponse;
@@ -0,0 +1,6 @@
1
+ export type SystemNaturalTypes = {
2
+ id: number;
3
+ name: string;
4
+ };
5
+ export type SystemNaturalTypesRequest = Omit<SystemNaturalTypes, 'id'>;
6
+ export type SystemNaturalTypesResponse = SystemNaturalTypes;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=system.natural-types.interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"system.natural-types.interfaces.js","sourceRoot":"","sources":["../../../src/system/NaturalTypes/system.natural-types.interfaces.ts"],"names":[],"mappings":""}
@@ -1,4 +1,2 @@
1
1
  import { SystemPersonTypeGetSingleResponse } from '../GetSingle/Response';
2
- export interface SystemPersonTypeGetManyResponse {
3
- data: SystemPersonTypeGetSingleResponse[];
4
- }
2
+ export type SystemPersonTypeGetManyResponse = Array<SystemPersonTypeGetSingleResponse>;
@@ -1,4 +1,2 @@
1
- export interface SystemPersonTypeGetSingleResponse {
2
- id: number;
3
- name: string;
4
- }
1
+ import { SystemPersonTypesResponse } from '../system.person-types.interfaces';
2
+ export type SystemPersonTypeGetSingleResponse = SystemPersonTypesResponse;
@@ -0,0 +1,6 @@
1
+ export type SystemPersonTypes = {
2
+ id: number;
3
+ name: string;
4
+ };
5
+ export type SystemPersonTypesRequest = Omit<SystemPersonTypes, 'id'>;
6
+ export type SystemPersonTypesResponse = SystemPersonTypes;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=system.person-types.interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"system.person-types.interfaces.js","sourceRoot":"","sources":["../../../src/system/PersonTypes/system.person-types.interfaces.ts"],"names":[],"mappings":""}
@@ -1,4 +1,2 @@
1
1
  import { SystemSellingTypeGetSingleResponse } from '../GetSingle/Response';
2
- export interface SystemSellingTypeGetManyResponse {
3
- data: SystemSellingTypeGetSingleResponse[];
4
- }
2
+ export type SystemSellingTypeGetManyResponse = Array<SystemSellingTypeGetSingleResponse>;
@@ -1,4 +1,2 @@
1
1
  import { SystemStatesGetSingleResponse } from '../GetSingle/Response';
2
- export interface SystemStatesGetManyResponse {
3
- data: SystemStatesGetSingleResponse[];
4
- }
2
+ export type SystemStatesGetManyResponse = Array<SystemStatesGetSingleResponse>;
@@ -1,4 +1,2 @@
1
- export interface SystemStatesGetSingleResponse {
2
- id: number;
3
- name: string;
4
- }
1
+ import { SystemStatesResponse } from '../system.states.interfaces';
2
+ export type SystemStatesGetSingleResponse = SystemStatesResponse;
@@ -1,9 +1,9 @@
1
1
  import { SystemCountries } from '../Countries/system.countries.interfaces';
2
- export interface SystemStates {
2
+ export type SystemStates = {
3
3
  id: number;
4
4
  name: string;
5
5
  country: SystemCountries;
6
- }
6
+ };
7
7
  export type SystemStatesRequest = Omit<SystemStates, 'id' | 'country'> & {
8
8
  country: number;
9
9
  };
@@ -1,4 +1,2 @@
1
1
  import { SystemTaxerTypesGetSingleResponse } from '../GetSingle/Response';
2
- export interface SystemTaxerTypesGetManyResponse {
3
- data: SystemTaxerTypesGetSingleResponse[];
4
- }
2
+ export type SystemTaxerTypesGetManyResponse = Array<SystemTaxerTypesGetSingleResponse>;
@@ -1,4 +1,2 @@
1
- export interface SystemTaxerTypesGetSingleResponse {
2
- id: number;
3
- name: string;
4
- }
1
+ import { SystemTaxerTypesResponse } from '../system.taxer-types.interfaces';
2
+ export type SystemTaxerTypesGetSingleResponse = SystemTaxerTypesResponse;
@@ -0,0 +1,6 @@
1
+ export type SystemTaxerTypes = {
2
+ id: number;
3
+ name: string;
4
+ };
5
+ export type SystemTaxerTypesRequest = Omit<SystemTaxerTypes, 'id'>;
6
+ export type SystemTaxerTypesResponse = SystemTaxerTypes;
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=Request.js.map
3
+ //# sourceMappingURL=system.taxer-types.interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"system.taxer-types.interfaces.js","sourceRoot":"","sources":["../../../src/system/TaxerTypes/system.taxer-types.interfaces.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.2.18",
3
+ "version": "0.2.19",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",
@@ -1,4 +1,3 @@
1
- export type CustomersBranchesCreateManyResponse = {
2
- ids: string[]
3
- message: string
4
- }
1
+ import { ManyResponse } from '../../../interfaces'
2
+
3
+ export type CustomersBranchesCreateManyResponse = ManyResponse
@@ -1,4 +1,3 @@
1
- export type CustomersBranchesCreateSingleResponse = {
2
- id: string
3
- message: string
4
- }
1
+ import { SingleResponse } from '../../../interfaces'
2
+
3
+ export type CustomersBranchesCreateSingleResponse = SingleResponse
@@ -1,3 +1,3 @@
1
1
  export type CustomersBranchesDeleteManyRequest = {
2
- ids: string[]
2
+ ids: Array<string>
3
3
  }
@@ -1,4 +1,3 @@
1
- export type CustomersBranchesDeleteManyResponse = {
2
- ids: string[]
3
- message: string
4
- }
1
+ import { ManyResponse } from '../../../interfaces'
2
+
3
+ export type CustomersBranchesDeleteManyResponse = ManyResponse
@@ -1,4 +1,3 @@
1
- export type CustomersBranchesDeleteSingleResponse = {
2
- id: string
3
- message: string
4
- }
1
+ import { SingleResponse } from '../../../interfaces'
2
+
3
+ export type CustomersBranchesDeleteSingleResponse = SingleResponse
@@ -2,5 +2,5 @@ import { GetManyResponse } from '../../../interfaces'
2
2
  import { CustomersBranchesResponse } from '../customers.branches.interfaces'
3
3
 
4
4
  export type CustomersBranchesGetManyResponse = GetManyResponse & {
5
- data: CustomersBranchesResponse[]
5
+ data: Array<CustomersBranchesResponse>
6
6
  }
@@ -1,3 +1,7 @@
1
1
  import { CustomersBranchesUpdateSingleRequest } from '../UpdateSingle/Request'
2
2
 
3
- export type CustomersBranchesUpdateManyRequest = Array<CustomersBranchesUpdateSingleRequest>
3
+ export type CustomersBranchesUpdateManyRequest = Array<
4
+ CustomersBranchesUpdateSingleRequest & {
5
+ id: string
6
+ }
7
+ >
@@ -1,4 +1,3 @@
1
- export type CustomersBranchesUpdateManyResponse = {
2
- ids: string[]
3
- message: string
4
- }
1
+ import { ManyResponse } from '../../../interfaces'
2
+
3
+ export type CustomersBranchesUpdateManyResponse = ManyResponse
@@ -1,4 +1,3 @@
1
- export type CustomersBranchesUpdateSingleResponse = {
2
- id: string
3
- message: string
4
- }
1
+ import { SingleResponse } from '../../../interfaces'
2
+
3
+ export type CustomersBranchesUpdateSingleResponse = SingleResponse
@@ -1,4 +1,3 @@
1
- export type CustomersBranchesUpdateSingleDefaultResponse = {
2
- id: string
3
- message: string
4
- }
1
+ import { SingleResponse } from '../../../interfaces'
2
+
3
+ export type CustomersBranchesUpdateSingleDefaultResponse = SingleResponse
@@ -3,12 +3,12 @@ import { SystemCountries } from '../../system/Countries/system.countries.interfa
3
3
  import { SystemStates } from '../../system/States/system.states.interfaces'
4
4
  import { Customers } from '../Customers/customers.interfaces'
5
5
 
6
- export interface CustomerBranchesContactInfo {
7
- phones: string[]
8
- emails: string[]
6
+ export type CustomerBranchesContactInfo = {
7
+ phones: Array<string>
8
+ emails: Array<string>
9
9
  }
10
10
 
11
- export interface CustomersBranches {
11
+ export type CustomersBranches = {
12
12
  id: string
13
13
  name: string
14
14
  contactName: string
@@ -1,5 +1,3 @@
1
1
  import { CustomersCreateSingleRequest } from '../CreateSingle/Request'
2
2
 
3
- export type CustomersCreateManyRequest = {
4
- data: CustomersCreateSingleRequest[]
5
- }
3
+ export type CustomersCreateManyRequest = Array<CustomersCreateSingleRequest>
@@ -1,4 +1,3 @@
1
- export interface CustomersCreateManyResponse {
2
- ids: string[]
3
- message: string
4
- }
1
+ import { ManyResponse } from '../../../interfaces'
2
+
3
+ export type CustomersCreateManyResponse = ManyResponse
@@ -1,4 +1,3 @@
1
- export interface CustomersCreateSingleResponse {
2
- id: string
3
- message: string
4
- }
1
+ import { SingleResponse } from '../../../interfaces'
2
+
3
+ export type CustomersCreateSingleResponse = SingleResponse
@@ -1,3 +1,3 @@
1
- export interface CustomersDeleteManyRequest {
2
- ids: string[]
1
+ export type CustomersDeleteManyRequest = {
2
+ ids: Array<string>
3
3
  }
@@ -1,4 +1,3 @@
1
- export interface CustomersDeleteManyResponse {
2
- ids: string[]
3
- message: string
4
- }
1
+ import { ManyResponse } from '../../../interfaces'
2
+
3
+ export type CustomersDeleteManyResponse = ManyResponse
@@ -1,4 +1,3 @@
1
- export interface CustomersDeleteSingleResponse {
2
- id: string
3
- message: string
4
- }
1
+ import { SingleResponse } from '../../../interfaces'
2
+
3
+ export type CustomersDeleteSingleResponse = SingleResponse
@@ -2,5 +2,5 @@ import { GetManyResponse } from '../../../interfaces'
2
2
  import { CustomersResponse } from '../customers.interfaces'
3
3
 
4
4
  export type CustomerGetManyResponse = GetManyResponse & {
5
- data: CustomersResponse[]
5
+ data: Array<CustomersResponse>
6
6
  }
@@ -1,5 +1,3 @@
1
1
  import { CustomersResponse } from '../customers.interfaces'
2
2
 
3
- export interface CustomersGetSingleResponse {
4
- data: CustomersResponse
5
- }
3
+ export type CustomersGetSingleResponse = CustomersResponse
@@ -1,5 +1,7 @@
1
1
  import { CustomersUpdateSingleRequest } from '../UpdateSingle/Request'
2
2
 
3
- export interface CustomersUpdateManyRequest {
4
- data: CustomersUpdateSingleRequest[]
5
- }
3
+ export type CustomersUpdateManyRequest = Array<
4
+ CustomersUpdateSingleRequest & {
5
+ id: string
6
+ }
7
+ >
@@ -1,4 +1,3 @@
1
- export interface CustomersUpdateManyResponse {
2
- ids: string[]
3
- message: string
4
- }
1
+ import { ManyResponse } from '../../../interfaces'
2
+
3
+ export type CustomersUpdateManyResponse = ManyResponse
@@ -1,4 +1,4 @@
1
- export interface CustomerUpdateManyStatusesRequest {
2
- ids: string[]
1
+ export type CustomerUpdateManyStatusesRequest = {
2
+ ids: Array<string>
3
3
  active: boolean
4
4
  }
@@ -1,4 +1,3 @@
1
- export interface CustomersUpdateManyStatusesResponse {
2
- ids: string[]
3
- message: string
4
- }
1
+ import { ManyResponse } from '../../../interfaces'
2
+
3
+ export type CustomersUpdateManyStatusesResponse = ManyResponse
@@ -1,4 +1,3 @@
1
- export interface CustomersUpdateSingleResponse {
2
- id: string
3
- message: string
4
- }
1
+ import { SingleResponse } from '../../../interfaces'
2
+
3
+ export type CustomersUpdateSingleResponse = SingleResponse
@@ -1,3 +1,3 @@
1
- export interface CustomersUpdateSingleStatusRequest {
1
+ export type CustomersUpdateSingleStatusRequest = {
2
2
  active: boolean
3
3
  }
@@ -1,4 +1,3 @@
1
- export interface CustomersUpdateSingleStatusResponse {
2
- id: string
3
- message: string
4
- }
1
+ import { SingleResponse } from '../../../interfaces'
2
+
3
+ export type CustomersUpdateSingleStatusResponse = SingleResponse
@@ -4,7 +4,7 @@ import { SystemSellingTypeGetSingleResponse } from '../../system/SellingTypes/Ge
4
4
  import { SystemTaxerTypesGetSingleResponse } from '../../system/TaxerTypes/GetSingle/Response'
5
5
  import { CustomersBranchesCreateSingleRequest } from '../Branches'
6
6
 
7
- export interface Customers {
7
+ export type Customers = {
8
8
  id: string
9
9
  name: string
10
10
  name1?: string
package/src/interfaces.ts CHANGED
@@ -1,4 +1,4 @@
1
- export interface GetManyRequest {
1
+ export type GetManyRequest = {
2
2
  limit?: number
3
3
  page?: number
4
4
  search?: string
@@ -6,18 +6,18 @@ export interface GetManyRequest {
6
6
  order?: string
7
7
  }
8
8
 
9
- export interface GetManyResponse {
9
+ export type GetManyResponse = {
10
10
  count: number
11
11
  page: number
12
12
  limit: number
13
13
  }
14
14
 
15
- export interface SingleResponse {
15
+ export type SingleResponse = {
16
16
  id: string
17
17
  message: string
18
18
  }
19
19
 
20
- export interface ManyResponse {
21
- ids: string[]
20
+ export type ManyResponse = {
21
+ ids: Array<string>
22
22
  message: string
23
23
  }
@@ -1,6 +1,6 @@
1
1
  import { InvoicesDocumentTypes } from '../invoices.interfaces'
2
2
 
3
- export interface InvoicesDocuments {
3
+ export type InvoicesDocuments = {
4
4
  id: string
5
5
  authorization?: string
6
6
  initial?: number
@@ -7,16 +7,16 @@ import {
7
7
  InvoicesCalculationsTotalsResponse,
8
8
  } from '../Calculation'
9
9
  import { InvoicesDocumentsResponse } from '../Documents/documents.interfaces'
10
- import { InvoicesPaymentConditionsResponse } from '../PaymentConditions/payment-conditions.interface'
11
- import { InvoicesSellersResponse } from '../Sellers/sellers.interface'
12
- import { InvoicesStatusesResponse } from '../Statuses/statuses.interfaces'
13
- import { InvoicesZones } from '../Zones/interfaces'
10
+ import { InvoicesPaymentConditionsResponse } from '../PaymentConditions/invoices.payment-conditions.interface'
11
+ import { InvoicesSellersResponse } from '../Sellers/invoices.sellers.interface'
12
+ import { InvoicesStatusesResponse } from '../Statuses/invoices.statuses.interfaces'
13
+ import { InvoicesZones } from '../Zones/invoices.zones.interfaces'
14
14
  import { InvoicesDocumentTypes } from '../invoices.interfaces'
15
15
 
16
16
  export type InvoicesDetails = InvoicesCalculationsDetailsResponse
17
17
  export type InvoicesTotals = InvoicesCalculationsTotalsResponse
18
18
 
19
- export interface Invoices {
19
+ export type Invoices = {
20
20
  id: string
21
21
  authorization: string
22
22
  sequence: string
@@ -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>