@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
package/dist/src/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './model/model';
|
|
2
|
-
export * from './api';
|
|
3
|
-
export * from './internal/auth';
|
|
4
|
-
export * from './internal/configuration';
|
|
5
|
-
export * from './internal/objectSerializer';
|
|
6
|
-
export * from './internal/requestHelper';
|
|
1
|
+
export * from './model/model';
|
|
2
|
+
export * from './api';
|
|
3
|
+
export * from './internal/auth';
|
|
4
|
+
export * from './internal/configuration';
|
|
5
|
+
export * from './internal/objectSerializer';
|
|
6
|
+
export * from './internal/requestHelper';
|
package/dist/src/index.js
CHANGED
|
@@ -1,12 +1,23 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./model/model"), exports);
|
|
18
|
+
__exportStar(require("./api"), exports);
|
|
19
|
+
__exportStar(require("./internal/auth"), exports);
|
|
20
|
+
__exportStar(require("./internal/configuration"), exports);
|
|
21
|
+
__exportStar(require("./internal/objectSerializer"), exports);
|
|
22
|
+
__exportStar(require("./internal/requestHelper"), exports);
|
|
12
23
|
//# sourceMappingURL=index.js.map
|
package/dist/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA6B;AAC7B,wCAAqB;AACrB,kDAA+B;AAC/B,2DAAwC;AACxC,8DAA2C;AAC3C,2DAAwC"}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
*
|
|
23
|
-
*/
|
|
24
|
-
applyToRequest(requestOptions:
|
|
25
|
-
/**
|
|
26
|
-
* Handle 401 response.
|
|
27
|
-
*/
|
|
28
|
-
handle401response(configuration: Configuration): Promise<void>;
|
|
29
|
-
private _requestToken;
|
|
30
|
-
}
|
|
1
|
+
import { Configuration } from "./configuration";
|
|
2
|
+
/**
|
|
3
|
+
* Authentication logic for api calls
|
|
4
|
+
*/
|
|
5
|
+
export interface IAuthentication {
|
|
6
|
+
/**
|
|
7
|
+
* Apply authentication settings to header and query params.
|
|
8
|
+
*/
|
|
9
|
+
applyToRequest(requestOptions: any, configuration: Configuration): Promise<void> | void;
|
|
10
|
+
/**
|
|
11
|
+
* Handle 401 response.
|
|
12
|
+
*/
|
|
13
|
+
handle401response(configuration: Configuration): Promise<void> | void;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Implements OAuth authentication
|
|
17
|
+
*/
|
|
18
|
+
export declare class OAuth implements IAuthentication {
|
|
19
|
+
private accessToken;
|
|
20
|
+
/**
|
|
21
|
+
* Apply authentication settings to header and query params.
|
|
22
|
+
* If token is not available, requests a new one.
|
|
23
|
+
*/
|
|
24
|
+
applyToRequest(requestOptions: any, configuration: Configuration): Promise<void>;
|
|
25
|
+
/**
|
|
26
|
+
* Handle 401 response by requesting a new token.
|
|
27
|
+
*/
|
|
28
|
+
handle401response(configuration: Configuration): Promise<void>;
|
|
29
|
+
private _requestToken;
|
|
30
|
+
}
|
|
@@ -1,91 +1,107 @@
|
|
|
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
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
uri
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
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
|
+
exports.OAuth = void 0;
|
|
36
|
+
const requestHelper_1 = require("./requestHelper");
|
|
37
|
+
/**
|
|
38
|
+
* Implements OAuth authentication
|
|
39
|
+
*/
|
|
40
|
+
class OAuth {
|
|
41
|
+
constructor() {
|
|
42
|
+
this.accessToken = null;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Apply authentication settings to header and query params.
|
|
46
|
+
* If token is not available, requests a new one.
|
|
47
|
+
*/
|
|
48
|
+
applyToRequest(requestOptions, configuration) {
|
|
49
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
50
|
+
if (this.accessToken == null) {
|
|
51
|
+
yield this._requestToken(configuration);
|
|
52
|
+
}
|
|
53
|
+
if (requestOptions) {
|
|
54
|
+
if (!requestOptions.headers) {
|
|
55
|
+
requestOptions.headers = {};
|
|
56
|
+
}
|
|
57
|
+
requestOptions.headers.Authorization = "Bearer " + this.accessToken;
|
|
58
|
+
}
|
|
59
|
+
return Promise.resolve();
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Handle 401 response by requesting a new token.
|
|
64
|
+
*/
|
|
65
|
+
handle401response(configuration) {
|
|
66
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
67
|
+
yield this._requestToken(configuration);
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
_requestToken(configuration) {
|
|
71
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
72
|
+
let uri;
|
|
73
|
+
if (configuration.authUrl) {
|
|
74
|
+
uri = configuration.authUrl;
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
uri = configuration.baseUrl + "/connect/token";
|
|
78
|
+
}
|
|
79
|
+
const requestOptions = {
|
|
80
|
+
method: "POST",
|
|
81
|
+
json: true,
|
|
82
|
+
uri,
|
|
83
|
+
form: {
|
|
84
|
+
grant_type: "client_credentials",
|
|
85
|
+
client_id: configuration.appSID,
|
|
86
|
+
client_secret: configuration.appKey,
|
|
87
|
+
},
|
|
88
|
+
};
|
|
89
|
+
const response = yield (0, requestHelper_1.invokeApiMethod)(requestOptions, configuration, true);
|
|
90
|
+
let body = response && response.body;
|
|
91
|
+
if (body && Buffer.isBuffer(body)) {
|
|
92
|
+
try {
|
|
93
|
+
body = JSON.parse(body.toString("utf8"));
|
|
94
|
+
}
|
|
95
|
+
catch (_a) {
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
if (!body || !body.access_token) {
|
|
99
|
+
throw new Error("Failed to obtain access token from auth server.");
|
|
100
|
+
}
|
|
101
|
+
this.accessToken = body.access_token;
|
|
102
|
+
return Promise.resolve();
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
exports.OAuth = OAuth;
|
|
91
107
|
//# sourceMappingURL=auth.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../src/internal/auth.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;EAsBE
|
|
1
|
+
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../src/internal/auth.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;EAsBE;;;;;;;;;;;;AAGF,mDAAkD;AAiBlD;;GAEG;AACH,MAAa,KAAK;IAAlB;QACY,gBAAW,GAAkB,IAAI,CAAC;IAgE9C,CAAC;IA9DG;;;OAGG;IACU,cAAc,CAAC,cAAmB,EAAE,aAA4B;;YACzE,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,EAAE,CAAC;gBAC3B,MAAM,IAAI,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC;YAC5C,CAAC;YAED,IAAI,cAAc,EAAE,CAAC;gBACjB,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,CAAC;oBAC1B,cAAc,CAAC,OAAO,GAAG,EAAE,CAAC;gBAChC,CAAC;gBACD,cAAc,CAAC,OAAO,CAAC,aAAa,GAAG,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC;YACxE,CAAC;YAED,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;QAC7B,CAAC;KAAA;IAED;;OAEG;IACU,iBAAiB,CAAC,aAA4B;;YACvD,MAAM,IAAI,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC;QAC5C,CAAC;KAAA;IAEa,aAAa,CAAC,aAA4B;;YACpD,IAAI,GAAW,CAAC;YAChB,IAAI,aAAa,CAAC,OAAO,EAAE,CAAC;gBACxB,GAAG,GAAG,aAAa,CAAC,OAAO,CAAC;YAChC,CAAC;iBAAM,CAAC;gBACJ,GAAG,GAAG,aAAa,CAAC,OAAO,GAAG,gBAAgB,CAAC;YACnD,CAAC;YAED,MAAM,cAAc,GAAQ;gBACxB,MAAM,EAAE,MAAM;gBACd,IAAI,EAAE,IAAI;gBACV,GAAG;gBACH,IAAI,EAAE;oBACF,UAAU,EAAE,oBAAoB;oBAChC,SAAS,EAAE,aAAa,CAAC,MAAM;oBAC/B,aAAa,EAAE,aAAa,CAAC,MAAM;iBACtC;aACJ,CAAC;YAEF,MAAM,QAAQ,GAAG,MAAM,IAAA,+BAAe,EAAC,cAAc,EAAE,aAAa,EAAE,IAAI,CAAC,CAAC;YAC5E,IAAI,IAAI,GAAG,QAAQ,IAAI,QAAQ,CAAC,IAAI,CAAC;YAErC,IAAI,IAAI,IAAI,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;gBAChC,IAAI,CAAC;oBACD,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;gBAC7C,CAAC;gBAAC,WAAM,CAAC;gBACT,CAAC;YACL,CAAC;YAED,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC;gBAC9B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;YACvE,CAAC;YAED,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,YAAY,CAAC;YACrC,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;QAC7B,CAAC;KAAA;CACJ;AAjED,sBAiEC"}
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { IAuthentication } from "../internal/auth";
|
|
2
|
-
/**
|
|
3
|
-
* Tasks API configuration
|
|
4
|
-
*/
|
|
5
|
-
export declare class Configuration {
|
|
6
|
-
/**
|
|
7
|
-
* Authentication.
|
|
8
|
-
*/
|
|
9
|
-
authentication: IAuthentication;
|
|
10
|
-
/**
|
|
11
|
-
* App SID.
|
|
12
|
-
*/
|
|
13
|
-
appSID: string;
|
|
14
|
-
/**
|
|
15
|
-
* App key.
|
|
16
|
-
*/
|
|
17
|
-
appKey: string;
|
|
18
|
-
/**
|
|
19
|
-
* Base Url.
|
|
20
|
-
*/
|
|
21
|
-
baseUrl: string;
|
|
22
|
-
/**
|
|
23
|
-
* Auth Url.
|
|
24
|
-
*/
|
|
25
|
-
authUrl: string;
|
|
26
|
-
/**
|
|
27
|
-
* Gets or sets a value indicating whether debug mode. In debug mode all requests and responses are logged to console.
|
|
28
|
-
*/
|
|
29
|
-
debugMode: boolean;
|
|
30
|
-
constructor(appSID: string, appKey: string, baseUrl?: string, authUrl?: string, debugMode?: boolean);
|
|
31
|
-
/**
|
|
32
|
-
* Returns api base url
|
|
33
|
-
*/
|
|
34
|
-
getApiBaseUrl(): string;
|
|
35
|
-
}
|
|
1
|
+
import { IAuthentication } from "../internal/auth";
|
|
2
|
+
/**
|
|
3
|
+
* Tasks API configuration
|
|
4
|
+
*/
|
|
5
|
+
export declare class Configuration {
|
|
6
|
+
/**
|
|
7
|
+
* Authentication.
|
|
8
|
+
*/
|
|
9
|
+
authentication: IAuthentication;
|
|
10
|
+
/**
|
|
11
|
+
* App SID.
|
|
12
|
+
*/
|
|
13
|
+
appSID: string;
|
|
14
|
+
/**
|
|
15
|
+
* App key.
|
|
16
|
+
*/
|
|
17
|
+
appKey: string;
|
|
18
|
+
/**
|
|
19
|
+
* Base Url.
|
|
20
|
+
*/
|
|
21
|
+
baseUrl: string;
|
|
22
|
+
/**
|
|
23
|
+
* Auth Url.
|
|
24
|
+
*/
|
|
25
|
+
authUrl: string;
|
|
26
|
+
/**
|
|
27
|
+
* Gets or sets a value indicating whether debug mode. In debug mode all requests and responses are logged to console.
|
|
28
|
+
*/
|
|
29
|
+
debugMode: boolean;
|
|
30
|
+
constructor(appSID: string, appKey: string, baseUrl?: string, authUrl?: string, debugMode?: boolean);
|
|
31
|
+
/**
|
|
32
|
+
* Returns api base url
|
|
33
|
+
*/
|
|
34
|
+
getApiBaseUrl(): string;
|
|
35
|
+
}
|
|
@@ -1,62 +1,63 @@
|
|
|
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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
this.
|
|
51
|
-
this.
|
|
52
|
-
this.
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
61
|
-
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.Configuration = void 0;
|
|
27
|
+
const auth_1 = require("../internal/auth");
|
|
28
|
+
const defaultBasePath = "https://api.aspose.cloud";
|
|
29
|
+
/**
|
|
30
|
+
* Tasks API configuration
|
|
31
|
+
*/
|
|
32
|
+
class Configuration {
|
|
33
|
+
constructor(appSID, appKey, baseUrl, authUrl, debugMode) {
|
|
34
|
+
/**
|
|
35
|
+
* Base Url.
|
|
36
|
+
*/
|
|
37
|
+
this.baseUrl = defaultBasePath;
|
|
38
|
+
if (baseUrl) {
|
|
39
|
+
this.baseUrl = baseUrl;
|
|
40
|
+
}
|
|
41
|
+
if (authUrl) {
|
|
42
|
+
this.authUrl = authUrl;
|
|
43
|
+
}
|
|
44
|
+
if (!appKey || !appKey.trim()) {
|
|
45
|
+
throw new Error("appKey parameter must be non-empty string");
|
|
46
|
+
}
|
|
47
|
+
if (!appSID || !appSID.trim()) {
|
|
48
|
+
throw new Error("appSID parameter must be non-empty string");
|
|
49
|
+
}
|
|
50
|
+
this.appSID = appSID;
|
|
51
|
+
this.appKey = appKey;
|
|
52
|
+
this.debugMode = debugMode;
|
|
53
|
+
this.authentication = new auth_1.OAuth();
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Returns api base url
|
|
57
|
+
*/
|
|
58
|
+
getApiBaseUrl() {
|
|
59
|
+
return this.baseUrl + "/v3.0";
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
exports.Configuration = Configuration;
|
|
62
63
|
//# sourceMappingURL=configuration.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../../src/internal/configuration.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;EAsBE
|
|
1
|
+
{"version":3,"file":"configuration.js","sourceRoot":"","sources":["../../../src/internal/configuration.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;EAsBE;;;AAEF,2CAA2D;AAC3D,MAAM,eAAe,GAAG,0BAA0B,CAAC;AAEnD;;GAEG;AACH,MAAa,aAAa;IA+BtB,YAAY,MAAc,EAAE,MAAc,EAAE,OAAgB,EAAE,OAAgB,EAAE,SAAmB;QAfnG;;WAEG;QACI,YAAO,GAAW,eAAe,CAAC;QAarC,IAAI,OAAO,EAAE,CAAC;YACV,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QAC3B,CAAC;QAED,IAAI,OAAO,EAAE,CAAC;YACV,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QAC3B,CAAC;QAED,IAAI,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC;YAC5B,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC;QACjE,CAAC;QAED,IAAI,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC;YAC5B,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC;QACjE,CAAC;QAED,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAE3B,IAAI,CAAC,cAAc,GAAG,IAAI,YAAK,EAAqB,CAAC;IACzD,CAAC;IAED;;OAEG;IACI,aAAa;QAChB,OAAO,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IAClC,CAAC;CACJ;AA7DD,sCA6DC"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Serialisation helper.
|
|
3
|
-
*/
|
|
4
|
-
export declare class ObjectSerializer {
|
|
5
|
-
/**
|
|
6
|
-
* Serilize object to json string.
|
|
7
|
-
*/
|
|
8
|
-
static serialize(data: any, type: string, isRecursiveCall?: boolean): any;
|
|
9
|
-
/**
|
|
10
|
-
* Deserialize object from json string
|
|
11
|
-
*/
|
|
12
|
-
static deserialize(data: any, type: string): any;
|
|
13
|
-
private static GetPropertyCaseInsensitive;
|
|
14
|
-
private static findCorrectType;
|
|
15
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* Serialisation helper.
|
|
3
|
+
*/
|
|
4
|
+
export declare class ObjectSerializer {
|
|
5
|
+
/**
|
|
6
|
+
* Serilize object to json string.
|
|
7
|
+
*/
|
|
8
|
+
static serialize(data: any, type: string, isRecursiveCall?: boolean): any;
|
|
9
|
+
/**
|
|
10
|
+
* Deserialize object from json string
|
|
11
|
+
*/
|
|
12
|
+
static deserialize(data: any, type: string): any;
|
|
13
|
+
private static GetPropertyCaseInsensitive;
|
|
14
|
+
private static findCorrectType;
|
|
15
|
+
}
|