@todesktop/shared 7.103.0 → 7.106.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/base.d.ts CHANGED
@@ -136,4 +136,18 @@ export interface BaseApp extends Schemable {
136
136
  itemId: string;
137
137
  planId: string;
138
138
  };
139
+ shouldCreate32BitWindowsArtifacts?: boolean;
140
+ shouldCreateArm64WindowsArtifacts?: boolean;
141
+ shouldCreateAppXFiles?: boolean;
142
+ shouldCreateAppImages?: boolean;
143
+ shouldCreateDebianPackages?: boolean;
144
+ shouldCreateDMGs?: boolean;
145
+ shouldCreateAppleSiliconAssets?: boolean;
146
+ shouldCreateMacZipInstallers?: boolean;
147
+ shouldCreateMSIInstallers?: boolean;
148
+ shouldCreateNSISInstallers?: boolean;
149
+ shouldCreateNSISWebInstaller?: boolean;
150
+ shouldCreateRPMPackages?: boolean;
151
+ shouldCreateSnapFiles?: boolean;
152
+ shouldCreateMacUniversalInstaller?: boolean;
139
153
  }
@@ -66,12 +66,14 @@ export interface PlatformBuild {
66
66
  startedAt: ISODate;
67
67
  status: BuildStatus;
68
68
  }
69
+ export declare type CIRunner = "circle" | "azure";
69
70
  export interface Build {
70
71
  appCustomDomain?: string;
71
72
  appName: string;
72
73
  appNotarizaionBundleId: string;
73
74
  appVersion?: SemanticVersion;
74
75
  buildServerExecutionId?: number;
76
+ ciRunner?: CIRunner;
75
77
  cliConfigSchemaVersion: number;
76
78
  continuousIntegrationServiceName?: string;
77
79
  commitId?: string;
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);
@@ -146,20 +146,6 @@ export interface IApp extends BaseApp {
146
146
  nsisConfig?: Partial<IAppBuilderLib["config"]["nsis"]>;
147
147
  runtimeEnvs?: string;
148
148
  secret?: string;
149
- shouldCreate32BitWindowsArtifacts?: boolean;
150
- shouldCreateArm64WindowsArtifacts?: boolean;
151
- shouldCreateAppXFiles?: boolean;
152
- shouldCreateAppImages?: boolean;
153
- shouldCreateDebianPackages?: boolean;
154
- shouldCreateDMGs?: boolean;
155
- shouldCreateAppleSiliconAssets?: boolean;
156
- shouldCreateMacZipInstallers?: boolean;
157
- shouldCreateMSIInstallers?: boolean;
158
- shouldCreateNSISInstallers?: boolean;
159
- shouldCreateNSISWebInstaller?: boolean;
160
- shouldCreateRPMPackages?: boolean;
161
- shouldCreateSnapFiles?: boolean;
162
- shouldCreateMacUniversalInstaller?: boolean;
163
149
  shouldLaunchAtStartupByDefault?: boolean;
164
150
  shouldOnlySendAbsolutelyNecessaryRequests?: boolean;
165
151
  shouldReuseRendererProcess?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@todesktop/shared",
3
- "version": "7.103.0",
3
+ "version": "7.106.0",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
package/src/base.ts CHANGED
@@ -144,4 +144,18 @@ export interface BaseApp extends Schemable {
144
144
  itemId: string;
145
145
  planId: string;
146
146
  };
147
+ shouldCreate32BitWindowsArtifacts?: boolean;
148
+ shouldCreateArm64WindowsArtifacts?: boolean;
149
+ shouldCreateAppXFiles?: boolean;
150
+ shouldCreateAppImages?: boolean;
151
+ shouldCreateDebianPackages?: boolean;
152
+ shouldCreateDMGs?: boolean;
153
+ shouldCreateAppleSiliconAssets?: boolean;
154
+ shouldCreateMacZipInstallers?: boolean;
155
+ shouldCreateMSIInstallers?: boolean;
156
+ shouldCreateNSISInstallers?: boolean;
157
+ shouldCreateNSISWebInstaller?: boolean;
158
+ shouldCreateRPMPackages?: boolean;
159
+ shouldCreateSnapFiles?: boolean;
160
+ shouldCreateMacUniversalInstaller?: boolean;
147
161
  }
package/src/desktopify.ts CHANGED
@@ -98,12 +98,15 @@ export interface PlatformBuild {
98
98
  status: BuildStatus;
99
99
  }
100
100
 
101
+ export type CIRunner = "circle" | "azure";
102
+
101
103
  export interface Build {
102
104
  appCustomDomain?: string;
103
105
  appName: string;
104
106
  appNotarizaionBundleId: string;
105
107
  appVersion?: SemanticVersion;
106
108
  buildServerExecutionId?: number;
109
+ ciRunner?: CIRunner;
107
110
  cliConfigSchemaVersion: number;
108
111
  continuousIntegrationServiceName?: string;
109
112
  commitId?: string;
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
@@ -166,20 +166,6 @@ export interface IApp extends BaseApp {
166
166
  nsisConfig?: Partial<IAppBuilderLib["config"]["nsis"]>;
167
167
  runtimeEnvs?: string;
168
168
  secret?: string; // support old schema versions
169
- shouldCreate32BitWindowsArtifacts?: boolean;
170
- shouldCreateArm64WindowsArtifacts?: boolean;
171
- shouldCreateAppXFiles?: boolean;
172
- shouldCreateAppImages?: boolean;
173
- shouldCreateDebianPackages?: boolean;
174
- shouldCreateDMGs?: boolean;
175
- shouldCreateAppleSiliconAssets?: boolean;
176
- shouldCreateMacZipInstallers?: boolean;
177
- shouldCreateMSIInstallers?: boolean;
178
- shouldCreateNSISInstallers?: boolean;
179
- shouldCreateNSISWebInstaller?: boolean;
180
- shouldCreateRPMPackages?: boolean;
181
- shouldCreateSnapFiles?: boolean;
182
- shouldCreateMacUniversalInstaller?: boolean;
183
169
  shouldLaunchAtStartupByDefault?: boolean;
184
170
  shouldOnlySendAbsolutelyNecessaryRequests?: boolean;
185
171
  shouldReuseRendererProcess?: boolean;