@forteplatforms/sdk 1.0.68 → 1.0.85

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.
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AddContactMethodRequest, ApiKeySummary, ContactMethod, CreateForteServiceRequest, CreateProjectApiKeyRequest, CreateProjectApiKeyResponse, CreateServiceRequestProxyRequest, CreateServiceRequestProxyResponse, CreateWebAppRequest, PaginatedResponseLogLineObject, PaginatedResponseRequestLogObject, PaginatedResponseServiceBuildRequestObject, PaginatedResponseUserActionLogObject, PaginatedResponseUserObject, PaginatedResponseWebAppBuildRequestObject, ProjectObject, RequestLogObject, ServiceBuildRequestObject, ServiceMetricsResponse, ServiceObject, TestInvocationRequest, TestInvocationResponse, UpdateForteServiceRequest, UpdateForteServiceResponse, UpdateProjectRequest, UpdateWebAppRequest, UpdateWebAppResponse, UserMetricsResponse, UserObject, WebAppBuildRequestObject, WebAppObject } from '../models/index';
13
+ import type { AddContactMethodRequest, ApiKeySummary, ContactMethod, CreateForteServiceRequest, CreateProjectApiKeyRequest, CreateProjectApiKeyResponse, CreateServiceRequestProxyRequest, CreateServiceRequestProxyResponse, CreateWebAppRequest, PaginatedResponseLogLineObject, PaginatedResponseRequestLogObject, PaginatedResponseServiceBuildRequestObject, PaginatedResponseUserActionLogObject, PaginatedResponseUserObject, PaginatedResponseWebAppBuildRequestObject, ProjectObject, RequestLogObject, SendUserEmailRequest, SendUserSmsRequest, ServiceBuildRequestObject, ServiceMetricsResponse, ServiceObject, TestInvocationRequest, TestInvocationResponse, UpdateForteServiceRequest, UpdateForteServiceResponse, UpdateProjectRequest, UpdateWebAppRequest, UpdateWebAppResponse, UserMetricsResponse, UserObject, WebAppBuildRequestObject, WebAppObject } from '../models/index';
14
14
  export interface AdminAddUserContactMethodRequest {
15
15
  projectId: string;
16
16
  userId: string;
@@ -189,6 +189,16 @@ export interface SearchLogLinesRequest {
189
189
  level?: string;
190
190
  nextToken?: string;
191
191
  }
192
+ export interface SendUserEmailOperationRequest {
193
+ userId: string;
194
+ projectId: string;
195
+ sendUserEmailRequest: SendUserEmailRequest;
196
+ }
197
+ export interface SendUserSmsOperationRequest {
198
+ userId: string;
199
+ projectId: string;
200
+ sendUserSmsRequest: SendUserSmsRequest;
201
+ }
192
202
  export interface SuspendUserRequest {
193
203
  userId: string;
194
204
  projectId: string;
@@ -426,6 +436,18 @@ export declare class ProjectsServerApi extends runtime.BaseAPI {
426
436
  /**
427
437
  */
428
438
  searchLogLines(requestParameters: SearchLogLinesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseLogLineObject>;
439
+ /**
440
+ */
441
+ sendUserEmailRaw(requestParameters: SendUserEmailOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<any>>;
442
+ /**
443
+ */
444
+ sendUserEmail(requestParameters: SendUserEmailOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any>;
445
+ /**
446
+ */
447
+ sendUserSmsRaw(requestParameters: SendUserSmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<any>>;
448
+ /**
449
+ */
450
+ sendUserSms(requestParameters: SendUserSmsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<any>;
429
451
  /**
430
452
  */
431
453
  suspendUserRaw(requestParameters: SuspendUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserObject>>;
@@ -491,5 +513,12 @@ export declare const ListUserActionLogsActionTypeType: {
491
513
  readonly CONTACT_METHOD_VERIFIED: "CONTACT_METHOD_VERIFIED";
492
514
  readonly USER_LOGIN: "USER_LOGIN";
493
515
  readonly USER_LOGOUT: "USER_LOGOUT";
516
+ readonly PAYMENT_CONNECT_SUBMITTED: "PAYMENT_CONNECT_SUBMITTED";
517
+ readonly PAYMENT_CONNECT_UPDATED: "PAYMENT_CONNECT_UPDATED";
518
+ readonly PAYMENT_CONNECT_RESUME_LINK_SENT: "PAYMENT_CONNECT_RESUME_LINK_SENT";
519
+ readonly PAYMENT_CONNECT_SYNCED: "PAYMENT_CONNECT_SYNCED";
520
+ readonly PAYMENT_CONNECT_VERIFIED: "PAYMENT_CONNECT_VERIFIED";
521
+ readonly PAYMENT_CONNECT_REJECTED: "PAYMENT_CONNECT_REJECTED";
522
+ readonly PAYMENT_CONNECT_DEAUTHORIZED: "PAYMENT_CONNECT_DEAUTHORIZED";
494
523
  };
495
524
  export type ListUserActionLogsActionTypeType = typeof ListUserActionLogsActionTypeType[keyof typeof ListUserActionLogsActionTypeType];
@@ -1873,6 +1873,124 @@ var ProjectsServerApi = /** @class */ (function (_super) {
1873
1873
  });
1874
1874
  });
1875
1875
  };
1876
+ /**
1877
+ */
1878
+ ProjectsServerApi.prototype.sendUserEmailRaw = function (requestParameters, initOverrides) {
1879
+ return __awaiter(this, void 0, void 0, function () {
1880
+ var queryParameters, headerParameters, urlPath, response;
1881
+ return __generator(this, function (_a) {
1882
+ switch (_a.label) {
1883
+ case 0:
1884
+ if (requestParameters['userId'] == null) {
1885
+ throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling sendUserEmail().');
1886
+ }
1887
+ if (requestParameters['projectId'] == null) {
1888
+ throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling sendUserEmail().');
1889
+ }
1890
+ if (requestParameters['sendUserEmailRequest'] == null) {
1891
+ throw new runtime.RequiredError('sendUserEmailRequest', 'Required parameter "sendUserEmailRequest" was null or undefined when calling sendUserEmail().');
1892
+ }
1893
+ queryParameters = {};
1894
+ headerParameters = {};
1895
+ headerParameters['Content-Type'] = 'application/json';
1896
+ urlPath = "/api/v1/projects/{projectId}/users/{userId}/email";
1897
+ urlPath = urlPath.replace("{".concat("userId", "}"), encodeURIComponent(String(requestParameters['userId'])));
1898
+ urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
1899
+ return [4 /*yield*/, this.request({
1900
+ path: urlPath,
1901
+ method: 'POST',
1902
+ headers: headerParameters,
1903
+ query: queryParameters,
1904
+ body: (0, index_1.SendUserEmailRequestToJSON)(requestParameters['sendUserEmailRequest']),
1905
+ }, initOverrides)];
1906
+ case 1:
1907
+ response = _a.sent();
1908
+ if (this.isJsonMime(response.headers.get('content-type'))) {
1909
+ return [2 /*return*/, new runtime.JSONApiResponse(response)];
1910
+ }
1911
+ else {
1912
+ return [2 /*return*/, new runtime.TextApiResponse(response)];
1913
+ }
1914
+ return [2 /*return*/];
1915
+ }
1916
+ });
1917
+ });
1918
+ };
1919
+ /**
1920
+ */
1921
+ ProjectsServerApi.prototype.sendUserEmail = function (requestParameters, initOverrides) {
1922
+ return __awaiter(this, void 0, void 0, function () {
1923
+ var response;
1924
+ return __generator(this, function (_a) {
1925
+ switch (_a.label) {
1926
+ case 0: return [4 /*yield*/, this.sendUserEmailRaw(requestParameters, initOverrides)];
1927
+ case 1:
1928
+ response = _a.sent();
1929
+ return [4 /*yield*/, response.value()];
1930
+ case 2: return [2 /*return*/, _a.sent()];
1931
+ }
1932
+ });
1933
+ });
1934
+ };
1935
+ /**
1936
+ */
1937
+ ProjectsServerApi.prototype.sendUserSmsRaw = function (requestParameters, initOverrides) {
1938
+ return __awaiter(this, void 0, void 0, function () {
1939
+ var queryParameters, headerParameters, urlPath, response;
1940
+ return __generator(this, function (_a) {
1941
+ switch (_a.label) {
1942
+ case 0:
1943
+ if (requestParameters['userId'] == null) {
1944
+ throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling sendUserSms().');
1945
+ }
1946
+ if (requestParameters['projectId'] == null) {
1947
+ throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling sendUserSms().');
1948
+ }
1949
+ if (requestParameters['sendUserSmsRequest'] == null) {
1950
+ throw new runtime.RequiredError('sendUserSmsRequest', 'Required parameter "sendUserSmsRequest" was null or undefined when calling sendUserSms().');
1951
+ }
1952
+ queryParameters = {};
1953
+ headerParameters = {};
1954
+ headerParameters['Content-Type'] = 'application/json';
1955
+ urlPath = "/api/v1/projects/{projectId}/users/{userId}/sms";
1956
+ urlPath = urlPath.replace("{".concat("userId", "}"), encodeURIComponent(String(requestParameters['userId'])));
1957
+ urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
1958
+ return [4 /*yield*/, this.request({
1959
+ path: urlPath,
1960
+ method: 'POST',
1961
+ headers: headerParameters,
1962
+ query: queryParameters,
1963
+ body: (0, index_1.SendUserSmsRequestToJSON)(requestParameters['sendUserSmsRequest']),
1964
+ }, initOverrides)];
1965
+ case 1:
1966
+ response = _a.sent();
1967
+ if (this.isJsonMime(response.headers.get('content-type'))) {
1968
+ return [2 /*return*/, new runtime.JSONApiResponse(response)];
1969
+ }
1970
+ else {
1971
+ return [2 /*return*/, new runtime.TextApiResponse(response)];
1972
+ }
1973
+ return [2 /*return*/];
1974
+ }
1975
+ });
1976
+ });
1977
+ };
1978
+ /**
1979
+ */
1980
+ ProjectsServerApi.prototype.sendUserSms = function (requestParameters, initOverrides) {
1981
+ return __awaiter(this, void 0, void 0, function () {
1982
+ var response;
1983
+ return __generator(this, function (_a) {
1984
+ switch (_a.label) {
1985
+ case 0: return [4 /*yield*/, this.sendUserSmsRaw(requestParameters, initOverrides)];
1986
+ case 1:
1987
+ response = _a.sent();
1988
+ return [4 /*yield*/, response.value()];
1989
+ case 2: return [2 /*return*/, _a.sent()];
1990
+ }
1991
+ });
1992
+ });
1993
+ };
1876
1994
  /**
1877
1995
  */
1878
1996
  ProjectsServerApi.prototype.suspendUserRaw = function (requestParameters, initOverrides) {
@@ -1889,7 +2007,7 @@ var ProjectsServerApi = /** @class */ (function (_super) {
1889
2007
  }
1890
2008
  queryParameters = {};
1891
2009
  headerParameters = {};
1892
- urlPath = "/api/v1/projects/{projectId}/users/{userId}";
2010
+ urlPath = "/api/v1/projects/{projectId}/users/{userId}/suspend";
1893
2011
  urlPath = urlPath.replace("{".concat("userId", "}"), encodeURIComponent(String(requestParameters['userId'])));
1894
2012
  urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
1895
2013
  return [4 /*yield*/, this.request({
@@ -2163,5 +2281,12 @@ exports.ListUserActionLogsActionTypeType = {
2163
2281
  CONTACT_METHOD_VERIFICATION_CODE_RE_SENT: 'CONTACT_METHOD_VERIFICATION_CODE_RE_SENT',
2164
2282
  CONTACT_METHOD_VERIFIED: 'CONTACT_METHOD_VERIFIED',
2165
2283
  USER_LOGIN: 'USER_LOGIN',
2166
- USER_LOGOUT: 'USER_LOGOUT'
2284
+ USER_LOGOUT: 'USER_LOGOUT',
2285
+ PAYMENT_CONNECT_SUBMITTED: 'PAYMENT_CONNECT_SUBMITTED',
2286
+ PAYMENT_CONNECT_UPDATED: 'PAYMENT_CONNECT_UPDATED',
2287
+ PAYMENT_CONNECT_RESUME_LINK_SENT: 'PAYMENT_CONNECT_RESUME_LINK_SENT',
2288
+ PAYMENT_CONNECT_SYNCED: 'PAYMENT_CONNECT_SYNCED',
2289
+ PAYMENT_CONNECT_VERIFIED: 'PAYMENT_CONNECT_VERIFIED',
2290
+ PAYMENT_CONNECT_REJECTED: 'PAYMENT_CONNECT_REJECTED',
2291
+ PAYMENT_CONNECT_DEAUTHORIZED: 'PAYMENT_CONNECT_DEAUTHORIZED'
2167
2292
  };
@@ -21,12 +21,6 @@ export interface DockerfileDetectionOutput {
21
21
  * @memberof DockerfileDetectionOutput
22
22
  */
23
23
  dockerfilePath: string;
24
- /**
25
- * Complete contents of the Dockerfile
26
- * @type {string}
27
- * @memberof DockerfileDetectionOutput
28
- */
29
- dockerfileContents: string;
30
24
  }
31
25
  /**
32
26
  * Check if a given object implements the DockerfileDetectionOutput interface.
@@ -24,8 +24,6 @@ exports.DockerfileDetectionOutputToJSONTyped = DockerfileDetectionOutputToJSONTy
24
24
  function instanceOfDockerfileDetectionOutput(value) {
25
25
  if (!('dockerfilePath' in value) || value['dockerfilePath'] === undefined)
26
26
  return false;
27
- if (!('dockerfileContents' in value) || value['dockerfileContents'] === undefined)
28
- return false;
29
27
  return true;
30
28
  }
31
29
  function DockerfileDetectionOutputFromJSON(json) {
@@ -37,7 +35,6 @@ function DockerfileDetectionOutputFromJSONTyped(json, ignoreDiscriminator) {
37
35
  }
38
36
  return {
39
37
  'dockerfilePath': json['dockerfilePath'],
40
- 'dockerfileContents': json['dockerfileContents'],
41
38
  };
42
39
  }
43
40
  function DockerfileDetectionOutputToJSON(json) {
@@ -50,6 +47,5 @@ function DockerfileDetectionOutputToJSONTyped(value, ignoreDiscriminator) {
50
47
  }
51
48
  return {
52
49
  'dockerfilePath': value['dockerfilePath'],
53
- 'dockerfileContents': value['dockerfileContents'],
54
50
  };
55
51
  }
@@ -84,6 +84,7 @@ export declare const ForteApiExceptionErrorCodeType: {
84
84
  readonly SUPPORT_ATTACHMENT_INVALID_OWNER: "SUPPORT_ATTACHMENT_INVALID_OWNER";
85
85
  readonly SUPPORT_ATTACHMENT_ALREADY_CLAIMED: "SUPPORT_ATTACHMENT_ALREADY_CLAIMED";
86
86
  readonly SUPPORT_ATTACHMENT_TOO_LARGE: "SUPPORT_ATTACHMENT_TOO_LARGE";
87
+ readonly ACCOUNT_NOT_FOUND: "ACCOUNT_NOT_FOUND";
87
88
  readonly COMPLIANCE_REGISTRATION_ALREADY_EXISTS: "COMPLIANCE_REGISTRATION_ALREADY_EXISTS";
88
89
  readonly COMPLIANCE_REGISTRATION_NOT_FOUND: "COMPLIANCE_REGISTRATION_NOT_FOUND";
89
90
  readonly COMPLIANCE_REGISTRATION_NOT_EDITABLE: "COMPLIANCE_REGISTRATION_NOT_EDITABLE";
@@ -98,6 +99,7 @@ export declare const ForteApiExceptionErrorCodeType: {
98
99
  readonly EMAIL_LOGIN_NOT_ENABLED: "EMAIL_LOGIN_NOT_ENABLED";
99
100
  readonly PHONE_LOGIN_NOT_ENABLED: "PHONE_LOGIN_NOT_ENABLED";
100
101
  readonly MISSING_GITHUB_BRANCH: "MISSING_GITHUB_BRANCH";
102
+ readonly EXTERNAL_API_ERROR: "EXTERNAL_API_ERROR";
101
103
  };
102
104
  export type ForteApiExceptionErrorCodeType = typeof ForteApiExceptionErrorCodeType[keyof typeof ForteApiExceptionErrorCodeType];
103
105
  /**
@@ -69,6 +69,7 @@ exports.ForteApiExceptionErrorCodeType = {
69
69
  SUPPORT_ATTACHMENT_INVALID_OWNER: 'SUPPORT_ATTACHMENT_INVALID_OWNER',
70
70
  SUPPORT_ATTACHMENT_ALREADY_CLAIMED: 'SUPPORT_ATTACHMENT_ALREADY_CLAIMED',
71
71
  SUPPORT_ATTACHMENT_TOO_LARGE: 'SUPPORT_ATTACHMENT_TOO_LARGE',
72
+ ACCOUNT_NOT_FOUND: 'ACCOUNT_NOT_FOUND',
72
73
  COMPLIANCE_REGISTRATION_ALREADY_EXISTS: 'COMPLIANCE_REGISTRATION_ALREADY_EXISTS',
73
74
  COMPLIANCE_REGISTRATION_NOT_FOUND: 'COMPLIANCE_REGISTRATION_NOT_FOUND',
74
75
  COMPLIANCE_REGISTRATION_NOT_EDITABLE: 'COMPLIANCE_REGISTRATION_NOT_EDITABLE',
@@ -82,7 +83,8 @@ exports.ForteApiExceptionErrorCodeType = {
82
83
  COMPLIANCE_REGISTRATION_NOT_APPROVED: 'COMPLIANCE_REGISTRATION_NOT_APPROVED',
83
84
  EMAIL_LOGIN_NOT_ENABLED: 'EMAIL_LOGIN_NOT_ENABLED',
84
85
  PHONE_LOGIN_NOT_ENABLED: 'PHONE_LOGIN_NOT_ENABLED',
85
- MISSING_GITHUB_BRANCH: 'MISSING_GITHUB_BRANCH'
86
+ MISSING_GITHUB_BRANCH: 'MISSING_GITHUB_BRANCH',
87
+ EXTERNAL_API_ERROR: 'EXTERNAL_API_ERROR'
86
88
  };
87
89
  /**
88
90
  * Check if a given object implements the ForteApiException interface.
@@ -11,7 +11,6 @@
11
11
  */
12
12
  import type { WebAppObject } from './WebAppObject';
13
13
  import type { ServiceObject } from './ServiceObject';
14
- import type { StaticWebAppObject } from './StaticWebAppObject';
15
14
  /**
16
15
  *
17
16
  * @export
@@ -42,12 +41,6 @@ export interface ProjectObject {
42
41
  * @memberof ProjectObject
43
42
  */
44
43
  services: Array<ServiceObject>;
45
- /**
46
- *
47
- * @type {Array<StaticWebAppObject>}
48
- * @memberof ProjectObject
49
- */
50
- staticWebApps: Array<StaticWebAppObject>;
51
44
  /**
52
45
  *
53
46
  * @type {Array<WebAppObject>}
@@ -20,7 +20,6 @@ exports.ProjectObjectToJSON = ProjectObjectToJSON;
20
20
  exports.ProjectObjectToJSONTyped = ProjectObjectToJSONTyped;
21
21
  var WebAppObject_1 = require("./WebAppObject");
22
22
  var ServiceObject_1 = require("./ServiceObject");
23
- var StaticWebAppObject_1 = require("./StaticWebAppObject");
24
23
  /**
25
24
  * Check if a given object implements the ProjectObject interface.
26
25
  */
@@ -31,8 +30,6 @@ function instanceOfProjectObject(value) {
31
30
  return false;
32
31
  if (!('services' in value) || value['services'] === undefined)
33
32
  return false;
34
- if (!('staticWebApps' in value) || value['staticWebApps'] === undefined)
35
- return false;
36
33
  if (!('webApps' in value) || value['webApps'] === undefined)
37
34
  return false;
38
35
  if (!('createdTimestamp' in value) || value['createdTimestamp'] === undefined)
@@ -53,7 +50,6 @@ function ProjectObjectFromJSONTyped(json, ignoreDiscriminator) {
53
50
  'ownerAccountId': json['ownerAccountId'],
54
51
  'projectName': json['projectName'],
55
52
  'services': (json['services'].map(ServiceObject_1.ServiceObjectFromJSON)),
56
- 'staticWebApps': (json['staticWebApps'].map(StaticWebAppObject_1.StaticWebAppObjectFromJSON)),
57
53
  'webApps': (json['webApps'].map(WebAppObject_1.WebAppObjectFromJSON)),
58
54
  'createdTimestamp': (new Date(json['createdTimestamp'])),
59
55
  'lastModifiedTimestamp': json['lastModifiedTimestamp'] == null ? undefined : (new Date(json['lastModifiedTimestamp'])),
@@ -79,7 +75,6 @@ function ProjectObjectToJSONTyped(value, ignoreDiscriminator) {
79
75
  'ownerAccountId': value['ownerAccountId'],
80
76
  'projectName': value['projectName'],
81
77
  'services': (value['services'].map(ServiceObject_1.ServiceObjectToJSON)),
82
- 'staticWebApps': (value['staticWebApps'].map(StaticWebAppObject_1.StaticWebAppObjectToJSON)),
83
78
  'webApps': (value['webApps'].map(WebAppObject_1.WebAppObjectToJSON)),
84
79
  'createdTimestamp': value['createdTimestamp'].toISOString(),
85
80
  'lastModifiedTimestamp': value['lastModifiedTimestamp'] == null ? value['lastModifiedTimestamp'] : value['lastModifiedTimestamp'].toISOString(),
@@ -0,0 +1,38 @@
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 SendUserEmailRequest
16
+ */
17
+ export interface SendUserEmailRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SendUserEmailRequest
22
+ */
23
+ subject: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof SendUserEmailRequest
28
+ */
29
+ body: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the SendUserEmailRequest interface.
33
+ */
34
+ export declare function instanceOfSendUserEmailRequest(value: object): value is SendUserEmailRequest;
35
+ export declare function SendUserEmailRequestFromJSON(json: any): SendUserEmailRequest;
36
+ export declare function SendUserEmailRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SendUserEmailRequest;
37
+ export declare function SendUserEmailRequestToJSON(json: any): SendUserEmailRequest;
38
+ export declare function SendUserEmailRequestToJSONTyped(value?: SendUserEmailRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
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.instanceOfSendUserEmailRequest = instanceOfSendUserEmailRequest;
17
+ exports.SendUserEmailRequestFromJSON = SendUserEmailRequestFromJSON;
18
+ exports.SendUserEmailRequestFromJSONTyped = SendUserEmailRequestFromJSONTyped;
19
+ exports.SendUserEmailRequestToJSON = SendUserEmailRequestToJSON;
20
+ exports.SendUserEmailRequestToJSONTyped = SendUserEmailRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the SendUserEmailRequest interface.
23
+ */
24
+ function instanceOfSendUserEmailRequest(value) {
25
+ if (!('subject' in value) || value['subject'] === undefined)
26
+ return false;
27
+ if (!('body' in value) || value['body'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function SendUserEmailRequestFromJSON(json) {
32
+ return SendUserEmailRequestFromJSONTyped(json, false);
33
+ }
34
+ function SendUserEmailRequestFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'subject': json['subject'],
40
+ 'body': json['body'],
41
+ };
42
+ }
43
+ function SendUserEmailRequestToJSON(json) {
44
+ return SendUserEmailRequestToJSONTyped(json, false);
45
+ }
46
+ function SendUserEmailRequestToJSONTyped(value, ignoreDiscriminator) {
47
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'subject': value['subject'],
53
+ 'body': value['body'],
54
+ };
55
+ }
@@ -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 SendUserSmsRequest
16
+ */
17
+ export interface SendUserSmsRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SendUserSmsRequest
22
+ */
23
+ content: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the SendUserSmsRequest interface.
27
+ */
28
+ export declare function instanceOfSendUserSmsRequest(value: object): value is SendUserSmsRequest;
29
+ export declare function SendUserSmsRequestFromJSON(json: any): SendUserSmsRequest;
30
+ export declare function SendUserSmsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SendUserSmsRequest;
31
+ export declare function SendUserSmsRequestToJSON(json: any): SendUserSmsRequest;
32
+ export declare function SendUserSmsRequestToJSONTyped(value?: SendUserSmsRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
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.instanceOfSendUserSmsRequest = instanceOfSendUserSmsRequest;
17
+ exports.SendUserSmsRequestFromJSON = SendUserSmsRequestFromJSON;
18
+ exports.SendUserSmsRequestFromJSONTyped = SendUserSmsRequestFromJSONTyped;
19
+ exports.SendUserSmsRequestToJSON = SendUserSmsRequestToJSON;
20
+ exports.SendUserSmsRequestToJSONTyped = SendUserSmsRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the SendUserSmsRequest interface.
23
+ */
24
+ function instanceOfSendUserSmsRequest(value) {
25
+ if (!('content' in value) || value['content'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function SendUserSmsRequestFromJSON(json) {
30
+ return SendUserSmsRequestFromJSONTyped(json, false);
31
+ }
32
+ function SendUserSmsRequestFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'content': json['content'],
38
+ };
39
+ }
40
+ function SendUserSmsRequestToJSON(json) {
41
+ return SendUserSmsRequestToJSONTyped(json, false);
42
+ }
43
+ function SendUserSmsRequestToJSONTyped(value, ignoreDiscriminator) {
44
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'content': value['content'],
50
+ };
51
+ }
@@ -60,6 +60,13 @@ export declare const UserActionLogObjectActionTypeType: {
60
60
  readonly CONTACT_METHOD_VERIFIED: "CONTACT_METHOD_VERIFIED";
61
61
  readonly USER_LOGIN: "USER_LOGIN";
62
62
  readonly USER_LOGOUT: "USER_LOGOUT";
63
+ readonly PAYMENT_CONNECT_SUBMITTED: "PAYMENT_CONNECT_SUBMITTED";
64
+ readonly PAYMENT_CONNECT_UPDATED: "PAYMENT_CONNECT_UPDATED";
65
+ readonly PAYMENT_CONNECT_RESUME_LINK_SENT: "PAYMENT_CONNECT_RESUME_LINK_SENT";
66
+ readonly PAYMENT_CONNECT_SYNCED: "PAYMENT_CONNECT_SYNCED";
67
+ readonly PAYMENT_CONNECT_VERIFIED: "PAYMENT_CONNECT_VERIFIED";
68
+ readonly PAYMENT_CONNECT_REJECTED: "PAYMENT_CONNECT_REJECTED";
69
+ readonly PAYMENT_CONNECT_DEAUTHORIZED: "PAYMENT_CONNECT_DEAUTHORIZED";
63
70
  };
64
71
  export type UserActionLogObjectActionTypeType = typeof UserActionLogObjectActionTypeType[keyof typeof UserActionLogObjectActionTypeType];
65
72
  /**
@@ -32,7 +32,14 @@ exports.UserActionLogObjectActionTypeType = {
32
32
  CONTACT_METHOD_VERIFICATION_CODE_RE_SENT: 'CONTACT_METHOD_VERIFICATION_CODE_RE_SENT',
33
33
  CONTACT_METHOD_VERIFIED: 'CONTACT_METHOD_VERIFIED',
34
34
  USER_LOGIN: 'USER_LOGIN',
35
- USER_LOGOUT: 'USER_LOGOUT'
35
+ USER_LOGOUT: 'USER_LOGOUT',
36
+ PAYMENT_CONNECT_SUBMITTED: 'PAYMENT_CONNECT_SUBMITTED',
37
+ PAYMENT_CONNECT_UPDATED: 'PAYMENT_CONNECT_UPDATED',
38
+ PAYMENT_CONNECT_RESUME_LINK_SENT: 'PAYMENT_CONNECT_RESUME_LINK_SENT',
39
+ PAYMENT_CONNECT_SYNCED: 'PAYMENT_CONNECT_SYNCED',
40
+ PAYMENT_CONNECT_VERIFIED: 'PAYMENT_CONNECT_VERIFIED',
41
+ PAYMENT_CONNECT_REJECTED: 'PAYMENT_CONNECT_REJECTED',
42
+ PAYMENT_CONNECT_DEAUTHORIZED: 'PAYMENT_CONNECT_DEAUTHORIZED'
36
43
  };
37
44
  /**
38
45
  * Check if a given object implements the UserActionLogObject interface.
@@ -59,6 +59,18 @@ export interface WebAppBuildRequestObject {
59
59
  * @memberof WebAppBuildRequestObject
60
60
  */
61
61
  detectedFramework?: string;
62
+ /**
63
+ *
64
+ * @type {string}
65
+ * @memberof WebAppBuildRequestObject
66
+ */
67
+ installCommand?: string;
68
+ /**
69
+ *
70
+ * @type {string}
71
+ * @memberof WebAppBuildRequestObject
72
+ */
73
+ subdirectory?: string;
62
74
  /**
63
75
  *
64
76
  * @type {string}
@@ -93,6 +93,8 @@ function WebAppBuildRequestObjectFromJSONTyped(json, ignoreDiscriminator) {
93
93
  'buildCommand': json['buildCommand'] == null ? undefined : json['buildCommand'],
94
94
  'buildPath': json['buildPath'] == null ? undefined : json['buildPath'],
95
95
  'detectedFramework': json['detectedFramework'] == null ? undefined : json['detectedFramework'],
96
+ 'installCommand': json['installCommand'] == null ? undefined : json['installCommand'],
97
+ 'subdirectory': json['subdirectory'] == null ? undefined : json['subdirectory'],
96
98
  'outputZipS3Key': json['outputZipS3Key'] == null ? undefined : json['outputZipS3Key'],
97
99
  'hostingDeploymentId': json['hostingDeploymentId'] == null ? undefined : json['hostingDeploymentId'],
98
100
  'hostingDeploymentStatus': json['hostingDeploymentStatus'] == null ? undefined : json['hostingDeploymentStatus'],
@@ -126,6 +128,8 @@ function WebAppBuildRequestObjectToJSONTyped(value, ignoreDiscriminator) {
126
128
  'buildCommand': value['buildCommand'],
127
129
  'buildPath': value['buildPath'],
128
130
  'detectedFramework': value['detectedFramework'],
131
+ 'installCommand': value['installCommand'],
132
+ 'subdirectory': value['subdirectory'],
129
133
  'outputZipS3Key': value['outputZipS3Key'],
130
134
  'hostingDeploymentId': value['hostingDeploymentId'],
131
135
  'hostingDeploymentStatus': value['hostingDeploymentStatus'],
@@ -33,10 +33,11 @@ export * from './RenewSessionTokenResponse';
33
33
  export * from './RepositoryAnalysis';
34
34
  export * from './RequestLogObject';
35
35
  export * from './RequestLogObjectMeta';
36
+ export * from './SendUserEmailRequest';
37
+ export * from './SendUserSmsRequest';
36
38
  export * from './ServiceBuildRequestObject';
37
39
  export * from './ServiceMetricsResponse';
38
40
  export * from './ServiceObject';
39
- export * from './StaticWebAppObject';
40
41
  export * from './TestInvocationRequest';
41
42
  export * from './TestInvocationResponse';
42
43
  export * from './TimeSeriesDataPoint';
@@ -51,10 +51,11 @@ __exportStar(require("./RenewSessionTokenResponse"), exports);
51
51
  __exportStar(require("./RepositoryAnalysis"), exports);
52
52
  __exportStar(require("./RequestLogObject"), exports);
53
53
  __exportStar(require("./RequestLogObjectMeta"), exports);
54
+ __exportStar(require("./SendUserEmailRequest"), exports);
55
+ __exportStar(require("./SendUserSmsRequest"), exports);
54
56
  __exportStar(require("./ServiceBuildRequestObject"), exports);
55
57
  __exportStar(require("./ServiceMetricsResponse"), exports);
56
58
  __exportStar(require("./ServiceObject"), exports);
57
- __exportStar(require("./StaticWebAppObject"), exports);
58
59
  __exportStar(require("./TestInvocationRequest"), exports);
59
60
  __exportStar(require("./TestInvocationResponse"), exports);
60
61
  __exportStar(require("./TimeSeriesDataPoint"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forteplatforms/sdk",
3
- "version": "1.0.68",
3
+ "version": "1.0.85",
4
4
  "description": "Official TypeScript SDK for Forte Platforms",
5
5
  "author": "Forte Platforms <support@forteplatforms.com>",
6
6
  "repository": {
@@ -1,132 +0,0 @@
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 StaticWebAppObject
16
- */
17
- export interface StaticWebAppObject {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof StaticWebAppObject
22
- */
23
- staticWebAppId?: string;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof StaticWebAppObject
28
- */
29
- webAppName: string;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof StaticWebAppObject
34
- */
35
- forteDnsEndpoint?: string;
36
- /**
37
- *
38
- * @type {boolean}
39
- * @memberof StaticWebAppObject
40
- */
41
- forteDnsEndpointEnabled: boolean;
42
- /**
43
- *
44
- * @type {Array<string>}
45
- * @memberof StaticWebAppObject
46
- */
47
- customDnsEndpoints?: Array<string>;
48
- /**
49
- *
50
- * @type {string}
51
- * @memberof StaticWebAppObject
52
- */
53
- buildPath?: string;
54
- /**
55
- *
56
- * @type {Date}
57
- * @memberof StaticWebAppObject
58
- */
59
- createdTimestamp?: Date;
60
- /**
61
- *
62
- * @type {Date}
63
- * @memberof StaticWebAppObject
64
- */
65
- lastModifiedTimestamp?: Date;
66
- /**
67
- *
68
- * @type {string}
69
- * @memberof StaticWebAppObject
70
- */
71
- githubRepositoryUrl: string;
72
- /**
73
- *
74
- * @type {string}
75
- * @memberof StaticWebAppObject
76
- */
77
- githubBuildTrigger: StaticWebAppObjectGithubBuildTriggerType;
78
- /**
79
- *
80
- * @type {string}
81
- * @memberof StaticWebAppObject
82
- */
83
- githubBranch?: string;
84
- /**
85
- *
86
- * @type {string}
87
- * @memberof StaticWebAppObject
88
- */
89
- currentBuildId?: string;
90
- /**
91
- *
92
- * @type {Array<string>}
93
- * @memberof StaticWebAppObject
94
- */
95
- enqueuedBuildIds?: Array<string>;
96
- /**
97
- *
98
- * @type {{ [key: string]: string; }}
99
- * @memberof StaticWebAppObject
100
- */
101
- environmentVariables?: {
102
- [key: string]: string;
103
- };
104
- /**
105
- *
106
- * @type {string}
107
- * @memberof StaticWebAppObject
108
- */
109
- baseDirectory?: string;
110
- /**
111
- *
112
- * @type {Set<string>}
113
- * @memberof StaticWebAppObject
114
- */
115
- secretKeys?: Set<string>;
116
- }
117
- /**
118
- * @export
119
- */
120
- export declare const StaticWebAppObjectGithubBuildTriggerType: {
121
- readonly PUSH: "PUSH";
122
- readonly RELEASE_PUBLISHED: "RELEASE_PUBLISHED";
123
- };
124
- export type StaticWebAppObjectGithubBuildTriggerType = typeof StaticWebAppObjectGithubBuildTriggerType[keyof typeof StaticWebAppObjectGithubBuildTriggerType];
125
- /**
126
- * Check if a given object implements the StaticWebAppObject interface.
127
- */
128
- export declare function instanceOfStaticWebAppObject(value: object): value is StaticWebAppObject;
129
- export declare function StaticWebAppObjectFromJSON(json: any): StaticWebAppObject;
130
- export declare function StaticWebAppObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): StaticWebAppObject;
131
- export declare function StaticWebAppObjectToJSON(json: any): StaticWebAppObject;
132
- export declare function StaticWebAppObjectToJSONTyped(value?: StaticWebAppObject | null, ignoreDiscriminator?: boolean): any;
@@ -1,95 +0,0 @@
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.StaticWebAppObjectGithubBuildTriggerType = void 0;
17
- exports.instanceOfStaticWebAppObject = instanceOfStaticWebAppObject;
18
- exports.StaticWebAppObjectFromJSON = StaticWebAppObjectFromJSON;
19
- exports.StaticWebAppObjectFromJSONTyped = StaticWebAppObjectFromJSONTyped;
20
- exports.StaticWebAppObjectToJSON = StaticWebAppObjectToJSON;
21
- exports.StaticWebAppObjectToJSONTyped = StaticWebAppObjectToJSONTyped;
22
- /**
23
- * @export
24
- */
25
- exports.StaticWebAppObjectGithubBuildTriggerType = {
26
- PUSH: 'PUSH',
27
- RELEASE_PUBLISHED: 'RELEASE_PUBLISHED'
28
- };
29
- /**
30
- * Check if a given object implements the StaticWebAppObject interface.
31
- */
32
- function instanceOfStaticWebAppObject(value) {
33
- if (!('webAppName' in value) || value['webAppName'] === undefined)
34
- return false;
35
- if (!('forteDnsEndpointEnabled' in value) || value['forteDnsEndpointEnabled'] === undefined)
36
- return false;
37
- if (!('githubRepositoryUrl' in value) || value['githubRepositoryUrl'] === undefined)
38
- return false;
39
- if (!('githubBuildTrigger' in value) || value['githubBuildTrigger'] === undefined)
40
- return false;
41
- return true;
42
- }
43
- function StaticWebAppObjectFromJSON(json) {
44
- return StaticWebAppObjectFromJSONTyped(json, false);
45
- }
46
- function StaticWebAppObjectFromJSONTyped(json, ignoreDiscriminator) {
47
- if (json == null) {
48
- return json;
49
- }
50
- return {
51
- 'staticWebAppId': json['staticWebAppId'] == null ? undefined : json['staticWebAppId'],
52
- 'webAppName': json['webAppName'],
53
- 'forteDnsEndpoint': json['forteDnsEndpoint'] == null ? undefined : json['forteDnsEndpoint'],
54
- 'forteDnsEndpointEnabled': json['forteDnsEndpointEnabled'],
55
- 'customDnsEndpoints': json['customDnsEndpoints'] == null ? undefined : json['customDnsEndpoints'],
56
- 'buildPath': json['buildPath'] == null ? undefined : json['buildPath'],
57
- 'createdTimestamp': json['createdTimestamp'] == null ? undefined : (new Date(json['createdTimestamp'])),
58
- 'lastModifiedTimestamp': json['lastModifiedTimestamp'] == null ? undefined : (new Date(json['lastModifiedTimestamp'])),
59
- 'githubRepositoryUrl': json['githubRepositoryUrl'],
60
- 'githubBuildTrigger': json['githubBuildTrigger'],
61
- 'githubBranch': json['githubBranch'] == null ? undefined : json['githubBranch'],
62
- 'currentBuildId': json['currentBuildId'] == null ? undefined : json['currentBuildId'],
63
- 'enqueuedBuildIds': json['enqueuedBuildIds'] == null ? undefined : json['enqueuedBuildIds'],
64
- 'environmentVariables': json['environmentVariables'] == null ? undefined : json['environmentVariables'],
65
- 'baseDirectory': json['baseDirectory'] == null ? undefined : json['baseDirectory'],
66
- 'secretKeys': json['secretKeys'] == null ? undefined : new Set(json['secretKeys']),
67
- };
68
- }
69
- function StaticWebAppObjectToJSON(json) {
70
- return StaticWebAppObjectToJSONTyped(json, false);
71
- }
72
- function StaticWebAppObjectToJSONTyped(value, ignoreDiscriminator) {
73
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
74
- if (value == null) {
75
- return value;
76
- }
77
- return {
78
- 'staticWebAppId': value['staticWebAppId'],
79
- 'webAppName': value['webAppName'],
80
- 'forteDnsEndpoint': value['forteDnsEndpoint'],
81
- 'forteDnsEndpointEnabled': value['forteDnsEndpointEnabled'],
82
- 'customDnsEndpoints': value['customDnsEndpoints'],
83
- 'buildPath': value['buildPath'],
84
- 'createdTimestamp': value['createdTimestamp'] == null ? value['createdTimestamp'] : value['createdTimestamp'].toISOString(),
85
- 'lastModifiedTimestamp': value['lastModifiedTimestamp'] == null ? value['lastModifiedTimestamp'] : value['lastModifiedTimestamp'].toISOString(),
86
- 'githubRepositoryUrl': value['githubRepositoryUrl'],
87
- 'githubBuildTrigger': value['githubBuildTrigger'],
88
- 'githubBranch': value['githubBranch'],
89
- 'currentBuildId': value['currentBuildId'],
90
- 'enqueuedBuildIds': value['enqueuedBuildIds'],
91
- 'environmentVariables': value['environmentVariables'],
92
- 'baseDirectory': value['baseDirectory'],
93
- 'secretKeys': value['secretKeys'] == null ? undefined : Array.from(value['secretKeys']),
94
- };
95
- }