Merge remote-tracking branch 'origin/develop' into staging

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev 2024-11-11 11:56:52 +07:00
commit 654c7c126d
No known key found for this signature in database
GPG Key ID: BD80F68D68D8F7F2
10 changed files with 235 additions and 106 deletions

View File

@ -1497,11 +1497,11 @@ dependencies:
specifier: ~22.8.7
version: 22.8.8
electron:
specifier: ^32.1.1
version: 32.2.1
specifier: ^33.2.0
version: 33.2.0
electron-builder:
specifier: ^25.0.5
version: 25.0.5
specifier: ^25.1.8
version: 25.1.8
electron-context-menu:
specifier: ^4.0.4
version: 4.0.4
@ -4113,6 +4113,17 @@ packages:
- supports-color
dev: false
/@electron/notarize@2.5.0:
resolution: {integrity: sha512-jNT8nwH1f9X5GEITXaQ8IF/KdskvIkOFfB2CvwumsveVidzpSc+mvhhTMdAGSYF3O+Nq49lJ7y+ssODRXu06+A==}
engines: {node: '>= 10.0.0'}
dependencies:
debug: 4.3.5
fs-extra: 9.1.0
promise-retry: 2.0.1
transitivePeerDependencies:
- supports-color
dev: false
/@electron/osx-sign@1.3.1:
resolution: {integrity: sha512-BAfviURMHpmb1Yb50YbCxnOY0wfwaLXH5KJ4+80zS0gUkzDX3ec23naTlEqKsN+PwYn+a1cCzM7BJ4Wcd3sGzw==}
engines: {node: '>=12.0.0'}
@ -4128,8 +4139,8 @@ packages:
- supports-color
dev: false
/@electron/rebuild@3.6.0:
resolution: {integrity: sha512-zF4x3QupRU3uNGaP5X1wjpmcjfw1H87kyqZ00Tc3HvriV+4gmOGuvQjGNkrJuXdsApssdNyVwLsy+TaeTGGcVw==}
/@electron/rebuild@3.6.1:
resolution: {integrity: sha512-f6596ZHpEq/YskUd8emYvOUne89ij8mQgjYFA5ru25QwbrRO+t1SImofdDv7kKOuWCmVOuU5tvfkbgGxIl3E/w==}
engines: {node: '>=12.13.0'}
hasBin: true
dependencies:
@ -4160,7 +4171,7 @@ packages:
debug: 4.3.5
dir-compare: 4.2.0
fs-extra: 11.2.0
minimatch: 9.0.3
minimatch: 9.0.5
plist: 3.1.0
transitivePeerDependencies:
- supports-color
@ -11018,42 +11029,45 @@ packages:
tslib: 1.14.1
dev: false
/app-builder-bin@5.0.0-alpha.7:
resolution: {integrity: sha512-ww2mK4ITUvqisnqOuUWAeHzokpPidyZ7a0ZkwW+V7sF5/Pdi2OldkRjAWqEzn6Xtmj3SLVT84as4wB59A6jJ4g==}
/app-builder-bin@5.0.0-alpha.10:
resolution: {integrity: sha512-Ev4jj3D7Bo+O0GPD2NMvJl+PGiBAfS7pUGawntBNpCbxtpncfUixqFj9z9Jme7V7s3LBGqsWZZP54fxBX3JKJw==}
dev: false
/app-builder-lib@25.0.5(dmg-builder@25.0.5):
resolution: {integrity: sha512-rxgxMx1f7I4ZAP0jA5+5iB7X6x6MJvGF7GauRzQBnIVihwXX2HOiAE7yenyY9Ry5YAiH47MnCxdq413Wq6XOcQ==}
/app-builder-lib@25.1.8(dmg-builder@25.1.8):
resolution: {integrity: sha512-pCqe7dfsQFBABC1jeKZXQWhGcCPF3rPCXDdfqVKjIeWBcXzyC1iOWZdfFhGl+S9MyE/k//DFmC6FzuGAUudNDg==}
engines: {node: '>=14.0.0'}
peerDependencies:
dmg-builder: 25.0.5
electron-builder-squirrel-windows: 25.0.5
dmg-builder: 25.1.8
electron-builder-squirrel-windows: 25.1.8
dependencies:
'@develar/schema-utils': 2.6.5
'@electron/notarize': 2.3.2
'@electron/notarize': 2.5.0
'@electron/osx-sign': 1.3.1
'@electron/rebuild': 3.6.0
'@electron/rebuild': 3.6.1
'@electron/universal': 2.0.1
'@malept/flatpak-bundler': 0.4.0
'@types/fs-extra': 9.0.13
async-exit-hook: 2.0.1
bluebird-lst: 1.0.9
builder-util: 25.0.3
builder-util-runtime: 9.2.5
builder-util: 25.1.7
builder-util-runtime: 9.2.10
chromium-pickle-js: 0.2.0
config-file-ts: 0.2.8-rc1
debug: 4.3.5
dmg-builder: 25.0.5
dmg-builder: 25.1.8
dotenv: 16.4.5
dotenv-expand: 11.0.6
ejs: 3.1.9
electron-publish: 25.0.3
electron-publish: 25.1.7
form-data: 4.0.0
fs-extra: 10.1.0
hosted-git-info: 4.1.0
is-ci: 3.0.1
isbinaryfile: 5.0.2
js-yaml: 4.1.0
json5: 2.2.3
lazy-val: 1.0.5
minimatch: 10.0.1
read-config-file: 6.4.0
resedit: 1.7.1
sanitize-filename: 1.6.3
semver: 7.6.3
@ -11712,6 +11726,7 @@ packages:
/boolean@3.2.0:
resolution: {integrity: sha512-d0II/GO9uf9lfUHH2BQsjxzRJZBdsjgsBiW4BvhWk/3qoKwQFjIDVN19PfX8F2D/r9PCMTtLWjYVCFrpeYUzsw==}
deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
requiresBuild: true
dev: false
optional: true
@ -11893,6 +11908,16 @@ packages:
node-gyp-build: 4.8.0
dev: false
/builder-util-runtime@9.2.10:
resolution: {integrity: sha512-6p/gfG1RJSQeIbz8TK5aPNkoztgY1q5TgmGFMAXcY8itsGW6Y2ld1ALsZ5UJn8rog7hKF3zHx5iQbNQ8uLcRlw==}
engines: {node: '>=12.0.0'}
dependencies:
debug: 4.3.5
sax: 1.3.0
transitivePeerDependencies:
- supports-color
dev: false
/builder-util-runtime@9.2.5:
resolution: {integrity: sha512-HjIDfhvqx/8B3TDN4GbABQcgpewTU4LMRTQPkVpKYV3lsuxEJoIfvg09GyWTNmfVNSUAYf+fbTN//JX4TH20pg==}
engines: {node: '>=12.0.0'}
@ -11903,20 +11928,20 @@ packages:
- supports-color
dev: false
/builder-util@25.0.3:
resolution: {integrity: sha512-eH5c1ukdY2xjtFQWQ6jlzEuXuqcuAVc3UQ6V6fdYu9Kg3CkDbCR82Mox42uaJDmee9WXSbP/88cOworFdOHPhw==}
/builder-util@25.1.7:
resolution: {integrity: sha512-7jPjzBwEGRbwNcep0gGNpLXG9P94VA3CPAZQCzxkFXiV2GMQKlziMbY//rXPI7WKfhsvGgFXjTcXdBEwgXw9ww==}
dependencies:
7zip-bin: 5.2.0
'@types/debug': 4.1.12
app-builder-bin: 5.0.0-alpha.7
app-builder-bin: 5.0.0-alpha.10
bluebird-lst: 1.0.9
builder-util-runtime: 9.2.5
builder-util-runtime: 9.2.10
chalk: 4.1.2
cross-spawn: 7.0.3
debug: 4.3.5
fs-extra: 10.1.0
http-proxy-agent: 5.0.0
https-proxy-agent: 5.0.1
http-proxy-agent: 7.0.2
https-proxy-agent: 7.0.5
is-ci: 3.0.1
js-yaml: 4.1.0
source-map-support: 0.5.21
@ -13329,12 +13354,12 @@ packages:
path-type: 4.0.0
dev: false
/dmg-builder@25.0.5:
resolution: {integrity: sha512-ocnZV44ZqInoSFaY54fF7BlCtw+WtbrjyPrkBhaB+Ztn7GPKjmFgRbIKytifJ8h9Cib8jdFRMgjCUtkU45Y6DA==}
/dmg-builder@25.1.8:
resolution: {integrity: sha512-NoXo6Liy2heSklTI5OIZbCgXC1RzrDQsZkeEwXhdOro3FT1VBOvbubvscdPnjVuQ4AMwwv61oaH96AbiYg9EnQ==}
dependencies:
app-builder-lib: 25.0.5(dmg-builder@25.0.5)
builder-util: 25.0.3
builder-util-runtime: 9.2.5
app-builder-lib: 25.1.8(dmg-builder@25.1.8)
builder-util: 25.1.7
builder-util-runtime: 9.2.10
fs-extra: 10.1.0
iconv-lite: 0.6.3
js-yaml: 4.1.0
@ -13680,20 +13705,19 @@ packages:
- supports-color
dev: false
/electron-builder@25.0.5:
resolution: {integrity: sha512-Uj5LFRbUqNiVajsgqcwlKe+CHtwubK3hcoJsW5C2YiWodej2mmxM+LrTqga0rrWWHVMNmrcmGcS/WHpKwy6KEw==}
/electron-builder@25.1.8:
resolution: {integrity: sha512-poRgAtUHHOnlzZnc9PK4nzG53xh74wj2Jy7jkTrqZ0MWPoHGh1M2+C//hGeYdA+4K8w4yiVCNYoLXF7ySj2Wig==}
engines: {node: '>=14.0.0'}
hasBin: true
dependencies:
app-builder-lib: 25.0.5(dmg-builder@25.0.5)
builder-util: 25.0.3
builder-util-runtime: 9.2.5
app-builder-lib: 25.1.8(dmg-builder@25.1.8)
builder-util: 25.1.7
builder-util-runtime: 9.2.10
chalk: 4.1.2
dmg-builder: 25.0.5
dmg-builder: 25.1.8
fs-extra: 10.1.0
is-ci: 3.0.1
lazy-val: 1.0.5
read-config-file: 6.4.0
simple-update-notifier: 2.0.0
yargs: 17.7.2
transitivePeerDependencies:
@ -13729,12 +13753,12 @@ packages:
engines: {node: '>= 14'}
dev: false
/electron-publish@25.0.3:
resolution: {integrity: sha512-wSGm+TFK2lArswIFBPLuIRHbo945s3MCvG5y1xVC57zL/PsrElUkaGH2ERtRrcKNpaDNq77rDA9JnMJhAFJjUg==}
/electron-publish@25.1.7:
resolution: {integrity: sha512-+jbTkR9m39eDBMP4gfbqglDd6UvBC7RLh5Y0MhFSsc6UkGHj9Vj9TWobxevHYMMqmoujL11ZLjfPpMX+Pt6YEg==}
dependencies:
'@types/fs-extra': 9.0.13
builder-util: 25.0.3
builder-util-runtime: 9.2.5
builder-util: 25.1.7
builder-util-runtime: 9.2.10
chalk: 4.1.2
fs-extra: 10.1.0
lazy-val: 1.0.5
@ -13779,8 +13803,8 @@ packages:
resolution: {integrity: sha512-hWFbUk9u3fQHcKzTAcjZAN7XH9bL9oH9g20RRDU/DVDNqdMI03GzlBZfR/R8R1krYu9AT4biLqSCAxnt9LMAfA==}
dev: false
/electron@32.2.1:
resolution: {integrity: sha512-GCPI/5hU34pPcNltNpz+uylhhuTm9BM0N8RmrbVgaWBodLSmmcCkvpgN0BseKhO6IwQOPzWaovrcZ/nPIpfGaQ==}
/electron@33.2.0:
resolution: {integrity: sha512-PVw1ICAQDPsnnsmpNFX/b1i/49h67pbSPxuIENd9K9WpGO1tsRaQt+K2bmXqTuoMJsbzIc75Ce8zqtuwBPqawA==}
engines: {node: '>= 12.20.55'}
hasBin: true
requiresBuild: true
@ -21459,18 +21483,6 @@ packages:
- supports-color
dev: false
/read-config-file@6.4.0:
resolution: {integrity: sha512-uB5QOBeF84PT61GlV11OTV4jUGHAO3iDEOP6v9ygxhG6Bs9PLg7WsjNT6mtIX2G+x8lJTr4ZWNeG6LDTKkNf2Q==}
engines: {node: '>=12.0.0'}
dependencies:
config-file-ts: 0.2.8-rc1
dotenv: 16.4.5
dotenv-expand: 11.0.6
js-yaml: 4.1.0
json5: 2.2.3
lazy-val: 1.0.5
dev: false
/read-pkg-up@7.0.1:
resolution: {integrity: sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==}
engines: {node: '>=8'}
@ -27185,7 +27197,7 @@ packages:
dev: false
file:projects/desktop-1.tgz(webpack@5.90.3):
resolution: {integrity: sha512-rM1wKc4Rbw16Ur7VwAOQY55uUSOH1W6671Mhi5GKYwm93dofY7SSkNg83QD+Rt1w8SSckoKG7ScH11JYypDXNw==, tarball: file:projects/desktop-1.tgz}
resolution: {integrity: sha512-L25PjJOQ5AD4hPjxYiPkPyWDVa1jCpQysNfBCQpLULbG8kr+38/RxQiIX5RLcX4ST56vjPCGyc6tJmvpzsx/TQ==, tarball: file:projects/desktop-1.tgz}
id: file:projects/desktop-1.tgz
name: '@rush-temp/desktop-1'
version: 0.0.0
@ -27195,8 +27207,8 @@ packages:
'@vercel/webpack-asset-relocator-loader': 1.7.4
cross-env: 7.0.3
dotenv: 16.0.3
electron: 32.2.1
electron-builder: 25.0.5
electron: 33.2.0
electron-builder: 25.1.8
electron-squirrel-startup: 1.0.1
node-loader: 2.0.0(webpack@5.90.3)
typescript: 5.3.3
@ -27312,7 +27324,7 @@ packages:
dev: false
file:projects/desktop.tgz(bufferutil@4.0.8)(sass@1.71.1)(utf-8-validate@6.0.4):
resolution: {integrity: sha512-bAR3xXsPX0SRBzBNKHnhr4KdUZibYwt2pOQBKp1pcybJXnw9pwv8A7S6wYWgaG6o091zASbDD/EGvxOqZ/bdSQ==, tarball: file:projects/desktop.tgz}
resolution: {integrity: sha512-G9MTAkOtB4CKPtJZmNrcQXjaFTqn/Ek0yN3X3hXAuBhEV7Mo84fLpBjeK6KbHZZ0OIlG8oDMyYbJ32JbzYiKVQ==, tarball: file:projects/desktop.tgz}
id: file:projects/desktop.tgz
name: '@rush-temp/desktop'
version: 0.0.0
@ -27331,7 +27343,7 @@ packages:
css-loader: 5.2.7(webpack@5.90.3)
dotenv: 16.0.3
dotenv-webpack: 8.0.1(webpack@5.90.3)
electron: 32.2.1
electron: 33.2.0
electron-context-menu: 4.0.4
electron-log: 5.1.7
electron-squirrel-startup: 1.0.1

View File

@ -16,7 +16,7 @@
/******/ "use strict";
/******/ var __webpack_modules__ = ({
/***/ 657147:
/***/ 179896:
/*!*********************!*\
!*** external "fs" ***!
\*********************/
@ -26,7 +26,7 @@ module.exports = require("fs");
/***/ }),
/***/ 371017:
/***/ 16928:
/*!***********************!*\
!*** external "path" ***!
\***********************/
@ -111,9 +111,9 @@ var __webpack_exports__ = {};
!*** ./lib-esnext/scripts/install-run-rush.js ***!
\************************************************/
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! path */ 371017);
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! path */ 16928);
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fs */ 657147);
/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fs */ 179896);
/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_1__);
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
// See LICENSE in the project root for license information.

