@uptime.app/contracts 1.0.38-rc.9 → 1.0.39
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/dist/cjs/text-to-speech/supported-voices.d.ts.map +1 -1
- package/dist/cjs/text-to-speech/supported-voices.js +22 -2
- package/dist/cjs/text-to-speech/supported-voices.js.map +1 -1
- package/dist/cjs/translation/translation-events.d.ts +1 -0
- package/dist/cjs/translation/translation-events.d.ts.map +1 -1
- package/dist/esm/text-to-speech/supported-voices.d.ts.map +1 -1
- package/dist/esm/text-to-speech/supported-voices.js +22 -2
- package/dist/esm/text-to-speech/supported-voices.js.map +1 -1
- package/dist/esm/translation/translation-events.d.ts +1 -0
- package/dist/esm/translation/translation-events.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/access-control/collection-access-control.ts +28 -28
- package/src/access-control/hack-access-control.ts +29 -29
- package/src/app-hack/app-full-hack.ts +9 -9
- package/src/app-hack/app-hack-metadata.ts +58 -58
- package/src/app-hack/app-restricted-hack.ts +22 -22
- package/src/b2b-content-access/b2b-content-access.ts +57 -57
- package/src/b2b-organisation/b2b-carousel.ts +34 -34
- package/src/b2b-organisation/b2b-organisation-events.ts +21 -21
- package/src/b2b-organisation/b2b-organisation-invitation.ts +31 -31
- package/src/b2b-organisation/b2b-organisation-member-events.ts +21 -21
- package/src/b2b-organisation/b2b-organisation-member.ts +8 -8
- package/src/b2b-organisation/b2b-organisation.ts +15 -15
- package/src/brand/brand-events.ts +21 -21
- package/src/brand/brand.ts +19 -19
- package/src/catalogue/catalogue.ts +118 -118
- package/src/collection/collection-events.ts +21 -21
- package/src/collection/collection.ts +58 -58
- package/src/collection/enriched-collection-events.ts +18 -18
- package/src/collection/enriched-collection.ts +64 -64
- package/src/creator/creator-events.ts +32 -32
- package/src/creator/creator.ts +7 -7
- package/src/distribution/collection-distribution.ts +17 -17
- package/src/distribution/distribution-events.ts +61 -61
- package/src/distribution/hack-distribution.ts +18 -18
- package/src/draft-hack/draft-hack-events.ts +21 -21
- package/src/draft-hack/draft-hack.ts +189 -189
- package/src/draft-hack-generation/draft-hack-generation-events.ts +42 -42
- package/src/draft-hack-generation/draft-hack-generation.ts +39 -39
- package/src/enriched-hack/enriched-hack-events.ts +21 -21
- package/src/enriched-hack/enriched-hack.ts +103 -103
- package/src/entitlement/user-entitlements-commands.ts +33 -33
- package/src/entitlement/user-entitlements-events.ts +29 -29
- package/src/entitlement/user-entitlements.ts +18 -18
- package/src/hack/extracted-subject.ts +31 -31
- package/src/hack/hack-events.ts +21 -21
- package/src/hack/hack-published.ts +21 -21
- package/src/hack/hack-with-voice-events.ts +20 -20
- package/src/hack/hack-with-voice.ts +33 -33
- package/src/hack/hack.ts +116 -116
- package/src/hack/publish-hack-command.ts +18 -18
- package/src/hack-metadata/hack-metadata-events.ts +21 -21
- package/src/hack-metadata/hack-metadata.ts +17 -17
- package/src/hack-of-the-day/hack-of-the-day-events.ts +21 -21
- package/src/hack-of-the-day/hack-of-the-day.ts +13 -13
- package/src/index.ts +120 -120
- package/src/knowledge-source/knowledge-source-events.ts +21 -21
- package/src/knowledge-source/knowledge-source.ts +43 -43
- package/src/localisation/live-locales.ts +37 -37
- package/src/localisation/locale-language.ts +4 -4
- package/src/localisation/supported-languages.ts +11 -11
- package/src/localisation/supported-locales.ts +61 -61
- package/src/moderation/hack-moderation-result-events.ts +18 -18
- package/src/moderation/hack-moderation-result.ts +27 -27
- package/src/partner/partner-events.ts +21 -21
- package/src/partner/partner.ts +7 -7
- package/src/pending-hack/pending-hack-events.ts +20 -20
- package/src/pending-hack/pending-hack-with-voice-events.ts +20 -20
- package/src/pending-hack/pending-hack-with-voice.ts +25 -25
- package/src/pending-hack/pending-hack.ts +77 -77
- package/src/profile/profile-events.ts +41 -41
- package/src/profile/profile.ts +27 -27
- package/src/profile/translated-profile.ts +13 -13
- package/src/referral/referral-events.ts +41 -41
- package/src/referral/referral.ts +76 -76
- package/src/saved/saved-collection-events.ts +19 -19
- package/src/saved/saved-collection.ts +8 -8
- package/src/segment/segment-commands.ts +70 -70
- package/src/segment/segment-events.ts +42 -42
- package/src/segment/segment-with-voice.ts +8 -8
- package/src/segment/segment.ts +82 -82
- package/src/skin/skin-events.ts +21 -21
- package/src/skin/skin.ts +6 -6
- package/src/text-to-speech/create-speech-commands.ts +20 -20
- package/src/text-to-speech/speech-created-events.ts +10 -10
- package/src/text-to-speech/supported-voices.ts +151 -127
- package/src/text-to-speech/text-segment.ts +29 -29
- package/src/theme/theme-events.ts +21 -21
- package/src/theme/theme.ts +68 -68
- package/src/translation/translation-events.ts +73 -72
- package/src/translation/translation.ts +25 -25
- package/src/trending/trending-events.ts +21 -21
- package/src/trending/trending-hacks.ts +8 -8
- package/src/user/user-events.ts +27 -27
- package/src/user-context/user-context-events.ts +21 -21
- package/src/user-context/user-context.ts +16 -16
- package/src/user-notification-context/user-notification-context-events.ts +21 -21
- package/src/user-notification-context/user-notification-context.ts +9 -9
- package/tsconfig.cjs.json +7 -7
- package/tsconfig.npm.json +21 -21
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
export interface B2BContentAccess {
|
|
2
|
-
id: string;
|
|
3
|
-
v: number;
|
|
4
|
-
createdAt: string;
|
|
5
|
-
updatedAt: string;
|
|
6
|
-
name: string;
|
|
7
|
-
blacklistedSubjects: string[]; //array of subjects that should
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface B2BContentAccessCreatedEvent {
|
|
11
|
-
id: string;
|
|
12
|
-
type: 'B2BContentAccessCreated';
|
|
13
|
-
payload: B2BContentAccess;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export interface B2BContentAccessUpdatedEvent {
|
|
17
|
-
id: string;
|
|
18
|
-
type: 'B2BContentAccessUpdated';
|
|
19
|
-
payload: B2BContentAccess;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export interface B2BContentAccessDeletedEvent {
|
|
23
|
-
id: string;
|
|
24
|
-
type: 'B2BContentAccessDeleted';
|
|
25
|
-
payload: B2BContentAccess;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export declare type B2BContentAccessChangedEvent = B2BContentAccessCreatedEvent | B2BContentAccessUpdatedEvent | B2BContentAccessDeletedEvent;
|
|
29
|
-
|
|
30
|
-
export interface ContentAccessB2BOrgEntry {
|
|
31
|
-
id: string;
|
|
32
|
-
v: number;
|
|
33
|
-
createdAt: string;
|
|
34
|
-
updatedAt: string;
|
|
35
|
-
b2bContentAccessId: string;
|
|
36
|
-
b2bOrgId: string;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export interface ContentAccessB2BOrgEntryCreatedEvent {
|
|
40
|
-
id: string;
|
|
41
|
-
type: 'ContentAccessB2BOrgEntryCreated';
|
|
42
|
-
payload: ContentAccessB2BOrgEntry;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export interface ContentAccessB2BOrgEntryUpdatedEvent {
|
|
46
|
-
id: string;
|
|
47
|
-
type: 'ContentAccessB2BOrgEntryUpdated';
|
|
48
|
-
payload: ContentAccessB2BOrgEntry;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export interface ContentAccessB2BOrgEntryDeletedEvent {
|
|
52
|
-
id: string;
|
|
53
|
-
type: 'ContentAccessB2BOrgEntryDeleted';
|
|
54
|
-
payload: ContentAccessB2BOrgEntry;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export type ContentAccessB2BOrgEntryChangedEvent = ContentAccessB2BOrgEntryCreatedEvent | ContentAccessB2BOrgEntryUpdatedEvent | ContentAccessB2BOrgEntryDeletedEvent;
|
|
1
|
+
export interface B2BContentAccess {
|
|
2
|
+
id: string;
|
|
3
|
+
v: number;
|
|
4
|
+
createdAt: string;
|
|
5
|
+
updatedAt: string;
|
|
6
|
+
name: string;
|
|
7
|
+
blacklistedSubjects: string[]; //array of subjects that should
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface B2BContentAccessCreatedEvent {
|
|
11
|
+
id: string;
|
|
12
|
+
type: 'B2BContentAccessCreated';
|
|
13
|
+
payload: B2BContentAccess;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface B2BContentAccessUpdatedEvent {
|
|
17
|
+
id: string;
|
|
18
|
+
type: 'B2BContentAccessUpdated';
|
|
19
|
+
payload: B2BContentAccess;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface B2BContentAccessDeletedEvent {
|
|
23
|
+
id: string;
|
|
24
|
+
type: 'B2BContentAccessDeleted';
|
|
25
|
+
payload: B2BContentAccess;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export declare type B2BContentAccessChangedEvent = B2BContentAccessCreatedEvent | B2BContentAccessUpdatedEvent | B2BContentAccessDeletedEvent;
|
|
29
|
+
|
|
30
|
+
export interface ContentAccessB2BOrgEntry {
|
|
31
|
+
id: string;
|
|
32
|
+
v: number;
|
|
33
|
+
createdAt: string;
|
|
34
|
+
updatedAt: string;
|
|
35
|
+
b2bContentAccessId: string;
|
|
36
|
+
b2bOrgId: string;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface ContentAccessB2BOrgEntryCreatedEvent {
|
|
40
|
+
id: string;
|
|
41
|
+
type: 'ContentAccessB2BOrgEntryCreated';
|
|
42
|
+
payload: ContentAccessB2BOrgEntry;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export interface ContentAccessB2BOrgEntryUpdatedEvent {
|
|
46
|
+
id: string;
|
|
47
|
+
type: 'ContentAccessB2BOrgEntryUpdated';
|
|
48
|
+
payload: ContentAccessB2BOrgEntry;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface ContentAccessB2BOrgEntryDeletedEvent {
|
|
52
|
+
id: string;
|
|
53
|
+
type: 'ContentAccessB2BOrgEntryDeleted';
|
|
54
|
+
payload: ContentAccessB2BOrgEntry;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export type ContentAccessB2BOrgEntryChangedEvent = ContentAccessB2BOrgEntryCreatedEvent | ContentAccessB2BOrgEntryUpdatedEvent | ContentAccessB2BOrgEntryDeletedEvent;
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
export interface B2BCarousel {
|
|
2
|
-
id: string;
|
|
3
|
-
v: number;
|
|
4
|
-
createdAt: string;
|
|
5
|
-
updatedAt: string;
|
|
6
|
-
owner: string;
|
|
7
|
-
items: B2BCarouselItem[];
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface B2BCarouselItem {
|
|
11
|
-
/** type of the item in the carousel. Currently only collection is supported */
|
|
12
|
-
type: 'collection';
|
|
13
|
-
id: string;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export interface B2BCarouselCreatedEvent {
|
|
17
|
-
id: string;
|
|
18
|
-
type: 'B2BCarouselCreated',
|
|
19
|
-
payload: B2BCarousel;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export interface B2BCarouselUpdatedEvent {
|
|
23
|
-
id: string;
|
|
24
|
-
type: 'B2BCarouselUpdated',
|
|
25
|
-
payload: B2BCarousel;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export interface B2BCarouselDeletedEvent {
|
|
29
|
-
id: string;
|
|
30
|
-
type: 'B2BCarouselDeleted',
|
|
31
|
-
payload: B2BCarousel;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export type B2BCarouselChangedEvent = B2BCarouselCreatedEvent | B2BCarouselUpdatedEvent | B2BCarouselDeletedEvent;
|
|
1
|
+
export interface B2BCarousel {
|
|
2
|
+
id: string;
|
|
3
|
+
v: number;
|
|
4
|
+
createdAt: string;
|
|
5
|
+
updatedAt: string;
|
|
6
|
+
owner: string;
|
|
7
|
+
items: B2BCarouselItem[];
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface B2BCarouselItem {
|
|
11
|
+
/** type of the item in the carousel. Currently only collection is supported */
|
|
12
|
+
type: 'collection';
|
|
13
|
+
id: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface B2BCarouselCreatedEvent {
|
|
17
|
+
id: string;
|
|
18
|
+
type: 'B2BCarouselCreated',
|
|
19
|
+
payload: B2BCarousel;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface B2BCarouselUpdatedEvent {
|
|
23
|
+
id: string;
|
|
24
|
+
type: 'B2BCarouselUpdated',
|
|
25
|
+
payload: B2BCarousel;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface B2BCarouselDeletedEvent {
|
|
29
|
+
id: string;
|
|
30
|
+
type: 'B2BCarouselDeleted',
|
|
31
|
+
payload: B2BCarousel;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export type B2BCarouselChangedEvent = B2BCarouselCreatedEvent | B2BCarouselUpdatedEvent | B2BCarouselDeletedEvent;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { B2BOrganisation } from './b2b-organisation';
|
|
2
|
-
|
|
3
|
-
export interface B2BOrganisationCreatedEvent {
|
|
4
|
-
id: string;
|
|
5
|
-
type: 'B2BOrganisationCreated';
|
|
6
|
-
payload: B2BOrganisation;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export interface B2BOrganisationUpdatedEvent {
|
|
10
|
-
id: string;
|
|
11
|
-
type: 'B2BOrganisationUpdated';
|
|
12
|
-
payload: B2BOrganisation;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export interface B2BOrganisationDeletedEvent {
|
|
16
|
-
id: string;
|
|
17
|
-
type: 'B2BOrganisationDeleted';
|
|
18
|
-
payload: B2BOrganisation;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export type B2BOrganisationChangedEvent = B2BOrganisationCreatedEvent | B2BOrganisationUpdatedEvent | B2BOrganisationDeletedEvent;
|
|
1
|
+
import { B2BOrganisation } from './b2b-organisation';
|
|
2
|
+
|
|
3
|
+
export interface B2BOrganisationCreatedEvent {
|
|
4
|
+
id: string;
|
|
5
|
+
type: 'B2BOrganisationCreated';
|
|
6
|
+
payload: B2BOrganisation;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface B2BOrganisationUpdatedEvent {
|
|
10
|
+
id: string;
|
|
11
|
+
type: 'B2BOrganisationUpdated';
|
|
12
|
+
payload: B2BOrganisation;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface B2BOrganisationDeletedEvent {
|
|
16
|
+
id: string;
|
|
17
|
+
type: 'B2BOrganisationDeleted';
|
|
18
|
+
payload: B2BOrganisation;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export type B2BOrganisationChangedEvent = B2BOrganisationCreatedEvent | B2BOrganisationUpdatedEvent | B2BOrganisationDeletedEvent;
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
export interface B2BInvitation {
|
|
2
|
-
id: string;
|
|
3
|
-
v: number;
|
|
4
|
-
updatedAt: string;
|
|
5
|
-
createdAt: string;
|
|
6
|
-
name: string;
|
|
7
|
-
lastName: string;
|
|
8
|
-
email: string;
|
|
9
|
-
code: string;
|
|
10
|
-
organisationId: string;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export interface B2BInvitationEventPayload {
|
|
14
|
-
id: string;
|
|
15
|
-
v: number;
|
|
16
|
-
createdAt: string;
|
|
17
|
-
updatedAt: string;
|
|
18
|
-
organisationId: string;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export interface B2BOrganisationInvitationCreatedEvent {
|
|
22
|
-
id: string;
|
|
23
|
-
type: 'B2BOrganisationInvitationCreated',
|
|
24
|
-
payload: B2BInvitationEventPayload;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export interface B2BOrganisationInvitationDeletedEvent {
|
|
28
|
-
id: string;
|
|
29
|
-
type: 'B2BOrganisationInvitationDeleted',
|
|
30
|
-
payload: B2BInvitationEventPayload;
|
|
31
|
-
}
|
|
1
|
+
export interface B2BInvitation {
|
|
2
|
+
id: string;
|
|
3
|
+
v: number;
|
|
4
|
+
updatedAt: string;
|
|
5
|
+
createdAt: string;
|
|
6
|
+
name: string;
|
|
7
|
+
lastName: string;
|
|
8
|
+
email: string;
|
|
9
|
+
code: string;
|
|
10
|
+
organisationId: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface B2BInvitationEventPayload {
|
|
14
|
+
id: string;
|
|
15
|
+
v: number;
|
|
16
|
+
createdAt: string;
|
|
17
|
+
updatedAt: string;
|
|
18
|
+
organisationId: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface B2BOrganisationInvitationCreatedEvent {
|
|
22
|
+
id: string;
|
|
23
|
+
type: 'B2BOrganisationInvitationCreated',
|
|
24
|
+
payload: B2BInvitationEventPayload;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface B2BOrganisationInvitationDeletedEvent {
|
|
28
|
+
id: string;
|
|
29
|
+
type: 'B2BOrganisationInvitationDeleted',
|
|
30
|
+
payload: B2BInvitationEventPayload;
|
|
31
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { B2BOrganisationMember } from './b2b-organisation-member';
|
|
2
|
-
|
|
3
|
-
export interface B2BOrganisationMemberCreatedEvent {
|
|
4
|
-
id: string;
|
|
5
|
-
type: 'B2BOrganisationMemberCreated';
|
|
6
|
-
payload: B2BOrganisationMember;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export interface B2BOrganisationMemberUpdatedEvent {
|
|
10
|
-
id: string;
|
|
11
|
-
type: 'B2BOrganisationMemberUpdated';
|
|
12
|
-
payload: B2BOrganisationMember;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export interface B2BOrganisationMemberDeletedEvent {
|
|
16
|
-
id: string;
|
|
17
|
-
type: 'B2BOrganisationMemberDeleted';
|
|
18
|
-
payload: B2BOrganisationMember;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export type B2BOrganisationMemberChangedEvent = B2BOrganisationMemberCreatedEvent | B2BOrganisationMemberUpdatedEvent | B2BOrganisationMemberDeletedEvent;
|
|
1
|
+
import { B2BOrganisationMember } from './b2b-organisation-member';
|
|
2
|
+
|
|
3
|
+
export interface B2BOrganisationMemberCreatedEvent {
|
|
4
|
+
id: string;
|
|
5
|
+
type: 'B2BOrganisationMemberCreated';
|
|
6
|
+
payload: B2BOrganisationMember;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface B2BOrganisationMemberUpdatedEvent {
|
|
10
|
+
id: string;
|
|
11
|
+
type: 'B2BOrganisationMemberUpdated';
|
|
12
|
+
payload: B2BOrganisationMember;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface B2BOrganisationMemberDeletedEvent {
|
|
16
|
+
id: string;
|
|
17
|
+
type: 'B2BOrganisationMemberDeleted';
|
|
18
|
+
payload: B2BOrganisationMember;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export type B2BOrganisationMemberChangedEvent = B2BOrganisationMemberCreatedEvent | B2BOrganisationMemberUpdatedEvent | B2BOrganisationMemberDeletedEvent;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export interface B2BOrganisationMember {
|
|
2
|
-
id: string;
|
|
3
|
-
v: number;
|
|
4
|
-
createdAt: string;
|
|
5
|
-
updatedAt: string;
|
|
6
|
-
userId: string;
|
|
7
|
-
organisationId: string;
|
|
8
|
-
invitationId?: string;
|
|
1
|
+
export interface B2BOrganisationMember {
|
|
2
|
+
id: string;
|
|
3
|
+
v: number;
|
|
4
|
+
createdAt: string;
|
|
5
|
+
updatedAt: string;
|
|
6
|
+
userId: string;
|
|
7
|
+
organisationId: string;
|
|
8
|
+
invitationId?: string;
|
|
9
9
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export interface B2BOrganisation {
|
|
2
|
-
id: string;
|
|
3
|
-
v: number;
|
|
4
|
-
createdAt: string;
|
|
5
|
-
updatedAt: string;
|
|
6
|
-
name: string; //unique
|
|
7
|
-
owner: string; //unique
|
|
8
|
-
code?: string;
|
|
9
|
-
provider: string; // for now this will reference what to display in the home screen of the app for users that joined the organisation
|
|
10
|
-
displayName: string; // for organisations that might be different but have the same name to be displayed. Ex: HP Ireland & HP US ==> we want the displayName to be HP
|
|
11
|
-
codeUsageLimit?: number; // the max amount of times the code to join an organisation can be use
|
|
12
|
-
urlPrefix?: string; // the prefix to use for the url of the organisation
|
|
13
|
-
brandId?: string;
|
|
14
|
-
providesPremium?: boolean; // if the organisation provides premium we should issue the entitlements
|
|
15
|
-
}
|
|
1
|
+
export interface B2BOrganisation {
|
|
2
|
+
id: string;
|
|
3
|
+
v: number;
|
|
4
|
+
createdAt: string;
|
|
5
|
+
updatedAt: string;
|
|
6
|
+
name: string; //unique
|
|
7
|
+
owner: string; //unique
|
|
8
|
+
code?: string;
|
|
9
|
+
provider: string; // for now this will reference what to display in the home screen of the app for users that joined the organisation
|
|
10
|
+
displayName: string; // for organisations that might be different but have the same name to be displayed. Ex: HP Ireland & HP US ==> we want the displayName to be HP
|
|
11
|
+
codeUsageLimit?: number; // the max amount of times the code to join an organisation can be use
|
|
12
|
+
urlPrefix?: string; // the prefix to use for the url of the organisation
|
|
13
|
+
brandId?: string;
|
|
14
|
+
providesPremium?: boolean; // if the organisation provides premium we should issue the entitlements
|
|
15
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { Brand } from './brand';
|
|
2
|
-
|
|
3
|
-
export interface BrandCreatedEvent {
|
|
4
|
-
id: string;
|
|
5
|
-
type: 'BrandCreated';
|
|
6
|
-
payload: Brand;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export interface BrandUpdatedEvent {
|
|
10
|
-
id: string;
|
|
11
|
-
type: 'BrandUpdated';
|
|
12
|
-
payload: Brand;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export interface BrandDeletedEvent {
|
|
16
|
-
id: string;
|
|
17
|
-
type: 'BrandDeleted';
|
|
18
|
-
payload: Brand;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export type BrandChangedEvent = BrandCreatedEvent | BrandUpdatedEvent | BrandDeletedEvent;
|
|
1
|
+
import { Brand } from './brand';
|
|
2
|
+
|
|
3
|
+
export interface BrandCreatedEvent {
|
|
4
|
+
id: string;
|
|
5
|
+
type: 'BrandCreated';
|
|
6
|
+
payload: Brand;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface BrandUpdatedEvent {
|
|
10
|
+
id: string;
|
|
11
|
+
type: 'BrandUpdated';
|
|
12
|
+
payload: Brand;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface BrandDeletedEvent {
|
|
16
|
+
id: string;
|
|
17
|
+
type: 'BrandDeleted';
|
|
18
|
+
payload: Brand;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export type BrandChangedEvent = BrandCreatedEvent | BrandUpdatedEvent | BrandDeletedEvent;
|
package/src/brand/brand.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { SupportedLocale } from '../localisation/supported-locales';
|
|
2
|
-
|
|
3
|
-
export interface Brand {
|
|
4
|
-
id: string;
|
|
5
|
-
v: number;
|
|
6
|
-
createdAt: string;
|
|
7
|
-
updatedAt: string;
|
|
8
|
-
name: string;
|
|
9
|
-
skinId?: string;
|
|
10
|
-
webAppDomain?: string;
|
|
11
|
-
appName?: {
|
|
12
|
-
[K in SupportedLocale]?: string
|
|
13
|
-
};
|
|
14
|
-
welcomeHacks?: WelcomeHack[];
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
// In case we need to add more properties to the BrandHack interface, we can do so here.
|
|
18
|
-
export interface WelcomeHack {
|
|
19
|
-
hackId: string;
|
|
1
|
+
import { SupportedLocale } from '../localisation/supported-locales';
|
|
2
|
+
|
|
3
|
+
export interface Brand {
|
|
4
|
+
id: string;
|
|
5
|
+
v: number;
|
|
6
|
+
createdAt: string;
|
|
7
|
+
updatedAt: string;
|
|
8
|
+
name: string;
|
|
9
|
+
skinId?: string;
|
|
10
|
+
webAppDomain?: string;
|
|
11
|
+
appName?: {
|
|
12
|
+
[K in SupportedLocale]?: string
|
|
13
|
+
};
|
|
14
|
+
welcomeHacks?: WelcomeHack[];
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// In case we need to add more properties to the BrandHack interface, we can do so here.
|
|
18
|
+
export interface WelcomeHack {
|
|
19
|
+
hackId: string;
|
|
20
20
|
}
|