-
Notifications
You must be signed in to change notification settings - Fork 304
Expand file tree
/
Copy pathautumn.config.ts
More file actions
123 lines (116 loc) · 2.31 KB
/
Copy pathautumn.config.ts
File metadata and controls
123 lines (116 loc) · 2.31 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
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,
});
// Plans
export const free = plan({
id: "free",
name: "Free",
addOn: false,
autoEnable: true,
items: [
item({
featureId: members.id,
included: 3,
}),
item({
featureId: executions.id,
included: 100000,
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: 100000,
price: {
amount: 0.2,
billingUnits: 1000,
billingMethod: "usage_based",
interval: "month",
},
}),
],
});
export const team = plan({
id: "team",
name: "Team",
addOn: false,
autoEnable: false,
freeTrial: {
durationLength: 14,
durationType: "day",
cardRequired: true,
},
items: [
// Billed in arrears on the seat count the app reports (active members
// only — see apps/cloud/src/extensions/billing/member-seats.ts).
item({
featureId: members.id,
included: 0,
price: {
amount: 15,
billingUnits: 1,
billingMethod: "usage_based",
interval: "month",
},
}),
item({
featureId: executions.id,
unlimited: true,
reset: {
interval: "month",
},
}),
item({
featureId: domainVerification.id,
}),
],
});
export const enterprise = plan({
id: "enterprise",
name: "Enterprise",
addOn: false,
autoEnable: false,
items: [
// Seat usage is tracked for visibility; pricing is set per contract at
// attach time, so the plan itself carries no price.
item({
featureId: members.id,
unlimited: true,
}),
item({
featureId: executions.id,
unlimited: true,
reset: {
interval: "month",
},
}),
item({
featureId: domainVerification.id,
}),
],
});