@openbox/shared-types 0.2.12 → 0.2.14

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 (45) hide show
  1. package/lib/customers/Branches/CreateSingle/Request.d.ts +1 -1
  2. package/lib/customers/Branches/GetMany/Response.d.ts +1 -1
  3. package/lib/customers/Branches/GetSingle/Response.d.ts +1 -1
  4. package/lib/customers/Branches/UpdateSingle/Request.d.ts +1 -1
  5. package/lib/customers/Branches/UpdateSingleDefault/Request.d.ts +1 -1
  6. package/lib/customers/Branches/{interfaces.d.ts → customers.branches.interfaces.d.ts} +10 -6
  7. package/lib/customers/Branches/customers.branches.interfaces.js +3 -0
  8. package/lib/customers/Branches/customers.branches.interfaces.js.map +1 -0
  9. package/lib/customers/Customers/CreateSingle/Request.d.ts +1 -1
  10. package/lib/customers/Customers/GetMany/Response.d.ts +1 -1
  11. package/lib/customers/Customers/GetSingle/Response.d.ts +1 -1
  12. package/lib/customers/Customers/UpdateSingle/Request.d.ts +1 -1
  13. package/lib/customers/Customers/{interfaces.js → customers.interfaces.js} +1 -1
  14. package/lib/customers/Customers/customers.interfaces.js.map +1 -0
  15. package/lib/invoices/Invoices/invoices.interfaces.d.ts +2 -2
  16. package/lib/invoices/Sellers/GetSingle/Response.d.ts +1 -1
  17. package/lib/system/Cities/system.cities.interfaces.d.ts +10 -0
  18. package/lib/{customers/Branches/interfaces.js → system/Cities/system.cities.interfaces.js} +1 -1
  19. package/lib/system/Cities/system.cities.interfaces.js.map +1 -0
  20. package/lib/system/Countries/system.countries.interfaces.d.ts +6 -0
  21. package/lib/system/Countries/system.countries.interfaces.js +3 -0
  22. package/lib/system/Countries/system.countries.interfaces.js.map +1 -0
  23. package/lib/system/States/system.states.interfaces.d.ts +10 -0
  24. package/lib/system/States/system.states.interfaces.js +3 -0
  25. package/lib/system/States/system.states.interfaces.js.map +1 -0
  26. package/package.json +1 -1
  27. package/src/customers/Branches/CreateSingle/Request.ts +1 -1
  28. package/src/customers/Branches/GetMany/Response.ts +1 -1
  29. package/src/customers/Branches/GetSingle/Response.ts +1 -1
  30. package/src/customers/Branches/UpdateSingle/Request.ts +1 -1
  31. package/src/customers/Branches/UpdateSingleDefault/Request.ts +1 -1
  32. package/src/customers/Branches/{interfaces.ts → customers.branches.interfaces.ts} +10 -10
  33. package/src/customers/Customers/CreateSingle/Request.ts +1 -1
  34. package/src/customers/Customers/GetMany/Response.ts +1 -1
  35. package/src/customers/Customers/GetSingle/Response.ts +1 -1
  36. package/src/customers/Customers/UpdateSingle/Request.ts +1 -1
  37. package/src/invoices/Invoices/invoices.interfaces.ts +2 -2
  38. package/src/invoices/Sellers/GetSingle/Response.ts +1 -1
  39. package/src/system/Cities/system.cities.interfaces.ts +12 -0
  40. package/src/system/Countries/system.countries.interfaces.ts +7 -0
  41. package/src/system/States/system.states.interfaces.ts +12 -0
  42. package/lib/customers/Branches/interfaces.js.map +0 -1
  43. package/lib/customers/Customers/interfaces.js.map +0 -1
  44. /package/lib/customers/Customers/{interfaces.d.ts → customers.interfaces.d.ts} +0 -0
  45. /package/src/customers/Customers/{interfaces.ts → customers.interfaces.ts} +0 -0
@@ -1,2 +1,2 @@
1
- import { CustomersBranchesRequest } from '../interfaces';
1
+ import { CustomersBranchesRequest } from '../customers.branches.interfaces';
2
2
  export type CustomersBranchesCreateSingleRequest = CustomersBranchesRequest;
