@healthloq/healthloq-types 0.0.15

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.
package/CHANGELOG.md ADDED
@@ -0,0 +1,106 @@
1
+ ## [0.0.15] - 2020-09-15
2
+
3
+ ### Added
4
+
5
+ - AccountId
6
+
7
+ ### Changed
8
+
9
+ - IOrganizationDTO now has the field `account_id` of type AccountId
10
+
11
+ ## [0.0.14] - 2020-08-10
12
+
13
+ ### Added
14
+
15
+ - IUpdateBulkExhibitDTO
16
+ - IUpdateBulkFacetDTO
17
+
18
+ ## [0.0.13] - 2020-08-07
19
+
20
+ ### Added
21
+
22
+ - IUpdateExhibitDTO
23
+
24
+ ## [0.0.12] - 2020-08-06
25
+
26
+ ### Added
27
+
28
+ - IUpdateFacetDTO
29
+
30
+ ## [0.0.11] - 2020-07-21
31
+
32
+ ### Changed
33
+
34
+ - IIntegrantDetailDTO `transfers` field now accurately reflects the type of ITransferDetailDTO[]
35
+ - ICreateIntegrantDTO now has the field `origination_transfer` of type ICreateTransferDTO
36
+ - ICreateIntegrantResponseDTO now has the field `origination_transfer` of type ITransferDTO | null
37
+
38
+ ## [0.0.10] - 2020-07-20
39
+
40
+ ### Added
41
+
42
+ - ITransferDetailDTO
43
+
44
+ ### Changed
45
+
46
+ - ITransferDTO and ICreateTransferDTO now have the field `integrant_id`
47
+
48
+ ## [0.0.9] - 2020-07-15
49
+
50
+ ### Added
51
+
52
+ - IConsumerAtomsDTO
53
+ - IConsumerAttachmentDTO
54
+ - IConsumerBatchDTO
55
+ - IConsumerEventDTO
56
+ - IConsumerIntegrantDTO
57
+ - IConsumerOrganizationDTO
58
+ - IConsumerLinksDTO
59
+ - IConsumerTrackingDTO
60
+ - IConsumerVendorProductDTO
61
+ - IConsumerVendorProductDetailsDTO
62
+
63
+ ## [0.0.8] - 2020-07-14
64
+
65
+ ### Changed
66
+
67
+ - ICreateIntegrantTypeDTO `image_thumb_url` is now string | null
68
+
69
+ ## [0.0.7] - 2020-06-29
70
+
71
+ ### Changed
72
+
73
+ - ICreateIndividualDTO 'phone' field can be null or string
74
+
75
+ ## [0.0.6] - 2020-06-18
76
+
77
+ ### Changed
78
+
79
+ - IIntegrantDTO, IIntegrantDetailDTO, and ICreateIntegrantResponseDTO now have the field `inherited_facets`
80
+
81
+ ## [0.0.5] - 2020-06-15
82
+
83
+ ### Changed
84
+
85
+ - IIndividualDTO now has the field `active`
86
+ - IOrganizationDTO and ICreateOrganizationDTO now have the fields `description`, `logo_url`, and `tag_line`
87
+
88
+ ## [0.0.4] - 2020-06-04
89
+
90
+ ### Added
91
+
92
+ - ICloneIntegrantDTO
93
+
94
+ ## [0.0.3] - 2020-05-26
95
+
96
+ ### Changed
97
+
98
+ - ILocationDTO now has the field `country`
99
+ - ICreateLocationDTO now has the field `country`
100
+
101
+ ## [0.0.2] - 2020-05-22
102
+
103
+ ### Added
104
+
105
+ - IRecoverPasswordDTO
106
+ - IResetPasswordDTO
package/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # HealthLoq Types
2
+
3
+ - This repo is a collection of the interfaces, schemas, and models for HealthLoq.
@@ -0,0 +1,2 @@
1
+ import { UUID } from './common';
2
+ export declare type AccountId = UUID;
package/lib/account.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/lib/auth.d.ts ADDED
@@ -0,0 +1,19 @@
1
+ import { Password } from './individual';
2
+ export interface ILoginDTO {
3
+ readonly username: string;
4
+ readonly password: Password;
5
+ }
6
+ export interface IRecoverPasswordDTO {
7
+ readonly email_address: string;
8
+ }
9
+ export interface IResetPasswordDTO {
10
+ readonly token: string;
11
+ readonly individual_id: string;
12
+ readonly password: string;
13
+ readonly sent_on: string;
14
+ }
15
+ export declare enum RoleTypes {
16
+ 'ADMIN' = "Admin",
17
+ 'PRODUCER' = "Producer",
18
+ 'SUPER_ADMIN' = "SuperAdmin"
19
+ }
package/lib/auth.js ADDED
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RoleTypes = void 0;
4
+ var RoleTypes;
5
+ (function (RoleTypes) {
6
+ RoleTypes["ADMIN"] = "Admin";
7
+ RoleTypes["PRODUCER"] = "Producer";
8
+ RoleTypes["SUPER_ADMIN"] = "SuperAdmin";
9
+ })(RoleTypes = exports.RoleTypes || (exports.RoleTypes = {}));
@@ -0,0 +1,2 @@
1
+ export declare type DocumentId = string;
2
+ export declare type UUID = string;
package/lib/common.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,56 @@
1
+ import { IIntegrantDTO } from './integrant';
2
+ import { IOrganizationDTO } from './organization';
3
+ export interface IConsumerBatchDTO {
4
+ org_id: string;
5
+ org_name: string;
6
+ product_name: string;
7
+ tracking_id: string;
8
+ id: string;
9
+ lot_no: string;
10
+ vendor_product: IConsumerVendorProductDTO;
11
+ buy_again_url: string;
12
+ }
13
+ export interface IConsumerVendorProductDTO {
14
+ id: string;
15
+ details: IConsumerVendorProductDetailsDTO;
16
+ atoms: IConsumerAtomsDTO;
17
+ other_atoms: string;
18
+ }
19
+ export interface IConsumerVendorProductDetailsDTO {
20
+ directions: string;
21
+ warning: string;
22
+ }
23
+ export interface IConsumerAtomsDTO {
24
+ links: IConsumerLinksDTO[];
25
+ nodes: IConsumerIntegrantDTO[];
26
+ }
27
+ export interface IConsumerLinksDTO {
28
+ source: IConsumerIntegrantDTO['id'];
29
+ target: IConsumerIntegrantDTO['id'];
30
+ }
31
+ export interface IConsumerIntegrantDTO extends IIntegrantDTO {
32
+ track: IConsumerTrackingDTO;
33
+ }
34
+ export interface IConsumerTrackingDTO {
35
+ id: string;
36
+ events: IConsumerEventDTO[];
37
+ created_on: string;
38
+ updated_on: string;
39
+ }
40
+ export interface IConsumerAttachmentDTO {
41
+ title: string;
42
+ url: string;
43
+ }
44
+ export interface IConsumerEventDTO {
45
+ id: string;
46
+ vendor_id: string;
47
+ comment: string;
48
+ coordinates: [number, number];
49
+ target: IConsumerIntegrantDTO['id'][];
50
+ attachment_urls: IConsumerAttachmentDTO[];
51
+ created_on: string;
52
+ updated_on: string;
53
+ }
54
+ export interface IConsumerOrganizationDTO extends IOrganizationDTO {
55
+ exhibits_title: string;
56
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,30 @@
1
+ import { ILocationDTO } from './location';
2
+ import { DocumentId } from './common';
3
+ export declare type ExhibitId = DocumentId;
4
+ export declare type ExhibitTypeId = DocumentId;
5
+ export interface IExhibitDTO {
6
+ readonly id: ExhibitId;
7
+ readonly exhibit_type_id: ExhibitTypeId;
8
+ readonly title: string;
9
+ readonly description: string;
10
+ readonly rank: number;
11
+ readonly url: string;
12
+ readonly location: ILocationDTO | null;
13
+ }
14
+ export interface ICreateExhibitDTO {
15
+ readonly exhibit_type_id: ExhibitTypeId;
16
+ readonly title: string;
17
+ readonly description: string;
18
+ readonly rank: number;
19
+ readonly location: ILocationDTO | null;
20
+ }
21
+ export interface IUpdateExhibitDTO {
22
+ readonly exhibit_type_id?: ExhibitTypeId;
23
+ readonly title?: string;
24
+ readonly description?: string;
25
+ readonly rank?: number;
26
+ readonly location?: ILocationDTO | null;
27
+ }
28
+ export interface IUpdateBulkExhibitDTO extends IUpdateExhibitDTO {
29
+ readonly id: ExhibitId;
30
+ }
package/lib/exhibit.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/lib/facet.d.ts ADDED
@@ -0,0 +1,21 @@
1
+ import { DocumentId } from './common';
2
+ export declare type FacetId = DocumentId;
3
+ export interface IFacetDTO {
4
+ readonly id: string;
5
+ readonly title: string;
6
+ readonly description: string;
7
+ readonly rank: number;
8
+ }
9
+ export interface ICreateFacetDTO {
10
+ readonly title: string;
11
+ readonly description: string;
12
+ readonly rank: number;
13
+ }
14
+ export interface IUpdateFacetDTO {
15
+ readonly title?: string;
16
+ readonly description?: string;
17
+ readonly rank?: number;
18
+ }
19
+ export interface IUpdateBulkFacetDTO extends IUpdateFacetDTO {
20
+ readonly id: FacetId;
21
+ }
package/lib/facet.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/lib/index.d.ts ADDED
@@ -0,0 +1,17 @@
1
+ import { AccountId } from './account';
2
+ import { ILoginDTO, IRecoverPasswordDTO, IResetPasswordDTO, RoleTypes } from './auth';
3
+ import { DocumentId, UUID } from './common';
4
+ import { IConsumerAtomsDTO, IConsumerAttachmentDTO, IConsumerBatchDTO, IConsumerEventDTO, IConsumerIntegrantDTO, IConsumerOrganizationDTO, IConsumerLinksDTO, IConsumerTrackingDTO, IConsumerVendorProductDTO, IConsumerVendorProductDetailsDTO } from './consumer';
5
+ import { ExhibitId, IExhibitDTO, ICreateExhibitDTO, IUpdateBulkExhibitDTO, IUpdateExhibitDTO, ExhibitTypeId } from './exhibit';
6
+ import { FacetId, IFacetDTO, ICreateFacetDTO, IUpdateBulkFacetDTO, IUpdateFacetDTO } from './facet';
7
+ import { IndividualId, Password, IIndividualDTO, IIndividualDetailDTO, IIndividualAuthenticatedDTO, ICreateIndividualDTO, IIndividualRoleDTO } from './individual';
8
+ import { IntegrantId, IIntegrantDTO, IIntegrantDetailDTO, ICloneIntegrantDTO, ICreateIntegrantDTO, ICreateIntegrantResponseDTO, IUpdateIntegrantDTO } from './integrant';
9
+ import { IntegrantTypeId, IIntegrantTypeDTO, ICreateIntegrantTypeDTO } from './integrantType';
10
+ import { ILocationDTO, ICreateLocationDTO } from './location';
11
+ import { LogId, ILogDTO, ICreateLogDTO } from './log';
12
+ import { MutationId, IMutationDTO, IMutationDetailDTO, ICreateMutationDTO, MutationTypeId } from './mutation';
13
+ import { OrganizationId, IOrganizationDTO, ICreateOrganizationDTO } from './organization';
14
+ import { Stream, IStreamItem, IStreamItemExhibit, IStreamItemFacet, IStreamItemIntegrant, IStreamItemMutation, IStreamItemSecondaryIntegrant, IStreamItemTransfer, IStreamItemTransit } from './stream';
15
+ import { TransferId, ITransferDTO, ITransferDetailDTO, ICreateTransferDTO } from './transfer';
16
+ import { TransitId, ITransitDTO, ITransitDetailDTO, ICreateTransitDTO } from './transit';
17
+ export { AccountId, IConsumerAtomsDTO, IConsumerAttachmentDTO, IConsumerBatchDTO, IConsumerEventDTO, IConsumerIntegrantDTO, IConsumerOrganizationDTO, IConsumerLinksDTO, IConsumerTrackingDTO, IConsumerVendorProductDTO, IConsumerVendorProductDetailsDTO, DocumentId, ExhibitId, IExhibitDTO, ICreateExhibitDTO, IUpdateBulkExhibitDTO, IUpdateExhibitDTO, ExhibitTypeId, FacetId, IFacetDTO, ICreateFacetDTO, IUpdateBulkFacetDTO, IUpdateFacetDTO, IndividualId, IIndividualDTO, IIndividualDetailDTO, IIndividualAuthenticatedDTO, ICreateIndividualDTO, IIndividualRoleDTO, IntegrantId, IIntegrantDTO, IIntegrantDetailDTO, ICloneIntegrantDTO, ICreateIntegrantDTO, ICreateIntegrantResponseDTO, IUpdateIntegrantDTO, IntegrantTypeId, IIntegrantTypeDTO, ICreateIntegrantTypeDTO, ILocationDTO, ICreateLocationDTO, LogId, ILogDTO, ICreateLogDTO, ILoginDTO, MutationId, MutationTypeId, IMutationDTO, IMutationDetailDTO, ICreateMutationDTO, OrganizationId, IOrganizationDTO, ICreateOrganizationDTO, Password, IRecoverPasswordDTO, IResetPasswordDTO, RoleTypes, Stream, IStreamItem, IStreamItemExhibit, IStreamItemFacet, IStreamItemIntegrant, IStreamItemMutation, IStreamItemSecondaryIntegrant, IStreamItemTransfer, IStreamItemTransit, TransferId, ITransferDTO, ITransferDetailDTO, ICreateTransferDTO, TransitId, ITransitDTO, ITransitDetailDTO, ICreateTransitDTO, UUID };
package/lib/index.js ADDED
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RoleTypes = void 0;
4
+ const auth_1 = require("./auth");
5
+ Object.defineProperty(exports, "RoleTypes", { enumerable: true, get: function () { return auth_1.RoleTypes; } });
@@ -0,0 +1,35 @@
1
+ import { RoleTypes } from './auth';
2
+ import { UUID } from './common';
3
+ import { IOrganizationDTO } from './organization';
4
+ export declare type IndividualId = UUID;
5
+ export declare type Password = string;
6
+ export interface IIndividualDTO {
7
+ readonly id: IndividualId;
8
+ readonly email_address: string;
9
+ readonly name_first: string;
10
+ readonly name_middle: string;
11
+ readonly name_last: string;
12
+ readonly phone: string;
13
+ readonly phone_mobile: string;
14
+ readonly active: boolean;
15
+ }
16
+ export interface IIndividualRoleDTO {
17
+ readonly title: string;
18
+ readonly role: RoleTypes;
19
+ readonly organization: IOrganizationDTO;
20
+ }
21
+ export interface IIndividualDetailDTO extends IIndividualDTO {
22
+ readonly roles: IIndividualRoleDTO[];
23
+ }
24
+ export interface IIndividualAuthenticatedDTO extends IIndividualDetailDTO {
25
+ readonly access_token: string;
26
+ }
27
+ export interface ICreateIndividualDTO {
28
+ readonly email_address: string;
29
+ readonly password: Password;
30
+ readonly name_first: string;
31
+ readonly name_middle: string;
32
+ readonly name_last: string;
33
+ readonly phone: string | null;
34
+ readonly phone_mobile: string;
35
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,95 @@
1
+ import { DocumentId } from './common';
2
+ import { IExhibitDTO } from './exhibit';
3
+ import { IFacetDTO, ICreateFacetDTO } from './facet';
4
+ import { IntegrantTypeId } from './integrantType';
5
+ import { ILocationDTO } from './location';
6
+ import { IMutationDTO, IMutationDetailDTO, ICreateMutationDTO } from './mutation';
7
+ import { OrganizationId } from './organization';
8
+ import { ITransferDTO, ITransferDetailDTO, ICreateTransferDTO } from './transfer';
9
+ import { ITransitDTO, ITransitDetailDTO, ICreateTransitDTO } from './transit';
10
+ export declare type IntegrantId = DocumentId;
11
+ export interface IIntegrantDTO {
12
+ readonly id: IntegrantId;
13
+ readonly integrant_type_id: IntegrantTypeId;
14
+ readonly organization_id: OrganizationId;
15
+ readonly tracking: string;
16
+ readonly primary: boolean;
17
+ readonly published: boolean;
18
+ readonly title: string;
19
+ readonly description: string;
20
+ readonly image_thumb_url: string;
21
+ readonly location: ILocationDTO | null;
22
+ readonly exhibits: IExhibitDTO[];
23
+ readonly facets: IFacetDTO[];
24
+ readonly inherited_facets: IFacetDTO[];
25
+ readonly mutations: IMutationDTO[];
26
+ readonly transfers: ITransferDTO[];
27
+ readonly transits: ITransitDTO[];
28
+ readonly created_on: string;
29
+ readonly updated_on: string;
30
+ }
31
+ export interface IIntegrantDetailDTO {
32
+ readonly id: IntegrantId;
33
+ readonly integrant_type_id: IntegrantTypeId;
34
+ readonly organization_id: OrganizationId;
35
+ readonly tracking: string;
36
+ readonly primary: boolean;
37
+ readonly published: boolean;
38
+ readonly title: string;
39
+ readonly description: string;
40
+ readonly image_thumb_url: string;
41
+ readonly location: ILocationDTO | null;
42
+ readonly exhibits: IExhibitDTO[];
43
+ readonly facets: IFacetDTO[];
44
+ readonly inherited_facets: IFacetDTO[];
45
+ readonly mutations: IMutationDetailDTO[];
46
+ readonly transfers: ITransferDetailDTO[];
47
+ readonly transits: ITransitDetailDTO[];
48
+ readonly created_on: string;
49
+ readonly updated_on: string;
50
+ }
51
+ export interface ICloneIntegrantDTO {
52
+ readonly tracking: string;
53
+ }
54
+ export interface ICreateIntegrantDTO {
55
+ readonly integrant_type_id: IntegrantTypeId;
56
+ readonly organization_id: OrganizationId;
57
+ readonly tracking: string;
58
+ readonly primary: boolean;
59
+ readonly published: boolean;
60
+ readonly location: ILocationDTO | null;
61
+ readonly exhibits?: IExhibitDTO[];
62
+ readonly facets: ICreateFacetDTO[];
63
+ readonly origination_mutation?: ICreateMutationDTO;
64
+ readonly origination_transfer?: ICreateTransferDTO;
65
+ readonly origination_transit?: ICreateTransitDTO;
66
+ }
67
+ export interface ICreateIntegrantResponseDTO {
68
+ readonly id: IntegrantId;
69
+ readonly integrant_type_id: IntegrantTypeId;
70
+ readonly organization_id: OrganizationId;
71
+ readonly tracking: string;
72
+ readonly primary: boolean;
73
+ readonly published: boolean;
74
+ readonly title: string;
75
+ readonly description: string;
76
+ readonly image_thumb_url: string;
77
+ readonly location: ILocationDTO | null;
78
+ readonly exhibits: IExhibitDTO[];
79
+ readonly facets: IFacetDTO[];
80
+ readonly inherited_facets: IFacetDTO[];
81
+ readonly mutations: IMutationDTO[];
82
+ readonly transfers: ITransferDTO[];
83
+ readonly transits: ITransitDTO[];
84
+ readonly origination_mutation: IMutationDTO | null;
85
+ readonly origination_transfer: ITransferDTO | null;
86
+ readonly origination_transit: ITransitDTO | null;
87
+ readonly created_on: string;
88
+ readonly updated_on: string;
89
+ }
90
+ export interface IUpdateIntegrantDTO {
91
+ readonly location?: ILocationDTO | null;
92
+ readonly primary?: boolean;
93
+ readonly published?: boolean;
94
+ readonly tracking?: string;
95
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,23 @@
1
+ import { IFacetDTO, ICreateFacetDTO } from './facet';
2
+ import { OrganizationId } from './organization';
3
+ import { DocumentId } from './common';
4
+ export declare type IntegrantTypeId = DocumentId;
5
+ export interface IIntegrantTypeDTO {
6
+ readonly id: IntegrantTypeId;
7
+ readonly organization_id: OrganizationId | null;
8
+ readonly external_id: string | null;
9
+ readonly title: string;
10
+ readonly description: string;
11
+ readonly image_thumb_url: string;
12
+ readonly facets: IFacetDTO[];
13
+ readonly created_on: string;
14
+ readonly updated_on: string;
15
+ }
16
+ export interface ICreateIntegrantTypeDTO {
17
+ readonly organization_id: OrganizationId | null;
18
+ readonly external_id: string | null;
19
+ readonly title: string;
20
+ readonly description: string;
21
+ readonly image_thumb_url: string | null;
22
+ readonly facets: ICreateFacetDTO[];
23
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,18 @@
1
+ export interface ILocationDTO {
2
+ readonly line_1: string;
3
+ readonly line_2: string | null;
4
+ readonly city: string;
5
+ readonly state: string;
6
+ readonly zip: string;
7
+ readonly country: string;
8
+ readonly coordinates: [string, string];
9
+ }
10
+ export interface ICreateLocationDTO {
11
+ readonly line_1: string;
12
+ readonly line_2: string | null;
13
+ readonly city: string;
14
+ readonly state: string;
15
+ readonly zip: string;
16
+ readonly country: string;
17
+ readonly coordinates: [string, string];
18
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/lib/log.d.ts ADDED
@@ -0,0 +1,11 @@
1
+ import { UUID } from './common';
2
+ export declare type LogId = UUID;
3
+ export interface ILogDTO {
4
+ readonly id: LogId;
5
+ readonly message: string;
6
+ readonly created_on: string;
7
+ readonly updated_on: string;
8
+ }
9
+ export interface ICreateLogDTO {
10
+ readonly message: string;
11
+ }
package/lib/log.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ import { IntegrantId, IIntegrantDetailDTO } from './integrant';
2
+ import { DocumentId } from './common';
3
+ export declare type MutationId = DocumentId;
4
+ export declare type MutationTypeId = DocumentId;
5
+ export interface IMutationDTO {
6
+ readonly id: MutationId;
7
+ readonly integrant_id: IntegrantId;
8
+ }
9
+ export interface IMutationDetailDTO extends IMutationDTO {
10
+ readonly integrant: IIntegrantDetailDTO;
11
+ }
12
+ export interface ICreateMutationDTO {
13
+ readonly integrant_id: IntegrantId;
14
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,19 @@
1
+ import { AccountId } from './account';
2
+ import { UUID } from './common';
3
+ export declare type OrganizationId = UUID;
4
+ export interface IOrganizationDTO {
5
+ readonly id: OrganizationId;
6
+ readonly account_id: AccountId;
7
+ readonly description: string;
8
+ readonly logo_url: string;
9
+ readonly name: string;
10
+ readonly short_code: string;
11
+ readonly tag_line: string;
12
+ }
13
+ export interface ICreateOrganizationDTO {
14
+ readonly description: string;
15
+ readonly logo_url: string;
16
+ readonly name: string;
17
+ readonly short_code: string;
18
+ readonly tag_line: string;
19
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,44 @@
1
+ import { ILocationDTO } from './location';
2
+ import { OrganizationId } from './organization';
3
+ export interface IStreamItem {
4
+ readonly id: string;
5
+ readonly ref: string | null;
6
+ }
7
+ export interface IStreamItemExhibit extends IStreamItem {
8
+ readonly title: string;
9
+ readonly description: string;
10
+ readonly rank: number;
11
+ readonly url: string;
12
+ readonly location: ILocationDTO | null;
13
+ }
14
+ export interface IStreamItemFacet extends IStreamItem {
15
+ readonly title: string;
16
+ readonly description: string;
17
+ readonly rank: number;
18
+ }
19
+ export interface IStreamItemIntegrant extends IStreamItem {
20
+ readonly organization_id: OrganizationId;
21
+ readonly tracking: string;
22
+ readonly title: string;
23
+ readonly description: string;
24
+ readonly image_thumb_url: string;
25
+ readonly location: ILocationDTO | null;
26
+ readonly created_on: string;
27
+ readonly updated_on: string;
28
+ }
29
+ export interface IStreamItemSecondaryIntegrant extends IStreamItem {
30
+ readonly title: string;
31
+ }
32
+ export interface IStreamItemMutation extends IStreamItem {
33
+ readonly integrant_id: string;
34
+ }
35
+ export interface IStreamItemTransfer extends IStreamItem {
36
+ readonly title: string;
37
+ readonly description: string;
38
+ }
39
+ export interface IStreamItemTransit extends IStreamItem {
40
+ readonly integrant_id: string;
41
+ readonly title: string;
42
+ readonly description: string;
43
+ }
44
+ export declare type Stream = (IStreamItemExhibit | IStreamItemFacet | IStreamItemIntegrant | IStreamItemSecondaryIntegrant | IStreamItemMutation | IStreamItemTransfer | IStreamItemTransit)[];
package/lib/stream.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ import { DocumentId } from './common';
2
+ import { IntegrantId, IIntegrantDetailDTO } from './integrant';
3
+ export declare type TransferId = DocumentId;
4
+ export interface ITransferDTO {
5
+ readonly id: TransferId;
6
+ readonly integrant_id: IntegrantId;
7
+ readonly title: string;
8
+ readonly description: string;
9
+ }
10
+ export interface ITransferDetailDTO extends ITransferDTO {
11
+ readonly integrant: IIntegrantDetailDTO;
12
+ }
13
+ export interface ICreateTransferDTO {
14
+ readonly integrant_id: IntegrantId;
15
+ readonly title: string;
16
+ readonly description: string;
17
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,19 @@
1
+ import { DocumentId } from './common';
2
+ import { IExhibitDTO } from './exhibit';
3
+ import { IntegrantId, IIntegrantDetailDTO } from './integrant';
4
+ export declare type TransitId = DocumentId;
5
+ export interface ITransitDTO {
6
+ readonly id: TransitId;
7
+ readonly integrant_id: IntegrantId;
8
+ readonly title: string;
9
+ readonly description: string;
10
+ readonly exhibits: IExhibitDTO[];
11
+ }
12
+ export interface ITransitDetailDTO extends ITransitDTO {
13
+ readonly integrant: IIntegrantDetailDTO;
14
+ }
15
+ export interface ICreateTransitDTO {
16
+ readonly integrant_id: IntegrantId;
17
+ readonly title: string;
18
+ readonly description: string;
19
+ }
package/lib/transit.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json ADDED
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "@healthloq/healthloq-types",
3
+ "version": "0.0.15",
4
+ "description": "Models, Interfaces, and Schemas for the Healthloq ecosystem.",
5
+ "repository": {
6
+ "type": "bitbucket",
7
+ "url": "https://bitbucket.org/genbloq/healthloq-types"
8
+ },
9
+ "author": "GenBloq",
10
+ "contributors": [
11
+ {
12
+ "name": "Andrew Robert Cernek",
13
+ "email": "andrew.cernek@gnebloq.com"
14
+ },
15
+ {
16
+ "name": "Zach Larsen",
17
+ "email": "zach.larsen@genbloq.com"
18
+ }
19
+ ],
20
+ "license": "UNLICENSED",
21
+ "main": "lib/index.js",
22
+ "types": "lib/index.d.ts",
23
+ "scripts": {
24
+ "build": "tsc",
25
+ "clean": "rimraf lib && rimraf node_modules && rm package-lock.json",
26
+ "fresh": "rm -rf node_modules && rm -rf lib && rm package-lock.json && npm install && tsc",
27
+ "generate:docs": "rimraf docs && typedoc lib --out docs --target ES6 --excludePrivate && touch docs/.nojekyll && touch docs/modules/.nojekyll",
28
+ "lint": "tslint --fix -c tslint.json './src/**/*.ts'",
29
+ "prepare": "npm run build"
30
+ },
31
+ "dependencies": {},
32
+ "devDependencies": {
33
+ "rimraf": "^3.0.2",
34
+ "tslint": "^6.1.2",
35
+ "typescript": "^3.9.7"
36
+ }
37
+ }