View File

@ -16,7 +16,7 @@
/******/ "use strict";
/******/ var __webpack_modules__ = ({
/***/ 679877:
/***/ 832286:
/*!************************************************!*\
!*** ./lib-esnext/utilities/npmrcUtilities.js ***!
\************************************************/
@ -24,12 +24,12 @@
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "isVariableSetInNpmrcFile": () => (/* binding */ isVariableSetInNpmrcFile),
/* harmony export */ "syncNpmrc": () => (/* binding */ syncNpmrc)
/* harmony export */ isVariableSetInNpmrcFile: () => (/* binding */ isVariableSetInNpmrcFile),
/* harmony export */ syncNpmrc: () => (/* binding */ syncNpmrc)
/* harmony export */ });
/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fs */ 657147);
/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fs */ 179896);
/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! path */ 371017);
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! path */ 16928);
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_1__);
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
// See LICENSE in the project root for license information.
@ -164,7 +164,7 @@ function isVariableSetInNpmrcFile(sourceNpmrcFolder, variableKey) {
/***/ }),
/***/ 532081:
/***/ 535317:
/*!********************************!*\
!*** external "child_process" ***!
\********************************/
@ -174,7 +174,7 @@ module.exports = require("child_process");
/***/ }),
/***/ 657147:
/***/ 179896:
/*!*********************!*\
!*** external "fs" ***!
\*********************/
@ -184,7 +184,7 @@ module.exports = require("fs");
/***/ }),
/***/ 822037:
/***/ 370857:
/*!*********************!*\
!*** external "os" ***!
\*********************/
@ -194,7 +194,7 @@ module.exports = require("os");
/***/ }),
/***/ 371017:
/***/ 16928:
/*!***********************!*\
!*** external "path" ***!
\***********************/
@ -280,21 +280,21 @@ var __webpack_exports__ = {};
\*******************************************/
__webpack_require__.r(__webpack_exports__);
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ "RUSH_JSON_FILENAME": () => (/* binding */ RUSH_JSON_FILENAME),
/* harmony export */ "findRushJsonFolder": () => (/* binding */ findRushJsonFolder),
/* harmony export */ "getNpmPath": () => (/* binding */ getNpmPath),
/* harmony export */ "installAndRun": () => (/* binding */ installAndRun),
/* harmony export */ "runWithErrorAndStatusCode": () => (/* binding */ runWithErrorAndStatusCode)
/* harmony export */ RUSH_JSON_FILENAME: () => (/* binding */ RUSH_JSON_FILENAME),
/* harmony export */ findRushJsonFolder: () => (/* binding */ findRushJsonFolder),
/* harmony export */ getNpmPath: () => (/* binding */ getNpmPath),
/* harmony export */ installAndRun: () => (/* binding */ installAndRun),
/* harmony export */ runWithErrorAndStatusCode: () => (/* binding */ runWithErrorAndStatusCode)
/* harmony export */ });
/* harmony import */ var child_process__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! child_process */ 532081);
/* harmony import */ var child_process__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! child_process */ 535317);
/* harmony import */ var child_process__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(child_process__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fs */ 657147);
/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fs */ 179896);
/* harmony import */ var fs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(fs__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var os__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! os */ 822037);
/* harmony import */ var os__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! os */ 370857);
/* harmony import */ var os__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(os__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! path */ 371017);
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! path */ 16928);
/* harmony import */ var path__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(path__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _utilities_npmrcUtilities__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utilities/npmrcUtilities */ 679877);
/* harmony import */ var _utilities_npmrcUtilities__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utilities/npmrcUtilities */ 832286);
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
// See LICENSE in the project root for license information.
/* eslint-disable no-console */

