@openbox/shared-types 0.1.95 → 0.1.97
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/CreateMany/Request.d.ts +4 -0
- package/lib/customers/Branches/CreateMany/Request.js.map +1 -0
- package/lib/customers/Branches/CreateMany/Response.d.ts +4 -0
- package/lib/customers/Branches/CreateMany/Response.js.map +1 -0
- package/lib/customers/Branches/DeleteMany/Request.d.ts +3 -0
- package/lib/customers/Branches/DeleteMany/Request.js +3 -0
- package/lib/customers/Branches/DeleteMany/Request.js.map +1 -0
- package/lib/customers/Branches/DeleteMany/Response.d.ts +4 -0
- package/lib/customers/Branches/DeleteMany/Response.js +3 -0
- package/lib/customers/Branches/DeleteMany/Response.js.map +1 -0
- package/lib/customers/Branches/GetMany/Response.d.ts +10 -9
- package/lib/customers/Branches/GetSingle/Response.d.ts +7 -7
- package/lib/customers/Branches/UpdateMany/Request.d.ts +1 -1
- package/lib/customers/Branches/UpdateSingle/Request.d.ts +3 -10
- package/lib/customers/Branches/UpdateSingleDefault/Request.d.ts +2 -0
- package/lib/customers/Branches/UpdateSingleDefault/Request.js +3 -0
- package/lib/customers/Branches/UpdateSingleDefault/Request.js.map +1 -0
- package/lib/customers/Branches/UpdateSingleDefault/Response.d.ts +4 -0
- package/lib/customers/Branches/UpdateSingleDefault/Response.js +3 -0
- package/lib/customers/Branches/UpdateSingleDefault/Response.js.map +1 -0
- package/lib/customers/Branches/index.d.ts +6 -2
- package/lib/customers/Branches/index.js +6 -2
- package/lib/customers/Branches/index.js.map +1 -1
- package/lib/customers/Branches/interfaces.d.ts +14 -0
- package/lib/customers/Customers/GetMany/Response.d.ts +2 -2
- package/lib/customers/Customers/GetSingle/Response.d.ts +2 -2
- package/lib/system/Cities/GetMany/Response.d.ts +3 -6
- package/lib/system/Cities/GetSingle/Response.d.ts +4 -0
- package/lib/system/Cities/GetSingle/Response.js +3 -0
- package/lib/system/Cities/GetSingle/Response.js.map +1 -0
- package/lib/system/Cities/index.d.ts +1 -0
- package/lib/system/Cities/index.js +1 -0
- package/lib/system/Cities/index.js.map +1 -1
- package/lib/system/Countries/GetMany/Response.d.ts +3 -6
- package/lib/system/Countries/GetSingle/Response.d.ts +4 -0
- package/lib/system/Countries/GetSingle/Response.js +3 -0
- package/lib/system/Countries/GetSingle/Response.js.map +1 -0
- package/lib/system/Countries/index.d.ts +1 -0
- package/lib/system/Countries/index.js +1 -0
- package/lib/system/Countries/index.js.map +1 -1
- package/lib/system/States/GetMany/Response.d.ts +3 -6
- package/lib/system/States/GetSingle/Response.d.ts +4 -0
- package/lib/system/States/GetSingle/Response.js +3 -0
- package/lib/system/States/GetSingle/Response.js.map +1 -0
- package/lib/system/States/index.d.ts +1 -0
- package/lib/system/States/index.js +1 -0
- package/lib/system/States/index.js.map +1 -1
- package/package.json +1 -1
- package/src/customers/Branches/CreateMany/Request.ts +5 -0
- package/src/customers/Branches/CreateMany/Response.ts +4 -0
- package/src/customers/Branches/DeleteMany/Request.ts +3 -0
- package/src/customers/Branches/DeleteMany/Response.ts +4 -0
- package/src/customers/Branches/GetMany/Response.ts +14 -9
- package/src/customers/Branches/GetSingle/Response.ts +7 -7
- package/src/customers/Branches/UpdateMany/Request.ts +1 -1
- package/src/customers/Branches/UpdateSingle/Request.ts +2 -9
- package/src/customers/Branches/UpdateSingleDefault/Request.ts +3 -0
- package/src/customers/Branches/UpdateSingleDefault/Response.ts +4 -0
- package/src/customers/Branches/index.ts +6 -2
- package/src/customers/Branches/interfaces.ts +20 -0
- package/src/customers/Customers/GetMany/Response.ts +2 -2
- package/src/customers/Customers/GetSingle/Response.ts +2 -2
- package/src/invoices/Zones/DeleteSingle/Response.ts +2 -2
- package/src/invoices/Zones/GetMany/Request.ts +7 -7
- package/src/invoices/Zones/GetMany/Response.ts +4 -4
- package/src/system/Cities/GetMany/Response.ts +3 -6
- package/src/system/Cities/GetSingle/Response.ts +4 -0
- package/src/system/Cities/index.ts +1 -0
- package/src/system/Countries/GetMany/Response.ts +3 -6
- package/src/system/Countries/GetSingle/Response.ts +4 -0
- package/src/system/Countries/index.ts +1 -0
- package/src/system/States/GetMany/Response.ts +3 -6
- package/src/system/States/GetSingle/Response.ts +4 -0
- package/src/system/States/index.ts +1 -0
- package/lib/customers/Branches/UpdateDefault/Request.d.ts +0 -8
- package/lib/customers/Branches/UpdateDefault/Request.js.map +0 -1
- package/lib/customers/Branches/UpdateDefault/Response.d.ts +0 -4
- package/lib/customers/Branches/UpdateDefault/Response.js.map +0 -1
- package/src/customers/Branches/UpdateDefault/Request.ts +0 -8
- package/src/customers/Branches/UpdateDefault/Response.ts +0 -4
- /package/lib/customers/Branches/{UpdateDefault → CreateMany}/Request.js +0 -0
- /package/lib/customers/Branches/{UpdateDefault → CreateMany}/Response.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../src/customers/Branches/CreateMany/Request.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../src/customers/Branches/CreateMany/Response.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../src/customers/Branches/DeleteMany/Request.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../src/customers/Branches/DeleteMany/Response.ts"],"names":[],"mappings":""}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { SystemCountryMany } from '../../../system/Countries';
|
|
3
|
-
import { SystemStateMany } from '../../../system/States';
|
|
1
|
+
import { SystemCitiesGetSingleResponse, SystemCountriesGetSingleReponse, SystemStatesGetSingleResponse } from '../../../system';
|
|
4
2
|
import { CustomerBranchesContactInfo } from '../interfaces';
|
|
5
|
-
export interface
|
|
3
|
+
export interface CustomerBranchesGetMany {
|
|
6
4
|
id: string;
|
|
7
5
|
name: string;
|
|
8
6
|
contactName: string;
|
|
@@ -11,10 +9,13 @@ export interface CustomerBranchesMany {
|
|
|
11
9
|
address2: string;
|
|
12
10
|
zipcode: string;
|
|
13
11
|
default: boolean;
|
|
14
|
-
city:
|
|
15
|
-
country:
|
|
16
|
-
state:
|
|
12
|
+
city: SystemCitiesGetSingleResponse;
|
|
13
|
+
country: SystemCountriesGetSingleReponse;
|
|
14
|
+
state: SystemStatesGetSingleResponse;
|
|
17
15
|
}
|
|
18
|
-
export interface
|
|
19
|
-
data:
|
|
16
|
+
export interface CustomerBranchesGetManyResponse {
|
|
17
|
+
data: CustomerBranchesGetMany[];
|
|
18
|
+
count: number;
|
|
19
|
+
page: number;
|
|
20
|
+
limit: number;
|
|
20
21
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SystemCountriesGetSingleReponse, SystemStatesGetSingleResponse } from '../../../system';
|
|
2
2
|
import { CustomerBranchesContactInfo } from '../interfaces';
|
|
3
|
-
export interface
|
|
3
|
+
export interface CustomerBranchesGetSingle {
|
|
4
4
|
id: string;
|
|
5
5
|
name: string;
|
|
6
6
|
contactName: string;
|
|
@@ -9,10 +9,10 @@ export interface CustomerBranchesSingle {
|
|
|
9
9
|
address2: string;
|
|
10
10
|
zipcode: string;
|
|
11
11
|
default: boolean;
|
|
12
|
-
city:
|
|
13
|
-
country:
|
|
14
|
-
state:
|
|
12
|
+
city: SystemCountriesGetSingleReponse;
|
|
13
|
+
country: SystemCountriesGetSingleReponse;
|
|
14
|
+
state: SystemStatesGetSingleResponse;
|
|
15
15
|
}
|
|
16
|
-
export interface
|
|
17
|
-
data:
|
|
16
|
+
export interface CustomerBranchesGetSingleResponse {
|
|
17
|
+
data: CustomerBranchesGetSingle;
|
|
18
18
|
}
|
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
name?: string;
|
|
4
|
-
contactName?: string;
|
|
5
|
-
contactInfo?: CustomerBranchesContactInfo;
|
|
6
|
-
default?: boolean;
|
|
7
|
-
address1?: string;
|
|
8
|
-
address2?: string;
|
|
9
|
-
zipcode?: string;
|
|
1
|
+
import { CustomersBranches } from '../interfaces';
|
|
2
|
+
export type CustomerBranchesUpdateSingleRequest = Omit<Partial<CustomersBranches>, 'id'> & {
|
|
10
3
|
country?: number;
|
|
11
4
|
state?: number;
|
|
12
5
|
city?: number;
|
|
13
|
-
}
|
|
6
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../src/customers/Branches/UpdateSingleDefault/Request.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../src/customers/Branches/UpdateSingleDefault/Response.ts"],"names":[],"mappings":""}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
+
export * from './CreateMany/Request';
|
|
2
|
+
export * from './CreateMany/Response';
|
|
1
3
|
export * from './CreateSingle/Request';
|
|
4
|
+
export * from './DeleteMany/Request';
|
|
5
|
+
export * from './DeleteMany/Response';
|
|
2
6
|
export * from './DeleteSingle/Response';
|
|
3
7
|
export * from './GetMany/Request';
|
|
4
8
|
export * from './GetMany/Response';
|
|
5
|
-
export * from './UpdateDefault/Request';
|
|
6
|
-
export * from './UpdateDefault/Response';
|
|
7
9
|
export * from './UpdateMany/Request';
|
|
8
10
|
export * from './UpdateMany/Response';
|
|
9
11
|
export * from './UpdateSingle/Request';
|
|
10
12
|
export * from './UpdateSingle/Response';
|
|
13
|
+
export * from './UpdateSingleDefault/Request';
|
|
14
|
+
export * from './UpdateSingleDefault/Response';
|
|
@@ -14,14 +14,18 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./CreateMany/Request"), exports);
|
|
18
|
+
__exportStar(require("./CreateMany/Response"), exports);
|
|
17
19
|
__exportStar(require("./CreateSingle/Request"), exports);
|
|
20
|
+
__exportStar(require("./DeleteMany/Request"), exports);
|
|
21
|
+
__exportStar(require("./DeleteMany/Response"), exports);
|
|
18
22
|
__exportStar(require("./DeleteSingle/Response"), exports);
|
|
19
23
|
__exportStar(require("./GetMany/Request"), exports);
|
|
20
24
|
__exportStar(require("./GetMany/Response"), exports);
|
|
21
|
-
__exportStar(require("./UpdateDefault/Request"), exports);
|
|
22
|
-
__exportStar(require("./UpdateDefault/Response"), exports);
|
|
23
25
|
__exportStar(require("./UpdateMany/Request"), exports);
|
|
24
26
|
__exportStar(require("./UpdateMany/Response"), exports);
|
|
25
27
|
__exportStar(require("./UpdateSingle/Request"), exports);
|
|
26
28
|
__exportStar(require("./UpdateSingle/Response"), exports);
|
|
29
|
+
__exportStar(require("./UpdateSingleDefault/Request"), exports);
|
|
30
|
+
__exportStar(require("./UpdateSingleDefault/Response"), exports);
|
|
27
31
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/customers/Branches/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAsC;AACtC,0DAAuC;AACvC,oDAAiC;AACjC,qDAAkC;AAClC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/customers/Branches/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAoC;AACpC,wDAAqC;AACrC,yDAAsC;AACtC,uDAAoC;AACpC,wDAAqC;AACrC,0DAAuC;AACvC,oDAAiC;AACjC,qDAAkC;AAClC,uDAAoC;AACpC,wDAAqC;AACrC,yDAAsC;AACtC,0DAAuC;AACvC,gEAA6C;AAC7C,iEAA8C"}
|
|
@@ -1,4 +1,18 @@
|
|
|
1
|
+
import { SystemCitiesGetSingleResponse, SystemCountriesGetSingleReponse, SystemStatesGetSingleResponse } from '../../system';
|
|
1
2
|
export interface CustomerBranchesContactInfo {
|
|
2
3
|
phones: string[];
|
|
3
4
|
emails: string[];
|
|
4
5
|
}
|
|
6
|
+
export interface CustomersBranches {
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
contactName: string;
|
|
10
|
+
contactInfo: CustomerBranchesContactInfo;
|
|
11
|
+
address1: string;
|
|
12
|
+
address2: string;
|
|
13
|
+
zipcode: string;
|
|
14
|
+
default: boolean;
|
|
15
|
+
city: SystemCitiesGetSingleResponse;
|
|
16
|
+
country: SystemCountriesGetSingleReponse;
|
|
17
|
+
state: SystemStatesGetSingleResponse;
|
|
18
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SystemPersonTypeMany, SystemSellingTypeMany, SystemTaxerTypesMany, SystemTypeNaturalMany } from '../../../system';
|
|
2
|
-
import {
|
|
2
|
+
import { CustomerBranchesGetMany } from '../../Branches';
|
|
3
3
|
export interface CustomerGetMany {
|
|
4
4
|
id: string;
|
|
5
5
|
name: string;
|
|
@@ -19,7 +19,7 @@ export interface CustomerGetMany {
|
|
|
19
19
|
customerTypeNatural: SystemTypeNaturalMany | null;
|
|
20
20
|
customerType: SystemSellingTypeMany;
|
|
21
21
|
customerTaxerType: SystemTaxerTypesMany;
|
|
22
|
-
branch:
|
|
22
|
+
branch: CustomerBranchesGetMany;
|
|
23
23
|
}
|
|
24
24
|
export interface CustomerGetManyResponse {
|
|
25
25
|
data: CustomerGetMany[];
|
|
@@ -2,7 +2,7 @@ import { SystemPersonTypeMany } from '../../../system/PersonTypes/GetMany/Respon
|
|
|
2
2
|
import { SystemSellingTypeMany } from '../../../system/SellingTypes/GetMany/Response';
|
|
3
3
|
import { SystemTaxerTypesMany } from '../../../system/TaxerTypes/GetMany/Response';
|
|
4
4
|
import { SystemTypeNaturalMany } from '../../../system/TypeNaturals/GetMany/Response';
|
|
5
|
-
import {
|
|
5
|
+
import { CustomerBranchesGetMany } from '../../Branches';
|
|
6
6
|
export interface CustomersGetSingle {
|
|
7
7
|
id: string;
|
|
8
8
|
name: string;
|
|
@@ -22,7 +22,7 @@ export interface CustomersGetSingle {
|
|
|
22
22
|
customerTypeNatural: SystemTypeNaturalMany | null;
|
|
23
23
|
customerType: SystemSellingTypeMany;
|
|
24
24
|
customerTaxerType: SystemTaxerTypesMany;
|
|
25
|
-
branch:
|
|
25
|
+
branch: CustomerBranchesGetMany;
|
|
26
26
|
}
|
|
27
27
|
export interface CustomersGetSingleResponse {
|
|
28
28
|
data: CustomersGetSingle;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
export interface SystemCityManyResponse {
|
|
6
|
-
data: SystemCityMany[];
|
|
1
|
+
import { SystemCitiesGetSingleResponse } from '../GetSingle/Response';
|
|
2
|
+
export interface SystemCitiesGetManyResponse {
|
|
3
|
+
data: SystemCitiesGetSingleResponse[];
|
|
7
4
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../src/system/Cities/GetSingle/Response.ts"],"names":[],"mappings":""}
|
|
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./GetMany/Response"), exports);
|
|
18
|
+
__exportStar(require("./GetSingle/Response"), exports);
|
|
18
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/Cities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAkC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/Cities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAkC;AAClC,uDAAoC"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
export interface SystemCountryManyResponse {
|
|
6
|
-
data: SystemCountryMany[];
|
|
1
|
+
import { SystemCountriesGetSingleReponse } from '../GetSingle/Response';
|
|
2
|
+
export interface SystemCountriesGetManyReponse {
|
|
3
|
+
data: SystemCountriesGetSingleReponse[];
|
|
7
4
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../src/system/Countries/GetSingle/Response.ts"],"names":[],"mappings":""}
|
|
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./GetMany/Response"), exports);
|
|
18
|
+
__exportStar(require("./GetSingle/Response"), exports);
|
|
18
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/Countries/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAkC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/Countries/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAkC;AAClC,uDAAoC"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
export interface SystemStateManyResponse {
|
|
6
|
-
data: SystemStateMany[];
|
|
1
|
+
import { SystemStatesGetSingleResponse } from '../GetSingle/Response';
|
|
2
|
+
export interface SystemStatesGetManyResponse {
|
|
3
|
+
data: SystemStatesGetSingleResponse[];
|
|
7
4
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../src/system/States/GetSingle/Response.ts"],"names":[],"mappings":""}
|
|
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./GetMany/Response"), exports);
|
|
18
|
+
__exportStar(require("./GetSingle/Response"), exports);
|
|
18
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/States/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAkC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/States/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAkC;AAClC,uDAAoC"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import {
|
|
2
|
+
SystemCitiesGetSingleResponse,
|
|
3
|
+
SystemCountriesGetSingleReponse,
|
|
4
|
+
SystemStatesGetSingleResponse,
|
|
5
|
+
} from '../../../system'
|
|
4
6
|
import { CustomerBranchesContactInfo } from '../interfaces'
|
|
5
7
|
|
|
6
|
-
export interface
|
|
8
|
+
export interface CustomerBranchesGetMany {
|
|
7
9
|
id: string
|
|
8
10
|
name: string
|
|
9
11
|
contactName: string
|
|
@@ -12,11 +14,14 @@ export interface CustomerBranchesMany {
|
|
|
12
14
|
address2: string
|
|
13
15
|
zipcode: string
|
|
14
16
|
default: boolean
|
|
15
|
-
city:
|
|
16
|
-
country:
|
|
17
|
-
state:
|
|
17
|
+
city: SystemCitiesGetSingleResponse
|
|
18
|
+
country: SystemCountriesGetSingleReponse
|
|
19
|
+
state: SystemStatesGetSingleResponse
|
|
18
20
|
}
|
|
19
21
|
|
|
20
|
-
export interface
|
|
21
|
-
data:
|
|
22
|
+
export interface CustomerBranchesGetManyResponse {
|
|
23
|
+
data: CustomerBranchesGetMany[]
|
|
24
|
+
count: number
|
|
25
|
+
page: number
|
|
26
|
+
limit: number
|
|
22
27
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SystemCountriesGetSingleReponse, SystemStatesGetSingleResponse } from '../../../system'
|
|
2
2
|
import { CustomerBranchesContactInfo } from '../interfaces'
|
|
3
3
|
|
|
4
|
-
export interface
|
|
4
|
+
export interface CustomerBranchesGetSingle {
|
|
5
5
|
id: string
|
|
6
6
|
name: string
|
|
7
7
|
contactName: string
|
|
@@ -10,11 +10,11 @@ export interface CustomerBranchesSingle {
|
|
|
10
10
|
address2: string
|
|
11
11
|
zipcode: string
|
|
12
12
|
default: boolean
|
|
13
|
-
city:
|
|
14
|
-
country:
|
|
15
|
-
state:
|
|
13
|
+
city: SystemCountriesGetSingleReponse
|
|
14
|
+
country: SystemCountriesGetSingleReponse
|
|
15
|
+
state: SystemStatesGetSingleResponse
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
export interface
|
|
19
|
-
data:
|
|
18
|
+
export interface CustomerBranchesGetSingleResponse {
|
|
19
|
+
data: CustomerBranchesGetSingle
|
|
20
20
|
}
|
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CustomersBranches } from '../interfaces'
|
|
2
2
|
|
|
3
|
-
export
|
|
4
|
-
name?: string
|
|
5
|
-
contactName?: string
|
|
6
|
-
contactInfo?: CustomerBranchesContactInfo
|
|
7
|
-
default?: boolean
|
|
8
|
-
address1?: string
|
|
9
|
-
address2?: string
|
|
10
|
-
zipcode?: string
|
|
3
|
+
export type CustomerBranchesUpdateSingleRequest = Omit<Partial<CustomersBranches>, 'id'> & {
|
|
11
4
|
country?: number
|
|
12
5
|
state?: number
|
|
13
6
|
city?: number
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
+
export * from './CreateMany/Request'
|
|
2
|
+
export * from './CreateMany/Response'
|
|
1
3
|
export * from './CreateSingle/Request'
|
|
4
|
+
export * from './DeleteMany/Request'
|
|
5
|
+
export * from './DeleteMany/Response'
|
|
2
6
|
export * from './DeleteSingle/Response'
|
|
3
7
|
export * from './GetMany/Request'
|
|
4
8
|
export * from './GetMany/Response'
|
|
5
|
-
export * from './UpdateDefault/Request'
|
|
6
|
-
export * from './UpdateDefault/Response'
|
|
7
9
|
export * from './UpdateMany/Request'
|
|
8
10
|
export * from './UpdateMany/Response'
|
|
9
11
|
export * from './UpdateSingle/Request'
|
|
10
12
|
export * from './UpdateSingle/Response'
|
|
13
|
+
export * from './UpdateSingleDefault/Request'
|
|
14
|
+
export * from './UpdateSingleDefault/Response'
|
|
@@ -1,4 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SystemCitiesGetSingleResponse,
|
|
3
|
+
SystemCountriesGetSingleReponse,
|
|
4
|
+
SystemStatesGetSingleResponse,
|
|
5
|
+
} from '../../system'
|
|
6
|
+
|
|
1
7
|
export interface CustomerBranchesContactInfo {
|
|
2
8
|
phones: string[]
|
|
3
9
|
emails: string[]
|
|
4
10
|
}
|
|
11
|
+
|
|
12
|
+
export interface CustomersBranches {
|
|
13
|
+
id: string
|
|
14
|
+
name: string
|
|
15
|
+
contactName: string
|
|
16
|
+
contactInfo: CustomerBranchesContactInfo
|
|
17
|
+
address1: string
|
|
18
|
+
address2: string
|
|
19
|
+
zipcode: string
|
|
20
|
+
default: boolean
|
|
21
|
+
city: SystemCitiesGetSingleResponse
|
|
22
|
+
country: SystemCountriesGetSingleReponse
|
|
23
|
+
state: SystemStatesGetSingleResponse
|
|
24
|
+
}
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
SystemTaxerTypesMany,
|
|
5
5
|
SystemTypeNaturalMany,
|
|
6
6
|
} from '../../../system'
|
|
7
|
-
import {
|
|
7
|
+
import { CustomerBranchesGetMany } from '../../Branches'
|
|
8
8
|
|
|
9
9
|
export interface CustomerGetMany {
|
|
10
10
|
id: string
|
|
@@ -25,7 +25,7 @@ export interface CustomerGetMany {
|
|
|
25
25
|
customerTypeNatural: SystemTypeNaturalMany | null
|
|
26
26
|
customerType: SystemSellingTypeMany
|
|
27
27
|
customerTaxerType: SystemTaxerTypesMany
|
|
28
|
-
branch:
|
|
28
|
+
branch: CustomerBranchesGetMany
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
export interface CustomerGetManyResponse {
|
|
@@ -2,7 +2,7 @@ import { SystemPersonTypeMany } from '../../../system/PersonTypes/GetMany/Respon
|
|
|
2
2
|
import { SystemSellingTypeMany } from '../../../system/SellingTypes/GetMany/Response'
|
|
3
3
|
import { SystemTaxerTypesMany } from '../../../system/TaxerTypes/GetMany/Response'
|
|
4
4
|
import { SystemTypeNaturalMany } from '../../../system/TypeNaturals/GetMany/Response'
|
|
5
|
-
import {
|
|
5
|
+
import { CustomerBranchesGetMany } from '../../Branches'
|
|
6
6
|
|
|
7
7
|
export interface CustomersGetSingle {
|
|
8
8
|
id: string
|
|
@@ -23,7 +23,7 @@ export interface CustomersGetSingle {
|
|
|
23
23
|
customerTypeNatural: SystemTypeNaturalMany | null
|
|
24
24
|
customerType: SystemSellingTypeMany
|
|
25
25
|
customerTaxerType: SystemTaxerTypesMany
|
|
26
|
-
branch:
|
|
26
|
+
branch: CustomerBranchesGetMany
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
export interface CustomersGetSingleResponse {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export interface InvoicesZonesGetManyRequest {
|
|
2
|
-
limit: number
|
|
3
|
-
page: number
|
|
4
|
-
search: string
|
|
5
|
-
prop: string
|
|
6
|
-
order: string
|
|
7
|
-
active: boolean
|
|
8
|
-
}
|
|
2
|
+
limit: number
|
|
3
|
+
page: number
|
|
4
|
+
search: string
|
|
5
|
+
prop: string
|
|
6
|
+
order: string
|
|
7
|
+
active: boolean
|
|
8
|
+
}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
id: number
|
|
3
|
-
name: string
|
|
4
|
-
}
|
|
1
|
+
import { SystemCitiesGetSingleResponse } from '../GetSingle/Response'
|
|
5
2
|
|
|
6
|
-
export interface
|
|
7
|
-
data:
|
|
3
|
+
export interface SystemCitiesGetManyResponse {
|
|
4
|
+
data: SystemCitiesGetSingleResponse[]
|
|
8
5
|
}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
id: number
|
|
3
|
-
name: string
|
|
4
|
-
}
|
|
1
|
+
import { SystemCountriesGetSingleReponse } from '../GetSingle/Response'
|
|
5
2
|
|
|
6
|
-
export interface
|
|
7
|
-
data:
|
|
3
|
+
export interface SystemCountriesGetManyReponse {
|
|
4
|
+
data: SystemCountriesGetSingleReponse[]
|
|
8
5
|
}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
id: number
|
|
3
|
-
name: string
|
|
4
|
-
}
|
|
1
|
+
import { SystemStatesGetSingleResponse } from '../GetSingle/Response'
|
|
5
2
|
|
|
6
|
-
export interface
|
|
7
|
-
data:
|
|
3
|
+
export interface SystemStatesGetManyResponse {
|
|
4
|
+
data: SystemStatesGetSingleResponse[]
|
|
8
5
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../src/customers/Branches/UpdateDefault/Request.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../src/customers/Branches/UpdateDefault/Response.ts"],"names":[],"mappings":""}
|
|
File without changes
|
|
File without changes
|