@openbox/shared-types 0.2.35 → 0.2.37

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.
@@ -0,0 +1,4 @@
1
+ import { CustomersPersonTypesGetSingleResponse } from '../GetSingle/Response';
2
+ export type CustomersPersonTypesGetManyResponse = {
3
+ data: Array<CustomersPersonTypesGetSingleResponse>;
4
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../src/customers/PersonTypes/GetMany/Response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import { CustomersPersonTypesResponse } from '../customers.person-types.types';
2
+ export type CustomersPersonTypesGetSingleResponse = CustomersPersonTypesResponse;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../src/customers/PersonTypes/GetSingle/Response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { SystemPersonTypes } from '../../system/PersonTypes/system.person-types.types';
2
+ export type CustomersPersonTypes = SystemPersonTypes;
3
+ export type CustomersPersonTypesRequest = Omit<CustomersPersonTypes, 'id'>;
4
+ export type CustomersPersonTypesResponse = CustomersPersonTypes;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=customers.person-types.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customers.person-types.types.js","sourceRoot":"","sources":["../../../src/customers/PersonTypes/customers.person-types.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export * from './GetMany/Response';
2
+ export * from './GetSingle/Response';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./GetMany/Response"), exports);
18
+ __exportStar(require("./GetSingle/Response"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/customers/PersonTypes/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAkC;AAClC,uDAAoC"}
@@ -1,2 +1,3 @@
1
1
  export * from './Branches';
2
2
  export * from './Customers';
3
+ export * from './PersonTypes';
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./Branches"), exports);
18
18
  __exportStar(require("./Customers"), exports);
19
+ __exportStar(require("./PersonTypes"), exports);
19
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/customers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA0B;AAC1B,8CAA2B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/customers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA0B;AAC1B,8CAA2B;AAC3B,gDAA6B"}
@@ -1,6 +1,3 @@
1
- import { CustomersBranchesResponse } from '../../customers/Branches/customers.branches.types';
2
- import { CustomersResponse } from '../../customers/Customers/customers.types';
3
- import { InvoicesSellersResponse } from '../../invoices/Sellers/invoices.sellers.interface';
4
1
  export type SystemDirectoryType = 'phone' | 'cellphone' | 'email';
5
2
  type SystemDirectoryEntityType = 'warehouse' | 'company' | 'customer' | 'customerBranch' | 'invoicesSeller' | 'legalJurisdiction' | 'appointee' | 'assignee';
6
3
  export type SystemDirectory = {
@@ -8,9 +5,6 @@ export type SystemDirectory = {
8
5
  type: SystemDirectoryType;
9
6
  value: string;
10
7
  hasWhatsapp?: boolean;
11
- customer: CustomersResponse;
12
- customerBranch: CustomersBranchesResponse;
13
- invoicesSellers: InvoicesSellersResponse;
14
8
  };
15
9
  export type SystemDirectoryRequest = Omit<SystemDirectory, 'id' | 'customer' | 'customerBranch' | 'invoicesSellers'> & {
16
10
  entityType: SystemDirectoryEntityType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.2.35",
3
+ "version": "0.2.37",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",
@@ -0,0 +1,5 @@
1
+ import { CustomersPersonTypesGetSingleResponse } from '../GetSingle/Response'
2
+
3
+ export type CustomersPersonTypesGetManyResponse = {
4
+ data: Array<CustomersPersonTypesGetSingleResponse>
5
+ }
@@ -0,0 +1,3 @@
1
+ import { CustomersPersonTypesResponse } from '../customers.person-types.types'
2
+
3
+ export type CustomersPersonTypesGetSingleResponse = CustomersPersonTypesResponse
@@ -0,0 +1,6 @@
1
+ import { SystemPersonTypes } from '../../system/PersonTypes/system.person-types.types'
2
+
3
+ export type CustomersPersonTypes = SystemPersonTypes
4
+
5
+ export type CustomersPersonTypesRequest = Omit<CustomersPersonTypes, 'id'>
6
+ export type CustomersPersonTypesResponse = CustomersPersonTypes
@@ -0,0 +1,2 @@
1
+ export * from './GetMany/Response'
2
+ export * from './GetSingle/Response'
@@ -1,2 +1,3 @@
1
1
  export * from './Branches'
2
2
  export * from './Customers'
3
+ export * from './PersonTypes'
@@ -1,7 +1,3 @@
1
- import { CustomersBranchesResponse } from '../../customers/Branches/customers.branches.types'
2
- import { CustomersResponse } from '../../customers/Customers/customers.types'
3
- import { InvoicesSellersResponse } from '../../invoices/Sellers/invoices.sellers.interface'
4
-
5
1
  export type SystemDirectoryType = 'phone' | 'cellphone' | 'email'
6
2
 
7
3
  type SystemDirectoryEntityType =
@@ -23,9 +19,9 @@ export type SystemDirectory = {
23
19
  // appointee: LegalAppointeesEntity
24
20
  // assignee: LegalAssigneesEntity
25
21
  // legalJurisdiction: LegalJurisdictionsEntity
26
- customer: CustomersResponse
27
- customerBranch: CustomersBranchesResponse
28
- invoicesSellers: InvoicesSellersResponse
22
+ // customer: CustomersResponse
23
+ // customerBranch: CustomersBranchesResponse
24
+ // invoicesSellers: InvoicesSellersResponse
29
25
  }
30
26
 
31
27
  export type SystemDirectoryRequest = Omit<