@openbox/shared-types 0.2.9 → 0.2.11

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 (33) hide show
  1. package/lib/customers/Branches/CreateMany/Request.d.ts +2 -2
  2. package/lib/customers/Branches/CreateSingle/Request.d.ts +1 -1
  3. package/lib/customers/Branches/CreateSingle/Response.d.ts +1 -1
  4. package/lib/customers/Branches/DeleteMany/Request.d.ts +1 -1
  5. package/lib/customers/Branches/DeleteMany/Response.d.ts +1 -1
  6. package/lib/customers/Branches/DeleteSingle/Response.d.ts +1 -1
  7. package/lib/customers/Branches/GetMany/Request.d.ts +1 -1
  8. package/lib/customers/Branches/GetMany/Response.d.ts +1 -1
  9. package/lib/customers/Branches/GetSingle/Response.d.ts +1 -1
  10. package/lib/customers/Branches/UpdateMany/Request.d.ts +3 -3
  11. package/lib/customers/Branches/UpdateMany/Response.d.ts +1 -1
  12. package/lib/customers/Branches/UpdateSingle/Request.d.ts +1 -1
  13. package/lib/customers/Branches/UpdateSingle/Response.d.ts +1 -1
  14. package/lib/customers/Branches/index.d.ts +2 -0
  15. package/lib/customers/Branches/index.js +2 -0
  16. package/lib/customers/Branches/index.js.map +1 -1
  17. package/lib/customers/Customers/interfaces.d.ts +2 -2
  18. package/package.json +1 -1
  19. package/src/customers/Branches/CreateMany/Request.ts +2 -2
  20. package/src/customers/Branches/CreateSingle/Request.ts +1 -1
  21. package/src/customers/Branches/CreateSingle/Response.ts +1 -1
  22. package/src/customers/Branches/DeleteMany/Request.ts +1 -1
  23. package/src/customers/Branches/DeleteMany/Response.ts +1 -1
  24. package/src/customers/Branches/DeleteSingle/Response.ts +1 -1
  25. package/src/customers/Branches/GetMany/Request.ts +1 -1
  26. package/src/customers/Branches/GetMany/Response.ts +1 -1
  27. package/src/customers/Branches/GetSingle/Response.ts +1 -1
  28. package/src/customers/Branches/UpdateMany/Request.ts +3 -3
  29. package/src/customers/Branches/UpdateMany/Response.ts +1 -1
  30. package/src/customers/Branches/UpdateSingle/Request.ts +1 -1
  31. package/src/customers/Branches/UpdateSingle/Response.ts +1 -1
  32. package/src/customers/Branches/index.ts +2 -0
  33. package/src/customers/Customers/interfaces.ts +2 -2
@@ -1,4 +1,4 @@
1
- import { CustomerBranchesCreateSingleRequest } from '../CreateSingle/Request';
1
+ import { CustomersBranchesCreateSingleRequest } from '../CreateSingle/Request';
2
2
  export interface CustomersBranchesCreateManyRequest {
3
- data: CustomerBranchesCreateSingleRequest[];
3
+ data: CustomersBranchesCreateSingleRequest[];
4
4
  }
@@ -1,2 +1,2 @@
1
1
  import { CustomersBranchesRequest } from '../interfaces';
