@openbox/shared-types 0.1.96 → 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.
@@ -1,13 +1,6 @@
1
- import { CustomerBranchesContactInfo } from '../interfaces';
2
- export interface CustomerBranchesUpdateSingleRequest {
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
+ };
@@ -15,7 +15,4 @@ export interface CustomersBranches {
15
15
  city: SystemCitiesGetSingleResponse;
16
16
  country: SystemCountriesGetSingleReponse;
17
17
  state: SystemStatesGetSingleResponse;
18
- createdAt: Date;
19
- updatedAt: Date;
20
- deletedAt: Date;
21
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.1.96",
3
+ "version": "0.1.97",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",
@@ -1,13 +1,6 @@
1
- import { CustomerBranchesContactInfo } from '../interfaces'
1
+ import { CustomersBranches } from '../interfaces'
2
2
 
3
- export interface CustomerBranchesUpdateSingleRequest {
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
@@ -21,7 +21,4 @@ export interface CustomersBranches {
21
21
  city: SystemCitiesGetSingleResponse
22
22
  country: SystemCountriesGetSingleReponse
23
23
  state: SystemStatesGetSingleResponse
24
- createdAt: Date
25
- updatedAt: Date
26
- deletedAt: Date
27
24
  }