@openbox/shared-types 0.2.11 → 0.2.13

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 (25) hide show
  1. package/lib/customers/Branches/CreateMany/Request.d.ts +1 -3
  2. package/lib/customers/Branches/CreateMany/Response.d.ts +2 -2
  3. package/lib/customers/Branches/CreateSingle/Response.d.ts +2 -2
  4. package/lib/customers/Branches/DeleteMany/Request.d.ts +2 -2
  5. package/lib/customers/Branches/DeleteMany/Response.d.ts +2 -2
  6. package/lib/customers/Branches/DeleteSingle/Response.d.ts +2 -2
  7. package/lib/customers/Branches/GetSingle/Response.d.ts +1 -3
  8. package/lib/customers/Branches/UpdateMany/Request.d.ts +1 -3
  9. package/lib/customers/Branches/UpdateMany/Response.d.ts +2 -2
  10. package/lib/customers/Branches/UpdateSingle/Response.d.ts +2 -2
  11. package/lib/customers/Branches/UpdateSingleDefault/Response.d.ts +2 -2
  12. package/lib/customers/Branches/interfaces.d.ts +1 -1
  13. package/package.json +1 -1
  14. package/src/customers/Branches/CreateMany/Request.ts +1 -3
  15. package/src/customers/Branches/CreateMany/Response.ts +1 -1
  16. package/src/customers/Branches/CreateSingle/Response.ts +1 -1
  17. package/src/customers/Branches/DeleteMany/Request.ts +1 -1
  18. package/src/customers/Branches/DeleteMany/Response.ts +1 -1
  19. package/src/customers/Branches/DeleteSingle/Response.ts +1 -1
  20. package/src/customers/Branches/GetSingle/Response.ts +1 -3
  21. package/src/customers/Branches/UpdateMany/Request.ts +1 -3
  22. package/src/customers/Branches/UpdateMany/Response.ts +1 -1
  23. package/src/customers/Branches/UpdateSingle/Response.ts +1 -1
  24. package/src/customers/Branches/UpdateSingleDefault/Response.ts +1 -1
  25. package/src/customers/Branches/interfaces.ts +1 -1
@@ -1,4 +1,2 @@
1
1
  import { CustomersBranchesCreateSingleRequest } from '../CreateSingle/Request';
2
- export interface CustomersBranchesCreateManyRequest {
3
- data: CustomersBranchesCreateSingleRequest[];
4
- }
2
+ export type CustomersBranchesCreateManyRequest = Array<CustomersBranchesCreateSingleRequest>;
@@ -1,4 +1,4 @@
1
- export interface CustomersBranchesCreateManyResponse {
1
+ export type CustomersBranchesCreateManyResponse = {
2
2
  ids: string[];
3
3
  message: string;
4
- }
4
+ };
@@ -1,4 +1,4 @@
1
- export interface CustomersBranchesCreateSingleResponse {
1
+ export type CustomersBranchesCreateSingleResponse = {
2
2
  id: string;
3
3
  message: string;
4
- }
4
+ };
@@ -1,3 +1,3 @@
1
- export interface CustomersBranchesDeleteManyRequest {
1
+ export type CustomersBranchesDeleteManyRequest = {
2
2
  ids: string[];
3
- }
3
+ };
@@ -1,4 +1,4 @@
1
- export interface CustomersBranchesDeleteManyResponse {
1
+ export type CustomersBranchesDeleteManyResponse = {
2
2
  ids: string[];
3
3
  message: string;
4
- }
4
+ };
@@ -1,4 +1,4 @@
1
- export interface CustomersBranchesDeleteSingleResponse {
1
+ export type CustomersBranchesDeleteSingleResponse = {
2
2
  id: string;
3
3
  message: string;
4
- }
4
+ };
@@ -1,4 +1,2 @@
1
1
  import { CustomersBranchesResponse } from '../interfaces';
2
- export interface CustomersBranchesGetSingleResponse {
3
- data: CustomersBranchesResponse;
4
- }
2
+ export type CustomersBranchesGetSingleResponse = CustomersBranchesResponse;
@@ -1,4 +1,2 @@
1
1
  import { CustomersBranchesUpdateSingleRequest } from '../UpdateSingle/Request';
