@openbox/shared-types 0.2.96 → 0.2.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.
Files changed (53) hide show
  1. package/lib/legal/Lawyers/CreateSingle/Request.d.ts +2 -0
  2. package/lib/legal/Lawyers/CreateSingle/Request.js +3 -0
  3. package/lib/legal/Lawyers/CreateSingle/Request.js.map +1 -0
  4. package/lib/legal/Lawyers/CreateSingle/Response.d.ts +2 -0
  5. package/lib/legal/Lawyers/CreateSingle/Response.js +3 -0
  6. package/lib/legal/Lawyers/CreateSingle/Response.js.map +1 -0
  7. package/lib/legal/Lawyers/DeleteSingle/Response.d.ts +2 -0
  8. package/lib/legal/Lawyers/DeleteSingle/Response.js +3 -0
  9. package/lib/legal/Lawyers/DeleteSingle/Response.js.map +1 -0
  10. package/lib/legal/Lawyers/GetMany/Request.d.ts +4 -0
  11. package/lib/legal/Lawyers/GetMany/Request.js +3 -0
  12. package/lib/legal/Lawyers/GetMany/Request.js.map +1 -0
  13. package/lib/legal/Lawyers/GetMany/Response.d.ts +7 -0
  14. package/lib/legal/Lawyers/GetMany/Response.js +3 -0
  15. package/lib/legal/Lawyers/GetMany/Response.js.map +1 -0
  16. package/lib/legal/Lawyers/GetSingle/Response.d.ts +2 -0
  17. package/lib/legal/Lawyers/GetSingle/Response.js +3 -0
  18. package/lib/legal/Lawyers/GetSingle/Response.js.map +1 -0
  19. package/lib/legal/Lawyers/UpdateSingle/Request.d.ts +2 -0
  20. package/lib/legal/Lawyers/UpdateSingle/Request.js +3 -0
  21. package/lib/legal/Lawyers/UpdateSingle/Request.js.map +1 -0
  22. package/lib/legal/Lawyers/UpdateSingle/Response.d.ts +2 -0
  23. package/lib/legal/Lawyers/UpdateSingle/Response.js +3 -0
  24. package/lib/legal/Lawyers/UpdateSingle/Response.js.map +1 -0
  25. package/lib/legal/Lawyers/UpdateSingleStatus/Request.d.ts +3 -0
  26. package/lib/legal/Lawyers/UpdateSingleStatus/Request.js +3 -0
  27. package/lib/legal/Lawyers/UpdateSingleStatus/Request.js.map +1 -0
  28. package/lib/legal/Lawyers/UpdateSingleStatus/Response.d.ts +2 -0
  29. package/lib/legal/Lawyers/UpdateSingleStatus/Response.js +3 -0
  30. package/lib/legal/Lawyers/UpdateSingleStatus/Response.js.map +1 -0
  31. package/lib/legal/Lawyers/index.d.ts +11 -0
  32. package/lib/legal/Lawyers/index.js +28 -0
  33. package/lib/legal/Lawyers/index.js.map +1 -0
  34. package/lib/legal/Lawyers/legal.lawyers.type.d.ts +13 -0
  35. package/lib/legal/Lawyers/legal.lawyers.type.js +3 -0
  36. package/lib/legal/Lawyers/legal.lawyers.type.js.map +1 -0
  37. package/lib/legal/index.d.ts +1 -0
  38. package/lib/legal/index.js +1 -0
  39. package/lib/legal/index.js.map +1 -1
  40. package/package.json +1 -1
  41. package/src/legal/Lawyers/CreateSingle/Request.ts +3 -0
  42. package/src/legal/Lawyers/CreateSingle/Response.ts +3 -0
  43. package/src/legal/Lawyers/DeleteSingle/Response.ts +3 -0
  44. package/src/legal/Lawyers/GetMany/Request.ts +5 -0
  45. package/src/legal/Lawyers/GetMany/Response.ts +6 -0
  46. package/src/legal/Lawyers/GetSingle/Response.ts +3 -0
  47. package/src/legal/Lawyers/UpdateSingle/Request.ts +3 -0
  48. package/src/legal/Lawyers/UpdateSingle/Response.ts +3 -0
  49. package/src/legal/Lawyers/UpdateSingleStatus/Request.ts +3 -0
  50. package/src/legal/Lawyers/UpdateSingleStatus/Response.ts +3 -0
  51. package/src/legal/Lawyers/index.ts +11 -0
  52. package/src/legal/Lawyers/legal.lawyers.type.ts +20 -0
  53. package/src/legal/index.ts +1 -0