@@ -1,5 +1,5 @@
1
1
  import { GetManyResponse } from '../../../interfaces';
2
- import { CustomersBranchesResponse } from '../interfaces';
2
+ import { CustomersBranchesResponse } from '../customers.branches.interfaces';
3
3
  export type CustomersBranchesGetManyResponse = GetManyResponse & {
4
4
  data: CustomersBranchesResponse[];
5
5
  };
@@ -1,2 +1,2 @@
1
- import { CustomersBranchesResponse } from '../interfaces';
1
+ import { CustomersBranchesResponse } from '../customers.branches.interfaces';
2
2
  export type CustomersBranchesGetSingleResponse = CustomersBranchesResponse;
@@ -1,2 +1,2 @@
1
- import { CustomersBranchesRequest } from '../interfaces';
1
+ import { CustomersBranchesRequest } from '../customers.branches.interfaces';
2
2
  export type CustomersBranchesUpdateSingleRequest = Partial<CustomersBranchesRequest>;
@@ -1,2 +1,2 @@
1
- import { CustomersBranchesRequest } from '../interfaces';
1
+ import { CustomersBranchesRequest } from '../customers.branches.interfaces';
2
2
  export type CustomersBranchesUpdateSingleDefaultRequest = Pick<CustomersBranchesRequest, 'default'>;
