@todesktop/shared 7.188.55 → 7.188.57

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.
@@ -390,9 +390,13 @@ export interface DesktopifyApp2<Plugin = DesktopAppPlugin> {
390
390
  */
391
391
  shouldMakeSameDomainAnExternalLink?: boolean;
392
392
  /**
393
- * Enables push notifications
393
+ * Enables push notifications — uses `electron-push-receiver`
394
394
  */
395
395
  enablePushNotifications?: boolean;
396
+ /**
397
+ * Enables NEW push notifications — uses `@cuj1559/electron-push-receiver`
398
+ */
399
+ enableNewPushNotifications?: boolean;
396
400
  /**
397
401
  * Disable error reporting (Sentry)
398
402
  */
package/lib/plans.d.ts CHANGED
@@ -221,3 +221,13 @@ export declare const getEnterprisePlanIds: (stage: 'dev' | 'prod') => Pick<{
221
221
  builder_professional: string;
222
222
  enterprise: string;
223
223
  }, "enterprise">;
224
+ export declare enum PortalConfigKey {
225
+ CLIUpdateDev = "cli_update_dev",
226
+ CLIUpdateProd = "cli_update_prod",
227
+ CLIUpgradeDev = "cli_upgrade_dev",
228
+ CLIUpgradeProd = "cli_upgrade_prod",
229
+ BuilderUpdateDev = "builder_update_dev",
230
+ BuilderUpdateProd = "builder_update_prod",
231
+ BuilderUpgradeDev = "builder_upgrade_dev",
232
+ BuilderUpgradeProd = "builder_upgrade_prod"
233
+ }
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.getBuilderProfessionalPlanIds = exports.getBuilderEssentialPlanIds = exports.getBuilderPlanIds = exports.getCLIScalePlanIds = exports.getCLIPerformancePlanIds = exports.getCLIFounderPlanIds = exports.getCLIPlanIds = exports.getPlanEnvironment = exports.prodPlanIds = exports.devPlanIds = void 0;
3
+ exports.PortalConfigKey = 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) => {
@@ -87,3 +87,14 @@ exports.getEnterprisePlanIds = (stage) => {
87
87
  const planIds = exports.getPlanEnvironment(stage);
88
88
  return pick(planIds, 'enterprise');
89
89
  };
90
+ var PortalConfigKey;
91
+ (function (PortalConfigKey) {
92
+ PortalConfigKey["CLIUpdateDev"] = "cli_update_dev";
93
+ PortalConfigKey["CLIUpdateProd"] = "cli_update_prod";
94
+ PortalConfigKey["CLIUpgradeDev"] = "cli_upgrade_dev";
95
+ PortalConfigKey["CLIUpgradeProd"] = "cli_upgrade_prod";
96
+ PortalConfigKey["BuilderUpdateDev"] = "builder_update_dev";
97
+ PortalConfigKey["BuilderUpdateProd"] = "builder_update_prod";
98
+ PortalConfigKey["BuilderUpgradeDev"] = "builder_upgrade_dev";
99
+ PortalConfigKey["BuilderUpgradeProd"] = "builder_upgrade_prod";
100
+ })(PortalConfigKey = exports.PortalConfigKey || (exports.PortalConfigKey = {}));
@@ -142,6 +142,7 @@ export interface IUser extends Schemable {
142
142
  disableShouldCodeSign?: boolean;
143
143
  allowedIPs?: string[];
144
144
  seenReleaseTutorial?: boolean;
145
+ seenApplicationGroupsTutorial?: boolean;
145
146
  }
146
147
  export interface FeatureFlags {
147
148
  desktopAppPlugins: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@todesktop/shared",
3
- "version": "7.188.55",
3
+ "version": "7.188.57",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -525,9 +525,13 @@ export interface DesktopifyApp2<Plugin = DesktopAppPlugin> {
525
525
  */
526
526
  shouldMakeSameDomainAnExternalLink?: boolean;
527
527
  /**
528
- * Enables push notifications
528
+ * Enables push notifications — uses `electron-push-receiver`
529
529
  */
530
530
  enablePushNotifications?: boolean;
531
+ /**
532
+ * Enables NEW push notifications — uses `@cuj1559/electron-push-receiver`
533
+ */
534
+ enableNewPushNotifications?: boolean;
531
535
  /**
532
536
  * Disable error reporting (Sentry)
533
537
  */
package/src/plans.ts CHANGED
@@ -113,3 +113,14 @@ export const getEnterprisePlanIds = (stage: 'dev' | 'prod') => {
113
113
  const planIds = getPlanEnvironment(stage);
114
114
  return pick(planIds, 'enterprise');
115
115
  };
116
+
117
+ export enum PortalConfigKey {
118
+ CLIUpdateDev = 'cli_update_dev',
119
+ CLIUpdateProd = 'cli_update_prod',
120
+ CLIUpgradeDev = 'cli_upgrade_dev',
121
+ CLIUpgradeProd = 'cli_upgrade_prod',
122
+ BuilderUpdateDev = 'builder_update_dev',
123
+ BuilderUpdateProd = 'builder_update_prod',
124
+ BuilderUpgradeDev = 'builder_upgrade_dev',
125
+ BuilderUpgradeProd = 'builder_upgrade_prod',
126
+ }
package/src/toDesktop.ts CHANGED
@@ -157,6 +157,7 @@ export interface IUser extends Schemable {
157
157
  disableShouldCodeSign?: boolean;
158
158
  allowedIPs?: string[];
159
159
  seenReleaseTutorial?: boolean;
160
+ seenApplicationGroupsTutorial?: boolean;
160
161
  }
161
162
 
162
163
  export interface FeatureFlags {