@@ -0,0 +1,2 @@
1
+ import { LegalLawyersRequest } from '../legal.lawyers.type';
2
+ export type LegalLawyersCreateSingleRequest = LegalLawyersRequest;
@@ -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/legal/Lawyers/CreateSingle/Request.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import { SingleResponse } from '../../../interfaces';
2
+ export type LegalLawyersCreateSingleResponse = 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/legal/Lawyers/CreateSingle/Response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import { SingleResponse } from '../../../interfaces';
2
+ export type LegalLawyersDeleteSingleResponse = 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/legal/Lawyers/DeleteSingle/Response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { GetManyRequest } from '../../../interfaces';
2
+ export type LegalLawyersGetManyRequest = GetManyRequest & {
3
+ active?: 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/legal/Lawyers/GetMany/Request.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import { GetManyResponse } from '../../../interfaces';
2
+ import { LegalLawyers } from '../legal.lawyers.type';
3
+ export type LegalLawyersGetManyResponse = GetManyResponse & {
4
+ data: Array<LegalLawyers & {
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/legal/Lawyers/GetMany/Response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import { LegalLawyers } from '../legal.lawyers.type';
2
+ export type LegalLawyersGetSingleResponse = LegalLawyers;
@@ -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/legal/Lawyers/GetSingle/Response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import { LegalLawyersCreateSingleRequest } from '../CreateSingle/Request';
2
+ export type LegalLawyersUpdateSingleRequest = Partial<LegalLawyersCreateSingleRequest>;
@@ -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/legal/Lawyers/UpdateSingle/Request.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import { SingleResponse } from '../../../interfaces';
2
+ export type LegalLawyersUpdateSingleResponse = 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/legal/Lawyers/UpdateSingle/Response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export type LegalLawyersUpdateSingleStatusRequest = {
2
+ active: boolean;
3
+ };
@@ -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/legal/Lawyers/UpdateSingleStatus/Request.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import { SingleResponse } from '../../../interfaces';
2
+ export type LegalLawyersUpdateSingleStatusResponse = 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/legal/Lawyers/UpdateSingleStatus/Response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ export * from './CreateSingle/Request';
2
+ export * from './CreateSingle/Response';
3
+ export * from './DeleteSingle/Response';
4
+ export * from './GetMany/Request';
5
+ export * from './GetMany/Response';
6
+ export * from './GetSingle/Response';
7
+ export * from './UpdateSingle/Request';
8
+ export * from './UpdateSingle/Response';
9
+ export * from './UpdateSingleStatus/Request';
10
+ export * from './UpdateSingleStatus/Response';
11
+ export * from './legal.lawyers.type';
@@ -0,0 +1,28 @@
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("./CreateSingle/Request"), exports);
18
+ __exportStar(require("./CreateSingle/Response"), exports);
19
+ __exportStar(require("./DeleteSingle/Response"), exports);
20
+ __exportStar(require("./GetMany/Request"), exports);
21
+ __exportStar(require("./GetMany/Response"), exports);
22
+ __exportStar(require("./GetSingle/Response"), exports);
23
+ __exportStar(require("./UpdateSingle/Request"), exports);
24
+ __exportStar(require("./UpdateSingle/Response"), exports);
25
+ __exportStar(require("./UpdateSingleStatus/Request"), exports);
26
+ __exportStar(require("./UpdateSingleStatus/Response"), exports);
27
+ __exportStar(require("./legal.lawyers.type"), exports);
28
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/legal/Lawyers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAsC;AACtC,0DAAuC;AACvC,0DAAuC;AACvC,oDAAiC;AACjC,qDAAkC;AAClC,uDAAoC;AACpC,yDAAsC;AACtC,0DAAuC;AACvC,+DAA4C;AAC5C,gEAA6C;AAC7C,uDAAoC"}
@@ -0,0 +1,13 @@
1
+ import { ManagementUsers } from '../../management';
2
+ import { SystemDirectoryResponse } from '../../system/Directory/system.directory.types';
3
+ import { LegalAdvisories } from '../Advisories';
4
+ export type LegalLawyers = {
5
+ id: string;
6
+ active: boolean;
7
+ user: Pick<ManagementUsers, 'id' | 'names' | 'lastnames'>;
8
+ contacts: SystemDirectoryResponse[];
9
+ legalAdvisories: LegalAdvisories[];
10
+ };
11
+ export type LegalLawyersRequest = Omit<LegalLawyers, 'contacts' | 'legalAdvisories' | 'active' | 'user'> & {
12
+ user: string;
13
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=legal.lawyers.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"legal.lawyers.type.js","sourceRoot":"","sources":["../../../src/legal/Lawyers/legal.lawyers.type.ts"],"names":[],"mappings":""}
@@ -1,2 +1,3 @@
1
1
  export * from './Appointees';
2
+ export * from './Lawyers';
2
3
  export * from './PeopleCapacities';
@@ -15,5 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./Appointees"), exports);
18
+ __exportStar(require("./Lawyers"), exports);
18
19
  __exportStar(require("./PeopleCapacities"), exports);
19
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/legal/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA4B;AAC5B,qDAAkC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/legal/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA4B;AAC5B,4CAAyB;AACzB,qDAAkC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.2.96",
3
+ "version": "0.2.97",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",
@@ -0,0 +1,3 @@
1
+ import { LegalLawyersRequest } from '../legal.lawyers.type'
2
+
3
+ export type LegalLawyersCreateSingleRequest = LegalLawyersRequest
@@ -0,0 +1,3 @@
1
+ import { SingleResponse } from '../../../interfaces'
2
+
3
+ export type LegalLawyersCreateSingleResponse = SingleResponse
@@ -0,0 +1,3 @@
1
+ import { SingleResponse } from '../../../interfaces'
2
+
3
+ export type LegalLawyersDeleteSingleResponse = SingleResponse
@@ -0,0 +1,5 @@
1
+ import { GetManyRequest } from '../../../interfaces'
2
+
3
+ export type LegalLawyersGetManyRequest = GetManyRequest & {
4
+ active?: boolean
5
+ }
@@ -0,0 +1,6 @@
1
+ import { GetManyResponse } from '../../../interfaces'
2
+ import { LegalLawyers } from '../legal.lawyers.type'
3
+
4
+ export type LegalLawyersGetManyResponse = GetManyResponse & {
5
+ data: Array<LegalLawyers & { index: number }>
6
+ }
@@ -0,0 +1,3 @@
1
+ import { LegalLawyers } from '../legal.lawyers.type'
2
+
3
+ export type LegalLawyersGetSingleResponse = LegalLawyers
@@ -0,0 +1,3 @@
1
+ import { LegalLawyersCreateSingleRequest } from '../CreateSingle/Request'
2
+
3
+ export type LegalLawyersUpdateSingleRequest = Partial<LegalLawyersCreateSingleRequest>
@@ -0,0 +1,3 @@
1
+ import { SingleResponse } from '../../../interfaces'
2
+
3
+ export type LegalLawyersUpdateSingleResponse = SingleResponse
@@ -0,0 +1,3 @@
1
+ export type LegalLawyersUpdateSingleStatusRequest = {
2
+ active: boolean
3
+ }
@@ -0,0 +1,3 @@
1
+ import { SingleResponse } from '../../../interfaces'
2
+
3
+ export type LegalLawyersUpdateSingleStatusResponse = SingleResponse
@@ -0,0 +1,11 @@
1
+ export * from './CreateSingle/Request'
2
+ export * from './CreateSingle/Response'
3
+ export * from './DeleteSingle/Response'
4
+ export * from './GetMany/Request'
5
+ export * from './GetMany/Response'
6
+ export * from './GetSingle/Response'
7
+ export * from './UpdateSingle/Request'
8
+ export * from './UpdateSingle/Response'
9
+ export * from './UpdateSingleStatus/Request'
10
+ export * from './UpdateSingleStatus/Response'
11
+ export * from './legal.lawyers.type'
@@ -0,0 +1,20 @@
1
+ import { ManagementUsers } from '../../management'
2
+ import { SystemDirectoryResponse } from '../../system/Directory/system.directory.types'
3
+ import { LegalAdvisories } from '../Advisories'
4
+
5
+ export type LegalLawyers = {
6
+ id: string
7
+ active: boolean
8
+ user: Pick<ManagementUsers, 'id' | 'names' | 'lastnames'>
9
+ contacts: SystemDirectoryResponse[]
10
+ legalAdvisories: LegalAdvisories[]
11
+ // legalCaseMeetingNotes: LegalCaseMeetingNotesEntity[]
12
+ // legalCases: LegalCasesEntity[]
13
+ }
14
+
15
+ export type LegalLawyersRequest = Omit<
16
+ LegalLawyers,
17
+ 'contacts' | 'legalAdvisories' | 'active' | 'user'
18
+ > & {
19
+ user: string
20
+ }
@@ -1,2 +1,3 @@
1
1
  export * from './Appointees'
2
+ export * from './Lawyers'
2
3
  export * from './PeopleCapacities'