2
- export type CustomerBranchesCreateSingleRequest = CustomersBranchesRequest;
2
+ export type CustomersBranchesCreateSingleRequest = CustomersBranchesRequest;
@@ -1,4 +1,4 @@
1
- export interface CustomerBranchesCreateSingleResponse {
1
+ export interface CustomersBranchesCreateSingleResponse {
2
2
  id: string;
3
3
  message: string;
4
4
  }
@@ -1,3 +1,3 @@
1
- export interface CustomerBranchesDeleteManyRequest {
1
+ export interface CustomersBranchesDeleteManyRequest {
2
2
  ids: string[];
3
3
  }
@@ -1,4 +1,4 @@
1
- export interface CustomerBranchesDeleteManyResponse {
1
+ export interface CustomersBranchesDeleteManyResponse {
2
2
  ids: string[];
3
3
  message: string;
4
4
  }
@@ -1,4 +1,4 @@
1
- export interface CustomerBranchesDeleteSingleResponse {
1
+ export interface CustomersBranchesDeleteSingleResponse {
2
2
  id: string;
3
3
  message: string;
4
4
  }
@@ -1,4 +1,4 @@
1
1
  import { GetManyRequest } from '../../../interfaces';
2
- export type CustomerBranchesGetManyRequest = GetManyRequest & {
2
+ export type CustomersBranchesGetManyRequest = GetManyRequest & {
3
3
  default?: boolean;
4
4
  };
@@ -1,5 +1,5 @@
1
1
  import { GetManyResponse } from '../../../interfaces';
2
2
  import { CustomersBranchesResponse } from '../interfaces';
3
- export type CustomerBranchesGetManyResponse = GetManyResponse & {
3
+ export type CustomersBranchesGetManyResponse = GetManyResponse & {
4
4
  data: CustomersBranchesResponse[];
5
5
  };
@@ -1,4 +1,4 @@
1
1
  import { CustomersBranchesResponse } from '../interfaces';
2
- export interface CustomerBranchesGetSingleResponse {
2
+ export interface CustomersBranchesGetSingleResponse {
3
3
  data: CustomersBranchesResponse;
4
4
  }
@@ -1,4 +1,4 @@
1
- import { CustomerBranchesUpdateSingleRequest } from '../UpdateSingle/Request';
2
- export interface CustomerBranchesUpdateManyRequest {
3
- data: CustomerBranchesUpdateSingleRequest[];
1
+ import { CustomersBranchesUpdateSingleRequest } from '../UpdateSingle/Request';
2
+ export interface CustomersBranchesUpdateManyRequest {
3
+ data: CustomersBranchesUpdateSingleRequest[];
4
4
  }
@@ -1,4 +1,4 @@
1
- export interface CustomerBranchesUpdateManyResponse {
1
+ export interface CustomersBranchesUpdateManyResponse {
2
2
  ids: string[];
3
3
  message: string;
4
4
  }
@@ -1,2 +1,2 @@
1
1
  import { CustomersBranchesRequest } from '../interfaces';
2
- export type CustomerBranchesUpdateSingleRequest = Partial<CustomersBranchesRequest>;
2
+ export type CustomersBranchesUpdateSingleRequest = Partial<CustomersBranchesRequest>;
@@ -1,4 +1,4 @@
1
- export interface CustomerBranchesUpdateSingleResponse {
1
+ export interface CustomersBranchesUpdateSingleResponse {
2
2
  id: string;
3
3
  message: string;
4
4
  }
@@ -1,11 +1,13 @@
1
1
  export * from './CreateMany/Request';
2
2
  export * from './CreateMany/Response';
3
3
  export * from './CreateSingle/Request';
4
+ export * from './CreateSingle/Response';
4
5
  export * from './DeleteMany/Request';
5
6
  export * from './DeleteMany/Response';
6
7
  export * from './DeleteSingle/Response';
7
8
  export * from './GetMany/Request';
8
9
  export * from './GetMany/Response';
10
+ export * from './GetSingle/Response';
9
11
  export * from './UpdateMany/Request';
10
12
  export * from './UpdateMany/Response';
11
13
  export * from './UpdateSingle/Request';
@@ -17,11 +17,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./CreateMany/Request"), exports);
18
18
  __exportStar(require("./CreateMany/Response"), exports);
19
19
  __exportStar(require("./CreateSingle/Request"), exports);
20
+ __exportStar(require("./CreateSingle/Response"), exports);
20
21
  __exportStar(require("./DeleteMany/Request"), exports);
21
22
  __exportStar(require("./DeleteMany/Response"), exports);
22
23
  __exportStar(require("./DeleteSingle/Response"), exports);
23
24
  __exportStar(require("./GetMany/Request"), exports);
24
25
  __exportStar(require("./GetMany/Response"), exports);
26
+ __exportStar(require("./GetSingle/Response"), exports);
25
27
  __exportStar(require("./UpdateMany/Request"), exports);
26
28
  __exportStar(require("./UpdateMany/Response"), exports);
27
29
  __exportStar(require("./UpdateSingle/Request"), exports);
@@ -1 +1 @@
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
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/customers/Branches/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAoC;AACpC,wDAAqC;AACrC,yDAAsC;AACtC,0DAAuC;AACvC,uDAAoC;AACpC,wDAAqC;AACrC,0DAAuC;AACvC,oDAAiC;AACjC,qDAAkC;AAClC,uDAAoC;AACpC,uDAAoC;AACpC,wDAAqC;AACrC,yDAAsC;AACtC,0DAAuC;AACvC,gEAA6C;AAC7C,iEAA8C"}
@@ -2,7 +2,7 @@ import { SystemNaturalTypesGetSingleResponse } from '../../system/NaturalTypes/G
2
2
  import { SystemPersonTypeGetSingleResponse } from '../../system/PersonTypes/GetSingle/Response';
3
3
  import { SystemSellingTypeGetSingleResponse } from '../../system/SellingTypes/GetSingle/Response';
4
4
  import { SystemTaxerTypesGetSingleResponse } from '../../system/TaxerTypes/GetSingle/Response';
5
- import { CustomerBranchesCreateSingleRequest } from '../Branches';
5
+ import { CustomersBranchesCreateSingleRequest } from '../Branches';
6
6
  export interface Customers {
7
7
  id: string;
8
8
  name: string;
@@ -36,6 +36,6 @@ export type CustomersRequest = Omit<Customers, 'id' | 'customerTaxerType' | 'per
36
36
  personType: number;
37
37
  customerType: number;
38
38
  customerTypeNatural: number;
39
- branch: CustomerBranchesCreateSingleRequest;
39
+ branch: CustomersBranchesCreateSingleRequest;
40
40
  };
41
41
  export type CustomersResponse = Customers;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.2.9",
3
+ "version": "0.2.11",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",
@@ -1,5 +1,5 @@
1
- import { CustomerBranchesCreateSingleRequest } from '../CreateSingle/Request'
1
+ import { CustomersBranchesCreateSingleRequest } from '../CreateSingle/Request'
2
2
 
3
3
  export interface CustomersBranchesCreateManyRequest {
4
- data: CustomerBranchesCreateSingleRequest[]
4
+ data: CustomersBranchesCreateSingleRequest[]
5
5
  }
@@ -1,3 +1,3 @@
1
1
  import { CustomersBranchesRequest } from '../interfaces'
2
2
 
3
- export type CustomerBranchesCreateSingleRequest = CustomersBranchesRequest
3
+ export type CustomersBranchesCreateSingleRequest = CustomersBranchesRequest
@@ -1,4 +1,4 @@
1
- export interface CustomerBranchesCreateSingleResponse {
1
+ export interface CustomersBranchesCreateSingleResponse {
2
2
  id: string
3
3
  message: string
4
4
  }
@@ -1,3 +1,3 @@
1
- export interface CustomerBranchesDeleteManyRequest {
1
+ export interface CustomersBranchesDeleteManyRequest {
2
2
  ids: string[]
3
3
  }
@@ -1,4 +1,4 @@
1
- export interface CustomerBranchesDeleteManyResponse {
1
+ export interface CustomersBranchesDeleteManyResponse {
2
2
  ids: string[]
3
3
  message: string
4
4
  }
@@ -1,4 +1,4 @@
1
- export interface CustomerBranchesDeleteSingleResponse {
1
+ export interface CustomersBranchesDeleteSingleResponse {
2
2
  id: string
3
3
  message: string
4
4
  }
@@ -1,5 +1,5 @@
1
1
  import { GetManyRequest } from '../../../interfaces'
2
2
 
3
- export type CustomerBranchesGetManyRequest = GetManyRequest & {
3
+ export type CustomersBranchesGetManyRequest = GetManyRequest & {
4
4
  default?: boolean
5
5
  }
@@ -1,6 +1,6 @@
1
1
  import { GetManyResponse } from '../../../interfaces'
2
2
  import { CustomersBranchesResponse } from '../interfaces'
3
3
 
4
- export type CustomerBranchesGetManyResponse = GetManyResponse & {
4
+ export type CustomersBranchesGetManyResponse = GetManyResponse & {
5
5
  data: CustomersBranchesResponse[]
6
6
  }
@@ -1,5 +1,5 @@
1
1
  import { CustomersBranchesResponse } from '../interfaces'
2
2
 
3
- export interface CustomerBranchesGetSingleResponse {
3
+ export interface CustomersBranchesGetSingleResponse {
4
4
  data: CustomersBranchesResponse
5
5
  }
@@ -1,5 +1,5 @@
1
- import { CustomerBranchesUpdateSingleRequest } from '../UpdateSingle/Request'
1
+ import { CustomersBranchesUpdateSingleRequest } from '../UpdateSingle/Request'
2
2
 
3
- export interface CustomerBranchesUpdateManyRequest {
4
- data: CustomerBranchesUpdateSingleRequest[]
3
+ export interface CustomersBranchesUpdateManyRequest {
4
+ data: CustomersBranchesUpdateSingleRequest[]
5
5
  }
@@ -1,4 +1,4 @@
1
- export interface CustomerBranchesUpdateManyResponse {
1
+ export interface CustomersBranchesUpdateManyResponse {
2
2
  ids: string[]
3
3
  message: string
4
4
  }
@@ -1,3 +1,3 @@
1
1
  import { CustomersBranchesRequest } from '../interfaces'
2
2
 
3
- export type CustomerBranchesUpdateSingleRequest = Partial<CustomersBranchesRequest>
3
+ export type CustomersBranchesUpdateSingleRequest = Partial<CustomersBranchesRequest>
@@ -1,4 +1,4 @@
1
- export interface CustomerBranchesUpdateSingleResponse {
1
+ export interface CustomersBranchesUpdateSingleResponse {
2
2
  id: string
3
3
  message: string
4
4
  }
@@ -1,11 +1,13 @@
1
1
  export * from './CreateMany/Request'
2
2
  export * from './CreateMany/Response'
3
3
  export * from './CreateSingle/Request'
4
+ export * from './CreateSingle/Response'
4
5
  export * from './DeleteMany/Request'
5
6
  export * from './DeleteMany/Response'
6
7
  export * from './DeleteSingle/Response'
7
8
  export * from './GetMany/Request'
8
9
  export * from './GetMany/Response'
10
+ export * from './GetSingle/Response'
9
11
  export * from './UpdateMany/Request'
10
12
  export * from './UpdateMany/Response'
11
13
  export * from './UpdateSingle/Request'
@@ -2,7 +2,7 @@ import { SystemNaturalTypesGetSingleResponse } from '../../system/NaturalTypes/G
2
2
  import { SystemPersonTypeGetSingleResponse } from '../../system/PersonTypes/GetSingle/Response'
3
3
  import { SystemSellingTypeGetSingleResponse } from '../../system/SellingTypes/GetSingle/Response'
4
4
  import { SystemTaxerTypesGetSingleResponse } from '../../system/TaxerTypes/GetSingle/Response'
5
- import { CustomerBranchesCreateSingleRequest } from '../Branches'
5
+ import { CustomersBranchesCreateSingleRequest } from '../Branches'
6
6
 
7
7
  export interface Customers {
8
8
  id: string
@@ -40,6 +40,6 @@ export type CustomersRequest = Omit<
40
40
  personType: number
41
41
  customerType: number
42
42
  customerTypeNatural: number
43
- branch: CustomerBranchesCreateSingleRequest
43
+ branch: CustomersBranchesCreateSingleRequest
44
44
  }
45
45
  export type CustomersResponse = Customers