@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.
- package/lib/customers/Branches/CreateSingle/Request.d.ts +1 -1
- package/lib/customers/Branches/GetMany/Response.d.ts +1 -1
- package/lib/customers/Branches/GetSingle/Response.d.ts +1 -1
- package/lib/customers/Branches/UpdateSingle/Request.d.ts +1 -1
- package/lib/customers/Branches/UpdateSingleDefault/Request.d.ts +1 -1
- package/lib/customers/Branches/{interfaces.d.ts → customers.branches.interfaces.d.ts} +10 -6
- package/lib/customers/Branches/customers.branches.interfaces.js +3 -0
- package/lib/customers/Branches/customers.branches.interfaces.js.map +1 -0
- package/lib/customers/Customers/CreateSingle/Request.d.ts +1 -1
- package/lib/customers/Customers/GetMany/Response.d.ts +1 -1
- package/lib/customers/Customers/GetSingle/Response.d.ts +1 -1
- package/lib/customers/Customers/UpdateSingle/Request.d.ts +1 -1
- package/lib/customers/Customers/{interfaces.js → customers.interfaces.js} +1 -1
- package/lib/customers/Customers/customers.interfaces.js.map +1 -0
- package/lib/invoices/Invoices/invoices.interfaces.d.ts +2 -2
- package/lib/invoices/Sellers/GetSingle/Response.d.ts +1 -1
- package/lib/system/Cities/system.cities.interfaces.d.ts +10 -0
- package/lib/{customers/Branches/interfaces.js → system/Cities/system.cities.interfaces.js} +1 -1
- package/lib/system/Cities/system.cities.interfaces.js.map +1 -0
- package/lib/system/Countries/system.countries.interfaces.d.ts +6 -0
- package/lib/system/Countries/system.countries.interfaces.js +3 -0
- package/lib/system/Countries/system.countries.interfaces.js.map +1 -0
- package/lib/system/States/system.states.interfaces.d.ts +10 -0
- package/lib/system/States/system.states.interfaces.js +3 -0
- package/lib/system/States/system.states.interfaces.js.map +1 -0
- package/package.json +1 -1
- package/src/customers/Branches/CreateSingle/Request.ts +1 -1
- package/src/customers/Branches/GetMany/Response.ts +1 -1
- package/src/customers/Branches/GetSingle/Response.ts +1 -1
- package/src/customers/Branches/UpdateSingle/Request.ts +1 -1
- package/src/customers/Branches/UpdateSingleDefault/Request.ts +1 -1
- package/src/customers/Branches/{interfaces.ts → customers.branches.interfaces.ts} +10 -10
- package/src/customers/Customers/CreateSingle/Request.ts +1 -1
- package/src/customers/Customers/GetMany/Response.ts +1 -1
- package/src/customers/Customers/GetSingle/Response.ts +1 -1
- package/src/customers/Customers/UpdateSingle/Request.ts +1 -1
- package/src/invoices/Invoices/invoices.interfaces.ts +2 -2
- package/src/invoices/Sellers/GetSingle/Response.ts +1 -1
- package/src/system/Cities/system.cities.interfaces.ts +12 -0
- package/src/system/Countries/system.countries.interfaces.ts +7 -0
- package/src/system/States/system.states.interfaces.ts +12 -0
- package/lib/customers/Branches/interfaces.js.map +0 -1
- package/lib/customers/Customers/interfaces.js.map +0 -1
- /package/lib/customers/Customers/{interfaces.d.ts → customers.interfaces.d.ts} +0 -0
- /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 {
|
|
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
|
|
15
|
+
address2: string;
|
|
13
16
|
zipcode: string;
|
|
14
|
-
default
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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 @@
|
|
|
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,2 +1,2 @@
|
|
|
1
|
-
import { CustomersRequest } from '../interfaces';
|
|
1
|
+
import { CustomersRequest } from '../customers.interfaces';
|
|
2
2
|
export type CustomersUpdateSingleRequest = Omit<Partial<CustomersRequest>, 'branch'>;
|
|
@@ -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
|
|
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;
|
|
@@ -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 @@
|
|
|
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 @@
|
|
|
1
|
+
{"version":3,"file":"system.states.interfaces.js","sourceRoot":"","sources":["../../../src/system/States/system.states.interfaces.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -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,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
|
17
|
+
address2: string
|
|
19
18
|
zipcode: string
|
|
20
|
-
default
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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,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 {
|
|
@@ -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,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":""}
|
|
File without changes
|
|
File without changes
|