owostack 0.3.1 → 0.3.2

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/index.d.ts CHANGED
@@ -137,6 +137,7 @@ declare function plan(slug: string, config: {
137
137
  price: number;
138
138
  currency: Currency;
139
139
  interval: PlanInterval;
140
+ billingType?: "recurring" | "one_time";
140
141
  features: PlanFeatureEntry[];
141
142
  planGroup?: string;
142
143
  trialDays?: number;
package/dist/index.js CHANGED
@@ -378,7 +378,8 @@ function plan(slug, config) {
378
378
  return {
379
379
  _type: "plan",
380
380
  slug,
381
- ...config
381
+ ...config,
382
+ billingType: config.billingType ?? "recurring"
382
383
  };
383
384
  }
384
385
  function creditPack(slug, config) {
@@ -438,6 +439,7 @@ function buildSyncPayload(catalog, defaultProvider) {
438
439
  price: p.price,
439
440
  currency: p.currency,
440
441
  interval: p.interval,
442
+ billingType: p.billingType,
441
443
  planGroup: p.planGroup ?? void 0,
442
444
  trialDays: p.trialDays ?? void 0,
443
445
  provider: p.provider ?? void 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "owostack",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Core SDK for Owostack billing infrastructure",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -30,7 +30,7 @@
30
30
  "payments"
31
31
  ],
32
32
  "dependencies": {
33
- "@owostack/types": "0.3.1"
33
+ "@owostack/types": "0.3.2"
34
34
  },
35
35
  "devDependencies": {
36
36
  "tsup": "^8.3.6",
@@ -44,6 +44,6 @@
44
44
  "build": "tsup src/index.ts --format esm --dts --clean",
45
45
  "dev": "tsup src/index.ts --format esm --dts --watch",
46
46
  "test": "vitest",
47
- "lint": "eslint src/"
47
+ "lint": "tsc --noEmit -p tsconfig.json"
48
48
  }
49
49
  }