@asposecloud/aspose-tasks-cloud 25.11.0 → 26.6.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.
Files changed (113) hide show
  1. package/README.md +6 -0
  2. package/dist/src/api.d.ts +495 -496
  3. package/dist/src/api.js +3545 -3544
  4. package/dist/src/api.js.map +1 -1
  5. package/dist/src/index.d.ts +6 -6
  6. package/dist/src/index.js +22 -11
  7. package/dist/src/index.js.map +1 -1
  8. package/dist/src/internal/auth.d.ts +30 -30
  9. package/dist/src/internal/auth.js +106 -90
  10. package/dist/src/internal/auth.js.map +1 -1
  11. package/dist/src/internal/configuration.d.ts +35 -35
  12. package/dist/src/internal/configuration.js +62 -61
  13. package/dist/src/internal/configuration.js.map +1 -1
  14. package/dist/src/internal/objectSerializer.d.ts +15 -15
  15. package/dist/src/internal/objectSerializer.js +178 -177
  16. package/dist/src/internal/objectSerializer.js.map +1 -1
  17. package/dist/src/internal/requestHelper.d.ts +36 -38
  18. package/dist/src/internal/requestHelper.js +330 -168
  19. package/dist/src/internal/requestHelper.js.map +1 -1
  20. package/dist/src/model/model.d.ts +9184 -9181
  21. package/dist/src/model/model.js +8331 -8320
  22. package/dist/src/model/model.js.map +1 -1
  23. package/dist/test/apiCoverageTest.d.ts +1 -1
  24. package/dist/test/apiCoverageTest.js +114 -82
  25. package/dist/test/apiCoverageTest.js.map +1 -1
  26. package/dist/test/assignmentsTests.d.ts +1 -1
  27. package/dist/test/assignmentsTests.js +325 -292
  28. package/dist/test/assignmentsTests.js.map +1 -1
  29. package/dist/test/baseTest.d.ts +32 -32
  30. package/dist/test/baseTest.js +149 -113
  31. package/dist/test/baseTest.js.map +1 -1
  32. package/dist/test/calendarExceptionsTests.d.ts +1 -1
  33. package/dist/test/calendarExceptionsTests.js +230 -197
  34. package/dist/test/calendarExceptionsTests.js.map +1 -1
  35. package/dist/test/calendarWorkWeeksTests.d.ts +1 -1
  36. package/dist/test/calendarWorkWeeksTests.js +121 -88
  37. package/dist/test/calendarWorkWeeksTests.js.map +1 -1
  38. package/dist/test/calendarsTests.d.ts +1 -1
  39. package/dist/test/calendarsTests.js +273 -240
  40. package/dist/test/calendarsTests.js.map +1 -1
  41. package/dist/test/documentPropertiesTests.d.ts +1 -1
  42. package/dist/test/documentPropertiesTests.js +204 -171
  43. package/dist/test/documentPropertiesTests.js.map +1 -1
  44. package/dist/test/extendedAttributesTests.d.ts +1 -1
  45. package/dist/test/extendedAttributesTests.js +233 -200
  46. package/dist/test/extendedAttributesTests.js.map +1 -1
  47. package/dist/test/getPageCountTests.d.ts +1 -1
  48. package/dist/test/getPageCountTests.js +107 -74
  49. package/dist/test/getPageCountTests.js.map +1 -1
  50. package/dist/test/importProjectTests.d.ts +1 -1
  51. package/dist/test/importProjectTests.js +158 -125
  52. package/dist/test/importProjectTests.js.map +1 -1
  53. package/dist/test/outlineCodesTests.d.ts +1 -1
  54. package/dist/test/outlineCodesTests.js +130 -97
  55. package/dist/test/outlineCodesTests.js.map +1 -1
  56. package/dist/test/projectOnlineTests.d.ts +1 -1
  57. package/dist/test/projectOnlineTests.js +150 -117
  58. package/dist/test/projectOnlineTests.js.map +1 -1
  59. package/dist/test/readProjectTests.d.ts +1 -1
  60. package/dist/test/readProjectTests.js +104 -71
  61. package/dist/test/readProjectTests.js.map +1 -1
  62. package/dist/test/recalculationTests.d.ts +1 -1
  63. package/dist/test/recalculationTests.js +164 -131
  64. package/dist/test/recalculationTests.js.map +1 -1
  65. package/dist/test/recurringInfoTests.d.ts +1 -1
  66. package/dist/test/recurringInfoTests.js +172 -139
  67. package/dist/test/recurringInfoTests.js.map +1 -1
  68. package/dist/test/reportTests.d.ts +1 -1
  69. package/dist/test/reportTests.js +130 -97
  70. package/dist/test/reportTests.js.map +1 -1
  71. package/dist/test/resourceLevelTests.d.ts +1 -1
  72. package/dist/test/resourceLevelTests.js +135 -102
  73. package/dist/test/resourceLevelTests.js.map +1 -1
  74. package/dist/test/resourcesTests.d.ts +1 -1
  75. package/dist/test/resourcesTests.js +189 -156
  76. package/dist/test/resourcesTests.js.map +1 -1
  77. package/dist/test/storage/fileTests.d.ts +1 -1
  78. package/dist/test/storage/fileTests.js +198 -165
  79. package/dist/test/storage/fileTests.js.map +1 -1
  80. package/dist/test/storage/folderTests.d.ts +1 -1
  81. package/dist/test/storage/folderTests.js +192 -159
  82. package/dist/test/storage/folderTests.js.map +1 -1
  83. package/dist/test/storage/storageTests.d.ts +1 -1
  84. package/dist/test/storage/storageTests.js +117 -84
  85. package/dist/test/storage/storageTests.js.map +1 -1
  86. package/dist/test/taskDocumentFormatTests.d.ts +1 -1
  87. package/dist/test/taskDocumentFormatTests.js +134 -101
  88. package/dist/test/taskDocumentFormatTests.js.map +1 -1
  89. package/dist/test/taskLinksTests.d.ts +1 -1
  90. package/dist/test/taskLinksTests.js +164 -131
  91. package/dist/test/taskLinksTests.js.map +1 -1
  92. package/dist/test/tasksExtendedAttributesTests.d.ts +1 -1
  93. package/dist/test/tasksExtendedAttributesTests.js +394 -361
  94. package/dist/test/tasksExtendedAttributesTests.js.map +1 -1
  95. package/dist/test/tasksPrimaveraPropertiesTests.d.ts +1 -1
  96. package/dist/test/tasksPrimaveraPropertiesTests.js +102 -69
  97. package/dist/test/tasksPrimaveraPropertiesTests.js.map +1 -1
  98. package/dist/test/tasksTests.d.ts +1 -1
  99. package/dist/test/tasksTests.js +328 -295
  100. package/dist/test/tasksTests.js.map +1 -1
  101. package/dist/test/timephasedDataTests.d.ts +1 -1
  102. package/dist/test/timephasedDataTests.js +140 -107
  103. package/dist/test/timephasedDataTests.js.map +1 -1
  104. package/dist/test/vbaTests.d.ts +1 -1
  105. package/dist/test/vbaTests.js +91 -58
  106. package/dist/test/vbaTests.js.map +1 -1
  107. package/dist/test/viewsTests.d.ts +1 -1
  108. package/dist/test/viewsTests.js +224 -191
  109. package/dist/test/viewsTests.js.map +1 -1
  110. package/dist/test/wbsTest.d.ts +1 -1
  111. package/dist/test/wbsTest.js +104 -71
  112. package/dist/test/wbsTest.js.map +1 -1
  113. package/package.json +4 -4
