@uptime.app/contracts 3.1.5 → 3.1.6
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.
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
export type EntitlementName = 'premium' | 'trial';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Who issued an entitlement. Services set this through SetUserEntitlementsFromIssuer, so the list
|
|
4
|
+
* mirrors the issuers in use; `Entitlement.issuer` stays open to any string.
|
|
5
|
+
* - `Uptime`: Uptime itself, e.g. the trial on sign-up (user-service still writes lowercase `uptime`)
|
|
6
|
+
* - `RevenueCat`: in-app purchases
|
|
7
|
+
* - `B2BOrganisation:<organisationId>`: a B2B organisation for its members (b2b-organisation-service)
|
|
8
|
+
* - `MarketingCampaign:<campaignId>`: a marketing campaign
|
|
9
|
+
* - `creator-service`, `referral-service`: those services
|
|
10
|
+
*/
|
|
11
|
+
export type EntitlementIssuer = 'Uptime' | 'uptime' | 'RevenueCat' | `B2BOrganisation:${string}` | `MarketingCampaign:${string}` | 'creator-service' | 'referral-service';
|
|
3
12
|
export type Entitlement = {
|
|
4
13
|
entitlement: EntitlementName | string;
|
|
5
14
|
issuer: EntitlementIssuer | string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-entitlements.d.ts","sourceRoot":"","sources":["../../../src/entitlement/user-entitlements.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,OAAO,CAAC;AAClD,MAAM,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"user-entitlements.d.ts","sourceRoot":"","sources":["../../../src/entitlement/user-entitlements.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,OAAO,CAAC;AAClD;;;;;;;;GAQG;AACH,MAAM,MAAM,iBAAiB,GACvB,QAAQ,GACR,QAAQ,GACR,YAAY,GACZ,mBAAmB,MAAM,EAAE,GAC3B,qBAAqB,MAAM,EAAE,GAC7B,iBAAiB,GACjB,kBAAkB,CAAC;AAEzB,MAAM,MAAM,WAAW,GAAG;IACtB,WAAW,EAAE,eAAe,GAAG,MAAM,CAAC;IACtC,MAAM,EAAE,iBAAiB,GAAG,MAAM,CAAC;IACnC,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,WAAW,gBAAgB;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,WAAW,EAAE,CAAC;CAC/B"}
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
export type EntitlementName = 'premium' | 'trial';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Who issued an entitlement. Services set this through SetUserEntitlementsFromIssuer, so the list
|
|
4
|
+
* mirrors the issuers in use; `Entitlement.issuer` stays open to any string.
|
|
5
|
+
* - `Uptime`: Uptime itself, e.g. the trial on sign-up (user-service still writes lowercase `uptime`)
|
|
6
|
+
* - `RevenueCat`: in-app purchases
|
|
7
|
+
* - `B2BOrganisation:<organisationId>`: a B2B organisation for its members (b2b-organisation-service)
|
|
8
|
+
* - `MarketingCampaign:<campaignId>`: a marketing campaign
|
|
9
|
+
* - `creator-service`, `referral-service`: those services
|
|
10
|
+
*/
|
|
11
|
+
export type EntitlementIssuer = 'Uptime' | 'uptime' | 'RevenueCat' | `B2BOrganisation:${string}` | `MarketingCampaign:${string}` | 'creator-service' | 'referral-service';
|
|
3
12
|
export type Entitlement = {
|
|
4
13
|
entitlement: EntitlementName | string;
|
|
5
14
|
issuer: EntitlementIssuer | string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-entitlements.d.ts","sourceRoot":"","sources":["../../../src/entitlement/user-entitlements.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,OAAO,CAAC;AAClD,MAAM,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"user-entitlements.d.ts","sourceRoot":"","sources":["../../../src/entitlement/user-entitlements.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,OAAO,CAAC;AAClD;;;;;;;;GAQG;AACH,MAAM,MAAM,iBAAiB,GACvB,QAAQ,GACR,QAAQ,GACR,YAAY,GACZ,mBAAmB,MAAM,EAAE,GAC3B,qBAAqB,MAAM,EAAE,GAC7B,iBAAiB,GACjB,kBAAkB,CAAC;AAEzB,MAAM,MAAM,WAAW,GAAG;IACtB,WAAW,EAAE,eAAe,GAAG,MAAM,CAAC;IACtC,MAAM,EAAE,iBAAiB,GAAG,MAAM,CAAC;IACnC,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,WAAW,gBAAgB;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,WAAW,EAAE,CAAC;CAC/B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uptime.app/contracts",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.6",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist/**/*.*"
|
|
@@ -17,5 +17,5 @@
|
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"typescript": "^5.4.3"
|
|
19
19
|
},
|
|
20
|
-
"gitHead": "
|
|
20
|
+
"gitHead": "78d5db8dd22c8afe4662a1021158142307d59a81"
|
|
21
21
|
}
|