@@ -1,4 +1,7 @@
1
- import { SystemCitiesGetSingleResponse, SystemCountriesGetSingleReponse, SystemStatesGetSingleResponse } from '../../system';
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';
2
5
  export interface CustomerBranchesContactInfo {
3
6
  phones: string[];
4
7
  emails: string[];
@@ -9,12 +12,13 @@ export interface CustomersBranches {
9
12
  contactName: string;
10
13
  contactInfo: CustomerBranchesContactInfo;
11
14
  address1: string;
12
- address2?: string;
15
+ address2: string;
13
16
  zipcode: string;
14
- default?: boolean;
15
- city: SystemCitiesGetSingleResponse;
16
- country: SystemCountriesGetSingleReponse;
17
- state: SystemStatesGetSingleResponse;
17
+ default: boolean;
18
+ customer: Customers;
19
+ city: SystemCities;
20
+ country: SystemCountries;
21
+ state: SystemStates;
18
22
  }
19
23
  export type CustomersBranchesRequest = Omit<CustomersBranches, 'id' | 'city' | 'country' | 'state'> & {
20
24
  city: number;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=customers.branches.interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customers.branches.interfaces.js","sourceRoot":"","sources":["../../../src/customers/Branches/customers.branches.interfaces.ts"],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- import { CustomersRequest } from '../interfaces';
1
+ import { CustomersRequest } from '../customers.interfaces';
2
2
  export type CustomersCreateSingleRequest = CustomersRequest;
@@ -1,5 +1,5 @@
1
1
  import { GetManyResponse } from '../../../interfaces';
2
- import { CustomersResponse } from '../interfaces';
2
+ import { CustomersResponse } from '../customers.interfaces';
3
3
  export type CustomerGetManyResponse = GetManyResponse & {
4
4
  data: CustomersResponse[];
5
5
  };
@@ -1,4 +1,4 @@
1
- import { CustomersResponse } from '../interfaces';
1
+ import { CustomersResponse } from '../customers.interfaces';
2
2
  export interface CustomersGetSingleResponse {
3
3
  data: CustomersResponse;
4
4
  }
@@ -1,2 +1,2 @@
1
- import { CustomersRequest } from '../interfaces';
1
+ import { CustomersRequest } from '../customers.interfaces';
2
2
  export type CustomersUpdateSingleRequest = Omit<Partial<CustomersRequest>, 'branch'>;
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=interfaces.js.map
3
+ //# sourceMappingURL=customers.interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customers.interfaces.js","sourceRoot":"","sources":["../../../src/customers/Customers/customers.interfaces.ts"],"names":[],"mappings":""}
@@ -1,5 +1,5 @@
1
- import { CustomersBranchesResponse } from '../../customers/Branches/interfaces';
2
- import { CustomersResponse } from '../../customers/Customers/interfaces';
1
+ import { CustomersBranchesResponse } from '../../customers/Branches/customers.branches.interfaces';
2
+ import { CustomersResponse } from '../../customers/Customers/customers.interfaces';
3
3
  import { SystemNaturalTypesGetSingleResponse } from '../../system/NaturalTypes/GetSingle/Response';
4
4
  import { SystemPersonTypeGetSingleResponse } from '../../system/PersonTypes/GetSingle/Response';
5
5
  import { InvoicesCalculationsDetailsResponse, InvoicesCalculationsTotalsResponse } from '../Calculation';
@@ -1,2 +1,2 @@
1
1
  import { InvoicesSellersResponse } from '../sellers.interface';
2
- export type InvoicesSellersGetSingleRsponse = InvoicesSellersResponse;
2
+ export type InvoicesSellersGetSingleResponse = InvoicesSellersResponse;
@@ -0,0 +1,10 @@
1
+ import { SystemStates } from '../States/system.states.interfaces';
2
+ export interface SystemCities {
3
+ id: number;
4
+ name: string;
5
+ state: SystemStates;
6
+ }
7
+ export type SystemCitiesRequest = Omit<SystemCities, 'id' | 'state'> & {
8
+ country: number;
9
+ };
10
+ export type SystemCitiesResponse = SystemCities;
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=interfaces.js.map
3
+ //# sourceMappingURL=system.cities.interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"system.cities.interfaces.js","sourceRoot":"","sources":["../../../src/system/Cities/system.cities.interfaces.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ export interface SystemCountries {
2
+ id: number;
3
+ name: string;
4
+ }
5
+ export type SystemCountriesRequest = Omit<SystemCountries, 'id'>;
6
+ export type SystemCountriesResponse = SystemCountries;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=system.countries.interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"system.countries.interfaces.js","sourceRoot":"","sources":["../../../src/system/Countries/system.countries.interfaces.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ import { SystemCountries } from '../Countries/system.countries.interfaces';
2
+ export interface SystemStates {
3
+ id: number;
4
+ name: string;
5
+ country: SystemCountries;
6
+ }
7
+ export type SystemStatesRequest = Omit<SystemStates, 'id' | 'country'> & {
8
+ country: number;
9
+ };
10
+ export type SystemStatesResponse = SystemStates;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=system.states.interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"system.states.interfaces.js","sourceRoot":"","sources":["../../../src/system/States/system.states.interfaces.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.2.12",
3
+ "version": "0.2.14",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",
@@ -1,3 +1,3 @@
1
- import { CustomersBranchesRequest } from '../interfaces'
1
+ import { CustomersBranchesRequest } from '../customers.branches.interfaces'
2
2
 
3
3
  export type CustomersBranchesCreateSingleRequest = CustomersBranchesRequest
@@ -1,5 +1,5 @@
1
1
  import { GetManyResponse } from '../../../interfaces'
2
- import { CustomersBranchesResponse } from '../interfaces'
2
+ import { CustomersBranchesResponse } from '../customers.branches.interfaces'
3
3
 
4
4
  export type CustomersBranchesGetManyResponse = GetManyResponse & {
5
5
  data: CustomersBranchesResponse[]
@@ -1,3 +1,3 @@
1
- import { CustomersBranchesResponse } from '../interfaces'
1
+ import { CustomersBranchesResponse } from '../customers.branches.interfaces'
2
2
 
3
3
  export type CustomersBranchesGetSingleResponse = CustomersBranchesResponse
@@ -1,3 +1,3 @@
1
- import { CustomersBranchesRequest } from '../interfaces'
1
+ import { CustomersBranchesRequest } from '../customers.branches.interfaces'
2
2
 
3
3
  export type CustomersBranchesUpdateSingleRequest = Partial<CustomersBranchesRequest>
@@ -1,3 +1,3 @@
1
- import { CustomersBranchesRequest } from '../interfaces'
1
+ import { CustomersBranchesRequest } from '../customers.branches.interfaces'
2
2
 
3
3
  export type CustomersBranchesUpdateSingleDefaultRequest = Pick<CustomersBranchesRequest, 'default'>
@@ -1,8 +1,7 @@
1
- import {
2
- SystemCitiesGetSingleResponse,
3
- SystemCountriesGetSingleReponse,
4
- SystemStatesGetSingleResponse,
5
- } from '../../system'
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'
6
5
 
7
6
  export interface CustomerBranchesContactInfo {
8
7
  phones: string[]
@@ -15,12 +14,13 @@ export interface CustomersBranches {
15
14
  contactName: string
16
15
  contactInfo: CustomerBranchesContactInfo
17
16
  address1: string
18
- address2?: string
17
+ address2: string
19
18
  zipcode: string
20
- default?: boolean
21
- city: SystemCitiesGetSingleResponse
22
- country: SystemCountriesGetSingleReponse
23
- state: SystemStatesGetSingleResponse
19
+ default: boolean
20
+ customer: Customers
21
+ city: SystemCities
22
+ country: SystemCountries
23
+ state: SystemStates
24
24
  }
25
25
 
26
26
  export type CustomersBranchesRequest = Omit<
@@ -1,3 +1,3 @@
1
- import { CustomersRequest } from '../interfaces'
1
+ import { CustomersRequest } from '../customers.interfaces'
2
2
 
3
3
  export type CustomersCreateSingleRequest = CustomersRequest
@@ -1,5 +1,5 @@
1
1
  import { GetManyResponse } from '../../../interfaces'
2
- import { CustomersResponse } from '../interfaces'
2
+ import { CustomersResponse } from '../customers.interfaces'
3
3
 
4
4
  export type CustomerGetManyResponse = GetManyResponse & {
5
5
  data: CustomersResponse[]
@@ -1,4 +1,4 @@
1
- import { CustomersResponse } from '../interfaces'
1
+ import { CustomersResponse } from '../customers.interfaces'
2
2
 
3
3
  export interface CustomersGetSingleResponse {
4
4
  data: CustomersResponse
@@ -1,3 +1,3 @@
1
- import { CustomersRequest } from '../interfaces'
1
+ import { CustomersRequest } from '../customers.interfaces'
2
2
 
3
3
  export type CustomersUpdateSingleRequest = Omit<Partial<CustomersRequest>, 'branch'>
@@ -1,5 +1,5 @@
1
- import { CustomersBranchesResponse } from '../../customers/Branches/interfaces'
2
- import { CustomersResponse } from '../../customers/Customers/interfaces'
1
+ import { CustomersBranchesResponse } from '../../customers/Branches/customers.branches.interfaces'
2
+ import { CustomersResponse } from '../../customers/Customers/customers.interfaces'
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
1
  import { InvoicesSellersResponse } from '../sellers.interface'
2
2
 
3
- export type InvoicesSellersGetSingleRsponse = InvoicesSellersResponse
3
+ export type InvoicesSellersGetSingleResponse = InvoicesSellersResponse
@@ -0,0 +1,12 @@
1
+ import { SystemStates } from '../States/system.states.interfaces'
2
+
3
+ export interface SystemCities {
4
+ id: number
5
+ name: string
6
+ state: SystemStates
7
+ }
8
+
9
+ export type SystemCitiesRequest = Omit<SystemCities, 'id' | 'state'> & {
10
+ country: number
11
+ }
12
+ export type SystemCitiesResponse = SystemCities
@@ -0,0 +1,7 @@
1
+ export interface SystemCountries {
2
+ id: number
3
+ name: string
4
+ }
5
+
6
+ export type SystemCountriesRequest = Omit<SystemCountries, 'id'>
7
+ export type SystemCountriesResponse = SystemCountries
@@ -0,0 +1,12 @@
1
+ import { SystemCountries } from '../Countries/system.countries.interfaces'
2
+
3
+ export interface SystemStates {
4
+ id: number
5
+ name: string
6
+ country: SystemCountries
7
+ }
8
+
9
+ export type SystemStatesRequest = Omit<SystemStates, 'id' | 'country'> & {
10
+ country: number
11
+ }
12
+ export type SystemStatesResponse = SystemStates
@@ -1 +0,0 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/customers/Branches/interfaces.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/customers/Customers/interfaces.ts"],"names":[],"mappings":""}