@todesktop/shared 7.137.0 → 7.139.0

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/lib/plans.d.ts CHANGED
@@ -11,6 +11,8 @@ export declare const devPlanIds: {
11
11
  cli_founder_50: string;
12
12
  cli_performance: string;
13
13
  cli_scale: string;
14
+ builder_essential: string;
15
+ builder_professional: string;
14
16
  enterprise: string;
15
17
  };
16
18
  export declare const prodPlanIds: {
@@ -27,6 +29,8 @@ export declare const prodPlanIds: {
27
29
  cli_founder_50: string;
28
30
  cli_performance: string;
29
31
  cli_scale: string;
32
+ builder_essential: string;
33
+ builder_professional: string;
30
34
  enterprise: string;
31
35
  };
32
36
  export declare type PlanIds = typeof prodPlanIds;
@@ -43,6 +47,8 @@ export declare const getPlanEnvironment: (stage: "dev" | "prod") => {
43
47
  cli_founder_50: string;
44
48
  cli_performance: string;
45
49
  cli_scale: string;
50
+ builder_essential: string;
51
+ builder_professional: string;
46
52
  enterprise: string;
47
53
  };
48
54
  export declare const getCLIPlanIds: (stage: "dev" | "prod") => Pick<{
@@ -58,6 +64,8 @@ export declare const getCLIPlanIds: (stage: "dev" | "prod") => Pick<{
58
64
  cli_founder_50: string;
59
65
  cli_performance: string;
60
66
  cli_scale: string;
67
+ builder_essential: string;
68
+ builder_professional: string;
61
69
  enterprise: string;
62
70
  }, "cli_founder" | "cli_founder_30" | "cli_founder_50" | "cli_performance" | "cli_scale">;
63
71
  export declare const getCLIFounderPlanIds: (stage: "dev" | "prod") => Pick<{
@@ -73,6 +81,8 @@ export declare const getCLIFounderPlanIds: (stage: "dev" | "prod") => Pick<{
73
81
  cli_founder_50: string;
74
82
  cli_performance: string;
75
83
  cli_scale: string;
84
+ builder_essential: string;
85
+ builder_professional: string;
76
86
  enterprise: string;
77
87
  }, "cli_founder" | "cli_founder_30" | "cli_founder_50">;
78
88
  export declare const getCLIPerformancePlanIds: (stage: "dev" | "prod") => Pick<{
@@ -88,6 +98,8 @@ export declare const getCLIPerformancePlanIds: (stage: "dev" | "prod") => Pick<{
88
98
  cli_founder_50: string;
89
99
  cli_performance: string;
90
100
  cli_scale: string;
101
+ builder_essential: string;
102
+ builder_professional: string;
91
103
  enterprise: string;
92
104
  }, "cli_performance">;
93
105
  export declare const getCLIScalePlanIds: (stage: "dev" | "prod") => Pick<{
@@ -103,8 +115,61 @@ export declare const getCLIScalePlanIds: (stage: "dev" | "prod") => Pick<{
103
115
  cli_founder_50: string;
104
116
  cli_performance: string;
105
117
  cli_scale: string;
118
+ builder_essential: string;
119
+ builder_professional: string;
106
120
  enterprise: string;
107
121
  }, "cli_scale">;
122
+ export declare const getBuilderPlanIds: (stage: "dev" | "prod") => Pick<{
123
+ startup: string;
124
+ business: string;
125
+ essential: string;
126
+ growth: string;
127
+ essential_new: string;
128
+ professional: string;
129
+ professional_annual: string;
130
+ cli_founder: string;
131
+ cli_founder_30: string;
132
+ cli_founder_50: string;
133
+ cli_performance: string;
134
+ cli_scale: string;
135
+ builder_essential: string;
136
+ builder_professional: string;
137
+ enterprise: string;
138
+ }, "builder_essential" | "builder_professional">;
139
+ export declare const getBuilderEssentialPlanIds: (stage: "dev" | "prod") => Pick<{
140
+ startup: string;
141
+ business: string;
142
+ essential: string;
143
+ growth: string;
144
+ essential_new: string;
145
+ professional: string;
146
+ professional_annual: string;
147
+ cli_founder: string;
148
+ cli_founder_30: string;
149
+ cli_founder_50: string;
150
+ cli_performance: string;
151
+ cli_scale: string;
152
+ builder_essential: string;
153
+ builder_professional: string;
154
+ enterprise: string;
155
+ }, "builder_essential">;
156
+ export declare const getBuilderProfessionalPlanIds: (stage: "dev" | "prod") => Pick<{
157
+ startup: string;
158
+ business: string;
159
+ essential: string;
160
+ growth: string;
161
+ essential_new: string;
162
+ professional: string;
163
+ professional_annual: string;
164
+ cli_founder: string;
165
+ cli_founder_30: string;
166
+ cli_founder_50: string;
167
+ cli_performance: string;
168
+ cli_scale: string;
169
+ builder_essential: string;
170
+ builder_professional: string;
171
+ enterprise: string;
172
+ }, "builder_professional">;
108
173
  export declare const getEssentialPlanIds: (stage: "dev" | "prod") => Pick<{
109
174
  startup: string;
110
175
  business: string;
@@ -118,6 +183,8 @@ export declare const getEssentialPlanIds: (stage: "dev" | "prod") => Pick<{
118
183
  cli_founder_50: string;
119
184
  cli_performance: string;
120
185
  cli_scale: string;
186
+ builder_essential: string;
187
+ builder_professional: string;
121
188
  enterprise: string;
122
189
  }, "startup" | "essential" | "essential_new">;
123
190
  export declare const getProfessionalPlanIds: (stage: "dev" | "prod") => Pick<{
@@ -133,6 +200,8 @@ export declare const getProfessionalPlanIds: (stage: "dev" | "prod") => Pick<{
133
200
  cli_founder_50: string;
134
201
  cli_performance: string;
135
202
  cli_scale: string;
203
+ builder_essential: string;
204
+ builder_professional: string;
136
205
  enterprise: string;
137
206
  }, "business" | "growth" | "professional" | "professional_annual">;
138
207
  export declare const getEnterprisePlanIds: (stage: "dev" | "prod") => Pick<{
@@ -148,5 +217,7 @@ export declare const getEnterprisePlanIds: (stage: "dev" | "prod") => Pick<{
148
217
  cli_founder_50: string;
149
218
  cli_performance: string;
150
219
  cli_scale: string;
220
+ builder_essential: string;
221
+ builder_professional: string;
151
222
  enterprise: string;
152
223
  }, "enterprise">;
package/lib/plans.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getEnterprisePlanIds = exports.getProfessionalPlanIds = exports.getEssentialPlanIds = exports.getCLIScalePlanIds = exports.getCLIPerformancePlanIds = exports.getCLIFounderPlanIds = exports.getCLIPlanIds = exports.getPlanEnvironment = exports.prodPlanIds = exports.devPlanIds = void 0;
3
+ exports.getEnterprisePlanIds = exports.getProfessionalPlanIds = exports.getEssentialPlanIds = exports.getBuilderProfessionalPlanIds = exports.getBuilderEssentialPlanIds = exports.getBuilderPlanIds = exports.getCLIScalePlanIds = exports.getCLIPerformancePlanIds = exports.getCLIFounderPlanIds = exports.getCLIPlanIds = exports.getPlanEnvironment = exports.prodPlanIds = exports.devPlanIds = void 0;
4
4
  function pick(objectInput, ...keys) {
5
5
  const objectOutput = {};
6
6
  keys.forEach((key) => {
@@ -21,6 +21,8 @@ exports.devPlanIds = {
21
21
  cli_founder_50: "plan_GsL6VYAshfh7c4",
22
22
  cli_performance: "price_1L821UIewCKA2h0IUwRhicyo",
23
23
  cli_scale: "price_1L821wIewCKA2h0IMLUmjulL",
24
+ builder_essential: "price_1M4o9XIewCKA2h0IVfGrid8E",
25
+ builder_professional: "price_1M4o9vIewCKA2h0IHREokdD8",
24
26
  enterprise: "price_1H2v6JIewCKA2h0IgUwsuctb",
25
27
  };
26
28
  exports.prodPlanIds = {
@@ -37,6 +39,8 @@ exports.prodPlanIds = {
37
39
  cli_founder_50: "plan_GsL1IRUwpj5CIF",
38
40
  cli_performance: "price_1L822LIewCKA2h0I5JYyOG1p",
39
41
  cli_scale: "price_1L822RIewCKA2h0IPt9f2nZM",
42
+ builder_essential: "price_1M4oA4IewCKA2h0IWgfbSJBe",
43
+ builder_professional: "price_1M4oABIewCKA2h0INkbaCbIS",
40
44
  enterprise: "plan_GuGICX6nRtDthN",
41
45
  };
42
46
  exports.getPlanEnvironment = (stage) => stage === "prod" ? exports.prodPlanIds : exports.devPlanIds;
@@ -58,6 +62,19 @@ exports.getCLIScalePlanIds = (stage) => {
58
62
  return pick(planIds, "cli_scale");
59
63
  };
60
64
  /* ToDesktop Builder Plans */
65
+ exports.getBuilderPlanIds = (stage) => {
66
+ const planIds = exports.getPlanEnvironment(stage);
67
+ return pick(planIds, "builder_essential", "builder_professional");
68
+ };
69
+ exports.getBuilderEssentialPlanIds = (stage) => {
70
+ const planIds = exports.getPlanEnvironment(stage);
71
+ return pick(planIds, "builder_essential");
72
+ };
73
+ exports.getBuilderProfessionalPlanIds = (stage) => {
74
+ const planIds = exports.getPlanEnvironment(stage);
75
+ return pick(planIds, "builder_professional");
76
+ };
77
+ /* ToDesktop Web Plans */
61
78
  exports.getEssentialPlanIds = (stage) => {
62
79
  const planIds = exports.getPlanEnvironment(stage);
63
80
  return pick(planIds, "startup", "essential", "essential_new");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@todesktop/shared",
3
- "version": "7.137.0",
3
+ "version": "7.139.0",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
package/src/plans.ts CHANGED
@@ -19,6 +19,8 @@ export const devPlanIds = {
19
19
  cli_founder_50: "plan_GsL6VYAshfh7c4",
20
20
  cli_performance: "price_1L821UIewCKA2h0IUwRhicyo",
21
21
  cli_scale: "price_1L821wIewCKA2h0IMLUmjulL",
22
+ builder_essential: "price_1M4o9XIewCKA2h0IVfGrid8E",
23
+ builder_professional: "price_1M4o9vIewCKA2h0IHREokdD8",
22
24
  enterprise: "price_1H2v6JIewCKA2h0IgUwsuctb",
23
25
  };
24
26
 
@@ -36,6 +38,8 @@ export const prodPlanIds = {
36
38
  cli_founder_50: "plan_GsL1IRUwpj5CIF",
37
39
  cli_performance: "price_1L822LIewCKA2h0I5JYyOG1p",
38
40
  cli_scale: "price_1L822RIewCKA2h0IPt9f2nZM",
41
+ builder_essential: "price_1M4oA4IewCKA2h0IWgfbSJBe",
42
+ builder_professional: "price_1M4oABIewCKA2h0INkbaCbIS",
39
43
  enterprise: "plan_GuGICX6nRtDthN",
40
44
  };
41
45
 
@@ -73,6 +77,22 @@ export const getCLIScalePlanIds = (stage: "dev" | "prod") => {
73
77
  };
74
78
 
75
79
  /* ToDesktop Builder Plans */
80
+ export const getBuilderPlanIds = (stage: "dev" | "prod") => {
81
+ const planIds = getPlanEnvironment(stage);
82
+ return pick(planIds, "builder_essential", "builder_professional");
83
+ };
84
+
85
+ export const getBuilderEssentialPlanIds = (stage: "dev" | "prod") => {
86
+ const planIds = getPlanEnvironment(stage);
87
+ return pick(planIds, "builder_essential");
88
+ };
89
+
90
+ export const getBuilderProfessionalPlanIds = (stage: "dev" | "prod") => {
91
+ const planIds = getPlanEnvironment(stage);
92
+ return pick(planIds, "builder_professional");
93
+ };
94
+
95
+ /* ToDesktop Web Plans */
76
96
  export const getEssentialPlanIds = (stage: "dev" | "prod") => {
77
97
  const planIds = getPlanEnvironment(stage);
78
98
  return pick(planIds, "startup", "essential", "essential_new");