@forteplatforms/sdk 1.0.166 → 1.0.169

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.
@@ -62,6 +62,7 @@ import { type UpdateForteServiceResponse } from '../models/UpdateForteServiceRes
62
62
  import { type UpdateNotificationTemplatesRequest } from '../models/UpdateNotificationTemplatesRequest';
63
63
  import { type UpdatePaymentTriggerRequest } from '../models/UpdatePaymentTriggerRequest';
64
64
  import { type UpdateProjectRequest } from '../models/UpdateProjectRequest';
65
+ import { type UpdateUserRequest } from '../models/UpdateUserRequest';
65
66
  import { type UpdateWebAppRequest } from '../models/UpdateWebAppRequest';
66
67
  import { type UpdateWebAppResponse } from '../models/UpdateWebAppResponse';
67
68
  import { type UserMetricsResponse } from '../models/UserMetricsResponse';
@@ -98,6 +99,11 @@ export interface AdminSendUserContactMethodVerificationCodeRequest {
98
99
  userId: string;
99
100
  contactMethodId: string;
100
101
  }
102
+ export interface AdminUpdateUserRequest {
103
+ projectId: string;
104
+ userId: string;
105
+ updateUserRequest: UpdateUserRequest;
106
+ }
101
107
  export interface AdminVerifyUserContactMethodRequest {
102
108
  projectId: string;
103
109
  userId: string;
@@ -490,6 +496,16 @@ export declare class ProjectsServerApi extends runtime.BaseAPI {
490
496
  /**
491
497
  */
492
498
  adminSendUserContactMethodVerificationCode(requestParameters: AdminSendUserContactMethodVerificationCodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ContactMethod>;
499
+ /**
500
+ * Creates request options for adminUpdateUser without sending the request
501
+ */
502
+ adminUpdateUserRequestOpts(requestParameters: AdminUpdateUserRequest): Promise<runtime.RequestOpts>;
503
+ /**
504
+ */
505
+ adminUpdateUserRaw(requestParameters: AdminUpdateUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserObject>>;
506
+ /**
507
+ */
508
+ adminUpdateUser(requestParameters: AdminUpdateUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserObject>;
493
509
  /**
494
510
  * Creates request options for adminVerifyUserContactMethod without sending the request
495
511
  */
@@ -1159,6 +1175,7 @@ export declare const ListUserActionLogsActionTypeType: {
1159
1175
  readonly USER_SUSPENDED: "USER_SUSPENDED";
1160
1176
  readonly USER_DELETED: "USER_DELETED";
1161
1177
  readonly USER_HARD_DELETED: "USER_HARD_DELETED";
1178
+ readonly USER_ADMIN_UPDATED: "USER_ADMIN_UPDATED";
1162
1179
  readonly CONTACT_METHOD_ADDED: "CONTACT_METHOD_ADDED";
1163
1180
  readonly CONTACT_METHOD_REMOVED: "CONTACT_METHOD_REMOVED";
1164
1181
  readonly CONTACT_METHOD_DISPLACED: "CONTACT_METHOD_DISPLACED";
@@ -118,6 +118,7 @@ var UpdateForteServiceResponse_1 = require("../models/UpdateForteServiceResponse
118
118
  var UpdateNotificationTemplatesRequest_1 = require("../models/UpdateNotificationTemplatesRequest");
119
119
  var UpdatePaymentTriggerRequest_1 = require("../models/UpdatePaymentTriggerRequest");
120
120
  var UpdateProjectRequest_1 = require("../models/UpdateProjectRequest");
121
+ var UpdateUserRequest_1 = require("../models/UpdateUserRequest");
121
122
  var UpdateWebAppRequest_1 = require("../models/UpdateWebAppRequest");
122
123
  var UpdateWebAppResponse_1 = require("../models/UpdateWebAppResponse");
123
124
  var UserMetricsResponse_1 = require("../models/UserMetricsResponse");
@@ -523,6 +524,72 @@ var ProjectsServerApi = /** @class */ (function (_super) {
523
524
  });
524
525
  });
525
526
  };
527
+ /**
528
+ * Creates request options for adminUpdateUser without sending the request
529
+ */
530
+ ProjectsServerApi.prototype.adminUpdateUserRequestOpts = function (requestParameters) {
531
+ return __awaiter(this, void 0, void 0, function () {
532
+ var queryParameters, headerParameters, urlPath;
533
+ return __generator(this, function (_a) {
534
+ if (requestParameters['projectId'] == null) {
535
+ throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling adminUpdateUser().');
536
+ }
537
+ if (requestParameters['userId'] == null) {
538
+ throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling adminUpdateUser().');
539
+ }
540
+ if (requestParameters['updateUserRequest'] == null) {
541
+ throw new runtime.RequiredError('updateUserRequest', 'Required parameter "updateUserRequest" was null or undefined when calling adminUpdateUser().');
542
+ }
543
+ queryParameters = {};
544
+ headerParameters = {};
545
+ headerParameters['Content-Type'] = 'application/json';
546
+ urlPath = "/api/v1/projects/{projectId}/users/{userId}";
547
+ urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
548
+ urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
549
+ return [2 /*return*/, {
550
+ path: urlPath,
551
+ method: 'PATCH',
552
+ headers: headerParameters,
553
+ query: queryParameters,
554
+ body: (0, UpdateUserRequest_1.UpdateUserRequestToJSON)(requestParameters['updateUserRequest']),
555
+ }];
556
+ });
557
+ });
558
+ };
559
+ /**
560
+ */
561
+ ProjectsServerApi.prototype.adminUpdateUserRaw = function (requestParameters, initOverrides) {
562
+ return __awaiter(this, void 0, void 0, function () {
563
+ var requestOptions, response;
564
+ return __generator(this, function (_a) {
565
+ switch (_a.label) {
566
+ case 0: return [4 /*yield*/, this.adminUpdateUserRequestOpts(requestParameters)];
567
+ case 1:
568
+ requestOptions = _a.sent();
569
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
570
+ case 2:
571
+ response = _a.sent();
572
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, UserObject_1.UserObjectFromJSON)(jsonValue); })];
573
+ }
574
+ });
575
+ });
576
+ };
577
+ /**
578
+ */
579
+ ProjectsServerApi.prototype.adminUpdateUser = function (requestParameters, initOverrides) {
580
+ return __awaiter(this, void 0, void 0, function () {
581
+ var response;
582
+ return __generator(this, function (_a) {
583
+ switch (_a.label) {
584
+ case 0: return [4 /*yield*/, this.adminUpdateUserRaw(requestParameters, initOverrides)];
585
+ case 1:
586
+ response = _a.sent();
587
+ return [4 /*yield*/, response.value()];
588
+ case 2: return [2 /*return*/, _a.sent()];
589
+ }
590
+ });
591
+ });
592
+ };
526
593
  /**
527
594
  * Creates request options for adminVerifyUserContactMethod without sending the request
528
595
  */
