@vuu-ui/vuu-data-remote 3.2.0 → 3.3.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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.2.0",
2
+ "version": "3.3.0",
3
3
  "main": "./src/index.js",
4
4
  "author": "heswell",
5
5
  "license": "Apache-2.0",
@@ -11,14 +11,14 @@
11
11
  "type-defs": "node ../../scripts/build-type-defs.mjs"
12
12
  },
13
13
  "devDependencies": {
14
- "@vuu-ui/vuu-data-types": "3.2.0",
15
- "@vuu-ui/vuu-table-types": "3.2.0",
16
- "@vuu-ui/vuu-filter-types": "3.2.0",
17
- "@vuu-ui/vuu-protocol-types": "3.2.0"
14
+ "@vuu-ui/vuu-data-types": "3.3.0",
15
+ "@vuu-ui/vuu-table-types": "3.3.0",
16
+ "@vuu-ui/vuu-filter-types": "3.3.0",
17
+ "@vuu-ui/vuu-protocol-types": "3.3.0"
18
18
  },
19
19
  "dependencies": {
20
- "@vuu-ui/vuu-filter-parser": "3.2.0",
21
- "@vuu-ui/vuu-utils": "3.2.0"
20
+ "@vuu-ui/vuu-filter-parser": "3.3.0",
21
+ "@vuu-ui/vuu-utils": "3.3.0"
22
22
  },
23
23
  "files": [
24
24
  "README.md",
@@ -420,12 +420,13 @@ class VuuDataSource extends BaseDataSource {
420
420
  async remoteProcedureCall() {
421
421
  return Promise.reject();
422
422
  }
423
- async createSessionDataSource(copyOption) {
423
+ async createSessionDataSource(copyOption, sessionType = "edit") {
424
424
  const rpcResponse = await this?.rpcRequest?.({
425
425
  type: "RPC_REQUEST",
426
426
  rpcName: "createSessionTable",
427
427
  params: {
428
- copyOption
428
+ copyOption,
429
+ sessionType
429
430
  }
430
431
  });
431
432
  if (isRpcSuccess(rpcResponse)) {
@@ -1,4 +1,4 @@
1
- import type { CopyOption, DataSourceBase, DataSourceCallbackMessage, DataSourceConstructorProps, DataSourceStatus, DataSourceSubscribeCallback, DataSourceSubscribeProps, DeleteRowMode, EditSessionMode, OptimizeStrategy, TableSchema, WithBaseFilter, WithFullConfig } from "@vuu-ui/vuu-data-types";
1
+ import type { CopyOption, DataSourceBase, SessionType, DataSourceCallbackMessage, DataSourceConstructorProps, DataSourceStatus, DataSourceSubscribeCallback, DataSourceSubscribeProps, DeleteRowMode, EditSessionMode, OptimizeStrategy, TableSchema, WithBaseFilter, WithFullConfig } from "@vuu-ui/vuu-data-types";
2
2
  import type { MenuRpcResponse } from "@vuu-ui/vuu-data-types";
3
3
  import type { LinkDescriptorWithLabel, RpcResultError, RpcResultSuccess, SelectRequest, VuuGroupBy, VuuMenu, VuuRange, VuuRowDataItemType, VuuRpcMenuRequest, VuuRpcResponse, VuuRpcServiceRequest, VuuTable } from "@vuu-ui/vuu-protocol-types";
4
4
  import { BaseDataSource, Range } from "@vuu-ui/vuu-utils";
@@ -57,7 +57,7 @@ export declare class VuuDataSource extends BaseDataSource implements DataSourceB
57
57
  get visualLink(): LinkDescriptorWithLabel | undefined;
58
58
  set visualLink(visualLink: LinkDescriptorWithLabel | undefined);
59
59
  remoteProcedureCall<T extends VuuRpcResponse = VuuRpcResponse>(): Promise<T>;
60
- createSessionDataSource(copyOption: CopyOption): Promise<VuuDataSource | undefined>;
60
+ createSessionDataSource(copyOption: CopyOption, sessionType?: SessionType): Promise<VuuDataSource | undefined>;
61
61
  beginEditSession(editSessionMode?: EditSessionMode): Promise<void>;
62
62
  editCell(key: string, column: string, data: VuuRowDataItemType): Promise<RpcResultSuccess | RpcResultError | undefined>;
63
63
  endEditSession(saveChanges?: boolean, force?: boolean): Promise<void>;