@colijnit/mainapi 260.1.2 → 260.1.3

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.
@@ -22,7 +22,7 @@ const options = {
22
22
  const localOptions = {
23
23
  url: 'http://localhost:8080/ione',
24
24
  schema: "815",
25
- version: "259",
25
+ version: "260",
26
26
  useLoginEncryption: true,
27
27
  username: "patrick",
28
28
  password: "vankeulen1234567890!",
@@ -142,4 +142,14 @@ describe("Connector", () => {
142
142
  const result = yield connector.getAllFormResponsesForTableAndKey(table_name_enum_1.TableName.Transactions, "140320");
143
143
  expect(result).toBeDefined();
144
144
  }));
145
+ it('lockFormResponse', () => __awaiter(void 0, void 0, void 0, function* () {
146
+ yield connector.connect();
147
+ const result = yield connector.lockFormResponse(295);
148
+ expect(result).toBeDefined();
149
+ }));
150
+ it('unlockFormResponse', () => __awaiter(void 0, void 0, void 0, function* () {
151
+ yield connector.connect();
152
+ const result = yield connector.unlockFormResponse(295);
153
+ expect(result).toBeDefined();
154
+ }));
145
155
  });
@@ -772,7 +772,7 @@ class MainAuth extends main_api_connection_1.MainApiConnection {
772
772
  const data = {
773
773
  moduleName: module_name_enum_1.ModuleName.Forms,
774
774
  objectName: forms_object_name_enum_1.FormsObjectName.FormResponse,
775
- parameterValues: id,
775
+ objectId: id,
776
776
  refCursorAsArray: true,
777
777
  };
778
778
  return this._call(data_service_method_enum_1.DataServiceMethod.LockObject, data, backend_service_name_enum_1.BackendServiceName.DataService);
@@ -781,7 +781,7 @@ class MainAuth extends main_api_connection_1.MainApiConnection {
781
781
  const data = {
782
782
  moduleName: module_name_enum_1.ModuleName.Forms,
783
783
  objectName: forms_object_name_enum_1.FormsObjectName.FormResponse,
784
- parameterValues: id,
784
+ objectId: id,
785
785
  refCursorAsArray: true,
786
786
  };
787
787
  return this._call(data_service_method_enum_1.DataServiceMethod.UnlockObject, data, backend_service_name_enum_1.BackendServiceName.DataService);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/mainapi",
3
- "version": "260.1.2",
3
+ "version": "260.1.3",
4
4
  "scripts": {
5
5
  "build": "grunt clean && tsc",
6
6
  "browserify": "browserify build/connector.js --s colijn -o dist/out-tsc/bundle.js",