@asposecloud/aspose-tasks-cloud 25.11.0 → 25.12.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/dist/src/api.d.ts +495 -496
- package/dist/src/api.js +3545 -3544
- package/dist/src/api.js.map +1 -1
- package/dist/src/index.d.ts +6 -6
- package/dist/src/index.js +22 -11
- package/dist/src/index.js.map +1 -1
- package/dist/src/internal/auth.d.ts +30 -30
- package/dist/src/internal/auth.js +106 -90
- package/dist/src/internal/auth.js.map +1 -1
- package/dist/src/internal/configuration.d.ts +35 -35
- package/dist/src/internal/configuration.js +62 -61
- package/dist/src/internal/configuration.js.map +1 -1
- package/dist/src/internal/objectSerializer.d.ts +15 -15
- package/dist/src/internal/objectSerializer.js +178 -177
- package/dist/src/internal/objectSerializer.js.map +1 -1
- package/dist/src/internal/requestHelper.d.ts +36 -38
- package/dist/src/internal/requestHelper.js +294 -168
- package/dist/src/internal/requestHelper.js.map +1 -1
- package/dist/src/model/model.d.ts +9180 -9181
- package/dist/src/model/model.js +8326 -8320
- package/dist/src/model/model.js.map +1 -1
- package/dist/test/apiCoverageTest.d.ts +1 -1
- package/dist/test/apiCoverageTest.js +82 -82
- package/dist/test/apiCoverageTest.js.map +1 -1
- package/dist/test/assignmentsTests.d.ts +1 -1
- package/dist/test/assignmentsTests.js +292 -292
- package/dist/test/assignmentsTests.js.map +1 -1
- package/dist/test/baseTest.d.ts +32 -32
- package/dist/test/baseTest.js +116 -113
- package/dist/test/baseTest.js.map +1 -1
- package/dist/test/calendarExceptionsTests.d.ts +1 -1
- package/dist/test/calendarExceptionsTests.js +197 -197
- package/dist/test/calendarExceptionsTests.js.map +1 -1
- package/dist/test/calendarWorkWeeksTests.d.ts +1 -1
- package/dist/test/calendarWorkWeeksTests.js +88 -88
- package/dist/test/calendarWorkWeeksTests.js.map +1 -1
- package/dist/test/calendarsTests.d.ts +1 -1
- package/dist/test/calendarsTests.js +240 -240
- package/dist/test/calendarsTests.js.map +1 -1
- package/dist/test/documentPropertiesTests.d.ts +1 -1
- package/dist/test/documentPropertiesTests.js +171 -171
- package/dist/test/documentPropertiesTests.js.map +1 -1
- package/dist/test/extendedAttributesTests.d.ts +1 -1
- package/dist/test/extendedAttributesTests.js +200 -200
- package/dist/test/extendedAttributesTests.js.map +1 -1
- package/dist/test/getPageCountTests.d.ts +1 -1
- package/dist/test/getPageCountTests.js +74 -74
- package/dist/test/getPageCountTests.js.map +1 -1
- package/dist/test/importProjectTests.d.ts +1 -1
- package/dist/test/importProjectTests.js +125 -125
- package/dist/test/importProjectTests.js.map +1 -1
- package/dist/test/outlineCodesTests.d.ts +1 -1
- package/dist/test/outlineCodesTests.js +97 -97
- package/dist/test/outlineCodesTests.js.map +1 -1
- package/dist/test/projectOnlineTests.d.ts +1 -1
- package/dist/test/projectOnlineTests.js +117 -117
- package/dist/test/projectOnlineTests.js.map +1 -1
- package/dist/test/readProjectTests.d.ts +1 -1
- package/dist/test/readProjectTests.js +71 -71
- package/dist/test/readProjectTests.js.map +1 -1
- package/dist/test/recalculationTests.d.ts +1 -1
- package/dist/test/recalculationTests.js +131 -131
- package/dist/test/recalculationTests.js.map +1 -1
- package/dist/test/recurringInfoTests.d.ts +1 -1
- package/dist/test/recurringInfoTests.js +139 -139
- package/dist/test/recurringInfoTests.js.map +1 -1
- package/dist/test/reportTests.d.ts +1 -1
- package/dist/test/reportTests.js +97 -97
- package/dist/test/reportTests.js.map +1 -1
- package/dist/test/resourceLevelTests.d.ts +1 -1
- package/dist/test/resourceLevelTests.js +102 -102
- package/dist/test/resourceLevelTests.js.map +1 -1
- package/dist/test/resourcesTests.d.ts +1 -1
- package/dist/test/resourcesTests.js +156 -156
- package/dist/test/resourcesTests.js.map +1 -1
- package/dist/test/storage/fileTests.d.ts +1 -1
- package/dist/test/storage/fileTests.js +165 -165
- package/dist/test/storage/fileTests.js.map +1 -1
- package/dist/test/storage/folderTests.d.ts +1 -1
- package/dist/test/storage/folderTests.js +159 -159
- package/dist/test/storage/folderTests.js.map +1 -1
- package/dist/test/storage/storageTests.d.ts +1 -1
- package/dist/test/storage/storageTests.js +84 -84
- package/dist/test/storage/storageTests.js.map +1 -1
- package/dist/test/taskDocumentFormatTests.d.ts +1 -1
- package/dist/test/taskDocumentFormatTests.js +101 -101
- package/dist/test/taskDocumentFormatTests.js.map +1 -1
- package/dist/test/taskLinksTests.d.ts +1 -1
- package/dist/test/taskLinksTests.js +131 -131
- package/dist/test/taskLinksTests.js.map +1 -1
- package/dist/test/tasksExtendedAttributesTests.d.ts +1 -1
- package/dist/test/tasksExtendedAttributesTests.js +361 -361
- package/dist/test/tasksExtendedAttributesTests.js.map +1 -1
- package/dist/test/tasksPrimaveraPropertiesTests.d.ts +1 -1
- package/dist/test/tasksPrimaveraPropertiesTests.js +69 -69
- package/dist/test/tasksPrimaveraPropertiesTests.js.map +1 -1
- package/dist/test/tasksTests.d.ts +1 -1
- package/dist/test/tasksTests.js +295 -295
- package/dist/test/tasksTests.js.map +1 -1
- package/dist/test/timephasedDataTests.d.ts +1 -1
- package/dist/test/timephasedDataTests.js +107 -107
- package/dist/test/timephasedDataTests.js.map +1 -1
- package/dist/test/vbaTests.d.ts +1 -1
- package/dist/test/vbaTests.js +58 -58
- package/dist/test/vbaTests.js.map +1 -1
- package/dist/test/viewsTests.d.ts +1 -1
- package/dist/test/viewsTests.js +191 -191
- package/dist/test/viewsTests.js.map +1 -1
- package/dist/test/wbsTest.d.ts +1 -1
- package/dist/test/wbsTest.js +71 -71
- package/dist/test/wbsTest.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +4 -4
|
@@ -1,172 +1,172 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* MIT License
|
|
4
|
-
|
|
5
|
-
* Copyright (c) 2019 Aspose Pty Ltd
|
|
6
|
-
|
|
7
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
9
|
-
* in the Software without restriction, including without limitation the rights
|
|
10
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
12
|
-
* furnished to do so, subject to the following conditions:
|
|
13
|
-
|
|
14
|
-
* The above copyright notice and this permission notice shall be included in all
|
|
15
|
-
* copies or substantial portions of the Software.
|
|
16
|
-
|
|
17
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
23
|
-
* SOFTWARE.
|
|
24
|
-
*/
|
|
25
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
28
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
29
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
30
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
31
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
-
const chai_1 = require("chai");
|
|
36
|
-
require("mocha");
|
|
37
|
-
const model_1 = require("../src/model/model");
|
|
38
|
-
const BaseTest = require("./baseTest");
|
|
39
|
-
describe("getDocumentProperties function", () => {
|
|
40
|
-
it("should return response with code 200 and correct data", () => __awaiter(void 0, void 0, void 0, function* () {
|
|
41
|
-
const tasksApi = BaseTest.initializeTasksApi();
|
|
42
|
-
const fileName = "Home_move_plan.mpp";
|
|
43
|
-
const localPath = BaseTest.localBaseTestDataFolder + fileName;
|
|
44
|
-
const remotePath = BaseTest.remoteBaseTestDataFolder;
|
|
45
|
-
const remoteFullPath = remotePath + "/" + fileName;
|
|
46
|
-
yield tasksApi.uploadFileToStorage(remoteFullPath, localPath);
|
|
47
|
-
const request = new model_1.GetDocumentPropertiesRequest();
|
|
48
|
-
request.name = fileName;
|
|
49
|
-
request.folder = remotePath;
|
|
50
|
-
const result = yield tasksApi.getDocumentProperties(request);
|
|
51
|
-
chai_1.expect(result.response.statusCode).to.equal(200);
|
|
52
|
-
chai_1.expect(result.body.properties.list.length).to.equal(63);
|
|
53
|
-
chai_1.expect(result.body.properties.list[0].name).to.equal("Title");
|
|
54
|
-
chai_1.expect(result.body.properties.list[0].value).to.equal("Home Move");
|
|
55
|
-
}));
|
|
56
|
-
});
|
|
57
|
-
describe("getDocumentProperty function", () => {
|
|
58
|
-
it("should return response with code 200 and correct data", () => __awaiter(void 0, void 0, void 0, function* () {
|
|
59
|
-
const tasksApi = BaseTest.initializeTasksApi();
|
|
60
|
-
const fileName = "Home_move_plan.mpp";
|
|
61
|
-
const localPath = BaseTest.localBaseTestDataFolder + fileName;
|
|
62
|
-
const remotePath = BaseTest.remoteBaseTestDataFolder;
|
|
63
|
-
const remoteFullPath = remotePath + "/" + fileName;
|
|
64
|
-
yield tasksApi.uploadFileToStorage(remoteFullPath, localPath);
|
|
65
|
-
const request = new model_1.GetDocumentPropertyRequest();
|
|
66
|
-
request.name = fileName;
|
|
67
|
-
request.folder = remotePath;
|
|
68
|
-
request.propertyName = "Title";
|
|
69
|
-
const result = yield tasksApi.getDocumentProperty(request);
|
|
70
|
-
chai_1.expect(result.response.statusCode).to.equal(200);
|
|
71
|
-
chai_1.expect(result.body.property).is.not.null.and.not.undefined;
|
|
72
|
-
chai_1.expect(result.body.property.name).to.equal("Title");
|
|
73
|
-
chai_1.expect(result.body.property.value).to.equal("Home Move");
|
|
74
|
-
}));
|
|
75
|
-
});
|
|
76
|
-
describe("putDocumentProperty function", () => {
|
|
77
|
-
it("should return response with code 200 and correct data", () => __awaiter(void 0, void 0, void 0, function* () {
|
|
78
|
-
const tasksApi = BaseTest.initializeTasksApi();
|
|
79
|
-
const fileName = "Home_move_plan.mpp";
|
|
80
|
-
const localPath = BaseTest.localBaseTestDataFolder + fileName;
|
|
81
|
-
const remotePath = BaseTest.remoteBaseTestDataFolder;
|
|
82
|
-
const remoteFullPath = remotePath + "/" + fileName;
|
|
83
|
-
yield tasksApi.uploadFileToStorage(remoteFullPath, localPath);
|
|
84
|
-
const property = new model_1.DocumentProperty();
|
|
85
|
-
property.name = "Title";
|
|
86
|
-
property.value = "New title value";
|
|
87
|
-
const request1 = new model_1.PutDocumentPropertyRequest();
|
|
88
|
-
request1.name = fileName;
|
|
89
|
-
request1.folder = remotePath;
|
|
90
|
-
request1.propertyName = "Title";
|
|
91
|
-
request1.property = property;
|
|
92
|
-
yield tasksApi.putDocumentProperty(request1);
|
|
93
|
-
const request2 = new model_1.GetDocumentPropertyRequest();
|
|
94
|
-
request2.name = fileName;
|
|
95
|
-
request2.folder = remotePath;
|
|
96
|
-
request2.propertyName = "Title";
|
|
97
|
-
const result = yield tasksApi.getDocumentProperty(request2);
|
|
98
|
-
chai_1.expect(result.body.property.value).to.equal("New title value");
|
|
99
|
-
}));
|
|
100
|
-
it("should return response with code 200 and ignore changes of nonexistent property", () => __awaiter(void 0, void 0, void 0, function* () {
|
|
101
|
-
const tasksApi = BaseTest.initializeTasksApi();
|
|
102
|
-
const fileName = "Home_move_plan.mpp";
|
|
103
|
-
const localPath = BaseTest.localBaseTestDataFolder + fileName;
|
|
104
|
-
const remotePath = BaseTest.remoteBaseTestDataFolder;
|
|
105
|
-
const remoteFullPath = remotePath + "/" + fileName;
|
|
106
|
-
yield tasksApi.uploadFileToStorage(remoteFullPath, localPath);
|
|
107
|
-
const property = new model_1.DocumentProperty();
|
|
108
|
-
property.name = "new property";
|
|
109
|
-
property.value = "new property value";
|
|
110
|
-
const request1 = new model_1.PutDocumentPropertyRequest();
|
|
111
|
-
request1.name = fileName;
|
|
112
|
-
request1.folder = remotePath;
|
|
113
|
-
request1.propertyName = "new property";
|
|
114
|
-
request1.property = property;
|
|
115
|
-
yield tasksApi.putDocumentProperty(request1);
|
|
116
|
-
const request2 = new model_1.GetDocumentPropertyRequest();
|
|
117
|
-
request2.name = fileName;
|
|
118
|
-
request2.folder = remotePath;
|
|
119
|
-
request2.propertyName = "new property";
|
|
120
|
-
const result = yield tasksApi.getDocumentProperty(request2);
|
|
121
|
-
chai_1.expect(result.body.property).is.null;
|
|
122
|
-
}));
|
|
123
|
-
});
|
|
124
|
-
describe("postDocumentProperty function", () => {
|
|
125
|
-
it("should return response with code 200 and correct data", () => __awaiter(void 0, void 0, void 0, function* () {
|
|
126
|
-
const tasksApi = BaseTest.initializeTasksApi();
|
|
127
|
-
const fileName = "Home_move_plan.mpp";
|
|
128
|
-
const localPath = BaseTest.localBaseTestDataFolder + fileName;
|
|
129
|
-
const remotePath = BaseTest.remoteBaseTestDataFolder;
|
|
130
|
-
const remoteFullPath = remotePath + "/" + fileName;
|
|
131
|
-
yield tasksApi.uploadFileToStorage(remoteFullPath, localPath);
|
|
132
|
-
const property = new model_1.DocumentProperty();
|
|
133
|
-
property.name = "Title";
|
|
134
|
-
property.value = "New title value";
|
|
135
|
-
const request1 = new model_1.PostDocumentPropertyRequest();
|
|
136
|
-
request1.name = fileName;
|
|
137
|
-
request1.folder = remotePath;
|
|
138
|
-
request1.propertyName = "Title";
|
|
139
|
-
request1.property = property;
|
|
140
|
-
yield tasksApi.postDocumentProperty(request1);
|
|
141
|
-
const request2 = new model_1.GetDocumentPropertyRequest();
|
|
142
|
-
request2.name = fileName;
|
|
143
|
-
request2.folder = remotePath;
|
|
144
|
-
request2.propertyName = "Title";
|
|
145
|
-
const result = yield tasksApi.getDocumentProperty(request2);
|
|
146
|
-
chai_1.expect(result.body.property.value).to.equal("New title value");
|
|
147
|
-
}));
|
|
148
|
-
it("should return response with code 200 and ignore changes of nonexistent property", () => __awaiter(void 0, void 0, void 0, function* () {
|
|
149
|
-
const tasksApi = BaseTest.initializeTasksApi();
|
|
150
|
-
const fileName = "Home_move_plan.mpp";
|
|
151
|
-
const localPath = BaseTest.localBaseTestDataFolder + fileName;
|
|
152
|
-
const remotePath = BaseTest.remoteBaseTestDataFolder;
|
|
153
|
-
const remoteFullPath = remotePath + "/" + fileName;
|
|
154
|
-
yield tasksApi.uploadFileToStorage(remoteFullPath, localPath);
|
|
155
|
-
const property = new model_1.DocumentProperty();
|
|
156
|
-
property.name = "new property";
|
|
157
|
-
property.value = "new property value";
|
|
158
|
-
const request1 = new model_1.PostDocumentPropertyRequest();
|
|
159
|
-
request1.name = fileName;
|
|
160
|
-
request1.folder = remotePath;
|
|
161
|
-
request1.propertyName = "new property";
|
|
162
|
-
request1.property = property;
|
|
163
|
-
yield tasksApi.postDocumentProperty(request1);
|
|
164
|
-
const request2 = new model_1.GetDocumentPropertyRequest();
|
|
165
|
-
request2.name = fileName;
|
|
166
|
-
request2.folder = remotePath;
|
|
167
|
-
request2.propertyName = "new property";
|
|
168
|
-
const result = yield tasksApi.getDocumentProperty(request2);
|
|
169
|
-
chai_1.expect(result.body.property).is.null;
|
|
170
|
-
}));
|
|
171
|
-
});
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* MIT License
|
|
4
|
+
|
|
5
|
+
* Copyright (c) 2019 Aspose Pty Ltd
|
|
6
|
+
|
|
7
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
9
|
+
* in the Software without restriction, including without limitation the rights
|
|
10
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
12
|
+
* furnished to do so, subject to the following conditions:
|
|
13
|
+
|
|
14
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
15
|
+
* copies or substantial portions of the Software.
|
|
16
|
+
|
|
17
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
23
|
+
* SOFTWARE.
|
|
24
|
+
*/
|
|
25
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
28
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
29
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
30
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
31
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
+
const chai_1 = require("chai");
|
|
36
|
+
require("mocha");
|
|
37
|
+
const model_1 = require("../src/model/model");
|
|
38
|
+
const BaseTest = require("./baseTest");
|
|
39
|
+
describe("getDocumentProperties function", () => {
|
|
40
|
+
it("should return response with code 200 and correct data", () => __awaiter(void 0, void 0, void 0, function* () {
|
|
41
|
+
const tasksApi = BaseTest.initializeTasksApi();
|
|
42
|
+
const fileName = "Home_move_plan.mpp";
|
|
43
|
+
const localPath = BaseTest.localBaseTestDataFolder + fileName;
|
|
44
|
+
const remotePath = BaseTest.remoteBaseTestDataFolder;
|
|
45
|
+
const remoteFullPath = remotePath + "/" + fileName;
|
|
46
|
+
yield tasksApi.uploadFileToStorage(remoteFullPath, localPath);
|
|
47
|
+
const request = new model_1.GetDocumentPropertiesRequest();
|
|
48
|
+
request.name = fileName;
|
|
49
|
+
request.folder = remotePath;
|
|
50
|
+
const result = yield tasksApi.getDocumentProperties(request);
|
|
51
|
+
(0, chai_1.expect)(result.response.statusCode).to.equal(200);
|
|
52
|
+
(0, chai_1.expect)(result.body.properties.list.length).to.equal(63);
|
|
53
|
+
(0, chai_1.expect)(result.body.properties.list[0].name).to.equal("Title");
|
|
54
|
+
(0, chai_1.expect)(result.body.properties.list[0].value).to.equal("Home Move");
|
|
55
|
+
}));
|
|
56
|
+
});
|
|
57
|
+
describe("getDocumentProperty function", () => {
|
|
58
|
+
it("should return response with code 200 and correct data", () => __awaiter(void 0, void 0, void 0, function* () {
|
|
59
|
+
const tasksApi = BaseTest.initializeTasksApi();
|
|
60
|
+
const fileName = "Home_move_plan.mpp";
|
|
61
|
+
const localPath = BaseTest.localBaseTestDataFolder + fileName;
|
|
62
|
+
const remotePath = BaseTest.remoteBaseTestDataFolder;
|
|
63
|
+
const remoteFullPath = remotePath + "/" + fileName;
|
|
64
|
+
yield tasksApi.uploadFileToStorage(remoteFullPath, localPath);
|
|
65
|
+
const request = new model_1.GetDocumentPropertyRequest();
|
|
66
|
+
request.name = fileName;
|
|
67
|
+
request.folder = remotePath;
|
|
68
|
+
request.propertyName = "Title";
|
|
69
|
+
const result = yield tasksApi.getDocumentProperty(request);
|
|
70
|
+
(0, chai_1.expect)(result.response.statusCode).to.equal(200);
|
|
71
|
+
(0, chai_1.expect)(result.body.property).is.not.null.and.not.undefined;
|
|
72
|
+
(0, chai_1.expect)(result.body.property.name).to.equal("Title");
|
|
73
|
+
(0, chai_1.expect)(result.body.property.value).to.equal("Home Move");
|
|
74
|
+
}));
|
|
75
|
+
});
|
|
76
|
+
describe("putDocumentProperty function", () => {
|
|
77
|
+
it("should return response with code 200 and correct data", () => __awaiter(void 0, void 0, void 0, function* () {
|
|
78
|
+
const tasksApi = BaseTest.initializeTasksApi();
|
|
79
|
+
const fileName = "Home_move_plan.mpp";
|
|
80
|
+
const localPath = BaseTest.localBaseTestDataFolder + fileName;
|
|
81
|
+
const remotePath = BaseTest.remoteBaseTestDataFolder;
|
|
82
|
+
const remoteFullPath = remotePath + "/" + fileName;
|
|
83
|
+
yield tasksApi.uploadFileToStorage(remoteFullPath, localPath);
|
|
84
|
+
const property = new model_1.DocumentProperty();
|
|
85
|
+
property.name = "Title";
|
|
86
|
+
property.value = "New title value";
|
|
87
|
+
const request1 = new model_1.PutDocumentPropertyRequest();
|
|
88
|
+
request1.name = fileName;
|
|
89
|
+
request1.folder = remotePath;
|
|
90
|
+
request1.propertyName = "Title";
|
|
91
|
+
request1.property = property;
|
|
92
|
+
yield tasksApi.putDocumentProperty(request1);
|
|
93
|
+
const request2 = new model_1.GetDocumentPropertyRequest();
|
|
94
|
+
request2.name = fileName;
|
|
95
|
+
request2.folder = remotePath;
|
|
96
|
+
request2.propertyName = "Title";
|
|
97
|
+
const result = yield tasksApi.getDocumentProperty(request2);
|
|
98
|
+
(0, chai_1.expect)(result.body.property.value).to.equal("New title value");
|
|
99
|
+
}));
|
|
100
|
+
it("should return response with code 200 and ignore changes of nonexistent property", () => __awaiter(void 0, void 0, void 0, function* () {
|
|
101
|
+
const tasksApi = BaseTest.initializeTasksApi();
|
|
102
|
+
const fileName = "Home_move_plan.mpp";
|
|
103
|
+
const localPath = BaseTest.localBaseTestDataFolder + fileName;
|
|
104
|
+
const remotePath = BaseTest.remoteBaseTestDataFolder;
|
|
105
|
+
const remoteFullPath = remotePath + "/" + fileName;
|
|
106
|
+
yield tasksApi.uploadFileToStorage(remoteFullPath, localPath);
|
|
107
|
+
const property = new model_1.DocumentProperty();
|
|
108
|
+
property.name = "new property";
|
|
109
|
+
property.value = "new property value";
|
|
110
|
+
const request1 = new model_1.PutDocumentPropertyRequest();
|
|
111
|
+
request1.name = fileName;
|
|
112
|
+
request1.folder = remotePath;
|
|
113
|
+
request1.propertyName = "new property";
|
|
114
|
+
request1.property = property;
|
|
115
|
+
yield tasksApi.putDocumentProperty(request1);
|
|
116
|
+
const request2 = new model_1.GetDocumentPropertyRequest();
|
|
117
|
+
request2.name = fileName;
|
|
118
|
+
request2.folder = remotePath;
|
|
119
|
+
request2.propertyName = "new property";
|
|
120
|
+
const result = yield tasksApi.getDocumentProperty(request2);
|
|
121
|
+
(0, chai_1.expect)(result.body.property).is.null;
|
|
122
|
+
}));
|
|
123
|
+
});
|
|
124
|
+
describe("postDocumentProperty function", () => {
|
|
125
|
+
it("should return response with code 200 and correct data", () => __awaiter(void 0, void 0, void 0, function* () {
|
|
126
|
+
const tasksApi = BaseTest.initializeTasksApi();
|
|
127
|
+
const fileName = "Home_move_plan.mpp";
|
|
128
|
+
const localPath = BaseTest.localBaseTestDataFolder + fileName;
|
|
129
|
+
const remotePath = BaseTest.remoteBaseTestDataFolder;
|
|
130
|
+
const remoteFullPath = remotePath + "/" + fileName;
|
|
131
|
+
yield tasksApi.uploadFileToStorage(remoteFullPath, localPath);
|
|
132
|
+
const property = new model_1.DocumentProperty();
|
|
133
|
+
property.name = "Title";
|
|
134
|
+
property.value = "New title value";
|
|
135
|
+
const request1 = new model_1.PostDocumentPropertyRequest();
|
|
136
|
+
request1.name = fileName;
|
|
137
|
+
request1.folder = remotePath;
|
|
138
|
+
request1.propertyName = "Title";
|
|
139
|
+
request1.property = property;
|
|
140
|
+
yield tasksApi.postDocumentProperty(request1);
|
|
141
|
+
const request2 = new model_1.GetDocumentPropertyRequest();
|
|
142
|
+
request2.name = fileName;
|
|
143
|
+
request2.folder = remotePath;
|
|
144
|
+
request2.propertyName = "Title";
|
|
145
|
+
const result = yield tasksApi.getDocumentProperty(request2);
|
|
146
|
+
(0, chai_1.expect)(result.body.property.value).to.equal("New title value");
|
|
147
|
+
}));
|
|
148
|
+
it("should return response with code 200 and ignore changes of nonexistent property", () => __awaiter(void 0, void 0, void 0, function* () {
|
|
149
|
+
const tasksApi = BaseTest.initializeTasksApi();
|
|
150
|
+
const fileName = "Home_move_plan.mpp";
|
|
151
|
+
const localPath = BaseTest.localBaseTestDataFolder + fileName;
|
|
152
|
+
const remotePath = BaseTest.remoteBaseTestDataFolder;
|
|
153
|
+
const remoteFullPath = remotePath + "/" + fileName;
|
|
154
|
+
yield tasksApi.uploadFileToStorage(remoteFullPath, localPath);
|
|
155
|
+
const property = new model_1.DocumentProperty();
|
|
156
|
+
property.name = "new property";
|
|
157
|
+
property.value = "new property value";
|
|
158
|
+
const request1 = new model_1.PostDocumentPropertyRequest();
|
|
159
|
+
request1.name = fileName;
|
|
160
|
+
request1.folder = remotePath;
|
|
161
|
+
request1.propertyName = "new property";
|
|
162
|
+
request1.property = property;
|
|
163
|
+
yield tasksApi.postDocumentProperty(request1);
|
|
164
|
+
const request2 = new model_1.GetDocumentPropertyRequest();
|
|
165
|
+
request2.name = fileName;
|
|
166
|
+
request2.folder = remotePath;
|
|
167
|
+
request2.propertyName = "new property";
|
|
168
|
+
const result = yield tasksApi.getDocumentProperty(request2);
|
|
169
|
+
(0, chai_1.expect)(result.body.property).is.null;
|
|
170
|
+
}));
|
|
171
|
+
});
|
|
172
172
|
//# sourceMappingURL=documentPropertiesTests.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"documentPropertiesTests.js","sourceRoot":"","sources":["../../test/documentProp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