@voquill/pricing 0.1.0

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.
@@ -0,0 +1,2 @@
1
+ export * from "./prices";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ export * from "./prices";
@@ -0,0 +1,14 @@
1
+ export type PriceInfo = {
2
+ sandboxId: string;
3
+ devId: string;
4
+ prodId: string;
5
+ };
6
+ export declare const SUBSCRIPTION_PRICE_KEYS: readonly [];
7
+ export type SubscriptionPriceKey = (typeof SUBSCRIPTION_PRICE_KEYS)[number];
8
+ export declare const ONE_TIME_PRICE_KEYS: readonly ["pro_monthly", "pro_yearly"];
9
+ export type OneTimePriceKey = (typeof ONE_TIME_PRICE_KEYS)[number];
10
+ export declare const PRICE_KEYS: readonly ["pro_monthly", "pro_yearly"];
11
+ export type PriceKey = (typeof PRICE_KEYS)[number];
12
+ export declare const Prices: Record<PriceKey, PriceInfo>;
13
+ export declare const priceKeyById: Record<string, PriceKey>;
14
+ //# sourceMappingURL=prices.d.ts.map
@@ -0,0 +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,aAAc,CAAC;AAEnD,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5E,eAAO,MAAM,mBAAmB,wCAAyC,CAAC;AAE1E,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEnE,eAAO,MAAM,UAAU,wCAGb,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;AAEnD,eAAO,MAAM,MAAM,EAAE,MAAM,CAAC,QAAQ,EAAE,SAAS,CAW9C,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAGpB,CAAC"}
package/dist/prices.js ADDED
@@ -0,0 +1,22 @@
1
+ export const SUBSCRIPTION_PRICE_KEYS = [];
2
+ export const ONE_TIME_PRICE_KEYS = ["pro_monthly", "pro_yearly"];
3
+ export const PRICE_KEYS = [
4
+ ...SUBSCRIPTION_PRICE_KEYS,
5
+ ...ONE_TIME_PRICE_KEYS,
6
+ ];
7
+ export const Prices = {
8
+ pro_monthly: {
9
+ sandboxId: "price_1Smx96RRNItZsxS6WXTeWby3",
10
+ devId: "",
11
+ prodId: "price_1Son5zIp7DaYKUgMEMMuBNcy",
12
+ },
13
+ pro_yearly: {
14
+ sandboxId: "price_1Smx9IRRNItZsxS6BG3XnnhL",
15
+ devId: "",
16
+ prodId: "price_1SmiviIp7DaYKUgMlbjqI23J",
17
+ },
18
+ };
19
+ export const priceKeyById = Object.fromEntries([
20
+ ...Object.entries(Prices).map(([key, value]) => [value.sandboxId, key]),
21
+ ...Object.entries(Prices).map(([key, value]) => [value.prodId, key]),
22
+ ]);
package/package.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "@voquill/pricing",
3
+ "version": "0.1.0",
4
+ "description": "Shared pricing utilities",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "scripts": {
8
+ "build": "tsc",
9
+ "dev": "tsc --watch",
10
+ "clean": "rm -rf dist"
11
+ },
12
+ "files": [
13
+ "dist"
14
+ ],
15
+ "peerDependencies": {},
16
+ "devDependencies": {
17
+ "@voquill/typescript-config": "workspace:*",
18
+ "typescript": "5.9.2"
19
+ },
20
+ "publishConfig": {
21
+ "access": "public"
22
+ }
23
+ }