@uptime.app/contracts 1.0.55-upm6419.1 → 1.0.56
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 +7 -0
- package/dist/cjs/b2b-organisation/b2b-organisation.d.ts.map +1 -1
- package/dist/cjs/entitlement/user-entitlements-commands.d.ts +0 -20
- package/dist/cjs/entitlement/user-entitlements-commands.d.ts.map +1 -1
- package/dist/esm/b2b-organisation/b2b-organisation.d.ts +7 -0
- package/dist/esm/b2b-organisation/b2b-organisation.d.ts.map +1 -1
- package/dist/esm/entitlement/user-entitlements-commands.d.ts +0 -20
- package/dist/esm/entitlement/user-entitlements-commands.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/b2b-organisation/b2b-organisation.ts +12 -5
- package/src/entitlement/user-entitlements-commands.ts +0 -21
|
@@ -6,15 +6,22 @@ export interface B2BOrganisation {
|
|
|
6
6
|
name: string;
|
|
7
7
|
owner: string;
|
|
8
8
|
code?: string;
|
|
9
|
+
/** for now this will reference what to display in the home screen of the app for users that joined the organisation */
|
|
9
10
|
provider: string;
|
|
11
|
+
/** 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 */
|
|
10
12
|
displayName: string;
|
|
13
|
+
/** the max amount of times the code to join an organisation can be used */
|
|
11
14
|
codeUsageLimit?: number;
|
|
15
|
+
/** the prefix to use for the url of the organisation */
|
|
12
16
|
urlPrefix?: string;
|
|
13
17
|
brandId?: string;
|
|
18
|
+
/** if the organisation provides members with the premium entitlement */
|
|
14
19
|
providesPremium?: boolean;
|
|
15
20
|
/** Introduced to allow simple creation of demo orgs for sales team. Is used in production but only for demo purposes */
|
|
16
21
|
isDemo?: boolean;
|
|
17
22
|
/** Is used in production but only for demo purposes */
|
|
18
23
|
demoLogoUrl?: string;
|
|
24
|
+
/** Any extra entitlements that are issued to members of this organisation. Not to be used provide premium - use providesPremium flag */
|
|
25
|
+
issuedEntitlements?: string[];
|
|
19
26
|
}
|
|
20
27
|
//# 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;IACjB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,wHAAwH;IACxH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,uDAAuD;IACvD,WAAW,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,uHAAuH;IACvH,QAAQ,EAAE,MAAM,CAAC;IACjB,oJAAoJ;IACpJ,WAAW,EAAE,MAAM,CAAC;IACpB,2EAA2E;IAC3E,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,wDAAwD;IACxD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,wEAAwE;IACxE,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,wHAAwH;IACxH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,uDAAuD;IACvD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wIAAwI;IACxI,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;CACjC"}
|
|
@@ -26,24 +26,4 @@ export interface RefreshRevenueCatUserStatusCommand {
|
|
|
26
26
|
userId: string;
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
|
-
/**
|
|
30
|
-
* Ensure the user has the provided entitlements from the given issuer.
|
|
31
|
-
* Will remove any existing entitlements from the issuer that are not specified in the command
|
|
32
|
-
*/
|
|
33
|
-
export interface SetUserEntitlementsFromIssuerCommand {
|
|
34
|
-
id: string;
|
|
35
|
-
type: 'SetUserEntitlementsFromIssuer';
|
|
36
|
-
payload: {
|
|
37
|
-
id: string;
|
|
38
|
-
v: number;
|
|
39
|
-
issuer: string;
|
|
40
|
-
userId: string;
|
|
41
|
-
entitlements: {
|
|
42
|
-
entitlement: EntitlementName | string;
|
|
43
|
-
/** leave a undefined to never expire */
|
|
44
|
-
expiresAt?: string;
|
|
45
|
-
issuedAt: string;
|
|
46
|
-
}[];
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
29
|
//# sourceMappingURL=user-entitlements-commands.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-entitlements-commands.d.ts","sourceRoot":"","sources":["../../../src/entitlement/user-entitlements-commands.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEnE,MAAM,WAAW,2BAA2B;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,sBAAsB,CAAC;IAC7B,OAAO,EAAE,kCAAkC,CAAA;CAC9C;AAED,MAAM,WAAW,kCAAmC,SAAQ,WAAW;IACnE,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,MAAM,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,4BAA4B;IACzC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,uBAAuB,CAAC;IAC9B,OAAO,EAAE,mCAAmC,CAAA;CAC/C;AAED,MAAM,WAAW,mCAAmC;IAChD,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,eAAe,GAAG,MAAM,CAAC;IACtC,MAAM,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,kCAAkC;IAC/C,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,6BAA6B,CAAC;IACpC,OAAO,EAAE;QACL,MAAM,EAAE,MAAM,CAAC;KAClB,CAAC;CACL
|
|
1
|
+
{"version":3,"file":"user-entitlements-commands.d.ts","sourceRoot":"","sources":["../../../src/entitlement/user-entitlements-commands.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEnE,MAAM,WAAW,2BAA2B;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,sBAAsB,CAAC;IAC7B,OAAO,EAAE,kCAAkC,CAAA;CAC9C;AAED,MAAM,WAAW,kCAAmC,SAAQ,WAAW;IACnE,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,MAAM,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,4BAA4B;IACzC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,uBAAuB,CAAC;IAC9B,OAAO,EAAE,mCAAmC,CAAA;CAC/C;AAED,MAAM,WAAW,mCAAmC;IAChD,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,eAAe,GAAG,MAAM,CAAC;IACtC,MAAM,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,kCAAkC;IAC/C,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,6BAA6B,CAAC;IACpC,OAAO,EAAE;QACL,MAAM,EAAE,MAAM,CAAC;KAClB,CAAC;CACL"}
|
|
@@ -6,15 +6,22 @@ export interface B2BOrganisation {
|
|
|
6
6
|
name: string;
|
|
7
7
|
owner: string;
|
|
8
8
|
code?: string;
|
|
9
|
+
/** for now this will reference what to display in the home screen of the app for users that joined the organisation */
|
|
9
10
|
provider: string;
|
|
11
|
+
/** 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 */
|
|
10
12
|
displayName: string;
|
|
13
|
+
/** the max amount of times the code to join an organisation can be used */
|
|
11
14
|
codeUsageLimit?: number;
|
|
15
|
+
/** the prefix to use for the url of the organisation */
|
|
12
16
|
urlPrefix?: string;
|
|
13
17
|
brandId?: string;
|
|
18
|
+
/** if the organisation provides members with the premium entitlement */
|
|
14
19
|
providesPremium?: boolean;
|
|
15
20
|
/** Introduced to allow simple creation of demo orgs for sales team. Is used in production but only for demo purposes */
|
|
16
21
|
isDemo?: boolean;
|
|
17
22
|
/** Is used in production but only for demo purposes */
|
|
18
23
|
demoLogoUrl?: string;
|
|
24
|
+
/** Any extra entitlements that are issued to members of this organisation. Not to be used provide premium - use providesPremium flag */
|
|
25
|
+
issuedEntitlements?: string[];
|
|
19
26
|
}
|
|
20
27
|
//# 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;IACjB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,wHAAwH;IACxH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,uDAAuD;IACvD,WAAW,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,uHAAuH;IACvH,QAAQ,EAAE,MAAM,CAAC;IACjB,oJAAoJ;IACpJ,WAAW,EAAE,MAAM,CAAC;IACpB,2EAA2E;IAC3E,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,wDAAwD;IACxD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,wEAAwE;IACxE,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,wHAAwH;IACxH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,uDAAuD;IACvD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wIAAwI;IACxI,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;CACjC"}
|
|
@@ -26,24 +26,4 @@ export interface RefreshRevenueCatUserStatusCommand {
|
|
|
26
26
|
userId: string;
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
|
-
/**
|
|
30
|
-
* Ensure the user has the provided entitlements from the given issuer.
|
|
31
|
-
* Will remove any existing entitlements from the issuer that are not specified in the command
|
|
32
|
-
*/
|
|
33
|
-
export interface SetUserEntitlementsFromIssuerCommand {
|
|
34
|
-
id: string;
|
|
35
|
-
type: 'SetUserEntitlementsFromIssuer';
|
|
36
|
-
payload: {
|
|
37
|
-
id: string;
|
|
38
|
-
v: number;
|
|
39
|
-
issuer: string;
|
|
40
|
-
userId: string;
|
|
41
|
-
entitlements: {
|
|
42
|
-
entitlement: EntitlementName | string;
|
|
43
|
-
/** leave a undefined to never expire */
|
|
44
|
-
expiresAt?: string;
|
|
45
|
-
issuedAt: string;
|
|
46
|
-
}[];
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
29
|
//# sourceMappingURL=user-entitlements-commands.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-entitlements-commands.d.ts","sourceRoot":"","sources":["../../../src/entitlement/user-entitlements-commands.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEnE,MAAM,WAAW,2BAA2B;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,sBAAsB,CAAC;IAC7B,OAAO,EAAE,kCAAkC,CAAA;CAC9C;AAED,MAAM,WAAW,kCAAmC,SAAQ,WAAW;IACnE,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,MAAM,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,4BAA4B;IACzC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,uBAAuB,CAAC;IAC9B,OAAO,EAAE,mCAAmC,CAAA;CAC/C;AAED,MAAM,WAAW,mCAAmC;IAChD,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,eAAe,GAAG,MAAM,CAAC;IACtC,MAAM,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,kCAAkC;IAC/C,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,6BAA6B,CAAC;IACpC,OAAO,EAAE;QACL,MAAM,EAAE,MAAM,CAAC;KAClB,CAAC;CACL
|
|
1
|
+
{"version":3,"file":"user-entitlements-commands.d.ts","sourceRoot":"","sources":["../../../src/entitlement/user-entitlements-commands.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEnE,MAAM,WAAW,2BAA2B;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,sBAAsB,CAAC;IAC7B,OAAO,EAAE,kCAAkC,CAAA;CAC9C;AAED,MAAM,WAAW,kCAAmC,SAAQ,WAAW;IACnE,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,MAAM,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,4BAA4B;IACzC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,uBAAuB,CAAC;IAC9B,OAAO,EAAE,mCAAmC,CAAA;CAC/C;AAED,MAAM,WAAW,mCAAmC;IAChD,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,eAAe,GAAG,MAAM,CAAC;IACtC,MAAM,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,kCAAkC;IAC/C,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,6BAA6B,CAAC;IACpC,OAAO,EAAE;QACL,MAAM,EAAE,MAAM,CAAC;KAClB,CAAC;CACL"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uptime.app/contracts",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.56",
|
|
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": "6fa9f36ab4ab46ef0bf3bbad96159cfc6ca83480"
|
|
17
17
|
}
|
|
@@ -6,14 +6,21 @@ export interface B2BOrganisation {
|
|
|
6
6
|
name: string; //unique
|
|
7
7
|
owner: string; //unique
|
|
8
8
|
code?: string;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
/** for now this will reference what to display in the home screen of the app for users that joined the organisation */
|
|
10
|
+
provider: string;
|
|
11
|
+
/** 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 */
|
|
12
|
+
displayName: string;
|
|
13
|
+
/** the max amount of times the code to join an organisation can be used */
|
|
14
|
+
codeUsageLimit?: number;
|
|
15
|
+
/** the prefix to use for the url of the organisation */
|
|
16
|
+
urlPrefix?: string;
|
|
13
17
|
brandId?: string;
|
|
14
|
-
|
|
18
|
+
/** if the organisation provides members with the premium entitlement */
|
|
19
|
+
providesPremium?: boolean;
|
|
15
20
|
/** Introduced to allow simple creation of demo orgs for sales team. Is used in production but only for demo purposes */
|
|
16
21
|
isDemo?: boolean;
|
|
17
22
|
/** Is used in production but only for demo purposes */
|
|
18
23
|
demoLogoUrl?: string;
|
|
24
|
+
/** Any extra entitlements that are issued to members of this organisation. Not to be used provide premium - use providesPremium flag */
|
|
25
|
+
issuedEntitlements?: string[];
|
|
19
26
|
}
|
|
@@ -31,24 +31,3 @@ export interface RefreshRevenueCatUserStatusCommand {
|
|
|
31
31
|
userId: string;
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Ensure the user has the provided entitlements from the given issuer.
|
|
37
|
-
* Will remove any existing entitlements from the issuer that are not specified in the command
|
|
38
|
-
*/
|
|
39
|
-
export interface SetUserEntitlementsFromIssuerCommand {
|
|
40
|
-
id: string;
|
|
41
|
-
type: 'SetUserEntitlementsFromIssuer',
|
|
42
|
-
payload: {
|
|
43
|
-
id: string;
|
|
44
|
-
v: number,
|
|
45
|
-
issuer: string;
|
|
46
|
-
userId: string
|
|
47
|
-
entitlements: {
|
|
48
|
-
entitlement: EntitlementName | string;
|
|
49
|
-
/** leave a undefined to never expire */
|
|
50
|
-
expiresAt?: string
|
|
51
|
-
issuedAt: string;
|
|
52
|
-
}[]
|
|
53
|
-
}
|
|
54
|
-
}
|