@forteplatforms/sdk 1.0.357 → 1.0.363
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/generated/apis/ProjectsServerApi.d.ts +100 -0
- package/dist/generated/apis/ProjectsServerApi.js +409 -0
- package/dist/generated/models/AccountActionLogObject.d.ts +180 -0
- package/dist/generated/models/AccountActionLogObject.js +173 -0
- package/dist/generated/models/FieldChange.d.ts +44 -0
- package/dist/generated/models/FieldChange.js +55 -0
- package/dist/generated/models/ForteApiException.d.ts +2 -0
- package/dist/generated/models/ForteApiException.js +2 -0
- package/dist/generated/models/PaginatedResponseAccountActionLogObject.d.ts +45 -0
- package/dist/generated/models/PaginatedResponseAccountActionLogObject.js +58 -0
- package/dist/generated/models/RevertManagedDatabaseChangeResponse.d.ts +45 -0
- package/dist/generated/models/RevertManagedDatabaseChangeResponse.js +60 -0
- package/dist/generated/models/RevertServiceChangeResponse.d.ts +52 -0
- package/dist/generated/models/RevertServiceChangeResponse.js +63 -0
- package/dist/generated/models/RevertWebAppChangeResponse.d.ts +52 -0
- package/dist/generated/models/RevertWebAppChangeResponse.js +63 -0
- package/dist/generated/models/index.d.ts +6 -0
- package/dist/generated/models/index.js +6 -0
- package/package.json +1 -1
|
@@ -60,6 +60,7 @@ import { type ManagedDatabaseConnection } from '../models/ManagedDatabaseConnect
|
|
|
60
60
|
import { type ManagedDatabaseMetricsResponse } from '../models/ManagedDatabaseMetricsResponse';
|
|
61
61
|
import { type ManagedDatabaseObject } from '../models/ManagedDatabaseObject';
|
|
62
62
|
import { type NotificationTemplatesResponse } from '../models/NotificationTemplatesResponse';
|
|
63
|
+
import { type PaginatedResponseAccountActionLogObject } from '../models/PaginatedResponseAccountActionLogObject';
|
|
63
64
|
import { type PaginatedResponseActionInvocationObject } from '../models/PaginatedResponseActionInvocationObject';
|
|
64
65
|
import { type PaginatedResponseLogLineObject } from '../models/PaginatedResponseLogLineObject';
|
|
65
66
|
import { type PaginatedResponsePaymentObject } from '../models/PaginatedResponsePaymentObject';
|
|
@@ -77,6 +78,9 @@ import { type ProjectObject } from '../models/ProjectObject';
|
|
|
77
78
|
import { type PutSubscriptionItemsRequest } from '../models/PutSubscriptionItemsRequest';
|
|
78
79
|
import { type RequestLogObject } from '../models/RequestLogObject';
|
|
79
80
|
import { type RequestLogSearchRequest } from '../models/RequestLogSearchRequest';
|
|
81
|
+
import { type RevertManagedDatabaseChangeResponse } from '../models/RevertManagedDatabaseChangeResponse';
|
|
82
|
+
import { type RevertServiceChangeResponse } from '../models/RevertServiceChangeResponse';
|
|
83
|
+
import { type RevertWebAppChangeResponse } from '../models/RevertWebAppChangeResponse';
|
|
80
84
|
import { type RotateManagedDatabaseUserPasswordResponse } from '../models/RotateManagedDatabaseUserPasswordResponse';
|
|
81
85
|
import { type SearchUsersRequest } from '../models/SearchUsersRequest';
|
|
82
86
|
import { type SendUserEmailFromTemplateRequest } from '../models/SendUserEmailFromTemplateRequest';
|
|
@@ -457,6 +461,13 @@ export interface ListLogLinesRequest {
|
|
|
457
461
|
level?: string;
|
|
458
462
|
nextToken?: string;
|
|
459
463
|
}
|
|
464
|
+
export interface ListManagedDatabaseHistoryRequest {
|
|
465
|
+
projectId: string;
|
|
466
|
+
databaseId: string;
|
|
467
|
+
minTime?: Date;
|
|
468
|
+
maxTime?: Date;
|
|
469
|
+
nextToken?: string;
|
|
470
|
+
}
|
|
460
471
|
export interface ListManagedDatabaseSlowQueriesRequest {
|
|
461
472
|
projectId: string;
|
|
462
473
|
databaseId: string;
|
|
@@ -501,6 +512,13 @@ export interface ListServiceDeploymentsRequest {
|
|
|
501
512
|
maxTime?: Date;
|
|
502
513
|
nextToken?: string;
|
|
503
514
|
}
|
|
515
|
+
export interface ListServiceHistoryRequest {
|
|
516
|
+
projectId: string;
|
|
517
|
+
serviceId: string;
|
|
518
|
+
minTime?: Date;
|
|
519
|
+
maxTime?: Date;
|
|
520
|
+
nextToken?: string;
|
|
521
|
+
}
|
|
504
522
|
export interface ListUserActionLogsRequest {
|
|
505
523
|
projectId: string;
|
|
506
524
|
userId: string;
|
|
@@ -556,6 +574,13 @@ export interface ListWebAppDeploymentsRequest {
|
|
|
556
574
|
maxTime?: Date;
|
|
557
575
|
nextToken?: string;
|
|
558
576
|
}
|
|
577
|
+
export interface ListWebAppHistoryRequest {
|
|
578
|
+
projectId: string;
|
|
579
|
+
webAppId: string;
|
|
580
|
+
minTime?: Date;
|
|
581
|
+
maxTime?: Date;
|
|
582
|
+
nextToken?: string;
|
|
583
|
+
}
|
|
559
584
|
export interface ListWebAppLogLinesRequest {
|
|
560
585
|
projectId: string;
|
|
561
586
|
webAppId: string;
|
|
@@ -688,6 +713,21 @@ export interface ResumeServiceRequest {
|
|
|
688
713
|
projectId: string;
|
|
689
714
|
serviceId: string;
|
|
690
715
|
}
|
|
716
|
+
export interface RevertManagedDatabaseChangeRequest {
|
|
717
|
+
projectId: string;
|
|
718
|
+
databaseId: string;
|
|
719
|
+
logId: string;
|
|
720
|
+
}
|
|
721
|
+
export interface RevertServiceChangeRequest {
|
|
722
|
+
projectId: string;
|
|
723
|
+
serviceId: string;
|
|
724
|
+
logId: string;
|
|
725
|
+
}
|
|
726
|
+
export interface RevertWebAppChangeRequest {
|
|
727
|
+
projectId: string;
|
|
728
|
+
webAppId: string;
|
|
729
|
+
logId: string;
|
|
730
|
+
}
|
|
691
731
|
export interface RevokeAllUserSessionsRequest {
|
|
692
732
|
projectId: string;
|
|
693
733
|
userId: string;
|
|
@@ -1547,6 +1587,16 @@ export declare class ProjectsServerApi extends runtime.BaseAPI {
|
|
|
1547
1587
|
/**
|
|
1548
1588
|
*/
|
|
1549
1589
|
listLogLines(requestParameters: ListLogLinesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseLogLineObject>;
|
|
1590
|
+
/**
|
|
1591
|
+
* Creates request options for listManagedDatabaseHistory without sending the request
|
|
1592
|
+
*/
|
|
1593
|
+
listManagedDatabaseHistoryRequestOpts(requestParameters: ListManagedDatabaseHistoryRequest): Promise<runtime.RequestOpts>;
|
|
1594
|
+
/**
|
|
1595
|
+
*/
|
|
1596
|
+
listManagedDatabaseHistoryRaw(requestParameters: ListManagedDatabaseHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseAccountActionLogObject>>;
|
|
1597
|
+
/**
|
|
1598
|
+
*/
|
|
1599
|
+
listManagedDatabaseHistory(requestParameters: ListManagedDatabaseHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseAccountActionLogObject>;
|
|
1550
1600
|
/**
|
|
1551
1601
|
* Creates request options for listManagedDatabaseSlowQueries without sending the request
|
|
1552
1602
|
*/
|
|
@@ -1637,6 +1687,16 @@ export declare class ProjectsServerApi extends runtime.BaseAPI {
|
|
|
1637
1687
|
/**
|
|
1638
1688
|
*/
|
|
1639
1689
|
listServiceDeployments(requestParameters: ListServiceDeploymentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseServiceBuildRequestObject>;
|
|
1690
|
+
/**
|
|
1691
|
+
* Creates request options for listServiceHistory without sending the request
|
|
1692
|
+
*/
|
|
1693
|
+
listServiceHistoryRequestOpts(requestParameters: ListServiceHistoryRequest): Promise<runtime.RequestOpts>;
|
|
1694
|
+
/**
|
|
1695
|
+
*/
|
|
1696
|
+
listServiceHistoryRaw(requestParameters: ListServiceHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseAccountActionLogObject>>;
|
|
1697
|
+
/**
|
|
1698
|
+
*/
|
|
1699
|
+
listServiceHistory(requestParameters: ListServiceHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseAccountActionLogObject>;
|
|
1640
1700
|
/**
|
|
1641
1701
|
* Creates request options for listUserActionLogs without sending the request
|
|
1642
1702
|
*/
|
|
@@ -1707,6 +1767,16 @@ export declare class ProjectsServerApi extends runtime.BaseAPI {
|
|
|
1707
1767
|
/**
|
|
1708
1768
|
*/
|
|
1709
1769
|
listWebAppDeployments(requestParameters: ListWebAppDeploymentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseWebAppBuildRequestObject>;
|
|
1770
|
+
/**
|
|
1771
|
+
* Creates request options for listWebAppHistory without sending the request
|
|
1772
|
+
*/
|
|
1773
|
+
listWebAppHistoryRequestOpts(requestParameters: ListWebAppHistoryRequest): Promise<runtime.RequestOpts>;
|
|
1774
|
+
/**
|
|
1775
|
+
*/
|
|
1776
|
+
listWebAppHistoryRaw(requestParameters: ListWebAppHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseAccountActionLogObject>>;
|
|
1777
|
+
/**
|
|
1778
|
+
*/
|
|
1779
|
+
listWebAppHistory(requestParameters: ListWebAppHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseAccountActionLogObject>;
|
|
1710
1780
|
/**
|
|
1711
1781
|
* Creates request options for listWebAppLogLines without sending the request
|
|
1712
1782
|
*/
|
|
@@ -1957,6 +2027,36 @@ export declare class ProjectsServerApi extends runtime.BaseAPI {
|
|
|
1957
2027
|
/**
|
|
1958
2028
|
*/
|
|
1959
2029
|
resumeService(requestParameters: ResumeServiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ServiceObject>;
|
|
2030
|
+
/**
|
|
2031
|
+
* Creates request options for revertManagedDatabaseChange without sending the request
|
|
2032
|
+
*/
|
|
2033
|
+
revertManagedDatabaseChangeRequestOpts(requestParameters: RevertManagedDatabaseChangeRequest): Promise<runtime.RequestOpts>;
|
|
2034
|
+
/**
|
|
2035
|
+
*/
|
|
2036
|
+
revertManagedDatabaseChangeRaw(requestParameters: RevertManagedDatabaseChangeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RevertManagedDatabaseChangeResponse>>;
|
|
2037
|
+
/**
|
|
2038
|
+
*/
|
|
2039
|
+
revertManagedDatabaseChange(requestParameters: RevertManagedDatabaseChangeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RevertManagedDatabaseChangeResponse>;
|
|
2040
|
+
/**
|
|
2041
|
+
* Creates request options for revertServiceChange without sending the request
|
|
2042
|
+
*/
|
|
2043
|
+
revertServiceChangeRequestOpts(requestParameters: RevertServiceChangeRequest): Promise<runtime.RequestOpts>;
|
|
2044
|
+
/**
|
|
2045
|
+
*/
|
|
2046
|
+
revertServiceChangeRaw(requestParameters: RevertServiceChangeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RevertServiceChangeResponse>>;
|
|
2047
|
+
/**
|
|
2048
|
+
*/
|
|
2049
|
+
revertServiceChange(requestParameters: RevertServiceChangeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RevertServiceChangeResponse>;
|
|
2050
|
+
/**
|
|
2051
|
+
* Creates request options for revertWebAppChange without sending the request
|
|
2052
|
+
*/
|
|
2053
|
+
revertWebAppChangeRequestOpts(requestParameters: RevertWebAppChangeRequest): Promise<runtime.RequestOpts>;
|
|
2054
|
+
/**
|
|
2055
|
+
*/
|
|
2056
|
+
revertWebAppChangeRaw(requestParameters: RevertWebAppChangeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RevertWebAppChangeResponse>>;
|
|
2057
|
+
/**
|
|
2058
|
+
*/
|
|
2059
|
+
revertWebAppChange(requestParameters: RevertWebAppChangeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RevertWebAppChangeResponse>;
|
|
1960
2060
|
/**
|
|
1961
2061
|
* Creates request options for revokeAllUserSessions without sending the request
|
|
1962
2062
|
*/
|
|
@@ -116,6 +116,7 @@ var ManagedDatabaseConnection_1 = require("../models/ManagedDatabaseConnection")
|
|
|
116
116
|
var ManagedDatabaseMetricsResponse_1 = require("../models/ManagedDatabaseMetricsResponse");
|
|
117
117
|
var ManagedDatabaseObject_1 = require("../models/ManagedDatabaseObject");
|
|
118
118
|
var NotificationTemplatesResponse_1 = require("../models/NotificationTemplatesResponse");
|
|
119
|
+
var PaginatedResponseAccountActionLogObject_1 = require("../models/PaginatedResponseAccountActionLogObject");
|
|
119
120
|
var PaginatedResponseActionInvocationObject_1 = require("../models/PaginatedResponseActionInvocationObject");
|
|
120
121
|
var PaginatedResponseLogLineObject_1 = require("../models/PaginatedResponseLogLineObject");
|
|
121
122
|
var PaginatedResponsePaymentObject_1 = require("../models/PaginatedResponsePaymentObject");
|
|
@@ -133,6 +134,9 @@ var ProjectObject_1 = require("../models/ProjectObject");
|
|
|
133
134
|
var PutSubscriptionItemsRequest_1 = require("../models/PutSubscriptionItemsRequest");
|
|
134
135
|
var RequestLogObject_1 = require("../models/RequestLogObject");
|
|
135
136
|
var RequestLogSearchRequest_1 = require("../models/RequestLogSearchRequest");
|
|
137
|
+
var RevertManagedDatabaseChangeResponse_1 = require("../models/RevertManagedDatabaseChangeResponse");
|
|
138
|
+
var RevertServiceChangeResponse_1 = require("../models/RevertServiceChangeResponse");
|
|
139
|
+
var RevertWebAppChangeResponse_1 = require("../models/RevertWebAppChangeResponse");
|
|
136
140
|
var RotateManagedDatabaseUserPasswordResponse_1 = require("../models/RotateManagedDatabaseUserPasswordResponse");
|
|
137
141
|
var SearchUsersRequest_1 = require("../models/SearchUsersRequest");
|
|
138
142
|
var SendUserEmailFromTemplateRequest_1 = require("../models/SendUserEmailFromTemplateRequest");
|
|
@@ -4751,6 +4755,76 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
4751
4755
|
});
|
|
4752
4756
|
});
|
|
4753
4757
|
};
|
|
4758
|
+
/**
|
|
4759
|
+
* Creates request options for listManagedDatabaseHistory without sending the request
|
|
4760
|
+
*/
|
|
4761
|
+
ProjectsServerApi.prototype.listManagedDatabaseHistoryRequestOpts = function (requestParameters) {
|
|
4762
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
4763
|
+
var queryParameters, headerParameters, urlPath;
|
|
4764
|
+
return __generator(this, function (_a) {
|
|
4765
|
+
if (requestParameters['projectId'] == null) {
|
|
4766
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling listManagedDatabaseHistory().');
|
|
4767
|
+
}
|
|
4768
|
+
if (requestParameters['databaseId'] == null) {
|
|
4769
|
+
throw new runtime.RequiredError('databaseId', 'Required parameter "databaseId" was null or undefined when calling listManagedDatabaseHistory().');
|
|
4770
|
+
}
|
|
4771
|
+
queryParameters = {};
|
|
4772
|
+
if (requestParameters['minTime'] != null) {
|
|
4773
|
+
queryParameters['minTime'] = requestParameters['minTime'].toISOString();
|
|
4774
|
+
}
|
|
4775
|
+
if (requestParameters['maxTime'] != null) {
|
|
4776
|
+
queryParameters['maxTime'] = requestParameters['maxTime'].toISOString();
|
|
4777
|
+
}
|
|
4778
|
+
if (requestParameters['nextToken'] != null) {
|
|
4779
|
+
queryParameters['nextToken'] = requestParameters['nextToken'];
|
|
4780
|
+
}
|
|
4781
|
+
headerParameters = {};
|
|
4782
|
+
urlPath = "/api/v1/projects/{projectId}/databases/{databaseId}/history";
|
|
4783
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
4784
|
+
urlPath = urlPath.replace('{databaseId}', encodeURIComponent(String(requestParameters['databaseId'])));
|
|
4785
|
+
return [2 /*return*/, {
|
|
4786
|
+
path: urlPath,
|
|
4787
|
+
method: 'GET',
|
|
4788
|
+
headers: headerParameters,
|
|
4789
|
+
query: queryParameters,
|
|
4790
|
+
}];
|
|
4791
|
+
});
|
|
4792
|
+
});
|
|
4793
|
+
};
|
|
4794
|
+
/**
|
|
4795
|
+
*/
|
|
4796
|
+
ProjectsServerApi.prototype.listManagedDatabaseHistoryRaw = function (requestParameters, initOverrides) {
|
|
4797
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
4798
|
+
var requestOptions, response;
|
|
4799
|
+
return __generator(this, function (_a) {
|
|
4800
|
+
switch (_a.label) {
|
|
4801
|
+
case 0: return [4 /*yield*/, this.listManagedDatabaseHistoryRequestOpts(requestParameters)];
|
|
4802
|
+
case 1:
|
|
4803
|
+
requestOptions = _a.sent();
|
|
4804
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
4805
|
+
case 2:
|
|
4806
|
+
response = _a.sent();
|
|
4807
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, PaginatedResponseAccountActionLogObject_1.PaginatedResponseAccountActionLogObjectFromJSON)(jsonValue); })];
|
|
4808
|
+
}
|
|
4809
|
+
});
|
|
4810
|
+
});
|
|
4811
|
+
};
|
|
4812
|
+
/**
|
|
4813
|
+
*/
|
|
4814
|
+
ProjectsServerApi.prototype.listManagedDatabaseHistory = function (requestParameters, initOverrides) {
|
|
4815
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
4816
|
+
var response;
|
|
4817
|
+
return __generator(this, function (_a) {
|
|
4818
|
+
switch (_a.label) {
|
|
4819
|
+
case 0: return [4 /*yield*/, this.listManagedDatabaseHistoryRaw(requestParameters, initOverrides)];
|
|
4820
|
+
case 1:
|
|
4821
|
+
response = _a.sent();
|
|
4822
|
+
return [4 /*yield*/, response.value()];
|
|
4823
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
4824
|
+
}
|
|
4825
|
+
});
|
|
4826
|
+
});
|
|
4827
|
+
};
|
|
4754
4828
|
/**
|
|
4755
4829
|
* Creates request options for listManagedDatabaseSlowQueries without sending the request
|
|
4756
4830
|
*/
|
|
@@ -5324,6 +5398,76 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
5324
5398
|
});
|
|
5325
5399
|
});
|
|
5326
5400
|
};
|
|
5401
|
+
/**
|
|
5402
|
+
* Creates request options for listServiceHistory without sending the request
|
|
5403
|
+
*/
|
|
5404
|
+
ProjectsServerApi.prototype.listServiceHistoryRequestOpts = function (requestParameters) {
|
|
5405
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5406
|
+
var queryParameters, headerParameters, urlPath;
|
|
5407
|
+
return __generator(this, function (_a) {
|
|
5408
|
+
if (requestParameters['projectId'] == null) {
|
|
5409
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling listServiceHistory().');
|
|
5410
|
+
}
|
|
5411
|
+
if (requestParameters['serviceId'] == null) {
|
|
5412
|
+
throw new runtime.RequiredError('serviceId', 'Required parameter "serviceId" was null or undefined when calling listServiceHistory().');
|
|
5413
|
+
}
|
|
5414
|
+
queryParameters = {};
|
|
5415
|
+
if (requestParameters['minTime'] != null) {
|
|
5416
|
+
queryParameters['minTime'] = requestParameters['minTime'].toISOString();
|
|
5417
|
+
}
|
|
5418
|
+
if (requestParameters['maxTime'] != null) {
|
|
5419
|
+
queryParameters['maxTime'] = requestParameters['maxTime'].toISOString();
|
|
5420
|
+
}
|
|
5421
|
+
if (requestParameters['nextToken'] != null) {
|
|
5422
|
+
queryParameters['nextToken'] = requestParameters['nextToken'];
|
|
5423
|
+
}
|
|
5424
|
+
headerParameters = {};
|
|
5425
|
+
urlPath = "/api/v1/projects/{projectId}/services/{serviceId}/history";
|
|
5426
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
5427
|
+
urlPath = urlPath.replace('{serviceId}', encodeURIComponent(String(requestParameters['serviceId'])));
|
|
5428
|
+
return [2 /*return*/, {
|
|
5429
|
+
path: urlPath,
|
|
5430
|
+
method: 'GET',
|
|
5431
|
+
headers: headerParameters,
|
|
5432
|
+
query: queryParameters,
|
|
5433
|
+
}];
|
|
5434
|
+
});
|
|
5435
|
+
});
|
|
5436
|
+
};
|
|
5437
|
+
/**
|
|
5438
|
+
*/
|
|
5439
|
+
ProjectsServerApi.prototype.listServiceHistoryRaw = function (requestParameters, initOverrides) {
|
|
5440
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5441
|
+
var requestOptions, response;
|
|
5442
|
+
return __generator(this, function (_a) {
|
|
5443
|
+
switch (_a.label) {
|
|
5444
|
+
case 0: return [4 /*yield*/, this.listServiceHistoryRequestOpts(requestParameters)];
|
|
5445
|
+
case 1:
|
|
5446
|
+
requestOptions = _a.sent();
|
|
5447
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
5448
|
+
case 2:
|
|
5449
|
+
response = _a.sent();
|
|
5450
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, PaginatedResponseAccountActionLogObject_1.PaginatedResponseAccountActionLogObjectFromJSON)(jsonValue); })];
|
|
5451
|
+
}
|
|
5452
|
+
});
|
|
5453
|
+
});
|
|
5454
|
+
};
|
|
5455
|
+
/**
|
|
5456
|
+
*/
|
|
5457
|
+
ProjectsServerApi.prototype.listServiceHistory = function (requestParameters, initOverrides) {
|
|
5458
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5459
|
+
var response;
|
|
5460
|
+
return __generator(this, function (_a) {
|
|
5461
|
+
switch (_a.label) {
|
|
5462
|
+
case 0: return [4 /*yield*/, this.listServiceHistoryRaw(requestParameters, initOverrides)];
|
|
5463
|
+
case 1:
|
|
5464
|
+
response = _a.sent();
|
|
5465
|
+
return [4 /*yield*/, response.value()];
|
|
5466
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
5467
|
+
}
|
|
5468
|
+
});
|
|
5469
|
+
});
|
|
5470
|
+
};
|
|
5327
5471
|
/**
|
|
5328
5472
|
* Creates request options for listUserActionLogs without sending the request
|
|
5329
5473
|
*/
|
|
@@ -5832,6 +5976,76 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
5832
5976
|
});
|
|
5833
5977
|
});
|
|
5834
5978
|
};
|
|
5979
|
+
/**
|
|
5980
|
+
* Creates request options for listWebAppHistory without sending the request
|
|
5981
|
+
*/
|
|
5982
|
+
ProjectsServerApi.prototype.listWebAppHistoryRequestOpts = function (requestParameters) {
|
|
5983
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5984
|
+
var queryParameters, headerParameters, urlPath;
|
|
5985
|
+
return __generator(this, function (_a) {
|
|
5986
|
+
if (requestParameters['projectId'] == null) {
|
|
5987
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling listWebAppHistory().');
|
|
5988
|
+
}
|
|
5989
|
+
if (requestParameters['webAppId'] == null) {
|
|
5990
|
+
throw new runtime.RequiredError('webAppId', 'Required parameter "webAppId" was null or undefined when calling listWebAppHistory().');
|
|
5991
|
+
}
|
|
5992
|
+
queryParameters = {};
|
|
5993
|
+
if (requestParameters['minTime'] != null) {
|
|
5994
|
+
queryParameters['minTime'] = requestParameters['minTime'].toISOString();
|
|
5995
|
+
}
|
|
5996
|
+
if (requestParameters['maxTime'] != null) {
|
|
5997
|
+
queryParameters['maxTime'] = requestParameters['maxTime'].toISOString();
|
|
5998
|
+
}
|
|
5999
|
+
if (requestParameters['nextToken'] != null) {
|
|
6000
|
+
queryParameters['nextToken'] = requestParameters['nextToken'];
|
|
6001
|
+
}
|
|
6002
|
+
headerParameters = {};
|
|
6003
|
+
urlPath = "/api/v1/projects/{projectId}/web-apps/{webAppId}/history";
|
|
6004
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
6005
|
+
urlPath = urlPath.replace('{webAppId}', encodeURIComponent(String(requestParameters['webAppId'])));
|
|
6006
|
+
return [2 /*return*/, {
|
|
6007
|
+
path: urlPath,
|
|
6008
|
+
method: 'GET',
|
|
6009
|
+
headers: headerParameters,
|
|
6010
|
+
query: queryParameters,
|
|
6011
|
+
}];
|
|
6012
|
+
});
|
|
6013
|
+
});
|
|
6014
|
+
};
|
|
6015
|
+
/**
|
|
6016
|
+
*/
|
|
6017
|
+
ProjectsServerApi.prototype.listWebAppHistoryRaw = function (requestParameters, initOverrides) {
|
|
6018
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6019
|
+
var requestOptions, response;
|
|
6020
|
+
return __generator(this, function (_a) {
|
|
6021
|
+
switch (_a.label) {
|
|
6022
|
+
case 0: return [4 /*yield*/, this.listWebAppHistoryRequestOpts(requestParameters)];
|
|
6023
|
+
case 1:
|
|
6024
|
+
requestOptions = _a.sent();
|
|
6025
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
6026
|
+
case 2:
|
|
6027
|
+
response = _a.sent();
|
|
6028
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, PaginatedResponseAccountActionLogObject_1.PaginatedResponseAccountActionLogObjectFromJSON)(jsonValue); })];
|
|
6029
|
+
}
|
|
6030
|
+
});
|
|
6031
|
+
});
|
|
6032
|
+
};
|
|
6033
|
+
/**
|
|
6034
|
+
*/
|
|
6035
|
+
ProjectsServerApi.prototype.listWebAppHistory = function (requestParameters, initOverrides) {
|
|
6036
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6037
|
+
var response;
|
|
6038
|
+
return __generator(this, function (_a) {
|
|
6039
|
+
switch (_a.label) {
|
|
6040
|
+
case 0: return [4 /*yield*/, this.listWebAppHistoryRaw(requestParameters, initOverrides)];
|
|
6041
|
+
case 1:
|
|
6042
|
+
response = _a.sent();
|
|
6043
|
+
return [4 /*yield*/, response.value()];
|
|
6044
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
6045
|
+
}
|
|
6046
|
+
});
|
|
6047
|
+
});
|
|
6048
|
+
};
|
|
5835
6049
|
/**
|
|
5836
6050
|
* Creates request options for listWebAppLogLines without sending the request
|
|
5837
6051
|
*/
|
|
@@ -7476,6 +7690,201 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
7476
7690
|
});
|
|
7477
7691
|
});
|
|
7478
7692
|
};
|
|
7693
|
+
/**
|
|
7694
|
+
* Creates request options for revertManagedDatabaseChange without sending the request
|
|
7695
|
+
*/
|
|
7696
|
+
ProjectsServerApi.prototype.revertManagedDatabaseChangeRequestOpts = function (requestParameters) {
|
|
7697
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7698
|
+
var queryParameters, headerParameters, urlPath;
|
|
7699
|
+
return __generator(this, function (_a) {
|
|
7700
|
+
if (requestParameters['projectId'] == null) {
|
|
7701
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling revertManagedDatabaseChange().');
|
|
7702
|
+
}
|
|
7703
|
+
if (requestParameters['databaseId'] == null) {
|
|
7704
|
+
throw new runtime.RequiredError('databaseId', 'Required parameter "databaseId" was null or undefined when calling revertManagedDatabaseChange().');
|
|
7705
|
+
}
|
|
7706
|
+
if (requestParameters['logId'] == null) {
|
|
7707
|
+
throw new runtime.RequiredError('logId', 'Required parameter "logId" was null or undefined when calling revertManagedDatabaseChange().');
|
|
7708
|
+
}
|
|
7709
|
+
queryParameters = {};
|
|
7710
|
+
headerParameters = {};
|
|
7711
|
+
urlPath = "/api/v1/projects/{projectId}/databases/{databaseId}/history/{logId}/revert";
|
|
7712
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
7713
|
+
urlPath = urlPath.replace('{databaseId}', encodeURIComponent(String(requestParameters['databaseId'])));
|
|
7714
|
+
urlPath = urlPath.replace('{logId}', encodeURIComponent(String(requestParameters['logId'])));
|
|
7715
|
+
return [2 /*return*/, {
|
|
7716
|
+
path: urlPath,
|
|
7717
|
+
method: 'POST',
|
|
7718
|
+
headers: headerParameters,
|
|
7719
|
+
query: queryParameters,
|
|
7720
|
+
}];
|
|
7721
|
+
});
|
|
7722
|
+
});
|
|
7723
|
+
};
|
|
7724
|
+
/**
|
|
7725
|
+
*/
|
|
7726
|
+
ProjectsServerApi.prototype.revertManagedDatabaseChangeRaw = function (requestParameters, initOverrides) {
|
|
7727
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7728
|
+
var requestOptions, response;
|
|
7729
|
+
return __generator(this, function (_a) {
|
|
7730
|
+
switch (_a.label) {
|
|
7731
|
+
case 0: return [4 /*yield*/, this.revertManagedDatabaseChangeRequestOpts(requestParameters)];
|
|
7732
|
+
case 1:
|
|
7733
|
+
requestOptions = _a.sent();
|
|
7734
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
7735
|
+
case 2:
|
|
7736
|
+
response = _a.sent();
|
|
7737
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, RevertManagedDatabaseChangeResponse_1.RevertManagedDatabaseChangeResponseFromJSON)(jsonValue); })];
|
|
7738
|
+
}
|
|
7739
|
+
});
|
|
7740
|
+
});
|
|
7741
|
+
};
|
|
7742
|
+
/**
|
|
7743
|
+
*/
|
|
7744
|
+
ProjectsServerApi.prototype.revertManagedDatabaseChange = function (requestParameters, initOverrides) {
|
|
7745
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7746
|
+
var response;
|
|
7747
|
+
return __generator(this, function (_a) {
|
|
7748
|
+
switch (_a.label) {
|
|
7749
|
+
case 0: return [4 /*yield*/, this.revertManagedDatabaseChangeRaw(requestParameters, initOverrides)];
|
|
7750
|
+
case 1:
|
|
7751
|
+
response = _a.sent();
|
|
7752
|
+
return [4 /*yield*/, response.value()];
|
|
7753
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
7754
|
+
}
|
|
7755
|
+
});
|
|
7756
|
+
});
|
|
7757
|
+
};
|
|
7758
|
+
/**
|
|
7759
|
+
* Creates request options for revertServiceChange without sending the request
|
|
7760
|
+
*/
|
|
7761
|
+
ProjectsServerApi.prototype.revertServiceChangeRequestOpts = function (requestParameters) {
|
|
7762
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7763
|
+
var queryParameters, headerParameters, urlPath;
|
|
7764
|
+
return __generator(this, function (_a) {
|
|
7765
|
+
if (requestParameters['projectId'] == null) {
|
|
7766
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling revertServiceChange().');
|
|
7767
|
+
}
|
|
7768
|
+
if (requestParameters['serviceId'] == null) {
|
|
7769
|
+
throw new runtime.RequiredError('serviceId', 'Required parameter "serviceId" was null or undefined when calling revertServiceChange().');
|
|
7770
|
+
}
|
|
7771
|
+
if (requestParameters['logId'] == null) {
|
|
7772
|
+
throw new runtime.RequiredError('logId', 'Required parameter "logId" was null or undefined when calling revertServiceChange().');
|
|
7773
|
+
}
|
|
7774
|
+
queryParameters = {};
|
|
7775
|
+
headerParameters = {};
|
|
7776
|
+
urlPath = "/api/v1/projects/{projectId}/services/{serviceId}/history/{logId}/revert";
|
|
7777
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
7778
|
+
urlPath = urlPath.replace('{serviceId}', encodeURIComponent(String(requestParameters['serviceId'])));
|
|
7779
|
+
urlPath = urlPath.replace('{logId}', encodeURIComponent(String(requestParameters['logId'])));
|
|
7780
|
+
return [2 /*return*/, {
|
|
7781
|
+
path: urlPath,
|
|
7782
|
+
method: 'POST',
|
|
7783
|
+
headers: headerParameters,
|
|
7784
|
+
query: queryParameters,
|
|
7785
|
+
}];
|
|
7786
|
+
});
|
|
7787
|
+
});
|
|
7788
|
+
};
|
|
7789
|
+
/**
|
|
7790
|
+
*/
|
|
7791
|
+
ProjectsServerApi.prototype.revertServiceChangeRaw = function (requestParameters, initOverrides) {
|
|
7792
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7793
|
+
var requestOptions, response;
|
|
7794
|
+
return __generator(this, function (_a) {
|
|
7795
|
+
switch (_a.label) {
|
|
7796
|
+
case 0: return [4 /*yield*/, this.revertServiceChangeRequestOpts(requestParameters)];
|
|
7797
|
+
case 1:
|
|
7798
|
+
requestOptions = _a.sent();
|
|
7799
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
7800
|
+
case 2:
|
|
7801
|
+
response = _a.sent();
|
|
7802
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, RevertServiceChangeResponse_1.RevertServiceChangeResponseFromJSON)(jsonValue); })];
|
|
7803
|
+
}
|
|
7804
|
+
});
|
|
7805
|
+
});
|
|
7806
|
+
};
|
|
7807
|
+
/**
|
|
7808
|
+
*/
|
|
7809
|
+
ProjectsServerApi.prototype.revertServiceChange = function (requestParameters, initOverrides) {
|
|
7810
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7811
|
+
var response;
|
|
7812
|
+
return __generator(this, function (_a) {
|
|
7813
|
+
switch (_a.label) {
|
|
7814
|
+
case 0: return [4 /*yield*/, this.revertServiceChangeRaw(requestParameters, initOverrides)];
|
|
7815
|
+
case 1:
|
|
7816
|
+
response = _a.sent();
|
|
7817
|
+
return [4 /*yield*/, response.value()];
|
|
7818
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
7819
|
+
}
|
|
7820
|
+
});
|
|
7821
|
+
});
|
|
7822
|
+
};
|
|
7823
|
+
/**
|
|
7824
|
+
* Creates request options for revertWebAppChange without sending the request
|
|
7825
|
+
*/
|
|
7826
|
+
ProjectsServerApi.prototype.revertWebAppChangeRequestOpts = function (requestParameters) {
|
|
7827
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7828
|
+
var queryParameters, headerParameters, urlPath;
|
|
7829
|
+
return __generator(this, function (_a) {
|
|
7830
|
+
if (requestParameters['projectId'] == null) {
|
|
7831
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling revertWebAppChange().');
|
|
7832
|
+
}
|
|
7833
|
+
if (requestParameters['webAppId'] == null) {
|
|
7834
|
+
throw new runtime.RequiredError('webAppId', 'Required parameter "webAppId" was null or undefined when calling revertWebAppChange().');
|
|
7835
|
+
}
|
|
7836
|
+
if (requestParameters['logId'] == null) {
|
|
7837
|
+
throw new runtime.RequiredError('logId', 'Required parameter "logId" was null or undefined when calling revertWebAppChange().');
|
|
7838
|
+
}
|
|
7839
|
+
queryParameters = {};
|
|
7840
|
+
headerParameters = {};
|
|
7841
|
+
urlPath = "/api/v1/projects/{projectId}/web-apps/{webAppId}/history/{logId}/revert";
|
|
7842
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
7843
|
+
urlPath = urlPath.replace('{webAppId}', encodeURIComponent(String(requestParameters['webAppId'])));
|
|
7844
|
+
urlPath = urlPath.replace('{logId}', encodeURIComponent(String(requestParameters['logId'])));
|
|
7845
|
+
return [2 /*return*/, {
|
|
7846
|
+
path: urlPath,
|
|
7847
|
+
method: 'POST',
|
|
7848
|
+
headers: headerParameters,
|
|
7849
|
+
query: queryParameters,
|
|
7850
|
+
}];
|
|
7851
|
+
});
|
|
7852
|
+
});
|
|
7853
|
+
};
|
|
7854
|
+
/**
|
|
7855
|
+
*/
|
|
7856
|
+
ProjectsServerApi.prototype.revertWebAppChangeRaw = function (requestParameters, initOverrides) {
|
|
7857
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7858
|
+
var requestOptions, response;
|
|
7859
|
+
return __generator(this, function (_a) {
|
|
7860
|
+
switch (_a.label) {
|
|
7861
|
+
case 0: return [4 /*yield*/, this.revertWebAppChangeRequestOpts(requestParameters)];
|
|
7862
|
+
case 1:
|
|
7863
|
+
requestOptions = _a.sent();
|
|
7864
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
7865
|
+
case 2:
|
|
7866
|
+
response = _a.sent();
|
|
7867
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, RevertWebAppChangeResponse_1.RevertWebAppChangeResponseFromJSON)(jsonValue); })];
|
|
7868
|
+
}
|
|
7869
|
+
});
|
|
7870
|
+
});
|
|
7871
|
+
};
|
|
7872
|
+
/**
|
|
7873
|
+
*/
|
|
7874
|
+
ProjectsServerApi.prototype.revertWebAppChange = function (requestParameters, initOverrides) {
|
|
7875
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7876
|
+
var response;
|
|
7877
|
+
return __generator(this, function (_a) {
|
|
7878
|
+
switch (_a.label) {
|
|
7879
|
+
case 0: return [4 /*yield*/, this.revertWebAppChangeRaw(requestParameters, initOverrides)];
|
|
7880
|
+
case 1:
|
|
7881
|
+
response = _a.sent();
|
|
7882
|
+
return [4 /*yield*/, response.value()];
|
|
7883
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
7884
|
+
}
|
|
7885
|
+
});
|
|
7886
|
+
});
|
|
7887
|
+
};
|
|
7479
7888
|
/**
|
|
7480
7889
|
* Creates request options for revokeAllUserSessions without sending the request
|
|
7481
7890
|
*/
|