-
Notifications
You must be signed in to change notification settings - Fork 107
Expand file tree
/
Copy pathautumn.config.ts
More file actions
85 lines (79 loc) · 1.46 KB
/
autumn.config.ts
File metadata and controls
85 lines (79 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
import { feature, item, plan } from "atmn";
// Features
export const executions = feature({
id: "executions",
name: "Executions",
type: "metered",
consumable: true,
});
export const domainVerification = feature({
id: "domain-verification",
name: "Domain Verification",
type: "boolean",
});
export const members = feature({
id: "members",
name: "Members",
type: "metered",
consumable: false,
archived: true,
});
// Plans
export const free = plan({
id: "free",
name: "Free",
addOn: false,
autoEnable: true,
items: [
item({
featureId: executions.id,
included: 10000,
reset: {
interval: "month",
},
}),
],
});
export const freePayAsYouGo = plan({
id: "free-pay-as-you-go",
name: "Free Pay As You Go",
addOn: false,
autoEnable: false,
items: [
item({
featureId: executions.id,
included: 10000,
price: {
amount: 0.2,
billingUnits: 1000,
billingMethod: "usage_based",
interval: "month",
},
}),
],
});
export const team = plan({
id: "team",
name: "Team",
addOn: false,
autoEnable: false,
price: {
amount: 49,
interval: "month",
},
items: [
item({
featureId: executions.id,
included: 250000,
price: {
amount: 0.2,
billingUnits: 1000,
billingMethod: "usage_based",
interval: "month",
},
}),
item({
featureId: domainVerification.id,
}),
],
});