atmn 1.0.0-beta.2 → 1.0.0-beta.4
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/source/compose/builders/builderFunctions.d.ts +82 -0
- package/dist/source/compose/index.d.ts +10 -0
- package/dist/source/compose/models/featureModels.d.ts +53 -0
- package/dist/source/compose/models/index.d.ts +2 -0
- package/dist/source/compose/models/planModels.d.ts +169 -0
- package/dist/source/index.d.ts +1 -0
- package/dist/source/index.js +52 -0
- package/dist/src/cli.js +120859 -0
- package/package.json +26 -7
- package/readme.md +2 -2
- package/dist/chunk-PKRTTZCX.js +0 -137
- package/dist/chunk-UM3AMTOI.js +0 -267
- package/dist/cli.cjs +0 -1900
- package/dist/cli.d.cts +0 -1
- package/dist/cli.d.ts +0 -1
- package/dist/cli.js +0 -1366
- package/dist/index.cjs +0 -22
- package/dist/index.d.cts +0 -341
- package/dist/index.d.ts +0 -341
- package/dist/index.js +0 -18
- package/dist/pull-HKJ5B3AS.js +0 -2
- package/dist/utils-GPT5AGIL.js +0 -1
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import type { Plan, PlanFeature } from "../models/planModels.js";
|
|
2
|
+
import type { Feature } from "../models/featureModels.js";
|
|
3
|
+
type PlanInput = Omit<Plan, 'description' | 'add_on' | 'auto_enable' | 'group'> & Partial<Pick<Plan, 'description' | 'add_on' | 'auto_enable' | 'group'>>;
|
|
4
|
+
/**
|
|
5
|
+
* Define a pricing plan in your Autumn configuration
|
|
6
|
+
*
|
|
7
|
+
* @param p - Plan configuration
|
|
8
|
+
* @returns Plan object for use in autumn.config.ts
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* export const pro = plan({
|
|
12
|
+
* id: 'pro',
|
|
13
|
+
* name: 'Pro Plan',
|
|
14
|
+
* description: 'For growing teams',
|
|
15
|
+
* features: [
|
|
16
|
+
* planFeature({ feature_id: seats.id, included: 10 }),
|
|
17
|
+
* planFeature({
|
|
18
|
+
* feature_id: messages.id,
|
|
19
|
+
* included: 1000,
|
|
20
|
+
* reset: { interval: 'month' }
|
|
21
|
+
* })
|
|
22
|
+
* ],
|
|
23
|
+
* price: { amount: 50, interval: 'month' }
|
|
24
|
+
* });
|
|
25
|
+
*/
|
|
26
|
+
export declare const plan: (params: PlanInput) => Plan;
|
|
27
|
+
/**
|
|
28
|
+
* Define a feature that can be included in plans
|
|
29
|
+
*
|
|
30
|
+
* @param f - Feature configuration
|
|
31
|
+
* @returns Feature object for use in autumn.config.ts
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* // Metered consumable feature (like API calls, tokens)
|
|
35
|
+
* export const apiCalls = feature({
|
|
36
|
+
* id: 'api_calls',
|
|
37
|
+
* name: 'API Calls',
|
|
38
|
+
* type: 'metered',
|
|
39
|
+
* consumable: true
|
|
40
|
+
* });
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* // Metered non-consumable feature (like seats)
|
|
44
|
+
* export const seats = feature({
|
|
45
|
+
* id: 'seats',
|
|
46
|
+
* name: 'Team Seats',
|
|
47
|
+
* type: 'metered',
|
|
48
|
+
* consumable: false
|
|
49
|
+
* });
|
|
50
|
+
*/
|
|
51
|
+
export declare const feature: (params: Feature) => Feature;
|
|
52
|
+
/**
|
|
53
|
+
* Include a feature in a plan with specific configuration
|
|
54
|
+
*
|
|
55
|
+
* @param config - Feature configuration for this plan
|
|
56
|
+
* @returns PlanFeature for use in plan's features array
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* // Simple included usage
|
|
60
|
+
* planFeature({
|
|
61
|
+
* feature_id: messages.id,
|
|
62
|
+
* included: 1000,
|
|
63
|
+
* reset: { interval: 'month' }
|
|
64
|
+
* })
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* // Priced feature with tiers
|
|
68
|
+
* planFeature({
|
|
69
|
+
* feature_id: seats.id,
|
|
70
|
+
* included: 5,
|
|
71
|
+
* price: {
|
|
72
|
+
* tiers: [
|
|
73
|
+
* { to: 10, amount: 10 },
|
|
74
|
+
* { to: 'inf', amount: 8 }
|
|
75
|
+
* ],
|
|
76
|
+
* interval: 'month',
|
|
77
|
+
* billing_method: 'pay_per_use'
|
|
78
|
+
* }
|
|
79
|
+
* })
|
|
80
|
+
*/
|
|
81
|
+
export declare const planFeature: (params: PlanFeature) => PlanFeature;
|
|
82
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { feature, plan, planFeature } from "./builders/builderFunctions.js";
|
|
2
|
+
import type { Feature } from "./models/featureModels.js";
|
|
3
|
+
import type { Plan, PlanFeature, FreeTrial } from "./models/planModels.js";
|
|
4
|
+
export { plan, feature, planFeature };
|
|
5
|
+
export type { Feature, Plan, PlanFeature, FreeTrial, };
|
|
6
|
+
export type Infinity = "infinity";
|
|
7
|
+
export type AutumnConfig = {
|
|
8
|
+
plans: Plan[];
|
|
9
|
+
features: Feature[];
|
|
10
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
export declare const FeatureSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
event_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6
|
+
credit_schema: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7
|
+
metered_feature_id: z.ZodString;
|
|
8
|
+
credit_cost: z.ZodNumber;
|
|
9
|
+
}, z.core.$strip>>>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
type FeatureBase = {
|
|
12
|
+
/** Unique identifier for the feature */
|
|
13
|
+
id: string;
|
|
14
|
+
/** Display name for the feature */
|
|
15
|
+
name: string;
|
|
16
|
+
/** Event names that trigger this feature */
|
|
17
|
+
event_names?: string[];
|
|
18
|
+
/** Credit schema for credit_system features */
|
|
19
|
+
credit_schema?: Array<{
|
|
20
|
+
metered_feature_id: string;
|
|
21
|
+
credit_cost: number;
|
|
22
|
+
}>;
|
|
23
|
+
};
|
|
24
|
+
/** Boolean feature - no consumable field allowed */
|
|
25
|
+
export type BooleanFeature = FeatureBase & {
|
|
26
|
+
type: "boolean";
|
|
27
|
+
consumable?: never;
|
|
28
|
+
};
|
|
29
|
+
/** Metered feature - requires consumable field */
|
|
30
|
+
export type MeteredFeature = FeatureBase & {
|
|
31
|
+
type: "metered";
|
|
32
|
+
/** Whether usage is consumed (true) or accumulated (false) */
|
|
33
|
+
consumable: boolean;
|
|
34
|
+
};
|
|
35
|
+
/** Credit system feature - always consumable */
|
|
36
|
+
export type CreditSystemFeature = FeatureBase & {
|
|
37
|
+
type: "credit_system";
|
|
38
|
+
/** Credit systems are always consumable */
|
|
39
|
+
consumable?: true;
|
|
40
|
+
/** Required: defines how credits map to metered features */
|
|
41
|
+
credit_schema: Array<{
|
|
42
|
+
metered_feature_id: string;
|
|
43
|
+
credit_cost: number;
|
|
44
|
+
}>;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Feature definition with type-safe constraints:
|
|
48
|
+
* - Boolean features cannot have consumable
|
|
49
|
+
* - Metered features require consumable (true = single_use style, false = continuous_use style)
|
|
50
|
+
* - Credit system features are always consumable and require credit_schema
|
|
51
|
+
*/
|
|
52
|
+
export type Feature = BooleanFeature | MeteredFeature | CreditSystemFeature;
|
|
53
|
+
export {};
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { z } from "zod/v4";
|
|
2
|
+
export declare const UsageTierSchema: z.ZodObject<{
|
|
3
|
+
to: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"inf">]>;
|
|
4
|
+
amount: z.ZodNumber;
|
|
5
|
+
}, z.core.$strip>;
|
|
6
|
+
export declare const PlanFeatureSchema: z.ZodObject<{
|
|
7
|
+
feature_id: z.ZodString;
|
|
8
|
+
granted_balance: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
unlimited: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
+
reset: z.ZodOptional<z.ZodObject<{
|
|
11
|
+
interval: z.ZodUnion<readonly [z.ZodLiteral<"one_off">, z.ZodLiteral<"minute">, z.ZodLiteral<"hour">, z.ZodLiteral<"day">, z.ZodLiteral<"week">, z.ZodLiteral<"month">, z.ZodLiteral<"quarter">, z.ZodLiteral<"year">]>;
|
|
12
|
+
interval_count: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
reset_when_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
+
}, z.core.$strip>>;
|
|
15
|
+
price: z.ZodOptional<z.ZodObject<{
|
|
16
|
+
amount: z.ZodOptional<z.ZodNumber>;
|
|
17
|
+
tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
18
|
+
to: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"inf">]>;
|
|
19
|
+
amount: z.ZodNumber;
|
|
20
|
+
}, z.core.$strip>>>;
|
|
21
|
+
interval: z.ZodUnion<readonly [z.ZodLiteral<"month">, z.ZodLiteral<"quarter">, z.ZodLiteral<"semi_annual">, z.ZodLiteral<"year">]>;
|
|
22
|
+
interval_count: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
23
|
+
billing_units: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
24
|
+
usage_model: z.ZodUnion<readonly [z.ZodLiteral<"prepaid">, z.ZodLiteral<"pay_per_use">]>;
|
|
25
|
+
max_purchase: z.ZodOptional<z.ZodNumber>;
|
|
26
|
+
}, z.core.$strip>>;
|
|
27
|
+
proration: z.ZodOptional<z.ZodObject<{
|
|
28
|
+
on_increase: z.ZodUnion<readonly [z.ZodLiteral<"prorate">, z.ZodLiteral<"charge_immediately">]>;
|
|
29
|
+
on_decrease: z.ZodUnion<readonly [z.ZodLiteral<"prorate">, z.ZodLiteral<"refund_immediately">, z.ZodLiteral<"no_action">]>;
|
|
30
|
+
}, z.core.$strip>>;
|
|
31
|
+
rollover: z.ZodOptional<z.ZodObject<{
|
|
32
|
+
max: z.ZodNumber;
|
|
33
|
+
expiry_duration_type: z.ZodUnion<readonly [z.ZodLiteral<"one_off">, z.ZodLiteral<"minute">, z.ZodLiteral<"hour">, z.ZodLiteral<"day">, z.ZodLiteral<"week">, z.ZodLiteral<"month">, z.ZodLiteral<"quarter">, z.ZodLiteral<"year">]>;
|
|
34
|
+
expiry_duration_length: z.ZodOptional<z.ZodNumber>;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
export declare const FreeTrialSchema: z.ZodObject<{
|
|
38
|
+
duration_type: z.ZodUnion<readonly [z.ZodLiteral<"day">, z.ZodLiteral<"month">, z.ZodLiteral<"year">]>;
|
|
39
|
+
duration_length: z.ZodNumber;
|
|
40
|
+
card_required: z.ZodBoolean;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
export declare const PlanSchema: z.ZodObject<{
|
|
43
|
+
description: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
add_on: z.ZodDefault<z.ZodBoolean>;
|
|
45
|
+
default: z.ZodDefault<z.ZodBoolean>;
|
|
46
|
+
price: z.ZodOptional<z.ZodObject<{
|
|
47
|
+
amount: z.ZodNumber;
|
|
48
|
+
interval: z.ZodUnion<readonly [z.ZodLiteral<"month">, z.ZodLiteral<"quarter">, z.ZodLiteral<"semi_annual">, z.ZodLiteral<"year">]>;
|
|
49
|
+
}, z.core.$strip>>;
|
|
50
|
+
features: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
51
|
+
feature_id: z.ZodString;
|
|
52
|
+
granted_balance: z.ZodOptional<z.ZodNumber>;
|
|
53
|
+
unlimited: z.ZodOptional<z.ZodBoolean>;
|
|
54
|
+
reset: z.ZodOptional<z.ZodObject<{
|
|
55
|
+
interval: z.ZodUnion<readonly [z.ZodLiteral<"one_off">, z.ZodLiteral<"minute">, z.ZodLiteral<"hour">, z.ZodLiteral<"day">, z.ZodLiteral<"week">, z.ZodLiteral<"month">, z.ZodLiteral<"quarter">, z.ZodLiteral<"year">]>;
|
|
56
|
+
interval_count: z.ZodOptional<z.ZodNumber>;
|
|
57
|
+
reset_when_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
58
|
+
}, z.core.$strip>>;
|
|
59
|
+
price: z.ZodOptional<z.ZodObject<{
|
|
60
|
+
amount: z.ZodOptional<z.ZodNumber>;
|
|
61
|
+
tiers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
62
|
+
to: z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"inf">]>;
|
|
63
|
+
amount: z.ZodNumber;
|
|
64
|
+
}, z.core.$strip>>>;
|
|
65
|
+
interval: z.ZodUnion<readonly [z.ZodLiteral<"month">, z.ZodLiteral<"quarter">, z.ZodLiteral<"semi_annual">, z.ZodLiteral<"year">]>;
|
|
66
|
+
interval_count: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
67
|
+
billing_units: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
68
|
+
usage_model: z.ZodUnion<readonly [z.ZodLiteral<"prepaid">, z.ZodLiteral<"pay_per_use">]>;
|
|
69
|
+
max_purchase: z.ZodOptional<z.ZodNumber>;
|
|
70
|
+
}, z.core.$strip>>;
|
|
71
|
+
proration: z.ZodOptional<z.ZodObject<{
|
|
72
|
+
on_increase: z.ZodUnion<readonly [z.ZodLiteral<"prorate">, z.ZodLiteral<"charge_immediately">]>;
|
|
73
|
+
on_decrease: z.ZodUnion<readonly [z.ZodLiteral<"prorate">, z.ZodLiteral<"refund_immediately">, z.ZodLiteral<"no_action">]>;
|
|
74
|
+
}, z.core.$strip>>;
|
|
75
|
+
rollover: z.ZodOptional<z.ZodObject<{
|
|
76
|
+
max: z.ZodNumber;
|
|
77
|
+
expiry_duration_type: z.ZodUnion<readonly [z.ZodLiteral<"one_off">, z.ZodLiteral<"minute">, z.ZodLiteral<"hour">, z.ZodLiteral<"day">, z.ZodLiteral<"week">, z.ZodLiteral<"month">, z.ZodLiteral<"quarter">, z.ZodLiteral<"year">]>;
|
|
78
|
+
expiry_duration_length: z.ZodOptional<z.ZodNumber>;
|
|
79
|
+
}, z.core.$strip>>;
|
|
80
|
+
}, z.core.$strip>>>;
|
|
81
|
+
free_trial: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
82
|
+
duration_type: z.ZodUnion<readonly [z.ZodLiteral<"day">, z.ZodLiteral<"month">, z.ZodLiteral<"year">]>;
|
|
83
|
+
duration_length: z.ZodNumber;
|
|
84
|
+
card_required: z.ZodBoolean;
|
|
85
|
+
}, z.core.$strip>>>;
|
|
86
|
+
id: z.ZodString;
|
|
87
|
+
name: z.ZodString;
|
|
88
|
+
group: z.ZodDefault<z.ZodString>;
|
|
89
|
+
}, z.core.$strip>;
|
|
90
|
+
export type ResetInterval = "one_off" | "minute" | "hour" | "day" | "week" | "month" | "quarter" | "year";
|
|
91
|
+
export type BillingInterval = "month" | "quarter" | "semi_annual" | "year";
|
|
92
|
+
export type BillingMethod = "prepaid" | "pay_per_use";
|
|
93
|
+
export type OnIncrease = "prorate" | "charge_immediately";
|
|
94
|
+
export type OnDecrease = "prorate" | "refund_immediately" | "no_action";
|
|
95
|
+
/**
|
|
96
|
+
* Plan feature configuration with flattened reset fields. Use interval/interval_count at top level.
|
|
97
|
+
*/
|
|
98
|
+
export type PlanFeature = {
|
|
99
|
+
/** Reference to the feature being configured */
|
|
100
|
+
feature_id: string;
|
|
101
|
+
/** Amount of usage included in this plan */
|
|
102
|
+
included?: number;
|
|
103
|
+
/** Whether usage is unlimited */
|
|
104
|
+
unlimited?: boolean;
|
|
105
|
+
/** How often usage resets (e.g., 'month', 'day') */
|
|
106
|
+
interval?: ResetInterval;
|
|
107
|
+
/** Number of intervals between resets (default: 1) */
|
|
108
|
+
interval_count?: number;
|
|
109
|
+
/** Whether to carry over existing usage when feature is enabled (default: true) */
|
|
110
|
+
carry_over_usage?: boolean;
|
|
111
|
+
/** Pricing configuration for usage-based billing */
|
|
112
|
+
price?: {
|
|
113
|
+
/** Flat price per unit in cents */
|
|
114
|
+
amount?: number;
|
|
115
|
+
/** Tiered pricing structure based on usage ranges */
|
|
116
|
+
tiers?: Array<{
|
|
117
|
+
to: number | "inf";
|
|
118
|
+
amount: number;
|
|
119
|
+
}>;
|
|
120
|
+
/** Number of units per billing cycle */
|
|
121
|
+
billing_units: number;
|
|
122
|
+
/** Billing method: 'prepaid' or 'pay_per_use' */
|
|
123
|
+
billing_method: BillingMethod;
|
|
124
|
+
/** Maximum purchasable quantity */
|
|
125
|
+
max_purchase?: number;
|
|
126
|
+
};
|
|
127
|
+
/** Proration rules for quantity changes */
|
|
128
|
+
proration?: {
|
|
129
|
+
/** Behavior when quantity increases */
|
|
130
|
+
on_increase: OnIncrease;
|
|
131
|
+
/** Behavior when quantity decreases */
|
|
132
|
+
on_decrease: OnDecrease;
|
|
133
|
+
};
|
|
134
|
+
/** Rollover policy for unused usage */
|
|
135
|
+
rollover?: {
|
|
136
|
+
/** Maximum amount that can roll over (null for unlimited) */
|
|
137
|
+
max: number | null;
|
|
138
|
+
/** How long rollover lasts before expiring */
|
|
139
|
+
expiry_duration_type: ResetInterval;
|
|
140
|
+
/** Duration length for rollover expiry */
|
|
141
|
+
expiry_duration_length?: number;
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
export type FreeTrial = z.infer<typeof FreeTrialSchema>;
|
|
145
|
+
export type Plan = {
|
|
146
|
+
/** Unique identifier for the plan */
|
|
147
|
+
id: string;
|
|
148
|
+
/** Display name for the plan */
|
|
149
|
+
name: string;
|
|
150
|
+
/** Optional description explaining what this plan offers */
|
|
151
|
+
description?: string | null;
|
|
152
|
+
/** Grouping identifier for organizing related plans */
|
|
153
|
+
group?: string;
|
|
154
|
+
/** Whether this plan can be purchased alongside other plans */
|
|
155
|
+
add_on?: boolean;
|
|
156
|
+
/** Whether to automatically enable this plan for new customers */
|
|
157
|
+
auto_enable?: boolean;
|
|
158
|
+
/** Base price for the plan */
|
|
159
|
+
price?: {
|
|
160
|
+
/** Price in your currency (e.g., 50 for $50.00) */
|
|
161
|
+
amount: number;
|
|
162
|
+
/** Billing frequency */
|
|
163
|
+
interval: BillingInterval | ResetInterval;
|
|
164
|
+
};
|
|
165
|
+
/** Features included with usage limits and pricing */
|
|
166
|
+
features?: PlanFeature[];
|
|
167
|
+
/** Free trial period before billing begins */
|
|
168
|
+
free_trial?: FreeTrial | null;
|
|
169
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './compose/index.js';
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { createRequire } from "node:module";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __toESM = (mod, isNodeMode, target) => {
|
|
8
|
+
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
9
|
+
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
10
|
+
for (let key of __getOwnPropNames(mod))
|
|
11
|
+
if (!__hasOwnProp.call(to, key))
|
|
12
|
+
__defProp(to, key, {
|
|
13
|
+
get: () => mod[key],
|
|
14
|
+
enumerable: true
|
|
15
|
+
});
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
19
|
+
var __export = (target, all) => {
|
|
20
|
+
for (var name in all)
|
|
21
|
+
__defProp(target, name, {
|
|
22
|
+
get: all[name],
|
|
23
|
+
enumerable: true,
|
|
24
|
+
configurable: true,
|
|
25
|
+
set: (newValue) => all[name] = () => newValue
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
29
|
+
var __promiseAll = (args) => Promise.all(args);
|
|
30
|
+
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
31
|
+
|
|
32
|
+
// source/compose/builders/builderFunctions.ts
|
|
33
|
+
var plan = (params) => {
|
|
34
|
+
return {
|
|
35
|
+
...params,
|
|
36
|
+
description: params.description ?? null,
|
|
37
|
+
add_on: params.add_on ?? false,
|
|
38
|
+
auto_enable: params.auto_enable ?? false,
|
|
39
|
+
group: params.group ?? ""
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
var feature = (params) => {
|
|
43
|
+
return params;
|
|
44
|
+
};
|
|
45
|
+
var planFeature = (params) => {
|
|
46
|
+
return params;
|
|
47
|
+
};
|
|
48
|
+
export {
|
|
49
|
+
planFeature,
|
|
50
|
+
plan,
|
|
51
|
+
feature
|
|
52
|
+
};
|