@vality/swag-organizations 1.0.0 → 1.0.1-67dcada.0
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/README.md +224 -12
- package/{lib/api → api}/invitations.service.d.ts +16 -9
- package/{lib/api → api}/members.service.d.ts +19 -9
- package/{lib/api → api}/orgs.service.d.ts +31 -9
- package/{lib/api → api}/roles.service.d.ts +11 -11
- package/api.base.service.d.ts +12 -0
- package/{lib/configuration.d.ts → configuration.d.ts} +3 -1
- package/fesm2022/vality-swag-organizations.mjs +362 -725
- package/fesm2022/vality-swag-organizations.mjs.map +1 -1
- package/index.d.ts +6 -5
- package/model/assignMemberRole422Response.d.ts +22 -0
- package/model/invitation.d.ts +37 -0
- package/model/invitationAcceptedAllOfMember.d.ts +18 -0
- package/model/invitationListResult.d.ts +13 -0
- package/model/invitationRequest.d.ts +20 -0
- package/model/invitationStatusName.d.ts +16 -0
- package/model/invitee.d.ts +21 -0
- package/model/inviteeContact.d.ts +25 -0
- package/model/joinOrg422Response.d.ts +22 -0
- package/model/listOrgMembership400Response.d.ts +22 -0
- package/model/member.d.ts +27 -0
- package/model/memberContext.d.ts +15 -0
- package/model/memberOrgListResult.d.ts +13 -0
- package/model/memberRole.d.ts +24 -0
- package/model/memberRoleScope.d.ts +22 -0
- package/{lib/model → model}/models.d.ts +0 -1
- package/model/organization.d.ts +35 -0
- package/model/organizationJoinRequest.d.ts +15 -0
- package/model/organizationMembership.d.ts +15 -0
- package/model/organizationSearchResult.d.ts +17 -0
- package/model/organizationSwitchRequest.d.ts +15 -0
- package/model/patchOrgRequest.d.ts +15 -0
- package/model/removeMemberRole422Response.d.ts +22 -0
- package/model/resourceScopeId.d.ts +16 -0
- package/model/revokeInvitation422Response.d.ts +22 -0
- package/model/revokeInvitationRequest.d.ts +22 -0
- package/model/role.d.ts +27 -0
- package/model/roleAvailableListResult.d.ts +13 -0
- package/package.json +15 -11
- package/esm2022/lib/api/api.mjs +0 -10
- package/esm2022/lib/api/invitations.service.mjs +0 -361
- package/esm2022/lib/api/members.service.mjs +0 -406
- package/esm2022/lib/api/orgs.service.mjs +0 -637
- package/esm2022/lib/api/roles.service.mjs +0 -212
- package/esm2022/lib/api.module.mjs +0 -40
- package/esm2022/lib/configuration.mjs +0 -99
- package/esm2022/lib/encoder.mjs +0 -19
- package/esm2022/lib/index.mjs +0 -7
- package/esm2022/lib/model/assignMemberRole422Response.mjs +0 -18
- package/esm2022/lib/model/invitation.mjs +0 -2
- package/esm2022/lib/model/invitationAccepted.mjs +0 -2
- package/esm2022/lib/model/invitationAcceptedAllOfMember.mjs +0 -13
- package/esm2022/lib/model/invitationExpired.mjs +0 -2
- package/esm2022/lib/model/invitationListResult.mjs +0 -2
- package/esm2022/lib/model/invitationPending.mjs +0 -2
- package/esm2022/lib/model/invitationRequest.mjs +0 -2
- package/esm2022/lib/model/invitationRevoked.mjs +0 -2
- package/esm2022/lib/model/invitationStatusName.mjs +0 -18
- package/esm2022/lib/model/invitee.mjs +0 -2
- package/esm2022/lib/model/inviteeContact.mjs +0 -18
- package/esm2022/lib/model/joinOrg422Response.mjs +0 -18
- package/esm2022/lib/model/listOrgMembership400Response.mjs +0 -18
- package/esm2022/lib/model/member.mjs +0 -2
- package/esm2022/lib/model/memberContext.mjs +0 -13
- package/esm2022/lib/model/memberOrgListResult.mjs +0 -2
- package/esm2022/lib/model/memberRole.mjs +0 -2
- package/esm2022/lib/model/memberRoleScope.mjs +0 -2
- package/esm2022/lib/model/models.mjs +0 -33
- package/esm2022/lib/model/organization.mjs +0 -13
- package/esm2022/lib/model/organizationJoinRequest.mjs +0 -13
- package/esm2022/lib/model/organizationMembership.mjs +0 -2
- package/esm2022/lib/model/organizationSearchResult.mjs +0 -2
- package/esm2022/lib/model/organizationSwitchRequest.mjs +0 -13
- package/esm2022/lib/model/patchOrgRequest.mjs +0 -13
- package/esm2022/lib/model/removeMemberRole422Response.mjs +0 -18
- package/esm2022/lib/model/resourceScopeId.mjs +0 -15
- package/esm2022/lib/model/revokeInvitation422Response.mjs +0 -18
- package/esm2022/lib/model/revokeInvitationRequest.mjs +0 -18
- package/esm2022/lib/model/role.mjs +0 -2
- package/esm2022/lib/model/roleAvailableListResult.mjs +0 -2
- package/esm2022/lib/model/roleId.mjs +0 -18
- package/esm2022/lib/param.mjs +0 -2
- package/esm2022/lib/variables.mjs +0 -9
- package/esm2022/public-api.mjs +0 -2
- package/esm2022/vality-swag-organizations.mjs +0 -5
- package/lib/index.d.ts +0 -6
- package/lib/model/assignMemberRole422Response.d.ts +0 -24
- package/lib/model/invitation.d.ts +0 -39
- package/lib/model/invitationAcceptedAllOfMember.d.ts +0 -20
- package/lib/model/invitationListResult.d.ts +0 -15
- package/lib/model/invitationRequest.d.ts +0 -22
- package/lib/model/invitationStatusName.d.ts +0 -18
- package/lib/model/invitee.d.ts +0 -23
- package/lib/model/inviteeContact.d.ts +0 -27
- package/lib/model/joinOrg422Response.d.ts +0 -24
- package/lib/model/listOrgMembership400Response.d.ts +0 -24
- package/lib/model/member.d.ts +0 -29
- package/lib/model/memberContext.d.ts +0 -17
- package/lib/model/memberOrgListResult.d.ts +0 -15
- package/lib/model/memberRole.d.ts +0 -26
- package/lib/model/memberRoleScope.d.ts +0 -24
- package/lib/model/organization.d.ts +0 -37
- package/lib/model/organizationJoinRequest.d.ts +0 -17
- package/lib/model/organizationMembership.d.ts +0 -17
- package/lib/model/organizationSearchResult.d.ts +0 -19
- package/lib/model/organizationSwitchRequest.d.ts +0 -17
- package/lib/model/patchOrgRequest.d.ts +0 -17
- package/lib/model/removeMemberRole422Response.d.ts +0 -24
- package/lib/model/resourceScopeId.d.ts +0 -18
- package/lib/model/revokeInvitation422Response.d.ts +0 -24
- package/lib/model/revokeInvitationRequest.d.ts +0 -24
- package/lib/model/role.d.ts +0 -29
- package/lib/model/roleAvailableListResult.d.ts +0 -15
- package/lib/model/roleId.d.ts +0 -21
- package/public-api.d.ts +0 -1
- /package/{lib/api → api}/api.d.ts +0 -0
- /package/{lib/api.module.d.ts → api.module.d.ts} +0 -0
- /package/{lib/encoder.d.ts → encoder.d.ts} +0 -0
- /package/{lib/model → model}/invitationAccepted.d.ts +0 -0
- /package/{lib/model → model}/invitationExpired.d.ts +0 -0
- /package/{lib/model → model}/invitationPending.d.ts +0 -0
- /package/{lib/model → model}/invitationRevoked.d.ts +0 -0
- /package/{lib/param.d.ts → param.d.ts} +0 -0
- /package/{lib/variables.d.ts → variables.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -1,24 +1,236 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @vality/swag-organizations@1.0.0
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Organizations API является интерфейсом для управления различными аспектами вашей организации. Все изменения состояния организации, будь то приглашение новых сотрудников, добавление ролей уже существующим сотрудникам или настройка области их ответственности осуществляются с помощью вызовов соответствующих методов API. Любые сторонние приложения, включая ваш личный кабинет, являются внешними приложениями-клиентами. Мы предоставляем REST API поверх HTTP-протокола, схема которого описывается в соответствии со стандартом [OpenAPI 3][OAS3]. Коды возврата описываются соответствующими HTTP-статусами. Платформа принимает и возвращает значения JSON в теле запросов и ответов. [OAS3]: https://swagger.io/specification/ ## Формат содержимого Любой запрос к API должен выполняться в кодировке UTF-8 и с указанием содержимого в формате JSON. ``` Content-Type: application/json; charset=utf-8 ``` ## Запросы Любой вызов методов API обязан предваряться предоставлением уникального для клиента платформы идентификатора запроса. Данный ID передается в соответствующем заголовке каждого HTTP-запроса: ``` X-Request-ID: RQID-Z08G3EFE5DZ429VVO755BM19D51 ``` Мы требуем его, чтобы иметь возможность отследить жизненный цикл любого отдельного запроса в системе, когда того требуют задачи аудита или обращения в техническую поддержку. ### Идемпотентность При совершении некоторых запросов вы можете указать _ключ идемпотентности_ – уникальный набор символов для обеспечения идемпотентной обработки запросов. ``` X-Idempotency-Key: 881D:08BA ``` Даже если платформа получит множество запросов на совершение определённой операции с одним и тем же значением ключа идемпотентности, эта операция будет выполнена _не более чем один_ раз. Таким образом, в случае кратковременных проблем с сетевой доступностью вы можете отправлять запросы повторно и быть уверенными в том, что, например, приглашение новому сотруднику в итоге будет отправлено только один раз.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
The version of the OpenAPI document: 1.0.0
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
> Note: Don't forget to add `--project swag-organizations` or else it will be added to the default project in your `angular.json` file.
|
|
7
|
+
## Building
|
|
9
8
|
|
|
10
|
-
|
|
9
|
+
To install the required dependencies and to build the typescript sources run:
|
|
11
10
|
|
|
12
|
-
|
|
11
|
+
```console
|
|
12
|
+
npm install
|
|
13
|
+
npm run build
|
|
14
|
+
```
|
|
13
15
|
|
|
14
16
|
## Publishing
|
|
15
17
|
|
|
16
|
-
|
|
18
|
+
First build the package then run `npm publish dist` (don't forget to specify the `dist` folder!)
|
|
17
19
|
|
|
18
|
-
##
|
|
20
|
+
## Consuming
|
|
19
21
|
|
|
20
|
-
|
|
22
|
+
Navigate to the folder of your consuming project and run one of next commands.
|
|
21
23
|
|
|
22
|
-
|
|
24
|
+
_published:_
|
|
23
25
|
|
|
24
|
-
|
|
26
|
+
```console
|
|
27
|
+
npm install @vality/swag-organizations@1.0.0 --save
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
_without publishing (not recommended):_
|
|
31
|
+
|
|
32
|
+
```console
|
|
33
|
+
npm install PATH_TO_GENERATED_PACKAGE/dist.tgz --save
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
_It's important to take the tgz file, otherwise you'll get trouble with links on windows_
|
|
37
|
+
|
|
38
|
+
_using `npm link`:_
|
|
39
|
+
|
|
40
|
+
In PATH_TO_GENERATED_PACKAGE/dist:
|
|
41
|
+
|
|
42
|
+
```console
|
|
43
|
+
npm link
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
In your project:
|
|
47
|
+
|
|
48
|
+
```console
|
|
49
|
+
npm link @vality/swag-organizations
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
__Note for Windows users:__ The Angular CLI has troubles to use linked npm packages.
|
|
53
|
+
Please refer to this issue <https://github.com/angular/angular-cli/issues/8284> for a solution / workaround.
|
|
54
|
+
Published packages are not effected by this issue.
|
|
55
|
+
|
|
56
|
+
### General usage
|
|
57
|
+
|
|
58
|
+
In your Angular project:
|
|
59
|
+
|
|
60
|
+
```typescript
|
|
61
|
+
// without configuring providers
|
|
62
|
+
import { ApiModule } from '@vality/swag-organizations';
|
|
63
|
+
import { HttpClientModule } from '@angular/common/http';
|
|
64
|
+
|
|
65
|
+
@NgModule({
|
|
66
|
+
imports: [
|
|
67
|
+
ApiModule,
|
|
68
|
+
// make sure to import the HttpClientModule in the AppModule only,
|
|
69
|
+
// see https://github.com/angular/angular/issues/20575
|
|
70
|
+
HttpClientModule
|
|
71
|
+
],
|
|
72
|
+
declarations: [ AppComponent ],
|
|
73
|
+
providers: [],
|
|
74
|
+
bootstrap: [ AppComponent ]
|
|
75
|
+
})
|
|
76
|
+
export class AppModule {}
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
```typescript
|
|
80
|
+
// configuring providers
|
|
81
|
+
import { ApiModule, Configuration, ConfigurationParameters } from '@vality/swag-organizations';
|
|
82
|
+
|
|
83
|
+
export function apiConfigFactory (): Configuration {
|
|
84
|
+
const params: ConfigurationParameters = {
|
|
85
|
+
// set configuration parameters here.
|
|
86
|
+
}
|
|
87
|
+
return new Configuration(params);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
@NgModule({
|
|
91
|
+
imports: [ ApiModule.forRoot(apiConfigFactory) ],
|
|
92
|
+
declarations: [ AppComponent ],
|
|
93
|
+
providers: [],
|
|
94
|
+
bootstrap: [ AppComponent ]
|
|
95
|
+
})
|
|
96
|
+
export class AppModule {}
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
```typescript
|
|
100
|
+
// configuring providers with an authentication service that manages your access tokens
|
|
101
|
+
import { ApiModule, Configuration } from '@vality/swag-organizations';
|
|
102
|
+
|
|
103
|
+
@NgModule({
|
|
104
|
+
imports: [ ApiModule ],
|
|
105
|
+
declarations: [ AppComponent ],
|
|
106
|
+
providers: [
|
|
107
|
+
{
|
|
108
|
+
provide: Configuration,
|
|
109
|
+
useFactory: (authService: AuthService) => new Configuration(
|
|
110
|
+
{
|
|
111
|
+
basePath: environment.apiUrl,
|
|
112
|
+
accessToken: authService.getAccessToken.bind(authService)
|
|
113
|
+
}
|
|
114
|
+
),
|
|
115
|
+
deps: [AuthService],
|
|
116
|
+
multi: false
|
|
117
|
+
}
|
|
118
|
+
],
|
|
119
|
+
bootstrap: [ AppComponent ]
|
|
120
|
+
})
|
|
121
|
+
export class AppModule {}
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
```typescript
|
|
125
|
+
import { DefaultApi } from '@vality/swag-organizations';
|
|
126
|
+
|
|
127
|
+
export class AppComponent {
|
|
128
|
+
constructor(private apiGateway: DefaultApi) { }
|
|
129
|
+
}
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
Note: The ApiModule is restricted to being instantiated once app wide.
|
|
133
|
+
This is to ensure that all services are treated as singletons.
|
|
134
|
+
|
|
135
|
+
### Using multiple OpenAPI files / APIs / ApiModules
|
|
136
|
+
|
|
137
|
+
In order to use multiple `ApiModules` generated from different OpenAPI files,
|
|
138
|
+
you can create an alias name when importing the modules
|
|
139
|
+
in order to avoid naming conflicts:
|
|
140
|
+
|
|
141
|
+
```typescript
|
|
142
|
+
import { ApiModule } from 'my-api-path';
|
|
143
|
+
import { ApiModule as OtherApiModule } from 'my-other-api-path';
|
|
144
|
+
import { HttpClientModule } from '@angular/common/http';
|
|
145
|
+
|
|
146
|
+
@NgModule({
|
|
147
|
+
imports: [
|
|
148
|
+
ApiModule,
|
|
149
|
+
OtherApiModule,
|
|
150
|
+
// make sure to import the HttpClientModule in the AppModule only,
|
|
151
|
+
// see https://github.com/angular/angular/issues/20575
|
|
152
|
+
HttpClientModule
|
|
153
|
+
]
|
|
154
|
+
})
|
|
155
|
+
export class AppModule {
|
|
156
|
+
|
|
157
|
+
}
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
### Set service base path
|
|
161
|
+
|
|
162
|
+
If different than the generated base path, during app bootstrap, you can provide the base path to your service.
|
|
163
|
+
|
|
164
|
+
```typescript
|
|
165
|
+
import { BASE_PATH } from '@vality/swag-organizations';
|
|
166
|
+
|
|
167
|
+
bootstrap(AppComponent, [
|
|
168
|
+
{ provide: BASE_PATH, useValue: 'https://your-web-service.com' },
|
|
169
|
+
]);
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
or
|
|
173
|
+
|
|
174
|
+
```typescript
|
|
175
|
+
import { BASE_PATH } from '@vality/swag-organizations';
|
|
176
|
+
|
|
177
|
+
@NgModule({
|
|
178
|
+
imports: [],
|
|
179
|
+
declarations: [ AppComponent ],
|
|
180
|
+
providers: [ provide: BASE_PATH, useValue: 'https://your-web-service.com' ],
|
|
181
|
+
bootstrap: [ AppComponent ]
|
|
182
|
+
})
|
|
183
|
+
export class AppModule {}
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
### Using @angular/cli
|
|
187
|
+
|
|
188
|
+
First extend your `src/environments/*.ts` files by adding the corresponding base path:
|
|
189
|
+
|
|
190
|
+
```typescript
|
|
191
|
+
export const environment = {
|
|
192
|
+
production: false,
|
|
193
|
+
API_BASE_PATH: 'http://127.0.0.1:8080'
|
|
194
|
+
};
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
In the src/app/app.module.ts:
|
|
198
|
+
|
|
199
|
+
```typescript
|
|
200
|
+
import { BASE_PATH } from '@vality/swag-organizations';
|
|
201
|
+
import { environment } from '../environments/environment';
|
|
202
|
+
|
|
203
|
+
@NgModule({
|
|
204
|
+
declarations: [
|
|
205
|
+
AppComponent
|
|
206
|
+
],
|
|
207
|
+
imports: [ ],
|
|
208
|
+
providers: [{ provide: BASE_PATH, useValue: environment.API_BASE_PATH }],
|
|
209
|
+
bootstrap: [ AppComponent ]
|
|
210
|
+
})
|
|
211
|
+
export class AppModule { }
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
### Customizing path parameter encoding
|
|
215
|
+
|
|
216
|
+
Without further customization, only [path-parameters][parameter-locations-url] of [style][style-values-url] 'simple'
|
|
217
|
+
and Dates for format 'date-time' are encoded correctly.
|
|
218
|
+
|
|
219
|
+
Other styles (e.g. "matrix") are not that easy to encode
|
|
220
|
+
and thus are best delegated to other libraries (e.g.: [@honoluluhenk/http-param-expander]).
|
|
221
|
+
|
|
222
|
+
To implement your own parameter encoding (or call another library),
|
|
223
|
+
pass an arrow-function or method-reference to the `encodeParam` property of the Configuration-object
|
|
224
|
+
(see [General Usage](#general-usage) above).
|
|
225
|
+
|
|
226
|
+
Example value for use in your Configuration-Provider:
|
|
227
|
+
|
|
228
|
+
```typescript
|
|
229
|
+
new Configuration({
|
|
230
|
+
encodeParam: (param: Param) => myFancyParamEncoder(param),
|
|
231
|
+
})
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
[parameter-locations-url]: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#parameter-locations
|
|
235
|
+
[style-values-url]: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values
|
|
236
|
+
[@honoluluhenk/http-param-expander]: https://www.npmjs.com/package/@honoluluhenk/http-param-expander
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HttpClient,
|
|
1
|
+
import { HttpClient, HttpResponse, HttpEvent, HttpContext } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { Invitation } from '../model/invitation';
|
|
4
4
|
import { InvitationListResult } from '../model/invitationListResult';
|
|
@@ -6,6 +6,7 @@ import { InvitationRequest } from '../model/invitationRequest';
|
|
|
6
6
|
import { InvitationStatusName } from '../model/invitationStatusName';
|
|
7
7
|
import { RevokeInvitationRequest } from '../model/revokeInvitationRequest';
|
|
8
8
|
import { Configuration } from '../configuration';
|
|
9
|
+
import { BaseService } from '../api.base.service';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
export interface CreateInvitationRequestParams {
|
|
11
12
|
/** Уникальный идентификатор запроса к системе */
|
|
@@ -42,15 +43,9 @@ export interface RevokeInvitationRequestParams {
|
|
|
42
43
|
invitationId: string;
|
|
43
44
|
revokeInvitationRequest?: RevokeInvitationRequest;
|
|
44
45
|
}
|
|
45
|
-
export declare class InvitationsService {
|
|
46
|
+
export declare class InvitationsService extends BaseService {
|
|
46
47
|
protected httpClient: HttpClient;
|
|
47
|
-
|
|
48
|
-
defaultHeaders: HttpHeaders;
|
|
49
|
-
configuration: Configuration;
|
|
50
|
-
encoder: HttpParameterCodec;
|
|
51
|
-
constructor(httpClient: HttpClient, basePath: string | string[], configuration: Configuration);
|
|
52
|
-
private addToHttpParams;
|
|
53
|
-
private addToHttpParamsRecursive;
|
|
48
|
+
constructor(httpClient: HttpClient, basePath: string | string[], configuration?: Configuration);
|
|
54
49
|
/**
|
|
55
50
|
* Сформировать приглашение
|
|
56
51
|
* @param requestParameters
|
|
@@ -60,14 +55,17 @@ export declare class InvitationsService {
|
|
|
60
55
|
createInvitation(requestParameters: CreateInvitationRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
|
|
61
56
|
httpHeaderAccept?: 'application/json';
|
|
62
57
|
context?: HttpContext;
|
|
58
|
+
transferCache?: boolean;
|
|
63
59
|
}): Observable<Invitation>;
|
|
64
60
|
createInvitation(requestParameters: CreateInvitationRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
|
|
65
61
|
httpHeaderAccept?: 'application/json';
|
|
66
62
|
context?: HttpContext;
|
|
63
|
+
transferCache?: boolean;
|
|
67
64
|
}): Observable<HttpResponse<Invitation>>;
|
|
68
65
|
createInvitation(requestParameters: CreateInvitationRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
|
|
69
66
|
httpHeaderAccept?: 'application/json';
|
|
70
67
|
context?: HttpContext;
|
|
68
|
+
transferCache?: boolean;
|
|
71
69
|
}): Observable<HttpEvent<Invitation>>;
|
|
72
70
|
/**
|
|
73
71
|
* Получить данные приглашения
|
|
@@ -78,14 +76,17 @@ export declare class InvitationsService {
|
|
|
78
76
|
getInvitation(requestParameters: GetInvitationRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
|
|
79
77
|
httpHeaderAccept?: 'application/json';
|
|
80
78
|
context?: HttpContext;
|
|
79
|
+
transferCache?: boolean;
|
|
81
80
|
}): Observable<Invitation>;
|
|
82
81
|
getInvitation(requestParameters: GetInvitationRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
|
|
83
82
|
httpHeaderAccept?: 'application/json';
|
|
84
83
|
context?: HttpContext;
|
|
84
|
+
transferCache?: boolean;
|
|
85
85
|
}): Observable<HttpResponse<Invitation>>;
|
|
86
86
|
getInvitation(requestParameters: GetInvitationRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
|
|
87
87
|
httpHeaderAccept?: 'application/json';
|
|
88
88
|
context?: HttpContext;
|
|
89
|
+
transferCache?: boolean;
|
|
89
90
|
}): Observable<HttpEvent<Invitation>>;
|
|
90
91
|
/**
|
|
91
92
|
* Перечислить приглашения
|
|
@@ -96,14 +97,17 @@ export declare class InvitationsService {
|
|
|
96
97
|
listInvitations(requestParameters: ListInvitationsRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
|
|
97
98
|
httpHeaderAccept?: 'application/json';
|
|
98
99
|
context?: HttpContext;
|
|
100
|
+
transferCache?: boolean;
|
|
99
101
|
}): Observable<InvitationListResult>;
|
|
100
102
|
listInvitations(requestParameters: ListInvitationsRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
|
|
101
103
|
httpHeaderAccept?: 'application/json';
|
|
102
104
|
context?: HttpContext;
|
|
105
|
+
transferCache?: boolean;
|
|
103
106
|
}): Observable<HttpResponse<InvitationListResult>>;
|
|
104
107
|
listInvitations(requestParameters: ListInvitationsRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
|
|
105
108
|
httpHeaderAccept?: 'application/json';
|
|
106
109
|
context?: HttpContext;
|
|
110
|
+
transferCache?: boolean;
|
|
107
111
|
}): Observable<HttpEvent<InvitationListResult>>;
|
|
108
112
|
/**
|
|
109
113
|
* Отозвать приглашение
|
|
@@ -114,14 +118,17 @@ export declare class InvitationsService {
|
|
|
114
118
|
revokeInvitation(requestParameters: RevokeInvitationRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
|
|
115
119
|
httpHeaderAccept?: 'application/json';
|
|
116
120
|
context?: HttpContext;
|
|
121
|
+
transferCache?: boolean;
|
|
117
122
|
}): Observable<any>;
|
|
118
123
|
revokeInvitation(requestParameters: RevokeInvitationRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
|
|
119
124
|
httpHeaderAccept?: 'application/json';
|
|
120
125
|
context?: HttpContext;
|
|
126
|
+
transferCache?: boolean;
|
|
121
127
|
}): Observable<HttpResponse<any>>;
|
|
122
128
|
revokeInvitation(requestParameters: RevokeInvitationRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
|
|
123
129
|
httpHeaderAccept?: 'application/json';
|
|
124
130
|
context?: HttpContext;
|
|
131
|
+
transferCache?: boolean;
|
|
125
132
|
}): Observable<HttpEvent<any>>;
|
|
126
133
|
static ɵfac: i0.ɵɵFactoryDeclaration<InvitationsService, [null, { optional: true; }, { optional: true; }]>;
|
|
127
134
|
static ɵprov: i0.ɵɵInjectableDeclaration<InvitationsService>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { HttpClient,
|
|
1
|
+
import { HttpClient, HttpResponse, HttpEvent, HttpContext } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { Member } from '../model/member';
|
|
4
4
|
import { MemberOrgListResult } from '../model/memberOrgListResult';
|
|
5
5
|
import { MemberRole } from '../model/memberRole';
|
|
6
6
|
import { Configuration } from '../configuration';
|
|
7
|
+
import { BaseService } from '../api.base.service';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
export interface AssignMemberRoleRequestParams {
|
|
9
10
|
/** Уникальный идентификатор запроса к системе */
|
|
@@ -46,15 +47,9 @@ export interface RemoveMemberRoleRequestParams {
|
|
|
46
47
|
/** Идентификатор роли пользователя в организации */
|
|
47
48
|
memberRoleId: string;
|
|
48
49
|
}
|
|
49
|
-
export declare class MembersService {
|
|
50
|
+
export declare class MembersService extends BaseService {
|
|
50
51
|
protected httpClient: HttpClient;
|
|
51
|
-
|
|
52
|
-
defaultHeaders: HttpHeaders;
|
|
53
|
-
configuration: Configuration;
|
|
54
|
-
encoder: HttpParameterCodec;
|
|
55
|
-
constructor(httpClient: HttpClient, basePath: string | string[], configuration: Configuration);
|
|
56
|
-
private addToHttpParams;
|
|
57
|
-
private addToHttpParamsRecursive;
|
|
52
|
+
constructor(httpClient: HttpClient, basePath: string | string[], configuration?: Configuration);
|
|
58
53
|
/**
|
|
59
54
|
* Назначить сотруднику роль
|
|
60
55
|
* @param requestParameters
|
|
@@ -64,14 +59,17 @@ export declare class MembersService {
|
|
|
64
59
|
assignMemberRole(requestParameters: AssignMemberRoleRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
|
|
65
60
|
httpHeaderAccept?: 'application/json';
|
|
66
61
|
context?: HttpContext;
|
|
62
|
+
transferCache?: boolean;
|
|
67
63
|
}): Observable<MemberRole>;
|
|
68
64
|
assignMemberRole(requestParameters: AssignMemberRoleRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
|
|
69
65
|
httpHeaderAccept?: 'application/json';
|
|
70
66
|
context?: HttpContext;
|
|
67
|
+
transferCache?: boolean;
|
|
71
68
|
}): Observable<HttpResponse<MemberRole>>;
|
|
72
69
|
assignMemberRole(requestParameters: AssignMemberRoleRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
|
|
73
70
|
httpHeaderAccept?: 'application/json';
|
|
74
71
|
context?: HttpContext;
|
|
72
|
+
transferCache?: boolean;
|
|
75
73
|
}): Observable<HttpEvent<MemberRole>>;
|
|
76
74
|
/**
|
|
77
75
|
* Исключить сотрудника из организации
|
|
@@ -82,14 +80,17 @@ export declare class MembersService {
|
|
|
82
80
|
expelOrgMember(requestParameters: ExpelOrgMemberRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
|
|
83
81
|
httpHeaderAccept?: 'application/json';
|
|
84
82
|
context?: HttpContext;
|
|
83
|
+
transferCache?: boolean;
|
|
85
84
|
}): Observable<any>;
|
|
86
85
|
expelOrgMember(requestParameters: ExpelOrgMemberRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
|
|
87
86
|
httpHeaderAccept?: 'application/json';
|
|
88
87
|
context?: HttpContext;
|
|
88
|
+
transferCache?: boolean;
|
|
89
89
|
}): Observable<HttpResponse<any>>;
|
|
90
90
|
expelOrgMember(requestParameters: ExpelOrgMemberRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
|
|
91
91
|
httpHeaderAccept?: 'application/json';
|
|
92
92
|
context?: HttpContext;
|
|
93
|
+
transferCache?: boolean;
|
|
93
94
|
}): Observable<HttpEvent<any>>;
|
|
94
95
|
/**
|
|
95
96
|
* Получить данные сотрудника
|
|
@@ -100,14 +101,17 @@ export declare class MembersService {
|
|
|
100
101
|
getOrgMember(requestParameters: GetOrgMemberRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
|
|
101
102
|
httpHeaderAccept?: 'application/json';
|
|
102
103
|
context?: HttpContext;
|
|
104
|
+
transferCache?: boolean;
|
|
103
105
|
}): Observable<Member>;
|
|
104
106
|
getOrgMember(requestParameters: GetOrgMemberRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
|
|
105
107
|
httpHeaderAccept?: 'application/json';
|
|
106
108
|
context?: HttpContext;
|
|
109
|
+
transferCache?: boolean;
|
|
107
110
|
}): Observable<HttpResponse<Member>>;
|
|
108
111
|
getOrgMember(requestParameters: GetOrgMemberRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
|
|
109
112
|
httpHeaderAccept?: 'application/json';
|
|
110
113
|
context?: HttpContext;
|
|
114
|
+
transferCache?: boolean;
|
|
111
115
|
}): Observable<HttpEvent<Member>>;
|
|
112
116
|
/**
|
|
113
117
|
* Перечислить сотрудников организации
|
|
@@ -118,14 +122,17 @@ export declare class MembersService {
|
|
|
118
122
|
listOrgMembers(requestParameters: ListOrgMembersRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
|
|
119
123
|
httpHeaderAccept?: 'application/json';
|
|
120
124
|
context?: HttpContext;
|
|
125
|
+
transferCache?: boolean;
|
|
121
126
|
}): Observable<MemberOrgListResult>;
|
|
122
127
|
listOrgMembers(requestParameters: ListOrgMembersRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
|
|
123
128
|
httpHeaderAccept?: 'application/json';
|
|
124
129
|
context?: HttpContext;
|
|
130
|
+
transferCache?: boolean;
|
|
125
131
|
}): Observable<HttpResponse<MemberOrgListResult>>;
|
|
126
132
|
listOrgMembers(requestParameters: ListOrgMembersRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
|
|
127
133
|
httpHeaderAccept?: 'application/json';
|
|
128
134
|
context?: HttpContext;
|
|
135
|
+
transferCache?: boolean;
|
|
129
136
|
}): Observable<HttpEvent<MemberOrgListResult>>;
|
|
130
137
|
/**
|
|
131
138
|
* Снять роль с сотрудника
|
|
@@ -136,14 +143,17 @@ export declare class MembersService {
|
|
|
136
143
|
removeMemberRole(requestParameters: RemoveMemberRoleRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
|
|
137
144
|
httpHeaderAccept?: 'application/json';
|
|
138
145
|
context?: HttpContext;
|
|
146
|
+
transferCache?: boolean;
|
|
139
147
|
}): Observable<any>;
|
|
140
148
|
removeMemberRole(requestParameters: RemoveMemberRoleRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
|
|
141
149
|
httpHeaderAccept?: 'application/json';
|
|
142
150
|
context?: HttpContext;
|
|
151
|
+
transferCache?: boolean;
|
|
143
152
|
}): Observable<HttpResponse<any>>;
|
|
144
153
|
removeMemberRole(requestParameters: RemoveMemberRoleRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
|
|
145
154
|
httpHeaderAccept?: 'application/json';
|
|
146
155
|
context?: HttpContext;
|
|
156
|
+
transferCache?: boolean;
|
|
147
157
|
}): Observable<HttpEvent<any>>;
|
|
148
158
|
static ɵfac: i0.ɵɵFactoryDeclaration<MembersService, [null, { optional: true; }, { optional: true; }]>;
|
|
149
159
|
static ɵprov: i0.ɵɵInjectableDeclaration<MembersService>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HttpClient,
|
|
1
|
+
import { HttpClient, HttpResponse, HttpEvent, HttpContext } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { MemberContext } from '../model/memberContext';
|
|
4
4
|
import { Organization } from '../model/organization';
|
|
@@ -8,6 +8,7 @@ import { OrganizationSearchResult } from '../model/organizationSearchResult';
|
|
|
8
8
|
import { OrganizationSwitchRequest } from '../model/organizationSwitchRequest';
|
|
9
9
|
import { PatchOrgRequest } from '../model/patchOrgRequest';
|
|
10
10
|
import { Configuration } from '../configuration';
|
|
11
|
+
import { BaseService } from '../api.base.service';
|
|
11
12
|
import * as i0 from "@angular/core";
|
|
12
13
|
export interface CancelOrgMembershipRequestParams {
|
|
13
14
|
/** Уникальный идентификатор запроса к системе */
|
|
@@ -62,15 +63,9 @@ export interface SwitchContextRequestParams {
|
|
|
62
63
|
xRequestID: string;
|
|
63
64
|
organizationSwitchRequest?: OrganizationSwitchRequest;
|
|
64
65
|
}
|
|
65
|
-
export declare class OrgsService {
|
|
66
|
+
export declare class OrgsService extends BaseService {
|
|
66
67
|
protected httpClient: HttpClient;
|
|
67
|
-
|
|
68
|
-
defaultHeaders: HttpHeaders;
|
|
69
|
-
configuration: Configuration;
|
|
70
|
-
encoder: HttpParameterCodec;
|
|
71
|
-
constructor(httpClient: HttpClient, basePath: string | string[], configuration: Configuration);
|
|
72
|
-
private addToHttpParams;
|
|
73
|
-
private addToHttpParamsRecursive;
|
|
68
|
+
constructor(httpClient: HttpClient, basePath: string | string[], configuration?: Configuration);
|
|
74
69
|
/**
|
|
75
70
|
* Отменить своё членство в организации
|
|
76
71
|
* @param requestParameters
|
|
@@ -80,14 +75,17 @@ export declare class OrgsService {
|
|
|
80
75
|
cancelOrgMembership(requestParameters: CancelOrgMembershipRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
|
|
81
76
|
httpHeaderAccept?: 'application/json';
|
|
82
77
|
context?: HttpContext;
|
|
78
|
+
transferCache?: boolean;
|
|
83
79
|
}): Observable<any>;
|
|
84
80
|
cancelOrgMembership(requestParameters: CancelOrgMembershipRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
|
|
85
81
|
httpHeaderAccept?: 'application/json';
|
|
86
82
|
context?: HttpContext;
|
|
83
|
+
transferCache?: boolean;
|
|
87
84
|
}): Observable<HttpResponse<any>>;
|
|
88
85
|
cancelOrgMembership(requestParameters: CancelOrgMembershipRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
|
|
89
86
|
httpHeaderAccept?: 'application/json';
|
|
90
87
|
context?: HttpContext;
|
|
88
|
+
transferCache?: boolean;
|
|
91
89
|
}): Observable<HttpEvent<any>>;
|
|
92
90
|
/**
|
|
93
91
|
* Создать новую организацию
|
|
@@ -98,14 +96,17 @@ export declare class OrgsService {
|
|
|
98
96
|
createOrg(requestParameters: CreateOrgRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
|
|
99
97
|
httpHeaderAccept?: 'application/json';
|
|
100
98
|
context?: HttpContext;
|
|
99
|
+
transferCache?: boolean;
|
|
101
100
|
}): Observable<Organization>;
|
|
102
101
|
createOrg(requestParameters: CreateOrgRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
|
|
103
102
|
httpHeaderAccept?: 'application/json';
|
|
104
103
|
context?: HttpContext;
|
|
104
|
+
transferCache?: boolean;
|
|
105
105
|
}): Observable<HttpResponse<Organization>>;
|
|
106
106
|
createOrg(requestParameters: CreateOrgRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
|
|
107
107
|
httpHeaderAccept?: 'application/json';
|
|
108
108
|
context?: HttpContext;
|
|
109
|
+
transferCache?: boolean;
|
|
109
110
|
}): Observable<HttpEvent<Organization>>;
|
|
110
111
|
/**
|
|
111
112
|
* Получить активную организацию
|
|
@@ -116,14 +117,17 @@ export declare class OrgsService {
|
|
|
116
117
|
getContext(requestParameters: GetContextRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
|
|
117
118
|
httpHeaderAccept?: 'application/json';
|
|
118
119
|
context?: HttpContext;
|
|
120
|
+
transferCache?: boolean;
|
|
119
121
|
}): Observable<MemberContext>;
|
|
120
122
|
getContext(requestParameters: GetContextRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
|
|
121
123
|
httpHeaderAccept?: 'application/json';
|
|
122
124
|
context?: HttpContext;
|
|
125
|
+
transferCache?: boolean;
|
|
123
126
|
}): Observable<HttpResponse<MemberContext>>;
|
|
124
127
|
getContext(requestParameters: GetContextRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
|
|
125
128
|
httpHeaderAccept?: 'application/json';
|
|
126
129
|
context?: HttpContext;
|
|
130
|
+
transferCache?: boolean;
|
|
127
131
|
}): Observable<HttpEvent<MemberContext>>;
|
|
128
132
|
/**
|
|
129
133
|
* Получить данные организации
|
|
@@ -134,14 +138,17 @@ export declare class OrgsService {
|
|
|
134
138
|
getOrg(requestParameters: GetOrgRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
|
|
135
139
|
httpHeaderAccept?: 'application/json';
|
|
136
140
|
context?: HttpContext;
|
|
141
|
+
transferCache?: boolean;
|
|
137
142
|
}): Observable<Organization>;
|
|
138
143
|
getOrg(requestParameters: GetOrgRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
|
|
139
144
|
httpHeaderAccept?: 'application/json';
|
|
140
145
|
context?: HttpContext;
|
|
146
|
+
transferCache?: boolean;
|
|
141
147
|
}): Observable<HttpResponse<Organization>>;
|
|
142
148
|
getOrg(requestParameters: GetOrgRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
|
|
143
149
|
httpHeaderAccept?: 'application/json';
|
|
144
150
|
context?: HttpContext;
|
|
151
|
+
transferCache?: boolean;
|
|
145
152
|
}): Observable<HttpEvent<Organization>>;
|
|
146
153
|
/**
|
|
147
154
|
* Посмотреть своё членство в организации
|
|
@@ -152,14 +159,17 @@ export declare class OrgsService {
|
|
|
152
159
|
inquireOrgMembership(requestParameters: InquireOrgMembershipRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
|
|
153
160
|
httpHeaderAccept?: 'application/json';
|
|
154
161
|
context?: HttpContext;
|
|
162
|
+
transferCache?: boolean;
|
|
155
163
|
}): Observable<OrganizationMembership>;
|
|
156
164
|
inquireOrgMembership(requestParameters: InquireOrgMembershipRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
|
|
157
165
|
httpHeaderAccept?: 'application/json';
|
|
158
166
|
context?: HttpContext;
|
|
167
|
+
transferCache?: boolean;
|
|
159
168
|
}): Observable<HttpResponse<OrganizationMembership>>;
|
|
160
169
|
inquireOrgMembership(requestParameters: InquireOrgMembershipRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
|
|
161
170
|
httpHeaderAccept?: 'application/json';
|
|
162
171
|
context?: HttpContext;
|
|
172
|
+
transferCache?: boolean;
|
|
163
173
|
}): Observable<HttpEvent<OrganizationMembership>>;
|
|
164
174
|
/**
|
|
165
175
|
* Вступить в организацию по приглашению
|
|
@@ -170,14 +180,17 @@ export declare class OrgsService {
|
|
|
170
180
|
joinOrg(requestParameters: JoinOrgRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
|
|
171
181
|
httpHeaderAccept?: 'application/json';
|
|
172
182
|
context?: HttpContext;
|
|
183
|
+
transferCache?: boolean;
|
|
173
184
|
}): Observable<OrganizationMembership>;
|
|
174
185
|
joinOrg(requestParameters: JoinOrgRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
|
|
175
186
|
httpHeaderAccept?: 'application/json';
|
|
176
187
|
context?: HttpContext;
|
|
188
|
+
transferCache?: boolean;
|
|
177
189
|
}): Observable<HttpResponse<OrganizationMembership>>;
|
|
178
190
|
joinOrg(requestParameters: JoinOrgRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
|
|
179
191
|
httpHeaderAccept?: 'application/json';
|
|
180
192
|
context?: HttpContext;
|
|
193
|
+
transferCache?: boolean;
|
|
181
194
|
}): Observable<HttpEvent<OrganizationMembership>>;
|
|
182
195
|
/**
|
|
183
196
|
* Перечислить доступные организации
|
|
@@ -188,14 +201,17 @@ export declare class OrgsService {
|
|
|
188
201
|
listOrgMembership(requestParameters: ListOrgMembershipRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
|
|
189
202
|
httpHeaderAccept?: 'application/json';
|
|
190
203
|
context?: HttpContext;
|
|
204
|
+
transferCache?: boolean;
|
|
191
205
|
}): Observable<OrganizationSearchResult>;
|
|
192
206
|
listOrgMembership(requestParameters: ListOrgMembershipRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
|
|
193
207
|
httpHeaderAccept?: 'application/json';
|
|
194
208
|
context?: HttpContext;
|
|
209
|
+
transferCache?: boolean;
|
|
195
210
|
}): Observable<HttpResponse<OrganizationSearchResult>>;
|
|
196
211
|
listOrgMembership(requestParameters: ListOrgMembershipRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
|
|
197
212
|
httpHeaderAccept?: 'application/json';
|
|
198
213
|
context?: HttpContext;
|
|
214
|
+
transferCache?: boolean;
|
|
199
215
|
}): Observable<HttpEvent<OrganizationSearchResult>>;
|
|
200
216
|
/**
|
|
201
217
|
* Обновление значений организации
|
|
@@ -206,14 +222,17 @@ export declare class OrgsService {
|
|
|
206
222
|
patchOrg(requestParameters: PatchOrgRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
|
|
207
223
|
httpHeaderAccept?: 'application/json';
|
|
208
224
|
context?: HttpContext;
|
|
225
|
+
transferCache?: boolean;
|
|
209
226
|
}): Observable<Organization>;
|
|
210
227
|
patchOrg(requestParameters: PatchOrgRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
|
|
211
228
|
httpHeaderAccept?: 'application/json';
|
|
212
229
|
context?: HttpContext;
|
|
230
|
+
transferCache?: boolean;
|
|
213
231
|
}): Observable<HttpResponse<Organization>>;
|
|
214
232
|
patchOrg(requestParameters: PatchOrgRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
|
|
215
233
|
httpHeaderAccept?: 'application/json';
|
|
216
234
|
context?: HttpContext;
|
|
235
|
+
transferCache?: boolean;
|
|
217
236
|
}): Observable<HttpEvent<Organization>>;
|
|
218
237
|
/**
|
|
219
238
|
* Переключить активную организацию
|
|
@@ -224,14 +243,17 @@ export declare class OrgsService {
|
|
|
224
243
|
switchContext(requestParameters: SwitchContextRequestParams, observe?: 'body', reportProgress?: boolean, options?: {
|
|
225
244
|
httpHeaderAccept?: 'application/json';
|
|
226
245
|
context?: HttpContext;
|
|
246
|
+
transferCache?: boolean;
|
|
227
247
|
}): Observable<any>;
|
|
228
248
|
switchContext(requestParameters: SwitchContextRequestParams, observe?: 'response', reportProgress?: boolean, options?: {
|
|
229
249
|
httpHeaderAccept?: 'application/json';
|
|
230
250
|
context?: HttpContext;
|
|
251
|
+
transferCache?: boolean;
|
|
231
252
|
}): Observable<HttpResponse<any>>;
|
|
232
253
|
switchContext(requestParameters: SwitchContextRequestParams, observe?: 'events', reportProgress?: boolean, options?: {
|
|
233
254
|
httpHeaderAccept?: 'application/json';
|
|
234
255
|
context?: HttpContext;
|
|
256
|
+
transferCache?: boolean;
|
|
235
257
|
}): Observable<HttpEvent<any>>;
|
|
236
258
|
static ɵfac: i0.ɵɵFactoryDeclaration<OrgsService, [null, { optional: true; }, { optional: true; }]>;
|
|
237
259
|
static ɵprov: i0.ɵɵInjectableDeclaration<OrgsService>;
|