2
- export interface CustomersBranchesUpdateManyRequest {
3
- data: CustomersBranchesUpdateSingleRequest[];
4
- }
2
+ export type CustomersBranchesUpdateManyRequest = Array<CustomersBranchesUpdateSingleRequest>;
@@ -1,4 +1,4 @@
1
- export interface CustomersBranchesUpdateManyResponse {
1
+ export type CustomersBranchesUpdateManyResponse = {
2
2
  ids: string[];
3
3
  message: string;
4
- }
4
+ };
@@ -1,4 +1,4 @@
1
- export interface CustomersBranchesUpdateSingleResponse {
1
+ export type CustomersBranchesUpdateSingleResponse = {
2
2
  id: string;
3
3
  message: string;
4
- }
4
+ };
@@ -1,4 +1,4 @@
1
- export interface CustomersBranchesUpdateSingleDefaultResponse {
1
+ export type CustomersBranchesUpdateSingleDefaultResponse = {
2
2
  id: string;
3
3
  message: string;
4
- }
4
+ };
@@ -10,7 +10,7 @@ export interface CustomersBranches {
10
10
  contactInfo: CustomerBranchesContactInfo;
11
11
  address1: string;
12
12
  address2?: string;
13
- zipcode: string;
13
+ zipcode?: string;
14
14
  default?: boolean;
15
15
  city: SystemCitiesGetSingleResponse;
16
16
  country: SystemCountriesGetSingleReponse;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.2.11",
3
+ "version": "0.2.13",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",
@@ -1,5 +1,3 @@
1
1
  import { CustomersBranchesCreateSingleRequest } from '../CreateSingle/Request'
2
2
 
3
- export interface CustomersBranchesCreateManyRequest {
4
- data: CustomersBranchesCreateSingleRequest[]
5
- }
3
+ export type CustomersBranchesCreateManyRequest = Array<CustomersBranchesCreateSingleRequest>
@@ -1,4 +1,4 @@
1
- export interface CustomersBranchesCreateManyResponse {
1
+ export type CustomersBranchesCreateManyResponse = {
2
2
  ids: string[]
3
3
  message: string
4
4
  }
@@ -1,4 +1,4 @@
1
- export interface CustomersBranchesCreateSingleResponse {
1
+ export type CustomersBranchesCreateSingleResponse = {
2
2
  id: string
3
3
  message: string
4
4
  }
@@ -1,3 +1,3 @@
1
- export interface CustomersBranchesDeleteManyRequest {
1
+ export type CustomersBranchesDeleteManyRequest = {
2
2
  ids: string[]
3
3
  }
@@ -1,4 +1,4 @@
1
- export interface CustomersBranchesDeleteManyResponse {
1
+ export type CustomersBranchesDeleteManyResponse = {
2
2
  ids: string[]
3
3
  message: string
4
4
  }
@@ -1,4 +1,4 @@
1
- export interface CustomersBranchesDeleteSingleResponse {
1
+ export type CustomersBranchesDeleteSingleResponse = {
2
2
  id: string
3
3
  message: string
4
4
  }
@@ -1,5 +1,3 @@
1
1
  import { CustomersBranchesResponse } from '../interfaces'
2
2
 
3
- export interface CustomersBranchesGetSingleResponse {
4
- data: CustomersBranchesResponse
5
- }
3
+ export type CustomersBranchesGetSingleResponse = CustomersBranchesResponse
@@ -1,5 +1,3 @@
1
1
  import { CustomersBranchesUpdateSingleRequest } from '../UpdateSingle/Request'
2
2
 
3
- export interface CustomersBranchesUpdateManyRequest {
4
- data: CustomersBranchesUpdateSingleRequest[]
5
- }
3
+ export type CustomersBranchesUpdateManyRequest = Array<CustomersBranchesUpdateSingleRequest>
@@ -1,4 +1,4 @@
1
- export interface CustomersBranchesUpdateManyResponse {
1
+ export type CustomersBranchesUpdateManyResponse = {
2
2
  ids: string[]
3
3
  message: string
4
4
  }
@@ -1,4 +1,4 @@
1
- export interface CustomersBranchesUpdateSingleResponse {
1
+ export type CustomersBranchesUpdateSingleResponse = {
2
2
  id: string
3
3
  message: string
4
4
  }
@@ -1,4 +1,4 @@
1
- export interface CustomersBranchesUpdateSingleDefaultResponse {
1
+ export type CustomersBranchesUpdateSingleDefaultResponse = {
2
2
  id: string
3
3
  message: string
4
4
  }
@@ -16,7 +16,7 @@ export interface CustomersBranches {
16
16
  contactInfo: CustomerBranchesContactInfo
17
17
  address1: string
18
18
  address2?: string
19
- zipcode: string
19
+ zipcode?: string
20
20
  default?: boolean
21
21
  city: SystemCitiesGetSingleResponse
22
22
  country: SystemCountriesGetSingleReponse