@equisoft/account-service-sdk-typescript 3.14.1-snapshot.20220919180735 → 3.14.1-snapshot.20220926152407

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/.tool-versions CHANGED
@@ -1,3 +1,3 @@
1
1
  java temurin-17.0.2+8
2
- nodejs 16.14.2
2
+ nodejs 16.17.1
3
3
  yarn 1.22.17
@@ -16,12 +16,6 @@ export interface AddServiceRequest {
16
16
  serviceCode: string;
17
17
  upsertServicePayload: UpsertServicePayload;
18
18
  }
19
- export interface AddServiceToUserRequest {
20
- uuid: string;
21
- userUuid: string;
22
- serviceCode: string;
23
- upsertServicePayload: UpsertServicePayload;
24
- }
25
19
  export interface CreateOrUpdateOrganizationRequest {
26
20
  uuid: string;
27
21
  createOrUpdateOrganizationPayload: CreateOrUpdateOrganizationPayload;
@@ -105,14 +99,6 @@ export declare class OrganizationApi extends runtime.BaseAPI {
105
99
  * Add/update a service for an organization
106
100
  */
107
101
  addService(requestParameters: AddServiceRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<void>;
108
- /**
109
- * Add/update a service to a user for an organization
110
- */
111
- addServiceToUserRaw(requestParameters: AddServiceToUserRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<void>>;
112
- /**
113
- * Add/update a service to a user for an organization
114
- */
115
- addServiceToUser(requestParameters: AddServiceToUserRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<void>;
116
102
  /**
117
103
  * Create or update an organization for a given uuid
118
104
  */
@@ -72,52 +72,6 @@ class OrganizationApi extends runtime.BaseAPI {
72
72
  yield this.addServiceRaw(requestParameters, initOverrides);
73
73
  });
74
74
  }
75
- /**
76
- * Add/update a service to a user for an organization
77
- */
78
- addServiceToUserRaw(requestParameters, initOverrides) {
79
- return __awaiter(this, void 0, void 0, function* () {
80
- if (requestParameters.uuid === null || requestParameters.uuid === undefined) {
81
- throw new runtime.RequiredError('uuid', 'Required parameter requestParameters.uuid was null or undefined when calling addServiceToUser.');
82
- }
83
- if (requestParameters.userUuid === null || requestParameters.userUuid === undefined) {
84
- throw new runtime.RequiredError('userUuid', 'Required parameter requestParameters.userUuid was null or undefined when calling addServiceToUser.');
85
- }
86
- if (requestParameters.serviceCode === null || requestParameters.serviceCode === undefined) {
87
- throw new runtime.RequiredError('serviceCode', 'Required parameter requestParameters.serviceCode was null or undefined when calling addServiceToUser.');
88
- }
89
- if (requestParameters.upsertServicePayload === null || requestParameters.upsertServicePayload === undefined) {
90
- throw new runtime.RequiredError('upsertServicePayload', 'Required parameter requestParameters.upsertServicePayload was null or undefined when calling addServiceToUser.');
91
- }
92
- const queryParameters = {};
93
- const headerParameters = {};
94
- headerParameters['Content-Type'] = 'application/json';
95
- if (this.configuration && this.configuration.accessToken) {
96
- // oauth required
97
- const token = this.configuration.accessToken;
98
- const tokenString = yield token("OAuth2", ["account:organization", "account:service"]);
99
- if (tokenString) {
100
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
101
- }
102
- }
103
- const response = yield this.request({
104
- path: `/organizations/{uuid}/users/{userUuid}/services/{serviceCode}`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))).replace(`{${"userUuid"}}`, encodeURIComponent(String(requestParameters.userUuid))).replace(`{${"serviceCode"}}`, encodeURIComponent(String(requestParameters.serviceCode))),
105
- method: 'PUT',
106
- headers: headerParameters,
107
- query: queryParameters,
108
- body: models_1.UpsertServicePayloadToJSON(requestParameters.upsertServicePayload),
109
- }, initOverrides);
110
- return new runtime.VoidApiResponse(response);
111
- });
112
- }
113
- /**
114
- * Add/update a service to a user for an organization
115
- */
116
- addServiceToUser(requestParameters, initOverrides) {
117
- return __awaiter(this, void 0, void 0, function* () {
118
- yield this.addServiceToUserRaw(requestParameters, initOverrides);
119
- });
120
- }
121
75
  /**
122
76
  * Create or update an organization for a given uuid
123
77
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equisoft/account-service-sdk-typescript",
3
- "version": "3.14.1-snapshot.20220919180735",
3
+ "version": "3.14.1-snapshot.20220926152407",
4
4
  "description": "OpenAPI client for @equisoft/account-service-sdk-typescript",
5
5
  "author": "Equisoft Inc.",
6
6
  "main": "./dist/index.js",
@@ -68,13 +68,6 @@ export interface AddServiceRequest {
68
68
  upsertServicePayload: UpsertServicePayload;
69
69
  }
70
70
 
71
- export interface AddServiceToUserRequest {
72
- uuid: string;
73
- userUuid: string;
74
- serviceCode: string;
75
- upsertServicePayload: UpsertServicePayload;
76
- }
77
-
78
71
  export interface CreateOrUpdateOrganizationRequest {
79
72
  uuid: string;
80
73
  createOrUpdateOrganizationPayload: CreateOrUpdateOrganizationPayload;
@@ -217,60 +210,6 @@ export class OrganizationApi extends runtime.BaseAPI {
217
210
  await this.addServiceRaw(requestParameters, initOverrides);
218
211
  }
219
212
 
220
- /**
221
- * Add/update a service to a user for an organization
222
- */
223
- async addServiceToUserRaw(requestParameters: AddServiceToUserRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<void>> {
224
- if (requestParameters.uuid === null || requestParameters.uuid === undefined) {
225
- throw new runtime.RequiredError('uuid','Required parameter requestParameters.uuid was null or undefined when calling addServiceToUser.');
226
- }
227
-
228
- if (requestParameters.userUuid === null || requestParameters.userUuid === undefined) {
229
- throw new runtime.RequiredError('userUuid','Required parameter requestParameters.userUuid was null or undefined when calling addServiceToUser.');
230
- }
231
-
232
- if (requestParameters.serviceCode === null || requestParameters.serviceCode === undefined) {
233
- throw new runtime.RequiredError('serviceCode','Required parameter requestParameters.serviceCode was null or undefined when calling addServiceToUser.');
234
- }
235
-
236
- if (requestParameters.upsertServicePayload === null || requestParameters.upsertServicePayload === undefined) {
237
- throw new runtime.RequiredError('upsertServicePayload','Required parameter requestParameters.upsertServicePayload was null or undefined when calling addServiceToUser.');
238
- }
239
-
240
- const queryParameters: any = {};
241
-
242
- const headerParameters: runtime.HTTPHeaders = {};
243
-
244
- headerParameters['Content-Type'] = 'application/json';
245
-
246
- if (this.configuration && this.configuration.accessToken) {
247
- // oauth required
248
- const token = this.configuration.accessToken;
249
- const tokenString = await token("OAuth2", ["account:organization", "account:service"]);
250
-
251
- if (tokenString) {
252
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
253
- }
254
- }
255
-
256
- const response = await this.request({
257
- path: `/organizations/{uuid}/users/{userUuid}/services/{serviceCode}`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters.uuid))).replace(`{${"userUuid"}}`, encodeURIComponent(String(requestParameters.userUuid))).replace(`{${"serviceCode"}}`, encodeURIComponent(String(requestParameters.serviceCode))),
258
- method: 'PUT',
259
- headers: headerParameters,
260
- query: queryParameters,
261
- body: UpsertServicePayloadToJSON(requestParameters.upsertServicePayload),
262
- }, initOverrides);
263
-
264
- return new runtime.VoidApiResponse(response);
265
- }
266
-
267
- /**
268
- * Add/update a service to a user for an organization
269
- */
270
- async addServiceToUser(requestParameters: AddServiceToUserRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<void> {
271
- await this.addServiceToUserRaw(requestParameters, initOverrides);
272
- }
273
-
274
213
  /**
275
214
  * Create or update an organization for a given uuid
276
215
  */