View File

@ -21,9 +21,9 @@
"node-loader": "~2.0.0",
"cross-env": "~7.0.3",
"typescript": "^5.3.3",
"electron": "^32.1.1",
"electron": "^33.2.0",
"@types/node": "~20.11.16",
"electron-builder": "^25.0.5",
"electron-builder": "^25.1.8",
"@electron/notarize": "^2.3.2"
},
"dependencies": {

View File

@ -47,7 +47,7 @@
"typescript": "^5.3.3",
"ts-node": "^10.8.0",
"ts-node-dev": "^2.0.0",
"electron": "^32.1.1",
"electron": "^33.2.0",
"@types/node": "~20.11.16",
"copy-webpack-plugin": "^11.0.0",
"@typescript-eslint/eslint-plugin": "^6.11.0",

View File

@ -277,7 +277,7 @@ module.exports = [
plugins: [
new HtmlWebpackPlugin({
meta: {
viewport: 'width=device-width, initial-scale=1'
viewport: 'width=device-width, initial-scale=1, maximum-scale=1, shrink-to-fit=1'
}
}),
...(prod ? [new CompressionPlugin()] : []),

View File

@ -14,33 +14,144 @@
//
import { type ClientSocketFactory } from '@hcengineering/client'
import { type Client, type TxOperations } from '@hcengineering/core'
import {
type AttachedData,
type AttachedDoc,
type Class,
type Data,
type Doc,
type DocumentQuery,
type DocumentUpdate,
type FindOptions,
type FindResult,
type Hierarchy,
type Mixin,
type MixinData,
type MixinUpdate,
type ModelDb,
type Ref,
type Space,
type TxResult,
type WithLookup
} from '@hcengineering/core'
import { type MarkupOperations } from './markup'
/**
* Platform API client
* @public
* */
export type PlatformClient = AsyncDisposable &
Pick<
TxOperations,
| 'createDoc'
| 'updateDoc'
| 'removeDoc'
| 'addCollection'
| 'updateCollection'
| 'removeCollection'
| 'createMixin'
| 'updateMixin'
> &
Pick<Client, 'getHierarchy' | 'getModel' | 'findAll' | 'findOne' | 'close'> &
MarkupOperations
export type PlatformClient = {
getHierarchy: () => Hierarchy
getModel: () => ModelDb
close: () => Promise<void>
} & FindOperations &
DocOperations &
CollectionOperations &
MixinOperations &
MarkupOperations &
AsyncDisposable
/**
* @public
*/
export interface FindOperations {
findAll: <T extends Doc>(
_class: Ref<Class<T>>,
query: DocumentQuery<T>,
options?: FindOptions<T> | undefined
) => Promise<FindResult<T>>
findOne: <T extends Doc>(
_class: Ref<Class<T>>,
query: DocumentQuery<T>,
options?: FindOptions<T> | undefined
) => Promise<WithLookup<T> | undefined>
}
/**
* @public
*/
export interface DocOperations {
createDoc: <T extends Doc>(
_class: Ref<Class<T>>,
space: Ref<Space>,
attributes: Data<T>,
id?: Ref<T>
) => Promise<Ref<T>>
updateDoc: <T extends Doc>(
_class: Ref<Class<T>>,
space: Ref<Space>,
objectId: Ref<T>,
operations: DocumentUpdate<T>,
retrieve?: boolean
) => Promise<TxResult>
removeDoc: <T extends Doc>(_class: Ref<Class<T>>, space: Ref<Space>, objectId: Ref<T>) => Promise<TxResult>
}
/**
* @public
*/
export interface CollectionOperations {
addCollection: <T extends Doc, P extends AttachedDoc>(
_class: Ref<Class<P>>,
space: Ref<Space>,
attachedTo: Ref<T>,
attachedToClass: Ref<Class<T>>,
collection: Extract<keyof T, string> | string,
attributes: AttachedData<P>,
id?: Ref<P>
) => Promise<Ref<P>>
updateCollection: <T extends Doc, P extends AttachedDoc>(
_class: Ref<Class<P>>,
space: Ref<Space>,
objectId: Ref<P>,
attachedTo: Ref<T>,
attachedToClass: Ref<Class<T>>,
collection: Extract<keyof T, string> | string,
operations: DocumentUpdate<P>,
retrieve?: boolean
) => Promise<Ref<T>>
removeCollection: <T extends Doc, P extends AttachedDoc>(
_class: Ref<Class<P>>,
space: Ref<Space>,
objectId: Ref<P>,
attachedTo: Ref<T>,
attachedToClass: Ref<Class<T>>,
collection: Extract<keyof T, string> | string
) => Promise<Ref<T>>
}
/**
* @public
*/
export interface MixinOperations {
createMixin: <D extends Doc, M extends D>(
objectId: Ref<D>,
objectClass: Ref<Class<D>>,
objectSpace: Ref<Space>,
mixin: Ref<Mixin<M>>,
attributes: MixinData<D, M>
) => Promise<TxResult>
updateMixin: <D extends Doc, M extends D>(
objectId: Ref<D>,
objectClass: Ref<Class<D>>,
objectSpace: Ref<Space>,
mixin: Ref<Mixin<M>>,
attributes: MixinUpdate<D, M>
) => Promise<TxResult>
}
/**
* Configuration options for password-based authentication
* @public
*/
export interface PasswordAuthOptions {
/** User's email address */
email: string

View File

@ -169,7 +169,7 @@ async function performESBuild(filesToTranspile) {
minify: false,
outdir: 'lib',
keepNames: true,
sourcemap: 'inline',
sourcemap: 'linked',
allowOverwrite: true,
format: 'cjs',
plugins: [

View File

@ -16,7 +16,7 @@
* path segment in the "$schema" field for all your Rush config files. This will ensure
* correct error-underlining and tab-completion for editors such as VS Code.
*/
"rushVersion": "5.134.0",
"rushVersion": "5.140.1",
/**
* The next field selects which package manager should be installed and determines its version.

View File

@ -307,6 +307,12 @@ export function inferType (val: any): string {
}
}
if (typeof val === 'object') {
if (val == null) {
return ''
}
if (val instanceof Date) {
return '::text'
}
return '::jsonb'
}
return ''