@openbox/shared-types 0.1.91 → 0.1.93

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.
@@ -1,7 +1,8 @@
1
+ import { CustomerBranchesContactInfo } from '../interfaces';
1
2
  export interface CustomerBranchesCreateSingleRequest {
2
3
  name: string;
3
4
  contactName?: string;
4
- contactInfo?: string;
5
+ contactInfo?: CustomerBranchesContactInfo;
5
6
  default: boolean;
6
7
  address1: string;
7
8
  address2?: string;
@@ -1,14 +1,12 @@
1
1
  import { SystemCityMany } from '../../../system/Cities';
2
2
  import { SystemCountryMany } from '../../../system/Countries';
3
3
  import { SystemStateMany } from '../../../system/States';
4
+ import { CustomerBranchesContactInfo } from '../interfaces';
4
5
  export interface CustomerBranchesMany {
5
6
  id: string;
6
7
  name: string;
7
8
  contactName: string;
8
- contactInfo: {
9
- phone: string[];
10
- emails: [];
11
- };
9
+ contactInfo: CustomerBranchesContactInfo;
12
10
  address1: string;
13
11
  address2: string;
14
12
  zipcode: string;
@@ -1,12 +1,10 @@
1
1
  import { SystemCityMany, SystemCountryMany, SystemStateMany } from '../../../system';
2
+ import { CustomerBranchesContactInfo } from '../interfaces';
2
3
  export interface CustomerBranchesSingle {
3
4
  id: string;
4
5
  name: string;
5
6
  contactName: string;
6
- contactInfo: {
7
- phone: string[];
8
- emails: [];
9
- };
7
+ contactInfo: CustomerBranchesContactInfo;
10
8
  address1: string;
11
9
  address2: string;
12
10
  zipcode: string;
@@ -1,12 +1,13 @@
1
+ import { CustomerBranchesContactInfo } from '../interfaces';
1
2
  export interface CustomerBranchesUpdateSingleRequest {
2
3
  name?: string;
3
4
  contactName?: string;
4
- contactInfo?: string;
5
+ contactInfo?: CustomerBranchesContactInfo;
5
6
  default?: boolean;
6
7
  address1?: string;
7
8
  address2?: string;
8
9
  zipcode?: string;
9
- country?: string;
10
- state?: string;
11
- city?: string;
10
+ country?: number;
11
+ state?: number;
12
+ city?: number;
12
13
  }
@@ -0,0 +1,4 @@
1
+ export interface CustomerBranchesContactInfo {
2
+ phone: string[];
3
+ emails: string[];
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/customers/Branches/interfaces.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.1.91",
3
+ "version": "0.1.93",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",
@@ -1,7 +1,9 @@
1
+ import { CustomerBranchesContactInfo } from '../interfaces'
2
+
1
3
  export interface CustomerBranchesCreateSingleRequest {
2
4
  name: string
3
5
  contactName?: string
4
- contactInfo?: string
6
+ contactInfo?: CustomerBranchesContactInfo
5
7
  default: boolean
6
8
  address1: string
7
9
  address2?: string
@@ -1,12 +1,13 @@
1
1
  import { SystemCityMany } from '../../../system/Cities'
2
2
  import { SystemCountryMany } from '../../../system/Countries'
3
3
  import { SystemStateMany } from '../../../system/States'
4
+ import { CustomerBranchesContactInfo } from '../interfaces'
4
5
 
5
6
  export interface CustomerBranchesMany {
6
7
  id: string
7
8
  name: string
8
9
  contactName: string
9
- contactInfo: { phone: string[]; emails: [] }
10
+ contactInfo: CustomerBranchesContactInfo
10
11
  address1: string
11
12
  address2: string
12
13
  zipcode: string
@@ -1,10 +1,11 @@
1
1
  import { SystemCityMany, SystemCountryMany, SystemStateMany } from '../../../system'
2
+ import { CustomerBranchesContactInfo } from '../interfaces'
2
3
 
3
4
  export interface CustomerBranchesSingle {
4
5
  id: string
5
6
  name: string
6
7
  contactName: string
7
- contactInfo: { phone: string[]; emails: [] }
8
+ contactInfo: CustomerBranchesContactInfo
8
9
  address1: string
9
10
  address2: string
10
11
  zipcode: string
@@ -1,12 +1,14 @@
1
+ import { CustomerBranchesContactInfo } from '../interfaces'
2
+
1
3
  export interface CustomerBranchesUpdateSingleRequest {
2
4
  name?: string
3
5
  contactName?: string
4
- contactInfo?: string
6
+ contactInfo?: CustomerBranchesContactInfo
5
7
  default?: boolean
6
8
  address1?: string
7
9
  address2?: string
8
10
  zipcode?: string
9
- country?: string
10
- state?: string
11
- city?: string
11
+ country?: number
12
+ state?: number
13
+ city?: number
12
14
  }
@@ -0,0 +1,4 @@
1
+ export interface CustomerBranchesContactInfo {
2
+ phone: string[]
3
+ emails: string[]
4
+ }