@openbox/shared-types 0.6.44 → 0.6.46

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,2 +1,5 @@
1
1
  import { GetManyRequest } from '../../../interfaces';
2
- export type ChurchMeetingsGetManyRequest = GetManyRequest;
2
+ export type ChurchMeetingsGetManyRequest = GetManyRequest & {
3
+ startDate?: Date;
4
+ endDate?: Date;
5
+ };
@@ -0,0 +1,4 @@
1
+ import { GetManyRequest } from '../../../interfaces';
2
+ export type ManagementBranchGetManyRequest = GetManyRequest & {
3
+ isDefault?: boolean;
4
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../src/management/Branch/GetMany/Request.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import { GetManyResponse } from '../../../interfaces';
2
+ import { ManagementBranchResponse } from '../management.branch.type';
3
+ export type ManagementBranchGetManyResponse = GetManyResponse & {
4
+ data: Array<ManagementBranchResponse & {
5
+ index: number;
6
+ }>;
7
+ };
@@ -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/management/Branch/GetMany/Response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import { ManagementBranchResponse } from '../management.branch.type';
2
+ export type ManagementBranchGetSingleResponse = ManagementBranchResponse;
@@ -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/management/Branch/GetSingle/Response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import { SystemDirectoryUpdateSingleRequest } from '../../../system';
2
+ import { ManagementBranchRequest } from '../management.branch.type';
3
+ export type ManagementBranchUpdateSingleRequest = Partial<ManagementBranchRequest> & {
4
+ contacts?: Array<Omit<SystemDirectoryUpdateSingleRequest, 'entityType' | 'entityId'> & {
5
+ id?: string;
6
+ }>;
7
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../src/management/Branch/UpdateSingle/Request.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import { SingleResponse } from '../../../interfaces';
2
+ export type ManagementBranchUpdateSingleResponse = SingleResponse;
@@ -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/management/Branch/UpdateSingle/Response.ts"],"names":[],"mappings":""}
@@ -1 +1,6 @@
1
1
  export * from './management.branch.type';
2
+ export * from './GetMany/Request';
3
+ export * from './GetMany/Response';
4
+ export * from './GetSingle/Response';
5
+ export * from './UpdateSingle/Request';
6
+ export * from './UpdateSingle/Response';
@@ -15,4 +15,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./management.branch.type"), exports);
18
+ __exportStar(require("./GetMany/Request"), exports);
19
+ __exportStar(require("./GetMany/Response"), exports);
20
+ __exportStar(require("./GetSingle/Response"), exports);
21
+ __exportStar(require("./UpdateSingle/Request"), exports);
22
+ __exportStar(require("./UpdateSingle/Response"), exports);
18
23
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/management/Branch/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAwC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/management/Branch/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAwC;AACxC,oDAAiC;AACjC,qDAAkC;AAClC,uDAAoC;AACpC,yDAAsC;AACtC,0DAAuC"}
@@ -1,6 +1,22 @@
1
+ import { SystemCitiesResponse } from '../../system/Cities/system.cities.types';
2
+ import { SystemCountriesResponse } from '../../system/Countries/system.countries.types';
1
3
  import { SystemDirectoryResponse } from '../../system/Directory/system.directory.types';
4
+ import { SystemStatesResponse } from '../../system/States/system.states.types';
2
5
  export type ManagementBranch = {
3
6
  id: string;
7
+ code: string;
4
8
  name: string;
9
+ address1: string;
10
+ address2?: string;
11
+ isDefault: boolean;
12
+ country: SystemCountriesResponse;
13
+ state: SystemStatesResponse;
14
+ city: SystemCitiesResponse;
5
15
  contacts: Array<SystemDirectoryResponse>;
6
16
  };
17
+ export type ManagementBranchRequest = Omit<ManagementBranch, 'id' | 'city' | 'country' | 'state' | 'contacts' | 'isDefault'> & {
18
+ city: number;
19
+ country: number;
20
+ state: number;
21
+ };
22
+ export type ManagementBranchResponse = ManagementBranch;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.6.44",
3
+ "version": "0.6.46",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",