@equisoft/equisoft-connect-sdk-typescript 10.33.7-snapshot.20221103023624 → 10.33.7

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,10 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { DatabasesDatabase, DatabasesListDatabasesResponse, UsersListUsersResponse, UsersUpdateUserPayload, UsersUser } from '../models';
14
- export interface GetDatabaseRequest {
15
- uuid: string;
16
- }
13
+ import type { DatabasesListDatabasesResponse, UsersListUsersResponse, UsersUpdateUserPayload, UsersUser } from '../models';
17
14
  export interface GetUserRequest {
18
15
  uuid: string;
19
16
  id: number;
@@ -34,12 +31,6 @@ export interface UpdateUserRequest {
34
31
  *
35
32
  */
36
33
  export declare class DatabasesApi extends runtime.BaseAPI {
37
- /**
38
- */
39
- getDatabaseRaw(requestParameters: GetDatabaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DatabasesDatabase>>;
40
- /**
41
- */
42
- getDatabase(requestParameters: GetDatabaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DatabasesDatabase>;
43
34
  /**
44
35
  */
45
36
  getUserRaw(requestParameters: GetUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UsersUser>>;
@@ -29,40 +29,6 @@ const models_1 = require("../models");
29
29
  *
30
30
  */
31
31
  class DatabasesApi extends runtime.BaseAPI {
32
- /**
33
- */
34
- getDatabaseRaw(requestParameters, initOverrides) {
35
- return __awaiter(this, void 0, void 0, function* () {
36
- if (requestParameters.uuid === null || requestParameters.uuid === undefined) {
37
- throw new runtime.RequiredError('uuid', 'Required parameter requestParameters.uuid was null or undefined when calling getDatabase.');
38
- }
39
- const queryParameters = {};
40
- const headerParameters = {};
41
- if (this.configuration && this.configuration.accessToken) {
42
- // oauth required
43
- const token = this.configuration.accessToken;
44
- const tokenString = yield token("OAuth2", []);
45
- if (tokenString) {
46
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
47
- }
48
- }
49
- const response = yield this.request({
50
- path: `/crm/api/v1/databases/{uuid}`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
51
- method: 'GET',
52
- headers: headerParameters,
53
- query: queryParameters,
54
- }, initOverrides);
55
- return new runtime.JSONApiResponse(response, (jsonValue) => models_1.DatabasesDatabaseFromJSON(jsonValue));
56
- });
57
- }
58
- /**
59
- */
60
- getDatabase(requestParameters, initOverrides) {
61
- return __awaiter(this, void 0, void 0, function* () {
62
- const response = yield this.getDatabaseRaw(requestParameters, initOverrides);
63
- return yield response.value();
64
- });
65
- }
66
32
  /**
67
33
  */
68
34
  getUserRaw(requestParameters, initOverrides) {
@@ -51,36 +51,6 @@ export interface DatabasesDatabase {
51
51
  * @memberof DatabasesDatabase
52
52
  */
53
53
  state: string;
54
- /**
55
- * Datagateway Enabled
56
- * @type {boolean}
57
- * @memberof DatabasesDatabase
58
- */
59
- datagatewayEnabled: boolean;
60
- /**
61
- * Is Multi User
62
- * @type {boolean}
63
- * @memberof DatabasesDatabase
64
- */
65
- isMultiUser: boolean;
66
- /**
67
- * Is Multi User
68
- * @type {boolean}
69
- * @memberof DatabasesDatabase
70
- */
71
- equisoftPlanEnabled: boolean;
72
- /**
73
- * Distributor Code
74
- * @type {string}
75
- * @memberof DatabasesDatabase
76
- */
77
- distributorCode?: string | null;
78
- /**
79
- * Chargebee Customer Id
80
- * @type {string}
81
- * @memberof DatabasesDatabase
82
- */
83
- chargebeeCustomerId?: string | null;
84
54
  /**
85
55
  * Organization uuid
86
56
  * @type {string}
@@ -26,9 +26,6 @@ function instanceOfDatabasesDatabase(value) {
26
26
  isInstance = isInstance && "displayName" in value;
27
27
  isInstance = isInstance && "profileName" in value;
28
28
  isInstance = isInstance && "state" in value;
29
- isInstance = isInstance && "datagatewayEnabled" in value;
30
- isInstance = isInstance && "isMultiUser" in value;
31
- isInstance = isInstance && "equisoftPlanEnabled" in value;
32
29
  return isInstance;
33
30
  }
34
31
  exports.instanceOfDatabasesDatabase = instanceOfDatabasesDatabase;
@@ -47,11 +44,6 @@ function DatabasesDatabaseFromJSONTyped(json, ignoreDiscriminator) {
47
44
  'displayName': json['displayName'],
48
45
  'profileName': json['profileName'],
49
46
  'state': json['state'],
50
- 'datagatewayEnabled': json['datagatewayEnabled'],
51
- 'isMultiUser': json['isMultiUser'],
52
- 'equisoftPlanEnabled': json['equisoftPlanEnabled'],
53
- 'distributorCode': !runtime_1.exists(json, 'distributorCode') ? undefined : json['distributorCode'],
54
- 'chargebeeCustomerId': !runtime_1.exists(json, 'chargebeeCustomerId') ? undefined : json['chargebeeCustomerId'],
55
47
  'organizationUuid': !runtime_1.exists(json, 'organizationUuid') ? undefined : json['organizationUuid'],
56
48
  };
57
49
  }
@@ -70,11 +62,6 @@ function DatabasesDatabaseToJSON(value) {
70
62
  'displayName': value.displayName,
71
63
  'profileName': value.profileName,
72
64
  'state': value.state,
73
- 'datagatewayEnabled': value.datagatewayEnabled,
74
- 'isMultiUser': value.isMultiUser,
75
- 'equisoftPlanEnabled': value.equisoftPlanEnabled,
76
- 'distributorCode': value.distributorCode,
77
- 'chargebeeCustomerId': value.chargebeeCustomerId,
78
65
  'organizationUuid': value.organizationUuid,
79
66
  };
80
67
  }
@@ -27,12 +27,6 @@ export interface GatewaysAccessesValidationGatewayAdminDto {
27
27
  * @memberof GatewaysAccessesValidationGatewayAdminDto
28
28
  */
29
29
  name: string;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof GatewaysAccessesValidationGatewayAdminDto
34
- */
35
- email: string;
36
30
  /**
37
31
  *
38
32
  * @type {string}
@@ -21,7 +21,6 @@ function instanceOfGatewaysAccessesValidationGatewayAdminDto(value) {
21
21
  let isInstance = true;
22
22
  isInstance = isInstance && "id" in value;
23
23
  isInstance = isInstance && "name" in value;
24
- isInstance = isInstance && "email" in value;
25
24
  isInstance = isInstance && "lang" in value;
26
25
  return isInstance;
27
26
  }
@@ -37,7 +36,6 @@ function GatewaysAccessesValidationGatewayAdminDtoFromJSONTyped(json, ignoreDisc
37
36
  return {
38
37
  'id': json['id'],
39
38
  'name': json['name'],
40
- 'email': json['email'],
41
39
  'lang': json['lang'],
42
40
  };
43
41
  }
@@ -52,7 +50,6 @@ function GatewaysAccessesValidationGatewayAdminDtoToJSON(value) {
52
50
  return {
53
51
  'id': value.id,
54
52
  'name': value.name,
55
- 'email': value.email,
56
53
  'lang': value.lang,
57
54
  };
58
55
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equisoft/equisoft-connect-sdk-typescript",
3
- "version": "10.33.7-snapshot.20221103023624",
3
+ "version": "10.33.7",
4
4
  "description": "OpenAPI client for @equisoft/equisoft-connect-sdk-typescript",
5
5
  "author": "OpenAPI-Generator",
6
6
  "main": "./dist/index.js",
@@ -15,7 +15,6 @@
15
15
 
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
- DatabasesDatabase,
19
18
  DatabasesListDatabasesResponse,
20
19
  ErrorResponse,
21
20
  UsersListUsersResponse,
@@ -23,8 +22,6 @@ import type {
23
22
  UsersUser,
24
23
  } from '../models';
25
24
  import {
26
- DatabasesDatabaseFromJSON,
27
- DatabasesDatabaseToJSON,
28
25
  DatabasesListDatabasesResponseFromJSON,
29
26
  DatabasesListDatabasesResponseToJSON,
30
27
  ErrorResponseFromJSON,
@@ -37,10 +34,6 @@ import {
37
34
  UsersUserToJSON,
38
35
  } from '../models';
39
36
 
40
- export interface GetDatabaseRequest {
41
- uuid: string;
42
- }
43
-
44
37
  export interface GetUserRequest {
45
38
  uuid: string;
46
39
  id: number;
@@ -66,44 +59,6 @@ export interface UpdateUserRequest {
66
59
  */
67
60
  export class DatabasesApi extends runtime.BaseAPI {
68
61
 
69
- /**
70
- */
71
- async getDatabaseRaw(requestParameters: GetDatabaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DatabasesDatabase>> {
72
- if (requestParameters.uuid === null || requestParameters.uuid === undefined) {
73
- throw new runtime.RequiredError('uuid','Required parameter requestParameters.uuid was null or undefined when calling getDatabase.');
74
- }
75
-
76
- const queryParameters: any = {};
77
-
78
- const headerParameters: runtime.HTTPHeaders = {};
79
-
80
- if (this.configuration && this.configuration.accessToken) {
81
- // oauth required
82
- const token = this.configuration.accessToken;
83
- const tokenString = await token("OAuth2", []);
84
-
85
- if (tokenString) {
86
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
87
- }
88
- }
89
-
90
- const response = await this.request({
91
- path: `/crm/api/v1/databases/{uuid}`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))),
92
- method: 'GET',
93
- headers: headerParameters,
94
- query: queryParameters,
95
- }, initOverrides);
96
-
97
- return new runtime.JSONApiResponse(response, (jsonValue) => DatabasesDatabaseFromJSON(jsonValue));
98
- }
99
-
100
- /**
101
- */
102
- async getDatabase(requestParameters: GetDatabaseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DatabasesDatabase> {
103
- const response = await this.getDatabaseRaw(requestParameters, initOverrides);
104
- return await response.value();
105
- }
106
-
107
62
  /**
108
63
  */
109
64
  async getUserRaw(requestParameters: GetUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UsersUser>> {
@@ -55,36 +55,6 @@ export interface DatabasesDatabase {
55
55
  * @memberof DatabasesDatabase
56
56
  */
57
57
  state: string;
58
- /**
59
- * Datagateway Enabled
60
- * @type {boolean}
61
- * @memberof DatabasesDatabase
62
- */
63
- datagatewayEnabled: boolean;
64
- /**
65
- * Is Multi User
66
- * @type {boolean}
67
- * @memberof DatabasesDatabase
68
- */
69
- isMultiUser: boolean;
70
- /**
71
- * Is Multi User
72
- * @type {boolean}
73
- * @memberof DatabasesDatabase
74
- */
75
- equisoftPlanEnabled: boolean;
76
- /**
77
- * Distributor Code
78
- * @type {string}
79
- * @memberof DatabasesDatabase
80
- */
81
- distributorCode?: string | null;
82
- /**
83
- * Chargebee Customer Id
84
- * @type {string}
85
- * @memberof DatabasesDatabase
86
- */
87
- chargebeeCustomerId?: string | null;
88
58
  /**
89
59
  * Organization uuid
90
60
  * @type {string}
@@ -104,9 +74,6 @@ export function instanceOfDatabasesDatabase(value: object): boolean {
104
74
  isInstance = isInstance && "displayName" in value;
105
75
  isInstance = isInstance && "profileName" in value;
106
76
  isInstance = isInstance && "state" in value;
107
- isInstance = isInstance && "datagatewayEnabled" in value;
108
- isInstance = isInstance && "isMultiUser" in value;
109
- isInstance = isInstance && "equisoftPlanEnabled" in value;
110
77
 
111
78
  return isInstance;
112
79
  }
@@ -127,11 +94,6 @@ export function DatabasesDatabaseFromJSONTyped(json: any, ignoreDiscriminator: b
127
94
  'displayName': json['displayName'],
128
95
  'profileName': json['profileName'],
129
96
  'state': json['state'],
130
- 'datagatewayEnabled': json['datagatewayEnabled'],
131
- 'isMultiUser': json['isMultiUser'],
132
- 'equisoftPlanEnabled': json['equisoftPlanEnabled'],
133
- 'distributorCode': !exists(json, 'distributorCode') ? undefined : json['distributorCode'],
134
- 'chargebeeCustomerId': !exists(json, 'chargebeeCustomerId') ? undefined : json['chargebeeCustomerId'],
135
97
  'organizationUuid': !exists(json, 'organizationUuid') ? undefined : json['organizationUuid'],
136
98
  };
137
99
  }
@@ -151,11 +113,6 @@ export function DatabasesDatabaseToJSON(value?: DatabasesDatabase | null): any {
151
113
  'displayName': value.displayName,
152
114
  'profileName': value.profileName,
153
115
  'state': value.state,
154
- 'datagatewayEnabled': value.datagatewayEnabled,
155
- 'isMultiUser': value.isMultiUser,
156
- 'equisoftPlanEnabled': value.equisoftPlanEnabled,
157
- 'distributorCode': value.distributorCode,
158
- 'chargebeeCustomerId': value.chargebeeCustomerId,
159
116
  'organizationUuid': value.organizationUuid,
160
117
  };
161
118
  }
@@ -31,12 +31,6 @@ export interface GatewaysAccessesValidationGatewayAdminDto {
31
31
  * @memberof GatewaysAccessesValidationGatewayAdminDto
32
32
  */
33
33
  name: string;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof GatewaysAccessesValidationGatewayAdminDto
38
- */
39
- email: string;
40
34
  /**
41
35
  *
42
36
  * @type {string}
@@ -52,7 +46,6 @@ export function instanceOfGatewaysAccessesValidationGatewayAdminDto(value: objec
52
46
  let isInstance = true;
53
47
  isInstance = isInstance && "id" in value;
54
48
  isInstance = isInstance && "name" in value;
55
- isInstance = isInstance && "email" in value;
56
49
  isInstance = isInstance && "lang" in value;
57
50
 
58
51
  return isInstance;
@@ -70,7 +63,6 @@ export function GatewaysAccessesValidationGatewayAdminDtoFromJSONTyped(json: any
70
63
 
71
64
  'id': json['id'],
72
65
  'name': json['name'],
73
- 'email': json['email'],
74
66
  'lang': json['lang'],
75
67
  };
76
68
  }
@@ -86,7 +78,6 @@ export function GatewaysAccessesValidationGatewayAdminDtoToJSON(value?: Gateways
86
78
 
87
79
  'id': value.id,
88
80
  'name': value.name,
89
- 'email': value.email,
90
81
  'lang': value.lang,
91
82
  };
92
83
  }