@dgpholdings/greatoak-shared 1.0.60 → 1.0.62

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,10 +1,43 @@
1
- export type TApiBillingLatestReq = {
1
+ export type TApiBillingGetActiveReq = {
2
2
  countryCode: string;
3
3
  };
4
- export type TApiBillingLatestRes = {
4
+ export type TApiBillingGetActiveRes = {
5
5
  countryCode: string;
6
6
  version: string;
7
7
  currencyCode: string;
8
8
  monthlyPrice: number;
9
9
  annuallyPrice: number;
10
10
  };
11
+ export type TApiBillingSetActiveReq = {
12
+ version: string;
13
+ };
14
+ export type TApiBillingSetActiveRes = {
15
+ status: 200 | 400;
16
+ };
17
+ export type TBillingPlan = {
18
+ version: string;
19
+ isActive: boolean;
20
+ country: {
21
+ countryCode: string;
22
+ currencyCode: string;
23
+ monthlyPrice: number;
24
+ annuallyPrice: number;
25
+ freeFeatures: {
26
+ maxPrograms: number;
27
+ maxTemplates: number;
28
+ exercisePerTemplate: number;
29
+ };
30
+ }[];
31
+ fallback: {
32
+ premium: {
33
+ currencyCode: string;
34
+ monthlyPrice: number;
35
+ annuallyPrice: number;
36
+ };
37
+ freeFeatures: {
38
+ maxPrograms: number;
39
+ maxTemplates: number;
40
+ exercisePerTemplate: number;
41
+ };
42
+ };
43
+ };
@@ -0,0 +1,5 @@
1
+ import { TBillingPlan } from "../TApiBillingPlan";
2
+ export type TApiBillingPlanCreateReq = Exclude<TBillingPlan, "isActive" | "version">;
3
+ export type TApiBillingPlanCreateRes = {
4
+ success: boolean;
5
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dgpholdings/greatoak-shared",
3
- "version": "1.0.60",
3
+ "version": "1.0.62",
4
4
  "description": "Shared TypeScript types and utilities for @dgpholdings projects",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",