@@ -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 __export(m) {
3
- for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
4
- }
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- __export(require("./model/model"));
7
- __export(require("./api"));
8
- __export(require("./internal/auth"));
9
- __export(require("./internal/configuration"));
10
- __export(require("./internal/objectSerializer"));
11
- __export(require("./internal/requestHelper"));
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
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;AAAA,mCAA6B;AAC7B,2BAAqB;AACrB,qCAA+B;AAC/B,8CAAwC;AACxC,iDAA2C;AAC3C,8CAAwC"}
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 request = require("request");
2
- import { Configuration } from "./configuration";
3
- /**
4
- * Authentication logic for api calls
5
- */
6
- export interface IAuthentication {
7
- /**
8
- * Apply authentication settings to header and query params.
9
- */
10
- applyToRequest(requestOptions: request.Options, configuration: Configuration): void;
11
- /**
12
- * Handle 401 response.
13
- */
14
- handle401response(configuration: Configuration): any;
15
- }
16
- /**
17
- * Implements OAuth authentication
18
- */
19
- export declare class OAuth implements IAuthentication {
20
- private accessToken;
21
- /**
22
- * Apply authentication settings to header and query params.
23
- */
24
- applyToRequest(requestOptions: request.Options, configuration: Configuration): Promise<void>;
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
- const requestHelper_1 = require("./requestHelper");
36
- /**
37
- * Implements OAuth authentication
38
- */
39
- class OAuth {
40
- /**
41
- * Apply authentication settings to header and query params.
42
- */
43
- applyToRequest(requestOptions, configuration) {
44
- return __awaiter(this, void 0, void 0, function* () {
45
- if (this.accessToken == null) {
46
- yield this._requestToken(configuration);
47
- }
48
- if (requestOptions) {
49
- if (!requestOptions.headers) {
50
- requestOptions.headers = {};
51
- }
52
- requestOptions.headers.Authorization = "Bearer " + this.accessToken;
53
- }
54
- return Promise.resolve();
55
- });
56
- }
57
- /**
58
- * Handle 401 response.
59
- */
60
- handle401response(configuration) {
61
- return __awaiter(this, void 0, void 0, function* () {
62
- yield this._requestToken(configuration);
63
- });
64
- }
65
- _requestToken(configuration) {
66
- return __awaiter(this, void 0, void 0, function* () {
67
- let uri;
68
- if (configuration.authUrl) {
69
- uri = configuration.authUrl;
70
- }
71
- else {
72
- uri = configuration.baseUrl + "/connect/token";
73
- }
74
- const requestOptions = {
75
- method: "POST",
76
- json: true,
77
- uri,
78
- form: {
79
- grant_type: "client_credentials",
80
- client_id: configuration.appSID,
81
- client_secret: configuration.appKey,
82
- },
83
- };
84
- const response = yield requestHelper_1.invokeApiMethod(requestOptions, configuration, true);
85
- this.accessToken = response.body.access_token;
86
- return Promise.resolve();
87
- });
88
- }
89
- }
90
- exports.OAuth = OAuth;
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;;;;;;;;;;;AAIF,mDAAkD;AAiBlD;;GAEG;AACH,MAAa,KAAK;IAGb;;OAEG;IACS,cAAc,CAAC,cAA+B,EAAE,aAA4B;;YACrF,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,EAAE;gBAC1B,MAAM,IAAI,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC;aAC3C;YAED,IAAI,cAAc,EAAE;gBAChB,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE;oBACzB,cAAc,CAAC,OAAO,GAAG,EAAE,CAAC;iBAC/B;gBACD,cAAc,CAAC,OAAO,CAAC,aAAa,GAAG,SAAS,GAAG,IAAI,CAAC,WA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C,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
- const auth_1 = require("../internal/auth");
27
- const defaultBasePath = "https://api.aspose.cloud";
28
- /**
29
- * Tasks API configuration
30
- */
31
- class Configuration {
32
- constructor(appSID, appKey, baseUrl, authUrl, debugMode) {
33
- /**
34
- * Base Url.
35
- */
36
- this.baseUrl = defaultBasePath;
37
- if (baseUrl) {
38
- this.baseUrl = baseUrl;
39
- }
40
- if (authUrl) {
41
- this.authUrl = authUrl;
42
- }
43
- if (!appKey || !appKey.trim()) {
44
- throw new Error("appKey parameter must be non-empty string");
45
- }
46
- if (!appSID || !appSID.trim()) {
47
- throw new Error("appSID parameter must be non-empty string");
48
- }
49
- this.appSID = appSID;
50
- this.appKey = appKey;
51
- this.debugMode = debugMode;
52
- this.authentication = new auth_1.OAuth();
53
- }
54
- /**
55
- * Returns api base url
56
- */
57
- getApiBaseUrl() {
58
- return this.baseUrl + "/v3.0";
59
- }
60
- }
61
- exports.Configuration = Configuration;
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;;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;YACT,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;SAC1B;QAED,IAAI,OAAO,EAAE;YACT,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;SAC1B;QAED,IAAI,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE;YAC3B,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC;SAChE;QAED,IAAI,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE;YAC3B,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC;SAChE;QAED,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC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;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
+ }