@@ -4711,6 +4778,7 @@ exports.ListUserActionLogsActionTypeType = {
4711
4778
  USER_SUSPENDED: 'USER_SUSPENDED',
4712
4779
  USER_DELETED: 'USER_DELETED',
4713
4780
  USER_HARD_DELETED: 'USER_HARD_DELETED',
4781
+ USER_ADMIN_UPDATED: 'USER_ADMIN_UPDATED',
4714
4782
  CONTACT_METHOD_ADDED: 'CONTACT_METHOD_ADDED',
4715
4783
  CONTACT_METHOD_REMOVED: 'CONTACT_METHOD_REMOVED',
4716
4784
  CONTACT_METHOD_DISPLACED: 'CONTACT_METHOD_DISPLACED',
@@ -0,0 +1,32 @@
1
+ /**
2
+ * OpenAPI definition
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface UpdateUserRequest
16
+ */
17
+ export interface UpdateUserRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof UpdateUserRequest
22
+ */
23
+ fullName?: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the UpdateUserRequest interface.
27
+ */
28
+ export declare function instanceOfUpdateUserRequest(value: object): value is UpdateUserRequest;
29
+ export declare function UpdateUserRequestFromJSON(json: any): UpdateUserRequest;
30
+ export declare function UpdateUserRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateUserRequest;
31
+ export declare function UpdateUserRequestToJSON(json: any): UpdateUserRequest;
32
+ export declare function UpdateUserRequestToJSONTyped(value?: UpdateUserRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * OpenAPI definition
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfUpdateUserRequest = instanceOfUpdateUserRequest;
17
+ exports.UpdateUserRequestFromJSON = UpdateUserRequestFromJSON;
18
+ exports.UpdateUserRequestFromJSONTyped = UpdateUserRequestFromJSONTyped;
19
+ exports.UpdateUserRequestToJSON = UpdateUserRequestToJSON;
20
+ exports.UpdateUserRequestToJSONTyped = UpdateUserRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the UpdateUserRequest interface.
23
+ */
24
+ function instanceOfUpdateUserRequest(value) {
25
+ return true;
26
+ }
27
+ function UpdateUserRequestFromJSON(json) {
28
+ return UpdateUserRequestFromJSONTyped(json, false);
29
+ }
30
+ function UpdateUserRequestFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'fullName': json['fullName'] == null ? undefined : json['fullName'],
36
+ };
37
+ }
38
+ function UpdateUserRequestToJSON(json) {
39
+ return UpdateUserRequestToJSONTyped(json, false);
40
+ }
41
+ function UpdateUserRequestToJSONTyped(value, ignoreDiscriminator) {
42
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'fullName': value['fullName'],
48
+ };
49
+ }
@@ -62,6 +62,7 @@ export declare const UserActionLogObjectActionTypeType: {
62
62
  readonly USER_SUSPENDED: "USER_SUSPENDED";
63
63
  readonly USER_DELETED: "USER_DELETED";
64
64
  readonly USER_HARD_DELETED: "USER_HARD_DELETED";
65
+ readonly USER_ADMIN_UPDATED: "USER_ADMIN_UPDATED";
65
66
  readonly CONTACT_METHOD_ADDED: "CONTACT_METHOD_ADDED";
66
67
  readonly CONTACT_METHOD_REMOVED: "CONTACT_METHOD_REMOVED";
67
68
  readonly CONTACT_METHOD_DISPLACED: "CONTACT_METHOD_DISPLACED";
@@ -27,6 +27,7 @@ exports.UserActionLogObjectActionTypeType = {
27
27
  USER_SUSPENDED: 'USER_SUSPENDED',
28
28
  USER_DELETED: 'USER_DELETED',
29
29
  USER_HARD_DELETED: 'USER_HARD_DELETED',
30
+ USER_ADMIN_UPDATED: 'USER_ADMIN_UPDATED',
30
31
  CONTACT_METHOD_ADDED: 'CONTACT_METHOD_ADDED',
31
32
  CONTACT_METHOD_REMOVED: 'CONTACT_METHOD_REMOVED',
32
33
  CONTACT_METHOD_DISPLACED: 'CONTACT_METHOD_DISPLACED',
@@ -89,6 +89,18 @@ export interface WebAppBuildRequestObject {
89
89
  * @memberof WebAppBuildRequestObject
90
90
  */
91
91
  appPackageName?: string;
92
+ /**
93
+ *
94
+ * @type {string}
95
+ * @memberof WebAppBuildRequestObject
96
+ */
97
+ containerImageUri?: string;
98
+ /**
99
+ *
100
+ * @type {string}
101
+ * @memberof WebAppBuildRequestObject
102
+ */
103
+ dockerfilePath?: string;
92
104
  /**
93
105
  *
94
106
  * @type {string}
@@ -107,6 +107,8 @@ function WebAppBuildRequestObjectFromJSONTyped(json, ignoreDiscriminator) {
107
107
  'monorepoType': json['monorepoType'] == null ? undefined : json['monorepoType'],
108
108
  'workspaceRoot': json['workspaceRoot'] == null ? undefined : json['workspaceRoot'],
109
109
  'appPackageName': json['appPackageName'] == null ? undefined : json['appPackageName'],
110
+ 'containerImageUri': json['containerImageUri'] == null ? undefined : json['containerImageUri'],
111
+ 'dockerfilePath': json['dockerfilePath'] == null ? undefined : json['dockerfilePath'],
110
112
  'outputZipS3Key': json['outputZipS3Key'] == null ? undefined : json['outputZipS3Key'],
111
113
  'hostingDeploymentId': json['hostingDeploymentId'] == null ? undefined : json['hostingDeploymentId'],
112
114
  'hostingDeploymentStatus': json['hostingDeploymentStatus'] == null ? undefined : json['hostingDeploymentStatus'],
@@ -145,6 +147,8 @@ function WebAppBuildRequestObjectToJSONTyped(value, ignoreDiscriminator) {
145
147
  'monorepoType': value['monorepoType'],
146
148
  'workspaceRoot': value['workspaceRoot'],
147
149
  'appPackageName': value['appPackageName'],
150
+ 'containerImageUri': value['containerImageUri'],
151
+ 'dockerfilePath': value['dockerfilePath'],
148
152
  'outputZipS3Key': value['outputZipS3Key'],
149
153
  'hostingDeploymentId': value['hostingDeploymentId'],
150
154
  'hostingDeploymentStatus': value['hostingDeploymentStatus'],
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import type { CustomDomain } from './CustomDomain';
13
13
  import type { WebAppDetectionResponse } from './WebAppDetectionResponse';
14
+ import type { DockerfileGenerationResponse } from './DockerfileGenerationResponse';
14
15
  /**
15
16
  *
16
17
  * @export
@@ -113,12 +114,30 @@ export interface WebAppObject {
113
114
  * @memberof WebAppObject
114
115
  */
115
116
  detectionVersion?: number;
117
+ /**
118
+ *
119
+ * @type {string}
120
+ * @memberof WebAppObject
121
+ */
122
+ containerImageUri?: string;
116
123
  /**
117
124
  *
118
125
  * @type {WebAppDetectionResponse}
119
126
  * @memberof WebAppObject
120
127
  */
121
128
  detectionResponse?: WebAppDetectionResponse;
129
+ /**
130
+ *
131
+ * @type {string}
132
+ * @memberof WebAppObject
133
+ */
134
+ dockerfilePath?: string;
135
+ /**
136
+ *
137
+ * @type {DockerfileGenerationResponse}
138
+ * @memberof WebAppObject
139
+ */
140
+ dockerfileDetectionResponse?: DockerfileGenerationResponse;
122
141
  /**
123
142
  *
124
143
  * @type {string}
@@ -21,6 +21,7 @@ exports.WebAppObjectToJSON = WebAppObjectToJSON;
21
21
  exports.WebAppObjectToJSONTyped = WebAppObjectToJSONTyped;
22
22
  var CustomDomain_1 = require("./CustomDomain");
23
23
  var WebAppDetectionResponse_1 = require("./WebAppDetectionResponse");
24
+ var DockerfileGenerationResponse_1 = require("./DockerfileGenerationResponse");
24
25
  /**
25
26
  * @export
26
27
  */
@@ -82,7 +83,10 @@ function WebAppObjectFromJSONTyped(json, ignoreDiscriminator) {
82
83
  'workspaceRoot': json['workspaceRoot'] == null ? undefined : json['workspaceRoot'],
83
84
  'appPackageName': json['appPackageName'] == null ? undefined : json['appPackageName'],
84
85
  'detectionVersion': json['detectionVersion'] == null ? undefined : json['detectionVersion'],
86
+ 'containerImageUri': json['containerImageUri'] == null ? undefined : json['containerImageUri'],
85
87
  'detectionResponse': json['detectionResponse'] == null ? undefined : (0, WebAppDetectionResponse_1.WebAppDetectionResponseFromJSON)(json['detectionResponse']),
88
+ 'dockerfilePath': json['dockerfilePath'] == null ? undefined : json['dockerfilePath'],
89
+ 'dockerfileDetectionResponse': json['dockerfileDetectionResponse'] == null ? undefined : (0, DockerfileGenerationResponse_1.DockerfileGenerationResponseFromJSON)(json['dockerfileDetectionResponse']),
86
90
  'hostingProviderAppId': json['hostingProviderAppId'] == null ? undefined : json['hostingProviderAppId'],
87
91
  'hostingProviderBranchName': json['hostingProviderBranchName'] == null ? undefined : json['hostingProviderBranchName'],
88
92
  'hostingProviderDomainStatus': json['hostingProviderDomainStatus'] == null ? undefined : json['hostingProviderDomainStatus'],
@@ -123,7 +127,10 @@ function WebAppObjectToJSONTyped(value, ignoreDiscriminator) {
123
127
  'workspaceRoot': value['workspaceRoot'],
124
128
  'appPackageName': value['appPackageName'],
125
129
  'detectionVersion': value['detectionVersion'],
130
+ 'containerImageUri': value['containerImageUri'],
126
131
  'detectionResponse': (0, WebAppDetectionResponse_1.WebAppDetectionResponseToJSON)(value['detectionResponse']),
132
+ 'dockerfilePath': value['dockerfilePath'],
133
+ 'dockerfileDetectionResponse': (0, DockerfileGenerationResponse_1.DockerfileGenerationResponseToJSON)(value['dockerfileDetectionResponse']),
127
134
  'hostingProviderAppId': value['hostingProviderAppId'],
128
135
  'hostingProviderBranchName': value['hostingProviderBranchName'],
129
136
  'hostingProviderDomainStatus': value['hostingProviderDomainStatus'],
@@ -93,6 +93,7 @@ export * from './UpdateForteServiceResponse';
93
93
  export * from './UpdateNotificationTemplatesRequest';
94
94
  export * from './UpdatePaymentTriggerRequest';
95
95
  export * from './UpdateProjectRequest';
96
+ export * from './UpdateUserRequest';
96
97
  export * from './UpdateWebAppRequest';
97
98
  export * from './UpdateWebAppResponse';
98
99
  export * from './UserActionLogObject';
@@ -111,6 +111,7 @@ __exportStar(require("./UpdateForteServiceResponse"), exports);
111
111
  __exportStar(require("./UpdateNotificationTemplatesRequest"), exports);
112
112
  __exportStar(require("./UpdatePaymentTriggerRequest"), exports);
113
113
  __exportStar(require("./UpdateProjectRequest"), exports);
114
+ __exportStar(require("./UpdateUserRequest"), exports);
114
115
  __exportStar(require("./UpdateWebAppRequest"), exports);
115
116
  __exportStar(require("./UpdateWebAppResponse"), exports);
116
117
  __exportStar(require("./UserActionLogObject"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forteplatforms/sdk",
3
- "version": "1.0.166",
3
+ "version": "1.0.169",
4
4
  "description": "Official TypeScript SDK for Forte Platforms",
5
5
  "author": "Forte Platforms <support@forteplatforms.com>",
6
6
  "repository": {