@uptime.app/contracts 1.0.38-rc.6 → 1.0.38-rc.7
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/b2b-organisation/b2b-organisation.d.ts +4 -0
- package/dist/cjs/b2b-organisation/b2b-organisation.d.ts.map +1 -1
- package/dist/esm/b2b-organisation/b2b-organisation.d.ts +1 -0
- package/dist/esm/b2b-organisation/b2b-organisation.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/b2b-organisation/b2b-carousel.ts +34 -0
- package/src/b2b-organisation/b2b-organisation-invitation.ts +19 -0
- package/src/b2b-organisation/b2b-organisation.ts +1 -0
|
@@ -11,5 +11,9 @@ export interface B2BOrganisation {
|
|
|
11
11
|
codeUsageLimit?: number;
|
|
12
12
|
urlPrefix?: string;
|
|
13
13
|
brandId?: string;
|
|
14
|
+
providesPremium?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface B2BStoredOrganisation extends B2BOrganisation {
|
|
17
|
+
_sanitisedCode?: string;
|
|
14
18
|
}
|
|
15
19
|
//# sourceMappingURL=b2b-organisation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"b2b-organisation.d.ts","sourceRoot":"","sources":["../../../src/b2b-organisation/b2b-organisation.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"b2b-organisation.d.ts","sourceRoot":"","sources":["../../../src/b2b-organisation/b2b-organisation.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,MAAM,WAAW,qBAAsB,SAAQ,eAAe;IAC1D,cAAc,CAAC,EAAE,MAAM,CAAC;CAC3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"b2b-organisation.d.ts","sourceRoot":"","sources":["../../../src/b2b-organisation/b2b-organisation.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"b2b-organisation.d.ts","sourceRoot":"","sources":["../../../src/b2b-organisation/b2b-organisation.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC7B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uptime.app/contracts",
|
|
3
|
-
"version": "1.0.38-rc.
|
|
3
|
+
"version": "1.0.38-rc.7",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"types": "./dist/esm/index.d.ts",
|
|
6
6
|
"main": "./dist/cjs/index.js",
|
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
"devDependencies": {
|
|
14
14
|
"typescript": "^5.4.3"
|
|
15
15
|
},
|
|
16
|
-
"gitHead": "
|
|
16
|
+
"gitHead": "7ba85011841dc6a8659d8ce2e6928d1d24181752"
|
|
17
17
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface Carousel {
|
|
2
|
+
id: string;
|
|
3
|
+
v: number;
|
|
4
|
+
createdAt: string;
|
|
5
|
+
updatedAt: string;
|
|
6
|
+
owner: string;
|
|
7
|
+
items: CarouselItem[];
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface CarouselItem {
|
|
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: Carousel;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface B2BCarouselUpdatedEvent {
|
|
23
|
+
id: string;
|
|
24
|
+
type: 'B2BCarouselUpdated',
|
|
25
|
+
payload: Carousel;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface B2BCarouselDeletedEvent {
|
|
29
|
+
id: string;
|
|
30
|
+
type: 'B2BCarouselDeleted',
|
|
31
|
+
payload: Carousel;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export type B2BCarouselChangedEvent = B2BCarouselCreatedEvent | B2BCarouselUpdatedEvent | B2BCarouselDeletedEvent;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface InvitationEventPayload {
|
|
2
|
+
id: string;
|
|
3
|
+
v: number;
|
|
4
|
+
createdAt: string;
|
|
5
|
+
updatedAt: string;
|
|
6
|
+
organisationId: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface B2BOrganisationInvitationCreatedEvent {
|
|
10
|
+
id: string;
|
|
11
|
+
type: 'B2BOrganisationInvitationCreated',
|
|
12
|
+
payload: InvitationEventPayload;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface B2BOrganisationInvitationDeletedEvent {
|
|
16
|
+
id: string;
|
|
17
|
+
type: 'B2BOrganisationInvitationDeleted',
|
|
18
|
+
payload: InvitationEventPayload;
|
|
19
|
+
}
|
|
@@ -11,4 +11,5 @@ export interface B2BOrganisation {
|
|
|
11
11
|
codeUsageLimit?: number; // the max amount of times the code to join an organisation can be use
|
|
12
12
|
urlPrefix?: string; // the prefix to use for the url of the organisation
|
|
13
13
|
brandId?: string;
|
|
14
|
+
providesPremium?: boolean; // if the organisation provides premium we should issue the entitlements
|
|
14
15
|
}
|