@todesktop/shared 7.101.0 → 7.104.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.
@@ -34,7 +34,7 @@ export declare type Arch = "ia32" | "x64" | "arm64";
34
34
  export declare type MacArch = "ia32" | "x64" | "arm64" | "universal";
35
35
  export declare type LinuxArtifactName = "appImage" | "deb" | "rpm" | "snap";
36
36
  export declare type MacArtifactName = "dmg" | "zip" | "installer";
37
- export declare type WindowsArtifactName = "msi" | "nsis" | "appx";
37
+ export declare type WindowsArtifactName = "msi" | "nsis" | "nsis-web" | "appx";
38
38
  declare type ArtifactDownload = Record<Arch, {
39
39
  size: number;
40
40
  standardUrl: URL;
package/lib/plans.d.ts CHANGED
@@ -9,6 +9,8 @@ export declare const devPlanIds: {
9
9
  cli_founder: string;
10
10
  cli_founder_30: string;
11
11
  cli_founder_50: string;
12
+ cli_performance: string;
13
+ cli_scale: string;
12
14
  enterprise: string;
13
15
  };
14
16
  export declare const prodPlanIds: {
@@ -23,6 +25,8 @@ export declare const prodPlanIds: {
23
25
  cli_founder: string;
24
26
  cli_founder_30: string;
25
27
  cli_founder_50: string;
28
+ cli_performance: string;
29
+ cli_scale: string;
26
30
  enterprise: string;
27
31
  };
28
32
  export declare type PlanIds = typeof prodPlanIds;
@@ -37,9 +41,11 @@ export declare const getPlanEnvironment: (stage: "dev" | "prod") => {
37
41
  cli_founder: string;
38
42
  cli_founder_30: string;
39
43
  cli_founder_50: string;
44
+ cli_performance: string;
45
+ cli_scale: string;
40
46
  enterprise: string;
41
47
  };
42
- export declare const getEssentialPlanIds: (stage: "dev" | "prod") => Pick<{
48
+ export declare const getCLIPlanIds: (stage: "dev" | "prod") => Pick<{
43
49
  startup: string;
44
50
  business: string;
45
51
  essential: string;
@@ -50,9 +56,11 @@ export declare const getEssentialPlanIds: (stage: "dev" | "prod") => Pick<{
50
56
  cli_founder: string;
51
57
  cli_founder_30: string;
52
58
  cli_founder_50: string;
59
+ cli_performance: string;
60
+ cli_scale: string;
53
61
  enterprise: string;
54
- }, "startup" | "essential" | "essential_new">;
55
- export declare const getCLIPlanIds: (stage: "dev" | "prod") => Pick<{
62
+ }, "cli_founder" | "cli_founder_30" | "cli_founder_50" | "cli_performance" | "cli_scale">;
63
+ export declare const getCLIFounderPlanIds: (stage: "dev" | "prod") => Pick<{
56
64
  startup: string;
57
65
  business: string;
58
66
  essential: string;
@@ -63,8 +71,55 @@ export declare const getCLIPlanIds: (stage: "dev" | "prod") => Pick<{
63
71
  cli_founder: string;
64
72
  cli_founder_30: string;
65
73
  cli_founder_50: string;
74
+ cli_performance: string;
75
+ cli_scale: string;
66
76
  enterprise: string;
67
77
  }, "cli_founder" | "cli_founder_30" | "cli_founder_50">;
78
+ export declare const getCLIPerformancePlanIds: (stage: "dev" | "prod") => Pick<{
79
+ startup: string;
80
+ business: string;
81
+ essential: string;
82
+ growth: string;
83
+ essential_new: string;
84
+ professional: string;
85
+ professional_annual: string;
86
+ cli_founder: string;
87
+ cli_founder_30: string;
88
+ cli_founder_50: string;
89
+ cli_performance: string;
90
+ cli_scale: string;
91
+ enterprise: string;
92
+ }, "cli_performance">;
93
+ export declare const getCLIScalePlanIds: (stage: "dev" | "prod") => Pick<{
94
+ startup: string;
95
+ business: string;
96
+ essential: string;
97
+ growth: string;
98
+ essential_new: string;
99
+ professional: string;
100
+ professional_annual: string;
101
+ cli_founder: string;
102
+ cli_founder_30: string;
103
+ cli_founder_50: string;
104
+ cli_performance: string;
105
+ cli_scale: string;
106
+ enterprise: string;
107
+ }, "cli_scale">;
108
+ export declare const getEssentialPlanIds: (stage: "dev" | "prod") => Pick<{
109
+ startup: string;
110
+ business: string;
111
+ essential: string;
112
+ growth: string;
113
+ essential_new: string;
114
+ professional: string;
115
+ professional_annual: string;
116
+ cli_founder: string;
117
+ cli_founder_30: string;
118
+ cli_founder_50: string;
119
+ cli_performance: string;
120
+ cli_scale: string;
121
+ enterprise: string;
122
+ }, "startup" | "essential" | "essential_new">;
68
123
  export declare const getProfessionalPlanIds: (stage: "dev" | "prod") => Pick<{
69
124
  startup: string;
70
125
  business: string;
@@ -76,8 +131,10 @@ export declare const getProfessionalPlanIds: (stage: "dev" | "prod") => Pick<{
76
131
  cli_founder: string;
77
132
  cli_founder_30: string;
78
133
  cli_founder_50: string;
134
+ cli_performance: string;
135
+ cli_scale: string;
79
136
  enterprise: string;
80
- }, "business" | "growth" | "professional" | "professional_annual" | "cli_founder" | "cli_founder_30" | "cli_founder_50">;
137
+ }, "business" | "growth" | "professional" | "professional_annual">;
81
138
  export declare const getEnterprisePlanIds: (stage: "dev" | "prod") => Pick<{
82
139
  startup: string;
83
140
  business: string;
@@ -89,5 +146,7 @@ export declare const getEnterprisePlanIds: (stage: "dev" | "prod") => Pick<{
89
146
  cli_founder: string;
90
147
  cli_founder_30: string;
91
148
  cli_founder_50: string;
149
+ cli_performance: string;
150
+ cli_scale: string;
92
151
  enterprise: string;
93
152
  }, "enterprise">;
package/lib/plans.js CHANGED
@@ -18,6 +18,8 @@ exports.devPlanIds = {
18
18
  cli_founder: "plan_Gq0FzdmoTJshQL",
19
19
  cli_founder_30: "plan_GsL7NZskOY0TC9",
20
20
  cli_founder_50: "plan_GsL6VYAshfh7c4",
21
+ cli_performance: "price_1L821UIewCKA2h0IUwRhicyo",
22
+ cli_scale: "price_1L821wIewCKA2h0IMLUmjulL",
21
23
  enterprise: "price_1H2v6JIewCKA2h0IgUwsuctb",
22
24
  };
23
25
  exports.prodPlanIds = {
@@ -32,20 +34,36 @@ exports.prodPlanIds = {
32
34
  cli_founder: "plan_GpzWZLfsOzjrvI",
33
35
  cli_founder_30: "plan_GsL1IRUwpj5CIF",
34
36
  cli_founder_50: "plan_GsL1IRUwpj5CIF",
37
+ cli_performance: "price_1L822LIewCKA2h0I5JYyOG1p",
38
+ cli_scale: "price_1L822RIewCKA2h0IPt9f2nZM",
35
39
  enterprise: "plan_GuGICX6nRtDthN",
36
40
  };
37
41
  exports.getPlanEnvironment = (stage) => stage === "prod" ? exports.prodPlanIds : exports.devPlanIds;
38
- exports.getEssentialPlanIds = (stage) => {
42
+ /* ToDesktop CLI Plans */
43
+ exports.getCLIPlanIds = (stage) => {
39
44
  const planIds = exports.getPlanEnvironment(stage);
40
- return pick(planIds, "startup", "essential", "essential_new");
45
+ return pick(planIds, "cli_founder", "cli_founder_30", "cli_founder_50", "cli_performance", "cli_scale");
41
46
  };
42
- exports.getCLIPlanIds = (stage) => {
47
+ exports.getCLIFounderPlanIds = (stage) => {
43
48
  const planIds = exports.getPlanEnvironment(stage);
44
49
  return pick(planIds, "cli_founder", "cli_founder_30", "cli_founder_50");
45
50
  };
51
+ exports.getCLIPerformancePlanIds = (stage) => {
52
+ const planIds = exports.getPlanEnvironment(stage);
53
+ return pick(planIds, "cli_performance");
54
+ };
55
+ exports.getCLIScalePlanIds = (stage) => {
56
+ const planIds = exports.getPlanEnvironment(stage);
57
+ return pick(planIds, "cli_scale");
58
+ };
59
+ /* ToDesktop Builder Plans */
60
+ exports.getEssentialPlanIds = (stage) => {
61
+ const planIds = exports.getPlanEnvironment(stage);
62
+ return pick(planIds, "startup", "essential", "essential_new");
63
+ };
46
64
  exports.getProfessionalPlanIds = (stage) => {
47
65
  const planIds = exports.getPlanEnvironment(stage);
48
- return pick(planIds, "business", "growth", "professional", "professional_annual", "cli_founder", "cli_founder_30", "cli_founder_50");
66
+ return pick(planIds, "business", "growth", "professional", "professional_annual");
49
67
  };
50
68
  exports.getEnterprisePlanIds = (stage) => {
51
69
  const planIds = exports.getPlanEnvironment(stage);
@@ -156,6 +156,7 @@ export interface IApp extends BaseApp {
156
156
  shouldCreateMacZipInstallers?: boolean;
157
157
  shouldCreateMSIInstallers?: boolean;
158
158
  shouldCreateNSISInstallers?: boolean;
159
+ shouldCreateNSISWebInstaller?: boolean;
159
160
  shouldCreateRPMPackages?: boolean;
160
161
  shouldCreateSnapFiles?: boolean;
161
162
  shouldCreateMacUniversalInstaller?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@todesktop/shared",
3
- "version": "7.101.0",
3
+ "version": "7.104.0",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
package/src/desktopify.ts CHANGED
@@ -50,7 +50,7 @@ export type Arch = "ia32" | "x64" | "arm64";
50
50
  export type MacArch = "ia32" | "x64" | "arm64" | "universal";
51
51
  export type LinuxArtifactName = "appImage" | "deb" | "rpm" | "snap";
52
52
  export type MacArtifactName = "dmg" | "zip" | "installer";
53
- export type WindowsArtifactName = "msi" | "nsis" | "appx";
53
+ export type WindowsArtifactName = "msi" | "nsis" | "nsis-web" | "appx";
54
54
 
55
55
  type ArtifactDownload = Record<
56
56
  Arch,
package/src/plans.ts CHANGED
@@ -17,6 +17,8 @@ export const devPlanIds = {
17
17
  cli_founder: "plan_Gq0FzdmoTJshQL",
18
18
  cli_founder_30: "plan_GsL7NZskOY0TC9",
19
19
  cli_founder_50: "plan_GsL6VYAshfh7c4",
20
+ cli_performance: "price_1L821UIewCKA2h0IUwRhicyo",
21
+ cli_scale: "price_1L821wIewCKA2h0IMLUmjulL",
20
22
  enterprise: "price_1H2v6JIewCKA2h0IgUwsuctb",
21
23
  };
22
24
 
@@ -32,6 +34,8 @@ export const prodPlanIds = {
32
34
  cli_founder: "plan_GpzWZLfsOzjrvI",
33
35
  cli_founder_30: "plan_GsL1IRUwpj5CIF",
34
36
  cli_founder_50: "plan_GsL1IRUwpj5CIF",
37
+ cli_performance: "price_1L822LIewCKA2h0I5JYyOG1p",
38
+ cli_scale: "price_1L822RIewCKA2h0IPt9f2nZM",
35
39
  enterprise: "plan_GuGICX6nRtDthN",
36
40
  };
37
41
 
@@ -40,16 +44,40 @@ export type PlanIds = typeof prodPlanIds;
40
44
  export const getPlanEnvironment = (stage: "dev" | "prod") =>
41
45
  stage === "prod" ? prodPlanIds : devPlanIds;
42
46
 
43
- export const getEssentialPlanIds = (stage: "dev" | "prod") => {
47
+ /* ToDesktop CLI Plans */
48
+ export const getCLIPlanIds = (stage: "dev" | "prod") => {
44
49
  const planIds = getPlanEnvironment(stage);
45
- return pick(planIds, "startup", "essential", "essential_new");
50
+ return pick(
51
+ planIds,
52
+ "cli_founder",
53
+ "cli_founder_30",
54
+ "cli_founder_50",
55
+ "cli_performance",
56
+ "cli_scale"
57
+ );
46
58
  };
47
59
 
48
- export const getCLIPlanIds = (stage: "dev" | "prod") => {
60
+ export const getCLIFounderPlanIds = (stage: "dev" | "prod") => {
49
61
  const planIds = getPlanEnvironment(stage);
50
62
  return pick(planIds, "cli_founder", "cli_founder_30", "cli_founder_50");
51
63
  };
52
64
 
65
+ export const getCLIPerformancePlanIds = (stage: "dev" | "prod") => {
66
+ const planIds = getPlanEnvironment(stage);
67
+ return pick(planIds, "cli_performance");
68
+ };
69
+
70
+ export const getCLIScalePlanIds = (stage: "dev" | "prod") => {
71
+ const planIds = getPlanEnvironment(stage);
72
+ return pick(planIds, "cli_scale");
73
+ };
74
+
75
+ /* ToDesktop Builder Plans */
76
+ export const getEssentialPlanIds = (stage: "dev" | "prod") => {
77
+ const planIds = getPlanEnvironment(stage);
78
+ return pick(planIds, "startup", "essential", "essential_new");
79
+ };
80
+
53
81
  export const getProfessionalPlanIds = (stage: "dev" | "prod") => {
54
82
  const planIds = getPlanEnvironment(stage);
55
83
  return pick(
@@ -57,10 +85,7 @@ export const getProfessionalPlanIds = (stage: "dev" | "prod") => {
57
85
  "business",
58
86
  "growth",
59
87
  "professional",
60
- "professional_annual",
61
- "cli_founder",
62
- "cli_founder_30",
63
- "cli_founder_50"
88
+ "professional_annual"
64
89
  );
65
90
  };
66
91
 
package/src/toDesktop.ts CHANGED
@@ -176,6 +176,7 @@ export interface IApp extends BaseApp {
176
176
  shouldCreateMacZipInstallers?: boolean;
177
177
  shouldCreateMSIInstallers?: boolean;
178
178
  shouldCreateNSISInstallers?: boolean;
179
+ shouldCreateNSISWebInstaller?: boolean;
179
180
  shouldCreateRPMPackages?: boolean;
180
181
  shouldCreateSnapFiles?: boolean;
181
182
  shouldCreateMacUniversalInstaller?: boolean;