@voquill/pricing 0.3.19 → 0.3.21
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/prices.d.ts +6 -1
- package/dist/prices.d.ts.map +1 -1
- package/dist/prices.js +20 -2
- package/package.json +2 -2
package/dist/prices.d.ts
CHANGED
|
@@ -7,8 +7,13 @@ export declare const SUBSCRIPTION_PRICE_KEYS: readonly [];
|
|
|
7
7
|
export type SubscriptionPriceKey = (typeof SUBSCRIPTION_PRICE_KEYS)[number];
|
|
8
8
|
export declare const ONE_TIME_PRICE_KEYS: readonly ["pro_monthly", "pro_yearly"];
|
|
9
9
|
export type OneTimePriceKey = (typeof ONE_TIME_PRICE_KEYS)[number];
|
|
10
|
-
|
|
10
|
+
/** Team (per-seat) subscription prices, used by tenant checkout. */
|
|
11
|
+
export declare const TEAM_PRICE_KEYS: readonly ["team_monthly", "team_yearly"];
|
|
12
|
+
export type TeamPriceKey = (typeof TEAM_PRICE_KEYS)[number];
|
|
13
|
+
export declare const PRICE_KEYS: readonly ["pro_monthly", "pro_yearly", "team_monthly", "team_yearly"];
|
|
11
14
|
export type PriceKey = (typeof PRICE_KEYS)[number];
|
|
12
15
|
export declare const Prices: Record<PriceKey, PriceInfo>;
|
|
13
16
|
export declare const priceKeyById: Record<string, PriceKey>;
|
|
17
|
+
/** Reverse map containing only team-tier prices. */
|
|
18
|
+
export declare const teamPriceKeyById: Record<string, TeamPriceKey>;
|
|
14
19
|
//# sourceMappingURL=prices.d.ts.map
|
package/dist/prices.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prices.d.ts","sourceRoot":"","sources":["../src/prices.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,uBAAuB,a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 @@
|
|
|
1
1
|
export const SUBSCRIPTION_PRICE_KEYS = [];
|
|
2
2
|
export const ONE_TIME_PRICE_KEYS = ["pro_monthly", "pro_yearly"];
|
|
3
|
+
/** Team (per-seat) subscription prices, used by tenant checkout. */
|
|
4
|
+
export const TEAM_PRICE_KEYS = ["team_monthly", "team_yearly"];
|
|
3
5
|
export const PRICE_KEYS = [
|
|
4
6
|
...SUBSCRIPTION_PRICE_KEYS,
|
|
5
7
|
...ONE_TIME_PRICE_KEYS,
|
|
8
|
+
...TEAM_PRICE_KEYS,
|
|
6
9
|
];
|
|
7
10
|
export const Prices = {
|
|
8
11
|
pro_monthly: {
|
|
@@ -15,8 +18,23 @@ export const Prices = {
|
|
|
15
18
|
devId: "",
|
|
16
19
|
prodId: "price_1SmiviIp7DaYKUgMlbjqI23J",
|
|
17
20
|
},
|
|
21
|
+
team_monthly: {
|
|
22
|
+
sandboxId: "",
|
|
23
|
+
devId: "",
|
|
24
|
+
prodId: "price_1TUFS9Ip7DaYKUgMPORdfzQr",
|
|
25
|
+
},
|
|
26
|
+
team_yearly: {
|
|
27
|
+
sandboxId: "",
|
|
28
|
+
devId: "",
|
|
29
|
+
prodId: "price_1TUFTAIp7DaYKUgMYQbk4u6A",
|
|
30
|
+
},
|
|
18
31
|
};
|
|
19
32
|
export const priceKeyById = Object.fromEntries([
|
|
20
|
-
...Object.entries(Prices).
|
|
21
|
-
|
|
33
|
+
...Object.entries(Prices).flatMap(([key, value]) => [value.sandboxId, value.devId, value.prodId]
|
|
34
|
+
.filter((id) => id.length > 0)
|
|
35
|
+
.map((id) => [id, key])),
|
|
22
36
|
]);
|
|
37
|
+
/** Reverse map containing only team-tier prices. */
|
|
38
|
+
export const teamPriceKeyById = Object.fromEntries(TEAM_PRICE_KEYS.flatMap((key) => [Prices[key].sandboxId, Prices[key].devId, Prices[key].prodId]
|
|
39
|
+
.filter((id) => id.length > 0)
|
|
40
|
+
.map((id) => [id, key])));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voquill/pricing",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.21",
|
|
4
4
|
"description": "Shared pricing utilities",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"peerDependencies": {},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"typescript": "5.9.2",
|
|
18
|
-
"@voquill/typescript-config": "0.3.
|
|
18
|
+
"@voquill/typescript-config": "0.3.21"
|
|
19
19
|
},
|
|
20
20
|
"publishConfig": {
|
|
21
21
|
"access": "public"
|