@todesktop/shared 7.183.0 → 7.184.1
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/.github/workflows/main.yml +21 -7
- package/lib/toDesktop.d.ts +4 -0
- package/package.json +1 -1
- package/src/toDesktop.ts +6 -0
|
@@ -1,16 +1,30 @@
|
|
|
1
1
|
on:
|
|
2
2
|
push:
|
|
3
3
|
branches:
|
|
4
|
-
-
|
|
4
|
+
- td-1948-release-todesktop-shared-types-when
|
|
5
5
|
|
|
6
6
|
jobs:
|
|
7
7
|
release:
|
|
8
8
|
name: Release types
|
|
9
9
|
runs-on: ubuntu-latest
|
|
10
10
|
steps:
|
|
11
|
-
- uses: actions/checkout@
|
|
12
|
-
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
- uses: actions/checkout@v3
|
|
12
|
+
- uses: actions/setup-node@v3
|
|
13
|
+
- run: npm ci
|
|
14
|
+
|
|
15
|
+
- name: Bump version
|
|
16
|
+
run: |
|
|
17
|
+
current_ver="$(node -p -e "require('./package.json').version")"
|
|
18
|
+
npm_ver="$(npm view @todesktop/shared version)"
|
|
19
|
+
latest_ver="$(npx semver "${current_ver}" ${npm_ver} | tail -n 1)"
|
|
20
|
+
|
|
21
|
+
if [ "${current_ver}" != "${latest_ver}" ]; then
|
|
22
|
+
npm version "${latest_ver}" --no-git-tag-version -f
|
|
23
|
+
fi
|
|
24
|
+
|
|
25
|
+
npm version --no-git-tag-version patch
|
|
26
|
+
|
|
27
|
+
- name: Publish
|
|
28
|
+
run: |
|
|
29
|
+
npm config set '//registry.npmjs.org/:_authToken' "${{ secrets.NPM_AUTH_TOKEN }}"
|
|
30
|
+
npm publish
|
package/lib/toDesktop.d.ts
CHANGED
|
@@ -175,6 +175,10 @@ export interface IUser extends Schemable {
|
|
|
175
175
|
isOldAccountThatNeedsNewPassword?: boolean;
|
|
176
176
|
accessToken?: string;
|
|
177
177
|
isAdmin?: boolean;
|
|
178
|
+
featureFlags?: FeatureFlags;
|
|
179
|
+
}
|
|
180
|
+
export interface FeatureFlags {
|
|
181
|
+
desktopAppPlugins: boolean;
|
|
178
182
|
}
|
|
179
183
|
export interface UserIHaveSentInviteTo {
|
|
180
184
|
email: string;
|
package/package.json
CHANGED
package/src/toDesktop.ts
CHANGED
|
@@ -193,6 +193,12 @@ export interface IUser extends Schemable {
|
|
|
193
193
|
isOldAccountThatNeedsNewPassword?: boolean;
|
|
194
194
|
accessToken?: string;
|
|
195
195
|
isAdmin?: boolean;
|
|
196
|
+
featureFlags?: FeatureFlags;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export interface FeatureFlags {
|
|
200
|
+
// Whether the user can install desktop app plugins using the ToDesktop Builder
|
|
201
|
+
desktopAppPlugins: boolean;
|
|
196
202
|
}
|
|
197
203
|
|
|
198
204
|
// uses an `email` identifier because an invited user may not have an account
|